UltrosBot / Ultros-contrib

Contributed plugins, protocols and extensions for Ultros
8 stars 5 forks source link

Web interface and REST API #1

Open gdude2002 opened 10 years ago

gdude2002 commented 10 years ago

Recreating this issue


More of a note myself, this will use the awesome Bottle framework and CherryPy HTTP stack.

The way Twisted handles this kind of thing is.. twisted.. and well, doesn't suit plugin compatibility at all, so we're going to have to use something which supports routing and other convenient functions - which Bottle does - and is fast - which CherryPy certainly is.

I'll be handling this, but anything that we think may be required should be commented below.

gdude2002 commented 10 years ago

This is doing really, really well. Latest push as of this comment adds the beginnings of an API and an admin interface. Looking sweet!

gdude2002 commented 10 years ago

A lot of progress has been made on the web interface lately. Admin interface allows you to view config and data files - as well as edit and save data files, which are reloaded automatically.

Thus, plugins that have registered reload() callbacks for their data files really play nicely with this. Editing of config files is also coming!

gdude2002 commented 10 years ago

Config files can be saved now. All works pretty much as expected. There's a few more things to look into, though.

gdude2002 commented 10 years ago

Graphs? Graphs. Graaaaaaphs..

More to come!

gdude2002 commented 10 years ago

Working on the redesign.

EDIT: There's no scrollbar at the bottom of the menu, ignore that. :3


A few suggestions have been gained from @Zarthus

gdude2002 commented 10 years ago

Blocked by #14

gdude2002 commented 10 years ago

No longer blocked, #14 is done.

gdude2002 commented 10 years ago

Here's some screenshots!

Admin overview

Example file (Blacklisted passwords)

Accounts page

gdude2002 commented 8 years ago

Now that I've sorted out my API stuff for this plugin, let's see what we might do for routes.

API routes 2 electric boogaloo examples edition







Any thoughts on this layout, @rakiru?