Skip to content

Commit 6a5347d

Browse files
committed
fix(web): opensearch
1 parent c995b5a commit 6a5347d

File tree

4 files changed

+6
-14
lines changed

4 files changed

+6
-14
lines changed

.eslintrc

+1-7
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,7 @@
3333
"no-use-before-define": 0,
3434
"svelte/html-self-closing": ["error", "always"],
3535
"svelte/html-closing-bracket-spacing": ["error", { "startTag": "never", "endTag": "never", "selfClosingTag": "always" }],
36-
"svelte/html-quotes": [
37-
"error",
38-
{
39-
"prefer": "single",
40-
"dynamic": { "quoted": false, "avoidInvalidUnquotedInHTML": false }
41-
}
42-
],
36+
"svelte/html-quotes": [ "error", { "prefer": "single", "dynamic": { "quoted": false, "avoidInvalidUnquotedInHTML": false } }],
4337
"svelte/shorthand-attribute": ["warn", { "prefer": "always" }],
4438
"svelte/spaced-html-comment": ["error", "always"]
4539
}

web/jsconfig.json

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

web/src/app.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<meta name="hostname" content="miru.watch">
1212
<meta name="expected-hostname" content="miru.watch">
1313

14-
<link rel="search" type="application/opensearchdescription+xml" href="%sveltekit.assets%/opensearch.xml" title="GitHub">
14+
<link rel="search" type="application/opensearchdescription+xml" title="Miru" href="%sveltekit.assets%/opensearch.xml">
1515

1616
<meta name="twitter:image:src" content="https://miru.watch/app_original.png" />
1717
<meta name="twitter:site" content="@ThaUnknown_" />

web/static/opensearch.xml

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

0 commit comments

Comments
 (0)