These are chat archives for mithriljs/mithril.js

21st
Sep 2015
Darius Clark
@dariusc93
Sep 21 2015 02:58
@pygy the checks are being done on the server, but since im using mithril, it has to send a verification check to see if the user is logged in or not. This includes validating the session, the token (jwt token), etc. The main goal was to prevent the user from seeing the panel when they goto example.com/panel but instead redirect/route them to login if they arent authorized without them seeing anything (even though there wont be much to see unless they are logged in with a valid and active session + token)
Arthur Clemens
@ArthurClemens
Sep 21 2015 13:44
I’ve updated mithril-page-slider to use j2c
Jon Earley
@jonearley
Sep 21 2015 19:15
What are some web apps that use Mithril?
Jon Earley
@jonearley
Sep 21 2015 19:24
@jpablom thanks!
What's the state of the community?
Ondrej Brinkel
@der-On
Sep 21 2015 19:28
wow cool. someone added kopa to the list. thank you.
Stephan Hoyer
@StephanHoyer
Sep 21 2015 19:39
@jonearley Community is awesome :)
Jon Earley
@jonearley
Sep 21 2015 19:41
This message was deleted
Stephan Hoyer
@StephanHoyer
Sep 21 2015 19:42
What are your specific questions regarding the community
Jon Earley
@jonearley
Sep 21 2015 19:42
Just checking if there is a strong community.
Niklas
@Niklas81
Sep 21 2015 19:48
Trying to get m.request to work as prescribed in the documentation, but only 'thennable' syntax seems to work. Any idea why?
// This works:
var users = {};
m.request({method: "GET", url: "http://testdomain.loc/test"}).then(function(list) {
  users = list;
});

// This doesn't:
var users = m.prop([]);
m.request({method: "GET", url: "http://testdomain.loc/test"}).then(users);
// --> gives me 'TypeError: users.map is not a function' when calling users from the view
Gilbert
@gilbert
Sep 21 2015 19:49
@Niklas81 An m.prop is a getter-setter
you need to call it to get its value, i.e. users().map(...)
Niklas
@Niklas81
Sep 21 2015 19:52
Awesome! Missed the () :)
Stephan Hoyer
@StephanHoyer
Sep 21 2015 19:52
@jonearley What are your criteria of strong community:
  • large userbase
  • active userbase
  • strong core-commiter-count
  • active chat/forum
  • few issues
  • lot of PRs?
Jon Earley
@jonearley
Sep 21 2015 19:53
@StephanHoyer That's an accurate list.
Rodrigo Álvarez
@Papipo
Sep 21 2015 19:54
awesome lib, helpful community
Jon Earley
@jonearley
Sep 21 2015 20:03
Is there a medium sized project on GitHub someone could link me? I'd like to take a look at a project.
Rodrigo Álvarez
@Papipo
Sep 21 2015 20:03
there is a cordova app
Stephan Hoyer
@StephanHoyer
Sep 21 2015 20:09
You don’t have react-scale here. But be sure you have the creme de la creme of frontend javascript devs here.
@jonearley I’ve build a indesign-ish online-editor for worksheets for teachers with mithril. So it’s really easy to also build large scale apps with it.
It’s currently not released. Will go live at the end of the year
Gilbert
@gilbert
Sep 21 2015 20:32
I've built several internal apps with mithril at our code school bootcamp. It's been a pleasure to work with
even our students like working with mithril :)
Rodrigo Álvarez
@Papipo
Sep 21 2015 20:32
I've been just experimenting with it and I don't want to even touch something like angular
the best thing about mithril are its principles
Darius Clark
@dariusc93
Sep 21 2015 20:51
Do anyone know if "pathname" supports named anchors?