Commit a4767253 authored by Fatih Acet's avatar Fatih Acet

Merge branch 'ee-js-i18n-javascripts-s' into 'master'

i18i EE JS files in directories starting with s

See merge request gitlab-org/gitlab-ee!13491
parents c792485f ed2c8d07
import { s__ } from '~/locale'; import { s__ } from '~/locale';
export const SEVERITY_LEVELS = { export const SEVERITY_LEVELS = {
critical: 'Critical', critical: s__('severity|Critical'),
high: 'High', high: s__('severity|High'),
medium: 'Medium', medium: s__('severity|Medium'),
low: 'Low', low: s__('severity|Low'),
unknown: 'Unknown', unknown: s__('severity|Unknown'),
info: 'Info', info: s__('severity|Info'),
undefined: 'Undefined', undefined: s__('severity|Undefined'),
}; };
export const CONFIDENCE_LEVELS = { export const CONFIDENCE_LEVELS = {
confirmed: 'Confirmed', confirmed: s__('confidence|Confirmed'),
high: 'High', high: s__('confidence|High'),
medium: 'Medium', medium: s__('confidence|Medium'),
low: 'Low', low: s__('confidence|Low'),
unknown: 'Unknown', unknown: s__('confidence|Unknown'),
ignore: 'Ignore', ignore: s__('confidence|Ignore'),
experimental: 'Experimental', experimental: s__('confidence|Experimental'),
undefined: 'Undefined', undefined: s__('confidence|Undefined'),
}; };
export const REPORT_TYPES = { export const REPORT_TYPES = {
......
import { SEVERITY_LEVELS, CONFIDENCE_LEVELS, REPORT_TYPES, BASE_FILTERS } from './constants'; import { SEVERITY_LEVELS, CONFIDENCE_LEVELS, REPORT_TYPES, BASE_FILTERS } from './constants';
import { s__ } from '~/locale';
const optionsObjectToArray = obj => Object.entries(obj).map(([id, name]) => ({ id, name })); const optionsObjectToArray = obj => Object.entries(obj).map(([id, name]) => ({ id, name }));
export default () => ({ export default () => ({
filters: [ filters: [
{ {
name: 'Severity', name: s__('SecurityDashboard|Severity'),
id: 'severity', id: 'severity',
options: [BASE_FILTERS.severity, ...optionsObjectToArray(SEVERITY_LEVELS)], options: [BASE_FILTERS.severity, ...optionsObjectToArray(SEVERITY_LEVELS)],
selection: new Set(['all']), selection: new Set(['all']),
}, },
{ {
name: 'Confidence', name: s__('SecurityDashboard|Confidence'),
id: 'confidence', id: 'confidence',
options: [BASE_FILTERS.confidence, ...optionsObjectToArray(CONFIDENCE_LEVELS)], options: [BASE_FILTERS.confidence, ...optionsObjectToArray(CONFIDENCE_LEVELS)],
selection: new Set(['all']), selection: new Set(['all']),
}, },
{ {
name: 'Report type', name: s__('SecurityDashboard|Report type'),
id: 'report_type', id: 'report_type',
options: [BASE_FILTERS.report_type, ...optionsObjectToArray(REPORT_TYPES)], options: [BASE_FILTERS.report_type, ...optionsObjectToArray(REPORT_TYPES)],
selection: new Set(['all']), selection: new Set(['all']),
}, },
{ {
name: 'Project', name: s__('SecurityDashboard|Project'),
id: 'project_id', id: 'project_id',
options: [BASE_FILTERS.project_id], options: [BASE_FILTERS.project_id],
selection: new Set(['all']), selection: new Set(['all']),
......
import Vue from 'vue'; import Vue from 'vue';
import { s__ } from '~/locale'; import { s__, __ } from '~/locale';
import { visitUrl } from '~/lib/utils/url_utility'; import { visitUrl } from '~/lib/utils/url_utility';
import * as types from './mutation_types'; import * as types from './mutation_types';
import { DAYS } from './constants'; import { DAYS } from './constants';
...@@ -156,7 +156,7 @@ export default { ...@@ -156,7 +156,7 @@ export default {
[types.RECEIVE_CREATE_ISSUE_ERROR](state) { [types.RECEIVE_CREATE_ISSUE_ERROR](state) {
state.isCreatingIssue = false; state.isCreatingIssue = false;
Vue.set(state.modal, 'isCreatingNewIssue', false); Vue.set(state.modal, 'isCreatingNewIssue', false);
Vue.set(state.modal, 'error', 'There was an error creating the issue'); Vue.set(state.modal, 'error', __('There was an error creating the issue'));
}, },
[types.REQUEST_DISMISS_VULNERABILITY](state) { [types.REQUEST_DISMISS_VULNERABILITY](state) {
state.isDismissingVulnerability = true; state.isDismissingVulnerability = true;
......
...@@ -11459,12 +11459,24 @@ msgstr "" ...@@ -11459,12 +11459,24 @@ msgstr ""
msgid "SecurityDashboard| The security dashboard displays the latest security report. Use it to find and fix vulnerabilities." msgid "SecurityDashboard| The security dashboard displays the latest security report. Use it to find and fix vulnerabilities."
msgstr "" msgstr ""
msgid "SecurityDashboard|Confidence"
msgstr ""
msgid "SecurityDashboard|Monitor vulnerabilities in your code" msgid "SecurityDashboard|Monitor vulnerabilities in your code"
msgstr "" msgstr ""
msgid "SecurityDashboard|Pipeline %{pipelineLink} triggered" msgid "SecurityDashboard|Pipeline %{pipelineLink} triggered"
msgstr "" msgstr ""
msgid "SecurityDashboard|Project"
msgstr ""
msgid "SecurityDashboard|Report type"
msgstr ""
msgid "SecurityDashboard|Severity"
msgstr ""
msgid "See metrics" msgid "See metrics"
msgstr "" msgstr ""
...@@ -13113,6 +13125,9 @@ msgstr "" ...@@ -13113,6 +13125,9 @@ msgstr ""
msgid "There was an error adding a todo." msgid "There was an error adding a todo."
msgstr "" msgstr ""
msgid "There was an error creating the issue"
msgstr ""
msgid "There was an error deleting the todo." msgid "There was an error deleting the todo."
msgstr "" msgstr ""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment