Skip to content

Commit 6f44a63

Browse files
docs: ✏️ 文档添加生活小工具
1 parent 4cfd1e5 commit 6f44a63

File tree

9 files changed

+56
-35
lines changed

9 files changed

+56
-35
lines changed

docs/.vitepress/config.mts

Lines changed: 6 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,18 @@
11
/*
22
* @Author: weisheng
33
* @Date: 2023-07-27 10:26:09
4-
* @LastEditTime: 2024-10-10 14:08:16
4+
* @LastEditTime: 2024-11-03 13:30:06
55
* @LastEditors: weisheng
66
* @Description:
77
* @FilePath: \wot-design-uni\docs\.vitepress\config.mts
88
* 记得注释
99
*/
1010
import { defineConfig } from 'vitepress';
1111
import viteCompression from 'vite-plugin-compression'
12-
import AutoImport from 'unplugin-auto-import/vite'
13-
import Components from 'unplugin-vue-components/vite'
14-
import { ElementPlusResolver } from 'unplugin-vue-components/resolvers'
15-
1612

1713
export default defineConfig({
1814
vite: {
1915
plugins: [
20-
AutoImport({
21-
resolvers: [ElementPlusResolver()],
22-
}),
23-
Components({
24-
resolvers: [ElementPlusResolver()],
25-
}),
2616
viteCompression({
2717
verbose: true,
2818
disable: false,
@@ -32,19 +22,6 @@ export default defineConfig({
3222
})
3323
],
3424
ssr: { noExternal: ['element-plus'] }
35-
// build: {
36-
// terserOptions: {
37-
// compress: {
38-
// //生产环境时移除console
39-
// drop_console: true,
40-
// drop_debugger: true
41-
// }
42-
// },
43-
// // 关闭文件计算
44-
// reportCompressedSize: false,
45-
// // 关闭生成map文件 可以达到缩小打包体积
46-
// sourcemap: false // 这个生产环境一定要关闭,不然打包的产物会很大
47-
// }
4825
},
4926
title: `Wot Design Uni`,
5027
description: '一个参照wot-design打造的uni-app组件库',
@@ -138,9 +115,9 @@ export default defineConfig({
138115
{
139116
text: '周边生态',
140117
items: [
118+
{ text: '快速上手项目', link: 'https://github.com/Moonofweisheng/wot-demo' },
141119
{ text: 'Vue3 uni-app路由库', link: 'https://moonofweisheng.github.io/uni-mini-router/' },
142120
{ text: '多平台小程序CI工具', link: 'https://github.com/Moonofweisheng/uni-mini-ci' },
143-
{ text: '快速上手项目', link: 'https://github.com/Moonofweisheng/wot-starter-retail' },
144121
{ text: 'Uni Helper', link: 'https://uni-helper.js.org/' },
145122
],
146123
},
@@ -184,6 +161,10 @@ export default defineConfig({
184161
text: '榜上有名',
185162
link: '/reward/donor',
186163
},
164+
{
165+
text: '🤖 生活小工具',
166+
link: '/reward/living',
167+
},
187168
],
188169

189170
'/component/': [

docs/.vitepress/theme/index.ts

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
/*
2+
* @Author: weisheng
3+
* @Date: 2024-10-12 22:09:33
4+
* @LastEditTime: 2024-11-03 13:26:13
5+
* @LastEditors: weisheng
6+
* @Description:
7+
* @FilePath: \wot-design-uni\docs\.vitepress\theme\index.ts
8+
* 记得注释
9+
*/
110
import { h } from 'vue'
211
import Theme from 'vitepress/theme'
312
import './styles/vars.css'
@@ -10,7 +19,9 @@ import CustomFooter from './components/CustomFooter.vue'
1019
import SvgImage from './components/SvgImage.vue'
1120
import HomeStar from './components/HomeStar.vue'
1221
import frame from './components/frame.vue'
13-
import { ElTag, ElLink } from 'element-plus'
22+
import ElementPlus from 'element-plus'
23+
import 'element-plus/dist/index.css'
24+
1425

1526
export default {
1627
...Theme,
@@ -25,7 +36,6 @@ export default {
2536
enhanceApp({ app }) {
2637
app.component('SvgImage', SvgImage)
2738
app.component('frame', frame)
28-
app.component('ElTag', ElTag)
29-
app.component('ElLink', ElLink)
39+
app.use(ElementPlus)
3040
},
3141
}

docs/guide/introduction.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,12 @@
5353
我们非常欢迎大家一起贡献优秀的 Demo 与案例,欢迎在此 [issue](https://github.com/Moonofweisheng/wot-design-uni/issues/16) 提交案例。
5454

5555

56+
## 赞助我们
57+
58+
如果您认为 Wot Design Uni 帮助到了您的开发工作,您可以选择[赞助](/reward/reward.html)我们,赞助无门槛,哪怕是一杯柠檬水也好。
59+
60+
捐赠后您的昵称、留言等将会展示在[捐赠榜单](/reward/donor.html)中。
61+
5662
## 周边生态
5763

5864
| 项目 | 描述 |
@@ -67,7 +73,6 @@
6773
| [wot-design-uni AI 助手](https://www.coze.cn/store/bot/7347916532258701363) | 一个能回答你关于 wot-design-uni 组件库问题的智能助手 |
6874
| [uni-ku-root](https://github.com/uni-ku/root) | 一个模拟 App.vue 原有能力的根组件插件 |
6975

70-
7176
## 鸣谢
7277

7378
- [wot-design](https://github.com/jd-ftf/wot-design-mini) - 感谢 wot-design 团队多年来的不断维护,让 wot-design-uni 能够站在巨人的肩膀上。

docs/index.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,17 @@ hero:
1313
alt: Wot Design
1414
actions:
1515
- theme: brand
16-
text: 快速上手
17-
link: /guide/quick-use
16+
text: 起步
17+
link: /guide/introduction
1818
- theme: alt
1919
text: 常见问题
2020
link: /guide/common-problems
2121
- theme: alt
2222
text: 组件列表
2323
link: /component/button
24+
- theme: brand
25+
text: 🤖 生活小工具
26+
link: /reward/living
2427
- theme: brand
2528
text: 🥤一杯咖啡
2629
link: /reward/reward

docs/public/QQ.png

-8.83 KB
Binary file not shown.

docs/public/salary-calculator.jpg

46.6 KB
Loading

docs/reward/donor.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
感谢各位捐赠者对本项目的支持,以下排名不分先后,按时间顺序排列。
44

5-
:::tip
6-
捐赠后,请发送邮件到1780903673@qq.com或者通过 github、微信群等社交平台告知要展示的捐赠者名称、留言、链接 (链接可以是您的博客、github、个人网站、公司产品等)
5+
:::tip 提醒
6+
捐赠后,可以发送邮件到1780903673@qq.com或者通过github、微信群等社交平台告知要展示的捐赠者名称、留言、链接 (链接可以是您的博客、github、个人网站、公司产品等),如果可以,请务必留下你的Github用户名。
77
:::
88

99
## 捐赠榜单

docs/reward/living.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# 🤖 生活小工具
2+
3+
本章节提供了一些工作、生活中常用的一些小工具,大家可以使用,也是对我们的支持。
4+
5+
如果对您有帮助,可以点赞转发给朋友,谢谢!
6+
7+
## 工具列表
8+
9+
<el-card style="max-width: 250px" shadow="hover">
10+
<template #header>
11+
<span style=" font-size:18px;font-wight:500">🪙 薪资速算器</span>
12+
</template>
13+
<el-image
14+
:src="salaryCalculator"
15+
style="width: 100%"
16+
/>
17+
</el-card>
18+
19+
<script setup>
20+
import salaryCalculator from '/salary-calculator.jpg'
21+
22+
</script>

docs/reward/reward.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
如果您认为本项目对你的工作起到了帮助,可以通过以下方式捐助组件库的研发工作,使本项目持续发展下去,捐赠后你的头像、昵称和主页将会被展示在 `wot design uni` 文档的捐赠榜单上。
44

5-
:::tip
6-
捐赠后,可以发送邮件到1780903673@qq.com或者通过github、微信群等社交平台告知要展示的捐赠者名称、留言、链接 (链接可以是您的博客、github、个人网站、公司产品等)
5+
:::tip 提醒
6+
捐赠后,可以发送邮件到1780903673@qq.com或者通过github、微信群等社交平台告知要展示的捐赠者名称、留言、链接 (链接可以是您的博客、github、个人网站、公司产品等),如果可以,请务必留下你的Github用户名。
77
:::
88

99

0 commit comments

Comments
 (0)