Commit 78393860 authored by Recteur LP's avatar Recteur LP

Dev version 0.3.4-dev

parent fde40fd9
Pipeline #1229 passed with stages
in 10 minutes and 26 seconds
[bumpversion]
current_version = 0.3.3
current_version = 0.3.4-dev
commit = True
tag = True
tag_name = {new_version}
......
......@@ -26,7 +26,7 @@ module.exports = function(grunt) {
pyrmin: {
options: {
sourceMap: 'pyrmin.js.map',
banner: '/*! PyRmin.js 0.3.3 */'
banner: '/*! PyRmin.js 0.3.4 */'
},
files: {
'pyrmin/static/js/pyrmin.min.js': ['src/js/pyrmin.js'],
......@@ -37,7 +37,7 @@ module.exports = function(grunt) {
cssmin: {
pyrmin: {
options: {
banner: '/*! PyRmin.css 0.3.3 */'
banner: '/*! PyRmin.css 0.3.4 */'
},
files: {
'pyrmin/static/css/pyrmin.min.css': ['src/css/pyrmin.css'],
......
PyRmin 0.3.3
PyRmin 0.3.4
============
[![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.3"
__pyrmin_version__ = "0.3.4"
__namespace__ = "example_plugin"
__menu__ = {
"href": "/" + __namespace__,
......
......@@ -6,4 +6,4 @@ Result Format
.. code-block:: json
{ "version": "v0.3.3" }
{ "version": "v0.3.4" }
{
"name": "pyrmin",
"version": "0.3.3",
"version": "0.3.4",
"private": true,
"devDependencies": {
"grunt": "^1.0.2",
......
......@@ -3,7 +3,7 @@
# -*- coding: utf-8 -*-
#
# PyRmin:pyrmin
# Version 0.3.3
# Version 0.3.4
# Author: Pyrmin.io
import sys
......
......@@ -15,7 +15,7 @@ import sys
from pygments import formatters, lexers
__version__ = "0.3.3"
__version__ = "0.3.4"
def error(self, msg='', context='', severity=logging.INFO, traceback=False):
......
This diff is collapsed.
/*! PyRmin.js 0.3.3 */
/*! PyRmin.js 0.3.4 */
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
......@@ -158,7 +158,7 @@
</div><!-- /.form-group -->
<div style="clear: both; margin-top: 100px;">
<b id="current_version">Version 0.3.3</b> <span id="checkversion"><i class="fa fa-question-circle"></i></span>
<b id="current_version">Version 0.3.4</b> <span id="checkversion"><i class="fa fa-question-circle"></i></span>
</div>
{% endif %}
......
// PyRmin 0.3.3 JS Source File
// PyRmin 0.3.4 JS Source File
PNotify.prototype.options.styling = "fontawesome";
PNotify.prototype.options.styling = "bootstrap3";
......@@ -65,7 +65,7 @@ pyrmin.prototype.version = function(version) {
});
}
else {
return '0.3.3';
return '0.3.4';
}
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment