diff options
author | Robert Jaros <rjaros@finn.pl> | 2019-03-05 18:19:53 +0100 |
---|---|---|
committer | Robert Jaros <rjaros@finn.pl> | 2019-03-05 18:19:53 +0100 |
commit | f96b7263a4ad5409b9d8eeea8e7b6359085203d1 (patch) | |
tree | e58caf1b4628347b83144fb5a04a7087401ee1ba /kvision-modules/kvision-bootstrap/src/main/kotlin/pl | |
parent | 7f551dd4494ed3585180dcf06b5a8ce347019826 (diff) | |
download | kvision-f96b7263a4ad5409b9d8eeea8e7b6359085203d1.tar.gz kvision-f96b7263a4ad5409b9d8eeea8e7b6359085203d1.tar.bz2 kvision-f96b7263a4ad5409b9d8eeea8e7b6359085203d1.zip |
Refactor kvision-bootstrap module.
Diffstat (limited to 'kvision-modules/kvision-bootstrap/src/main/kotlin/pl')
-rw-r--r-- | kvision-modules/kvision-bootstrap/src/main/kotlin/pl/treksoft/kvision/KVManagerBootstrap.kt | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/kvision-modules/kvision-bootstrap/src/main/kotlin/pl/treksoft/kvision/KVManagerBootstrap.kt b/kvision-modules/kvision-bootstrap/src/main/kotlin/pl/treksoft/kvision/KVManagerBootstrap.kt index 105fa507..01e1f3c3 100644 --- a/kvision-modules/kvision-bootstrap/src/main/kotlin/pl/treksoft/kvision/KVManagerBootstrap.kt +++ b/kvision-modules/kvision-bootstrap/src/main/kotlin/pl/treksoft/kvision/KVManagerBootstrap.kt @@ -33,17 +33,19 @@ internal object KVManagerBootstrap { private val bootstrapWebpack = try { val bootswatch = links.asList().find { it.getAttribute("href")?.contains("bootstrap.min.css") ?: false } if (bootswatch != null) { + require("bootstrap-webpack!./js/bootstrap.config.js") if (bootswatch.getAttribute("href")?.contains("/paper/") == true) { require("./css/paper.css") } - require("bootstrap-webpack!./js/bootstrap.config.js") + require("./css/style.css") } else { require("bootstrap-webpack") + require("./css/style.css") } } catch (e: Throwable) { } private val fontAwesomeWebpack = try { - require("font-awesome-webpack") + require("font-awesome-webpack-4") } catch (e: Throwable) { } private val awesomeBootstrapCheckbox = try { |