From d557054189ff95c04b6f7a60948c70440299989a Mon Sep 17 00:00:00 2001 From: Ylian Saint-Hilaire Date: Mon, 26 Aug 2019 16:55:50 -0700 Subject: [PATCH] Added session timer to desktop and terminal. --- package.json | 2 +- public/scripts/common-0.0.1.js | 3 +++ views/default-min.handlebars | 2 +- views/default-mobile-min.handlebars | 2 +- views/default.handlebars | 29 +++++++++++++++++++++++++++++ views/login-min.handlebars | 2 +- views/login-mobile-min.handlebars | 2 +- views/messenger-min.handlebars | 2 +- 8 files changed, 38 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 551c0cf6..db138012 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "meshcentral", - "version": "0.4.0-j", + "version": "0.4.0-k", "keywords": [ "Remote Management", "Intel AMT", diff --git a/public/scripts/common-0.0.1.js b/public/scripts/common-0.0.1.js index 144fa947..53799a5c 100644 --- a/public/scripts/common-0.0.1.js +++ b/public/scripts/common-0.0.1.js @@ -99,3 +99,6 @@ function random(max) { return Math.floor(Math.random() * max); } // Trademarks function trademarks(x) { return x.replace(/\(R\)/g, '®').replace(/\(TM\)/g, '™'); } + +// Pad a number with zeros on the left +function zeroPad(num, c) { if (c == null) { c = 2; } var s = "00000000" + num; return s.substr(s.length - c); } \ No newline at end of file diff --git a/views/default-min.handlebars b/views/default-min.handlebars index 04fea34c..70762c3c 100644 --- a/views/default-min.handlebars +++ b/views/default-min.handlebars @@ -1 +1 @@ - {{{title}}}
{{{title}}}
{{{title2}}}

{{{logoutControl}}}

 

\ No newline at end of file + {{{title}}}
{{{title}}}
{{{title2}}}

{{{logoutControl}}}

 

\ No newline at end of file diff --git a/views/default-mobile-min.handlebars b/views/default-mobile-min.handlebars index 525bc6b1..cdc07113 100644 --- a/views/default-mobile-min.handlebars +++ b/views/default-mobile-min.handlebars @@ -1 +1 @@ - {{{title}}}
{{{title}}}
{{{title2}}}
\ No newline at end of file + {{{title}}}
{{{title}}}
{{{title2}}}
\ No newline at end of file diff --git a/views/default.handlebars b/views/default.handlebars index ee04e157..7bb4d071 100644 --- a/views/default.handlebars +++ b/views/default.handlebars @@ -495,6 +495,7 @@
+       @@ -568,6 +569,7 @@
+