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
260db90f
Commit
260db90f
authored
Jan 08, 2018
by
Kushal Pandya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Geo Nodes app root
parent
5c8339e3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
51 additions
and
0 deletions
+51
-0
ee/app/assets/javascripts/geo_nodes/index.js
ee/app/assets/javascripts/geo_nodes/index.js
+51
-0
No files found.
ee/app/assets/javascripts/geo_nodes/index.js
0 → 100644
View file @
260db90f
import
Vue
from
'
vue
'
;
import
Translate
from
'
~/vue_shared/translate
'
;
import
{
convertPermissionToBoolean
}
from
'
~/lib/utils/common_utils
'
;
import
GeoNodesStore
from
'
./store/geo_nodes_store
'
;
import
GeoNodesService
from
'
./service/geo_nodes_service
'
;
import
geoNodesApp
from
'
./components/app.vue
'
;
Vue
.
use
(
Translate
);
document
.
addEventListener
(
'
DOMContentLoaded
'
,
()
=>
{
const
el
=
document
.
getElementById
(
'
js-geo-nodes
'
);
if
(
!
el
)
{
return
;
}
// eslint-disable-next-line no-new
new
Vue
({
el
,
components
:
{
geoNodesApp
,
},
data
()
{
const
dataset
=
this
.
$options
.
el
.
dataset
;
const
nodeActionsAllowed
=
convertPermissionToBoolean
(
dataset
.
nodeActionsAllowed
);
const
nodeEditAllowed
=
convertPermissionToBoolean
(
dataset
.
nodeEditAllowed
);
const
store
=
new
GeoNodesStore
(
dataset
.
primaryVersion
,
dataset
.
primaryRevision
);
const
service
=
new
GeoNodesService
(
dataset
.
nodeDetailsPath
);
return
{
store
,
service
,
nodeActionsAllowed
,
nodeEditAllowed
,
};
},
render
(
createElement
)
{
return
createElement
(
'
geo-nodes-app
'
,
{
props
:
{
store
:
this
.
store
,
service
:
this
.
service
,
nodeActionsAllowed
:
this
.
nodeActionsAllowed
,
nodeEditAllowed
:
this
.
nodeEditAllowed
,
},
});
},
});
});
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