Skip to content

Commit

Permalink
feat: load web components js in only in app context
Browse files Browse the repository at this point in the history
  • Loading branch information
Quentin-Guillemin committed Apr 22, 2024
1 parent 4963da4 commit 4cc68e0
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
3 changes: 0 additions & 3 deletions src/main/webapp/src/main.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
import 'regenerator-runtime/runtime.js';

import '@gip-recia/tldraw-webcomponent';
import '@gip-recia/wisemapping-webcomponent';

import { createApp } from 'vue';

import { register as registerDirectives } from '@/directives/index.ts';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import { useAppStore } from '@/stores/appStore.ts';
import { useConfigurationStore } from '@/stores/configurationStore.ts';
import { headObserver, styleObserver } from '@/utils/tldrawUtils.ts';
import '@gip-recia/tldraw-webcomponent';
import { storeToRefs } from 'pinia';
import { computed, onMounted, onUnmounted } from 'vue';
import { useTheme } from 'vuetify';
Expand Down
1 change: 1 addition & 0 deletions src/main/webapp/src/views/app/tldraw/TldrawView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { useAppStore } from '@/stores/appStore.ts';
import { useConfigurationStore } from '@/stores/configurationStore.ts';
import { useFileStore } from '@/stores/fileStore.ts';
import { headObserver, styleObserver } from '@/utils/tldrawUtils.ts';
import '@gip-recia/tldraw-webcomponent';
import { storeToRefs } from 'pinia';
import { computed, onMounted, onUnmounted } from 'vue';
import { useTheme } from 'vuetify';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<script setup lang="ts"></script>
<script setup lang="ts">
import '@gip-recia/wisemapping-webcomponent';
</script>

<template>
<div></div>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<script setup lang="ts">
import { useConfigurationStore } from '@/stores/configurationStore.ts';
import { useFileStore } from '@/stores/fileStore.ts';
import '@gip-recia/wisemapping-webcomponent';
import { storeToRefs } from 'pinia';
import { computed } from 'vue';
Expand Down

0 comments on commit 4cc68e0

Please sign in to comment.