-
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.
feat: use new API replace Xata (#202)
* feat: use new API replace Xata * fix: fix zod schema * chore: kick out xata and superjson * chore: use new type * chore: update CI env
- Loading branch information
Showing
27 changed files
with
1,384 additions
and
1,174 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 |
---|---|---|
@@ -1,14 +1,9 @@ | ||
# API key used by the CLI and the SDK | ||
# Make sure your framework/tooling loads this file on startup to have it available for the SDK | ||
XATA_API_KEY= | ||
# Xata branch that will be used if there's not a xata branch with the same name as your git branch | ||
XATA_BRANCH=main | ||
XATA_FALLBACK_BRANCH=main | ||
|
||
NEXT_PUBLIC_ENABLE_TRACK=false | ||
SENTRY_AUTH_TOKEN= | ||
NEXT_PUBLIC_SENTRY_DSN= | ||
|
||
FEC_API_TOKEN= | ||
|
||
NEXT_PUBLIC_ENABLE_TRACK=false | ||
NEXT_PUBLIC_REGION=GLOBAL | ||
NEXT_PUBLIC_WEBSITE_URL=www.furryeventchina.com | ||
NEXT_PUBLIC_STATIC_CDN_URL=https://static.furrycons.cn | ||
NEXT_PUBLIC_SENTRY_DSN= |
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 |
---|---|---|
@@ -1 +1 @@ | ||
lts/hydrogen | ||
lts/iron |
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
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 wretch from "wretch"; | ||
import QueryStringAddon from "wretch/addons/queryString"; | ||
|
||
wretch.options({ mode: "cors" }); | ||
|
||
const HOST = | ||
process.env.NEXT_PUBLIC_REGION === "CN" | ||
? "https://api.furrycons.cn" | ||
: "https://api.furryeventchina.com"; | ||
|
||
const wfetch = wretch(HOST, { cache: "default" }) | ||
.auth(`Bearer ${process.env.FEC_API_TOKEN}`) | ||
.addon(QueryStringAddon); | ||
export default wfetch; |
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,39 @@ | ||
import { sendTrack } from "@/utils/track"; | ||
import Link from "next/link"; | ||
import { useEffect } from "react"; | ||
|
||
export default function Custom500() { | ||
useEffect(() => { | ||
sendTrack({ | ||
eventName: "Viewed 500 page", | ||
eventValue: { | ||
href: window.location.href, | ||
}, | ||
}); | ||
}, []); | ||
|
||
return ( | ||
<main className="grid min-h-full place-items-center bg-white rounded-2xl px-6 py-24 sm:py-32 lg:px-8"> | ||
<div className="text-center"> | ||
<p className="text-base font-semibold text-red-400">500</p> | ||
<h1 className="mt-4 text-3xl font-bold tracking-tight text-red-400 sm:text-5xl"> | ||
遭遇内部错误... | ||
</h1> | ||
<p className="mt-6 text-base leading-7 text-gray-600"> | ||
Who is my fearless hero? | ||
</p> | ||
<div className="mt-10 flex items-center justify-center gap-x-6"> | ||
<Link | ||
href="/" | ||
className="rounded-md bg-red-400 px-3.5 py-2.5 text-sm font-semibold text-white shadow-sm hover:bg-red-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600" | ||
> | ||
回到首页 | ||
</Link> | ||
{/* <a href="#" className="text-sm font-semibold text-gray-900"> | ||
通知管理员 <span aria-hidden="true">→</span> | ||
</a> */} | ||
</div> | ||
</div> | ||
</main> | ||
); | ||
} |
Oops, something went wrong.