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.
package/README.md CHANGED
@@ -1,51 +1,51 @@
1
- # pnpm publish --no-git-checks
2
- npm config set registry https://registry.npmjs.org/
3
-
4
- # pnpm install
5
- npm config set registry https://registry.npmmirror.com/
6
-
7
-
8
- This template should help get you started developing with Vue 3 in Vite.
9
-
10
- ## Recommended IDE Setup
11
-
12
- [VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur) + [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin).
13
-
14
- ## Type Support for `.vue` Imports in TS
15
-
16
- TypeScript cannot handle type information for `.vue` imports by default, so we replace the `tsc` CLI with `vue-tsc` for type checking. In editors, we need [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin) to make the TypeScript language service aware of `.vue` types.
17
-
18
- If the standalone TypeScript plugin doesn't feel fast enough to you, Volar has also implemented a [Take Over Mode](https://github.com/johnsoncodehk/volar/discussions/471#discussioncomment-1361669) that is more performant. You can enable it by the following steps:
19
-
20
- 1. Disable the built-in TypeScript Extension
21
- 1) Run `Extensions: Show Built-in Extensions` from VSCode's command palette
22
- 2) Find `TypeScript and JavaScript Language Features`, right click and select `Disable (Workspace)`
23
- 2. Reload the VSCode window by running `Developer: Reload Window` from the command palette.
24
-
25
- ## Customize configuration
26
-
27
- See [Vite Configuration Reference](https://vitejs.dev/config/).
28
-
29
- ## Project Setup
30
-
31
- ```sh
32
- pnpm install
33
- ```
34
-
35
- ### Compile and Hot-Reload for Development
36
-
37
- ```sh
38
- pnpm dev
39
- ```
40
-
41
- ### Type-Check, Compile and Minify for Production
42
-
43
- ```sh
44
- pnpm build
45
- ```
46
-
47
- ### Lint with [ESLint](https://eslint.org/)
48
-
49
- ```sh
50
- pnpm lint
51
- ```
1
+ # pnpm publish --no-git-checks
2
+ npm config set registry https://registry.npmjs.org/
3
+
4
+ # pnpm install
5
+ npm config set registry https://registry.npmmirror.com/
6
+
7
+
8
+ This template should help get you started developing with Vue 3 in Vite.
9
+
10
+ ## Recommended IDE Setup
11
+
12
+ [VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur) + [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin).
13
+
14
+ ## Type Support for `.vue` Imports in TS
15
+
16
+ TypeScript cannot handle type information for `.vue` imports by default, so we replace the `tsc` CLI with `vue-tsc` for type checking. In editors, we need [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin) to make the TypeScript language service aware of `.vue` types.
17
+
18
+ If the standalone TypeScript plugin doesn't feel fast enough to you, Volar has also implemented a [Take Over Mode](https://github.com/johnsoncodehk/volar/discussions/471#discussioncomment-1361669) that is more performant. You can enable it by the following steps:
19
+
20
+ 1. Disable the built-in TypeScript Extension
21
+ 1) Run `Extensions: Show Built-in Extensions` from VSCode's command palette
22
+ 2) Find `TypeScript and JavaScript Language Features`, right click and select `Disable (Workspace)`
23
+ 2. Reload the VSCode window by running `Developer: Reload Window` from the command palette.
24
+
25
+ ## Customize configuration
26
+
27
+ See [Vite Configuration Reference](https://vitejs.dev/config/).
28
+
29
+ ## Project Setup
30
+
31
+ ```sh
32
+ pnpm install
33
+ ```
34
+
35
+ ### Compile and Hot-Reload for Development
36
+
37
+ ```sh
38
+ pnpm dev
39
+ ```
40
+
41
+ ### Type-Check, Compile and Minify for Production
42
+
43
+ ```sh
44
+ pnpm build
45
+ ```
46
+
47
+ ### Lint with [ESLint](https://eslint.org/)
48
+
49
+ ```sh
50
+ pnpm lint
51
+ ```
@@ -2,9 +2,9 @@ import { defineComponent as de, mergeModels as oe, ref as U, useModel as fe, onU
2
2
  import { ElMessageBox as ne, ElMessage as g, genFileId as ge } from "element-plus";
3
3
  import { fileApi as le, routerUtil as se } from "jmash-core";
4
4
  import { useRoute as ue, useRouter as he } from "vue-router";
5
- import { l as F, _ as me, D as T, C as m } from "./index-fq7bb0vi.mjs";
5
+ import { l as F, _ as me, D as T, C as m } from "./index-E627ZQkT.mjs";
6
6
  import { useI18n as ve } from "vue-i18n";
7
- import Ee from "./lives-D_2sdL4L.mjs";
7
+ import Ee from "./lives-Bhr1XRpF.mjs";
8
8
  const be = { class: "el-upload__text" }, ke = {
9
9
  key: 0,
10
10
  class: "video-preview"
@@ -201,7 +201,7 @@ const be = { class: "el-upload__text" }, ke = {
201
201
  }, 8, ["modelValue"]);
202
202
  };
203
203
  }
204
- }), we = /* @__PURE__ */ me(Se, [["__scopeId", "data-v-3e7c6d31"]]), Pe = { class: "app-container" }, Le = { class: "search-container" }, Ye = {
204
+ }), we = /* @__PURE__ */ me(Se, [["__scopeId", "data-v-26e8e043"]]), Pe = { class: "app-container" }, Le = { class: "search-container" }, Ye = {
205
205
  key: 0,
206
206
  class: "live-tip-text"
207
207
  }, Ie = {
@@ -779,7 +779,7 @@ const be = { class: "el-upload__text" }, ke = {
779
779
  ]);
780
780
  };
781
781
  }
782
- }), Je = /* @__PURE__ */ me(Oe, [["__scopeId", "data-v-3f4fc057"]]);
782
+ }), Je = /* @__PURE__ */ me(Oe, [["__scopeId", "data-v-3e1c43f7"]]);
783
783
  export {
784
784
  Je as default
785
785
  };
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./index.vue_vue_type_script_setup_true_lang-Di2r6a4i.mjs";
1
+ import { _ as f } from "./index.vue_vue_type_script_setup_true_lang-BxcqbD6Y.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./index.vue_vue_type_script_setup_true_lang-CJXGox4V.mjs";
1
+ import { _ as f } from "./index.vue_vue_type_script_setup_true_lang-BUyIMgtk.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,7 +1,7 @@
1
1
  import { getCurrentInstance as se, inject as Z, ref as L, computed as g, unref as u, shallowRef as qe, watchEffect as Wn, readonly as Zo, getCurrentScope as Jo, onScopeDispose as qn, watch as J, onMounted as ve, isRef as mt, warn as Qo, provide as Wt, defineComponent as K, createElementBlock as A, openBlock as y, mergeProps as ht, renderSlot as ne, createElementVNode as $, toRef as gt, onUnmounted as er, nextTick as X, useAttrs as tr, useSlots as Xn, normalizeStyle as bt, normalizeClass as x, createCommentVNode as B, Fragment as dt, createBlock as R, withCtx as I, resolveDynamicComponent as te, withModifiers as Ie, toDisplayString as H, onBeforeUnmount as et, Text as nr, reactive as Zn, createVNode as O, h as or, markRaw as zt, toRefs as rr, resolveComponent as j, Transition as ar, withDirectives as ye, withKeys as ke, vShow as Nt, createTextVNode as ae, isVNode as Jn, render as Qn, onActivated as sr, resolveDirective as ir } from "vue";
2
2
  import { useTableHooks as lr, fileApi as hn } from "jmash-core";
3
3
  import { useI18n as ur } from "vue-i18n";
4
- import { D as _e, l as cr } from "./index-fq7bb0vi.mjs";
4
+ import { D as _e, l as cr } from "./index-E627ZQkT.mjs";
5
5
  import { useRouter as dr } from "vue-router";
6
6
  const eo = Symbol(), ft = "el", fr = "is-", Te = (e, t, n, o, r) => {
7
7
  let a = `${e}-${t}`;
@@ -2754,7 +2754,7 @@ const Ul = {
2754
2754
  }
2755
2755
  };
2756
2756
  }
2757
- }, Fl = () => import("./add-BLsL8P1U.mjs"), Cl = () => import("./info-BWEoRsbx.mjs"), Vl = () => import("./index-Dp2UAkIx.mjs"), Xs = [
2757
+ }, Fl = () => import("./add-C7pzanBx.mjs"), Cl = () => import("./info-DzA_uHU5.mjs"), Vl = () => import("./index-eEFFZczB.mjs"), Xs = [
2758
2758
  {
2759
2759
  path: "/live",
2760
2760
  component: Ze,
@@ -3247,7 +3247,7 @@ const jl = { class: "flex items-center" }, $l = { class: "ml-2" }, Zl = { class:
3247
3247
  for (const [r, a] of t)
3248
3248
  s[r] = a;
3249
3249
  return s;
3250
- }, so = /* @__PURE__ */ Bl(ql, [["__scopeId", "data-v-5595d1af"]]), Ql = /* @__PURE__ */ Object.assign({ "./views/live/zb-live-comment/index.vue": () => import("./index-4CE42QMk.mjs"), "./views/live/zb-live-login/index.vue": () => import("./index-Dp2UAkIx.mjs"), "./views/live/zb-live-user/index.vue": () => import("./index-RZcNAod0.mjs"), "./views/live/zb-live-video/add.vue": () => import("./add-BLsL8P1U.mjs"), "./views/live/zb-live-video/index.vue": () => import("./index-BLDsRKaV.mjs"), "./views/live/zb-live-video/info.vue": () => import("./info-BWEoRsbx.mjs"), "./views/live/zb-live-video/lives.vue": () => import("./lives-D_2sdL4L.mjs") }), ro = {
3250
+ }, so = /* @__PURE__ */ Bl(ql, [["__scopeId", "data-v-072b7037"]]), Ql = /* @__PURE__ */ Object.assign({ "./views/live/zb-live-comment/index.vue": () => import("./index-Cww24Mue.mjs"), "./views/live/zb-live-login/index.vue": () => import("./index-eEFFZczB.mjs"), "./views/live/zb-live-user/index.vue": () => import("./index-C0nOtekO.mjs"), "./views/live/zb-live-video/add.vue": () => import("./add-C7pzanBx.mjs"), "./views/live/zb-live-video/index.vue": () => import("./index-DmSNQdfj.mjs"), "./views/live/zb-live-video/info.vue": () => import("./info-DzA_uHU5.mjs"), "./views/live/zb-live-video/lives.vue": () => import("./lives-Bhr1XRpF.mjs") }), ro = {
3251
3251
  install(e) {
3252
3252
  Mr(Ql, 7), kr(Xs), Er(Dr), e.use(Ul);
3253
3253
  }
@@ -0,0 +1,180 @@
1
+ import { defineComponent as q, ref as f, reactive as k, onMounted as R, resolveComponent as n, createElementBlock as E, openBlock as K, createStaticVNode as N, createElementVNode as l, createVNode as t, withCtx as r, withKeys as w, withModifiers as U, createTextVNode as B } from "vue";
2
+ import I from "./assets/36da59c68cfc8ccd.png";
3
+ import S from "./assets/4437ca569f355423.png";
4
+ import $ from "./assets/ab7eaf7451222eb6.png";
5
+ import F from "./assets/a579e924af7c1da8.png";
6
+ import { useRoute as M, useRouter as j } from "vue-router";
7
+ import { useUserStore as z, getCaptchaApi as A, netEncrypt as D } from "jmash-core";
8
+ import "element-plus";
9
+ import { _ as L } from "./index-E627ZQkT.mjs";
10
+ const O = { class: "login-container" }, P = { class: "login-form-wrapper" }, Q = { class: "login-form" }, T = { class: "captcha" }, G = /* @__PURE__ */ q({
11
+ __name: "index",
12
+ setup(H) {
13
+ const y = M(), x = j(), V = z(), v = f(!1), g = f(), h = f(), o = f({
14
+ scope: "",
15
+ username: "",
16
+ password: ""
17
+ }), C = k({
18
+ phone: [
19
+ {
20
+ required: !0,
21
+ trigger: "blur",
22
+ pattern: /^1[3-9]\d{9}$/,
23
+ message: "请输入正确的手机号格式"
24
+ }
25
+ ],
26
+ password: [
27
+ {
28
+ required: !0,
29
+ trigger: "blur",
30
+ validator: (s, e, a) => {
31
+ e.length < 5 ? a(new Error("密码长度不能少于5位")) : a();
32
+ },
33
+ message: "请输入密码"
34
+ }
35
+ ],
36
+ captchaCode: [
37
+ {
38
+ required: !0,
39
+ trigger: "blur",
40
+ message: "请输入验证码"
41
+ }
42
+ ]
43
+ });
44
+ function u() {
45
+ A().then(({ data: s }) => {
46
+ o.value.captchaKey = s.captchaId, g.value = s.base64Image;
47
+ });
48
+ }
49
+ function _() {
50
+ var s;
51
+ (s = h.value) == null || s.validate((e) => {
52
+ e && (v.value = !0, o.value.password = D(o.value.password), V.login(o.value).then(() => {
53
+ const a = y.query, i = a.redirect ?? "/", d = Object.keys(a).reduce(
54
+ (m, c) => (c !== "redirect" && (m[c] = a[c]), m),
55
+ {}
56
+ );
57
+ x.push({ path: i, query: d }), u();
58
+ }).catch(() => {
59
+ u();
60
+ }).finally(() => {
61
+ v.value = !1;
62
+ }));
63
+ });
64
+ }
65
+ return R(() => {
66
+ u();
67
+ }), (s, e) => {
68
+ const a = n("svg-icon"), i = n("el-input"), d = n("el-form-item"), m = n("el-image"), c = n("el-button"), b = n("el-form");
69
+ return K(), E("div", O, [
70
+ e[6] || (e[6] = N('<div class="login-left" data-v-6089f000><div class="login-main-title" data-v-6089f000>打造专业直播平台</div><div class="login-feature-list" data-v-6089f000><div class="feature-item" data-v-6089f000><img src="' + I + '" class="feature-icon" data-v-6089f000><span class="feature-text" data-v-6089f000>实时流量监控者</span></div><div class="feature-item" data-v-6089f000><img src="' + S + '" class="feature-icon" data-v-6089f000><span class="feature-text" data-v-6089f000>直播互动操盘手</span></div><div class="feature-item" data-v-6089f000><img src="' + $ + '" class="feature-icon" data-v-6089f000><span class="feature-text" data-v-6089f000>数据增长赋能者</span></div></div></div>', 1)),
71
+ l("div", P, [
72
+ l("div", Q, [
73
+ e[5] || (e[5] = l("div", { class: "login-form-header" }, [
74
+ l("div", { class: "login-icon" }, [
75
+ l("img", { src: F })
76
+ ]),
77
+ l("div", { class: "login-form-title" }, "直播后台管理系统")
78
+ ], -1)),
79
+ t(b, {
80
+ ref_key: "loginFormRef",
81
+ ref: h,
82
+ model: o.value,
83
+ rules: C,
84
+ size: "large"
85
+ }, {
86
+ default: r(() => [
87
+ t(i, {
88
+ ref: "username",
89
+ modelValue: o.value.username,
90
+ "onUpdate:modelValue": e[0] || (e[0] = (p) => o.value.username = p),
91
+ placeholder: s.$t("login.username"),
92
+ name: "username"
93
+ }, {
94
+ prefix: r(() => [
95
+ t(a, { "icon-class": "user" })
96
+ ]),
97
+ _: 1
98
+ }, 8, ["modelValue", "placeholder"]),
99
+ t(d, {
100
+ prop: "password",
101
+ class: "el-form-item__content"
102
+ }, {
103
+ default: r(() => [
104
+ t(i, {
105
+ modelValue: o.value.password,
106
+ "onUpdate:modelValue": e[1] || (e[1] = (p) => o.value.password = p),
107
+ type: "password",
108
+ placeholder: "请输入密码",
109
+ "show-password": "",
110
+ onKeyup: w(_, ["enter"])
111
+ }, {
112
+ prefix: r(() => [
113
+ t(a, { "icon-class": "password" })
114
+ ]),
115
+ _: 1
116
+ }, 8, ["modelValue"])
117
+ ]),
118
+ _: 1
119
+ }),
120
+ t(d, {
121
+ prop: "captchaCode",
122
+ class: "el-form-item__content"
123
+ }, {
124
+ default: r(() => [
125
+ t(i, {
126
+ modelValue: o.value.captchaCode,
127
+ "onUpdate:modelValue": e[2] || (e[2] = (p) => o.value.captchaCode = p),
128
+ "auto-complete": "off",
129
+ placeholder: s.$t("login.captchaCode"),
130
+ class: "w-[60%]",
131
+ onKeyup: w(_, ["enter"])
132
+ }, {
133
+ prefix: r(() => [
134
+ t(a, { "icon-class": "captcha" })
135
+ ]),
136
+ _: 1
137
+ }, 8, ["modelValue", "placeholder"]),
138
+ l("div", T, [
139
+ t(m, {
140
+ src: g.value,
141
+ class: "w-[130px] h-[50px] cursor-pointer",
142
+ onClick: u
143
+ }, {
144
+ error: r(() => [...e[3] || (e[3] = [
145
+ l("div", { class: "image-slot" }, null, -1)
146
+ ])]),
147
+ _: 1
148
+ }, 8, ["src"])
149
+ ])
150
+ ]),
151
+ _: 1
152
+ }),
153
+ t(d, { class: "el-form-item__content" }, {
154
+ default: r(() => [
155
+ t(c, {
156
+ loading: v.value,
157
+ type: "primary",
158
+ class: "w-full login-btn",
159
+ onClick: U(_, ["prevent"])
160
+ }, {
161
+ default: r(() => [...e[4] || (e[4] = [
162
+ B("登录 ", -1)
163
+ ])]),
164
+ _: 1
165
+ }, 8, ["loading"])
166
+ ]),
167
+ _: 1
168
+ })
169
+ ]),
170
+ _: 1
171
+ }, 8, ["model", "rules"])
172
+ ])
173
+ ])
174
+ ]);
175
+ };
176
+ }
177
+ }), se = /* @__PURE__ */ L(G, [["__scopeId", "data-v-6089f000"]]);
178
+ export {
179
+ se as default
180
+ };
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import "jmash-core";
2
- import { a as l, L as o, l as s, b as t } from "./index-fq7bb0vi.mjs";
2
+ import { a as l, L as o, l as s, b as t } from "./index-E627ZQkT.mjs";
3
3
  export {
4
4
  l as default,
5
5
  o as liveList,
@@ -2,7 +2,7 @@ import { defineComponent as ne, getCurrentInstance as oe, ref as S, resolveCompo
2
2
  import { useUserStore as u, clearEmpty as d, request as c, useTableHooks as re, fileApi as j } from "jmash-core";
3
3
  import { useI18n as ie } from "vue-i18n";
4
4
  import { q as L } from "./index-Jusy_c5g.mjs";
5
- import { D as k } from "./index-fq7bb0vi.mjs";
5
+ import { D as k } from "./index-E627ZQkT.mjs";
6
6
  import { useRoute as se } from "vue-router";
7
7
  class ue {
8
8
  getKey(e) {
@@ -3,7 +3,7 @@ import { useUserStore as u, clearEmpty as p, request as m, useTableHooks as ee }
3
3
  import { useI18n as te } from "vue-i18n";
4
4
  import { q as P } from "./index-Jusy_c5g.mjs";
5
5
  import { useRoute as le } from "vue-router";
6
- import { D as g } from "./index-fq7bb0vi.mjs";
6
+ import { D as g } from "./index-E627ZQkT.mjs";
7
7
  class ne {
8
8
  getKey(e) {
9
9
  return {