fix: constants package updates
This commit is contained in:
parent
d0f9a4d245
commit
75ada1bfac
7 changed files with 93 additions and 24 deletions
|
|
@ -2,5 +2,5 @@
|
||||||
"name": "@plane/constants",
|
"name": "@plane/constants",
|
||||||
"version": "0.24.0",
|
"version": "0.24.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"main": "./index.ts"
|
"main": "./src/index.ts"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
15
packages/constants/src/endpoints.ts
Normal file
15
packages/constants/src/endpoints.ts
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
export const API_BASE_URL = process.env.NEXT_PUBLIC_API_BASE_URL || "";
|
||||||
|
// PI Base Url
|
||||||
|
export const PI_BASE_URL = process.env.NEXT_PUBLIC_PI_BASE_URL || "";
|
||||||
|
// God Mode Admin App Base Url
|
||||||
|
export const ADMIN_BASE_URL = process.env.NEXT_PUBLIC_ADMIN_BASE_URL || "";
|
||||||
|
export const ADMIN_BASE_PATH = process.env.NEXT_PUBLIC_ADMIN_BASE_PATH || "";
|
||||||
|
export const GOD_MODE_URL = encodeURI(`${ADMIN_BASE_URL}${ADMIN_BASE_PATH}/`);
|
||||||
|
// Publish App Base Url
|
||||||
|
export const SPACE_BASE_URL = process.env.NEXT_PUBLIC_SPACE_BASE_URL || "";
|
||||||
|
export const SPACE_BASE_PATH = process.env.NEXT_PUBLIC_SPACE_BASE_PATH || "";
|
||||||
|
export const SITES_URL = encodeURI(`${SPACE_BASE_URL}${SPACE_BASE_PATH}/`);
|
||||||
|
// Live App Base Url
|
||||||
|
export const LIVE_BASE_URL = process.env.NEXT_PUBLIC_LIVE_BASE_URL || "";
|
||||||
|
export const LIVE_BASE_PATH = process.env.NEXT_PUBLIC_LIVE_BASE_PATH || "";
|
||||||
|
export const LIVE_URL = encodeURI(`${LIVE_BASE_URL}${LIVE_BASE_PATH}/`);
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
export * from "./auth";
|
export * from "./auth";
|
||||||
|
export * from "./endpoints";
|
||||||
export * from "./issue";
|
export * from "./issue";
|
||||||
export * from "./workspace";
|
export * from "./workspace";
|
||||||
76
packages/constants/src/workspace.ts
Normal file
76
packages/constants/src/workspace.ts
Normal file
|
|
@ -0,0 +1,76 @@
|
||||||
|
export const ORGANIZATION_SIZE = [
|
||||||
|
"Just myself",
|
||||||
|
"2-10",
|
||||||
|
"11-50",
|
||||||
|
"51-200",
|
||||||
|
"201-500",
|
||||||
|
"500+",
|
||||||
|
];
|
||||||
|
|
||||||
|
export const RESTRICTED_URLS = [
|
||||||
|
"404",
|
||||||
|
"accounts",
|
||||||
|
"api",
|
||||||
|
"create-workspace",
|
||||||
|
"god-mode",
|
||||||
|
"installations",
|
||||||
|
"invitations",
|
||||||
|
"onboarding",
|
||||||
|
"profile",
|
||||||
|
"spaces",
|
||||||
|
"workspace-invitations",
|
||||||
|
"password",
|
||||||
|
"flags",
|
||||||
|
"monitor",
|
||||||
|
"monitoring",
|
||||||
|
"ingest",
|
||||||
|
"plane-pro",
|
||||||
|
"plane-ultimate",
|
||||||
|
"enterprise",
|
||||||
|
"plane-enterprise",
|
||||||
|
"disco",
|
||||||
|
"silo",
|
||||||
|
"chat",
|
||||||
|
"calendar",
|
||||||
|
"drive",
|
||||||
|
"channels",
|
||||||
|
"upgrade",
|
||||||
|
"billing",
|
||||||
|
"sign-in",
|
||||||
|
"sign-up",
|
||||||
|
"signin",
|
||||||
|
"signup",
|
||||||
|
"config",
|
||||||
|
"live",
|
||||||
|
"admin",
|
||||||
|
"m",
|
||||||
|
"import",
|
||||||
|
"importers",
|
||||||
|
"integrations",
|
||||||
|
"integration",
|
||||||
|
"configuration",
|
||||||
|
"initiatives",
|
||||||
|
"initiative",
|
||||||
|
"config",
|
||||||
|
"workflow",
|
||||||
|
"workflows",
|
||||||
|
"epics",
|
||||||
|
"epic",
|
||||||
|
"story",
|
||||||
|
"mobile",
|
||||||
|
"dashboard",
|
||||||
|
"desktop",
|
||||||
|
"onload",
|
||||||
|
"real-time",
|
||||||
|
"one",
|
||||||
|
"pages",
|
||||||
|
"mobile",
|
||||||
|
"business",
|
||||||
|
"pro",
|
||||||
|
"settings",
|
||||||
|
"monitor",
|
||||||
|
"license",
|
||||||
|
"licenses",
|
||||||
|
"instances",
|
||||||
|
"instance",
|
||||||
|
];
|
||||||
|
|
@ -1,23 +0,0 @@
|
||||||
export const ORGANIZATION_SIZE = [
|
|
||||||
"Just myself",
|
|
||||||
"2-10",
|
|
||||||
"11-50",
|
|
||||||
"51-200",
|
|
||||||
"201-500",
|
|
||||||
"500+",
|
|
||||||
];
|
|
||||||
|
|
||||||
export const RESTRICTED_URLS = [
|
|
||||||
"404",
|
|
||||||
"accounts",
|
|
||||||
"api",
|
|
||||||
"create-workspace",
|
|
||||||
"error",
|
|
||||||
"god-mode",
|
|
||||||
"installations",
|
|
||||||
"invitations",
|
|
||||||
"onboarding",
|
|
||||||
"profile",
|
|
||||||
"spaces",
|
|
||||||
"workspace-invitations",
|
|
||||||
];
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue