mirror of
https://github.com/Xevion/xevion.dev.git
synced 2025-12-05 23:16:57 -06:00
Update directus schema
This commit is contained in:
@@ -2,10 +2,36 @@ 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;
|
||||
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 {
|
||||
tagline: string;
|
||||
resume: string;
|
||||
resumeFilename: string;
|
||||
}
|
||||
|
||||
const directus = createDirectus<Schema>("https://api.xevion.dev").with(rest());
|
||||
|
||||
Reference in New Issue
Block a user