Skip to content

Commit 2a6005e

Browse files
author
github-actions-bot
committed
Updates
0 parents  commit 2a6005e

40 files changed

Lines changed: 17561 additions & 0 deletions

404.html

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8">
5+
<title>Slim</title>
6+
<script type="text/javascript">
7+
/*
8+
* Hack for GitHub Pages (https://github.com/rafgraph/spa-github-pages)
9+
* or other deployments that may serve the app out of a bucket.
10+
* This script takes the current URL and converts the path and query
11+
* string into just a query string, and then redirects the browser
12+
* to the new URL with only a query string and hash fragment,
13+
* e.g. https://www.foo.tld/one/two?a=b&c=d#qwe, becomes
14+
* https://www.foo.tld/?/one/two&a=b~and~c=d#qwe.
15+
* Note: this 404.html file must be at least 512 bytes for it to work
16+
* with Internet Explorer (it is currently > 512 bytes)
17+
*/
18+
19+
// Account for "slim" path prefix in "https://imagingdatacommons.github.io/slim".
20+
(function(l) {
21+
var pathSegments = l.pathname.split('/').slice(1)
22+
var numPathSegmentsToKeep = pathSegments.indexOf('studies');
23+
24+
if (numPathSegmentsToKeep >= 0 && !pathSegments.includes('?')) {
25+
var addressSegments = [
26+
l.protocol,
27+
'//',
28+
l.hostname,
29+
(l.port ? ':' + l.port : ''),
30+
];
31+
var address = addressSegments.join('');
32+
var pathToKeep = l.pathname.split('/').slice(0, 1 + numPathSegmentsToKeep).join('/');
33+
var pathToModify = l.pathname.slice(1).split('/').slice(numPathSegmentsToKeep).join('/');
34+
var updatedPathSegments = [
35+
pathToKeep,
36+
'/?/',
37+
pathToModify.replace(/&/g, '~and~'),
38+
(l.search ? '~query~' + l.search.slice(1).replace(/&/g, '~and~') : ''),
39+
l.hash
40+
];
41+
var updatedPath = updatedPathSegments.join('')
42+
l.replace(address + updatedPath);
43+
}
44+
}(window.location))
45+
</script>
46+
</head>
47+
<body>
48+
</body>
49+
</html>

asset-manifest.json

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"files": {
3+
"main.css": "https://imagingdatacommons.github.io/slim/static/css/main.e6c13ad2.css",
4+
"main.js": "https://imagingdatacommons.github.io/slim/static/js/main.822ed3cf.js",
5+
"static/css/288.1a7a4d74.chunk.css": "https://imagingdatacommons.github.io/slim/static/css/288.1a7a4d74.chunk.css",
6+
"static/js/288.22db443d.chunk.js": "https://imagingdatacommons.github.io/slim/static/js/288.22db443d.chunk.js",
7+
"static/css/575.3fb18dfe.chunk.css": "https://imagingdatacommons.github.io/slim/static/css/575.3fb18dfe.chunk.css",
8+
"static/js/575.f85817d8.chunk.js": "https://imagingdatacommons.github.io/slim/static/js/575.f85817d8.chunk.js",
9+
"static/js/75.84ca098e.chunk.js": "https://imagingdatacommons.github.io/slim/static/js/75.84ca098e.chunk.js",
10+
"static/js/203.da395abc.chunk.js": "https://imagingdatacommons.github.io/slim/static/js/203.da395abc.chunk.js",
11+
"static/js/dicomMicroscopyViewer.min.js.map": "https://imagingdatacommons.github.io/slim/static/js/dicomMicroscopyViewer.min.js.map",
12+
"static/js/dicomMicroscopyViewer.min.js": "https://imagingdatacommons.github.io/slim/static/js/dicomMicroscopyViewer.min.js",
13+
"static/js/dataLoader.worker.min.js.map": "https://imagingdatacommons.github.io/slim/static/js/dataLoader.worker.min.js.map",
14+
"static/js/dataLoader.worker.min.js": "https://imagingdatacommons.github.io/slim/static/js/dataLoader.worker.min.js",
15+
"static/js/openjpegwasm_decode.wasm": "https://imagingdatacommons.github.io/slim/static/js/openjpegwasm_decode.wasm",
16+
"static/js/dicomiccwasm.wasm": "https://imagingdatacommons.github.io/slim/static/js/dicomiccwasm.wasm",
17+
"static/js/libjpegturbowasm_decode.wasm": "https://imagingdatacommons.github.io/slim/static/js/libjpegturbowasm_decode.wasm",
18+
"static/js/charlswasm_decode.wasm": "https://imagingdatacommons.github.io/slim/static/js/charlswasm_decode.wasm",
19+
"index.html": "https://imagingdatacommons.github.io/slim/index.html",
20+
"main.e6c13ad2.css.map": "https://imagingdatacommons.github.io/slim/static/css/main.e6c13ad2.css.map",
21+
"main.822ed3cf.js.map": "https://imagingdatacommons.github.io/slim/static/js/main.822ed3cf.js.map",
22+
"288.1a7a4d74.chunk.css.map": "https://imagingdatacommons.github.io/slim/static/css/288.1a7a4d74.chunk.css.map",
23+
"288.22db443d.chunk.js.map": "https://imagingdatacommons.github.io/slim/static/js/288.22db443d.chunk.js.map",
24+
"575.3fb18dfe.chunk.css.map": "https://imagingdatacommons.github.io/slim/static/css/575.3fb18dfe.chunk.css.map",
25+
"575.f85817d8.chunk.js.map": "https://imagingdatacommons.github.io/slim/static/js/575.f85817d8.chunk.js.map",
26+
"75.84ca098e.chunk.js.map": "https://imagingdatacommons.github.io/slim/static/js/75.84ca098e.chunk.js.map",
27+
"203.da395abc.chunk.js.map": "https://imagingdatacommons.github.io/slim/static/js/203.da395abc.chunk.js.map"
28+
},
29+
"entrypoints": [
30+
"static/css/main.e6c13ad2.css",
31+
"static/js/main.822ed3cf.js"
32+
]
33+
}

config/demo.js

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
window.config = {
2+
path: '/slim',
3+
servers: [
4+
{
5+
id: 'demo',
6+
url: 'https://idc-external-006.uc.r.appspot.com/dcm4chee-arc/aets/DCM4CHEE/rs',
7+
write: false
8+
}
9+
],
10+
preload: true,
11+
disableAnnotationTools: false,
12+
annotations: [
13+
{
14+
finding: { value: '85756007', schemeDesignator: 'SCT', meaning: 'Tissue' }
15+
}
16+
],
17+
// Logger configuration
18+
logger: {
19+
level: 'WARN', // DEBUG, LOG, WARN, ERROR, NONE
20+
enableInProduction: false,
21+
enableInDevelopment: true
22+
}
23+
}

config/local.js

Lines changed: 151 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,151 @@
1+
window.config = {
2+
// This must match the location configured for web server
3+
path: '/',
4+
servers: [
5+
{
6+
id: 'local',
7+
// This must match the proxy location configured for the web server
8+
url: 'http://localhost:8008/dcm4chee-arc/aets/DCM4CHEE/rs',
9+
write: true
10+
}
11+
],
12+
disableWorklist: false,
13+
disableAnnotationTools: false,
14+
mode: 'light',
15+
preload: true,
16+
annotations: [
17+
{
18+
finding: {
19+
value: '85756007',
20+
schemeDesignator: 'SCT',
21+
meaning: 'Tissue'
22+
},
23+
findingCategory: {
24+
value: '91723000',
25+
schemeDesignator: 'SCT',
26+
meaning: 'Anatomical structure'
27+
},
28+
geometryTypes: ['polygon', 'freehandpolygon'],
29+
style: {
30+
stroke: {
31+
color: [255, 255, 0, 1],
32+
width: 2
33+
},
34+
fill: {
35+
color: [255, 255, 255, 0.2]
36+
}
37+
}
38+
},
39+
{
40+
finding: {
41+
value: '108369006',
42+
schemeDesignator: 'SCT',
43+
meaning: 'Tumor'
44+
},
45+
findingCategory: {
46+
value: '49755003',
47+
schemeDesignator: 'SCT',
48+
meaning: 'Morphologically abnormal structure'
49+
},
50+
geometryTypes: ['polygon', 'freehandpolygon'],
51+
style: {
52+
stroke: {
53+
color: [255, 0, 255, 1],
54+
width: 2
55+
},
56+
fill: {
57+
color: [255, 255, 255, 0.2]
58+
}
59+
}
60+
},
61+
{
62+
finding: {
63+
value: '34823008',
64+
schemeDesignator: 'SCT',
65+
meaning: 'Tumor necrosis'
66+
},
67+
findingCategory: {
68+
value: '49755003',
69+
schemeDesignator: 'SCT',
70+
meaning: 'Morphologically abnormal structure'
71+
},
72+
geometryTypes: ['polygon', 'freehandpolygon'],
73+
style: {
74+
stroke: {
75+
color: [51, 204, 51, 1],
76+
width: 2
77+
},
78+
fill: {
79+
color: [255, 255, 255, 0.2]
80+
}
81+
}
82+
},
83+
{
84+
finding: {
85+
value: '369705002',
86+
schemeDesignator: 'SCT',
87+
meaning: 'Invasive tumor border'
88+
},
89+
findingCategory: {
90+
value: '395557000',
91+
schemeDesignator: 'SCT',
92+
meaning: 'Tumor finding'
93+
},
94+
geometryTypes: ['line', 'freehandline'],
95+
style: {
96+
stroke: {
97+
color: [51, 102, 255, 1],
98+
width: 2
99+
},
100+
fill: {
101+
color: [255, 255, 255, 0.2]
102+
}
103+
}
104+
},
105+
{
106+
finding: {
107+
value: '399721002',
108+
schemeDesignator: 'SCT',
109+
meaning: 'Tumor infiltration by lymphocytes present'
110+
},
111+
findingCategory: {
112+
value: '395557000',
113+
schemeDesignator: 'SCT',
114+
meaning: 'Tumor finding'
115+
},
116+
geometryTypes: ['polygon', 'freehandpolygon'],
117+
style: {
118+
stroke: {
119+
color: [51, 204, 204, 1],
120+
width: 2
121+
},
122+
fill: {
123+
color: [255, 255, 255, 0.2]
124+
}
125+
}
126+
},
127+
{
128+
finding: {
129+
value: '47973001',
130+
schemeDesignator: 'SCT',
131+
meaning: 'Artifact'
132+
},
133+
geometryTypes: ['polygon', 'freehandpolygon'],
134+
style: {
135+
stroke: {
136+
color: [255, 80, 80, 1],
137+
width: 2
138+
},
139+
fill: {
140+
color: [255, 255, 255, 0.2]
141+
}
142+
}
143+
}
144+
],
145+
// Logger configuration
146+
logger: {
147+
level: 'DEBUG', // DEBUG, LOG, WARN, ERROR, NONE
148+
enableInProduction: false,
149+
enableInDevelopment: true
150+
}
151+
}

config/preview.js

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
window.config = {
2+
path: '/',
3+
servers: [
4+
{
5+
id: 'preview',
6+
url: 'https://proxy.imaging.datacommons.cancer.gov/current/viewer-only-no-downloads-see-tinyurl-dot-com-slash-3j3d9jyp/dicomWeb',
7+
write: false
8+
}
9+
],
10+
oidc: {
11+
authority: 'https://accounts.google.com',
12+
clientId: '293449031882-k4um45hl4g94fsgbnviel0lh38836i9v.apps.googleusercontent.com',
13+
scope: 'email profile openid https://www.googleapis.com/auth/cloud-healthcare',
14+
grantType: 'implicit'
15+
},
16+
disableWorklist: false,
17+
disableAnnotationTools: false,
18+
enableServerSelection: true,
19+
mode: 'light',
20+
preload: true,
21+
annotations: [
22+
{
23+
finding: { value: '85756007', schemeDesignator: 'SCT', meaning: 'Tissue' },
24+
style: {
25+
stroke: {
26+
color: [51, 204, 51, 1],
27+
width: 2
28+
},
29+
fill: {
30+
color: [255, 255, 255, 0.2]
31+
}
32+
}
33+
}
34+
],
35+
// Logger configuration
36+
logger: {
37+
level: 'WARN', // DEBUG, LOG, WARN, ERROR, NONE
38+
enableInProduction: false,
39+
enableInDevelopment: true
40+
}
41+
}

favicon.ico

21.8 KB
Binary file not shown.

index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="https://imagingdatacommons.github.io/slim/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="Slim" content="Slide Microscopy Viewer"/><link rel="apple-touch-icon" href="https://imagingdatacommons.github.io/slim/logo192.png"/><script type="text/javascript" src="https://imagingdatacommons.github.io/slim/config/demo.js"></script><link rel="manifest" href="https://imagingdatacommons.github.io/slim/manifest.json"/><title>Slim</title><script type="text/javascript">!function(n){if("/"===n.search[1]){var a=n.search.slice(1).split("~query~").map((function(n){return n.replace(/~and~/g,"&")})).join("?");window.history.replaceState(null,null,n.pathname.slice(0,-1)+a+n.hash)}}(window.location)</script><script defer="defer" src="https://imagingdatacommons.github.io/slim/static/js/main.822ed3cf.js"></script><link href="https://imagingdatacommons.github.io/slim/static/css/main.e6c13ad2.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>

logo.svg

Lines changed: 5 additions & 0 deletions
Loading

logo192.png

2.49 KB
Loading

logo512.png

7 KB
Loading

0 commit comments

Comments
 (0)