Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Marius B. Kotsbak
    @mkotsbak
    Well when it is added you probably know because it is then constructed
    But when it disappears it is just removed from the dom
    Matthew Pocock
    @drdozer
    I've found this useful:
      implicit class NodeMemoriser[N <: Node](val _n: N) extends AnyVal {
        def rememberAs(f: N => ()): N = {
          f(_n)
          _n
        }
      }
    lets you do things like:
    MyComplicatedWidget(...).rememberAs(widget = _)
    Lets you declare your structure in-place, but write key references to widges into vars so that you can then go back and wire them.
    Matthew Pocock
    @drdozer
    I was wondering if there is a widok quasiquote?
    I have paragraphs of text with keywords and other spans embedded in. It is really ugly to keep on breaking up large, multi-line strings, with closing trebble quotes and stripMargin, then a coma, then the span, then opening the quotes up again.
    Paragraph(
      view"""Some very long
          |bit of text with an ${General.Inline(embedded).css(emphasizeThis)} element,
          |and a ${calculated} value and a $widget inside it.""".stripMargin)
    Matthew Pocock
    @drdozer
    oh, that doesn't work well because stripMargin interacts poorly with interpolation :(
    Matthew Pocock
    @drdozer
    Added #117 with a working implementation
    Mark Kegel
    @littlenag
    are there any large-ish demo apps that have been written with widok?
    i'm thinking something more than say a basic todo list
    i ask because i'm evaluating widok as one of many paths forward for my current side project
    i currently have a front end that's written in plain JavaScript with AngularJS to handle the SPA aspects
    the back end is already Scala, and i would love to have Scala all the way through the app
    Matthew Pocock
    @drdozer
    Hi @littlenag
    I've not built anything horendusly complex with widok
    Mark Kegel
    @littlenag
    have you built anything publically hosted?
    that i could take a look at and learn from?
    Matthew Pocock
    @drdozer
    This is what we're working on at the moment - it's not been optimized in any way, so it is slow and big:
    if you go to one of the tutorials (e.g. http://shortbol.ico2s.org/tutorial.html#/yourFirstScript) there's a 'your turn' box near the bottom. It's implemented with a mix of ace.js and widok.
    Mark Kegel
    @littlenag
    heh, i actually use ace.js as well...
    looking through the code this feels very much like angularjs does
    Mark Kegel
    @littlenag
    @drdozer what is the debugging story like? this is one of the things that angular has really gotten right and i'm wondering what facilities widok offers
    Matthew Pocock
    @drdozer
    to be honest I've not yet hit anyting complicated enough that I couldn't debug it by eye or with a couple of print statements
    you can add loggers to the reactives, which can help
    one thing that bit me early on - don't flatMap over the reactives -- which means no for comprehensions
    Marius B. Kotsbak
    @mkotsbak
    Hmm, bjt
    But flatmap is defined, so what is not working right?
    Matthew Pocock
    @drdozer
    it subscribes the down-stream listener once more for every event fired in the upstream one
    Marius B. Kotsbak
    @mkotsbak
    Hm ok
    I would think that is a bug. Have you added an issue in MetaRx project?
    Matthew Pocock
    @drdozer
    so I've not seen any commits to widok in a little while -- has everyone gone on holiday for the summer?
    I was about to start fleshing out the svg widgets
    Marius B. Kotsbak
    @mkotsbak
    Otto Chrons says widok docs say 0.2.2 is latest version
    Marius B. Kotsbak
    @mkotsbak
    @tindzk hi! I'm trying to get Widok working with ScalaFiddle, but it seems there is a problem since it is using an old version of SJS etc. Could you release a new version with updated deps?
    See ochrons/scalafiddle-core Gitter channel
    Marius B. Kotsbak
    @mkotsbak
    Matthew Pocock
    @drdozer
    oh, nice
    Marius B. Kotsbak
    @mkotsbak
    Also it is embedded in the home page :)
    prassee
    @prassee
    hi is there any activity going on here
    Tim Nieradzik
    @tindzk
    Sorry for the long radio silence! As of lately, I've been involved in other projects that require very little web development. If there are small issues that you would like to see solved, I'd be happy to look into them. I am also looking for maintainers. So if anyone is interested, please get in touch with me!
    prassee
    @prassee
    @tindzk so is this going to abandoned
    Tim Nieradzik
    @tindzk
    @prassee Widok is not under development anymore I'm afraid. I have developed a successor library that you might want to try out: https://github.com/sparsetech/pine
    prassee
    @prassee
    I 'll have a look
    prassee
    @prassee
    but pine does not provide a UI framework like widok rite.. thought widok has some issues it is a framework
    Tim Nieradzik
    @tindzk
    That's right. Pine focuses only on rendering and event handling. What features are you missing particularly? I started to prefer small self-contained libraries with few dependencies because in a website, requirements may change quickly and with the library-approach you can easily replace a component.