-
-
Notifications
You must be signed in to change notification settings - Fork 170
Expand file tree
/
Copy pathchathistory.html
More file actions
196 lines (193 loc) · 6.23 KB
/
chathistory.html
File metadata and controls
196 lines (193 loc) · 6.23 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Message Browser</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
height: 100vh;
overflow: hidden;
}
#search-container {
padding: 10px;
background-color: #f0f0f0;
}
#search-input {
width: 100%;
padding: 5px;
font-size: 16px;
margin-bottom: 10px;
}
#filter-options {
display: flex;
flex-wrap: wrap;
align-items: flex-end;
gap: 10px;
row-gap: 15px;
}
.filter-group {
display: flex;
flex-direction: column;
min-width: 120px;
gap: 4px;
}
.filter-checkboxes {
display: flex;
flex-wrap: wrap;
gap: 12px;
align-items: center;
}
.filter-checkboxes label {
display: inline-flex;
align-items: center;
gap: 6px;
font-weight: normal;
}
#messages-container {
flex-grow: 1;
overflow-y: auto;
padding: 10px;
}
.message {
display: flex;
align-items: center;
padding: 10px;
border-bottom: 1px solid #e0e0e0;
}
.message:hover {
background-color: #f9f9f9;
}
.avatar {
width: 40px;
height: 40px;
min-height: 40px;
border-radius: 50%;
margin-right: 10px;
}
.message-content {
flex-grow: 1;
}
.user-name {
font-weight: bold;
}
.message-text {
margin-top: 5px;
}
.content-image {
max-height: 100px;
margin-top: 5px;
}
.donation {
color: green;
font-weight: bold;
}
.membership {
color: #0d47a1;
font-weight: bold;
}
img, svg, video {
max-width: 20px;
max-height: 20px;
}
.avatar {
max-width: 40px;
max-height: 40px;
width: 40px;
}
.export-container {
display: inline-flex;
align-items: center;
gap: 5px;
}
#export-button {
padding: 5px 10px;
background-color: #4CAF50;
color: white;
border: none;
cursor: pointer;
}
select, input[type="date"], input[type="text"] {
padding: 4px;
}
#date-filter-container {
display: none;
margin-left: 5px;
}
.filter-label {
font-weight: bold;
margin-right: 5px;
}
</style>
</head>
<body>
<div id="search-container">
<input type="text" id="search-input" placeholder="Search by name, id, message, or type...">
<div id="filter-options">
<div class="filter-group">
<span class="filter-label">Source:</span>
<select id="type-filter">
<option value="">All Sources</option>
</select>
</div>
<div class="filter-group">
<span class="filter-label">Username:</span>
<input type="text" id="username-filter" placeholder="eg: streamer123">
</div>
<div class="filter-group">
<span class="filter-label">Keyword:</span>
<input type="text" id="keyword-filter" placeholder="Search message text">
</div>
<div class="filter-group">
<span class="filter-label">Date Range:</span>
<div>
<input type="date" id="message-date-from">
<span>to</span>
<input type="date" id="message-date-to">
</div>
</div>
<div class="filter-group">
<span class="filter-label">Highlights:</span>
<div class="filter-checkboxes">
<label><input type="checkbox" id="donation-filter">Donations</label>
<label><input type="checkbox" id="membership-filter">Memberships</label>
</div>
</div>
<div class="filter-group" style="min-width: auto;">
<span class="filter-label"> </span>
<button id="clear-filters" type="button">Reset Filters</button>
</div>
<div class="export-container">
<span class="filter-label">Format:</span>
<select id="export-format">
<option value="json">JSON</option>
<option value="tsv">TSV</option>
<option value="html">HTML</option>
</select>
<span class="filter-label">Time Range:</span>
<select id="export-timeframe">
<option value="all">All Time</option>
<option value="day">Last 24 Hours</option>
<option value="week">Last Week</option>
<option value="month">Last Month</option>
<option value="custom">Custom Range</option>
</select>
<div id="date-filter-container">
<span class="filter-label">From:</span>
<input type="date" id="date-filter-from">
<span class="filter-label">To:</span>
<input type="date" id="date-filter-to">
</div>
<button id="export-button">Download</button>
</div>
</div>
</div>
<div id="messages-container"></div>
<script type="text/javascript" src="./chathistory.js?v=1"></script>
</body>
</html>