MOBILE-2549 about: Add compilation time
parent
e6c5607463
commit
d46cbe598c
|
@ -278,6 +278,10 @@ gulp.task('config', function(done) {
|
|||
}
|
||||
contents += ' static ' + key + ' = ' + value + ';\n';
|
||||
}
|
||||
|
||||
// Add compilation time.
|
||||
contents += ' static compilationtime = ' + Date.now() + ';\n';
|
||||
|
||||
contents += '}\n';
|
||||
|
||||
file.contents = new Buffer(contents);
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
"appready": "App ready",
|
||||
"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.",
|
||||
"compilationtime": "Compilation time",
|
||||
"cordovadevicemodel": "Cordova device model",
|
||||
"cordovadeviceosversion": "Cordova device OS version",
|
||||
"cordovadeviceplatform": "Cordova device platform",
|
||||
|
|
|
@ -36,6 +36,10 @@
|
|||
<h2>{{ 'core.settings.versioncode' | translate}}</h2>
|
||||
<p>{{ versionCode }}</p>
|
||||
</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">
|
||||
<h2>{{ 'core.settings.filesystemroot' | translate}}</h2>
|
||||
<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 { CoreComponentsModule } from '@components/components.module';
|
||||
import { CoreDirectivesModule } from '@directives/directives.module';
|
||||
import { CorePipesModule } from '@pipes/pipes.module';
|
||||
|
||||
@NgModule({
|
||||
declarations: [
|
||||
|
@ -26,6 +27,7 @@ import { CoreDirectivesModule } from '@directives/directives.module';
|
|||
imports: [
|
||||
CoreComponentsModule,
|
||||
CoreDirectivesModule,
|
||||
CorePipesModule,
|
||||
IonicPageModule.forChild(CoreSettingsAboutPage),
|
||||
TranslateModule.forChild()
|
||||
],
|
||||
|
|
|
@ -36,6 +36,7 @@ export class CoreSettingsAboutPage {
|
|||
appName: string;
|
||||
versionName: string;
|
||||
versionCode: number;
|
||||
compilationTime: number;
|
||||
privacyPolicy: string;
|
||||
navigator: Navigator;
|
||||
locationHref: string;
|
||||
|
@ -61,6 +62,7 @@ export class CoreSettingsAboutPage {
|
|||
this.appName = appProvider.isDesktop() ? CoreConfigConstants.desktopappname : CoreConfigConstants.appname;
|
||||
this.versionName = CoreConfigConstants.versionname;
|
||||
this.versionCode = CoreConfigConstants.versioncode;
|
||||
this.compilationTime = CoreConfigConstants.compilationtime;
|
||||
|
||||
// Calculate the privacy policy to use.
|
||||
this.privacyPolicy = currentSite.getStoredConfig('tool_mobile_apppolicy') || currentSite.getStoredConfig('sitepolicy') ||
|
||||
|
|
Loading…
Reference in New Issue