From cb43aa125bc413d93b9b6905495e04626c66405b Mon Sep 17 00:00:00 2001 From: Kagol Date: Tue, 6 Sep 2022 22:06:40 +0800 Subject: [PATCH 1/2] docs: update README --- README.md | 9 +++++---- README.zh-CN.md | 23 ++++++++++++++++++++++- 2 files changed, 27 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index fb74f536c4..3faae384d3 100644 --- a/README.md +++ b/README.md @@ -12,14 +12,16 @@ English | [简体中文](README.zh-CN.md) 🌈 Features: -- 📦 40 high-quality components that are simple, easy to use, and flexible. +- 📦 55 high-quality components that are simple, easy to use, and flexible. - 🔑 Support for TypeScript. - ⛰️ Support for Nuxt3. - ⚡ Support for on-demand import. - 🌍 Support internationalization. - 🎨 Support theme customization, and built-in seven beautiful themes such as `Galaxy`, `Sweet` and `Provence`. -## 🌐 Installation +## 🔧 Usage + +First install vue-devui with npm, yarn or pnpm. Install with npm @@ -39,7 +41,6 @@ Install with pnpm pnpm add vue-devui ``` -## 🔧 Usage Then import `DevUI` in the `main.ts` file: @@ -68,7 +69,7 @@ Then you can use the vue devui component(such as ``) in the `App.vue` git clone git@github.com:DevCloudFE/vue-devui.git cd vue-devui pnpm install -pnpm scripts run dev +pnpm dev ``` Open your browser and visit: [http://localhost:3000/](http://localhost:3000/). diff --git a/README.zh-CN.md b/README.zh-CN.md index 9a26544655..c8300e2005 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -12,7 +12,7 @@ 🌈 特性: -- 📦 包含 40 个简洁、易用、灵活的高质量组件 +- 📦 包含 55 个简洁、易用、灵活的高质量组件 - 🔑 支持 TypeScript - ⛰️ 支持 Nuxt3 - ⚡ 支持按需引入 @@ -63,6 +63,12 @@ pnpm dev 打开浏览器访问:[http://localhost:3000/](http://localhost:3000/) +或者你也可以运行以下命令: + +```sh +pnpm scripts +``` + ## 🤝 参与贡献 欢迎你参与到 Vue DevUI 项目的建设中来!🎉 @@ -138,6 +144,21 @@ pnpm dev
daviForevel

💻
lj1990111

💻
newer2333

💻 +
哈士奇-黄

💻 +

💻 +
Anthonio OuYang

💻 +
FlingYP

💻 + + +
xzxldl55

💻 +
79

💻 +
wailen

💻 +
jenson

💻 +
dbsdaicheng

⚠️ +
qinwencheng

💻 +
Angelanana

💻 +
joo1es

💻 +
handsomezyw

💻 From c7ddad48fde4e1d2b1183a9c07111a828641dcde Mon Sep 17 00:00:00 2001 From: Kagol Date: Tue, 6 Sep 2022 22:10:33 +0800 Subject: [PATCH 2/2] fix: fix build fail caused by ssr --- packages/devui-vue/docs/.vitepress/devui-theme/const.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/devui-vue/docs/.vitepress/devui-theme/const.ts b/packages/devui-vue/docs/.vitepress/devui-theme/const.ts index 0ed7ffb421..46a248ec2a 100644 --- a/packages/devui-vue/docs/.vitepress/devui-theme/const.ts +++ b/packages/devui-vue/docs/.vitepress/devui-theme/const.ts @@ -1,5 +1,7 @@ +import { inBrowser } from 'vitepress'; + export const ZH_CN = 'zh-CN'; export const EN_US = 'en-US'; export const DEFAULT_LANG = ZH_CN; export const LANG_KEY = 'vue-devui-preferred-lang'; -export const CURRENT_LANG = localStorage.getItem(LANG_KEY) || DEFAULT_LANG; +export const CURRENT_LANG = (inBrowser && localStorage.getItem(LANG_KEY)) || DEFAULT_LANG;