aboutsummaryrefslogtreecommitdiffstats
path: root/src/server/resources/views/index.edge
blob: 3e0198a09a7f776f43fb32cddd8e18896c3ad143 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
@layout('layouts.main')

@section('content')
<style>
  ol,
  p {
    margin: 0.5rem 0;
  }

</style>
<h1>Internal Ferdi Server</h1>
<p>You are accessing the local server instance of your Ferdi application. This server is used to enable Ferdi's "Use without an Account" feature.</p>
<p>
  To use this server in your Ferdi client, <a href="ferdi://settings/app">open Ferdi's settings</a> and as the
  <code>server</code>, enter <code id="server"></code>
</p>
<p>
  Alternatively, you can <a href="/import">import your Franz account</a>.
</p>

<script>
  // Get server URL for current location
  let server = location.href.replace('/index.html', '');
  if (server[server.length - 1] == '/') {
    server = server.substr(0, server.length - 1)
  }

  // Show on page
  document.getElementById('server').innerText = server;

</script>
@endsection