claude-code-cost 0.6.0 → 0.6.1
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 +1 -1
- package/public/app.js +4 -4
- package/public/style.css +14 -12
package/package.json
CHANGED
package/public/app.js
CHANGED
|
@@ -658,8 +658,8 @@ function getChartColors() {
|
|
|
658
658
|
const style = getComputedStyle(document.body);
|
|
659
659
|
return {
|
|
660
660
|
accent: style.getPropertyValue('--accent').trim() || '#e86f33',
|
|
661
|
-
|
|
662
|
-
text: style.getPropertyValue('--text-
|
|
661
|
+
chartFill: style.getPropertyValue('--chart-fill').trim() || 'rgba(232,111,51,0.6)',
|
|
662
|
+
text: style.getPropertyValue('--text-secondary').trim() || '#c2c4c9',
|
|
663
663
|
border: style.getPropertyValue('--border').trim() || '#363840',
|
|
664
664
|
bg: style.getPropertyValue('--bg-elevated').trim() || '#1e2025',
|
|
665
665
|
chart1: style.getPropertyValue('--chart-1').trim() || '#e86f33',
|
|
@@ -722,7 +722,7 @@ function renderDailyChart(daily, canvasId = 'dailyChart', chartKey = 'daily') {
|
|
|
722
722
|
{
|
|
723
723
|
label: 'Daily Cost',
|
|
724
724
|
data: daily.map((d) => d.cost),
|
|
725
|
-
backgroundColor: c.
|
|
725
|
+
backgroundColor: c.accent,
|
|
726
726
|
borderColor: c.accent,
|
|
727
727
|
borderWidth: 1,
|
|
728
728
|
borderRadius: 3,
|
|
@@ -817,7 +817,7 @@ function renderCumulativeChart(messages) {
|
|
|
817
817
|
label: 'Cumulative Cost',
|
|
818
818
|
data: messages.map((m) => m.cumulativeCost),
|
|
819
819
|
borderColor: c.accent,
|
|
820
|
-
backgroundColor: c.
|
|
820
|
+
backgroundColor: c.chartFill,
|
|
821
821
|
fill: true,
|
|
822
822
|
borderWidth: 2,
|
|
823
823
|
pointRadius: messages.length > 50 ? 0 : 3,
|
package/public/style.css
CHANGED
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
--accent-text: #f0a070;
|
|
15
15
|
--accent-dim: rgba(232, 111, 51, 0.22);
|
|
16
16
|
--accent-glow: rgba(232, 111, 51, 0.55);
|
|
17
|
+
--chart-fill: rgba(232, 111, 51, 0.6);
|
|
17
18
|
--success: #3ecf8e;
|
|
18
19
|
--success-dim: rgba(62, 207, 142, 0.18);
|
|
19
20
|
--warning: #f0b429;
|
|
@@ -22,12 +23,12 @@
|
|
|
22
23
|
--error-dim: rgba(239, 68, 68, 0.18);
|
|
23
24
|
--mono: 'IBM Plex Mono', monospace;
|
|
24
25
|
--serif: 'Playfair Display', serif;
|
|
25
|
-
--chart-1: #
|
|
26
|
-
--chart-2: #
|
|
27
|
-
--chart-3: #
|
|
28
|
-
--chart-4: #
|
|
29
|
-
--chart-5: #
|
|
30
|
-
--chart-6: #
|
|
26
|
+
--chart-1: #e86f33;
|
|
27
|
+
--chart-2: #4a9eda;
|
|
28
|
+
--chart-3: #3ecf8e;
|
|
29
|
+
--chart-4: #f0b429;
|
|
30
|
+
--chart-5: #b784f5;
|
|
31
|
+
--chart-6: #fb7185;
|
|
31
32
|
}
|
|
32
33
|
|
|
33
34
|
/* #endregion */
|
|
@@ -790,18 +791,19 @@ body.light {
|
|
|
790
791
|
--accent-text: #b85a20;
|
|
791
792
|
--accent-dim: rgba(232, 111, 51, 0.18);
|
|
792
793
|
--accent-glow: rgba(232, 111, 51, 0.5);
|
|
794
|
+
--chart-fill: rgba(232, 111, 51, 0.5);
|
|
793
795
|
--success: #1a8a5a;
|
|
794
796
|
--success-dim: rgba(26, 138, 90, 0.15);
|
|
795
797
|
--warning: #b07d0a;
|
|
796
798
|
--warning-dim: rgba(176, 125, 10, 0.15);
|
|
797
799
|
--error: #c53030;
|
|
798
800
|
--error-dim: rgba(197, 48, 48, 0.15);
|
|
799
|
-
--chart-1: #
|
|
800
|
-
--chart-2: #
|
|
801
|
-
--chart-3: #
|
|
802
|
-
--chart-4: #
|
|
803
|
-
--chart-5: #
|
|
804
|
-
--chart-6: #
|
|
801
|
+
--chart-1: #e86f33;
|
|
802
|
+
--chart-2: #4a9eda;
|
|
803
|
+
--chart-3: #3ecf8e;
|
|
804
|
+
--chart-4: #f0b429;
|
|
805
|
+
--chart-5: #b784f5;
|
|
806
|
+
--chart-6: #fb7185;
|
|
805
807
|
}
|
|
806
808
|
|
|
807
809
|
/* #endregion */
|