We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2ad7e51 commit 62cc4a5Copy full SHA for 62cc4a5
1 file changed
src/tools.ts
@@ -1,16 +1,9 @@
1
-import axios from 'axios';
2
-
3
import type { TranslationFn } from '@/i18n/types';
4
5
export function toId(str: string): string {
6
return str.toLowerCase().replace(/[^a-z0-9]/g, '');
7
}
8
9
-export async function uploadToPastie(text: string): Promise<string> {
10
- const res = await axios.post(`https://pastie.io/documents`, text);
11
- return `https://pastie.io/raw/${res.data.key as string}`;
12
-}
13
14
type Entry = {
15
abbr: string;
16
name: string;
0 commit comments