Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
[versions]
commonmark = "0.30.0"
coroutines = "1.11.0"
flyway = "13.6.0"
flyway = "13.7.0"
hikari = "7.1.0"
jooq = "3.21.8"
jsoup = "1.23.2"
junit = "6.1.3"
komok = "1.2.0"
kotlin = "2.4.20"
ksp = "2.3.12"
ktor = "3.5.2"
ktor = "3.6.0"
logback = "1.6.3"
micrometer = "1.17.1"
mockk = "1.14.11"
openai = "4.63.1"
openai = "4.64.0"
poet = "2.4.0"
postgresql = "42.7.13"
serialization = "1.11.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import io.heapy.kotbot.infra.web.KtorRoute
import io.ktor.http.ContentType
import io.ktor.http.HttpStatusCode
import io.ktor.server.html.respondHtml
import io.ktor.server.html.respondHtmlFragment
import io.ktor.server.html.respondHtmlPartial
import io.ktor.server.request.receiveParameters
import io.ktor.server.response.respondText
import io.ktor.server.routing.Routing
Expand Down Expand Up @@ -91,7 +91,7 @@ class AdminRoute(

val totalPages = (totalCount + pageSize - 1) / pageSize

call.respondHtmlFragment {
call.respondHtmlPartial {
table {
thead {
tr {
Expand Down
12 changes: 6 additions & 6 deletions tgpt/src/main/kotlin/io/heapy/tgpt/bot/admin/AdminRoute.kt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import io.heapy.tgpt.infra.jdbc.TransactionProvider
import io.heapy.tgpt.infra.web.KtorRoute
import io.ktor.http.HttpStatusCode
import io.ktor.server.html.respondHtml
import io.ktor.server.html.respondHtmlFragment
import io.ktor.server.html.respondHtmlPartial
import io.ktor.server.request.receiveParameters
import io.ktor.server.response.respondText
import io.ktor.server.routing.Routing
Expand Down Expand Up @@ -113,7 +113,7 @@ class AdminRoute(

val totalPages = (totalCount + pageSize - 1) / pageSize

call.respondHtmlFragment {
call.respondHtmlPartial {
table {
thead {
tr {
Expand Down Expand Up @@ -199,7 +199,7 @@ class AdminRoute(
users to count
}

call.respondHtmlFragment {
call.respondHtmlPartial {
table {
thead {
tr {
Expand Down Expand Up @@ -262,7 +262,7 @@ class AdminRoute(
users to count
}

call.respondHtmlFragment {
call.respondHtmlPartial {
table {
thead {
tr {
Expand Down Expand Up @@ -355,7 +355,7 @@ class AdminRoute(
StatsData(spend, calls, threads, messages)
}

call.respondHtmlFragment {
call.respondHtmlPartial {
div(classes = "stats-cards") {
div(classes = "stat-card") {
div(classes = "stat-value") { +"$${"%.4f".format(totalSpend)}" }
Expand Down Expand Up @@ -383,7 +383,7 @@ class AdminRoute(
apiCallDao.perUserStats()
}

call.respondHtmlFragment {
call.respondHtmlPartial {
table {
thead {
tr {
Expand Down
Loading