From 664fe1d8792f3f971bbcce1531f6ac9c71588372 Mon Sep 17 00:00:00 2001 From: Andrew <74398819+AndrewDTR@users.noreply.github.com> Date: Mon, 28 Oct 2024 16:17:34 -0500 Subject: [PATCH] add discord redirect --- .astro/astro/content.d.ts | 341 ++++++++++++++++++++ .astro/collections/coordinators.schema.json | 51 +++ .astro/settings.json | 2 +- .astro/types.d.ts | 322 +----------------- src/pages/discord.astro | 41 +++ 5 files changed, 436 insertions(+), 321 deletions(-) create mode 100644 .astro/astro/content.d.ts create mode 100644 .astro/collections/coordinators.schema.json create mode 100644 src/pages/discord.astro diff --git a/.astro/astro/content.d.ts b/.astro/astro/content.d.ts new file mode 100644 index 0000000..91dc5d4 --- /dev/null +++ b/.astro/astro/content.d.ts @@ -0,0 +1,341 @@ +declare module 'astro:content' { + interface RenderResult { + Content: import('astro/runtime/server/index.js').AstroComponentFactory; + headings: import('astro').MarkdownHeading[]; + remarkPluginFrontmatter: Record; + } + interface Render { + '.md': Promise; + } + + export interface RenderedContent { + html: string; + metadata?: { + imagePaths: Array; + [key: string]: unknown; + }; + } +} + +declare module 'astro:content' { + type Flatten = T extends { [K: string]: infer U } ? U : never; + + export type CollectionKey = keyof AnyEntryMap; + export type CollectionEntry = Flatten; + + export type ContentCollectionKey = keyof ContentEntryMap; + export type DataCollectionKey = keyof DataEntryMap; + + type AllValuesOf = T extends any ? T[keyof T] : never; + type ValidContentEntrySlug = AllValuesOf< + ContentEntryMap[C] + >['slug']; + + /** @deprecated Use `getEntry` instead. */ + export function getEntryBySlug< + C extends keyof ContentEntryMap, + E extends ValidContentEntrySlug | (string & {}), + >( + collection: C, + // Note that this has to accept a regular string too, for SSR + entrySlug: E, + ): E extends ValidContentEntrySlug + ? Promise> + : Promise | undefined>; + + /** @deprecated Use `getEntry` instead. */ + export function getDataEntryById( + collection: C, + entryId: E, + ): Promise>; + + export function getCollection>( + collection: C, + filter?: (entry: CollectionEntry) => entry is E, + ): Promise; + export function getCollection( + collection: C, + filter?: (entry: CollectionEntry) => unknown, + ): Promise[]>; + + export function getEntry< + C extends keyof ContentEntryMap, + E extends ValidContentEntrySlug | (string & {}), + >(entry: { + collection: C; + slug: E; + }): E extends ValidContentEntrySlug + ? Promise> + : Promise | undefined>; + export function getEntry< + C extends keyof DataEntryMap, + E extends keyof DataEntryMap[C] | (string & {}), + >(entry: { + collection: C; + id: E; + }): E extends keyof DataEntryMap[C] + ? Promise + : Promise | undefined>; + export function getEntry< + C extends keyof ContentEntryMap, + E extends ValidContentEntrySlug | (string & {}), + >( + collection: C, + slug: E, + ): E extends ValidContentEntrySlug + ? Promise> + : Promise | undefined>; + export function getEntry< + C extends keyof DataEntryMap, + E extends keyof DataEntryMap[C] | (string & {}), + >( + collection: C, + id: E, + ): E extends keyof DataEntryMap[C] + ? Promise + : Promise | undefined>; + + /** Resolve an array of entry references from the same collection */ + export function getEntries( + entries: { + collection: C; + slug: ValidContentEntrySlug; + }[], + ): Promise[]>; + export function getEntries( + entries: { + collection: C; + id: keyof DataEntryMap[C]; + }[], + ): Promise[]>; + + export function render( + entry: AnyEntryMap[C][string], + ): Promise; + + export function reference( + collection: C, + ): import('astro/zod').ZodEffects< + import('astro/zod').ZodString, + C extends keyof ContentEntryMap + ? { + collection: C; + slug: ValidContentEntrySlug; + } + : { + collection: C; + id: keyof DataEntryMap[C]; + } + >; + // Allow generic `string` to avoid excessive type errors in the config + // if `dev` is not running to update as you edit. + // Invalid collection names will be caught at build time. + export function reference( + collection: C, + ): import('astro/zod').ZodEffects; + + type ReturnTypeOrOriginal = T extends (...args: any[]) => infer R ? R : T; + type InferEntrySchema = import('astro/zod').infer< + ReturnTypeOrOriginal['schema']> + >; + + type ContentEntryMap = { + "blog": { +"a-cautionary-tale-of-amazon-web-service-classes/index.md": { + id: "a-cautionary-tale-of-amazon-web-service-classes/index.md"; + slug: "a-cautionary-tale-of-amazon-web-service-classes"; + body: string; + collection: "blog"; + data: InferEntrySchema<"blog"> +} & { render(): Render[".md"] }; +"artificial-consciousness-and-phenomenology/index.md": { + id: "artificial-consciousness-and-phenomenology/index.md"; + slug: "artificial-consciousness-and-phenomenology"; + body: string; + collection: "blog"; + data: InferEntrySchema<"blog"> +} & { render(): Render[".md"] }; +"exploiting-github-actions/index.md": { + id: "exploiting-github-actions/index.md"; + slug: "exploiting-github-actions"; + body: string; + collection: "blog"; + data: InferEntrySchema<"blog"> +} & { render(): Render[".md"] }; +"game-design-and-education/index.md": { + id: "game-design-and-education/index.md"; + slug: "game-design-and-education"; + body: string; + collection: "blog"; + data: InferEntrySchema<"blog"> +} & { render(): Render[".md"] }; +"incorrect-reification/index.md": { + id: "incorrect-reification/index.md"; + slug: "incorrect-reification"; + body: string; + collection: "blog"; + data: InferEntrySchema<"blog"> +} & { render(): Render[".md"] }; +"learning-to-code-with-projects/index.md": { + id: "learning-to-code-with-projects/index.md"; + slug: "learning-to-code-with-projects"; + body: string; + collection: "blog"; + data: InferEntrySchema<"blog"> +} & { render(): Render[".md"] }; +"swe-job-primer.md": { + id: "swe-job-primer.md"; + slug: "swe-job-primer"; + body: string; + collection: "blog"; + data: InferEntrySchema<"blog"> +} & { render(): Render[".md"] }; +"using-gpt3-to-write-a-blog-post/index.md": { + id: "using-gpt3-to-write-a-blog-post/index.md"; + slug: "using-gpt3-to-write-a-blog-post"; + body: string; + collection: "blog"; + data: InferEntrySchema<"blog"> +} & { render(): Render[".md"] }; +"why-i-use-firefox/index.md": { + id: "why-i-use-firefox/index.md"; + slug: "why-i-use-firefox"; + body: string; + collection: "blog"; + data: InferEntrySchema<"blog"> +} & { render(): Render[".md"] }; +}; +"events": { +"lightning-talks-fall-2024.md": { + id: "lightning-talks-fall-2024.md"; + slug: "lightning-talks-fall-2024"; + body: string; + collection: "events"; + data: InferEntrySchema<"events"> +} & { render(): Render[".md"] }; +"madhacks-fall-2024.md": { + id: "madhacks-fall-2024.md"; + slug: "madhacks-fall-2024"; + body: string; + collection: "events"; + data: InferEntrySchema<"events"> +} & { render(): Render[".md"] }; +}; + + }; + + type DataEntryMap = { + "coordinators": { +"ahmet-ahunbay": { + id: "ahmet-ahunbay"; + collection: "coordinators"; + data: InferEntrySchema<"coordinators"> +}; +"anna-sun": { + id: "anna-sun"; + collection: "coordinators"; + data: InferEntrySchema<"coordinators"> +}; +"ben-lash": { + id: "ben-lash"; + collection: "coordinators"; + data: InferEntrySchema<"coordinators"> +}; +"chris-gottwaldt": { + id: "chris-gottwaldt"; + collection: "coordinators"; + data: InferEntrySchema<"coordinators"> +}; +"david-teather": { + id: "david-teather"; + collection: "coordinators"; + data: InferEntrySchema<"coordinators"> +}; +"emily-yao": { + id: "emily-yao"; + collection: "coordinators"; + data: InferEntrySchema<"coordinators"> +}; +"grace-steinmetz": { + id: "grace-steinmetz"; + collection: "coordinators"; + data: InferEntrySchema<"coordinators"> +}; +"ishan-joshi": { + id: "ishan-joshi"; + collection: "coordinators"; + data: InferEntrySchema<"coordinators"> +}; +"jiamu-chai": { + id: "jiamu-chai"; + collection: "coordinators"; + data: InferEntrySchema<"coordinators"> +}; +"michael-berkey": { + id: "michael-berkey"; + collection: "coordinators"; + data: InferEntrySchema<"coordinators"> +}; +"michael-gira": { + id: "michael-gira"; + collection: "coordinators"; + data: InferEntrySchema<"coordinators"> +}; +"michael-noguera": { + id: "michael-noguera"; + collection: "coordinators"; + data: InferEntrySchema<"coordinators"> +}; +"mihir-achyuta": { + id: "mihir-achyuta"; + collection: "coordinators"; + data: InferEntrySchema<"coordinators"> +}; +"nick-winans": { + id: "nick-winans"; + collection: "coordinators"; + data: InferEntrySchema<"coordinators"> +}; +"nico-salm": { + id: "nico-salm"; + collection: "coordinators"; + data: InferEntrySchema<"coordinators"> +}; +"pranav-dronavalli": { + id: "pranav-dronavalli"; + collection: "coordinators"; + data: InferEntrySchema<"coordinators"> +}; +"rahul-rao": { + id: "rahul-rao"; + collection: "coordinators"; + data: InferEntrySchema<"coordinators"> +}; +"rudy-banerjee": { + id: "rudy-banerjee"; + collection: "coordinators"; + data: InferEntrySchema<"coordinators"> +}; +"sam-baumohl": { + id: "sam-baumohl"; + collection: "coordinators"; + data: InferEntrySchema<"coordinators"> +}; +}; +"docs": Record; +"resources": Record; + + }; + + type AnyEntryMap = ContentEntryMap & DataEntryMap; + + export type ContentConfig = typeof import("../../src/content/config.js"); +} diff --git a/.astro/collections/coordinators.schema.json b/.astro/collections/coordinators.schema.json new file mode 100644 index 0000000..1b80aaa --- /dev/null +++ b/.astro/collections/coordinators.schema.json @@ -0,0 +1,51 @@ +{ + "$ref": "#/definitions/coordinators", + "definitions": { + "coordinators": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "isActive": { + "type": "boolean" + }, + "grade": { + "type": "string" + }, + "image": { + "type": "string" + }, + "hover_image": { + "type": "string" + }, + "study": { + "type": "string" + }, + "personalLink": { + "type": "string" + }, + "github": { + "type": "string" + }, + "linkedIn": { + "type": "string" + }, + "bio": { + "type": "string" + }, + "$schema": { + "type": "string" + } + }, + "required": [ + "name", + "isActive", + "grade", + "image" + ], + "additionalProperties": false + } + }, + "$schema": "http://json-schema.org/draft-07/schema#" +} \ No newline at end of file diff --git a/.astro/settings.json b/.astro/settings.json index b647289..5de328d 100644 --- a/.astro/settings.json +++ b/.astro/settings.json @@ -1,5 +1,5 @@ { "_variables": { - "lastUpdateCheck": 1728676416692 + "lastUpdateCheck": 1730150118275 } } \ No newline at end of file diff --git a/.astro/types.d.ts b/.astro/types.d.ts index 5061376..9a2a78c 100644 --- a/.astro/types.d.ts +++ b/.astro/types.d.ts @@ -1,320 +1,2 @@ -declare module 'astro:content' { - interface Render { - '.md': Promise<{ - Content: import('astro').MarkdownInstance<{}>['Content']; - headings: import('astro').MarkdownHeading[]; - remarkPluginFrontmatter: Record; - }>; - } -} - -declare module 'astro:content' { - type Flatten = T extends { [K: string]: infer U } ? U : never; - - export type CollectionKey = keyof AnyEntryMap; - export type CollectionEntry = Flatten; - - export type ContentCollectionKey = keyof ContentEntryMap; - export type DataCollectionKey = keyof DataEntryMap; - - type AllValuesOf = T extends any ? T[keyof T] : never; - type ValidContentEntrySlug = AllValuesOf< - ContentEntryMap[C] - >['slug']; - - export function getEntryBySlug< - C extends keyof ContentEntryMap, - E extends ValidContentEntrySlug | (string & {}), - >( - collection: C, - // Note that this has to accept a regular string too, for SSR - entrySlug: E - ): E extends ValidContentEntrySlug - ? Promise> - : Promise | undefined>; - - export function getDataEntryById( - collection: C, - entryId: E - ): Promise>; - - export function getCollection>( - collection: C, - filter?: (entry: CollectionEntry) => entry is E - ): Promise; - export function getCollection( - collection: C, - filter?: (entry: CollectionEntry) => unknown - ): Promise[]>; - - export function getEntry< - C extends keyof ContentEntryMap, - E extends ValidContentEntrySlug | (string & {}), - >(entry: { - collection: C; - slug: E; - }): E extends ValidContentEntrySlug - ? Promise> - : Promise | undefined>; - export function getEntry< - C extends keyof DataEntryMap, - E extends keyof DataEntryMap[C] | (string & {}), - >(entry: { - collection: C; - id: E; - }): E extends keyof DataEntryMap[C] - ? Promise - : Promise | undefined>; - export function getEntry< - C extends keyof ContentEntryMap, - E extends ValidContentEntrySlug | (string & {}), - >( - collection: C, - slug: E - ): E extends ValidContentEntrySlug - ? Promise> - : Promise | undefined>; - export function getEntry< - C extends keyof DataEntryMap, - E extends keyof DataEntryMap[C] | (string & {}), - >( - collection: C, - id: E - ): E extends keyof DataEntryMap[C] - ? Promise - : Promise | undefined>; - - /** Resolve an array of entry references from the same collection */ - export function getEntries( - entries: { - collection: C; - slug: ValidContentEntrySlug; - }[] - ): Promise[]>; - export function getEntries( - entries: { - collection: C; - id: keyof DataEntryMap[C]; - }[] - ): Promise[]>; - - export function reference( - collection: C - ): import('astro/zod').ZodEffects< - import('astro/zod').ZodString, - C extends keyof ContentEntryMap - ? { - collection: C; - slug: ValidContentEntrySlug; - } - : { - collection: C; - id: keyof DataEntryMap[C]; - } - >; - // Allow generic `string` to avoid excessive type errors in the config - // if `dev` is not running to update as you edit. - // Invalid collection names will be caught at build time. - export function reference( - collection: C - ): import('astro/zod').ZodEffects; - - type ReturnTypeOrOriginal = T extends (...args: any[]) => infer R ? R : T; - type InferEntrySchema = import('astro/zod').infer< - ReturnTypeOrOriginal['schema']> - >; - - type ContentEntryMap = { - "blog": { -"a-cautionary-tale-of-amazon-web-service-classes/index.md": { - id: "a-cautionary-tale-of-amazon-web-service-classes/index.md"; - slug: "a-cautionary-tale-of-amazon-web-service-classes"; - body: string; - collection: "blog"; - data: InferEntrySchema<"blog"> -} & { render(): Render[".md"] }; -"artificial-consciousness-and-phenomenology/index.md": { - id: "artificial-consciousness-and-phenomenology/index.md"; - slug: "artificial-consciousness-and-phenomenology"; - body: string; - collection: "blog"; - data: InferEntrySchema<"blog"> -} & { render(): Render[".md"] }; -"exploiting-github-actions/index.md": { - id: "exploiting-github-actions/index.md"; - slug: "exploiting-github-actions"; - body: string; - collection: "blog"; - data: InferEntrySchema<"blog"> -} & { render(): Render[".md"] }; -"game-design-and-education/index.md": { - id: "game-design-and-education/index.md"; - slug: "game-design-and-education"; - body: string; - collection: "blog"; - data: InferEntrySchema<"blog"> -} & { render(): Render[".md"] }; -"incorrect-reification/index.md": { - id: "incorrect-reification/index.md"; - slug: "incorrect-reification"; - body: string; - collection: "blog"; - data: InferEntrySchema<"blog"> -} & { render(): Render[".md"] }; -"learning-to-code-with-projects/index.md": { - id: "learning-to-code-with-projects/index.md"; - slug: "learning-to-code-with-projects"; - body: string; - collection: "blog"; - data: InferEntrySchema<"blog"> -} & { render(): Render[".md"] }; -"swe-job-primer.md": { - id: "swe-job-primer.md"; - slug: "swe-job-primer"; - body: string; - collection: "blog"; - data: InferEntrySchema<"blog"> -} & { render(): Render[".md"] }; -"using-gpt3-to-write-a-blog-post/index.md": { - id: "using-gpt3-to-write-a-blog-post/index.md"; - slug: "using-gpt3-to-write-a-blog-post"; - body: string; - collection: "blog"; - data: InferEntrySchema<"blog"> -} & { render(): Render[".md"] }; -"why-i-use-firefox/index.md": { - id: "why-i-use-firefox/index.md"; - slug: "why-i-use-firefox"; - body: string; - collection: "blog"; - data: InferEntrySchema<"blog"> -} & { render(): Render[".md"] }; -}; -"events": { -"lightning-talks-fall-2024.md": { - id: "lightning-talks-fall-2024.md"; - slug: "lightning-talks-fall-2024"; - body: string; - collection: "events"; - data: InferEntrySchema<"events"> -} & { render(): Render[".md"] }; -"madhacks-fall-2024.md": { - id: "madhacks-fall-2024.md"; - slug: "madhacks-fall-2024"; - body: string; - collection: "events"; - data: InferEntrySchema<"events"> -} & { render(): Render[".md"] }; -}; - - }; - - type DataEntryMap = { - "coordinators": { -"ahmet-ahunbay": { - id: "ahmet-ahunbay"; - collection: "coordinators"; - data: InferEntrySchema<"coordinators"> -}; -"anna-sun": { - id: "anna-sun"; - collection: "coordinators"; - data: InferEntrySchema<"coordinators"> -}; -"ben-lash": { - id: "ben-lash"; - collection: "coordinators"; - data: InferEntrySchema<"coordinators"> -}; -"chris-gottwaldt": { - id: "chris-gottwaldt"; - collection: "coordinators"; - data: InferEntrySchema<"coordinators"> -}; -"david-teather": { - id: "david-teather"; - collection: "coordinators"; - data: InferEntrySchema<"coordinators"> -}; -"emily-yao": { - id: "emily-yao"; - collection: "coordinators"; - data: InferEntrySchema<"coordinators"> -}; -"grace-steinmetz": { - id: "grace-steinmetz"; - collection: "coordinators"; - data: InferEntrySchema<"coordinators"> -}; -"ishan-joshi": { - id: "ishan-joshi"; - collection: "coordinators"; - data: InferEntrySchema<"coordinators"> -}; -"jiamu-chai": { - id: "jiamu-chai"; - collection: "coordinators"; - data: InferEntrySchema<"coordinators"> -}; -"michael-berkey": { - id: "michael-berkey"; - collection: "coordinators"; - data: InferEntrySchema<"coordinators"> -}; -"michael-gira": { - id: "michael-gira"; - collection: "coordinators"; - data: InferEntrySchema<"coordinators"> -}; -"michael-noguera": { - id: "michael-noguera"; - collection: "coordinators"; - data: InferEntrySchema<"coordinators"> -}; -"mihir-achyuta": { - id: "mihir-achyuta"; - collection: "coordinators"; - data: InferEntrySchema<"coordinators"> -}; -"nick-winans": { - id: "nick-winans"; - collection: "coordinators"; - data: InferEntrySchema<"coordinators"> -}; -"nico-salm": { - id: "nico-salm"; - collection: "coordinators"; - data: InferEntrySchema<"coordinators"> -}; -"pranav-dronavalli": { - id: "pranav-dronavalli"; - collection: "coordinators"; - data: InferEntrySchema<"coordinators"> -}; -"rahul-rao": { - id: "rahul-rao"; - collection: "coordinators"; - data: InferEntrySchema<"coordinators"> -}; -"rudy-banerjee": { - id: "rudy-banerjee"; - collection: "coordinators"; - data: InferEntrySchema<"coordinators"> -}; -"sam-baumohl": { - id: "sam-baumohl"; - collection: "coordinators"; - data: InferEntrySchema<"coordinators"> -}; -}; -"docs": { -}; -"resources": { -}; - - }; - - type AnyEntryMap = ContentEntryMap & DataEntryMap; - - export type ContentConfig = typeof import("./../src/content/config.js"); -} +/// +/// \ No newline at end of file diff --git a/src/pages/discord.astro b/src/pages/discord.astro new file mode 100644 index 0000000..6a169a0 --- /dev/null +++ b/src/pages/discord.astro @@ -0,0 +1,41 @@ + + + + Redirecting... + + + +
+

+ If you are not redirected automatically, click here. +

+
+ +