-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
101 lines (87 loc) · 3 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="stylesheet" href="/src/styles.css" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Kavita Import Tool</title>
<script type="module" src="/src/main.ts" defer></script>
</head>
<body>
<section class="container" id="home">
<h1>Kavita Import Tool</h1>
<p>
Select or drop eBook and Manga files to get started.
</p>
<div class="row">
<button id="import-btn">Select Files</button>
<button id="to-processing-btn" disabled>Next</button>
</div>
<ul id="files-list"></ul>
<a href="https://kavitaimporttool.mackenly.com" target="_blank" rel="noopener noreferrer">
About and Help
</a>
<a href="https://github.com/mackenly/kavita-import-tool" target="_blank" rel="noopener noreferrer">
GitHub / Bugs / Feature Requests
</a>
<p id="version"></p>
</section>
<section class="container hidden" id="processing">
<h1>Options</h1>
<p>
Select the options you would like to apply to the imported files.
</p>
<div class="row">
<label for="perfered-format">Perfered Format</label>
<select id="perfered-format">
<optgroup label="eBook">
<option value="epub">EPUB</option>
<option value="pdf">PDF</option>
</optgroup>
<optgroup label="Comic">
<option value="cbz">CBZ</option>
<option value="zip">ZIP</option>
<option value="rar">RAR</option>
<option value="cbr">CBR</option>
<option value="tar.gz">TAR.GZ</option>
<option value="7zip">7ZIP</option>
<option value="7z">7Z</option>
<option value="cb7">CB7</option>
<option value="cbt">CBT</option>
</optgroup>
<optgroup label="Image">
<option value="png">PNG</option>
<option value="jpeg">JPEG</option>
<option value="jpg">JPG</option>
<option value="webp">WEBP</option>
<option value="gif">GIF</option>
<option value="avif">AVIF</option>
</optgroup>
</select>
<button class="help" aria-label="Help"
data-message="If there are multiple files with the same name, but different formats, the selected format will be used and the others ignored.">
❔
</button>
</div>
<div class="row">
<label for="export-in-file">Export in File <input type="checkbox" id="export-in-file" checked /></label>
<button class="help" aria-label="Help"
data-message="Places all of the outputs in a file rather than directly in the selected folder.">
❔
</button>
</div>
<div class="row">
<button id="to-import-btn">Back</button>
<button id="to-export-btn">Run</button>
</div>
</section>
<section class="container hidden" id="export">
<h1>Processing</h1>
<div id="export-result">
<p>
Please wait while the files are being processed.
</p>
</div>
</section>
</body>
</html>