style: fmt code

This commit is contained in:
ReaJason
2026-04-26 20:39:53 +08:00
parent d9733e1512
commit a8fb030a60
150 changed files with 948 additions and 1522 deletions
+2 -10
View File
@@ -5,11 +5,7 @@ export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs));
}
export function downloadContent(
content: Blob,
fileName: string,
fileExtension: string,
) {
export function downloadContent(content: Blob, fileName: string, fileExtension: string) {
const link = document.createElement("a");
link.href = URL.createObjectURL(content);
link.download = `${fileName}${fileExtension}`;
@@ -27,11 +23,7 @@ export function base64ToBytes(base64String: string) {
return new Uint8Array(byteNumbers);
}
export function downloadBytes(
base64String: string,
className?: string,
jarName?: string,
) {
export function downloadBytes(base64String: string, className?: string, jarName?: string) {
const byteArray = base64ToBytes(base64String);
const blob = new Blob([byteArray], {
type: className ? "application/java-vm" : "application/java-archive",