add types chart.js
This commit is contained in:
parent
ae827639aa
commit
b060c56719
|
|
@ -14,6 +14,7 @@
|
|||
"solid-js": "^1.8.15"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/chart.js": "^2.9.41",
|
||||
"autoprefixer": "^10.4.19",
|
||||
"postcss": "^8.4.38",
|
||||
"tailwindcss": "^3.4.3",
|
||||
|
|
|
|||
|
|
@ -16,6 +16,9 @@ dependencies:
|
|||
version: 1.8.16
|
||||
|
||||
devDependencies:
|
||||
'@types/chart.js':
|
||||
specifier: ^2.9.41
|
||||
version: 2.9.41
|
||||
autoprefixer:
|
||||
specifier: ^10.4.19
|
||||
version: 10.4.19(postcss@8.4.38)
|
||||
|
|
@ -755,6 +758,12 @@ packages:
|
|||
'@babel/types': 7.24.0
|
||||
dev: true
|
||||
|
||||
/@types/chart.js@2.9.41:
|
||||
resolution: {integrity: sha512-3dvkDvueckY83UyUXtJMalYoH6faOLkWQoaTlJgB4Djde3oORmNP0Jw85HtzTuXyliUHcdp704s0mZFQKio/KQ==}
|
||||
dependencies:
|
||||
moment: 2.30.1
|
||||
dev: true
|
||||
|
||||
/@types/estree@1.0.5:
|
||||
resolution: {integrity: sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==}
|
||||
dev: true
|
||||
|
|
@ -1280,6 +1289,10 @@ packages:
|
|||
engines: {node: '>=16 || 14 >=14.17'}
|
||||
dev: true
|
||||
|
||||
/moment@2.30.1:
|
||||
resolution: {integrity: sha512-uEmtNhbDOrWPFS+hdjFCBfy9f2YoyzRpwcl+DqpC6taX21FzsTLQVbMV/W7PzNSX6x/bhC1zA3c2UQ5NzH6how==}
|
||||
dev: true
|
||||
|
||||
/ms@2.1.2:
|
||||
resolution: {integrity: sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==}
|
||||
dev: true
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ interface TableProps extends JSX.HTMLAttributes<HTMLTableElement> {
|
|||
}
|
||||
|
||||
export default function (props: TableProps) {
|
||||
const [localProps, otherProps] = splitProps(props, ["headers", "items"]);
|
||||
const [_, otherProps] = splitProps(props, ["headers", "items"]);
|
||||
|
||||
return (
|
||||
<div class="overflow-x-auto">
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ import { createSignal, onMount } from "solid-js";
|
|||
import Table from "../components/Table";
|
||||
import { Histori } from "../types/Histori";
|
||||
import supabase from "../utils/supabase";
|
||||
import { getDates, getTimeDiff } from "../utils/dates";
|
||||
import { getDates } from "../utils/dates";
|
||||
|
||||
export default function () {
|
||||
const [items, setItems] = createSignal<Histori[]>([]);
|
||||
|
|
|
|||
Loading…
Reference in New Issue