ui: Delete the Promise rsvp imports from codebase (#7372)
This commit is contained in:
parent
9063cf8ecf
commit
a9898fcf58
|
@ -2,7 +2,6 @@ import Component from '@ember/component';
|
|||
import { get, set, computed } from '@ember/object';
|
||||
import { alias } from '@ember/object/computed';
|
||||
import { inject as service } from '@ember/service';
|
||||
import { Promise } from 'rsvp';
|
||||
|
||||
import SlotsMixin from 'block-slots';
|
||||
import WithListeners from 'consul-ui/mixins/with-listeners';
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
import Component from '@ember/component';
|
||||
import { set } from '@ember/object';
|
||||
import { inject as service } from '@ember/service';
|
||||
import { Promise } from 'rsvp';
|
||||
|
||||
import SlotsMixin from 'block-slots';
|
||||
const STATE_READY = 'ready';
|
||||
|
|
|
@ -2,7 +2,6 @@ import Route from '@ember/routing/route';
|
|||
import { inject as service } from '@ember/service';
|
||||
import { hash } from 'rsvp';
|
||||
import { next } from '@ember/runloop';
|
||||
import { Promise } from 'rsvp';
|
||||
|
||||
import WithBlockingActions from 'consul-ui/mixins/with-blocking-actions';
|
||||
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
/*global $*/
|
||||
import Service, { inject as service } from '@ember/service';
|
||||
import { get, set } from '@ember/object';
|
||||
import { Promise } from 'rsvp';
|
||||
|
||||
import { env } from 'consul-ui/env';
|
||||
import getObjectPool from 'consul-ui/utils/get-object-pool';
|
||||
|
|
|
@ -2,7 +2,6 @@ import RepositoryService from 'consul-ui/services/repository';
|
|||
import { inject as service } from '@ember/service';
|
||||
import { get } from '@ember/object';
|
||||
import Error from '@ember/error';
|
||||
import { Promise } from 'rsvp';
|
||||
|
||||
const modelName = 'dc';
|
||||
export default RepositoryService.extend({
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
import RepositoryService from 'consul-ui/services/repository';
|
||||
import { Promise } from 'rsvp';
|
||||
import isFolder from 'consul-ui/utils/isFolder';
|
||||
import { get } from '@ember/object';
|
||||
import { PRIMARY_KEY } from 'consul-ui/models/kv';
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
import RepositoryService from 'consul-ui/services/repository';
|
||||
import { Promise } from 'rsvp';
|
||||
import { PRIMARY_KEY, SLUG_KEY } from 'consul-ui/models/nspace';
|
||||
|
||||
const modelName = 'nspace';
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
import RepositoryService from 'consul-ui/services/repository';
|
||||
import { get } from '@ember/object';
|
||||
import { Promise } from 'rsvp';
|
||||
import statusFactory from 'consul-ui/utils/acls-status';
|
||||
import isValidServerErrorFactory from 'consul-ui/utils/http/acl/is-valid-server-error';
|
||||
import { PRIMARY_KEY, SLUG_KEY } from 'consul-ui/models/policy';
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
import RepositoryService from 'consul-ui/services/repository';
|
||||
import { Promise } from 'rsvp';
|
||||
import statusFactory from 'consul-ui/utils/acls-status';
|
||||
import isValidServerErrorFactory from 'consul-ui/utils/http/acl/is-valid-server-error';
|
||||
import { PRIMARY_KEY, SLUG_KEY } from 'consul-ui/models/role';
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
import RepositoryService from 'consul-ui/services/repository';
|
||||
import { get } from '@ember/object';
|
||||
import { Promise } from 'rsvp';
|
||||
import { PRIMARY_KEY, SLUG_KEY } from 'consul-ui/models/token';
|
||||
import statusFactory from 'consul-ui/utils/acls-status';
|
||||
import isValidServerErrorFactory from 'consul-ui/utils/http/acl/is-valid-server-error';
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
import Service from '@ember/service';
|
||||
import { Promise } from 'rsvp';
|
||||
import getStorage from 'consul-ui/utils/storage/local-storage';
|
||||
const SCHEME = 'consul';
|
||||
const storage = getStorage(SCHEME);
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
import Service from '@ember/service';
|
||||
import promisedTimeoutFactory from 'consul-ui/utils/promisedTimeout';
|
||||
import { Promise } from 'rsvp';
|
||||
import { next } from '@ember/runloop';
|
||||
|
||||
const promisedTimeout = promisedTimeoutFactory(Promise);
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
import { get } from '@ember/object';
|
||||
import { Promise } from 'rsvp';
|
||||
|
||||
const pause = 2000;
|
||||
// native EventSource retry is ~3s wait
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
import ObjectProxy from '@ember/object/proxy';
|
||||
import ArrayProxy from '@ember/array/proxy';
|
||||
import { Promise } from 'rsvp';
|
||||
|
||||
import createListeners from 'consul-ui/utils/dom/create-listeners';
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import RSVP, { Promise } from 'rsvp';
|
||||
import RSVP from 'rsvp';
|
||||
export default function(EventTarget = RSVP.EventTarget, P = Promise) {
|
||||
// TODO: Class-ify
|
||||
return function(filter) {
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
import { skip, test } from 'qunit';
|
||||
import { setupApplicationTest } from 'ember-qunit';
|
||||
import { Promise } from 'rsvp';
|
||||
import Yadda from 'yadda';
|
||||
|
||||
import { env } from '../../env';
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
import domEventSourceCallable from 'consul-ui/utils/dom/event-source/callable';
|
||||
import EventTarget from 'consul-ui/utils/dom/event-target/rsvp';
|
||||
import { Promise } from 'rsvp';
|
||||
|
||||
import { module, skip } from 'qunit';
|
||||
import { setupTest } from 'ember-qunit';
|
||||
|
|
Loading…
Reference in New Issue