mirror of
https://github.com/System-End/site.git
synced 2026-04-19 22:05:11 +00:00
Merge branch 'main' into climate-directory
This commit is contained in:
commit
2988691ed1
17 changed files with 14 additions and 39 deletions
|
|
@ -16,7 +16,6 @@ const WorkshopCard = ({
|
|||
}) => (
|
||||
<Card
|
||||
href={`https://workshops.hackclub.com/${slug}`}
|
||||
passHref
|
||||
as="a"
|
||||
variant="interactive"
|
||||
target="_blank"
|
||||
|
|
|
|||
|
|
@ -109,7 +109,6 @@ function Dot() {
|
|||
}
|
||||
|
||||
export default function Events({ events }) {
|
||||
console.log(events.length)
|
||||
return (
|
||||
<Box mb={3}>
|
||||
<Grid
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ const SlackEvents = ({ sx, color, textColor, ...props }) => {
|
|||
`/api/channels/resolve/?id=${lastJsonMessage.channel}`
|
||||
)
|
||||
.then(r => r.json())
|
||||
.catch(err => console.log(err))
|
||||
.catch(err => console.error(err))
|
||||
|
||||
if (whitelistedChannels.has(name)) {
|
||||
//this check should happen before the web req, to save on net resources
|
||||
|
|
|
|||
|
|
@ -49,7 +49,6 @@ const useForm = (
|
|||
})
|
||||
.then(r => r.json())
|
||||
.then(r => {
|
||||
console.log('Form success!')
|
||||
setStatus('success')
|
||||
if (callback) callback(r)
|
||||
setTimeout(() => setStatus('default'), 3500)
|
||||
|
|
|
|||
|
|
@ -281,9 +281,7 @@ const nextConfig = {
|
|||
}
|
||||
}
|
||||
|
||||
const withPlugins = require('next-compose-plugins')
|
||||
|
||||
const withMDX = require('@next/mdx')({ extension: /\.mdx?$/ })
|
||||
const withTM = require('next-transpile-modules')(['animejs'])
|
||||
|
||||
module.exports = withPlugins([withTM, withMDX], nextConfig)
|
||||
module.exports = withTM(withMDX(nextConfig))
|
||||
|
|
|
|||
|
|
@ -40,7 +40,6 @@
|
|||
"js-confetti": "^0.11.0",
|
||||
"lodash": "^4.17.21",
|
||||
"next": "^12.3.1",
|
||||
"next-compose-plugins": "^2.2.1",
|
||||
"next-transpile-modules": "^10.0.0",
|
||||
"react": "^17.0.2",
|
||||
"react-before-after-slider-component": "^1.1.6",
|
||||
|
|
|
|||
|
|
@ -12,7 +12,6 @@ export default function Geohot() {
|
|||
if (typeof window !== 'undefined') {
|
||||
setTimeout(function () {
|
||||
window.location.reload()
|
||||
console.log('hi')
|
||||
}, milliseconds)
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -12,7 +12,6 @@ export default function Sal() {
|
|||
if (typeof window !== 'undefined') {
|
||||
setTimeout(function () {
|
||||
window.location.reload()
|
||||
console.log('hi')
|
||||
}, milliseconds)
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -53,10 +53,9 @@ export default async function handler(req, res) {
|
|||
'Slack Username': data.slackUsername
|
||||
})
|
||||
res.writeHead(302, { Location: '/bank/apply/success' }).end()
|
||||
console.log(r)
|
||||
})
|
||||
.catch(error => {
|
||||
console.log(error)
|
||||
console.error(error)
|
||||
res.writeHead(500, {
|
||||
Location: `/bank/apply?step=3&airtable-error=${error}`
|
||||
})
|
||||
|
|
|
|||
|
|
@ -27,8 +27,6 @@ export default async function handler(req, res) {
|
|||
})
|
||||
.then(r => r.json())
|
||||
.then(async r => {
|
||||
console.log(data)
|
||||
|
||||
await applicationsTable.create({
|
||||
'Email Address': data.userEmail,
|
||||
'Event Name': `${data.eventName} (${data.teamType} ${data.teamNumber})`,
|
||||
|
|
@ -40,7 +38,7 @@ export default async function handler(req, res) {
|
|||
.json({ message: 'Success! Check your email for next steps.' })
|
||||
})
|
||||
.catch(error => {
|
||||
console.log(error)
|
||||
console.error(error)
|
||||
res.json({ status: 'Something went wrong', error })
|
||||
})
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -10,13 +10,13 @@ export default async function handler(req, res) {
|
|||
)
|
||||
|
||||
if (!channelDataReq.ok) {
|
||||
console.log(await channelDataReq.text())
|
||||
console.warn(await channelDataReq.text())
|
||||
return res.status(503).end()
|
||||
}
|
||||
|
||||
const channelData = await channelDataReq.json()
|
||||
if (!channelData.ok) {
|
||||
console.log(channelData)
|
||||
console.warn(channelData)
|
||||
return res.status(400).end()
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -7,7 +7,6 @@ const joinTable = new AirtablePlus({
|
|||
})
|
||||
|
||||
async function postData(url = '', data = {}, headers = {}) {
|
||||
console.log(data)
|
||||
const response = await fetch(url, {
|
||||
method: 'POST',
|
||||
mode: 'cors',
|
||||
|
|
@ -84,7 +83,6 @@ export default async function handler(req, res) {
|
|||
},
|
||||
{ authorization: `Bearer ${process.env.TORIEL_KEY}` }
|
||||
)
|
||||
console.log(result)
|
||||
res.json({ status: 'success', message: 'You’ve been invited to Slack!' })
|
||||
} else {
|
||||
res.json({
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ export default async function handler(req, res) {
|
|||
filterByFormula: `AND({Email} = '${data.email}', {Is Valid?} = '1', {Club} = '')`
|
||||
})
|
||||
)[0]
|
||||
console.log('address', address)
|
||||
|
||||
if (!address) {
|
||||
address = await addressesTable.create({
|
||||
'Street (First Line)': data.addressFirst,
|
||||
|
|
@ -43,8 +43,6 @@ export default async function handler(req, res) {
|
|||
Country: data.country,
|
||||
Person: [personRecord.id]
|
||||
})
|
||||
|
||||
console.log('created address:', address)
|
||||
}
|
||||
|
||||
if (
|
||||
|
|
@ -80,10 +78,9 @@ export default async function handler(req, res) {
|
|||
})
|
||||
.then(r => {
|
||||
res.json({ status: 'success' })
|
||||
console.log(r.statusText)
|
||||
})
|
||||
.catch(error => {
|
||||
console.log(error)
|
||||
console.error(error)
|
||||
res.json({ status: 'error', error })
|
||||
})
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ export default async function handler(req, res) {
|
|||
})
|
||||
.then(res => res.status(200).json({ success: true }))
|
||||
.catch(error => {
|
||||
console.log(error)
|
||||
console.error(error)
|
||||
res.json({ status: 'Something went wrong', error })
|
||||
})
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -21,7 +21,6 @@ const valiadateAddress = async step => {
|
|||
// Get the raw personal address input
|
||||
const userAddress = sessionStorage.getItem('bank-signup-userAddress')
|
||||
|
||||
console.log(userAddress)
|
||||
if (!userAddress) return
|
||||
|
||||
const result = await geocode(userAddress)
|
||||
|
|
@ -62,7 +61,7 @@ export default function Apply() {
|
|||
]
|
||||
|
||||
useEffect(() => {
|
||||
console.log(`Form error: ${formError}`)
|
||||
console.error(`Form error: ${formError}`)
|
||||
if (!router.isReady) return
|
||||
setStep(parseInt(router.query.step))
|
||||
|
||||
|
|
|
|||
|
|
@ -115,10 +115,11 @@ function Page({
|
|||
]
|
||||
|
||||
// janky right now and does not show last image
|
||||
console.log(
|
||||
`White sheets of paper\nWaiting to be printed on\nA blank console waits`
|
||||
)
|
||||
|
||||
useEffect(() => {
|
||||
console.log(
|
||||
`White sheets of paper\nWaiting to be printed on\nA blank console waits`
|
||||
)
|
||||
if (count === images.length - 1) {
|
||||
setCount(0)
|
||||
}
|
||||
|
|
@ -152,11 +153,9 @@ function Page({
|
|||
reveal={reveal}
|
||||
onMouseEnter={() => {
|
||||
setHover(true)
|
||||
console.log('hover:', hover)
|
||||
}}
|
||||
onMouseOut={() => {
|
||||
setHover(false)
|
||||
console.log('hover:', hover)
|
||||
}}
|
||||
/>
|
||||
<Konami action={easterEgg}>
|
||||
|
|
@ -361,7 +360,6 @@ function Page({
|
|||
}}
|
||||
onClick={() => {
|
||||
setCount(count + 1)
|
||||
console.log(count)
|
||||
}}
|
||||
>
|
||||
<Box
|
||||
|
|
@ -1136,7 +1134,6 @@ export async function getStaticProps() {
|
|||
// Sprig: get newest games
|
||||
const { getGames } = require('./api/games')
|
||||
let game = await getGames()
|
||||
console.log(game)
|
||||
|
||||
let gameTitle = []
|
||||
|
||||
|
|
|
|||
|
|
@ -3474,11 +3474,6 @@ natural-compare@^1.4.0:
|
|||
resolved "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz"
|
||||
integrity sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc=
|
||||
|
||||
next-compose-plugins@^2.2.1:
|
||||
version "2.2.1"
|
||||
resolved "https://registry.npmjs.org/next-compose-plugins/-/next-compose-plugins-2.2.1.tgz"
|
||||
integrity sha512-OjJ+fV15FXO2uQXQagLD4C0abYErBjyjE0I0FHpOEIB8upw0hg1ldFP6cqHTJBH1cZqy96OeR3u1dJ+Ez2D4Bg==
|
||||
|
||||
next-transpile-modules@^10.0.0:
|
||||
version "10.0.0"
|
||||
resolved "https://registry.npmjs.org/next-transpile-modules/-/next-transpile-modules-10.0.0.tgz"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue