Skip to content

Commit a574b3a

Browse files
committed
Add ui/lib
1 parent d635c22 commit a574b3a

12 files changed

Lines changed: 19733 additions & 1 deletion

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ share/python-wheels/
2727
MANIFEST
2828

2929
# Custom
30-
!ui/lib/
30+
!llms/ui/lib/
3131

3232

3333
# PyInstaller

llms/ui/lib/chart.js

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

llms/ui/lib/charts.mjs

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import { useFormatters, useUtils } from "@servicestack/vue"
2+
import { Chart, registerables } from "chart.js"
3+
Chart.register(...registerables)
4+
5+
const { humanifyMs, humanifyNumber, formatDate } = useFormatters()
6+
const { delay } = useUtils()
7+
8+
export const resultLimits = [5,10,25,50,100]
9+
export const colors = [
10+
{ background: 'rgba(54, 162, 235, 0.2)', border: 'rgb(54, 162, 235)' }, //blue
11+
{ background: 'rgba(255, 99, 132, 0.2)', border: 'rgb(255, 99, 132)' },
12+
{ background: 'rgba(153, 102, 255, 0.2)', border: 'rgb(153, 102, 255)' },
13+
{ background: 'rgba(54, 162, 235, 0.2)', border: 'rgb(54, 162, 235)' },
14+
{ background: 'rgba(255, 159, 64, 0.2)', border: 'rgb(255, 159, 64)' },
15+
{ background: 'rgba(67, 56, 202, 0.2)', border: 'rgb(67, 56, 202)' },
16+
{ background: 'rgba(255, 99, 132, 0.2)', border: 'rgb(255, 99, 132)' },
17+
{ background: 'rgba(14, 116, 144, 0.2)', border: 'rgb(14, 116, 144)' },
18+
{ background: 'rgba(162, 28, 175, 0.2)', border: 'rgb(162, 28, 175)' },
19+
{ background: 'rgba(201, 203, 207, 0.2)', border: 'rgb(201, 203, 207)' },
20+
]

llms/ui/lib/color.js

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)