1
0
Fork 0
mirror of https://github.com/pawelmalak/flame.git synced 2025-08-03 18:05:18 +02:00

Created WeatherWidget

This commit is contained in:
unknown 2021-05-19 18:26:57 +02:00
parent 38f5d3b66a
commit e170f56a03
11 changed files with 462 additions and 57 deletions

View file

@ -0,0 +1,10 @@
export interface Model {
id: number;
createdAt: Date;
updatedAt: Date;
}
export interface ApiResponse<T> {
success: boolean;
data: T;
}

View file

@ -1,16 +1,10 @@
export interface App {
id: number;
import { Model } from './Api';
export interface App extends Model {
name: string;
url: string;
icon: string;
isPinned: boolean;
createdAt: Date;
updatedAt: Date;
}
export interface AppResponse<T> {
success: boolean;
data: T;
}
export interface NewApp {

View file

@ -0,0 +1,10 @@
import { Model } from './Api';
export interface Weather extends Model {
externalLastUpdate: string;
tempC: number;
tempF: number;
isDay: number;
conditionText: string;
conditionCode: number;
}

View file

@ -1,3 +1,5 @@
export * from './App';
export * from './Theme';
export * from './GlobalState';
export * from './GlobalState';
export * from './Api';
export * from './Weather';