-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make the frontend a module for customview
- Loading branch information
Showing
73 changed files
with
279 additions
and
128 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,11 @@ | ||
import { ThemeProvider } from "@mui/material/styles"; | ||
import React, { FC } from "react"; | ||
import React from "react"; | ||
import { createRoot } from "react-dom/client"; | ||
|
||
import { AironeSnackbarProvider } from "AironeSnackbarProvider"; | ||
import { AppRouter } from "AppRouter"; | ||
import { CheckTermsService } from "CheckTermsService"; | ||
import { ErrorHandler } from "ErrorHandler"; | ||
import { theme } from "Theme"; | ||
import "i18n/config"; | ||
|
||
const App: FC = () => { | ||
return ( | ||
<ThemeProvider theme={theme}> | ||
<AironeSnackbarProvider> | ||
<ErrorHandler> | ||
<CheckTermsService> | ||
<AppRouter /> | ||
</CheckTermsService> | ||
</ErrorHandler> | ||
</AironeSnackbarProvider> | ||
</ThemeProvider> | ||
); | ||
}; | ||
import { AppBase } from "AppBase"; | ||
|
||
const container = document.getElementById("app"); | ||
if (container == null) { | ||
throw new Error("failed to initializer React app."); | ||
} | ||
const root = createRoot(container); | ||
root.render(<App />); | ||
root.render(<AppBase />); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import { ThemeProvider } from "@mui/material/styles"; | ||
import React, { FC } from "react"; | ||
|
||
import { AironeSnackbarProvider } from "AironeSnackbarProvider"; | ||
import { CheckTermsService } from "CheckTermsService"; | ||
import { ErrorHandler } from "ErrorHandler"; | ||
import { theme } from "Theme"; | ||
import { AppRouter } from "routes/AppRouter"; | ||
import "i18n/config"; | ||
|
||
interface Props { | ||
customRoutes?: { | ||
path: string; | ||
element: React.ReactNode; | ||
}[]; | ||
} | ||
|
||
export const AppBase: FC<Props> = ({ customRoutes }) => { | ||
return ( | ||
<ThemeProvider theme={theme}> | ||
<AironeSnackbarProvider> | ||
<ErrorHandler> | ||
<CheckTermsService> | ||
<AppRouter customRoutes={customRoutes} /> | ||
</CheckTermsService> | ||
</ErrorHandler> | ||
</AironeSnackbarProvider> | ||
</ThemeProvider> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export * from "./ACLForm"; | ||
export * from "./ACLHistoryList"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
export * from "./AironeBreadcrumbs"; | ||
export * from "./AironeModal"; | ||
export * from "./AironeTableHeadCell"; | ||
export * from "./AironeTableHeadRow"; | ||
export * from "./AutocompleteWithAllSelector"; | ||
export * from "./ClipboardCopyButton"; | ||
export * from "./Confirmable"; | ||
export * from "./FlexBox"; | ||
export * from "./ImportForm"; | ||
export * from "./Loading"; | ||
export * from "./PageHeader"; | ||
export * from "./PaginationFooter"; | ||
export * from "./RateLimitedClickable"; | ||
export * from "./SearchBox"; | ||
export * from "./SubmitButton"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
// FIXME rethink export scope | ||
|
||
export * from "./EntityBreadcrumbs"; | ||
export * from "./EntityControlMenu"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// FIXME rethink export scope | ||
|
||
export * from "./CopyForm"; | ||
export * from "./EntryBreadcrumbs"; | ||
export * from "./EntryControlMenu"; | ||
export * from "./EntryImportModal"; | ||
export * from "./EntryListCard"; | ||
|
||
export * from "./entryForm/EntryFormSchema"; | ||
export * from "./entryForm/AttributeValueField"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export * from "./acl"; | ||
export * from "./common"; | ||
export * from "./entity"; | ||
export * from "./entry"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.