update:some change

This commit is contained in:
lan
2022-12-23 12:07:46 +08:00
parent cadae54c2f
commit 549c072107
4 changed files with 37 additions and 0 deletions
+4
View File
@@ -172,6 +172,10 @@ STORAGE_ENGINE=filesystem
![Alt](https://repobeats.axiom.co/api/embed/7a6c92f1d96ee57e6fb67f0df371528397b0c9ac.svg "Repobeats analytics image") ![Alt](https://repobeats.axiom.co/api/embed/7a6c92f1d96ee57e6fb67f0df371528397b0c9ac.svg "Repobeats analytics image")
## Star History
[![Star History Chart](https://api.star-history.com/svg?repos=vastsa/FileCodeBox&type=Date)](https://star-history.com/#vastsa/FileCodeBox&Date)
## 赞赏 ## 赞赏
<table style="width: 100%"> <table style="width: 100%">
+5
View File
@@ -35,6 +35,7 @@ docker run -d --restart=always -p 12345:12345 -v /opt/FileCodeBox/:/app/data --n
```bash ```bash
docker run -d --restart=always -p 12345:12345 -v /Users/lan/soft/FileCodeBox/:/app/data --name filecodebox lanol/filecodebox:arm docker run -d --restart=always -p 12345:12345 -v /Users/lan/soft/FileCodeBox/:/app/data --name filecodebox lanol/filecodebox:arm
``` ```
### Update ### Update
```bash ```bash
@@ -177,6 +178,10 @@ STORAGE_ENGINE=filesystem
![Alt](https://repobeats.axiom.co/api/embed/7a6c92f1d96ee57e6fb67f0df371528397b0c9ac.svg "Repobeats analytics image") ![Alt](https://repobeats.axiom.co/api/embed/7a6c92f1d96ee57e6fb67f0df371528397b0c9ac.svg "Repobeats analytics image")
## Star History
[![Star History Chart](https://api.star-history.com/svg?repos=vastsa/FileCodeBox&type=Date)](https://star-history.com/#vastsa/FileCodeBox&Date)
## Appreciate ## Appreciate
<table style="width: 100%"> <table style="width: 100%">
+24
View File
@@ -9,6 +9,30 @@ from fastapi import UploadFile
import settings import settings
class TencentCOS:
def __init__(self, bucket: str, region: str, secret_id: str, secret_key: str):
self.bucket = bucket
self.region = region
self.secret_id = secret_id
self.secret_key = secret_key
def upload(self, file: UploadFile, path: str) -> str:
# 上传文件
pass
def download(self, path: str) -> BinaryIO:
# 下载文件
pass
def delete(self, path: str) -> None:
# 删除文件
pass
def get_url(self, path: str) -> str:
# 获取文件访问链接
pass
class FileSystemStorage: class FileSystemStorage:
DATA_ROOT = Path(settings.DATA_ROOT) DATA_ROOT = Path(settings.DATA_ROOT)
STATIC_URL = settings.STATIC_URL STATIC_URL = settings.STATIC_URL
+4
View File
@@ -37,6 +37,10 @@
border-radius: 20px; border-radius: 20px;
} }
.el-card {
border-radius: 20px;
}
@media (prefers-color-scheme: dark) { @media (prefers-color-scheme: dark) {
body { body {