feat(reader): add reader API, bridge, and content handling
- Implemented readerApi for handling POST requests to the reader service.
- Created readerBridge for communication with Flutter, including methods to call handlers and open webviews.
- Defined READER_ENDPOINTS for various API endpoints related to book information and user interactions.
- Added functions to normalize offline payloads and check for valid offline data structures.
- Updated Vite configuration to improve project structure and build process, including dynamic HTML entry points and output settings.
正在显示
deploy.js
0 → 100644
| ... | @@ -5,10 +5,14 @@ | ... | @@ -5,10 +5,14 @@ |
| "scripts": { | "scripts": { | ||
| "dev": "vite", | "dev": "vite", | ||
| "build": "vite build", | "build": "vite build", | ||
| "preview": "vite preview" | "preview": "vite preview", | ||
| "deploy": "node deploy.js", | |||
| "release": "vite build && node deploy.js" | |||
| }, | }, | ||
| "devDependencies": { | "devDependencies": { | ||
| "vite": "^7.3.0", | "ali-oss": "^6.23.0", | ||
| "glob": "^11.0.0" | "chalk": "^6.0.0", | ||
| "glob": "^11.0.0", | |||
| "vite": "^8.2.1" | |||
| } | } | ||
| } | } |
File moved
public/assets/js/config.js
0 → 100644
File moved
read.html
deleted
100755 → 0
evaluating.html
→
src/evaluating.html
100755 → 100644
evaluating_result.html
→
src/evaluating_result.html
100755 → 100644
evaluating_wrong.html
→
src/evaluating_wrong.html
100755 → 100644
src/read.html
0 → 100644
read_img.html
→
src/read_img.html
100755 → 100644
read_info.html
→
src/read_info.html
100755 → 100644
src/reader/README.md
0 → 100644
read_unline.html
→
src/reader/read-app.js
100755 → 100644
src/reader/reader-api.js
0 → 100644
src/reader/reader-bridge.js
0 → 100644
src/reader/reader-config.js
0 → 100644
src/reader/reader-content.js
0 → 100644
请
注册
或者
登录
后发表评论