-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
JNG-4838 re-format templates to support no formatter operation
- Loading branch information
Showing
21 changed files
with
978 additions
and
1,058 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
4 changes: 1 addition & 3 deletions
4
judo-ui-typescript-rest-api/src/main/resources/model/enum.ts.hbs
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,9 +1,7 @@ | ||
{{> fragment.header.hbs }} | ||
|
||
export enum {{ restParamName enumerationType }} { | ||
|
||
{{# each enumerationType.members as | member | }} | ||
{{ member.name }} = '{{ member.name }}', | ||
{{ member.name }} = '{{ member.name }}', | ||
{{/ each}} | ||
|
||
} |
5 changes: 2 additions & 3 deletions
5
judo-ui-typescript-rest-api/src/main/resources/model/modelIndex.ts.hbs
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,9 +1,8 @@ | ||
{{> fragment.header.hbs }} | ||
|
||
{{# each (getEnumerationTypes application) as | fileName | }} | ||
export * from './{{ restParamName fileName }}'; | ||
export * from './{{ restParamName fileName }}'; | ||
{{/ each }} | ||
|
||
{{# each (getClassTypes application) as | fileName | }} | ||
export * from './{{ classDataName fileName '' }}'; | ||
export * from './{{ classDataName fileName '' }}'; | ||
{{/ each }} |
6 changes: 2 additions & 4 deletions
6
judo-ui-typescript-rest-api/src/main/resources/model/operation.ts.hbs
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,13 +1,11 @@ | ||
{{> fragment.header.hbs }} | ||
|
||
{{# each (getOperationTypeFaults operationType) as | fault |}} | ||
import { {{ getFaultTargets fault '' }} } from './{{ getFaultTargets fault '' }}'; | ||
import { {{ getFaultTargets fault '' }} } from './{{ getFaultTargets fault '' }}'; | ||
{{/ each }} | ||
|
||
export interface {{ operationType.FaultContainerName }} { | ||
|
||
{{# each operationType.faults as | fault | }} | ||
'{{ fault.target.name.faultKey }}'?: null | {{ getFaultTargets fault '' }}; | ||
{{ fault.target.name.faultKey }}?: null | {{ getFaultTargets fault '' }}; | ||
{{/each }} | ||
|
||
} |
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
25 changes: 13 additions & 12 deletions
25
judo-ui-typescript-rest-api/src/main/resources/rest/maskBuilder.ts.hbs
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,21 +1,22 @@ | ||
{{> fragment.header.hbs }} | ||
|
||
export class MaskBuilder { | ||
constructor(protected props: Array<string | MaskBuilder>) {} | ||
constructor(protected props: Array<string | MaskBuilder>) {} | ||
|
||
build(): string { | ||
const distinctStrings = Array.from(new Set(this.props.filter(p => typeof p === 'string'))); | ||
const distinctBuilders = Array.from(new Set(this.props.filter(p => p instanceof MaskBuilder).map(p => (p as MaskBuilder).build()))); | ||
build(): string { | ||
const distinctStrings = Array.from(new Set(this.props.filter(p => typeof p === 'string'))); | ||
const distinctBuilders = Array.from(new Set(this.props.filter(p => p instanceof MaskBuilder).map(p => (p as MaskBuilder).build()))); | ||
|
||
return `{${[...distinctStrings, ...distinctBuilders].join(',')}}` | ||
} | ||
return `{${[...distinctStrings, ...distinctBuilders].join(',')}}` | ||
} | ||
} | ||
|
||
export class RelationMaskBuilder extends MaskBuilder { | ||
constructor(protected name: string, protected props: Array<string | RelationMaskBuilder>) { | ||
super(props); | ||
} | ||
constructor(protected name: string, protected props: Array<string | RelationMaskBuilder>) { | ||
super(props); | ||
} | ||
|
||
build(): string { | ||
return `${this.name}${super.build()}` | ||
} | ||
build(): string { | ||
return `${this.name}${super.build()}` | ||
} | ||
} |
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
8 changes: 3 additions & 5 deletions
8
judo-ui-typescript-rest-api/src/main/resources/rest/restIndex.ts.hbs
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,14 +1,12 @@ | ||
{{> fragment.header.hbs }} | ||
|
||
{{# each (getClassTypes application) as | fileName | }} | ||
export * from './{{ classDataName fileName "QueryCustomizer" }}'; | ||
export * from './{{ classDataName fileName "QueryCustomizer" }}'; | ||
{{/ each }} | ||
|
||
{{# each (getClassTypes application) as | fileName | }} | ||
export * from './{{ classDataName fileName "MaskBuilder" }}'; | ||
export * from './{{ classDataName fileName "MaskBuilder" }}'; | ||
{{/ each }} | ||
|
||
{{# each (getFilterableDataTypes application) as | fileName | }} | ||
export * from './{{ restFilterName fileName }}'; | ||
export * from './{{ restFilterName fileName }}'; | ||
{{/ each }} | ||
export * from './MaskBuilder'; |
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.