mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-05-25 07:00:23 +09:00
fix: build
This commit is contained in:
parent
21bf685d12
commit
c1d1cafd10
@ -840,7 +840,7 @@ export function ChatActions(props: {
|
|||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{showPlugins(currentProviderName, currentModel) && (
|
{/* {showPlugins(currentProviderName, currentModel) && (
|
||||||
<ChatAction
|
<ChatAction
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
if (pluginStore.getAll().length == 0) {
|
if (pluginStore.getAll().length == 0) {
|
||||||
@ -852,7 +852,7 @@ export function ChatActions(props: {
|
|||||||
text={Locale.Plugin.Name}
|
text={Locale.Plugin.Name}
|
||||||
icon={<PluginIcon />}
|
icon={<PluginIcon />}
|
||||||
/>
|
/>
|
||||||
)}
|
)} */}
|
||||||
{showPluginSelector && (
|
{showPluginSelector && (
|
||||||
<Selector
|
<Selector
|
||||||
multiple
|
multiple
|
||||||
|
@ -19,7 +19,6 @@ import ConfirmIcon from "../icons/confirm.svg";
|
|||||||
import ConnectionIcon from "../icons/connection.svg";
|
import ConnectionIcon from "../icons/connection.svg";
|
||||||
import CloudSuccessIcon from "../icons/cloud-success.svg";
|
import CloudSuccessIcon from "../icons/cloud-success.svg";
|
||||||
import CloudFailIcon from "../icons/cloud-fail.svg";
|
import CloudFailIcon from "../icons/cloud-fail.svg";
|
||||||
import { trackSettingsPageGuideToCPaymentClick } from "../utils/auth-settings-events";
|
|
||||||
import {
|
import {
|
||||||
Input,
|
Input,
|
||||||
List,
|
List,
|
||||||
|
@ -18,9 +18,9 @@ export type Plugin = {
|
|||||||
enable: boolean;
|
enable: boolean;
|
||||||
onlyNodeRuntime: boolean;
|
onlyNodeRuntime: boolean;
|
||||||
|
|
||||||
title: string;
|
title?: string;
|
||||||
version: string;
|
version?: string;
|
||||||
content: string;
|
content?: string;
|
||||||
authType?: string;
|
authType?: string;
|
||||||
authLocation?: string;
|
authLocation?: string;
|
||||||
authHeader?: string;
|
authHeader?: string;
|
||||||
|
@ -122,7 +122,7 @@ export function base64Image2Blob(base64Data: string, contentType: string) {
|
|||||||
return new Blob([byteArray], { type: contentType });
|
return new Blob([byteArray], { type: contentType });
|
||||||
}
|
}
|
||||||
|
|
||||||
export function uploadImage(file: File): Promise<string> {
|
export function uploadImage(file: Blob): Promise<string> {
|
||||||
if (!window._SW_ENABLED) {
|
if (!window._SW_ENABLED) {
|
||||||
// if serviceWorker register error, using compressImage
|
// if serviceWorker register error, using compressImage
|
||||||
return compressImage(file, 256 * 1024);
|
return compressImage(file, 256 * 1024);
|
||||||
@ -137,7 +137,7 @@ export function uploadImage(file: File): Promise<string> {
|
|||||||
})
|
})
|
||||||
.then((res) => res.json())
|
.then((res) => res.json())
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
console.log("res", res);
|
// console.log("res", res);
|
||||||
if (res?.code == 0 && res?.data) {
|
if (res?.code == 0 && res?.data) {
|
||||||
return res?.data;
|
return res?.data;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user