Skip to content

Commit

Permalink
fix: sort sponsors by creation date (#216)
Browse files Browse the repository at this point in the history
* feat: add sponsor list generator;

* feat: added deploy action;

* fix: fixed layout;

* fix: use utm links inside tooltips;

* fix(CI): set engine version;

* chore: reverted the start button title change;

* fix: add the ability to retry the request to get a list of sponsors;

* chore: change sponsors config & fix sponsor card layout;

* chore: hide 'incognito' sponsor from the list of sponsors;

* chore: add Route4Me sponsor;

* chore: fixed resolution of utm link for manually added sponsors;

* chore: fixed sponsors' tiers resolving;

* chore: draft;

* chore(sponsors): disable utm links generation for `slotozilla-deutschland`;

* chore(draft): Improve sponsors list generator;

* chore(draft): fix origin preset;

* chore(draft): delete generated icon;

* chore(draft): add check to ensure dir exists;

* chore(draft): add check to ensure dir exists;

* chore(draft): activate GitHub data pulling;

* chore(draft): fix crown chevron styling;

* chore(draft): reduce logo min-width;

* chore(draft): add missed `route4me` light logo;

* chore(draft): add a title for readme sponsor block;

* chore(draft): fix description resolving;

* chore(draft): add utm links for sponsors rendered to markdown;

* chore(draft): respect autoUTMLinks for utm links generation;

* chore(draft): set user theme timeout to 24 hours;

* chore(draft): set utm link for markdown output;

* chore(draft): add sponsors' logos;

* chore(draft): fix sponsor.json;

* chore(draft): fix sponsor.json;

* chore(draft): add principal logo;

* chore(draft): add a hotfix for svg logos;

* chore(draft): use image metadata instead of file extension to determine image format;

* chore(draft): add Stytch & Descope links;

* chore(draft): fix utm link generator to respect sponsor's params;

* chore(draft): add page active link rendering;

* chore(draft): notes block refactoring;

* chore(draft): remove graphql packages;

* chore(sponsors): add website link for buzzoid.com;

* chore(sponsors): remove Route4me from the list;

* chore(sponsors): Fixed relative URLs for dark theme logos in the Readme sponsor generator;

* chore(sponsors): sort sponsors in Readme by date instead of by donation point value.
  • Loading branch information
DigitalBrainJS authored Nov 13, 2024
1 parent 4dd1bb3 commit ad7cf66
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/updateData.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Handlebars.registerHelper("short", function (...args) {

let s = options.fn(this)?.trim();

if (s.length > max) {
if (s.length > max + 1) {
s = s.slice(0, max) + '...';
}

Expand Down Expand Up @@ -352,7 +352,9 @@ const renderMarkdownSponsors = async (sponsors) => {
}, './templates/sponsors.hbs');
}

const filterSponsors = (fn) => Object.values(sponsors).filter(fn);
const filterSponsors = (fn) => Object.values(sponsors)
.filter(fn)
.sort((a, b) => new Date(a.createdAt) - new Date(b.createdAt));

const rendered = [];

Expand Down

0 comments on commit ad7cf66

Please sign in to comment.