Minor fixes/adjustments

This commit is contained in:
Alicia Sykes 2024-04-13 12:25:50 +01:00
parent 0a56db5397
commit 743b5340f8
3 changed files with 10 additions and 24 deletions

View File

@ -4,14 +4,10 @@
<span v-if="text" v-html="text"></span> <span v-if="text" v-html="text"></span>
<!-- Default footer --> <!-- Default footer -->
<span v-else> <span v-else>
Developed by <a :href="defaultInfo.authorUrl">{{defaultInfo.authorName}}</a>. <a :href="defaultInfo.projectUrl">Dashy</a> is free & open source
Licensed under <a :href="defaultInfo.licenseUrl">{{defaultInfo.license}}</a> - licensed under <a :href="defaultInfo.licenseUrl">{{defaultInfo.license}}</a>,
© {{defaultInfo.date}}. © <a :href="defaultInfo.authorUrl">{{defaultInfo.authorName}}</a> {{defaultInfo.date}}.
Get the <a :href="defaultInfo.repoUrl">Source Code</a>. Get support on GitHub, at <a :href="defaultInfo.repoUrl">{{defaultInfo.repoName}}</a>.
</span>
<span>
Using:
{{ $store.state.currentConfigInfo? $store.state.currentConfigInfo.confId : 'Default Config' }}
</span> </span>
</footer> </footer>
</template> </template>
@ -29,11 +25,13 @@ export default {
return { return {
defaultInfo: { defaultInfo: {
authorName: 'Alicia Sykes', authorName: 'Alicia Sykes',
authorUrl: 'https://github.com/lissy93', authorUrl: 'https://as93.net',
license: 'MIT', license: 'MIT',
licenseUrl: 'https://gist.github.com/Lissy93/143d2ee01ccc5c052a17', licenseUrl: 'https://gist.github.com/Lissy93/143d2ee01ccc5c052a17',
date: `${new Date().getFullYear()}`, date: `${new Date().getFullYear()}`,
repoUrl: 'https://github.com/lissy93/dashy', repoUrl: 'https://github.com/lissy93/dashy',
repoName: 'Lissy93/Dashy',
projectUrl: 'https://dashy.to',
}, },
}; };
}, },

View File

@ -66,7 +66,7 @@ export default {
span.subtitle { span.subtitle {
color: var(--heading-text-color); color: var(--heading-text-color);
font-style: italic; font-style: italic;
text-shadow: 1px 1px 2px #130f23; text-shadow: 1px 1px 2px #130f2347;
opacity: var(--dimming-factor); opacity: var(--dimming-factor);
} }
img.site-logo { img.site-logo {

View File

@ -17,7 +17,7 @@
:class="`item-group-container ${!tabbedView ? 'showing-all' : ''}`"> :class="`item-group-container ${!tabbedView ? 'showing-all' : ''}`">
<!-- Section heading buttons --> <!-- Section heading buttons -->
<MinimalHeading <MinimalHeading
v-for="(section, index) in getSections(sections)" v-for="(section, index) in sections"
:key="`heading-${index}`" :key="`heading-${index}`"
:index="index" :index="index"
:title="section.name" :title="section.name"
@ -29,7 +29,7 @@
/> />
<!-- Section item groups --> <!-- Section item groups -->
<MinimalSection <MinimalSection
v-for="(section, index) in getSections(sections)" v-for="(section, index) in sections"
:key="`body-${index}`" :key="`body-${index}`"
:index="index" :index="index"
:title="section.name" :title="section.name"
@ -57,7 +57,6 @@ import HomeMixin from '@/mixins/HomeMixin';
import MinimalSection from '@/components/MinimalView/MinimalSection.vue'; import MinimalSection from '@/components/MinimalView/MinimalSection.vue';
import MinimalHeading from '@/components/MinimalView/MinimalHeading.vue'; import MinimalHeading from '@/components/MinimalView/MinimalHeading.vue';
import MinimalSearch from '@/components/MinimalView/MinimalSearch.vue'; import MinimalSearch from '@/components/MinimalView/MinimalSearch.vue';
import { localStorageKeys } from '@/utils/defaults';
import ConfigLauncher from '@/components/Settings/ConfigLauncher'; import ConfigLauncher from '@/components/Settings/ConfigLauncher';
export default { export default {
@ -83,17 +82,6 @@ export default {
sectionSelected(index) { sectionSelected(index) {
this.selectedSection = index; this.selectedSection = index;
}, },
/* Returns sections from local storage if available, otherwise uses the conf.yml */
getSections(sections) {
// If the user has stored sections in local storage, return those
const localSections = localStorage[localStorageKeys.CONF_SECTIONS];
if (localSections) {
const json = JSON.parse(localSections);
if (json.length >= 1) return json;
}
// Otherwise, return the usuall data from conf.yml
return sections;
},
/* Clears input field, once a searched item is opened */ /* Clears input field, once a searched item is opened */
finishedSearching() { finishedSearching() {
if (this.$refs.filterComp) this.$refs.filterComp.clearMinFilterInput(); if (this.$refs.filterComp) this.$refs.filterComp.clearMinFilterInput();