fix(google-cloud): Minor cleanup to prevent Google Cloud packages from being added unnecessarily
This commit is contained in:
1 parent
9486522552
commit
46828dc5ce
31 files changed
+48
-45
No files matched your search
@@ -0,0 +1,6 @@
|
||||
import { Meteor } from 'meteor/meteor';
|
||||
|
||||
if (Meteor.settings.public.googleCloud) {
|
||||
import '../imports/index.js';
|
||||
import '../imports/client/index.js';
|
||||
}
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -0,0 +1,8 @@
|
||||
import { OHIF } from 'meteor/ohif:core';
|
||||
import GCloudAdapter from './lib/GCloudAdapter';
|
||||
|
||||
const gcloud = GCloudAdapter;
|
||||
|
||||
OHIF.gcloud = gcloud;
|
||||
|
||||
|
||||
+5
-1
@@ -1,3 +1,5 @@
|
||||
import { OHIF } from 'meteor/ohif:core';
|
||||
|
||||
const GCloudAdapter = {};
|
||||
|
||||
const GCP_HEALTHCARE_CONFIG = 'GCP_HEALTHCARE_CONFIG';
|
||||
@@ -16,7 +18,9 @@ GCloudAdapter.setConfig = function(config) {
|
||||
|
||||
GCloudAdapter.showDicomStorePicker = function(options) {
|
||||
return OHIF.ui.showDialog('dicomStorePicker', options).then(config => {
|
||||
if (config) OHIF.gcloud.setConfig(config);
|
||||
if (config) {
|
||||
OHIF.gcloud.setConfig(config);
|
||||
}
|
||||
return config;
|
||||
});
|
||||
};
|
||||
+2
-3
@@ -1,5 +1,4 @@
|
||||
export function loadScript(url, callback=undefined)
|
||||
{
|
||||
export function loadScript(url, callback) {
|
||||
var head = document.getElementsByTagName('head')[0];
|
||||
var script = document.createElement('script');
|
||||
script.type = 'text/javascript';
|
||||
@@ -7,4 +6,4 @@ export function loadScript(url, callback=undefined)
|
||||
script.onreadystatechange = callback;
|
||||
script.onload = callback;
|
||||
head.appendChild(script);
|
||||
}
|
||||
}
|
||||
@@ -1,9 +0,0 @@
|
||||
import { OHIF } from 'meteor/ohif:core';
|
||||
import GCloudAdapter from './lib/GCloudAdapter';
|
||||
|
||||
if (Meteor.settings.public.googleCloud) {
|
||||
const gcloud = GCloudAdapter;
|
||||
OHIF.gcloud = gcloud;
|
||||
}
|
||||
|
||||
|
||||
@@ -19,12 +19,9 @@ Package.onUse(function(api) {
|
||||
api.use(['templating', 'stylus'], 'client');
|
||||
|
||||
// Main module
|
||||
api.mainModule('main.js', ['client']);
|
||||
api.mainModule('client/main.js', ['client']);
|
||||
|
||||
// Client imports and routes
|
||||
api.addFiles('client/index.js', 'client');
|
||||
|
||||
var assets = [
|
||||
const assets = [
|
||||
'.npm/package/node_modules/healthcare-api-adapter/dist/gcp.min.js',
|
||||
'.npm/package/node_modules/healthcare-api-adapter/dist/gcp.0.min.js',
|
||||
'.npm/package/node_modules/healthcare-api-adapter/dist/gcp.2.min.js',
|
||||
|
||||
Reference in new issue
Block a user