A web app for writing and sharing 301+ character Bluesky posts.

OAuth changes

Minito 9bfe915c b00fe114

+37 -6
+2 -2
index.html
··· 2 2 <html lang="en"> 3 3 <head> 4 4 <meta charset="UTF-8" /> 5 - <link rel="icon" type="image/svg+xml" href="/vite.svg" /> 5 + <link rel="icon" type="image/x-icon" href="/favicon.ico" /> 6 6 <meta name="viewport" content="width=device-width, initial-scale=1.0" /> 7 - <title>skeetlonger</title> 7 + <title>SkeetLonger</title> 8 8 </head> 9 9 <body> 10 10 <div id="root"></div>
public/favicon.ico

This is a binary file and will not be displayed.

public/logo192.png

This is a binary file and will not be displayed.

+21 -3
src/routeTree.gen.ts
··· 11 11 import { Route as rootRouteImport } from './routes/__root' 12 12 import { Route as AboutRouteImport } from './routes/about' 13 13 import { Route as IndexRouteImport } from './routes/index' 14 + import { Route as CallbackIndexRouteImport } from './routes/callback/index' 14 15 import { Route as PostUriRouteImport } from './routes/post/$uri' 15 16 16 17 const AboutRoute = AboutRouteImport.update({ ··· 21 22 const IndexRoute = IndexRouteImport.update({ 22 23 id: '/', 23 24 path: '/', 25 + getParentRoute: () => rootRouteImport, 26 + } as any) 27 + const CallbackIndexRoute = CallbackIndexRouteImport.update({ 28 + id: '/callback/', 29 + path: '/callback/', 24 30 getParentRoute: () => rootRouteImport, 25 31 } as any) 26 32 const PostUriRoute = PostUriRouteImport.update({ ··· 33 39 '/': typeof IndexRoute 34 40 '/about': typeof AboutRoute 35 41 '/post/$uri': typeof PostUriRoute 42 + '/callback': typeof CallbackIndexRoute 36 43 } 37 44 export interface FileRoutesByTo { 38 45 '/': typeof IndexRoute 39 46 '/about': typeof AboutRoute 40 47 '/post/$uri': typeof PostUriRoute 48 + '/callback': typeof CallbackIndexRoute 41 49 } 42 50 export interface FileRoutesById { 43 51 __root__: typeof rootRouteImport 44 52 '/': typeof IndexRoute 45 53 '/about': typeof AboutRoute 46 54 '/post/$uri': typeof PostUriRoute 55 + '/callback/': typeof CallbackIndexRoute 47 56 } 48 57 export interface FileRouteTypes { 49 58 fileRoutesByFullPath: FileRoutesByFullPath 50 - fullPaths: '/' | '/about' | '/post/$uri' 59 + fullPaths: '/' | '/about' | '/post/$uri' | '/callback' 51 60 fileRoutesByTo: FileRoutesByTo 52 - to: '/' | '/about' | '/post/$uri' 53 - id: '__root__' | '/' | '/about' | '/post/$uri' 61 + to: '/' | '/about' | '/post/$uri' | '/callback' 62 + id: '__root__' | '/' | '/about' | '/post/$uri' | '/callback/' 54 63 fileRoutesById: FileRoutesById 55 64 } 56 65 export interface RootRouteChildren { 57 66 IndexRoute: typeof IndexRoute 58 67 AboutRoute: typeof AboutRoute 59 68 PostUriRoute: typeof PostUriRoute 69 + CallbackIndexRoute: typeof CallbackIndexRoute 60 70 } 61 71 62 72 declare module '@tanstack/react-router' { ··· 75 85 preLoaderRoute: typeof IndexRouteImport 76 86 parentRoute: typeof rootRouteImport 77 87 } 88 + '/callback/': { 89 + id: '/callback/' 90 + path: '/callback' 91 + fullPath: '/callback' 92 + preLoaderRoute: typeof CallbackIndexRouteImport 93 + parentRoute: typeof rootRouteImport 94 + } 78 95 '/post/$uri': { 79 96 id: '/post/$uri' 80 97 path: '/post/$uri' ··· 89 106 IndexRoute: IndexRoute, 90 107 AboutRoute: AboutRoute, 91 108 PostUriRoute: PostUriRoute, 109 + CallbackIndexRoute: CallbackIndexRoute, 92 110 } 93 111 export const routeTree = rootRouteImport 94 112 ._addFileChildren(rootRouteChildren)
+13
src/routes/callback/index.tsx
··· 1 + import { createFileRoute, useNavigate } from '@tanstack/react-router' 2 + 3 + export const Route = createFileRoute('/callback/')({ 4 + component: RouteComponent, 5 + }) 6 + 7 + function RouteComponent() { 8 + const navigate = useNavigate() 9 + const redirectPath = sessionStorage.getItem('postLoginRedirect') || '/'; 10 + navigate({to:redirectPath}) 11 + sessionStorage.removeItem('postLoginRedirect'); 12 + return <div>Hello "/callback/"!</div> 13 + }
+1 -1
vite.config.ts
··· 12 12 13 13 const PROD_URL = "https://skeetlonger.app" 14 14 //This will need to update every time you start the ngrok tunnel 15 - const DEV_URL = "https://7d3e-198-51-100-42.ngrok-free.app" 15 + const DEV_URL = "https://skeetlonger.app" 16 16 17 17 function shp(url: string): string { 18 18 return url.replace(/^https?:\/\//, '');