refac
This commit is contained in:
1 parent
4b4583df62
commit
f7e85cd0bf
4 files changed
+28
-17
No files matched your search
+25
-4
@@ -3,13 +3,34 @@
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<link rel="icon" type="image/png" href="/static/favicon.png" crossorigin="use-credentials" />
|
||||
<link rel="icon" type="image/png" href="/static/favicon-96x96.png" sizes="96x96" crossorigin="use-credentials" />
|
||||
<link rel="icon" type="image/svg+xml" href="/static/favicon.svg" crossorigin="use-credentials"/>
|
||||
<link
|
||||
rel="icon"
|
||||
type="image/png"
|
||||
href="/static/favicon-96x96.png"
|
||||
sizes="96x96"
|
||||
crossorigin="use-credentials"
|
||||
/>
|
||||
<link
|
||||
rel="icon"
|
||||
type="image/svg+xml"
|
||||
href="/static/favicon.svg"
|
||||
crossorigin="use-credentials"
|
||||
/>
|
||||
<link rel="shortcut icon" href="/static/favicon.ico" crossorigin="use-credentials" />
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="/static/apple-touch-icon.png" crossorigin="use-credentials" />
|
||||
<link
|
||||
rel="apple-touch-icon"
|
||||
sizes="180x180"
|
||||
href="/static/apple-touch-icon.png"
|
||||
crossorigin="use-credentials"
|
||||
/>
|
||||
<meta name="apple-mobile-web-app-title" content="Open WebUI" />
|
||||
|
||||
<link rel="manifest" href="/manifest.json" crossorigin="use-credentials" crossorigin="use-credentials" />
|
||||
<link
|
||||
rel="manifest"
|
||||
href="/manifest.json"
|
||||
crossorigin="use-credentials"
|
||||
crossorigin="use-credentials"
|
||||
/>
|
||||
<meta
|
||||
name="viewport"
|
||||
content="width=device-width, initial-scale=1, maximum-scale=1, viewport-fit=cover"
|
||||
|
||||
@@ -167,9 +167,7 @@
|
||||
RAGConfig.DOCLING_DO_OCR === false &&
|
||||
RAGConfig.DOCLING_FORCE_OCR === true
|
||||
) {
|
||||
toast.error(
|
||||
$i18n.t('In order to force OCR, performing OCR must be enabled.')
|
||||
);
|
||||
toast.error($i18n.t('In order to force OCR, performing OCR must be enabled.'));
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -376,11 +376,7 @@
|
||||
];
|
||||
};
|
||||
|
||||
reader.readAsDataURL(
|
||||
file['type'] === 'image/heic'
|
||||
? await convertHeicToJpeg(file)
|
||||
: file
|
||||
);
|
||||
reader.readAsDataURL(file['type'] === 'image/heic' ? await convertHeicToJpeg(file) : file);
|
||||
} else {
|
||||
uploadFileHandler(file);
|
||||
}
|
||||
|
||||
@@ -544,11 +544,7 @@ ${content}
|
||||
}
|
||||
};
|
||||
|
||||
reader.readAsDataURL(
|
||||
file['type'] === 'image/heic'
|
||||
? await convertHeicToJpeg(file)
|
||||
: file
|
||||
);
|
||||
reader.readAsDataURL(file['type'] === 'image/heic' ? await convertHeicToJpeg(file) : file);
|
||||
});
|
||||
|
||||
return await uploadImagePromise;
|
||||
|
||||
Reference in new issue
Block a user