Skip to content

Commit

Permalink
fix(web): opensearch
Browse files Browse the repository at this point in the history
  • Loading branch information
ThaUnknown committed Feb 18, 2024
1 parent c995b5a commit c684a2b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 13 deletions.
8 changes: 1 addition & 7 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
}
Expand Down
1 change: 0 additions & 1 deletion web/jsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
2 changes: 1 addition & 1 deletion web/src/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -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_" />
Expand Down
7 changes: 3 additions & 4 deletions web/static/opensearch.xml
Original file line number Diff line number Diff line change
@@ -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/"/>
<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>miru://anime/</moz:SearchForm>
</OpenSearchDescription>

0 comments on commit c684a2b

Please sign in to comment.