@jjlmoya/utils-developer 1.11.0 → 1.13.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 +7 -4
- package/scripts/postinstall.mjs +27 -0
- package/src/entries.ts +74 -0
- package/src/tool/aspectRatio/aspect-ratio-calculator.css +276 -0
- package/src/tool/aspectRatio/component.astro +0 -278
- package/src/tool/aspectRatio/entry.ts +30 -0
- package/src/tool/aspectRatio/index.ts +2 -32
- package/src/tool/calculadoraTiempoDatos/component.astro +0 -524
- package/src/tool/calculadoraTiempoDatos/data-time-calculator-web-speed-impact.css +522 -0
- package/src/tool/calculadoraTiempoDatos/entry.ts +29 -0
- package/src/tool/calculadoraTiempoDatos/index.ts +2 -31
- package/src/tool/colorConverter/color-converter-rgb-hex-hsl.css +262 -0
- package/src/tool/colorConverter/component.astro +0 -264
- package/src/tool/colorConverter/entry.ts +29 -0
- package/src/tool/colorConverter/index.ts +2 -31
- package/src/tool/conversorExcelCsvHtml/component.astro +0 -360
- package/src/tool/conversorExcelCsvHtml/entry.ts +29 -0
- package/src/tool/conversorExcelCsvHtml/excel-csv-html-table-converter.css +358 -0
- package/src/tool/conversorExcelCsvHtml/index.ts +2 -31
- package/src/tool/cronGenerator/component.astro +0 -317
- package/src/tool/cronGenerator/cron.css +315 -0
- package/src/tool/cronGenerator/entry.ts +30 -0
- package/src/tool/cronGenerator/index.ts +2 -32
- package/src/tool/cssSpecificityCalculator/component.astro +0 -205
- package/src/tool/cssSpecificityCalculator/css-specificity-calculator.css +203 -0
- package/src/tool/cssSpecificityCalculator/entry.ts +30 -0
- package/src/tool/cssSpecificityCalculator/index.ts +2 -32
- package/src/tool/cssToInlineConverter/component.astro +0 -150
- package/src/tool/cssToInlineConverter/css-to-inline-converter.css +148 -0
- package/src/tool/cssToInlineConverter/entry.ts +30 -0
- package/src/tool/cssToInlineConverter/index.ts +2 -32
- package/src/tool/duplicateCssRemover/component.astro +0 -197
- package/src/tool/duplicateCssRemover/duplicate-css-remover.css +195 -0
- package/src/tool/duplicateCssRemover/entry.ts +30 -0
- package/src/tool/duplicateCssRemover/index.ts +2 -32
- package/src/tool/generadorSecurityTxt/component.astro +0 -231
- package/src/tool/generadorSecurityTxt/entry.ts +29 -0
- package/src/tool/generadorSecurityTxt/index.ts +2 -31
- package/src/tool/generadorSecurityTxt/security-txt-generator-rfc-9116.css +229 -0
- package/src/tool/hashGenerator/component.astro +0 -229
- package/src/tool/hashGenerator/entry.ts +29 -0
- package/src/tool/hashGenerator/hash-generator.css +227 -0
- package/src/tool/hashGenerator/index.ts +2 -31
- package/src/tool/inspectorCertificadosSsl/component.astro +0 -261
- package/src/tool/inspectorCertificadosSsl/entry.ts +45 -0
- package/src/tool/inspectorCertificadosSsl/index.ts +2 -47
- package/src/tool/inspectorCertificadosSsl/ssl-tls-certificate-inspector.css +259 -0
- package/src/tool/jsonFormatter/component.astro +0 -346
- package/src/tool/jsonFormatter/entry.ts +30 -0
- package/src/tool/jsonFormatter/index.ts +2 -32
- package/src/tool/jsonFormatter/json-formatter.css +344 -0
- package/src/tool/keycode/component.astro +0 -298
- package/src/tool/keycode/entry.ts +30 -0
- package/src/tool/keycode/index.ts +2 -32
- package/src/tool/keycode/keycode.css +296 -0
- package/src/tool/llmCostCalculator/component.astro +0 -253
- package/src/tool/llmCostCalculator/entry.ts +46 -0
- package/src/tool/llmCostCalculator/index.ts +2 -48
- package/src/tool/llmCostCalculator/llm-cost-calculator.css +251 -0
- package/src/tool/mobileMockupGenerator/component.astro +0 -906
- package/src/tool/mobileMockupGenerator/entry.ts +45 -0
- package/src/tool/mobileMockupGenerator/index.ts +2 -47
- package/src/tool/mobileMockupGenerator/mobile-mockup-generator.css +904 -0
- package/src/tool/musicalTypography/component.astro +0 -291
- package/src/tool/musicalTypography/entry.ts +29 -0
- package/src/tool/musicalTypography/index.ts +2 -31
- package/src/tool/musicalTypography/musical-typography.css +289 -0
- package/src/tool/placeholderGenerator/component.astro +0 -255
- package/src/tool/placeholderGenerator/entry.ts +46 -0
- package/src/tool/placeholderGenerator/index.ts +2 -48
- package/src/tool/placeholderGenerator/placeholder-image-generator.css +253 -0
- package/src/tool/promptLibrary/component.astro +0 -689
- package/src/tool/promptLibrary/entry.ts +45 -0
- package/src/tool/promptLibrary/index.ts +2 -47
- package/src/tool/promptLibrary/prompt-library.css +687 -0
- package/src/tool/readabilityCalculator/component.astro +0 -322
- package/src/tool/readabilityCalculator/entry.ts +45 -0
- package/src/tool/readabilityCalculator/index.ts +2 -47
- package/src/tool/readabilityCalculator/visual-readability-calculator-wcag-apca.css +320 -0
- package/src/tool/svgSanitizer/component.astro +0 -289
- package/src/tool/svgSanitizer/entry.ts +45 -0
- package/src/tool/svgSanitizer/index.ts +2 -47
- package/src/tool/svgSanitizer/svg-sanitizer.css +287 -0
- package/src/tool/svgToCss/component.astro +0 -196
- package/src/tool/svgToCss/entry.ts +30 -0
- package/src/tool/svgToCss/index.ts +2 -32
- package/src/tool/svgToCss/svg-to-css-converter.css +194 -0
- package/src/tool/urlCleaner/component.astro +0 -282
- package/src/tool/urlCleaner/entry.ts +45 -0
- package/src/tool/urlCleaner/index.ts +2 -47
- package/src/tool/urlCleaner/url-tracking-cleaner.css +280 -0
- package/src/tool/urlEncoderDecoder/component.astro +0 -168
- package/src/tool/urlEncoderDecoder/entry.ts +30 -0
- package/src/tool/urlEncoderDecoder/index.ts +2 -32
- package/src/tool/urlEncoderDecoder/url-encoder-decoder.css +166 -0
- package/src/tool/utmGenerator/component.astro +0 -156
- package/src/tool/utmGenerator/entry.ts +29 -0
- package/src/tool/utmGenerator/index.ts +2 -31
- package/src/tool/utmGenerator/utm-generator.css +154 -0
- package/src/tools.ts +1 -1
|
@@ -440,692 +440,3 @@ const t = (ui ?? {}) as PromptLibraryUI;
|
|
|
440
440
|
document.addEventListener('DOMContentLoaded', () => { renderPrompts(); handleUrlParams(); });
|
|
441
441
|
</script>
|
|
442
442
|
|
|
443
|
-
<style>
|
|
444
|
-
.pl-root {
|
|
445
|
-
width: 100%;
|
|
446
|
-
display: flex;
|
|
447
|
-
flex-direction: column;
|
|
448
|
-
gap: 2rem;
|
|
449
|
-
padding-bottom: 4rem;
|
|
450
|
-
}
|
|
451
|
-
|
|
452
|
-
.pl-topbar {
|
|
453
|
-
display: flex;
|
|
454
|
-
flex-direction: column;
|
|
455
|
-
gap: 1.5rem;
|
|
456
|
-
justify-content: space-between;
|
|
457
|
-
align-items: center;
|
|
458
|
-
background: rgba(255, 255, 255, 0.03);
|
|
459
|
-
backdrop-filter: blur(12px);
|
|
460
|
-
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
461
|
-
border-radius: 1.5rem;
|
|
462
|
-
padding: 1rem 1.5rem;
|
|
463
|
-
box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.05);
|
|
464
|
-
}
|
|
465
|
-
|
|
466
|
-
:global(.theme-dark) .pl-topbar {
|
|
467
|
-
background: rgba(15, 23, 42, 0.4);
|
|
468
|
-
border-color: rgba(255, 255, 255, 0.08);
|
|
469
|
-
}
|
|
470
|
-
|
|
471
|
-
.pl-search-wrap {
|
|
472
|
-
position: relative;
|
|
473
|
-
width: 100%;
|
|
474
|
-
max-width: 480px;
|
|
475
|
-
}
|
|
476
|
-
|
|
477
|
-
.pl-search-icon {
|
|
478
|
-
position: absolute;
|
|
479
|
-
left: 1.25rem;
|
|
480
|
-
top: 50%;
|
|
481
|
-
transform: translateY(-50%);
|
|
482
|
-
color: rgb(148, 163, 184);
|
|
483
|
-
pointer-events: none;
|
|
484
|
-
transition: color 0.3s;
|
|
485
|
-
}
|
|
486
|
-
|
|
487
|
-
.pl-search-input {
|
|
488
|
-
width: 100%;
|
|
489
|
-
padding: 1rem 1rem 1rem 3.5rem;
|
|
490
|
-
border-radius: 1rem;
|
|
491
|
-
border: 1px solid rgba(0, 0, 0, 0.1);
|
|
492
|
-
background: rgba(255, 255, 255, 0.8);
|
|
493
|
-
font-size: 1rem;
|
|
494
|
-
color: rgb(30, 41, 59);
|
|
495
|
-
transition: all 0.3s;
|
|
496
|
-
box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
|
|
497
|
-
box-sizing: border-box;
|
|
498
|
-
}
|
|
499
|
-
|
|
500
|
-
.pl-search-input:focus {
|
|
501
|
-
outline: none;
|
|
502
|
-
border-color: rgb(139, 92, 246);
|
|
503
|
-
background: rgb(255, 255, 255);
|
|
504
|
-
box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15);
|
|
505
|
-
}
|
|
506
|
-
|
|
507
|
-
:global(.theme-dark) .pl-search-input {
|
|
508
|
-
background: rgba(15, 23, 42, 0.6);
|
|
509
|
-
border-color: rgba(255, 255, 255, 0.1);
|
|
510
|
-
color: rgb(248, 250, 252);
|
|
511
|
-
}
|
|
512
|
-
|
|
513
|
-
:global(.theme-dark) .pl-search-input:focus {
|
|
514
|
-
background: rgba(30, 41, 59, 0.8);
|
|
515
|
-
}
|
|
516
|
-
|
|
517
|
-
.pl-btn {
|
|
518
|
-
display: inline-flex;
|
|
519
|
-
align-items: center;
|
|
520
|
-
gap: 0.5rem;
|
|
521
|
-
padding: 0.875rem 1.5rem;
|
|
522
|
-
border-radius: 1rem;
|
|
523
|
-
font-weight: 600;
|
|
524
|
-
font-size: 0.95rem;
|
|
525
|
-
cursor: pointer;
|
|
526
|
-
transition: all 0.25s;
|
|
527
|
-
border: none;
|
|
528
|
-
white-space: nowrap;
|
|
529
|
-
}
|
|
530
|
-
|
|
531
|
-
.pl-btn-primary {
|
|
532
|
-
background: linear-gradient(135deg, rgb(139, 92, 246), rgb(192, 38, 211));
|
|
533
|
-
color: rgb(255, 255, 255);
|
|
534
|
-
box-shadow: 0 4px 15px -3px rgba(192, 38, 211, 0.4);
|
|
535
|
-
}
|
|
536
|
-
|
|
537
|
-
.pl-btn-primary:hover {
|
|
538
|
-
transform: translateY(-3px) scale(1.02);
|
|
539
|
-
box-shadow: 0 8px 25px -5px rgba(192, 38, 211, 0.5);
|
|
540
|
-
}
|
|
541
|
-
|
|
542
|
-
.pl-btn-primary:active {
|
|
543
|
-
transform: translateY(0) scale(0.98);
|
|
544
|
-
}
|
|
545
|
-
|
|
546
|
-
.pl-btn-secondary {
|
|
547
|
-
background: rgba(139, 92, 246, 0.1);
|
|
548
|
-
color: rgb(139, 92, 246);
|
|
549
|
-
border: 1px solid rgba(139, 92, 246, 0.2);
|
|
550
|
-
}
|
|
551
|
-
|
|
552
|
-
.pl-btn-secondary:hover {
|
|
553
|
-
background: rgba(139, 92, 246, 0.2);
|
|
554
|
-
}
|
|
555
|
-
|
|
556
|
-
.pl-btn-ghost {
|
|
557
|
-
background: transparent;
|
|
558
|
-
color: rgb(100, 116, 139);
|
|
559
|
-
border: none;
|
|
560
|
-
}
|
|
561
|
-
|
|
562
|
-
.pl-btn-ghost:hover {
|
|
563
|
-
background: rgba(0, 0, 0, 0.05);
|
|
564
|
-
color: rgb(30, 41, 59);
|
|
565
|
-
}
|
|
566
|
-
|
|
567
|
-
:global(.theme-dark) .pl-btn-ghost {
|
|
568
|
-
color: rgb(148, 163, 184);
|
|
569
|
-
}
|
|
570
|
-
|
|
571
|
-
:global(.theme-dark) .pl-btn-ghost:hover {
|
|
572
|
-
background: rgba(255, 255, 255, 0.05);
|
|
573
|
-
color: rgb(248, 250, 252);
|
|
574
|
-
}
|
|
575
|
-
|
|
576
|
-
.pl-btn-danger {
|
|
577
|
-
background: rgb(239, 68, 68);
|
|
578
|
-
color: rgb(255, 255, 255);
|
|
579
|
-
border: none;
|
|
580
|
-
box-shadow: 0 4px 15px -3px rgba(239, 68, 68, 0.4);
|
|
581
|
-
}
|
|
582
|
-
|
|
583
|
-
.pl-btn-danger:hover {
|
|
584
|
-
background: rgb(220, 38, 38);
|
|
585
|
-
}
|
|
586
|
-
|
|
587
|
-
.pl-btn-icon {
|
|
588
|
-
display: inline-flex;
|
|
589
|
-
align-items: center;
|
|
590
|
-
justify-content: center;
|
|
591
|
-
padding: 0.5rem;
|
|
592
|
-
border-radius: 0.5rem;
|
|
593
|
-
background: transparent;
|
|
594
|
-
border: none;
|
|
595
|
-
color: rgb(100, 116, 139);
|
|
596
|
-
cursor: pointer;
|
|
597
|
-
transition: all 0.2s;
|
|
598
|
-
}
|
|
599
|
-
|
|
600
|
-
.pl-btn-icon:hover {
|
|
601
|
-
background: rgba(0, 0, 0, 0.05);
|
|
602
|
-
color: rgb(30, 41, 59);
|
|
603
|
-
}
|
|
604
|
-
|
|
605
|
-
.pl-btn-icon.pl-danger:hover {
|
|
606
|
-
color: rgb(239, 68, 68);
|
|
607
|
-
background: rgba(239, 68, 68, 0.1);
|
|
608
|
-
}
|
|
609
|
-
|
|
610
|
-
:global(.theme-dark) .pl-btn-icon {
|
|
611
|
-
color: rgb(148, 163, 184);
|
|
612
|
-
}
|
|
613
|
-
|
|
614
|
-
:global(.theme-dark) .pl-btn-icon:hover {
|
|
615
|
-
background: rgba(255, 255, 255, 0.1);
|
|
616
|
-
color: rgb(248, 250, 252);
|
|
617
|
-
}
|
|
618
|
-
|
|
619
|
-
.pl-empty-state {
|
|
620
|
-
display: flex;
|
|
621
|
-
flex-direction: column;
|
|
622
|
-
align-items: center;
|
|
623
|
-
justify-content: center;
|
|
624
|
-
text-align: center;
|
|
625
|
-
padding: 5rem 2rem;
|
|
626
|
-
background: rgba(255, 255, 255, 0.02);
|
|
627
|
-
border: 2px dashed rgba(0, 0, 0, 0.1);
|
|
628
|
-
border-radius: 1.5rem;
|
|
629
|
-
margin-top: 2rem;
|
|
630
|
-
}
|
|
631
|
-
|
|
632
|
-
:global(.theme-dark) .pl-empty-state {
|
|
633
|
-
border-color: rgba(255, 255, 255, 0.1);
|
|
634
|
-
}
|
|
635
|
-
|
|
636
|
-
.pl-empty-icon {
|
|
637
|
-
margin-bottom: 1.5rem;
|
|
638
|
-
color: rgb(139, 92, 246);
|
|
639
|
-
filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.4));
|
|
640
|
-
}
|
|
641
|
-
|
|
642
|
-
.pl-empty-title {
|
|
643
|
-
font-size: 1.5rem;
|
|
644
|
-
font-weight: 700;
|
|
645
|
-
color: rgb(30, 41, 59);
|
|
646
|
-
margin-bottom: 0.5rem;
|
|
647
|
-
}
|
|
648
|
-
|
|
649
|
-
.pl-empty-desc {
|
|
650
|
-
font-size: 1.125rem;
|
|
651
|
-
color: rgb(100, 116, 139);
|
|
652
|
-
max-width: 400px;
|
|
653
|
-
margin-bottom: 2rem;
|
|
654
|
-
line-height: 1.6;
|
|
655
|
-
}
|
|
656
|
-
|
|
657
|
-
:global(.theme-dark) .pl-empty-title {
|
|
658
|
-
color: rgb(248, 250, 252);
|
|
659
|
-
}
|
|
660
|
-
|
|
661
|
-
:global(.theme-dark) .pl-empty-desc {
|
|
662
|
-
color: rgb(148, 163, 184);
|
|
663
|
-
}
|
|
664
|
-
|
|
665
|
-
.pl-no-results {
|
|
666
|
-
text-align: center;
|
|
667
|
-
padding: 3rem;
|
|
668
|
-
color: rgb(100, 116, 139);
|
|
669
|
-
font-size: 1.125rem;
|
|
670
|
-
background: rgba(255, 255, 255, 0.02);
|
|
671
|
-
border-radius: 1rem;
|
|
672
|
-
grid-column: 1 / -1;
|
|
673
|
-
}
|
|
674
|
-
|
|
675
|
-
.pl-grid {
|
|
676
|
-
display: grid;
|
|
677
|
-
grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
|
|
678
|
-
gap: 1.5rem;
|
|
679
|
-
}
|
|
680
|
-
|
|
681
|
-
.pl-card {
|
|
682
|
-
background: rgba(255, 255, 255, 0.6);
|
|
683
|
-
backdrop-filter: blur(20px);
|
|
684
|
-
border: 1px solid rgba(255, 255, 255, 0.5);
|
|
685
|
-
border-radius: 1.25rem;
|
|
686
|
-
padding: 1.5rem;
|
|
687
|
-
display: flex;
|
|
688
|
-
flex-direction: column;
|
|
689
|
-
gap: 1.25rem;
|
|
690
|
-
transition: all 0.3s;
|
|
691
|
-
box-shadow: 0 4px 10px -2px rgba(0, 0, 0, 0.03);
|
|
692
|
-
position: relative;
|
|
693
|
-
overflow: hidden;
|
|
694
|
-
}
|
|
695
|
-
|
|
696
|
-
.pl-card::before {
|
|
697
|
-
content: '';
|
|
698
|
-
position: absolute;
|
|
699
|
-
top: 0;
|
|
700
|
-
left: 0;
|
|
701
|
-
width: 100%;
|
|
702
|
-
height: 4px;
|
|
703
|
-
background: linear-gradient(90deg, rgb(139, 92, 246), rgb(192, 38, 211));
|
|
704
|
-
opacity: 0;
|
|
705
|
-
transition: opacity 0.3s;
|
|
706
|
-
}
|
|
707
|
-
|
|
708
|
-
.pl-card:hover {
|
|
709
|
-
transform: translateY(-6px);
|
|
710
|
-
box-shadow: 0 15px 30px -5px rgba(139, 92, 246, 0.15);
|
|
711
|
-
border-color: rgba(139, 92, 246, 0.3);
|
|
712
|
-
}
|
|
713
|
-
|
|
714
|
-
.pl-card:hover::before {
|
|
715
|
-
opacity: 1;
|
|
716
|
-
}
|
|
717
|
-
|
|
718
|
-
:global(.theme-dark) .pl-card {
|
|
719
|
-
background: rgba(30, 41, 59, 0.5);
|
|
720
|
-
border-color: rgba(255, 255, 255, 0.08);
|
|
721
|
-
}
|
|
722
|
-
|
|
723
|
-
.pl-card-top {
|
|
724
|
-
display: flex;
|
|
725
|
-
flex-direction: column;
|
|
726
|
-
gap: 0.75rem;
|
|
727
|
-
}
|
|
728
|
-
|
|
729
|
-
.pl-card-title {
|
|
730
|
-
margin: 0;
|
|
731
|
-
font-size: 1.25rem;
|
|
732
|
-
font-weight: 700;
|
|
733
|
-
color: rgb(15, 23, 42);
|
|
734
|
-
line-height: 1.3;
|
|
735
|
-
}
|
|
736
|
-
|
|
737
|
-
:global(.theme-dark) .pl-card-title {
|
|
738
|
-
color: rgb(248, 250, 252);
|
|
739
|
-
}
|
|
740
|
-
|
|
741
|
-
.pl-card-actions {
|
|
742
|
-
display: flex;
|
|
743
|
-
gap: 0.25rem;
|
|
744
|
-
justify-content: flex-end;
|
|
745
|
-
}
|
|
746
|
-
|
|
747
|
-
.pl-card-body {
|
|
748
|
-
flex-grow: 1;
|
|
749
|
-
background: rgba(0, 0, 0, 0.02);
|
|
750
|
-
border-radius: 0.75rem;
|
|
751
|
-
padding: 1rem;
|
|
752
|
-
border: 1px solid rgba(0, 0, 0, 0.03);
|
|
753
|
-
}
|
|
754
|
-
|
|
755
|
-
:global(.theme-dark) .pl-card-body {
|
|
756
|
-
background: rgba(15, 23, 42, 0.4);
|
|
757
|
-
border-color: rgba(255, 255, 255, 0.05);
|
|
758
|
-
}
|
|
759
|
-
|
|
760
|
-
.pl-card-text {
|
|
761
|
-
margin: 0;
|
|
762
|
-
font-size: 0.95rem;
|
|
763
|
-
line-height: 1.6;
|
|
764
|
-
color: rgb(71, 85, 105);
|
|
765
|
-
white-space: pre-wrap;
|
|
766
|
-
overflow: hidden;
|
|
767
|
-
display: -webkit-box;
|
|
768
|
-
-webkit-line-clamp: 5;
|
|
769
|
-
line-clamp: 5;
|
|
770
|
-
-webkit-box-orient: vertical;
|
|
771
|
-
}
|
|
772
|
-
|
|
773
|
-
:global(.theme-dark) .pl-card-text {
|
|
774
|
-
color: rgb(203, 213, 225);
|
|
775
|
-
}
|
|
776
|
-
|
|
777
|
-
.pl-tags-container {
|
|
778
|
-
display: flex;
|
|
779
|
-
flex-wrap: wrap;
|
|
780
|
-
gap: 0.5rem;
|
|
781
|
-
}
|
|
782
|
-
|
|
783
|
-
.pl-card-tag {
|
|
784
|
-
background: rgba(139, 92, 246, 0.1);
|
|
785
|
-
color: rgb(124, 58, 237);
|
|
786
|
-
padding: 0.35rem 0.75rem;
|
|
787
|
-
border-radius: 9999px;
|
|
788
|
-
font-size: 0.75rem;
|
|
789
|
-
font-weight: 600;
|
|
790
|
-
letter-spacing: 0.025em;
|
|
791
|
-
text-transform: uppercase;
|
|
792
|
-
}
|
|
793
|
-
|
|
794
|
-
:global(.theme-dark) .pl-card-tag {
|
|
795
|
-
background: rgba(139, 92, 246, 0.15);
|
|
796
|
-
color: rgb(167, 139, 250);
|
|
797
|
-
}
|
|
798
|
-
|
|
799
|
-
.pl-star-btn {
|
|
800
|
-
color: rgb(203, 213, 225);
|
|
801
|
-
}
|
|
802
|
-
|
|
803
|
-
.pl-star-btn:hover {
|
|
804
|
-
color: rgb(245, 158, 11);
|
|
805
|
-
background: rgba(245, 158, 11, 0.1);
|
|
806
|
-
}
|
|
807
|
-
|
|
808
|
-
.pl-star-icon.pl-starred {
|
|
809
|
-
color: rgb(245, 158, 11);
|
|
810
|
-
fill: rgb(245, 158, 11);
|
|
811
|
-
}
|
|
812
|
-
|
|
813
|
-
.pl-var-highlight {
|
|
814
|
-
background: rgba(139, 92, 246, 0.2);
|
|
815
|
-
color: rgb(124, 58, 237);
|
|
816
|
-
padding: 0 0.25rem;
|
|
817
|
-
border-radius: 0.25rem;
|
|
818
|
-
font-weight: 600;
|
|
819
|
-
}
|
|
820
|
-
|
|
821
|
-
.pl-var-highlight.pl-var-filled {
|
|
822
|
-
background: rgba(16, 185, 129, 0.2);
|
|
823
|
-
color: rgb(5, 150, 105);
|
|
824
|
-
}
|
|
825
|
-
|
|
826
|
-
:global(.theme-dark) .pl-var-highlight {
|
|
827
|
-
background: rgba(139, 92, 246, 0.3);
|
|
828
|
-
color: rgb(167, 139, 250);
|
|
829
|
-
}
|
|
830
|
-
|
|
831
|
-
:global(.theme-dark) .pl-var-highlight.pl-var-filled {
|
|
832
|
-
background: rgba(16, 185, 129, 0.3);
|
|
833
|
-
color: rgb(52, 211, 153);
|
|
834
|
-
}
|
|
835
|
-
|
|
836
|
-
.pl-card-vars {
|
|
837
|
-
margin-top: 0.5rem;
|
|
838
|
-
display: flex;
|
|
839
|
-
flex-direction: column;
|
|
840
|
-
gap: 0.5rem;
|
|
841
|
-
background: rgba(139, 92, 246, 0.05);
|
|
842
|
-
padding: 1rem;
|
|
843
|
-
border-radius: 0.75rem;
|
|
844
|
-
border: 1px dashed rgba(139, 92, 246, 0.3);
|
|
845
|
-
}
|
|
846
|
-
|
|
847
|
-
.pl-card-vars-title {
|
|
848
|
-
font-size: 0.85rem;
|
|
849
|
-
font-weight: 600;
|
|
850
|
-
color: rgb(139, 92, 246);
|
|
851
|
-
text-transform: uppercase;
|
|
852
|
-
letter-spacing: 0.05em;
|
|
853
|
-
margin: 0;
|
|
854
|
-
}
|
|
855
|
-
|
|
856
|
-
.pl-var-input {
|
|
857
|
-
width: 100%;
|
|
858
|
-
padding: 0.5rem 0.75rem;
|
|
859
|
-
border-radius: 0.5rem;
|
|
860
|
-
border: 1px solid rgba(0, 0, 0, 0.1);
|
|
861
|
-
background: rgba(255, 255, 255, 0.8);
|
|
862
|
-
font-size: 0.9rem;
|
|
863
|
-
color: rgb(30, 41, 59);
|
|
864
|
-
box-sizing: border-box;
|
|
865
|
-
}
|
|
866
|
-
|
|
867
|
-
:global(.theme-dark) .pl-var-input {
|
|
868
|
-
background: rgba(15, 23, 42, 0.5);
|
|
869
|
-
border-color: rgba(255, 255, 255, 0.1);
|
|
870
|
-
color: rgb(248, 250, 252);
|
|
871
|
-
}
|
|
872
|
-
|
|
873
|
-
.pl-modal {
|
|
874
|
-
padding: 0;
|
|
875
|
-
border: none;
|
|
876
|
-
background: transparent;
|
|
877
|
-
max-width: 600px;
|
|
878
|
-
width: 90%;
|
|
879
|
-
border-radius: 1.5rem;
|
|
880
|
-
margin: auto;
|
|
881
|
-
overflow: visible;
|
|
882
|
-
}
|
|
883
|
-
|
|
884
|
-
.pl-modal::backdrop {
|
|
885
|
-
background: rgba(15, 23, 42, 0.6);
|
|
886
|
-
backdrop-filter: blur(8px);
|
|
887
|
-
opacity: 0;
|
|
888
|
-
transition: opacity 0.3s;
|
|
889
|
-
}
|
|
890
|
-
|
|
891
|
-
.pl-modal[open]::backdrop {
|
|
892
|
-
opacity: 1;
|
|
893
|
-
}
|
|
894
|
-
|
|
895
|
-
.pl-modal-container {
|
|
896
|
-
background: rgb(255, 255, 255);
|
|
897
|
-
border-radius: 1.5rem;
|
|
898
|
-
padding: 2rem;
|
|
899
|
-
box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
|
|
900
|
-
transform: scale(0.95) translateY(20px);
|
|
901
|
-
opacity: 0;
|
|
902
|
-
transition: all 0.3s;
|
|
903
|
-
border: 1px solid rgba(0, 0, 0, 0.1);
|
|
904
|
-
}
|
|
905
|
-
|
|
906
|
-
:global(.theme-dark) .pl-modal-container {
|
|
907
|
-
background: rgb(30, 41, 59);
|
|
908
|
-
border-color: rgba(255, 255, 255, 0.1);
|
|
909
|
-
}
|
|
910
|
-
|
|
911
|
-
.pl-modal.pl-modal-open .pl-modal-container {
|
|
912
|
-
transform: scale(1) translateY(0);
|
|
913
|
-
opacity: 1;
|
|
914
|
-
}
|
|
915
|
-
|
|
916
|
-
.pl-modal-header {
|
|
917
|
-
display: flex;
|
|
918
|
-
justify-content: space-between;
|
|
919
|
-
align-items: center;
|
|
920
|
-
margin-bottom: 2rem;
|
|
921
|
-
}
|
|
922
|
-
|
|
923
|
-
.pl-modal-title {
|
|
924
|
-
margin: 0;
|
|
925
|
-
font-size: 1.5rem;
|
|
926
|
-
font-weight: 800;
|
|
927
|
-
background: linear-gradient(135deg, rgb(139, 92, 246), rgb(192, 38, 211));
|
|
928
|
-
-webkit-background-clip: text;
|
|
929
|
-
background-clip: text;
|
|
930
|
-
-webkit-text-fill-color: transparent;
|
|
931
|
-
}
|
|
932
|
-
|
|
933
|
-
.pl-form {
|
|
934
|
-
display: flex;
|
|
935
|
-
flex-direction: column;
|
|
936
|
-
gap: 1.5rem;
|
|
937
|
-
}
|
|
938
|
-
|
|
939
|
-
.pl-form-group {
|
|
940
|
-
display: flex;
|
|
941
|
-
flex-direction: column;
|
|
942
|
-
gap: 0.5rem;
|
|
943
|
-
}
|
|
944
|
-
|
|
945
|
-
.pl-label {
|
|
946
|
-
font-weight: 600;
|
|
947
|
-
font-size: 0.95rem;
|
|
948
|
-
color: rgb(51, 65, 85);
|
|
949
|
-
}
|
|
950
|
-
|
|
951
|
-
:global(.theme-dark) .pl-label {
|
|
952
|
-
color: rgb(226, 232, 240);
|
|
953
|
-
}
|
|
954
|
-
|
|
955
|
-
.pl-input {
|
|
956
|
-
width: 100%;
|
|
957
|
-
padding: 1rem;
|
|
958
|
-
border-radius: 1rem;
|
|
959
|
-
border: 1px solid rgba(0, 0, 0, 0.15);
|
|
960
|
-
background: rgb(248, 250, 252);
|
|
961
|
-
font-size: 1rem;
|
|
962
|
-
color: rgb(30, 41, 59);
|
|
963
|
-
transition: all 0.2s;
|
|
964
|
-
box-sizing: border-box;
|
|
965
|
-
}
|
|
966
|
-
|
|
967
|
-
.pl-textarea {
|
|
968
|
-
width: 100%;
|
|
969
|
-
padding: 1rem;
|
|
970
|
-
border-radius: 1rem;
|
|
971
|
-
border: 1px solid rgba(0, 0, 0, 0.15);
|
|
972
|
-
background: rgb(248, 250, 252);
|
|
973
|
-
font-size: 1rem;
|
|
974
|
-
color: rgb(30, 41, 59);
|
|
975
|
-
transition: all 0.2s;
|
|
976
|
-
box-sizing: border-box;
|
|
977
|
-
min-height: 150px;
|
|
978
|
-
resize: vertical;
|
|
979
|
-
line-height: 1.6;
|
|
980
|
-
}
|
|
981
|
-
|
|
982
|
-
:global(.theme-dark) .pl-input {
|
|
983
|
-
background: rgba(15, 23, 42, 0.6);
|
|
984
|
-
border-color: rgba(255, 255, 255, 0.1);
|
|
985
|
-
color: rgb(248, 250, 252);
|
|
986
|
-
}
|
|
987
|
-
|
|
988
|
-
:global(.theme-dark) .pl-textarea {
|
|
989
|
-
background: rgba(15, 23, 42, 0.6);
|
|
990
|
-
border-color: rgba(255, 255, 255, 0.1);
|
|
991
|
-
color: rgb(248, 250, 252);
|
|
992
|
-
}
|
|
993
|
-
|
|
994
|
-
.pl-input:focus {
|
|
995
|
-
outline: none;
|
|
996
|
-
border-color: rgb(139, 92, 246);
|
|
997
|
-
background: rgb(255, 255, 255);
|
|
998
|
-
box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15);
|
|
999
|
-
}
|
|
1000
|
-
|
|
1001
|
-
.pl-textarea:focus {
|
|
1002
|
-
outline: none;
|
|
1003
|
-
border-color: rgb(139, 92, 246);
|
|
1004
|
-
background: rgb(255, 255, 255);
|
|
1005
|
-
box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15);
|
|
1006
|
-
}
|
|
1007
|
-
|
|
1008
|
-
:global(.theme-dark) .pl-input:focus {
|
|
1009
|
-
background: rgba(15, 23, 42, 0.9);
|
|
1010
|
-
}
|
|
1011
|
-
|
|
1012
|
-
:global(.theme-dark) .pl-textarea:focus {
|
|
1013
|
-
background: rgba(15, 23, 42, 0.9);
|
|
1014
|
-
}
|
|
1015
|
-
|
|
1016
|
-
.pl-hint {
|
|
1017
|
-
font-size: 0.85rem;
|
|
1018
|
-
color: rgb(100, 116, 139);
|
|
1019
|
-
margin-top: 0.25rem;
|
|
1020
|
-
}
|
|
1021
|
-
|
|
1022
|
-
:global(.theme-dark) .pl-hint {
|
|
1023
|
-
color: rgb(148, 163, 184);
|
|
1024
|
-
}
|
|
1025
|
-
|
|
1026
|
-
.pl-tags-input-wrapper {
|
|
1027
|
-
display: flex;
|
|
1028
|
-
flex-wrap: wrap;
|
|
1029
|
-
gap: 0.5rem;
|
|
1030
|
-
padding: 0.5rem 1rem;
|
|
1031
|
-
border-radius: 1rem;
|
|
1032
|
-
border: 1px solid rgba(0, 0, 0, 0.15);
|
|
1033
|
-
background: rgb(248, 250, 252);
|
|
1034
|
-
min-height: 3.5rem;
|
|
1035
|
-
transition: all 0.2s;
|
|
1036
|
-
align-items: center;
|
|
1037
|
-
cursor: text;
|
|
1038
|
-
}
|
|
1039
|
-
|
|
1040
|
-
:global(.theme-dark) .pl-tags-input-wrapper {
|
|
1041
|
-
background: rgba(15, 23, 42, 0.6);
|
|
1042
|
-
border-color: rgba(255, 255, 255, 0.1);
|
|
1043
|
-
}
|
|
1044
|
-
|
|
1045
|
-
.pl-tags-input-wrapper:focus-within {
|
|
1046
|
-
border-color: rgb(139, 92, 246);
|
|
1047
|
-
background: rgb(255, 255, 255);
|
|
1048
|
-
box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15);
|
|
1049
|
-
}
|
|
1050
|
-
|
|
1051
|
-
:global(.theme-dark) .pl-tags-input-wrapper:focus-within {
|
|
1052
|
-
background: rgba(15, 23, 42, 0.9);
|
|
1053
|
-
}
|
|
1054
|
-
|
|
1055
|
-
.pl-tags-list {
|
|
1056
|
-
display: flex;
|
|
1057
|
-
flex-wrap: wrap;
|
|
1058
|
-
gap: 0.5rem;
|
|
1059
|
-
}
|
|
1060
|
-
|
|
1061
|
-
.pl-tags-input-field {
|
|
1062
|
-
flex-grow: 1;
|
|
1063
|
-
min-width: 150px;
|
|
1064
|
-
border: none;
|
|
1065
|
-
background: transparent;
|
|
1066
|
-
font-size: 1rem;
|
|
1067
|
-
color: rgb(30, 41, 59);
|
|
1068
|
-
padding: 0.25rem 0;
|
|
1069
|
-
outline: none;
|
|
1070
|
-
}
|
|
1071
|
-
|
|
1072
|
-
:global(.theme-dark) .pl-tags-input-field {
|
|
1073
|
-
color: rgb(248, 250, 252);
|
|
1074
|
-
}
|
|
1075
|
-
|
|
1076
|
-
.pl-modal-footer {
|
|
1077
|
-
display: flex;
|
|
1078
|
-
justify-content: flex-end;
|
|
1079
|
-
gap: 1rem;
|
|
1080
|
-
margin-top: 1rem;
|
|
1081
|
-
padding-top: 1.5rem;
|
|
1082
|
-
border-top: 1px solid rgba(0, 0, 0, 0.05);
|
|
1083
|
-
}
|
|
1084
|
-
|
|
1085
|
-
:global(.theme-dark) .pl-modal-footer {
|
|
1086
|
-
border-top-color: rgba(255, 255, 255, 0.05);
|
|
1087
|
-
}
|
|
1088
|
-
|
|
1089
|
-
.pl-confirm-dialog {
|
|
1090
|
-
max-width: 400px;
|
|
1091
|
-
}
|
|
1092
|
-
|
|
1093
|
-
.pl-confirm-container {
|
|
1094
|
-
text-align: center;
|
|
1095
|
-
}
|
|
1096
|
-
|
|
1097
|
-
.pl-confirm-icon {
|
|
1098
|
-
margin-bottom: 1rem;
|
|
1099
|
-
color: rgb(239, 68, 68);
|
|
1100
|
-
}
|
|
1101
|
-
|
|
1102
|
-
.pl-confirm-title {
|
|
1103
|
-
font-size: 1.25rem;
|
|
1104
|
-
font-weight: 700;
|
|
1105
|
-
color: rgb(15, 23, 42);
|
|
1106
|
-
margin-bottom: 0.5rem;
|
|
1107
|
-
}
|
|
1108
|
-
|
|
1109
|
-
:global(.theme-dark) .pl-confirm-title {
|
|
1110
|
-
color: rgb(248, 250, 252);
|
|
1111
|
-
}
|
|
1112
|
-
|
|
1113
|
-
.pl-confirm-desc {
|
|
1114
|
-
font-size: 1rem;
|
|
1115
|
-
color: rgb(100, 116, 139);
|
|
1116
|
-
margin-bottom: 1.5rem;
|
|
1117
|
-
}
|
|
1118
|
-
|
|
1119
|
-
.pl-confirm-actions {
|
|
1120
|
-
display: flex;
|
|
1121
|
-
justify-content: center;
|
|
1122
|
-
gap: 1rem;
|
|
1123
|
-
}
|
|
1124
|
-
|
|
1125
|
-
@media (min-width: 768px) {
|
|
1126
|
-
.pl-topbar {
|
|
1127
|
-
flex-direction: row;
|
|
1128
|
-
padding: 1.25rem 2rem;
|
|
1129
|
-
}
|
|
1130
|
-
}
|
|
1131
|
-
</style>
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { DeveloperToolEntry, ToolLocaleContent } from '../../types';
|
|
2
|
+
import type { PromptLibraryUI } from './ui';
|
|
3
|
+
|
|
4
|
+
export type PromptLibraryLocaleContent = ToolLocaleContent<PromptLibraryUI>;
|
|
5
|
+
|
|
6
|
+
import { content as es } from './i18n/es';
|
|
7
|
+
import { content as en } from './i18n/en';
|
|
8
|
+
import { content as fr } from './i18n/fr';
|
|
9
|
+
import { content as de } from './i18n/de';
|
|
10
|
+
import { content as id } from './i18n/id';
|
|
11
|
+
import { content as it } from './i18n/it';
|
|
12
|
+
import { content as ja } from './i18n/ja';
|
|
13
|
+
import { content as ko } from './i18n/ko';
|
|
14
|
+
import { content as nl } from './i18n/nl';
|
|
15
|
+
import { content as pl } from './i18n/pl';
|
|
16
|
+
import { content as pt } from './i18n/pt';
|
|
17
|
+
import { content as ru } from './i18n/ru';
|
|
18
|
+
import { content as sv } from './i18n/sv';
|
|
19
|
+
import { content as tr } from './i18n/tr';
|
|
20
|
+
import { content as zh } from './i18n/zh';
|
|
21
|
+
|
|
22
|
+
export const promptLibrary: DeveloperToolEntry<PromptLibraryUI> = {
|
|
23
|
+
id: 'prompt-library',
|
|
24
|
+
icons: {
|
|
25
|
+
bg: 'mdi:robot',
|
|
26
|
+
fg: 'mdi:text-box-multiple',
|
|
27
|
+
},
|
|
28
|
+
i18n: {
|
|
29
|
+
es: async () => es,
|
|
30
|
+
en: async () => en,
|
|
31
|
+
fr: async () => fr,
|
|
32
|
+
de: async () => de,
|
|
33
|
+
id: async () => id,
|
|
34
|
+
it: async () => it,
|
|
35
|
+
ja: async () => ja,
|
|
36
|
+
ko: async () => ko,
|
|
37
|
+
nl: async () => nl,
|
|
38
|
+
pl: async () => pl,
|
|
39
|
+
pt: async () => pt,
|
|
40
|
+
ru: async () => ru,
|
|
41
|
+
sv: async () => sv,
|
|
42
|
+
tr: async () => tr,
|
|
43
|
+
zh: async () => zh,
|
|
44
|
+
},
|
|
45
|
+
};
|