artel3D Claude Sonnet 4.6 commited on
Commit
71b7a8d
·
1 Parent(s): a203826

fix: deploy standalone Viewer3D without ImportPanel backend dependency

Browse files
Files changed (4) hide show
  1. assets/index-Byu_i60q.js +0 -0
  2. assets/index-CH7Yrt_p.js +0 -0
  3. index.html +2 -1
  4. index.tsx +4 -16
assets/index-Byu_i60q.js ADDED
The diff for this file is too large to render. See raw diff
 
assets/index-CH7Yrt_p.js DELETED
The diff for this file is too large to render. See raw diff
 
index.html CHANGED
@@ -173,6 +173,7 @@
173
  </style>
174
 
175
  <link rel="stylesheet" href="/index.css">
 
176
  <script type="importmap">
177
  {
178
  "imports": {
@@ -187,7 +188,7 @@
187
  }
188
  }
189
  </script>
190
- <script type="module" crossorigin src="/assets/index-CH7Yrt_p.js"></script>
191
  </head>
192
  <body>
193
  <div id="root"></div>
 
173
  </style>
174
 
175
  <link rel="stylesheet" href="/index.css">
176
+
177
  <script type="importmap">
178
  {
179
  "imports": {
 
188
  }
189
  }
190
  </script>
191
+ <script type="module" crossorigin src="/assets/index-Byu_i60q.js"></script>
192
  </head>
193
  <body>
194
  <div id="root"></div>
index.tsx CHANGED
@@ -1,19 +1,7 @@
1
- import React, { useState } from 'react';
2
  import { createRoot } from 'react-dom/client';
3
  import Viewer3D from './Viewer3D';
4
- import ImportPanel from './ImportPanel';
5
 
6
- function App() {
7
- const [glbUrl, setGlbUrl] = useState<string | null>(null);
8
-
9
- return (
10
- <div style={{ display: 'flex', width: '100vw', height: '100vh', overflow: 'hidden' }}>
11
- <ImportPanel onGlbReady={setGlbUrl} />
12
- <div style={{ flex: 1, position: 'relative' }}>
13
- <Viewer3D modelUrl={glbUrl} />
14
- </div>
15
- </div>
16
- );
17
- }
18
-
19
- createRoot(document.getElementById('root')!).render(<App />);
 
1
+ import React from 'react';
2
  import { createRoot } from 'react-dom/client';
3
  import Viewer3D from './Viewer3D';
 
4
 
5
+ createRoot(document.getElementById('root')!).render(
6
+ <Viewer3D modelUrl={null} />
7
+ );