Skip to content

Commit

Permalink
V:: v.0.7.1
Browse files Browse the repository at this point in the history
New tooltips.
  • Loading branch information
RussCoder committed Aug 30, 2021
1 parent 54d3931 commit c480870
Show file tree
Hide file tree
Showing 13 changed files with 67 additions and 3 deletions.
2 changes: 1 addition & 1 deletion extension/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifest_version": 2,
"name": "DjVu.js Viewer",
"short_name": "DV",
"version": "0.7.0.0",
"version": "0.7.1.0",
"author": "RussCoder",
"homepage_url": "https://github.com/RussCoder/djvujs",
"description": "Opens links to .djvu files. Allows opening files from a local disk. Processes <object> & <embed> tags.",
Expand Down
5 changes: 5 additions & 0 deletions viewer/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# DjVu.js Viewer's Changelog

## v.0.7.1 (30.08.2021)

- Toolbar can be pinned and unpinned.
- Minor fixes and improvements.

## v.0.7.0 (20.08.2021)

- Removed footer, added menu in order to use less space for controls.
Expand Down
2 changes: 1 addition & 1 deletion viewer/src/DjVuViewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const Events = constant({

export default class DjVuViewer extends EventEmitter {

static VERSION = '0.7.0';
static VERSION = '0.7.1';

static Events = Events;

Expand Down
3 changes: 3 additions & 0 deletions viewer/src/components/Toolbar/ContentsButton.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { ActionTypes } from "../../constants";
import { iconButton } from "../cssMixins";
import { get } from "../../reducers";
import styled from "styled-components";
import { useTranslation } from "../Translation";

const Root = styled.svg`
${iconButton};
Expand All @@ -15,12 +16,14 @@ const Root = styled.svg`
export default () => {
const dispatch = useDispatch();
const isOpened = useSelector(get.isContentsOpened);
const t = useTranslation();

return (
<Root
as={isOpened ? IoListCircleSharp : IoListCircleOutline}
onClick={() => dispatch({ type: ActionTypes.TOGGLE_CONTENTS })}
data-djvujs-id="contents_button"
title={t("Table of contents")}
/>
);
}
10 changes: 9 additions & 1 deletion viewer/src/components/Toolbar/PinButton.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { TiPin } from 'react-icons/ti';
import styled from "styled-components";
import { useTranslation } from "../Translation";

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

export default ({ isPinned, onClick }) => {
const t = useTranslation();

return (
<Root $pinned={isPinned} onClick={onClick} data-djvujs-id="pin_button" />
<Root
$pinned={isPinned}
onClick={onClick}
data-djvujs-id="pin_button"
title={t(isPinned ? 'Toolbar is always shown' : 'Toolbar automatically hides')}
/>
);
};
6 changes: 6 additions & 0 deletions viewer/src/locales/ChineseSimplified.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,12 @@ export default {
"文本选择模式",
"Grab cursor mode":
"拖拽模式",
"Table of contents":
null,
"Toolbar is always shown":
null,
"Toolbar automatically hides":
null,

// Contents
"Contents":
Expand Down
6 changes: 6 additions & 0 deletions viewer/src/locales/English.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,12 @@ export default {
"Text cursor mode",
"Grab cursor mode":
"Grab cursor mode",
"Table of contents":
"Table of contents",
"Toolbar is always shown":
"Toolbar is always shown",
"Toolbar automatically hides":
"Toolbar automatically hides",

// Contents
"Contents":
Expand Down
6 changes: 6 additions & 0 deletions viewer/src/locales/French.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,12 @@ export default {
"Curseur pour mettre le texte en surbrillance",
"Grab cursor mode":
"Défilement glisser-déposer",
"Table of contents":
null,
"Toolbar is always shown":
null,
"Toolbar automatically hides":
null,

// Contents
"Contents":
Expand Down
6 changes: 6 additions & 0 deletions viewer/src/locales/Italian.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,12 @@ export default {
"Modalità selezione testo",
"Grab cursor mode":
"Modalità trascinamento pagina",
"Table of contents":
null,
"Toolbar is always shown":
null,
"Toolbar automatically hides":
null,

// Contents
"Contents":
Expand Down
6 changes: 6 additions & 0 deletions viewer/src/locales/Portuguese.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,12 @@ export default {
"Modo cursor de texto",
"Grab cursor mode":
"Modo de agarrar o cursor",
"Table of contents":
null,
"Toolbar is always shown":
null,
"Toolbar automatically hides":
null,

// Contents
"Contents":
Expand Down
6 changes: 6 additions & 0 deletions viewer/src/locales/Russian.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,12 @@ export default {
"Курсор для выделения текста",
"Grab cursor mode":
"Режим перетаскивания",
"Table of contents":
"Оглавление",
"Toolbar is always shown":
"Панель инструментов всегда отображается",
"Toolbar automatically hides":
"Панель инструментов автоматически скрывается",

// Contents
"Contents":
Expand Down
6 changes: 6 additions & 0 deletions viewer/src/locales/Spanish.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,12 @@ export default {
"Modo cursor de texto",
"Grab cursor mode":
"Modo cursor de agarre",
"Table of contents":
null,
"Toolbar is always shown":
null,
"Toolbar automatically hides":
null,

// Contents
"Contents":
Expand Down
6 changes: 6 additions & 0 deletions viewer/src/locales/Swedish.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,12 @@ export default {
"Visningsläge med textmarkör",
"Grab cursor mode":
"Visningsläge med greppbart markörläge",
"Table of contents":
null,
"Toolbar is always shown":
null,
"Toolbar automatically hides":
null,

// Contents
"Contents":
Expand Down

0 comments on commit c480870

Please sign in to comment.