* add and consistently use parseDate and renderDateBadge helpers
also move
- age
- formatDate
- formatRelativeDate
to date.js
* fix bug in wordpress last update badge
* validate in formatDate() and age()
it is going to be unlikely we'll invoke either of these
directly now, but lets calidate here too
* remove unusued imports
* reverse colours for galaxy toolshed
* Support file path for GitHub last commit
* Support file path for GitLab last commit
* Support file path for Gitea last commit
* Define common `relativeUri` validator
* Sort imports
* Add more tests for path variations
* Fix test name
Co-authored-by: chris48s <chris48s@users.noreply.github.com>
* Update Gitea 404 message
* Handle case when no commits are returned for GitHub and GitLab
---------
Co-authored-by: chris48s <chris48s@users.noreply.github.com>
* feat(gitea): add forks, stars, issues and pr badges
* doc(comment): update comments
* fix(gitea): update based on feedback
* refactor(fetch): refactor fetch to be more generic
* refactor(fetch): remove unused function
* use isMetric
---------
Co-authored-by: chris48s <chris48s@users.noreply.github.com>
* fix(gitea): set gitea.com as default, update tests and message
* fix(gitea): removed required flag
* test(gitea): migrate tests to try.gitea.io
* fix(test): fix auth test nock
* fix(ci): revert tests to codeberg, update description with better verbiage, rename documenation to description
* doc(api): reference flagship url for swagger information in comments
* add gitea service based on gitlab
* update gitea to use mocks
* add gitea release test
* move tests to use public repo on codeberg and fixes
* add pagination, update tests to live, set gitea_url as required
* add auth test (wip)
* fix base auth test
* fix required optionalUrl, remove default, assume semver from firstpage
* update example to use stable repository