-
-
Notifications
You must be signed in to change notification settings - Fork 21
/
options.html
269 lines (264 loc) · 16.6 KB
/
options.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
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
<!doctype html>
<html ng-app="NimOptionsApp" ng-csp id="options-page">
<head>
<title class="i18n">pageOptionsTitle</title>
<!-- build:css css/vendor-options.min.css -->
<link rel="stylesheet" href="css/vendor/fontello-58946df5/css/fontello.css">
<link rel="stylesheet" href="node_modules/@materializecss/materialize/extras/noUiSlider/nouislider.css">
<!-- /build -->
<!-- build:css css/vendor.min.css -->
<link rel="stylesheet" href="css/vendor/font.css">
<link rel="stylesheet" href="node_modules/@materializecss/materialize/dist/css/materialize.min.css">
<link rel="stylesheet" href="node_modules/angular/angular-csp.css">
<!-- /build -->
<!-- build:css css/nim.min.css -->
<link rel="stylesheet" href="css/nim.css">
<!-- /build -->
<meta charset="UTF-8">
</head>
<body id="nim" ng-controller="nimOptionsController as main">
<div>
<div class="row">
<div class="col s12 center white-text" id="options-header"><span class="i18n">pageOptionsTitle</span></div>
</div>
<div class="row">
<div class="col s12">
<!--<iframe id="options-page-ads-iframe" frameborder="0" src="https://june07.github.io/nim/options-page-ads-dev.html"></iframe>-->
</div>
</div>
<div class="row" style="display: flex">
<div class="col s3">
<iframe id="options-page-ads-iframe" frameborder="0" src="https://june07.github.io/nim/options-page-ads.html"></iframe>
</div>
<div class="col s8">
<ul class="collection with-header swing">
<li class="collection-header" id="collections-header"><span class="i18n">general</span>
<a href="#modal1" class="additional-options modal-trigger"><i class="tiny icon-wrench right" id="additionalOptions"></i></a>
</li>
<li class="collection-item">
<div class="switch right">
<label><span class="i18n">off</span>
<input type="checkbox" ng-click="hideScaledOut({})" ng-model="bg.settings.newWindow" id="Open Inspector in new window" class="ga-track">
<span class="lever"></span><span class="i18n">on</span>
</label>
</div>
<span class="i18n">openInspectorNewWindow</span>
</li>
<li class="collection-item scale-transition" ng-class="bg.settings.newWindow ? '' : 'scale-out'">
<div class="switch right">
<label><span class="i18n">off</span>
<input type="checkbox" ng-model="bg.settings.windowFocused" id="Make Inspector Window Focused" class="ga-track">
<span class="lever"></span><span class="i18n">on</span>
</label>
</div>
<span class="i18n">makeInspectorWindowFocused</span>
</li>
<li class="collection-item scale-transition" ng-class="bg.settings.newWindow ? '' : 'scale-out'">
<div class="switch right">
<label><span class="i18n">off</span>
<input type="checkbox" ng-model="bg.settings.panelWindowType" id="Panel style window" class="ga-track">
<span class="lever"></span><span class="i18n">on</span>
</label>
</div>
<span class="i18n">inspectorWindowStyle</span>
</li>
<li class="collection-item scale-transition" ng-class="bg.settings.newWindow ? '' : 'scale-out'">
<div class="switch right">
<label><span class="i18n">off</span>
<input type="checkbox" ng-model="bg.settings.windowStateMaximized" id="Maximized window" class="ga-track">
<span class="lever"></span><span class="i18n">on</span>
</label>
</div>
<span class="i18n">optionsWindowStateMaximized</span>
</li>
<li class="collection-item scale-transition" ng-class="bg.settings.newWindow ? 'scale-out' : ''">
<div class="switch right">
<label><span class="i18n">off</span>
<input type="checkbox" ng-model="bg.settings.tabActive" id="Make Inspector tab active" class="ga-track">
<span class="lever"></span><span class="i18n">on</span>
</label>
</div>
<span class="i18n">makeInspectorTabActive</span>
</li>
<li class="collection-item">
<div class="switch right">
<label><span class="i18n">off</span>
<input type="checkbox" ng-model="bg.settings.focusOnBreakpoint" id="Focus on Breakpoint" class="ga-track">
<span class="lever"></span><span class="i18n">on</span>
</label>
</div>
<span class="i18n">focusOnBreakpoint</span>
</li>
<li class="collection-item">
<div class="switch right">
<label><span class="i18n">off</span>
<input type="checkbox" ng-model="bg.settings.autoClose" id="Auto Close Inspector window" class="ga-track">
<span class="lever"></span><span class="i18n">on</span>
</label>
</div>
<span class="i18n">autoCloseInspector</span>
</li>
<li class="collection-item">
<div class="switch right">
<label><span class="i18n">off</span>
<input type="checkbox" ng-model="bg.settings.group" id="Group Inspector Tabs" class="ga-track">
<span class="lever"></span><span class="i18n">on</span>
</label>
</div>
<span class="i18n">groupInspectorTabs</span>
</li>
<li class="collection-item">
<div class="switch right">
<label><span class="i18n">off</span>
<input type="checkbox" ng-click="resetDevToolsOption()" id="Local DevTools" class="ga-track">
<span class="lever"></span><span class="i18n">on</span>
</label>
</div>
<div ng-hide="bg.settings.localDevTools">
<span>{{ window.chrome.i18n.getMessage("defaultDevTools") }}</span>
<span id="devToolsCompat">
<label for="devToolsCompatCheckbox">
<input type="checkbox" id="devToolsCompatCheckbox" ng-model="bg.settings.devToolsCompat"/>
<span>DevToolsCompat</span>
</label>
</span>
<span id="devToolsBadge">DevTools Version ({{ devToolsOptionsName }}): <span class="badge badgeLabel">{{ devToolsOptionsUrl }}</span></span>
</div>
<a ng-hide="!bg.settings.localDevTools" class="dropdown-trigger" href="#" data-target="dropdown1">
<span id="selectDevToolsVersion">{{ window.chrome.i18n.getMessage("selectDevToolsVersion") }}</span>
<span id="devToolsBadge">DevTools Version ({{ devToolsOptionsName }}): <span class="badge badgeLabel">{{ devToolsOptionsUrl }}</span></span>
</a>
<ul id="dropdown1" class="dropdown-content">
<li><a href="#!" ng-click="setDevToolsOption(1)">{{ bg.localDevToolsOptions[1].name }}: {{ bg.localDevToolsOptions[1].url }} </a></li>
<li><a href="#!" ng-click="setDevToolsOption(2)">{{ bg.localDevToolsOptions[2].name }}: {{ bg.localDevToolsOptions[2].url }} </a></li>
<li><a href="#modal3" ng-click="setDevToolsOption(3)" class="modal-trigger">{{ bg.localDevToolsOptions[3].name }}: {{ bg.localDevToolsOptions[3].url }}</a></li>
</ul>
</li>
<li class="collection-item">
<div class="switch right">
<label><span class="i18n">off</span>
<input disabled type="checkbox" ng-model="bg.settings.collaboration" id="Real-time Collaboration" class="ga-track">
<span class="lever"></span><span class="i18n">on</span>
</label>
</div>
<a href="#modal2" class="modal-trigger"><span class="i18n">optionsRealtimeCollaboration</span></a>
</li>
<li class="collection-item">
<div class="switch right">
<label><span class="i18n">off</span>
<input type="checkbox" ng-model="bg.settings.nimsVscode.enabled" id="NiMS VSCode" class="ga-track">
<span class="lever"></span><span class="i18n">on</span>
</label>
</div>
<a href="https://bit.ly/2VwKeSZ" target="_blank"><span class="i18n">optionsNiMSVSCode</span></a>
</li>
<li class="collection-item">
<div class="switch right">
<label><span class="i18n">off</span>
<input type="checkbox" ng-model="bg.settings.notifications.enabled" id="Push Notifications" class="ga-track">
<span class="lever"></span><span class="i18n">on</span>
</label>
</div>
<span class="i18n">optionsNotifications</span>
</li>
<li class="collection-item">
<div class="switch right">
<label><span class="i18n">off</span>
<input type="checkbox" ng-model="bg.settings.diagnosticReports.enabled" id="Diagnostic Reports" class="ga-track">
<span class="lever"></span><span class="i18n">on</span>
</label>
</div>
<div>
<span class="i18n">optionsDiagnosticReports</span>
<span id="devToolsBadge">
<span id="devtoolsAPIKeyBadge">Brakecode API Key: <span id="brakecodeAPIKeyBadgeLabel" class="badge badgeLabel">
<span ng-mouseenter="maskKey(false)" ng-mouseleave="maskKey(true)" id="apikey">{{ apikey }}</span></span></span>
</span>
</div>
</li>
<li class="collection-item bottom">
<div class="row">
<div class="col s6">
<span class="i18n">secondsBetweenInspectorChecks</span>
<div class="right">
<span class="badge new i18n" data-badge-caption="seconds" id="checkInterval-value"></span>
</div>
<div id="checkInterval" ng-model="bg.settings.checkInterval"></div>
</div>
<div class="col s6">
<span class="i18n">nodeReportMaxMessages</span>
<div class="right">
<span class="badge new i18n" data-badge-caption="messages" id="nodeReportMaxMessages-value"></span>
</div>
<div id="nodeReportMaxMessages" ng-model="bg.settings.diagnosticReports.maxMessages"></div>
</div>
</div>
</li>
</ul>
</div>
<div class="col s1"></div>
</div>
<div class="row">
<div class="col s12 center"><a class="btn green" id="save button" value="Save Options" ng-click="saveButtonHandler()"><span class="i18n">save</span></a>
</div>
</div>
<div id="modal1" class="modal">
<div class="modal-content">
<ul class="collection with-header">
<li class="collection-header" id="collections-header-debugging"><span class="i18n">debugging</span></li>
<li class="collection-item">
<p>Debugging tutorial: <a href="https://june07.com/nim/debug">https://june07.com/nim/debug</a>.</p>
</li>
<li class="collection-item bottom">
<span class="i18n">debugVerbosity</span>
<div class="right">
<span class="badge new i18n" data-badge-caption="verbosity" id="debugVerbosityBadge"></span>
</div>
<div id="debugVerbosity" ng-model="bg.settings.debugVerbosity"></div>
</li>
</ul>
</div>
</div>
<div id="modal2" class="modal">
<div class="modal-content">
<ul class="collection with-header">
<li class="collection-header" id="collections-header-rtc"><span class="i18n">optionsRealtimeCollaboration</span></li>
<li class="collection-item" id="coming-soon">
<div class="row">
<span>Awesome Feature Coming Soon!</span>
</div>
</li>
</ul>
</div>
</ul>
</div>
<div id="modal3" class="modal">
<div class="modal-content">
<ul class="collection with-header">
<li class="collection-header" id="collections-header-customDevToolsURL"><span class="i18n">optionsCustomDevToolsURL</span></li>
<li class="collection-item">
<input placeholder="" ng-model="bg.localDevToolsOptions[3].url" id="devtools_url" type="url" class="validate" pattern="(chrome-devtools:\/\/|https:\/\/chrome-devtools-frontend(.appspot.com|.june07.com)).*(inspector.html|js_app.html)" ng-pattern="/(chrome-devtools:\/\/|https:\/\/chrome-devtools-frontend(.appspot.com|.june07.com)).*(inspector.html|js_app.html)/">
<label for="devtools_url">DevTools URL <span id="nim-custom-devtools-url-blogpost"><a href="https://june07.com/blog/nim-custom-devtools-url" target="_blank">(Not sure what to put here...)</a></span></label>
<div><a class="btn green" id="save-button-custom-devtools" value="Save Custom DevTools" ng-click="saveCustomDevToolsButtonHandler()"><span class="i18n">save</span></a></div>
</li>
</ul>
</div>
</div>
<!-- build:[src]:min js/googleanalytics.min.js -->
<script type="text/javascript" src="./js/googleanalytics.js"></script>
<!-- /build -->
<!-- build:[src] js/ -->
<script type="text/javascript" src="node_modules/jquery/dist/jquery.min.js"></script>
<script type="text/javascript" src="node_modules/angular/angular.min.js"></script>
<script type="text/javascript" src="node_modules/@materializecss/materialize/dist/js/materialize.min.js"></script>
<script type="text/javascript" src="node_modules/@materializecss/materialize/extras/noUiSlider/nouislider.min.js"></script>
<script type="text/javascript" src="node_modules/angular-animate/angular-animate.min.js"></script>
<!-- /build -->
<!-- build:[src]:min js/wNumb.min.js -->
<script type="text/javascript" src="./js/wNumb.js"></script>
<!-- /build -->
<!-- build:[src]:min options.min.js -->
<script type="text/javascript" src="options.js"></script>
<!-- /build -->
</body>
</html>