MOBILE-2549 about: Add compilation time
parent
e6c5607463
commit
d46cbe598c
|
@ -278,6 +278,10 @@ gulp.task('config', function(done) {
|
||||||
}
|
}
|
||||||
contents += ' static ' + key + ' = ' + value + ';\n';
|
contents += ' static ' + key + ' = ' + value + ';\n';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Add compilation time.
|
||||||
|
contents += ' static compilationtime = ' + Date.now() + ';\n';
|
||||||
|
|
||||||
contents += '}\n';
|
contents += '}\n';
|
||||||
|
|
||||||
file.contents = new Buffer(contents);
|
file.contents = new Buffer(contents);
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
"appready": "App ready",
|
"appready": "App ready",
|
||||||
"cannotsyncoffline": "Cannot synchronise offline.",
|
"cannotsyncoffline": "Cannot synchronise offline.",
|
||||||
"cannotsyncwithoutwifi": "Cannot synchronise because the current settings only allow to synchronise when connected to Wi-Fi. Please connect to a Wi-Fi network.",
|
"cannotsyncwithoutwifi": "Cannot synchronise because the current settings only allow to synchronise when connected to Wi-Fi. Please connect to a Wi-Fi network.",
|
||||||
|
"compilationtime": "Compilation time",
|
||||||
"cordovadevicemodel": "Cordova device model",
|
"cordovadevicemodel": "Cordova device model",
|
||||||
"cordovadeviceosversion": "Cordova device OS version",
|
"cordovadeviceosversion": "Cordova device OS version",
|
||||||
"cordovadeviceplatform": "Cordova device platform",
|
"cordovadeviceplatform": "Cordova device platform",
|
||||||
|
|
|
@ -36,6 +36,10 @@
|
||||||
<h2>{{ 'core.settings.versioncode' | translate}}</h2>
|
<h2>{{ 'core.settings.versioncode' | translate}}</h2>
|
||||||
<p>{{ versionCode }}</p>
|
<p>{{ versionCode }}</p>
|
||||||
</ion-item>
|
</ion-item>
|
||||||
|
<ion-item text-wrap *ngIf="compilationTime">
|
||||||
|
<h2>{{ 'core.settings.compilationtime' | translate }}</h2>
|
||||||
|
<p>{{ compilationTime | coreFormatDate: "LLL Z" }}</p>
|
||||||
|
</ion-item>
|
||||||
<ion-item text-wrap *ngIf="fileSystemRoot">
|
<ion-item text-wrap *ngIf="fileSystemRoot">
|
||||||
<h2>{{ 'core.settings.filesystemroot' | translate}}</h2>
|
<h2>{{ 'core.settings.filesystemroot' | translate}}</h2>
|
||||||
<p><a *ngIf="fsClickable" [href]="fileSystemRoot" core-link auto-login="no">{{ fileSystemRoot }}</a></p>
|
<p><a *ngIf="fsClickable" [href]="fileSystemRoot" core-link auto-login="no">{{ fileSystemRoot }}</a></p>
|
||||||
|
|
|
@ -18,6 +18,7 @@ import { TranslateModule } from '@ngx-translate/core';
|
||||||
import { CoreSettingsAboutPage } from './about';
|
import { CoreSettingsAboutPage } from './about';
|
||||||
import { CoreComponentsModule } from '@components/components.module';
|
import { CoreComponentsModule } from '@components/components.module';
|
||||||
import { CoreDirectivesModule } from '@directives/directives.module';
|
import { CoreDirectivesModule } from '@directives/directives.module';
|
||||||
|
import { CorePipesModule } from '@pipes/pipes.module';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
declarations: [
|
declarations: [
|
||||||
|
@ -26,6 +27,7 @@ import { CoreDirectivesModule } from '@directives/directives.module';
|
||||||
imports: [
|
imports: [
|
||||||
CoreComponentsModule,
|
CoreComponentsModule,
|
||||||
CoreDirectivesModule,
|
CoreDirectivesModule,
|
||||||
|
CorePipesModule,
|
||||||
IonicPageModule.forChild(CoreSettingsAboutPage),
|
IonicPageModule.forChild(CoreSettingsAboutPage),
|
||||||
TranslateModule.forChild()
|
TranslateModule.forChild()
|
||||||
],
|
],
|
||||||
|
|
|
@ -36,6 +36,7 @@ export class CoreSettingsAboutPage {
|
||||||
appName: string;
|
appName: string;
|
||||||
versionName: string;
|
versionName: string;
|
||||||
versionCode: number;
|
versionCode: number;
|
||||||
|
compilationTime: number;
|
||||||
privacyPolicy: string;
|
privacyPolicy: string;
|
||||||
navigator: Navigator;
|
navigator: Navigator;
|
||||||
locationHref: string;
|
locationHref: string;
|
||||||
|
@ -61,6 +62,7 @@ export class CoreSettingsAboutPage {
|
||||||
this.appName = appProvider.isDesktop() ? CoreConfigConstants.desktopappname : CoreConfigConstants.appname;
|
this.appName = appProvider.isDesktop() ? CoreConfigConstants.desktopappname : CoreConfigConstants.appname;
|
||||||
this.versionName = CoreConfigConstants.versionname;
|
this.versionName = CoreConfigConstants.versionname;
|
||||||
this.versionCode = CoreConfigConstants.versioncode;
|
this.versionCode = CoreConfigConstants.versioncode;
|
||||||
|
this.compilationTime = CoreConfigConstants.compilationtime;
|
||||||
|
|
||||||
// Calculate the privacy policy to use.
|
// Calculate the privacy policy to use.
|
||||||
this.privacyPolicy = currentSite.getStoredConfig('tool_mobile_apppolicy') || currentSite.getStoredConfig('sitepolicy') ||
|
this.privacyPolicy = currentSite.getStoredConfig('tool_mobile_apppolicy') || currentSite.getStoredConfig('sitepolicy') ||
|
||||||
|
|
Loading…
Reference in New Issue