style: fmt code

This commit is contained in:
ReaJason
2026-04-26 21:33:15 +08:00
parent d10323a054
commit ee560ff7ee
150 changed files with 948 additions and 1522 deletions
+1
View File
@@ -1,4 +1,5 @@
import type { LinkItemType } from "fumadocs-ui/layouts/shared";
import { LanguageSwitcher } from "@/components/language-switcher";
export const siteConfig = {
+1 -1
View File
@@ -1,5 +1,5 @@
import { loader, type InferPageType } from "fumadocs-core/source";
import { docs } from "collections/server";
import { loader, type InferPageType } from "fumadocs-core/source";
import { lucideIconsPlugin } from "fumadocs-core/source/lucide-icons";
export const source = loader({
+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",