dashboard/config/query-params.js

56 lines
1.5 KiB
JavaScript

// Debugging
export const SPA = 'spa';
// Login/Initial setup
export const LOCAL = 'local';
export const SETUP = 'setup';
export const STEP = 'step';
export const LOGGED_OUT = 'logged-out';
export const TIMED_OUT = 'timed-out';
export const AUTH_TEST = 'test';
export const BACK_TO = 'back-to';
export const GITHUB_CODE = 'code';
export const GITHUB_NONCE = 'state';
export const GITHUB_SCOPE = 'scope';
export const GITHUB_REDIRECT = 'redirect_uri';
// GENERAL
export const AS_YAML = 'as-yaml';
export const _FLAGGED = null; // The value for a key-only flag, like `?desc`
export const _UNFLAG = undefined; // The value to remove a query param
// SortableTable
export const SEARCH_QUERY = 'q';
export const SORT_BY = 'sort';
export const DESCENDING = 'desc';
export const PAGE = 'page';
// ResourceYaml
export const MODE = 'mode';
export const _CREATE = 'create';
export const _VIEW = 'view';
export const _EDIT = 'edit';
export const _CLONE = 'clone';
export const _STAGE = 'stage';
export const PREVIEW = 'preview';
export const DIFF = 'diff';
export const _UNIFIED = 'unified';
export const _SPLIT = 'split';
// Rio Service/K8s Workload
export const DEMO = 'demo';
export const ADD_SIDECAR = 'add-sidecar';
export const EDIT_CONTAINER = 'container';
// App launch
export const REPO_TYPE = 'repo-type';
export const REPO = 'repo';
export const CHART = 'chart';
export const VERSION = 'version';
export const NAME = 'name';
export const NAMESPACE = 'namespace';
export const DESCRIPTION = 'description';
export const CATEGORY = 'category';