Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6ba46421b9 | ||
|
|
d201961046 | ||
|
|
614a7f9da7 | ||
|
|
113ab3e596 | ||
|
|
c95870bfe5 | ||
|
|
e69e9335f9 | ||
|
|
fd21cd77dd | ||
|
|
d1880acaf9 |
@@ -271,6 +271,10 @@ body, html, #app {
|
|||||||
font: normal 12pt ReaderDefault;
|
font: normal 12pt ReaderDefault;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.notify-margin {
|
||||||
|
margin-top: 55px;
|
||||||
|
}
|
||||||
|
|
||||||
.dborder {
|
.dborder {
|
||||||
border: 2px solid magenta !important;
|
border: 2px solid magenta !important;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -292,7 +292,6 @@ class Reader {
|
|||||||
libsActive = false;
|
libsActive = false;
|
||||||
recentBooksActive = false;
|
recentBooksActive = false;
|
||||||
clickControlActive = false;
|
clickControlActive = false;
|
||||||
offlineModeActive = false;
|
|
||||||
settingsActive = false;
|
settingsActive = false;
|
||||||
|
|
||||||
clickMapActive = false;
|
clickMapActive = false;
|
||||||
@@ -807,6 +806,10 @@ class Reader {
|
|||||||
return this.reader.toolBarActive;
|
return this.reader.toolBarActive;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
get offlineModeActive() {
|
||||||
|
return this.reader.offlineModeActive;
|
||||||
|
}
|
||||||
|
|
||||||
mostRecentBook() {
|
mostRecentBook() {
|
||||||
const result = bookManager.mostRecentBook();
|
const result = bookManager.mostRecentBook();
|
||||||
this.mostRecentBookReactive = result;
|
this.mostRecentBookReactive = result;
|
||||||
@@ -1019,7 +1022,7 @@ class Reader {
|
|||||||
}
|
}
|
||||||
|
|
||||||
offlineModeToggle() {
|
offlineModeToggle() {
|
||||||
this.offlineModeActive = !this.offlineModeActive;
|
this.commit('reader/setOfflineModeActive', !this.offlineModeActive);
|
||||||
this.$refs.serverStorage.offlineModeActive = this.offlineModeActive;
|
this.$refs.serverStorage.offlineModeActive = this.offlineModeActive;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,18 @@
|
|||||||
export const versionHistory = [
|
export const versionHistory = [
|
||||||
|
{
|
||||||
|
version: '0.12.2',
|
||||||
|
releaseDate: '2022-09-04',
|
||||||
|
showUntil: '2022-09-11',
|
||||||
|
content:
|
||||||
|
`
|
||||||
|
<ul>
|
||||||
|
<li>исправлен баг с формой для доната, показывалась каждый день, а не каждый месяц</li>
|
||||||
|
<li>автор приносит извинения за доставленные неудобства</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
`
|
||||||
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
version: '0.12.1',
|
version: '0.12.1',
|
||||||
releaseDate: '2022-09-01',
|
releaseDate: '2022-09-01',
|
||||||
|
|||||||
@@ -27,9 +27,10 @@ class Notify {
|
|||||||
icon,
|
icon,
|
||||||
actions: [{icon: 'la la-times notify-button-icon', color: 'black'}],
|
actions: [{icon: 'la la-times notify-button-icon', color: 'black'}],
|
||||||
html: true,
|
html: true,
|
||||||
|
classes: 'notify-margin',
|
||||||
|
|
||||||
message:
|
message:
|
||||||
`<div style="max-width: 350px;">
|
`<div style="max-width: 350px">
|
||||||
${caption}
|
${caption}
|
||||||
<div style="color: ${messageColor}; overflow-wrap: break-word; word-wrap: break-word;">${message}</div>
|
<div style="color: ${messageColor}; overflow-wrap: break-word; word-wrap: break-word;">${message}</div>
|
||||||
</div>`
|
</div>`
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ export function formatDate(d, format) {
|
|||||||
case 'coDate':
|
case 'coDate':
|
||||||
return `${d.getFullYear()}-${(d.getMonth() + 1).toString().padStart(2, '0')}-${d.getDate().toString().padStart(2, '0')}`;
|
return `${d.getFullYear()}-${(d.getMonth() + 1).toString().padStart(2, '0')}-${d.getDate().toString().padStart(2, '0')}`;
|
||||||
case 'coMonth':
|
case 'coMonth':
|
||||||
return `${(d.getMonth() + 1).toString().padStart(2, '0')}-${d.getDate().toString().padStart(2, '0')}`;
|
return `${(d.getMonth() + 1).toString().padStart(2, '0')}`;
|
||||||
case 'noDate':
|
case 'noDate':
|
||||||
return `${d.getDate().toString().padStart(2, '0')}.${(d.getMonth() + 1).toString().padStart(2, '0')}.${d.getFullYear()}`;
|
return `${d.getDate().toString().padStart(2, '0')}.${(d.getMonth() + 1).toString().padStart(2, '0')}.${d.getFullYear()}`;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -255,6 +255,7 @@ const libsDefaults = {
|
|||||||
// initial state
|
// initial state
|
||||||
const state = {
|
const state = {
|
||||||
toolBarActive: true,
|
toolBarActive: true,
|
||||||
|
offlineModeActive: false,
|
||||||
serverSyncEnabled: false,
|
serverSyncEnabled: false,
|
||||||
serverStorageKey: '',
|
serverStorageKey: '',
|
||||||
profiles: {},
|
profiles: {},
|
||||||
@@ -280,6 +281,9 @@ const mutations = {
|
|||||||
setToolBarActive(state, value) {
|
setToolBarActive(state, value) {
|
||||||
state.toolBarActive = value;
|
state.toolBarActive = value;
|
||||||
},
|
},
|
||||||
|
setOfflineModeActive(state, value) {
|
||||||
|
state.offlineModeActive = value;
|
||||||
|
},
|
||||||
setServerSyncEnabled(state, value) {
|
setServerSyncEnabled(state, value) {
|
||||||
state.serverSyncEnabled = value;
|
state.serverSyncEnabled = value;
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ git clone https://github.com/bookpauk/liberama
|
|||||||
### node.js
|
### node.js
|
||||||
```
|
```
|
||||||
sudo apt install -y curl
|
sudo apt install -y curl
|
||||||
curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -
|
curl -sL https://deb.nodesource.com/setup_16.x | sudo -E bash -
|
||||||
sudo apt install -y nodejs
|
sudo apt install -y nodejs
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "Liberama",
|
"name": "Liberama",
|
||||||
"version": "0.12.1",
|
"version": "0.12.2",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "Liberama",
|
"name": "Liberama",
|
||||||
"version": "0.12.1",
|
"version": "0.12.2",
|
||||||
"hasInstallScript": true,
|
"hasInstallScript": true,
|
||||||
"license": "CC0-1.0",
|
"license": "CC0-1.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "Liberama",
|
"name": "Liberama",
|
||||||
"version": "0.12.1",
|
"version": "0.12.2",
|
||||||
"author": "Book Pauk <bookpauk@gmail.com>",
|
"author": "Book Pauk <bookpauk@gmail.com>",
|
||||||
"license": "CC0-1.0",
|
"license": "CC0-1.0",
|
||||||
"repository": "bookpauk/liberama",
|
"repository": "bookpauk/liberama",
|
||||||
|
|||||||
Reference in New Issue
Block a user