mirror of
https://github.com/zadam/trilium.git
synced 2025-01-18 04:59:56 +08:00
added data directory to options -> about
This commit is contained in:
parent
9e2e6fb50c
commit
9de29584a4
3 changed files with 15 additions and 6 deletions
|
@ -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 {};
|
||||||
})());
|
})());
|
||||||
|
|
|
@ -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
|
||||||
};
|
};
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in a new issue