@elonzh/fafa 0.0.0-stage → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +55 -2
- package/dist/bin.js +8 -0
- package/dist/chunk-LKU762XJ.js +2807 -0
- package/dist/chunk-ZCVVJMRN.js +3311 -0
- package/dist/dist-G3FZO234.js +12 -0
- package/dist/index.js +9 -0
- package/package.json +65 -4
- package/themes/base.css +191 -0
- package/themes/default.css +32 -0
- package/themes/elegant.css +50 -0
- package/themes/green.css +47 -0
- package/themes/minimal.css +47 -0
- package/themes/official.css +74 -0
- package/themes/tech.css +47 -0
- package/themes/warm.css +48 -0
- package/web/assets/geist-cyrillic-ext-wght-normal-DjL33-gN.woff2 +0 -0
- package/web/assets/geist-cyrillic-wght-normal-BEAKL7Jp.woff2 +0 -0
- package/web/assets/geist-latin-ext-wght-normal-DC-KSUi6.woff2 +0 -0
- package/web/assets/geist-latin-wght-normal-BgDaEnEv.woff2 +0 -0
- package/web/assets/geist-mono-cyrillic-ext-wght-normal-X_5orZeX.woff2 +0 -0
- package/web/assets/geist-mono-cyrillic-wght-normal-DiZS0aHC.woff2 +0 -0
- package/web/assets/geist-mono-latin-ext-wght-normal-Bwz-egvJ.woff2 +0 -0
- package/web/assets/geist-mono-latin-wght-normal-XN7g48iV.woff2 +0 -0
- package/web/assets/geist-mono-symbols2-wght-normal-CO5SzqOn.woff2 +0 -0
- package/web/assets/geist-mono-vietnamese-wght-normal-DadHysG0.woff2 +0 -0
- package/web/assets/geist-vietnamese-wght-normal-6IgcOCM7.woff2 +0 -0
- package/web/assets/index-BT8QLdyk.css +1 -0
- package/web/assets/index-IRxKoB6K.js +25 -0
- package/web/icon.svg +6 -0
- package/web/index.html +31 -0
- package/web/manifest.webmanifest +17 -0
package/web/icon.svg
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" fill="none">
|
|
2
|
+
<rect width="64" height="64" rx="14" fill="#111111" />
|
|
3
|
+
<rect x="15" y="13" width="34" height="38" rx="4" stroke="#F4F5F7" stroke-width="3" />
|
|
4
|
+
<path d="M23 23h18M23 31h14M23 39h9" stroke="#F4F5F7" stroke-width="3" stroke-linecap="round" />
|
|
5
|
+
<circle cx="42" cy="40" r="4.5" fill="#2563EB" />
|
|
6
|
+
</svg>
|
package/web/index.html
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="zh-CN">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
|
+
<meta name="color-scheme" content="light dark" />
|
|
7
|
+
<meta name="theme-color" content="#fafafa" />
|
|
8
|
+
<title>发发 FaFa · 本地公众号排版工作台</title>
|
|
9
|
+
<link rel="manifest" href="/manifest.webmanifest" />
|
|
10
|
+
<link rel="icon" type="image/svg+xml" href="/icon.svg" sizes="any" />
|
|
11
|
+
<script>
|
|
12
|
+
(function () {
|
|
13
|
+
try {
|
|
14
|
+
var saved = localStorage.getItem("fafa.web.theme");
|
|
15
|
+
var mode = saved === "light" || saved === "dark" || saved === "system" ? saved : "system";
|
|
16
|
+
var prefersDark = window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches;
|
|
17
|
+
var isDark = mode === "dark" || (mode === "system" && prefersDark);
|
|
18
|
+
document.documentElement.classList.toggle("dark", isDark);
|
|
19
|
+
document.documentElement.style.colorScheme = isDark ? "dark" : "light";
|
|
20
|
+
var meta = document.querySelector('meta[name="theme-color"]');
|
|
21
|
+
if (meta) meta.setAttribute("content", isDark ? "#0e1013" : "#fafafa");
|
|
22
|
+
} catch (_) {}
|
|
23
|
+
})();
|
|
24
|
+
</script>
|
|
25
|
+
<script type="module" crossorigin src="/assets/index-IRxKoB6K.js"></script>
|
|
26
|
+
<link rel="stylesheet" crossorigin href="/assets/index-BT8QLdyk.css">
|
|
27
|
+
</head>
|
|
28
|
+
<body class="bg-background text-foreground antialiased">
|
|
29
|
+
<div id="root"></div>
|
|
30
|
+
</body>
|
|
31
|
+
</html>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "发发 FaFa 工作台",
|
|
3
|
+
"short_name": "发发 FaFa",
|
|
4
|
+
"description": "本地优先的微信公众号 Markdown 排版预览、导出与草稿投递工作台",
|
|
5
|
+
"start_url": "/",
|
|
6
|
+
"display": "standalone",
|
|
7
|
+
"background_color": "#f6f7f9",
|
|
8
|
+
"theme_color": "#1d4ed8",
|
|
9
|
+
"icons": [
|
|
10
|
+
{
|
|
11
|
+
"src": "/icon.svg",
|
|
12
|
+
"sizes": "any",
|
|
13
|
+
"type": "image/svg+xml",
|
|
14
|
+
"purpose": "any maskable"
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
}
|