These are chat archives for kopa-app/mithril-admin

3rd
Feb 2016
Ondrej Brinkel
@der-On
Feb 03 2016 08:10
theming is done. also not documented yet
plugins are now attached as follows:
app.use(plugin()); // returns app, so it's chainable
the plugin is a factory returning a function that gets a single argument, the app:
module.exports = myPlugin(opts) {
  return function (app) {
     // manipulate the app
  };
};
and I've created a primercss plugin and a bootstrap plugin
next is filtering and sorting
Stephan Hoyer
@StephanHoyer
Feb 03 2016 08:15
nice!
Ondrej Brinkel
@der-On
Feb 03 2016 08:15
hasOne relations are now also supported
if you check out the latest mithril-admin and install it with dev-dependencies and run npm start you get a theme switcher in the example app.
notice that the theming plugins still need some additional css to make it look nice. you can find these here: https://github.com/kopa-app/mithril-admin/tree/master/example/public
Ondrej Brinkel
@der-On
Feb 03 2016 11:25
filtering and sorting now arrived in v0.2.0
some field types still need tweeking for the filter mode.