Skip to content

Commit

Permalink
1.0.64 (#69)
Browse files Browse the repository at this point in the history
* 1.0.64

* Active tab buttons show initially
  • Loading branch information
acharneski authored Apr 22, 2024
1 parent 5b1ef56 commit 8f1294f
Show file tree
Hide file tree
Showing 8 changed files with 31 additions and 22 deletions.
8 changes: 4 additions & 4 deletions core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ kotlin {

val junit_version = "5.10.1"
val logback_version = "1.4.11"
val jackson_version = "2.15.3"
val jackson_version = "2.17.0"

dependencies {

implementation(group = "com.simiacryptus", name = "jo-penai", version = "1.0.52")
implementation(group = "com.simiacryptus", name = "jo-penai", version = "1.0.53")

implementation("org.apache.commons:commons-text:1.11.0")

Expand Down Expand Up @@ -77,12 +77,12 @@ tasks {

compileKotlin {
compilerOptions {
javaParameters = true
javaParameters.set(true)
}
}
compileTestKotlin {
compilerOptions {
javaParameters = true
javaParameters.set(true)
}
}
test {
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Gradle Releases -> https://github.com/gradle/gradle/releases
libraryGroup = com.simiacryptus.skyenet
libraryVersion = 1.0.63
libraryVersion = 1.0.64
gradleVersion = 7.6.1
4 changes: 2 additions & 2 deletions groovy/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,12 @@ tasks {

compileKotlin {
compilerOptions {
javaParameters = true
javaParameters.set(true)
}
}
compileTestKotlin {
compilerOptions {
javaParameters = true
javaParameters.set(true)
}
}
test {
Expand Down
4 changes: 2 additions & 2 deletions kotlin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,12 @@ tasks {

compileKotlin {
compilerOptions {
javaParameters = true
javaParameters.set(true)
}
}
compileTestKotlin {
compilerOptions {
javaParameters = true
javaParameters.set(true)
}
}
test {
Expand Down
18 changes: 9 additions & 9 deletions webui/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ kotlin {

val kotlin_version = "2.0.0-Beta5"
val jetty_version = "11.0.18"
val jackson_version = "2.15.3"
val jackson_version = "2.17.0"
dependencies {

implementation(group = "com.simiacryptus", name = "jo-penai", version = "1.0.52")
implementation(group = "com.simiacryptus", name = "jo-penai", version = "1.0.53")

implementation(project(":core"))
implementation(project(":kotlin"))
Expand Down Expand Up @@ -89,24 +89,24 @@ dependencies {
}

sass {
omitSourceMapUrl = false
outputStyle = OutputStyle.EXPANDED
sourceMapContents = false
sourceMapEmbed = false
sourceMapEnabled = true
omitSourceMapUrl.set(false)
outputStyle.set(OutputStyle.EXPANDED)
sourceMapContents.set(false)
sourceMapEmbed.set(false)
sourceMapEnabled.set(true)
}


tasks {

compileKotlin {
compilerOptions {
javaParameters = true
javaParameters.set(true)
}
}
compileTestKotlin {
compilerOptions {
javaParameters = true
javaParameters.set(true)
}
}
test {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,12 @@ object AgentPatterns {
|<div class="tabs">
|${
map.keys.joinToString("\n") { key ->
"""<button class="tab-button" data-for-tab="$key">$key</button>"""
"""<button class="tab-button${
when {
key == map.keys.first() -> " active"
else -> ""
}
}" data-for-tab="$key">$key</button>"""
}/*.indent(" ")*/
}
|</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,12 @@ open class TabbedDisplay(

open fun renderTabButtons() = """
<div class="tabs">${
tabs.toMap().keys.withIndex().joinToString("\n") { (idx, key: String) ->
"""<button class="tab-button" data-for-tab="$idx">$key</button>"""
tabs.withIndex().joinToString("\n") { (idx, pair) ->
if (idx == selectedTab) {
"""<button class="tab-button active" data-for-tab="$idx">${pair.first}</button>"""
} else {
"""<button class="tab-button" data-for-tab="$idx">${pair.first}</button>"""
}
}
}</div>
""".trimIndent()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ object MarkdownUtil {
val replacement = if (tabs) """
|<div class="tabs-container">
| <div class="tabs">
| <button class="tab-button" data-for-tab="1">Diagram</button>
| <button class="tab-button active" data-for-tab="1">Diagram</button>
| <button class="tab-button" data-for-tab="2">Source</button>
| </div>
| <div class="tab-content active" data-tab="1">$mermaidDiagramHTML</div>
Expand Down

0 comments on commit 8f1294f

Please sign in to comment.