Add district-styled pages for all 3 main RMO pages
This commit is contained in:
parent
c0e414bdc3
commit
51fe851c5a
15 changed files with 1268 additions and 1089 deletions
29
ts/rmo/view/district/Water.vue
Normal file
29
ts/rmo/view/district/Water.vue
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
<style scoped></style>
|
||||
<template>
|
||||
<Water :slug="slug">
|
||||
<template #header>
|
||||
<!-- Introduction Section -->
|
||||
<HeaderDistrict :district="district" />
|
||||
</template>
|
||||
</Water>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { ref } from "vue";
|
||||
import { computedAsync } from "@vueuse/core";
|
||||
import Water from "@/rmo/content/Water.vue";
|
||||
import type { District } from "@/rmo/type";
|
||||
import { useDistrictStore } from "@/rmo/store/district";
|
||||
import HeaderDistrict from "@/components/HeaderDistrict.vue";
|
||||
|
||||
interface Props {
|
||||
slug: string;
|
||||
}
|
||||
const props = defineProps<Props>();
|
||||
const districtStore = useDistrictStore();
|
||||
|
||||
const district = computedAsync(async (): Promise<District | undefined> => {
|
||||
const districts = await districtStore.get();
|
||||
return districts.find((district: District) => district.slug == props.slug);
|
||||
});
|
||||
</script>
|
||||
Loading…
Add table
Add a link
Reference in a new issue