Skip to content

Commit f04941b

Browse files
committed
清理分支
0 parents  commit f04941b

48 files changed

Lines changed: 9335 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.eslintignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/dist
2+
/node_modules
3+
/src-tauri

.eslintrc

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"root": true,
3+
"extends": "@taiyuuki/eslint-config-vue-unimport",
4+
"rules": {
5+
"import/no-unresolved": [
6+
"error",
7+
{
8+
"ignore": [
9+
"uno.css",
10+
"~pages",
11+
"virtual:generated-layouts",
12+
"virtual:generated-pages",
13+
"virtual:vue-component-preview"
14+
]
15+
}
16+
]
17+
}
18+
}

.gitignore

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
**/target
10+
*.epub
11+
12+
node_modules
13+
dist
14+
dist-ssr
15+
*.local
16+
17+
# Editor directories and files
18+
.vscode/*
19+
!.vscode/extensions.json
20+
.idea
21+
.DS_Store
22+
*.suo
23+
*.ntvs*
24+
*.njsproj
25+
*.sln
26+
*.sw?

.vscode/extensions.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"recommendations": [
3+
"Vue.volar",
4+
"tauri-apps.tauri-vscode",
5+
"rust-lang.rust-analyzer"
6+
]
7+
}

.vscode/settings.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"rust-analyzer.linkedProjects": [
3+
".\\src-tauri\\Cargo.toml",
4+
".\\src-tauri\\Cargo.toml"
5+
]
6+
}

LICENSE.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2022 Taiyuuki
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sub license, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6+
7+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8+
9+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

README.md

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
<p align="center">
2+
<img src="https://taiyuuki.github.io/elepub-web-build/icons/logo.png" style="width:100px;" />
3+
</p>
4+
5+
6+
<h1 align="center">elepub</h1>
7+
8+
<p align="center">
9+
<a href="https://github.com/taiyuuki/elepub"><img alt="GitHub Repo stars" src="https://img.shields.io/github/stars/taiyuuki/elepub?style=social"></a>
10+
</p>
11+
将漫画图片打包成 epub 的小工具,适配多看阅读,推荐用于条漫,页漫虽然也能用,但如果存在跨页,阅读体验不会好。
12+
13+
## 下载和使用
14+
15+
- [Windows版下载](https://github.com/taiyuuki/elepub/releases)
16+
- Mac版请下载源码自行打包,由于我并没有对其进行配置,如果打包失败,请参考Tauri的[文档](https://tauri.app/v1/guides/building/macos)
17+
- [在线版](https://taiyuuki.github.io/elepub-web-build/)
18+
在线版的生产速度会慢很多,且最大支持2GB的文档。如果图片较多、较大,建议使用Windows版。
19+
20+
导入图片如果遇到杀毒软件安全警告,请关闭杀毒软件或选择允许。开源项目,请放心使用。
21+
22+
## 更新 3.0.1
23+
24+
* 3.0.1 修正bug 显示进度
25+
26+
`3.0.0`使用`Tauri`重构了整个项目,界面基本维持原样,但得益于`Tauri`使用`Rust`的优势,大幅提高了EPUB的生产速度(提速90%以上),大幅减少软件包大小(68MB→2.8MB),软件安装后占用也更小(150MB→6MB)。
27+
28+
如果遇到问题,欢迎提[issue](https://github.com/taiyuuki/elepub/issues),我会尽快修复。
29+
30+
Web + electron的版本理论上不再更新,但代码保留在本仓库[electron](https://github.com/taiyuuki/elepub/tree/electron)分支。
31+
32+
## 项目运行
33+
34+
本项目使用<del> electron</del> Tauri、Vue、Quasar 等框架开发。
35+
36+
### 安装依赖
37+
38+
```bash
39+
pnpm install
40+
```
41+
42+
### 开发模式运行
43+
44+
```bash
45+
pnpm tauri dev
46+
```
47+
48+
### 打包
49+
50+
```bash
51+
pnpm tauri build
52+
```

index.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>Tauri + Vue + TS</title>
8+
</head>
9+
10+
<body>
11+
<div id="app"></div>
12+
<script type="module" src="/src/main.ts"></script>
13+
</body>
14+
</html>

package.json

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"name": "elepub",
3+
"private": true,
4+
"version": "3.0.1",
5+
"type": "module",
6+
"scripts": {
7+
"dev": "vite",
8+
"build": "vue-tsc --noEmit && vite build",
9+
"tauri:dev": "tauri dev",
10+
"tauri:build": "tauri build",
11+
"lint": "eslint --ext .js,.ts,.vue ./"
12+
},
13+
"dependencies": {
14+
"@quasar/extras": "^1.16.2",
15+
"@taiyuuki/utils": "^0.2.1",
16+
"@tauri-apps/api": "^1.2.0",
17+
"quasar": "^2.11.10",
18+
"vue": "^3.2.45"
19+
},
20+
"devDependencies": {
21+
"@iconify-json/bi": "^1.1.16",
22+
"@iconify-json/flat-color-icons": "^1.1.6",
23+
"@iconify-json/ic": "^1.1.13",
24+
"@quasar/vite-plugin": "^1.3.0",
25+
"@taiyuuki/eslint-config-vue-unimport": "^0.0.5",
26+
"@taiyuuki/unocss-preset": "^0.0.4",
27+
"@tauri-apps/cli": "^1.2.2",
28+
"@types/node": "^18.7.10",
29+
"@unocss/preset-attributify": "^0.51.2",
30+
"@unocss/preset-icons": "^0.51.2",
31+
"@unocss/preset-uno": "^0.51.2",
32+
"@vitejs/plugin-vue": "^4.0.0",
33+
"eslint": "^8.38.0",
34+
"eslint-plugin-import": "^2.27.5",
35+
"sass": "^1.32.0",
36+
"typescript": "^4.9.5",
37+
"unocss": "^0.51.2",
38+
"unplugin-auto-import": "^0.15.2",
39+
"unplugin-vue-components": "^0.24.1",
40+
"vite": "^4.2.1",
41+
"vue-tsc": "^1.0.11"
42+
}
43+
}

0 commit comments

Comments
 (0)