TL;DR Just use plain variable placeholder on the views.
No arithmetic expressions, string concatenations, function calls, etc.
| export const tests = [ | |
| // 0 | |
| { | |
| previous: ['A', 'B'], | |
| next: ['A', 'B', 'C'], | |
| expected: [ | |
| { tag: 'skip', index: 0 }, | |
| { tag: 'skip', index: 1 }, | |
| { tag: 'insert', index: 2 }, | |
| ] |
| package id.vorme.app.presentation.ui.screens.packages | |
| import androidx.compose.material3.Button | |
| import androidx.compose.material3.Text | |
| import androidx.compose.runtime.Composable | |
| import androidx.compose.runtime.LaunchedEffect | |
| import androidx.compose.runtime.mutableStateOf | |
| import androidx.compose.runtime.remember | |
| import cafe.adriel.voyager.core.screen.Screen |
| fun main() { | |
| println("Now : ${LocalDateTime.now()}") | |
| println("Start of Day : ${LocalDateTime.now().startOfDay()}") | |
| println("End of Day : ${LocalDateTime.now().endOfDay()}") | |
| println("Start of Month: ${LocalDateTime.now().startOfMonth()}") | |
| println("End of Month : ${LocalDateTime.now().endOfMonth()}") | |
| println("Start of Year : ${LocalDateTime.now().startOfYear()}") | |
| println("End of Year : ${LocalDateTime.now().endOfYear()}") | |
| println( |
| setSingletonImageLoaderFactory { context -> | |
| ImageLoader.Builder(context) | |
| .components { | |
| add(object : Fetcher.Factory<Uri> { | |
| override fun create(data: Uri, options: Options, imageLoader: ImageLoader): Fetcher? { | |
| if (data.scheme?.startsWith("jar") == true && data.path?.endsWith(".svg") == true) { | |
| return object : Fetcher { | |
| override suspend fun fetch(): FetchResult? { | |
| return SourceFetchResult( | |
| source = ImageSource( |
| <div x-data="{ color: '#000000' }"> | |
| <div | |
| class="rounded-sm size-4 relative cursor-pointer" | |
| x-bind:style="'background-color: ' + color" | |
| x-on:click="$refs.input.click()" | |
| > | |
| <input | |
| x-ref="input" | |
| type="color" | |
| x-model="color" |
| @keyframes progress-run { | |
| 0% { transform: scaleX(0) } | |
| 0.38% { transform: scaleX(0.04) } | |
| 5.33% { transform: scaleX(0.07) } | |
| 11.19% { transform: scaleX(0.11) } | |
| 14.48% { transform: scaleX(0.15) } | |
| 16.74% { transform: scaleX(0.19) } | |
| 21.50% { transform: scaleX(0.22) } | |
| 23.52% { transform: scaleX(0.26) } | |
| 26.02% { transform: scaleX(0.30) } |
| Attribute,"Element(s)",Description,Value | |
| abbr,th,"Alternative label to use for the header cell when referencing the cell in other contexts","Text *" | |
| accept,input,"Hint for expected file type in file upload controls","Set of comma-separated tokens * consisting of valid MIME type strings with no parameters or audio/* , video/* , or image/*" | |
| "accept-charset",form,"Character encodings to use for form submission","ASCII case-insensitive match for "" UTF-8 """ | |
| accesskey,"HTML elements","Keyboard shortcut to activate or focus element","Ordered set of unique space-separated tokens , none of which are identical to another, each consisting of one code point in length" | |
| action,form,"URL to use for form submission","Valid non-empty URL potentially surrounded by spaces" | |
| allow,iframe,"Permissions policy to be applied to the iframe 's contents","Serialized permissions policy" | |
| allowfullscreen,iframe,"Whether to allow the iframe 's contents to use requestFullscreen()","Boolean attribute" | |
| alpha,input,"Allow the color's alpha co |
| export interface Tag { | |
| [name: string]: boolean | number | string | undefined | |
| } | |
| export interface A extends Tag { | |
| accesskey?: string | undefined | |
| charset?: string | undefined | |
| class?: string | undefined | |
| coords?: string | undefined | |
| dir?: 'ltr' | 'rtl' | undefined |