⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.1
Server IP:
185.238.29.86
Server:
Linux server2 6.8.12-6-pve #1 SMP PREEMPT_DYNAMIC PMX 6.8.12-6 (2024-12-19T19:05Z) x86_64
Server Software:
nginx/1.18.0
PHP Version:
8.1.31
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
var
/
www
/
work
/
public
/
themes
/
admin
/
js
/
View File Name :
app.js
/** * We'll load jQuery and the Bootstrap jQuery plugin which provides support * for JavaScript based Bootstrap features such as modals and tabs. This * code may be modified to fit the specific needs of your application. */ try { $.ajaxSetup({ headers: { 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') } }); } catch (e) { console.log(e); } //window.ClassicEditor = require('../../ckeditor'); // window.ClassicEditor = require('@ckeditor/ckeditor5-build-classic'); // console.log(ClassicEditor); // console.log(ClassicEditor); require('../module/media/admin/js/browser'); require('./_condition'); require('./_base'); require('./_form'); require('./_menu'); require('./_notification'); import TemplateDetail from '../module/template/admin/detail.js'; import TemplateLiveEditor from '../module/template/admin/live/index.js'; import MediaManagement from '../module/media/admin/js/media-management'; import CourseLectures from '../module/course/admin/lectures.js'; // Template if (document.getElementById('media-management')) { MediaManagement(); } if (document.getElementById('live-editor')) { TemplateLiveEditor(); } // Template if (document.getElementById('booking-core-template-detail')) { TemplateDetail(); } $(document).on('hidden.bs.modal', '.modal', function () { $('.modal:visible').length && $(document.body).addClass('modal-open'); }); // Template if(document.getElementById('lecture_management')){ CourseLectures(); } window.bookingCoreApp = { showSuccess: function (configs) { var args = {}; if (typeof configs == 'object') { args = configs; } else { args.message = configs; } if (!args.title) { args.title = i18n.success; } args.centerVertical = true; bootbox.alert(args); }, showError: function (configs) { var args = {}; if (typeof configs == 'object') { args = configs; } else { args.message = configs; } if (!args.title) { args.title = i18n.warning; } args.centerVertical = true; bootbox.alert(args); }, showAjaxError: function (e) { var json = e.responseJSON; if (typeof json != 'undefined') { if (typeof json.errors != 'undefined') { var html = ''; _.forEach(json.errors, function (val) { html += val + '<br>'; }); return this.showError(html); } if (json.message) { return this.showError(json.message); } } if (e.responseText) { return this.showError(e.responseText); } }, showAjaxMessage: function (json) { if (json.message) { if (json.status) { this.showSuccess(json); } else { this.showError(json); } } }, showConfirm: function (configs) { var args = {}; if (typeof configs == 'object') { args = configs; } args.buttons = { confirm: { label: '<i class="fa fa-check"></i> ' + i18n.confirm, }, cancel: { label: '<i class="fa fa-times"></i> ' + i18n.cancel, } } args.centerVertical = true; bootbox.confirm(args); }, };