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
Jérome Perrin
gitlab-ce
Commits
d67ab685
Commit
d67ab685
authored
May 04, 2017
by
Alfredo Sumaran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set Groups Vue app for Dashboard page
parent
1dc2b469
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
2 deletions
+16
-2
app/assets/javascripts/groups/index.js
app/assets/javascripts/groups/index.js
+10
-2
app/assets/javascripts/groups/stores/groups_store.js
app/assets/javascripts/groups/stores/groups_store.js
+5
-0
app/views/dashboard/groups/index.html.haml
app/views/dashboard/groups/index.html.haml
+1
-0
No files found.
app/assets/javascripts/groups/index.js
View file @
d67ab685
import
Vue
from
'
vue
'
;
import
GroupsStore
from
'
./stores/groups_store
'
;
$
(()
=>
{
// Groups bundle
const
groupsStore
=
new
GroupsStore
();
const
GroupsApp
=
new
Vue
({
el
:
document
.
querySelector
(
'
.js-groups-list-holder
'
),
data
:
groupsStore
,
});
});
app/assets/javascripts/groups/stores/groups_store.js
0 → 100644
View file @
d67ab685
export
default
class
GroupsStore
{
constructor
()
{
this
.
groups
=
[];
}
}
app/views/dashboard/groups/index.html.haml
View file @
d67ab685
...
...
@@ -2,6 +2,7 @@
-
header_title
"Groups"
,
dashboard_groups_path
=
render
'dashboard/groups_head'
=
page_specific_javascript_bundle_tag
(
'common_vue'
)
=
page_specific_javascript_bundle_tag
(
'groups'
)
-
if
@groups
.
empty?
...
...
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