This is an extremely crude example for a function that uses your openapi-typescript
output to make a dynamic hook with react-query
.
If you find this useful and make changes, please comment them!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { createContext, ReactElement, ReactNode, useContext } from 'react'; | |
const SlugContext = createContext<{ slug: string[]; parsedSlug: string }>({ slug: [], parsedSlug: '/' }); | |
const SlugRouteContext = createContext({ route: '/' }); | |
interface SlugProps { | |
children: ReactElement<SlugRouteProps>[] | ReactElement<SlugRouteProps>; | |
slug: string[]; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="container"> | |
<div class="cf-holder"> | |
::IM_UNDER_ATTACK_BOX:: | |
<div></div> | |
<div class="bg-holder"><div class="bg"/></div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"autoSkipOnMusicVideosUpdate":true,"categoryPillUpdate":true,"categorySelections":[{"name":"sponsor","option":2},{"name":"exclusive_access","option":0},{"name":"selfpromo","option":1}],"disableSkipping":false,"hideVideoPlayerControls":true,"invidiousInstances":["inv.bp.projectsegfau.lt","inv.odyssey346.dev","inv.riverside.rocks","inv.vern.cc","invidio.xamh.de","invidious.baczek.me","invidious.dhusch.de","invidious.drivet.xyz","invidious.esmailelbob.xyz","invidious.flokinet.to","invidious.namazso.eu","invidious.nerdvpn.de","invidious.privacydev.net","invidious.silur.me","invidious.slipfox.xyz","invidious.snopyta.org","invidious.tiekoetter.com","invidious.weblibre.org","vid.puffyan.us","y.com.sb","yewtu.be","yt.artemislena.eu","yt.funami.tech"],"isVip":false,"minutesSaved":292.4541237333335,"payments":{"chaptersAllowed":true,"freeAccess":true,"lastCheck":1679365216135,"lastFreeCheck":1671673581565,"licenseKey":null},"permissions":{"chapter":false,"exclusive_access":true,"filler":true,"interaction":true,"intro" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="main"> | |
<div> | |
<h1>Domain Misconfigured</h1> | |
<p>The domain <span id="domain">unknown</span> is not configured to any website.</p> | |
<p class="disc">Domain managed by <a href="https://ashmw.com">AshMW Technolegies</a></p> | |
</div> | |
</div> |
Hey, I have temporarily disabled embedl.ink as people have been using it to do some really not nice stuff. The plan is to at some point rewrite the project :)
Sorry, AshMW https://ashmw.com