-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(frontend)!: Remove themes folder
- Loading branch information
1 parent
4ad73b5
commit ea1f0f2
Showing
55 changed files
with
53 additions
and
198 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,7 @@ | ||
import * as React from "react"; | ||
|
||
import { getSessionData } from "@/graphql/get-session-data"; | ||
import { SignInView } from "@/plugins/core/views/views/auth/sign/in/sign-in-view"; | ||
|
||
export default async function Page() { | ||
const { theme_id } = await getSessionData(); | ||
const PageFromTheme: React.LazyExoticComponent<() => JSX.Element> = | ||
React.lazy(async () => | ||
import( | ||
`../../../../../themes/${theme_id}/core/views/auth/sign/in/sign-in-view` | ||
).catch( | ||
async () => | ||
import("../../../../../themes/1/core/views/auth/sign/in/sign-in-view") | ||
) | ||
); | ||
|
||
return <PageFromTheme />; | ||
return <SignInView />; | ||
} |
15 changes: 2 additions & 13 deletions
15
frontend/app/[locale]/(main)/(container)/register/page.tsx
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,18 +1,7 @@ | ||
import * as React from "react"; | ||
|
||
import { getSessionData } from "@/graphql/get-session-data"; | ||
import { SignUpView } from "@/plugins/core/views/views/auth/sign/up/sign-up-view"; | ||
|
||
export default async function Page() { | ||
const { theme_id } = await getSessionData(); | ||
const PageFromTheme: React.LazyExoticComponent<() => JSX.Element> = | ||
React.lazy(async () => | ||
import( | ||
`../../../../../themes/${theme_id}/core/views/auth/sign/up/sign-up-view` | ||
).catch( | ||
async () => | ||
import("../../../../../themes/1/core/views/auth/sign/up/sign-up-view") | ||
) | ||
); | ||
|
||
return <PageFromTheme />; | ||
return <SignUpView />; | ||
} |
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
17 changes: 2 additions & 15 deletions
17
frontend/app/[locale]/(main)/(container)/settings/notifications/page.tsx
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,20 +1,7 @@ | ||
import * as React from "react"; | ||
|
||
import { getSessionData } from "@/graphql/get-session-data"; | ||
import { NotificationsSettingsView } from "@/plugins/core/views/views/settings/views/notifications/notifications-settings-view"; | ||
|
||
export default async function Page() { | ||
const { theme_id } = await getSessionData(); | ||
const PageFromTheme: React.LazyExoticComponent<() => JSX.Element> = | ||
React.lazy(async () => | ||
import( | ||
`../../../../../../themes/${theme_id}/core/views/settings/views/notifications/notifications-settings-view` | ||
).catch( | ||
async () => | ||
import( | ||
"../../../../../../themes/1/core/views/settings/views/notifications/notifications-settings-view" | ||
) | ||
) | ||
); | ||
|
||
return <PageFromTheme />; | ||
return <NotificationsSettingsView />; | ||
} |
17 changes: 2 additions & 15 deletions
17
frontend/app/[locale]/(main)/(container)/settings/page.tsx
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,20 +1,7 @@ | ||
import * as React from "react"; | ||
|
||
import { getSessionData } from "@/graphql/get-session-data"; | ||
import { OverviewSettingsView } from "@/plugins/core/views/views/settings/views/overview/overview-settings-view"; | ||
|
||
export default async function Page() { | ||
const { theme_id } = await getSessionData(); | ||
const PageFromTheme: React.LazyExoticComponent<() => JSX.Element> = | ||
React.lazy(async () => | ||
import( | ||
`../../../../../themes/${theme_id}/core/views/settings/views/overview/overview-settings-view` | ||
).catch( | ||
async () => | ||
import( | ||
"../../../../../themes/1/core/views/settings/views/overview/overview-settings-view" | ||
) | ||
) | ||
); | ||
|
||
return <PageFromTheme />; | ||
return <OverviewSettingsView />; | ||
} |
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,12 +1,9 @@ | ||
import { ErrorViewSSR } from "@/components/views/error-view-ssr"; | ||
import { getSessionData } from "@/graphql/get-session-data"; | ||
|
||
export default async function NotFoundPage() { | ||
const { theme_id } = await getSessionData(); | ||
|
||
export default function NotFoundPage() { | ||
return ( | ||
<div className="container"> | ||
<ErrorViewSSR theme_id={theme_id} code="404" /> | ||
<ErrorViewSSR code="404" /> | ||
</div> | ||
); | ||
} |
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 |
---|---|---|
@@ -1,22 +1,12 @@ | ||
import * as React from "react"; | ||
|
||
import { ErrorView } from "@/plugins/core/views/views/global/error/error-view"; | ||
|
||
export interface ErrorViewProps { | ||
code: string | "403" | "404" | "500"; | ||
className?: string; | ||
} | ||
|
||
interface Props extends ErrorViewProps { | ||
theme_id: number; | ||
} | ||
|
||
export const ErrorViewSSR = ({ theme_id, ...props }: Props) => { | ||
const ErrorView: React.LazyExoticComponent< | ||
(props: ErrorViewProps) => JSX.Element | ||
> = React.lazy(async () => | ||
import(`../../themes/${theme_id}/core/views/global/error/error-view`).catch( | ||
async () => import("../../themes/1/core/views/global/error/error-view") | ||
) | ||
); | ||
|
||
export const ErrorViewSSR = (props: ErrorViewProps) => { | ||
return <ErrorView {...props} />; | ||
}; |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
Oops, something went wrong.