mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 12:25:20 +00:00
refac
This commit is contained in:
parent
4b4583df62
commit
f7e85cd0bf
4 changed files with 99 additions and 88 deletions
29
src/app.html
29
src/app.html
|
|
@ -3,13 +3,34 @@
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8" />
|
<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.png" crossorigin="use-credentials" />
|
||||||
<link rel="icon" type="image/png" href="/static/favicon-96x96.png" sizes="96x96" crossorigin="use-credentials" />
|
<link
|
||||||
<link rel="icon" type="image/svg+xml" href="/static/favicon.svg" crossorigin="use-credentials"/>
|
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="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" />
|
<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
|
<meta
|
||||||
name="viewport"
|
name="viewport"
|
||||||
content="width=device-width, initial-scale=1, maximum-scale=1, viewport-fit=cover"
|
content="width=device-width, initial-scale=1, maximum-scale=1, viewport-fit=cover"
|
||||||
|
|
|
||||||
|
|
@ -167,9 +167,7 @@
|
||||||
RAGConfig.DOCLING_DO_OCR === false &&
|
RAGConfig.DOCLING_DO_OCR === false &&
|
||||||
RAGConfig.DOCLING_FORCE_OCR === true
|
RAGConfig.DOCLING_FORCE_OCR === true
|
||||||
) {
|
) {
|
||||||
toast.error(
|
toast.error($i18n.t('In order to force OCR, performing OCR must be enabled.'));
|
||||||
$i18n.t('In order to force OCR, performing OCR must be enabled.')
|
|
||||||
);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -376,11 +376,7 @@
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
reader.readAsDataURL(
|
reader.readAsDataURL(file['type'] === 'image/heic' ? await convertHeicToJpeg(file) : file);
|
||||||
file['type'] === 'image/heic'
|
|
||||||
? await convertHeicToJpeg(file)
|
|
||||||
: file
|
|
||||||
);
|
|
||||||
} else {
|
} else {
|
||||||
uploadFileHandler(file);
|
uploadFileHandler(file);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -544,11 +544,7 @@ ${content}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
reader.readAsDataURL(
|
reader.readAsDataURL(file['type'] === 'image/heic' ? await convertHeicToJpeg(file) : file);
|
||||||
file['type'] === 'image/heic'
|
|
||||||
? await convertHeicToJpeg(file)
|
|
||||||
: file
|
|
||||||
);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
return await uploadImagePromise;
|
return await uploadImagePromise;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue