diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 96b1e1bcf2..0fdfe2cc35 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -3,7 +3,7 @@ { "name": "Dashy", // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile - "image": "mcr.microsoft.com/devcontainers/javascript-node:1-24-bookworm", + "image": "mcr.microsoft.com/devcontainers/javascript-node:latest", "customizations": { "vscode": { "extensions": [ diff --git a/src/components/LinkItems/Collapsable.vue b/src/components/LinkItems/Collapsable.vue index c7e4ef7f2c..97783b48c5 100644 --- a/src/components/LinkItems/Collapsable.vue +++ b/src/components/LinkItems/Collapsable.vue @@ -104,6 +104,7 @@ export default { checkboxState(newState) { this.isExpanded = newState; this.updateLocalStorage(); // Save every change immediately + this.$emit('collapse-change', this.checkboxState); }, uniqueKey(newVal, oldVal) { if (newVal !== oldVal) { diff --git a/src/components/LinkItems/Section.vue b/src/components/LinkItems/Section.vue index f3178f40a6..9bcaa80241 100644 --- a/src/components/LinkItems/Section.vue +++ b/src/components/LinkItems/Section.vue @@ -1,5 +1,6 @@ @@ -89,6 +90,11 @@ export default { activeColCount: 1, }), computed: { + isCodeSearch() { + const term = (this.searchTerm || this.searchValue || '').trim(); + // true if it starts with "<" and ends with ">", with at least one char inside + return /^<[^>]+>$/.test(term); + }, singleSectionView() { return this.findSingleSection(this.$store.getters.sections, this.$route.params.section); }, @@ -103,9 +109,15 @@ export default { /* Return sections with filtered items, that match users search term */ filteredSections() { const sections = this.singleSectionView || this.sections; + const codeMode = this.isCodeSearch; + return sections.map((_section) => { const section = _section; - section.filteredItems = this.filterTiles(section.items, this.searchValue); + if (codeMode) { + section.filteredItems = section.items; + } else { + section.filteredItems = this.filterTiles(section.items, this.searchValue); + } return section; }); }, diff --git a/user-data/conf.yml b/user-data/conf.yml index 2d62014781..f644658b70 100644 --- a/user-data/conf.yml +++ b/user-data/conf.yml @@ -44,3 +44,14 @@ sections: description: Get help with Dashy, raise a bug, or get in contact url: https://github.com/Lissy93/dashy/blob/master/.github/SUPPORT.md icon: far fa-hands-helping +- name: Stuff + icon: fas fa-rocket + displayData: + hiddenOnPurpose: true + items: + - title: hiddentile + description: This is a hidden tile + icon: https://i.ibb.co/qWWpD0v/astro-dab-128.png + url: https://live.dashy.to/ + target: newtab +