This repository was archived by the owner on Nov 1, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +4
-5
lines changed Expand file tree Collapse file tree 4 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 1818 < title > IPFS Cluster Webui</ title >
1919 </ head >
2020 < body >
21- < script type ="module " src ="/index.tsx "> </ script >
21+ < script type ="module " src ="/src/ index.tsx "> </ script >
2222 < noscript > You need to enable JavaScript to run this app.</ noscript >
2323 < div id ="root "> </ div >
2424 </ body >
Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ import {viteCommonjs} from '@originjs/vite-plugin-commonjs';
66
77// https://vitejs.dev/config/
88export default defineConfig ( {
9- root : './src' ,
109 resolve : {
1110 alias : [
1211 {
@@ -37,7 +36,7 @@ export default defineConfig({
3736 ] ,
3837 build : {
3938 assetsDir : './assets' ,
40- outDir : '.. /build' ,
39+ outDir : './build' ,
4140 rollupOptions : { }
4241 }
4342} )
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ function mapOptions(options) {
66 return '' ;
77 const parts = [ ] ;
88 for ( const key of Object . keys ( options ) ) {
9- parts . push ( mapOptionName ( key ) + '=' + options [ key ] ) ;
9+ parts . push ( mapOptionName ( key ) + '=' + options [ key ] . toString ( ) ) ;
1010 }
1111 return parts . join ( '&' ) ;
1212}
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ export function mapOptions(options?: object): string {
33
44 const parts : string [ ] = [ ] ;
55 for ( const key of Object . keys ( options ) ) {
6- parts . push ( mapOptionName ( key ) + '=' + options [ key ] ) ;
6+ parts . push ( mapOptionName ( key ) + '=' + ( options as any ) [ key ] . toString ( ) ) ;
77 }
88 return parts . join ( '&' ) ;
99}
You can’t perform that action at this time.
0 commit comments