mirror of
https://github.com/tiennm99/DocsGPT.git
synced 2026-10-13 16:14:10 +00:00
(feat)widget: sleeker interface
This commit is contained in:
1 parent
3e12a6bf62
commit
595007507f
3 files changed
+696
-432
No files matched your search
File diff suppressed because it is too large.
Load diff
@@ -58,7 +58,7 @@ export function fetchAnswerStreaming({
|
||||
|
||||
const reader = response.body.getReader();
|
||||
const decoder = new TextDecoder('utf-8');
|
||||
|
||||
|
||||
let buffer = '';
|
||||
|
||||
const emit = (rawLine: string) => {
|
||||
@@ -106,7 +106,7 @@ export function fetchAnswerStreaming({
|
||||
resolve();
|
||||
return;
|
||||
}
|
||||
console.error('Connection failed:', error);
|
||||
console.warn('Connection failed:', error);
|
||||
reject(error);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -19,6 +19,20 @@ declare module 'styled-components' {
|
||||
base: string;
|
||||
highlight: string;
|
||||
};
|
||||
accent?: {
|
||||
base: string;
|
||||
hover: string;
|
||||
strong: string;
|
||||
contrast: string;
|
||||
soft: string;
|
||||
link: string;
|
||||
};
|
||||
hairline?: string;
|
||||
danger?: {
|
||||
text: string;
|
||||
soft: string;
|
||||
border: string;
|
||||
};
|
||||
/** Present only in DocsGPTWidget theme (always provided when these styled components render) */
|
||||
dimensions?: {
|
||||
size: string;
|
||||
|
||||
Reference in new issue
Block a user