mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-07-26 06:21:18 -04:00
move some cruft from serverless API to client
This commit is contained in:
@@ -4,8 +4,6 @@ import * as Sentry from "@sentry/node";
|
||||
import * as Tracing from "@sentry/tracing"; // eslint-disable-line @typescript-eslint/no-unused-vars
|
||||
import { VercelRequest, VercelResponse } from "@vercel/node";
|
||||
import { encode } from "html-entities";
|
||||
import { DateTime } from "luxon";
|
||||
import numeral from "numeral";
|
||||
import { GraphQLClient } from "graphql-request";
|
||||
import { gql } from "graphql-tag";
|
||||
|
||||
@@ -101,9 +99,6 @@ const fetchRepos = async (sort: string, limit: number): Promise<Repository[]> =>
|
||||
({ node: repo }: { [key: string]: Repository }) => ({
|
||||
...repo,
|
||||
description: encode(repo.description),
|
||||
stargazerCount_pretty: numeral(repo.stargazerCount).format("0,0"),
|
||||
forkCount_pretty: numeral(repo.forkCount).format("0,0"),
|
||||
pushedAt_relative: DateTime.fromISO(repo.pushedAt).toRelative({ locale: "en" }),
|
||||
})
|
||||
);
|
||||
|
||||
|
Reference in New Issue
Block a user