mirror of
https://github.com/uetchy/namae.git
synced 2025-07-01 22:10:04 +09:00
feat: add opensearch
This commit is contained in:
parent
edd11641c2
commit
a360048662
9
web/public/opensearch.xml
Normal file
9
web/public/opensearch.xml
Normal file
@ -0,0 +1,9 @@
|
||||
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/"
|
||||
xmlns:moz="http://www.mozilla.org/2006/browser/search/">
|
||||
<ShortName>namae</ShortName>
|
||||
<Description>Inter-platform name availability checker</Description>
|
||||
<InputEncoding>UTF-8</InputEncoding>
|
||||
<Image width="16" height="16" type="image/x-icon">[https://namae.dev/favicon.ico]</Image>
|
||||
<Url type="text/html" template="https://namae.dev/s/{searchTerms}"></Url>
|
||||
<moz:SearchForm>https://namae.dev</moz:SearchForm>
|
||||
</OpenSearchDescription>
|
@ -25,6 +25,14 @@ export default function App() {
|
||||
return (
|
||||
<>
|
||||
<GlobalStyle />
|
||||
<Helmet>
|
||||
<link
|
||||
rel="search"
|
||||
type="application/opensearchdescription+xml"
|
||||
title="namae"
|
||||
href="/opensearch.xml"
|
||||
/>
|
||||
</Helmet>
|
||||
<Switch>
|
||||
<Route exact path="/">
|
||||
<Home />
|
||||
|
Loading…
x
Reference in New Issue
Block a user