Change subtitle heading to new slogan
- Unify reading subtitle/slogan throughout the application. - Refactor related unit tests for easier future changes. - Add typed constants for Vue app environment variables.
This commit is contained in:
@@ -9,6 +9,7 @@ export class ProjectInformation implements IProjectInformation {
|
||||
constructor(
|
||||
public readonly name: string,
|
||||
public readonly version: Version,
|
||||
public readonly slogan: string,
|
||||
public readonly repositoryUrl: string,
|
||||
public readonly homepage: string,
|
||||
) {
|
||||
@@ -18,6 +19,9 @@ export class ProjectInformation implements IProjectInformation {
|
||||
if (!version) {
|
||||
throw new Error('undefined version');
|
||||
}
|
||||
if (!slogan) {
|
||||
throw new Error('undefined slogan');
|
||||
}
|
||||
if (!repositoryUrl) {
|
||||
throw new Error('repositoryUrl is undefined');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user