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,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