Skip to content

Commit

Permalink
Merge pull request #983 from traPtitech/dependabot/npm_and_yarn/dashb…
Browse files Browse the repository at this point in the history
…oard/non-majors-afb4a340cb

build(deps): bump the non-majors group across 1 directory with 18 updates
  • Loading branch information
cp-20 authored Dec 10, 2024
2 parents 83f4758 + 217dc1b commit 00e17d7
Show file tree
Hide file tree
Showing 6 changed files with 539 additions and 659 deletions.
38 changes: 19 additions & 19 deletions dashboard/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,45 +19,45 @@
},
"license": "MIT",
"devDependencies": {
"@biomejs/biome": "1.9.2",
"@iconify-json/material-symbols": "1.2.5",
"@tanstack/virtual-core": "3.10.8",
"@types/node": "22.7.4",
"@biomejs/biome": "1.9.4",
"@iconify-json/material-symbols": "1.2.10",
"@tanstack/virtual-core": "3.10.9",
"@types/node": "22.10.1",
"jsdom": "25.0.1",
"rollup-plugin-visualizer": "5.12.0",
"typescript": "5.6.2",
"unocss": "0.63.6",
"unplugin-fonts": "1.1.1",
"typescript": "5.7.2",
"unocss": "0.65.1",
"unplugin-fonts": "1.3.1",
"vite": "5.4.8",
"vite-plugin-compression": "0.5.1",
"vite-plugin-solid": "2.10.2",
"vite-plugin-solid": "2.11.0",
"vite-plugin-solid-svg": "0.8.1",
"vitest": "2.1.1"
"vitest": "2.1.8"
},
"dependencies": {
"@bufbuild/protobuf": "2.2.2",
"@bufbuild/protobuf": "2.2.3",
"@connectrpc/connect": "2.0.0",
"@connectrpc/connect-web": "2.0.0",
"@kobalte/core": "0.13.6",
"@modular-forms/solid": "0.23.0",
"@kobalte/core": "0.13.7",
"@modular-forms/solid": "0.25.0",
"@solid-primitives/refs": "1.0.8",
"@solidjs/meta": "0.29.4",
"@solidjs/router": "0.14.7",
"@tanstack/solid-virtual": "3.10.8",
"@solidjs/router": "0.15.1",
"@tanstack/solid-virtual": "3.11.1",
"@types/async-lock": "1.4.2",
"@unocss/reset": "0.63.6",
"@unocss/reset": "0.65.1",
"ansi-to-html": "0.7.2",
"async-lock": "1.4.1",
"chart.js": "4.4.4",
"chart.js": "4.4.7",
"fuse.js": "7.0.0",
"solid-chartjs": "1.3.11",
"solid-icons": "1.1.0",
"solid-js": "1.9.1",
"solid-js": "1.9.3",
"solid-tippy": "0.2.1",
"solid-toast": "0.5.0",
"tippy.js": "6.3.7",
"ts-pattern": "5.4.0",
"valibot": "0.42.1"
"ts-pattern": "5.5.0",
"valibot": "1.0.0-beta.9"
},
"packageManager": "yarn@4.1.1+sha512.ec40d0639bb307441b945d9467139cbb88d14394baac760b52eca038b330d16542d66fef61574271534ace5a200518dabf3b53a85f1f9e4bfa37141b538a9590"
}
2 changes: 1 addition & 1 deletion dashboard/src/components/templates/app/ContainerLog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export const ContainerLog: Component<ContainerLogProps> = (props) => {
logStreamAbort.abort()
})

let logRef: HTMLDivElement
let logRef!: HTMLDivElement
createEffect(() => {
logs() // on change to (streamed) logs
const ref = logRef
Expand Down
10 changes: 5 additions & 5 deletions dashboard/src/components/templates/build/BuildLog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const BuildLog: Component<BuildLogProps> = (props) => {
() => !props.finished && props.buildID,
(id) => client.getBuildLogStream({ buildId: id }, { signal: logStreamAbort.signal }),
)
const [streamedLog, setStreamedLog] = createSignal(new Uint8Array())
const [streamedLog, setStreamedLog] = createSignal<Uint8Array<ArrayBufferLike>>(new Uint8Array())
createEffect(() => {
const stream = buildLogStream()
if (!stream) return
Expand All @@ -49,19 +49,19 @@ export const BuildLog: Component<BuildLogProps> = (props) => {
logStreamAbort.abort()
})

let logRef: HTMLDivElement
let streamLogRef: HTMLDivElement
let logRef!: HTMLDivElement
let streamLogRef!: HTMLDivElement
createEffect(() => {
if (!buildLog()) return
const ref = logRef as HTMLDivElement
const ref = logRef
if (!ref) return
setTimeout(() => {
ref.scrollTop = ref.scrollHeight
})
})
createEffect(() => {
if (!streamedLog()) return
const ref = streamLogRef as HTMLDivElement
const ref = streamLogRef
if (!ref) return
if (atBottom()) {
ref.scrollTop = ref.scrollHeight
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const CreateAppForm: Component = () => {
const [repoBySearchParam] = createResource(
() => searchParams.repositoryID ?? '',
(id) => {
return id !== '' ? client.getRepository({ repositoryId: id }) : undefined
return typeof id === 'string' && id !== '' ? client.getRepository({ repositoryId: id }) : undefined
},
)

Expand Down
2 changes: 1 addition & 1 deletion dashboard/src/libs/buffers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ const escapeHTML = (s: string): string =>
})

export const toWithAnsi = (str: string): string => ansiDecoder.toHtml(escapeHTML(str))
export const toUTF8WithAnsi = (arr: Uint8Array): string => toWithAnsi(utf8Decoder.decode(arr.buffer))
export const toUTF8WithAnsi = (arr: Uint8Array): string => toWithAnsi(utf8Decoder.decode(arr))
Loading

0 comments on commit 00e17d7

Please sign in to comment.