ui: Delete the Promise rsvp imports from codebase (#7372)

This commit is contained in:
Kenia 2020-03-03 09:45:40 -05:00 committed by John Cowen
parent 9063cf8ecf
commit a9898fcf58
17 changed files with 1 additions and 17 deletions

View File

@ -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';

View File

@ -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';

View File

@ -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';

View File

@ -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';

View File

@ -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({

View File

@ -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';

View File

@ -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';

View File

@ -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';

View File

@ -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';

View File

@ -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';

View File

@ -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);

View File

@ -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);

View File

@ -1,5 +1,4 @@
import { get } from '@ember/object';
import { Promise } from 'rsvp';
const pause = 2000;
// native EventSource retry is ~3s wait

View File

@ -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';

View File

@ -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) {

View File

@ -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';

View File

@ -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';