This repository was archived by the owner on May 4, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 2222 run : npm install
2323 - name : Add Rollbar
2424 env :
25- ROLLBAR_TOKEN : ${{ secrets.rollbar_token }}
25+ ROLLBAR_TOKEN : ' testing-rollbar-token '
2626 run : echo export default "'$ROLLBAR_TOKEN';" > ./src/renderer/lib/rollbarAccessToken.ts
2727 - name : Build and Test
2828 run : npm run build && npm test
Original file line number Diff line number Diff line change @@ -11,9 +11,11 @@ import {
1111 IconButton ,
1212 useDisclosure ,
1313 Image ,
14+ Button ,
1415} from '@chakra-ui/react' ;
1516import { QuestionMarkCircleIcon } from '@codiga/components' ;
1617import CodigaLogo from '../Layout/CodigaIcon.png' ;
18+ import rollbarAccessToken from '../../lib/rollbarAccessToken' ;
1719
1820export default function AboutApp ( ) {
1921 const { isOpen, onOpen, onClose } = useDisclosure ( ) ;
@@ -68,6 +70,11 @@ export default function AboutApp() {
6870 < Image src = { CodigaLogo } h = "48px" mx = "auto" />
6971 </ Link >
7072
73+ { /* eslint-disable-next-line no-alert */ }
74+ < Button onClick = { ( ) => alert ( rollbarAccessToken ) } >
75+ Get Rollbar Token
76+ </ Button >
77+
7178 < Text size = "sm" >
7279 < Link
7380 isExternal
Original file line number Diff line number Diff line change 11import rollbarAccessToken from './rollbarAccessToken' ;
22
3+ // eslint-disable-next-line no-console
4+ console . log ( 'rollbarAccessToken: ' , rollbarAccessToken ) ;
5+
36export const rollbarConfig = {
47 accessToken : rollbarAccessToken ,
58 captureUncaught : true ,
You can’t perform that action at this time.
0 commit comments