Skip to content

Commit 2fac585

Browse files
committed
fix(import-order): fix import order wherever applicable
1 parent e934b69 commit 2fac585

277 files changed

Lines changed: 1100 additions & 884 deletions

File tree

Some content is hidden

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

e2e/davinci-app/components/boolean.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,14 @@
44
* This software may be modified and distributed under the terms
55
* of the MIT license. See the LICENSE file for details.
66
*/
7+
import { dotToCamelCase, richContentInterpolation } from '../helper.js';
8+
79
import type {
810
BooleanCollector,
9-
ValidatedBooleanCollector,
1011
Updater,
12+
ValidatedBooleanCollector,
1113
Validator,
1214
} from '@forgerock/davinci-client/types';
13-
import { dotToCamelCase, richContentInterpolation } from '../helper.js';
1415

1516
/**
1617
* Creates a single checkbox and attaches it to the form

e2e/davinci-app/components/fido.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@
55
* of the MIT license. See the LICENSE file for details.
66
*/
77
import { fido } from '@forgerock/davinci-client';
8+
89
import type {
9-
FidoRegistrationCollector,
1010
FidoAuthenticationCollector,
11-
Updater,
1211
FidoClient,
12+
FidoRegistrationCollector,
13+
Updater,
1314
} from '@forgerock/davinci-client/types';
1415

1516
export default function fidoComponent(

e2e/davinci-app/components/password.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,14 @@
44
* This software may be modified and distributed under the terms
55
* of the MIT license. See the LICENSE file for details.
66
*/
7+
import { dotToCamelCase } from '../helper.js';
8+
79
import type {
810
PasswordCollector,
9-
ValidatedPasswordCollector,
1011
Updater,
12+
ValidatedPasswordCollector,
1113
Validator,
1214
} from '@forgerock/davinci-client/types';
13-
import { dotToCamelCase } from '../helper.js';
1415

1516
const UPPERCASE_RE = /^[A-Z]+$/;
1617
const LOWERCASE_RE = /^[a-z]+$/;

e2e/davinci-app/components/polling.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* This software may be modified and distributed under the terms
55
* of the MIT license. See the LICENSE file for details.
66
*/
7-
import type { PollingCollector, Poller, Updater } from '@forgerock/davinci-client/types';
7+
import type { Poller, PollingCollector, Updater } from '@forgerock/davinci-client/types';
88

99
export default function pollingComponent(
1010
formEl: HTMLFormElement,

e2e/davinci-app/components/protect.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
*/
77
import type {
88
TextCollector,
9-
ValidatedTextCollector,
109
Updater,
10+
ValidatedTextCollector,
1111
} from '@forgerock/davinci-client/types';
1212

1313
export default function protectComponent(

e2e/davinci-app/components/read-only.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@
44
* This software may be modified and distributed under the terms
55
* of the MIT license. See the LICENSE file for details.
66
*/
7-
import type { ReadOnlyCollector, RichTextCollector } from '@forgerock/davinci-client/types';
87
import { richContentInterpolation } from '../helper.js';
98

9+
import type { ReadOnlyCollector, RichTextCollector } from '@forgerock/davinci-client/types';
10+
1011
export default function (
1112
formEl: HTMLFormElement,
1213
collector: ReadOnlyCollector | RichTextCollector,

e2e/davinci-app/components/social-login-button.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* This software may be modified and distributed under the terms
55
* of the MIT license. See the LICENSE file for details.
66
*/
7-
import type { InternalErrorResponse, IdpCollector } from '@forgerock/davinci-client/types';
7+
import type { IdpCollector, InternalErrorResponse } from '@forgerock/davinci-client/types';
88

99
export default function submitButtonComponent(
1010
formEl: HTMLFormElement,

e2e/davinci-app/components/text.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,14 @@
44
* This software may be modified and distributed under the terms
55
* of the MIT license. See the LICENSE file for details.
66
*/
7+
import { dotToCamelCase } from '../helper.js';
8+
79
import type {
810
TextCollector,
9-
ValidatedTextCollector,
1011
Updater,
12+
ValidatedTextCollector,
1113
Validator,
1214
} from '@forgerock/davinci-client/types';
13-
import { dotToCamelCase } from '../helper.js';
1415

1516
export default function textComponent(
1617
formEl: HTMLFormElement,

e2e/davinci-app/main.ts

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -4,39 +4,39 @@
44
* This software may be modified and distributed under the terms
55
* of the MIT license. See the LICENSE file for details.
66
*/
7-
import './style.css';
8-
97
import { davinci } from '@forgerock/davinci-client';
108
import { oidc } from '@forgerock/oidc-client';
11-
import type { OidcConfig } from '@forgerock/oidc-client/types';
9+
import { protect } from '@forgerock/protect';
10+
11+
import './style.css';
12+
import booleanComponent from './components/boolean.js';
13+
import fidoComponent from './components/fido.js';
14+
import flowLinkComponent from './components/flow-link.js';
15+
import multiValueComponent from './components/multi-value.js';
16+
import objectValueComponent from './components/object-value.js';
17+
import passwordComponent from './components/password.js';
18+
import pollingComponent from './components/polling.js';
19+
import protectComponent from './components/protect.js';
20+
import qrCodeComponent from './components/qr-code.js';
21+
import readOnlyComponent from './components/read-only.js';
22+
import singleValueComponent from './components/single-value.js';
23+
import socialLoginButtonComponent from './components/social-login-button.js';
24+
import submitButtonComponent from './components/submit-button.js';
25+
import textComponent from './components/text.js';
26+
import { serverConfigs } from './server-configs.js';
27+
1228
import type {
1329
Collectors,
1430
CustomLogger,
15-
DaVinciConfig,
1631
DavinciClient,
32+
DaVinciConfig,
1733
GetClient,
1834
InternalErrorResponse,
1935
NodeStates,
2036
ProtectCollector,
2137
RequestMiddleware,
2238
} from '@forgerock/davinci-client/types';
23-
import { protect } from '@forgerock/protect';
24-
25-
import textComponent from './components/text.js';
26-
import passwordComponent from './components/password.js';
27-
import submitButtonComponent from './components/submit-button.js';
28-
import protectComponent from './components/protect.js';
29-
import flowLinkComponent from './components/flow-link.js';
30-
import socialLoginButtonComponent from './components/social-login-button.js';
31-
import { serverConfigs } from './server-configs.js';
32-
import singleValueComponent from './components/single-value.js';
33-
import multiValueComponent from './components/multi-value.js';
34-
import readOnlyComponent from './components/read-only.js';
35-
import objectValueComponent from './components/object-value.js';
36-
import fidoComponent from './components/fido.js';
37-
import qrCodeComponent from './components/qr-code.js';
38-
import pollingComponent from './components/polling.js';
39-
import booleanComponent from './components/boolean.js';
39+
import type { OidcConfig } from '@forgerock/oidc-client/types';
4040

4141
const loggerFn = {
4242
error: () => {

e2e/davinci-suites/playwright.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@
44
* This software may be modified and distributed under the terms
55
* of the MIT license. See the LICENSE file for details.
66
*/
7-
import { PlaywrightTestConfig } from '@playwright/test';
87
import { workspaceRoot } from '@nx/devkit';
98

9+
import type { PlaywrightTestConfig } from '@playwright/test';
10+
1011
// For CI, you may want to set BASE_URL to the deployed application.
1112
const baseURL = process.env['BASE_URL'] || 'http://localhost:5829';
1213

0 commit comments

Comments
 (0)