Skip to content

Commit

Permalink
Merge pull request #10403 from nextcloud/bug/noid/disable-async-compo…
Browse files Browse the repository at this point in the history
…nents

fix: disable async vue components
  • Loading branch information
ChristophWurst authored Nov 25, 2024
2 parents a94118b + dfd4402 commit a276629
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
"private": true,
"type": "module",
"scripts": {
"build": "NODE_ENV=production NODE_OPTIONS='--max-old-space-size=4096' vite --mode=production build",
"dev": "NODE_ENV=development NODE_OPTIONS='--max-old-space-size=4096' vite --mode=development build",
"build": "NODE_ENV=production NODE_OPTIONS='--max-old-space-size=8192' vite --mode=production build",
"dev": "NODE_ENV=development NODE_OPTIONS='--max-old-space-size=8192' vite --mode=development build",
"watch": "NODE_ENV=development NODE_OPTIONS='--max-old-space-size=8192' vite build --mode=development --watch",
"lint": "eslint --ext .js,.vue --ignore-pattern tests src",
"lint:fix": "eslint --ext .js,.vue --ignore-pattern tests src --fix",
Expand Down
3 changes: 2 additions & 1 deletion src/components/NavigationAccount.vue
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ import IconFolderAdd from 'vue-material-design-icons/Folder.vue'
import MenuDown from 'vue-material-design-icons/ChevronDown.vue'
import MenuUp from 'vue-material-design-icons/ChevronUp.vue'
import IconDelete from 'vue-material-design-icons/Delete.vue'
import AccountSettings from './AccountSettings.vue'
import { DialogBuilder } from '@nextcloud/dialogs'
export default {
name: 'NavigationAccount',
Expand All @@ -108,7 +109,7 @@ export default {
ActionCheckbox,
ActionInput,
ActionText,
AccountSettings: () => import(/* webpackChunkName: "account-settings" */ './AccountSettings.vue'),
AccountSettings,
IconInfo,
IconSettings,
IconFolderAdd,
Expand Down
4 changes: 2 additions & 2 deletions src/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import Vue from 'vue'
import Router from 'vue-router'
import { generateUrl } from '@nextcloud/router'

const Home = () => import('./views/Home.vue')
const Setup = () => import('./views/Setup.vue')
import Home from './views/Home.vue'
import Setup from './views/Setup.vue'

Vue.use(Router)

Expand Down
3 changes: 2 additions & 1 deletion src/views/Home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import MailboxThread from '../components/MailboxThread.vue'
import Navigation from '../components/Navigation.vue'
import Outbox from '../components/Outbox.vue'
import ComposerSessionIndicator from '../components/ComposerSessionIndicator.vue'
import NewMessageModal from '../components/NewMessageModal.vue'
import { mapGetters } from 'vuex'
export default {
Expand All @@ -38,7 +39,7 @@ export default {
NcContent,
MailboxThread,
Navigation,
NewMessageModal: () => import(/* webpackChunkName: "new-message-modal" */ '../components/NewMessageModal.vue'),
NewMessageModal,
Outbox,
ComposerSessionIndicator,
},
Expand Down

0 comments on commit a276629

Please sign in to comment.