-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
3,763 additions
and
228 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,23 @@ | ||
{ | ||
"publishTool": "Publisher", | ||
"publish": "Publish", | ||
"picbed": "Upload picture to picbed", | ||
"setting": "Setting", | ||
"settingGeneral": "General setting", | ||
"settingPicbed": "Picbed manage", | ||
"settingPublish": "Publish setting", | ||
"settingMenuTips": "Let creation return to fun", | ||
"copyPageId": "Copy pageId", | ||
"publisherWidget": "Publisher Widget", | ||
"cancel": "Cancel", | ||
"save": "Save", | ||
"publishTo": "Publish to...", | ||
"platformCnblogs": "Cnblogs", | ||
"platformTypecho": "Typecho", | ||
"platformWordpress": "WordPress", | ||
"platformYuque": "Yuque", | ||
"platformGithub": "Github", | ||
"platformHexo": "Hexo", | ||
"platformHugo": "Hugo", | ||
"platformVitepress": "Vitepress" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,23 @@ | ||
{ | ||
"publishTool": "发布工具", | ||
"publish": "发布", | ||
"picbed": "上传图片到图床", | ||
"setting": "设置", | ||
"settingGeneral": "偏好设置", | ||
"settingPicbed": "图床管理", | ||
"settingPublish": "发布设置", | ||
"settingMenuTips": "让创作回归乐趣", | ||
"copyPageId": "复制文档ID", | ||
"publisherWidget": "挂件版", | ||
"cancel": "取消", | ||
"save": "保存", | ||
"publishTo": "发布到...", | ||
"platformCnblogs": "博客园", | ||
"platformTypecho": "Typecho", | ||
"platformWordpress": "WordPress", | ||
"platformYuque": "语雀", | ||
"platformGithub": "Github", | ||
"platformHexo": "Hexo", | ||
"platformHugo": "Hugo", | ||
"platformVitepress": "Vitepress" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
/* | ||
* Copyright (c) 2023, Terwer . All rights reserved. | ||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | ||
* | ||
* This code is free software; you can redistribute it and/or modify it | ||
* under the terms of the GNU General Public License version 2 only, as | ||
* published by the Free Software Foundation. Terwer designates this | ||
* particular file as subject to the "Classpath" exception as provided | ||
* by Terwer in the LICENSE file that accompanied this code. | ||
* | ||
* This code is distributed in the hope that it will be useful, but WITHOUT | ||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | ||
* version 2 for more details (a copy is included in the LICENSE file that | ||
* accompanied this code). | ||
* | ||
* You should have received a copy of the GNU General Public License version | ||
* 2 along with this work; if not, write to the Free Software Foundation, | ||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. | ||
* | ||
* Please contact Terwer, Shenzhen, Guangdong, China, [email protected] | ||
* or visit www.terwer.space if you need additional information or have any | ||
* questions. | ||
*/ | ||
|
||
import { Dialog } from "siyuan" | ||
import PublisherPlugin from "./index" | ||
|
||
/** | ||
* 打开 iframe 弹窗 | ||
* | ||
* @param pluginInstance 插件实例 | ||
* @param pageIndex 地址 | ||
*/ | ||
export const showIframeDialog = (pluginInstance: PublisherPlugin, pageIndex: string) => { | ||
const contentHtml = `<style> | ||
iframe { | ||
width: 100%; | ||
height: 100%; | ||
border: none; | ||
} | ||
</style> | ||
<iframe src="${pageIndex}" width="100%"></iframe>` | ||
|
||
new Dialog({ | ||
title: pluginInstance.i18n.siyuanBlog, | ||
transparent: false, | ||
content: contentHtml, | ||
width: "90%", | ||
height: "750px", | ||
} as any) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.