2024-06-19 08:16:28 +02:00
|
|
|
<template>
|
2024-07-22 01:05:51 +02:00
|
|
|
<div class="w-full px-8 py-4 bg-background-700 hover:bg-background-500 duration-100 h-full">
|
2024-07-21 17:58:40 +02:00
|
|
|
<div class="max-w-7xl mx-auto h-full">
|
2024-07-21 23:59:19 +02:00
|
|
|
<SettingBoolean v-if="setting.type === SettingType.Boolean" :id="id" />
|
|
|
|
|
|
|
|
|
|
<SettingCode v-else-if="setting.type === SettingType.Code" :id="id" />
|
|
|
|
|
<SettingOther v-else :id="id" />
|
2024-06-19 08:16:28 +02:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script lang="ts" setup>
|
2024-07-21 18:53:16 +02:00
|
|
|
import { type SettingIds, SettingType } from "~/settings";
|
2024-07-21 23:59:19 +02:00
|
|
|
import SettingBoolean from "./types/Boolean.vue";
|
|
|
|
|
import SettingCode from "./types/Code.vue";
|
|
|
|
|
import SettingOther from "./types/Other.vue";
|
2024-06-19 08:16:28 +02:00
|
|
|
|
|
|
|
|
const props = defineProps<{
|
2024-07-21 18:53:16 +02:00
|
|
|
id: SettingIds;
|
2024-06-19 08:16:28 +02:00
|
|
|
}>();
|
|
|
|
|
|
2024-07-21 18:53:16 +02:00
|
|
|
const setting = useSetting(props.id);
|
2024-06-19 08:16:28 +02:00
|
|
|
</script>
|