diff --git a/meshcentral.js b/meshcentral.js
index eae34229..3d0ec8d2 100644
--- a/meshcentral.js
+++ b/meshcentral.js
@@ -79,7 +79,7 @@ function CreateMeshCentralServer(config, args) {
try { require('./pass').hash('test', function () { }); } catch (e) { console.log('Old version of node, must upgrade.'); return; } // TODO: Not sure if this test works or not.
// Check for invalid arguments
- var validArguments = ['_', 'notls', 'user', 'port', 'aliasport', 'mpsport', 'mpsaliasport', 'redirport', 'cert', 'mpscert', 'deletedomain', 'deletedefaultdomain', 'showall', 'showusers', 'shownodes', 'showmeshes', 'showevents', 'showpower', 'clearpower', 'showiplocations', 'help', 'exactports', 'install', 'uninstall', 'start', 'stop', 'restart', 'debug', 'filespath', 'datapath', 'noagentupdate', 'launch', 'noserverbackup', 'mongodb', 'mongodbcol', 'wanonly', 'lanonly', 'nousers', 'mpsdebug', 'mpspass', 'ciralocalfqdn', 'dbexport', 'dbimport', 'selfupdate', 'tlsoffload', 'userallowedip', 'fastcert', 'swarmport', 'swarmdebug', 'logintoken', 'logintokenkey', 'logintokengen', 'logintokengen', 'mailtokengen', 'admin', 'unadmin', 'sessionkey', 'sessiontime'];
+ var validArguments = ['_', 'notls', 'user', 'port', 'aliasport', 'mpsport', 'mpsaliasport', 'redirport', 'cert', 'mpscert', 'deletedomain', 'deletedefaultdomain', 'showall', 'showusers', 'shownodes', 'showmeshes', 'showevents', 'showpower', 'clearpower', 'showiplocations', 'help', 'exactports', 'install', 'uninstall', 'start', 'stop', 'restart', 'debug', 'filespath', 'datapath', 'noagentupdate', 'launch', 'noserverbackup', 'mongodb', 'mongodbcol', 'wanonly', 'lanonly', 'nousers', 'mpsdebug', 'mpspass', 'ciralocalfqdn', 'dbexport', 'dbimport', 'selfupdate', 'tlsoffload', 'userallowedip', 'fastcert', 'swarmport', 'swarmdebug', 'logintoken', 'logintokenkey', 'logintokengen', 'logintokengen', 'mailtokengen', 'admin', 'unadmin', 'sessionkey', 'sessiontime', 'minify'];
for (var arg in obj.args) { obj.args[arg.toLocaleLowerCase()] = obj.args[arg]; if (validArguments.indexOf(arg.toLocaleLowerCase()) == -1) { console.log('Invalid argument "' + arg + '", use --help.'); return; } }
if (obj.args.mongodb == true) { console.log('Must specify: --mongodb [connectionstring] \r\nSee https://docs.mongodb.com/manual/reference/connection-string/ for MongoDB connection string.'); return; }
for (var i in obj.config.settings) { obj.args[i] = obj.config.settings[i]; } // Place all settings into arguments, arguments have already been placed into settings so arguments take precedence.
diff --git a/package.json b/package.json
index 0fc4a91c..c4e017ba 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "meshcentral",
- "version": "0.1.9-n",
+ "version": "0.1.9-p",
"keywords": [
"Remote Management",
"Intel AMT",
diff --git a/public/commander.htm b/public/commander.htm
index 3a923358..9915314a 100644
--- a/public/commander.htm
+++ b/public/commander.htm
@@ -1,37752 +1,1109 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Disconnected
-
-
-
-
-
-
-
-
-
-
-
-
Loading...
-
-
-
System Status
-
-
-
-
Hardware Information
-
-
-
-
Event Log
-
-
-
-
-
Network Settings
-
-
-
-
-
User Accounts
-
-
-
-
-
-
Audit Log
-
-
-
-
Security Settings
-
-
-
-
Internet Settings
-
-
-
-
System Defense
-
-
-
-
Agent Presence
-
-
-
-
Script Editor
-
-
-
-
Script
-
-
-
Compiled Script
-
-
-
-
Variables
-
-
-
Console
-
-
-
-
Storage
-
-
-
-
Event Subscriptions
-
-
-
-
Wake Alarms
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Local Network Any Permission
-
Granted Permissions
-
-
-
*Minimum 8 characters with upper, lowercase, 0-9, and one of !@#$%^&*()+-
-
-
-
-
-
- Warning: Some power actions may result in data loss and may disconnect the desktop, terminal or disk redirection sessions.
-
-
-
-
-
-
Primary display Secondary display Third display Consent Display
-
-
-
-
- Not Required
- Required for KVM only
- Always Required
-
-
-
-
-
-
-
-
-
-
- WPA2 PSK
-
- WPA PSK
-
-
-
-
Authentication
-
-
-
- CCMP-AES
- TKIP-RC4
- WEP
- None
-
-
Encryption
-
-
-
-
-
- This will save the entire state of Intel® AMT for this machine into file. Passwords will not be saved, but some sensitive data may be included.
-
-
-
- Disabled
- ICMP response
- RMCP response
- ICMP & RMCP response
-
-
-
-
-
-
- Disabled
- Disabled, DHCP update
- Enabled
-
-
Dynamic DNS client
-
-
-
-
Defaut Interval is 1440 minutes, Default TTL is 900 seconds.
-
-
-
-
-
- Power up
- Power cycle
- Power down
- Reset
- Set boot options
-
-
Remote Command
-
-
-
-
- None
- Force CD/DVD Boot
- Force PXE Boot
- Force Hard Disk Boot
- Force Diagnostic Boot
-
-
Boot Source
-
-
-
- None
- Index 1
- Index 2
- Index 3
- Index 4
-
-
Boot Media Index
-
-
-
- Boot to floppy
- Boot to CDROM
-
-
IDER Boot Device
-
-
-
- System Default
- Quiet
- Verbose
- Blank Screen
-
-
Verbocity
-
-
-
-
-
-
-
-
-
-
Wake date (year-month-day)
-
-
-
-
-
-
Wake time (hour:min:sec)
-
-
-
-
-
-
Interval (days-hours-min)
-
-
-
-
- Keep alarm
- Delete on completion
-
-
-
After wake
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
+Disconnected
Loading...
System Status
Hardware Information
Event Log
Network Settings
User Accounts
Audit Log
Security Settings
Internet Settings
System Defense
Agent Presence Script Editor Script
Compiled Script Variables
Console
Storage
Event Subscriptions
Wake Alarms
\ No newline at end of file
diff --git a/public/compress.bat b/public/compress.bat
new file mode 100644
index 00000000..eb11924b
--- /dev/null
+++ b/public/compress.bat
@@ -0,0 +1,32 @@
+@ECHO OFF
+REM *** default.handlebars
+DEL ..\views\default-min.handlebars
+COPY ..\views\default.handlebars index.html
+..\..\WebSiteCompiler\bin\Debug\WebSiteCompiler.exe compress.wcc -c
+COPY compress.htm ..\views\default-min.handlebars
+DEL compress.htm
+DEL index.html
+
+REM *** default-mobile.handlebars
+DEL ..\views\default-mobile-min.handlebars
+COPY ..\views\default-mobile.handlebars index.html
+..\..\WebSiteCompiler\bin\Debug\WebSiteCompiler.exe compress.wcc -c
+COPY compress.htm ..\views\default-mobile-min.handlebars
+DEL compress.htm
+DEL index.html
+
+REM *** login.handlebars
+DEL ..\views\login-min.handlebars
+COPY ..\views\login.handlebars index.html
+..\..\WebSiteCompiler\bin\Debug\WebSiteCompiler.exe compress.wcc -c
+COPY compress.htm ..\views\login-min.handlebars
+DEL compress.htm
+DEL index.html
+
+REM *** login-mobile.handlebars
+DEL ..\views\login-mobile-min.handlebars
+COPY ..\views\login-mobile.handlebars index.html
+..\..\WebSiteCompiler\bin\Debug\WebSiteCompiler.exe compress.wcc -c
+COPY compress.htm ..\views\login-mobile-min.handlebars
+DEL compress.htm
+DEL index.html
\ No newline at end of file
diff --git a/public/compress.wcc b/public/compress.wcc
new file mode 100644
index 00000000..501e4440
Binary files /dev/null and b/public/compress.wcc differ
diff --git a/views/default-min.handlebars b/views/default-min.handlebars
new file mode 100644
index 00000000..dc37353c
--- /dev/null
+++ b/views/default-min.handlebars
@@ -0,0 +1 @@
+ MeshCentral
My Devices My Account My Events My Files My Users ↔
General Desktop Terminal Files Events Intel® AMT Console
Server disconnected, click to reconnect .
My Events
Show
Last 60 Last 120 Last 250 Last 500 Last 1000
My Files This files is shared publically, click "link" to get public url.
✓
✗
General -
Intel® AMT Redirection port or KVM feature is disabled, click here to enable it.
Remote computer is not powered on, click here to issue a power command.
Terminal -
Intel® AMT Redirection port or KVM feature is disabled, click here to enable it.
Remote computer is not powered on, click here to issue a power command.
Events -
Show
Last 60 Last 120 Last 250 Last 500 Last 1000
- General
- General
- Events
Show
Last 60 Last 120 Last 250 Last 500 Last 1000
Local file upload Server file selection File Selection
Mesh Agent Remote Desktop 100% 87.5% 75% 62.5% 50% 37.5% 25% 12.5% Scaling
Fast Medium Slow Very slow Frame rate
Intel® AMT Hardware KVM RLE8, Fastest RLE16, Recommended RAW8, Slow RAW16, Very Slow Image Encoding
\ No newline at end of file
diff --git a/views/default-mobile-min.handlebars b/views/default-mobile-min.handlebars
new file mode 100644
index 00000000..03beab2e
--- /dev/null
+++ b/views/default-mobile-min.handlebars
@@ -0,0 +1 @@
+ MeshCentral - Login
Server disconnected, click to reconnect .
◀
◀
My Files
◀
\ No newline at end of file
diff --git a/views/default-mobile.handlebars b/views/default-mobile.handlebars
index 332116f7..7e3129c2 100644
--- a/views/default-mobile.handlebars
+++ b/views/default-mobile.handlebars
@@ -17,22 +17,97 @@
-
+
MeshCentral - Login
MeshCentral - Login
Welcome Connect to your home or office devices from anywhere in the world using MeshCentral, the remote monitoring and management web site. You will need to download and install a special management agent on your computers. Once installed, each mesh enabled computer will show up in the "My Devices" section of this web site and you will be able to monitor them, power them on and off and take control of them.
\ No newline at end of file
diff --git a/views/login-mobile-min.handlebars b/views/login-mobile-min.handlebars
new file mode 100644
index 00000000..3594a124
--- /dev/null
+++ b/views/login-mobile-min.handlebars
@@ -0,0 +1 @@
+ MeshCentral - Login
\ No newline at end of file
diff --git a/views/login-mobile.handlebars b/views/login-mobile.handlebars
index cf679b30..b636679f 100644
--- a/views/login-mobile.handlebars
+++ b/views/login-mobile.handlebars
@@ -175,9 +175,9 @@