Added views for QOR admin
This commit is contained in:
10
app/views/qor/assets/javascripts/vendors/cropper.min.js
vendored
Normal file
10
app/views/qor/assets/javascripts/vendors/cropper.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
2
app/views/qor/assets/javascripts/vendors/jquery.min.js
vendored
Normal file
2
app/views/qor/assets/javascripts/vendors/jquery.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
7
app/views/qor/assets/javascripts/vendors/jquery.timepicker.min.js
vendored
Normal file
7
app/views/qor/assets/javascripts/vendors/jquery.timepicker.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
9
app/views/qor/assets/javascripts/vendors/material.min.js
vendored
Normal file
9
app/views/qor/assets/javascripts/vendors/material.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
7
app/views/qor/assets/javascripts/vendors/moment.min.js
vendored
Normal file
7
app/views/qor/assets/javascripts/vendors/moment.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
app/views/qor/assets/javascripts/vendors/mustache.min.js
vendored
Normal file
1
app/views/qor/assets/javascripts/vendors/mustache.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
7
app/views/qor/assets/javascripts/vendors/redactor.min.js
vendored
Normal file
7
app/views/qor/assets/javascripts/vendors/redactor.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
10
app/views/qor/assets/javascripts/vendors/redactor.source.min.js
vendored
Normal file
10
app/views/qor/assets/javascripts/vendors/redactor.source.min.js
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
/*
|
||||
Redactor Plugins
|
||||
|
||||
This plugin allows users to look through and edit text's HTML source code.
|
||||
Developers may extend and enhance this plugin to bring even more HTML-related source code features to the users.
|
||||
This plugin is only compatible with Redactor II 1.0.1 or higher.
|
||||
|
||||
https://imperavi.com/redactor/plugins/source/
|
||||
*/
|
||||
!function(t){t.Redactor.prototype.source=function(){return{init:function(){var e=this.button.addFirst("html","HTML");this.button.addCallback(e,this.source.toggle);var s={width:"100%",margin:"0",background:"#111","box-sizing":"border-box",color:"rgba(255, 255, 255, .8)","font-size":"14px",outline:"none",padding:"16px","line-height":"22px","font-family":'Menlo, Monaco, Consolas, "Courier New", monospace'};this.source.$textarea=t("<textarea />"),this.source.$textarea.css(s).hide(),"textarea"===this.opts.type?this.core.box().append(this.source.$textarea):this.core.box().after(this.source.$textarea),this.core.element().on("destroy.callback.redactor",t.proxy(function(){this.source.$textarea.remove()},this))},toggle:function(){return this.source.$textarea.hasClass("open")?this.source.hide():this.source.show()},setCaretOnShow:function(){this.source.offset=this.offset.get();t(window).scrollTop(),this.core.editor().innerWidth(),this.core.editor().innerHeight();this.source.start=0,this.source.end=0;var e=t("<div/>").append(t.parseHTML(this.core.editor().html(),document,!0)),s=e.find("span.redactor-selection-marker");if(s.length>0){var r=e.html().replace(/&/g,"&");1===s.length?(this.source.start=this.utils.strpos(r,e.find("#selection-marker-1").prop("outerHTML")),this.source.end=this.source.start):2===s.length&&(this.source.start=this.utils.strpos(r,e.find("#selection-marker-1").prop("outerHTML")),this.source.end=this.utils.strpos(r,e.find("#selection-marker-2").prop("outerHTML"))-e.find("#selection-marker-1").prop("outerHTML").toString().length)}},setCaretOnHide:function(t){if(this.source.start=this.source.$textarea.get(0).selectionStart,this.source.end=this.source.$textarea.get(0).selectionEnd,this.source.start>this.source.end&&this.source.end>0){var e=this.source.end,s=this.source.start;this.source.start=e,this.source.end=s}if(this.source.start=this.source.enlargeOffset(t,this.source.start),this.source.end=this.source.enlargeOffset(t,this.source.end),t=t.substr(0,this.source.start)+this.marker.html(1)+t.substr(this.source.start),this.source.end>this.source.start){var r=this.marker.html(1).toString().length;t=t.substr(0,this.source.end+r)+this.marker.html(2)+t.substr(this.source.end+r)}return t},hide:function(){this.source.$textarea.removeClass("open").hide(),this.source.$textarea.off(".redactor-source");var t=this.source.$textarea.val();t=this.paragraphize.load(t),t=this.source.setCaretOnHide(t),this.code.start(t),this.button.enableAll(),this.core.editor().show().focus(),this.selection.restore()},show:function(){this.selection.save(),this.source.setCaretOnShow();var e=this.core.editor().innerHeight(),s=this.code.get();s=s.replace(/\n\n\n/g,"\n"),s=s.replace(/\n\n/g,"\n"),this.core.editor().hide(),this.button.disableAll("html"),this.source.$textarea.val(s).height(e).addClass("open").show(),this.source.$textarea.on("keyup.redactor-source",t.proxy(function(){"textarea"===this.opts.type&&this.core.textarea().val(this.source.$textarea.val())},this)),this.marker.remove(),t(window).scrollTop(scroll),this.source.$textarea[0].setSelectionRange&&this.source.$textarea[0].setSelectionRange(this.source.start,this.source.end),this.source.$textarea[0].scrollTop=0,setTimeout(t.proxy(function(){this.source.$textarea.focus()},this),0)},enlargeOffset:function(t,e){var s=t.length,r=0;if(">"===t[e])r++;else for(var o=e;s>=o&&(r++,">"!==t[o]);o++)if("<"===t[o]||o===s){r=0;break}return e+r}}}}(jQuery);
|
||||
1
app/views/qor/assets/javascripts/vendors/select2.min.js
vendored
Normal file
1
app/views/qor/assets/javascripts/vendors/select2.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
6
app/views/qor/assets/javascripts/vendors/underscore.min.js
vendored
Normal file
6
app/views/qor/assets/javascripts/vendors/underscore.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user