Skip to content

Commit

Permalink
Removed refs to ogTitle in JS
Browse files Browse the repository at this point in the history
  • Loading branch information
rimutaka committed Jul 10, 2024
1 parent fdc1a99 commit 236b766
Show file tree
Hide file tree
Showing 13 changed files with 63 additions and 27 deletions.
6 changes: 3 additions & 3 deletions build/asset-manifest.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"files": {
"main.css": "./static/css/main.00b9f5c0.css",
"main.js": "./static/js/main.8af119ea.js",
"main.js": "./static/js/main.5eac7a96.js",
"static/media/isbn_mod_bg.wasm": "./static/media/isbn_mod_bg.7eb38663a2358fff1703.wasm",
"static/media/welcome-bg.jpg": "./static/media/welcome-bg.b44b41f244b5885c2660.jpg",
"index.html": "./index.html",
"main.00b9f5c0.css.map": "./static/css/main.00b9f5c0.css.map",
"main.8af119ea.js.map": "./static/js/main.8af119ea.js.map"
"main.5eac7a96.js.map": "./static/js/main.5eac7a96.js.map"
},
"entrypoints": [
"static/css/main.00b9f5c0.css",
"static/js/main.8af119ea.js"
"static/js/main.5eac7a96.js"
]
}
51 changes: 51 additions & 0 deletions build/index-pocket.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<!doctype html>
<html>

<head prefix="og: http://ogp.me/ns#">
<meta charset="utf-8">
<title>#197 Michaeleen Doucleff: TEAM Parenting - The Knowledge Project with Shane Parrish</title>
<meta property="og:title" content="#197 Michaeleen Doucleff: TEAM Parenting - The Knowledge Project with Shane Parrish">
<meta property="og:description" content="Master the best of what other people have already figured out ...">
<meta property="og:site_name" content="Pocket Casts">
<meta property="og:type" content="website">
<meta property="og:url" content="https://pca.st/yk3zdxj3">
<meta property="og:image" content="http://static.pocketcasts.com/discover/images/400/693ab9f0-d0f0-0132-0356-059c869cc4eb.jpg">
<meta property="og:image:secure_url" content="https://static.pocketcasts.com/discover/images/400/693ab9f0-d0f0-0132-0356-059c869cc4eb.jpg">
<meta property="og:image:width" content="400">
<meta property="og:image:height" content="400">

<meta name="twitter:card" content="summary" />
<meta name="twitter:site" content="@pocketcasts" />
<meta name="twitter:title" content="#197 Michaeleen Doucleff: TEAM Parenting - The Knowledge Project with Shane Parrish" />
<meta name="twitter:description" content="Master the best of what other people have already figured out ..." />
<meta name="twitter:image" content="https://static.pocketcasts.com/discover/images/400/693ab9f0-d0f0-0132-0356-059c869cc4eb.jpg" />

<link rel="alternate" type="application/json+oembed" href="https://pca.st/oembed.json?url=https%3A%2F%2Fpca.st%2Fyk3zdxj3" title="#197 Michaeleen Doucleff: TEAM Parenting - The Knowledge Project with Shane Parrish" />
<link rel="alternate" type="text/xml+oembed" href="https://pca.st/oembed.xml?url=https%3A%2F%2Fpca.st%2Fyk3zdxj3" title="#197 Michaeleen Doucleff: TEAM Parenting - The Knowledge Project with Shane Parrish" />

<meta name="author" content="Pocket Casts">
<meta name="description" content="Master the best of what other people have already figured out ..." />
<meta name="apple-itunes-app" content="app-id=414834813, app-argument=">
<meta name="google-play-app" content="app-id=au.com.shiftyjelly.pocketcasts">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0">

<link rel="apple-touch-icon" href="/assets/favicon-180-62b6b4c70148c0c38f939aff83e8c60e844b0767f820ca4b0cd80791123b8315.png" />
<link rel="apple-touch-icon-precomposed" sizes="76x76" href="/assets/favicon-76-a65a01956ce43ac388f1d04e3731b8b75245dc68de80f08db5621dec60421e90.png" />
<link rel="apple-touch-icon-precomposed" sizes="152x152" href="/assets/favicon-152-319412b8b8b30289373f3298760ed5b5ff6a675ae7fac47ff2d748e949bbc527.png" />
<link rel="icon" href="/favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
<link rel="icon" href="/assets/favicon-16-f785b507a659cc39ec929c2b64e8bd97d672b7f2186f510f8a74d9dde425ac6b.png" type="image/png" sizes="16x16" />
<link rel="icon" href="/assets/favicon-32-4d337f9ff4d02819fb5cc149c515400fa822df96284b6518989d6e0bb56bb486.png" type="image/png" sizes="32x32" />
<link rel="icon" href="/assets/favicon-96-362e212b0f5b580729907401d7ae8b1d38012360baebf383fe32a9abfb35c9a5.png" type="image/png" sizes="96x96" />
<link rel="icon" href="/assets/favicon-128-fb626650015e8a038c51722d079ecfecaa2996bcfd72a90bb1e04ec9cbd04f03.png" type="image/png" sizes="128x128" />
<link rel="icon" href="/assets/favicon-196-b1900d68124e6536dbd72ef0c1558fab4518693a06e3a9e9a48254835a2d3473.png" type="image/png" sizes="196x196" />



</head>

<body>

</body>

</html>
2 changes: 1 addition & 1 deletion build/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!doctype html><html lang="en"><head prefix="og: http://ogp.me/ns#"><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="ie=edge"><meta name="referrer" content="no-referrer"/><meta name="theme-color" content="#ffffff"/><meta name="viewport" content="width=device-width,initial-scale=1"/><title>📖📚📚</title><meta name="description" content="A pocket assistant for keen readers: find more information about the book or the author online, borrow it from your local library, buy, sell or share."><meta id="ogTitle" property="og:title" content="Scan ISBN to record or share a book"/><meta property="og:description" content="A pocket assistant for keen readers: find more information about the book or the author online, borrow it from your local library, buy, sell or share."><meta property="og:site_name" content="Bookworm Food"><meta property="og:type" content="website"><meta property="og:url" content="https://bookwormfood.com"><meta property="og:image" itemprop="image" content="http://bookwormfood.com/img/og-image-400.png"/><meta property="og:image:secure_url" itemprop="image" content="https://bookwormfood.com/img/og-image-400.png"><meta property="og:image:width" content="400"><meta property="og:image:height" content="400"><meta name="twitter:card" content="summary"/><meta name="twitter:title" content="Scan ISBN to record or share a book"/><meta name="twitter:description" content="A pocket assistant for keen readers: find more information about the book or the author online, borrow it from your local library, buy, sell or share."/><meta name="twitter:image" content="https://bookwormfood.com/img/og-image-400.png"/><link rel="apple-touch-icon" sizes="180x180" href="/img/apple-touch-icon.png"/><link rel="icon" type="image/png" sizes="32x32" href="/img/favicon-32x32.png"><link rel="icon" type="image/png" sizes="16x16" href="/img/favicon-16x16.png"><script defer="defer" src="/static/js/main.8af119ea.js"></script><link href="/static/css/main.00b9f5c0.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="app"></div></body></html>
<!doctype html><html lang="en"><head prefix="og: http://ogp.me/ns#"><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="ie=edge"><meta name="referrer" content="no-referrer"/><meta name="theme-color" content="#ffffff"/><meta name="viewport" content="width=device-width,initial-scale=1"/><title>📖📚📚</title><meta name="description" content="A pocket assistant for keen readers: find more information about the book or the author online, borrow it from your local library, buy, sell or share."><meta property="og:title" content="Scan ISBN to record or share a book"/><meta property="og:description" content="A pocket assistant for keen readers: find more information about the book or the author online, borrow it from your local library, buy, sell or share."><meta property="og:site_name" content="Bookworm Food"><meta property="og:type" content="website"><meta property="og:url" content="https://bookwormfood.com"><meta property="og:image" itemprop="image" content="http://bookwormfood.com/img/og-image-400.png"/><meta property="og:image:secure_url" itemprop="image" content="https://bookwormfood.com/img/og-image-400.png"><meta property="og:image:width" content="400"><meta property="og:image:height" content="400"><meta name="twitter:card" content="summary"/><meta name="twitter:title" content="Scan ISBN to record or share a book"/><meta name="twitter:description" content="A pocket assistant for keen readers: find more information about the book or the author online, borrow it from your local library, buy, sell or share."/><meta name="twitter:image" content="https://bookwormfood.com/img/og-image-400.png"/><link rel="apple-touch-icon" sizes="180x180" href="/img/apple-touch-icon.png"/><link rel="icon" type="image/png" sizes="32x32" href="/img/favicon-32x32.png"><link rel="icon" type="image/png" sizes="16x16" href="/img/favicon-16x16.png"><script defer="defer" src="/static/js/main.5eac7a96.js"></script><link href="/static/css/main.00b9f5c0.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="app"></div></body></html>
3 changes: 3 additions & 0 deletions build/static/js/main.5eac7a96.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions build/static/js/main.5eac7a96.js.map

Large diffs are not rendered by default.

3 changes: 0 additions & 3 deletions build/static/js/main.8af119ea.js

This file was deleted.

1 change: 0 additions & 1 deletion build/static/js/main.8af119ea.js.map

This file was deleted.

2 changes: 1 addition & 1 deletion build/sw.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ if ("function" === typeof importScripts) {
self.addEventListener("install", event => {
self.skipWaiting();
});
workbox.precaching.precacheAndRoute([{"revision":"1133096324be1792e95f83a1562b40e4","url":"asset-manifest.json"},{"revision":"4020571efe44dc33d271798e6a18e0c1","url":"favicon.ico"},{"revision":"f98923403f5c78d689d56b18f947c520","url":"img/apple-touch-icon.png"},{"revision":"a62aa63bb4d0a3dd08820787bd7e118f","url":"img/favicon-16x16.png"},{"revision":"a5229a03fcfe584a3031846fe3c19ccf","url":"img/favicon-32x32.png"},{"revision":"37ff8dc0d50cd7705fc65fc84837c2aa","url":"img/og-image-400.png"},{"revision":"085b7864d9041485e8b3f4444fbdd09a","url":"index-pocket.html"},{"revision":"bcd930bab875a8ae848ec32c0d79877f","url":"index.html"},{"revision":"dc1b0d9c8cbf227e335faa82ab5c5327","url":"static/css/main.00b9f5c0.css"},{"revision":"da9344208bcf9419b43492b41d3e3702","url":"static/js/main.8af119ea.js"},{"revision":"b8e3f8d253137c82b6a17c1b92b49faf","url":"static/media/isbn_mod_bg.7eb38663a2358fff1703.wasm"},{"revision":"24f2b115d3964c9f977462cdd38b066a","url":"wasm/koder.js"},{"revision":"6f11e7db4fe9aca82cac7150bfc33769","url":"wasm/zbar.js"},{"revision":"e8789bf03df9c2c85e9c59ab0a0cd0c6","url":"wasm/zbar.wasm"},{"revision":"bb1c649a95ffa80369254cc3e51b9a41","url":"wasmWorker.js"}]);
workbox.precaching.precacheAndRoute([{"revision":"19adf63ed894fe129f1893a3094670ad","url":"asset-manifest.json"},{"revision":"4020571efe44dc33d271798e6a18e0c1","url":"favicon.ico"},{"revision":"f98923403f5c78d689d56b18f947c520","url":"img/apple-touch-icon.png"},{"revision":"a62aa63bb4d0a3dd08820787bd7e118f","url":"img/favicon-16x16.png"},{"revision":"a5229a03fcfe584a3031846fe3c19ccf","url":"img/favicon-32x32.png"},{"revision":"37ff8dc0d50cd7705fc65fc84837c2aa","url":"img/og-image-400.png"},{"revision":"085b7864d9041485e8b3f4444fbdd09a","url":"index-pocket.html"},{"revision":"12d3bbe869a5bc4fb62d6202816c3c3f","url":"index.html"},{"revision":"dc1b0d9c8cbf227e335faa82ab5c5327","url":"static/css/main.00b9f5c0.css"},{"revision":"7af971f05dca49da78851d68476d6fe9","url":"static/js/main.5eac7a96.js"},{"revision":"b8e3f8d253137c82b6a17c1b92b49faf","url":"static/media/isbn_mod_bg.7eb38663a2358fff1703.wasm"},{"revision":"24f2b115d3964c9f977462cdd38b066a","url":"wasm/koder.js"},{"revision":"6f11e7db4fe9aca82cac7150bfc33769","url":"wasm/zbar.js"},{"revision":"e8789bf03df9c2c85e9c59ab0a0cd0c6","url":"wasm/zbar.wasm"},{"revision":"bb1c649a95ffa80369254cc3e51b9a41","url":"wasmWorker.js"}]);
workbox.routing.registerRoute(
new RegExp("https://fonts.(?:.googlepis|gstatic).com/(.*)"),
new workbox.strategies.CacheFirst({
Expand Down
2 changes: 1 addition & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<title>📖📚📚</title>
<meta name="description" content="A pocket assistant for keen readers: find more information about the book or the author online, borrow it from your local library, buy, sell or share.">

<meta id="ogTitle" property="og:title" content="Scan ISBN to record or share a book" />
<meta property="og:title" content="Scan ISBN to record or share a book" />
<meta property="og:description" content="A pocket assistant for keen readers: find more information about the book or the author online, borrow it from your local library, buy, sell or share.">
<meta property="og:site_name" content="Bookworm Food">
<meta property="og:type" content="website">
Expand Down
10 changes: 1 addition & 9 deletions src/components/scan.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,15 +140,7 @@ export default function Scan({

useEffect(() => {

// these values are used to set the meta tags in index.html
// and have to be reset when the component is mounted from
// a scan that sets them to the book details
// make sure the values are synchronized with index.html
// TODO: change ids to constants
document.title = "Book barcode scanner"
document.getElementById("ogImage").setAttribute('content', "Scan book barcodes to record or share the books");
document.getElementById("ogTitle").setAttribute('content', "/img/og-thumb.png");

document.title = "Book barcode scanner";
const startScanOnce = async () => {
await startScan();
}
Expand Down
5 changes: 0 additions & 5 deletions src/components/scanResult.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,6 @@ export default function ScanResult() {
let fullTitle = (title) ? title + " by " + authors : "Book not found";
document.title = fullTitle;

// update meta tags for social media sharing
// TODO: change ids to constants
document.getElementById("ogImage").setAttribute('content', thumbnail);
document.getElementById("ogTitle").setAttribute('content', fullTitle);

return (
<div>
<div className="pb-4">
Expand Down
4 changes: 1 addition & 3 deletions src/components/welcome.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ export default function Welcome() {
// a scan that sets them to the book details
// make sure the values are synchronized with index.html
// TODO: change ids to constants
document.title = "📖📚🐛📚"
document.getElementById("ogImage").setAttribute('content', "Scan book barcodes to record or share the books");
document.getElementById("ogTitle").setAttribute('content', "/img/og-thumb.png");
document.title = "📖📚📚"
}, []);

const onBtnClickHandler = async (e) => {
Expand Down

0 comments on commit 236b766

Please sign in to comment.