{"id":23191392,"url":"https://github.com/aaamoon/react1s","last_synced_at":"2025-04-09T10:10:34.603Z","repository":{"id":65315377,"uuid":"561125782","full_name":"aaamoon/react1s","owner":"aaamoon","description":"Click React components in browser to instantly open the source in Editor","archived":false,"fork":false,"pushed_at":"2024-08-29T01:51:17.000Z","size":13372,"stargazers_count":218,"open_issues_count":1,"forks_count":15,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-02T03:36:46.237Z","etag":null,"topics":["browser-extension","chrome-extension","react"],"latest_commit_sha":null,"homepage":"https://chrome.google.com/webstore/detail/react1s/gpcoahaomdfmekggblkckofkgjggnjlp","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aaamoon.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}},"created_at":"2022-11-03T02:09:20.000Z","updated_at":"2025-03-31T12:56:21.000Z","dependencies_parsed_at":"2023-11-13T08:49:48.920Z","dependency_job_id":"c8451913-1761-40d0-9f32-aa17ac1b9204","html_url":"https://github.com/aaamoon/react1s","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aaamoon%2Freact1s","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aaamoon%2Freact1s/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aaamoon%2Freact1s/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aaamoon%2Freact1s/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aaamoon","download_url":"https://codeload.github.com/aaamoon/react1s/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248018061,"owners_count":21034048,"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":["browser-extension","chrome-extension","react"],"created_at":"2024-12-18T12:17:09.232Z","updated_at":"2025-04-09T10:10:34.577Z","avatar_url":"https://github.com/aaamoon.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\r\n支持 React 项目本地开发时 \u003ckbd\u003eOption(Alt)+Click\u003c/kbd\u003e 页面上对应元素即可跳转到编辑器对应组件行列。\r\n\r\n目前也支持了 Vue3 项目的跳转，不过只能跳转到文件，无法跳转到具体行列。\r\n\r\n![](/assets/tutorial.gif)\r\n\r\n\r\n### 使用\r\n安装地址： [chrome应用商店](https://chrome.google.com/webstore/detail/react1s/gpcoahaomdfmekggblkckofkgjggnjlp)\r\n\r\nps: 可能有部分朋友连接不上chrome应用商店，可以将本项目中build文件夹中的zip包下载然后自行本地上传到浏览器拓展中\r\n\r\n### 插件配置\r\n目前支持 VS Code、VS Code-insiders、WebStorm 和自定义路径，默认配置是VS Code，可点击插件选项调整配置\r\n![插件配置面板](/assets/editor.png)\r\n\r\n\r\n### QA\r\n\u003eQ: Option(Alt)+Click不起作用\r\n\u003e\r\n\u003eA: 对于一些比较旧的React项目，babel 配置可能需要[@babel/plugin-transform-react-jsx-source](https://babeljs.io/docs/en/babel-plugin-transform-react-jsx-source)支持\r\n\r\n\u003eQ: 在 WSL2 环境中如何使用\r\n\u003e\r\n\u003eA: 在插件配置面板选择自定义路径，然后填入 `vscode://vscode-remote/wsl+Ubuntu/${fileName}:${lineNumber}:${columnNumber}`，其中的 Ubuntu 可替换成自己的 WSL2 发行版名称\r\n\r\n\u003eQ: 在 VS Code 最新版本(1.84)中使用时，控制台报错，无法跳转到编辑器，这是由于 VS Code 的跳转 url 策略更新导致的问题，临时解决方案如下\r\n\u003e\r\n\u003eA: 在插件配置面板选择自定义路径，然后填入 `vscode://file${fileName}:${lineNumber}:${columnNumber}`\r\n\r\n### 参考项目\r\n\r\n[click-to-component](https://github.com/ericclemmons/click-to-component)\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faaamoon%2Freact1s","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faaamoon%2Freact1s","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faaamoon%2Freact1s/lists"}