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
Tatuya Kamada
gitlab-ce
Commits
034932ef
Commit
034932ef
authored
Aug 15, 2016
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moved issue board components from being global
parent
808dc2f2
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
39 additions
and
16 deletions
+39
-16
app/assets/javascripts/boards/boards_bundle.js.es6
app/assets/javascripts/boards/boards_bundle.js.es6
+5
-1
app/assets/javascripts/boards/components/board.js.es6
app/assets/javascripts/boards/components/board.js.es6
+13
-3
app/assets/javascripts/boards/components/board_blank_state.js.es6
...ts/javascripts/boards/components/board_blank_state.js.es6
+4
-3
app/assets/javascripts/boards/components/board_card.js.es6
app/assets/javascripts/boards/components/board_card.js.es6
+4
-3
app/assets/javascripts/boards/components/board_delete.js.es6
app/assets/javascripts/boards/components/board_delete.js.es6
+4
-3
app/assets/javascripts/boards/components/board_list.js.es6
app/assets/javascripts/boards/components/board_list.js.es6
+9
-3
No files found.
app/assets/javascripts/boards/boards_bundle.js.es6
View file @
034932ef
...
@@ -5,7 +5,8 @@
...
@@ -5,7 +5,8 @@
//= require_tree ./stores
//= require_tree ./stores
//= require_tree ./services
//= require_tree ./services
//= require_tree ./mixins
//= require_tree ./mixins
//= require_tree ./components
//= require ./components/board
//= require ./components/new_list_dropdown
$(() => {
$(() => {
const $boardApp = $('#board-app');
const $boardApp = $('#board-app');
...
@@ -18,6 +19,9 @@ $(() => {
...
@@ -18,6 +19,9 @@ $(() => {
gl.IssueBoardsApp = new Vue({
gl.IssueBoardsApp = new Vue({
el: $boardApp.get(0),
el: $boardApp.get(0),
components: {
'board': gl.issueBoards.Board
},
data: {
data: {
state: gl.issueBoards.BoardsStore.state,
state: gl.issueBoards.BoardsStore.state,
loading: true,
loading: true,
...
...
app/assets/javascripts/boards/components/board.js.es6
View file @
034932ef
//= require ./board_blank_state
//= require ./board_delete
//= require ./board_list
(() => {
(() => {
const Board = Vue.extend({
window.gl = window.gl || {};
window.gl.issueBoards = window.gl.issueBoards || {};
gl.issueBoards.Board = Vue.extend({
components: {
'board-list': gl.issueBoards.BoardList,
'board-delete': gl.issueBoards.BoardDelete,
'board-blank-state': gl.issueBoards.BoardBlankState
},
props: {
props: {
list: Object,
list: Object,
disabled: Boolean,
disabled: Boolean,
...
@@ -67,6 +79,4 @@
...
@@ -67,6 +79,4 @@
this.sortable.destroy();
this.sortable.destroy();
}
}
});
});
Vue.component('board', Board)
})();
})();
app/assets/javascripts/boards/components/board_blank_state.js.es6
View file @
034932ef
(() => {
(() => {
const BoardBlankState = Vue.extend({
window.gl = window.gl || {};
window.gl.issueBoards = window.gl.issueBoards || {};
gl.issueBoards.BoardBlankState = Vue.extend({
data () {
data () {
return {
return {
predefinedLabels: [
predefinedLabels: [
...
@@ -49,6 +52,4 @@
...
@@ -49,6 +52,4 @@
}
}
}
}
});
});
Vue.component('board-blank-state', BoardBlankState);
})();
})();
app/assets/javascripts/boards/components/board_card.js.es6
View file @
034932ef
(() => {
(() => {
const BoardCard = Vue.extend({
window.gl = window.gl || {};
window.gl.issueBoards = window.gl.issueBoards || {};
gl.issueBoards.BoardCard = Vue.extend({
props: {
props: {
list: Object,
list: Object,
issue: Object,
issue: Object,
...
@@ -34,6 +37,4 @@
...
@@ -34,6 +37,4 @@
}
}
}
}
});
});
Vue.component('board-card', BoardCard);
})();
})();
app/assets/javascripts/boards/components/board_delete.js.es6
View file @
034932ef
(() => {
(() => {
const BoardDelete = Vue.extend({
window.gl = window.gl || {};
window.gl.issueBoards = window.gl.issueBoards || {};
gl.issueBoards.BoardDelete = Vue.extend({
props: {
props: {
list: Object
list: Object
},
},
...
@@ -14,6 +17,4 @@
...
@@ -14,6 +17,4 @@
}
}
}
}
});
});
Vue.component('board-delete', BoardDelete);
})();
})();
app/assets/javascripts/boards/components/board_list.js.es6
View file @
034932ef
//= require ./board_card
(() => {
(() => {
const BoardList = Vue.extend({
window.gl = window.gl || {};
window.gl.issueBoards = window.gl.issueBoards || {};
gl.issueBoards.BoardList = Vue.extend({
components: {
'board-card': gl.issueBoards.BoardCard
},
props: {
props: {
disabled: Boolean,
disabled: Boolean,
list: Object,
list: Object,
...
@@ -78,6 +86,4 @@
...
@@ -78,6 +86,4 @@
this.sortable.destroy();
this.sortable.destroy();
}
}
});
});
Vue.component('board-list', BoardList);
})();
})();
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