Skip to content

Commit

Permalink
Merge pull request #35 from CinCoders/develop
Browse files Browse the repository at this point in the history
Version 1.0.0
  • Loading branch information
dcruzb authored Aug 19, 2024
2 parents 0d6b562 + 9eb510d commit 799e70b
Show file tree
Hide file tree
Showing 7 changed files with 150 additions and 54 deletions.
3 changes: 2 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
REACT_APP_SHEET_ID=<your_googledrive_spreadsheet_id>
REACT_APP_SHEET_NAME=<the_deadline_sheet_name_in_the_spreadsheet>
REACT_APP_SHEET_NAME=<the_deadline_sheet_name_in_the_spreadsheet>
REACT_APP_GOOGLE_ANALYTICS_ID=<your_google_analytics_id>
1 change: 1 addition & 0 deletions .github/workflows/build-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ jobs:
env:
REACT_APP_SHEET_ID: ${{ vars.REACT_APP_SHEET_ID }}
REACT_APP_SHEET_NAME: ${{ vars.REACT_APP_SHEET_NAME }}
REACT_APP_GOOGLE_ANALYTICS_ID: ${{ vars.REACT_APP_GOOGLE_ANALYTICS_ID }}

- name: Upload Artifact
uses: actions/upload-pages-artifact@v1
Expand Down
124 changes: 75 additions & 49 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cs-deadlines",
"version": "0.3.0",
"version": "1.0.0",
"description": "Deadlines from the Top Computer Science Conferences!",
"license": "MIT",
"private": true,
Expand All @@ -15,12 +15,12 @@
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"build": "GENERATE_SOURCEMAP=false react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
"dependencies": {
"@cincoders/cinnamon": "^1.2.0",
"@cincoders/cinnamon": "^1.3.0",
"@emotion/react": "^11.11.1",
"@emotion/styled": "^11.11.0",
"@mui/icons-material": "^5.14.1",
Expand All @@ -30,8 +30,10 @@
"date-fns-tz": "^2.0.0",
"papaparse": "^5.4.1",
"react": "^18.1.0",
"react-cookie-consent": "^9.0.0",
"react-countdown": "^2.3.5",
"react-dom": "^18.1.0",
"react-ga4": "^2.1.0",
"react-router-dom": "^6.14.2",
"react-scripts": "5.0.1",
"web-vitals": "^2.1.4"
Expand Down
11 changes: 11 additions & 0 deletions src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,18 @@
import { CssBaseline } from '@mui/material';
import ReactGA from 'react-ga4';
import RoutesApp from './routes';

function App() {
ReactGA.gtag('consent', 'default', {
ad_storage: 'denied',
ad_user_data: 'denied',
ad_personalization: 'denied',
analytics_storage: 'denied',
});
if (process.env.REACT_APP_GOOGLE_ANALYTICS_ID) {
ReactGA.initialize(process.env.REACT_APP_GOOGLE_ANALYTICS_ID);
}

return (
<>
<CssBaseline />
Expand Down
4 changes: 3 additions & 1 deletion src/components/ConferencePage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { useEffect, useState } from 'react';
import { Page } from '@cincoders/cinnamon';
import logoCin from '../../assets/cin-logo.svg';
import logoCinSmall from '../../assets/cin-logo-small.svg';
import { CookieConsent } from '../CookieConsent';

interface PageProps {
children: JSX.Element | JSX.Element[];
Expand Down Expand Up @@ -38,7 +39,8 @@ export default function ConferencePage({ children }: PageProps) {
haveToast={false}
createNavbarContext={false}
>
{children}
<div>{children}</div>
<CookieConsent />
</Page>
);
}
Loading

0 comments on commit 799e70b

Please sign in to comment.