Nikky
01/27/2021, 4:51 PMNikky
02/01/2021, 11:28 AMloads
event workaround whenver i need to get something loaded once the dom is ready
seems like the browser does not give you any callback for once a specific domElement is constructed.. only the whole dom at once
div("mountpoint", id = "map-mountpoint"){
img(id = "map-loading-screen") {
// there nees to be something to load for the event to fire
src("<https://images.squarespace-cdn.com/content/v1/571fc5edd210b89083925aba/1538386611004-KSNMFIBVFZVLZ87ZG2Y8/ke17ZwdGBToddI8pDm48kCAcKCAp1mJfKUNHInBbGg57gQa3H78H3Y0txjaiv_0fDoOvxcdMmMKkDsyUqMSsMWxHk725yiiHCCLfrh8O1z5QPOohDIaIeljMHgDF5CVlOqpeNLcJ80NK65_fV7S1USLl2-GtoEZOTuQCER9og-NsW-mZEHbjAwvLbYwUUwze4mIkeL7oL2X-WUQoOqRAoA/ShibuyaRiver.jpg?format=2500w>")
loads.map { event: Event ->
console.log("node:", domNode)
console.log("event:", event)
console.log("parent:", domNode.parentElement) // do something with this
domNode.remove() // remove the image
}.watch()
}
}
i doubt that fritz could make ths much prettier or easier to use but i hope it will anywaysdave08
02/04/2021, 12:58 PMBig Chungus
02/04/2021, 4:39 PMNikky
02/16/2021, 12:22 PMList<String>
and a .renderEach
seems to not work on it.. did we overlook anything ?
our goal is to have a varaible amount of text fields that we can add or remove with a +/- button in a form
seems like .renderEach only gets called initally for the last value in the list and does not emit any html
i am wondering if we imported the wrong function
it kinda works if we do roles.data.renderEach
but now we have to make the update calls go though the store that contains the list of them and need to figure out which one we were editing, probably each if we just make a data class for it that contains the value and a unique id, but that seems like .. unnecessary complexityBig Chungus
02/19/2021, 10:37 PMHampus Londögård
02/22/2021, 9:33 AMBig Chungus
02/23/2021, 8:55 AMJilles van Gurp
02/23/2021, 3:34 PMNikky
03/02/2021, 4:08 PMJan Weidenhaupt
03/02/2021, 7:57 PMBig Chungus
03/08/2021, 12:03 AMJan Weidenhaupt
03/08/2021, 11:08 AMBig Chungus
03/08/2021, 4:06 PMJacob Otto
03/18/2021, 2:12 PMstyle.kt?2304:31 unable to insert rule in stylesheet: Failed to execute 'insertRule' on 'CSSStyleSheet': Failed to parse the rule ':-moz-ui-invalid{box-shadow:none;}'. DOMException: Failed to execute 'insertRule' on 'CSSStyleSheet': Failed to parse the rule ':-moz-ui-invalid{box-shadow:none;}'.
at eval (webpack-internal:///./kotlin-dce-dev/fritz2-styling-jsLegacy.js:3697:33)
at Array.eval (webpack-internal:///./kotlin-dce-dev/fritz2-styling-jsLegacy.js:3707:68)
at eval (webpack-internal:///../../node_modules/stylis/dist/stylis.mjs:68:5957)
at se (webpack-internal:///../../node_modules/stylis/dist/stylis.mjs:68:5651)
at Styling.addDynamicCss_puj7f4$ (webpack-internal:///./kotlin-dce-dev/fritz2-styling-jsLegacy.js:3763:7)
at Styling.resetCss_61zpoe$ (webpack-internal:///./kotlin-dce-dev/fritz2-styling-jsLegacy.js:3756:10)
at resetCss (webpack-internal:///./kotlin-dce-dev/fritz2-styling-jsLegacy.js:3790:27)
at new Theme$Companion (webpack-internal:///./kotlin-dce-dev/fritz2-styling-jsLegacy.js:11092:5)
at Theme$Companion_getInstance (webpack-internal:///./kotlin-dce-dev/fritz2-styling-jsLegacy.js:11109:7)
at SpacesContext.left_bcpvvc$ (webpack-internal:///./kotlin-dce-dev/fritz2-styling-jsLegacy.js:2926:16)
eval @ style.kt?2304:31
Jilles van Gurp
03/18/2021, 4:18 PMJilles van Gurp
03/18/2021, 4:18 PMBig Chungus
03/19/2021, 1:03 PMtypealias StyledComponent<E> = RenderContext.(style: BoxParams.() -> Unit, block: E.() -> Unit) -> E
fun <E> styled(component: BasicComponent<E>): StyledComponent<E> = { style, block ->
(component.styled(styling = style))(block)
}
//usage
fun RenderContext.preview() {
styled(::div)({
// div style
}) {
// div code and inner layout
div {
// child unstyled div
}
}
}
Jan Weidenhaupt
03/19/2021, 1:46 PMnapperley
03/21/2021, 10:25 PMJan Weidenhaupt
03/24/2021, 1:49 PMJacob Otto
03/26/2021, 10:22 AMCameron Stuart
04/01/2021, 8:10 AMJilles van Gurp
06/08/2021, 5:18 PMPitel
06/23/2021, 2:24 PMGraphQLEntityRepository
and GraphQLQueryRepository
mostly implemented (it works with our backend). And I have some DSL for writing queries (but it's uglier then I hoped for). So, what are some ideas/things you'd like to have it implemented?Jilles van Gurp
10/12/2021, 10:38 AMloke
01/23/2022, 12:25 PMloke
01/23/2022, 12:25 PMloke
01/23/2022, 12:26 PMloke
01/23/2022, 12:27 PM