Merge pull request 'fix: replace hardcoded local image paths with OSS URLs' (#2) from fix/remove-hardcoded-image-paths into master

Reviewed-on: #2
This commit was merged in pull request #2.
This commit is contained in:
2026-06-02 06:47:08 +00:00
3 changed files with 20 additions and 21 deletions
+7 -12
View File
@@ -17,12 +17,7 @@ import { cloneWorkflow, createBlankWorkflow } from "../../data/workflows";
import type { WebCanvasWorkflow, WebProjectSummary } from "../../types";
import { getCommunityCaseCover, getWorkflowFromCase, shouldShowInCanvasCommunity } from "./communityCaseUtils";
import { ossThumb } from "../../utils/ossImageOptimize";
import wechatCaseImage10 from "../../../tu/微信图片_20260514125332_10_2.png";
import wechatCaseImage11 from "../../../tu/微信图片_20260514125332_11_2.png";
import wechatCaseImage12 from "../../../tu/微信图片_20260514125332_12_2.png";
import wechatCaseImage7 from "../../../tu/微信图片_20260514125332_7_2.png";
import wechatCaseImage8 from "../../../tu/微信图片_20260514125332_8_2.png";
import wechatCaseImage9 from "../../../tu/微信图片_20260514125332_9_2.png";
const OSS_MUBAN = "https://stringtest.oss-cn-hangzhou.aliyuncs.com/muban";
interface CommunityPageProps {
projects: WebProjectSummary[];
@@ -35,12 +30,12 @@ interface CommunityPageProps {
}
const communityCardImages = [
wechatCaseImage7,
wechatCaseImage8,
wechatCaseImage9,
wechatCaseImage10,
wechatCaseImage11,
wechatCaseImage12,
`${OSS_MUBAN}/dianshang1.png`,
`${OSS_MUBAN}/dianshang2.png`,
`${OSS_MUBAN}/dianshang3.png`,
`${OSS_MUBAN}/wechat-7.png`,
`${OSS_MUBAN}/wechat-8.png`,
`${OSS_MUBAN}/wechat-9.png`,
];
const SLIDE_INTERVAL = 3000;
+5 -3
View File
@@ -11,9 +11,11 @@ import {
SkinOutlined,
} from "@ant-design/icons";
import { useEffect, useRef, useState, type CSSProperties, type ChangeEvent, type DragEvent, type ReactNode } from "react";
import ecommerceGenerated from "../../assets/ecommerce-carousel-generated.png";
import ecommerceSlide4 from "../../assets/ecommerce-hero-carousel/slide-4.png";
import ecommerceSlide5 from "../../assets/ecommerce-hero-carousel/slide-5.png";
const OSS_MUBAN = "https://stringtest.oss-cn-hangzhou.aliyuncs.com/muban";
const ecommerceGenerated = `${OSS_MUBAN}/ecommerce-carousel-generated.png`;
const ecommerceSlide4 = `${OSS_MUBAN}/slide-4.png`;
const ecommerceSlide5 = `${OSS_MUBAN}/slide-5.png`;
import ImageMentionMenu, { getImageMentionQuery, insertImageMentionValue, type MentionImageOption } from "./ImageMentionMenu";
import EcommerceVideoWorkspace from "./EcommerceVideoWorkspace";
import { aiGenerationClient } from "../../api/aiGenerationClient";
+8 -6
View File
@@ -9,12 +9,14 @@ import {
} from "@ant-design/icons";
import { useCallback, useEffect, useMemo, useRef, useState, type CSSProperties } from "react";
import WelcomeSplash from "./WelcomeSplash";
import featureEcommerceImage from "../../assets/home-features/feature-ecommerce.jpg";
import featureScriptImage from "../../assets/home-features/feature-script.jpg";
import featureTokenImage from "../../assets/home-features/feature-token.jpg";
import heroImage1 from "../../../projects/public/hero-1.png";
import heroImage2 from "../../../projects/public/hero-2.png";
import heroImage3 from "../../../projects/public/hero-3.png";
const OSS_MUBAN = "https://stringtest.oss-cn-hangzhou.aliyuncs.com/muban";
const heroImage1 = `${OSS_MUBAN}/hero-1.png`;
const heroImage2 = `${OSS_MUBAN}/hero-2.png`;
const heroImage3 = `${OSS_MUBAN}/hero-3.png`;
const featureEcommerceImage = `${OSS_MUBAN}/feature-ecommerce.jpg`;
const featureScriptImage = `${OSS_MUBAN}/feature-script.jpg`;
const featureTokenImage = `${OSS_MUBAN}/feature-token.jpg`;
interface HomePageProps {
onOpenGenerate: () => void;