diff --git a/src/FilesSidebarCallViewApp.vue b/src/FilesSidebarCallViewApp.vue
index d27df21feee..dd48a54ffb6 100644
--- a/src/FilesSidebarCallViewApp.vue
+++ b/src/FilesSidebarCallViewApp.vue
@@ -22,10 +22,10 @@
-
-
-
-
-
+
@@ -54,9 +50,7 @@ import { loadState } from '@nextcloud/initial-state'
import NcButton from '@nextcloud/vue/dist/Components/NcButton.js'
-import ChatView from './components/ChatView.vue'
-import MediaSettings from './components/MediaSettings/MediaSettings.vue'
-import CallButton from './components/TopBar/CallButton.vue'
+import LoadingComponent from './components/LoadingComponent.vue'
import browserCheck from './mixins/browserCheck.js'
import sessionIssueHandler from './mixins/sessionIssueHandler.js'
@@ -76,9 +70,12 @@ export default {
name: 'FilesSidebarTabApp',
components: {
- CallButton,
- ChatView,
- MediaSettings,
+ FilesSidebarChatView: () => ({
+ component: import(/* webpackChunkName: "files-sidebar-tab-chunk" */'./views/FilesSidebarChatView.vue'),
+ loading: {
+ render: (h) => h(LoadingComponent, { class: 'tab-loading' }),
+ },
+ }),
NcButton,
},
@@ -426,16 +423,7 @@ export default {
justify-content: center;
}
-.call-button {
- /* Center button horizontally. */
- margin-left: auto;
- margin-right: auto;
-
- margin-top: 10px;
- margin-bottom: 10px;
-}
-
-.chatView {
- overflow: hidden;
+.tab-loading {
+ height: 100%;
}
diff --git a/src/components/LoadingComponent.vue b/src/components/LoadingComponent.vue
new file mode 100644
index 00000000000..3e9f3569dcb
--- /dev/null
+++ b/src/components/LoadingComponent.vue
@@ -0,0 +1,31 @@
+
+
+
+
+
+
diff --git a/src/views/FilesSidebarChatView.vue b/src/views/FilesSidebarChatView.vue
new file mode 100644
index 00000000000..67fed593926
--- /dev/null
+++ b/src/views/FilesSidebarChatView.vue
@@ -0,0 +1,68 @@
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/webpack.config.js b/webpack.config.js
index 970115584e2..da6e7401590 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -39,6 +39,13 @@ module.exports = mergeWithRules({
},
optimization: {
+ splitChunks: {
+ cacheGroups: {
+ defaultVendors: {
+ reuseExistingChunk: true,
+ },
+ },
+ },
minimizer: [
new EsbuildPlugin({
target: 'es2020',