chore: добавить SLM-каркас admin
- добавлен app entrypoint, main layout и dashboard screen\n- настроены алиасы SLM-слоёв и PostCSS для CSS Modules\n- перенесены глобальные стили в shared/styles
This commit is contained in:
10
apps/admin/src/app/app.tsx
Normal file
10
apps/admin/src/app/app.tsx
Normal file
@@ -0,0 +1,10 @@
|
||||
import { MainLayout } from "layouts/main"
|
||||
import { DashboardScreen } from "screens/dashboard"
|
||||
|
||||
export function App() {
|
||||
return (
|
||||
<MainLayout>
|
||||
<DashboardScreen />
|
||||
</MainLayout>
|
||||
)
|
||||
}
|
||||
18
apps/admin/src/app/main.tsx
Normal file
18
apps/admin/src/app/main.tsx
Normal file
@@ -0,0 +1,18 @@
|
||||
import "shared/styles/global.css"
|
||||
|
||||
import { StrictMode } from "react"
|
||||
import { createRoot } from "react-dom/client"
|
||||
|
||||
import { App } from "./app"
|
||||
|
||||
const root = document.getElementById("root")
|
||||
|
||||
if (!root) {
|
||||
throw new Error("Root element #root not found")
|
||||
}
|
||||
|
||||
createRoot(root).render(
|
||||
<StrictMode>
|
||||
<App />
|
||||
</StrictMode>,
|
||||
)
|
||||
Reference in New Issue
Block a user