-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
216 additions
and
179 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,27 @@ | ||
import React from 'react'; | ||
import { TemplateCard } from './TemplateCard'; | ||
|
||
export const ViewsList = ({templates, cardClickCallback}) => ( | ||
<div className='flex flex-wrap justify-center gap-y-2'> | ||
{templates.map(template => ( | ||
<TemplateCard key={template.idx} template={template} onClickCallback={cardClickCallback} /> | ||
))} | ||
export const ViewsList = ({templates, cardClickCallback}) => { | ||
let categories = { | ||
"oa": "Operational Analysis Reports", | ||
"sa": "System Analysis Reports", | ||
"la": "Logical Architecture Reports", | ||
"pa": "Physical Architecture Reports", | ||
"xc": "Cross-cutting Reports", | ||
"other": "Other reports"}; | ||
return ( | ||
<div> | ||
{Object.keys(categories).map(cat => ( | ||
(cat in templates) && (templates[cat].length > 0) && ( | ||
<div key={cat}> | ||
<h2 key={cat + "h2"} className='text-2xl p-2'>{categories[cat]}</h2> | ||
<div key={cat + "div"} className='flex flex-wrap justify-center gap-y-2'> | ||
{templates[cat].map(template => ( | ||
<TemplateCard key={template.idx} template={template} onClickCallback={cardClickCallback} /> | ||
))} | ||
</div> | ||
</div>) | ||
))} | ||
</div> | ||
); | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
template: classes.html.j2 | ||
name: Data Class | ||
description: Specifies structure of a data class. A class may be used to describe anything from a simple object relationship to a message on a bus. | ||
category: xc | ||
variable: | ||
name: object | ||
type: Class |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters