Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
<link rel="mask-icon" href="%sveltekit.assets%/maskable_icon.png" color="#1d232a" />
<meta name="theme-color" content="#641ae6" />
<meta name="mobile-web-app-capable" content="yes" />
%sveltekit.head%
</head>
<body data-sveltekit-preload-data="hover">
%sveltekit.head%
<div style="display: contents">%sveltekit.body%</div>
</body>
</html>
11 changes: 1 addition & 10 deletions src/lib/Analytics.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,5 @@
<svelte:head>
<script async src="https://www.googletagmanager.com/gtag/js?id=G-0RFZS8YNB7">
</script>
<script>
window.dataLayer = window.dataLayer || [];

function gtag() {
dataLayer.push(arguments);
}

gtag('js', new Date());
gtag('config', 'G-0RFZS8YNB7');
</script>
<script src="/gtag.js"></script>
</svelte:head>
3 changes: 1 addition & 2 deletions src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,7 @@
<div class="flex flex-wrap sm:flex-row">
<a href={resolve('/')} class="flex items-center m-4">
<img src="favicon.svg" alt="PDFCrypt" class="h-16 align-middle mx-4" />
<h1
class="text-4xl rounded-lg p-2.5 border-2 bg-primary text-white border-transparent">
<h1 class="text-4xl rounded-lg p-2.5 border-2 bg-primary text-white border-transparent">
PDFCrypt
</h1>
</a>
Expand Down
5 changes: 4 additions & 1 deletion src/routes/install/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,10 @@
<div class="tile m-4 h-fit">
<h2 class="text-2xl rounded-lg p-2.5 bg-primary text-white mb-4 w-fit">MacOS</h2>
<ol>
<li>- Open the app in Safari. If you're using a Chrome-based browser, follow the Windows instructions instead.</li>
<li>
- Open the app in Safari. If you're using a Chrome-based browser, follow the
Windows instructions instead.
</li>
<li>- Click the share button in the address bar.</li>
<li>- Click "Add to Dock".</li>
</ol>
Expand Down
4 changes: 0 additions & 4 deletions src/routes/privacy/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
<script>
import { resolve } from '$app/paths';
</script>

<svelte:head>
<title>PDFCrypt - Privacy Policy</title>
</svelte:head>
Expand Down
6 changes: 6 additions & 0 deletions static/gtag.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag('js', new Date());
gtag('config', 'G-0RFZS8YNB7');
36 changes: 36 additions & 0 deletions svelte.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,42 @@ const config = {
}),
paths: {
base: process.argv.includes('dev') ? '' : process.env.BASE_PATH
},
csp: {
mode: 'hash',
directives: {
'default-src': ['self'],
'script-src': [
'self',
'wasm-unsafe-eval',
'https://www.googletagmanager.com',
'https://get.microsoft.com'
],
'style-src': ['self', 'unsafe-inline'],
'img-src': [
'self',
'data:',
'https://www.google-analytics.com',
'https://www.googletagmanager.com',
'https://get.microsoft.com',
'https://stats.g.doubleclick.net'
],
'connect-src': [
'self',
'https://www.google-analytics.com',
'https://analytics.google.com',
'https://www.googletagmanager.com',
'https://get.microsoft.com',
'https://apps.microsoft.com',
'https://stats.g.doubleclick.net'
],
'font-src': ['self'],
'frame-src': ['self', 'https://get.microsoft.com'],
'worker-src': ['self'],
'manifest-src': ['self'],
'object-src': ['none'],
'base-uri': ['self']
}
}
}
};
Expand Down