Skip to content

Commit 8313364

Browse files
committed
Close tags and reformat
1 parent 1dfa95b commit 8313364

File tree

34 files changed

+503
-127
lines changed

34 files changed

+503
-127
lines changed

knip.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,5 @@
1313
"vitest-setup.js"
1414
]
1515
},
16-
"project": [
17-
"src/lib/**/*",
18-
"!src/legacy"]
16+
"project": ["src/lib/**/*", "!src/legacy"]
1917
}

package-lock.json

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@
2121
"marked-gfm-heading-id": "^3.0.6",
2222
"pdfjs-dist": "^4.6.82",
2323
"postcss": "^8.5.3",
24-
"svelecte": "^4.5.1",
2524
"resize-observer-polyfill": "^1.5.1",
2625
"sanitize-html": "^2.17.0",
26+
"svelecte": "^4.5.1",
2727
"svelte": "^4.2.20",
2828
"svelte-fast-dimension": "^1.1.0",
2929
"svelte-i18n": "^4.0.0",
@@ -56,8 +56,8 @@
5656
"knip": "^5.62.0",
5757
"msw": "^2.7.0",
5858
"msw-storybook-addon": "^2.0.4",
59-
"prettier": "^3.5.3",
60-
"prettier-plugin-svelte": "^3.4.0",
59+
"prettier": "^3.7.4",
60+
"prettier-plugin-svelte": "^3.4.1",
6161
"react": "^18.2.0",
6262
"react-dom": "^18.2.0",
6363
"storybook": "^8.6.14",

src/hooks.server.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,4 @@ async function logRequest({ event, resolve }) {
5555
return response;
5656
}
5757

58-
export const handle: Handle = sequence(
59-
language,
60-
logRequest,
61-
);
58+
export const handle: Handle = sequence(language, logRequest);

src/langs/json/en.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
"confirm": "Reprocess",
8383
"multilingual": "Selected documents are in different languages. Reprocessing will set them all to the same language. Proceed with caution.",
8484
"pending": "Some selected documents are still processing. This will cancel and restart processing, which may affect redactions or other operations in-progress. Proceed with caution.",
85-
"toomany":"Bulk processing is limited to {max} documents at a time, {n} selected."
85+
"toomany": "Bulk processing is limited to {max} documents at a time, {n} selected."
8686
},
8787
"dialogDocumentEmbedDialog": {
8888
"responsive": "Responsive",

src/lib/api/tests/collaborators.test.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,8 @@ const test = base.extend({
2020
},
2121

2222
async users({}, use: Use<Page<ProjectUser>>) {
23-
const { default: users } = await import(
24-
"@/test/fixtures/projects/project-users.json"
25-
);
23+
const { default: users } =
24+
await import("@/test/fixtures/projects/project-users.json");
2625

2726
await use(users as Page<ProjectUser>);
2827
},

src/lib/api/tests/documents.test.ts

Lines changed: 18 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -28,65 +28,57 @@ type Use<T> = (value: T) => Promise<void>;
2828

2929
const test = base.extend({
3030
search: async ({}, use: Use<DocumentResults>) => {
31-
const results = await import(
32-
"@/test/fixtures/documents/search-highlight.json"
33-
);
31+
const results =
32+
await import("@/test/fixtures/documents/search-highlight.json");
3433

3534
await use(results as unknown as DocumentResults);
3635
},
3736

3837
document: async ({}, use: Use<Document>) => {
39-
const document = await import(
40-
"@/test/fixtures/documents/document-expanded.json"
41-
);
38+
const document =
39+
await import("@/test/fixtures/documents/document-expanded.json");
4240

4341
await use(document as Document);
4442
},
4543

4644
documents: async ({}, use: Use<DocumentResults>) => {
47-
const { default: documents } = await import(
48-
"@/test/fixtures/documents/documents.json"
49-
);
45+
const { default: documents } =
46+
await import("@/test/fixtures/documents/documents.json");
5047

5148
await use(documents as DocumentResults);
5249
},
5350

5451
created: async ({}, use: Use<Document>) => {
55-
const { default: created } = await import(
56-
"@/test/fixtures/documents/create.json"
57-
);
52+
const { default: created } =
53+
await import("@/test/fixtures/documents/create.json");
5854

5955
await use(created[0] as Document);
6056
},
6157

6258
pending: async ({}, use: Use<Pending[]>) => {
63-
const { default: pending } = await import(
64-
"@/test/fixtures/documents/pending.json"
65-
);
59+
const { default: pending } =
60+
await import("@/test/fixtures/documents/pending.json");
6661

6762
await use(pending);
6863
},
6964

7065
text: async ({}, use: Use<DocumentText>) => {
71-
const { default: text } = await import(
72-
"@/test/fixtures/documents/document.txt.json"
73-
);
66+
const { default: text } =
67+
await import("@/test/fixtures/documents/document.txt.json");
7468

7569
await use(text);
7670
},
7771

7872
textPositions: async ({}, use: Use<TextPosition[]>) => {
79-
const { default: textPositions } = await import(
80-
"@/test/fixtures/documents/examples/the-santa-anas-p1.position.json"
81-
);
73+
const { default: textPositions } =
74+
await import("@/test/fixtures/documents/examples/the-santa-anas-p1.position.json");
8275

8376
await use(textPositions);
8477
},
8578

8679
redactions: async ({}, use: Use<Redaction[]>) => {
87-
const { default: redactions } = await import(
88-
"@/test/fixtures/documents/redactions.json"
89-
);
80+
const { default: redactions } =
81+
await import("@/test/fixtures/documents/redactions.json");
9082

9183
await use(redactions);
9284
},
@@ -797,9 +789,8 @@ describe("document helper methods", () => {
797789
);
798790

799791
// user and org not expanded
800-
const d2 = (await import(
801-
"@/test/fixtures/documents/document.json"
802-
)) as Document;
792+
const d2 =
793+
(await import("@/test/fixtures/documents/document.json")) as Document;
803794
expect(documents.userOrgString(d2)).toStrictEqual("");
804795

805796
// user, but no org

src/lib/api/tests/notes.test.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,8 @@ type Use<T> = (value: T) => Promise<void>;
99

1010
const test = base.extend({
1111
async document({}, use: Use<Document>) {
12-
const document = await import(
13-
"@/test/fixtures/documents/document-expanded.json"
14-
);
12+
const document =
13+
await import("@/test/fixtures/documents/document-expanded.json");
1514

1615
await use(document as Document);
1716
},

src/lib/api/tests/projects.test.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,8 @@ type Use<T> = (value: T) => Promise<void>;
2424

2525
const test = base.extend({
2626
async documents({}, use: Use<Page<ProjectMembershipItem>>) {
27-
const { default: documents } = await import(
28-
"@/test/fixtures/projects/project-documents.json"
29-
);
27+
const { default: documents } =
28+
await import("@/test/fixtures/projects/project-documents.json");
3029

3130
await use(documents);
3231
},

src/lib/api/tests/sections.test.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,8 @@ type Use<T> = (value: T) => Promise<void>;
99

1010
const test = base.extend({
1111
async document({}, use: Use<Document>) {
12-
const document = await import(
13-
"@/test/fixtures/documents/document-expanded.json"
14-
);
12+
const document =
13+
await import("@/test/fixtures/documents/document-expanded.json");
1514

1615
await use(document as Document);
1716
},

0 commit comments

Comments
 (0)