zwischenstand

This commit is contained in:
2025-05-28 11:35:02 +02:00
parent 07ff15aba0
commit 4774d3fdc1
105 changed files with 4129 additions and 1438 deletions

View File

@ -1,3 +1,5 @@
import type { LocationQueryValue, RouteLocationRawI18n } from 'vue-router'
export const bytesToBase64DataUrlAsync = async (
bytes: Uint8Array,
type = 'application/octet-stream'
@ -15,7 +17,7 @@ export const blobToImageAsync = (blob: Blob): Promise<HTMLImageElement> => {
return new Promise((resolve) => {
console.log('transform blob', blob)
const url = URL.createObjectURL(blob)
let img = new Image()
const img = new Image()
img.onload = () => {
URL.revokeObjectURL(url)
resolve(img)
@ -62,8 +64,6 @@ export const readableFileSize = (sizeInByte: number | string = 0) => {
return `${sizeInKb.toFixed(2)} KB`
}
import type { LocationQueryValue, RouteLocationRawI18n } from 'vue-router'
export const getSingleRouteParam = (
param: string | string[] | LocationQueryValue | LocationQueryValue[]
): string => {