mirror of
https://github.com/DrizzleTime/Foxel.git
synced 2026-09-08 09:06:50 +08:00
feat: Update version to v1.1.1
This commit is contained in:
+1
-1
@@ -4,7 +4,7 @@ from typing import Any, Optional, Dict
|
|||||||
from dotenv import load_dotenv
|
from dotenv import load_dotenv
|
||||||
from models.database import Configuration
|
from models.database import Configuration
|
||||||
load_dotenv(dotenv_path=".env")
|
load_dotenv(dotenv_path=".env")
|
||||||
VERSION = "v1.1.0"
|
VERSION = "v1.1.1"
|
||||||
|
|
||||||
class ConfigCenter:
|
class ConfigCenter:
|
||||||
_cache: Dict[str, Any] = {}
|
_cache: Dict[str, Any] = {}
|
||||||
|
|||||||
@@ -154,7 +154,7 @@ const SideNav = memo(function SideNav({ collapsed, activeKey, onChange, onToggle
|
|||||||
}} onClick={showVersionModal}>
|
}} onClick={showVersionModal}>
|
||||||
{hasUpdate ? (
|
{hasUpdate ? (
|
||||||
<Tooltip title={`发现新版本: ${latestVersion?.version}`} placement={collapsed ? 'right' : 'top'}>
|
<Tooltip title={`发现新版本: ${latestVersion?.version}`} placement={collapsed ? 'right' : 'top'}>
|
||||||
<a href="https://github.com/DrizzleTime/Foxel/releases" target="_blank" rel="noopener noreferrer"
|
<a rel="noopener noreferrer"
|
||||||
style={{ textDecoration: 'none' }}>
|
style={{ textDecoration: 'none' }}>
|
||||||
{collapsed ? (
|
{collapsed ? (
|
||||||
<Tag icon={<WarningOutlined />} color="warning" style={{ marginInlineEnd: 0 }} />
|
<Tag icon={<WarningOutlined />} color="warning" style={{ marginInlineEnd: 0 }} />
|
||||||
@@ -241,11 +241,11 @@ const SideNav = memo(function SideNav({ collapsed, activeKey, onChange, onToggle
|
|||||||
|
|
||||||
{hasUpdate && (
|
{hasUpdate && (
|
||||||
<Alert
|
<Alert
|
||||||
message={`发现新版本: ${latestVersion.version}`}
|
message={<span style={{ color: token.colorText }}>{`发现新版本: ${latestVersion.version}`}</span>}
|
||||||
description="建议尽快更新到最新版本,以获得新功能和安全修复。"
|
description={<span style={{ color: token.colorTextSecondary }}>建议尽快更新到最新版本,以获得新功能和安全修复。</span>}
|
||||||
type="info"
|
type="info"
|
||||||
showIcon
|
showIcon
|
||||||
style={{ marginTop: 24, marginBottom: 24 }}
|
style={{ marginTop: 24, marginBottom: 24, background: token.colorInfoBg, borderColor: token.colorInfoBorder }}
|
||||||
action={
|
action={
|
||||||
<Button
|
<Button
|
||||||
size="small"
|
size="small"
|
||||||
@@ -276,7 +276,8 @@ const SideNav = memo(function SideNav({ collapsed, activeKey, onChange, onToggle
|
|||||||
borderBottom: `1px solid ${token.colorBorderSecondary}`,
|
borderBottom: `1px solid ${token.colorBorderSecondary}`,
|
||||||
paddingBottom: 8,
|
paddingBottom: 8,
|
||||||
marginTop: 24,
|
marginTop: 24,
|
||||||
marginBottom: 16
|
marginBottom: 16,
|
||||||
|
color: token.colorTextHeading
|
||||||
}} {...props} />,
|
}} {...props} />,
|
||||||
ul: ({ ...props }) => <ul style={{ paddingLeft: 20 }} {...props} />,
|
ul: ({ ...props }) => <ul style={{ paddingLeft: 20 }} {...props} />,
|
||||||
li: ({ ...props }) => <li style={{ marginBottom: 8 }} {...props} />,
|
li: ({ ...props }) => <li style={{ marginBottom: 8 }} {...props} />,
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ import type { ThemeConfig } from 'antd/es/config-provider/context';
|
|||||||
export const foxelTheme: ThemeConfig = {
|
export const foxelTheme: ThemeConfig = {
|
||||||
algorithm: [theme.defaultAlgorithm, theme.compactAlgorithm],
|
algorithm: [theme.defaultAlgorithm, theme.compactAlgorithm],
|
||||||
token: {
|
token: {
|
||||||
|
colorInfoBg: '#efefef',
|
||||||
colorPrimary: '#111',
|
colorPrimary: '#111',
|
||||||
colorInfo: '#111',
|
colorInfo: '#111',
|
||||||
colorText: '#111',
|
colorText: '#111',
|
||||||
|
|||||||
Reference in New Issue
Block a user