jinda 0.7.7.3 → 0.7.7.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -12
  3. data/lib/generators/jinda/templates/app/mailers/{application_mailer.rb-org → application_mailer.rb} +0 -0
  4. data/lib/generators/jinda/templates/config/mongoid.yml +3 -3
  5. data/lib/jinda/version.rb +1 -1
  6. data/test/dummy/Dockerfile +4 -2
  7. data/test/dummy/Gemfile +5 -2
  8. data/test/dummy/Gemfile.lock +21 -22
  9. data/test/dummy/Guardfile +96 -0
  10. data/test/dummy/app/assets/javascripts/application.js +8 -8
  11. data/test/dummy/app/assets/stylesheets/{application.css.scss → application.scss} +12 -4
  12. data/test/dummy/app/assets/stylesheets/jinda.scss +253 -0
  13. data/test/dummy/app/controllers/adminltes_controller.rb +2 -0
  14. data/test/dummy/app/mailers/application_mailer.rb +2 -2
  15. data/test/dummy/app/views/adminltes/dashboard1.haml +461 -0
  16. data/test/dummy/app/views/adminltes/dashboard2.haml +656 -0
  17. data/test/dummy/app/views/identities/new-bak.html.haml +32 -0
  18. data/test/dummy/app/views/identities/new.html.haml +13 -0
  19. data/test/dummy/app/views/layouts/application.haml +51 -4
  20. data/test/dummy/app/views/layouts/application.haml.bak +4 -0
  21. data/test/dummy/app/views/layouts/lte/_flash.haml +9 -0
  22. data/test/dummy/app/views/layouts/lte/_footer.haml +7 -0
  23. data/test/dummy/app/views/layouts/lte/_header.haml +111 -0
  24. data/test/dummy/app/views/layouts/lte/_menu.haml +42 -0
  25. data/test/dummy/app/views/layouts/lte/_menu_mm.haml +36 -0
  26. data/test/dummy/app/views/layouts/lte/_rightbar.haml +123 -0
  27. data/test/dummy/app/views/layouts/lte/_sidebar.haml +154 -0
  28. data/test/dummy/app/views/sessions/new-bak.html.haml +22 -0
  29. data/test/dummy/app/views/sessions/new.html.haml +13 -0
  30. data/test/dummy/config/credentials.yml.enc +1 -1
  31. data/test/dummy/config/mongoid.yml +40 -54
  32. data/test/dummy/docker-compose.yml +4 -2
  33. data/test/dummy/log/development.log +2126 -494
  34. data/test/dummy/tmp/development_secret.txt +1 -1
  35. metadata +19 -9
  36. data/test/Gemfile +0 -2
  37. data/test/dummy/README.md.bak +0 -24
  38. data/test/dummy/app/assets/stylesheets/application.css.bak +0 -15
  39. data/test/dummy/app/assets/stylesheets/jinda_jqm.css.scss +0 -32
  40. data/test/dummy/app/mailers/application_mailer.rb-org +0 -4
@@ -0,0 +1,461 @@
1
+ %section.content-header
2
+ %h1
3
+ Dashboard
4
+ %small Control panel
5
+ %ol.breadcrumb
6
+ %li
7
+ %a{:href => "#"}
8
+ %i.fa.fa-dashboard
9
+ Home
10
+ %li.active Dashboard
11
+ / Main content
12
+ %section.content
13
+ / Small boxes (Stat box)
14
+ .row
15
+ .col-lg-3.col-xs-6
16
+ / small box
17
+ .small-box.bg-aqua
18
+ .inner
19
+ %h3 150
20
+ %p New Orders
21
+ .icon
22
+ %i.ion.ion-bag
23
+ %a.small-box-footer{:href => "#"}
24
+ More info
25
+ %i.fa.fa-arrow-circle-right
26
+ / ./col
27
+ .col-lg-3.col-xs-6
28
+ / small box
29
+ .small-box.bg-green
30
+ .inner
31
+ %h3
32
+ 53
33
+ %sup{:style => "font-size: 20px"} %
34
+ %p Bounce Rate
35
+ .icon
36
+ %i.ion.ion-stats-bars
37
+ %a.small-box-footer{:href => "#"}
38
+ More info
39
+ %i.fa.fa-arrow-circle-right
40
+ / ./col
41
+ .col-lg-3.col-xs-6
42
+ / small box
43
+ .small-box.bg-yellow
44
+ .inner
45
+ %h3 44
46
+ %p User Registrations
47
+ .icon
48
+ %i.ion.ion-person-add
49
+ %a.small-box-footer{:href => "#"}
50
+ More info
51
+ %i.fa.fa-arrow-circle-right
52
+ / ./col
53
+ .col-lg-3.col-xs-6
54
+ / small box
55
+ .small-box.bg-red
56
+ .inner
57
+ %h3 65
58
+ %p Unique Visitors
59
+ .icon
60
+ %i.ion.ion-pie-graph
61
+ %a.small-box-footer{:href => "#"}
62
+ More info
63
+ %i.fa.fa-arrow-circle-right
64
+ / ./col
65
+ / /.row
66
+ / Main row
67
+ .row
68
+ / Left col
69
+ %section.col-lg-7.connectedSortable
70
+ / Custom tabs (Charts with tabs)
71
+ .nav-tabs-custom
72
+ / Tabs within a box
73
+ %ul.nav.nav-tabs.pull-right
74
+ %li.active
75
+ %a{"data-toggle" => "tab", :href => "#revenue-chart"} Area
76
+ %li
77
+ %a{"data-toggle" => "tab", :href => "#sales-chart"} Donut
78
+ %li.pull-left.header
79
+ %i.fa.fa-inbox
80
+ Sales
81
+ .tab-content.no-padding
82
+ / Morris chart - Sales
83
+ #revenue-chart.chart.tab-pane.active{:style => "position: relative; height: 300px;"}
84
+ #sales-chart.chart.tab-pane{:style => "position: relative; height: 300px;"}
85
+ / /.nav-tabs-custom
86
+ / Chat box
87
+ .box.box-success
88
+ .box-header
89
+ %i.fa.fa-comments-o
90
+ %h3.box-title Chat
91
+ .box-tools.pull-right{"data-toggle" => "tooltip", :title => "Status"}
92
+ .btn-group{"data-toggle" => "btn-toggle"}
93
+ %button.btn.btn-default.btn-sm.active{:type => "button"}
94
+ %i.fa.fa-square.text-green
95
+ %button.btn.btn-default.btn-sm{:type => "button"}
96
+ %i.fa.fa-square.text-red
97
+ #chat-box.box-body.chat
98
+ / chat item
99
+ .item
100
+ %img.online{:alt => "user image", :src => asset_url("dist/img/user4-128x128.jpg")}/
101
+ %p.message
102
+ %a.name{:href => "#"}
103
+ %small.text-muted.pull-right
104
+ %i.fa.fa-clock-o
105
+ 2:15
106
+ Mike Doe
107
+ I would like to meet you to discuss the latest news about
108
+ the arrival of the new theme. They say it is going to be one the
109
+ best themes on the market
110
+ .attachment
111
+ %h4 Attachments:
112
+ %p.filename
113
+ Theme-thumbnail-image.jpg
114
+ .pull-right
115
+ %button.btn.btn-primary.btn-sm.btn-flat{:type => "button"} Open
116
+ / /.attachment
117
+ / /.item
118
+ / chat item
119
+ .item
120
+ %img.offline{:alt => "user image", :src => asset_url("dist/img/user3-128x128.jpg")}/
121
+ %p.message
122
+ %a.name{:href => "#"}
123
+ %small.text-muted.pull-right
124
+ %i.fa.fa-clock-o
125
+ 5:15
126
+ Alexander Pierce
127
+ I would like to meet you to discuss the latest news about
128
+ the arrival of the new theme. They say it is going to be one the
129
+ best themes on the market
130
+ / /.item
131
+ / chat item
132
+ .item
133
+ %img.offline{:alt => "user image", :src => asset_url("dist/img/user2-160x160.jpg")}/
134
+ %p.message
135
+ %a.name{:href => "#"}
136
+ %small.text-muted.pull-right
137
+ %i.fa.fa-clock-o
138
+ 5:30
139
+ Susan Doe
140
+ I would like to meet you to discuss the latest news about
141
+ the arrival of the new theme. They say it is going to be one the
142
+ best themes on the market
143
+ / /.item
144
+ / /.chat
145
+ .box-footer
146
+ .input-group
147
+ %input.form-control{:placeholder => "Type message..."}/
148
+ .input-group-btn
149
+ %button.btn.btn-success{:type => "button"}
150
+ %i.fa.fa-plus
151
+ / /.box (chat box)
152
+ / TO DO List
153
+ .box.box-primary
154
+ .box-header
155
+ %i.ion.ion-clipboard
156
+ %h3.box-title To Do List
157
+ .box-tools.pull-right
158
+ %ul.pagination.pagination-sm.inline
159
+ %li
160
+ %a{:href => "#"} «
161
+ %li
162
+ %a{:href => "#"} 1
163
+ %li
164
+ %a{:href => "#"} 2
165
+ %li
166
+ %a{:href => "#"} 3
167
+ %li
168
+ %a{:href => "#"} »
169
+ / /.box-header
170
+ .box-body
171
+ / See dist/js/pages/dashboard.js to activate the todoList plugin
172
+ %ul.todo-list
173
+ %li
174
+ / drag handle
175
+ %span.handle
176
+ %i.fa.fa-ellipsis-v
177
+ %i.fa.fa-ellipsis-v
178
+ / checkbox
179
+ %input{:type => "checkbox", :value => ""}/
180
+ / todo text
181
+ %span.text Design a nice theme
182
+ / Emphasis label
183
+ %small.label.label-danger
184
+ %i.fa.fa-clock-o
185
+ 2 mins
186
+ / General tools such as edit or delete
187
+ .tools
188
+ %i.fa.fa-edit
189
+ %i.fa.fa-trash-o
190
+ %li
191
+ %span.handle
192
+ %i.fa.fa-ellipsis-v
193
+ %i.fa.fa-ellipsis-v
194
+ %input{:type => "checkbox", :value => ""}/
195
+ %span.text Make the theme responsive
196
+ %small.label.label-info
197
+ %i.fa.fa-clock-o
198
+ 4 hours
199
+ .tools
200
+ %i.fa.fa-edit
201
+ %i.fa.fa-trash-o
202
+ %li
203
+ %span.handle
204
+ %i.fa.fa-ellipsis-v
205
+ %i.fa.fa-ellipsis-v
206
+ %input{:type => "checkbox", :value => ""}/
207
+ %span.text Let theme shine like a star
208
+ %small.label.label-warning
209
+ %i.fa.fa-clock-o
210
+ 1 day
211
+ .tools
212
+ %i.fa.fa-edit
213
+ %i.fa.fa-trash-o
214
+ %li
215
+ %span.handle
216
+ %i.fa.fa-ellipsis-v
217
+ %i.fa.fa-ellipsis-v
218
+ %input{:type => "checkbox", :value => ""}/
219
+ %span.text Let theme shine like a star
220
+ %small.label.label-success
221
+ %i.fa.fa-clock-o
222
+ 3 days
223
+ .tools
224
+ %i.fa.fa-edit
225
+ %i.fa.fa-trash-o
226
+ %li
227
+ %span.handle
228
+ %i.fa.fa-ellipsis-v
229
+ %i.fa.fa-ellipsis-v
230
+ %input{:type => "checkbox", :value => ""}/
231
+ %span.text Check your messages and notifications
232
+ %small.label.label-primary
233
+ %i.fa.fa-clock-o
234
+ 1 week
235
+ .tools
236
+ %i.fa.fa-edit
237
+ %i.fa.fa-trash-o
238
+ %li
239
+ %span.handle
240
+ %i.fa.fa-ellipsis-v
241
+ %i.fa.fa-ellipsis-v
242
+ %input{:type => "checkbox", :value => ""}/
243
+ %span.text Let theme shine like a star
244
+ %small.label.label-default
245
+ %i.fa.fa-clock-o
246
+ 1 month
247
+ .tools
248
+ %i.fa.fa-edit
249
+ %i.fa.fa-trash-o
250
+ / /.box-body
251
+ .box-footer.clearfix.no-border
252
+ %button.btn.btn-default.pull-right{:type => "button"}
253
+ %i.fa.fa-plus
254
+ Add item
255
+ / /.box
256
+ / quick email widget
257
+ .box.box-info
258
+ .box-header
259
+ %i.fa.fa-envelope
260
+ %h3.box-title Quick Email
261
+ / tools box
262
+ .pull-right.box-tools
263
+ %button.btn.btn-info.btn-sm{"data-toggle" => "tooltip", "data-widget" => "remove", :title => "Remove", :type => "button"}
264
+ %i.fa.fa-times
265
+ / /. tools
266
+ .box-body
267
+ %form{:action => "#", :method => "post"}
268
+ .form-group
269
+ %input.form-control{:name => "emailto", :placeholder => "Email to:", :type => "email"}/
270
+ .form-group
271
+ %input.form-control{:name => "subject", :placeholder => "Subject", :type => "text"}/
272
+ %div
273
+ %textarea.textarea{:placeholder => "Message", :style => "width: 100%; height: 125px; font-size: 14px; line-height: 18px; border: 1px solid #dddddd; padding: 10px;"}
274
+ .box-footer.clearfix
275
+ %button#sendEmail.pull-right.btn.btn-default{:type => "button"}
276
+ Send
277
+ %i.fa.fa-arrow-circle-right
278
+ / /.Left col
279
+ / right col (We are only adding the ID to make the widgets sortable)
280
+ %section.col-lg-5.connectedSortable
281
+ / Map box
282
+ .box.box-solid.bg-light-blue-gradient
283
+ .box-header
284
+ / tools box
285
+ .pull-right.box-tools
286
+ %button.btn.btn-primary.btn-sm.daterange.pull-right{"data-toggle" => "tooltip", :title => "Date range", :type => "button"}
287
+ %i.fa.fa-calendar
288
+ %button.btn.btn-primary.btn-sm.pull-right{"data-toggle" => "tooltip", "data-widget" => "collapse", :style => "margin-right: 5px;", :title => "Collapse", :type => "button"}
289
+ %i.fa.fa-minus
290
+ / /. tools
291
+ %i.fa.fa-map-marker
292
+ %h3.box-title
293
+ Visitors
294
+ .box-body
295
+ #world-map{:style => "height: 250px; width: 100%;"}
296
+ / /.box-body
297
+ .box-footer.no-border
298
+ .row
299
+ .col-xs-4.text-center{:style => "border-right: 1px solid #f4f4f4"}
300
+ #sparkline-1
301
+ .knob-label Visitors
302
+ / ./col
303
+ .col-xs-4.text-center{:style => "border-right: 1px solid #f4f4f4"}
304
+ #sparkline-2
305
+ .knob-label Online
306
+ / ./col
307
+ .col-xs-4.text-center
308
+ #sparkline-3
309
+ .knob-label Exists
310
+ / ./col
311
+ / /.row
312
+ / /.box
313
+ / solid sales graph
314
+ .box.box-solid.bg-teal-gradient
315
+ .box-header
316
+ %i.fa.fa-th
317
+ %h3.box-title Sales Graph
318
+ .box-tools.pull-right
319
+ %button.btn.bg-teal.btn-sm{"data-widget" => "collapse", :type => "button"}
320
+ %i.fa.fa-minus
321
+ %button.btn.bg-teal.btn-sm{"data-widget" => "remove", :type => "button"}
322
+ %i.fa.fa-times
323
+ .box-body.border-radius-none
324
+ #line-chart.chart{:style => "height: 250px;"}
325
+ / /.box-body
326
+ .box-footer.no-border
327
+ .row
328
+ .col-xs-4.text-center{:style => "border-right: 1px solid #f4f4f4"}
329
+ %input.knob{"data-fgcolor" => "#39CCCC", "data-height" => "60", "data-readonly" => "true", "data-width" => "60", :type => "text", :value => "20"}/
330
+ .knob-label Mail-Orders
331
+ / ./col
332
+ .col-xs-4.text-center{:style => "border-right: 1px solid #f4f4f4"}
333
+ %input.knob{"data-fgcolor" => "#39CCCC", "data-height" => "60", "data-readonly" => "true", "data-width" => "60", :type => "text", :value => "50"}/
334
+ .knob-label Online
335
+ / ./col
336
+ .col-xs-4.text-center
337
+ %input.knob{"data-fgcolor" => "#39CCCC", "data-height" => "60", "data-readonly" => "true", "data-width" => "60", :type => "text", :value => "30"}/
338
+ .knob-label In-Store
339
+ / ./col
340
+ / /.row
341
+ / /.box-footer
342
+ / /.box
343
+ / Calendar
344
+ .box.box-solid.bg-green-gradient
345
+ .box-header
346
+ %i.fa.fa-calendar
347
+ %h3.box-title Calendar
348
+ / tools box
349
+ .pull-right.box-tools
350
+ / button with a dropdown
351
+ .btn-group
352
+ %button.btn.btn-success.btn-sm.dropdown-toggle{"data-toggle" => "dropdown", :type => "button"}
353
+ %i.fa.fa-bars
354
+ %ul.dropdown-menu.pull-right{:role => "menu"}
355
+ %li
356
+ %a{:href => "#"} Add new event
357
+ %li
358
+ %a{:href => "#"} Clear events
359
+ %li.divider
360
+ %li
361
+ %a{:href => "#"} View calendar
362
+ %button.btn.btn-success.btn-sm{"data-widget" => "collapse", :type => "button"}
363
+ %i.fa.fa-minus
364
+ %button.btn.btn-success.btn-sm{"data-widget" => "remove", :type => "button"}
365
+ %i.fa.fa-times
366
+ / /. tools
367
+ / /.box-header
368
+ .box-body.no-padding
369
+ / The calendar
370
+ #calendar{:style => "width: 100%"}
371
+ / /.box-body
372
+ .box-footer.text-black
373
+ .row
374
+ .col-sm-6
375
+ / Progress bars
376
+ .clearfix
377
+ %span.pull-left Task #1
378
+ %small.pull-right 90%
379
+ .progress.xs
380
+ .progress-bar.progress-bar-green{:style => "width: 90%;"}
381
+ .clearfix
382
+ %span.pull-left Task #2
383
+ %small.pull-right 70%
384
+ .progress.xs
385
+ .progress-bar.progress-bar-green{:style => "width: 70%;"}
386
+ / /.col
387
+ .col-sm-6
388
+ .clearfix
389
+ %span.pull-left Task #3
390
+ %small.pull-right 60%
391
+ .progress.xs
392
+ .progress-bar.progress-bar-green{:style => "width: 60%;"}
393
+ .clearfix
394
+ %span.pull-left Task #4
395
+ %small.pull-right 40%
396
+ .progress.xs
397
+ .progress-bar.progress-bar-green{:style => "width: 40%;"}
398
+ :javascript
399
+ $(function () {
400
+ "use strict";
401
+
402
+ // AREA CHART
403
+ var area = new Morris.Area({
404
+ element: 'revenue-chart',
405
+ resize: true,
406
+ data: [
407
+ {y: '2011 Q1', item1: 2666, item2: 2666},
408
+ {y: '2011 Q2', item1: 2778, item2: 2294},
409
+ {y: '2011 Q3', item1: 4912, item2: 1969},
410
+ {y: '2011 Q4', item1: 3767, item2: 3597},
411
+ {y: '2012 Q1', item1: 6810, item2: 1914},
412
+ {y: '2012 Q2', item1: 5670, item2: 4293},
413
+ {y: '2012 Q3', item1: 4820, item2: 3795},
414
+ {y: '2012 Q4', item1: 15073, item2: 5967},
415
+ {y: '2013 Q1', item1: 10687, item2: 4460},
416
+ {y: '2013 Q2', item1: 8432, item2: 5713}
417
+ ],
418
+ xkey: 'y',
419
+ ykeys: ['item1', 'item2'],
420
+ labels: ['Item 1', 'Item 2'],
421
+ lineColors: ['#a0d0e0', '#3c8dbc'],
422
+ hideHover: 'auto'
423
+ });
424
+
425
+ // LINE CHART
426
+ var line = new Morris.Line({
427
+ element: 'line-chart',
428
+ resize: true,
429
+ data: [
430
+ {y: '2011 Q1', item1: 2666},
431
+ {y: '2011 Q2', item1: 2778},
432
+ {y: '2011 Q3', item1: 4912},
433
+ {y: '2011 Q4', item1: 3767},
434
+ {y: '2012 Q1', item1: 6810},
435
+ {y: '2012 Q2', item1: 5670},
436
+ {y: '2012 Q3', item1: 4820},
437
+ {y: '2012 Q4', item1: 15073},
438
+ {y: '2013 Q1', item1: 10687},
439
+ {y: '2013 Q2', item1: 8432}
440
+ ],
441
+ xkey: 'y',
442
+ ykeys: ['item1'],
443
+ labels: ['Item 1'],
444
+ lineColors: ['#3c8dbc'],
445
+ hideHover: 'auto'
446
+ });
447
+
448
+ //DONUT CHART
449
+ var donut = new Morris.Donut({
450
+ element: 'sales-chart',
451
+ resize: true,
452
+ colors: ["#3c8dbc", "#f56954", "#00a65a"],
453
+ data: [
454
+ {label: "Download Sales", value: 12},
455
+ {label: "In-Store Sales", value: 30},
456
+ {label: "Mail-Order Sales", value: 20}
457
+ ],
458
+ hideHover: 'auto'
459
+ });
460
+
461
+ });