Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jun 23 15:25
    morozov11 synchronize #390
  • Jun 23 14:37
    morozov11 opened #390
  • Jun 23 09:05
    morozov11 synchronize #389
  • Jun 23 08:54
    morozov11 opened #389
  • Jun 12 16:01
    Zhen-hao opened #388
  • Jun 05 08:00
    Zhen-hao commented #385
  • Jun 05 07:15
    Zhen-hao commented #385
  • Jun 04 17:50
    fomkin closed #387
  • Jun 04 17:50

    fomkin on master

    Fix #387: Add automatic convers… (compare)

  • Jun 04 17:45
    fomkin commented #387
  • Jun 04 14:08
    Zhen-hao opened #387
  • Jun 04 06:18
    Zhen-hao opened #386
  • Jun 03 10:13
    Zhen-hao commented #385
  • Jun 03 10:00
    fomkin commented #385
  • Jun 03 09:35
    Zhen-hao opened #385
  • Jun 02 17:56

    fomkin on issue-383

    (compare)

  • Jun 02 17:56
    fomkin closed #383
  • Jun 02 17:56

    fomkin on master

    Make extension initialization a… Merge pull request #384 from fo… (compare)

  • Jun 02 17:56
    fomkin closed #384
  • Jun 01 08:43

    fomkin on master

    Upgrade http4s 0.21.24 (compare)

Aleksey Fomkin
@fomkin
@/all I planning online meetup at Feb 2021. If you want to share your story about using of Korolev please write me email at aleksey.fomkin@gmail.com.
Zhenhao Li
@Zhen-hao
will do. it the meetup in English?
Aleksey Fomkin
@fomkin
Yes.
Zhenhao Li
@Zhen-hao
@fomkin can components have their own extensions?
I have a general pattern: on leaving a given page, I want an extension to do some resource clean up. what's the best way to implement this kind of page exit hook in extensions? it feels like a missing feature
Zhenhao Li
@Zhen-hao
hi, how to pass an ElementId to a piece of JS code that uses it as an event target?
2 replies
Zhenhao Li
@Zhen-hao
@fomkin it seems 0.16.3 is broken in some way. buttons stopped doing anything and there were no logs. I had to revert to 0.16.2
17 replies
Zhenhao Li
@Zhen-hao
sorry, it has nothing to do with the version. it just happens when some libraries get updated. I don't know why this is happening
Zhenhao Li
@Zhen-hao
I don't know if it is related to the fact that I'm testing it on two browsers on the same machine at the same time
ylaurent
@ylaurent
is it possible to display streaming graph data (eg plotly.js) using korolev? Is there an example somewhere?
Zhenhao Li
@Zhen-hao
ylaurent
@ylaurent
yeah saw that, i guess i will have to experiment
thank you
by the way, is the migration to scala3/dotty planned at some point ? I guess it is still early now and probably not worthit yet
2 replies
Zhenhao Li
@Zhen-hao
hi, I have need some advise.
I'd like to add a calendar to my app where I can drag and drop events and switch between week view and month view. based on my research, the best options are either 1. integrate the JS library FullCalendar, or 2. implement it myself with Korolev. which do you think would be easier?
2 replies
Zhenhao Li
@Zhen-hao
with 0.17-M3, I see korolev.Context.ElementId does not take type parameters
how should I migrate existing code like ElementId[Future]?
Zhenhao Li
@Zhen-hao
never mind. just need to remove the type parameters
Aleksey Fomkin
@fomkin
Zhenhao Li
@Zhen-hao
even with 0.17-M3, I noticed a problem. state recovery from a persistent (distributed) state storage doesn't always work when the server reboots. sometimes times it works sometimes times the page stalls, e.g., no button works, and the user has to refresh the page. what can be the cause? I noticed Firefox works better than Chrome or Brave on that
13 replies
Zhenhao Li
@Zhen-hao
it seems access is lost sometimes. no logs on the server-side whenever access is called
Aleksey Fomkin
@fomkin

Improvements

  • Router now can work with path-parameters (see updated docs) #333
  • Static files serving optimization
  • Add 'KorolevReady' event and 'ready' propery to 'Korolev' global object

New modules

  • Independent NIO based network implementation (experimental) #175
  • Http4s interop #279
  • Fs2 interop #348
  • korolev-bytes
  • Library for testing #318

Bug fixes

  • Memory leak #351
  • File streaming doesn't work with lazy effects #336
  • Errors while serving content from /static #307
  • Fail to upload file with chinese name using formAsStream #340
Zhenhao Li
@Zhen-hao
what is korolev-bytes?
great that we have a test library now!
Zhenhao Li
@Zhen-hao
I have a sort of feature request. it would be nice if the router can emit events. currently, I have to let the router return an intermediary state which uses delay to emit an event that eventually translates to some back-end query. and the desired page load when the backend responds.
16 replies
Zhenhao Li
@Zhen-hao
another question, if an ElementId is a text input, how can I reset its value from code? I currently use evalJs to mutate its value.
2 replies
Zhenhao Li
@Zhen-hao
hi, is there an example of downloading files from the site?
7 replies
Zhenhao Li
@Zhen-hao
hi, is there a way to dynamically set the WebSocket timeout value?
1 reply
Zhenhao Li
@Zhen-hao
@fomkin why is the parameters abstraction needed in components? it seems to me one can always take parameters out and use them after including them in the closure.
4 replies
for example: def create(p: Parameter): Component[...
Henrik Härkönen
@heharkon
Wow, very interesting improvements in 0.17! Especially I was thinking a similar issue than the #333 was, cool!
Henrik Härkönen
@heharkon
btw, now as the Scala 3 is just around the corner, would it be a simple trick to jump to that wagon with Korolev?
I see there's some sort of compatibility / cross-compiling possibility
Zhenhao Li
@Zhen-hao
hi, is it possible to transition to a URL instead of a state? namely redirect
Zhenhao Li
@Zhen-hao
hi all, I've built https://pairtime.com/ with Korolev and Akka. I hope it is a useful product to this community as well.
Aleksey Fomkin
@fomkin
@heharkon I ported Levhsa to Scala 3 https://github.com/fomkin/levsha/releases/tag/v1.0.0 Next step is Koroloev.
Zhenhao Li
@Zhen-hao
this is awesome!
@fomkin once Scala 3 is supported in Korolev, I can help with marketing. it's a shame that a lot of people in the Scala community are not aware of it
Zhenhao Li
@Zhen-hao
does Levhsa 1.0 work well with the current Korolev version?
Aleksey Fomkin
@fomkin
I did not try but it should be compatible.
Henrik Härkönen
@heharkon
@fomkin Nice! :thumbsup: :smiley:
Aleksey Fomkin
@fomkin
@/all Korolev 1.0.0-RC1 with Scala 3 support is out. https://github.com/fomkin/korolev/releases/tag/v1.0.0-RC1
Zhenhao Li
@Zhen-hao
that's fast! thank you for all the work!
Binh Nguyen
@ngbinh
great, thanks
Zhenhao Li
@Zhen-hao
@fomkin is there a document about how Korolev handles cookies?
Aleksey Fomkin
@fomkin
No :(
Zhenhao Li
@Zhen-hao
ok. I will check the source code as I'm writing my user agreement and cookie policy. I might create a PR later
Zhenhao Li
@Zhen-hao
@fomkin do you have a Twitter account for the project? I'm going to announce PairTime later today and I want to tag Korolev and Akka. it may helps with marketing this project
steffenlaursen
@steffenlaursen
Very, very interesting. How would it work with having an infinite scrolling html-table? Every time the end of the page (for instance, every 100 rows) is reached, the server should fetch the next bunch of rows and update the client UI.
10 replies