Initial project

This commit is contained in:
Timi
2025-07-08 16:28:40 +08:00
parent 03cf3638d7
commit fb1438c393
44 changed files with 13002 additions and 129 deletions

29
examples/Root.vue Normal file
View File

@ -0,0 +1,29 @@
<template>
<root-layout v-if="isReady" icp="test icp" author="test cr name">
<authorize-form class="test" />
<textarea v-text="JSON.stringify(userStore.loginUser)"></textarea>
<comment :bizType="CommentBizType.ARTICLE" :bizId="1" />
</root-layout>
<popup />
<user-profile-popup />
</template>
<script lang="ts" setup>
import { CommentBizType, Popup, SettingMapper, userStore } from "timi-web";
import { AuthorizeForm, Comment, RootLayout, UserProfilePopup } from "~/components";
const isReady = ref(false);
onMounted(async () => {
await SettingMapper.loadSetting();
await userStore.login4Storage();
isReady.value = true;
});
</script>
<style lang="less" scoped>
.test {
width: 20rem;
margin: 2rem auto;
}
</style>