{"id":483325,"date":"2026-06-11T11:41:50","date_gmt":"2026-06-11T11:41:50","guid":{"rendered":"https:\/\/savepearlharbor.com\/?p=483325"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=483325","title":{"rendered":"Kilua: \u043f\u0440\u043e\u0441\u0438\u043c Kotlin \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0432\u0438\u0434, \u0447\u0442\u043e \u043e\u043d React"},"content":{"rendered":"<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u0412\u0440\u0435\u043c\u044f \u043e\u0442 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0432 Kotlin-\u043c\u0438\u0440\u0435 \u043f\u043e\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043d\u043e\u0432\u044b\u0439 \u0432\u0438\u0442\u043e\u043a \u043d\u0430\u0434\u0435\u0436\u0434\u044b: \u0432\u0434\u0440\u0443\u0433 web-frontend \u043c\u043e\u0436\u043d\u043e \u043f\u0438\u0441\u0430\u0442\u044c \u043d\u0430 \u043f\u0440\u0438\u0432\u044b\u0447\u043d\u043e\u043c \u044f\u0437\u044b\u043a\u0435. \u041e\u0431\u044b\u0447\u043d\u043e \u0442\u0430\u043a\u0438\u0435 \u043f\u043e\u043f\u044b\u0442\u043a\u0438 \u0437\u0430\u043a\u0430\u043d\u0447\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u0433\u0434\u0435-\u0442\u043e \u043c\u0435\u0436\u0434\u0443 \u201c\u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u201d \u0438 \u201c\u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u0432\u0441\u0435-\u0442\u0430\u043a\u0438 \u0441\u0434\u0435\u043b\u0430\u0435\u043c \u043d\u0430 React\/Vue\u201d. \u041d\u043e \u0438\u043d\u043e\u0433\u0434\u0430 \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u0438\u0439 \u044d\u043d\u0442\u0443\u0437\u0438\u0430\u0441\u0442 \u0432 \u0433\u043e\u043b\u043e\u0432\u0435 \u0432\u0441\u0435-\u0442\u0430\u043a\u0438 \u0445\u043e\u0447\u0435\u0442 \u043f\u043e\u0442\u044b\u043a\u0430\u0442\u044c \u043f\u0430\u043b\u043e\u0447\u043a\u043e\u0439 \u043d\u043e\u0432\u0443\u044e \u0448\u0442\u0443\u043a\u0443. \u0422\u0430\u043a \u044f \u0438 \u0434\u043e\u0431\u0440\u0430\u043b\u0441\u044f \u0434\u043e <a href=\"https:\/\/kilua.dev\/\" rel=\"noopener noreferrer nofollow\">Kilua<\/a> \u2014 \u043d\u043e\u0432\u043e\u0433\u043e web-\u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0430 \u0434\u043b\u044f Kotlin, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u044b\u0440\u043e\u0441 \u0440\u044f\u0434\u043e\u043c \u0441 <a href=\"https:\/\/kvision.io\/\" rel=\"noopener noreferrer nofollow\">KVision<\/a>, \u043d\u043e \u043f\u043e\u0448\u0435\u043b \u0432 \u0441\u0442\u043e\u0440\u043e\u043d\u0443 Compose-\u043f\u043e\u0434\u0445\u043e\u0434\u0430. \u0421 \u043d\u0435\u0434\u0430\u0432\u043d\u0438\u0445 \u043f\u043e\u0440 \u043e\u043d \u0432\u043a\u043b\u044e\u0447\u0435\u043d \u0432 <a href=\"https:\/\/kotlinlang.org\/docs\/js-frameworks.html#kilua\" rel=\"noopener noreferrer nofollow\">\u0441\u043f\u0438\u0441\u043e\u043a \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0430\u0446\u0438\u0439 Kotlin\/Js \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u043e\u0432 \u043e\u0442 JetBrains<\/a>, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0435\u0433\u043e \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u0438\u0435 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u043e.<\/p>\n<p>\u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043f\u043e\u043b\u0438\u0433\u043e\u043d\u0430 \u0441\u0434\u0435\u043b\u0430\u0435\u043c \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0435 CRUD-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0434\u043e\u043c\u0430\u0448\u043d\u0435\u0439 \u0430\u043f\u0442\u0435\u0447\u043a\u043e\u0439: \u043b\u0435\u043a\u0430\u0440\u0441\u0442\u0432\u0430, \u043c\u0435\u0441\u0442\u0430 \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f, \u0442\u0435\u0433\u0438, \u0441\u0440\u043e\u043a\u0438 \u0433\u043e\u0434\u043d\u043e\u0441\u0442\u0438 \u0438 \u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0448\u0442\u0440\u0438\u0445\u043a\u043e\u0434\u0430 \u043a\u0430\u043c\u0435\u0440\u043e\u0439. \u041d\u0438\u0447\u0435\u0433\u043e \u043a\u043e\u0441\u043c\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e, \u043d\u043e \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0436\u0438\u0432\u043e, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438. \u041f\u043e\u043b\u043d\u044b\u0439 \u043a\u043e\u0434 \u043b\u0435\u0436\u0438\u0442 \u0432 <a href=\"https:\/\/gitlab.com\/VladKarandashov\/SalusTrove\" rel=\"noopener noreferrer nofollow\">\u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438 \u043d\u0430 GitLab<\/a>.<\/p>\n<h3>\u0427\u0442\u043e \u0432\u043e\u043e\u0431\u0449\u0435 \u0442\u0430\u043a\u043e\u0435 Kilua<\/h3>\n<p><a href=\"https:\/\/kilua.dev\/\" rel=\"noopener noreferrer nofollow\">Kilua<\/a> \u2014 \u044d\u0442\u043e open source web-\u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a \u0434\u043b\u044f Kotlin. \u041e\u043d \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 Compose Multiplatform Runtime (\u043d\u0435 \u043f\u0443\u0442\u0430\u0439\u0442\u0435 \u0441 Jetpack Compose \u0434\u043b\u044f Android \u0438\u043b\u0438 Compose Web, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0440\u0438\u0441\u0443\u0435\u0442 UI \u0447\u0435\u0440\u0435\u0437 canvas\/Skia). Kilua \u0440\u0435\u043d\u0434\u0435\u0440\u0438\u0442 \u043e\u0431\u044b\u0447\u043d\u044b\u0439 HTML DOM: \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u0432 \u0438\u0442\u043e\u0433\u0435 \u0436\u0438\u0432\u0443\u0442 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u044b\u0435 <code>div<\/code>, <code>button<\/code>, <code>input<\/code>, CSS \u0438 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u043d\u044b\u0435 \u0441\u043e\u0431\u044b\u0442\u0438\u044f. \u0415\u0441\u043b\u0438 \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u043c JS target \u2014 Kotlin-\u043a\u043e\u0434 \u0431\u0443\u043a\u0432\u0430\u043b\u044c\u043d\u043e \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u0432 JavaScript bundle.<\/p>\n<p>\u041f\u0440\u0435\u0434\u0448\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u0438\u043a\u043e\u043c Kilua \u0431\u044b\u043b KVision, \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a \u0440\u0430\u0437\u0432\u0438\u0432\u0430\u0435\u0442 \u0442\u043e\u0442 \u0436\u0435 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a. KVision \u0431\u043e\u043b\u0435\u0435 \u0441\u0442\u0430\u0440\u044b\u0439 \u043e\u0431\u044a\u0435\u043a\u0442\u043d\u043e-\u043e\u0440\u0438\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a \u0434\u043b\u044f Kotlin\/JS: \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b, \u0431\u0438\u043d\u0434\u0438\u043d\u0433\u0438, UI \u0438\u0437 Kotlin-\u043a\u043e\u0434\u0430, \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u0438 \u0441 backend. Kilua \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043a\u0430\u043a \u043f\u043e\u043f\u044b\u0442\u043a\u0430 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0437\u0430\u0445\u043e\u0434 \u0443\u0436\u0435 \u0441 \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u043c Compose runtime: <code>@Composable<\/code> \u0444\u0443\u043d\u043a\u0446\u0438\u0438, <code>remember<\/code>, <code>mutableStateOf<\/code>, \u043a\u043e\u0440\u0443\u0442\u0438\u043d\u044b, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0441\u043e\u0431\u0438\u0440\u0430\u0442\u044c\u0441\u044f \u0438 \u0432 Kotlin\/JS, \u0438 \u0432 Kotlin\/Wasm.<\/p>\n<p>\u041d\u0430 \u043c\u043e\u043c\u0435\u043d\u0442 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u043f\u0440\u0438\u043c\u0435\u0440\u0430 \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0430 \u2014 <code>0.0.34<\/code>: \u043f\u0440\u043e\u0435\u043a\u0442 \u0443\u0436\u0435 \u0432\u043f\u043e\u043b\u043d\u0435 \u0440\u0430\u0431\u043e\u0447\u0438\u0439, \u043d\u043e \u0430\u043a\u0442\u0438\u0432\u043d\u0430\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u0435\u0449\u0435 \u0438\u0434\u0435\u0442.<\/p>\n<p>\u041f\u043e\u0447\u0435\u043c\u0443 \u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u043e KVision 10? \u0422\u0443\u0442 \u043c\u043e\u0436\u043d\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0441\u0442\u043e\u0440\u043e\u0436\u043d\u043e \u0438\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c, \u043d\u043e \u043f\u0440\u0438\u0447\u0438\u043d\u0430 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0437\u0435\u043c\u043d\u043e\u0439. \u0415\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0431\u044b\u043b \u043e\u0431\u044a\u0435\u043a\u0442\u043d\u044b\u0439 Kotlin\/JS-\u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a, \u0430 \u0432\u044b \u0445\u043e\u0442\u0438\u0442\u0435 \u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u043a Compose-\u043c\u043e\u0434\u0435\u043b\u0438, Wasm, SSR \u0438 \u043d\u043e\u0432\u043e\u043c\u0443 API \u2014 \u044d\u0442\u043e \u0443\u0436\u0435 \u043d\u0435 \u043a\u043e\u0441\u043c\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0440\u0435\u043c\u043e\u043d\u0442. \u041d\u043e\u0432\u043e\u0435 \u0438\u043c\u044f \u0432 \u0442\u0430\u043a\u043e\u0439 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0438 \u0434\u0430\u0436\u0435 \u043f\u043e\u043b\u0435\u0437\u043d\u043e: \u043c\u0435\u043d\u044c\u0448\u0435 \u0438\u043b\u043b\u044e\u0437\u0438\u0438, \u0447\u0442\u043e \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u044f \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u0441\u0442\u043e\u044f\u0442\u044c \u0438\u0437 \u0442\u0440\u0435\u0445 \u0438\u043c\u043f\u043e\u0440\u0442\u043e\u0432 \u0438 \u043c\u043e\u043b\u0438\u0442\u0432\u044b.<\/p>\n<p>\u0418\u0437 \u0437\u0430\u043c\u0435\u0442\u043d\u044b\u0445 \u0444\u0438\u0447 Kilua \u043d\u0430 \u0441\u0430\u0439\u0442\u0435 \u0441\u0435\u0439\u0447\u0430\u0441 \u0432\u044b\u0434\u0435\u043b\u044f\u044e\u0442\u0441\u044f \u0433\u043e\u0442\u043e\u0432\u044b\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b, \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 Bootstrap \u0438 Tailwind, router, HTTP client, SSR, \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 export \u0438 <a href=\"https:\/\/kilua.gitbook.io\/kilua-rpc-guide\" rel=\"noopener noreferrer nofollow\">Kilua RPC<\/a>. \u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0435\u043d \u0434\u043b\u044f fullstack Kotlin: \u043c\u043e\u0436\u043d\u043e \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u043a\u043e\u043d\u0442\u0440\u0430\u043a\u0442\u044b \u0432 \u043e\u0431\u0449\u0435\u043c \u043a\u043e\u0434\u0435 \u0438 \u0441\u0432\u044f\u0437\u044b\u0432\u0430\u0442\u044c frontend \u0441 backend \u043d\u0430 Ktor, Spring Boot, Micronaut, Javalin, Jooby \u0438\u043b\u0438 Vert.x. \u0421\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u043e\u0441\u0442\u044c \u0441 gRPC \u0432 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u043d\u0435 \u0437\u0430\u044f\u0432\u043b\u0435\u043d\u0430: Kilua RPC \u2014 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0430\u044f Kotlin-first RPC \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430, \u0430 \u043d\u0435 gRPC transport \u043f\u043e\u0432\u0435\u0440\u0445 <code>.proto<\/code>, HTTP\/2 \u0438 protobuf. \u0415\u0441\u043b\u0438 \u0432 \u043f\u0440\u043e\u0435\u043a\u0442\u0435 \u0443\u0436\u0435 \u0435\u0441\u0442\u044c gRPC-\u043a\u043e\u043d\u0442\u0440\u0430\u043a\u0442\u044b, \u0438\u0445 \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u0438\u043d\u0442\u0435\u0433\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e. \u0412 \u0442\u0435\u043a\u0443\u0449\u0435\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435 RPC \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f: \u0442\u0430\u043c \u043e\u0431\u044b\u0447\u043d\u044b\u0439 REST \u0447\u0435\u0440\u0435\u0437 <code>fetch<\/code>, \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u0443\u0441\u043b\u043e\u0436\u043d\u044f\u0442\u044c.<\/p>\n<h3>\u0417\u0430\u0447\u0435\u043c \u043f\u0438\u0441\u0430\u0442\u044c frontend \u043d\u0430 Kotlin?<\/h3>\n<p>\u0421\u0430\u043c\u044b\u0439 \u0447\u0435\u0441\u0442\u043d\u044b\u0439 \u043e\u0442\u0432\u0435\u0442: \u043d\u0435 \u0432\u0441\u0435\u0433\u0434\u0430 \u043d\u0443\u0436\u043d\u043e.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u0443\u0432\u0435\u0440\u0435\u043d\u043d\u043e \u043f\u0438\u0448\u0435\u0442 \u043d\u0430 React\/Vue\/Svelte, \u0443 \u043d\u0435\u0435 \u0443\u0436\u0435 \u0435\u0441\u0442\u044c \u0434\u0438\u0437\u0430\u0439\u043d-\u0441\u0438\u0441\u0442\u0435\u043c\u0430, Storybook, \u0442\u0435\u0441\u0442\u044b, CI\/CD \u0438 \u043f\u0440\u0438\u0432\u044b\u0447\u043d\u044b\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b, \u0442\u043e \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u044c \u0442\u0443\u0434\u0430 \u0441 Kotlin-\u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u043e\u043c \u0432 \u0440\u0443\u043a\u0430\u0445 \u043d\u0430\u0434\u043e \u043e\u0447\u0435\u043d\u044c \u0430\u043a\u043a\u0443\u0440\u0430\u0442\u043d\u043e. \u041c\u0438\u0440 frontend \u2014 \u044d\u0442\u043e \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u044f\u0437\u044b\u043a, \u043d\u043e \u0438 \u044d\u043a\u043e\u0441\u0438\u0441\u0442\u0435\u043c\u0430, browser API, CSS, accessibility, \u0441\u0431\u043e\u0440\u043a\u0430, \u043b\u0438\u043d\u0442\u0435\u0440\u044b, \u043f\u0430\u043a\u0435\u0442\u044b, devtools \u0438 \u0441\u043e\u0441\u0435\u0434\u043d\u0438\u0439 \u0447\u0430\u0442, \u0433\u0434\u0435 \u043a\u0442\u043e-\u0442\u043e \u0443\u0436\u0435 \u0442\u0440\u0435\u0442\u0438\u0439 \u0447\u0430\u0441 \u0441\u043f\u043e\u0440\u0438\u0442 \u043f\u0440\u043e <code>z-index<\/code>. \u041f\u0440\u0438\u043d\u043e\u0441\u0438\u0442\u044c \u0441\u044e\u0434\u0430 Kotlin \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442 \u0435\u0449\u0435 \u043e\u0434\u0438\u043d (\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u043b\u0438\u0448\u043d\u0438\u0439) \u043f\u0440\u043e\u043c\u0435\u0436\u0443\u0442\u043e\u0447\u043d\u044b\u0439 \u0448\u0430\u0433, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0447\u0442\u043e-\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u0439\u0442\u0438 \u043d\u0435 \u0442\u0430\u043a.<\/p>\n<p>\u041d\u043e \u0443 Kotlin \u043d\u0430 \u0444\u0440\u043e\u043d\u0442\u0435 \u0432\u0441\u0435 \u0436\u0435 \u0435\u0441\u0442\u044c \u0441\u0432\u043e\u0439 \u0441\u043c\u044b\u0441\u043b. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440:<\/p>\n<ul>\n<li>\n<p>\u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u0434\u043b\u044f Kotlin-\u043a\u043e\u043c\u0430\u043d\u0434\u044b;<\/p>\n<\/li>\n<li>\n<p>pet project, \u0433\u0434\u0435 \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u043e\u0434\u0438\u043d \u044f\u0437\u044b\u043a \u0438 \u0437\u043d\u0430\u043a\u043e\u043c\u044b\u0439 Gradle;<\/p>\n<\/li>\n<li>\n<p>fullstack-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0441 \u043e\u0431\u0449\u0438\u043c\u0438 \u043c\u043e\u0434\u0435\u043b\u044f\u043c\u0438, \u0441\u0435\u0440\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0435\u0439 \u0438 \u0432\u0430\u043b\u0438\u0434\u0430\u0446\u0438\u0435\u0439;<\/p>\n<\/li>\n<li>\n<p>\u043a\u043e\u043c\u0430\u043d\u0434\u0430, \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0431\u043b\u0438\u0436\u0435 Compose-\u043c\u044b\u0448\u043b\u0435\u043d\u0438\u0435, \u0447\u0435\u043c \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u0438\u0439 JS-\u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a;<\/p>\n<\/li>\n<li>\n<p>\u0436\u0435\u043b\u0430\u043d\u0438\u0435 \u043f\u043e\u0442\u0440\u043e\u0433\u0430\u0442\u044c Kotlin\/Wasm \u0431\u0435\u0437 \u043f\u043e\u043b\u043d\u043e\u0433\u043e \u0443\u0445\u043e\u0434\u0430 \u0432 \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u0443\u044e \u043b\u0430\u0431\u043e\u0440\u0430\u0442\u043e\u0440\u0438\u044e.<\/p>\n<\/li>\n<\/ul>\n<p>Kilua \u043d\u0435 \u043e\u0442\u043c\u0435\u043d\u044f\u0435\u0442 HTML, CSS \u0438 JavaScript. \u042d\u0442\u043e \u0432\u0430\u0436\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442. \u041a\u043e\u0434 \u043d\u0430 Kilua \u0447\u0430\u0441\u0442\u043e \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043a\u0430\u043a Kotlin-\u0432\u0435\u0440\u0441\u0438\u044f HTML+JS: <code>vPanel<\/code>, <code>div<\/code>, <code>text<\/code>, <code>className<\/code>, <code>onInput<\/code>. \u0414\u0430, \u044d\u0442\u043e Kotlin. \u041d\u043e \u0432\u0430\u043c \u0432\u0441\u0435 \u0440\u0430\u0432\u043d\u043e \u043d\u0430\u0434\u043e \u043f\u043e\u043d\u0438\u043c\u0430\u0442\u044c, \u043a\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 <code>input<\/code>, \u043f\u043e\u0447\u0435\u043c\u0443 CSS \u043f\u043e\u0435\u0445\u0430\u043b \u043d\u0430 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u043e\u043c \u044d\u043a\u0440\u0430\u043d\u0435 \u0438 \u043f\u043e\u0447\u0435\u043c\u0443 \u0441\u043e\u0431\u044b\u0442\u0438\u0435 \u0441\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u043d\u0435 \u0442\u043e\u0433\u0434\u0430, \u043a\u043e\u0433\u0434\u0430 \u0432\u044b \u043c\u043e\u0440\u0430\u043b\u044c\u043d\u043e \u0431\u044b\u043b\u0438 \u043a \u043d\u0435\u043c\u0443 \u0433\u043e\u0442\u043e\u0432\u044b.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u0441\u043e\u0432\u0441\u0435\u043c \u043d\u0435 \u0434\u0443\u043c\u0430\u0442\u044c \u043f\u0440\u043e \u0431\u0440\u0430\u0443\u0437\u0435\u0440, \u0431\u043b\u0438\u0436\u0435 \u0431\u0443\u0434\u0435\u0442 <a href=\"https:\/\/vaadin.com\/docs\/latest\/flow\/what-is-flow\" rel=\"noopener noreferrer nofollow\">Vaadin Flow<\/a>: \u0442\u0430\u043c UI \u0436\u0438\u0432\u0435\u0442 \u0432 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u043c \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435, \u0432\u044b \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0438\u0437 Java-\u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432, \u0430 Vaadin \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0438\u0440\u0443\u0435\u0442 \u044d\u0442\u043e \u0441 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u043e\u043c. \u0426\u0435\u043d\u0430 \u0434\u0440\u0443\u0433\u0430\u044f: \u0431\u043e\u043b\u044c\u0448\u0435 \u0437\u0430\u0432\u044f\u0437\u043a\u0438 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440, \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0441\u0435\u0441\u0441\u0438\u0438, \u0441\u0435\u0442\u0435\u0432\u043e\u0435 \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435. Kilua \u2014 \u044d\u0442\u043e \u0432\u0441\u0435-\u0442\u0430\u043a\u0438 \u043a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435. \u041f\u0440\u043e\u0441\u0442\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u043e\u0435 \u043d\u0430 Kotlin \u0438 \u0441\u043e\u0431\u0440\u0430\u043d\u043d\u043e\u0435 \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u043d\u044b\u0439 bundle.<\/p>\n<h3>\u041f\u0440\u043e\u0431\u0443\u0435\u043c Kilua \u0432 \u0434\u0435\u043b\u0435<\/h3>\n<p>\u041e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u0430\u044f \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u0442 \u0434\u0432\u0430 \u043f\u0443\u0442\u0438: \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c Kilua Project Wizard \u0432 IntelliJ IDEA \u0438\u043b\u0438 \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c template project. \u0415\u0441\u043b\u0438 \u0432 \u043f\u0440\u043e\u0435\u043a\u0442\u0435 \u0443\u0436\u0435 \u0435\u0441\u0442\u044c backend-\u043c\u043e\u0434\u0443\u043b\u044c, \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u043e\u043b\u043e\u0436\u0438\u0442\u044c frontend \u0440\u044f\u0434\u043e\u043c. \u042d\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442 \u043d\u0430 \u044d\u0442\u0430\u043f\u0435 \u0441\u0431\u043e\u0440\u043a\u0438 \u043f\u043e\u043b\u043e\u0436\u0438\u0442\u044c \u0441\u043e\u0431\u0440\u0430\u043d\u043d\u044b\u0439 js-bundle \u043f\u0440\u044f\u043c\u043e \u0432 static \u0440\u0435\u0441\u0443\u0440\u0441\u044b backend, \u043f\u043e\u043b\u0443\u0447\u0438\u0432 \u0435\u0434\u0438\u043d\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435.<\/p>\n<p>\u0421\u0430\u043c frontend-\u043c\u043e\u0434\u0443\u043b\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 Kotlin Multiplatform, Compose compiler\/plugin \u0438 Kilua:<\/p>\n<pre><code class=\"kotlin\">plugins {    \/\/ Kotlin Multiplatform \u0434\u0430\u0435\u0442 JS\/Wasm targets.    kotlin(\"multiplatform\") version \"2.3.21\"    \/\/ \u041d\u0443\u0436\u0435\u043d \u0434\u043b\u044f kotlinx.serialization \u0432 DTO \u0438 REST-\u043a\u043b\u0438\u0435\u043d\u0442\u0435.    kotlin(\"plugin.serialization\") version \"2.3.21\"    \/\/ Compose runtime: @Composable, remember, mutableStateOf.    id(\"org.jetbrains.compose\") version \"1.11.0\"    id(\"org.jetbrains.kotlin.plugin.compose\") version \"2.3.21\"    \/\/ \u0421\u0430\u043c Kilua \u0438 \u0435\u0433\u043e Gradle-\u0437\u0430\u0434\u0430\u0447\u0438.    id(\"dev.kilua\") version \"0.0.34\"}kotlin {    js(IR) {        useEsModules()        browser {            commonWebpackConfig {                cssSupport {                    enabled = true                }                outputFileName = \"main.bundle.js\"                sourceMaps = false            }        }        binaries.executable()        compilerOptions {            target.set(\"es2015\")        }    }    sourceSets {        commonMain.dependencies {            implementation(\"dev.kilua:kilua:0.0.34\")            implementation(\"dev.kilua:kilua-bootstrap:0.0.34\")            implementation(\"dev.kilua:kilua-bootstrap-icons:0.0.34\")        }    }}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:87px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0414\u043b\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c JS target \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 <code>.\/gradlew -t :view-frontend:jsBrowserDevelopmentRun<\/code>. \u041f\u043e\u0441\u043b\u0435 \u0441\u0442\u0430\u0440\u0442\u0430 dev-\u0441\u0435\u0440\u0432\u0435\u0440 \u043e\u0431\u044b\u0447\u043d\u043e \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u043d\u0430 <code>http:\/\/localhost:3000<\/code>.<\/p>\n<p>\u0414\u043b\u044f production-\u0441\u0431\u043e\u0440\u043a\u0438 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e <code>.\/gradlew :view-frontend:jsBrowserDistribution<\/code>.<\/p>\n<p>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043f\u043e\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0432 <code>view-frontend\/build\/dist\/js\/productionExecutable<\/code>: <code>index.html<\/code>, <code>app.css<\/code>, <code>main.bundle.js<\/code>, \u0448\u0440\u0438\u0444\u0442\u044b \u0438 \u043f\u0440\u043e\u0447\u0438\u0435 \u0440\u0435\u0441\u0443\u0440\u0441\u044b. \u0412 \u043c\u043e\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 <code>main.bundle.js<\/code> \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0441\u044f \u043e\u043a\u043e\u043b\u043e 1.6 MB. \u0414\u043b\u044f \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u043e\u0433\u043e CRUD \u044d\u0442\u043e \u043d\u0435 \u201c\u0432\u0430\u0443, \u043a\u0430\u043a \u043a\u043e\u043c\u043f\u0430\u043a\u0442\u043d\u043e\u201d, \u043d\u043e \u0438 \u043d\u0435 \u043f\u043e\u0432\u043e\u0434 \u0441\u0440\u0430\u0437\u0443 \u0437\u0432\u043e\u043d\u0438\u0442\u044c \u0432 \u043a\u043e\u043c\u0438\u0442\u0435\u0442 \u043f\u043e \u0447\u0440\u0435\u0437\u0432\u044b\u0447\u0430\u0439\u043d\u044b\u043c \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044f\u043c.<\/p>\n<p>\u041e\u0442\u0434\u0435\u043b\u044c\u043d\u0430\u044f \u0431\u044b\u0442\u043e\u0432\u0430\u044f \u0434\u0435\u0442\u0430\u043b\u044c: Kotlin\/JS \u0432\u0441\u0435 \u0440\u0430\u0432\u043d\u043e \u0442\u0440\u0435\u0431\u0443\u0435\u0442 Node\/npm \u2014 \u044d\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u0442\u044c \u0432 CI\/CD. \u0412 \u043f\u0440\u043e\u0435\u043a\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f <code>kotlin-js-store\/package-lock.json<\/code>, \u0430 \u043f\u043e\u0441\u043b\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f frontend-\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0435\u0439 \u0438\u043b\u0438 \u0432\u0435\u0440\u0441\u0438\u0438 Kotlin\/JS-\u043f\u043b\u0430\u0433\u0438\u043d\u0430 \u043d\u0443\u0436\u043d\u043e \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0442\u044c lock-\u0444\u0430\u0439\u043b \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 <code>.\/gradlew kotlinUpgradePackageLock<\/code> (\u0440\u0443\u0447\u043d\u044b\u0435 \u043f\u0440\u0430\u0432\u043a\u0438 \u0438\u043b\u0438 \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e \u0447\u0435\u0440\u0435\u0437 npm \u043f\u0440\u043e\u0441\u0442\u043e \u0441\u043b\u043e\u043c\u0430\u044e\u0442 \u0431\u0438\u043b\u0434).<\/p>\n<h4>\u0421\u043a\u0435\u043b\u0435\u0442 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f<\/h4>\n<p><strong>\u0414\u043b\u044f \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0433\u043e<\/strong> SPA \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u0430\u043a\u0443\u044e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443:<\/p>\n<pre><code>view-frontend\/  src\/commonMain\/    kotlin\/com\/example\/view\/      App.kt      model\/Models.kt      api\/MedicineApi.kt      store\/AppStore.kt      ui\/Screens.kt      platform\/Platform.kt    resources\/      index.html      app.css  src\/jsMain\/    kotlin\/com\/example\/view\/platform\/Platform.js.kt<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p><code>index.html<\/code> \u043f\u043e\u0447\u0442\u0438 \u043f\u0443\u0441\u0442\u043e\u0439. \u041e\u043d \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u0442 CSS, \u043a\u043b\u0430\u0434\u0435\u0442 \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0438 \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u0442 bundle:<\/p>\n<pre><code>...&lt;body&gt;    &lt;div id=\"root\"&gt;&lt;\/div&gt;    &lt;script src=\"main.bundle.js\"&gt;&lt;\/script&gt;&lt;\/body&gt;...<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0422\u043e\u0447\u043a\u0430 \u0432\u0445\u043e\u0434\u0430 \u0432 Kilua \u0442\u043e\u0436\u0435 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043a\u043e\u043c\u043f\u0430\u043a\u0442\u043d\u0430\u044f:<\/p>\n<pre><code class=\"kotlin\">class MedicineFrontend : Application() {    override fun start() {        root(\"root\") {            MedicineApp()        }    }}fun main() {    startApplication(        ::MedicineFrontend,        BootstrapModule,        BootstrapCssModule,        BootstrapIconsModule,        CoreModule,    )}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0417\u0434\u0435\u0441\u044c <code>root(\"root\")<\/code> \u0446\u0435\u043f\u043b\u044f\u0435\u0442\u0441\u044f \u043a <code>div id=\"root\"<\/code> \u0438\u0437 HTML, \u0430 \u0434\u0430\u043b\u044c\u0448\u0435 \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u043e\u0431\u044b\u0447\u043d\u044b\u0439 Compose-\u043f\u043e\u0434\u0445\u043e\u0434: <code>@Composable<\/code> \u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435, \u043f\u0435\u0440\u0435\u0440\u0438\u0441\u043e\u0432\u043a\u0430 \u043f\u0440\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0438 state.<\/p>\n<h4>\u0417\u0430\u043f\u0440\u043e\u0441\u044b \u043a backend<\/h4>\n<p>\u0412\u043d\u0443\u0442\u0440\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0435\u0441\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u0435\u0439: \u043b\u0435\u043a\u0430\u0440\u0441\u0442\u0432\u043e, \u043c\u0435\u0441\u0442\u043e \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u0438 \u0442\u0435\u0433. \u041c\u043e\u0434\u0435\u043b\u0438 \u043b\u0435\u0436\u0430\u0442 \u0432 <code>commonMain<\/code>, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e frontend \u0443 \u043d\u0430\u0441 \u043e\u0431\u0449\u0438\u0439 \u0434\u043b\u044f \u043f\u043e\u0442\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0445 JS\/Wasm targets. \u0412 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u043c fullstack-\u043f\u0440\u043e\u0435\u043a\u0442\u0435 \u0447\u0430\u0441\u0442\u044c \u044d\u0442\u0438\u0445 DTO \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0431\u044b \u0432\u044b\u043d\u0435\u0441\u0442\u0438 \u0432 \u043e\u0431\u0449\u0438\u0439 \u043c\u043e\u0434\u0443\u043b\u044c \u043c\u0435\u0436\u0434\u0443 backend \u0438 frontend. \u0410 \u0435\u0441\u043b\u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c Kilua RPC, \u0442\u043e \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0439\u0442\u0438 \u0434\u0430\u043b\u044c\u0448\u0435 \u0438 \u043d\u0435 \u043f\u0438\u0441\u0430\u0442\u044c \u0440\u0443\u0447\u043d\u043e\u0439 REST-\u043a\u043b\u0438\u0435\u043d\u0442. \u041d\u043e \u0434\u043b\u044f \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0437\u043d\u0430\u043a\u043e\u043c\u0441\u0442\u0432\u0430 \u043e\u0431\u044b\u0447\u043d\u044b\u0439 <code>fetch<\/code> \u0434\u0430\u0436\u0435 \u043f\u043e\u043b\u0435\u0437\u043d\u0435\u0435: \u043f\u0440\u043e\u0449\u0435 \u043f\u043e\u043d\u044f\u0442\u044c, \u0447\u0442\u043e \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442.<\/p>\n<p>API-\u0441\u043b\u043e\u0439 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u0430\u043a:<\/p>\n<pre><code class=\"kotlin\">class MedicineApi {    private val json = Json {        ignoreUnknownKeys = true        encodeDefaults = true    }    suspend fun loadMedicines(): List&lt;MedicineDto&gt; {        return get(\"\/api\/medicines\/search\")    }    private suspend inline fun &lt;reified T&gt; get(path: String): T {        val response = httpRequest(path)        if (!response.successful) error(\"\u041e\u0448\u0438\u0431\u043a\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 (${response.status})\")        return json.decodeFromString(response.body)    }}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0414\u043b\u044f JS-only \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u044d\u0442\u043e \u0432\u043f\u043e\u043b\u043d\u0435 \u043f\u0440\u044f\u043c\u043e\u0439 \u043f\u0443\u0442\u044c. \u0415\u0441\u043b\u0438 \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u043f\u0438\u0441\u0430\u0442\u044c \u043e\u0434\u0438\u043d \u0438 \u0442\u043e\u0442 \u0436\u0435 \u043a\u043e\u0434 \u043f\u043e\u0434 JS \u0438 Wasm, \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u0430\u043a\u043a\u0443\u0440\u0430\u0442\u043d\u0435\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 <code>JsAny<\/code>, <code>kotlin-wrappers<\/code> \u0438 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0430\u0446\u0438\u044f\u043c\u0438 \u0438\u0437 \u0440\u0430\u0437\u0434\u0435\u043b\u043e\u0432 <a href=\"https:\/\/kilua.dev\/development-guide\/browser-apis\" rel=\"noopener noreferrer nofollow\">Browser APIs<\/a> \u0438 <a href=\"https:\/\/kilua.dev\/development-guide\/interoperability-with-javascript\" rel=\"noopener noreferrer nofollow\">Interoperability with JavaScript<\/a> \u0432 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 Kilua.<\/p>\n<h4>\u0413\u0434\u0435 \u0434\u0435\u0440\u0436\u0430\u0442\u044c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435<\/h4>\n<p>\u0414\u043b\u044f \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043c\u043e\u0436\u043d\u043e \u043d\u0435 \u0442\u0430\u0449\u0438\u0442\u044c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 state manager. Compose runtime \u0443\u0436\u0435 \u0434\u0430\u0435\u0442 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u0443\u044e \u043c\u043e\u0434\u0435\u043b\u044c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f:<\/p>\n<pre><code class=\"kotlin\">class AppStore(    private val api: MedicineApi = MedicineApi(),) {    var medicines by mutableStateOf&lt;List&lt;MedicineDto&gt;&gt;(emptyList())        private set    var loading by mutableStateOf(false)        private set    suspend fun refreshMedicines() {        medicines = api.loadMedicines().sortedBy { it.expirationDate }    }    private suspend fun &lt;T&gt; runLoading(block: suspend () -&gt; T): T {        loading = true        return try {            block()        } finally {            loading = false        }    }}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 \u0441\u043e\u0437\u0434\u0430\u0435\u0442 store \u0447\u0435\u0440\u0435\u0437 <code>remember<\/code>, \u0434\u0435\u0440\u0433\u0430\u0435\u0442 <code>initialize()<\/code> \u0432 <code>LaunchedEffect<\/code>, \u0430 \u0434\u0430\u043b\u044c\u0448\u0435 UI \u0441\u0430\u043c \u0440\u0435\u0430\u0433\u0438\u0440\u0443\u0435\u0442 \u043d\u0430 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f:<\/p>\n<pre><code class=\"kotlin\">@Composablefun IComponent.MedicineApp() {    val store = remember { AppStore() }    var screen by remember { mutableStateOf(AppScreen.Medicines) }    LaunchedEffect(Unit) {        store.refreshMedicines()    }    div(\"app-shell\") {        AppHeader(screen, store.loading)        main(\"app-main\") {            when (screen) {                AppScreen.Medicines -&gt; MedicinesScreen(store)                AppScreen.Locations -&gt; LocationsScreen(store)                AppScreen.Tags -&gt; TagsScreen(store)            }        }        BottomNavigation(screen) { screen = it }    }}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<h4>\u0412\u0435\u0440\u0441\u0442\u043a\u0430<\/h4>\n<p>\u0412\u043d\u0443\u0442\u0440\u0438 \u044d\u043a\u0440\u0430\u043d\u0430 \u0432\u0441\u0435 \u043f\u043e\u0445\u043e\u0436\u0435 \u043d\u0430 \u043e\u0431\u044b\u0447\u043d\u043e\u0435 \u0434\u0435\u043a\u043b\u0430\u0440\u0430\u0442\u0438\u0432\u043d\u043e\u0435 UI-\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435:<\/p>\n<pre><code class=\"kotlin\">@Composableprivate fun IComponent.MedicinesScreen(store: AppStore) {    var search by remember { mutableStateOf(\"\") }    val visibleMedicines = store.medicines.filter {        search.isBlank() || it.title.contains(search.trim(), ignoreCase = true)    }    vPanel(className = \"screen-stack\") {        h2t(\"\u041b\u0435\u043a\u0430\u0440\u0441\u0442\u0432\u0430\", \"screen-title\")        text(            value = search,            type = InputType.Search,            placeholder = \"\u041f\u043e\u0438\u0441\u043a \u043f\u043e \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044e\",            className = \"form-control search-input\",        ) {            onInput { search = value.orEmpty() }        }        if (visibleMedicines.isEmpty()) {            EmptyState(\"\u041d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d\u043e\", \"bi bi-search\")        } else {            vPanel(className = \"medicine-list\") {                visibleMedicines.forEach { medicine -&gt;                    MedicineCard(medicine)                }            }        }    }}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0421\u0430\u043c\u043e\u0435 \u043f\u0440\u0438\u044f\u0442\u043d\u043e\u0435 \u0442\u0443\u0442 \u2014 \u043e\u0431\u044b\u0447\u043d\u044b\u0439 Kotlin DSL: \u0440\u0435\u0444\u0430\u043a\u0442\u043e\u0440\u0438\u043d\u0433, \u0442\u0438\u043f\u044b, sealed-\u043a\u043b\u0430\u0441\u0441\u044b, extension-\u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u043a\u043e\u0440\u0443\u0442\u0438\u043d\u044b, \u0441\u0435\u0440\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f. \u0421\u0430\u043c\u043e\u0435 \u043e\u0442\u0440\u0435\u0437\u0432\u043b\u044f\u044e\u0449\u0435\u0435 \u2014 \u044d\u0442\u043e \u0432\u0441\u0435 \u0435\u0449\u0435 \u0432\u0435\u0440\u0441\u0442\u043a\u0430: <code>vPanel<\/code>, <code>hPanel<\/code>, <code>div<\/code>, <code>span<\/code>, <code>className<\/code>, Bootstrap-\u043a\u043b\u0430\u0441\u0441\u044b \u0438 CSS \u043d\u0438\u043a\u0443\u0434\u0430 \u043d\u0435 \u0434\u0435\u043b\u0438\u0441\u044c.<\/p>\n<p>\u0424\u043e\u0440\u043c\u0430 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043b\u0435\u043a\u0430\u0440\u0441\u0442\u0432\u0430 \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0438\u0437 \u043e\u0431\u044b\u0447\u043d\u044b\u0445 Kilua-\u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432: <code>text<\/code>, <code>date<\/code>, <code>select<\/code>, <code>textArea<\/code>, \u043a\u043d\u043e\u043f\u043a\u0438, \u043c\u043e\u0434\u0430\u043b\u044c\u043d\u043e\u0435 \u043e\u043a\u043d\u043e. \u0421\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0444\u043e\u0440\u043c\u044b \u0443\u0434\u043e\u0431\u043d\u043e \u0434\u0435\u0440\u0436\u0430\u0442\u044c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u043c data class, \u0430 \u0432 \u043d\u0435\u043c \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043c\u0435\u0442\u043e\u0434 <code>toRequest()<\/code>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u0430\u043b\u0438\u0434\u0438\u0440\u0443\u0435\u0442 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u043f\u043e\u043b\u044f \u0438 \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0444\u043e\u0440\u043c\u0443 \u0432 DTO \u0434\u043b\u044f backend. \u0421\u0430\u043c UI \u0444\u043e\u0440\u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043c\u0435\u0445\u0430\u043d\u0438\u0447\u0435\u0441\u043a\u0438\u043c:<\/p>\n<pre><code class=\"kotlin\">FormField(\"\u041d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\") {    text(        value = form.title,        placeholder = \"\u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440: \u041f\u0430\u0440\u0430\u0446\u0435\u0442\u0430\u043c\u043e\u043b\",        required = true,        className = \"form-control\",    ) {        onInput { form = form.copy(title = value.orEmpty()) }    }}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<h4>\u0414\u043e\u0441\u0442\u0443\u043f \u043a \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0443: \u0441\u043a\u0430\u043d\u0435\u0440 \u0448\u0442\u0440\u0438\u0445\u043a\u043e\u0434\u043e\u0432<\/h4>\n<p>\u041e\u0434\u0438\u043d \u0438\u0437 \u043f\u043e\u043b\u0435\u0437\u043d\u044b\u0445 \u0442\u0435\u0441\u0442\u043e\u0432 \u0434\u043b\u044f \u0442\u0430\u043a\u043e\u0433\u043e \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0430 \u2014 \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u043a\u043d\u043e\u043f\u043a\u0438 \u0438 \u0444\u043e\u0440\u043c\u044b, \u043d\u043e \u0438 \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0439 browser API. \u0412 \u0430\u043f\u0442\u0435\u0447\u043d\u043e\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438 \u044f \u0434\u043e\u0431\u0430\u0432\u0438\u043b \u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0448\u0442\u0440\u0438\u0445\u043a\u043e\u0434\u0430 \u043a\u0430\u043c\u0435\u0440\u043e\u0439. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f <code>BarcodeDetector<\/code> \u0438 <code>navigator.mediaDevices.getUserMedia<\/code>.<\/p>\n<p>\u0412 \u043e\u0431\u0449\u0435\u043c \u043a\u043e\u0434\u0435 \u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c <code>expect<\/code>-\u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u044f:<\/p>\n<pre><code class=\"kotlin\">data class BarcodeScan(    val barcode: String,)expect fun isBarcodeScannerSupported(): Booleanexpect suspend fun scanBarcodeFromCamera(videoElementId: String): BarcodeScan?expect fun stopBarcodeScanner()<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0410 \u0432 <code>jsMain<\/code> \u043b\u0435\u0436\u0438\u0442 JS-\u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f:<\/p>\n<pre><code class=\"kotlin\">actual fun isBarcodeScannerSupported(): Boolean {    return js(        \"'BarcodeDetector' in window &amp;&amp; \" +                \"!!navigator.mediaDevices &amp;&amp; \" +                \"!!navigator.mediaDevices.getUserMedia\"    ) as Boolean}actual suspend fun scanBarcodeFromCamera(videoElementId: String): BarcodeScan? {    val video = js(\"document.getElementById(videoElementId)\")    val constraints = js(        \"({ video: { facingMode: { ideal: 'environment' } }, audio: false })\"    )    activeStream = js(\"navigator.mediaDevices.getUserMedia(constraints)\")        .unsafeCast&lt;Promise&lt;dynamic&gt;&gt;()        .await()    video.srcObject = activeStream    video.play().unsafeCast&lt;Promise&lt;dynamic&gt;&gt;().await()    val detector = js(        \"new BarcodeDetector({ formats: ['ean_13', 'ean_8', 'upc_a', 'code_128', 'qr_code'] })\"    )    while (activeScan) {        val codes = detector.detect(video).unsafeCast&lt;Promise&lt;dynamic&gt;&gt;().await()        if (codes.length &gt; 0) {            stopBarcodeScanner()            return BarcodeScan(codes[0].rawValue as String)        }        delay(350.milliseconds)    }    return null}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u042d\u0442\u043e \u043c\u0435\u0441\u0442\u043e \u0445\u043e\u0440\u043e\u0448\u043e \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u044c Kotlin-\u0444\u0440\u043e\u043d\u0442\u0435\u043d\u0434\u0430. \u041f\u043e\u043a\u0430 \u0432\u044b \u0436\u0438\u0432\u0435\u0442\u0435 \u0432\u043d\u0443\u0442\u0440\u0438 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432, \u0432\u0441\u0435 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043f\u043e\u0447\u0442\u0438 \u0443\u044e\u0442\u043d\u043e. \u041a\u0430\u043a \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430\u0434\u043e \u043f\u043e\u0433\u043e\u0432\u043e\u0440\u0438\u0442\u044c \u0441 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u043e\u043c \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e \u2014 \u0432\u044b \u0441\u043d\u043e\u0432\u0430 \u0440\u044f\u0434\u043e\u043c \u0441 JavaScript interop.<\/p>\n<p>\u0417\u0430\u0442\u043e \u0432 UI \u044d\u0442\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u0432\u043f\u043e\u043b\u043d\u0435 \u0447\u0438\u0441\u0442\u043e:<\/p>\n<pre><code class=\"kotlin\">div(\"scanner-preview\") {    video(\"scanner-video\", \"barcode-scanner-video\") {        attribute(\"autoplay\", \"true\")        attribute(\"muted\", \"true\")        attribute(\"playsinline\", \"true\")    }    div(\"scanner-frame\")}bsButton(    \"\u0421\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u0442\u044c\",    \"bi bi-upc-scan\",    disabled = scanning || !isBarcodeScannerSupported(),) {    onClick {        scanning = true        scanRequest += 1    }}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0414\u0430\u043b\u044c\u0448\u0435 \u0432 <code>LaunchedEffect<\/code> \u043c\u043e\u0436\u043d\u043e \u0434\u043e\u0436\u0434\u0430\u0442\u044c\u0441\u044f \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430 \u0438 \u043f\u043e\u043b\u043e\u0436\u0438\u0442\u044c \u0448\u0442\u0440\u0438\u0445\u043a\u043e\u0434 \u0432 \u0444\u043e\u0440\u043c\u0443.<\/p>\n<h3>\u0427\u0442\u043e \u043f\u043e\u043d\u0440\u0430\u0432\u0438\u043b\u043e\u0441\u044c<\/h3>\n<p>\u0413\u043b\u0430\u0432\u043d\u043e\u0435 \u0443\u0434\u043e\u0432\u043e\u043b\u044c\u0441\u0442\u0432\u0438\u0435 \u2014 \u043d\u0435 \u043d\u0430\u0434\u043e \u0432\u044b\u0445\u043e\u0434\u0438\u0442\u044c \u0438\u0437 Kotlin. DTO, enum, extension-\u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u043a\u043e\u0440\u0443\u0442\u0438\u043d\u044b, <code>kotlinx.serialization<\/code>, Gradle-\u043c\u043e\u0434\u0443\u043b\u0438 \u2014 \u0432\u0441\u0435 \u044d\u0442\u043e \u043e\u0441\u0442\u0430\u0435\u0442\u0441\u044f \u0432 \u043f\u0440\u0438\u0432\u044b\u0447\u043d\u043e\u0439 \u0437\u043e\u043d\u0435. \u0415\u0441\u043b\u0438 \u0432\u044b backend-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a \u043d\u0430 Kotlin, Kilua \u043d\u0435 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0447\u0443\u0436\u0438\u043c.<\/p>\n<p>\u0412\u0442\u043e\u0440\u043e\u0439 \u043f\u043b\u044e\u0441 \u2014 Compose runtime. \u041d\u0435 \u0441\u0430\u043c Compose UI, \u0430 \u0438\u043c\u0435\u043d\u043d\u043e \u043c\u043e\u0434\u0435\u043b\u044c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u0438 <code>@Composable<\/code> \u0444\u0443\u043d\u043a\u0446\u0438\u0438. \u041f\u043e\u0441\u043b\u0435 Android\/Compose Multiplatform \u044d\u0442\u043e \u043e\u0449\u0443\u0449\u0430\u0435\u0442\u0441\u044f \u0435\u0441\u0442\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e: \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f, UI \u043f\u0435\u0440\u0435\u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442\u0441\u044f, \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0436\u0438\u0432\u0435\u0442 \u0447\u0435\u0440\u0435\u0437 <code>remember<\/code>, side effects \u0443\u0445\u043e\u0434\u044f\u0442 \u0432 <code>LaunchedEffect<\/code>.<\/p>\n<p>\u0422\u0440\u0435\u0442\u0438\u0439 \u043f\u043b\u044e\u0441 \u2014 \u043e\u0431\u044b\u0447\u043d\u044b\u0439 DOM. \u042d\u0442\u043e \u0432\u0430\u0436\u043d\u043e. Canvas-\u0440\u0435\u043d\u0434\u0435\u0440\u0438\u043d\u0433 \u0445\u043e\u0440\u043e\u0448 \u0434\u043b\u044f \u0441\u0432\u043e\u0438\u0445 \u0437\u0430\u0434\u0430\u0447, \u043d\u043e \u0434\u043b\u044f web-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u043e\u0431\u044b\u0447\u043d\u044b\u0435 HTML-\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u0434\u0430\u044e\u0442 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u0443\u044e \u0440\u0430\u0431\u043e\u0442\u0443 \u0441 CSS, accessibility, devtools, SEO \u0438 \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u0435\u0439 \u0441 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u043e\u043c.<\/p>\n<p>\u0418 \u0435\u0449\u0435 \u043f\u043e\u043d\u0440\u0430\u0432\u0438\u043b\u043e\u0441\u044c, \u0447\u0442\u043e Kilua \u043d\u0435 \u043f\u044b\u0442\u0430\u0435\u0442\u0441\u044f \u0434\u0435\u043b\u0430\u0442\u044c \u0432\u0438\u0434, \u0431\u0443\u0434\u0442\u043e \u043c\u0438\u0440\u0430 JavaScript \u043d\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442. \u0415\u0441\u0442\u044c \u0438\u043d\u0442\u0435\u0440\u043e\u043f, \u0435\u0441\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u0430 \u0441 \u0440\u0435\u0441\u0443\u0440\u0441\u0430\u043c\u0438, Bootstrap\/Tailwind, RPC \u0438 SSR.<\/p>\n<h3>\u0427\u0442\u043e \u0441\u043c\u0443\u0449\u0430\u0435\u0442<\/h3>\n<p>\u041f\u0440\u0438\u043c\u0435\u043d\u0438\u043c\u043e\u0441\u0442\u044c \u043f\u043e\u043a\u0430 \u043d\u0435 \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u0430. \u0414\u043b\u044f \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u0430 \u043f\u0443\u0431\u043b\u0438\u0447\u043d\u044b\u0445 frontend-\u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432 React\/Vue\/Svelte \u0431\u0443\u0434\u0443\u0442 \u043f\u0440\u0430\u0433\u043c\u0430\u0442\u0438\u0447\u043d\u0435\u0435: \u0431\u043e\u043b\u044c\u0448\u0435 \u044d\u043a\u043e\u0441\u0438\u0441\u0442\u0435\u043c\u0430, \u0431\u043e\u043b\u044c\u0448\u0435 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u0438\u0441\u0442\u043e\u0432, \u0431\u043e\u043b\u044c\u0448\u0435 \u0433\u043e\u0442\u043e\u0432\u044b\u0445 \u0440\u0435\u0448\u0435\u043d\u0438\u0439, \u043f\u0440\u043e\u0449\u0435 \u043d\u0430\u0439\u0442\u0438 \u043e\u0442\u0432\u0435\u0442 \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u043d\u0443\u044e \u043e\u0448\u0438\u0431\u043a\u0443 \u0438\u0437 \u0433\u043b\u0443\u0431\u0438\u043d \u0441\u0431\u043e\u0440\u043a\u0438.<\/p>\n<p>\u041a\u043e\u0434 \u043d\u0430 Kilua \u0432\u0441\u0435 \u0440\u0430\u0432\u043d\u043e \u043e\u0441\u0442\u0430\u0435\u0442\u0441\u044f frontend-\u043a\u043e\u0434\u043e\u043c. \u0414\u0430, \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441 Kotlin. \u041d\u043e \u043c\u044b\u0448\u043b\u0435\u043d\u0438\u0435 \u0447\u0430\u0441\u0442\u043e \u0442\u0430\u043a\u043e\u0435 \u0436\u0435: \u0441\u043e\u0431\u0440\u0430\u0442\u044c DOM, \u043f\u043e\u0432\u0435\u0441\u0438\u0442\u044c \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438, \u043d\u0430\u0437\u043d\u0430\u0447\u0438\u0442\u044c \u043a\u043b\u0430\u0441\u0441\u044b, \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c CSS, \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c\u0441\u044f \u0441 browser API. \u0415\u0441\u043b\u0438 \u0447\u0435\u043b\u043e\u0432\u0435\u043a \u043d\u0435 \u0437\u043d\u0430\u0435\u0442 HTML\/CSS\/JS, Kilua \u043d\u0435 \u0442\u0435\u043b\u0435\u043f\u043e\u0440\u0442\u0438\u0440\u0443\u0435\u0442 \u0435\u0433\u043e \u0441\u0440\u0430\u0437\u0443 \u0432 senior frontend. \u0421\u043a\u043e\u0440\u0435\u0435 \u0434\u0430\u0441\u0442 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0443\u0447\u0438\u0442\u044c\u0441\u044f \u044d\u0442\u043e\u043c\u0443 \u0438\u0437 Kotlin-\u043a\u043e\u0434\u0430, \u0447\u0442\u043e \u0441\u0430\u043c\u043e \u043f\u043e \u0441\u0435\u0431\u0435 \u043d\u0435\u043f\u043b\u043e\u0445\u043e, \u043d\u043e \u0447\u0443\u0434\u043e\u043c \u043d\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f.<\/p>\n<p>\u041f\u043e\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0438 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u043f\u0440\u043e\u043c\u0435\u0436\u0443\u0442\u043e\u0447\u043d\u044b\u0439 \u0441\u043b\u043e\u0439: Kotlin-\u043a\u043e\u0434 \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442 \u0447\u0435\u0440\u0435\u0437 compiler, Gradle, JS\/Wasm-\u0441\u0431\u043e\u0440\u043a\u0443 \u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0442\u043e\u043c \u043f\u043e\u043f\u0430\u0434\u0430\u0435\u0442 \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440. \u041a\u043e\u0433\u0434\u0430 \u0447\u0442\u043e-\u0442\u043e \u043b\u043e\u043c\u0430\u0435\u0442\u0441\u044f, \u043d\u0435 \u0432\u0441\u0435\u0433\u0434\u0430 \u0441\u0440\u0430\u0437\u0443 \u043f\u043e\u043d\u044f\u0442\u043d\u043e, \u0433\u0434\u0435 \u0438\u043c\u0435\u043d\u043d\u043e \u0442\u0440\u0435\u0441\u043d\u0443\u043b\u043e: \u0432 Kotlin DSL, \u0432 interop, \u0432 generated JavaScript, \u0432 source maps, \u0432 webpack-\u043e\u0431\u0432\u044f\u0437\u043a\u0435 \u0438\u043b\u0438 \u0443\u0436\u0435 \u0432 \u0441\u0430\u043c\u043e\u043c browser API. \u042d\u0442\u043e \u043d\u0435 \u043a\u0430\u0442\u0430\u0441\u0442\u0440\u043e\u0444\u0430, \u043d\u043e \u0434\u0435\u0431\u0430\u0436\u0438\u0442\u044c \u0438\u043d\u043e\u0433\u0434\u0430 \u043c\u0435\u043d\u0435\u0435 \u043f\u0440\u043e\u0437\u0440\u0430\u0447\u043d\u043e, \u0447\u0435\u043c \u043e\u0431\u044b\u0447\u043d\u044b\u0439 TypeScript-\u043a\u043e\u0434, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u044b \u0441\u0430\u043c\u0438 \u0436\u0435 \u0438 \u043d\u0430\u043f\u0438\u0441\u0430\u043b\u0438.<\/p>\n<p>CI\/CD \u0442\u043e\u0436\u0435 \u043d\u0435 \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u0441\u0442\u0435\u0440\u0438\u043b\u044c\u043d\u044b\u043c JVM-\u0430\u043a\u0432\u0430\u0440\u0438\u0443\u043c\u043e\u043c. Kotlin\/JS \u0442\u044f\u043d\u0435\u0442 npm-\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438, package lock, webpack\/Vite-\u0438\u0441\u0442\u043e\u0440\u0438\u044e \u0438 \u0432\u0441\u0435 \u0441\u043e\u043f\u0443\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0435 \u0440\u0430\u0434\u043e\u0441\u0442\u0438. \u041e\u043d\u0438 \u043b\u0443\u0447\u0448\u0435 \u0441\u043f\u0440\u044f\u0442\u0430\u043d\u044b, \u043d\u043e \u0432 \u043c\u043e\u043c\u0435\u043d\u0442 \u043f\u043e\u043b\u043e\u043c\u043a\u0438 \u0432\u0441\u0435 \u0440\u0430\u0432\u043d\u043e \u0432\u044b\u0439\u0434\u0443\u0442 \u043d\u0430 \u0441\u0446\u0435\u043d\u0443.<\/p>\n<p>\u041d\u0443 \u0438 \u043c\u043e\u043b\u043e\u0434\u043e\u0441\u0442\u044c \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0430 \u0447\u0443\u0432\u0441\u0442\u0432\u0443\u0435\u0442\u0441\u044f. \u0414\u043b\u044f pet project, \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0435\u0439 \u0430\u0434\u043c\u0438\u043d\u043a\u0438 \u0438\u043b\u0438 \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u0430 \u2014 \u043e\u0442\u043b\u0438\u0447\u043d\u043e. \u0414\u043b\u044f \u043a\u0440\u0438\u0442\u0438\u0447\u043d\u043e\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u0441 \u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 \u044f \u0431\u044b \u043f\u043e\u043a\u0430 \u0434\u0435\u0441\u044f\u0442\u044c \u0440\u0430\u0437 \u043f\u043e\u0434\u0443\u043c\u0430\u043b. \u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u0434\u0430\u0436\u0435 \u043e\u0434\u0438\u043d\u043d\u0430\u0434\u0446\u0430\u0442\u044c, \u0435\u0441\u043b\u0438 \u0440\u044f\u0434\u043e\u043c \u0435\u0441\u0442\u044c frontend-\u043b\u0438\u0434 \u0441 \u0431\u0438\u0442\u043e\u0439.<\/p>\n<h3>\u0412\u044b\u0432\u043e\u0434<\/h3>\n<p>\u041f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c Kilua \u0442\u043e\u0447\u043d\u043e \u0441\u0442\u043e\u0438\u0442. \u0425\u043e\u0442\u044f \u0431\u044b \u0440\u0430\u0434\u0438 \u0442\u043e\u0433\u043e \u043c\u043e\u043c\u0435\u043d\u0442\u0430, \u043a\u043e\u0433\u0434\u0430 \u0442\u044b \u043f\u0438\u0448\u0435\u0448\u044c <code>@Composable<\/code> \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u043d\u043e\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438, \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0448\u044c \u044d\u0442\u043e Gradle\u2019\u043e\u043c, \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u0448\u044c DevTools \u0438 \u0432\u0438\u0434\u0438\u0448\u044c \u043e\u0431\u044b\u0447\u043d\u044b\u0439 DOM. \u0412 \u044d\u0442\u043e\u0442 \u043c\u043e\u043c\u0435\u043d\u0442 frontend \u043d\u0430 Kotlin \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u0435\u0442 \u0431\u044b\u0442\u044c \u0430\u0431\u0441\u0442\u0440\u0430\u043a\u0442\u043d\u043e\u0439 \u0438\u0434\u0435\u0435\u0439 \u0438\u0437 \u043f\u0440\u0435\u0437\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u0438 \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u0432\u043f\u043e\u043b\u043d\u0435 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u043c \u043a\u043e\u0434\u043e\u043c. \u041d\u0435\u043c\u043d\u043e\u0433\u043e \u0441\u0442\u0440\u0430\u043d\u043d\u044b\u043c, \u043d\u043e \u0436\u0438\u0432\u044b\u043c.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u043d\u0430 \u043f\u0440\u043e\u0435\u043a\u0442\u0435 \u0443\u0436\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f KVision, \u0442\u043e \u043f\u0435\u0440\u0435\u0445\u043e\u0434 \u0432 Kilua \u0431\u0443\u0434\u0435\u0442 \u043b\u043e\u0433\u0438\u0447\u043d\u044b\u043c \u0448\u0430\u0433\u043e\u043c.<\/p>\n<\/div>\n<p>\u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/1046505\/\">https:\/\/habr.com\/ru\/articles\/1046505\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0412\u0440\u0435\u043c\u044f \u043e\u0442 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0432 Kotlin-\u043c\u0438\u0440\u0435 \u043f\u043e\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043d\u043e\u0432\u044b\u0439 \u0432\u0438\u0442\u043e\u043a \u043d\u0430\u0434\u0435\u0436\u0434\u044b: \u0432\u0434\u0440\u0443\u0433 web-frontend \u043c\u043e\u0436\u043d\u043e \u043f\u0438\u0441\u0430\u0442\u044c \u043d\u0430 \u043f\u0440\u0438\u0432\u044b\u0447\u043d\u043e\u043c \u044f\u0437\u044b\u043a\u0435. \u041e\u0431\u044b\u0447\u043d\u043e \u0442\u0430\u043a\u0438\u0435 \u043f\u043e\u043f\u044b\u0442\u043a\u0438 \u0437\u0430\u043a\u0430\u043d\u0447\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u0433\u0434\u0435-\u0442\u043e \u043c\u0435\u0436\u0434\u0443 \u201c\u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u201d \u0438 \u201c\u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u0432\u0441\u0435-\u0442\u0430\u043a\u0438 \u0441\u0434\u0435\u043b\u0430\u0435\u043c \u043d\u0430 React\/Vue\u201d. \u041d\u043e \u0438\u043d\u043e\u0433\u0434\u0430 \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u0438\u0439 \u044d\u043d\u0442\u0443\u0437\u0438\u0430\u0441\u0442 \u0432 \u0433\u043e\u043b\u043e\u0432\u0435 \u0432\u0441\u0435-\u0442\u0430\u043a\u0438 \u0445\u043e\u0447\u0435\u0442 \u043f\u043e\u0442\u044b\u043a\u0430\u0442\u044c \u043f\u0430\u043b\u043e\u0447\u043a\u043e\u0439 \u043d\u043e\u0432\u0443\u044e \u0448\u0442\u0443\u043a\u0443. \u0422\u0430\u043a \u044f \u0438 \u0434\u043e\u0431\u0440\u0430\u043b\u0441\u044f \u0434\u043e Kilua \u2014 \u043d\u043e\u0432\u043e\u0433\u043e web-\u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0430 \u0434\u043b\u044f Kotlin, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u044b\u0440\u043e\u0441 \u0440\u044f\u0434\u043e\u043c \u0441 KVision, \u043d\u043e \u043f\u043e\u0448\u0435\u043b \u0432 \u0441\u0442\u043e\u0440\u043e\u043d\u0443 Compose-\u043f\u043e\u0434\u0445\u043e\u0434\u0430. \u0421 \u043d\u0435\u0434\u0430\u0432\u043d\u0438\u0445 \u043f\u043e\u0440 \u043e\u043d \u0432\u043a\u043b\u044e\u0447\u0435\u043d \u0432 \u0441\u043f\u0438\u0441\u043e\u043a \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0430\u0446\u0438\u0439 Kotlin\/Js \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u043e\u0432 \u043e\u0442 JetBrains, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0435\u0433\u043e \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u0438\u0435 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u043e.\u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043f\u043e\u043b\u0438\u0433\u043e\u043d\u0430 \u0441\u0434\u0435\u043b\u0430\u0435\u043c \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0435 CRUD-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0434\u043e\u043c\u0430\u0448\u043d\u0435\u0439 \u0430\u043f\u0442\u0435\u0447\u043a\u043e\u0439: \u043b\u0435\u043a\u0430\u0440\u0441\u0442\u0432\u0430, \u043c\u0435\u0441\u0442\u0430 \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f, \u0442\u0435\u0433\u0438, \u0441\u0440\u043e\u043a\u0438 \u0433\u043e\u0434\u043d\u043e\u0441\u0442\u0438 \u0438 \u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0448\u0442\u0440\u0438\u0445\u043a\u043e\u0434\u0430 \u043a\u0430\u043c\u0435\u0440\u043e\u0439. \u041d\u0438\u0447\u0435\u0433\u043e \u043a\u043e\u0441\u043c\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e, \u043d\u043e \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0436\u0438\u0432\u043e, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438. \u041f\u043e\u043b\u043d\u044b\u0439 \u043a\u043e\u0434 \u043b\u0435\u0436\u0438\u0442 \u0432 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438 \u043d\u0430 GitLab.\u0427\u0442\u043e \u0432\u043e\u043e\u0431\u0449\u0435 \u0442\u0430\u043a\u043e\u0435 KiluaKilua \u2014 \u044d\u0442\u043e open source web-\u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a \u0434\u043b\u044f Kotlin. \u041e\u043d \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 Compose Multiplatform Runtime (\u043d\u0435 \u043f\u0443\u0442\u0430\u0439\u0442\u0435 \u0441 Jetpack Compose \u0434\u043b\u044f Android \u0438\u043b\u0438 Compose Web, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0440\u0438\u0441\u0443\u0435\u0442 UI \u0447\u0435\u0440\u0435\u0437 canvas\/Skia). Kilua \u0440\u0435\u043d\u0434\u0435\u0440\u0438\u0442 \u043e\u0431\u044b\u0447\u043d\u044b\u0439 HTML DOM: \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u0432 \u0438\u0442\u043e\u0433\u0435 \u0436\u0438\u0432\u0443\u0442 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u044b\u0435 div, button, input, CSS \u0438 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u043d\u044b\u0435 \u0441\u043e\u0431\u044b\u0442\u0438\u044f. \u0415\u0441\u043b\u0438 \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u043c JS target \u2014 Kotlin-\u043a\u043e\u0434 \u0431\u0443\u043a\u0432\u0430\u043b\u044c\u043d\u043e \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u0432 JavaScript bundle.\u041f\u0440\u0435\u0434\u0448\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u0438\u043a\u043e\u043c Kilua \u0431\u044b\u043b KVision, \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a \u0440\u0430\u0437\u0432\u0438\u0432\u0430\u0435\u0442 \u0442\u043e\u0442 \u0436\u0435 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a. KVision \u0431\u043e\u043b\u0435\u0435 \u0441\u0442\u0430\u0440\u044b\u0439 \u043e\u0431\u044a\u0435\u043a\u0442\u043d\u043e-\u043e\u0440\u0438\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a \u0434\u043b\u044f Kotlin\/JS: \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b, \u0431\u0438\u043d\u0434\u0438\u043d\u0433\u0438, UI \u0438\u0437 Kotlin-\u043a\u043e\u0434\u0430, \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u0438 \u0441 backend. Kilua \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043a\u0430\u043a \u043f\u043e\u043f\u044b\u0442\u043a\u0430 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0437\u0430\u0445\u043e\u0434 \u0443\u0436\u0435 \u0441 \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u043c Compose runtime: @Composable \u0444\u0443\u043d\u043a\u0446\u0438\u0438, remember, mutableStateOf, \u043a\u043e\u0440\u0443\u0442\u0438\u043d\u044b, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0441\u043e\u0431\u0438\u0440\u0430\u0442\u044c\u0441\u044f \u0438 \u0432 Kotlin\/JS, \u0438 \u0432 Kotlin\/Wasm.\u041d\u0430 \u043c\u043e\u043c\u0435\u043d\u0442 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u043f\u0440\u0438\u043c\u0435\u0440\u0430 \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0430 \u2014 0.0.34: \u043f\u0440\u043e\u0435\u043a\u0442 \u0443\u0436\u0435 \u0432\u043f\u043e\u043b\u043d\u0435 \u0440\u0430\u0431\u043e\u0447\u0438\u0439, \u043d\u043e \u0430\u043a\u0442\u0438\u0432\u043d\u0430\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u0435\u0449\u0435 \u0438\u0434\u0435\u0442.\u041f\u043e\u0447\u0435\u043c\u0443 \u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u043e KVision 10? \u0422\u0443\u0442 \u043c\u043e\u0436\u043d\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0441\u0442\u043e\u0440\u043e\u0436\u043d\u043e \u0438\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c, \u043d\u043e \u043f\u0440\u0438\u0447\u0438\u043d\u0430 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0437\u0435\u043c\u043d\u043e\u0439. \u0415\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0431\u044b\u043b \u043e\u0431\u044a\u0435\u043a\u0442\u043d\u044b\u0439 Kotlin\/JS-\u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a, \u0430 \u0432\u044b \u0445\u043e\u0442\u0438\u0442\u0435 \u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u043a Compose-\u043c\u043e\u0434\u0435\u043b\u0438, Wasm, SSR \u0438 \u043d\u043e\u0432\u043e\u043c\u0443 API \u2014 \u044d\u0442\u043e \u0443\u0436\u0435 \u043d\u0435 \u043a\u043e\u0441\u043c\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0440\u0435\u043c\u043e\u043d\u0442. \u041d\u043e\u0432\u043e\u0435 \u0438\u043c\u044f \u0432 \u0442\u0430\u043a\u043e\u0439 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0438 \u0434\u0430\u0436\u0435 \u043f\u043e\u043b\u0435\u0437\u043d\u043e: \u043c\u0435\u043d\u044c\u0448\u0435 \u0438\u043b\u043b\u044e\u0437\u0438\u0438, \u0447\u0442\u043e \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u044f \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u0441\u0442\u043e\u044f\u0442\u044c \u0438\u0437 \u0442\u0440\u0435\u0445 \u0438\u043c\u043f\u043e\u0440\u0442\u043e\u0432 \u0438 \u043c\u043e\u043b\u0438\u0442\u0432\u044b.\u0418\u0437 \u0437\u0430\u043c\u0435\u0442\u043d\u044b\u0445 \u0444\u0438\u0447 Kilua \u043d\u0430 \u0441\u0430\u0439\u0442\u0435 \u0441\u0435\u0439\u0447\u0430\u0441 \u0432\u044b\u0434\u0435\u043b\u044f\u044e\u0442\u0441\u044f \u0433\u043e\u0442\u043e\u0432\u044b\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b, \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 Bootstrap \u0438 Tailwind, router, HTTP client, SSR, \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 export \u0438 Kilua RPC. \u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0435\u043d \u0434\u043b\u044f fullstack Kotlin: \u043c\u043e\u0436\u043d\u043e \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u043a\u043e\u043d\u0442\u0440\u0430\u043a\u0442\u044b \u0432 \u043e\u0431\u0449\u0435\u043c \u043a\u043e\u0434\u0435 \u0438 \u0441\u0432\u044f\u0437\u044b\u0432\u0430\u0442\u044c frontend \u0441 backend \u043d\u0430 Ktor, Spring Boot, Micronaut, Javalin, Jooby \u0438\u043b\u0438 Vert.x. \u0421\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u043e\u0441\u0442\u044c \u0441 gRPC \u0432 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u043d\u0435 \u0437\u0430\u044f\u0432\u043b\u0435\u043d\u0430: Kilua RPC \u2014 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0430\u044f Kotlin-first RPC \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430, \u0430 \u043d\u0435 gRPC transport \u043f\u043e\u0432\u0435\u0440\u0445 .proto, HTTP\/2 \u0438 protobuf. \u0415\u0441\u043b\u0438 \u0432 \u043f\u0440\u043e\u0435\u043a\u0442\u0435 \u0443\u0436\u0435 \u0435\u0441\u0442\u044c gRPC-\u043a\u043e\u043d\u0442\u0440\u0430\u043a\u0442\u044b, \u0438\u0445 \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u0438\u043d\u0442\u0435\u0433\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e. \u0412 \u0442\u0435\u043a\u0443\u0449\u0435\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435 RPC \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f: \u0442\u0430\u043c \u043e\u0431\u044b\u0447\u043d\u044b\u0439 REST \u0447\u0435\u0440\u0435\u0437 fetch, \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u0443\u0441\u043b\u043e\u0436\u043d\u044f\u0442\u044c.\u0417\u0430\u0447\u0435\u043c \u043f\u0438\u0441\u0430\u0442\u044c frontend \u043d\u0430 Kotlin?\u0421\u0430\u043c\u044b\u0439 \u0447\u0435\u0441\u0442\u043d\u044b\u0439 \u043e\u0442\u0432\u0435\u0442: \u043d\u0435 \u0432\u0441\u0435\u0433\u0434\u0430 \u043d\u0443\u0436\u043d\u043e.\u0415\u0441\u043b\u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u0443\u0432\u0435\u0440\u0435\u043d\u043d\u043e \u043f\u0438\u0448\u0435\u0442 \u043d\u0430 React\/Vue\/Svelte, \u0443 \u043d\u0435\u0435 \u0443\u0436\u0435 \u0435\u0441\u0442\u044c \u0434\u0438\u0437\u0430\u0439\u043d-\u0441\u0438\u0441\u0442\u0435\u043c\u0430, Storybook, \u0442\u0435\u0441\u0442\u044b, CI\/CD \u0438 \u043f\u0440\u0438\u0432\u044b\u0447\u043d\u044b\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b, \u0442\u043e \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u044c \u0442\u0443\u0434\u0430 \u0441 Kotlin-\u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u043e\u043c \u0432 \u0440\u0443\u043a\u0430\u0445 \u043d\u0430\u0434\u043e \u043e\u0447\u0435\u043d\u044c \u0430\u043a\u043a\u0443\u0440\u0430\u0442\u043d\u043e. \u041c\u0438\u0440 frontend \u2014 \u044d\u0442\u043e \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u044f\u0437\u044b\u043a, \u043d\u043e \u0438 \u044d\u043a\u043e\u0441\u0438\u0441\u0442\u0435\u043c\u0430, browser API, CSS, accessibility, \u0441\u0431\u043e\u0440\u043a\u0430, \u043b\u0438\u043d\u0442\u0435\u0440\u044b, \u043f\u0430\u043a\u0435\u0442\u044b, devtools \u0438 \u0441\u043e\u0441\u0435\u0434\u043d\u0438\u0439 \u0447\u0430\u0442, \u0433\u0434\u0435 \u043a\u0442\u043e-\u0442\u043e \u0443\u0436\u0435 \u0442\u0440\u0435\u0442\u0438\u0439 \u0447\u0430\u0441 \u0441\u043f\u043e\u0440\u0438\u0442 \u043f\u0440\u043e z-index. \u041f\u0440\u0438\u043d\u043e\u0441\u0438\u0442\u044c \u0441\u044e\u0434\u0430 Kotlin \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442 \u0435\u0449\u0435 \u043e\u0434\u0438\u043d (\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u043b\u0438\u0448\u043d\u0438\u0439) \u043f\u0440\u043e\u043c\u0435\u0436\u0443\u0442\u043e\u0447\u043d\u044b\u0439 \u0448\u0430\u0433, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0447\u0442\u043e-\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u0439\u0442\u0438 \u043d\u0435 \u0442\u0430\u043a.\u041d\u043e \u0443 Kotlin \u043d\u0430 \u0444\u0440\u043e\u043d\u0442\u0435 \u0432\u0441\u0435 \u0436\u0435 \u0435\u0441\u0442\u044c \u0441\u0432\u043e\u0439 \u0441\u043c\u044b\u0441\u043b. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440:\u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u0434\u043b\u044f Kotlin-\u043a\u043e\u043c\u0430\u043d\u0434\u044b;pet project, \u0433\u0434\u0435 \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u043e\u0434\u0438\u043d \u044f\u0437\u044b\u043a \u0438 \u0437\u043d\u0430\u043a\u043e\u043c\u044b\u0439 Gradle;fullstack-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0441 \u043e\u0431\u0449\u0438\u043c\u0438 \u043c\u043e\u0434\u0435\u043b\u044f\u043c\u0438, \u0441\u0435\u0440\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0435\u0439 \u0438 \u0432\u0430\u043b\u0438\u0434\u0430\u0446\u0438\u0435\u0439;\u043a\u043e\u043c\u0430\u043d\u0434\u0430, \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0431\u043b\u0438\u0436\u0435 Compose-\u043c\u044b\u0448\u043b\u0435\u043d\u0438\u0435, \u0447\u0435\u043c \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u0438\u0439 JS-\u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a;\u0436\u0435\u043b\u0430\u043d\u0438\u0435 \u043f\u043e\u0442\u0440\u043e\u0433\u0430\u0442\u044c Kotlin\/Wasm \u0431\u0435\u0437 \u043f\u043e\u043b\u043d\u043e\u0433\u043e \u0443\u0445\u043e\u0434\u0430 \u0432 \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u0443\u044e \u043b\u0430\u0431\u043e\u0440\u0430\u0442\u043e\u0440\u0438\u044e.Kilua \u043d\u0435 \u043e\u0442\u043c\u0435\u043d\u044f\u0435\u0442 HTML, CSS \u0438 JavaScript. \u042d\u0442\u043e \u0432\u0430\u0436\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442. \u041a\u043e\u0434 \u043d\u0430 Kilua \u0447\u0430\u0441\u0442\u043e \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043a\u0430\u043a Kotlin-\u0432\u0435\u0440\u0441\u0438\u044f HTML+JS: vPanel, div, text, className, onInput. \u0414\u0430, \u044d\u0442\u043e Kotlin. \u041d\u043e \u0432\u0430\u043c \u0432\u0441\u0435 \u0440\u0430\u0432\u043d\u043e \u043d\u0430\u0434\u043e \u043f\u043e\u043d\u0438\u043c\u0430\u0442\u044c, \u043a\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 input, \u043f\u043e\u0447\u0435\u043c\u0443 CSS \u043f\u043e\u0435\u0445\u0430\u043b \u043d\u0430 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u043e\u043c \u044d\u043a\u0440\u0430\u043d\u0435 \u0438 \u043f\u043e\u0447\u0435\u043c\u0443 \u0441\u043e\u0431\u044b\u0442\u0438\u0435 \u0441\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u043d\u0435 \u0442\u043e\u0433\u0434\u0430, \u043a\u043e\u0433\u0434\u0430 \u0432\u044b \u043c\u043e\u0440\u0430\u043b\u044c\u043d\u043e \u0431\u044b\u043b\u0438 \u043a \u043d\u0435\u043c\u0443 \u0433\u043e\u0442\u043e\u0432\u044b.\u0415\u0441\u043b\u0438 \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u0441\u043e\u0432\u0441\u0435\u043c \u043d\u0435 \u0434\u0443\u043c\u0430\u0442\u044c \u043f\u0440\u043e \u0431\u0440\u0430\u0443\u0437\u0435\u0440, \u0431\u043b\u0438\u0436\u0435 \u0431\u0443\u0434\u0435\u0442 Vaadin Flow: \u0442\u0430\u043c UI \u0436\u0438\u0432\u0435\u0442 \u0432 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u043c \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435, \u0432\u044b \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0438\u0437 Java-\u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432, \u0430 Vaadin \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0438\u0440\u0443\u0435\u0442 \u044d\u0442\u043e \u0441 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u043e\u043c. \u0426\u0435\u043d\u0430 \u0434\u0440\u0443\u0433\u0430\u044f: \u0431\u043e\u043b\u044c\u0448\u0435 \u0437\u0430\u0432\u044f\u0437\u043a\u0438 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440, \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0441\u0435\u0441\u0441\u0438\u0438, \u0441\u0435\u0442\u0435\u0432\u043e\u0435 \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435. Kilua \u2014 \u044d\u0442\u043e \u0432\u0441\u0435-\u0442\u0430\u043a\u0438 \u043a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435. \u041f\u0440\u043e\u0441\u0442\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u043e\u0435 \u043d\u0430 Kotlin \u0438 \u0441\u043e\u0431\u0440\u0430\u043d\u043d\u043e\u0435 \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u043d\u044b\u0439 bundle.\u041f\u0440\u043e\u0431\u0443\u0435\u043c Kilua \u0432 \u0434\u0435\u043b\u0435\u041e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u0430\u044f \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u0442 \u0434\u0432\u0430 \u043f\u0443\u0442\u0438: \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c Kilua Project Wizard \u0432 IntelliJ IDEA \u0438\u043b\u0438 \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c template project. \u0415\u0441\u043b\u0438 \u0432 \u043f\u0440\u043e\u0435\u043a\u0442\u0435 \u0443\u0436\u0435 \u0435\u0441\u0442\u044c backend-\u043c\u043e\u0434\u0443\u043b\u044c, \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u043e\u043b\u043e\u0436\u0438\u0442\u044c frontend \u0440\u044f\u0434\u043e\u043c. \u042d\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442 \u043d\u0430 \u044d\u0442\u0430\u043f\u0435 \u0441\u0431\u043e\u0440\u043a\u0438 \u043f\u043e\u043b\u043e\u0436\u0438\u0442\u044c \u0441\u043e\u0431\u0440\u0430\u043d\u043d\u044b\u0439 js-bundle \u043f\u0440\u044f\u043c\u043e \u0432 static \u0440\u0435\u0441\u0443\u0440\u0441\u044b backend, \u043f\u043e\u043b\u0443\u0447\u0438\u0432 \u0435\u0434\u0438\u043d\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435.\u0421\u0430\u043c frontend-\u043c\u043e\u0434\u0443\u043b\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 Kotlin Multiplatform, Compose compiler\/plugin \u0438 Kilua:plugins {    \/\/ Kotlin Multiplatform \u0434\u0430\u0435\u0442 JS\/Wasm targets.    kotlin(&#171;multiplatform&#187;) version &#171;2.3.21&#187;    \/\/ \u041d\u0443\u0436\u0435\u043d \u0434\u043b\u044f kotlinx.serialization \u0432 DTO \u0438 REST-\u043a\u043b\u0438\u0435\u043d\u0442\u0435.    kotlin(&#171;plugin.serialization&#187;) version &#171;2.3.21&#187;    \/\/ Compose runtime: @Composable, remember, mutableStateOf.    id(&#171;org.jetbrains.compose&#187;) version &#171;1.11.0&#187;    id(&#171;org.jetbrains.kotlin.plugin.compose&#187;) version &#171;2.3.21&#187;    \/\/ \u0421\u0430\u043c Kilua \u0438 \u0435\u0433\u043e Gradle-\u0437\u0430\u0434\u0430\u0447\u0438.    id(&#171;dev.kilua&#187;) version &#171;0.0.34&#187;}kotlin {    js(IR) {        useEsModules()        browser {            commonWebpackConfig {                cssSupport {                    enabled = true                }                outputFileName = &#171;main.bundle.js&#187;                sourceMaps = false            }        }        binaries.executable()        compilerOptions {            target.set(&#171;es2015&#187;)        }    }    sourceSets {        commonMain.dependencies {            implementation(&#171;dev.kilua:kilua:0.0.34&#187;)            implementation(&#171;dev.kilua:kilua-bootstrap:0.0.34&#187;)            implementation(&#171;dev.kilua:kilua-bootstrap-icons:0.0.34&#8243;)        }    }}\u0414\u043b\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c JS target \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 .\/gradlew -t :view-frontend:jsBrowserDevelopmentRun. \u041f\u043e\u0441\u043b\u0435 \u0441\u0442\u0430\u0440\u0442\u0430 dev-\u0441\u0435\u0440\u0432\u0435\u0440 \u043e\u0431\u044b\u0447\u043d\u043e \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u043d\u0430 http:\/\/localhost:3000.\u0414\u043b\u044f production-\u0441\u0431\u043e\u0440\u043a\u0438 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e .\/gradlew :view-frontend:jsBrowserDistribution.\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043f\u043e\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0432 view-frontend\/build\/dist\/js\/productionExecutable: index.html, app.css, main.bundle.js, \u0448\u0440\u0438\u0444\u0442\u044b \u0438 \u043f\u0440\u043e\u0447\u0438\u0435 \u0440\u0435\u0441\u0443\u0440\u0441\u044b. \u0412 \u043c\u043e\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 main.bundle.js \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0441\u044f \u043e\u043a\u043e\u043b\u043e 1.6 MB. \u0414\u043b\u044f \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u043e\u0433\u043e CRUD \u044d\u0442\u043e \u043d\u0435 \u201c\u0432\u0430\u0443, \u043a\u0430\u043a \u043a\u043e\u043c\u043f\u0430\u043a\u0442\u043d\u043e\u201d, \u043d\u043e \u0438 \u043d\u0435 \u043f\u043e\u0432\u043e\u0434 \u0441\u0440\u0430\u0437\u0443 \u0437\u0432\u043e\u043d\u0438\u0442\u044c \u0432 \u043a\u043e\u043c\u0438\u0442\u0435\u0442 \u043f\u043e \u0447\u0440\u0435\u0437\u0432\u044b\u0447\u0430\u0439\u043d\u044b\u043c \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044f\u043c.\u041e\u0442\u0434\u0435\u043b\u044c\u043d\u0430\u044f \u0431\u044b\u0442\u043e\u0432\u0430\u044f \u0434\u0435\u0442\u0430\u043b\u044c: Kotlin\/JS \u0432\u0441\u0435 \u0440\u0430\u0432\u043d\u043e \u0442\u0440\u0435\u0431\u0443\u0435\u0442 Node\/npm \u2014 \u044d\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u0442\u044c \u0432 CI\/CD. \u0412 \u043f\u0440\u043e\u0435\u043a\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f kotlin-js-store\/package-lock.json, \u0430 \u043f\u043e\u0441\u043b\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f frontend-\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0435\u0439 \u0438\u043b\u0438 \u0432\u0435\u0440\u0441\u0438\u0438 Kotlin\/JS-\u043f\u043b\u0430\u0433\u0438\u043d\u0430 \u043d\u0443\u0436\u043d\u043e \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0442\u044c lock-\u0444\u0430\u0439\u043b \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 .\/gradlew kotlinUpgradePackageLock (\u0440\u0443\u0447\u043d\u044b\u0435 \u043f\u0440\u0430\u0432\u043a\u0438 \u0438\u043b\u0438 \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e \u0447\u0435\u0440\u0435\u0437 npm \u043f\u0440\u043e\u0441\u0442\u043e \u0441\u043b\u043e\u043c\u0430\u044e\u0442 \u0431\u0438\u043b\u0434).\u0421\u043a\u0435\u043b\u0435\u0442 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u0414\u043b\u044f \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0433\u043e SPA \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u0430\u043a\u0443\u044e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443:view-frontend\/  src\/commonMain\/    kotlin\/com\/example\/view\/      App.kt      model\/Models.kt      api\/MedicineApi.kt      store\/AppStore.kt      ui\/Screens.kt      platform\/Platform.kt    resources\/      index.html      app.css  src\/jsMain\/    kotlin\/com\/example\/view\/platform\/Platform.js.ktindex.html \u043f\u043e\u0447\u0442\u0438 \u043f\u0443\u0441\u0442\u043e\u0439. \u041e\u043d \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u0442 CSS, \u043a\u043b\u0430\u0434\u0435\u0442 \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0438 \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u0442 bundle:&#8230;&lt;body&gt;    &lt;div id=&#187;root&#187;&gt;&lt;\/div&gt;    &lt;script src=&#187;main.bundle.js&#187;&gt;&lt;\/script&gt;&lt;\/body&gt;&#8230;\u0422\u043e\u0447\u043a\u0430 \u0432\u0445\u043e\u0434\u0430 \u0432 Kilua \u0442\u043e\u0436\u0435 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043a\u043e\u043c\u043f\u0430\u043a\u0442\u043d\u0430\u044f:class MedicineFrontend : Application() {    override fun start() {        root(&#171;root&#187;) {            MedicineApp()        }    }}fun main() {    startApplication(        ::MedicineFrontend,        BootstrapModule,        BootstrapCssModule,        BootstrapIconsModule,        CoreModule,    )}\u0417\u0434\u0435\u0441\u044c root(&#171;root&#187;) \u0446\u0435\u043f\u043b\u044f\u0435\u0442\u0441\u044f \u043a div id=&#187;root&#187; \u0438\u0437 HTML, \u0430 \u0434\u0430\u043b\u044c\u0448\u0435 \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u043e\u0431\u044b\u0447\u043d\u044b\u0439 Compose-\u043f\u043e\u0434\u0445\u043e\u0434: @Composable \u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435, \u043f\u0435\u0440\u0435\u0440\u0438\u0441\u043e\u0432\u043a\u0430 \u043f\u0440\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0438 state.\u0417\u0430\u043f\u0440\u043e\u0441\u044b \u043a backend\u0412\u043d\u0443\u0442\u0440\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0435\u0441\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u0435\u0439: \u043b\u0435\u043a\u0430\u0440\u0441\u0442\u0432\u043e, \u043c\u0435\u0441\u0442\u043e \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u0438 \u0442\u0435\u0433. \u041c\u043e\u0434\u0435\u043b\u0438 \u043b\u0435\u0436\u0430\u0442 \u0432 commonMain, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e frontend \u0443 \u043d\u0430\u0441 \u043e\u0431\u0449\u0438\u0439 \u0434\u043b\u044f \u043f\u043e\u0442\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0445 JS\/Wasm targets. \u0412 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u043c fullstack-\u043f\u0440\u043e\u0435\u043a\u0442\u0435 \u0447\u0430\u0441\u0442\u044c \u044d\u0442\u0438\u0445 DTO \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0431\u044b \u0432\u044b\u043d\u0435\u0441\u0442\u0438 \u0432 \u043e\u0431\u0449\u0438\u0439 \u043c\u043e\u0434\u0443\u043b\u044c \u043c\u0435\u0436\u0434\u0443 backend \u0438 frontend. \u0410 \u0435\u0441\u043b\u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c Kilua RPC, \u0442\u043e \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0439\u0442\u0438 \u0434\u0430\u043b\u044c\u0448\u0435 \u0438 \u043d\u0435 \u043f\u0438\u0441\u0430\u0442\u044c \u0440\u0443\u0447\u043d\u043e\u0439 REST-\u043a\u043b\u0438\u0435\u043d\u0442. \u041d\u043e \u0434\u043b\u044f \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0437\u043d\u0430\u043a\u043e\u043c\u0441\u0442\u0432\u0430 \u043e\u0431\u044b\u0447\u043d\u044b\u0439 fetch \u0434\u0430\u0436\u0435 \u043f\u043e\u043b\u0435\u0437\u043d\u0435\u0435: \u043f\u0440\u043e\u0449\u0435 \u043f\u043e\u043d\u044f\u0442\u044c, \u0447\u0442\u043e \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442.API-\u0441\u043b\u043e\u0439 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u0430\u043a:class MedicineApi {    private val json = Json {        ignoreUnknownKeys = true        encodeDefaults = true    }    suspend fun loadMedicines(): List&lt;MedicineDto&gt; {        return get(&#171;\/api\/medicines\/search&#187;)    }    private suspend inline fun &lt;reified T&gt; get(path: String): T {        val response = httpRequest(path)        if (!response.successful) error(&#171;\u041e\u0448\u0438\u0431\u043a\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 (${response.status})&#187;)        return json.decodeFromString(response.body)    }}\u0414\u043b\u044f JS-only \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u044d\u0442\u043e \u0432\u043f\u043e\u043b\u043d\u0435 \u043f\u0440\u044f\u043c\u043e\u0439 \u043f\u0443\u0442\u044c. \u0415\u0441\u043b\u0438 \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u043f\u0438\u0441\u0430\u0442\u044c \u043e\u0434\u0438\u043d \u0438 \u0442\u043e\u0442 \u0436\u0435 \u043a\u043e\u0434 \u043f\u043e\u0434 JS \u0438 Wasm, \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u0430\u043a\u043a\u0443\u0440\u0430\u0442\u043d\u0435\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 JsAny, kotlin-wrappers \u0438 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0430\u0446\u0438\u044f\u043c\u0438 \u0438\u0437 \u0440\u0430\u0437\u0434\u0435\u043b\u043e\u0432 Browser APIs \u0438 Interoperability with JavaScript \u0432 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 Kilua.\u0413\u0434\u0435 \u0434\u0435\u0440\u0436\u0430\u0442\u044c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435\u0414\u043b\u044f \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043c\u043e\u0436\u043d\u043e \u043d\u0435 \u0442\u0430\u0449\u0438\u0442\u044c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 state manager. Compose runtime \u0443\u0436\u0435 \u0434\u0430\u0435\u0442 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u0443\u044e \u043c\u043e\u0434\u0435\u043b\u044c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f:class AppStore(    private val api: MedicineApi = MedicineApi(),) {    var medicines by mutableStateOf&lt;List&lt;MedicineDto&gt;&gt;(emptyList())        private set    var loading by mutableStateOf(false)        private set    suspend fun refreshMedicines() {        medicines = api.loadMedicines().sortedBy { it.expirationDate }    }    private suspend fun &lt;T&gt; runLoading(block: suspend () -&gt; T): T {        loading = true        return try {            block()        } finally {            loading = false        }    }}\u041a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 \u0441\u043e\u0437\u0434\u0430\u0435\u0442 store \u0447\u0435\u0440\u0435\u0437 remember, \u0434\u0435\u0440\u0433\u0430\u0435\u0442 initialize() \u0432 LaunchedEffect, \u0430 \u0434\u0430\u043b\u044c\u0448\u0435 UI \u0441\u0430\u043c \u0440\u0435\u0430\u0433\u0438\u0440\u0443\u0435\u0442 \u043d\u0430 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f:@Composablefun IComponent.MedicineApp() &#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-483325","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/483325","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=483325"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/483325\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=483325"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=483325"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=483325"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}