mirror of
https://github.com/simon987/sist2.git
synced 2025-04-10 14:06:45 +00:00
Fix UI bugs
This commit is contained in:
parent
cbb043f03f
commit
85ab2858f6
@ -5,7 +5,7 @@
|
||||
#define EPILOG "Made by simon987 <me@simon987.net>. Released under GPL-3.0"
|
||||
|
||||
|
||||
static const char *const Version = "1.0.4";
|
||||
static const char *const Version = "1.0.5";
|
||||
static const char *const usage[] = {
|
||||
"sist2 scan [OPTION]... PATH",
|
||||
"sist2 index [OPTION]... INDEX",
|
||||
|
File diff suppressed because one or more lines are too long
@ -170,11 +170,10 @@ function createDocCard(hit) {
|
||||
}
|
||||
|
||||
//Tags
|
||||
//todo: handle new tags
|
||||
switch (mimeCategory) {
|
||||
case "video":
|
||||
case "image":
|
||||
if (hit.hasOwnProperty("videoc")) {
|
||||
if (hit["_source"].hasOwnProperty("videoc")) {
|
||||
let formatTag = document.createElement("span");
|
||||
formatTag.setAttribute("class", "badge badge-pill badge-video");
|
||||
formatTag.appendChild(document.createTextNode(hit["_source"]["videoc"].replace(" ", "")));
|
||||
@ -182,7 +181,7 @@ function createDocCard(hit) {
|
||||
}
|
||||
break;
|
||||
case "audio": {
|
||||
if (hit.hasOwnProperty("audioc")) {
|
||||
if (hit["_source"].hasOwnProperty("audioc")) {
|
||||
let formatTag = document.createElement("span");
|
||||
formatTag.setAttribute("class", "badge badge-pill badge-audio");
|
||||
formatTag.appendChild(document.createTextNode(hit["_source"]["audioc"]));
|
||||
|
@ -1,4 +1,4 @@
|
||||
const SIZE = 20;
|
||||
const SIZE = 40;
|
||||
let mimeMap = [];
|
||||
let tree;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user