diff --git a/components/GitHubActivity/index.js b/components/GitHubActivity/index.js index 61a6216..12cd26d 100644 --- a/components/GitHubActivity/index.js +++ b/components/GitHubActivity/index.js @@ -24,7 +24,7 @@ const GitHubActivity = ({ username, period, color, defaultColor, gap }) => { }; const fetchGithubTable = async () => { - const res = await fetch(`https://corsproxy.io/?https%3A%2F%2Fgithub.com%2Fusers%2F${username}%2Fcontributions?to=${currentDateFormatted()}`); + const res = await fetch(`https://corsproxy.io/?https%3A%2F%2Fgithub.com%2Fusers%2F${username}%2Fcontributions`); setTableData(await res.text()); setTableLoading(false); }; @@ -85,6 +85,10 @@ const GitHubActivity = ({ username, period, color, defaultColor, gap }) => { gap: ${tableGap}px; border-spacing: 0; } + /* Hide the first td element in the first row. */ + .ContributionCalendar-grid > tbody > tr:first-child > td:nth-child(-n+1) { + display: none; + } /* Adjust to correct period */ .ContributionCalendar-grid > tbody > tr > td { display: none; diff --git a/deploy.sh b/deploy.sh deleted file mode 100644 index 06b2881..0000000 --- a/deploy.sh +++ /dev/null @@ -1,65 +0,0 @@ -#!/bin/bash - -# Exit on any error -set -e - -# PM2 ID -ID=0 - -# Colors -GREEN='\033[32m' -RED='\033[31m' -NC='\033[0m' - -echo "Starting deployment..." - -# Pull the latest changes from the repository -echo "Pulling latest changes from Git..." -if git pull; then - echo -e "${GREEN}Git pull successful.${NC}" -else - echo -e "${RED}Error: Failed to pull from repository.${NC}" - exit 1 -fi - -# Install any new dependencies -echo "Installing dependencies..." -if npm install; then - echo -e "${GREEN}Dependencies installed.${NC}" -else - echo -e "${RED}Error: npm install failed.${NC}" - exit 1 -fi - -# Build the app into the temporary 'temp' folder -echo "Building the next app..." -DIST_DIR=temp npm run build || { - echo -e "${RED}Error: next build failed.${NC}" - exit 1 -} - -# Ensure the build directory exists -if [ ! -d "temp" ]; then - echo -e "${RED}Error: temp directory does not exist after build.${NC}" - exit 1 -fi - -# Remove the old .next folder -echo "Removing the old .next folder..." -rm -rf .next - -# Rename the temp folder to .next -echo "Renaming temp folder to .next..." -mv temp .next - -# Unset DIST_DIR variable before reloading the app -unset DIST_DIR - -# Refresh the application with PM2 -echo "Refreshing the app with PM2..." -if pm2 reload ${ID}; then - echo -e "${GREEN}Deployment completed successfully.${NC}" -else - echo -e "${RED}Error: PM2 reload failed.${NC}" - exit 1 -fi diff --git a/pages/index.js b/pages/index.js index ca111b2..5241e6f 100644 --- a/pages/index.js +++ b/pages/index.js @@ -107,7 +107,7 @@ const Home = () => { {/* Project 2 */} - +