chore: install prettier

This commit is contained in:
Viet An
2026-05-04 15:22:27 +07:00
parent 93d29ca7d8
commit bd58e2b847
267 changed files with 22950 additions and 13581 deletions

View File

@@ -2,9 +2,18 @@
<div>
<div class="fixed-grid has-3-cols">
<div class="grid">
<div class="cell" v-for="rule in recordRules" :key="rule.code">
<div
class="cell"
v-for="rule in recordRules"
:key="rule.code"
>
<label class="radio">
<input type="radio" name="answer" :value="rule.code" v-model="recordCurrent" />
<input
type="radio"
name="answer"
:value="rule.code"
v-model="recordCurrent"
/>
{{ isVietnamese ? rule.vi : rule.en }}
</label>
</div>
@@ -27,14 +36,21 @@ const recordRules = ref([]);
const recordCurrent = ref({});
let current = {};
let foundCurrent = await $getdata(props.api, { category: "system", classify: "current", code: "rule" });
let foundCurrent = await $getdata(props.api, {
category: "system",
classify: "current",
code: "rule",
});
if (foundCurrent !== "error" && foundCurrent.length > 0) {
recordCurrent.value = foundCurrent[0].detail;
current.value = foundCurrent[0];
}
let foundRules = await $getdata(props.api, { category: "system", classify: "rules" });
let foundRules = await $getdata(props.api, {
category: "system",
classify: "rules",
});
if (foundRules !== "error" && foundRules.length > 0) {
recordRules.value = foundRules;
}