config data to local storage, notifications
[iot-control-center.git] / index.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
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
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title>IoT Control Center</title>
  <!-- Tell the browser to be responsive to screen width -->
  <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
  <link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap.min.css">
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.5.0/css/font-awesome.min.css">
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/ionicons/2.0.1/css/ionicons.min.css">
 
  <link rel="stylesheet" href="bower_components/AdminLTE/dist/css/AdminLTE.min.css">
  <link rel="stylesheet" href="bower_components/AdminLTE/dist/css/skins/_all-skins.min.css">
  <link rel="stylesheet" href="assets/css/iotcc.css">
</head>
 
<body class="hold-transition skin-blue sidebar-mini sidebar-collapse">
<div class="wrapper">
    <header class="main-header">
    <!-- Logo -->
    <a href="#dashboard" class="logo">
      <!-- mini logo for sidebar mini 50x50 pixels -->
      <span class="logo-mini"><b>IoT</b></span>
      <!-- logo for regular state and mobile devices -->
      <span class="logo-lg"><b>IoT</b> Control Center</span>
    </a>
 
    <!-- Header Navbar: style can be found in header.less -->
    <nav class="navbar navbar-static-top">
      <!-- Sidebar toggle button-->
      <a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
        <span class="sr-only">Toggle navigation</span>
      </a>
      <!-- Navbar Right Menu -->
      <div class="navbar-custom-menu">
        <ul class="nav navbar-nav">
          <!-- Control Sidebar Toggle Button -->
          <li>
            <a href="#" data-toggle="control-sidebar"><i class="fa fa-gear"></i></a>
          </li>
        </ul>
      </div>
    </nav>
  </header>
  <!-- Left side column. contains the logo and sidebar -->
  <aside class="main-sidebar">
    <!-- sidebar: style can be found in sidebar.less -->
    <section class="sidebar">
      <!-- /.search form -->
      <!-- sidebar menu: : style can be found in sidebar.less -->
      <ul class="sidebar-menu">
        <!--li class="header">Options</li-->
        <li class="active">
            <a href="#" class="navigation" data-section="dashboard">
                <i class="fa fa-dashboard"></i> <span>Dashboard</span>
            </a>
        </li>
        <li>
            <a href="#" class="navigation" data-section="settings">
                <i class="fa fa-gears"></i> <span>Settings</span>
            </a>
        </li>
        <li>
            <a href="#" class="navigation" data-section="log">
                <i class="fa fa-align-justify"></i> <span>Log</span>
            </a>
        </li>
      </ul>
    </section>
    <!-- /.sidebar -->
  </aside>
 
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
    <section class="content-header" data-section="dashboard">
        <h1>Dashboard</h1>
        <ol class="breadcrumb">
            <li class="active"><i class="fa fa-dashboard"></i> Dashboard</li>
        </ol>
    </section>
 
    <section class="content-header hide" data-section="settings">
        <h1>Settings</h1>
        <ol class="breadcrumb">
            <li class="active"><i class="fa fa-gears"></i> Settings</li>
        </ol>
    </section>
 
    <section class="content-header hide" data-section="log">
        <h1>Log</h1>
        <ol class="breadcrumb">
            <li class="active"><i class="fa fa-gears"></i> Logs</li>
        </ol>
    </section>
 
    <!-- Dashboard content -->
    <section class="content" data-section="dashboard">
 
        <div class="row">
          <div class="col-md-12">
            <div class="tab-bar tab-bar--top tab-bar--material pagination hide">
              <label class="tab-bar__item tab-bar--material__item" data-pagination="0">
                <input type="radio" name="tab-bar-material-a" checked="checked">
                <button class="tab-bar__button tab-bar--material__button">
                  <i class="tab-bar__icon tab-bar--material__icon ion-drag"></i>
                  <div class="tab-bar__label tab-bar--material__label">All</div>
                </button>
              </label>
            </div>
          </div>
        </div>
 
        <div class="row">
          <div class="col-md-12">
            <div class="callout notification-dashboard hide">
              <h4></h4>
              <span></span>
            </div>
          </div>
        </div>
 
    </section>
 
    <!-- Settings content -->
    <section class="content hide" data-section="settings">
 
      <div class="row">
        <div class="col-md-12">
          <div class="callout notification-settings hide">
            <h4></h4>
            <span></span>
          </div>
        </div>
      </div>
 
      <div class="row">
        <div class="col-md-12">
          <div class="box box-primary">
            <div class="box-header with-border">
              <h3 class="box-title">MQTT connection data</h3>
            </div>
            <!-- /.box-header -->
            <!-- form start -->
            <form id="mqttConfig">
              <div class="box-body">
                <div class="form-group">
                  <label for="mqttClientId">Client ID</label>
                  <input type="text" class="form-control" id="mqttClientId" name="mqttClientId" placeholder="Client ID" />
                </div>
                <div class="form-group">
                  <label for="mqttHost">Host</label>
                  <input type="text" class="form-control" id="mqttHost" name="mqttHost" placeholder="Host" />
                </div>
                <div class="form-group">
                  <label for="mqttHost">Port</label>
                  <input type="text" class="form-control" id="mqttPort" name="mqttPort" placeholder="Port" />
                </div>
                <div class="form-group">
                  <label for="mqttUser">Username</label>
                  <input type="text" class="form-control" id="mqttUser" name="mqttUser" placeholder="Username" />
                </div>
                <div class="form-group">
                  <label for="mqttPass">Password</label>
                  <input type="text" class="form-control" id="mqttPass" name="mqttPass" placeholder="Password" />
                </div>
                <div class="checkbox">
                  <label for="mqttSecure">
                    <input type="checkbox" id="mqttSecure" name="mqttSecure" /> Secure
                  </label>
                </div>
                <div class="checkbox">
                  <label for="mqttDebug">
                    <input type="checkbox" id="mqttDebug" name="mqttDebug" /> Debug
                  </label>
                </div>
                <div class="checkbox">
                  <label for="mqttSimulateDevices">
                    <input type="checkbox" id="mqttSimulateDevices" name="mqttSimulateDevices" /> Simulate devices
                  </label>
                </div>
              </div>
              <!-- /.box-body -->
 
              <div class="box-footer">
                <button type="submit" class="btn btn-primary" id="saveMqttConfig">Save</button>
              </div>
            </form>
          </div>
        </div>
      </div>
    </section>
    <!-- /.content -->
 
    <!-- Log content -->
    <section class="content hide" data-section="log">
      <pre class="console"></pre>
    </section>
    <!-- /.content -->
 
  </div>
  <!-- /.content-wrapper -->
 
  <footer class="main-footer">
    <div class="pull-right hidden-xs">
      <b>Version</b> 0.1
    </div>
    <strong>Copyright &copy; 2017 <a href="http://www.razvi.ro">Razvan Stanga</a>.</strong> All rights reserved.
  </footer>
 
  <!-- Control Sidebar -->
  <aside class="control-sidebar control-sidebar-dark">
    <!-- Create the tabs -->
    <ul class="nav nav-tabs nav-justified control-sidebar-tabs">
      <li><a href="#control-sidebar-home-tab" data-toggle="tab"><i class="fa fa-home"></i></a></li>
      <li><a href="#control-sidebar-settings-tab" data-toggle="tab"><i class="fa fa-gear"></i></a></li>
    </ul>
    <!-- Tab panes -->
    <div class="tab-content">
      <!-- Home tab content -->
      <div class="tab-pane" id="control-sidebar-home-tab">
 
      </div>
      <!-- /.tab-pane -->
 
      <!-- Settings tab content -->
      <div class="tab-pane" id="control-sidebar-settings-tab">
        <form method="post">
          <h3 class="control-sidebar-heading">General Settings</h3>
 
          <div class="form-group">
            <label class="control-sidebar-subheading">
              Report panel usage
              <input type="checkbox" class="pull-right" checked>
            </label>
 
            <p>
              Some information about this general settings option
            </p>
          </div>
          <!-- /.form-group -->
 
          <div class="form-group">
            <label class="control-sidebar-subheading">
              Allow mail redirect
              <input type="checkbox" class="pull-right" checked>
            </label>
 
            <p>
              Other sets of options are available
            </p>
          </div>
          <!-- /.form-group -->
 
          <div class="form-group">
            <label class="control-sidebar-subheading">
              Expose author name in posts
              <input type="checkbox" class="pull-right" checked>
            </label>
 
            <p>
              Allow the user to show his name in blog posts
            </p>
          </div>
          <!-- /.form-group -->
 
          <h3 class="control-sidebar-heading">Chat Settings</h3>
 
          <div class="form-group">
            <label class="control-sidebar-subheading">
              Show me as online
              <input type="checkbox" class="pull-right" checked>
            </label>
          </div>
          <!-- /.form-group -->
 
          <div class="form-group">
            <label class="control-sidebar-subheading">
              Turn off notifications
              <input type="checkbox" class="pull-right">
            </label>
          </div>
          <!-- /.form-group -->
 
          <div class="form-group">
            <label class="control-sidebar-subheading">
              Delete chat history
              <a href="javascript:void(0)" class="text-red pull-right"><i class="fa fa-trash-o"></i></a>
            </label>
          </div>
          <!-- /.form-group -->
        </form>
      </div>
      <!-- /.tab-pane -->
    </div>
  </aside>
  <!-- /.control-sidebar -->
  <!-- Add the sidebar's background. This div must be placed
       immediately after the control sidebar -->
  <div class="control-sidebar-bg"></div>
 
</div>
<!-- ./wrapper -->
 
<script type="text/javascript" src="bower_components/jquery/dist/jquery.min.js"></script>
<script type="text/javascript" src="bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
<!-- AdminLTE App -->
<script type="text/javascript">
    var AdminLTEOptions = {
        sidebarExpandOnHover: true
    };
</script>
<script type="text/javascript" src="bower_components/AdminLTE/dist/js/app.min.js"></script>
<!-- AdminLTE for demo purposes -->
<script type="text/javascript" src="bower_components/AdminLTE/dist/js/demo.js"></script>
 
<script type="text/javascript" src="assets/js/mqtt.min.js"></script>
<script type="text/javascript" src="config.js"></script>
<script type="text/javascript" src="assets/js/iotcc.js"></script>
 
</body>
</html>
 
comments