@openuverse/uvapi 0.0.0-stage → 1.1.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.
- package/README.md +3871 -3
- package/dist/_virtual/_commonjsHelpers.js +6 -0
- package/dist/_virtual/index.js +4 -0
- package/dist/api/RestAPIClient.d.ts +191 -0
- package/dist/api/RestAPIClient.js +328 -0
- package/dist/api/WebSocketClient.d.ts +174 -0
- package/dist/api/WebSocketClient.js +277 -0
- package/dist/api/index.d.ts +6 -0
- package/dist/api/modules/index.d.ts +2 -0
- package/dist/api/modules/task.d.ts +124 -0
- package/dist/api/modules/task.js +121 -0
- package/dist/api/modules/user.d.ts +114 -0
- package/dist/api/modules/user.js +113 -0
- package/dist/config/index.d.ts +120 -0
- package/dist/config/index.js +112 -0
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/useAttributeMonitor.d.ts +45 -0
- package/dist/hooks/useAttributeMonitor.js +115 -0
- package/dist/index.d.ts +20 -0
- package/dist/index.js +93 -0
- package/dist/locale/de-DE.d.ts +18 -0
- package/dist/locale/de-DE.js +20 -0
- package/dist/locale/en-US.d.ts +18 -0
- package/dist/locale/en-US.js +20 -0
- package/dist/locale/es-ES.d.ts +18 -0
- package/dist/locale/es-ES.js +20 -0
- package/dist/locale/fr-FR.d.ts +18 -0
- package/dist/locale/fr-FR.js +20 -0
- package/dist/locale/id-ID.d.ts +18 -0
- package/dist/locale/id-ID.js +20 -0
- package/dist/locale/index.d.ts +19 -0
- package/dist/locale/index.js +70 -0
- package/dist/locale/ja-JP.d.ts +18 -0
- package/dist/locale/ja-JP.js +20 -0
- package/dist/locale/ko-KR.d.ts +18 -0
- package/dist/locale/ko-KR.js +20 -0
- package/dist/locale/pl-PL.d.ts +18 -0
- package/dist/locale/pl-PL.js +20 -0
- package/dist/locale/pt-BR.d.ts +18 -0
- package/dist/locale/pt-BR.js +20 -0
- package/dist/locale/ru-RU.d.ts +18 -0
- package/dist/locale/ru-RU.js +20 -0
- package/dist/locale/th-TH.d.ts +18 -0
- package/dist/locale/th-TH.js +20 -0
- package/dist/locale/zh-CN.d.ts +18 -0
- package/dist/locale/zh-CN.js +20 -0
- package/dist/locale/zh-TW.d.ts +18 -0
- package/dist/locale/zh-TW.js +20 -0
- package/dist/node_modules/@msgpack/msgpack/dist.esm/CachedKeyDecoder.js +38 -0
- package/dist/node_modules/@msgpack/msgpack/dist.esm/DecodeError.js +14 -0
- package/dist/node_modules/@msgpack/msgpack/dist.esm/Decoder.js +474 -0
- package/dist/node_modules/@msgpack/msgpack/dist.esm/Encoder.js +232 -0
- package/dist/node_modules/@msgpack/msgpack/dist.esm/ExtData.js +8 -0
- package/dist/node_modules/@msgpack/msgpack/dist.esm/ExtensionCodec.js +46 -0
- package/dist/node_modules/@msgpack/msgpack/dist.esm/decode.js +7 -0
- package/dist/node_modules/@msgpack/msgpack/dist.esm/encode.js +7 -0
- package/dist/node_modules/@msgpack/msgpack/dist.esm/timestamp.js +66 -0
- package/dist/node_modules/@msgpack/msgpack/dist.esm/utils/int.js +24 -0
- package/dist/node_modules/@msgpack/msgpack/dist.esm/utils/prettyByte.js +6 -0
- package/dist/node_modules/@msgpack/msgpack/dist.esm/utils/typedArrays.js +9 -0
- package/dist/node_modules/@msgpack/msgpack/dist.esm/utils/utf8.js +93 -0
- package/dist/node_modules/axios/index.js +38 -0
- package/dist/node_modules/axios/lib/adapters/adapters.js +55 -0
- package/dist/node_modules/axios/lib/adapters/fetch.js +169 -0
- package/dist/node_modules/axios/lib/adapters/xhr.js +72 -0
- package/dist/node_modules/axios/lib/axios.js +46 -0
- package/dist/node_modules/axios/lib/cancel/CancelToken.js +77 -0
- package/dist/node_modules/axios/lib/cancel/CanceledError.js +11 -0
- package/dist/node_modules/axios/lib/cancel/isCancel.js +6 -0
- package/dist/node_modules/axios/lib/core/Axios.js +136 -0
- package/dist/node_modules/axios/lib/core/AxiosError.js +56 -0
- package/dist/node_modules/axios/lib/core/AxiosHeaders.js +181 -0
- package/dist/node_modules/axios/lib/core/InterceptorManager.js +58 -0
- package/dist/node_modules/axios/lib/core/buildFullPath.js +9 -0
- package/dist/node_modules/axios/lib/core/dispatchRequest.js +31 -0
- package/dist/node_modules/axios/lib/core/mergeConfig.js +70 -0
- package/dist/node_modules/axios/lib/core/settle.js +14 -0
- package/dist/node_modules/axios/lib/core/transformData.js +13 -0
- package/dist/node_modules/axios/lib/defaults/index.js +89 -0
- package/dist/node_modules/axios/lib/defaults/transitional.js +8 -0
- package/dist/node_modules/axios/lib/env/data.js +4 -0
- package/dist/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +33 -0
- package/dist/node_modules/axios/lib/helpers/HttpStatusCode.js +71 -0
- package/dist/node_modules/axios/lib/helpers/bind.js +8 -0
- package/dist/node_modules/axios/lib/helpers/buildURL.js +23 -0
- package/dist/node_modules/axios/lib/helpers/combineURLs.js +6 -0
- package/dist/node_modules/axios/lib/helpers/composeSignals.js +30 -0
- package/dist/node_modules/axios/lib/helpers/cookies.js +32 -0
- package/dist/node_modules/axios/lib/helpers/formDataToJSON.js +31 -0
- package/dist/node_modules/axios/lib/helpers/isAbsoluteURL.js +6 -0
- package/dist/node_modules/axios/lib/helpers/isAxiosError.js +7 -0
- package/dist/node_modules/axios/lib/helpers/isURLSameOrigin.js +8 -0
- package/dist/node_modules/axios/lib/helpers/null.js +4 -0
- package/dist/node_modules/axios/lib/helpers/parseHeaders.js +30 -0
- package/dist/node_modules/axios/lib/helpers/parseProtocol.js +7 -0
- package/dist/node_modules/axios/lib/helpers/progressEventReducer.js +35 -0
- package/dist/node_modules/axios/lib/helpers/resolveConfig.js +33 -0
- package/dist/node_modules/axios/lib/helpers/speedometer.js +19 -0
- package/dist/node_modules/axios/lib/helpers/spread.js +8 -0
- package/dist/node_modules/axios/lib/helpers/throttle.js +15 -0
- package/dist/node_modules/axios/lib/helpers/toFormData.js +85 -0
- package/dist/node_modules/axios/lib/helpers/toURLEncodedForm.js +14 -0
- package/dist/node_modules/axios/lib/helpers/trackStream.js +63 -0
- package/dist/node_modules/axios/lib/helpers/validator.js +54 -0
- package/dist/node_modules/axios/lib/platform/browser/classes/Blob.js +4 -0
- package/dist/node_modules/axios/lib/platform/browser/classes/FormData.js +4 -0
- package/dist/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +5 -0
- package/dist/node_modules/axios/lib/platform/browser/index.js +15 -0
- package/dist/node_modules/axios/lib/platform/common/utils.js +9 -0
- package/dist/node_modules/axios/lib/platform/index.js +9 -0
- package/dist/node_modules/axios/lib/utils.js +237 -0
- package/dist/node_modules/postcss-pxtorem/index.js +109 -0
- package/dist/node_modules/postcss-pxtorem/lib/filter-prop-list.js +13 -0
- package/dist/node_modules/postcss-pxtorem/lib/pixel-unit-regex.js +7 -0
- package/dist/node_modules/postcss-pxtorem/lib/type.js +14 -0
- package/dist/preload/index.d.ts +125 -0
- package/dist/preload/index.js +79 -0
- package/dist/store/index.d.ts +1 -0
- package/dist/store/storeFactory.d.ts +584 -0
- package/dist/store/storeFactory.js +216 -0
- package/dist/theme/index.d.ts +1 -0
- package/dist/theme/index.js +14 -0
- package/dist/types/index.d.ts +57 -0
- package/dist/types/uVerseAPI.d.ts +67 -0
- package/dist/utils/_internal.d.ts +14 -0
- package/dist/utils/_internal.js +72 -0
- package/dist/utils/constance.d.ts +16 -0
- package/dist/utils/constance.js +7 -0
- package/dist/utils/index.d.ts +79 -0
- package/dist/utils/index.js +96 -0
- package/dist/utils/logger.d.ts +118 -0
- package/dist/utils/logger.js +170 -0
- package/dist/utils/px2rem/remAdapter.d.ts +17 -0
- package/dist/utils/px2rem/remAdapter.js +62 -0
- package/dist/utils/px2rem/vite.d.ts +14 -0
- package/dist/utils/px2rem/vite.js +33 -0
- package/package.json +102 -4
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
const e = {
|
|
2
|
+
uverse_uv_api: {
|
|
3
|
+
unknown_error: "Erro desconhecido",
|
|
4
|
+
request_timeout: "Tempo limite da solicitação excedido, tente novamente mais tarde",
|
|
5
|
+
network_error: "Falha na conexão de rede, verifique sua rede",
|
|
6
|
+
login_expired: "Sessão expirada, faça login novamente",
|
|
7
|
+
permission_denied: "Permissão negada, não é possível acessar este recurso",
|
|
8
|
+
resource_not_found: "Recurso não encontrado",
|
|
9
|
+
too_many_requests: "Muitas solicitações, tente novamente mais tarde",
|
|
10
|
+
server_error: "Erro do servidor, tente novamente mais tarde",
|
|
11
|
+
gateway_error: "Erro de gateway, tente novamente mais tarde",
|
|
12
|
+
service_unavailable: "Serviço temporariamente indisponível, tente novamente mais tarde",
|
|
13
|
+
gateway_timeout: "Tempo limite do gateway excedido, tente novamente mais tarde",
|
|
14
|
+
request_failed: "Falha na solicitação",
|
|
15
|
+
decode_error: "Falha na decodificação 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: "เกิดข้อผิดพลาดที่ไม่ทราบสาเหตุ",
|
|
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: "未知錯誤",
|
|
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,38 @@
|
|
|
1
|
+
import { utf8DecodeJs as i } from "./utils/utf8.js";
|
|
2
|
+
const n = 16, a = 16;
|
|
3
|
+
class m {
|
|
4
|
+
constructor(t = n, e = a) {
|
|
5
|
+
this.hit = 0, this.miss = 0, this.maxKeyLength = t, this.maxLengthPerKey = e, this.caches = [];
|
|
6
|
+
for (let s = 0; s < this.maxKeyLength; s++)
|
|
7
|
+
this.caches.push([]);
|
|
8
|
+
}
|
|
9
|
+
canBeCached(t) {
|
|
10
|
+
return t > 0 && t <= this.maxKeyLength;
|
|
11
|
+
}
|
|
12
|
+
find(t, e, s) {
|
|
13
|
+
const r = this.caches[s - 1];
|
|
14
|
+
s: for (const c of r) {
|
|
15
|
+
const h = c.bytes;
|
|
16
|
+
for (let o = 0; o < s; o++)
|
|
17
|
+
if (h[o] !== t[e + o])
|
|
18
|
+
continue s;
|
|
19
|
+
return c.str;
|
|
20
|
+
}
|
|
21
|
+
return null;
|
|
22
|
+
}
|
|
23
|
+
store(t, e) {
|
|
24
|
+
const s = this.caches[t.length - 1], r = { bytes: t, str: e };
|
|
25
|
+
s.length >= this.maxLengthPerKey ? s[Math.random() * s.length | 0] = r : s.push(r);
|
|
26
|
+
}
|
|
27
|
+
decode(t, e, s) {
|
|
28
|
+
const r = this.find(t, e, s);
|
|
29
|
+
if (r != null)
|
|
30
|
+
return this.hit++, r;
|
|
31
|
+
this.miss++;
|
|
32
|
+
const c = i(t, e, s), h = Uint8Array.prototype.slice.call(t, e, e + s);
|
|
33
|
+
return this.store(h, c), c;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
export {
|
|
37
|
+
m as CachedKeyDecoder
|
|
38
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
class e extends Error {
|
|
2
|
+
constructor(t) {
|
|
3
|
+
super(t);
|
|
4
|
+
const r = Object.create(e.prototype);
|
|
5
|
+
Object.setPrototypeOf(this, r), Object.defineProperty(this, "name", {
|
|
6
|
+
configurable: !0,
|
|
7
|
+
enumerable: !1,
|
|
8
|
+
value: e.name
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
export {
|
|
13
|
+
e as DecodeError
|
|
14
|
+
};
|