Draft: Add static source data fetching to projects widget
This MR resolves #299 (closed)
isStaticSource data attribute for elements with the
.featured-projects class which will indicate whether to fetch from a static source (if true) or from the projects api (if false or undefined).
I split the
getProjectsData function into two new functions:
getProjectsFromStaticSource. They conditionally called depending on
The code would work without the extraction but I thought it would be better to have a different function for different APIs. If we ever change the data structure for the projects api, I don't think we would want to manually change all the structures of the static sources.