Skip to content

Commit

Permalink
Load all components synchronously
Browse files Browse the repository at this point in the history
  • Loading branch information
petterhj committed Sep 25, 2023
1 parent 2246dc5 commit 6a0758b
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 15 deletions.
3 changes: 2 additions & 1 deletion src/components/OkrLinkCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,13 @@
<script>
import { mapState } from 'vuex';
import { PktTag } from '@oslokommune/punkt-vue2';
import ProgressBar from '@/components/ProgressBar.vue';
export default {
name: 'OkrLinkCard',
components: {
ProgressBar: () => import('@/components/ProgressBar.vue'),
ProgressBar,
PktTag,
},
Expand Down
21 changes: 12 additions & 9 deletions src/components/panes/KeyResultPane.vue
Original file line number Diff line number Diff line change
Expand Up @@ -103,28 +103,31 @@ import Progress from '@/db/Progress';
import LineChart from '@/util/LineChart';
import { getRandomInt } from '@/util';
import { getKeyResultProgressDetails } from '@/util/keyResultProgress';
import { PktButton } from '@oslokommune/punkt-vue2';
import { PktAlert, PktButton } from '@oslokommune/punkt-vue2';
import PaneWrapper from '@/components/panes/PaneWrapper.vue';
import WidgetWrapper from '@/components/widgets/WidgetWrapper.vue';
import WidgetProgressHistory from '@/components/widgets/WidgetProgressHistory/WidgetProgressHistory.vue';
// import WidgetKeyResultNotes from '@/components/widgets/WidgetKeyResultNotes.vue';
import WidgetKeyResultDetails from '@/components/widgets/WidgetKeyResultDetails.vue';
import PaneWrapper from '@/components/panes/PaneWrapper.vue';
import ArchivedRestore from '@/components/ArchivedRestore.vue';
import HTMLOutput from '@/components/HTMLOutput.vue';
import ProgressModal from '@/components/modals/ProgressModal.vue';
import ProgressBar from '@/components/ProgressBar.vue';
export default {
name: 'KeyResultPane',
components: {
PktAlert: () => import('@oslokommune/punkt-vue2').then(({ PktAlert }) => PktAlert),
ArchivedRestore: () => import('@/components/ArchivedRestore.vue'),
ProgressModal: () => import('@/components/modals/ProgressModal.vue'),
HTMLOutput: () => import('@/components/HTMLOutput.vue'),
PktAlert,
PktButton,
PaneWrapper,
Widget: WidgetWrapper,
WidgetProgressHistory,
WidgetKeyResultDetails,
// WidgetKeyResultNotes,
PaneWrapper,
PktButton,
WidgetKeyResultDetails,
ArchivedRestore,
HTMLOutput,
ProgressModal,
ProgressBar,
},
Expand Down
9 changes: 6 additions & 3 deletions src/components/panes/ObjectivePane.vue
Original file line number Diff line number Diff line change
Expand Up @@ -97,15 +97,18 @@ import PaneWrapper from '@/components/panes/PaneWrapper.vue';
import LoadingSmall from '@/components/LoadingSmall.vue';
import WidgetObjectiveDetails from '@/components/widgets/WidgetObjectiveDetails.vue';
import WidgetWeights from '@/components/widgets/WidgetWeights.vue';
import EmptyState from '@/components/EmptyState.vue';
import OkrLinkCard from '@/components/OkrLinkCard.vue';
import HTMLOutput from '@/components/HTMLOutput.vue';
export default {
name: 'ObjectivePane',
components: {
PaneWrapper,
EmptyState: () => import('@/components/EmptyState.vue'),
OkrLinkCard: () => import('@/components/OkrLinkCard.vue'),
HTMLOutput: () => import('@/components/HTMLOutput.vue'),
EmptyState,
OkrLinkCard,
HTMLOutput,
LoadingSmall,
PktButton,
PktTag,
Expand Down
6 changes: 4 additions & 2 deletions src/components/panes/WorkbenchPane.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,16 @@
import { mapActions, mapGetters, mapState } from 'vuex';
import { PktButton } from '@oslokommune/punkt-vue2';
import PaneWrapper from '@/components/panes/PaneWrapper.vue';
import OkrLinkCard from '@/components/OkrLinkCard.vue';
import ProgressBar from '@/components/ProgressBar.vue';
export default {
name: 'WorkbenchPane',
components: {
PaneWrapper,
OkrLinkCard: () => import('@/components/OkrLinkCard.vue'),
ProgressBar: () => import('@/components/ProgressBar.vue'),
OkrLinkCard,
ProgressBar,
PktButton,
},
Expand Down

0 comments on commit 6a0758b

Please sign in to comment.