From 952e082a541f03b3a451decfc1f610cd21109f6b Mon Sep 17 00:00:00 2001 From: David Sehnal <david.sehnal@gmail.com> Date: Sun, 10 Feb 2019 21:10:36 +0100 Subject: [PATCH] mol-plugin: added version --- src/mol-plugin/context.ts | 4 ++++ src/mol-plugin/version.ts | 7 +++++++ 2 files changed, 11 insertions(+) create mode 100644 src/mol-plugin/version.ts diff --git a/src/mol-plugin/context.ts b/src/mol-plugin/context.ts index 5325d1856..26fb5b3a2 100644 --- a/src/mol-plugin/context.ts +++ b/src/mol-plugin/context.ts @@ -26,6 +26,7 @@ import { LociLabelEntry, LociLabelManager } from './util/loci-label-manager'; import { ajaxGet } from 'mol-util/data-source'; import { CustomPropertyRegistry } from './util/custom-prop-registry'; import { VolumeRepresentationRegistry } from 'mol-repr/volume/registry'; +import { PLUGIN_VERSION } from './version'; export class PluginContext { private disposed = false; @@ -171,6 +172,9 @@ export class PluginContext { this.initDataActions(); this.lociLabels = new LociLabelManager(this); + + // TODO: find a better solution for this. + setTimeout(() => this.log.message(`Mol* Plugin ${PLUGIN_VERSION}`), 500); } // settings = ; diff --git a/src/mol-plugin/version.ts b/src/mol-plugin/version.ts new file mode 100644 index 000000000..42890943f --- /dev/null +++ b/src/mol-plugin/version.ts @@ -0,0 +1,7 @@ +/** + * Copyright (c) 2018 mol* contributors, licensed under MIT, See LICENSE file for more info. + * + * @author David Sehnal <david.sehnal@gmail.com> + */ + +export const PLUGIN_VERSION = '0.1.0'; \ No newline at end of file -- GitLab