From a170a0513665fe6efd8605eea31d801c7aada4da Mon Sep 17 00:00:00 2001 From: Andre Tabarra Date: Wed, 31 Mar 2021 13:29:48 -0300 Subject: [PATCH] =?UTF-8?q?zap=20integration=20done=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dev_notes.md | 1 + fxmanifest.lua | 2 +- src/index.js | 12 ++++++------ version.json | 6 +++++- 4 files changed, 13 insertions(+), 8 deletions(-) diff --git a/dev_notes.md b/dev_notes.md index a4da7c9b3..a579bf827 100644 --- a/dev_notes.md +++ b/dev_notes.md @@ -19,6 +19,7 @@ - [x] zap: increase `txAdminVersionBestBy` by 10d when running in zap; - [x] zap: Ad placement on login page, main interface (desk/mobile), and home-hosting warning (CLI); - [x] make chart available without auth (since its public info anyways) and add thread filter +> v3.5.0 - [ ] allow 3 chars admin names NOTE: `\webroutes\adminManager\actions.js` `nameRegex` - [ ] disable server auto-start when no admins configured - [ ] login page indicate if the `admins.json` file is not found diff --git a/fxmanifest.lua b/fxmanifest.lua index a34beb515..c2527ade1 100644 --- a/fxmanifest.lua +++ b/fxmanifest.lua @@ -5,7 +5,7 @@ author 'Tabarra' description 'Remotely Manage & Monitor your GTA5 FiveM Server' repository 'https://github.com/tabarra/txAdmin' -version '3.5.0-dev' +version '3.5.0' rdr3_warning 'I acknowledge that this is a prerelease build of RedM, and I am aware my resources *will* become incompatible once RedM ships.' fx_version 'cerulean' diff --git a/src/index.js b/src/index.js index 1553ea591..ec78e147c 100644 --- a/src/index.js +++ b/src/index.js @@ -198,12 +198,12 @@ if(verbose) dir({isZapHosting, forceInterface, forceFXServerPort, txAdminPort, l const txVerBBLastUpdate = 1615200000; const txVerBBDelta = 28 + ((isZapHosting)? 10 : 0); const txAdminVersionBestBy = txVerBBLastUpdate + (txVerBBDelta * 86400); -dir({ - lastUpdate: new Date(txVerBBLastUpdate*1000).toLocaleString(), - nextUpdate: new Date(txAdminVersionBestBy*1000).toLocaleString(), - timeUntil: require('humanize-duration')(((now() - txAdminVersionBestBy)*1000)), - delta: txVerBBDelta -}) +// dir({ +// updateDelta: txVerBBDelta, +// lastUpdate: new Date(txVerBBLastUpdate*1000).toLocaleString(), +// nextUpdate: new Date(txAdminVersionBestBy*1000).toLocaleString(), +// timeUntil: require('humanize-duration')(((now() - txAdminVersionBestBy)*1000)), +// }) if(now() > txAdminVersionBestBy){ logError(`This version of txAdmin is outdated.`); logError(`Please update as soon as possible.`); diff --git a/version.json b/version.json index 66f305521..9ef16054f 100644 --- a/version.json +++ b/version.json @@ -1,5 +1,5 @@ { - "version": "3.4.0", + "version": "3.5.0", "allVersions": [ { "version": "1.0.1", @@ -244,6 +244,10 @@ { "version": "3.4.0", "changelog": "Preventing DDoS on txAdmin to cause false crash detection. Imporved onboarding experience." + }, + { + "version": "3.5.0", + "changelog": "Zap integration and minot tweaks, fixes and improvements." } ] }