Compare commits

...

3 Commits

Author SHA1 Message Date
dependabot[bot]
f155e9328b
Merge e81bb573a4 into 9edc02f696 2024-05-09 18:14:01 +08:00
Horis
9edc02f696 优化 2024-05-08 16:33:21 +08:00
dependabot[bot]
e81bb573a4
Bump eslint from 8.57.0 to 9.2.0 in /modules/web
Bumps [eslint](https://github.com/eslint/eslint) from 8.57.0 to 9.2.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v8.57.0...v9.2.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-06 04:25:14 +00:00
4 changed files with 7 additions and 5 deletions

1
.gitignore vendored
View File

@ -3,6 +3,7 @@
local.properties
.DS_Store
/build
build/
/captures
.externalNativeBuild
/release

View File

@ -73,7 +73,7 @@ object AppWebDav {
WebDav(bookProgressUrl, mAuthorization).makeAsDir()
WebDav(exportsWebDavUrl, mAuthorization).makeAsDir()
WebDav(bgWebDavUrl, mAuthorization).makeAsDir()
val rootBooksUrl = "${rootWebDavUrl}books"
val rootBooksUrl = "${rootWebDavUrl}books/"
defaultBookWebDav = RemoteBookWebDav(rootBooksUrl, mAuthorization)
authorization = mAuthorization
}

View File

@ -178,13 +178,14 @@ open class WebDav(
//依然是优化支持 caddy 自建的 WebDav ,其目录后缀都为“/”, 所以删除“/”的判定,不然无法获取该目录项
val href = element.findNS("href", ns)[0].text().replace("+", "%2B")
val hrefDecode = URLDecoder.decode(href, "UTF-8")
.removeSuffix("/")
val fileName = hrefDecode.substringAfterLast("/")
val webDavFile: WebDav
try {
val urlName = hrefDecode.ifEmpty {
url.file.replace("/", "")
}
val displayName = element
.findNS("displayname", ns)
.firstOrNull()?.text().orEmpty()
val contentType = element
.findNS("getcontenttype", ns)
.firstOrNull()?.text().orEmpty()
@ -206,7 +207,7 @@ open class WebDav(
webDavFile = WebDavFile(
fullURL,
authorization,
displayName = fileName,
displayName = displayName,
urlName = urlName,
size = size,
contentType = contentType,

View File

@ -27,7 +27,7 @@
},
"devDependencies": {
"@vitejs/plugin-vue": "^5.0.4",
"eslint": "^8.40.0",
"eslint": "^9.2.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.0.0",
"eslint-plugin-vue": "^9.12.0",