generated from ubiquity/ts-template
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #58 from gentlementlegen/fix/configuration-improve…
…ments fix!: configuration improvements
- Loading branch information
Showing
28 changed files
with
363 additions
and
428 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
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,10 +1,5 @@ | ||
import { Static, Type } from "@sinclair/typebox"; | ||
|
||
export const contentEvaluatorConfigurationType = Type.Object({ | ||
/** | ||
* Enables or disables this module | ||
*/ | ||
enabled: Type.Boolean({ default: true }), | ||
}); | ||
export const contentEvaluatorConfigurationType = Type.Object({}); | ||
|
||
export type ContentEvaluatorConfiguration = Static<typeof contentEvaluatorConfigurationType>; |
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,10 +1,5 @@ | ||
import { Type, Static } from "@sinclair/typebox"; | ||
|
||
export const dataPurgeConfigurationType = Type.Object({ | ||
/** | ||
* Enables or disables this module | ||
*/ | ||
enabled: Type.Boolean({ default: true }), | ||
}); | ||
export const dataPurgeConfigurationType = Type.Object({}); | ||
|
||
export type DataPurgeConfiguration = Static<typeof dataPurgeConfigurationType>; |
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 |
---|---|---|
@@ -1,10 +1,5 @@ | ||
import { Static, Type } from "@sinclair/typebox"; | ||
|
||
export const permitGenerationConfigurationType = Type.Object({ | ||
/** | ||
* Enables or disables this module | ||
*/ | ||
enabled: Type.Boolean({ default: true }), | ||
}); | ||
export const permitGenerationConfigurationType = Type.Object({}); | ||
|
||
export type PermitGenerationConfiguration = Static<typeof permitGenerationConfigurationType>; |
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,16 @@ | ||
import { commentEnum } from "../configuration/comment-types"; | ||
|
||
export function typeReplacer(key: string, value: string | number) { | ||
// Changes "type" to be human-readable | ||
if (key === "type" && typeof value === "number") { | ||
const typeNames: string[] = []; | ||
const types = Object.values(commentEnum) as number[]; | ||
types.reverse().forEach((typeValue) => { | ||
if (value & typeValue) { | ||
typeNames.push(commentEnum[typeValue]); | ||
} | ||
}); | ||
return typeNames.join("_"); | ||
} | ||
return value; | ||
} |
Oops, something went wrong.