fix: failed to load fonts

This commit is contained in:
Tienson Qin
2025-08-05 02:31:15 +08:00
parent f8c15c96e1
commit a20d1f2b18
4 changed files with 19 additions and 8 deletions

View File

@@ -132,8 +132,20 @@ const common = {
'node_modules/@logseq/sqlite-wasm/sqlite-wasm/jswasm/sqlite3.wasm',
]).pipe(gulp.dest(path.join(outputPath, 'mobile', 'js'))),
() => gulp.src([
'packages/ui/dist/silkhq/*',
]).pipe(gulp.dest(path.join(outputPath, 'mobile'))),
'packages/ui/dist/silkhq/*.css*',
]).pipe(gulp.dest(path.join(outputPath, 'mobile', 'css'))),
() => gulp.src([
'packages/ui/dist/silkhq/*.js*',
]).pipe(gulp.dest(path.join(outputPath, 'mobile', 'js'))),
() => gulp.src([
'node_modules/inter-ui/inter.css',
]).pipe(gulp.dest(path.join(outputPath, 'mobile', 'css'))),
() => gulp.src('node_modules/inter-ui/Inter (web)/*.*').
pipe(gulp.dest(path.join(outputPath, 'mobile', 'css', 'Inter (web)'))),
() => gulp.src([
'node_modules/@tabler/icons-webfont/fonts/**',
'node_modules/katex/dist/fonts/*.woff2',
]).pipe(gulp.dest(path.join(outputPath, 'mobile', 'css', 'fonts'))),
)(...params)
},

View File

@@ -71,8 +71,8 @@
"cljs:watch": "clojure -M:cljs watch app electron",
"cljs:storybook-watch": "clojure -M:cljs watch stories-dev",
"gulp:mobile-watch": "gulp watchMobile",
"css:mobile-build": "postcss tailwind.mobile.css -o static/mobile/style.css --verbose --env production",
"css:mobile-watch": "cross-env TAILWIND_MODE=watch postcss tailwind.mobile.css -o static/mobile/style.css --verbose --watch",
"css:mobile-build": "postcss tailwind.mobile.css -o static/mobile/css/style.css --verbose --env production",
"css:mobile-watch": "cross-env TAILWIND_MODE=watch postcss tailwind.mobile.css -o static/mobile/css/style.css --verbose --watch",
"cljs:mobile-watch": "clojure -M:cljs watch mobile",
"cljs:release-mobile": "clojure -M:cljs release mobile",
"cljs:dev-watch": "clojure -M:cljs watch app electron mobile",

View File

@@ -3,8 +3,8 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover">
<link href="./silkhq.css" rel="stylesheet" type="text/css">
<link href="./style.css" rel="stylesheet" type="text/css">
<link href="./css/silkhq.css" rel="stylesheet" type="text/css">
<link href="./css/style.css" rel="stylesheet" type="text/css">
<title>Logseq: A privacy-first platform for knowledge management and collaboration</title>
</head>
<body>
@@ -35,7 +35,7 @@ const portal = new MagicPortal(worker);
<script defer src="./js/tabler.ext.js"></script>
<script defer src="./js/ui.js"></script>
<script defer src="./js/amplify.js"></script>
<script defer src="./silkhq.js"></script>
<script defer src="./js/silkhq.js"></script>
<script defer src="./js/shared.js"></script>
<script defer src="./js/main.js"></script>
<script defer src="./js/code-editor.js"></script>

File diff suppressed because one or more lines are too long