-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/Comet-Robotics/cometrobotic…
- Loading branch information
Showing
17 changed files
with
5,287 additions
and
5,283 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import { defineCollection, z } from 'astro:content' | ||
|
||
const statSchema = z.object({ | ||
name: z.string(), | ||
value: z.number(), | ||
icon: z.string(), | ||
}) | ||
|
||
const termSchema = z.object({ | ||
season: z.enum(['Spring', 'Summer', 'Fall']), | ||
year: z.number(), | ||
}) | ||
|
||
const projectSchema = z.object({ | ||
projectTitle: z.string(), | ||
shortDescription: z.string(), | ||
deprecated: z.boolean().default(false), | ||
stats: z.array(statSchema), | ||
startSeason: termSchema, | ||
endSeason: termSchema.optional(), | ||
mainImage: z.object({ src: z.string().url(), alt: z.string() }), | ||
}) | ||
|
||
const projectCollection = defineCollection({ | ||
type: 'content', | ||
schema: projectSchema, | ||
}) | ||
|
||
export const collections = { | ||
projects: projectCollection, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
interface LinkType { name: string, href: string } | ||
type LinkWithIconType = LinkType & { icon: string } | ||
const HOME_LINK: LinkType = { name: 'Home', href: '#' } | ||
const HOME_LINK: LinkType = { name: 'Home', href: '/' } | ||
|
||
const mainNavLinks: LinkType[] = [ | ||
HOME_LINK, | ||
|
@@ -49,7 +49,7 @@ const clubEmail = '[email protected]' | |
const discordInvite = 'https://discord.gg/dTGwav3PVM' | ||
|
||
const makerspaceMap = 'https://g.page/utdesign-makerspace?share' | ||
|
||
const websiteRepo = 'https://github.com/Comet-Robotics/cometrobotics.org' | ||
const footerLinks: LinkType[] = [ | ||
{ | ||
name: 'Discord', | ||
|
@@ -61,7 +61,7 @@ const footerLinks: LinkType[] = [ | |
}, | ||
{ | ||
name: 'Source Code', | ||
href: 'https://github.com/Comet-Robotics/cometrobotics.org', | ||
href: websiteRepo, | ||
}, | ||
{ | ||
name: 'SharePoint', | ||
|
@@ -96,4 +96,4 @@ const linksPageLinks: LinkType[] = [ | |
}, | ||
] | ||
|
||
export { mainNavLinks, HOME_LINK, footerLinks, socialLinks, clubEmail, sponsorLinks, discordInvite, makerspaceMap, linksPageLinks } | ||
export { mainNavLinks, HOME_LINK, footerLinks, socialLinks, clubEmail, sponsorLinks, discordInvite, makerspaceMap, websiteRepo, linksPageLinks } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
/// <reference path="../.astro/types.d.ts" /> | ||
/// <reference types="astro/client" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import childProcess from 'node:child_process' | ||
|
||
// obtain Git commit hash | ||
const hash = childProcess | ||
.execSync('git rev-parse --short HEAD') | ||
.toString() | ||
.trim() | ||
|
||
export async function GET() { | ||
const versionMetadata = { | ||
hash, | ||
} | ||
return new Response(JSON.stringify(versionMetadata)) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters