fluentd-ui 0.4.5 → 1.0.0.alpha.1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of fluentd-ui might be problematic. Click here for more details.

Files changed (243) hide show
  1. checksums.yaml +5 -5
  2. data/.babelrc +18 -0
  3. data/.editorconfig +11 -0
  4. data/.gitignore +7 -0
  5. data/.postcssrc.yml +3 -0
  6. data/.travis.yml +20 -4
  7. data/ChangeLog.md +7 -2
  8. data/Gemfile +8 -6
  9. data/Gemfile.lock +177 -178
  10. data/README.md +15 -10
  11. data/app/assets/stylesheets/application.css +6 -5
  12. data/app/controllers/concerns/setting_history_concern.rb +1 -1
  13. data/app/controllers/fluentd/agents_controller.rb +5 -0
  14. data/app/controllers/misc_controller.rb +2 -2
  15. data/app/controllers/plugins_controller.rb +4 -4
  16. data/app/helpers/application_helper.rb +8 -2
  17. data/app/helpers/settings_helper.rb +2 -2
  18. data/app/javascript/packs/application.js +31 -0
  19. data/app/{assets/javascripts/codemirror_fluentd.js → javascript/packs/codemirror.js} +32 -1
  20. data/app/javascript/packs/fluent_log.js +63 -0
  21. data/app/javascript/packs/in_tail_format.js +174 -0
  22. data/app/javascript/packs/nested_settings.js +40 -0
  23. data/app/javascript/packs/notification.js +60 -0
  24. data/app/javascript/packs/settings.js +122 -0
  25. data/app/javascript/packs/treeview.js +99 -0
  26. data/{vendor/assets/javascripts/.keep → app/javascript/stylesheets/application.scss} +0 -0
  27. data/app/jobs/all_plugin_check_update_job.rb +10 -0
  28. data/app/jobs/application_job.rb +2 -0
  29. data/app/{workers/fluentd_ui_restart.rb → jobs/fluentd_ui_restart_job.rb} +4 -4
  30. data/app/jobs/fluentd_ui_update_check_job.rb +11 -0
  31. data/app/{workers/gem_installer.rb → jobs/gem_installer_job.rb} +4 -5
  32. data/app/jobs/gem_uninstaller_job.rb +14 -0
  33. data/app/jobs/gem_update_check_job.rb +9 -0
  34. data/app/models/fluentd/agent.rb +9 -5
  35. data/app/models/fluentd/agent/common.rb +10 -6
  36. data/app/models/fluentd/agent/fluentd_gem.rb +2 -3
  37. data/app/models/fluentd/agent/td_agent/unix.rb +7 -5
  38. data/app/models/fluentd/setting/in_tail.rb +2 -2
  39. data/app/views/fluentd/_form.html.haml +1 -1
  40. data/app/views/fluentd/errors.html.haml +5 -6
  41. data/app/views/fluentd/log.html.haml +4 -5
  42. data/app/views/fluentd/settings/edit.html.haml +2 -1
  43. data/app/views/fluentd/settings/histories/_list.html.haml +1 -1
  44. data/app/views/fluentd/settings/histories/show.html.haml +6 -6
  45. data/app/views/fluentd/settings/in_tail/after_file_choose.html.haml +4 -3
  46. data/app/views/fluentd/settings/in_tail/after_format.html.haml +2 -2
  47. data/app/views/fluentd/settings/in_tail/confirm.html.haml +3 -3
  48. data/app/views/fluentd/settings/running_backup/show.html.haml +5 -5
  49. data/app/views/fluentd/settings/show.html.haml +7 -7
  50. data/app/views/fluentd/settings/source_and_output.html.haml +31 -18
  51. data/app/views/fluentd/show.html.haml +16 -15
  52. data/app/views/layouts/application.html.erb +31 -46
  53. data/app/views/layouts/sign_in.html.erb +9 -16
  54. data/app/views/misc/information.html.haml +13 -13
  55. data/app/views/misc/update_fluentd_ui.html.haml +3 -3
  56. data/app/views/plugins/installed.html.haml +8 -8
  57. data/app/views/plugins/recommended.html.haml +5 -5
  58. data/app/views/plugins/updated.html.haml +5 -5
  59. data/app/views/sessions/new.html.haml +5 -6
  60. data/app/views/shared/_global_nav.html.erb +9 -9
  61. data/app/views/shared/_initial_setup.html.haml +3 -3
  62. data/app/views/shared/_modal.html.erb +1 -1
  63. data/app/views/shared/settings/_form.html.haml +9 -8
  64. data/app/views/shared/settings/show.html.haml +4 -2
  65. data/app/views/shared/vue/_fluent_log.html.erb +6 -6
  66. data/app/views/shared/vue/_in_tail_format.html.erb +31 -29
  67. data/app/views/shared/vue/_notification.html.erb +5 -9
  68. data/app/views/shared/vue/_setting.html.erb +12 -10
  69. data/app/views/shared/vue/_treeview.html.erb +13 -10
  70. data/app/views/tutorials/chapter1.html.erb +3 -4
  71. data/app/views/tutorials/chapter2.html.haml +2 -2
  72. data/app/views/tutorials/chapter3.html.haml +2 -2
  73. data/app/views/tutorials/chapter4.html.haml +2 -2
  74. data/app/views/users/show.html.haml +1 -1
  75. data/bin/bundle +1 -1
  76. data/bin/fluentd-ui +1 -0
  77. data/bin/rails +1 -1
  78. data/bin/setup +16 -17
  79. data/bin/update +28 -0
  80. data/bin/webpack +15 -0
  81. data/bin/webpack-dev-server +15 -0
  82. data/bin/yarn +11 -0
  83. data/config/application.rb +18 -5
  84. data/config/boot.rb +2 -1
  85. data/config/environment.rb +1 -1
  86. data/config/environments/development.rb +27 -5
  87. data/config/environments/production.rb +34 -23
  88. data/config/environments/test.rb +7 -3
  89. data/config/initializers/application_controller_renderer.rb +8 -0
  90. data/config/initializers/assets.rb +14 -0
  91. data/config/initializers/content_security_policy.rb +25 -0
  92. data/config/initializers/cookies_serializer.rb +2 -0
  93. data/config/initializers/fluentd_ui_update_check.rb +2 -1
  94. data/config/initializers/new_framework_defaults_5_2.rb +35 -0
  95. data/config/initializers/prefetch_gem_updates.rb +4 -1
  96. data/config/initializers/wrap_parameters.rb +1 -6
  97. data/config/locales/ja.yml +61 -57
  98. data/config/routes.rb +1 -0
  99. data/config/spring.rb +6 -0
  100. data/config/webpack/development.js +5 -0
  101. data/config/webpack/environment.js +20 -0
  102. data/config/webpack/loaders/vue.js +13 -0
  103. data/config/webpack/production.js +5 -0
  104. data/config/webpack/test.js +5 -0
  105. data/config/webpacker.yml +69 -0
  106. data/fluentd-ui.gemspec +16 -6
  107. data/lib/fluentd-ui/version.rb +1 -1
  108. data/lib/regexp_preview/single_line.rb +5 -5
  109. data/package.json +19 -0
  110. data/spec/controllers/application_controller_spec.rb +2 -6
  111. data/spec/controllers/fluentd/agents_controller_spec.rb +12 -0
  112. data/spec/controllers/polling_controller_spec.rb +1 -1
  113. data/spec/factories/fluentd.rb +1 -1
  114. data/spec/factories/plugins.rb +2 -2
  115. data/spec/factories/user.rb +1 -1
  116. data/spec/features/fluentd/setting/histories_spec.rb +7 -6
  117. data/spec/features/fluentd/setting/running_backup_spec.rb +4 -3
  118. data/spec/features/setting_spec.rb +1 -0
  119. data/spec/features/source_and_output_spec.rb +16 -16
  120. data/spec/lib/regexp_preview/single_line_spec.rb +1 -1
  121. data/spec/models/fluentd_spec.rb +4 -4
  122. data/spec/spec_helper.rb +16 -4
  123. data/yarn.lock +6225 -0
  124. metadata +120 -154
  125. data/.bowerrc +0 -3
  126. data/app/assets/javascripts/application.js +0 -24
  127. data/app/assets/javascripts/codemirror.js +0 -29
  128. data/app/assets/javascripts/enable_bootstrap_tooltip.js +0 -3
  129. data/app/assets/javascripts/nested_setting.js +0 -41
  130. data/app/assets/javascripts/vue/fluent_log.js +0 -64
  131. data/app/assets/javascripts/vue/in_tail_format.js +0 -177
  132. data/app/assets/javascripts/vue/notification.js +0 -65
  133. data/app/assets/javascripts/vue/settings.js +0 -121
  134. data/app/assets/javascripts/vue/treeview.js +0 -97
  135. data/app/assets/javascripts/vue_common.js +0 -4
  136. data/app/workers/all_plugin_check_update.rb +0 -14
  137. data/app/workers/fluentd_ui_update_check.rb +0 -15
  138. data/app/workers/gem_uninstaller.rb +0 -15
  139. data/app/workers/gem_update_check.rb +0 -10
  140. data/bower.json +0 -11
  141. data/vendor/assets/javascripts/bower/.gitignore +0 -10
  142. data/vendor/assets/javascripts/bower/codemirror/.bower.json +0 -29
  143. data/vendor/assets/javascripts/bower/codemirror/bower.json +0 -16
  144. data/vendor/assets/javascripts/bower/codemirror/lib/codemirror.css +0 -309
  145. data/vendor/assets/javascripts/bower/codemirror/lib/codemirror.js +0 -8029
  146. data/vendor/assets/javascripts/bower/codemirror/theme/3024-day.css +0 -38
  147. data/vendor/assets/javascripts/bower/codemirror/theme/3024-night.css +0 -37
  148. data/vendor/assets/javascripts/bower/codemirror/theme/ambiance-mobile.css +0 -5
  149. data/vendor/assets/javascripts/bower/codemirror/theme/ambiance.css +0 -77
  150. data/vendor/assets/javascripts/bower/codemirror/theme/base16-dark.css +0 -36
  151. data/vendor/assets/javascripts/bower/codemirror/theme/base16-light.css +0 -36
  152. data/vendor/assets/javascripts/bower/codemirror/theme/blackboard.css +0 -30
  153. data/vendor/assets/javascripts/bower/codemirror/theme/cobalt.css +0 -23
  154. data/vendor/assets/javascripts/bower/codemirror/theme/eclipse.css +0 -23
  155. data/vendor/assets/javascripts/bower/codemirror/theme/elegant.css +0 -13
  156. data/vendor/assets/javascripts/bower/codemirror/theme/erlang-dark.css +0 -32
  157. data/vendor/assets/javascripts/bower/codemirror/theme/lesser-dark.css +0 -45
  158. data/vendor/assets/javascripts/bower/codemirror/theme/mbo.css +0 -35
  159. data/vendor/assets/javascripts/bower/codemirror/theme/mdn-like.css +0 -44
  160. data/vendor/assets/javascripts/bower/codemirror/theme/midnight.css +0 -45
  161. data/vendor/assets/javascripts/bower/codemirror/theme/monokai.css +0 -31
  162. data/vendor/assets/javascripts/bower/codemirror/theme/neat.css +0 -12
  163. data/vendor/assets/javascripts/bower/codemirror/theme/neo.css +0 -43
  164. data/vendor/assets/javascripts/bower/codemirror/theme/night.css +0 -26
  165. data/vendor/assets/javascripts/bower/codemirror/theme/paraiso-dark.css +0 -36
  166. data/vendor/assets/javascripts/bower/codemirror/theme/paraiso-light.css +0 -36
  167. data/vendor/assets/javascripts/bower/codemirror/theme/pastel-on-dark.css +0 -50
  168. data/vendor/assets/javascripts/bower/codemirror/theme/rubyblue.css +0 -23
  169. data/vendor/assets/javascripts/bower/codemirror/theme/solarized.css +0 -165
  170. data/vendor/assets/javascripts/bower/codemirror/theme/the-matrix.css +0 -28
  171. data/vendor/assets/javascripts/bower/codemirror/theme/tomorrow-night-bright.css +0 -35
  172. data/vendor/assets/javascripts/bower/codemirror/theme/tomorrow-night-eighties.css +0 -36
  173. data/vendor/assets/javascripts/bower/codemirror/theme/twilight.css +0 -30
  174. data/vendor/assets/javascripts/bower/codemirror/theme/vibrant-ink.css +0 -32
  175. data/vendor/assets/javascripts/bower/codemirror/theme/xq-dark.css +0 -51
  176. data/vendor/assets/javascripts/bower/codemirror/theme/xq-light.css +0 -43
  177. data/vendor/assets/javascripts/bower/codemirror/theme/zenburn.css +0 -37
  178. data/vendor/assets/javascripts/bower/es6-promise/.bower.json +0 -15
  179. data/vendor/assets/javascripts/bower/es6-promise/bower.json +0 -5
  180. data/vendor/assets/javascripts/bower/es6-promise/promise.js +0 -684
  181. data/vendor/assets/javascripts/bower/es6-promise/promise.min.js +0 -1
  182. data/vendor/assets/javascripts/bower/lodash/.bower.json +0 -33
  183. data/vendor/assets/javascripts/bower/lodash/LICENSE.txt +0 -22
  184. data/vendor/assets/javascripts/bower/lodash/bower.json +0 -23
  185. data/vendor/assets/javascripts/bower/lodash/dist/lodash.compat.js +0 -7157
  186. data/vendor/assets/javascripts/bower/lodash/dist/lodash.compat.min.js +0 -61
  187. data/vendor/assets/javascripts/bower/lodash/dist/lodash.js +0 -6785
  188. data/vendor/assets/javascripts/bower/lodash/dist/lodash.min.js +0 -56
  189. data/vendor/assets/javascripts/bower/lodash/dist/lodash.underscore.js +0 -4979
  190. data/vendor/assets/javascripts/bower/lodash/dist/lodash.underscore.min.js +0 -39
  191. data/vendor/assets/javascripts/bower/vue/.bower.json +0 -29
  192. data/vendor/assets/javascripts/bower/vue/bower.json +0 -17
  193. data/vendor/assets/javascripts/bower/vue/dist/vue.js +0 -7977
  194. data/vendor/assets/javascripts/bower/vue/dist/vue.min.js +0 -7
  195. data/vendor/assets/javascripts/sb-admin-v2/bootstrap.js +0 -1951
  196. data/vendor/assets/javascripts/sb-admin-v2/bootstrap.min.js +0 -6
  197. data/vendor/assets/javascripts/sb-admin-v2/demo/dashboard-demo.js +0 -117
  198. data/vendor/assets/javascripts/sb-admin-v2/demo/flot-demo.js +0 -1242
  199. data/vendor/assets/javascripts/sb-admin-v2/demo/morris-demo.js +0 -155
  200. data/vendor/assets/javascripts/sb-admin-v2/jquery-1.10.2.js +0 -6
  201. data/vendor/assets/javascripts/sb-admin-v2/plugins/dataTables/dataTables.bootstrap.js +0 -245
  202. data/vendor/assets/javascripts/sb-admin-v2/plugins/dataTables/jquery.dataTables.js +0 -14013
  203. data/vendor/assets/javascripts/sb-admin-v2/plugins/flot/excanvas.min.js +0 -1
  204. data/vendor/assets/javascripts/sb-admin-v2/plugins/flot/jquery.flot.js +0 -2599
  205. data/vendor/assets/javascripts/sb-admin-v2/plugins/flot/jquery.flot.pie.js +0 -750
  206. data/vendor/assets/javascripts/sb-admin-v2/plugins/flot/jquery.flot.resize.js +0 -60
  207. data/vendor/assets/javascripts/sb-admin-v2/plugins/flot/jquery.flot.tooltip.min.js +0 -12
  208. data/vendor/assets/javascripts/sb-admin-v2/plugins/metisMenu/jquery.metisMenu.js +0 -45
  209. data/vendor/assets/javascripts/sb-admin-v2/plugins/morris/morris.js +0 -1888
  210. data/vendor/assets/javascripts/sb-admin-v2/plugins/morris/raphael-2.1.0.min.js +0 -10
  211. data/vendor/assets/javascripts/sb-admin-v2/sb-admin.js +0 -18
  212. data/vendor/assets/stylesheets/.keep +0 -0
  213. data/vendor/assets/stylesheets/sb-admin-v2/bootstrap.css +0 -5830
  214. data/vendor/assets/stylesheets/sb-admin-v2/bootstrap.min.css +0 -7
  215. data/vendor/assets/stylesheets/sb-admin-v2/font-awesome/css/font-awesome.css +0 -1338
  216. data/vendor/assets/stylesheets/sb-admin-v2/font-awesome/css/font-awesome.min.css +0 -4
  217. data/vendor/assets/stylesheets/sb-admin-v2/font-awesome/fonts/FontAwesome.otf +0 -0
  218. data/vendor/assets/stylesheets/sb-admin-v2/font-awesome/fonts/fontawesome-webfont.eot +0 -0
  219. data/vendor/assets/stylesheets/sb-admin-v2/font-awesome/fonts/fontawesome-webfont.svg +0 -414
  220. data/vendor/assets/stylesheets/sb-admin-v2/font-awesome/fonts/fontawesome-webfont.ttf +0 -0
  221. data/vendor/assets/stylesheets/sb-admin-v2/font-awesome/fonts/fontawesome-webfont.woff +0 -0
  222. data/vendor/assets/stylesheets/sb-admin-v2/font-awesome/scss/_bordered-pulled.scss +0 -16
  223. data/vendor/assets/stylesheets/sb-admin-v2/font-awesome/scss/_core.scss +0 -12
  224. data/vendor/assets/stylesheets/sb-admin-v2/font-awesome/scss/_fixed-width.scss +0 -6
  225. data/vendor/assets/stylesheets/sb-admin-v2/font-awesome/scss/_icons.scss +0 -412
  226. data/vendor/assets/stylesheets/sb-admin-v2/font-awesome/scss/_larger.scss +0 -13
  227. data/vendor/assets/stylesheets/sb-admin-v2/font-awesome/scss/_list.scss +0 -19
  228. data/vendor/assets/stylesheets/sb-admin-v2/font-awesome/scss/_mixins.scss +0 -20
  229. data/vendor/assets/stylesheets/sb-admin-v2/font-awesome/scss/_path.scss +0 -14
  230. data/vendor/assets/stylesheets/sb-admin-v2/font-awesome/scss/_rotated-flipped.scss +0 -9
  231. data/vendor/assets/stylesheets/sb-admin-v2/font-awesome/scss/_spinning.scss +0 -30
  232. data/vendor/assets/stylesheets/sb-admin-v2/font-awesome/scss/_stacked.scss +0 -20
  233. data/vendor/assets/stylesheets/sb-admin-v2/font-awesome/scss/_variables.scss +0 -381
  234. data/vendor/assets/stylesheets/sb-admin-v2/font-awesome/scss/font-awesome.scss +0 -17
  235. data/vendor/assets/stylesheets/sb-admin-v2/fonts/glyphicons-halflings-regular.eot +0 -0
  236. data/vendor/assets/stylesheets/sb-admin-v2/fonts/glyphicons-halflings-regular.svg +0 -229
  237. data/vendor/assets/stylesheets/sb-admin-v2/fonts/glyphicons-halflings-regular.ttf +0 -0
  238. data/vendor/assets/stylesheets/sb-admin-v2/fonts/glyphicons-halflings-regular.woff +0 -0
  239. data/vendor/assets/stylesheets/sb-admin-v2/plugins/dataTables/dataTables.bootstrap.css +0 -233
  240. data/vendor/assets/stylesheets/sb-admin-v2/plugins/morris/morris-0.4.3.min.css +0 -2
  241. data/vendor/assets/stylesheets/sb-admin-v2/plugins/social-buttons/social-buttons.css +0 -68
  242. data/vendor/assets/stylesheets/sb-admin-v2/plugins/timeline/timeline.css +0 -144
  243. data/vendor/assets/stylesheets/sb-admin-v2/sb-admin.css +0 -329
@@ -10,71 +10,56 @@
10
10
  <% end %>
11
11
  <%= fluentd_ui_title %>
12
12
  </title>
13
- <%= stylesheet_link_tag 'application', media: 'all'%>
14
- <%= javascript_include_tag 'application' %>
13
+ <%= stylesheet_link_tag 'application', media: 'all'%>
14
+ <%= stylesheet_pack_tag 'application', media: 'all'%>
15
+ <%= javascript_pack_tag 'application' %>
16
+ <%= javascript_pack_tag 'notification' %>
17
+ <%= content_for(:additional_javascript_pack_tag) %>
15
18
  <%= csrf_meta_tags %>
16
19
  </head>
17
- <body>
18
- <div id="wrapper">
19
- <nav class="navbar navbar-default navbar-fixed-top" role="navigation" style="margin-bottom: 0">
20
- <div class="navbar-header">
21
- <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".sidebar-collapse">
22
- <span class="sr-only">Toggle navigation</span>
23
- <span class="icon-bar"></span>
24
- <span class="icon-bar"></span>
25
- <span class="icon-bar"></span>
26
- </button>
27
- <%= link_to fluentd_ui_logo, root_path, class: "navbar-brand fluentd-ui-logo" %>
28
- </div>
29
- <!-- /.navbar-header -->
20
+ <body class="fixed-nav bg-light">
21
+ <nav class="navbar navbar-expand-lg navbar-light bg-light fixed-top" id="mainNav">
22
+ <%= link_to fluentd_ui_logo, root_path, class: "navbar-brand fluentd-ui-logo" %>
23
+ <button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse" data-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation">
24
+ <span class="navbar-toggler-icon"></span>
25
+ </button>
26
+ <div class="collapse navbar-collapse" id="navbarResponsive">
27
+ <%= render partial: "shared/global_nav" %>
28
+ <ul class="navbar-nav ml-auto">
29
+ <%- if @fluentd %>
30
+ <li class="nav-item fluentd-status">
31
+ <a class="nav-link" href="<%= daemon_path %>" data-toggle="tooltip" data-placement="bottom" title="fluentd <%= fluentd_status_message %>">
32
+ <%= fluentd_status_icon %>
33
+ </a>
34
+ </li>
35
+ <%- end %>
30
36
 
31
- <ul class="nav navbar-top-links navbar-right">
32
- <% if @fluentd %>
33
- <li class="fluentd-status">
34
- <a href="<%= daemon_path %>" data-toggle="tooltip" data-placement="bottom" title="fluentd <%= fluentd_status_message %>">
35
- <%= fluentd_status_icon %>
36
- </a>
37
- </li>
38
- <% end %>
39
37
  <%= render partial: "shared/vue/notification" %>
40
38
 
41
- <li class="dropdown">
42
- <%= link_to(t("terms.sign_out"), sessions_path, method: :delete) %>
39
+ <li class="nav-item">
40
+ <%= link_to(icon("fa-fw fa-sign-out") + t("terms.sign_out"), sessions_path, method: :delete, class: "nav-link") %>
43
41
  </li>
44
42
  </ul>
45
- <!-- /.navbar-top-links -->
46
-
47
- <div class="navbar-default navbar-static-side" role="navigation">
48
- <div class="sidebar-collapse">
49
- <%= render partial: "shared/global_nav" %>
50
- <!-- /#side-menu -->
51
- </div>
52
- <!-- /.sidebar-collapse -->
53
- </div>
54
- <!-- /.navbar-static-side -->
55
- </nav>
43
+ </div>
44
+ </nav>
56
45
 
57
- <div id="page-wrapper">
46
+ <div class="content-wrapper">
47
+ <div class="container-fluid">
58
48
  <%= render partial: "shared/flash" %>
59
49
  <% if content_for?(:page_head) %>
60
50
  <div class="row">
61
- <div class="col-xs-12">
62
- <h1 class="page-header"><%= content_for(:page_head) %></h1>
51
+ <div class="col-xl-12 col-sm-12">
52
+ <h1 class="display-4 border-bottom mb-3"><%= content_for(:page_head) %></h1>
63
53
  </div>
64
- <!-- /.col-xs-12 -->
65
54
  </div>
66
- <!-- /.row -->
67
55
  <% end %>
68
56
  <div class="row">
69
- <div class="col-xs-12">
57
+ <div class="col-xl-12 col-sm-12">
70
58
  <%= yield %>
71
59
  </div>
72
60
  </div>
73
- <!-- /.row -->
74
61
  </div>
75
- <!-- /#page-wrapper -->
76
-
77
62
  </div>
78
- <!-- /#wrapper -->
63
+
79
64
  </body>
80
65
  </html>
@@ -3,26 +3,19 @@
3
3
 
4
4
  <head>
5
5
 
6
- <meta charset="utf-8">
7
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <meta charset="utf-8">
7
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
8
8
 
9
- <title>Fluentd-UI</title>
10
- <%= stylesheet_link_tag 'application', media: 'all'%>
11
- <%= javascript_include_tag 'application' %>
9
+ <title>Fluentd-UI</title>
10
+ <%= stylesheet_link_tag 'application', media: 'all'%>
11
+ <%= javascript_pack_tag 'application' %>
12
12
  <%= csrf_meta_tags %>
13
-
14
13
  </head>
15
14
 
16
- <body>
17
-
18
- <div class="container">
19
- <div class="row">
20
- <div class="col-md-4 col-md-offset-4">
21
- <%= yield %>
22
- </div>
23
- </div>
24
- </div>
25
-
15
+ <body class="bg-light">
16
+ <div class="container">
17
+ <%= yield %>
18
+ </div>
26
19
  </body>
27
20
 
28
21
  </html>
@@ -1,23 +1,23 @@
1
1
  - page_title t('.page_title') do
2
- - link_to misc_download_info_path, class: "btn btn-primary pull-right" do
2
+ - link_to misc_download_info_path, class: "btn btn-primary float-right" do
3
3
  = icon('fa-download')
4
4
  = t('.download_system_information')
5
5
 
6
6
  - if FluentdUI.update_available? && !FluentdUI.td_agent_ui?
7
7
  - # NOTE: td-agent-ui shouldn't have auto update feature
8
8
  .row
9
- .col-xs-12
9
+ .col-xl-12
10
10
  %p
11
11
  = link_to misc_update_fluentd_ui_path, class: "btn btn-primary btn-lg", method: :post do
12
12
  = t('.update_fluentd_ui', version: FluentdUI.latest_version, title: fluentd_ui_title)
13
13
  = t('.update_fluentd_ui_caution', brand: fluentd_ui_brand)
14
14
 
15
15
  .row
16
- .col-xs-6
17
- .panel.panel-default
18
- .panel-heading
16
+ .col-xl-6.col-sm-6.mb-3
17
+ .card.card-default
18
+ .card-header
19
19
  %h4= t("terms.version")
20
- .panel-body
20
+ .card-body
21
21
  %dl{class: "dl-horizontal"}
22
22
  %dt ruby
23
23
  %dd= RUBY_DESCRIPTION
@@ -27,11 +27,11 @@
27
27
  %dt fluentd-ui
28
28
  %dd= FluentdUI::VERSION
29
29
 
30
- .col-xs-6
31
- .panel.panel-default
32
- .panel-heading
30
+ .col-xl-6.col-sm-6.mb-3
31
+ .card.card-default
32
+ .card-header
33
33
  %h4= t('terms.installed_plugins')
34
- .panel-body
34
+ .card-body
35
35
  - if @plugins.present?
36
36
  %table{class: "table table-hover", id: "plugins-table"}
37
37
  %thead
@@ -47,9 +47,9 @@
47
47
  = t "plugins.common.no_installed"
48
48
 
49
49
  .row
50
- .col-xs-12
51
- .panel.panel-default
52
- .panel-heading
50
+ .col-xl-12.col-sm-12
51
+ .card.card-default
52
+ .card-header
53
53
  %h4{"data-toggle" => "collapse", "href" => "#env-table"}
54
54
  = icon('fa-caret-down')
55
55
  = t('.env')
@@ -1,7 +1,7 @@
1
- .panel.panel-default
2
- .panel-heading
1
+ .card
2
+ .card-header
3
3
  = t('.update_title', title: fluentd_ui_title)
4
- .panel-body
4
+ .card-body
5
5
  #processing
6
6
  = icon('fa-lg fa-gear fa-spin')
7
7
  = t('.updating')
@@ -3,13 +3,13 @@
3
3
  %table{class: "table table-striped table-hover", id: "plugins-table"}
4
4
  %thead
5
5
  %tr
6
- %th.col-xs-1
7
- %th.col-xs-1= t('plugins.common.name')
8
- %th{width: 160}= t('plugins.common.authors')
9
- %th{width: 320}= t('plugins.common.summary')
10
- %th.col-xs-1= t('plugins.common.installed_version')
11
- %th.col-xs-1= t('plugins.common.latest_version')
12
- %th.col-xs-1
6
+ %th{scope: "col"}
7
+ %th{scope: "col"}= t('plugins.common.name')
8
+ %th{scope: "col"}= t('plugins.common.authors')
9
+ %th{scope: "col"}= t('plugins.common.summary')
10
+ %th{scope: "col"}= t('plugins.common.installed_version')
11
+ %th{scope: "col"}= t('plugins.common.latest_version')
12
+ %th{scope: "col"}
13
13
  %tbody
14
14
  - @plugins.each do |plugin|
15
15
  %tr
@@ -28,7 +28,7 @@
28
28
  = t('terms.confirm_body', action: t('terms.uninstall'))
29
29
  .modal-footer
30
30
  = form_tag(uninstall_plugins_path, method: :patch) do
31
- %button.btn.btn-default{"data-dismiss" => "modal"}
31
+ %button.btn.btn-secondary{"data-dismiss" => "modal"}
32
32
  Close
33
33
  = hidden_field_tag("plugins[]", plugin.gem_name)
34
34
  = submit_tag t('terms.uninstall'), class: "btn btn-danger"
@@ -3,11 +3,11 @@
3
3
  %table{class: "table table-striped table-hover", id: "plugins-table"}
4
4
  %thead
5
5
  %tr
6
- %th{width: "24"}
7
- %th= t('plugins.common.name')
8
- %th= t('plugins.common.category')
9
- %th= t('plugins.common.status')
10
- %th
6
+ %th{scope: "col", width: "24"}
7
+ %th{scope: "col"}= t('plugins.common.name')
8
+ %th{scope: "col"}= t('plugins.common.category')
9
+ %th{scope: "col"}= t('plugins.common.status')
10
+ %th{scope: "col"}
11
11
  %tbody
12
12
  - @plugins.each do |plugin|
13
13
  %tr
@@ -7,11 +7,11 @@
7
7
  %table{class: "table table-striped table-hover"}
8
8
  %thead
9
9
  %tr
10
- %th.col-xs-2= t('plugins.common.name')
11
- %th.col-xs-2= t('plugins.common.authors')
12
- %th.col-xs-6= t('plugins.common.summary')
13
- %th.col-xs-1= t('plugins.common.installed_version')
14
- %th.col-xs-1= t('plugins.common.latest_version')
10
+ %th.col-xl-2= t('plugins.common.name')
11
+ %th.col-xl-2= t('plugins.common.authors')
12
+ %th.col-xl-6= t('plugins.common.summary')
13
+ %th.col-xl-1= t('plugins.common.installed_version')
14
+ %th.col-xl-1= t('plugins.common.latest_version')
15
15
  %tbody
16
16
  - @plugins.each do |plugin|
17
17
  %tr
@@ -1,8 +1,7 @@
1
- .login-panel.panel.panel-default
2
- .panel-heading
3
- %h3.panel-title
4
- = t('messages.please_sign_in')
5
- .panel-body
1
+ .card.card-login.mx-auto.mt-5
2
+ .card-header
3
+ = t('messages.please_sign_in')
4
+ .card-body
6
5
  = render partial: "shared/error"
7
6
  = form_for(:session, url: sessions_path) do |f|
8
7
  .form-group
@@ -10,4 +9,4 @@
10
9
  .form-group
11
10
  = f.password_field :password, placeholder: t('terms.password'), class: "form-control"
12
11
 
13
- = submit_tag t("terms.sign_in"), class: "btn btn-success"
12
+ = submit_tag t("terms.sign_in"), class: "btn btn-primary btn-block"
@@ -1,9 +1,9 @@
1
- <ul class="nav" id="side-menu">
2
- <li>
1
+ <ul class="navbar-nav navbar-sidenav" id="side-menu">
2
+ <li class="nav-item" data-toggle="tooltip" data-placement="right" title="Fluentd">
3
3
  <a class="section">
4
4
  <%= icon("fa-puzzle-piece fa-fw") << "fluentd" %>
5
5
  </a>
6
- <ul class="nav nav-second-level">
6
+ <ul class="sidenav-second-level">
7
7
  <% if fluentd_exists? %>
8
8
  <li>
9
9
  <%= link_to_other t('fluentd.show.page_title'), daemon_path %>
@@ -29,11 +29,11 @@
29
29
  </li>
30
30
 
31
31
  <% if fluentd_exists? %>
32
- <li>
32
+ <li class="nav-item" data-toggle="tooltip" data-placement="right" title="Plugins">
33
33
  <a class="section">
34
34
  <%= icon("fa-cogs fa-fw") << t('terms.plugins') %>
35
35
  </a>
36
- <ul class="nav nav-second-level">
36
+ <ul class="sidenav-second-level">
37
37
  <li>
38
38
  <%= link_to_other t("plugins.installed.page_title"), installed_plugins_path %>
39
39
  </li>
@@ -47,11 +47,11 @@
47
47
  </li>
48
48
  <% end %>
49
49
 
50
- <li>
50
+ <li class="nav-item" data-toggle="tooltip" data-placement="right" title="Misc">
51
51
  <a class="section">
52
52
  <%= icon('fa-coffee fa-fw') << t('terms.misc') %>
53
53
  </a>
54
- <ul class="nav nav-second-level">
54
+ <ul class="sidenav-second-level">
55
55
  <li>
56
56
  <%= link_to_other t("misc.information.page_title"), misc_information_path %>
57
57
  </li>
@@ -67,11 +67,11 @@
67
67
  </ul>
68
68
  </li>
69
69
 
70
- <li>
70
+ <li class="nav-item" data-toggle="tooltip" data-placement="right" title="Language">
71
71
  <a class="section">
72
72
  <%= icon('fa-font') << t('terms.languages') %>
73
73
  </a>
74
- <ul class="nav nav-second-level">
74
+ <ul class="sidenav-second-level">
75
75
  <li>
76
76
  <%= language_menu %>
77
77
  </li>
@@ -1,13 +1,13 @@
1
1
  - page_title "fluentd"
2
2
 
3
3
  .row
4
- .col-xs-6
4
+ .col-xl-6.col-sm-6
5
5
  .well
6
6
  %span= link_to icon("fa-cog") << t("terms.setup", target: "fluentd"), new_daemon_path(variant: "fluentd_gem"), class: "btn btn-primary btn-lg"
7
- .col-xs-6
7
+ .col-xl-6.col-sm-6
8
8
  .well
9
9
  %span
10
- = link_to icon("fa-cog") << t("terms.setup", target: "td-agent"), new_daemon_path(variant: "td-agent"), class: "btn btn-lg #{has_td_agent_system? ? "btn-primary" : "btn-default disabled"}"
10
+ = link_to icon("fa-cog") << t("terms.setup", target: "td-agent"), new_daemon_path(variant: "td-agent"), class: "btn btn-lg #{has_td_agent_system? ? "btn-primary" : "btn-secondary disabled"}"
11
11
  - unless has_td_agent_system?
12
12
  = link_to t('terms.install_it', target: "td-agent"), "http://docs.treasuredata.com/articles/td-agent"
13
13
 
@@ -14,7 +14,7 @@
14
14
  </div>
15
15
 
16
16
  <div class="modal-footer">
17
- <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
17
+ <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
18
18
  <%= primary_button %>
19
19
  </div>
20
20
  </div>
@@ -6,12 +6,13 @@
6
6
  = field(f, key)
7
7
 
8
8
  - if @setting.advanced_options.present?
9
- .well.well-sm
10
- %h4{"data-toggle" => "collapse", "href" => "#advanced-setting"}
11
- = icon('fa-caret-down')
12
- = t('terms.advanced_setting')
13
- #advanced-setting.collapse
14
- - @setting.advanced_options.each do |key|
15
- = field(f, key)
16
- = f.submit t('fluentd.common.finish'), class: "btn btn-lg btn-primary pull-right"
9
+ .card.bg-light
10
+ .card-body
11
+ %h4{"data-toggle" => "collapse", "href" => "#advanced-setting"}
12
+ = icon('fa-caret-down')
13
+ = t('terms.advanced_setting')
14
+ #advanced-setting.collapse
15
+ - @setting.advanced_options.each do |key|
16
+ = field(f, key)
17
+ = f.submit t('fluentd.common.finish'), class: "btn btn-lg btn-primary float-right"
17
18
 
@@ -1,6 +1,8 @@
1
1
  - page_title t("fluentd.settings.#{target_plugin_name}.show.page_title")
2
+ - add_javascript_pack_tag("nested_settings")
2
3
 
3
- .well
4
- = raw t("fluentd.settings.#{target_plugin_name}.option_guide")
4
+ .card.mb-3
5
+ .card-body.bg-light
6
+ = raw t("fluentd.settings.#{target_plugin_name}.option_guide")
5
7
 
6
8
  = render "shared/settings/form"
@@ -1,20 +1,21 @@
1
+ <%- add_javascript_pack_tag("fluent_log") %>
1
2
  <!-- vue.js -->
2
3
  <% auto_reload ||= true %>
3
4
  <div id="fluent-log" logUrl="<%= log_tail_daemon_agent_path(fluentd) %>" initialAutoReload="<%= auto_reload ? "true" : "" %>">
4
5
  <div class="bottom-margin form-inline">
5
- <button class="btn btn-primary" v-on="click: fetchLogs">
6
+ <button class="btn btn-primary mr-3" v-on:click="fetchLogs">
6
7
  <%= t "terms.reload_log" %>
7
8
  </button>
8
- <input type="text" v-model="limit" size="4" v-on="keyup: fetchLogs | key enter" class="form-control"/>
9
+ <input type="text" v-model="limit" size="4" v-on:keyup.enter="fetchLogs" class="form-control"/>
9
10
  <%= t('terms.lines') %>
10
- <label>
11
+ <label class="ml-3">
11
12
  <input type="checkbox" v-model="autoFetch" /> <%= t "terms.auto_reload", seconds: 1 %>
12
13
  </label>
13
14
  <span v-if="processing"><%= icon('fa-spin fa-refresh') %></span>
14
15
  </div>
15
16
 
16
- <pre v-if="isPresentedLogs"><!-- be careful indent -->
17
- <div class="log"><span v-repeat="logs">{{ $value }}
17
+ <pre v-if="isPresentedLogs" class="card bg-light"><!-- be careful indent -->
18
+ <div class="log card-body"><span v-for="log in logs">{{ log }}
18
19
  </span></div></pre>
19
20
 
20
21
  <div v-if="!isPresentedLogs && !processing">
@@ -22,4 +23,3 @@
22
23
  </div>
23
24
  </div>
24
25
  <!-- /vue.js -->
25
-