-
Notifications
You must be signed in to change notification settings - Fork 1
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' into feature/navigation-bar-and-footer
- Loading branch information
Showing
12 changed files
with
240 additions
and
199 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,62 @@ | ||
name: Deploy Preview | ||
|
||
on: | ||
pull_request: | ||
|
||
permissions: | ||
contents: read | ||
pull-requests: write | ||
|
||
jobs: | ||
Site: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: amondnet/vercel-action@v25 | ||
with: | ||
vercel-version: 30.2.2 | ||
github-comment: | | ||
<table> | ||
<tr> | ||
<td><strong>Name</strong></td> | ||
<td>Hack at UCI Site</td> | ||
</tr> | ||
<tr> | ||
<td><strong>Preview</strong></td> | ||
<td><a href='{{deploymentUrl}}'>Visit Preview</a></td> | ||
</tr> | ||
<tr> | ||
<td><strong>Commit</strong></td> | ||
<td>{{deploymentCommit}}</td> | ||
</tr> | ||
</table> | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
vercel-token: ${{ secrets.VERCEL_TOKEN }} | ||
vercel-org-id: ${{ vars.VERCEL_ORG_ID}} | ||
vercel-project-id: ${{ vars.VERCEL_PROJECT_ID_SITE}} | ||
Studio: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: amondnet/vercel-action@v25 | ||
with: | ||
vercel-version: 30.2.2 | ||
github-comment: | | ||
<table> | ||
<tr> | ||
<td><strong>Name</strong></td> | ||
<td>Sanity Studio</td> | ||
</tr> | ||
<tr> | ||
<td><strong>Preview</strong></td> | ||
<td><a href='{{deploymentUrl}}'>Visit Preview</a></td> | ||
</tr> | ||
<tr> | ||
<td><strong>Commit</strong></td> | ||
<td>{{deploymentCommit}}</td> | ||
</tr> | ||
</table> | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
vercel-token: ${{ secrets.VERCEL_TOKEN }} | ||
vercel-org-id: ${{ vars.VERCEL_ORG_ID}} | ||
vercel-project-id: ${{ vars.VERCEL_PROJECT_ID_STUDIO}} |
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,36 @@ | ||
name: Deploy Production | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
permissions: | ||
contents: read | ||
pull-requests: write | ||
|
||
jobs: | ||
Site: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: amondnet/vercel-action@v25 | ||
with: | ||
vercel-version: 30.2.2 | ||
github-comment: false | ||
vercel-args: "--prod" | ||
vercel-token: ${{ secrets.VERCEL_TOKEN }} | ||
vercel-org-id: ${{ vars.VERCEL_ORG_ID}} | ||
vercel-project-id: ${{ vars.VERCEL_PROJECT_ID_SITE}} | ||
Studio: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: amondnet/vercel-action@v25 | ||
with: | ||
vercel-version: 30.2.2 | ||
github-comment: false | ||
vercel-args: "--prod" | ||
vercel-token: ${{ secrets.VERCEL_TOKEN }} | ||
vercel-org-id: ${{ vars.VERCEL_ORG_ID}} | ||
vercel-project-id: ${{ vars.VERCEL_PROJECT_ID_STUDIO}} |
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 was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
import { defineType, defineField, defineArrayMember } from "sanity"; | ||
import { toPlainText } from "@portabletext/react"; | ||
import { FileQuestion } from "lucide-react"; | ||
|
||
export default defineType({ | ||
name: "faqs", | ||
title: "FAQs", | ||
type: "document", | ||
fields: [ | ||
defineField({ | ||
name: "faqs", | ||
title: "FAQs", | ||
type: "array", | ||
of: [ | ||
defineArrayMember({ | ||
type: "object", | ||
name: "faq", | ||
fields: [ | ||
defineField({ | ||
name: "question", | ||
title: "Question", | ||
type: "text", | ||
}), | ||
defineField({ | ||
name: "answer", | ||
title: "Answer", | ||
type: "array", | ||
of: [ | ||
{ | ||
type: "block", | ||
styles: [{ title: "Normal", value: "normal" }], | ||
lists: [], | ||
}, | ||
], | ||
}), | ||
], | ||
|
||
preview: { | ||
select: { | ||
title: "question", | ||
subtitle: "answer", | ||
}, | ||
prepare({ title, subtitle }) { | ||
return { | ||
title, | ||
subtitle: subtitle ? toPlainText(subtitle) : undefined, | ||
media: FileQuestion, | ||
}; | ||
}, | ||
}, | ||
}), | ||
], | ||
}), | ||
], | ||
}); |
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,7 +1,3 @@ | ||
import stickers from "./stickers"; | ||
import notes from "./notes"; | ||
import clipboard from "./clipboard"; | ||
import tags from "./tags"; | ||
import paper from "./paper"; | ||
import faqs from "./faqs"; | ||
|
||
export const schemaTypes = [stickers, notes, clipboard, paper, tags]; | ||
export const schemaTypes = [faqs]; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.