docs: 重写README — 新增功能/优势/部署指南
This commit is contained in:
1 parent
10b9df668b
commit
3fa1473525
1 file changed
+83
-104
@@ -1,133 +1,112 @@
|
||||
<picture>
|
||||
<source srcset="./.github/logo-dark.png" media="(prefers-color-scheme: light)">
|
||||
<source srcset="./.github/logo-white.png" media="(prefers-color-scheme: dark)">
|
||||
<img src="./.github/logo-dark.png" alt="logo">
|
||||
</picture>
|
||||
# IT-TOOLS-PRO - 高级定制版工作者工具站:12个原创实用工具+卡密授权系统
|
||||
|
||||
<p align="center">
|
||||
Useful tools for developer and people working in IT. <a href="https://it-tools.tech">Try it!</a>
|
||||
</p>
|
||||
基于开源项目 [IT-Tools](https://github.com/CorentinTh/it-tools)(GPLv3)深度定制的开发者/办公工具站,新增 **12 个原创实用工具**、**卡密授权系统**与数十项体验优化,全部功能持续更新中。
|
||||
|
||||
## Functionalities and roadmap
|
||||
在线体验:https://it.88531.cn | 更多应用:https://nav.88531.cn
|
||||
|
||||
Please check the [issues](https://github.com/CorentinTh/it-tools/issues) to see if some feature listed to be implemented.
|
||||
## 新增功能
|
||||
|
||||
You have an idea of a tool? Submit a [feature request](https://github.com/CorentinTh/it-tools/issues/new/choose)!
|
||||
### 原创工具(8 个)
|
||||
|
||||
## Self host
|
||||
| 工具 | 说明 |
|
||||
|---|---|
|
||||
| 📊 批量条码生成 | EAN/UPC/Code128/Code39/DataMatrix 等 12 种码制,批量生成打包下载,尺寸颜色字号可调 |
|
||||
| 🔍 二维码条码识别 | 上传/拖拽/粘贴图片一键识别,多码混合批量输出,本地 WASM 解码不上传图片 |
|
||||
| 🌐 在线翻译 | 中英日韩等 16 种语言互译,双线路自动切换,粘贴即译自动识别源语言 |
|
||||
| 📷 图片OCR文字识别 | 本地 OCR 引擎,中文识别准确率 99%+,截图/扫描件文字一键提取 |
|
||||
| 📄 PDF文字识别 | 逐页 OCR 中英文 PDF,每页预览翻页,一键复制或导出 TXT |
|
||||
| 🏷️ 面单设计 | 快递面单模板开箱即用,支持 PDF 面单二次编辑(遮盖改字),300dpi 高清导出 |
|
||||
| 🎨 AI修图 | 去水印/修复(涂抹智能填充)、抠图去背景、4x 超分辨率、人脸修复,本地 AI 模型秒级出图 |
|
||||
| 🗂️ IT网站收藏 | 内置 91 个精选开发站点,数据存用户本地,支持自选目录同步 |
|
||||
|
||||
Self host solutions for your homelab
|
||||
### 深度改造(3 个)
|
||||
|
||||
**From docker hub:**
|
||||
- **JSON 美化和格式化**:双栏专业工作台,左侧行号编辑、右侧树视图/语法高亮切换,含 Dict/Get参数/XML/CSV 等 7 种转换
|
||||
- **PDF 工具**:合并/拆分/旋转/重排/压缩/加密/解密/水印/提取文本/页码/转图片,11 功能全程浏览器本地处理
|
||||
- **图片工具**:压缩/转换/尺寸/裁剪/旋转/滤镜/打码/EXIF/二维码生成识别/水印/拼接,12 功能本地处理
|
||||
|
||||
```sh
|
||||
docker run -d --name it-tools --restart unless-stopped -p 8080:80 corentinth/it-tools:latest
|
||||
```
|
||||
### 授权与体验
|
||||
|
||||
**From github packages:**
|
||||
- **卡密授权系统**:对接自建 CardAuth,高级功能 30 分钟免费试用,卡密激活全站通用,支持换卡密/自助撤销
|
||||
- **授权介绍页**(/pricing):功能清单、购买优势、一键购买与机器码复制
|
||||
- **生成记录**:翻译/OCR/修图/转换等 9 个工具自动留痕,数据存本地
|
||||
- **体验优化**:全站中文默认、收藏与最近使用、菜单一键展开/收起、宽屏自适应、品牌页脚等数十项细节
|
||||
|
||||
```sh
|
||||
docker run -d --name it-tools --restart unless-stopped -p 8080:80 ghcr.io/corentinth/it-tools:latest
|
||||
```
|
||||
## 优势
|
||||
|
||||
**Other solutions:**
|
||||
- **一次激活,全站通用**:输入一次卡密,全部授权功能解锁,无需逐个购买
|
||||
- **先用后买**:每个授权功能免费试用 30 分钟,觉得好用再付费
|
||||
- **隐私友好**:PDF/图片/OCR 工具全程浏览器本地处理,文件不上传服务器
|
||||
- **自建服务稳定**:翻译、OCR、AI 修图、文档转换均为自建服务,不依赖第三方接口
|
||||
- **永久套餐**:买断制授权,不按次、不按月
|
||||
- **免费工具持续更新**:20+ 基础工具永久免费,新工具不断增加
|
||||
|
||||
- [Cloudron](https://www.cloudron.io/store/tech.ittools.cloudron.html)
|
||||
- [Tipi](https://www.runtipi.io/docs/apps-available)
|
||||
- [Unraid](https://unraid.net/community/apps?q=it-tools)
|
||||
## 部署
|
||||
|
||||
## Contribute
|
||||
|
||||
### Recommended IDE Setup
|
||||
|
||||
[VSCode](https://code.visualstudio.com/) with the following extensions:
|
||||
|
||||
- [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur)
|
||||
- [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin).
|
||||
- [ESLint](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint)
|
||||
- [i18n Ally](https://marketplace.visualstudio.com/items?itemName=lokalise.i18n-ally)
|
||||
|
||||
with the following settings:
|
||||
|
||||
```json
|
||||
{
|
||||
"editor.formatOnSave": false,
|
||||
"editor.codeActionsOnSave": {
|
||||
"source.fixAll.eslint": true
|
||||
},
|
||||
"i18n-ally.localesPaths": ["locales", "src/tools/*/locales"],
|
||||
"i18n-ally.keystyle": "nested"
|
||||
}
|
||||
```
|
||||
|
||||
### Type Support for `.vue` Imports in TS
|
||||
|
||||
TypeScript cannot handle type information for `.vue` imports by default, so we replace the `tsc` CLI with `vue-tsc` for type checking. In editors, we need [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin) to make the TypeScript language service aware of `.vue` types.
|
||||
|
||||
If the standalone TypeScript plugin doesn't feel fast enough to you, Volar has also implemented a [Take Over Mode](https://github.com/johnsoncodehk/volar/discussions/471#discussioncomment-1361669) that is more performant. You can enable it by the following steps:
|
||||
|
||||
1. Disable the built-in TypeScript Extension
|
||||
1. Run `Extensions: Show Built-in Extensions` from VSCode's command palette
|
||||
2. Find `TypeScript and JavaScript Language Features`, right click and select `Disable (Workspace)`
|
||||
2. Reload the VSCode window by running `Developer: Reload Window` from the command palette.
|
||||
|
||||
### Project Setup
|
||||
### 1. 前端(工具站)
|
||||
|
||||
```sh
|
||||
# 构建(Node 18+ / pnpm)
|
||||
pnpm install
|
||||
```
|
||||
|
||||
### Compile and Hot-Reload for Development
|
||||
|
||||
```sh
|
||||
pnpm dev
|
||||
```
|
||||
|
||||
### Type-Check, Compile and Minify for Production
|
||||
|
||||
```sh
|
||||
pnpm build
|
||||
|
||||
# Docker 镜像(nginx 托管静态文件 + 反代 /relay)
|
||||
docker build -t it-tools:custom .
|
||||
docker run -d --name it-tools --restart always \
|
||||
--network ittools-net \
|
||||
--add-host=host.docker.internal:host-gateway \
|
||||
-p 8090:80 it-tools:custom
|
||||
```
|
||||
|
||||
### Run Unit Tests with [Vitest](https://vitest.dev/)
|
||||
### 2. 授权与代理服务(relay,必需)
|
||||
|
||||
Python 服务,负责授权校验(CardAuth 对接)、翻译代理、文档格式转换(内置 calibre)。
|
||||
|
||||
```sh
|
||||
pnpm test
|
||||
cd docker/it-tools-relay # server.py + Dockerfile
|
||||
docker build -t it-tools-relay:latest .
|
||||
docker run -d --name it-tools-relay --restart always \
|
||||
--network ittools-net \
|
||||
--env-file .env \
|
||||
-v relay-data:/app/data \
|
||||
-p 8091:8091 it-tools-relay:latest
|
||||
```
|
||||
|
||||
### Lint with [ESLint](https://eslint.org/)
|
||||
`.env` 配置项(**切勿提交真实密钥**):
|
||||
|
||||
```
|
||||
CARD_AUTH_URL=https://your-cardauth-instance # CardAuth 服务地址
|
||||
AUTH_USER= # CardAuth API 访问账号
|
||||
AUTH_PASS=
|
||||
KEY= # 项目密钥
|
||||
PROXY_URL= # 翻译出网代理(可选,形如 http://host.docker.internal:7890)
|
||||
```
|
||||
|
||||
### 3. 可选:本地 OCR / AI 修图后端
|
||||
|
||||
| 服务 | 端口 | 用途 |
|
||||
|---|---|---|
|
||||
| rapidocr | 5000 | 图片OCR / PDF 文字识别 |
|
||||
| iopaint | 8060 | AI 修图(去水印/抠图/超分/人脸修复) |
|
||||
|
||||
未部署时对应功能不可用,其余功能不受影响。
|
||||
|
||||
### 4. 授权体系
|
||||
|
||||
授权校验三层生效:前端 LicenseGate(试用计时浮条)→ nginx auth_request(服务端强制)→ relay /check(CardAuth 实时查询,fail-open 不锁死已付费用户)。受控功能清单见 `src/tools/license/license.ts` 与 relay `server.py` 的 `PROTECTED_TOOLS`。
|
||||
|
||||
## 开发
|
||||
|
||||
```sh
|
||||
pnpm lint
|
||||
pnpm install # 安装依赖
|
||||
pnpm dev # 开发服务器(热更新)
|
||||
pnpm build # 类型检查 + 生产构建
|
||||
pnpm test # 单元测试(Vitest)
|
||||
pnpm run script:create:tool my-tool-name # 新工具脚手架
|
||||
```
|
||||
|
||||
### Create a new tool
|
||||
推荐 VSCode + Volar 插件开发。
|
||||
|
||||
To create a new tool, there is a script that generate the boilerplate of the new tool, simply run:
|
||||
## 致谢与许可
|
||||
|
||||
```sh
|
||||
pnpm run script:create:tool my-tool-name
|
||||
```
|
||||
|
||||
It will create a directory in `src/tools` with the correct files, and a the import in `src/tools/index.ts`. You will just need to add the imported tool in the proper category and develop the tool.
|
||||
|
||||
## Contributors
|
||||
|
||||
Big thanks to all the people who have already contributed!
|
||||
|
||||
[](https://github.com/corentinth/it-tools/graphs/contributors)
|
||||
|
||||
## Credits
|
||||
|
||||
Coded with ❤️ by [Corentin Thomasset](https://corentin.tech?utm_source=it-tools&utm_medium=readme).
|
||||
|
||||
This project is continuously deployed using [vercel.com](https://vercel.com).
|
||||
|
||||
Contributor graph is generated using [contrib.rocks](https://contrib.rocks/preview?repo=corentinth/it-tools).
|
||||
|
||||
<a href="https://www.producthunt.com/posts/it-tools?utm_source=badge-featured&utm_medium=badge&utm_souce=badge-it-tools" target="_blank"><img src="https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=345793&theme=light" alt="IT Tools - Collection of handy online tools for devs, with great UX | Product Hunt" style="width: 250px; height: 54px;" width="250" height="54" /></a>
|
||||
<a href="https://www.producthunt.com/posts/it-tools?utm_source=badge-top-post-badge&utm_medium=badge&utm_souce=badge-it-tools" target="_blank"><img src="https://api.producthunt.com/widgets/embed-image/v1/top-post-badge.svg?post_id=345793&theme=light&period=daily" alt="IT Tools - Collection of handy online tools for devs, with great UX | Product Hunt" style="width: 250px; height: 54px;" width="250" height="54" /></a>
|
||||
|
||||
## License
|
||||
|
||||
This project is under the [GNU GPLv3](LICENSE).
|
||||
本项目基于 [CorentinTh/it-tools](https://github.com/CorentinTh/it-tools)(GNU GPLv3 License)开发,感谢原作者 [Corentin Thomasset](https://corentin.tech) 的开源贡献。本项目遵循 GPLv3 开源许可。
|
||||
Reference in new issue
Block a user