Compare commits

...
Author SHA1 Message Date
EmmanuelMr18 fd150aa20f fix: ctrl+click/cmd+click to open a item of the menu 2024-02-16 23:16:07 -06:00
Syn 17653508c5 Self Host (#27)
* Update README.md

* Update README.md
2024-02-17 13:09:26 +08:00
Emmanuel Morales ace12efd1a fix(workflows): user can click multiple times on run even while loading (#26) 2024-02-15 14:39:20 +08:00
3 changed files with 6 additions and 8 deletions
+4
View File
@@ -93,6 +93,10 @@ Major areas
# Self Hosting with Vercel # Self Hosting with Vercel
[![Video](https://img.mytsi.org/i/nFOG479.png)](https://www.youtube.com/watch?v=hWvsEY1cS2M)
Tutorial Created by [Ross](https://github.com/rossman22590) and [Syn](https://github.com/mortlsyn)
Build command Build command
``` ```
+1 -7
View File
@@ -5,7 +5,6 @@ import { Tabs, TabsList, TabsTrigger } from "@/components/ui/tabs";
import { cn } from "@/lib/utils"; import { cn } from "@/lib/utils";
import Link from "next/link"; import Link from "next/link";
import { usePathname } from "next/navigation"; import { usePathname } from "next/navigation";
import { useRouter } from "next/navigation";
import { useEffect, useState } from "react"; import { useEffect, useState } from "react";
import { useMediaQuery } from "usehooks-ts"; import { useMediaQuery } from "usehooks-ts";
@@ -25,8 +24,6 @@ export function NavbarMenu({
const pathnames = usePathname(); const pathnames = usePathname();
const pathname = `/${pathnames.split("/")[1]}`; const pathname = `/${pathnames.split("/")[1]}`;
const router = useRouter();
const pages = [ const pages = [
{ {
name: "Workflows", name: "Workflows",
@@ -59,11 +56,8 @@ export function NavbarMenu({
<TabsTrigger <TabsTrigger
key={page.name} key={page.name}
value={page.path} value={page.path}
onClick={() => {
router.push(page.path);
}}
> >
{page.name} <Link href={page.path}>{page.name}</Link>
</TabsTrigger> </TabsTrigger>
))} ))}
</TabsList> </TabsList>
+1 -1
View File
@@ -328,7 +328,7 @@ export function RunWorkflowButton({
className="px-1" className="px-1"
> >
<div className="flex justify-end"> <div className="flex justify-end">
<AutoFormSubmit> <AutoFormSubmit disabled={isLoading}>
Run Run
{isLoading ? <LoadingIcon /> : <Play size={14} />} {isLoading ? <LoadingIcon /> : <Play size={14} />}
</AutoFormSubmit> </AutoFormSubmit>