Răsfoiți Sursa

📦 build(supply-chain): 替换所有外部图片链接为本地资源

- 将SupplyChainMap组件中的Figma图片链接替换为本地SVG资源
- 更新IndustryIcon组件中的产业图标URL为本地路径
- 替换BackgroundGrid、HeaderBar等布局组件中的背景图片为本地资源
- 移除Navigation组件中未使用的导航光标图片元素
- 统一图片资源路径为/supply-chain/目录下的本地文件
yourname 2 luni în urmă
părinte
comite
080176e176

+ 10 - 10
src/client/home/pages/SupplyChainDashboards/components/SupplyChainMap.tsx

@@ -41,14 +41,14 @@ const BasePoint: React.FC<{
         <img
           alt="基地定位点"
           className="block max-w-none size-full"
-          src="https://www.figma.com/api/mcp/asset/05a7ea4e-ca3d-42b4-a448-9693541b81c1"
+          src="/supply-chain/group1597881805.svg"
         />
       </div>
       <div className="absolute inset-[27.5%_23%] overflow-clip">
         <img
           alt="粮食图标"
           className="block max-w-none size-full"
-          src="https://www.figma.com/api/mcp/asset/74aa7038-2d6c-44fa-8671-4472845f5469"
+          src="/supply-chain/img2.svg"
         />
       </div>
       {point.name && (
@@ -80,14 +80,14 @@ const IndustryChainPoint: React.FC<{
         <img
           alt="产业链定位点"
           className="block max-w-none size-full"
-          src="https://www.figma.com/api/mcp/asset/b3a56933-87f3-4183-812c-82694fe92db1"
+          src="/supply-chain/img.svg"
         />
       </div>
       <div className="absolute bottom-[40.42%] left-1/4 overflow-clip right-1/4 shadow-[0px_0px_6px_0px_#4593ff] top-[17.92%]">
         <img
           alt="产业链图标"
           className="block max-w-none size-full"
-          src="https://www.figma.com/api/mcp/asset/2388ddbc-149e-4662-89ae-e9df0ed9c546"
+          src="/supply-chain/img1.svg"
         />
       </div>
       {point.name && (
@@ -139,14 +139,14 @@ const MapLegend: React.FC = () => {
             <img
               alt="基地图例"
               className="block max-w-none size-full"
-              src="https://www.figma.com/api/mcp/asset/70b2be21-698f-43c3-8ca1-e70d375e55c3"
+              src="/supply-chain/group1597881805.svg"
             />
           </div>
           <div className="absolute inset-[27.5%_23%] overflow-clip">
             <img
               alt="粮食图标"
               className="block max-w-none size-full"
-              src="https://www.figma.com/api/mcp/asset/74aa7038-2d6c-44fa-8671-4472845f5469"
+              src="/supply-chain/img2.svg"
             />
           </div>
         </div>
@@ -164,14 +164,14 @@ const MapLegend: React.FC = () => {
             <img
               alt="产业链图例"
               className="block max-w-none size-full"
-              src="https://www.figma.com/api/mcp/asset/4b244cde-2253-4616-8046-a642a889b316"
+              src="/supply-chain/img.svg"
             />
           </div>
           <div className="absolute bottom-[40.42%] left-1/4 overflow-clip right-1/4 shadow-[0px_0px_6px_0px_#4593ff] top-[17.92%]">
             <img
               alt="产业链图标"
               className="block max-w-none size-full"
-              src="https://www.figma.com/api/mcp/asset/2388ddbc-149e-4662-89ae-e9df0ed9c546"
+              src="/supply-chain/img1.svg"
             />
           </div>
         </div>
@@ -227,7 +227,7 @@ const SupplyChainMap: React.FC<SupplyChainMapProps> = ({
             <img
               alt="地图边框"
               className="block max-w-none size-full"
-              src="https://www.figma.com/api/mcp/asset/fca4f7a9-10d7-41df-8b54-87e52233ff24"
+              src="/supply-chain/img7.svg"
             />
           </div>
         </div>
@@ -238,7 +238,7 @@ const SupplyChainMap: React.FC<SupplyChainMapProps> = ({
           <img
             alt="供应链网络"
             className="block max-w-none size-full"
-            src="https://www.figma.com/api/mcp/asset/480a665e-4639-4757-b0f5-ae8c1d4e7f17"
+            src="/supply-chain/union1.svg"
           />
 
           {/* 动态连接线 */}

+ 2 - 2
src/client/home/pages/SupplyChainDashboards/components/icons/IndustryIcon.tsx

@@ -12,8 +12,8 @@ interface IndustryIconProps {
 
 // 产业图标URL映射
 const industryIconUrls: Record<IndustryType, string> = {
-  "粮食": "https://www.figma.com/api/mcp/asset/74aa7038-2d6c-44fa-8671-4472845f5469",
-  "油脂": "https://www.figma.com/api/mcp/asset/0df5dc87-b48b-4b8d-a3ee-7721d3185ddc",
+  "粮食": "/supply-chain/union.svg",
+  "油脂": "/supply-chain/img5.svg",
   "种业": "", // 待补充
   "果蔬": "", // 待补充
   "畜牧": "", // 待补充

+ 1 - 1
src/client/home/pages/SupplyChainDashboards/components/layout/BackgroundGrid.tsx

@@ -16,7 +16,7 @@ const BackgroundGrid: React.FC<BackgroundGridProps> = ({
           <img
             alt="网格背景"
             className="block max-w-none size-full"
-            src="https://www.figma.com/api/mcp/asset/597ea7a4-6131-4e5c-b0c3-955a775a85b0"
+            src="/supply-chain/img10.svg"
           />
         </div>
       </div>

+ 1 - 1
src/client/home/pages/SupplyChainDashboards/components/layout/HeaderBar.tsx

@@ -27,7 +27,7 @@ const HeaderBar: React.FC<HeaderBarProps> = ({
           <img
             alt="标题栏装饰"
             className="block max-w-none size-full"
-            src="https://www.figma.com/api/mcp/asset/5ad5a4ea-c56a-4b77-9b93-7aa1afb09e71"
+            src="/supply-chain/group1158.svg"
           />
         </div>
       </div>

+ 1 - 14
src/client/home/pages/SupplyChainDashboards/components/layout/Navigation.tsx

@@ -46,20 +46,7 @@ const Navigation: React.FC<NavigationProps> = ({
         ))}
       </div>
 
-      {/* 导航光标 */}
-      <div className="absolute bottom-0 flex items-center justify-center left-[25.05%] right-0 top-0">
-        <div className="flex-none h-[1078.893px] rotate-[180deg] scale-y-[-100%] w-[113.088px]">
-          <div className="relative size-full">
-            <div className="absolute bottom-[-0.04%] left-0 right-0 top-[-0.04%]">
-              <img
-                alt="导航光标"
-                className="block max-w-none size-full"
-                src="https://www.figma.com/api/mcp/asset/800cef2d-f019-4e81-aea2-643efa15258e"
-              />
-            </div>
-          </div>
-        </div>
-      </div>
+      
     </div>
   );
 };

+ 1 - 1
src/client/home/pages/SupplyChainDashboards/components/layout/SupplyChainBackground.tsx

@@ -15,7 +15,7 @@ const SupplyChainBackground: React.FC<SupplyChainBackgroundProps> = ({
         <img
           alt="供应链背景"
           className="absolute max-w-none object-50%-50% object-cover size-full"
-          src="https://www.figma.com/api/mcp/asset/d046358a-9a3b-42e0-89cb-4a2b2a843ced"
+          src="/supply-chain/property1.png"
         />
         <div className="absolute bg-[rgba(0,79,154,0.1)] inset-0" />
       </div>