Auto Router, Discord Rules Page, & Vi18n lib (#52)
feat: Auto Router, Discord Rules Page, & Vi18n lib (#52)
This commit is contained in:
parent
262b8c578f
commit
8c59485898
51 changed files with 3479 additions and 782 deletions
|
|
@ -0,0 +1,20 @@
|
|||
<script setup lang="ts">
|
||||
import type { Locale } from "@/i18n";
|
||||
import type { Value } from "@/utils/types";
|
||||
import type { DeepReadonly } from "vue";
|
||||
import MarkdownDisplay from "../atoms/MarkdownDisplay.vue";
|
||||
|
||||
defineProps<{
|
||||
section: DeepReadonly<
|
||||
Value<Locale["discord"]["rulesPage"]["rules"]>["section"]
|
||||
>;
|
||||
ruleNumber: number;
|
||||
}>();
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<section class="section content" :id="`rule-${ruleNumber}`">
|
||||
<h2>{{ section.header({ ruleNumber }) }}</h2>
|
||||
<MarkdownDisplay :markdown="section.body()" />
|
||||
</section>
|
||||
</template>
|
||||
Loading…
Add table
Add a link
Reference in a new issue