keppler 2.1.11 → 2.1.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (186) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/LICENSE +674 -0
  4. data/installer/core/Gemfile.lock +0 -0
  5. data/installer/core/LICENSE +674 -0
  6. data/installer/core/app/assets/javascripts/admin/main.coffee +1 -1
  7. data/installer/core/app/controllers/admin/settings_controller.rb +4 -0
  8. data/installer/core/app/controllers/application_controller.rb +1 -0
  9. data/installer/core/app/views/admin/layouts/_navigation.html.haml +1 -1
  10. data/installer/core/app/views/admin/layouts/_sidebar.html.haml +1 -1
  11. data/installer/core/app/views/admin/scripts/index.html.haml +1 -1
  12. data/installer/core/app/views/app/layouts/_google_analytics.html.haml +5 -6
  13. data/installer/core/config/circleci/db_config.yml +2 -2
  14. data/installer/core/config/locales/en.yml +3 -0
  15. data/installer/core/config/routes.rb +0 -8
  16. data/installer/core/config/settings.yml +2 -2
  17. data/installer/core/db/seeds.rb +6 -9
  18. data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/bootstrap/conf +0 -0
  19. data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/conf +0 -0
  20. data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/keppler/conf +0 -0
  21. data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/slick/conf +0 -0
  22. data/installer/core/rockets/keppler_frontend/app/assets/javascripts/keppler_frontend/app/grapes/grapes-editor.js +1174 -0
  23. data/installer/core/rockets/keppler_frontend/app/controllers/keppler_frontend/app/app_controller.rb +1 -1
  24. data/installer/core/rockets/keppler_frontend/app/controllers/keppler_frontend/concerns/services.rb +0 -0
  25. data/installer/core/rockets/keppler_frontend/app/helpers/keppler_frontend/app/frontend_helper.rb +1 -1
  26. data/installer/core/rockets/keppler_frontend/app/models/keppler_frontend/concerns/partials/helper_file.rb +4 -4
  27. data/installer/core/rockets/keppler_frontend/app/models/keppler_frontend/concerns/partials/html_file.rb +14 -20
  28. data/installer/core/rockets/keppler_frontend/app/models/keppler_frontend/concerns/partials/scss_file.rb +1 -1
  29. data/installer/core/rockets/keppler_frontend/app/services/keppler_frontend/editor/file_format.rb +0 -0
  30. data/installer/core/rockets/keppler_frontend/app/services/keppler_frontend/editor/resources.rb +0 -0
  31. data/installer/core/rockets/keppler_frontend/app/services/keppler_frontend/editor/resources_format.rb +0 -0
  32. data/installer/core/rockets/keppler_frontend/app/services/keppler_frontend/urls/assets.rb +0 -0
  33. data/installer/core/rockets/keppler_frontend/app/services/keppler_frontend/urls/config.rb +0 -0
  34. data/installer/core/rockets/keppler_frontend/app/services/keppler_frontend/urls/front.rb +0 -0
  35. data/installer/core/rockets/keppler_frontend/app/services/keppler_frontend/urls/roots.rb +0 -0
  36. data/installer/core/rockets/keppler_frontend/app/services/keppler_frontend/utils/code_search.rb +0 -0
  37. data/installer/core/rockets/keppler_frontend/app/services/keppler_frontend/utils/file_format.rb +0 -0
  38. data/installer/core/rockets/keppler_frontend/app/services/keppler_frontend/utils/yml_handler.rb +0 -0
  39. data/installer/core/rockets/keppler_frontend/app/services/keppler_frontend/views/actions_handler.rb +0 -0
  40. data/installer/core/rockets/keppler_frontend/app/services/keppler_frontend/views/css_handler.rb +0 -0
  41. data/installer/core/rockets/keppler_frontend/app/services/keppler_frontend/views/html_handler.rb +0 -0
  42. data/installer/core/rockets/keppler_frontend/app/services/keppler_frontend/views/install.rb +0 -0
  43. data/installer/core/rockets/keppler_frontend/app/services/keppler_frontend/views/js_handler.rb +0 -0
  44. data/installer/core/rockets/keppler_frontend/app/services/keppler_frontend/views/remote_js_handler.rb +0 -0
  45. data/installer/core/rockets/keppler_frontend/app/services/keppler_frontend/views/routes_handler.rb +0 -0
  46. data/installer/core/rockets/keppler_frontend/app/services/keppler_frontend/views/uninstall.rb +0 -0
  47. data/installer/core/rockets/keppler_frontend/app/views/keppler_frontend/admin/views/_editor_assets.html.haml +25 -23
  48. data/installer/core/rockets/keppler_frontend/app/views/keppler_frontend/admin/views/_editor_themes.html.haml +25 -23
  49. data/installer/core/rockets/keppler_frontend/app/views/keppler_frontend/admin/views/_editor_views.html.haml +23 -21
  50. data/installer/core/rockets/keppler_frontend/app/views/keppler_frontend/admin/views/index.html.haml +11 -10
  51. data/installer/core/rockets/keppler_frontend/app/views/keppler_frontend/app/partials/_devise_login.html.erb +34 -34
  52. data/installer/core/rockets/keppler_frontend/app/views/layouts/keppler_frontend/app/layouts/application.html.erb +0 -1
  53. data/installer/core/rockets/keppler_frontend/app/views/layouts/themes/keppler_default/application.html.erb +0 -1
  54. data/installer/core/rockets/keppler_ga_dashboard/app/controllers/keppler_ga_dashboard/admin/dashboard_controller.rb +64 -0
  55. data/installer/core/rockets/keppler_ga_dashboard/app/helpers/keppler_ga_dashboard/admin/dashboard_helper.rb +16 -0
  56. data/installer/core/rockets/keppler_ga_dashboard/app/helpers/keppler_ga_dashboard/application_helper.rb +4 -1
  57. data/installer/core/rockets/keppler_ga_dashboard/app/views/keppler_ga_dashboard/{dashboard → admin/dashboard}/analytics.html.haml +0 -0
  58. data/installer/core/rockets/keppler_ga_dashboard/config/routes.rb +1 -1
  59. data/installer/core/spec/controllers/keppler_frontend/admin/views_controller/create_view_spec.rb +0 -0
  60. data/installer/core/spec/controllers/keppler_frontend/admin/views_controller/editor_spec.rb +0 -0
  61. data/installer/core/spec/controllers/keppler_frontend/admin/views_controller/live_editor_save_spec.rb +0 -0
  62. data/installer/core/spec/fixtures/keppler_frontend/editor/test.html +0 -0
  63. data/installer/core/spec/fixtures/keppler_frontend/editor/test.png +0 -0
  64. data/installer/core/spec/fixtures/keppler_frontend/live_editor/test_index_1.html +0 -0
  65. data/installer/core/spec/fixtures/keppler_frontend/live_editor/test_index_2.html +0 -0
  66. data/installer/core/spec/models/keppler_frontend/view/live_editor_spec.rb +1 -0
  67. data/installer/core/spec/models/keppler_frontend/view/model_spec.rb +0 -0
  68. data/installer/core/spec/models/keppler_frontend/view/view_files_handler_spec.rb +0 -0
  69. data/installer/core/spec/models/user_spec.rb +0 -2
  70. data/installer/core/spec/routing/keppler_frontend/views_spec.rb +1 -0
  71. data/installer/core/spec/services/keppler_frontend/editor/file_format_spec.rb +0 -0
  72. data/installer/core/spec/services/keppler_frontend/editor/resources_format_spec.rb +0 -0
  73. data/installer/core/spec/services/keppler_frontend/editor/resources_spec.rb +0 -0
  74. data/installer/core/spec/services/keppler_frontend/urls/assets_spec.rb +0 -0
  75. data/installer/core/spec/services/keppler_frontend/urls/config_spec.rb +0 -0
  76. data/installer/core/spec/services/keppler_frontend/urls/front_spec.rb +0 -0
  77. data/installer/core/spec/services/keppler_frontend/urls/roots_spec.rb +0 -0
  78. data/installer/core/spec/services/keppler_frontend/utils/code_search_spec.rb +0 -0
  79. data/installer/core/spec/services/keppler_frontend/utils/file_format_spec.rb +0 -0
  80. data/installer/core/spec/services/keppler_frontend/utils/yml_handle_spec.rb +2 -0
  81. data/installer/core/spec/services/keppler_frontend/views/actions_handler_spec.rb +0 -0
  82. data/installer/core/spec/services/keppler_frontend/views/css_handler_spec.rb +0 -0
  83. data/installer/core/spec/services/keppler_frontend/views/format_html_spec.rb +0 -0
  84. data/installer/core/spec/services/keppler_frontend/views/format_remote_js_spec.rb +0 -0
  85. data/installer/core/spec/services/keppler_frontend/views/fromat_only_action_spec.rb +0 -0
  86. data/installer/core/spec/services/keppler_frontend/views/html_handler_spec.rb +0 -0
  87. data/installer/core/spec/services/keppler_frontend/views/js_handler_spec.rb +0 -0
  88. data/installer/core/spec/services/keppler_frontend/views/remote_js_handler_spec.rb +0 -0
  89. data/installer/core/spec/services/keppler_frontend/views/routes_handler_spec.rb +0 -0
  90. data/installer/core/vendor/cache/autoprefixer-rails-9.3.1.gem +0 -0
  91. data/installer/core/vendor/cache/bootsnap-1.3.2.gem +0 -0
  92. data/installer/core/vendor/cache/factory_bot-4.11.1.gem +0 -0
  93. data/installer/core/vendor/cache/factory_bot_rails-4.11.1.gem +0 -0
  94. data/installer/core/vendor/cache/faraday-0.15.3.gem +0 -0
  95. data/installer/core/vendor/cache/ffi-1.9.25.gem +0 -0
  96. data/installer/core/vendor/cache/i18n-1.1.1.gem +0 -0
  97. data/installer/core/vendor/cache/image_optimizer-1.8.0.gem +0 -0
  98. data/installer/core/vendor/cache/loofah-2.2.3.gem +0 -0
  99. data/installer/core/vendor/cache/mail-2.7.1.gem +0 -0
  100. data/installer/core/vendor/cache/marcel-0.3.3.gem +0 -0
  101. data/installer/core/vendor/cache/mime-types-3.2.2.gem +0 -0
  102. data/installer/core/vendor/cache/mime-types-data-3.2018.0812.gem +0 -0
  103. data/installer/core/vendor/cache/mini_mime-1.0.1.gem +0 -0
  104. data/installer/core/vendor/cache/money-6.13.1.gem +0 -0
  105. data/installer/core/vendor/cache/nokogiri-1.8.5.gem +0 -0
  106. data/installer/core/vendor/cache/parser-2.5.3.0.gem +0 -0
  107. data/installer/core/vendor/cache/powerpack-0.1.2.gem +0 -0
  108. data/installer/core/vendor/cache/public_suffix-3.0.3.gem +0 -0
  109. data/installer/core/vendor/cache/puma-3.12.0.gem +0 -0
  110. data/installer/core/vendor/cache/rack-test-1.1.0.gem +0 -0
  111. data/installer/core/vendor/cache/rails-assets-animate-css-3.7.0.gem +0 -0
  112. data/installer/core/vendor/cache/retriable-3.1.2.gem +0 -0
  113. data/installer/core/vendor/cache/rspec-expectations-3.8.2.gem +0 -0
  114. data/installer/core/vendor/cache/rspec-rails-3.8.1.gem +0 -0
  115. data/installer/core/vendor/cache/ruby-progressbar-1.10.0.gem +0 -0
  116. data/installer/core/vendor/cache/sass-3.6.0.gem +0 -0
  117. data/installer/core/vendor/cache/scss_lint-0.57.1.gem +0 -0
  118. data/installer/core/vendor/cache/signet-0.11.0.gem +0 -0
  119. data/installer/core/vendor/cache/spreadsheet-1.1.8.gem +0 -0
  120. data/installer/core/vendor/cache/sprockets-3.7.2.gem +0 -0
  121. data/installer/core/vendor/cache/turbolinks-source-5.2.0.gem +0 -0
  122. data/installer/core/vendor/cache/unicode-display_width-1.4.0.gem +0 -0
  123. data/installer/core/vendor/cache/web-console-3.7.0.gem +0 -0
  124. data/lib/keppler/cli.rb +1 -1
  125. data/lib/keppler/version.rb +1 -1
  126. metadata +11 -2993
  127. data/LICENSE.txt +0 -21
  128. data/installer/core/app/controllers/admin/customizes_controller.rb +0 -110
  129. data/installer/core/app/helpers/customizes_helper.rb +0 -5
  130. data/installer/core/app/models/customize.rb +0 -30
  131. data/installer/core/app/policies/customize_policy.rb +0 -11
  132. data/installer/core/app/services/admin/template_service.rb +0 -129
  133. data/installer/core/app/views/admin/customizes/_description.html.haml +0 -13
  134. data/installer/core/app/views/admin/customizes/_form.html.haml +0 -33
  135. data/installer/core/app/views/admin/customizes/_listing.html.haml +0 -15
  136. data/installer/core/app/views/admin/customizes/_switch_default_template.html.haml +0 -11
  137. data/installer/core/app/views/admin/customizes/_switch_template.html.haml +0 -19
  138. data/installer/core/app/views/admin/customizes/index.html.haml +0 -38
  139. data/installer/core/app/views/admin/customizes/new.html.haml +0 -4
  140. data/installer/core/db/migrate/20170603145521_create_customizes.rb +0 -10
  141. data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/bootstrap/bstp-accordion.html +0 -56
  142. data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/bootstrap/bstp-alert.html +0 -18
  143. data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/bootstrap/bstp-button-group.html +0 -15
  144. data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/bootstrap/bstp-button.html +0 -15
  145. data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/bootstrap/bstp-checks.html +0 -23
  146. data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/bootstrap/bstp-collapse.html +0 -23
  147. data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/bootstrap/bstp-columns-12.html +0 -59
  148. data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/bootstrap/bstp-columns-2.html +0 -29
  149. data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/bootstrap/bstp-columns-3.html +0 -32
  150. data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/bootstrap/bstp-columns-4.html +0 -35
  151. data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/bootstrap/bstp-columns-6.html +0 -41
  152. data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/bootstrap/bstp-container.html +0 -15
  153. data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/bootstrap/bstp-dropdown-btn.html +0 -22
  154. data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/bootstrap/bstp-form.html +0 -33
  155. data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/bootstrap/bstp-jumbotron.html +0 -25
  156. data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/bootstrap/bstp-label.html +0 -13
  157. data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/bootstrap/bstp-list-group.html +0 -22
  158. data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/bootstrap/bstp-modal.html +0 -32
  159. data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/bootstrap/bstp-navbar.html +0 -71
  160. data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/bootstrap/bstp-pagination.html +0 -31
  161. data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/bootstrap/bstp-panel-table.html +0 -48
  162. data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/bootstrap/bstp-panel.html +0 -19
  163. data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/bootstrap/bstp-progress-bar.html +0 -17
  164. data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/bootstrap/bstp-radio.html +0 -23
  165. data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/bootstrap/bstp-table.html +0 -42
  166. data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/bootstrap/bstp-tabs.html +0 -34
  167. data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/bootstrap/bstp-textarea.html +0 -13
  168. data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/bootstrap/bstp-thumbnail.html +0 -23
  169. data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/bootstrap/bstp-well.html +0 -13
  170. data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/bootstrap/btsp-input.html +0 -13
  171. data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/keppler/kppl-banner-blur-parallax.html +0 -59
  172. data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/keppler/kppl-banner-blur.html +0 -58
  173. data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/keppler/kppl-banner-parallax.html +0 -49
  174. data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/keppler/kppl-banner-static.html +0 -48
  175. data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/keppler/kppl-banner-video.html +0 -54
  176. data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/keppler/kppl-block.html +0 -15
  177. data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/keppler/kppl-h1.html +0 -13
  178. data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/keppler/kppl-h2.html +0 -13
  179. data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/keppler/kppl-h3.html +0 -13
  180. data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/keppler/kppl-h4.html +0 -13
  181. data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/keppler/kppl-small.html +0 -13
  182. data/installer/core/rockets/keppler_frontend/app/assets/html/keppler_frontend/app/slick/slick-basic.html +0 -43
  183. data/installer/core/rockets/keppler_ga_dashboard/app/controllers/keppler_ga_dashboard/dashboard_controller.rb +0 -64
  184. data/installer/core/rockets/keppler_ga_dashboard/app/helpers/keppler_ga_dashboard/dashboard_helper.rb +0 -14
  185. data/installer/core/spec/factories/customize.rb +0 -6
  186. data/installer/core/spec/models/customize_spec.rb +0 -23
@@ -1,13 +0,0 @@
1
- <keppler-component>
2
- <input type="text" class="form-control" placeholder="Text input">
3
- </keppler-component>
4
- <script>
5
- 'bootstrap-input', {
6
- label: 'Input',
7
- category: 'Bootstrap',
8
- attributes: { class:'fa fa-link' },
9
- content: {
10
- script: function(){}
11
- }
12
- }
13
- </script>
@@ -1,59 +0,0 @@
1
- <keppler-component>
2
- <div class="kppl-blur">
3
- <div class="kppl-blur-img"></div>
4
- <div class="kppl-blur-mask">
5
- <div class="kppl-container">
6
- <h1>Banner Blur Parallax</h1>
7
- <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis ornare turpis eu elit ultricies mollis. Nulla sollicitudin orci mauris, nec fermentum tortor venenatis vel</p>
8
- </div>
9
- </div>
10
- </div>
11
-
12
- <style>
13
- .kppl-blur {
14
- width: auto;
15
- height: 400px;
16
- position: relative;
17
- overflow: hidden;
18
- }
19
-
20
- .kppl-blur .kppl-blur-img {
21
- background-image: url(https://images.pexels.com/photos/804954/pexels-photo-804954.jpeg?auto=compress&cs=tinysrgb&h=750&w=1260);
22
- background-size: cover;
23
- background-position: center;
24
- background-attachment: fixed;
25
- height: 100%;
26
- width: 100%;
27
- position: absolute;
28
- filter: blur(4px);
29
- transform: scale(1.1);
30
- }
31
-
32
- .kppl-blur .kppl-blur-mask {
33
- background: #00000075;
34
- position: relative;
35
- height: 100%;
36
- width: 100%;
37
- display: flex;
38
- align-items: center;
39
- justify-content: center;
40
- font-family: Arial, Helvetica, sans-serif;
41
- text-align: center;
42
- color: #fff;
43
- }
44
-
45
- .kppl-blur .kppl-container {
46
- max-width: 40%;
47
- }
48
- </style>
49
- </keppler-component>
50
- <script>
51
- 'kppl-banner-blur-parallax', {
52
- label: 'Banner Blur Parallax',
53
- category: 'Banners',
54
- attributes: { class:'fa fa-picture-o' },
55
- content: {
56
- script: function(){}
57
- }
58
- }
59
- </script>
@@ -1,58 +0,0 @@
1
- <keppler-component>
2
- <div class="kppl-blur">
3
- <div class="kppl-blur-img"></div>
4
- <div class="kppl-blur-mask">
5
- <div class="kppl-container">
6
- <h1>Banner Blur</h1>
7
- <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis ornare turpis eu elit ultricies mollis. Nulla sollicitudin orci mauris, nec fermentum tortor venenatis vel</p>
8
- </div>
9
- </div>
10
- </div>
11
-
12
- <style>
13
- .kppl-blur {
14
- width: auto;
15
- height: 400px;
16
- position: relative;
17
- overflow: hidden;
18
- }
19
-
20
- .kppl-blur .kppl-blur-img {
21
- background-image: url(https://images.pexels.com/photos/907142/pexels-photo-907142.jpeg?auto=compress&cs=tinysrgb&h=750&w=1260);
22
- background-size: cover;
23
- background-position: center;
24
- height: 100%;
25
- width: 100%;
26
- position: absolute;
27
- filter: blur(4px);
28
- transform: scale(1.1);
29
- }
30
-
31
- .kppl-blur .kppl-blur-mask {
32
- background: #00000075;
33
- position: relative;
34
- height: 100%;
35
- width: 100%;
36
- display: flex;
37
- align-items: center;
38
- justify-content: center;
39
- font-family: Arial, Helvetica, sans-serif;
40
- text-align: center;
41
- color: #fff;
42
- }
43
-
44
- .kppl-blur .kppl-container {
45
- max-width: 40%;
46
- }
47
- </style>
48
- </keppler-component>
49
- <script>
50
- 'kppl-banner-blur', {
51
- label: 'Banner Blur',
52
- category: 'Banners',
53
- attributes: { class:'fa fa-picture-o' },
54
- content: {
55
- script: function(){}
56
- }
57
- }
58
- </script>
@@ -1,49 +0,0 @@
1
- <keppler-component>
2
- <div class="kppl-parallax">
3
- <div class="kppl-parallax-mask">
4
- <div class="kppl-container">
5
- <h1>Banner Parallax</h1>
6
- <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis ornare turpis eu elit ultricies mollis. Nulla sollicitudin orci mauris, nec fermentum tortor venenatis vel</p>
7
- </div>
8
- </div>
9
- </div>
10
-
11
- <style>
12
- .kppl-parallax {
13
- background-image: url(https://images.pexels.com/photos/67386/pexels-photo-67386.jpeg?auto=compress&cs=tinysrgb&h=750&w=1260);
14
- background-size: cover;
15
- background-position: center;
16
- background-attachment: fixed;
17
- width: auto;
18
- height: 400px;
19
- position: relative;
20
- }
21
-
22
- .kppl-parallax > .kppl-parallax-mask {
23
- background: #00000075;
24
- position: relative;
25
- height: 100%;
26
- width: 100%;
27
- display: flex;
28
- align-items: center;
29
- justify-content: center;
30
- font-family: Arial, Helvetica, sans-serif;
31
- text-align: center;
32
- color: #fff;
33
- }
34
-
35
- .kppl-parallax .kppl-container {
36
- max-width: 40%;
37
- }
38
- </style>
39
- </keppler-component>
40
- <script>
41
- 'kppl-banner-parallax', {
42
- label: 'Banner Parallax',
43
- category: 'Banners',
44
- attributes: { class:'fa fa-picture-o' },
45
- content: {
46
- script: function(){}
47
- }
48
- }
49
- </script>
@@ -1,48 +0,0 @@
1
- <keppler-component>
2
- <div class="kppl-static">
3
- <div class="kppl-static-mask">
4
- <div class="kppl-container">
5
- <h1>Banner Static</h1>
6
- <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis ornare turpis eu elit ultricies mollis. Nulla sollicitudin orci mauris, nec fermentum tortor venenatis vel</p>
7
- </div>
8
- </div>
9
- </div>
10
-
11
- <style>
12
- .kppl-static {
13
- background-image: url(https://images.pexels.com/photos/125532/pexels-photo-125532.jpeg?auto=compress&cs=tinysrgb&h=750&w=1260);
14
- background-size: cover;
15
- background-position: center;
16
- width: auto;
17
- height: 400px;
18
- position: relative;
19
- }
20
-
21
- .kppl-static > .kppl-static-mask {
22
- background: #00000075;
23
- position: relative;
24
- height: 100%;
25
- width: 100%;
26
- display: flex;
27
- align-items: center;
28
- justify-content: center;
29
- font-family: Arial, Helvetica, sans-serif;
30
- text-align: center;
31
- color: #fff;
32
- }
33
-
34
- .kppl-static .kppl-container {
35
- max-width: 40%;
36
- }
37
- </style>
38
- </keppler-component>
39
- <script>
40
- 'kppl-banner-static', {
41
- label: 'Banner Static',
42
- category: 'Banners',
43
- attributes: { class:'fa fa-picture-o' },
44
- content: {
45
- script: function(){}
46
- }
47
- }
48
- </script>
@@ -1,54 +0,0 @@
1
- <keppler-component>
2
- <div class="kppl-youtube">
3
- <iframe class="kppl-youtube-video" width="560" height="315" src="https://www.youtube.com/embed/SpaqUrNPb-4?rel=0&amp;controls=0&amp;showinfo=0&amp;mute=1&amp;autoplay=1&amp;loop=1" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
4
- <div class="kppl-youtube-mask">
5
- <div class="kppl-container">
6
- <h1>Banner Youtube</h1>
7
- <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis ornare turpis eu elit ultricies mollis. Nulla sollicitudin orci mauris, nec fermentum tortor venenatis vel</p>
8
- </div>
9
- </div>
10
- </div>
11
-
12
- <style>
13
- .kppl-youtube {
14
- width: auto;
15
- height: 400px;
16
- position: relative;
17
- overflow: hidden;
18
- }
19
-
20
- .kppl-youtube .kppl-youtube-video {
21
- height: 100%;
22
- width: 100%;
23
- position: absolute;
24
- transform: scale(2);
25
- }
26
-
27
- .kppl-youtube .kppl-youtube-mask {
28
- background: #00000075;
29
- position: relative;
30
- height: 100%;
31
- width: 100%;
32
- display: flex;
33
- align-items: center;
34
- justify-content: center;
35
- font-family: Arial, Helvetica, sans-serif;
36
- text-align: center;
37
- color: #fff;
38
- }
39
-
40
- .kppl-youtube .kppl-container {
41
- max-width: 40%;
42
- }
43
- </style>
44
- </keppler-component>
45
- <script>
46
- 'kppl-banner-youtube', {
47
- label: 'Banner Video',
48
- category: 'Banners',
49
- attributes: { class:'fa fa-youtube-play' },
50
- content: {
51
- script: function(){}
52
- }
53
- }
54
- </script>
@@ -1,15 +0,0 @@
1
- <keppler-component>
2
- <div style="padding:10px">
3
- <h1>Block</h1>
4
- </div>
5
- </keppler-component>
6
- <script>
7
- 'kppl-block', {
8
- label: 'Block',
9
- category: 'Layouts',
10
- attributes: { class:'fa fa-code' },
11
- content: {
12
- script: function(){}
13
- }
14
- }
15
- </script>
@@ -1,13 +0,0 @@
1
- <keppler-component>
2
- <h1>Header 1</h1>
3
- </keppler-component>
4
- <script>
5
- 'kppl-h1', {
6
- label: 'Header 1',
7
- category: 'Typography',
8
- attributes: { class:'fa fa-header' },
9
- content: {
10
- script: function(){}
11
- }
12
- }
13
- </script>
@@ -1,13 +0,0 @@
1
- <keppler-component>
2
- <h2>Header 2</h2>
3
- </keppler-component>
4
- <script>
5
- 'kppl-h2', {
6
- label: 'Header 2',
7
- category: 'Typography',
8
- attributes: { class:'fa fa-header' },
9
- content: {
10
- script: function(){}
11
- }
12
- }
13
- </script>
@@ -1,13 +0,0 @@
1
- <keppler-component>
2
- <h3>Header 3</h3>
3
- </keppler-component>
4
- <script>
5
- 'kppl-h3', {
6
- label: 'Header 3',
7
- category: 'Typography',
8
- attributes: { class:'fa fa-header' },
9
- content: {
10
- script: function(){}
11
- }
12
- }
13
- </script>
@@ -1,13 +0,0 @@
1
- <keppler-component>
2
- <h4>Header 4</h4>
3
- </keppler-component>
4
- <script>
5
- 'kppl-h4', {
6
- label: 'Header 4',
7
- category: 'Typography',
8
- attributes: { class:'fa fa-header' },
9
- content: {
10
- script: function(){}
11
- }
12
- }
13
- </script>
@@ -1,13 +0,0 @@
1
- <keppler-component>
2
- <small>Text small</small>
3
- </keppler-component>
4
- <script>
5
- 'kppl-small', {
6
- label: 'Small',
7
- category: 'Typography',
8
- attributes: { class:'fa fa-text-height' },
9
- content: {
10
- script: function(){}
11
- }
12
- }
13
- </script>
@@ -1,43 +0,0 @@
1
- <keppler-component>
2
- <div class="slick-caroucel">
3
- <div class="slick-item slick-item-1">
4
- <img src="https://dummyimage.com/1440x500/c0c0c0/000000.jpg" alt="...">
5
- </div>
6
- <div class="slick-item slick-item-2">
7
- <img src="https://dummyimage.com/1440x500/c0c0c0/000000.jpg" alt="...">
8
- </div>
9
- <div class="slick-item slick-item-3">
10
- <img src="https://dummyimage.com/1440x500/c0c0c0/000000.jpg" alt="...">
11
- </div>
12
- </div>
13
- <script>
14
- function guid() {
15
- return Math.floor((1 + Math.random()) * 0x10000)
16
- .toString(16)
17
- .substring(1);
18
- }
19
- var id = "slick-"+guid();
20
- document.getElementsByClassName('slick-caroucel')[0].id = id;
21
- console.log(document.getElementsByClassName('slick-caroucel')[0])
22
- $("#"+id).slick();
23
- </script>
24
- <style>
25
- .slick-caroucel {
26
- height: 500px;
27
- }
28
- img {
29
- width: 100%;
30
- height: 100%;
31
- }
32
- </style>
33
- </keppler-component>
34
- <script>
35
- // 'slick-basic', {
36
- // label: 'Slick Basic (1440x500)',
37
- // category: 'Sliders',
38
- // attributes: { class:'fa fa-sliders' },
39
- // content: {
40
- // script: function(){}
41
- // }
42
- // }
43
- </script>
@@ -1,64 +0,0 @@
1
- require 'google/api_client'
2
-
3
- module KepplerGaDashboard
4
- # DashboarController
5
- class DashboardController < ::ApplicationController
6
- layout 'keppler_ga_dashboard/admin/layouts/application'
7
- before_action :dashboard_access, only: [:analytics]
8
- before_action :set_apparience_colors
9
- before_action :authenticate_user!
10
-
11
- def analytics
12
- # set up a client instance
13
- client = ::Google::APIClient.new(
14
- application_name: 'keppler',
15
- application_version: '1'
16
- )
17
-
18
- client.authorization = Signet::OAuth2::Client.new(
19
- options
20
- ).tap(&:fetch_access_token!)
21
-
22
- @access_token = client.authorization.fetch_access_token!['access_token']
23
-
24
- gon.color = @color
25
- end
26
-
27
- # Options for authenticate
28
- def options
29
- { token_credential_uri: 'https://accounts.google.com/o/oauth2/token',
30
- audience: 'https://accounts.google.com/o/oauth2/token',
31
- scope: 'https://www.googleapis.com/auth/analytics.readonly',
32
- issuer: Rails.application.secrets.ga_auth.fetch(
33
- :service_account_email_address
34
- ),
35
- signing_key: Google::APIClient::KeyUtils.load_from_pkcs12(
36
- file_key, 'notasecret'
37
- )
38
- }
39
- end
40
-
41
- def set_apparience_colors
42
- variables_file = File.readlines(style_file)
43
- @color = ""
44
- variables_file.each { |line| @color = line[15..21] if line.include?('$keppler-color') }
45
-
46
-
47
- puts "********************** #{@color}"
48
- end
49
-
50
- def style_file
51
- "#{Rails.root}/app/assets/stylesheets/admin/utils/_variables.scss"
52
- end
53
-
54
- # get .p12 File for authenticate token
55
- def file_key
56
- File.join(
57
- Rails.root,
58
- 'config',
59
- 'gaAuth',
60
- Rails.application.secrets.ga_auth.fetch(:file_key_name)
61
- )
62
- end
63
- end
64
- end