diff --git a/backend/services/download.js b/backend/services/download.js index 7ea8dd3..eb3293d 100644 --- a/backend/services/download.js +++ b/backend/services/download.js @@ -345,7 +345,7 @@ class DownloadService { } // 有信息文件、有图片文件且数量匹配,认为已下载 - console.log(`作品 ${artworkId} 已完整下载,有信息文件和 ${imageFiles.length}/${expectedImageCount} 个图片文件`); + // console.log(`作品 ${artworkId} 已完整下载,有信息文件和 ${imageFiles.length}/${expectedImageCount} 个图片文件`); return true; } } diff --git a/backend/services/repository.js b/backend/services/repository.js index ce9e70e..f4d7891 100644 --- a/backend/services/repository.js +++ b/backend/services/repository.js @@ -491,7 +491,7 @@ class RepositoryService { } // 有信息文件、有图片文件且数量匹配,认为已下载 - console.log(`作品 ${artworkId} 已完整下载: ${files.length}/${expectedImageCount} 个图片文件`) + // console.log(`作品 ${artworkId} 已完整下载: ${files.length}/${expectedImageCount} 个图片文件`) return true } } diff --git a/ui/src/components/artwork/ArtworkGallery.vue b/ui/src/components/artwork/ArtworkGallery.vue new file mode 100644 index 0000000..a5247aa --- /dev/null +++ b/ui/src/components/artwork/ArtworkGallery.vue @@ -0,0 +1,184 @@ + + + + + \ No newline at end of file diff --git a/ui/src/components/artwork/ArtworkInfoPanel.vue b/ui/src/components/artwork/ArtworkInfoPanel.vue new file mode 100644 index 0000000..5a061e3 --- /dev/null +++ b/ui/src/components/artwork/ArtworkInfoPanel.vue @@ -0,0 +1,518 @@ + + + + + \ No newline at end of file diff --git a/ui/src/views/repository/ArtworkModal.vue b/ui/src/components/repository/ArtworkModal.vue similarity index 91% rename from ui/src/views/repository/ArtworkModal.vue rename to ui/src/components/repository/ArtworkModal.vue index 0521746..0bd2984 100644 --- a/ui/src/views/repository/ArtworkModal.vue +++ b/ui/src/components/repository/ArtworkModal.vue @@ -15,16 +15,8 @@

文件列表

-
- +
+

{{ file.name }}

{{ formatFileSize(file.size) }}

@@ -187,4 +179,4 @@ import { formatFileSize, getPreviewUrl } from '@/utils/formatters' .btn-secondary:hover { background: #4b5563; } - \ No newline at end of file + \ No newline at end of file diff --git a/ui/src/views/repository/RepositoryBrowse.vue b/ui/src/components/repository/RepositoryBrowse.vue similarity index 77% rename from ui/src/views/repository/RepositoryBrowse.vue rename to ui/src/components/repository/RepositoryBrowse.vue index 1b73255..b425470 100644 --- a/ui/src/views/repository/RepositoryBrowse.vue +++ b/ui/src/components/repository/RepositoryBrowse.vue @@ -2,33 +2,18 @@
- + - +
@@ -39,44 +24,23 @@
- + - + - + - + - +
@@ -115,7 +79,7 @@ const emit = defineEmits() const searchQuery = ref('') const sortBy = ref('date') const filterBy = ref('all') -const breadcrumb = ref>([]) +const breadcrumb = ref>([]) const currentArtist = ref('') // 添加当前查看的作者状态 // 图片查看器 @@ -256,4 +220,4 @@ watch(() => props.viewMode, (newMode) => { color: #6b7280; font-size: 0.875rem; } - \ No newline at end of file + \ No newline at end of file diff --git a/ui/src/views/repository/RepositoryConfig.vue b/ui/src/components/repository/RepositoryConfig.vue similarity index 100% rename from ui/src/views/repository/RepositoryConfig.vue rename to ui/src/components/repository/RepositoryConfig.vue diff --git a/ui/src/views/repository/RepositoryMigration.vue b/ui/src/components/repository/RepositoryMigration.vue similarity index 87% rename from ui/src/views/repository/RepositoryMigration.vue rename to ui/src/components/repository/RepositoryMigration.vue index a7384a7..478e390 100644 --- a/ui/src/views/repository/RepositoryMigration.vue +++ b/ui/src/components/repository/RepositoryMigration.vue @@ -4,17 +4,13 @@

将旧项目中的作品文件迁移到当前仓库中。系统会自动识别作品ID并避免重复迁移。

- +
- + @@ -30,11 +26,7 @@
-
@@ -45,16 +37,11 @@

迁移结果

成功迁移: {{ migrationResult.totalMigrated }} 个作品

-

跳过: {{ migrationResult.log.filter((item: any) => item.status === 'skipped').length }} 个作品

+

跳过: {{migrationResult.log.filter((item: any) => item.status === 'skipped').length}} 个作品

详细日志
-
+
{{ (item as any).status === 'success' ? '✅' : '⏭️' }} {{ (item as any).title }} (ID: {{ (item as any).id }}) {{ (item as any).reason }} @@ -241,4 +228,4 @@ const startMigration = () => { color: #6b7280; font-size: 0.875rem; } - \ No newline at end of file + \ No newline at end of file diff --git a/ui/src/views/repository/RepositoryStats.vue b/ui/src/components/repository/RepositoryStats.vue similarity index 84% rename from ui/src/views/repository/RepositoryStats.vue rename to ui/src/components/repository/RepositoryStats.vue index f41a77b..eb6c0e0 100644 --- a/ui/src/views/repository/RepositoryStats.vue +++ b/ui/src/components/repository/RepositoryStats.vue @@ -3,23 +3,20 @@

仓库统计

-
- +
📁
@@ -129,6 +126,7 @@ import { formatFileSize } from '@/utils/formatters' from { transform: rotate(0deg); } + to { transform: rotate(360deg); } @@ -175,4 +173,4 @@ import { formatFileSize } from '@/utils/formatters' margin-top: 0.25rem; font-style: italic; } - \ No newline at end of file + \ No newline at end of file diff --git a/ui/src/views/repository/components/ArtistsView.vue b/ui/src/components/repository/components/ArtistsView.vue similarity index 93% rename from ui/src/views/repository/components/ArtistsView.vue rename to ui/src/components/repository/components/ArtistsView.vue index ef24dcd..635f527 100644 --- a/ui/src/views/repository/components/ArtistsView.vue +++ b/ui/src/components/repository/components/ArtistsView.vue @@ -1,12 +1,8 @@