Commit 0ae3f35b authored by 青山's avatar 青山

修改默认密码

parent 2d5293e7
...@@ -282,116 +282,17 @@ const PerpetualCalendar = () => { ...@@ -282,116 +282,17 @@ const PerpetualCalendar = () => {
}, [selectedYear, selectedMonth]); }, [selectedYear, selectedMonth]);
return ( return (
<CalendarContainer> <iframe
<CalendarHeader> src="https://udify.app/chatbot/bzXkG8DJ67NKFfbB"
<Title level={2} style={{ textAlign: 'center' }}>万年历</Title> title="Background Remover"
</CalendarHeader> style={{
width: '100%',
<ControlsContainer> height: '70vh',
<Button onClick={prevMonth}>&lt;</Button> border: 'none',
minHeight: 400,
<Select }}
value={selectedYear} allow="clipboard-write"
onChange={handleYearChange} />
style={{ width: 100 }}
>
{years.map(year => (
<Option key={year} value={year}>{year}</Option>
))}
</Select>
<Select
value={selectedMonth}
onChange={handleMonthChange}
style={{ width: 100 }}
>
{monthNames.map((month, index) => (
<Option key={index} value={index}>{month}</Option>
))}
</Select>
<Button onClick={nextMonth}>&gt;</Button>
<Button type="primary" onClick={goToToday}>回到今天</Button>
</ControlsContainer>
{/* 星期表头 */}
<CalendarGrid>
{weekdayNames.map((name, index) => (
<WeekdayHeader key={index} $isWeekend={index === 0 || index === 6}>
{name}
</WeekdayHeader>
))}
{/* 日期格子 */}
{calendarDays.map((dateObj, index) => {
const { day, month, year, isCurrentMonth, lunar, holiday, date } = dateObj;
const dateIsToday = isToday(year, month, day);
const dayOfWeek = date.getDay();
const isWeekend = dayOfWeek === 0 || dayOfWeek === 6;
// 判断是否为法定节假日或调休
const isHoliday = holiday && holiday.type === 'holiday';
const isWorkday = holiday && holiday.type === 'workday';
// 判断是否为实际休息日
const isRestDay = isActualRestDay(dateObj);
return (
<Tooltip
key={index}
title={
<>
{holiday && holiday.name && <div>{holiday.name}</div>}
{lunar && <div>农历{lunar.month}{lunar.isLeapMonth ? '闰' : ''}{lunar.day}</div>}
{isWorkday && <div>调休工作日</div>}
{isHoliday && <div>法定节假日</div>}
{!isHoliday && !isWorkday && isWeekend && <div>周末</div>}
</>
}
placement="top"
>
<DayCell
$isToday={dateIsToday}
$isWeekend={isWeekend}
$isWorkday={isWorkday}
$isHoliday={isHoliday}
style={{ opacity: isCurrentMonth ? 1 : 0.3 }}
>
<DayNumber
$isToday={dateIsToday}
$isWeekend={isWeekend}
$isWorkday={isWorkday}
$isHoliday={isHoliday}
>
{day}
</DayNumber>
{lunar && (
<LunarDay>
{lunar.day === '初一' ? `${lunar.month}${lunar.isLeapMonth ? '闰' : ''}月` : lunar.day}
</LunarDay>
)}
{holiday && holiday.name && (
<HolidayTag>{holiday.name}</HolidayTag>
)}
{isWorkday && (
<WorkTag style={{ backgroundColor: colors.work, color: 'white' }}>
</WorkTag>
)}
{isHoliday && !isWorkday && (
<WorkTag style={{ backgroundColor: colors.rest, color: 'white' }}>
</WorkTag>
)}
</DayCell>
</Tooltip>
);
})}
</CalendarGrid>
</CalendarContainer>
); );
}; };
......
...@@ -283,8 +283,8 @@ ...@@ -283,8 +283,8 @@
} }
}, },
"perpetualCalendar": { "perpetualCalendar": {
"title": "万年历", "title": "行知企业问答",
"description": "查看任意年份任意月份的日历" "description": "行知企业问答小助手"
}, },
"idPhotoMaker": { "idPhotoMaker": {
"title": "证件照制作", "title": "证件照制作",
......
...@@ -9,8 +9,8 @@ const Login = () => { ...@@ -9,8 +9,8 @@ const Login = () => {
const { t } = useTranslation(); const { t } = useTranslation();
// 新增:用户名密码登录相关状态 // 新增:用户名密码登录相关状态
const [username, setUsername] = useState('testuser'); const [username, setUsername] = useState('');
const [password, setPassword] = useState('testpass'); const [password, setPassword] = useState('');
const [loginLoading, setLoginLoading] = useState(false); const [loginLoading, setLoginLoading] = useState(false);
const [loginError, setLoginError] = useState(''); const [loginError, setLoginError] = useState('');
const [rememberMe, setRememberMe] = useState(false); const [rememberMe, setRememberMe] = useState(false);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment