| 11 | import { i18n } from "~tools" |
| 12 | |
| 13 | export default function Custom() { |
| 14 | function makerQRPost() { |
| 15 | sendToContentScript({ |
| 16 | name: "app-makerQRPost" |
| 17 | }) |
| 18 | } |
| 19 | function getArticle() { |
| 20 | sendToContentScript({ |
| 21 | name: "app-getArticle" |
| 22 | }) |
| 23 | } |
| 24 | return ( |
| 25 | <fieldset> |
| 26 | <legend>{i18n("customConfig")}</legend> |
| 27 | <CssCode name="custom"></CssCode> |
| 28 | <ParseMarkdown name="custom" /> |
| 29 | <EditMarkdown name="custom" /> |
| 30 | <DownloadMarkdown name="custom" /> |
| 31 | <DownloadHtml name="custom" /> |
| 32 | <DownloadPdf name="custom" /> |
| 33 | <div className="item download" onClick={makerQRPost}> |
| 34 | <span> |
| 35 | <StarTwoTone twoToneColor="#eb2f96" style={{ marginRight: "5px" }} /> |
| 36 | {i18n("makerQRPost")} |
| 37 | </span> |
| 38 | <DownloadOutlined style={{ color: "#52c41a", fontSize: "16px" }} /> |
| 39 | </div> |
| 40 | <div className="item download" onClick={getArticle}> |
| 41 | <span> |
| 42 | <StarTwoTone twoToneColor="#eb2f96" style={{ marginRight: "5px" }} /> |
| 43 | {i18n("getArticle")} |
| 44 | </span> |
| 45 | <DownloadOutlined style={{ color: "#52c41a", fontSize: "16px" }} /> |
| 46 | </div> |
| 47 | </fieldset> |
| 48 | ) |
| 49 | } |