chore(codestyle): cleanup and reformat

This commit is contained in:
Bastian Ike
2022-09-13 11:18:36 +02:00
committed by Bastian
parent 6081f1edbb
commit 37c43712d1
56 changed files with 1142 additions and 560 deletions

View File

@@ -1,7 +1,7 @@
export enum HomepageOption {
chart = "chart",
columns = "columns",
both = "both"
both = "both",
}
export type ItemAttributes = {
@@ -14,9 +14,9 @@ export type ItemAttributes = {
};
export enum FlagType {
new = 'new',
changed = 'changed',
default = 'default'
new = "new",
changed = "changed",
default = "default",
}
export type Item = ItemAttributes & {
@@ -28,12 +28,12 @@ export type Item = ItemAttributes & {
};
export type Blip = Item & {
quadrantPosition: number
ringPosition: number
colour: string
txtColour: string
coordinates: Point
}
quadrantPosition: number;
ringPosition: number;
colour: string;
txtColour: string;
coordinates: Point;
};
export type Revision = ItemAttributes & {
body: string;
@@ -46,11 +46,11 @@ export type Quadrant = {
};
export type QuadrantConfig = {
colour: string,
txtColour: string,
position: number,
description: string
}
colour: string;
txtColour: string;
position: number;
description: string;
};
export type Radar = {
items: Item[];
@@ -67,9 +67,9 @@ export const nonFeaturedOnly = (items: Item[]) =>
items.filter((item) => !item.featured);
export type Point = {
x: number,
y: number
}
x: number;
y: number;
};
export const groupByQuadrants = (items: Item[]): Group =>
items.reduce(