added data directory to options -> about

This commit is contained in:
azivner 2019-01-02 20:08:41 +01:00
parent 9e2e6fb50c
commit 9de29584a4
3 changed files with 15 additions and 6 deletions

View file

@ -198,15 +198,17 @@ addTabHandler((async function () {
const $syncVersion = $("#sync-version"); const $syncVersion = $("#sync-version");
const $buildDate = $("#build-date"); const $buildDate = $("#build-date");
const $buildRevision = $("#build-revision"); const $buildRevision = $("#build-revision");
const $dataDirectory = $("#data-directory");
const appInfo = await server.get('app-info'); const appInfo = await server.get('app-info');
$appVersion.html(appInfo.appVersion); $appVersion.text(appInfo.appVersion);
$dbVersion.html(appInfo.dbVersion); $dbVersion.text(appInfo.dbVersion);
$syncVersion.html(appInfo.syncVersion); $syncVersion.text(appInfo.syncVersion);
$buildDate.html(appInfo.buildDate); $buildDate.text(appInfo.buildDate);
$buildRevision.html(appInfo.buildRevision); $buildRevision.text(appInfo.buildRevision);
$buildRevision.attr('href', 'https://github.com/zadam/trilium/commit/' + appInfo.buildRevision); $buildRevision.attr('href', 'https://github.com/zadam/trilium/commit/' + appInfo.buildRevision);
$dataDirectory.text(appInfo.dataDirectory);
return {}; return {};
})()); })());

View file

@ -2,6 +2,7 @@
const build = require('./build'); const build = require('./build');
const packageJson = require('../../package'); const packageJson = require('../../package');
const {TRILIUM_DATA_DIR} = require('./data_dir');
const APP_DB_VERSION = 121; const APP_DB_VERSION = 121;
const SYNC_VERSION = 2; const SYNC_VERSION = 2;
@ -11,5 +12,6 @@ module.exports = {
dbVersion: APP_DB_VERSION, dbVersion: APP_DB_VERSION,
syncVersion: SYNC_VERSION, syncVersion: SYNC_VERSION,
buildDate: build.buildDate, buildDate: build.buildDate,
buildRevision: build.buildRevision buildRevision: build.buildRevision,
dataDirectory: TRILIUM_DATA_DIR
}; };

View file

@ -216,6 +216,11 @@
<th>Build revision:</th> <th>Build revision:</th>
<td><a href="" target="_blank" id="build-revision"></a></td> <td><a href="" target="_blank" id="build-revision"></a></td>
</tr> </tr>
<tr>
<th>Data directory:</th>
<td id="data-directory"></td>
</tr>
</table> </table>
</div> </div>
</div> </div>