Initial import of weiyuan frontend

This commit is contained in:
qiubaishen
2026-10-15 16:33:46 +08:00
commit d8f3aee261
774 changed files with 374914 additions and 0 deletions
@@ -0,0 +1,83 @@
/*
Copyright (C) 2025 QuantumNous
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
For commercial licensing, please contact support@quantumnous.com
*/
// 提示词模板
export const PROMPT_TEMPLATES = [
{
label: '科幻场景',
prompt: '科幻未来城市,霓虹灯闪烁,飞行汽车穿梭,高楼林立,夜景壮观',
},
{
label: '动漫风格',
prompt: '动漫风格,可爱的角色,柔和的色彩,流畅的动作,日系画风',
},
{
label: '广告宣传',
prompt: '产品展示,专业摄影,简洁背景,商业质感,高端大气',
},
{
label: '自然风景',
prompt: '自然风景,山川湖海,阳光明媚,绿意盎然,宁静优美',
},
{
label: '纪录片',
prompt: '纪实风格,真实记录,专业拍摄,故事性强,画面稳定',
},
{
label: '运动镜头',
prompt: '运动镜头,快速移动,动感十足,追踪拍摄,流畅顺滑',
},
{
label: '慢镜头',
prompt: '慢动作,细节展现,优雅流畅,时间凝固,唯美浪漫',
},
{
label: '水下场景',
prompt: '水下世界,阳光穿透,色彩斑斓,鱼群游动,梦幻唯美',
},
];
// 默认表单数据
export const DEFAULT_FORM_DATA = {
mode: 'text2video', // text2video | image2video
selectedTemplate: '', // 选中的模板
prompt: '',
negative_prompt: '',
image: null,
imageFile: null,
resolution: '1080P',
duration: 5,
fps: 30,
ratio: '16:9',
audio: false,
seed: -1,
prompt_extend: false,
watermark: false,
};
// 视频状态 - 与后端保持一致(后端返回大写,前端统一转小写处理)
export const VIDEO_STATUS = {
QUEUED: 'queued',
IN_PROGRESS: 'in_progress',
SUCCESS: 'success', // 后端返回 'SUCCESS'
COMPLETED: 'completed', // 兼容
FAILURE: 'failure', // 后端返回 'FAILURE'
FAILED: 'failed', // 兼容
CANCELED: 'canceled',
};