chore(codestyle): cleanup and reformat
This commit is contained in:
36
src/model.ts
36
src/model.ts
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user