init: basic structure

This commit is contained in:
YunYouJun
2022-04-13 22:41:22 +08:00
parent f77549b1cd
commit c355d51874
50 changed files with 7682 additions and 0 deletions

20
src/pages/README.md Normal file
View File

@@ -0,0 +1,20 @@
## File-based Routing
Routes will be auto-generated for Vue files in this dir with the same file structure.
Check out [`vite-plugin-pages`](https://github.com/hannoeru/vite-plugin-pages) for more details.
### Path Aliasing
`~/` is aliased to `./src/` folder.
For example, instead of having
```ts
import { isDark } from '../../../../composables'
```
now, you can use
```ts
import { isDark } from '~/composables'
```

10
src/pages/[...all].vue Executable file
View File

@@ -0,0 +1,10 @@
<template>
<div>
未找到页面
</div>
</template>
<route lang="yaml">
meta:
layout: 404
</route>

13
src/pages/about.md Normal file
View File

@@ -0,0 +1,13 @@
---
title: 关于
---
<div class="text-center">
<!-- You can use Vue components inside markdown -->
<div i-ri-information-line class="text-4xl -mb-6 m-auto" />
<h3>关于</h3>
</div>
**🍜 好的,今天我们来做菜!**
代码请见 [YunYouJun/cook](https://github.com/YunYouJun/cook)。

10
src/pages/index.vue Normal file
View File

@@ -0,0 +1,10 @@
<template>
<div>
<div text-4xl m="t-4">
<div i-mdi-pot-steam-outline inline-block />
</div>
<p m="2">
好的今天我们来做菜
</p>
</div>
</template>