add version
This commit is contained in:
parent
ff44a2f69f
commit
248f382276
6 changed files with 37 additions and 9 deletions
11
src/App.tsx
11
src/App.tsx
|
@ -1,23 +1,16 @@
|
|||
import { BrowserRouter, Route, Routes } from 'react-router-dom'
|
||||
import HomePage from './app/feed/pages/HomePage.tsx'
|
||||
import { PostsService } from './app/feed/posts/postsService.ts'
|
||||
import AuthorPage from './app/feed/pages/AuthorPage.tsx'
|
||||
import { MediaService } from './app/media/mediaService.ts'
|
||||
import SignupPage from './app/auth/pages/SignupPage.tsx'
|
||||
import LoginPage from './app/auth/pages/LoginPage.tsx'
|
||||
import { AuthService } from './app/auth/authService.ts'
|
||||
import LogoutPage from './app/auth/pages/LogoutPage.tsx'
|
||||
import UnauthorizedHandler from './app/auth/components/UnauthorizedHandler.tsx'
|
||||
import AdminPage from './app/admin/pages/AdminPage.tsx'
|
||||
import SignupCodesManagementPage from './app/admin/pages/subpages/SignupCodesManagementPage.tsx'
|
||||
import { initUser } from './app/user/user.ts'
|
||||
import { useRefreshSessionLoop } from './useRefreshSessionLoop.ts'
|
||||
import { initApp } from './initApp.ts'
|
||||
|
||||
const postService = new PostsService()
|
||||
const mediaService = new MediaService()
|
||||
const authService = new AuthService()
|
||||
|
||||
initUser()
|
||||
const { postService, mediaService, authService } = initApp()
|
||||
|
||||
export default function App() {
|
||||
useRefreshSessionLoop(authService)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue