1
0
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:
uetchy 2020-05-26 21:00:01 +09:00
parent edd11641c2
commit a360048662
2 changed files with 17 additions and 0 deletions

View 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>

View File

@ -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 />