Add UI components (shadcn) and utility functions for improved styling and layout

This commit is contained in:
ecwu
2024-12-20 13:17:34 +08:00
parent 9c2c314ce9
commit 7ecdae8f1d
59 changed files with 10412 additions and 625 deletions

View File

@@ -3,6 +3,7 @@ import { render } from "preact";
import { useState, useEffect } from "preact/hooks";
import { App } from "@/pages/App";
import { Tr, langCodeContext, LANG_OPTIONS } from "@/translate";
import { SidebarProvider } from "@/components/ui/sidebar";
function Base() {
const [langCode, _setLangCode] = useState("en-US");
@@ -46,7 +47,9 @@ function Base() {
return (
/* @ts-ignore */
<langCodeContext.Provider value={{ langCode, setLangCode }}>
<App />
<SidebarProvider>
<App />
</SidebarProvider>
</langCodeContext.Provider>
);
}