File tree Expand file tree Collapse file tree 7 files changed +386
-14
lines changed
general/projects/directoryrestructure Expand file tree Collapse file tree 7 files changed +386
-14
lines changed Original file line number Diff line number Diff line change @@ -56,6 +56,13 @@ const navbar = {
5656 label : 'Processes' ,
5757 docsPluginId : 'general' ,
5858 } ,
59+ {
60+ type : 'docSidebar' ,
61+ position : 'left' ,
62+ sidebarId : 'projects' ,
63+ label : 'Projects' ,
64+ docsPluginId : 'general' ,
65+ } ,
5966 {
6067 type : 'docSidebar' ,
6168 position : 'left' ,
Original file line number Diff line number Diff line change 11{
22 "$schema" : " ../static/schema/projects.json" ,
33 "projects" : {
4+ "directoryrestructure/index" : {
5+ "title" : " Directory Restructure" ,
6+ "status" : " In Progress" ,
7+ "owners" : [
8+ {
9+ "name" : " Andrew Lyons" ,
10+ "githubUsername" : " andrewnicols"
11+ }
12+ ],
13+ "discussionLinks" : [],
14+ "issueLinks" : [
15+ {
16+ "link" : " https://tracker.moodle.org/browse/MDL-83424" ,
17+ "title" : " MDL-83424"
18+ },
19+ {
20+ "link" : " https://tracker.moodle.org/browse/IDEA-75" ,
21+ "title" : " Roadmap Proposal"
22+ }
23+ ]
24+ },
425 "docs/migration" : {
526 "title" : " Dev Docs Migration" ,
6- "status" : " In Progress " ,
27+ "status" : " Complete " ,
728 "owners" : [
829 {
930 "name" : " Andrew Lyons" ,
Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change 3939JMeter
4040JWKS
4141Kanban
42+ Laravel
4243MAINNODE
44+ MDK
4345MDL
4446MDLQA
4547MDLSITE
@@ -49,6 +51,7 @@ Moodleisms
4951Moodlelib
5052Moodlenet
5153Moodlers
54+ Moosh
5255Multilang
5356MyISAM
5457MySQLi
7376SIGTERM
7477Soulier
7578Stene
79+ Symfony
7680TCPDF
7781TODO
7882ToBic
Original file line number Diff line number Diff line change @@ -23,12 +23,14 @@ export declare interface Link {
2323 link : string ,
2424}
2525
26+ declare interface IssueLinks extends Array < Link > { }
27+
2628export declare interface ProjectSummaryData {
2729 projectName : string ,
2830 title : string ,
2931 owners : Array < PersonProps > ,
3032 status : string ,
31- issueLinks ?: Array < Link > ,
33+ issueLinks ?: IssueLinks ,
3234 discussionLinks ?: Array < Link > ,
3335}
3436
Original file line number Diff line number Diff line change @@ -48,6 +48,38 @@ export default function ProjectSummary(props: ProjectSummaryProps): ReactNode {
4848 ) ;
4949 }
5050
51+ function getIssueLinks ( { issueLinks } : ProjectSummaryData ) : ReactNode {
52+ if ( issueLinks . length === 1 ) {
53+ return (
54+ < >
55+ { issueLinks . map ( ( { link, title } ) => (
56+ < div key = { title } >
57+ < Link
58+ to = { link }
59+ >
60+ { title }
61+ </ Link >
62+ </ div >
63+ ) ) }
64+ </ >
65+ ) ;
66+ }
67+
68+ return (
69+ < ul >
70+ { issueLinks . map ( ( { link, title } ) => (
71+ < li key = { title } >
72+ < Link
73+ to = { link }
74+ >
75+ { title }
76+ </ Link >
77+ </ li >
78+ ) ) }
79+ </ ul >
80+ ) ;
81+ }
82+
5183 function GetProjectSummary ( projectData : ProjectSummaryData ) : ReactNode {
5284 return (
5385 < div className = { styles . projectsummary } >
@@ -82,17 +114,7 @@ export default function ProjectSummary(props: ProjectSummaryProps): ReactNode {
82114 && (
83115 < tr >
84116 < th > Issues</ th >
85- < td >
86- { projectData . issueLinks . map ( ( { link, title } ) => (
87- < div key = { title } >
88- < Link
89- to = { link }
90- >
91- { title }
92- </ Link >
93- </ div >
94- ) ) }
95- </ td >
117+ < td > { getIssueLinks ( projectData ) } </ td >
96118 </ tr >
97119 ) }
98120 </ tbody >
Original file line number Diff line number Diff line change 11.projectsummary {
22 float : right;
33 clear : both;
4- font-family : monospace;
54 padding-left : 1rem ;
65}
You can’t perform that action at this time.
0 commit comments