{"id":49925376,"url":"https://github.com/cloud-oc/githubportfoliosite","last_synced_at":"2026-05-16T23:18:00.350Z","repository":{"id":357885254,"uuid":"1237902572","full_name":"cloud-oc/GitHubPortfolioSite","owner":"cloud-oc","description":"由GitHub驱动的静态作品集框架，简称GPS，旨在让机会像GPS那样精准锁定你的坐标。","archived":false,"fork":false,"pushed_at":"2026-05-14T17:59:36.000Z","size":103,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-14T18:40:53.091Z","etag":null,"topics":["github"],"latest_commit_sha":null,"homepage":"https://cloud-oc.github.io/GitHubPortfolioSite/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cloud-oc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-13T16:07:14.000Z","updated_at":"2026-05-14T17:59:41.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/cloud-oc/GitHubPortfolioSite","commit_stats":null,"previous_names":["cloud-oc/githubportfoliosite"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/cloud-oc/GitHubPortfolioSite","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloud-oc%2FGitHubPortfolioSite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloud-oc%2FGitHubPortfolioSite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloud-oc%2FGitHubPortfolioSite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloud-oc%2FGitHubPortfolioSite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cloud-oc","download_url":"https://codeload.github.com/cloud-oc/GitHubPortfolioSite/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloud-oc%2FGitHubPortfolioSite/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33121932,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-16T18:38:32.183Z","status":"ssl_error","status_checked_at":"2026-05-16T18:38:29.903Z","response_time":115,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["github"],"created_at":"2026-05-16T23:17:53.842Z","updated_at":"2026-05-16T23:18:00.338Z","avatar_url":"https://github.com/cloud-oc.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GitHubPortfolioSite\n\n一个面向 GitHub Pages 的作品集网站模板：首页是深色截图网格，作品详情是一张可悬浮把玩的 3D 明信片，背面使用 Markdown 展示项目说明。\n\n## 本地开发\n\n```bash\nnpm install\nnpm run dev\n```\n\n常用命令：\n\n```bash\nnpm run typecheck\nnpm run build\nnpm run test\nnpm run test:e2e\n```\n\n## 内容结构\n\n- `public/content/projects.json` 保存作品列表和元数据。\n- `public/content/projects/\u003cslug\u003e/` 保存封面、主图和 Markdown 插图。\n- 图片路径在 JSON 和 Markdown 中使用 `./content/...`，便于 GitHub Pages 静态部署。\n\n## 管理员上传架构\n\n公开站点部署到 GitHub Pages；管理员登录和写仓库由 Cloudflare Worker 处理。\n\n前端环境变量：\n\n```bash\nVITE_ADMIN_API_BASE=https://your-worker.your-subdomain.workers.dev\n```\n\nWorker 变量和密钥：\n\n```bash\nSITE_ORIGIN=https://cloud-oc.github.io/GitHubPortfolioSite\nGITHUB_CLIENT_ID=...\nGITHUB_CLIENT_SECRET=...\nGITHUB_WRITER_TOKEN=...\nADMIN_GITHUB_LOGINS=cloud-oc\nSESSION_SECRET=...\nREPO_OWNER=cloud-oc\nREPO_NAME=GitHubPortfolioSite\nREPO_BRANCH=main\n```\n\n`GITHUB_WRITER_TOKEN` 建议使用 fine-grained PAT，并只给目标仓库 `Contents: write` 权限。GitHub OAuth App 的 callback URL 设置为：\n\n```text\nhttps://your-worker.your-subdomain.workers.dev/auth/github/callback\n```\n\n## 部署\n\nGitHub Pages 部署静态站：\n\n```bash\nnpm run build\n```\n\nCloudflare Worker 部署 API：\n\n```bash\nnpm run worker:deploy\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloud-oc%2Fgithubportfoliosite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcloud-oc%2Fgithubportfoliosite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloud-oc%2Fgithubportfoliosite/lists"}