File tree Expand file tree Collapse file tree 7 files changed +399
-13
lines changed
general/projects/directoryrestructure Expand file tree Collapse file tree 7 files changed +399
-13
lines changed Original file line number Diff line number Diff line change @@ -56,6 +56,13 @@ const navbar = {
56
56
label : 'Processes' ,
57
57
docsPluginId : 'general' ,
58
58
} ,
59
+ {
60
+ type : 'docSidebar' ,
61
+ position : 'left' ,
62
+ sidebarId : 'projects' ,
63
+ label : 'Projects' ,
64
+ docsPluginId : 'general' ,
65
+ } ,
59
66
{
60
67
type : 'docSidebar' ,
61
68
position : 'left' ,
Original file line number Diff line number Diff line change 1
1
{
2
2
"$schema" : " ../static/schema/projects.json" ,
3
3
"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
+ },
4
25
"docs/migration" : {
5
26
"title" : " Dev Docs Migration" ,
6
27
"status" : " In Progress" ,
Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change 39
39
JMeter
40
40
JWKS
41
41
Kanban
42
+ Laravel
42
43
MAINNODE
44
+ MDK
43
45
MDL
44
46
MDLQA
45
47
MDLSITE
@@ -49,6 +51,7 @@ Moodleisms
49
51
Moodlelib
50
52
Moodlenet
51
53
Moodlers
54
+ Moosh
52
55
Multilang
53
56
MyISAM
54
57
MySQLi
73
76
SIGTERM
74
77
Soulier
75
78
Stene
79
+ Symfony
76
80
TCPDF
77
81
TODO
78
82
ToBic
Original file line number Diff line number Diff line change @@ -23,12 +23,14 @@ export declare interface Link {
23
23
link : string ,
24
24
}
25
25
26
+ declare interface IssueLinks extends Array < Link > { }
27
+
26
28
export declare interface ProjectSummaryData {
27
29
projectName : string ,
28
30
title : string ,
29
31
owners : Array < PersonProps > ,
30
32
status : string ,
31
- issueLinks ?: Array < Link > ,
33
+ issueLinks ?: IssueLinks ,
32
34
discussionLinks ?: Array < Link > ,
33
35
}
34
36
Original file line number Diff line number Diff line change @@ -48,6 +48,38 @@ export default function ProjectSummary(props: ProjectSummaryProps): ReactNode {
48
48
) ;
49
49
}
50
50
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
+
51
83
function GetProjectSummary ( projectData : ProjectSummaryData ) : ReactNode {
52
84
return (
53
85
< div className = { styles . projectsummary } >
@@ -82,17 +114,7 @@ export default function ProjectSummary(props: ProjectSummaryProps): ReactNode {
82
114
&& (
83
115
< tr >
84
116
< 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 >
96
118
</ tr >
97
119
) }
98
120
</ tbody >
Original file line number Diff line number Diff line change 1
1
.projectsummary {
2
2
float : right;
3
3
clear : both;
4
- font-family : monospace;
5
4
padding-left : 1rem ;
6
5
}
You can’t perform that action at this time.
0 commit comments