forked from logseq/logseq
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(dev): import cljs runtime scripts for parser worker base on file://
- Loading branch information
Showing
5 changed files
with
84 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta content="minimum-scale=1, initial-scale=1, width=device-width, shrink-to-fit=no" name="viewport"> | ||
<link href="./css/style.css" rel="stylesheet" type="text/css"> | ||
<link href="./img/logo.png" rel="shortcut icon" type="image/png"> | ||
<link href="./img/logo.png" rel="shortcut icon" sizes="192x192"> | ||
<link href="./img/logo.png" rel="apple-touch-icon"> | ||
<meta content="Logseq" name="apple-mobile-web-app-title"> | ||
<meta content="yes" name="apple-mobile-web-app-capable"> | ||
<meta content="yes" name="apple-touch-fullscreen"> | ||
<meta content="black-translucent" name="apple-mobile-web-app-status-bar-style"> | ||
<meta content="yes" name="mobile-web-app-capable"> | ||
<meta content="summary" name="twitter:card"> | ||
<meta content="A privacy-first, open-source platform for knowledge management and collaboration." name="twitter:description"> | ||
<meta content="@logseq" name="twitter:site"> | ||
<meta content="A privacy-first, open-source platform for knowledge management and collaboration." name="twitter:title"> | ||
<meta content="https://asset.logseq.com/static/img/logo.png" name="twitter:image:src"> | ||
<meta content="A privacy-first, open-source platform for knowledge management and collaboration." name="twitter:image:alt"> | ||
<meta content="A privacy-first, open-source platform for knowledge management and collaboration." property="og:title"> | ||
<meta content="site" property="og:type"> | ||
<meta content="https://logseq.com" property="og:url"> | ||
<meta content="https://asset.logseq.com/static/img/logo.png" property="og:image"> | ||
<meta content="A privacy-first, open-source platform for knowledge management and collaboration." property="og:description"> | ||
<title>Logseq: A privacy-first platform for knowledge management and collaboration</title> | ||
<meta content="logseq" property="og:site_name"> | ||
<meta content="A privacy-first, open-source platform for knowledge management and collaboration." name="description"> | ||
</head> | ||
<body> | ||
<div id="root"></div> | ||
<script>window.__LSP__HOST__ = true</script> | ||
<script>window.user = null</script> | ||
<script> | ||
window.EXCALIDRAW_ASSET_PATH = "./js/"; | ||
</script> | ||
<script src="./js/magic_portal.js"></script> | ||
<script>let worker = new Worker('./js/worker.js') | ||
const portal = new MagicPortal(worker); | ||
(async () => { | ||
const git = await portal.get('git') | ||
window.git = git | ||
const fs = await portal.get('fs') | ||
window.fs = fs | ||
const pfs = await portal.get('pfs') | ||
window.pfs = pfs | ||
const gitHttp = await portal.get('gitHttp') | ||
window.gitHttp = gitHttp | ||
const workerThread = await portal.get('workerThread') | ||
window.workerThread = workerThread | ||
})() | ||
</script> | ||
<script defer src="./js/highlight.min.js"></script> | ||
<script defer src="./js/interact.min.js"></script> | ||
<script defer src="./js/lsplugin.core.js"></script> | ||
<script defer src="./js/main.js"></script> | ||
<script defer src="./js/code-editor.js"></script> | ||
<script defer src="./js/age-encryption.js"></script> | ||
<script defer src="./js/excalidraw.js"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
const originImportScripts = globalThis.importScripts | ||
const importScripts = (url) => { | ||
originImportScripts( | ||
(location.href.startsWith('blob') ? 'file://PWD_ROOT/static/js/' : '') + url | ||
) | ||
};; |