Compare commits
9 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 37b9beb8f7 | |||
| 0402e00eac | |||
| 8c9dc83a59 | |||
| 66716ec53b | |||
| 879f9f092b | |||
| 66a2843a14 | |||
| c517adcb81 | |||
| 84efcbd36c | |||
| 6be15c269b |
@@ -7,17 +7,9 @@ when:
|
|||||||
branch: [master, develop, feature/*, fix/*, bugfix/*, translations]
|
branch: [master, develop, feature/*, fix/*, bugfix/*, translations]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
# "Install dependencies":
|
|
||||||
# image: node:20
|
|
||||||
# pull: true
|
|
||||||
# commands:
|
|
||||||
# - npm i
|
|
||||||
|
|
||||||
"Build JS":
|
"Build JS":
|
||||||
image: node:20
|
image: node:20
|
||||||
commands:
|
commands:
|
||||||
- make dep
|
|
||||||
- ls -l node_modules/@nextcloud/vue/dist/Components
|
|
||||||
- make build
|
- make build
|
||||||
|
|
||||||
"Build translations":
|
"Build translations":
|
||||||
|
|||||||
@@ -1,5 +1,10 @@
|
|||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
## 4.0.1
|
||||||
|
### Fixed
|
||||||
|
* fix top menu labels (fix #368)
|
||||||
|
* fix #369: The menu is displayed even if there are no apps
|
||||||
|
|
||||||
## 4.0.0
|
## 4.0.0
|
||||||
### Added
|
### Added
|
||||||
* add compatibility with NC30
|
* add compatibility with NC30
|
||||||
|
|||||||
+1
-1
@@ -32,7 +32,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>4.0.0</version>
|
<version>4.0.1</version>
|
||||||
<licence>agpl</licence>
|
<licence>agpl</licence>
|
||||||
<author mail="contact@deblan.fr" homepage="https://www.deblan.io/">Simon Vieille</author>
|
<author mail="contact@deblan.fr" homepage="https://www.deblan.io/">Simon Vieille</author>
|
||||||
<namespace>SideMenu</namespace>
|
<namespace>SideMenu</namespace>
|
||||||
|
|||||||
+4
-2
@@ -110,14 +110,16 @@ export default defineComponent({
|
|||||||
mounted() {
|
mounted() {
|
||||||
axios.get(generateOcsUrl('core/navigation', 2) + '/apps?format=json')
|
axios.get(generateOcsUrl('core/navigation', 2) + '/apps?format=json')
|
||||||
.then((response) => response.data)
|
.then((response) => response.data)
|
||||||
.then((data) => {
|
.then((data) => {
|
||||||
if (data.ocs.meta.statuscode !== 200) {
|
if (data.ocs.meta.statuscode !== 200) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
this.setApps(data.ocs.data)
|
this.setApps(data.ocs.data)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
this.targetBlankApps = window.targetBlankApps
|
||||||
|
this.hiddenLabels = window.topMenuAppsMouseOverHiddenLabel
|
||||||
let timeout = null
|
let timeout = null
|
||||||
|
|
||||||
window.addEventListener('resize', () => {
|
window.addEventListener('resize', () => {
|
||||||
|
|||||||
+5
-6
@@ -39,7 +39,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
<ul class="side-menu-apps-list" :class="{'side-menu-apps-list--with-settings': !!settings}">
|
<ul class="side-menu-apps-list" :class="{'side-menu-apps-list--with-settings': !!settings}">
|
||||||
<SideMenuApp
|
<SideMenuApp
|
||||||
v-for="(app, key) in apps"
|
v-for="(app, key) in apps"
|
||||||
v-if="!hiddenApps.includes(app.id) && searchMatch(app.name)"
|
v-if="searchMatch(app.name)"
|
||||||
v-bind:classes="{'side-menu-app': true, 'active': app.active}"
|
v-bind:classes="{'side-menu-app': true, 'active': app.active}"
|
||||||
v-bind:key="key"
|
v-bind:key="key"
|
||||||
v-bind:icon="app.icon"
|
v-bind:icon="app.icon"
|
||||||
@@ -94,17 +94,16 @@ export default {
|
|||||||
orders[app] = order + 1
|
orders[app] = order + 1
|
||||||
})
|
})
|
||||||
|
|
||||||
for (let id in ncApps) {
|
for (let app of ncApps) {
|
||||||
if (window.topMenuApps.includes(id) && !window.topSideMenuApps.includes(id)) {
|
if (window.topMenuApps.includes(app.id) && !window.topSideMenuApps.includes(app.id)) {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.hiddenApps.includes(id)) {
|
if (this.hiddenApps.includes(app.id)) {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
let app = ncApps[id]
|
app.order = orders[app.id] || null
|
||||||
app.order = orders[id] || null
|
|
||||||
|
|
||||||
finalApps.push(app)
|
finalApps.push(app)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user