* update ESLint related packages
* migrate to flat config format
* Fix prefer-const error
Fixes
'overrideLogoSize' is never reassigned. Use 'const' instead
* remove irrelevant eslint-disable comment
These comments came from a swizzled upstream
component but never did anything in our codebase.
ESLint 9 does not allow disable comments
for rules that are not registered.
* remove irrelevant eslint-disable comments
These were here because in the past we were applying
mocha lint rules to files which contained no tests
ESLint 9 now flags eslint-disable comments
that aren't doing anythings
* remove irrelevant eslint-disable comment
ESLint 9 now flags eslint-disable comments
that aren't doing anything
* there are no .tsx files in our code any more
* include .mjs files in linting and formatting
* update sort-class-members rule for openApi property
and update the handful of files violating it
* 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
* Added badge for Maven-Cenral last update.
* Update services/maven-central/maven-central-last-update.service.js
Co-authored-by: chris48s <chris48s@users.noreply.github.com>
* updated according to the review comments.
* added Snapcraft last updated badges.
* made changes according to the review.
---------
Co-authored-by: chris48s <chris48s@users.noreply.github.com>
* Add snapcraft license. Update snapcraft version to inherit from snapcraft-base class. Add snapcraft base url in configurations.
* Fix spec tests after making method static
* remove snapcraft configurations, move into base class
* Update services/snapcraft/snapcraft-base.js
---------
Co-authored-by: chris48s <chris48s@users.noreply.github.com>
* Add snapstore version badge
Fixesbadges/shields#9103
* Add basic test for Snapcraft version
* Handle snapstore-version - package not found
* Add test for invalid snapcraft package
* Remove redundent SnapstoreBase class
not needed as there is no auth
* Remove logo from default
The project convention is using namedLogo by default only for social badges.
This commit removes the default logo usage as this badge is not in the social category.
* Rename snapstore to snapcraft
Keep 1 convention for the snapcraft badge, use only snapcraft and ditch snapstore.
* Fix SnapcraftVersion schema
* Use renderVersionBadge
Replace the costume render in SnapcraftVersion with renderVersionBadge
* Rename folder from snapstore to snapcraft
* Add track & risk path parameters for SnapcraftVersion
enhancing control and clarity
* Add architecture query parameter to SnapcraftVersion
Added architecture query parameter: The snapcraft-version.service.js file now accepts an optional arch query parameter to specify the desired architecture for the Snap package. This defaults to amd64 if not provided.
If an unsupported architecture is specified in the query parameter, a NotFound error is thrown with a specific message indicating that the requested architecture is not found.
The snapcraft-version.tester.js file is updated to include a new test case that verifies the behavior when using the arch query parameter and also includes a test case for handling an invalid architecture.
* move filter logic into a transform function
* Fix filter logic
The goal here was to filter by all conditions with logic and.
Before this fix the only the logic of the last filter is used.
* Add tests for SnapcraftVersion.transform