Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0bbf14f194 | ||
|
|
87cc9c00a5 | ||
|
|
1775ababf6 | ||
|
|
03fb69f892 | ||
|
|
a365c4ce42 |
No files matched your search
@@ -1,5 +1,15 @@
|
|||||||
# 更新日志
|
# 更新日志
|
||||||
|
|
||||||
|
## 2026-11-18 → v1.4.2
|
||||||
|
|
||||||
|
**修复:添加素材库报 `Path does not exist`(视频目录)**——根因是该目录未挂载进容器(容器里看不到宿主机目录)。`docker-compose.yml` 已补挂载 `/vol2/1000/HD2/发布到平台的图片和视频`,README 使用注意新增排查方法(volumes 加一行同路径挂载后 `docker compose up -d`)。后端报错同步中文化:`素材库路径不存在: <路径>(如为宿主机目录,需先在 docker-compose.yml 的 volumes 里挂载进容器再重试)`(创建与更新两处)。
|
||||||
|
|
||||||
|
## 2026-11-18 → v1.4.1
|
||||||
|
|
||||||
|
**品牌更名**:应用正式更名为「牛仔库」(原名:牛图 / FlyPic 飞图)——页面标题(定为「牛仔库 - 素材库管理」)、登录页、顶栏、设置-关于、导出文件名、后端提示与启动日志全部同步;仓库地址、镜像名、数据目录 `.flypic` 保持不变,README 标题附更名说明。
|
||||||
|
|
||||||
|
**修复**:平铺库(无子文件夹)无法浏览图片——误显「素材库似乎是空的」且无法进入瀑布视图。新增 `foldersLoaded` 标记区分「文件夹加载中」与「确认无子文件夹」,无子文件夹的库直接加载全部图片;扫描完成不再清空已显示图片;Dashboard 空文案按 `totalImageCount` 分流(有图时不再误报空库)。
|
||||||
|
|
||||||
## 2026-11-17 → v1.4.0
|
## 2026-11-17 → v1.4.0
|
||||||
|
|
||||||
视频能力大版本:素材库兼容视频目录、点击弹窗播放、四项常用视频编辑(加/去水印、加/去字幕声音),以及多选图片填标题 + 模型 KEY 后 AI 一键生成带字幕和朗读的成片。
|
视频能力大版本:素材库兼容视频目录、点击弹窗播放、四项常用视频编辑(加/去水印、加/去字幕声音),以及多选图片填标题 + 模型 KEY 后 AI 一键生成带字幕和朗读的成片。
|
||||||
|
|||||||
@@ -1,4 +1,6 @@
|
|||||||
# FlyPic 飞图(Docker 独立部署版)
|
# 牛仔库(FlyPic 飞图,Docker 独立部署版)
|
||||||
|
|
||||||
|
> **2026-11-18 起正式更名为「牛仔库」**(原名:牛图 / FlyPic 飞图)。仓库地址、镜像名、数据目录 `.flypic` 保持不变。
|
||||||
|
|
||||||
本仓库是 [ZangXincz/FlyPic](https://github.com/ZangXincz/FlyPic) 的 Docker 化分支(上游已归档停更)。**本文档只介绍本分支修改过的功能与部署方式**,上游原有功能不再重复。
|
本仓库是 [ZangXincz/FlyPic](https://github.com/ZangXincz/FlyPic) 的 Docker 化分支(上游已归档停更)。**本文档只介绍本分支修改过的功能与部署方式**,上游原有功能不再重复。
|
||||||
|
|
||||||
@@ -100,6 +102,7 @@ services:
|
|||||||
# 素材库目录(容器内路径与宿主机一致,中文路径直接填,按需增减)
|
# 素材库目录(容器内路径与宿主机一致,中文路径直接填,按需增减)
|
||||||
- /vol2/1000/HD2/壁纸:/vol2/1000/HD2/壁纸
|
- /vol2/1000/HD2/壁纸:/vol2/1000/HD2/壁纸
|
||||||
- /vol2/1000/HD2/我的文档:/vol2/1000/HD2/我的文档
|
- /vol2/1000/HD2/我的文档:/vol2/1000/HD2/我的文档
|
||||||
|
- /vol2/1000/HD2/发布到平台的图片和视频:/vol2/1000/HD2/发布到平台的图片和视频
|
||||||
# 持久化配置(素材库列表、管理员密码,不用改)
|
# 持久化配置(素材库列表、管理员密码,不用改)
|
||||||
- /vol3/1000/HD3/docker/flypic/config:/root/.flypic
|
- /vol3/1000/HD3/docker/flypic/config:/root/.flypic
|
||||||
environment:
|
environment:
|
||||||
@@ -140,6 +143,7 @@ docker run -d --name flypic --restart unless-stopped \
|
|||||||
-e NODE_ENV=production \
|
-e NODE_ENV=production \
|
||||||
-v /vol3/1000/HD3/docker/flypic/config:/root/.flypic \
|
-v /vol3/1000/HD3/docker/flypic/config:/root/.flypic \
|
||||||
-v /vol2/1000/HD2/壁纸:/vol2/1000/HD2/壁纸 \
|
-v /vol2/1000/HD2/壁纸:/vol2/1000/HD2/壁纸 \
|
||||||
|
-v "/vol2/1000/HD2/发布到平台的图片和视频:/vol2/1000/HD2/发布到平台的图片和视频" \
|
||||||
jpccr.ccs.tencentyun.com/jinghui/flypic:latest
|
jpccr.ccs.tencentyun.com/jinghui/flypic:latest
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -150,6 +154,7 @@ docker run -d --name flypic --restart unless-stopped \
|
|||||||
## 📝 使用注意
|
## 📝 使用注意
|
||||||
|
|
||||||
- **添加/更新素材库后需重新扫描**,图片内 OCR 文字才可被搜索到(旧索引无文字数据)——点击右上角**「重新扫描」图标**即可,扫描时会自动补齐历史图片的 OCR 文字索引
|
- **添加/更新素材库后需重新扫描**,图片内 OCR 文字才可被搜索到(旧索引无文字数据)——点击右上角**「重新扫描」图标**即可,扫描时会自动补齐历史图片的 OCR 文字索引
|
||||||
|
- **添加素材库提示 `Path does not exist`** = 该目录没有挂载进容器(容器里看不到宿主机目录)——在 `docker-compose.yml` 的 `volumes` 下加一行 `- /宿主机路径:/宿主机路径`(两边写一样的路径),再 `docker compose up -d`,然后重新添加即可
|
||||||
- 素材库全量 OCR 扫描逐张识别、耗时较长,建议在不用的时候执行
|
- 素材库全量 OCR 扫描逐张识别、耗时较长,建议在不用的时候执行
|
||||||
- 数据存储:素材目录下 `.flypic/`(缩略图 + SQLite 索引,含 `ocr_text` 列);应用配置在 `config/`(已 gitignore)
|
- 数据存储:素材目录下 `.flypic/`(缩略图 + SQLite 索引,含 `ocr_text` 列);应用配置在 `config/`(已 gitignore)
|
||||||
- 删除素材目录下的 `.flypic` 即可清除该库索引,重新扫描重建
|
- 删除素材目录下的 `.flypic` 即可清除该库索引,重新扫描重建
|
||||||
|
|||||||
+1
-1
@@ -113,7 +113,7 @@ cleanupManager.startRoutineCleanup();
|
|||||||
|
|
||||||
// 启动服务器
|
// 启动服务器
|
||||||
server.listen(PORT, () => {
|
server.listen(PORT, () => {
|
||||||
console.log('\n🚀 FlyPic 服务器已启动');
|
console.log('\n🚀 牛仔库服务器已启动');
|
||||||
console.log(`📡 端口: ${PORT}`);
|
console.log(`📡 端口: ${PORT}`);
|
||||||
console.log(`🔌 Socket.IO 就绪`);
|
console.log(`🔌 Socket.IO 就绪`);
|
||||||
if (FRONTEND_DIST) console.log(`📁 前端: ${FRONTEND_DIST}`);
|
if (FRONTEND_DIST) console.log(`📁 前端: ${FRONTEND_DIST}`);
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ class LibraryService {
|
|||||||
|
|
||||||
if (!fs.existsSync(normalizedPath)) {
|
if (!fs.existsSync(normalizedPath)) {
|
||||||
logger.warn(`路径不存在: ${normalizedPath}`);
|
logger.warn(`路径不存在: ${normalizedPath}`);
|
||||||
throw new ValidationError('Path does not exist', 'path');
|
throw new ValidationError(`素材库路径不存在: ${normalizedPath}(如为宿主机目录,需先在 docker-compose.yml 的 volumes 里挂载进容器再重试)`, 'path');
|
||||||
}
|
}
|
||||||
|
|
||||||
// 检查文件夹访问权限
|
// 检查文件夹访问权限
|
||||||
@@ -57,7 +57,7 @@ class LibraryService {
|
|||||||
if (readError.code === 'EACCES' || readError.code === 'EPERM') {
|
if (readError.code === 'EACCES' || readError.code === 'EPERM') {
|
||||||
logger.warn(`无访问权限: ${normalizedPath}`);
|
logger.warn(`无访问权限: ${normalizedPath}`);
|
||||||
throw new ValidationError(
|
throw new ValidationError(
|
||||||
'无法访问该文件夹。请在飞牛 fnOS 的"数据共享"中将此文件夹添加到 FlyPic 应用的访问权限。',
|
'无法访问该文件夹。请在飞牛 fnOS 的"数据共享"中将此文件夹添加到 牛仔库 应用的访问权限。',
|
||||||
'permission'
|
'permission'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -105,7 +105,7 @@ class LibraryService {
|
|||||||
|
|
||||||
// 验证更新的路径是否存在
|
// 验证更新的路径是否存在
|
||||||
if (updates.path && !fs.existsSync(updates.path)) {
|
if (updates.path && !fs.existsSync(updates.path)) {
|
||||||
throw new ValidationError('Path does not exist', 'path');
|
throw new ValidationError(`素材库路径不存在: ${updates.path}(如为宿主机目录,需先在 docker-compose.yml 的 volumes 里挂载进容器再重试)`, 'path');
|
||||||
}
|
}
|
||||||
|
|
||||||
const success = this.configManager.updateLibrary(id, updates);
|
const success = this.configManager.updateLibrary(id, updates);
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ const { getSettings } = require('./settings');
|
|||||||
const HUB_URL = (process.env.HUB_URL || 'https://auth.88531.cn/api').replace(/\/+$/, '');
|
const HUB_URL = (process.env.HUB_URL || 'https://auth.88531.cn/api').replace(/\/+$/, '');
|
||||||
const HUB_PROJECT_ID = process.env.HUB_PROJECT_ID || '';
|
const HUB_PROJECT_ID = process.env.HUB_PROJECT_ID || '';
|
||||||
const HUB_API_KEY = process.env.HUB_API_KEY || '';
|
const HUB_API_KEY = process.env.HUB_API_KEY || '';
|
||||||
const SITE_VERSION = process.env.SITE_VERSION || '1.2.0';
|
const SITE_VERSION = process.env.SITE_VERSION || '1.4.2';
|
||||||
const TIMEOUT_MS = 8000;
|
const TIMEOUT_MS = 8000;
|
||||||
|
|
||||||
const state = {
|
const state = {
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ services:
|
|||||||
# 素材库目录(容器内路径与飞牛一致,直接填实际路径即可)
|
# 素材库目录(容器内路径与飞牛一致,直接填实际路径即可)
|
||||||
- /vol2/1000/HD2/壁纸:/vol2/1000/HD2/壁纸
|
- /vol2/1000/HD2/壁纸:/vol2/1000/HD2/壁纸
|
||||||
- /vol2/1000/HD2/我的文档:/vol2/1000/HD2/我的文档
|
- /vol2/1000/HD2/我的文档:/vol2/1000/HD2/我的文档
|
||||||
|
- /vol2/1000/HD2/发布到平台的图片和视频:/vol2/1000/HD2/发布到平台的图片和视频
|
||||||
# 持久化配置(config.json 存储素材库路径、密码等,不用改)
|
# 持久化配置(config.json 存储素材库路径、密码等,不用改)
|
||||||
- /vol3/1000/HD3/docker/flypic/config:/root/.flypic
|
- /vol3/1000/HD3/docker/flypic/config:/root/.flypic
|
||||||
environment:
|
environment:
|
||||||
@@ -26,6 +27,8 @@ services:
|
|||||||
- HUB_PROJECT_ID=15
|
- HUB_PROJECT_ID=15
|
||||||
- HUB_API_KEY=${HUB_API_KEY:-}
|
- HUB_API_KEY=${HUB_API_KEY:-}
|
||||||
- NEWAPI_KEY=${NEWAPI_KEY:-}
|
- NEWAPI_KEY=${NEWAPI_KEY:-}
|
||||||
|
# 当前站点版本(与 frontend/package.json、CHANGELOG 保持一致,界面版本徽标来源)
|
||||||
|
- SITE_VERSION=1.4.2
|
||||||
# 让容器经 host.docker.internal 访问宿主机的 AI 侧车
|
# 让容器经 host.docker.internal 访问宿主机的 AI 侧车
|
||||||
extra_hosts:
|
extra_hosts:
|
||||||
- "host.docker.internal:host-gateway"
|
- "host.docker.internal:host-gateway"
|
||||||
|
|||||||
+1
-1
@@ -4,7 +4,7 @@
|
|||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<link rel="icon" type="image/png" href="/favicon.png" />
|
<link rel="icon" type="image/png" href="/favicon.png" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<title>牛图 - 图片素材库管理</title>
|
<title>牛仔库 - 素材库管理</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="root"></div>
|
<div id="root"></div>
|
||||||
|
|||||||
@@ -137,12 +137,14 @@ function App() {
|
|||||||
// 如果没有选中文件夹且没有搜索条件,不加载图片(保持在 Dashboard)
|
// 如果没有选中文件夹且没有搜索条件,不加载图片(保持在 Dashboard)
|
||||||
(imageState.selectedFolder || imageState.searchKeywords || imageState.filters.formats.length > 0 || imageState.favoritesView)
|
(imageState.selectedFolder || imageState.searchKeywords || imageState.filters.formats.length > 0 || imageState.favoritesView)
|
||||||
? imageAPI.search(libraryId, params)
|
? imageAPI.search(libraryId, params)
|
||||||
: Promise.resolve({ images: [] }),
|
: Promise.resolve({ images: null }), // null = 本次不刷新图片(平铺库由 MainContent 直接加载,避免清空已显示的图片)
|
||||||
// 扫描完成后重新获取统计信息(包含 totalSize)
|
// 扫描完成后重新获取统计信息(包含 totalSize)
|
||||||
imageAPI.getStats(libraryId)
|
imageAPI.getStats(libraryId)
|
||||||
]).then(([foldersRes, imagesRes, statsRes]) => {
|
]).then(([foldersRes, imagesRes, statsRes]) => {
|
||||||
useImageStore.getState().setFolders(foldersRes.folders);
|
useImageStore.getState().setFolders(foldersRes.folders);
|
||||||
useImageStore.getState().setImages(imagesRes.images);
|
if (imagesRes.images) {
|
||||||
|
useImageStore.getState().setImages(imagesRes.images);
|
||||||
|
}
|
||||||
useImageStore.getState().setTotalImageCount(statsRes.total || 0);
|
useImageStore.getState().setTotalImageCount(statsRes.total || 0);
|
||||||
useImageStore.getState().setTotalSize(statsRes.totalSize || 0);
|
useImageStore.getState().setTotalSize(statsRes.totalSize || 0);
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
|
|||||||
@@ -99,7 +99,9 @@ function Dashboard() {
|
|||||||
<Folder className="w-12 h-12 text-secondary mx-auto mb-4" />
|
<Folder className="w-12 h-12 text-secondary mx-auto mb-4" />
|
||||||
<h3 className="text-lg font-medium text-primary mb-2">暂无文件夹</h3>
|
<h3 className="text-lg font-medium text-primary mb-2">暂无文件夹</h3>
|
||||||
<p className="text-tertiary max-w-sm mx-auto">
|
<p className="text-tertiary max-w-sm mx-auto">
|
||||||
您的素材库似乎是空的。请将图片添加到素材库目录中,系统会自动扫描。
|
{totalImageCount > 0
|
||||||
|
? `此素材库的 ${totalImageCount} 张图片没有子文件夹,已在下方瀑布视图中直接显示。`
|
||||||
|
: '您的素材库似乎是空的。请将图片添加到素材库目录中,系统会自动扫描。'}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ function Header() {
|
|||||||
// 授权系统 hub:版本 / 公告 / 在线人数
|
// 授权系统 hub:版本 / 公告 / 在线人数
|
||||||
const hub = useHub();
|
const hub = useHub();
|
||||||
const announcements = hub.announcements || [];
|
const announcements = hub.announcements || [];
|
||||||
const appVersion = hub.version ? `v${String(hub.version).replace(/^v/, '')}` : 'v1.3.0';
|
const appVersion = hub.version ? `v${String(hub.version).replace(/^v/, '')}` : 'v1.4.2';
|
||||||
|
|
||||||
// 从全局 store 获取筛选状态
|
// 从全局 store 获取筛选状态
|
||||||
const selectedFormats = filters.formats || [];
|
const selectedFormats = filters.formats || [];
|
||||||
@@ -444,7 +444,7 @@ function Header() {
|
|||||||
<header className="border-b border-gray-200 dark:border-gray-700 bg-white dark:bg-gray-800">
|
<header className="border-b border-gray-200 dark:border-gray-700 bg-white dark:bg-gray-800">
|
||||||
{/* 顶部栏 */}
|
{/* 顶部栏 */}
|
||||||
<div className="h-14 flex items-center justify-between px-4">
|
<div className="h-14 flex items-center justify-between px-4">
|
||||||
<h1 className="text-lg font-bold text-gray-900 dark:text-white">牛图</h1>
|
<h1 className="text-lg font-bold text-gray-900 dark:text-white">牛仔库</h1>
|
||||||
|
|
||||||
<div className="flex items-center gap-2">
|
<div className="flex items-center gap-2">
|
||||||
<button
|
<button
|
||||||
@@ -670,7 +670,7 @@ function Header() {
|
|||||||
<header className="border-b border-gray-200 dark:border-gray-700 bg-white dark:bg-gray-800">
|
<header className="border-b border-gray-200 dark:border-gray-700 bg-white dark:bg-gray-800">
|
||||||
<div className="h-14 flex items-center justify-between px-6">
|
<div className="h-14 flex items-center justify-between px-6">
|
||||||
<div className="flex-shrink-0">
|
<div className="flex-shrink-0">
|
||||||
<h1 className="text-xl font-bold text-gray-900 dark:text-white">牛图</h1>
|
<h1 className="text-xl font-bold text-gray-900 dark:text-white">牛仔库</h1>
|
||||||
<p className="text-xs text-gray-500 dark:text-gray-400">轻量快速的图片素材库管理</p>
|
<p className="text-xs text-gray-500 dark:text-gray-400">轻量快速的图片素材库管理</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -82,7 +82,7 @@ export default function Login() {
|
|||||||
<div className="inline-flex items-center justify-center mb-4">
|
<div className="inline-flex items-center justify-center mb-4">
|
||||||
<img
|
<img
|
||||||
src="/ICON_256.PNG"
|
src="/ICON_256.PNG"
|
||||||
alt="牛图 Logo"
|
alt="牛仔库 Logo"
|
||||||
className="w-20 h-20 object-contain"
|
className="w-20 h-20 object-contain"
|
||||||
onError={(e) => {
|
onError={(e) => {
|
||||||
// 如果 ICON_256.PNG 加载失败,尝试 favicon.png
|
// 如果 ICON_256.PNG 加载失败,尝试 favicon.png
|
||||||
@@ -91,7 +91,7 @@ export default function Login() {
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<h1 className="text-3xl font-bold text-gray-900 dark:text-white mb-2">
|
<h1 className="text-3xl font-bold text-gray-900 dark:text-white mb-2">
|
||||||
牛图
|
牛仔库
|
||||||
</h1>
|
</h1>
|
||||||
<p className="text-gray-600 dark:text-gray-400">
|
<p className="text-gray-600 dark:text-gray-400">
|
||||||
{hasPassword ? '请输入密码访问' : '首次使用,请设置访问密码'}
|
{hasPassword ? '请输入密码访问' : '首次使用,请设置访问密码'}
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ const logger = createLogger('MainContent');
|
|||||||
|
|
||||||
function MainContent() {
|
function MainContent() {
|
||||||
const { currentLibraryId } = useLibraryStore();
|
const { currentLibraryId } = useLibraryStore();
|
||||||
const { searchKeywords, filters, selectedFolder, favoritesView, setImages, setOriginalImages, imageLoadingState, images, refreshTick } = useImageStore();
|
const { searchKeywords, filters, selectedFolder, favoritesView, setImages, setOriginalImages, imageLoadingState, images, refreshTick, folders, foldersLoaded } = useImageStore();
|
||||||
const { scanProgress } = useScanStore();
|
const { scanProgress } = useScanStore();
|
||||||
|
|
||||||
// 使用 ref 跟踪最新的请求上下文
|
// 使用 ref 跟踪最新的请求上下文
|
||||||
@@ -47,8 +47,8 @@ function MainContent() {
|
|||||||
const loadImages = useCallback(async (isInitialLoad = true) => {
|
const loadImages = useCallback(async (isInitialLoad = true) => {
|
||||||
if (!currentLibraryId) return;
|
if (!currentLibraryId) return;
|
||||||
|
|
||||||
// 如果没有选中文件夹且没有搜索条件,显示 Dashboard(「我的收藏」视图除外)
|
// 如果没有选中文件夹且没有搜索条件,显示 Dashboard(「我的收藏」视图除外;无子文件夹的平铺库直接进瀑布)
|
||||||
if (!selectedFolder && !searchKeywords && filters.formats.length === 0 && !favoritesView) {
|
if (!selectedFolder && !searchKeywords && filters.formats.length === 0 && !favoritesView && (!foldersLoaded || folders.length > 0)) {
|
||||||
setImages([]);
|
setImages([]);
|
||||||
useImageStore.getState().setImageLoadingState({
|
useImageStore.getState().setImageLoadingState({
|
||||||
isLoading: false,
|
isLoading: false,
|
||||||
@@ -162,7 +162,7 @@ function MainContent() {
|
|||||||
clearTimeout(debounceTimerRef.current);
|
clearTimeout(debounceTimerRef.current);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}, [currentLibraryId, searchKeywords, selectedFolder, favoritesView, refreshTick, loadImages, cancelCurrentRequest]);
|
}, [currentLibraryId, searchKeywords, selectedFolder, favoritesView, refreshTick, folders, foldersLoaded, loadImages, cancelCurrentRequest]);
|
||||||
|
|
||||||
// 恢复撤销前的文件夹状态
|
// 恢复撤销前的文件夹状态
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
@@ -233,7 +233,7 @@ function MainContent() {
|
|||||||
|
|
||||||
{/* Content */}
|
{/* Content */}
|
||||||
<div className="flex-1 overflow-hidden">
|
<div className="flex-1 overflow-hidden">
|
||||||
{(!selectedFolder && !searchKeywords && filters.formats.length === 0 && !favoritesView) ? (
|
{(!selectedFolder && !searchKeywords && filters.formats.length === 0 && !favoritesView && (!foldersLoaded || folders.length > 0)) ? (
|
||||||
<Dashboard />
|
<Dashboard />
|
||||||
) : (
|
) : (
|
||||||
<ImageWaterfall />
|
<ImageWaterfall />
|
||||||
|
|||||||
@@ -920,7 +920,7 @@ function RightPanel() {
|
|||||||
setExportProgress(100);
|
setExportProgress(100);
|
||||||
const link = document.createElement('a');
|
const link = document.createElement('a');
|
||||||
link.href = URL.createObjectURL(zipBlob);
|
link.href = URL.createObjectURL(zipBlob);
|
||||||
link.download = `牛图_导出_${imagesToExport.length}张_${Date.now()}.zip`;
|
link.download = `牛仔库_导出_${imagesToExport.length}张_${Date.now()}.zip`;
|
||||||
document.body.appendChild(link);
|
document.body.appendChild(link);
|
||||||
link.click();
|
link.click();
|
||||||
document.body.removeChild(link);
|
document.body.removeChild(link);
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import { useState, useEffect } from 'react';
|
|||||||
import { X, ScanText, Info, Save, FlaskConical, Github, ExternalLink, Wand2 } from 'lucide-react';
|
import { X, ScanText, Info, Save, FlaskConical, Github, ExternalLink, Wand2 } from 'lucide-react';
|
||||||
import { settingsAPI } from '../api';
|
import { settingsAPI } from '../api';
|
||||||
|
|
||||||
const APP_VERSION = 'v1.3.0';
|
const APP_VERSION = 'v1.4.2';
|
||||||
const REPO_URL = 'https://gitea.88531.cn/jinghui/flypic';
|
const REPO_URL = 'https://gitea.88531.cn/jinghui/flypic';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -403,7 +403,7 @@ export default function SettingsModal({ open, onClose, versionLabel, initialTab
|
|||||||
</div>
|
</div>
|
||||||
<div className="flex items-center justify-between py-2 border-b border-gray-100 dark:border-gray-700">
|
<div className="flex items-center justify-between py-2 border-b border-gray-100 dark:border-gray-700">
|
||||||
<span className="text-gray-500 dark:text-gray-400">项目名称</span>
|
<span className="text-gray-500 dark:text-gray-400">项目名称</span>
|
||||||
<span className="font-medium text-gray-900 dark:text-white">牛图 素材库</span>
|
<span className="font-medium text-gray-900 dark:text-white">牛仔库</span>
|
||||||
</div>
|
</div>
|
||||||
<div className="flex items-center justify-between py-2">
|
<div className="flex items-center justify-between py-2">
|
||||||
<span className="text-gray-500 dark:text-gray-400">开源地址</span>
|
<span className="text-gray-500 dark:text-gray-400">开源地址</span>
|
||||||
@@ -419,7 +419,7 @@ export default function SettingsModal({ open, onClose, versionLabel, initialTab
|
|||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<p className="text-xs text-gray-400 dark:text-gray-500 pt-2">
|
<p className="text-xs text-gray-400 dark:text-gray-500 pt-2">
|
||||||
牛图(FlyPic)基于 ZangXincz/FlyPic 二次开发,修复多项问题并新增 OCR 图内文字搜索、线上 OCR、授权系统接入等能力。
|
牛仔库(FlyPic)基于 ZangXincz/FlyPic 二次开发,修复多项问题并新增 OCR 图内文字搜索、线上 OCR、授权系统接入等能力。
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|||||||
@@ -994,9 +994,9 @@ function Sidebar() {
|
|||||||
'⚠️ 文件夹权限不足\n\n' +
|
'⚠️ 文件夹权限不足\n\n' +
|
||||||
errorMessage + '\n\n' +
|
errorMessage + '\n\n' +
|
||||||
'操作步骤:\n' +
|
'操作步骤:\n' +
|
||||||
'1. 应用中心找到 牛图 应用\n' +
|
'1. 应用中心找到 牛仔库 应用\n' +
|
||||||
'2. 点击 应用设置\n' +
|
'2. 点击 应用设置\n' +
|
||||||
'3. 将该文件夹添加到 牛图 应用的读写权限'
|
'3. 将该文件夹添加到 牛仔库 应用的读写权限'
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
alert('添加素材库失败: ' + errorMessage);
|
alert('添加素材库失败: ' + errorMessage);
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ export const useImageStore = create((set, get) => ({
|
|||||||
|
|
||||||
// 文件夹
|
// 文件夹
|
||||||
folders: [],
|
folders: [],
|
||||||
|
foldersLoaded: false, // folders 是否已完成首次加载(区分「加载中」与「确认无文件夹」)
|
||||||
selectedFolder: null, // 当前浏览的文件夹路径
|
selectedFolder: null, // 当前浏览的文件夹路径
|
||||||
selectedFolderItem: null, // 选中的文件夹对象(用于显示详情、操作等)
|
selectedFolderItem: null, // 选中的文件夹对象(用于显示详情、操作等)
|
||||||
|
|
||||||
@@ -82,7 +83,7 @@ export const useImageStore = create((set, get) => ({
|
|||||||
clearSelection: () => set({ selectedImages: [], selectedImage: null, selectedFolderItem: null }),
|
clearSelection: () => set({ selectedImages: [], selectedImage: null, selectedFolderItem: null }),
|
||||||
|
|
||||||
// 文件夹操作
|
// 文件夹操作
|
||||||
setFolders: (folders) => set({ folders }),
|
setFolders: (folders) => set({ folders, foldersLoaded: true }),
|
||||||
|
|
||||||
setSelectedFolder: (folder) => set((state) => ({
|
setSelectedFolder: (folder) => set((state) => ({
|
||||||
selectedFolder: folder,
|
selectedFolder: folder,
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* 牛图(FlyPic)前端日志系统
|
* 牛仔库(FlyPic)前端日志系统
|
||||||
* 专注于用户操作和UI交互日志
|
* 专注于用户操作和UI交互日志
|
||||||
*
|
*
|
||||||
* 日志分类:
|
* 日志分类:
|
||||||
|
|||||||
Reference in new issue
Block a user