Skip to content

Commit

Permalink
remove of old datatable legacy (#790)
Browse files Browse the repository at this point in the history
Co-authored-by: Yvar <[email protected]>
  • Loading branch information
YvarRavy and YvarRavy authored Oct 12, 2023
1 parent 8060264 commit 314b49b
Show file tree
Hide file tree
Showing 29 changed files with 0 additions and 2,796 deletions.
1 change: 0 additions & 1 deletion DefaultSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@
'dygraphs',
'media',
'datatables',
'datatables-legacy',
'carousel',
'spreadsheet',
'gantt',
Expand Down
63 changes: 0 additions & 63 deletions Resources.php
Original file line number Diff line number Diff line change
Expand Up @@ -1029,69 +1029,6 @@
]
],

// DataTables implementation
'ext.srf.datatablesLegacy' => $formatModule + [
'scripts' => 'datatables-legacy/resources/ext.srf.formats.datatablesLegacy.js',
'styles' => 'datatables-legacy/resources/ext.srf.formats.datatables.css',
'dependencies' => [
'jquery.dataTables',
'jquery.dataTables.extras',
'jquery.ui',
'ext.smw.dataItem',
'ext.smw.api',
'ext.srf.api',
'ext.srf.util',
'ext.srf.widgets'
],
'messages' => [
'srf-ui-datatables-label-conditions',
'srf-ui-datatables-label-parameters',
'srf-ui-datatables-label-filters',
'srf-ui-datatables-label-information',
'srf-ui-datatables-panel-disclaimer',
'srf-ui-datatables-refresh-button-title',
'srf-ui-datatables-panel-switch-button-title',
'srf-ui-datatables-label-update-success',
'srf-ui-datatables-label-update-error',
'srf-ui-datatables-label-sEmptyTable',
'srf-ui-datatables-label-sInfo',
'srf-ui-datatables-label-sInfoEmpty',
'srf-ui-datatables-label-sInfoFiltered',
'srf-ui-datatables-label-sInfoPostFix',
'srf-ui-datatables-label-sInfoThousands',
'srf-ui-datatables-label-sLengthMenu',
'srf-ui-datatables-label-sLoadingRecords',
'srf-ui-datatables-label-sProcessing',
'srf-ui-datatables-label-sSearch',
'srf-ui-datatables-label-sZeroRecords',
'srf-ui-datatables-label-oPaginate-sFirst',
'srf-ui-datatables-label-oPaginate-sLast',
'srf-ui-datatables-label-oPaginate-sNext',
'srf-ui-datatables-label-oPaginate-sPrevious',
'srf-ui-datatables-label-oAria-sSortAscending',
'srf-ui-datatables-label-oAria-sSortDescending',
'srf-ui-datatables-label-multiselect-column-header',
'srf-ui-datatables-label-multiselect-column-noneselectedtext',
'srf-ui-datatables-label-multiselect-column-selectedtext',
'srf-ui-datatables-label-placeholder-column-search',
'srf-ui-datatables-label-content-cache',
'srf-ui-datatables-label-content-server'
]
],

// DataTables bootstrap
'ext.srf.datatablesLegacy.bootstrap' => $moduleTemplate + [
'scripts' => 'resources/jquery/datatables-legacy/jquery.dataTables.bootstrap.js',
'styles' => 'resources/jquery/datatables-legacy/jquery.dataTables.bootstrap.css'
],

// DataTables basic
'ext.srf.datatablesLegacy.basic' => $moduleTemplate + [
'styles' => [
'resources/jquery/datatables-legacy/datatables.min.css'
]
],

// Mermaid Format
'ext.srf.gantt' => $formatModule + [
'scripts' => 'Gantt/resources/ext.gantt.js',
Expand Down
1 change: 0 additions & 1 deletion SemanticResultFormats.hooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ public static function registerUnitTests( array &$files ) {
'formats/vCard',
'formats/MediaPlayer',
'formats/DataTables',
'formats/DataTablesLegacy',

// Boilerplate
// Register your testclass
Expand Down
2 changes: 0 additions & 2 deletions SemanticResultFormats.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,15 +161,13 @@ public static function onExtensionFunction() {
'incoming' => 'SRFIncoming',
'media' => 'SRF\MediaPlayer',
'datatables' => 'SRF\DataTables',
'datatables-legacy' => 'SRF\DataTablesLegacy',
'carousel' => 'SRF\Carousel',
'gantt' => 'SRF\Gantt\GanttPrinter'
];

$formatAliases = [
'tagcloud' => [ 'tag cloud' ],
'datatables' => [ 'datatable' ],
'datatables-legacy' => [ 'datatable-legacy' ],
'valuerank' => [ 'value rank' ],
'd3chart' => [ 'd3 chart' ],
'timeseries' => [ 'time series' ],
Expand Down
3 changes: 0 additions & 3 deletions extension.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
"SemanticResultFormats::onExtensionFunction"
],
"AutoloadClasses": {
"SRF\\DataTablesLegacy": "formats/datatables-legacy/DataTablesLegacy.php",
"SRF\\Carousel": "formats/carousel/Carousel.php"
},
"AutoloadNamespaces": {
Expand All @@ -41,7 +40,6 @@
"scripts": [
"tests/qunit/ext.srf.test.js",
"tests/qunit/ext.srf.util.test.js",
"tests/qunit/formats/ext.srf.formats.datatables-legacy.test.js",
"tests/qunit/formats/ext.srf.formats.datatables.test.js",
"tests/qunit/formats/ext.srf.formats.carousel.test.js",
"tests/qunit/formats/ext.srf.formats.eventcalendar.tests.js",
Expand All @@ -58,7 +56,6 @@
"ext.srf",
"ext.srf.util",
"ext.srf.eventcalendar",
"ext.srf.datatablesLegacy",
"ext.srf.datatables.v2.format",
"ext.srf.carousel.module",
"ext.srf.carousel",
Expand Down
129 changes: 0 additions & 129 deletions formats/datatables-legacy/DataTablesLegacy.php

This file was deleted.

Loading

0 comments on commit 314b49b

Please sign in to comment.