fix(web): opensearch

This commit is contained in:
ThaUnknown 2024-02-18 15:40:54 +01:00
parent c995b5a8db
commit 6a5347dfd2
4 changed files with 6 additions and 14 deletions

View file

@ -33,13 +33,7 @@
"no-use-before-define": 0,
"svelte/html-self-closing": ["error", "always"],
"svelte/html-closing-bracket-spacing": ["error", { "startTag": "never", "endTag": "never", "selfClosingTag": "always" }],
"svelte/html-quotes": [
"error",
{
"prefer": "single",
"dynamic": { "quoted": false, "avoidInvalidUnquotedInHTML": false }
}
],
"svelte/html-quotes": [ "error", { "prefer": "single", "dynamic": { "quoted": false, "avoidInvalidUnquotedInHTML": false } }],
"svelte/shorthand-attribute": ["warn", { "prefer": "always" }],
"svelte/spaced-html-comment": ["error", "always"]
}

View file

@ -27,7 +27,6 @@
"**/node_modules/*", "**/dist/*", "**/build/*", "**/git_modules/*", "**/.svelte-kit/*", "**/public/*", "**/android/*", "**@types/three/*.d.ts"
]
// Path aliases are handled by https://kit.svelte.dev/docs/configuration#alias and https://kit.svelte.dev/docs/configuration#files
//
// If you want to overwrite includes/excludes, make sure to copy over the relevant includes/excludes
// from the referenced tsconfig.json - TypeScript does not merge them in
}

View file

@ -11,7 +11,7 @@
<meta name="hostname" content="miru.watch">
<meta name="expected-hostname" content="miru.watch">
<link rel="search" type="application/opensearchdescription+xml" href="%sveltekit.assets%/opensearch.xml" title="GitHub">
<link rel="search" type="application/opensearchdescription+xml" title="Miru" href="%sveltekit.assets%/opensearch.xml">
<meta name="twitter:image:src" content="https://miru.watch/app_original.png" />
<meta name="twitter:site" content="@ThaUnknown_" />

View file

@ -1,10 +1,9 @@
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/"
xmlns:moz="http://www.mozilla.org/2006/browser/search/">
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/" xmlns:moz="http://www.mozilla.org/2006/browser/search/">
<ShortName>Miru</ShortName>
<Description>Search Miru</Description>
<InputEncoding>UTF-8</InputEncoding>
<Image width="16" height="16" type="image/x-icon">https://miru.watch/logo.ico</Image>
<Url type="text/html" method="get" template="miru://anime/"/>
<moz:SearchForm>miru://anime/</moz:SearchForm>
<Url type="text/html" method="get" template="https://miru.watch/anime/{searchTerms}"/>
<Url type="application/opensearchdescription+xml" rel="self" template="https://miru.watch/opensearch.xml"/>
<moz:SearchForm>https://miru.watch/anime/</moz:SearchForm>
</OpenSearchDescription>