存档当前项目
This commit is contained in:
@@ -1,59 +0,0 @@
|
|||||||
<div align="center">
|
|
||||||
<h1>Arco Design Pro</h1>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div align="center">
|
|
||||||
|
|
||||||
基于 [Arco Design](https://arco.design/) React 组件库的开箱即用的中后台前端解决方案。
|
|
||||||
|
|
||||||
Admin 中后台管理页面,创新的多架构方案。
|
|
||||||
|
|
||||||
[](https://github.com/arco-design/arco-design-pro/blob/main/LICENSE)
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div align="center">
|
|
||||||
|
|
||||||
[English](./README.md) | 简体中文
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
## ✨ Features
|
|
||||||
|
|
||||||
- **TypeScript** - 代码完全使用 TypeScript 书写
|
|
||||||
- **Arco Design** - 由 [ArcoDesign React](https://github.com/arco-design/arco-design) 组件库强力驱动
|
|
||||||
- **Templates** - 16+ 页面模版,覆盖表格、列表、表单、工作台、可视化等场景。
|
|
||||||
- **Themes** - 基于「[风格配置平台](https://arco.design/themes)」丰富的主题市场,让你的项目千变万化。
|
|
||||||
- **Dark Theme** - 一键丝滑切换暗黑风格
|
|
||||||
- **Mock** - 内置 API 模拟方案
|
|
||||||
- **Flexible** - 灵活的多架构方案,支持 [next.js](https://github.com/vercel/next.js) / [vite](https://github.com/vitejs/vite) / [cra](https://github.com/facebook/create-react-app) 等开发框架
|
|
||||||
- **I18n** - 内置国际化多语言解决方案
|
|
||||||
- **Config** - 灵活配置页面配色、布局等
|
|
||||||
|
|
||||||
## 🔥 多架构方案
|
|
||||||
|
|
||||||
本质上 Pro 项目是一套项目模版,市面上常见的中后台项目模版一般都有固定的选型和架构,这样用户如果想自己修改架构,成本会比较大。
|
|
||||||
|
|
||||||
所以 Arco Pro v2 版本设计了一套多架构方案,能够在最大化的代码重用的基础上,输出多种架构的 pro 模版。
|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
## 🌈 Usage
|
|
||||||
|
|
||||||
```bash
|
|
||||||
$ npm i @arco-design/arco-cli@latest yarn -g
|
|
||||||
|
|
||||||
$ arco init my-project
|
|
||||||
```
|
|
||||||
|
|
||||||
## 💎 Changelog
|
|
||||||
|
|
||||||
- [中文版](https://github.com/arco-design/arco-design-pro/blob/main/docs/changelog.zh-CN.md)
|
|
||||||
|
|
||||||
- [英文版](https://github.com/arco-design/arco-design-pro/blob/main/docs/changelog.md)
|
|
||||||
|
|
||||||
## LICENSE
|
|
||||||
|
|
||||||
[MIT](frontend/LICENSE) © [ArcoDesign](https://arco.design)
|
|
||||||
@@ -28,6 +28,11 @@ function loadRootEnv() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function getMigrationVersion(file) {
|
||||||
|
const match = file.match(/^(\d+)_/);
|
||||||
|
return match ? match[1] : file;
|
||||||
|
}
|
||||||
|
|
||||||
async function main() {
|
async function main() {
|
||||||
loadRootEnv();
|
loadRootEnv();
|
||||||
|
|
||||||
@@ -50,9 +55,16 @@ async function main() {
|
|||||||
`);
|
`);
|
||||||
|
|
||||||
for (const file of files) {
|
for (const file of files) {
|
||||||
|
const version = getMigrationVersion(file);
|
||||||
const [rows] = await connection.query(
|
const [rows] = await connection.query(
|
||||||
'SELECT version FROM schema_migrations WHERE version = ?',
|
`
|
||||||
[file],
|
SELECT version
|
||||||
|
FROM schema_migrations
|
||||||
|
WHERE version = ?
|
||||||
|
OR version = ?
|
||||||
|
OR version LIKE ?
|
||||||
|
`,
|
||||||
|
[version, file, `${version}\\_%`],
|
||||||
);
|
);
|
||||||
if (rows.length > 0) {
|
if (rows.length > 0) {
|
||||||
console.log(`skip ${file}`);
|
console.log(`skip ${file}`);
|
||||||
@@ -70,7 +82,7 @@ async function main() {
|
|||||||
}
|
}
|
||||||
await connection.query(
|
await connection.query(
|
||||||
'INSERT INTO schema_migrations (version) VALUES (?)',
|
'INSERT INTO schema_migrations (version) VALUES (?)',
|
||||||
[file],
|
[version],
|
||||||
);
|
);
|
||||||
await connection.commit();
|
await connection.commit();
|
||||||
console.log(`applied ${file}`);
|
console.log(`applied ${file}`);
|
||||||
|
|||||||
Reference in New Issue
Block a user