🚨 Fixes all remaining lint warnings

This commit is contained in:
Alicia Sykes
2026-04-25 13:24:34 +01:00
parent 9198d9d7da
commit 09fd86876f
25 changed files with 33 additions and 11 deletions

View File

@@ -36,7 +36,7 @@ export default {
default: true,
},
height: {
number: Boolean,
type: Number,
default: 1,
},
values: { type: Array, required: true },

View File

@@ -47,6 +47,7 @@ export default {
default: 'vertical',
},
},
emits: ['update:modelValue'],
methods: {
updateValue(value) {
this.$emit('update:modelValue', value);

View File

@@ -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

View File

@@ -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

View File

@@ -35,6 +35,8 @@ export default {
},
},
emits: ['change'],
data() {
return {
currentState: this.defaultState,

View File

@@ -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;

View File

@@ -58,6 +58,7 @@ export default {
sectionIndex: { type: Number, default: -1 },
isAddNew: Boolean,
},
emits: ['closeEditSection'],
data() {
return {
modalName: modalNames.EDIT_SECTION,

View File

@@ -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,

View File

@@ -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;

View File

@@ -127,6 +127,7 @@ export default {
isWide: Boolean,
activeColCount: { type: Number, required: true },
},
emits: ['itemClicked'],
components: {
Collapsable,
ContextMenu,

View File

@@ -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;

View File

@@ -21,6 +21,7 @@ export default {
title: { type: String, default: '' },
subItemGridSize: { type: Number, default: 0 },
},
emits: ['triggerModal'],
components: {
SubItem,
},

View File

@@ -20,6 +20,7 @@ export default {
selected: Boolean,
hideTitleText: Boolean,
},
emits: ['sectionSelected'],
methods: {
selectSection(index) {
this.$emit('sectionSelected', index);

View File

@@ -18,6 +18,7 @@ export default {
props: {
active: Boolean,
},
emits: ['user-is-searchin'],
data() {
return {
input: '', // Users current search term

View File

@@ -66,6 +66,7 @@ export default {
selected: Boolean,
showAll: Boolean,
},
emits: ['itemClicked', 'sectionSelected'],
computed: {
appConfig() {
return this.$store.getters.appConfig;

View File

@@ -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) {

View File

@@ -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

View File

@@ -67,6 +67,7 @@ export default {
LanguageSwitcher,
IconOptions,
},
emits: ['user-is-searchin'],
data: () => ({ panelOpen: false, modalNames }),
computed: {
searchVisible() {

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>

View File

@@ -149,6 +149,7 @@ export default {
widget: { type: Object, required: true },
index: { type: Number, required: true },
},
emits: ['navigateToSection'],
data: () => ({
loading: false,
error: false,

View File

@@ -45,6 +45,7 @@ export default {
sections: { type: Array, default: () => [] },
initUrl: { type: String, default: '' },
},
emits: ['launch-widget', 'launch-app'],
data() {
return {
isOpen: [],

View File

@@ -19,6 +19,7 @@ export default {
target: { type: String, default: '' },
click: { type: Function, default: () => {} },
},
emits: ['launch-app'],
components: {
Icon,
},

View File

@@ -35,6 +35,7 @@ export default {
props: {
items: { type: Array, default: () => [] },
},
emits: ['launch-app'],
components: {
SideBarItem,
},