chore: don't use async

This commit is contained in:
Shivam Mishra
2024-10-08 11:18:13 +05:30
parent 91bac16c29
commit 9101e1e221
4 changed files with 5 additions and 18 deletions
@@ -1,6 +1,6 @@
<script>
// [TODO] The popout events are needlessly complex and should be simplified
import { defineAsyncComponent, defineModel } from 'vue';
import { defineModel } from 'vue';
import { mapGetters } from 'vuex';
import { useAlert } from 'dashboard/composables';
import { useUISettings } from 'dashboard/composables/useUISettings';
@@ -44,9 +44,7 @@ import {
import { LOCAL_STORAGE_KEYS } from 'dashboard/constants/localStorage';
import { LocalStorage } from 'shared/helpers/localStorage';
import { emitter } from 'shared/helpers/mitt';
const EmojiInput = defineAsyncComponent(
() => import('shared/components/emoji/EmojiInput.vue')
);
import EmojiInput from 'shared/components/emoji/EmojiInput.vue';
export default {
components: {
@@ -1,5 +1,4 @@
<script>
import { defineAsyncComponent } from 'vue';
import Sidebar from '../../components/layout/Sidebar.vue';
import { BUS_EVENTS } from 'shared/constants/busEvents';
import WootKeyShortcutModal from 'dashboard/components/widgets/modal/WootKeyShortcutModal.vue';
@@ -9,9 +8,7 @@ import AddLabelModal from 'dashboard/routes/dashboard/settings/labels/AddLabel.v
import NotificationPanel from 'dashboard/routes/dashboard/notifications/components/NotificationPanel.vue';
import { useUISettings } from 'dashboard/composables/useUISettings';
import wootConstants from 'dashboard/constants/globals';
const CommandBar = defineAsyncComponent(
() => import('./commands/commandbar.vue')
);
import CommandBar from './commands/commandbar.vue';
import { emitter } from 'shared/helpers/mitt';
export default {
@@ -1,5 +1,4 @@
<script>
import { defineAsyncComponent } from 'vue';
import { mapGetters } from 'vuex';
import UpgradePage from './UpgradePage.vue';
import { frontendURL } from '../../../../helper/URLHelper';
@@ -15,10 +14,7 @@ import portalMixin from '../mixins/portalMixin';
import AddCategory from '../pages/categories/AddCategory.vue';
import { FEATURE_FLAGS } from 'dashboard/featureFlags';
import { emitter } from 'shared/helpers/mitt';
const CommandBar = defineAsyncComponent(
() => import('dashboard/routes/dashboard/commands/commandbar.vue')
);
import CommandBar from 'dashboard/routes/dashboard/commands/commandbar.vue';
export default {
components: {
@@ -1,9 +1,5 @@
<script>
import { defineAsyncComponent } from 'vue';
const EmojiInput = defineAsyncComponent(
() => import('shared/components/emoji/EmojiInput.vue')
);
import EmojiInput from 'shared/components/emoji/EmojiInput.vue';
export default {
components: { EmojiInput },