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
77eda528
Commit
77eda528
authored
Mar 21, 2017
by
Filipa Lacerda
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'resolve-global-vue' into 'master'
Remove Vue from the global space See merge request !10056
parents
9ba5f10f
0d885e48
Changes
62
Show whitespace changes
Inline
Side-by-side
Showing
62 changed files
with
127 additions
and
79 deletions
+127
-79
app/assets/javascripts/boards/boards_bundle.js
app/assets/javascripts/boards/boards_bundle.js
+4
-3
app/assets/javascripts/boards/components/board.js
app/assets/javascripts/boards/components/board.js
+1
-1
app/assets/javascripts/boards/components/board_card.js
app/assets/javascripts/boards/components/board_card.js
+0
-1
app/assets/javascripts/boards/components/board_delete.js
app/assets/javascripts/boards/components/board_delete.js
+2
-1
app/assets/javascripts/boards/components/board_list.js
app/assets/javascripts/boards/components/board_list.js
+1
-1
app/assets/javascripts/boards/components/board_sidebar.js
app/assets/javascripts/boards/components/board_sidebar.js
+2
-1
app/assets/javascripts/boards/components/issue_card_inner.js
app/assets/javascripts/boards/components/issue_card_inner.js
+1
-1
app/assets/javascripts/boards/components/modal/empty_state.js
...assets/javascripts/boards/components/modal/empty_state.js
+2
-1
app/assets/javascripts/boards/components/modal/footer.js
app/assets/javascripts/boards/components/modal/footer.js
+2
-1
app/assets/javascripts/boards/components/modal/index.js
app/assets/javascripts/boards/components/modal/index.js
+2
-1
app/assets/javascripts/boards/components/modal/list.js
app/assets/javascripts/boards/components/modal/list.js
+3
-1
app/assets/javascripts/boards/components/modal/lists_dropdown.js
...ets/javascripts/boards/components/modal/lists_dropdown.js
+2
-1
app/assets/javascripts/boards/components/modal/tabs.js
app/assets/javascripts/boards/components/modal/tabs.js
+2
-1
app/assets/javascripts/boards/components/sidebar/remove_issue.js
...ets/javascripts/boards/components/sidebar/remove_issue.js
+3
-1
app/assets/javascripts/boards/filters/due_date_filters.js
app/assets/javascripts/boards/filters/due_date_filters.js
+2
-1
app/assets/javascripts/boards/models/issue.js
app/assets/javascripts/boards/models/issue.js
+2
-1
app/assets/javascripts/boards/services/board_service.js
app/assets/javascripts/boards/services/board_service.js
+2
-1
app/assets/javascripts/commit/pipelines/pipelines_bundle.js
app/assets/javascripts/commit/pipelines/pipelines_bundle.js
+4
-2
app/assets/javascripts/cycle_analytics/components/stage_code_component.js
...cripts/cycle_analytics/components/stage_code_component.js
+2
-1
app/assets/javascripts/cycle_analytics/components/stage_issue_component.js
...ripts/cycle_analytics/components/stage_issue_component.js
+2
-1
app/assets/javascripts/cycle_analytics/components/stage_production_component.js
.../cycle_analytics/components/stage_production_component.js
+2
-1
app/assets/javascripts/cycle_analytics/components/stage_review_component.js
...ipts/cycle_analytics/components/stage_review_component.js
+2
-1
app/assets/javascripts/cycle_analytics/components/total_time_component.js
...cripts/cycle_analytics/components/total_time_component.js
+2
-1
app/assets/javascripts/cycle_analytics/cycle_analytics_bundle.js
...ets/javascripts/cycle_analytics/cycle_analytics_bundle.js
+2
-2
app/assets/javascripts/diff_notes/components/comment_resolve_btn.js
.../javascripts/diff_notes/components/comment_resolve_btn.js
+2
-1
app/assets/javascripts/diff_notes/components/jump_to_discussion.js
...s/javascripts/diff_notes/components/jump_to_discussion.js
+2
-1
app/assets/javascripts/diff_notes/components/new_issue_for_discussion.js
...scripts/diff_notes/components/new_issue_for_discussion.js
+2
-1
app/assets/javascripts/diff_notes/components/resolve_btn.js
app/assets/javascripts/diff_notes/components/resolve_btn.js
+2
-1
app/assets/javascripts/diff_notes/components/resolve_count.js
...assets/javascripts/diff_notes/components/resolve_count.js
+2
-1
app/assets/javascripts/diff_notes/components/resolve_discussion_btn.js
...vascripts/diff_notes/components/resolve_discussion_btn.js
+1
-1
app/assets/javascripts/diff_notes/diff_notes_bundle.js
app/assets/javascripts/diff_notes/diff_notes_bundle.js
+2
-2
app/assets/javascripts/diff_notes/models/discussion.js
app/assets/javascripts/diff_notes/models/discussion.js
+2
-1
app/assets/javascripts/diff_notes/services/resolve.js
app/assets/javascripts/diff_notes/services/resolve.js
+5
-2
app/assets/javascripts/diff_notes/stores/comments.js
app/assets/javascripts/diff_notes/stores/comments.js
+2
-1
app/assets/javascripts/issuable/time_tracking/components/collapsed_state.js
...ipts/issuable/time_tracking/components/collapsed_state.js
+1
-1
app/assets/javascripts/issuable/time_tracking/components/comparison_pane.js
...ipts/issuable/time_tracking/components/comparison_pane.js
+2
-1
app/assets/javascripts/issuable/time_tracking/components/estimate_only_pane.js
...s/issuable/time_tracking/components/estimate_only_pane.js
+2
-1
app/assets/javascripts/issuable/time_tracking/components/help_state.js
...vascripts/issuable/time_tracking/components/help_state.js
+2
-1
app/assets/javascripts/issuable/time_tracking/components/no_tracking_pane.js
...pts/issuable/time_tracking/components/no_tracking_pane.js
+2
-1
app/assets/javascripts/issuable/time_tracking/components/spent_only_pane.js
...ipts/issuable/time_tracking/components/spent_only_pane.js
+2
-1
app/assets/javascripts/issuable/time_tracking/components/time_tracker.js
...scripts/issuable/time_tracking/components/time_tracker.js
+1
-1
app/assets/javascripts/issuable/time_tracking/time_tracking_bundle.js
...avascripts/issuable/time_tracking/time_tracking_bundle.js
+4
-3
app/assets/javascripts/merge_conflicts/components/diff_file_editor.js
...avascripts/merge_conflicts/components/diff_file_editor.js
+2
-1
app/assets/javascripts/merge_conflicts/components/inline_conflict_lines.js
...ripts/merge_conflicts/components/inline_conflict_lines.js
+2
-1
app/assets/javascripts/merge_conflicts/components/parallel_conflict_lines.js
...pts/merge_conflicts/components/parallel_conflict_lines.js
+2
-1
app/assets/javascripts/merge_conflicts/merge_conflict_store.js
...ssets/javascripts/merge_conflicts/merge_conflict_store.js
+2
-1
app/assets/javascripts/merge_conflicts/merge_conflicts_bundle.js
...ets/javascripts/merge_conflicts/merge_conflicts_bundle.js
+2
-2
app/assets/javascripts/milestone_select.js
app/assets/javascripts/milestone_select.js
+2
-1
app/assets/javascripts/render_gfm.js
app/assets/javascripts/render_gfm.js
+2
-1
app/assets/javascripts/render_math.js
app/assets/javascripts/render_math.js
+3
-1
app/assets/javascripts/subscription.js
app/assets/javascripts/subscription.js
+1
-1
app/assets/javascripts/users_select.js
app/assets/javascripts/users_select.js
+2
-1
app/assets/javascripts/vue_pipelines_index/index.js
app/assets/javascripts/vue_pipelines_index/index.js
+1
-3
app/assets/javascripts/vue_shared/vue_resource_interceptor.js
...assets/javascripts/vue_shared/vue_resource_interceptor.js
+7
-4
spec/javascripts/boards/board_card_spec.js
spec/javascripts/boards/board_card_spec.js
+2
-1
spec/javascripts/boards/boards_store_spec.js
spec/javascripts/boards/boards_store_spec.js
+2
-1
spec/javascripts/boards/issue_card_spec.js
spec/javascripts/boards/issue_card_spec.js
+2
-1
spec/javascripts/boards/list_spec.js
spec/javascripts/boards/list_spec.js
+2
-1
spec/javascripts/boards/modal_store_spec.js
spec/javascripts/boards/modal_store_spec.js
+0
-1
spec/javascripts/issuable_time_tracker_spec.js
spec/javascripts/issuable_time_tracker_spec.js
+3
-3
spec/javascripts/test_bundle.js
spec/javascripts/test_bundle.js
+0
-2
spec/support/wait_for_vue_resource.rb
spec/support/wait_for_vue_resource.rb
+1
-1
No files found.
app/assets/javascripts/boards/boards_bundle.js
View file @
77eda528
/* eslint-disable one-var, quote-props, comma-dangle, space-before-function-paren */
/* global Vue */
/* global BoardService */
import
Vue
from
'
vue
'
;
import
VueResource
from
'
vue-resource
'
;
import
FilteredSearchBoards
from
'
./filtered_search_boards
'
;
import
eventHub
from
'
./eventhub
'
;
window
.
Vue
=
require
(
'
vue
'
);
window
.
Vue
.
use
(
require
(
'
vue-resource
'
));
require
(
'
./models/issue
'
);
require
(
'
./models/label
'
);
require
(
'
./models/list
'
);
...
...
@@ -24,6 +23,8 @@ require('./components/new_list_dropdown');
require
(
'
./components/modal/index
'
);
require
(
'
../vue_shared/vue_resource_interceptor
'
);
Vue
.
use
(
VueResource
);
$
(()
=>
{
const
$boardApp
=
document
.
getElementById
(
'
board-app
'
);
const
Store
=
gl
.
issueBoards
.
BoardsStore
;
...
...
app/assets/javascripts/boards/components/board.js
View file @
77eda528
/* eslint-disable comma-dangle, space-before-function-paren, one-var */
/* global Vue */
/* global Sortable */
import
Vue
from
'
vue
'
;
import
boardBlankState
from
'
./board_blank_state
'
;
require
(
'
./board_delete
'
);
...
...
app/assets/javascripts/boards/components/board_card.js
View file @
77eda528
/* global Vue */
require
(
'
./issue_card_inner
'
);
const
Store
=
gl
.
issueBoards
.
BoardsStore
;
...
...
app/assets/javascripts/boards/components/board_delete.js
View file @
77eda528
/* eslint-disable comma-dangle, space-before-function-paren, no-alert */
/* global Vue */
import
Vue
from
'
vue
'
;
(()
=>
{
window
.
gl
=
window
.
gl
||
{};
...
...
app/assets/javascripts/boards/components/board_list.js
View file @
77eda528
/* eslint-disable comma-dangle, space-before-function-paren, max-len */
/* global Vue */
/* global Sortable */
import
Vue
from
'
vue
'
;
import
boardNewIssue
from
'
./board_new_issue
'
;
import
boardCard
from
'
./board_card
'
;
...
...
app/assets/javascripts/boards/components/board_sidebar.js
View file @
77eda528
/* eslint-disable comma-dangle, space-before-function-paren, no-new */
/* global Vue */
/* global IssuableContext */
/* global MilestoneSelect */
/* global LabelsSelect */
/* global Sidebar */
import
Vue
from
'
vue
'
;
require
(
'
./sidebar/remove_issue
'
);
(()
=>
{
...
...
app/assets/javascripts/boards/components/issue_card_inner.js
View file @
77eda528
/* global Vue */
import
Vue
from
'
vue
'
;
import
eventHub
from
'
../eventhub
'
;
(()
=>
{
...
...
app/assets/javascripts/boards/components/modal/empty_state.js
View file @
77eda528
/* global Vue */
import
Vue
from
'
vue
'
;
(()
=>
{
const
ModalStore
=
gl
.
issueBoards
.
ModalStore
;
...
...
app/assets/javascripts/boards/components/modal/footer.js
View file @
77eda528
/* eslint-disable no-new */
/* global Vue */
/* global Flash */
import
Vue
from
'
vue
'
;
require
(
'
./lists_dropdown
'
);
(()
=>
{
...
...
app/assets/javascripts/boards/components/modal/index.js
View file @
77eda528
/* global Vue */
/* global ListIssue */
import
Vue
from
'
vue
'
;
import
queryData
from
'
../../utils/query_data
'
;
require
(
'
./header
'
);
...
...
app/assets/javascripts/boards/components/modal/list.js
View file @
77eda528
/* global Vue */
/* global ListIssue */
/* global bp */
import
Vue
from
'
vue
'
;
(()
=>
{
const
ModalStore
=
gl
.
issueBoards
.
ModalStore
;
...
...
app/assets/javascripts/boards/components/modal/lists_dropdown.js
View file @
77eda528
/* global Vue */
import
Vue
from
'
vue
'
;
(()
=>
{
const
ModalStore
=
gl
.
issueBoards
.
ModalStore
;
...
...
app/assets/javascripts/boards/components/modal/tabs.js
View file @
77eda528
/* global Vue */
import
Vue
from
'
vue
'
;
(()
=>
{
const
ModalStore
=
gl
.
issueBoards
.
ModalStore
;
...
...
app/assets/javascripts/boards/components/sidebar/remove_issue.js
View file @
77eda528
/* eslint-disable no-new */
/* global Vue */
/* global Flash */
import
Vue
from
'
vue
'
;
(()
=>
{
const
Store
=
gl
.
issueBoards
.
BoardsStore
;
...
...
app/assets/javascripts/boards/filters/due_date_filters.js
View file @
77eda528
/* global Vue */
/* global dateFormat */
import
Vue
from
'
vue
'
;
Vue
.
filter
(
'
due-date
'
,
(
value
)
=>
{
const
date
=
new
Date
(
value
);
return
dateFormat
(
date
,
'
mmm d, yyyy
'
,
true
);
...
...
app/assets/javascripts/boards/models/issue.js
View file @
77eda528
/* eslint-disable no-unused-vars, space-before-function-paren, arrow-body-style, arrow-parens, comma-dangle, max-len */
/* global Vue */
/* global ListLabel */
/* global ListMilestone */
/* global ListUser */
import
Vue
from
'
vue
'
;
class
ListIssue
{
constructor
(
obj
)
{
this
.
globalId
=
obj
.
id
;
...
...
app/assets/javascripts/boards/services/board_service.js
View file @
77eda528
/* eslint-disable space-before-function-paren, comma-dangle, no-param-reassign, camelcase, max-len, no-unused-vars */
/* global Vue */
import
Vue
from
'
vue
'
;
class
BoardService
{
constructor
(
root
,
bulkUpdatePath
,
boardId
)
{
...
...
app/assets/javascripts/commit/pipelines/pipelines_bundle.js
View file @
77eda528
/* eslint-disable no-param-reassign */
import
Vue
from
'
vue
'
;
import
VueResource
from
'
vue-resource
'
;
import
CommitPipelinesTable
from
'
./pipelines_table
'
;
window
.
Vue
=
require
(
'
vue
'
);
window
.
Vue
.
use
(
require
(
'
vue-resource
'
));
Vue
.
use
(
VueResource
);
/**
* Commits View > Pipelines Tab > Pipelines Table.
...
...
app/assets/javascripts/cycle_analytics/components/stage_code_component.js
View file @
77eda528
/* eslint-disable no-param-reassign */
/* global Vue */
import
Vue
from
'
vue
'
;
((
global
)
=>
{
global
.
cycleAnalytics
=
global
.
cycleAnalytics
||
{};
...
...
app/assets/javascripts/cycle_analytics/components/stage_issue_component.js
View file @
77eda528
/* eslint-disable no-param-reassign */
/* global Vue */
import
Vue
from
'
vue
'
;
((
global
)
=>
{
global
.
cycleAnalytics
=
global
.
cycleAnalytics
||
{};
...
...
app/assets/javascripts/cycle_analytics/components/stage_production_component.js
View file @
77eda528
/* eslint-disable no-param-reassign */
/* global Vue */
import
Vue
from
'
vue
'
;
((
global
)
=>
{
global
.
cycleAnalytics
=
global
.
cycleAnalytics
||
{};
...
...
app/assets/javascripts/cycle_analytics/components/stage_review_component.js
View file @
77eda528
/* eslint-disable no-param-reassign */
/* global Vue */
import
Vue
from
'
vue
'
;
((
global
)
=>
{
global
.
cycleAnalytics
=
global
.
cycleAnalytics
||
{};
...
...
app/assets/javascripts/cycle_analytics/components/total_time_component.js
View file @
77eda528
/* eslint-disable no-param-reassign */
/* global Vue */
import
Vue
from
'
vue
'
;
((
global
)
=>
{
global
.
cycleAnalytics
=
global
.
cycleAnalytics
||
{};
...
...
app/assets/javascripts/cycle_analytics/cycle_analytics_bundle.js
View file @
77eda528
/* global Vue */
/* global Cookies */
/* global Flash */
window
.
Vue
=
require
(
'
vue
'
);
import
Vue
from
'
vue
'
;
window
.
Cookies
=
require
(
'
js-cookie
'
);
require
(
'
./components/stage_code_component
'
);
require
(
'
./components/stage_issue_component
'
);
...
...
app/assets/javascripts/diff_notes/components/comment_resolve_btn.js
View file @
77eda528
/* eslint-disable comma-dangle, object-shorthand, func-names, no-else-return, quotes, no-lonely-if, max-len */
/* global CommentsStore */
const
Vue
=
require
(
'
vue
'
);
import
Vue
from
'
vue
'
;
(()
=>
{
const
CommentAndResolveBtn
=
Vue
.
extend
({
...
...
app/assets/javascripts/diff_notes/components/jump_to_discussion.js
View file @
77eda528
/* eslint-disable comma-dangle, object-shorthand, func-names, no-else-return, guard-for-in, no-restricted-syntax, one-var, space-before-function-paren, no-lonely-if, no-continue, brace-style, max-len, quotes */
/* global DiscussionMixins */
/* global CommentsStore */
const
Vue
=
require
(
'
vue
'
);
import
Vue
from
'
vue
'
;
(()
=>
{
const
JumpToDiscussion
=
Vue
.
extend
({
...
...
app/assets/javascripts/diff_notes/components/new_issue_for_discussion.js
View file @
77eda528
/* global Vue */
/* global CommentsStore */
import
Vue
from
'
vue
'
;
(()
=>
{
const
NewIssueForDiscussion
=
Vue
.
extend
({
props
:
{
...
...
app/assets/javascripts/diff_notes/components/resolve_btn.js
View file @
77eda528
...
...
@@ -2,7 +2,8 @@
/* global CommentsStore */
/* global ResolveService */
/* global Flash */
const
Vue
=
require
(
'
vue
'
);
import
Vue
from
'
vue
'
;
(()
=>
{
const
ResolveBtn
=
Vue
.
extend
({
...
...
app/assets/javascripts/diff_notes/components/resolve_count.js
View file @
77eda528
/* eslint-disable comma-dangle, object-shorthand, func-names, no-param-reassign */
/* global DiscussionMixins */
/* global CommentsStore */
const
Vue
=
require
(
'
vue
'
);
import
Vue
from
'
vue
'
;
((
w
)
=>
{
w
.
ResolveCount
=
Vue
.
extend
({
...
...
app/assets/javascripts/diff_notes/components/resolve_discussion_btn.js
View file @
77eda528
...
...
@@ -2,7 +2,7 @@
/* global CommentsStore */
/* global ResolveService */
const
Vue
=
require
(
'
vue
'
)
;
import
Vue
from
'
vue
'
;
(()
=>
{
const
ResolveDiscussionBtn
=
Vue
.
extend
({
...
...
app/assets/javascripts/diff_notes/diff_notes_bundle.js
View file @
77eda528
/* eslint-disable func-names, comma-dangle, new-cap, no-new, max-len */
/* global Vue */
/* global ResolveCount */
const
Vue
=
require
(
'
vue
'
);
import
Vue
from
'
vue
'
;
require
(
'
./models/discussion
'
);
require
(
'
./models/note
'
);
require
(
'
./stores/comments
'
);
...
...
app/assets/javascripts/diff_notes/models/discussion.js
View file @
77eda528
/* eslint-disable space-before-function-paren, camelcase, guard-for-in, no-restricted-syntax, no-unused-vars, max-len */
/* global Vue */
/* global NoteModel */
import
Vue
from
'
vue
'
;
class
DiscussionModel
{
constructor
(
discussionId
)
{
this
.
id
=
discussionId
;
...
...
app/assets/javascripts/diff_notes/services/resolve.js
View file @
77eda528
...
...
@@ -2,10 +2,13 @@
/* global Flash */
/* global CommentsStore */
const
Vue
=
window
.
Vue
=
require
(
'
vue
'
);
window
.
Vue
.
use
(
require
(
'
vue-resource
'
));
import
Vue
from
'
vue
'
;
import
VueResource
from
'
vue-resource
'
;
require
(
'
../../vue_shared/vue_resource_interceptor
'
);
Vue
.
use
(
VueResource
);
(()
=>
{
window
.
gl
=
window
.
gl
||
{};
...
...
app/assets/javascripts/diff_notes/stores/comments.js
View file @
77eda528
/* eslint-disable object-shorthand, func-names, camelcase, no-restricted-syntax, guard-for-in, comma-dangle, max-len, no-param-reassign */
/* global Vue */
/* global DiscussionModel */
import
Vue
from
'
vue
'
;
((
w
)
=>
{
w
.
CommentsStore
=
{
state
:
{},
...
...
app/assets/javascripts/issuable/time_tracking/components/collapsed_state.js
View file @
77eda528
/* global Vue */
import
Vue
from
'
vue
'
;
import
stopwatchSvg
from
'
icons/_icon_stopwatch.svg
'
;
require
(
'
../../../lib/utils/pretty_time
'
);
...
...
app/assets/javascripts/issuable/time_tracking/components/comparison_pane.js
View file @
77eda528
/* global Vue */
import
Vue
from
'
vue
'
;
require
(
'
../../../lib/utils/pretty_time
'
);
(()
=>
{
...
...
app/assets/javascripts/issuable/time_tracking/components/estimate_only_pane.js
View file @
77eda528
/* global Vue */
import
Vue
from
'
vue
'
;
(()
=>
{
Vue
.
component
(
'
time-tracking-estimate-only-pane
'
,
{
name
:
'
time-tracking-estimate-only-pane
'
,
...
...
app/assets/javascripts/issuable/time_tracking/components/help_state.js
View file @
77eda528
/* global Vue */
import
Vue
from
'
vue
'
;
(()
=>
{
Vue
.
component
(
'
time-tracking-help-state
'
,
{
name
:
'
time-tracking-help-state
'
,
...
...
app/assets/javascripts/issuable/time_tracking/components/no_tracking_pane.js
View file @
77eda528
/* global Vue */
import
Vue
from
'
vue
'
;
(()
=>
{
Vue
.
component
(
'
time-tracking-no-tracking-pane
'
,
{
name
:
'
time-tracking-no-tracking-pane
'
,
...
...
app/assets/javascripts/issuable/time_tracking/components/spent_only_pane.js
View file @
77eda528
/* global Vue */
import
Vue
from
'
vue
'
;
(()
=>
{
Vue
.
component
(
'
time-tracking-spent-only-pane
'
,
{
name
:
'
time-tracking-spent-only-pane
'
,
...
...
app/assets/javascripts/issuable/time_tracking/components/time_tracker.js
View file @
77eda528
/* global Vue */
import
Vue
from
'
vue
'
;
require
(
'
./help_state
'
);
require
(
'
./collapsed_state
'
);
...
...
app/assets/javascripts/issuable/time_tracking/time_tracking_bundle.js
View file @
77eda528
/* global Vue */
import
Vue
from
'
vue
'
;
import
VueResource
from
'
vue-resource
'
;
window
.
Vue
=
require
(
'
vue
'
);
window
.
Vue
.
use
(
require
(
'
vue-resource
'
));
require
(
'
./components/time_tracker
'
);
require
(
'
../../smart_interval
'
);
require
(
'
../../subbable_resource
'
);
Vue
.
use
(
VueResource
);
(()
=>
{
/* This Vue instance represents what will become the parent instance for the
* sidebar. It will be responsible for managing `issuable` state and propagating
...
...
app/assets/javascripts/merge_conflicts/components/diff_file_editor.js
View file @
77eda528
/* eslint-disable comma-dangle, quote-props, no-useless-computed-key, object-shorthand, no-new, no-param-reassign, max-len */
/* global Vue */
/* global ace */
/* global Flash */
import
Vue
from
'
vue
'
;
((
global
)
=>
{
global
.
mergeConflicts
=
global
.
mergeConflicts
||
{};
...
...
app/assets/javascripts/merge_conflicts/components/inline_conflict_lines.js
View file @
77eda528
/* eslint-disable no-param-reassign, comma-dangle */
/* global Vue */
import
Vue
from
'
vue
'
;
((
global
)
=>
{
global
.
mergeConflicts
=
global
.
mergeConflicts
||
{};
...
...
app/assets/javascripts/merge_conflicts/components/parallel_conflict_lines.js
View file @
77eda528
/* eslint-disable no-param-reassign, comma-dangle */
/* global Vue */
import
Vue
from
'
vue
'
;
((
global
)
=>
{
global
.
mergeConflicts
=
global
.
mergeConflicts
||
{};
...
...
app/assets/javascripts/merge_conflicts/merge_conflict_store.js
View file @
77eda528
/* eslint-disable comma-dangle, object-shorthand, no-param-reassign, camelcase, no-nested-ternary, no-continue, max-len */
/* global Cookies */
/* global Vue */
import
Vue
from
'
vue
'
;
((
global
)
=>
{
global
.
mergeConflicts
=
global
.
mergeConflicts
||
{};
...
...
app/assets/javascripts/merge_conflicts/merge_conflicts_bundle.js
View file @
77eda528
/* eslint-disable new-cap, comma-dangle, no-new */
/* global Vue */
/* global Flash */
window
.
Vue
=
require
(
'
vue
'
);
import
Vue
from
'
vue
'
;
require
(
'
./merge_conflict_store
'
);
require
(
'
./merge_conflict_service
'
);
require
(
'
./mixins/line_conflict_utils
'
);
...
...
app/assets/javascripts/milestone_select.js
View file @
77eda528
/* eslint-disable func-names, space-before-function-paren, wrap-iife, no-var, no-underscore-dangle, prefer-arrow-callback, max-len, one-var, one-var-declaration-per-line, no-unused-vars, object-shorthand, comma-dangle, no-else-return, no-self-compare, consistent-return, no-param-reassign, no-shadow */
/* global Vue */
/* global Issuable */
/* global ListMilestone */
import
Vue
from
'
vue
'
;
(
function
()
{
this
.
MilestoneSelect
=
(
function
()
{
function
MilestoneSelect
(
currentProject
,
els
)
{
...
...
app/assets/javascripts/render_gfm.js
View file @
77eda528
/* eslint-disable func-names, space-before-function-paren, consistent-return, no-var, no-undef, no-else-return, prefer-arrow-callback, max-len */
/* eslint-disable func-names, space-before-function-paren, consistent-return, no-var, no-else-return, prefer-arrow-callback, max-len */
// Render Gitlab flavoured Markdown
//
// Delegates to syntax highlight and render math
...
...
app/assets/javascripts/render_math.js
View file @
77eda528
/* eslint-disable func-names, space-before-function-paren, consistent-return, no-var, no-undef, no-else-return, prefer-arrow-callback, max-len, no-console */
/* eslint-disable func-names, space-before-function-paren, consistent-return, no-var, no-else-return, prefer-arrow-callback, max-len, no-console */
/* global katex */
// Renders math using KaTeX in any element with the
// `js-render-math` class
//
...
...
app/assets/javascripts/subscription.js
View file @
77eda528
/* global Vue */
import
Vue
from
'
vue
'
;
(()
=>
{
class
Subscription
{
...
...
app/assets/javascripts/users_select.js
View file @
77eda528
/* eslint-disable func-names, space-before-function-paren, one-var, no-var, prefer-rest-params, wrap-iife, quotes, max-len, one-var-declaration-per-line, vars-on-top, prefer-arrow-callback, consistent-return, comma-dangle, object-shorthand, no-shadow, no-unused-vars, no-else-return, no-self-compare, prefer-template, no-unused-expressions, no-lonely-if, yoda, prefer-spread, no-void, camelcase, no-param-reassign */
/* global Vue */
/* global Issuable */
/* global ListUser */
import
Vue
from
'
vue
'
;
(
function
()
{
var
bind
=
function
(
fn
,
me
)
{
return
function
()
{
return
fn
.
apply
(
me
,
arguments
);
};
},
slice
=
[].
slice
;
...
...
app/assets/javascripts/vue_pipelines_index/index.js
View file @
77eda528
import
Vue
from
'
vue
'
;
import
PipelinesStore
from
'
./stores/pipelines_store
'
;
import
PipelinesComponent
from
'
./pipelines
'
;
import
'
../vue_shared/vue_resource_interceptor
'
;
const
Vue
=
window
.
Vue
=
require
(
'
vue
'
);
window
.
Vue
.
use
(
require
(
'
vue-resource
'
));
$
(()
=>
new
Vue
({
el
:
document
.
querySelector
(
'
.vue-pipelines-index
'
),
...
...
app/assets/javascripts/vue_shared/vue_resource_interceptor.js
View file @
77eda528
/* eslint-disable no-param-reassign, no-plusplus */
import
Vue
from
'
vue
'
;
import
VueResource
from
'
vue-resource
'
;
Vue
.
use
(
VueResource
);
// Maintain a global counter for active requests
// see: spec/support/wait_for_vue_resource.rb
Vue
.
http
.
interceptors
.
push
((
request
,
next
)
=>
{
Vue
.
activeResources
=
Vue
.
activeResources
?
Vue
.
activeResources
+
1
:
1
;
window
.
activeVueResources
=
window
.
activeVueResources
||
0
;
window
.
activeVueResources
+=
1
;
next
(()
=>
{
Vue
.
activeResources
--
;
window
.
activeVueResources
-=
1
;
});
});
// Inject CSRF token so we don't break any tests.
Vue
.
http
.
interceptors
.
push
((
request
,
next
)
=>
{
// needed in order to not break the tests.
if
(
$
.
rails
)
{
// eslint-disable-next-line no-param-reassign
request
.
headers
[
'
X-CSRF-Token
'
]
=
$
.
rails
.
csrfToken
();
}
next
();
...
...
spec/javascripts/boards/board_card_spec.js
View file @
77eda528
/* global Vue */
/* global List */
/* global ListLabel */
/* global listObj */
/* global boardsMockInterceptor */
/* global BoardService */
import
Vue
from
'
vue
'
;
require
(
'
~/boards/models/list
'
);
require
(
'
~/boards/models/label
'
);
require
(
'
~/boards/stores/boards_store
'
);
...
...
spec/javascripts/boards/boards_store_spec.js
View file @
77eda528
/* eslint-disable comma-dangle, one-var, no-unused-vars */
/* global Vue */
/* global BoardService */
/* global boardsMockInterceptor */
/* global Cookies */
...
...
@@ -7,6 +6,8 @@
/* global listObjDuplicate */
/* global ListIssue */
import
Vue
from
'
vue
'
;
require
(
'
~/lib/utils/url_utility
'
);
require
(
'
~/boards/models/issue
'
);
require
(
'
~/boards/models/label
'
);
...
...
spec/javascripts/boards/issue_card_spec.js
View file @
77eda528
/* global Vue */
/* global ListUser */
/* global ListLabel */
/* global listObj */
/* global ListIssue */
import
Vue
from
'
vue
'
;
require
(
'
~/boards/models/issue
'
);
require
(
'
~/boards/models/label
'
);
require
(
'
~/boards/models/list
'
);
...
...
spec/javascripts/boards/list_spec.js
View file @
77eda528
/* eslint-disable comma-dangle */
/* global Vue */
/* global boardsMockInterceptor */
/* global BoardService */
/* global List */
...
...
@@ -7,6 +6,8 @@
/* global listObj */
/* global listObjDuplicate */
import
Vue
from
'
vue
'
;
require
(
'
~/lib/utils/url_utility
'
);
require
(
'
~/boards/models/issue
'
);
require
(
'
~/boards/models/label
'
);
...
...
spec/javascripts/boards/modal_store_spec.js
View file @
77eda528
/* global Vue */
/* global ListIssue */
require
(
'
~/boards/models/issue
'
);
...
...
spec/javascripts/issuable_time_tracker_spec.js
View file @
77eda528
/* eslint-disable */
/* eslint-disable no-unused-vars, space-before-function-paren, func-call-spacing, no-spaced-func, semi, max-len, quotes, space-infix-ops, padded-blocks */
import
Vue
from
'
vue
'
;
require
(
'
jquery
'
);
require
(
'
vue
'
);
require
(
'
~/issuable/time_tracking/components/time_tracker
'
);
function
initTimeTrackingComponent
(
opts
)
{
...
...
spec/javascripts/test_bundle.js
View file @
77eda528
...
...
@@ -9,8 +9,6 @@ require('~/commons/index.js');
window
.
$
=
window
.
jQuery
=
require
(
'
jquery
'
);
window
.
_
=
require
(
'
underscore
'
);
window
.
Cookies
=
require
(
'
js-cookie
'
);
window
.
Vue
=
require
(
'
vue
'
);
window
.
Vue
.
use
(
require
(
'
vue-resource
'
));
// stub expected globals
window
.
gl
=
window
.
gl
||
{};
...
...
spec/support/wait_for_vue_resource.rb
View file @
77eda528
module
WaitForVueResource
def
wait_for_vue_resource
(
spinner:
true
)
Timeout
.
timeout
(
Capybara
.
default_max_wait_time
)
do
loop
until
page
.
evaluate_script
(
'
Vue.activ
eResources'
).
zero?
loop
until
page
.
evaluate_script
(
'
window.activeVu
eResources'
).
zero?
end
end
end
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