mirror of
				https://github.com/mathuo/dockview
				synced 2025-11-04 14:10:32 +00:00 
			
		
		
		
	chore: fix docs build
This commit is contained in:
		
							parent
							
								
									f6e816fa10
								
							
						
					
					
						commit
						db9703a150
					
				@ -14,7 +14,7 @@ const { version } = JSON.parse(
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
const REACT_VERSION = '18.2.0';
 | 
					const REACT_VERSION = '18.2.0';
 | 
				
			||||||
const VUE_VERSION = '3.4.21';
 | 
					const VUE_VERSION = '3.4.21';
 | 
				
			||||||
const DOCKVIEW_VERSION = version;
 | 
					const DOCKVIEW_VERSION = 'latest'; // version;
 | 
				
			||||||
const USE_LOCAL_CDN = argv.slice(2).includes('--local');
 | 
					const USE_LOCAL_CDN = argv.slice(2).includes('--local');
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const local = 'http://localhost:1111';
 | 
					const local = 'http://localhost:1111';
 | 
				
			||||||
 | 
				
			|||||||
@ -8,8 +8,10 @@ const BASE_SANDBOX_URL =
 | 
				
			|||||||
export const _CodeRunner = (props: { id: string; height: number }) => {
 | 
					export const _CodeRunner = (props: { id: string; height: number }) => {
 | 
				
			||||||
    const [framework] = useActiveFramework();
 | 
					    const [framework] = useActiveFramework();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    const sandboxUrl = `${BASE_SANDBOX_URL}/templates/${props.id}/${framework}`;
 | 
					    const sandboxUrl = `${BASE_SANDBOX_URL}/templates/${
 | 
				
			||||||
    const path = `/templates/${props.id}/${framework}/index.html`;
 | 
					        props.id
 | 
				
			||||||
 | 
					    }/${framework.toLowerCase()}`;
 | 
				
			||||||
 | 
					    const path = `/templates/${props.id}/${framework.toLowerCase()}/index.html`;
 | 
				
			||||||
    return (
 | 
					    return (
 | 
				
			||||||
        <div>
 | 
					        <div>
 | 
				
			||||||
            <iframe
 | 
					            <iframe
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user