mirror of
https://github.com/027xiguapi/code-box.git
synced 2026-10-20 14:13:41 +00:00
增加文章同步功能
This commit is contained in:
@@ -3,6 +3,7 @@ import React, { useState } from "react"
|
||||
|
||||
import { i18n } from "~tools"
|
||||
import { editQRCodeImg } from "~utils/makerQRPost"
|
||||
import { openSyncPage } from "~utils/syncArticle"
|
||||
|
||||
const boxStyles = {
|
||||
box: {
|
||||
@@ -102,6 +103,9 @@ export default function ToolBox(props: any) {
|
||||
<div style={boxStyles.item}>
|
||||
<a onClick={() => getArticle()}>{i18n("getArticle")}</a>
|
||||
</div>
|
||||
<div style={boxStyles.item}>
|
||||
<a onClick={() => openSyncPage()}>{i18n("syncArticle") || "文章同步"}</a>
|
||||
</div>
|
||||
<a style={boxStyles.item} href="https://www.code-box.fun" target="_blank">
|
||||
帮助
|
||||
</a>
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import React from "react"
|
||||
|
||||
import { i18n } from "~tools"
|
||||
import { openSyncPage } from "~utils/syncArticle"
|
||||
|
||||
import qrcodeUrl from "raw:~/public/wx/gzh.jpg"
|
||||
|
||||
@@ -133,6 +134,9 @@ export default function WeixinPanel(props: {
|
||||
×
|
||||
</button>
|
||||
<img src={qrcodeUrl} alt="qrcodeUrl" style={styles.img} />
|
||||
<div style={styles.item}>
|
||||
<a onClick={() => openSyncPage()}>{i18n("syncArticle") || "文章同步"}</a>
|
||||
</div>
|
||||
<div style={styles.item}>
|
||||
<a onClick={onGetThumbMedia}>{i18n("getThumbMedia")}</a>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user