This commit is contained in:
Eugene Pankov
2021-07-25 17:44:43 +02:00
parent 7f94d85d67
commit 23e9e984e3
9 changed files with 26 additions and 55 deletions

View File

@@ -15,9 +15,7 @@ class DemoConnector {
private commonService: CommonService,
private version: Version,
) {
this.getDistURL().then(distURL => {
targetWindow['tabbyWebDemoDataPath'] = `${distURL}/${version.version}/tabby-web-demo/data`
})
targetWindow['tabbyWebDemoDataPath'] = `${this.getDistURL()}/${version.version}/tabby-web-demo/data`
}
async loadConfig (): Promise<string> {
@@ -36,8 +34,8 @@ class DemoConnector {
return this.version.version
}
async getDistURL (): Promise<string> {
return await this.commonService.backendURL$ + '/app-dist'
getDistURL (): string {
return this.commonService.backendURL + '/app-dist'
}
getPluginsToLoad (): string[] {

View File

@@ -4,7 +4,7 @@ main(*ngIf='ready && loggedIn')
a.btn(
*ngFor='let provider of providers',
[class]='provider.cls',
href='{{commonService.backendURL$|async}}/api/1/auth/social/login/{{provider.id}}'
href='{{commonService.backendURL}}/api/1/auth/social/login/{{provider.id}}'
)
fa-icon([icon]='provider.icon', [fixedWidth]='true')
span Log in with {{provider.name}}