Skip to content
Snippets Groups Projects
Verified Commit 6bb44420 authored by Phil Hughes's avatar Phil Hughes
Browse files

updated imports

parent a5d2732c
No related branches found
No related tags found
No related merge requests found
Showing
with 29 additions and 29 deletions
import * as urlUtils from '../lib/utils/url_utility';
import { visitUrl } from '../lib/utils/url_utility';
import Flash from '../flash';
import FilteredSearchContainer from './container';
import RecentSearchesRoot from './recent_searches_root';
Loading
Loading
@@ -567,7 +567,7 @@ class FilteredSearchManager {
if (this.updateObject) {
this.updateObject(parameterizedUrl);
} else {
urlUtils.visitUrl(parameterizedUrl);
visitUrl(parameterizedUrl);
}
}
 
Loading
Loading
Loading
Loading
@@ -2,7 +2,7 @@
/* global fuzzaldrinPlus */
import _ from 'underscore';
import fuzzaldrinPlus from 'fuzzaldrin-plus';
import * as urlUtils from './lib/utils/url_utility';
import { visitUrl } from './lib/utils/url_utility';
import { isObject } from './lib/utils/type_utility';
 
var GitLabDropdown, GitLabDropdownFilter, GitLabDropdownRemote, GitLabDropdownInput;
Loading
Loading
@@ -853,7 +853,7 @@ GitLabDropdown = (function() {
if ($el.length) {
var href = $el.attr('href');
if (href && href !== '#') {
urlUtils.visitUrl(href);
visitUrl(href);
} else {
$el.trigger('click');
}
Loading
Loading
Loading
Loading
@@ -5,7 +5,7 @@ import eventHub from '../event_hub';
import { getParameterByName } from '../../lib/utils/common_utils';
import loadingIcon from '../../vue_shared/components/loading_icon.vue';
import { COMMON_STR } from '../constants';
import * as utils from '../../lib/utils/url_utility';
import { mergeUrlParams } from '../../lib/utils/url_utility';
import groupsComponent from './groups.vue';
 
export default {
Loading
Loading
@@ -93,7 +93,7 @@ export default {
this.isLoading = false;
$.scrollTo(0);
 
const currentPath = utils.mergeUrlParams({ page }, window.location.href);
const currentPath = mergeUrlParams({ page }, window.location.href);
window.history.replaceState({
page: currentPath,
}, document.title, currentPath);
Loading
Loading
<script>
import * as urlUtils from '../../lib/utils/url_utility';
import { visitUrl } from '../../lib/utils/url_utility';
import tooltip from '../../vue_shared/directives/tooltip';
import identicon from '../../vue_shared/components/identicon.vue';
import eventHub from '../event_hub';
Loading
Loading
@@ -61,7 +61,7 @@ export default {
if (this.hasChildren) {
eventHub.$emit('toggleChildren', this.group);
} else {
urlUtils.visitUrl(this.group.relativePath);
visitUrl(this.group.relativePath);
}
}
},
Loading
Loading
<script>
import Visibility from 'visibilityjs';
import * as urlUtils from '../../lib/utils/url_utility';
import { visitUrl } from '../../lib/utils/url_utility';
import Poll from '../../lib/utils/poll';
import eventHub from '../event_hub';
import Service from '../services/index';
Loading
Loading
@@ -177,7 +177,7 @@ export default {
.then(data => this.checkForSpam(data))
.then((data) => {
if (location.pathname !== data.web_url) {
urlUtils.visitUrl(data.web_url);
visitUrl(data.web_url);
}
 
return this.service.getData();
Loading
Loading
@@ -212,7 +212,7 @@ export default {
// Stop the poll so we don't get 404's with the issuable not existing
this.poll.stop();
 
urlUtils.visitUrl(data.web_url);
visitUrl(data.web_url);
})
.catch(() => {
eventHub.$emit('close.form');
Loading
Loading
import _ from 'underscore';
import * as urlUtils from './lib/utils/url_utility';
import { visitUrl } from './lib/utils/url_utility';
import bp from './breakpoints';
import { bytesToKiB } from './lib/utils/number_utils';
import { setCiStatusFavicon } from './lib/utils/common_utils';
Loading
Loading
@@ -210,7 +210,7 @@ export default class Job {
}
 
if (log.status !== this.buildStatus) {
urlUtils.visitUrl(this.pagePath);
visitUrl(this.pagePath);
}
})
.fail(() => {
Loading
Loading
Loading
Loading
@@ -11,7 +11,7 @@ import {
handleLocationHash,
isMetaClick,
} from './lib/utils/common_utils';
import * as urlUtils from './lib/utils/url_utility';
import { getLocationHash } from './lib/utils/url_utility';
import initDiscussionTab from './image_diff/init_discussion_tab';
import Diff from './diff';
 
Loading
Loading
@@ -318,7 +318,7 @@ import Diff from './diff';
 
// Scroll any linked note into view
// Similar to `toggler_behavior` in the discussion tab
const hash = urlUtils.getLocationHash();
const hash = getLocationHash();
const anchor = hash && $container.find(`.note[id="${hash}"]`);
if (anchor && anchor.length > 0) {
const notesContent = anchor.closest('.notes_content');
Loading
Loading
Loading
Loading
@@ -16,7 +16,7 @@ import Autosize from 'autosize';
import 'vendor/jquery.caret'; // required by jquery.atwho
import 'vendor/jquery.atwho';
import AjaxCache from '~/lib/utils/ajax_cache';
import * as urlUtils from './lib/utils/url_utility';
import { getLocationHash } from './lib/utils/url_utility';
import Flash from './flash';
import CommentTypeToggle from './comment_type_toggle';
import GLForm from './gl_form';
Loading
Loading
@@ -331,7 +331,7 @@ export default class Notes {
}
 
static updateNoteTargetSelector($note) {
const hash = urlUtils.getLocationHash();
const hash = getLocationHash();
// Needs to be an explicit true/false for the jQuery `toggleClass(force)`
const addTargetClass = Boolean(hash && $note.filter(`#${hash}`).length > 0);
$note.toggleClass('target', addTargetClass);
Loading
Loading
import { getParameterByName } from '~/lib/utils/common_utils';
import * as utils from './lib/utils/url_utility';
import { removeParams } from './lib/utils/url_utility';
 
(() => {
const ENDLESS_SCROLL_BOTTOM_PX = 400;
Loading
Loading
@@ -7,7 +7,7 @@ import * as utils from './lib/utils/url_utility';
 
const Pager = {
init(limit = 0, preload = false, disable = false, prepareData = $.noop, callback = $.noop) {
this.url = $('.content_list').data('href') || utils.removeParams(['limit', 'offset']);
this.url = $('.content_list').data('href') || removeParams(['limit', 'offset']);
this.limit = limit;
this.offset = parseInt(getParameterByName('offset'), 10) || this.limit;
this.disable = disable;
Loading
Loading
import Vue from 'vue';
import * as urlUtils from '../../lib/utils/url_utility';
import { visitUrl } from '../../lib/utils/url_utility';
import flash from '../../flash';
import service from '../services';
import * as types from './mutation_types';
 
export const redirectToUrl = (_, url) => urlUtils.visitUrl(url);
export const redirectToUrl = (_, url) => visitUrl(url);
 
export const setInitialData = ({ commit }, data) => commit(types.SET_INITIAL_DATA, data);
 
Loading
Loading
import * as urlUtils from '../../../lib/utils/url_utility';
import { visitUrl } from '../../../lib/utils/url_utility';
import { normalizeHeaders } from '../../../lib/utils/common_utils';
import flash from '../../../flash';
import service from '../../services';
Loading
Loading
@@ -74,7 +74,7 @@ export const clickedTreeRow = ({ commit, dispatch }, row) => {
} else if (row.type === 'submodule') {
commit(types.TOGGLE_LOADING, row);
 
urlUtils.visitUrl(row.url);
visitUrl(row.url);
} else if (row.type === 'blob' && row.opened) {
dispatch('setFileActive', row);
} else {
Loading
Loading
import * as urlUtils from '../lib/utils/url_utility';
import { visitUrl } from '../lib/utils/url_utility';
import Flash from '../flash';
import Service from './services/sidebar_service';
import Store from './stores/sidebar_store';
Loading
Loading
@@ -82,7 +82,7 @@ export default class SidebarMediator {
.then(response => response.json())
.then((data) => {
if (location.pathname !== data.web_url) {
urlUtils.visitUrl(data.web_url);
visitUrl(data.web_url);
}
});
}
Loading
Loading
/* eslint-disable class-methods-use-this, no-unneeded-ternary, quote-props */
import * as urlUtils from './lib/utils/url_utility';
import { visitUrl } from './lib/utils/url_utility';
import UsersSelect from './users_select';
import { isMetaClick } from './lib/utils/common_utils';
 
Loading
Loading
@@ -150,7 +150,7 @@ export default class Todos {
 
window.open(todoLink, windowTarget);
} else {
urlUtils.visitUrl(todoLink);
visitUrl(todoLink);
}
}
}
import '~/lib/utils/datetime_utility';
import * as urlUtils from '../../lib/utils/url_utility';
import { visitUrl } from '../../lib/utils/url_utility';
import Flash from '../../flash';
import MemoryUsage from './mr_widget_memory_usage';
import StatusIcon from './mr_widget_status_icon';
Loading
Loading
@@ -37,7 +37,7 @@ export default {
.then(res => res.json())
.then((res) => {
if (res.redirect_url) {
urlUtils.visitUrl(res.redirect_url);
visitUrl(res.redirect_url);
}
})
.catch(() => {
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment