Skip to content

Commit

Permalink
feat: lottie validator (#15)
Browse files Browse the repository at this point in the history
* feat(pages): validator

* feat: add validator link to header & footer

* chore: add ajv deps for validator

* feat: add tabs default ui

* feat: add checkboxes & mv options outside ui

* feat: add table default ui

* feat: update desc

* feat: add tab content ui

* feat: add loading spinner on validate

* feat: prepare ui logic before validation

* feat: add lottie schema json

* feat: ajv validation

* feat: render validation results intable

* feat: ajv validation & render; remove useeffect

* refactor: move isValidUrl to helpers dir

* refactor: move validator logic to utils

* feat: integrate glax validator logic

* feat: config filter checkboxes with minor refactoring

* feat: responsive table ui

* refactor(validator): remove js warnigns

* fix: reset textarea val

* refactor: better name for tr class

* fix(validator): schema.oneOf is not iteratable on some cases

* refactor(pages/validator): destroy validator on unmount
  • Loading branch information
Aidosmf authored Sep 25, 2024
1 parent 0245b41 commit cee5186
Show file tree
Hide file tree
Showing 11 changed files with 3,456 additions and 77 deletions.
327 changes: 255 additions & 72 deletions package-lock.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"url": "https://github.com/lottie/lottie.github.io/issues"
},
"dependencies": {
"ajv": "^8.17.1",
"bootstrap": "^5.3.2",
"gatsby": "^5.13.1",
"gatsby-plugin-feed": "^5.13.0",
Expand Down
2,258 changes: 2,258 additions & 0 deletions src/assets/lottie.schema.json

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions src/components/footer.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,11 @@ export const Footer = () => {
{ROUTES.roadmap.text}
</Nav.Link>
</Nav.Item>
<Nav.Item>
<Nav.Link as={Link} to={ROUTES.validator.route} target="_blank">
{ROUTES.validator.text}
</Nav.Link>
</Nav.Item>
<Nav.Item>
<Nav.Link as={Link} to={ROUTES.community.route} target="_blank">
{ROUTES.community.text}
Expand Down
9 changes: 9 additions & 0 deletions src/components/header.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,15 @@ export const Header = () => {
{ROUTES.roadmap.text}
</Nav.Link>
</Nav.Item>
<Nav.Item>
<Nav.Link
as={Link}
className="text-capitalize"
to={ROUTES.validator.route}
>
{ROUTES.validator.text}
</Nav.Link>
</Nav.Item>
<Nav.Item>
<Nav.Link as={Link} to={ROUTES.community.route} target="_blank">
{ROUTES.community.text}
Expand Down
4 changes: 4 additions & 0 deletions src/constants/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,8 @@ export const ROUTES = {
route: "/compliance-buttons",
text: "Compliance Buttons",
},
validator: {
route: "/validator",
text: "Validator",
},
}
Loading

0 comments on commit cee5186

Please sign in to comment.