more opensearch goodness, default input attributes
This commit is contained in:
parent
b587ca5d08
commit
2bbb0ddc73
|
@ -10,8 +10,8 @@
|
|||
Search for your favorite videos and channels on <a href="%{indexedInstancesUrl}" target="_blank">%{instancesCount} PeerTube websites</a> indexed by this server!
|
||||
</h3>
|
||||
|
||||
<div id="search-anchor" class="search-container" v-bind:class="{ 'search-container-small': !searchDone }">
|
||||
<input v-bind:placeholder="inputPlaceholder" autofocus v-on:keyup.enter="doNewSearch()" type="text" v-model="formSearch" name="search-text" />
|
||||
<div id="search-anchor" class="search-container" v-bind:class="{ 'search-container-small': !searchDone }" role="search">
|
||||
<input v-bind:placeholder="inputPlaceholder" autofocus v-on:keyup.enter="doNewSearch()" type="text" v-model="formSearch" name="search-text" autocapitalize="off" autocomplete="off" autocorrect="off" maxlength="1024" />
|
||||
|
||||
<button v-on:click="doNewSearch()">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
||||
|
|
|
@ -46,12 +46,13 @@ let indexHTML: string
|
|||
|
||||
app.use('/opensearch.xml', async function (req, res) {
|
||||
return res.send(`<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
|
||||
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/" xmlns:moz="http://www.mozilla.org/2006/browser/search/">
|
||||
<ShortName>${CONFIG.SEARCH_INSTANCE.NAME}</ShortName>
|
||||
<Description>${CONFIG.SEARCH_INSTANCE.DESCRIPTION}</Description>
|
||||
<Image height="64" width="64" type="image/png">${url}/img/favicon.png</Image>
|
||||
<Language>*</Language>
|
||||
<Url type="text/html" rel="results" template="${url}/search?search={searchTerms}"/>
|
||||
<Tags>peertube video</Tags>
|
||||
<Url type="text/html" method="get" rel="results" template="${url}/search?search={searchTerms}&page={startPage?}"/>
|
||||
<Url type="application/opensearchdescription+xml" rel="self" template="${url}/opensearch.xml"/>
|
||||
<Query role="example" searchTerms="peertube"/>
|
||||
<SyndicationRight>open</SyndicationRight>
|
||||
|
|
Loading…
Reference in New Issue