wip on react transition 7

This commit is contained in:
Erik Ziegler committed 2018-12-02 08:23:43 +01:00
1 parent 765abfd572
commit 9ae5dd25ce
21 files changed
+74 -55

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
/**
* Create a random GUID
*
* @return {string}
*/
export default function guid() {
function s4() {
return Math.floor((1 + Math.random()) * 0x10000)
.toString(16)
.substring(1);
}
return s4() + s4() + '-' + s4() + '-' + s4() + '-' + s4() + '-' + s4() + s4() + s4();
}
+6
View File
@@ -1,2 +1,8 @@
import { OHIF } from 'meteor/ohif:core';
import './absoluteUrl';
import './objectPath';
import guid from './guid';
OHIF.utils = OHIF.utils || {}
OHIF.utils.guid = guid;