File tree Expand file tree Collapse file tree 4 files changed +2
-51
lines changed
Expand file tree Collapse file tree 4 files changed +2
-51
lines changed Original file line number Diff line number Diff line change 11<script setup>
22/** Vendor */
3- import * as Sentry from " @sentry/nuxt" ;
43import { DateTime } from " luxon"
54
65/** UI */
@@ -344,13 +343,6 @@ const handleViewRawTransactions = () => {
344343 cacheStore .current ._target = " transactions"
345344 modalsStore .open (" rawData" )
346345}
347-
348- function name123 () {
349- Sentry .captureException (new Error (" Test Sentry direct capture" ));
350- }
351- function triggerClientError () {
352- throw new Error (" Nuxt Button Error" )
353- }
354346< / script>
355347
356348< template>
@@ -365,14 +357,12 @@ function triggerClientError() {
365357 < / Flex>
366358
367359 < Flex align= " center" gap= " 8" >
368- <!-- < Button @click= " router.push(`/block/${height - 1}`)" type= " secondary" size= " mini" : disabled= " height === 0" > -->
369- < Button @click= " name123" type= " secondary" size= " mini" : disabled= " height === 0" >
360+ < Button @click= " router.push(`/block/${height - 1}`)" type= " secondary" size= " mini" : disabled= " height === 0" >
370361 < Icon name= " arrow-redo-right" size= " 16" color= " secondary" : style= " { transform: 'scaleX(-1)' }" / >
371362 < Text : class = " $style.block_nav__txt" > Prev< / Text >
372363 < / Button>
373364
374- <!-- < Button @click= " router.push(`/block/${height + 1}`)" type= " secondary" size= " mini" > -->
375- < Button @click= " triggerClientError" type= " secondary" size= " mini" >
365+ < Button @click= " router.push(`/block/${height + 1}`)" type= " secondary" size= " mini" >
376366 < Text : class = " $style.block_nav__txt" > Next< / Text >
377367 < Icon name= " arrow-redo-right" size= " 16" color= " secondary" / >
378368 < / Button>
Original file line number Diff line number Diff line change 1- // import * as Sentry from "@sentry/nuxt";
2-
3- // Sentry.init({
4- // dsn: "https://examplePublicKey@o0.ingest.sentry.io/0",
5-
6- // sendDefaultPii: true,
7-
8- // integrations: [
9- // Sentry.replayIntegration(),
10- // Sentry.feedbackIntegration({
11- // colorScheme: "system",
12- // }),
13- // ],
14-
15- // tracesSampleRate: 1.0,
16-
17- // replaysSessionSampleRate: 0.1,
18- // replaysOnErrorSampleRate: 1.0,
19- // enableLogs: true,
20- // });
21-
221import * as Sentry from "@sentry/nuxt" ;
232
243const config = useRuntimeConfig ( ) ;
254const sentryConfig = ( config . public . sentry as { dsn : string } ) ;
265
27- console . log ( "[SENTRY DSN CLIENT]" , sentryConfig . dsn ) ;
28-
296Sentry . init ( {
307 dsn : sentryConfig . dsn ,
318
Original file line number Diff line number Diff line change 1- // import * as Sentry from "@sentry/nuxt";
2-
3- // Sentry.init({
4- // dsn: "https://examplePublicKey@o0.ingest.sentry.io/0",
5-
6- // tracesSampleRate: 1.0,
7-
8- // enableLogs: true,
9- // });
10-
111import * as Sentry from "@sentry/nuxt" ;
122
133const config = useRuntimeConfig ( ) ;
144const sentryConfig = config . public . sentry as { dsn : string } ;
155
16- console . log ( "[SENTRY DSN SERVER]" , sentryConfig . dsn ) ;
17-
186Sentry . init ( {
197 dsn : sentryConfig . dsn ,
208 tracesSampleRate : 1.0 ,
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments