From 8773a3d2c1cd90464c2d2c65e5a937429780495d Mon Sep 17 00:00:00 2001 From: Steven Date: Sun, 4 Feb 2024 22:45:51 +0800 Subject: [PATCH] chore: tweak assets folder --- web/src/{wasm => assets}/gomark.wasm | Bin 8486983 -> 8486983 bytes web/src/{wasm => assets}/wasm_exec.js | 0 web/src/main.tsx | 6 +++--- 3 files changed, 3 insertions(+), 3 deletions(-) rename web/src/{wasm => assets}/gomark.wasm (99%) rename web/src/{wasm => assets}/wasm_exec.js (100%) diff --git a/web/src/wasm/gomark.wasm b/web/src/assets/gomark.wasm similarity index 99% rename from web/src/wasm/gomark.wasm rename to web/src/assets/gomark.wasm index 90a479f04f378d15ea936dfbf5aa1e8e92535e95..6d6ea00200570b6926b8b1e48b256a2544ac3be8 100755 GIT binary patch delta 602 zcmWN==~fbP90uT1*`n?HzOPou%zuViC@ZXFM-dFM#b%fpAw(*0iQdXSy!ExC*V5?{ zyqQkd(C<0t+1~guv@L&)Rt&E**GtW=*=D=#8t!s+F{Q_+({{02S!m|0a$BD%xsKC` z;$^>;>UML@ft$-ldAF90O=RM+Nw;WDDW_iuRc)|dC}q<2cMv;>oy0C;h}cc+A@&mc zh+$%c*iRfF4iblm!^9EdC~=H9PMjc45~qmM#2Ml&agI1oTp%tImx#;672+y!jkr$S zAZ`-3h}*;+VwAW`+#~K2F=C8}6B?ltiZBS1NDvlb6As}LN#X(VkQgT(5s!%{M2eUo zo)XW9=fotDCNe~p$Psy>Kop4*F-1%hWnzY?5LIH9ctO;NIimg>^P8LbP&tw1xq%Vc zmhyaMnL*@+Dr`7GnD7j(p?k{o!(hZ;X)OiAtBu}RztsuHm8Q&?rec~=)s1ArPActZ zeQRF6l&|D#`9?0tx6+foY{)={GLnn3DO>WLY|ACtk;}3x-^&m3qwLAPT#>7CO|HvN Uav(oT$S?A%{Pw55wej!ofA?40dv4FkzUQt7KH=D4FqS7P<3lhO#!DN#_3?XW0##hCIPfs1V7RO8A zW*o1<|CxC<*M4+t+F#uhets&fkIc3PykaUAYqV?8!fbrCFjOAOk2jr}Y(1Y@agtGx zjgOaV1I=c3t{rAG)m%80i4CUX`6xG8N%>==89z}U4zl&>bod>yMQjz@M2FZec8Hx~ zm*^B-Vz<~M_KJOCzc?TcibLYCI3kXUW8%0tAx?@@;?W1R@lD;*Pj0`o%qQUpx>4Vo(f;VKE{e zicygk8Ict^F(w{~$Kr{2D#pb#F(LBextJ7F;)N*uW_o=+SN5u5!gYF+ZW#I{*YN|d z7zWj1rJStzpsj#@p7wMM1ib38xhcrnM#yMCYN_9eZag^g+Z z(!R2WTmW diff --git a/web/src/wasm/wasm_exec.js b/web/src/assets/wasm_exec.js similarity index 100% rename from web/src/wasm/wasm_exec.js rename to web/src/assets/wasm_exec.js diff --git a/web/src/main.tsx b/web/src/main.tsx index d0980f84..abad1e07 100644 --- a/web/src/main.tsx +++ b/web/src/main.tsx @@ -11,12 +11,12 @@ import "./less/highlight.less"; import router from "./router"; import store from "./store"; import theme from "./theme"; -import wasmUrl from "./wasm/gomark.wasm?url"; -import "./wasm/wasm_exec.js"; +import gomarkWasm from "./assets/gomark.wasm?url"; +import "./assets/wasm_exec.js"; (async () => { const go = new window.Go(); - const responsePromise = fetch(wasmUrl); + const responsePromise = fetch(gomarkWasm); const { instance } = await WebAssembly.instantiateStreaming(responsePromise, go.importObject); go.run(instance);