Compare commits

...

8 Commits

Author SHA1 Message Date
Book Pauk
6ba46421b9 Merge branch 'release/0.12.2-1' 2022-09-04 21:43:54 +07:00
Book Pauk
d201961046 Поправка положения notify-сообщений 2022-09-04 21:42:50 +07:00
Book Pauk
614a7f9da7 Merge tag '0.12.2' into develop
0.12.2
2022-09-04 21:22:39 +07:00
Book Pauk
113ab3e596 Merge branch 'release/0.12.2' 2022-09-04 21:22:28 +07:00
Book Pauk
c95870bfe5 Добавлено сохранение во vuex настройки offlineModeActive 2022-09-04 21:20:21 +07:00
Book Pauk
e69e9335f9 Исправлен баг с формой для доната, показывалась каждый день, а не каждый месяц 2022-09-04 21:19:30 +07:00
Book Pauk
fd21cd77dd Node 16 2022-09-01 21:13:31 +07:00
Book Pauk
d1880acaf9 Merge tag '0.12.1' into develop
0.12.1
2022-09-01 21:10:57 +07:00
9 changed files with 34 additions and 8 deletions

View File

@@ -271,6 +271,10 @@ body, html, #app {
font: normal 12pt ReaderDefault;
}
.notify-margin {
margin-top: 55px;
}
.dborder {
border: 2px solid magenta !important;
}

View File

@@ -292,7 +292,6 @@ class Reader {
libsActive = false;
recentBooksActive = false;
clickControlActive = false;
offlineModeActive = false;
settingsActive = false;
clickMapActive = false;
@@ -807,6 +806,10 @@ class Reader {
return this.reader.toolBarActive;
}
get offlineModeActive() {
return this.reader.offlineModeActive;
}
mostRecentBook() {
const result = bookManager.mostRecentBook();
this.mostRecentBookReactive = result;
@@ -1019,7 +1022,7 @@ class Reader {
}
offlineModeToggle() {
this.offlineModeActive = !this.offlineModeActive;
this.commit('reader/setOfflineModeActive', !this.offlineModeActive);
this.$refs.serverStorage.offlineModeActive = this.offlineModeActive;
}

View File

@@ -1,4 +1,18 @@
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',
releaseDate: '2022-09-01',

View File

@@ -27,9 +27,10 @@ class Notify {
icon,
actions: [{icon: 'la la-times notify-button-icon', color: 'black'}],
html: true,
classes: 'notify-margin',
message:
`<div style="max-width: 350px;">
`<div style="max-width: 350px">
${caption}
<div style="color: ${messageColor}; overflow-wrap: break-word; word-wrap: break-word;">${message}</div>
</div>`

View File

@@ -46,7 +46,7 @@ export function formatDate(d, format) {
case 'coDate':
return `${d.getFullYear()}-${(d.getMonth() + 1).toString().padStart(2, '0')}-${d.getDate().toString().padStart(2, '0')}`;
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':
return `${d.getDate().toString().padStart(2, '0')}.${(d.getMonth() + 1).toString().padStart(2, '0')}.${d.getFullYear()}`;
}

View File

@@ -255,6 +255,7 @@ const libsDefaults = {
// initial state
const state = {
toolBarActive: true,
offlineModeActive: false,
serverSyncEnabled: false,
serverStorageKey: '',
profiles: {},
@@ -280,6 +281,9 @@ const mutations = {
setToolBarActive(state, value) {
state.toolBarActive = value;
},
setOfflineModeActive(state, value) {
state.offlineModeActive = value;
},
setServerSyncEnabled(state, value) {
state.serverSyncEnabled = value;
},

View File

@@ -10,7 +10,7 @@ git clone https://github.com/bookpauk/liberama
### node.js
```
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
```

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{
"name": "Liberama",
"version": "0.12.1",
"version": "0.12.2",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "Liberama",
"version": "0.12.1",
"version": "0.12.2",
"hasInstallScript": true,
"license": "CC0-1.0",
"dependencies": {

View File

@@ -1,6 +1,6 @@
{
"name": "Liberama",
"version": "0.12.1",
"version": "0.12.2",
"author": "Book Pauk <bookpauk@gmail.com>",
"license": "CC0-1.0",
"repository": "bookpauk/liberama",