From 4d34e16053f3dba1065859e77c8147d6334bf94d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20G=C4=85sowski?= Date: Wed, 20 Mar 2024 13:40:40 +0100 Subject: [PATCH] build: add Tianji telemetry --- src/App.vue | 10 ++++++++++ src/env.d.ts | 1 + 2 files changed, 11 insertions(+) diff --git a/src/App.vue b/src/App.vue index c037947..3968a60 100644 --- a/src/App.vue +++ b/src/App.vue @@ -72,6 +72,8 @@ const calcExpeditions = (expeditions: number): number => { return result; }; +const telemetryImg = import.meta.env.VITE_TELEMETRY_IMG; + watch([traitsInput, statsInput, expeditions], () => { stats.value = extractTraits(statsInput.value).reduce((sum, cur) => cur + sum, 0); bonuses.value = extractTraits(traitsInput.value).reduce((sum, cur) => cur + sum, 0); @@ -152,6 +154,11 @@ watch(validStat, (value) => { +
+
+ +
+
Formula sources
@@ -177,4 +184,7 @@ watch(validStat, (value) => { justify-content: center; cursor: help; } +.telemetry { + text-align: center; +} diff --git a/src/env.d.ts b/src/env.d.ts index 10d5744..cdfa1eb 100644 --- a/src/env.d.ts +++ b/src/env.d.ts @@ -7,6 +7,7 @@ interface ImportMetaEnv { readonly VITE_TIANJI_ID: string readonly VITE_TIANJI_SRC: string readonly VITE_SENTRY_DSN: string; + readonly VITE_TELEMETRY_IMG: string; } interface ImportMeta {