Skip to content

Commit

Permalink
Use lowercase for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
minottic committed Sep 30, 2024
1 parent 2100e89 commit 850e1c8
Show file tree
Hide file tree
Showing 17 changed files with 22 additions and 22 deletions.
4 changes: 2 additions & 2 deletions src/app/app-config.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export interface AppConfig {
logoBanner: string | null;
logoWidth?: string;
retrieveToEmail: RetrieveDestinations | undefined;
lbBaseURL: string | null;
lbBaseUrl: string | null;
}

export class RetrieveDestinations {
Expand All @@ -33,7 +33,7 @@ export class RetrieveDestinations {
export class AppConfigService {
private appConfig: object = {};

constructor(private http: HttpClient) {}
constructor(private http: HttpClient) { }

Check failure on line 36 in src/app/app-config.service.ts

View workflow job for this annotation

GitHub Actions / eslint

Delete `·`

Check failure on line 36 in src/app/app-config.service.ts

View workflow job for this annotation

GitHub Actions / Run tests

Delete `·`

async loadAppConfig(): Promise<void> {
try {
Expand Down
2 changes: 1 addition & 1 deletion src/app/app.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ describe("AppComponent", () => {
const app = fixture.componentInstance;
fixture.detectChanges();
expect(app.config.scicatBaseUrl).toEqual("https://scicat.esss.se");
expect(app.config.lbBaseURL).toEqual("https://scicat.esss.se/api");
expect(app.config.lbBaseUrl).toEqual("https://scicat.esss.se/api");
expect(LoopBackConfig.getPath()).toEqual("https://scicat.esss.se/api");
}));
});
2 changes: 1 addition & 1 deletion src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export class AppComponent implements OnInit {
}

ngOnInit() {
LoopBackConfig.setBaseURL(this.config.lbBaseURL);
LoopBackConfig.setBaseURL(this.config.lbBaseUrl);
console.log("API Path: ", LoopBackConfig.getPath());
console.log("API Version: ", LoopBackConfig.getApiVersion());
}
Expand Down
10 changes: 5 additions & 5 deletions src/app/shared/MockStubs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,12 @@ export class MockDialog {
}

export class MockMatDialogRef {
close() {}
close() { }

Check failure on line 96 in src/app/shared/MockStubs.ts

View workflow job for this annotation

GitHub Actions / eslint

Delete `·`

Check failure on line 96 in src/app/shared/MockStubs.ts

View workflow job for this annotation

GitHub Actions / Run tests

Delete `·`

updateSize() {}
updateSize() { }

Check failure on line 98 in src/app/shared/MockStubs.ts

View workflow job for this annotation

GitHub Actions / eslint

Delete `·`

Check failure on line 98 in src/app/shared/MockStubs.ts

View workflow job for this annotation

GitHub Actions / Run tests

Delete `·`
}

export class MockMatDialogData {}
export class MockMatDialogData { }

Check failure on line 101 in src/app/shared/MockStubs.ts

View workflow job for this annotation

GitHub Actions / eslint

Delete `·`

Check failure on line 101 in src/app/shared/MockStubs.ts

View workflow job for this annotation

GitHub Actions / Run tests

Delete `·`

@Injectable()
export class MockAppConfigService extends AppConfigService {
Expand All @@ -111,7 +111,7 @@ export class MockAppConfigService extends AppConfigService {
accessInstructions:
"Instructions: Login with brightness username and password",
scicatBaseUrl: "https://scicat.esss.se",
lbBaseURL: "https://scicat.esss.se/api",
lbBaseUrl: "https://scicat.esss.se/api",
retrieveToEmail: {
option: "URLs",
username: "lp_service",
Expand All @@ -123,7 +123,7 @@ export class MockAppConfigService extends AppConfigService {
logoBanner: "",
};

async loadAppConfig(): Promise<void> {}
async loadAppConfig(): Promise<void> { }

Check failure on line 126 in src/app/shared/MockStubs.ts

View workflow job for this annotation

GitHub Actions / eslint

Delete `·`

Check failure on line 126 in src/app/shared/MockStubs.ts

View workflow job for this annotation

GitHub Actions / Run tests

Delete `·`

getConfig(): AppConfig {
return this.testConfig as AppConfig;
Expand Down
2 changes: 1 addition & 1 deletion src/environments/environment.development.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const environment = {
directMongoAccess: false,
doiBaseUrl: "https://doi.org/",
facility: "psi",
lbBaseURL: "https://doi2.psi.ch:3001",
lbBaseUrl: "https://doi2.psi.ch:3001",
oaiProviderRoute: "https://doi2.psi.ch/oaipmh/Publication",
production: true,
scicatBaseUrl: null,
Expand Down
2 changes: 1 addition & 1 deletion src/environments/environment.dmsc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const environment = {
directMongoAccess: true,
doiBaseUrl: "https://doi.org/",
facility: "ess",
lbBaseURL: "https://kubetest02.dm.esss.dk:32223",
lbBaseUrl: "https://kubetest02.dm.esss.dk:32223",
oaiProviderRoute: null,
production: false,
scicatBaseUrl: "https://scicat.esss.se",
Expand Down
2 changes: 1 addition & 1 deletion src/environments/environment.dmscdev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const environment = {
directMongoAccess: true,
doiBaseUrl: "https://doi.org/",
facility: "ess",
lbBaseURL: "https://catamelservice.esss.dk:30003",
lbBaseUrl: "https://catamelservice.esss.dk:30003",
oaiProviderRoute: null,
production: false,
scicatBaseUrl: "https://scicat.esss.se",
Expand Down
2 changes: 1 addition & 1 deletion src/environments/environment.dmscprod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const environment = {
directMongoAccess: true,
doiBaseUrl: "https://doi.org/",
facility: "ess",
lbBaseURL: "https://scicatapi.esss.dk",
lbBaseUrl: "https://scicatapi.esss.dk",
oaiProviderRoute: null,
production: true,
scicatBaseUrl: "https://scicat.esss.se",
Expand Down
2 changes: 1 addition & 1 deletion src/environments/environment.docker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const environment = {
directMongoAccess: true,
doiBaseUrl: "https://doi.org/",
facility: "ess",
lbBaseURL: "http://127.0.0.1:3000",
lbBaseUrl: "http://127.0.0.1:3000",
oaiProviderRoute: null,
production: false,
scicatBaseUrl: "https://scicat.esss.se",
Expand Down
2 changes: 1 addition & 1 deletion src/environments/environment.essdev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const environment = {
directMongoAccess: true,
doiBaseUrl: "https://doi.org/",
facility: "ess",
lbBaseURL: "https://scitest.esss.lu.se",
lbBaseUrl: "https://scitest.esss.lu.se",
oaiProviderRoute: null,
production: false,
scicatBaseUrl: "https://scitest.esss.lu.se",
Expand Down
2 changes: 1 addition & 1 deletion src/environments/environment.essprod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const environment = {
directMongoAccess: true,
doiBaseUrl: "https://doi.org/",
facility: "ess",
lbBaseURL: "https://scicat.ess.eu",
lbBaseUrl: "https://scicat.ess.eu",
oaiProviderRoute: null,
production: true,
scicatBaseUrl: "https://scicat.ess.eu",
Expand Down
2 changes: 1 addition & 1 deletion src/environments/environment.maxivdemo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const environment = {
directMongoAccess: true,
doiBaseUrl: "https://doi.org/",
facility: "maxiv",
lbBaseURL: "https://scicat-demo.maxiv.lu.se",
lbBaseUrl: "https://scicat-demo.maxiv.lu.se",
oaiProviderRoute: null,
production: true,
scicatBaseUrl: "https://scicat-demo.maxiv.lu.se",
Expand Down
2 changes: 1 addition & 1 deletion src/environments/environment.maxivdev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const environment = {
directMongoAccess: true,
doiBaseUrl: "https://doi.org/",
facility: "maxiv",
lbBaseURL: "https://scicat-test.maxiv.lu.se",
lbBaseUrl: "https://scicat-test.maxiv.lu.se",
oaiProviderRoute: null,
production: true,
scicatBaseUrl: "https://scicat-test.maxiv.lu.se",
Expand Down
2 changes: 1 addition & 1 deletion src/environments/environment.maxivprod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const environment = {
directMongoAccess: true,
doiBaseUrl: "https://doi.org/",
facility: "maxiv",
lbBaseURL: "https://scicat.maxiv.lu.se",
lbBaseUrl: "https://scicat.maxiv.lu.se",
oaiProviderRoute: null,
production: true,
scicatBaseUrl: "https://scicat.maxiv.lu.se",
Expand Down
2 changes: 1 addition & 1 deletion src/environments/environment.prod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const environment = {
directMongoAccess: false,
doiBaseUrl: "https://doi.org/",
facility: "psi",
lbBaseURL: "https://doi.psi.ch:3001",
lbBaseUrl: "https://doi.psi.ch:3001",
oaiProviderRoute: "https://doi.psi.ch/oaipmh/Publication",
production: true,
scicatBaseUrl: null,
Expand Down
2 changes: 1 addition & 1 deletion src/environments/environment.qa.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export const environment = {
directMongoAccess: false,
doiBaseUrl: "https://doi.org/",
facility: "PSI",
lbBaseURL: "https://dacat-qa.psi.ch",
lbBaseUrl: "https://dacat-qa.psi.ch",
oaiProviderRoute: null,
production: true,
scicatBaseUrl: null,
Expand Down
2 changes: 1 addition & 1 deletion src/environments/environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const environment = {
directMongoAccess: true,
doiBaseUrl: "https://doi.org/",
facility: "ess",
lbBaseURL: "http://localhost:3000",
lbBaseUrl: "http://localhost:3000",
oaiProviderRoute: "http://127.0.0.1:3001",
production: false,
scicatBaseUrl: "https://scicat.esss.se",
Expand Down

0 comments on commit 850e1c8

Please sign in to comment.