x-error-lib 0.1.8 → 0.2.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.
@@ -0,0 +1,57 @@
1
+ const e = {
2
+ "network error": "{code} {message}",
3
+ "request timeout": "request timeout",
4
+ "user not found": "user not found"
5
+ }, a = {
6
+ verb: {
7
+ apply: "apply",
8
+ arrange: "arrange",
9
+ call: "call",
10
+ create: "create",
11
+ debug: "debug",
12
+ delete: "delete",
13
+ deploy: "deploy",
14
+ filter: "filter",
15
+ get: "get",
16
+ list: "list",
17
+ move: "move",
18
+ open: "open",
19
+ remove: "remove",
20
+ update: "update"
21
+ },
22
+ resource: {
23
+ app: "app",
24
+ app_group: "app group",
25
+ app_layer: "app layer",
26
+ app_release: "app release",
27
+ asset: "asset",
28
+ asset_layer: "asset layer",
29
+ asset_space: "asset space",
30
+ calc_layer: "calc layer",
31
+ calc_space: "calc space",
32
+ change: "change",
33
+ data_layer: "data layer",
34
+ db_space: "db space",
35
+ dir: "dir",
36
+ func: "func",
37
+ "func group": "func group",
38
+ "func release": "func release",
39
+ flow: "flow",
40
+ "flow group": "flow group",
41
+ "flow release": "flow release",
42
+ graph: "graph",
43
+ model: "model",
44
+ model_data: "model data",
45
+ model_group: "model group",
46
+ org_member: "org member",
47
+ org_role: "org role",
48
+ org_structure: "org sturcture",
49
+ task: "task"
50
+ }
51
+ }, r = {
52
+ error: e,
53
+ permission: a
54
+ };
55
+ export {
56
+ r as default
57
+ };
package/dist/i18n.d.ts CHANGED
@@ -1,3 +1,2 @@
1
- import { I18n, I18nOptions } from 'vue-i18n';
2
- export declare function setupI18n(options: I18nOptions): I18n<{}, {}, {}, string, true>;
1
+ import { I18n } from 'vue-i18n';
3
2
  export declare function loadLocaleMessage(i18n: I18n, locale: string): Promise<void>;
package/dist/index.js CHANGED
@@ -1,19 +1,14 @@
1
- import { nextTick as r } from "vue";
2
- import { createI18n as s } from "vue-i18n";
3
- const i = (t, e) => {
4
- const n = t[e];
5
- return n ? typeof n == "function" ? n() : Promise.resolve(n) : new Promise((a, o) => {
6
- (typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(o.bind(null, new Error("Unknown variable dynamic import: " + e)));
1
+ import { nextTick as s } from "vue";
2
+ const r = (t, o) => {
3
+ const e = t[o];
4
+ return e ? typeof e == "function" ? e() : Promise.resolve(e) : new Promise((a, n) => {
5
+ (typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(n.bind(null, new Error("Unknown variable dynamic import: " + o)));
7
6
  });
8
7
  };
9
- function l(t) {
10
- return s(t);
11
- }
12
- async function m(t, e) {
13
- const n = await i(/* @__PURE__ */ Object.assign({ "./locales/en.ts": () => import("./en-DPvxl2yp.js"), "./locales/zhHans.ts": () => import("./zhHans-qxyd7x0N.js") }), `./locales/${e}.ts`);
14
- return t.global.setLocaleMessage(e, n.default), r();
8
+ async function c(t, o) {
9
+ const e = await r(/* @__PURE__ */ Object.assign({ "./locales/en.ts": () => import("./en-C1qGDy9z.js"), "./locales/zhHans.ts": () => import("./zhHans-DL-jY7Ji.js") }), `./locales/${o}.ts`);
10
+ return t.global.setLocaleMessage(o, e.default), s();
15
11
  }
16
12
  export {
17
- m as loadLocaleMessage,
18
- l as setupI18n
13
+ c as loadLocaleMessage
19
14
  };
@@ -0,0 +1,57 @@
1
+ const e = {
2
+ "network error": "{code} {message}",
3
+ "request timeout": "请求超时",
4
+ "user not found": "用户未找到"
5
+ }, r = {
6
+ verb: {
7
+ apply: "应用",
8
+ arrange: "整理",
9
+ call: "调用",
10
+ create: "创建",
11
+ debug: "调试",
12
+ delete: "删除",
13
+ deploy: "部署",
14
+ filter: "过滤",
15
+ get: "获取",
16
+ list: "列举",
17
+ move: "移动",
18
+ open: "打开",
19
+ remove: "移除",
20
+ update: "更新"
21
+ },
22
+ resource: {
23
+ app: "应用",
24
+ app_group: "应用分组",
25
+ app_layer: "应用层",
26
+ app_release: "应用发布",
27
+ asset: "资料",
28
+ asset_layer: "资料层",
29
+ asset_space: "资料空间",
30
+ calc_layer: "计算层",
31
+ calc_space: "计算空间",
32
+ change: "变更",
33
+ data_layer: "数据层",
34
+ db_space: "数据库空间",
35
+ dir: "目录",
36
+ func: "函数",
37
+ "func group": "函数分组",
38
+ "func release": "函数发布",
39
+ flow: "流程",
40
+ "flow group": "流程分组",
41
+ "flow release": "流程发布",
42
+ graph: "图",
43
+ model: "模型",
44
+ model_data: "模型数据",
45
+ model_group: "模型分组",
46
+ org_member: "组织成员",
47
+ org_role: "组织角色",
48
+ org_structure: "组织结构",
49
+ task: "任务"
50
+ }
51
+ }, a = {
52
+ error: e,
53
+ permission: r
54
+ };
55
+ export {
56
+ a as default
57
+ };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "x-error-lib",
3
3
  "private": false,
4
- "version": "0.1.8",
4
+ "version": "0.2.0",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
@@ -1,8 +0,0 @@
1
- const e = {
2
- "network error": "{code} {message}",
3
- "request timeout": "request timeout",
4
- "user not found": "user not found"
5
- };
6
- export {
7
- e as default
8
- };
@@ -1,8 +0,0 @@
1
- const e = {
2
- "network error": "{code} {message}",
3
- "request timeout": "请求超时",
4
- "user not found": "用户未找到"
5
- };
6
- export {
7
- e as default
8
- };