@arkxos/arkos-core 0.1.0

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 (62) hide show
  1. package/README.md +36 -0
  2. package/ark_dist/ark-meta.json +45 -0
  3. package/ark_dist/css/370.fbd21c4a.css +65 -0
  4. package/ark_dist/index.html +23 -0
  5. package/ark_dist/js/370.b7feb826.js +3 -0
  6. package/ark_dist/js/370.b7feb826.js.LICENSE.txt +16 -0
  7. package/ark_dist/js/370.b7feb826.js.map +1 -0
  8. package/ark_dist/js/app.87081276.js +1 -0
  9. package/ark_proxy/entry.js +48 -0
  10. package/ark_proxy_es/entry.js +18 -0
  11. package/package.json +114 -0
  12. package/scripts/check.js +13 -0
  13. package/scripts/meta.js +21 -0
  14. package/scripts/prepublishOnly.js +28 -0
  15. package/src/App.vue +25 -0
  16. package/src/access/tokenStorage.ts +10 -0
  17. package/src/api/index.js +13 -0
  18. package/src/api/model/auth.js +88 -0
  19. package/src/api/model/common.js +49 -0
  20. package/src/api/model/demo.js +56 -0
  21. package/src/api/model/system.js +114 -0
  22. package/src/api/systemApi.js +16 -0
  23. package/src/assets/logo.png +0 -0
  24. package/src/components/HelloWorld.vue +40 -0
  25. package/src/components/index.ts +12 -0
  26. package/src/configs/subApp.ts +9 -0
  27. package/src/core/api/http.ts +490 -0
  28. package/src/core/apitest/axios_config.js +10 -0
  29. package/src/core/apitest/index.js +10 -0
  30. package/src/core/apitest/mock/user.js +10 -0
  31. package/src/core/config/index.js +84 -0
  32. package/src/core/config/myConfig.js +14 -0
  33. package/src/core/i18n/i18nBuilder.ts +41 -0
  34. package/src/core/puzzle/readme.txt +4 -0
  35. package/src/core/router/router.js +80 -0
  36. package/src/core/system.ts +312 -0
  37. package/src/directive/authDirective.ts +61 -0
  38. package/src/directive/index.ts +16 -0
  39. package/src/entrance/libProperties.ts +57 -0
  40. package/src/entrance/libTypes.ts +47 -0
  41. package/src/enums/LanguageEnum.ts +5 -0
  42. package/src/hooks/message.ts +81 -0
  43. package/src/lang/en_US.ts +28 -0
  44. package/src/lang/index.ts +73 -0
  45. package/src/lang/zh_CN.ts +27 -0
  46. package/src/loadApp.ts +4 -0
  47. package/src/main.ts +16 -0
  48. package/src/plugins/access.ts +88 -0
  49. package/src/plugins/accessPlugin.ts +76 -0
  50. package/src/plugins/acl/index.js +24 -0
  51. package/src/plugins/priv.ts +23 -0
  52. package/src/shims-vue.d.ts +6 -0
  53. package/src/store/index.ts +22 -0
  54. package/src/store/modules/systemStore.ts +31 -0
  55. package/src/types/axios.d.ts +13 -0
  56. package/src/types/func.ts +14 -0
  57. package/src/types/global.d.ts +108 -0
  58. package/src/types/layout.d.ts +59 -0
  59. package/src/types/mitt.d.ts +42 -0
  60. package/src/types/pinia.d.ts +94 -0
  61. package/src/types/views.d.ts +27 -0
  62. package/src/utils/mitt.ts +8 -0
package/README.md ADDED
@@ -0,0 +1,36 @@
1
+ # hel-tpl-remote-vue3-comps-ts
2
+ A simple remote vue3 comp template(typescript、dev with vite or webpack, build with webpack ), see [online usage](https://codesandbox.io/s/demo-load-remote-vue3-comp-2fd34s?file=/src/main.js)
3
+
4
+ ## desc
5
+ - vite 开发
6
+ ```bash
7
+ npm run start:vite
8
+ ```
9
+
10
+ - webpack 开发
11
+ ```bash
12
+ npm run start
13
+ ```
14
+
15
+ - 打包与发布
16
+
17
+ **先修改版本号**,再执行打包与发布命令(这点很重要,顺序不能弄反为:先构建再修改版本号)
18
+ ```
19
+ npm run build
20
+ npm publish
21
+ ```
22
+ > 构建是基于webpack构建
23
+
24
+ ## how to make project skeleton
25
+
26
+ ```bash
27
+ npm i @vue/cli -g
28
+
29
+ vue create hel-tpl-remote-vue3-comps-ts --packageManager=npm
30
+
31
+ cd hel-tpl-remote-vue3-comps-ts
32
+
33
+ // https://github.com/IndexXuan/vue-cli-plugin-vite
34
+ vue add vite
35
+ ```
36
+
@@ -0,0 +1,45 @@
1
+ {
2
+ "app": {
3
+ "name": "@arkxos/arkos-core",
4
+ "app_group_name": "@arkxos/arkos-core",
5
+ "git_repo_url": "",
6
+ "online_version": "0.1.0",
7
+ "build_version": "0.1.0"
8
+ },
9
+ "version": {
10
+ "plugin_ver": "4.3.20",
11
+ "extract_mode": "build",
12
+ "sub_app_name": "@arkxos/arkos-core",
13
+ "sub_app_version": "0.1.0",
14
+ "arkDependencies": {
15
+ "@arkxos/arkos-util": "1.0.200"
16
+ },
17
+ "src_map": {
18
+ "webDirPath": "https://unpkg.com/@arkxos/arkos-core@0.1.0/ark_dist",
19
+ "htmlIndexSrc": "https://unpkg.com/@arkxos/arkos-core@0.1.0/ark_dist/index.html",
20
+ "extractMode": "all",
21
+ "iframeSrc": "",
22
+ "chunkCssSrcList": [],
23
+ "chunkJsSrcList": [
24
+ "https://unpkg.com/@arkxos/arkos-core@0.1.0/ark_dist/js/app.87081276.js"
25
+ ],
26
+ "staticCssSrcList": [],
27
+ "staticJsSrcList": [],
28
+ "relativeCssSrcList": [],
29
+ "relativeJsSrcList": [],
30
+ "headAssetList": [],
31
+ "bodyAssetList": [
32
+ {
33
+ "tag": "script",
34
+ "append": true,
35
+ "attrs": {
36
+ "src": "https://unpkg.com/@arkxos/arkos-core@0.1.0/ark_dist/js/app.87081276.js",
37
+ "type": "text/javascript"
38
+ }
39
+ }
40
+ ],
41
+ "otherSrcList": []
42
+ },
43
+ "html_content": "<!DOCTYPE html>\r\n<html lang=\"\">\r\n\r\n<head>\r\n <meta charset=\"utf-8\">\r\n <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\r\n <meta name=\"viewport\" content=\"width=device-width,initial-scale=1.0\">\r\n <title><%= htmlWebpackPlugin.options.title %></title>\r\n <!-- <script src=\"https://tnfe.gtimg.com/hel-runtime/level1/test/3.2.33-vue.dev.js\"></script> -->\r\n<!-- <script src=\"https://unpkg.com/vue@3.2.47/dist/vue.global.js\"></script>-->\r\n <!-- <script src=\"https://unpkg.com/vue@3.2.47/dist/vue.global.prod.js\"></script> -->\r\n</head>\r\n\r\n<body>\r\n <noscript>\r\n <strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled.\r\n Please enable it to continue.</strong>\r\n </noscript>\r\n <div id=\"app\"></div>\r\n <!-- built files will be auto injected -->\r\n</body>\r\n\r\n</html>\r\n"
44
+ }
45
+ }
@@ -0,0 +1,65 @@
1
+ /* Make clicks pass-through */
2
+ #nprogress {
3
+ pointer-events: none;
4
+ }
5
+
6
+ #nprogress .bar {
7
+ background: #29d;
8
+
9
+ position: fixed;
10
+ z-index: 1031;
11
+ top: 0;
12
+ left: 0;
13
+
14
+ width: 100%;
15
+ height: 2px;
16
+ }
17
+
18
+ /* Fancy blur effect */
19
+ #nprogress .peg {
20
+ display: block;
21
+ position: absolute;
22
+ right: 0px;
23
+ width: 100px;
24
+ height: 100%;
25
+ box-shadow: 0 0 10px #29d, 0 0 5px #29d;
26
+ opacity: 1.0;
27
+ transform: rotate(3deg) translate(0px, -4px);
28
+ }
29
+
30
+ /* Remove these to get rid of the spinner */
31
+ #nprogress .spinner {
32
+ display: block;
33
+ position: fixed;
34
+ z-index: 1031;
35
+ top: 15px;
36
+ right: 15px;
37
+ }
38
+
39
+ #nprogress .spinner-icon {
40
+ width: 18px;
41
+ height: 18px;
42
+ box-sizing: border-box;
43
+
44
+ border: solid 2px transparent;
45
+ border-top-color: #29d;
46
+ border-left-color: #29d;
47
+ border-radius: 50%;
48
+ animation: nprogress-spinner 400ms linear infinite;
49
+ }
50
+
51
+ .nprogress-custom-parent {
52
+ overflow: hidden;
53
+ position: relative;
54
+ }
55
+
56
+ .nprogress-custom-parent #nprogress .spinner,
57
+ .nprogress-custom-parent #nprogress .bar {
58
+ position: absolute;
59
+ }
60
+ @keyframes nprogress-spinner {
61
+ 0% { transform: rotate(0deg); }
62
+ 100% { transform: rotate(360deg); }
63
+ }
64
+
65
+
@@ -0,0 +1,23 @@
1
+ <!DOCTYPE html>
2
+ <html lang="">
3
+
4
+ <head>
5
+ <meta charset="utf-8">
6
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
7
+ <meta name="viewport" content="width=device-width,initial-scale=1.0">
8
+ <title>Webpack App</title>
9
+ <!-- <script src="https://tnfe.gtimg.com/hel-runtime/level1/test/3.2.33-vue.dev.js"></script> -->
10
+ <!-- <script src="https://unpkg.com/vue@3.2.47/dist/vue.global.js"></script>-->
11
+ <!-- <script src="https://unpkg.com/vue@3.2.47/dist/vue.global.prod.js"></script> -->
12
+ </head>
13
+
14
+ <body>
15
+ <noscript>
16
+ <strong>We're sorry but Webpack App doesn't work properly without JavaScript enabled.
17
+ Please enable it to continue.</strong>
18
+ </noscript>
19
+ <div id="app"></div>
20
+ <!-- built files will be auto injected -->
21
+ </body>
22
+
23
+ </html>