@oinone/cli 7.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +115 -0
- package/README_zh-CN.md +115 -0
- package/bin/cli.js +429 -0
- package/package.json +25 -0
- package/template-6.4.0-community/.eslintignore +5 -0
- package/template-6.4.0-community/.eslintrc.json +72 -0
- package/template-6.4.0-community/.prettierrc.json +8 -0
- package/template-6.4.0-community/README.md +59 -0
- package/template-6.4.0-community/_package.json +47 -0
- package/template-6.4.0-community/gitignore +58 -0
- package/template-6.4.0-community/lerna.json +12 -0
- package/template-6.4.0-community/npmrc +3 -0
- package/template-6.4.0-community/packages/ss-admin-widget/index.ts +1 -0
- package/template-6.4.0-community/packages/ss-admin-widget/package.json +25 -0
- package/template-6.4.0-community/packages/ss-admin-widget/rollup.config.js +73 -0
- package/template-6.4.0-community/packages/ss-admin-widget/scripts/postpublish.js +13 -0
- package/template-6.4.0-community/packages/ss-admin-widget/scripts/prepublish-only.js +24 -0
- package/template-6.4.0-community/packages/ss-admin-widget/src/index.ts +1 -0
- package/template-6.4.0-community/packages/ss-admin-widget/src/shim-translate.d.ts +10 -0
- package/template-6.4.0-community/packages/ss-admin-widget/src/shim-vue.d.ts +6 -0
- package/template-6.4.0-community/packages/ss-admin-widget/tsconfig.json +45 -0
- package/template-6.4.0-community/packages/ss-boot/.env +1 -0
- package/template-6.4.0-community/packages/ss-boot/.env.example +6 -0
- package/template-6.4.0-community/packages/ss-boot/package.json +53 -0
- package/template-6.4.0-community/packages/ss-boot/public/favicon.ico +0 -0
- package/template-6.4.0-community/packages/ss-boot/public/index.html +83 -0
- package/template-6.4.0-community/packages/ss-boot/public/manifest.js +5 -0
- package/template-6.4.0-community/packages/ss-boot/src/main.ts +50 -0
- package/template-6.4.0-community/packages/ss-boot/src/shim-translate.d.ts +10 -0
- package/template-6.4.0-community/packages/ss-boot/src/shim-vue.d.ts +6 -0
- package/template-6.4.0-community/packages/ss-boot/tsconfig.json +44 -0
- package/template-6.4.0-community/packages/ss-boot/vue.config.js +84 -0
- package/template-6.4.0-community/packages/ss-oinone/index.ts +1 -0
- package/template-6.4.0-community/packages/ss-oinone/package.json +29 -0
- package/template-6.4.0-community/packages/ss-oinone/rollup.config.js +82 -0
- package/template-6.4.0-community/packages/ss-oinone/scripts/postpublish.js +13 -0
- package/template-6.4.0-community/packages/ss-oinone/scripts/prepublish-only.js +24 -0
- package/template-6.4.0-community/packages/ss-oinone/src/index.ts +1 -0
- package/template-6.4.0-community/packages/ss-oinone/src/shim-translate.d.ts +10 -0
- package/template-6.4.0-community/packages/ss-oinone/src/shim-vue.d.ts +6 -0
- package/template-6.4.0-community/packages/ss-oinone/tsconfig.json +42 -0
- package/template-6.4.0-community/packages/ss-project/index.ts +1 -0
- package/template-6.4.0-community/packages/ss-project/package.json +30 -0
- package/template-6.4.0-community/packages/ss-project/rollup.config.js +83 -0
- package/template-6.4.0-community/packages/ss-project/scripts/postpublish.js +13 -0
- package/template-6.4.0-community/packages/ss-project/scripts/prepublish-only.js +24 -0
- package/template-6.4.0-community/packages/ss-project/src/index.ts +1 -0
- package/template-6.4.0-community/packages/ss-project/src/shim-translate.d.ts +10 -0
- package/template-6.4.0-community/packages/ss-project/src/shim-vue.d.ts +6 -0
- package/template-6.4.0-community/packages/ss-project/tsconfig.json +42 -0
- package/template-6.4.0-community/pnpm-workspace.yaml +3 -0
- package/template-6.4.0-community/scripts/build/inset-tsconfig.js +68 -0
- package/template-6.4.0-community/scripts/build/package-name.js +25 -0
- package/template-6.4.0-community/scripts/build/postbuild.js +42 -0
- package/template-6.4.0-community/scripts/build/prebuild-only.js +48 -0
- package/template-6.4.0-community/scripts/clean.mjs +22 -0
- package/template-6.4.0-enterprise/.eslintignore +5 -0
- package/template-6.4.0-enterprise/.eslintrc.json +72 -0
- package/template-6.4.0-enterprise/.prettierrc.json +8 -0
- package/template-6.4.0-enterprise/README.md +59 -0
- package/template-6.4.0-enterprise/_package.json +47 -0
- package/template-6.4.0-enterprise/gitignore +58 -0
- package/template-6.4.0-enterprise/lerna.json +12 -0
- package/template-6.4.0-enterprise/npmrc +3 -0
- package/template-6.4.0-enterprise/packages/ss-admin-widget/index.ts +1 -0
- package/template-6.4.0-enterprise/packages/ss-admin-widget/package.json +25 -0
- package/template-6.4.0-enterprise/packages/ss-admin-widget/rollup.config.js +73 -0
- package/template-6.4.0-enterprise/packages/ss-admin-widget/scripts/postpublish.js +13 -0
- package/template-6.4.0-enterprise/packages/ss-admin-widget/scripts/prepublish-only.js +24 -0
- package/template-6.4.0-enterprise/packages/ss-admin-widget/src/index.ts +1 -0
- package/template-6.4.0-enterprise/packages/ss-admin-widget/src/shim-translate.d.ts +10 -0
- package/template-6.4.0-enterprise/packages/ss-admin-widget/src/shim-vue.d.ts +6 -0
- package/template-6.4.0-enterprise/packages/ss-admin-widget/tsconfig.json +45 -0
- package/template-6.4.0-enterprise/packages/ss-boot/.env +1 -0
- package/template-6.4.0-enterprise/packages/ss-boot/.env.example +6 -0
- package/template-6.4.0-enterprise/packages/ss-boot/package.json +66 -0
- package/template-6.4.0-enterprise/packages/ss-boot/public/favicon.ico +0 -0
- package/template-6.4.0-enterprise/packages/ss-boot/public/index.html +83 -0
- package/template-6.4.0-enterprise/packages/ss-boot/public/manifest.js +5 -0
- package/template-6.4.0-enterprise/packages/ss-boot/src/main.ts +69 -0
- package/template-6.4.0-enterprise/packages/ss-boot/src/shim-translate.d.ts +10 -0
- package/template-6.4.0-enterprise/packages/ss-boot/src/shim-vue.d.ts +6 -0
- package/template-6.4.0-enterprise/packages/ss-boot/tsconfig.json +44 -0
- package/template-6.4.0-enterprise/packages/ss-boot/vue.config.js +84 -0
- package/template-6.4.0-enterprise/packages/ss-oinone/index.ts +1 -0
- package/template-6.4.0-enterprise/packages/ss-oinone/package.json +29 -0
- package/template-6.4.0-enterprise/packages/ss-oinone/rollup.config.js +82 -0
- package/template-6.4.0-enterprise/packages/ss-oinone/scripts/postpublish.js +13 -0
- package/template-6.4.0-enterprise/packages/ss-oinone/scripts/prepublish-only.js +24 -0
- package/template-6.4.0-enterprise/packages/ss-oinone/src/index.ts +1 -0
- package/template-6.4.0-enterprise/packages/ss-oinone/src/shim-translate.d.ts +10 -0
- package/template-6.4.0-enterprise/packages/ss-oinone/src/shim-vue.d.ts +6 -0
- package/template-6.4.0-enterprise/packages/ss-oinone/tsconfig.json +42 -0
- package/template-6.4.0-enterprise/packages/ss-project/index.ts +1 -0
- package/template-6.4.0-enterprise/packages/ss-project/package.json +30 -0
- package/template-6.4.0-enterprise/packages/ss-project/rollup.config.js +83 -0
- package/template-6.4.0-enterprise/packages/ss-project/scripts/postpublish.js +13 -0
- package/template-6.4.0-enterprise/packages/ss-project/scripts/prepublish-only.js +24 -0
- package/template-6.4.0-enterprise/packages/ss-project/src/index.ts +1 -0
- package/template-6.4.0-enterprise/packages/ss-project/src/shim-translate.d.ts +10 -0
- package/template-6.4.0-enterprise/packages/ss-project/src/shim-vue.d.ts +6 -0
- package/template-6.4.0-enterprise/packages/ss-project/tsconfig.json +42 -0
- package/template-6.4.0-enterprise/pnpm-workspace.yaml +3 -0
- package/template-6.4.0-enterprise/scripts/build/inset-tsconfig.js +68 -0
- package/template-6.4.0-enterprise/scripts/build/package-name.js +25 -0
- package/template-6.4.0-enterprise/scripts/build/postbuild.js +42 -0
- package/template-6.4.0-enterprise/scripts/build/prebuild-only.js +48 -0
- package/template-6.4.0-enterprise/scripts/clean.mjs +22 -0
- package/template-7.2.0-community/.prettierrc.json +8 -0
- package/template-7.2.0-community/README.md +59 -0
- package/template-7.2.0-community/_package.json +57 -0
- package/template-7.2.0-community/eslint.config.ts +23 -0
- package/template-7.2.0-community/gitignore +58 -0
- package/template-7.2.0-community/lerna.json +12 -0
- package/template-7.2.0-community/npmrc +3 -0
- package/template-7.2.0-community/packages/ss-admin-widget/index.ts +1 -0
- package/template-7.2.0-community/packages/ss-admin-widget/package.json +27 -0
- package/template-7.2.0-community/packages/ss-admin-widget/rollup.config.js +12 -0
- package/template-7.2.0-community/packages/ss-admin-widget/scripts/postpublish.js +13 -0
- package/template-7.2.0-community/packages/ss-admin-widget/scripts/prepublish-only.js +24 -0
- package/template-7.2.0-community/packages/ss-admin-widget/src/index.ts +1 -0
- package/template-7.2.0-community/packages/ss-admin-widget/src/shim-translate.d.ts +10 -0
- package/template-7.2.0-community/packages/ss-admin-widget/src/shim-vue.d.ts +6 -0
- package/template-7.2.0-community/packages/ss-admin-widget/tsconfig.json +14 -0
- package/template-7.2.0-community/packages/ss-boot/.env +1 -0
- package/template-7.2.0-community/packages/ss-boot/.env.example +6 -0
- package/template-7.2.0-community/packages/ss-boot/package.json +51 -0
- package/template-7.2.0-community/packages/ss-boot/public/favicon.ico +0 -0
- package/template-7.2.0-community/packages/ss-boot/public/index.html +83 -0
- package/template-7.2.0-community/packages/ss-boot/public/manifest.js +5 -0
- package/template-7.2.0-community/packages/ss-boot/src/main.ts +46 -0
- package/template-7.2.0-community/packages/ss-boot/src/shim-translate.d.ts +10 -0
- package/template-7.2.0-community/packages/ss-boot/src/shim-vue.d.ts +6 -0
- package/template-7.2.0-community/packages/ss-boot/tsconfig.json +27 -0
- package/template-7.2.0-community/packages/ss-boot/vue.config.js +87 -0
- package/template-7.2.0-community/packages/ss-oinone/index.ts +1 -0
- package/template-7.2.0-community/packages/ss-oinone/package.json +30 -0
- package/template-7.2.0-community/packages/ss-oinone/rollup.config.js +12 -0
- package/template-7.2.0-community/packages/ss-oinone/scripts/postpublish.js +13 -0
- package/template-7.2.0-community/packages/ss-oinone/scripts/prepublish-only.js +24 -0
- package/template-7.2.0-community/packages/ss-oinone/src/index.ts +1 -0
- package/template-7.2.0-community/packages/ss-oinone/src/shim-translate.d.ts +10 -0
- package/template-7.2.0-community/packages/ss-oinone/src/shim-vue.d.ts +6 -0
- package/template-7.2.0-community/packages/ss-oinone/tsconfig.json +14 -0
- package/template-7.2.0-community/packages/ss-project/index.ts +1 -0
- package/template-7.2.0-community/packages/ss-project/package.json +30 -0
- package/template-7.2.0-community/packages/ss-project/rollup.config.js +12 -0
- package/template-7.2.0-community/packages/ss-project/scripts/postpublish.js +13 -0
- package/template-7.2.0-community/packages/ss-project/scripts/prepublish-only.js +24 -0
- package/template-7.2.0-community/packages/ss-project/src/index.ts +1 -0
- package/template-7.2.0-community/packages/ss-project/src/shim-translate.d.ts +10 -0
- package/template-7.2.0-community/packages/ss-project/src/shim-vue.d.ts +6 -0
- package/template-7.2.0-community/packages/ss-project/tsconfig.json +14 -0
- package/template-7.2.0-community/pnpm-workspace.yaml +3 -0
- package/template-7.2.0-community/scripts/build/inset-tsconfig.js +68 -0
- package/template-7.2.0-community/scripts/build/package-name.js +25 -0
- package/template-7.2.0-community/scripts/clean.mjs +22 -0
- package/template-7.2.0-enterprise/.prettierrc.json +8 -0
- package/template-7.2.0-enterprise/README.md +59 -0
- package/template-7.2.0-enterprise/_package.json +57 -0
- package/template-7.2.0-enterprise/eslint.config.ts +23 -0
- package/template-7.2.0-enterprise/gitignore +58 -0
- package/template-7.2.0-enterprise/lerna.json +12 -0
- package/template-7.2.0-enterprise/npmrc +3 -0
- package/template-7.2.0-enterprise/packages/ss-admin-widget/index.ts +1 -0
- package/template-7.2.0-enterprise/packages/ss-admin-widget/package.json +27 -0
- package/template-7.2.0-enterprise/packages/ss-admin-widget/rollup.config.js +12 -0
- package/template-7.2.0-enterprise/packages/ss-admin-widget/scripts/postpublish.js +13 -0
- package/template-7.2.0-enterprise/packages/ss-admin-widget/scripts/prepublish-only.js +24 -0
- package/template-7.2.0-enterprise/packages/ss-admin-widget/src/index.ts +1 -0
- package/template-7.2.0-enterprise/packages/ss-admin-widget/src/shim-translate.d.ts +10 -0
- package/template-7.2.0-enterprise/packages/ss-admin-widget/src/shim-vue.d.ts +6 -0
- package/template-7.2.0-enterprise/packages/ss-admin-widget/tsconfig.json +14 -0
- package/template-7.2.0-enterprise/packages/ss-boot/.env +1 -0
- package/template-7.2.0-enterprise/packages/ss-boot/.env.example +6 -0
- package/template-7.2.0-enterprise/packages/ss-boot/package.json +64 -0
- package/template-7.2.0-enterprise/packages/ss-boot/public/favicon.ico +0 -0
- package/template-7.2.0-enterprise/packages/ss-boot/public/index.html +83 -0
- package/template-7.2.0-enterprise/packages/ss-boot/public/manifest.js +5 -0
- package/template-7.2.0-enterprise/packages/ss-boot/src/main.ts +66 -0
- package/template-7.2.0-enterprise/packages/ss-boot/src/shim-translate.d.ts +10 -0
- package/template-7.2.0-enterprise/packages/ss-boot/src/shim-vue.d.ts +6 -0
- package/template-7.2.0-enterprise/packages/ss-boot/tsconfig.json +27 -0
- package/template-7.2.0-enterprise/packages/ss-boot/vue.config.js +87 -0
- package/template-7.2.0-enterprise/packages/ss-oinone/index.ts +1 -0
- package/template-7.2.0-enterprise/packages/ss-oinone/package.json +30 -0
- package/template-7.2.0-enterprise/packages/ss-oinone/rollup.config.js +12 -0
- package/template-7.2.0-enterprise/packages/ss-oinone/scripts/postpublish.js +13 -0
- package/template-7.2.0-enterprise/packages/ss-oinone/scripts/prepublish-only.js +24 -0
- package/template-7.2.0-enterprise/packages/ss-oinone/src/index.ts +1 -0
- package/template-7.2.0-enterprise/packages/ss-oinone/src/shim-translate.d.ts +10 -0
- package/template-7.2.0-enterprise/packages/ss-oinone/src/shim-vue.d.ts +6 -0
- package/template-7.2.0-enterprise/packages/ss-oinone/tsconfig.json +14 -0
- package/template-7.2.0-enterprise/packages/ss-project/index.ts +1 -0
- package/template-7.2.0-enterprise/packages/ss-project/package.json +30 -0
- package/template-7.2.0-enterprise/packages/ss-project/rollup.config.js +12 -0
- package/template-7.2.0-enterprise/packages/ss-project/scripts/postpublish.js +13 -0
- package/template-7.2.0-enterprise/packages/ss-project/scripts/prepublish-only.js +24 -0
- package/template-7.2.0-enterprise/packages/ss-project/src/index.ts +1 -0
- package/template-7.2.0-enterprise/packages/ss-project/src/shim-translate.d.ts +10 -0
- package/template-7.2.0-enterprise/packages/ss-project/src/shim-vue.d.ts +6 -0
- package/template-7.2.0-enterprise/packages/ss-project/tsconfig.json +14 -0
- package/template-7.2.0-enterprise/pnpm-workspace.yaml +3 -0
- package/template-7.2.0-enterprise/scripts/build/inset-tsconfig.js +68 -0
- package/template-7.2.0-enterprise/scripts/build/package-name.js +25 -0
- package/template-7.2.0-enterprise/scripts/clean.mjs +22 -0
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@ss/admin-widget",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"main": "index.ts",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"clean": "rimraf dist package-lock.json node_modules",
|
|
7
|
+
"prebuild": "rimraf dist",
|
|
8
|
+
"build": "rollup -c && npm run build-css",
|
|
9
|
+
"build-css": "[ -f './dist/kunlun-module-demo.scss' ] && sass ./dist/kunlun-module-demo.scss ./dist/kunlun-module-demo.css || exit 0",
|
|
10
|
+
"build-win": "rollup -c && npm run build-css-win",
|
|
11
|
+
"build-css-win": "IF EXIST ./dist/kunlun-module-demo.scss (sass ./dist/kunlun-module-demo.scss ./dist/kunlun-module-demo.css) ELSE (exit 0)",
|
|
12
|
+
"prepublishOnly": "node ./scripts/prepublish-only.js",
|
|
13
|
+
"postpublish": "node ./scripts/postpublish.js"
|
|
14
|
+
},
|
|
15
|
+
"devDependencies": {
|
|
16
|
+
"@element-plus/icons-vue": "2.0.9",
|
|
17
|
+
"@oinone/kunlun-compile": "~7.2.0",
|
|
18
|
+
"@oinone/kunlun-dependencies": "~7.2.0",
|
|
19
|
+
"@oinone/kunlun-vue-ui-antd": "~7.2.0",
|
|
20
|
+
"@oinone/kunlun-vue-ui-el": "~7.2.0",
|
|
21
|
+
"@ss/oinone": "workspace:*",
|
|
22
|
+
"@types/lodash-es": "4.17.6",
|
|
23
|
+
"ant-design-vue": "4.2.6",
|
|
24
|
+
"element-plus": "2.13.0",
|
|
25
|
+
"vue": "3.5.26"
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import CompileConfigBuilder from '@oinone/kunlun-compile';
|
|
2
|
+
|
|
3
|
+
export default CompileConfigBuilder.config()
|
|
4
|
+
.setLibraryName('ss-admin-widget')
|
|
5
|
+
.singleModule()
|
|
6
|
+
.replace()
|
|
7
|
+
.nodeResolve()
|
|
8
|
+
.commonjs()
|
|
9
|
+
.typescript2()
|
|
10
|
+
.json()
|
|
11
|
+
.terser()
|
|
12
|
+
.build();
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/* eslint-disable import/no-dynamic-require */
|
|
2
|
+
/* eslint-disable @typescript-eslint/no-var-requires */
|
|
3
|
+
const fs = require('fs');
|
|
4
|
+
const path = require('path');
|
|
5
|
+
const url = path.resolve(process.cwd(), 'package.json');
|
|
6
|
+
const packageJSON = require(url);
|
|
7
|
+
|
|
8
|
+
packageJSON.main = 'index.ts';
|
|
9
|
+
delete packageJSON.module;
|
|
10
|
+
delete packageJSON.typings;
|
|
11
|
+
delete packageJSON.files;
|
|
12
|
+
|
|
13
|
+
fs.writeFileSync('package.json', JSON.stringify(packageJSON, null, 2));
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/* eslint-disable import/no-dynamic-require */
|
|
2
|
+
/* eslint-disable @typescript-eslint/no-var-requires */
|
|
3
|
+
const fs = require('fs');
|
|
4
|
+
const path = require('path');
|
|
5
|
+
const url = path.resolve(process.cwd(), 'package.json');
|
|
6
|
+
const packageJSON = require(url);
|
|
7
|
+
|
|
8
|
+
const libName = packageJSON.name.replace('@', '').replace('/', '-');
|
|
9
|
+
|
|
10
|
+
packageJSON.main = `dist/${libName}.esm.js`;
|
|
11
|
+
packageJSON.module = `dist/${libName}.esm.js`;
|
|
12
|
+
const typings = 'dist/types/index.d.ts';
|
|
13
|
+
packageJSON.typings = typings;
|
|
14
|
+
|
|
15
|
+
const typingsUrl = path.resolve(process.cwd(), typings);
|
|
16
|
+
const dir = fs.existsSync(typingsUrl);
|
|
17
|
+
|
|
18
|
+
if (!dir) {
|
|
19
|
+
packageJSON.typings = 'dist/index.d.ts';
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
packageJSON.files = ['dist'];
|
|
23
|
+
|
|
24
|
+
fs.writeFileSync('package.json', JSON.stringify(packageJSON, null, 2));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
STATIC_IMG=/oss/images
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "ss-boot",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"private": true,
|
|
5
|
+
"scripts": {
|
|
6
|
+
"clean": "rimraf dist package-lock.json node_modules",
|
|
7
|
+
"dev": "vue-cli-service serve",
|
|
8
|
+
"build": "node --max_old_space_size=4096 ./node_modules/@vue/cli-service/bin/vue-cli-service.js build"
|
|
9
|
+
},
|
|
10
|
+
"dependencies": {
|
|
11
|
+
"@ant-design/icons-vue": "7.0.1",
|
|
12
|
+
"@antv/data-set": "^0.11.8",
|
|
13
|
+
"@antv/g2": "^5.4.8",
|
|
14
|
+
"@element-plus/icons-vue": "2.0.9",
|
|
15
|
+
"@oinone/kunlun-dependencies": "~7.2.0",
|
|
16
|
+
"@oinone/kunlun-vue-ui-antd": "~7.2.0",
|
|
17
|
+
"@oinone/kunlun-vue-ui-el": "~7.2.0",
|
|
18
|
+
"@ss/admin-widget": "workspace:*",
|
|
19
|
+
"@ss/oinone": "workspace:*",
|
|
20
|
+
"@ss/project": "workspace:*",
|
|
21
|
+
"ant-design-vue": "4.2.6",
|
|
22
|
+
"echarts": "5.3.1",
|
|
23
|
+
"element-plus": "2.13.0",
|
|
24
|
+
"fast-xml-parser": "3.21.1",
|
|
25
|
+
"graphql": "15.8.0",
|
|
26
|
+
"graphql-tag": "2.12.6",
|
|
27
|
+
"lodash-es": "4.17.21",
|
|
28
|
+
"reflect-metadata": "0.2.2",
|
|
29
|
+
"rxjs": "6.6.7",
|
|
30
|
+
"vant": "4.9.22",
|
|
31
|
+
"vue": "3.5.26",
|
|
32
|
+
"vue3-draggable-resizable": "1.6.1",
|
|
33
|
+
"vuedraggable": "4.1.0"
|
|
34
|
+
},
|
|
35
|
+
"devDependencies": {
|
|
36
|
+
"@oinone/kunlun-compile": "~7.2.0",
|
|
37
|
+
"@types/lodash": "4.17.21",
|
|
38
|
+
"@types/lodash-es": "4.17.6",
|
|
39
|
+
"@vue/cli-plugin-eslint": "5.0.9",
|
|
40
|
+
"@vue/cli-plugin-typescript": "5.0.9",
|
|
41
|
+
"@vue/cli-service": "5.0.9",
|
|
42
|
+
"@vue/compiler-sfc": "3.5.26",
|
|
43
|
+
"cross-env": "10.1.0",
|
|
44
|
+
"dotenv-webpack": "8.1.1",
|
|
45
|
+
"thread-loader": "3.0.4",
|
|
46
|
+
"tslib": "2.8.1",
|
|
47
|
+
"typescript": "5.9.3",
|
|
48
|
+
"vue-tsc": "3.1.8",
|
|
49
|
+
"webpack": "5.104.1"
|
|
50
|
+
}
|
|
51
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="zh-CN" dir="ltr">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8" />
|
|
5
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
6
|
+
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
|
|
7
|
+
<link ref="viewport" content="width=device-width,initial-scale=1.0" />
|
|
8
|
+
<title>Oinone</title>
|
|
9
|
+
<style>
|
|
10
|
+
:root {
|
|
11
|
+
--ss-primary: var(--oio-primary-color) !important;
|
|
12
|
+
--ss-action-hover-bg: var(--oio-primary-color) !important;
|
|
13
|
+
--ss-hover-bg: rgba(var(--oio-primary-color-rgb), 0.1) !important;
|
|
14
|
+
--table-high-light-bg: rgba(var(--oio-primary-color-rgb), 0.1) !important;
|
|
15
|
+
--el-color-primary: var(--oio-primary-color) !important;
|
|
16
|
+
--oio-background: #fff;
|
|
17
|
+
--oio-margin: 24px;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
#app {
|
|
21
|
+
height: 100%;
|
|
22
|
+
width: 100%;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.default-metadata-main-view-spin {
|
|
26
|
+
width: 100%;
|
|
27
|
+
height: 100%;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
#app > .ant-spin-nested-loading > div > .ant-spin .ant-spin-dot {
|
|
31
|
+
width: 32px;
|
|
32
|
+
height: 32px;
|
|
33
|
+
position: relative;
|
|
34
|
+
left: 0;
|
|
35
|
+
margin: 0;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.default-metadata-main-view-spin > .ant-spin-dot {
|
|
39
|
+
top: 50%;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.default-metadata-main-view-wrapper {
|
|
43
|
+
height: 100%;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.default-metadata-main-view-wrapper > div > .oio-spin {
|
|
47
|
+
max-height: 100%;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.default-metadata-main-view-wrapper > .ant-spin-container {
|
|
51
|
+
height: 100%;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.default-metadata-main-view-wrapper > .ant-spin-container > .ant-spin-blur > * {
|
|
55
|
+
display: none;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.el-popper__arrow {
|
|
59
|
+
visibility: hidden;
|
|
60
|
+
}
|
|
61
|
+
</style>
|
|
62
|
+
<script>
|
|
63
|
+
var _hmt = _hmt || [];
|
|
64
|
+
(function() {
|
|
65
|
+
var hm = document.createElement('script');
|
|
66
|
+
hm.src = 'https://hm.baidu.com/hm.js?c43bb1cd186bf6cd5c9062eb5235f4fd';
|
|
67
|
+
var s = document.getElementsByTagName('script')[0];
|
|
68
|
+
s.parentNode.insertBefore(hm, s);
|
|
69
|
+
})();
|
|
70
|
+
</script>
|
|
71
|
+
</head>
|
|
72
|
+
|
|
73
|
+
<body>
|
|
74
|
+
<noscript>
|
|
75
|
+
<strong
|
|
76
|
+
>We're sorry but this app doesn't work properly without JavaScript enabled. Please enable it to
|
|
77
|
+
continue.</strong
|
|
78
|
+
>
|
|
79
|
+
</noscript>
|
|
80
|
+
<div id="app"></div>
|
|
81
|
+
<script src="https://pamirs.oss-cn-hangzhou.aliyuncs.com/oinone/common/wangEditor.min.js"></script>
|
|
82
|
+
</body>
|
|
83
|
+
</html>
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import 'ant-design-vue/dist/reset.css';
|
|
2
|
+
import 'element-plus/dist/index.css';
|
|
3
|
+
import 'vant/lib/index.css';
|
|
4
|
+
|
|
5
|
+
import '@oinone/kunlun-vue-ui-antd/dist/oinone-kunlun-vue-ui-antd.css';
|
|
6
|
+
import '@oinone/kunlun-vue-ui-el/dist/oinone-kunlun-vue-ui-el.css';
|
|
7
|
+
|
|
8
|
+
import 'reflect-metadata';
|
|
9
|
+
import ElementPlus from 'element-plus';
|
|
10
|
+
import { App } from 'vue';
|
|
11
|
+
import { VueOioProvider, RuntimeContextManager } from '@oinone/kunlun-dependencies';
|
|
12
|
+
import 'vant/lib/index.css';
|
|
13
|
+
// 标准能力
|
|
14
|
+
import '@ss/oinone';
|
|
15
|
+
import '@ss/admin-widget';
|
|
16
|
+
// 个性化项目
|
|
17
|
+
import '@ss/project';
|
|
18
|
+
|
|
19
|
+
VueOioProvider(
|
|
20
|
+
{
|
|
21
|
+
browser: {
|
|
22
|
+
title: 'Oinone',
|
|
23
|
+
favicon: 'https://pamirs.oss-cn-hangzhou.aliyuncs.com/pamirs/image/default_favicon.ico'
|
|
24
|
+
},
|
|
25
|
+
dependencies: {
|
|
26
|
+
vue: import('vue'),
|
|
27
|
+
lodashEs: import('lodash-es'),
|
|
28
|
+
antDesignVue: import('ant-design-vue'),
|
|
29
|
+
antDesignIconsVue: import('@ant-design/icons-vue'),
|
|
30
|
+
elementPlusIconsVue: import('@element-plus/icons-vue'),
|
|
31
|
+
elementPlus: import('element-plus'),
|
|
32
|
+
kunlunDependencies: import('@oinone/kunlun-dependencies'),
|
|
33
|
+
kunlunVueUiAntd: import('@oinone/kunlun-vue-ui-antd'),
|
|
34
|
+
kunlunVueUiEl: import('@oinone/kunlun-vue-ui-el'),
|
|
35
|
+
antvDataSet: import('@antv/data-set'),
|
|
36
|
+
antvG2: import('@antv/g2'),
|
|
37
|
+
echarts: import('echarts')
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
[
|
|
41
|
+
() => {
|
|
42
|
+
const app = RuntimeContextManager.createOrReplace().frameworkInstance as App;
|
|
43
|
+
app.use(ElementPlus);
|
|
44
|
+
}
|
|
45
|
+
]
|
|
46
|
+
);
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"strict": true,
|
|
4
|
+
"target": "ES6",
|
|
5
|
+
"module": "esnext",
|
|
6
|
+
"jsx": "preserve",
|
|
7
|
+
"importHelpers": true,
|
|
8
|
+
"moduleResolution": "node",
|
|
9
|
+
"allowJs": true,
|
|
10
|
+
"skipLibCheck": true,
|
|
11
|
+
"esModuleInterop": true,
|
|
12
|
+
"allowSyntheticDefaultImports": true,
|
|
13
|
+
"experimentalDecorators": true,
|
|
14
|
+
"resolveJsonModule": true,
|
|
15
|
+
"sourceMap": true,
|
|
16
|
+
"checkJs": false,
|
|
17
|
+
"noImplicitAny": false,
|
|
18
|
+
"baseUrl": ".",
|
|
19
|
+
"types": ["webpack-env"],
|
|
20
|
+
"paths": {
|
|
21
|
+
"@/*": ["src/*"]
|
|
22
|
+
},
|
|
23
|
+
"lib": ["ES2018", "esnext", "dom", "dom.iterable", "scripthost"]
|
|
24
|
+
},
|
|
25
|
+
"include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.vue", "tests/**/*.ts", "tests/**/*.tsx"],
|
|
26
|
+
"exclude": ["node_modules", "dist"]
|
|
27
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
const Dotenv = require('dotenv-webpack');
|
|
2
|
+
|
|
3
|
+
module.exports = {
|
|
4
|
+
productionSourceMap: false,
|
|
5
|
+
publicPath: '/',
|
|
6
|
+
lintOnSave: false,
|
|
7
|
+
configureWebpack: {
|
|
8
|
+
resolve: {
|
|
9
|
+
fallback: {
|
|
10
|
+
crypto: false,
|
|
11
|
+
diagnostics_channel: false
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
plugins: [
|
|
15
|
+
new Dotenv(),
|
|
16
|
+
new (require('webpack').NormalModuleReplacementPlugin)(/^node:/, (resource) => {
|
|
17
|
+
resource.request = resource.request.replace(/^node:/, '');
|
|
18
|
+
})
|
|
19
|
+
]
|
|
20
|
+
},
|
|
21
|
+
chainWebpack: (config) => {
|
|
22
|
+
config.plugin('fork-ts-checker').tap((args) => {
|
|
23
|
+
args[0].typescript.memoryLimit = 8192;
|
|
24
|
+
return args;
|
|
25
|
+
});
|
|
26
|
+
config.plugin('html').tap((args) => {
|
|
27
|
+
args[0].chunksSortMode = (a, b) => {
|
|
28
|
+
if (a.entry !== b.entry) {
|
|
29
|
+
// make sure entry is loaded last so user CSS can override
|
|
30
|
+
// vendor CSS
|
|
31
|
+
return b.entry ? -1 : 1;
|
|
32
|
+
} else {
|
|
33
|
+
return 0;
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
return args;
|
|
37
|
+
});
|
|
38
|
+
config.optimization.splitChunks({
|
|
39
|
+
...config.optimization.get('splitChunks'),
|
|
40
|
+
cacheGroups: {
|
|
41
|
+
libs: {
|
|
42
|
+
name: 'chunk-a',
|
|
43
|
+
test: /[\\/]node_modules[\\/]/,
|
|
44
|
+
priority: 1,
|
|
45
|
+
chunks: 'initial',
|
|
46
|
+
maxSize: 6000000,
|
|
47
|
+
minSize: 3000000,
|
|
48
|
+
maxInitialRequests: 5
|
|
49
|
+
},
|
|
50
|
+
kunlun: {
|
|
51
|
+
name: 'chunk-b',
|
|
52
|
+
test: /[\\/]node_modules[\\/]@oinone[\\/]/,
|
|
53
|
+
priority: 2,
|
|
54
|
+
chunks: 'initial',
|
|
55
|
+
maxSize: 6000000,
|
|
56
|
+
minSize: 3000000,
|
|
57
|
+
maxInitialRequests: 5
|
|
58
|
+
},
|
|
59
|
+
common: {
|
|
60
|
+
name: 'chunk-c',
|
|
61
|
+
minChunks: 2,
|
|
62
|
+
priority: 3,
|
|
63
|
+
chunks: 'initial',
|
|
64
|
+
reuseExistingChunk: true
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
},
|
|
69
|
+
devServer: {
|
|
70
|
+
port: 8080,
|
|
71
|
+
allowedHosts: 'all',
|
|
72
|
+
compress: false,
|
|
73
|
+
client: {
|
|
74
|
+
overlay: false
|
|
75
|
+
},
|
|
76
|
+
proxy: {
|
|
77
|
+
'/pamirs': {
|
|
78
|
+
// 支持跨域
|
|
79
|
+
changeOrigin: true,
|
|
80
|
+
// 请求后端地址
|
|
81
|
+
target: 'http://127.0.0.1:8091'
|
|
82
|
+
// Oinone 提供的演示环境地址
|
|
83
|
+
// target: 'https://demo.oinone.top'
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './src';
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@ss/oinone",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"main": "index.ts",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"clean": "rimraf dist package-lock.json node_modules",
|
|
7
|
+
"prebuild": "rimraf dist",
|
|
8
|
+
"build": "rollup -c && npm run build-css",
|
|
9
|
+
"build-css": "[ -f './dist/kunlun-module-demo.scss' ] && sass ./dist/kunlun-module-demo.scss ./dist/kunlun-module-demo.css || exit 0",
|
|
10
|
+
"build-win": "rollup -c && npm run build-css-win",
|
|
11
|
+
"build-css-win": "IF EXIST ./dist/kunlun-module-demo.scss (sass ./dist/kunlun-module-demo.scss ./dist/kunlun-module-demo.css) ELSE (exit 0)",
|
|
12
|
+
"prepublishOnly": "node ./scripts/prepublish-only.js",
|
|
13
|
+
"postpublish": "node ./scripts/postpublish.js"
|
|
14
|
+
},
|
|
15
|
+
"dependencies": {
|
|
16
|
+
"lucide": "1.7.0"
|
|
17
|
+
},
|
|
18
|
+
"devDependencies": {
|
|
19
|
+
"@ant-design/icons-vue": "7.0.1",
|
|
20
|
+
"@element-plus/icons-vue": "2.0.9",
|
|
21
|
+
"@oinone/kunlun-compile": "~7.2.0",
|
|
22
|
+
"@oinone/kunlun-dependencies": "~7.2.0",
|
|
23
|
+
"@oinone/kunlun-vue-ui-antd": "~7.2.0",
|
|
24
|
+
"@oinone/kunlun-vue-ui-el": "~7.2.0",
|
|
25
|
+
"@types/lodash-es": "4.17.6",
|
|
26
|
+
"ant-design-vue": "4.2.6",
|
|
27
|
+
"element-plus": "2.13.0",
|
|
28
|
+
"vue": "3.5.26"
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/* eslint-disable import/no-dynamic-require */
|
|
2
|
+
/* eslint-disable @typescript-eslint/no-var-requires */
|
|
3
|
+
const fs = require('fs');
|
|
4
|
+
const path = require('path');
|
|
5
|
+
const url = path.resolve(process.cwd(), 'package.json');
|
|
6
|
+
const packageJSON = require(url);
|
|
7
|
+
|
|
8
|
+
packageJSON.main = 'index.ts';
|
|
9
|
+
delete packageJSON.module;
|
|
10
|
+
delete packageJSON.typings;
|
|
11
|
+
delete packageJSON.files;
|
|
12
|
+
|
|
13
|
+
fs.writeFileSync('package.json', JSON.stringify(packageJSON, null, 2));
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/* eslint-disable import/no-dynamic-require */
|
|
2
|
+
/* eslint-disable @typescript-eslint/no-var-requires */
|
|
3
|
+
const fs = require('fs');
|
|
4
|
+
const path = require('path');
|
|
5
|
+
const url = path.resolve(process.cwd(), 'package.json');
|
|
6
|
+
const packageJSON = require(url);
|
|
7
|
+
|
|
8
|
+
const libName = packageJSON.name.replace('@', '').replace('/', '-');
|
|
9
|
+
|
|
10
|
+
packageJSON.main = `dist/${libName}.esm.js`;
|
|
11
|
+
packageJSON.module = `dist/${libName}.esm.js`;
|
|
12
|
+
const typings = 'dist/types/index.d.ts';
|
|
13
|
+
packageJSON.typings = typings;
|
|
14
|
+
|
|
15
|
+
const typingsUrl = path.resolve(process.cwd(), typings);
|
|
16
|
+
const dir = fs.existsSync(typingsUrl);
|
|
17
|
+
|
|
18
|
+
if (!dir) {
|
|
19
|
+
packageJSON.typings = 'dist/index.d.ts';
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
packageJSON.files = ['dist'];
|
|
23
|
+
|
|
24
|
+
fs.writeFileSync('package.json', JSON.stringify(packageJSON, null, 2));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './src';
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@ss/project",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"main": "index.ts",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"clean": "rimraf dist package-lock.json node_modules",
|
|
7
|
+
"prebuild": "rimraf dist",
|
|
8
|
+
"build": "rollup -c && npm run build-css",
|
|
9
|
+
"build-css": "[ -f './dist/kunlun-module-demo.scss' ] && sass ./dist/kunlun-module-demo.scss ./dist/kunlun-module-demo.css || exit 0",
|
|
10
|
+
"build-win": "rollup -c && npm run build-css-win",
|
|
11
|
+
"build-css-win": "IF EXIST ./dist/kunlun-module-demo.scss (sass ./dist/kunlun-module-demo.scss ./dist/kunlun-module-demo.css) ELSE (exit 0)",
|
|
12
|
+
"prepublishOnly": "node ./scripts/prepublish-only.js",
|
|
13
|
+
"postpublish": "node ./scripts/postpublish.js"
|
|
14
|
+
},
|
|
15
|
+
"dependencies": {
|
|
16
|
+
"lucide": "1.7.0"
|
|
17
|
+
},
|
|
18
|
+
"devDependencies": {
|
|
19
|
+
"@element-plus/icons-vue": "2.0.9",
|
|
20
|
+
"@oinone/kunlun-compile": "~7.2.0",
|
|
21
|
+
"@oinone/kunlun-dependencies": "~7.2.0",
|
|
22
|
+
"@oinone/kunlun-vue-ui-antd": "~7.2.0",
|
|
23
|
+
"@oinone/kunlun-vue-ui-el": "~7.2.0",
|
|
24
|
+
"@ss/oinone": "workspace:*",
|
|
25
|
+
"@types/lodash-es": "4.17.6",
|
|
26
|
+
"ant-design-vue": "4.2.6",
|
|
27
|
+
"element-plus": "2.13.0",
|
|
28
|
+
"vue": "3.5.26"
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/* eslint-disable import/no-dynamic-require */
|
|
2
|
+
/* eslint-disable @typescript-eslint/no-var-requires */
|
|
3
|
+
const fs = require('fs');
|
|
4
|
+
const path = require('path');
|
|
5
|
+
const url = path.resolve(process.cwd(), 'package.json');
|
|
6
|
+
const packageJSON = require(url);
|
|
7
|
+
|
|
8
|
+
packageJSON.main = 'index.ts';
|
|
9
|
+
delete packageJSON.module;
|
|
10
|
+
delete packageJSON.typings;
|
|
11
|
+
delete packageJSON.files;
|
|
12
|
+
|
|
13
|
+
fs.writeFileSync('package.json', JSON.stringify(packageJSON, null, 2));
|