mirror of
https://github.com/Lissy93/dashy.git
synced 2026-06-01 22:34:44 -04:00
🚨 Fixes all remaining lint warnings
This commit is contained in:
@@ -36,7 +36,7 @@ export default {
|
||||
default: true,
|
||||
},
|
||||
height: {
|
||||
number: Boolean,
|
||||
type: Number,
|
||||
default: 1,
|
||||
},
|
||||
values: { type: Array, required: true },
|
||||
|
||||
@@ -47,6 +47,7 @@ export default {
|
||||
default: 'vertical',
|
||||
},
|
||||
},
|
||||
emits: ['update:modelValue'],
|
||||
methods: {
|
||||
updateValue(value) {
|
||||
this.$emit('update:modelValue', value);
|
||||
|
||||
@@ -31,6 +31,7 @@ export default {
|
||||
description: { type: String, default: '' }, // Optional description text
|
||||
disabled: Boolean, // Disable all radio buttons
|
||||
},
|
||||
emits: ['update:modelValue'],
|
||||
data() {
|
||||
return {
|
||||
selectedRadio: '', // The currently radio val
|
||||
|
||||
@@ -23,6 +23,7 @@ export default {
|
||||
label: { type: String, default: '' }, // Form label for element
|
||||
description: { type: String, default: '' }, // Optional description text
|
||||
},
|
||||
emits: ['update:modelValue'],
|
||||
data() {
|
||||
return {
|
||||
selectedOption: '', // The currently selected val
|
||||
|
||||
@@ -35,6 +35,8 @@ export default {
|
||||
},
|
||||
},
|
||||
|
||||
emits: ['change'],
|
||||
|
||||
data() {
|
||||
return {
|
||||
currentState: this.defaultState,
|
||||
|
||||
@@ -104,6 +104,7 @@ export default {
|
||||
isNew: Boolean,
|
||||
parentSectionTitle: { type: String, default: '' }, // If adding new item, which section to add it under
|
||||
},
|
||||
emits: ['closeEditMenu'],
|
||||
computed: {
|
||||
allowViewConfig() {
|
||||
return this.$store.getters.permissions.allowViewConfig;
|
||||
|
||||
@@ -58,6 +58,7 @@ export default {
|
||||
sectionIndex: { type: Number, default: -1 },
|
||||
isAddNew: Boolean,
|
||||
},
|
||||
emits: ['closeEditSection'],
|
||||
data() {
|
||||
return {
|
||||
modalName: modalNames.EDIT_SECTION,
|
||||
|
||||
@@ -56,6 +56,7 @@ export default {
|
||||
customStyles: { type: String, default: '' }, // Optional custom stylings
|
||||
cutToHeight: Boolean, // To set section height with content height
|
||||
},
|
||||
emits: ['openEditSection', 'openContextMenu'],
|
||||
components: {
|
||||
Icon,
|
||||
EditModeIcon,
|
||||
|
||||
@@ -85,6 +85,7 @@ export default {
|
||||
show: Boolean, // Should show or hide the menu
|
||||
disableEdit: Boolean, // Disable editing for certain items
|
||||
},
|
||||
emits: ['launchItem', 'openItemSettings', 'openMoveItemMenu', 'openDeleteItem'],
|
||||
computed: {
|
||||
isMenuDisabled() {
|
||||
return !!this.$store.getters.appConfig.disableContextMenu;
|
||||
|
||||
@@ -127,6 +127,7 @@ export default {
|
||||
isWide: Boolean,
|
||||
activeColCount: { type: Number, required: true },
|
||||
},
|
||||
emits: ['itemClicked'],
|
||||
components: {
|
||||
Collapsable,
|
||||
ContextMenu,
|
||||
|
||||
@@ -48,6 +48,7 @@ export default {
|
||||
posY: { type: Number, default: 0 }, // The Y coordinate for positioning
|
||||
show: Boolean, // Should show or hide the menu
|
||||
},
|
||||
emits: ['navigateToSection', 'openEditSection', 'expandCollapseSection', 'removeSection'],
|
||||
computed: {
|
||||
isMenuDisabled() {
|
||||
return !!this.$store.getters.appConfig.disableContextMenu;
|
||||
|
||||
@@ -21,6 +21,7 @@ export default {
|
||||
title: { type: String, default: '' },
|
||||
subItemGridSize: { type: Number, default: 0 },
|
||||
},
|
||||
emits: ['triggerModal'],
|
||||
components: {
|
||||
SubItem,
|
||||
},
|
||||
|
||||
@@ -20,6 +20,7 @@ export default {
|
||||
selected: Boolean,
|
||||
hideTitleText: Boolean,
|
||||
},
|
||||
emits: ['sectionSelected'],
|
||||
methods: {
|
||||
selectSection(index) {
|
||||
this.$emit('sectionSelected', index);
|
||||
|
||||
@@ -18,6 +18,7 @@ export default {
|
||||
props: {
|
||||
active: Boolean,
|
||||
},
|
||||
emits: ['user-is-searchin'],
|
||||
data() {
|
||||
return {
|
||||
input: '', // Users current search term
|
||||
|
||||
@@ -66,6 +66,7 @@ export default {
|
||||
selected: Boolean,
|
||||
showAll: Boolean,
|
||||
},
|
||||
emits: ['itemClicked', 'sectionSelected'],
|
||||
computed: {
|
||||
appConfig() {
|
||||
return this.$store.getters.appConfig;
|
||||
|
||||
@@ -72,6 +72,7 @@ export default {
|
||||
props: {
|
||||
themeToEdit: { type: String, required: true },
|
||||
},
|
||||
emits: ['closeThemeConfigurator'],
|
||||
methods: {
|
||||
/* Finds the current dominent value for a given CSS variable */
|
||||
getCssVariableValue(cssVar) {
|
||||
|
||||
@@ -38,6 +38,7 @@ export default {
|
||||
props: {
|
||||
minimalSearch: Boolean, // If true, then keep it simple
|
||||
},
|
||||
emits: ['user-is-searchin'],
|
||||
data() {
|
||||
return {
|
||||
input: '', // Users current search term
|
||||
|
||||
@@ -67,6 +67,7 @@ export default {
|
||||
LanguageSwitcher,
|
||||
IconOptions,
|
||||
},
|
||||
emits: ['user-is-searchin'],
|
||||
data: () => ({ panelOpen: false, modalNames }),
|
||||
computed: {
|
||||
searchVisible() {
|
||||
|
||||
@@ -2,14 +2,14 @@
|
||||
<div class="hackernews-wrapper">
|
||||
<!-- Hackernews Trending Posts-->
|
||||
<div class="posts-wrapper" v-if="trendingPosts">
|
||||
<div class="post-row" v-for="(trendingPosts, index) in trendingPosts" :key="index">
|
||||
<a class="post-top" :href="trendingPosts.originURL">
|
||||
<div class="post-row" v-for="(trendingPost, index) in trendingPosts" :key="index">
|
||||
<a class="post-top" :href="trendingPost.originURL">
|
||||
<div class="post-title-wrap">
|
||||
<p class="post-title">{{ trendingPosts.title }}</p>
|
||||
<p class="post-title">{{ trendingPost.title }}</p>
|
||||
<p class="post-date">
|
||||
{{ formatDate(trendingPosts.time) }}
|
||||
{{ formatDate(trendingPost.time) }}
|
||||
</p>
|
||||
<p class="post-score" v-if="trendingPosts.score">score: {{ trendingPosts.score }}</p>
|
||||
<p class="post-score" v-if="trendingPost.score">score: {{ trendingPost.score }}</p>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
@@ -30,16 +30,16 @@
|
||||
<div v-if="showMods" class="mod-list">
|
||||
<span>{{ mods.length }} Mods</span>
|
||||
<ul>
|
||||
<li v-for="{ name, version } in mods" :key="name">
|
||||
{{ name }}={{ version }}
|
||||
<li v-for="{ name, version: modVersion } in mods" :key="name">
|
||||
{{ name }}={{ modVersion }}
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div v-if="showPlugins" class="plugin-list">
|
||||
<span>{{ plugins.length }} Plugins</span>
|
||||
<ul>
|
||||
<li v-for="{ name, version } in plugins" :key="name">
|
||||
{{ name }}={{ version }}
|
||||
<li v-for="{ name, version: pluginVersion } in plugins" :key="name">
|
||||
{{ name }}={{ pluginVersion }}
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
</small> <span v-tooltip="subjectTooltip(notification)">{{ notification.subject }} </span>
|
||||
<!-- notifications item: action links -->
|
||||
<span v-if="notification.actions.length">
|
||||
<span v-for="(action, idx) in notification.actions" :key="idx">
|
||||
<span v-for="(action, actionIdx) in notification.actions" :key="actionIdx">
|
||||
<a :href="action.link" class="action" target="_blank">{{ action.label }}</a>
|
||||
</span>
|
||||
</span>
|
||||
|
||||
@@ -149,6 +149,7 @@ export default {
|
||||
widget: { type: Object, required: true },
|
||||
index: { type: Number, required: true },
|
||||
},
|
||||
emits: ['navigateToSection'],
|
||||
data: () => ({
|
||||
loading: false,
|
||||
error: false,
|
||||
|
||||
@@ -45,6 +45,7 @@ export default {
|
||||
sections: { type: Array, default: () => [] },
|
||||
initUrl: { type: String, default: '' },
|
||||
},
|
||||
emits: ['launch-widget', 'launch-app'],
|
||||
data() {
|
||||
return {
|
||||
isOpen: [],
|
||||
|
||||
@@ -19,6 +19,7 @@ export default {
|
||||
target: { type: String, default: '' },
|
||||
click: { type: Function, default: () => {} },
|
||||
},
|
||||
emits: ['launch-app'],
|
||||
components: {
|
||||
Icon,
|
||||
},
|
||||
|
||||
@@ -35,6 +35,7 @@ export default {
|
||||
props: {
|
||||
items: { type: Array, default: () => [] },
|
||||
},
|
||||
emits: ['launch-app'],
|
||||
components: {
|
||||
SideBarItem,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user