File tree Expand file tree Collapse file tree 13 files changed +67
-3
lines changed Expand file tree Collapse file tree 13 files changed +67
-3
lines changed Original file line number Diff line number Diff line change 22 "manifest_version" : 2 ,
33 "name" : " DjVu.js Viewer" ,
44 "short_name" : " DV" ,
5- "version" : " 0.7.0 .0" ,
5+ "version" : " 0.7.1 .0" ,
66 "author" : " RussCoder" ,
77 "homepage_url" : " https://github.com/RussCoder/djvujs" ,
88 "description" : " Opens links to .djvu files. Allows opening files from a local disk. Processes <object> & <embed> tags." ,
Original file line number Diff line number Diff line change 11# DjVu.js Viewer's Changelog
22
3+ ## v.0.7.1 (30.08.2021)
4+
5+ - Toolbar can be pinned and unpinned.
6+ - Minor fixes and improvements.
7+
38## v.0.7.0 (20.08.2021)
49
510- Removed footer, added menu in order to use less space for controls.
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ const Events = constant({
1717
1818export default class DjVuViewer extends EventEmitter {
1919
20- static VERSION = '0.7.0 ' ;
20+ static VERSION = '0.7.1 ' ;
2121
2222 static Events = Events ;
2323
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import { ActionTypes } from "../../constants";
55import { iconButton } from "../cssMixins" ;
66import { get } from "../../reducers" ;
77import styled from "styled-components" ;
8+ import { useTranslation } from "../Translation" ;
89
910const Root = styled . svg `
1011 ${ iconButton } ;
@@ -15,12 +16,14 @@ const Root = styled.svg`
1516export default ( ) => {
1617 const dispatch = useDispatch ( ) ;
1718 const isOpened = useSelector ( get . isContentsOpened ) ;
19+ const t = useTranslation ( ) ;
1820
1921 return (
2022 < Root
2123 as = { isOpened ? IoListCircleSharp : IoListCircleOutline }
2224 onClick = { ( ) => dispatch ( { type : ActionTypes . TOGGLE_CONTENTS } ) }
2325 data-djvujs-id = "contents_button"
26+ title = { t ( "Table of contents" ) }
2427 />
2528 ) ;
2629}
Original file line number Diff line number Diff line change 11import { TiPin } from 'react-icons/ti' ;
22import styled from "styled-components" ;
3+ import { useTranslation } from "../Translation" ;
34
45const Root = styled ( TiPin ) `
56 font-size: calc(var(--button-basic-size) * 1.2);
@@ -13,7 +14,14 @@ const Root = styled(TiPin)`
1314` ;
1415
1516export default ( { isPinned, onClick } ) => {
17+ const t = useTranslation ( ) ;
18+
1619 return (
17- < Root $pinned = { isPinned } onClick = { onClick } data-djvujs-id = "pin_button" />
20+ < Root
21+ $pinned = { isPinned }
22+ onClick = { onClick }
23+ data-djvujs-id = "pin_button"
24+ title = { t ( isPinned ? 'Toolbar is always shown' : 'Toolbar automatically hides' ) }
25+ />
1826 ) ;
1927} ;
Original file line number Diff line number Diff line change @@ -184,6 +184,12 @@ export default {
184184 "文本选择模式" ,
185185 "Grab cursor mode" :
186186 "拖拽模式" ,
187+ "Table of contents" :
188+ null ,
189+ "Toolbar is always shown" :
190+ null ,
191+ "Toolbar automatically hides" :
192+ null ,
187193
188194 // Contents
189195 "Contents" :
Original file line number Diff line number Diff line change @@ -184,6 +184,12 @@ export default {
184184 "Text cursor mode" ,
185185 "Grab cursor mode" :
186186 "Grab cursor mode" ,
187+ "Table of contents" :
188+ "Table of contents" ,
189+ "Toolbar is always shown" :
190+ "Toolbar is always shown" ,
191+ "Toolbar automatically hides" :
192+ "Toolbar automatically hides" ,
187193
188194 // Contents
189195 "Contents" :
Original file line number Diff line number Diff line change @@ -184,6 +184,12 @@ export default {
184184 "Curseur pour mettre le texte en surbrillance" ,
185185 "Grab cursor mode" :
186186 "Défilement glisser-déposer" ,
187+ "Table of contents" :
188+ null ,
189+ "Toolbar is always shown" :
190+ null ,
191+ "Toolbar automatically hides" :
192+ null ,
187193
188194 // Contents
189195 "Contents" :
Original file line number Diff line number Diff line change @@ -184,6 +184,12 @@ export default {
184184 "Modalità selezione testo" ,
185185 "Grab cursor mode" :
186186 "Modalità trascinamento pagina" ,
187+ "Table of contents" :
188+ null ,
189+ "Toolbar is always shown" :
190+ null ,
191+ "Toolbar automatically hides" :
192+ null ,
187193
188194 // Contents
189195 "Contents" :
Original file line number Diff line number Diff line change @@ -184,6 +184,12 @@ export default {
184184 "Modo cursor de texto" ,
185185 "Grab cursor mode" :
186186 "Modo de agarrar o cursor" ,
187+ "Table of contents" :
188+ null ,
189+ "Toolbar is always shown" :
190+ null ,
191+ "Toolbar automatically hides" :
192+ null ,
187193
188194 // Contents
189195 "Contents" :
You can’t perform that action at this time.
0 commit comments