-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(google-cloud): Minor cleanup to prevent Google Cloud packages fro…
…m being added unnecessarily
- Loading branch information
Showing
31 changed files
with
48 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { OHIF } from 'meteor/ohif:core'; | ||
import devModeMediator from './demoModeMediator.js'; | ||
import './components'; | ||
import './routes.js'; | ||
|
||
OHIF.demoMode = devModeMediator; | ||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,3 @@ | ||
import { OHIF } from 'meteor/ohif:core'; | ||
import './client'; | ||
import devModeMediator from './client/demoModeMediator.js'; | ||
|
||
const demoMode = Meteor.settings && Meteor.settings.public && Meteor.settings.public.demoMode; | ||
|
||
if (demoMode) { | ||
OHIF.demoMode = devModeMediator; | ||
} | ||
if (Meteor.settings.public.demoMode) { | ||
import './imports/client/index.js'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,5 +16,4 @@ Package.onUse(function(api) { | |
|
||
// Main module | ||
api.mainModule('main.js', 'client'); | ||
|
||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { OHIF } from 'meteor/ohif:core'; | ||
import GCloudAdapter from './lib/GCloudAdapter'; | ||
|
||
const gcloud = GCloudAdapter; | ||
|
||
OHIF.gcloud = gcloud; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 2 additions & 3 deletions
5
Packages/ohif-google-cloud/lib/utils.js → ...es/ohif-google-cloud/imports/lib/utils.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
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'; | ||
script.src = url; | ||
script.onreadystatechange = callback; | ||
script.onload = callback; | ||
head.appendChild(script); | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters