reorganize packages, start converting overall app to react (very broken at the moment)

This commit is contained in:
Erik Ziegler committed 2018-12-12 18:06:25 +01:00
1 parent 024fe1a448
commit 5f30f7bd35
479 files changed
+5364 -11611

No files matched your search

@@ -0,0 +1,11 @@
import { Mongo } from 'meteor/mongo';
import { OHIF } from 'meteor/ohif:core';
// CurrentServer is a single document collection to describe which of the Servers is being used
const CurrentServer = new Mongo.Collection(null);
CurrentServer._debugName = 'CurrentServer';
OHIF.servers = OHIF.servers || {};
OHIF.servers.collections = OHIF.servers.collections || {};
OHIF.servers.collections.currentServer = CurrentServer;
export { CurrentServer };
@@ -0,0 +1,4 @@
import { CurrentServer } from './currentServer.js';
import { Servers } from './servers.js';
export { CurrentServer, Servers };
@@ -0,0 +1,17 @@
import { Mongo } from 'meteor/mongo';
import { OHIF } from 'meteor/ohif:core';
// import { Servers as ServerSchema } from 'meteor/ohif:servers/both/schema/servers.js';
let collectionName = 'servers';
if (Meteor.settings && Meteor.settings.public && Meteor.settings.public.clientOnly === true) {
collectionName = null;
}
// Servers describe the DICOM servers configurations
const Servers = new Mongo.Collection(collectionName);
// TODO: Make the Schema match what we are currently sticking into the Collection
//Servers.attachSchema(ServerSchema);
Servers._debugName = 'Servers';
OHIF.servers.collections.servers = Servers;
export { Servers };