-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstate.js
More file actions
44 lines (37 loc) · 1.35 KB
/
state.js
File metadata and controls
44 lines (37 loc) · 1.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
window.AppState = {
// Data Utama
collectedData: [],
uniqueUrls: new Set(),
// Status Bot
isAutoRunning: false,
// UI Cache
UI: {
btnScrape: document.getElementById('btnScrape'),
btnExport: document.getElementById('btnExport'),
// Automation Controls
btnAutoStart: document.getElementById('btnAutoStart'),
btnAutoStop: document.getElementById('btnAutoStop'),
inputDelayMin: document.getElementById('delayMin'),
inputDelayMax: document.getElementById('delayMax'),
autoStatusLabel: document.getElementById('auto-status'),
// Search & Filter
searchInput: document.getElementById('searchInput'),
toggleNot: document.getElementById('toggleNot'),
btnBulkDelete: document.getElementById('btnBulkDelete'), // <-- NEW
filteredCountLabel: document.getElementById('filtered-count'),
// Sort
sortBySelect: document.getElementById('sortBy'),
sortOrderSelect: document.getElementById('sortOrder'),
// Status & Containers
statusMsg: document.getElementById('status-msg'),
countLabel: document.getElementById('count'),
resultsContainer: document.getElementById('results'),
pageTypeIndicator: document.getElementById('page-type-indicator')
},
// Reset helper
reset: function() {
this.collectedData = [];
this.uniqueUrls.clear();
this.isAutoRunning = false;
}
};