MCPcopy Create free account
hub / github.com/027xiguapi/code-box / Custom

Function Custom

component/options/custom.tsx:13–49  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11import { i18n } from "~tools"
12
13export 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}

Callers

nothing calls this directly

Calls 1

i18nFunction · 0.85

Tested by

no test coverage detected