mirror of
https://github.com/ctwj/urldb.git
synced 2025-11-25 03:15:04 +08:00
update: urldb
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
|
||||
### 1. Fork 项目
|
||||
|
||||
1. 访问 [GitHub 仓库](https://github.com/ctwj/panResManage)
|
||||
1. 访问 [GitHub 仓库](https://github.com/ctwj/urldb)
|
||||
2. 点击右上角的 Fork 按钮
|
||||
3. 选择您的 GitHub 账户
|
||||
|
||||
@@ -30,7 +30,7 @@ cd resManage
|
||||
### 3. 添加上游仓库
|
||||
|
||||
```bash
|
||||
git remote add upstream https://github.com/ctwj/panResManage.git
|
||||
git remote add upstream https://github.com/ctwj/urldb.git
|
||||
```
|
||||
|
||||
### 4. 创建功能分支
|
||||
|
||||
20
README.md
20
README.md
@@ -1,4 +1,4 @@
|
||||
# 🚀 panResManage - 网盘资源管理系统
|
||||
# 🚀 urldb - 网盘资源数据库
|
||||
|
||||
<div align="center>
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||

|
||||

|
||||
|
||||
**一个现代化的网盘资源管理系统,支持多网盘自动化转存分享**
|
||||
**一个现代化的网盘资源数据库,支持多网盘自动化转存分享**
|
||||
|
||||
🌐 [在线演示](#) | 📖 [文档](#) | 🐛 问题反馈](#) | ⭐ [给个星标](#)
|
||||
|
||||
@@ -90,8 +90,8 @@
|
||||
#### 使用启动脚本(最简单)
|
||||
```bash
|
||||
# 克隆项目
|
||||
git clone https://github.com/ctwj/panResManage.git
|
||||
cd panResManage
|
||||
git clone https://github.com/ctwj/urldb.git
|
||||
cd urldb
|
||||
|
||||
# 使用启动脚本
|
||||
./docker-start.sh
|
||||
@@ -100,8 +100,8 @@ cd panResManage
|
||||
#### 手动启动
|
||||
```bash
|
||||
# 克隆项目
|
||||
git clone https://github.com/ctwj/panResManage.git
|
||||
cd panResManage
|
||||
git clone https://github.com/ctwj/urldb.git
|
||||
cd urldb
|
||||
|
||||
# 使用 Docker Compose 启动
|
||||
docker compose up --build -d
|
||||
@@ -115,8 +115,8 @@ docker compose up --build -d
|
||||
|
||||
#### 1. 克隆项目
|
||||
```bash
|
||||
git clone https://github.com/ctwj/panResManage.git
|
||||
cd panResManage
|
||||
git clone https://github.com/ctwj/urldb.git
|
||||
cd urldb
|
||||
```
|
||||
|
||||
#### 2. 后端设置
|
||||
@@ -284,8 +284,8 @@ SOFTWARE.
|
||||
|
||||
## 📞 联系我们
|
||||
|
||||
- **项目地址**: [https://github.com/ctwj/panResManage](https://github.com/ctwj/panResManage)
|
||||
- **问题反馈**: [Issues](https://github.com/ctwj/panResManage/issues)
|
||||
- **项目地址**: [https://github.com/ctwj/urldb](https://github.com/ctwj/urldb)
|
||||
- **问题反馈**: [Issues](https://github.com/ctwj/urldb/issues)
|
||||
- **邮箱**: 510199617@qq.com
|
||||
|
||||
---
|
||||
|
||||
@@ -4,8 +4,8 @@ import (
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
"github.com/ctwj/panResManage/db/entity"
|
||||
"github.com/ctwj/panResManage/utils"
|
||||
"github.com/ctwj/urldb/db/entity"
|
||||
"github.com/ctwj/urldb/utils"
|
||||
"gorm.io/driver/postgres"
|
||||
"gorm.io/gorm"
|
||||
"gorm.io/gorm/logger"
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package converter
|
||||
|
||||
import (
|
||||
"github.com/ctwj/panResManage/db/dto"
|
||||
"github.com/ctwj/panResManage/db/entity"
|
||||
"github.com/ctwj/urldb/db/dto"
|
||||
"github.com/ctwj/urldb/db/entity"
|
||||
)
|
||||
|
||||
// ToResourceResponse 将Resource实体转换为ResourceResponse
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package converter
|
||||
|
||||
import (
|
||||
"github.com/ctwj/panResManage/db/dto"
|
||||
"github.com/ctwj/panResManage/db/entity"
|
||||
"github.com/ctwj/urldb/db/dto"
|
||||
"github.com/ctwj/urldb/db/entity"
|
||||
)
|
||||
|
||||
// HotDramaToResponse 将热播剧实体转换为响应DTO
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package converter
|
||||
|
||||
import (
|
||||
"github.com/ctwj/panResManage/db/dto"
|
||||
"github.com/ctwj/panResManage/db/entity"
|
||||
"github.com/ctwj/urldb/db/dto"
|
||||
"github.com/ctwj/urldb/db/entity"
|
||||
)
|
||||
|
||||
// ToSearchStatResponse 将SearchStat实体转换为SearchStatResponse
|
||||
|
||||
@@ -3,8 +3,8 @@ package converter
|
||||
import (
|
||||
"time"
|
||||
|
||||
"github.com/ctwj/panResManage/db/dto"
|
||||
"github.com/ctwj/panResManage/db/entity"
|
||||
"github.com/ctwj/urldb/db/dto"
|
||||
"github.com/ctwj/urldb/db/entity"
|
||||
)
|
||||
|
||||
// SystemConfigToResponse 将系统配置实体转换为响应DTO
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package converter
|
||||
|
||||
import (
|
||||
"github.com/ctwj/panResManage/db/dto"
|
||||
"github.com/ctwj/panResManage/db/entity"
|
||||
"github.com/ctwj/urldb/db/dto"
|
||||
"github.com/ctwj/urldb/db/entity"
|
||||
)
|
||||
|
||||
// ToUserResponse 将User实体转换为UserResponse
|
||||
|
||||
@@ -11,7 +11,7 @@ type SystemConfig struct {
|
||||
UpdatedAt time.Time `json:"updated_at"`
|
||||
|
||||
// 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"`
|
||||
Keywords string `json:"keywords" gorm:"size:500"`
|
||||
Author string `json:"author" gorm:"size:100"`
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package repo
|
||||
|
||||
import (
|
||||
"github.com/ctwj/panResManage/db/entity"
|
||||
"github.com/ctwj/urldb/db/entity"
|
||||
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package repo
|
||||
|
||||
import (
|
||||
"github.com/ctwj/panResManage/db/entity"
|
||||
"github.com/ctwj/urldb/db/entity"
|
||||
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package repo
|
||||
|
||||
import (
|
||||
"github.com/ctwj/panResManage/db/entity"
|
||||
"github.com/ctwj/urldb/db/entity"
|
||||
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package repo
|
||||
|
||||
import (
|
||||
"github.com/ctwj/panResManage/db/entity"
|
||||
"github.com/ctwj/urldb/db/entity"
|
||||
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
@@ -3,7 +3,7 @@ package repo
|
||||
import (
|
||||
"time"
|
||||
|
||||
"github.com/ctwj/panResManage/db/entity"
|
||||
"github.com/ctwj/urldb/db/entity"
|
||||
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
@@ -5,7 +5,7 @@ import (
|
||||
|
||||
"time"
|
||||
|
||||
"github.com/ctwj/panResManage/db/entity"
|
||||
"github.com/ctwj/urldb/db/entity"
|
||||
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
@@ -3,7 +3,7 @@ package repo
|
||||
import (
|
||||
"time"
|
||||
|
||||
"github.com/ctwj/panResManage/db/entity"
|
||||
"github.com/ctwj/urldb/db/entity"
|
||||
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package repo
|
||||
|
||||
import (
|
||||
"github.com/ctwj/panResManage/db/entity"
|
||||
"github.com/ctwj/urldb/db/entity"
|
||||
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
@@ -57,11 +57,11 @@ func (r *SystemConfigRepositoryImpl) GetOrCreateDefault() (*entity.SystemConfig,
|
||||
if err != nil {
|
||||
// 创建默认配置
|
||||
defaultConfig := &entity.SystemConfig{
|
||||
SiteTitle: "网盘资源管理系统",
|
||||
SiteDescription: "专业的网盘资源管理系统",
|
||||
SiteTitle: "网盘资源数据库",
|
||||
SiteDescription: "专业的网盘资源数据库",
|
||||
Keywords: "网盘,资源管理,文件分享",
|
||||
Author: "系统管理员",
|
||||
Copyright: "© 2024 网盘资源管理系统",
|
||||
Copyright: "© 2024 网盘资源数据库",
|
||||
AutoProcessReadyResources: false,
|
||||
AutoProcessInterval: 30,
|
||||
PageSize: 100,
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package repo
|
||||
|
||||
import (
|
||||
"github.com/ctwj/panResManage/db/entity"
|
||||
"github.com/ctwj/urldb/db/entity"
|
||||
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package repo
|
||||
|
||||
import (
|
||||
"github.com/ctwj/panResManage/db/entity"
|
||||
"github.com/ctwj/urldb/db/entity"
|
||||
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
2
go.mod
2
go.mod
@@ -1,4 +1,4 @@
|
||||
module github.com/ctwj/panResManage
|
||||
module github.com/ctwj/urldb
|
||||
|
||||
go 1.23.0
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package handlers
|
||||
|
||||
import (
|
||||
"github.com/ctwj/panResManage/db/repo"
|
||||
"github.com/ctwj/urldb/db/repo"
|
||||
)
|
||||
|
||||
var repoManager *repo.RepositoryManager
|
||||
|
||||
@@ -4,9 +4,9 @@ import (
|
||||
"net/http"
|
||||
"strconv"
|
||||
|
||||
"github.com/ctwj/panResManage/db/converter"
|
||||
"github.com/ctwj/panResManage/db/dto"
|
||||
"github.com/ctwj/panResManage/db/entity"
|
||||
"github.com/ctwj/urldb/db/converter"
|
||||
"github.com/ctwj/urldb/db/dto"
|
||||
"github.com/ctwj/urldb/db/entity"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
@@ -5,10 +5,10 @@ import (
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
panutils "github.com/ctwj/panResManage/common"
|
||||
"github.com/ctwj/panResManage/db/converter"
|
||||
"github.com/ctwj/panResManage/db/dto"
|
||||
"github.com/ctwj/panResManage/db/entity"
|
||||
panutils "github.com/ctwj/urldb/common"
|
||||
"github.com/ctwj/urldb/db/converter"
|
||||
"github.com/ctwj/urldb/db/dto"
|
||||
"github.com/ctwj/urldb/db/entity"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
@@ -4,10 +4,10 @@ import (
|
||||
"net/http"
|
||||
"strconv"
|
||||
|
||||
"github.com/ctwj/panResManage/db/converter"
|
||||
"github.com/ctwj/panResManage/db/dto"
|
||||
"github.com/ctwj/panResManage/db/entity"
|
||||
"github.com/ctwj/panResManage/db/repo"
|
||||
"github.com/ctwj/urldb/db/converter"
|
||||
"github.com/ctwj/urldb/db/dto"
|
||||
"github.com/ctwj/urldb/db/entity"
|
||||
"github.com/ctwj/urldb/db/repo"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
@@ -4,9 +4,9 @@ import (
|
||||
"net/http"
|
||||
"strconv"
|
||||
|
||||
"github.com/ctwj/panResManage/db/converter"
|
||||
"github.com/ctwj/panResManage/db/dto"
|
||||
"github.com/ctwj/panResManage/db/entity"
|
||||
"github.com/ctwj/urldb/db/converter"
|
||||
"github.com/ctwj/urldb/db/dto"
|
||||
"github.com/ctwj/urldb/db/entity"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
@@ -5,8 +5,8 @@ import (
|
||||
|
||||
"strconv"
|
||||
|
||||
"github.com/ctwj/panResManage/db/converter"
|
||||
"github.com/ctwj/panResManage/db/dto"
|
||||
"github.com/ctwj/urldb/db/converter"
|
||||
"github.com/ctwj/urldb/db/dto"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
@@ -5,9 +5,9 @@ import (
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
"github.com/ctwj/panResManage/db/converter"
|
||||
"github.com/ctwj/panResManage/db/dto"
|
||||
"github.com/ctwj/panResManage/db/entity"
|
||||
"github.com/ctwj/urldb/db/converter"
|
||||
"github.com/ctwj/urldb/db/dto"
|
||||
"github.com/ctwj/urldb/db/entity"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
@@ -4,9 +4,9 @@ import (
|
||||
"net/http"
|
||||
"strconv"
|
||||
|
||||
"github.com/ctwj/panResManage/db/converter"
|
||||
"github.com/ctwj/panResManage/db/dto"
|
||||
"github.com/ctwj/panResManage/db/entity"
|
||||
"github.com/ctwj/urldb/db/converter"
|
||||
"github.com/ctwj/urldb/db/dto"
|
||||
"github.com/ctwj/urldb/db/entity"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
@@ -3,7 +3,7 @@ package handlers
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
"github.com/ctwj/panResManage/utils"
|
||||
"github.com/ctwj/urldb/utils"
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
|
||||
@@ -4,8 +4,8 @@ import (
|
||||
"net/http"
|
||||
"strconv"
|
||||
|
||||
"github.com/ctwj/panResManage/db/converter"
|
||||
"github.com/ctwj/panResManage/db/dto"
|
||||
"github.com/ctwj/urldb/db/converter"
|
||||
"github.com/ctwj/urldb/db/dto"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
@@ -4,8 +4,8 @@ import (
|
||||
"runtime"
|
||||
"time"
|
||||
|
||||
"github.com/ctwj/panResManage/db"
|
||||
"github.com/ctwj/panResManage/db/entity"
|
||||
"github.com/ctwj/urldb/db"
|
||||
"github.com/ctwj/urldb/db/entity"
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
|
||||
@@ -3,10 +3,10 @@ package handlers
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
"github.com/ctwj/panResManage/db/converter"
|
||||
"github.com/ctwj/panResManage/db/dto"
|
||||
"github.com/ctwj/panResManage/db/repo"
|
||||
"github.com/ctwj/panResManage/utils"
|
||||
"github.com/ctwj/urldb/db/converter"
|
||||
"github.com/ctwj/urldb/db/dto"
|
||||
"github.com/ctwj/urldb/db/repo"
|
||||
"github.com/ctwj/urldb/utils"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
@@ -4,10 +4,10 @@ import (
|
||||
"net/http"
|
||||
"strconv"
|
||||
|
||||
"github.com/ctwj/panResManage/db/converter"
|
||||
"github.com/ctwj/panResManage/db/dto"
|
||||
"github.com/ctwj/panResManage/db/entity"
|
||||
"github.com/ctwj/panResManage/utils"
|
||||
"github.com/ctwj/urldb/db/converter"
|
||||
"github.com/ctwj/urldb/db/dto"
|
||||
"github.com/ctwj/urldb/db/entity"
|
||||
"github.com/ctwj/urldb/utils"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
@@ -4,10 +4,10 @@ import (
|
||||
"net/http"
|
||||
"strconv"
|
||||
|
||||
"github.com/ctwj/panResManage/db/converter"
|
||||
"github.com/ctwj/panResManage/db/dto"
|
||||
"github.com/ctwj/panResManage/db/entity"
|
||||
"github.com/ctwj/panResManage/middleware"
|
||||
"github.com/ctwj/urldb/db/converter"
|
||||
"github.com/ctwj/urldb/db/dto"
|
||||
"github.com/ctwj/urldb/db/entity"
|
||||
"github.com/ctwj/urldb/middleware"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
10
main.go
10
main.go
@@ -4,12 +4,12 @@ import (
|
||||
"log"
|
||||
"os"
|
||||
|
||||
"github.com/ctwj/panResManage/utils"
|
||||
"github.com/ctwj/urldb/utils"
|
||||
|
||||
"github.com/ctwj/panResManage/db"
|
||||
"github.com/ctwj/panResManage/db/repo"
|
||||
"github.com/ctwj/panResManage/handlers"
|
||||
"github.com/ctwj/panResManage/middleware"
|
||||
"github.com/ctwj/urldb/db"
|
||||
"github.com/ctwj/urldb/db/repo"
|
||||
"github.com/ctwj/urldb/handlers"
|
||||
"github.com/ctwj/urldb/middleware"
|
||||
|
||||
"github.com/gin-contrib/cors"
|
||||
"github.com/gin-gonic/gin"
|
||||
|
||||
@@ -5,8 +5,8 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/ctwj/panResManage/db/entity"
|
||||
"github.com/ctwj/panResManage/utils"
|
||||
"github.com/ctwj/urldb/db/entity"
|
||||
"github.com/ctwj/urldb/utils"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/golang-jwt/jwt/v5"
|
||||
|
||||
@@ -6,7 +6,7 @@ import (
|
||||
"net/http"
|
||||
"time"
|
||||
|
||||
"github.com/ctwj/panResManage/utils"
|
||||
"github.com/ctwj/urldb/utils"
|
||||
)
|
||||
|
||||
// responseWriter 包装http.ResponseWriter以捕获响应状态码和内容
|
||||
|
||||
@@ -3,7 +3,7 @@ package middleware
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
"github.com/ctwj/panResManage/db/repo"
|
||||
"github.com/ctwj/urldb/db/repo"
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ package utils
|
||||
import (
|
||||
"sync"
|
||||
|
||||
"github.com/ctwj/panResManage/db/repo"
|
||||
"github.com/ctwj/urldb/db/repo"
|
||||
)
|
||||
|
||||
// GlobalScheduler 全局调度器管理器
|
||||
|
||||
@@ -6,10 +6,10 @@ import (
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
panutils "github.com/ctwj/panResManage/common"
|
||||
commonutils "github.com/ctwj/panResManage/common/utils"
|
||||
"github.com/ctwj/panResManage/db/entity"
|
||||
"github.com/ctwj/panResManage/db/repo"
|
||||
panutils "github.com/ctwj/urldb/common"
|
||||
commonutils "github.com/ctwj/urldb/common/utils"
|
||||
"github.com/ctwj/urldb/db/entity"
|
||||
"github.com/ctwj/urldb/db/repo"
|
||||
)
|
||||
|
||||
// Scheduler 定时任务管理器
|
||||
|
||||
@@ -40,16 +40,16 @@ export const useSeo = () => {
|
||||
if (systemConfig.value?.site_title) {
|
||||
return `${systemConfig.value.site_title} - ${pageTitle}`
|
||||
}
|
||||
return `${pageTitle} - 网盘资源管理系统`
|
||||
return `${pageTitle} - 网盘资源数据库`
|
||||
}
|
||||
|
||||
// 生成页面元数据
|
||||
const generateMeta = (customMeta?: Record<string, string>) => {
|
||||
const defaultMeta = {
|
||||
description: systemConfig.value?.site_description || '专业的网盘资源管理系统',
|
||||
description: systemConfig.value?.site_description || '专业的网盘资源数据库',
|
||||
keywords: systemConfig.value?.keywords || '网盘,资源管理,文件分享',
|
||||
author: systemConfig.value?.author || '系统管理员',
|
||||
copyright: systemConfig.value?.copyright || '© 2024 网盘资源管理系统'
|
||||
copyright: systemConfig.value?.copyright || '© 2024 网盘资源数据库'
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
@@ -36,11 +36,11 @@ export default defineNuxtConfig({
|
||||
],
|
||||
app: {
|
||||
head: {
|
||||
title: '开源网盘资源管理系统',
|
||||
title: '开源网盘资源数据库',
|
||||
meta: [
|
||||
{ charset: 'utf-8' },
|
||||
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
|
||||
{ name: 'description', content: '开源网盘资源管理系统 - 一个现代化的资源管理系统' }
|
||||
{ name: 'description', content: '开源网盘资源数据库 - 一个现代化的资源管理系统' }
|
||||
],
|
||||
link: [
|
||||
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }
|
||||
|
||||
@@ -128,7 +128,7 @@ const handleCancel = () => {
|
||||
|
||||
// 设置页面标题
|
||||
useHead({
|
||||
title: '添加资源 - 网盘资源管理系统'
|
||||
title: '添加资源 - 网盘资源数据库'
|
||||
})
|
||||
</script>
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
<div class="flex justify-between items-center mb-4">
|
||||
<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">
|
||||
{{ systemConfig?.site_title || '网盘资源管理系统' }}
|
||||
{{ systemConfig?.site_title || '网盘资源数据库' }}
|
||||
</NuxtLink>
|
||||
</h1>
|
||||
<div class="flex items-center gap-4">
|
||||
@@ -320,11 +320,11 @@ const systemConfig = ref(null) // 添加系统配置状态
|
||||
|
||||
// 页面元数据 - 移到变量声明之后
|
||||
useHead({
|
||||
title: () => systemConfig.value?.site_title ? `${systemConfig.value.site_title} - 管理后台` : '管理后台 - 网盘资源管理系统',
|
||||
title: () => systemConfig.value?.site_title ? `${systemConfig.value.site_title} - 管理后台` : '管理后台 - 网盘资源数据库',
|
||||
meta: [
|
||||
{
|
||||
name: 'description',
|
||||
content: () => systemConfig.value?.site_description || '网盘资源管理系统管理后台'
|
||||
content: () => systemConfig.value?.site_description || '网盘资源数据库管理后台'
|
||||
},
|
||||
{
|
||||
name: 'keywords',
|
||||
|
||||
@@ -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">
|
||||
<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">
|
||||
网盘资源管理系统 - API文档
|
||||
网盘资源数据库 - API文档
|
||||
</a>
|
||||
</h1>
|
||||
<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">
|
||||
<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>© 2025 网盘资源管理系统 By 老九</p>
|
||||
<p>© 2025 网盘资源数据库 By 老九</p>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
@@ -359,9 +359,9 @@ curl -X GET "http://localhost:8080/api/public/hot-dramas?page=1&page_size=5" \
|
||||
<script setup>
|
||||
// 页面元数据
|
||||
useHead({
|
||||
title: 'API文档 - 网盘资源管理系统',
|
||||
title: 'API文档 - 网盘资源数据库',
|
||||
meta: [
|
||||
{ name: 'description', content: '网盘资源管理系统的公开API接口文档' },
|
||||
{ name: 'description', content: '网盘资源数据库的公开API接口文档' },
|
||||
{ name: 'keywords', content: 'API,接口文档,网盘资源管理' }
|
||||
]
|
||||
})
|
||||
|
||||
@@ -300,7 +300,7 @@ const getAuthHeaders = () => {
|
||||
|
||||
// 页面元数据
|
||||
useHead({
|
||||
title: '分类管理 - 网盘资源管理系统',
|
||||
title: '分类管理 - 网盘资源数据库',
|
||||
meta: [
|
||||
{ name: 'description', content: '管理网盘资源分类' },
|
||||
{ name: 'keywords', content: '分类管理,资源管理' }
|
||||
|
||||
@@ -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">
|
||||
<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>© 2025 网盘资源管理系统 By 老九</p>
|
||||
<p>© 2025 网盘资源数据库 By 老九</p>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
|
||||
@@ -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">
|
||||
<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">
|
||||
{{ systemConfig?.site_title || '网盘资源管理系统' }}
|
||||
{{ systemConfig?.site_title || '网盘资源数据库' }}
|
||||
</a>
|
||||
</h1>
|
||||
<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">
|
||||
<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>{{ systemConfig?.copyright || '© 2025 网盘资源管理系统 By 老九' }}</p>
|
||||
<p>{{ systemConfig?.copyright || '© 2025 网盘资源数据库 By 老九' }}</p>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
@@ -321,11 +321,11 @@ const safeLoading = computed(() => {
|
||||
|
||||
// 动态SEO配置
|
||||
const seoConfig = computed(() => ({
|
||||
title: systemConfig.value?.site_title || '网盘资源管理系统',
|
||||
title: systemConfig.value?.site_title || '网盘资源数据库',
|
||||
meta: [
|
||||
{
|
||||
name: 'description',
|
||||
content: systemConfig.value?.site_description || '专业的网盘资源管理系统'
|
||||
content: systemConfig.value?.site_description || '专业的网盘资源数据库'
|
||||
},
|
||||
{
|
||||
name: 'keywords',
|
||||
@@ -337,7 +337,7 @@ const seoConfig = computed(() => ({
|
||||
},
|
||||
{
|
||||
name: 'copyright',
|
||||
content: systemConfig.value?.copyright || '© 2024 网盘资源管理系统'
|
||||
content: systemConfig.value?.copyright || '© 2024 网盘资源数据库'
|
||||
}
|
||||
]
|
||||
}))
|
||||
@@ -347,11 +347,11 @@ watchEffect(() => {
|
||||
try {
|
||||
if (systemConfig.value && systemConfig.value.site_title) {
|
||||
useHead({
|
||||
title: systemConfig.value.site_title || '网盘资源管理系统',
|
||||
title: systemConfig.value.site_title || '网盘资源数据库',
|
||||
meta: [
|
||||
{
|
||||
name: 'description',
|
||||
content: systemConfig.value.site_description || '专业的网盘资源管理系统'
|
||||
content: systemConfig.value.site_description || '专业的网盘资源数据库'
|
||||
},
|
||||
{
|
||||
name: 'keywords',
|
||||
@@ -363,19 +363,19 @@ watchEffect(() => {
|
||||
},
|
||||
{
|
||||
name: 'copyright',
|
||||
content: systemConfig.value.copyright || '© 2024 网盘资源管理系统'
|
||||
content: systemConfig.value.copyright || '© 2024 网盘资源数据库'
|
||||
}
|
||||
]
|
||||
})
|
||||
} else {
|
||||
// 默认SEO配置
|
||||
useHead({
|
||||
title: '网盘资源管理系统',
|
||||
title: '网盘资源数据库',
|
||||
meta: [
|
||||
{ name: 'description', content: '专业的网盘资源管理系统' },
|
||||
{ name: 'description', content: '专业的网盘资源数据库' },
|
||||
{ name: 'keywords', content: '网盘,资源管理,文件分享' },
|
||||
{ name: 'author', content: '系统管理员' },
|
||||
{ name: 'copyright', content: '© 2024 网盘资源管理系统' }
|
||||
{ name: 'copyright', content: '© 2024 网盘资源数据库' }
|
||||
]
|
||||
})
|
||||
}
|
||||
@@ -383,12 +383,12 @@ watchEffect(() => {
|
||||
console.error('设置页面元数据时出错:', error)
|
||||
// 使用默认配置作为后备
|
||||
useHead({
|
||||
title: '网盘资源管理系统',
|
||||
title: '网盘资源数据库',
|
||||
meta: [
|
||||
{ name: 'description', content: '专业的网盘资源管理系统' },
|
||||
{ name: 'description', content: '专业的网盘资源数据库' },
|
||||
{ name: 'keywords', content: '网盘,资源管理,文件分享' },
|
||||
{ name: 'author', content: '系统管理员' },
|
||||
{ name: 'copyright', content: '© 2024 网盘资源管理系统' }
|
||||
{ name: 'copyright', content: '© 2024 网盘资源数据库' }
|
||||
]
|
||||
})
|
||||
}
|
||||
|
||||
@@ -155,7 +155,7 @@ const handleLogin = async () => {
|
||||
|
||||
// 设置页面标题
|
||||
useHead({
|
||||
title: '管理员登录 - 网盘资源管理系统'
|
||||
title: '管理员登录 - 网盘资源数据库'
|
||||
})
|
||||
</script>
|
||||
|
||||
|
||||
@@ -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">
|
||||
<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>© 2025 网盘资源管理系统 By 老九</p>
|
||||
<p>© 2025 网盘资源数据库 By 老九</p>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
</nav>
|
||||
<div class="flex-1">
|
||||
<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>
|
||||
</div>
|
||||
</div>
|
||||
@@ -608,7 +608,7 @@ onMounted(async () => {
|
||||
|
||||
// 设置页面标题
|
||||
useHead({
|
||||
title: '待处理资源管理 - 网盘资源管理系统'
|
||||
title: '待处理资源管理 - 网盘资源数据库'
|
||||
})
|
||||
</script>
|
||||
|
||||
|
||||
@@ -210,7 +210,7 @@ const handleRegister = async () => {
|
||||
|
||||
// 设置页面标题
|
||||
useHead({
|
||||
title: '用户注册 - 网盘资源管理系统'
|
||||
title: '用户注册 - 网盘资源数据库'
|
||||
})
|
||||
</script>
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
</nav>
|
||||
<div class="flex-1">
|
||||
<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>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
type="text"
|
||||
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"
|
||||
placeholder="网盘资源管理系统"
|
||||
placeholder="网盘资源数据库"
|
||||
/>
|
||||
</div>
|
||||
|
||||
@@ -52,7 +52,7 @@
|
||||
v-model="config.siteDescription"
|
||||
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"
|
||||
placeholder="专业的网盘资源管理系统"
|
||||
placeholder="专业的网盘资源数据库"
|
||||
/>
|
||||
</div>
|
||||
|
||||
@@ -91,7 +91,7 @@
|
||||
v-model="config.copyright"
|
||||
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"
|
||||
placeholder="© 2024 网盘资源管理系统"
|
||||
placeholder="© 2024 网盘资源数据库"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
@@ -363,11 +363,11 @@ const { getSystemConfig, updateSystemConfig } = useSystemConfigApi()
|
||||
const loading = ref(false)
|
||||
const config = ref({
|
||||
// SEO 配置
|
||||
siteTitle: '网盘资源管理系统',
|
||||
siteDescription: '专业的网盘资源管理系统',
|
||||
siteTitle: '网盘资源数据库',
|
||||
siteDescription: '专业的网盘资源数据库',
|
||||
keywords: '网盘,资源管理,文件分享',
|
||||
author: '系统管理员',
|
||||
copyright: '© 2024 网盘资源管理系统',
|
||||
copyright: '© 2024 网盘资源数据库',
|
||||
|
||||
// 自动处理配置
|
||||
autoProcessReadyResources: false,
|
||||
@@ -388,7 +388,7 @@ const systemConfig = ref(null)
|
||||
|
||||
// 页面元数据 - 移到变量声明之后
|
||||
useHead({
|
||||
title: () => systemConfig.value?.site_title ? `${systemConfig.value.site_title} - 系统配置` : '系统配置 - 网盘资源管理系统',
|
||||
title: () => systemConfig.value?.site_title ? `${systemConfig.value.site_title} - 系统配置` : '系统配置 - 网盘资源数据库',
|
||||
meta: [
|
||||
{
|
||||
name: 'description',
|
||||
@@ -415,11 +415,11 @@ const loadConfig = async () => {
|
||||
// 使用新的统一响应格式,直接使用response
|
||||
if (response) {
|
||||
config.value = {
|
||||
siteTitle: response.site_title || '网盘资源管理系统',
|
||||
siteDescription: response.site_description || '专业的网盘资源管理系统',
|
||||
siteTitle: response.site_title || '网盘资源数据库',
|
||||
siteDescription: response.site_description || '专业的网盘资源数据库',
|
||||
keywords: response.keywords || '网盘,资源管理,文件分享',
|
||||
author: response.author || '系统管理员',
|
||||
copyright: response.copyright || '© 2024 网盘资源管理系统',
|
||||
copyright: response.copyright || '© 2024 网盘资源数据库',
|
||||
autoProcessReadyResources: response.auto_process_ready_resources || false,
|
||||
autoProcessInterval: response.auto_process_interval || 30,
|
||||
autoTransferEnabled: response.auto_transfer_enabled || false, // 新增
|
||||
|
||||
@@ -331,7 +331,7 @@ const getAuthHeaders = () => {
|
||||
|
||||
// 页面元数据
|
||||
useHead({
|
||||
title: '标签管理 - 网盘资源管理系统',
|
||||
title: '标签管理 - 网盘资源数据库',
|
||||
meta: [
|
||||
{ name: 'description', content: '管理网盘资源标签' },
|
||||
{ name: 'keywords', content: '标签管理,资源管理' }
|
||||
|
||||
Reference in New Issue
Block a user