Commit bb312441 by archer

fix: share prompts

parent d07e5b85
...@@ -21,7 +21,8 @@ Fast GPT 允许你使用自己的 openai API KEY 来快速的调用 openai 接 ...@@ -21,7 +21,8 @@ Fast GPT 允许你使用自己的 openai API KEY 来快速的调用 openai 接
## 🚀 私有化部署 ## 🚀 私有化部署
[docker-compose 部署教程](docs/deploy/docker.md) - [docker-compose 部署教程](docs/deploy/docker.md)
- [由社区贡献的宝塔部署和本地运行教程](https://space.bilibili.com/431177525/channel/collectiondetail?sid=1370663)
## :point_right: RoadMap ## :point_right: RoadMap
......
...@@ -26,112 +26,114 @@ const Home = () => { ...@@ -26,112 +26,114 @@ const Home = () => {
/* 加载动画 */ /* 加载动画 */
useEffect(() => { useEffect(() => {
setTimeout(() => { setTimeout(() => {
window.particlesJS?.('particles-js', { try {
particles: { window.particlesJS?.('particles-js', {
number: { particles: {
value: 40, number: {
density: { value: 40,
enable: true, density: {
value_area: 500 enable: true,
} value_area: 500
}, }
color: {
value: '#4e83fd'
},
shape: {
type: 'circle',
stroke: {
width: 0,
color: '#000000'
}, },
polygon: { color: {
nb_sides: 5 value: '#4e83fd'
}
},
opacity: {
value: 0.5,
random: false,
anim: {
enable: false,
speed: 0.1,
opacity_min: 0.1,
sync: false
}
},
size: {
value: 3,
random: true,
anim: {
enable: false,
speed: 10,
size_min: 0.1,
sync: false
}
},
line_linked: {
enable: true,
distance: 150,
color: '#adceff',
opacity: 0.4,
width: 1
},
move: {
enable: true,
speed: 2,
direction: 'none',
random: true,
straight: false,
out_mode: 'out',
bounce: false,
attract: {
enable: false,
rotateX: 600,
rotateY: 1200
}
}
},
interactivity: {
detect_on: 'canvas',
events: {
onhover: {
enable: true,
mode: 'grab'
}, },
onclick: { shape: {
enable: true, type: 'circle',
mode: 'push' stroke: {
width: 0,
color: '#000000'
},
polygon: {
nb_sides: 5
}
}, },
resize: true opacity: {
}, value: 0.5,
modes: { random: false,
grab: { anim: {
distance: 140, enable: false,
line_linked: { speed: 0.1,
opacity: 1 opacity_min: 0.1,
sync: false
} }
}, },
bubble: { size: {
distance: 400, value: 3,
size: 40, random: true,
duration: 2, anim: {
opacity: 8, enable: false,
speed: 3 speed: 10,
size_min: 0.1,
sync: false
}
}, },
repulse: { line_linked: {
distance: 200, enable: true,
duration: 0.4 distance: 150,
color: '#adceff',
opacity: 0.4,
width: 1
}, },
push: { move: {
particles_nb: 4 enable: true,
speed: 2,
direction: 'none',
random: true,
straight: false,
out_mode: 'out',
bounce: false,
attract: {
enable: false,
rotateX: 600,
rotateY: 1200
}
}
},
interactivity: {
detect_on: 'canvas',
events: {
onhover: {
enable: true,
mode: 'grab'
},
onclick: {
enable: true,
mode: 'push'
},
resize: true
}, },
remove: { modes: {
particles_nb: 2 grab: {
distance: 140,
line_linked: {
opacity: 1
}
},
bubble: {
distance: 400,
size: 40,
duration: 2,
opacity: 8,
speed: 3
},
repulse: {
distance: 200,
duration: 0.4
},
push: {
particles_nb: 4
},
remove: {
particles_nb: 2
}
} }
} },
}, retina_detect: true
retina_detect: true });
}); } catch (error) {}
}, 1000); }, 500);
}, [isPc]); }, [isPc]);
return ( return (
......
...@@ -231,7 +231,8 @@ export const authShareChat = async ({ ...@@ -231,7 +231,8 @@ export const authShareChat = async ({
const { model, showModelDetail } = await authModel({ const { model, showModelDetail } = await authModel({
modelId, modelId,
userId, userId,
authOwner: false authOwner: false,
reserveDetail: true
}); });
// 获取 user 的 apiKey // 获取 user 的 apiKey
......
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 sign in to comment