mirror of
https://github.com/fluent/fluentd-ui.git
synced 2025-08-12 01:07:09 +02:00
cosme
This commit is contained in:
parent
b7a7b0a797
commit
ec44ba10d6
@ -13,6 +13,7 @@ class User
|
|||||||
ENCRYPTED_PASSWORD_FILE = Rails.root + "db/#{Rails.env}-user.txt"
|
ENCRYPTED_PASSWORD_FILE = Rails.root + "db/#{Rails.env}-user.txt"
|
||||||
|
|
||||||
attr_accessor :name, :password, :password_confirmation, :current_password
|
attr_accessor :name, :password, :password_confirmation, :current_password
|
||||||
|
attr_writer :password_digest
|
||||||
|
|
||||||
validates :name, presence: true
|
validates :name, presence: true
|
||||||
validates :password, length: { minimum: 8 }
|
validates :password, length: { minimum: 8 }
|
||||||
@ -28,10 +29,6 @@ class User
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def password_digest=(digest)
|
|
||||||
@password_digest = digest
|
|
||||||
end
|
|
||||||
|
|
||||||
def update_attributes(params)
|
def update_attributes(params)
|
||||||
params.each_pair do |key, value|
|
params.each_pair do |key, value|
|
||||||
send("#{key}=", value)
|
send("#{key}=", value)
|
||||||
|
@ -5,5 +5,5 @@
|
|||||||
= field(f, :bind)
|
= field(f, :bind)
|
||||||
= field(f, :port)
|
= field(f, :port)
|
||||||
= field(f, :types)
|
= field(f, :types)
|
||||||
= f.submit t('fluentd.common.finish') , class: "btn btn-lg btn-primary pull-right"
|
= f.submit t('fluentd.common.finish'), class: "btn btn-lg btn-primary pull-right"
|
||||||
|
|
||||||
|
@ -17,6 +17,6 @@
|
|||||||
= field(f, :heartbeat_interval)
|
= field(f, :heartbeat_interval)
|
||||||
= field(f, :phi_threshold)
|
= field(f, :phi_threshold)
|
||||||
= field(f, :hard_timeout)
|
= field(f, :hard_timeout)
|
||||||
= f.submit t('fluentd.common.finish') , class: "btn btn-lg btn-primary pull-right"
|
= f.submit t('fluentd.common.finish'), class: "btn btn-lg btn-primary pull-right"
|
||||||
|
|
||||||
|
|
||||||
|
@ -26,5 +26,5 @@
|
|||||||
= field(f, :retry_limit)
|
= field(f, :retry_limit)
|
||||||
= field(f, :max_retry_wait)
|
= field(f, :max_retry_wait)
|
||||||
= field(f, :num_threads)
|
= field(f, :num_threads)
|
||||||
= f.submit t('fluentd.common.finish') , class: "btn btn-lg btn-primary pull-right"
|
= f.submit t('fluentd.common.finish'), class: "btn btn-lg btn-primary pull-right"
|
||||||
|
|
||||||
|
@ -34,6 +34,6 @@
|
|||||||
= field(f, :retry_limit)
|
= field(f, :retry_limit)
|
||||||
= field(f, :max_retry_wait)
|
= field(f, :max_retry_wait)
|
||||||
= field(f, :num_threads)
|
= field(f, :num_threads)
|
||||||
= f.submit t('fluentd.common.finish') , class: "btn btn-lg btn-primary pull-right"
|
= f.submit t('fluentd.common.finish'), class: "btn btn-lg btn-primary pull-right"
|
||||||
|
|
||||||
|
|
||||||
|
@ -15,4 +15,4 @@
|
|||||||
= field(f, :flush_interval)
|
= field(f, :flush_interval)
|
||||||
= field(f, :buffer_type)
|
= field(f, :buffer_type)
|
||||||
= field(f, :buffer_path)
|
= field(f, :buffer_path)
|
||||||
= f.submit t('fluentd.common.finish') , class: "btn btn-lg btn-primary pull-right"
|
= f.submit t('fluentd.common.finish'), class: "btn btn-lg btn-primary pull-right"
|
||||||
|
@ -2,20 +2,21 @@
|
|||||||
<% auto_reload ||= true %>
|
<% auto_reload ||= true %>
|
||||||
<div id="fluent-log" logUrl="<%= log_tail_daemon_agent_path(fluentd) %>" initialAutoReload="<%= auto_reload ? "true" : "" %>">
|
<div id="fluent-log" logUrl="<%= log_tail_daemon_agent_path(fluentd) %>" initialAutoReload="<%= auto_reload ? "true" : "" %>">
|
||||||
<p>
|
<p>
|
||||||
<button class="btn btn-primary" v-on="click: fetchLogs">
|
<button class="btn btn-primary" v-on="click: fetchLogs">
|
||||||
<%= t "terms.reload_log" %>
|
<%= t "terms.reload_log" %>
|
||||||
</button>
|
</button>
|
||||||
<input type="text" v-model="limit" size="4" v-on="keyup: fetchLogs | key enter" />
|
<input type="text" v-model="limit" size="4" v-on="keyup: fetchLogs | key enter" />
|
||||||
<%= t('terms.lines') %>
|
<%= t('terms.lines') %>
|
||||||
<label>
|
<label>
|
||||||
<input type="checkbox" v-model="autoFetch" /> <%= t "terms.auto_reload", seconds: 1 %>
|
<input type="checkbox" v-model="autoFetch" /> <%= t "terms.auto_reload", seconds: 1 %>
|
||||||
</label>
|
</label>
|
||||||
<span v-if="processing"><%= icon('fa-spin fa-refresh') %></span>
|
<span v-if="processing"><%= icon('fa-spin fa-refresh') %></span>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<pre v-if="isPresentedLogs"><!-- be careful indent -->
|
<pre v-if="isPresentedLogs"><!-- be careful indent -->
|
||||||
<div class="log"><span v-repeat="logs">{{ $value }}
|
<div class="log"><span v-repeat="logs">{{ $value }}
|
||||||
</span></div></pre>
|
</span></div></pre>
|
||||||
|
|
||||||
<div v-if="!isPresentedLogs && !processing">
|
<div v-if="!isPresentedLogs && !processing">
|
||||||
<p>[log is empty]</p>
|
<p>[log is empty]</p>
|
||||||
</div>
|
</div>
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
<%= t ".description" %>
|
<%= t ".description" %>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<!-- vue.js -->
|
<!-- vue.js -->
|
||||||
|
Loading…
Reference in New Issue
Block a user