@sigmaott/base-next 1.4.34 → 1.4.35

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/package.json CHANGED
@@ -1,131 +1,131 @@
1
- {
2
- "name": "@sigmaott/base-next",
3
- "type": "module",
4
- "version": "1.4.34",
5
- "publishConfig": {
6
- "access": "public"
7
- },
8
- "main": "./nuxt.config.ts",
9
- "files": [
10
- "locales",
11
- "src",
12
- "public",
13
- ".npmrc",
14
- "nuxt.config.ts",
15
- "hyrd-ui.preset.ts",
16
- "nuxt-config.ts",
17
- "i18n.config.ts",
18
- "uno.config.ts",
19
- "tsconfig.json"
20
- ],
21
- "scripts": {
22
- "build": "nuxi build",
23
- "dev": "nuxi dev",
24
- "dev:pwa": "VITE_PLUGIN_PWA=true nuxi dev",
25
- "start": "node .output/server/index.mjs",
26
- "typecheck": "vue-tsc --noEmit",
27
- "generate": "nuxi generate",
28
- "start:generate": "npx serve .output/public",
29
- "openapi:auth-service": "pnpm tsx ../../s-openapi.ts https://dev-streaming.gviet.vn:8783/auth-service/v1/api-docs-json ./src/schemas/authServiceApi.json",
30
- "openapi:library": "pnpm tsx ../../s-openapi.ts https://dev-streaming.gviet.vn:8783/api/library/api-docs-json ./src/schemas/libraryApi.json",
31
- "openapi:machine": "pnpm tsx ../../s-openapi.ts https://dev-streaming.gviet.vn:8783/api/machine/api-docs-json ./src/schemas/machineApi.json",
32
- "openapi:license": "pnpm tsx ../../s-openapi.ts https://dev-streaming.gviet.vn:8783/api/license/api-docs-json ./src/schemas/licenseApi.json",
33
- "openapi:notification": "curl https://dev-streaming.gviet.vn:8783/api/notification/api-docs-json -o ./src/schemas/notificationApi.json",
34
- "openapi:lrm": "pnpm tsx ../../s-openapi.ts https://dev-streaming.gviet.vn:8783/api/lrm/api-docs-json ./src/schemas/lrmApi.json",
35
- "openapi:transcode": "pnpm tsx ../../s-openapi.ts https://dev-streaming.gviet.vn:8783/api/transcode/api-docs-json ./src/schemas/transcodeApi.json",
36
- "openapi:billing": "pnpm tsx ../../s-openapi.ts https://dev-streaming.gviet.vn:8783/api/billing/api-docs-json ./src/schemas/billingApi.json --covert",
37
- "openapi:metric": "pnpm tsx ../../s-openapi.ts https://dev-streaming.gviet.vn:8783/api/metric/api-docs-json ./src/schemas/metricApi.json",
38
- "openapi:playout": "pnpm tsx ../../s-openapi.ts https://dev-streaming.gviet.vn:8783/api/playout/api-docs-json ./src/schemas/playoutApi.json",
39
- "openapi:vod": "pnpm tsx ../../s-openapi.ts https://dev-streaming.gviet.vn:8783/api/vod/api-docs-json ./src/schemas/vodApi.json",
40
- "openapi:livestream": "pnpm tsx ../../s-openapi.ts https://dev-streaming.gviet.vn:8783/api/livestream/api-docs-json ./src/schemas/livestreamApi.json",
41
- "openapi:ssai": "pnpm tsx ../../s-openapi.ts https://dev-streaming.gviet.vn:8783/api/ssai/api-docs-json ./src/schemas/ssaiApi.json",
42
- "openapi:chat": "pnpm tsx ../../s-openapi.ts https://dev-streaming.gviet.vn:8783/api/chat/api-docs-json ./src/schemas/chatApi.json"
43
- },
44
- "dependencies": {
45
- "date-fns": "^2.29.3",
46
- "@cubejs-client/core": "^0.30.29",
47
- "@cubejs-client/vue3": "^0.30.29",
48
- "odometer": "^0.4.8",
49
- "vue3-odometer": "^0.1.3",
50
- "@pureadmin/utils": "^1.9.6",
51
- "@ai-sdk/vue": "^1.2.12",
52
- "@antfu/eslint-config": "^2.15.0",
53
- "@antfu/utils": "^0.7.4",
54
- "@atlaskit/pragmatic-drag-and-drop": "^1.1.9",
55
- "@atlaskit/pragmatic-drag-and-drop-hitbox": "^1.0.3",
56
- "@element-plus/nuxt": "^1.0.7",
57
- "@iconify-json/carbon": "^1.1.18",
58
- "@iconify-json/ep": "^1.1.10",
59
- "@iconify-json/lucide": "^1.1.188",
60
- "@iconify-json/radix-icons": "^1.1.11",
61
- "@iconify-json/ri": "^1.1.10",
62
- "@iconify-json/twemoji": "^1.1.11",
63
- "@nuxt/devtools": "^1.6.0",
64
- "@nuxt/eslint": "^0.3.9",
65
- "@nuxt/fonts": "^0.8.0",
66
- "@nuxtjs/color-mode": "^3.3.0",
67
- "@nuxtjs/i18n": "^8.3.1",
68
- "@pinia/nuxt": "^0.4.11",
69
- "@tanstack/vue-query": "^4.29.13",
70
- "@unocss/eslint-config": "^0.59.4",
71
- "@unocss/nuxt": "^0.59.4",
72
- "@unocss/reset": "^0.59.4",
73
- "@videojs-player/vue": "^1.0.0",
74
- "@vite-pwa/nuxt": "^0.1.0",
75
- "@vue-macros/nuxt": "^1.3.12",
76
- "@vueuse/core": "^10.6.1",
77
- "@vueuse/nuxt": "^10.6.1",
78
- "@vueuse/router": "^10.9.0",
79
- "@vvo/tzdb": "^6.108.0",
80
- "axios": "^0.27.2",
81
- "clipboard": "^2.0.11",
82
- "dayjs": "^1.11.13",
83
- "dayjs-nuxt": "^2.1.9",
84
- "defu": "^6.1.2",
85
- "destr": "^1.2.2",
86
- "element-plus": "2.5.5",
87
- "hls.js": "^1.5.14",
88
- "jszip": "^3.10.1",
89
- "klona": "^2.0.6",
90
- "libphonenumber-js": "^1.10.34",
91
- "lucide-vue-next": "^0.446.0",
92
- "mediainfo.js": "0.1.8",
93
- "nuxt-api-party": "^0.20.1",
94
- "openapi-typescript": "^6.6.1",
95
- "pinia": "^2.1.4",
96
- "plyr": "^3.7.8",
97
- "radix-vue": "1.9.6",
98
- "recaptcha-v3": "^1.10.0",
99
- "remeda": "^1.19.0",
100
- "sass": "^1.63.6",
101
- "swagger-client": "^3.19.10",
102
- "unocss": "^0.59.4",
103
- "uuid": "^9.0.1",
104
- "v-lazy-show": "^0.2.4",
105
- "validator": "^13.9.0",
106
- "video.js": "^7.20.3",
107
- "vue-echarts": "^6.6.0",
108
- "vue-json-pretty": "^2.2.4",
109
- "worker-timers": "^7.0.71",
110
- "wujie": "1.0.18",
111
- "xlsx": "https://cdn.sheetjs.com/xlsx-0.20.1/xlsx-0.20.1.tgz",
112
- "zod": "^3.24.1",
113
- "echarts": "5.5.1",
114
- "class-variance-authority": "^0.7.0"
115
- },
116
- "devDependencies": {
117
- "@openapitools/openapi-generator-cli": "^2.6.0",
118
- "typescript": "^5.4.5",
119
- "tsx": "^4.7.1",
120
- "@changesets/cli": "^2.26.1",
121
- "@types/node": "18.16.16",
122
- "@types/validator": "^13.7.17",
123
- "consola": "^3.1.0",
124
- "cross-env": "^7.0.3",
125
- "eslint": "^9.1.1",
126
- "eslint-plugin-format": "^0.1.1",
127
- "h3": "^1.8.1",
128
- "nuxt": "3.15.4",
129
- "vue-tsc": "^1.8.1"
130
- }
131
- }
1
+ {
2
+ "name": "@sigmaott/base-next",
3
+ "type": "module",
4
+ "version": "1.4.35",
5
+ "publishConfig": {
6
+ "access": "public"
7
+ },
8
+ "main": "./nuxt.config.ts",
9
+ "files": [
10
+ "locales",
11
+ "src",
12
+ "public",
13
+ ".npmrc",
14
+ "nuxt.config.ts",
15
+ "hyrd-ui.preset.ts",
16
+ "nuxt-config.ts",
17
+ "i18n.config.ts",
18
+ "uno.config.ts",
19
+ "tsconfig.json"
20
+ ],
21
+ "scripts": {
22
+ "build": "nuxi build",
23
+ "dev": "nuxi dev",
24
+ "dev:pwa": "VITE_PLUGIN_PWA=true nuxi dev",
25
+ "start": "node .output/server/index.mjs",
26
+ "typecheck": "vue-tsc --noEmit",
27
+ "generate": "nuxi generate",
28
+ "start:generate": "npx serve .output/public",
29
+ "openapi:auth-service": "pnpm tsx ../../s-openapi.ts https://dev-streaming.gviet.vn:8783/auth-service/v1/api-docs-json ./src/schemas/authServiceApi.json",
30
+ "openapi:library": "pnpm tsx ../../s-openapi.ts https://dev-streaming.gviet.vn:8783/api/library/api-docs-json ./src/schemas/libraryApi.json",
31
+ "openapi:machine": "pnpm tsx ../../s-openapi.ts https://dev-streaming.gviet.vn:8783/api/machine/api-docs-json ./src/schemas/machineApi.json",
32
+ "openapi:license": "pnpm tsx ../../s-openapi.ts https://dev-streaming.gviet.vn:8783/api/license/api-docs-json ./src/schemas/licenseApi.json",
33
+ "openapi:notification": "curl https://dev-streaming.gviet.vn:8783/api/notification/api-docs-json -o ./src/schemas/notificationApi.json",
34
+ "openapi:lrm": "pnpm tsx ../../s-openapi.ts https://dev-streaming.gviet.vn:8783/api/lrm/api-docs-json ./src/schemas/lrmApi.json",
35
+ "openapi:transcode": "pnpm tsx ../../s-openapi.ts https://dev-streaming.gviet.vn:8783/api/transcode/api-docs-json ./src/schemas/transcodeApi.json",
36
+ "openapi:billing": "pnpm tsx ../../s-openapi.ts https://dev-streaming.gviet.vn:8783/api/billing/api-docs-json ./src/schemas/billingApi.json --covert",
37
+ "openapi:metric": "pnpm tsx ../../s-openapi.ts https://dev-streaming.gviet.vn:8783/api/metric/api-docs-json ./src/schemas/metricApi.json",
38
+ "openapi:playout": "pnpm tsx ../../s-openapi.ts https://dev-streaming.gviet.vn:8783/api/playout/api-docs-json ./src/schemas/playoutApi.json",
39
+ "openapi:vod": "pnpm tsx ../../s-openapi.ts https://dev-streaming.gviet.vn:8783/api/vod/api-docs-json ./src/schemas/vodApi.json",
40
+ "openapi:livestream": "pnpm tsx ../../s-openapi.ts https://dev-streaming.gviet.vn:8783/api/livestream/api-docs-json ./src/schemas/livestreamApi.json",
41
+ "openapi:ssai": "pnpm tsx ../../s-openapi.ts https://dev-streaming.gviet.vn:8783/api/ssai/api-docs-json ./src/schemas/ssaiApi.json",
42
+ "openapi:chat": "pnpm tsx ../../s-openapi.ts https://dev-streaming.gviet.vn:8783/api/chat/api-docs-json ./src/schemas/chatApi.json"
43
+ },
44
+ "dependencies": {
45
+ "date-fns": "^2.29.3",
46
+ "@cubejs-client/core": "^0.30.29",
47
+ "@cubejs-client/vue3": "^0.30.29",
48
+ "odometer": "^0.4.8",
49
+ "vue3-odometer": "^0.1.3",
50
+ "@pureadmin/utils": "^1.9.6",
51
+ "@ai-sdk/vue": "^1.2.12",
52
+ "@antfu/eslint-config": "^2.15.0",
53
+ "@antfu/utils": "^0.7.4",
54
+ "@atlaskit/pragmatic-drag-and-drop": "^1.1.9",
55
+ "@atlaskit/pragmatic-drag-and-drop-hitbox": "^1.0.3",
56
+ "@element-plus/nuxt": "^1.0.7",
57
+ "@iconify-json/carbon": "^1.1.18",
58
+ "@iconify-json/ep": "^1.1.10",
59
+ "@iconify-json/lucide": "^1.1.188",
60
+ "@iconify-json/radix-icons": "^1.1.11",
61
+ "@iconify-json/ri": "^1.1.10",
62
+ "@iconify-json/twemoji": "^1.1.11",
63
+ "@nuxt/devtools": "^1.6.0",
64
+ "@nuxt/eslint": "^0.3.9",
65
+ "@nuxt/fonts": "^0.8.0",
66
+ "@nuxtjs/color-mode": "^3.3.0",
67
+ "@nuxtjs/i18n": "^8.3.1",
68
+ "@pinia/nuxt": "^0.4.11",
69
+ "@tanstack/vue-query": "^4.29.13",
70
+ "@unocss/eslint-config": "^0.59.4",
71
+ "@unocss/nuxt": "^0.59.4",
72
+ "@unocss/reset": "^0.59.4",
73
+ "@videojs-player/vue": "^1.0.0",
74
+ "@vite-pwa/nuxt": "^0.1.0",
75
+ "@vue-macros/nuxt": "^1.3.12",
76
+ "@vueuse/core": "^10.6.1",
77
+ "@vueuse/nuxt": "^10.6.1",
78
+ "@vueuse/router": "^10.9.0",
79
+ "@vvo/tzdb": "^6.108.0",
80
+ "axios": "^0.27.2",
81
+ "clipboard": "^2.0.11",
82
+ "dayjs": "^1.11.13",
83
+ "dayjs-nuxt": "^2.1.9",
84
+ "defu": "^6.1.2",
85
+ "destr": "^1.2.2",
86
+ "element-plus": "2.5.5",
87
+ "hls.js": "^1.5.14",
88
+ "jszip": "^3.10.1",
89
+ "klona": "^2.0.6",
90
+ "libphonenumber-js": "^1.10.34",
91
+ "lucide-vue-next": "^0.446.0",
92
+ "mediainfo.js": "0.1.8",
93
+ "nuxt-api-party": "^0.20.1",
94
+ "openapi-typescript": "^6.6.1",
95
+ "pinia": "^2.1.4",
96
+ "plyr": "^3.7.8",
97
+ "radix-vue": "1.9.6",
98
+ "recaptcha-v3": "^1.10.0",
99
+ "remeda": "^1.19.0",
100
+ "sass": "^1.63.6",
101
+ "swagger-client": "^3.19.10",
102
+ "unocss": "^0.59.4",
103
+ "uuid": "^9.0.1",
104
+ "v-lazy-show": "^0.2.4",
105
+ "validator": "^13.9.0",
106
+ "video.js": "^7.20.3",
107
+ "vue-echarts": "^6.6.0",
108
+ "vue-json-pretty": "^2.2.4",
109
+ "worker-timers": "^7.0.71",
110
+ "wujie": "1.0.18",
111
+ "xlsx": "https://cdn.sheetjs.com/xlsx-0.20.1/xlsx-0.20.1.tgz",
112
+ "zod": "^3.24.1",
113
+ "echarts": "5.5.1",
114
+ "class-variance-authority": "^0.7.0"
115
+ },
116
+ "devDependencies": {
117
+ "@openapitools/openapi-generator-cli": "^2.6.0",
118
+ "typescript": "^5.4.5",
119
+ "tsx": "^4.7.1",
120
+ "@changesets/cli": "^2.26.1",
121
+ "@types/node": "18.16.16",
122
+ "@types/validator": "^13.7.17",
123
+ "consola": "^3.1.0",
124
+ "cross-env": "^7.0.3",
125
+ "eslint": "^9.1.1",
126
+ "eslint-plugin-format": "^0.1.1",
127
+ "h3": "^1.8.1",
128
+ "nuxt": "3.15.4",
129
+ "vue-tsc": "^1.8.1"
130
+ }
131
+ }
@@ -41,9 +41,13 @@ export const useNoCardWarningSub = createGlobalState(() => {
41
41
  return !APP_DETAIL_STORAGE.value?.[0].addedPrimaryCard
42
42
  })
43
43
 
44
- function openNoCardWarning() {
45
- console.log('window?.$wujie', window?.$wujie);
46
- window?.$wujie?.props?.openNoCardWarning()
44
+ function openNoCardWarning() {
45
+ if (window?.$wujie?.props?.openNoCardWarning) {
46
+ window.$wujie.props.openNoCardWarning()
47
+ } else {
48
+ const { openNoCardWarning: openGlobalNoCardWarning } = useNoCardWarning()
49
+ openGlobalNoCardWarning()
50
+ }
47
51
  }
48
52
 
49
53
  function withNoCardWarning(fn: Function) {