1- import { createElement } from " react" ;
2- import { type Blip , Radar , type Quadrant } from " ../radar" ;
3- import type { ModuleNamespace } from " vite/types/hot.js" ;
1+ import { createElement } from ' react' ;
2+ import { type Blip , Radar , type Quadrant } from ' ../radar' ;
3+ import type { ModuleNamespace } from ' vite/types/hot.js' ;
44
55// Dynamically import all mdx files in current dir
6- const modules = import . meta. glob ( " ./**/*.mdx" , {
6+ const modules = import . meta. glob ( ' ./**/*.mdx' , {
77 eager : true ,
88} ) as ModuleNamespace ;
99const unsortedBlips : Blip [ ] = [ ] ;
@@ -23,7 +23,7 @@ for (const modulePath in modules) {
2323 } ) ;
2424}
2525
26- const quadrants = [ " Organisasjon" , " Prosess" , " Folk" , " Teknologi" ] ;
26+ const quadrants = [ ' Organisasjon' , ' Prosess' , ' Folk' , ' Teknologi' ] ;
2727
2828const blips = unsortedBlips
2929 . sort ( ( a , b ) => ( a . depth || 0 ) - ( b . depth || 0 ) )
@@ -36,35 +36,35 @@ const blips = unsortedBlips
3636export const TechLeaderRadar = ( ) => {
3737 const quadrants = [
3838 {
39- name : " Organisasjon" ,
40- orientation : " top-left" ,
41- blipColor : " #47A1AD" ,
42- blips : [ ...blips . filter ( ( item ) => item . quadrant === " Organisasjon" ) ] ,
39+ name : ' Organisasjon' ,
40+ orientation : ' top-left' ,
41+ blipColor : ' #47A1AD' ,
42+ blips : [ ...blips . filter ( ( item ) => item . quadrant === ' Organisasjon' ) ] ,
4343 } ,
4444 {
45- name : " Teknologi" ,
46- orientation : " top-right" ,
47- blipColor : " #6B9E78" ,
48- blips : [ ...blips . filter ( ( item ) => item . quadrant === " Teknologi" ) ] ,
45+ name : ' Teknologi' ,
46+ orientation : ' top-right' ,
47+ blipColor : ' #6B9E78' ,
48+ blips : [ ...blips . filter ( ( item ) => item . quadrant === ' Teknologi' ) ] ,
4949 } ,
5050 {
51- name : " Folk" ,
52- orientation : " bottom-left" ,
53- blipColor : " #CC8508" ,
54- blips : [ ...blips . filter ( ( item ) => item . quadrant === " Folk" ) ] ,
51+ name : ' Folk' ,
52+ orientation : ' bottom-left' ,
53+ blipColor : ' #CC8508' ,
54+ blips : [ ...blips . filter ( ( item ) => item . quadrant === ' Folk' ) ] ,
5555 } ,
5656 {
57- name : " Prosess" ,
58- orientation : " bottom-right" ,
59- blipColor : " #E16A7B" ,
60- blips : [ ...blips . filter ( ( item ) => item . quadrant === " Prosess" ) ] ,
57+ name : ' Prosess' ,
58+ orientation : ' bottom-right' ,
59+ blipColor : ' #E16A7B' ,
60+ blips : [ ...blips . filter ( ( item ) => item . quadrant === ' Prosess' ) ] ,
6161 } ,
6262 ] satisfies [ Quadrant , Quadrant , Quadrant , Quadrant ] ;
6363
6464 return (
6565 < div >
6666 < h1 > Teknologiledelse radar</ h1 >
67- < Radar type = " tech-lead" quadrants = { quadrants } />
67+ < Radar type = ' tech-lead' quadrants = { quadrants } />
6868 </ div >
6969 ) ;
7070} ;
0 commit comments