haiwei-module-admin 1.0.0 → 1.0.2

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.
Files changed (44) hide show
  1. package/.browserslistrc +2 -0
  2. package/.eslintrc.js +18 -0
  3. package/.prettierrc +6 -0
  4. package/.vscode/settings.json +10 -0
  5. package/babel.config.js +10 -0
  6. package/package.json +9 -17
  7. package/postcss.config.js +5 -0
  8. package/script/npm_install.bat +4 -0
  9. package/script/npm_install.ps1 +3 -0
  10. package/script/npm_publish.bat +4 -0
  11. package/script/npm_publish.ps1 +3 -0
  12. package/script/npm_update.bat +4 -0
  13. package/script/npm_update.ps1 +3 -0
  14. package/src/api/components/file.js +3 -0
  15. package/src/components/enum-checkbox/index.vue +1 -1
  16. package/src/components/enum-radio/index.vue +1 -1
  17. package/src/components/enum-select/index.vue +1 -1
  18. package/src/components/file-preview/index copy.vue +531 -0
  19. package/src/components/file-preview/index.vue +534 -0
  20. package/src/components/index.js +1 -1
  21. package/src/components/login-mode-select/index.vue +1 -1
  22. package/src/components/module-select/index.vue +1 -1
  23. package/src/components/platform-select/index.vue +1 -1
  24. package/src/components/role-select/index.vue +1 -1
  25. package/src/index.js +6 -6
  26. package/src/routes/index.js +1 -1
  27. package/src/views/account/components/save/index.vue +1 -1
  28. package/src/views/account/index/index.vue +1 -1
  29. package/src/views/auditInfo/components/details/index.vue +1 -1
  30. package/src/views/button/permission-bind/index.vue +1 -1
  31. package/src/views/cache/index/index.vue +1 -1
  32. package/src/views/file/components/save/index.vue +106 -0
  33. package/src/views/file/index/index.vue +54 -3
  34. package/src/views/file/index/page.js +8 -0
  35. package/src/views/menu/components/add/index.vue +1 -1
  36. package/src/views/menu/components/edit/index.vue +1 -1
  37. package/src/views/mime/components/save/index.vue +1 -1
  38. package/src/views/mime/index/index.vue +1 -1
  39. package/src/views/module/components/page-list/index.vue +1 -1
  40. package/src/views/module/components/permission-list/index.vue +1 -1
  41. package/src/views/role/components/platform-bind/index.vue +1 -1
  42. package/src/views/role/components/save/index.vue +1 -1
  43. package/src/views/role/index/index.vue +1 -1
  44. package/vue.config.js +118 -0
@@ -0,0 +1,2 @@
1
+ > 1%
2
+ last 2 versions
package/.eslintrc.js ADDED
@@ -0,0 +1,18 @@
1
+ module.exports = {
2
+ root: true,
3
+ env: {
4
+ node: true
5
+ },
6
+ extends: ['plugin:vue/essential', '@vue/prettier'],
7
+ rules: {
8
+ 'no-console': 'off',
9
+ 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off'
10
+ },
11
+ parserOptions: {
12
+ parser: 'babel-eslint'
13
+ },
14
+ globals: {
15
+ $http: 'readonly',
16
+ $api: 'readonly'
17
+ }
18
+ }
package/.prettierrc ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "tabWidth": 2,
3
+ "semi": false,
4
+ "singleQuote": true,
5
+ "printWidth": 200
6
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "editor.defaultFormatter": "esbenp.prettier-vscode",
3
+ "editor.formatOnPaste": true,
4
+ "editor.formatOnSave": true,
5
+ "editor.formatOnType": true,
6
+ "editor.codeActionsOnSave": {
7
+ "source.fixAll.tslint": true,
8
+ "source.fixAll.eslint": true
9
+ }
10
+ }
@@ -0,0 +1,10 @@
1
+ module.exports = {
2
+ presets: [
3
+ [
4
+ '@vue/cli-plugin-babel/preset',
5
+ {
6
+ useBuiltIns: 'entry'
7
+ }
8
+ ]
9
+ ]
10
+ }
package/package.json CHANGED
@@ -1,7 +1,9 @@
1
1
  {
2
+ "id": 0,
2
3
  "name": "haiwei-module-admin",
3
- "version": "1.0.0",
4
- "description": "HaiWei前端Admin模块组件",
4
+ "code": "admin",
5
+ "version": "1.0.2",
6
+ "description": "haiwei前端Admin模块组件",
5
7
  "author": "Eric",
6
8
  "license": "ISC",
7
9
  "main": "src/index.js",
@@ -9,15 +11,15 @@
9
11
  "serve": "vue-cli-service serve",
10
12
  "build": "vue-cli-service build",
11
13
  "lint": "vue-cli-service lint",
12
- "cm": "powershell -Command \"if (Test-Path node_modules) { Remove-Item -Recurse -Force node_modules }; if (Test-Path dist) { Remove-Item -Recurse -Force dist }\"",
13
- "cc": "powershell -Command \"if (Test-Path node_modules/.cache) { Remove-Item -Recurse -Force node_modules/.cache }\"",
14
+ "cm": "rimraf node_modules",
15
+ "cc": "rimraf node_modules/.cache",
14
16
  "i": "cd ./script && npm_install.bat",
15
17
  "up": "cd ./script && npm_update.bat",
16
18
  "pub": "cd ./script && npm_publish.bat"
17
19
  },
18
20
  "dependencies": {
19
21
  "haiwei-skins-classics": "^1.0.2",
20
- "haiwei-ui": "^1.0.2"
22
+ "haiwei-ui": "^1.0.5"
21
23
  },
22
24
  "devDependencies": {
23
25
  "@vue/cli-plugin-babel": "^4.4.4",
@@ -39,16 +41,6 @@
39
41
  },
40
42
  "repository": {
41
43
  "type": "git",
42
- "url": "https://github.com/iamoldli/haiwei.main.git"
43
- },
44
- "keywords": [
45
- "haiwei",
46
- "admin",
47
- "module",
48
- "vue",
49
- "ui-framework"
50
- ],
51
- "files": [
52
- "src"
53
- ]
44
+ "url": "https://github.com/iamoldli/haiwei"
45
+ }
54
46
  }
@@ -0,0 +1,5 @@
1
+ module.exports = {
2
+ plugins: {
3
+ autoprefixer: {}
4
+ }
5
+ }
@@ -0,0 +1,4 @@
1
+ @echo off
2
+ REM 执行 npm 安装脚本
3
+ powershell -ExecutionPolicy Bypass -File "%~dp0npm_install.ps1"
4
+ pause
@@ -0,0 +1,3 @@
1
+ cd ../
2
+ npm --registry https://registry.npmjs.org/ install
3
+ pause
@@ -0,0 +1,4 @@
1
+ @echo off
2
+ REM 执行 npm 发布脚本
3
+ powershell -ExecutionPolicy Bypass -File "%~dp0npm_publish.ps1"
4
+ pause
@@ -0,0 +1,3 @@
1
+ cd ../
2
+ npm --registry https://registry.npmjs.org/ publish
3
+ pause
@@ -0,0 +1,4 @@
1
+ @echo off
2
+ REM 执行 npm 更新脚本
3
+ powershell -ExecutionPolicy Bypass -File "%~dp0npm_update.ps1"
4
+ pause
@@ -0,0 +1,3 @@
1
+ cd ../
2
+ npm --registry https://registry.npmjs.org/ update
3
+ pause
@@ -3,6 +3,9 @@ import module from '../../module'
3
3
  export default name => {
4
4
  const root = `${module.code}/${name}/`
5
5
  const crud = $http.crud(root)
6
+
7
+ console.log('crud', crud)
8
+
6
9
  const urls = {
7
10
  upload: root + 'Upload',
8
11
  hardDelete: root + 'HardDelete'
@@ -1,5 +1,5 @@
1
1
  <script>
2
- import { mixins } from 'netmodular-ui'
2
+ import { mixins } from 'haiwei-ui'
3
3
  export default {
4
4
  mixins: [mixins.checkbox],
5
5
  data() {
@@ -1,5 +1,5 @@
1
1
  <script>
2
- import { mixins } from 'netmodular-ui'
2
+ import { mixins } from 'haiwei-ui'
3
3
  export default {
4
4
  mixins: [mixins.radio],
5
5
  data() {
@@ -1,5 +1,5 @@
1
1
  <script>
2
- import { mixins } from 'netmodular-ui'
2
+ import { mixins } from 'haiwei-ui'
3
3
  export default {
4
4
  mixins: [mixins.select],
5
5
  data() {