aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorecho <91651232+exhq@users.noreply.github.com>2022-08-27 18:03:26 +0430
committerecho <91651232+exhq@users.noreply.github.com>2022-08-27 18:03:26 +0430
commit46f3b3d5cb327abcbed3f5ad8b34ee006c98dfad (patch)
treeb5ad08c9df9af0d95484bdb8cbb5964c37f2e275
parent547f5955f1cca47750bfa18e31f1ee56f1b7b2f3 (diff)
downloadexhq.github.io-46f3b3d5cb327abcbed3f5ad8b34ee006c98dfad.tar.gz
exhq.github.io-46f3b3d5cb327abcbed3f5ad8b34ee006c98dfad.tar.bz2
exhq.github.io-46f3b3d5cb327abcbed3f5ad8b34ee006c98dfad.zip
funny
-rw-r--r--console/build.gradle.kts2
-rw-r--r--console/kotlin-js-store/yarn.lock5
-rw-r--r--console/src/jsMain/kotlin/main.kt31
-rw-r--r--console/src/jsMain/resources/index.html3
-rw-r--r--console/src/jsMain/resources/weebshit1.jpgbin0 -> 884231 bytes
5 files changed, 28 insertions, 13 deletions
diff --git a/console/build.gradle.kts b/console/build.gradle.kts
index 11f4915..61bed6e 100644
--- a/console/build.gradle.kts
+++ b/console/build.gradle.kts
@@ -1,5 +1,6 @@
plugins {
kotlin("multiplatform") version "1.7.10"
+
}
repositories {
@@ -21,6 +22,7 @@ kotlin {
sourceSets.named("jsMain") {
dependencies {
implementation("com.github.romangraef:neamoe:36374a0")
+ implementation(npm("@fontsource/comic-mono", "^4.5.0"))
}
}
}
diff --git a/console/kotlin-js-store/yarn.lock b/console/kotlin-js-store/yarn.lock
index d32ec54..f8c7216 100644
--- a/console/kotlin-js-store/yarn.lock
+++ b/console/kotlin-js-store/yarn.lock
@@ -149,6 +149,11 @@
resolved "https://registry.yarnpkg.com/@emotion/unitless/-/unitless-0.7.5.tgz#77211291c1900a700b8a78cfafda3160d76949ed"
integrity sha512-OWORNpfjMsSSUBVrRBVGECkhWcULOAJz9ZW8uK9qgxD+87M7jHRcvh/A96XXNhXTLmKcoYSQtBEX7lHMO7YRwg==
+"@fontsource/comic-mono@^4.5.0":
+ version "4.5.3"
+ resolved "https://registry.yarnpkg.com/@fontsource/comic-mono/-/comic-mono-4.5.3.tgz#74be41d04fe5a828e510f0b45b3236fbb31ffc14"
+ integrity sha512-5sQvhqC7zFNwsozVRePHEli1Cy+fDVjeFp3xMmWrNs7uwy6FMkxCdWFnDDoPLvUl3whGaGsywa/FcQMDrcy4+Q==
+
"@jridgewell/gen-mapping@^0.3.0", "@jridgewell/gen-mapping@^0.3.2":
version "0.3.2"
resolved "https://registry.yarnpkg.com/@jridgewell/gen-mapping/-/gen-mapping-0.3.2.tgz#c1aedc61e853f2bb9f5dfe6d4442d3b565b253b9"
diff --git a/console/src/jsMain/kotlin/main.kt b/console/src/jsMain/kotlin/main.kt
index c0a4f38..a607e69 100644
--- a/console/src/jsMain/kotlin/main.kt
+++ b/console/src/jsMain/kotlin/main.kt
@@ -1,20 +1,17 @@
import kotlinx.browser.document
-import kotlinx.css.minHeight
-import kotlinx.css.vh
+import kotlinx.css.*
import kotlinx.html.dom.append
import kotlinx.html.js.div
-import moe.nea89.website.KConsole
-import moe.nea89.website.Styles
-import moe.nea89.website.defaultLsCommand
-import moe.nea89.website.fileSystem
+import moe.nea89.website.*
import styled.injectGlobal
+import kotlin.time.Duration.Companion.milliseconds
val defaultFileSystem = fileSystem {
"etc" {
"passwd" text "hunter2"
}
- "home/nea" {
+ "home/exhq" {
"todo" text """
| - git gud
| - finish this website
@@ -25,17 +22,27 @@ val defaultFileSystem = fileSystem {
}
fun main() {
+
+ val root = document.body!!.append.div()
+ val console = KConsole.createFor(root, fileSystem = defaultFileSystem)
injectGlobal {
".${Styles.consoleClass}" {
minHeight = 100.vh
+ backgroundColor = Color("#282a39C6")
+ }
+ body {
+ backgroundImage = Image("url(weebshit1.jpg)")
+ backgroundSize = "cover"
}
- }
- val root = document.body!!.append.div()
- val console = KConsole.createFor(root, fileSystem = defaultFileSystem)
+ }
console.addLine("Starting stfff")
- console.PS1 = { "echowebsite > " }
+ console.PS1 = { "${console.fileAccessor!!.currentDir.joinToString("/", "/")} > " }
+ console.fileAccessor!!.cd("/home/exhq")
console.rerender()
- console.registerCommand(defaultLsCommand("ls"))
+ console.registerCommand(defaultLsCommand("ls", delayBetweenLines = 0.milliseconds))
+ console.registerCommand(defaultCdCommand("cd"))
+ console.registerCommand(defaultCatCommand("cat"))
+ console.registerCommand(defaultCwdCommand("cwd", "pwd"))
} \ No newline at end of file
diff --git a/console/src/jsMain/resources/index.html b/console/src/jsMain/resources/index.html
index dfa64ec..48937ec 100644
--- a/console/src/jsMain/resources/index.html
+++ b/console/src/jsMain/resources/index.html
@@ -4,8 +4,9 @@
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
+ <link rel="shortcut icon" href="favicon.png" type="image/png">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
- <title>Document</title>
+ <title>💯best console 100% fax no print</title>
</head>
<body>
<script src="exhqwebsitebeta.js"></script>
diff --git a/console/src/jsMain/resources/weebshit1.jpg b/console/src/jsMain/resources/weebshit1.jpg
new file mode 100644
index 0000000..4e85973
--- /dev/null
+++ b/console/src/jsMain/resources/weebshit1.jpg
Binary files differ