-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
303 lines (282 loc) · 15.1 KB
/
Copy pathindex.html
File metadata and controls
303 lines (282 loc) · 15.1 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
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
<!DOCTYPE html>
<html ng-app="Feedr" ng-controller="MainCtrl">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title ng-if="notificationsCount">({{ notificationsCount }}) Activity Watcher • {{ app.title }}</title>
<title ng-if="! notificationsCount">Activity Watcher • {{ app.title }}</title>
<meta name="theme-color" content="{{ bgColor }}">
<meta name="msapplication-navbutton-color" content="{{ bgColor }}">
<meta name="apple-mobile-web-app-status-bar-style" content="{{ bgColor }}">
<link rel="stylesheet" type="text/css" href="//cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.2.4/semantic.min.css" />
<link rel="stylesheet/less" type="text/css" href="less/main.less" />
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/less.js/2.7.1/less.min.js"></script>
<script type="text/javascript" src="//code.jquery.com/jquery-3.1.0.min.js"></script>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/angular.js/1.5.8/angular.min.js"></script>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/angular.js/1.5.8/angular-sanitize.min.js"></script>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/moment.js/2.14.1/moment.min.js"></script>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.2.4/components/transition.min.js"></script>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.2.4/components/popup.min.js"></script>
<script type="text/javascript" src="js/md5.min.js"></script>
<script type="text/javascript" src="js/moment-precise-range.js"></script>
<script type="text/javascript" src="js/config.js"></script>
<script type="text/javascript" src="js/helpers.js"></script>
<script type="text/javascript" src="js/app.js"></script>
</head>
<body ng-class="{ light: theme === 'light' }">
<div id="buttons">
<div id="toggle-user-sidebar" ng-click="toggleSidebar()" ng-if="app.user" ng-class="{ open: displaySidebar }">
<i class="user icon"></i>
</div>
<div ng-click="toggleTheme()">
<i class="lightbulb icon" data-content="Toggle {{ theme == 'light' ? 'Dark' : 'White' }} Theme"></i>
</div>
<div ng-click="toggleNotifications()">
<i class="alarm outline icon" ng-class="{ mute: ! notificationsEnabled }"
data-content="{{ notificationsEnabled ? 'Mute' : 'Umute' }} Notifications"></i>
</div>
<div>
<i class="options icon" ng-click="showActivityTypes = ! showActivityTypes"></i>
<ul ng-show="showActivityTypes">
<li ng-click="changeActivityType('all')" ng-class="{ checked: activityType == 'all' }">
<i class="check icon"></i>
All Activity
</li>
<li ng-click="changeActivityType('topic')" ng-class="{ checked: activityType == 'topic' }">
<i class="check icon"></i>
Topics Activity
</li>
<li ng-click="changeActivityType('content')" ng-class="{ checked: activityType == 'content' }">
<i class="check icon"></i>
Posts & Topics Activity
</li>
</ul>
</div>
<div ng-click="toggleBanlist()">
<i class="ban icon" data-content="Show Ban List"></i>
</div>
</div>
<div id="wrapper" class="ui grid">
<div class="twelve wide column" ng-class="{ blurred: displaySidebar }">
<div id="header" class="padded">
<h1>
<span class="blink" title="Auto-refreshing every 5 seconds">•</span>
{{ app.shortTitle }}
<span>Activity Watcher</span>
</h1>
<nav>
<ul>
<li ng-repeat="link in app.nav">
<a ng-class="{ focused: link.highlight }" href="{{ link.url | makeUrl }}" target="{{ link.target }}">
<i class="{{ link.icon }} icon"></i>
{{ link.title }}
</a>
</li>
</ul>
</nav>
<div class="clear"></div>
</div>
<div id="list">
<div class="ui dimmer" ng-class="{ active: ! activity.length, inverted: theme == 'light' }">
<div class="ui text loader">Loading initial activity...</div>
</div>
<div class="glow"></div>
<div class="item" ng-repeat="item in activity | orderBy: '-timestamp'"
ng-if="item.type != 'unsupported' && ! item.skip && (
activityType == 'all' ||
item.event == activityType ||
item.type == activityType)"
ng-class="{
event: item.event == 'action',
content: item.event == 'content',
unfocused: item.unfocused
}">
<a ng-attr-href="{{ item.url }}" target="_blank">
<table>
<tr>
<td class="author-avatar"
ng-if="item.author_photo || item.type == 'join' || item.type == 'rep' || item.type.substr(0, 6) == 'follow'">
<div class="photo">
<img ng-if="item.author_photo && item.type != 'join' && item.type.substr(0, 6) != 'follow'"
check-src="item.author_photo" />
<i class="user add icon" ng-if="item.type == 'join'"></i>
<i class="plus icon" ng-if="item.type == 'rep' && item.title == 'positive'"></i>
<i class="minus icon" ng-if="item.type == 'rep' && item.title != 'positive'"></i>
<i class="eye icon" ng-if="item.type.substr(0, 6) == 'follow'"></i>
</div>
</td>
<td class="content">
<div class="main" ng-if="item.event == 'content'">
<span ng-if="item.author_url">
<a href="{{ item.author_url }}" target="_blank">
<span class="author">{{ item.author }}</span>
</a>
</span>
<span ng-if="item.author && ! item.author_url">
<span class="author">{{ item.author }}</span>
</span>
<span ng-if="item.type == 'post'">
replied to
</span>
<span ng-if="item.type == 'topic'">
started
</span>
<strong class="title">{{ item.title }}</strong>
<span ng-if="item.category">
in <a href="{{ item.category_url }}" target="_blank">{{ item.category }}</a>
</span>
</div>
<div class="event">
<div ng-if="item.type == 'join'">
<a href="{{ item.author_url }}" target="_blank">
<strong>{{ item.author }}</strong>
</a>
<span>has joined RST</span>
</div>
<div ng-if="item.type == 'follow_topic'">
<a href="{{ item.author_url }}" target="_blank">
<strong>{{ item.author }}</strong>
</a>
<span>is now following</span>
<a href="{{ item.url }}" target="_blank">
<strong>{{ item.title }}</strong>
</a>
</div>
<div ng-if="item.type == 'follow_user'">
<a href="{{ item.author_url }}" target="_blank">
<strong>{{ item.author }}</strong>
</a>
<span>is now following</span>
<a href="{{ item.target_url }}" target="_blank">
<strong>{{ item.target }}</strong>
</a>
</div>
<div ng-if="item.type == 'profile_photo'">
<a href="{{ item.author_url }}" target="_blank">
<strong>{{ item.author }}</strong>
</a>
<span>changed their profile photo</span>
</div>
<div ng-if="item.type == 'rep'">
<a href="{{ item.author_url }}" target="_blank">
<strong>{{ item.author }}</strong>
</a>
<span>gave <strong>{{ item.title }}</strong> reputation in</span>
<a href="{{ item.target_url }}" target="_blank">
{{ item.target }}
</a>
</div>
</div>
<div class="post-content" ng-if="item.content">
<div ng-bind-html="item.content"></div>
</div>
</td>
<td class="timestamp">
<timestamp date="item.timestamp * 1000"></timestamp>
</td>
</tr>
</table>
</a>
</div>
</div>
</div>
<div id="login" class="four wide column" ng-if="! app.user">
<h4>Are you a member?</h4>
<h2>Please Login</h2>
<form class="ui form" action="{{ app.url + '/login/' }}" method="POST">
<div class="field">
<input type="text" name="auth" placeholder="Username" />
</div>
<div class="field">
<input type="password" name="password" placeholder="Password" />
</div>
<div class="ui grid">
<div class="ten wide column">
Don't have an account? <a href="{{ app.url }}/register/">Register</a>
</div>
<div class="six wide column right aligned">
<button type="submit" class="ui green icon button">
<i class="sign in icon"></i>
Sign In
</button>
</div>
</div>
<input type="hidden" name="login__standard_submitted" value="1">
<input type="hidden" name="remember_me_checkbox" value="1">
<input type="hidden" name="signin_anonymous" value="0">
<input type="hidden" name="csrfKey" value="{{ app.csrfKey }}" />
</form>
</div>
<div id="user" class="four wide column" ng-if="app.user" ng-class="{ open: displaySidebar }">
<div class="bar">
<table>
<tr>
<td>
<div class="avatar">
<a href="{{ app.user.url }}" target="_blank">
<img check-src="app.user.avatar" />
</a>
</div>
</td>
<td class="name">
<div class="greeting">Welcome back,</div>
<div><a href="{{ app.user.url }}" target="_blank">{{ app.user.name }}</a></div>
</td>
</tr>
</table>
</div>
<div class="tabs ui grid" ng-class="{ 'three columns': app.user.isMod, 'two columns': ! app.user.isMod }">
<div class="wide column" ng-click="selectTab('alerts')" ng-class="{ active: tab == 'alerts' }">
<div class="notification-counter" ng-if="$root.notificationsCounter.alerts">{{
$root.notificationsCounter.alerts }}
</div>
<i class="bell icon"></i>
</div>
<div class="wide column" ng-click="selectTab('inbox')" ng-class="{ active: tab == 'inbox' }">
<div class="notification-counter" ng-if="$root.notificationsCounter.inbox">{{
$root.notificationsCounter.inbox }}
</div>
<i class="envelope icon"></i>
</div>
<div class="wide column" ng-click="selectTab('reports')" ng-class="{ active: tab == 'reports' }"
ng-if="app.user.isMod">
<div class="notification-counter" ng-if="$root.notificationsCounter.reports">{{
$root.notificationsCounter.reports }}
</div>
<i class="warning sign icon"></i>
</div>
</div>
<div class="wrapper">
<list resource="alerts" csrfKey="app.csrfKey" ng-show="tab == 'alerts'"></list>
<list resource="inbox" csrfKey="app.csrfKey" ng-show="tab == 'inbox'"></list>
<list resource="reports" csrfKey="app.csrfKey" ng-show="tab == 'reports'" ng-if="app.user.isMod"></list>
</div>
</div>
<div id="footer" class="sixteen wide column">
<span><i class="copyright icon"></i> <a href="{{ app.url }}">{{ app.title }}</a></span>
<span class="right floated"><i class="code icon"></i> Developed by <a href="http://degecko.com" target="_blank">Gecko</a></span>
</div>
</div>
<div id="banlist" ng-show="displayBanlist">
<div class="close" ng-click="displayBanlist = false">
<i class="close icon"></i>
</div>
<div>
<h3>Banned Content</h3>
<p>It only ignores activity content, not PMs or notifications.</p>
<p>Separate each entry by a new line (enter).</p>
<h3>Ignored Authors</h3>
</div>
<textarea ng-model="banned" placeholder="e.g.: john_doe_1337"></textarea>
<div>
<h3>Ignored Categories</h3>
</div>
<textarea ng-model="ignoredCategories" placeholder="e.g.: Cosul de gunoi"></textarea>
</div>
<div id="initializing-dimmer" class="ui dimmer" ng-class="{ active: initializing, inverted: theme === 'light' }">
<div class="ui large text loader">
Loading activity...
</div>
</div>
</body>
</html>