* chore: return workspace name and logo in profile settings api * chore: remove unwanted fields * fix: backend * feat: workspace settings * feat: workspce settings + layouting * feat: profile + workspace settings ui * chore: project settings + refactoring * routes * fix: handled no project * fix: css + build * feat: profile settings internal screens upgrade * fix: workspace settings internal screens * fix: external scrolling allowed * fix: css * fix: css * fix: css * fix: preferences settings * fix: css * fix: mobile interface * fix: profile redirections * fix: dark theme * fix: css * fix: css * feat: scroll * fix: refactor * fix: bug fixes * fix: refactor * fix: css * fix: routes * fix: first day of the week * fix: scrolling * fix: refactoring * fix: project -> projects * fix: refactoring * fix: refactor * fix: no authorized view consistency * fix: folder structure * fix: revert * fix: handled redirections * fix: scroll * fix: deleted old routes * fix: empty states * fix: headings * fix: settings description * fix: build --------- Co-authored-by: gakshita <akshitagoyal1516@gmail.com> Co-authored-by: Akshita Goyal <36129505+gakshita@users.noreply.github.com>
52 lines
1.5 KiB
TypeScript
52 lines
1.5 KiB
TypeScript
import { PROFILE_SETTINGS } from ".";
|
|
import { WORKSPACE_SETTINGS } from "./workspace";
|
|
|
|
export enum WORKSPACE_SETTINGS_CATEGORY {
|
|
ADMINISTRATION = "administration",
|
|
FEATURES = "features",
|
|
DEVELOPER = "developer",
|
|
}
|
|
|
|
export enum PROFILE_SETTINGS_CATEGORY {
|
|
YOUR_PROFILE = "your profile",
|
|
DEVELOPER = "developer",
|
|
}
|
|
|
|
export enum PROJECT_SETTINGS_CATEGORY {
|
|
PROJECTS = "projects",
|
|
}
|
|
|
|
export const WORKSPACE_SETTINGS_CATEGORIES = [
|
|
WORKSPACE_SETTINGS_CATEGORY.ADMINISTRATION,
|
|
WORKSPACE_SETTINGS_CATEGORY.FEATURES,
|
|
WORKSPACE_SETTINGS_CATEGORY.DEVELOPER,
|
|
];
|
|
|
|
export const PROFILE_SETTINGS_CATEGORIES = [
|
|
PROFILE_SETTINGS_CATEGORY.YOUR_PROFILE,
|
|
PROFILE_SETTINGS_CATEGORY.DEVELOPER,
|
|
];
|
|
|
|
export const PROJECT_SETTINGS_CATEGORIES = [PROJECT_SETTINGS_CATEGORY.PROJECTS];
|
|
|
|
export const GROUPED_WORKSPACE_SETTINGS = {
|
|
[WORKSPACE_SETTINGS_CATEGORY.ADMINISTRATION]: [
|
|
WORKSPACE_SETTINGS["general"],
|
|
WORKSPACE_SETTINGS["members"],
|
|
WORKSPACE_SETTINGS["billing-and-plans"],
|
|
WORKSPACE_SETTINGS["export"],
|
|
],
|
|
[WORKSPACE_SETTINGS_CATEGORY.FEATURES]: [],
|
|
[WORKSPACE_SETTINGS_CATEGORY.DEVELOPER]: [WORKSPACE_SETTINGS["webhooks"]],
|
|
};
|
|
|
|
export const GROUPED_PROFILE_SETTINGS = {
|
|
[PROFILE_SETTINGS_CATEGORY.YOUR_PROFILE]: [
|
|
PROFILE_SETTINGS["profile"],
|
|
PROFILE_SETTINGS["preferences"],
|
|
PROFILE_SETTINGS["notifications"],
|
|
PROFILE_SETTINGS["security"],
|
|
PROFILE_SETTINGS["activity"],
|
|
],
|
|
[PROFILE_SETTINGS_CATEGORY.DEVELOPER]: [PROFILE_SETTINGS["api-tokens"]],
|
|
};
|