init: basic structure
This commit is contained in:
20
src/pages/README.md
Normal file
20
src/pages/README.md
Normal 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
10
src/pages/[...all].vue
Executable file
@@ -0,0 +1,10 @@
|
||||
<template>
|
||||
<div>
|
||||
未找到页面
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<route lang="yaml">
|
||||
meta:
|
||||
layout: 404
|
||||
</route>
|
||||
13
src/pages/about.md
Normal file
13
src/pages/about.md
Normal 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
10
src/pages/index.vue
Normal 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>
|
||||
Reference in New Issue
Block a user