Unverified Commit 8aea1e3c authored by Bas950's avatar Bas950 Committed by GitHub
Browse files

feat: added repo card hide border option (#488)

* 🚀 Prettier config

* 🚀

 hide_border for Repo Card

* fix: wrong total commits (#490)

* chore: run prettier on all files

* chore: lol lets add the trailing commas

Co-authored-by: default avatarAnurag Hazra <hazru.anurag@gmail.com>
parent 3c6c142c
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -9,4 +9,7 @@ community_bridge: # Replace with a single Community Bridge project-name e.g., cl
liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
otechie: # Replace with a single Otechie username
custom: ["https://www.paypal.me/anuraghazra", "https://www.buymeacoffee.com/anuraghazra"] # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
custom: [
    "https://www.paypal.me/anuraghazra",
    "https://www.buymeacoffee.com/anuraghazra",
  ] # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
+2 −1
Original line number Diff line number Diff line
@@ -26,7 +26,8 @@ jobs:
          cache-name: cache-node-modules
        with:
          path: ~/.npm
          key: ${{ runner.os }}-npm-cache-${{ hashFiles('**/package-lock.json') }}
          key:
            ${{ runner.os }}-npm-cache-${{ hashFiles('**/package-lock.json') }}
          restore-keys: |
            ${{ runner.os }}-npm-cache-

.prettierignore

0 → 100644
+5 −0
Original line number Diff line number Diff line
node_modules
*.json
*.md
coverage
.vercel

.prettierrc.json

0 → 100644
+6 −0
Original line number Diff line number Diff line
{
  "trailingComma": "all",
  "useTabs": false,
  "endOfLine": "auto",
  "proseWrap": "always"
}
 No newline at end of file
+3 −3
Original line number Diff line number Diff line
@@ -40,13 +40,13 @@ module.exports = async (req, res) => {
    stats = await fetchStats(
      username,
      parseBoolean(count_private),
      parseBoolean(include_all_commits)
      parseBoolean(include_all_commits),
    );

    const cacheSeconds = clampValue(
      parseInt(cache_seconds || CONSTANTS.TWO_HOURS, 10),
      CONSTANTS.TWO_HOURS,
      CONSTANTS.ONE_DAY
      CONSTANTS.ONE_DAY,
    );

    res.setHeader("Cache-Control", `public, max-age=${cacheSeconds}`);
@@ -65,7 +65,7 @@ module.exports = async (req, res) => {
        text_color,
        bg_color,
        theme,
      })
      }),
    );
  } catch (err) {
    return res.send(renderError(err.message, err.secondaryMessage));
Loading