-
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added support for flows, cleaned up the processing of facet filters, …
…some layout improvements
- Loading branch information
1 parent
e380cfd
commit 529361f
Showing
13 changed files
with
421 additions
and
75 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
import { Box } from "@mui/material"; | ||
import React from "react"; | ||
import { blue, green, orange, purple, red } from "@mui/material/colors"; | ||
import { | ||
faCheck, | ||
faCloudDownloadAlt, | ||
faFlask, | ||
faHeart, | ||
faTimes, | ||
faWrench, | ||
} from "@fortawesome/free-solid-svg-icons"; | ||
import Teaser from "../../components/search/Teaser"; | ||
|
||
const status = { | ||
active: { | ||
title: "verified", | ||
icon: faCheck, | ||
color: green[500], | ||
}, | ||
deactivated: { | ||
title: "deactivated", | ||
icon: faTimes, | ||
color: red[500], | ||
}, | ||
in_preparation: { | ||
title: "unverified", | ||
icon: faWrench, | ||
color: orange[500], | ||
}, | ||
}; | ||
|
||
export const Title = ({ result }) => { | ||
return ( | ||
<React.Fragment> | ||
<Box sx={{ pl: 2 }}>{result.name.raw}</Box> | ||
</React.Fragment> | ||
); | ||
}; | ||
|
||
export const stats = [ | ||
{ param: "runs.raw", unit: "runs", color: red[500], icon: faFlask }, | ||
{ | ||
param: "nr_of_likes.raw", | ||
unit: "likes", | ||
color: purple[500], | ||
icon: faHeart, | ||
}, | ||
{ | ||
param: "nr_of_downloads.raw", | ||
unit: "downloads", | ||
color: blue[500], | ||
icon: faCloudDownloadAlt, | ||
}, | ||
]; | ||
|
||
export const Description = ({ result }) => { | ||
return ( | ||
<Teaser | ||
description={ | ||
result.description.raw | ||
? result.description.raw.toString() | ||
: "Description missing" | ||
} | ||
limit={3} | ||
/> | ||
); | ||
}; |
Oops, something went wrong.