/
popup.html
222 lines (219 loc) · 13.4 KB
/
popup.html
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
<!doctype html>
<script type="text/javascript" src="https://apis.google.com/js/platform.js" async defer></script>
<!-- build:[src]:min ./js/googleanalytics.min.js -->
<script type="text/javascript" src="./js/googleanalytics.js"></script>
<!-- /build -->
<script type="text/javascript" src="./js/jquery.min.js"></script>
<script type="text/javascript" src="./js/angular.min.js"></script>
<script type="text/javascript" src="./js/materialize.min.js"></script>
<script type="text/javascript" src="./js/moment.min.js"></script>
<script type="text/javascript" src="./js/angular-moment.min.js"></script>
<script type="text/javascript" src="./js/perfect-scrollbar.jquery.min.js"></script>
<script type="text/javascript" src="./js/perfect-scrollbar.min.js"></script>
<script type="text/javascript" src="./js/bootstrap-notify.min.js"></script>
<!-- build:[src]:min popup.min.js -->
<script type="text/javascript" src="popup.js"></script>
<!-- /build -->
<html ng-app="NimPopupApp" ng-csp>
<head>
<title>
<span class="i18n">appName</span>
</title>
<!-- build:css ./css/vendor-popup.min.css -->
<link rel="stylesheet" href="./css/vendor/popup/fontello.css">
<link rel="stylesheet" href="./css/vendor/popup/bootstrap.min.css">
<link rel="stylesheet" href="./css/vendor/popup/animate.min.css">
<link rel="stylesheet" href="./css/vendor/popup/perfect-scrollbar.min.css">
<!-- /build -->
<!-- build:css ./css/vendor.min.css -->
<link rel="stylesheet" href="./css/vendor/font.css">
<link rel="stylesheet" href="./css/vendor/materialize.css">
<!-- /build -->
<!-- build:css ./css/nim.min.css -->
<link rel="stylesheet" href="./css/nim.css">
<!-- /build -->
<meta charset="UTF-8">
</head>
<body ng-controller="nimPopupController as main" class="right">
<!-- BEGIN Modal No Notifications -->
<div id="modal3" class="modal">
<div class="modal-header">
<button type="button" class="close" aria-label="Close">
<span class="close-x" aria-hidden="true"><i class="icon-cancel"></i></span>
</button>
</div>
<div id="modal3-content" class="modal-content">
<div id="uptodate">
<p><span id="no-notifications" class="i18n">noNotifications</span></p>
<i class="icon-inbox-1"></i><br>
</div>
</div>
</div>
<!-- END Modal No Notifications -->
<!-- Modal Structure Notifications -->
<div id="modal1" class="modal">
<div class="modal-header">
<button type="button" class="close" aria-label="Close">
<span class="close-x" aria-hidden="true"><i class="icon-cancel"></i></span>
</button>
</div>
<div class="modal-content">
<table class="table table-striped">
<thead>
<tr>
<th width="15%"><a href="#" ng-click="sortType = 'notification.type'; sortReverse = !sortReverse">Type
<i ng-show="sortType == 'notification.type' && sortReverse" class="icon-down-open-big"></i>
<i ng-show="sortType == 'notification.type' && !sortReverse" class="icon-up-open-big"></i></a></th>
<th><a href="#" ng-click="sortType = 'notification.title'; sortReverse = !sortReverse">Subject
<i ng-show="sortType == 'notification.title' && sortReverse" class="icon-down-open-big"></i>
<i ng-show="sortType == 'notification.title' && !sortReverse" class="icon-up-open-big"></i></a></th>
<th width="20%"><a href="#" ng-click="sortType = 'date'; sortReverse = !sortReverse">Date
<i ng-show="sortType == 'date' && sortReverse" class="icon-down-open-big"></i>
<i ng-show="sortType == 'date' && !sortReverse" class="icon-up-open-big"></i></a></th>
</tr>
</thead>
<tbody>
<tr ng-repeat-start="notification in bg.notifications | orderBy:sortType:sortReverse" ng-click="main.active=notification.date" >
<td><i class="material-icons">{{notification.notification.icon}}</i></td>
<td><h3 class="notification-title">{{notification.notification.title}}</h3>
<div ng-show="main.active!=notification.date"><p class="notification-message">{{notification.notification.message | stringLimit: 120: true }}</div>
<div ng-show="main.active==notification.date"><p class="notification-message">{{notification.notification.message | stringLimit: 120: false }}</div></td>
<td><span am-time-ago="notification.date"></span></td>
</tr>
<tr ng-repeat-end ng-show="main.active==notification.date">
<td class="active-cell"></td>
<td class="notification-message active-cell">{{notification.notification.message | stringLimit: -120: true}}</td>
<td class="active-cell"></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<!-- Modal Structure -->
<div id="modal2" class="modal">
<div class="modal-header">
<button type="button" class="close" aria-label="Close">
<span class="close-x" aria-hidden="true"><i class="icon-cancel"></i></span>
</button>
</div>
<div class="modal-content">
<div class="page-header" data-pg-collapsed>
<h3><span class="i18n">donationModalHeader</span><br><small>Thank you</small></h3>
</div>
<div id="donation-container" class="container">
<div class="row">
<div class="col-xs-3">
Paypal
</div>
<div class="col-xs-8">
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="YNAGPPBM6R8EU">
<input type="image" src="https://www.paypalobjects.com/webstatic/en_US/i/btn/png/silver-rect-paypal-44px.png" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>
</div>
</div>
<div class="row">
<div class="col-xs-3">
Flattr
</div>
<div class="col-xs-8">
<a class="donate-button" id="flattr-donate-button" href="https://flattr.com/submit/auto?fid=voplwe&url=http%3A%2F%2Fjune07.com" target="_blank"><img height="44px" src="./image/flattr.svg" alt="Flattr this" title="Flattr this" border="0"></a>
</div>
</div>
<div class="row">
<div class="col-xs-3">
Donorbox
</div>
<div class="col-xs-8">
<a class="donate-button" " href="https://donorbox.org/chrome-extentions" target="_blank" style="background:#5cb85c url(https://d1iczxrky3cnb2.cloudfront.net/white_logo.png) no-repeat 18px center; color: #fff;text-decoration: none;font-family: Verdana,sans-serif;display: inline-block;font-size: 16px;padding: 13px 17px 13px 56px; -webkit-border-radius: 2px; -moz-border-radius: 2px; border-radius: 2px; box-shadow: 0 1px 0 0 #408040; text-shadow: 0 1px rgba(0, 0, 0, 0.3);" >Donate</a>
</div>
</div>
<div class="row">
<div class="col-xs-3">
Bitcoin
</div>
<div class="col-xs-8">
<a class="donate-button" id="mycelium-donate-button" href="https://gateway.gear.mycelium.com/widgets/dfcf0217aea4d3b0ebcd4b3406522ae5f334f9ba681f912f2c3264eea7ce8c97" target="_blank"><img src="./image/bitcoin.png"></a>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="container container-page">
<div class="row">
<div class="col s12 m4 l4 valign-wrapper header-column">
<div class="fixed-action-btn horizontal" style="bottom: 85px; right: 15px;">
<a class="btn-floating green lighten-5"> <i class="large"></i> </a>
<ul>
<li>
<a ng-if="bg.notifications" href="#modal1" class="btn btn-floating green lighten-2"><i class="icon-note"></i></a>
<a ng-if="!bg.notifications" href="#modal3" class="btn btn-floating green lighten-2"><i class="icon-inbox"></i></a>
</li>
<li>
<a class="btn-floating green lighten-1" id="options-button"><i class="icon-params"></i></a>
</li>
</ul>
</div>
<img src="./icon/icon128.png" class="left logo-padding" />
<div class="header left valign">
<span class="i18n">appName</span>
</div>
</div>
</div>
<div class="row">
<div class="col l2 m1"></div>
<div class="col s11 m12 l12">
<form>
<div class="row">
<div class="input-field col s6">
<input placeholder="localhost" pattern="((^(([0-9]|[1-9][0-9]|1([0-1][0-9]|2[0-6]))\.([0-9]|[1-9][0-9]|1([0-9][0-9])|2([0-4][0-9]|5[0-5]))\.([0-9]|[1-9][0-9]|1([0-9][0-9])|2([0-4][0-9]|5[0-5]))\.([0-9]|[1-9][0-9]|1([0-9][0-9])|2([0-4][0-9]|5[0-5]))|127\.0\.0\.([0-1]))$)|(^(1(2[8-9]|[3-9][0-9])|2([0-4][0-9]|5[0-5]))\.([0-9]|[1-9][0-9]|1([0-9][0-9])|2([0-4][0-9]|5[0-5]))\.([0-9]|[1-9][0-9]|1([0-9][0-9])|2([0-4][0-9]|5[0-5]))\.([0-9]|[1-9][0-9]|1([0-9][0-9])|2([0-4][0-9]|5[0-5]))$)|localhost)" id="hostname" type="text" class="validate card-title input-text ga-track" ng-model="bg.settings.host">
<font color="#9e9e9e"><span class="i18n">Hostname</span></font>
</div>
<div class="input-field col s6">
<input id="port" type="text" class="validate card-title input-text ga-track" value placeholder="9229" pattern="([1-9]|[1-8][0-9]|9[0-9]|[1-8][0-9]{2}|9[0-8][0-9]|99[0-9]|[1-8][0-9]{3}|9[0-8][0-9]{2}|99[0-8][0-9]|999[0-9]|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5])" ng-model="bg.settings.port">
<font color="#9e9e9e"><span class="i18n">Port</span></font>
</div>
</div>
<div class="row">
<div class="col s12 center">
<span class="waves-effect waves-light"><input type="button" id="open devtools" value="Open DevTools" ng-disabled="bg.settings.auto" class="btn green lighten-1 ga-track i18n" ng-click="clickHandler()"></span>
<div id="autoManualSwitch" class="switch" ng-true-value="true" ng-false-value="false">
<label>
<span class="i18n">Manual</span>
<input id="auto switch" type="checkbox" ng-model="bg.settings.auto" class="ga-track" ng-click="switchHandler()">
<span class="lever"></span>
<span class="i18n">Auto</span>
</label>
</div>
</div>
</div>
</form>
</div>
<div class="col m1 l2"></div>
</div>
<div class="row row-footer">
<footer class="page-footer grey lighten-3">
<div class="footer-copyright">
<div class="container footer-text">
<a id="site-href" target="_blank" href="https://june07.com">© 2016-2017 June07</a>
<div class="right">
<div id="g-plusone" class="g-plusone" data-align="right" expandTo="bottom, left, top, right" data-href="https://chrome.google.com/webstore/detail/nim-node-inspector-manage/gnhhdgbaldcilmgcpfddgdbkhjohddkj"></div>
<a class="btn green lighten-2" href="#modal2" id="donate-button"><span class="i18n">Donate</span></a>
</div>
</div>
</div>
</footer>
</div>
</div>
<div class="card green container-message" ng-if="bg.settings.debug">
<div class="card-content green lighten-5 black-text">
<p class="message"><span class="i18n">Enabled</span>: {{ bg.loaded | date:'yyyy-MM-dd HH:mm Z' }}<br><span class="i18n">Uptime</span>: {{ bg.moment.duration(bg.timerUptime, 'seconds').humanize(); }}</p>
<p class="message">{{bg.message}}</p>
</div>
</div>
</body>
</html>