mirror of
https://github.com/p-stream/p-stream.git
synced 2026-04-21 00:22:37 +00:00
clean up some loose imports
This commit is contained in:
parent
a02ea7c684
commit
9e555c99ea
4 changed files with 14 additions and 15 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
// I'm sorry this is so confusing 😭
|
// I'm sorry this is so confusing 😭
|
||||||
|
|
||||||
import classNames from "classnames";
|
import classNames from "classnames";
|
||||||
import { useCallback, useEffect, useRef, useState } from "react";
|
import { useCallback, useRef, useState } from "react";
|
||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
import { Link } from "react-router-dom";
|
import { Link } from "react-router-dom";
|
||||||
import { useCopyToClipboard } from "react-use";
|
import { useCopyToClipboard } from "react-use";
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,6 @@ import { ReactNode, useEffect, useMemo, useRef } from "react";
|
||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
|
|
||||||
import { getCachedMetadata } from "@/backend/helpers/providerApi";
|
import { getCachedMetadata } from "@/backend/helpers/providerApi";
|
||||||
import { Button } from "@/components/buttons/Button";
|
|
||||||
import { Loading } from "@/components/layout/Loading";
|
import { Loading } from "@/components/layout/Loading";
|
||||||
import {
|
import {
|
||||||
useEmbedScraping,
|
useEmbedScraping,
|
||||||
|
|
|
||||||
|
|
@ -1,33 +1,33 @@
|
||||||
import { useCallback } from "react";
|
import { useCallback } from "react";
|
||||||
|
|
||||||
import { SessionResponse } from "@/backend/accounts/auth";
|
// import { SessionResponse } from "@/backend/accounts/auth";
|
||||||
import { bookmarkMediaToInput } from "@/backend/accounts/bookmarks";
|
import { bookmarkMediaToInput } from "@/backend/accounts/bookmarks";
|
||||||
import {
|
import {
|
||||||
base64ToBuffer,
|
base64ToBuffer,
|
||||||
bytesToBase64,
|
bytesToBase64,
|
||||||
bytesToBase64Url,
|
bytesToBase64Url,
|
||||||
encryptData,
|
encryptData,
|
||||||
keysFromMnemonic,
|
// keysFromMnemonic,
|
||||||
keysFromSeed,
|
keysFromSeed,
|
||||||
signChallenge,
|
signChallenge,
|
||||||
} from "@/backend/accounts/crypto";
|
} from "@/backend/accounts/crypto";
|
||||||
import { importBookmarks, importProgress } from "@/backend/accounts/import";
|
import { importBookmarks, importProgress } from "@/backend/accounts/import";
|
||||||
import { getLoginChallengeToken, loginAccount } from "@/backend/accounts/login";
|
// import { getLoginChallengeToken, loginAccount } from "@/backend/accounts/login";
|
||||||
import { progressMediaItemToInputs } from "@/backend/accounts/progress";
|
import { progressMediaItemToInputs } from "@/backend/accounts/progress";
|
||||||
import {
|
import {
|
||||||
getRegisterChallengeToken,
|
getRegisterChallengeToken,
|
||||||
registerAccount,
|
registerAccount,
|
||||||
} from "@/backend/accounts/register";
|
} from "@/backend/accounts/register";
|
||||||
import { removeSession } from "@/backend/accounts/sessions";
|
// import { removeSession } from "@/backend/accounts/sessions";
|
||||||
import { getSettings } from "@/backend/accounts/settings";
|
// import { getSettings } from "@/backend/accounts/settings";
|
||||||
import {
|
// import {
|
||||||
UserResponse,
|
// UserResponse,
|
||||||
getBookmarks,
|
// getBookmarks,
|
||||||
getProgress,
|
// getProgress,
|
||||||
getUser,
|
// getUser,
|
||||||
} from "@/backend/accounts/user";
|
// } from "@/backend/accounts/user";
|
||||||
import { useAuthData } from "@/hooks/auth/useAuthData";
|
import { useAuthData } from "@/hooks/auth/useAuthData";
|
||||||
import { useBackendUrl } from "@/hooks/auth/useBackendUrl";
|
// import { useBackendUrl } from "@/hooks/auth/useBackendUrl";
|
||||||
import { AccountWithToken, useAuthStore } from "@/stores/auth";
|
import { AccountWithToken, useAuthStore } from "@/stores/auth";
|
||||||
import { BookmarkMediaItem, useBookmarkStore } from "@/stores/bookmarks";
|
import { BookmarkMediaItem, useBookmarkStore } from "@/stores/bookmarks";
|
||||||
import { ProgressMediaItem, useProgressStore } from "@/stores/progress";
|
import { ProgressMediaItem, useProgressStore } from "@/stores/progress";
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
import { Helmet } from "react-helmet-async";
|
import { Helmet } from "react-helmet-async";
|
||||||
import { Trans, useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
|
|
||||||
import { Button } from "@/components/buttons/Button";
|
import { Button } from "@/components/buttons/Button";
|
||||||
import { Icons } from "@/components/Icon";
|
import { Icons } from "@/components/Icon";
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue