diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-07-19 17:16:28 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-07-19 17:16:28 +0300 |
commit | e4384360a16dd9a19d4d2d25d0ef1f2b862ed2a6 (patch) | |
tree | 2fcdfa7dcdb9db8f5208b2562f4b4e803d671243 /app/assets/javascripts/monitoring/stores/state.js | |
parent | ffda4e7bcac36987f936b4ba515995a6698698f0 (diff) |
Add latest changes from gitlab-org/gitlab@16-2-stable-eev16.2.0-rc42
Diffstat (limited to 'app/assets/javascripts/monitoring/stores/state.js')
-rw-r--r-- | app/assets/javascripts/monitoring/stores/state.js | 97 |
1 files changed, 0 insertions, 97 deletions
diff --git a/app/assets/javascripts/monitoring/stores/state.js b/app/assets/javascripts/monitoring/stores/state.js deleted file mode 100644 index e513b575475..00000000000 --- a/app/assets/javascripts/monitoring/stores/state.js +++ /dev/null @@ -1,97 +0,0 @@ -import invalidUrl from '~/lib/utils/invalid_url'; -import { defaultTimeRange } from '~/vue_shared/constants'; -import { dashboardEmptyStates } from '../constants'; -import { timezones } from '../format_date'; - -export default () => ({ - // API endpoints - deploymentsEndpoint: null, - dashboardEndpoint: invalidUrl, - dashboardsEndpoint: invalidUrl, - panelPreviewEndpoint: invalidUrl, - - // Dashboard request parameters - timeRange: null, - /** - * Currently selected dashboard. For custom dashboards, - * this could be the filename or the file path. - * - * If this is the filename and full path is required, - * getters.fullDashboardPath should be used. - */ - currentDashboard: null, - - // Dashboard data - hasDashboardValidationWarnings: false, - - /** - * {?String} If set, dashboard should display a global - * empty state, there is no way to interact (yet) - * with the dashboard. - */ - emptyState: dashboardEmptyStates.GETTING_STARTED, - showErrorBanner: true, - isUpdatingStarredValue: false, - dashboard: { - panelGroups: [], - }, - /** - * Panel that is currently "zoomed" in as - * a single panel in view. - */ - expandedPanel: { - /** - * {?String} Panel's group name. - */ - group: null, - /** - * {?Object} Panel content from `dashboard` - * null when no panel is expanded. - */ - panel: null, - }, - allDashboards: [], - /** - * User-defined custom variables are passed - * via the dashboard yml file. - */ - variables: [], - /** - * User-defined custom links are passed - * via the dashboard yml file. - */ - links: [], - - // Panel editor / builder - panelPreviewYml: '', - panelPreviewIsLoading: false, - panelPreviewGraphData: null, - panelPreviewError: null, - panelPreviewTimeRange: defaultTimeRange, - panelPreviewIsShown: false, - - // Other project data - dashboardTimezone: timezones.LOCAL, - annotations: [], - deploymentData: [], - environments: [], - environmentsSearchTerm: '', - environmentsLoading: false, - currentEnvironmentName: null, - - // GitLab paths to other pages - externalDashboardUrl: '', - projectPath: null, - operationsSettingsPath: '', - addDashboardDocumentationPath: '', - - // static paths - customDashboardBasePath: '', - - // current user data - /** - * Flag that denotes if the currently logged user can access - * the project Settings -> Operations - */ - canAccessOperationsSettings: false, -}); |