style: run biome lint

This commit is contained in:
Aarnav Tale 2024-12-31 10:31:50 +05:30
parent aa9872a45b
commit f3c9d8b54c
No known key found for this signature in database
39 changed files with 57 additions and 57 deletions

View file

@ -1,4 +1,4 @@
import { ActionFunctionArgs } from 'react-router';
import type { ActionFunctionArgs } from 'react-router';
import { del, post } from '~/utils/headscale';
import { getSession } from '~/utils/sessions';
import { send } from '~/utils/res';

View file

@ -4,7 +4,7 @@ import { Link } from 'react-router';
import Menu from '~/components/Menu';
import StatusCircle from '~/components/StatusCircle';
import { toast } from '~/components/Toaster';
import { Machine, Route, User } from '~/types';
import type { Machine, Route, User } from '~/types';
import { cn } from '~/utils/cn';
import MenuOptions from './menu';
@ -30,7 +30,7 @@ export default function MachineRow({ machine, routes, magic, users }: Props) {
tags.unshift('Expired');
}
let prefix = magic?.startsWith('[user]')
const prefix = magic?.startsWith('[user]')
? magic.replace('[user]', machine.user.name)
: magic;

View file

@ -1,8 +1,8 @@
import { KebabHorizontalIcon } from '@primer/octicons-react';
import { ReactNode, useState } from 'react';
import { type ReactNode, useState } from 'react';
import MenuComponent from '~/components/Menu';
import { Machine, Route, User } from '~/types';
import type { Machine, Route, User } from '~/types';
import { cn } from '~/utils/cn';
import Delete from '../dialogs/delete';

View file

@ -1,8 +1,8 @@
import { Form, useSubmit } from 'react-router';
import { type Dispatch, type SetStateAction } from 'react';
import type { Dispatch, SetStateAction } from 'react';
import Dialog from '~/components/Dialog';
import { type Machine } from '~/types';
import type { Machine } from '~/types';
import { cn } from '~/utils/cn';
interface DeleteProps {

View file

@ -1,8 +1,8 @@
import { Form, useSubmit } from 'react-router';
import { type Dispatch, type SetStateAction } from 'react';
import type { Dispatch, SetStateAction } from 'react';
import Dialog from '~/components/Dialog';
import { type Machine } from '~/types';
import type { Machine } from '~/types';
import { cn } from '~/utils/cn';
interface ExpireProps {

View file

@ -4,7 +4,7 @@ import { type Dispatch, type SetStateAction, useState } from 'react';
import Code from '~/components/Code';
import Dialog from '~/components/Dialog';
import Select from '~/components/Select';
import { type Machine, User } from '~/types';
import type { Machine, User } from '~/types';
interface MoveProps {
readonly machine: Machine;

View file

@ -10,7 +10,7 @@ import Select from '~/components/Select';
import Menu from '~/components/Menu';
import Spinner from '~/components/Spinner';
import { toast } from '~/components/Toaster';
import { Machine, User } from '~/types';
import { Machine, type User } from '~/types';
export interface NewProps {
server: string;

View file

@ -4,7 +4,7 @@ import { type Dispatch, type SetStateAction, useState } from 'react';
import Code from '~/components/Code';
import Dialog from '~/components/Dialog';
import TextField from '~/components/TextField';
import { type Machine } from '~/types';
import type { Machine } from '~/types';
interface RenameProps {
readonly machine: Machine;

View file

@ -1,10 +1,10 @@
import { useFetcher } from 'react-router';
import { Dispatch, SetStateAction, useMemo } from 'react';
import { type Dispatch, type SetStateAction, useMemo } from 'react';
import Dialog from '~/components/Dialog';
import Switch from '~/components/Switch';
import Link from '~/components/Link';
import { Machine, Route } from '~/types';
import type { Machine, Route } from '~/types';
import { cn } from '~/utils/cn';
interface RoutesProps {

View file

@ -1,11 +1,11 @@
import { PlusIcon, XIcon } from '@primer/octicons-react';
import { Form, useSubmit } from 'react-router';
import { Dispatch, SetStateAction, useState } from 'react';
import { type Dispatch, type SetStateAction, useState } from 'react';
import { Button, Input } from 'react-aria-components';
import Dialog from '~/components/Dialog';
import Link from '~/components/Link';
import { Machine } from '~/types';
import type { Machine } from '~/types';
import { cn } from '~/utils/cn';
interface TagsProps {

View file

@ -1,4 +1,4 @@
import { ActionFunctionArgs, LoaderFunctionArgs } from 'react-router';
import type { ActionFunctionArgs, LoaderFunctionArgs } from 'react-router';
import { Link as RemixLink, useLoaderData } from 'react-router';
import {
InfoIcon,
@ -15,7 +15,7 @@ import Card from '~/components/Card';
import Menu from '~/components/Menu';
import Tooltip from '~/components/Tooltip';
import StatusCircle from '~/components/StatusCircle';
import { Machine, Route, User } from '~/types';
import type { Machine, Route, User } from '~/types';
import { cn } from '~/utils/cn';
import { loadContext } from '~/utils/config/headplane';
import { loadConfig } from '~/utils/config/headscale';

View file

@ -1,5 +1,5 @@
import { InfoIcon } from '@primer/octicons-react';
import { ActionFunctionArgs, LoaderFunctionArgs } from 'react-router';
import type { ActionFunctionArgs, LoaderFunctionArgs } from 'react-router';
import { useLoaderData } from 'react-router';
import { Button, Tooltip, TooltipTrigger } from 'react-aria-components';