Add directory loading support and enhance file handling in the viewer
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Empty Viewer Test</title>
|
||||
<style>
|
||||
html,body{height:100%;margin:0}
|
||||
.dicom-viewer-root{width:100%;height:100vh;background:#222;color:#fff}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="root" class="dicom-viewer-root" style="width:100%;height:100vh;"
|
||||
data-auto-cache-stack="false"
|
||||
data-empty="true"
|
||||
></div>
|
||||
|
||||
<!-- Provide a small noop React Refresh preamble to avoid plugin-react preamble errors -->
|
||||
<script>
|
||||
// If plugin-react's preamble wasn't injected for some reason, provide no-op
|
||||
// implementations so the runtime does not throw. This disables fast-refresh
|
||||
// semantics for this page but keeps HMR from crashing.
|
||||
window.$RefreshReg$ = window.$RefreshReg$ || function() {};
|
||||
window.$RefreshSig$ = window.$RefreshSig$ || function() { return function(type) { return type; }; };
|
||||
</script>
|
||||
|
||||
<script type="module" src="/src/main.tsx"></script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user