@cyberskill/shared 1.184.0 → 1.185.0
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/dist/config/config.util.cjs +1 -1
- package/dist/config/config.util.js +1 -1
- package/dist/config/index.cjs +1 -1
- package/dist/config/index.js +1 -1
- package/dist/config/vitest/index.cjs +1 -1
- package/dist/config/vitest/index.js +1 -1
- package/dist/config/vitest/vitest.e2e.cjs +1 -1
- package/dist/config/vitest/vitest.e2e.js +1 -1
- package/dist/config/vitest/vitest.unit.cjs +1 -1
- package/dist/config/vitest/vitest.unit.js +1 -1
- package/dist/config/vitest/vitest.unit.setup.cjs +1 -1
- package/dist/config/vitest/vitest.unit.setup.js +1 -1
- package/dist/node/cli/cli.util.cjs +1 -1
- package/dist/node/cli/cli.util.js +1 -1
- package/dist/node/cli/index.cjs +1 -1
- package/dist/node/cli/index.js +1 -1
- package/dist/node/command/command.util.cjs +1 -1
- package/dist/node/command/command.util.js +1 -1
- package/dist/node/command/index.cjs +1 -1
- package/dist/node/command/index.js +1 -1
- package/dist/node/index.cjs +1 -1
- package/dist/node/index.js +1 -1
- package/dist/node/mongo/index.cjs +1 -1
- package/dist/node/mongo/index.js +1 -1
- package/dist/node/mongo/mongo.util.cjs +1 -1
- package/dist/node/mongo/mongo.util.js +1 -1
- package/dist/node/package/index.cjs +1 -1
- package/dist/node/package/index.js +1 -1
- package/dist/node/package/package.util.cjs +1 -1
- package/dist/node/package/package.util.js +1 -1
- package/dist/node/path/index.cjs +1 -1
- package/dist/node/path/index.js +1 -1
- package/dist/node/path/path.constant.cjs +1 -1
- package/dist/node/path/path.constant.js +1 -1
- package/dist/react/apollo-client/apollo-client.component.cjs +1 -1
- package/dist/react/apollo-client/apollo-client.component.css +1 -0
- package/dist/react/apollo-client/apollo-client.component.js +1 -1
- package/dist/react/apollo-client/index.cjs +1 -1
- package/dist/react/apollo-client/index.css +1 -0
- package/dist/react/apollo-client/index.js +1 -1
- package/dist/react/apollo-error/apollo-error.component.cjs +1 -1
- package/dist/react/apollo-error/apollo-error.component.css +1 -0
- package/dist/react/apollo-error/apollo-error.component.js +1 -1
- package/dist/react/apollo-error/index.cjs +1 -1
- package/dist/react/apollo-error/index.css +1 -0
- package/dist/react/apollo-error/index.js +1 -1
- package/dist/react/index.cjs +1 -1
- package/dist/react/index.css +1 -0
- package/dist/react/index.js +1 -1
- package/dist/react/loading/index.cjs +1 -1
- package/dist/react/loading/index.css +1 -0
- package/dist/react/loading/index.js +1 -1
- package/dist/react/loading/loading.component.cjs +1 -1
- package/dist/react/loading/loading.component.css +1 -0
- package/dist/react/loading/loading.component.js +1 -1
- package/dist/react/loading/loading.provider.cjs +1 -1
- package/dist/react/loading/loading.provider.css +1 -0
- package/dist/react/loading/loading.provider.js +1 -1
- package/package.json +28 -28
- package/dist/react/apollo-error/apollo-error.module.d.cts +0 -1
- package/dist/react/apollo-error/apollo-error.module.d.ts +0 -1
- package/dist/react/apollo-error/apollo-error.module.scss +0 -105
- package/dist/react/loading/loading.module.d.cts +0 -1
- package/dist/react/loading/loading.module.d.ts +0 -1
- package/dist/react/loading/loading.module.scss +0 -130
- package/dist/style/reset.css +0 -1
- package/dist/style/reset.d.cts +0 -1
- package/dist/style/reset.d.ts +0 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cyberskill/shared",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.185.0",
|
|
5
5
|
"description": "CyberSkill Shared",
|
|
6
6
|
"author": "Stephen Cheng",
|
|
7
7
|
"license": "MIT",
|
|
@@ -164,9 +164,9 @@
|
|
|
164
164
|
"import": "./dist/react/toast/index.js",
|
|
165
165
|
"require": "./dist/react/toast/index.cjs"
|
|
166
166
|
},
|
|
167
|
-
"./
|
|
168
|
-
"import": "./dist/
|
|
169
|
-
"require": "./dist/
|
|
167
|
+
"./react/index.css": {
|
|
168
|
+
"import": "./dist/react/index.css",
|
|
169
|
+
"require": "./dist/react/index.css"
|
|
170
170
|
},
|
|
171
171
|
"./typescript": {
|
|
172
172
|
"types": "./dist/typescript/index.d.ts",
|
|
@@ -210,30 +210,26 @@
|
|
|
210
210
|
],
|
|
211
211
|
"scripts": {
|
|
212
212
|
"build": "tsup",
|
|
213
|
+
"commitlint": "tsx src/node/cli/index.ts commitlint",
|
|
213
214
|
"dev": "tsup --watch",
|
|
215
|
+
"inspect": "tsx src/node/cli/index.ts inspect",
|
|
214
216
|
"lint": "tsx src/node/cli/index.ts lint",
|
|
215
217
|
"lint:fix": "tsx src/node/cli/index.ts lint:fix",
|
|
216
218
|
"lint:inspect": "tsx src/node/cli/index.ts lint:inspect",
|
|
217
|
-
"reset": "tsx src/node/cli/index.ts reset",
|
|
218
219
|
"ready": "tsx src/node/cli/index.ts ready",
|
|
219
|
-
"
|
|
220
|
-
"test:unit": "tsx src/node/cli/index.ts test:unit",
|
|
220
|
+
"reset": "tsx src/node/cli/index.ts reset",
|
|
221
221
|
"test:e2e": "tsx src/node/cli/index.ts test:e2e",
|
|
222
|
-
"
|
|
222
|
+
"test:unit": "tsx src/node/cli/index.ts test:unit"
|
|
223
223
|
},
|
|
224
224
|
"dependencies": {
|
|
225
225
|
"@antfu/eslint-config": "4.15.0",
|
|
226
226
|
"@apollo/client": "3.13.8",
|
|
227
227
|
"@apollo/server": "4.12.2",
|
|
228
|
-
"@commitlint/cli": "19.8.1",
|
|
229
|
-
"@commitlint/config-conventional": "19.8.1",
|
|
230
228
|
"@dotenvx/dotenvx": "1.45.1",
|
|
231
229
|
"@eddeee888/gcg-typescript-resolver-files": "0.12.1",
|
|
232
230
|
"@eslint-react/eslint-plugin": "1.52.2",
|
|
233
|
-
"@eslint/config-inspector": "1.1.0",
|
|
234
231
|
"@graphql-codegen/cli": "5.0.7",
|
|
235
232
|
"@graphql-codegen/client-preset": "4.8.2",
|
|
236
|
-
"@microsoft/api-extractor": "7.52.8",
|
|
237
233
|
"@nestjs/common": "11.1.3",
|
|
238
234
|
"@nestjs/core": "11.1.3",
|
|
239
235
|
"@next/eslint-plugin-next": "15.3.4",
|
|
@@ -250,9 +246,7 @@
|
|
|
250
246
|
"cors": "2.8.5",
|
|
251
247
|
"crypto-js": "4.2.0",
|
|
252
248
|
"date-fns": "4.1.0",
|
|
253
|
-
"dotenv-cli": "8.0.0",
|
|
254
249
|
"envalid": "8.0.0",
|
|
255
|
-
"eslint": "9.29.0",
|
|
256
250
|
"eslint-config-next": "15.3.4",
|
|
257
251
|
"eslint-plugin-format": "1.0.1",
|
|
258
252
|
"eslint-plugin-react-hooks": "5.2.0",
|
|
@@ -266,20 +260,16 @@
|
|
|
266
260
|
"graphql-ws": "6.0.5",
|
|
267
261
|
"i18next": "25.2.1",
|
|
268
262
|
"jsdom": "26.1.0",
|
|
269
|
-
"lint-staged": "16.1.2",
|
|
270
263
|
"localforage": "1.10.0",
|
|
271
264
|
"migrate-mongo": "12.1.3",
|
|
272
|
-
"modern-normalize": "3.0.1",
|
|
273
265
|
"mongodb": "6.17.0",
|
|
274
266
|
"mongoose": "8.16.0",
|
|
275
267
|
"mongoose-aggregate-paginate-v2": "1.1.4",
|
|
276
268
|
"mongoose-paginate-v2": "1.9.1",
|
|
277
269
|
"next-intl": "4.1.0",
|
|
278
270
|
"node-fetch": "3.3.2",
|
|
279
|
-
"node-modules-inspector": "0.6.9",
|
|
280
271
|
"node-persist": "4.0.4",
|
|
281
272
|
"playwright": "1.53.1",
|
|
282
|
-
"postcss-modules": "6.0.1",
|
|
283
273
|
"qs": "6.14.0",
|
|
284
274
|
"react": "19.1.0",
|
|
285
275
|
"react-dom": "19.1.0",
|
|
@@ -287,23 +277,18 @@
|
|
|
287
277
|
"react-i18next": "15.5.3",
|
|
288
278
|
"react-icons": "5.5.0",
|
|
289
279
|
"sass": "1.89.2",
|
|
290
|
-
"simple-git-hooks": "2.13.0",
|
|
291
280
|
"slugify": "1.6.6",
|
|
292
|
-
"tsup": "8.5.0",
|
|
293
|
-
"tsx": "4.20.3",
|
|
294
|
-
"typescript": "5.8.3",
|
|
295
281
|
"unorm": "1.6.0",
|
|
296
282
|
"uuid": "11.1.0",
|
|
297
283
|
"vite": "6.3.5",
|
|
298
|
-
"vitest": "3.2.4",
|
|
299
284
|
"ws": "8.18.2",
|
|
300
285
|
"yargs": "18.0.0"
|
|
301
286
|
},
|
|
302
|
-
"publishConfig": {
|
|
303
|
-
"access": "public",
|
|
304
|
-
"registry": "https://registry.npmjs.org/"
|
|
305
|
-
},
|
|
306
287
|
"devDependencies": {
|
|
288
|
+
"@commitlint/cli": "19.8.1",
|
|
289
|
+
"@commitlint/config-conventional": "19.8.1",
|
|
290
|
+
"@eslint/config-inspector": "1.1.0",
|
|
291
|
+
"@microsoft/api-extractor": "7.52.8",
|
|
307
292
|
"@types/body-parser": "1.19.6",
|
|
308
293
|
"@types/compression": "1.8.1",
|
|
309
294
|
"@types/cookie-parser": "1.4.9",
|
|
@@ -321,6 +306,21 @@
|
|
|
321
306
|
"@types/unorm": "1.3.31",
|
|
322
307
|
"@types/uuid": "10.0.0",
|
|
323
308
|
"@types/ws": "8.18.1",
|
|
324
|
-
"@types/yargs": "17.0.33"
|
|
309
|
+
"@types/yargs": "17.0.33",
|
|
310
|
+
"esbuild-sass-plugin": "3.3.1",
|
|
311
|
+
"eslint": "9.29.0",
|
|
312
|
+
"lint-staged": "16.1.2",
|
|
313
|
+
"node-modules-inspector": "0.6.9",
|
|
314
|
+
"postcss": "8.5.6",
|
|
315
|
+
"postcss-modules": "6.0.1",
|
|
316
|
+
"simple-git-hooks": "2.13.0",
|
|
317
|
+
"tsup": "8.5.0",
|
|
318
|
+
"tsx": "4.20.3",
|
|
319
|
+
"typescript": "5.8.3",
|
|
320
|
+
"vitest": "3.2.4"
|
|
321
|
+
},
|
|
322
|
+
"publishConfig": {
|
|
323
|
+
"access": "public",
|
|
324
|
+
"registry": "https://registry.npmjs.org/"
|
|
325
325
|
}
|
|
326
326
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
.modal-backdrop {
|
|
2
|
-
position: fixed;
|
|
3
|
-
inset: 0;
|
|
4
|
-
z-index: 9999999;
|
|
5
|
-
background-color: rgba(0, 0, 0, 0.6);
|
|
6
|
-
display: flex;
|
|
7
|
-
align-items: center;
|
|
8
|
-
justify-content: center;
|
|
9
|
-
padding: 1rem;
|
|
10
|
-
|
|
11
|
-
.modal-content {
|
|
12
|
-
position: relative;
|
|
13
|
-
background-color: #0f172a;
|
|
14
|
-
color: white;
|
|
15
|
-
max-width: 80vw;
|
|
16
|
-
width: 100%;
|
|
17
|
-
border-radius: 0.75rem;
|
|
18
|
-
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
|
|
19
|
-
overflow: hidden;
|
|
20
|
-
padding: 2rem;
|
|
21
|
-
|
|
22
|
-
.btn-close {
|
|
23
|
-
position: absolute;
|
|
24
|
-
top: 0.75rem;
|
|
25
|
-
right: 1rem;
|
|
26
|
-
font-size: 1.25rem;
|
|
27
|
-
color: white;
|
|
28
|
-
background: none;
|
|
29
|
-
border: none;
|
|
30
|
-
cursor: pointer;
|
|
31
|
-
transition: color 0.2s;
|
|
32
|
-
|
|
33
|
-
&:hover {
|
|
34
|
-
color: #f87171;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.error-title {
|
|
39
|
-
font-size: 1.75rem;
|
|
40
|
-
font-weight: bold;
|
|
41
|
-
margin-bottom: 1rem;
|
|
42
|
-
|
|
43
|
-
.btn-retry {
|
|
44
|
-
background: linear-gradient(to right, #3b82f6, #06b6d4);
|
|
45
|
-
color: white;
|
|
46
|
-
font-weight: 600;
|
|
47
|
-
padding: 0.5rem 1.5rem;
|
|
48
|
-
border-radius: 0.75rem;
|
|
49
|
-
transition: background 0.3s ease;
|
|
50
|
-
border: none;
|
|
51
|
-
cursor: pointer;
|
|
52
|
-
|
|
53
|
-
&:hover {
|
|
54
|
-
background: linear-gradient(to right, #2563eb, #0891b2);
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.error-details {
|
|
60
|
-
background-color: #1e293b;
|
|
61
|
-
text-align: left;
|
|
62
|
-
font-size: 0.875rem;
|
|
63
|
-
border-radius: 0.5rem;
|
|
64
|
-
padding: 1rem;
|
|
65
|
-
margin-bottom: 1.5rem;
|
|
66
|
-
max-height: 50vh;
|
|
67
|
-
overflow-y: auto;
|
|
68
|
-
border: 1px solid #334155;
|
|
69
|
-
display: flex;
|
|
70
|
-
flex-direction: column;
|
|
71
|
-
gap: 0.5rem;
|
|
72
|
-
|
|
73
|
-
pre {
|
|
74
|
-
white-space: pre-wrap;
|
|
75
|
-
word-break: break-word;
|
|
76
|
-
|
|
77
|
-
&.main {
|
|
78
|
-
color: #fca5a5;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
&.network {
|
|
82
|
-
color: #fde68a;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
&.extra {
|
|
86
|
-
color: #67e8f9;
|
|
87
|
-
overflow-x: auto;
|
|
88
|
-
white-space: pre;
|
|
89
|
-
font-family:
|
|
90
|
-
ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New',
|
|
91
|
-
monospace;
|
|
92
|
-
background-color: #0f172a;
|
|
93
|
-
padding: 0.5rem;
|
|
94
|
-
border-radius: 0.375rem;
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
ul {
|
|
99
|
-
padding-left: 1rem;
|
|
100
|
-
color: #fda4af;
|
|
101
|
-
list-style: disc;
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
@use 'sass:map';
|
|
2
|
-
|
|
3
|
-
.overlay {
|
|
4
|
-
z-index: 999999;
|
|
5
|
-
background: linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.8));
|
|
6
|
-
backdrop-filter: blur(10px);
|
|
7
|
-
display: flex;
|
|
8
|
-
justify-content: center;
|
|
9
|
-
align-items: center;
|
|
10
|
-
width: 100%;
|
|
11
|
-
height: 100%;
|
|
12
|
-
animation: overlay-fade-in 0.5s ease-out;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.fullscreen,
|
|
16
|
-
.block {
|
|
17
|
-
@extend .overlay;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.fullscreen {
|
|
21
|
-
position: fixed;
|
|
22
|
-
top: 0;
|
|
23
|
-
right: 0;
|
|
24
|
-
bottom: 0;
|
|
25
|
-
left: 0;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.block {
|
|
29
|
-
position: relative;
|
|
30
|
-
width: auto;
|
|
31
|
-
height: auto;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.container {
|
|
35
|
-
display: flex;
|
|
36
|
-
justify-content: center;
|
|
37
|
-
align-items: center;
|
|
38
|
-
position: relative;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.ring {
|
|
42
|
-
width: clamp(60px, 10vw, 190px);
|
|
43
|
-
height: clamp(60px, 10vw, 190px);
|
|
44
|
-
border: 2px solid transparent;
|
|
45
|
-
border-radius: 50%;
|
|
46
|
-
position: absolute;
|
|
47
|
-
transition: transform 0.3s ease;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
$colors: (
|
|
51
|
-
1: rgb(240, 42, 230),
|
|
52
|
-
2: rgb(240, 19, 67),
|
|
53
|
-
3: rgb(3, 170, 170),
|
|
54
|
-
4: rgb(207, 135, 1),
|
|
55
|
-
);
|
|
56
|
-
|
|
57
|
-
@for $i from 1 through 4 {
|
|
58
|
-
.ring:nth-child(#{$i}) {
|
|
59
|
-
border-bottom: 8px solid map.get($colors, $i);
|
|
60
|
-
animation: rotate#{$i} 1s linear infinite;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.message {
|
|
65
|
-
color: #524f4f;
|
|
66
|
-
font-weight: bold;
|
|
67
|
-
letter-spacing: 5px;
|
|
68
|
-
animation: text-fade 2s ease-in-out infinite alternate;
|
|
69
|
-
font-size: 1rem;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
@keyframes rotate1 {
|
|
73
|
-
from {
|
|
74
|
-
transform: rotateX(50deg) rotateZ(110deg);
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
to {
|
|
78
|
-
transform: rotateX(50deg) rotateZ(470deg);
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
@keyframes rotate2 {
|
|
83
|
-
from {
|
|
84
|
-
transform: rotateX(20deg) rotateY(50deg) rotateZ(20deg);
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
to {
|
|
88
|
-
transform: rotateX(20deg) rotateY(50deg) rotateZ(380deg);
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
@keyframes rotate3 {
|
|
93
|
-
from {
|
|
94
|
-
transform: rotateX(40deg) rotateY(130deg) rotateZ(450deg);
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
to {
|
|
98
|
-
transform: rotateX(40deg) rotateY(130deg) rotateZ(90deg);
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
@keyframes rotate4 {
|
|
103
|
-
from {
|
|
104
|
-
transform: rotateX(70deg) rotateZ(270deg);
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
to {
|
|
108
|
-
transform: rotateX(70deg) rotateZ(630deg);
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
@keyframes text-fade {
|
|
113
|
-
0% {
|
|
114
|
-
opacity: 0.6;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
100% {
|
|
118
|
-
opacity: 1;
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
@keyframes overlay-fade-in {
|
|
123
|
-
0% {
|
|
124
|
-
opacity: 0;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
100% {
|
|
128
|
-
opacity: 1;
|
|
129
|
-
}
|
|
130
|
-
}
|
package/dist/style/reset.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@import 'node_modules/modern-normalize/modern-normalize.css';
|
package/dist/style/reset.d.cts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/style/reset.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|