## 預覽
https://photo.moejue.cn
## 特性
1. 支持圖片和視頻的展示
2. 支持相冊的展示
3. 支持相冊的密碼保護
4. 支持18+保護
5. 支持搜索
## Todo
1. 優化特效展示
2. 優化界面流暢度
## 安裝說明
1. 克隆倉庫到本地:
```bash
git clone https://github.com/iAJue/PhotoGallery.git
```
2. 進入項目目錄:
```bash
cd PhotoGallery
```
3. 安裝依賴:
```bash
npm install
```
4. 打包項目
```bash
npm run build
```
## 後端接口
僅供參考
https://github.com/iAJue/wasteCode/tree/main/photo
## 返回數據格式
1. 照片接口
```json
[
{
"date": "\u6628\u5929",
"items": [
{
"src": "https:\/\/moejuevideo.pages.dev\/file\/1730957555106_ocgRCdDEA07fAILEKEFOA8ADAyETABBMffIBE6~tplv-dy-aweme-images_q75.webp",
"alt": "ocgRCdDEA07fAILEKEFOA8ADAyETABBMffIBE6~tplv-dy-aweme-images_q75.webp",
"isVideo": false,
"duration": null
}
]
}
]
```
2. 相冊接口
```json
[
{
"folder_id": "3",
"folder_name": "images",
"created_at": "2024-11-07 15:09:06",
"photo_count": "61",
"latest_image": "https:\/\/moejuevideo.pages.dev\/file\/1730963758087_GZIaBGlbAAALz_E.jpeg",
"attribute": "2",
"ispassword": true
}
]
```
3. 隨機接口
```json
[
{
"id": 1,
"folder_id": 1,
"name": "\u300c\u4e0d\u706d\u300d #2024\u539f\u795e\u751f\u65e5\u4f1a #\u539f\u795e #\u949f\u79bb_7415149072572501275.mp4",
"size": 50437932,
"duration": "19.0",
"type": 1,
"data": "https:\/\/moejuevideo.pages.dev\/file\/1730944134269_\u300c\u4e0d\u706d\u300d %232024\u539f\u795e\u751f\u65e5\u4f1a %23\u539f\u795e %23\u949f\u79bb_7415149072572501275.mp4_part_1.mp4",
"created_at": "2024-11-07 09:49:48"
}
]
```
|