mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-09-22 04:01:38 +08:00
21 lines
663 B
TypeScript
21 lines
663 B
TypeScript
import path from "path";
|
|
import build from "./build.js";
|
|
import packageJson from "../../package.json" with { type: "json" };
|
|
import dataDir from "./data_dir.js";
|
|
|
|
const APP_DB_VERSION = 232;
|
|
const SYNC_VERSION = 36;
|
|
const CLIPPER_PROTOCOL_VERSION = "1.0";
|
|
|
|
export default {
|
|
appVersion: packageJson.version,
|
|
dbVersion: APP_DB_VERSION,
|
|
nodeVersion: process.version,
|
|
syncVersion: SYNC_VERSION,
|
|
buildDate: build.buildDate,
|
|
buildRevision: build.buildRevision,
|
|
dataDirectory: path.resolve(dataDir.TRILIUM_DATA_DIR),
|
|
clipperProtocolVersion: CLIPPER_PROTOCOL_VERSION,
|
|
utcDateTime: new Date().toISOString() // for timezone inference
|
|
};
|