feat: 删除不必要的页面和组件,更新路由类型定义,添加新链接到文档
This commit is contained in:
@ -13,3 +13,5 @@ This is {{frontmatter.name}}
|
||||
- [Unocss 快速、简单最新的Web项目大屏模板](https://github.com/gitboyzcf/vue3-simple-screen)
|
||||
- [Vue3、Vite5、Primevue、Oxlint、Husky9 简单快速搭建最新的Web项目模板](https://juejin.cn/post/7438884007084032035)
|
||||
- [Large, small, and dynamic viewport units polyfill](https://github.com/joppuyo/large-small-dynamic-viewport-units-polyfill)
|
||||
- [VitePressShiki式语法高亮器](https://shiki.tmrs.site/packages/vitepress)
|
||||
- [密码强度](https://zxcvbn-ts.github.io/zxcvbn/guide/getting-started/)
|
||||
|
@ -1,53 +0,0 @@
|
||||
<script setup lang="ts">
|
||||
import { createGetRoutes, setupLayoutsResult } from '@/plugins/router';
|
||||
import type { MenuItem } from 'primevue/menuitem';
|
||||
import { routes } from 'vue-router/auto-routes';
|
||||
const router = useRouter();
|
||||
|
||||
const list = [
|
||||
{
|
||||
title: 'routes',
|
||||
json: routes,
|
||||
},
|
||||
{
|
||||
title: 'setupLayoutsResult',
|
||||
json: setupLayoutsResult,
|
||||
},
|
||||
{
|
||||
title: 'createGetRoutes(router)()',
|
||||
json: createGetRoutes(router)().map((route) => ({
|
||||
...route,
|
||||
instances: undefined,
|
||||
leaveGuards: undefined,
|
||||
updateGuards: undefined,
|
||||
enterCallbacks: undefined,
|
||||
components: undefined,
|
||||
})),
|
||||
},
|
||||
{
|
||||
title: 'router.getRoutes()',
|
||||
json: router.getRoutes().map((route) => ({
|
||||
...route,
|
||||
instances: undefined,
|
||||
leaveGuards: undefined,
|
||||
updateGuards: undefined,
|
||||
enterCallbacks: undefined,
|
||||
components: undefined,
|
||||
})),
|
||||
},
|
||||
];
|
||||
</script>
|
||||
<template>
|
||||
<Tabs :value="list[0].title" scrollable>
|
||||
<TabList>
|
||||
<Tab v-for="item in list" :key="item.title" :value="item.title">{{ item.title }}</Tab>
|
||||
</TabList>
|
||||
<TabPanels>
|
||||
<TabPanel v-for="item in list" :key="item.title" :value="item.title">
|
||||
<pre>{{ item.json }}</pre>
|
||||
</TabPanel>
|
||||
</TabPanels>
|
||||
</Tabs>
|
||||
</template>
|
||||
|
||||
<style scoped></style>
|
@ -1,19 +0,0 @@
|
||||
<template>
|
||||
<div>
|
||||
<h1>Some Page</h1>
|
||||
<button class="green" @click="$router.back()">Back</button>
|
||||
<main>
|
||||
<ul>
|
||||
<li>
|
||||
密码强度
|
||||
<a class="green" target="_blank" href="https://zxcvbn-ts.github.io/zxcvbn/guide/getting-started/"
|
||||
>@zxcvbn-ts/core</a
|
||||
>
|
||||
</li>
|
||||
<li>
|
||||
vitepress高亮: <a class="green" target="_blank" href="https://shiki.tmrs.site/packages/vitepress">Shiki</a>
|
||||
</li>
|
||||
</ul>
|
||||
</main>
|
||||
</div>
|
||||
</template>
|
Reference in New Issue
Block a user