freedive/lib/freedive_web/live/service_live.ex

45 lines
859 B
Elixir

defmodule FreediveWeb.ServiceLive do
use FreediveWeb.LiliformLive,
opts: [
name: "Services"
]
def render(assigns) do
~H"""
<%= inspect(@items) %>
"""
end
def items() do
[
%{
name: "sshd",
icon: "blocks",
description: "Secure Shell Daemon",
enabled: true,
running: true
},
%{
name: "pf",
icon: "shield",
description: "Packet Filter",
enabled: true,
running: true
},
%{
name: "ntpdate",
icon: "clock",
description: "Network Time Protocol Daemon",
enabled: true,
running: false
},
%{
name: "httpd",
icon: "globe",
description: "Hypertext Transfer Protocol Daemon",
enabled: false,
running: false
}
]
end
end