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
a9530519
Commit
a9530519
authored
Feb 23, 2018
by
Clement Ho
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into remove-sidebar-bundle
parents
87359533
6047a99e
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
15 additions
and
9 deletions
+15
-9
app/assets/javascripts/boards/index.js
app/assets/javascripts/boards/index.js
+2
-2
app/assets/javascripts/pages/projects/boards/index.js
app/assets/javascripts/pages/projects/boards/index.js
+2
-0
app/views/shared/boards/_show.html.haml
app/views/shared/boards/_show.html.haml
+0
-1
config/webpack.config.js
config/webpack.config.js
+2
-1
spec/javascripts/test_bundle.js
spec/javascripts/test_bundle.js
+3
-1
spec/support/capybara.rb
spec/support/capybara.rb
+4
-2
spec/support/db_cleaner.rb
spec/support/db_cleaner.rb
+2
-2
No files found.
app/assets/javascripts/boards/
boards_bundle
.js
→
app/assets/javascripts/boards/
index
.js
View file @
a9530519
...
@@ -24,7 +24,7 @@ import './components/new_list_dropdown';
...
@@ -24,7 +24,7 @@ import './components/new_list_dropdown';
import
'
./components/modal/index
'
;
import
'
./components/modal/index
'
;
import
'
../vue_shared/vue_resource_interceptor
'
;
import
'
../vue_shared/vue_resource_interceptor
'
;
$
(
()
=>
{
export
default
()
=>
{
const
$boardApp
=
document
.
getElementById
(
'
board-app
'
);
const
$boardApp
=
document
.
getElementById
(
'
board-app
'
);
const
Store
=
gl
.
issueBoards
.
BoardsStore
;
const
Store
=
gl
.
issueBoards
.
BoardsStore
;
const
ModalStore
=
gl
.
issueBoards
.
ModalStore
;
const
ModalStore
=
gl
.
issueBoards
.
ModalStore
;
...
@@ -236,4 +236,4 @@ $(() => {
...
@@ -236,4 +236,4 @@ $(() => {
</div>
</div>
`
,
`
,
});
});
}
)
;
};
app/assets/javascripts/pages/projects/boards/index.js
View file @
a9530519
import
UsersSelect
from
'
~/users_select
'
;
import
UsersSelect
from
'
~/users_select
'
;
import
ShortcutsNavigation
from
'
~/shortcuts_navigation
'
;
import
ShortcutsNavigation
from
'
~/shortcuts_navigation
'
;
import
initBoards
from
'
~/boards
'
;
document
.
addEventListener
(
'
DOMContentLoaded
'
,
()
=>
{
document
.
addEventListener
(
'
DOMContentLoaded
'
,
()
=>
{
new
UsersSelect
();
// eslint-disable-line no-new
new
UsersSelect
();
// eslint-disable-line no-new
new
ShortcutsNavigation
();
// eslint-disable-line no-new
new
ShortcutsNavigation
();
// eslint-disable-line no-new
initBoards
();
});
});
app/views/shared/boards/_show.html.haml
View file @
a9530519
...
@@ -6,7 +6,6 @@
...
@@ -6,7 +6,6 @@
-
content_for
:page_specific_javascripts
do
-
content_for
:page_specific_javascripts
do
=
webpack_bundle_tag
'common_vue'
=
webpack_bundle_tag
'common_vue'
=
webpack_bundle_tag
'boards'
%script
#js-board-template
{
type:
"text/x-template"
}=
render
"shared/boards/components/board"
%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
%script
#js-board-modal-filter
{
type:
"text/x-template"
}=
render
"shared/issuable/search_bar"
,
type: :boards_modal
...
...
config/webpack.config.js
View file @
a9530519
...
@@ -52,7 +52,8 @@ var config = {
...
@@ -52,7 +52,8 @@ var config = {
entry
:
{
entry
:
{
balsamiq_viewer
:
'
./blob/balsamiq_viewer.js
'
,
balsamiq_viewer
:
'
./blob/balsamiq_viewer.js
'
,
blob
:
'
./blob_edit/blob_bundle.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
'
,
cycle_analytics
:
'
./cycle_analytics/cycle_analytics_bundle.js
'
,
commit_pipelines
:
'
./commit/pipelines/pipelines_bundle.js
'
,
commit_pipelines
:
'
./commit/pipelines/pipelines_bundle.js
'
,
diff_notes
:
'
./diff_notes/diff_notes_bundle.js
'
,
diff_notes
:
'
./diff_notes/diff_notes_bundle.js
'
,
...
...
spec/javascripts/test_bundle.js
View file @
a9530519
...
@@ -113,7 +113,9 @@ if (process.env.BABEL_ENV === 'coverage') {
...
@@ -113,7 +113,9 @@ if (process.env.BABEL_ENV === 'coverage') {
// exempt these files from the coverage report
// exempt these files from the coverage report
const
troubleMakers
=
[
const
troubleMakers
=
[
'
./blob_edit/blob_bundle.js
'
,
'
./blob_edit/blob_bundle.js
'
,
'
./boards/boards_bundle.js
'
,
'
./boards/components/modal/empty_state.js
'
,
'
./boards/components/modal/footer.js
'
,
'
./boards/components/modal/header.js
'
,
'
./cycle_analytics/cycle_analytics_bundle.js
'
,
'
./cycle_analytics/cycle_analytics_bundle.js
'
,
'
./cycle_analytics/components/stage_plan_component.js
'
,
'
./cycle_analytics/components/stage_plan_component.js
'
,
'
./cycle_analytics/components/stage_staging_component.js
'
,
'
./cycle_analytics/components/stage_staging_component.js
'
,
...
...
spec/support/capybara.rb
View file @
a9530519
...
@@ -78,8 +78,10 @@ RSpec.configure do |config|
...
@@ -78,8 +78,10 @@ RSpec.configure do |config|
end
end
config
.
after
(
:example
,
:js
)
do
|
example
|
config
.
after
(
:example
,
:js
)
do
|
example
|
# prevent localstorage from introducing side effects based on test order
# prevent localStorage from introducing side effects based on test order
execute_script
(
"localStorage.clear();"
)
unless
[
''
,
'about:blank'
,
'data:,'
].
include?
Capybara
.
current_session
.
driver
.
browser
.
current_url
execute_script
(
"localStorage.clear();"
)
end
# capybara/rspec already calls Capybara.reset_sessions! in an `after` hook,
# capybara/rspec already calls Capybara.reset_sessions! in an `after` hook,
# but `block_and_wait_for_requests_complete` is called before it so by
# but `block_and_wait_for_requests_complete` is called before it so by
...
...
spec/support/db_cleaner.rb
View file @
a9530519
...
@@ -28,11 +28,11 @@ RSpec.configure do |config|
...
@@ -28,11 +28,11 @@ RSpec.configure do |config|
end
end
config
.
before
(
:each
,
:js
)
do
config
.
before
(
:each
,
:js
)
do
DatabaseCleaner
.
strategy
=
:deletion
DatabaseCleaner
.
strategy
=
:deletion
,
{
cache_tables:
false
}
end
end
config
.
before
(
:each
,
:delete
)
do
config
.
before
(
:each
,
:delete
)
do
DatabaseCleaner
.
strategy
=
:deletion
DatabaseCleaner
.
strategy
=
:deletion
,
{
cache_tables:
false
}
end
end
config
.
before
(
:each
,
:migration
)
do
config
.
before
(
:each
,
:migration
)
do
...
...
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