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:
@@ -1,7 +1,10 @@
|
||||
export function getProcessEnvironmentStub(): NodeJS.ProcessEnv {
|
||||
import { VueAppEnvironment } from '@/application/Parser/ProjectInformationParser';
|
||||
|
||||
export function getProcessEnvironmentStub(): VueAppEnvironment {
|
||||
return {
|
||||
VUE_APP_VERSION: '0.11.3',
|
||||
VUE_APP_NAME: 'stub-name',
|
||||
VUE_APP_SLOGAN: 'stub-slogan',
|
||||
VUE_APP_REPOSITORY_URL: 'stub-repository-url',
|
||||
VUE_APP_HOMEPAGE_URL: 'stub-homepage-url',
|
||||
};
|
||||
|
||||
@@ -3,21 +3,23 @@ import { Version } from '@/domain/Version';
|
||||
import { VersionStub } from './VersionStub';
|
||||
|
||||
export class ProjectInformationStub implements IProjectInformation {
|
||||
public name = 'name';
|
||||
public name = 'stub-name';
|
||||
|
||||
public version = new VersionStub();
|
||||
|
||||
public repositoryUrl = 'repositoryUrl';
|
||||
public repositoryUrl = 'stub-repositoryUrl';
|
||||
|
||||
public homepage = 'homepage';
|
||||
public homepage = 'stub-homepage';
|
||||
|
||||
public feedbackUrl = 'feedbackUrl';
|
||||
public feedbackUrl = 'stub-feedbackUrl';
|
||||
|
||||
public releaseUrl = 'releaseUrl';
|
||||
public releaseUrl = 'stub-releaseUrl';
|
||||
|
||||
public repositoryWebUrl = 'repositoryWebUrl';
|
||||
public repositoryWebUrl = 'stub-repositoryWebUrl';
|
||||
|
||||
public downloadUrl = 'downloadUrl';
|
||||
public downloadUrl = 'stub-downloadUrl';
|
||||
|
||||
public slogan = 'stub-slogan';
|
||||
|
||||
public withName(name: string): ProjectInformationStub {
|
||||
this.name = name;
|
||||
|
||||
Reference in New Issue
Block a user