Mojolicious::Plugin::DBICAdmin - Web interface for DBIx::Class Schema/ResultSource/ResultSet
version 0.0006
This Plugin just for Web master view/search their data in DB
In Mojolicious App's startup
method:
$self->plugin('DBICAdmin' => {
condition => 'login', # optional
stylesheet => '/dbic-admin-pure.css', #optional
# ... other configurations
});
#start app and view the URI :
http://yourapp.domain/admin/dbic/
You will see it, when you open URI : "admin/dbic/"
the Plugin set following routes :
-
/admin/dbic/
Index of the module's function
-
/admin/dbic/search
and/admin/dbic/search/:source
Search DBIx::Class drivered database
-
/admin/dbic/info
and/admin/dbic/info/:source
List Result Source Class's columns info
-
/admin/dbic/list
List Result source loaded by DBIx::Class
Plugin use purecss
you can use customed theme of purecss by pass config directive : stylesheet="/dbic-admin-pure.css"
customlized theme of purecss must use name : .pure-skin-dbic
where to coustom the theme ?
-
page_size
rows displayed per page
-
stylesheet
theme of the web page, should be the url of css file create by YUI Skin Builder
-
condition
array or scalar if single of Mojolicious route condition used for access control
DBICAdmin - Web interface for DBIx::Class Schema/ResultSource/ResultSet
ChinaXing(陈云星) [email protected]
This software is Copyright (c) 2013 by ChinaXing(陈云星).
This is free software, licensed under:
The (three-clause) BSD License