-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
80 lines (73 loc) · 3.41 KB
/
index.html
File metadata and controls
80 lines (73 loc) · 3.41 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Apex Debug Log Parser</title>
<link rel="manifest" href="manifest.json">
<link rel="icon" type="image/png" href="icon-192.png">
<link rel="apple-touch-icon" href="icon-192.png">
<meta name="theme-color" content="#08080f">
<meta name="description" content="Parse Salesforce Apex debug logs into structured, filterable, color-coded views with governor limit tracking.">
<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600;700&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="styles.css">
</head>
<body>
<!-- input view -->
<div id="input-view">
<div class="input-subtitle">Salesforce Developer Tools</div>
<h1 class="input-title">Apex Debug Log Parser</h1>
<p class="input-desc">Paste a debug log or drop a .log file to parse it into a structured, filterable view.</p>
<div class="drop-zone" id="drop-zone">
<div class="drop-overlay">Drop .log file here</div>
<textarea id="log-input" placeholder="Paste your Salesforce debug log here..." spellcheck="false"></textarea>
</div>
<div class="input-actions">
<button class="btn-primary" id="btn-parse">Parse Log</button>
<button class="btn-primary" id="btn-browse" style="background:transparent;border:1px solid var(--accent);color:var(--accent);">Browse File</button>
<button class="btn-primary" id="btn-sample" style="background:transparent;border:1px solid #333;color:var(--text-dim);">Load Sample</button>
<input type="file" id="file-input" accept=".log,.txt,.debug" hidden>
<span class="input-hint">or drag & drop · Ctrl+V to paste</span>
</div>
</div>
<!-- parsed view -->
<div id="parsed-view">
<!-- header bar -->
<div class="header-bar">
<div class="header-top">
<div class="header-left">
<span class="header-title">Apex Log Parser</span>
<span class="header-badge" id="line-count"></span>
<span class="header-meta" id="exec-time"></span>
</div>
<div class="header-actions">
<button class="btn-toolbar" id="btn-copy">Copy</button>
<button class="btn-toolbar active" id="btn-limits" aria-expanded="true">Limits</button>
<button class="btn-toolbar" id="btn-clear">Clear</button>
</div>
</div>
<div class="filters-row" id="filters-row">
<input type="text" id="search-input" placeholder="Search logs... (Ctrl+F)" aria-label="Search parsed log lines">
<span id="search-count" style="font-size:10px;font-family:var(--mono);color:var(--text-ghost);min-width:60px;"></span>
<button id="search-prev" class="search-nav-btn" title="Previous match (Shift+Enter)">▲</button>
<button id="search-next" class="search-nav-btn" title="Next match (Enter)">▼</button>
<div class="filter-sep"></div>
<!-- filter chips injected by js -->
</div>
</div>
<!-- main layout -->
<div class="main-layout">
<div class="log-pane">
<div class="stats-bar" id="stats-bar"></div>
<div id="log-lines"></div>
</div>
<div class="limits-panel" id="limits-panel">
<div class="limits-title">Governor Limits</div>
<div id="limits-content"></div>
</div>
</div>
</div>
<button class="scroll-top-btn" id="btn-scroll-top" title="Scroll to top">↑</button>
<script src="app.js"></script>
</body>
</html>