-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- rename getConfigProperty() function - pass user object to db functions instead of session - fix pdf print issue
- Loading branch information
Showing
245 changed files
with
905 additions
and
1,286 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
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,38 @@ | ||
import type { ADWebAuthConfig } from '@cityssm/ad-web-auth-connector'; | ||
import type { AdditionalFeeFunction, ConfigActiveDirectory, ConfigBatchExport, LicenceLengthFunction, LicenceNumberFunction, ReportDefinition } from '../types/configTypes.js'; | ||
export declare const configDefaultValues: { | ||
activeDirectory: ConfigActiveDirectory | undefined; | ||
adWebAuthConfig: ADWebAuthConfig | undefined; | ||
'application.applicationName': string; | ||
'application.logoURL': string; | ||
'application.httpPort': number; | ||
'application.userDomain': string; | ||
'application.useTestDatabases': boolean; | ||
'reverseProxy.disableCompression': boolean; | ||
'reverseProxy.disableEtag': boolean; | ||
'reverseProxy.urlPrefix': string; | ||
'session.cookieName': string; | ||
'session.secret': string; | ||
'session.maxAgeMillis': number; | ||
'session.doKeepAlive': boolean; | ||
'users.testing': string[]; | ||
'users.canLogin': string[]; | ||
'users.canUpdate': string[]; | ||
'users.isAdmin': string[]; | ||
'defaults.licenceNumberFunction': LicenceNumberFunction; | ||
'defaults.licenseeCity': string; | ||
'defaults.licenseeProvince': string; | ||
'settings.licenceAlias': string; | ||
'settings.licenceAliasPlural': string; | ||
'settings.licenseeAlias': string; | ||
'settings.licenseeAliasPlural': string; | ||
'settings.renewalAlias': string; | ||
'settings.includeRelated': boolean; | ||
'settings.includeBatches': boolean; | ||
'settings.includeReplacementFee': boolean; | ||
'settings.includeYearEnd': boolean; | ||
'exports.batches': ConfigBatchExport | undefined; | ||
licenceLengthFunctions: Record<string, LicenceLengthFunction>; | ||
additionalFeeFunctions: Record<string, AdditionalFeeFunction>; | ||
customReports: ReportDefinition[]; | ||
}; |
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,36 @@ | ||
export const configDefaultValues = { | ||
activeDirectory: undefined, | ||
adWebAuthConfig: undefined, | ||
'application.applicationName': 'General Licence Manager', | ||
'application.logoURL': '/images/stamp.png', | ||
'application.httpPort': 7000, | ||
'application.userDomain': '', | ||
'application.useTestDatabases': false, | ||
'reverseProxy.disableCompression': false, | ||
'reverseProxy.disableEtag': false, | ||
'reverseProxy.urlPrefix': '', | ||
'session.cookieName': 'general-licence-manager-user-sid', | ||
'session.secret': 'cityssm/general-licence-manager', | ||
'session.maxAgeMillis': 60 * 60 * 1000, | ||
'session.doKeepAlive': false, | ||
'users.testing': [], | ||
'users.canLogin': ['administrator'], | ||
'users.canUpdate': [], | ||
'users.isAdmin': ['administrator'], | ||
'defaults.licenceNumberFunction': 'year-fourDigits', | ||
'defaults.licenseeCity': '', | ||
'defaults.licenseeProvince': 'ON', | ||
'settings.licenceAlias': 'Licence', | ||
'settings.licenceAliasPlural': 'Licences', | ||
'settings.licenseeAlias': 'Licensee', | ||
'settings.licenseeAliasPlural': 'Licensees', | ||
'settings.renewalAlias': 'Renewal', | ||
'settings.includeRelated': true, | ||
'settings.includeBatches': false, | ||
'settings.includeReplacementFee': true, | ||
'settings.includeYearEnd': false, | ||
'exports.batches': undefined, | ||
licenceLengthFunctions: {}, | ||
additionalFeeFunctions: {}, | ||
customReports: [] | ||
}; |
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,64 @@ | ||
// eslint-disable-next-line eslint-comments/disable-enable-pair | ||
/* eslint-disable @typescript-eslint/indent */ | ||
|
||
import type { ADWebAuthConfig } from '@cityssm/ad-web-auth-connector' | ||
|
||
import type { | ||
AdditionalFeeFunction, | ||
ConfigActiveDirectory, | ||
ConfigBatchExport, | ||
LicenceLengthFunction, | ||
LicenceNumberFunction, | ||
ReportDefinition | ||
} from '../types/configTypes.js' | ||
|
||
export const configDefaultValues = { | ||
activeDirectory: undefined as unknown as ConfigActiveDirectory | undefined, | ||
adWebAuthConfig: undefined as unknown as ADWebAuthConfig | undefined, | ||
|
||
'application.applicationName': 'General Licence Manager', | ||
'application.logoURL': '/images/stamp.png', | ||
'application.httpPort': 7000, | ||
'application.userDomain': '', | ||
'application.useTestDatabases': false, | ||
|
||
'reverseProxy.disableCompression': false, | ||
'reverseProxy.disableEtag': false, | ||
'reverseProxy.urlPrefix': '', | ||
|
||
'session.cookieName': 'general-licence-manager-user-sid', | ||
'session.secret': 'cityssm/general-licence-manager', | ||
'session.maxAgeMillis': 60 * 60 * 1000, | ||
'session.doKeepAlive': false, | ||
|
||
'users.testing': [] as string[], | ||
'users.canLogin': ['administrator'], | ||
'users.canUpdate': [] as string[], | ||
'users.isAdmin': ['administrator'], | ||
|
||
'defaults.licenceNumberFunction': 'year-fourDigits' as LicenceNumberFunction, | ||
'defaults.licenseeCity': '', | ||
'defaults.licenseeProvince': 'ON', | ||
|
||
'settings.licenceAlias': 'Licence', | ||
'settings.licenceAliasPlural': 'Licences', | ||
'settings.licenseeAlias': 'Licensee', | ||
'settings.licenseeAliasPlural': 'Licensees', | ||
'settings.renewalAlias': 'Renewal', | ||
'settings.includeRelated': true, | ||
'settings.includeBatches': false, | ||
'settings.includeReplacementFee': true, | ||
'settings.includeYearEnd': false, | ||
|
||
'exports.batches': undefined as unknown as ConfigBatchExport | undefined, | ||
|
||
licenceLengthFunctions: {} as unknown as Record< | ||
string, | ||
LicenceLengthFunction | ||
>, | ||
additionalFeeFunctions: {} as unknown as Record< | ||
string, | ||
AdditionalFeeFunction | ||
>, | ||
customReports: [] as ReportDefinition[] | ||
} |
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
Oops, something went wrong.