tryling cosmetics

This commit is contained in:
Sergey Chernov 2025-11-21 00:45:18 +01:00
parent fa3fda144b
commit 4e37d0be26
4 changed files with 6 additions and 6 deletions

View File

@ -75,7 +75,7 @@ ssh -p ${SSH_PORT} ${SSH_HOST} "
SRC=./site/build/dist/js/productionExecutable SRC=./site/build/dist/js/productionExecutable
rsync -e "ssh -p ${SSH_PORT}" -avz -r -d --delete ${SRC}/* ${SSH_HOST}:${ROOT}/build/dist rsync -e "ssh -p ${SSH_PORT}" -avz -r -d --delete ${SRC}/* ${SSH_HOST}:${ROOT}/build/dist
checkState checkState
rsync -e "ssh -p ${SSH_PORT}" -avz ./static/* ${SSH_HOST}:${ROOT}/build/dist #rsync -e "ssh -p ${SSH_PORT}" -avz ./static/* ${SSH_HOST}:${ROOT}/build/dist
#checkState #checkState
#rsync -e "ssh -p ${SSH_PORT}" -avz -r -d --delete private_data/* ${SSH_HOST}:${ROOT}/build/private_data #rsync -e "ssh -p ${SSH_PORT}" -avz -r -d --delete private_data/* ${SSH_HOST}:${ROOT}/build/private_data
#checkState #checkState

View File

@ -71,7 +71,7 @@ fun HomePage() {
// Code sample // Code sample
val code = """ val code = """
// Create, transform, and verify — the Lyng way // Create, transform, and verify — the Lyng way
val data = [1, 2, 3, 4, 5] val data = 1..5
val evens = data.filter { it % 2 == 0 }.map { it * it } val evens = data.filter { it % 2 == 0 }.map { it * it }
assertEquals([4, 16], evens) assertEquals([4, 16], evens)
>>> void >>> void

View File

@ -17,9 +17,9 @@
import androidx.compose.runtime.* import androidx.compose.runtime.*
import kotlinx.coroutines.launch import kotlinx.coroutines.launch
import net.sergeych.lyng.Scope
import org.jetbrains.compose.web.attributes.placeholder import org.jetbrains.compose.web.attributes.placeholder
import org.jetbrains.compose.web.dom.* import org.jetbrains.compose.web.dom.*
import net.sergeych.lyng.Scope
@Composable @Composable
fun TryLyngPage() { fun TryLyngPage() {
@ -31,7 +31,7 @@ fun TryLyngPage() {
// Try changing the data and press Ctrl+Enter or click Run. // Try changing the data and press Ctrl+Enter or click Run.
import lyng.stdlib import lyng.stdlib
val data = [1, 2, 3, 4, 5] val data = 1..5
val evens = data.filter { it % 2 == 0 }.map { it * it } val evens = data.filter { it % 2 == 0 }.map { it * it }
evens evens
""".trimIndent() """.trimIndent()
@ -103,7 +103,7 @@ fun TryLyngPage() {
PageTemplate(title = "Try Lyng", showBack = true) { PageTemplate(title = "Try Lyng", showBack = true) {
// Intro // Intro
P({ classes("lead", "text-muted", "mb-3") }) { P({ classes("lead", "text-muted", "mb-3") }) {
Text("Type or paste Lyng code and run it right in your browser.") Text("Type or paste Lyng code and run it right in your browser with embedded Lyng interpreter")
} }
// Editor // Editor

View File

@ -20,7 +20,7 @@
<head> <head>
<meta charset="utf-8" /> <meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" /> <meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Compose HTML SPA</title> <title>Lyng language</title>
<!-- GitHub Markdown CSS (light and dark). We toggle these from the app. --> <!-- GitHub Markdown CSS (light and dark). We toggle these from the app. -->
<link <link
id="md-light" id="md-light"