wip on react transition 7
This commit is contained in:
1 parent
765abfd572
commit
9ae5dd25ce
21 files changed
+74
-55
No files matched your search
@@ -49,24 +49,16 @@
|
||||
<tr>
|
||||
<td>Last Commit Hash</td>
|
||||
<td>
|
||||
<a target='_blank' href="{{githubUrl}}/commit/{{gitRev 'long'}}">
|
||||
{{gitRev 'long'}}
|
||||
<a target='_blank' href="{{githubUrl}}/commit/{{gitSHA}}">
|
||||
{{gitSHA}}
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Latest Tag</td>
|
||||
<td>Version</td>
|
||||
<td>
|
||||
<a target='_blank' href="{{githubUrl}}/releases/tag/{{gitRev 'tag'}}">
|
||||
{{gitRev 'tag'}}
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Branch</td>
|
||||
<td>
|
||||
<a target='_blank' href="{{githubUrl}}/tree/{{gitRev 'branch'}}">
|
||||
{{gitRev 'branch'}}
|
||||
<a target='_blank' href="{{githubUrl}}/releases/tag/{{gitVersion}}">
|
||||
{{gitVersion}}
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -1,5 +1,15 @@
|
||||
import { OHIF } from 'meteor/ohif:core';
|
||||
|
||||
Template.aboutModal.helpers({
|
||||
githubUrl() {
|
||||
return 'https://github.com/OHIF/Viewers';
|
||||
},
|
||||
|
||||
gitSHA() {
|
||||
return OHIF.info.sha;
|
||||
},
|
||||
|
||||
gitVersion() {
|
||||
return OHIF.info.version;
|
||||
}
|
||||
});
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Random } from 'meteor/random';
|
||||
import { OHIF } from 'meteor/ohif:core';
|
||||
import { OHIFError } from './OHIFError';
|
||||
|
||||
const OBJECT = 'object';
|
||||
@@ -30,7 +30,7 @@ export class ImageSet {
|
||||
enumerable: false,
|
||||
configurable: false,
|
||||
writable: false,
|
||||
value: Random.id() // Unique ID of the instance
|
||||
value: OHIF.utils.guid() // Unique ID of the instance
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Random } from 'meteor/random';
|
||||
import { OHIF } from 'meteor/ohif:core';
|
||||
import { ReactiveVar } from 'meteor/reactive-var';
|
||||
|
||||
/**
|
||||
@@ -130,7 +130,7 @@ export class TypeSafeCollection {
|
||||
let id = null,
|
||||
found = this._elementWithPayload(payload, true);
|
||||
if (!found) {
|
||||
id = Random.id();
|
||||
id = OHIF.utils.guid();
|
||||
this._elements(true).push({ id, payload });
|
||||
this._invalidate();
|
||||
this._trigger('insert', { id, data: payload });
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import { Session } from 'meteor/session';
|
||||
import { Random } from 'meteor/random';
|
||||
import { OHIF } from 'meteor/ohif:core';
|
||||
import { cornerstone, cornerstoneTools } from 'meteor/ohif:cornerstone';
|
||||
|
||||
@@ -171,7 +170,7 @@ export const toolManager = {
|
||||
activeTool[button] = toolName;
|
||||
|
||||
// Enable reactivity
|
||||
Session.set('ToolManagerActiveToolUpdated', Random.id());
|
||||
Session.set('ToolManagerActiveToolUpdated', OHIF.utils.guid());
|
||||
},
|
||||
|
||||
instantiateTools(element) {
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import { Session } from 'meteor/session';
|
||||
import { Random } from 'meteor/random';
|
||||
import { $ } from 'meteor/jquery';
|
||||
import { _ } from 'meteor/underscore';
|
||||
// Local Modules
|
||||
@@ -222,7 +221,7 @@ const toggleCineDialog = () => {
|
||||
const dialog = document.getElementById('cineDialog');
|
||||
|
||||
toggleDialog(dialog, stopAllClips);
|
||||
Session.set('UpdateCINE', Random.id());
|
||||
Session.set('UpdateCINE', Math.random());
|
||||
};
|
||||
|
||||
const toggleDownloadDialog = () => {
|
||||
|
||||
Reference in new issue
Block a user