mirror of
https://github.com/kemko/nomad.git
synced 2026-01-04 09:25:46 +03:00
Update all the awkward browserify imports to plain ol' es6 imports
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { get, computed } from '@ember/object';
|
||||
import { assign } from '@ember/polyfills';
|
||||
import { inject as service } from '@ember/service';
|
||||
import queryString from 'npm:query-string';
|
||||
import queryString from 'query-string';
|
||||
import ApplicationAdapter from './application';
|
||||
import { AbortError } from 'ember-data/adapters/errors';
|
||||
|
||||
|
||||
@@ -3,8 +3,8 @@ import { computed, observer } from '@ember/object';
|
||||
import { run } from '@ember/runloop';
|
||||
import { assign } from '@ember/polyfills';
|
||||
import { guidFor, copy } from '@ember/object/internals';
|
||||
import d3 from 'npm:d3-selection';
|
||||
import 'npm:d3-transition';
|
||||
import d3 from 'd3-selection';
|
||||
import 'd3-transition';
|
||||
import WindowResizable from '../mixins/window-resizable';
|
||||
import styleStringProperty from '../utils/properties/style-string';
|
||||
|
||||
|
||||
@@ -2,11 +2,7 @@ import Component from '@ember/component';
|
||||
import { computed } from '@ember/object';
|
||||
import { run } from '@ember/runloop';
|
||||
import { copy } from '@ember/object/internals';
|
||||
import JSONFormatterPkg from 'npm:json-formatter-js';
|
||||
|
||||
// json-formatter-js is packaged in a funny way that ember-cli-browserify
|
||||
// doesn't unwrap properly.
|
||||
const { default: JSONFormatter } = JSONFormatterPkg;
|
||||
import JSONFormatter from 'json-formatter-js';
|
||||
|
||||
export default Component.extend({
|
||||
classNames: ['json-viewer'],
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import Mixin from '@ember/object/mixin';
|
||||
import { get, computed } from '@ember/object';
|
||||
import { reads } from '@ember/object/computed';
|
||||
import Fuse from 'npm:fuse.js';
|
||||
import Fuse from 'fuse.js';
|
||||
|
||||
/**
|
||||
Searchable mixin
|
||||
|
||||
@@ -4,7 +4,7 @@ import Model from 'ember-data/model';
|
||||
import attr from 'ember-data/attr';
|
||||
import { belongsTo } from 'ember-data/relationships';
|
||||
import { fragment, fragmentArray } from 'ember-data-model-fragments/attributes';
|
||||
import intersection from 'npm:lodash.intersection';
|
||||
import intersection from 'lodash.intersection';
|
||||
import shortUUIDProperty from '../utils/properties/short-uuid';
|
||||
import AllocationStats from '../utils/classes/allocation-stats';
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { get, computed } from '@ember/object';
|
||||
import attr from 'ember-data/attr';
|
||||
import Fragment from 'ember-data-model-fragments/fragment';
|
||||
import flat from 'npm:flat';
|
||||
import flat from 'flat';
|
||||
|
||||
const { unflatten } = flat;
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { assign } from '@ember/polyfills';
|
||||
import ApplicationSerializer from './application';
|
||||
import queryString from 'npm:query-string';
|
||||
import queryString from 'query-string';
|
||||
|
||||
export default ApplicationSerializer.extend({
|
||||
attrs: {
|
||||
|
||||
@@ -2,7 +2,7 @@ import { assert } from '@ember/debug';
|
||||
import Mixin from '@ember/object/mixin';
|
||||
import { computed } from '@ember/object';
|
||||
import { assign } from '@ember/polyfills';
|
||||
import queryString from 'npm:query-string';
|
||||
import queryString from 'query-string';
|
||||
|
||||
const MAX_OUTPUT_LENGTH = 50000;
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ import { assert } from '@ember/debug';
|
||||
import Evented from '@ember/object/evented';
|
||||
import EmberObject, { computed } from '@ember/object';
|
||||
import { assign } from '@ember/polyfills';
|
||||
import queryString from 'npm:query-string';
|
||||
import queryString from 'query-string';
|
||||
import { task } from 'ember-concurrency';
|
||||
import StreamLogger from 'nomad-ui/utils/classes/stream-logger';
|
||||
import PollLogger from 'nomad-ui/utils/classes/poll-logger';
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { find, findAll } from 'ember-native-dom-helpers';
|
||||
import { test, moduleForComponent } from 'ember-qunit';
|
||||
import hbs from 'htmlbars-inline-precompile';
|
||||
import flat from 'npm:flat';
|
||||
import flat from 'flat';
|
||||
|
||||
const { flatten } = flat;
|
||||
|
||||
@@ -59,9 +59,7 @@ test('should render the full path of key/value pair from the root of the object'
|
||||
assert.equal(deepRow.querySelector('[data-test-value]').textContent.trim(), 'properties');
|
||||
});
|
||||
|
||||
test('should render a row for key/value pairs even when the value is another object', function(
|
||||
assert
|
||||
) {
|
||||
test('should render a row for key/value pairs even when the value is another object', function(assert) {
|
||||
this.set('attributes', commonAttributes);
|
||||
this.render(hbs`{{attributes-table attributes=attributes}}`);
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import 'npm:core-js';
|
||||
import 'core-js';
|
||||
import resolver from './helpers/resolver';
|
||||
import { setResolver } from 'ember-qunit';
|
||||
import { start } from 'ember-cli-qunit';
|
||||
|
||||
Reference in New Issue
Block a user