oh well
This commit is contained in:
parent
fa8684ed4b
commit
d1ec38f706
7 changed files with 18 additions and 28 deletions
|
@ -8,11 +8,7 @@ import Layout from "../layouts/Layout.astro";
|
||||||
<section class="content">
|
<section class="content">
|
||||||
<h1 class="title">nelle.observer</h1>
|
<h1 class="title">nelle.observer</h1>
|
||||||
</section>
|
</section>
|
||||||
<div class="container">
|
<section class="content">
|
||||||
<section class="content" style="flex: 60%;">
|
|
||||||
<p>hello, what brings you here?</p>
|
|
||||||
</section>
|
|
||||||
<section class="content" style="flex: 1000%;">
|
|
||||||
<p>hello, what brings you here?</p>
|
<p>hello, what brings you here?</p>
|
||||||
<p>
|
<p>
|
||||||
my name is nelle (not Nelle, nelle), some call me <span class="glitch">[data expunged]</span>.
|
my name is nelle (not Nelle, nelle), some call me <span class="glitch">[data expunged]</span>.
|
||||||
|
@ -20,10 +16,6 @@ import Layout from "../layouts/Layout.astro";
|
||||||
i am a 20-something year old, <span class="glitch">[data expunged]</span>, with not much else going on.
|
i am a 20-something year old, <span class="glitch">[data expunged]</span>, with not much else going on.
|
||||||
</p>
|
</p>
|
||||||
</section>
|
</section>
|
||||||
<section class="content" style="flex: 60%;">
|
|
||||||
<p>hello, what brings you here?</p>
|
|
||||||
</section>
|
|
||||||
</div>
|
|
||||||
<section class="content">
|
<section class="content">
|
||||||
<div id="lastfm-widget" style="text-align: center;">
|
<div id="lastfm-widget" style="text-align: center;">
|
||||||
<div id="widget">
|
<div id="widget">
|
||||||
|
|
1
ktor/.idea/.name
Normal file
1
ktor/.idea/.name
Normal file
|
@ -0,0 +1 @@
|
||||||
|
nelle-observer
|
6
ktor/.idea/vcs.xml
Normal file
6
ktor/.idea/vcs.xml
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="VcsDirectoryMappings">
|
||||||
|
<mapping directory="$PROJECT_DIR$/.." vcs="Git" />
|
||||||
|
</component>
|
||||||
|
</project>
|
|
@ -40,3 +40,7 @@ dependencies {
|
||||||
kotlin {
|
kotlin {
|
||||||
jvmToolchain(21)
|
jvmToolchain(21)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
task<Exec>("buildAstro") {
|
||||||
|
commandLine("pnpm", "-C", "../astro/", "run", "build")
|
||||||
|
}
|
|
@ -1,5 +1,5 @@
|
||||||
plugins {
|
plugins {
|
||||||
id("org.gradle.toolchains.foojay-resolver-convention") version "0.8.0"
|
id("org.gradle.toolchains.foojay-resolver-convention") version "0.8.0"
|
||||||
}
|
}
|
||||||
rootProject.name = "nelleObserverSite"
|
rootProject.name = "nelle-observer"
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@ fun main(args: Array<String>) {
|
||||||
}
|
}
|
||||||
|
|
||||||
fun Application.module() {
|
fun Application.module() {
|
||||||
configureTemplating()
|
//configureTemplating()
|
||||||
configureSecurity()
|
configureSecurity()
|
||||||
configureRouting()
|
configureRouting()
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,8 +7,9 @@ import io.ktor.server.response.*
|
||||||
import io.ktor.server.routing.*
|
import io.ktor.server.routing.*
|
||||||
import io.ktor.server.plugins.statuspages.*
|
import io.ktor.server.plugins.statuspages.*
|
||||||
import kotlinx.css.html
|
import kotlinx.css.html
|
||||||
|
import java.io.File
|
||||||
|
|
||||||
fun Application.configureRouting() {
|
fun Application.configureRouting() {/*
|
||||||
// Import status pages plugin
|
// Import status pages plugin
|
||||||
install(StatusPages) {
|
install(StatusPages) {
|
||||||
exception<IllegalStateException> { call, cause ->
|
exception<IllegalStateException> { call, cause ->
|
||||||
|
@ -16,24 +17,10 @@ fun Application.configureRouting() {
|
||||||
}
|
}
|
||||||
|
|
||||||
statusFile(HttpStatusCode.NotFound, filePattern = "statusPages/404.html")
|
statusFile(HttpStatusCode.NotFound, filePattern = "statusPages/404.html")
|
||||||
}
|
}*/
|
||||||
|
|
||||||
routing {
|
routing {
|
||||||
/*
|
|
||||||
// Status Page Test
|
|
||||||
get("/error-test") {
|
|
||||||
throw IllegalStateException("Too Busy")
|
|
||||||
}
|
|
||||||
|
|
||||||
// Resond with custom html content
|
|
||||||
get("/about") {
|
|
||||||
val text = "<h1>:3</h1>"
|
|
||||||
val type = ContentType.parse("text/html")
|
|
||||||
call.respondText(text, type)
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
||||||
// Set a static resource path 'resources/content/' to be served
|
// Set a static resource path 'resources/content/' to be served
|
||||||
staticResources("/static", "static")
|
staticFiles("/", File("static"))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue