File tree 7 files changed +15
-26
lines changed
screens/smu/components/modal/BOSSTimetable
7 files changed +15
-26
lines changed Original file line number Diff line number Diff line change 1
- HOST_URL =
2
1
SMU_SCRAPER_URL =
3
2
SCHOOL_SEMESTERS_URL =
4
3
SMU_LIBRARIES_OCCUPANCY_URL =
5
- FIREBASE_API_KEY =
6
- FIREBASE_PROJECT_ID =
7
- FIREBASE_APP_ID =
8
- FIREBASE_MEASUREMENT_ID =
Original file line number Diff line number Diff line change @@ -34,9 +34,5 @@ module.exports = {
34
34
env : {
35
35
SMU_SCRAPER_URL : process . env . SMU_SCRAPER_URL ,
36
36
SCHOOL_SEMESTERS_URL : process . env . SCHOOL_SEMESTERS_URL ,
37
- FIREBASE_API_KEY : process . env . FIREBASE_API_KEY ,
38
- FIREBASE_PROJECT_ID : process . env . FIREBASE_PROJECT_ID ,
39
- FIREBASE_APP_ID : process . env . FIREBASE_APP_ID ,
40
- FIREBASE_MEASUREMENT_ID : process . env . FIREBASE_MEASUREMENT_ID ,
41
37
} ,
42
38
} ;
Original file line number Diff line number Diff line change 33
33
"dependencies" : {
34
34
"@floating-ui/react" : " ^0.25.3" ,
35
35
"@svgr/webpack" : " ^6.5.1" ,
36
+ "@vercel/analytics" : " ^1.1.1" ,
36
37
"axios" : " ^1.2.1" ,
37
38
"csv-parse" : " ^4.16.2" ,
38
39
"lodash" : " ^4.17.21" ,
Original file line number Diff line number Diff line change
1
+ import { Analytics } from '@vercel/analytics/react' ;
1
2
import { AppProps } from 'next/app' ;
2
3
import React from 'react' ;
3
4
@@ -13,6 +14,7 @@ const App: React.FC<AppProps> = function (props) {
13
14
< DataWrapper >
14
15
< GlobalStyles />
15
16
< Component { ...pageProps } />
17
+ < Analytics />
16
18
</ DataWrapper >
17
19
</ ThemeContext >
18
20
) ;
Original file line number Diff line number Diff line change @@ -244,12 +244,6 @@ const BOSSTimetable: React.FC = () => {
244
244
[ ]
245
245
) ;
246
246
247
- const handleICalTrack = React . useCallback ( ( ) => {
248
- // firebase
249
- // ?.analytics()
250
- // .logEvent('file_download', { description: 'BOSS Timetable Export' });
251
- } , [ ] ) ;
252
-
253
247
return (
254
248
< >
255
249
< ModalTemplate title = "Boss Timetable Export" >
@@ -289,7 +283,6 @@ const BOSSTimetable: React.FC = () => {
289
283
</ Wrapper >
290
284
{ csvContents !== null ? (
291
285
< CustomPrimaryBtn
292
- onClick = { handleICalTrack }
293
286
href = { hrefDownload }
294
287
download = "boss_timetable_export.ics"
295
288
role = "button"
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1600
1600
" @typescript-eslint/types" " 5.47.0"
1601
1601
eslint-visitor-keys "^3.3.0"
1602
1602
1603
+ " @vercel/analytics@^1.1.1 " :
1604
+ version "1.1.1"
1605
+ resolved "https://registry.yarnpkg.com/@vercel/analytics/-/analytics-1.1.1.tgz#2a712378a95014a548b4f9d2ae1ea0721433908d"
1606
+ integrity sha512-+NqgNmSabg3IFfxYhrWCfB/H+RCUOCR5ExRudNG2+pcRehq628DJB5e1u1xqwpLtn4pAYii4D98w7kofORAGQA==
1607
+ dependencies :
1608
+ server-only "^0.0.1"
1609
+
1603
1610
acorn-jsx@^5.3.2 :
1604
1611
version "5.3.2"
1605
1612
resolved "https://registry.yarnpkg.com/acorn-jsx/-/acorn-jsx-5.3.2.tgz#7ed5bb55908b3b2f1bc55c6af1653bada7f07937"
@@ -3772,6 +3779,11 @@ semver@^7.3.7:
3772
3779
dependencies :
3773
3780
lru-cache "^6.0.0"
3774
3781
3782
+ server-only@^0.0.1 :
3783
+ version "0.0.1"
3784
+ resolved "https://registry.yarnpkg.com/server-only/-/server-only-0.0.1.tgz#0f366bb6afb618c37c9255a314535dc412cd1c9e"
3785
+ integrity sha512-qepMx2JxAa5jjfzxG79yPPq+8BuFToHd1hm7kI+Z4zAq1ftQiP7HcxMhDDItrbtwVeLg/cY2JnKnrcFkmiswNA==
3786
+
3775
3787
shallowequal@^1.1.0 :
3776
3788
version "1.1.0"
3777
3789
resolved "https://registry.yarnpkg.com/shallowequal/-/shallowequal-1.1.0.tgz#188d521de95b9087404fd4dcb68b13df0ae4e7f8"
You can’t perform that action at this time.
0 commit comments