Merge branch 'remove-jquery-globals' into 'master'
Require jQuery to be explicitly imported See merge request gitlab-org/gitlab-ce!17674
This commit is contained in:
commit
bd26e012fc
|
|
@ -1,5 +1,6 @@
|
|||
/* 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';
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
import $ from 'jquery';
|
||||
|
||||
export default class AjaxLoadingSpinner {
|
||||
static init() {
|
||||
const $elements = $('.js-ajax-loading-spinner');
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
import $ from 'jquery';
|
||||
import _ from 'underscore';
|
||||
import axios from './lib/utils/axios_utils';
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
/* eslint-disable class-methods-use-this */
|
||||
|
||||
import $ from 'jquery';
|
||||
import _ from 'underscore';
|
||||
import Cookies from 'js-cookie';
|
||||
import { __ } from './locale';
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
/* 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';
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
import $ from 'jquery';
|
||||
import Clipboard from 'clipboard';
|
||||
|
||||
function showTooltip(target, title) {
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
import $ from 'jquery';
|
||||
|
||||
$(() => {
|
||||
$('body').on('click', '.js-details-target', function target() {
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
import $ from 'jquery';
|
||||
import '../commons/bootstrap';
|
||||
import { isInIssuePage } from '../lib/utils/common_utils';
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
import $ from 'jquery';
|
||||
import _ from 'underscore';
|
||||
import '../commons/bootstrap';
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,6 @@
|
|||
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) {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
/* 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';
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
import $ from 'jquery';
|
||||
|
||||
const defaults = {
|
||||
// Buttons that will show the `suggestionSections`
|
||||
// has `data-fork-path`, and `data-action`
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
/* 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';
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
import $ from 'jquery';
|
||||
|
||||
export default class FileTemplateSelector {
|
||||
constructor(mediator) {
|
||||
this.mediator = mediator;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
/* 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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
import $ from 'jquery';
|
||||
import Flash from '../../flash';
|
||||
import { handleLocationHash } from '../../lib/utils/common_utils';
|
||||
import axios from '../../lib/utils/axios_utils';
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
/* 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';
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
/* global ace */
|
||||
|
||||
import $ from 'jquery';
|
||||
import axios from '~/lib/utils/axios_utils';
|
||||
import createFlash from '~/flash';
|
||||
import { __ } from '~/locale';
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
/* 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';
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
/* eslint-disable comma-dangle, space-before-function-paren, no-alert */
|
||||
|
||||
import $ from 'jquery';
|
||||
import Vue from 'vue';
|
||||
|
||||
window.gl = window.gl || {};
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
<script>
|
||||
import $ from 'jquery';
|
||||
import eventHub from '../eventhub';
|
||||
import ProjectSelect from './project_select.vue';
|
||||
import ListIssue from '../models/issue';
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
/* eslint-disable comma-dangle, space-before-function-paren, no-new */
|
||||
|
||||
import $ from 'jquery';
|
||||
import Vue from 'vue';
|
||||
import Flash from '../../flash';
|
||||
import { __ } from '../../locale';
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
import $ from 'jquery';
|
||||
import Vue from 'vue';
|
||||
import userAvatarLink from '../../vue_shared/components/user_avatar/user_avatar_link.vue';
|
||||
import eventHub from '../eventhub';
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
/* 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';
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
<script>
|
||||
/* global ListIssue */
|
||||
|
||||
import $ from 'jquery';
|
||||
import _ from 'underscore';
|
||||
import eventHub from '../eventhub';
|
||||
import loadingIcon from '../../vue_shared/components/loading_icon.vue';
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
/* eslint-disable one-var, quote-props, comma-dangle, space-before-function-paren */
|
||||
|
||||
import $ from 'jquery';
|
||||
import _ from 'underscore';
|
||||
import Vue from 'vue';
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
/* 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 || {};
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
/* 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';
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
import $ from 'jquery';
|
||||
|
||||
const MODAL_SELECTOR = '#modal-delete-branch';
|
||||
|
||||
class DeleteModal {
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
import $ from 'jquery';
|
||||
|
||||
export const addTooltipToEl = (el) => {
|
||||
const textEl = el.querySelector('.js-breadcrumb-item-text');
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
/* 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';
|
||||
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
/* 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();
|
||||
});
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
import $ from 'jquery';
|
||||
import VariableList from './ci_variable_list';
|
||||
|
||||
// Used for the variable list on scheduled pipeline edit page
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
/* 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'];
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
/* global Flash */
|
||||
|
||||
import $ from 'jquery';
|
||||
import axios from './lib/utils/axios_utils';
|
||||
import { n__, s__ } from './locale';
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
import $ from 'jquery';
|
||||
import { pluralize } from './lib/utils/text_utility';
|
||||
import { localTimeAgo } from './lib/utils/datetime_utility';
|
||||
import Pager from './pager';
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
/* 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';
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
/* 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';
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
/* 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() {
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
import $ from 'jquery';
|
||||
import Cookies from 'js-cookie';
|
||||
import _ from 'underscore';
|
||||
import bp from './breakpoints';
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
/* eslint-disable func-names, prefer-arrow-callback */
|
||||
|
||||
import $ from 'jquery';
|
||||
import Api from './api';
|
||||
import { humanize } from './lib/utils/text_utility';
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
import $ from 'jquery';
|
||||
import Vue from 'vue';
|
||||
import Cookies from 'js-cookie';
|
||||
import Flash from '../flash';
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
import $ from 'jquery';
|
||||
import axios from '~/lib/utils/axios_utils';
|
||||
import flash from '~/flash';
|
||||
import { __ } from '~/locale';
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
/* 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({
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
/* global CommentsStore */
|
||||
|
||||
import $ from 'jquery';
|
||||
import Vue from 'vue';
|
||||
import collapseIcon from '../icons/collapse_icon.svg';
|
||||
import Notes from '../../notes';
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
/* global DiscussionMixins */
|
||||
/* global CommentsStore */
|
||||
|
||||
import $ from 'jquery';
|
||||
import Vue from 'vue';
|
||||
|
||||
import '../mixins/discussion';
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
/* global CommentsStore */
|
||||
/* global ResolveService */
|
||||
|
||||
import $ from 'jquery';
|
||||
import Vue from 'vue';
|
||||
import Flash from '../../flash';
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
/* 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';
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
/* 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';
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
/* 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';
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
import $ from 'jquery';
|
||||
import Dropzone from 'dropzone';
|
||||
import _ from 'underscore';
|
||||
import './preview_markdown';
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
/* global dateFormat */
|
||||
|
||||
import $ from 'jquery';
|
||||
import Pikaday from 'pikaday';
|
||||
import axios from './lib/utils/axios_utils';
|
||||
import { parsePikadayDate, pikadayToString } from './lib/utils/datefix';
|
||||
|
|
|
|||
|
|
@ -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';
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
import $ from 'jquery';
|
||||
import Cookies from 'js-cookie';
|
||||
|
||||
export default () => {
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
import $ from 'jquery';
|
||||
import _ from 'underscore';
|
||||
import {
|
||||
getSelector,
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
import $ from 'jquery';
|
||||
import axios from '../lib/utils/axios_utils';
|
||||
import { __ } from '../locale';
|
||||
import Flash from '../flash';
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
import $ from 'jquery';
|
||||
import _ from 'underscore';
|
||||
import axios from './lib/utils/axios_utils';
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
import $ from 'jquery';
|
||||
import _ from 'underscore';
|
||||
import glRegexp from './lib/utils/regexp';
|
||||
import AjaxCache from './lib/utils/ajax_cache';
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
/* 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);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
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
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
import $ from 'jquery';
|
||||
import GlFieldError from './gl_field_error';
|
||||
|
||||
const customValidationFlag = 'gl-field-error-ignore';
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
import $ from 'jquery';
|
||||
import autosize from 'autosize';
|
||||
import GfmAutoComplete from './gfm_auto_complete';
|
||||
import dropzoneInput from './dropzone_input';
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
import $ from 'jquery';
|
||||
import { parseQueryStringIntoObject } from '~/lib/utils/common_utils';
|
||||
import axios from '~/lib/utils/axios_utils';
|
||||
import flash from '~/flash';
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
import $ from 'jquery';
|
||||
|
||||
export default class Group {
|
||||
constructor() {
|
||||
this.groupPath = $('#group_path');
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
import $ from 'jquery';
|
||||
|
||||
export default function groupAvatar() {
|
||||
$('.js-choose-group-avatar-button').on('click', function onClickGroupAvatar() {
|
||||
const form = $(this).closest('form');
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
import $ from 'jquery';
|
||||
import axios from './lib/utils/axios_utils';
|
||||
import flash from './flash';
|
||||
import { __ } from './locale';
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
<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';
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
import $ from 'jquery';
|
||||
import FilterableList from '~/filterable_list';
|
||||
import eventHub from './event_hub';
|
||||
import { normalizeHeaders, getParameterByName } from '../lib/utils/common_utils';
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
import $ from 'jquery';
|
||||
|
||||
export default class TransferDropdown {
|
||||
constructor() {
|
||||
this.groupDropdown = $('.js-groups-dropdown');
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
import $ from 'jquery';
|
||||
import axios from './lib/utils/axios_utils';
|
||||
import Api from './api';
|
||||
import { normalizeHeaders } from './lib/utils/common_utils';
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
import $ from 'jquery';
|
||||
import { highCountTrim } from '~/lib/utils/text_utility';
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -1,4 +1,7 @@
|
|||
// 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');
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
import $ from 'jquery';
|
||||
|
||||
export default () => {
|
||||
const modal = $('#modal_merge_info');
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
import $ from 'jquery';
|
||||
import imageDiffHelper from './helpers/index';
|
||||
import ImageBadge from './image_badge';
|
||||
import { isImageLoaded } from '../lib/utils/image_utility';
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
import $ from 'jquery';
|
||||
import _ from 'underscore';
|
||||
import { __, sprintf } from './locale';
|
||||
import axios from './lib/utils/axios_utils';
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
import $ from 'jquery';
|
||||
import stickyMonitor from './lib/utils/sticky';
|
||||
|
||||
export default (stickyTop) => {
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
import $ from 'jquery';
|
||||
import LabelManager from './label_manager';
|
||||
import GroupLabelSubscription from './group_label_subscription';
|
||||
import ProjectLabelSubscription from './project_label_subscription';
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
import $ from 'jquery';
|
||||
import axios from '../lib/utils/axios_utils';
|
||||
import flash from '../flash';
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
import $ from 'jquery';
|
||||
|
||||
let instanceCount = 0;
|
||||
|
||||
class AutoWidthDropdownSelect {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
/* 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';
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
/* 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';
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
import $ from 'jquery';
|
||||
import Cookies from 'js-cookie';
|
||||
import bp from './breakpoints';
|
||||
import UsersSelect from './users_select';
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
/* 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';
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
import $ from 'jquery';
|
||||
import axios from './lib/utils/axios_utils';
|
||||
import flash from './flash';
|
||||
import { __ } from './locale';
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
/* 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';
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
<script>
|
||||
import $ from 'jquery';
|
||||
import animateMixin from '../mixins/animate';
|
||||
import TaskList from '../../task_list';
|
||||
import recaptchaModalImplementor from '../../vue_shared/mixins/recaptcha_modal_implementor';
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
<script>
|
||||
import $ from 'jquery';
|
||||
import IssuableTemplateSelectors from '../../../templates/issuable_template_selectors';
|
||||
|
||||
export default {
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
import $ from 'jquery';
|
||||
|
||||
export default function issueStatusSelect() {
|
||||
$('.js-issue-status').each((i, el) => {
|
||||
const fieldName = $(el).data('fieldName');
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
import $ from 'jquery';
|
||||
import _ from 'underscore';
|
||||
import axios from './lib/utils/axios_utils';
|
||||
import { visitUrl } from './lib/utils/url_utility';
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
/* 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';
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
import $ from 'jquery';
|
||||
|
||||
export default class Labels {
|
||||
constructor() {
|
||||
this.setSuggestedColor = this.setSuggestedColor.bind(this);
|
||||
|
|
|
|||
|
|
@ -1,6 +1,8 @@
|
|||
/* 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';
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
import $ from 'jquery';
|
||||
import ContextualSidebar from './contextual_sidebar';
|
||||
import initFlyOutNav from './fly_out_nav';
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
import $ from 'jquery';
|
||||
|
||||
/**
|
||||
* Linked Tabs
|
||||
*
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
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;
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
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
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
import $ from 'jquery';
|
||||
import timeago from 'timeago.js';
|
||||
import dateFormat from 'vendor/date.format';
|
||||
import { pluralize } from './text_utility';
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
/* 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) {
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
/* 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.
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue