mooho-base-admin-plus 0.4.65 → 0.4.67
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/dist/fa-brands-400.8ea87917.woff2 +0 -0
- package/dist/fa-brands-400.a3b98177.svg +3717 -0
- package/dist/fa-brands-400.cda59d6e.ttf +0 -0
- package/dist/fa-brands-400.e4299464.eot +0 -0
- package/dist/fa-brands-400.f9217f66.woff +0 -0
- package/dist/fa-regular-400.79d08806.eot +0 -0
- package/dist/fa-regular-400.be0a0849.svg +801 -0
- package/dist/fa-regular-400.cb9e9e69.woff +0 -0
- package/dist/fa-regular-400.e42a8844.woff2 +0 -0
- package/dist/fa-regular-400.e8711bbb.ttf +0 -0
- package/dist/fa-solid-900.373c04fd.eot +0 -0
- package/dist/fa-solid-900.3f6d3488.woff +0 -0
- package/dist/fa-solid-900.9674eb1b.svg +5034 -0
- package/dist/fa-solid-900.9834b82a.woff2 +0 -0
- package/dist/fa-solid-900.af639750.ttf +0 -0
- package/dist/header-theme-dark.932bb39b.svg +40 -0
- package/dist/header-theme-primary.10194387.svg +40 -0
- package/dist/{style.css → index.a0dbf414.css} +4 -1
- package/dist/index.eaecbd5c.js +562 -0
- package/dist/index.html +19 -0
- package/dist/ionicons.503dc6b7.woff2 +0 -0
- package/dist/nav-theme-dark.d93c9dff.svg +40 -0
- package/dist/nav-theme-light.f039dce7.svg +40 -0
- package/package/favicon.ico +0 -0
- package/{dist → package}/mooho-base-admin-plus.min.esm.js +3266 -952
- package/package/mooho-base-admin-plus.min.js +477 -0
- package/package/setting.js +45 -0
- package/package/static/images/app-barcode.png +0 -0
- package/package/static/images/login/bg.png +0 -0
- package/package/static/images/login/logo.png +0 -0
- package/package/static/images/login/password-active.png +0 -0
- package/package/static/images/login/password-default.png +0 -0
- package/package/static/images/login/signIn-img.png +0 -0
- package/package/static/images/login/user-active.png +0 -0
- package/package/static/images/login/user-default.png +0 -0
- package/package/static/images/logo-dark.png +0 -0
- package/package/static/images/logo-small.png +0 -0
- package/package/static/images/logo.png +0 -0
- package/package/static/images/logo.svg +510 -0
- package/package/static/images/no-image.png +0 -0
- package/package/style.css +4 -0
- package/package.json +3 -5
- package/src/index.js +3 -0
- package/test/main.js +0 -3
- package/vite.config.js +28 -22
- package/dist/mooho-base-admin-plus.min.js +0 -224
package/package.json
CHANGED
|
@@ -1,18 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mooho-base-admin-plus",
|
|
3
3
|
"description": "MOOHO basic framework for admin by Vue3",
|
|
4
|
-
"version": "0.4.
|
|
4
|
+
"version": "0.4.67",
|
|
5
5
|
"author": "jinyifan <jinyifan@mooho.com.cn>",
|
|
6
6
|
"dotnetVersion": "1.4.0",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"private": false,
|
|
9
|
-
"
|
|
9
|
+
"module": "./package/mooho-base-admin-plus.min.js",
|
|
10
10
|
"scripts": {
|
|
11
11
|
"dev": "vite --open",
|
|
12
12
|
"build": "vite build",
|
|
13
|
-
"
|
|
14
|
-
"lint": "vue-cli-service lint",
|
|
15
|
-
"package": "vite build",
|
|
13
|
+
"package": "vite build --mode lib",
|
|
16
14
|
"styleguide": "vue-styleguidist server",
|
|
17
15
|
"styleguide:build": "vue-styleguidist build"
|
|
18
16
|
},
|
package/src/index.js
CHANGED
|
@@ -72,6 +72,9 @@ import './styles/css/default.css';
|
|
|
72
72
|
// CKEditor
|
|
73
73
|
//import ckEditor from 'ckeditor4-vue';
|
|
74
74
|
|
|
75
|
+
// fa图标
|
|
76
|
+
import '@fortawesome/fontawesome-free/css/all.min.css';
|
|
77
|
+
|
|
75
78
|
// 指令
|
|
76
79
|
import focus from './directive/focus';
|
|
77
80
|
import tabHide from './directive/tabHide';
|
package/test/main.js
CHANGED
package/vite.config.js
CHANGED
|
@@ -3,13 +3,29 @@ import vue from '@vitejs/plugin-vue';
|
|
|
3
3
|
import { resolve } from 'path';
|
|
4
4
|
import Setting from './test/setting.env';
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
export default defineConfig({
|
|
6
|
+
const build = defineConfig({
|
|
8
7
|
plugins: [vue()],
|
|
9
8
|
base: Setting.publicPath,
|
|
10
9
|
build: {
|
|
11
10
|
sourcemap: false, // 输出.map文件
|
|
12
11
|
outDir: Setting.outputDir,
|
|
12
|
+
assetsDir: Setting.assetsDir
|
|
13
|
+
// minify: 'terser', // 混淆器,terser构建后文件体积更小
|
|
14
|
+
},
|
|
15
|
+
resolve: {
|
|
16
|
+
alias: {
|
|
17
|
+
'@': resolve(__dirname, '.', 'src')
|
|
18
|
+
}
|
|
19
|
+
// extensions: ['.js', '.json', '.vue']
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
const lib = defineConfig({
|
|
24
|
+
plugins: [vue()],
|
|
25
|
+
base: Setting.publicPath,
|
|
26
|
+
build: {
|
|
27
|
+
sourcemap: false, // 输出.map文件
|
|
28
|
+
outDir: 'package',
|
|
13
29
|
assetsDir: Setting.assetsDir,
|
|
14
30
|
// minify: 'terser', // 混淆器,terser构建后文件体积更小
|
|
15
31
|
lib: {
|
|
@@ -54,24 +70,14 @@ export default defineConfig({
|
|
|
54
70
|
}
|
|
55
71
|
// extensions: ['.js', '.json', '.vue']
|
|
56
72
|
}
|
|
57
|
-
// 打包配置
|
|
58
|
-
// build: {
|
|
59
|
-
// target: 'modules',
|
|
60
|
-
// outDir: 'dist', //指定输出路径
|
|
61
|
-
// assetsDir: 'assets', // 指定生成静态资源的存放路径
|
|
62
|
-
// minify: 'terser' // 混淆器,terser构建后文件体积更小
|
|
63
|
-
// }
|
|
64
|
-
// 本地运行配置,及反向代理配置
|
|
65
|
-
// server: {
|
|
66
|
-
// cors: true, // 默认启用并允许任何源
|
|
67
|
-
// open: true, // 在服务器启动时自动在浏览器中打开应用程序
|
|
68
|
-
// // 反向代理配置
|
|
69
|
-
// proxy: {
|
|
70
|
-
// '/api': {
|
|
71
|
-
// target: 'http://192.168.99.233:3001', // 代理接口
|
|
72
|
-
// changeOrigin: true,
|
|
73
|
-
// rewrite: path => path.replace(/^\/api/, '')
|
|
74
|
-
// }
|
|
75
|
-
// }
|
|
76
|
-
// }
|
|
77
73
|
});
|
|
74
|
+
|
|
75
|
+
export default ({ mode }) => {
|
|
76
|
+
switch (mode) {
|
|
77
|
+
case 'lib': // 打包库文件
|
|
78
|
+
return lib;
|
|
79
|
+
|
|
80
|
+
default: // 开发模式、生产模式
|
|
81
|
+
return build;
|
|
82
|
+
}
|
|
83
|
+
};
|