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
Léo-Paul Géneau
gitlab-ce
Commits
0af391d2
Commit
0af391d2
authored
Feb 15, 2018
by
Constance Okoghenun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactored use of boards/boards_bundle.js, created a dipatcher import
parent
02d9f54f
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
12 additions
and
7 deletions
+12
-7
app/assets/javascripts/boards/index.js
app/assets/javascripts/boards/index.js
+2
-2
app/assets/javascripts/dispatcher.js
app/assets/javascripts/dispatcher.js
+5
-0
app/assets/javascripts/pages/projects/boards/index.js
app/assets/javascripts/pages/projects/boards/index.js
+4
-2
app/views/shared/boards/_show.html.haml
app/views/shared/boards/_show.html.haml
+0
-1
config/webpack.config.js
config/webpack.config.js
+0
-1
spec/javascripts/test_bundle.js
spec/javascripts/test_bundle.js
+1
-1
No files found.
app/assets/javascripts/boards/
boards_bundle
.js
→
app/assets/javascripts/boards/
index
.js
View file @
0af391d2
...
...
@@ -24,7 +24,7 @@ import './components/new_list_dropdown';
import
'
./components/modal/index
'
;
import
'
../vue_shared/vue_resource_interceptor
'
;
$
(()
=>
{
export
default
function
initBoards
()
{
const
$boardApp
=
document
.
getElementById
(
'
board-app
'
);
const
Store
=
gl
.
issueBoards
.
BoardsStore
;
const
ModalStore
=
gl
.
issueBoards
.
ModalStore
;
...
...
@@ -236,4 +236,4 @@ $(() => {
</div>
`
,
});
}
);
}
app/assets/javascripts/dispatcher.js
View file @
0af391d2
...
...
@@ -180,6 +180,11 @@ var Dispatcher;
.
then
(
callDefault
)
.
catch
(
fail
);
break
;
case
'
projects:boards:index
'
:
import
(
'
./pages/projects/boards
'
)
.
then
(
callDefault
)
.
catch
(
fail
);
break
;
case
'
projects:issues:new
'
:
import
(
'
./pages/projects/issues/new
'
)
.
then
(
callDefault
)
...
...
app/assets/javascripts/pages/projects/boards/index.js
View file @
0af391d2
import
UsersSelect
from
'
~/users_select
'
;
import
ShortcutsNavigation
from
'
~/shortcuts_navigation
'
;
import
initBoards
from
'
~/boards
'
;
document
.
addEventListener
(
'
DOMContentLoaded
'
,
()
=>
{
export
default
()
=>
{
new
UsersSelect
();
// eslint-disable-line no-new
new
ShortcutsNavigation
();
// eslint-disable-line no-new
});
initBoards
();
};
app/views/shared/boards/_show.html.haml
View file @
0af391d2
...
...
@@ -7,7 +7,6 @@
-
content_for
:page_specific_javascripts
do
=
webpack_bundle_tag
'common_vue'
=
webpack_bundle_tag
'filtered_search'
=
webpack_bundle_tag
'boards'
%script
#js-board-template
{
type:
"text/x-template"
}=
render
"shared/boards/components/board"
%script
#js-board-modal-filter
{
type:
"text/x-template"
}=
render
"shared/issuable/search_bar"
,
type: :boards_modal
...
...
config/webpack.config.js
View file @
0af391d2
...
...
@@ -51,7 +51,6 @@ var config = {
account
:
'
./profile/account/index.js
'
,
balsamiq_viewer
:
'
./blob/balsamiq_viewer.js
'
,
blob
:
'
./blob_edit/blob_bundle.js
'
,
boards
:
'
./boards/boards_bundle.js
'
,
common
:
'
./commons/index.js
'
,
common_vue
:
'
./vue_shared/vue_resource_interceptor.js
'
,
cycle_analytics
:
'
./cycle_analytics/cycle_analytics_bundle.js
'
,
...
...
spec/javascripts/test_bundle.js
View file @
0af391d2
...
...
@@ -113,7 +113,7 @@ if (process.env.BABEL_ENV === 'coverage') {
// exempt these files from the coverage report
const
troubleMakers
=
[
'
./blob_edit/blob_bundle.js
'
,
'
./boards/
boards_bundle
.js
'
,
'
./boards/
index
.js
'
,
'
./cycle_analytics/cycle_analytics_bundle.js
'
,
'
./cycle_analytics/components/stage_plan_component.js
'
,
'
./cycle_analytics/components/stage_staging_component.js
'
,
...
...
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