commit
774b859686
|
@ -2,6 +2,9 @@
|
||||||
source "scripts/functions.sh"
|
source "scripts/functions.sh"
|
||||||
|
|
||||||
npm run build --bailOnLintError true --typeCheckOnLint true
|
npm run build --bailOnLintError true --typeCheckOnLint true
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -z $GIT_ORG_PRIVATE ] || [ -z $GIT_TOKEN ]; then
|
if [ -z $GIT_ORG_PRIVATE ] || [ -z $GIT_TOKEN ]; then
|
||||||
print_error "Env vars not correctly defined"
|
print_error "Env vars not correctly defined"
|
||||||
|
|
|
@ -93,11 +93,8 @@ ion-app.app-root page-core-login-site {
|
||||||
}
|
}
|
||||||
|
|
||||||
.core-login-site-logo {
|
.core-login-site-logo {
|
||||||
margin-top: 5px;
|
width: 90%;
|
||||||
margin-bottom: 5px;
|
max-width: 300px;
|
||||||
img {
|
margin: 5px auto;
|
||||||
width: 90%;
|
|
||||||
max-width: 300px;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
<div text-wrap text-center margin-bottom>
|
<div text-wrap text-center margin-bottom>
|
||||||
<div class="core-login-site-logo">
|
<div class="core-login-site-logo">
|
||||||
<!-- Show site logo or a default image. -->
|
<!-- Show site logo or a default image. -->
|
||||||
<img *ngIf="logoUrl" [src]="logoUrl" role="presentation">
|
<img *ngIf="logoUrl" [src]="logoUrl" role="presentation" onError="this.src='assets/img/login_logo.png'">
|
||||||
<img *ngIf="!logoUrl" src="assets/img/login_logo.png" role="presentation">
|
<img *ngIf="!logoUrl" src="assets/img/login_logo.png" role="presentation">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
|
|
||||||
<div class="core-login-site-logo" *ngIf="!showSiteAvatar">
|
<div class="core-login-site-logo" *ngIf="!showSiteAvatar">
|
||||||
<!-- Show site logo or a default image. -->
|
<!-- Show site logo or a default image. -->
|
||||||
<img *ngIf="logoUrl" [src]="logoUrl" core-external-content [siteId]="siteId" role="presentation">
|
<img *ngIf="logoUrl" [src]="logoUrl" role="presentation" onError="this.src='assets/img/login_logo.png'">
|
||||||
<img *ngIf="!logoUrl" src="assets/img/login_logo.png" role="presentation">
|
<img *ngIf="!logoUrl" src="assets/img/login_logo.png" role="presentation">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -105,8 +105,8 @@ export class CoreLoginReconnectPage {
|
||||||
// Check logoURL if user avatar is not set.
|
// Check logoURL if user avatar is not set.
|
||||||
if (this.site.avatar.startsWith(site.infos.siteurl + '/theme/image.php')) {
|
if (this.site.avatar.startsWith(site.infos.siteurl + '/theme/image.php')) {
|
||||||
this.showSiteAvatar = false;
|
this.showSiteAvatar = false;
|
||||||
this.logoUrl = this.loginHelper.getLogoUrl(config);
|
|
||||||
}
|
}
|
||||||
|
this.logoUrl = this.loginHelper.getLogoUrl(config);
|
||||||
|
|
||||||
this.getDataFromConfig(this.siteConfig);
|
this.getDataFromConfig(this.siteConfig);
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
|
|
|
@ -54,7 +54,8 @@ ion-app.app-root page-core-login-site {
|
||||||
&.hidden {
|
&.hidden {
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
visibility: hidden;
|
visibility: hidden;
|
||||||
margin: 0;
|
margin-top: 0;
|
||||||
|
margin-bottom: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
max-height: 0;
|
max-height: 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,6 +13,7 @@
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
import { Injectable } from '@angular/core';
|
import { Injectable } from '@angular/core';
|
||||||
|
import { Platform } from 'ionic-angular';
|
||||||
import { HttpClient, HttpResponse } from '@angular/common/http';
|
import { HttpClient, HttpResponse } from '@angular/common/http';
|
||||||
import { TranslateService } from '@ngx-translate/core';
|
import { TranslateService } from '@ngx-translate/core';
|
||||||
import { FileTransfer, FileUploadOptions } from '@ionic-native/file-transfer';
|
import { FileTransfer, FileUploadOptions } from '@ionic-native/file-transfer';
|
||||||
|
@ -156,12 +157,15 @@ export class CoreWSProvider {
|
||||||
protected fileProvider: CoreFileProvider,
|
protected fileProvider: CoreFileProvider,
|
||||||
protected fileTransfer: FileTransfer,
|
protected fileTransfer: FileTransfer,
|
||||||
protected mimeUtils: CoreMimetypeUtilsProvider,
|
protected mimeUtils: CoreMimetypeUtilsProvider,
|
||||||
logger: CoreLoggerProvider) {
|
logger: CoreLoggerProvider,
|
||||||
|
platform: Platform) {
|
||||||
this.logger = logger.getInstance('CoreWSProvider');
|
this.logger = logger.getInstance('CoreWSProvider');
|
||||||
|
|
||||||
if (this.appProvider.isMobile()) {
|
platform.ready().then(() => {
|
||||||
(<any> cordova).plugin.http.setHeader('User-Agent', navigator.userAgent);
|
if (this.appProvider.isMobile()) {
|
||||||
}
|
(<any> cordova).plugin.http.setHeader('User-Agent', navigator.userAgent);
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue