mirror of
https://github.com/Xevion/xevion.dev.git
synced 2025-12-05 23:16:57 -06:00
42 lines
773 B
TypeScript
42 lines
773 B
TypeScript
import { createDirectus, rest } from "@directus/sdk";
|
|
|
|
export interface Schema {
|
|
metadata: Metadata;
|
|
project: Project[];
|
|
technology: Technology[];
|
|
}
|
|
|
|
export interface Technology {
|
|
id: string;
|
|
name: string;
|
|
url: string | null;
|
|
}
|
|
|
|
export interface Project {
|
|
id: string;
|
|
icon: string | null;
|
|
name: string;
|
|
description: string;
|
|
shortDescription: string;
|
|
links: Link[];
|
|
wakatimeOffset: number | null;
|
|
technologies: Technology[] | null;
|
|
bannerImage: string;
|
|
}
|
|
|
|
export interface Link {
|
|
icon: string;
|
|
url: string;
|
|
description: string | null;
|
|
}
|
|
|
|
export interface Metadata {
|
|
tagline: string;
|
|
resume: string;
|
|
resumeFilename: string;
|
|
}
|
|
|
|
const directus = createDirectus<Schema>("https://api.xevion.dev").with(rest());
|
|
|
|
export default directus;
|