feat: css injection editor

This commit is contained in:
dongchengjie
2024-05-13 22:58:25 +08:00
parent 952d7494ac
commit 8de7d5d377
7 changed files with 60 additions and 26 deletions

View File

@@ -14,7 +14,7 @@ import {
import { FeaturedPlayListRounded } from "@mui/icons-material";
import { viewProfile } from "@/services/cmds";
import { Notice } from "@/components/base";
import { EditorViewer } from "./editor-viewer";
import { EditorViewer } from "@/components/profile/editor-viewer";
import { ProfileBox } from "./profile-box";
import { LogViewer } from "./log-viewer";
import { ConfirmViewer } from "./confirm-viewer";
@@ -233,7 +233,8 @@ export const ProfileMore = (props: Props) => {
</Menu>
<EditorViewer
uid={uid}
mode="profile"
property={uid}
open={fileOpen}
language={type === "merge" ? "yaml" : "javascript"}
schema={type === "merge" ? "merge" : undefined}