ktlint
This commit is contained in:
parent
f16fea1f49
commit
15bc0d4ce2
@ -20,4 +20,4 @@ object ServerSpec : ConfigSpec() {
|
|||||||
val port by optional(9092)
|
val port by optional(9092)
|
||||||
// this is needed to return full URLs when uploading via curl and for the AboutPage
|
// this is needed to return full URLs when uploading via curl and for the AboutPage
|
||||||
val domain by required<String>()
|
val domain by required<String>()
|
||||||
}
|
}
|
||||||
|
@ -65,4 +65,4 @@ object AboutPage {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -124,4 +124,4 @@ object Css {
|
|||||||
color = accent2
|
color = accent2
|
||||||
}
|
}
|
||||||
}.toString()
|
}.toString()
|
||||||
}
|
}
|
||||||
|
@ -28,4 +28,4 @@ object Homepage {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
package moe.kageru.kodeshare.pages
|
package moe.kageru.kodeshare.pages
|
||||||
|
|
||||||
import io.ktor.html.HtmlContent
|
import io.ktor.html.HtmlContent
|
||||||
import io.ktor.http.HttpStatusCode
|
|
||||||
import kotlinx.html.*
|
import kotlinx.html.*
|
||||||
|
|
||||||
object PastePage {
|
object PastePage {
|
||||||
|
@ -25,7 +25,7 @@ object PasteDao {
|
|||||||
PasteTable.select { PasteTable.uri.eq(uri) }.firstOrNull()
|
PasteTable.select { PasteTable.uri.eq(uri) }.firstOrNull()
|
||||||
}?.toPaste()
|
}?.toPaste()
|
||||||
|
|
||||||
init {
|
init {
|
||||||
val source = MariaDbDataSource().apply {
|
val source = MariaDbDataSource().apply {
|
||||||
userName = config[DatabaseSpec.user]
|
userName = config[DatabaseSpec.user]
|
||||||
setPassword(config[DatabaseSpec.password])
|
setPassword(config[DatabaseSpec.password])
|
||||||
@ -55,7 +55,7 @@ private object PasteTable : Table() {
|
|||||||
val uri = varchar("uri", 10).uniqueIndex()
|
val uri = varchar("uri", 10).uniqueIndex()
|
||||||
}
|
}
|
||||||
|
|
||||||
class MediumTextColumnType: IColumnType by TextColumnType() {
|
class MediumTextColumnType : IColumnType by TextColumnType() {
|
||||||
override fun sqlType(): String = "MEDIUMTEXT"
|
override fun sqlType(): String = "MEDIUMTEXT"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user