Merge branch 'develop' into bugfix/intl-segmenter-polyfill
This commit is contained in:
commit
77cf610c8b
6 changed files with 28 additions and 9 deletions
16
CHANGELOG.md
16
CHANGELOG.md
|
|
@ -1,9 +1,23 @@
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
## 5.1.4-rc1
|
## 5.2.2
|
||||||
### Fixed
|
### Fixed
|
||||||
- fix #464: add Intl.Segmenter polyfill
|
- fix #464: add Intl.Segmenter polyfill
|
||||||
|
|
||||||
|
## 5.2.1
|
||||||
|
### Added
|
||||||
|
- chore: set side_menu as package name
|
||||||
|
### Fixed
|
||||||
|
- fix(LangRepository): check orm capabilities to query entities
|
||||||
|
- fix(admin/\*SaveButton): cast settings to string
|
||||||
|
|
||||||
|
## 5.2.0
|
||||||
|
### Added
|
||||||
|
* add compatibility with NC33
|
||||||
|
### Fixed
|
||||||
|
* fix #468: force nextcloud logo display css rule (opener-only)
|
||||||
|
>>>>>>> develop
|
||||||
|
|
||||||
## 5.1.3
|
## 5.1.3
|
||||||
### Fixed
|
### Fixed
|
||||||
- fix #445: fix build by adding package-lock.json
|
- fix #445: fix build by adding package-lock.json
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@ Notice
|
||||||
Because I believe in a free and decentralized Internet, [Gitnet](https://gitnet.fr) is **self-hosted at home**.
|
Because I believe in a free and decentralized Internet, [Gitnet](https://gitnet.fr) is **self-hosted at home**.
|
||||||
In case of downtime, you can download **Custom Menu** from [here](https://kim.deblan.fr/~side_menu/).
|
In case of downtime, you can download **Custom Menu** from [here](https://kim.deblan.fr/~side_menu/).
|
||||||
]]></description>
|
]]></description>
|
||||||
<version>5.1.4-rc1</version>
|
<version>5.2.2</version>
|
||||||
<licence>agpl</licence>
|
<licence>agpl</licence>
|
||||||
<author mail="contact@deblan.fr" homepage="https://www.deblan.fr/">Simon Vieille</author>
|
<author mail="contact@deblan.fr" homepage="https://www.deblan.fr/">Simon Vieille</author>
|
||||||
<namespace>SideMenu</namespace>
|
<namespace>SideMenu</namespace>
|
||||||
|
|
@ -53,7 +53,7 @@ In case of downtime, you can download **Custom Menu** from [here](https://kim.de
|
||||||
<screenshot><![CDATA[https://gitnet.fr/deblan/side_menu/raw/branch/master/screenshots/nc25_default_menu.png]]></screenshot>
|
<screenshot><![CDATA[https://gitnet.fr/deblan/side_menu/raw/branch/master/screenshots/nc25_default_menu.png]]></screenshot>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<php min-version="8.1" max-version="8.4" />
|
<php min-version="8.1" max-version="8.4" />
|
||||||
<nextcloud min-version="31" max-version="32"/>
|
<nextcloud min-version="31" max-version="33"/>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
<settings>
|
<settings>
|
||||||
<admin>OCA\SideMenu\Settings\Admin</admin>
|
<admin>OCA\SideMenu\Settings\Admin</admin>
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,12 @@ class LangRepository
|
||||||
->from('preferences')
|
->from('preferences')
|
||||||
;
|
;
|
||||||
|
|
||||||
$stmt = $qb->execute();
|
// Nextcloud >=33+
|
||||||
|
if (method_exists($qb, 'executeQuery')) {
|
||||||
|
$stmt = $qb->executeQuery();
|
||||||
|
} else {
|
||||||
|
$stmt = $qb->execute();
|
||||||
|
}
|
||||||
|
|
||||||
$langs = ['en'];
|
$langs = ['en'];
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -73,10 +73,10 @@ const save = async () => {
|
||||||
if (Array.isArray(value) || typeof value === 'object') {
|
if (Array.isArray(value) || typeof value === 'object') {
|
||||||
value = JSON.stringify(value)
|
value = JSON.stringify(value)
|
||||||
} else if (typeof value === 'boolean') {
|
} else if (typeof value === 'boolean') {
|
||||||
value = value ? 1 : 0
|
value = value ? '1' : '0'
|
||||||
}
|
}
|
||||||
|
|
||||||
OCP.AppConfig.setValue('side_menu', key, value, {
|
OCP.AppConfig.setValue('side_menu', key, value.toString(), {
|
||||||
success() {
|
success() {
|
||||||
update()
|
update()
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -69,11 +69,11 @@ const save = async () => {
|
||||||
if (Array.isArray(value) || typeof value === 'object') {
|
if (Array.isArray(value) || typeof value === 'object') {
|
||||||
value = JSON.stringify(value)
|
value = JSON.stringify(value)
|
||||||
} else if (typeof value === 'boolean') {
|
} else if (typeof value === 'boolean') {
|
||||||
value = value ? 1 : 0
|
value = value ? '1' : '0'
|
||||||
}
|
}
|
||||||
|
|
||||||
formData.push('name=' + encodeURIComponent(key))
|
formData.push('name=' + encodeURIComponent(key))
|
||||||
formData.push('value=' + encodeURIComponent(value))
|
formData.push('value=' + encodeURIComponent(value.toString()))
|
||||||
|
|
||||||
fetch(url, {
|
fetch(url, {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
|
|
|
||||||
|
|
@ -38,7 +38,7 @@ body[data-theme-light], body[data-theme-light-highcontrast] {
|
||||||
|
|
||||||
<?php if ($_['opener-only']) { ?>
|
<?php if ($_['opener-only']) { ?>
|
||||||
#nextcloud {
|
#nextcloud {
|
||||||
display: none;
|
display: none !important;
|
||||||
}
|
}
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue