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
f248be72
Commit
f248be72
authored
Mar 09, 2018
by
Mike Greiling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
require jQuery to be explicitly imported
parent
c591cf53
Changes
289
Hide whitespace changes
Inline
Side-by-side
Showing
289 changed files
with
386 additions
and
20 deletions
+386
-20
.eslintrc
.eslintrc
+0
-1
app/assets/javascripts/activities.js
app/assets/javascripts/activities.js
+1
-0
app/assets/javascripts/ajax_loading_spinner.js
app/assets/javascripts/ajax_loading_spinner.js
+2
-0
app/assets/javascripts/api.js
app/assets/javascripts/api.js
+1
-0
app/assets/javascripts/awards_handler.js
app/assets/javascripts/awards_handler.js
+2
-0
app/assets/javascripts/behaviors/copy_as_gfm.js
app/assets/javascripts/behaviors/copy_as_gfm.js
+1
-0
app/assets/javascripts/behaviors/copy_to_clipboard.js
app/assets/javascripts/behaviors/copy_to_clipboard.js
+1
-0
app/assets/javascripts/behaviors/details_behavior.js
app/assets/javascripts/behaviors/details_behavior.js
+1
-0
app/assets/javascripts/behaviors/quick_submit.js
app/assets/javascripts/behaviors/quick_submit.js
+1
-0
app/assets/javascripts/behaviors/requires_input.js
app/assets/javascripts/behaviors/requires_input.js
+1
-0
app/assets/javascripts/behaviors/toggler_behavior.js
app/assets/javascripts/behaviors/toggler_behavior.js
+3
-1
app/assets/javascripts/blob/blob_file_dropzone.js
app/assets/javascripts/blob/blob_file_dropzone.js
+2
-0
app/assets/javascripts/blob/blob_fork_suggestion.js
app/assets/javascripts/blob/blob_fork_suggestion.js
+2
-0
app/assets/javascripts/blob/file_template_mediator.js
app/assets/javascripts/blob/file_template_mediator.js
+2
-0
app/assets/javascripts/blob/file_template_selector.js
app/assets/javascripts/blob/file_template_selector.js
+2
-0
app/assets/javascripts/blob/template_selector.js
app/assets/javascripts/blob/template_selector.js
+3
-1
app/assets/javascripts/blob/viewer/index.js
app/assets/javascripts/blob/viewer/index.js
+1
-0
app/assets/javascripts/blob_edit/blob_bundle.js
app/assets/javascripts/blob_edit/blob_bundle.js
+2
-0
app/assets/javascripts/blob_edit/edit_blob.js
app/assets/javascripts/blob_edit/edit_blob.js
+1
-0
app/assets/javascripts/boards/components/board.js
app/assets/javascripts/boards/components/board.js
+2
-0
app/assets/javascripts/boards/components/board_delete.js
app/assets/javascripts/boards/components/board_delete.js
+1
-0
app/assets/javascripts/boards/components/board_new_issue.vue
app/assets/javascripts/boards/components/board_new_issue.vue
+1
-0
app/assets/javascripts/boards/components/board_sidebar.js
app/assets/javascripts/boards/components/board_sidebar.js
+1
-0
app/assets/javascripts/boards/components/issue_card_inner.js
app/assets/javascripts/boards/components/issue_card_inner.js
+1
-0
app/assets/javascripts/boards/components/new_list_dropdown.js
...assets/javascripts/boards/components/new_list_dropdown.js
+3
-2
app/assets/javascripts/boards/components/project_select.vue
app/assets/javascripts/boards/components/project_select.vue
+2
-0
app/assets/javascripts/boards/index.js
app/assets/javascripts/boards/index.js
+1
-0
app/assets/javascripts/boards/mixins/sortable_default_options.js
...ets/javascripts/boards/mixins/sortable_default_options.js
+1
-0
app/assets/javascripts/boards/stores/boards_store.js
app/assets/javascripts/boards/stores/boards_store.js
+2
-0
app/assets/javascripts/branches/branches_delete_modal.js
app/assets/javascripts/branches/branches_delete_modal.js
+2
-0
app/assets/javascripts/breadcrumb.js
app/assets/javascripts/breadcrumb.js
+2
-0
app/assets/javascripts/build_artifacts.js
app/assets/javascripts/build_artifacts.js
+2
-0
app/assets/javascripts/build_variables.js
app/assets/javascripts/build_variables.js
+2
-2
app/assets/javascripts/ci_variable_list/native_form_variable_list.js
...javascripts/ci_variable_list/native_form_variable_list.js
+1
-0
app/assets/javascripts/commit/image_file.js
app/assets/javascripts/commit/image_file.js
+2
-0
app/assets/javascripts/commit_merge_requests.js
app/assets/javascripts/commit_merge_requests.js
+1
-0
app/assets/javascripts/commits.js
app/assets/javascripts/commits.js
+1
-0
app/assets/javascripts/compare.js
app/assets/javascripts/compare.js
+2
-0
app/assets/javascripts/compare_autocomplete.js
app/assets/javascripts/compare_autocomplete.js
+2
-0
app/assets/javascripts/confirm_danger_modal.js
app/assets/javascripts/confirm_danger_modal.js
+2
-0
app/assets/javascripts/contextual_sidebar.js
app/assets/javascripts/contextual_sidebar.js
+1
-0
app/assets/javascripts/create_label.js
app/assets/javascripts/create_label.js
+2
-0
app/assets/javascripts/cycle_analytics/cycle_analytics_bundle.js
...ets/javascripts/cycle_analytics/cycle_analytics_bundle.js
+1
-0
app/assets/javascripts/diff.js
app/assets/javascripts/diff.js
+1
-0
app/assets/javascripts/diff_notes/components/comment_resolve_btn.js
.../javascripts/diff_notes/components/comment_resolve_btn.js
+1
-0
app/assets/javascripts/diff_notes/components/diff_note_avatars.js
...ts/javascripts/diff_notes/components/diff_note_avatars.js
+1
-0
app/assets/javascripts/diff_notes/components/jump_to_discussion.js
...s/javascripts/diff_notes/components/jump_to_discussion.js
+1
-0
app/assets/javascripts/diff_notes/components/resolve_btn.js
app/assets/javascripts/diff_notes/components/resolve_btn.js
+1
-0
app/assets/javascripts/diff_notes/diff_notes_bundle.js
app/assets/javascripts/diff_notes/diff_notes_bundle.js
+1
-0
app/assets/javascripts/diff_notes/models/discussion.js
app/assets/javascripts/diff_notes/models/discussion.js
+1
-0
app/assets/javascripts/dispatcher.js
app/assets/javascripts/dispatcher.js
+2
-0
app/assets/javascripts/dropzone_input.js
app/assets/javascripts/dropzone_input.js
+1
-0
app/assets/javascripts/due_date_select.js
app/assets/javascripts/due_date_select.js
+1
-0
app/assets/javascripts/environments/components/environment_stop.vue
.../javascripts/environments/components/environment_stop.vue
+2
-0
app/assets/javascripts/experimental_flags.js
app/assets/javascripts/experimental_flags.js
+1
-0
app/assets/javascripts/feature_highlight/feature_highlight.js
...assets/javascripts/feature_highlight/feature_highlight.js
+1
-0
app/assets/javascripts/feature_highlight/feature_highlight_helper.js
...javascripts/feature_highlight/feature_highlight_helper.js
+1
-0
app/assets/javascripts/filterable_list.js
app/assets/javascripts/filterable_list.js
+1
-0
app/assets/javascripts/gfm_auto_complete.js
app/assets/javascripts/gfm_auto_complete.js
+1
-0
app/assets/javascripts/gl_dropdown.js
app/assets/javascripts/gl_dropdown.js
+3
-1
app/assets/javascripts/gl_field_error.js
app/assets/javascripts/gl_field_error.js
+2
-0
app/assets/javascripts/gl_field_errors.js
app/assets/javascripts/gl_field_errors.js
+1
-0
app/assets/javascripts/gl_form.js
app/assets/javascripts/gl_form.js
+1
-0
app/assets/javascripts/gpg_badges.js
app/assets/javascripts/gpg_badges.js
+1
-0
app/assets/javascripts/group.js
app/assets/javascripts/group.js
+2
-0
app/assets/javascripts/group_avatar.js
app/assets/javascripts/group_avatar.js
+2
-0
app/assets/javascripts/group_label_subscription.js
app/assets/javascripts/group_label_subscription.js
+1
-0
app/assets/javascripts/groups/components/app.vue
app/assets/javascripts/groups/components/app.vue
+1
-0
app/assets/javascripts/groups/groups_filterable_list.js
app/assets/javascripts/groups/groups_filterable_list.js
+1
-0
app/assets/javascripts/groups/transfer_dropdown.js
app/assets/javascripts/groups/transfer_dropdown.js
+2
-0
app/assets/javascripts/groups_select.js
app/assets/javascripts/groups_select.js
+1
-0
app/assets/javascripts/header.js
app/assets/javascripts/header.js
+1
-0
app/assets/javascripts/help/help.js
app/assets/javascripts/help/help.js
+3
-0
app/assets/javascripts/how_to_merge.js
app/assets/javascripts/how_to_merge.js
+2
-0
app/assets/javascripts/image_diff/image_diff.js
app/assets/javascripts/image_diff/image_diff.js
+1
-0
app/assets/javascripts/importer_status.js
app/assets/javascripts/importer_status.js
+1
-0
app/assets/javascripts/init_changes_dropdown.js
app/assets/javascripts/init_changes_dropdown.js
+1
-0
app/assets/javascripts/init_labels.js
app/assets/javascripts/init_labels.js
+1
-0
app/assets/javascripts/integrations/integration_settings_form.js
...ets/javascripts/integrations/integration_settings_form.js
+1
-0
app/assets/javascripts/issuable/auto_width_dropdown_select.js
...assets/javascripts/issuable/auto_width_dropdown_select.js
+2
-0
app/assets/javascripts/issuable_bulk_update_actions.js
app/assets/javascripts/issuable_bulk_update_actions.js
+2
-0
app/assets/javascripts/issuable_bulk_update_sidebar.js
app/assets/javascripts/issuable_bulk_update_sidebar.js
+1
-0
app/assets/javascripts/issuable_context.js
app/assets/javascripts/issuable_context.js
+1
-0
app/assets/javascripts/issuable_form.js
app/assets/javascripts/issuable_form.js
+1
-0
app/assets/javascripts/issuable_index.js
app/assets/javascripts/issuable_index.js
+1
-0
app/assets/javascripts/issue.js
app/assets/javascripts/issue.js
+2
-0
app/assets/javascripts/issue_show/components/description.vue
app/assets/javascripts/issue_show/components/description.vue
+1
-0
app/assets/javascripts/issue_show/components/fields/description_template.vue
...pts/issue_show/components/fields/description_template.vue
+1
-0
app/assets/javascripts/issue_status_select.js
app/assets/javascripts/issue_status_select.js
+2
-0
app/assets/javascripts/job.js
app/assets/javascripts/job.js
+1
-0
app/assets/javascripts/label_manager.js
app/assets/javascripts/label_manager.js
+2
-0
app/assets/javascripts/labels.js
app/assets/javascripts/labels.js
+2
-0
app/assets/javascripts/labels_select.js
app/assets/javascripts/labels_select.js
+2
-0
app/assets/javascripts/layout_nav.js
app/assets/javascripts/layout_nav.js
+1
-0
app/assets/javascripts/lib/utils/bootstrap_linked_tabs.js
app/assets/javascripts/lib/utils/bootstrap_linked_tabs.js
+2
-0
app/assets/javascripts/lib/utils/common_utils.js
app/assets/javascripts/lib/utils/common_utils.js
+2
-2
app/assets/javascripts/lib/utils/csrf.js
app/assets/javascripts/lib/utils/csrf.js
+2
-0
app/assets/javascripts/lib/utils/datetime_utility.js
app/assets/javascripts/lib/utils/datetime_utility.js
+1
-0
app/assets/javascripts/lib/utils/text_markdown.js
app/assets/javascripts/lib/utils/text_markdown.js
+2
-0
app/assets/javascripts/line_highlighter.js
app/assets/javascripts/line_highlighter.js
+2
-0
app/assets/javascripts/logo.js
app/assets/javascripts/logo.js
+2
-0
app/assets/javascripts/main.js
app/assets/javascripts/main.js
+1
-0
app/assets/javascripts/member_expiration_date.js
app/assets/javascripts/member_expiration_date.js
+1
-0
app/assets/javascripts/members.js
app/assets/javascripts/members.js
+2
-0
app/assets/javascripts/merge_conflicts/merge_conflict_store.js
...ssets/javascripts/merge_conflicts/merge_conflict_store.js
+1
-0
app/assets/javascripts/merge_conflicts/merge_conflicts_bundle.js
...ets/javascripts/merge_conflicts/merge_conflicts_bundle.js
+1
-0
app/assets/javascripts/merge_request.js
app/assets/javascripts/merge_request.js
+2
-0
app/assets/javascripts/merge_request_tabs.js
app/assets/javascripts/merge_request_tabs.js
+1
-0
app/assets/javascripts/milestone.js
app/assets/javascripts/milestone.js
+1
-0
app/assets/javascripts/milestone_select.js
app/assets/javascripts/milestone_select.js
+2
-0
app/assets/javascripts/mini_pipeline_graph_dropdown.js
app/assets/javascripts/mini_pipeline_graph_dropdown.js
+2
-0
app/assets/javascripts/namespace_select.js
app/assets/javascripts/namespace_select.js
+2
-0
app/assets/javascripts/network/branch_graph.js
app/assets/javascripts/network/branch_graph.js
+1
-0
app/assets/javascripts/new_branch_form.js
app/assets/javascripts/new_branch_form.js
+2
-0
app/assets/javascripts/notes/components/comment_form.vue
app/assets/javascripts/notes/components/comment_form.vue
+1
-0
app/assets/javascripts/notes/components/diff_with_note.vue
app/assets/javascripts/notes/components/diff_with_note.vue
+1
-0
app/assets/javascripts/notes/components/note_body.vue
app/assets/javascripts/notes/components/note_body.vue
+1
-0
app/assets/javascripts/notes/components/noteable_note.vue
app/assets/javascripts/notes/components/noteable_note.vue
+1
-0
app/assets/javascripts/notes/components/notes_app.vue
app/assets/javascripts/notes/components/notes_app.vue
+1
-0
app/assets/javascripts/notes/mixins/autosave.js
app/assets/javascripts/notes/mixins/autosave.js
+1
-0
app/assets/javascripts/notes/stores/actions.js
app/assets/javascripts/notes/stores/actions.js
+1
-0
app/assets/javascripts/notifications_dropdown.js
app/assets/javascripts/notifications_dropdown.js
+1
-0
app/assets/javascripts/notifications_form.js
app/assets/javascripts/notifications_form.js
+1
-0
app/assets/javascripts/pager.js
app/assets/javascripts/pager.js
+1
-0
app/assets/javascripts/pages/admin/abuse_reports/abuse_reports.js
...ts/javascripts/pages/admin/abuse_reports/abuse_reports.js
+1
-0
app/assets/javascripts/pages/admin/admin.js
app/assets/javascripts/pages/admin/admin.js
+1
-0
app/assets/javascripts/pages/admin/broadcast_messages/broadcast_message.js
...ripts/pages/admin/broadcast_messages/broadcast_message.js
+1
-0
app/assets/javascripts/pages/admin/projects/index/index.js
app/assets/javascripts/pages/admin/projects/index/index.js
+1
-0
app/assets/javascripts/pages/admin/users/index.js
app/assets/javascripts/pages/admin/users/index.js
+1
-0
app/assets/javascripts/pages/dashboard/todos/index/todos.js
app/assets/javascripts/pages/dashboard/todos/index/todos.js
+2
-0
app/assets/javascripts/pages/help/index/index.js
app/assets/javascripts/pages/help/index/index.js
+1
-0
app/assets/javascripts/pages/profiles/index.js
app/assets/javascripts/pages/profiles/index.js
+1
-0
app/assets/javascripts/pages/profiles/two_factor_auths/index.js
...sets/javascripts/pages/profiles/two_factor_auths/index.js
+1
-0
app/assets/javascripts/pages/projects/branches/new/index.js
app/assets/javascripts/pages/projects/branches/new/index.js
+1
-0
app/assets/javascripts/pages/projects/commit/pipelines/index.js
...sets/javascripts/pages/projects/commit/pipelines/index.js
+1
-0
app/assets/javascripts/pages/projects/commit/show/index.js
app/assets/javascripts/pages/projects/commit/show/index.js
+2
-0
app/assets/javascripts/pages/projects/find_file/show/index.js
...assets/javascripts/pages/projects/find_file/show/index.js
+1
-0
app/assets/javascripts/pages/projects/graphs/charts/index.js
app/assets/javascripts/pages/projects/graphs/charts/index.js
+1
-0
app/assets/javascripts/pages/projects/graphs/show/index.js
app/assets/javascripts/pages/projects/graphs/show/index.js
+1
-0
app/assets/javascripts/pages/projects/graphs/show/stat_graph_contributors.js
...pts/pages/projects/graphs/show/stat_graph_contributors.js
+1
-0
app/assets/javascripts/pages/projects/graphs/show/stat_graph_contributors_graph.js
...ges/projects/graphs/show/stat_graph_contributors_graph.js
+2
-0
app/assets/javascripts/pages/projects/issues/form.js
app/assets/javascripts/pages/projects/issues/form.js
+2
-0
app/assets/javascripts/pages/projects/merge_requests/init_merge_request.js
...ripts/pages/projects/merge_requests/init_merge_request.js
+1
-0
app/assets/javascripts/pages/projects/network/network.js
app/assets/javascripts/pages/projects/network/network.js
+1
-0
app/assets/javascripts/pages/projects/network/show/index.js
app/assets/javascripts/pages/projects/network/show/index.js
+1
-0
app/assets/javascripts/pages/projects/pipeline_schedules/shared/components/target_branch_dropdown.js
...ine_schedules/shared/components/target_branch_dropdown.js
+2
-0
app/assets/javascripts/pages/projects/pipeline_schedules/shared/components/timezone_dropdown.js
...pipeline_schedules/shared/components/timezone_dropdown.js
+2
-0
app/assets/javascripts/pages/projects/pipeline_schedules/shared/init_form.js
...pts/pages/projects/pipeline_schedules/shared/init_form.js
+1
-0
app/assets/javascripts/pages/projects/pipelines/charts/index.js
...sets/javascripts/pages/projects/pipelines/charts/index.js
+1
-0
app/assets/javascripts/pages/projects/pipelines/new/index.js
app/assets/javascripts/pages/projects/pipelines/new/index.js
+1
-0
app/assets/javascripts/pages/projects/project.js
app/assets/javascripts/pages/projects/project.js
+1
-0
app/assets/javascripts/pages/projects/releases/edit/index.js
app/assets/javascripts/pages/projects/releases/edit/index.js
+1
-0
app/assets/javascripts/pages/projects/shared/project_avatar.js
...ssets/javascripts/pages/projects/shared/project_avatar.js
+2
-0
app/assets/javascripts/pages/projects/shared/project_new.js
app/assets/javascripts/pages/projects/shared/project_new.js
+1
-0
app/assets/javascripts/pages/projects/show/index.js
app/assets/javascripts/pages/projects/show/index.js
+1
-0
app/assets/javascripts/pages/projects/snippets/edit/index.js
app/assets/javascripts/pages/projects/snippets/edit/index.js
+1
-0
app/assets/javascripts/pages/projects/snippets/new/index.js
app/assets/javascripts/pages/projects/snippets/new/index.js
+1
-0
app/assets/javascripts/pages/projects/tags/new/index.js
app/assets/javascripts/pages/projects/tags/new/index.js
+1
-0
app/assets/javascripts/pages/projects/tree/show/index.js
app/assets/javascripts/pages/projects/tree/show/index.js
+1
-0
app/assets/javascripts/pages/projects/wikis/index.js
app/assets/javascripts/pages/projects/wikis/index.js
+1
-0
app/assets/javascripts/pages/search/show/search.js
app/assets/javascripts/pages/search/show/search.js
+1
-0
app/assets/javascripts/pages/sessions/new/index.js
app/assets/javascripts/pages/sessions/new/index.js
+1
-0
app/assets/javascripts/pages/sessions/new/oauth_remember_me.js
...ssets/javascripts/pages/sessions/new/oauth_remember_me.js
+2
-0
app/assets/javascripts/pages/sessions/new/username_validator.js
...sets/javascripts/pages/sessions/new/username_validator.js
+1
-0
app/assets/javascripts/pages/snippets/form.js
app/assets/javascripts/pages/snippets/form.js
+1
-0
app/assets/javascripts/pages/users/activity_calendar.js
app/assets/javascripts/pages/users/activity_calendar.js
+1
-0
app/assets/javascripts/pages/users/index.js
app/assets/javascripts/pages/users/index.js
+1
-0
app/assets/javascripts/pages/users/user_tabs.js
app/assets/javascripts/pages/users/user_tabs.js
+1
-0
app/assets/javascripts/performance_bar.js
app/assets/javascripts/performance_bar.js
+1
-0
app/assets/javascripts/pipelines/components/graph/dropdown_job_component.vue
...pts/pipelines/components/graph/dropdown_job_component.vue
+1
-0
app/assets/javascripts/pipelines/components/stage.vue
app/assets/javascripts/pipelines/components/stage.vue
+1
-0
app/assets/javascripts/preview_markdown.js
app/assets/javascripts/preview_markdown.js
+5
-4
app/assets/javascripts/profile/gl_crop.js
app/assets/javascripts/profile/gl_crop.js
+1
-0
app/assets/javascripts/profile/profile.js
app/assets/javascripts/profile/profile.js
+2
-0
app/assets/javascripts/project_edit.js
app/assets/javascripts/project_edit.js
+2
-0
app/assets/javascripts/project_find_file.js
app/assets/javascripts/project_find_file.js
+1
-0
app/assets/javascripts/project_fork.js
app/assets/javascripts/project_fork.js
+2
-0
app/assets/javascripts/project_label_subscription.js
app/assets/javascripts/project_label_subscription.js
+1
-0
app/assets/javascripts/project_select.js
app/assets/javascripts/project_select.js
+2
-0
app/assets/javascripts/project_select_combo_button.js
app/assets/javascripts/project_select_combo_button.js
+1
-0
app/assets/javascripts/project_visibility.js
app/assets/javascripts/project_visibility.js
+2
-0
app/assets/javascripts/projects/project_import_gitlab_project.js
...ets/javascripts/projects/project_import_gitlab_project.js
+1
-0
app/assets/javascripts/projects/project_new.js
app/assets/javascripts/projects/project_new.js
+1
-0
app/assets/javascripts/projects_dropdown/index.js
app/assets/javascripts/projects_dropdown/index.js
+1
-0
app/assets/javascripts/prometheus_metrics/prometheus_metrics.js
...sets/javascripts/prometheus_metrics/prometheus_metrics.js
+1
-0
app/assets/javascripts/protected_branches/protected_branch_create.js
...javascripts/protected_branches/protected_branch_create.js
+1
-0
app/assets/javascripts/protected_branches/protected_branch_edit_list.js
...ascripts/protected_branches/protected_branch_edit_list.js
+1
-0
app/assets/javascripts/protected_tags/protected_tag_create.js
...assets/javascripts/protected_tags/protected_tag_create.js
+1
-0
app/assets/javascripts/protected_tags/protected_tag_edit_list.js
...ets/javascripts/protected_tags/protected_tag_edit_list.js
+1
-0
app/assets/javascripts/ref_select_dropdown.js
app/assets/javascripts/ref_select_dropdown.js
+2
-0
app/assets/javascripts/render_gfm.js
app/assets/javascripts/render_gfm.js
+1
-0
app/assets/javascripts/render_math.js
app/assets/javascripts/render_math.js
+1
-0
app/assets/javascripts/right_sidebar.js
app/assets/javascripts/right_sidebar.js
+1
-0
app/assets/javascripts/search_autocomplete.js
app/assets/javascripts/search_autocomplete.js
+2
-0
app/assets/javascripts/settings_panels.js
app/assets/javascripts/settings_panels.js
+2
-0
app/assets/javascripts/shared/milestones/form.js
app/assets/javascripts/shared/milestones/form.js
+1
-0
app/assets/javascripts/shared/sessions/u2f.js
app/assets/javascripts/shared/sessions/u2f.js
+1
-0
app/assets/javascripts/shortcuts.js
app/assets/javascripts/shortcuts.js
+1
-0
app/assets/javascripts/shortcuts_issuable.js
app/assets/javascripts/shortcuts_issuable.js
+1
-0
app/assets/javascripts/sidebar/components/time_tracking/sidebar_time_tracking.js
...sidebar/components/time_tracking/sidebar_time_tracking.js
+1
-0
app/assets/javascripts/sidebar/lib/sidebar_move_issue.js
app/assets/javascripts/sidebar/lib/sidebar_move_issue.js
+2
-0
app/assets/javascripts/sidebar/mount_sidebar.js
app/assets/javascripts/sidebar/mount_sidebar.js
+1
-0
app/assets/javascripts/single_file_diff.js
app/assets/javascripts/single_file_diff.js
+1
-0
app/assets/javascripts/smart_interval.js
app/assets/javascripts/smart_interval.js
+2
-0
app/assets/javascripts/snippet/snippet_bundle.js
app/assets/javascripts/snippet/snippet_bundle.js
+2
-0
app/assets/javascripts/star.js
app/assets/javascripts/star.js
+1
-0
app/assets/javascripts/subscription_select.js
app/assets/javascripts/subscription_select.js
+2
-0
app/assets/javascripts/syntax_highlight.js
app/assets/javascripts/syntax_highlight.js
+2
-0
app/assets/javascripts/task_list.js
app/assets/javascripts/task_list.js
+1
-0
app/assets/javascripts/templates/issuable_template_selector.js
...ssets/javascripts/templates/issuable_template_selector.js
+1
-0
app/assets/javascripts/templates/issuable_template_selectors.js
...sets/javascripts/templates/issuable_template_selectors.js
+2
-0
app/assets/javascripts/terminal/terminal.js
app/assets/javascripts/terminal/terminal.js
+2
-0
app/assets/javascripts/tree.js
app/assets/javascripts/tree.js
+2
-0
app/assets/javascripts/u2f/authenticate.js
app/assets/javascripts/u2f/authenticate.js
+1
-0
app/assets/javascripts/u2f/register.js
app/assets/javascripts/u2f/register.js
+1
-0
app/assets/javascripts/ui_development_kit.js
app/assets/javascripts/ui_development_kit.js
+1
-0
app/assets/javascripts/user_callout.js
app/assets/javascripts/user_callout.js
+1
-0
app/assets/javascripts/users_select.js
app/assets/javascripts/users_select.js
+2
-0
app/assets/javascripts/vue_merge_request_widget/components/states/mr_widget_wip.js
...e_merge_request_widget/components/states/mr_widget_wip.js
+1
-0
app/assets/javascripts/vue_shared/components/markdown/field.vue
...sets/javascripts/vue_shared/components/markdown/field.vue
+1
-0
app/assets/javascripts/vue_shared/components/markdown/header.vue
...ets/javascripts/vue_shared/components/markdown/header.vue
+1
-0
app/assets/javascripts/vue_shared/components/navigation_tabs.vue
...ets/javascripts/vue_shared/components/navigation_tabs.vue
+2
-0
app/assets/javascripts/vue_shared/directives/popover.js
app/assets/javascripts/vue_shared/directives/popover.js
+2
-0
app/assets/javascripts/vue_shared/directives/tooltip.js
app/assets/javascripts/vue_shared/directives/tooltip.js
+2
-0
app/assets/javascripts/zen_mode.js
app/assets/javascripts/zen_mode.js
+1
-0
spec/javascripts/activities_spec.js
spec/javascripts/activities_spec.js
+1
-0
spec/javascripts/ajax_loading_spinner_spec.js
spec/javascripts/ajax_loading_spinner_spec.js
+3
-2
spec/javascripts/autosave_spec.js
spec/javascripts/autosave_spec.js
+1
-0
spec/javascripts/awards_handler_spec.js
spec/javascripts/awards_handler_spec.js
+1
-0
spec/javascripts/behaviors/autosize_spec.js
spec/javascripts/behaviors/autosize_spec.js
+1
-0
spec/javascripts/behaviors/quick_submit_spec.js
spec/javascripts/behaviors/quick_submit_spec.js
+1
-0
spec/javascripts/behaviors/requires_input_spec.js
spec/javascripts/behaviors/requires_input_spec.js
+1
-0
spec/javascripts/blob/blob_file_dropzone_spec.js
spec/javascripts/blob/blob_file_dropzone_spec.js
+2
-1
spec/javascripts/blob/viewer/index_spec.js
spec/javascripts/blob/viewer/index_spec.js
+2
-0
spec/javascripts/bootstrap_jquery_spec.js
spec/javascripts/bootstrap_jquery_spec.js
+1
-0
spec/javascripts/ci_variable_list/ci_variable_list_spec.js
spec/javascripts/ci_variable_list/ci_variable_list_spec.js
+1
-0
spec/javascripts/ci_variable_list/native_form_variable_list_spec.js
...cripts/ci_variable_list/native_form_variable_list_spec.js
+1
-0
spec/javascripts/commits_spec.js
spec/javascripts/commits_spec.js
+1
-0
spec/javascripts/create_item_dropdown_spec.js
spec/javascripts/create_item_dropdown_spec.js
+1
-0
spec/javascripts/feature_highlight/feature_highlight_helper_spec.js
...cripts/feature_highlight/feature_highlight_helper_spec.js
+1
-0
spec/javascripts/feature_highlight/feature_highlight_spec.js
spec/javascripts/feature_highlight/feature_highlight_spec.js
+1
-0
spec/javascripts/filtered_search/filtered_search_dropdown_manager_spec.js
.../filtered_search/filtered_search_dropdown_manager_spec.js
+2
-1
spec/javascripts/gfm_auto_complete_spec.js
spec/javascripts/gfm_auto_complete_spec.js
+1
-0
spec/javascripts/gl_dropdown_spec.js
spec/javascripts/gl_dropdown_spec.js
+1
-0
spec/javascripts/gl_field_errors_spec.js
spec/javascripts/gl_field_errors_spec.js
+1
-0
spec/javascripts/gl_form_spec.js
spec/javascripts/gl_form_spec.js
+1
-0
spec/javascripts/groups/components/app_spec.js
spec/javascripts/groups/components/app_spec.js
+1
-0
spec/javascripts/header_spec.js
spec/javascripts/header_spec.js
+1
-0
spec/javascripts/integrations/integration_settings_form_spec.js
...avascripts/integrations/integration_settings_form_spec.js
+1
-0
spec/javascripts/issuable_spec.js
spec/javascripts/issuable_spec.js
+1
-0
spec/javascripts/issuable_time_tracker_spec.js
spec/javascripts/issuable_time_tracker_spec.js
+1
-0
spec/javascripts/issue_show/components/description_spec.js
spec/javascripts/issue_show/components/description_spec.js
+1
-0
spec/javascripts/issue_spec.js
spec/javascripts/issue_spec.js
+2
-0
spec/javascripts/job_spec.js
spec/javascripts/job_spec.js
+1
-0
spec/javascripts/labels_issue_sidebar_spec.js
spec/javascripts/labels_issue_sidebar_spec.js
+2
-0
spec/javascripts/labels_select_spec.js
spec/javascripts/labels_select_spec.js
+1
-0
spec/javascripts/line_highlighter_spec.js
spec/javascripts/line_highlighter_spec.js
+1
-0
spec/javascripts/merge_request_notes_spec.js
spec/javascripts/merge_request_notes_spec.js
+1
-0
spec/javascripts/merge_request_spec.js
spec/javascripts/merge_request_spec.js
+4
-2
spec/javascripts/merge_request_tabs_spec.js
spec/javascripts/merge_request_tabs_spec.js
+2
-0
spec/javascripts/mini_pipeline_graph_dropdown_spec.js
spec/javascripts/mini_pipeline_graph_dropdown_spec.js
+1
-0
spec/javascripts/namespace_select_spec.js
spec/javascripts/namespace_select_spec.js
+1
-0
spec/javascripts/new_branch_spec.js
spec/javascripts/new_branch_spec.js
+1
-0
spec/javascripts/notes/components/comment_form_spec.js
spec/javascripts/notes/components/comment_form_spec.js
+1
-0
spec/javascripts/notes/components/note_app_spec.js
spec/javascripts/notes/components/note_app_spec.js
+1
-0
spec/javascripts/notes/components/noteable_note_spec.js
spec/javascripts/notes/components/noteable_note_spec.js
+1
-0
spec/javascripts/notes_spec.js
spec/javascripts/notes_spec.js
+1
-0
spec/javascripts/oauth_remember_me_spec.js
spec/javascripts/oauth_remember_me_spec.js
+1
-0
spec/javascripts/pages/admin/abuse_reports/abuse_reports_spec.js
...vascripts/pages/admin/abuse_reports/abuse_reports_spec.js
+1
-0
spec/javascripts/project_select_combo_button_spec.js
spec/javascripts/project_select_combo_button_spec.js
+1
-0
spec/javascripts/projects/project_new_spec.js
spec/javascripts/projects/project_new_spec.js
+1
-0
spec/javascripts/right_sidebar_spec.js
spec/javascripts/right_sidebar_spec.js
+1
-0
spec/javascripts/search_autocomplete_spec.js
spec/javascripts/search_autocomplete_spec.js
+1
-0
spec/javascripts/search_spec.js
spec/javascripts/search_spec.js
+1
-0
spec/javascripts/shortcuts_issuable_spec.js
spec/javascripts/shortcuts_issuable_spec.js
+1
-0
spec/javascripts/shortcuts_spec.js
spec/javascripts/shortcuts_spec.js
+1
-0
spec/javascripts/sidebar/sidebar_move_issue_spec.js
spec/javascripts/sidebar/sidebar_move_issue_spec.js
+1
-0
spec/javascripts/smart_interval_spec.js
spec/javascripts/smart_interval_spec.js
+1
-0
spec/javascripts/syntax_highlight_spec.js
spec/javascripts/syntax_highlight_spec.js
+1
-0
spec/javascripts/todos_spec.js
spec/javascripts/todos_spec.js
+1
-0
spec/javascripts/toggle_buttons_spec.js
spec/javascripts/toggle_buttons_spec.js
+1
-0
spec/javascripts/u2f/authenticate_spec.js
spec/javascripts/u2f/authenticate_spec.js
+1
-0
spec/javascripts/u2f/register_spec.js
spec/javascripts/u2f/register_spec.js
+1
-0
spec/javascripts/version_check_image_spec.js
spec/javascripts/version_check_image_spec.js
+1
-0
spec/javascripts/vue_shared/components/gl_modal_spec.js
spec/javascripts/vue_shared/components/gl_modal_spec.js
+1
-0
spec/javascripts/vue_shared/components/markdown/field_spec.js
.../javascripts/vue_shared/components/markdown/field_spec.js
+1
-0
spec/javascripts/vue_shared/components/modal_spec.js
spec/javascripts/vue_shared/components/modal_spec.js
+1
-0
spec/javascripts/vue_shared/directives/tooltip_spec.js
spec/javascripts/vue_shared/directives/tooltip_spec.js
+1
-0
spec/javascripts/zen_mode_spec.js
spec/javascripts/zen_mode_spec.js
+1
-0
No files found.
.eslintrc
View file @
f248be72
{
"env": {
"jquery": true,
"browser": true,
"es6": true
},
...
...
app/assets/javascripts/activities.js
View file @
f248be72
/* eslint-disable no-param-reassign, class-methods-use-this */
import
$
from
'
jquery
'
;
import
Cookies
from
'
js-cookie
'
;
import
Pager
from
'
./pager
'
;
import
{
localTimeAgo
}
from
'
./lib/utils/datetime_utility
'
;
...
...
app/assets/javascripts/ajax_loading_spinner.js
View file @
f248be72
import
$
from
'
jquery
'
;
export
default
class
AjaxLoadingSpinner
{
static
init
()
{
const
$elements
=
$
(
'
.js-ajax-loading-spinner
'
);
...
...
app/assets/javascripts/api.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
_
from
'
underscore
'
;
import
axios
from
'
./lib/utils/axios_utils
'
;
...
...
app/assets/javascripts/awards_handler.js
View file @
f248be72
/* eslint-disable class-methods-use-this */
import
$
from
'
jquery
'
;
import
_
from
'
underscore
'
;
import
Cookies
from
'
js-cookie
'
;
import
{
__
}
from
'
./locale
'
;
...
...
app/assets/javascripts/behaviors/copy_as_gfm.js
View file @
f248be72
/* eslint-disable class-methods-use-this, object-shorthand, no-unused-vars, no-use-before-define, no-new, max-len, no-restricted-syntax, guard-for-in, no-continue */
import
$
from
'
jquery
'
;
import
_
from
'
underscore
'
;
import
{
insertText
,
getSelectedFragment
,
nodeMatchesSelector
}
from
'
../lib/utils/common_utils
'
;
import
{
placeholderImage
}
from
'
../lazy_loader
'
;
...
...
app/assets/javascripts/behaviors/copy_to_clipboard.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
Clipboard
from
'
clipboard
'
;
function
showTooltip
(
target
,
title
)
{
...
...
app/assets/javascripts/behaviors/details_behavior.js
View file @
f248be72
import
$
from
'
jquery
'
;
$
(()
=>
{
$
(
'
body
'
).
on
(
'
click
'
,
'
.js-details-target
'
,
function
target
()
{
...
...
app/assets/javascripts/behaviors/quick_submit.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
'
../commons/bootstrap
'
;
import
{
isInIssuePage
}
from
'
../lib/utils/common_utils
'
;
...
...
app/assets/javascripts/behaviors/requires_input.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
_
from
'
underscore
'
;
import
'
../commons/bootstrap
'
;
...
...
app/assets/javascripts/behaviors/toggler_behavior.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
{
getLocationHash
}
from
'
../lib/utils/url_utility
'
;
// Toggle button. Show/hide content inside parent container.
// Button does not change visibility. If button has icon - it changes chevron style.
//
...
...
@@ -5,7 +8,6 @@
// %button.js-toggle-button
// %div.js-toggle-content
//
import
{
getLocationHash
}
from
'
../lib/utils/url_utility
'
;
$
(()
=>
{
function
toggleContainer
(
container
,
toggleState
)
{
...
...
app/assets/javascripts/blob/blob_file_dropzone.js
View file @
f248be72
/* eslint-disable func-names, object-shorthand, prefer-arrow-callback */
import
$
from
'
jquery
'
;
import
Dropzone
from
'
dropzone
'
;
import
{
visitUrl
}
from
'
../lib/utils/url_utility
'
;
import
{
HIDDEN_CLASS
}
from
'
../lib/utils/constants
'
;
...
...
app/assets/javascripts/blob/blob_fork_suggestion.js
View file @
f248be72
import
$
from
'
jquery
'
;
const
defaults
=
{
// Buttons that will show the `suggestionSections`
// has `data-fork-path`, and `data-action`
...
...
app/assets/javascripts/blob/file_template_mediator.js
View file @
f248be72
/* eslint-disable class-methods-use-this */
import
$
from
'
jquery
'
;
import
Flash
from
'
../flash
'
;
import
FileTemplateTypeSelector
from
'
./template_selectors/type_selector
'
;
import
BlobCiYamlSelector
from
'
./template_selectors/ci_yaml_selector
'
;
...
...
app/assets/javascripts/blob/file_template_selector.js
View file @
f248be72
import
$
from
'
jquery
'
;
export
default
class
FileTemplateSelector
{
constructor
(
mediator
)
{
this
.
mediator
=
mediator
;
...
...
app/assets/javascripts/blob/template_selector.js
View file @
f248be72
/* eslint-disable class-methods-use-this, no-unused-vars */
import
$
from
'
jquery
'
;
export
default
class
TemplateSelector
{
constructor
({
dropdown
,
data
,
pattern
,
wrapper
,
editor
,
$input
}
=
{})
{
this
.
pattern
=
pattern
;
...
...
@@ -76,7 +78,7 @@ export default class TemplateSelector {
if
(
!
skipFocus
)
this
.
editor
.
focus
();
if
(
this
.
editor
instanceof
jQuery
)
{
if
(
this
.
editor
instanceof
$
)
{
this
.
editor
.
get
(
0
).
dispatchEvent
(
this
.
autosizeUpdateEvent
);
}
}
...
...
app/assets/javascripts/blob/viewer/index.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
Flash
from
'
../../flash
'
;
import
{
handleLocationHash
}
from
'
../../lib/utils/common_utils
'
;
import
axios
from
'
../../lib/utils/axios_utils
'
;
...
...
app/assets/javascripts/blob_edit/blob_bundle.js
View file @
f248be72
/* eslint-disable func-names, space-before-function-paren, prefer-arrow-callback, no-var, quotes, vars-on-top, no-unused-vars, no-new, max-len */
/* global EditBlob */
import
$
from
'
jquery
'
;
import
NewCommitForm
from
'
../new_commit_form
'
;
import
EditBlob
from
'
./edit_blob
'
;
import
BlobFileDropzone
from
'
../blob/blob_file_dropzone
'
;
...
...
app/assets/javascripts/blob_edit/edit_blob.js
View file @
f248be72
/* global ace */
import
$
from
'
jquery
'
;
import
axios
from
'
~/lib/utils/axios_utils
'
;
import
createFlash
from
'
~/flash
'
;
import
{
__
}
from
'
~/locale
'
;
...
...
app/assets/javascripts/boards/components/board.js
View file @
f248be72
/* eslint-disable comma-dangle, space-before-function-paren, one-var */
import
$
from
'
jquery
'
;
import
Sortable
from
'
vendor/Sortable
'
;
import
Vue
from
'
vue
'
;
import
AccessorUtilities
from
'
../../lib/utils/accessor
'
;
...
...
app/assets/javascripts/boards/components/board_delete.js
View file @
f248be72
/* eslint-disable comma-dangle, space-before-function-paren, no-alert */
import
$
from
'
jquery
'
;
import
Vue
from
'
vue
'
;
window
.
gl
=
window
.
gl
||
{};
...
...
app/assets/javascripts/boards/components/board_new_issue.vue
View file @
f248be72
<
script
>
import
$
from
'
jquery
'
;
import
eventHub
from
'
../eventhub
'
;
import
ProjectSelect
from
'
./project_select.vue
'
;
import
ListIssue
from
'
../models/issue
'
;
...
...
app/assets/javascripts/boards/components/board_sidebar.js
View file @
f248be72
/* eslint-disable comma-dangle, space-before-function-paren, no-new */
import
$
from
'
jquery
'
;
import
Vue
from
'
vue
'
;
import
Flash
from
'
../../flash
'
;
import
{
__
}
from
'
../../locale
'
;
...
...
app/assets/javascripts/boards/components/issue_card_inner.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
Vue
from
'
vue
'
;
import
userAvatarLink
from
'
../../vue_shared/components/user_avatar/user_avatar_link.vue
'
;
import
eventHub
from
'
../eventhub
'
;
...
...
app/assets/javascripts/boards/components/new_list_dropdown.js
View file @
f248be72
/* eslint-disable func-names, no-new, space-before-function-paren, one-var,
promise/catch-or-return */
/* eslint-disable func-names, no-new, space-before-function-paren, one-var, promise/catch-or-return, max-len */
import
$
from
'
jquery
'
;
import
axios
from
'
~/lib/utils/axios_utils
'
;
import
_
from
'
underscore
'
;
import
CreateLabelDropdown
from
'
../../create_label
'
;
...
...
app/assets/javascripts/boards/components/project_select.vue
View file @
f248be72
<
script
>
/* global ListIssue */
import
$
from
'
jquery
'
;
import
_
from
'
underscore
'
;
import
eventHub
from
'
../eventhub
'
;
import
loadingIcon
from
'
../../vue_shared/components/loading_icon.vue
'
;
...
...
app/assets/javascripts/boards/index.js
View file @
f248be72
/* eslint-disable one-var, quote-props, comma-dangle, space-before-function-paren */
import
$
from
'
jquery
'
;
import
_
from
'
underscore
'
;
import
Vue
from
'
vue
'
;
...
...
app/assets/javascripts/boards/mixins/sortable_default_options.js
View file @
f248be72
/* eslint-disable no-unused-vars, no-mixed-operators, comma-dangle */
/* global DocumentTouch */
import
$
from
'
jquery
'
;
import
sortableConfig
from
'
../../sortable/sortable_config
'
;
window
.
gl
=
window
.
gl
||
{};
...
...
app/assets/javascripts/boards/stores/boards_store.js
View file @
f248be72
/* eslint-disable comma-dangle, space-before-function-paren, one-var, no-shadow, dot-notation, max-len */
/* global List */
import
$
from
'
jquery
'
;
import
_
from
'
underscore
'
;
import
Cookies
from
'
js-cookie
'
;
import
{
getUrlParamsArray
}
from
'
~/lib/utils/common_utils
'
;
...
...
app/assets/javascripts/branches/branches_delete_modal.js
View file @
f248be72
import
$
from
'
jquery
'
;
const
MODAL_SELECTOR
=
'
#modal-delete-branch
'
;
class
DeleteModal
{
...
...
app/assets/javascripts/breadcrumb.js
View file @
f248be72
import
$
from
'
jquery
'
;
export
const
addTooltipToEl
=
(
el
)
=>
{
const
textEl
=
el
.
querySelector
(
'
.js-breadcrumb-item-text
'
);
...
...
app/assets/javascripts/build_artifacts.js
View file @
f248be72
/* eslint-disable func-names, prefer-arrow-callback, no-return-assign */
import
$
from
'
jquery
'
;
import
{
visitUrl
}
from
'
./lib/utils/url_utility
'
;
import
{
convertPermissionToBoolean
}
from
'
./lib/utils/common_utils
'
;
...
...
app/assets/javascripts/build_variables.js
View file @
f248be72
/* eslint-disable func-names*/
import
$
from
'
jquery
'
;
export
default
function
handleRevealVariables
()
{
$
(
'
.js-reveal-variables
'
)
.
off
(
'
click
'
)
.
on
(
'
click
'
,
function
()
{
.
on
(
'
click
'
,
function
click
()
{
$
(
'
.js-build-variables
'
).
toggle
();
$
(
this
).
hide
();
});
...
...
app/assets/javascripts/ci_variable_list/native_form_variable_list.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
VariableList
from
'
./ci_variable_list
'
;
// Used for the variable list on scheduled pipeline edit page
...
...
app/assets/javascripts/commit/image_file.js
View file @
f248be72
/* eslint-disable func-names, space-before-function-paren, wrap-iife, no-var, no-use-before-define, prefer-arrow-callback, no-else-return, consistent-return, prefer-template, quotes, one-var, one-var-declaration-per-line, no-unused-vars, no-return-assign, comma-dangle, quote-props, no-unused-expressions, no-sequences, object-shorthand, max-len */
import
$
from
'
jquery
'
;
// Width where images must fits in, for 2-up this gets divided by 2
const
availWidth
=
900
;
const
viewModes
=
[
'
two-up
'
,
'
swipe
'
];
...
...
app/assets/javascripts/commit_merge_requests.js
View file @
f248be72
/* global Flash */
import
$
from
'
jquery
'
;
import
axios
from
'
./lib/utils/axios_utils
'
;
import
{
n__
,
s__
}
from
'
./locale
'
;
...
...
app/assets/javascripts/commits.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
{
pluralize
}
from
'
./lib/utils/text_utility
'
;
import
{
localTimeAgo
}
from
'
./lib/utils/datetime_utility
'
;
import
Pager
from
'
./pager
'
;
...
...
app/assets/javascripts/compare.js
View file @
f248be72
/* eslint-disable func-names, space-before-function-paren, wrap-iife, quotes, no-var, object-shorthand, consistent-return, no-unused-vars, comma-dangle, vars-on-top, prefer-template, max-len */
import
$
from
'
jquery
'
;
import
{
localTimeAgo
}
from
'
./lib/utils/datetime_utility
'
;
import
axios
from
'
./lib/utils/axios_utils
'
;
...
...
app/assets/javascripts/compare_autocomplete.js
View file @
f248be72
/* eslint-disable func-names, space-before-function-paren, one-var, no-var, one-var-declaration-per-line, object-shorthand, comma-dangle, prefer-arrow-callback, no-else-return, newline-per-chained-call, wrap-iife, max-len */
import
$
from
'
jquery
'
;
import
{
__
}
from
'
./locale
'
;
import
axios
from
'
./lib/utils/axios_utils
'
;
import
flash
from
'
./flash
'
;
...
...
app/assets/javascripts/confirm_danger_modal.js
View file @
f248be72
/* eslint-disable func-names, space-before-function-paren, wrap-iife, one-var, no-var, camelcase, one-var-declaration-per-line, no-else-return, max-len */
import
$
from
'
jquery
'
;
import
{
rstrip
}
from
'
./lib/utils/common_utils
'
;
window
.
ConfirmDangerModal
=
(
function
()
{
...
...
app/assets/javascripts/contextual_sidebar.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
Cookies
from
'
js-cookie
'
;
import
_
from
'
underscore
'
;
import
bp
from
'
./breakpoints
'
;
...
...
app/assets/javascripts/create_label.js
View file @
f248be72
/* eslint-disable func-names, prefer-arrow-callback */
import
$
from
'
jquery
'
;
import
Api
from
'
./api
'
;
import
{
humanize
}
from
'
./lib/utils/text_utility
'
;
...
...
app/assets/javascripts/cycle_analytics/cycle_analytics_bundle.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
Vue
from
'
vue
'
;
import
Cookies
from
'
js-cookie
'
;
import
Flash
from
'
../flash
'
;
...
...
app/assets/javascripts/diff.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
axios
from
'
~/lib/utils/axios_utils
'
;
import
flash
from
'
~/flash
'
;
import
{
__
}
from
'
~/locale
'
;
...
...
app/assets/javascripts/diff_notes/components/comment_resolve_btn.js
View file @
f248be72
/* eslint-disable comma-dangle, object-shorthand, func-names, no-else-return, quotes, no-lonely-if, max-len */
/* global CommentsStore */
import
$
from
'
jquery
'
;
import
Vue
from
'
vue
'
;
const
CommentAndResolveBtn
=
Vue
.
extend
({
...
...
app/assets/javascripts/diff_notes/components/diff_note_avatars.js
View file @
f248be72
/* global CommentsStore */
import
$
from
'
jquery
'
;
import
Vue
from
'
vue
'
;
import
collapseIcon
from
'
../icons/collapse_icon.svg
'
;
import
Notes
from
'
../../notes
'
;
...
...
app/assets/javascripts/diff_notes/components/jump_to_discussion.js
View file @
f248be72
...
...
@@ -2,6 +2,7 @@
/* global DiscussionMixins */
/* global CommentsStore */
import
$
from
'
jquery
'
;
import
Vue
from
'
vue
'
;
import
'
../mixins/discussion
'
;
...
...
app/assets/javascripts/diff_notes/components/resolve_btn.js
View file @
f248be72
...
...
@@ -2,6 +2,7 @@
/* global CommentsStore */
/* global ResolveService */
import
$
from
'
jquery
'
;
import
Vue
from
'
vue
'
;
import
Flash
from
'
../../flash
'
;
...
...
app/assets/javascripts/diff_notes/diff_notes_bundle.js
View file @
f248be72
/* eslint-disable func-names, comma-dangle, new-cap, no-new, max-len */
/* global ResolveCount */
import
$
from
'
jquery
'
;
import
Vue
from
'
vue
'
;
import
'
./models/discussion
'
;
import
'
./models/note
'
;
...
...
app/assets/javascripts/diff_notes/models/discussion.js
View file @
f248be72
/* eslint-disable space-before-function-paren, camelcase, guard-for-in, no-restricted-syntax, no-unused-vars, max-len */
/* global NoteModel */
import
$
from
'
jquery
'
;
import
Vue
from
'
vue
'
;
import
{
localTimeAgo
}
from
'
../../lib/utils/datetime_utility
'
;
...
...
app/assets/javascripts/dispatcher.js
View file @
f248be72
/* eslint-disable func-names, space-before-function-paren, no-var, prefer-arrow-callback, wrap-iife, no-shadow, consistent-return, one-var, one-var-declaration-per-line, camelcase, default-case, no-new, quotes, no-duplicate-case, no-case-declarations, no-fallthrough, max-len */
import
$
from
'
jquery
'
;
import
Flash
from
'
./flash
'
;
import
GfmAutoComplete
from
'
./gfm_auto_complete
'
;
import
{
convertPermissionToBoolean
}
from
'
./lib/utils/common_utils
'
;
...
...
app/assets/javascripts/dropzone_input.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
Dropzone
from
'
dropzone
'
;
import
_
from
'
underscore
'
;
import
'
./preview_markdown
'
;
...
...
app/assets/javascripts/due_date_select.js
View file @
f248be72
/* global dateFormat */
import
$
from
'
jquery
'
;
import
Pikaday
from
'
pikaday
'
;
import
axios
from
'
./lib/utils/axios_utils
'
;
import
{
parsePikadayDate
,
pikadayToString
}
from
'
./lib/utils/datefix
'
;
...
...
app/assets/javascripts/environments/components/environment_stop.vue
View file @
f248be72
...
...
@@ -3,6 +3,8 @@
* Renders the stop "button" that allows stop an environment.
* Used in environments table.
*/
import
$
from
'
jquery
'
;
import
eventHub
from
'
../event_hub
'
;
import
loadingIcon
from
'
../../vue_shared/components/loading_icon.vue
'
;
import
tooltip
from
'
../../vue_shared/directives/tooltip
'
;
...
...
app/assets/javascripts/experimental_flags.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
Cookies
from
'
js-cookie
'
;
export
default
()
=>
{
...
...
app/assets/javascripts/feature_highlight/feature_highlight.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
_
from
'
underscore
'
;
import
{
getSelector
,
...
...
app/assets/javascripts/feature_highlight/feature_highlight_helper.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
axios
from
'
../lib/utils/axios_utils
'
;
import
{
__
}
from
'
../locale
'
;
import
Flash
from
'
../flash
'
;
...
...
app/assets/javascripts/filterable_list.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
_
from
'
underscore
'
;
import
axios
from
'
./lib/utils/axios_utils
'
;
...
...
app/assets/javascripts/gfm_auto_complete.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
_
from
'
underscore
'
;
import
glRegexp
from
'
./lib/utils/regexp
'
;
import
AjaxCache
from
'
./lib/utils/ajax_cache
'
;
...
...
app/assets/javascripts/gl_dropdown.js
View file @
f248be72
/* eslint-disable func-names, no-underscore-dangle, space-before-function-paren, no-var, one-var, one-var-declaration-per-line, prefer-rest-params, max-len, vars-on-top, wrap-iife, no-unused-vars, quotes, no-shadow, no-cond-assign, prefer-arrow-callback, no-return-assign, no-else-return, camelcase, comma-dangle, no-lonely-if, guard-for-in, no-restricted-syntax, consistent-return, prefer-template, no-param-reassign, no-loop-func, no-mixed-operators */
/* global fuzzaldrinPlus */
import
$
from
'
jquery
'
;
import
_
from
'
underscore
'
;
import
fuzzaldrinPlus
from
'
fuzzaldrin-plus
'
;
import
axios
from
'
./lib/utils/axios_utils
'
;
...
...
@@ -576,7 +578,7 @@ GitLabDropdown = (function() {
for
(
var
i
=
0
;
i
<
html
.
length
;
i
+=
1
)
{
var
el
=
html
[
i
];
if
(
el
instanceof
jQuery
)
{
if
(
el
instanceof
$
)
{
el
=
el
.
get
(
0
);
}
...
...
app/assets/javascripts/gl_field_error.js
View file @
f248be72
import
$
from
'
jquery
'
;
/**
* This class overrides the browser's validation error bubbles, displaying custom
* error messages for invalid fields instead. To begin validating any form, add the
...
...
app/assets/javascripts/gl_field_errors.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
GlFieldError
from
'
./gl_field_error
'
;
const
customValidationFlag
=
'
gl-field-error-ignore
'
;
...
...
app/assets/javascripts/gl_form.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
autosize
from
'
autosize
'
;
import
GfmAutoComplete
from
'
./gfm_auto_complete
'
;
import
dropzoneInput
from
'
./dropzone_input
'
;
...
...
app/assets/javascripts/gpg_badges.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
{
parseQueryStringIntoObject
}
from
'
~/lib/utils/common_utils
'
;
import
axios
from
'
~/lib/utils/axios_utils
'
;
import
flash
from
'
~/flash
'
;
...
...
app/assets/javascripts/group.js
View file @
f248be72
import
$
from
'
jquery
'
;
export
default
class
Group
{
constructor
()
{
this
.
groupPath
=
$
(
'
#group_path
'
);
...
...
app/assets/javascripts/group_avatar.js
View file @
f248be72
import
$
from
'
jquery
'
;
export
default
function
groupAvatar
()
{
$
(
'
.js-choose-group-avatar-button
'
).
on
(
'
click
'
,
function
onClickGroupAvatar
()
{
const
form
=
$
(
this
).
closest
(
'
form
'
);
...
...
app/assets/javascripts/group_label_subscription.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
axios
from
'
./lib/utils/axios_utils
'
;
import
flash
from
'
./flash
'
;
import
{
__
}
from
'
./locale
'
;
...
...
app/assets/javascripts/groups/components/app.vue
View file @
f248be72
<
script
>
/* global Flash */
import
$
from
'
jquery
'
;
import
{
s__
}
from
'
~/locale
'
;
import
loadingIcon
from
'
~/vue_shared/components/loading_icon.vue
'
;
import
modal
from
'
~/vue_shared/components/modal.vue
'
;
...
...
app/assets/javascripts/groups/groups_filterable_list.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
FilterableList
from
'
~/filterable_list
'
;
import
eventHub
from
'
./event_hub
'
;
import
{
normalizeHeaders
,
getParameterByName
}
from
'
../lib/utils/common_utils
'
;
...
...
app/assets/javascripts/groups/transfer_dropdown.js
View file @
f248be72
import
$
from
'
jquery
'
;
export
default
class
TransferDropdown
{
constructor
()
{
this
.
groupDropdown
=
$
(
'
.js-groups-dropdown
'
);
...
...
app/assets/javascripts/groups_select.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
axios
from
'
./lib/utils/axios_utils
'
;
import
Api
from
'
./api
'
;
import
{
normalizeHeaders
}
from
'
./lib/utils/common_utils
'
;
...
...
app/assets/javascripts/header.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
{
highCountTrim
}
from
'
~/lib/utils/text_utility
'
;
/**
...
...
app/assets/javascripts/help/help.js
View file @
f248be72
// We will render the icons list here
import
$
from
'
jquery
'
;
export
default
()
=>
{
if
(
$
(
'
#user-content-gitlab-icons
'
).
length
>
0
)
{
const
$iconsHeader
=
$
(
'
#user-content-gitlab-icons
'
);
...
...
app/assets/javascripts/how_to_merge.js
View file @
f248be72
import
$
from
'
jquery
'
;
export
default
()
=>
{
const
modal
=
$
(
'
#modal_merge_info
'
);
...
...
app/assets/javascripts/image_diff/image_diff.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
imageDiffHelper
from
'
./helpers/index
'
;
import
ImageBadge
from
'
./image_badge
'
;
import
{
isImageLoaded
}
from
'
../lib/utils/image_utility
'
;
...
...
app/assets/javascripts/importer_status.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
_
from
'
underscore
'
;
import
{
__
,
sprintf
}
from
'
./locale
'
;
import
axios
from
'
./lib/utils/axios_utils
'
;
...
...
app/assets/javascripts/init_changes_dropdown.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
stickyMonitor
from
'
./lib/utils/sticky
'
;
export
default
(
stickyTop
)
=>
{
...
...
app/assets/javascripts/init_labels.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
LabelManager
from
'
./label_manager
'
;
import
GroupLabelSubscription
from
'
./group_label_subscription
'
;
import
ProjectLabelSubscription
from
'
./project_label_subscription
'
;
...
...
app/assets/javascripts/integrations/integration_settings_form.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
axios
from
'
../lib/utils/axios_utils
'
;
import
flash
from
'
../flash
'
;
...
...
app/assets/javascripts/issuable/auto_width_dropdown_select.js
View file @
f248be72
import
$
from
'
jquery
'
;
let
instanceCount
=
0
;
class
AutoWidthDropdownSelect
{
...
...
app/assets/javascripts/issuable_bulk_update_actions.js
View file @
f248be72
/* eslint-disable comma-dangle, quotes, consistent-return, func-names, array-callback-return, space-before-function-paren, prefer-arrow-callback, max-len, no-unused-expressions, no-sequences, no-underscore-dangle, no-unused-vars, no-param-reassign */
import
$
from
'
jquery
'
;
import
_
from
'
underscore
'
;
import
axios
from
'
./lib/utils/axios_utils
'
;
import
Flash
from
'
./flash
'
;
...
...
app/assets/javascripts/issuable_bulk_update_sidebar.js
View file @
f248be72
/* eslint-disable class-methods-use-this, no-new */
import
$
from
'
jquery
'
;
import
IssuableBulkUpdateActions
from
'
./issuable_bulk_update_actions
'
;
import
MilestoneSelect
from
'
./milestone_select
'
;
import
issueStatusSelect
from
'
./issue_status_select
'
;
...
...
app/assets/javascripts/issuable_context.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
Cookies
from
'
js-cookie
'
;
import
bp
from
'
./breakpoints
'
;
import
UsersSelect
from
'
./users_select
'
;
...
...
app/assets/javascripts/issuable_form.js
View file @
f248be72
/* eslint-disable func-names, prefer-rest-params, wrap-iife, no-use-before-define, no-useless-escape, no-new, object-shorthand, no-unused-vars, comma-dangle, no-alert, consistent-return, no-else-return, prefer-template, one-var, one-var-declaration-per-line, curly, max-len */
/* global GitLab */
import
$
from
'
jquery
'
;
import
Pikaday
from
'
pikaday
'
;
import
Autosave
from
'
./autosave
'
;
import
UsersSelect
from
'
./users_select
'
;
...
...
app/assets/javascripts/issuable_index.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
axios
from
'
./lib/utils/axios_utils
'
;
import
flash
from
'
./flash
'
;
import
{
__
}
from
'
./locale
'
;
...
...
app/assets/javascripts/issue.js
View file @
f248be72
/* eslint-disable func-names, space-before-function-paren, no-var, prefer-rest-params, wrap-iife, one-var, no-underscore-dangle, one-var-declaration-per-line, object-shorthand, no-unused-vars, no-new, comma-dangle, consistent-return, quotes, dot-notation, quote-props, prefer-arrow-callback, max-len */
import
$
from
'
jquery
'
;
import
axios
from
'
./lib/utils/axios_utils
'
;
import
{
addDelimiter
}
from
'
./lib/utils/text_utility
'
;
import
flash
from
'
./flash
'
;
...
...
app/assets/javascripts/issue_show/components/description.vue
View file @
f248be72
<
script
>
import
$
from
'
jquery
'
;
import
animateMixin
from
'
../mixins/animate
'
;
import
TaskList
from
'
../../task_list
'
;
import
recaptchaModalImplementor
from
'
../../vue_shared/mixins/recaptcha_modal_implementor
'
;
...
...
app/assets/javascripts/issue_show/components/fields/description_template.vue
View file @
f248be72
<
script
>
import
$
from
'
jquery
'
;
import
IssuableTemplateSelectors
from
'
../../../templates/issuable_template_selectors
'
;
export
default
{
...
...
app/assets/javascripts/issue_status_select.js
View file @
f248be72
import
$
from
'
jquery
'
;
export
default
function
issueStatusSelect
()
{
$
(
'
.js-issue-status
'
).
each
((
i
,
el
)
=>
{
const
fieldName
=
$
(
el
).
data
(
'
fieldName
'
);
...
...
app/assets/javascripts/job.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
_
from
'
underscore
'
;
import
axios
from
'
./lib/utils/axios_utils
'
;
import
{
visitUrl
}
from
'
./lib/utils/url_utility
'
;
...
...
app/assets/javascripts/label_manager.js
View file @
f248be72
/* eslint-disable comma-dangle, class-methods-use-this, no-underscore-dangle, no-param-reassign, no-unused-vars, consistent-return, func-names, space-before-function-paren, max-len */
import
$
from
'
jquery
'
;
import
Sortable
from
'
vendor/Sortable
'
;
import
flash
from
'
./flash
'
;
...
...
app/assets/javascripts/labels.js
View file @
f248be72
import
$
from
'
jquery
'
;
export
default
class
Labels
{
constructor
()
{
this
.
setSuggestedColor
=
this
.
setSuggestedColor
.
bind
(
this
);
...
...
app/assets/javascripts/labels_select.js
View file @
f248be72
/* eslint-disable no-useless-return, func-names, space-before-function-paren, wrap-iife, no-var, no-underscore-dangle, prefer-arrow-callback, max-len, one-var, no-unused-vars, one-var-declaration-per-line, prefer-template, no-new, consistent-return, object-shorthand, comma-dangle, no-shadow, no-param-reassign, brace-style, vars-on-top, quotes, no-lonely-if, no-else-return, dot-notation, no-empty, no-return-assign, camelcase, prefer-spread */
/* global Issuable */
/* global ListLabel */
import
$
from
'
jquery
'
;
import
_
from
'
underscore
'
;
import
{
__
}
from
'
./locale
'
;
import
axios
from
'
./lib/utils/axios_utils
'
;
...
...
app/assets/javascripts/layout_nav.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
ContextualSidebar
from
'
./contextual_sidebar
'
;
import
initFlyOutNav
from
'
./fly_out_nav
'
;
...
...
app/assets/javascripts/lib/utils/bootstrap_linked_tabs.js
View file @
f248be72
import
$
from
'
jquery
'
;
/**
* Linked Tabs
*
...
...
app/assets/javascripts/lib/utils/common_utils.js
View file @
f248be72
import
jQuery
from
'
jquery
'
;
import
$
from
'
jquery
'
;
import
Cookies
from
'
js-cookie
'
;
import
axios
from
'
./axios_utils
'
;
import
{
getLocationHash
}
from
'
./url_utility
'
;
...
...
@@ -142,7 +142,7 @@ export const isMetaClick = e => e.metaKey || e.ctrlKey || e.which === 2;
export
const
scrollToElement
=
(
element
)
=>
{
let
$el
=
element
;
if
(
!
(
element
instanceof
jQuery
))
{
if
(
!
(
element
instanceof
$
))
{
$el
=
$
(
element
);
}
const
top
=
$el
.
offset
().
top
;
...
...
app/assets/javascripts/lib/utils/csrf.js
View file @
f248be72
import
$
from
'
jquery
'
;
/*
This module provides easy access to the CSRF token and caches
it for re-use. It also exposes some values commonly used in relation
...
...
app/assets/javascripts/lib/utils/datetime_utility.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
timeago
from
'
timeago.js
'
;
import
dateFormat
from
'
vendor/date.format
'
;
import
{
pluralize
}
from
'
./text_utility
'
;
...
...
app/assets/javascripts/lib/utils/text_markdown.js
View file @
f248be72
/* eslint-disable import/prefer-default-export, func-names, space-before-function-paren, wrap-iife, no-var, no-param-reassign, no-cond-assign, quotes, one-var, one-var-declaration-per-line, operator-assignment, no-else-return, prefer-template, prefer-arrow-callback, no-empty, max-len, consistent-return, no-unused-vars, no-return-assign, max-len, vars-on-top */
import
$
from
'
jquery
'
;
const
textUtils
=
{};
textUtils
.
selectedText
=
function
(
text
,
textarea
)
{
...
...
app/assets/javascripts/line_highlighter.js
View file @
f248be72
/* eslint-disable func-names, space-before-function-paren, no-var, prefer-rest-params, wrap-iife, no-use-before-define, no-underscore-dangle, no-param-reassign, prefer-template, quotes, comma-dangle, prefer-arrow-callback, consistent-return, one-var, one-var-declaration-per-line, no-else-return, max-len */
import
$
from
'
jquery
'
;
// LineHighlighter
//
// Handles single- and multi-line selection and highlight for blob views.
...
...
app/assets/javascripts/logo.js
View file @
f248be72
import
$
from
'
jquery
'
;
export
default
function
initLogoAnimation
()
{
window
.
addEventListener
(
'
beforeunload
'
,
()
=>
{
$
(
'
.tanuki-logo
'
).
addClass
(
'
animate
'
);
...
...
app/assets/javascripts/main.js
View file @
f248be72
/* eslint-disable import/first */
/* global ConfirmDangerModal */
/* global $ */
import
jQuery
from
'
jquery
'
;
import
Cookies
from
'
js-cookie
'
;
...
...
app/assets/javascripts/member_expiration_date.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
Pikaday
from
'
pikaday
'
;
import
{
parsePikadayDate
,
pikadayToString
}
from
'
./lib/utils/datefix
'
;
...
...
app/assets/javascripts/members.js
View file @
f248be72
import
$
from
'
jquery
'
;
export
default
class
Members
{
constructor
()
{
this
.
addListeners
();
...
...
app/assets/javascripts/merge_conflicts/merge_conflict_store.js
View file @
f248be72
/* eslint-disable comma-dangle, object-shorthand, no-param-reassign, camelcase, no-nested-ternary, no-continue, max-len */
import
$
from
'
jquery
'
;
import
Vue
from
'
vue
'
;
import
Cookies
from
'
js-cookie
'
;
...
...
app/assets/javascripts/merge_conflicts/merge_conflicts_bundle.js
View file @
f248be72
/* eslint-disable new-cap, comma-dangle, no-new */
import
$
from
'
jquery
'
;
import
Vue
from
'
vue
'
;
import
Flash
from
'
../flash
'
;
import
initIssuableSidebar
from
'
../init_issuable_sidebar
'
;
...
...
app/assets/javascripts/merge_request.js
View file @
f248be72
/* eslint-disable func-names, space-before-function-paren, no-var, prefer-rest-params, wrap-iife, quotes, no-underscore-dangle, one-var, one-var-declaration-per-line, consistent-return, dot-notation, quote-props, comma-dangle, object-shorthand, max-len, prefer-arrow-callback */
import
$
from
'
jquery
'
;
import
{
__
}
from
'
~/locale
'
;
import
TaskList
from
'
./task_list
'
;
import
MergeRequestTabs
from
'
./merge_request_tabs
'
;
...
...
app/assets/javascripts/merge_request_tabs.js
View file @
f248be72
/* eslint-disable no-new, class-methods-use-this */
import
$
from
'
jquery
'
;
import
Cookies
from
'
js-cookie
'
;
import
axios
from
'
./lib/utils/axios_utils
'
;
import
flash
from
'
./flash
'
;
...
...
app/assets/javascripts/milestone.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
axios
from
'
./lib/utils/axios_utils
'
;
import
flash
from
'
./flash
'
;
...
...
app/assets/javascripts/milestone_select.js
View file @
f248be72
/* eslint-disable func-names, space-before-function-paren, wrap-iife, 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 Issuable */
/* global ListMilestone */
import
$
from
'
jquery
'
;
import
_
from
'
underscore
'
;
import
axios
from
'
./lib/utils/axios_utils
'
;
import
{
timeFor
}
from
'
./lib/utils/datetime_utility
'
;
...
...
app/assets/javascripts/mini_pipeline_graph_dropdown.js
View file @
f248be72
/* eslint-disable no-new */
import
$
from
'
jquery
'
;
import
flash
from
'
./flash
'
;
import
axios
from
'
./lib/utils/axios_utils
'
;
...
...
app/assets/javascripts/namespace_select.js
View file @
f248be72
/* eslint-disable func-names, space-before-function-paren, no-var, comma-dangle, object-shorthand, no-else-return, prefer-template, quotes, prefer-arrow-callback, max-len */
import
$
from
'
jquery
'
;
import
Api
from
'
./api
'
;
import
{
mergeUrlParams
}
from
'
./lib/utils/url_utility
'
;
...
...
app/assets/javascripts/network/branch_graph.js
View file @
f248be72
/* eslint-disable func-names, space-before-function-paren, no-var, wrap-iife, quotes, comma-dangle, one-var, one-var-declaration-per-line, no-mixed-operators, no-loop-func, no-floating-decimal, consistent-return, no-unused-vars, prefer-template, prefer-arrow-callback, camelcase, max-len */
import
$
from
'
jquery
'
;
import
{
__
}
from
'
../locale
'
;
import
axios
from
'
../lib/utils/axios_utils
'
;
import
flash
from
'
../flash
'
;
...
...
app/assets/javascripts/new_branch_form.js
View file @
f248be72
/* eslint-disable func-names, space-before-function-paren, no-var, one-var, prefer-rest-params, max-len, vars-on-top, wrap-iife, consistent-return, comma-dangle, one-var-declaration-per-line, quotes, no-return-assign, prefer-arrow-callback, prefer-template, no-shadow, no-else-return, max-len, object-shorthand */
import
$
from
'
jquery
'
;
import
RefSelectDropdown
from
'
./ref_select_dropdown
'
;
export
default
class
NewBranchForm
{
...
...
app/assets/javascripts/notes/components/comment_form.vue
View file @
f248be72
<
script
>
import
$
from
'
jquery
'
;
import
{
mapActions
,
mapGetters
}
from
'
vuex
'
;
import
_
from
'
underscore
'
;
import
Autosize
from
'
autosize
'
;
...
...
app/assets/javascripts/notes/components/diff_with_note.vue
View file @
f248be72
<
script
>
import
$
from
'
jquery
'
;
import
syntaxHighlight
from
'
~/syntax_highlight
'
;
import
imageDiffHelper
from
'
~/image_diff/helpers/index
'
;
import
{
convertObjectPropsToCamelCase
}
from
'
~/lib/utils/common_utils
'
;
...
...
app/assets/javascripts/notes/components/note_body.vue
View file @
f248be72
<
script
>
import
$
from
'
jquery
'
;
import
noteEditedText
from
'
./note_edited_text.vue
'
;
import
noteAwardsList
from
'
./note_awards_list.vue
'
;
import
noteAttachment
from
'
./note_attachment.vue
'
;
...
...
app/assets/javascripts/notes/components/noteable_note.vue
View file @
f248be72
<
script
>
import
$
from
'
jquery
'
;
import
{
mapGetters
,
mapActions
}
from
'
vuex
'
;
import
{
escape
}
from
'
underscore
'
;
import
Flash
from
'
../../flash
'
;
...
...
app/assets/javascripts/notes/components/notes_app.vue
View file @
f248be72
<
script
>
import
$
from
'
jquery
'
;
import
{
mapGetters
,
mapActions
}
from
'
vuex
'
;
import
{
getLocationHash
}
from
'
../../lib/utils/url_utility
'
;
import
Flash
from
'
../../flash
'
;
...
...
app/assets/javascripts/notes/mixins/autosave.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
Autosave
from
'
../../autosave
'
;
import
{
capitalizeFirstCharacter
}
from
'
../../lib/utils/text_utility
'
;
...
...
app/assets/javascripts/notes/stores/actions.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
Visibility
from
'
visibilityjs
'
;
import
Flash
from
'
../../flash
'
;
import
Poll
from
'
../../lib/utils/poll
'
;
...
...
app/assets/javascripts/notifications_dropdown.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
Flash
from
'
./flash
'
;
export
default
function
notificationsDropdown
()
{
...
...
app/assets/javascripts/notifications_form.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
{
__
}
from
'
./locale
'
;
import
axios
from
'
./lib/utils/axios_utils
'
;
import
flash
from
'
./flash
'
;
...
...
app/assets/javascripts/pager.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
{
getParameterByName
}
from
'
~/lib/utils/common_utils
'
;
import
axios
from
'
./lib/utils/axios_utils
'
;
import
{
removeParams
}
from
'
./lib/utils/url_utility
'
;
...
...
app/assets/javascripts/pages/admin/abuse_reports/abuse_reports.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
{
truncate
}
from
'
../../../lib/utils/text_utility
'
;
const
MAX_MESSAGE_LENGTH
=
500
;
...
...
app/assets/javascripts/pages/admin/admin.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
{
refreshCurrentPage
}
from
'
../../lib/utils/url_utility
'
;
function
showBlacklistType
()
{
...
...
app/assets/javascripts/pages/admin/broadcast_messages/broadcast_message.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
_
from
'
underscore
'
;
import
axios
from
'
~/lib/utils/axios_utils
'
;
import
flash
from
'
~/flash
'
;
...
...
app/assets/javascripts/pages/admin/projects/index/index.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
Vue
from
'
vue
'
;
import
Translate
from
'
~/vue_shared/translate
'
;
...
...
app/assets/javascripts/pages/admin/users/index.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
Vue
from
'
vue
'
;
import
Translate
from
'
~/vue_shared/translate
'
;
...
...
app/assets/javascripts/pages/dashboard/todos/index/todos.js
View file @
f248be72
/* eslint-disable class-methods-use-this, no-unneeded-ternary, quote-props */
import
$
from
'
jquery
'
;
import
{
visitUrl
}
from
'
~/lib/utils/url_utility
'
;
import
UsersSelect
from
'
~/users_select
'
;
import
{
isMetaClick
}
from
'
~/lib/utils/common_utils
'
;
...
...
app/assets/javascripts/pages/help/index/index.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
VersionCheckImage
from
'
~/version_check_image
'
;
import
docs
from
'
~/docs/docs_bundle
'
;
...
...
app/assets/javascripts/pages/profiles/index.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
'
~/profile/gl_crop
'
;
import
Profile
from
'
~/profile/profile
'
;
...
...
app/assets/javascripts/pages/profiles/two_factor_auths/index.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
U2FRegister
from
'
~/u2f/register
'
;
document
.
addEventListener
(
'
DOMContentLoaded
'
,
()
=>
{
...
...
app/assets/javascripts/pages/projects/branches/new/index.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
NewBranchForm
from
'
~/new_branch_form
'
;
document
.
addEventListener
(
'
DOMContentLoaded
'
,
()
=>
(
...
...
app/assets/javascripts/pages/projects/commit/pipelines/index.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
MiniPipelineGraph
from
'
~/mini_pipeline_graph_dropdown
'
;
import
initPipelines
from
'
~/commit/pipelines/pipelines_bundle
'
;
...
...
app/assets/javascripts/pages/projects/commit/show/index.js
View file @
f248be72
/* eslint-disable no-new */
import
$
from
'
jquery
'
;
import
Diff
from
'
~/diff
'
;
import
ZenMode
from
'
~/zen_mode
'
;
import
ShortcutsNavigation
from
'
~/shortcuts_navigation
'
;
...
...
app/assets/javascripts/pages/projects/find_file/show/index.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
ProjectFindFile
from
'
~/project_find_file
'
;
import
ShortcutsFindFile
from
'
~/shortcuts_find_file
'
;
...
...
app/assets/javascripts/pages/projects/graphs/charts/index.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
Chart
from
'
chart.js
'
;
import
_
from
'
underscore
'
;
...
...
app/assets/javascripts/pages/projects/graphs/show/index.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
flash
from
'
~/flash
'
;
import
{
__
}
from
'
~/locale
'
;
import
axios
from
'
~/lib/utils/axios_utils
'
;
...
...
app/assets/javascripts/pages/projects/graphs/show/stat_graph_contributors.js
View file @
f248be72
/* eslint-disable func-names, space-before-function-paren, wrap-iife, no-var, one-var, camelcase, one-var-declaration-per-line, quotes, no-param-reassign, quote-props, comma-dangle, prefer-template, max-len, no-return-assign, no-shadow */
import
$
from
'
jquery
'
;
import
_
from
'
underscore
'
;
import
{
n__
,
s__
,
createDateTimeFormat
,
sprintf
}
from
'
~/locale
'
;
import
{
ContributorsGraph
,
ContributorsAuthorGraph
,
ContributorsMasterGraph
}
from
'
./stat_graph_contributors_graph
'
;
...
...
app/assets/javascripts/pages/projects/graphs/show/stat_graph_contributors_graph.js
View file @
f248be72
/* eslint-disable func-names, space-before-function-paren, no-var, prefer-rest-params, max-len, no-restricted-syntax, vars-on-top, no-use-before-define, no-param-reassign, new-cap, no-underscore-dangle, wrap-iife, comma-dangle, no-return-assign, prefer-arrow-callback, quotes, prefer-template, newline-per-chained-call, no-else-return, no-shadow */
import
$
from
'
jquery
'
;
import
_
from
'
underscore
'
;
import
{
extent
,
max
}
from
'
d3-array
'
;
import
{
select
,
event
as
d3Event
}
from
'
d3-selection
'
;
...
...
app/assets/javascripts/pages/projects/issues/form.js
View file @
f248be72
/* eslint-disable no-new */
import
$
from
'
jquery
'
;
import
GLForm
from
'
~/gl_form
'
;
import
IssuableForm
from
'
~/issuable_form
'
;
import
LabelsSelect
from
'
~/labels_select
'
;
...
...
app/assets/javascripts/pages/projects/merge_requests/init_merge_request.js
View file @
f248be72
/* eslint-disable no-new */
import
$
from
'
jquery
'
;
import
Diff
from
'
~/diff
'
;
import
ShortcutsNavigation
from
'
~/shortcuts_navigation
'
;
import
GLForm
from
'
~/gl_form
'
;
...
...
app/assets/javascripts/pages/projects/network/network.js
View file @
f248be72
/* eslint-disable func-names, space-before-function-paren, wrap-iife, no-var, quotes, quote-props, prefer-template, comma-dangle, max-len */
import
$
from
'
jquery
'
;
import
BranchGraph
from
'
../../../network/branch_graph
'
;
export
default
(
function
()
{
...
...
app/assets/javascripts/pages/projects/network/show/index.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
ShortcutsNetwork
from
'
../../../../shortcuts_network
'
;
import
Network
from
'
../network
'
;
...
...
app/assets/javascripts/pages/projects/pipeline_schedules/shared/components/target_branch_dropdown.js
View file @
f248be72
import
$
from
'
jquery
'
;
export
default
class
TargetBranchDropdown
{
constructor
()
{
this
.
$dropdown
=
$
(
'
.js-target-branch-dropdown
'
);
...
...
app/assets/javascripts/pages/projects/pipeline_schedules/shared/components/timezone_dropdown.js
View file @
f248be72
/* eslint-disable class-methods-use-this */
import
$
from
'
jquery
'
;
const
defaultTimezone
=
'
UTC
'
;
export
default
class
TimezoneDropdown
{
...
...
app/assets/javascripts/pages/projects/pipeline_schedules/shared/init_form.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
Vue
from
'
vue
'
;
import
Translate
from
'
../../../../vue_shared/translate
'
;
import
GlFieldErrors
from
'
../../../../gl_field_errors
'
;
...
...
app/assets/javascripts/pages/projects/pipelines/charts/index.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
Chart
from
'
chart.js
'
;
const
options
=
{
...
...
app/assets/javascripts/pages/projects/pipelines/new/index.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
NewBranchForm
from
'
~/new_branch_form
'
;
document
.
addEventListener
(
'
DOMContentLoaded
'
,
()
=>
{
...
...
app/assets/javascripts/pages/projects/project.js
View file @
f248be72
/* eslint-disable func-names, space-before-function-paren, no-var, consistent-return, no-new, prefer-arrow-callback, no-return-assign, one-var, one-var-declaration-per-line, object-shorthand, no-else-return, newline-per-chained-call, no-shadow, vars-on-top, prefer-template, max-len */
import
$
from
'
jquery
'
;
import
Cookies
from
'
js-cookie
'
;
import
{
__
}
from
'
~/locale
'
;
import
{
visitUrl
}
from
'
~/lib/utils/url_utility
'
;
...
...
app/assets/javascripts/pages/projects/releases/edit/index.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
initForm
from
'
~/pages/projects/init_form
'
;
document
.
addEventListener
(
'
DOMContentLoaded
'
,
()
=>
initForm
(
$
(
'
.release-form
'
)));
app/assets/javascripts/pages/projects/shared/project_avatar.js
View file @
f248be72
import
$
from
'
jquery
'
;
export
default
function
projectAvatar
()
{
$
(
'
.js-choose-project-avatar-button
'
).
bind
(
'
click
'
,
function
onClickAvatar
()
{
const
form
=
$
(
this
).
closest
(
'
form
'
);
...
...
app/assets/javascripts/pages/projects/shared/project_new.js
View file @
f248be72
/* eslint-disable func-names, no-var, no-underscore-dangle, prefer-template, prefer-arrow-callback*/
import
$
from
'
jquery
'
;
import
VisibilitySelect
from
'
../../../visibility_select
'
;
function
highlightChanges
(
$elm
)
{
...
...
app/assets/javascripts/pages/projects/show/index.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
ShortcutsNavigation
from
'
~/shortcuts_navigation
'
;
import
NotificationsForm
from
'
~/notifications_form
'
;
import
UserCallout
from
'
~/user_callout
'
;
...
...
app/assets/javascripts/pages/projects/snippets/edit/index.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
initSnippet
from
'
~/snippet/snippet_bundle
'
;
import
initForm
from
'
~/pages/projects/init_form
'
;
...
...
app/assets/javascripts/pages/projects/snippets/new/index.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
initSnippet
from
'
~/snippet/snippet_bundle
'
;
import
initForm
from
'
~/pages/projects/init_form
'
;
...
...
app/assets/javascripts/pages/projects/tags/new/index.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
RefSelectDropdown
from
'
../../../../ref_select_dropdown
'
;
import
ZenMode
from
'
../../../../zen_mode
'
;
import
GLForm
from
'
../../../../gl_form
'
;
...
...
app/assets/javascripts/pages/projects/tree/show/index.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
Vue
from
'
vue
'
;
import
initBlob
from
'
~/blob_edit/blob_bundle
'
;
import
commitPipelineStatus
from
'
~/projects/tree/components/commit_pipeline_status_component.vue
'
;
...
...
app/assets/javascripts/pages/projects/wikis/index.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
Wikis
from
'
./wikis
'
;
import
ShortcutsWiki
from
'
../../../shortcuts_wiki
'
;
import
ZenMode
from
'
../../../zen_mode
'
;
...
...
app/assets/javascripts/pages/search/show/search.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
Flash
from
'
~/flash
'
;
import
Api
from
'
~/api
'
;
...
...
app/assets/javascripts/pages/sessions/new/index.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
UsernameValidator
from
'
./username_validator
'
;
import
SigninTabsMemoizer
from
'
./signin_tabs_memoizer
'
;
import
OAuthRememberMe
from
'
./oauth_remember_me
'
;
...
...
app/assets/javascripts/pages/sessions/new/oauth_remember_me.js
View file @
f248be72
import
$
from
'
jquery
'
;
/**
* OAuth-based login buttons have a separate "remember me" checkbox.
*
...
...
app/assets/javascripts/pages/sessions/new/username_validator.js
View file @
f248be72
/* eslint-disable comma-dangle, consistent-return, class-methods-use-this, arrow-parens, no-param-reassign, max-len */
import
$
from
'
jquery
'
;
import
_
from
'
underscore
'
;
import
axios
from
'
~/lib/utils/axios_utils
'
;
import
flash
from
'
~/flash
'
;
...
...
app/assets/javascripts/pages/snippets/form.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
GLForm
from
'
~/gl_form
'
;
import
ZenMode
from
'
~/zen_mode
'
;
...
...
app/assets/javascripts/pages/users/activity_calendar.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
_
from
'
underscore
'
;
import
{
scaleLinear
,
scaleThreshold
}
from
'
d3-scale
'
;
import
{
select
}
from
'
d3-selection
'
;
...
...
app/assets/javascripts/pages/users/index.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
UserCallout
from
'
~/user_callout
'
;
import
Cookies
from
'
js-cookie
'
;
import
UserTabs
from
'
./user_tabs
'
;
...
...
app/assets/javascripts/pages/users/user_tabs.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
axios
from
'
~/lib/utils/axios_utils
'
;
import
Activities
from
'
~/activities
'
;
import
{
localTimeAgo
}
from
'
~/lib/utils/datetime_utility
'
;
...
...
app/assets/javascripts/performance_bar.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
'
vendor/peek
'
;
import
'
vendor/peek.performance_bar
'
;
import
{
getParameterValues
}
from
'
./lib/utils/url_utility
'
;
...
...
app/assets/javascripts/pipelines/components/graph/dropdown_job_component.vue
View file @
f248be72
<
script
>
import
$
from
'
jquery
'
;
import
jobNameComponent
from
'
./job_name_component.vue
'
;
import
jobComponent
from
'
./job_component.vue
'
;
import
tooltip
from
'
../../../vue_shared/directives/tooltip
'
;
...
...
app/assets/javascripts/pipelines/components/stage.vue
View file @
f248be72
<
script
>
import
$
from
'
jquery
'
;
/**
* Renders each stage of the pipeline mini graph.
...
...
app/assets/javascripts/preview_markdown.js
View file @
f248be72
/* eslint-disable func-names, no-var, object-shorthand, comma-dangle, prefer-arrow-callback */
import
$
from
'
jquery
'
;
import
axios
from
'
~/lib/utils/axios_utils
'
;
import
flash
from
'
~/flash
'
;
import
{
__
}
from
'
~/locale
'
;
// MarkdownPreview
//
// Handles toggling the "Write" and "Preview" tab clicks, rendering the preview
...
...
@@ -7,10 +12,6 @@
// more than `x` users are referenced.
//
import
axios
from
'
~/lib/utils/axios_utils
'
;
import
flash
from
'
~/flash
'
;
import
{
__
}
from
'
~/locale
'
;
var
lastTextareaPreviewed
;
var
lastTextareaHeight
=
null
;
var
markdownPreview
;
...
...
app/assets/javascripts/profile/gl_crop.js
View file @
f248be72
/* eslint-disable no-useless-escape, max-len, quotes, no-var, no-underscore-dangle, func-names, space-before-function-paren, no-unused-vars, no-return-assign, object-shorthand, one-var, one-var-declaration-per-line, comma-dangle, consistent-return, class-methods-use-this, new-parens */
import
$
from
'
jquery
'
;
import
'
cropper
'
;
import
_
from
'
underscore
'
;
...
...
app/assets/javascripts/profile/profile.js
View file @
f248be72
/* eslint-disable comma-dangle, no-unused-vars, class-methods-use-this, quotes, consistent-return, func-names, prefer-arrow-callback, space-before-function-paren, max-len */
import
$
from
'
jquery
'
;
import
Cookies
from
'
js-cookie
'
;
import
axios
from
'
~/lib/utils/axios_utils
'
;
import
{
__
}
from
'
~/locale
'
;
...
...
app/assets/javascripts/project_edit.js
View file @
f248be72
import
$
from
'
jquery
'
;
export
default
function
setupProjectEdit
()
{
const
$transferForm
=
$
(
'
.js-project-transfer-form
'
);
const
$selectNamespace
=
$transferForm
.
find
(
'
select.select2
'
);
...
...
app/assets/javascripts/project_find_file.js
View file @
f248be72
/* eslint-disable func-names, space-before-function-paren, no-var, prefer-rest-params, wrap-iife, quotes, consistent-return, one-var, one-var-declaration-per-line, no-cond-assign, max-len, object-shorthand, no-param-reassign, comma-dangle, prefer-template, no-unused-vars, no-return-assign */
import
$
from
'
jquery
'
;
import
fuzzaldrinPlus
from
'
fuzzaldrin-plus
'
;
import
axios
from
'
~/lib/utils/axios_utils
'
;
import
flash
from
'
~/flash
'
;
...
...
app/assets/javascripts/project_fork.js
View file @
f248be72
import
$
from
'
jquery
'
;
export
default
()
=>
{
$
(
'
.js-fork-thumbnail
'
).
on
(
'
click
'
,
function
forkThumbnailClicked
()
{
if
(
$
(
this
).
hasClass
(
'
disabled
'
))
return
false
;
...
...
app/assets/javascripts/project_label_subscription.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
{
__
}
from
'
./locale
'
;
import
axios
from
'
./lib/utils/axios_utils
'
;
import
flash
from
'
./flash
'
;
...
...
app/assets/javascripts/project_select.js
View file @
f248be72
/* eslint-disable func-names, space-before-function-paren, wrap-iife, prefer-arrow-callback, no-var, comma-dangle, object-shorthand, one-var, one-var-declaration-per-line, no-else-return, quotes, max-len */
import
$
from
'
jquery
'
;
import
Api
from
'
./api
'
;
import
ProjectSelectComboButton
from
'
./project_select_combo_button
'
;
...
...
app/assets/javascripts/project_select_combo_button.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
AccessorUtilities
from
'
./lib/utils/accessor
'
;
export
default
class
ProjectSelectComboButton
{
...
...
app/assets/javascripts/project_visibility.js
View file @
f248be72
import
$
from
'
jquery
'
;
function
setVisibilityOptions
(
namespaceSelector
)
{
if
(
!
namespaceSelector
||
!
(
'
selectedIndex
'
in
namespaceSelector
))
{
return
;
...
...
app/assets/javascripts/projects/project_import_gitlab_project.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
{
getParameterValues
}
from
'
../lib/utils/url_utility
'
;
export
default
()
=>
{
...
...
app/assets/javascripts/projects/project_new.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
{
addSelectOnFocusBehaviour
}
from
'
../lib/utils/common_utils
'
;
let
hasUserDefinedProjectPath
=
false
;
...
...
app/assets/javascripts/projects_dropdown/index.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
Vue
from
'
vue
'
;
import
Translate
from
'
../vue_shared/translate
'
;
...
...
app/assets/javascripts/prometheus_metrics/prometheus_metrics.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
_
from
'
underscore
'
;
import
{
s__
,
n__
,
sprintf
}
from
'
~/locale
'
;
import
axios
from
'
../lib/utils/axios_utils
'
;
...
...
app/assets/javascripts/protected_branches/protected_branch_create.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
_
from
'
underscore
'
;
import
ProtectedBranchAccessDropdown
from
'
./protected_branch_access_dropdown
'
;
import
CreateItemDropdown
from
'
../create_item_dropdown
'
;
...
...
app/assets/javascripts/protected_branches/protected_branch_edit_list.js
View file @
f248be72
/* eslint-disable no-new */
import
$
from
'
jquery
'
;
import
ProtectedBranchEdit
from
'
./protected_branch_edit
'
;
export
default
class
ProtectedBranchEditList
{
...
...
app/assets/javascripts/protected_tags/protected_tag_create.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
ProtectedTagAccessDropdown
from
'
./protected_tag_access_dropdown
'
;
import
CreateItemDropdown
from
'
../create_item_dropdown
'
;
...
...
app/assets/javascripts/protected_tags/protected_tag_edit_list.js
View file @
f248be72
/* eslint-disable no-new */
import
$
from
'
jquery
'
;
import
ProtectedTagEdit
from
'
./protected_tag_edit
'
;
export
default
class
ProtectedTagEditList
{
...
...
app/assets/javascripts/ref_select_dropdown.js
View file @
f248be72
import
$
from
'
jquery
'
;
class
RefSelectDropdown
{
constructor
(
$dropdownButton
,
availableRefs
)
{
const
availableRefsValue
=
availableRefs
||
JSON
.
parse
(
document
.
getElementById
(
'
availableRefs
'
).
innerHTML
);
...
...
app/assets/javascripts/render_gfm.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
renderMath
from
'
./render_math
'
;
import
renderMermaid
from
'
./render_mermaid
'
;
import
syntaxHighlight
from
'
./syntax_highlight
'
;
...
...
app/assets/javascripts/render_math.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
{
__
}
from
'
./locale
'
;
import
flash
from
'
./flash
'
;
...
...
app/assets/javascripts/right_sidebar.js
View file @
f248be72
/* eslint-disable func-names, space-before-function-paren, no-var, prefer-rest-params, wrap-iife, no-unused-vars, consistent-return, one-var, one-var-declaration-per-line, quotes, prefer-template, object-shorthand, comma-dangle, no-else-return, no-param-reassign, max-len */
import
$
from
'
jquery
'
;
import
_
from
'
underscore
'
;
import
Cookies
from
'
js-cookie
'
;
import
flash
from
'
./flash
'
;
...
...
app/assets/javascripts/search_autocomplete.js
View file @
f248be72
/* eslint-disable no-return-assign, one-var, no-var, no-underscore-dangle, one-var-declaration-per-line, no-unused-vars, no-cond-assign, consistent-return, object-shorthand, prefer-arrow-callback, func-names, space-before-function-paren, prefer-template, quotes, class-methods-use-this, no-sequences, wrap-iife, no-lonely-if, no-else-return, no-param-reassign, vars-on-top, max-len */
import
$
from
'
jquery
'
;
import
axios
from
'
./lib/utils/axios_utils
'
;
import
DropdownUtils
from
'
./filtered_search/dropdown_utils
'
;
import
{
isInGroupsPage
,
isInProjectPage
,
getGroupSlug
,
getProjectSlug
}
from
'
./lib/utils/common_utils
'
;
...
...
app/assets/javascripts/settings_panels.js
View file @
f248be72
import
$
from
'
jquery
'
;
function
expandSection
(
$section
)
{
$section
.
find
(
'
.js-settings-toggle
'
).
text
(
'
Collapse
'
);
$section
.
find
(
'
.settings-content
'
).
off
(
'
scroll.expandSection
'
).
scrollTop
(
0
);
...
...
app/assets/javascripts/shared/milestones/form.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
ZenMode
from
'
../../zen_mode
'
;
import
DueDateSelectors
from
'
../../due_date_select
'
;
import
GLForm
from
'
../../gl_form
'
;
...
...
app/assets/javascripts/shared/sessions/u2f.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
U2FAuthenticate
from
'
../../u2f/authenticate
'
;
export
default
()
=>
{
...
...
app/assets/javascripts/shortcuts.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
Cookies
from
'
js-cookie
'
;
import
Mousetrap
from
'
mousetrap
'
;
import
axios
from
'
./lib/utils/axios_utils
'
;
...
...
app/assets/javascripts/shortcuts_issuable.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
Mousetrap
from
'
mousetrap
'
;
import
_
from
'
underscore
'
;
import
Sidebar
from
'
./right_sidebar
'
;
...
...
app/assets/javascripts/sidebar/components/time_tracking/sidebar_time_tracking.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
_
from
'
underscore
'
;
import
'
~/smart_interval
'
;
...
...
app/assets/javascripts/sidebar/lib/sidebar_move_issue.js
View file @
f248be72
import
$
from
'
jquery
'
;
function
isValidProjectId
(
id
)
{
return
id
>
0
;
}
...
...
app/assets/javascripts/sidebar/mount_sidebar.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
Vue
from
'
vue
'
;
import
SidebarTimeTracking
from
'
./components/time_tracking/sidebar_time_tracking
'
;
import
SidebarAssignees
from
'
./components/assignees/sidebar_assignees.vue
'
;
...
...
app/assets/javascripts/single_file_diff.js
View file @
f248be72
/* eslint-disable func-names, prefer-arrow-callback, space-before-function-paren, no-var, prefer-rest-params, wrap-iife, one-var, one-var-declaration-per-line, consistent-return, no-param-reassign, max-len */
import
$
from
'
jquery
'
;
import
{
__
}
from
'
./locale
'
;
import
axios
from
'
./lib/utils/axios_utils
'
;
import
createFlash
from
'
./flash
'
;
...
...
app/assets/javascripts/smart_interval.js
View file @
f248be72
import
$
from
'
jquery
'
;
/**
* Instances of SmartInterval extend the functionality of `setInterval`, make it configurable
* and controllable by a public API.
...
...
app/assets/javascripts/snippet/snippet_bundle.js
View file @
f248be72
/* global ace */
import
$
from
'
jquery
'
;
export
default
()
=>
{
const
editor
=
ace
.
edit
(
'
editor
'
);
...
...
app/assets/javascripts/star.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
Flash
from
'
./flash
'
;
import
{
__
,
s__
}
from
'
./locale
'
;
import
{
spriteIcon
}
from
'
./lib/utils/common_utils
'
;
...
...
app/assets/javascripts/subscription_select.js
View file @
f248be72
import
$
from
'
jquery
'
;
export
default
function
subscriptionSelect
()
{
$
(
'
.js-subscription-event
'
).
each
((
i
,
element
)
=>
{
const
fieldName
=
$
(
element
).
data
(
'
fieldName
'
);
...
...
app/assets/javascripts/syntax_highlight.js
View file @
f248be72
/* eslint-disable func-names, space-before-function-paren, consistent-return, no-var, no-else-return, prefer-arrow-callback, max-len */
import
$
from
'
jquery
'
;
// Syntax Highlighter
//
// Applies a syntax highlighting color scheme CSS class to any element with the
...
...
app/assets/javascripts/task_list.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
'
deckar01-task_list
'
;
import
axios
from
'
./lib/utils/axios_utils
'
;
import
Flash
from
'
./flash
'
;
...
...
app/assets/javascripts/templates/issuable_template_selector.js
View file @
f248be72
/* eslint-disable no-useless-return, max-len */
import
$
from
'
jquery
'
;
import
Api
from
'
../api
'
;
import
TemplateSelector
from
'
../blob/template_selector
'
;
...
...
app/assets/javascripts/templates/issuable_template_selectors.js
View file @
f248be72
/* eslint-disable no-new, class-methods-use-this */
import
$
from
'
jquery
'
;
import
IssuableTemplateSelector
from
'
./issuable_template_selector
'
;
export
default
class
IssuableTemplateSelectors
{
...
...
app/assets/javascripts/terminal/terminal.js
View file @
f248be72
/* global Terminal */
import
$
from
'
jquery
'
;
(()
=>
{
class
GLTerminal
{
...
...
app/assets/javascripts/tree.js
View file @
f248be72
/* eslint-disable func-names, space-before-function-paren, wrap-iife, max-len, quotes, consistent-return, no-var, one-var, one-var-declaration-per-line, no-else-return, prefer-arrow-callback, class-methods-use-this */
import
$
from
'
jquery
'
;
import
{
visitUrl
}
from
'
./lib/utils/url_utility
'
;
export
default
class
TreeView
{
...
...
app/assets/javascripts/u2f/authenticate.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
_
from
'
underscore
'
;
import
importU2FLibrary
from
'
./util
'
;
import
U2FError
from
'
./error
'
;
...
...
app/assets/javascripts/u2f/register.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
_
from
'
underscore
'
;
import
importU2FLibrary
from
'
./util
'
;
import
U2FError
from
'
./error
'
;
...
...
app/assets/javascripts/ui_development_kit.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
Api
from
'
./api
'
;
export
default
()
=>
{
...
...
app/assets/javascripts/user_callout.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
Cookies
from
'
js-cookie
'
;
export
default
class
UserCallout
{
...
...
app/assets/javascripts/users_select.js
View file @
f248be72
/* 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 Issuable */
/* global emitSidebarEvent */
import
$
from
'
jquery
'
;
import
_
from
'
underscore
'
;
import
axios
from
'
./lib/utils/axios_utils
'
;
...
...
app/assets/javascripts/vue_merge_request_widget/components/states/mr_widget_wip.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
statusIcon
from
'
../mr_widget_status_icon.vue
'
;
import
tooltip
from
'
../../../vue_shared/directives/tooltip
'
;
import
eventHub
from
'
../../event_hub
'
;
...
...
app/assets/javascripts/vue_shared/components/markdown/field.vue
View file @
f248be72
<
script
>
import
$
from
'
jquery
'
;
import
Flash
from
'
../../../flash
'
;
import
GLForm
from
'
../../../gl_form
'
;
import
markdownHeader
from
'
./header.vue
'
;
...
...
app/assets/javascripts/vue_shared/components/markdown/header.vue
View file @
f248be72
<
script
>
import
$
from
'
jquery
'
;
import
tooltip
from
'
../../directives/tooltip
'
;
import
toolbarButton
from
'
./toolbar_button.vue
'
;
import
icon
from
'
../icon.vue
'
;
...
...
app/assets/javascripts/vue_shared/components/navigation_tabs.vue
View file @
f248be72
<
script
>
import
$
from
'
jquery
'
;
/**
* Given an array of tabs, renders non linked bootstrap tabs.
* When a tab is clicked it will trigger an event and provide the clicked scope.
...
...
app/assets/javascripts/vue_shared/directives/popover.js
View file @
f248be72
import
$
from
'
jquery
'
;
/**
* Helper to user bootstrap popover in vue.js.
* Follow docs for html attributes: https://getbootstrap.com/docs/3.3/javascript/#static-popover
...
...
app/assets/javascripts/vue_shared/directives/tooltip.js
View file @
f248be72
import
$
from
'
jquery
'
;
export
default
{
bind
(
el
)
{
$
(
el
).
tooltip
();
...
...
app/assets/javascripts/zen_mode.js
View file @
f248be72
...
...
@@ -5,6 +5,7 @@
/*= provides zen_mode:enter */
/*= provides zen_mode:leave */
import
$
from
'
jquery
'
;
import
'
vendor/jquery.scrollTo
'
;
import
Dropzone
from
'
dropzone
'
;
import
Mousetrap
from
'
mousetrap
'
;
...
...
spec/javascripts/activities_spec.js
View file @
f248be72
/* eslint-disable no-unused-expressions, no-prototype-builtins, no-new, no-shadow, max-len */
import
$
from
'
jquery
'
;
import
'
vendor/jquery.endless-scroll
'
;
import
Activities
from
'
~/activities
'
;
...
...
spec/javascripts/ajax_loading_spinner_spec.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
AjaxLoadingSpinner
from
'
~/ajax_loading_spinner
'
;
describe
(
'
Ajax Loading Spinner
'
,
()
=>
{
...
...
@@ -10,7 +11,7 @@ describe('Ajax Loading Spinner', () => {
});
it
(
'
change current icon with spinner icon and disable link while waiting ajax response
'
,
(
done
)
=>
{
spyOn
(
jQuery
,
'
ajax
'
).
and
.
callFake
((
req
)
=>
{
spyOn
(
$
,
'
ajax
'
).
and
.
callFake
((
req
)
=>
{
const
xhr
=
new
XMLHttpRequest
();
const
ajaxLoadingSpinner
=
document
.
querySelector
(
'
.js-ajax-loading-spinner
'
);
const
icon
=
ajaxLoadingSpinner
.
querySelector
(
'
i
'
);
...
...
@@ -33,7 +34,7 @@ describe('Ajax Loading Spinner', () => {
});
it
(
'
use original icon again and enabled the link after complete the ajax request
'
,
(
done
)
=>
{
spyOn
(
jQuery
,
'
ajax
'
).
and
.
callFake
((
req
)
=>
{
spyOn
(
$
,
'
ajax
'
).
and
.
callFake
((
req
)
=>
{
const
xhr
=
new
XMLHttpRequest
();
const
ajaxLoadingSpinner
=
document
.
querySelector
(
'
.js-ajax-loading-spinner
'
);
...
...
spec/javascripts/autosave_spec.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
Autosave
from
'
~/autosave
'
;
import
AccessorUtilities
from
'
~/lib/utils/accessor
'
;
...
...
spec/javascripts/awards_handler_spec.js
View file @
f248be72
/* eslint-disable space-before-function-paren, no-var, one-var, one-var-declaration-per-line, no-unused-expressions, comma-dangle, new-parens, no-unused-vars, quotes, jasmine/no-spec-dupes, prefer-template, max-len */
import
$
from
'
jquery
'
;
import
Cookies
from
'
js-cookie
'
;
import
loadAwardsHandler
from
'
~/awards_handler
'
;
...
...
spec/javascripts/behaviors/autosize_spec.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
'
~/behaviors/autosize
'
;
function
load
()
{
...
...
spec/javascripts/behaviors/quick_submit_spec.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
'
~/behaviors/quick_submit
'
;
describe
(
'
Quick Submit behavior
'
,
()
=>
{
...
...
spec/javascripts/behaviors/requires_input_spec.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
'
~/behaviors/requires_input
'
;
describe
(
'
requiresInput
'
,
()
=>
{
...
...
spec/javascripts/blob/blob_file_dropzone_spec.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
BlobFileDropzone
from
'
~/blob/blob_file_dropzone
'
;
describe
(
'
BlobFileDropzone
'
,
()
=>
{
...
...
@@ -27,7 +28,7 @@ describe('BlobFileDropzone', () => {
name
:
'
some-file.jpg
'
,
type
:
'
jpg
'
,
};
const
fakeEvent
=
jQuery
.
Event
(
'
drop
'
,
{
const
fakeEvent
=
$
.
Event
(
'
drop
'
,
{
dataTransfer
:
{
files
:
[
file
]
},
});
...
...
spec/javascripts/blob/viewer/index_spec.js
View file @
f248be72
/* eslint-disable no-new */
import
$
from
'
jquery
'
;
import
MockAdapter
from
'
axios-mock-adapter
'
;
import
BlobViewer
from
'
~/blob/viewer/index
'
;
import
axios
from
'
~/lib/utils/axios_utils
'
;
...
...
spec/javascripts/bootstrap_jquery_spec.js
View file @
f248be72
/* eslint-disable space-before-function-paren, no-var */
import
$
from
'
jquery
'
;
import
'
~/commons/bootstrap
'
;
(
function
()
{
...
...
spec/javascripts/ci_variable_list/ci_variable_list_spec.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
VariableList
from
'
~/ci_variable_list/ci_variable_list
'
;
import
getSetTimeoutPromise
from
'
spec/helpers/set_timeout_promise_helper
'
;
...
...
spec/javascripts/ci_variable_list/native_form_variable_list_spec.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
setupNativeFormVariableList
from
'
~/ci_variable_list/native_form_variable_list
'
;
describe
(
'
NativeFormVariableList
'
,
()
=>
{
...
...
spec/javascripts/commits_spec.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
'
vendor/jquery.endless-scroll
'
;
import
MockAdapter
from
'
axios-mock-adapter
'
;
import
axios
from
'
~/lib/utils/axios_utils
'
;
...
...
spec/javascripts/create_item_dropdown_spec.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
CreateItemDropdown
from
'
~/create_item_dropdown
'
;
const
DROPDOWN_ITEM_DATA
=
[{
...
...
spec/javascripts/feature_highlight/feature_highlight_helper_spec.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
MockAdapter
from
'
axios-mock-adapter
'
;
import
axios
from
'
~/lib/utils/axios_utils
'
;
import
{
...
...
spec/javascripts/feature_highlight/feature_highlight_spec.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
*
as
featureHighlightHelper
from
'
~/feature_highlight/feature_highlight_helper
'
;
import
*
as
featureHighlight
from
'
~/feature_highlight/feature_highlight
'
;
import
axios
from
'
~/lib/utils/axios_utils
'
;
...
...
spec/javascripts/filtered_search/filtered_search_dropdown_manager_spec.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
FilteredSearchDropdownManager
from
'
~/filtered_search/filtered_search_dropdown_manager
'
;
describe
(
'
Filtered Search Dropdown Manager
'
,
()
=>
{
beforeEach
(()
=>
{
spyOn
(
jQuery
,
'
ajax
'
);
spyOn
(
$
,
'
ajax
'
);
});
describe
(
'
addWordToInput
'
,
()
=>
{
...
...
spec/javascripts/gfm_auto_complete_spec.js
View file @
f248be72
/* eslint no-param-reassign: "off" */
import
$
from
'
jquery
'
;
import
GfmAutoComplete
from
'
~/gfm_auto_complete
'
;
import
'
vendor/jquery.caret
'
;
...
...
spec/javascripts/gl_dropdown_spec.js
View file @
f248be72
/* eslint-disable comma-dangle, no-param-reassign, no-unused-expressions, max-len */
import
$
from
'
jquery
'
;
import
'
~/gl_dropdown
'
;
import
'
~/lib/utils/common_utils
'
;
import
*
as
urlUtils
from
'
~/lib/utils/url_utility
'
;
...
...
spec/javascripts/gl_field_errors_spec.js
View file @
f248be72
/* eslint-disable space-before-function-paren, arrow-body-style */
import
$
from
'
jquery
'
;
import
GlFieldErrors
from
'
~/gl_field_errors
'
;
describe
(
'
GL Style Field Errors
'
,
function
()
{
...
...
spec/javascripts/gl_form_spec.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
autosize
from
'
autosize
'
;
import
GLForm
from
'
~/gl_form
'
;
import
'
~/lib/utils/text_utility
'
;
...
...
spec/javascripts/groups/components/app_spec.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
Vue
from
'
vue
'
;
import
*
as
utils
from
'
~/lib/utils/url_utility
'
;
...
...
spec/javascripts/header_spec.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
initTodoToggle
from
'
~/header
'
;
describe
(
'
Header
'
,
function
()
{
...
...
spec/javascripts/integrations/integration_settings_form_spec.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
MockAdaptor
from
'
axios-mock-adapter
'
;
import
axios
from
'
~/lib/utils/axios_utils
'
;
import
IntegrationSettingsForm
from
'
~/integrations/integration_settings_form
'
;
...
...
spec/javascripts/issuable_spec.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
MockAdaptor
from
'
axios-mock-adapter
'
;
import
axios
from
'
~/lib/utils/axios_utils
'
;
import
IssuableIndex
from
'
~/issuable_index
'
;
...
...
spec/javascripts/issuable_time_tracker_spec.js
View file @
f248be72
/* 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
$
from
'
jquery
'
;
import
Vue
from
'
vue
'
;
import
timeTracker
from
'
~/sidebar/components/time_tracking/time_tracker.vue
'
;
...
...
spec/javascripts/issue_show/components/description_spec.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
Vue
from
'
vue
'
;
import
descriptionComponent
from
'
~/issue_show/components/description.vue
'
;
import
*
as
taskList
from
'
~/task_list
'
;
...
...
spec/javascripts/issue_spec.js
View file @
f248be72
/* eslint-disable space-before-function-paren, one-var, one-var-declaration-per-line, no-use-before-define, comma-dangle, max-len */
import
$
from
'
jquery
'
;
import
MockAdapter
from
'
axios-mock-adapter
'
;
import
axios
from
'
~/lib/utils/axios_utils
'
;
import
Issue
from
'
~/issue
'
;
...
...
spec/javascripts/job_spec.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
MockAdapter
from
'
axios-mock-adapter
'
;
import
axios
from
'
~/lib/utils/axios_utils
'
;
import
{
numberToHumanSize
}
from
'
~/lib/utils/number_utils
'
;
...
...
spec/javascripts/labels_issue_sidebar_spec.js
View file @
f248be72
/* eslint-disable no-new */
import
$
from
'
jquery
'
;
import
MockAdapter
from
'
axios-mock-adapter
'
;
import
axios
from
'
~/lib/utils/axios_utils
'
;
import
IssuableContext
from
'
~/issuable_context
'
;
...
...
spec/javascripts/labels_select_spec.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
LabelsSelect
from
'
~/labels_select
'
;
const
mockUrl
=
'
/foo/bar/url
'
;
...
...
spec/javascripts/line_highlighter_spec.js
View file @
f248be72
/* eslint-disable space-before-function-paren, no-var, no-param-reassign, quotes, prefer-template, no-else-return, new-cap, dot-notation, no-return-assign, comma-dangle, no-new, one-var, one-var-declaration-per-line, jasmine/no-spec-dupes, no-underscore-dangle, max-len */
import
$
from
'
jquery
'
;
import
LineHighlighter
from
'
~/line_highlighter
'
;
(
function
()
{
...
...
spec/javascripts/merge_request_notes_spec.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
_
from
'
underscore
'
;
import
'
autosize
'
;
import
'
~/gl_form
'
;
...
...
spec/javascripts/merge_request_spec.js
View file @
f248be72
/* eslint-disable space-before-function-paren, no-return-assign */
import
$
from
'
jquery
'
;
import
MockAdapter
from
'
axios-mock-adapter
'
;
import
axios
from
'
~/lib/utils/axios_utils
'
;
import
MergeRequest
from
'
~/merge_request
'
;
...
...
@@ -27,7 +29,7 @@ import IssuablesHelper from '~/helpers/issuables_helper';
});
it
(
'
modifies the Markdown field
'
,
function
()
{
spyOn
(
jQuery
,
'
ajax
'
).
and
.
stub
();
spyOn
(
$
,
'
ajax
'
).
and
.
stub
();
const
changeEvent
=
document
.
createEvent
(
'
HTMLEvents
'
);
changeEvent
.
initEvent
(
'
change
'
,
true
,
true
);
$
(
'
input[type=checkbox]
'
).
attr
(
'
checked
'
,
true
)[
0
].
dispatchEvent
(
changeEvent
);
...
...
@@ -48,7 +50,7 @@ import IssuablesHelper from '~/helpers/issuables_helper';
describe
(
'
class constructor
'
,
()
=>
{
beforeEach
(()
=>
{
spyOn
(
jQuery
,
'
ajax
'
).
and
.
stub
();
spyOn
(
$
,
'
ajax
'
).
and
.
stub
();
});
it
(
'
calls .initCloseReopenReport
'
,
()
=>
{
...
...
spec/javascripts/merge_request_tabs_spec.js
View file @
f248be72
/* eslint-disable no-var, comma-dangle, object-shorthand */
import
$
from
'
jquery
'
;
import
MockAdapter
from
'
axios-mock-adapter
'
;
import
axios
from
'
~/lib/utils/axios_utils
'
;
import
*
as
urlUtils
from
'
~/lib/utils/url_utility
'
;
...
...
spec/javascripts/mini_pipeline_graph_dropdown_spec.js
View file @
f248be72
/* eslint-disable no-new */
import
$
from
'
jquery
'
;
import
MockAdapter
from
'
axios-mock-adapter
'
;
import
axios
from
'
~/lib/utils/axios_utils
'
;
import
MiniPipelineGraph
from
'
~/mini_pipeline_graph_dropdown
'
;
...
...
spec/javascripts/namespace_select_spec.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
NamespaceSelect
from
'
~/namespace_select
'
;
describe
(
'
NamespaceSelect
'
,
()
=>
{
...
...
spec/javascripts/new_branch_spec.js
View file @
f248be72
/* eslint-disable space-before-function-paren, one-var, no-var, one-var-declaration-per-line, no-return-assign, quotes, max-len */
import
$
from
'
jquery
'
;
import
NewBranchForm
from
'
~/new_branch_form
'
;
(
function
()
{
...
...
spec/javascripts/notes/components/comment_form_spec.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
Vue
from
'
vue
'
;
import
Autosize
from
'
autosize
'
;
import
store
from
'
~/notes/stores
'
;
...
...
spec/javascripts/notes/components/note_app_spec.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
_
from
'
underscore
'
;
import
Vue
from
'
vue
'
;
import
notesApp
from
'
~/notes/components/notes_app.vue
'
;
...
...
spec/javascripts/notes/components/noteable_note_spec.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
_
from
'
underscore
'
;
import
Vue
from
'
vue
'
;
import
store
from
'
~/notes/stores
'
;
...
...
spec/javascripts/notes_spec.js
View file @
f248be72
/* eslint-disable space-before-function-paren, no-unused-expressions, no-var, object-shorthand, comma-dangle, max-len */
import
$
from
'
jquery
'
;
import
_
from
'
underscore
'
;
import
MockAdapter
from
'
axios-mock-adapter
'
;
import
axios
from
'
~/lib/utils/axios_utils
'
;
...
...
spec/javascripts/oauth_remember_me_spec.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
OAuthRememberMe
from
'
~/pages/sessions/new/oauth_remember_me
'
;
describe
(
'
OAuthRememberMe
'
,
()
=>
{
...
...
spec/javascripts/pages/admin/abuse_reports/abuse_reports_spec.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
'
~/lib/utils/text_utility
'
;
import
AbuseReports
from
'
~/pages/admin/abuse_reports/abuse_reports
'
;
...
...
spec/javascripts/project_select_combo_button_spec.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
ProjectSelectComboButton
from
'
~/project_select_combo_button
'
;
const
fixturePath
=
'
static/project_select_combo_button.html.raw
'
;
...
...
spec/javascripts/projects/project_new_spec.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
projectNew
from
'
~/projects/project_new
'
;
describe
(
'
New Project
'
,
()
=>
{
...
...
spec/javascripts/right_sidebar_spec.js
View file @
f248be72
/* eslint-disable space-before-function-paren, no-var, one-var, one-var-declaration-per-line, new-parens, no-return-assign, new-cap, vars-on-top, max-len */
import
$
from
'
jquery
'
;
import
MockAdapter
from
'
axios-mock-adapter
'
;
import
'
~/commons/bootstrap
'
;
import
axios
from
'
~/lib/utils/axios_utils
'
;
...
...
spec/javascripts/search_autocomplete_spec.js
View file @
f248be72
/* eslint-disable space-before-function-paren, max-len, no-var, one-var, one-var-declaration-per-line, no-unused-expressions, consistent-return, no-param-reassign, default-case, no-return-assign, comma-dangle, object-shorthand, prefer-template, quotes, new-parens, vars-on-top, new-cap, max-len */
import
$
from
'
jquery
'
;
import
'
~/gl_dropdown
'
;
import
SearchAutocomplete
from
'
~/search_autocomplete
'
;
import
'
~/lib/utils/common_utils
'
;
...
...
spec/javascripts/search_spec.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
Api
from
'
~/api
'
;
import
Search
from
'
~/pages/search/show/search
'
;
...
...
spec/javascripts/shortcuts_issuable_spec.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
initCopyAsGFM
from
'
~/behaviors/copy_as_gfm
'
;
import
ShortcutsIssuable
from
'
~/shortcuts_issuable
'
;
...
...
spec/javascripts/shortcuts_spec.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
Shortcuts
from
'
~/shortcuts
'
;
describe
(
'
Shortcuts
'
,
()
=>
{
...
...
spec/javascripts/sidebar/sidebar_move_issue_spec.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
_
from
'
underscore
'
;
import
Vue
from
'
vue
'
;
import
SidebarMediator
from
'
~/sidebar/sidebar_mediator
'
;
...
...
spec/javascripts/smart_interval_spec.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
_
from
'
underscore
'
;
import
SmartInterval
from
'
~/smart_interval
'
;
...
...
spec/javascripts/syntax_highlight_spec.js
View file @
f248be72
/* eslint-disable space-before-function-paren, no-var, no-return-assign, quotes */
import
$
from
'
jquery
'
;
import
syntaxHighlight
from
'
~/syntax_highlight
'
;
describe
(
'
Syntax Highlighter
'
,
function
()
{
...
...
spec/javascripts/todos_spec.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
*
as
urlUtils
from
'
~/lib/utils/url_utility
'
;
import
Todos
from
'
~/pages/dashboard/todos/index/todos
'
;
import
'
~/lib/utils/common_utils
'
;
...
...
spec/javascripts/toggle_buttons_spec.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
setupToggleButtons
from
'
~/toggle_buttons
'
;
import
getSetTimeoutPromise
from
'
./helpers/set_timeout_promise_helper
'
;
...
...
spec/javascripts/u2f/authenticate_spec.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
U2FAuthenticate
from
'
~/u2f/authenticate
'
;
import
'
vendor/u2f
'
;
import
MockU2FDevice
from
'
./mock_u2f_device
'
;
...
...
spec/javascripts/u2f/register_spec.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
U2FRegister
from
'
~/u2f/register
'
;
import
'
vendor/u2f
'
;
import
MockU2FDevice
from
'
./mock_u2f_device
'
;
...
...
spec/javascripts/version_check_image_spec.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
VersionCheckImage
from
'
~/version_check_image
'
;
import
ClassSpecHelper
from
'
./helpers/class_spec_helper
'
;
...
...
spec/javascripts/vue_shared/components/gl_modal_spec.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
Vue
from
'
vue
'
;
import
GlModal
from
'
~/vue_shared/components/gl_modal.vue
'
;
import
mountComponent
from
'
spec/helpers/vue_mount_component_helper
'
;
...
...
spec/javascripts/vue_shared/components/markdown/field_spec.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
Vue
from
'
vue
'
;
import
fieldComponent
from
'
~/vue_shared/components/markdown/field.vue
'
;
...
...
spec/javascripts/vue_shared/components/modal_spec.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
Vue
from
'
vue
'
;
import
modal
from
'
~/vue_shared/components/modal.vue
'
;
import
mountComponent
from
'
spec/helpers/vue_mount_component_helper
'
;
...
...
spec/javascripts/vue_shared/directives/tooltip_spec.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
Vue
from
'
vue
'
;
import
tooltip
from
'
~/vue_shared/directives/tooltip
'
;
...
...
spec/javascripts/zen_mode_spec.js
View file @
f248be72
import
$
from
'
jquery
'
;
import
Mousetrap
from
'
mousetrap
'
;
import
Dropzone
from
'
dropzone
'
;
import
ZenMode
from
'
~/zen_mode
'
;
...
...
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