Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.
Go dockerfossgomarkdownmemomicroblognote-takingnotesopen-sourceown-your-datareactself-hostedsqlitetimeline
fix: initial gomark wasm
Stevene78311b3aff2
diff --git a/web/.eslintrc.json b/web/.eslintrc.jsonindex 209b39ad0..01ef673ae 100644--- a/web/.eslintrc.json+++ b/web/.eslintrc.json@@ -13,7 +13,7 @@"sourceType": "module"},"plugins": ["react", "@typescript-eslint", "prettier"],- "ignorePatterns": ["node_modules", "dist", "public"],+ "ignorePatterns": ["node_modules", "dist", "public", "src/wasm"],"rules": {"prettier/prettier": ["error",diff --git a/web/index.html b/web/index.htmlindex 022137faf..2bbab70e7 100644--- a/web/index.html+++ b/web/index.html@@ -17,7 +17,6 @@document.documentElement.classList.add("dark");}</script>- <script src="wasm_exec.js"></script></head><body><div id="root"></div>diff --git a/web/src/main.tsx b/web/src/main.tsxindex db7ffb4c1..d0980f849 100644--- a/web/src/main.tsx+++ b/web/src/main.tsx@@ -5,13 +5,14 @@ import { Provider } from "react-redux";import { RouterProvider } from "react-router-dom";import "./css/global.css";import "./css/tailwind.css";-import wasmUrl from "./gomark.wasm?url";import "./helpers/polyfill";import "./i18n";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";(async () => {const go = new window.Go();diff --git a/web/src/gomark.wasm b/web/src/wasm/gomark.wasmsimilarity index 100%rename from web/src/gomark.wasmrename to web/src/wasm/gomark.wasmdiff --git a/web/public/wasm_exec.js b/web/src/wasm/wasm_exec.jssimilarity index 100%rename from web/public/wasm_exec.jsrename to web/src/wasm/wasm_exec.js