mirror of
https://github.com/Kenshin/simpread.git
synced 2026-01-25 14:28:34 +00:00
Add snapshot to controlbar.
This commit is contained in:
parent
21a390df10
commit
d4ccb91851
BIN
src/assets/images/snapshot_icon.png
Normal file
BIN
src/assets/images/snapshot_icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 441 B |
@ -109,7 +109,7 @@ export default class ReadCtlbar extends React.Component {
|
||||
break;
|
||||
default:
|
||||
if ( type.indexOf( "_" ) > 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 );
|
||||
}
|
||||
|
||||
@ -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" : {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user