From e159d85b5889fe74fe6dd47034fb33a1c66a0da9 Mon Sep 17 00:00:00 2001 From: "Wu Baiyang (Student)" Date: Sun, 10 Aug 2025 20:24:53 +1200 Subject: [PATCH 01/40] edited .gitignore --- .gitignore | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index 07be599381..e5bf8850ba 100644 --- a/.gitignore +++ b/.gitignore @@ -18,3 +18,5 @@ yarn-error.log* *.njsproj *.sln *.sw? + +user-data/conf.yml From 7eb5089beac4e14ea91f910bc89da40bed6dc44f Mon Sep 17 00:00:00 2001 From: "Wu Baiyang (Student)" Date: Sun, 10 Aug 2025 20:26:27 +1200 Subject: [PATCH 02/40] edited back .gitignore --- .gitignore | 1 - 1 file changed, 1 deletion(-) diff --git a/.gitignore b/.gitignore index e5bf8850ba..5c3f839bb9 100644 --- a/.gitignore +++ b/.gitignore @@ -19,4 +19,3 @@ yarn-error.log* *.sln *.sw? -user-data/conf.yml From c05d5d4f9182b9531d16757dbcdcb08bce310c23 Mon Sep 17 00:00:00 2001 From: "Wu Baiyang (Student)" Date: Mon, 11 Aug 2025 01:25:00 +1200 Subject: [PATCH 03/40] added toggle disable web search function (in conf.yml and a ui button) --- src/components/Settings/SettingsContainer.vue | 26 ++++ src/store.js | 5 + user-data/conf.yml | 140 +++++++++++++----- 3 files changed, 130 insertions(+), 41 deletions(-) diff --git a/src/components/Settings/SettingsContainer.vue b/src/components/Settings/SettingsContainer.vue index de4ed9189f..60d14c219f 100644 --- a/src/components/Settings/SettingsContainer.vue +++ b/src/components/Settings/SettingsContainer.vue @@ -7,6 +7,17 @@
+
+ + +
@@ -97,6 +108,21 @@ export default { this.settingsVisible = this.getSettingsVisibility(); }, methods: { + // Toggle the disableWebSearch setting + toggleDisableWebSearch(event) { + const value = event.target.checked; + // Clone appConfig to avoid direct mutation + const newAppConfig = { + ...this.appConfig, + webSearch: { + ...this.appConfig.webSearch, + disableWebSearch: value, + }, + }; + this.$store.commit('setDisableWebSearch', value); + // Optionally update the full appConfig in store for reactivity + this.$store.commit('SET_APP_CONFIG', newAppConfig); + }, /* Emit event to begin/ continue searching */ userIsTypingSomething(something) { this.$emit('user-is-searchin', something); diff --git a/src/store.js b/src/store.js index 9130139c68..c725ba3ac2 100644 --- a/src/store.js +++ b/src/store.js @@ -232,6 +232,11 @@ const store = new Vuex.Store({ state.config = newConfig; InfoHandler('Sections updated', InfoKeys.EDITOR); }, + // Dynamically update disableWebSearch in appConfig + setDisableWebSearch(state, value) { + if (!state.config.appConfig) state.config.appConfig = {}; + state.config.appConfig.disableWebSearch = value; + }, [UPDATE_SECTION](state, payload) { const { sectionIndex, sectionData } = payload; const newConfig = { ...state.config }; diff --git a/user-data/conf.yml b/user-data/conf.yml index 5f0b012ad0..7c23fb1586 100644 --- a/user-data/conf.yml +++ b/user-data/conf.yml @@ -1,47 +1,105 @@ ---- -# 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 + - title: GitHub + path: https://github.com/Lissy93/dashy + - title: Documentation + path: https://dashy.to/docs appConfig: - theme: colorful - -# Main content - An array of sections, each containing an array of items + theme: dracula + layout: vertical + iconSize: medium + webSearch: + disableWebSearch: false 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 - - 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 + - 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 + id: 0_1481_dashylive + - title: GitHub + description: Source Code, Issues and Pull Requests + url: https://github.com/lissy93/dashy + icon: favicon + id: 1_1481_github + - title: Docs + description: Configuring & Usage Documentation + provider: Dashy.to + icon: far fa-book + url: https://dashy.to/docs + id: 2_1481_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 + id: 3_1481_showcase + - 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 + id: 4_1481_configguide + - 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 + id: 5_1481_support + - title: Godot Game GitHub + description: Source Code, Issues and Pull Requests for the Godot Game + icon: https://i.ibb.co/KjDYYzYD/godot-icon.png + url: https://github.com/aspenyang/godot_roughlite + target: newtab + tags: + - github + - projects + id: 6_1481_godotgamegithub + - title: moodle + url: https://elearn.waikato.ac.nz/my/courses.php + target: newtab + tags: + - uow + id: 7_1481_moodle + - title: LinkedIn + url: https://www.linkedin.com/feed + target: newtab + tags: + - job + id: 8_1481_linkedin + - title: Seek + url: https://www.seek.co.nz/ + target: newtab + tags: + - job + id: 9_1481_seek + - title: University of Waikato Homepage + description: Uni Homepage + url: https://www.waikato.ac.nz/ + target: newtab + id: 10_1481_universityofwaikatohomepage + - name: New Section + displayData: + sortBy: default + rows: 1 + cols: 1 + collapsed: false + hideForGuests: false + items: + - title: Uni Key Dates + description: Key dates + url: https://www.waikato.ac.nz/study/key-university-dates/ + target: newtab + tags: + - uow + - ad + - adc + - ab + - bc + - school + - ddd + - eee + - ggg + id: 0_1055_unikeydates From f6a85be7db0f6de9d6d285b4fd8e08cbe201a79b Mon Sep 17 00:00:00 2001 From: "Wu Baiyang (Student)" Date: Mon, 11 Aug 2025 02:48:41 +1200 Subject: [PATCH 04/40] disable web search block style changes --- src/components/Settings/SearchBar.vue | 83 +++++++++++++++---- src/components/Settings/SettingsContainer.vue | 11 --- 2 files changed, 67 insertions(+), 27 deletions(-) diff --git a/src/components/Settings/SearchBar.vue b/src/components/Settings/SearchBar.vue index 42d7cc775f..0e932e28e3 100644 --- a/src/components/Settings/SearchBar.vue +++ b/src/components/Settings/SearchBar.vue @@ -1,23 +1,55 @@ From c2edd7dbf0fc4cc30f34a0a8bc4383c7c4e7f68e Mon Sep 17 00:00:00 2001 From: "Wu Baiyang (Student)" Date: Mon, 11 Aug 2025 22:17:01 +1200 Subject: [PATCH 07/40] search bar setting text font-size modified --- src/components/Settings/SearchBar.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/Settings/SearchBar.vue b/src/components/Settings/SearchBar.vue index f4328b56e9..b96e6173e6 100644 --- a/src/components/Settings/SearchBar.vue +++ b/src/components/Settings/SearchBar.vue @@ -372,5 +372,6 @@ export default { display: flex; align-items: center; gap: 0.5rem; + font-size: 0.9rem; } From 98db5609ec17c55edfed0c2b345b5126f1e86955 Mon Sep 17 00:00:00 2001 From: "Wu Baiyang (Student)" Date: Thu, 14 Aug 2025 02:58:44 +1200 Subject: [PATCH 08/40] clean unused code --- src/components/Settings/SettingsContainer.vue | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/components/Settings/SettingsContainer.vue b/src/components/Settings/SettingsContainer.vue index 4d41f44198..de4ed9189f 100644 --- a/src/components/Settings/SettingsContainer.vue +++ b/src/components/Settings/SettingsContainer.vue @@ -97,21 +97,6 @@ export default { this.settingsVisible = this.getSettingsVisibility(); }, methods: { - // Toggle the disableWebSearch setting - toggleDisableWebSearch(event) { - const value = event.target.checked; - // Clone appConfig to avoid direct mutation - const newAppConfig = { - ...this.appConfig, - webSearch: { - ...this.appConfig.webSearch, - disableWebSearch: value, - }, - }; - this.$store.commit('setDisableWebSearch', value); - // Optionally update the full appConfig in store for reactivity - this.$store.commit('SET_APP_CONFIG', newAppConfig); - }, /* Emit event to begin/ continue searching */ userIsTypingSomething(something) { this.$emit('user-is-searchin', something); From bd5795f1c15e42cbe3f38e129d2a393473e40648 Mon Sep 17 00:00:00 2001 From: "Wu Baiyang (Student)" Date: Wed, 27 Aug 2025 02:34:26 +1200 Subject: [PATCH 09/40] search option panel css style improved --- src/components/Settings/SearchBar.vue | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/src/components/Settings/SearchBar.vue b/src/components/Settings/SearchBar.vue index b96e6173e6..4d31d4e21a 100644 --- a/src/components/Settings/SearchBar.vue +++ b/src/components/Settings/SearchBar.vue @@ -3,7 +3,7 @@ },