Ayfri
01/24/2024, 6:23 PMRes
object introduction is a really good interesting change, you should maybe investigate if it is feasible for Kobweb, it would be a great feature honestly 👌David Herman
01/25/2024, 8:29 PMNorbi
01/26/2024, 8:13 PM--silk-button-color
) seem to remain unset (see the attached image).
My bootstrap is the following, what is missing?
renderComposable("root") {
prepareSilkFoundation({
it.stylesheet.registerStyleBase("*") {
Modifier.boxSizing(BoxSizing.BorderBox)
}
it.config.initialColorMode = LIGHT
initSilkWidgets(it)
it.theme.registerComponentStyle(CustomStyle)
}) {
renderWithDeferred {
Surface {
Thanks.Ayfri
01/28/2024, 12:05 PM?_kobwebIsExporting=true
parameter added ? For example you can go on <http://ayfri.com/|ayfri.com/>
but also <http://ayfri.com/?_kobwebIsExporting=true/|ayfri.com/?_kobwebIsExporting=true/>
, it will be the exact same page.
I don't want these fantom pages to be generatedjeff
01/28/2024, 10:55 PM> Task :site:kspKotlinJvm FAILED
e: [ksp] java.lang.IllegalStateException: KobwebProcessorProvider: Missing processor mode (kobweb.mode)
at com.varabyte.kobweb.ksp.KobwebProcessorProvider.create(KobwebProcessorProvider.kt:20)
at com.google.devtools.ksp.AbstractKotlinSymbolProcessingExtension$doAnalysis$7$1.invoke(KotlinSymbolProcessingExtension.kt:277)...snip...
Looks like in order to even compile, Kobweb wants to know what mode should be used. But I don't care about mode, I'm just running tests. Did I miss something obvious? Can I set a mode from my test run configuration to make it happy?mohamed rejeb
01/29/2024, 8:00 AMflex-grow
for weight, it looks like flex
is closer to Compose weight
Most of the time, I find myself changing weight
to flex
to have the correct behavior.Alexander Black
01/30/2024, 12:56 AMGarret Yoder
01/30/2024, 8:09 PMDavid Herman
02/01/2024, 4:46 AMjeff
02/02/2024, 2:37 AMAyfri
02/06/2024, 12:53 PMDavid Herman
02/07/2024, 7:30 PMExamplePage.kt
now generates example-page
instead of examplepage
).
Hyphens are actually encouraged by Google for SEO, so I apologize it took me so long to even notice that my defaults were wrong here! Fortunately, most pages in most sites are single words, and Kobweb provides rich route overriding support, so I imagine most people who cared have worked around this already.
Changing route generation logic was easy -- making sure we didn't break old sites was hard! We added a detailed README section so you can read more about our approach to navigating this situation here.
Despite the foundational change, updating to this version should hopefully be fairly painless. Of course, if you run into any issues, please reply to this thread.David Herman
02/09/2024, 5:04 PMDavid Herman
02/11/2024, 10:11 PMgroup = "com.example.mySite"
in your build.gradle.kts file), then v0.16.0 won't work and you'll need to use v0.16.2.
More details in the release notes for the curious. If you upgraded to v0.16.0 and it is working for you (which is expected for most users), there is no need for you to upgrade.Norbi
02/13/2024, 11:05 AMAttrsScope
subtypes, like InputAttrsScope
?
For example configuring TextInput()
using `Modifier`s, like: TextInput(value = xyz, Modifier.onInput {...}.toAttrs())
?Felipe Coronado
02/14/2024, 4:33 PMDavid Herman
02/17/2024, 11:25 PMNorbi
02/20/2024, 5:08 PMModifier.width(Breakpoint.LG.toWidth())
I currently use the following non-type-safe solution:
styleModifier {
property("width", Breakpoint.LG.toWidth())
}
Norbi
02/20/2024, 7:24 PMModifier
system and I use it almost always.
I started to write trivial utility functions for HTML tags like:
@Composable
fun Div(
modifier: Modifier,
content: ContentBuilder<HTMLDivElement>? = null
) =
Div(modifier.toAttrs(), content)
It doesn't seem like a big deal as I spare only one .toAttrs()
in each call (of course only if I don't need the .toAttrs {}
variant).
But as I started to use them, it seems that this small decrement of "boilerplate" counts, too 🙂
My question is: is there a "deeper" reason why Kobweb does not provide such utility functions (that I might not have thought of for some reason), or are these just simply not implemented?
Thanks.David Herman
02/29/2024, 6:08 PMjeff
03/01/2024, 7:14 PMkobwebStart
but that detaches the actual server process.
2. can I get an instance of Logger
outside of a request context? e.g. to log some things on server initialization?David Herman
03/06/2024, 6:03 PMDavid Herman
03/13/2024, 7:50 PMjeff
03/14/2024, 4:09 PMApiStream
as a top-level variable, it is set up automatically. But is there a way to manually add one after startup, so that I can defer its initialization?David Herman
03/14/2024, 10:05 PMPablichjenkov
03/14/2024, 10:32 PMbuilt with kobweb
pageDavid Herman
03/15/2024, 10:22 PMjeff
03/19/2024, 4:28 PMVojtěch Hořánek
03/24/2024, 12:17 AMSlackbot
03/26/2024, 12:04 PM