Skip to content

Commit

Permalink
Update kobweb, kotlin and compose html versions
Browse files Browse the repository at this point in the history
  • Loading branch information
EchoEllet committed Mar 22, 2024
1 parent aac3ab5 commit fb8a89a
Show file tree
Hide file tree
Showing 10 changed files with 23 additions and 12 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ A productive project developed for [Alrayada Alarabiah](https://alrayada.net/)
using Kotlin JS

The project is built using [Kobweb](https://kobweb.varabyte.com/) framework which is
built on top of Compose for Web
built on top of Compose for HTML

Compose for Web is experimental
Compose for HTML is under active development
and Kobweb is built on top of it, and
it adds some extra features, like static rendering for improved SEO

Expand Down
6 changes: 3 additions & 3 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[versions]
jetbrains-compose = "1.6.0"
kobweb = "0.17.0"
kotlin = "1.9.22"
jetbrains-compose = "1.6.1"
kobweb = "0.17.1"
kotlin = "1.9.23"

[libraries]
kobweb-api = { module = "com.varabyte.kobweb:kobweb-api", version.ref = "kobweb" }
Expand Down
2 changes: 1 addition & 1 deletion site/.kobweb/site/app.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion site/.kobweb/site/app.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion site/.kobweb/site/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
<a class="silk-link" href="https://facebook.com" title="Facebook"><span class="social-link-item fab fa-facebook fa-lg" style="margin: 0px 0px 40px;"></span></a><a class="silk-link" href="https://twitter.com" title="Twitter"><span class="social-link-item fab fa-twitter fa-lg" style="margin: 0px 0px 40px;"></span></a><a class="silk-link" href="https://instagram.com" title="Instagram"><span class="social-link-item fab fa-instagram fa-lg" style="margin: 0px 0px 40px;"></span></a><a class="silk-link" href="https://linkedin.com" title="Linkedin"><span class="social-link-item fab fa-linkedin fa-lg" style="margin: 0px;"></span></a>
</div>
<div class="kobweb-col kobweb-arrange-top kobweb-align-start">
<p class="hello-text silk-display-if-at-least-md">Hel</p>
<p class="hello-text silk-display-if-at-least-md">H</p>
<p class="silk-display-if-at-least-lg" style="margin: 20px 0px 0px; font-size: 68px; font-weight: bolder; color: rgb(18, 29, 52);">Alrayada Alarabiah</p>
<p class="silk-display-if-sm silk-display-until-lg" style="margin: 20px 0px 0px; font-size: 40px; font-weight: bolder; color: rgb(18, 29, 52);">Alrayada Alarabiah</p>
<p style="margin: 10px 0px 5px; font-size: 20px; font-weight: bold; color: rgb(18, 29, 52);">Company Profile: Where the Sky Knows No Limits.</p>
Expand Down
11 changes: 7 additions & 4 deletions site/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,7 @@ kotlin {
val languages = listOf("ar") // other than English
val pages = listOf("downloadMobileApp", "privacyPolicy", "deleteAccountInstructions") // all the pages in the `page` package

val generateLanguagesPagesTask = tasks.register("generateLanguagesPages") {
group = "net.freshplatform.alrayada_web"
tasks.register("generateLanguagesPages") {

fun toKebabCase(input: String): String {
var result = input.replace(Regex("([a-z])([A-Z])")) {
Expand All @@ -187,7 +186,9 @@ val generateLanguagesPagesTask = tasks.register("generateLanguagesPages") {
pagesDirectory.resolve("pages/$lang/${page}/Index.kt").apply {
parentFile.mkdirs()
writeText("""
package ${group}.pages.ar.${page}
package ${project.group}.pages.ar.${page}
// GENERATED FILE - DON'T MODIFY BY HAND
import androidx.compose.runtime.Composable
import com.varabyte.kobweb.core.Page
Expand All @@ -205,7 +206,9 @@ val generateLanguagesPagesTask = tasks.register("generateLanguagesPages") {
pagesDirectory.resolve("pages/$lang/Index.kt").apply {
parentFile.mkdirs()
writeText("""
package ${group}.pages.ar
package ${project.group}.pages.ar
// GENERATED FILE - DON'T MODIFY BY HAND
import androidx.compose.runtime.Composable
import com.varabyte.kobweb.core.Page
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package net.freshplatform.alrayada_web.pages.ar

// GENERATED FILE - DON'T MODIFY BY HAND

import androidx.compose.runtime.Composable
import com.varabyte.kobweb.core.Page
import com.varabyte.kobweb.core.rememberPageContext
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package net.freshplatform.alrayada_web.pages.ar.deleteAccountInstructions

// GENERATED FILE - DON'T MODIFY BY HAND

import androidx.compose.runtime.Composable
import com.varabyte.kobweb.core.Page
import com.varabyte.kobweb.core.rememberPageContext
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package net.freshplatform.alrayada_web.pages.ar.downloadMobileApp

// GENERATED FILE - DON'T MODIFY BY HAND

import androidx.compose.runtime.Composable
import com.varabyte.kobweb.core.Page
import com.varabyte.kobweb.core.rememberPageContext
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package net.freshplatform.alrayada_web.pages.ar.privacyPolicy

// GENERATED FILE - DON'T MODIFY BY HAND

import androidx.compose.runtime.Composable
import com.varabyte.kobweb.core.Page
import com.varabyte.kobweb.core.rememberPageContext
Expand Down

0 comments on commit fb8a89a

Please sign in to comment.