Skip to content

Commit 799e70b

Browse files
authored
Merge pull request #35 from CinCoders/develop
Version 1.0.0
2 parents 0d6b562 + 9eb510d commit 799e70b

7 files changed

Lines changed: 150 additions & 54 deletions

File tree

.env.example

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
REACT_APP_SHEET_ID=<your_googledrive_spreadsheet_id>
2-
REACT_APP_SHEET_NAME=<the_deadline_sheet_name_in_the_spreadsheet>
2+
REACT_APP_SHEET_NAME=<the_deadline_sheet_name_in_the_spreadsheet>
3+
REACT_APP_GOOGLE_ANALYTICS_ID=<your_google_analytics_id>

.github/workflows/build-deploy.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ jobs:
3030
env:
3131
REACT_APP_SHEET_ID: ${{ vars.REACT_APP_SHEET_ID }}
3232
REACT_APP_SHEET_NAME: ${{ vars.REACT_APP_SHEET_NAME }}
33+
REACT_APP_GOOGLE_ANALYTICS_ID: ${{ vars.REACT_APP_GOOGLE_ANALYTICS_ID }}
3334

3435
- name: Upload Artifact
3536
uses: actions/upload-pages-artifact@v1

package-lock.json

Lines changed: 75 additions & 49 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cs-deadlines",
3-
"version": "0.3.0",
3+
"version": "1.0.0",
44
"description": "Deadlines from the Top Computer Science Conferences!",
55
"license": "MIT",
66
"private": true,
@@ -15,12 +15,12 @@
1515
},
1616
"scripts": {
1717
"start": "react-scripts start",
18-
"build": "react-scripts build",
18+
"build": "GENERATE_SOURCEMAP=false react-scripts build",
1919
"test": "react-scripts test",
2020
"eject": "react-scripts eject"
2121
},
2222
"dependencies": {
23-
"@cincoders/cinnamon": "^1.2.0",
23+
"@cincoders/cinnamon": "^1.3.0",
2424
"@emotion/react": "^11.11.1",
2525
"@emotion/styled": "^11.11.0",
2626
"@mui/icons-material": "^5.14.1",
@@ -30,8 +30,10 @@
3030
"date-fns-tz": "^2.0.0",
3131
"papaparse": "^5.4.1",
3232
"react": "^18.1.0",
33+
"react-cookie-consent": "^9.0.0",
3334
"react-countdown": "^2.3.5",
3435
"react-dom": "^18.1.0",
36+
"react-ga4": "^2.1.0",
3537
"react-router-dom": "^6.14.2",
3638
"react-scripts": "5.0.1",
3739
"web-vitals": "^2.1.4"

src/App.tsx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,18 @@
11
import { CssBaseline } from '@mui/material';
2+
import ReactGA from 'react-ga4';
23
import RoutesApp from './routes';
34

45
function App() {
6+
ReactGA.gtag('consent', 'default', {
7+
ad_storage: 'denied',
8+
ad_user_data: 'denied',
9+
ad_personalization: 'denied',
10+
analytics_storage: 'denied',
11+
});
12+
if (process.env.REACT_APP_GOOGLE_ANALYTICS_ID) {
13+
ReactGA.initialize(process.env.REACT_APP_GOOGLE_ANALYTICS_ID);
14+
}
15+
516
return (
617
<>
718
<CssBaseline />

src/components/ConferencePage/index.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { useEffect, useState } from 'react';
22
import { Page } from '@cincoders/cinnamon';
33
import logoCin from '../../assets/cin-logo.svg';
44
import logoCinSmall from '../../assets/cin-logo-small.svg';
5+
import { CookieConsent } from '../CookieConsent';
56

67
interface PageProps {
78
children: JSX.Element | JSX.Element[];
@@ -38,7 +39,8 @@ export default function ConferencePage({ children }: PageProps) {
3839
haveToast={false}
3940
createNavbarContext={false}
4041
>
41-
{children}
42+
<div>{children}</div>
43+
<CookieConsent />
4244
</Page>
4345
);
4446
}

0 commit comments

Comments
 (0)