update: urldb

This commit is contained in:
Kerwin
2025-07-18 09:42:07 +08:00
parent dbc73b7491
commit 82390426ad
55 changed files with 139 additions and 139 deletions

View File

@@ -16,7 +16,7 @@
### 1. Fork 项目 ### 1. Fork 项目
1. 访问 [GitHub 仓库](https://github.com/ctwj/panResManage) 1. 访问 [GitHub 仓库](https://github.com/ctwj/urldb)
2. 点击右上角的 Fork 按钮 2. 点击右上角的 Fork 按钮
3. 选择您的 GitHub 账户 3. 选择您的 GitHub 账户
@@ -30,7 +30,7 @@ cd resManage
### 3. 添加上游仓库 ### 3. 添加上游仓库
```bash ```bash
git remote add upstream https://github.com/ctwj/panResManage.git git remote add upstream https://github.com/ctwj/urldb.git
``` ```
### 4. 创建功能分支 ### 4. 创建功能分支

View File

@@ -1,4 +1,4 @@
# 🚀 panResManage - 网盘资源管理系统 # 🚀 urldb - 网盘资源数据库
<div align="center> <div align="center>
@@ -8,7 +8,7 @@
![License](https://img.shields.io/badge/License-GPL%20v3-blue.svg) ![License](https://img.shields.io/badge/License-GPL%20v3-blue.svg)
![PostgreSQL](https://img.shields.io/badge/PostgreSQL-15+-336791go=postgresql&logoColor=white) ![PostgreSQL](https://img.shields.io/badge/PostgreSQL-15+-336791go=postgresql&logoColor=white)
**一个现代化的网盘资源管理系统,支持多网盘自动化转存分享** **一个现代化的网盘资源数据库,支持多网盘自动化转存分享**
🌐 [在线演示](#) | 📖 [文档](#) | 🐛 问题反馈](#) | ⭐ [给个星标](#) 🌐 [在线演示](#) | 📖 [文档](#) | 🐛 问题反馈](#) | ⭐ [给个星标](#)
@@ -90,8 +90,8 @@
#### 使用启动脚本(最简单) #### 使用启动脚本(最简单)
```bash ```bash
# 克隆项目 # 克隆项目
git clone https://github.com/ctwj/panResManage.git git clone https://github.com/ctwj/urldb.git
cd panResManage cd urldb
# 使用启动脚本 # 使用启动脚本
./docker-start.sh ./docker-start.sh
@@ -100,8 +100,8 @@ cd panResManage
#### 手动启动 #### 手动启动
```bash ```bash
# 克隆项目 # 克隆项目
git clone https://github.com/ctwj/panResManage.git git clone https://github.com/ctwj/urldb.git
cd panResManage cd urldb
# 使用 Docker Compose 启动 # 使用 Docker Compose 启动
docker compose up --build -d docker compose up --build -d
@@ -115,8 +115,8 @@ docker compose up --build -d
#### 1. 克隆项目 #### 1. 克隆项目
```bash ```bash
git clone https://github.com/ctwj/panResManage.git git clone https://github.com/ctwj/urldb.git
cd panResManage cd urldb
``` ```
#### 2. 后端设置 #### 2. 后端设置
@@ -284,8 +284,8 @@ SOFTWARE.
## 📞 联系我们 ## 📞 联系我们
- **项目地址**: [https://github.com/ctwj/panResManage](https://github.com/ctwj/panResManage) - **项目地址**: [https://github.com/ctwj/urldb](https://github.com/ctwj/urldb)
- **问题反馈**: [Issues](https://github.com/ctwj/panResManage/issues) - **问题反馈**: [Issues](https://github.com/ctwj/urldb/issues)
- **邮箱**: 510199617@qq.com - **邮箱**: 510199617@qq.com
--- ---

View File

@@ -4,8 +4,8 @@ import (
"fmt" "fmt"
"os" "os"
"github.com/ctwj/panResManage/db/entity" "github.com/ctwj/urldb/db/entity"
"github.com/ctwj/panResManage/utils" "github.com/ctwj/urldb/utils"
"gorm.io/driver/postgres" "gorm.io/driver/postgres"
"gorm.io/gorm" "gorm.io/gorm"
"gorm.io/gorm/logger" "gorm.io/gorm/logger"

View File

@@ -1,8 +1,8 @@
package converter package converter
import ( import (
"github.com/ctwj/panResManage/db/dto" "github.com/ctwj/urldb/db/dto"
"github.com/ctwj/panResManage/db/entity" "github.com/ctwj/urldb/db/entity"
) )
// ToResourceResponse 将Resource实体转换为ResourceResponse // ToResourceResponse 将Resource实体转换为ResourceResponse

View File

@@ -1,8 +1,8 @@
package converter package converter
import ( import (
"github.com/ctwj/panResManage/db/dto" "github.com/ctwj/urldb/db/dto"
"github.com/ctwj/panResManage/db/entity" "github.com/ctwj/urldb/db/entity"
) )
// HotDramaToResponse 将热播剧实体转换为响应DTO // HotDramaToResponse 将热播剧实体转换为响应DTO

View File

@@ -1,8 +1,8 @@
package converter package converter
import ( import (
"github.com/ctwj/panResManage/db/dto" "github.com/ctwj/urldb/db/dto"
"github.com/ctwj/panResManage/db/entity" "github.com/ctwj/urldb/db/entity"
) )
// ToSearchStatResponse 将SearchStat实体转换为SearchStatResponse // ToSearchStatResponse 将SearchStat实体转换为SearchStatResponse

View File

@@ -3,8 +3,8 @@ package converter
import ( import (
"time" "time"
"github.com/ctwj/panResManage/db/dto" "github.com/ctwj/urldb/db/dto"
"github.com/ctwj/panResManage/db/entity" "github.com/ctwj/urldb/db/entity"
) )
// SystemConfigToResponse 将系统配置实体转换为响应DTO // SystemConfigToResponse 将系统配置实体转换为响应DTO

View File

@@ -1,8 +1,8 @@
package converter package converter
import ( import (
"github.com/ctwj/panResManage/db/dto" "github.com/ctwj/urldb/db/dto"
"github.com/ctwj/panResManage/db/entity" "github.com/ctwj/urldb/db/entity"
) )
// ToUserResponse 将User实体转换为UserResponse // ToUserResponse 将User实体转换为UserResponse

View File

@@ -11,7 +11,7 @@ type SystemConfig struct {
UpdatedAt time.Time `json:"updated_at"` UpdatedAt time.Time `json:"updated_at"`
// SEO 配置 // SEO 配置
SiteTitle string `json:"site_title" gorm:"size:200;not null;default:'网盘资源管理系统'"` SiteTitle string `json:"site_title" gorm:"size:200;not null;default:'网盘资源数据库'"`
SiteDescription string `json:"site_description" gorm:"size:500"` SiteDescription string `json:"site_description" gorm:"size:500"`
Keywords string `json:"keywords" gorm:"size:500"` Keywords string `json:"keywords" gorm:"size:500"`
Author string `json:"author" gorm:"size:100"` Author string `json:"author" gorm:"size:100"`

View File

@@ -1,7 +1,7 @@
package repo package repo
import ( import (
"github.com/ctwj/panResManage/db/entity" "github.com/ctwj/urldb/db/entity"
"gorm.io/gorm" "gorm.io/gorm"
) )

View File

@@ -1,7 +1,7 @@
package repo package repo
import ( import (
"github.com/ctwj/panResManage/db/entity" "github.com/ctwj/urldb/db/entity"
"gorm.io/gorm" "gorm.io/gorm"
) )

View File

@@ -1,7 +1,7 @@
package repo package repo
import ( import (
"github.com/ctwj/panResManage/db/entity" "github.com/ctwj/urldb/db/entity"
"gorm.io/gorm" "gorm.io/gorm"
) )

View File

@@ -1,7 +1,7 @@
package repo package repo
import ( import (
"github.com/ctwj/panResManage/db/entity" "github.com/ctwj/urldb/db/entity"
"gorm.io/gorm" "gorm.io/gorm"
) )

View File

@@ -3,7 +3,7 @@ package repo
import ( import (
"time" "time"
"github.com/ctwj/panResManage/db/entity" "github.com/ctwj/urldb/db/entity"
"gorm.io/gorm" "gorm.io/gorm"
) )

View File

@@ -5,7 +5,7 @@ import (
"time" "time"
"github.com/ctwj/panResManage/db/entity" "github.com/ctwj/urldb/db/entity"
"gorm.io/gorm" "gorm.io/gorm"
) )

View File

@@ -3,7 +3,7 @@ package repo
import ( import (
"time" "time"
"github.com/ctwj/panResManage/db/entity" "github.com/ctwj/urldb/db/entity"
"gorm.io/gorm" "gorm.io/gorm"
) )

View File

@@ -1,7 +1,7 @@
package repo package repo
import ( import (
"github.com/ctwj/panResManage/db/entity" "github.com/ctwj/urldb/db/entity"
"gorm.io/gorm" "gorm.io/gorm"
) )
@@ -57,11 +57,11 @@ func (r *SystemConfigRepositoryImpl) GetOrCreateDefault() (*entity.SystemConfig,
if err != nil { if err != nil {
// 创建默认配置 // 创建默认配置
defaultConfig := &entity.SystemConfig{ defaultConfig := &entity.SystemConfig{
SiteTitle: "网盘资源管理系统", SiteTitle: "网盘资源数据库",
SiteDescription: "专业的网盘资源管理系统", SiteDescription: "专业的网盘资源数据库",
Keywords: "网盘,资源管理,文件分享", Keywords: "网盘,资源管理,文件分享",
Author: "系统管理员", Author: "系统管理员",
Copyright: "© 2024 网盘资源管理系统", Copyright: "© 2024 网盘资源数据库",
AutoProcessReadyResources: false, AutoProcessReadyResources: false,
AutoProcessInterval: 30, AutoProcessInterval: 30,
PageSize: 100, PageSize: 100,

View File

@@ -1,7 +1,7 @@
package repo package repo
import ( import (
"github.com/ctwj/panResManage/db/entity" "github.com/ctwj/urldb/db/entity"
"gorm.io/gorm" "gorm.io/gorm"
) )

View File

@@ -1,7 +1,7 @@
package repo package repo
import ( import (
"github.com/ctwj/panResManage/db/entity" "github.com/ctwj/urldb/db/entity"
"gorm.io/gorm" "gorm.io/gorm"
) )

2
go.mod
View File

@@ -1,4 +1,4 @@
module github.com/ctwj/panResManage module github.com/ctwj/urldb
go 1.23.0 go 1.23.0

View File

@@ -1,7 +1,7 @@
package handlers package handlers
import ( import (
"github.com/ctwj/panResManage/db/repo" "github.com/ctwj/urldb/db/repo"
) )
var repoManager *repo.RepositoryManager var repoManager *repo.RepositoryManager

View File

@@ -4,9 +4,9 @@ import (
"net/http" "net/http"
"strconv" "strconv"
"github.com/ctwj/panResManage/db/converter" "github.com/ctwj/urldb/db/converter"
"github.com/ctwj/panResManage/db/dto" "github.com/ctwj/urldb/db/dto"
"github.com/ctwj/panResManage/db/entity" "github.com/ctwj/urldb/db/entity"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
) )

View File

@@ -5,10 +5,10 @@ import (
"strconv" "strconv"
"strings" "strings"
panutils "github.com/ctwj/panResManage/common" panutils "github.com/ctwj/urldb/common"
"github.com/ctwj/panResManage/db/converter" "github.com/ctwj/urldb/db/converter"
"github.com/ctwj/panResManage/db/dto" "github.com/ctwj/urldb/db/dto"
"github.com/ctwj/panResManage/db/entity" "github.com/ctwj/urldb/db/entity"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
) )

View File

@@ -4,10 +4,10 @@ import (
"net/http" "net/http"
"strconv" "strconv"
"github.com/ctwj/panResManage/db/converter" "github.com/ctwj/urldb/db/converter"
"github.com/ctwj/panResManage/db/dto" "github.com/ctwj/urldb/db/dto"
"github.com/ctwj/panResManage/db/entity" "github.com/ctwj/urldb/db/entity"
"github.com/ctwj/panResManage/db/repo" "github.com/ctwj/urldb/db/repo"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
) )

View File

@@ -4,9 +4,9 @@ import (
"net/http" "net/http"
"strconv" "strconv"
"github.com/ctwj/panResManage/db/converter" "github.com/ctwj/urldb/db/converter"
"github.com/ctwj/panResManage/db/dto" "github.com/ctwj/urldb/db/dto"
"github.com/ctwj/panResManage/db/entity" "github.com/ctwj/urldb/db/entity"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
) )

View File

@@ -5,8 +5,8 @@ import (
"strconv" "strconv"
"github.com/ctwj/panResManage/db/converter" "github.com/ctwj/urldb/db/converter"
"github.com/ctwj/panResManage/db/dto" "github.com/ctwj/urldb/db/dto"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
) )

View File

@@ -5,9 +5,9 @@ import (
"strconv" "strconv"
"strings" "strings"
"github.com/ctwj/panResManage/db/converter" "github.com/ctwj/urldb/db/converter"
"github.com/ctwj/panResManage/db/dto" "github.com/ctwj/urldb/db/dto"
"github.com/ctwj/panResManage/db/entity" "github.com/ctwj/urldb/db/entity"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
) )

View File

@@ -4,9 +4,9 @@ import (
"net/http" "net/http"
"strconv" "strconv"
"github.com/ctwj/panResManage/db/converter" "github.com/ctwj/urldb/db/converter"
"github.com/ctwj/panResManage/db/dto" "github.com/ctwj/urldb/db/dto"
"github.com/ctwj/panResManage/db/entity" "github.com/ctwj/urldb/db/entity"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
) )

View File

@@ -3,7 +3,7 @@ package handlers
import ( import (
"net/http" "net/http"
"github.com/ctwj/panResManage/utils" "github.com/ctwj/urldb/utils"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
) )

View File

@@ -4,8 +4,8 @@ import (
"net/http" "net/http"
"strconv" "strconv"
"github.com/ctwj/panResManage/db/converter" "github.com/ctwj/urldb/db/converter"
"github.com/ctwj/panResManage/db/dto" "github.com/ctwj/urldb/db/dto"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
) )

View File

@@ -4,8 +4,8 @@ import (
"runtime" "runtime"
"time" "time"
"github.com/ctwj/panResManage/db" "github.com/ctwj/urldb/db"
"github.com/ctwj/panResManage/db/entity" "github.com/ctwj/urldb/db/entity"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
) )

View File

@@ -3,10 +3,10 @@ package handlers
import ( import (
"net/http" "net/http"
"github.com/ctwj/panResManage/db/converter" "github.com/ctwj/urldb/db/converter"
"github.com/ctwj/panResManage/db/dto" "github.com/ctwj/urldb/db/dto"
"github.com/ctwj/panResManage/db/repo" "github.com/ctwj/urldb/db/repo"
"github.com/ctwj/panResManage/utils" "github.com/ctwj/urldb/utils"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
) )

View File

@@ -4,10 +4,10 @@ import (
"net/http" "net/http"
"strconv" "strconv"
"github.com/ctwj/panResManage/db/converter" "github.com/ctwj/urldb/db/converter"
"github.com/ctwj/panResManage/db/dto" "github.com/ctwj/urldb/db/dto"
"github.com/ctwj/panResManage/db/entity" "github.com/ctwj/urldb/db/entity"
"github.com/ctwj/panResManage/utils" "github.com/ctwj/urldb/utils"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
) )

View File

@@ -4,10 +4,10 @@ import (
"net/http" "net/http"
"strconv" "strconv"
"github.com/ctwj/panResManage/db/converter" "github.com/ctwj/urldb/db/converter"
"github.com/ctwj/panResManage/db/dto" "github.com/ctwj/urldb/db/dto"
"github.com/ctwj/panResManage/db/entity" "github.com/ctwj/urldb/db/entity"
"github.com/ctwj/panResManage/middleware" "github.com/ctwj/urldb/middleware"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
) )

10
main.go
View File

@@ -4,12 +4,12 @@ import (
"log" "log"
"os" "os"
"github.com/ctwj/panResManage/utils" "github.com/ctwj/urldb/utils"
"github.com/ctwj/panResManage/db" "github.com/ctwj/urldb/db"
"github.com/ctwj/panResManage/db/repo" "github.com/ctwj/urldb/db/repo"
"github.com/ctwj/panResManage/handlers" "github.com/ctwj/urldb/handlers"
"github.com/ctwj/panResManage/middleware" "github.com/ctwj/urldb/middleware"
"github.com/gin-contrib/cors" "github.com/gin-contrib/cors"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"

View File

@@ -5,8 +5,8 @@ import (
"strings" "strings"
"time" "time"
"github.com/ctwj/panResManage/db/entity" "github.com/ctwj/urldb/db/entity"
"github.com/ctwj/panResManage/utils" "github.com/ctwj/urldb/utils"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
"github.com/golang-jwt/jwt/v5" "github.com/golang-jwt/jwt/v5"

View File

@@ -6,7 +6,7 @@ import (
"net/http" "net/http"
"time" "time"
"github.com/ctwj/panResManage/utils" "github.com/ctwj/urldb/utils"
) )
// responseWriter 包装http.ResponseWriter以捕获响应状态码和内容 // responseWriter 包装http.ResponseWriter以捕获响应状态码和内容

View File

@@ -3,7 +3,7 @@ package middleware
import ( import (
"net/http" "net/http"
"github.com/ctwj/panResManage/db/repo" "github.com/ctwj/urldb/db/repo"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
) )

View File

@@ -3,7 +3,7 @@ package utils
import ( import (
"sync" "sync"
"github.com/ctwj/panResManage/db/repo" "github.com/ctwj/urldb/db/repo"
) )
// GlobalScheduler 全局调度器管理器 // GlobalScheduler 全局调度器管理器

View File

@@ -6,10 +6,10 @@ import (
"sync" "sync"
"time" "time"
panutils "github.com/ctwj/panResManage/common" panutils "github.com/ctwj/urldb/common"
commonutils "github.com/ctwj/panResManage/common/utils" commonutils "github.com/ctwj/urldb/common/utils"
"github.com/ctwj/panResManage/db/entity" "github.com/ctwj/urldb/db/entity"
"github.com/ctwj/panResManage/db/repo" "github.com/ctwj/urldb/db/repo"
) )
// Scheduler 定时任务管理器 // Scheduler 定时任务管理器

View File

@@ -40,16 +40,16 @@ export const useSeo = () => {
if (systemConfig.value?.site_title) { if (systemConfig.value?.site_title) {
return `${systemConfig.value.site_title} - ${pageTitle}` return `${systemConfig.value.site_title} - ${pageTitle}`
} }
return `${pageTitle} - 网盘资源管理系统` return `${pageTitle} - 网盘资源数据库`
} }
// 生成页面元数据 // 生成页面元数据
const generateMeta = (customMeta?: Record<string, string>) => { const generateMeta = (customMeta?: Record<string, string>) => {
const defaultMeta = { const defaultMeta = {
description: systemConfig.value?.site_description || '专业的网盘资源管理系统', description: systemConfig.value?.site_description || '专业的网盘资源数据库',
keywords: systemConfig.value?.keywords || '网盘,资源管理,文件分享', keywords: systemConfig.value?.keywords || '网盘,资源管理,文件分享',
author: systemConfig.value?.author || '系统管理员', author: systemConfig.value?.author || '系统管理员',
copyright: systemConfig.value?.copyright || '© 2024 网盘资源管理系统' copyright: systemConfig.value?.copyright || '© 2024 网盘资源数据库'
} }
return { return {

View File

@@ -36,11 +36,11 @@ export default defineNuxtConfig({
], ],
app: { app: {
head: { head: {
title: '开源网盘资源管理系统', title: '开源网盘资源数据库',
meta: [ meta: [
{ charset: 'utf-8' }, { charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' }, { name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ name: 'description', content: '开源网盘资源管理系统 - 一个现代化的资源管理系统' } { name: 'description', content: '开源网盘资源数据库 - 一个现代化的资源管理系统' }
], ],
link: [ link: [
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' } { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }

View File

@@ -128,7 +128,7 @@ const handleCancel = () => {
// 设置页面标题 // 设置页面标题
useHead({ useHead({
title: '添加资源 - 网盘资源管理系统' title: '添加资源 - 网盘资源数据库'
}) })
</script> </script>

View File

@@ -19,7 +19,7 @@
<div class="flex justify-between items-center mb-4"> <div class="flex justify-between items-center mb-4">
<h1 class="text-2xl sm:text-3xl font-bold"> <h1 class="text-2xl sm:text-3xl font-bold">
<NuxtLink to="/" class="text-white hover:text-gray-200 dark:hover:text-gray-300 no-underline"> <NuxtLink to="/" class="text-white hover:text-gray-200 dark:hover:text-gray-300 no-underline">
{{ systemConfig?.site_title || '网盘资源管理系统' }} {{ systemConfig?.site_title || '网盘资源数据库' }}
</NuxtLink> </NuxtLink>
</h1> </h1>
<div class="flex items-center gap-4"> <div class="flex items-center gap-4">
@@ -320,11 +320,11 @@ const systemConfig = ref(null) // 添加系统配置状态
// 页面元数据 - 移到变量声明之后 // 页面元数据 - 移到变量声明之后
useHead({ useHead({
title: () => systemConfig.value?.site_title ? `${systemConfig.value.site_title} - 管理后台` : '管理后台 - 网盘资源管理系统', title: () => systemConfig.value?.site_title ? `${systemConfig.value.site_title} - 管理后台` : '管理后台 - 网盘资源数据库',
meta: [ meta: [
{ {
name: 'description', name: 'description',
content: () => systemConfig.value?.site_description || '网盘资源管理系统管理后台' content: () => systemConfig.value?.site_description || '网盘资源数据库管理后台'
}, },
{ {
name: 'keywords', name: 'keywords',

View File

@@ -7,7 +7,7 @@
<div class="bg-slate-800 dark:bg-gray-800 text-white dark:text-gray-100 rounded-lg shadow-lg p-4 sm:p-8 mb-4 sm:mb-8 text-center relative"> <div class="bg-slate-800 dark:bg-gray-800 text-white dark:text-gray-100 rounded-lg shadow-lg p-4 sm:p-8 mb-4 sm:mb-8 text-center relative">
<h1 class="text-2xl sm:text-3xl font-bold mb-4"> <h1 class="text-2xl sm:text-3xl font-bold mb-4">
<a href="/" class="text-white hover:text-gray-200 dark:hover:text-gray-300 no-underline"> <a href="/" class="text-white hover:text-gray-200 dark:hover:text-gray-300 no-underline">
网盘资源管理系统 - API文档 网盘资源数据库 - API文档
</a> </a>
</h1> </h1>
<p class="text-gray-300 max-w-2xl mx-auto">公开API接口文档支持资源添加搜索和热门剧获取等功能</p> <p class="text-gray-300 max-w-2xl mx-auto">公开API接口文档支持资源添加搜索和热门剧获取等功能</p>
@@ -350,7 +350,7 @@ curl -X GET "http://localhost:8080/api/public/hot-dramas?page=1&page_size=5" \
<footer class="mt-auto py-6 border-t border-gray-200 dark:border-gray-700 bg-white dark:bg-gray-800"> <footer class="mt-auto py-6 border-t border-gray-200 dark:border-gray-700 bg-white dark:bg-gray-800">
<div class="max-w-7xl mx-auto text-center text-gray-600 dark:text-gray-400 text-sm px-3 sm:px-5"> <div class="max-w-7xl mx-auto text-center text-gray-600 dark:text-gray-400 text-sm px-3 sm:px-5">
<p class="mb-2">本站内容由网络爬虫自动抓取本站不储存复制传播任何文件仅作个人公益学习请在获取后24小内删除!!!</p> <p class="mb-2">本站内容由网络爬虫自动抓取本站不储存复制传播任何文件仅作个人公益学习请在获取后24小内删除!!!</p>
<p>© 2025 网盘资源管理系统 By 老九</p> <p>© 2025 网盘资源数据库 By 老九</p>
</div> </div>
</footer> </footer>
</div> </div>
@@ -359,9 +359,9 @@ curl -X GET "http://localhost:8080/api/public/hot-dramas?page=1&page_size=5" \
<script setup> <script setup>
// 页面元数据 // 页面元数据
useHead({ useHead({
title: 'API文档 - 网盘资源管理系统', title: 'API文档 - 网盘资源数据库',
meta: [ meta: [
{ name: 'description', content: '网盘资源管理系统的公开API接口文档' }, { name: 'description', content: '网盘资源数据库的公开API接口文档' },
{ name: 'keywords', content: 'API,接口文档,网盘资源管理' } { name: 'keywords', content: 'API,接口文档,网盘资源管理' }
] ]
}) })

View File

@@ -300,7 +300,7 @@ const getAuthHeaders = () => {
// 页面元数据 // 页面元数据
useHead({ useHead({
title: '分类管理 - 网盘资源管理系统', title: '分类管理 - 网盘资源数据库',
meta: [ meta: [
{ name: 'description', content: '管理网盘资源分类' }, { name: 'description', content: '管理网盘资源分类' },
{ name: 'keywords', content: '分类管理,资源管理' } { name: 'keywords', content: '分类管理,资源管理' }

View File

@@ -201,7 +201,7 @@
<footer class="mt-auto py-6 border-t border-gray-200 dark:border-gray-700 bg-white dark:bg-gray-800"> <footer class="mt-auto py-6 border-t border-gray-200 dark:border-gray-700 bg-white dark:bg-gray-800">
<div class="max-w-7xl mx-auto text-center text-gray-600 dark:text-gray-400 text-sm px-3 sm:px-5"> <div class="max-w-7xl mx-auto text-center text-gray-600 dark:text-gray-400 text-sm px-3 sm:px-5">
<p class="mb-2">本站内容由网络爬虫自动抓取本站不储存复制传播任何文件仅作个人公益学习请在获取后24小内删除!!!</p> <p class="mb-2">本站内容由网络爬虫自动抓取本站不储存复制传播任何文件仅作个人公益学习请在获取后24小内删除!!!</p>
<p>© 2025 网盘资源管理系统 By 老九</p> <p>© 2025 网盘资源数据库 By 老九</p>
</div> </div>
</footer> </footer>
</div> </div>

View File

@@ -20,7 +20,7 @@
<div class="bg-slate-800 dark:bg-gray-800 text-white dark:text-gray-100 rounded-lg shadow-lg p-4 sm:p-8 mb-4 sm:mb-8 text-center relative"> <div class="bg-slate-800 dark:bg-gray-800 text-white dark:text-gray-100 rounded-lg shadow-lg p-4 sm:p-8 mb-4 sm:mb-8 text-center relative">
<h1 class="text-2xl sm:text-3xl font-bold mb-4"> <h1 class="text-2xl sm:text-3xl font-bold mb-4">
<a href="/" class="text-white hover:text-gray-200 dark:hover:text-gray-300 no-underline"> <a href="/" class="text-white hover:text-gray-200 dark:hover:text-gray-300 no-underline">
{{ systemConfig?.site_title || '网盘资源管理系统' }} {{ systemConfig?.site_title || '网盘资源数据库' }}
</a> </a>
</h1> </h1>
<nav class="mt-4 flex flex-col sm:flex-row justify-center gap-2 sm:gap-2 right-4 top-0 absolute"> <nav class="mt-4 flex flex-col sm:flex-row justify-center gap-2 sm:gap-2 right-4 top-0 absolute">
@@ -236,7 +236,7 @@
<footer class="mt-auto py-6 border-t border-gray-200 dark:border-gray-700 bg-white dark:bg-gray-800"> <footer class="mt-auto py-6 border-t border-gray-200 dark:border-gray-700 bg-white dark:bg-gray-800">
<div class="max-w-7xl mx-auto text-center text-gray-600 dark:text-gray-400 text-sm px-3 sm:px-5"> <div class="max-w-7xl mx-auto text-center text-gray-600 dark:text-gray-400 text-sm px-3 sm:px-5">
<p class="mb-2">本站内容由网络爬虫自动抓取本站不储存复制传播任何文件仅作个人公益学习请在获取后24小内删除!!!</p> <p class="mb-2">本站内容由网络爬虫自动抓取本站不储存复制传播任何文件仅作个人公益学习请在获取后24小内删除!!!</p>
<p>{{ systemConfig?.copyright || '© 2025 网盘资源管理系统 By 老九' }}</p> <p>{{ systemConfig?.copyright || '© 2025 网盘资源数据库 By 老九' }}</p>
</div> </div>
</footer> </footer>
</div> </div>
@@ -321,11 +321,11 @@ const safeLoading = computed(() => {
// 动态SEO配置 // 动态SEO配置
const seoConfig = computed(() => ({ const seoConfig = computed(() => ({
title: systemConfig.value?.site_title || '网盘资源管理系统', title: systemConfig.value?.site_title || '网盘资源数据库',
meta: [ meta: [
{ {
name: 'description', name: 'description',
content: systemConfig.value?.site_description || '专业的网盘资源管理系统' content: systemConfig.value?.site_description || '专业的网盘资源数据库'
}, },
{ {
name: 'keywords', name: 'keywords',
@@ -337,7 +337,7 @@ const seoConfig = computed(() => ({
}, },
{ {
name: 'copyright', name: 'copyright',
content: systemConfig.value?.copyright || '© 2024 网盘资源管理系统' content: systemConfig.value?.copyright || '© 2024 网盘资源数据库'
} }
] ]
})) }))
@@ -347,11 +347,11 @@ watchEffect(() => {
try { try {
if (systemConfig.value && systemConfig.value.site_title) { if (systemConfig.value && systemConfig.value.site_title) {
useHead({ useHead({
title: systemConfig.value.site_title || '网盘资源管理系统', title: systemConfig.value.site_title || '网盘资源数据库',
meta: [ meta: [
{ {
name: 'description', name: 'description',
content: systemConfig.value.site_description || '专业的网盘资源管理系统' content: systemConfig.value.site_description || '专业的网盘资源数据库'
}, },
{ {
name: 'keywords', name: 'keywords',
@@ -363,19 +363,19 @@ watchEffect(() => {
}, },
{ {
name: 'copyright', name: 'copyright',
content: systemConfig.value.copyright || '© 2024 网盘资源管理系统' content: systemConfig.value.copyright || '© 2024 网盘资源数据库'
} }
] ]
}) })
} else { } else {
// 默认SEO配置 // 默认SEO配置
useHead({ useHead({
title: '网盘资源管理系统', title: '网盘资源数据库',
meta: [ meta: [
{ name: 'description', content: '专业的网盘资源管理系统' }, { name: 'description', content: '专业的网盘资源数据库' },
{ name: 'keywords', content: '网盘,资源管理,文件分享' }, { name: 'keywords', content: '网盘,资源管理,文件分享' },
{ name: 'author', content: '系统管理员' }, { name: 'author', content: '系统管理员' },
{ name: 'copyright', content: '© 2024 网盘资源管理系统' } { name: 'copyright', content: '© 2024 网盘资源数据库' }
] ]
}) })
} }
@@ -383,12 +383,12 @@ watchEffect(() => {
console.error('设置页面元数据时出错:', error) console.error('设置页面元数据时出错:', error)
// 使用默认配置作为后备 // 使用默认配置作为后备
useHead({ useHead({
title: '网盘资源管理系统', title: '网盘资源数据库',
meta: [ meta: [
{ name: 'description', content: '专业的网盘资源管理系统' }, { name: 'description', content: '专业的网盘资源数据库' },
{ name: 'keywords', content: '网盘,资源管理,文件分享' }, { name: 'keywords', content: '网盘,资源管理,文件分享' },
{ name: 'author', content: '系统管理员' }, { name: 'author', content: '系统管理员' },
{ name: 'copyright', content: '© 2024 网盘资源管理系统' } { name: 'copyright', content: '© 2024 网盘资源数据库' }
] ]
}) })
} }

View File

@@ -155,7 +155,7 @@ const handleLogin = async () => {
// 设置页面标题 // 设置页面标题
useHead({ useHead({
title: '管理员登录 - 网盘资源管理系统' title: '管理员登录 - 网盘资源数据库'
}) })
</script> </script>

View File

@@ -237,7 +237,7 @@
<footer class="mt-auto py-6 border-t border-gray-200 dark:border-gray-700 bg-white dark:bg-gray-800"> <footer class="mt-auto py-6 border-t border-gray-200 dark:border-gray-700 bg-white dark:bg-gray-800">
<div class="max-w-7xl mx-auto text-center text-gray-600 dark:text-gray-400 text-sm px-3 sm:px-5"> <div class="max-w-7xl mx-auto text-center text-gray-600 dark:text-gray-400 text-sm px-3 sm:px-5">
<p class="mb-2">本站内容由网络爬虫自动抓取本站不储存复制传播任何文件仅作个人公益学习请在获取后24小内删除!!!</p> <p class="mb-2">本站内容由网络爬虫自动抓取本站不储存复制传播任何文件仅作个人公益学习请在获取后24小内删除!!!</p>
<p>© 2025 网盘资源管理系统 By 老九</p> <p>© 2025 网盘资源数据库 By 老九</p>
</div> </div>
</footer> </footer>
</div> </div>

View File

@@ -26,7 +26,7 @@
</nav> </nav>
<div class="flex-1"> <div class="flex-1">
<h1 class="text-2xl sm:text-3xl font-bold"> <h1 class="text-2xl sm:text-3xl font-bold">
<NuxtLink to="/" class="text-white hover:text-gray-200 dark:hover:text-gray-300 no-underline">网盘资源管理系统</NuxtLink> <NuxtLink to="/" class="text-white hover:text-gray-200 dark:hover:text-gray-300 no-underline">网盘资源数据库</NuxtLink>
</h1> </h1>
</div> </div>
</div> </div>
@@ -608,7 +608,7 @@ onMounted(async () => {
// 设置页面标题 // 设置页面标题
useHead({ useHead({
title: '待处理资源管理 - 网盘资源管理系统' title: '待处理资源管理 - 网盘资源数据库'
}) })
</script> </script>

View File

@@ -210,7 +210,7 @@ const handleRegister = async () => {
// 设置页面标题 // 设置页面标题
useHead({ useHead({
title: '用户注册 - 网盘资源管理系统' title: '用户注册 - 网盘资源数据库'
}) })
</script> </script>

View File

@@ -26,7 +26,7 @@
</nav> </nav>
<div class="flex-1"> <div class="flex-1">
<h1 class="text-2xl sm:text-3xl font-bold"> <h1 class="text-2xl sm:text-3xl font-bold">
<NuxtLink to="/" class="text-white hover:text-gray-200 dark:hover:text-gray-300 no-underline">网盘资源管理系统</NuxtLink> <NuxtLink to="/" class="text-white hover:text-gray-200 dark:hover:text-gray-300 no-underline">网盘资源数据库</NuxtLink>
</h1> </h1>
</div> </div>
</div> </div>

View File

@@ -39,7 +39,7 @@
type="text" type="text"
required required
class="w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md shadow-sm focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:text-white" class="w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md shadow-sm focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:text-white"
placeholder="网盘资源管理系统" placeholder="网盘资源数据库"
/> />
</div> </div>
@@ -52,7 +52,7 @@
v-model="config.siteDescription" v-model="config.siteDescription"
type="text" type="text"
class="w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md shadow-sm focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:text-white" class="w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md shadow-sm focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:text-white"
placeholder="专业的网盘资源管理系统" placeholder="专业的网盘资源数据库"
/> />
</div> </div>
@@ -91,7 +91,7 @@
v-model="config.copyright" v-model="config.copyright"
type="text" type="text"
class="w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md shadow-sm focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:text-white" class="w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md shadow-sm focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:text-white"
placeholder="© 2024 网盘资源管理系统" placeholder="© 2024 网盘资源数据库"
/> />
</div> </div>
</div> </div>
@@ -363,11 +363,11 @@ const { getSystemConfig, updateSystemConfig } = useSystemConfigApi()
const loading = ref(false) const loading = ref(false)
const config = ref({ const config = ref({
// SEO 配置 // SEO 配置
siteTitle: '网盘资源管理系统', siteTitle: '网盘资源数据库',
siteDescription: '专业的网盘资源管理系统', siteDescription: '专业的网盘资源数据库',
keywords: '网盘,资源管理,文件分享', keywords: '网盘,资源管理,文件分享',
author: '系统管理员', author: '系统管理员',
copyright: '© 2024 网盘资源管理系统', copyright: '© 2024 网盘资源数据库',
// 自动处理配置 // 自动处理配置
autoProcessReadyResources: false, autoProcessReadyResources: false,
@@ -388,7 +388,7 @@ const systemConfig = ref(null)
// 页面元数据 - 移到变量声明之后 // 页面元数据 - 移到变量声明之后
useHead({ useHead({
title: () => systemConfig.value?.site_title ? `${systemConfig.value.site_title} - 系统配置` : '系统配置 - 网盘资源管理系统', title: () => systemConfig.value?.site_title ? `${systemConfig.value.site_title} - 系统配置` : '系统配置 - 网盘资源数据库',
meta: [ meta: [
{ {
name: 'description', name: 'description',
@@ -415,11 +415,11 @@ const loadConfig = async () => {
// 使用新的统一响应格式直接使用response // 使用新的统一响应格式直接使用response
if (response) { if (response) {
config.value = { config.value = {
siteTitle: response.site_title || '网盘资源管理系统', siteTitle: response.site_title || '网盘资源数据库',
siteDescription: response.site_description || '专业的网盘资源管理系统', siteDescription: response.site_description || '专业的网盘资源数据库',
keywords: response.keywords || '网盘,资源管理,文件分享', keywords: response.keywords || '网盘,资源管理,文件分享',
author: response.author || '系统管理员', author: response.author || '系统管理员',
copyright: response.copyright || '© 2024 网盘资源管理系统', copyright: response.copyright || '© 2024 网盘资源数据库',
autoProcessReadyResources: response.auto_process_ready_resources || false, autoProcessReadyResources: response.auto_process_ready_resources || false,
autoProcessInterval: response.auto_process_interval || 30, autoProcessInterval: response.auto_process_interval || 30,
autoTransferEnabled: response.auto_transfer_enabled || false, // 新增 autoTransferEnabled: response.auto_transfer_enabled || false, // 新增

View File

@@ -331,7 +331,7 @@ const getAuthHeaders = () => {
// 页面元数据 // 页面元数据
useHead({ useHead({
title: '标签管理 - 网盘资源管理系统', title: '标签管理 - 网盘资源数据库',
meta: [ meta: [
{ name: 'description', content: '管理网盘资源标签' }, { name: 'description', content: '管理网盘资源标签' },
{ name: 'keywords', content: '标签管理,资源管理' } { name: 'keywords', content: '标签管理,资源管理' }