mirror of
https://github.com/Eugeny/tabby-web.git
synced 2026-08-18 15:26:04 +01:00
wip
This commit is contained in:
@@ -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[] {
|
||||
|
||||
@@ -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}}
|
||||
|
||||
Reference in New Issue
Block a user