Skip to content

Commit 5523a20

Browse files
authored
Merge pull request #424 from EducationalTools/main
better history page, handoff page, fixes
2 parents 24edbec + c873098 commit 5523a20

25 files changed

+831
-306
lines changed

.env.example

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Environment Variables Template
2+
# Copy this file to .env and fill in your values
3+
4+
# Clerk Authentication
5+
PUBLIC_CLERK_PUBLISHABLE_KEY=pk_test_example_key_here
6+
7+
# Convex Database
8+
PUBLIC_CONVEX_URL=https://example.convex.cloud

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@
2828
"bits-ui": "2.8.11",
2929
"clsx": "^2.1.1",
3030
"embla-carousel-svelte": "^8.6.0",
31-
"layerchart": "2.0.0-next.24",
31+
"layerchart": "2.0.0-next.31",
3232
"mode-watcher": "^1.1.0",
3333
"paneforge": "1.0.0-next.5",
3434
"prettier": "^3.6.2",
3535
"prettier-plugin-svelte": "^3.4.0",
3636
"prettier-plugin-tailwindcss": "^0.6.14",
3737
"svelte": "^5.36.2",
38-
"svelte-check": "^4.2.2",
38+
"svelte-check": "^4.3.0",
3939
"svelte-sonner": "^1.0.5",
4040
"sveltekit-superforms": "^2.27.1",
4141
"tailwind-merge": "^3.3.1",
@@ -48,7 +48,7 @@
4848
},
4949
"dependencies": {
5050
"@clerk/backend": "^2.4.3",
51-
"@clerk/themes": "^2.3.0",
51+
"@clerk/themes": "^2.3.3",
5252
"@friendofsvelte/tipex": "0.0.7",
5353
"@lucide/svelte": "^0.525.0",
5454
"@tanstack/match-sorter-utils": "^8.19.4",
@@ -60,7 +60,7 @@
6060
"jsonwebtoken": "^9.0.2",
6161
"md5": "^2.3.0",
6262
"posthog-js": "^1.257.0",
63-
"svelte-clerk": "^0.13.4",
63+
"svelte-clerk": "^0.16.0",
6464
"svelte-persisted-store": "^0.12.0"
6565
}
6666
}

pnpm-lock.yaml

Lines changed: 54 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/lib/analytics.ts

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
import posthog from 'posthog-js';
2+
import { browser } from '$app/environment';
3+
import { persisted } from 'svelte-persisted-store';
4+
5+
export const trackerDialogClosed = persisted('trackerDialogClosed', false);
6+
7+
export function initializeAnalytics() {
8+
if (!browser) return;
9+
10+
posthog.init('phc_jg4gOdigfHQD4MSgrSaO883dp2LjNJbJO7azv61UtI0', {
11+
api_host: 'https://us.i.posthog.com',
12+
person_profiles: 'always',
13+
capture_exceptions: true
14+
});
15+
}
16+
17+
export async function checkTrackerBlocked(): Promise<boolean> {
18+
if (!browser) return false;
19+
20+
try {
21+
await fetch('https://us-assets.i.posthog.com/static/exception-autocapture.js');
22+
return false;
23+
} catch {
24+
return navigator.onLine;
25+
}
26+
}

0 commit comments

Comments
 (0)