@openuverse/uvapi 0.0.0-stage → 1.1.3

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 (137) hide show
  1. package/README.md +17 -2
  2. package/dist/_virtual/_commonjsHelpers.js +6 -0
  3. package/dist/_virtual/index.js +4 -0
  4. package/dist/api/RestAPIClient.d.ts +191 -0
  5. package/dist/api/RestAPIClient.js +328 -0
  6. package/dist/api/WebSocketClient.d.ts +174 -0
  7. package/dist/api/WebSocketClient.js +277 -0
  8. package/dist/api/index.d.ts +6 -0
  9. package/dist/api/modules/index.d.ts +2 -0
  10. package/dist/api/modules/task.d.ts +124 -0
  11. package/dist/api/modules/task.js +121 -0
  12. package/dist/api/modules/user.d.ts +114 -0
  13. package/dist/api/modules/user.js +113 -0
  14. package/dist/config/index.d.ts +120 -0
  15. package/dist/config/index.js +112 -0
  16. package/dist/hooks/index.d.ts +1 -0
  17. package/dist/hooks/useAttributeMonitor.d.ts +45 -0
  18. package/dist/hooks/useAttributeMonitor.js +115 -0
  19. package/dist/index.d.ts +20 -0
  20. package/dist/index.js +93 -0
  21. package/dist/locale/de-DE.d.ts +18 -0
  22. package/dist/locale/de-DE.js +20 -0
  23. package/dist/locale/en-US.d.ts +18 -0
  24. package/dist/locale/en-US.js +20 -0
  25. package/dist/locale/es-ES.d.ts +18 -0
  26. package/dist/locale/es-ES.js +20 -0
  27. package/dist/locale/fr-FR.d.ts +18 -0
  28. package/dist/locale/fr-FR.js +20 -0
  29. package/dist/locale/id-ID.d.ts +18 -0
  30. package/dist/locale/id-ID.js +20 -0
  31. package/dist/locale/index.d.ts +19 -0
  32. package/dist/locale/index.js +70 -0
  33. package/dist/locale/ja-JP.d.ts +18 -0
  34. package/dist/locale/ja-JP.js +20 -0
  35. package/dist/locale/ko-KR.d.ts +18 -0
  36. package/dist/locale/ko-KR.js +20 -0
  37. package/dist/locale/pl-PL.d.ts +18 -0
  38. package/dist/locale/pl-PL.js +20 -0
  39. package/dist/locale/pt-BR.d.ts +18 -0
  40. package/dist/locale/pt-BR.js +20 -0
  41. package/dist/locale/ru-RU.d.ts +18 -0
  42. package/dist/locale/ru-RU.js +20 -0
  43. package/dist/locale/th-TH.d.ts +18 -0
  44. package/dist/locale/th-TH.js +20 -0
  45. package/dist/locale/zh-CN.d.ts +18 -0
  46. package/dist/locale/zh-CN.js +20 -0
  47. package/dist/locale/zh-TW.d.ts +18 -0
  48. package/dist/locale/zh-TW.js +20 -0
  49. package/dist/node_modules/@msgpack/msgpack/dist.esm/CachedKeyDecoder.js +38 -0
  50. package/dist/node_modules/@msgpack/msgpack/dist.esm/DecodeError.js +14 -0
  51. package/dist/node_modules/@msgpack/msgpack/dist.esm/Decoder.js +474 -0
  52. package/dist/node_modules/@msgpack/msgpack/dist.esm/Encoder.js +232 -0
  53. package/dist/node_modules/@msgpack/msgpack/dist.esm/ExtData.js +8 -0
  54. package/dist/node_modules/@msgpack/msgpack/dist.esm/ExtensionCodec.js +46 -0
  55. package/dist/node_modules/@msgpack/msgpack/dist.esm/decode.js +7 -0
  56. package/dist/node_modules/@msgpack/msgpack/dist.esm/encode.js +7 -0
  57. package/dist/node_modules/@msgpack/msgpack/dist.esm/timestamp.js +66 -0
  58. package/dist/node_modules/@msgpack/msgpack/dist.esm/utils/int.js +24 -0
  59. package/dist/node_modules/@msgpack/msgpack/dist.esm/utils/prettyByte.js +6 -0
  60. package/dist/node_modules/@msgpack/msgpack/dist.esm/utils/typedArrays.js +9 -0
  61. package/dist/node_modules/@msgpack/msgpack/dist.esm/utils/utf8.js +93 -0
  62. package/dist/node_modules/axios/index.js +38 -0
  63. package/dist/node_modules/axios/lib/adapters/adapters.js +55 -0
  64. package/dist/node_modules/axios/lib/adapters/fetch.js +169 -0
  65. package/dist/node_modules/axios/lib/adapters/xhr.js +72 -0
  66. package/dist/node_modules/axios/lib/axios.js +46 -0
  67. package/dist/node_modules/axios/lib/cancel/CancelToken.js +77 -0
  68. package/dist/node_modules/axios/lib/cancel/CanceledError.js +11 -0
  69. package/dist/node_modules/axios/lib/cancel/isCancel.js +6 -0
  70. package/dist/node_modules/axios/lib/core/Axios.js +136 -0
  71. package/dist/node_modules/axios/lib/core/AxiosError.js +56 -0
  72. package/dist/node_modules/axios/lib/core/AxiosHeaders.js +181 -0
  73. package/dist/node_modules/axios/lib/core/InterceptorManager.js +58 -0
  74. package/dist/node_modules/axios/lib/core/buildFullPath.js +9 -0
  75. package/dist/node_modules/axios/lib/core/dispatchRequest.js +31 -0
  76. package/dist/node_modules/axios/lib/core/mergeConfig.js +70 -0
  77. package/dist/node_modules/axios/lib/core/settle.js +14 -0
  78. package/dist/node_modules/axios/lib/core/transformData.js +13 -0
  79. package/dist/node_modules/axios/lib/defaults/index.js +89 -0
  80. package/dist/node_modules/axios/lib/defaults/transitional.js +8 -0
  81. package/dist/node_modules/axios/lib/env/data.js +4 -0
  82. package/dist/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +33 -0
  83. package/dist/node_modules/axios/lib/helpers/HttpStatusCode.js +71 -0
  84. package/dist/node_modules/axios/lib/helpers/bind.js +8 -0
  85. package/dist/node_modules/axios/lib/helpers/buildURL.js +23 -0
  86. package/dist/node_modules/axios/lib/helpers/combineURLs.js +6 -0
  87. package/dist/node_modules/axios/lib/helpers/composeSignals.js +30 -0
  88. package/dist/node_modules/axios/lib/helpers/cookies.js +32 -0
  89. package/dist/node_modules/axios/lib/helpers/formDataToJSON.js +31 -0
  90. package/dist/node_modules/axios/lib/helpers/isAbsoluteURL.js +6 -0
  91. package/dist/node_modules/axios/lib/helpers/isAxiosError.js +7 -0
  92. package/dist/node_modules/axios/lib/helpers/isURLSameOrigin.js +8 -0
  93. package/dist/node_modules/axios/lib/helpers/null.js +4 -0
  94. package/dist/node_modules/axios/lib/helpers/parseHeaders.js +30 -0
  95. package/dist/node_modules/axios/lib/helpers/parseProtocol.js +7 -0
  96. package/dist/node_modules/axios/lib/helpers/progressEventReducer.js +35 -0
  97. package/dist/node_modules/axios/lib/helpers/resolveConfig.js +33 -0
  98. package/dist/node_modules/axios/lib/helpers/speedometer.js +19 -0
  99. package/dist/node_modules/axios/lib/helpers/spread.js +8 -0
  100. package/dist/node_modules/axios/lib/helpers/throttle.js +15 -0
  101. package/dist/node_modules/axios/lib/helpers/toFormData.js +85 -0
  102. package/dist/node_modules/axios/lib/helpers/toURLEncodedForm.js +14 -0
  103. package/dist/node_modules/axios/lib/helpers/trackStream.js +63 -0
  104. package/dist/node_modules/axios/lib/helpers/validator.js +54 -0
  105. package/dist/node_modules/axios/lib/platform/browser/classes/Blob.js +4 -0
  106. package/dist/node_modules/axios/lib/platform/browser/classes/FormData.js +4 -0
  107. package/dist/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +5 -0
  108. package/dist/node_modules/axios/lib/platform/browser/index.js +15 -0
  109. package/dist/node_modules/axios/lib/platform/common/utils.js +9 -0
  110. package/dist/node_modules/axios/lib/platform/index.js +9 -0
  111. package/dist/node_modules/axios/lib/utils.js +237 -0
  112. package/dist/node_modules/postcss-pxtorem/index.js +109 -0
  113. package/dist/node_modules/postcss-pxtorem/lib/filter-prop-list.js +13 -0
  114. package/dist/node_modules/postcss-pxtorem/lib/pixel-unit-regex.js +7 -0
  115. package/dist/node_modules/postcss-pxtorem/lib/type.js +14 -0
  116. package/dist/preload/index.d.ts +125 -0
  117. package/dist/preload/index.js +79 -0
  118. package/dist/store/index.d.ts +1 -0
  119. package/dist/store/storeFactory.d.ts +584 -0
  120. package/dist/store/storeFactory.js +216 -0
  121. package/dist/theme/index.d.ts +1 -0
  122. package/dist/theme/index.js +14 -0
  123. package/dist/types/index.d.ts +57 -0
  124. package/dist/types/uVerseAPI.d.ts +67 -0
  125. package/dist/utils/_internal.d.ts +14 -0
  126. package/dist/utils/_internal.js +72 -0
  127. package/dist/utils/constance.d.ts +16 -0
  128. package/dist/utils/constance.js +7 -0
  129. package/dist/utils/index.d.ts +79 -0
  130. package/dist/utils/index.js +96 -0
  131. package/dist/utils/logger.d.ts +118 -0
  132. package/dist/utils/logger.js +170 -0
  133. package/dist/utils/px2rem/remAdapter.d.ts +17 -0
  134. package/dist/utils/px2rem/remAdapter.js +62 -0
  135. package/dist/utils/px2rem/vite.d.ts +14 -0
  136. package/dist/utils/px2rem/vite.js +33 -0
  137. package/package.json +102 -4
@@ -0,0 +1,115 @@
1
+ import { ref as m, onMounted as k, onUnmounted as y } from "vue";
2
+ import { WsMessageType as M } from "../utils/constance.js";
3
+ import { globalConfig as h } from "../config/index.js";
4
+ import { WebSocketState as p, WebSocketClient as W } from "../api/WebSocketClient.js";
5
+ import { logger as n } from "../utils/logger.js";
6
+ import { RestAPIClient as w } from "../api/RestAPIClient.js";
7
+ const E = ({ data: o }, r) => {
8
+ if (r && o.group === r.attributeGroup) {
9
+ if (new Date(o.timestamp).getTime() < r.getTimestamp()) {
10
+ n.debug(
11
+ `[uv-api] 丢弃过期消息: group=${o.group}, type=${o.type}, msg_ts=${o.timestamp}, store_ts=${r.getTimestamp()}`
12
+ );
13
+ return;
14
+ }
15
+ o.type === M.SNAPSHOT ? r.setState(o.attributes, o.timestamp) : o.type === M.CHANGE && r.setState(
16
+ {
17
+ [o.attribute]: o.value
18
+ },
19
+ new Date(o.timestamp).getTime()
20
+ );
21
+ }
22
+ }, R = (o) => {
23
+ const {
24
+ appId: r,
25
+ store: u,
26
+ onOpen: l,
27
+ onMessage: b,
28
+ onClose: f,
29
+ onError: v,
30
+ onReconnect: g,
31
+ onReconnectFailed: d,
32
+ autoConnect: A = !0,
33
+ ...L
34
+ } = o;
35
+ let e = null;
36
+ const a = m(!1), c = m(p.CLOSED), s = m(0), S = () => {
37
+ try {
38
+ e && (e.removeAllListeners(), e.close()), e = new W(r, {
39
+ ...L
40
+ }), n.debug(
41
+ `[uv-api] useAttributeMonitor init: appId=${r ?? h.getAppId()}, attributeGroup=${(u == null ? void 0 : u.attributeGroup) ?? "-"}`
42
+ ), e.on("open", (t) => {
43
+ a.value = !0, c.value = p.OPEN, u && new w({
44
+ baseURL: "",
45
+ workerId: o.appId || h.getAppId()
46
+ }).action("trig_attributes_snapshot", { group_name: u.attributeGroup }).then(() => {
47
+ n.debug("[uv-api] 触发全量属性快照推送成功");
48
+ }).catch((i) => {
49
+ n.debug("[uv-api] 触发全量属性快照推送失败:", i);
50
+ }), l == null || l(t);
51
+ }), b ? e.on("message", b) : e.on("message", (t) => {
52
+ E(t, u);
53
+ }), e.on("close", (t) => {
54
+ a.value = !1, c.value = p.CLOSED, f == null || f(t);
55
+ }), v && e.on("error", v), e.on("reconnect", (t) => {
56
+ s.value = t.attempt, g == null || g(t);
57
+ }), d && e.on("reconnectFailed", (t) => {
58
+ s.value = t.attempts, d(t);
59
+ }), A && e.connect().catch((t) => {
60
+ n.info("[uv-api] WebSocket 自动连接失败:", t);
61
+ });
62
+ } catch (t) {
63
+ n.info("[uv-api] 初始化 WebSocket 客户端失败:", t);
64
+ }
65
+ }, C = () => {
66
+ e && (e.removeAllListeners(), e.close(), e = null, a.value = !1, c.value = p.CLOSED, s.value = 0);
67
+ };
68
+ return k(() => {
69
+ S();
70
+ }), y(() => {
71
+ C();
72
+ }), {
73
+ // 客户端实例
74
+ client: () => e,
75
+ // 响应式状态
76
+ isConnected: a,
77
+ readyState: c,
78
+ reconnectAttempts: s,
79
+ // 方法
80
+ init: S,
81
+ connect: async (t) => {
82
+ if (!e) {
83
+ n.info("[uv-api] WebSocket 客户端未初始化,请先调用 init()");
84
+ return;
85
+ }
86
+ try {
87
+ await e.connect(t);
88
+ } catch (i) {
89
+ throw n.info("[uv-api] 手动连接 WebSocket 失败:", i), i;
90
+ }
91
+ },
92
+ send: (t) => {
93
+ if (!e) {
94
+ n.debug("[uv-api] WebSocket 客户端未初始化");
95
+ return;
96
+ }
97
+ e.send(t);
98
+ },
99
+ close: (t, i) => {
100
+ if (!e) {
101
+ n.debug("[uv-api] WebSocket 客户端未初始化");
102
+ return;
103
+ }
104
+ e.close(t, i), a.value = !1, c.value = p.CLOSED;
105
+ },
106
+ cleanup: C,
107
+ getMessageQueueLength: () => (e == null ? void 0 : e.getMessageQueueLength()) ?? 0,
108
+ clearMessageQueue: () => {
109
+ e == null || e.clearMessageQueue();
110
+ }
111
+ };
112
+ };
113
+ export {
114
+ R as useAttributeMonitor
115
+ };
@@ -0,0 +1,20 @@
1
+ import { PluginOptions } from './types';
2
+ export * from './api';
3
+ export * from './types';
4
+ export * from './utils';
5
+ export * from './locale';
6
+ export * from './hooks';
7
+ export * from './store';
8
+ export { PLATFORM_INTERNAL_APPIDS, getAppNameById } from './config';
9
+ export type { PlatformAppId } from './config';
10
+ export * from './preload';
11
+ export declare const version: string;
12
+ export declare const name = "Rigol UV API";
13
+ interface IRigolUVAPI {
14
+ install(app: any, options: PluginOptions): void;
15
+ version: string;
16
+ name: string;
17
+ }
18
+ export { UVRemAdapter } from './utils/px2rem/vite';
19
+ declare const RigolUVAPI: IRigolUVAPI;
20
+ export default RigolUVAPI;
package/dist/index.js ADDED
@@ -0,0 +1,93 @@
1
+ import { initConfig as t, initInternalAppIds as a } from "./config/index.js";
2
+ import { PLATFORM_INTERNAL_APPIDS as I, getAppNameById as R } from "./config/index.js";
3
+ import { registerThemeEvent as f } from "./theme/index.js";
4
+ import { initBehaviorInBrowser as m } from "./utils/_internal.js";
5
+ import { setLogSource as p } from "./utils/logger.js";
6
+ import { LogLevel as T, getLogLevel as v, getLogSource as C, logger as M, setLogLevel as U } from "./utils/logger.js";
7
+ import { initRem as s } from "./utils/px2rem/remAdapter.js";
8
+ import { clearLocalStorage as h, clearSessionStorage as y, deepClone as N, deepMerge as V, getCurrentScene as b, getDisplayValue as k, getLocalStorage as B, getSessionStorage as D, removeLocalStorage as W, removeSessionStorage as K, setLocalStorage as _, setSessionStorage as z } from "./utils/index.js";
9
+ import { setupI18n as O } from "./locale/index.js";
10
+ import { getMainProcessArgs as w, initMandatoryUVerseAPI as H } from "./preload/index.js";
11
+ import { UVRemAdapter as Y } from "./utils/px2rem/vite.js";
12
+ import { RestAPIClient as G } from "./api/RestAPIClient.js";
13
+ import { WebSocketClient as X, WebSocketState as Z } from "./api/WebSocketClient.js";
14
+ import { UserClient as ee } from "./api/modules/user.js";
15
+ import { TaskClient as oe } from "./api/modules/task.js";
16
+ import { SceneType as ae, TOKEN_KEY as fe, WsMessageType as me } from "./utils/constance.js";
17
+ import { default as se } from "./locale/zh-CN.js";
18
+ import { default as ie } from "./locale/en-US.js";
19
+ import { default as ge } from "./locale/zh-TW.js";
20
+ import { default as de } from "./locale/pt-BR.js";
21
+ import { default as Se } from "./locale/de-DE.js";
22
+ import { default as Le } from "./locale/pl-PL.js";
23
+ import { default as Ie } from "./locale/ko-KR.js";
24
+ import { default as Pe } from "./locale/ja-JP.js";
25
+ import { default as ve } from "./locale/fr-FR.js";
26
+ import { default as Me } from "./locale/ru-RU.js";
27
+ import { default as Ee } from "./locale/es-ES.js";
28
+ import { default as ye } from "./locale/th-TH.js";
29
+ import { default as Ve } from "./locale/id-ID.js";
30
+ import { useAttributeMonitor as ke } from "./hooks/useAttributeMonitor.js";
31
+ import { storeManager as De } from "./store/storeFactory.js";
32
+ const l = "1.1.3", i = "Rigol UV API";
33
+ function n(r, e) {
34
+ var o;
35
+ p(e.appId), t(r, e), a(e.appId), m(r), f(), (o = e.remAdapter) != null && o.enable && s(e.remAdapter);
36
+ }
37
+ const c = {
38
+ install: n,
39
+ version: l,
40
+ name: i
41
+ };
42
+ export {
43
+ T as LogLevel,
44
+ I as PLATFORM_INTERNAL_APPIDS,
45
+ G as RestAPIClient,
46
+ ae as SceneType,
47
+ fe as TOKEN_KEY,
48
+ oe as TaskClient,
49
+ Y as UVRemAdapter,
50
+ ee as UserClient,
51
+ X as WebSocketClient,
52
+ Z as WebSocketState,
53
+ me as WsMessageType,
54
+ h as clearLocalStorage,
55
+ y as clearSessionStorage,
56
+ Se as deDE,
57
+ N as deepClone,
58
+ V as deepMerge,
59
+ c as default,
60
+ ie as enUS,
61
+ Ee as esES,
62
+ ve as frFR,
63
+ R as getAppNameById,
64
+ b as getCurrentScene,
65
+ k as getDisplayValue,
66
+ B as getLocalStorage,
67
+ v as getLogLevel,
68
+ C as getLogSource,
69
+ w as getMainProcessArgs,
70
+ D as getSessionStorage,
71
+ Ve as idID,
72
+ H as initMandatoryUVerseAPI,
73
+ Pe as jaJP,
74
+ Ie as koKR,
75
+ M as logger,
76
+ i as name,
77
+ Le as plPL,
78
+ de as ptBR,
79
+ W as removeLocalStorage,
80
+ K as removeSessionStorage,
81
+ Me as ruRU,
82
+ _ as setLocalStorage,
83
+ U as setLogLevel,
84
+ p as setLogSource,
85
+ z as setSessionStorage,
86
+ O as setupI18n,
87
+ De as storeManager,
88
+ ye as thTH,
89
+ ke as useAttributeMonitor,
90
+ l as version,
91
+ se as zhCN,
92
+ ge as zhTW
93
+ };
@@ -0,0 +1,18 @@
1
+ declare const _default: {
2
+ uverse_uv_api: {
3
+ unknown_error: string;
4
+ request_timeout: string;
5
+ network_error: string;
6
+ login_expired: string;
7
+ permission_denied: string;
8
+ resource_not_found: string;
9
+ too_many_requests: string;
10
+ server_error: string;
11
+ gateway_error: string;
12
+ service_unavailable: string;
13
+ gateway_timeout: string;
14
+ request_failed: string;
15
+ decode_error: string;
16
+ };
17
+ };
18
+ export default _default;
@@ -0,0 +1,20 @@
1
+ const e = {
2
+ uverse_uv_api: {
3
+ unknown_error: "Unbekannter Fehler",
4
+ request_timeout: "Anfragezeit überschritten, bitte später erneut versuchen",
5
+ network_error: "Netzwerkverbindung fehlgeschlagen, bitte Netzwerk prüfen",
6
+ login_expired: "Anmeldung abgelaufen, bitte erneut anmelden",
7
+ permission_denied: "Keine Berechtigung, Zugriff auf diese Ressource nicht möglich",
8
+ resource_not_found: "Angeforderte Ressource nicht gefunden",
9
+ too_many_requests: "Zu viele Anfragen, bitte später erneut versuchen",
10
+ server_error: "Serverfehler, bitte später erneut versuchen",
11
+ gateway_error: "Gateway-Fehler, bitte später erneut versuchen",
12
+ service_unavailable: "Dienst vorübergehend nicht verfügbar, bitte später erneut versuchen",
13
+ gateway_timeout: "Gateway-Timeout, bitte später erneut versuchen",
14
+ request_failed: "Anfrage fehlgeschlagen",
15
+ decode_error: "MessagePack-Decodierung fehlgeschlagen"
16
+ }
17
+ };
18
+ export {
19
+ e as default
20
+ };
@@ -0,0 +1,18 @@
1
+ declare const _default: {
2
+ uverse_uv_api: {
3
+ unknown_error: string;
4
+ request_timeout: string;
5
+ network_error: string;
6
+ login_expired: string;
7
+ permission_denied: string;
8
+ resource_not_found: string;
9
+ too_many_requests: string;
10
+ server_error: string;
11
+ gateway_error: string;
12
+ service_unavailable: string;
13
+ gateway_timeout: string;
14
+ request_failed: string;
15
+ decode_error: string;
16
+ };
17
+ };
18
+ export default _default;
@@ -0,0 +1,20 @@
1
+ const e = {
2
+ uverse_uv_api: {
3
+ unknown_error: "Unknown error",
4
+ request_timeout: "Request timeout, please try again later",
5
+ network_error: "Network error, please check your network",
6
+ login_expired: "Login expired, please login again",
7
+ permission_denied: "Permission denied, cannot access this resource",
8
+ resource_not_found: "Resource not found",
9
+ too_many_requests: "Request too frequent, please try again later",
10
+ server_error: "Server error, please try again later",
11
+ gateway_error: "Gateway error, please try again later",
12
+ service_unavailable: "Service temporarily unavailable, please try again later",
13
+ gateway_timeout: "Gateway timeout, please try again later",
14
+ request_failed: "Request failed",
15
+ decode_error: "MessagePack decode failed"
16
+ }
17
+ };
18
+ export {
19
+ e as default
20
+ };
@@ -0,0 +1,18 @@
1
+ declare const _default: {
2
+ uverse_uv_api: {
3
+ unknown_error: string;
4
+ request_timeout: string;
5
+ network_error: string;
6
+ login_expired: string;
7
+ permission_denied: string;
8
+ resource_not_found: string;
9
+ too_many_requests: string;
10
+ server_error: string;
11
+ gateway_error: string;
12
+ service_unavailable: string;
13
+ gateway_timeout: string;
14
+ request_failed: string;
15
+ decode_error: string;
16
+ };
17
+ };
18
+ export default _default;
@@ -0,0 +1,20 @@
1
+ const e = {
2
+ uverse_uv_api: {
3
+ unknown_error: "Error desconocido",
4
+ request_timeout: "Tiempo de espera agotado, inténtelo de nuevo más tarde",
5
+ network_error: "Error de conexión de red, compruebe su red",
6
+ login_expired: "Sesión expirada, inicie sesión de nuevo",
7
+ permission_denied: "Acceso denegado, no se puede acceder a este recurso",
8
+ resource_not_found: "Recurso solicitado no encontrado",
9
+ too_many_requests: "Demasiadas solicitudes, inténtelo de nuevo más tarde",
10
+ server_error: "Error del servidor, inténtelo de nuevo más tarde",
11
+ gateway_error: "Error de puerta de enlace, inténtelo de nuevo más tarde",
12
+ service_unavailable: "Servicio temporalmente no disponible, inténtelo de nuevo más tarde",
13
+ gateway_timeout: "Tiempo de espera de puerta de enlace agotado, inténtelo de nuevo más tarde",
14
+ request_failed: "Solicitud fallida",
15
+ decode_error: "Error de decodificación MessagePack"
16
+ }
17
+ };
18
+ export {
19
+ e as default
20
+ };
@@ -0,0 +1,18 @@
1
+ declare const _default: {
2
+ uverse_uv_api: {
3
+ unknown_error: string;
4
+ request_timeout: string;
5
+ network_error: string;
6
+ login_expired: string;
7
+ permission_denied: string;
8
+ resource_not_found: string;
9
+ too_many_requests: string;
10
+ server_error: string;
11
+ gateway_error: string;
12
+ service_unavailable: string;
13
+ gateway_timeout: string;
14
+ request_failed: string;
15
+ decode_error: string;
16
+ };
17
+ };
18
+ export default _default;
@@ -0,0 +1,20 @@
1
+ const e = {
2
+ uverse_uv_api: {
3
+ unknown_error: "Erreur inconnue",
4
+ request_timeout: "Délai de requête dépassé, veuillez réessayer plus tard",
5
+ network_error: "Échec de la connexion réseau, veuillez vérifier votre réseau",
6
+ login_expired: "Session expirée, veuillez vous reconnecter",
7
+ permission_denied: "Accès refusé, impossible d'accéder à cette ressource",
8
+ resource_not_found: "Ressource demandée introuvable",
9
+ too_many_requests: "Trop de requêtes, veuillez réessayer plus tard",
10
+ server_error: "Erreur serveur, veuillez réessayer plus tard",
11
+ gateway_error: "Erreur de passerelle, veuillez réessayer plus tard",
12
+ service_unavailable: "Service temporairement indisponible, veuillez réessayer plus tard",
13
+ gateway_timeout: "Délai de passerelle dépassé, veuillez réessayer plus tard",
14
+ request_failed: "Échec de la requête",
15
+ decode_error: "Échec du décodage MessagePack"
16
+ }
17
+ };
18
+ export {
19
+ e as default
20
+ };
@@ -0,0 +1,18 @@
1
+ declare const _default: {
2
+ uverse_uv_api: {
3
+ unknown_error: string;
4
+ request_timeout: string;
5
+ network_error: string;
6
+ login_expired: string;
7
+ permission_denied: string;
8
+ resource_not_found: string;
9
+ too_many_requests: string;
10
+ server_error: string;
11
+ gateway_error: string;
12
+ service_unavailable: string;
13
+ gateway_timeout: string;
14
+ request_failed: string;
15
+ decode_error: string;
16
+ };
17
+ };
18
+ export default _default;
@@ -0,0 +1,20 @@
1
+ const a = {
2
+ uverse_uv_api: {
3
+ unknown_error: "Kesalahan tidak diketahui",
4
+ request_timeout: "Permintaan waktu habis, coba lagi nanti",
5
+ network_error: "Koneksi jaringan gagal, periksa jaringan Anda",
6
+ login_expired: "Login kedaluwarsa, silakan login kembali",
7
+ permission_denied: "Akses ditolak, tidak dapat mengakses sumber daya ini",
8
+ resource_not_found: "Sumber daya yang diminta tidak ditemukan",
9
+ too_many_requests: "Terlalu banyak permintaan, coba lagi nanti",
10
+ server_error: "Kesalahan server, coba lagi nanti",
11
+ gateway_error: "Kesalahan gateway, coba lagi nanti",
12
+ service_unavailable: "Layanan sementara tidak tersedia, coba lagi nanti",
13
+ gateway_timeout: "Gateway waktu habis, coba lagi nanti",
14
+ request_failed: "Permintaan gagal",
15
+ decode_error: "Dekode MessagePack gagal"
16
+ }
17
+ };
18
+ export {
19
+ a as default
20
+ };
@@ -0,0 +1,19 @@
1
+ import { I18n, I18nOptions } from 'vue-i18n';
2
+ import { default as zhCN } from './zh-CN';
3
+ import { default as enUS } from './en-US';
4
+ import { default as zhTW } from './zh-TW';
5
+ import { default as ptBR } from './pt-BR';
6
+ import { default as deDE } from './de-DE';
7
+ import { default as plPL } from './pl-PL';
8
+ import { default as koKR } from './ko-KR';
9
+ import { default as jaJP } from './ja-JP';
10
+ import { default as frFR } from './fr-FR';
11
+ import { default as ruRU } from './ru-RU';
12
+ import { default as esES } from './es-ES';
13
+ import { default as thTH } from './th-TH';
14
+ import { default as idID } from './id-ID';
15
+ export { zhCN, enUS, zhTW, ptBR, deDE, plPL, koKR, jaJP, frFR, ruRU, esES, thTH, idID };
16
+ export declare const setupI18n: (options: I18nOptions & {
17
+ globalInjection?: true;
18
+ legacy?: false;
19
+ }, namespace?: string) => I18n<{}, {}, {}, string, false>;
@@ -0,0 +1,70 @@
1
+ import { createI18n as u } from "vue-i18n";
2
+ import p from "./zh-CN.js";
3
+ import L from "./en-US.js";
4
+ import M from "./zh-TW.js";
5
+ import d from "./pt-BR.js";
6
+ import h from "./de-DE.js";
7
+ import I from "./pl-PL.js";
8
+ import w from "./ko-KR.js";
9
+ import y from "./ja-JP.js";
10
+ import A from "./fr-FR.js";
11
+ import k from "./ru-RU.js";
12
+ import P from "./es-ES.js";
13
+ import R from "./th-TH.js";
14
+ import S from "./id-ID.js";
15
+ import { themeAndI18n4BrowserManager as U } from "../utils/_internal.js";
16
+ const v = (a) => {
17
+ const r = a.fallbackLocale;
18
+ if (typeof r == "string")
19
+ return r;
20
+ if (Array.isArray(r) && r[0])
21
+ return r[0];
22
+ const s = Object.keys(a.messages || {}) || [];
23
+ return s.includes("en-US") ? "en-US" : s[0] ?? "en-US";
24
+ }, W = (a, r) => {
25
+ var t, n, c, i, m;
26
+ const s = (n = (t = window.uVerseAPI) == null ? void 0 : t.initialConfig) == null ? void 0 : n.language;
27
+ a.locale = s || v(a);
28
+ const f = {
29
+ ...a,
30
+ globalInjection: !0,
31
+ legacy: !1,
32
+ fallbackLocale: (() => {
33
+ const o = a.fallbackLocale;
34
+ return [...typeof o == "string" ? [o] : Array.isArray(o) ? o : [], "en-US", "zh-CN"];
35
+ })()
36
+ }, e = u(f);
37
+ if (e.global.mergeLocaleMessage("zh-CN", p), e.global.mergeLocaleMessage("en-US", L), e.global.mergeLocaleMessage("zh-TW", M), e.global.mergeLocaleMessage("pt-BR", d), e.global.mergeLocaleMessage("de-DE", h), e.global.mergeLocaleMessage("pl-PL", I), e.global.mergeLocaleMessage("ko-KR", w), e.global.mergeLocaleMessage("ja-JP", y), e.global.mergeLocaleMessage("fr-FR", A), e.global.mergeLocaleMessage("ru-RU", k), e.global.mergeLocaleMessage("es-ES", P), e.global.mergeLocaleMessage("th-TH", R), e.global.mergeLocaleMessage("id-ID", S), window.uVerseAPI) {
38
+ const o = (c = window.uVerseAPI.initialConfig) == null ? void 0 : c.i18nMessages;
39
+ o && Object.entries(o).forEach(([g, b]) => {
40
+ const l = { ...b };
41
+ delete l.uverse_rdesign, Object.keys(l).length > 0 && e.global.mergeLocaleMessage(
42
+ g,
43
+ r ? {
44
+ ...l[r],
45
+ uverse_uv_api: { ...l.uverse_uv_api }
46
+ } : l
47
+ );
48
+ }), (m = (i = window.uVerseAPI).registerLanguageChangeEvent) == null || m.call(i, (g) => {
49
+ e.global.locale.value = g;
50
+ });
51
+ } else
52
+ U.connectI18nInstance(e);
53
+ return e;
54
+ };
55
+ export {
56
+ h as deDE,
57
+ L as enUS,
58
+ P as esES,
59
+ A as frFR,
60
+ S as idID,
61
+ y as jaJP,
62
+ w as koKR,
63
+ I as plPL,
64
+ d as ptBR,
65
+ k as ruRU,
66
+ W as setupI18n,
67
+ R as thTH,
68
+ p as zhCN,
69
+ M as zhTW
70
+ };
@@ -0,0 +1,18 @@
1
+ declare const _default: {
2
+ uverse_uv_api: {
3
+ unknown_error: string;
4
+ request_timeout: string;
5
+ network_error: string;
6
+ login_expired: string;
7
+ permission_denied: string;
8
+ resource_not_found: string;
9
+ too_many_requests: string;
10
+ server_error: string;
11
+ gateway_error: string;
12
+ service_unavailable: string;
13
+ gateway_timeout: string;
14
+ request_failed: string;
15
+ decode_error: string;
16
+ };
17
+ };
18
+ export default _default;
@@ -0,0 +1,20 @@
1
+ const e = {
2
+ uverse_uv_api: {
3
+ unknown_error: "不明なエラー",
4
+ request_timeout: "リクエストがタイムアウトしました。しばらくしてから再試行してください",
5
+ network_error: "ネットワーク接続に失敗しました。ネットワークを確認してください",
6
+ login_expired: "ログインの有効期限が切れました。再度ログインしてください",
7
+ permission_denied: "権限がありません。このリソースにアクセスできません",
8
+ resource_not_found: "リクエストしたリソースが見つかりません",
9
+ too_many_requests: "リクエストが多すぎます。しばらくしてから再試行してください",
10
+ server_error: "サーバーエラーが発生しました。しばらくしてから再試行してください",
11
+ gateway_error: "ゲートウェイエラーが発生しました。しばらくしてから再試行してください",
12
+ service_unavailable: "サービスは一時的に利用できません。しばらくしてから再試行してください",
13
+ gateway_timeout: "ゲートウェイがタイムアウトしました。しばらくしてから再試行してください",
14
+ request_failed: "リクエストに失敗しました",
15
+ decode_error: "MessagePackのデコードに失敗しました"
16
+ }
17
+ };
18
+ export {
19
+ e as default
20
+ };
@@ -0,0 +1,18 @@
1
+ declare const _default: {
2
+ uverse_uv_api: {
3
+ unknown_error: string;
4
+ request_timeout: string;
5
+ network_error: string;
6
+ login_expired: string;
7
+ permission_denied: string;
8
+ resource_not_found: string;
9
+ too_many_requests: string;
10
+ server_error: string;
11
+ gateway_error: string;
12
+ service_unavailable: string;
13
+ gateway_timeout: string;
14
+ request_failed: string;
15
+ decode_error: string;
16
+ };
17
+ };
18
+ export default _default;
@@ -0,0 +1,20 @@
1
+ const e = {
2
+ uverse_uv_api: {
3
+ unknown_error: "알 수 없는 오류",
4
+ request_timeout: "요청 시간이 초과되었습니다. 나중에 다시 시도해 주세요",
5
+ network_error: "네트워크 연결에 실패했습니다. 네트워크를 확인해 주세요",
6
+ login_expired: "로그인이 만료되었습니다. 다시 로그인해 주세요",
7
+ permission_denied: "권한이 없어 이 리소스에 접근할 수 없습니다",
8
+ resource_not_found: "요청한 리소스를 찾을 수 없습니다",
9
+ too_many_requests: "요청이 너무 많습니다. 나중에 다시 시도해 주세요",
10
+ server_error: "서버 오류가 발생했습니다. 나중에 다시 시도해 주세요",
11
+ gateway_error: "게이트웨이 오류가 발생했습니다. 나중에 다시 시도해 주세요",
12
+ service_unavailable: "서비스를 일시적으로 사용할 수 없습니다. 나중에 다시 시도해 주세요",
13
+ gateway_timeout: "게이트웨이 시간 초과, 나중에 다시 시도해 주세요",
14
+ request_failed: "요청에 실패했습니다",
15
+ decode_error: "MessagePack 디코딩 실패"
16
+ }
17
+ };
18
+ export {
19
+ e as default
20
+ };
@@ -0,0 +1,18 @@
1
+ declare const _default: {
2
+ uverse_uv_api: {
3
+ unknown_error: string;
4
+ request_timeout: string;
5
+ network_error: string;
6
+ login_expired: string;
7
+ permission_denied: string;
8
+ resource_not_found: string;
9
+ too_many_requests: string;
10
+ server_error: string;
11
+ gateway_error: string;
12
+ service_unavailable: string;
13
+ gateway_timeout: string;
14
+ request_failed: string;
15
+ decode_error: string;
16
+ };
17
+ };
18
+ export default _default;
@@ -0,0 +1,20 @@
1
+ const e = {
2
+ uverse_uv_api: {
3
+ unknown_error: "Nieznany błąd",
4
+ request_timeout: "Przekroczono limit czasu żądania, spróbuj ponownie później",
5
+ network_error: "Błąd połączenia sieciowego, sprawdź sieć",
6
+ login_expired: "Sesja wygasła, zaloguj się ponownie",
7
+ permission_denied: "Brak uprawnień do dostępu do tego zasobu",
8
+ resource_not_found: "Żądany zasób nie został znaleziony",
9
+ too_many_requests: "Zbyt wiele żądań, spróbuj ponownie później",
10
+ server_error: "Błąd serwera, spróbuj ponownie później",
11
+ gateway_error: "Błąd bramy, spróbuj ponownie później",
12
+ service_unavailable: "Usługa tymczasowo niedostępna, spróbuj ponownie później",
13
+ gateway_timeout: "Przekroczono limit czasu bramy, spróbuj ponownie później",
14
+ request_failed: "Żądanie nie powiodło się",
15
+ decode_error: "Błąd dekodowania MessagePack"
16
+ }
17
+ };
18
+ export {
19
+ e as default
20
+ };
@@ -0,0 +1,18 @@
1
+ declare const _default: {
2
+ uverse_uv_api: {
3
+ unknown_error: string;
4
+ request_timeout: string;
5
+ network_error: string;
6
+ login_expired: string;
7
+ permission_denied: string;
8
+ resource_not_found: string;
9
+ too_many_requests: string;
10
+ server_error: string;
11
+ gateway_error: string;
12
+ service_unavailable: string;
13
+ gateway_timeout: string;
14
+ request_failed: string;
15
+ decode_error: string;
16
+ };
17
+ };
18
+ export default _default;