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!

:fire: Remove no-longer needed prop attrs

Alicia Sykes513b1cd95552
diff --git a/src/components/Configuration/ConfigContainer.vue b/src/components/Configuration/ConfigContainer.vue
index 3ee00cec..aa535031 100644
--- a/src/components/Configuration/ConfigContainer.vue
+++ b/src/components/Configuration/ConfigContainer.vue
@@ -3,7 +3,7 @@
<TabItem :name="$t('config.main-tab')" class="main-tab">
<div class="main-options-container">
<div class="config-buttons">
- <h2>Configuration Options</h2>
+ <h2>{{ $t('config.heading') }}</h2>
<a class="hyperlink-wrapper" @click="openExportConfigModal()">
<button class="config-button center">
<DownloadIcon class="button-icon"/>
@@ -52,13 +52,13 @@
<RebuildApp />
</TabItem>
<TabItem :name="$t('config.edit-config-tab')">
- <JsonEditor :config="config" />
+ <JsonEditor />
</TabItem>
<TabItem :name="$t('cloud-sync.title')">
- <CloudBackupRestore :config="config" />
+ <CloudBackupRestore />
</TabItem>
<TabItem :name="$t('config.custom-css-tab')">
- <CustomCssEditor :config="config" />
+ <CustomCssEditor />
</TabItem>
</Tabs>
</template>
@@ -68,6 +68,7 @@
import JsonToYaml from '@/utils/JsonToYaml';
import { localStorageKeys, modalNames } from '@/utils/defaults';
import { getUsersLanguage } from '@/utils/ConfigHelpers';
+import StoreKeys from '@/utils/StoreMutations';
import JsonEditor from '@/components/Configuration/JsonEditor';
import CustomCssEditor from '@/components/Configuration/CustomCss';
import CloudBackupRestore from '@/components/Configuration/CloudBackupRestore';
@@ -139,15 +140,13 @@ export default {
},
/* Checks that the user is sure, then resets site-wide local storage, and reloads page */
resetLocalSettings() {
- const msg = `${this.$t('config.reset-config-msg-l1')
- }${this.$t('config.reset-config-msg-l2')}\n\n${this.$t('config.reset-config-msg-l3')}`;
+ const msg = `${this.$t('config.reset-config-msg-l1')} `
+ + `${this.$t('config.reset-config-msg-l2')}\n\n${this.$t('config.reset-config-msg-l3')}`;
const isTheUserSure = confirm(msg); // eslint-disable-line no-alert, no-restricted-globals
if (isTheUserSure) {
localStorage.clear();
this.$toasted.show(this.$t('config.data-cleared-msg'));
- setTimeout(() => {
- location.reload(true); // eslint-disable-line no-restricted-globals
- }, 1900);
+ this.$store.dispatch(StoreKeys.INITIALIZE_CONFIG);
}
},
getLanguage() {
diff --git a/src/components/LinkItems/Item.vue b/src/components/LinkItems/Item.vue
index 9420d98b..e9a18a09 100644
--- a/src/components/LinkItems/Item.vue
+++ b/src/components/LinkItems/Item.vue
@@ -365,7 +365,7 @@ export default {
height: 2rem;
}
&.add-new {
- border-style: dashed !important;
+ border: 2px dashed var(--primary) !important;
}
}
diff --git a/src/components/Settings/SettingsContainer.vue b/src/components/Settings/SettingsContainer.vue
index 93361d00..36f9226a 100644
--- a/src/components/Settings/SettingsContainer.vue
+++ b/src/components/Settings/SettingsContainer.vue
@@ -6,8 +6,7 @@
/>
<div class="options-outer">
<div :class="`options-container ${!settingsVisible ? 'hide' : ''}`">
- <ThemeSelector :externalThemes="externalThemes"
- :confTheme="getInitialTheme()" :userThemes="getUserThemes()" />
+ <ThemeSelector />
<LayoutSelector :displayLayout="displayLayout" @layoutUpdated="updateDisplayLayout"/>
<ItemSizeSelector :iconSize="iconSize" @iconSizeUpdated="updateIconSize" />
<ConfigLauncher />
diff --git a/src/views/Home.vue b/src/views/Home.vue
index ba8b513d..ef782c04 100644
--- a/src/views/Home.vue
+++ b/src/views/Home.vue
@@ -184,7 +184,7 @@ export default {
findSingleSection: (allSections, sectionTitle) => {
if (!sectionTitle) return undefined;
let sectionToReturn;
- const parse = (section) => section.replace(' ', '-').toLowerCase().trim();
+ const parse = (section) => section.replaceAll(' ', '-').toLowerCase().trim();
allSections.forEach((section) => {
if (parse(sectionTitle) === parse(section.name)) {
sectionToReturn = [section];