Skip to content

Commit 06ad5ad

Browse files
committed
chore: Rename the website directory to docs
1 parent 4a7a4f9 commit 06ad5ad

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+154
-374
lines changed

.github/workflows/deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,10 @@ jobs:
6565
password: ${{ secrets.WEB_ELE_FTP_PASSWORD }}
6666
local-dir: ./apps/web-ele/dist/
6767

68-
- name: Sync Website files
68+
- name: Sync Docs files
6969
uses: SamKirkland/[email protected]
7070
with:
7171
server: ${{ secrets.PRO_FTP_HOST }}
7272
username: ${{ secrets.WEBSITE_FTP_ACCOUNT }}
7373
password: ${{ secrets.WEBSITE_FTP_PASSWORD }}
74-
local-dir: ./website/.vitepress/dist/
74+
local-dir: ./docs/.vitepress/dist/

website/.vitepress/config.mts renamed to docs/.vitepress/config.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ function nav(): DefaultTheme.NavItem[] {
212212
},
213213
{
214214
link: '/commercial/community',
215-
text: '👨‍👦‍👦 社区',
215+
text: '👨‍👦‍👦 社区交流',
216216
// items: [
217217
// {
218218
// 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',
File renamed without changes.

website/package.json renamed to docs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@vben/website",
2+
"name": "@vben/docs",
33
"version": "5.0.0",
44
"private": true,
55
"scripts": {

website/src/guide/essentials/development.md renamed to docs/src/guide/essentials/development.md

Lines changed: 2 additions & 2 deletions

website/src/guide/introduction/vben.md renamed to docs/src/guide/introduction/vben.md

Lines changed: 2 additions & 2 deletions
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

internal/lint-configs/eslint-config/src/configs/typescript.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,7 @@ export async function typescript(): Promise<Linter.FlatConfig[]> {
4141
],
4242

4343
'@typescript-eslint/consistent-type-definitions': ['warn', 'interface'],
44-
'@typescript-eslint/explicit-function-rkeyword-spacingeturn-type':
45-
'off',
44+
'@typescript-eslint/explicit-function-return-type': 'off',
4645
'@typescript-eslint/explicit-module-boundary-types': 'off',
4746
'@typescript-eslint/no-empty-function': [
4847
'error',

internal/lint-configs/eslint-config/src/custom-config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ const customConfig: Linter.FlatConfig[] = [
116116
},
117117
// 后端模拟代码,不需要太多规则
118118
{
119-
files: ['apps/backend-mock/**/**', 'website/**/**'],
119+
files: ['apps/backend-mock/**/**', 'docs/**/**'],
120120
rules: {
121121
'@typescript-eslint/no-extraneous-class': 'off',
122122
'n/no-extraneous-import': 'off',

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"commit": "czg",
4040
"dev": "turbo-run dev",
4141
"dev:antd": "pnpm -F @vben/web-antd run dev",
42-
"dev:docs": "pnpm -F @vben/website run dev",
42+
"dev:docs": "pnpm -F @vben/docs run dev",
4343
"dev:ele": "pnpm -F @vben/web-ele run dev",
4444
"dev:naive": "pnpm -F @vben/web-naive run dev",
4545
"format": "vsh lint --format",

packages/@core/ui-kit/menu-ui/src/components/menu.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -507,12 +507,12 @@ $namespace: vben;
507507
}
508508
509509
&.is-light {
510-
--menu-item-active-color: hsl(var(--primary-foreground));
511-
--menu-item-active-background-color: hsl(var(--primary));
510+
--menu-item-active-color: hsl(var(--primary));
511+
--menu-item-active-background-color: hsl(var(--primary) / 15%);
512512
--menu-item-hover-background-color: hsl(var(--accent));
513513
--menu-item-hover-color: hsl(var(--primary));
514-
--menu-submenu-active-color: hsl(var(--primary-foreground));
515-
--menu-submenu-active-background-color: hsl(var(--primary));
514+
--menu-submenu-active-color: hsl(var(--primary));
515+
--menu-submenu-active-background-color: hsl(var(--primary) / 30%);
516516
--menu-submenu-hover-color: hsl(var(--primary));
517517
--menu-submenu-hover-background-color: hsl(var(--accent));
518518
}

packages/effects/layouts/src/widgets/check-updates/check-updates.vue

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ const { toast } = useToast();
2222
2323
async function getVersionTag() {
2424
try {
25+
if (
26+
location.hostname === 'localhost' ||
27+
location.hostname === '127.0.0.1'
28+
) {
29+
return null;
30+
}
2531
const response = await fetch('/', {
2632
cache: 'no-cache',
2733
method: 'HEAD',
@@ -48,7 +54,7 @@ async function checkForUpdates() {
4854
return;
4955
}
5056
51-
if (lastVersionTag.value !== versionTag) {
57+
if (lastVersionTag.value !== versionTag && versionTag) {
5258
clearInterval(timer.value);
5359
handleNotice(versionTag);
5460
}

0 commit comments

Comments
 (0)