chore: docs 迁移至 apps

This commit is contained in:
wangxuefeng 2025-03-12 14:32:58 +08:00
parent c86bf9e62e
commit bcdb4e8c95
91 changed files with 111 additions and 193 deletions

1
.npmrc
View File

@ -12,3 +12,4 @@ public-hoist-pattern[]=czg
strict-peer-dependencies=false
auto-install-peers=true
dedupe-peer-dependents=true
engine-strict=true

View File

@ -1,9 +0,0 @@
MIT License
Copyright (c) 2024-present, Vben
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

View File

@ -1,65 +1,8 @@
<div align="center"> <a href="https://github.com/anncwb/vue-vben-admin"> <img alt="VbenAdmin Logo" width="215" src="https://unpkg.com/@vbenjs/static-source@0.1.7/source/logo-v1.webp"> </a> <br> <br>
[![license](https://img.shields.io/github/license/anncwb/vue-vben-admin.svg)](LICENSE)
<h1>Vue Vben Admin</h1>
</div>
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=vbenjs_vue-vben-admin&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=vbenjs_vue-vben-admin) ![codeql](https://github.com/vbenjs/vue-vben-admin/actions/workflows/codeql.yml/badge.svg) ![build](https://github.com/vbenjs/vue-vben-admin/actions/workflows/build.yml/badge.svg) ![ci](https://github.com/vbenjs/vue-vben-admin/actions/workflows/ci.yml/badge.svg) ![deploy](https://github.com/vbenjs/vue-vben-admin/actions/workflows/deploy.yml/badge.svg)
**中文** | [English](./README.md) | [日本語](./README.ja-JP.md)
## 简介
Vue Vben Admin 是 Vue Vben Admin 的升级版本。作为一个免费开源的中后台模板,它采用了最新的 Vue 3、Vite、TypeScript 等主流技术开发,开箱即用,可用于中后台前端开发,也适合学习参考。
## 升级提示
该版本为最新版本`5.0`, 与其他版本不兼容,如果你是新项目,建议使用最新版本。如果你想查看旧版本,请使用 [v2 分支](https://github.com/vbenjs/vue-vben-admin/tree/v2)
## 特性
- **最新技术栈**:使用 Vue3/vite 等前端前沿技术开发
- **TypeScript**: 应用程序级 JavaScript 的语言
- **主题**:提供多套主题色彩,可配置自定义主题
- **国际化**:内置完善的国际化方案
- **权限** 内置完善的动态路由权限生成方案
## 预览
- [Vben Admin](https://vben.pro/) - 完整版中文站点
测试账号: vben/123456
<p align="center">
<img alt="VbenAdmin Logo" width="100%" src="https://anncwb.github.io/anncwb/images/preview1.png">
<img alt="VbenAdmin Logo" width="100%" src="https://anncwb.github.io/anncwb/images/preview2.png">
<img alt="VbenAdmin Logo" width="100%" src="https://anncwb.github.io/anncwb/images/preview3.png">
</p>
### 使用 Gitpod
在 Gitpod适用于 GitHub 的免费在线开发环境)中打开项目,并立即开始编码.
[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/vbenjs/vue-vben-admin)
## 文档
[文档地址](https://doc.vben.pro/)
## 安装使用
- 获取项目代码
[文档地址](https://y-code-docs.shiyuegame.com)
```bash
git clone https://github.com/vbenjs/vue-vben-admin.git
```
- 安装依赖
```bash
cd vue-vben-admin
corepack enable
pnpm install
@ -81,18 +24,6 @@ pnpm build
[CHANGELOG](https://github.com/vbenjs/vue-vben-admin/releases)
## 如何贡献
非常欢迎你的加入![提一个 Issue](https://github.com/anncwb/vue-vben-admin/issues/new/choose) 或者提交一个 Pull Request。
**Pull Request:**
1. Fork 代码!
2. 创建自己的分支: `git checkout -b feature/xxxx`
3. 提交你的修改: `git commit -am 'feat(function): add xxxxx'`
4. 推送您的分支: `git push origin feature/xxxx`
5. 提交`pull request`
## Git 贡献提交规范
- 参考 [vue](https://github.com/vuejs/vue/blob/dev/.github/COMMIT_CONVENTION.md) 规范 ([Angular](https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-changelog-angular))
@ -119,34 +50,3 @@ pnpm build
| [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/edge/edge_48x48.png" alt=" Edge" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>IE | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/edge/edge_48x48.png" alt=" Edge" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Edge | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/firefox/firefox_48x48.png" alt="Firefox" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Firefox | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/chrome/chrome_48x48.png" alt="Chrome" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Chrome | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/safari/safari_48x48.png" alt="Safari" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Safari |
| :-: | :-: | :-: | :-: | :-: |
| not support | last 2 versions | last 2 versions | last 2 versions | last 2 versions |
## 维护者
[@Vben](https://github.com/anncwb)
## Star History
[![Star History Chart](https://api.star-history.com/svg?repos=vbenjs/vue-vben-admin&type=Date)](https://star-history.com/#vbenjs/vue-vben-admin&Date)
## 捐赠
如果你觉得这个项目对你有帮助,你可以帮作者买一杯咖啡表示支持!
![donate](https://unpkg.com/@vbenjs/static-source@0.1.7/source/sponsor.png)
<a style="display: block;width: 100px;height: 50px;line-height: 50px; color: #fff;text-align: center; background: #408aed;border-radius: 4px;" href="https://www.paypal.com/paypalme/cvvben">Paypal Me</a>
## Contributor
<a href="https://github.com/vbenjs/vue-vben-admin/graphs/contributors">
<img alt="Contributors"
src="https://opencollective.com/vbenjs/contributors.svg?button=false" />
</a>
## Discord
- [Github Discussions](https://github.com/anncwb/vue-vben-admin/discussions)
## License
[MIT © Vben-2020](./LICENSE)

View File

@ -1,16 +1,16 @@
{
"name": "@sy/y-code-designer",
"version": "1.0.0-alpha.1",
"description": "低代码编辑器",
"description": "低代码设计器",
"private": true,
"type": "module",
"scripts": {
"setup": "npm install --unsafe-perm --registry=https://registry.npmmirror.com",
"dev": "cross-env vite --mode development",
"dev": "vite --mode development",
"build": "vite build --mode production",
"build:staging": "vite build --mode staging",
"build:dev": "vite build --mode development",
"preview": "vite preview",
"clean": "rimraf node_modules"
"typecheck": "vue-tsc --noEmit --skipLibCheck"
},
"dependencies": {
"@vtj/core": "^0.10.12",
@ -35,6 +35,7 @@
"vue-router": "catalog:"
},
"devDependencies": {
"@types/postmate": "catalog:",
"@vtj/cli": "^0.10.2",
"vite": "catalog:",
"vite-plugin-mkcert": "catalog:",

View File

@ -20,6 +20,7 @@ declare namespace global {
declare module 'vue' {
interface ComponentCustomProperties {
$uploader: any;
// cspell:disable-next-line
$reqeust: any;
$apis: any;
$libs: any;

View File

@ -79,9 +79,6 @@ export const publishAllFile = async (
*
* @param {string} fileId - ID
* @returns {Promise<any>} Promise对象
* @example
* // 发布文件ID为45tnbgeme的文件
* await publishFile('45tnbgeme')
*/
export const publishFile = async (fileId: string): Promise<PublishResponse> => {
const response = await instance.post('/api/v1/files/publish-file', {

View File

Before

Width:  |  Height:  |  Size: 5.3 KiB

After

Width:  |  Height:  |  Size: 5.3 KiB

View File

Before

Width:  |  Height:  |  Size: 393 KiB

After

Width:  |  Height:  |  Size: 393 KiB

View File

Before

Width:  |  Height:  |  Size: 87 KiB

After

Width:  |  Height:  |  Size: 87 KiB

View File

Before

Width:  |  Height:  |  Size: 471 KiB

After

Width:  |  Height:  |  Size: 471 KiB

View File

Before

Width:  |  Height:  |  Size: 556 KiB

After

Width:  |  Height:  |  Size: 556 KiB

View File

Before

Width:  |  Height:  |  Size: 469 KiB

After

Width:  |  Height:  |  Size: 469 KiB

View File

Before

Width:  |  Height:  |  Size: 123 KiB

After

Width:  |  Height:  |  Size: 123 KiB

View File

Before

Width:  |  Height:  |  Size: 447 KiB

After

Width:  |  Height:  |  Size: 447 KiB

View File

Before

Width:  |  Height:  |  Size: 448 KiB

After

Width:  |  Height:  |  Size: 448 KiB

View File

Before

Width:  |  Height:  |  Size: 1000 KiB

After

Width:  |  Height:  |  Size: 1000 KiB

View File

Before

Width:  |  Height:  |  Size: 249 KiB

After

Width:  |  Height:  |  Size: 249 KiB

View File

Before

Width:  |  Height:  |  Size: 400 KiB

After

Width:  |  Height:  |  Size: 400 KiB

View File

Before

Width:  |  Height:  |  Size: 3.3 KiB

After

Width:  |  Height:  |  Size: 3.3 KiB

View File

Before

Width:  |  Height:  |  Size: 472 B

After

Width:  |  Height:  |  Size: 472 B

View File

Before

Width:  |  Height:  |  Size: 4.0 KiB

After

Width:  |  Height:  |  Size: 4.0 KiB

View File

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

@ -43,6 +43,7 @@
"vue-router": "catalog:"
},
"devDependencies": {
"@types/postmate": "catalog:",
"unplugin-element-plus": "catalog:",
"vite-plugin-mkcert": "catalog:"
}

View File

@ -53,6 +53,7 @@ const routes: Array<RouteRecordRaw> = [
// degrade: true,
applicationId: LOW_CODE_APPLICATION_ID,
projectId: LOW_CODE_PROJECT_ID,
// cspell:disable-next-line
fileId: '7pftwojzu',
},
},

View File

@ -4,14 +4,11 @@
"type": "module",
"scripts": {
"dev": "vite dev --mode development",
"start": "vite start --mode production",
"build": "vite build --mode production",
"build:staging": "vite build --mode staging",
"build:dev": "vite build --mode development",
"preview": "vite preview",
"clean:lock": "rimraf pnpm-lock.yaml && rimraf package.lock.json",
"clean:lib": "rimraf node_modules",
"test": "echo 'test",
"clean": "rimraf node_modules"
"typecheck": "vue-tsc --noEmit --skipLibCheck"
},
"dependencies": {
"@iframe-resizer/child": "^5.3.3",
@ -37,6 +34,7 @@
"devDependencies": {
"@farmfe/cli": "^1.0.4",
"@farmfe/core": "^1.6.7",
"@types/postmate": "catalog:",
"@vitejs/plugin-vue": "^5.2.1",
"@vtj/cli": "^0.10.2",
"vite": "catalog:",

View File

@ -4,7 +4,7 @@ import { getFile as getLowCodeFile, getProject } from '@/io';
import { ProjectModel } from '@vtj/core';
import { BaseService } from '@vtj/renderer';
let initProject: ProjectModel = {};
// let initProject: ProjectModel = {};
export class LowCodeService extends BaseService {
public async getFile(id: string): Promise<BlockSchema> {
@ -12,13 +12,15 @@ export class LowCodeService extends BaseService {
return getLowCodeFile(id).then((lowCodeFile) => {
return lowCodeFile.dsl
? Promise.resolve(lowCodeFile.dsl as BlockSchema)
: Promise.reject(null);
: Promise.reject(new Error(`dsl 不存在, id: ${id}`));
});
}
public async init(project: ProjectSchema) {
console.log('init', project);
initProject = project;
// @ts-ignore 忽略错误
// initProject = project;
// @ts-ignore 忽略错误
const remoteProject = await getProject(project.id);
console.log('remoteProject', remoteProject);
const model = new ProjectModel(remoteProject);
@ -26,18 +28,17 @@ export class LowCodeService extends BaseService {
return dsl;
}
public saveProject(project: ProjectSchema): Promise<boolean> {
const newProject = {
...project,
...Object.fromEntries(
Object.entries(project)
.filter(([key]) => stringifyFields.includes(key))
.map(([key, value]) => [key, JSON.stringify(value)]),
),
};
updateProject(initProject.id, newProject);
const model = new ProjectModel(newProject);
// storage.save(`project_${model.id}`, model.toDsl());
return Promise.resolve(true);
}
// public saveProject(project: ProjectSchema): Promise<boolean> {
// const newProject = {
// ...project,
// ...Object.fromEntries(
// Object.entries(project)
// .filter(([key]) => stringifyFields.includes(key))
// .map(([key, value]) => [key, JSON.stringify(value)]),
// ),
// };
// const model = new ProjectModel(newProject);
// // storage.save(`project_${model.id}`, model.toDsl());
// return Promise.resolve(true);
// }
}

View File

@ -4,6 +4,16 @@
"language": "en,en-US",
"allowCompoundWords": true,
"words": [
"YCODE",
"Resopnse",
"QIANKUN",
"qiankun",
"tianti",
"licia",
"request",
"uinapp",
"farmfe",
"uncategorized",
"acmr",
"antd",
"antdv",

View File

@ -50,9 +50,9 @@ const {
buildTime,
dependencies = {},
devDependencies = {},
homepage,
license,
version,
// homepage,
// license,
// version,
// vite inject-metadata
} = __VBEN_ADMIN_METADATA__ || {};

115
pnpm-lock.yaml generated
View File

@ -96,6 +96,9 @@ catalogs:
'@types/postcss-import':
specifier: ^14.0.3
version: 14.0.3
'@types/postmate':
specifier: ^1.5.4
version: 1.5.4
'@types/qrcode':
specifier: ^1.5.5
version: 1.5.5
@ -674,6 +677,9 @@ importers:
specifier: 'catalog:'
version: 4.5.0(vue@3.5.13(typescript@5.8.2))
devDependencies:
'@types/postmate':
specifier: 'catalog:'
version: 1.5.4
'@vtj/cli':
specifier: ^0.10.2
version: 0.10.2(@nuxt/kit@3.16.0(magicast@0.3.5))(@types/less@3.0.8)(happy-dom@16.8.1)(jiti@2.4.2)(less@4.2.2)(rollup@3.29.5)(vue@3.5.13(typescript@5.8.2))(yaml@2.7.0)
@ -687,6 +693,55 @@ importers:
specifier: 'catalog:'
version: 2.1.9(@types/node@22.13.10)(happy-dom@16.8.1)(jsdom@26.0.0)(less@4.2.2)(sass@1.85.1)(terser@5.39.0)
apps/docs:
dependencies:
'@vben-core/shadcn-ui':
specifier: workspace:*
version: link:../../packages/@core/ui-kit/shadcn-ui
'@vben/common-ui':
specifier: workspace:*
version: link:../../packages/effects/common-ui
'@vben/locales':
specifier: workspace:*
version: link:../../packages/locales
'@vben/plugins':
specifier: workspace:*
version: link:../../packages/effects/plugins
'@vben/styles':
specifier: workspace:*
version: link:../../packages/styles
ant-design-vue:
specifier: 'catalog:'
version: 4.2.6(vue@3.5.13(typescript@5.8.2))
lucide-vue-next:
specifier: 'catalog:'
version: 0.469.0(vue@3.5.13(typescript@5.8.2))
medium-zoom:
specifier: 'catalog:'
version: 1.1.0
radix-vue:
specifier: 'catalog:'
version: 1.9.17(vue@3.5.13(typescript@5.8.2))
vitepress-plugin-group-icons:
specifier: 'catalog:'
version: 1.3.7
devDependencies:
'@nolebase/vitepress-plugin-git-changelog':
specifier: 'catalog:'
version: 2.15.1(typescript@5.8.2)(vitepress@1.6.3(@algolia/client-search@5.21.0)(@types/node@22.13.10)(async-validator@4.2.5)(axios@1.8.2)(change-case@5.4.4)(less@4.2.2)(nprogress@0.2.0)(postcss@8.5.3)(qrcode@1.5.4)(sass@1.85.1)(search-insights@2.17.3)(sortablejs@1.15.6)(terser@5.39.0)(typescript@5.8.2))
'@vben/vite-config':
specifier: workspace:*
version: link:../../internal/vite-config
'@vite-pwa/vitepress':
specifier: 'catalog:'
version: 0.5.3(vite-plugin-pwa@0.21.1(vite@5.4.14(@types/node@22.13.10)(less@4.2.2)(sass@1.85.1)(terser@5.39.0))(workbox-build@7.3.0(@types/babel__core@7.20.5))(workbox-window@7.3.0))
vitepress:
specifier: 'catalog:'
version: 1.6.3(@algolia/client-search@5.21.0)(@types/node@22.13.10)(async-validator@4.2.5)(axios@1.8.2)(change-case@5.4.4)(less@4.2.2)(nprogress@0.2.0)(postcss@8.5.3)(qrcode@1.5.4)(sass@1.85.1)(search-insights@2.17.3)(sortablejs@1.15.6)(terser@5.39.0)(typescript@5.8.2)
vue:
specifier: ^3.5.13
version: 3.5.13(typescript@5.8.2)
apps/platform:
dependencies:
'@sy/unified-login':
@ -759,6 +814,9 @@ importers:
specifier: 'catalog:'
version: 4.5.0(vue@3.5.13(typescript@5.8.2))
devDependencies:
'@types/postmate':
specifier: 'catalog:'
version: 1.5.4
unplugin-element-plus:
specifier: 'catalog:'
version: 0.9.1
@ -832,6 +890,9 @@ importers:
'@farmfe/core':
specifier: ^1.6.7
version: 1.6.7
'@types/postmate':
specifier: 'catalog:'
version: 1.5.4
'@vitejs/plugin-vue':
specifier: ^5.2.1
version: 5.2.1(vite@6.2.1(@types/node@22.13.10)(jiti@2.4.2)(less@4.2.2)(sass@1.85.1)(terser@5.39.0)(yaml@2.7.0))(vue@3.5.13(typescript@5.8.2))
@ -960,55 +1021,6 @@ importers:
specifier: ^21.1.1
version: 21.1.1
docs:
dependencies:
'@vben-core/shadcn-ui':
specifier: workspace:*
version: link:../packages/@core/ui-kit/shadcn-ui
'@vben/common-ui':
specifier: workspace:*
version: link:../packages/effects/common-ui
'@vben/locales':
specifier: workspace:*
version: link:../packages/locales
'@vben/plugins':
specifier: workspace:*
version: link:../packages/effects/plugins
'@vben/styles':
specifier: workspace:*
version: link:../packages/styles
ant-design-vue:
specifier: 'catalog:'
version: 4.2.6(vue@3.5.13(typescript@5.8.2))
lucide-vue-next:
specifier: 'catalog:'
version: 0.469.0(vue@3.5.13(typescript@5.8.2))
medium-zoom:
specifier: 'catalog:'
version: 1.1.0
radix-vue:
specifier: 'catalog:'
version: 1.9.17(vue@3.5.13(typescript@5.8.2))
vitepress-plugin-group-icons:
specifier: 'catalog:'
version: 1.3.7
devDependencies:
'@nolebase/vitepress-plugin-git-changelog':
specifier: 'catalog:'
version: 2.15.1(typescript@5.8.2)(vitepress@1.6.3(@algolia/client-search@5.21.0)(@types/node@22.13.10)(async-validator@4.2.5)(axios@1.8.2)(change-case@5.4.4)(less@4.2.2)(nprogress@0.2.0)(postcss@8.5.3)(qrcode@1.5.4)(sass@1.85.1)(search-insights@2.17.3)(sortablejs@1.15.6)(terser@5.39.0)(typescript@5.8.2))
'@vben/vite-config':
specifier: workspace:*
version: link:../internal/vite-config
'@vite-pwa/vitepress':
specifier: 'catalog:'
version: 0.5.3(vite-plugin-pwa@0.21.1(vite@5.4.14(@types/node@22.13.10)(less@4.2.2)(sass@1.85.1)(terser@5.39.0))(workbox-build@7.3.0(@types/babel__core@7.20.5))(workbox-window@7.3.0))
vitepress:
specifier: 'catalog:'
version: 1.6.3(@algolia/client-search@5.21.0)(@types/node@22.13.10)(async-validator@4.2.5)(axios@1.8.2)(change-case@5.4.4)(less@4.2.2)(nprogress@0.2.0)(postcss@8.5.3)(qrcode@1.5.4)(sass@1.85.1)(search-insights@2.17.3)(sortablejs@1.15.6)(terser@5.39.0)(typescript@5.8.2)
vue:
specifier: ^3.5.13
version: 3.5.13(typescript@5.8.2)
internal/lint-configs/commitlint-config:
dependencies:
'@commitlint/cli':
@ -5095,6 +5107,9 @@ packages:
'@types/postcss-import@14.0.3':
resolution: {integrity: sha512-raZhRVTf6Vw5+QbmQ7LOHSDML71A5rj4+EqDzAbrZPfxfoGzFxMHRCq16VlddGIZpHELw0BG4G0YE2ANkdZiIQ==}
'@types/postmate@1.5.4':
resolution: {integrity: sha512-eZBPKSmEF+0s7dL6htpj3PJdVw9rbdsUXpydGpyQ+PhRPyuTJF1XsHm2thahXIKaHQnqzG2GUaY6m9xNK0sOeA==}
'@types/qrcode@1.5.5':
resolution: {integrity: sha512-CdfBi/e3Qk+3Z/fXYShipBT13OJ2fDO2Q2w5CIP5anLTLIndQG9z6P1cnm+8zCWSpm5dnxMFd/uREtb0EXuQzg==}
@ -16748,6 +16763,8 @@ snapshots:
dependencies:
postcss: 8.5.3
'@types/postmate@1.5.4': {}
'@types/qrcode@1.5.5':
dependencies:
'@types/node': 20.17.24

View File

@ -11,8 +11,6 @@ packages:
- packages/web-vitals/*
- apps/*
- scripts/*
- docs
- playground
catalog:
'@ast-grep/napi': ^0.32.3
'@changesets/changelog-github': ^0.5.1
@ -47,6 +45,7 @@ catalog:
'@types/lodash.get': ^4.4.9
'@types/lodash.isequal': ^4.5.8
'@types/node': ^22.13.10
'@types/postmate': ^1.5.4
'@types/nprogress': ^0.2.3
'@types/postcss-import': ^14.0.3
'@types/qrcode': ^1.5.5