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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
e9c6f58e
Commit
e9c6f58e
authored
Jan 05, 2018
by
Filipa Lacerda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ci skip] Fix conflicts
parent
2a31a850
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
28 deletions
+4
-28
app/assets/javascripts/ide/index.js
app/assets/javascripts/ide/index.js
+4
-28
No files found.
app/assets/javascripts/ide/index.js
View file @
e9c6f58e
import
Vue
from
'
vue
'
;
import
Vue
from
'
vue
'
;
import
{
mapActions
}
from
'
vuex
'
;
import
{
convertPermissionToBoolean
}
from
'
../lib/utils/common_utils
'
;
import
ide
from
'
./components/ide.vue
'
;
import
ide
from
'
./components/ide.vue
'
;
import
store
from
'
./stores
'
;
import
store
from
'
./stores
'
;
import
router
from
'
./ide_router
'
;
import
router
from
'
./ide_router
'
;
import
Translate
from
'
../vue_shared/translate
'
;
import
Translate
from
'
../vue_shared/translate
'
;
import
ContextualSidebar
from
'
../contextual_sidebar
'
;
function
initIde
(
el
)
{
function
initIde
(
el
)
{
if
(
!
el
)
return
null
;
if
(
!
el
)
return
null
;
...
@@ -18,30 +14,13 @@ function initIde(el) {
...
@@ -18,30 +14,13 @@ function initIde(el) {
components
:
{
components
:
{
ide
,
ide
,
},
},
created
()
{
render
(
createElement
)
{
const
data
=
el
.
dataset
;
return
createElement
(
'
ide
'
,
{
props
:
{
this
.
setInitialData
({
emptyStateSvgPath
:
el
.
dataset
.
emptyStateSvgPath
,
endpoints
:
{
rootEndpoint
:
data
.
url
,
newMergeRequestUrl
:
data
.
newMergeRequestUrl
,
rootUrl
:
data
.
rootUrl
,
},
},
canCommit
:
convertPermissionToBoolean
(
data
.
canCommit
),
onTopOfBranch
:
convertPermissionToBoolean
(
data
.
onTopOfBranch
),
path
:
data
.
currentPath
,
isRoot
:
convertPermissionToBoolean
(
data
.
root
),
isInitialRoot
:
convertPermissionToBoolean
(
data
.
root
),
});
});
},
},
methods
:
{
...
mapActions
([
'
setInitialData
'
,
]),
},
render
(
createElement
)
{
return
createElement
(
'
ide
'
);
},
});
});
}
}
...
@@ -50,6 +29,3 @@ const ideElement = document.getElementById('ide');
...
@@ -50,6 +29,3 @@ const ideElement = document.getElementById('ide');
Vue
.
use
(
Translate
);
Vue
.
use
(
Translate
);
initIde
(
ideElement
);
initIde
(
ideElement
);
const
contextualSidebar
=
new
ContextualSidebar
();
contextualSidebar
.
bindEvents
();
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