-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2964 from quantified-uncertainty/create-pull-requ…
…est/patch Bump versions after 0.9.2 release
- Loading branch information
Showing
23 changed files
with
599 additions
and
320 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,7 @@ | ||
--- | ||
"@quri/squiggle-lang": patch | ||
"@quri/squiggle-components": patch | ||
"@quri/prettier-plugin-squiggle": patch | ||
"@quri/squiggle-textmate-grammar": patch | ||
"vscode-squiggle": patch | ||
--- |
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 |
---|---|---|
|
@@ -55,7 +55,6 @@ | |
"relay-runtime": "^16.1.0", | ||
"remark-breaks": "^4.0.0", | ||
"remark-gfm": "^4.0.0", | ||
"squiggle-lang-0.9.0": "npm:@quri/[email protected]", | ||
"zod": "^3.22.4" | ||
}, | ||
"devDependencies": { | ||
|
This file was deleted.
Oops, something went wrong.
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,35 @@ | ||
import { getServerSession } from "next-auth"; | ||
import { PropsWithChildren } from "react"; | ||
|
||
import { LockIcon } from "@quri/ui"; | ||
|
||
import { FullLayoutWithPadding } from "@/components/layout/FullLayoutWithPadding"; | ||
import { NarrowPageLayout } from "@/components/layout/NarrowPageLayout"; | ||
import { H1 } from "@/components/ui/Headers"; | ||
|
||
import { authOptions } from "../api/auth/[...nextauth]/authOptions"; | ||
|
||
export default async function AdminLayout({ children }: PropsWithChildren) { | ||
const session = await getServerSession(authOptions); | ||
|
||
const email = session?.user.email; | ||
|
||
const { ROOT_EMAILS } = process.env; | ||
if (!email || !ROOT_EMAILS?.includes(email)) { | ||
return <NarrowPageLayout>Access denied.</NarrowPageLayout>; | ||
} | ||
|
||
return ( | ||
<div> | ||
<div className="bg-red-200 p-4"> | ||
<H1> | ||
<div className="flex gap-1 items-center"> | ||
<LockIcon /> | ||
<span>Admin console</span> | ||
</div> | ||
</H1> | ||
</div> | ||
<FullLayoutWithPadding>{children}</FullLayoutWithPadding> | ||
</div> | ||
); | ||
} |
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
Oops, something went wrong.
e61a435
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
quri-hub – ./packages/hub
quri-hub-quantified-uncertainty.vercel.app
quri-hub-git-main-quantified-uncertainty.vercel.app
squigglehub.com
squigglehub.org
squiggle-hub.org
www.squigglehub.com
www.squiggle-hub.com
www.squiggle-hub.org
www.squigglehub.org
squiggle-hub.com
e61a435
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
squiggle-website – ./packages/website
squiggle-website-git-main-quantified-uncertainty.vercel.app
squiggle-language.com
www.squiggle-language.com
squiggle-website-quantified-uncertainty.vercel.app
preview.squiggle-language.com
e61a435
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
squiggle-components – ./packages/components
squiggle-components.vercel.app
squiggle-components-git-main-quantified-uncertainty.vercel.app
squiggle-components-quantified-uncertainty.vercel.app
components.squiggle-language.com
preview-components.squiggle-language.com