Initial Commit
The initial public commit of MVGL website code.
This commit is contained in:
commit
b39ecf1638
2043 changed files with 215154 additions and 0 deletions
21
public/.htaccess
Normal file
21
public/.htaccess
Normal file
|
@ -0,0 +1,21 @@
|
|||
<IfModule mod_rewrite.c>
|
||||
<IfModule mod_negotiation.c>
|
||||
Options -MultiViews -Indexes
|
||||
</IfModule>
|
||||
|
||||
RewriteEngine On
|
||||
|
||||
# Handle Authorization Header
|
||||
RewriteCond %{HTTP:Authorization} .
|
||||
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
|
||||
|
||||
# Redirect Trailing Slashes If Not A Folder...
|
||||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
RewriteCond %{REQUEST_URI} (.+)/$
|
||||
RewriteRule ^ %1 [L,R=301]
|
||||
|
||||
# Send Requests To Front Controller...
|
||||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
RewriteRule ^ index.php [L]
|
||||
</IfModule>
|
0
public/favicon.ico
Normal file
0
public/favicon.ico
Normal file
24
public/icon_replacement.txt
Normal file
24
public/icon_replacement.txt
Normal file
|
@ -0,0 +1,24 @@
|
|||
150-1.jpg - 300-6.jpg
|
||||
150-2.jpg - 300-1.jpg
|
||||
150-3.jpg - 300-2.jpg
|
||||
150-4.jpg - 300-5.jpg
|
||||
150-5.jpg - 300-20.jpg
|
||||
150-6.jpg - 300-23.jpg
|
||||
150-7.jpg - 300-12.jpg
|
||||
150-8.jpg - 300-9.jpg
|
||||
150-9.jpg - 300-10.jpg
|
||||
150-10.jpg - 300-21.jpg
|
||||
150-11.jpg - 300-14.jpg
|
||||
150-12.jpg - 300-11.jpg
|
||||
150-13.jpg - 300-7.jpg
|
||||
150-14.jpg - 300-4.jpg
|
||||
150-15.jpg - 300-25.jpg
|
||||
150-16.jpg - 300-8.jpg
|
||||
150-17.jpg - 300-13.jpg
|
||||
150-18.jpg - 300-15.jpg
|
||||
150-19.jpg - 300-24.jpg
|
||||
150-20.jpg - 300-3.jpg
|
||||
150-21.jpg - 300-17.jpg
|
||||
150-24.jpg - 300-19.jpg
|
||||
150-25.jpg - 300-2.jpg
|
||||
150-26.jpg - 300-1.jpg
|
55
public/index.php
Normal file
55
public/index.php
Normal file
|
@ -0,0 +1,55 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Contracts\Http\Kernel;
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
define('LARAVEL_START', microtime(true));
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Check If Application Is Under Maintenance
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| If the application is maintenance / demo mode via the "down" command we
|
||||
| will require this file so that any prerendered template can be shown
|
||||
| instead of starting the framework, which could cause an exception.
|
||||
|
|
||||
*/
|
||||
|
||||
if (file_exists(__DIR__.'/../storage/framework/maintenance.php')) {
|
||||
require __DIR__.'/../storage/framework/maintenance.php';
|
||||
}
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Register The Auto Loader
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Composer provides a convenient, automatically generated class loader for
|
||||
| this application. We just need to utilize it! We'll simply require it
|
||||
| into the script here so we don't need to manually load our classes.
|
||||
|
|
||||
*/
|
||||
|
||||
require __DIR__.'/../vendor/autoload.php';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Run The Application
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Once we have the application, we can handle the incoming request using
|
||||
| the application's HTTP kernel. Then, we will send the response back
|
||||
| to this client's browser, allowing them to enjoy our application.
|
||||
|
|
||||
*/
|
||||
|
||||
$app = require_once __DIR__.'/../bootstrap/app.php';
|
||||
|
||||
$kernel = $app->make(Kernel::class);
|
||||
|
||||
$response = tap($kernel->handle(
|
||||
$request = Request::capture()
|
||||
))->send();
|
||||
|
||||
$kernel->terminate($request, $response);
|
110
public/mix-manifest.json
Normal file
110
public/mix-manifest.json
Normal file
|
@ -0,0 +1,110 @@
|
|||
{
|
||||
"/demo1/plugins/custom/cookiealert/cookiealert.bundle.js": "/demo1/plugins/custom/cookiealert/cookiealert.bundle.js",
|
||||
"/demo1/plugins/custom/cropper/cropper.bundle.js": "/demo1/plugins/custom/cropper/cropper.bundle.js",
|
||||
"/demo1/plugins/custom/draggable/draggable.bundle.js": "/demo1/plugins/custom/draggable/draggable.bundle.js",
|
||||
"/demo1/plugins/custom/flotcharts/flotcharts.bundle.js": "/demo1/plugins/custom/flotcharts/flotcharts.bundle.js",
|
||||
"/demo1/plugins/custom/fslightbox/fslightbox.bundle.js": "/demo1/plugins/custom/fslightbox/fslightbox.bundle.js",
|
||||
"/demo1/plugins/custom/jkanban/jkanban.bundle.js": "/demo1/plugins/custom/jkanban/jkanban.bundle.js",
|
||||
"/demo1/plugins/custom/jstree/jstree.bundle.js": "/demo1/plugins/custom/jstree/jstree.bundle.js",
|
||||
"/demo1/plugins/custom/prismjs/prismjs.bundle.js": "/demo1/plugins/custom/prismjs/prismjs.bundle.js",
|
||||
"/demo1/plugins/custom/tiny-slider/tiny-slider.bundle.js": "/demo1/plugins/custom/tiny-slider/tiny-slider.bundle.js",
|
||||
"/demo1/plugins/custom/typedjs/typedjs.bundle.js": "/demo1/plugins/custom/typedjs/typedjs.bundle.js",
|
||||
"/demo1/js/custom/account/api-keys/api-keys.js": "/demo1/js/custom/account/api-keys/api-keys.js",
|
||||
"/demo1/js/custom/account/orders/classic.js": "/demo1/js/custom/account/orders/classic.js",
|
||||
"/demo1/js/custom/account/security/license-usage.js": "/demo1/js/custom/account/security/license-usage.js",
|
||||
"/demo1/js/custom/account/security/security-summary.js": "/demo1/js/custom/account/security/security-summary.js",
|
||||
"/demo1/js/custom/account/settings/deactivate-account.js": "/demo1/js/custom/account/settings/deactivate-account.js",
|
||||
"/demo1/js/custom/account/settings/overview.js": "/demo1/js/custom/account/settings/overview.js",
|
||||
"/demo1/js/custom/apps/calendar/calendar.js": "/demo1/js/custom/apps/calendar/calendar.js",
|
||||
"/demo1/js/custom/apps/chat/chat.js": "/demo1/js/custom/apps/chat/chat.js",
|
||||
"/demo1/js/custom/apps/inbox/compose.js": "/demo1/js/custom/apps/inbox/compose.js",
|
||||
"/demo1/js/custom/apps/inbox/listing.js": "/demo1/js/custom/apps/inbox/listing.js",
|
||||
"/demo1/js/custom/apps/inbox/reply.js": "/demo1/js/custom/apps/inbox/reply.js",
|
||||
"/demo1/js/custom/apps/invoices/create.js": "/demo1/js/custom/apps/invoices/create.js",
|
||||
"/demo1/js/custom/apps/subscriptions/add/advanced.js": "/demo1/js/custom/apps/subscriptions/add/advanced.js",
|
||||
"/demo1/js/custom/apps/subscriptions/add/customer-select.js": "/demo1/js/custom/apps/subscriptions/add/customer-select.js",
|
||||
"/demo1/js/custom/apps/subscriptions/add/products.js": "/demo1/js/custom/apps/subscriptions/add/products.js",
|
||||
"/demo1/js/custom/apps/subscriptions/list/export.js": "/demo1/js/custom/apps/subscriptions/list/export.js",
|
||||
"/demo1/js/custom/apps/subscriptions/list/list.js": "/demo1/js/custom/apps/subscriptions/list/list.js",
|
||||
"/demo1/js/custom/apps/support-center/tickets/create.js": "/demo1/js/custom/apps/support-center/tickets/create.js",
|
||||
"/demo1/js/custom/apps/user-management/permissions/add-permission.js": "/demo1/js/custom/apps/user-management/permissions/add-permission.js",
|
||||
"/demo1/js/custom/apps/user-management/permissions/list.js": "/demo1/js/custom/apps/user-management/permissions/list.js",
|
||||
"/demo1/js/custom/apps/user-management/permissions/update-permission.js": "/demo1/js/custom/apps/user-management/permissions/update-permission.js",
|
||||
"/demo1/js/custom/apps/user-management/roles/list/add.js": "/demo1/js/custom/apps/user-management/roles/list/add.js",
|
||||
"/demo1/js/custom/apps/user-management/roles/list/update-role.js": "/demo1/js/custom/apps/user-management/roles/list/update-role.js",
|
||||
"/demo1/js/custom/apps/user-management/roles/view/update-role.js": "/demo1/js/custom/apps/user-management/roles/view/update-role.js",
|
||||
"/demo1/js/custom/apps/user-management/roles/view/view.js": "/demo1/js/custom/apps/user-management/roles/view/view.js",
|
||||
"/demo1/js/custom/apps/user-management/users/list/add.js": "/demo1/js/custom/apps/user-management/users/list/add.js",
|
||||
"/demo1/js/custom/apps/user-management/users/list/export-users.js": "/demo1/js/custom/apps/user-management/users/list/export-users.js",
|
||||
"/demo1/js/custom/apps/user-management/users/list/table.js": "/demo1/js/custom/apps/user-management/users/list/table.js",
|
||||
"/demo1/js/custom/apps/user-management/users/view/add-auth-app.js": "/demo1/js/custom/apps/user-management/users/view/add-auth-app.js",
|
||||
"/demo1/js/custom/apps/user-management/users/view/add-one-time-password.js": "/demo1/js/custom/apps/user-management/users/view/add-one-time-password.js",
|
||||
"/demo1/js/custom/apps/user-management/users/view/add-schedule.js": "/demo1/js/custom/apps/user-management/users/view/add-schedule.js",
|
||||
"/demo1/js/custom/apps/user-management/users/view/add-task.js": "/demo1/js/custom/apps/user-management/users/view/add-task.js",
|
||||
"/demo1/js/custom/apps/user-management/users/view/update-details.js": "/demo1/js/custom/apps/user-management/users/view/update-details.js",
|
||||
"/demo1/js/custom/apps/user-management/users/view/update-email.js": "/demo1/js/custom/apps/user-management/users/view/update-email.js",
|
||||
"/demo1/js/custom/apps/user-management/users/view/update-password.js": "/demo1/js/custom/apps/user-management/users/view/update-password.js",
|
||||
"/demo1/js/custom/apps/user-management/users/view/update-role.js": "/demo1/js/custom/apps/user-management/users/view/update-role.js",
|
||||
"/demo1/js/custom/apps/user-management/users/view/view.js": "/demo1/js/custom/apps/user-management/users/view/view.js",
|
||||
"/demo1/js/custom/pages/pricing/general.js": "/demo1/js/custom/pages/pricing/general.js",
|
||||
"/demo1/js/custom/pages/user-profile/followers.js": "/demo1/js/custom/pages/user-profile/followers.js",
|
||||
"/demo1/js/custom/utilities/modals/bidding.js": "/demo1/js/custom/utilities/modals/bidding.js",
|
||||
"/demo1/js/custom/utilities/modals/create-account.js": "/demo1/js/custom/utilities/modals/create-account.js",
|
||||
"/demo1/js/custom/utilities/modals/create-api-key.js": "/demo1/js/custom/utilities/modals/create-api-key.js",
|
||||
"/demo1/js/custom/utilities/modals/create-project.js": "/demo1/js/custom/utilities/modals/create-project.js",
|
||||
"/demo1/js/custom/utilities/modals/two-factor-authentication.js": "/demo1/js/custom/utilities/modals/two-factor-authentication.js",
|
||||
"/demo1/js/custom/utilities/modals/upgrade-plan.js": "/demo1/js/custom/utilities/modals/upgrade-plan.js",
|
||||
"/demo1/js/custom/utilities/modals/users-search.js": "/demo1/js/custom/utilities/modals/users-search.js",
|
||||
"/demo1/js/custom/utilities/search/horizontal.js": "/demo1/js/custom/utilities/search/horizontal.js",
|
||||
"/demo1/js/custom/intro.js": "/demo1/js/custom/intro.js",
|
||||
"/demo1/js/custom/landing.js": "/demo1/js/custom/landing.js",
|
||||
"/demo1/plugins/global/plugins.bundle.css": "/demo1/plugins/global/plugins.bundle.css",
|
||||
"/demo1/plugins/custom/datatables/datatables.bundle.css": "/demo1/plugins/custom/datatables/datatables.bundle.css",
|
||||
"/demo1/plugins/custom/cropper/cropper.bundle.css": "/demo1/plugins/custom/cropper/cropper.bundle.css",
|
||||
"/demo1/plugins/custom/cookiealert/cookiealert.bundle.css": "/demo1/plugins/custom/cookiealert/cookiealert.bundle.css",
|
||||
"/demo1/plugins/custom/tiny-slider/tiny-slider.bundle.css": "/demo1/plugins/custom/tiny-slider/tiny-slider.bundle.css",
|
||||
"/demo1/plugins/custom/prismjs/prismjs.bundle.css": "/demo1/plugins/custom/prismjs/prismjs.bundle.css",
|
||||
"/demo1/plugins/custom/jstree/jstree.bundle.css": "/demo1/plugins/custom/jstree/jstree.bundle.css",
|
||||
"/demo1/plugins/custom/jkanban/jkanban.bundle.css": "/demo1/plugins/custom/jkanban/jkanban.bundle.css",
|
||||
"/demo1/plugins/custom/fullcalendar/fullcalendar.bundle.css": "/demo1/plugins/custom/fullcalendar/fullcalendar.bundle.css",
|
||||
"/demo1/plugins/custom/flatpickr/flatpickr.bundle.css": "/demo1/plugins/custom/flatpickr/flatpickr.bundle.css",
|
||||
"/demo1/css/style.bundle.css": "/demo1/css/style.bundle.css",
|
||||
"/demo1/plugins/global/plugins-custom.bundle.css": "/demo1/plugins/global/plugins-custom.bundle.css",
|
||||
"/demo1/plugins/global/plugins.bundle.js": "/demo1/plugins/global/plugins.bundle.js",
|
||||
"/demo1/js/scripts.bundle.js": "/demo1/js/scripts.bundle.js",
|
||||
"/demo1/js/custom/account/settings/profile-details.js": "/demo1/js/custom/account/settings/profile-details.js",
|
||||
"/demo1/js/custom/account/settings/signin-methods.js": "/demo1/js/custom/account/settings/signin-methods.js",
|
||||
"/demo1/js/custom/authentication/password-reset/new-password.js": "/demo1/js/custom/authentication/password-reset/new-password.js",
|
||||
"/demo1/js/custom/authentication/password-reset/password-reset.js": "/demo1/js/custom/authentication/password-reset/password-reset.js",
|
||||
"/demo1/js/custom/authentication/sign-in/general.js": "/demo1/js/custom/authentication/sign-in/general.js",
|
||||
"/demo1/js/custom/authentication/sign-up/general.js": "/demo1/js/custom/authentication/sign-up/general.js",
|
||||
"/demo1/js/custom/modals/two-factor-authentication.js": "/demo1/js/custom/modals/two-factor-authentication.js",
|
||||
"/demo1/js/custom/user-management/permissions/add-permission.js": "/demo1/js/custom/user-management/permissions/add-permission.js",
|
||||
"/demo1/js/custom/user-management/permissions/list.js": "/demo1/js/custom/user-management/permissions/list.js",
|
||||
"/demo1/js/custom/user-management/permissions/update-permission.js": "/demo1/js/custom/user-management/permissions/update-permission.js",
|
||||
"/demo1/js/custom/user-management/roles/list/add.js": "/demo1/js/custom/user-management/roles/list/add.js",
|
||||
"/demo1/js/custom/user-management/roles/list/update-role.js": "/demo1/js/custom/user-management/roles/list/update-role.js",
|
||||
"/demo1/js/custom/user-management/roles/view/update-role.js": "/demo1/js/custom/user-management/roles/view/update-role.js",
|
||||
"/demo1/js/custom/user-management/roles/view/view.js": "/demo1/js/custom/user-management/roles/view/view.js",
|
||||
"/demo1/js/custom/user-management/users/list/add.js": "/demo1/js/custom/user-management/users/list/add.js",
|
||||
"/demo1/js/custom/user-management/users/list/export-users.js": "/demo1/js/custom/user-management/users/list/export-users.js",
|
||||
"/demo1/js/custom/user-management/users/list/table.js": "/demo1/js/custom/user-management/users/list/table.js",
|
||||
"/demo1/js/custom/user-management/users/view/add-auth-app.js": "/demo1/js/custom/user-management/users/view/add-auth-app.js",
|
||||
"/demo1/js/custom/user-management/users/view/add-one-time-password.js": "/demo1/js/custom/user-management/users/view/add-one-time-password.js",
|
||||
"/demo1/js/custom/user-management/users/view/add-schedule.js": "/demo1/js/custom/user-management/users/view/add-schedule.js",
|
||||
"/demo1/js/custom/user-management/users/view/add-task.js": "/demo1/js/custom/user-management/users/view/add-task.js",
|
||||
"/demo1/js/custom/user-management/users/view/update-details.js": "/demo1/js/custom/user-management/users/view/update-details.js",
|
||||
"/demo1/js/custom/user-management/users/view/update-email.js": "/demo1/js/custom/user-management/users/view/update-email.js",
|
||||
"/demo1/js/custom/user-management/users/view/update-password.js": "/demo1/js/custom/user-management/users/view/update-password.js",
|
||||
"/demo1/js/custom/user-management/users/view/update-role.js": "/demo1/js/custom/user-management/users/view/update-role.js",
|
||||
"/demo1/js/custom/user-management/users/view/view.js": "/demo1/js/custom/user-management/users/view/view.js",
|
||||
"/demo1/js/custom/widgets.js": "/demo1/js/custom/widgets.js",
|
||||
"/demo1/js/vendors/plugins/datatables.init.js": "/demo1/js/vendors/plugins/datatables.init.js",
|
||||
"/demo1/plugins/custom/jstree/32px.png": "/demo1/plugins/custom/jstree/32px.png",
|
||||
"/demo1/plugins/custom/jstree/40px.png": "/demo1/plugins/custom/jstree/40px.png",
|
||||
"/demo1/plugins/custom/jstree/throbber.gif": "/demo1/plugins/custom/jstree/throbber.gif",
|
||||
"/demo1/plugins/custom/datatables/datatables.bundle.js": "/demo1/plugins/custom/datatables/datatables.bundle.js",
|
||||
"/demo1/plugins/custom/flatpickr/flatpickr.bundle.js": "/demo1/plugins/custom/flatpickr/flatpickr.bundle.js",
|
||||
"/demo1/plugins/custom/formrepeater/formrepeater.bundle.js": "/demo1/plugins/custom/formrepeater/formrepeater.bundle.js",
|
||||
"/demo1/plugins/custom/fullcalendar/fullcalendar.bundle.js": "/demo1/plugins/custom/fullcalendar/fullcalendar.bundle.js"
|
||||
}
|
2
public/robots.txt
Normal file
2
public/robots.txt
Normal file
|
@ -0,0 +1,2 @@
|
|||
User-agent: *
|
||||
Disallow:
|
284
public/vendor/datatables/buttons.server-side.js
vendored
Normal file
284
public/vendor/datatables/buttons.server-side.js
vendored
Normal file
|
@ -0,0 +1,284 @@
|
|||
(function ($, DataTable) {
|
||||
"use strict";
|
||||
|
||||
var _buildParams = function (dt, action, onlyVisibles) {
|
||||
var params = dt.ajax.params();
|
||||
params.action = action;
|
||||
params._token = $('meta[name="csrf-token"]').attr('content');
|
||||
|
||||
if (onlyVisibles) {
|
||||
params.visible_columns = _getVisibleColumns();
|
||||
} else {
|
||||
params.visible_columns = null;
|
||||
}
|
||||
|
||||
return params;
|
||||
};
|
||||
|
||||
var _getVisibleColumns = function () {
|
||||
|
||||
var visible_columns = [];
|
||||
$.each(DataTable.settings[0].aoColumns, function (key, col) {
|
||||
if (col.bVisible) {
|
||||
visible_columns.push(col.name);
|
||||
}
|
||||
});
|
||||
|
||||
return visible_columns;
|
||||
};
|
||||
|
||||
var _downloadFromUrl = function (url, params) {
|
||||
var postUrl = url + '/export';
|
||||
var xhr = new XMLHttpRequest();
|
||||
xhr.open('POST', postUrl, true);
|
||||
xhr.responseType = 'arraybuffer';
|
||||
xhr.onload = function () {
|
||||
if (this.status === 200) {
|
||||
var filename = "";
|
||||
var disposition = xhr.getResponseHeader('Content-Disposition');
|
||||
if (disposition && disposition.indexOf('attachment') !== -1) {
|
||||
var filenameRegex = /filename[^;=\n]*=((['"]).*?\2|[^;\n]*)/;
|
||||
var matches = filenameRegex.exec(disposition);
|
||||
if (matches != null && matches[1]) filename = matches[1].replace(/['"]/g, '');
|
||||
}
|
||||
var type = xhr.getResponseHeader('Content-Type');
|
||||
|
||||
var blob = new Blob([this.response], {type: type});
|
||||
if (typeof window.navigator.msSaveBlob !== 'undefined') {
|
||||
// IE workaround for "HTML7007: One or more blob URLs were revoked by closing the blob for which they were created. These URLs will no longer resolve as the data backing the URL has been freed."
|
||||
window.navigator.msSaveBlob(blob, filename);
|
||||
} else {
|
||||
var URL = window.URL || window.webkitURL;
|
||||
var downloadUrl = URL.createObjectURL(blob);
|
||||
|
||||
if (filename) {
|
||||
// use HTML5 a[download] attribute to specify filename
|
||||
var a = document.createElement("a");
|
||||
// safari doesn't support this yet
|
||||
if (typeof a.download === 'undefined') {
|
||||
window.location = downloadUrl;
|
||||
} else {
|
||||
a.href = downloadUrl;
|
||||
a.download = filename;
|
||||
document.body.appendChild(a);
|
||||
a.click();
|
||||
}
|
||||
} else {
|
||||
window.location = downloadUrl;
|
||||
}
|
||||
|
||||
setTimeout(function () {
|
||||
URL.revokeObjectURL(downloadUrl);
|
||||
}, 100); // cleanup
|
||||
}
|
||||
}
|
||||
};
|
||||
xhr.setRequestHeader('Content-type', 'application/x-www-form-urlencoded');
|
||||
xhr.send($.param(params));
|
||||
};
|
||||
|
||||
var _buildUrl = function(dt, action) {
|
||||
var url = dt.ajax.url() || '';
|
||||
var params = dt.ajax.params();
|
||||
params.action = action;
|
||||
|
||||
if (url.indexOf('?') > -1) {
|
||||
return url + '&' + $.param(params);
|
||||
}
|
||||
|
||||
return url + '?' + $.param(params);
|
||||
};
|
||||
|
||||
DataTable.ext.buttons.excel = {
|
||||
className: 'buttons-excel',
|
||||
|
||||
text: function (dt) {
|
||||
return '<i class="fa fa-file-excel-o"></i> ' + dt.i18n('buttons.excel', 'Excel');
|
||||
},
|
||||
|
||||
action: function (e, dt, button, config) {
|
||||
var url = _buildUrl(dt, 'excel');
|
||||
window.location = url;
|
||||
}
|
||||
};
|
||||
|
||||
DataTable.ext.buttons.postExcel = {
|
||||
className: 'buttons-excel',
|
||||
|
||||
text: function (dt) {
|
||||
return '<i class="fa fa-file-excel-o"></i> ' + dt.i18n('buttons.excel', 'Excel');
|
||||
},
|
||||
|
||||
action: function (e, dt, button, config) {
|
||||
var url = dt.ajax.url() || window.location.href;
|
||||
var params = _buildParams(dt, 'excel');
|
||||
|
||||
_downloadFromUrl(url, params);
|
||||
}
|
||||
};
|
||||
|
||||
DataTable.ext.buttons.postExcelVisibleColumns = {
|
||||
className: 'buttons-excel',
|
||||
|
||||
text: function (dt) {
|
||||
return '<i class="fa fa-file-excel-o"></i> ' + dt.i18n('buttons.excel', 'Excel (only visible columns)');
|
||||
},
|
||||
|
||||
action: function (e, dt, button, config) {
|
||||
var url = dt.ajax.url() || window.location.href;
|
||||
var params = _buildParams(dt, 'excel', true);
|
||||
|
||||
_downloadFromUrl(url, params);
|
||||
}
|
||||
};
|
||||
|
||||
DataTable.ext.buttons.export = {
|
||||
extend: 'collection',
|
||||
|
||||
className: 'buttons-export',
|
||||
|
||||
text: function (dt) {
|
||||
return '<i class="fa fa-download"></i> ' + dt.i18n('buttons.export', 'Export') + ' <span class="caret"/>';
|
||||
},
|
||||
|
||||
buttons: ['csv', 'excel', 'pdf']
|
||||
};
|
||||
|
||||
DataTable.ext.buttons.csv = {
|
||||
className: 'buttons-csv',
|
||||
|
||||
text: function (dt) {
|
||||
return '<i class="fa fa-file-excel-o"></i> ' + dt.i18n('buttons.csv', 'CSV');
|
||||
},
|
||||
|
||||
action: function (e, dt, button, config) {
|
||||
var url = _buildUrl(dt, 'csv');
|
||||
window.location = url;
|
||||
}
|
||||
};
|
||||
|
||||
DataTable.ext.buttons.postCsvVisibleColumns = {
|
||||
className: 'buttons-csv',
|
||||
|
||||
text: function (dt) {
|
||||
return '<i class="fa fa-file-excel-o"></i> ' + dt.i18n('buttons.csv', 'CSV (only visible columns)');
|
||||
},
|
||||
|
||||
action: function (e, dt, button, config) {
|
||||
var url = dt.ajax.url() || window.location.href;
|
||||
var params = _buildParams(dt, 'csv', true);
|
||||
|
||||
_downloadFromUrl(url, params);
|
||||
}
|
||||
};
|
||||
|
||||
DataTable.ext.buttons.postCsv = {
|
||||
className: 'buttons-csv',
|
||||
|
||||
text: function (dt) {
|
||||
return '<i class="fa fa-file-excel-o"></i> ' + dt.i18n('buttons.csv', 'CSV');
|
||||
},
|
||||
|
||||
action: function (e, dt, button, config) {
|
||||
var url = dt.ajax.url() || window.location.href;
|
||||
var params = _buildParams(dt, 'csv');
|
||||
|
||||
_downloadFromUrl(url, params);
|
||||
}
|
||||
};
|
||||
|
||||
DataTable.ext.buttons.pdf = {
|
||||
className: 'buttons-pdf',
|
||||
|
||||
text: function (dt) {
|
||||
return '<i class="fa fa-file-pdf-o"></i> ' + dt.i18n('buttons.pdf', 'PDF');
|
||||
},
|
||||
|
||||
action: function (e, dt, button, config) {
|
||||
var url = _buildUrl(dt, 'pdf');
|
||||
window.location = url;
|
||||
}
|
||||
};
|
||||
|
||||
DataTable.ext.buttons.postPdf = {
|
||||
className: 'buttons-pdf',
|
||||
|
||||
text: function (dt) {
|
||||
return '<i class="fa fa-file-pdf-o"></i> ' + dt.i18n('buttons.pdf', 'PDF');
|
||||
},
|
||||
|
||||
action: function (e, dt, button, config) {
|
||||
var url = dt.ajax.url() || window.location.href;
|
||||
var params = _buildParams(dt, 'pdf');
|
||||
|
||||
_downloadFromUrl(url, params);
|
||||
}
|
||||
};
|
||||
|
||||
DataTable.ext.buttons.print = {
|
||||
className: 'buttons-print',
|
||||
|
||||
text: function (dt) {
|
||||
return '<i class="fa fa-print"></i> ' + dt.i18n('buttons.print', 'Print');
|
||||
},
|
||||
|
||||
action: function (e, dt, button, config) {
|
||||
var url = _buildUrl(dt, 'print');
|
||||
window.location = url;
|
||||
}
|
||||
};
|
||||
|
||||
DataTable.ext.buttons.reset = {
|
||||
className: 'buttons-reset',
|
||||
|
||||
text: function (dt) {
|
||||
return '<i class="fa fa-undo"></i> ' + dt.i18n('buttons.reset', 'Reset');
|
||||
},
|
||||
|
||||
action: function (e, dt, button, config) {
|
||||
dt.search('');
|
||||
dt.columns().search('');
|
||||
dt.draw();
|
||||
}
|
||||
};
|
||||
|
||||
DataTable.ext.buttons.reload = {
|
||||
className: 'buttons-reload',
|
||||
|
||||
text: function (dt) {
|
||||
return '<i class="fa fa-refresh"></i> ' + dt.i18n('buttons.reload', 'Reload');
|
||||
},
|
||||
|
||||
action: function (e, dt, button, config) {
|
||||
dt.draw(false);
|
||||
}
|
||||
};
|
||||
|
||||
DataTable.ext.buttons.create = {
|
||||
className: 'buttons-create',
|
||||
|
||||
text: function (dt) {
|
||||
return '<i class="fa fa-plus"></i> ' + dt.i18n('buttons.create', 'Create');
|
||||
},
|
||||
|
||||
action: function (e, dt, button, config) {
|
||||
window.location = window.location.href.replace(/\/+$/, "") + '/create';
|
||||
}
|
||||
};
|
||||
|
||||
if (typeof DataTable.ext.buttons.copyHtml5 !== 'undefined') {
|
||||
$.extend(DataTable.ext.buttons.copyHtml5, {
|
||||
text: function (dt) {
|
||||
return '<i class="fa fa-copy"></i> ' + dt.i18n('buttons.copy', 'Copy');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
if (typeof DataTable.ext.buttons.colvis !== 'undefined') {
|
||||
$.extend(DataTable.ext.buttons.colvis, {
|
||||
text: function (dt) {
|
||||
return '<i class="fa fa-eye"></i> ' + dt.i18n('buttons.colvis', 'Column visibility');
|
||||
}
|
||||
});
|
||||
}
|
||||
})(jQuery, jQuery.fn.dataTable);
|
28
public/web.config
Normal file
28
public/web.config
Normal file
|
@ -0,0 +1,28 @@
|
|||
<!--
|
||||
Rewrites requires Microsoft URL Rewrite Module for IIS
|
||||
Download: https://www.microsoft.com/en-us/download/details.aspx?id=47337
|
||||
Debug Help: https://docs.microsoft.com/en-us/iis/extensions/url-rewrite-module/using-failed-request-tracing-to-trace-rewrite-rules
|
||||
-->
|
||||
<configuration>
|
||||
<system.webServer>
|
||||
<rewrite>
|
||||
<rules>
|
||||
<rule name="Imported Rule 1" stopProcessing="true">
|
||||
<match url="^(.*)/$" ignoreCase="false" />
|
||||
<conditions>
|
||||
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
|
||||
</conditions>
|
||||
<action type="Redirect" redirectType="Permanent" url="/{R:1}" />
|
||||
</rule>
|
||||
<rule name="Imported Rule 2" stopProcessing="true">
|
||||
<match url="^" ignoreCase="false" />
|
||||
<conditions>
|
||||
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
|
||||
<add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
|
||||
</conditions>
|
||||
<action type="Rewrite" url="index.php" />
|
||||
</rule>
|
||||
</rules>
|
||||
</rewrite>
|
||||
</system.webServer>
|
||||
</configuration>
|
Loading…
Add table
Add a link
Reference in a new issue