Skip to content

Commit

Permalink
feat: Add time.json data
Browse files Browse the repository at this point in the history
  • Loading branch information
Korver2017 committed Sep 9, 2022
1 parent 2fdad99 commit 7774c7f
Show file tree
Hide file tree
Showing 3 changed files with 77 additions and 0 deletions.
37 changes: 37 additions & 0 deletions public/data/packages.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,42 @@
"tags": ["Animation"]
}
]
},
"time": {
"title": "Time",
"resources": [
{
"id": "time-1",
"name": "Day.js",
"subtitle": "2kB JavaScript date utility library",
"url": "https://day.js.org/",
"image": "",
"tags": ["Time"]
},
{
"id": "time-2",
"name": "date-fns",
"subtitle": "Modern JavaScript date utility library",
"url": "https://date-fns.org/",
"image": "http:https://cdn.date-fns.org/card.png",
"tags": ["Time"]
},
{
"id": "time-3",
"name": "Luxon",
"subtitle": "A powerful, modern, and friendly wrapper for JavaScript dates and times.",
"url": "https://moment.github.io/luxon/#/",
"image": "",
"tags": ["Time"]
},
{
"id": "time-4",
"name": "js-joda",
"subtitle": "Immutable date and time library for JavaScript",
"url": "https://js-joda.github.io/js-joda/",
"image": "",
"tags": ["Time"]
}
]
}
}
39 changes: 39 additions & 0 deletions public/data/packages/time.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"time": {
"title": "Time",
"resources": [
{
"id": "time-1",
"name": "Day.js",
"subtitle": "2kB JavaScript date utility library",
"url": "https://day.js.org/",
"image": "",
"tags": ["Time"]
},
{
"id": "time-2",
"name": "date-fns",
"subtitle": "Modern JavaScript date utility library",
"url": "https://date-fns.org/",
"image": "http:https://cdn.date-fns.org/card.png",
"tags": ["Time"]
},
{
"id": "time-3",
"name": "Luxon",
"subtitle": "A powerful, modern, and friendly wrapper for JavaScript dates and times.",
"url": "https://moment.github.io/luxon/#/",
"image": "",
"tags": ["Time"]
},
{
"id": "time-4",
"name": "js-joda",
"subtitle": "Immutable date and time library for JavaScript",
"url": "https://js-joda.github.io/js-joda/",
"image": "",
"tags": ["Time"]
}
]
}
}
1 change: 1 addition & 0 deletions src/const/menus.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export const tools = [
export const packages = [
{ name: 'all', title: 'All' },
{ name: 'animations', title: 'Animations' },
{ name: 'time', title: 'Time' },
];

// Menu-items for the `account` page.
Expand Down

0 comments on commit 7774c7f

Please sign in to comment.