refactor: spacing
Some checks failed
Spell Check / Spell Check with Typos (push) Failing after 8s

This commit is contained in:
Methapon2001 2025-03-18 09:58:24 +07:00
parent a0f1d4d88a
commit 4eba859301

View file

@ -2,7 +2,6 @@
// NOTE: Library
import { storeToRefs } from 'pinia';
import { onMounted } from 'vue';
import { useRouter } from 'vue-router';
// NOTE: Components
@ -10,24 +9,18 @@ import { useRouter } from 'vue-router';
import { useManualStore } from 'src/stores/manual';
import { useNavigator } from 'src/stores/navigator';
import Expansion from 'src/components/14_report/Expansion.vue';
import { Icon } from '@iconify/vue/dist/iconify.js';
// NOTE: Variable
const manualStore = useManualStore();
const navigatorStore = useNavigator();
const { dataManual } = storeToRefs(manualStore);
const router = useRouter();
async function fetchManual() {
const res = await manualStore.getManual();
dataManual.value = res ? res : [];
}
function navigateTo(path: string) {
router.push(`${path}`);
}
onMounted(async () => {
navigatorStore.current.title = 'menu.manual.title';
navigatorStore.current.path = [{ text: '' }];
@ -40,7 +33,12 @@ onMounted(async () => {
class="column full-height no-wrap surface-1 rounded bordered overflow-hidden q-pa-sm"
>
<section class="scroll q-gutter-y-sm">
<q-expansion-item v-for="v in dataManual" :content-inset-level="1">
<q-expansion-item
v-for="v in dataManual"
:content-inset-level="0.5"
class="rounded overflow-hidden bordered"
dense
>
<template #header>
<div class="row items-center full-width">
<Icon
@ -52,12 +50,13 @@ onMounted(async () => {
{{ $i18n.locale === 'eng' ? v.labelEN : v.label }}
</div>
</template>
<q-item
v-for="x in v.page"
clickable
dense
class="dot items-center rounded"
@click="() => navigateTo(`/manual/${v.category}/${x.name}`)"
class="dot items-center rounded q-my-xs"
:to="`/manual/${v.category}/${x.name}`"
>
<Icon
v-if="!!x.icon"