Skip to content

Commit c480870

Browse files
committed
V:: v.0.7.1
New tooltips.
1 parent 54d3931 commit c480870

File tree

13 files changed

+67
-3
lines changed

13 files changed

+67
-3
lines changed

extension/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
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.",

viewer/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
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.

viewer/src/DjVuViewer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const Events = constant({
1717

1818
export default class DjVuViewer extends EventEmitter {
1919

20-
static VERSION = '0.7.0';
20+
static VERSION = '0.7.1';
2121

2222
static Events = Events;
2323

viewer/src/components/Toolbar/ContentsButton.jsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { ActionTypes } from "../../constants";
55
import { iconButton } from "../cssMixins";
66
import { get } from "../../reducers";
77
import styled from "styled-components";
8+
import { useTranslation } from "../Translation";
89

910
const Root = styled.svg`
1011
${iconButton};
@@ -15,12 +16,14 @@ const Root = styled.svg`
1516
export 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
}

viewer/src/components/Toolbar/PinButton.jsx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { TiPin } from 'react-icons/ti';
22
import styled from "styled-components";
3+
import { useTranslation } from "../Translation";
34

45
const Root = styled(TiPin)`
56
font-size: calc(var(--button-basic-size) * 1.2);
@@ -13,7 +14,14 @@ const Root = styled(TiPin)`
1314
`;
1415

1516
export 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
};

viewer/src/locales/ChineseSimplified.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff 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":

viewer/src/locales/English.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff 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":

viewer/src/locales/French.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff 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":

viewer/src/locales/Italian.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff 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":

viewer/src/locales/Portuguese.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff 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":

0 commit comments

Comments
 (0)