mirror of
https://github.com/ReaJason/MemShellParty.git
synced 2026-09-21 22:50:42 +08:00
style: fmt code
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import type { LinkItemType } from "fumadocs-ui/layouts/shared";
|
||||
|
||||
import { LanguageSwitcher } from "@/components/language-switcher";
|
||||
|
||||
export const siteConfig = {
|
||||
|
||||
@@ -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
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user