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

View File

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

View File

@ -17,7 +17,7 @@
:class="`item-group-container ${!tabbedView ? 'showing-all' : ''}`">
<!-- Section heading buttons -->
<MinimalHeading
v-for="(section, index) in getSections(sections)"
v-for="(section, index) in sections"
:key="`heading-${index}`"
:index="index"
:title="section.name"
@ -29,7 +29,7 @@
/>
<!-- Section item groups -->
<MinimalSection
v-for="(section, index) in getSections(sections)"
v-for="(section, index) in sections"
:key="`body-${index}`"
:index="index"
:title="section.name"
@ -57,7 +57,6 @@ import HomeMixin from '@/mixins/HomeMixin';
import MinimalSection from '@/components/MinimalView/MinimalSection.vue';
import MinimalHeading from '@/components/MinimalView/MinimalHeading.vue';
import MinimalSearch from '@/components/MinimalView/MinimalSearch.vue';
import { localStorageKeys } from '@/utils/defaults';
import ConfigLauncher from '@/components/Settings/ConfigLauncher';
export default {
@ -83,17 +82,6 @@ export default {
sectionSelected(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 */
finishedSearching() {
if (this.$refs.filterComp) this.$refs.filterComp.clearMinFilterInput();