Added Standalone Client-only Viewer with build instructions

This commit is contained in:
Erik Ziegler committed 2016-09-13 21:34:16 +02:00
1 parent 18de1deff3
commit a5a6e3a6bd
52 files changed
+2793 -2

No files matched your search

@@ -0,0 +1,17 @@
<template name="standaloneViewer">
<div class="topBar noselect">
<div class="clearfix p-x-1 p-t-1">
<a target='_blank'
class="brandSection pull-left"
href="http://ohif.org">
<svg class="logoImage">
<use xlink:href="/packages/viewerbase/assets/icons.svg#icon-ohif-logo"></use>
</svg>
<div class="logoText">
Open Health Imaging Foundation
</div>
</a>
</div>
</div>
{{> viewer }}
</template>
@@ -0,0 +1,6 @@
// Define the ViewerData global object
// If there is currently any Session data for this object,
// use this to repopulate the variable
Template.standaloneViewer.onCreated(() => {
ViewerData = Session.get('ViewerData') || {};
});
@@ -0,0 +1,70 @@
@import "{design}/app"
$expandedHeight = 160px
.logoImage
display: inline-block
height: 100%
float: left
.topBar
height: $topBarHeight
theme('color', '$textPrimaryColor')
theme('background-color', '$primaryBackgroundColor')
transition(all 0.5s ease)
.brandSection
height: 30px
display: inline-block
text-decoration: none
.logoImage
margin: 0 8px
width: 30px
.logoText
display: inline-block
font-family: $logoFontFamily
font-weight: $logoFontWeight
theme('color', '$textPrimaryColor')
line-height: 30px
.btn
theme('color', '$textSecondaryColor')
cursor: pointer
font-size: 13px
font-weight: 500
line-height: 26px
margin-top: 3px
&:hover
theme('color', '$hoverColor')
&:active
theme('color', '$activeColor')
&.studyList
background-color: rgba(21, 25, 30, 0.7)
height: $expandedHeight
.brandSection
height: 100%
width: 80%
padding-left: 50px
line-height: $expandedHeight
.logoImage
width: 50px
margin: 0 20px
.logoText
font-size: 30px
#worklistTabs
height: "calc(100% - %s)" % $topBarHeight
.tab-pane
.viewerContainer
.loadingTextDiv
theme('color', '$textSecondaryColor')
font-size: 30px