[WEB-5798] refactor: web and admin auth related components and update admin designs (#8431)
* refactor: web and admin auth related components and update admin designs. * fix: format
This commit is contained in:
parent
777200db7b
commit
0c795e95ac
80 changed files with 1087 additions and 950 deletions
|
|
@ -1 +1,3 @@
|
|||
export type TExtendedLoginMediums = never;
|
||||
|
||||
export type TExtendedInstanceAuthenticationModeKeys = never;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,19 @@
|
|||
import type { TExtendedInstanceAuthenticationModeKeys } from "./auth-ee";
|
||||
|
||||
export type TCoreInstanceAuthenticationModeKeys =
|
||||
| "unique-codes"
|
||||
| "passwords-login"
|
||||
| "google"
|
||||
| "github"
|
||||
| "gitlab"
|
||||
| "gitea";
|
||||
|
||||
export type TInstanceAuthenticationModeKeys =
|
||||
| TCoreInstanceAuthenticationModeKeys
|
||||
| TExtendedInstanceAuthenticationModeKeys;
|
||||
|
||||
export type TInstanceAuthenticationModes = {
|
||||
key: string;
|
||||
key: TInstanceAuthenticationModeKeys;
|
||||
name: string;
|
||||
description: string;
|
||||
icon: React.ReactNode;
|
||||
|
|
@ -53,4 +67,17 @@ export type TGetBaseAuthenticationModeProps = {
|
|||
resolvedTheme: string | undefined;
|
||||
};
|
||||
|
||||
export type TOAuthOption = {
|
||||
id: string;
|
||||
text: string;
|
||||
icon: React.ReactNode;
|
||||
onClick: () => void;
|
||||
enabled?: boolean;
|
||||
};
|
||||
|
||||
export type TOAuthConfigs = {
|
||||
isOAuthEnabled: boolean;
|
||||
oAuthOptions: TOAuthOption[];
|
||||
};
|
||||
|
||||
export type TCoreLoginMediums = "email" | "magic-code" | "github" | "gitlab" | "google" | "gitea";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue