MCPcopy Create free account
hub / github.com/dedsec1121fk/DedSec / network_autostart_if_enabled

Function network_autostart_if_enabled

Scripts/Settings.py:7527–7545  ·  view source on GitHub ↗
(silent=True)

Source from the content-addressed store, hash-verified

7525 var editorPanel=document.getElementById('editorPanel'); if(editorPanel && window.matchMedia('(max-width:760px)').matches) window.setTimeout(function(){ editorPanel.scrollIntoView({behavior:'smooth',block:'start'}); },80);
7526 } catch (err) { handleError(err); }
7527 });
7528 });
7529 document.querySelectorAll('.copy-item').forEach(function(btn) {
7530 btn.addEventListener('click', function(){
7531 state.clipboard = { mode: 'copy', path: btn.getAttribute('data-path') };
7532 showToast(t('Copied to clipboard'));
7533 });
7534 });
7535 document.querySelectorAll('.move-item').forEach(function(btn) {
7536 btn.addEventListener('click', function(){
7537 state.clipboard = { mode: 'move', path: btn.getAttribute('data-path') };
7538 showToast(t('Move queued'));
7539 });
7540 });
7541 document.querySelectorAll('.delete-item').forEach(function(btn) {
7542 btn.addEventListener('click', async function(){
7543 if (!window.confirm(t('Delete this item?'))) return;
7544 try {
7545 await apiPost('/api/fs/delete', { path: btn.getAttribute('data-path') });
7546 await loadFiles(state.filesPath);
7547 showToast(t('Deleted'));
7548 } catch (err) { handleError(err); }

Callers 2

network_session_guardFunction · 0.70
Settings.pyFile · 0.70

Calls 6

network_load_configFunction · 0.70
network_start_torFunction · 0.70
network_save_configFunction · 0.70

Tested by

no test coverage detected