diff --git a/surfsense_web/.env.example b/surfsense_web/.env.example index 157bfaa37..b6936baf3 100644 --- a/surfsense_web/.env.example +++ b/surfsense_web/.env.example @@ -2,4 +2,6 @@ NEXT_PUBLIC_FASTAPI_BACKEND_URL=http://localhost:8000 NEXT_PUBLIC_FASTAPI_BACKEND_AUTH_TYPE=LOCAL or GOOGLE NEXT_PUBLIC_ETL_SERVICE=UNSTRUCTURED or LLAMACLOUD or DOCLING # Contact Form Vars - OPTIONAL -DATABASE_URL=postgresql://postgres:[YOUR-PASSWORD]@db.sdsf.supabase.co:5432/postgres \ No newline at end of file +DATABASE_URL=postgresql://postgres:[YOUR-PASSWORD]@db.sdsf.supabase.co:5432/postgres +NEXT_PUBLIC_GITHUB_REPO=SurfSense +NEXT_PUBLIC_GITHUB_OWNER=MODSetter \ No newline at end of file diff --git a/surfsense_web/components/homepage/navbar.tsx b/surfsense_web/components/homepage/navbar.tsx index cf921f1ae..a42ea960a 100644 --- a/surfsense_web/components/homepage/navbar.tsx +++ b/surfsense_web/components/homepage/navbar.tsx @@ -37,7 +37,7 @@ export const Navbar = () => { const DesktopNav = ({ navItems, isScrolled }: any) => { const [hovered, setHovered] = useState(null); - const {starts : githubStarts} = useGithubStarts(); + const { compactFormat: githubStarts, loading: loadingGithubStarts } = useGithubStarts(); return ( { @@ -88,7 +88,13 @@ const DesktopNav = ({ navItems, isScrolled }: any) => { className="hidden rounded-full px-3 py-2 hover:bg-gray-100 dark:hover:bg-neutral-800 transition-colors md:flex items-center gap-1.5" > - 9.5k + {loadingGithubStarts ? ( +
+ ) : ( + + {githubStarts} + + )} { const MobileNav = ({ navItems, isScrolled }: any) => { const [open, setOpen] = useState(false); + const { compactFormat: githubStarts, loading: loadingGithubStarts } = useGithubStarts(); return ( <> @@ -162,9 +169,13 @@ const MobileNav = ({ navItems, isScrolled }: any) => { className="flex items-center gap-1.5 rounded-lg px-3 py-2 hover:bg-gray-100 dark:hover:bg-neutral-800 transition-colors" > - - 9.5k - + {loadingGithubStarts ? ( +
+ ) : ( + + {githubStarts} + + )}