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.
- checksums.yaml +5 -5
- data/.babelrc +18 -0
- data/.editorconfig +11 -0
- data/.gitignore +7 -0
- data/.postcssrc.yml +3 -0
- data/.travis.yml +20 -4
- data/ChangeLog.md +7 -2
- data/Gemfile +8 -6
- data/Gemfile.lock +177 -178
- data/README.md +15 -10
- data/app/assets/stylesheets/application.css +6 -5
- data/app/controllers/concerns/setting_history_concern.rb +1 -1
- data/app/controllers/fluentd/agents_controller.rb +5 -0
- data/app/controllers/misc_controller.rb +2 -2
- data/app/controllers/plugins_controller.rb +4 -4
- data/app/helpers/application_helper.rb +8 -2
- data/app/helpers/settings_helper.rb +2 -2
- data/app/javascript/packs/application.js +31 -0
- data/app/{assets/javascripts/codemirror_fluentd.js → javascript/packs/codemirror.js} +32 -1
- data/app/javascript/packs/fluent_log.js +63 -0
- data/app/javascript/packs/in_tail_format.js +174 -0
- data/app/javascript/packs/nested_settings.js +40 -0
- data/app/javascript/packs/notification.js +60 -0
- data/app/javascript/packs/settings.js +122 -0
- data/app/javascript/packs/treeview.js +99 -0
- data/{vendor/assets/javascripts/.keep → app/javascript/stylesheets/application.scss} +0 -0
- data/app/jobs/all_plugin_check_update_job.rb +10 -0
- data/app/jobs/application_job.rb +2 -0
- data/app/{workers/fluentd_ui_restart.rb → jobs/fluentd_ui_restart_job.rb} +4 -4
- data/app/jobs/fluentd_ui_update_check_job.rb +11 -0
- data/app/{workers/gem_installer.rb → jobs/gem_installer_job.rb} +4 -5
- data/app/jobs/gem_uninstaller_job.rb +14 -0
- data/app/jobs/gem_update_check_job.rb +9 -0
- data/app/models/fluentd/agent.rb +9 -5
- data/app/models/fluentd/agent/common.rb +10 -6
- data/app/models/fluentd/agent/fluentd_gem.rb +2 -3
- data/app/models/fluentd/agent/td_agent/unix.rb +7 -5
- data/app/models/fluentd/setting/in_tail.rb +2 -2
- data/app/views/fluentd/_form.html.haml +1 -1
- data/app/views/fluentd/errors.html.haml +5 -6
- data/app/views/fluentd/log.html.haml +4 -5
- data/app/views/fluentd/settings/edit.html.haml +2 -1
- data/app/views/fluentd/settings/histories/_list.html.haml +1 -1
- data/app/views/fluentd/settings/histories/show.html.haml +6 -6
- data/app/views/fluentd/settings/in_tail/after_file_choose.html.haml +4 -3
- data/app/views/fluentd/settings/in_tail/after_format.html.haml +2 -2
- data/app/views/fluentd/settings/in_tail/confirm.html.haml +3 -3
- data/app/views/fluentd/settings/running_backup/show.html.haml +5 -5
- data/app/views/fluentd/settings/show.html.haml +7 -7
- data/app/views/fluentd/settings/source_and_output.html.haml +31 -18
- data/app/views/fluentd/show.html.haml +16 -15
- data/app/views/layouts/application.html.erb +31 -46
- data/app/views/layouts/sign_in.html.erb +9 -16
- data/app/views/misc/information.html.haml +13 -13
- data/app/views/misc/update_fluentd_ui.html.haml +3 -3
- data/app/views/plugins/installed.html.haml +8 -8
- data/app/views/plugins/recommended.html.haml +5 -5
- data/app/views/plugins/updated.html.haml +5 -5
- data/app/views/sessions/new.html.haml +5 -6
- data/app/views/shared/_global_nav.html.erb +9 -9
- data/app/views/shared/_initial_setup.html.haml +3 -3
- data/app/views/shared/_modal.html.erb +1 -1
- data/app/views/shared/settings/_form.html.haml +9 -8
- data/app/views/shared/settings/show.html.haml +4 -2
- data/app/views/shared/vue/_fluent_log.html.erb +6 -6
- data/app/views/shared/vue/_in_tail_format.html.erb +31 -29
- data/app/views/shared/vue/_notification.html.erb +5 -9
- data/app/views/shared/vue/_setting.html.erb +12 -10
- data/app/views/shared/vue/_treeview.html.erb +13 -10
- data/app/views/tutorials/chapter1.html.erb +3 -4
- data/app/views/tutorials/chapter2.html.haml +2 -2
- data/app/views/tutorials/chapter3.html.haml +2 -2
- data/app/views/tutorials/chapter4.html.haml +2 -2
- data/app/views/users/show.html.haml +1 -1
- data/bin/bundle +1 -1
- data/bin/fluentd-ui +1 -0
- data/bin/rails +1 -1
- data/bin/setup +16 -17
- data/bin/update +28 -0
- data/bin/webpack +15 -0
- data/bin/webpack-dev-server +15 -0
- data/bin/yarn +11 -0
- data/config/application.rb +18 -5
- data/config/boot.rb +2 -1
- data/config/environment.rb +1 -1
- data/config/environments/development.rb +27 -5
- data/config/environments/production.rb +34 -23
- data/config/environments/test.rb +7 -3
- data/config/initializers/application_controller_renderer.rb +8 -0
- data/config/initializers/assets.rb +14 -0
- data/config/initializers/content_security_policy.rb +25 -0
- data/config/initializers/cookies_serializer.rb +2 -0
- data/config/initializers/fluentd_ui_update_check.rb +2 -1
- data/config/initializers/new_framework_defaults_5_2.rb +35 -0
- data/config/initializers/prefetch_gem_updates.rb +4 -1
- data/config/initializers/wrap_parameters.rb +1 -6
- data/config/locales/ja.yml +61 -57
- data/config/routes.rb +1 -0
- data/config/spring.rb +6 -0
- data/config/webpack/development.js +5 -0
- data/config/webpack/environment.js +20 -0
- data/config/webpack/loaders/vue.js +13 -0
- data/config/webpack/production.js +5 -0
- data/config/webpack/test.js +5 -0
- data/config/webpacker.yml +69 -0
- data/fluentd-ui.gemspec +16 -6
- data/lib/fluentd-ui/version.rb +1 -1
- data/lib/regexp_preview/single_line.rb +5 -5
- data/package.json +19 -0
- data/spec/controllers/application_controller_spec.rb +2 -6
- data/spec/controllers/fluentd/agents_controller_spec.rb +12 -0
- data/spec/controllers/polling_controller_spec.rb +1 -1
- data/spec/factories/fluentd.rb +1 -1
- data/spec/factories/plugins.rb +2 -2
- data/spec/factories/user.rb +1 -1
- data/spec/features/fluentd/setting/histories_spec.rb +7 -6
- data/spec/features/fluentd/setting/running_backup_spec.rb +4 -3
- data/spec/features/setting_spec.rb +1 -0
- data/spec/features/source_and_output_spec.rb +16 -16
- data/spec/lib/regexp_preview/single_line_spec.rb +1 -1
- data/spec/models/fluentd_spec.rb +4 -4
- data/spec/spec_helper.rb +16 -4
- data/yarn.lock +6225 -0
- metadata +120 -154
- data/.bowerrc +0 -3
- data/app/assets/javascripts/application.js +0 -24
- data/app/assets/javascripts/codemirror.js +0 -29
- data/app/assets/javascripts/enable_bootstrap_tooltip.js +0 -3
- data/app/assets/javascripts/nested_setting.js +0 -41
- data/app/assets/javascripts/vue/fluent_log.js +0 -64
- data/app/assets/javascripts/vue/in_tail_format.js +0 -177
- data/app/assets/javascripts/vue/notification.js +0 -65
- data/app/assets/javascripts/vue/settings.js +0 -121
- data/app/assets/javascripts/vue/treeview.js +0 -97
- data/app/assets/javascripts/vue_common.js +0 -4
- data/app/workers/all_plugin_check_update.rb +0 -14
- data/app/workers/fluentd_ui_update_check.rb +0 -15
- data/app/workers/gem_uninstaller.rb +0 -15
- data/app/workers/gem_update_check.rb +0 -10
- data/bower.json +0 -11
- data/vendor/assets/javascripts/bower/.gitignore +0 -10
- data/vendor/assets/javascripts/bower/codemirror/.bower.json +0 -29
- data/vendor/assets/javascripts/bower/codemirror/bower.json +0 -16
- data/vendor/assets/javascripts/bower/codemirror/lib/codemirror.css +0 -309
- data/vendor/assets/javascripts/bower/codemirror/lib/codemirror.js +0 -8029
- data/vendor/assets/javascripts/bower/codemirror/theme/3024-day.css +0 -38
- data/vendor/assets/javascripts/bower/codemirror/theme/3024-night.css +0 -37
- data/vendor/assets/javascripts/bower/codemirror/theme/ambiance-mobile.css +0 -5
- data/vendor/assets/javascripts/bower/codemirror/theme/ambiance.css +0 -77
- data/vendor/assets/javascripts/bower/codemirror/theme/base16-dark.css +0 -36
- data/vendor/assets/javascripts/bower/codemirror/theme/base16-light.css +0 -36
- data/vendor/assets/javascripts/bower/codemirror/theme/blackboard.css +0 -30
- data/vendor/assets/javascripts/bower/codemirror/theme/cobalt.css +0 -23
- data/vendor/assets/javascripts/bower/codemirror/theme/eclipse.css +0 -23
- data/vendor/assets/javascripts/bower/codemirror/theme/elegant.css +0 -13
- data/vendor/assets/javascripts/bower/codemirror/theme/erlang-dark.css +0 -32
- data/vendor/assets/javascripts/bower/codemirror/theme/lesser-dark.css +0 -45
- data/vendor/assets/javascripts/bower/codemirror/theme/mbo.css +0 -35
- data/vendor/assets/javascripts/bower/codemirror/theme/mdn-like.css +0 -44
- data/vendor/assets/javascripts/bower/codemirror/theme/midnight.css +0 -45
- data/vendor/assets/javascripts/bower/codemirror/theme/monokai.css +0 -31
- data/vendor/assets/javascripts/bower/codemirror/theme/neat.css +0 -12
- data/vendor/assets/javascripts/bower/codemirror/theme/neo.css +0 -43
- data/vendor/assets/javascripts/bower/codemirror/theme/night.css +0 -26
- data/vendor/assets/javascripts/bower/codemirror/theme/paraiso-dark.css +0 -36
- data/vendor/assets/javascripts/bower/codemirror/theme/paraiso-light.css +0 -36
- data/vendor/assets/javascripts/bower/codemirror/theme/pastel-on-dark.css +0 -50
- data/vendor/assets/javascripts/bower/codemirror/theme/rubyblue.css +0 -23
- data/vendor/assets/javascripts/bower/codemirror/theme/solarized.css +0 -165
- data/vendor/assets/javascripts/bower/codemirror/theme/the-matrix.css +0 -28
- data/vendor/assets/javascripts/bower/codemirror/theme/tomorrow-night-bright.css +0 -35
- data/vendor/assets/javascripts/bower/codemirror/theme/tomorrow-night-eighties.css +0 -36
- data/vendor/assets/javascripts/bower/codemirror/theme/twilight.css +0 -30
- data/vendor/assets/javascripts/bower/codemirror/theme/vibrant-ink.css +0 -32
- data/vendor/assets/javascripts/bower/codemirror/theme/xq-dark.css +0 -51
- data/vendor/assets/javascripts/bower/codemirror/theme/xq-light.css +0 -43
- data/vendor/assets/javascripts/bower/codemirror/theme/zenburn.css +0 -37
- data/vendor/assets/javascripts/bower/es6-promise/.bower.json +0 -15
- data/vendor/assets/javascripts/bower/es6-promise/bower.json +0 -5
- data/vendor/assets/javascripts/bower/es6-promise/promise.js +0 -684
- data/vendor/assets/javascripts/bower/es6-promise/promise.min.js +0 -1
- data/vendor/assets/javascripts/bower/lodash/.bower.json +0 -33
- data/vendor/assets/javascripts/bower/lodash/LICENSE.txt +0 -22
- data/vendor/assets/javascripts/bower/lodash/bower.json +0 -23
- data/vendor/assets/javascripts/bower/lodash/dist/lodash.compat.js +0 -7157
- data/vendor/assets/javascripts/bower/lodash/dist/lodash.compat.min.js +0 -61
- data/vendor/assets/javascripts/bower/lodash/dist/lodash.js +0 -6785
- data/vendor/assets/javascripts/bower/lodash/dist/lodash.min.js +0 -56
- data/vendor/assets/javascripts/bower/lodash/dist/lodash.underscore.js +0 -4979
- data/vendor/assets/javascripts/bower/lodash/dist/lodash.underscore.min.js +0 -39
- data/vendor/assets/javascripts/bower/vue/.bower.json +0 -29
- data/vendor/assets/javascripts/bower/vue/bower.json +0 -17
- data/vendor/assets/javascripts/bower/vue/dist/vue.js +0 -7977
- data/vendor/assets/javascripts/bower/vue/dist/vue.min.js +0 -7
- data/vendor/assets/javascripts/sb-admin-v2/bootstrap.js +0 -1951
- data/vendor/assets/javascripts/sb-admin-v2/bootstrap.min.js +0 -6
- data/vendor/assets/javascripts/sb-admin-v2/demo/dashboard-demo.js +0 -117
- data/vendor/assets/javascripts/sb-admin-v2/demo/flot-demo.js +0 -1242
- data/vendor/assets/javascripts/sb-admin-v2/demo/morris-demo.js +0 -155
- data/vendor/assets/javascripts/sb-admin-v2/jquery-1.10.2.js +0 -6
- data/vendor/assets/javascripts/sb-admin-v2/plugins/dataTables/dataTables.bootstrap.js +0 -245
- data/vendor/assets/javascripts/sb-admin-v2/plugins/dataTables/jquery.dataTables.js +0 -14013
- data/vendor/assets/javascripts/sb-admin-v2/plugins/flot/excanvas.min.js +0 -1
- data/vendor/assets/javascripts/sb-admin-v2/plugins/flot/jquery.flot.js +0 -2599
- data/vendor/assets/javascripts/sb-admin-v2/plugins/flot/jquery.flot.pie.js +0 -750
- data/vendor/assets/javascripts/sb-admin-v2/plugins/flot/jquery.flot.resize.js +0 -60
- data/vendor/assets/javascripts/sb-admin-v2/plugins/flot/jquery.flot.tooltip.min.js +0 -12
- data/vendor/assets/javascripts/sb-admin-v2/plugins/metisMenu/jquery.metisMenu.js +0 -45
- data/vendor/assets/javascripts/sb-admin-v2/plugins/morris/morris.js +0 -1888
- data/vendor/assets/javascripts/sb-admin-v2/plugins/morris/raphael-2.1.0.min.js +0 -10
- data/vendor/assets/javascripts/sb-admin-v2/sb-admin.js +0 -18
- data/vendor/assets/stylesheets/.keep +0 -0
- data/vendor/assets/stylesheets/sb-admin-v2/bootstrap.css +0 -5830
- data/vendor/assets/stylesheets/sb-admin-v2/bootstrap.min.css +0 -7
- data/vendor/assets/stylesheets/sb-admin-v2/font-awesome/css/font-awesome.css +0 -1338
- data/vendor/assets/stylesheets/sb-admin-v2/font-awesome/css/font-awesome.min.css +0 -4
- data/vendor/assets/stylesheets/sb-admin-v2/font-awesome/fonts/FontAwesome.otf +0 -0
- data/vendor/assets/stylesheets/sb-admin-v2/font-awesome/fonts/fontawesome-webfont.eot +0 -0
- data/vendor/assets/stylesheets/sb-admin-v2/font-awesome/fonts/fontawesome-webfont.svg +0 -414
- data/vendor/assets/stylesheets/sb-admin-v2/font-awesome/fonts/fontawesome-webfont.ttf +0 -0
- data/vendor/assets/stylesheets/sb-admin-v2/font-awesome/fonts/fontawesome-webfont.woff +0 -0
- data/vendor/assets/stylesheets/sb-admin-v2/font-awesome/scss/_bordered-pulled.scss +0 -16
- data/vendor/assets/stylesheets/sb-admin-v2/font-awesome/scss/_core.scss +0 -12
- data/vendor/assets/stylesheets/sb-admin-v2/font-awesome/scss/_fixed-width.scss +0 -6
- data/vendor/assets/stylesheets/sb-admin-v2/font-awesome/scss/_icons.scss +0 -412
- data/vendor/assets/stylesheets/sb-admin-v2/font-awesome/scss/_larger.scss +0 -13
- data/vendor/assets/stylesheets/sb-admin-v2/font-awesome/scss/_list.scss +0 -19
- data/vendor/assets/stylesheets/sb-admin-v2/font-awesome/scss/_mixins.scss +0 -20
- data/vendor/assets/stylesheets/sb-admin-v2/font-awesome/scss/_path.scss +0 -14
- data/vendor/assets/stylesheets/sb-admin-v2/font-awesome/scss/_rotated-flipped.scss +0 -9
- data/vendor/assets/stylesheets/sb-admin-v2/font-awesome/scss/_spinning.scss +0 -30
- data/vendor/assets/stylesheets/sb-admin-v2/font-awesome/scss/_stacked.scss +0 -20
- data/vendor/assets/stylesheets/sb-admin-v2/font-awesome/scss/_variables.scss +0 -381
- data/vendor/assets/stylesheets/sb-admin-v2/font-awesome/scss/font-awesome.scss +0 -17
- data/vendor/assets/stylesheets/sb-admin-v2/fonts/glyphicons-halflings-regular.eot +0 -0
- data/vendor/assets/stylesheets/sb-admin-v2/fonts/glyphicons-halflings-regular.svg +0 -229
- data/vendor/assets/stylesheets/sb-admin-v2/fonts/glyphicons-halflings-regular.ttf +0 -0
- data/vendor/assets/stylesheets/sb-admin-v2/fonts/glyphicons-halflings-regular.woff +0 -0
- data/vendor/assets/stylesheets/sb-admin-v2/plugins/dataTables/dataTables.bootstrap.css +0 -233
- data/vendor/assets/stylesheets/sb-admin-v2/plugins/morris/morris-0.4.3.min.css +0 -2
- data/vendor/assets/stylesheets/sb-admin-v2/plugins/social-buttons/social-buttons.css +0 -68
- data/vendor/assets/stylesheets/sb-admin-v2/plugins/timeline/timeline.css +0 -144
- 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
|
14
|
-
<%=
|
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
|
-
<
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
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="
|
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
|
-
|
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
|
-
|
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-
|
62
|
-
<h1 class="
|
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-
|
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
|
-
|
63
|
+
|
79
64
|
</body>
|
80
65
|
</html>
|
@@ -3,26 +3,19 @@
|
|
3
3
|
|
4
4
|
<head>
|
5
5
|
|
6
|
-
|
7
|
-
|
6
|
+
<meta charset="utf-8">
|
7
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
8
8
|
|
9
|
-
|
10
|
-
<%= stylesheet_link_tag
|
11
|
-
<%=
|
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
|
-
|
19
|
-
|
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
|
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-
|
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-
|
17
|
-
.
|
18
|
-
.
|
16
|
+
.col-xl-6.col-sm-6.mb-3
|
17
|
+
.card.card-default
|
18
|
+
.card-header
|
19
19
|
%h4= t("terms.version")
|
20
|
-
.
|
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-
|
31
|
-
.
|
32
|
-
.
|
30
|
+
.col-xl-6.col-sm-6.mb-3
|
31
|
+
.card.card-default
|
32
|
+
.card-header
|
33
33
|
%h4= t('terms.installed_plugins')
|
34
|
-
.
|
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-
|
51
|
-
.
|
52
|
-
.
|
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')
|
@@ -3,13 +3,13 @@
|
|
3
3
|
%table{class: "table table-striped table-hover", id: "plugins-table"}
|
4
4
|
%thead
|
5
5
|
%tr
|
6
|
-
%th
|
7
|
-
%th
|
8
|
-
%th{
|
9
|
-
%th{
|
10
|
-
%th
|
11
|
-
%th
|
12
|
-
%th
|
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-
|
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-
|
11
|
-
%th.col-
|
12
|
-
%th.col-
|
13
|
-
%th.col-
|
14
|
-
%th.col-
|
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-
|
2
|
-
.
|
3
|
-
|
4
|
-
|
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-
|
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="
|
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="
|
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="
|
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="
|
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-
|
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-
|
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-
|
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
|
|
@@ -6,12 +6,13 @@
|
|
6
6
|
= field(f, key)
|
7
7
|
|
8
8
|
- if @setting.advanced_options.present?
|
9
|
-
.
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
-
|
15
|
-
|
16
|
-
|
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
|
-
.
|
4
|
-
|
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="
|
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="
|
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-
|
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
|
-
|