diff options
author | href <href@random.sh> | 2018-02-10 21:40:22 +0100 |
---|---|---|
committer | href <href@random.sh> | 2018-02-10 21:40:22 +0100 |
commit | 935a36eecc0faea60236101e11bc9f7cf1872686 (patch) | |
tree | b7b4358dee2eb3fc60681852f62c750ae8c05cb9 /lib/lsg_web/templates/page | |
parent | sse / embedded player (diff) |
update
Diffstat (limited to 'lib/lsg_web/templates/page')
-rw-r--r-- | lib/lsg_web/templates/page/api.html.eex | 35 | ||||
-rw-r--r-- | lib/lsg_web/templates/page/index.html.eex | 37 | ||||
-rw-r--r-- | lib/lsg_web/templates/page/irc.html.eex | 19 |
3 files changed, 55 insertions, 36 deletions
diff --git a/lib/lsg_web/templates/page/api.html.eex b/lib/lsg_web/templates/page/api.html.eex new file mode 100644 index 0000000..03dfa6b --- /dev/null +++ b/lib/lsg_web/templates/page/api.html.eex @@ -0,0 +1,35 @@ +<h1>sys.115ans.net/api</h1> + +<h2>Icecast Status</h2> + +<h3>GET /api/icecast.json</h3> + +<p> + Content-Type: <code>application/json</code> +</p> + +<pre><code> +{ + "np": String, + "genre": null | String, + "live": false | true +} +</pre></code> + +<h3>GET /api/icecast.sse</h3> +<p> + Content-Type: <code>text/event-stream</code> +</p> + +<p> + Stream of: +</p> + + <ul> + <li><strong>icecast</strong> events (same format as <code>/api/icecast.json</code>)</li> + <li><strong>ping</strong> events (to keep-alive connection. You can safely ignore them)</li> + </ul> +<p> + On client connection, the server sends the latest <code>icecast</code> status known. +</p> + diff --git a/lib/lsg_web/templates/page/index.html.eex b/lib/lsg_web/templates/page/index.html.eex index 0988ea5..98e407c 100644 --- a/lib/lsg_web/templates/page/index.html.eex +++ b/lib/lsg_web/templates/page/index.html.eex @@ -1,36 +1 @@ -<div class="jumbotron"> - <h2><%= gettext "Welcome to %{name}!", name: "Phoenix" %></h2> - <p class="lead">A productive web framework that<br />does not compromise speed and maintainability.</p> -</div> - -<div class="row marketing"> - <div class="col-lg-6"> - <h4>Resources</h4> - <ul> - <li> - <a href="http://phoenixframework.org/docs/overview">Guides</a> - </li> - <li> - <a href="https://hexdocs.pm/phoenix">Docs</a> - </li> - <li> - <a href="https://github.com/phoenixframework/phoenix">Source</a> - </li> - </ul> - </div> - - <div class="col-lg-6"> - <h4>Help</h4> - <ul> - <li> - <a href="http://groups.google.com/group/phoenix-talk">Mailing list</a> - </li> - <li> - <a href="http://webchat.freenode.net/?channels=elixir-lang">#elixir-lang on freenode IRC</a> - </li> - <li> - <a href="https://twitter.com/elixirphoenix">@elixirphoenix</a> - </li> - </ul> - </div> -</div> +<p>Vous n'avez rien de mieux à faire ? Non ? Allez sur <a href="https://115ans.net">115ans.net</a>, alors.</p> diff --git a/lib/lsg_web/templates/page/irc.html.eex b/lib/lsg_web/templates/page/irc.html.eex new file mode 100644 index 0000000..f6598ee --- /dev/null +++ b/lib/lsg_web/templates/page/irc.html.eex @@ -0,0 +1,19 @@ +<h1>bot `115ans</h1> + +<p>Si vous cherchez l'IRC c'est <a href="https://115ans.net/irc/">par là</a>.</p> + +<style type="text/css"> +.help-entry h1 { + font-size: 18px; +} +.help-entry h2 { + font-size: 16px; +} +</style> + +<div class="irchelps"> + <%= for help <- @bot_helps do %> + <div class="help-entry"><%= help |> Earmark.as_html! |> raw() %></div> + <% end %> +</div> + |