Drop indexes + view
This commit is contained in:
@@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user