-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(admin): refactor search & design
- Loading branch information
Showing
116 changed files
with
1,039 additions
and
2,473 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
packages/backend/src/_static/email-templates/contact-support/subject.nunjucks
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
[SUPPORT] {{subject}} - {{ structureName }} | ||
{{subject}} - {{ structureName }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { SortValues } from "../types"; | ||
|
||
export class Search { | ||
public searchString: string | null; | ||
public sortKey: string; | ||
public sortValue: SortValues; | ||
public page: number; | ||
|
||
constructor(search?: any) { | ||
this.searchString = search?.searchString ?? null; | ||
this.sortKey = search?.sortKey ?? null; | ||
this.sortValue = search?.sortValue ?? "asc"; | ||
this.page = search?.page ?? 1; | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
.../src/_common/model/structure-doc/index.ts → packages/common/src/search/classes/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
//@index('./*', f => `export * from '${f.path}'`) | ||
export * from "./constants"; | ||
export * from "./Search.class"; |
1 change: 1 addition & 0 deletions
1
...ules/manage-usagers/utils/search/index.ts → packages/common/src/search/core/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
export * from "./search"; | ||
export * from "./searchChunks"; | ||
export * from "./searchCore"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { buildWords, clean, trim } from "./searchCore"; | ||
|
||
it("trim", () => { | ||
expect(trim(" \ttwo words\n \t ")).toEqual("two words"); | ||
}); | ||
|
||
it("clean", () => { | ||
expect(clean("à la Câmpagne éÂ!")).toEqual("a la campagne ea "); | ||
}); | ||
|
||
it("buildWords", () => { | ||
expect(buildWords("a few words")).toEqual(["a", "few", "words"]); | ||
expect(buildWords("two_words ")).toEqual(["two", "words"]); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
// @index('./*', f => `export * from '${f.path}'`) | ||
export * from "./classes"; | ||
export * from "./core"; | ||
export * from "./functions"; | ||
export * from "./Timings.type"; | ||
export * from "./sorter"; | ||
export * from "./types"; | ||
export * from "./USAGER_DEADLINES.const"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
// @index('./*', f => `export * from '${f.path}'`) | ||
export * from "./SortValues.type"; | ||
export * from "./Timings.type"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
//@index('./*', f => `export * from '${f.path}'`) | ||
export * from "./DEFAULT_MODAL_OPTIONS.const"; | ||
export * from "./FormEmailTakenValidator.type"; | ||
export * from "./SortValues.type"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
//@index('./*', f => `export * from '${f.path}'`) | ||
export * from "./_general"; | ||
export * from "./interaction"; | ||
export * from "./structure-doc"; | ||
export * from "./telephone"; | ||
export * from "./usager"; | ||
export * from "./user-structure"; |
14 changes: 0 additions & 14 deletions
14
...ges/frontend/src/_common/model/structure-doc/constants/DOCUMENT_EXTENSION_LABELS.const.ts
This file was deleted.
Oops, something went wrong.
2 changes: 0 additions & 2 deletions
2
packages/frontend/src/_common/model/structure-doc/constants/index.ts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.