Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cd35acb60e | ||
|
|
94bec6ed42 | ||
|
|
42436fabd3 | ||
|
|
36c50fd699 | ||
|
|
1a2cad315f | ||
|
|
1d22a129e5 | ||
|
|
2fd18a93e5 | ||
|
|
511f20e9bc |
@@ -30,34 +30,10 @@
|
||||
</q-icon>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!--div v-if="!titleList" class="q-ml-sm row items-center">
|
||||
{{ book.serno ? `${book.serno}. ` : '' }}
|
||||
<div v-if="showAuthor && book.author">
|
||||
<span class="clickable2 text-green-10" @click="selectAuthor">{{ bookAuthor }}</span>
|
||||
-
|
||||
<span class="clickable2" :class="titleColor" @click="selectTitle">{{ book.title }}</span>
|
||||
</div>
|
||||
<span v-else class="clickable2" :class="titleColor" @click="selectTitle">{{ book.title }}</span>
|
||||
</div>
|
||||
<div v-else class="q-ml-sm row items-center">
|
||||
<span class="clickable2" :class="titleColor" @click="selectTitle">{{ book.title }}</span>
|
||||
|
||||
<div v-if="book.author || bookSeries" class="row">
|
||||
-
|
||||
<div v-if="book.author">
|
||||
<span class="clickable2 text-green-10" @click="selectAuthor">{{ bookAuthor }}</span>
|
||||
|
||||
</div>
|
||||
<div v-if="bookSeries">
|
||||
<span class="clickable2" @click="selectSeries">{{ bookSeries }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div-->
|
||||
</div>
|
||||
|
||||
<div class="q-ml-sm column">
|
||||
<div v-if="(mode == 'series' || mode == 'title') && bookAuthor" class="row items-center clickable2 text-green-10">
|
||||
<div v-if="(mode == 'series' || mode == 'title') && bookAuthor" class="row items-center clickable2 text-green-10" @click="selectAuthor">
|
||||
{{ bookAuthor }}
|
||||
</div>
|
||||
|
||||
|
||||
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "inpx-web",
|
||||
"version": "1.1.1",
|
||||
"version": "1.1.3",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "inpx-web",
|
||||
"version": "1.1.1",
|
||||
"version": "1.1.3",
|
||||
"hasInstallScript": true,
|
||||
"license": "CC0-1.0",
|
||||
"dependencies": {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "inpx-web",
|
||||
"version": "1.1.1",
|
||||
"version": "1.1.3",
|
||||
"author": "Book Pauk <bookpauk@gmail.com>",
|
||||
"license": "CC0-1.0",
|
||||
"repository": "bookpauk/inpx-web",
|
||||
|
||||
@@ -72,7 +72,7 @@ class InpxParser {
|
||||
await readFileCallback({fileName: inpFile, current: ++current});
|
||||
const buf = await zipReader.extractToBuf(inpFile);
|
||||
|
||||
await this.parseInp(buf, structure, parsedCallback);
|
||||
await this.parseInp(buf, structure, inpFile, parsedCallback);
|
||||
}
|
||||
|
||||
if (this.chunk.length) {
|
||||
@@ -84,9 +84,10 @@ class InpxParser {
|
||||
}
|
||||
}
|
||||
|
||||
async parseInp(inpBuf, structure, parsedCallback) {
|
||||
async parseInp(inpBuf, structure, inpFile, parsedCallback) {
|
||||
const structLen = structure.length;
|
||||
const rows = inpBuf.toString().split('\n');
|
||||
const defaultFolder = `${path.basename(inpFile, '.inp')}.zip`;
|
||||
|
||||
for (const row of rows) {
|
||||
let line = row;
|
||||
@@ -115,6 +116,9 @@ class InpxParser {
|
||||
rec.genre = rec.genre.split(':').filter(s => s).join(',');
|
||||
}
|
||||
|
||||
if (!rec.folder)
|
||||
rec.folder = defaultFolder;
|
||||
|
||||
rec.serno = parseInt(rec.serno, 10) || 0;
|
||||
rec.size = parseInt(rec.size, 10) || 0;
|
||||
rec.del = parseInt(rec.del, 10) || 0;
|
||||
|
||||
Reference in New Issue
Block a user