mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-10-09 15:35:39 +02:00
Merge pull request #13 from cadtoolbox/copilot/fix-type-errors-email-settings
Fix TypeScript errors, import shadowing, and Docker build
This commit is contained in:
@@ -8,15 +8,12 @@ import smtplib
|
||||
import string
|
||||
from email.mime.multipart import MIMEMultipart
|
||||
from email.mime.text import MIMEText
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
from sqlalchemy import select
|
||||
from sqlalchemy.ext.asyncio import AsyncSession
|
||||
|
||||
from backend.app.models.settings import Settings
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from backend.app.schemas.auth import SMTPSettings
|
||||
from backend.app.schemas.auth import SMTPSettings
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
@@ -65,8 +62,6 @@ async def get_smtp_settings(db: AsyncSession) -> SMTPSettings | None:
|
||||
Returns:
|
||||
SMTPSettings object or None if not configured
|
||||
"""
|
||||
from backend.app.schemas.auth import SMTPSettings
|
||||
|
||||
# Fetch all SMTP-related settings
|
||||
result = await db.execute(
|
||||
select(Settings).where(
|
||||
|
||||
@@ -32,7 +32,7 @@ export function EmailSettings() {
|
||||
});
|
||||
|
||||
// Fetch advanced auth status
|
||||
const { data: advancedAuthStatus, refetch: refetchAuthStatus } = useQuery({
|
||||
const { data: advancedAuthStatus } = useQuery({
|
||||
queryKey: ['advancedAuthStatus'],
|
||||
queryFn: () => api.getAdvancedAuthStatus(),
|
||||
});
|
||||
|
||||
@@ -5,7 +5,7 @@ import { useTranslation } from 'react-i18next';
|
||||
import { useAuth } from '../contexts/AuthContext';
|
||||
import { useToast } from '../contexts/ToastContext';
|
||||
import { useTheme } from '../contexts/ThemeContext';
|
||||
import { HelpCircle, X, Mail } from 'lucide-react';
|
||||
import { X, Mail } from 'lucide-react';
|
||||
import { api } from '../api/client';
|
||||
|
||||
export function LoginPage() {
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+2
-2
@@ -23,8 +23,8 @@
|
||||
|
||||
<!-- Splash screens for iOS -->
|
||||
<link rel="apple-touch-startup-image" href="/img/android-chrome-512x512.png" />
|
||||
<script type="module" crossorigin src="/assets/index-BZQD54OI.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/assets/index-togsBDt6.css">
|
||||
<script type="module" crossorigin src="/assets/index-Ce6bi4R2.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/assets/index-962x7uln.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="root"></div>
|
||||
|
||||
Reference in New Issue
Block a user