修改部分问题
This commit is contained in:
+1
-1
@@ -9,5 +9,5 @@ export async function login(loginRequest: LoginRequest): Promise<User> {
|
||||
}
|
||||
|
||||
export async function logout() {
|
||||
await WebClient.get<void>("/auth/logout")
|
||||
await WebClient.post<void>("/auth/logout")
|
||||
}
|
||||
|
||||
@@ -267,7 +267,8 @@ export default function ModCodes({ firearmId }: ModCodesProps) {
|
||||
<Tag
|
||||
key={`${modification.id}-${accessoryIndex}-tuning-${tuningIndex}`}
|
||||
style={{
|
||||
background: '#10E28C',
|
||||
background: '#EED177',
|
||||
color: '#000000',
|
||||
}}
|
||||
>
|
||||
{tuning.tuningName || "未命名"}: {tuning.tuningValue ?? "-"}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
[
|
||||
"枪口",
|
||||
"枪管",
|
||||
"导轨脚架",
|
||||
"贴片",
|
||||
"瞄准镜",
|
||||
"战术设备",
|
||||
@@ -9,11 +10,10 @@
|
||||
"枪托",
|
||||
"托腮板",
|
||||
"枪托套件",
|
||||
"导轨脚架",
|
||||
"前握把",
|
||||
"弹匣",
|
||||
"弹匣座",
|
||||
"后握把",
|
||||
"后握贴片",
|
||||
"握把座",
|
||||
"弹匣",
|
||||
"弹匣座"
|
||||
"握把座"
|
||||
]
|
||||
|
||||
@@ -50,6 +50,8 @@ export default function HeroLayout() {
|
||||
const localDate = new Date(user.expiration.replace(' ', 'T'));
|
||||
const targetTimestamp = localDate.getTime();
|
||||
if (targetTimestamp > Date.now()) {
|
||||
console.log("未到自动登出时间");
|
||||
|
||||
scheduleAutoLogout(targetTimestamp, performLogout);
|
||||
} else {
|
||||
// 已过期立即登出
|
||||
@@ -192,7 +194,7 @@ export default function HeroLayout() {
|
||||
|
||||
<div className="border-t border-gray-800 my-6" />
|
||||
<div className="text-center text-xs text-gray-500">
|
||||
<p>© 2024-{today.year()} OnixByte。</p>
|
||||
<p>© 2024-{today.year()} OnixByte。湘ICP备2026000274号-1</p>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
+34
-32
@@ -181,7 +181,41 @@ export default function FirearmsPage() {
|
||||
|
||||
<Card
|
||||
className="hex-bg border-5px-#142c38"
|
||||
title={
|
||||
<div style={{
|
||||
display: 'flex',
|
||||
alignItems: 'center',
|
||||
gap: '12px',
|
||||
width: '100%'
|
||||
}}>
|
||||
<span style={{
|
||||
display: 'inline-block',
|
||||
color: '#10E28C',
|
||||
padding: '4px 12px',
|
||||
borderRadius: '4px',
|
||||
fontSize: '18px',
|
||||
fontWeight: '500',
|
||||
letterSpacing: '0.5px'
|
||||
}}>
|
||||
{firearm.name}
|
||||
</span>
|
||||
<span className="flex items-center justify-between"
|
||||
style={{
|
||||
display: 'inline-block',
|
||||
backgroundColor: '#2d4f5796',
|
||||
color: 'white',
|
||||
padding: '4px 12px',
|
||||
borderRadius: '4px',
|
||||
fontSize: '14px',
|
||||
fontWeight: '500',
|
||||
letterSpacing: '0.5px'
|
||||
}}>
|
||||
{firearmTypeText[firearm.type]}
|
||||
|
||||
</span></div>
|
||||
}
|
||||
extra={
|
||||
|
||||
user ? (
|
||||
<div className="flex items-center gap-1">
|
||||
<Button type="link" size="small" onClick={() => setEditingFirearm(firearm)}>
|
||||
@@ -262,38 +296,6 @@ export default function FirearmsPage() {
|
||||
<div className="flex flex-col gap-3">
|
||||
<div className="lmr-container">
|
||||
<div className="lmr-left">
|
||||
<div style={{
|
||||
display: 'flex',
|
||||
alignItems: 'center',
|
||||
gap: '12px',
|
||||
width: '100%'
|
||||
}}>
|
||||
<span style={{
|
||||
display: 'inline-block',
|
||||
backgroundColor: '#555555',
|
||||
color: 'white',
|
||||
padding: '4px 12px',
|
||||
borderRadius: '4px',
|
||||
fontSize: '14px',
|
||||
fontWeight: '500',
|
||||
letterSpacing: '0.5px'
|
||||
}}>
|
||||
{firearm.name}
|
||||
</span>
|
||||
<span className="flex items-center justify-between"
|
||||
style={{
|
||||
display: 'inline-block',
|
||||
backgroundColor: '#2d4f5796',
|
||||
color: 'white',
|
||||
padding: '4px 12px',
|
||||
borderRadius: '4px',
|
||||
fontSize: '14px',
|
||||
fontWeight: '500',
|
||||
letterSpacing: '0.5px'
|
||||
}}>
|
||||
{firearmTypeText[firearm.type]}
|
||||
|
||||
</span></div>
|
||||
</div>
|
||||
<div className="lmr-middle">
|
||||
<div style={{
|
||||
|
||||
Reference in New Issue
Block a user