Skip to content

Commit

Permalink
Upgrade to KVision 4.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
rjaros committed Feb 24, 2021
1 parent 95529dc commit e412058
Show file tree
Hide file tree
Showing 90 changed files with 468 additions and 460 deletions.
4 changes: 2 additions & 2 deletions addressbook-fullstack-javalin/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
javaVersion=1.8
#Plugins
systemProp.kotlinVersion=1.4.30
serializationVersion=1.1.0-RC
serializationVersion=1.1.0
#Dependencies
systemProp.kvisionVersion=4.0.0
systemProp.kvisionVersion=4.1.0
slf4jVersion=1.7.28
hikariVersion=3.2.0
commonsCodecVersion=1.10
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,16 @@ object EditPanel : StackPanel() {

add(HPanel(spacing = 10) {
button(tr("Save"), "fas fa-check", ButtonStyle.PRIMARY).onClick {
save()
this@EditPanel.save()
}
button(tr("Cancel"), "fas fa-times", ButtonStyle.SECONDARY).onClick {
close()
this@EditPanel.close()
}
})
onEvent {
keydown = {
if (it.keyCode == ENTER_KEY) {
save()
this@EditPanel.save()
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ object ListPanel : SimplePanel() {
padding = 10.px

val table = Table(types = setOf(TableType.STRIPED, TableType.HOVER)) {
addHeaderCell(sortingHeaderCell(tr("First name"), Sort.FN))
addHeaderCell(sortingHeaderCell(tr("Last name"), Sort.LN))
addHeaderCell(sortingHeaderCell(tr("E-mail"), Sort.E))
addHeaderCell(sortingHeaderCell("", Sort.F))
addHeaderCell(this@ListPanel.sortingHeaderCell(tr("First name"), Sort.FN))
addHeaderCell(this@ListPanel.sortingHeaderCell(tr("Last name"), Sort.LN))
addHeaderCell(this@ListPanel.sortingHeaderCell(tr("E-mail"), Sort.E))
addHeaderCell(this@ListPanel.sortingHeaderCell("", Sort.F))
addHeaderCell(HeaderCell(""))
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class LoginWindow : Dialog<Credentials>(closeButton = false, escape = false, ani
onEvent {
keydown = {
if (it.keyCode == ENTER_KEY) {
processCredentials()
this@LoginWindow.processCredentials()
}
}
}
Expand Down Expand Up @@ -62,16 +62,16 @@ class LoginWindow : Dialog<Credentials>(closeButton = false, escape = false, ani

}
cancelButton = Button(tr("Cancel"), "fas fa-times").onClick {
hideRegisterForm()
this@LoginWindow.hideRegisterForm()
}
registerButton = Button(tr("Register"), "fas fa-check", ButtonStyle.PRIMARY).onClick {
processRegister()
this@LoginWindow.processRegister()
}
loginButton = Button(tr("Login"), "fas fa-check", ButtonStyle.PRIMARY).onClick {
processCredentials()
this@LoginWindow.processCredentials()
}
userButton = Button(tr("Register user"), "fas fa-user").onClick {
showRegisterForm()
this@LoginWindow.showRegisterForm()
}
addButton(userButton)
addButton(loginButton)
Expand Down
4 changes: 2 additions & 2 deletions addressbook-fullstack-jooby/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
javaVersion=1.8
#Plugins
systemProp.kotlinVersion=1.4.30
serializationVersion=1.1.0-RC
serializationVersion=1.1.0
#Dependencies
systemProp.kvisionVersion=4.0.0
systemProp.kvisionVersion=4.1.0
systemProp.joobyVersion=2.9.5
h2Version=1.4.197
pgsqlVersion=42.2.2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,16 @@ object EditPanel : StackPanel() {

add(HPanel(spacing = 10) {
button(tr("Save"), "fas fa-check", ButtonStyle.PRIMARY).onClick {
save()
this@EditPanel.save()
}
button(tr("Cancel"), "fas fa-times", ButtonStyle.SECONDARY).onClick {
close()
this@EditPanel.close()
}
})
onEvent {
keydown = {
if (it.keyCode == ENTER_KEY) {
save()
this@EditPanel.save()
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ object ListPanel : SimplePanel() {
padding = 10.px

val table = Table(types = setOf(TableType.STRIPED, TableType.HOVER)) {
addHeaderCell(sortingHeaderCell(tr("First name"), Sort.FN))
addHeaderCell(sortingHeaderCell(tr("Last name"), Sort.LN))
addHeaderCell(sortingHeaderCell(tr("E-mail"), Sort.E))
addHeaderCell(sortingHeaderCell("", Sort.F))
addHeaderCell(this@ListPanel.sortingHeaderCell(tr("First name"), Sort.FN))
addHeaderCell(this@ListPanel.sortingHeaderCell(tr("Last name"), Sort.LN))
addHeaderCell(this@ListPanel.sortingHeaderCell(tr("E-mail"), Sort.E))
addHeaderCell(this@ListPanel.sortingHeaderCell("", Sort.F))
addHeaderCell(HeaderCell(""))
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class LoginWindow : Dialog<Credentials>(closeButton = false, escape = false, ani
onEvent {
keydown = {
if (it.keyCode == ENTER_KEY) {
processCredentials()
this@LoginWindow.processCredentials()
}
}
}
Expand Down Expand Up @@ -71,16 +71,16 @@ class LoginWindow : Dialog<Credentials>(closeButton = false, escape = false, ani

}
cancelButton = Button(tr("Cancel"), "fas fa-times").onClick {
hideRegisterForm()
this@LoginWindow.hideRegisterForm()
}
registerButton = Button(tr("Register"), "fas fa-check", ButtonStyle.PRIMARY).onClick {
processRegister()
this@LoginWindow.processRegister()
}
loginButton = Button(tr("Login"), "fas fa-check", ButtonStyle.PRIMARY).onClick {
processCredentials()
this@LoginWindow.processCredentials()
}
userButton = Button(tr("Register user"), "fas fa-user").onClick {
showRegisterForm()
this@LoginWindow.showRegisterForm()
}
addButton(userButton)
addButton(loginButton)
Expand Down
4 changes: 2 additions & 2 deletions addressbook-fullstack-ktor/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
javaVersion=1.8
#Plugins
systemProp.kotlinVersion=1.4.30
serializationVersion=1.1.0-RC
serializationVersion=1.1.0
#Dependencies
systemProp.kvisionVersion=4.0.0
systemProp.kvisionVersion=4.1.0
ktorVersion=1.5.1
hikariVersion=3.2.0
commonsCodecVersion=1.10
Expand Down
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
package com.example

import kotlinx.coroutines.GlobalScope
import kotlinx.coroutines.launch
import io.kvision.core.onEvent
import io.kvision.form.FormPanel
import io.kvision.form.formPanel
import io.kvision.form.check.CheckBox
import io.kvision.form.formPanel
import io.kvision.form.text.Text
import io.kvision.form.text.TextInputType
import io.kvision.html.button
import io.kvision.html.ButtonStyle
import io.kvision.html.button
import io.kvision.i18n.I18n.tr
import io.kvision.panel.HPanel
import io.kvision.panel.StackPanel
import io.kvision.utils.ENTER_KEY
import io.kvision.utils.px
import kotlinx.coroutines.GlobalScope
import kotlinx.coroutines.launch

object EditPanel : StackPanel() {

Expand All @@ -38,16 +38,16 @@ object EditPanel : StackPanel() {

add(HPanel(spacing = 10) {
button(tr("Save"), "fas fa-check", ButtonStyle.PRIMARY).onClick {
save()
this@EditPanel.save()
}
button(tr("Cancel"), "fas fa-times", ButtonStyle.SECONDARY).onClick {
close()
this@EditPanel.close()
}
})
onEvent {
keydown = {
if (it.keyCode == ENTER_KEY) {
save()
this@EditPanel.save()
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ object ListPanel : SimplePanel() {
padding = 10.px

val table = Table(types = setOf(TableType.STRIPED, TableType.HOVER)) {
addHeaderCell(sortingHeaderCell(tr("First name"), Sort.FN))
addHeaderCell(sortingHeaderCell(tr("Last name"), Sort.LN))
addHeaderCell(sortingHeaderCell(tr("E-mail"), Sort.E))
addHeaderCell(sortingHeaderCell("", Sort.F))
addHeaderCell(this@ListPanel.sortingHeaderCell(tr("First name"), Sort.FN))
addHeaderCell(this@ListPanel.sortingHeaderCell(tr("Last name"), Sort.LN))
addHeaderCell(this@ListPanel.sortingHeaderCell(tr("E-mail"), Sort.E))
addHeaderCell(this@ListPanel.sortingHeaderCell("", Sort.F))
addHeaderCell(HeaderCell(""))
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class LoginWindow : Dialog<Credentials>(closeButton = false, escape = false, ani
onEvent {
keydown = {
if (it.keyCode == ENTER_KEY) {
processCredentials()
this@LoginWindow.processCredentials()
}
}
}
Expand Down Expand Up @@ -62,16 +62,16 @@ class LoginWindow : Dialog<Credentials>(closeButton = false, escape = false, ani

}
cancelButton = Button(tr("Cancel"), "fas fa-times").onClick {
hideRegisterForm()
this@LoginWindow.hideRegisterForm()
}
registerButton = Button(tr("Register"), "fas fa-check", ButtonStyle.PRIMARY).onClick {
processRegister()
this@LoginWindow.processRegister()
}
loginButton = Button(tr("Login"), "fas fa-check", ButtonStyle.PRIMARY).onClick {
processCredentials()
this@LoginWindow.processCredentials()
}
userButton = Button(tr("Register user"), "fas fa-user").onClick {
showRegisterForm()
this@LoginWindow.showRegisterForm()
}
addButton(userButton)
addButton(loginButton)
Expand Down
6 changes: 3 additions & 3 deletions addressbook-fullstack-micronaut/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
javaVersion=1.8
#Plugins
systemProp.kotlinVersion=1.4.30
serializationVersion=1.1.0-RC
systemProp.micronautVersion=2.3.2
serializationVersion=1.1.0
systemProp.micronautVersion=2.3.3
systemProp.shadowVersion=6.0.0
#Dependencies
systemProp.kvisionVersion=4.0.0
systemProp.kvisionVersion=4.1.0
coroutinesVersion=1.4.2
springSecurityCryptoVersion=5.3.3.RELEASE
springDataR2dbcVersion=1.1.5.RELEASE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,16 @@ object EditPanel : StackPanel() {

add(HPanel(spacing = 10) {
button(tr("Save"), "fas fa-check", ButtonStyle.PRIMARY).onClick {
save()
this@EditPanel.save()
}
button(tr("Cancel"), "fas fa-times", ButtonStyle.SECONDARY).onClick {
close()
this@EditPanel.close()
}
})
onEvent {
keydown = {
if (it.keyCode == ENTER_KEY) {
save()
this@EditPanel.save()
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ object ListPanel : SimplePanel() {
padding = 10.px

val table = Table(types = setOf(TableType.STRIPED, TableType.HOVER)) {
addHeaderCell(sortingHeaderCell(tr("First name"), Sort.FN))
addHeaderCell(sortingHeaderCell(tr("Last name"), Sort.LN))
addHeaderCell(sortingHeaderCell(tr("E-mail"), Sort.E))
addHeaderCell(sortingHeaderCell("", Sort.F))
addHeaderCell(this@ListPanel.sortingHeaderCell(tr("First name"), Sort.FN))
addHeaderCell(this@ListPanel.sortingHeaderCell(tr("Last name"), Sort.LN))
addHeaderCell(this@ListPanel.sortingHeaderCell(tr("E-mail"), Sort.E))
addHeaderCell(this@ListPanel.sortingHeaderCell("", Sort.F))
addHeaderCell(HeaderCell(""))
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class LoginWindow : Dialog<Credentials>(closeButton = false, escape = false, ani
onEvent {
keydown = {
if (it.keyCode == ENTER_KEY) {
processCredentials()
this@LoginWindow.processCredentials()
}
}
}
Expand Down Expand Up @@ -62,16 +62,16 @@ class LoginWindow : Dialog<Credentials>(closeButton = false, escape = false, ani

}
cancelButton = Button(tr("Cancel"), "fas fa-times").onClick {
hideRegisterForm()
this@LoginWindow.hideRegisterForm()
}
registerButton = Button(tr("Register"), "fas fa-check", ButtonStyle.PRIMARY).onClick {
processRegister()
this@LoginWindow.processRegister()
}
loginButton = Button(tr("Login"), "fas fa-check", ButtonStyle.PRIMARY).onClick {
processCredentials()
this@LoginWindow.processCredentials()
}
userButton = Button(tr("Register user"), "fas fa-user").onClick {
showRegisterForm()
this@LoginWindow.showRegisterForm()
}
addButton(userButton)
addButton(loginButton)
Expand Down
6 changes: 3 additions & 3 deletions addressbook-fullstack-spring-boot/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
javaVersion=1.8
#Plugins
systemProp.kotlinVersion=1.4.30
serializationVersion=1.1.0-RC
serializationVersion=1.1.0
systemProp.dependencyManagementPluginVersion=1.0.9.RELEASE
systemProp.springBootVersion=2.4.2
systemProp.springBootVersion=2.4.3
#Dependencies
systemProp.kvisionVersion=4.0.0
systemProp.kvisionVersion=4.1.0
coroutinesVersion=1.4.2
r2dbcPostgresqlVersion=0.8.6.RELEASE
r2dbcH2Version=0.8.4.RELEASE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,16 @@ object EditPanel : StackPanel() {

add(HPanel(spacing = 10) {
button(tr("Save"), "fas fa-check", ButtonStyle.PRIMARY).onClick {
save()
this@EditPanel.save()
}
button(tr("Cancel"), "fas fa-times", ButtonStyle.SECONDARY).onClick {
close()
this@EditPanel.close()
}
})
onEvent {
keydown = {
if (it.keyCode == ENTER_KEY) {
save()
this@EditPanel.save()
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ object ListPanel : SimplePanel() {
padding = 10.px

val table = Table(types = setOf(TableType.STRIPED, TableType.HOVER)) {
addHeaderCell(sortingHeaderCell(tr("First name"), Sort.FN))
addHeaderCell(sortingHeaderCell(tr("Last name"), Sort.LN))
addHeaderCell(sortingHeaderCell(tr("E-mail"), Sort.E))
addHeaderCell(sortingHeaderCell("", Sort.F))
addHeaderCell(this@ListPanel.sortingHeaderCell(tr("First name"), Sort.FN))
addHeaderCell(this@ListPanel.sortingHeaderCell(tr("Last name"), Sort.LN))
addHeaderCell(this@ListPanel.sortingHeaderCell(tr("E-mail"), Sort.E))
addHeaderCell(this@ListPanel.sortingHeaderCell("", Sort.F))
addHeaderCell(HeaderCell(""))
}

Expand Down
Loading

0 comments on commit e412058

Please sign in to comment.