mirror of
https://github.com/aljazceru/mutiny-web.git
synced 2025-12-17 06:14:21 +01:00
restore index.html with camera fixed
This commit is contained in:
committed by
Tony Giorgio
parent
efb8ce2b86
commit
1474c66502
46
index.html
Normal file
46
index.html
Normal file
@@ -0,0 +1,46 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Mutiny Wallet</title>
|
||||
<meta charset="utf-8" />
|
||||
<meta
|
||||
name="viewport"
|
||||
content="width=device-width, initial-scale=1.0 height=device-height viewport-fit=cover user-scalable=no"
|
||||
/>
|
||||
<link rel="manifest" href="/manifest.webmanifest" />
|
||||
<meta name="theme-color" content="#171717" />
|
||||
<meta
|
||||
name="description"
|
||||
content="Mutiny is a self-custodial lightning wallet that runs in the browser."
|
||||
/>
|
||||
<link rel="icon" href="/favicon.ico" />
|
||||
<meta name="twitter:card" content="summary_large_image" />
|
||||
<meta name="twitter:title" content="Mutiny Wallet" />
|
||||
<meta
|
||||
name="twitter:description"
|
||||
content="Mutiny is a self-custodial lightning wallet that runs in the browser."
|
||||
/>
|
||||
<meta name="twitter:site" content="https://app.mutinywallet.com/" />
|
||||
<meta
|
||||
name="twitter:image"
|
||||
content="https://app.mutinywallet.com/images/twitter_card_image.png"
|
||||
/>
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:title" content="Mutiny Wallet" />
|
||||
<meta
|
||||
property="og:description"
|
||||
content="Mutiny is a self-custodial lightning wallet that runs in the browser."
|
||||
/>
|
||||
<meta property="og:url" content="https://app.mutinywallet.com/" />
|
||||
<meta
|
||||
property="og:image"
|
||||
content="https://app.mutinywallet.com/images/twitter_card_image.png"
|
||||
/>
|
||||
<link rel="apple-touch-icon" href="/images/icon.png" sizes="512x512" />
|
||||
<link rel="mask-icon" href="/mutiny_logo_mask.svg" color="#000" />
|
||||
</head>
|
||||
<body>
|
||||
<!---->
|
||||
<script type="module" async src="./src/entry-client.tsx"></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,17 +0,0 @@
|
||||
import { readFile, writeFile } from 'fs/promises';
|
||||
import { join } from 'path';
|
||||
|
||||
const insertHeadTag = async () => {
|
||||
const filePath = join(process.cwd(), 'dist', 'public', 'index.html');
|
||||
try {
|
||||
let data = await readFile(filePath, 'utf8');
|
||||
const lines = data.split('\n');
|
||||
lines.splice(2, 0, '<head></head>');
|
||||
data = lines.join('\n');
|
||||
await writeFile(filePath, data);
|
||||
} catch (err) {
|
||||
console.error(`Error: ${err}`);
|
||||
}
|
||||
};
|
||||
|
||||
insertHeadTag();
|
||||
@@ -6,7 +6,7 @@
|
||||
"scripts": {
|
||||
"dev": "solid-start dev",
|
||||
"host": "solid-start dev --host",
|
||||
"build": "solid-start build && node insertHead.js",
|
||||
"build": "solid-start build",
|
||||
"start": "solid-start start",
|
||||
"check-types": "tsc --noemit",
|
||||
"eslint": "eslint src",
|
||||
|
||||
@@ -23,7 +23,8 @@
|
||||
"playwright.config.ts",
|
||||
"vite.config.ts",
|
||||
".eslintrc.cjs",
|
||||
"e2e/**/*"
|
||||
"e2e/**/*",
|
||||
"capacitor.config.ts"
|
||||
],
|
||||
"exclude": [
|
||||
"node_modules",
|
||||
|
||||
Reference in New Issue
Block a user