mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 10:55:55 +01:00
added too options new tab appearance with possibility to change theme (white, black, dark) and zoom factor
This commit is contained in:
@@ -4,9 +4,11 @@ const sourceIdService = require('../services/source_id');
|
||||
const sql = require('../services/sql');
|
||||
const labelService = require('../services/labels');
|
||||
const config = require('../services/config');
|
||||
const optionService = require('../services/options');
|
||||
|
||||
async function index(req, res) {
|
||||
res.render('index', {
|
||||
theme: await optionService.getOption('theme'),
|
||||
sourceId: await sourceIdService.generateSourceId(),
|
||||
maxSyncIdAtLoad: await sql.getValue("SELECT MAX(id) FROM sync"),
|
||||
instanceName: config.General ? config.General.instanceName : null,
|
||||
|
||||
Reference in New Issue
Block a user