mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
f6957fb160
* chore: rename classes to models * refactor: add effects and reducers folder * chore: update user data storage path * chore: subscribe callback * chore: nav items persist, board layout (#1879) * chore: load workspace items, load folders and pages from workspace, load raw document data, load raw grid data * chore: clear folders and pages before load, new folder event * chore: update folder name backend call * chore: folder expand animation * chore: hide arrow on empty folder * chore: Board page layout, board store, board sample data * chore: board block item * chore: test db id * chore: persist new page, persist page rename, create workspace on read error * chore: boardblockitem details btn * chore: boardblockitem multiselect data and colors * chore: board item drag * chore: drag start on move * chore: remove databaseId * chore: remove databaseId * chore: import service classes into auth hook * chore: sign out option * chore: login page event * chore: signup event * chore: make workspace hook to use service * chore: page and folder hooks use backend services * chore: new folder use backend service * chore: error handler page * chore: try catch hooks to show error page * chore: install i18n package and use flutters i18n files * fix: signin signup margin * chore: fix compile errors * chore: remove unused codes * chore: open workspace after user register * chore: open workspace after user register * chore: add create grid demo * chore: load the cell data * chore: print the cell data * chore: fix project errors * fix: tauri UI issues (#1899) * chore: load workspace items, load folders and pages from workspace, load raw document data, load raw grid data * chore: clear folders and pages before load, new folder event * chore: update folder name backend call * chore: folder expand animation * chore: hide arrow on empty folder * chore: Board page layout, board store, board sample data * chore: board block item * chore: test db id * chore: persist new page, persist page rename, create workspace on read error * chore: boardblockitem details btn * chore: boardblockitem multiselect data and colors * chore: board item drag * chore: drag start on move * chore: remove databaseId * chore: remove databaseId * chore: import service classes into auth hook * chore: sign out option * chore: login page event * chore: signup event * chore: make workspace hook to use service * chore: page and folder hooks use backend services * chore: new folder use backend service * chore: error handler page * chore: try catch hooks to show error page * chore: install i18n package and use flutters i18n files * fix: signin signup margin * fix: new page overflow with folder * fix: sign out button * fix: sign out icon * chore: floating navigation panel * refactor: notify with error * chore: config window size * fix: test demo error * chore: update tests --------- Co-authored-by: Askarbek Zadauly <ascarbek@gmail.com>
44 lines
1.8 KiB
TypeScript
44 lines
1.8 KiB
TypeScript
import { Routes, Route, BrowserRouter } from 'react-router-dom';
|
|
|
|
import { TestColors } from './components/TestColors/TestColors';
|
|
import { Welcome } from './views/Welcome';
|
|
import { Provider } from 'react-redux';
|
|
import { store } from './stores/store';
|
|
import { DocumentPage } from './views/DocumentPage';
|
|
import { BoardPage } from './views/BoardPage';
|
|
import { GridPage } from './views/GridPage';
|
|
import { LoginPage } from './views/LoginPage';
|
|
import { ProtectedRoutes } from './components/auth/ProtectedRoutes';
|
|
import { SignUpPage } from './views/SignUpPage';
|
|
import { ConfirmAccountPage } from './views/ConfirmAccountPage';
|
|
import { ErrorHandlerPage } from './components/error/ErrorHandlerPage';
|
|
import initializeI18n from './stores/i18n/initializeI18n';
|
|
import { TestAPI } from './components/TestApiButton/TestAPI';
|
|
|
|
initializeI18n();
|
|
|
|
const App = () => {
|
|
return (
|
|
<BrowserRouter>
|
|
<Provider store={store}>
|
|
<Routes>
|
|
<Route path={'/'} element={<ProtectedRoutes />}>
|
|
<Route path={'/page/colors'} element={<TestColors />} />
|
|
<Route path={'/page/api-test'} element={<TestAPI />} />
|
|
<Route path={'/page/document/:id'} element={<DocumentPage />} />
|
|
<Route path={'/page/board/:id'} element={<BoardPage />} />
|
|
<Route path={'/page/grid/:id'} element={<GridPage />} />
|
|
<Route path={'/'} element={<Welcome />} />
|
|
</Route>
|
|
<Route path={'/auth/login'} element={<LoginPage />}></Route>
|
|
<Route path={'/auth/signUp'} element={<SignUpPage />}></Route>
|
|
<Route path={'/auth/confirm-account'} element={<ConfirmAccountPage />}></Route>
|
|
</Routes>
|
|
<ErrorHandlerPage></ErrorHandlerPage>
|
|
</Provider>
|
|
</BrowserRouter>
|
|
);
|
|
};
|
|
|
|
export default App;
|