Welcome to mirror list, hosted at ThFree Co, Russian Federation.

constants.js « code_snippet_alert « components « pipeline_editor « ci « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e4fd423249bc4979e58897856820aaf387411263 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import { helpPagePath } from '~/helpers/help_page_helper';

export const CODE_SNIPPET_SOURCE_URL_PARAM = 'code_snippet_copied_from';
export const CODE_SNIPPET_SOURCE_API_FUZZING = 'api_fuzzing';
export const CODE_SNIPPET_SOURCE_DAST = 'dast';

export const CODE_SNIPPET_SOURCES = [CODE_SNIPPET_SOURCE_API_FUZZING, CODE_SNIPPET_SOURCE_DAST];
export const CODE_SNIPPET_SOURCE_SETTINGS = {
  [CODE_SNIPPET_SOURCE_API_FUZZING]: {
    datasetKey: 'apiFuzzingConfigurationPath',
    docsPath: helpPagePath('user/application_security/api_fuzzing/index'),
  },
  [CODE_SNIPPET_SOURCE_DAST]: {
    datasetKey: 'dastConfigurationPath',
    docsPath: helpPagePath('user/application_security/dast/index'),
  },
};