Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
refactor: localize tabs at both the org and project level
lemmyMwaura7239158e7f86
diff --git a/frontend/src/types/TabSections.ts b/frontend/src/types/TabSections.tsdeleted file mode 100644index ef49919bc4..0000000000--- a/frontend/src/types/TabSections.ts+++ /dev/null@@ -1,13 +0,0 @@-enum TabSections {- Member = "members",- Roles = "roles",- Groups = "groups",- Identities = "identities",- ServiceTokens = "service-tokens"-}--const isTabSection = (value: any): value is TabSections => {- return Object.values(TabSections).includes(value);-}--export { TabSections, isTabSection }diff --git a/frontend/src/views/Org/types/TabSections.ts b/frontend/src/views/Org/types/TabSections.tsnew file mode 100644index 0000000000..ffc93587e9--- /dev/null+++ b/frontend/src/views/Org/types/TabSections.ts@@ -0,0 +1,11 @@+export enum TabSections {+ Member = "members",+ Roles = "roles",+ Groups = "groups",+ Identities = "identities",+ ServiceTokens = "service-tokens"+}++export const isTabSection = (value: string): value is TabSections => {+ return (Object.values(TabSections) as string[]).includes(value);+}diff --git a/frontend/src/types/index.ts b/frontend/src/views/Org/types/index.tssimilarity index 100%rename from frontend/src/types/index.tsrename to frontend/src/views/Org/types/index.tsdiff --git a/frontend/src/views/Project/types/TabSections.ts b/frontend/src/views/Project/types/TabSections.tsnew file mode 100644index 0000000000..ffc93587e9--- /dev/null+++ b/frontend/src/views/Project/types/TabSections.ts@@ -0,0 +1,11 @@+export enum TabSections {+ Member = "members",+ Roles = "roles",+ Groups = "groups",+ Identities = "identities",+ ServiceTokens = "service-tokens"+}++export const isTabSection = (value: string): value is TabSections => {+ return (Object.values(TabSections) as string[]).includes(value);+}diff --git a/frontend/src/views/Project/types/index.ts b/frontend/src/views/Project/types/index.tsnew file mode 100644index 0000000000..76f47c6f27--- /dev/null+++ b/frontend/src/views/Project/types/index.ts@@ -0,0 +1,3 @@+import { TabSections, isTabSection } from "./TabSections";++export { TabSections, isTabSection };