From 842de184e87ff8c22324a6d774fd04a942387d3a Mon Sep 17 00:00:00 2001 From: bflatastic Date: Tue, 14 Apr 2026 23:12:22 +0700 Subject: [PATCH] enable omni gen api on website --- frontend/apps/artcraft-website/_redirects | 8 ++++++++ frontend/apps/artcraft-website/src/app/app.tsx | 8 ++++---- .../artcraft-website/src/components/navbar/navbar.tsx | 4 ++-- .../apps/artcraft-website/src/pages/library/library.tsx | 4 ++-- 4 files changed, 16 insertions(+), 8 deletions(-) diff --git a/frontend/apps/artcraft-website/_redirects b/frontend/apps/artcraft-website/_redirects index d863c06b6c..5b15c53dfd 100644 --- a/frontend/apps/artcraft-website/_redirects +++ b/frontend/apps/artcraft-website/_redirects @@ -17,6 +17,14 @@ /checkout* /index.html 200 /checkout/* /index.html 200 +/create-image /index.html 200 +/create-image/ /index.html 200 +/create-image/* /index.html 200 + +/create-video /index.html 200 +/create-video/ /index.html 200 +/create-video/* /index.html 200 + /library /index.html 200 /library/ /index.html 200 /library/* /index.html 200 diff --git a/frontend/apps/artcraft-website/src/app/app.tsx b/frontend/apps/artcraft-website/src/app/app.tsx index 06a097545c..d8c362e21f 100644 --- a/frontend/apps/artcraft-website/src/app/app.tsx +++ b/frontend/apps/artcraft-website/src/app/app.tsx @@ -4,8 +4,8 @@ import Media from "../pages/media"; import PressKit from "../pages/press-kit"; import Navbar from "../components/navbar"; import { ToastContainer } from "../components/toast/toast"; -// import CreateImage from "../pages/create-image"; -// import CreateVideo from "../pages/create-video"; +import CreateImage from "../pages/create-image"; +import CreateVideo from "../pages/create-video"; import Landing2 from "../pages/landing2"; import LandingSD2 from "../pages/landing-sd2"; import TutorialsPage from "../pages/tutorials"; @@ -30,8 +30,8 @@ export function App() { } /> - {/* } /> - } /> */} + } /> + } /> } /> } /> } /> diff --git a/frontend/apps/artcraft-website/src/components/navbar/navbar.tsx b/frontend/apps/artcraft-website/src/components/navbar/navbar.tsx index 4f2a657102..8907e4074d 100644 --- a/frontend/apps/artcraft-website/src/components/navbar/navbar.tsx +++ b/frontend/apps/artcraft-website/src/components/navbar/navbar.tsx @@ -24,8 +24,8 @@ import { TaskQueue } from "./task-queue"; const NAV_ITEMS = [ { name: "Home", href: "/" }, - // { name: "Image", href: "/create-image" }, - // { name: "Video", href: "/create-video" }, + { name: "Image", href: "/create-image" }, + { name: "Video", href: "/create-video" }, { name: "Tutorials", href: "/tutorials" }, { name: "News", href: "/news" }, { name: "FAQ", href: "/faq" }, diff --git a/frontend/apps/artcraft-website/src/pages/library/library.tsx b/frontend/apps/artcraft-website/src/pages/library/library.tsx index 9256408b38..c40847074c 100644 --- a/frontend/apps/artcraft-website/src/pages/library/library.tsx +++ b/frontend/apps/artcraft-website/src/pages/library/library.tsx @@ -396,7 +396,7 @@ export default function Library() { ) : allItems.length === 0 && !loading ? (

No items yet.

- {/*
+
-
*/} +
) : (