Skip to content

Commit

Permalink
Remove ember-fetch dep
Browse files Browse the repository at this point in the history
  • Loading branch information
philrenaud committed Sep 27, 2024
1 parent ec42aa2 commit 06cf4c7
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 182 deletions.
1 change: 0 additions & 1 deletion ui/app/services/token.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import { getOwner } from '@ember/application';
import { assign } from '@ember/polyfills';
import { task, timeout } from 'ember-concurrency';
import queryString from 'query-string';
import fetch from 'nomad-ui/utils/fetch';
import classic from 'ember-classic-decorator';
import moment from 'moment';

Expand Down
1 change: 0 additions & 1 deletion ui/app/utils/properties/watch.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import { get } from '@ember/object';
import { assert } from '@ember/debug';
import RSVP from 'rsvp';
import { task } from 'ember-concurrency';
import { AbortController } from 'fetch';
import wait from 'nomad-ui/utils/wait';
import Watchable from 'nomad-ui/adapters/watchable';
import config from 'nomad-ui/config/environment';
Expand Down
1 change: 0 additions & 1 deletion ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@
"ember-decorators": "^6.1.1",
"ember-exam": "6.1.0",
"ember-export-application-global": "^2.0.1",
"ember-fetch": "^8.1.1",
"ember-inflector": "^4.0.2",
"ember-inline-svg": "^1.0.1",
"ember-load-initializers": "^2.1.2",
Expand Down
1 change: 0 additions & 1 deletion ui/tests/integration/components/streaming-file-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import hbs from 'htmlbars-inline-precompile';
import { componentA11yAudit } from 'nomad-ui/tests/helpers/a11y-audit';
import Pretender from 'pretender';
import { logEncode } from '../../../mirage/data/logs';
import fetch from 'nomad-ui/utils/fetch';
import Log from 'nomad-ui/utils/classes/log';

const { assign } = Object;
Expand Down
1 change: 0 additions & 1 deletion ui/tests/unit/adapters/job-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import { settled } from '@ember/test-helpers';
import { setupTest } from 'ember-qunit';
import { module, test } from 'qunit';
import { startMirage } from 'nomad-ui/initializers/ember-cli-mirage';
import { AbortController } from 'fetch';
import { TextEncoderLite } from 'text-encoder-lite';
import base64js from 'base64-js';
import addToPath from 'nomad-ui/utils/add-to-path';
Expand Down
1 change: 0 additions & 1 deletion ui/tests/unit/adapters/volume-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import { settled } from '@ember/test-helpers';
import { setupTest } from 'ember-qunit';
import { module, test } from 'qunit';
import { startMirage } from 'nomad-ui/initializers/ember-cli-mirage';
import { AbortController } from 'fetch';

module('Unit | Adapter | Volume', function (hooks) {
setupTest(hooks);
Expand Down
1 change: 0 additions & 1 deletion ui/tests/unit/services/stats-trackers-registry-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import { setupTest } from 'ember-qunit';
import { settled } from '@ember/test-helpers';
import Pretender from 'pretender';
import sinon from 'sinon';
import fetch from 'nomad-ui/utils/fetch';
import NodeStatsTracker from 'nomad-ui/utils/classes/node-stats-tracker';

module('Unit | Service | Stats Trackers Registry', function (hooks) {
Expand Down
1 change: 0 additions & 1 deletion ui/tests/unit/utils/allocation-stats-tracker-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import Pretender from 'pretender';
import AllocationStatsTracker, {
stats,
} from 'nomad-ui/utils/classes/allocation-stats-tracker';
import fetch from 'nomad-ui/utils/fetch';
import statsTrackerFrameMissingBehavior from './behaviors/stats-tracker-frame-missing';

import { settled } from '@ember/test-helpers';
Expand Down
1 change: 0 additions & 1 deletion ui/tests/unit/utils/node-stats-tracker-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import Pretender from 'pretender';
import NodeStatsTracker, {
stats,
} from 'nomad-ui/utils/classes/node-stats-tracker';
import fetch from 'nomad-ui/utils/fetch';
import statsTrackerFrameMissingBehavior from './behaviors/stats-tracker-frame-missing';

import { settled } from '@ember/test-helpers';
Expand Down
184 changes: 11 additions & 173 deletions ui/yarn.lock

Large diffs are not rendered by default.

0 comments on commit 06cf4c7

Please sign in to comment.