Remove octokit (#417)

* remove octokit

* clean up .env.sample and gist apis

* better error management
This commit is contained in:
1ilit
2025-04-21 22:42:48 +04:00
committed by GitHub
parent 9ff6d50ff2
commit 66f41d591a
9 changed files with 74 additions and 481 deletions

View File

@@ -11,7 +11,7 @@ import { $generateHtmlFromNodes } from "@lexical/html";
import { CLEAR_EDITOR_COMMAND } from "lexical";
import { Link } from "react-router-dom";
import { socials } from "../data/socials";
import { api } from "../api";
import { send } from "../api/email";
function Form({ theme }) {
const [editor] = useLexicalComposerContext();
@@ -61,7 +61,7 @@ function Form({ theme }) {
editor.update(() => {
const sendMail = async () => {
try {
await api.email.send(
await send(
`[BUG REPORT]: ${data.title}`,
$generateHtmlFromNodes(editor),
data.attachments,