xyvcard-live 0.0.1

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 (42) hide show
  1. package/README.md +51 -0
  2. package/dist/add-CZ-qxdyj.mjs +784 -0
  3. package/dist/index-BEKuxMN9.mjs +4223 -0
  4. package/dist/index-BnJNPqw0.mjs +3249 -0
  5. package/dist/index-DLHRpKZf.mjs +4 -0
  6. package/dist/index-Jusy_c5g.mjs +1438 -0
  7. package/dist/index-fkh3q-6C.mjs +4 -0
  8. package/dist/index.mjs +6 -0
  9. package/dist/index.vue_vue_type_script_setup_true_lang-B2Da7LnF.mjs +494 -0
  10. package/dist/index.vue_vue_type_script_setup_true_lang-BM5U87cI.mjs +456 -0
  11. package/dist/info-DhG0Tqwk.mjs +404 -0
  12. package/dist/lives copy-Di8sUdq4.mjs +286 -0
  13. package/dist/lives-ftiJP8LL.mjs +70 -0
  14. package/dist/style.css +1 -0
  15. package/dts/src/App.vue.d.ts +2 -0
  16. package/dts/src/api/live/index.d.ts +12 -0
  17. package/dts/src/api/live/zb-live-comment/index.d.ts +22 -0
  18. package/dts/src/api/live/zb-live-comment/types.d.ts +82 -0
  19. package/dts/src/api/live/zb-live-user/index.d.ts +22 -0
  20. package/dts/src/api/live/zb-live-user/types.d.ts +108 -0
  21. package/dts/src/api/live/zb-live-video/index.d.ts +14 -0
  22. package/dts/src/api/live/zb-live-video/types.d.ts +124 -0
  23. package/dts/src/components/VideoUpload/index.vue.d.ts +41 -0
  24. package/dts/src/components/liveList/index.vue.d.ts +73 -0
  25. package/dts/src/constant.d.ts +53 -0
  26. package/dts/src/index.d.ts +7 -0
  27. package/dts/src/lang/index.d.ts +1 -0
  28. package/dts/src/lang/live/en.d.ts +59 -0
  29. package/dts/src/lang/live/zh-cn.d.ts +97 -0
  30. package/dts/src/main.d.ts +5 -0
  31. package/dts/src/permission.d.ts +1 -0
  32. package/dts/src/router/index.d.ts +10 -0
  33. package/dts/src/utils/copy.d.ts +1 -0
  34. package/dts/src/utils/timePlugin.d.ts +5 -0
  35. package/dts/src/views/live/zb-live-comment/index.vue.d.ts +2 -0
  36. package/dts/src/views/live/zb-live-user/index.vue.d.ts +2 -0
  37. package/dts/src/views/live/zb-live-video/add.vue.d.ts +2 -0
  38. package/dts/src/views/live/zb-live-video/index.vue.d.ts +2 -0
  39. package/dts/src/views/live/zb-live-video/info.vue.d.ts +2 -0
  40. package/dts/src/views/live/zb-live-video/lives copy.vue.d.ts +15 -0
  41. package/dts/src/views/live/zb-live-video/lives.vue.d.ts +16 -0
  42. package/package.json +58 -0
@@ -0,0 +1,73 @@
1
+ import { type Ref } from "vue";
2
+ import type { LiveVideoModel } from "@/api/live/zb-live-video/types";
3
+ declare const _default: import("vue").DefineComponent<{}, {
4
+ confirmSelected: () => void;
5
+ selectedRowData: Ref<{
6
+ tenantId?: string | undefined;
7
+ liveId?: string | undefined;
8
+ liveName?: string | undefined;
9
+ liveType?: string | undefined;
10
+ roomNum?: number | undefined;
11
+ startTime?: string | undefined;
12
+ endTime?: string | undefined;
13
+ totalSeconds?: number | undefined;
14
+ showMode?: string | undefined;
15
+ preStreamPic?: string | undefined;
16
+ liveStreamPic?: string | undefined;
17
+ bgPic?: string | undefined;
18
+ streamUrl?: string | undefined;
19
+ playUrl?: string | undefined;
20
+ streamerName?: string | undefined;
21
+ liveDescprition?: string | undefined;
22
+ liveStatus?: string | undefined;
23
+ replayMode?: string | undefined;
24
+ replayStartTime?: string | undefined;
25
+ replayEndTime?: string | undefined;
26
+ quiz?: boolean | undefined;
27
+ reward?: boolean | undefined;
28
+ watchNum?: number | undefined;
29
+ completedNum?: number | undefined;
30
+ createBy?: string | undefined;
31
+ createTime?: string | undefined;
32
+ updateBy?: string | undefined;
33
+ updateTime?: string | undefined;
34
+ } | null, LiveVideoModel | {
35
+ tenantId?: string | undefined;
36
+ liveId?: string | undefined;
37
+ liveName?: string | undefined;
38
+ liveType?: string | undefined;
39
+ roomNum?: number | undefined;
40
+ startTime?: string | undefined;
41
+ endTime?: string | undefined;
42
+ totalSeconds?: number | undefined;
43
+ showMode?: string | undefined;
44
+ preStreamPic?: string | undefined;
45
+ liveStreamPic?: string | undefined;
46
+ bgPic?: string | undefined;
47
+ streamUrl?: string | undefined;
48
+ playUrl?: string | undefined;
49
+ streamerName?: string | undefined;
50
+ liveDescprition?: string | undefined;
51
+ liveStatus?: string | undefined;
52
+ replayMode?: string | undefined;
53
+ replayStartTime?: string | undefined;
54
+ replayEndTime?: string | undefined;
55
+ quiz?: boolean | undefined;
56
+ reward?: boolean | undefined;
57
+ watchNum?: number | undefined;
58
+ completedNum?: number | undefined;
59
+ createBy?: string | undefined;
60
+ createTime?: string | undefined;
61
+ updateBy?: string | undefined;
62
+ updateTime?: string | undefined;
63
+ } | null>;
64
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
65
+ "row-select": (row: LiveVideoModel) => any;
66
+ "confirm-select": (row: LiveVideoModel) => any;
67
+ refresh: () => any;
68
+ }, string, import("vue").PublicProps, Readonly<{}> & Readonly<{
69
+ "onRow-select"?: ((row: LiveVideoModel) => any) | undefined;
70
+ "onConfirm-select"?: ((row: LiveVideoModel) => any) | undefined;
71
+ onRefresh?: (() => any) | undefined;
72
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
73
+ export default _default;
@@ -0,0 +1,53 @@
1
+ export declare class Constant {
2
+ static readonly MODULE_LIVE = "live";
3
+ static readonly LIVE_TYPE_LIVE = "xyvcard.live.protobuf.LiveType";
4
+ static readonly LIVE_STATUS_ONLINE = "xyvcard.live.protobuf.LiveStatus";
5
+ static readonly RPC_FORMAT_TIME = "YYYY-MM-DDTHH:mm:ssZZ";
6
+ static readonly LIVE_SHOW_MODE_HORIZONTAL = "xyvcard.live.protobuf.ShowMode";
7
+ static readonly LIVE_RETURN_MODE_NONE = "xyvcard.live.protobuf.ReplayMode";
8
+ static readonly LIVE_TYPE: {
9
+ live: string;
10
+ fake_live: string;
11
+ vod: string;
12
+ };
13
+ static readonly SHOW_MODE: {
14
+ horizontal: string;
15
+ vertical: string;
16
+ };
17
+ static readonly REPLAY_MODE: {
18
+ none: string;
19
+ end: string;
20
+ };
21
+ static readonly IS_ONLINE: import("vue").Ref<{
22
+ key: boolean;
23
+ value: string;
24
+ }[], {
25
+ key: boolean;
26
+ value: string;
27
+ }[] | {
28
+ key: boolean;
29
+ value: string;
30
+ }[]>;
31
+ static readonly IS_COMPLETED: import("vue").Ref<{
32
+ key: boolean;
33
+ value: string;
34
+ }[], {
35
+ key: boolean;
36
+ value: string;
37
+ }[] | {
38
+ key: boolean;
39
+ value: string;
40
+ }[]>;
41
+ static readonly IS_MUTED: import("vue").Ref<{
42
+ key: boolean;
43
+ value: string;
44
+ }[], {
45
+ key: boolean;
46
+ value: string;
47
+ }[] | {
48
+ key: boolean;
49
+ value: string;
50
+ }[]>;
51
+ static readonly COMMENT_TYPE = "xyvcard.live.protobuf.CommentType";
52
+ static readonly COMMENT_STATUS = "xyvcard.live.protobuf.CommentStatus";
53
+ }
@@ -0,0 +1,7 @@
1
+ import type { App } from "vue";
2
+ import liveList from "./components/liveList/index.vue";
3
+ export { liveList };
4
+ declare const live: {
5
+ install(app: App): void;
6
+ };
7
+ export default live;
@@ -0,0 +1 @@
1
+ export declare function loadLang(i18n: any): void;
@@ -0,0 +1,59 @@
1
+ declare const _default: {
2
+ liveComment: {
3
+ name: string;
4
+ tenantId: string;
5
+ commentId: string;
6
+ liveId: string;
7
+ userId: string;
8
+ headImage: string;
9
+ nickName: string;
10
+ commentType: string;
11
+ content: string;
12
+ status: string;
13
+ };
14
+ liveUser: {
15
+ name: string;
16
+ tenantId: string;
17
+ listenId: string;
18
+ userId: string;
19
+ liveId: string;
20
+ referrerId: string;
21
+ online: string;
22
+ lastHeartbeatTime: string;
23
+ liveMinutes: string;
24
+ replayMinutes: string;
25
+ rewardPoints: string;
26
+ redpacketAmount: string;
27
+ completed: string;
28
+ muted: string;
29
+ block: string;
30
+ };
31
+ liveVideo: {
32
+ name: string;
33
+ tenantId: string;
34
+ liveId: string;
35
+ liveName: string;
36
+ liveType: string;
37
+ roomNum: string;
38
+ startTime: string;
39
+ endTime: string;
40
+ totalMinutes: string;
41
+ showMode: string;
42
+ preStreamPic: string;
43
+ liveStreamPic: string;
44
+ bgPic: string;
45
+ streamUrl: string;
46
+ playUrl: string;
47
+ streamerName: string;
48
+ liveDescprition: string;
49
+ liveStatus: string;
50
+ replayMode: string;
51
+ replayStartTime: string;
52
+ replayEndTime: string;
53
+ quiz: string;
54
+ reward: string;
55
+ watchNum: string;
56
+ completedNum: string;
57
+ };
58
+ };
59
+ export default _default;
@@ -0,0 +1,97 @@
1
+ declare const _default: {
2
+ liveComment: {
3
+ name: string;
4
+ tenantId: string;
5
+ commentId: string;
6
+ liveId: string;
7
+ userId: string;
8
+ headImage: string;
9
+ nickName: string;
10
+ commentType: string;
11
+ commentTypeRequired: string;
12
+ content: string;
13
+ contentRequired: string;
14
+ status: string;
15
+ statusRequired: string;
16
+ createTimeStart: string;
17
+ top: string;
18
+ topConfirmMessage: string;
19
+ topSuccess: string;
20
+ blockSuccess: string;
21
+ blockConfirmMessage: string;
22
+ block: string;
23
+ };
24
+ liveUser: {
25
+ name: string;
26
+ tenantId: string;
27
+ listenId: string;
28
+ userId: string;
29
+ liveId: string;
30
+ referrerId: string;
31
+ online: string;
32
+ lastHeartbeatTime: string;
33
+ liveMinutes: string;
34
+ replayMinutes: string;
35
+ rewardPoints: string;
36
+ redpacketAmount: string;
37
+ completed: string;
38
+ muted: string;
39
+ block: string;
40
+ blockSuccess: string;
41
+ blockConfirmMessage: string;
42
+ blockUser: string;
43
+ mute: string;
44
+ muteSuccess: string;
45
+ muteConfirmMessage: string;
46
+ };
47
+ liveVideo: {
48
+ name: string;
49
+ tenantId: string;
50
+ liveId: string;
51
+ liveName: string;
52
+ liveNameRequired: string;
53
+ liveType: string;
54
+ liveTypeRequired: string;
55
+ roomNum: string;
56
+ startTime: string;
57
+ startTimeRequired: string;
58
+ endTime: string;
59
+ totalMinutes: string;
60
+ showMode: string;
61
+ preStreamPic: string;
62
+ liveStreamPic: string;
63
+ bgPic: string;
64
+ streamUrl: string;
65
+ playUrl: string;
66
+ streamerName: string;
67
+ liveDescprition: string;
68
+ liveStatus: string;
69
+ liveStatusRequired: string;
70
+ replayMode: string;
71
+ replayStartTime: string;
72
+ replayStartTimeRequired: string;
73
+ replayEndTime: string;
74
+ replayEndTimeRequired: string;
75
+ quiz: string;
76
+ reward: string;
77
+ watchNum: string;
78
+ completedNum: string;
79
+ add: string;
80
+ fakeLive: string;
81
+ streamerNameRequired: string;
82
+ fakeLiveRequired: string;
83
+ preStreamPicRequired: string;
84
+ vod: string;
85
+ vodRequired: string;
86
+ endTimeRequired: string;
87
+ copy: string;
88
+ };
89
+ video: {
90
+ uploadEvent: string;
91
+ onlySupportVideo: string;
92
+ videoLtRequired: string;
93
+ uploadSuccess: string;
94
+ pleaseSelectVideo: string;
95
+ };
96
+ };
97
+ export default _default;
@@ -0,0 +1,5 @@
1
+ import "@/permission";
2
+ import "element-plus/dist/index.css";
3
+ import "jmash-core/dist/style.css";
4
+ import "jmash-dict/dist/style.css";
5
+ import "jmash-rbac/dist/style.css";
@@ -0,0 +1 @@
1
+ import "nprogress/nprogress.css";
@@ -0,0 +1,10 @@
1
+ import { type RouteRecordRaw } from "vue-router";
2
+ export declare const addLive: () => Promise<typeof import("@/views/live/zb-live-video/add.vue")>;
3
+ export declare const liveView: () => Promise<typeof import("@/views/live/zb-live-video/info.vue")>;
4
+ export declare const liveRoutes: RouteRecordRaw[];
5
+ export declare const constantRoutes: RouteRecordRaw[];
6
+ /**
7
+ * 创建路由
8
+ */
9
+ declare const router: import("vue-router").Router;
10
+ export default router;
@@ -0,0 +1 @@
1
+ export declare function copyClipboard(textToCopy: string): void;
@@ -0,0 +1,5 @@
1
+ import type { App } from "vue";
2
+ declare const _default: {
3
+ install: (app: App) => void;
4
+ };
5
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,15 @@
1
+ type __VLS_PublicProps = {
2
+ modelValue?: boolean;
3
+ };
4
+ declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
5
+ "row-select": (...args: any[]) => void;
6
+ "confirm-select": (...args: any[]) => void;
7
+ refresh: (...args: any[]) => void;
8
+ "update:modelValue": (value: boolean | undefined) => void;
9
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
10
+ "onRow-select"?: ((...args: any[]) => any) | undefined;
11
+ "onConfirm-select"?: ((...args: any[]) => any) | undefined;
12
+ onRefresh?: ((...args: any[]) => any) | undefined;
13
+ "onUpdate:modelValue"?: ((value: boolean | undefined) => any) | undefined;
14
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
15
+ export default _default;
@@ -0,0 +1,16 @@
1
+ import type { LiveVideoModel } from "@/api/live/zb-live-video/types";
2
+ type __VLS_PublicProps = {
3
+ modelValue?: boolean;
4
+ };
5
+ declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6
+ "row-select": (row: LiveVideoModel) => any;
7
+ "confirm-select": (row: LiveVideoModel) => any;
8
+ refresh: () => any;
9
+ "update:modelValue": (value: boolean | undefined) => any;
10
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
11
+ "onRow-select"?: ((row: LiveVideoModel) => any) | undefined;
12
+ "onConfirm-select"?: ((row: LiveVideoModel) => any) | undefined;
13
+ onRefresh?: (() => any) | undefined;
14
+ "onUpdate:modelValue"?: ((value: boolean | undefined) => any) | undefined;
15
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
16
+ export default _default;
package/package.json ADDED
@@ -0,0 +1,58 @@
1
+ {
2
+ "name": "xyvcard-live",
3
+ "version": "0.0.1",
4
+ "private": false,
5
+ "module": "dist/index.mjs",
6
+ "types": "dts/src/index.d.ts",
7
+ "files": [
8
+ "dist",
9
+ "dts/src"
10
+ ],
11
+ "peerDependencies": {
12
+ "axios": "^1.9.0",
13
+ "element-plus": "^2.9.10",
14
+ "pinia": "^2.3.1",
15
+ "vue": "^3.5.13",
16
+ "vue-i18n": "^9.14.4",
17
+ "vue-router": "^4.5.1",
18
+ "jmash-core": "^0.1.33",
19
+ "jmash-dict": "^0.1.5",
20
+ "jmash-rbac": "^0.1.24"
21
+ },
22
+ "devDependencies": {
23
+ "@eslint/js": "^9.14.0",
24
+ "@tsconfig/node20": "^20.1.2",
25
+ "@types/node": "^20.11.10",
26
+ "@vitejs/plugin-vue": "^5.0.3",
27
+ "@vue/tsconfig": "^0.5.1",
28
+ "eslint": "^9.14.0",
29
+ "eslint-plugin-vue": "^9.30.0",
30
+ "globals": "^15.12.0",
31
+ "npm-run-all2": "^6.1.1",
32
+ "prettier": "^3.0.3",
33
+ "sass": "^1.72.0",
34
+ "typescript": "~5.3.0",
35
+ "typescript-eslint": "^8.13.0",
36
+ "unplugin-auto-import": "^0.17.5",
37
+ "unplugin-vue-components": "^0.26.0",
38
+ "vite": "^5.0.11",
39
+ "vue-tsc": "^2.1.10",
40
+ "moment": "^2.30.1"
41
+ },
42
+ "dependencies": {
43
+ "file-saver": "^2.0.5",
44
+ "nprogress": "^0.2.0",
45
+ "@vueuse/core": "^10.9.0",
46
+ "qs": "^6.14.0"
47
+ },
48
+ "scripts": {
49
+ "dev": "vite --host",
50
+ "build": "vite build && pnpm build:dts",
51
+ "build:dts": "vue-tsc --declaration --emitDeclarationOnly",
52
+ "preview": "vite preview",
53
+ "build-only": "vite build",
54
+ "type-check": "vue-tsc --build --force",
55
+ "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
56
+ "format": "prettier --write src/"
57
+ }
58
+ }