Added canopy version string to about page.
This commit is contained in:
parent
37e9658d51
commit
ed656cb530
|
|
@ -1,6 +1,7 @@
|
|||
{
|
||||
"name": "canopy-of-indev",
|
||||
"version": "0.4.3",
|
||||
"canopyDisplayVersion": "0.4-Indev Hotfix 3",
|
||||
"license": "AGPL-3.0-only",
|
||||
"dependencies": {
|
||||
"@braintree/sanitize-url": "^7.1.1",
|
||||
|
|
|
|||
|
|
@ -16,6 +16,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.*/
|
|||
|
||||
//Config
|
||||
const config = require('../../config.json');
|
||||
const package = require('../../package.json');
|
||||
|
||||
//Local Imports
|
||||
const csrfUtils = require('../utils/csrfUtils');
|
||||
|
|
@ -23,5 +24,5 @@ const csrfUtils = require('../utils/csrfUtils');
|
|||
//register page functions
|
||||
module.exports.get = async function(req, res){
|
||||
//Render page
|
||||
return res.render('about', {aboutText: config.aboutText, instance: config.instanceName, user: req.session.user, csrfToken: csrfUtils.generateToken(req)});
|
||||
return res.render('about', {aboutText: config.aboutText, instance: config.instanceName, user: req.session.user, version: package.canopyDisplayVersion, csrfToken: csrfUtils.generateToken(req)});
|
||||
}
|
||||
|
|
@ -75,6 +75,7 @@ const apiRouter = require('./routers/apiRouter');
|
|||
|
||||
//Define Config variables
|
||||
const config = require('../config.json');
|
||||
const package = require('../package.json');
|
||||
const port = config.port;
|
||||
const dbUrl = `mongodb://${config.db.user}:${config.db.pass}@${config.db.address}:${config.db.port}/${config.db.database}`;
|
||||
|
||||
|
|
@ -208,7 +209,7 @@ Might be better if she kicked off everything at once, and ran a while loop to ch
|
|||
This runs once at server startup, and most startups will run fairly quickly so... Not worth it?*/
|
||||
async function asyncKickStart(){
|
||||
//Lettum fuckin' know wassup
|
||||
console.log(`${config.instanceName}(Powered by Canopy) is booting up!`);
|
||||
console.log(`${config.instanceName}(Powered by Canopy ${package.canopyDisplayVersion}) is booting up!`);
|
||||
|
||||
//Run legacy migration
|
||||
await migrationModel.ingestLegacyDump();
|
||||
|
|
|
|||
|
|
@ -40,6 +40,8 @@ along with this program. If not, see <https://www.gnu.org/licenses/>. %>
|
|||
it was decided that the original cytube fork, fore.st, had been run past it's prime. In summer/fall 2024, work began on a
|
||||
replacement. The resulting software became <a href="https://git.ourfore.st/rainbownapkin/canopy">Canopy</a>, which was
|
||||
first used to run the ourfore.st instance in late 2025.</p>
|
||||
<br>
|
||||
<h2>Canopy Ver: <%= version %></h2>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
|
|
|
|||
Loading…
Reference in a new issue