2024-05-15 22:18:55 +02:00
|
|
|
defmodule FreediveWeb.ServiceLive do
|
2024-05-15 23:59:20 +02:00
|
|
|
use FreediveWeb.LiliformLive,
|
|
|
|
opts: [
|
|
|
|
name: "Services"
|
|
|
|
]
|
2024-05-15 22:18:55 +02:00
|
|
|
|
|
|
|
def render(assigns) do
|
|
|
|
~H"""
|
2024-05-15 23:59:20 +02:00
|
|
|
<%= inspect(@items) %>
|
2024-05-15 22:18:55 +02:00
|
|
|
"""
|
|
|
|
end
|
|
|
|
|
2024-05-15 23:59:20 +02:00
|
|
|
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
|
|
|
|
}
|
|
|
|
]
|
2024-05-15 22:18:55 +02:00
|
|
|
end
|
|
|
|
end
|