Skip to content

Commit

Permalink
release: v0.3.14
Browse files Browse the repository at this point in the history
  • Loading branch information
reruin committed Jan 5, 2022
1 parent f5aa02c commit aad086b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/zh-cn/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ docker run -d -v /etc/sharelist:/sharelist/cache -p 33001:33001 --name="sharelis


## Heroku
请 Fork [sharelist-heroku](https://github.com/reruin/sharelist-heroku/tree/next),然后在个人仓库下点 Deploy to HeroKu。CONFIG 配置文件处
请 Fork [sharelist-heroku](https://github.com/reruin/sharelist-heroku/tree/next),然后在个人仓库下点 Deploy to HeroKu。


安装完成首次访问 `http:https://localhost:33001`地址,将进入默认界面。访问`http:https://localhost:33001/@manage` 进入后台管理,默认口令为 ```sharelist```
4 changes: 4 additions & 0 deletions packages/sharelist/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## [0.3.14](https://github.com/reruin/sharelist/compare/v0.3.13...v0.3.14) (2022-01-05)



## [0.3.13](https://github.com/reruin/sharelist/compare/v0.3.12...v0.3.13) (2022-01-04)


Expand Down
2 changes: 1 addition & 1 deletion packages/sharelist/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sharelist",
"version": "0.3.13",
"version": "0.3.14",
"bin": "app.js",
"repository": "https://github.com/reruin/sharelist",
"license": "MIT",
Expand Down
4 changes: 2 additions & 2 deletions packages/sharelist/package/webdav/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ const createDriver = (driver, { proxy, baseUrl } = {}) => {
//是否在相同磁盘
let isSameDisk = await driver.isSameDisk(data.id, targetParent.id)
if (isSameDisk) {
console.log(data, targetParent)
// console.log(data, targetParent)
// 相同父级目录
if (data.extra.parent_id && data.extra.parent_id == targetParent.extra?.fid) {
await driver.rename(data.id, dstName)
Expand All @@ -208,7 +208,7 @@ const createDriver = (driver, { proxy, baseUrl } = {}) => {

const isWebDAVRequest = (ctx, webdavPath) => {
if (webdavPath == '/') {
return /(Microsoft\-WebDAV|FileExplorer|WinSCP|WebDAVLib|WebDAVFS|rclone|Kodi|davfs2|sharelist\-webdav|RaiDrive|nPlayer|LibVLC|PotPlayer)/i.test(ctx.request.headers['user-agent']) || ('translate' in ctx.request.headers) || ('overwrite' in ctx.request.headers) || ('depth' in ctx.request.headers)
return /(Microsoft\-WebDAV|FileExplorer|WinSCP|WebDAVLib|WebDAVFS|rclone|Kodi|davfs2|sharelist\-webdav|RaiDrive|nPlayer|LibVLC|PotPlayer|gvfs)/i.test(ctx.request.headers['user-agent']) || ('translate' in ctx.request.headers) || ('overwrite' in ctx.request.headers) || ('depth' in ctx.request.headers)
} else {
return ctx.params.path.startsWith(webdavPath)
}
Expand Down

0 comments on commit aad086b

Please sign in to comment.