refactor: remove infinite canvas module and related components

- Deleted the `useImagePreloader` composable and its associated types.
- Removed the `useInfiniteCanvas` composable along with its types and constants.
- Eliminated the `index.ts` file for the infinite canvas module.
- Removed utility functions related to touch and video handling.
- Deleted the screenshots module and its functionality.
- Updated package.json to remove `capture-website` dependency.
- Added new images for documentation purposes.
This commit is contained in:
2025-09-05 11:48:35 +02:00
parent 5dadb20607
commit b140760cfe
25 changed files with 16 additions and 2028 deletions

View File

@@ -48,7 +48,7 @@ defineShortcuts({
const isMobile = computed(() => {
if (!import.meta.client)
return false
return isMobileDevice(navigator.userAgent, window.innerWidth)
return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) || window.innerWidth <= 768
})
const activeElement = useActiveElement()
watch(openMessageModal, async () => {
@@ -206,23 +206,6 @@ function goHome() {
@click.prevent="goHome"
/>
</UTooltip>
<UTooltip
v-if="router.currentRoute.value.name !== 'canva'"
:text="t('palette.tooltip.canva')"
arrow
:content="toolTipContent"
:delay-duration="0"
>
<UButton
:label="t('palette.cmd.canva')"
variant="outline"
color="neutral"
size="xl"
icon="i-ph-presentation-duotone"
href="/canva"
class="rounded-lg cursor-pointer p-2 w-full justify-center"
/>
</UTooltip>
</UFieldGroup>
<ClientOnly>
<UFieldGroup class="flex items-center justify-center">