
* feat: big badge configuration * fix: remove google fonts * fix(plugins, server): remove cdn * ci: fix format ignore * feat(server): json configuration * feat: add search route for adding in browser * fix: add arm arch * fix: docker action * fix: engines fallback * doc: change logo * doc: fix logo margin * doc: update version * doc: change layout * dev: add dependabot groups * dev: fix dependabot and format
55 lines
1.3 KiB
Plaintext
55 lines
1.3 KiB
Plaintext
<% const search = config.env.third_party.searx_url %>
|
|
|
|
<%
|
|
|
|
if (search) {
|
|
%>
|
|
<input type="checkbox" id="switch-search" checked>
|
|
|
|
<label for="switch-search" class="switch-label">
|
|
<span>URL</span>
|
|
<span class="switch-btn"></span>
|
|
<span>Search</span>
|
|
</label>
|
|
|
|
<form action="/search" method="get" class="input-grid main-form-search">
|
|
<%- include("./search-form.ejs") %>
|
|
</form>
|
|
<%
|
|
}
|
|
|
|
%>
|
|
|
|
<form action="/get" method="get" class="input-grid <%= search ? "main-form-url" : "" %>">
|
|
<div class="input">
|
|
<input type="text" name="url" id="url" placeholder="URL">
|
|
</div>
|
|
<div class="input">
|
|
<input type="submit" id="submit" class="button" value="Parse">
|
|
</div>
|
|
<div class="input-row">
|
|
<div class="input">
|
|
<label for="engine">Engine</label>
|
|
<select name="engine">
|
|
<option value="" selected>Default</option>
|
|
<%
|
|
engineList.forEach((engine) => {
|
|
%>
|
|
<option value="<%= engine %>">
|
|
<%= engine %>
|
|
</option>
|
|
<%
|
|
})
|
|
%>
|
|
</select>
|
|
</div>
|
|
<div class="input">
|
|
<label for="format">Format</label>
|
|
<select name="format">
|
|
<option value="html" selected>HTML</option>
|
|
<option value="text">Text</option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
</form>
|