@10yun/open-sdk 0.3.142 → 0.3.144

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.
@@ -1,13 +1,4 @@
1
- import { a as D, r as y, t as P } from "./helper-_fZwiZH9.js";
2
- import { loadEnv as b } from "vite";
3
- import C from "path";
4
- import h from "node:fs";
5
- function E(t, o) {
6
- for (var r = 0, c = o.length, e = t.length; r < c; r++, e++) t[e] = o[r];
7
- return t;
8
- }
9
- var N = function(t) {
10
- return `
1
+ import{a as e,r as t,t as n}from"./helper-YcOU1zEa.js";import{loadEnv as r}from"vite";import i from"path";import a from"node:fs";function o(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e}var s=function(e){return`
11
2
  const createDeffer = (hookName) => {
12
3
  const d = new Promise((resolve, reject) => {
13
4
  window.proxy && (window.proxy[\`vite\${hookName}\`] = resolve)
@@ -20,177 +11,26 @@ var N = function(t) {
20
11
  const update = createDeffer('update');
21
12
 
22
13
  ;(global => {
23
- global.qiankunName = '` + t + `';
24
- global['` + t + `'] = {
14
+ global.qiankunName = '`+e+`';
15
+ global['`+e+`'] = {
25
16
  bootstrap,
26
17
  mount,
27
18
  unmount,
28
19
  update
29
20
  };
30
21
  })(window);
31
- `;
32
- }, A = function(t) {
33
- return `
34
- const qiankunLifeCycle = window.moudleQiankunAppLifeCycles && window.moudleQiankunAppLifeCycles['` + t + `'];
22
+ `},c=function(e){return`
23
+ const qiankunLifeCycle = window.moudleQiankunAppLifeCycles && window.moudleQiankunAppLifeCycles['`+e+`'];
35
24
  if (qiankunLifeCycle) {
36
25
  window.proxy.vitemount((props) => qiankunLifeCycle.mount(props));
37
26
  window.proxy.viteunmount((props) => qiankunLifeCycle.unmount(props));
38
27
  window.proxy.vitebootstrap(() => qiankunLifeCycle.bootstrap());
39
28
  window.proxy.viteupdate((props) => qiankunLifeCycle.update(props));
40
29
  }
41
- `;
42
- };
43
- function g(t, o) {
44
- var r = t.match(/src=["']([^"']+)["']/);
45
- if (!r) return t;
46
- var c = r[1];
47
- return "<script>" + ("import(" + o + "'" + c + "')") + "<\/script>";
48
- }
49
- var R = function(t, o) {
50
- o === void 0 && (o = {});
51
- var r, c = "";
52
- return {
53
- name: "qiankun-html-transform",
54
- configResolved: function(e) {
55
- r = e.command === "build" || e.isProduction, c = e.base;
56
- },
57
- configureServer: function(e) {
58
- return function() {
59
- e.middlewares.use(function(i, a, f) {
60
- if (r || !o.useDevMode) {
61
- f();
62
- return;
63
- }
64
- var l = a.end.bind(a);
65
- a.end = function() {
66
- for (var p = [], u = 0; u < arguments.length; u++) p[u] = arguments[u];
67
- var n = p[0], m = p.slice(1);
68
- if (typeof n == "string") {
69
- var d = "(window.proxy ? (window.proxy.__INJECTED_PUBLIC_PATH_BY_QIANKUN__ + '..') : '') + ", v = new RegExp(`<script[^>]*src=["']` + c + `@vite/client["'][^>]*><\/script>`);
70
- n = n.replace(v, function(s) {
71
- return g(s, d);
72
- });
73
- }
74
- l.apply(void 0, E([n], m));
75
- }, f();
76
- });
77
- };
78
- },
79
- transformIndexHtml: function(e) {
80
- for (var i = o.useDevMode && !r ? "(window.proxy ? (window.proxy.__INJECTED_PUBLIC_PATH_BY_QIANKUN__ + '..') : '') + " : "", a = [], f = /<(script)([^>]*?)>([\s\S]*?)<\/script>/gi, l; l = f.exec(e); ) {
81
- var p = l[0], u = l[2];
82
- (/type=["']module["']/.test(u) || /crossorigin=["']["']/.test(u)) && /src=["']/.test(u) && a.push({
83
- original: p,
84
- transformed: g(p, i)
85
- });
86
- }
87
- return a.length && (a.forEach(function(n, m) {
88
- var d = n.transformed;
89
- m === a.length - 1 && (d = d.replace("<\/script>", `.finally(() => {
90
- ` + A(t) + `
91
- })<\/script>`)), e = e.replace(n.original, d);
92
- }), e = e.replace("</body>", "<script>" + N(t) + "<\/script></body>")), e;
93
- }
94
- };
95
- }, I = {};
96
- function S(t, o) {
97
- let r = [];
98
- for (let c in o) {
99
- let e = o[c];
100
- if (e = y(e), I[e.name] && (e.name = e.name + "_" + c), e.isMenu == !1 && e.isRbac == !1) continue;
101
- let i = {
102
- title: e.title || e?.meta?.title,
103
- path: e.path || "",
104
- id: t + "@" + e.name || "",
105
- name: e.name || "",
106
- apiPermissions: e.apiPermissions || [],
107
- isPage: !!e.path,
108
- isMenu: e.isMenu || !1,
109
- isRbac: e.isRbac || !1,
110
- isWindw: e.isWindw || !1,
111
- isAlone: e.isAlone || !1,
112
- children: []
113
- };
114
- if (e.isMenu && (i.checked = !1, i.menuName = i.title, i.parentId = e.parentId || "", i.children = []), e.children) {
115
- let a = e.children, f = 0, l = [];
116
- for (let u in a) {
117
- let n = a[u];
118
- n.isMenu && (n.parentId = e.name, l.push(n));
119
- }
120
- let p = [];
121
- for (let u in a) {
122
- let n = a[u];
123
- n = y(n), I[n.name] && (n.name = n.name + "_" + u), n.isRbac && (n.id = t + "@" + (n.name || e.name + "_" + ++f), n.optionsName = n.title || n.meta.title, n.checked = !1, p.push(n));
124
- }
125
- p.length > 0 && (i.menuOptionsList = p), l.length > 0 && (i = Object.assign({}, i, { children: S(t, [...l]) }));
126
- }
127
- r.push(i);
128
- }
129
- return r;
130
- }
131
- function L(t, o, r) {
132
- const { RBAC_BASE_SIGN: c } = r;
133
- let e = S(c || "", t), i = o + "/public/rbac.json", a = JSON.stringify(e, null, 2);
134
- h.writeFileSync(i, a, "utf8");
135
- }
136
- function k(t, o, r, c) {
137
- const { CICD_BUILD_DOMAIN_SCHEME: e, CICD_BUILD_DOMAIN_ALONE: i, CICD_BUILD_VERS_FULL: a, CICD_BUILD_VERS_CODE: f } = o, { VITE_SY_PRODUCT_PORT: l, VITE_SY_PRODUCT_SIGN: p } = t, u = process.cwd(), n = C.basename(u), m = p || n;
138
- let d = "";
139
- i == "on" ? d = e : d = `${e}/${m}/${a}/`;
140
- let v = "/";
141
- return r === "production" && (v = D(`${d}/`), L(c.menu_arr, u, { RBAC_BASE_SIGN: m })), {
142
- name: "vite-plugin-shiyun-release-common",
143
- config: (s, { mode: w, command: _ }) => ({
144
- base: v,
145
- server: { port: l },
146
- esbuild: { drop: ["console", "debugger"] },
147
- optimizeDeps: { exclude: ["@10yun/open-sdk/uncompiled"] },
148
- build: {
149
- minify: "esbuild",
150
- target: "esnext",
151
- sourcemap: !1,
152
- cssCodeSplit: !1,
153
- chunkSizeWarningLimit: 2e3,
154
- rolldownOptions: { output: { codeSplitting: { groups: [{
155
- name: "element-plus",
156
- test: /[\\/]node_modules[\\/]element-plus[\\/]/
157
- }, {
158
- name: "@10yun-ui",
159
- test: /[\\/]node_modules[\\/]@10yun[\\/]cv-pc-ui[\\/]/
160
- }] } } }
161
- },
162
- output: {
163
- library: `${m}-[name]`,
164
- libraryTarget: "umd",
165
- jsonpFunction: `webpackJsonp_${m}`
166
- }
167
- }),
168
- configResolved(s) {
169
- },
170
- configureServer(s) {
171
- },
172
- transformIndexHtml(s) {
173
- r === "development" && (s = s.replace(/<script\b[^>]*?mode="pro"[^>]*>[\s\S]*?<\/script>/gi, ""), s = s.replace(/<(link|script)\b[^>]*?mode="pro"[^>]*>/gi, "")), r === "production" && i !== "on" && (s = s.replace(/<script\b[^>]*?mode="dev"[^>]*>[\s\S]*?<\/script>/gi, ""), s = s.replace(/<(link|script)\b[^>]*?mode="dev"[^>]*>/gi, ""));
174
- const w = "saas软件,软件开发,软件制定,公众号,小程序,app,十云,十云科技,福州十云,ctocode,10yun.com";
175
- let _ = ` <meta name="description" content="${w}" />
176
- `;
177
- return _ += ` <meta name="keywords" content="${w}" />
178
- `, _ += ` <meta name="author" content="十云_ctocode_技术支持_https://www.10yun.com" />
179
- `, _ += ` <meta name="copyright" content="福州十云科技有限公司" />
180
- `, _ += ` <meta name="website" content="https://www.10yun.com/" />
181
- `, a && (_ += ` <meta name="version" content="${a}_${f}" />
182
- `), s = s.replace("</head>", `
183
- ${_}
184
- </head>`), s = s.replace(/\n\s*\n/g, `
185
- `), s;
186
- }
187
- };
188
- }
189
- function U(t = { menu_arr: [] }) {
190
- const o = process.cwd(), r = C.basename(o), c = process.env.NODE_ENV, e = b(c, o, "VITE_"), i = b(c, o, "CICD_");
191
- return [R(e.VITE_SY_PRODUCT_SIGN || r, { useDevMode: !0 }), k(e, i, c, t)];
192
- }
193
- export {
194
- P as qiankunWindow,
195
- U as shiyunRelease
196
- };
30
+ `};function l(e,t){var n=e.match(/src=["']([^"']+)["']/);if(!n)return e;var r=n[1];return`<script>`+(`import(`+t+`'`+r+`')`)+`<\/script>`}var u=function(e,t){t===void 0&&(t={});var n,r=``;return{name:`qiankun-html-transform`,configResolved:function(e){n=e.command===`build`||e.isProduction,r=e.base},configureServer:function(e){return function(){e.middlewares.use(function(e,i,a){if(n||!t.useDevMode){a();return}var s=i.end.bind(i);i.end=function(){var e=[...arguments],t=e[0],n=e.slice(1);if(typeof t==`string`){var i=`(window.proxy ? (window.proxy.__INJECTED_PUBLIC_PATH_BY_QIANKUN__ + '..') : '') + `,a=RegExp(`<script[^>]*src=["']`+r+`@vite/client["'][^>]*><\/script>`);t=t.replace(a,function(e){return l(e,i)})}s.apply(void 0,o([t],n))},a()})}},transformIndexHtml:function(r){for(var i=t.useDevMode&&!n?`(window.proxy ? (window.proxy.__INJECTED_PUBLIC_PATH_BY_QIANKUN__ + '..') : '') + `:``,a=[],o=/<(script)([^>]*?)>([\s\S]*?)<\/script>/gi,u;u=o.exec(r);){var d=u[0],f=u[2];(/type=["']module["']/.test(f)||/crossorigin=["']["']/.test(f))&&/src=["']/.test(f)&&a.push({original:d,transformed:l(d,i)})}return a.length?(a.forEach(function(t,n){var i=t.transformed;n===a.length-1&&(i=i.replace(`<\/script>`,`.finally(() => {
31
+ `+c(e)+`
32
+ })<\/script>`)),r=r.replace(t.original,i)}),r=r.replace(`</body>`,`<script>`+s(e)+`<\/script></body>`),r):r}}},d={};function f(e,n){let r=[];for(let i in n){let a=n[i];if(a=t(a),d[a.name]&&(a.name=a.name+`_`+i),a.isMenu==0&&a.isRbac==0)continue;let o={title:a.title||a?.meta?.title,path:a.path||``,id:e+`@`+a.name||``,name:a.name||``,apiPermissions:a.apiPermissions||[],isPage:!!a.path,isMenu:a.isMenu||!1,isRbac:a.isRbac||!1,isWindw:a.isWindw||!1,isAlone:a.isAlone||!1,children:[]};if(a.isMenu&&(o.checked=!1,o.menuName=o.title,o.parentId=a.parentId||``,o.children=[]),a.children){let n=a.children,r=0,i=[];for(let e in n){let t=n[e];t.isMenu&&(t.parentId=a.name,i.push(t))}let s=[];for(let i in n){let o=n[i];o=t(o),d[o.name]&&(o.name=o.name+`_`+i),o.isRbac&&(o.id=e+`@`+(o.name||a.name+`_`+ ++r),o.optionsName=o.title||o.meta.title,o.checked=!1,s.push(o))}s.length>0&&(o.menuOptionsList=s),i.length>0&&(o=Object.assign({},o,{children:f(e,[...i])}))}r.push(o)}return r}function p(e,t,n){let{RBAC_BASE_SIGN:r}=n,i=f(r||``,e),o=t+`/public/rbac.json`,s=JSON.stringify(i,null,2);a.writeFileSync(o,s,`utf8`)}function m(t,n,r,a){let o=process.cwd(),s=i.basename(o),{CICD_BUILD_DOMAIN_SCHEME:c,CICD_BUILD_DOMAIN_ALONE:l,CICD_BUILD_VERS_FULL:u,CICD_BUILD_VERS_CODE:d}=n,{VITE_SY_PRODUCT_PORT:f,VITE_SY_PRODUCT_SIGN:m}=t,h=m||s,g=``;g=l==`on`?c:`${c}/${h}/${u}/`;let _=`/`;return r===`production`&&(_=e(`${g}/`),p(a.menu_arr,o,{RBAC_BASE_SIGN:h})),{name:`vite-plugin-shiyun-release-common`,config:(e,{mode:t,command:n})=>({base:_,server:{port:f},optimizeDeps:{exclude:[`@10yun/open-sdk/uncompiled`]},build:{target:`esnext`,sourcemap:!1,cssCodeSplit:!1,chunkSizeWarningLimit:2e3,minify:`oxc`,rolldownOptions:{output:{minify:{compress:{dropConsole:!0}},codeSplitting:{groups:[{name:`element-plus`,test:/[\\/]node_modules[\\/]element-plus[\\/]/},{name:`@10yun-ui`,test:/[\\/]node_modules[\\/]@10yun[\\/]cv-pc-ui[\\/]/}]}}}},output:{library:`${h}-[name]`,libraryTarget:`umd`,jsonpFunction:`webpackJsonp_${h}`}}),configResolved(e){},configureServer(e){},transformIndexHtml(e){r===`development`&&(e=e.replace(/<script\b[^>]*?mode="pro"[^>]*>[\s\S]*?<\/script>/gi,``),e=e.replace(/<(link|script)\b[^>]*?mode="pro"[^>]*>/gi,``)),r===`production`&&l!==`on`&&(e=e.replace(/<script\b[^>]*?mode="dev"[^>]*>[\s\S]*?<\/script>/gi,``),e=e.replace(/<(link|script)\b[^>]*?mode="dev"[^>]*>/gi,``));let t=`saas软件,软件开发,软件制定,公众号,小程序,app,十云,十云科技,福州十云,ctocode,10yun.com`,n=` <meta name="description" content="${t}" />\n`;return n+=` <meta name="keywords" content="${t}" />\n`,n+=` <meta name="author" content="十云_ctocode_技术支持_https://www.10yun.com" />
33
+ `,n+=` <meta name="copyright" content="福州十云科技有限公司" />
34
+ `,n+=` <meta name="website" content="https://www.10yun.com/" />
35
+ `,u&&(n+=` <meta name="version" content="${u}_${d}" />\n`),e=e.replace(`</head>`,`\n${n}\n </head>`),e=e.replace(/\n\s*\n/g,`
36
+ `),e}}}function h(e={menu_arr:[]}){let t=process.cwd(),n=i.basename(t),a=process.env.NODE_ENV,o=r(a,t,`VITE_`),s=r(a,t,`CICD_`);return[u(o.VITE_SY_PRODUCT_SIGN||n,{useDevMode:!0}),m(o,s,a,e)]}export{n as qiankunWindow,h as shiyunRelease};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@10yun/open-sdk",
3
- "version": "0.3.142",
3
+ "version": "0.3.144",
4
4
  "private": false,
5
5
  "description": "开放平台接入sdk",
6
6
  "keywords": [
@@ -65,5 +65,6 @@
65
65
  "@vitejs/plugin-vue": "^6.0.5",
66
66
  "rollup-plugin-visualizer": "^7.0.1",
67
67
  "vite": "^8.0.0"
68
- }
68
+ },
69
+ "peerDependencies": {}
69
70
  }
@@ -1,23 +1,80 @@
1
- export const DICT_SHOW_TYPE = [
2
- { label: '显示', value: 'on' },
3
- { label: '隐藏', value: 'off' }
4
- ];
5
- export const DICT_ENABLE_TYPES = [
6
- { label: '启用', value: 'on' },
7
- { label: '停用', value: 'off' }
8
- ];
9
- export const DICT_AUDIT_TYPES = [
10
- { label: '通过', value: '通过' },
11
- { label: '驳回', value: '驳回' },
12
- { label: '拒绝', value: '拒绝' }
13
- ];
14
- export const DICT_CHOICE_TYPES = [
15
- { label: '单选', value: 'dan' },
16
- { label: '多选', value: 'duo' }
17
- ];
18
- export const DICT_TF_TYPES = [
19
- { label: '是', value: 'on' },
20
- { label: '否', value: 'off' }
21
- ];
22
-
23
- // import { DICT_AUDIT_TYPES } from '@10yun/open-sdk/uncompiled/dict.js';
1
+ export * from './options.js';
2
+ /**
3
+ * 全局常量
4
+ */
5
+ export const DICT_ENABLED = 'on';
6
+ export const DICT_INT_ENABLED = 1;
7
+ export const DICT_DISABLED = 'off';
8
+ export const DICT_INT_DISABLED = 0;
9
+
10
+ /*
11
+ * 状态
12
+ */
13
+ export const DICT_INT_UNSUBMITTED = 0;
14
+ // export const DICT_STR_UNSUBMITTED = '未编辑';
15
+
16
+ export const DICT_INT_SUBMITTED = 1;
17
+ // export const DICT_STR_SUBMITTED = '已提交';
18
+
19
+ export const DICT_INT_PENDING = 3; // 10374
20
+ // export const DICT_STR_PENDING = '待审核';
21
+
22
+ // export const DICT_STR_REJECTED = '驳回'; // 未通过
23
+ export const DICT_INT_REJECTED = 5; // 10024 REFUSE
24
+
25
+ // export const DICT_STR_APPROVED = '通过'; // 已通过
26
+ export const DICT_INT_APPROVED = 10; // 10084
27
+
28
+ // export const DICT_STR_CANCEL = '取消';
29
+ export const DICT_INT_CANCEL = 15; // 10079
30
+
31
+ // export const DICT_STR_KICK = '踢出';
32
+ export const DICT_INT_KICK = 82; // 10082
33
+
34
+ /**
35
+ * 行为
36
+ */
37
+ export const DICT_ACTION_REJECTED = 'rejected'; // 驳回
38
+ export const DICT_ACTION_APPROVED = 'approved'; // 通过
39
+ export const DICT_ACTION_CANCEL = 'cancel'; // 取消
40
+ export const DICT_ACTION_ENABLED = 'enabled'; // 启用
41
+ export const DICT_ACTION_DISABLED = 'disabled'; // 禁用
42
+ /**
43
+ * 筛选
44
+ */
45
+ export const DICT_SCREEN_UNPAID = 'unpaid'; // 待付款
46
+ export const DICT_SCREEN_UNUSED = 'unused'; // 未用
47
+ export const DICT_SCREEN_USED = 'used'; // 已使用
48
+ export const DICT_SCREEN_EFFECTIVE = 'effective'; // 有效
49
+ export const DICT_SCREEN_OVERDUE = 'overdue'; // 过期
50
+
51
+ /**
52
+ * 日期格式
53
+ */
54
+ export const DICT_TIME_TODAY = 'time_today'; // 今天|今日|本日
55
+ export const DICT_TIME_YESTERDAY = 'time_yesterday'; // 昨天|昨日
56
+ export const DICT_TIME_TOMORROW = 'time_tomorrow'; // 明天
57
+ export const DICT_TIME_LATELY7 = 'time_lately7'; // 最近7天
58
+ export const DICT_TIME_LATELY30 = 'time_lately30'; // 最近30天
59
+ export const DICT_TIME_HISTORY = 'time_history'; // 历史
60
+ export const DICT_TIME_CUSTOMIZE = 'time_customize'; // 自定义
61
+ // 周
62
+ export const DICT_TIME_LAST_WEEK = 'time_last_week'; // 上周
63
+ export const DICT_TIME_THIS_WEEK = 'time_this_week'; // 本周
64
+ export const DICT_TIME_NEXT_WEEK = 'time_next_week'; // 下周
65
+ // 月
66
+ export const DICT_TIME_LAST_MONTH = 'time_last_month'; // 上月
67
+ export const DICT_TIME_THIS_MONTH = 'time_this_month'; // 本月
68
+ export const DICT_TIME_NEXT_MONTH = 'time_next_month'; // 下月
69
+ export const DICT_TIME_THREE_MONTH = 'time_three_month'; // 近3月|近三个月|最近3个月
70
+ // 季度
71
+ export const DICT_TIME_LAST_QUARTER = 'time_last_quarter'; // 上季度
72
+ export const DICT_TIME_THIS_QUARTER = 'time_this_quarter'; // 本季度
73
+ export const DICT_TIME_NEXT_QUARTER = 'time_next_quarter'; // 下季度
74
+ // 半年
75
+ export const DICT_TIME_FIRST_HALF = 'time_first_half'; // 上半年
76
+ export const DICT_TIME_SECOND_HALF = 'time_second_half'; // 下半年
77
+ // 年
78
+ export const DICT_TIME_LAST_YEAR = 'time_last_year'; // 上年
79
+ export const DICT_TIME_THIS_YEAR = 'time_this_year'; // 本年
80
+ export const DICT_TIME_NEXT_YEAR = 'time_next_year'; // 下年
@@ -0,0 +1,31 @@
1
+ export const ENUM_CARD_TYPE = ['身份证', '护照', '台胞证', '港澳通行证', '港澳居民居住证', '军官证', '回乡证'];
2
+ export const ENUM_CARD_COLUMN = [
3
+ { label: '身份证', value: '身份证' },
4
+ { label: '护照', value: '护照' },
5
+ { label: '台胞证', value: '台胞证' },
6
+ { label: '港澳通行证(内地往返港澳通行证)', value: '港澳通行证', desc: '(内地往返港澳通行证)' },
7
+ { label: '港澳居民居住证', value: '港澳居民居住证' },
8
+ { label: '军官证', value: '军官证' },
9
+ { label: '回乡证(港澳往返内地通行证)', value: '回乡证', desc: '(港澳往返内地通行证)' }
10
+ ];
11
+ export const ENUM_SHOW_TYPE = [
12
+ { label: '显示', value: 'on' },
13
+ { label: '隐藏', value: 'off' }
14
+ ];
15
+ export const ENUM_ENABLE_TYPES = [
16
+ { label: '启用', value: 'on' },
17
+ { label: '停用', value: 'off' }
18
+ ];
19
+ export const ENUM_AUDIT_TYPES = [
20
+ { label: '通过', value: '通过' },
21
+ { label: '驳回', value: '驳回' },
22
+ { label: '拒绝', value: '拒绝' }
23
+ ];
24
+ export const ENUM_CHOICE_TYPES = [
25
+ { label: '单选', value: 'dan' },
26
+ { label: '多选', value: 'duo' }
27
+ ];
28
+ export const ENUM_TF_TYPES = [
29
+ { label: '是', value: 'on' },
30
+ { label: '否', value: 'off' }
31
+ ];
@@ -1,10 +0,0 @@
1
- import { t as r } from "./_plugin-vue_export-helper-Be64z-LZ.js";
2
- import { createElementBlock as d, createElementVNode as e, openBlock as l } from "vue";
3
- var t = {}, a = { class: "cloud-404-wrap" };
4
- function c(s, o) {
5
- return l(), d("div", a, [...o[0] || (o[0] = [e("div", { class: "cloud-404-box" }, [e("div", { class: "cloud-404-code" }, "404"), e("div", { class: "cloud-404-message" }, "Not Found")], -1)])]);
6
- }
7
- var n = /* @__PURE__ */ r(t, [["render", c]]);
8
- export {
9
- n as default
10
- };
@@ -1 +0,0 @@
1
- const _=require("./helper-C42BllYY.cjs"),l=require("./_plugin-vue_export-helper-BRhNVNlk.cjs");let e=require("vue");var t={},o={class:"cloud-404-wrap"};function u(d,r){return(0,e.openBlock)(),(0,e.createElementBlock)("div",o,[...r[0]||(r[0]=[(0,e.createElementVNode)("div",{class:"cloud-404-box"},[(0,e.createElementVNode)("div",{class:"cloud-404-code"},"404"),(0,e.createElementVNode)("div",{class:"cloud-404-message"},"Not Found")],-1)])])}var c=l._plugin_vue_export_helper_default(t,[["render",u]]);exports.default=c;
@@ -1 +0,0 @@
1
- var n=(e,r)=>{const t=e.__vccOpts||e;for(const[_,u]of r)t[_]=u;return t};Object.defineProperty(exports,"_plugin_vue_export_helper_default",{enumerable:!0,get:function(){return n}});
@@ -1,8 +0,0 @@
1
- var a = (t, r) => {
2
- const e = t.__vccOpts || t;
3
- for (const [_, o] of r) e[_] = o;
4
- return e;
5
- };
6
- export {
7
- a as t
8
- };
@@ -1 +0,0 @@
1
- const d=require("./helper-C42BllYY.cjs"),n=require("./_plugin-vue_export-helper-BRhNVNlk.cjs");let e=require("vue");var o={},l={class:"cloud-none-wrap",style:{"background-color":"none"}};function t(u,r){return(0,e.openBlock)(),(0,e.createElementBlock)("div",l,[...r[0]||(r[0]=[(0,e.createElementVNode)("div",{class:"cloud-none-box"},[(0,e.createElementVNode)("div",{class:"cloud-none-code"},"不建议,子应用单独运行~"),(0,e.createElementVNode)("div",{class:"cloud-none-message"},"Not Alone")],-1)])])}var c=n._plugin_vue_export_helper_default(o,[["render",t]]);exports.default=c;
@@ -1,13 +0,0 @@
1
- import { t as n } from "./_plugin-vue_export-helper-Be64z-LZ.js";
2
- import { createElementBlock as r, createElementVNode as e, openBlock as l } from "vue";
3
- var a = {}, t = {
4
- class: "cloud-none-wrap",
5
- style: { "background-color": "none" }
6
- };
7
- function c(d, o) {
8
- return l(), r("div", t, [...o[0] || (o[0] = [e("div", { class: "cloud-none-box" }, [e("div", { class: "cloud-none-code" }, "不建议,子应用单独运行~"), e("div", { class: "cloud-none-message" }, "Not Alone")], -1)])]);
9
- }
10
- var _ = /* @__PURE__ */ n(a, [["render", c]]);
11
- export {
12
- _ as default
13
- };
@@ -1 +0,0 @@
1
- var _=Object.create,c=Object.defineProperty,d=Object.getOwnPropertyDescriptor,b=Object.getOwnPropertyNames,g=Object.getPrototypeOf,O=Object.prototype.hasOwnProperty,h=(e,n)=>()=>(n||e((n={exports:{}}).exports,n),n.exports),v=(e,n)=>{let r={};for(var t in e)c(r,t,{get:e[t],enumerable:!0});return n||c(r,Symbol.toStringTag,{value:"Module"}),r},P=(e,n,r,t)=>{if(n&&typeof n=="object"||typeof n=="function")for(var o=b(n),i=0,l=o.length,u;i<l;i++)u=o[i],!O.call(e,u)&&u!==r&&c(e,u,{get:(f=>n[f]).bind(null,u),enumerable:!(t=d(n,u))||t.enumerable});return e},w=(e,n,r)=>(r=e!=null?_(g(e)):{},P(n||!e||!e.__esModule?c(r,"default",{value:e,enumerable:!0}):r,e));let A=require("@10yun/cv-js-utils");function y(e){return typeof e=="string"&&e.trim()!==""&&e!=="undefined"}var s=Math.floor(Math.random()*22)+1;function j(){return`https://10ui.cn/default/avatar/default_${s}.png`}function m(e){return e=e.replace(/\/(undefined\/)+/g,"/"),e=e.replace(/([^:]\/)\/+/g,"$1"),e}function p(e){return e=e.replace(/^\//,""),e=e.replace(/\//g,"_"),e}function M(e,n){n=n||1;let r="";e.path?r=e.path:e.component&&(r=e.component),e.component||(r="");let t="";if(e.name?t=e.name:r?t=p(r):t="temp_name_"+n,t=p(t),e.children&&e.children.length>0){let o=e.children,i=0,l=0;o.forEach((u,f)=>{u.isMenu==!0&&i++,u.isRbac==!0&&l++}),e.children_menu_num=i,e.children_opt_num=l}return{...e,path:r,name:t}}var a=typeof window<"u"?window.proxy||window:{},S=function(e){a?.__POWERED_BY_QIANKUN__&&(window.moudleQiankunAppLifeCycles||(window.moudleQiankunAppLifeCycles={}),a.qiankunName&&(window.moudleQiankunAppLifeCycles[a.qiankunName]=e))};Object.defineProperty(exports,"__commonJSMin",{enumerable:!0,get:function(){return h}});Object.defineProperty(exports,"__exportAll",{enumerable:!0,get:function(){return v}});Object.defineProperty(exports,"__toESM",{enumerable:!0,get:function(){return w}});Object.defineProperty(exports,"isValidString",{enumerable:!0,get:function(){return y}});Object.defineProperty(exports,"parseDomainUrl",{enumerable:!0,get:function(){return m}});Object.defineProperty(exports,"parseRouteItem",{enumerable:!0,get:function(){return M}});Object.defineProperty(exports,"qiankunWindow",{enumerable:!0,get:function(){return a}});Object.defineProperty(exports,"randomAvatar",{enumerable:!0,get:function(){return j}});Object.defineProperty(exports,"renderWithQiankun",{enumerable:!0,get:function(){return S}});
@@ -1,42 +0,0 @@
1
- import "@10yun/cv-js-utils";
2
- function _(n) {
3
- return typeof n == "string" && n.trim() !== "" && n !== "undefined";
4
- }
5
- var f = Math.floor(Math.random() * 22) + 1;
6
- function t() {
7
- return `https://10ui.cn/default/avatar/default_${f}.png`;
8
- }
9
- function w(n) {
10
- return n = n.replace(/\/(undefined\/)+/g, "/"), n = n.replace(/([^:]\/)\/+/g, "$1"), n;
11
- }
12
- function d(n) {
13
- return n = n.replace(/^\//, ""), n = n.replace(/\//g, "_"), n;
14
- }
15
- function s(n, o) {
16
- o = o || 1;
17
- let e = "";
18
- n.path ? e = n.path : n.component && (e = n.component), n.component || (e = "");
19
- let i = "";
20
- if (n.name ? i = n.name : e ? i = d(e) : i = "temp_name_" + o, i = d(i), n.children && n.children.length > 0) {
21
- let c = n.children, u = 0, r = 0;
22
- c.forEach((l, p) => {
23
- l.isMenu == !0 && u++, l.isRbac == !0 && r++;
24
- }), n.children_menu_num = u, n.children_opt_num = r;
25
- }
26
- return {
27
- ...n,
28
- path: e,
29
- name: i
30
- };
31
- }
32
- var a = typeof window < "u" ? window.proxy || window : {}, g = function(n) {
33
- a?.__POWERED_BY_QIANKUN__ && (window.moudleQiankunAppLifeCycles || (window.moudleQiankunAppLifeCycles = {}), a.qiankunName && (window.moudleQiankunAppLifeCycles[a.qiankunName] = n));
34
- };
35
- export {
36
- w as a,
37
- _ as i,
38
- g as n,
39
- t as o,
40
- s as r,
41
- a as t
42
- };