* Update dependencies and remove typescript version pinning (fixed upstream) * Fix esling warnings (disabled any and script lang checks) Rewrote clipboard copy (Fixes #3407) Run prettier --------- Co-authored-by: Oleg Lobanov <oleg@lobanov.me>
27 lines
662 B
Vue
27 lines
662 B
Vue
<template>
|
|
<select v-on:change="change" :value="theme">
|
|
<option value="">{{ t("settings.themes.default") }}</option>
|
|
<option value="light">{{ t("settings.themes.light") }}</option>
|
|
<option value="dark">{{ t("settings.themes.dark") }}</option>
|
|
</select>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import type { SelectHTMLAttributes } from "vue";
|
|
import { useI18n } from "vue-i18n";
|
|
|
|
const { t } = useI18n();
|
|
|
|
defineProps<{
|
|
theme: UserTheme;
|
|
}>();
|
|
|
|
const emit = defineEmits<{
|
|
(e: "update:theme", val: string | null): void;
|
|
}>();
|
|
|
|
const change = (event: Event) => {
|
|
emit("update:theme", (event.target as SelectHTMLAttributes)?.value);
|
|
};
|
|
</script>
|