v1.4.20: 右上角新增下载更多素材入口
This commit is contained in:
1 parent
71c5d25862
commit
5f60be9462
5 files changed
+23
-5
No files matched your search
@@ -1,5 +1,9 @@
|
||||
# 更新日志
|
||||
|
||||
## 2026-11-23 → v1.4.20
|
||||
|
||||
- ✨ **右上角新增「下载更多素材」入口**:顶栏图标组最左侧新增蓝色描边按钮(下载图标 + 文字),点击新标签页打开素材模板下载页(doc.88531.cn 素材模板系列,含各类素材/模板/福利合集);窄屏(<1024px)自动收起为纯图标不挤占顶栏,鼠标悬停有「下载更多素材」提示
|
||||
|
||||
## 2026-11-23 → v1.4.19
|
||||
|
||||
- ✨ **AI 视频「模型提供商」默认值**:设置 → AI 视频 选「单独配置提供商 / 模型 / Key」时,接口地址默认填 `https://ai.88531.cn/v1`、模型默认填 `mimo-v2.6-flash`(后端 DEFAULTS 与前端兜底同步,新装/未配置即开箱可用)
|
||||
|
||||
@@ -29,8 +29,9 @@
|
||||
- **关于**:当前版本号、开源地址
|
||||
- 配置持久化在 `config/settings.json`,保存后**立即生效**,无需重启
|
||||
|
||||
### 4. 右上角:开源地址 / 版本号 / 通知(新增)
|
||||
### 4. 右上角:下载更多素材 / 开源地址 / 版本号 / 通知(新增)
|
||||
|
||||
- ⬇ **下载更多素材**:顶栏图标组最左侧的蓝色描边按钮,点击新标签页打开素材模板下载页(`doc.88531.cn` 素材模板系列,各类素材/模板/福利合集,定期更新);窄屏自动收起为纯图标,悬停显示提示
|
||||
- 🔗 **开源地址**:一键打开 `gitea.88531.cn/jinghui/flypic`
|
||||
- 🔔 **通知公告**:铃铛带未读红点,下拉展示授权系统推送的公告与在线人数
|
||||
- **版本号徽标**:显示当前运行版本(`v1.2.0`)
|
||||
|
||||
+1
-1
@@ -26,7 +26,7 @@ services:
|
||||
- HUB_API_KEY=${HUB_API_KEY:-}
|
||||
- NEWAPI_KEY=${NEWAPI_KEY:-}
|
||||
# 当前站点版本(与 frontend/package.json、CHANGELOG 保持一致,界面版本徽标来源)
|
||||
- SITE_VERSION=1.4.19
|
||||
- SITE_VERSION=1.4.20
|
||||
# 让容器经 host.docker.internal 访问宿主机的 AI 侧车
|
||||
extra_hosts:
|
||||
- "host.docker.internal:host-gateway"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "flypic-frontend",
|
||||
"version": "1.4.19",
|
||||
"version": "1.4.20",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { useState, useEffect, useMemo, useRef } from 'react';
|
||||
import { Sun, Moon, Search, Filter, Sliders, RefreshCw, ScanLine, Star, Bell, Github, Settings, ExternalLink, Wand2, Film } from 'lucide-react';
|
||||
import { Sun, Moon, Search, Filter, Sliders, RefreshCw, ScanLine, Star, Bell, Github, Settings, ExternalLink, Wand2, Film, Download } from 'lucide-react';
|
||||
import { useLibraryStore } from '../stores/useLibraryStore';
|
||||
import { useImageStore } from '../stores/useImageStore';
|
||||
import { useUIStore } from '../stores/useUIStore';
|
||||
@@ -15,6 +15,8 @@ import { createLogger } from '../utils/logger';
|
||||
const logger = createLogger('Header');
|
||||
|
||||
const REPO_URL = 'https://gitea.88531.cn/jinghui/flypic';
|
||||
// 素材模板下载页(88531 文档站)
|
||||
const MATERIALS_URL = 'https://doc.88531.cn/docs/mrfx/mrfx-1g99qt7tt49tl';
|
||||
|
||||
function Header() {
|
||||
const { currentLibraryId } = useLibraryStore();
|
||||
@@ -346,9 +348,20 @@ const [showAIVideo, setShowAIVideo] = useState(false);
|
||||
);
|
||||
const availableRatings = filterOptions.ratings;
|
||||
|
||||
// 右上角图标组:开源地址 / 通知 / 设置 / 版本号
|
||||
// 右上角图标组:下载更多素材 / 开源地址 / 通知 / 设置 / 版本号
|
||||
const rightIcons = (
|
||||
<>
|
||||
<a
|
||||
href={MATERIALS_URL}
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
title="下载更多素材"
|
||||
className="flex items-center gap-1.5 px-2.5 py-1.5 rounded-lg text-blue-600 dark:text-blue-400 hover:bg-blue-50 dark:hover:bg-blue-500/15 border border-blue-200 dark:border-blue-500/40 transition-colors flex-shrink-0"
|
||||
>
|
||||
<Download className="w-4 h-4" />
|
||||
<span className="hidden lg:inline text-sm font-medium">下载更多素材</span>
|
||||
</a>
|
||||
|
||||
<a
|
||||
href={REPO_URL}
|
||||
target="_blank"
|
||||
|
||||
Reference in new issue
Block a user