init crater

This commit is contained in:
Mohit Panjwani
2019-11-11 12:16:00 +05:30
commit bdf2ba51d6
668 changed files with 158503 additions and 0 deletions

View File

@ -0,0 +1,40 @@
export default {
// EasyPieChart () {
// var elems = $('.easy-pie-chart')
// elems.each(function (index, element) {
// var color = $(this).data('color') ? $(this).data('color') : '#ffde00'
// let myBarChart = new EasyPieChart(element, {
// scaleColor: false,
// barColor: color,
// trackColor: '#f8f8f8',
// size: 80,
// onStep: function (from, to, percent) {
// $(this.el).find('.percent').text(Math.round(percent))
// }
// })
// })
// },
Editors () {
$('.ls-summernote').summernote()
var editor = $('.ls-simplemde')[0]
if (editor) {
var simplemde = new SimpleMDE({ element: editor })
}
},
initPlugins (plugins) {
plugins.forEach((plugin) => {
if (this.isFunction(this[plugin])) {
this[plugin]()
}
})
},
isFunction (functionToCheck) {
var getType = {}
return functionToCheck && getType.toString.call(functionToCheck) === '[object Function]'
}
}