removed some comments from the traffic page
This commit is contained in:
@@ -83,40 +83,6 @@
|
||||
<script type="text/javascript" src="https://cdn.sheetjs.com/xlsx-0.20.3/package/dist/xlsx.full.min.js"></script>
|
||||
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/luxon@2.3.1/build/global/luxon.min.js"></script>
|
||||
<script src="{{ url('public/libs/tabulator-master/dist/js/autotable.min.js') }}"></script>
|
||||
<script>
|
||||
|
||||
// var table = new Tabulator("#message-table", {
|
||||
// ajaxURL: base_url + "/client-traffic-tabulator/",
|
||||
// ajaxResponse: function(url, params, response) {
|
||||
// return response.content;
|
||||
// },
|
||||
// columns: [
|
||||
// {title: "Sender ID", field: "from"},
|
||||
// {title: "Msisdn", field: "to"},
|
||||
// {title: "Message", field: "message"},
|
||||
// {title: "Status", field: "status"},
|
||||
// {title: "Delivery Status", field: "deliveryStatus"},
|
||||
// // {title: "Created At", field: "createdAt"},
|
||||
// {title:"Date Created ", field:"createdAt", formatter:"datetime", formatterParams:{
|
||||
// inputFormat: "iso",
|
||||
// outputFormat: "dd-MM-yyyy HH:mm:ss",
|
||||
// invalidPlaceholder: "(invalid date)"
|
||||
// }}
|
||||
// ],
|
||||
// });
|
||||
// document.getElementById("download-pdf").addEventListener("click", function(){
|
||||
// table.download("pdf", "messages.pdf", {
|
||||
// orientation:"portrait", // portrait or landscape
|
||||
// title:"Messages Export", // document title
|
||||
// });
|
||||
// });
|
||||
|
||||
// document.getElementById("download-xlsx").addEventListener("click", function(){
|
||||
// table.download("xlsx", "messages.xlsx", {sheetName:"Messages"});
|
||||
// });
|
||||
|
||||
</script>
|
||||
|
||||
<script>
|
||||
function statusDesign (cell, formatterParams){
|
||||
var value = cell.getValue();
|
||||
@@ -181,58 +147,4 @@
|
||||
});
|
||||
</script>
|
||||
|
||||
<script>
|
||||
// var table = new Tabulator("#message-table", {
|
||||
// ajaxURL: base_url + "/client-traffic-tabulator/",
|
||||
// pagination: "remote",
|
||||
// paginationSize: 20,
|
||||
// paginationDataSent: {
|
||||
// "page": "page",
|
||||
// "size": "size"
|
||||
// },
|
||||
// paginationDataReceived: {
|
||||
// "last_page": "totalPages",
|
||||
// "data": "content",
|
||||
// "current_page": "number",
|
||||
// "total": "totalElements"
|
||||
// },
|
||||
// // Sorting configuration
|
||||
// ajaxSorting: true,
|
||||
// sortMode: "remote",
|
||||
// ajaxRequestFunc: function(url, config, params) {
|
||||
// let query = {
|
||||
// page: params.page - 1,
|
||||
// size: params.size,
|
||||
// };
|
||||
|
||||
// if (params.sorters && params.sorters.length > 0) {
|
||||
// let sorter = params.sorters[0];
|
||||
// query.sort = sorter.field + "," + sorter.dir;
|
||||
// // Laravel/Spring style: ?sort=createdAt,asc
|
||||
// }
|
||||
|
||||
// // Build query string
|
||||
// let qs = Object.keys(query)
|
||||
// .map(k => encodeURIComponent(k) + "=" + encodeURIComponent(query[k]))
|
||||
// .join("&");
|
||||
|
||||
// return url + "?" + qs;
|
||||
// },
|
||||
// ajaxResponse: function(url, params, response) {
|
||||
// return response.content;
|
||||
// },
|
||||
// columns: [
|
||||
// {title: "ID", field: "id", sorter: "number"},
|
||||
// {title: "Client ID", field: "clientId", sorter: "number"},
|
||||
// {title: "From", field: "from", sorter: "string"},
|
||||
// {title: "To", field: "to", sorter: "string"},
|
||||
// {title: "Message", field: "message", sorter: "string"},
|
||||
// {title: "Status", field: "status", sorter: "string"},
|
||||
// {title: "Delivery Status", field: "deliveryStatus", sorter: "string"},
|
||||
// {title: "Created At", field: "createdAt", sorter: "datetime"},
|
||||
// ],
|
||||
// });
|
||||
|
||||
|
||||
</script>
|
||||
@endsection
|
||||
Reference in New Issue
Block a user