{"id":13602651,"url":"https://github.com/we-social/SorryPress","last_synced_at":"2025-04-11T09:30:46.679Z","repository":{"id":66094642,"uuid":"130777790","full_name":"we-social/SorryPress","owner":"we-social","description":" Sorry动图 VuePress版","archived":false,"fork":false,"pushed_at":"2018-05-03T13:01:54.000Z","size":12860,"stargazers_count":24,"open_issues_count":1,"forks_count":3,"subscribers_count":6,"default_branch":"develop","last_synced_at":"2024-08-04T11:01:16.931Z","etag":null,"topics":["sorry","vuejs","vuepress"],"latest_commit_sha":null,"homepage":"https://fritx.me/sorry","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/we-social.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2018-04-24T01:22:58.000Z","updated_at":"2024-07-24T09:31:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"7ada4f30-b47b-47cb-a8db-767e5df257e4","html_url":"https://github.com/we-social/SorryPress","commit_stats":null,"previous_names":["fritx/sorrypress"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/we-social%2FSorryPress","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/we-social%2FSorryPress/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/we-social%2FSorryPress/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/we-social%2FSorryPress/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/we-social","download_url":"https://codeload.github.com/we-social/SorryPress/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248368186,"owners_count":21092314,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["sorry","vuejs","vuepress"],"created_at":"2024-08-01T18:01:32.849Z","updated_at":"2025-04-11T09:30:45.917Z","avatar_url":"https://github.com/we-social.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"\u003cimg width=\"600\" src=\"pic01.png\"\u003e\n\n*Inspired by [xtyxtyx/sorry](https://github.com/xtyxtyx/sorry) and [vuejs/vuepress](https://github.com/vuejs/vuepress)*\n\n- [x] VuePress\n- [x] Element-UI 1.x\n- [x] Koa 2.x\n- [x] FFmpeg\n- [x] PM2\n- [x] Docker\n- [ ] Redis\n- [ ] Security\n\n### Setup and develop (MacOS)\n\n``` sh\nbrew install ffmpeg --with-libass\n\n# SorryPress \u003e\nnpm run all:install\nnpm run dev\n# 访问 http://localhost:8080/\n```\n\n### Deploy\n\n``` sh\nnpm i -g pm2 npm-run-all\n\n# SorryPress \u003e\nnpm start\n# 访问 http://localhost:7890/\n\n# 也可以指定一些url配置\nPORT=9999 npm start\nSITE_ROOT=/sorry/ npm start\nSERVER_ROOT=http://abc.com/ npm start\n```\n\n### Docker\n\n``` sh\ndocker build -t sorrypress .\ndocker run -p 7890:7890 -d sorrypress\n```\n\n### Notes\n\n- ffmpeg注意，如果直接覆盖原文件，会导致time缩短，文件破坏，应借助tmp\n- VuePress支持async/await进行中 [vuejs/vuepress#124](https://github.com/vuejs/vuepress/issues/124)\n- 只使用了Element-UI 1.x，因为2.x在VuePress中报错，还没解决 [vuejs/vuepress#80](https://github.com/vuejs/vuepress/pull/80)\n\n``` css\n/* 定制SorryPress的logo */\n.hero-2 {\n  position: absolute;\n  transform: rotateX(-21deg) rotateY(-20deg) rotateZ(-17deg);\n}\n```\n\n``` sh\n# 紧急将gif模板及ugc改为低于1M 利于在微信传播 注意借tmp\nfunction ffmpeg_rate() {\n  ffmpeg -i \"$1.gif\" -r $2 \"$1.tmp.gif\";\n  mv \"$1.tmp.gif\" \"$1.gif\"\n}\nffmpeg_rate wunian 10\n```\n\n``` sh\n# 给gif加入字幕\nffmpeg -i wangjingze.gif \\\n  -vf \"ass=wangjingze.ass\" \\\n  -y out.gif\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwe-social%2FSorryPress","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwe-social%2FSorryPress","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwe-social%2FSorryPress/lists"}