mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-28 17:01:16 +00:00
Remove some of the js packages that are not used
This commit is contained in:
@@ -43,12 +43,10 @@
|
||||
"bootstrap-datepicker": "^1.10.0",
|
||||
"bootstrap-hover-dropdown": "^2.2.1",
|
||||
"bootstrap-progressbar": "^0.9.0",
|
||||
"datatables": "^1.10.18",
|
||||
"date-fns": "^3.6.0",
|
||||
"feather-icons": "^4.29.2",
|
||||
"flexboxgrid2": "^7.2.1",
|
||||
"icheck": "^1.0.2",
|
||||
"jquery-colorbox": "^1.6.4",
|
||||
"jquery-migrate": "3.5.2",
|
||||
"laravel-echo": "^1.16.1",
|
||||
"laravel-vite-plugin": "^1.0",
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -806,36 +806,6 @@ function isValidEmailAddress(emailAddress) {
|
||||
return pattern.test(emailAddress);
|
||||
}
|
||||
|
||||
function mymovie_del(imdbID, btn) {
|
||||
$.ajax({
|
||||
url: base_url + '/ajax_mymovies?rand=' + $.now(),
|
||||
data: { del: imdbID },
|
||||
dataType: 'html',
|
||||
success: function (data) {
|
||||
$(btn).hide();
|
||||
$(btn).prev('a').show();
|
||||
},
|
||||
error: function (xhr, err, e) {},
|
||||
});
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
function mymovie_add(imdbID, btn) {
|
||||
$(btn).hide();
|
||||
$(btn).next('a').show();
|
||||
|
||||
$.ajax({
|
||||
url: base_url + '/ajax_mymovies?rand=' + $.now(),
|
||||
data: { add: imdbID },
|
||||
dataType: 'html',
|
||||
success: function (data) {},
|
||||
error: function (xhr, err, e) {},
|
||||
});
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
function getNzbGetQueue() {
|
||||
$.ajax({
|
||||
url: 'queuedata?type=nzbget&id=' + $.now(),
|
||||
|
||||
@@ -45,390 +45,6 @@ function ajax_group_status(id, what) {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* ajax_sharing_site_status()
|
||||
*
|
||||
* @param id site id
|
||||
* @param status 0 = deactive, 1 = activate
|
||||
*/
|
||||
function ajax_sharing_site_status(id, status) {
|
||||
// no caching of results
|
||||
let rand_no = Math.random();
|
||||
if (status != undefined) {
|
||||
$.ajax({
|
||||
url: base_url + '/admin/ajax?action=sharing_toggle_status&rand=' + rand_no,
|
||||
data: { site_id: id, site_status: status },
|
||||
dataType: 'html',
|
||||
success: function (data) {
|
||||
$('div#message').html(data);
|
||||
$('div#message').show('fast', function () {});
|
||||
|
||||
// switch some links around
|
||||
if (status == 0) {
|
||||
$('td#site-' + id).html(
|
||||
'<a href="javascript:ajax_sharing_site_status(' +
|
||||
id +
|
||||
', 1)" class="sharing_site_deactive">Enable</a>'
|
||||
);
|
||||
} else {
|
||||
$('td#site-' + id).html(
|
||||
'<a href="javascript:ajax_sharing_site_status(' +
|
||||
id +
|
||||
', 0)" class="sharing_site_active">Disable</a>'
|
||||
);
|
||||
}
|
||||
|
||||
// fade.. mm
|
||||
$('#message').fadeOut(5000);
|
||||
},
|
||||
error: function (xhr, err, e) {
|
||||
alert('Error in ajax_sharing_site_status: ' + err);
|
||||
},
|
||||
});
|
||||
} else {
|
||||
alert('Weird.. what site id are looking for?');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* ajax_sharing_enabled()
|
||||
*
|
||||
* @param id
|
||||
* @param status 0 = deactive, 1 = activate
|
||||
*/
|
||||
function ajax_sharing_enabled(id, status) {
|
||||
// no caching of results
|
||||
let rand_no = Math.random();
|
||||
if (status != undefined) {
|
||||
$.ajax({
|
||||
url: base_url + '/admin/ajax?action=sharing_toggle_enabled&rand=' + rand_no,
|
||||
data: { enabled_status: status },
|
||||
dataType: 'html',
|
||||
success: function (data) {
|
||||
$('div#message').html(data);
|
||||
$('div#message').show('fast', function () {});
|
||||
|
||||
// switch some links around
|
||||
if (status == 0) {
|
||||
$('strong#enabled-' + id).html(
|
||||
'<a title="Click this to enable sharing." href="javascript:ajax_sharing_enabled(' +
|
||||
id +
|
||||
', 1)" class="sharing_enabled_deactive">[ENABLE]</a>'
|
||||
);
|
||||
} else {
|
||||
$('strong#enabled-' + id).html(
|
||||
'<a title="Click this to disable sharing." href="javascript:ajax_sharing_enabled(' +
|
||||
id +
|
||||
', 0)" class="sharing_enabled_active">[DISABLE]</a>'
|
||||
);
|
||||
}
|
||||
|
||||
// fade.. mm
|
||||
$('#message').fadeOut(5000);
|
||||
},
|
||||
error: function (xhr, err, e) {
|
||||
alert('Error in ajax_sharing_enabled: ' + err);
|
||||
},
|
||||
});
|
||||
} else {
|
||||
alert('Weird.. what enabled id are looking for?');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* ajax_sharing_startposition()
|
||||
*
|
||||
* @param id
|
||||
* @param status 0 = deactive, 1 = activate
|
||||
*/
|
||||
function ajax_sharing_startposition(id, status) {
|
||||
// no caching of results
|
||||
let rand_no = Math.random();
|
||||
if (status != undefined) {
|
||||
$.ajax({
|
||||
url: base_url + '/admin/ajax?action=sharing_start_position&rand=' + rand_no,
|
||||
data: { start_position: status },
|
||||
dataType: 'html',
|
||||
success: function (data) {
|
||||
$('div#message').html(data);
|
||||
$('div#message').show('fast', function () {});
|
||||
|
||||
// switch some links around
|
||||
if (status == 0) {
|
||||
$('strong#startposition-' + id).html(
|
||||
'<a title="Click this to enable backfill." href="javascript:ajax_sharing_startposition(' +
|
||||
id +
|
||||
', 1)" class="sharing_enabled_deactive">[ENABLE]</a>'
|
||||
);
|
||||
} else {
|
||||
$('strong#startposition-' + id).html(
|
||||
'<a title="Click this to disable backfill." href="javascript:ajax_sharing_startposition(' +
|
||||
id +
|
||||
', 0)" class="sharing_enabled_active">[DISABLE]</a>'
|
||||
);
|
||||
}
|
||||
|
||||
// fade.. mm
|
||||
$('#message').fadeOut(5000);
|
||||
},
|
||||
error: function (xhr, err, e) {
|
||||
alert('Error in ajax_sharing_startposition: ' + err);
|
||||
},
|
||||
});
|
||||
} else {
|
||||
alert('Weird.. what enabled id are looking for?');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* ajax_sharing_reset()
|
||||
*
|
||||
* @param id
|
||||
*/
|
||||
function ajax_sharing_reset(id) {
|
||||
let rand_no = Math.random();
|
||||
$.ajax({
|
||||
url: base_url + '/admin/ajax?action=sharing_reset_settings&rand=' + rand_no,
|
||||
data: { reset_settings: id },
|
||||
dataType: 'html',
|
||||
success: function (data) {
|
||||
$('div#message').html(data);
|
||||
$('div#message').show('fast', function () {});
|
||||
|
||||
// fade.. mm
|
||||
$('#message').fadeOut(5000);
|
||||
setTimeout('history.go(0);', 1500);
|
||||
},
|
||||
error: function (xhr, err, e) {
|
||||
alert('Error in ajax_sharing_reset: ' + err);
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* ajax_sharing_site_purge()
|
||||
*
|
||||
* @param id
|
||||
*/
|
||||
function ajax_sharing_site_purge(id) {
|
||||
let rand_no = Math.random();
|
||||
$.ajax({
|
||||
url: base_url + '/admin/ajax?action=sharing_purge_site&rand=' + rand_no,
|
||||
data: { purge_site: id },
|
||||
dataType: 'html',
|
||||
success: function (data) {
|
||||
$('div#message').html(data);
|
||||
$('div#message').show('fast', function () {});
|
||||
|
||||
// fade.. mm
|
||||
$('#message').fadeOut(5000);
|
||||
setTimeout('history.go(0);', 1500);
|
||||
},
|
||||
error: function (xhr, err, e) {
|
||||
alert('Error in ajax_sharing_site_purge: ' + err);
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* ajax_sharing_posting()
|
||||
*
|
||||
* @param id
|
||||
* @param status 0 = deactive, 1 = activate
|
||||
*/
|
||||
function ajax_sharing_posting(id, status) {
|
||||
// no caching of results
|
||||
let rand_no = Math.random();
|
||||
if (status != undefined) {
|
||||
$.ajax({
|
||||
url: base_url + '/admin/ajax?action=sharing_toggle_posting&rand=' + rand_no,
|
||||
data: { posting_status: status },
|
||||
dataType: 'html',
|
||||
success: function (data) {
|
||||
$('div#message').html(data);
|
||||
$('div#message').show('fast', function () {});
|
||||
|
||||
// switch some links around
|
||||
if (status == 0) {
|
||||
$('strong#posting-' + id).html(
|
||||
'<a title="Click this to enable posting." href="javascript:ajax_sharing_posting(' +
|
||||
id +
|
||||
', 1)" class="sharing_posting_deactive">[ENABLE]</a>'
|
||||
);
|
||||
} else {
|
||||
$('strong#posting-' + id).html(
|
||||
'<a title="Click this to disable posting." href="javascript:ajax_sharing_posting(' +
|
||||
id +
|
||||
', 0)" class="sharing_posting_active">[DISABLE]</a>'
|
||||
);
|
||||
}
|
||||
|
||||
// fade.. mm
|
||||
$('#message').fadeOut(5000);
|
||||
},
|
||||
error: function (xhr, err, e) {
|
||||
alert('Error in ajax_sharing_posting: ' + err);
|
||||
},
|
||||
});
|
||||
} else {
|
||||
alert('Weird.. what posting id are looking for?');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* ajax_sharing_fetching()
|
||||
*
|
||||
* @param id
|
||||
* @param status 0 = deactive, 1 = activate
|
||||
*/
|
||||
function ajax_sharing_fetching(id, status) {
|
||||
// no caching of results
|
||||
let rand_no = Math.random();
|
||||
if (status != undefined) {
|
||||
$.ajax({
|
||||
url: base_url + '/admin/ajax?action=sharing_toggle_fetching&rand=' + rand_no,
|
||||
data: { fetching_status: status },
|
||||
dataType: 'html',
|
||||
success: function (data) {
|
||||
$('div#message').html(data);
|
||||
$('div#message').show('fast', function () {});
|
||||
|
||||
// switch some links around
|
||||
if (status == 0) {
|
||||
$('strong#fetching-' + id).html(
|
||||
'<a title="Click this to enable posting." href="javascript:ajax_fetching_posting(' +
|
||||
id +
|
||||
', 1)" class="sharing_fetching_deactive">[ENABLE]</a>'
|
||||
);
|
||||
} else {
|
||||
$('strong#fetching-' + id).html(
|
||||
'<a title="Click this to disable sharing." href="javascript:ajax_fetching_posting(' +
|
||||
id +
|
||||
', 0)" class="sharing_fetching_active">[DISABLE]</a>'
|
||||
);
|
||||
}
|
||||
|
||||
// fade.. mm
|
||||
$('#message').fadeOut(5000);
|
||||
},
|
||||
error: function (xhr, err, e) {
|
||||
alert('Error in ajax_sharing_fetching: ' + err);
|
||||
},
|
||||
});
|
||||
} else {
|
||||
alert('Weird.. what fetching id are looking for?');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* ajax_sharing_auto()
|
||||
*
|
||||
* @param id
|
||||
* @param status 0 = deactive, 1 = activate
|
||||
*/
|
||||
function ajax_sharing_auto(id, status) {
|
||||
// no caching of results
|
||||
let rand_no = Math.random();
|
||||
if (status != undefined) {
|
||||
$.ajax({
|
||||
url: base_url + '/admin/ajax?action=sharing_toggle_site_auto_enabling&rand=' + rand_no,
|
||||
data: { auto_status: status },
|
||||
dataType: 'html',
|
||||
success: function (data) {
|
||||
$('div#message').html(data);
|
||||
$('div#message').show('fast', function () {});
|
||||
|
||||
// switch some links around
|
||||
if (status == 0) {
|
||||
$('strong#auto-' + id).html(
|
||||
'<a title="Click this to enable auto-enable." href="javascript:ajax_auto_posting(' +
|
||||
id +
|
||||
', 1)" class="sharing_auto_deactive">[ENABLE]</a>'
|
||||
);
|
||||
} else {
|
||||
$('strong#auto-' + id).html(
|
||||
'<a title="Click this to disable auto-enable." href="javascript:ajax_auto_posting(' +
|
||||
id +
|
||||
', 0)" class="sharing_auto_active">[DISABLE]</a>'
|
||||
);
|
||||
}
|
||||
|
||||
// fade.. mm
|
||||
$('#message').fadeOut(5000);
|
||||
},
|
||||
error: function (xhr, err, e) {
|
||||
alert('Error in ajax_sharing_auto: ' + err);
|
||||
},
|
||||
});
|
||||
} else {
|
||||
alert('Weird.. what auto id are looking for?');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* ajax_sharing_hide()
|
||||
*
|
||||
* @param id
|
||||
* @param status 0 = deactive, 1 = activate
|
||||
*/
|
||||
function ajax_sharing_hide(id, status) {
|
||||
// no caching of results
|
||||
let rand_no = Math.random();
|
||||
if (status != undefined) {
|
||||
$.ajax({
|
||||
url: base_url + '/admin/ajax?action=sharing_toggle_hide_users&rand=' + rand_no,
|
||||
data: { hide_status: status },
|
||||
dataType: 'html',
|
||||
success: function (data) {
|
||||
$('div#message').html(data);
|
||||
$('div#message').show('fast', function () {});
|
||||
|
||||
// switch some links around
|
||||
if (status == 0) {
|
||||
$('strong#hide-' + id).html(
|
||||
'<a title="Click this to enable hiding users." href="javascript:ajax_hide_posting(' +
|
||||
id +
|
||||
', 1)" class="sharing_hide_deactive">[ENABLE]</a>'
|
||||
);
|
||||
} else {
|
||||
$('strong#hide-' + id).html(
|
||||
'<a title="Click this to disable hiding users." href="javascript:ajax_hide_posting(' +
|
||||
id +
|
||||
', 0)" class="sharing_hide_active">[DISABLE]</a>'
|
||||
);
|
||||
}
|
||||
|
||||
// fade.. mm
|
||||
$('#message').fadeOut(5000);
|
||||
},
|
||||
error: function (xhr, err, e) {
|
||||
alert('Error in ajax_sharing_hide: ' + err);
|
||||
},
|
||||
});
|
||||
} else {
|
||||
alert('Weird.. what hide id are looking for?');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* ajax_sharing_toggle_all()
|
||||
*
|
||||
* @param status
|
||||
*/
|
||||
function ajax_sharing_toggle_all(status) {
|
||||
// no caching of results
|
||||
let rand_no = Math.random();
|
||||
if (status != undefined) {
|
||||
$.ajax({
|
||||
url: base_url + '/admin/ajax?action=sharing_toggle_all_sites&rand=' + rand_no,
|
||||
data: { toggle_all: status },
|
||||
dataType: 'html',
|
||||
});
|
||||
} else {
|
||||
alert('Weird.. what toggle status are you looking for?');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* ajax_backfill_status()
|
||||
*
|
||||
@@ -699,24 +315,6 @@ jQuery(function ($) {
|
||||
});
|
||||
});
|
||||
|
||||
//enable Custom checkboxes for fix crap releases
|
||||
function enableFixCrapCustom() {
|
||||
let inputs = document.getElementsByName('fix_crap_opt');
|
||||
if (inputs[2].checked == true) {
|
||||
let checks = document.getElementsByName('fix_crap[]');
|
||||
for (let t = 0; t < checks.length; t++) {
|
||||
checks[t].disabled = false;
|
||||
checks[t].readonly = false;
|
||||
}
|
||||
} else {
|
||||
let checks = document.getElementsByName('fix_crap[]');
|
||||
for (let t = 0; t < checks.length; t++) {
|
||||
checks[t].disabled = true;
|
||||
checks[t].readonly = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/** ****** tinyMCE ***************************/
|
||||
tinyMCE.init({
|
||||
selector: 'textarea#body',
|
||||
|
||||
@@ -24,12 +24,10 @@ mix
|
||||
'node_modules/bootstrap/dist/css/bootstrap.min.css',
|
||||
'node_modules/bootstrap/dist/css/bootstrap-reboot.css',
|
||||
'node_modules/icheck/skins/flat/green.css',
|
||||
'node_modules/datatables/media/css/jquery.dataTables.min.css',
|
||||
'node_modules/animate.css/animate.min.css',
|
||||
'node_modules/bootstrap-datepicker/dist/css/bootstrap-datepicker.standalone.min.css',
|
||||
'node_modules/bootstrap-progressbar/css/bootstrap-progressbar-3.3.4.min.css',
|
||||
'node_modules/@fortawesome/fontawesome-free/css/svg-with-js.min.css',
|
||||
'node_modules/@fancyapps/fancybox/dist/jquery.fancybox.min.css',
|
||||
'node_modules/pnotify/dist/PNotifyBrightTheme.css',
|
||||
'node_modules/flexboxgrid2/flexboxgrid2.min.css',
|
||||
'resources/assets/css/custom.css'
|
||||
@@ -41,8 +39,6 @@ mix
|
||||
'node_modules/bootstrap/dist/js/bootstrap.bundle.js',
|
||||
'node_modules/@fortawesome/fontawesome-free/js/all.min.js',
|
||||
'node_modules/@fortawesome/fontawesome-free/js/v4-shims.min.js',
|
||||
'node_modules/@fancyapps/fancybox/dist/jquery.fancybox.min.js',
|
||||
'node_modules/datatables/media/js/jquery.dataTables.min.js',
|
||||
'node_modules/bootstrap-datepicker/dist/js/bootstrap-datepicker.min.js',
|
||||
'node_modules/autosize/dist/autosize.min.js',
|
||||
'node_modules/bootstrap-hover-dropdown/bootstrap-hover-dropdown.min.js',
|
||||
@@ -58,7 +54,6 @@ mix
|
||||
'node_modules/pnotify/dist/umd/PNotifyHistory.js',
|
||||
'node_modules/pnotify/dist/umd/PNotifyReference.js',
|
||||
'node_modules/tinymce/tinymce.min.js',
|
||||
'node_modules/jquery-colorbox/jquery.colorbox-min.js',
|
||||
'node_modules/pace-js/pace.min.js',
|
||||
'node_modules/icheck/icheck.min.js',
|
||||
'resources/assets/js/utils-admin.js',
|
||||
|
||||
Reference in New Issue
Block a user