-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
124 changed files
with
25,773 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
about: Manage your project's issue templates | ||
config: | ||
blank_issues_enabled: false | ||
contact_links: | ||
- name: OpenProphetDB Team | ||
url: https://www.prophetdb.org/contact/ | ||
about: Please ask and answer questions here. | ||
issue_templates: | ||
- name: Bug report | ||
about: Create a report to help us improve | ||
labels: bug | ||
assignees: yjcyxky@163.com | ||
- name: Feature request | ||
about: Suggest an idea for this project | ||
labels: enhancement | ||
assignees: yjcyxky@163.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule studio
deleted from
8fdc71
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module.exports = { | ||
extends: require.resolve('@umijs/max/eslint'), | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/node_modules | ||
/.env.local | ||
/.umirc.local.ts | ||
/config/config.local.ts | ||
/src/.umi | ||
/src/.umi-production | ||
/src/.umi-test | ||
/.umi | ||
/.umi-production | ||
/.umi-test | ||
/dist | ||
/.mfsu | ||
.swc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"*.{md,json}": [ | ||
"prettier --cache --write" | ||
], | ||
"*.{js,jsx}": [ | ||
"max lint --fix --eslint-only", | ||
"prettier --cache --write" | ||
], | ||
"*.{css,less}": [ | ||
"max lint --fix --stylelint-only", | ||
"prettier --cache --write" | ||
], | ||
"*.ts?(x)": [ | ||
"max lint --fix --eslint-only", | ||
"prettier --cache --parser=typescript --write" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
registry=https://registry.npmjs.com/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
node_modules | ||
.umi | ||
.umi-production |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"printWidth": 80, | ||
"singleQuote": true, | ||
"trailingComma": "all", | ||
"proseWrap": "never", | ||
"overrides": [{ "files": ".prettierrc", "options": { "parser": "json" } }], | ||
"plugins": ["prettier-plugin-organize-imports", "prettier-plugin-packagejson"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module.exports = { | ||
extends: require.resolve('@umijs/max/stylelint'), | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# README | ||
|
||
`@umijs/max` 模板项目,更多功能参考 [Umi Max 简介](https://umijs.org/docs/max/introduce) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// https://umijs.org/config/ | ||
import { defineConfig } from 'umi'; | ||
|
||
export default defineConfig({ | ||
plugins: [ | ||
// https://github.com/zthxxx/react-dev-inspector | ||
'react-dev-inspector/plugins/umi/react-inspector', | ||
], | ||
// https://github.com/zthxxx/react-dev-inspector#inspector-loader-props | ||
inspectorConfig: { | ||
exclude: [], | ||
babelPlugins: [], | ||
babelOptions: {}, | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// https://umijs.org/config/ | ||
import { defineConfig } from 'umi'; | ||
|
||
export default defineConfig({ | ||
outputPath: '../assets', | ||
publicPath: '/assets/', | ||
history: { | ||
type: 'hash', | ||
}, | ||
codeSplitting: { | ||
jsStrategy: 'granularChunks' | ||
}, | ||
esbuildMinifyIIFE: true, | ||
favicons: ['/assets/gene.png'], | ||
proxy: undefined, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
// https://umijs.org/config/ | ||
import { defineConfig } from 'umi'; | ||
import path from 'path'; | ||
|
||
import proxy from './proxy'; | ||
import { routes as defaultRoutes } from './routes'; | ||
|
||
const isDev = process.env.NODE_ENV === 'development'; | ||
const isStatic = isDev ? true : (process.env.UMI_APP_IS_STATIC ? process.env.UMI_APP_IS_STATIC : false); | ||
|
||
export default defineConfig({ | ||
hash: true, | ||
history: { | ||
type: 'hash', | ||
}, | ||
publicPath: '/', | ||
antd: {}, | ||
access: {}, | ||
model: {}, | ||
initialState: {}, | ||
request: {}, | ||
// plugins: ['@umijs/plugins/dist/request'], | ||
npmClient: 'yarn', | ||
dva: {}, | ||
chainWebpack: (config: any) => { | ||
config.merge({ | ||
resolve: { | ||
fallback: { | ||
'perf_hooks': false, | ||
} | ||
} | ||
}); | ||
|
||
// https://github.com/webpack/webpack/discussions/13585 | ||
config.resolve.alias.set('perf_hooks', path.resolve(__dirname, 'perf_hooks.ts')); | ||
// console.log("config.resolve.alias", config.resolve.alias); | ||
}, | ||
define: { | ||
// Whether the frontend is separated from the backend. | ||
isStatic: isStatic, | ||
}, | ||
layout: { | ||
// https://umijs.org/docs/max/layout-menu | ||
locale: false, | ||
}, | ||
targets: { | ||
chrome: 80 | ||
}, | ||
// umi routes: https://umijs.org/docs/routing | ||
// We load routes dynamically from the config file. | ||
routes: defaultRoutes, | ||
// Theme for antd: https://ant.design/docs/react/customize-theme-cn | ||
theme: { | ||
// 如果不想要 configProvide 动态设置主题需要把这个设置为 default | ||
// 只有设置为 variable, 才能使用 configProvide 动态设置主色调 | ||
// https://ant.design/docs/react/customize-theme-variable-cn | ||
'root-entry-name': 'variable', | ||
}, | ||
title: false, | ||
ignoreMomentLocale: true, | ||
// proxy: proxy[REACT_APP_ENV || 'dev'], | ||
proxy: proxy['dev'], | ||
manifest: { | ||
basePath: '/', | ||
}, | ||
// Fast Refresh 热更新 | ||
fastRefresh: true, | ||
// https://pro.ant.design/docs/openapi | ||
// openAPI: [ | ||
// { | ||
// requestLibPath: "import { request } from 'umi'", | ||
// // schemaPath: join(__dirname, 'api.json'), | ||
// // You may need to open the apifox before running `yarn openapi`. | ||
// // schemaPath: "http://127.0.0.1:4523/export/openapi?projectId=1645899&version=3.1", | ||
// // TODO: ApiFox cannot import the spec correctly. | ||
// schemaPath: "http://localhost:8000/spec", | ||
// projectName: "swagger", | ||
// mock: false, | ||
// } | ||
// ], | ||
mfsu: {} | ||
}); |
Oops, something went wrong.