mirror of
https://github.com/ArthurDanjou/artchat.git
synced 2026-01-14 18:59:54 +01:00
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:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user