diff --git a/package.json b/package.json
index 6e0ca10a..c3d6075c 100644
--- a/package.json
+++ b/package.json
@@ -150,5 +150,6 @@
"vitest": "^0.34.0",
"workbox-window": "^7.0.0",
"zx": "^7.2.1"
- }
+ },
+ "packageManager": "pnpm@8.15.3"
}
diff --git a/src/components/TextareaCopyable.vue b/src/components/TextareaCopyable.vue
index 9585177d..b96965a9 100644
--- a/src/components/TextareaCopyable.vue
+++ b/src/components/TextareaCopyable.vue
@@ -17,6 +17,7 @@ const props = withDefaults(
language?: string
copyPlacement?: 'top-right' | 'bottom-right' | 'outside' | 'none'
copyMessage?: string
+ wordWrap?: boolean
}>(),
{
followHeightOf: null,
@@ -49,7 +50,7 @@ const tooltipText = computed(() => isJustCopied.value ? 'Copied!' : copyMessage.
:style="height ? `min-height: ${height - 40 /* card padding */ + 10 /* negative margin compensation */}px` : ''"
>
-
+
diff --git a/src/tools/api-tester/api-tester.vue b/src/tools/api-tester/api-tester.vue
new file mode 100644
index 00000000..f96fee11
--- /dev/null
+++ b/src/tools/api-tester/api-tester.vue
@@ -0,0 +1,155 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ Add a new HTTP Header
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Add a new Query Parameter
+
+
+
+
+
+
+
+
+
+
+
+
+ No CORS
+
+
+
+
+ Call API
+
+
+
+
+
+ Status code = {{ apiCallResult.code }}
+
+
+
+
+
+
+
diff --git a/src/tools/api-tester/index.ts b/src/tools/api-tester/index.ts
new file mode 100644
index 00000000..5ea35536
--- /dev/null
+++ b/src/tools/api-tester/index.ts
@@ -0,0 +1,12 @@
+import { World } from '@vicons/tabler';
+import { defineTool } from '../tool';
+
+export const tool = defineTool({
+ name: 'API Tester',
+ path: '/api-tester',
+ description: 'HTTP API Tester',
+ keywords: ['api', 'http', 'call', 'tester'],
+ component: () => import('./api-tester.vue'),
+ icon: World,
+ createdAt: new Date('2024-05-11'),
+});
diff --git a/src/tools/index.ts b/src/tools/index.ts
index 4b64065a..d6425d08 100644
--- a/src/tools/index.ts
+++ b/src/tools/index.ts
@@ -14,6 +14,7 @@ import { tool as regexMemo } from './regex-memo';
import { tool as markdownToHtml } from './markdown-to-html';
import { tool as pasteAsMarkdown } from './paste-as-markdown';
import { tool as aiPromptSplitter } from './ai-prompt-splitter';
+import { tool as apiTester } from './api-tester';
import { tool as pdfSignatureChecker } from './pdf-signature-checker';
import { tool as numeronymGenerator } from './numeronym-generator';
import { tool as macAddressGenerator } from './mac-address-generator';
@@ -139,6 +140,7 @@ export const toolsByCategory: ToolCategory[] = [
httpStatusCodes,
jsonDiff,
safelinkDecoder,
+ apiTester,
],
},
{