{"id":16542628,"url":"https://github.com/moeakwak/code-plus","last_synced_at":"2025-10-28T15:30:56.357Z","repository":{"id":42205832,"uuid":"472433580","full_name":"moeakwak/code-plus","owner":"moeakwak","description":"CodePlus 是一个用于快速保存刷题记录到Notion笔记的Chrome插件，目前支持 Acwing、Leetcode","archived":false,"fork":false,"pushed_at":"2022-09-18T04:50:40.000Z","size":1486,"stargazers_count":16,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-01T15:40:54.205Z","etag":null,"topics":["acwing","chrome-extension","leetcode","notion","notion-api"],"latest_commit_sha":null,"homepage":"","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/moeakwak.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}},"created_at":"2022-03-21T17:02:27.000Z","updated_at":"2024-09-11T06:04:35.000Z","dependencies_parsed_at":"2023-01-18T12:00:54.567Z","dependency_job_id":null,"html_url":"https://github.com/moeakwak/code-plus","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moeakwak%2Fcode-plus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moeakwak%2Fcode-plus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moeakwak%2Fcode-plus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moeakwak%2Fcode-plus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/moeakwak","download_url":"https://codeload.github.com/moeakwak/code-plus/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238672031,"owners_count":19511197,"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":["acwing","chrome-extension","leetcode","notion","notion-api"],"created_at":"2024-10-11T18:58:09.096Z","updated_at":"2025-10-28T15:30:55.948Z","avatar_url":"https://github.com/moeakwak.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Code Plus\n\nCodePlus 是一个用于快速保存算法刷题记录到 Notion 笔记的 Chrome 浏览器插件，目前支持以下部分平台（括号内为插件将会激活的链接，不匹配的链接点击无响应）：\n\n- [x] AcWing (https://www.acwing.com/problem/content/1/)\n- [x] LeetCode CN (https://leetcode.cn/problems/two-sum/)\n- [ ] Codeforces\n- [ ] CCF cspro\n- [ ] Luogu\n\n## 使用说明\n\n### 下载并安装插件\n\n- 方法一：从 release 下载\n- 方法二：自行编译\n\n下载 zip 文件后请解压。在浏览器插件管理页面打开开发者模式，选择加载已解压的插件目录即可。\n\n### 创建 Notion 集成\n\n1. 创建一个数据库页面，需要有如下 properties（名称必须分毫不差，括号内的是属性的类型）：\n\n- `Link` (url)\n- `From` (select)\n- `Title` (title, 由默认的 Name 改名而来)\n- `Date` (date)\n- `Status` (select)\n- `Difficulty` (select)\n- `Tags` (multi-select)\n\n  如下：\n\n  \u003cimg src=\"assets//properties.png\" alt=\"properties\" style=\"width:200px;\" /\u003e\n\n2. 参考 [Notion 官方说明](https://developers.notion.com/docs/getting-started#getting-started) 完成 step 1 ~ step 2 的步骤，记好你的 database id，并且授权给你自己创建的 integration.\n\n### 配置插件\n\n安装后会弹出设置页面，填写上一步获取到的 secret 和 database_id.\n\n注意：如果选择在创建的页面中包含题目描述，则描述中暂不支持：\n\n- 数学公式（会加上 `$` 或者 `$$` 符号）\n- 图片（会变成 url. 由于 Notion 不支持插入外链图片，你需要自己手动操作）\n\n### 使用方法\n\n点击工具栏上的插件图标即可，会弹出一个预览页面，向你展示解析好的 json：\n\n![preview](assets//preview.png)\n\n如果有误你可以手动在文本框内修改。\n\n在设置好 Status 后，点击 save to notion 按钮即可。\n\n没有反应的话说明不支持当前页面。\n\n创建的页面效果如下：\n\n\u003cimg src=\"assets//notion-page.png\" alt=\"notion-page.png\" style=\"width: 500px;\" /\u003e\n\n## 开发\n\n### 手动编译\n\n首先克隆仓库，由于含有子仓库，你需要添加 `--recursive` 选项。\n\n```\ngit clone https://github.com/moeakwak/code-plus.git --recursive\n```\n\n编译：\n\n```\ncd lib/martian\nnpm install\ncd ../..\nnpm install\nnpm run build\n```\n\n注意到必须先在 `lib/martian` 中安装依赖，否则编译时会出错。\n\nFor more details, see [Chrome Extension CLI](https://github.com/dutiyesh/chrome-extension-cli)'s description.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoeakwak%2Fcode-plus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmoeakwak%2Fcode-plus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoeakwak%2Fcode-plus/lists"}