Drop indexes + view

This commit is contained in:
2020-08-19 18:47:19 +02:00
parent 315a01ea18
commit 68109f8666
6 changed files with 52 additions and 24 deletions
+1
View File
@@ -54,6 +54,7 @@ fun main() {
migrations.migrate()
val noteService = koin.get<NoteService>()
noteService.dropAllIndexes()
noteService.indexAll()
koin.get<Server>().start()
@@ -1,6 +1,8 @@
package be.simplenotes.app.views.components
import kotlinx.html.*
import kotlinx.html.ButtonType.submit
import kotlinx.html.FormMethod.post
fun DIV.noteListHeader(numberOfDeletedNotes: Int) {
div("flex justify-between mb-4") {
@@ -16,4 +18,14 @@ fun DIV.noteListHeader(numberOfDeletedNotes: Int) {
) { +"New" }
}
}
form(method = post, classes = "mb-4") {
val colors = "bg-gray-800 border-gray-700 focus:border-teal-500 text-white"
input(
name = "search",
classes = "$colors rounded w-3/4 border appearance-none focus:outline-none text-base p-2"
)
button(type = submit, classes = "btn btn-green w-1/4") {
+"search"
}
}
}