Skip to content

Commit 7348828

Browse files
Run prettier on everything
1 parent 30ccae1 commit 7348828

23 files changed

Lines changed: 92 additions & 83 deletions

CHANGELOG.md

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
## v1.2.15 (2024-01-10)
32

43
## v1.2.14 (2024-01-10)
@@ -32,26 +31,29 @@
3231
## v1.2.0 (2024-01-07)
3332

3433
#### :bug: Bug Fix
35-
* [#1948](https://github.com/shipshapecode/swach/pull/1948) Update ember-animated, fix menu not working on contrast checker screen ([@RobbieTheWagner](https://github.com/RobbieTheWagner))
34+
35+
- [#1948](https://github.com/shipshapecode/swach/pull/1948) Update ember-animated, fix menu not working on contrast checker screen ([@RobbieTheWagner](https://github.com/RobbieTheWagner))
3636

3737
#### :house: Internal
38-
* [#1949](https://github.com/shipshapecode/swach/pull/1949) Update release-it ([@RobbieTheWagner](https://github.com/RobbieTheWagner))
39-
* [#1946](https://github.com/shipshapecode/swach/pull/1946) Add gts support ([@RobbieTheWagner](https://github.com/RobbieTheWagner))
40-
* [#1918](https://github.com/shipshapecode/swach/pull/1918) ember-cli 5.2.0 ([@RobbieTheWagner](https://github.com/RobbieTheWagner))
41-
* [#1945](https://github.com/shipshapecode/swach/pull/1945) Update linting deps, fix lint ([@RobbieTheWagner](https://github.com/RobbieTheWagner))
42-
* [#1944](https://github.com/shipshapecode/swach/pull/1944) Node 18 ([@RobbieTheWagner](https://github.com/RobbieTheWagner))
43-
* [#1732](https://github.com/shipshapecode/swach/pull/1732) Ember 5 ([@RobbieTheWagner](https://github.com/RobbieTheWagner))
44-
* [#1646](https://github.com/shipshapecode/swach/pull/1646) ember-cli 5 beta, switch from yarn to pnpm ([@RobbieTheWagner](https://github.com/RobbieTheWagner))
45-
* [#1644](https://github.com/shipshapecode/swach/pull/1644) Ember 4.12 ([@RobbieTheWagner](https://github.com/RobbieTheWagner))
46-
* [#1634](https://github.com/shipshapecode/swach/pull/1634) Run on ubuntu-latest ([@RobbieTheWagner](https://github.com/RobbieTheWagner))
47-
* [#1540](https://github.com/shipshapecode/swach/pull/1540) More glint updates ([@RobbieTheWagner](https://github.com/RobbieTheWagner))
48-
* [#1536](https://github.com/shipshapecode/swach/pull/1536) ember-cli 4.10 ([@RobbieTheWagner](https://github.com/RobbieTheWagner))
49-
* [#1504](https://github.com/shipshapecode/swach/pull/1504) Update electron deps ([@RobbieTheWagner](https://github.com/RobbieTheWagner))
50-
* [#1405](https://github.com/shipshapecode/swach/pull/1405) Embroider 2.x ([@RobbieTheWagner](https://github.com/RobbieTheWagner))
51-
* [#1360](https://github.com/shipshapecode/swach/pull/1360) Pin embroider to 1.8.3 ([@RobbieTheWagner](https://github.com/RobbieTheWagner))
52-
* [#1329](https://github.com/shipshapecode/swach/pull/1329) Electron 21 ([@RobbieTheWagner](https://github.com/RobbieTheWagner))
38+
39+
- [#1949](https://github.com/shipshapecode/swach/pull/1949) Update release-it ([@RobbieTheWagner](https://github.com/RobbieTheWagner))
40+
- [#1946](https://github.com/shipshapecode/swach/pull/1946) Add gts support ([@RobbieTheWagner](https://github.com/RobbieTheWagner))
41+
- [#1918](https://github.com/shipshapecode/swach/pull/1918) ember-cli 5.2.0 ([@RobbieTheWagner](https://github.com/RobbieTheWagner))
42+
- [#1945](https://github.com/shipshapecode/swach/pull/1945) Update linting deps, fix lint ([@RobbieTheWagner](https://github.com/RobbieTheWagner))
43+
- [#1944](https://github.com/shipshapecode/swach/pull/1944) Node 18 ([@RobbieTheWagner](https://github.com/RobbieTheWagner))
44+
- [#1732](https://github.com/shipshapecode/swach/pull/1732) Ember 5 ([@RobbieTheWagner](https://github.com/RobbieTheWagner))
45+
- [#1646](https://github.com/shipshapecode/swach/pull/1646) ember-cli 5 beta, switch from yarn to pnpm ([@RobbieTheWagner](https://github.com/RobbieTheWagner))
46+
- [#1644](https://github.com/shipshapecode/swach/pull/1644) Ember 4.12 ([@RobbieTheWagner](https://github.com/RobbieTheWagner))
47+
- [#1634](https://github.com/shipshapecode/swach/pull/1634) Run on ubuntu-latest ([@RobbieTheWagner](https://github.com/RobbieTheWagner))
48+
- [#1540](https://github.com/shipshapecode/swach/pull/1540) More glint updates ([@RobbieTheWagner](https://github.com/RobbieTheWagner))
49+
- [#1536](https://github.com/shipshapecode/swach/pull/1536) ember-cli 4.10 ([@RobbieTheWagner](https://github.com/RobbieTheWagner))
50+
- [#1504](https://github.com/shipshapecode/swach/pull/1504) Update electron deps ([@RobbieTheWagner](https://github.com/RobbieTheWagner))
51+
- [#1405](https://github.com/shipshapecode/swach/pull/1405) Embroider 2.x ([@RobbieTheWagner](https://github.com/RobbieTheWagner))
52+
- [#1360](https://github.com/shipshapecode/swach/pull/1360) Pin embroider to 1.8.3 ([@RobbieTheWagner](https://github.com/RobbieTheWagner))
53+
- [#1329](https://github.com/shipshapecode/swach/pull/1329) Electron 21 ([@RobbieTheWagner](https://github.com/RobbieTheWagner))
5354

5455
#### Committers: 1
56+
5557
- Robbie Wagner ([@RobbieTheWagner](https://github.com/RobbieTheWagner))
5658

5759
## v1.1.13 (2022-08-02)

app/app.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@ import { InitSentryForEmber } from '@sentry/ember';
44
import loadInitializers from 'ember-load-initializers';
55
import Resolver from 'ember-resolver';
66

7-
import config from 'swach/config/environment';
87
import { importSync, isDevelopingApp, macroCondition } from '@embroider/macros';
98

9+
import config from 'swach/config/environment';
10+
1011
if (macroCondition(isDevelopingApp())) {
1112
importSync('./deprecation-workflow');
1213
}

app/components/colors-list.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export default class ColorsListComponent extends Component<ColorsListSignature>
7474
}
7575

7676
@action
77-
async deleteColor(color: ColorModel){
77+
async deleteColor(color: ColorModel) {
7878
const { palette } = this.args;
7979

8080
if (color && palette && !palette.isLocked) {

app/components/contrast-checker.hbs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@
1212
)
1313
}}
1414
>
15-
<div class="flex justify-center p-4 pb-2 w-full" style={{html-safe "-webkit-app-region: no-drag"}}>
15+
<div
16+
class="flex justify-center p-4 pb-2 w-full"
17+
style={{html-safe "-webkit-app-region: no-drag"}}
18+
>
1619
<div class="flex items-center w-full">
1720
<h1 class="font-black text-4xl" data-test-wcag-string>
1821
{{this.wcagString}}

app/components/login.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export default class LoginComponent extends Component {
3838

3939
this.router.transitionTo('settings.cloud');
4040
} catch (error: unknown) {
41-
this.errorMessage = (error as Error).message || error as string;
41+
this.errorMessage = (error as Error).message || (error as string);
4242
} finally {
4343
this.loading = false;
4444
}

app/components/settings-data.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export default class SettingsData extends Component {
5353
(err: Event | null, jsonString: string) => {
5454
if (err) {
5555
this.flashMessages.danger('An error occurred.');
56-
56+
5757
console.error(err);
5858
} else {
5959
this.ipcRenderer.send('exportData', jsonString);
@@ -68,7 +68,7 @@ export default class SettingsData extends Component {
6868
);
6969
};
7070
}
71-
}
71+
};
7272

7373
importIndexedDB = async () => {
7474
if (this.ipcRenderer) {
@@ -128,7 +128,7 @@ export default class SettingsData extends Component {
128128
}
129129
});
130130
}
131-
}
131+
};
132132
}
133133

134134
declare module '@glint/environment-ember-loose/registry' {

app/components/toggle-switch.gts

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -7,69 +7,69 @@ interface ToggleSwitchSignature {
77
}
88

99
export const ToggleSwitch: TOC<ToggleSwitchSignature> = <template>
10-
<div class='flex items-center'>
11-
<span class='mr-3'>
12-
<span class='text-sm font-medium text-main-text'>
10+
<div class="flex items-center">
11+
<span class="mr-3">
12+
<span class="text-sm font-medium text-main-text">
1313
Off
1414
</span>
1515
</span>
1616

1717
<button
18-
aria-pressed='{{@checked}}'
19-
class='relative inline-flex shrink-0 h-8 w-16 border-2 border-transparent rounded-full transition-colors ease-in-out duration-200 focus:outline-none
20-
{{if @checked "bg-green-400" "bg-gray-200"}}'
21-
type='button'
22-
{{on 'click' @onClick}}
18+
aria-pressed="{{@checked}}"
19+
class="relative inline-flex shrink-0 h-8 w-16 border-2 border-transparent rounded-full transition-colors ease-in-out duration-200 focus:outline-none
20+
{{if @checked 'bg-green-400' 'bg-gray-200'}}"
21+
type="button"
22+
{{on "click" @onClick}}
2323
...attributes
2424
>
2525
<span
26-
class='translate-x-0 relative inline-block h-7 w-7 rounded-full bg-white shadow ring-0 transition ease-in-out duration-200
27-
{{if @checked "translate-x-8" "translate-x-0"}}'
26+
class="translate-x-0 relative inline-block h-7 w-7 rounded-full bg-white shadow ring-0 transition ease-in-out duration-200
27+
{{if @checked 'translate-x-8' 'translate-x-0'}}"
2828
>
2929
<span
30-
class='absolute inset-0 h-full w-full flex items-center justify-center transition-opacity
30+
class="absolute inset-0 h-full w-full flex items-center justify-center transition-opacity
3131
{{if
3232
@checked
33-
"opacity-0 ease-out duration-100"
34-
"opacity-100 ease-in duration-200"
35-
}}'
36-
aria-hidden='true'
33+
'opacity-0 ease-out duration-100'
34+
'opacity-100 ease-in duration-200'
35+
}}"
36+
aria-hidden="true"
3737
>
38-
<svg class='h-3 w-3 text-gray-400' fill='none' viewBox='0 0 12 12'>
38+
<svg class="h-3 w-3 text-gray-400" fill="none" viewBox="0 0 12 12">
3939
<path
40-
d='M4 8l2-2m0 0l2-2M6 6L4 4m2 2l2 2'
41-
stroke='currentColor'
42-
stroke-width='2'
43-
stroke-linecap='round'
44-
stroke-linejoin='round'
40+
d="M4 8l2-2m0 0l2-2M6 6L4 4m2 2l2 2"
41+
stroke="currentColor"
42+
stroke-width="2"
43+
stroke-linecap="round"
44+
stroke-linejoin="round"
4545
></path>
4646
</svg>
4747
</span>
4848

4949
<span
50-
class='opacity-0 ease-out duration-100 absolute inset-0 h-full w-full flex items-center justify-center transition-opacity
50+
class="opacity-0 ease-out duration-100 absolute inset-0 h-full w-full flex items-center justify-center transition-opacity
5151
{{if
5252
@checked
53-
"opacity-100 ease-in duration-200"
54-
"opacity-0 ease-out duration-100"
55-
}}'
56-
aria-hidden='true'
53+
'opacity-100 ease-in duration-200'
54+
'opacity-0 ease-out duration-100'
55+
}}"
56+
aria-hidden="true"
5757
>
5858
<svg
59-
class='h-3 w-3 text-green-400'
60-
fill='currentColor'
61-
viewBox='0 0 12 12'
59+
class="h-3 w-3 text-green-400"
60+
fill="currentColor"
61+
viewBox="0 0 12 12"
6262
>
6363
<path
64-
d='M3.707 5.293a1 1 0 00-1.414 1.414l1.414-1.414zM5 8l-.707.707a1 1 0 001.414 0L5 8zm4.707-3.293a1 1 0 00-1.414-1.414l1.414 1.414zm-7.414 2l2 2 1.414-1.414-2-2-1.414 1.414zm3.414 2l4-4-1.414-1.414-4 4 1.414 1.414z'
64+
d="M3.707 5.293a1 1 0 00-1.414 1.414l1.414-1.414zM5 8l-.707.707a1 1 0 001.414 0L5 8zm4.707-3.293a1 1 0 00-1.414-1.414l1.414 1.414zm-7.414 2l2 2 1.414-1.414-2-2-1.414 1.414zm3.414 2l4-4-1.414-1.414-4 4 1.414 1.414z"
6565
></path>
6666
</svg>
6767
</span>
6868
</span>
6969
</button>
7070

71-
<span class='ml-3'>
72-
<span class='text-sm font-medium text-main-text'>
71+
<span class="ml-3">
72+
<span class="text-sm font-medium text-main-text">
7373
On
7474
</span>
7575
</span>

app/data-sources/backup.ts

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,14 @@ import { applyStandardSourceInjections } from 'ember-orbit';
33
import { IndexedDBSource } from '@orbit/indexeddb';
44
import type {
55
InitializedRecord,
6-
RecordIdentity,
76
Record,
7+
RecordIdentity,
88
RecordSchema,
99
} from '@orbit/records';
1010
import { clone } from '@orbit/utils';
1111

12+
import ENV from 'swach/config/environment';
13+
1214
type PalettePOJO = Omit<Record, 'type'> & {
1315
type: 'palette';
1416
relationships: {
@@ -21,8 +23,6 @@ type PalettePOJO = Omit<Record, 'type'> & {
2123
};
2224
};
2325

24-
import ENV from 'swach/config/environment';
25-
2626
const { SCHEMA_VERSION } = ENV;
2727

2828
export default {
@@ -45,7 +45,6 @@ export default {
4545
const request = currentTarget as IDBRequest;
4646
const transaction = request.transaction as IDBTransaction;
4747

48-
4948
console.log(
5049
`migrating indexeddb from version ${oldVersion} to ${newVersion}`,
5150
);
@@ -79,7 +78,8 @@ export default {
7978

8079
const palette = palettes.find(
8180
(record): record is PalettePOJO =>
82-
record.id === paletteIdentity?.id && record.type === 'palette',
81+
record.id === paletteIdentity?.id &&
82+
record.type === 'palette',
8383
);
8484

8585
if (palette) {
@@ -91,9 +91,10 @@ export default {
9191

9292
if (palette.relationships?.colors?.data) {
9393
// Replace color in palette with color copy
94-
palette.relationships.colors.data = palette.relationships.colors.data.map(
95-
replaceColorIdWithCopy,
96-
);
94+
palette.relationships.colors.data =
95+
palette.relationships.colors.data.map(
96+
replaceColorIdWithCopy,
97+
);
9798
}
9899

99100
if (palette.attributes?.['colorOrder']) {
@@ -155,7 +156,8 @@ function getRecordsFromIDB(
155156
const records: InitializedRecord[] = [];
156157

157158
request.onsuccess = (event: Event) => {
158-
const cursor = (event.target as IDBRequest<IDBCursorWithValue> | null)?.result;
159+
const cursor = (event.target as IDBRequest<IDBCursorWithValue> | null)
160+
?.result;
159161

160162
if (cursor) {
161163
const record = cursor.value as InitializedRecord;

app/data-strategies/store-beforequery-remote-query.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ export default {
5252
},
5353

5454
catch(e, transform) {
55-
5655
console.log('Error performing remote.update()', transform, e);
5756
this.source.requestQueue.skip(e);
5857
this.target.requestQueue.skip(e);

app/routes/colors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import type Transition from '@ember/routing/transition';;
21
import Route from '@ember/routing/route';
2+
import type Transition from '@ember/routing/transition';
33
import { service } from '@ember/service';
44

55
import { storageFor } from 'ember-local-storage';

0 commit comments

Comments
 (0)