@jjlmoya/utils-audiovisual 1.15.0 → 1.17.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/package.json +5 -3
- package/scripts/postinstall.mjs +27 -0
- package/src/tool/chromaticLens/component.astro +0 -309
- package/src/tool/collageMaker/component.astro +0 -387
- package/src/tool/exifCleaner/component.astro +0 -290
- package/src/tool/imageCompressor/component.astro +0 -498
- package/src/tool/printQualityCalculator/component.astro +0 -485
- package/src/tool/privacyBlur/component.astro +0 -334
- package/src/tool/subtitleSync/component.astro +0 -327
- package/src/tool/timelapseCalculator/component.astro +0 -285
- package/src/tool/tvDistance/component.astro +0 -437
- package/src/tool/videoFrameExtractor/component.astro +0 -428
- /package/src/tool/chromaticLens/{style.css → chromatic-lens-color-palette-extraction-online.css} +0 -0
- /package/src/tool/collageMaker/{style.css → free-online-photo-collage-maker-professional-compositions.css} +0 -0
- /package/src/tool/exifCleaner/{style.css → exif-metadata-cleaner-remove-gps-photo-privacy.css} +0 -0
- /package/src/tool/imageCompressor/{style.css → online-image-compressor-reduce-file-size-no-quality-loss.css} +0 -0
- /package/src/tool/printQualityCalculator/{style.css → print-quality-calculator-pixels-to-cm-dpi.css} +0 -0
- /package/src/tool/privacyBlur/{style.css → online-privacy-editor-pixelate-blur-faces-photos.css} +0 -0
- /package/src/tool/subtitleSync/{style.css → synchronize-srt-subtitles-online-adjust-timing-free.css} +0 -0
- /package/src/tool/timelapseCalculator/{style.css → timelapse-hyperlapse-calculator-perfect-intervals.css} +0 -0
- /package/src/tool/tvDistance/{style.css → tv-viewing-distance-calculator-thx-4k-optimal-screen.css} +0 -0
- /package/src/tool/videoFrameExtractor/{style.css → online-video-frame-extractor-capture-hd-stills.css} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jjlmoya/utils-audiovisual",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.17.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./src/index.ts",
|
|
6
6
|
"types": "./src/index.ts",
|
|
@@ -10,7 +10,8 @@
|
|
|
10
10
|
"./entries": "./src/entries.ts"
|
|
11
11
|
},
|
|
12
12
|
"files": [
|
|
13
|
-
"src"
|
|
13
|
+
"src",
|
|
14
|
+
"scripts"
|
|
14
15
|
],
|
|
15
16
|
"publishConfig": {
|
|
16
17
|
"access": "public"
|
|
@@ -29,7 +30,8 @@
|
|
|
29
30
|
"postversion": "git push && git push --tags",
|
|
30
31
|
"patch": "npm version patch",
|
|
31
32
|
"minor": "npm version minor",
|
|
32
|
-
"major": "npm version major"
|
|
33
|
+
"major": "npm version major",
|
|
34
|
+
"postinstall": "node scripts/postinstall.mjs"
|
|
33
35
|
},
|
|
34
36
|
"lint-staged": {
|
|
35
37
|
"*.{ts,tsx,astro}": [
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { readFileSync, writeFileSync, mkdirSync, readdirSync } from 'fs';
|
|
2
|
+
import { join, dirname } from 'path';
|
|
3
|
+
import { fileURLToPath } from 'url';
|
|
4
|
+
|
|
5
|
+
const libDir = dirname(fileURLToPath(import.meta.url));
|
|
6
|
+
const toolsDir = join(libDir, '../src/tool');
|
|
7
|
+
|
|
8
|
+
const inNodeModules = libDir.includes('node_modules');
|
|
9
|
+
if (!inNodeModules) process.exit(0);
|
|
10
|
+
|
|
11
|
+
const projectRoot = join(libDir, '../../../..');
|
|
12
|
+
const categoryKey = JSON.parse(readFileSync(join(libDir, '../package.json'), 'utf8')).name.replace('@jjlmoya/utils-', '');
|
|
13
|
+
const destDir = join(projectRoot, `public/styles/lib/${categoryKey}`);
|
|
14
|
+
|
|
15
|
+
mkdirSync(destDir, { recursive: true });
|
|
16
|
+
|
|
17
|
+
const tools = readdirSync(toolsDir, { withFileTypes: true }).filter(d => d.isDirectory());
|
|
18
|
+
for (const tool of tools) {
|
|
19
|
+
const toolDir = join(toolsDir, tool.name);
|
|
20
|
+
let files;
|
|
21
|
+
try { files = readdirSync(toolDir).filter(f => f.endsWith('.css')); }
|
|
22
|
+
catch { continue; }
|
|
23
|
+
for (const file of files) {
|
|
24
|
+
writeFileSync(join(destDir, file), readFileSync(join(toolDir, file)));
|
|
25
|
+
console.log(`[@jjlmoya/utils-${categoryKey}] copied ${file}`);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -176,313 +176,4 @@ const { ui } = Astro.props;
|
|
|
176
176
|
document.addEventListener('astro:page-load', init);
|
|
177
177
|
</script>
|
|
178
178
|
|
|
179
|
-
<style>
|
|
180
|
-
:global(.cl-root) {
|
|
181
|
-
--cl-bg: #fff;
|
|
182
|
-
--cl-bg-elevated: #f8fafc;
|
|
183
|
-
--cl-border: #e2e8f0;
|
|
184
|
-
--cl-text: #0f172a;
|
|
185
|
-
--cl-text-muted: #64748b;
|
|
186
|
-
--cl-accent: #6366f1;
|
|
187
|
-
--cl-accent-alpha: rgba(99, 102, 241, 0.08);
|
|
188
|
-
--cl-accent-alpha-hover: rgba(99, 102, 241, 0.04);
|
|
189
|
-
--cl-emerald: #10b981;
|
|
190
|
-
--cl-emerald-alpha: rgba(16, 185, 129, 0.06);
|
|
191
|
-
--cl-shadow: rgba(0, 0, 0, 0.15);
|
|
192
179
|
|
|
193
|
-
padding: 2.5rem 1.5rem;
|
|
194
|
-
max-width: 1000px;
|
|
195
|
-
margin: 0 auto;
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
:global(.theme-dark .cl-root) {
|
|
199
|
-
--cl-bg: #18181b;
|
|
200
|
-
--cl-bg-elevated: #27272a;
|
|
201
|
-
--cl-border: #3f3f46;
|
|
202
|
-
--cl-text: #f4f4f5;
|
|
203
|
-
--cl-text-muted: #71717a;
|
|
204
|
-
--cl-accent: #818cf8;
|
|
205
|
-
--cl-accent-alpha: rgba(129, 140, 248, 0.12);
|
|
206
|
-
--cl-accent-alpha-hover: rgba(129, 140, 248, 0.06);
|
|
207
|
-
--cl-emerald: #34d399;
|
|
208
|
-
--cl-emerald-alpha: rgba(52, 211, 153, 0.08);
|
|
209
|
-
--cl-shadow: rgba(0, 0, 0, 0.5);
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
:global(.cl-card) {
|
|
213
|
-
background: var(--cl-bg);
|
|
214
|
-
border: 1px solid var(--cl-border);
|
|
215
|
-
border-radius: 3rem;
|
|
216
|
-
padding: 1.5rem;
|
|
217
|
-
box-shadow: 0 45px 120px -30px var(--cl-shadow);
|
|
218
|
-
position: relative;
|
|
219
|
-
overflow: hidden;
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
:global(.cl-drop) {
|
|
223
|
-
padding: 5rem 2rem;
|
|
224
|
-
display: flex;
|
|
225
|
-
flex-direction: column;
|
|
226
|
-
align-items: center;
|
|
227
|
-
border: 3px dashed var(--cl-border);
|
|
228
|
-
border-radius: 2.5rem;
|
|
229
|
-
cursor: pointer;
|
|
230
|
-
transition: all 0.2s ease;
|
|
231
|
-
text-align: center;
|
|
232
|
-
gap: 0.5rem;
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
:global(.cl-drop:hover),
|
|
236
|
-
:global(.cl-drop-active) {
|
|
237
|
-
background: var(--cl-accent-alpha-hover);
|
|
238
|
-
border-color: var(--cl-accent);
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
:global(.cl-drop-icon) {
|
|
242
|
-
width: 5rem;
|
|
243
|
-
height: 5rem;
|
|
244
|
-
background: var(--cl-accent-alpha);
|
|
245
|
-
border-radius: 50%;
|
|
246
|
-
display: flex;
|
|
247
|
-
align-items: center;
|
|
248
|
-
justify-content: center;
|
|
249
|
-
margin-bottom: 1rem;
|
|
250
|
-
color: var(--cl-accent);
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
:global(.cl-drop-icon svg) {
|
|
254
|
-
width: 2.5rem;
|
|
255
|
-
height: 2.5rem;
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
:global(.cl-drop-title) {
|
|
259
|
-
font-size: 2rem;
|
|
260
|
-
font-weight: 950;
|
|
261
|
-
color: var(--cl-text);
|
|
262
|
-
margin: 0;
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
:global(.cl-drop-sub) {
|
|
266
|
-
font-size: 1.1rem;
|
|
267
|
-
color: var(--cl-text-muted);
|
|
268
|
-
margin: 0;
|
|
269
|
-
font-weight: 600;
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
:global(.cl-workspace) {
|
|
273
|
-
padding: 1.5rem;
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
:global(.cl-mini-drop) {
|
|
277
|
-
display: inline-flex;
|
|
278
|
-
align-items: center;
|
|
279
|
-
gap: 0.75rem;
|
|
280
|
-
padding: 0.75rem 1.25rem;
|
|
281
|
-
background: var(--cl-bg-elevated);
|
|
282
|
-
border: 1px solid var(--cl-border);
|
|
283
|
-
border-radius: 1rem;
|
|
284
|
-
font-size: 0.75rem;
|
|
285
|
-
font-weight: 800;
|
|
286
|
-
color: var(--cl-text-muted);
|
|
287
|
-
cursor: pointer;
|
|
288
|
-
margin-bottom: 2rem;
|
|
289
|
-
transition: border-color 0.2s, color 0.2s;
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
:global(.cl-mini-drop:hover) {
|
|
293
|
-
border-color: var(--cl-accent);
|
|
294
|
-
color: var(--cl-accent);
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
:global(.cl-mini-drop svg) {
|
|
298
|
-
width: 1.1rem;
|
|
299
|
-
height: 1.1rem;
|
|
300
|
-
}
|
|
301
|
-
|
|
302
|
-
:global(.cl-config-bar) {
|
|
303
|
-
padding: 1rem 0;
|
|
304
|
-
margin-bottom: 2rem;
|
|
305
|
-
border-bottom: 1px solid var(--cl-border);
|
|
306
|
-
display: flex;
|
|
307
|
-
justify-content: flex-end;
|
|
308
|
-
}
|
|
309
|
-
|
|
310
|
-
:global(.cl-config-item) {
|
|
311
|
-
display: flex;
|
|
312
|
-
align-items: center;
|
|
313
|
-
gap: 1rem;
|
|
314
|
-
}
|
|
315
|
-
|
|
316
|
-
:global(.cl-config-label) {
|
|
317
|
-
font-size: 0.75rem;
|
|
318
|
-
font-weight: 900;
|
|
319
|
-
text-transform: uppercase;
|
|
320
|
-
color: var(--cl-text-muted);
|
|
321
|
-
letter-spacing: 0.1em;
|
|
322
|
-
}
|
|
323
|
-
|
|
324
|
-
:global(.cl-count-select) {
|
|
325
|
-
padding: 0.5rem 1rem;
|
|
326
|
-
border-radius: 0.75rem;
|
|
327
|
-
background: var(--cl-bg-elevated);
|
|
328
|
-
border: 1px solid var(--cl-border);
|
|
329
|
-
color: var(--cl-text);
|
|
330
|
-
font-weight: 800;
|
|
331
|
-
cursor: pointer;
|
|
332
|
-
}
|
|
333
|
-
|
|
334
|
-
:global(.cl-result-layout) {
|
|
335
|
-
display: grid;
|
|
336
|
-
grid-template-columns: 1fr 1.25fr;
|
|
337
|
-
gap: 3rem;
|
|
338
|
-
}
|
|
339
|
-
|
|
340
|
-
@media (max-width: 800px) {
|
|
341
|
-
:global(.cl-result-layout) {
|
|
342
|
-
grid-template-columns: 1fr;
|
|
343
|
-
}
|
|
344
|
-
}
|
|
345
|
-
|
|
346
|
-
:global(.cl-preview-col) {
|
|
347
|
-
display: flex;
|
|
348
|
-
flex-direction: column;
|
|
349
|
-
gap: 1rem;
|
|
350
|
-
}
|
|
351
|
-
|
|
352
|
-
:global(.cl-preview-img) {
|
|
353
|
-
width: 100%;
|
|
354
|
-
border-radius: 1.5rem;
|
|
355
|
-
box-shadow: 0 20px 40px var(--cl-shadow);
|
|
356
|
-
display: block;
|
|
357
|
-
}
|
|
358
|
-
|
|
359
|
-
:global(.cl-palette-col) {
|
|
360
|
-
display: flex;
|
|
361
|
-
flex-direction: column;
|
|
362
|
-
gap: 1.5rem;
|
|
363
|
-
}
|
|
364
|
-
|
|
365
|
-
:global(.cl-palette-header) {
|
|
366
|
-
display: flex;
|
|
367
|
-
align-items: center;
|
|
368
|
-
gap: 1rem;
|
|
369
|
-
color: var(--cl-accent);
|
|
370
|
-
}
|
|
371
|
-
|
|
372
|
-
:global(.cl-palette-header svg) {
|
|
373
|
-
width: 1.25rem;
|
|
374
|
-
height: 1.25rem;
|
|
375
|
-
flex-shrink: 0;
|
|
376
|
-
}
|
|
377
|
-
|
|
378
|
-
:global(.cl-palette-header h4) {
|
|
379
|
-
font-size: 1.25rem;
|
|
380
|
-
font-weight: 950;
|
|
381
|
-
color: var(--cl-text);
|
|
382
|
-
margin: 0;
|
|
383
|
-
}
|
|
384
|
-
|
|
385
|
-
:global(.cl-loader) {
|
|
386
|
-
display: flex;
|
|
387
|
-
flex-direction: column;
|
|
388
|
-
align-items: center;
|
|
389
|
-
gap: 1rem;
|
|
390
|
-
padding: 2rem 0;
|
|
391
|
-
}
|
|
392
|
-
|
|
393
|
-
:global(.cl-spinner) {
|
|
394
|
-
width: 3rem;
|
|
395
|
-
height: 3rem;
|
|
396
|
-
border: 3px solid var(--cl-accent-alpha);
|
|
397
|
-
border-top-color: var(--cl-accent);
|
|
398
|
-
border-radius: 50%;
|
|
399
|
-
animation: cl-spin 0.8s linear infinite;
|
|
400
|
-
}
|
|
401
|
-
|
|
402
|
-
:global(.cl-loader-text) {
|
|
403
|
-
font-size: 0.75rem;
|
|
404
|
-
font-weight: 900;
|
|
405
|
-
text-transform: uppercase;
|
|
406
|
-
color: var(--cl-text-muted);
|
|
407
|
-
letter-spacing: 0.1em;
|
|
408
|
-
margin: 0;
|
|
409
|
-
}
|
|
410
|
-
|
|
411
|
-
:global(.cl-swatches) {
|
|
412
|
-
display: flex;
|
|
413
|
-
flex-direction: column;
|
|
414
|
-
gap: 0.75rem;
|
|
415
|
-
animation: cl-fade-up 0.5s ease;
|
|
416
|
-
}
|
|
417
|
-
|
|
418
|
-
:global(.cl-swatch) {
|
|
419
|
-
display: flex;
|
|
420
|
-
align-items: center;
|
|
421
|
-
gap: 1.25rem;
|
|
422
|
-
background: var(--cl-bg-elevated);
|
|
423
|
-
border-radius: 1.25rem;
|
|
424
|
-
padding: 1rem;
|
|
425
|
-
border: 1px solid var(--cl-border);
|
|
426
|
-
cursor: pointer;
|
|
427
|
-
transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.2s;
|
|
428
|
-
}
|
|
429
|
-
|
|
430
|
-
:global(.cl-swatch:hover) {
|
|
431
|
-
transform: scale(1.02);
|
|
432
|
-
border-color: var(--cl-accent);
|
|
433
|
-
}
|
|
434
|
-
|
|
435
|
-
:global(.cl-swatch-copied) {
|
|
436
|
-
background: var(--cl-emerald-alpha);
|
|
437
|
-
border-color: var(--cl-emerald);
|
|
438
|
-
}
|
|
439
|
-
|
|
440
|
-
:global(.cl-swatch-color) {
|
|
441
|
-
width: 3.5rem;
|
|
442
|
-
height: 3.5rem;
|
|
443
|
-
border-radius: 0.75rem;
|
|
444
|
-
box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
|
|
445
|
-
flex-shrink: 0;
|
|
446
|
-
}
|
|
447
|
-
|
|
448
|
-
:global(.cl-swatch-info) {
|
|
449
|
-
display: flex;
|
|
450
|
-
flex-direction: column;
|
|
451
|
-
gap: 0.2rem;
|
|
452
|
-
}
|
|
453
|
-
|
|
454
|
-
:global(.cl-swatch-hex) {
|
|
455
|
-
font-weight: 950;
|
|
456
|
-
color: var(--cl-text);
|
|
457
|
-
font-size: 1.25rem;
|
|
458
|
-
}
|
|
459
|
-
|
|
460
|
-
:global(.cl-swatch-action) {
|
|
461
|
-
font-size: 0.7rem;
|
|
462
|
-
font-weight: 900;
|
|
463
|
-
color: var(--cl-text-muted);
|
|
464
|
-
text-transform: uppercase;
|
|
465
|
-
letter-spacing: 0.05em;
|
|
466
|
-
}
|
|
467
|
-
|
|
468
|
-
:global(.cl-hidden) {
|
|
469
|
-
display: none;
|
|
470
|
-
}
|
|
471
|
-
|
|
472
|
-
@keyframes cl-spin {
|
|
473
|
-
to {
|
|
474
|
-
transform: rotate(360deg);
|
|
475
|
-
}
|
|
476
|
-
}
|
|
477
|
-
|
|
478
|
-
@keyframes cl-fade-up {
|
|
479
|
-
from {
|
|
480
|
-
opacity: 0;
|
|
481
|
-
transform: translateY(10px);
|
|
482
|
-
}
|
|
483
|
-
to {
|
|
484
|
-
opacity: 1;
|
|
485
|
-
transform: translateY(0);
|
|
486
|
-
}
|
|
487
|
-
}
|
|
488
|
-
</style>
|