xyvcard-live 0.0.3 → 0.0.4

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,10 +1,10 @@
1
- import { defineComponent as A, getCurrentInstance as L, ref as U, computed as E, resolveComponent as m, createElementBlock as u, openBlock as n, createVNode as a, withCtx as t, createElementVNode as e, createCommentVNode as v, createBlock as T, toDisplayString as i, unref as r, createTextVNode as h } from "vue";
1
+ import { defineComponent as A, getCurrentInstance as L, ref as U, computed as E, resolveComponent as m, createElementBlock as u, openBlock as n, createVNode as s, withCtx as t, createElementVNode as e, createCommentVNode as v, createBlock as T, toDisplayString as i, unref as d, createTextVNode as h } from "vue";
2
2
  import { fileApi as _, routerUtil as R } from "jmash-core";
3
3
  import { useRoute as Z, useRouter as q } from "vue-router";
4
- import { l as z, D as $, C as K, _ as j } from "./index-fq7bb0vi.mjs";
4
+ import { l as z, D as $, C as K, _ as j } from "./index-E627ZQkT.mjs";
5
5
  import { ElMessage as g } from "element-plus";
6
- import { _ as F } from "./index.vue_vue_type_script_setup_true_lang-Di2r6a4i.mjs";
7
- import { _ as G } from "./index.vue_vue_type_script_setup_true_lang-CJXGox4V.mjs";
6
+ import { _ as F } from "./index.vue_vue_type_script_setup_true_lang-BxcqbD6Y.mjs";
7
+ import { _ as G } from "./index.vue_vue_type_script_setup_true_lang-BUyIMgtk.mjs";
8
8
  function J(x) {
9
9
  if (navigator.clipboard && window.isSecureContext)
10
10
  navigator.clipboard.writeText(x), g({
@@ -31,7 +31,7 @@ function J(x) {
31
31
  }
32
32
  }
33
33
  }
34
- const Q = { class: "app-container" }, W = { class: "info-card" }, X = { class: "label-text" }, ee = { class: "value-text" }, te = { class: "label-text" }, le = { class: "value-text" }, se = { class: "label-text" }, ae = {
34
+ const Q = { class: "app-container" }, W = { class: "info-card" }, X = { class: "label-text" }, ee = { class: "value-text" }, te = { class: "label-text" }, le = { class: "value-text" }, ae = { class: "label-text" }, se = {
35
35
  key: 0,
36
36
  class: "value-text"
37
37
  }, ie = {
@@ -43,7 +43,7 @@ const Q = { class: "app-container" }, W = { class: "info-card" }, X = { class: "
43
43
  }, ce = {
44
44
  key: 1,
45
45
  class: "empty-text"
46
- }, re = { class: "label-text" }, de = { class: "value-text" }, ue = { class: "label-text" }, me = { class: "label-text" }, ve = { class: "value-text" }, _e = { class: "label-text" }, pe = {
46
+ }, de = { class: "label-text" }, re = { class: "value-text" }, ue = { class: "label-text" }, me = { class: "label-text" }, ve = { class: "value-text" }, _e = { class: "label-text" }, pe = {
47
47
  key: 0,
48
48
  class: "value-text"
49
49
  }, fe = {
@@ -67,54 +67,54 @@ const Q = { class: "app-container" }, W = { class: "info-card" }, X = { class: "
67
67
  }, Ne = { class: "video-container" }, He = ["src"], Be = /* @__PURE__ */ A({
68
68
  __name: "info",
69
69
  setup(x) {
70
- const { proxy: c } = L(), p = Z(), M = q(), C = U("first"), Y = (s, o) => {
71
- console.log(s, o);
70
+ const { proxy: c } = L(), p = Z(), M = q(), C = U("first"), Y = (a, o) => {
71
+ console.log(a, o);
72
72
  }, l = U({});
73
- z.findById({ liveId: p.query.liveId }).then((s) => {
74
- l.value = s.data;
73
+ z.findById({ liveId: p.query.liveId }).then((a) => {
74
+ l.value = a.data;
75
75
  });
76
76
  const f = E(() => {
77
77
  if (!l.value.streamUrl) return "";
78
- const s = l.value.streamUrl, o = s.lastIndexOf("/");
79
- return o === -1 ? s : s.substring(0, o + 1);
78
+ const a = l.value.streamUrl, o = a.lastIndexOf("/");
79
+ return o === -1 ? a : a.substring(0, o + 1);
80
80
  }), b = E(() => {
81
81
  if (!l.value.streamUrl) return "";
82
- const s = l.value.streamUrl, o = s.lastIndexOf("/");
83
- return o === -1 ? "" : s.substring(o + 1);
82
+ const a = l.value.streamUrl, o = a.lastIndexOf("/");
83
+ return o === -1 ? "" : a.substring(o + 1);
84
84
  });
85
- function S(s) {
86
- J(s);
85
+ function S(a) {
86
+ J(a);
87
87
  }
88
88
  function I() {
89
89
  R.closeTagView(p.fullPath, M, !1);
90
90
  }
91
- return (s, o) => {
92
- const N = m("el-button"), d = m("el-descriptions-item"), w = m("el-descriptions"), D = m("CopyDocument"), P = m("el-icon"), k = m("el-image"), V = m("el-tab-pane"), H = m("el-tabs"), B = m("el-card");
91
+ return (a, o) => {
92
+ const N = m("el-button"), r = m("el-descriptions-item"), w = m("el-descriptions"), D = m("CopyDocument"), P = m("el-icon"), k = m("el-image"), V = m("el-tab-pane"), H = m("el-tabs"), B = m("el-card");
93
93
  return n(), u("div", Q, [
94
- a(B, {
94
+ s(B, {
95
95
  shadow: "hover",
96
96
  class: "main-card"
97
97
  }, {
98
98
  header: t(() => [
99
- a(N, {
99
+ s(N, {
100
100
  type: "primary",
101
101
  onClick: I
102
102
  }, {
103
103
  default: t(() => [
104
- h(i(s.$t("common.back")), 1)
104
+ h(i(a.$t("common.back")), 1)
105
105
  ]),
106
106
  _: 1
107
107
  })
108
108
  ]),
109
109
  default: t(() => [
110
- a(H, {
110
+ s(H, {
111
111
  modelValue: C.value,
112
112
  "onUpdate:modelValue": o[2] || (o[2] = (y) => C.value = y),
113
113
  class: "live-tabs",
114
114
  onTabClick: Y
115
115
  }, {
116
116
  default: t(() => [
117
- a(V, {
117
+ s(V, {
118
118
  label: "基本信息",
119
119
  name: "first"
120
120
  }, {
@@ -127,88 +127,88 @@ const Q = { class: "app-container" }, W = { class: "info-card" }, X = { class: "
127
127
  e("i", { class: "el-icon-info" }),
128
128
  e("span", { class: "card-title" }, "直播信息")
129
129
  ], -1)),
130
- a(w, {
130
+ s(w, {
131
131
  column: 2,
132
132
  border: "",
133
133
  class: "text-descriptions"
134
134
  }, {
135
135
  default: t(() => [
136
- a(d, null, {
136
+ s(r, null, {
137
137
  label: t(() => [
138
- e("div", X, i(s.$t("liveVideo.liveName")), 1)
138
+ e("div", X, i(a.$t("liveVideo.liveName")), 1)
139
139
  ]),
140
140
  default: t(() => [
141
141
  e("span", ee, i(l.value.liveName), 1)
142
142
  ]),
143
143
  _: 1
144
144
  }),
145
- a(d, null, {
145
+ s(r, null, {
146
146
  label: t(() => [
147
- e("div", te, i(s.$t("liveVideo.liveType")), 1)
147
+ e("div", te, i(a.$t("liveVideo.liveType")), 1)
148
148
  ]),
149
149
  default: t(() => [
150
- e("span", le, i(r($).liveTypeEnum.getEnumValue(l.value.liveType)), 1)
150
+ e("span", le, i(d($).liveTypeEnum.getEnumValue(l.value.liveType)), 1)
151
151
  ]),
152
152
  _: 1
153
153
  }),
154
- a(d, null, {
154
+ s(r, null, {
155
155
  label: t(() => [
156
- e("div", se, i(s.$t("liveVideo.startTime")), 1)
156
+ e("div", ae, i(a.$t("liveVideo.startTime")), 1)
157
157
  ]),
158
158
  default: t(() => [
159
- l.value.startTime !== "1970-01-01T00:00:00Z" ? (n(), u("span", ae, i(r(c).$moment.formatDate(
159
+ l.value.startTime !== "1970-01-01T00:00:00Z" ? (n(), u("span", se, i(d(c).$moment.formatDate(
160
160
  l.value.startTime,
161
161
  "YYYY-MM-DD HH:mm"
162
162
  )), 1)) : (n(), u("span", ie, "-"))
163
163
  ]),
164
164
  _: 1
165
165
  }),
166
- a(d, null, {
166
+ s(r, null, {
167
167
  label: t(() => [
168
- e("div", oe, i(s.$t("liveVideo.endTime")), 1)
168
+ e("div", oe, i(a.$t("liveVideo.endTime")), 1)
169
169
  ]),
170
170
  default: t(() => [
171
- l.value.endTime !== "1970-01-01T00:00:00Z" ? (n(), u("span", ne, i(r(c).$moment.formatDate(l.value.endTime, "YYYY-MM-DD HH:mm")), 1)) : (n(), u("span", ce, "-"))
171
+ l.value.endTime !== "1970-01-01T00:00:00Z" ? (n(), u("span", ne, i(d(c).$moment.formatDate(l.value.endTime, "YYYY-MM-DD HH:mm")), 1)) : (n(), u("span", ce, "-"))
172
172
  ]),
173
173
  _: 1
174
174
  }),
175
- a(d, null, {
175
+ s(r, null, {
176
176
  label: t(() => [
177
- e("div", re, i(s.$t("liveVideo.streamerName")), 1)
177
+ e("div", de, i(a.$t("liveVideo.streamerName")), 1)
178
178
  ]),
179
179
  default: t(() => [
180
- e("span", de, i(l.value.streamerName), 1)
180
+ e("span", re, i(l.value.streamerName), 1)
181
181
  ]),
182
182
  _: 1
183
183
  }),
184
- a(d, null, {
184
+ s(r, null, {
185
185
  label: t(() => [
186
- e("div", ue, i(s.$t("liveVideo.liveStatus")), 1)
186
+ e("div", ue, i(a.$t("liveVideo.liveStatus")), 1)
187
187
  ]),
188
188
  default: t(() => [
189
- h(" " + i(r($).liveStatusEnum.getEnumValue(
189
+ h(" " + i(d($).liveStatusEnum.getEnumValue(
190
190
  l.value.liveStatus
191
191
  ) || "-"), 1)
192
192
  ]),
193
193
  _: 1
194
194
  }),
195
- a(d, null, {
195
+ s(r, null, {
196
196
  label: t(() => [
197
- e("div", me, i(s.$t("liveVideo.replayMode")), 1)
197
+ e("div", me, i(a.$t("liveVideo.replayMode")), 1)
198
198
  ]),
199
199
  default: t(() => [
200
- e("span", ve, i(r($).replayModeEnum.getEnumValue(
200
+ e("span", ve, i(d($).replayModeEnum.getEnumValue(
201
201
  l.value.replayMode
202
202
  ) || "-"), 1)
203
203
  ]),
204
204
  _: 1
205
205
  }),
206
- l.value.replayMode === r(K).REPLAY_MODE.end ? (n(), T(d, { key: 0 }, {
206
+ l.value.replayMode === d(K).REPLAY_MODE.end ? (n(), T(r, { key: 0 }, {
207
207
  label: t(() => [
208
- e("div", _e, i(s.$t("liveVideo.replayEndTime")), 1)
208
+ e("div", _e, i(a.$t("liveVideo.replayEndTime")), 1)
209
209
  ]),
210
210
  default: t(() => [
211
- l.value.replayEndTime !== "1970-01-01T00:00:00Z" ? (n(), u("span", pe, i(r(c).$moment.formatDate(
211
+ l.value.replayEndTime !== "1970-01-01T00:00:00Z" ? (n(), u("span", pe, i(d(c).$moment.formatDate(
212
212
  l.value.replayEndTime,
213
213
  "YYYY-MM-DD HH:mm"
214
214
  )), 1)) : (n(), u("span", fe, "-"))
@@ -220,13 +220,13 @@ const Q = { class: "app-container" }, W = { class: "info-card" }, X = { class: "
220
220
  })
221
221
  ]),
222
222
  e("div", be, [
223
- a(w, {
223
+ s(w, {
224
224
  column: 2,
225
225
  border: "",
226
226
  class: "text-descriptions"
227
227
  }, {
228
228
  default: t(() => [
229
- a(d, null, {
229
+ s(r, null, {
230
230
  label: t(() => [...o[4] || (o[4] = [
231
231
  e("div", { class: "label-text" }, "OBS服务器地址", -1)
232
232
  ])]),
@@ -241,7 +241,7 @@ const Q = { class: "app-container" }, W = { class: "info-card" }, X = { class: "
241
241
  onClick: o[0] || (o[0] = (O) => S(f.value))
242
242
  }, {
243
243
  default: t(() => [
244
- a(D)
244
+ s(D)
245
245
  ]),
246
246
  _: 1
247
247
  }, 8, ["data-clipboard-text"])) : v("", !0)
@@ -249,7 +249,7 @@ const Q = { class: "app-container" }, W = { class: "info-card" }, X = { class: "
249
249
  ]),
250
250
  _: 1
251
251
  }),
252
- a(d, null, {
252
+ s(r, null, {
253
253
  label: t(() => [...o[5] || (o[5] = [
254
254
  e("div", { class: "label-text" }, "OBS推流码", -1)
255
255
  ])]),
@@ -264,7 +264,7 @@ const Q = { class: "app-container" }, W = { class: "info-card" }, X = { class: "
264
264
  onClick: o[1] || (o[1] = (O) => S(b.value))
265
265
  }, {
266
266
  default: t(() => [
267
- a(D)
267
+ s(D)
268
268
  ]),
269
269
  _: 1
270
270
  }, 8, ["data-clipboard-text"])) : v("", !0)
@@ -272,18 +272,18 @@ const Q = { class: "app-container" }, W = { class: "info-card" }, X = { class: "
272
272
  ]),
273
273
  _: 1
274
274
  }),
275
- a(d, { span: 2 }, {
275
+ s(r, { span: 2 }, {
276
276
  label: t(() => [
277
- e("div", ge, i(s.$t("liveVideo.streamUrl")), 1)
277
+ e("div", ge, i(a.$t("liveVideo.streamUrl")), 1)
278
278
  ]),
279
279
  default: t(() => [
280
280
  e("span", xe, i(l.value.streamUrl || "-"), 1)
281
281
  ]),
282
282
  _: 1
283
283
  }),
284
- a(d, { span: 2 }, {
284
+ s(r, { span: 2 }, {
285
285
  label: t(() => [
286
- e("div", ke, i(s.$t("liveVideo.liveDescprition")), 1)
286
+ e("div", ke, i(a.$t("liveVideo.liveDescprition")), 1)
287
287
  ]),
288
288
  default: t(() => [
289
289
  e("div", {
@@ -304,12 +304,12 @@ const Q = { class: "app-container" }, W = { class: "info-card" }, X = { class: "
304
304
  ], -1)),
305
305
  e("div", $e, [
306
306
  l.value.preStreamPic ? (n(), u("div", Ce, [
307
- e("div", Se, i(s.$t("liveVideo.preStreamPic")), 1),
307
+ e("div", Se, i(a.$t("liveVideo.preStreamPic")), 1),
308
308
  e("div", we, [
309
- a(k, {
310
- src: r(_).imageUrl(l.value.preStreamPic, 180, 180),
309
+ s(k, {
310
+ src: d(_).imageUrl(l.value.preStreamPic, 180, 180),
311
311
  "preview-src-list": [
312
- r(_).imageUrl(l.value.preStreamPic)
312
+ d(_).imageUrl(l.value.preStreamPic)
313
313
  ],
314
314
  "preview-teleported": "",
315
315
  "hide-on-click-modal": "",
@@ -319,12 +319,12 @@ const Q = { class: "app-container" }, W = { class: "info-card" }, X = { class: "
319
319
  ])
320
320
  ])) : v("", !0),
321
321
  l.value.liveStreamPic ? (n(), u("div", De, [
322
- e("div", Pe, i(s.$t("liveVideo.liveStreamPic")), 1),
322
+ e("div", Pe, i(a.$t("liveVideo.liveStreamPic")), 1),
323
323
  e("div", Ue, [
324
- a(k, {
325
- src: r(_).imageUrl(l.value.liveStreamPic, 180, 180),
324
+ s(k, {
325
+ src: d(_).imageUrl(l.value.liveStreamPic, 180, 180),
326
326
  "preview-src-list": [
327
- r(_).imageUrl(l.value.liveStreamPic)
327
+ d(_).imageUrl(l.value.liveStreamPic)
328
328
  ],
329
329
  "preview-teleported": "",
330
330
  "hide-on-click-modal": "",
@@ -334,12 +334,12 @@ const Q = { class: "app-container" }, W = { class: "info-card" }, X = { class: "
334
334
  ])
335
335
  ])) : v("", !0),
336
336
  l.value.bgPic ? (n(), u("div", Ee, [
337
- e("div", Me, i(s.$t("liveVideo.bgPic")), 1),
337
+ e("div", Me, i(a.$t("liveVideo.bgPic")), 1),
338
338
  e("div", Ye, [
339
- a(k, {
340
- src: r(_).imageUrl(l.value.bgPic, 180, 180),
339
+ s(k, {
340
+ src: d(_).imageUrl(l.value.bgPic, 180, 180),
341
341
  "preview-src-list": [
342
- r(_).imageUrl(l.value.bgPic)
342
+ d(_).imageUrl(l.value.bgPic)
343
343
  ],
344
344
  "preview-teleported": "",
345
345
  "hide-on-click-modal": "",
@@ -371,21 +371,21 @@ const Q = { class: "app-container" }, W = { class: "info-card" }, X = { class: "
371
371
  }),
372
372
  _: 1
373
373
  }),
374
- a(V, {
374
+ s(V, {
375
375
  label: "观众明细",
376
376
  name: "second"
377
377
  }, {
378
378
  default: t(() => [
379
- a(F)
379
+ s(F)
380
380
  ]),
381
381
  _: 1
382
382
  }),
383
- a(V, {
383
+ s(V, {
384
384
  label: "互动评论",
385
385
  name: "third"
386
386
  }, {
387
387
  default: t(() => [
388
- a(G)
388
+ s(G)
389
389
  ]),
390
390
  _: 1
391
391
  })
@@ -398,7 +398,7 @@ const Q = { class: "app-container" }, W = { class: "info-card" }, X = { class: "
398
398
  ]);
399
399
  };
400
400
  }
401
- }), Ke = /* @__PURE__ */ j(Be, [["__scopeId", "data-v-49b22c0d"]]);
401
+ }), Ke = /* @__PURE__ */ j(Be, [["__scopeId", "data-v-45abda6d"]]);
402
402
  export {
403
403
  Ke as default
404
404
  };
@@ -1,6 +1,6 @@
1
- import { defineComponent as w, mergeModels as L, useModel as S, ref as h, resolveComponent as m, createBlock as y, openBlock as b, withCtx as t, createVNode as s, createElementVNode as k, createTextVNode as d, toDisplayString as u } from "vue";
2
- import { ElMessage as x } from "element-plus";
3
- import { L as M, _ as R } from "./index-fq7bb0vi.mjs";
1
+ import { defineComponent as w, mergeModels as L, useModel as S, ref as h, resolveComponent as m, createBlock as y, openBlock as k, withCtx as t, createVNode as s, createElementVNode as x, createTextVNode as d, toDisplayString as u } from "vue";
2
+ import { ElMessage as M } from "element-plus";
3
+ import { L as R, _ as b } from "./index-E627ZQkT.mjs";
4
4
  import { useI18n as B } from "vue-i18n";
5
5
  const D = { class: "dialog-footer" }, N = /* @__PURE__ */ w({
6
6
  __name: "lives",
@@ -20,14 +20,14 @@ const D = { class: "dialog-footer" }, N = /* @__PURE__ */ w({
20
20
  o.value = e, c();
21
21
  }, c = async () => {
22
22
  if (!o.value) {
23
- x.warning(_("liveVideo.pleaseSelectLive"));
23
+ M.warning(_("liveVideo.pleaseSelectLive"));
24
24
  return;
25
25
  }
26
26
  a("confirm-select", o.value), n();
27
27
  };
28
28
  return (e, i) => {
29
29
  const r = m("el-button"), g = m("el-dialog");
30
- return b(), y(g, {
30
+ return k(), y(g, {
31
31
  modelValue: l.value,
32
32
  "onUpdate:modelValue": i[0] || (i[0] = (C) => l.value = C),
33
33
  onClose: n,
@@ -35,7 +35,7 @@ const D = { class: "dialog-footer" }, N = /* @__PURE__ */ w({
35
35
  width: "1200px"
36
36
  }, {
37
37
  footer: t(() => [
38
- k("div", D, [
38
+ x("div", D, [
39
39
  s(r, { onClick: n }, {
40
40
  default: t(() => [
41
41
  d(u(e.$t("common.cancel")), 1)
@@ -54,7 +54,7 @@ const D = { class: "dialog-footer" }, N = /* @__PURE__ */ w({
54
54
  ])
55
55
  ]),
56
56
  default: t(() => [
57
- s(M, {
57
+ s(R, {
58
58
  ref: "liveListRef",
59
59
  onRowSelect: v,
60
60
  onConfirmSelect: V
@@ -64,7 +64,7 @@ const D = { class: "dialog-footer" }, N = /* @__PURE__ */ w({
64
64
  }, 8, ["modelValue"]);
65
65
  };
66
66
  }
67
- }), T = /* @__PURE__ */ R(N, [["__scopeId", "data-v-cbf94c0d"]]);
67
+ }), T = /* @__PURE__ */ b(N, [["__scopeId", "data-v-3902088f"]]);
68
68
  export {
69
69
  T as default
70
70
  };