Working Docker

This commit is contained in:
Pablo Ferreiro 2022-03-15 22:52:54 +01:00
parent c26e027c01
commit f0765e266c
No known key found for this signature in database
GPG key ID: 41FBCE65B779FA24
18 changed files with 102 additions and 43 deletions

8
components/form.latte Normal file
View file

@ -0,0 +1,8 @@
<form action="{path($path)}" method="POST">
{block fields}{/block}
<div class="field">
<div class="control">
<button class="button is-success" type="submit">Submit</button>
</div>
</div>
</form>

View file

@ -5,7 +5,6 @@
<meta property="og:title" content="ProxiTok" />
<meta property="og:description" content="Alternative frontend for TikTok" />
<meta property="og:type" content="website" />
<!-- <link rel="stylesheet" href="{path('/styles/vendor/fontawesome.min.css')}"> -->
<link rel="stylesheet" href="{path('/styles/vendor/bulma.min.css')}">
<title>{$title} - ProxiTok</title>
</head>

3
components/rss.latte Normal file
View file

@ -0,0 +1,3 @@
<a href="{path($_SERVER['REQUEST_URI'] . '/rss')}">
{include './icon.latte', icon: 'feed', text: 'RSS'}
</a>

View file

@ -1,14 +1,14 @@
<form action="{path('/settings/api')}" method="POST">
{embed '../form.latte', path: '/settings/api'}
{block fields}
<div class="field">
<label class="checkbox">
<input name="api-legacy" type="checkbox"
checked="{isset($_COOKIE['api-legacy']) && $_COOKIE['api-legacy'] === 'on' ? 'true' : 'false'}"
value="{isset($_COOKIE['api-legacy']) ? $_COOKIE['api-legacy'] : 'off'}">Enable legacy mode
</label>
<label class="label">Legacy mode</label>
<div class="select">
<select name="api-legacy">
<option hidden disabled selected value> -- Select an option -- </option>
<option value="on">On</option>
<option value="off">Off</option>
</select>
</div>
</div>
<div class="field">
<div class="control">
<button class="button is-success" type="submit">Submit</button>
</div>
</div>
</form>
{/block}
{/embed}

View file

@ -1,4 +1,5 @@
<form action="{path('/settings/proxy')}" method="POST">
{embed '../form.latte', path: '/settings/proxy'}
{block fields}
{foreach $proxy_elements as $proxy_element}
<div class="field">
<label class="label">{$proxy_element|firstUpper}</label>
@ -7,9 +8,5 @@
</div>
</div>
{/foreach}
<div class="field">
<div class="control">
<button class="button is-success" type="submit">Submit</button>
</div>
</div>
</form>
{/block}
{/embed}