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">
|
<script setup lang="ts">
|
||||||
import { BlogHeader, useProvidingPosts } from '@/widgets/Blog';
|
import { BlogHeader, BlogList, useProvidingPosts } from '@/widgets/Blog';
|
||||||
import { BlogList } from '@/widgets/Blog';
|
|
||||||
|
|
||||||
useProvidingPosts(() => fetch('/posts.json').then((response) => {
|
useProvidingPosts(() => fetch('/posts.json').then((response) => {
|
||||||
if (!response.ok) {
|
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>) {
|
export function useBodyScrollLock(isLocked: MaybeRefOrGetter<boolean>) {
|
||||||
let originalOverflow: string | null = null;
|
let originalOverflow: string | null = null;
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
|
import type { TemplateRef } from 'vue';
|
||||||
import { clamp } from '@robonen/stdlib';
|
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>) {
|
export function useTextAreaAutosize(textareaRef: TemplateRef<HTMLTextAreaElement | null>) {
|
||||||
const minHeight = ref(0);
|
const minHeight = ref(0);
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { type BadgeVariant, badgeVariants } from './types';
|
import type { BadgeVariant } from './types';
|
||||||
|
import { badgeVariants } from './types';
|
||||||
|
|
||||||
export interface BadgeProps {
|
export interface BadgeProps {
|
||||||
variant?: BadgeVariant;
|
variant?: BadgeVariant;
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
|
import type { ButtonProps } from './types';
|
||||||
import { computed } from 'vue';
|
import { computed } from 'vue';
|
||||||
import { type ButtonProps, buttonSizes, buttonVariants } from './types';
|
import { buttonSizes, buttonVariants } from './types';
|
||||||
|
|
||||||
const props = withDefaults(defineProps<ButtonProps>(), {
|
const props = withDefaults(defineProps<ButtonProps>(), {
|
||||||
variant: 'primary',
|
variant: 'primary',
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
|
import type { NavigationMenuItem } from '../NavigationMenu';
|
||||||
import { Logo } from '@/shared/icons';
|
import { Logo } from '@/shared/icons';
|
||||||
import { NavigationMenu, type NavigationMenuItem } from '../NavigationMenu';
|
import { NavigationMenu } from '../NavigationMenu';
|
||||||
|
|
||||||
const items = [
|
const items = [
|
||||||
{ name: 'Главная', path: '/' },
|
{ name: 'Главная', path: '/' },
|
||||||
|
|||||||
Reference in New Issue
Block a user