mirror of https://github.com/portainer/portainer
30 lines
1.6 KiB
TypeScript
30 lines
1.6 KiB
TypeScript
// try to declare constant where it's needed, not in a global file
|
|
export const API_ENDPOINT_AUTH = 'api/auth';
|
|
export const API_ENDPOINT_BACKUP = 'api/backup';
|
|
export const API_ENDPOINT_CUSTOM_TEMPLATES = 'api/custom_templates';
|
|
export const API_ENDPOINT_EDGE_GROUPS = 'api/edge_groups';
|
|
export const API_ENDPOINT_EDGE_JOBS = 'api/edge_jobs';
|
|
export const API_ENDPOINT_EDGE_STACKS = 'api/edge_stacks';
|
|
export const API_ENDPOINT_EDGE_TEMPLATES = 'api/edge_templates';
|
|
export const API_ENDPOINT_ENDPOINTS = 'api/endpoints';
|
|
export const API_ENDPOINT_ENDPOINT_GROUPS = 'api/endpoint_groups';
|
|
export const API_ENDPOINT_KUBERNETES = 'api/kubernetes';
|
|
export const API_ENDPOINT_MOTD = 'api/motd';
|
|
export const API_ENDPOINT_REGISTRIES = 'api/registries';
|
|
export const API_ENDPOINT_RESOURCE_CONTROLS = 'api/resource_controls';
|
|
export const API_ENDPOINT_SETTINGS = 'api/settings';
|
|
export const API_ENDPOINT_STACKS = 'api/stacks';
|
|
export const API_ENDPOINT_SUPPORT = 'api/support';
|
|
export const API_ENDPOINT_USERS = 'api/users';
|
|
export const API_ENDPOINT_TAGS = 'api/tags';
|
|
export const API_ENDPOINT_TEAMS = 'api/teams';
|
|
export const API_ENDPOINT_TEAM_MEMBERSHIPS = 'api/team_memberships';
|
|
export const API_ENDPOINT_TEMPLATES = 'api/templates';
|
|
export const API_ENDPOINT_WEBHOOKS = 'api/webhooks';
|
|
export const PAGINATION_MAX_ITEMS = 10;
|
|
export const APPLICATION_CACHE_VALIDITY = 3600;
|
|
export const CONSOLE_COMMANDS_LABEL_PREFIX = 'io.portainer.commands.';
|
|
export const PREDEFINED_NETWORKS = ['host', 'bridge', 'ingress', 'nat', 'none'];
|
|
export const PORTAINER_FADEOUT = 1500;
|
|
export const STACK_NAME_VALIDATION_REGEX = '^[-_a-z0-9]+$';
|