Skip to content

armgit / dashy

Public Imported from GitHub
0

πŸš€ A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!

⏩ Pull from master

Alicia Sykes198c2dbae123
diff --cc package.json
index 0ac4124a,fea6b9fe..4e0c19c2
--- a/package.json
+++ b/package.json
@@@ -41,32 -40,48 +41,32 @@@
"remedial": "^1.0.8",
"rss-parser": "3.13.0",
"rsup-progress": "^3.2.0",
- "simple-icons": "^14.4.0",
+ "simple-icons": "^16.6.0",
- "v-jsoneditor": "^1.4.5",
- "v-tooltip": "^2.1.3",
- "vue": "^2.7.0",
- "vue-i18n": "^8.27.2",
- "vue-js-modal": "^2.0.1",
- "vue-json-tree-view": "^2.1.6",
- "vue-material-tabs": "0.1.5",
- "vue-router": "^3.5.3",
- "vue-select": "^3.20.2",
- "vue-swatches": "^2.1.1",
- "vue-toasted": "^1.1.28",
- "vuex": "^3.6.2"
+ "vue": "^3.5.0",
+ "vue-i18n": "^9.14.0",
+ "vue-router": "^4.4.0",
+ "vue-select": "4.0.0-beta.6",
+ "vue3-json-viewer": "^2.4.1",
+ "vuex": "^4.1.0"
},
"devDependencies": {
- "@babel/preset-env": "^7.26.0",
- "@vitest/ui": "^1.6.0",
- "@vue/cli-plugin-babel": "^5.0.8",
- "@vue/cli-plugin-eslint": "^5.0.8",
- "@vue/cli-plugin-pwa": "^5.0.8",
- "@vue/cli-plugin-typescript": "^5.0.8",
- "@vue/cli-service": "^5.0.8",
- "@babel/eslint-parser": "^7.25.0",
- "@vue/eslint-config-standard": "^4.0.0",
- "@vue/test-utils": "^1.3.6",
- "copy-webpack-plugin": "6.4.0",
- "eslint": "^7.32.0",
- "eslint-config-airbnb": "^18.0.1",
- "eslint-plugin-vue": "^7.9.0",
+ "@vitejs/plugin-vue": "^5.0.0",
+ "@vitest/ui": "^4.0.18",
+ "@vue/compiler-sfc": "^3.5.0",
+ "@vue/test-utils": "^2.4.0",
+ "autoprefixer": "^10.4.27",
+ "eslint": "^8.57.0",
+ "eslint-plugin-vue": "^9.28.0",
- "happy-dom": "^20.0.0",
+ "happy-dom": "^20.8.9",
"npm-run-all": "^4.1.5",
"sass": "^1.77.0",
- "sass-loader": "^12.0.0",
- "typescript": "^5.4.4",
- "vite-plugin-vue2": "^2.0.3",
- "vitest": "^1.6.0",
- "vue-cli-plugin-yaml": "^1.0.2",
- "vue-svg-loader": "^0.16.0",
- "vue-template-compiler": "^2.7.0"
+ "vite": "^6.2.0",
+ "vite-plugin-pwa": "^1.0.0",
+ "vite-svg-loader": "^5.1.0",
+ "vitest": "^4.0.18"
},
"engines": {
- "node": ">=16.0.0 <21.6.2"
+ "node": ">=18.0.0"
},
"eslintConfig": {
"root": true,
diff --cc src/mixins/HomeMixin.js
index 71e0f13e,4be0a96c..4fda1488
--- a/src/mixins/HomeMixin.js
+++ b/src/mixins/HomeMixin.js
@@@ -63,22 -65,11 +65,11 @@@ const HomeMixin =
const subPageName = isSubPage ? pagePath.split('/').pop() : null;
return subPageName;
},
- /* TEMPORARY: If on sub-page, check if custom theme is set and return it */
- getSubPageTheme() {
- if (!this.pageId || this.pageId === 'home') {
- return null;
- } else {
- const themeStoreKey = `${localStorageKeys.THEME}-${this.pageId}`;
- return localStorage[themeStoreKey] || null;
- }
- },
setTheme() {
- // const theme = this.getSubPageTheme() || GetTheme();
- // ApplyLocalTheme(theme);
- // ApplyCustomVariables(theme);
+ this.initializeTheme();
},
updateModalVisibility(modalState) {
- this.$store.commit('SET_MODAL_OPEN', modalState);
+ this.$store.commit(Keys.SET_MODAL_OPEN, modalState);
},
/* Updates local data with search value, triggered from filter comp */
searching(searchValue) {
diff --cc src/views/Home.vue
index 47568371,ca73a8bb..32de18a6
--- a/src/views/Home.vue
+++ b/src/views/Home.vue
@@@ -19,9 -19,11 +19,10 @@@
</router-link>
</div>
<!-- Main content, section for each group of items -->
- <div v-if="checkTheresData(sections) || isEditMode" :class="computedClass">
+ <div v-if="checkTheresData(sections) || isEditMode" :class="computedClass"
- ref="sectionsContainer">
- <template v-for="(section, index) in filteredSections">
++ ref="sectionsContainer">
+ <template v-for="(section, index) in filteredSections" :key="index">
<Section
- :key="index"
:index="index"
:title="section.name"
:icon="section.icon || undefined"
@@@ -177,6 -190,11 +189,11 @@@ export default
this.initiateMaterialDesignIcons();
this.layout = this.layoutOrientation;
this.itemSizeBound = this.iconSize;
+ this.readActiveColCount();
+ window.addEventListener('resize', this.readActiveColCount);
+ },
- beforeDestroy() {
++ beforeUnmount() {
+ window.removeEventListener('resize', this.readActiveColCount);
},
};
</script>
diff --cc yarn.lock
index 817eff6d,30fbc6f3..1252c050
--- a/yarn.lock
+++ b/yarn.lock
@@@ -3288,15 -5063,22 +3288,15 @@@ graceful-fs@^4.1.2, graceful-fs@^4.1.6
resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.11.tgz#4183e4e8bf08bb6e05bbb2f7d2e0c8f712ca40e3"
integrity sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==
-gzip-size@^6.0.0:
- version "6.0.0"
- resolved "https://registry.yarnpkg.com/gzip-size/-/gzip-size-6.0.0.tgz#065367fd50c239c0671cbcbad5be3e2eeb10e462"
- integrity sha512-ax7ZYomf6jqPTQ4+XCpUGyXKHk5WweS+e05MBO4/y3WJ5RkmPXNKvX+bx1behVILVwr6JSQvZAku021CHPXG3Q==
- dependencies:
- duplexer "^0.1.2"
-
-handle-thing@^2.0.0:
- version "2.0.1"
- resolved "https://registry.yarnpkg.com/handle-thing/-/handle-thing-2.0.1.tgz#857f79ce359580c340d43081cc648970d0bb234e"
- integrity sha512-9Qn4yBxelxoh2Ow62nP+Ka/kMnOXRi8BXnRaUwezLNhqelnN49xKz4F/dPP8OYLxLxq6JDtZb2i9XznUQbNPTg==
+graphemer@^1.4.0:
+ version "1.4.0"
+ resolved "https://registry.yarnpkg.com/graphemer/-/graphemer-1.4.0.tgz#fb2f1d55e0e3a1849aeffc90c4fa0dd53a0e66c6"
+ integrity sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==
- happy-dom@^20.0.0:
- version "20.8.3"
- resolved "https://registry.yarnpkg.com/happy-dom/-/happy-dom-20.8.3.tgz#aa59a13c0e43c48819190d913ab5e36800e87431"
- integrity sha512-lMHQRRwIPyJ70HV0kkFT7jH/gXzSI7yDkQFe07E2flwmNDFoWUTRMKpW2sglsnpeA7b6S2TJPp98EbQxai8eaQ==
+ happy-dom@^20.8.9:
+ version "20.8.9"
+ resolved "https://registry.yarnpkg.com/happy-dom/-/happy-dom-20.8.9.tgz#aeacc9ab9aacada379bce0ba37b2f02dabbba286"
+ integrity sha512-Tz23LR9T9jOGVZm2x1EPdXqwA37G/owYMxRwU0E4miurAtFsPMQ1d2Jc2okUaSjZqAFz2oEn3FLXC5a0a+siyA==
dependencies:
"@types/node" ">=20.0.0"
"@types/whatwg-mimetype" "^3.0.2"
@@@ -4767,15 -8023,15 +4767,15 @@@ signal-exit@^4.0.1
resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-4.1.0.tgz#952188c1cbd546070e2dd20d0f41c0ae0530cb04"
integrity sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==
- simple-icons@^14.4.0:
- version "14.15.0"
- resolved "https://registry.yarnpkg.com/simple-icons/-/simple-icons-14.15.0.tgz#c19e9ba5c9618d427491eaf8a47f9b0e803a871f"
- integrity sha512-yjlJ8skP4isCd4dQTDGFbv0hQgDIr57DbWaovEeHADPAZa5DBEAs+3ZnBb76ti+yz7/OzFI3SqTP1SKku1uhCw==
+ simple-icons@^16.6.0:
- version "16.12.0"
- resolved "https://registry.yarnpkg.com/simple-icons/-/simple-icons-16.12.0.tgz#17248ac058f4df3a185f975523ebfbe43eecb88d"
- integrity sha512-fDJDqXUpkb2twqH+eBQpJsCYUE6jEH7VkuuPL9dH16sbLf6KKnwyijULmcx7SCoy3c2L6pl8WCzt+4rpYjoWfw==
++ version "16.14.0"
++ resolved "https://registry.yarnpkg.com/simple-icons/-/simple-icons-16.14.0.tgz#d22f89f65d5e9bae73be946ad6ebc966910e45b2"
++ integrity sha512-2Nvs3jJpCfMWQerD4zdv91g/MpnWn81a7uhyAC0reuhrjmS2MtSmwIKwewOJR6Xe97ZmfltDntCDqKJIBawQOw==
-sirv@^2.0.3, sirv@^2.0.4:
- version "2.0.4"
- resolved "https://registry.yarnpkg.com/sirv/-/sirv-2.0.4.tgz#5dd9a725c578e34e449f332703eb2a74e46a29b0"
- integrity sha512-94Bdh3cC2PKrbgSOUqTiGPWVZeSiXfKOVZNJniWoqrWrRkB1CJzBU3NEbiTsPcYy1lDsANA/THzS+9WBiy5nfQ==
+sirv@^3.0.2:
+ version "3.0.2"
+ resolved "https://registry.yarnpkg.com/sirv/-/sirv-3.0.2.tgz#f775fccf10e22a40832684848d636346f41cd970"
+ integrity sha512-2wcC/oGxHis/BoHkkPwldgiPSYcpZK3JU28WoMVv55yHJgcZ8rlXvuG9iZggz+sU1d4bRgIGASwyWqjxu3FM0g==
dependencies:
"@polka/url" "^1.0.0-next.24"
mrmime "^2.0.0"