Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Jun 01 21:50

    oyvindberg on v1.0.0-beta33

    (compare)

  • Jun 01 21:49

    oyvindberg on gh-pages

    Deploy website Deploy website … (compare)

  • Jun 01 21:07

    oyvindberg on support-abstract-new-syntax

    (compare)

  • Jun 01 21:06

    oyvindberg on master

    Support `abstract new` syntax (… (compare)

  • Jun 01 20:59

    oyvindberg on support-abstract-new-syntax

    Support `abstract new` syntax (compare)

  • Jun 01 20:45

    oyvindberg on dotty-support

    better erasure for this.type fixup `val a: Null = js.native` seems… and 2 more (compare)

  • May 29 07:56

    oyvindberg on dotty-support

    fork tests (compare)

  • May 29 07:00

    oyvindberg on dotty-support

    workaround for https://github.c… (compare)

  • May 29 06:51

    oyvindberg on dotty-support

    build snapshots (compare)

  • May 25 08:16

    oyvindberg on dotty-support

    scalafmt (compare)

  • May 25 08:08

    oyvindberg on dotty-support

    bump runtime (compare)

  • May 24 23:38

    oyvindberg on master

    Update sbt-mdoc to 2.2.21 (#306… (compare)

  • May 24 23:38

    oyvindberg on master

    Update scalatest to 3.2.9 (#307… (compare)

  • May 24 23:38

    oyvindberg on master

    Update os-lib to 0.7.7 (#308) … (compare)

  • May 24 23:32

    oyvindberg on master

    Minimization: Include what `Sho… (compare)

  • May 24 23:32

    oyvindberg on minimization-bugfix

    (compare)

  • May 24 23:07

    oyvindberg on poc-laminar

    scalafmt (compare)

  • May 24 22:52

    oyvindberg on poc-laminar

    laminar poc (compare)

  • May 24 21:02

    oyvindberg on minimization-bugfix

    Minimization: Include what `Sho… (compare)

  • May 24 21:01

    oyvindberg on master

    Update sourcecode to 0.2.7 (#30… (compare)

Peter Storm
@peterstorm
Oh they have charts too?
I get the error from a little above, but basically undefined, when I try to render the SimpleLineChart from the materialUI demo project as standalone component. I got the Dashboard bit with the charts rendering last night fine, so I have no idea what’s happening.
Peter Storm
@peterstorm
Yeah, slinky material ui demo works fine, so weird. Is there some weird dependency in the Dashboard component maybe?
Peter Storm
@peterstorm
Nope, just put it somewhere else in the demo, and still worked fine.
Alexis Hernandez
@AlexITC
Peter Storm
@peterstorm
Yeah, that worked fine when i cloned and compiled that
Alexis Hernandez
@AlexITC
@oyvindberg apparently, reloading on a page other than the home doesn't work, was the fix that I pushed deployed? or it be that there is another change needed for the github pages side?
Peter Storm
@peterstorm
trying again, just deleted the dashboard folder I had, did a sbt clean, and gonna start over and see if taht was something weird
Alexis Hernandez
@AlexITC
Overall, such chart seems simpler that recharts, if that works for you, I'd stick to it

@oyvindberg apparently, reloading on a page other than the home doesn't work, was the fix that I pushed deployed? or it be that there is another change needed for the github pages side?

About this, I remember now, the webserver needs to be configured to serve the index when the file is not found, which I have no idea if can be done on gh pages with your current settings

from this issue, people claim that you can create a symlink from the 404.html page to your index, but that wouldn't work for many entrypoints which is how the demos work: isaacs/github#408
Peter Storm
@peterstorm
Yeah, still breaks in my project... so weird...
Alexis Hernandez
@AlexITC
I used to have breaking issues while integrating material-ui, most of those where related to wrong configuration, on sbt/webpack, what ended up working was to take the whole sbt/webpack config from material-ui demo, and bring my changes to that
Peter Storm
@peterstorm
I've basically been doing that :(
But yeah, it must be a config issue
Because it works fine when I run the demo repo
Peter Storm
@peterstorm
IT WORKS!
I deleted every single folder that didnt have anything to do with my code
did sbt clean
And then tried to do it all over again :D
Alexis Hernandez
@AlexITC
great!
Øyvind Raddum Berg
@oyvindberg
@AlexITC I'm struggling with the CI for the demo repo, the builder container doesn't have enough memory to build mui. What it means is that CI will be green if I run stPublishCache from my computer, but it's not able to publish itself. If you want to update the published demo you need to run dist in sbt and check in the results, which will be on the docs folder
nice @peterstorm :)
also @AlexITC an easy fix for missing history api on github pages would be to use hash routing instead.
Alexis Hernandez
@AlexITC
The CI is an issue I face in my repos as well, the hash routing is a nice idea
Øyvind Raddum Berg
@oyvindberg
I'm thinking to just publish mui core and icons to maven central
as long as its 3.9.3 it's not changing much anyway
and deal properly with it later
it's just a small handful of libraries which end up being so incredibly much source code anyway
I ran dist now and pushed it by the way
Alexis Hernandez
@AlexITC
that sounds reasonable to me, it will definitely help in some of our internal projects because the compile time will be reduced considerably
Øyvind Raddum Berg
@oyvindberg
But @AlexITC if you setup remote cache on s3, ci will be instant
Alexis Hernandez
@AlexITC
Agree, and I plan to do that, but the package maven library can certainly help to new devs because it is less configuration
Øyvind Raddum Berg
@oyvindberg
[warn ] 2020-11-16T00:52:31.544315Z Phase3Compile.scala:144  Built /home/olvind/.ivy2/local/org.scalablytyped.slinky/react_sjs1_3.0.0-M1/16.9-dt-20200711Z-805e37/jars/react_sjs1_3.0.0-M1.jar in 48664 ms [id => react, thread => 1, phase => build, flavour => SlinkyFlavour]
The future is approaching
nafg
@nafg
what future is that?
Øyvind Raddum Berg
@oyvindberg
it's building ST for scala 3.0.0-M1, using 2.13 version of slinky
nafg
@nafg
oh exciting :)
Øyvind Raddum Berg
@oyvindberg
I'm quite curious how it'll turn out with proper union types
Sören Brunk
@sbrunk
🤞
Peter Storm
@peterstorm
Anyone here a master of Refs and MateriaulUI? :D
Peter Storm
@peterstorm
Looks like the inputRef doesnt work on TextFields in Material UI, I get a null Pointer :(
Vitaly Lavrov
@lavrov

I'm quite curious how it'll turn out with proper union types

def foo(color: "primary" | "secondary") would be quite close to TS version :)

nafg
@nafg
@elkhadirzyad where in that line is the error?
elkhadirzyad
@elkhadirzyad
@nafg , its ok
elkhadirzyad
@elkhadirzyad

hello, i want to display the demo of circular progress integration with using styleBuilder given in material ui demos, when i add val classes = styles1(js.undefined), it gives me blank pagen any suggestions`object DemoCircularIntegration {
case class Props()
//val classes = styles(js.undefined)
case class State(loading: Boolean = false, success: Boolean = false) {
def setLoading = copy(success = false, loading = true)

def setSuccess = copy(success = true, loading = false)

}

class Backend(t: BackendScope[Props, State]) {
var timer: js.UndefOr[js.timers.SetTimeoutHandle] = js.undefined

def unmount = Callback {
  timer.foreach(js.timers.clearTimeout)
  timer = js.undefined
}

def setSuccess = Callback {
  timer = js.timers.setTimeout(2000)(t.modState(_.setSuccess).runNow())
}

def handleButtonClick(loading: Boolean) = {
  (t.modState(_.setLoading) >> setSuccess).when(!loading) >> Callback.empty
}
val classes = styles1(js.undefined)

def render(props: Props, state: State): VdomElement = {
 // val css = props.style
 // val classes = css.styles
  //val buttonCss = if (state.success) css.buttonSuccess else css.common.emptyStyle


    <. div(
     <.  div(
          Mui.Fab.color(typings.materialUiCore.mod.PropTypes.Color.primary).onClick(_ => handleButtonClick(state.loading))(

            if (state.success) Muii.Check() else Muii.Save()
          ),
        HicpCircularProgress(size=68,className="fabProgress")().when(state.loading)
        ),
       div(
          HicpRaisedButton(touchTapCallback=_ =>handleButtonClick(state.loading), disabled=state.loading)


          ("Accept terms")
          ),
        HicpCircularProgress(size=24,className="buttonProgress")().when(state.loading)
        )

}

}`

Alexis Hernandez
@AlexITC
See this example
elkhadirzyad
@elkhadirzyad
@AlexITC , i want to include val classes = styles1(js.undefined) but i dont know where
Alexis Hernandez
@AlexITC
See this another example
elkhadirzyad
@elkhadirzyad
@AlexITC thank u, however i use scalajs react not slinky, i have State(), Prop(), Backend(), render() functions, i dont know where to put this line val classes = styles1(js.undefined) in order to use styles, when i put it inside render(), the page is blank