mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-29 13:39:50 +01:00
feat: update shit
This commit is contained in:
1 parent
8bda4a5331
commit
95ad6bade7
5 files changed
+14
-5
No files matched your search
@@ -31,10 +31,10 @@ const { value, locale } = Astro.props;
|
|||||||
const strings = await api.strings(locale);
|
const strings = await api.strings(locale);
|
||||||
|
|
||||||
const lang = "ts";
|
const lang = "ts";
|
||||||
const roots = ["src/protos", "../closed/protos"];
|
const root = "../../packages/closed/protos";
|
||||||
|
|
||||||
const [route, name] = value.split(".");
|
const [route, name] = value.split(".");
|
||||||
const path = resolve(`${roots[0]}/${route}.ts`);
|
const path = resolve(`${root}/${route}.ts`);
|
||||||
|
|
||||||
const program = createProgram([path], {});
|
const program = createProgram([path], {});
|
||||||
const source = program.getSourceFile(path);
|
const source = program.getSourceFile(path);
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ export const getStaticPaths = (async () => {
|
|||||||
*
|
*
|
||||||
* @see avatars/list.json for all avatar ids.
|
* @see avatars/list.json for all avatar ids.
|
||||||
* @see avatars/[id].webp for avatar images.
|
* @see avatars/[id].webp for avatar images.
|
||||||
* @type avatar.Avatar
|
* @type blitzkit/avatar.Avatar
|
||||||
*/
|
*/
|
||||||
export async function GET({ params }: APIContext<never, { id: string }>) {
|
export async function GET({ params }: APIContext<never, { id: string }>) {
|
||||||
const avatar = await api.avatar(params.id);
|
const avatar = await api.avatar(params.id);
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import { api } from "../../../core/api/dynamic";
|
|||||||
* Identical to `avatars/[id].json`, but returns data on all avatars at once,
|
* Identical to `avatars/[id].json`, but returns data on all avatars at once,
|
||||||
* mapped by `id`.
|
* mapped by `id`.
|
||||||
*
|
*
|
||||||
* @type avatars.Avatars
|
* @type blitzkit/avatars.Avatars
|
||||||
*/
|
*/
|
||||||
export async function GET() {
|
export async function GET() {
|
||||||
const avatars = await api.avatars();
|
const avatars = await api.avatars();
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import { api } from "../../../core/api/dynamic";
|
|||||||
/**
|
/**
|
||||||
* Returns a list of all avatars ids.
|
* Returns a list of all avatars ids.
|
||||||
*
|
*
|
||||||
* @type avatar_list.AvatarList
|
* @type blitzkit/avatar_list.AvatarList
|
||||||
*/
|
*/
|
||||||
export async function GET() {
|
export async function GET() {
|
||||||
const list = await api.avatarList();
|
const list = await api.avatarList();
|
||||||
|
|||||||
@@ -0,0 +1,9 @@
|
|||||||
|
import { api } from "../../core/api/dynamic";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Woah! test.
|
||||||
|
*/
|
||||||
|
export async function GET() {
|
||||||
|
const tiers = await api.tiers();
|
||||||
|
return Response.json(tiers);
|
||||||
|
}
|
||||||
Reference in new issue
Block a user