feat: add weather widget
This commit is contained in:
@@ -2,6 +2,7 @@ import { createDirectus, rest } from '@directus/sdk';
|
||||
|
||||
import type {
|
||||
Global,
|
||||
Weather,
|
||||
Post,
|
||||
Application,
|
||||
Experience,
|
||||
@@ -15,6 +16,7 @@ import { getDirectusURL } from '@lib/directusFunctions';
|
||||
|
||||
type Schema = {
|
||||
site_global: Global;
|
||||
site_weather: Weather;
|
||||
posts: Post[];
|
||||
site_applications: Application;
|
||||
site_experience: Experience;
|
||||
|
||||
@@ -23,6 +23,13 @@ export type Global = {
|
||||
footer_image_alt: string;
|
||||
};
|
||||
|
||||
export type Weather = {
|
||||
id: string;
|
||||
location: string;
|
||||
latitude: string;
|
||||
longitude: string;
|
||||
}
|
||||
|
||||
export type Post = {
|
||||
slug: string;
|
||||
title: string;
|
||||
|
||||
Reference in New Issue
Block a user