codexmate 0.0.36 → 0.0.38
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/README.md +14 -5
- package/README.zh.md +14 -5
- package/cli/analytics-export-args.js +68 -0
- package/cli/session-usage.js +187 -1
- package/cli.js +65 -1
- package/package.json +1 -1
- package/web-ui/app.js +0 -1
- package/web-ui/modules/skills.methods.mjs +1 -1
- package/web-ui/partials/index/layout-header.html +6 -2
- package/web-ui/partials/index/panel-usage.html +8 -12
- package/web-ui/res/web-ui-render.precompiled.js +29 -34
- package/web-ui/styles/layout-shell.css +11 -12
- package/web-ui/styles/sessions-usage.css +299 -151
- package/web-ui/partials/index/panel-config-codex.html.bak +0 -337
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
window.__CODEXMATE_WEB_UI_RENDER__ = (() => {
|
|
2
|
-
const { toDisplayString: _toDisplayString, normalizeClass: _normalizeClass, createElementVNode: _createElementVNode, openBlock: _openBlock, createElementBlock: _createElementBlock, createCommentVNode: _createCommentVNode,
|
|
2
|
+
const { toDisplayString: _toDisplayString, normalizeClass: _normalizeClass, createElementVNode: _createElementVNode, openBlock: _openBlock, createElementBlock: _createElementBlock, createCommentVNode: _createCommentVNode, createTextVNode: _createTextVNode, Fragment: _Fragment, renderList: _renderList, vShow: _vShow, withDirectives: _withDirectives, vModelSelect: _vModelSelect, vModelText: _vModelText, withKeys: _withKeys, withModifiers: _withModifiers, isMemoSame: _isMemoSame, withMemo: _withMemo, normalizeStyle: _normalizeStyle, vModelCheckbox: _vModelCheckbox, vModelDynamic: _vModelDynamic } = Vue
|
|
3
3
|
|
|
4
4
|
return function render(_ctx, _cache) {
|
|
5
5
|
return (_openBlock(), _createElementBlock(_Fragment, null, [
|
|
@@ -165,14 +165,7 @@ return function render(_ctx, _cache) {
|
|
|
165
165
|
key: 0,
|
|
166
166
|
class: "side-rail"
|
|
167
167
|
}, [
|
|
168
|
-
_createElementVNode("div", {
|
|
169
|
-
class: "brand-block",
|
|
170
|
-
tabindex: "0",
|
|
171
|
-
onMouseenter: $event => (_ctx.brandHovered = true),
|
|
172
|
-
onMouseleave: $event => (_ctx.brandHovered = false),
|
|
173
|
-
onFocus: $event => (_ctx.brandHovered = true),
|
|
174
|
-
onBlur: $event => (_ctx.brandHovered = false)
|
|
175
|
-
}, [
|
|
168
|
+
_createElementVNode("div", { class: "brand-block" }, [
|
|
176
169
|
_createElementVNode("div", { class: "brand-head" }, [
|
|
177
170
|
_createElementVNode("img", {
|
|
178
171
|
class: "brand-logo",
|
|
@@ -182,21 +175,16 @@ return function render(_ctx, _cache) {
|
|
|
182
175
|
_createElementVNode("div", { class: "brand-copy" }, [
|
|
183
176
|
_createElementVNode("div", { class: "brand-kicker" }, [
|
|
184
177
|
_createTextVNode("Codex Mate"),
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
}, " v" + _toDisplayString(_ctx.appVersion), 1 /* TEXT */))
|
|
192
|
-
: _createCommentVNode("v-if", true)
|
|
193
|
-
]),
|
|
194
|
-
_: 1 /* STABLE */
|
|
195
|
-
})
|
|
178
|
+
(_ctx.appVersion)
|
|
179
|
+
? (_openBlock(), _createElementBlock("span", {
|
|
180
|
+
key: 0,
|
|
181
|
+
class: "brand-version"
|
|
182
|
+
}, " v" + _toDisplayString(_ctx.appVersion), 1 /* TEXT */))
|
|
183
|
+
: _createCommentVNode("v-if", true)
|
|
196
184
|
])
|
|
197
185
|
])
|
|
198
186
|
])
|
|
199
|
-
]
|
|
187
|
+
]),
|
|
200
188
|
_createElementVNode("div", { class: "side-rail-nav" }, [
|
|
201
189
|
_createElementVNode("div", {
|
|
202
190
|
class: "side-section",
|
|
@@ -437,7 +425,18 @@ return function render(_ctx, _cache) {
|
|
|
437
425
|
: _createCommentVNode("v-if", true)
|
|
438
426
|
])
|
|
439
427
|
], 42 /* CLASS, PROPS, NEED_HYDRATION */, ["aria-current", "onPointerdown", "onClick"])
|
|
440
|
-
], 8 /* PROPS */, ["aria-label"])
|
|
428
|
+
], 8 /* PROPS */, ["aria-label"]),
|
|
429
|
+
_createElementVNode("div", {
|
|
430
|
+
id: "side-tab-new",
|
|
431
|
+
class: "side-item side-item-ghost",
|
|
432
|
+
tabindex: "-1",
|
|
433
|
+
"aria-hidden": "true"
|
|
434
|
+
}, [
|
|
435
|
+
_createElementVNode("div", { class: "side-item-title" }, "New Tab"),
|
|
436
|
+
_createElementVNode("div", { class: "side-item-meta" }, [
|
|
437
|
+
_createElementVNode("span", null, " ")
|
|
438
|
+
])
|
|
439
|
+
])
|
|
441
440
|
]),
|
|
442
441
|
_createElementVNode("div", {
|
|
443
442
|
class: "side-rail-lang",
|
|
@@ -2668,7 +2667,7 @@ return function render(_ctx, _cache) {
|
|
|
2668
2667
|
], 512 /* NEED_PATCH */), [
|
|
2669
2668
|
[_vShow, _ctx.mainTab === 'sessions']
|
|
2670
2669
|
]),
|
|
2671
|
-
_createCommentVNode(" Usage 统计 -
|
|
2670
|
+
_createCommentVNode(" Usage 统计 - 流光设计 "),
|
|
2672
2671
|
_withDirectives(_createElementVNode("div", {
|
|
2673
2672
|
class: "mode-content",
|
|
2674
2673
|
id: "panel-usage",
|
|
@@ -2848,11 +2847,11 @@ return function render(_ctx, _cache) {
|
|
|
2848
2847
|
])
|
|
2849
2848
|
])
|
|
2850
2849
|
]),
|
|
2851
|
-
_createCommentVNode("
|
|
2850
|
+
_createCommentVNode(" 波浪图 "),
|
|
2852
2851
|
(_ctx.sessionUsageWave.points && _ctx.sessionUsageWave.points.length)
|
|
2853
2852
|
? (_openBlock(), _createElementBlock("section", {
|
|
2854
2853
|
key: 1,
|
|
2855
|
-
class: "usage-
|
|
2854
|
+
class: "usage-wave-section"
|
|
2856
2855
|
}, [
|
|
2857
2856
|
_createElementVNode("div", { class: "usage-card-title" }, _toDisplayString(_ctx.t('usage.daily.title')), 1 /* TEXT */),
|
|
2858
2857
|
_createElementVNode("div", { class: "usage-wave-container" }, [
|
|
@@ -2872,7 +2871,7 @@ return function render(_ctx, _cache) {
|
|
|
2872
2871
|
_createElementVNode("stop", {
|
|
2873
2872
|
offset: "0%",
|
|
2874
2873
|
"stop-color": 'var(--color-brand)',
|
|
2875
|
-
"stop-opacity": "0.
|
|
2874
|
+
"stop-opacity": "0.35"
|
|
2876
2875
|
}),
|
|
2877
2876
|
_createElementVNode("stop", {
|
|
2878
2877
|
offset: "100%",
|
|
@@ -2881,13 +2880,11 @@ return function render(_ctx, _cache) {
|
|
|
2881
2880
|
})
|
|
2882
2881
|
], 8 /* PROPS */, ["id"])
|
|
2883
2882
|
]),
|
|
2884
|
-
_createCommentVNode(" 填充区域 "),
|
|
2885
2883
|
_createElementVNode("path", {
|
|
2886
2884
|
d: _ctx.sessionUsageWave.areaPath,
|
|
2887
2885
|
fill: 'url(#wave-gradient-' + _ctx.sessionsUsageTimeRange + ')',
|
|
2888
2886
|
class: "usage-wave-area"
|
|
2889
2887
|
}, null, 8 /* PROPS */, ["d", "fill"]),
|
|
2890
|
-
_createCommentVNode(" 曲线 "),
|
|
2891
2888
|
_createElementVNode("path", {
|
|
2892
2889
|
d: _ctx.sessionUsageWave.linePath,
|
|
2893
2890
|
fill: "none",
|
|
@@ -2897,7 +2894,6 @@ return function render(_ctx, _cache) {
|
|
|
2897
2894
|
"stroke-linejoin": "round",
|
|
2898
2895
|
class: "usage-wave-line"
|
|
2899
2896
|
}, null, 8 /* PROPS */, ["d"]),
|
|
2900
|
-
_createCommentVNode(" 悬停指示线 "),
|
|
2901
2897
|
(_ctx.sessionsUsageSelectedDay)
|
|
2902
2898
|
? (_openBlock(), _createElementBlock("line", {
|
|
2903
2899
|
key: 0,
|
|
@@ -2908,11 +2904,10 @@ return function render(_ctx, _cache) {
|
|
|
2908
2904
|
stroke: "currentColor",
|
|
2909
2905
|
"stroke-width": "1",
|
|
2910
2906
|
"stroke-dasharray": "4 4",
|
|
2911
|
-
opacity: "0.
|
|
2907
|
+
opacity: "0.5",
|
|
2912
2908
|
class: "usage-wave-hover-line"
|
|
2913
2909
|
}, null, 8 /* PROPS */, ["x2", "y1", "y2"]))
|
|
2914
2910
|
: _createCommentVNode("v-if", true),
|
|
2915
|
-
_createCommentVNode(" 悬停点 "),
|
|
2916
2911
|
(_ctx.sessionsUsageSelectedDay)
|
|
2917
2912
|
? (_openBlock(), _createElementBlock("circle", {
|
|
2918
2913
|
key: 1,
|
|
@@ -2956,8 +2951,8 @@ return function render(_ctx, _cache) {
|
|
|
2956
2951
|
]))
|
|
2957
2952
|
: _createCommentVNode("v-if", true),
|
|
2958
2953
|
_createElementVNode("div", { class: "usage-chart-grid" }, [
|
|
2959
|
-
_createCommentVNode("
|
|
2960
|
-
_createElementVNode("section", { class: "usage-card
|
|
2954
|
+
_createCommentVNode(" 热力图 "),
|
|
2955
|
+
_createElementVNode("section", { class: "usage-card-hourly-heatmap" }, [
|
|
2961
2956
|
_createElementVNode("div", { class: "usage-card-title" }, _toDisplayString(_ctx.t('usage.hourlyHeatmap.title')), 1 /* TEXT */),
|
|
2962
2957
|
_createElementVNode("div", { class: "hourly-heatmap-wrapper" }, [
|
|
2963
2958
|
_createElementVNode("div", { class: "hourly-heatmap-header" }, [
|
|
@@ -3050,7 +3045,7 @@ return function render(_ctx, _cache) {
|
|
|
3050
3045
|
]))
|
|
3051
3046
|
]),
|
|
3052
3047
|
_createCommentVNode(" Top Paths "),
|
|
3053
|
-
_createElementVNode("section", { class: "usage-
|
|
3048
|
+
_createElementVNode("section", { class: "usage-paths-section" }, [
|
|
3054
3049
|
_createElementVNode("div", { class: "usage-card-title" }, _toDisplayString(_ctx.t('usage.paths.title')), 1 /* TEXT */),
|
|
3055
3050
|
(!_ctx.sessionUsageCharts.topPaths.length)
|
|
3056
3051
|
? (_openBlock(), _createElementBlock("div", {
|
|
@@ -415,6 +415,14 @@ body::after {
|
|
|
415
415
|
word-break: break-word;
|
|
416
416
|
}
|
|
417
417
|
|
|
418
|
+
.side-item-ghost {
|
|
419
|
+
opacity: 0;
|
|
420
|
+
pointer-events: none;
|
|
421
|
+
user-select: none;
|
|
422
|
+
cursor: default;
|
|
423
|
+
flex: 0 0 auto;
|
|
424
|
+
}
|
|
425
|
+
|
|
418
426
|
@media (min-width: 721px) {
|
|
419
427
|
body:not(.force-compact) #app > .top-tabs {
|
|
420
428
|
display: none;
|
|
@@ -431,16 +439,6 @@ body::after {
|
|
|
431
439
|
background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 100%);
|
|
432
440
|
}
|
|
433
441
|
|
|
434
|
-
.brand-block:focus-visible {
|
|
435
|
-
outline: 2px solid rgba(0, 122, 255, 0.5);
|
|
436
|
-
outline-offset: -2px;
|
|
437
|
-
border-radius: 4px;
|
|
438
|
-
}
|
|
439
|
-
|
|
440
|
-
.brand-block:focus:not(:focus-visible) {
|
|
441
|
-
outline: none;
|
|
442
|
-
}
|
|
443
|
-
|
|
444
442
|
.brand-head {
|
|
445
443
|
display: flex;
|
|
446
444
|
align-items: center;
|
|
@@ -484,7 +482,7 @@ body::after {
|
|
|
484
482
|
}
|
|
485
483
|
|
|
486
484
|
.brand-kicker {
|
|
487
|
-
font-size:
|
|
485
|
+
font-size: 15px;
|
|
488
486
|
line-height: 1.2;
|
|
489
487
|
font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
|
|
490
488
|
color: #1d1d1f;
|
|
@@ -502,10 +500,11 @@ body::after {
|
|
|
502
500
|
}
|
|
503
501
|
|
|
504
502
|
.brand-version {
|
|
505
|
-
font-size:
|
|
503
|
+
font-size: 13px;
|
|
506
504
|
font-weight: 400;
|
|
507
505
|
color: #8e8e93;
|
|
508
506
|
vertical-align: baseline;
|
|
507
|
+
-webkit-text-fill-color: #8e8e93;
|
|
509
508
|
}
|
|
510
509
|
|
|
511
510
|
.brand-version-fade-enter-active,
|