plotlink-ows 0.1.14 → 0.1.18
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/README.md +49 -57
- package/app/db.ts +1 -1
- package/app/lib/paths.ts +0 -2
- package/app/lib/publish.ts +150 -39
- package/app/prisma/schema.prisma +0 -36
- package/app/routes/dashboard.ts +53 -56
- package/app/routes/publish.ts +55 -24
- package/app/routes/stories.ts +156 -0
- package/app/routes/terminal.ts +154 -0
- package/app/routes/wallet.ts +40 -10
- package/app/server.ts +29 -81
- package/app/web/App.tsx +4 -6
- package/app/web/components/Dashboard.tsx +15 -47
- package/app/web/components/Layout.tsx +70 -103
- package/app/web/components/PreviewPanel.tsx +149 -0
- package/app/web/components/Settings.tsx +3 -84
- package/app/web/components/StoriesPage.tsx +157 -0
- package/app/web/components/StoryBrowser.tsx +137 -0
- package/app/web/components/TerminalPanel.tsx +122 -0
- package/app/web/components/WalletCard.tsx +14 -8
- package/app/web/dist/assets/index-D5gfwaEX.css +32 -0
- package/app/web/dist/assets/index-pBt5Q_bN.js +117 -0
- package/app/web/dist/index.html +3 -3
- package/app/web/dist/plotlink-logo.svg +5 -0
- package/app/web/public/plotlink-logo.svg +5 -0
- package/bin/plotlink-ows.js +13 -12
- package/package.json +9 -5
- package/app/lib/llm-client.ts +0 -265
- package/app/lib/writer-prompt.ts +0 -44
- package/app/routes/chat.ts +0 -135
- package/app/routes/config.ts +0 -210
- package/app/routes/oauth.ts +0 -150
- package/app/web/components/Chat.tsx +0 -272
- package/app/web/components/LLMSetup.tsx +0 -291
- package/app/web/components/Publish.tsx +0 -245
- package/app/web/dist/assets/index-C9kXlYO_.css +0 -2
- package/app/web/dist/assets/index-CJiiaLHs.js +0 -9
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
import { useState, useCallback } from "react";
|
|
2
|
+
import { StoryBrowser } from "./StoryBrowser";
|
|
3
|
+
import { TerminalPanel } from "./TerminalPanel";
|
|
4
|
+
import { PreviewPanel } from "./PreviewPanel";
|
|
5
|
+
|
|
6
|
+
interface StoriesPageProps {
|
|
7
|
+
token: string;
|
|
8
|
+
authFetch: (url: string, opts?: RequestInit) => Promise<Response>;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export function StoriesPage({ token, authFetch }: StoriesPageProps) {
|
|
12
|
+
const [selectedStory, setSelectedStory] = useState<string | null>(null);
|
|
13
|
+
const [selectedFile, setSelectedFile] = useState<string | null>(null);
|
|
14
|
+
const [publishingFile, setPublishingFile] = useState<string | null>(null);
|
|
15
|
+
const [publishProgress, setPublishProgress] = useState<string>("");
|
|
16
|
+
|
|
17
|
+
const handleSelectFile = useCallback((storyName: string, fileName: string) => {
|
|
18
|
+
setSelectedStory(storyName);
|
|
19
|
+
setSelectedFile(fileName);
|
|
20
|
+
}, []);
|
|
21
|
+
|
|
22
|
+
const handlePublish = useCallback(async (storyName: string, fileName: string) => {
|
|
23
|
+
setPublishingFile(fileName);
|
|
24
|
+
setPublishProgress("Reading file...");
|
|
25
|
+
|
|
26
|
+
try {
|
|
27
|
+
// Get file content
|
|
28
|
+
const fileRes = await authFetch(`/api/stories/${storyName}/${fileName}`);
|
|
29
|
+
if (!fileRes.ok) throw new Error("Failed to read file");
|
|
30
|
+
const fileData = await fileRes.json();
|
|
31
|
+
|
|
32
|
+
// Extract title from first heading or filename
|
|
33
|
+
const titleMatch = fileData.content.match(/^#\s+(.+)$/m);
|
|
34
|
+
const title = titleMatch ? titleMatch[1].slice(0, 60) : fileName.replace(".md", "");
|
|
35
|
+
|
|
36
|
+
// Determine genre from structure.md if available
|
|
37
|
+
let genre = "Fiction";
|
|
38
|
+
try {
|
|
39
|
+
const structRes = await authFetch(`/api/stories/${storyName}/structure.md`);
|
|
40
|
+
if (structRes.ok) {
|
|
41
|
+
const structData = await structRes.json();
|
|
42
|
+
const genreMatch = structData.content.match(/genre[:\s]+(.+)/i);
|
|
43
|
+
if (genreMatch) genre = genreMatch[1].trim().slice(0, 30);
|
|
44
|
+
}
|
|
45
|
+
} catch { /* ignore */ }
|
|
46
|
+
|
|
47
|
+
// For plot files, find the storylineId from the genesis publish status
|
|
48
|
+
let storylineId: number | undefined;
|
|
49
|
+
if (fileName.match(/^plot-\d+\.md$/)) {
|
|
50
|
+
try {
|
|
51
|
+
const storyRes = await authFetch(`/api/stories/${storyName}`);
|
|
52
|
+
if (storyRes.ok) {
|
|
53
|
+
const storyData = await storyRes.json();
|
|
54
|
+
const genesis = storyData.files.find((f: { file: string; storylineId?: number }) =>
|
|
55
|
+
f.file === "genesis.md" && f.storylineId);
|
|
56
|
+
storylineId = genesis?.storylineId;
|
|
57
|
+
}
|
|
58
|
+
} catch { /* ignore */ }
|
|
59
|
+
if (!storylineId) {
|
|
60
|
+
setPublishProgress("Error: Publish genesis first to create the storyline");
|
|
61
|
+
setTimeout(() => { setPublishingFile(null); setPublishProgress(""); }, 3000);
|
|
62
|
+
return;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
// Run publish flow via SSE
|
|
67
|
+
setPublishProgress("Publishing...");
|
|
68
|
+
const publishRes = await authFetch("/api/publish/file", {
|
|
69
|
+
method: "POST",
|
|
70
|
+
headers: { "Content-Type": "application/json" },
|
|
71
|
+
body: JSON.stringify({ storyName, fileName, title, content: fileData.content, genre, storylineId }),
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
if (!publishRes.ok) {
|
|
75
|
+
const err = await publishRes.json();
|
|
76
|
+
throw new Error(err.error || "Publish failed");
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
// Read SSE stream
|
|
80
|
+
const reader = publishRes.body?.getReader();
|
|
81
|
+
const decoder = new TextDecoder();
|
|
82
|
+
|
|
83
|
+
if (reader) {
|
|
84
|
+
while (true) {
|
|
85
|
+
const { done, value } = await reader.read();
|
|
86
|
+
if (done) break;
|
|
87
|
+
const text = decoder.decode(value);
|
|
88
|
+
const lines = text.split("\n").filter((l) => l.startsWith("data: "));
|
|
89
|
+
for (const line of lines) {
|
|
90
|
+
try {
|
|
91
|
+
const data = JSON.parse(line.slice(6));
|
|
92
|
+
if (data.step) setPublishProgress(data.step);
|
|
93
|
+
if (data.step === "done" && data.txHash) {
|
|
94
|
+
// Update publish status with gasCost
|
|
95
|
+
await authFetch(`/api/stories/${storyName}/${fileName}/publish-status`, {
|
|
96
|
+
method: "POST",
|
|
97
|
+
headers: { "Content-Type": "application/json" },
|
|
98
|
+
body: JSON.stringify({
|
|
99
|
+
txHash: data.txHash,
|
|
100
|
+
storylineId: data.storylineId,
|
|
101
|
+
contentCid: data.contentCid,
|
|
102
|
+
gasCost: data.gasCost,
|
|
103
|
+
}),
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
} catch { /* ignore partial SSE */ }
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
setPublishProgress("Published!");
|
|
112
|
+
} catch (err: unknown) {
|
|
113
|
+
const message = err instanceof Error ? err.message : "Publish failed";
|
|
114
|
+
setPublishProgress(`Error: ${message}`);
|
|
115
|
+
} finally {
|
|
116
|
+
setTimeout(() => {
|
|
117
|
+
setPublishingFile(null);
|
|
118
|
+
setPublishProgress("");
|
|
119
|
+
}, 3000);
|
|
120
|
+
}
|
|
121
|
+
}, [authFetch]);
|
|
122
|
+
|
|
123
|
+
return (
|
|
124
|
+
<div className="h-[calc(100vh-3.5rem)] flex">
|
|
125
|
+
{/* Story Browser Sidebar */}
|
|
126
|
+
<div className="w-56 border-r border-border flex-shrink-0">
|
|
127
|
+
<StoryBrowser
|
|
128
|
+
authFetch={authFetch}
|
|
129
|
+
selectedStory={selectedStory}
|
|
130
|
+
selectedFile={selectedFile}
|
|
131
|
+
onSelectFile={handleSelectFile}
|
|
132
|
+
/>
|
|
133
|
+
</div>
|
|
134
|
+
|
|
135
|
+
{/* Terminal */}
|
|
136
|
+
<div className="flex-1 min-w-0 border-r border-border">
|
|
137
|
+
<TerminalPanel token={token} />
|
|
138
|
+
</div>
|
|
139
|
+
|
|
140
|
+
{/* Preview */}
|
|
141
|
+
<div className="w-96 flex-shrink-0 flex flex-col">
|
|
142
|
+
<PreviewPanel
|
|
143
|
+
storyName={selectedStory}
|
|
144
|
+
fileName={selectedFile}
|
|
145
|
+
authFetch={authFetch}
|
|
146
|
+
onPublish={handlePublish}
|
|
147
|
+
publishingFile={publishingFile}
|
|
148
|
+
/>
|
|
149
|
+
{publishProgress && (
|
|
150
|
+
<div className="px-3 py-1.5 bg-surface border-t border-border text-xs text-muted">
|
|
151
|
+
{publishProgress}
|
|
152
|
+
</div>
|
|
153
|
+
)}
|
|
154
|
+
</div>
|
|
155
|
+
</div>
|
|
156
|
+
);
|
|
157
|
+
}
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import { useState, useEffect, useCallback } from "react";
|
|
2
|
+
|
|
3
|
+
interface FileStatus {
|
|
4
|
+
file: string;
|
|
5
|
+
status: "published" | "pending" | "draft";
|
|
6
|
+
txHash?: string;
|
|
7
|
+
storylineId?: number;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
interface StoryInfo {
|
|
11
|
+
name: string;
|
|
12
|
+
files: FileStatus[];
|
|
13
|
+
hasStructure: boolean;
|
|
14
|
+
hasGenesis: boolean;
|
|
15
|
+
plotCount: number;
|
|
16
|
+
publishedCount: number;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
interface StoryBrowserProps {
|
|
20
|
+
authFetch: (url: string, opts?: RequestInit) => Promise<Response>;
|
|
21
|
+
selectedStory: string | null;
|
|
22
|
+
selectedFile: string | null;
|
|
23
|
+
onSelectFile: (storyName: string, fileName: string) => void;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
const STATUS_ICON: Record<string, string> = {
|
|
27
|
+
published: "\u2713",
|
|
28
|
+
pending: "\u23F3",
|
|
29
|
+
draft: "\uD83D\uDCDD",
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
const STATUS_COLOR: Record<string, string> = {
|
|
33
|
+
published: "text-green-700",
|
|
34
|
+
pending: "text-amber-700",
|
|
35
|
+
draft: "text-muted",
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
export function StoryBrowser({ authFetch, selectedStory, selectedFile, onSelectFile }: StoryBrowserProps) {
|
|
39
|
+
const [stories, setStories] = useState<StoryInfo[]>([]);
|
|
40
|
+
const [expanded, setExpanded] = useState<Set<string>>(new Set());
|
|
41
|
+
|
|
42
|
+
const loadStories = useCallback(async () => {
|
|
43
|
+
try {
|
|
44
|
+
const res = await authFetch("/api/stories");
|
|
45
|
+
if (res.ok) {
|
|
46
|
+
const data = await res.json();
|
|
47
|
+
setStories(data.stories);
|
|
48
|
+
}
|
|
49
|
+
} catch { /* ignore */ }
|
|
50
|
+
}, [authFetch]);
|
|
51
|
+
|
|
52
|
+
useEffect(() => {
|
|
53
|
+
// eslint-disable-next-line react-hooks/set-state-in-effect -- initial load + polling
|
|
54
|
+
loadStories();
|
|
55
|
+
const interval = setInterval(loadStories, 5000);
|
|
56
|
+
return () => clearInterval(interval);
|
|
57
|
+
}, [loadStories]);
|
|
58
|
+
|
|
59
|
+
// Auto-expand selected story
|
|
60
|
+
useEffect(() => {
|
|
61
|
+
if (selectedStory) {
|
|
62
|
+
// eslint-disable-next-line react-hooks/set-state-in-effect -- derived from prop
|
|
63
|
+
setExpanded((prev) => new Set(prev).add(selectedStory));
|
|
64
|
+
}
|
|
65
|
+
}, [selectedStory]);
|
|
66
|
+
|
|
67
|
+
const toggleExpand = (name: string) => {
|
|
68
|
+
setExpanded((prev) => {
|
|
69
|
+
const next = new Set(prev);
|
|
70
|
+
if (next.has(name)) next.delete(name);
|
|
71
|
+
else next.add(name);
|
|
72
|
+
return next;
|
|
73
|
+
});
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
// Sort files: structure first, genesis, then plots in order
|
|
77
|
+
const sortFiles = (files: FileStatus[]) => {
|
|
78
|
+
const order = (f: string) => {
|
|
79
|
+
if (f === "structure.md") return 0;
|
|
80
|
+
if (f === "genesis.md") return 1;
|
|
81
|
+
const m = f.match(/^plot-(\d+)\.md$/);
|
|
82
|
+
return m ? 2 + parseInt(m[1]) : 100;
|
|
83
|
+
};
|
|
84
|
+
return [...files].sort((a, b) => order(a.file) - order(b.file));
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
return (
|
|
88
|
+
<div className="h-full flex flex-col">
|
|
89
|
+
<div className="px-3 py-1.5 border-b border-border flex items-center justify-between">
|
|
90
|
+
<span className="text-xs font-mono text-muted">Stories</span>
|
|
91
|
+
<span className="text-xs text-muted">{stories.length}</span>
|
|
92
|
+
</div>
|
|
93
|
+
<div className="flex-1 min-h-0 overflow-y-auto">
|
|
94
|
+
{stories.length === 0 ? (
|
|
95
|
+
<div className="p-3 text-sm text-muted">
|
|
96
|
+
<p>No stories yet.</p>
|
|
97
|
+
<p className="mt-1 text-xs">Use the terminal to start writing with Claude.</p>
|
|
98
|
+
</div>
|
|
99
|
+
) : (
|
|
100
|
+
stories.filter((s) => s.name !== "_example").map((story) => (
|
|
101
|
+
<div key={story.name}>
|
|
102
|
+
<button
|
|
103
|
+
onClick={() => toggleExpand(story.name)}
|
|
104
|
+
className="w-full px-3 py-2 text-left flex items-center gap-2 hover:bg-surface text-sm"
|
|
105
|
+
>
|
|
106
|
+
<span className="text-xs text-muted">{expanded.has(story.name) ? "\u25BC" : "\u25B6"}</span>
|
|
107
|
+
<span className="font-medium truncate">{story.name}</span>
|
|
108
|
+
<span className="ml-auto text-xs text-muted">
|
|
109
|
+
{story.publishedCount}/{story.files.length}
|
|
110
|
+
</span>
|
|
111
|
+
</button>
|
|
112
|
+
{expanded.has(story.name) && (
|
|
113
|
+
<div className="pl-4">
|
|
114
|
+
{sortFiles(story.files).map((f) => {
|
|
115
|
+
const isSelected = selectedStory === story.name && selectedFile === f.file;
|
|
116
|
+
return (
|
|
117
|
+
<button
|
|
118
|
+
key={f.file}
|
|
119
|
+
onClick={() => onSelectFile(story.name, f.file)}
|
|
120
|
+
className={`w-full px-3 py-1.5 text-left flex items-center gap-2 text-xs hover:bg-surface ${
|
|
121
|
+
isSelected ? "bg-surface font-medium" : ""
|
|
122
|
+
}`}
|
|
123
|
+
>
|
|
124
|
+
<span className={STATUS_COLOR[f.status]}>{STATUS_ICON[f.status]}</span>
|
|
125
|
+
<span className="truncate font-mono">{f.file}</span>
|
|
126
|
+
</button>
|
|
127
|
+
);
|
|
128
|
+
})}
|
|
129
|
+
</div>
|
|
130
|
+
)}
|
|
131
|
+
</div>
|
|
132
|
+
))
|
|
133
|
+
)}
|
|
134
|
+
</div>
|
|
135
|
+
</div>
|
|
136
|
+
);
|
|
137
|
+
}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import { useRef, useEffect, useCallback } from "react";
|
|
2
|
+
import { Terminal } from "@xterm/xterm";
|
|
3
|
+
import { FitAddon } from "@xterm/addon-fit";
|
|
4
|
+
import "@xterm/xterm/css/xterm.css";
|
|
5
|
+
|
|
6
|
+
interface TerminalPanelProps {
|
|
7
|
+
token: string;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export function TerminalPanel({ token }: TerminalPanelProps) {
|
|
11
|
+
const containerRef = useRef<HTMLDivElement>(null);
|
|
12
|
+
const termRef = useRef<Terminal | null>(null);
|
|
13
|
+
const wsRef = useRef<WebSocket | null>(null);
|
|
14
|
+
const fitRef = useRef<FitAddon | null>(null);
|
|
15
|
+
|
|
16
|
+
const connect = useCallback(() => {
|
|
17
|
+
if (!containerRef.current) return;
|
|
18
|
+
|
|
19
|
+
// Initialize terminal
|
|
20
|
+
const term = new Terminal({
|
|
21
|
+
scrollback: 5000,
|
|
22
|
+
fontSize: 13,
|
|
23
|
+
fontFamily: '"Geist Mono", ui-monospace, monospace',
|
|
24
|
+
lineHeight: 1.4,
|
|
25
|
+
letterSpacing: 0.5,
|
|
26
|
+
cursorBlink: true,
|
|
27
|
+
cursorStyle: "block",
|
|
28
|
+
theme: {
|
|
29
|
+
background: "#F0EBE1",
|
|
30
|
+
foreground: "#2C1810",
|
|
31
|
+
cursor: "#8B4513",
|
|
32
|
+
cursorAccent: "#F0EBE1",
|
|
33
|
+
selectionBackground: "#D4C5B0",
|
|
34
|
+
selectionForeground: "#2C1810",
|
|
35
|
+
black: "#2C1810",
|
|
36
|
+
red: "#CC3333",
|
|
37
|
+
green: "#5B7A2E",
|
|
38
|
+
yellow: "#8B6914",
|
|
39
|
+
blue: "#4A6FA5",
|
|
40
|
+
magenta: "#7B4B8A",
|
|
41
|
+
cyan: "#4A8B8B",
|
|
42
|
+
white: "#2C1810",
|
|
43
|
+
brightBlack: "#8B7355",
|
|
44
|
+
brightRed: "#E04040",
|
|
45
|
+
brightGreen: "#6B8F38",
|
|
46
|
+
brightYellow: "#A07D1C",
|
|
47
|
+
brightBlue: "#5A82BA",
|
|
48
|
+
brightMagenta: "#8E5D9F",
|
|
49
|
+
brightCyan: "#5A9F9F",
|
|
50
|
+
brightWhite: "#4A3728",
|
|
51
|
+
},
|
|
52
|
+
allowTransparency: false,
|
|
53
|
+
drawBoldTextInBrightColors: true,
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
const fitAddon = new FitAddon();
|
|
57
|
+
term.loadAddon(fitAddon);
|
|
58
|
+
term.open(containerRef.current);
|
|
59
|
+
fitRef.current = fitAddon;
|
|
60
|
+
termRef.current = term;
|
|
61
|
+
|
|
62
|
+
// Fit after a frame
|
|
63
|
+
requestAnimationFrame(() => {
|
|
64
|
+
try { fitAddon.fit(); } catch { /* ignore */ }
|
|
65
|
+
});
|
|
66
|
+
|
|
67
|
+
// WebSocket connection
|
|
68
|
+
const wsProto = window.location.protocol === "https:" ? "wss:" : "ws:";
|
|
69
|
+
const ws = new WebSocket(`${wsProto}//${window.location.host}/ws/terminal?token=${token}`);
|
|
70
|
+
wsRef.current = ws;
|
|
71
|
+
|
|
72
|
+
ws.onopen = () => {
|
|
73
|
+
ws.send(JSON.stringify({ type: "resize", cols: term.cols, rows: term.rows }));
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
ws.onmessage = (e) => {
|
|
77
|
+
term.write(e.data);
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
ws.onclose = () => {
|
|
81
|
+
term.write("\r\n\x1b[33m[Terminal disconnected]\x1b[0m\r\n");
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
term.onData((data) => {
|
|
85
|
+
if (ws.readyState === WebSocket.OPEN) {
|
|
86
|
+
ws.send(data);
|
|
87
|
+
}
|
|
88
|
+
});
|
|
89
|
+
|
|
90
|
+
// Resize observer
|
|
91
|
+
const observer = new ResizeObserver(() => {
|
|
92
|
+
try {
|
|
93
|
+
fitAddon.fit();
|
|
94
|
+
if (ws.readyState === WebSocket.OPEN) {
|
|
95
|
+
ws.send(JSON.stringify({ type: "resize", cols: term.cols, rows: term.rows }));
|
|
96
|
+
}
|
|
97
|
+
} catch { /* ignore */ }
|
|
98
|
+
});
|
|
99
|
+
observer.observe(containerRef.current);
|
|
100
|
+
|
|
101
|
+
return () => {
|
|
102
|
+
observer.disconnect();
|
|
103
|
+
ws.close();
|
|
104
|
+
term.dispose();
|
|
105
|
+
};
|
|
106
|
+
}, [token]);
|
|
107
|
+
|
|
108
|
+
useEffect(() => {
|
|
109
|
+
const cleanup = connect();
|
|
110
|
+
return cleanup;
|
|
111
|
+
}, [connect]);
|
|
112
|
+
|
|
113
|
+
return (
|
|
114
|
+
<div className="h-full flex flex-col">
|
|
115
|
+
<div className="px-3 py-1.5 border-b border-border text-xs text-muted font-mono flex items-center gap-2">
|
|
116
|
+
<span className="w-2 h-2 rounded-full bg-green-600" />
|
|
117
|
+
Claude CLI
|
|
118
|
+
</div>
|
|
119
|
+
<div ref={containerRef} className="flex-1 min-h-0" />
|
|
120
|
+
</div>
|
|
121
|
+
);
|
|
122
|
+
}
|
|
@@ -7,7 +7,9 @@ interface WalletInfo {
|
|
|
7
7
|
walletId?: string;
|
|
8
8
|
name?: string;
|
|
9
9
|
address?: string;
|
|
10
|
+
ethBalance?: string;
|
|
10
11
|
usdcBalance?: string;
|
|
12
|
+
plotBalance?: string;
|
|
11
13
|
error?: string;
|
|
12
14
|
}
|
|
13
15
|
|
|
@@ -77,8 +79,8 @@ export function WalletCard({ token }: { token: string }) {
|
|
|
77
79
|
<div className="space-y-3">
|
|
78
80
|
<div className="flex items-center justify-between">
|
|
79
81
|
<span className="text-muted text-[10px] uppercase tracking-wider">Address (Base)</span>
|
|
80
|
-
<span className={`rounded border px-1.5 py-0.5 text-[9px] ${wallet.
|
|
81
|
-
{wallet.
|
|
82
|
+
<span className={`rounded border px-1.5 py-0.5 text-[9px] ${wallet.ethBalance && parseFloat(wallet.ethBalance) > 0 ? "border-accent/30 text-accent" : "border-accent-dim/30 text-accent-dim"}`}>
|
|
83
|
+
{wallet.ethBalance && parseFloat(wallet.ethBalance) > 0 ? "active" : "no balance"}
|
|
82
84
|
</span>
|
|
83
85
|
</div>
|
|
84
86
|
|
|
@@ -91,23 +93,27 @@ export function WalletCard({ token }: { token: string }) {
|
|
|
91
93
|
|
|
92
94
|
<div className="border-border space-y-1 border-t pt-3">
|
|
93
95
|
<div className="flex justify-between text-xs">
|
|
94
|
-
<span className="text-muted">
|
|
96
|
+
<span className="text-muted">ETH</span>
|
|
97
|
+
<span className="text-foreground font-medium">{wallet.ethBalance || "0.000000"} ETH</span>
|
|
98
|
+
</div>
|
|
99
|
+
<div className="flex justify-between text-xs">
|
|
100
|
+
<span className="text-muted">USDC</span>
|
|
95
101
|
<span className="text-foreground font-medium">${wallet.usdcBalance || "0.00"}</span>
|
|
96
102
|
</div>
|
|
97
103
|
<div className="flex justify-between text-xs">
|
|
98
|
-
<span className="text-muted">
|
|
99
|
-
<span className="text-foreground">
|
|
104
|
+
<span className="text-muted">PLOT</span>
|
|
105
|
+
<span className="text-foreground font-medium">{wallet.plotBalance || "0.0000"} PLOT</span>
|
|
100
106
|
</div>
|
|
101
107
|
<div className="flex justify-between text-xs">
|
|
102
|
-
<span className="text-muted">
|
|
103
|
-
<span className="text-foreground
|
|
108
|
+
<span className="text-muted">Network</span>
|
|
109
|
+
<span className="text-foreground">Base</span>
|
|
104
110
|
</div>
|
|
105
111
|
</div>
|
|
106
112
|
|
|
107
113
|
{/* Fund wallet */}
|
|
108
114
|
<div className="border-border border-t pt-3">
|
|
109
115
|
<p className="text-muted mb-2 text-[10px] font-medium uppercase tracking-wider">Fund Wallet</p>
|
|
110
|
-
<p className="text-muted text-[10px]">Send
|
|
116
|
+
<p className="text-muted text-[10px]">Send ETH on Base for gas (~$0.01 per publish):</p>
|
|
111
117
|
<code className="text-foreground bg-surface mt-1 block break-all rounded px-2 py-1.5 text-[10px] font-mono">{wallet.address}</code>
|
|
112
118
|
</div>
|
|
113
119
|
</div>
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2014 The xterm.js authors. All rights reserved.
|
|
3
|
+
* Copyright (c) 2012-2013, Christopher Jeffrey (MIT License)
|
|
4
|
+
* https://github.com/chjj/term.js
|
|
5
|
+
* @license MIT
|
|
6
|
+
*
|
|
7
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
8
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
9
|
+
* in the Software without restriction, including without limitation the rights
|
|
10
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
11
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
12
|
+
* furnished to do so, subject to the following conditions:
|
|
13
|
+
*
|
|
14
|
+
* The above copyright notice and this permission notice shall be included in
|
|
15
|
+
* all copies or substantial portions of the Software.
|
|
16
|
+
*
|
|
17
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
18
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
19
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
20
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
21
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
22
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
23
|
+
* THE SOFTWARE.
|
|
24
|
+
*
|
|
25
|
+
* Originally forked from (with the author's permission):
|
|
26
|
+
* Fabrice Bellard's javascript vt100 for jslinux:
|
|
27
|
+
* http://bellard.org/jslinux/
|
|
28
|
+
* Copyright (c) 2011 Fabrice Bellard
|
|
29
|
+
* The original design remains. The terminal itself
|
|
30
|
+
* has been extended to include xterm CSI codes, among
|
|
31
|
+
* other features.
|
|
32
|
+
*/.xterm{cursor:text;position:relative;user-select:none;-ms-user-select:none;-webkit-user-select:none}.xterm.focus,.xterm:focus{outline:none}.xterm .xterm-helpers{position:absolute;top:0;z-index:5}.xterm .xterm-helper-textarea{padding:0;border:0;margin:0;position:absolute;opacity:0;left:-9999em;top:0;width:0;height:0;z-index:-5;white-space:nowrap;overflow:hidden;resize:none}.xterm .composition-view{background:#000;color:#fff;display:none;position:absolute;white-space:nowrap;z-index:1}.xterm .composition-view.active{display:block}.xterm .xterm-viewport{background-color:#000;overflow-y:scroll;cursor:default;position:absolute;right:0;left:0;top:0;bottom:0}.xterm .xterm-screen{position:relative}.xterm .xterm-screen canvas{position:absolute;left:0;top:0}.xterm-char-measure-element{display:inline-block;visibility:hidden;position:absolute;top:0;left:-9999em;line-height:normal}.xterm.enable-mouse-events{cursor:default}.xterm.xterm-cursor-pointer,.xterm .xterm-cursor-pointer{cursor:pointer}.xterm.column-select.focus{cursor:crosshair}.xterm .xterm-accessibility:not(.debug),.xterm .xterm-message{position:absolute;left:0;top:0;bottom:0;right:0;z-index:10;color:transparent;pointer-events:none}.xterm .xterm-accessibility-tree:not(.debug) *::selection{color:transparent}.xterm .xterm-accessibility-tree{font-family:monospace;-webkit-user-select:text;user-select:text;white-space:pre}.xterm .xterm-accessibility-tree>div{transform-origin:left;width:fit-content}.xterm .live-region{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.xterm-dim{opacity:1!important}.xterm-underline-1{text-decoration:underline}.xterm-underline-2{text-decoration:double underline}.xterm-underline-3{text-decoration:wavy underline}.xterm-underline-4{text-decoration:dotted underline}.xterm-underline-5{text-decoration:dashed underline}.xterm-overline{text-decoration:overline}.xterm-overline.xterm-underline-1{text-decoration:overline underline}.xterm-overline.xterm-underline-2{text-decoration:overline double underline}.xterm-overline.xterm-underline-3{text-decoration:overline wavy underline}.xterm-overline.xterm-underline-4{text-decoration:overline dotted underline}.xterm-overline.xterm-underline-5{text-decoration:overline dashed underline}.xterm-strikethrough{text-decoration:line-through}.xterm-screen .xterm-decoration-container .xterm-decoration{z-index:6;position:absolute}.xterm-screen .xterm-decoration-container .xterm-decoration.xterm-decoration-top-layer{z-index:7}.xterm-decoration-overview-ruler{z-index:8;position:absolute;top:0;right:0;pointer-events:none}.xterm-decoration-top{z-index:2;position:relative}.xterm .xterm-scrollable-element>.scrollbar{cursor:default}.xterm .xterm-scrollable-element>.scrollbar>.scra{cursor:pointer;font-size:11px!important}.xterm .xterm-scrollable-element>.visible{opacity:1;background:#0000;transition:opacity .1s linear;z-index:11}.xterm .xterm-scrollable-element>.invisible{opacity:0;pointer-events:none}.xterm .xterm-scrollable-element>.invisible.fade{transition:opacity .8s linear}.xterm .xterm-scrollable-element>.shadow{position:absolute;display:none}.xterm .xterm-scrollable-element>.shadow.top{display:block;top:0;left:3px;height:3px;width:100%;box-shadow:var(--vscode-scrollbar-shadow, #000) 0 6px 6px -6px inset}.xterm .xterm-scrollable-element>.shadow.left{display:block;top:3px;left:0;height:100%;width:3px;box-shadow:var(--vscode-scrollbar-shadow, #000) 6px 0 6px -6px inset}.xterm .xterm-scrollable-element>.shadow.top-left-corner{display:block;top:0;left:0;height:3px;width:3px}.xterm .xterm-scrollable-element>.shadow.top.left{box-shadow:var(--vscode-scrollbar-shadow, #000) 6px 0 6px -6px inset}/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-space-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-outline-style:solid}}}@layer theme{:root,:host{--font-serif:ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-red-700:oklch(50.5% .213 27.518);--color-amber-700:oklch(55.5% .163 48.998);--color-green-600:oklch(62.7% .194 149.214);--color-green-700:oklch(52.7% .154 150.069);--color-white:#fff;--spacing:.25rem;--container-sm:24rem;--container-lg:32rem;--container-2xl:42rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--text-2xl:1.5rem;--text-2xl--line-height:calc(2 / 1.5);--font-weight-medium:500;--font-weight-bold:700;--tracking-tight:-.025em;--tracking-wider:.05em;--leading-relaxed:1.625;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent;font-family:Inter,system-ui,-apple-system,sans-serif;line-height:1.5}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.start{inset-inline-start:var(--spacing)}.mx-auto{margin-inline:auto}.mt-1{margin-top:calc(var(--spacing) * 1)}.mt-4{margin-top:calc(var(--spacing) * 4)}.mb-1{margin-bottom:calc(var(--spacing) * 1)}.mb-1\.5{margin-bottom:calc(var(--spacing) * 1.5)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-3{margin-bottom:calc(var(--spacing) * 3)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.mb-6{margin-bottom:calc(var(--spacing) * 6)}.ml-2{margin-left:calc(var(--spacing) * 2)}.ml-auto{margin-left:auto}.block{display:block}.flex{display:flex}.grid{display:grid}.h-2{height:calc(var(--spacing) * 2)}.h-14{height:calc(var(--spacing) * 14)}.h-\[calc\(100vh-3\.5rem\)\]{height:calc(100vh - 3.5rem)}.h-full{height:100%}.h-screen{height:100vh}.min-h-0{min-height:calc(var(--spacing) * 0)}.w-2{width:calc(var(--spacing) * 2)}.w-56{width:calc(var(--spacing) * 56)}.w-96{width:calc(var(--spacing) * 96)}.w-full{width:100%}.max-w-2xl{max-width:var(--container-2xl)}.max-w-lg{max-width:var(--container-lg)}.max-w-none{max-width:none}.max-w-sm{max-width:var(--container-sm)}.min-w-0{min-width:calc(var(--spacing) * 0)}.flex-1{flex:1}.flex-shrink-0{flex-shrink:0}.resize{resize:both}.list-inside{list-style-position:inside}.list-decimal{list-style-type:decimal}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 1) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 1) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-1\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 1.5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 1.5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 2) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 3) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 3) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 4) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 4) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 6) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 6) * calc(1 - var(--tw-space-y-reverse)))}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-full{border-radius:3.40282e38px}.border{border-style:var(--tw-border-style);border-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-accent{border-color:var(--accent)}.border-accent-dim\/30{border-color:var(--accent-dim)}@supports (color:color-mix(in lab,red,red)){.border-accent-dim\/30{border-color:color-mix(in oklab,var(--accent-dim) 30%,transparent)}}.border-accent\/30{border-color:var(--accent)}@supports (color:color-mix(in lab,red,red)){.border-accent\/30{border-color:color-mix(in oklab,var(--accent) 30%,transparent)}}.border-border{border-color:var(--border)}.border-green-700\/30{border-color:#0081384d}@supports (color:color-mix(in lab,red,red)){.border-green-700\/30{border-color:color-mix(in oklab,var(--color-green-700) 30%,transparent)}}.border-red-700\/30{border-color:#bf000f4d}@supports (color:color-mix(in lab,red,red)){.border-red-700\/30{border-color:color-mix(in oklab,var(--color-red-700) 30%,transparent)}}.bg-accent{background-color:var(--accent)}.bg-green-600{background-color:var(--color-green-600)}.bg-surface{background-color:var(--bg-surface)}.p-3{padding:calc(var(--spacing) * 3)}.p-4{padding:calc(var(--spacing) * 4)}.p-6{padding:calc(var(--spacing) * 6)}.p-8{padding:calc(var(--spacing) * 8)}.px-1\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-6{padding-inline:calc(var(--spacing) * 6)}.py-0\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:calc(var(--spacing) * 1)}.py-1\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\.5{padding-block:calc(var(--spacing) * 2.5)}.py-4{padding-block:calc(var(--spacing) * 4)}.pt-1\.5{padding-top:calc(var(--spacing) * 1.5)}.pt-3{padding-top:calc(var(--spacing) * 3)}.pl-4{padding-left:calc(var(--spacing) * 4)}.text-center{text-align:center}.text-left{text-align:left}.font-mono{font-family:var(--font-mono)}.font-serif{font-family:var(--font-serif)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\[9px\]{font-size:9px}.text-\[10px\]{font-size:10px}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-wider{--tw-tracking:var(--tracking-wider);letter-spacing:var(--tracking-wider)}.break-all{word-break:break-all}.text-accent{color:var(--accent)}.text-accent-dim{color:var(--accent-dim)}.text-amber-700{color:var(--color-amber-700)}.text-error{color:var(--error)}.text-foreground{color:var(--text)}.text-green-700{color:var(--color-green-700)}.text-muted{color:var(--text-muted)}.text-red-700{color:var(--color-red-700)}.text-white{color:var(--color-white)}.uppercase{text-transform:uppercase}.italic{font-style:italic}.underline{text-decoration-line:underline}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.outline-none{--tw-outline-style:none;outline-style:none}.placeholder\:text-muted\/50::placeholder{color:var(--text-muted)}@supports (color:color-mix(in lab,red,red)){.placeholder\:text-muted\/50::placeholder{color:color-mix(in oklab,var(--text-muted) 50%,transparent)}}@media(hover:hover){.hover\:border-accent:hover{border-color:var(--accent)}.hover\:border-error:hover{border-color:var(--error)}.hover\:bg-accent-dim:hover{background-color:var(--accent-dim)}.hover\:bg-accent\/10:hover{background-color:var(--accent)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-accent\/10:hover{background-color:color-mix(in oklab,var(--accent) 10%,transparent)}}.hover\:bg-surface:hover{background-color:var(--bg-surface)}.hover\:text-accent:hover{color:var(--accent)}.hover\:text-error:hover{color:var(--error)}.hover\:text-foreground:hover{color:var(--text)}.hover\:opacity-80:hover{opacity:.8}}.focus\:border-accent:focus{border-color:var(--accent)}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-40:disabled{opacity:.4}.disabled\:opacity-50:disabled{opacity:.5}}:root{--bg:#e8dfd0;--bg-surface:#f0ebe1;--bg-shelf:#ddd3c2;--text:#2c1810;--text-muted:#8b7355;--accent:#8b4513;--accent-dim:#6b3410;--border:#d4c5b0;--error:#c33;--paper-bg:#f5f0e8}body{background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:Inter,system-ui,-apple-system,sans-serif}::selection{background:var(--accent);color:#fff}h1,h2,h3,h4,.prose,.prose p,.prose li,.prose blockquote{font-family:Lora,Georgia,Times New Roman,serif}code,pre{font-family:Geist Mono,ui-monospace,monospace}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}
|