{"id":25672921,"url":"https://github.com/lanseria/word-replacer-tauri","last_synced_at":"2025-07-28T05:07:14.157Z","repository":{"id":279179710,"uuid":"935504151","full_name":"lanseria/word-replacer-tauri","owner":"lanseria","description":"A simple word replacer written in Rust using Tauri.","archived":false,"fork":false,"pushed_at":"2025-03-18T07:16:59.000Z","size":4023,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-18T08:27:10.161Z","etag":null,"topics":["replacer","tauri","unocss","vue3","word"],"latest_commit_sha":null,"homepage":"https://www.bilibili.com/video/BV1oy9cYgEjh/","language":"Vue","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/lanseria.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2025-02-19T14:54:42.000Z","updated_at":"2025-03-18T07:17:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"7e8d2119-dc48-4606-bb8a-f4aa87f22be4","html_url":"https://github.com/lanseria/word-replacer-tauri","commit_stats":null,"previous_names":["lanseria/word-replacer-tauri"],"tags_count":3,"template":true,"template_full_name":"Uninen/tauri-vue-template","purl":"pkg:github/lanseria/word-replacer-tauri","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lanseria%2Fword-replacer-tauri","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lanseria%2Fword-replacer-tauri/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lanseria%2Fword-replacer-tauri/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lanseria%2Fword-replacer-tauri/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lanseria","download_url":"https://codeload.github.com/lanseria/word-replacer-tauri/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lanseria%2Fword-replacer-tauri/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267464522,"owners_count":24091505,"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","status":"online","status_checked_at":"2025-07-28T02:00:09.689Z","response_time":68,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["replacer","tauri","unocss","vue3","word"],"created_at":"2025-02-24T12:19:52.413Z","updated_at":"2025-07-28T05:07:14.149Z","avatar_url":"https://github.com/lanseria.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"# word-replacer-tauri\n\nA simple word replacer written in Rust using Tauri.\n\n## 介绍\n\n这个项目是一个简单 Word `docx` 文字替换器，使用`Rust`编写，并使用`Tauri`作为前端框架。\n借用了 [wr-cl](https://github.com/lanseria/wr-cl) 可执行文件，以实现跨平台(windows/macos-arm/linux)\n\n![](./docs/demo.jpg)\n\n## 开发\n\n根据不同的平台，下载 `wr-cl` 压缩包\n\n- [wr-cl-linux.tar.gz](https://github.com/lanseria/wr-cl/releases/download/v1.0.0/wr-cl-linux.tar.gz)\n- [wr-cl-macos.tar.gz](https://github.com/lanseria/wr-cl/releases/download/v1.0.0/wr-cl-macos.tar.gz)\n- [wr-cl-windows.exe.tar.gz](https://github.com/lanseria/wr-cl/releases/download/v1.0.0/wr-cl-windows.exe.tar.gz)\n\n解压后有以下两个文件\n\n- `wr-cl`\n- `config.json.template`\n\n将这两个文件分别移动至 `src-tauri/binaries/`, `src-tauri/resources/` 目录下\n\n并分别重命名为 `wr-cl`, `wr-cl-$TARGET_TRIPLE` , `config.json`\n\n## 已知 wr-cl 的参数说明\n\n```json\n{\n  \"replacements\": {\n    \"pattern_type\": \"plain|regex\",\n    \"rules\": [\n      {\n        \"old_text\": \"\\\\b公司A\\\\b\",\n        \"new_text\": \"DeepSeek\",\n        \"options\": {\n          \"case_sensitive\": true,\n          \"whole_word\": true,\n          \"preserve_format\": true\n        }\n      }\n    ]\n  },\n  \"file_settings\": {\n    \"input_path\": \"./docs\",\n    \"file_types\": [\".docx\"],\n    \"output_path\": \"./modified\"\n  },\n  \"advanced\": {\n    \"max_workers\": 4,\n    \"timeout\": 30\n  }\n}\n```\n\n根据这个参数说明，使用 vue3 以及 unocss 实现一个简单页面\n\n都使用 input 来实现，使用 vue3 的响应式特性，实现双向绑定，做好一定的排版，重复的样式请使用 unocss 的 shortcut 来实现\n\n## 发布\n\n```bash\ngit tag -d v1.1.0\ngit push origin --delete v1.1.0\ngit tag -a v1.1.0 -m \"Release version 1.1.0\"\ngit push origin v1.1.0\n```\n\n## 许可证\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flanseria%2Fword-replacer-tauri","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flanseria%2Fword-replacer-tauri","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flanseria%2Fword-replacer-tauri/lists"}