Sentry, drobnosti

This commit is contained in:
Michal Kváček
2024-06-24 16:23:31 +02:00
parent e01bafee73
commit ffbb3ff178
9 changed files with 240 additions and 17 deletions
View File
+27
View File
@@ -0,0 +1,27 @@
import {boot} from "quasar/wrappers";
import * as Sentry from "@sentry/browser";
export default boot(({app, router}) => {
Sentry.init({
app,
dsn: "https://b2580fb40f4f0037d24f32e89d3e5df2@o472821.ingest.us.sentry.io/4506051015802880",
integrations: [
Sentry.browserTracingIntegration({router}),
Sentry.replayIntegration(),
],
// Set tracesSampleRate to 1.0 to capture 100%
// of transactions for tracing.
// We recommend adjusting this value in production
tracesSampleRate: 1.0,
// Set `tracePropagationTargets` to control for which URLs trace propagation should be enabled
// tracePropagationTargets: ["localhost", /^https:\/\/yourserver\.io\/api/],
// Capture Replay for 10% of all sessions,
// plus for 100% of sessions with an error
replaysSessionSampleRate: 0.1,
replaysOnErrorSampleRate: 1.0,
});
});
-14
View File
@@ -1,14 +0,0 @@
{
"name": "event",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git@kvacek.cz:poletani.cz/app.git"
},
"private": true
}
@@ -78,7 +78,6 @@ const fullscreen = ref(false);
</script>
<template>
{{ flightPlan.plannedSpeed }}
<q-tabs v-model="openedTab">
<q-tab name="route">
<q-icon name="route"/>
@@ -39,7 +39,7 @@ const {flights, totalItemsCount, isQueryRunning: areFlightsLoading} = storeToRef
const {photos, isQueryRunning: arePhotosLoading} = storeToRefs(usePhotosStore());
useAppStore().setPageTitle(`${props.pilot.name} + ${copilot.value.name}`);
useAppStore().setBreadcrumbs(publicCopilotBreadcrumbs(props.pilot));
useAppStore().setBreadcrumbs(publicCopilotBreadcrumbs(props.pilot, null, null, copilot.value));
useMeta(() => metaData({
title: copilot.value.name,
@@ -22,6 +22,8 @@ import {useAirportsStore} from "stores/Airports";
import {formatDatetime, minutesToHumanReadable} from "src/composables/datetimeUtils";
import {useFlightPlanCalculations} from "src/composables/flightPlan";
import FlightPlanRouteTable from "components/flightPlans/FlightPlanRouteTable.vue";
import {useMeta} from "quasar";
import {metaData} from "src/composables/meta";
const props = defineProps({
pilot: {
@@ -32,8 +34,12 @@ const props = defineProps({
const {flightPlan} = storeToRefs(useFlightPlansStore());
useAppStore().setPageTitle(flightPlan.value.name);
useMeta(() => metaData({
title: `Plán: ${flightPlan.value.name}`,
keywords: [flightPlan.value.name, "plán", "trasa", "navigace", "štítek", "mapa", flightPlan.value.aircraft?.callSign],
description: flightPlan.value.description,
}));
useAppStore().setBreadcrumbs([
...publicProfileBreadcrumbs(props.pilot),
{label: `Plán: ${flightPlan.value.name}`},