mirror of
https://github.com/Xevion/xevion.dev.git
synced 2025-12-06 03:17:08 -06:00
Update directus schema
This commit is contained in:
@@ -2,10 +2,36 @@ import { createDirectus, rest } from "@directus/sdk";
|
|||||||
|
|
||||||
export interface Schema {
|
export interface Schema {
|
||||||
metadata: Metadata;
|
metadata: Metadata;
|
||||||
|
project: Project[];
|
||||||
|
technology: Technology[];
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface Technology {
|
||||||
|
id: string;
|
||||||
|
name: string;
|
||||||
|
url: string | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface Project {
|
||||||
|
id: string;
|
||||||
|
name: string;
|
||||||
|
description: string;
|
||||||
|
shortDescription: string;
|
||||||
|
links: Link[];
|
||||||
|
wakatime_offset: number | null;
|
||||||
|
technologies: Technology[];
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface Link {
|
||||||
|
icon: string;
|
||||||
|
url: string;
|
||||||
|
description: string | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Metadata {
|
export interface Metadata {
|
||||||
tagline: string;
|
tagline: string;
|
||||||
|
resume: string;
|
||||||
|
resumeFilename: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
const directus = createDirectus<Schema>("https://api.xevion.dev").with(rest());
|
const directus = createDirectus<Schema>("https://api.xevion.dev").with(rest());
|
||||||
|
|||||||
Reference in New Issue
Block a user