mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-06-01 12:44:45 -04:00
Format code
This commit is contained in:
parent
e015882834
commit
21e1fa6376
@ -27,16 +27,16 @@ import {
|
|||||||
ConnectionErrorContext,
|
ConnectionErrorContext,
|
||||||
type QueryIdentifier,
|
type QueryIdentifier,
|
||||||
type QueryPage,
|
type QueryPage,
|
||||||
|
type ServerInfo,
|
||||||
ServerInfoP,
|
ServerInfoP,
|
||||||
|
SetupStep,
|
||||||
UserP,
|
UserP,
|
||||||
createQueryClient,
|
createQueryClient,
|
||||||
fetchQuery,
|
fetchQuery,
|
||||||
getTokenWJ,
|
getTokenWJ,
|
||||||
setSsrApiUrl,
|
setSsrApiUrl,
|
||||||
useUserTheme,
|
|
||||||
SetupStep,
|
|
||||||
type ServerInfo,
|
|
||||||
useFetch,
|
useFetch,
|
||||||
|
useUserTheme,
|
||||||
} from "@kyoo/models";
|
} from "@kyoo/models";
|
||||||
import { getCurrentAccount, readCookie, updateAccount } from "@kyoo/models/src/account-internal";
|
import { getCurrentAccount, readCookie, updateAccount } from "@kyoo/models/src/account-internal";
|
||||||
import {
|
import {
|
||||||
@ -54,12 +54,12 @@ import arrayShuffle from "array-shuffle";
|
|||||||
import NextApp, { type AppContext, type AppProps } from "next/app";
|
import NextApp, { type AppContext, type AppProps } from "next/app";
|
||||||
import { Poppins } from "next/font/google";
|
import { Poppins } from "next/font/google";
|
||||||
import Head from "next/head";
|
import Head from "next/head";
|
||||||
import { type ComponentType, useContext, useState, useEffect } from "react";
|
import { type NextRouter, useRouter } from "next/router";
|
||||||
|
import { type ComponentType, useContext, useEffect, useState } from "react";
|
||||||
import { Tooltip } from "react-tooltip";
|
import { Tooltip } from "react-tooltip";
|
||||||
import superjson from "superjson";
|
import superjson from "superjson";
|
||||||
import { StyleRegistryProvider, useMobileHover, useStyleRegistry, useTheme } from "yoshiki/web";
|
import { StyleRegistryProvider, useMobileHover, useStyleRegistry, useTheme } from "yoshiki/web";
|
||||||
import { withTranslations } from "../i18n";
|
import { withTranslations } from "../i18n";
|
||||||
import { NextRouter, useRouter } from "next/router";
|
|
||||||
|
|
||||||
const font = Poppins({ weight: ["300", "400", "900"], subsets: ["latin"], display: "swap" });
|
const font = Poppins({ weight: ["300", "400", "900"], subsets: ["latin"], display: "swap" });
|
||||||
|
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
import { SetupStep, type QueryPage } from "@kyoo/models";
|
|
||||||
import { Button, Icon, Link, P, ts } from "@kyoo/primitives";
|
|
||||||
import { useTranslation } from "react-i18next";
|
|
||||||
import { Main } from "@expo/html-elements";
|
import { Main } from "@expo/html-elements";
|
||||||
import { useYoshiki } from "yoshiki/native";
|
import { type QueryPage, SetupStep } from "@kyoo/models";
|
||||||
|
import { Button, Icon, Link, P, ts } from "@kyoo/primitives";
|
||||||
import Register from "@material-symbols/svg-400/rounded/app_registration.svg";
|
import Register from "@material-symbols/svg-400/rounded/app_registration.svg";
|
||||||
import { Navbar, NavbarProfile } from "../navbar";
|
|
||||||
import { useEffect } from "react";
|
import { useEffect } from "react";
|
||||||
|
import { useTranslation } from "react-i18next";
|
||||||
import { useRouter } from "solito/router";
|
import { useRouter } from "solito/router";
|
||||||
|
import { useYoshiki } from "yoshiki/native";
|
||||||
|
import { Navbar, NavbarProfile } from "../navbar";
|
||||||
import { KyooLongLogo } from "../navbar/icon";
|
import { KyooLongLogo } from "../navbar/icon";
|
||||||
|
|
||||||
export const SetupPage: QueryPage<{ step: SetupStep }> = ({ step }) => {
|
export const SetupPage: QueryPage<{ step: SetupStep }> = ({ step }) => {
|
||||||
|
@ -38,11 +38,11 @@ import Login from "@material-symbols/svg-400/rounded/login.svg";
|
|||||||
import Logout from "@material-symbols/svg-400/rounded/logout.svg";
|
import Logout from "@material-symbols/svg-400/rounded/logout.svg";
|
||||||
import Search from "@material-symbols/svg-400/rounded/search-fill.svg";
|
import Search from "@material-symbols/svg-400/rounded/search-fill.svg";
|
||||||
import Settings from "@material-symbols/svg-400/rounded/settings.svg";
|
import Settings from "@material-symbols/svg-400/rounded/settings.svg";
|
||||||
import { ReactElement, forwardRef, useEffect, useRef, useState } from "react";
|
import { type ReactElement, forwardRef, useEffect, useRef, useState } from "react";
|
||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
import { Platform, type TextInput, View, type ViewProps } from "react-native";
|
import { Platform, type TextInput, View, type ViewProps } from "react-native";
|
||||||
import { useRouter } from "solito/router";
|
import { useRouter } from "solito/router";
|
||||||
import { type Stylable, useYoshiki, percent } from "yoshiki/native";
|
import { type Stylable, percent, useYoshiki } from "yoshiki/native";
|
||||||
import { AdminPage } from "../admin";
|
import { AdminPage } from "../admin";
|
||||||
import { KyooLongLogo } from "./icon";
|
import { KyooLongLogo } from "./icon";
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user