Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
735da7ec
Commit
735da7ec
authored
Jan 25, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
87d35ec7
000a67f4
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
87 additions
and
116 deletions
+87
-116
app/assets/javascripts/ide/lib/common/model.js
app/assets/javascripts/ide/lib/common/model.js
+3
-3
package.json
package.json
+5
-5
spec/javascripts/ide/lib/decorations/controller_spec.js
spec/javascripts/ide/lib/decorations/controller_spec.js
+2
-2
yarn.lock
yarn.lock
+77
-106
No files found.
app/assets/javascripts/ide/lib/common/model.js
View file @
735da7ec
...
@@ -13,12 +13,12 @@ export default class Model {
...
@@ -13,12 +13,12 @@ export default class Model {
(
this
.
originalModel
=
monacoEditor
.
createModel
(
(
this
.
originalModel
=
monacoEditor
.
createModel
(
head
?
head
.
content
:
this
.
file
.
raw
,
head
?
head
.
content
:
this
.
file
.
raw
,
undefined
,
undefined
,
new
Uri
(
false
,
false
,
`original/
${
this
.
path
}
`
),
new
Uri
(
'
gitlab
'
,
false
,
`original/
${
this
.
path
}
`
),
)),
)),
(
this
.
model
=
monacoEditor
.
createModel
(
(
this
.
model
=
monacoEditor
.
createModel
(
this
.
content
,
this
.
content
,
undefined
,
undefined
,
new
Uri
(
false
,
false
,
this
.
path
),
new
Uri
(
'
gitlab
'
,
false
,
this
.
path
),
)),
)),
);
);
if
(
this
.
file
.
mrChange
)
{
if
(
this
.
file
.
mrChange
)
{
...
@@ -26,7 +26,7 @@ export default class Model {
...
@@ -26,7 +26,7 @@ export default class Model {
(
this
.
baseModel
=
monacoEditor
.
createModel
(
(
this
.
baseModel
=
monacoEditor
.
createModel
(
this
.
file
.
baseRaw
,
this
.
file
.
baseRaw
,
undefined
,
undefined
,
new
Uri
(
false
,
false
,
`target/
${
this
.
path
}
`
),
new
Uri
(
'
gitlab
'
,
false
,
`target/
${
this
.
path
}
`
),
)),
)),
);
);
}
}
...
...
package.json
View file @
735da7ec
...
@@ -81,8 +81,8 @@
...
@@ -81,8 +81,8 @@
"
katex
"
:
"
^0.10.0
"
,
"
katex
"
:
"
^0.10.0
"
,
"
marked
"
:
"
^0.3.12
"
,
"
marked
"
:
"
^0.3.12
"
,
"
mermaid
"
:
"
^8.0.0-rc.8
"
,
"
mermaid
"
:
"
^8.0.0-rc.8
"
,
"
monaco-editor
"
:
"
^0.1
4.3
"
,
"
monaco-editor
"
:
"
^0.1
5.6
"
,
"
monaco-editor-webpack-plugin
"
:
"
^1.
5.4
"
,
"
monaco-editor-webpack-plugin
"
:
"
^1.
7.0
"
,
"
mousetrap
"
:
"
^1.4.6
"
,
"
mousetrap
"
:
"
^1.4.6
"
,
"
pikaday
"
:
"
^1.6.1
"
,
"
pikaday
"
:
"
^1.6.1
"
,
"
popper.js
"
:
"
^1.14.3
"
,
"
popper.js
"
:
"
^1.14.3
"
,
...
@@ -114,7 +114,7 @@
...
@@ -114,7 +114,7 @@
"
vue-template-compiler
"
:
"
^2.5.21
"
,
"
vue-template-compiler
"
:
"
^2.5.21
"
,
"
vue-virtual-scroll-list
"
:
"
^1.2.5
"
,
"
vue-virtual-scroll-list
"
:
"
^1.2.5
"
,
"
vuex
"
:
"
^3.0.1
"
,
"
vuex
"
:
"
^3.0.1
"
,
"
webpack
"
:
"
^4.2
8.1
"
,
"
webpack
"
:
"
^4.2
9.0
"
,
"
webpack-bundle-analyzer
"
:
"
^3.0.3
"
,
"
webpack-bundle-analyzer
"
:
"
^3.0.3
"
,
"
webpack-cli
"
:
"
^3.2.1
"
,
"
webpack-cli
"
:
"
^3.2.1
"
,
"
webpack-stats-plugin
"
:
"
^0.2.1
"
,
"
webpack-stats-plugin
"
:
"
^0.2.1
"
,
...
@@ -162,12 +162,12 @@
...
@@ -162,12 +162,12 @@
"
karma-mocha-reporter
"
:
"
^2.2.5
"
,
"
karma-mocha-reporter
"
:
"
^2.2.5
"
,
"
karma-sourcemap-loader
"
:
"
^0.3.7
"
,
"
karma-sourcemap-loader
"
:
"
^0.3.7
"
,
"
karma-webpack
"
:
"
^4.0.0-beta.0
"
,
"
karma-webpack
"
:
"
^4.0.0-beta.0
"
,
"
nodemon
"
:
"
^1.18.
4
"
,
"
nodemon
"
:
"
^1.18.
9
"
,
"
pixelmatch
"
:
"
^4.0.2
"
,
"
pixelmatch
"
:
"
^4.0.2
"
,
"
prettier
"
:
"
1.16.1
"
,
"
prettier
"
:
"
1.16.1
"
,
"
vue-jest
"
:
"
^3.0.2
"
,
"
vue-jest
"
:
"
^3.0.2
"
,
"
webpack-dev-server
"
:
"
^3.1.14
"
,
"
webpack-dev-server
"
:
"
^3.1.14
"
,
"
yarn-deduplicate
"
:
"
^1.
0.5
"
"
yarn-deduplicate
"
:
"
^1.
1.0
"
},
},
"engines"
:
{
"engines"
:
{
"node"
:
">=8.10.0"
,
"node"
:
">=8.10.0"
,
...
...
spec/javascripts/ide/lib/decorations/controller_spec.js
View file @
735da7ec
...
@@ -56,7 +56,7 @@ describe('Multi-file editor library decorations controller', () => {
...
@@ -56,7 +56,7 @@ describe('Multi-file editor library decorations controller', () => {
controller
.
addDecorations
(
model
,
'
key
'
,
[{
decoration
:
'
decorationValue
'
}]);
controller
.
addDecorations
(
model
,
'
key
'
,
[{
decoration
:
'
decorationValue
'
}]);
expect
(
controller
.
decorations
.
size
).
toBe
(
1
);
expect
(
controller
.
decorations
.
size
).
toBe
(
1
);
expect
(
controller
.
decorations
.
keys
().
next
().
value
).
toBe
(
'
path--path
'
);
expect
(
controller
.
decorations
.
keys
().
next
().
value
).
toBe
(
'
gitlab:
path--path
'
);
});
});
it
(
'
calls decorate method
'
,
()
=>
{
it
(
'
calls decorate method
'
,
()
=>
{
...
@@ -90,7 +90,7 @@ describe('Multi-file editor library decorations controller', () => {
...
@@ -90,7 +90,7 @@ describe('Multi-file editor library decorations controller', () => {
controller
.
decorate
(
model
);
controller
.
decorate
(
model
);
expect
(
controller
.
editorDecorations
.
keys
().
next
().
value
).
toBe
(
'
path--path
'
);
expect
(
controller
.
editorDecorations
.
keys
().
next
().
value
).
toBe
(
'
gitlab:
path--path
'
);
});
});
});
});
...
...
yarn.lock
View file @
735da7ec
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment