fix build: remove ts, replace hash with chunkhash on webpack conf

This commit is contained in:
Simon Vieille
2024-10-27 18:06:10 +01:00
parent 894e4408f9
commit 6ea1a4e6c6
4 changed files with 16 additions and 20 deletions
+7 -12
View File
@@ -70,9 +70,7 @@
</nav>
</template>
<script lang="ts">
import type { INavigationEntry } from '../types/navigation'
<script>
import { subscribe, unsubscribe } from '@nextcloud/event-bus'
import { loadState } from '@nextcloud/initial-state'
import { n, t } from '@nextcloud/l10n'
@@ -80,7 +78,6 @@ import { useElementSize } from '@vueuse/core'
import { defineComponent, ref } from 'vue'
import axios from '@nextcloud/axios'
import { generateOcsUrl } from '@nextcloud/router'
import NcActions from '@nextcloud/vue/dist/Components/NcActions.js'
import NcActionLink from '@nextcloud/vue/dist/Components/NcActionLink.js'
@@ -88,7 +85,8 @@ export default defineComponent({
name: 'AppMenu',
components: {
NcActions, NcActionLink,
NcActions,
NcActionLink,
},
setup() {
@@ -111,7 +109,8 @@ export default defineComponent({
mounted() {
axios.get(generateOcsUrl('core/navigation', 2) + '/apps?format=json')
.then(({ data }) => {
.then((response) => response.data)
.then((data) => {
if (data.ocs.meta.statuscode !== 200) {
return
}
@@ -128,10 +127,6 @@ export default defineComponent({
})
},
beforeDestroy() {
unsubscribe('nextcloud:app-menu.refresh', this.setApps)
},
methods: {
update() {
++this.state
@@ -156,7 +151,7 @@ export default defineComponent({
return maxApps
},
setNavigationCounter(id: string, counter: number) {
setNavigationCounter(id, counter) {
const app = this.appList.find(({ app }) => app === id)
if (app) {
this.$set(app, 'unread', counter)
@@ -187,7 +182,7 @@ export default defineComponent({
return app.name
+ (app.active ? ' (' + t('core', 'Currently open') + ')' : '')
+ (app.unread > 0 ? ' (' + n('core', '{count} notification', '{count} notifications', app.unread, { count: app.unread }) + ')' : '')
}
},
makeStyle(app) {
if (app.order !== null) {