Commit dce725e6 authored by fisherdaddy's avatar fisherdaddy

fix: 修复图片路径的问题

parent 65b6a34b
...@@ -4,7 +4,7 @@ import LanguageSelector from './LanguageSelector'; ...@@ -4,7 +4,7 @@ import LanguageSelector from './LanguageSelector';
import { useTranslation } from '../js/i18n'; import { useTranslation } from '../js/i18n';
import '../styles/Header.css'; // 确保创建并导入这个CSS文件 import '../styles/Header.css'; // 确保创建并导入这个CSS文件
// 导入 logo 图片 // 导入 logo 图片
import logo from '../assets/logo.png'; // 请确保路径正确 import logo from '/assets/logo.png'; // 请确保路径正确
function Header() { function Header() {
const { t } = useTranslation(); const { t } = useTranslation();
......
...@@ -59,7 +59,7 @@ const ProviderColumn = ({ provider, maxPrice, highlightedBarTypes }) => ( ...@@ -59,7 +59,7 @@ const ProviderColumn = ({ provider, maxPrice, highlightedBarTypes }) => (
</div> </div>
<div className="provider-info"> <div className="provider-info">
<img <img
src={`/src/assets/${provider.logo}`} src={`${provider.logo}`}
alt={`${provider.name} logo`} alt={`${provider.name} logo`}
className="provider-logo" className="provider-logo"
/> />
......
...@@ -4,133 +4,133 @@ ...@@ -4,133 +4,133 @@
"providers": [ "providers": [
{ {
"name": "Doubao-lite-32k", "name": "Doubao-lite-32k",
"logo": "../assets/doubao.png", "logo": "/assets/doubao.png",
"inputPrice": 0.3, "inputPrice": 0.3,
"outputPrice": 0.6 "outputPrice": 0.6
}, },
{ {
"name": "yi-lightning\n-16k", "name": "yi-lightning\n-16k",
"logo": "../assets/yi_small.jpg", "logo": "/assets/yi_small.jpg",
"inputPrice": 0.99, "inputPrice": 0.99,
"outputPrice": 0.99 "outputPrice": 0.99
}, },
{ {
"name": "GLM-4-Air\n-128k", "name": "GLM-4-Air\n-128k",
"logo": "../assets/glm_small.svg", "logo": "/assets/glm_small.svg",
"inputPrice": 1, "inputPrice": 1,
"outputPrice": 1 "outputPrice": 1
}, },
{ {
"name": "gemini 1.5 Flash", "name": "gemini 1.5 Flash",
"logo": "../assets/google_small.svg", "logo": "/assets/google_small.svg",
"inputPrice": 0.53, "inputPrice": 0.53,
"outputPrice": 2.1 "outputPrice": 2.1
}, },
{ {
"name": "Doubao-pro-32k", "name": "Doubao-pro-32k",
"logo": "../assets/doubao.png", "logo": "/assets/doubao.png",
"inputPrice": 0.8, "inputPrice": 0.8,
"outputPrice": 2 "outputPrice": 2
}, },
{ {
"name": "qwen-plus\n-128k", "name": "qwen-plus\n-128k",
"logo": "../assets/ali_small.svg", "logo": "/assets/ali_small.svg",
"inputPrice": 0.8, "inputPrice": 0.8,
"outputPrice": 2 "outputPrice": 2
}, },
{ {
"name": "ERNIE 3.5", "name": "ERNIE 3.5",
"logo": "../assets/wenxin_small.png", "logo": "/assets/wenxin_small.png",
"inputPrice": 0.8, "inputPrice": 0.8,
"outputPrice": 2 "outputPrice": 2
}, },
{ {
"name": "deepseek-\nchat-128k", "name": "deepseek-\nchat-128k",
"logo": "../assets/deepseek_small.jpg", "logo": "/assets/deepseek_small.jpg",
"inputPrice": 1, "inputPrice": 1,
"outputPrice": 2 "outputPrice": 2
}, },
{ {
"name": "gpt-4o-mini", "name": "gpt-4o-mini",
"logo": "../assets/openai_small.svg", "logo": "/assets/openai_small.svg",
"inputPrice": 1.05, "inputPrice": 1.05,
"outputPrice": 4.2 "outputPrice": 4.2
}, },
{ {
"name": "qwen-math-plus", "name": "qwen-math-plus",
"logo": "../assets/ali_small.svg", "logo": "/assets/ali_small.svg",
"inputPrice": 4, "inputPrice": 4,
"outputPrice": 12 "outputPrice": 12
}, },
{ {
"name": "claude 3.5\nHaiku", "name": "claude 3.5\nHaiku",
"logo": "../assets/anthropic_small.svg", "logo": "/assets/anthropic_small.svg",
"inputPrice": 8.75, "inputPrice": 8.75,
"outputPrice": 35 "outputPrice": 35
}, },
{ {
"name": "yi-large-32k", "name": "yi-large-32k",
"logo": "../assets/yi_small.jpg", "logo": "/assets/yi_small.jpg",
"inputPrice": 20, "inputPrice": 20,
"outputPrice": 20 "outputPrice": 20
}, },
{ {
"name": "mooonshot-v1-32k", "name": "mooonshot-v1-32k",
"logo": "../assets/moonshot_small.svg", "logo": "/assets/moonshot_small.svg",
"inputPrice": 24, "inputPrice": 24,
"outputPrice": 24 "outputPrice": 24
}, },
{ {
"name": "qwen-max-32k", "name": "qwen-max-32k",
"logo": "../assets/ali_small.svg", "logo": "/assets/ali_small.svg",
"inputPrice": 20, "inputPrice": 20,
"outputPrice": 60 "outputPrice": 60
}, },
{ {
"name": "ERNIE 4.0\nTurbo", "name": "ERNIE 4.0\nTurbo",
"logo": "../assets/wenxin_small.png", "logo": "/assets/wenxin_small.png",
"inputPrice": 20, "inputPrice": 20,
"outputPrice": 60 "outputPrice": 60
}, },
{ {
"name": "gpt-4o", "name": "gpt-4o",
"logo": "../assets/openai_small.svg", "logo": "/assets/openai_small.svg",
"inputPrice": 17.5, "inputPrice": 17.5,
"outputPrice": 70 "outputPrice": 70
}, },
{ {
"name": "GLM-4-Plus-128k", "name": "GLM-4-Plus-128k",
"logo": "../assets/glm_small.svg", "logo": "/assets/glm_small.svg",
"inputPrice": 50, "inputPrice": 50,
"outputPrice": 50 "outputPrice": 50
}, },
{ {
"name": "o1-mini", "name": "o1-mini",
"logo": "../assets/openai_small.svg", "logo": "/assets/openai_small.svg",
"inputPrice": 21, "inputPrice": 21,
"outputPrice": 84 "outputPrice": 84
}, },
{ {
"name": "gemini 1.5 Pro", "name": "gemini 1.5 Pro",
"logo": "../assets/google_small.svg", "logo": "/assets/google_small.svg",
"inputPrice": 87.5, "inputPrice": 87.5,
"outputPrice": 35 "outputPrice": 35
}, },
{ {
"name": "claude 3.5\nSonnet", "name": "claude 3.5\nSonnet",
"logo": "../assets/anthropic_small.svg", "logo": "/assets/anthropic_small.svg",
"inputPrice": 26.3, "inputPrice": 26.3,
"outputPrice": 105 "outputPrice": 105
}, },
{ {
"name": "o1-preview", "name": "o1-preview",
"logo": "../assets/openai_small.svg", "logo": "/assets/openai_small.svg",
"inputPrice": 105, "inputPrice": 105,
"outputPrice": 420 "outputPrice": 420
}, },
{ {
"name": "claude 3.5\nOpus", "name": "claude 3.5\nOpus",
"logo": "../assets/anthropic_small.svg", "logo": "/assets/anthropic_small.svg",
"inputPrice": 131, "inputPrice": 131,
"outputPrice": 525 "outputPrice": 525
} }
......
...@@ -4,49 +4,49 @@ ...@@ -4,49 +4,49 @@
"providers": [ "providers": [
{ {
"name": "gpt-4o-mini", "name": "gpt-4o-mini",
"logo": "../assets/openai_small.svg", "logo": "/assets/openai_small.svg",
"inputPrice": 0.15, "inputPrice": 0.15,
"outputPrice": 0.6 "outputPrice": 0.6
}, },
{ {
"name": "gpt-4o", "name": "gpt-4o",
"logo": "../assets/openai_small.svg", "logo": "/assets/openai_small.svg",
"inputPrice": 2.5, "inputPrice": 2.5,
"outputPrice": 10 "outputPrice": 10
}, },
{ {
"name": "gpt-4o-latest", "name": "gpt-4o-latest",
"logo": "../assets/openai_small.svg", "logo": "/assets/openai_small.svg",
"inputPrice": 5, "inputPrice": 5,
"outputPrice": 15 "outputPrice": 15
}, },
{ {
"name": "gpt-4-turbo", "name": "gpt-4-turbo",
"logo": "../assets/openai_small.svg", "logo": "/assets/openai_small.svg",
"inputPrice": 10, "inputPrice": 10,
"outputPrice": 30 "outputPrice": 30
}, },
{ {
"name": "o1-mini", "name": "o1-mini",
"logo": "../assets/openai_small.svg", "logo": "/assets/openai_small.svg",
"inputPrice": 3, "inputPrice": 3,
"outputPrice": 12 "outputPrice": 12
}, },
{ {
"name": "o1-preview", "name": "o1-preview",
"logo": "../assets/openai_small.svg", "logo": "/assets/openai_small.svg",
"inputPrice": 15, "inputPrice": 15,
"outputPrice": 60 "outputPrice": 60
}, },
{ {
"name": "gpt-4o-audio-preview", "name": "gpt-4o-audio-preview",
"logo": "../assets/openai_small.svg", "logo": "/assets/openai_small.svg",
"inputPrice": 2.5, "inputPrice": 2.5,
"outputPrice": 10 "outputPrice": 10
}, },
{ {
"name": "gpt-4o-realtime-preview", "name": "gpt-4o-realtime-preview",
"logo": "../assets/openai_small.svg", "logo": "/assets/openai_small.svg",
"inputPrice": 5, "inputPrice": 5,
"outputPrice": 20 "outputPrice": 20
} }
......
...@@ -4,37 +4,37 @@ ...@@ -4,37 +4,37 @@
"providers": [ "providers": [
{ {
"name": "gpt-4o-mini", "name": "gpt-4o-mini",
"logo": "../assets/openai_small.svg", "logo": "/assets/openai_small.svg",
"inputPrice": 1.05, "inputPrice": 1.05,
"outputPrice": 4.2 "outputPrice": 4.2
}, },
{ {
"name": "yi-vision-16k", "name": "yi-vision-16k",
"logo": "../assets/yi_small.jpg", "logo": "/assets/yi_small.jpg",
"inputPrice": 6, "inputPrice": 6,
"outputPrice": 6 "outputPrice": 6
}, },
{ {
"name": "GLM-4V-Plus", "name": "GLM-4V-Plus",
"logo": "../assets/glm_small.svg", "logo": "/assets/glm_small.svg",
"inputPrice": 10, "inputPrice": 10,
"outputPrice": 10 "outputPrice": 10
}, },
{ {
"name": "qwen-vl-max", "name": "qwen-vl-max",
"logo": "../assets/ali_small.svg", "logo": "/assets/ali_small.svg",
"inputPrice": 20, "inputPrice": 20,
"outputPrice": 20 "outputPrice": 20
}, },
{ {
"name": "gpt-4o", "name": "gpt-4o",
"logo": "../assets/openai_small.svg", "logo": "/assets/openai_small.svg",
"inputPrice": 17.5, "inputPrice": 17.5,
"outputPrice": 70 "outputPrice": 70
}, },
{ {
"name": "GLM-4V", "name": "GLM-4V",
"logo": "../assets/glm_small.svg", "logo": "/assets/glm_small.svg",
"inputPrice": 50, "inputPrice": 50,
"outputPrice": 50 "outputPrice": 50
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment