π A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!
Vue awesomedashboarddockerhomelabhomepagemitnodejsorganizationproductivitypwaself-hostedstartpagevue
Add hideFromWorkspace configuration option
copilot-swe-agent[bot]281b7a83e16e
diff --git a/src/components/Workspace/SideBar.vue b/src/components/Workspace/SideBar.vueindex 2c85a167..f4fa261e 100644--- a/src/components/Workspace/SideBar.vue+++ b/src/components/Workspace/SideBar.vue@@ -83,7 +83,12 @@ export default {if (!allTiles) {return [];}- return allTiles.filter((tile) => checkItemVisibility(tile));+ return allTiles.filter((tile) => {+ // Check user visibility and also check if item should be hidden from workspace+ const isVisible = checkItemVisibility(tile);+ const hideFromWorkspace = tile.displayData?.hideFromWorkspace || false;+ return isVisible && !hideFromWorkspace;+ });},},mounted() {diff --git a/src/utils/ConfigSchema.json b/src/utils/ConfigSchema.jsonindex 92039798..7e28b505 100644--- a/src/utils/ConfigSchema.json+++ b/src/utils/ConfigSchema.json@@ -1041,6 +1041,12 @@}}}+ },+ "hideFromWorkspace": {+ "title": "Hide from Workspace",+ "type": "boolean",+ "default": false,+ "description": "If set to true, item will be visible in the default view but not in the Workspace view sidebar"}}},diff --git a/user-data/conf.yml b/user-data/conf.ymlindex 5f0b012a..0c5512cc 100644--- a/user-data/conf.yml+++ b/user-data/conf.yml@@ -36,6 +36,8 @@ sections:description: See how others are using Dashyurl: https://github.com/Lissy93/dashy/blob/master/docs/showcase.mdicon: far fa-grin-hearts+ displayData:+ hideFromWorkspace: true- title: Config Guidedescription: See full list of configuration optionsurl: https://github.com/Lissy93/dashy/blob/master/docs/configuring.mddiff --git a/user-data/conf.yml.backup b/user-data/conf.yml.backupnew file mode 100644index 00000000..0c5512cc--- /dev/null+++ b/user-data/conf.yml.backup@@ -0,0 +1,49 @@+---+# Page meta info, like heading, footer text and nav links+pageInfo:+ title: Dashy+ description: Welcome to your new dashboard!+ navLinks:+ - title: GitHub+ path: https://github.com/Lissy93/dashy+ - title: Documentation+ path: https://dashy.to/docs++# Optional app settings and configuration+appConfig:+ theme: colorful++# Main content - An array of sections, each containing an array of items+sections:+- name: Getting Started+ icon: fas fa-rocket+ items:+ - title: Dashy Live+ description: Development a project management links for Dashy+ icon: https://i.ibb.co/qWWpD0v/astro-dab-128.png+ url: https://live.dashy.to/+ target: newtab+ - title: GitHub+ description: Source Code, Issues and Pull Requests+ url: https://github.com/lissy93/dashy+ icon: favicon+ - title: Docs+ description: Configuring & Usage Documentation+ provider: Dashy.to+ icon: far fa-book+ url: https://dashy.to/docs+ - title: Showcase+ description: See how others are using Dashy+ url: https://github.com/Lissy93/dashy/blob/master/docs/showcase.md+ icon: far fa-grin-hearts+ displayData:+ hideFromWorkspace: true+ - title: Config Guide+ description: See full list of configuration options+ url: https://github.com/Lissy93/dashy/blob/master/docs/configuring.md+ icon: fas fa-wrench+ - title: Support+ 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+\ No newline at end of file