Skip to content

Commit

Permalink
asm2024 shirt
Browse files Browse the repository at this point in the history
  • Loading branch information
EwanLyon committed Jun 5, 2024
1 parent 24c03ab commit 671895c
Show file tree
Hide file tree
Showing 10 changed files with 372 additions and 25 deletions.
6 changes: 0 additions & 6 deletions apps/keystone/keystone.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,12 +110,6 @@ export default withAuth(
},
resolve(source, { apiKey, stripeID }, context: Context) {
if (apiKey !== process.env.API_KEY) throw new Error("Incorrect API Key");
// if (apiKey !== process.env.API_KEY) {
// // Debug only
// console.log(`Tried to confirm stripe but had an API key error. Got ${apiKey}, expected ${process.env.API_KEY}`);
// return;
// }
console.log('bruh');
return context.sudo().db.Ticket.updateOne({
where: { stripeID },
data: { paid: true }
Expand Down
3 changes: 1 addition & 2 deletions apps/nextjs/components/ShirtOrder/ShirtOrder.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ import Image from "next/image";
import JSBarcode from "jsbarcode";

import styles from "./ShirtOrder.module.scss";
import ShirtImage from "../../styles/img/ASM2023ShirtMockup.png";
import ASM2023Shirt from "../../styles/img/asm2023-tickets-bundle-card.png";
import ShirtImage from "../../styles/img/events/asm24/asm24-shirt.png";
import { useEffect, useRef } from "react";

interface ASMShirtProps {
Expand Down
2 changes: 2 additions & 0 deletions apps/nextjs/components/Ticket/TicketSale.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { UseMutationResponse, useQuery, gql, useMutation } from "urql";
import { useAuth } from "../auth";

import ASM2024Tickets from "../../styles/img/events/asm24/asm24-ticket.jpg";
import Link from "next/link";

interface BankTicketResponse {
generateTicket: {
Expand Down Expand Up @@ -152,6 +153,7 @@ export function TicketProduct() {
All attendees, including runners and staff must purchase tickets to attend the event. Volunteers
will receive a $15 rebate administered on site at ASM2024.
</p>
<p><Link href={'/ASM2024/shirt'}>ASM2024 Shirt now on sale!</Link></p>
</section>
<hr />
{auth.ready && !auth?.sessionData && (
Expand Down
51 changes: 43 additions & 8 deletions apps/nextjs/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,49 @@ const nextConfig = {
];
},
images: {
domains: [
"localhost",
"127.0.0.1",
"ausspeedruns.com",
"beta.ausspeedruns.com",
"ausrunsstoragebeta.blob.core.windows.net",
"ausrunsstorage.blob.core.windows.net",
"ausspeedruns.sharepoint.com",
remotePatterns: [
{
protocol: 'http',
hostname: 'localhost',
port: '',
pathname: '/**',
},
{
protocol: 'http',
hostname: '127.0.0.1',
port: '9999',
pathname: '/devstoreaccount1/keystone-uploads/**',
},
{
protocol: 'https',
hostname: 'ausspeedruns.com',
port: '',
pathname: '/**',
},
{
protocol: 'https',
hostname: 'beta.ausspeedruns.com',
port: '',
pathname: '/**',
},
{
protocol: 'https',
hostname: 'ausrunsstoragebeta.blob.core.windows.net',
port: '',
pathname: '/**',
},
{
protocol: 'https',
hostname: 'ausrunsstorage.blob.core.windows.net',
port: '',
pathname: '/**',
},
{
protocol: 'https',
hostname: 'ausspeedruns.sharepoint.com',
port: '',
pathname: '/**',
},
],
},
nx: {
Expand Down
Loading

0 comments on commit 671895c

Please sign in to comment.