Personal website for liamjdavison.co.uk - using a combination of Spark-Kotlin, Thymeleaf
  • SCSS 71.9%
  • Kotlin 19.3%
  • HTML 3.3%
  • Java 3%
  • JavaScript 1.5%
  • Other 1%
Find a file
2018-08-13 14:02:03 +01:00
.idea Ditched Umbrella and returned to jQuery. Started to get my login modal dialog to appear. 2018-08-10 06:26:55 +01:00
gradle/wrapper Initial commit 2018-07-27 18:37:28 +01:00
src Beginnings of an edit page mode 2018-08-12 12:30:54 +01:00
.gitignore Some sort of banner in place now 2018-07-28 15:25:14 +01:00
build.gradle Bump to Kotlin 1.2.60. 2018-08-11 11:00:48 +01:00
bulma bulma example template thingy 2018-08-13 14:02:03 +01:00
gradlew Initial commit 2018-07-27 18:37:28 +01:00
gradlew.bat Initial commit 2018-07-27 18:37:28 +01:00
README.md Update README.md 2018-08-02 11:58:45 +01:00
settings.gradle Initial commit 2018-07-27 18:37:28 +01:00

liamjdavison-web

Personal website for liamjdavison.co.uk - using a combination of Spark-Kotlin, Thymeleaf, Exposed

Notes

A City has many Users A User has one city

A Page has many blocks A Block has one page

object Blocks : IntIdTable() { val refName = varchar("refName",255).index() val source = text("source")

val page = reference("page",Pages)

}

object Pages : IntIdTable() { val refName = varchar("refName",255).index() val title = text("title",1000).index() }

class Block(id: EntityID) : IntEntity(id) { companion object : IntEntityClass(Blocks)

var refName by Blocks.refName
var source by Blocks.source

var page by Page referencedOn Pages.city

}

class Page(id: EntityID) : IntEntity(id) { companion object : IntEntityClass(Pages)

var refName by Pages.refName

val blocks by Block referrersOn Blocks.page

}