|
@@ -1,11 +1,11 @@
|
|
|
-import { Typography, Divider, Skeleton, Space, Flex } from "antd";
|
|
|
|
|
-import type { IStudio, IUser } from "../../../api/Auth";
|
|
|
|
|
|
|
+import { Typography, Divider, Skeleton, Flex } from "antd";
|
|
|
|
|
+import type { IStudio } from "../../../api/Auth";
|
|
|
import VisibleObserver from "../../general/VisibleObserver";
|
|
import VisibleObserver from "../../general/VisibleObserver";
|
|
|
import MdView from "../../general/MdView";
|
|
import MdView from "../../general/MdView";
|
|
|
import type { JSX, ReactNode } from "react";
|
|
import type { JSX, ReactNode } from "react";
|
|
|
import ArticleSkeleton from "./ArticleSkeleton";
|
|
import ArticleSkeleton from "./ArticleSkeleton";
|
|
|
import ErrorResult from "../../general/ErrorResult";
|
|
import ErrorResult from "../../general/ErrorResult";
|
|
|
-import User from "../../auth/User";
|
|
|
|
|
|
|
+import EditorsLine, { type IEditorBrief } from "../../auth/EditorsLine";
|
|
|
|
|
|
|
|
const { Paragraph, Title, Text } = Typography;
|
|
const { Paragraph, Title, Text } = Typography;
|
|
|
|
|
|
|
@@ -29,7 +29,9 @@ export interface IArticleLayout {
|
|
|
resList?: JSX.Element;
|
|
resList?: JSX.Element;
|
|
|
created_at?: string;
|
|
created_at?: string;
|
|
|
updated_at?: string;
|
|
updated_at?: string;
|
|
|
- editor?: IUser;
|
|
|
|
|
|
|
+ editor?: IEditorBrief | null;
|
|
|
|
|
+ /** 协作者(v3 的 co_editor):人类授权代写的 AI 模型 */
|
|
|
|
|
+ coEditor?: IEditorBrief | null;
|
|
|
owner?: IStudio;
|
|
owner?: IStudio;
|
|
|
loading?: boolean;
|
|
loading?: boolean;
|
|
|
errorCode?: number;
|
|
errorCode?: number;
|
|
@@ -49,6 +51,7 @@ const ArticleLayout = ({
|
|
|
html = [],
|
|
html = [],
|
|
|
nodes,
|
|
nodes,
|
|
|
editor,
|
|
editor,
|
|
|
|
|
+ coEditor,
|
|
|
updated_at,
|
|
updated_at,
|
|
|
resList,
|
|
resList,
|
|
|
loading,
|
|
loading,
|
|
@@ -89,9 +92,11 @@ const ArticleLayout = ({
|
|
|
<Paragraph ellipsis={{ rows: 2, expandable: true, symbol: "more" }}>
|
|
<Paragraph ellipsis={{ rows: 2, expandable: true, symbol: "more" }}>
|
|
|
{summary}
|
|
{summary}
|
|
|
</Paragraph>
|
|
</Paragraph>
|
|
|
- <Space>
|
|
|
|
|
- <User {...editor} /> edit at {updated_at}
|
|
|
|
|
- </Space>
|
|
|
|
|
|
|
+ <EditorsLine
|
|
|
|
|
+ editor={editor}
|
|
|
|
|
+ coEditor={coEditor}
|
|
|
|
|
+ updatedAt={updated_at}
|
|
|
|
|
+ />
|
|
|
<Divider />
|
|
<Divider />
|
|
|
</Flex>
|
|
</Flex>
|
|
|
{html
|
|
{html
|