添加了postsPanel作为通用帖子显示板,增加了对jest测试的配置,添加了论坛主页,设定了论坛全局框架,设定了论坛基础主题色及主题切换、字号切换逻辑
Change-Id: I9fad0cf577088adb00c9850d405ccd23e6072413
diff --git a/src/index.tsx b/src/index.tsx
index 4bd29bd..69441df 100644
--- a/src/index.tsx
+++ b/src/index.tsx
@@ -6,6 +6,13 @@
import { RouterProvider } from "react-router";
import './global.css';
+if(localStorage.getItem("theme") === null) {
+ localStorage.setItem("theme", "light");
+ document.body.className="light";
+}else{
+ document.body.className=localStorage.getItem("theme")!;
+}
+
const root = createRoot(document.getElementById('root')!)
root.render(
<Provider store={store}>