mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-23 14:54:05 +00:00
Chore: Fix lint
This commit is contained in:
parent
63add0376e
commit
9e2c66657d
2 changed files with 107 additions and 30 deletions
|
@ -2,7 +2,12 @@
|
||||||
<div>
|
<div>
|
||||||
<ul class="nav nav-tabs">
|
<ul class="nav nav-tabs">
|
||||||
<li v-for="(tab, index) in tabs" :key="index" class="nav-item">
|
<li v-for="(tab, index) in tabs" :key="index" class="nav-item">
|
||||||
<a class="nav-link" :class="{ active: index == selected }" href="#" @click="$emit('update:selected', index)">
|
<a
|
||||||
|
class="nav-link"
|
||||||
|
:class="{ active: index == selected }"
|
||||||
|
href="#"
|
||||||
|
@click="$emit('update:selected', index)"
|
||||||
|
>
|
||||||
{{ tab }}
|
{{ tab }}
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
@ -45,10 +50,12 @@ export default {
|
||||||
|
|
||||||
&.active {
|
&.active {
|
||||||
background-color: $highlight-white;
|
background-color: $highlight-white;
|
||||||
|
|
||||||
.dark & {
|
.dark & {
|
||||||
color: $dark-font-color;
|
color: $dark-font-color;
|
||||||
background-color: $dark-header-bg;
|
background-color: $dark-header-bg;
|
||||||
}
|
}
|
||||||
|
|
||||||
border-color: transparent transparent $primary transparent;
|
border-color: transparent transparent $primary transparent;
|
||||||
border-width: 1px 1px 6px 1px;
|
border-width: 1px 1px 6px 1px;
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,10 +5,16 @@
|
||||||
{{ $t("Language") }}
|
{{ $t("Language") }}
|
||||||
</label>
|
</label>
|
||||||
<select
|
<select
|
||||||
id="language" :value="language" class="form-select"
|
id="language"
|
||||||
|
:value="language"
|
||||||
|
class="form-select"
|
||||||
@input="$emit('update:language', $event.target.value)"
|
@input="$emit('update:language', $event.target.value)"
|
||||||
>
|
>
|
||||||
<option v-for="(lang, i) in languages" :key="`Lang${i}`" :value="lang.value">
|
<option
|
||||||
|
v-for="(lang, i) in languages"
|
||||||
|
:key="`Lang${i}`"
|
||||||
|
:value="lang.value"
|
||||||
|
>
|
||||||
{{ lang.label }}
|
{{ lang.label }}
|
||||||
</option>
|
</option>
|
||||||
</select>
|
</select>
|
||||||
|
@ -16,26 +22,48 @@
|
||||||
<div class="my-4">
|
<div class="my-4">
|
||||||
<label for="timezone" class="form-label">{{ $t("Theme") }}</label>
|
<label for="timezone" class="form-label">{{ $t("Theme") }}</label>
|
||||||
<div>
|
<div>
|
||||||
<div class="btn-group" role="group" aria-label="Basic checkbox toggle button group">
|
<div
|
||||||
|
class="btn-group"
|
||||||
|
role="group"
|
||||||
|
aria-label="Basic checkbox toggle button group"
|
||||||
|
>
|
||||||
<input
|
<input
|
||||||
id="btncheck1" :checked="userTheme == 'light'" type="radio" class="btn-check" name="theme"
|
id="btncheck1"
|
||||||
autocomplete="off" value="light" @input="$emit('update:userTheme', 'light')"
|
:checked="userTheme == 'light'"
|
||||||
|
type="radio"
|
||||||
|
class="btn-check"
|
||||||
|
name="theme"
|
||||||
|
autocomplete="off"
|
||||||
|
value="light"
|
||||||
|
@input="$emit('update:userTheme', 'light')"
|
||||||
/>
|
/>
|
||||||
<label class="btn btn-outline-primary" for="btncheck1">
|
<label class="btn btn-outline-primary" for="btncheck1">
|
||||||
{{ $t("Light") }}
|
{{ $t("Light") }}
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
<input
|
<input
|
||||||
id="btncheck2" :checked="userTheme == 'dark'" type="radio" class="btn-check" name="theme"
|
id="btncheck2"
|
||||||
autocomplete="off" value="dark" @input="$emit('update:userTheme', 'dark')"
|
:checked="userTheme == 'dark'"
|
||||||
|
type="radio"
|
||||||
|
class="btn-check"
|
||||||
|
name="theme"
|
||||||
|
autocomplete="off"
|
||||||
|
value="dark"
|
||||||
|
@input="$emit('update:userTheme', 'dark')"
|
||||||
/>
|
/>
|
||||||
<label class="btn btn-outline-primary" for="btncheck2">
|
<label class="btn btn-outline-primary" for="btncheck2">
|
||||||
{{ $t("Dark") }}
|
{{ $t("Dark") }}
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
<input
|
<input
|
||||||
id="btncheck3" :checked="userTheme == 'auto'" type="radio" class="btn-check" name="theme"
|
id="btncheck3"
|
||||||
autocomplete="off" value="auto" @input="$emit('update:userTheme', 'auto')"
|
:checked="userTheme == 'auto'"
|
||||||
|
type="radio"
|
||||||
|
class="btn-check"
|
||||||
|
name="theme"
|
||||||
|
autocomplete="off"
|
||||||
|
value="auto"
|
||||||
|
@input="$emit('update:userTheme', 'auto')"
|
||||||
/>
|
/>
|
||||||
<label class="btn btn-outline-primary" for="btncheck3">
|
<label class="btn btn-outline-primary" for="btncheck3">
|
||||||
{{ $t("Auto") }}
|
{{ $t("Auto") }}
|
||||||
|
@ -46,10 +74,19 @@
|
||||||
<div class="my-4">
|
<div class="my-4">
|
||||||
<label class="form-label">{{ $t("Theme - Heartbeat Bar") }}</label>
|
<label class="form-label">{{ $t("Theme - Heartbeat Bar") }}</label>
|
||||||
<div>
|
<div>
|
||||||
<div class="btn-group" role="group" aria-label="Basic checkbox toggle button group">
|
<div
|
||||||
|
class="btn-group"
|
||||||
|
role="group"
|
||||||
|
aria-label="Basic checkbox toggle button group"
|
||||||
|
>
|
||||||
<input
|
<input
|
||||||
id="btncheck4" :checked="userHeartbeatBar == 'normal'" type="radio" class="btn-check"
|
id="btncheck4"
|
||||||
name="heartbeatBarTheme" autocomplete="off" value="normal"
|
:checked="userHeartbeatBar == 'normal'"
|
||||||
|
type="radio"
|
||||||
|
class="btn-check"
|
||||||
|
name="heartbeatBarTheme"
|
||||||
|
autocomplete="off"
|
||||||
|
value="normal"
|
||||||
@input="$emit('update:userHeartbeatBar', 'normal')"
|
@input="$emit('update:userHeartbeatBar', 'normal')"
|
||||||
/>
|
/>
|
||||||
<label class="btn btn-outline-primary" for="btncheck4">
|
<label class="btn btn-outline-primary" for="btncheck4">
|
||||||
|
@ -57,8 +94,13 @@
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
<input
|
<input
|
||||||
id="btncheck5" :checked="userHeartbeatBar == 'bottom'" type="radio" class="btn-check"
|
id="btncheck5"
|
||||||
name="heartbeatBarTheme" autocomplete="off" value="bottom"
|
:checked="userHeartbeatBar == 'bottom'"
|
||||||
|
type="radio"
|
||||||
|
class="btn-check"
|
||||||
|
name="heartbeatBarTheme"
|
||||||
|
autocomplete="off"
|
||||||
|
value="bottom"
|
||||||
@input="$emit('update:userHeartbeatBar', 'bottom')"
|
@input="$emit('update:userHeartbeatBar', 'bottom')"
|
||||||
/>
|
/>
|
||||||
<label class="btn btn-outline-primary" for="btncheck5">
|
<label class="btn btn-outline-primary" for="btncheck5">
|
||||||
|
@ -66,8 +108,13 @@
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
<input
|
<input
|
||||||
id="btncheck6" :checked="userHeartbeatBar == 'none'" type="radio" class="btn-check"
|
id="btncheck6"
|
||||||
name="heartbeatBarTheme" autocomplete="off" value="none"
|
:checked="userHeartbeatBar == 'none'"
|
||||||
|
type="radio"
|
||||||
|
class="btn-check"
|
||||||
|
name="heartbeatBarTheme"
|
||||||
|
autocomplete="off"
|
||||||
|
value="none"
|
||||||
@input="$emit('update:userHeartbeatBar', 'none')"
|
@input="$emit('update:userHeartbeatBar', 'none')"
|
||||||
/>
|
/>
|
||||||
<label class="btn btn-outline-primary" for="btncheck6">
|
<label class="btn btn-outline-primary" for="btncheck6">
|
||||||
|
@ -83,29 +130,53 @@
|
||||||
<div>
|
<div>
|
||||||
<div class="btn-group" role="group">
|
<div class="btn-group" role="group">
|
||||||
<input
|
<input
|
||||||
id="styleElapsedTimeShowNoLine" :checked="styleElapsedTime == 'no-line'" type="radio"
|
id="styleElapsedTimeShowNoLine"
|
||||||
class="btn-check" name="styleElapsedTime" autocomplete="off" value="no-line"
|
:checked="styleElapsedTime == 'no-line'"
|
||||||
|
type="radio"
|
||||||
|
class="btn-check"
|
||||||
|
name="styleElapsedTime"
|
||||||
|
autocomplete="off"
|
||||||
|
value="no-line"
|
||||||
@input="$emit('update:styleElapsedTime', 'no-line')"
|
@input="$emit('update:styleElapsedTime', 'no-line')"
|
||||||
/>
|
/>
|
||||||
<label class="btn btn-outline-primary" for="styleElapsedTimeShowNoLine">
|
<label
|
||||||
|
class="btn btn-outline-primary"
|
||||||
|
for="styleElapsedTimeShowNoLine"
|
||||||
|
>
|
||||||
{{ $t("styleElapsedTimeShowNoLine") }}
|
{{ $t("styleElapsedTimeShowNoLine") }}
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
<input
|
<input
|
||||||
id="styleElapsedTimeShowWithLine" :checked="styleElapsedTime == 'with-line'" type="radio"
|
id="styleElapsedTimeShowWithLine"
|
||||||
class="btn-check" name="styleElapsedTime" autocomplete="off" value="with-line"
|
:checked="styleElapsedTime == 'with-line'"
|
||||||
|
type="radio"
|
||||||
|
class="btn-check"
|
||||||
|
name="styleElapsedTime"
|
||||||
|
autocomplete="off"
|
||||||
|
value="with-line"
|
||||||
@input="$emit('update:styleElapsedTime', 'with-line')"
|
@input="$emit('update:styleElapsedTime', 'with-line')"
|
||||||
/>
|
/>
|
||||||
<label class="btn btn-outline-primary" for="styleElapsedTimeShowWithLine">
|
<label
|
||||||
|
class="btn btn-outline-primary"
|
||||||
|
for="styleElapsedTimeShowWithLine"
|
||||||
|
>
|
||||||
{{ $t("styleElapsedTimeShowWithLine") }}
|
{{ $t("styleElapsedTimeShowWithLine") }}
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
<input
|
<input
|
||||||
id="styleElapsedTimeNone" :checked="styleElapsedTime == 'none'" type="radio" class="btn-check"
|
id="styleElapsedTimeNone"
|
||||||
name="styleElapsedTime" autocomplete="off" value="none"
|
:checked="styleElapsedTime == 'none'"
|
||||||
|
type="radio"
|
||||||
|
class="btn-check"
|
||||||
|
name="styleElapsedTime"
|
||||||
|
autocomplete="off"
|
||||||
|
value="none"
|
||||||
@input="$emit('update:styleElapsedTime', 'none')"
|
@input="$emit('update:styleElapsedTime', 'none')"
|
||||||
/>
|
/>
|
||||||
<label class="btn btn-outline-primary" for="styleElapsedTimeNone">
|
<label
|
||||||
|
class="btn btn-outline-primary"
|
||||||
|
for="styleElapsedTimeNone"
|
||||||
|
>
|
||||||
{{ $t("None") }}
|
{{ $t("None") }}
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
|
@ -151,14 +222,13 @@ export default {
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.btn-check:active+.btn-outline-primary,
|
.btn-check:active + .btn-outline-primary,
|
||||||
.btn-check:checked+.btn-outline-primary,
|
.btn-check:checked + .btn-outline-primary,
|
||||||
.btn-check:hover+.btn-outline-primary {
|
.btn-check:hover + .btn-outline-primary {
|
||||||
color: #fff;
|
color: #fff;
|
||||||
|
|
||||||
.dark & {
|
.dark & {
|
||||||
color: #000;
|
color: #000;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|
Loading…
Reference in a new issue