diff --git a/src/main.ts b/src/main.ts index 01780a4..a576aa9 100644 --- a/src/main.ts +++ b/src/main.ts @@ -164,7 +164,7 @@ export default class NoteToMpPlugin extends Plugin { // 发布到小红书 menu.addItem((item) => { item - .setTitle('发布到小红书') + .setTitle('发布小红书') .setIcon('lucide-heart') .onClick(async () => { if (file instanceof TFile) { diff --git a/src/wechat/wechat-preview.ts b/src/wechat/wechat-preview.ts index 3a881eb..9fd7be1 100644 --- a/src/wechat/wechat-preview.ts +++ b/src/wechat/wechat-preview.ts @@ -145,29 +145,9 @@ export class WechatPreview { } }; - if (Platform.isDesktop) { - const copyBtn = lineDiv.createEl('button', { text: '📋 复制', cls: 'toolbar-button' }); - copyBtn.onclick = async () => { - try { - await this.render.copyArticle(); - new Notice('复制成功,请到公众号编辑器粘贴。'); - uevent('copy'); - } catch (error) { - console.error(error); - new Notice('复制失败: ' + error); - } - }; - } - - const uploadImgBtn = lineDiv.createEl('button', { text: '📤 上传图片', cls: 'toolbar-button' }); - uploadImgBtn.onclick = async () => await this.uploadImages(); - - const postBtn = lineDiv.createEl('button', { text: '📝 发草稿', cls: 'toolbar-button' }); + const postBtn = lineDiv.createEl('button', { text: '📝 发布', cls: 'toolbar-button' }); postBtn.onclick = async () => await this.postArticle(); - const imagesBtn = lineDiv.createEl('button', { text: '🖼️ 图片/文字', cls: 'toolbar-button' }); - imagesBtn.onclick = async () => await this.postImages(); - if (Platform.isDesktop && this.settings.isAuthKeyVaild()) { const htmlBtn = lineDiv.createEl('button', { text: '💾 导出HTML', cls: 'toolbar-button' }); htmlBtn.onclick = async () => await this.exportHTML();