forked from 77media/video-flow
Merge branch 'dev' of https://git.qikongjian.com/77media/video-flow into dev
This commit is contained in:
commit
973ee1e054
@ -480,7 +480,7 @@ export const MediaViewer = React.memo(function MediaViewer({
|
|||||||
</motion.div>
|
</motion.div>
|
||||||
|
|
||||||
{/* 添加到chat去编辑 按钮 */}
|
{/* 添加到chat去编辑 按钮 */}
|
||||||
<Tooltip title="Add to chat to edit">
|
<Tooltip title="Edit video with chat">
|
||||||
<Button
|
<Button
|
||||||
className="absolute top-4 left-4 z-[21] bg-white/10 backdrop-blur-sm border border-white/20 text-white"
|
className="absolute top-4 left-4 z-[21] bg-white/10 backdrop-blur-sm border border-white/20 text-white"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
|
|||||||
@ -404,7 +404,7 @@ export function TaskInfo({
|
|||||||
|
|
||||||
{/* 跳转剪辑按钮 */}
|
{/* 跳转剪辑按钮 */}
|
||||||
{showGotoCutButton && (
|
{showGotoCutButton && (
|
||||||
<Tooltip placement="top" title='Go to Smart Cut'>
|
<Tooltip placement="top" title='AI-powered editing platform'>
|
||||||
<GlassIconButton icon={Scissors} size='sm' onClick={onGotoCut} />
|
<GlassIconButton icon={Scissors} size='sm' onClick={onGotoCut} />
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
)}
|
)}
|
||||||
|
|||||||
@ -114,8 +114,8 @@ export function useWorkflowData() {
|
|||||||
}, [taskObject.currentStage]);
|
}, [taskObject.currentStage]);
|
||||||
|
|
||||||
const generateEditPlan = useCallback(async () => {
|
const generateEditPlan = useCallback(async () => {
|
||||||
await getGenerateEditPlan({ project_id: episodeId });
|
// await getGenerateEditPlan({ project_id: episodeId });
|
||||||
window.open(`https://smartcut.huiying.video/ai-editor/${episodeId}?token=${token}&userid=${useid}`, '_self');
|
window.open(`https://smartcut.huiying.video/ai-editor/${episodeId}?token=${token}&user_id=${useid}`, '_blank');
|
||||||
}, [episodeId]);
|
}, [episodeId]);
|
||||||
|
|
||||||
// useEffect(() => {
|
// useEffect(() => {
|
||||||
@ -160,7 +160,7 @@ export function useWorkflowData() {
|
|||||||
if (taskObject.videos.total_count > realTaskResultData.length) {
|
if (taskObject.videos.total_count > realTaskResultData.length) {
|
||||||
loadingText.current = LOADING_TEXT_MAP.video(realTaskResultData.length, taskObject.videos.total_count);
|
loadingText.current = LOADING_TEXT_MAP.video(realTaskResultData.length, taskObject.videos.total_count);
|
||||||
} else {
|
} else {
|
||||||
loadingText.current = LOADING_TEXT_MAP.postProduction('generating rough cut video...');
|
loadingText.current = LOADING_TEXT_MAP.postProduction('AI-powered video editing in progress…');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (taskObject.currentStage === 'final_video') {
|
if (taskObject.currentStage === 'final_video') {
|
||||||
|
|||||||
26
lib/auth.ts
26
lib/auth.ts
@ -248,19 +248,19 @@ export const validateOAuthState = (state: string): boolean => {
|
|||||||
* @returns {Promise<any>} 用户信息对象
|
* @returns {Promise<any>} 用户信息对象
|
||||||
*/
|
*/
|
||||||
export const getUserProfile = async (): Promise<any> => {
|
export const getUserProfile = async (): Promise<any> => {
|
||||||
const t = {
|
// const t = {
|
||||||
id: '1',
|
// id: '1',
|
||||||
userId: '1',
|
// userId: '1',
|
||||||
username: 'test',
|
// username: 'test',
|
||||||
name: 'test',
|
// name: 'test',
|
||||||
email: 'test@test.com',
|
// email: 'test@test.com',
|
||||||
role: 'USER',
|
// role: 'USER',
|
||||||
isActive: 1,
|
// isActive: 1,
|
||||||
authType: 'email',
|
// authType: 'email',
|
||||||
lastLogin: new Date(),
|
// lastLogin: new Date(),
|
||||||
}
|
// }
|
||||||
setUser(t);
|
// setUser(t);
|
||||||
return t;
|
// return t;
|
||||||
try {
|
try {
|
||||||
const token = getToken();
|
const token = getToken();
|
||||||
if (!token) {
|
if (!token) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user