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
@@ -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();
|
||||
}
|
||||
@@ -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;
|
||||
Reference in new issue
Block a user