import React from "react" import ReactMarkdown from "react-markdown" import remarkGfm from "remark-gfm" import { Result, Skeleton } from "antd" import { SiGithub } from "react-icons/si" import config from "config" import "./index.less" const FetchChangelogs = async () => { const response = await app.cores.api.customRequest({ method: "GET", url: `/release-notes`, }) return response.data } export default { id: "changelogs", icon: "MdHistory", label: "Changelogs", group: "bottom", render: () => { const [L_Changelogs, R_Changelogs, E_Changelogs,] = app.cores.api.useRequest(FetchChangelogs) console.log(R_Changelogs, E_Changelogs) if (L_Changelogs) { return } if (E_Changelogs) { return } if (!Array.isArray(R_Changelogs)) { return } return
{ R_Changelogs.map((changelog, index) => { return

v{changelog.version}

{changelog.date}

{changelog.body}
}) }
{ window.open(config.githubRepoLink, "_blank") }} >

View more on Github

} }