small fixes
This commit is contained in:
@@ -1,11 +1,12 @@
|
|||||||
FROM golang:alpine AS build
|
FROM golang:alpine AS build
|
||||||
|
|
||||||
RUN apk update && \
|
RUN apk update && \
|
||||||
apk add nodejs-current npm
|
apk add nodejs npm
|
||||||
|
|
||||||
COPY . /usr/src/yt-dlp-webui
|
COPY . /usr/src/yt-dlp-webui
|
||||||
|
|
||||||
WORKDIR /usr/src/yt-dlp-webui/frontend
|
WORKDIR /usr/src/yt-dlp-webui/frontend
|
||||||
|
|
||||||
RUN npm install
|
RUN npm install
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
|
|||||||
@@ -16,11 +16,11 @@ export type RPCRequest = {
|
|||||||
id?: string
|
id?: string
|
||||||
}
|
}
|
||||||
|
|
||||||
export type RPCResponse<T> = {
|
export type RPCResponse<T> = Readonly<{
|
||||||
result: T
|
result: T
|
||||||
error: number | null
|
error: number | null
|
||||||
id?: string
|
id?: string
|
||||||
}
|
}>
|
||||||
|
|
||||||
type DownloadInfo = {
|
type DownloadInfo = {
|
||||||
url: string
|
url: string
|
||||||
@@ -41,18 +41,18 @@ type DownloadProgress = {
|
|||||||
process_status: number
|
process_status: number
|
||||||
}
|
}
|
||||||
|
|
||||||
export type RPCResult = {
|
export type RPCResult = Readonly<{
|
||||||
id: string
|
id: string
|
||||||
progress: DownloadProgress
|
progress: DownloadProgress
|
||||||
info: DownloadInfo
|
info: DownloadInfo
|
||||||
}
|
}>
|
||||||
|
|
||||||
export type RPCParams = {
|
export type RPCParams = {
|
||||||
URL: string
|
URL: string
|
||||||
Params?: string
|
Params?: string
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface DLMetadata {
|
export type DLMetadata = {
|
||||||
formats: Array<DLFormat>
|
formats: Array<DLFormat>
|
||||||
best: DLFormat
|
best: DLFormat
|
||||||
thumbnail: string
|
thumbnail: string
|
||||||
|
|||||||
Reference in New Issue
Block a user