mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-01-19 18:17:58 +01:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a83e094f00 |
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"productName": "yaak",
|
||||
"version": "2024.5.1",
|
||||
"version": "2024.5.2",
|
||||
"identifier": "app.yaak.desktop",
|
||||
"build": {
|
||||
"beforeBuildCommand": "npm run build",
|
||||
|
||||
@@ -1,10 +1,12 @@
|
||||
import { invoke } from '@tauri-apps/api/core';
|
||||
import { useActiveEnvironmentId } from './useActiveEnvironmentId';
|
||||
import { useClipboardText } from './useClipboardText';
|
||||
|
||||
export function useCopyAsCurl(requestId: string) {
|
||||
const [, copy] = useClipboardText();
|
||||
const environmentId = useActiveEnvironmentId();
|
||||
return async () => {
|
||||
const cmd: string = await invoke('cmd_request_to_curl', { requestId });
|
||||
const cmd: string = await invoke('cmd_request_to_curl', { requestId, environmentId });
|
||||
copy(cmd);
|
||||
return cmd;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user