From 42860fa15985401825d8d51e73ec497fe5876710 Mon Sep 17 00:00:00 2001
From: Melonai <einebeere@gmail.com>
Date: Wed, 24 Mar 2021 09:51:36 +0100
Subject: Update SvelteKit to public beta

---
 client/src/routes/index.svelte | 66 +++++++++++++++++++++---------------------
 1 file changed, 33 insertions(+), 33 deletions(-)

(limited to 'client/src/routes/index.svelte')

diff --git a/client/src/routes/index.svelte b/client/src/routes/index.svelte
index 5e51f13..965d169 100644
--- a/client/src/routes/index.svelte
+++ b/client/src/routes/index.svelte
@@ -1,44 +1,44 @@
 <script lang="ts">
-	import Title from '$components/Title.svelte';
-	import Form from '$components/Form.svelte';
-	import Responses from '$components/Responses.svelte';
+    import Title from '$lib/components/Title.svelte';
+    import Form from '$lib/components/Form.svelte';
+    import Responses from '$lib/components/Responses.svelte';
 </script>
 
 <style>
-	main {
-		width: 100%;
-		height: 100%;
-		display: flex;
-		flex-direction: column;
-		justify-content: center;
-		align-items: center;
-		overflow: hidden;
-	}
+    main {
+        width: 100%;
+        height: 100%;
+        display: flex;
+        flex-direction: column;
+        justify-content: center;
+        align-items: center;
+        overflow: hidden;
+    }
 
-	.output {
-		position: absolute;
-		top: 175px;
-		width: 100%;
-	}
+    .output {
+        position: absolute;
+        top: 175px;
+        width: 100%;
+    }
 
-	.content {
-		position: relative;
-		width: 80%;
-	}
+    .content {
+        position: relative;
+        width: 80%;
+    }
 
-	@media (min-width: 800px) {
-		.content {
-			width: 40%;
-		}
-	}
+    @media (min-width: 800px) {
+        .content {
+            width: 40%;
+        }
+    }
 </style>
 
 <main>
-	<div class="content">
-		<Title/>
-		<Form/>
-		<div class="output">
-			<Responses/>
-		</div>
-	</div>
+    <div class="content">
+        <Title/>
+        <Form/>
+        <div class="output">
+            <Responses/>
+        </div>
+    </div>
 </main>
\ No newline at end of file
-- 
cgit 1.4.1

alue='committer'>committer</option>
<option value='range'>range</option>
</select>
<input class='txt' type='search' size='10' name='q' value=''/>
<input type='submit' value='search'/>
</form>
</td></tr></table>
<div class='path'>path: <a href='/network/tree/?id=e933a5e1837bd86a59b7713becef4f29a6825ef5'>root</a>/<a href='/network/tree/services?id=e933a5e1837bd86a59b7713becef4f29a6825ef5'>services</a>/<a href='/network/tree/services/matrix.nix?id=e933a5e1837bd86a59b7713becef4f29a6825ef5'>matrix.nix</a></div><div class='content'>blob: 3586cc8e0036a7eafc40c16ecd0b7bea2d52610d (<a href='/network/plain/services/matrix.nix?id=e933a5e1837bd86a59b7713becef4f29a6825ef5'>plain</a>)
<table summary='blob content' class='blob'>
<tr><td class='linenumbers'><pre><a id='n1' href='#n1'>1</a>
<a id='n2' href='#n2'>2</a>
<a id='n3' href='#n3'>3</a>
<a id='n4' href='#n4'>4</a>
<a id='n5' href='#n5'>5</a>
<a id='n6' href='#n6'>6</a>
<a id='n7' href='#n7'>7</a>
<a id='n8' href='#n8'>8</a>
<a id='n9' href='#n9'>9</a>
<a id='n10' href='#n10'>10</a>
<a id='n11' href='#n11'>11</a>
<a id='n12' href='#n12'>12</a>
<a id='n13' href='#n13'>13</a>
<a id='n14' href='#n14'>14</a>
<a id='n15' href='#n15'>15</a>
<a id='n16' href='#n16'>16</a>
<a id='n17' href='#n17'>17</a>
<a id='n18' href='#n18'>18</a>
<a id='n19' href='#n19'>19</a>
<a id='n20' href='#n20'>20</a>
<a id='n21' href='#n21'>21</a>
<a id='n22' href='#n22'>22</a>
<a id='n23' href='#n23'>23</a>
<a id='n24' href='#n24'>24</a>
<a id='n25' href='#n25'>25</a>
<a id='n26' href='#n26'>26</a>
<a id='n27' href='#n27'>27</a>
<a id='n28' href='#n28'>28</a>
<a id='n29' href='#n29'>29</a>
<a id='n30' href='#n30'>30</a>
<a id='n31' href='#n31'>31</a>
<a id='n32' href='#n32'>32</a>
<a id='n33' href='#n33'>33</a>
<a id='n34' href='#n34'>34</a>
<a id='n35' href='#n35'>35</a>
<a id='n36' href='#n36'>36</a>
<a id='n37' href='#n37'>37</a>
<a id='n38' href='#n38'>38</a>
<a id='n39' href='#n39'>39</a>
<a id='n40' href='#n40'>40</a>
<a id='n41' href='#n41'>41</a>
<a id='n42' href='#n42'>42</a>
<a id='n43' href='#n43'>43</a>
<a id='n44' href='#n44'>44</a>
<a id='n45' href='#n45'>45</a>
<a id='n46' href='#n46'>46</a>
<a id='n47' href='#n47'>47</a>
<a id='n48' href='#n48'>48</a>
<a id='n49' href='#n49'>49</a>
<a id='n50' href='#n50'>50</a>
<a id='n51' href='#n51'>51</a>
<a id='n52' href='#n52'>52</a>
<a id='n53' href='#n53'>53</a>
<a id='n54' href='#n54'>54</a>
<a id='n55' href='#n55'>55</a>
<a id='n56' href='#n56'>56</a>
<a id='n57' href='#n57'>57</a>
<a id='n58' href='#n58'>58</a>
<a id='n59' href='#n59'>59</a>
<a id='n60' href='#n60'>60</a>
<a id='n61' href='#n61'>61</a>
<a id='n62' href='#n62'>62</a>
<a id='n63' href='#n63'>63</a>
<a id='n64' href='#n64'>64</a>
<a id='n65' href='#n65'>65</a>
<a id='n66' href='#n66'>66</a>
<a id='n67' href='#n67'>67</a>
<a id='n68' href='#n68'>68</a>
<a id='n69' href='#n69'>69</a>
<a id='n70' href='#n70'>70</a>
<a id='n71' href='#n71'>71</a>
<a id='n72' href='#n72'>72</a>
<a id='n73' href='#n73'>73</a>
<a id='n74' href='#n74'>74</a>
<a id='n75' href='#n75'>75</a>
<a id='n76' href='#n76'>76</a>
<a id='n77' href='#n77'>77</a>
<a id='n78' href='#n78'>78</a>
<a id='n79' href='#n79'>79</a>
<a id='n80' href='#n80'>80</a>
<a id='n81' href='#n81'>81</a>
<a id='n82' href='#n82'>82</a>
<a id='n83' href='#n83'>83</a>
<a id='n84' href='#n84'>84</a>
<a id='n85' href='#n85'>85</a>
<a id='n86' href='#n86'>86</a>
<a id='n87' href='#n87'>87</a>
</pre></td>
<td class='lines'><pre><code><style>pre { line-height: 125%; }
td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
.highlight .hll { background-color: #0000ff }
.highlight .c { color: #0F0 } /* Comment */
.highlight .err { color: #DDD } /* Error */
.highlight .esc { color: #DDD } /* Escape */
.highlight .g { color: #DDD } /* Generic */
.highlight .k { color: #F00 } /* Keyword */
.highlight .l { color: #DDD } /* Literal */
.highlight .n { color: #DDD } /* Name */
.highlight .o { color: #DDD } /* Operator */
.highlight .x { color: #DDD } /* Other */
.highlight .p { color: #DDD } /* Punctuation */
.highlight .ch { color: #0F0 } /* Comment.Hashbang */
.highlight .cm { color: #0F0 } /* Comment.Multiline */
.highlight .cp { color: #E5E5E5 } /* Comment.Preproc */
.highlight .cpf { color: #0F0 } /* Comment.PreprocFile */
.highlight .c1 { color: #0F0 } /* Comment.Single */
.highlight .cs { color: #0F0 } /* Comment.Special */
.highlight .gd { color: #DDD } /* Generic.Deleted */
.highlight .ge { color: #DDD } /* Generic.Emph */
.highlight .ges { color: #DDD } /* Generic.EmphStrong */
.highlight .gr { color: #DDD } /* Generic.Error */
.highlight .gh { color: #DDD } /* Generic.Heading */
.highlight .gi { color: #DDD } /* Generic.Inserted */
.highlight .go { color: #DDD } /* Generic.Output */
.highlight .gp { color: #DDD } /* Generic.Prompt */
.highlight .gs { color: #DDD } /* Generic.Strong */
.highlight .gu { color: #DDD } /* Generic.Subheading */
.highlight .gt { color: #DDD } /* Generic.Traceback */
.highlight .kc { color: #F00 } /* Keyword.Constant */
.highlight .kd { color: #F00 } /* Keyword.Declaration */
.highlight .kn { color: #F00 } /* Keyword.Namespace */
.highlight .kp { color: #F00 } /* Keyword.Pseudo */
.highlight .kr { color: #F00 } /* Keyword.Reserved */
.highlight .kt { color: #EE82EE } /* Keyword.Type */
.highlight .ld { color: #DDD } /* Literal.Date */
.highlight .m { color: #F0F } /* Literal.Number */
.highlight .s { color: #87CEEB } /* Literal.String */
.highlight .na { color: #DDD } /* Name.Attribute */
.highlight .nb { color: #DDD } /* Name.Builtin */
.highlight .nc { color: #DDD } /* Name.Class */
.highlight .no { color: #7FFFD4 } /* Name.Constant */
.highlight .nd { color: #DDD } /* Name.Decorator */
.highlight .ni { color: #DDD } /* Name.Entity */
.highlight .ne { color: #DDD } /* Name.Exception */
.highlight .nf { color: #FF0 } /* Name.Function */
.highlight .nl { color: #DDD } /* Name.Label */
.highlight .nn { color: #DDD } /* Name.Namespace */
.highlight .nx { color: #DDD } /* Name.Other */
.highlight .py { color: #DDD } /* Name.Property */
.highlight .nt { color: #DDD } /* Name.Tag */
.highlight .nv { color: #EEDD82 } /* Name.Variable */
.highlight .ow { color: #F00 } /* Operator.Word */
.highlight .pm { color: #DDD } /* Punctuation.Marker */
.highlight .w { color: #DDD } /* Text.Whitespace */
.highlight .mb { color: #F0F } /* Literal.Number.Bin */
.highlight .mf { color: #F0F } /* Literal.Number.Float */
.highlight .mh { color: #F0F } /* Literal.Number.Hex */
.highlight .mi { color: #F0F } /* Literal.Number.Integer */
.highlight .mo { color: #F0F } /* Literal.Number.Oct */
.highlight .sa { color: #87CEEB } /* Literal.String.Affix */
.highlight .sb { color: #87CEEB } /* Literal.String.Backtick */
.highlight .sc { color: #87CEEB } /* Literal.String.Char */
.highlight .dl { color: #87CEEB } /* Literal.String.Delimiter */
.highlight .sd { color: #87CEEB } /* Literal.String.Doc */
.highlight .s2 { color: #87CEEB } /* Literal.String.Double */
.highlight .se { color: #87CEEB } /* Literal.String.Escape */
.highlight .sh { color: #87CEEB } /* Literal.String.Heredoc */
.highlight .si { color: #87CEEB } /* Literal.String.Interpol */
.highlight .sx { color: #87CEEB } /* Literal.String.Other */
.highlight .sr { color: #87CEEB } /* Literal.String.Regex */
.highlight .s1 { color: #87CEEB } /* Literal.String.Single */
.highlight .ss { color: #87CEEB } /* Literal.String.Symbol */
.highlight .bp { color: #DDD } /* Name.Builtin.Pseudo */
.highlight .fm { color: #FF0 } /* Name.Function.Magic */
.highlight .vc { color: #EEDD82 } /* Name.Variable.Class */
.highlight .vg { color: #EEDD82 } /* Name.Variable.Global */
.highlight .vi { color: #EEDD82 } /* Name.Variable.Instance */
.highlight .vm { color: #EEDD82 } /* Name.Variable.Magic */
.highlight .il { color: #F0F } /* Literal.Number.Integer.Long */</style><div class="highlight"><pre><span></span><span class="p">{</span>
  config<span class="p">,</span>
  pkgs<span class="p">,</span>
  unstablePkgs<span class="p">,</span>
  auxiliaryPkgs<span class="p">,</span>
  <span class="o">...</span>
<span class="p">}:</span>

<span class="k">let</span>
  <span class="k">inherit</span> <span class="p">(</span>pkgs<span class="p">)</span> dockerTools<span class="p">;</span>
  <span class="k">inherit</span> <span class="p">(</span>unstablePkgs<span class="p">)</span> matrix-continuwuity<span class="p">;</span>
  <span class="k">inherit</span> <span class="p">(</span>auxiliaryPkgs<span class="p">)</span> common<span class="p">;</span>

  <span class="ss">continuwuityLocalPort</span> <span class="o">=</span> <span class="mi">2123</span><span class="p">;</span>
  <span class="ss">continuwuityDir</span> <span class="o">=</span> <span class="s2">&quot;/srv/matrix&quot;</span><span class="p">;</span>

  <span class="ss">continuwuityImage</span> <span class="o">=</span> dockerTools<span class="o">.</span>streamLayeredImage <span class="p">{</span>
    <span class="ss">name</span> <span class="o">=</span> <span class="s2">&quot;continuwuity&quot;</span><span class="p">;</span>
    <span class="ss">tag</span> <span class="o">=</span> matrix-continuwuity<span class="o">.</span>version<span class="p">;</span>
    <span class="ss">fromImage</span> <span class="o">=</span> common<span class="o">.</span>alpine<span class="o">.</span>base<span class="p">;</span>

    <span class="ss">contents</span> <span class="o">=</span> <span class="p">[</span> matrix-continuwuity <span class="p">];</span>
  <span class="p">};</span>

<span class="k">in</span>
<span class="p">{</span>
  age<span class="o">.</span>secrets<span class="o">.</span><span class="ss">continuwuity-registration-token</span> <span class="o">=</span> <span class="p">{</span>
    <span class="ss">file</span> <span class="o">=</span> <span class="l">../secrets/continuwuity-registration-token.age</span><span class="p">;</span>
  <span class="p">};</span>

  foundation<span class="o">.</span>service<span class="o">.</span><span class="ss">continuwuity</span> <span class="o">=</span> <span class="p">{</span>
    <span class="ss">continuwuity</span> <span class="o">=</span> <span class="p">{</span>
      <span class="ss">image</span> <span class="o">=</span> continuwuityImage<span class="p">;</span>
      <span class="ss">ports</span> <span class="o">=</span> <span class="p">[</span> continuwuityLocalPort <span class="p">];</span>

      <span class="ss">volumes</span> <span class="o">=</span> <span class="p">[</span>
        <span class="p">[</span>
          <span class="s2">&quot;</span><span class="si">${</span>continuwuityDir<span class="si">}</span><span class="s2">/db&quot;</span>
          <span class="s2">&quot;/var/lib/continuwuity&quot;</span>
        <span class="p">]</span>
        <span class="p">[</span>
          <span class="s2">&quot;</span><span class="si">${</span>continuwuityDir<span class="si">}</span><span class="s2">/continuwuity.toml&quot;</span>
          <span class="s2">&quot;/etc/continuwuity/continuwuity.toml&quot;</span>
        <span class="p">]</span>
        <span class="p">[</span>
          <span class="s2">&quot;</span><span class="si">${</span>config<span class="o">.</span>age<span class="o">.</span>secrets<span class="o">.</span>continuwuity-registration-token<span class="o">.</span>path<span class="si">}</span><span class="s2">&quot;</span>
          <span class="s2">&quot;/etc/continuwuity/registration-token&quot;</span>
        <span class="p">]</span>
      <span class="p">];</span>

      <span class="ss">environment</span> <span class="o">=</span> <span class="p">{</span>
        <span class="ss">CONDUWUIT_CONFIG</span> <span class="o">=</span> <span class="s2">&quot;/etc/continuwuity/continuwuity.toml&quot;</span><span class="p">;</span>
      <span class="p">};</span>

      <span class="ss">entrypoint</span> <span class="o">=</span> <span class="s2">&quot;</span><span class="si">${</span>matrix-continuwuity<span class="si">}</span><span class="s2">/bin/conduwuit&quot;</span><span class="p">;</span>
    <span class="p">};</span>
  <span class="p">};</span>

  services<span class="o">.</span>nginx<span class="o">.</span><span class="ss">virtualHosts</span> <span class="o">=</span> <span class="p">{</span>
    <span class="s2">&quot;matrix.rnrd.eu&quot;</span> <span class="o">=</span>
      <span class="k">let</span>
        <span class="ss">proxySettings</span> <span class="o">=</span> <span class="p">{</span>
          <span class="ss">proxyPass</span> <span class="o">=</span> <span class="s2">&quot;http://127.0.0.1:</span><span class="si">${</span><span class="nb">toString</span> continuwuityLocalPort<span class="si">}</span><span class="s2">&quot;</span><span class="p">;</span>
        <span class="p">};</span>
      <span class="k">in</span>
      <span class="p">{</span>
        <span class="ss">useACMEHost</span> <span class="o">=</span> <span class="s2">&quot;rnrd.eu&quot;</span><span class="p">;</span>
        <span class="ss">forceSSL</span> <span class="o">=</span> <span class="no">true</span><span class="p">;</span>

        locations<span class="o">.</span><span class="s2">&quot;/&quot;</span> <span class="o">=</span> proxySettings<span class="p">;</span>
        locations<span class="o">.</span><span class="s2">&quot;/_matrix&quot;</span> <span class="o">=</span> proxySettings<span class="p">;</span>
        locations<span class="o">.</span><span class="s2">&quot;/_conduwuit&quot;</span> <span class="o">=</span> proxySettings<span class="p">;</span>
        locations<span class="o">.</span><span class="s2">&quot;/_continuwuity&quot;</span> <span class="o">=</span> proxySettings<span class="p">;</span>

        <span class="ss">extraConfig</span> <span class="o">=</span> <span class="s s-Multiline">&#39;&#39;</span>
<span class="s s-Multiline">          client_max_body_size 20M;</span>

<span class="s s-Multiline">          proxy_connect_timeout 600;</span>
<span class="s s-Multiline">          proxy_send_timeout 600;</span>
<span class="s s-Multiline">          proxy_read_timeout 600;</span>
<span class="s s-Multiline">          send_timeout 600;</span>

<span class="s s-Multiline">          access_log /var/log/nginx/matrix.access.log json_combined;</span>
<span class="s s-Multiline">        &#39;&#39;</span><span class="p">;</span>
      <span class="p">};</span>
  <span class="p">};</span>
<span class="p">}</span>
</pre></div>
