ai-heatmap 1.9.0 → 1.9.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/LICENSE +21 -0
- package/package.json +1 -1
- package/src/App.css +1 -1
- package/src/App.tsx +4 -3
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 seunggabi
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/package.json
CHANGED
package/src/App.css
CHANGED
package/src/App.tsx
CHANGED
|
@@ -183,6 +183,7 @@ function shortModel(name: string) {
|
|
|
183
183
|
}
|
|
184
184
|
|
|
185
185
|
const DAY_LABELS = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"];
|
|
186
|
+
const DAY_SHORT = ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"];
|
|
186
187
|
|
|
187
188
|
export default function App() {
|
|
188
189
|
const [data, setData] = useState<Activity[]>([]);
|
|
@@ -293,12 +294,12 @@ export default function App() {
|
|
|
293
294
|
fontSize={options.fontSize}
|
|
294
295
|
hideColorLegend={options.hideColorLegend}
|
|
295
296
|
hideMonthLabels={options.hideMonthLabels}
|
|
296
|
-
hideTotalCount={
|
|
297
|
+
hideTotalCount={options.hideTotalCount}
|
|
297
298
|
showWeekdayLabels={options.showWeekdayLabels}
|
|
298
299
|
weekStart={options.weekStart}
|
|
299
300
|
colorScheme={options.colorScheme}
|
|
300
301
|
labels={{
|
|
301
|
-
totalCount:
|
|
302
|
+
totalCount: `${formatUSD(totalCost)} spent in {{year}}`,
|
|
302
303
|
}}
|
|
303
304
|
theme={{
|
|
304
305
|
light: themeColors,
|
|
@@ -308,7 +309,7 @@ export default function App() {
|
|
|
308
309
|
const a = activity as Activity;
|
|
309
310
|
if (a.count === 0) return block;
|
|
310
311
|
const lines = [
|
|
311
|
-
`<strong>${a.date}</strong>`,
|
|
312
|
+
`<strong>${a.date} (${DAY_SHORT[new Date(a.date).getDay()]})</strong>`,
|
|
312
313
|
`Cost: ${formatUSD(a.count)}`,
|
|
313
314
|
a.inputTokens != null ? `In: ${formatTokens(a.inputTokens)} / Out: ${formatTokens(a.outputTokens ?? 0)}` : "",
|
|
314
315
|
a.totalTokens ? `Total: ${formatTokens(a.totalTokens)}` : "",
|