2023-07-27 05:31:52 +00:00
|
|
|
<!--
|
|
|
|
SPDX-FileCopyrightText: syuilo and other misskey contributors
|
|
|
|
SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
-->
|
|
|
|
|
2019-04-29 00:11:57 +00:00
|
|
|
<template>
|
2023-09-10 09:40:20 +00:00
|
|
|
<div :class="{ [$style.center]: page.alignCenter, [$style.serif]: page.font === 'serif' }" class="_gaps_s">
|
2023-05-30 08:37:38 +00:00
|
|
|
<XBlock v-for="child in page.content" :key="child.id" :page="page" :block="child" :h="2"/>
|
2019-04-29 00:11:57 +00:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
2023-05-14 01:50:21 +00:00
|
|
|
<script lang="ts" setup>
|
|
|
|
import { onMounted, nextTick } from 'vue';
|
|
|
|
import * as Misskey from 'misskey-js';
|
2019-04-29 00:11:57 +00:00
|
|
|
import XBlock from './page.block.vue';
|
|
|
|
|
2023-05-14 01:50:21 +00:00
|
|
|
defineProps<{
|
|
|
|
page: Misskey.entities.Page,
|
|
|
|
}>();
|
2019-04-29 00:11:57 +00:00
|
|
|
</script>
|
|
|
|
|
2023-05-27 02:35:26 +00:00
|
|
|
<style lang="scss" module>
|
|
|
|
.serif {
|
|
|
|
font-family: serif;
|
|
|
|
}
|
2019-04-29 00:11:57 +00:00
|
|
|
|
2023-05-27 02:35:26 +00:00
|
|
|
.center {
|
|
|
|
text-align: center;
|
2020-01-29 19:37:25 +00:00
|
|
|
}
|
2019-04-29 00:11:57 +00:00
|
|
|
</style>
|