Skip to content

Commit

Permalink
2024 alumni summit
Browse files Browse the repository at this point in the history
  • Loading branch information
Dnouv committed Mar 21, 2024
1 parent 77c33ce commit 2346fb0
Show file tree
Hide file tree
Showing 33 changed files with 808 additions and 617 deletions.
Binary file added app/assets/gsoc_alumni_2024.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { SpeakerChatToolbar } from './SpeakerToolbar';
import { Card, Collapse } from 'react-bootstrap';
import { useEffect, useState } from 'react';
import dynamic from 'next/dynamic';
import { useMediaQuery } from '@rocket.chat/fuselage-hooks';
import { ssrVerifyAdmin } from '../../auth/AuthSuperProfileHelper';
import { unsignCook } from '../../../../lib/conferences/eventCall';
import Cookies from 'js-cookie';
Expand All @@ -17,7 +16,6 @@ const EventSpeakerStage = ({
open,
setOpen,
}) => {
const isSmallScreen = useMediaQuery('(max-width: 790px)');

const [isAdmin, setIsAdmin] = useState(false);

Expand Down
2 changes: 0 additions & 2 deletions app/components/conferences/dayOfEvent/mainstage/Mainstage.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,12 @@ import { DoEWrapper } from '../wrapperComponent';
import styles from '../../../../styles/event.module.css';
import dynamic from 'next/dynamic';
import { getIPInfo } from '../../../../lib/geoAPI';
import { useMediaQuery } from '@rocket.chat/fuselage-hooks';
import { EventHeader } from '../greenroom/EventHeader';

const asiaLink = process.env.NEXT_PUBLIC_SERVER_STREAM_LINK0;
const otherLink = process.env.NEXT_PUBLIC_SERVER_STREAM_LINK1;

export const EventMainstage = ({ eventdetails, open, setOpen }) => {
const isSmallScreen = useMediaQuery('(max-width: 790px)');
// const [open, setOpen] = useState(isSmallScreen);
const [streamLink, setStreamLink] = useState(asiaLink);
const [region, setRegion] = useState('Asia');
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { useMediaQueries, useMediaQuery } from '@rocket.chat/fuselage-hooks';
import { Col, Container, Image, Row, Stack } from 'react-bootstrap';
import styles from '../styles/index.module.css';
import { EventTicket } from './EventRegisterSection';
import { BsCalendar2Event, BsInfoCircle } from 'react-icons/bs';
import { GoLocation } from 'react-icons/go';
import EventStrip from './EventStrip';
import useMediaQuery from '../../useMediaQuery';

export const SmEventHeader = ({ event, error, customLink }) => {
const isSmallScreen = useMediaQuery('(max-width: 576px)');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,11 @@ export const EventTicket = ({ tktDetail, event, error, customLink }) => {
setOpen(!open);
};

const showMainstage = event?.data?.attributes.is_videoroom_enabled;
const showMainstage = event?.data?.attributes['is-videoroom-enabled'];
const eid = event?.data?.attributes.identifier;

console.log('showMainstage', showMainstage);

return (
<>
<EventStrip
Expand Down Expand Up @@ -169,7 +171,7 @@ const TopNav = ({
href={customLink || `/conferences/greenroom/${eid}`}
target="_blank"
>
Join (BBB)
Join
</Button>
)}{' '}
</Container>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ import {
import styles from '../styles/index.module.css';

import { MdEventSpeaker, SmEventSpeaker } from './EventSpeaker';
import { useMediaQuery } from '@rocket.chat/fuselage-hooks';
import { MdEventHeader, SmEventHeader } from './EventHeader';

import { BsYoutube } from 'react-icons/bs';
import useMediaQuery from '../../useMediaQuery';

const EventShow = ({ event, error, speaker, prsession, customLink }) => {
let urlHash = '';
Expand All @@ -36,7 +36,6 @@ const EventShow = ({ event, error, speaker, prsession, customLink }) => {

const isSmallScreen = useMediaQuery('(max-width: 576px)');

const isMdScreen = useMediaQuery('(min-width: 768px)');

return (
<>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ function EventStrip({
href={customLink || `/conferences/greenroom/${eid}`}
target="_blank"
>
Join (BBB)
Join
</Button>
)}
</Col>
Expand Down
24 changes: 24 additions & 0 deletions app/components/conferences/useMediaQuery.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import { useState, useEffect } from 'react';

function useMediaQuery(query) {
const [matches, setMatches] = useState(false);

useEffect(() => {
if (typeof window !== "undefined") {
const media = window.matchMedia(query);
if (media.matches !== matches) {
setMatches(media.matches);
}
const listener = () => {
setMatches(media.matches);
};
media.addEventListener('change', listener);
return () => media.removeEventListener('change', listener);
}
return;
}, [matches, query]);

return matches;
}

export default useMediaQuery;
5 changes: 0 additions & 5 deletions app/components/inappchat/helpers/emojify.js

This file was deleted.

6 changes: 0 additions & 6 deletions app/components/inappchat/helpers/emojisThatAnimate.js

This file was deleted.

3 changes: 0 additions & 3 deletions app/components/inappchat/helpers/index.js

This file was deleted.

5 changes: 0 additions & 5 deletions app/components/inappchat/helpers/sortMessagesByDate.js

This file was deleted.

181 changes: 0 additions & 181 deletions app/components/inappchat/inappchat.js

This file was deleted.

72 changes: 0 additions & 72 deletions app/components/inappchat/inappchattextinput.js

This file was deleted.

Loading

0 comments on commit 2346fb0

Please sign in to comment.