-
Notifications
You must be signed in to change notification settings - Fork 753
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into crowd-linux
- Loading branch information
Showing
30 changed files
with
651 additions
and
173 deletions.
There are no files selected for viewing
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
24 changes: 24 additions & 0 deletions
24
frontend/src/modules/member/config/filters/jobTitle/config.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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { FilterConfigType } from '@/shared/modules/filters/types/FilterConfig'; | ||
import { | ||
StringFilterConfig, | ||
StringFilterOptions, | ||
StringFilterValue, | ||
} from '@/shared/modules/filters/types/filterTypes/StringFilterConfig'; | ||
import { itemLabelRendererByType } from '@/shared/modules/filters/config/itemLabelRendererByType'; | ||
import { apiFilterRendererByType } from '@/shared/modules/filters/config/apiFilterRendererByType'; | ||
|
||
const jobTitle: StringFilterConfig = { | ||
id: 'jobTitle', | ||
label: 'Job title', | ||
iconClass: 'ri-suitcase-line', | ||
type: FilterConfigType.STRING, | ||
options: {}, | ||
itemLabelRenderer(value: StringFilterValue, options: StringFilterOptions): string { | ||
return itemLabelRendererByType[FilterConfigType.STRING]('Job title', value, options); | ||
}, | ||
apiFilterRenderer(value: StringFilterValue): any[] { | ||
return apiFilterRendererByType[FilterConfigType.STRING]('attributes.jobTitle.default', value); | ||
}, | ||
}; | ||
|
||
export default jobTitle; |
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
31 changes: 31 additions & 0 deletions
31
frontend/src/modules/member/config/filters/memberName/config.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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import { FilterConfigType } from '@/shared/modules/filters/types/FilterConfig'; | ||
import { | ||
StringFilterConfig, | ||
StringFilterOptions, | ||
StringFilterValue, | ||
} from '@/shared/modules/filters/types/filterTypes/StringFilterConfig'; | ||
import { itemLabelRendererByType } from '@/shared/modules/filters/config/itemLabelRendererByType'; | ||
import { apiFilterRendererByType } from '@/shared/modules/filters/config/apiFilterRendererByType'; | ||
|
||
const memberName: StringFilterConfig = { | ||
id: 'memberName', | ||
label: 'Member name', | ||
iconClass: 'ri-account-circle-line', | ||
type: FilterConfigType.STRING, | ||
options: {}, | ||
itemLabelRenderer( | ||
value: StringFilterValue, | ||
options: StringFilterOptions, | ||
): string { | ||
return itemLabelRendererByType[FilterConfigType.STRING]( | ||
'Member name', | ||
value, | ||
options, | ||
); | ||
}, | ||
apiFilterRenderer(value: StringFilterValue): any[] { | ||
return apiFilterRendererByType[FilterConfigType.STRING]('displayName', value); | ||
}, | ||
}; | ||
|
||
export default memberName; |
Oops, something went wrong.