Skip to content

Commit

Permalink
feat(cli): 支持命令行
Browse files Browse the repository at this point in the history
  • Loading branch information
aooiuu committed May 30, 2024
1 parent 8c3fe96 commit ca49114
Show file tree
Hide file tree
Showing 6 changed files with 50 additions and 27 deletions.
53 changes: 28 additions & 25 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,17 @@

> 软件不提供内容, 也不提供任何规则, 但你可以通过编写 [规则](https://aooiuu.github.io/any-reader/rule/), 控制呈现内容, [查看文档](https://aooiuu.github.io/any-reader/)
## VSCode 插件
QQ群: 50057637

## 快速体验

```sh
npx any-reader
```

## 多端支持

### VSCode 插件

<p align="left">
<a href="https://marketplace.visualstudio.com/items?itemName=aooiu.any-reader">
Expand All @@ -34,8 +44,6 @@

[文档](https://aooiuu.github.io/any-reader/vsc/)

### 功能

- [x] 本地小说阅读
- [x] txt格式
- [x] epub格式
Expand All @@ -50,37 +58,28 @@
- [x] 收藏
- [x] 历史记录

## 桌面端
### 桌面端

[文档](https://aooiuu.github.io/any-reader/desktop/)

### 功能

- [x] 本地小说阅读
- [x] txt格式
- [x] epub格式
- [x] 小说章节识别
- [x] 在线小说阅读
- [x] 自定义书源规则
- [x] 自定义热键
- [x] 漫画
- [x] 视频
- [x] 聚合搜索
- [x] 发现页分类排行榜
- [x] 收藏
- [x] 历史记录

<img src="https://github.com/aooiuu/any-reader/assets/28108111/d4629d6f-b0c0-48cd-830f-f4b1ea4e4a2c" width="600"/>
| - | - |
| :-------------------------------------------------------------------------------------------------: | :-------------------------------------------------------------------------------------------------: |
| ![image](https://github.com/aooiuu/any-reader/assets/28108111/bf5b9edf-8b1e-4db5-adfb-1b1300f57a4a) | ![image](https://github.com/aooiuu/any-reader/assets/28108111/3d001367-ff2d-4339-a617-0700b492f601) |
| ![image](https://github.com/aooiuu/any-reader/assets/28108111/1e8fcb4e-2ca5-49a9-ba7e-d5c7ac19856b) | ![image](https://github.com/aooiuu/any-reader/assets/28108111/a732f2ce-452e-4525-8059-7e1938fcbe01) |

## 网页端

🚧 开发中
### 网页端

[文档](https://aooiuu.github.io/any-reader/browser/)

<img src="https://github.com/aooiuu/any-reader/assets/28108111/6166cc3e-f5e5-42ca-a616-5e30157f6c89" width="600"/>

## Docker
快速体验:

```sh
npx any-reader
```

### Docker

快速体验:

Expand All @@ -91,6 +90,10 @@ docker run -d --name any-reader -p 8899:8899 any-reader
# 浏览器访问 http://localhost:8899/
```

### 移动端

https://github.com/mabDc/eso

## 声明

- 请大家支持正版, 所有资源来自网上, 该软件不参与任何制作, 上传, 储存等内容, 禁止传播违法资源
Expand Down
11 changes: 11 additions & 0 deletions docs/cli/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
outline: deep
---

# CLI

快速体验:

```sh
npx any-reader
```
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,10 @@
"electron:build": "npm -C packages/web run electron:build",
"vscode:server": "npm -C packages/web run vscode:dev",
"vscode:dev": "npm-run-all build:core build:shared --parallel vscode:server server",
"server:build": "npm -C packages/server run build",
"cli:build-tpl": "npm -C packages/web run cli:build",
"cli:build-js": "npm -C packages/cli run build",
"cli:build": "npm-run-all cli:build-tpl cli:build-js"
"cli:build": "npm-run-all server:build cli:build-tpl cli:build-js"
},
"lint-staged": {
"*.{vue,js,ts}": "eslint --fix"
Expand Down
7 changes: 7 additions & 0 deletions packages/cli/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# any-reader

快速体验网页版

```sh
npx any-reader
```
1 change: 1 addition & 0 deletions packages/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"types": "./dist/index.d.ts",
"files": ["dist"],
"scripts": {
"build": "unbuild",
"test": "echo \"Error: no test specified\" && exit 1",
"dev": "esno watch src/run.ts"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/vscode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"displayName": "any-reader",
"description": "摸鱼,自定义规则多站点聚合搜索阅读小说、漫画。包含JS规则解析库和VSCode插件。支持本地小说 TXT、EPUB",
"icon": "resources/icon.png",
"version": "1.3.1",
"version": "1.3.2",
"publisher": "aooiu",
"qna": "https://github.com/aooiuu/any-reader/issues",
"bugs": {
Expand Down

0 comments on commit ca49114

Please sign in to comment.