mirror of
https://github.com/gotson/komga.git
synced 2025-12-15 21:12:27 +01:00
style: ktlint format
This commit is contained in:
parent
3831baddfc
commit
c508f30229
3 changed files with 20 additions and 24 deletions
|
|
@ -42,7 +42,6 @@ class SecurityConfiguration(
|
|||
http
|
||||
.cors {}
|
||||
.csrf { it.disable() }
|
||||
|
||||
.authorizeRequests {
|
||||
// restrict all actuator endpoints to ADMIN only
|
||||
it.requestMatchers(EndpointRequest.toAnyEndpoint()).hasRole(ROLE_ADMIN)
|
||||
|
|
@ -61,15 +60,12 @@ class SecurityConfiguration(
|
|||
"/sse/**"
|
||||
).hasRole(ROLE_USER)
|
||||
}
|
||||
|
||||
.headers {
|
||||
it.cacheControl().disable() // headers are set in WebMvcConfiguration
|
||||
}
|
||||
|
||||
.httpBasic {
|
||||
it.authenticationDetailsSource(userAgentWebAuthenticationDetailsSource)
|
||||
}
|
||||
|
||||
.logout {
|
||||
it.logoutUrl("/api/v1/users/logout")
|
||||
it.deleteCookies(sessionCookieName)
|
||||
|
|
|
|||
|
|
@ -20,8 +20,8 @@ class BookMetadataUpdateDto {
|
|||
|
||||
var summary: String?
|
||||
by Delegates.observable(null) { prop, _, _ ->
|
||||
isSet[prop.name] = true
|
||||
}
|
||||
isSet[prop.name] = true
|
||||
}
|
||||
|
||||
var summaryLock: Boolean? = null
|
||||
|
||||
|
|
@ -36,31 +36,31 @@ class BookMetadataUpdateDto {
|
|||
|
||||
var releaseDate: LocalDate?
|
||||
by Delegates.observable(null) { prop, _, _ ->
|
||||
isSet[prop.name] = true
|
||||
}
|
||||
isSet[prop.name] = true
|
||||
}
|
||||
|
||||
var releaseDateLock: Boolean? = null
|
||||
|
||||
@get:Valid
|
||||
var authors: List<AuthorUpdateDto>?
|
||||
by Delegates.observable(null) { prop, _, _ ->
|
||||
isSet[prop.name] = true
|
||||
}
|
||||
isSet[prop.name] = true
|
||||
}
|
||||
|
||||
var authorsLock: Boolean? = null
|
||||
|
||||
var tags: Set<String>?
|
||||
by Delegates.observable(null) { prop, _, _ ->
|
||||
isSet[prop.name] = true
|
||||
}
|
||||
isSet[prop.name] = true
|
||||
}
|
||||
|
||||
var tagsLock: Boolean? = null
|
||||
|
||||
@get:NullOrBlankOrISBN
|
||||
var isbn: String?
|
||||
by Delegates.observable(null) { prop, _, _ ->
|
||||
isSet[prop.name] = true
|
||||
}
|
||||
isSet[prop.name] = true
|
||||
}
|
||||
|
||||
var isbnLock: Boolean? = null
|
||||
}
|
||||
|
|
|
|||
|
|
@ -35,16 +35,16 @@ class SeriesMetadataUpdateDto {
|
|||
|
||||
var readingDirection: SeriesMetadata.ReadingDirection?
|
||||
by Delegates.observable(null) { prop, _, _ ->
|
||||
isSet[prop.name] = true
|
||||
}
|
||||
isSet[prop.name] = true
|
||||
}
|
||||
|
||||
var readingDirectionLock: Boolean? = null
|
||||
|
||||
@get:PositiveOrZero
|
||||
var ageRating: Int?
|
||||
by Delegates.observable(null) { prop, _, _ ->
|
||||
isSet[prop.name] = true
|
||||
}
|
||||
isSet[prop.name] = true
|
||||
}
|
||||
|
||||
var ageRatingLock: Boolean? = null
|
||||
|
||||
|
|
@ -55,23 +55,23 @@ class SeriesMetadataUpdateDto {
|
|||
|
||||
var genres: Set<String>?
|
||||
by Delegates.observable(null) { prop, _, _ ->
|
||||
isSet[prop.name] = true
|
||||
}
|
||||
isSet[prop.name] = true
|
||||
}
|
||||
|
||||
var genresLock: Boolean? = null
|
||||
|
||||
var tags: Set<String>?
|
||||
by Delegates.observable(null) { prop, _, _ ->
|
||||
isSet[prop.name] = true
|
||||
}
|
||||
isSet[prop.name] = true
|
||||
}
|
||||
|
||||
var tagsLock: Boolean? = null
|
||||
|
||||
@get:Positive
|
||||
var totalBookCount: Int?
|
||||
by Delegates.observable(null) { prop, _, _ ->
|
||||
isSet[prop.name] = true
|
||||
}
|
||||
isSet[prop.name] = true
|
||||
}
|
||||
|
||||
var totalBookCountLock: Boolean? = null
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue