-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
270 changed files
with
64,509 additions
and
2,641 deletions.
There are no files selected for viewing
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,75 @@ | ||
declare module 'astro:content' { | ||
export { z } from 'astro/zod'; | ||
export type CollectionEntry<C extends keyof typeof entryMap> = | ||
(typeof entryMap)[C][keyof (typeof entryMap)[C]] & Render; | ||
|
||
type BaseSchemaWithoutEffects = | ||
| import('astro/zod').AnyZodObject | ||
| import('astro/zod').ZodUnion<import('astro/zod').AnyZodObject[]> | ||
| import('astro/zod').ZodDiscriminatedUnion<string, import('astro/zod').AnyZodObject[]> | ||
| import('astro/zod').ZodIntersection< | ||
import('astro/zod').AnyZodObject, | ||
import('astro/zod').AnyZodObject | ||
>; | ||
|
||
type BaseSchema = | ||
| BaseSchemaWithoutEffects | ||
| import('astro/zod').ZodEffects<BaseSchemaWithoutEffects>; | ||
|
||
type BaseCollectionConfig<S extends BaseSchema> = { | ||
schema?: S; | ||
slug?: (entry: { | ||
id: CollectionEntry<keyof typeof entryMap>['id']; | ||
defaultSlug: string; | ||
collection: string; | ||
body: string; | ||
data: import('astro/zod').infer<S>; | ||
}) => string | Promise<string>; | ||
}; | ||
export function defineCollection<S extends BaseSchema>( | ||
input: BaseCollectionConfig<S> | ||
): BaseCollectionConfig<S>; | ||
|
||
type EntryMapKeys = keyof typeof entryMap; | ||
type AllValuesOf<T> = T extends any ? T[keyof T] : never; | ||
type ValidEntrySlug<C extends EntryMapKeys> = AllValuesOf<(typeof entryMap)[C]>['slug']; | ||
|
||
export function getEntryBySlug< | ||
C extends keyof typeof entryMap, | ||
E extends ValidEntrySlug<C> | (string & {}) | ||
>( | ||
collection: C, | ||
// Note that this has to accept a regular string too, for SSR | ||
entrySlug: E | ||
): E extends ValidEntrySlug<C> | ||
? Promise<CollectionEntry<C>> | ||
: Promise<CollectionEntry<C> | undefined>; | ||
export function getCollection<C extends keyof typeof entryMap, E extends CollectionEntry<C>>( | ||
collection: C, | ||
filter?: (entry: CollectionEntry<C>) => entry is E | ||
): Promise<E[]>; | ||
export function getCollection<C extends keyof typeof entryMap>( | ||
collection: C, | ||
filter?: (entry: CollectionEntry<C>) => unknown | ||
): Promise<CollectionEntry<C>[]>; | ||
|
||
type InferEntrySchema<C extends keyof typeof entryMap> = import('astro/zod').infer< | ||
Required<ContentConfig['collections'][C]>['schema'] | ||
>; | ||
|
||
type Render = { | ||
render(): Promise<{ | ||
Content: import('astro').MarkdownInstance<{}>['Content']; | ||
headings: import('astro').MarkdownHeading[]; | ||
remarkPluginFrontmatter: Record<string, any>; | ||
}>; | ||
}; | ||
|
||
const entryMap: { | ||
"translations": { | ||
}, | ||
|
||
}; | ||
|
||
type ContentConfig = never; | ||
} |
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,20 @@ | ||
--- | ||
name: Sprikipedia | ||
about: Errors and suggestions for Sprikipedia | ||
title: '' | ||
labels: sprikipedia | ||
assignees: LucasHT22 | ||
|
||
--- | ||
|
||
<!-- | ||
Describe what feature you'd like to see and. | ||
Describe the bug with a clear and concise description of what the bug is. | ||
Please include any relevant screenshots or context. | ||
If you have multiple suggestions/errors, please make them as separate issues. | ||
Thank you! | ||
--> |
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,11 @@ | ||
# This configuration file was automatically generated by Gitpod. | ||
# Please adjust to your needs (see https://www.gitpod.io/docs/introduction/learn-gitpod/gitpod-yaml) | ||
# and commit this file to your remote git repository to share the goodness with others. | ||
|
||
# Learn more from ready-to-use templates: https://www.gitpod.io/docs/introduction/getting-started/quickstart | ||
|
||
tasks: | ||
- init: yarn install && yarn run build | ||
command: yarn run start | ||
|
||
|
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,3 @@ | ||
{ | ||
"deno.enable": false | ||
} |
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,51 @@ | ||
# Sprig Project Responsibilities | ||
|
||
## Synopsis | ||
The goal of this document is to make ownership of responsibilities / decision-making on the Sprig project crystal clear. | ||
## Product | ||
**Owner**: Leo\ | ||
**Responsibilities**: | ||
* approves/denies of all end-user-facing Sprig and Spade features | ||
* works with contributors to refine their product idea(s) into concrete form before they start coding | ||
* responds to github issue assignments that have a feature-request tag | ||
* can provide input (verbal/written or via github metadata) re: priorities of github issues / feature importance | ||
* is responsible for defining/approving the long-term Sprig product vision | ||
* has final say on all things within the product domain | ||
|
||
## Engineering | ||
**Owner**: Graham\ | ||
**Responsibilities**: | ||
* defines the method/process of how code lands to the Sprig, sprig-engine, and spade github repositories | ||
* defines the cadence and process through which code is published to end-users | ||
* is accountable for the uptime / functionality of the Sprig website and stability of the Spade firmware | ||
* will be accountable for issue/PR triage and direct Slack customer support (and will assign GH issues to other teams when appropriate) | ||
* will be accountable for the overall health and proper functioning of the codebases | ||
* has final say on all things within the engineering domain | ||
|
||
## Operations | ||
**Owner**: Shawn\ | ||
**Responsibilities**: | ||
* is responsible for mailing new Sprig shipments to Hack Clubbers | ||
* maintaining a stock of devices and components to be sent | ||
* supports the process of obtaining replacement parts for Hack Clubbers | ||
|
||
## Communications and Marketing | ||
**Owner**: Kara\ | ||
**Responsibilities**: | ||
* evangelizes to the public on behalf of the team | ||
* ensures team aligns with the public messaging being made | ||
* distills complex information from other team members into digestible material | ||
* conveys community feedback to the rest of the team via stories & submitting github issues | ||
* publicizes roles that need filling by the community | ||
|
||
## App Review | ||
**Owner**: Lucas\ | ||
**Responsibilities**: | ||
* responsible for welcoming newcomers (Sprig app authors) to the Sprig project warmly when they send their initial pull requests | ||
* ensuring that games are submitted in the proper format and according to defined policies | ||
* maintains a high bar of quality on submitted games | ||
* ensures that authors of Sprig games are marked for the Sprig hardware grant award when appropriate | ||
* answers questions relating to App Review in Slack chat | ||
|
||
|
||
### ***NOTE***: If there’s ever any disagreement between teams, blurry lines, whatever - we will have Zach dictate a compromise / solution. |
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,11 @@ | ||
## Reporting Security Issues ✍️ | ||
This document will cover: | ||
|
||
- [Reporting a security bug 🕵️♂️](https://github.com/hackclub/sprig/edit/main/SECURITY.md#reporting-a-security-bug) | ||
- [Suggestions to improve reporting 💬](https://github.com/hackclub/sprig/edit/main/SECURITY.md#suggestions-to-improve-reporting) | ||
|
||
### Reporting a security bug 🕵️♂️ | ||
Hi there 👋 Thanks for taking the time to report a potential security flaw! By doing this, you help make Sprig much safer 🔐 To report a bug, kindly contact the Hack Club team at `[email protected]`. | ||
|
||
### Suggestions to improve reporting 💬 | ||
Everything can be made better ✨ Even the way bugs can be reported 🪲 If you think a better way could be used to report security flaws then create an issue on the repo ✍️ |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.