Browse Source

dynamic opensearch xml

pull/376/head
castdrian 2 years ago
parent
commit
d371321116
No known key found for this signature in database
  1. 1
      index.html
  2. 1
      package.json
  3. 2
      src/assets/opensearch.xml.hbs
  4. 1
      src/assets/test.txt.hbs
  5. 6
      vite.config.ts
  6. 5
      yarn.lock

1
index.html

@ -55,7 +55,6 @@ @@ -55,7 +55,6 @@
</script>
</head>
<body>
<p>{{ message }}</p>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<script type="module" src="/src/index.tsx"></script>

1
package.json

@ -13,6 +13,7 @@ @@ -13,6 +13,7 @@
"core-js": "^3.29.1",
"crypto-js": "^4.1.1",
"dompurify": "^3.0.1",
"dotenv": "^16.3.1",
"fscreen": "^1.2.0",
"fuse.js": "^6.4.6",
"hls.js": "^1.0.7",

2
src/assets/opensearch.xml → src/assets/opensearch.xml.hbs

@ -2,5 +2,5 @@ @@ -2,5 +2,5 @@
<ShortName>movie-web</ShortName>
<Description>The place for your favorite movies &amp; shows</Description>
<InputEncoding>UTF-8</InputEncoding>
<Url type="text/html" template="https://movie-web.app/browse/{searchTerms}" />
<Url type="text/html" template="{{ appdomain }}/browse/{searchTerms}" />
</OpenSearchDescription>

1
src/assets/test.txt.hbs

@ -1 +0,0 @@ @@ -1 +0,0 @@
msg: '{{ message }}'!

6
vite.config.ts

@ -5,12 +5,14 @@ import { VitePWA } from "vite-plugin-pwa"; @@ -5,12 +5,14 @@ import { VitePWA } from "vite-plugin-pwa";
import checker from "vite-plugin-checker";
import path from "path";
import { handlebars } from "./plugins/handlebars";
import dotenv from 'dotenv';
dotenv.config();
export default defineConfig({
plugins: [
plugins:[
handlebars({
vars: {
message: "HELLOWORLD"
appdomain: process.env.APP_DOMAIN,
},
}),
react({

5
yarn.lock

@ -2448,6 +2448,11 @@ dompurify@^3.0.1: @@ -2448,6 +2448,11 @@ dompurify@^3.0.1:
resolved "https://registry.yarnpkg.com/dompurify/-/dompurify-3.0.2.tgz#bc4c7c011c825e7704341a285461d8d407d9429a"
integrity sha512-B8c6JdiEpxAKnd8Dm++QQxJL4lfuc757scZtcapj6qjTjrQzyq5iAyznLKVvK+77eYNiFblHBlt7MM0fOeqoKw==
dotenv@^16.3.1:
version "16.3.1"
resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-16.3.1.tgz#369034de7d7e5b120972693352a3bf112172cc3e"
integrity sha512-IPzF4w4/Rd94bA9imS68tZBaYyBWSCE47V1RGuMrB94iyTOIEwRmVL2x/4An+6mETpLrKJ5hQkB8W4kFAadeIQ==
eastasianwidth@^0.2.0:
version "0.2.0"
resolved "https://registry.yarnpkg.com/eastasianwidth/-/eastasianwidth-0.2.0.tgz#696ce2ec0aa0e6ea93a397ffcf24aa7840c827cb"

Loading…
Cancel
Save