chore: Rename the website directory to docs
|
@ -65,10 +65,10 @@ jobs:
|
||||||
password: ${{ secrets.WEB_ELE_FTP_PASSWORD }}
|
password: ${{ secrets.WEB_ELE_FTP_PASSWORD }}
|
||||||
local-dir: ./apps/web-ele/dist/
|
local-dir: ./apps/web-ele/dist/
|
||||||
|
|
||||||
- name: Sync Website files
|
- name: Sync Docs files
|
||||||
uses: SamKirkland/FTP-Deploy-Action@v4.3.5
|
uses: SamKirkland/FTP-Deploy-Action@v4.3.5
|
||||||
with:
|
with:
|
||||||
server: ${{ secrets.PRO_FTP_HOST }}
|
server: ${{ secrets.PRO_FTP_HOST }}
|
||||||
username: ${{ secrets.WEBSITE_FTP_ACCOUNT }}
|
username: ${{ secrets.WEBSITE_FTP_ACCOUNT }}
|
||||||
password: ${{ secrets.WEBSITE_FTP_PASSWORD }}
|
password: ${{ secrets.WEBSITE_FTP_PASSWORD }}
|
||||||
local-dir: ./website/.vitepress/dist/
|
local-dir: ./docs/.vitepress/dist/
|
||||||
|
|
|
@ -212,7 +212,7 @@ function nav(): DefaultTheme.NavItem[] {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
link: '/commercial/community',
|
link: '/commercial/community',
|
||||||
text: '👨👦👦 社区',
|
text: '👨👦👦 社区交流',
|
||||||
// items: [
|
// items: [
|
||||||
// {
|
// {
|
||||||
// link: 'https://qun.qq.com/qqweb/qunpro/share?_wv=3&_wwv=128&appChannel=share&inviteCode=22ySzj7pKiw&businessType=9&from=246610&biz=ka&mainSourceId=share&subSourceId=others&jumpsource=shorturl#/pc',
|
// link: 'https://qun.qq.com/qqweb/qunpro/share?_wv=3&_wwv=128&appChannel=share&inviteCode=22ySzj7pKiw&businessType=9&from=246610&biz=ka&mainSourceId=share&subSourceId=others&jumpsource=shorturl#/pc',
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"name": "@vben/website",
|
"name": "@vben/docs",
|
||||||
"version": "5.0.0",
|
"version": "5.0.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
|
@ -75,7 +75,7 @@ npm 脚本是项目常见的配置,用于执行一些常见的任务,比如
|
||||||
// 启动web-antd应用
|
// 启动web-antd应用
|
||||||
"dev:antd": "pnpm -F @vben/web-antd run dev",
|
"dev:antd": "pnpm -F @vben/web-antd run dev",
|
||||||
// 启动文档
|
// 启动文档
|
||||||
"dev:docs": "pnpm -F @vben/website run dev",
|
"dev:docs": "pnpm -F @vben/docs run dev",
|
||||||
// 启动 element plus应用
|
// 启动 element plus应用
|
||||||
"dev:ele": "pnpm -F @vben/web-ele run dev",
|
"dev:ele": "pnpm -F @vben/web-ele run dev",
|
||||||
// 启动web-naive应用
|
// 启动web-naive应用
|
||||||
|
@ -135,7 +135,7 @@ pnpm dev:naive
|
||||||
pnpm dev:ele
|
pnpm dev:ele
|
||||||
```
|
```
|
||||||
|
|
||||||
运行 `website` 应用:
|
运行 `docs` 应用:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
pnpm dev:docs
|
pnpm dev:docs
|
|
@ -1,9 +1,9 @@
|
||||||
# 关于 Vben Admin
|
# 关于 Vben Admin
|
||||||
|
|
||||||
::: info 你正在阅读的是 [Vben Admin](https://github.com/vbenjs/vue-vben-admin) 的文档!
|
::: info 你正在阅读的是 [Vben Admin](https://github.com/vbenjs/vue-vben-admin) `5.0`版本的文档!
|
||||||
|
|
||||||
- Vben Admin 2.x 目前已经存档,只修复一些严重的问题。
|
- Vben Admin 2.x 目前已经存档,只修复一些严重的问题。
|
||||||
- 新版本与旧版本不兼容,如果你使用的是旧版本,请查看 [Vue Vben Admin 2.x 文档](https://doc.vvbin.cn)
|
- 新版本与旧版本不兼容,如果你使用的是旧版本(v2、v3),请查看 [Vue Vben Admin 2.x 文档](https://doc.vvbin.cn)
|
||||||
- 如发现文档有误,欢迎提提交 Issue 帮助我们改进。
|
- 如发现文档有误,欢迎提提交 Issue 帮助我们改进。
|
||||||
- 如果你只是想体验一下,你可以查看 [快速开始](./quick-start.md)。
|
- 如果你只是想体验一下,你可以查看 [快速开始](./quick-start.md)。
|
||||||
|
|
Before Width: | Height: | Size: 5.3 KiB After Width: | Height: | Size: 5.3 KiB |
Before Width: | Height: | Size: 393 KiB After Width: | Height: | Size: 393 KiB |
Before Width: | Height: | Size: 87 KiB After Width: | Height: | Size: 87 KiB |
Before Width: | Height: | Size: 471 KiB After Width: | Height: | Size: 471 KiB |
Before Width: | Height: | Size: 556 KiB After Width: | Height: | Size: 556 KiB |
Before Width: | Height: | Size: 123 KiB After Width: | Height: | Size: 123 KiB |
Before Width: | Height: | Size: 447 KiB After Width: | Height: | Size: 447 KiB |
Before Width: | Height: | Size: 448 KiB After Width: | Height: | Size: 448 KiB |
Before Width: | Height: | Size: 1000 KiB After Width: | Height: | Size: 1000 KiB |
Before Width: | Height: | Size: 249 KiB After Width: | Height: | Size: 249 KiB |
Before Width: | Height: | Size: 400 KiB After Width: | Height: | Size: 400 KiB |
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 3.3 KiB |
Before Width: | Height: | Size: 472 B After Width: | Height: | Size: 472 B |
Before Width: | Height: | Size: 4.0 KiB After Width: | Height: | Size: 4.0 KiB |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
|
@ -41,8 +41,7 @@ export async function typescript(): Promise<Linter.FlatConfig[]> {
|
||||||
],
|
],
|
||||||
|
|
||||||
'@typescript-eslint/consistent-type-definitions': ['warn', 'interface'],
|
'@typescript-eslint/consistent-type-definitions': ['warn', 'interface'],
|
||||||
'@typescript-eslint/explicit-function-rkeyword-spacingeturn-type':
|
'@typescript-eslint/explicit-function-return-type': 'off',
|
||||||
'off',
|
|
||||||
'@typescript-eslint/explicit-module-boundary-types': 'off',
|
'@typescript-eslint/explicit-module-boundary-types': 'off',
|
||||||
'@typescript-eslint/no-empty-function': [
|
'@typescript-eslint/no-empty-function': [
|
||||||
'error',
|
'error',
|
||||||
|
|
|
@ -116,7 +116,7 @@ const customConfig: Linter.FlatConfig[] = [
|
||||||
},
|
},
|
||||||
// 后端模拟代码,不需要太多规则
|
// 后端模拟代码,不需要太多规则
|
||||||
{
|
{
|
||||||
files: ['apps/backend-mock/**/**', 'website/**/**'],
|
files: ['apps/backend-mock/**/**', 'docs/**/**'],
|
||||||
rules: {
|
rules: {
|
||||||
'@typescript-eslint/no-extraneous-class': 'off',
|
'@typescript-eslint/no-extraneous-class': 'off',
|
||||||
'n/no-extraneous-import': 'off',
|
'n/no-extraneous-import': 'off',
|
||||||
|
|
|
@ -39,7 +39,7 @@
|
||||||
"commit": "czg",
|
"commit": "czg",
|
||||||
"dev": "turbo-run dev",
|
"dev": "turbo-run dev",
|
||||||
"dev:antd": "pnpm -F @vben/web-antd run dev",
|
"dev:antd": "pnpm -F @vben/web-antd run dev",
|
||||||
"dev:docs": "pnpm -F @vben/website run dev",
|
"dev:docs": "pnpm -F @vben/docs run dev",
|
||||||
"dev:ele": "pnpm -F @vben/web-ele run dev",
|
"dev:ele": "pnpm -F @vben/web-ele run dev",
|
||||||
"dev:naive": "pnpm -F @vben/web-naive run dev",
|
"dev:naive": "pnpm -F @vben/web-naive run dev",
|
||||||
"format": "vsh lint --format",
|
"format": "vsh lint --format",
|
||||||
|
|
|
@ -507,12 +507,12 @@ $namespace: vben;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.is-light {
|
&.is-light {
|
||||||
--menu-item-active-color: hsl(var(--primary-foreground));
|
--menu-item-active-color: hsl(var(--primary));
|
||||||
--menu-item-active-background-color: hsl(var(--primary));
|
--menu-item-active-background-color: hsl(var(--primary) / 15%);
|
||||||
--menu-item-hover-background-color: hsl(var(--accent));
|
--menu-item-hover-background-color: hsl(var(--accent));
|
||||||
--menu-item-hover-color: hsl(var(--primary));
|
--menu-item-hover-color: hsl(var(--primary));
|
||||||
--menu-submenu-active-color: hsl(var(--primary-foreground));
|
--menu-submenu-active-color: hsl(var(--primary));
|
||||||
--menu-submenu-active-background-color: hsl(var(--primary));
|
--menu-submenu-active-background-color: hsl(var(--primary) / 30%);
|
||||||
--menu-submenu-hover-color: hsl(var(--primary));
|
--menu-submenu-hover-color: hsl(var(--primary));
|
||||||
--menu-submenu-hover-background-color: hsl(var(--accent));
|
--menu-submenu-hover-background-color: hsl(var(--accent));
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,6 +22,12 @@ const { toast } = useToast();
|
||||||
|
|
||||||
async function getVersionTag() {
|
async function getVersionTag() {
|
||||||
try {
|
try {
|
||||||
|
if (
|
||||||
|
location.hostname === 'localhost' ||
|
||||||
|
location.hostname === '127.0.0.1'
|
||||||
|
) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
const response = await fetch('/', {
|
const response = await fetch('/', {
|
||||||
cache: 'no-cache',
|
cache: 'no-cache',
|
||||||
method: 'HEAD',
|
method: 'HEAD',
|
||||||
|
@ -48,7 +54,7 @@ async function checkForUpdates() {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (lastVersionTag.value !== versionTag) {
|
if (lastVersionTag.value !== versionTag && versionTag) {
|
||||||
clearInterval(timer.value);
|
clearInterval(timer.value);
|
||||||
handleNotice(versionTag);
|
handleNotice(versionTag);
|
||||||
}
|
}
|
||||||
|
|
479
pnpm-lock.yaml
|
@ -10,4 +10,4 @@ packages:
|
||||||
- "packages/business/*"
|
- "packages/business/*"
|
||||||
- "apps/*"
|
- "apps/*"
|
||||||
- "scripts/*"
|
- "scripts/*"
|
||||||
- "website"
|
- "docs"
|
||||||
|
|
|
@ -16,6 +16,10 @@
|
||||||
"name": "@vben/web-naive",
|
"name": "@vben/web-naive",
|
||||||
"path": "apps/web-naive",
|
"path": "apps/web-naive",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "@vben/docs",
|
||||||
|
"path": "docs",
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "@vben/commitlint-config",
|
"name": "@vben/commitlint-config",
|
||||||
"path": "internal/lint-configs/commitlint-config",
|
"path": "internal/lint-configs/commitlint-config",
|
||||||
|
@ -156,9 +160,5 @@
|
||||||
"name": "@vben/vsh",
|
"name": "@vben/vsh",
|
||||||
"path": "scripts/vsh",
|
"path": "scripts/vsh",
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"name": "@vben/website",
|
|
||||||
"path": "website",
|
|
||||||
},
|
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
|