mirror of
https://github.com/robonen/lorem-blog.git
synced 2026-03-20 02:44:39 +00:00
chore: lint
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
<script setup lang="ts">
|
||||
import { BlogHeader, useProvidingPosts } from '@/widgets/Blog';
|
||||
import { BlogList } from '@/widgets/Blog';
|
||||
import { BlogHeader, BlogList, useProvidingPosts } from '@/widgets/Blog';
|
||||
|
||||
useProvidingPosts(() => fetch('/posts.json').then((response) => {
|
||||
if (!response.ok) {
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import { type MaybeRefOrGetter, onScopeDispose, toValue, watchEffect } from 'vue';
|
||||
import type { MaybeRefOrGetter } from 'vue';
|
||||
import { onScopeDispose, toValue, watchEffect } from 'vue';
|
||||
|
||||
export function useBodyScrollLock(isLocked: MaybeRefOrGetter<boolean>) {
|
||||
let originalOverflow: string | null = null;
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import type { TemplateRef } from 'vue';
|
||||
import { clamp } from '@robonen/stdlib';
|
||||
import { nextTick, onMounted, onUnmounted, ref, type TemplateRef, watch } from 'vue';
|
||||
import { nextTick, onMounted, onUnmounted, ref, watch } from 'vue';
|
||||
|
||||
export function useTextAreaAutosize(textareaRef: TemplateRef<HTMLTextAreaElement | null>) {
|
||||
const minHeight = ref(0);
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
<script lang="ts">
|
||||
import { type BadgeVariant, badgeVariants } from './types';
|
||||
import type { BadgeVariant } from './types';
|
||||
import { badgeVariants } from './types';
|
||||
|
||||
export interface BadgeProps {
|
||||
variant?: BadgeVariant;
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<script setup lang="ts">
|
||||
import type { ButtonProps } from './types';
|
||||
import { computed } from 'vue';
|
||||
import { type ButtonProps, buttonSizes, buttonVariants } from './types';
|
||||
import { buttonSizes, buttonVariants } from './types';
|
||||
|
||||
const props = withDefaults(defineProps<ButtonProps>(), {
|
||||
variant: 'primary',
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<script setup lang="ts">
|
||||
import type { NavigationMenuItem } from '../NavigationMenu';
|
||||
import { Logo } from '@/shared/icons';
|
||||
import { NavigationMenu, type NavigationMenuItem } from '../NavigationMenu';
|
||||
import { NavigationMenu } from '../NavigationMenu';
|
||||
|
||||
const items = [
|
||||
{ name: 'Главная', path: '/' },
|
||||
|
||||
Reference in New Issue
Block a user