fix: remove unused imports and fix privacy popup text
- Remove unused SettingsIcon and UserMenu imports from epub and pdf pages - Remove unused UserMenu import from home page - Remove unused isDev const from home page - Update SettingsModal to only import clearSignedOut - Fix apostrophe encoding in privacy popup description
This commit is contained in:
parent
50c3829f98
commit
c345628200
5 changed files with 2 additions and 7 deletions
|
|
@ -7,7 +7,6 @@ import { useEPUB } from '@/contexts/EPUBContext';
|
|||
import { DocumentSkeleton } from '@/components/DocumentSkeleton';
|
||||
import { EPUBViewer } from '@/components/EPUBViewer';
|
||||
import { DocumentSettings } from '@/components/DocumentSettings';
|
||||
import { SettingsIcon } from '@/components/icons/Icons';
|
||||
import { Header } from '@/components/Header';
|
||||
import { useTTS } from "@/contexts/TTSContext";
|
||||
import TTSPlayer from '@/components/player/TTSPlayer';
|
||||
|
|
@ -19,7 +18,6 @@ import type { AudiobookGenerationSettings } from '@/types/client';
|
|||
import { resolveDocumentId } from '@/lib/dexie';
|
||||
import { RateLimitBanner } from '@/components/rate-limit-banner';
|
||||
import { useAutoRateLimit } from '@/contexts/AutoRateLimitContext';
|
||||
import { UserMenu } from '@/components/auth/UserMenu';
|
||||
|
||||
const isDev = process.env.NEXT_PUBLIC_NODE_ENV !== 'production' || process.env.NODE_ENV == null;
|
||||
|
||||
|
|
|
|||
|
|
@ -5,8 +5,6 @@ import { UserMenu } from '@/components/auth/UserMenu';
|
|||
import { AuthLoader } from '@/components/auth/AuthLoader';
|
||||
import { RateLimitBanner } from '@/components/rate-limit-banner';
|
||||
|
||||
const isDev = process.env.NEXT_PUBLIC_NODE_ENV !== 'production' || process.env.NODE_ENV == null;
|
||||
|
||||
export default function Home() {
|
||||
return (
|
||||
<div className="flex flex-col h-full w-full">
|
||||
|
|
|
|||
|
|
@ -18,7 +18,6 @@ import { RateLimitPauseButton } from '@/components/player/RateLimitPauseButton';
|
|||
import { resolveDocumentId } from '@/lib/dexie';
|
||||
import { RateLimitBanner } from '@/components/rate-limit-banner';
|
||||
import { useAutoRateLimit } from '@/contexts/AutoRateLimitContext';
|
||||
import { UserMenu } from '@/components/auth/UserMenu';
|
||||
|
||||
const isDev = process.env.NEXT_PUBLIC_NODE_ENV !== 'production' || process.env.NODE_ENV == null;
|
||||
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ import { DocumentSelectionModal } from '@/components/DocumentSelectionModal';
|
|||
import { BaseDocument } from '@/types/documents';
|
||||
import { getAuthClient } from '@/lib/auth-client';
|
||||
import { useAuthSession } from '@/hooks/useAuth';
|
||||
import { markSignedOut, clearSignedOut } from '@/lib/session-utils';
|
||||
import { clearSignedOut } from '@/lib/session-utils';
|
||||
import { useAuthConfig, useAutoRateLimit } from '@/contexts/AutoRateLimitContext';
|
||||
import { useRouter } from 'next/navigation';
|
||||
import { showPrivacyPopup } from '@/components/privacy-popup';
|
||||
|
|
|
|||
|
|
@ -111,7 +111,7 @@ function PrivacyPopupBody({
|
|||
<li>Documents synced between your browser and this server</li>
|
||||
<li>Generated audiobooks</li>
|
||||
{authEnabled ? (
|
||||
<li>Auth users data and IP rate limiting data are stored in the server's database</li>
|
||||
<li>Auth users data and IP rate limiting data are stored in the server's database</li>
|
||||
) : (
|
||||
<li>Authentication is disabled on this server, so no server-side user/session database is used</li>
|
||||
)}
|
||||
|
|
|
|||
Loading…
Reference in a new issue