This commit is contained in:
parent
6895975e9e
commit
f89e2bc758
|
|
@ -1,5 +1,5 @@
|
||||||
import { useState } from 'react'
|
import { useState } from 'react'
|
||||||
import { Filter, Download } from 'lucide-react'
|
import { Filter, Download, Eye, Heart } from 'lucide-react'
|
||||||
import { Button } from '@/components/ui/button'
|
import { Button } from '@/components/ui/button'
|
||||||
import { Card, CardContent, CardFooter } from '@/components/ui/card'
|
import { Card, CardContent, CardFooter } from '@/components/ui/card'
|
||||||
import { cn } from '@/lib/utils'
|
import { cn } from '@/lib/utils'
|
||||||
|
|
@ -73,6 +73,19 @@ export default function AssetLibrary() {
|
||||||
{/* Placeholder Gradient */}
|
{/* Placeholder Gradient */}
|
||||||
<div className="absolute inset-0 bg-gradient-to-br from-slate-200 to-slate-300 group-hover:scale-105 transition-transform duration-500" />
|
<div className="absolute inset-0 bg-gradient-to-br from-slate-200 to-slate-300 group-hover:scale-105 transition-transform duration-500" />
|
||||||
{/* You would put <img src={asset.imageUrl} ... /> here */}
|
{/* You would put <img src={asset.imageUrl} ... /> here */}
|
||||||
|
|
||||||
|
{/* Hover Actions Overlay */}
|
||||||
|
<div className="absolute top-3 right-3 flex gap-2 opacity-0 group-hover:opacity-100 transition-all duration-300 translate-y-[-10px] group-hover:translate-y-0 z-10">
|
||||||
|
<button className="w-8 h-8 rounded-full bg-black/20 hover:bg-black/40 text-white flex items-center justify-center backdrop-blur-sm transition-colors">
|
||||||
|
<Eye className="w-4 h-4" />
|
||||||
|
</button>
|
||||||
|
<button className="w-8 h-8 rounded-full bg-black/20 hover:bg-black/40 text-white flex items-center justify-center backdrop-blur-sm transition-colors">
|
||||||
|
<Heart className="w-4 h-4" />
|
||||||
|
</button>
|
||||||
|
<button className="w-8 h-8 rounded-full bg-black/20 hover:bg-black/40 text-white flex items-center justify-center backdrop-blur-sm transition-colors">
|
||||||
|
<Download className="w-4 h-4" />
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<CardContent className="p-4 space-y-3">
|
<CardContent className="p-4 space-y-3">
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,350 @@
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"id": 370,
|
||||||
|
"owner": {
|
||||||
|
"id": 105,
|
||||||
|
"login": "yuzhixiao",
|
||||||
|
"login_name": "",
|
||||||
|
"full_name": "",
|
||||||
|
"email": "892956301@qq.com",
|
||||||
|
"avatar_url": "http://172.16.1.12/avatar/4f1b8997ca3509f1b3582386a1ce36ad",
|
||||||
|
"language": "",
|
||||||
|
"is_admin": false,
|
||||||
|
"last_login": "0001-01-01T00:00:00Z",
|
||||||
|
"created": "2023-11-17T09:43:39+08:00",
|
||||||
|
"restricted": false,
|
||||||
|
"active": false,
|
||||||
|
"prohibit_login": false,
|
||||||
|
"location": "",
|
||||||
|
"website": "",
|
||||||
|
"description": "",
|
||||||
|
"visibility": "public",
|
||||||
|
"followers_count": 0,
|
||||||
|
"following_count": 0,
|
||||||
|
"starred_repos_count": 0,
|
||||||
|
"username": "yuzhixiao"
|
||||||
|
},
|
||||||
|
"name": "VRWarehouse",
|
||||||
|
"full_name": "yuzhixiao/VRWarehouse",
|
||||||
|
"description": "VRWarehouse",
|
||||||
|
"empty": false,
|
||||||
|
"private": false,
|
||||||
|
"fork": false,
|
||||||
|
"template": false,
|
||||||
|
"parent": null,
|
||||||
|
"mirror": false,
|
||||||
|
"size": 24,
|
||||||
|
"language": "",
|
||||||
|
"languages_url": "http://172.16.1.12/api/v1/repos/yuzhixiao/VRWarehouse/languages",
|
||||||
|
"html_url": "http://172.16.1.12/yuzhixiao/VRWarehouse",
|
||||||
|
"url": "http://172.16.1.12/api/v1/repos/yuzhixiao/VRWarehouse",
|
||||||
|
"link": "",
|
||||||
|
"ssh_url": "LGZN@172.16.1.12:yuzhixiao/VRWarehouse.git",
|
||||||
|
"clone_url": "http://172.16.1.12/yuzhixiao/VRWarehouse.git",
|
||||||
|
"original_url": "",
|
||||||
|
"website": "",
|
||||||
|
"stars_count": 0,
|
||||||
|
"forks_count": 0,
|
||||||
|
"watchers_count": 1,
|
||||||
|
"open_issues_count": 0,
|
||||||
|
"open_pr_counter": 0,
|
||||||
|
"release_counter": 0,
|
||||||
|
"default_branch": "master",
|
||||||
|
"archived": false,
|
||||||
|
"created_at": "2023-12-13T14:40:31+08:00",
|
||||||
|
"updated_at": "2023-12-13T14:40:32+08:00",
|
||||||
|
"archived_at": "1970-01-01T08:00:00+08:00",
|
||||||
|
"permissions": {
|
||||||
|
"admin": false,
|
||||||
|
"push": false,
|
||||||
|
"pull": true
|
||||||
|
},
|
||||||
|
"has_issues": true,
|
||||||
|
"internal_tracker": {
|
||||||
|
"enable_time_tracker": true,
|
||||||
|
"allow_only_contributors_to_track_time": true,
|
||||||
|
"enable_issue_dependencies": true
|
||||||
|
},
|
||||||
|
"has_wiki": true,
|
||||||
|
"has_pull_requests": true,
|
||||||
|
"has_projects": true,
|
||||||
|
"has_releases": true,
|
||||||
|
"has_packages": false,
|
||||||
|
"has_actions": false,
|
||||||
|
"ignore_whitespace_conflicts": false,
|
||||||
|
"allow_merge_commits": true,
|
||||||
|
"allow_rebase": true,
|
||||||
|
"allow_rebase_explicit": true,
|
||||||
|
"allow_squash_merge": true,
|
||||||
|
"allow_rebase_update": true,
|
||||||
|
"default_delete_branch_after_merge": false,
|
||||||
|
"default_merge_style": "merge",
|
||||||
|
"default_allow_maintainer_edit": false,
|
||||||
|
"avatar_url": "",
|
||||||
|
"internal": false,
|
||||||
|
"mirror_interval": "",
|
||||||
|
"mirror_updated": "0001-01-01T00:00:00Z",
|
||||||
|
"repo_transfer": null
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 425,
|
||||||
|
"owner": {
|
||||||
|
"id": 105,
|
||||||
|
"login": "yuzhixiao",
|
||||||
|
"login_name": "",
|
||||||
|
"full_name": "",
|
||||||
|
"email": "892956301@qq.com",
|
||||||
|
"avatar_url": "http://172.16.1.12/avatar/4f1b8997ca3509f1b3582386a1ce36ad",
|
||||||
|
"language": "",
|
||||||
|
"is_admin": false,
|
||||||
|
"last_login": "0001-01-01T00:00:00Z",
|
||||||
|
"created": "2023-11-17T09:43:39+08:00",
|
||||||
|
"restricted": false,
|
||||||
|
"active": false,
|
||||||
|
"prohibit_login": false,
|
||||||
|
"location": "",
|
||||||
|
"website": "",
|
||||||
|
"description": "",
|
||||||
|
"visibility": "public",
|
||||||
|
"followers_count": 0,
|
||||||
|
"following_count": 0,
|
||||||
|
"starred_repos_count": 0,
|
||||||
|
"username": "yuzhixiao"
|
||||||
|
},
|
||||||
|
"name": "Framework",
|
||||||
|
"full_name": "yuzhixiao/Framework",
|
||||||
|
"description": "框架",
|
||||||
|
"empty": false,
|
||||||
|
"private": false,
|
||||||
|
"fork": false,
|
||||||
|
"template": false,
|
||||||
|
"parent": null,
|
||||||
|
"mirror": false,
|
||||||
|
"size": 18525,
|
||||||
|
"language": "C#",
|
||||||
|
"languages_url": "http://172.16.1.12/api/v1/repos/yuzhixiao/Framework/languages",
|
||||||
|
"html_url": "http://172.16.1.12/yuzhixiao/Framework",
|
||||||
|
"url": "http://172.16.1.12/api/v1/repos/yuzhixiao/Framework",
|
||||||
|
"link": "",
|
||||||
|
"ssh_url": "LGZN@172.16.1.12:yuzhixiao/Framework.git",
|
||||||
|
"clone_url": "http://172.16.1.12/yuzhixiao/Framework.git",
|
||||||
|
"original_url": "",
|
||||||
|
"website": "",
|
||||||
|
"stars_count": 0,
|
||||||
|
"forks_count": 0,
|
||||||
|
"watchers_count": 1,
|
||||||
|
"open_issues_count": 0,
|
||||||
|
"open_pr_counter": 0,
|
||||||
|
"release_counter": 0,
|
||||||
|
"default_branch": "main",
|
||||||
|
"archived": false,
|
||||||
|
"created_at": "2024-05-27T17:21:32+08:00",
|
||||||
|
"updated_at": "2025-03-25T17:39:46+08:00",
|
||||||
|
"archived_at": "1970-01-01T08:00:00+08:00",
|
||||||
|
"permissions": {
|
||||||
|
"admin": false,
|
||||||
|
"push": false,
|
||||||
|
"pull": true
|
||||||
|
},
|
||||||
|
"has_issues": true,
|
||||||
|
"internal_tracker": {
|
||||||
|
"enable_time_tracker": true,
|
||||||
|
"allow_only_contributors_to_track_time": true,
|
||||||
|
"enable_issue_dependencies": true
|
||||||
|
},
|
||||||
|
"has_wiki": true,
|
||||||
|
"has_pull_requests": true,
|
||||||
|
"has_projects": true,
|
||||||
|
"has_releases": true,
|
||||||
|
"has_packages": true,
|
||||||
|
"has_actions": false,
|
||||||
|
"ignore_whitespace_conflicts": false,
|
||||||
|
"allow_merge_commits": true,
|
||||||
|
"allow_rebase": true,
|
||||||
|
"allow_rebase_explicit": true,
|
||||||
|
"allow_squash_merge": true,
|
||||||
|
"allow_rebase_update": true,
|
||||||
|
"default_delete_branch_after_merge": false,
|
||||||
|
"default_merge_style": "merge",
|
||||||
|
"default_allow_maintainer_edit": false,
|
||||||
|
"avatar_url": "",
|
||||||
|
"internal": false,
|
||||||
|
"mirror_interval": "",
|
||||||
|
"mirror_updated": "0001-01-01T00:00:00Z",
|
||||||
|
"repo_transfer": null
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 515,
|
||||||
|
"owner": {
|
||||||
|
"id": 105,
|
||||||
|
"login": "yuzhixiao",
|
||||||
|
"login_name": "",
|
||||||
|
"full_name": "",
|
||||||
|
"email": "892956301@qq.com",
|
||||||
|
"avatar_url": "http://172.16.1.12/avatar/4f1b8997ca3509f1b3582386a1ce36ad",
|
||||||
|
"language": "",
|
||||||
|
"is_admin": false,
|
||||||
|
"last_login": "0001-01-01T00:00:00Z",
|
||||||
|
"created": "2023-11-17T09:43:39+08:00",
|
||||||
|
"restricted": false,
|
||||||
|
"active": false,
|
||||||
|
"prohibit_login": false,
|
||||||
|
"location": "",
|
||||||
|
"website": "",
|
||||||
|
"description": "",
|
||||||
|
"visibility": "public",
|
||||||
|
"followers_count": 0,
|
||||||
|
"following_count": 0,
|
||||||
|
"starred_repos_count": 0,
|
||||||
|
"username": "yuzhixiao"
|
||||||
|
},
|
||||||
|
"name": "ICT_ToolsForm",
|
||||||
|
"full_name": "yuzhixiao/ICT_ToolsForm",
|
||||||
|
"description": "ICT_ToolsForm",
|
||||||
|
"empty": false,
|
||||||
|
"private": false,
|
||||||
|
"fork": false,
|
||||||
|
"template": false,
|
||||||
|
"parent": null,
|
||||||
|
"mirror": false,
|
||||||
|
"size": 4765903,
|
||||||
|
"language": "C#",
|
||||||
|
"languages_url": "http://172.16.1.12/api/v1/repos/yuzhixiao/ICT_ToolsForm/languages",
|
||||||
|
"html_url": "http://172.16.1.12/yuzhixiao/ICT_ToolsForm",
|
||||||
|
"url": "http://172.16.1.12/api/v1/repos/yuzhixiao/ICT_ToolsForm",
|
||||||
|
"link": "",
|
||||||
|
"ssh_url": "LGZN@172.16.1.12:yuzhixiao/ICT_ToolsForm.git",
|
||||||
|
"clone_url": "http://172.16.1.12/yuzhixiao/ICT_ToolsForm.git",
|
||||||
|
"original_url": "",
|
||||||
|
"website": "",
|
||||||
|
"stars_count": 0,
|
||||||
|
"forks_count": 0,
|
||||||
|
"watchers_count": 1,
|
||||||
|
"open_issues_count": 0,
|
||||||
|
"open_pr_counter": 0,
|
||||||
|
"release_counter": 0,
|
||||||
|
"default_branch": "main",
|
||||||
|
"archived": false,
|
||||||
|
"created_at": "2024-10-30T09:49:36+08:00",
|
||||||
|
"updated_at": "2025-04-17T18:02:42+08:00",
|
||||||
|
"archived_at": "1970-01-01T08:00:00+08:00",
|
||||||
|
"permissions": {
|
||||||
|
"admin": false,
|
||||||
|
"push": false,
|
||||||
|
"pull": true
|
||||||
|
},
|
||||||
|
"has_issues": true,
|
||||||
|
"internal_tracker": {
|
||||||
|
"enable_time_tracker": true,
|
||||||
|
"allow_only_contributors_to_track_time": true,
|
||||||
|
"enable_issue_dependencies": true
|
||||||
|
},
|
||||||
|
"has_wiki": true,
|
||||||
|
"has_pull_requests": true,
|
||||||
|
"has_projects": true,
|
||||||
|
"has_releases": true,
|
||||||
|
"has_packages": true,
|
||||||
|
"has_actions": false,
|
||||||
|
"ignore_whitespace_conflicts": false,
|
||||||
|
"allow_merge_commits": true,
|
||||||
|
"allow_rebase": true,
|
||||||
|
"allow_rebase_explicit": true,
|
||||||
|
"allow_squash_merge": true,
|
||||||
|
"allow_rebase_update": true,
|
||||||
|
"default_delete_branch_after_merge": false,
|
||||||
|
"default_merge_style": "merge",
|
||||||
|
"default_allow_maintainer_edit": true,
|
||||||
|
"avatar_url": "",
|
||||||
|
"internal": false,
|
||||||
|
"mirror_interval": "",
|
||||||
|
"mirror_updated": "0001-01-01T00:00:00Z",
|
||||||
|
"repo_transfer": null
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 1991,
|
||||||
|
"owner": {
|
||||||
|
"id": 105,
|
||||||
|
"login": "yuzhixiao",
|
||||||
|
"login_name": "",
|
||||||
|
"full_name": "",
|
||||||
|
"email": "892956301@qq.com",
|
||||||
|
"avatar_url": "http://172.16.1.12/avatar/4f1b8997ca3509f1b3582386a1ce36ad",
|
||||||
|
"language": "",
|
||||||
|
"is_admin": false,
|
||||||
|
"last_login": "0001-01-01T00:00:00Z",
|
||||||
|
"created": "2023-11-17T09:43:39+08:00",
|
||||||
|
"restricted": false,
|
||||||
|
"active": false,
|
||||||
|
"prohibit_login": false,
|
||||||
|
"location": "",
|
||||||
|
"website": "",
|
||||||
|
"description": "",
|
||||||
|
"visibility": "public",
|
||||||
|
"followers_count": 0,
|
||||||
|
"following_count": 0,
|
||||||
|
"starred_repos_count": 0,
|
||||||
|
"username": "yuzhixiao"
|
||||||
|
},
|
||||||
|
"name": "AssetPro",
|
||||||
|
"full_name": "yuzhixiao/AssetPro",
|
||||||
|
"description": "",
|
||||||
|
"empty": false,
|
||||||
|
"private": false,
|
||||||
|
"fork": false,
|
||||||
|
"template": false,
|
||||||
|
"parent": null,
|
||||||
|
"mirror": false,
|
||||||
|
"size": 198356,
|
||||||
|
"language": "TypeScript",
|
||||||
|
"languages_url": "http://172.16.1.12/api/v1/repos/yuzhixiao/AssetPro/languages",
|
||||||
|
"html_url": "http://172.16.1.12/yuzhixiao/AssetPro",
|
||||||
|
"url": "http://172.16.1.12/api/v1/repos/yuzhixiao/AssetPro",
|
||||||
|
"link": "",
|
||||||
|
"ssh_url": "LGZN@172.16.1.12:yuzhixiao/AssetPro.git",
|
||||||
|
"clone_url": "http://172.16.1.12/yuzhixiao/AssetPro.git",
|
||||||
|
"original_url": "",
|
||||||
|
"website": "",
|
||||||
|
"stars_count": 0,
|
||||||
|
"forks_count": 0,
|
||||||
|
"watchers_count": 1,
|
||||||
|
"open_issues_count": 0,
|
||||||
|
"open_pr_counter": 0,
|
||||||
|
"release_counter": 0,
|
||||||
|
"default_branch": "main",
|
||||||
|
"archived": false,
|
||||||
|
"created_at": "2026-01-08T13:50:01+08:00",
|
||||||
|
"updated_at": "2026-01-08T13:56:13+08:00",
|
||||||
|
"archived_at": "1970-01-01T08:00:00+08:00",
|
||||||
|
"permissions": {
|
||||||
|
"admin": false,
|
||||||
|
"push": false,
|
||||||
|
"pull": true
|
||||||
|
},
|
||||||
|
"has_issues": true,
|
||||||
|
"internal_tracker": {
|
||||||
|
"enable_time_tracker": true,
|
||||||
|
"allow_only_contributors_to_track_time": true,
|
||||||
|
"enable_issue_dependencies": true
|
||||||
|
},
|
||||||
|
"has_wiki": true,
|
||||||
|
"has_pull_requests": true,
|
||||||
|
"has_projects": true,
|
||||||
|
"has_releases": true,
|
||||||
|
"has_packages": true,
|
||||||
|
"has_actions": false,
|
||||||
|
"ignore_whitespace_conflicts": false,
|
||||||
|
"allow_merge_commits": true,
|
||||||
|
"allow_rebase": true,
|
||||||
|
"allow_rebase_explicit": true,
|
||||||
|
"allow_squash_merge": true,
|
||||||
|
"allow_rebase_update": true,
|
||||||
|
"default_delete_branch_after_merge": false,
|
||||||
|
"default_merge_style": "merge",
|
||||||
|
"default_allow_maintainer_edit": false,
|
||||||
|
"avatar_url": "",
|
||||||
|
"internal": false,
|
||||||
|
"mirror_interval": "",
|
||||||
|
"mirror_updated": "0001-01-01T00:00:00Z",
|
||||||
|
"repo_transfer": null
|
||||||
|
}
|
||||||
|
]
|
||||||
Loading…
Reference in New Issue