From d4ccb918517745e100f4c17e4f1f83dfd36afcc0 Mon Sep 17 00:00:00 2001 From: Kenshin Date: Thu, 19 Dec 2019 12:48:53 +0800 Subject: [PATCH] Add snapshot to controlbar. --- src/assets/images/snapshot_icon.png | Bin 0 -> 441 bytes src/read/controlbar.jsx | 2 +- src/service/config.js | 7 ++++++- 3 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 src/assets/images/snapshot_icon.png diff --git a/src/assets/images/snapshot_icon.png b/src/assets/images/snapshot_icon.png new file mode 100644 index 0000000000000000000000000000000000000000..b345fac136bb41ffa490b38c1f49dc264d20d2ea GIT binary patch literal 441 zcmV;q0Y?6bP)@n%q%mn$Tnu?m#2Ym;6&0)g`Y#k jysE~|GI6 0 && type.startsWith( "share" ) || - [ "fullscreen", "save", "markdown", "png", "epub", "pdf", "kindle", "temp", "bear", "ulysses", "html", "offlinehtml", "dropbox", "pocket", "instapaper", "linnk", "yinxiang","evernote", "onenote", "gdrive", "jianguo", "yuque", "notion", "youdao" ].includes( type )) { + [ "fullscreen", "save", "markdown", "png", "epub", "pdf", "kindle", "temp", "bear", "ulysses", "html", "offlinehtml", "snapshot", "dropbox", "pocket", "instapaper", "linnk", "yinxiang","evernote", "onenote", "gdrive", "jianguo", "yuque", "notion", "youdao" ].includes( type )) { const [ title, desc, content ] = [ $( "sr-rd-title" ).text().trim(), $( "sr-rd-desc" ).text().trim(), $( "sr-rd-content" ).html().trim() ]; output.Action( type, title, desc, content ); } diff --git a/src/service/config.js b/src/service/config.js index d30bf331..0e46cad8 100644 --- a/src/service/config.js +++ b/src/service/config.js @@ -310,7 +310,12 @@ const readItems = { "name" : "导出为 离线 HTML", "icon" : ss.IconPath("offline_html_icon"), "color": "#D4237A", - } + }, + "snapshot" : { + "name" : "截图", + "icon" : ss.IconPath("snapshot_icon"), + "color": "#D4237A", + }, }, }, "send" : {