diff --git a/.github/workflows/update-repositories.yml b/.github/workflows/update-repositories.yml deleted file mode 100644 index 18d6084..0000000 --- a/.github/workflows/update-repositories.yml +++ /dev/null @@ -1,30 +0,0 @@ -name: Update Repositories file - -on: - workflow_dispatch: - schedule: - - cron: "0 0 1 * *" - push: - paths: - - scripts/fetchRepositories.ts - -jobs: - update-repositories: - runs-on: ubuntu-latest - env: - OUTPUT_PATH: static/repositories.json - - steps: - - uses: actions/checkout@v4 - - uses: oven-sh/setup-bun@v2 - - - name: Update repositories file - run: bun scripts/fetchRepositories.ts - - - name: Commit and push changes - run: | - git config --local user.email "action@github.com" - git config --local user.name "GitHub Action" - git add $OUTPUT_PATH - git commit -m "Update $OUTPUT_PATH" || echo "No changes to commit" - git push diff --git a/src/pages/index.tsx b/src/pages/index.tsx index 0079602..3fb442d 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -4,39 +4,49 @@ import useDocusaurusContext from '@docusaurus/useDocusaurusContext'; import Layout from '@theme/Layout'; import Heading from '@theme/Heading'; import styles from './index.module.css'; -import repositoriesData from '@site/static/repositories.json'; +import { useEffect, useState } from 'react'; interface Repository { - username: string; - repo: string; - name: string; - description: string; - downloads: number; - stars: number; - latestRelease: { - version: string; - date: string; - }; + repo: any; + latestRelease: any; } -function RepositoryCard({ repo }: { repo: Repository }) { +const repos = [ + { author: 'rehlds', repo: 'rehlds' }, + { author: 's1lentq', repo: 'ReGameDLL_CS' }, + { author: 's1lentq', repo: 'reapi' }, + // { author: 's1lentq', repo: 'metamod-r' }, + // { author: 's1lentq', repo: 'resemiclip' }, + // { author: 's1lentq', repo: 'reunion' }, + // { author: 's1lentq', repo: 'rechecker' }, + // { author: 's1lentq', repo: 'revoice' }, + // { author: 's1lentq', repo: 'refreelook' }, + // { author: 's1lentq', repo: 'localizebugfix' }, + // { author: 'WPMGPRoSToTeMa', repo: 'SafeNameAndChat' }, + // { author: 'rehlds', repo: 'relocalizebugfix' }, + // { author: 's1lentq', repo: 'hitboxtracker' }, +]; + +function RepositoryCard({ repoData }: { repoData: Repository }) { + const { repo, latestRelease } = repoData; + return (
{repo.description}
+{repo.description || 'No description available.'}