codexmate 0.0.38 → 0.0.39
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/cli/builtin-proxy.js +626 -207
- package/cli/openai-bridge.js +541 -210
- package/cli.js +19 -1
- package/package.json +1 -1
- package/web-ui/app.js +12 -3
- package/web-ui/modules/app.computed.main-tabs.mjs +37 -30
- package/web-ui/modules/app.methods.claude-config.mjs +111 -9
- package/web-ui/modules/app.methods.openclaw-editing.mjs +48 -0
- package/web-ui/modules/app.methods.openclaw-persist.mjs +13 -7
- package/web-ui/modules/app.methods.providers.mjs +36 -10
- package/web-ui/modules/app.methods.runtime.mjs +76 -1
- package/web-ui/modules/app.methods.startup-claude.mjs +1 -0
- package/web-ui/modules/config-mode.computed.mjs +3 -3
- package/web-ui/modules/i18n.dict.mjs +13 -0
- package/web-ui/modules/i18n.mjs +65 -16
- package/web-ui/partials/index/layout-header.html +16 -46
- package/web-ui/partials/index/modal-openclaw-config.html +135 -71
- package/web-ui/partials/index/modal-webhook.html +8 -8
- package/web-ui/partials/index/modals-basic.html +56 -16
- package/web-ui/partials/index/panel-config-claude.html +20 -20
- package/web-ui/partials/index/panel-config-codex.html +5 -5
- package/web-ui/partials/index/panel-config-openclaw.html +70 -64
- package/web-ui/partials/index/panel-dashboard.html +62 -77
- package/web-ui/partials/index/panel-settings.html +28 -7
- package/web-ui/partials/index/panel-trash.html +14 -14
- package/web-ui/res/web-ui-render.precompiled.js +846 -539
- package/web-ui/styles/controls-forms.css +6 -0
- package/web-ui/styles/dashboard.css +46 -14
- package/web-ui/styles/layout-shell.css +45 -0
- package/web-ui/styles/navigation-panels.css +3 -3
- package/web-ui/styles/openclaw-structured.css +383 -33
- package/web-ui/styles/responsive.css +68 -0
- package/web-ui/styles/sessions-usage.css +105 -9
- package/web-ui/styles/settings-panel.css +4 -0
|
@@ -382,6 +382,10 @@ textarea:focus-visible {
|
|
|
382
382
|
display: none;
|
|
383
383
|
}
|
|
384
384
|
|
|
385
|
+
.openclaw-card-list .card-trailing .pill {
|
|
386
|
+
display: block;
|
|
387
|
+
}
|
|
388
|
+
|
|
385
389
|
.auth-profile-item {
|
|
386
390
|
padding: 10px;
|
|
387
391
|
}
|
|
@@ -431,3 +435,67 @@ textarea:focus-visible {
|
|
|
431
435
|
font-size: 11px;
|
|
432
436
|
}
|
|
433
437
|
}
|
|
438
|
+
|
|
439
|
+
@media (max-width: 820px) {
|
|
440
|
+
.container {
|
|
441
|
+
display: flex;
|
|
442
|
+
flex-direction: column;
|
|
443
|
+
height: 100vh;
|
|
444
|
+
min-height: 100vh;
|
|
445
|
+
overflow: hidden;
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
.app-shell {
|
|
449
|
+
grid-template-columns: 1fr;
|
|
450
|
+
flex: 1 1 auto;
|
|
451
|
+
min-height: 0;
|
|
452
|
+
height: auto;
|
|
453
|
+
overflow: hidden;
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
.side-rail {
|
|
457
|
+
display: none !important;
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
.lang-fab {
|
|
461
|
+
display: none !important;
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
.top-tabs {
|
|
465
|
+
display: flex !important;
|
|
466
|
+
flex: 0 0 auto;
|
|
467
|
+
width: 100%;
|
|
468
|
+
max-width: 100%;
|
|
469
|
+
margin: 8px 0 10px;
|
|
470
|
+
padding: 0 max(18px, calc(env(safe-area-inset-right, 0px) + 14px)) 4px max(10px, calc(env(safe-area-inset-left, 0px) + 10px));
|
|
471
|
+
gap: 5px;
|
|
472
|
+
overflow-x: auto;
|
|
473
|
+
overflow-y: hidden;
|
|
474
|
+
scroll-padding-inline: 10px 18px;
|
|
475
|
+
background: rgba(255, 248, 241, 0.96);
|
|
476
|
+
position: relative;
|
|
477
|
+
z-index: 30;
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
.top-tab:last-child {
|
|
481
|
+
margin-right: 8px;
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
.main-panel {
|
|
485
|
+
padding: 0 12px 16px;
|
|
486
|
+
height: 100%;
|
|
487
|
+
min-height: 0;
|
|
488
|
+
overflow-y: auto;
|
|
489
|
+
-webkit-overflow-scrolling: touch;
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
.main-panel-topbar {
|
|
493
|
+
position: sticky;
|
|
494
|
+
top: 0;
|
|
495
|
+
z-index: 20;
|
|
496
|
+
margin: 0 0 10px;
|
|
497
|
+
padding: 0 0 8px;
|
|
498
|
+
background: rgba(255, 248, 241, 0.96);
|
|
499
|
+
backdrop-filter: blur(14px) saturate(130%);
|
|
500
|
+
}
|
|
501
|
+
}
|
|
@@ -135,10 +135,10 @@
|
|
|
135
135
|
.usage-hero::before {
|
|
136
136
|
content: '';
|
|
137
137
|
position: absolute;
|
|
138
|
-
top: -
|
|
139
|
-
right:
|
|
140
|
-
width:
|
|
141
|
-
height:
|
|
138
|
+
top: -72px;
|
|
139
|
+
right: 0;
|
|
140
|
+
width: min(320px, 62%);
|
|
141
|
+
height: min(320px, 62%);
|
|
142
142
|
background: radial-gradient(circle, rgba(200, 121, 99, 0.06) 0%, transparent 70%);
|
|
143
143
|
pointer-events: none;
|
|
144
144
|
}
|
|
@@ -175,10 +175,14 @@
|
|
|
175
175
|
.usage-hero-active-label {
|
|
176
176
|
font-weight: 600;
|
|
177
177
|
color: var(--color-text-primary);
|
|
178
|
+
min-width: 0;
|
|
179
|
+
overflow-wrap: anywhere;
|
|
178
180
|
}
|
|
179
181
|
|
|
180
182
|
.usage-hero-active-stat {
|
|
181
183
|
color: var(--color-text-tertiary);
|
|
184
|
+
min-width: 0;
|
|
185
|
+
overflow-wrap: anywhere;
|
|
182
186
|
}
|
|
183
187
|
|
|
184
188
|
.usage-hero-active-stat::before {
|
|
@@ -221,6 +225,15 @@
|
|
|
221
225
|
justify-content: center;
|
|
222
226
|
gap: 14px;
|
|
223
227
|
flex-wrap: wrap;
|
|
228
|
+
min-width: 0;
|
|
229
|
+
overflow-wrap: anywhere;
|
|
230
|
+
text-align: center;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
.usage-hero-sub > span {
|
|
234
|
+
min-width: 0;
|
|
235
|
+
max-width: 100%;
|
|
236
|
+
overflow-wrap: anywhere;
|
|
224
237
|
}
|
|
225
238
|
|
|
226
239
|
.usage-hero-delta {
|
|
@@ -372,6 +385,7 @@
|
|
|
372
385
|
border: none;
|
|
373
386
|
background: transparent;
|
|
374
387
|
padding: 0;
|
|
388
|
+
min-width: 0;
|
|
375
389
|
}
|
|
376
390
|
|
|
377
391
|
.hourly-heatmap-wrapper {
|
|
@@ -380,6 +394,8 @@
|
|
|
380
394
|
gap: 3px;
|
|
381
395
|
margin-top: 14px;
|
|
382
396
|
min-width: 500px;
|
|
397
|
+
max-width: 100%;
|
|
398
|
+
box-sizing: border-box;
|
|
383
399
|
padding: 16px;
|
|
384
400
|
border-radius: 18px;
|
|
385
401
|
background: linear-gradient(135deg, rgba(255,255,255,0.8), rgba(252,248,241,0.6));
|
|
@@ -656,10 +672,14 @@
|
|
|
656
672
|
/* ---- 图表网格 (加大间距) ---- */
|
|
657
673
|
.usage-chart-grid {
|
|
658
674
|
display: grid;
|
|
659
|
-
grid-template-columns: repeat(2, 1fr);
|
|
675
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
660
676
|
gap: 20px;
|
|
661
677
|
}
|
|
662
678
|
|
|
679
|
+
.usage-chart-grid > * {
|
|
680
|
+
min-width: 0;
|
|
681
|
+
}
|
|
682
|
+
|
|
663
683
|
/* 为非 paths 卡片添加容器 */
|
|
664
684
|
.usage-chart-grid > .usage-card:not(.usage-paths-section):not(.usage-wave-section):not(.usage-card-hourly-heatmap) {
|
|
665
685
|
padding: 16px;
|
|
@@ -704,10 +724,13 @@
|
|
|
704
724
|
}
|
|
705
725
|
|
|
706
726
|
/* ---- 响应式 ---- */
|
|
707
|
-
@media (max-width:
|
|
727
|
+
@media (max-width: 1100px) {
|
|
708
728
|
.usage-chart-grid {
|
|
709
729
|
grid-template-columns: 1fr;
|
|
710
730
|
}
|
|
731
|
+
}
|
|
732
|
+
|
|
733
|
+
@media (max-width: 960px) {
|
|
711
734
|
|
|
712
735
|
.usage-hero-main {
|
|
713
736
|
font-size: 44px;
|
|
@@ -726,12 +749,26 @@
|
|
|
726
749
|
}
|
|
727
750
|
|
|
728
751
|
.usage-hero {
|
|
729
|
-
padding:
|
|
752
|
+
padding: 22px 16px;
|
|
730
753
|
min-height: 140px;
|
|
754
|
+
gap: 16px;
|
|
755
|
+
}
|
|
756
|
+
|
|
757
|
+
.usage-hero::before {
|
|
758
|
+
top: -56px;
|
|
759
|
+
right: 0;
|
|
760
|
+
width: 220px;
|
|
761
|
+
height: 220px;
|
|
762
|
+
}
|
|
763
|
+
|
|
764
|
+
.usage-hero-active {
|
|
765
|
+
padding: 10px 12px;
|
|
766
|
+
gap: 8px 10px;
|
|
731
767
|
}
|
|
732
768
|
|
|
733
769
|
.usage-hero-main {
|
|
734
|
-
font-size: 38px;
|
|
770
|
+
font-size: clamp(32px, 10vw, 38px);
|
|
771
|
+
line-height: 1.08;
|
|
735
772
|
}
|
|
736
773
|
|
|
737
774
|
.usage-wave-chart {
|
|
@@ -743,11 +780,70 @@
|
|
|
743
780
|
}
|
|
744
781
|
|
|
745
782
|
.hourly-heatmap-wrapper {
|
|
783
|
+
width: 100%;
|
|
746
784
|
min-width: 100%;
|
|
747
|
-
|
|
785
|
+
max-width: 100%;
|
|
786
|
+
overflow-x: visible;
|
|
787
|
+
padding: 12px;
|
|
788
|
+
gap: 2px;
|
|
789
|
+
}
|
|
790
|
+
|
|
791
|
+
.usage-card-hourly-heatmap {
|
|
792
|
+
overflow-x: visible;
|
|
793
|
+
}
|
|
794
|
+
|
|
795
|
+
.hourly-heatmap-header,
|
|
796
|
+
.hourly-heatmap-row {
|
|
797
|
+
gap: 2px;
|
|
798
|
+
}
|
|
799
|
+
|
|
800
|
+
.hourly-heatmap-corner,
|
|
801
|
+
.hourly-heatmap-weekday-label {
|
|
802
|
+
width: 28px;
|
|
803
|
+
}
|
|
804
|
+
|
|
805
|
+
.hourly-heatmap-weekday-label {
|
|
806
|
+
font-size: 10px;
|
|
807
|
+
padding-right: 4px;
|
|
808
|
+
}
|
|
809
|
+
|
|
810
|
+
.hourly-heatmap-hour-label {
|
|
811
|
+
font-size: 8px;
|
|
812
|
+
line-height: 12px;
|
|
813
|
+
}
|
|
814
|
+
|
|
815
|
+
.hourly-heatmap-cell {
|
|
816
|
+
height: 8px;
|
|
817
|
+
border-radius: 3px;
|
|
748
818
|
}
|
|
749
819
|
|
|
750
820
|
.usage-chart-grid {
|
|
751
821
|
gap: 16px;
|
|
752
822
|
}
|
|
753
823
|
}
|
|
824
|
+
|
|
825
|
+
@media (max-width: 420px) {
|
|
826
|
+
.hourly-heatmap-wrapper {
|
|
827
|
+
padding: 10px;
|
|
828
|
+
gap: 1px;
|
|
829
|
+
}
|
|
830
|
+
|
|
831
|
+
.hourly-heatmap-header,
|
|
832
|
+
.hourly-heatmap-row {
|
|
833
|
+
gap: 1px;
|
|
834
|
+
}
|
|
835
|
+
|
|
836
|
+
.hourly-heatmap-corner,
|
|
837
|
+
.hourly-heatmap-weekday-label {
|
|
838
|
+
width: 24px;
|
|
839
|
+
}
|
|
840
|
+
|
|
841
|
+
.hourly-heatmap-weekday-label {
|
|
842
|
+
font-size: 9px;
|
|
843
|
+
padding-right: 3px;
|
|
844
|
+
}
|
|
845
|
+
|
|
846
|
+
.hourly-heatmap-hour-label {
|
|
847
|
+
font-size: 7px;
|
|
848
|
+
}
|
|
849
|
+
}
|