zyjj-web-sdk 1.0.21 → 1.0.22

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,4 +1,4 @@
1
- import { g as E } from "./index-DtMxRUqJ.js";
1
+ import { g as E } from "./index-CjyVSMNz.js";
2
2
  function S(T, L) {
3
3
  for (var f = 0; f < L.length; f++) {
4
4
  const h = L[f];
@@ -1,4 +1,4 @@
1
- import { g as So, c as Io } from "./index-DtMxRUqJ.js";
1
+ import { g as So, c as Io } from "./index-CjyVSMNz.js";
2
2
  function Lo(pe, Ze) {
3
3
  for (var J = 0; J < Ze.length; J++) {
4
4
  const U = Ze[J];
package/lib/api/api.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { AddTaskReq, GetCosResp, GetPageInfo, MqttClientInfo, PayCodeInfo, PayMethodInfo, PointRecordInfo, UserLoginReq, GetPageReq, GetToolDetailResp } from './entity.ts';
2
2
  import { AppInfo, TaskInfo, ToolInfo, UserInfo } from "../types/cloud.ts";
3
3
  export declare const UserLogin: (data: UserLoginReq) => Promise<string>;
4
- export declare const GetAppInfo: () => Promise<AppInfo>;
4
+ export declare const GetAppInfo: (os: string, version: string, uid?: string) => Promise<AppInfo>;
5
5
  export declare const UserRegister: (data: UserLoginReq) => Promise<void>;
6
6
  export declare const UserPasswordReset: (data: UserLoginReq) => Promise<void>;
7
7
  export declare const GetToken: (email: string) => Promise<void>;
@@ -32,7 +32,7 @@ export interface GetCosToken {
32
32
  export interface AddTaskReq {
33
33
  task_type: number;
34
34
  input: string;
35
- status: number;
35
+ source: string;
36
36
  }
37
37
  export interface MqttClientInfo {
38
38
  host: string;
@@ -34337,7 +34337,7 @@ const Que = /* @__PURE__ */ Jr(Yue), Xue = (e) => e >= 1073741824 ? (e / 1073741
34337
34337
  }, r.onerror = function() {
34338
34338
  t("下载失败,请在新窗口打开");
34339
34339
  };
34340
- }), er = process.env.NODE_ENV == "production" ? "https://api.zyjj.cc/api/v1" : "/api/v1", ofe = (e) => Jt(`${er}/common/user/login`, e, "post"), ife = () => Jt(`${er}/common/app/info`, {}, "get"), afe = (e) => Jt(`${er}/common/user/register`, e, "post"), sfe = (e) => Jt(`${er}/common/user/reset/password`, e, "post"), bT = (e) => Jt(`${er}/common/user/email/token`, { email: e }, "post"), OT = () => Jt(`${er}/user/user/info`, {}, "get", !1), lfe = (e) => Jt(`${er}/user/user/info`, e, "put"), cfe = () => Jt(`${er}/user/point/checkin`, {}, "post"), ufe = (e) => Jt(`${er}/user/point/exchange/${e}`, {}, "post"), ffe = (e, n) => Jt(`${er}/user/point/record/list?page_no=${e}&page_size=${n}`, {}, "get"), dfe = () => Jt(`${er}/user/pay/methods`, {}, "get"), pfe = (e, n) => Jt(`${er}/user/pay/code`, { id: e, price: n }, "post"), d_ = (e) => Jt(`${er}/user/pay/status/${e}`, {}, "get", !1), hfe = (e) => Jt(`${er}/user/point/deducting`, e, "post"), vfe = (e) => Jt(`${er}/common/tool/list?${b1(e)}`, {}, "get"), O1 = () => Jt(`${er}/common/tool/all`, {}, "get"), mfe = (e) => Jt(`${er}/common/tool/${e}`, {}, "get"), gfe = () => Jt(`${er}/common/tool/tags`, {}, "get"), yfe = (e) => Jt(`${er}/common/tool/inc/${e}`, {}, "get"), wT = () => Jt(`${er}/user/cloud/tencent/cos`, {}, "get"), bfe = (e) => Jt(`${er}/user/task`, e, "post"), Ofe = (e) => Jt(`${er}/user/task/${e}`, {}, "get"), CT = () => Jt(`${er}/user/cloud/mqtt/task`, {}, "get"), ET = () => Jt(`${er}/common/material/tags`, {}, "get"), wfe = (e) => Jt(`${er}/common/material?${b1(e)}`, {}, "get"), Cfe = (e) => Jt(`${er}/user/material/${e}`, {}, "get"), Efe = (e) => Jt(`${er}/user/material/url`, { key_list: e }, "post"), xfe = (e) => Jt(`${er}${e.url}`, e.data || {}, e.method), _fe = (e) => Jt(`${er}/common/feedback`, e, "post"), Sfe = (e) => Jt(`${er}/common/config/${e}`, {}, "get");
34340
+ }), er = process.env.NODE_ENV == "production" ? "https://api.zyjj.cc/api/v1" : "/api/v1", ofe = (e) => Jt(`${er}/common/user/login`, e, "post"), ife = (e, n, t) => Jt(`${er}/common/app/info?os=${e}&version=${n}&uid=${t || ""}`, {}, "get"), afe = (e) => Jt(`${er}/common/user/register`, e, "post"), sfe = (e) => Jt(`${er}/common/user/reset/password`, e, "post"), bT = (e) => Jt(`${er}/common/user/email/token`, { email: e }, "post"), OT = () => Jt(`${er}/user/user/info`, {}, "get", !1), lfe = (e) => Jt(`${er}/user/user/info`, e, "put"), cfe = () => Jt(`${er}/user/point/checkin`, {}, "post"), ufe = (e) => Jt(`${er}/user/point/exchange/${e}`, {}, "post"), ffe = (e, n) => Jt(`${er}/user/point/record/list?page_no=${e}&page_size=${n}`, {}, "get"), dfe = () => Jt(`${er}/user/pay/methods`, {}, "get"), pfe = (e, n) => Jt(`${er}/user/pay/code`, { id: e, price: n }, "post"), d_ = (e) => Jt(`${er}/user/pay/status/${e}`, {}, "get", !1), hfe = (e) => Jt(`${er}/user/point/deducting`, e, "post"), vfe = (e) => Jt(`${er}/common/tool/list?${b1(e)}`, {}, "get"), O1 = () => Jt(`${er}/common/tool/all`, {}, "get"), mfe = (e) => Jt(`${er}/common/tool/${e}`, {}, "get"), gfe = () => Jt(`${er}/common/tool/tags`, {}, "get"), yfe = (e) => Jt(`${er}/common/tool/inc/${e}`, {}, "get"), wT = () => Jt(`${er}/user/cloud/tencent/cos`, {}, "get"), bfe = (e) => Jt(`${er}/user/task`, e, "post"), Ofe = (e) => Jt(`${er}/user/task/${e}`, {}, "get"), CT = () => Jt(`${er}/user/cloud/mqtt/task`, {}, "get"), ET = () => Jt(`${er}/common/material/tags`, {}, "get"), wfe = (e) => Jt(`${er}/common/material?${b1(e)}`, {}, "get"), Cfe = (e) => Jt(`${er}/user/material/${e}`, {}, "get"), Efe = (e) => Jt(`${er}/user/material/url`, { key_list: e }, "post"), xfe = (e) => Jt(`${er}${e.url}`, e.data || {}, e.method), _fe = (e) => Jt(`${er}/common/feedback`, e, "post"), Sfe = (e) => Jt(`${er}/common/config/${e}`, {}, "get");
34341
34341
  var Fh;
34342
34342
  (function(e) {
34343
34343
  e[e.Local = 0] = "Local", e[e.Cos = 1] = "Cos";
@@ -34348,7 +34348,7 @@ var Lh;
34348
34348
  })(Lh || (Lh = {}));
34349
34349
  var Uh;
34350
34350
  (function(e) {
34351
- e[e.TaskInfoUpdate = 0] = "TaskInfoUpdate", e[e.MqttBack = 1] = "MqttBack", e[e.TaskActionAdd = 2] = "TaskActionAdd", e[e.NavigateTo = 3] = "NavigateTo", e[e.ExtensionBlobUrl = 4] = "ExtensionBlobUrl", e[e.ExtensionId = 5] = "ExtensionId", e[e.OpenTool = 6] = "OpenTool";
34351
+ e[e.TaskInfoUpdate = 0] = "TaskInfoUpdate", e[e.MqttBack = 1] = "MqttBack", e[e.TaskActionAdd = 2] = "TaskActionAdd", e[e.NavigateTo = 3] = "NavigateTo", e[e.ExtensionBlobUrl = 4] = "ExtensionBlobUrl", e[e.ExtensionId = 5] = "ExtensionId", e[e.OpenTool = 6] = "OpenTool", e[e.UrlCallback = 7] = "UrlCallback";
34352
34352
  })(Uh || (Uh = {}));
34353
34353
  var zt;
34354
34354
  (function(e) {
@@ -58310,7 +58310,7 @@ function eOe() {
58310
58310
  function D6(e) {
58311
58311
  const [n, t] = Ve(!1), [r, o] = Ve();
58312
58312
  return lt(() => {
58313
- import("./index-DYCuXcu7.js").then((a) => {
58313
+ import("./index-D52s_Mb3.js").then((a) => {
58314
58314
  o(z.jsx(a.default, { remarkPlugins: [eOe], children: e.value }));
58315
58315
  });
58316
58316
  }, [e.value]), z.jsxs("div", { style: { position: "relative" }, children: [e.value ? z.jsxs(Yr, { style: { position: "absolute", right: 0, margin: 5, zIndex: 99 }, children: [z.jsx(Nf, { noSuccess: !0, onClick: async () => t((a) => !a), icon: n ? z.jsx(Yu, {}) : z.jsx(Q0, {}), tip: n ? "预览" : "编辑" }), z.jsx($2e, { value: e.value })] }) : z.jsx(z.Fragment, {}), n ? z.jsx(Dr.TextArea, { style: { borderRadius: 5, padding: 10 }, autoSize: !0, value: e.value, onChange: e.onChange }) : z.jsx("div", { style: { padding: 10 }, children: r })] });
@@ -58338,7 +58338,7 @@ function rOe(e) {
58338
58338
  if (!o || !e.value)
58339
58339
  return;
58340
58340
  let a = {};
58341
- typeof e.value == "string" ? (t(e.value), a.url = e.value, a.name = e.value.split("/").pop()) : (a = e.value, t(a.url)), import("./APlayer.min-9ukXWHtq.js").then((s) => s.A).then((s) => {
58341
+ typeof e.value == "string" ? (t(e.value), a.url = e.value, a.name = e.value.split("/").pop()) : (a = e.value, t(a.url)), import("./APlayer.min-Dl-exoHl.js").then((s) => s.A).then((s) => {
58342
58342
  new s.default({
58343
58343
  container: o,
58344
58344
  loop: "none",
@@ -58363,7 +58363,7 @@ function iOe(e) {
58363
58363
  function aOe(e) {
58364
58364
  var t;
58365
58365
  const n = Xt((r) => {
58366
- !r || !e.value || import("./DPlayer.min-Cl9WiJp7.js").then((o) => o.D).then((o) => {
58366
+ !r || !e.value || import("./DPlayer.min-RAsO4F9E.js").then((o) => o.D).then((o) => {
58367
58367
  var a;
58368
58368
  new o.default({ container: r, screenshot: !0, video: { url: (a = e.value) == null ? void 0 : a.url } });
58369
58369
  });
@@ -58449,7 +58449,7 @@ function AOe(e) {
58449
58449
  }
58450
58450
  }));
58451
58451
  };
58452
- return z.jsxs("div", { style: { display: "flex", flexDirection: "column", height: e.height ? e.height : "100vh" }, children: [z.jsxs(gn, { type: "rounded", activeTab: i, style: { marginTop: 5, position: "sticky" }, onChange: v, extra: z.jsx(Dr, { readOnly: !0, onClick: e.onSearch, style: { width: 120 }, suffix: z.jsx(qa, {}), placeholder: "输入关键词" }), children: [z.jsx(gn.TabPane, { title: "全部" }, "all"), e.starIdList.length > 0 ? z.jsx(gn.TabPane, { title: "收藏" }, "star") : null, a.map((h) => z.jsx(gn.TabPane, { title: h }, h))] }), z.jsx(bn, { style: { margin: 10, gridAutoRows: "max-content", flex: 1, overflowY: "auto" }, cols: { xs: 1, sm: 2, md: 3, lg: 3, xl: 4, xxl: 5 }, colGap: 12, rowGap: 12, children: r == null ? void 0 : r.map((h) => z.jsx(bn.GridItem, { children: z.jsx(lOe, { star: l.has(h.id), onStar: (m) => d(h.id, m), onTool: () => p(h), info: h, onHelp: () => e.onHelp(h) }) }, h.id)) })] });
58452
+ return z.jsxs("div", { style: { display: "flex", flexDirection: "column", height: e.height ? e.height : "100vh" }, children: [z.jsxs(gn, { type: "rounded", activeTab: i, style: { marginTop: 5, position: "sticky" }, onChange: v, extra: z.jsx(Dr, { readOnly: !0, onClick: e.onSearch, style: { width: 120 }, suffix: z.jsx(qa, {}), placeholder: "输入关键词" }), children: [z.jsx(gn.TabPane, { title: "全部" }, "all"), e.starIdList.length > 0 ? z.jsx(gn.TabPane, { title: "收藏" }, "star") : null, a.map((h) => z.jsx(gn.TabPane, { title: h }, h))] }), z.jsx(bn, { className: "zyjj-tool-list", style: { margin: 10, gridAutoRows: "max-content", flex: 1, overflowY: "auto" }, cols: { xs: 1, sm: 2, md: 3, lg: 3, xl: 4, xxl: 5 }, colGap: 12, rowGap: 12, children: r == null ? void 0 : r.map((h) => z.jsx(bn.GridItem, { children: z.jsx(lOe, { star: l.has(h.id), onStar: (m) => d(h.id, m), onTool: () => p(h), info: h, onHelp: () => e.onHelp(h) }) }, h.id)) })] });
58453
58453
  }
58454
58454
  function cOe(e) {
58455
58455
  const { material: n } = e, t = () => {
@@ -1,4 +1,4 @@
1
- import { c as _n, v as xr, g as kr, j as Ke } from "./index-DtMxRUqJ.js";
1
+ import { c as _n, v as xr, g as kr, j as Ke } from "./index-CjyVSMNz.js";
2
2
  function br(e, n) {
3
3
  const t = n || {};
4
4
  return (e[e.length - 1] === "" ? [...e, ""] : e).join(
package/lib/index.d.ts CHANGED
@@ -26,7 +26,7 @@ export declare const Api: {
26
26
  UpdateUserInfo: (data: {
27
27
  tool_id_list?: string[] | undefined;
28
28
  }) => Promise<unknown>;
29
- GetAppInfo: () => Promise<import("./types/cloud.ts").AppInfo>;
29
+ GetAppInfo: (os: string, version: string, uid?: string | undefined) => Promise<import("./types/cloud.ts").AppInfo>;
30
30
  CostPoint: (data: {
31
31
  name: string;
32
32
  point: number;
package/lib/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { A as e, C as o, E as t, L as r, M as i, P as l, e as n, S as L, d as T, T as b, a as g, b as m, U as E } from "./index-DtMxRUqJ.js";
1
+ import { A as e, C as o, E as t, L as r, M as i, P as l, e as n, S as L, d as T, T as b, a as g, b as m, U as E } from "./index-CjyVSMNz.js";
2
2
  export {
3
3
  e as Api,
4
4
  o as ConcatButton,