mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-18 23:43:55 +01:00
Save responses in DB
This commit is contained in:
@@ -36,6 +36,7 @@ function App() {
|
||||
resp.body = resp.body.replace(/<head>/gi, `<head><base href="${resp.url}"/>`);
|
||||
}
|
||||
setResponse(resp);
|
||||
console.log('Response', resp.status, resp.url, { resp });
|
||||
} catch (err) {
|
||||
setError(`${err}`);
|
||||
}
|
||||
|
||||
@@ -46,7 +46,7 @@ export function Input({
|
||||
id={id}
|
||||
className={classnames(
|
||||
className,
|
||||
'bg-transparent pl-3 pr-2 h-full w-0 min-w-[100%] focus:outline-none',
|
||||
'bg-transparent min-w-0 pl-3 pr-2 w-full h-full focus:outline-none',
|
||||
)}
|
||||
{...props}
|
||||
/>
|
||||
|
||||
@@ -27,7 +27,6 @@ const syntaxExtensions: Record<string, LanguageSupport> = {
|
||||
};
|
||||
|
||||
const extensions = [basicSetup, syntaxHighlighting(myHighlightStyle)];
|
||||
export type EditorLanguage = keyof typeof syntaxExtensions;
|
||||
|
||||
export default function useCodeMirror({
|
||||
value,
|
||||
|
||||
@@ -4,11 +4,13 @@ import App from './App';
|
||||
import { HelmetProvider } from 'react-helmet-async';
|
||||
import { MotionConfig } from 'framer-motion';
|
||||
import init, { greet } from 'hello';
|
||||
import { invoke } from '@tauri-apps/api'
|
||||
|
||||
import './main.css';
|
||||
|
||||
await init();
|
||||
greet();
|
||||
await invoke('load_db');
|
||||
|
||||
ReactDOM.createRoot(document.getElementById('root') as HTMLElement).render(
|
||||
<React.StrictMode>
|
||||
|
||||
Reference in New Issue
Block a user