Commit cfe63cce authored by GitLab Bot's avatar GitLab Bot

Add latest changes from gitlab-org/gitlab@master

parent 56201db1
/* eslint-disable class-methods-use-this */ /* eslint-disable class-methods-use-this */
import { Mark } from 'tiptap'; import { Mark } from 'tiptap';
import _ from 'underscore'; import { escape as esc } from 'lodash';
// Transforms generated HTML back to GFM for Banzai::Filter::MarkdownFilter // Transforms generated HTML back to GFM for Banzai::Filter::MarkdownFilter
export default class InlineHTML extends Mark { export default class InlineHTML extends Mark {
...@@ -35,7 +35,7 @@ export default class InlineHTML extends Mark { ...@@ -35,7 +35,7 @@ export default class InlineHTML extends Mark {
mixable: true, mixable: true,
open(state, mark) { open(state, mark) {
return `<${mark.attrs.tag}${ return `<${mark.attrs.tag}${
mark.attrs.title ? ` title="${state.esc(_.escape(mark.attrs.title))}"` : '' mark.attrs.title ? ` title="${state.esc(esc(mark.attrs.title))}"` : ''
}>`; }>`;
}, },
close(state, mark) { close(state, mark) {
......
import $ from 'jquery'; import $ from 'jquery';
import _ from 'underscore'; import { isEmpty } from 'lodash';
import '../commons/bootstrap'; import '../commons/bootstrap';
// Requires Input behavior // Requires Input behavior
...@@ -23,10 +23,10 @@ $.fn.requiresInput = function requiresInput() { ...@@ -23,10 +23,10 @@ $.fn.requiresInput = function requiresInput() {
function requireInput() { function requireInput() {
// Collect the input values of *all* required fields // Collect the input values of *all* required fields
const values = _.map($(fieldSelector, $form), field => field.value); const values = Array.from($(fieldSelector, $form)).map(field => field.value);
// Disable the button if any required fields are empty // Disable the button if any required fields are empty
if (values.length && _.some(values, _.isEmpty)) { if (values.length && values.some(isEmpty)) {
$button.disable(); $button.disable();
} else { } else {
$button.enable(); $button.enable();
......
...@@ -9,7 +9,7 @@ import initImageDiffHelper from './image_diff/helpers/init_image_diff'; ...@@ -9,7 +9,7 @@ import initImageDiffHelper from './image_diff/helpers/init_image_diff';
import syntaxHighlight from './syntax_highlight'; import syntaxHighlight from './syntax_highlight';
const WRAPPER = '<div class="diff-content"></div>'; const WRAPPER = '<div class="diff-content"></div>';
const LOADING_HTML = '<i class="fa fa-spinner fa-spin"></i>'; const LOADING_HTML = '<span class="spinner"></span>';
const ERROR_HTML = const ERROR_HTML =
'<div class="nothing-here-block"><i class="fa fa-warning"></i> Could not load diff</div>'; '<div class="nothing-here-block"><i class="fa fa-warning"></i> Could not load diff</div>';
const COLLAPSED_HTML = const COLLAPSED_HTML =
......
...@@ -4,8 +4,8 @@ type: reference, howto ...@@ -4,8 +4,8 @@ type: reference, howto
# Epics **(PREMIUM)** # Epics **(PREMIUM)**
> Introduced in [GitLab Ultimate](https://about.gitlab.com/pricing/) 10.2. > - Introduced in [GitLab Ultimate](https://about.gitlab.com/pricing/) 10.2.
> In [GitLab 12.8](https://gitlab.com/gitlab-org/gitlab/issues/37081), single-level Epics were moved to Premium tier. > - In [GitLab 12.8](https://gitlab.com/gitlab-org/gitlab/issues/37081), single-level Epics were moved to Premium tier.
Epics let you manage your portfolio of projects more efficiently and with less Epics let you manage your portfolio of projects more efficiently and with less
effort by tracking groups of issues that share a theme, across projects and effort by tracking groups of issues that share a theme, across projects and
......
...@@ -11256,19 +11256,31 @@ msgstr "" ...@@ -11256,19 +11256,31 @@ msgstr ""
msgid "LicenseCompliance|Add licenses manually to approve or blacklist" msgid "LicenseCompliance|Add licenses manually to approve or blacklist"
msgstr "" msgstr ""
msgid "LicenseCompliance|Allow" msgid "LicenseCompliance|Approve"
msgstr "" msgstr ""
msgid "LicenseCompliance|Allowed" msgid "LicenseCompliance|Approve license"
msgstr "" msgstr ""
msgid "LicenseCompliance|Cancel" msgid "LicenseCompliance|Approve license?"
msgstr ""
msgid "LicenseCompliance|Approved"
msgstr ""
msgid "LicenseCompliance|Blacklist"
msgstr "" msgstr ""
msgid "LicenseCompliance|Denied" msgid "LicenseCompliance|Blacklist license"
msgstr "" msgstr ""
msgid "LicenseCompliance|Deny" msgid "LicenseCompliance|Blacklist license?"
msgstr ""
msgid "LicenseCompliance|Blacklisted"
msgstr ""
msgid "LicenseCompliance|Cancel"
msgstr "" msgstr ""
msgid "LicenseCompliance|Here you can approve or blacklist licenses for this project. Using %{ci} or %{license} will allow you to see if there are any unmanaged licenses and approve or blacklist them in merge request." msgid "LicenseCompliance|Here you can approve or blacklist licenses for this project. Using %{ci} or %{license} will allow you to see if there are any unmanaged licenses and approve or blacklist them in merge request."
...@@ -11312,9 +11324,6 @@ msgstr "" ...@@ -11312,9 +11324,6 @@ msgstr ""
msgid "LicenseCompliance|License name" msgid "LicenseCompliance|License name"
msgstr "" msgstr ""
msgid "LicenseCompliance|License review"
msgstr ""
msgid "LicenseCompliance|Packages" msgid "LicenseCompliance|Packages"
msgstr "" msgstr ""
...@@ -11360,9 +11369,6 @@ msgstr "" ...@@ -11360,9 +11369,6 @@ msgstr ""
msgid "Licenses|Components" msgid "Licenses|Components"
msgstr "" msgstr ""
msgid "Licenses|Detected in Project"
msgstr ""
msgid "Licenses|Displays licenses detected in the project, based on the %{linkStart}latest pipeline%{linkEnd} scan" msgid "Licenses|Displays licenses detected in the project, based on the %{linkStart}latest pipeline%{linkEnd} scan"
msgstr "" msgstr ""
...@@ -11378,15 +11384,6 @@ msgstr "" ...@@ -11378,15 +11384,6 @@ msgstr ""
msgid "Licenses|Name" msgid "Licenses|Name"
msgstr "" msgstr ""
msgid "Licenses|Policies"
msgstr ""
msgid "Licenses|Policy"
msgstr ""
msgid "Licenses|Specified policies in this project"
msgstr ""
msgid "Licenses|The license list details information about the licenses used within your project." msgid "Licenses|The license list details information about the licenses used within your project."
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