Skip to content

Commit 97856db

Browse files
author
GitLab Bot
committed
Add latest changes from gitlab-org/gitlab@master
1 parent 0701312 commit 97856db

File tree

77 files changed

+916
-284
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+916
-284
lines changed

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ gem 'gitlab_chronic_duration', '~> 0.12' # rubocop:todo Gemfile/MissingFeatureCa
358358

359359
gem 'rack-proxy', '~> 0.7.7' # rubocop:todo Gemfile/MissingFeatureCategory
360360

361-
gem 'cssbundling-rails', '1.4.0', feature_category: :shared
361+
gem 'cssbundling-rails', '1.4.1', feature_category: :shared
362362
gem 'terser', '1.0.2' # rubocop:todo Gemfile/MissingFeatureCategory
363363

364364
gem 'click_house-client', path: 'gems/click_house-client', require: 'click_house/client' # rubocop:todo Gemfile/MissingFeatureCategory

Gemfile.checksum

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
{"name":"creole","version":"0.5.0","platform":"ruby","checksum":"951701e2d80760f156b1cb2a93471ca97c076289becc067a33b745133ed32c03"},
9898
{"name":"crystalball","version":"0.7.0","platform":"ruby","checksum":"6e729f372a5071daec877adb40c5df4cb25fe21f350635e2a9624373fc151ef2"},
9999
{"name":"css_parser","version":"1.14.0","platform":"ruby","checksum":"f2ce6148cd505297b07bdbe7a5db4cce5cf530071f9b732b9a23538d6cdc0113"},
100-
{"name":"cssbundling-rails","version":"1.4.0","platform":"ruby","checksum":"082034653af0ec53d7662e4cd2f518f36167fe7c014dbcf37a941a4a8324f7db"},
100+
{"name":"cssbundling-rails","version":"1.4.1","platform":"ruby","checksum":"4b21273d627b21890da9155c88c67efc9274373d8b0add09149c262cf56c7ce1"},
101101
{"name":"cvss-suite","version":"3.0.1","platform":"ruby","checksum":"b5ca9e9e94032a42fd0dc28c1e305378b62c949e35ed7111fc4a1d76f68ad3f9"},
102102
{"name":"danger","version":"9.4.2","platform":"ruby","checksum":"43e552c6731030235a30fdeafe703d2e2ab9c30917154489cb0ecd9ad3259d80"},
103103
{"name":"danger-gitlab","version":"8.0.0","platform":"ruby","checksum":"497dd7d0f6513913de651019223d8058cf494df10acbd17de92b175dfa04a3a8"},

Gemfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ GEM
442442
git
443443
css_parser (1.14.0)
444444
addressable
445-
cssbundling-rails (1.4.0)
445+
cssbundling-rails (1.4.1)
446446
railties (>= 6.0.0)
447447
cvss-suite (3.0.1)
448448
danger (9.4.2)
@@ -1980,7 +1980,7 @@ DEPENDENCIES
19801980
coverband (= 6.1.2)
19811981
creole (~> 0.5.0)
19821982
crystalball (~> 0.7.0)
1983-
cssbundling-rails (= 1.4.0)
1983+
cssbundling-rails (= 1.4.1)
19841984
csv_builder!
19851985
cvss-suite (~> 3.0.1)
19861986
database_cleaner-active_record (~> 2.2.0)

app/assets/javascripts/blob/components/blob_header.vue

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,11 @@ export default {
9595
required: false,
9696
default: false,
9797
},
98+
showBlobSize: {
99+
type: Boolean,
100+
required: false,
101+
default: true,
102+
},
98103
},
99104
data() {
100105
return {
@@ -137,7 +142,7 @@ export default {
137142
<div class="js-file-title file-title-flex-parent">
138143
<div class="gl-display-flex">
139144
<table-of-contents class="gl-pr-2" />
140-
<blob-filepath :blob="blob" :show-path="showPath">
145+
<blob-filepath :blob="blob" :show-path="showPath" :show-blob-size="showBlobSize">
141146
<template #filepath-prepend>
142147
<slot name="prepend"></slot>
143148
</template>

app/assets/javascripts/blob/components/blob_header_filepath.vue

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ export default {
2020
required: false,
2121
default: true,
2222
},
23+
showBlobSize: {
24+
type: Boolean,
25+
required: false,
26+
default: true,
27+
},
2328
},
2429
computed: {
2530
blobSize() {
@@ -62,7 +67,7 @@ export default {
6267
css-class="gl-mr-2"
6368
/>
6469

65-
<small class="gl-mr-3">{{ blobSize }}</small>
70+
<small v-if="showBlobSize" class="gl-mr-3">{{ blobSize }}</small>
6671

6772
<gl-badge v-if="showLfsBadge">{{ __('LFS') }}</gl-badge>
6873
</div>

app/assets/javascripts/ci/ci_variable_list/components/ci_variable_table.vue

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ export default {
2727
{
2828
key: 'key',
2929
label: s__('CiVariables|Key'),
30-
tdClass: 'text-plain',
3130
sortable: true,
3231
thClass: 'gl-w-2/5',
3332
},
@@ -49,7 +48,6 @@ export default {
4948
{
5049
key: 'key',
5150
label: s__('CiVariables|Key'),
52-
tdClass: 'text-plain',
5351
},
5452
{
5553
key: 'environmentScope',

app/assets/javascripts/design_management/components/list/item.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ export default {
129129
params: { id: filename },
130130
query: $route.query,
131131
}"
132-
class="card gl-cursor-pointer text-plain js-design-list-item design-list-item gl-mb-0"
132+
class="card gl-cursor-pointer gl-text-default hover:gl-text-default js-design-list-item design-list-item gl-mb-0"
133133
>
134134
<div
135135
class="card-body gl-p-0 gl-display-flex gl-align-items-center gl-justify-content-center gl-overflow-hidden gl-relative gl-rounded-top-base"

app/assets/javascripts/diffs/components/diff_expansion_cell.vue

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { GlTooltipDirective, GlIcon, GlLoadingIcon } from '@gitlab/ui';
44
import { mapActions } from 'vuex';
55
import SafeHtml from '~/vue_shared/directives/safe_html';
66
import { createAlert } from '~/alert';
7-
import { s__, sprintf } from '~/locale';
7+
import { __, s__, sprintf } from '~/locale';
88
import { UNFOLD_COUNT, INLINE_DIFF_LINES_KEY } from '../constants';
99
import * as utils from '../store/utils';
1010
@@ -16,6 +16,7 @@ export default {
1616
i18n: {
1717
showMore: sprintf(s__('Diffs|Show %{unfoldCount} lines'), { unfoldCount: UNFOLD_COUNT }),
1818
showAll: s__('Diffs|Show all unchanged lines'),
19+
expandAllLines: __('Expand all lines'),
1920
},
2021
components: {
2122
GlIcon,
@@ -237,8 +238,8 @@ export default {
237238
</button>
238239
<button
239240
v-if="lineCountBetween !== -1 && lineCountBetween < 20"
240-
:title="s__('Diffs|Expand all lines')"
241-
:aria-label="s__('Diffs|Expand all lines')"
241+
:title="$options.i18n.expandAllLines"
242+
:aria-label="$options.i18n.expandAllLines"
242243
:disabled="loading.all"
243244
type="button"
244245
class="js-unfold-all gl-rounded-0 gl-border-0 diff-line-expand-button"

app/assets/javascripts/environments/components/deploy_board.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ export default {
145145
<div class="deploy-board-information gl-w-full">
146146
<section class="deploy-board-status">
147147
<span v-gl-tooltip :title="instanceIsCompletedText">
148-
<span ref="percentage" class="gl-text-center text-plain gl-font-lg"
148+
<span ref="percentage" class="gl-text-center gl-text-default gl-text-lg"
149149
>{{ deployBoardData.completion }}%</span
150150
>
151151
<span class="text text-center text-secondary">{{ __('Complete') }}</span>

app/assets/javascripts/vue_shared/components/markdown/header.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ export default {
499499
dropzone_input.js.
500500
-->
501501
<toolbar-button
502-
v-if="!previewMarkdown && !restrictedToolBarItems.includes('attach-file')"
502+
v-show="!previewMarkdown && !restrictedToolBarItems.includes('attach-file')"
503503
data-testid="button-attach-file"
504504
data-button-type="attach-file"
505505
:button-title="__('Attach a file or image')"

app/assets/javascripts/vue_shared/components/source_viewer/workers/highlight_utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { highlightPlugins } from '~/highlight_js/plugins';
22
import { highlightContent } from '~/highlight_js';
33
import { LINES_PER_CHUNK, NEWLINE, ROUGE_TO_HLJS_LANGUAGE_MAP } from '../constants';
44

5-
const splitByLineBreaks = (content = '') => content.split(/\r?\n/);
5+
export const splitByLineBreaks = (content = '') => content.split(/\r?\n/);
66

77
const createChunk = (language, rawChunkLines, highlightedChunkLines = [], startingFrom = 0) => ({
88
highlightedContent: highlightedChunkLines.join(NEWLINE),

app/assets/javascripts/work_items/components/design_management/design_item.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ export default {
133133
params: { iid: workItemIid, id: filename },
134134
query: $route.query,
135135
}"
136-
class="card gl-cursor-pointer text-plain js-design-list-item design-list-item gl-mb-0"
136+
class="card gl-cursor-pointer gl-text-default hover:gl-text-default js-design-list-item design-list-item gl-mb-0"
137137
>
138138
<div
139139
class="card-body gl-p-0 gl-flex gl-items-center gl-justify-content-center gl-overflow-hidden gl-relative gl-rounded-top-base"

app/assets/stylesheets/framework/common.scss

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,6 @@
7373
.cgreen { color: $green-600; }
7474
.cdark { color: $gray-800; }
7575

76-
.text-plain,
77-
.text-plain:hover {
78-
color: $gl-text-color;
79-
}
80-
8176
.text-secondary {
8277
color: $gl-text-color-secondary;
8378
}

app/assets/stylesheets/framework/highlight.scss

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@import '../highlight/common';
2+
13
.file-content.code {
24
border: 0;
35
box-shadow: none;
@@ -36,6 +38,23 @@
3638
&:empty::before, span:empty::before {
3739
content: '\200b';
3840
}
41+
42+
.selected-inline-item-mark {
43+
background: #2575c6 !important;
44+
}
45+
46+
.inline-item-mark {
47+
padding: 0 5px;
48+
margin-right: 5px;
49+
border-radius: 4px;
50+
background: $gray-500;
51+
color: $white;
52+
}
53+
54+
.inline-section-marker {
55+
padding-right: 2px;
56+
border-radius: 4px;
57+
}
3958
}
4059
}
4160
}
@@ -78,11 +97,16 @@
7897
}
7998

8099
pre .line,
100+
pre .plain-lines,
81101
.line-numbers a {
82102
font-size: 0.8125rem;
83103
line-height: 1.1875rem;
84104
min-height: 1.1875rem;
85105
}
106+
107+
.mark-multiple-line-expand-button {
108+
@include diff-expansion($gray-100, $gray-400, $gray-100, $gray-400);
109+
}
86110
}
87111

88112
// Vertically aligns <table> line numbers (eg. blame view)

app/assets/stylesheets/highlight/_white_base.scss

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ $white-hll-bg: #f8f8f8;
1212
$white-expanded-border: #e0e0e0;
1313
$white-expanded-bg: #f7f7f7;
1414
$white-c: #998;
15+
$white-code-mark: #d3e3f4;
1516
$white-err: #a61717;
1617
$white-err-bg: #e3d2d2;
1718
$white-cm: #998;
@@ -277,6 +278,27 @@ $white-gc-bg: #eaf2f5;
277278
background-color: $white-pre-hll-bg !important;
278279
}
279280

281+
// mark lines via mark_multiple_lines
282+
pre.white code {
283+
.selected-inline-section-marker {
284+
background: $white-code-mark !important;
285+
}
286+
287+
.inline-section-marker {
288+
background: $gray-100;
289+
}
290+
}
291+
292+
.file-holder div.code.white {
293+
.selected-inline-number-mark {
294+
color: $gray-600;
295+
}
296+
297+
.unselected-inline-number-mark {
298+
color: $gray-200;
299+
}
300+
}
301+
280302
// Search result highlight
281303
span.highlight_word {
282304
background-color: $white-highlight !important;

app/assets/stylesheets/highlight/themes/dark.scss

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ $dark-old-bg: rgba(255, 51, 51, 0.2);
1212
$dark-old-idiff: rgba(255, 51, 51, 0.25);
1313
$dark-border: #808080;
1414
$dark-code-border: #666;
15+
$dark-code-mark: #1d3043;
1516
$dark-main-bg: #1d1f21;
1617
$dark-main-color: #1d1f21;
1718
$dark-line-color: #c5c8c6;
@@ -281,6 +282,28 @@ $dark-il: #de935f;
281282
background-color: $dark-pre-hll-bg !important;
282283
}
283284

285+
// mark lines via mark_multiple_lines
286+
pre.dark code {
287+
.selected-inline-section-marker {
288+
background: $dark-code-mark !important;
289+
}
290+
291+
.inline-section-marker {
292+
background: $dark-pre-hll-bg;
293+
}
294+
}
295+
296+
.file-holder div.code.dark {
297+
.selected-inline-number-mark {
298+
color: $gray-200;
299+
}
300+
301+
.unselected-inline-number-mark {
302+
color: $gray-600;
303+
}
304+
}
305+
306+
284307
// Search result highlight
285308
span.highlight_word {
286309
background-color: $dark-highlight-bg !important;

app/assets/stylesheets/highlight/themes/monokai.scss

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
*/
99
$monokai-bg: #272822;
1010
$monokai-border: #555;
11+
$monokai-code-mark: #113953;
1112
$monokai-text-color: #f8f8f2;
1213
$monokai-line-num-color: rgba(255, 255, 255, 0.3);
1314
$monokai-line-num-color-new: #707565;
@@ -272,6 +273,29 @@ $monokai-gh: #75715e;
272273
background-color: $monokai-hll !important;
273274
}
274275

276+
// mark lines via mark_multiple_lines
277+
pre.monokai code {
278+
.selected-inline-section-marker {
279+
background: $monokai-code-mark !important;
280+
}
281+
282+
.inline-section-marker {
283+
background: $monokai-hll;
284+
}
285+
}
286+
287+
.file-holder div.code.monokai {
288+
.selected-inline-number-mark {
289+
color: $gray-200;
290+
}
291+
292+
.unselected-inline-number-mark {
293+
color: $gray-600;
294+
}
295+
}
296+
297+
298+
275299
// Search result highlight
276300
span.highlight_word {
277301
background-color: $monokai-highlight-bg !important;

app/assets/stylesheets/highlight/themes/none.scss

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
@import '../common';
66

7+
$none-code-mark: #d3e3f4;
8+
79
@mixin match-line {
810
color: $t-gray-a-24;
911
background-color: $gray-50;
@@ -189,6 +191,27 @@
189191
background-color: $orange-50;
190192
}
191193

194+
// mark lines via mark_multiple_lines
195+
pre.none code {
196+
.selected-inline-section-marker {
197+
background: $none-code-mark !important;
198+
}
199+
200+
.inline-section-marker {
201+
background: $gray-100;
202+
}
203+
}
204+
205+
.file-holder div.code.none {
206+
.selected-inline-number-mark {
207+
color: $gray-600;
208+
}
209+
210+
.unselected-inline-number-mark {
211+
color: $gray-200;
212+
}
213+
}
214+
192215
.gd {
193216
color: $gl-text-color;
194217
background-color: $white;

0 commit comments

Comments
 (0)