mirror of
https://github.com/haexhub/haex-hub.git
synced 2025-12-16 22:20:51 +01:00
fix linting
This commit is contained in:
@ -36,7 +36,7 @@
|
|||||||
<div class="flex flex-col items-center gap-4">
|
<div class="flex flex-col items-center gap-4">
|
||||||
<div
|
<div
|
||||||
class="animate-spin rounded-full h-12 w-12 border-b-2 border-blue-500"
|
class="animate-spin rounded-full h-12 w-12 border-b-2 border-blue-500"
|
||||||
></div>
|
/>
|
||||||
<p class="text-sm text-gray-600 dark:text-gray-400">
|
<p class="text-sm text-gray-600 dark:text-gray-400">
|
||||||
Loading extension...
|
Loading extension...
|
||||||
</p>
|
</p>
|
||||||
|
|||||||
@ -37,7 +37,7 @@
|
|||||||
:alt="label"
|
:alt="label"
|
||||||
class="w-14 h-14 object-contain transition-transform duration-200"
|
class="w-14 h-14 object-contain transition-transform duration-200"
|
||||||
:class="{ 'scale-110': isSelected }"
|
:class="{ 'scale-110': isSelected }"
|
||||||
/>
|
>
|
||||||
<UIcon
|
<UIcon
|
||||||
v-else
|
v-else
|
||||||
name="i-heroicons-puzzle-piece-solid"
|
name="i-heroicons-puzzle-piece-solid"
|
||||||
|
|||||||
@ -14,9 +14,9 @@
|
|||||||
no-swiping-class="no-swipe"
|
no-swiping-class="no-swipe"
|
||||||
:allow-touch-move="allowSwipe"
|
:allow-touch-move="allowSwipe"
|
||||||
class="w-full h-full"
|
class="w-full h-full"
|
||||||
|
direction="vertical"
|
||||||
@swiper="onSwiperInit"
|
@swiper="onSwiperInit"
|
||||||
@slide-change="onSlideChange"
|
@slide-change="onSlideChange"
|
||||||
direction="vertical"
|
|
||||||
>
|
>
|
||||||
<SwiperSlide
|
<SwiperSlide
|
||||||
v-for="workspace in workspaces"
|
v-for="workspace in workspaces"
|
||||||
@ -115,12 +115,12 @@
|
|||||||
windowManager.showWindowOverview || !window.isMinimized
|
windowManager.showWindowOverview || !window.isMinimized
|
||||||
"
|
"
|
||||||
:id="window.id"
|
:id="window.id"
|
||||||
:title="window.title"
|
|
||||||
:icon="window.icon"
|
|
||||||
v-model:x="overviewWindowState.get(window.id)!.x"
|
v-model:x="overviewWindowState.get(window.id)!.x"
|
||||||
v-model:y="overviewWindowState.get(window.id)!.y"
|
v-model:y="overviewWindowState.get(window.id)!.y"
|
||||||
v-model:width="overviewWindowState.get(window.id)!.width"
|
v-model:width="overviewWindowState.get(window.id)!.width"
|
||||||
v-model:height="overviewWindowState.get(window.id)!.height"
|
v-model:height="overviewWindowState.get(window.id)!.height"
|
||||||
|
:title="window.title"
|
||||||
|
:icon="window.icon"
|
||||||
:is-active="windowManager.isWindowActive(window.id)"
|
:is-active="windowManager.isWindowActive(window.id)"
|
||||||
:source-x="window.sourceX"
|
:source-x="window.sourceX"
|
||||||
:source-y="window.sourceY"
|
:source-y="window.sourceY"
|
||||||
@ -162,12 +162,12 @@
|
|||||||
v-else
|
v-else
|
||||||
v-show="windowManager.showWindowOverview || !window.isMinimized"
|
v-show="windowManager.showWindowOverview || !window.isMinimized"
|
||||||
:id="window.id"
|
:id="window.id"
|
||||||
:title="window.title"
|
|
||||||
:icon="window.icon"
|
|
||||||
v-model:x="window.x"
|
v-model:x="window.x"
|
||||||
v-model:y="window.y"
|
v-model:y="window.y"
|
||||||
v-model:width="window.width"
|
v-model:width="window.width"
|
||||||
v-model:height="window.height"
|
v-model:height="window.height"
|
||||||
|
:title="window.title"
|
||||||
|
:icon="window.icon"
|
||||||
:is-active="windowManager.isWindowActive(window.id)"
|
:is-active="windowManager.isWindowActive(window.id)"
|
||||||
:source-x="window.sourceX"
|
:source-x="window.sourceX"
|
||||||
:source-y="window.sourceY"
|
:source-y="window.sourceY"
|
||||||
|
|||||||
@ -15,7 +15,7 @@
|
|||||||
type="checkbox"
|
type="checkbox"
|
||||||
class="checkbox"
|
class="checkbox"
|
||||||
:checked="Object.values(read).at(0)"
|
:checked="Object.values(read).at(0)"
|
||||||
/>
|
>
|
||||||
<label
|
<label
|
||||||
class="label-text text-base"
|
class="label-text text-base"
|
||||||
:for="Object.keys(read).at(0)"
|
:for="Object.keys(read).at(0)"
|
||||||
@ -42,7 +42,7 @@
|
|||||||
type="checkbox"
|
type="checkbox"
|
||||||
class="checkbox"
|
class="checkbox"
|
||||||
:checked="Object.values(write).at(0)"
|
:checked="Object.values(write).at(0)"
|
||||||
/>
|
>
|
||||||
<label
|
<label
|
||||||
class="label-text text-base"
|
class="label-text text-base"
|
||||||
:for="Object.keys(write).at(0)"
|
:for="Object.keys(write).at(0)"
|
||||||
@ -69,7 +69,7 @@
|
|||||||
type="checkbox"
|
type="checkbox"
|
||||||
class="checkbox"
|
class="checkbox"
|
||||||
:checked="Object.values(create).at(0)"
|
:checked="Object.values(create).at(0)"
|
||||||
/>
|
>
|
||||||
<label
|
<label
|
||||||
class="label-text text-base"
|
class="label-text text-base"
|
||||||
:for="Object.keys(create).at(0)"
|
:for="Object.keys(create).at(0)"
|
||||||
|
|||||||
@ -14,7 +14,7 @@
|
|||||||
type="checkbox"
|
type="checkbox"
|
||||||
class="checkbox"
|
class="checkbox"
|
||||||
:checked="Object.values(read).at(0)"
|
:checked="Object.values(read).at(0)"
|
||||||
/>
|
>
|
||||||
<label
|
<label
|
||||||
class="label-text text-base"
|
class="label-text text-base"
|
||||||
:for="Object.keys(read).at(0)"
|
:for="Object.keys(read).at(0)"
|
||||||
@ -41,7 +41,7 @@
|
|||||||
type="checkbox"
|
type="checkbox"
|
||||||
class="checkbox"
|
class="checkbox"
|
||||||
:checked="Object.values(write).at(0)"
|
:checked="Object.values(write).at(0)"
|
||||||
/>
|
>
|
||||||
<label
|
<label
|
||||||
class="label-text text-base"
|
class="label-text text-base"
|
||||||
:for="Object.keys(write).at(0)"
|
:for="Object.keys(write).at(0)"
|
||||||
|
|||||||
@ -15,7 +15,7 @@
|
|||||||
type="checkbox"
|
type="checkbox"
|
||||||
class="checkbox"
|
class="checkbox"
|
||||||
:checked="Object.values(access).at(0)"
|
:checked="Object.values(access).at(0)"
|
||||||
/>
|
>
|
||||||
<label
|
<label
|
||||||
class="label-text text-base"
|
class="label-text text-base"
|
||||||
:for="Object.keys(access).at(0)"
|
:for="Object.keys(access).at(0)"
|
||||||
|
|||||||
@ -33,8 +33,8 @@
|
|||||||
:label="t('extension.installFromFile')"
|
:label="t('extension.installFromFile')"
|
||||||
icon="i-heroicons-arrow-up-tray"
|
icon="i-heroicons-arrow-up-tray"
|
||||||
color="neutral"
|
color="neutral"
|
||||||
@click="onSelectExtensionAsync"
|
|
||||||
block
|
block
|
||||||
|
@click="onSelectExtensionAsync"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -33,7 +33,7 @@
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="h-full"></div>
|
<div class="h-full"/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@ -23,7 +23,7 @@
|
|||||||
v-if="icon"
|
v-if="icon"
|
||||||
:src="icon"
|
:src="icon"
|
||||||
:alt="title"
|
:alt="title"
|
||||||
class="w-5 h-5 object-contain flex-shrink-0"
|
class="w-5 h-5 object-contain shrink-0"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@ -49,8 +49,7 @@
|
|||||||
color="info"
|
color="info"
|
||||||
size="xs"
|
size="xs"
|
||||||
:title="t('minimized')"
|
:title="t('minimized')"
|
||||||
>
|
/>
|
||||||
</UBadge>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Scaled Window Preview Container / Teleport Target -->
|
<!-- Scaled Window Preview Container / Teleport Target -->
|
||||||
|
|||||||
@ -17,7 +17,7 @@
|
|||||||
:title="t('pick')"
|
:title="t('pick')"
|
||||||
class="top-0 left-0 absolute size-0"
|
class="top-0 left-0 absolute size-0"
|
||||||
type="color"
|
type="color"
|
||||||
/>
|
>
|
||||||
|
|
||||||
<UiTooltip :tooltip="t('reset')">
|
<UiTooltip :tooltip="t('reset')">
|
||||||
<UiButton
|
<UiButton
|
||||||
|
|||||||
@ -2,8 +2,8 @@
|
|||||||
<UDropdownMenu
|
<UDropdownMenu
|
||||||
:items="icons"
|
:items="icons"
|
||||||
class="btn"
|
class="btn"
|
||||||
@select="(newIcon) => (iconName = newIcon)"
|
|
||||||
:read_only
|
:read_only
|
||||||
|
@select="(newIcon) => (iconName = newIcon)"
|
||||||
>
|
>
|
||||||
<template #activator>
|
<template #activator>
|
||||||
<Icon :name="iconName ? iconName : defaultIcon || icons.at(0)" />
|
<Icon :name="iconName ? iconName : defaultIcon || icons.at(0)" />
|
||||||
@ -12,8 +12,8 @@
|
|||||||
<template #items="{ items }">
|
<template #items="{ items }">
|
||||||
<div class="grid grid-cols-6 -ml-2">
|
<div class="grid grid-cols-6 -ml-2">
|
||||||
<li
|
<li
|
||||||
class="dropdown-item"
|
|
||||||
v-for="item in items"
|
v-for="item in items"
|
||||||
|
class="dropdown-item"
|
||||||
@click="read_only ? '' : (iconName = item)"
|
@click="read_only ? '' : (iconName = item)"
|
||||||
>
|
>
|
||||||
<Icon
|
<Icon
|
||||||
|
|||||||
@ -6,8 +6,8 @@
|
|||||||
<button
|
<button
|
||||||
:id
|
:id
|
||||||
class="advance-select-toogle flex justify-between grow p-3"
|
class="advance-select-toogle flex justify-between grow p-3"
|
||||||
@click.prevent="toogleMenu"
|
|
||||||
:disabled="read_only"
|
:disabled="read_only"
|
||||||
|
@click.prevent="toogleMenu"
|
||||||
>
|
>
|
||||||
<slot
|
<slot
|
||||||
name="value"
|
name="value"
|
||||||
@ -18,9 +18,9 @@
|
|||||||
</slot>
|
</slot>
|
||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
@click.prevent="toogleMenu"
|
|
||||||
class="flex items-center p-2 hover:shadow rounded-md hover:bg-primary hover:text-base-content"
|
class="flex items-center p-2 hover:shadow rounded-md hover:bg-primary hover:text-base-content"
|
||||||
:disabled="read_only"
|
:disabled="read_only"
|
||||||
|
@click.prevent="toogleMenu"
|
||||||
>
|
>
|
||||||
<i class="i-[material-symbols--keyboard-arrow-down] size-4" />
|
<i class="i-[material-symbols--keyboard-arrow-down] size-4" />
|
||||||
</button>
|
</button>
|
||||||
|
|||||||
@ -32,20 +32,19 @@
|
|||||||
color="neutral"
|
color="neutral"
|
||||||
variant="outline"
|
variant="outline"
|
||||||
:block="isSmallScreen"
|
:block="isSmallScreen"
|
||||||
@click="isOverviewMode = !isOverviewMode"
|
|
||||||
icon="i-bi-person-workspace"
|
icon="i-bi-person-workspace"
|
||||||
size="lg"
|
size="lg"
|
||||||
>
|
@click="isOverviewMode = !isOverviewMode"
|
||||||
</UButton>
|
/>
|
||||||
<UButton
|
<UButton
|
||||||
color="neutral"
|
color="neutral"
|
||||||
variant="outline"
|
variant="outline"
|
||||||
:block="isSmallScreen"
|
:block="isSmallScreen"
|
||||||
@click="showWindowOverview = !showWindowOverview"
|
|
||||||
icon="i-heroicons-squares-2x2"
|
icon="i-heroicons-squares-2x2"
|
||||||
size="lg"
|
size="lg"
|
||||||
|
@click="showWindowOverview = !showWindowOverview"
|
||||||
>
|
>
|
||||||
<template #trailing v-if="openWindowsCount > 0">
|
<template v-if="openWindowsCount > 0" #trailing>
|
||||||
<UBadge
|
<UBadge
|
||||||
:label="openWindowsCount.toString()"
|
:label="openWindowsCount.toString()"
|
||||||
color="primary"
|
color="primary"
|
||||||
|
|||||||
Reference in New Issue
Block a user