refactor(alert-settings): integrate AppShell layout and update cache version
Some checks failed
Deploy MyApp on Same Server / build-and-deploy (push) Has been cancelled

- Replace custom page layout with AppShell component for consistent UI
- Remove unused PageHeader and UpdateAlertConditionDto imports
- Update service worker cache names and version.json to new timestamp
This commit is contained in:
2026-05-11 22:19:30 +03:30
parent 676f1373c1
commit 9da69c96b1
20 changed files with 1025 additions and 172 deletions

View File

@@ -5,10 +5,11 @@ import { api } from '@/lib/api'
import { getCurrentPersianYear } from '@/lib/date/persian-date'
import { Calendar as CalendarIcon, Database, TrendingUp } from 'lucide-react'
import Loading from '@/components/Loading'
import { PageHeader, BackLink, Card } from '@/components/common'
import { Card } from '@/components/common'
import { YearSelector } from '@/components/calendar'
import { MonthCard } from '@/components/cards'
import { StatsCard } from '@/components/cards'
import { AppShell } from '@/components/layout'
const monthNames = ['فروردین', 'اردیبهشت', 'خرداد', 'تیر', 'مرداد', 'شهریور', 'مهر', 'آبان', 'آذر', 'دی', 'بهمن', 'اسفند']
@@ -75,16 +76,12 @@ export default function CalendarPage() {
}
return (
<div className="min-h-screen p-4 md:p-6">
<AppShell
pageTitle="انتخاب سال و ماه"
pageIcon={CalendarIcon}
iconGradient="from-green-500 to-green-600"
>
<div className="max-w-6xl mx-auto">
{/* Header */}
<BackLink href="/" label="بازگشت به صفحه اصلی" />
<PageHeader
icon={CalendarIcon}
title="انتخاب سال و ماه"
iconGradient="from-green-500 to-green-600"
/>
{/* Main Card */}
<Card padding="lg">
{/* Year Selector */}
@@ -130,6 +127,6 @@ export default function CalendarPage() {
</div>
</Card>
</div>
</div>
</AppShell>
)
}