fix: resolve eslint errors for unused variables and imports
This commit is contained in:
parent
caab35b678
commit
cd22260333
11 changed files with 18 additions and 24 deletions
|
|
@ -1,14 +1,14 @@
|
|||
<script setup lang="ts">
|
||||
import { Link, router, usePage } from '@inertiajs/vue3';
|
||||
import { IconBrandDiscord, IconCalendar, IconCheck, IconSelector, IconFileText, IconHash, IconLogout, IconPlus, IconSettings, IconAffiliate, IconPencil, IconFileCheck, IconTag, IconUser, IconClock, IconMessageCircle, IconBell, IconBook, IconSun, IconMoon, IconDeviceDesktop, IconLanguage } from '@tabler/icons-vue';
|
||||
import { IconBrandDiscord, IconCalendar, IconSelector, IconFileText, IconHash, IconLogout, IconPlus, IconSettings, IconAffiliate, IconPencil, IconFileCheck, IconTag, IconUser, IconClock, IconMessageCircle, IconBell, IconBook, IconSun, IconMoon, IconDeviceDesktop, IconLanguage } from '@tabler/icons-vue';
|
||||
import { loadLanguageAsync, trans } from 'laravel-vue-i18n';
|
||||
import { Button } from '@/components/ui/button';
|
||||
import { store as storePost } from '@/actions/App/Http/Controllers/PostController';
|
||||
import { updateLanguage } from '@/actions/App/Http/Controllers/Settings/ProfileController';
|
||||
import { computed } from 'vue';
|
||||
import dayjs from '@/dayjs';
|
||||
|
||||
import { store as storePost } from '@/actions/App/Http/Controllers/PostController';
|
||||
import { index as postsIndex } from '@/actions/App/Http/Controllers/PostController';
|
||||
import { updateLanguage } from '@/actions/App/Http/Controllers/Settings/ProfileController';
|
||||
import { Avatar, AvatarFallback, AvatarImage } from '@/components/ui/avatar';
|
||||
import { Button } from '@/components/ui/button';
|
||||
import {
|
||||
DropdownMenu,
|
||||
DropdownMenuContent,
|
||||
|
|
@ -39,10 +39,10 @@ import {
|
|||
} from '@/components/ui/sidebar';
|
||||
import { useAppearance } from '@/composables/useAppearance';
|
||||
import { useInitials } from '@/composables/useInitials';
|
||||
import dayjs from '@/dayjs';
|
||||
import { accounts, calendar, logout } from '@/routes';
|
||||
import { index as hashtags } from '@/routes/hashtags';
|
||||
import { index as labels } from '@/routes/labels';
|
||||
import { index as postsIndex } from '@/actions/App/Http/Controllers/PostController';
|
||||
import { edit as editProfile } from '@/routes/profile';
|
||||
import { settings as workspaceSettings } from '@/routes/workspace';
|
||||
import { create as createWorkspaceRoute, switchMethod } from '@/routes/workspaces';
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<script setup lang="ts">
|
||||
import { router } from '@inertiajs/vue3';
|
||||
import axios from 'axios';
|
||||
import { IconTrash, IconUpload, IconUser } from '@tabler/icons-vue';
|
||||
import axios from 'axios';
|
||||
import { ref, watch } from 'vue';
|
||||
|
||||
import { Button } from '@/components/ui/button';
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ interface Props {
|
|||
media: MediaItem[];
|
||||
}
|
||||
|
||||
const props = defineProps<Props>();
|
||||
defineProps<Props>();
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ interface Props {
|
|||
media: MediaItem[];
|
||||
}
|
||||
|
||||
const props = defineProps<Props>();
|
||||
defineProps<Props>();
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ interface Props {
|
|||
media: MediaItem[];
|
||||
}
|
||||
|
||||
const props = defineProps<Props>();
|
||||
defineProps<Props>();
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
|
|
|||
|
|
@ -65,7 +65,9 @@ const csrfToken = document.querySelector('meta[name="csrf-token"]')?.getAttribut
|
|||
|
||||
<Alert>
|
||||
<IconInfoCircle class="h-4 w-4" />
|
||||
<AlertDescription class="inline" v-html="$t('accounts.bluesky.app_password_hint')" />
|
||||
<AlertDescription class="inline">
|
||||
<span v-html="$t('accounts.bluesky.app_password_hint')" />
|
||||
</AlertDescription>
|
||||
</Alert>
|
||||
|
||||
<Button type="submit" :disabled="isSubmitting" class="w-full">
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
<script setup lang="ts">
|
||||
import { IconBrandFacebook, IconCheck } from '@tabler/icons-vue';
|
||||
import { trans } from 'laravel-vue-i18n';
|
||||
import { ref } from 'vue';
|
||||
|
||||
import { Alert, AlertDescription } from '@/components/ui/alert';
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
<script setup lang="ts">
|
||||
import { IconBuilding, IconCheck } from '@tabler/icons-vue';
|
||||
import { trans } from 'laravel-vue-i18n';
|
||||
import { ref } from 'vue';
|
||||
|
||||
import { Alert, AlertDescription } from '@/components/ui/alert';
|
||||
|
|
|
|||
|
|
@ -17,7 +17,6 @@ import {
|
|||
IconClock,
|
||||
IconAlertCircle,
|
||||
IconTrash,
|
||||
IconSend,
|
||||
IconDots,
|
||||
IconPlus,
|
||||
IconCircleCheck,
|
||||
|
|
@ -27,16 +26,13 @@ import {
|
|||
import { trans } from 'laravel-vue-i18n';
|
||||
import { computed, onUnmounted, ref, watch, type Component } from 'vue';
|
||||
|
||||
import debounce from '@/debounce';
|
||||
|
||||
import { Badge } from '@/components/ui/badge';
|
||||
|
||||
import ConfirmDeleteModal from '@/components/ConfirmDeleteModal.vue';
|
||||
import DatePicker from '@/components/DatePicker.vue';
|
||||
import PhoneMockup from '@/components/PhoneMockup.vue';
|
||||
import PostForm from '@/components/posts/PostForm.vue';
|
||||
import { PlatformPreview } from '@/components/posts/previews';
|
||||
import { useMediaManager, type MediaItem } from '@/composables/useMediaManager';
|
||||
import { Alert, AlertDescription } from '@/components/ui/alert';
|
||||
import {
|
||||
AlertDialog,
|
||||
|
|
@ -48,6 +44,7 @@ import {
|
|||
AlertDialogHeader,
|
||||
AlertDialogTitle,
|
||||
} from '@/components/ui/alert-dialog';
|
||||
import { Badge } from '@/components/ui/badge';
|
||||
import { Button } from '@/components/ui/button';
|
||||
import {
|
||||
Dialog,
|
||||
|
|
@ -59,7 +56,9 @@ import {
|
|||
import { Label } from '@/components/ui/label';
|
||||
import { Switch } from '@/components/ui/switch';
|
||||
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from '@/components/ui/tooltip';
|
||||
import { useMediaManager, type MediaItem } from '@/composables/useMediaManager';
|
||||
import dayjs from '@/dayjs';
|
||||
import debounce from '@/debounce';
|
||||
import AppLayout from '@/layouts/AppLayout.vue';
|
||||
import { destroy as destroyPost, index as postsIndex, update as updatePost } from '@/routes/posts';
|
||||
import { type BreadcrumbItemType } from '@/types';
|
||||
|
|
@ -467,11 +466,6 @@ const selectedPlatforms = computed(() => {
|
|||
return post.value.post_platforms.filter(pp => selectedPlatformIds.value.includes(pp.id));
|
||||
});
|
||||
|
||||
// Other selected platforms (for sync label)
|
||||
const otherSelectedPlatforms = computed(() => {
|
||||
return selectedPlatforms.value.filter(pp => pp.id !== activeTabId.value);
|
||||
});
|
||||
|
||||
// First selected platform (for sync confirmation)
|
||||
const firstSelectedPlatform = computed(() => {
|
||||
return selectedPlatforms.value[0];
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ import { IconClock, IconCircleCheck, IconAlertCircle, IconLoader2, IconFileText,
|
|||
import { trans } from 'laravel-vue-i18n';
|
||||
import { computed, ref } from 'vue';
|
||||
|
||||
import { index as postsIndex, store as storePost, edit as editPost, destroy as destroyPost } from '@/actions/App/Http/Controllers/PostController';
|
||||
import ConfirmDeleteModal from '@/components/ConfirmDeleteModal.vue';
|
||||
import { Badge } from '@/components/ui/badge';
|
||||
import { Button } from '@/components/ui/button';
|
||||
|
|
@ -12,7 +13,6 @@ import { Skeleton } from '@/components/ui/skeleton';
|
|||
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from '@/components/ui/tooltip';
|
||||
import dayjs from '@/dayjs';
|
||||
import AppLayout from '@/layouts/AppLayout.vue';
|
||||
import { index as postsIndex, store as storePost, edit as editPost, destroy as destroyPost } from '@/actions/App/Http/Controllers/PostController';
|
||||
import { type BreadcrumbItemType } from '@/types';
|
||||
|
||||
interface SocialAccount {
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<script setup lang="ts">
|
||||
import { Head, useForm, router } from '@inertiajs/vue3';
|
||||
import { trans } from 'laravel-vue-i18n';
|
||||
import { IconUserPlus, IconUsers, IconMail, IconTrash, IconCrown, IconUser, IconShield } from '@tabler/icons-vue';
|
||||
import { trans } from 'laravel-vue-i18n';
|
||||
import { computed } from 'vue';
|
||||
|
||||
import HeadingSmall from '@/components/HeadingSmall.vue';
|
||||
|
|
|
|||
Loading…
Reference in a new issue