-
Notifications
You must be signed in to change notification settings - Fork 799
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[backend/frontend] Add EE identity support (#4765)
- Loading branch information
Showing
49 changed files
with
927 additions
and
557 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,46 +1,61 @@ | ||
import { | ||
CommonColors, | ||
PaletteColorOptions, | ||
PaletteMode, | ||
PaletteOptions, | ||
TypeBackground, | ||
TypeText, | ||
} from '@mui/material/styles/createPalette'; | ||
import { CommonColors, PaletteColorOptions, PaletteMode, PaletteOptions, TypeBackground, TypeText } from '@mui/material/styles/createPalette'; | ||
import { Theme as MuiTheme, ThemeOptions } from '@mui/material/styles/createTheme'; | ||
|
||
declare module '@mui/material/IconButton' { | ||
interface IconButtonPropsColorOverrides { | ||
ee: true | ||
} | ||
} | ||
|
||
declare module '@mui/material/Button' { | ||
interface ButtonPropsColorOverrides { | ||
ee: true | ||
} | ||
} | ||
|
||
declare module '@mui/material/SvgIcon' { | ||
interface SvgIconPropsColorOverrides { | ||
ee: true | ||
} | ||
} | ||
|
||
interface ExtendedColor extends PaletteColorOptions { | ||
main: string; | ||
dark: string; | ||
palette: ExtendedPaletteOptions; | ||
text: Partial<TypeText>; | ||
mode: PaletteMode; | ||
main: string | ||
dark: string | ||
palette: ExtendedPaletteOptions | ||
text: Partial<TypeText> | ||
mode: PaletteMode | ||
background: string | ||
} | ||
|
||
interface ExtendedBackground extends TypeBackground { | ||
nav: string; | ||
accent: string; | ||
shadow: string; | ||
nav: string | ||
accent: string | ||
shadow: string | ||
} | ||
|
||
interface ExtendedPaletteOptions extends PaletteOptions { | ||
common: Partial<CommonColors>; | ||
background: Partial<ExtendedBackground>; | ||
primary: Partial<ExtendedColor>; | ||
error: Partial<ExtendedColor>; | ||
success: Partial<ExtendedColor>; | ||
chip: Partial<ExtendedColor>; | ||
secondary: Partial<ExtendedColor>; | ||
mode: PaletteMode; | ||
common: Partial<CommonColors> | ||
background: Partial<ExtendedBackground> | ||
primary: Partial<ExtendedColor> | ||
error: Partial<ExtendedColor> | ||
success: Partial<ExtendedColor> | ||
chip: Partial<ExtendedColor> | ||
ee: Partial<ExtendedColor> | ||
secondary: Partial<ExtendedColor> | ||
mode: PaletteMode | ||
} | ||
|
||
interface ExtendedThemeOptions extends ThemeOptions { | ||
logo: string | null; | ||
logo_collapsed: string | null; | ||
palette: ExtendedPaletteOptions; | ||
logo: string | null | ||
logo_collapsed: string | null | ||
palette: ExtendedPaletteOptions | ||
borderRadius: number | ||
} | ||
|
||
export interface Theme extends MuiTheme { | ||
logo: string | undefined | ||
logo_collapsed: string | undefined | ||
palette: ExtendedPaletteOptions; | ||
borderRadius: number | ||
palette: ExtendedPaletteOptions | ||
} |
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
51 changes: 0 additions & 51 deletions
51
opencti-platform/opencti-front/src/private/components/common/EnterpriseEdition.tsx
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.