Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Jul 21 02:00
    dependabot[bot] labeled #24
  • Jul 21 02:00
    dependabot[bot] opened #24
  • Jul 21 02:00

    dependabot[bot] on npm_and_yarn

    Bump terser from 4.8.0 to 4.8.1… (compare)

  • Jun 02 00:13
    dependabot[bot] labeled #31
  • Jun 02 00:13
    dependabot[bot] opened #31
  • Jun 02 00:13

    dependabot[bot] on npm_and_yarn

    Bump simple-plist from 1.1.1 to… (compare)

  • May 01 07:29
    back2dos synchronize #91
  • May 01 07:29

    back2dos on v1

    Add key value iterator to Child… (compare)

  • Apr 28 23:26
    dependabot[bot] labeled #30
  • Apr 28 23:26
    dependabot[bot] opened #30
  • Apr 28 23:26

    dependabot[bot] on npm_and_yarn

    Bump cross-fetch from 3.1.4 to … (compare)

  • Apr 28 21:11
    dependabot[bot] labeled #29
  • Apr 28 21:11
    dependabot[bot] opened #29
  • Apr 28 21:11

    dependabot[bot] on npm_and_yarn

    Bump async from 2.6.3 to 2.6.4 … (compare)

  • Apr 26 13:20
    darmie opened #94
  • Apr 10 17:59
    dependabot[bot] labeled #28
  • Apr 10 17:59
    dependabot[bot] opened #28
  • Apr 10 17:59

    dependabot[bot] on npm_and_yarn

    Bump minimist from 1.2.5 to 1.2… (compare)

  • Apr 02 18:09
    back2dos synchronize #91
  • Apr 02 18:09

    back2dos on v1

    Slightly better Attribute imple… (compare)

grepsuzette
@grepsuzette
I'm aware how I originally made this small modal system and even my question ("a way for a certain view to be manually unmounted") go counter the philosophy of coconut. But to make a reusable component such as Modal work very quickly, whatever the app, doing that without injecting the RenderResult seems difficult to me. So I'm like kind stuck in the middle ^^
grepsuzette
@grepsuzette
but hum, I think it's actually not that hard now that I wrote all this :eyes:. A <Modal view={modalView} /> can be put in my App view, and in its own render() it can have <if {modalView != null}> and otherwise it renders nothing, then the lifecycle methods would likely work
Juraj Kirchheim
@back2dos
if it's any help, the last code block of this comment implements a (minimalistic) modal system for coconut: https://github.com/MVCoconut/coconut.vdom/issues/45#issuecomment-980658227
grepsuzette
@grepsuzette
I will take a look now, thanks. I spent a few hours to realize I wrote @state somewhere instead of @:state -_-
grepsuzette
@grepsuzette
yes excellent, can show several windows, can be positionned or show a modal window. Wow. Definitely good (even though at first without restyling it it was difficult to see)
grepsuzette
@grepsuzette
In my console there is "Warning: Use the defaultValue or value props on <select> instead of setting selected on <option>.". This is in a <select ...><option selected={bool}>....</select>. But when I try to use value= on the <select> it seems it is not recognized by tink_domspec. Is there something to do here? (the warning is annoying me although it works)
Juraj Kirchheim
@back2dos
Sounds like react being a smart ass ^^
Juraj Kirchheim
@back2dos
I wonder how that's even supposed to work for multiple selects ...
ah, you can pass a value
use preact then :D
grepsuzette
@grepsuzette
is it a sin to want to have a @:computed var endpoint : tink.web.proxy.RemoteEndpoint = ... on a model? If not, I get the error below:

tink.web.proxy.RemoteEndpoint is not observable, because tink.web.proxy._Remote.RemoteEndpointData is not ↪observable, because Field headers of { scheme : tink.web.proxy._Remote.Scheme, ?query : Null<tink.web.proxy.QueryParams>, ?pathSuffix : Null<String>, ? ↪path : Null<tink.web.proxy._Remote.PathFragments>, host : tink.url.Host, ?headers : Null<tink.web.proxy._Remote.Headers> } needs to have write access never

Any thoughts? :0
I may as well keep it in a regular var, it's just I am starting thinking about rescue servers, and thus endpoint that can change

serjek
@serjek
you can always set @:skipCheck meta to get rid of such errors
although, it doens't answer the question if this is a valid way to go
grepsuzette
@grepsuzette
I never realized @:skipCheck was for this :thumbsup:
Juraj Kirchheim
@back2dos
it's the coconut observability equivalent to untyped ^^
grepsuzette
@grepsuzette
could RemoteEndpoint be made immutable however? more a question for the haxetink group maybe
Juraj Kirchheim
@back2dos
yep
Peter Achberger
@Antriel
Just ruminating: If I wanted to make an electron based HTML game "Player", i.e. a wrapper around a game, for dev UI and such. On top of the main reason – accessing file system directly – I would like to be able to quickly hack around adding UI for whatever the game might need.
Issue is, I am not sure what tech to use for something like that. Immediate mode and HTML don't seem to go hand in hand, and I've never really found any library I've had good experience making UI with. Not counting coconut, as that's a mixed bag and not suited for hacking around.
Any ideas? :)
Juraj Kirchheim
@back2dos
depends a lot on what you need ^^
I find html+css very comfortable for creating UIs, but that's just me ^^
Peter Achberger
@Antriel
I'm not good at UI in general. :D
Juraj Kirchheim
@back2dos
that's an excuse and you know it! :P
Peter Achberger
@Antriel
Mostly the thinking is that whenever I need to inspect some value, I should be able to do so as easily as possible.
With Haxe macro magic it gets pretty doable to just tag some variable and have it show up on a graph somewhere.
It's just that whenever I tried, I ended up spending so much time on the GUI part that I never used it in another project. I guess I'm just looking at a new approach, or some pattern for all this.
Juraj Kirchheim
@back2dos
I suppose it depends a lot on what your data is
I recently made an inspector for our project on Docler ... all the data is in coconut models so it was a matter of picking up all of them, putting them in a list and if you select one go through its states and make an input field for each ^^
in any case, if the state is complex, it's hard to represent it in a simple UI solution ^^
Peter Achberger
@Antriel
Hmm. I did think about using coconut for all of that. Providing some view for some model, and the model could be some generated code with simple hook to read the data every tick. Or something.
Having the data in coconut models is definitely flexible enough, though it does add some build time. And I'm not that good at coconut, which means I might get stuck.
Rudy Ges
@kLabz
Looks like you're making sexy tools Juraj :P
Juraj Kirchheim
@back2dos
definitely :sparkling_heart:
Rudy Ges
@kLabz
Lucky you :P
Juraj Kirchheim
@back2dos
I'm not suggesting to use coconut for this ... if your data is in coconut, it would be a good fit ... if it isn't, find something that fits just as well ... if your game is built on ECS, perhaps it's possible to hook into that
Peter Achberger
@Antriel
Could be, yeah.
I'm looking for generic solutions, but I guess the problem is too big to just find an ideal solution without failing a few times.
serjek
@serjek
I'm trying to add @:computed var to a View with build macro and it seem it doesn't work - meta is applied after coconut magic did their work, and no observable is created :/
how do I workaround this?