This repository has been archived by the owner on Sep 11, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 352
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
49 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,102 +1,64 @@ | ||
this["MediumInsert"] = this["MediumInsert"] || {}; | ||
this["MediumInsert"]["Templates"] = this["MediumInsert"]["Templates"] || {}; | ||
|
||
this["MediumInsert"]["Templates"]["src/js/templates/core-buttons.hbs"] = Handlebars.template(function (Handlebars,depth0,helpers,partials,data) { | ||
this.compilerInfo = [4,'>= 1.0.0']; | ||
helpers = this.merge(helpers, Handlebars.helpers); data = data || {}; | ||
var buffer = "", stack1, functionType="function", escapeExpression=this.escapeExpression, self=this; | ||
|
||
function program1(depth0,data) { | ||
|
||
var buffer = "", stack1, helper; | ||
buffer += "\n <li><a data-addon=\"" | ||
+ escapeExpression(((stack1 = (data == null || data === false ? data : data.key)),typeof stack1 === functionType ? stack1.apply(depth0) : stack1)) | ||
this["MediumInsert"]["Templates"]["src/js/templates/core-buttons.hbs"] = Handlebars.template({"1":function(depth0,helpers,partials,data) { | ||
var stack1, helper, lambda=this.lambda, escapeExpression=this.escapeExpression, functionType="function", helperMissing=helpers.helperMissing, buffer = " <li><a data-addon=\"" | ||
+ escapeExpression(lambda((data && data.key), depth0)) | ||
+ "\" data-action=\"add\" class=\"medium-insert-action\">"; | ||
if (helper = helpers.label) { stack1 = helper.call(depth0, {hash:{},data:data}); } | ||
else { helper = (depth0 && depth0.label); stack1 = typeof helper === functionType ? helper.call(depth0, {hash:{},data:data}) : helper; } | ||
if(stack1 || stack1 === 0) { buffer += stack1; } | ||
buffer += "</a></li>\n "; | ||
return buffer; | ||
} | ||
|
||
buffer += "<div class=\"medium-insert-buttons\" contenteditable=\"false\" style=\"display: none\">\n <a class=\"medium-insert-buttons-show\">+</a>\n <ul class=\"medium-insert-buttons-addons\" style=\"display: none\">\n "; | ||
stack1 = helpers.each.call(depth0, (depth0 && depth0.addons), {hash:{},inverse:self.noop,fn:self.program(1, program1, data),data:data}); | ||
if(stack1 || stack1 === 0) { buffer += stack1; } | ||
buffer += "\n </ul>\n</div>\n"; | ||
return buffer; | ||
}); | ||
stack1 = ((helper = (helper = helpers.label || (depth0 != null ? depth0.label : depth0)) != null ? helper : helperMissing),(typeof helper === functionType ? helper.call(depth0, {"name":"label","hash":{},"data":data}) : helper)); | ||
if (stack1 != null) { buffer += stack1; } | ||
return buffer + "</a></li>\n"; | ||
},"compiler":[6,">= 2.0.0-beta.1"],"main":function(depth0,helpers,partials,data) { | ||
var stack1, buffer = "<div class=\"medium-insert-buttons\" contenteditable=\"false\" style=\"display: none\">\n <a class=\"medium-insert-buttons-show\">+</a>\n <ul class=\"medium-insert-buttons-addons\" style=\"display: none\">\n"; | ||
stack1 = helpers.each.call(depth0, (depth0 != null ? depth0.addons : depth0), {"name":"each","hash":{},"fn":this.program(1, data),"inverse":this.noop,"data":data}); | ||
if (stack1 != null) { buffer += stack1; } | ||
return buffer + " </ul>\n</div>\n"; | ||
},"useData":true}); | ||
|
||
this["MediumInsert"]["Templates"]["src/js/templates/core-empty-line.hbs"] = Handlebars.template(function (Handlebars,depth0,helpers,partials,data) { | ||
this.compilerInfo = [4,'>= 1.0.0']; | ||
helpers = this.merge(helpers, Handlebars.helpers); data = data || {}; | ||
|
||
|
||
|
||
this["MediumInsert"]["Templates"]["src/js/templates/core-empty-line.hbs"] = Handlebars.template({"compiler":[6,">= 2.0.0-beta.1"],"main":function(depth0,helpers,partials,data) { | ||
return "<p><br></p>\n"; | ||
}); | ||
},"useData":true}); | ||
|
||
this["MediumInsert"]["Templates"]["src/js/templates/images-fileupload.hbs"] = Handlebars.template(function (Handlebars,depth0,helpers,partials,data) { | ||
this.compilerInfo = [4,'>= 1.0.0']; | ||
helpers = this.merge(helpers, Handlebars.helpers); data = data || {}; | ||
|
||
|
||
|
||
this["MediumInsert"]["Templates"]["src/js/templates/images-fileupload.hbs"] = Handlebars.template({"compiler":[6,">= 2.0.0-beta.1"],"main":function(depth0,helpers,partials,data) { | ||
return "<input type=\"file\" multiple>"; | ||
}); | ||
},"useData":true}); | ||
|
||
this["MediumInsert"]["Templates"]["src/js/templates/images-image.hbs"] = Handlebars.template(function (Handlebars,depth0,helpers,partials,data) { | ||
this.compilerInfo = [4,'>= 1.0.0']; | ||
helpers = this.merge(helpers, Handlebars.helpers); data = data || {}; | ||
var buffer = "", stack1, helper, functionType="function", escapeExpression=this.escapeExpression; | ||
|
||
|
||
buffer += "<figure contenteditable=\"false\"><img src=\""; | ||
if (helper = helpers.img) { stack1 = helper.call(depth0, {hash:{},data:data}); } | ||
else { helper = (depth0 && depth0.img); stack1 = typeof helper === functionType ? helper.call(depth0, {hash:{},data:data}) : helper; } | ||
buffer += escapeExpression(stack1) | ||
this["MediumInsert"]["Templates"]["src/js/templates/images-image.hbs"] = Handlebars.template({"compiler":[6,">= 2.0.0-beta.1"],"main":function(depth0,helpers,partials,data) { | ||
var helper, functionType="function", helperMissing=helpers.helperMissing, escapeExpression=this.escapeExpression; | ||
return "<figure contenteditable=\"false\"><img src=\"" | ||
+ escapeExpression(((helper = (helper = helpers.img || (depth0 != null ? depth0.img : depth0)) != null ? helper : helperMissing),(typeof helper === functionType ? helper.call(depth0, {"name":"img","hash":{},"data":data}) : helper))) | ||
+ "\" alt=\"\"></figure>"; | ||
return buffer; | ||
}); | ||
},"useData":true}); | ||
|
||
this["MediumInsert"]["Templates"]["src/js/templates/images-progressbar.hbs"] = Handlebars.template(function (Handlebars,depth0,helpers,partials,data) { | ||
this.compilerInfo = [4,'>= 1.0.0']; | ||
helpers = this.merge(helpers, Handlebars.helpers); data = data || {}; | ||
|
||
|
||
|
||
this["MediumInsert"]["Templates"]["src/js/templates/images-progressbar.hbs"] = Handlebars.template({"compiler":[6,">= 2.0.0-beta.1"],"main":function(depth0,helpers,partials,data) { | ||
return "<progress min=\"0\" max=\"100\" value=\"0\">0</progress>"; | ||
}); | ||
|
||
this["MediumInsert"]["Templates"]["src/js/templates/images-toolbar.hbs"] = Handlebars.template(function (Handlebars,depth0,helpers,partials,data) { | ||
this.compilerInfo = [4,'>= 1.0.0']; | ||
helpers = this.merge(helpers, Handlebars.helpers); data = data || {}; | ||
var buffer = "", stack1, functionType="function", escapeExpression=this.escapeExpression, self=this; | ||
|
||
function program1(depth0,data) { | ||
|
||
var buffer = "", stack1; | ||
buffer += "\n "; | ||
stack1 = helpers['if'].call(depth0, (depth0 && depth0.label), {hash:{},inverse:self.noop,fn:self.program(2, program2, data),data:data}); | ||
if(stack1 || stack1 === 0) { buffer += stack1; } | ||
buffer += "\n "; | ||
return buffer; | ||
} | ||
function program2(depth0,data) { | ||
|
||
var buffer = "", stack1, helper; | ||
buffer += "\n <li>\n <button class=\"medium-editor-action\" data-action=\"" | ||
+ escapeExpression(((stack1 = (data == null || data === false ? data : data.key)),typeof stack1 === functionType ? stack1.apply(depth0) : stack1)) | ||
+ "\">"; | ||
if (helper = helpers.label) { stack1 = helper.call(depth0, {hash:{},data:data}); } | ||
else { helper = (depth0 && depth0.label); stack1 = typeof helper === functionType ? helper.call(depth0, {hash:{},data:data}) : helper; } | ||
if(stack1 || stack1 === 0) { buffer += stack1; } | ||
buffer += "</button>\n </li>\n "; | ||
return buffer; | ||
} | ||
},"useData":true}); | ||
|
||
|
||
buffer += "<div class=\"medium-insert-images-toolbar medium-editor-toolbar medium-toolbar-arrow-under medium-editor-toolbar-active\">\n <ul class=\"medium-editor-toolbar-actions clearfix\">\n "; | ||
stack1 = helpers.each.call(depth0, (depth0 && depth0.styles), {hash:{},inverse:self.noop,fn:self.program(1, program1, data),data:data}); | ||
if(stack1 || stack1 === 0) { buffer += stack1; } | ||
buffer += "\n </ul>\n</div>"; | ||
|
||
this["MediumInsert"]["Templates"]["src/js/templates/images-toolbar.hbs"] = Handlebars.template({"1":function(depth0,helpers,partials,data) { | ||
var stack1, buffer = ""; | ||
stack1 = helpers['if'].call(depth0, (depth0 != null ? depth0.label : depth0), {"name":"if","hash":{},"fn":this.program(2, data),"inverse":this.noop,"data":data}); | ||
if (stack1 != null) { buffer += stack1; } | ||
return buffer; | ||
}); | ||
},"2":function(depth0,helpers,partials,data) { | ||
var stack1, helper, lambda=this.lambda, escapeExpression=this.escapeExpression, functionType="function", helperMissing=helpers.helperMissing, buffer = " <li>\n <button class=\"medium-editor-action\" data-action=\"" | ||
+ escapeExpression(lambda((data && data.key), depth0)) | ||
+ "\">"; | ||
stack1 = ((helper = (helper = helpers.label || (depth0 != null ? depth0.label : depth0)) != null ? helper : helperMissing),(typeof helper === functionType ? helper.call(depth0, {"name":"label","hash":{},"data":data}) : helper)); | ||
if (stack1 != null) { buffer += stack1; } | ||
return buffer + "</button>\n </li>\n"; | ||
},"compiler":[6,">= 2.0.0-beta.1"],"main":function(depth0,helpers,partials,data) { | ||
var stack1, buffer = "<div class=\"medium-insert-images-toolbar medium-editor-toolbar medium-toolbar-arrow-under medium-editor-toolbar-active\">\n <ul class=\"medium-editor-toolbar-actions clearfix\">\n"; | ||
stack1 = helpers.each.call(depth0, (depth0 != null ? depth0.styles : depth0), {"name":"each","hash":{},"fn":this.program(1, data),"inverse":this.noop,"data":data}); | ||
if (stack1 != null) { buffer += stack1; } | ||
return buffer + " </ul>\n</div>"; | ||
},"useData":true}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters