#typescript#shadcn#shadcn_theme#shadcn_theme_editor#shadcn_ui#tailwindcss#tailwindcss_v4
tweakcn is a free, open-source visual theme editor that helps you easily customize shadcn/ui components used in React projects, especially with Tailwind CSS v4. It offers beautiful preset themes and lets you change colors, typography, spacing, shadows, and more with real-time previews, all without coding. This means you can make your website look unique and stand out instead of looking like many others using the same UI components. It’s great for developers and designers who want fast, advanced customization and a smooth design process. You can also run it locally and contribute to its development if you want[1][3][5].
https://github.com/jnsahaj/tweakcn
🚀 Вышел стабильный JavaScript движок от Google для Android
Новая стабильная библиотека Jetpack JavaScript Engine позволит разработчикам выполнять JS код в изолированной и ограниченной среде.
class MainActivity : ComponentActivity() {
// Теперь nullable, без lateinit
private var jsSandbox: JavaScriptSandbox? = null
private var jsIsolate: JavaScriptIsolate? = null
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
if (!JavaScriptSandbox.isSupported()) {
Log.e("JS", "JavaScriptSandbox не поддерживается")
return
}
lifecycleScope.launch {
// Создаём и сохраняем в nullable-поле
jsSandbox = JavaScriptSandbox
.createConnectedInstanceAsync(applicationContext)
.await()
jsIsolate = jsSandbox?.createIsolate()
// При выполнении гарантируем, что jsIsolate != null
val result: String = jsIsolate
?.evaluateJavaScriptAsync(JS_SCRIPT_SCRING)
?.await()
?: "Ошибка: isolate не инициализирован"
Log.d("JS", "Результат выполнения: $result")
}
}
override fun onDestroy() {
super.onDestroy()
// Закрываем только если не null
jsIsolate?.close()
jsSandbox?.close()
}
}
#jetpack#js