Commit 6acef2ea authored by Recteur LP's avatar Recteur LP

Update to AdminLTE 3

Use npm to manage deps
parent 2e852208
Pipeline #1354 passed with stages
in 9 minutes and 53 seconds

Too many changes to show.

To preserve performance only 1000 of 1000+ files are displayed.
[bumpversion]
current_version = 0.3.4-dev
current_version = 0.4.0-dev
commit = True
tag = True
tag_name = {new_version}
......
......@@ -26,18 +26,19 @@ module.exports = function(grunt) {
pyrmin: {
options: {
sourceMap: 'pyrmin.js.map',
banner: '/*! PyRmin.js 0.3.4 */'
banner: '/*! PyRmin.js 0.4.0 */'
},
files: {
'pyrmin/static/js/pyrmin.min.js': ['src/js/pyrmin.js'],
'pyrmin/static/js/settings.min.js': ['src/js/settings.js']
'pyrmin/static/js/settings.min.js': ['src/js/settings.js'],
'pyrmin/static/vendor/sparkline/jquery.sparkline.min.js': ['pyrmin/static/vendor/sparkline/jquery.sparkline.js']
}
}
},
cssmin: {
pyrmin: {
options: {
banner: '/*! PyRmin.css 0.3.4 */'
banner: '/*! PyRmin.css 0.4.0 */'
},
files: {
'pyrmin/static/css/pyrmin.min.css': ['src/css/pyrmin.css'],
......@@ -46,12 +47,22 @@ module.exports = function(grunt) {
}
}
},
copy: {
main: {
files: [
// Copy vendors
{expand: true, cwd: 'node_modules/admin-lte/plugins/', src: ['**'], dest: 'pyrmin/static/vendor/'},
{expand: true, cwd: 'node_modules/admin-lte/dist/', src: ['**'], dest: 'pyrmin/static/vendor/admin-lte/'},
],
},
},
watch: {
files: ['<%= jshint.files %>'],
tasks: ['jshint', 'csslint', 'cssmin', 'uglify']
}
});
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-replace');
grunt.loadNpmTasks('grunt-contrib-watch');
......
PyRmin 0.3.4
PyRmin 0.4.0
============
[![build status](https://pyrmin.io/gitlab/PyRmin/PyRmin/badges/master/build.svg)](https://pyrmin.io/gitlab/PyRmin/PyRmin/commits/master) [![Documentation status](https://pyrmin.io/docs/projects/pyrmin/badge/?version=latest)](http://pyrmin.io/docs/pyrmin/en/latest/)
......
......@@ -9,7 +9,7 @@ __name__ = "Example Plugin"
__description__ = "\
My long Description"
__version__ = "0.1.0"
__pyrmin_version__ = "0.3.4"
__pyrmin_version__ = "0.4.0"
__namespace__ = "example_plugin"
__menu__ = {
"href": "/" + __namespace__,
......
......@@ -6,4 +6,4 @@ Result Format
.. code-block:: json
{ "version": "v0.3.4" }
{ "version": "v0.4.0" }
This diff is collapsed.
{
"name": "pyrmin",
"version": "0.3.4",
"version": "0.4.0",
"private": true,
"devDependencies": {
"csscomb": "^4.2.0",
"grunt": "^1.0.4",
"grunt-cli": "~1.2.0",
"grunt-contrib-copy": "^1.0.0",
"grunt-contrib-csslint": "^2.0.0",
"grunt-contrib-cssmin": "^3.0.0",
"grunt-contrib-jshint": "~2.0.0",
"grunt-contrib-uglify": "^4.0.0",
"grunt-replace": "^1.0.1"
},
"dependencies": {
"admin-lte": "^3.0.2",
"grunt-contrib-watch": "^1.1.0"
}
}
......@@ -3,7 +3,7 @@
# -*- coding: utf-8 -*-
#
# PyRmin:pyrmin
# Version 0.3.4
# Version 0.4.0
# Author: Pyrmin.io
import sys
......
......@@ -15,7 +15,7 @@ import sys
from pygments import formatters, lexers
__version__ = "0.3.4"
__version__ = "0.4.0"
def error(self, msg='', context='', severity=logging.INFO, traceback=False):
......
This diff is collapsed.
This diff is collapsed.
@font-face{font-family:Poppins-Regular;src:url(/vendor/poppins/Poppins-Regular.ttf)}@font-face{font-family:Poppins-Medium;src:url(/vendor/poppins/Poppins-Medium.ttf)}@font-face{font-family:Poppins-Bold;src:url(/vendor/poppins/Poppins-Bold.ttf)}@font-face{font-family:Poppins-SemiBold;src:url(/vendor/poppins/Poppins-SemiBold.ttf)}.left-side,.main-sidebar{width:230px}.sidebar-mini .sidebar-collapse .sidebar-menu>li:hover>.treeview-menu,.sidebar-mini .sidebar-collapse .sidebar-menu>li:hover>a>span:not(.pull-right-container){width:230px}.sidebar-mini .sidebar-collapse .sidebar-menu>li:hover>a>.pull-right-container{left:250px}.navbar-nav>.user-menu>.dropdown-menu,.navbar-nav>.user-menu>.dropdown-menu>.user-body,.navbar-nav>.user-menu>.dropdown-menu>.user-body>.login-box-body{background:#222d32;border-color:#222d32}.dropdown-menu>.user-body a{background:#222d32}.navbar-nav>.user-menu>.dropdown-menu input:-webkit-autofill,.navbar-nav>.user-menu>.dropdown-menu>.user-body>.label_better{background-color:#222d32;-webkit-box-shadow:0 0 0 1000px #222d32 inset;-moz-box-shadow:0 0 0 1000px #222d32 inset;box-shadow:0 0 0 1000px #222d32 inset;-webkit-text-fill-color:#666}.navbar-nav>.user-menu>.dropdown-menu{width:360px}.main-footer{background:none repeat scroll 0 0 #18191a;color:#fff;font-weight:700;height:151px}.space_top{margin-top:20px}.slider{width:400px}.user-image{border-radius:50%;max-height:50px}.content-header>.header_tags{background:0 0;border-radius:2px;float:right;font-size:12px;margin-bottom:0;margin-top:0;padding:7px 5px;position:absolute;right:10px;top:15px}.content-header>.toolbar{background:0 0;border-radius:2px;float:right;font-size:12px;margin-bottom:0;margin-top:0;padding:7px 5px;position:absolute;right:10px;top:0}.scroll-top-wrapper{background-color:#222d32;border-bottom-left-radius:10px;border-bottom-right-radius:10px;border-top-left-radius:10px;border-top-right-radius:10px;bottom:78px;color:#eee;height:48px;line-height:45px;opacity:.7;overflow:hidden;padding-top:2px;position:fixed;right:40px;text-align:center;-webkit-transition:all .5s ease-in-out;-moz-transition:all .5s ease-in-out;-ms-transition:all .5s ease-in-out;-o-transition:all .5s ease-in-out;transition:all .5s ease-in-out;visibility:hidden;width:50px;z-index:99999999}.scroll-top-wrapper:hover{opacity:1}.scroll-top-wrapper .show{cursor:pointer;visibility:visible!important}.scroll-top-wrapper .fa{line-height:inherit}.nav-second-level li,.nav-third-level li{border-bottom:none}.nav-second-level li a{padding:7px 10px 7px 10px;padding-left:52px}.nav-third-level li a{padding-left:62px}.nav-second-level li:last-child{margin-bottom:10px}.mini-navbar .nav li:focus>.nav-second-level,body:not(.fixed-sidebar).mini-navbar .nav li:hover>.nav-second-level{border-radius:0 2px 2px 0;display:block;height:auto;min-width:140px}body.mini-navbar .navbar-default .nav>li>.nav-second-level li a{border-radius:3px;font-size:12px}.fixed-nav .slimScrollDiv #side-menu{padding-bottom:60px}.mini-navbar .nav-second-level li a{padding:10px 10px 10px 15px}.mini-navbar .nav-second-level{background-color:#2f4050;font-size:12px;left:70px;padding:10px 10px 10px 10px;position:absolute;top:0}.mini-navbar li.active .nav-second-level{left:65px}body.mini-navbar .navbar-static-side{width:70px}body.mini-navbar .nav-label,body.mini-navbar .navbar-default .nav li a span,body.mini-navbar .profile-element{display:none}body:not(.fixed-sidebar).mini-navbar .nav-second-level{display:none}body.mini-navbar .navbar-default .nav>li>a{font-size:16px}body.mini-navbar .logo-element{display:block}body.mini-navbar .nav-header{background-color:#1ab394;padding:0}body.mini-navbar #page-wrapper{margin:0 0 0 70px}body.fixed-sidebar .mini-navbar .footer{margin:0}body.mini-navbar #page-wrapper{margin:0 0 0 70px}.fixed-sidebar .mini-navbar .nav li:focus>.nav-second-level{display:block;height:auto}body.fixed-sidebar.mini-navbar .navbar-default .nav>li>.nav-second-level li a{border-radius:3px;font-size:12px}.fixed-sidebar .mini-navbar .nav-second-level li a{padding:10px 10px 10px 15px}.fixed-sidebar .mini-navbar .nav-second-level{font-size:13px;padding:0;position:relative}.fixed-sidebar .mini-navbar li.active .nav-second-level{left:0}body.fixed-sidebar .mini-navbar .navbar-default .nav>li>a{font-size:13px}body.fixed-sidebar .mini-navbar .nav-label,body.fixed-sidebar .mini-navbar .navbar-default .nav li a span{display:inline}.fixed-sidebar .mini-navbar .nav-second-level li a{padding:7px 10px 7px 52px}.fixed-sidebar .mini-navbar .nav-second-level{left:0}.chosen-container-multi{width:200px!important}.input-sm{line-height:10px!important}.dataTables_length{float:left!important}.dataTables_filter{float:right!important}.dt-buttons{margin-right:30px}table.dataTable tr{cursor:pointer}.pace .pace-activity{right:50px!important}.select2-container--default .select2-selection--single .select2-selection__rendered{line-height:20px!important}.control-label{padding-top:3px}h1,h2,h3,h4,h5,h6{font-family:Poppins-Medium}input{outline:0;border:none}textarea{outline:0;border:none}input:focus,textarea:focus{border-color:transparent!important}input:focus::-webkit-input-placeholder{color:transparent}input:focus:-moz-placeholder{color:transparent}input:focus::-moz-placeholder{color:transparent}input:focus:-ms-input-placeholder{color:transparent}textarea:focus::-webkit-input-placeholder{color:transparent}textarea:focus:-moz-placeholder{color:transparent}textarea:focus::-moz-placeholder{color:transparent}textarea:focus:-ms-input-placeholder{color:transparent}input::-webkit-input-placeholder{color:#fff}input:-moz-placeholder{color:#fff}input::-moz-placeholder{color:#fff}input:-ms-input-placeholder{color:#fff}textarea::-webkit-input-placeholder{color:#fff}textarea:-moz-placeholder{color:#fff}textarea::-moz-placeholder{color:#fff}textarea:-ms-input-placeholder{color:#fff}label{margin:0;display:block}button{outline:0!important;border:none;background:0 0}button:hover{cursor:pointer}iframe{border:none!important}.login100-form{width:100%;font-family:Poppins-Regular}.wrap-input100{width:100%;position:relative;border-bottom:2px solid rgba(255,255,255,.24);margin-bottom:30px}.input100{font-family:Poppins-Regular;font-size:16px;color:#fff;line-height:1.2;display:block;width:100%;height:45px;background:0 0;padding:0 5px 0 38px}.focus-input100{position:absolute;display:block;width:100%;height:100%;top:0;left:0;pointer-events:none}.focus-input100::before{content:"";display:block;position:absolute;bottom:-2px;left:0;width:0;height:2px;-webkit-transition:all .4s;-o-transition:all .4s;-moz-transition:all .4s;transition:all .4s;background:#fff}.focus-input100::after{font-family:'Font Awesome 5 Free';font-size:22px;color:#fff;content:attr(data-placeholder);display:block;width:100%;position:absolute;top:6px;left:0;padding-left:5px;-webkit-transition:all .4s;-o-transition:all .4s;-moz-transition:all .4s;transition:all .4s}.input100:focus{padding-left:5px}.input100:focus+.focus-input100::after{top:-22px;font-size:18px}.input100:focus+.focus-input100::before{width:100%}.has-val.input100+.focus-input100::after{top:-22px;font-size:18px}.has-val.input100+.focus-input100::before{width:100%}.has-val.input100{padding-left:5px}.validate-input{position:relative}.alert-validate::before{content:attr(data-validate);position:absolute;max-width:70%;background-color:#fff;border:1px solid #c80000;border-radius:2px;padding:4px 25px 4px 10px;top:50%;-webkit-transform:translateY(-50%);-moz-transform:translateY(-50%);-ms-transform:translateY(-50%);-o-transform:translateY(-50%);transform:translateY(-50%);right:0;pointer-events:none;font-family:Poppins-Regular;color:#c80000;font-size:13px;line-height:1.4;text-align:left;visibility:hidden;opacity:0;-webkit-transition:opacity .4s;-o-transition:opacity .4s;-moz-transition:opacity .4s;transition:opacity .4s}.alert-validate::after{content:"\f12a";font-family:FontAwesome;font-size:16px;color:#c80000;display:block;position:absolute;top:50%;-webkit-transform:translateY(-50%);-moz-transform:translateY(-50%);-ms-transform:translateY(-50%);-o-transform:translateY(-50%);transform:translateY(-50%);right:5px}.alert-validate:hover:before{visibility:visible;opacity:1}@media (max-width:992px){.alert-validate::before{visibility:visible;opacity:1}}
\ No newline at end of file
@font-face{font-family:Poppins-Regular;src:url(/vendor/poppins/Poppins-Regular.ttf)}@font-face{font-family:Poppins-Medium;src:url(/vendor/poppins/Poppins-Medium.ttf)}@font-face{font-family:Poppins-Bold;src:url(/vendor/poppins/Poppins-Bold.ttf)}@font-face{font-family:Poppins-SemiBold;src:url(/vendor/poppins/Poppins-SemiBold.ttf)}.navbar-nav>.user-menu>.dropdown-menu,.navbar-nav>.user-menu>.dropdown-menu>.user-body,.navbar-nav>.user-menu>.dropdown-menu>.user-body>.login-box-body{background:#222d32;border-color:#222d32}.dropdown-menu>.user-body a{background:#222d32}.navbar-nav>.user-menu>.dropdown-menu input:-webkit-autofill,.navbar-nav>.user-menu>.dropdown-menu>.user-body>.label_better{background-color:#222d32;-webkit-box-shadow:0 0 0 1000px #222d32 inset;-moz-box-shadow:0 0 0 1000px #222d32 inset;box-shadow:0 0 0 1000px #222d32 inset;-webkit-text-fill-color:#666}.navbar-nav>.user-menu>.dropdown-menu{width:360px}.user-panel{color:#c2c7d0}.main-footer{background:none repeat scroll 0 0 #18191a;color:#fff;font-weight:700;height:151px;border-top:none}.space_top{margin-top:20px}.slider{width:400px}.user-image{border-radius:50%;max-height:50px}.content-header>.header_tags{background:0 0;border-radius:2px;float:right;font-size:12px;margin-bottom:0;margin-top:0;padding:7px 5px;position:absolute;right:10px;top:15px}.content-header>.toolbar{background:0 0;border-radius:2px;float:right;font-size:12px;margin-bottom:0;margin-top:0;padding:7px 5px;position:absolute;right:10px;top:0}.scroll-top-wrapper{background-color:#222d32;border-bottom-left-radius:10px;border-bottom-right-radius:10px;border-top-left-radius:10px;border-top-right-radius:10px;bottom:78px;color:#eee;height:48px;line-height:45px;opacity:.7;overflow:hidden;padding-top:2px;position:fixed;right:40px;text-align:center;-webkit-transition:all .5s ease-in-out;-moz-transition:all .5s ease-in-out;-ms-transition:all .5s ease-in-out;-o-transition:all .5s ease-in-out;transition:all .5s ease-in-out;visibility:hidden;width:50px;z-index:99999999}.scroll-top-wrapper:hover{opacity:1}.scroll-top-wrapper .show{cursor:pointer;visibility:visible!important}.scroll-top-wrapper .fa{line-height:inherit}.nav-second-level li,.nav-third-level li{border-bottom:none}.nav-second-level li a{padding:7px 10px 7px 10px;padding-left:52px}.nav-third-level li a{padding-left:62px}.nav-second-level li:last-child{margin-bottom:10px}.mini-navbar .nav li:focus>.nav-second-level,body:not(.fixed-sidebar).mini-navbar .nav li:hover>.nav-second-level{border-radius:0 2px 2px 0;display:block;height:auto;min-width:140px}body.mini-navbar .navbar-default .nav>li>.nav-second-level li a{border-radius:3px;font-size:12px}.fixed-nav .slimScrollDiv #side-menu{padding-bottom:60px}.mini-navbar .nav-second-level li a{padding:10px 10px 10px 15px}.mini-navbar .nav-second-level{background-color:#2f4050;font-size:12px;left:70px;padding:10px 10px 10px 10px;position:absolute;top:0}.mini-navbar li.active .nav-second-level{left:65px}body.mini-navbar .navbar-static-side{width:70px}body.mini-navbar .nav-label,body.mini-navbar .navbar-default .nav li a span,body.mini-navbar .profile-element{display:none}body:not(.fixed-sidebar).mini-navbar .nav-second-level{display:none}body.mini-navbar .navbar-default .nav>li>a{font-size:16px}body.mini-navbar .logo-element{display:block}body.mini-navbar .nav-header{background-color:#1ab394;padding:0}body.mini-navbar #page-wrapper{margin:0 0 0 70px}body.fixed-sidebar .mini-navbar .footer{margin:0}body.mini-navbar #page-wrapper{margin:0 0 0 70px}.fixed-sidebar .mini-navbar .nav li:focus>.nav-second-level{display:block;height:auto}body.fixed-sidebar.mini-navbar .navbar-default .nav>li>.nav-second-level li a{border-radius:3px;font-size:12px}.fixed-sidebar .mini-navbar .nav-second-level li a{padding:10px 10px 10px 15px}.fixed-sidebar .mini-navbar .nav-second-level{font-size:13px;padding:0;position:relative}.fixed-sidebar .mini-navbar li.active .nav-second-level{left:0}body.fixed-sidebar .mini-navbar .navbar-default .nav>li>a{font-size:13px}body.fixed-sidebar .mini-navbar .nav-label,body.fixed-sidebar .mini-navbar .navbar-default .nav li a span{display:inline}.fixed-sidebar .mini-navbar .nav-second-level li a{padding:7px 10px 7px 52px}.fixed-sidebar .mini-navbar .nav-second-level{left:0}.chosen-container-multi{width:200px!important}.input-sm{line-height:10px!important}.dataTables_length{float:left!important}.dataTables_filter{float:right!important}.dt-buttons{margin-right:30px}table.dataTable tr{cursor:pointer}.pace .pace-activity{right:50px!important}.select2-container--default .select2-selection--single .select2-selection__rendered{line-height:20px!important}.control-label{padding-top:3px}h1,h2,h3,h4,h5,h6{font-family:Poppins-Medium}input{outline:0;border:none}textarea{outline:0;border:none}input:focus,textarea:focus{border-color:transparent!important}input:focus::-webkit-input-placeholder{color:transparent}input:focus:-moz-placeholder{color:transparent}input:focus::-moz-placeholder{color:transparent}input:focus:-ms-input-placeholder{color:transparent}textarea:focus::-webkit-input-placeholder{color:transparent}textarea:focus:-moz-placeholder{color:transparent}textarea:focus::-moz-placeholder{color:transparent}textarea:focus:-ms-input-placeholder{color:transparent}input::-webkit-input-placeholder{color:#fff}input:-moz-placeholder{color:#fff}input::-moz-placeholder{color:#fff}input:-ms-input-placeholder{color:#fff}textarea::-webkit-input-placeholder{color:#fff}textarea:-moz-placeholder{color:#fff}textarea::-moz-placeholder{color:#fff}textarea:-ms-input-placeholder{color:#fff}label{margin:0;display:block}button{outline:0!important;border:none;background:0 0}button:hover{cursor:pointer}iframe{border:none!important}.login100-form{width:100%;font-family:Poppins-Regular}.wrap-input100{width:100%;position:relative;border-bottom:2px solid rgba(255,255,255,.24);margin-bottom:30px}.input100{font-family:Poppins-Regular;font-size:16px;color:#fff;line-height:1.2;display:block;width:100%;height:45px;background:0 0;padding:0 5px 0 38px}.focus-input100{position:absolute;display:block;width:100%;height:100%;top:0;left:0;pointer-events:none}.focus-input100::before{content:"";display:block;position:absolute;bottom:-2px;left:0;width:0;height:2px;-webkit-transition:all .4s;-o-transition:all .4s;-moz-transition:all .4s;transition:all .4s;background:#fff}.focus-input100::after{font-family:'Font Awesome 5 Free';font-size:22px;color:#fff;content:attr(data-placeholder);display:block;width:100%;position:absolute;top:6px;left:0;padding-left:5px;-webkit-transition:all .4s;-o-transition:all .4s;-moz-transition:all .4s;transition:all .4s}.input100:focus{padding-left:5px}.input100:focus+.focus-input100::after{top:-22px;font-size:18px}.input100:focus+.focus-input100::before{width:100%}.has-val.input100+.focus-input100::after{top:-22px;font-size:18px}.has-val.input100+.focus-input100::before{width:100%}.has-val.input100{padding-left:5px}.validate-input{position:relative}.alert-validate::before{content:attr(data-validate);position:absolute;max-width:70%;background-color:#fff;border:1px solid #c80000;border-radius:2px;padding:4px 25px 4px 10px;top:50%;-webkit-transform:translateY(-50%);-moz-transform:translateY(-50%);-ms-transform:translateY(-50%);-o-transform:translateY(-50%);transform:translateY(-50%);right:0;pointer-events:none;font-family:Poppins-Regular;color:#c80000;font-size:13px;line-height:1.4;text-align:left;visibility:hidden;opacity:0;-webkit-transition:opacity .4s;-o-transition:opacity .4s;-moz-transition:opacity .4s;transition:opacity .4s}.alert-validate::after{content:"\f12a";font-family:FontAwesome;font-size:16px;color:#c80000;display:block;position:absolute;top:50%;-webkit-transform:translateY(-50%);-moz-transform:translateY(-50%);-ms-transform:translateY(-50%);-o-transform:translateY(-50%);transform:translateY(-50%);right:5px}.alert-validate:hover:before{visibility:visible;opacity:1}@media (max-width:992px){.alert-validate::before{visibility:visible;opacity:1}}
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
/*! AdminLTE app.js
* ================
* Main JS application file for AdminLTE v2. This file
* should be included in all pages. It controls some layout
* options and implements exclusive AdminLTE plugins.
*
* @Author Almsaeed Studio
* @Support <http://www.almsaeedstudio.com>
* @Email <support@almsaeedstudio.com>
* @version 2.1.2
* @license MIT <http://opensource.org/licenses/MIT>
*/
"use strict";function _init(){$.AdminLTE.layout={activate:function(){var a=this;a.fix(),a.fixSidebar(),$(window,".wrapper").resize(function(){a.fix(),a.fixSidebar()})},fix:function(){var a=$(".main-header").outerHeight()+$(".main-footer").outerHeight(),b=$(window).height(),c=$(".sidebar").height();if($("body").hasClass("fixed"))$(".content-wrapper, .right-side").css("min-height",b-$(".main-footer").outerHeight());else{var d;b>=c?($(".content-wrapper, .right-side").css("min-height",b-a),d=b-a):($(".content-wrapper, .right-side").css("min-height",c),d=c);var e=$($.AdminLTE.options.controlSidebarOptions.selector);"undefined"!=typeof e&&e.height()>d&&$(".content-wrapper, .right-side").css("min-height",e.height())}},fixSidebar:function(){return $("body").hasClass("fixed")?("undefined"==typeof $.fn.slimScroll&&console&&console.error("Error: the fixed layout requires the slimscroll plugin!"),void($.AdminLTE.options.sidebarSlimScroll&&"undefined"!=typeof $.fn.slimScroll&&($(".sidebar").slimScroll({destroy:!0}).height("auto"),$(".sidebar").slimscroll({height:$(window).height()-$(".main-header").height()+"px",color:"rgba(0,0,0,0.2)",size:"3px"})))):void("undefined"!=typeof $.fn.slimScroll&&$(".sidebar").slimScroll({destroy:!0}).height("auto"))}},$.AdminLTE.pushMenu={activate:function(a){var b=$.AdminLTE.options.screenSizes;$(a).on("click",function(a){a.preventDefault(),$(window).width()>b.sm-1?$("body").hasClass("sidebar-collapse")?$("body").removeClass("sidebar-collapse").trigger("expanded.pushMenu"):$("body").addClass("sidebar-collapse").trigger("collapsed.pushMenu"):$("body").hasClass("sidebar-open")?$("body").removeClass("sidebar-open").removeClass("sidebar-collapse").trigger("collapsed.pushMenu"):$("body").addClass("sidebar-open").trigger("expanded.pushMenu"),pyrmin().get("/rest/settings/minibar")}),$(".content-wrapper").click(function(){$(window).width()<=b.sm-1&&$("body").hasClass("sidebar-open")&&$("body").removeClass("sidebar-open")}),($.AdminLTE.options.sidebarExpandOnHover||$("body").hasClass("fixed")&&$("body").hasClass("sidebar-mini"))&&this.expandOnHover()},expandOnHover:function(){var a=this,b=$.AdminLTE.options.screenSizes.sm-1;$(".main-sidebar").hover(function(){$("body").hasClass("sidebar-mini")&&$("body").hasClass("sidebar-collapse")&&$(window).width()>b&&a.expand()},function(){$("body").hasClass("sidebar-mini")&&$("body").hasClass("sidebar-expanded-on-hover")&&$(window).width()>b&&a.collapse()})},expand:function(){$("body").removeClass("sidebar-collapse").addClass("sidebar-expanded-on-hover")},collapse:function(){$("body").hasClass("sidebar-expanded-on-hover")&&$("body").removeClass("sidebar-expanded-on-hover").addClass("sidebar-collapse")}},$.AdminLTE.tree=function(a){var b=this,c=$.AdminLTE.options.animationSpeed;$("li a",$(a)).on("click",function(a){var d=$(this),e=d.next();if(e.is(".treeview-menu")&&e.is(":visible"))e.slideUp(c,function(){e.removeClass("menu-open")}),e.parent("li").removeClass("active");else if(e.is(".treeview-menu")&&!e.is(":visible")){var f=d.parents("ul").first(),g=f.find("ul:visible").slideUp(c);g.removeClass("menu-open");var h=d.parent("li");e.slideDown(c,function(){e.addClass("menu-open"),f.find("li.active").removeClass("active"),h.addClass("active"),b.layout.fix()})}e.is(".treeview-menu")&&a.preventDefault()})},$.AdminLTE.controlSidebar={activate:function(){var a=this,b=$.AdminLTE.options.controlSidebarOptions,c=$(b.selector),d=$(b.toggleBtnSelector);d.on("click",function(d){d.preventDefault(),c.hasClass("control-sidebar-open")||$("body").hasClass("control-sidebar-open")?a.close(c,b.slide):a.open(c,b.slide)});var e=$(".control-sidebar-bg");a._fix(e),$("body").hasClass("fixed")?a._fixForFixed(c):$(".content-wrapper, .right-side").height()<c.height()&&a._fixForContent(c)},open:function(a,b){b?a.addClass("control-sidebar-open"):$("body").addClass("control-sidebar-open")},close:function(a,b){b?a.removeClass("control-sidebar-open"):$("body").removeClass("control-sidebar-open")},_fix:function(a){var b=this;$("body").hasClass("layout-boxed")?(a.css("position","absolute"),a.height($(".wrapper").height()),$(window).resize(function(){b._fix(a)})):a.css({position:"fixed",height:"auto"})},_fixForFixed:function(a){a.css({position:"fixed","max-height":"100%",overflow:"auto","padding-bottom":"50px"})},_fixForContent:function(a){$(".content-wrapper, .right-side").css("min-height",a.height())}},$.AdminLTE.boxWidget={selectors:$.AdminLTE.options.boxWidgetOptions.boxWidgetSelectors,icons:$.AdminLTE.options.boxWidgetOptions.boxWidgetIcons,animationSpeed:$.AdminLTE.options.animationSpeed,activate:function(a){var b=this;a||(a=document),$(a).find(b.selectors.collapse).on("click",function(a){a.preventDefault(),b.collapse($(this))}),$(a).find(b.selectors.remove).on("click",function(a){a.preventDefault(),b.remove($(this))})},collapse:function(a){var b=this,c=a.parents(".box").first(),d=c.find("> .box-body, > .box-footer, > form >.box-body, > form > .box-footer");c.hasClass("collapsed-box")?(a.children(":first").removeClass(b.icons.open).addClass(b.icons.collapse),d.slideDown(b.animationSpeed,function(){c.removeClass("collapsed-box")})):(a.children(":first").removeClass(b.icons.collapse).addClass(b.icons.open),d.slideUp(b.animationSpeed,function(){c.addClass("collapsed-box")}))},remove:function(a){var b=a.parents(".box").first();b.slideUp(this.animationSpeed)}}}if("undefined"==typeof jQuery)throw new Error("AdminLTE requires jQuery");$.AdminLTE={},$.AdminLTE.options={navbarMenuSlimscroll:!0,navbarMenuSlimscrollWidth:"3px",navbarMenuHeight:"200px",animationSpeed:500,sidebarToggleSelector:"[data-toggle='offcanvas']",sidebarPushMenu:!0,sidebarSlimScroll:!0,sidebarExpandOnHover:!1,enableBoxRefresh:!0,enableBSToppltip:!0,BSTooltipSelector:"[data-toggle='tooltip']",enableFastclick:!0,enableControlSidebar:!0,controlSidebarOptions:{toggleBtnSelector:"[data-toggle='control-sidebar']",selector:".control-sidebar",slide:!0},enableBoxWidget:!0,boxWidgetOptions:{boxWidgetIcons:{collapse:"fa-minus",open:"fa-plus",remove:"fa-times"},boxWidgetSelectors:{remove:'[data-widget="remove"]',collapse:'[data-widget="collapse"]'}},directChat:{enable:!0,contactToggleSelector:'[data-widget="chat-pane-toggle"]'},colors:{lightBlue:"#3c8dbc",red:"#f56954",green:"#00a65a",aqua:"#00c0ef",yellow:"#f39c12",blue:"#0073b7",navy:"#001F3F",teal:"#39CCCC",olive:"#3D9970",lime:"#01FF70",orange:"#FF851B",fuchsia:"#F012BE",purple:"#8E24AA",maroon:"#D81B60",black:"#222222",gray:"#d2d6de"},screenSizes:{xs:480,sm:768,md:992,lg:1200}},$(function(){"undefined"!=typeof AdminLTEOptions&&$.extend(!0,$.AdminLTE.options,AdminLTEOptions);var a=$.AdminLTE.options;_init(),$.AdminLTE.layout.activate(),$.AdminLTE.tree(".sidebar"),a.enableControlSidebar&&$.AdminLTE.controlSidebar.activate(),a.navbarMenuSlimscroll&&"undefined"!=typeof $.fn.slimscroll&&$(".navbar .menu").slimscroll({height:a.navbarMenuHeight,alwaysVisible:!1,size:a.navbarMenuSlimscrollWidth}).css("width","100%"),a.sidebarPushMenu&&$.AdminLTE.pushMenu.activate(a.sidebarToggleSelector),a.enableBSToppltip&&$("body").tooltip({selector:a.BSTooltipSelector}),a.enableBoxWidget&&$.AdminLTE.boxWidget.activate(),a.enableFastclick&&"undefined"!=typeof FastClick&&FastClick.attach(document.body),a.directChat.enable&&$(a.directChat.contactToggleSelector).on("click",function(){var a=$(this).parents(".direct-chat").first();a.toggleClass("direct-chat-contacts-open")}),$('.btn-group[data-toggle="btn-toggle"]').each(function(){var a=$(this);$(this).find(".btn").on("click",function(b){a.find(".btn.active").removeClass("active"),$(this).addClass("active"),b.preventDefault()})})}),function(a){a.fn.boxRefresh=function(b){function c(a){a.append(f),e.onLoadStart.call(a)}function d(a){a.find(f).remove(),e.onLoadDone.call(a)}var e=a.extend({trigger:".refresh-btn",source:"",onLoadStart:function(a){},onLoadDone:function(a){}},b),f=a('<div class="overlay"><div class="fa fa-refresh fa-spin"></div></div>');return this.each(function(){if(""===e.source)return void(console&&console.log("Please specify a source first - boxRefresh()"));var b=a(this),f=b.find(e.trigger).first();f.on("click",function(a){a.preventDefault(),c(b),b.find(".box-body").load(e.source,function(){d(b)})})})}}(jQuery),function(a){a.fn.activateBox=function(){a.AdminLTE.boxWidget.activate(this)}}(jQuery),function(a){a.fn.todolist=function(b){var c=a.extend({onCheck:function(a){},onUncheck:function(a){}},b);return this.each(function(){"undefined"!=typeof a.fn.iCheck?(a("input",this).on("ifChecked",function(b){var d=a(this).parents("li").first();d.toggleClass("done"),c.onCheck.call(d)}),a("input",this).on("ifUnchecked",function(b){var d=a(this).parents("li").first();d.toggleClass("done"),c.onUncheck.call(d)})):a("input",this).on("change",function(b){var d=a(this).parents("li").first();d.toggleClass("done"),c.onCheck.call(d)})})}}(jQuery);
\ No newline at end of file
/*! PyRmin.js 0.3.4 */
PNotify.prototype.options.styling="fontawesome",PNotify.prototype.options.styling="bootstrap3";var stack_bottomright={dir1:"up",dir2:"left",firstpos1:25,firstpos2:25};function scrollToTop(){verticalOffset="undefined"!=typeof verticalOffset?verticalOffset:0,element=$("body"),offset=element.offset(),offsetTop=offset.top,$("html, body").animate({scrollTop:offsetTop},500,"linear"),$(".modal").each(function(){$(this).is(":visible")&&(offset=$(this).offset(),offsetTop=offset.top,$(this).animate({scrollTop:offsetTop},500,"linear"))})}function get_data(t,r,o){o=void 0!==o?o:{},Pace.track(function(){$.ajax({url:t,type:"GET",data:o,success:function(t,o){return 0!==t.status?(pyrmin().notify("error","API Error",t.error),!1):void 0!==r&&(r(t),!0)},error:function(t,o,e){pyrmin().notify("error",t.status,e),r(rep)}})})}function post_data(t,e,o){o=void 0!==o?o:{},Pace.track(function(){$.ajax({url:t,type:"POST",data:o,success:function(t,o){return 0!==t.status?(pyrmin().notify("error",t.status+" API Error",t.error),!1):void 0!==e&&(e(t),!0)},error:function(t,o,e){return pyrmin().notify("error",t.status,e),!1}})})}function load_data(t,o,e){return Pace.start(),(e=void 0!==e?e:{}).method=o,data=JSON.parse($.ajax({url:t,type:"POST",async:!1,data:e,success:function(t,o){return 0!==t.status&&pyrmin().notify("error",t.status+" API Error",t.error),!0},error:function(t,o){return pyrmin().notify("error",o+" HTTP error",t.error),!1}}).responseText),Pace.stop(),data}function load_data2(t,o){return Pace.start(),o=void 0!==o?o:{},data=$.ajax({url:t,type:"POST",async:!1,data:o,success:function(t,o){return 0!==t.status&&pyrmin().notify("error",t.status+" API Error",t.error),!0},error:function(t,o){return pyrmin().notify("error",o+" HTTP error",t.error),!1}}).responseText,Pace.stop(),JSON.parse(data)}function load_async_data(t,o,e,r){try{(r=void 0!==r?r:{}).method=o,Pace.track(function(){$.ajax({url:t,type:"POST",data:r,success:function(t,o){return 0!==t.status?(notify("error","API Error",t.error),!1):void 0!==e&&(e(t),!0)},error:function(t,o){return pyrmin().notify("error",o+" HTTP error",t.error),!1}})})}catch(t){console.log(t)}}function global_search_callback(o,t){0===o.status?(o.js&&pyrmin().load_res(o.js.src),msg="Found "+o.search.length+" results",msg+='<table class="table table-striped">',$.each(o.search,function(t){msg+=o.search[t]}),msg+="</table>",$("#searchmodal .modal-body").html(msg),$("#searchmodal").modal("show")):console.log(o)}pyrmin=function(t){return t?window===this?new pyrmin(t):(this.e=$(t),this):window===this?new pyrmin:this},pyrmin.constructor=pyrmin,pyrmin.prototype.url="https://pyrmin.io",pyrmin.prototype.version=function(t){if(!t)return"0.3.4";$.ajax({url:pyrmin().url+"/download/",datatype:"jsonp",jsonpCallback:"versionCallback",cache:!0,data:{version:t},success:function(t,o){0===t.status?$("#checkversion").html('<i class="fa fa-check-circle text-success" title="Last version installed"></i>'):$("#checkversion").html('<i class="fa fa-exclamation-triangle text-danger" data-toggle="tooltip" title="Latest version available is: '+t.latest+'"></i>')}})},pyrmin_vendors={datatables:["/vendor/datatables/datatables.min.js","/vendor/datatables/datatables.min.css"],nunjucks:["/vendor/nunjucks/nunjucks.min.js"],momentjs:["/vendor/momentjs/moment.min.js"],odometer:["/vendor/odometer/odometer.min.js","/vendor/odometer/odometer-theme-default.css"],fileinput:["/vendor/boostrap-fileinput/css/fileinput.min.css","/vendor/boostrap-fileinput/js/fileinput.min.js","/vendor/boostrap-fileinput/js/theme.min.js"],chartjs:["/vendor/chartjs/Chart.min.js"],steps:["/vendor/jquery.steps/jquery.steps.min.js","/vendor/jquery.validate/jquery.validate.min.js","/vendor/jquery.steps/jquery.steps.css"],icheck:["/vendor/iCheck/icheck.min.js","/vendor/iCheck/all.css"],chosen:["/vendor/chosen/chosen.jquery.min.js","/vendor/chosen/chosen.min.css"],swal:["/vendor/sweetalert/sweet-alert.min.js","/vendor/sweetalert/sweet-alert.css"],semantic:["/vendor/semantic/semantic.min.js","/vendor/semantic/semantic.min.css"],select:["/vendor/bootstrap-select/js/bootstrap-select.min.js","/vendor/bootstrap-select/css/bootstrap-select.min.css"],select2:["/vendor/select2/js/select2.min.js","/vendor/select2/css/select2.min.css"]},pyrmin.prototype.add_vendor=function(t){Array.isArray(t)?$.each(t,function(t,o){$.each(pyrmin_vendors[o],function(t,o){pyrmin().load_res(o)})}):_.notify("warning","addvendor error","method addvendor need an array as parameter")},pyrmin.prototype.notify=function(t,o,e,r){r=void 0===r||r,new PNotify({title:o,text:e,type:t,hide:r,addclass:"stack-bottomright",stack:stack_bottomright,nonblock:{nonblock:!1,nonblock_opacity:.2},buttons:{show_on_nonblock:!0}})},pyrmin.prototype.modal=function(t){modal='<div class="modal fade" id="'+t+'" tabindex="-1" role="dialog"><div class="modal-dialog modal-lg"><div class="modal-content"><div class="modal-header" style="border-bottom: 0px !important;"><button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button><h4 class="modal-title"></h4></div><div class="modal-body"></div><div class="modal-footer"><button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button></div></div>\x3c!-- /.modal-content --\x3e</div>\x3c!-- /.modal-dialog --\x3e</div>\x3c!-- /.modal --\x3e',0===$("#"+t).length||$("#"+t).remove(),$("div#mainwrapper").append(modal),$("#"+t).on("scroll",function(){100<$("#"+t).scrollTop()?$(".scroll-top-wrapper").addClass("show"):$(".scroll-top-wrapper").removeClass("show")})},pyrmin.prototype.switchModals=function(o,e){0===$(o).length||"none"===$(o).css("display")?$(e).modal("show"):($(o).on("hidden.bs.modal",function(t){$(e).modal("show"),$(o).off()}),$(o).modal("hide"))},pyrmin.prototype.confirm=function(t,o,e,r,s,n,a){r=void 0!==r?r:function(t){},n=void 0!==n?n:function(t){},e=void 0!==e?e:"fa fa-question",new PNotify({title:t,text:o,icon:e,addclass:"stack-bottomright",stack:stack_bottomright,hide:!1,confirm:{confirm:!0,buttons:[{text:"Yes",addClass:"btn-flat btn-xs",click:function(t){r(s),t.remove()}},{text:"No",addClass:"btn-flat btn-xs",click:function(t){n(a),t.remove()}}]},buttons:{closer:!1,sticker:!1},history:{history:!1}})},pyrmin.prototype.load_res=function(t){-1!==t.indexOf(".css")?$("head").append("<link rel='stylesheet' type='text/css' href='"+t+"'>"):-1!==t.indexOf(".js")&&$("body").append("<script type='text/javascript' src='"+t+"'><\/script>")},pyrmin.prototype.get=function(t){return Pace.start(),JSON.parse($.ajax({url:t,type:"GET",async:!1,success:function(t,o){return 0!==t.status?(pyrmin().notify("error","API Error",t.error),Pace.stop(),!1):(Pace.stop(),!0)},error:function(t,o,e){return pyrmin().notify("error",t.status,e),Pace.stop(),!1}}).responseText)},$(function(){$(".modal").on("shown.bs.modal",function(t){$(t.target).on("scroll",function(){100<$(t.target).scrollTop()?$(".scroll-top-wrapper").addClass("show"):$(".scroll-top-wrapper").removeClass("show")})}),$(document).on("scroll",function(){100<$(window).scrollTop()?$(".scroll-top-wrapper").addClass("show"):$(".scroll-top-wrapper").removeClass("show")}),$(".scroll-top-wrapper").on("click",scrollToTop)}),$(document).ready(function(){$("#loading_fade").removeClass("modal-backdrop fade in"),$('[data-toggle="tooltip"]').tooltip(),pyrmin().version(pyrmin().version()),$("#searchform").submit(function(t){t.preventDefault(),plugins=$("#searchform_plugins").val().split(","),$.each(plugins,function(t){post_data("/rest/"+plugins[t]+"/search/",global_search_callback,{query:$("#searchform_q").val()})})})});
/*! PyRmin.js 0.4.0 */
PNotify.prototype.options.styling="fontawesome",PNotify.prototype.options.styling="bootstrap3";var stack_bottomright={dir1:"up",dir2:"left",firstpos1:25,firstpos2:25};function scrollToTop(){verticalOffset="undefined"!=typeof verticalOffset?verticalOffset:0,element=$("body"),offset=element.offset(),offsetTop=offset.top,$("html, body").animate({scrollTop:offsetTop},500,"linear"),$(".modal").each(function(){$(this).is(":visible")&&(offset=$(this).offset(),offsetTop=offset.top,$(this).animate({scrollTop:offsetTop},500,"linear"))})}function get_data(t,r,o){o=void 0!==o?o:{},Pace.track(function(){$.ajax({url:t,type:"GET",data:o,success:function(t,o){return 0!==t.status?(pyrmin().notify("error","API Error",t.error),!1):void 0!==r&&(r(t),!0)},error:function(t,o,e){pyrmin().notify("error",t.status,e),r(rep)}})})}function post_data(t,e,o){o=void 0!==o?o:{},Pace.track(function(){$.ajax({url:t,type:"POST",data:o,success:function(t,o){return 0!==t.status?(pyrmin().notify("error",t.status+" API Error",t.error),!1):void 0!==e&&(e(t),!0)},error:function(t,o,e){return pyrmin().notify("error",t.status,e),!1}})})}function load_data(t,o,e){return Pace.start(),(e=void 0!==e?e:{}).method=o,data=JSON.parse($.ajax({url:t,type:"POST",async:!1,data:e,success:function(t,o){return 0!==t.status&&pyrmin().notify("error",t.status+" API Error",t.error),!0},error:function(t,o){return pyrmin().notify("error",o+" HTTP error",t.error),!1}}).responseText),Pace.stop(),data}function load_data2(t,o){return Pace.start(),o=void 0!==o?o:{},data=$.ajax({url:t,type:"POST",async:!1,data:o,success:function(t,o){return 0!==t.status&&pyrmin().notify("error",t.status+" API Error",t.error),!0},error:function(t,o){return pyrmin().notify("error",o+" HTTP error",t.error),!1}}).responseText,Pace.stop(),JSON.parse(data)}function load_async_data(t,o,e,r){try{(r=void 0!==r?r:{}).method=o,Pace.track(function(){$.ajax({url:t,type:"POST",data:r,success:function(t,o){return 0!==t.status?(notify("error","API Error",t.error),!1):void 0!==e&&(e(t),!0)},error:function(t,o){return pyrmin().notify("error",o+" HTTP error",t.error),!1}})})}catch(t){console.log(t)}}function global_search_callback(o,t){0===o.status?(o.js&&pyrmin().load_res(o.js.src),msg="Found "+o.search.length+" results",msg+='<table class="table table-striped">',$.each(o.search,function(t){msg+=o.search[t]}),msg+="</table>",$("#searchmodal .modal-body").html(msg),$("#searchmodal").modal("show")):console.log(o)}pyrmin=function(t){return t?window===this?new pyrmin(t):(this.e=$(t),this):window===this?new pyrmin:this},pyrmin.constructor=pyrmin,pyrmin.prototype.url="https://pyrmin.io",pyrmin.prototype.version=function(t){if(!t)return"0.4.0";$.ajax({url:pyrmin().url+"/download/",datatype:"jsonp",jsonpCallback:"versionCallback",cache:!0,data:{version:t},success:function(t,o){0===t.status?$("#checkversion").html('<i class="fa fa-check-circle text-success" title="Last version installed"></i>'):$("#checkversion").html('<i class="fa fa-exclamation-triangle text-danger" data-toggle="tooltip" title="Latest version available is: '+t.latest+'"></i>')}})},pyrmin_vendors={colorpicker:["/vendor/bootstrap-colorpicker/js/bootstrap-colorpicker.min.js","/vendor/bootstrap-colorpicker/css/bootstrap-colorpicker.min.css"],datatables:["/vendor/datatables/jquery.dataTables.min.js","/vendor/datatables/datatables.min.css"],nunjucks:["/vendor/nunjucks/nunjucks.min.js"],momentjs:["/vendor/moment/moment.min.js"],odometer:["/vendor/odometer/odometer.min.js","/vendor/odometer/odometer-theme-default.css"],fileinput:["/vendor/boostrap-fileinput/css/fileinput.min.css","/vendor/boostrap-fileinput/js/fileinput.min.js","/vendor/boostrap-fileinput/js/theme.min.js"],chartjs:["/vendor/chart.js/Chart.min.js","/vendor/chart.js/Chart.min.css"],steps:["/vendor/jquery.steps/jquery.steps.min.js","/vendor/jquery.validate/jquery.validate.min.js","/vendor/jquery.steps/jquery.steps.css"],icheck:["/vendor/iCheck/icheck.min.js","/vendor/iCheck/all.css"],chosen:["/vendor/chosen/chosen.jquery.min.js","/vendor/chosen/chosen.min.css"],swal:["/vendor/sweetalert2/sweetalert2.min.js","/vendor/sweetalert2/sweetalert2.min.css","/vendor/sweetalert2-theme-bootstrap-4/bootstrap-4.min.css"],semantic:["/vendor/semantic/semantic.min.js","/vendor/semantic/semantic.min.css"],select:["/vendor/bootstrap-select/js/bootstrap-select.min.js","/vendor/bootstrap-select/css/bootstrap-select.min.css"],select2:["/vendor/select2/js/select2.min.js","/vendor/select2/css/select2.min.css","/vendor/select2-bootstrap4-theme/select2-bootstrap4.min.css"]},pyrmin.prototype.add_vendor=function(t){Array.isArray(t)?$.each(t,function(t,o){$.each(pyrmin_vendors[o],function(t,o){pyrmin().load_res(o)})}):_.notify("warning","addvendor error","method addvendor need an array as parameter")},pyrmin.prototype.notify=function(t,o,e,r){r=void 0===r||r,new PNotify({title:o,text:e,type:t,hide:r,addclass:"stack-bottomright",stack:stack_bottomright,nonblock:{nonblock:!1,nonblock_opacity:.2},buttons:{show_on_nonblock:!0}})},pyrmin.prototype.modal=function(t){modal='<div class="modal fade" id="'+t+'" tabindex="-1" role="dialog"><div class="modal-dialog modal-lg"><div class="modal-content"><div class="modal-header" style="border-bottom: 0px !important;"><button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button><h4 class="modal-title"></h4></div><div class="modal-body"></div><div class="modal-footer"><button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button></div></div>\x3c!-- /.modal-content --\x3e</div>\x3c!-- /.modal-dialog --\x3e</div>\x3c!-- /.modal --\x3e',0===$("#"+t).length||$("#"+t).remove(),$("div#mainwrapper").append(modal),$("#"+t).on("scroll",function(){100<$("#"+t).scrollTop()?$(".scroll-top-wrapper").addClass("show"):$(".scroll-top-wrapper").removeClass("show")})},pyrmin.prototype.switchModals=function(o,e){0===$(o).length||"none"===$(o).css("display")?$(e).modal("show"):($(o).on("hidden.bs.modal",function(t){$(e).modal("show"),$(o).off()}),$(o).modal("hide"))},pyrmin.prototype.confirm=function(t,o,e,r,s,n,a){r=void 0!==r?r:function(t){},n=void 0!==n?n:function(t){},e=void 0!==e?e:"fa fa-question",new PNotify({title:t,text:o,icon:e,addclass:"stack-bottomright",stack:stack_bottomright,hide:!1,confirm:{confirm:!0,buttons:[{text:"Yes",addClass:"btn-flat btn-xs",click:function(t){r(s),t.remove()}},{text:"No",addClass:"btn-flat btn-xs",click:function(t){n(a),t.remove()}}]},buttons:{closer:!1,sticker:!1},history:{history:!1}})},pyrmin.prototype.load_res=function(t){-1!==t.indexOf(".css")?$("head").append("<link rel='stylesheet' type='text/css' href='"+t+"'>"):-1!==t.indexOf(".js")&&$("body").append("<script type='text/javascript' src='"+t+"'><\/script>")},pyrmin.prototype.get=function(t){return Pace.start(),JSON.parse($.ajax({url:t,type:"GET",async:!1,success:function(t,o){return 0!==t.status?(pyrmin().notify("error","API Error",t.error),Pace.stop(),!1):(Pace.stop(),!0)},error:function(t,o,e){return pyrmin().notify("error",t.status,e),Pace.stop(),!1}}).responseText)},$(function(){$(".modal").on("shown.bs.modal",function(t){$(t.target).on("scroll",function(){100<$(t.target).scrollTop()?$(".scroll-top-wrapper").addClass("show"):$(".scroll-top-wrapper").removeClass("show")})}),$(document).on("scroll",function(){100<$(window).scrollTop()?$(".scroll-top-wrapper").addClass("show"):$(".scroll-top-wrapper").removeClass("show")}),$(".scroll-top-wrapper").on("click",scrollToTop)}),$(document).ready(function(){$("#loading_fade").removeClass("modal-backdrop fade in"),$('[data-toggle="tooltip"]').tooltip(),pyrmin().version(pyrmin().version()),$("#searchform").submit(function(t){t.preventDefault(),plugins=$("#searchform_plugins").val().split(","),$.each(plugins,function(t){post_data("/rest/"+plugins[t]+"/search/",global_search_callback,{query:$("#searchform_q").val()})})})});
//# sourceMappingURL=pyrmin.min.js.map
\ No newline at end of file
{"version":3,"sources":["../../../src/js/pyrmin.js"],"names":["PNotify","prototype","options","styling","stack_bottomright","dir1","dir2","firstpos1","firstpos2","scrollToTop","verticalOffset","element","$","offset","offsetTop","top","animate","scrollTop","each","this","is","get_data","url","callback","params","Pace","track","ajax","type","data","success","rep","status","pyrmin","notify","error","jq","message","post_data","load_data","method","start","JSON","parse","async","responseText","stop","load_data2","load_async_data","err","console","log","global_search_callback","js","load_res","src","msg","search","length","row","html","modal","id","window","e","constructor","version","datatype","jsonpCallback","cache","latest","pyrmin_vendors","datatables","nunjucks","momentjs","odometer","fileinput","chartjs","steps","icheck","chosen","swal","semantic","select","select2","add_vendor","vendors","Array","isArray","index","vendor","file","_","level","title","hide","text","addclass","stack","nonblock","nonblock_opacity","buttons","show_on_nonblock","remove","append","on","addClass","removeClass","switchModals","fromModal","toModal","css","off","confirm","icon","ok_function","ok_args","nok_function","nok_args","click","notice","closer","sticker","history","href","indexOf","get","target","document","ready","tooltip","submit","preventDefault","plugins","val","split","query"],"mappings":";AAEAA,QAAQC,UAAUC,QAAQC,QAAU,cACpCH,QAAQC,UAAUC,QAAQC,QAAU,aACpC,IAAIC,kBAAoB,CAACC,KAAQ,KAAMC,KAAQ,OAAQC,UAAa,GAAIC,UAAa,IAiUrF,SAASC,cACLC,eAA4C,oBAArB,eAAmCA,eAAiB,EAC3EC,QAAUC,EAAE,QACZC,OAASF,QAAQE,SACjBC,UAAYD,OAAOE,IACnBH,EAAE,cAAcI,QAAQ,CAACC,UAAWH,WAAY,IAAK,UAErDF,EAAE,UAAUM,KAAK,WACRN,EAAEO,MAAMC,GAAG,cACZP,OAASD,EAAEO,MAAMN,SACjBC,UAAYD,OAAOE,IACnBH,EAAEO,MAAMH,QAAQ,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C3H,EAAEM,KAAKmH,QAAS,SAAS1E,GACrBrB,UAAU,SAAW+F,QAAQ1E,GAAO,WAAaP,uBAAwB,CAACoF,MAAS5H,EAAE,iBAAiB0H","file":"pyrmin.min.js"}
\ No newline at end of file
{"version":3,"sources":["../../../src/js/pyrmin.js"],"names":["PNotify","prototype","options","styling","stack_bottomright","dir1","dir2","firstpos1","firstpos2","scrollToTop","verticalOffset","element","$","offset","offsetTop","top","animate","scrollTop","each","this","is","get_data","url","callback","params","Pace","track","ajax","type","data","success","rep","status","pyrmin","notify","error","jq","message","post_data","load_data","method","start","JSON","parse","async","responseText","stop","load_data2","load_async_data","err","console","log","global_search_callback","js","load_res","src","msg","search","length","row","html","modal","id","window","e","constructor","version","datatype","jsonpCallback","cache","latest","pyrmin_vendors","colorpicker","datatables","nunjucks","momentjs","odometer","fileinput","chartjs","steps","icheck","chosen","swal","semantic","select","select2","add_vendor","vendors","Array","isArray","index","vendor","file","_","level","title","hide","text","addclass","stack","nonblock","nonblock_opacity","buttons","show_on_nonblock","remove","append","on","addClass","removeClass","switchModals","fromModal","toModal","css","off","confirm","icon","ok_function","ok_args","nok_function","nok_args","click","notice","closer","sticker","history","href","indexOf","get","target","document","ready","tooltip","submit","preventDefault","plugins","val","split","query"],"mappings":";AAEAA,QAAQC,UAAUC,QAAQC,QAAU,cACpCH,QAAQC,UAAUC,QAAQC,QAAU,aACpC,IAAIC,kBAAoB,CAACC,KAAQ,KAAMC,KAAQ,OAAQC,UAAa,GAAIC,UAAa,IAkUrF,SAASC,cACLC,eAA4C,oBAArB,eAAmCA,eAAiB,EAC3EC,QAAUC,EAAE,QACZC,OAASF,QAAQE,SACjBC,UAAYD,OAAOE,IACnBH,EAAE,cAAcI,QAAQ,CAACC,UAAWH,WAAY,IAAK,UAErDF,EAAE,UAAUM,KAAK,WACRN,EAAEO,MAAMC,GAAG,cACZP,OAASD,EAAEO,MAAMN,SACjBC,UAAYD,OAAOE,IACnBH,EAAEO,MAAMH,QAAQ,CA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AEqE,iBACFC,QAAU1H,EAAE,uBAAuB2H,MAAMC,MAAM,KAC/C5H,EAAEM,KAAKoH,QAAS,SAAS3E,GACrBrB,UAAU,SAAWgG,QAAQ3E,GAAO,WAAaP,uBAAwB,CAACqF,MAAS7H,EAAE,iBAAiB2H","file":"pyrmin.min.js"}
\ No newline at end of file
/*! PyRmin.js 0.3.4 */
/*! PyRmin.js 0.4.0 */
function callback_store_list(s){$("#plugins_choice").html("<option></option>"),$("#plugins_choice").css("display","block"),$.each(s.plugins,function(a){$("#plugins_choice").append($("<option></option>").attr("value",s.plugins[a].url+"/repository/archive.tar.gz").text(s.plugins[a].name+" "+s.plugins[a].tags[0].name)),$("ul#plugins_list li").each(function(t){if($(this).attr("data-namespace").toLowerCase()===s.plugins[a].name.toLowerCase()){var e=s.plugins[a].tags[0].name.split(".").map(return2digit),n=$(this).attr("data-version").split(".").map(return2digit),l=parseInt(e,10)>parseInt(n,10)?"label-danger":"label-success";return $("#row_"+$(this).attr("data-namespace")+" .label-plugin-version").removeClass("label-info").addClass(l),!1}})})}function return2digit(t){return 1==t.length?"0"+t:t}$(document).ready(function(){pyrmin().add_vendor(["swal","select2","nunjucks","fileinput","chartjs","icheck"]),$("#settings_modal").on("show.bs.modal",function(t){var e=$(t.relatedTarget),n=e.data("namespace"),l=e.data("name")+" ("+n+")",a=$(this);a.find(".modal-title").text(l),a.find(".modal-body").empty(),config=pyrmin().get("/rest/settings/config/"+n).config,nunjucks.render("plugins/"+n+"/templates/settings.inc.html",{config:config},function(t,e){null===t?$("#settings_modal").find(".modal-body").html(e):$("#settings_modal").find(".modal-body").text(t)})}),$("#tar").fileinput({allowedFileExtensions:["tar.gz"]}),$("select").select2(),$("#install_btn").click(function(){var t=new FormData($("#install_form")[0]);if(mode=$("input[name='method']:checked").val(),"upload"===mode){if(0===$("#tar").get(0).files.length)return void $("#upload_form").addClass("has-error")}else if("url"===mode){if(""===$("#url").val())return void $("#url_form").addClass("has-error")}else if("store"===mode){if(""===$("#plugins_choice").val())return void $("#store_form_control").addClass("has-error");if($("#private_store_toggle").prop("checked")&&""===$("#store_token").val())return void $(".private_store_token").addClass("has-error")}$.ajax({url:"/rest/settings/install",type:"POST",data:t,cache:!1,contentType:!1,processData:!1,success:function(t,e){0===t.status?($("#install").modal("hide"),pyrmin().notify("success","OK","Plugin installed ! \n Please Reboot the Application")):pyrmin().notify("error","An error occur",t.error)},error:function(t,e){console.log(e),$("#install").modal("hide"),pyrmin().notify("error","An error occur","Response status code : "+e)}},"json")}),$("input[name='method']").on("ifChecked",function(t){$("#plugins_choice").css("display","none"),$("#upload_form").css("display","upload"===$(this).val()?"block":"none"),$("#url_form").css("display","url"===$(this).val()?"block":"none"),$("#store_form").css("display","store"===$(this).val()?"block":"none"),$("#install_btn").css("display","inline-block")}),$("#uninstall_btn").click(function(){plugin=$("#settings_modal .modal-title").html().split("(")[1].replace(")",""),swal({title:"Are you sure?",text:"Do you want to uninstall "+plugin+" plugins and all its files ?",type:"warning",showCancelButton:!0,confirmButtonColor:"#DD6B55",confirmButtonText:"Yes, delete it!",cancelButtonText:"Cancel",closeOnConfirm:!0,closeOnCancel:!0},function(t){t&&(data=pyrmin().get("/rest/settings/uninstall/"+plugin.toLowerCase()),console.log(data),0===data.status&&pyrmin().notify("success","Uninstall !",name+" plugin has been uninstalled."))})}),$("#reinstall_btn").click(function(){plugin=$("#settings_modal .modal-title").html().split("(")[1].replace(")",""),data=pyrmin().get("/rest/settings/reinstall/"+plugin.toLowerCase()),0===data.status?pyrmin().notify("success","Reinstall !",name+" plugin has been reinstalled."):pyrmin().notify("error","Cancelled","No action taken: "+data.error)}),$("#private_store_toggle").change(function(){$(".private_store").toggle(this.checked)}).change(),$(".icheck").iCheck({radioClass:"iradio_flat-blue"}),$("#login_btn").click(function(){var t=$("#store_token").val();""!==t?get_data(pyrmin().url+"/rest/download/plugins/?token="+t,callback_store_list):$(".private_store_token").addClass("has-error")}),get_data(pyrmin().url+"/rest/download/plugins/",callback_store_list)});
//# sourceMappingURL=settings.min.js.map
\ No newline at end of file
......@@ -6,8 +6,8 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
<!-- Pace -->
<link href="/vendor/pace/pace.css" rel="stylesheet" type="text/css" />
<script src="/vendor/pace/pace.js" type="text/javascript"></script>
<link href="/vendor/pace-progress/themes/blue/pace-theme-flash.css" rel="stylesheet" type="text/css" />
<script src="/vendor/pace-progress/pace.min.js" type="text/javascript"></script>
<!-- Favicon -->
<link rel="apple-touch-icon" sizes="180x180" href="/img/fav/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/img/fav/favicon-32x32.png">
......@@ -21,14 +21,15 @@
<!-- Bootstrap -->
<link href="/vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<!-- Font Awesome Icons -->
<link href="/vendor/fa/css/all.min.css" rel="stylesheet" type="text/css" />
<link href="/vendor/fontawesome-free/css/all.min.css" rel="stylesheet" type="text/css" />
<!-- Font-mfizz -->
<link href="/vendor/font-mfizz/font-mfizz.css" rel="stylesheet" type="text/css" />
<!-- Theme style -->
<link href="/css/AdminLTE.min.css" rel="stylesheet" type="text/css" />
<link href="/vendor/admin-lte/css/adminlte.min.css" rel="stylesheet" type="text/css" />
<!-- AdminLTE Skins. Choose a skin from the css/skins
folder instead of downloading all of them to reduce the load. -->
folder instead of downloading all of them to reduce the load.
<link href="/css/skins/_all-skins.min.css" rel="stylesheet" type="text/css" />
-->
<link href="/vendor/pnotify/pnotify.custom.min.css" media="all" rel="stylesheet" type="text/css" />
{% block css %}{% endblock %}
<link href="/css/pyrmin.min.css" rel="stylesheet" type="text/css" />
......@@ -39,66 +40,52 @@
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
<![endif]-->
</head>
<body class="skin-blue sidebar-mini {% if core.menu.minibar %}sidebar-open{% else %}sidebar-collapse{%- endif %}">
<!-- Site wrapper -->
<div id="mainwrapper" class="wrapper">
<!-- header logo: style can be found in header.less -->
<header class="main-header">
<a href="/" class="logo">
<span class="logo-mini"><img style="height: 40px;" alt="PyRmin" src="/img/pyrmin_inverted.svg"></span>
<span class="logo-lg"><img style="height: 40px;" alt="PyRmin" src="/img/pyrmin_inverted.svg"> Py<b>Rmin</b></span>
<!-- Navbar -->
<nav class="main-header navbar navbar-expand navbar-white navbar-light">
{% include 'navbar.html' %}
</nav>
<!-- /.navbar -->
<!-- Main Sidebar Container -->
<aside class="main-sidebar sidebar-dark-primary elevation-4">
<!-- Brand Logo -->
<a href="../../index3.html" class="brand-link">
<img style="height: 40px;"
src="/img/pyrmin_inverted.svg"
alt="PyRmin"
class="brand-image img-circle"
style="opacity: .8">
<span class="brand-text font-weight-light">Py<b>Rmin</b></span>
</a>
<!-- Header Navbar: style can be found in header.less -->
<nav class="navbar navbar-static-top" role="navigation">
<!-- Sidebar toggle button-->
<a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
<span class="sr-only">Toggle navigation</span>
<i class="fas fa-bars"></i>
</a>
{% include 'navbar.html' %}
</nav>
</header>
<!-- =============================================== -->
<!-- Left side column. contains the sidebar -->
<aside class="main-sidebar navbar-static-side">
<!-- sidebar: style can be found in sidebar.less -->
<section class="sidebar">
<div class="sidebar">
{% if core.user.auth %}
<!-- Sidebar user panel -->
<div class="user-panel">
<div class="pull-left image">
<div class="user-panel mt-3 pb-3 mb-3 d-flex">
<div class="image">
<img src="{{ core.user.img }}" class="img-circle" alt="User Image" />
</div>
<div class="pull-left info">
<div class="info">
<p>{{ core.user.displayname }}</p>
<a href="#"><i class="fa fa-circle text-success"></i> Online</a>
</div>
</div>
{% if core.search|length > 0 %}
<form action="#" method="get" id="searchform" class="sidebar-form">
<div class="input-group">
<input id="searchform_plugins" value="{{ core.search|join(',') }}" type="hidden">
<input id="searchform_q" name="searchform_q" class="form-control" placeholder="Global Search..." type="text">
<span class="input-group-btn">
<button type="submit" name="search" id="search-btn" class="btn btn-flat"><i class="fa fa-search"></i>
</button>
</span>
</div>
</form>
{%- endif %}
{%- endif %}
{% include 'menu.html' %}
</section>
</div>
<!-- /.sidebar -->
</aside>
<!-- =============================================== -->
<!-- Right side column. Contains the navbar and content of the page -->
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
......@@ -146,8 +133,9 @@
{% if core.user.auth %}{% include 'sidebar.html' %}{% endif %}
</div><!-- ./wrapper -->
<!-- jquery 3.1.1 -->
<!-- Popper -->
<script type="text/javascript" src="/vendor/popper/umd/popper.min.js"></script>
<!-- jQuery -->
<script>if (typeof module === 'object') {window.module = module; module = undefined;}</script>
<script type="text/javascript" src="/vendor/jquery/jquery.min.js"></script>
<script>if (window.module) module = window.module;</script>
......@@ -158,7 +146,7 @@
<!-- FastClick -->
<script type="text/javascript" src='/vendor/fastclick/fastclick.min.js'></script>
<!-- AdminLTE App -->
<script type="text/javascript" src="/js/AdminLTE.js"></script>
<script type="text/javascript" src="/vendor/admin-lte/js/adminlte.min.js"></script>
<!-- PNotify -->
<script type="text/javascript" src="/vendor/pnotify/pnotify.custom.min.js"></script>
<!-- pyRmin App -->
......
......@@ -8,8 +8,8 @@
<div id="welbg">
<div id="welbg-inner">
<section id="section1" class="hero container">
<div class="welcome_brand pull-left"><h1>PyRmin</h1></div>
<div class="welcome_logo pull-right">
<div class="welcome_brand"><h1>PyRmin</h1></div>
<div class="welcome_logo">
<img height=170 alt="PyRmin" title="PyRmin" src="/img/pyrmin_inverted.svg">
</div>
<ul class="action sixteen columns">
......
<!-- sidebar menu: : style can be found in sidebar.less -->
<ul class="sidebar-menu">
<li class="header">MAIN NAVIGATION</li>
<li class="treeview{% if active_page == "welcome" %} active{%- endif -%} ">
<a href="/">
<i class="fas fa-home"></i>
<span class="nav-label">Welcome</span>
</a>
</li>
{% for link in core.menu.content %}
{%- if link.childs -%}
<li class="treeview{% if active_page == "{{ link.active }}" %} active {%- endif -%}">
<a href="{{ link.href }}">
<i class="{{ link.icon }}"></i>
<span class="nav-label">{{ link.label }}</span>
<span class="pull-right-container">
<i class="fas fa-angle-left pull-right"></i>
</span>
</a>
<ul class="treeview-menu">
{% for child in link.childs %}
<li>
<a href="{{ child.href }}">
<i class="{{ child.icon }}"></i>
<span class="nav-label">{{ child.label }}</span>
{%- if child.childs -%}
<span class="pull-right-container">
<i class="fas fa-angle-left pull-right"></i>
</span>
</a>
<ul class="treeview-menu">
{% for schild in child.childs %}
<li>
<a href="{{ schild.href }}"><i class="{{ schild.icon }}"></i> {{ schild.label }}</a>
</li>
{% endfor %}
</ul>
{%- else -%}
</a>
{%- endif %}
</li>
{% endfor %}
</ul>
</li>
{%- else -%}
<li class="treeview{% if active_page == "{{ link.active }}" %} active{%- endif -%} ">
<a href="{{ link.href }}">
<i class="{{ link.icon }}"></i>
<span class="nav-label">{{ link.label }}</span>
</a>
</li>
{%- endif %}