Commit 9ef609d1 authored by timel's avatar timel

fix: fmt

parent 41a262fd
Pipeline #22871 passed with stages
in 11 minutes and 28 seconds
import "@/styles/core.scss";
import { NavLink, Outlet, type LoaderFunction } from "react-router-dom";
import { Avatar } from "antd";
import { type LoaderFunction, NavLink, Outlet } from "react-router-dom";
import { useSnapshot } from "valtio";
import { useConfig } from "@/config";
import { accountStore, type User } from "@/stores";
import { CookieKeys, getCookie } from "@/ui/Shared";
import styles from "./index.module.scss";
import { getCookie, CookieKeys } from "@/ui/Shared";
import { Avatar } from "antd";
import { useSnapshot } from "valtio";
const NeosConfig = useConfig();
export const loader: LoaderFunction = () => {
......
import React, { Suspense } from "react";
import {
createBrowserRouter,
createRoutesFromElements,
Route,
RouterProvider,
} from "react-router-dom";
import LazyLoad, { Loading } from "./LazyLoad";
import { createBrowserRouter, RouterProvider } from "react-router-dom";
// import LazyLoad, { Loading } from "./LazyLoad";
// const Match = React.lazy(() => import("./Match"));
// const WaitRoom = React.lazy(() => import("./WaitRoom"));
......
import { Link, type LoaderFunction } from "react-router-dom";
import { accountStore, type User } from "@/stores";
import { setCookie, CookieKeys, Background } from "@/ui/Shared";
import styles from "./index.module.scss";
import { Select, Space } from "antd";
import classNames from "classnames";
import { type LoaderFunction } from "react-router-dom";
import { accountStore, type User } from "@/stores";
import { Background, CookieKeys, setCookie } from "@/ui/Shared";
import styles from "./index.module.scss";
export const loader: LoaderFunction = () => {
const sso = new URLSearchParams(location.search).get("sso");
......
import { useLoaderData, type LoaderFunction } from "react-router-dom";
import { type LoaderFunction, useLoaderData } from "react-router-dom";
type Params = {
interface Params {
player?: string;
passWd?: string;
ip?: string;
};
}
export const loader: LoaderFunction = async ({ params }) => params;
......
import { useEffect } from "react";
import styles from "./index.module.scss";
import { render, unmountComponentAtNode } from "react-dom";
import styles from "./index.module.scss";
const _Background: React.FC<{
style?: React.CSSProperties;
innerStyle?: React.CSSProperties;
......
export * from "./Background";
export * from "./cookies";
export * from "./css";
export * from "./IconFont";
export * from "./YgoCard";
export * from "./cookies";
export * from "./Background";
import { RightOutlined } from "@ant-design/icons";
import { useNavigate } from "react-router-dom";
import { accountStore } from "@/stores";
import { useSnapshot } from "valtio";
import { useConfig } from "@/config";
import { accountStore } from "@/stores";
import { Background } from "@/ui/Shared";
import styles from "./index.module.scss";
import { useSnapshot } from "valtio";
import { Background } from "@/ui/Shared";
const NeosConfig = useConfig();
......
......@@ -20,7 +20,7 @@ import {
Upload,
} from "antd";
import React, { useEffect, useState } from "react";
import { useNavigate, useLoaderData } from "react-router-dom";
import { useLoaderData, useNavigate } from "react-router-dom";
import rustInit from "rust-src";
import { useSnapshot } from "valtio";
import YGOProDeck from "ygopro-deck-encode";
......@@ -41,11 +41,11 @@ const {
automation: { isAiMode },
} = useConfig();
type Params = {
interface Params {
player?: string;
passWd?: string;
ip?: string;
};
}
export const Loader = (params: Params) => params;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment