Skip to content

Commit 3dcbcaa

Browse files
DavidMorganDavidMorgan
authored andcommitted
feat: 尝试增加pretext来作为测量核心
1 parent b7a9785 commit 3dcbcaa

File tree

18 files changed

+1452
-4
lines changed

18 files changed

+1452
-4
lines changed

apps/playground/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
"@mxm-editor/extension-text-align": "workspace:*",
3232
"@mxm-editor/extension-text-style": "workspace:*",
3333
"@mxm-editor/markdown": "workspace:*",
34+
"@mxm-editor/pretext": "workspace:*",
3435
"@mxm-editor/react": "workspace:*",
3536
"@mxm-editor/starter-kit": "workspace:*",
3637
"@mxm-editor/suggestion": "workspace:*",

apps/playground/src/App.tsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,15 @@ import {
55
MessageSquareText,
66
Moon,
77
ScrollText,
8+
Sparkles,
89
Sun,
910
Users,
1011
} from "lucide-react";
1112
import { CollaborationSection } from "./playground/components/CollaborationSection";
1213
import { CommentsSection } from "./playground/components/CommentsSection";
1314
import { LocalEditorSection } from "./playground/components/LocalEditorSection";
1415
import { PagesSection } from "./playground/components/PagesSection";
16+
import { PretextSection } from "./playground/components/PretextSection";
1517
import {
1618
getPlaygroundRouteHref,
1719
usePlaygroundRoute,
@@ -29,6 +31,10 @@ function RouteIcon({ routeId }: { routeId: PlaygroundRouteId }) {
2931
return <ScrollText size={16} strokeWidth={2} />;
3032
}
3133

34+
if (routeId === "pretext") {
35+
return <Sparkles size={16} strokeWidth={2} />;
36+
}
37+
3238
if (routeId === "collaboration") {
3339
return <Users size={16} strokeWidth={2} />;
3440
}
@@ -53,6 +59,10 @@ export function App() {
5359
return <PagesSection {...pagesRouteProps} />;
5460
}
5561

62+
if (route.id === "pretext") {
63+
return <PretextSection />;
64+
}
65+
5666
if (route.id === "collaboration") {
5767
return <CollaborationSection />;
5868
}

0 commit comments

Comments
 (0)