added too options new tab appearance with possibility to change theme (white, black, dark) and zoom factor

This commit is contained in:
azivner
2018-06-08 23:18:53 -04:00
parent c39d0be8cd
commit 89a5cab98f
9 changed files with 105 additions and 5 deletions

View File

@@ -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,