mirror of
https://github.com/KevinMidboe/seasoned.git
synced 2026-03-11 03:49:07 +00:00
* On every route change, update local variables from query params * ResultSection is keyed to query to force re-render * Resolved lint warnings * replace webpack w/ vite * update all imports with alias @ and scss * vite environment variables, also typed * upgraded eslint, defined new rules & added ignore comments * resolved linting issues * moved index.html to project root * updated dockerfile w/ build stage before runtime image definition * sign drone config
35 lines
493 B
TypeScript
35 lines
493 B
TypeScript
export enum GraphTypes {
|
|
Plays = "plays",
|
|
Duration = "duration"
|
|
}
|
|
|
|
export enum GraphValueTypes {
|
|
Number = "number",
|
|
Time = "time"
|
|
}
|
|
|
|
export interface IGraphDataset {
|
|
name: string;
|
|
data: number[];
|
|
}
|
|
|
|
export interface IGraphData {
|
|
labels: string[];
|
|
series: IGraphDataset[];
|
|
}
|
|
|
|
export interface IGraphResponse {
|
|
success: boolean;
|
|
data: Data;
|
|
}
|
|
|
|
export interface Data {
|
|
categories: Date[];
|
|
series: Series[];
|
|
}
|
|
|
|
export interface Series {
|
|
name: string;
|
|
data: number[];
|
|
}
|