titusgiap Claude Opus 4.8 commited on
Commit
d249a38
·
1 Parent(s): ab18154

chore(web): ẩn "Listing ảnh Free" khỏi menu, route và Hướng dẫn

Browse files

- Sidebar: comment mục "Listing ảnh Free".
- App.jsx: comment lazy import + route /listing-free (vào thẳng -> 404).
- Guide: comment cả mục hướng dẫn Listing ảnh Free.
- ListingImage: bỏ câu tip nhắc dùng tab Listing ảnh Free.
Tất cả comment lại (không xoá) để bật lại dễ. Backend /api/listing-free giữ
nguyên (không còn lối vào từ UI).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

frontend/src/App.jsx CHANGED
@@ -14,7 +14,8 @@ const Guide = lazy(() => import("./pages/Guide"));
14
  const Support = lazy(() => import("./pages/Support"));
15
  const Placeholder = lazy(() => import("./pages/Placeholder"));
16
  const ListingImage = lazy(() => import("./pages/ListingImage"));
17
- const ListingFree = lazy(() => import("./pages/ListingFree"));
 
18
  const Flux2Gen = lazy(() => import("./pages/Flux2Gen"));
19
  const CreateVideo = lazy(() => import("./pages/CreateVideo"));
20
  const AdminUsers = lazy(() => import("./pages/AdminUsers"));
@@ -34,7 +35,7 @@ const router = createBrowserRouter([
34
  { path: "/xao", element: <ShuffleVideo /> },
35
  { path: "/dub", element: <DubVideo /> },
36
  { path: "/listing-anh", element: <ListingImage /> },
37
- { path: "/listing-free", element: <ListingFree /> },
38
  { path: "/flux2", element: <Flux2Gen /> },
39
  { path: "/tao-video", element: <CreateVideo /> },
40
  { path: "/huong-dan", element: <Guide /> },
 
14
  const Support = lazy(() => import("./pages/Support"));
15
  const Placeholder = lazy(() => import("./pages/Placeholder"));
16
  const ListingImage = lazy(() => import("./pages/ListingImage"));
17
+ // Ẩn tạm "Listing ảnh Free" — bật lại thì bỏ comment dòng dưới + route bên dưới
18
+ // const ListingFree = lazy(() => import("./pages/ListingFree"));
19
  const Flux2Gen = lazy(() => import("./pages/Flux2Gen"));
20
  const CreateVideo = lazy(() => import("./pages/CreateVideo"));
21
  const AdminUsers = lazy(() => import("./pages/AdminUsers"));
 
35
  { path: "/xao", element: <ShuffleVideo /> },
36
  { path: "/dub", element: <DubVideo /> },
37
  { path: "/listing-anh", element: <ListingImage /> },
38
+ // { path: "/listing-free", element: <ListingFree /> }, // Ẩn tạm Listing ảnh Free
39
  { path: "/flux2", element: <Flux2Gen /> },
40
  { path: "/tao-video", element: <CreateVideo /> },
41
  { path: "/huong-dan", element: <Guide /> },
frontend/src/components/Sidebar.jsx CHANGED
@@ -26,7 +26,8 @@ export default function Sidebar() {
26
  <div className="label">Tạo ảnh / video</div>
27
  {item("/down-list", IcDownload, "Down list video")}
28
  {item("/listing-anh", IcImage, "Listing ảnh")}
29
- {item("/listing-free", IcStar, "Listing ảnh Free")}
 
30
  {item("/tao-video", IcVideo, "Tạo video")}
31
  </div>
32
 
 
26
  <div className="label">Tạo ảnh / video</div>
27
  {item("/down-list", IcDownload, "Down list video")}
28
  {item("/listing-anh", IcImage, "Listing ảnh")}
29
+ {/* Ẩn tạm "Listing ảnh Free" — bật lại thì bỏ comment dòng dưới */}
30
+ {/* {item("/listing-free", IcStar, "Listing ảnh Free")} */}
31
  {item("/tao-video", IcVideo, "Tạo video")}
32
  </div>
33
 
frontend/src/pages/Guide.jsx CHANGED
@@ -24,6 +24,7 @@ const guides = [
24
  "Bấm “Tải tất cả về” để lấy file zip, hoặc “Làm mới” để bắt đầu lại.",
25
  ],
26
  },
 
27
  {
28
  icon: IcStar,
29
  title: "Listing ảnh Free (Flux / Wangp)",
@@ -36,6 +37,7 @@ const guides = [
36
  "Bấm “Download all” để lấy file zip, hoặc “Reset” để làm lại.",
37
  ],
38
  },
 
39
  {
40
  icon: IcVideo,
41
  title: "Tạo video",
 
24
  "Bấm “Tải tất cả về” để lấy file zip, hoặc “Làm mới” để bắt đầu lại.",
25
  ],
26
  },
27
+ /* Ẩn tạm mục "Listing ảnh Free" — bật lại thì bỏ comment khối này
28
  {
29
  icon: IcStar,
30
  title: "Listing ảnh Free (Flux / Wangp)",
 
37
  "Bấm “Download all” để lấy file zip, hoặc “Reset” để làm lại.",
38
  ],
39
  },
40
+ */
41
  {
42
  icon: IcVideo,
43
  title: "Tạo video",
frontend/src/pages/ListingImage.jsx CHANGED
@@ -572,7 +572,7 @@ export default function ListingImage() {
572
  )}
573
  </div>
574
 
575
- <ProcessRail steps={STEPS} tip="Ảnh sản phẩm càng rõ nét, đủ sáng thì AI càng giữ đúng nhãn mác và màu sắc. Muốn sinh ảnh miễn phí (không tốn phí OpenAI)? Dùng tab “Listing ảnh Free” với server Flux/Wangp của bạn." />
576
  </div>
577
 
578
  {lightboxUrl && (
 
572
  )}
573
  </div>
574
 
575
+ <ProcessRail steps={STEPS} tip="Ảnh sản phẩm càng rõ nét, đủ sáng thì AI càng giữ đúng nhãn mác và màu sắc." />
576
  </div>
577
 
578
  {lightboxUrl && (