MCPcopy Create free account
hub / github.com/dailydotdev/apps / onScrapeSubmit

Function onScrapeSubmit

packages/shared/src/components/modals/NewSourceModal.tsx:192–203  ·  view source on GitHub ↗
(
    e: React.FormEvent<HTMLFormElement>,
  )

Source from the content-addressed store, hash-verified

190 };
191
192 const onScrapeSubmit = async (
193 e: React.FormEvent<HTMLFormElement>,
194 ): Promise<void> => {
195 e.preventDefault();
196 if (!user) {
197 showLogin({ trigger: loginTrigger });
198 return;
199 }
200
201 const data = formToJson<{ url: string }>(e.currentTarget);
202 await scrapeSource(data.url);
203 };
204 const onSubmitFeed = async (
205 e: React.FormEvent<HTMLFormElement>,
206 ): Promise<void> => {

Callers

nothing calls this directly

Calls 1

formToJsonFunction · 0.90

Tested by

no test coverage detected