mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2025-07-19 12:59:36 +02:00
Refactor frontend configuration and add optional Umami Analytics integration
This commit is contained in:
parent
4f40d0de63
commit
5011829e6e
4 changed files with 22 additions and 1 deletions
|
@ -1,2 +1,7 @@
|
||||||
PUBLIC_SERVER_URL=http://127.0.0.1:8000
|
PUBLIC_SERVER_URL=http://127.0.0.1:8000
|
||||||
BODY_SIZE_LIMIT=Infinity
|
BODY_SIZE_LIMIT=Infinity
|
||||||
|
|
||||||
|
|
||||||
|
# OPTIONAL VARIABLES FOR UMAMI ANALYTICS
|
||||||
|
PUBLIC_UMAMI_SRC=
|
||||||
|
PUBLIC_UMAMI_WEBSITE_ID=
|
|
@ -35,6 +35,7 @@
|
||||||
},
|
},
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"@lukulent/svelte-umami": "^0.0.3",
|
||||||
"svelte-i18n": "^4.0.1",
|
"svelte-i18n": "^4.0.1",
|
||||||
"svelte-maplibre": "^0.9.8"
|
"svelte-maplibre": "^0.9.8"
|
||||||
}
|
}
|
||||||
|
|
12
frontend/pnpm-lock.yaml
generated
12
frontend/pnpm-lock.yaml
generated
|
@ -8,6 +8,9 @@ importers:
|
||||||
|
|
||||||
.:
|
.:
|
||||||
dependencies:
|
dependencies:
|
||||||
|
'@lukulent/svelte-umami':
|
||||||
|
specifier: ^0.0.3
|
||||||
|
version: 0.0.3(svelte@4.2.19)
|
||||||
svelte-i18n:
|
svelte-i18n:
|
||||||
specifier: ^4.0.1
|
specifier: ^4.0.1
|
||||||
version: 4.0.1(svelte@4.2.19)
|
version: 4.0.1(svelte@4.2.19)
|
||||||
|
@ -421,6 +424,11 @@ packages:
|
||||||
resolution: {integrity: sha512-f5DRIOZf7wxogefH03RjMPMdBF7ADTWUMoOs9kaJo06EfwF+aFhMZMDZxHg/Xe12hptN9xoZjGso2fdjapBRIA==}
|
resolution: {integrity: sha512-f5DRIOZf7wxogefH03RjMPMdBF7ADTWUMoOs9kaJo06EfwF+aFhMZMDZxHg/Xe12hptN9xoZjGso2fdjapBRIA==}
|
||||||
engines: {node: '>=10'}
|
engines: {node: '>=10'}
|
||||||
|
|
||||||
|
'@lukulent/svelte-umami@0.0.3':
|
||||||
|
resolution: {integrity: sha512-4pL0sJapfy14yDj6CyZgewbRDadRoBJtk/dLqCJh7/tQuX7HO4hviBzhrVa4Osxaq2kcGEKdpkhAKAoaNdlNSA==}
|
||||||
|
peerDependencies:
|
||||||
|
svelte: ^4.0.0
|
||||||
|
|
||||||
'@mapbox/geojson-rewind@0.5.2':
|
'@mapbox/geojson-rewind@0.5.2':
|
||||||
resolution: {integrity: sha512-tJaT+RbYGJYStt7wI3cq4Nl4SXxG8W7JDG5DMJu97V25RnbNg3QtQtf+KD+VLjNpWKYsRvXDNmNrBgEETr1ifA==}
|
resolution: {integrity: sha512-tJaT+RbYGJYStt7wI3cq4Nl4SXxG8W7JDG5DMJu97V25RnbNg3QtQtf+KD+VLjNpWKYsRvXDNmNrBgEETr1ifA==}
|
||||||
hasBin: true
|
hasBin: true
|
||||||
|
@ -2235,6 +2243,10 @@ snapshots:
|
||||||
string-argv: 0.3.2
|
string-argv: 0.3.2
|
||||||
type-detect: 4.0.8
|
type-detect: 4.0.8
|
||||||
|
|
||||||
|
'@lukulent/svelte-umami@0.0.3(svelte@4.2.19)':
|
||||||
|
dependencies:
|
||||||
|
svelte: 4.2.19
|
||||||
|
|
||||||
'@mapbox/geojson-rewind@0.5.2':
|
'@mapbox/geojson-rewind@0.5.2':
|
||||||
dependencies:
|
dependencies:
|
||||||
get-stream: 6.0.1
|
get-stream: 6.0.1
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { browser } from '$app/environment';
|
import { browser } from '$app/environment';
|
||||||
import { register, init, locale, waitLocale } from 'svelte-i18n';
|
import { register, init, locale, waitLocale } from 'svelte-i18n';
|
||||||
|
import { UmamiAnalyticsEnv } from '@lukulent/svelte-umami';
|
||||||
export let data;
|
export let data;
|
||||||
|
|
||||||
// Register your translations for each locale
|
// Register your translations for each locale
|
||||||
|
@ -43,6 +44,8 @@
|
||||||
<slot />
|
<slot />
|
||||||
{/await}
|
{/await}
|
||||||
|
|
||||||
|
<UmamiAnalyticsEnv />
|
||||||
|
|
||||||
<svelte:head>
|
<svelte:head>
|
||||||
<title>AdventureLog</title>
|
<title>AdventureLog</title>
|
||||||
<meta
|
<meta
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue