lint EVERYTHING

This commit is contained in:
Henry Jameson 2024-12-22 15:08:42 +02:00
parent 211a45b688
commit 69940b7561
12 changed files with 88 additions and 51 deletions

View file

@ -32,8 +32,8 @@
> >
</label> </label>
<label <label
class="y-shift-number"
v-show="shadowControl && !hideControls" v-show="shadowControl && !hideControls"
class="y-shift-number"
> >
{{ $t('settings.style.shadows.offset-y') }} {{ $t('settings.style.shadows.offset-y') }}
<input <input
@ -78,7 +78,10 @@
> >
{{ $t('settings.style.themes3.editor.test_string') }} {{ $t('settings.style.themes3.editor.test_string') }}
</div> </div>
<div v-if="invalid" class="invalid-container"> <div
v-if="invalid"
class="invalid-container"
>
<div class="alert error invalid-label"> <div class="alert error invalid-label">
{{ $t('settings.style.themes3.editor.invalid') }} {{ $t('settings.style.themes3.editor.invalid') }}
</div> </div>
@ -104,8 +107,8 @@
</div> </div>
<ColorInput <ColorInput
v-if="!noColorControl" v-if="!noColorControl"
class="input-color-input"
v-model="colorOverride" v-model="colorOverride"
class="input-color-input"
fallback="#606060" fallback="#606060"
:label="$t('settings.style.shadows.color_override')" :label="$t('settings.style.shadows.color_override')"
/> />

View file

@ -11,13 +11,22 @@
class="rating" class="rating"
> >
<span v-if="contrast.aaa"> <span v-if="contrast.aaa">
<FAIcon icon="thumbs-up" :size="showRatio ? 'lg' : ''" /> <FAIcon
icon="thumbs-up"
:size="showRatio ? 'lg' : ''"
/>
</span> </span>
<span v-if="!contrast.aaa && contrast.aa"> <span v-if="!contrast.aaa && contrast.aa">
<FAIcon icon="adjust" :size="showRatio ? 'lg' : ''" /> <FAIcon
icon="adjust"
:size="showRatio ? 'lg' : ''"
/>
</span> </span>
<span v-if="!contrast.aaa && !contrast.aa"> <span v-if="!contrast.aaa && !contrast.aa">
<FAIcon icon="exclamation-triangle" :size="showRatio ? 'lg' : ''" /> <FAIcon
icon="exclamation-triangle"
:size="showRatio ? 'lg' : ''"
/>
</span> </span>
</Tooltip> </Tooltip>
<Tooltip <Tooltip
@ -26,13 +35,22 @@
class="rating" class="rating"
> >
<span v-if="contrast.laaa"> <span v-if="contrast.laaa">
<FAIcon icon="thumbs-up" :size="showRatio ? 'large' : ''" /> <FAIcon
icon="thumbs-up"
:size="showRatio ? 'large' : ''"
/>
</span> </span>
<span v-if="!contrast.laaa && contrast.laa"> <span v-if="!contrast.laaa && contrast.laa">
<FAIcon icon="adjust" :size="showRatio ? 'lg' : ''" /> <FAIcon
icon="adjust"
:size="showRatio ? 'lg' : ''"
/>
</span> </span>
<span v-if="!contrast.laaa && !contrast.laa"> <span v-if="!contrast.laaa && !contrast.laa">
<FAIcon icon="exclamation-triangle" :size="showRatio ? 'lg' : ''" /> <FAIcon
icon="exclamation-triangle"
:size="showRatio ? 'lg' : ''"
/>
</span> </span>
</Tooltip> </Tooltip>
</span> </span>
@ -55,6 +73,9 @@ library.add(
) )
export default { export default {
components: {
Tooltip
},
props: { props: {
large: { large: {
required: false, required: false,
@ -74,9 +95,6 @@ export default {
default: false default: false
} }
}, },
components: {
Tooltip
},
computed: { computed: {
hint () { hint () {
const levelVal = this.contrast.aaa ? 'aaa' : (this.contrast.aa ? 'aa' : 'bad') const levelVal = this.contrast.aaa ? 'aaa' : (this.contrast.aa ? 'aa' : 'bad')

View file

@ -14,7 +14,7 @@
<Checkbox <Checkbox
v-if="typeof fallback !== 'undefined'" v-if="typeof fallback !== 'undefined'"
:id="name + '-o'" :id="name + '-o'"
:modelValue="present" :model-value="present"
@change="$emit('update:modelValue', typeof modelValue === 'undefined' ? fallback : undefined)" @change="$emit('update:modelValue', typeof modelValue === 'undefined' ? fallback : undefined)"
> >
{{ $t('settings.style.themes3.define') }} {{ $t('settings.style.themes3.define') }}
@ -50,8 +50,8 @@
> >
<button <button
class="btn button-default" class="btn button-default"
@click="toggleManualEntry"
:title="$t('settings.style.themes3.font.lookup_local_fonts')" :title="$t('settings.style.themes3.font.lookup_local_fonts')"
@click="toggleManualEntry"
> >
<FAIcon <FAIcon
fixed-width fixed-width
@ -72,8 +72,8 @@
> >
<button <button
class="btn button-default" class="btn button-default"
@click="toggleManualEntry"
:title="$t('settings.style.themes3.font.enter_manually')" :title="$t('settings.style.themes3.font.enter_manually')"
@click="toggleManualEntry"
> >
<FAIcon <FAIcon
fixed-width fixed-width

View file

@ -3,7 +3,9 @@
<!-- Default panel contents --> <!-- Default panel contents -->
<div class="panel-heading"> <div class="panel-heading">
<h1 class="title">{{ $t('login.login') }}</h1> <h1 class="title">
{{ $t('login.login') }}
</h1>
</div> </div>
<div class="panel-body"> <div class="panel-body">

View file

@ -136,8 +136,8 @@
</h4> </h4>
<PaletteEditor <PaletteEditor
v-if="expertLevel > 0" v-if="expertLevel > 0"
class="userPalette"
v-model="userPalette" v-model="userPalette"
class="userPalette"
:compact="true" :compact="true"
:apply="true" :apply="true"
@applyPalette="data => setPaletteCustom(data)" @applyPalette="data => setPaletteCustom(data)"

View file

@ -106,7 +106,7 @@
key="hideScrobblesAfter" key="hideScrobblesAfter"
path="hideScrobblesAfter" path="hideScrobblesAfter"
:units="['m', 'h', 'd']" :units="['m', 'h', 'd']"
unitSet="time" unit-set="time"
expert="1" expert="1"
> >
{{ $t('settings.hide_scrobbles_after') }} {{ $t('settings.hide_scrobbles_after') }}

View file

@ -226,8 +226,8 @@
</BooleanSetting> </BooleanSetting>
</li> </li>
<ul <ul
class="setting-list suboptions"
v-if="mergedConfig.useAbsoluteTimeFormat" v-if="mergedConfig.useAbsoluteTimeFormat"
class="setting-list suboptions"
> >
<li> <li>
<UnitSetting <UnitSetting

View file

@ -52,22 +52,34 @@
</teleport> </teleport>
<ul class="setting-list style-metadata"> <ul class="setting-list style-metadata">
<li> <li>
<StringSetting class="meta-field" v-model="name"> <StringSetting
v-model="name"
class="meta-field"
>
{{ $t('settings.style.themes3.editor.style_name') }} {{ $t('settings.style.themes3.editor.style_name') }}
</StringSetting> </StringSetting>
</li> </li>
<li> <li>
<StringSetting class="meta-field" v-model="author"> <StringSetting
v-model="author"
class="meta-field"
>
{{ $t('settings.style.themes3.editor.style_author') }} {{ $t('settings.style.themes3.editor.style_author') }}
</StringSetting> </StringSetting>
</li> </li>
<li> <li>
<StringSetting class="meta-field" v-model="license"> <StringSetting
v-model="license"
class="meta-field"
>
{{ $t('settings.style.themes3.editor.style_license') }} {{ $t('settings.style.themes3.editor.style_license') }}
</StringSetting> </StringSetting>
</li> </li>
<li> <li>
<StringSetting class="meta-field" v-model="website"> <StringSetting
v-model="website"
class="meta-field"
>
{{ $t('settings.style.themes3.editor.style_website') }} {{ $t('settings.style.themes3.editor.style_website') }}
</StringSetting> </StringSetting>
</li> </li>
@ -228,8 +240,8 @@
<Checkbox v-model="isTextAutoPresent" /> <Checkbox v-model="isTextAutoPresent" />
</Tooltip> </Tooltip>
<div <div
class="style-control suboption"
v-if="componentHas('Text')" v-if="componentHas('Text')"
class="style-control suboption"
> >
<label class="label"> <label class="label">
{{ $t('settings.style.themes3.editor.contrast') }} {{ $t('settings.style.themes3.editor.contrast') }}
@ -239,8 +251,7 @@
:contrast="contrast" :contrast="contrast"
/> />
</div> </div>
<div v-if="componentHas('Text')"> <div v-if="componentHas('Text')" />
</div>
<ColorInput <ColorInput
v-if="componentHas('Link')" v-if="componentHas('Link')"
v-model="editedLinkColor" v-model="editedLinkColor"
@ -350,22 +361,22 @@
</Select> </Select>
<SelectMotion <SelectMotion
class="list-select-movement" class="list-select-movement"
:modelValue="palettes" :model-value="palettes"
@update:modelValue="onPalettesUpdate"
:selected-id="selectedPaletteId" :selected-id="selectedPaletteId"
:get-add-value="getNewPalette" :get-add-value="getNewPalette"
@update:modelValue="onPalettesUpdate"
@update:selectedId="e => selectedPaletteId = e" @update:selectedId="e => selectedPaletteId = e"
/> />
<div class="list-edit-area"> <div class="list-edit-area">
<StringSetting <StringSetting
class="palette-name-input"
v-model="selectedPalette.name" v-model="selectedPalette.name"
class="palette-name-input"
> >
{{ $t('settings.style.themes3.palette.name_label') }} {{ $t('settings.style.themes3.palette.name_label') }}
</StringSetting> </StringSetting>
<PaletteEditor <PaletteEditor
class="palette-editor-single"
v-model="selectedPalette" v-model="selectedPalette"
class="palette-editor-single"
/> />
</div> </div>
</div> </div>
@ -373,8 +384,8 @@
key="variables" key="variables"
:label="$t('settings.style.themes3.editor.variables_tab')" :label="$t('settings.style.themes3.editor.variables_tab')"
:model-value="virtualDirectives" :model-value="virtualDirectives"
@update:modelValue="updateVirtualDirectives"
:normalize-shadows="normalizeShadows" :normalize-shadows="normalizeShadows"
@update:modelValue="updateVirtualDirectives"
/> />
</tab-switcher> </tab-switcher>
</div> </div>

View file

@ -26,10 +26,10 @@
<SelectMotion <SelectMotion
class="list-select-movement" class="list-select-movement"
:model-value="modelValue" :model-value="modelValue"
@update:modelValue="e => emit('update:modelValue', e)"
:selected-id="selectedVirtualDirectiveId" :selected-id="selectedVirtualDirectiveId"
@update:selectedId="e => selectedVirtualDirectiveId = e"
:get-add-value="getNewVirtualDirective" :get-add-value="getNewVirtualDirective"
@update:modelValue="e => emit('update:modelValue', e)"
@update:selectedId="e => selectedVirtualDirectiveId = e"
/> />
<div class="list-edit-area"> <div class="list-edit-area">
<div class="variable-selector"> <div class="variable-selector">
@ -41,8 +41,8 @@
{{ ' ' }} {{ ' ' }}
</label> </label>
<input <input
class="input"
v-model="selectedVirtualDirective.name" v-model="selectedVirtualDirective.name"
class="input"
> >
<label <label
class="variable-type-label" class="variable-type-label"
@ -54,13 +54,13 @@
<Select <Select
v-model="selectedVirtualDirectiveValType" v-model="selectedVirtualDirectiveValType"
> >
<option value='shadow'> <option value="shadow">
{{ $t('settings.style.themes3.editor.variables.type_shadow') }} {{ $t('settings.style.themes3.editor.variables.type_shadow') }}
</option> </option>
<option value='color'> <option value="color">
{{ $t('settings.style.themes3.editor.variables.type_color') }} {{ $t('settings.style.themes3.editor.variables.type_color') }}
</option> </option>
<option value='generic'> <option value="generic">
{{ $t('settings.style.themes3.editor.variables.type_generic') }} {{ $t('settings.style.themes3.editor.variables.type_generic') }}
</option> </option>
</Select> </Select>

View file

@ -1,6 +1,9 @@
<template> <template>
<div :class="['Timeline', classes.root]"> <div :class="['Timeline', classes.root]">
<div :class="classes.header" v-if="!embedded"> <div
v-if="!embedded"
:class="classes.header"
>
<TimelineMenu <TimelineMenu
v-if="!embedded" v-if="!embedded"
:timeline-name="timelineName" :timeline-name="timelineName"