Skip to content

Commit 72b4108

Browse files
Switch to relative paths in most spots (#2413)
1 parent 809a143 commit 72b4108

File tree

101 files changed

+322
-141
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

101 files changed

+322
-141
lines changed

.prettierrc.mjs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,13 @@ const swachInternals = ['^swach/(.*)$', '^[./]'].join('|');
2525

2626
const importOrder = [
2727
testing,
28+
'',
2829
emberCore,
30+
'',
2931
emberAddons,
32+
'',
3033
'<THIRD_PARTY_MODULES>',
34+
'',
3135
swachInternals,
3236
];
3337
const importOrderParserPlugins = ['typescript', 'decorators-legacy'];

app/app.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
import Application from '@ember/application';
2+
23
import { init as emberInit } from '@sentry/ember';
34
import loadInitializers from 'ember-load-initializers';
45
import Resolver from 'ember-resolver';
6+
57
import {
68
importSync,
79
isDevelopingApp,
@@ -10,9 +12,13 @@ import {
1012
} from '@embroider/macros';
1113
import compatModules from '@embroider/virtual/compat-modules';
1214
import { init } from '@sentry/electron/renderer';
15+
1316
import config from 'swach/config/environment';
17+
1418
import './styles/all.css';
19+
1520
import setupInspector from '@embroider/legacy-inspector-support/ember-source-4.12';
21+
1622
import pkg from '../package.json';
1723

1824
if (macroCondition(isDevelopingApp())) {

app/authenticators/cognito.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { service } from '@ember/service';
2+
23
import CognitoAuthenticator from 'ember-cognito/authenticators/cognito';
34

45
export default class CognitoAuthenticatorExtended extends CognitoAuthenticator {

app/components/alpha-input.gts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@ import { hash } from '@ember/helper';
22
import { on } from '@ember/modifier';
33
import { action, set } from '@ember/object';
44
import Component from '@glimmer/component';
5+
56
// @ts-expect-error TODO: fix this
67
import OneWayInputMask from 'ember-inputmask/_app_/components/one-way-input-mask.js';
8+
9+
import { rgbaToHex } from '../data-models/color.ts';
710
import type { SelectedColorModel } from './rgb-input';
8-
import { rgbaToHex } from 'swach/data-models/color';
911

1012
interface AlphaInputSignature {
1113
Element: HTMLInputElement;

app/components/animated-drag-sort-list.gts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { action, set } from '@ember/object';
2+
23
import TransitionContext from 'ember-animated/-private/transition-context';
34
import AnimatedContainer from 'ember-animated/components/animated-container';
45
import AnimatedEach from 'ember-animated/components/animated-each';

app/components/color-picker.gts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,12 @@ import type Router from '@ember/routing/router-service';
77
import { service } from '@ember/service';
88
import Component from '@glimmer/component';
99
import { tracked } from '@glimmer/tracking';
10+
1011
import { orbit, type Store } from 'ember-orbit';
12+
1113
import { TinyColor } from '@ctrl/tinycolor';
1214
import iro from '@jaames/iro';
15+
1316
import { rgbaToHex } from '../data-models/color.ts';
1417
import type ColorModel from '../data-models/color.ts';
1518
import type NearestColor from '../services/nearest-color.ts';

app/components/color-row.gts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,16 @@ import type Router from '@ember/routing/router-service';
55
import { service } from '@ember/service';
66
import { isEmpty } from '@ember/utils';
77
import Component from '@glimmer/component';
8+
89
import stopPropagation from 'ember-event-helpers/helpers/stop-propagation';
910
import svgJar from 'ember-svg-jar/helpers/svg-jar';
11+
12+
import type ColorModel from '../data-models/color.ts';
13+
import type PaletteModel from '../data-models/palette.ts';
1014
import htmlSafe from '../helpers/html-safe.ts';
15+
import type ColorUtils from '../services/color-utils.ts';
1116
import OptionsMenu from './options-menu.gts';
1217
import type { SelectedColorModel } from './rgb-input';
13-
import type ColorModel from 'swach/data-models/color';
14-
import type PaletteModel from 'swach/data-models/palette';
15-
import type ColorUtils from 'swach/services/color-utils';
1618

1719
interface ColorRowSignature {
1820
Element: HTMLDivElement;

app/components/colors-list.gts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,22 @@
11
import { action } from '@ember/object';
22
import { service } from '@ember/service';
33
import Component from '@glimmer/component';
4+
45
import type TransitionContext from 'ember-animated/-private/transition-context';
56
import AnimatedContainer from 'ember-animated/components/animated-container';
67
import AnimatedEach from 'ember-animated/components/animated-each';
78
import { easeOut } from 'ember-animated/easings/cosine';
89
import move from 'ember-animated/motions/move';
910
import { fadeOut } from 'ember-animated/motions/opacity';
1011
import { orbit, type Store } from 'ember-orbit';
12+
1113
import type { RecordOperationTerm } from '@orbit/records';
14+
15+
import type ColorModel from '../data-models/color.ts';
16+
import type PaletteModel from '../data-models/palette.ts';
17+
import type UndoManager from '../services/undo-manager.ts';
1218
import ColorRow from './color-row.gts';
1319
import type { SelectedColorModel } from './rgb-input';
14-
import type ColorModel from 'swach/data-models/color';
15-
import type PaletteModel from 'swach/data-models/palette';
16-
import type UndoManager from 'swach/services/undo-manager';
1720

1821
interface ColorsListSignature {
1922
Args: {

app/components/contrast-checker.gts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,13 @@ import type Owner from '@ember/owner';
55
import didInsert from '@ember/render-modifiers/modifiers/did-insert';
66
import Component from '@glimmer/component';
77
import { tracked } from '@glimmer/tracking';
8+
89
import svgJar from 'ember-svg-jar/helpers/svg-jar';
10+
911
import { type IroColorValue } from '@irojs/iro-core';
1012
import iro from '@jaames/iro';
1113
import { hex, score } from 'wcag-contrast';
14+
1215
import htmlSafe from '../helpers/html-safe.ts';
1316

1417
interface ContrastCheckerSignature {

app/components/edit-selected-color.gts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@ import { fn } from '@ember/helper';
22
import { action, set, setProperties } from '@ember/object';
33
import { service } from '@ember/service';
44
import Component from '@glimmer/component';
5+
56
import type iro from '@jaames/iro';
7+
8+
import type PaletteModel from '../data-models/palette.ts';
9+
import type ColorUtils from '../services/color-utils.ts';
610
import AlphaInput from './alpha-input.gts';
711
import HexInput from './hex-input.gts';
812
import RgbInput from './rgb-input.gts';
@@ -11,8 +15,6 @@ import type {
1115
PublicRGBAHex,
1216
SelectedColorModel,
1317
} from './rgb-input.gts';
14-
import type PaletteModel from 'swach/data-models/palette';
15-
import type ColorUtils from 'swach/services/color-utils';
1618

1719
interface EditSelectedColorSignature {
1820
Element: HTMLDivElement;

0 commit comments

Comments
 (0)