Mass refactoring and stackoverflow users parser (#83)
* refactor: public config delete public config, replace with package.json. Update version to 1.6.0 for this pull request. * fix: searx pagination * refactor: type system for routes * refactor: universal redirection * fix: stackoverflow questions add No handler Found error * feat: stackoverflow users parser
This commit is contained in:
@ -10,13 +10,14 @@
|
||||
<span>Search</span>
|
||||
</label>
|
||||
|
||||
<form action="/search" method="get" class="input-grid main-form-search">
|
||||
<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>
|
||||
|
||||
<% } %>
|
||||
|
@ -4,9 +4,10 @@
|
||||
<%
|
||||
if (config.search.enabled) {
|
||||
%>
|
||||
<form class="form-search" action="/search" method="get">
|
||||
<form class="form-search" action="/redirect" method="get">
|
||||
<input type="text" name="q" id="search" placeholder="Search">
|
||||
<input class="button" type="submit" value="Go"/>
|
||||
<input type="hidden" name="url" value="<%= config.search.searx_url %>/search"/>
|
||||
</form>
|
||||
<%
|
||||
}
|
||||
|
@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="description" content="<%= publicConfig.description %>">
|
||||
<meta name="description" content="<%= packageJSON.description %>">
|
||||
<title>txt. main page</title>
|
||||
<link rel="stylesheet" href="/static/common.css">
|
||||
<link rel="stylesheet" href="/static/index.css">
|
||||
@ -16,11 +16,11 @@
|
||||
<header>
|
||||
<h1>txt<span class="dot">.</span></h1>
|
||||
<div class="menu">
|
||||
<a href="https://github.com/TxtDot/txtdot/releases/latest" class="button secondary">v<%= publicConfig.version %></a>
|
||||
<a href="https://github.com/TxtDot/txtdot/releases/latest" class="button secondary">v<%= packageJSON.version %></a>
|
||||
<a href="https://github.com/txtdot/txtdot" class="button secondary">GitHub</a>
|
||||
<a href="https://txtdot.github.io/documentation" class="button secondary">Docs</a>
|
||||
</div>
|
||||
<p><%= publicConfig.description %></p>
|
||||
<p><%= packageJSON.description %></p>
|
||||
</header>
|
||||
<%- include('./components/form-main.ejs') %>
|
||||
</main>
|
||||
|
Reference in New Issue
Block a user