chore: remove position from quadrant config
This commit is contained in:
committed by
Mathias Schopmans
parent
a9561a55b4
commit
dc629d83e1
@@ -14,29 +14,25 @@
|
|||||||
"id": "languages-and-frameworks",
|
"id": "languages-and-frameworks",
|
||||||
"title": "Languages & Frameworks",
|
"title": "Languages & Frameworks",
|
||||||
"description": "We've placed development languages (such as Scala or Golang) here, as well as more low-level development frameworks (such as Play or Symfony), which are useful for implementing custom software of all kinds.",
|
"description": "We've placed development languages (such as Scala or Golang) here, as well as more low-level development frameworks (such as Play or Symfony), which are useful for implementing custom software of all kinds.",
|
||||||
"color": "#84BFA4",
|
"color": "#84BFA4"
|
||||||
"position": 1
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "methods-and-patterns",
|
"id": "methods-and-patterns",
|
||||||
"title": "Methods & Patterns",
|
"title": "Methods & Patterns",
|
||||||
"description": "Here we put information on methods and patterns concerning development, continuous x, testing, organization, architecture, etc.",
|
"description": "Here we put information on methods and patterns concerning development, continuous x, testing, organization, architecture, etc.",
|
||||||
"color": "#248EA6",
|
"color": "#248EA6"
|
||||||
"position": 2
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "platforms-and-aoe-services",
|
"id": "platforms-and-aoe-services",
|
||||||
"title": "Platforms & Operations",
|
"title": "Platforms & Operations",
|
||||||
"description": "This quadrant clusters technologies around the operation of software and infrastructure related platforms, tools and services.",
|
"description": "This quadrant clusters technologies around the operation of software and infrastructure related platforms, tools and services.",
|
||||||
"color": "#F25244",
|
"color": "#F25244"
|
||||||
"position": 3
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "tools",
|
"id": "tools",
|
||||||
"title": "Tools",
|
"title": "Tools",
|
||||||
"description": "Here we put different software tools - from small helpers to bigger software projects.",
|
"description": "Here we put different software tools - from small helpers to bigger software projects.",
|
||||||
"color": "#F2A25C",
|
"color": "#F2A25C"
|
||||||
"position": 4
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"rings": [
|
"rings": [
|
||||||
|
|||||||
@@ -13,9 +13,10 @@ import { Flag, Item } from "@/lib/types";
|
|||||||
|
|
||||||
const {
|
const {
|
||||||
rings,
|
rings,
|
||||||
quadrants,
|
|
||||||
chart: { size },
|
chart: { size },
|
||||||
} = config;
|
} = config;
|
||||||
|
|
||||||
|
const quadrants = config.quadrants.map((q, i) => ({ ...q, position: i + 1 }));
|
||||||
const positioner = new Positioner(size, quadrants, rings);
|
const positioner = new Positioner(size, quadrants, rings);
|
||||||
|
|
||||||
const marked = new Marked(
|
const marked = new Marked(
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ export function getTags(): string[] {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function getQuadrants(): Quadrant[] {
|
export function getQuadrants(): Quadrant[] {
|
||||||
return config.quadrants;
|
return config.quadrants.map((q, i) => ({ ...q, position: i + 1 }));
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getQuadrant(id: string): Quadrant | undefined {
|
export function getQuadrant(id: string): Quadrant | undefined {
|
||||||
|
|||||||
Reference in New Issue
Block a user