
* ci: add build check to pull requests * Build(deps-dev): Bump @types/node from 20.10.6 to 20.11.24 (#91) Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 20.10.6 to 20.11.24. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node) --- updated-dependencies: - dependency-name: "@types/node" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * feat: image compression (#101) * feat: image compression * fix: not compress svg Maybe we should add a function to disable this fix. Since I noticed that if you compress svg in webp it becomes magically smaller. * Configuration page (#104) * feat: image compression * feat: configuration page * refactor: json stringify and change engine buttons to ordered list * fix: engine distributor matching * fix: formatting * build: update txtdot version to 1.7.0 * fix: configuration page title * doc: features (#102) * fix: ssrf GHSA-4gj5-xj97-j8fp Doesn't fully correct the error! You need to configure the server to block requests. --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
57 lines
1.5 KiB
Plaintext
57 lines
1.5 KiB
Plaintext
<% search = config.search.enabled %>
|
|
|
|
<%
|
|
|
|
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="/redirect" method="get" class="input-grid main-form-search">
|
|
<div class="input">
|
|
<input type="text" name="q" id="search" placeholder="Search">
|
|
</div>
|
|
<div class="input">
|
|
<input type="submit" id="submit" class="button" value="Go">
|
|
</div>
|
|
<input type="hidden" name="url" value="<%= config.search.searx_url %>/search"/>
|
|
</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>
|