@nonamelego/dsh-catppuccin 0.5.4 → 0.5.5
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/lib/client.js +12 -51
- package/lib/client.js.map +1 -1
- package/lib/index.js +1 -1
- package/package.json +1 -1
package/lib/client.js
CHANGED
|
@@ -499,15 +499,11 @@ window.__ModuleLoader__.load({
|
|
|
499
499
|
"row.shikiItalicComments": "柔和注释",
|
|
500
500
|
"row.overrides": "自定义覆盖",
|
|
501
501
|
"row.overridesHint": "按「--dsw-* 变量: 值」覆盖单个配色 token,例如 --dsw-static-blue-500: #89b4fa。键名与值都在失焦时生效,清空值即删除。",
|
|
502
|
-
"row.overridesEmpty": "
|
|
502
|
+
"row.overridesEmpty": "暂无覆盖。点击「+ 添加」新增一条 token 覆盖。",
|
|
503
503
|
"row.overridesAdd": "添加",
|
|
504
504
|
"row.overridesRemove": "删除此覆盖",
|
|
505
505
|
"row.overridesKey": "token 名称",
|
|
506
506
|
"row.overridesValue": "token 值",
|
|
507
|
-
"flavor.latte": "Latte",
|
|
508
|
-
"flavor.frappe": "Frappé",
|
|
509
|
-
"flavor.macchiato": "Macchiato",
|
|
510
|
-
"flavor.mocha": "Mocha",
|
|
511
507
|
"flavor.latte.subtitle": "浅色",
|
|
512
508
|
"flavor.frappe.subtitle": "深色",
|
|
513
509
|
"flavor.macchiato.subtitle": "深色",
|
|
@@ -517,8 +513,6 @@ window.__ModuleLoader__.load({
|
|
|
517
513
|
"glass.helpLabel": "关于玻璃质感",
|
|
518
514
|
"glass.help": "在 Catppuccin 主题之上叠加磨砂玻璃皮肤:悬浮卡片(云母效果)或保持原版排版的兼容模式。模糊度、磨砂度、背景亮度均可调,并支持清透 / 标准 / 磨砂三档预设。云母效果会在顶栏、输入框等大面积区域做背景模糊,流式输出时较吃 GPU——在意性能请用兼容模式,或选「清透」预设。",
|
|
519
515
|
"glass.enable": "总开关",
|
|
520
|
-
"glass.on": "开启",
|
|
521
|
-
"glass.off": "关闭",
|
|
522
516
|
"glass.mode": "模式",
|
|
523
517
|
"glass.modeMica": "云母效果",
|
|
524
518
|
"glass.modeCompat": "兼容模式",
|
|
@@ -536,7 +530,7 @@ window.__ModuleLoader__.load({
|
|
|
536
530
|
"update.title": "检查 Catppuccin 插件更新",
|
|
537
531
|
"update.description": "检测本插件(dsh-catppuccin)在 npm 上的最新版本,判断当前安装是否需要升级。",
|
|
538
532
|
"update.helpLabel": "关于更新检查",
|
|
539
|
-
"update.help": "向 npm registry
|
|
533
|
+
"update.help": "向 npm registry 查询本插件的最新版本。开启「自动检查」后会在启动时与每 6 小时自动检查;渠道选 beta 可追踪预发布版本。",
|
|
540
534
|
"update.autoCheck": "自动检查更新",
|
|
541
535
|
"update.channel": "渠道",
|
|
542
536
|
"update.channelLatest": "稳定版",
|
|
@@ -585,10 +579,6 @@ window.__ModuleLoader__.load({
|
|
|
585
579
|
"row.overridesRemove": "Remove this override",
|
|
586
580
|
"row.overridesKey": "Token name",
|
|
587
581
|
"row.overridesValue": "Token value",
|
|
588
|
-
"flavor.latte": "Latte",
|
|
589
|
-
"flavor.frappe": "Frappé",
|
|
590
|
-
"flavor.macchiato": "Macchiato",
|
|
591
|
-
"flavor.mocha": "Mocha",
|
|
592
582
|
"flavor.latte.subtitle": "Light",
|
|
593
583
|
"flavor.frappe.subtitle": "Dark",
|
|
594
584
|
"flavor.macchiato.subtitle": "Dark",
|
|
@@ -598,8 +588,6 @@ window.__ModuleLoader__.load({
|
|
|
598
588
|
"glass.helpLabel": "About glassmorphism",
|
|
599
589
|
"glass.help": "A frosted-glass skin layered over the Catppuccin theme: floating cards (Mica) or the stock layout with a glass material (Compatibility). Blur, frost and backdrop brightness are tunable, with Clear / Standard / Frosted presets. Mica blurs large areas (top bar, composer), so it costs GPU while output streams — pick Compatibility or the Clear preset if that matters.",
|
|
600
590
|
"glass.enable": "Master switch",
|
|
601
|
-
"glass.on": "On",
|
|
602
|
-
"glass.off": "Off",
|
|
603
591
|
"glass.mode": "Mode",
|
|
604
592
|
"glass.modeMica": "Mica",
|
|
605
593
|
"glass.modeCompat": "Compatibility",
|
|
@@ -666,10 +654,6 @@ window.__ModuleLoader__.load({
|
|
|
666
654
|
"row.overridesRemove": "この上書きを削除",
|
|
667
655
|
"row.overridesKey": "トークン名",
|
|
668
656
|
"row.overridesValue": "トークン値",
|
|
669
|
-
"flavor.latte": "Latte",
|
|
670
|
-
"flavor.frappe": "Frappé",
|
|
671
|
-
"flavor.macchiato": "Macchiato",
|
|
672
|
-
"flavor.mocha": "Mocha",
|
|
673
657
|
"flavor.latte.subtitle": "ライト",
|
|
674
658
|
"flavor.frappe.subtitle": "ダーク",
|
|
675
659
|
"flavor.macchiato.subtitle": "ダーク",
|
|
@@ -677,10 +661,8 @@ window.__ModuleLoader__.load({
|
|
|
677
661
|
"glass.title": "ガラス質感",
|
|
678
662
|
"glass.description": "トップバー・サイドバー・入力欄・ステータス行・軌跡ビューにすりガラス効果、ワンクリックで ON/OFF。",
|
|
679
663
|
"glass.helpLabel": "ガラス質感について",
|
|
680
|
-
"glass.help": "Catppuccin テーマの上に乗せるガラススキン: 浮遊カード(Mica)または原版レイアウト互換モード。ぼかし・曇り・背景輝度を調整でき、クリア / スタンダード /
|
|
664
|
+
"glass.help": "Catppuccin テーマの上に乗せるガラススキン: 浮遊カード(Mica)または原版レイアウト互換モード。ぼかし・曇り・背景輝度を調整でき、クリア / スタンダード / 曇りのプリセット付き。Mica はトップバーや入力欄など広い範囲をぼかすため、ストリーミング中は GPU を消費します。気になる場合は互換モードか「クリア」プリセットを。",
|
|
681
665
|
"glass.enable": "マスタースイッチ",
|
|
682
|
-
"glass.on": "オン",
|
|
683
|
-
"glass.off": "オフ",
|
|
684
666
|
"glass.mode": "モード",
|
|
685
667
|
"glass.modeMica": "Mica",
|
|
686
668
|
"glass.modeCompat": "互換",
|
|
@@ -688,7 +670,7 @@ window.__ModuleLoader__.load({
|
|
|
688
670
|
"glass.presets": "プリセット",
|
|
689
671
|
"glass.presetClear": "クリア",
|
|
690
672
|
"glass.presetStandard": "スタンダード",
|
|
691
|
-
"glass.presetFrosted": "
|
|
673
|
+
"glass.presetFrosted": "曇り",
|
|
692
674
|
"glass.blur": "ぼかし",
|
|
693
675
|
"glass.frost": "曇り",
|
|
694
676
|
"glass.brightness": "背景の輝度",
|
|
@@ -747,10 +729,6 @@ window.__ModuleLoader__.load({
|
|
|
747
729
|
"row.overridesRemove": "이 오버라이드 삭제",
|
|
748
730
|
"row.overridesKey": "토큰 이름",
|
|
749
731
|
"row.overridesValue": "토큰 값",
|
|
750
|
-
"flavor.latte": "Latte",
|
|
751
|
-
"flavor.frappe": "Frappé",
|
|
752
|
-
"flavor.macchiato": "Macchiato",
|
|
753
|
-
"flavor.mocha": "Mocha",
|
|
754
732
|
"flavor.latte.subtitle": "밝음",
|
|
755
733
|
"flavor.frappe.subtitle": "어두움",
|
|
756
734
|
"flavor.macchiato.subtitle": "어두움",
|
|
@@ -758,10 +736,8 @@ window.__ModuleLoader__.load({
|
|
|
758
736
|
"glass.title": "글라스 질감",
|
|
759
737
|
"glass.description": "상단바·사이드바·입력창·통계줄·궤적 뷰에 프러스트드 글라스 효과, 원클릭 ON/OFF.",
|
|
760
738
|
"glass.helpLabel": "글라스 질감 정보",
|
|
761
|
-
"glass.help": "Catppuccin 테마 위에 얹는 글라스 스킨: 떠 있는 카드(Mica) 또는 원본 레이아웃 호환 모드. 블러·프로스트·배경 밝기를 조절할 수 있고
|
|
739
|
+
"glass.help": "Catppuccin 테마 위에 얹는 글라스 스킨: 떠 있는 카드(Mica) 또는 원본 레이아웃 호환 모드. 블러·프로스트·배경 밝기를 조절할 수 있고 클리어/스탠다드/프로스트 프리셋이 있습니다. Mica는 상단 바·입력창 등 넓은 영역을 흐리게 하므로 스트리밍 중 GPU를 더 씁니다. 부담되면 호환 모드나 「클리어」 프리셋을 쓰세요.",
|
|
762
740
|
"glass.enable": "마스터 스위치",
|
|
763
|
-
"glass.on": "켜기",
|
|
764
|
-
"glass.off": "끄기",
|
|
765
741
|
"glass.mode": "모드",
|
|
766
742
|
"glass.modeMica": "Mica",
|
|
767
743
|
"glass.modeCompat": "호환",
|
|
@@ -769,7 +745,7 @@ window.__ModuleLoader__.load({
|
|
|
769
745
|
"glass.presets": "프리셋",
|
|
770
746
|
"glass.presetClear": "클리어",
|
|
771
747
|
"glass.presetStandard": "스탠다드",
|
|
772
|
-
"glass.presetFrosted": "
|
|
748
|
+
"glass.presetFrosted": "프로스트",
|
|
773
749
|
"glass.blur": "블러",
|
|
774
750
|
"glass.frost": "프로스트",
|
|
775
751
|
"glass.brightness": "배경 밝기",
|
|
@@ -828,10 +804,6 @@ window.__ModuleLoader__.load({
|
|
|
828
804
|
"row.overridesRemove": "Eliminar esta anulación",
|
|
829
805
|
"row.overridesKey": "Nombre del token",
|
|
830
806
|
"row.overridesValue": "Valor del token",
|
|
831
|
-
"flavor.latte": "Latte",
|
|
832
|
-
"flavor.frappe": "Frappé",
|
|
833
|
-
"flavor.macchiato": "Macchiato",
|
|
834
|
-
"flavor.mocha": "Mocha",
|
|
835
807
|
"flavor.latte.subtitle": "Claro",
|
|
836
808
|
"flavor.frappe.subtitle": "Oscuro",
|
|
837
809
|
"flavor.macchiato.subtitle": "Oscuro",
|
|
@@ -841,8 +813,6 @@ window.__ModuleLoader__.load({
|
|
|
841
813
|
"glass.helpLabel": "Acerca del vidrio esmerilado",
|
|
842
814
|
"glass.help": "Una piel de vidrio esmerilado sobre el tema Catppuccin: tarjetas flotantes (Mica) o el diseño original con material de vidrio (Compatibilidad). Desenfoque, escarcha y brillo del fondo ajustables, con preajustes Claro / Estándar / Escarchado. Mica desenfoca zonas grandes (barra superior, cuadro de texto), así que consume GPU mientras llega la respuesta: usa Compatibilidad o el preajuste Claro si te importa.",
|
|
843
815
|
"glass.enable": "Interruptor general",
|
|
844
|
-
"glass.on": "Sí",
|
|
845
|
-
"glass.off": "No",
|
|
846
816
|
"glass.mode": "Modo",
|
|
847
817
|
"glass.modeMica": "Mica",
|
|
848
818
|
"glass.modeCompat": "Compatibilidad",
|
|
@@ -909,10 +879,6 @@ window.__ModuleLoader__.load({
|
|
|
909
879
|
"row.overridesRemove": "Supprimer ce remplacement",
|
|
910
880
|
"row.overridesKey": "Nom du jeton",
|
|
911
881
|
"row.overridesValue": "Valeur du jeton",
|
|
912
|
-
"flavor.latte": "Latte",
|
|
913
|
-
"flavor.frappe": "Frappé",
|
|
914
|
-
"flavor.macchiato": "Macchiato",
|
|
915
|
-
"flavor.mocha": "Mocha",
|
|
916
882
|
"flavor.latte.subtitle": "Clair",
|
|
917
883
|
"flavor.frappe.subtitle": "Sombre",
|
|
918
884
|
"flavor.macchiato.subtitle": "Sombre",
|
|
@@ -922,8 +888,6 @@ window.__ModuleLoader__.load({
|
|
|
922
888
|
"glass.helpLabel": "À propos du verre dépoli",
|
|
923
889
|
"glass.help": "Une peau en verre dépoli par-dessus le thème Catppuccin : cartes flottantes (Mica) ou mise en page d'origine avec un matériau verre (Compatibilité). Flou, givre et luminosité du fond réglables, avec les préréglages Clair / Standard / Givré. Mica floute de grandes zones (barre supérieure, champ de saisie) : cela consomme le GPU pendant la génération — préférez Compatibilité ou le préréglage Clair si c'est gênant.",
|
|
924
890
|
"glass.enable": "Interrupteur principal",
|
|
925
|
-
"glass.on": "Oui",
|
|
926
|
-
"glass.off": "Non",
|
|
927
891
|
"glass.mode": "Mode",
|
|
928
892
|
"glass.modeMica": "Mica",
|
|
929
893
|
"glass.modeCompat": "Compatibilité",
|
|
@@ -990,10 +954,6 @@ window.__ModuleLoader__.load({
|
|
|
990
954
|
"row.overridesRemove": "Diese Überschreibung entfernen",
|
|
991
955
|
"row.overridesKey": "Token-Name",
|
|
992
956
|
"row.overridesValue": "Token-Wert",
|
|
993
|
-
"flavor.latte": "Latte",
|
|
994
|
-
"flavor.frappe": "Frappé",
|
|
995
|
-
"flavor.macchiato": "Macchiato",
|
|
996
|
-
"flavor.mocha": "Mocha",
|
|
997
957
|
"flavor.latte.subtitle": "Hell",
|
|
998
958
|
"flavor.frappe.subtitle": "Dunkel",
|
|
999
959
|
"flavor.macchiato.subtitle": "Dunkel",
|
|
@@ -1003,8 +963,6 @@ window.__ModuleLoader__.load({
|
|
|
1003
963
|
"glass.helpLabel": "Über Glasmorphismus",
|
|
1004
964
|
"glass.help": "Eine Milchglas-Haut über dem Catppuccin-Design: schwebende Karten (Mica) oder das Original-Layout mit Glas-Material (Kompatibilität). Unschärfe, Frost und Hintergrundhelligkeit einstellbar, mit den Voreinstellungen Klar / Standard / Frostig. Mica verwischt große Flächen (Kopfleiste, Eingabefeld) und kostet daher GPU, während die Antwort streamt — nimm Kompatibilität oder die Voreinstellung Klar, wenn das stört.",
|
|
1005
965
|
"glass.enable": "Hauptschalter",
|
|
1006
|
-
"glass.on": "An",
|
|
1007
|
-
"glass.off": "Aus",
|
|
1008
966
|
"glass.mode": "Modus",
|
|
1009
967
|
"glass.modeMica": "Mica",
|
|
1010
968
|
"glass.modeCompat": "Kompatibilität",
|
|
@@ -2823,13 +2781,14 @@ window.__ModuleLoader__.load({
|
|
|
2823
2781
|
* @param props - composed slot props.
|
|
2824
2782
|
* @returns the row element tree.
|
|
2825
2783
|
*/
|
|
2826
|
-
function UpdateRow({ t, check, autoCheck, setAutoCheck, channel, setChannel, subscribePrefs, lastAutoResult, subscribeConflict, conflictCount }) {
|
|
2784
|
+
function UpdateRow({ t, check, autoCheck, setAutoCheck, channel, setChannel, subscribePrefs, lastAutoResult, subscribeConflict, conflictCount, activeLocale, subscribeLocale }) {
|
|
2827
2785
|
const [phase, setPhase] = (0, react.useState)("idle");
|
|
2828
2786
|
const [payload, setPayload] = (0, react.useState)(null);
|
|
2829
2787
|
const [copied, setCopied] = (0, react.useState)(false);
|
|
2830
2788
|
const autoCheckOn = (0, react.useSyncExternalStore)(subscribePrefs, autoCheck);
|
|
2831
2789
|
const channelValue = (0, react.useSyncExternalStore)(subscribePrefs, channel);
|
|
2832
2790
|
const conflicts = (0, react.useSyncExternalStore)(subscribeConflict, conflictCount);
|
|
2791
|
+
const locale = (0, react.useSyncExternalStore)(subscribeLocale, activeLocale);
|
|
2833
2792
|
const [dismissedConflicts, setDismissedConflicts] = (0, react.useState)(0);
|
|
2834
2793
|
const [retryRemaining, setRetryRemaining] = (0, react.useState)(null);
|
|
2835
2794
|
const retryTimer = (0, react.useRef)(void 0);
|
|
@@ -3124,7 +3083,7 @@ window.__ModuleLoader__.load({
|
|
|
3124
3083
|
children: [
|
|
3125
3084
|
t("update.checkedAt"),
|
|
3126
3085
|
" ",
|
|
3127
|
-
new Date(payload.checkedAt).toLocaleString()
|
|
3086
|
+
new Date(payload.checkedAt).toLocaleString(locale)
|
|
3128
3087
|
]
|
|
3129
3088
|
})
|
|
3130
3089
|
]
|
|
@@ -3922,7 +3881,9 @@ window.__ModuleLoader__.load({
|
|
|
3922
3881
|
conflictListeners.delete(listener);
|
|
3923
3882
|
};
|
|
3924
3883
|
},
|
|
3925
|
-
conflictCount: () => conflictCount
|
|
3884
|
+
conflictCount: () => conflictCount,
|
|
3885
|
+
activeLocale: () => ctx.locale.getLocale().active,
|
|
3886
|
+
subscribeLocale: (listener) => ctx.locale.subscribe(listener)
|
|
3926
3887
|
});
|
|
3927
3888
|
ctx.slots.inject("settings.general.item", () => ctx.slots.register({
|
|
3928
3889
|
name: "settings.general.item",
|