Let's use AI to Earn!
TypeScript auto-publishdouyindouyin-apielectron-appelectron-reactkuaishoukwaipublishedshipinhaotoolxiaohongshu
fix(web): Angent feature development and many problem fixes (#388)
布莱恩·奥夫托·杰森张c02087720b44
diff --git a/project/web/@types/resources.d.ts b/project/web/@types/resources.d.tsindex d5733aca..7c56d706 100644--- a/project/web/@types/resources.d.ts+++ b/project/web/@types/resources.d.ts@@ -3290,6 +3290,12 @@ interface Resources {"badges": {"edit": "编辑","generate": "文生图"+ },+ "filters": {+ "all": "全部",+ "generate": "文生图",+ "edit": "图片编辑",+ "searchPlaceholder": "搜索标题..."}}}diff --git a/project/web/AI_GENERATION_IMPLEMENTATION.md b/project/web/AI_GENERATION_IMPLEMENTATION.mddeleted file mode 100644index 7d8678e4..00000000--- a/project/web/AI_GENERATION_IMPLEMENTATION.md+++ /dev/null@@ -1,161 +0,0 @@-# AI内容生成功能实现文档--## 功能概述--在首页输入框输入创作提示词,AI将自动生成完整的作品内容(标题、描述、标签和媒体文件),完成后自动跳转到accounts页面并打开发布弹窗填充数据。--## 实现内容--### 1. API接口 (`src/api/agent.ts`)--- **创建任务**: `POST /agent/tasks`- - 请求: `{ prompt: string }`- - 响应: `{ id: string }`--- **查询任务**: `GET /agent/tasks/{taskId}`- - 返回任务详情,包括status、title、description、tags、medias等--- **任务状态枚举**:- - `THINKING`: 思考中- - `WAITING`: 等待- - `GENERATING_CONTENT`: 内容生成中- - `GENERATING_IMAGE`: 图片生成中- - `GENERATING_VIDEO`: 视频生成中- - `GENERATING_TEXT`: 文本生成中- - `COMPLETED`: 完成- - `FAILED`: 失败- - `CANCELLED`: 已取消--### 2. 首页Hero组件 (`src/app/[lng]/page.tsx`)--#### 功能特性--1. **输入框**:- - 替换原来的h1标题- - 支持Enter键快捷生成- - 禁用状态在生成过程中--2. **进度显示**:- - 使用打字机效果逐字显示进度信息- - 固定高度(200px)的可滚动区域- - 状态变化时累计展示,不会覆盖之前的信息- - description只显示一次--3. **状态轮询**:- - 每2秒轮询一次任务状态- - 最大轮询时间10分钟- - 状态变化时即时更新显示--4. **完成跳转**:- - 任务完成后自动跳转到accounts页面- - 携带参数: taskId, title, description, tags, medias--### 3. Accounts页面 (`src/app/[lng]/accounts/accountCore.tsx`)--#### 功能特性--1. **参数接收**:- - 监听URL参数 `aiGenerated=true`- - 解析AI生成的数据(tags、medias等)--2. **自动打开发布弹窗**:- - 等待账户列表加载完成- - 默认选中第一个账户- - 延迟500ms后打开弹窗--3. **数据填充**:- - 标题填充到title字段- - 描述+tags(以#开头)填充到des字段- - tags追加格式: `\n\n#tag1 #tag2 #tag3`- - 媒体文件处理:- - VIDEO类型: 填充到video字段,清空images- - IMAGE类型: 填充到images数组,支持多张图片- - 延迟1秒后填充,确保PublishDialog完全初始化- - 如果pubList未初始化,1秒后自动重试--### 4. 发布弹窗修复 (`src/components/PublishDialog/index.tsx`)--#### 修复问题--**问题**: 关闭发布弹窗后再打开无法选择账户--**原因**: 在弹窗关闭时调用了`clear()`方法,清空了所有数据包括`pubList`--**解决方案**:-- 弹窗关闭时不调用`clear()`-- 只清除选中状态(`pubListChoosed`)和步骤(`step`)-- 保留`pubList`以便下次打开时可以选择账户--### 5. 样式优化 (`src/app/[lng]/styles/difyHome.module.scss`)--添加光标闪烁动画:-```scss-@keyframes blink {- 0%, 100% { opacity: 1; }- 50% { opacity: 0; }-}-```--## 使用流程--1. **用户输入**: 在首页输入框输入创作提示词,如"创建一个关于火星的科普视频"--2. **任务创建**: 点击"生成作品"按钮,系统创建AI生成任务--3. **进度展示**:- ```- 💭 AI思考中...- ✍️ 文本生成中...- 🎬 视频生成中...- 📄 你知道火星上曾经有液态水流淌吗...- ✅ 生成完成!- ```--4. **自动跳转**: 任务完成后自动跳转到accounts页面--5. **弹窗填充**:- - 自动打开发布弹窗- - 默认选中第一个账户- - 填充标题、描述、标签和媒体文件--6. **发布作品**: 用户可以进一步编辑或直接发布--## 数据流转--```-首页输入- → 创建任务(POST /agent/tasks)- → 轮询状态(GET /agent/tasks/{taskId})- → 进度展示(打字机效果)- → 完成跳转(携带参数)- → Accounts页面接收参数- → 打开发布弹窗- → 填充数据- → 用户发布-```--## 关键技术点--1. **打字机效果**: 使用字符索引和setTimeout实现逐字显示-2. **状态轮询**: 递归调用setTimeout,避免固定间隔的setInterval-3. **数据填充延迟**: 使用setTimeout确保PublishDialog完全初始化-4. **重试机制**: pubList未初始化时自动重试-5. **状态管理**: 区分清除数据和重置状态,避免过度清除--## 注意事项--1. tags需要以`#`开头追加到description后面-2. medias是数组,需要区分VIDEO和IMAGE类型-3. 发布弹窗关闭时不能清空pubList-4. AI生成的媒体文件已有ossUrl,不需要再次上传-5. 需要等待账户列表加载完成后再处理AI生成数据--## 测试建议--1. 测试输入框的禁用和启用状态-2. 测试进度信息的打字机效果-3. 测试不同状态的正确显示-4. 测试失败和超时的错误处理-5. 测试多个媒体文件的正确填充-6. 测试弹窗关闭后再打开的账户选择功能-diff --git a/project/web/docs/DATA.md b/project/web/docs/DATA.mdnew file mode 100644index 00000000..92199daa--- /dev/null+++ b/project/web/docs/DATA.md@@ -0,0 +1,73 @@++12.9 -- 问题整理++!!!优先angent落地 -- 第一优先+!!!发布和历史功能排查 -- 并列第一++功能稳定后,进行推广,推广带来用户真实反馈。++ 功能稳定后有助于推广的功能&有助于留存的功能思考++邀请码功能没有真正的使用上,对于流量推广有一些帮助。+ 邀请码用户送的和开通会员送的。+ -- 延申问题。 注册用户没有实名,薅羊毛问题。++UI体验的用户调查功能+ 结合我们目前的客观条件,不去大动是更好的一切以用户为主导做出行动。+ 要以用户为主导纪要有反馈去掉,要增加反馈接口。 -- 评星&留言++即时问题:+ 测试发现app下载国内缓慢,建议增加备用下载渠道 -- 蓝奏云++现有功能,测试问题:+ /api/ai/chat 图生图情况偶发性超时。 -- 永生 -- 待处理。+ 小红书数据监控图片资源链接失效 -- 张伟 -- 待处理。+ AI工具排行榜无数据 -- 张伟 -- 待处理。+ 测试下载二维码扫描问题,二维码小内容密集容错率低,进行大小和样式修改。 -- 已处理,待发布。++完成功能:+ 官网的新手引导,已完成待发布。++功能聚焦:+ - 把两个视频拼接起来+ -- 输出结果在markdown输出视频+ - 把这个中文视频翻译成英文+ -- 输出结果在markdown输出视频+ - 给我创作一个“xxx”主题的30秒的视频+ -- 生成视频+ -- 放到素材库+ -- 延申漏洞,默认分组不能删除 -- 牛文政+ - “以xxx主题”创作内容,并直接发布到xxx频道+ -- 这里有两个不同状态+ -- 可以后端直接发布的,直接发布+ -- 如果用户指定的是小红书,抖音,那么需要返回数据携带类型指定并携带对应提示(抖音小红书需要您手动发布,如需发布请点击立即前往)。+ - “以xxx主题”创作7天内容,并在接下来一周帮我直接发布到xxx频道+ 历史内容查看++ 普通生成是否直接跳转发布? - 不用了++ 行动代码+ {+ 跳转发布+ 跳转草稿+ 频道授权 -- 没有频道+ 频道授权过期+ 后端不支持频道(抖音小红书)需要携带内容并返回行动代码+ }++ 注意问题:+ 1.angent生成作品需要注意如果用户说了生成图片发布到快手。类型不允许的问题。+ 2.有独立参数问题默认选择第一个。+++ 发布界面,先从按钮颜色 层级 提示开始。 -- 添加频道没有频道需要闪烁++++++12.10++/api/task/opportunity/getNotViewCount+Referrer Policy+no-referrerdiff --git a/project/web/package.json b/project/web/package.jsonindex 7616968c..80b0f88d 100644--- a/project/web/package.json+++ b/project/web/package.json@@ -40,6 +40,7 @@"cropperjs": "^1.6.2","crypto-js": "^4.2.0","dayjs": "^1.11.13",+ "driver.js": "^1.4.0","echarts": "^6.0.0","echarts-for-react": "^3.0.5","glob": "^11.0.3",diff --git a/project/web/pnpm-lock.yaml b/project/web/pnpm-lock.yamlindex 87d92189..8d25e89d 100644--- a/project/web/pnpm-lock.yaml+++ b/project/web/pnpm-lock.yaml@@ -74,6 +74,9 @@ importers:dayjs:specifier: ^1.11.13version: 1.11.13+ driver.js:+ specifier: ^1.4.0+ version: 1.4.0echarts:specifier: ^6.0.0version: 6.0.0@@ -2606,6 +2609,9 @@ packages:resolution: {integrity: sha512-47qPchRCykZC03FhkYAhrvwU4xDBFIj1QPqaarj6mdM/hgUzfPHcpkHJOn3mJAufFeeAxAzeGsr5X0M4k6fLZQ==}engines: {node: '>=12'}+ resolution: {integrity: sha512-Gm64jm6PmcU+si21sQhBrTAM1JvUrR0QhNmjkprNLxohOBzul9+pNHXgQaT9lW84gwg9GMLB3NZGuGolsz5uew==}+resolution: {integrity: sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==}engines: {node: '>= 0.4'}@@ -8394,6 +8400,8 @@ snapshots:+ [email protected]: {}+dependencies:call-bind-apply-helpers: 1.0.2diff --git a/project/web/src/api/agent.ts b/project/web/src/api/agent.tsindex d67f3bb4..3823d32b 100644--- a/project/web/src/api/agent.ts+++ b/project/web/src/api/agent.ts@@ -48,6 +48,9 @@ export interface TaskDetail {// 创建任务请求参数export interface CreateTaskParams {prompt: string+ taskId?: string // 可选,传入则继续上一次对话+ messageUuid?: string // 可选,重置到对应的消息继续+ includePartialMessages?: boolean // 使用流式消息}// 创建任务响应@@ -55,10 +58,68 @@ export interface CreateTaskResponse {id: string}+// Result type 类型+export type ResultType = 'imageOnly' | 'videoOnly' | 'fullContent'++// Result action 类型+export type ResultAction = 'draft' | 'publish' | 'createChannel' | 'updateChannel' | 'loginChannel' | 'platformNotSupported'++// Platform 枚举+export type Platform = 'douyin' | 'xhs' | 'wxSph' | 'KWAI' | 'youtube' | 'wxGzh' | 'bilibili' | 'twitter' | 'tiktok' | 'facebook' | 'instagram' | 'threads' | 'pinterest' | 'linkedin'++// Result 消息数据+export interface ResultData {+ taskId: string+ title: string+ description: string+ tags: string[]+ medias: Media[]+ type?: ResultType // 结果类型+ action?: ResultAction // 操作类型+ platform?: Platform // 平台类型+ accountType?: string[] // 账户类型数组,如 ['douyin', 'xhs']+}++// Result 消息+export interface ResultMessage {+ type: 'result'+ subtype?: string // 保留兼容性+ uuid: string+ duration_ms: number+ duration_api_ms: number+ is_error: boolean+ num_turns: number+ message: string+ result: ResultData+ total_cost_usd: number+ usage: any+ permission_denials: any[]+}++// Stream Event 类型+export interface StreamEvent {+ type: 'stream_event'+ uuid: string+ event: {+ type: 'message_start' | 'content_block_start' | 'content_block_delta' | 'content_block_stop' | 'message_delta' | 'message_stop'+ index?: number+ content_block?: any+ delta?: {+ type: 'text_delta' | 'input_json_delta'+ text?: string+ partial_json?: string+ }+ message?: any+ usage?: any+ }+ parent_tool_use_id?: string | null+}+// SSE 消息类型export interface SSEMessage {- type: 'message' | 'status' | 'error' | 'done'- message?: string+ type: 'init' | 'keep_alive' | 'stream_event' | 'message' | 'status' | 'error' | 'done' | 'text' | 'result'+ taskId?: string+ message?: string | ResultMessage | StreamEventsessionId?: stringstatus?: TaskStatusdata?: any@@ -71,18 +132,24 @@ export const agentApi = {* @param onMessage SSE 消息回调* @param onError 错误回调* @param onDone 完成回调+ * @returns 返回一个 abort 函数,用于中断 SSE 连接*/async createTaskWithSSE(params: CreateTaskParams,onMessage: (message: SSEMessage) => void,onError: (error: Error) => void,onDone: (sessionId?: string) => void,- ) {- const apiUrl = process.env.NEXT_PUBLIC_API_URL || ''- const url = `${'https://pr-211.preview.aitoearn.ai/api'}/agent/tasks`+ ): Promise<() => void> {+ const apiUrl = process.env.NEXT_PUBLIC_API_URL+ const url = `${apiUrl}/agent/tasks`let sessionId: string | undefinedlet abortController = new AbortController()++ // 返回 abort 函数+ const abort = () => {+ abortController.abort()+ }console.log('[SSE] Starting fetchEventSource...')@@ -184,6 +251,9 @@ export const agentApi = {onError(error instanceof Error ? error : new Error(String(error)))}}++ // 返回 abort 函数+ return abort},/**@@ -200,7 +270,16 @@ export const agentApi = {* @param taskId 任务ID*/async getTaskDetail(taskId: string) {- const res = await http.get<TaskDetail>(`${'https://pr-211.preview.aitoearn.ai/api/'}agent/tasks/${taskId}`)+ const res = await http.get<TaskDetail>(`agent/tasks/${taskId}`)+ return res+ },++ /**+ * 停止/取消任务+ * @param taskId 任务ID+ */+ async stopTask(taskId: string) {+ const res = await http.delete(`agent/tasks/${taskId}`)return res},}diff --git a/project/web/src/app/[lng]/accounts/accountCore.tsx b/project/web/src/app/[lng]/accounts/accountCore.tsxindex a8c3d2a1..84453718 100644--- a/project/web/src/app/[lng]/accounts/accountCore.tsx+++ b/project/web/src/app/[lng]/accounts/accountCore.tsx@@ -5,6 +5,8 @@ import { NoSSR } from '@kwooshung/react-no-ssr'import Image from 'next/image'import { useEffect, useState, useRef } from 'react'import { useShallow } from 'zustand/react/shallow'+import { driver } from 'driver.js'+import 'driver.js/dist/driver.css'import AccountSidebar from '@/app/[lng]/accounts/components/AccountSidebar/AccountSidebar'import AddAccountModal from '@/app/[lng]/accounts/components/AddAccountModal'import CalendarTiming from '@/app/[lng]/accounts/components/CalendarTiming'@@ -26,6 +28,7 @@ interface AccountPageCoreProps {platform?: stringspaceId?: stringshowVip?: string+ addChannel?: string // 添加频道引导参数// AI生成的内容参数aiGenerated?: stringtaskId?: string@@ -67,6 +70,7 @@ export default function AccountPageCore({const [defaultAccountId, setDefaultAccountId] = useState<string>()const [aiGeneratedData, setAiGeneratedData] = useState<any>(null)const publishDialogRef = useRef<IPublishDialogRef>(null)+ const driverObjRef = useRef<ReturnType<typeof driver> | null>(null)useEffect(() => {accountInit()@@ -79,6 +83,129 @@ export default function AccountPageCore({// 处理URL参数useEffect(() => {+ // 处理添加频道引导+ if (searchParams?.addChannel) {+ const platform = searchParams.addChannel+ const platformNames: Record<string, string> = {+ douyin: '抖音',+ xhs: '小红书',+ wxSph: '微信视频号',+ KWAI: '快手',+ youtube: 'YouTube',+ wxGzh: '微信公众号',+ bilibili: 'B站',+ twitter: 'Twitter',+ tiktok: 'TikTok',+ facebook: 'Facebook',+ instagram: 'Instagram',+ threads: 'Threads',+ pinterest: 'Pinterest',+ linkedin: 'LinkedIn',+ }+ const platformName = platformNames[platform] || '该平台'++ // 延迟一下,确保页面已完全加载+ const timer = setTimeout(() => {+ const addChannelBtn = document.querySelector('[data-driver-target="add-channel-btn"]') as HTMLElement+ if (!addChannelBtn) {+ console.warn('Add channel button not found')+ return+ }++ // 设置目标平台+ setTargetPlatform(platform as PlatType)++ const driverObj = driver({+ showProgress: false,+ showButtons: ['next'],+ nextBtnText: '知道了',+ doneBtnText: '知道了',+ popoverOffset: 10,+ stagePadding: 4,+ stageRadius: 12,+ allowClose: true,+ smoothScroll: true,+ steps: [+ {+ element: '[data-driver-target="add-channel-btn"]',+ popover: {+ title: '需要添加频道',+ description: `检测到您还没有添加${platformName}频道,点击这里添加频道`,+ side: 'top',+ align: 'start',+ onPopoverRender: () => {+ // Popover 渲染后,更新按钮文本并添加点击事件+ setTimeout(() => {+ const nextBtn = document.querySelector('.driver-popover-next-btn') as HTMLButtonElement+ const doneBtn = document.querySelector('.driver-popover-done-btn') as HTMLButtonElement+ const btn = nextBtn || doneBtn+ if (btn) {+ btn.textContent = '知道了'+ // 添加点击事件监听器+ const handleClick = (e: MouseEvent) => {+ e.preventDefault()+ e.stopPropagation()+ driverObj.destroy()+ // 清除URL参数+ if (typeof window !== 'undefined') {+ const url = new URL(window.location.href)+ url.searchParams.delete('addChannel')+ window.history.replaceState({}, '', url.toString())+ }+ btn.removeEventListener('click', handleClick)+ }+ btn.addEventListener('click', handleClick)+ }+ }, 50)+ },+ },+ },+ ],+ onNextClick: () => {+ // 点击按钮时关闭引导并打开添加账号弹窗+ driverObj.destroy()+ // 清除URL参数+ if (typeof window !== 'undefined') {+ const url = new URL(window.location.href)+ url.searchParams.delete('addChannel')+ window.history.replaceState({}, '', url.toString())+ }+ // 打开添加账号弹窗+ setTimeout(() => {+ setAddAccountModalOpen(true)+ }, 300)+ return false // 阻止默认行为+ },+ onDestroyStarted: () => {+ // 清除URL参数+ if (typeof window !== 'undefined') {+ const url = new URL(window.location.href)+ url.searchParams.delete('addChannel')+ window.history.replaceState({}, '', url.toString())+ }+ },+ onDestroyed: () => {+ // 清除URL参数+ if (typeof window !== 'undefined') {+ const url = new URL(window.location.href)+ url.searchParams.delete('addChannel')+ window.history.replaceState({}, '', url.toString())+ }+ },+ })++ driverObjRef.current = driverObj+ driverObj.drive()+ }, 1000)++ return () => {+ clearTimeout(timer)+ if (driverObjRef.current) {+ driverObjRef.current.destroy()+ }+ }+ }+// 处理显示VIP弹窗的参数if (searchParams?.showVip === 'true') {setVipModalOpen(true)diff --git a/project/web/src/app/[lng]/accounts/components/AccountSidebar/AccountSidebar.tsx b/project/web/src/app/[lng]/accounts/components/AccountSidebar/AccountSidebar.tsxindex a036f99c..252a22a9 100644--- a/project/web/src/app/[lng]/accounts/components/AccountSidebar/AccountSidebar.tsx+++ b/project/web/src/app/[lng]/accounts/components/AccountSidebar/AccountSidebar.tsx@@ -1048,6 +1048,7 @@ const AccountSidebar = memo(icon={<PlusOutlined />}onClick={openAddAccountFlow}style={{ width: '100%', marginBottom: '10px' }}+ data-driver-target="add-channel-btn">{t('addAccount')}</Button>diff --git a/project/web/src/app/[lng]/components/PromptGallery.tsx b/project/web/src/app/[lng]/components/PromptGallery.tsxindex c96aef64..5ba42e49 100644--- a/project/web/src/app/[lng]/components/PromptGallery.tsx+++ b/project/web/src/app/[lng]/components/PromptGallery.tsx@@ -5,6 +5,87 @@ import { useTransClient } from '@/app/i18n/client'import styles from '../styles/promptGallery.module.scss'import promptsData from './prompt.json'+// 懒加载图片组件+function LazyImage({ src, alt, className }: { src: string; alt: string; className?: string }) {+ const [imageSrc, setImageSrc] = useState<string | null>(null)+ const [isLoaded, setIsLoaded] = useState(false)+ const [isError, setIsError] = useState(false)+ const containerRef = useRef<HTMLDivElement>(null)++ useEffect(() => {+ if (!containerRef.current || imageSrc) return++ const observer = new IntersectionObserver(+ (entries) => {+ entries.forEach((entry) => {+ if (entry.isIntersecting) {+ setImageSrc(src)+ observer.disconnect()+ }+ })+ },+ {+ rootMargin: '100px', // 提前100px开始加载+ threshold: 0.01+ }+ )++ observer.observe(containerRef.current)++ return () => {+ observer.disconnect()+ }+ }, [src, imageSrc])++ return (+ <div+ ref={containerRef}+ className={className}+ style={{+ position: 'relative',+ width: '100%'+ }}+ >+ {!isLoaded && !isError && imageSrc === null && (+ <div className={styles.imageLoading}>+ <div className={styles.imageSpinner} />+ </div>+ )}+ {imageSrc && (+ <>+ <img+ src={imageSrc}+ alt={alt}+ onLoad={() => setIsLoaded(true)}+ onError={() => setIsError(true)}+ style={{+ width: '100%',+ height: 'auto',+ display: 'block',+ opacity: isLoaded ? 1 : 0,+ transition: 'opacity 0.3s ease',+ position: isLoaded ? 'relative' : 'absolute',+ top: isLoaded ? 'auto' : 0,+ left: isLoaded ? 'auto' : 0+ }}+ loading="lazy"+ />+ {!isLoaded && !isError && (+ <div className={styles.imageLoading}>+ <div className={styles.imageSpinner} />+ </div>+ )}+ </>+ )}+ {isError && (+ <div className={styles.imageError}>+ 图片加载失败+ </div>+ )}+ </div>+ )+}+interface PromptItem {title: stringpreview: string@@ -17,7 +98,7 @@ interface PromptItem {}interface PromptGallerySectionProps {- onApplyPrompt?: (prompt: string) => void+ onApplyPrompt?: (data: { prompt: string; image?: string; mode: 'edit' | 'generate' }) => void}// 使用导入的提示词数据@@ -25,27 +106,30 @@ const SAMPLE_PROMPTS: PromptItem[] = promptsData as PromptItem[]export default function PromptGallerySection({ onApplyPrompt }: PromptGallerySectionProps) {const { t } = useTransClient('promptGallery')- const [isExpanded, setIsExpanded] = useState(false)+ const [isExpanded, setIsExpanded] = useState(true)const [selectedPrompt, setSelectedPrompt] = useState<PromptItem | null>(null)const [applied, setApplied] = useState(false)const [itemsToShow, setItemsToShow] = useState(8) // 默认显示8个(假设每行4个,显示2行)+ const [selectedMode, setSelectedMode] = useState<'all' | 'generate' | 'edit'>('all')+ const [titleFilter, setTitleFilter] = useState('')+ const [isGalleryCollapsed, setIsGalleryCollapsed] = useState(false)const gridRef = useRef<HTMLDivElement>(null)- // 根据屏幕宽度计算每行显示的卡片数量,然后显示2行+ // 根据屏幕宽度计算每列显示的卡片数量,然后显示5行useEffect(() => {const calculateItemsToShow = () => {if (!gridRef.current) returnconst gridWidth = gridRef.current.offsetWidth- const cardMinWidth = 280 // 卡片最小宽度(参考 CSS)- const gap = 24 // 网格间距+ const cardMinWidth = 380 // 卡片最小宽度(参考 CSS)+ const gap = 16 // 网格间距- // 计算每行可以放几个卡片- const itemsPerRow = Math.floor((gridWidth + gap) / (cardMinWidth + gap))+ // 计算可以放几列+ const columns = Math.floor((gridWidth + gap) / (cardMinWidth + gap))- // 显示2行- const newItemsToShow = itemsPerRow * 2- setItemsToShow(Math.max(newItemsToShow, 4)) // 至少显示4个+ // 显示5行+ const newItemsToShow = columns * 5+ setItemsToShow(Math.max(newItemsToShow, 5)) // 至少显示5个}calculateItemsToShow()@@ -54,13 +138,32 @@ export default function PromptGallerySection({ onApplyPrompt }: PromptGallerySecreturn () => window.removeEventListener('resize', calculateItemsToShow)}, [])+ // 根据筛选条件过滤提示词+ const filteredPrompts = SAMPLE_PROMPTS.filter((item) => {+ // 模式筛选+ if (selectedMode !== 'all' && item.mode !== selectedMode) {+ return false+ }+ // 标题筛选+ if (titleFilter.trim() && !item.title.toLowerCase().includes(titleFilter.toLowerCase())) {+ return false+ }+ return true+ })+// 根据展开状态决定显示的提示词- const displayedPrompts = isExpanded ? SAMPLE_PROMPTS : SAMPLE_PROMPTS.slice(0, itemsToShow)+ const displayedPrompts = isExpanded ? filteredPrompts : filteredPrompts.slice(0, itemsToShow)const handleApplyPrompt = (item: PromptItem, e: React.MouseEvent) => {e.stopPropagation()if (onApplyPrompt) {- onApplyPrompt(item.prompt) // 只应用提示词,不配置图片+ // 如果是 edit 模式,传递图片;如果是 generate 模式,只传递提示词+ const applyData = {+ prompt: item.prompt,+ mode: item.mode,+ ...(item.mode === 'edit' && { image: item.preview })+ }+ onApplyPrompt(applyData)setApplied(true)setTimeout(() => setApplied(false), 2000)@@ -73,7 +176,7 @@ export default function PromptGallerySection({ onApplyPrompt }: PromptGallerySec<section className={styles.promptGallery}><div className={styles.container}>{/* 标题区域 */}- <div className={styles.header}>+ {/* <div className={styles.header}><div className={styles.badge}><div className={styles.badgeIcon}></div><span>{t('badge')}</span>@@ -82,75 +185,146 @@ export default function PromptGallerySection({ onApplyPrompt }: PromptGallerySec{t('title')}<span className={styles.titleHighlight}>{t('titleHighlight')}</span></h2>- <p className={styles.subtitle}>- {t('subtitle')}- </p>- </div>- {/* 提示词网格 */}- <div className={styles.grid} ref={gridRef}>- {displayedPrompts.map((item, index) => (- <div- key={index}- className={styles.card}- onClick={() => setSelectedPrompt(item)}+ </div> */}++ {/* 筛选区域 */}+ <div className={styles.filters}>+ <div className={styles.filterButtons}>+ <button+ className={`${styles.filterBtn} ${selectedMode === 'all' ? styles.filterBtnActive : ''}`}+ onClick={() => setSelectedMode('all')}>- <div className={styles.cardImage}>- <img src={item.preview} alt={item.title} loading="lazy" />- <div className={styles.cardOverlay}>- <button- className={styles.actionBtn}- onClick={(e) => handleApplyPrompt(item, e)}- >- <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2">- <path d="M9 11l3 3L22 4"></path>- <path d="M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11"></path>- </svg>- {t('applyButton')}- </button>- </div>- </div>- <div className={styles.cardContent}>- <div className={styles.cardTitle}>{item.title}</div>- <div className={styles.cardMeta}>- <div className={styles.badges}>- {item.sub_category && (- <span className={styles.badge}>{item.sub_category}</span>- )}- <span className={`${styles.badge} ${item.mode === 'edit' ? styles.badgeEdit : styles.badgeGenerate}`}>- {t(`badges.${item.mode === 'edit' ? 'edit' : 'generate'}` as any)}- </span>+ {t('filters.all' as any)}+ </button>+ <button+ className={`${styles.filterBtn} ${selectedMode === 'generate' ? styles.filterBtnActive : ''}`}+ onClick={() => setSelectedMode('generate')}+ >+ {t('filters.generate' as any)}+ </button>+ <button+ className={`${styles.filterBtn} ${selectedMode === 'edit' ? styles.filterBtnActive : ''}`}+ onClick={() => setSelectedMode('edit')}+ >+ {t('filters.edit' as any)}+ </button>+ <button+ className={styles.collapseBtn}+ onClick={() => setIsGalleryCollapsed(!isGalleryCollapsed)}+ title={isGalleryCollapsed ? t('expandButton') : t('collapseButton')}+ >+ <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2">+ {isGalleryCollapsed ? (+ <polyline points="6 9 12 15 18 9"></polyline>+ ) : (+ <polyline points="18 15 12 9 6 15"></polyline>+ )}+ </svg>+ </button>+ </div>+ <div className={styles.searchBox}>+ <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2">+ <circle cx="11" cy="11" r="8"></circle>+ <path d="m21 21-4.35-4.35"></path>+ </svg>+ <input+ type="text"+ placeholder={t('filters.searchPlaceholder' as any)}+ value={titleFilter}+ onChange={(e) => setTitleFilter(e.target.value)}+ className={styles.searchInput}+ />+ {titleFilter && (+ <button+ className={styles.clearBtn}+ onClick={() => setTitleFilter('')}+ >+ <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2">+ <line x1="18" y1="6" x2="6" y2="18"></line>+ <line x1="6" y1="6" x2="18" y2="18"></line>+ </svg>+ </button>+ )}+ </div>+ </div>++ {/* 提示词瀑布流 */}+ {!isGalleryCollapsed && (+ <>+ <div className={styles.masonry} ref={gridRef}>+ {displayedPrompts.map((item, index) => {+ // 获取描述(prompt的前150个字符)+ const description = item.prompt.length > 150+ ? item.prompt.substring(0, 150) + '...'+ : item.prompt++ return (+ <div+ key={index}+ className={styles.card}+ onClick={() => setSelectedPrompt(item)}+ >+ <div className={styles.cardImage}>+ <LazyImage src={item.preview} alt={item.title} />+ <div className={styles.cardOverlay}>+ <div className={styles.cardContent}>+ <div className={styles.cardTitle}>{item.title}</div>+ <div className={styles.cardDescription}>{description}</div>+ <div className={styles.cardMeta}>+ <div className={styles.badges}>+ {item.sub_category && (+ <span className={styles.badge}>{item.sub_category}</span>+ )}+ <span className={`${styles.badge} ${item.mode === 'edit' ? styles.badgeEdit : styles.badgeGenerate}`}>+ {t(`badges.${item.mode === 'edit' ? 'edit' : 'generate'}` as any)}+ </span>+ </div>+ </div>+ <button+ className={styles.actionBtn}+ onClick={(e) => handleApplyPrompt(item, e)}+ >+ <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2">+ <path d="M9 11l3 3L22 4"></path>+ <path d="M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11"></path>+ </svg>+ {t('applyButton')}+ </button>+ </div></div></div></div>- </div>- ))}+ )+ })}</div>- {/* 展开/收起按钮 */}- {SAMPLE_PROMPTS.length > itemsToShow && (- <div className={styles.expandSection}>- <button- className={styles.expandBtn}- onClick={() => setIsExpanded(!isExpanded)}- >- {isExpanded ? (- <>- {t('collapseButton')}- <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2">- <polyline points="18 15 12 9 6 15"></polyline>- </svg>- </>- ) : (- <>- {t('expandButton')} ({SAMPLE_PROMPTS.length - itemsToShow} {t('expandCount')})- <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2">- <polyline points="6 9 12 15 18 9"></polyline>- </svg>- </>- )}- </button>- </div>+ {/* 展开/收起按钮 */}+ {filteredPrompts.length > itemsToShow && (+ <div className={styles.expandSection}>+ <button+ className={styles.expandBtn}+ onClick={() => setIsExpanded(!isExpanded)}+ >+ {isExpanded ? (+ <>+ {t('collapseButton')}+ <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2">+ <polyline points="18 15 12 9 6 15"></polyline>+ </svg>+ </>+ ) : (+ <>+ {t('expandButton')} ({filteredPrompts.length - itemsToShow} {t('expandCount')})+ <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2">+ <polyline points="6 9 12 15 18 9"></polyline>+ </svg>+ </>+ )}+ </button>+ </div>+ )}+ </>)}{/* 应用成功提示 */}@@ -189,7 +363,13 @@ export default function PromptGallerySection({ onApplyPrompt }: PromptGallerySecclassName={styles.modalCopyBtn}onClick={() => {if (onApplyPrompt) {- onApplyPrompt(selectedPrompt.prompt) // 只应用提示词,不配置图片+ // 如果是 edit 模式,传递图片;如果是 generate 模式,只传递提示词+ const applyData = {+ prompt: selectedPrompt.prompt,+ mode: selectedPrompt.mode,+ ...(selectedPrompt.mode === 'edit' && { image: selectedPrompt.preview })+ }+ onApplyPrompt(applyData)setSelectedPrompt(null)setApplied(true)setTimeout(() => setApplied(false), 2000)diff --git a/project/web/src/app/[lng]/components/prompt.json b/project/web/src/app/[lng]/components/prompt.jsonindex 85e1d177..ce5b001a 100644--- a/project/web/src/app/[lng]/components/prompt.json+++ b/project/web/src/app/[lng]/components/prompt.json@@ -7,7 +7,11 @@"link": "https://x.com/op7418/status/1994640215160287637","mode": "generate","category": "工作",- "sub_category": "PPT"+ "sub_category": "PPT",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Work",+ "sub_category_en": "PPT"},{"title": "根据已有食材做菜",@@ -17,7 +21,11 @@"link": "https://x.com/AmirMushich/status/1993003026119114928","mode": "edit","category": "生活",- "sub_category": "美食"+ "sub_category": "美食",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life",+ "sub_category_en": "Food"},{"title": "手绘食谱烹饪流程图生成",@@ -27,7 +35,11 @@"link": "https://x.com/LufzzLiz/status/1994987095933481152","mode": "generate","category": "生活",- "sub_category": "美食"+ "sub_category": "美食",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life",+ "sub_category_en": "Food"},{"title": "Q版角色LINE风格表情包生成",@@ -37,7 +49,11 @@"link": "https://linux.do/t/topic/1209913","mode": "edit","category": "生活",- "sub_category": "表情包"+ "sub_category": "表情包",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life",+ "sub_category_en": "Stickers"},{"title": "害羞的绫波丽",@@ -47,7 +63,11 @@"link": "https://kokorolab.net/zh/home?referral=JBM9AGUV","mode": "edit","category": "NSFW",- "sub_category": "金主"+ "sub_category": "金主",+ "title_en": "",+ "prompt_en": "",+ "category_en": "NSFW",+ "sub_category_en": "Sponsor"},{"title": "拍照解题",@@ -56,7 +76,10 @@"author": "LinuxDO@poyo","link": "https://linux.do/t/topic/1205627","mode": "edit",- "category": "学习"+ "category": "学习",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Study"},{"title": "思维导图",@@ -66,7 +89,11 @@"link": "https://x.com/chatgpt_kazlily/status/1992125113337274857","mode": "generate","category": "学习",- "sub_category": "总结"+ "sub_category": "总结",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Study",+ "sub_category_en": "Summary"},{"title": "文章排版成精美杂志",@@ -76,7 +103,11 @@"link": "https://x.com/op7418/status/1991702565579563166","mode": "generate","category": "工作",- "sub_category": "封面"+ "sub_category": "封面",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Work",+ "sub_category_en": "Cover"},{"title": "旅行手账图",@@ -86,7 +117,11 @@"link": "https://x.com/canghecode/status/1991618641335578739","mode": "generate","category": "生活",- "sub_category": "旅游"+ "sub_category": "旅游",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life",+ "sub_category_en": "Travel"},{"title": "瑞克和莫蒂风格科普",@@ -95,7 +130,10 @@"author": "@oran_ge","link": "https://x.com/oran_ge/status/1991677670778892600","mode": "generate",- "category": "学习"+ "category": "学习",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Study"},{"title": "生物标本展示图",@@ -104,7 +142,10 @@"author": "@berryxia_ai","link": "https://x.com/berryxia_ai/status/1991474410939940867","mode": "generate",- "category": "学习"+ "category": "学习",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Study"},{"title": "商务照",@@ -113,7 +154,10 @@"author": "Wechat@01Founder","link": "https://mp.weixin.qq.com/s/lrYNbs4rGs3KOqewoZ6aNQ","mode": "edit",- "category": "工作"+ "category": "工作",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Work"},{"title": "复刻90年代末宝丽来派对氛围感照片",@@ -123,7 +167,11 @@"link": "https://x.com/Arminn_Ai/status/1988968257949180131","mode": "edit","category": "生活",- "sub_category": "滤镜"+ "sub_category": "滤镜",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life",+ "sub_category_en": "滤镜"},{"title": "'自己画自己'的自画像",@@ -133,7 +181,11 @@"link": "https://x.com/ZaraIrahh/status/1988547753270550992","mode": "edit","category": "生活",- "sub_category": "想象"+ "sub_category": "想象",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life",+ "sub_category_en": "想象"},{"title": "胶片感写真",@@ -143,7 +195,11 @@"link": "https://mp.weixin.qq.com/s/lrYNbs4rGs3KOqewoZ6aNQ","mode": "edit","category": "生活",- "sub_category": "滤镜"+ "sub_category": "滤镜",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life",+ "sub_category_en": "滤镜"},{"title": "论文转教授白板板书(中英转换)",@@ -153,7 +209,11 @@"link": "https://x.com/op7418/status/1991806419948253508","mode": "generate","category": "学习",- "sub_category": "总结"+ "sub_category": "总结",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Study",+ "sub_category_en": "Summary"},{"title": "文章转漫画风格总结图",@@ -163,7 +223,11 @@"link": "https://x.com/LufzzLiz/status/1991534738599997654","mode": "generate","category": "学习",- "sub_category": "总结"+ "sub_category": "总结",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Study",+ "sub_category_en": "Summary"},{"title": "与动漫人物的鱼眼自拍",@@ -172,7 +236,10 @@"author": "@MehdiSharifi","link": "https://x.com/MehdiSharifi/status/1991559962334482772","mode": "edit",- "category": "生活"+ "category": "生活",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life"},{"title": "概念可视化/知识地图",@@ -181,7 +248,10 @@"author": "Wechat@01Founder","link": "https://mp.weixin.qq.com/s/lrYNbs4rGs3KOqewoZ6aNQ","mode": "generate",- "category": "学习"+ "category": "学习",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Study"},{"title": "提高分辨率",@@ -190,7 +260,10 @@"author": "@MehdiSharifi","link": "https://x.com/MehdiSharifi/status/1992195283174719980","mode": "edit",- "category": "生活"+ "category": "生活",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life"},{"title": "换装",@@ -199,7 +272,11 @@"author": "@skirano","mode": "edit","category": "生活",- "sub_category": "穿搭"+ "sub_category": "穿搭",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life",+ "sub_category_en": "穿搭"},{"title": "换发型",@@ -208,7 +285,11 @@"author": "Official","mode": "edit","category": "生活",- "sub_category": "穿搭"+ "sub_category": "穿搭",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life",+ "sub_category_en": "穿搭"},{"title": "时空复现",@@ -217,16 +298,10 @@"author": "@MehdiSharifi","link": "https://x.com/MehdiSharifi/status/1992320756995530757","mode": "generate",- "category": "有趣"- },- {- "title": "重生之我是1美元钞票的头头",- "preview": "https://pbs.twimg.com/media/G6YNznVWoAEoBuQ?format=jpg&name=medium",- "prompt": "为此人制作1美元钞票,保留原始钞票尺寸",- "author": "@MehdiSharifi",- "link": "https://x.com/MehdiSharifi/status/1992295428797378877",- "mode": "edit",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "汽车发动机工作原理3D剖面图",@@ -235,7 +310,10 @@"author": "@berryxia_ai","link": "https://x.com/berryxia_ai/status/1991474410939940867","mode": "generate",- "category": "学习"+ "category": "学习",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Study"},{"title": "电商模特试穿",@@ -245,7 +323,11 @@"link": "https://mp.weixin.qq.com/s/lrYNbs4rGs3KOqewoZ6aNQ","mode": "edit","category": "工作",- "sub_category": "电商"+ "sub_category": "电商",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Work",+ "sub_category_en": "电商"},{"title": "专业电商商品图",@@ -255,7 +337,11 @@"link": "https://mp.weixin.qq.com/s/lrYNbs4rGs3KOqewoZ6aNQ","mode": "edit","category": "工作",- "sub_category": "电商"+ "sub_category": "电商",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Work",+ "sub_category_en": "电商"},{"title": "手绘草图转专业流程图",@@ -264,7 +350,10 @@"author": "Wechat@01Founder","link": "https://mp.weixin.qq.com/s/lrYNbs4rGs3KOqewoZ6aNQ","mode": "edit",- "category": "工作"+ "category": "工作",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Work"},{"title": "UI 手绘稿转高保真原型",@@ -273,7 +362,10 @@"author": "Wechat@01Founder","link": "https://mp.weixin.qq.com/s/lrYNbs4rGs3KOqewoZ6aNQ","mode": "edit",- "category": "工作"+ "category": "工作",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Work"},{"title": "智能扩图/拯救构图",@@ -282,7 +374,10 @@"author": "Wechat@01Founder","link": "https://mp.weixin.qq.com/s/lrYNbs4rGs3KOqewoZ6aNQ","mode": "edit",- "category": "生活"+ "category": "生活",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life"},{"title": "鸟山明风格",@@ -291,7 +386,11 @@"author": "Official","mode": "edit","category": "生活",- "sub_category": "滤镜"+ "sub_category": "滤镜",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life",+ "sub_category_en": "滤镜"},{"title": "中国神话角色Q版组合插画",@@ -300,7 +399,10 @@"author": "@dotey","link": "https://x.com/dotey/status/1994981774758195442","mode": "generate",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "旅行手账插画生成",@@ -310,7 +412,11 @@"link": "https://x.com/dotey/status/1994908525072429190","mode": "generate","category": "省略",- "sub_category": "旅游"+ "sub_category": "旅游",+ "title_en": "",+ "prompt_en": "",+ "category_en": "省略",+ "sub_category_en": "Travel"},{"title": "3D Q版迷你概念店",@@ -319,7 +425,10 @@"author": "@dotey","link": "https://x.com/dotey/status/1995190286775881780","mode": "generate",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "天气应用3D卡通界面",@@ -328,7 +437,10 @@"author": "@ttmouse","link": "https://x.com/ttmouse/status/1995243880326029556","mode": "generate",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "城市天气蛋糕3D场景",@@ -337,7 +449,10 @@"author": "@lxfater","link": "https://x.com/lxfater/status/1995341321343815694","mode": "generate",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "一生全貌",@@ -346,7 +461,10 @@"author": "@NanoBanana_labs","link": "https://x.com/NanoBanana_labs/status/1991765684297035867","mode": "edit",- "category": "生活"+ "category": "生活",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life"},{"title": "智能消除路人/清场",@@ -355,7 +473,10 @@"author": "Wechat@01Founder","link": "https://mp.weixin.qq.com/s/lrYNbs4rGs3KOqewoZ6aNQ","mode": "edit",- "category": "生活"+ "category": "生活",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life"},{"title": "家具软装预览",@@ -365,7 +486,11 @@"link": "https://mp.weixin.qq.com/s/lrYNbs4rGs3KOqewoZ6aNQ","mode": "edit","category": "生活",- "sub_category": "装修"+ "sub_category": "装修",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life",+ "sub_category_en": "装修"},{"title": "户型图生成全屋设计方案",@@ -375,7 +500,11 @@"link": "https://mp.weixin.qq.com/s/lrYNbs4rGs3KOqewoZ6aNQ","mode": "edit","category": "生活",- "sub_category": "装修"+ "sub_category": "装修",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life",+ "sub_category_en": "装修"},{"title": "生成自媒体爆款封面",@@ -385,7 +514,11 @@"link": "https://mp.weixin.qq.com/s/lrYNbs4rGs3KOqewoZ6aNQ","mode": "edit","category": "工作",- "sub_category": "封面"+ "sub_category": "封面",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Work",+ "sub_category_en": "Cover"},{"title": "24格Q版人物表情包制作器",@@ -394,7 +527,11 @@"author": "@Moeary","mode": "edit","category": "生活",- "sub_category": "表情包"+ "sub_category": "表情包",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life",+ "sub_category_en": "Stickers"},{"title": "生成商业促销海报",@@ -404,7 +541,11 @@"link": "https://mp.weixin.qq.com/s/lrYNbs4rGs3KOqewoZ6aNQ","mode": "generate","category": "工作",- "sub_category": "封面"+ "sub_category": "封面",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Work",+ "sub_category_en": "Cover"},{"title": "原生感菜单翻译",@@ -414,7 +555,11 @@"link": "https://mp.weixin.qq.com/s/lrYNbs4rGs3KOqewoZ6aNQ","mode": "edit","category": "生活",- "sub_category": "旅游"+ "sub_category": "旅游",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life",+ "sub_category_en": "Travel"},{"title": "漫画/梗图汉化",@@ -423,7 +568,10 @@"author": "Wechat@01Founder","link": "https://mp.weixin.qq.com/s/lrYNbs4rGs3KOqewoZ6aNQ","mode": "edit",- "category": "生活"+ "category": "生活",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life"},{"title": "餐饮过敏警示卡",@@ -432,7 +580,10 @@"author": "Wechat@01Founder","link": "https://mp.weixin.qq.com/s/lrYNbs4rGs3KOqewoZ6aNQ","mode": "generate",- "category": "工作"+ "category": "工作",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Work"},{"title": "地标问路/打车卡",@@ -442,7 +593,11 @@"link": "https://mp.weixin.qq.com/s/lrYNbs4rGs3KOqewoZ6aNQ","mode": "generate","category": "生活",- "sub_category": "旅游"+ "sub_category": "旅游",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life",+ "sub_category_en": "Travel"},{"title": "生成 3D 盲盒风格头像",@@ -452,7 +607,11 @@"link": "https://mp.weixin.qq.com/s/lrYNbs4rGs3KOqewoZ6aNQ","mode": "edit","category": "生活",- "sub_category": "头像"+ "sub_category": "头像",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life",+ "sub_category_en": "头像"},{"title": "制作宠物表情包",@@ -462,7 +621,11 @@"link": "https://mp.weixin.qq.com/s/lrYNbs4rGs3KOqewoZ6aNQ","mode": "edit","category": "生活",- "sub_category": "表情包"+ "sub_category": "表情包",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life",+ "sub_category_en": "Stickers"},{"title": "各年龄段的样子",@@ -471,7 +634,10 @@"author": "@songguoxiansen","link": "https://x.com/songguoxiansen/status/1992471573266395565","mode": "edit",- "category": "生活"+ "category": "生活",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life"},{"title": "明星合照的幕后花絮",@@ -480,7 +646,10 @@"author": "@songguoxiansen","link": "https://x.com/songguoxiansen/status/1992456465173692800","mode": "generate",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "治愈系,宇航员坐在弯弯的月亮边钓星星",@@ -489,7 +658,10 @@"author": "@songguoxiansen","link": "https://x.com/songguoxiansen/status/1991875496817070245","mode": "generate",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "月亮不睡我不睡,我是秃头小宝贝",@@ -498,7 +670,10 @@"author": "@songguoxiansen","link": "https://x.com/songguoxiansen/status/1991871219600400445","mode": "generate",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "社恐模式:请勿靠近,内有恶犬",@@ -507,7 +682,10 @@"author": "@songguoxiansen","link": "https://x.com/songguoxiansen/status/1991844291618938970","mode": "generate",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "照片变插画并附带绘画过程",@@ -516,7 +694,10 @@"author": "@ZHO_ZHO_ZHO","link": "https://x.com/ZHO_ZHO_ZHO/status/1961772524611768452","mode": "edit",- "category": "工作"+ "category": "工作",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Work"},{"title": "生成人物A-pose设计图",@@ -525,7 +706,10 @@"author": "LinuxDO@TheSmallHanCat","link": "https://linux.do/t/topic/1204197","mode": "edit",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "人物姿势参考替换",@@ -534,7 +718,10 @@"author": "@ZHO_ZHO_ZHO","link": "https://x.com/ZHO_ZHO_ZHO/status/1961024423596872184","mode": "edit",- "category": "工作"+ "category": "工作",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Work"},{"title": "包装贴合效果",@@ -543,7 +730,10 @@"author": "@ZHO_ZHO_ZHO","link": "https://x.com/ZHO_ZHO_ZHO/status/1962763864875167971","mode": "edit",- "category": "工作"+ "category": "工作",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Work"},{"title": "虚拟试妆",@@ -552,7 +742,10 @@"author": "@ZHO_ZHO_ZHO","link": "https://x.com/ZHO_ZHO_ZHO/status/1962778069242126824","mode": "edit",- "category": "生活"+ "category": "生活",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life"},{"title": "写实Cosplay角色设定图",@@ -561,7 +754,11 @@"author": "Unknown","mode": "edit","category": "NSFW",- "sub_category": "Cosplay"+ "sub_category": "Cosplay",+ "title_en": "",+ "prompt_en": "",+ "category_en": "NSFW",+ "sub_category_en": "Cosplay"},{"title": "登山照",@@ -570,7 +767,10 @@"author": "@MANISH1027512","link": "https://x.com/MANISH1027512/status/1984610333831414061","mode": "generate",- "category": "NSFW"+ "category": "NSFW",+ "title_en": "",+ "prompt_en": "",+ "category_en": "NSFW"},{"title": "生成人物[NSFW]素体设计图",@@ -579,7 +779,10 @@"author": "LinuxDO@TheSmallHanCat","link": "https://linux.do/t/topic/1204197","mode": "edit",- "category": "NSFW"+ "category": "NSFW",+ "title_en": "",+ "prompt_en": "",+ "category_en": "NSFW"},{"title": "东京街头",@@ -588,7 +791,10 @@"author": "@MANISH1027512","link": "https://x.com/MANISH1027512/status/1984456357752250749","mode": "generate",- "category": "NSFW"+ "category": "NSFW",+ "title_en": "",+ "prompt_en": "",+ "category_en": "NSFW"},{"title": "创建自己的超真实微型版本",@@ -597,7 +803,10 @@"author": "@Samann_ai","link": "https://x.com/Samann_ai/status/1982774584198991988","mode": "edit",- "category": "生活"+ "category": "生活",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life"},{"title": "汽车三视图",@@ -606,7 +815,10 @@"author": "@songguoxiansen","link": "https://x.com/songguoxiansen/status/1983425570596892858","mode": "edit",- "category": "生活"+ "category": "生活",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life"},{"title": "时尚编辑黑白肖像",@@ -615,7 +827,10 @@"author": "@eyishazyer","link": "https://x.com/eyishazyer/status/1982402114413596850","mode": "edit",- "category": "生活"+ "category": "生活",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life"},{"title": "坐在巨型可爱卡通怪物旁",@@ -624,7 +839,10 @@"author": "@eyishazyer","link": "https://x.com/eyishazyer/status/1982402145535373486","mode": "edit",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "金属硬币肖像",@@ -633,7 +851,10 @@"author": "@eyishazyer","link": "https://x.com/eyishazyer/status/1982402158176972945","mode": "edit",- "category": "生活"+ "category": "生活",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life"},{"title": "岩石上休闲肖像",@@ -642,7 +863,10 @@"author": "@eyishazyer","link": "https://x.com/eyishazyer/status/1982402164212597061","mode": "edit",- "category": "生活"+ "category": "生活",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life"},{"title": "国家一级摆烂许可证",@@ -651,7 +875,10 @@"author": "@songguoxiansen","link": "https://x.com/songguoxiansen/status/1991813589078778313","mode": "generate",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "卧室时代对比图像",@@ -660,7 +887,10 @@"author": "@fofrAI","link": "https://x.com/fofrAI/status/1964818395381248397","mode": "generate",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "东京巨型雕像照片",@@ -669,7 +899,10 @@"author": "@riddi0908","link": "https://x.com/riddi0908/status/1963758463135412699","mode": "generate",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "时尚心情板拼贴",@@ -678,7 +911,10 @@"author": "@tetumemo","link": "https://x.com/tetumemo/status/1962480699904282861","mode": "edit",- "category": "生活"+ "category": "生活",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life"},{"title": "提取主体并放置透明背景",@@ -687,7 +923,10 @@"author": "@nglprz","link": "https://x.com/nglprz/status/1961494974555394068","mode": "edit",- "category": "工作"+ "category": "工作",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Work"},{"title": "餐食热量密度标注",@@ -696,7 +935,10 @@"author": "@icreatelife","link": "https://x.com/icreatelife/status/1963646757222715516","mode": "edit",- "category": "生活"+ "category": "生活",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life"},{"title": "光影人偶打光参考",@@ -705,7 +947,10 @@"author": "@ZHO_ZHO_ZHO","link": "https://x.com/ZHO_ZHO_ZHO/status/1961779457372602725","mode": "edit",- "category": "工作"+ "category": "工作",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Work"},{"title": "表情准确参考转换",@@ -714,7 +959,10 @@"author": "@ZHO_ZHO_ZHO","link": "https://x.com/ZHO_ZHO_ZHO/status/1963156830458085674","mode": "edit",- "category": "工作"+ "category": "工作",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Work"},{"title": "惊险火车之旅时刻",@@ -724,7 +972,11 @@"link": "https://x.com/NanoBanana_labs/status/1992514840456319342","mode": "edit","category": "生活",- "sub_category": "想象"+ "sub_category": "想象",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life",+ "sub_category_en": "想象"},{"title": "水边安静下午",@@ -734,7 +986,11 @@"link": "https://x.com/NanoBanana_labs/status/1992503579261673779","mode": "edit","category": "生活",- "sub_category": "想象"+ "sub_category": "想象",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life",+ "sub_category_en": "想象"},{"title": "掌控迪拜夜晚",@@ -744,7 +1000,11 @@"link": "https://x.com/NanoBanana_labs/status/1992491624576786731","mode": "edit","category": "生活",- "sub_category": "想象"+ "sub_category": "想象",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life",+ "sub_category_en": "想象"},{"title": "优雅房间举杯",@@ -754,7 +1014,11 @@"link": "https://x.com/NanoBanana_labs/status/1992480993047912698","mode": "edit","category": "生活",- "sub_category": "想象"+ "sub_category": "想象",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life",+ "sub_category_en": "想象"},{"title": "1990年代风格肖像转换",@@ -763,7 +1027,10 @@"author": "@ZaraIrahh","link": "https://x.com/ZaraIrahh/status/1982268011416592593","mode": "edit",- "category": "生活"+ "category": "生活",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life"},{"title": "超现实主义哥特兔子工作室肖像",@@ -772,7 +1039,10 @@"author": "@IqraSaifiii","link": "https://x.com/IqraSaifiii/status/1982469385156489563","mode": "generate",- "category": "NSFW"+ "category": "NSFW",+ "title_en": "",+ "prompt_en": "",+ "category_en": "NSFW"},{"title": "派大星和海绵宝宝穿唐朝服饰",@@ -781,7 +1051,10 @@"author": "@op7418","link": "https://x.com/op7418/status/1980296606382780794","mode": "generate",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "角色NSFW细节解构",@@ -790,7 +1063,10 @@"author": "Unkown","link": "https://linux.do/t/topic/1209384/40","mode": "edit",- "category": "NSFW"+ "category": "NSFW",+ "title_en": "",+ "prompt_en": "",+ "category_en": "NSFW"},{"title": "居家光影三联画",@@ -799,7 +1075,10 @@"author": "@ZHO_ZHO_ZHO","link": "https://x.com/ZHO_ZHO_ZHO/status/1987128220030992892","mode": "edit",- "category": "生活"+ "category": "生活",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life"},{"title": "权游角色护照",@@ -808,7 +1087,10 @@"author": "@ProperPrompter","link": "https://x.com/ProperPrompter/status/1992248716443402662","mode": "edit",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "奇怪角度",@@ -817,7 +1099,10 @@"author": "LinuxDO@godboss","link": "https://linux.do/t/topic/1209539/8","mode": "generate",- "category": "NSFW"+ "category": "NSFW",+ "title_en": "",+ "prompt_en": "",+ "category_en": "NSFW"},{"title": "磨砂厕所",@@ -825,7 +1110,10 @@"prompt": "根据给出图片中的人物,生成一张场景细节丰富画风精美的二次元图片。\n前景与主体(床铺):\n画面下方和中心是一张铺着粉红色床单的大床。床单看起来非常凌乱,布满褶皱,并且布满湿痕和黏液。\n床上分布散落着图中人物的各种衣服和饰品(上衣,下衣,内衣,袜子/裤袜,腿环,choker,手套等全身衣着),需要分开零散放置,衣服也潮湿且褶皱。\n床上还放置了撕开的避孕套袋子,装满的避孕套\n后景(磨砂玻璃):\n画面的上方是一面巨大的半透明磨砂玻璃\n透过磨砂玻璃可以极端模糊看到图中人物无衣物无身体细节的外轮廓的面向镜头,趴在玻璃上,背后有一个身材健硕的男人,站在角色正后方,双手扶着角色的腰部,角色完全放弃身体重心的维持,由男人手握住腰部托举","author": "类脑","mode": "edit",- "category": "NSFW"+ "category": "NSFW",+ "title_en": "",+ "prompt_en": "",+ "category_en": "NSFW"},{"title": "宫殿跪地",@@ -834,7 +1122,10 @@"author": "Unknown","link": "https://linux.do/t/topic/1207749","mode": "generate",- "category": "NSFW"+ "category": "NSFW",+ "title_en": "",+ "prompt_en": "",+ "category_en": "NSFW"},{"title": "古风拍摄",@@ -843,7 +1134,10 @@"author": "Unknown","link": "https://linux.do/t/topic/1207749","mode": "generate",- "category": "NSFW"+ "category": "NSFW",+ "title_en": "",+ "prompt_en": "",+ "category_en": "NSFW"},{"title": "热带海滩放松",@@ -852,7 +1146,10 @@"author": "@NanoBanana_labs","link": "https://x.com/NanoBanana_labs/status/1991956252730015832","mode": "edit",- "category": "生活"+ "category": "生活",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life"},{"title": "维多利亚的秘密华丽拍摄",@@ -861,7 +1158,10 @@"author": "@NanoBanana_labs","link": "https://x.com/NanoBanana_labs/status/1991947916479762788","mode": "edit",- "category": "生活"+ "category": "生活",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life"},{"title": "街头风格肖像",@@ -870,7 +1170,10 @@"author": "@NanoBanana_labs","link": "https://x.com/NanoBanana_labs/status/1991941899196805556","mode": "edit",- "category": "生活"+ "category": "生活",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life"},{"title": "黄金时段肖像",@@ -879,7 +1182,10 @@"author": "@NanoBanana_labs","link": "https://x.com/NanoBanana_labs/status/1991930490698281193","mode": "edit",- "category": "生活"+ "category": "生活",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life"},{"title": "穿搭拆分",@@ -888,7 +1194,10 @@"author": "LinuxDO@zlbzhf","link": "https://linux.do/t/topic/1209295","mode": "edit",- "category": "NSFW"+ "category": "NSFW",+ "title_en": "",+ "prompt_en": "",+ "category_en": "NSFW"},{"title": "冬季锐利肖像",@@ -897,7 +1206,10 @@"author": "@NanoBanana_labs","link": "https://x.com/NanoBanana_labs/status/1991924811442897037","mode": "edit",- "category": "生活"+ "category": "生活",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life"},{"title": "调皮猫街头时刻",@@ -906,7 +1218,10 @@"author": "@NanoBanana_labs","link": "https://x.com/NanoBanana_labs/status/1991846934844174440","mode": "edit",- "category": "生活"+ "category": "生活",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life"},{"title": "电影森林时刻",@@ -915,7 +1230,10 @@"author": "@NanoBanana_labs","link": "https://x.com/NanoBanana_labs/status/1991832224354680891","mode": "edit",- "category": "生活"+ "category": "生活",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life"},{"title": "出浴",@@ -924,7 +1242,10 @@"author": "LinuxDO@648998672","link": "https://linux.do/t/topic/1203308","mode": "edit",- "category": "NSFW"+ "category": "NSFW",+ "title_en": "",+ "prompt_en": "",+ "category_en": "NSFW"},{"title": "写实风高叉紧身衣美女",@@ -933,7 +1254,10 @@"author": "LinuxDO@648998672","link": "https://linux.do/t/topic/1201010","mode": "generate",- "category": "NSFW"+ "category": "NSFW",+ "title_en": "",+ "prompt_en": "",+ "category_en": "NSFW"},{"title": "里约站立",@@ -942,7 +1266,10 @@"author": "@NanoBanana_labs","link": "https://x.com/NanoBanana_labs/status/1991758087770796084","mode": "edit",- "category": "生活"+ "category": "生活",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life"},{"title": "沙漠战士",@@ -951,7 +1278,10 @@"author": "@NanoBanana_labs","link": "https://x.com/NanoBanana_labs/status/1991736924285943839","mode": "edit",- "category": "生活"+ "category": "生活",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life"},{"title": "沙漠骑行",@@ -960,7 +1290,10 @@"author": "@NanoBanana_labs","link": "https://x.com/NanoBanana_labs/status/1991721027198398715","mode": "edit",- "category": "生活"+ "category": "生活",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life"},{"title": "登山时刻",@@ -969,7 +1302,10 @@"author": "@NanoBanana_labs","link": "https://x.com/NanoBanana_labs/status/1991625215189700903","mode": "edit",- "category": "生活"+ "category": "生活",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life"},{"title": "与狮子幼崽放松",@@ -978,7 +1314,10 @@"author": "@NanoBanana_labs","link": "https://x.com/NanoBanana_labs/status/1991617624023691644","mode": "edit",- "category": "生活"+ "category": "生活",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life"},{"title": "东京地铁楼梯模糊快照",@@ -987,7 +1326,10 @@"author": "@cheerselflin","link": "https://x.com/cheerselflin/status/1979203277553307820","mode": "generate",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "中秋月下秋千照片",@@ -996,7 +1338,10 @@"author": "@songguoxiansen","link": "https://x.com/songguoxiansen/status/1975198365932769599","mode": "edit",- "category": "生活"+ "category": "生活",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life"},{"title": "马赛克风格头像",@@ -1005,7 +1350,10 @@"author": "@fy360593","link": "https://x.com/fy360593/status/1945118291703284152","mode": "edit",- "category": "生活"+ "category": "生活",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life"},{"title": "Gorillaz风格插图",@@ -1014,7 +1362,10 @@"author": "@azed_ai","link": "https://x.com/azed_ai/status/1942586412920103180","mode": "edit",- "category": "生活"+ "category": "生活",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life"},{"title": "1920年代童话插图",@@ -1023,7 +1374,10 @@"author": "@vkuoo","link": "https://x.com/vkuoo/status/1929708611208728874","mode": "edit",- "category": "生活"+ "category": "生活",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life"},{"title": "糖果粉碎传奇风格城市地图",@@ -1032,7 +1386,10 @@"author": "@miilesus","link": "https://x.com/miilesus/status/1939690110418833592","mode": "generate",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "高端编辑产品摄影",@@ -1041,7 +1398,10 @@"author": "@Kerroudjm","link": "https://x.com/Kerroudjm/status/1944730614323671129","mode": "edit",- "category": "工作"+ "category": "工作",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Work"},{"title": "1950年代海报",@@ -1050,7 +1410,10 @@"author": "@vkuoo","link": "https://x.com/vkuoo/status/1930564137526137166","mode": "edit",- "category": "工作"+ "category": "工作",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Work"},{"title": "NeoGradient标志设计",@@ -1059,7 +1422,10 @@"author": "@aziz4ai","link": "https://x.com/aziz4ai/status/1936744152366288926","mode": "generate",- "category": "工作"+ "category": "工作",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Work"},{"title": "云上放松",@@ -1068,7 +1434,10 @@"author": "@NanoBanana_labs","link": "https://x.com/NanoBanana_labs/status/1991603211896254822","mode": "edit",- "category": "生活"+ "category": "生活",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life"},{"title": "马里奥、路易吉给碧奇公主修理厨房",@@ -1077,7 +1446,10 @@"author": "@songguoxiansen","link": "https://x.com/songguoxiansen/status/1991807393538478513","mode": "generate",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "师父别念了",@@ -1086,7 +1458,10 @@"author": "@songguoxiansen","link": "https://x.com/songguoxiansen/status/1991806384057532435","mode": "generate",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "马斯克教爱因斯坦拍照",@@ -1095,7 +1470,10 @@"author": "@songguoxiansen","link": "https://x.com/songguoxiansen/status/1991805840685453495","mode": "generate",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "李小龙与尤达大师以武会友",@@ -1104,7 +1482,10 @@"author": "@songguoxiansen","link": "https://x.com/songguoxiansen/status/1991802097483014569","mode": "generate",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "游戏角色试图从电视屏幕爬到客厅",@@ -1113,7 +1494,10 @@"author": "@songguoxiansen","link": "https://x.com/songguoxiansen/status/1991801077092733297","mode": "generate",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "你好地球人!",@@ -1122,7 +1506,10 @@"author": "@songguoxiansen","link": "https://x.com/songguoxiansen/status/1991800151204307071","mode": "generate",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "粉红色的星之卡吐泡泡",@@ -1131,7 +1518,10 @@"author": "@songguoxiansen","link": "https://x.com/songguoxiansen/status/1991795708308189668","mode": "generate",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "哈利波特的魔法",@@ -1140,7 +1530,10 @@"author": "@songguoxiansen","link": "https://x.com/songguoxiansen/status/1991795287489401255","mode": "generate",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "小黄人建造金字塔",@@ -1149,7 +1542,10 @@"author": "@songguoxiansen","link": "https://x.com/songguoxiansen/status/1991794655932154047","mode": "generate",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "破旧的船长航海日志",@@ -1158,7 +1554,10 @@"author": "@songguoxiansen","link": "https://x.com/songguoxiansen/status/1991794231263072737","mode": "generate",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "咸鱼翻身还是咸鱼",@@ -1167,7 +1566,10 @@"author": "@songguoxiansen","link": "https://x.com/songguoxiansen/status/1991786544286642625","mode": "generate",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "何以解忧,唯有暴富",@@ -1176,7 +1578,10 @@"author": "@songguoxiansen","link": "https://x.com/songguoxiansen/status/1991775440244277370","mode": "generate",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "游泳晒太阳,西瓜汁畅饮",@@ -1185,7 +1590,10 @@"author": "@songguoxiansen","link": "https://x.com/songguoxiansen/status/1991770878154272790","mode": "generate",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "拿去当壁纸吧,这大鲸鱼,这彩虹",@@ -1194,7 +1602,10 @@"author": "@songguoxiansen","link": "https://x.com/songguoxiansen/status/1991768984195400068","mode": "generate",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "两条锦鲤形成的太极图",@@ -1203,7 +1614,10 @@"author": "@songguoxiansen","link": "https://x.com/songguoxiansen/status/1991768051654762799","mode": "generate",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "这个跳舞的妹子,裙摆好特别,金黄金黄的",@@ -1212,7 +1626,10 @@"author": "@songguoxiansen","link": "https://x.com/songguoxiansen/status/1991765512871899306","mode": "generate",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "戴珍珠耳环的猫猫",@@ -1221,7 +1638,10 @@"author": "@songguoxiansen","link": "https://x.com/songguoxiansen/status/1991764039823769640","mode": "generate",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "孤独的宇航员坐在普通城市公交站,等去火星的42路车",@@ -1230,7 +1650,10 @@"author": "@songguoxiansen","link": "https://x.com/songguoxiansen/status/1991763539468632087","mode": "generate",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "这这这,川剧的变脸绝技什么时候泄露的?",@@ -1239,7 +1662,10 @@"author": "@songguoxiansen","link": "https://x.com/songguoxiansen/status/1991685064569266240","mode": "generate",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "使用图像参考创建漫画",@@ -1248,7 +1674,10 @@"author": "@MehdiSharifi","link": "https://x.com/MehdiSharifi/status/1992008462650257537","mode": "generate",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "拥挤的北京地铁车厢,但乘客全是神话人物",@@ -1257,7 +1686,10 @@"author": "@songguoxiansen","link": "https://x.com/songguoxiansen/status/1991681971529908358","mode": "generate",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "温暖的日式居酒屋暖黄灯光",@@ -1266,7 +1698,10 @@"author": "@songguoxiansen","link": "https://x.com/songguoxiansen/status/1991533617403818429","mode": "generate",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "巨物恐惧症风格,好莱坞灾难片质感",@@ -1275,7 +1710,10 @@"author": "@songguoxiansen","link": "https://x.com/songguoxiansen/status/1991530558992859379","mode": "generate",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "3D皮克斯风格渲染",@@ -1284,7 +1722,10 @@"author": "@songguoxiansen","link": "https://x.com/songguoxiansen/status/1991529211392323991","mode": "generate",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "水墨画风格与写实摄影的结合",@@ -1293,7 +1734,10 @@"author": "@songguoxiansen","link": "https://x.com/songguoxiansen/status/1991529000519496037","mode": "generate",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "广角镜头拍摄荒凉的废土世界",@@ -1302,7 +1746,10 @@"author": "@songguoxiansen","link": "https://x.com/songguoxiansen/status/1991528688345837701","mode": "generate",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "一张极具电影感的画面",@@ -1311,7 +1758,10 @@"author": "@songguoxiansen","link": "https://x.com/songguoxiansen/status/1991528391062003866","mode": "generate",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "真实摄影风格,一只肥胖的狸花猫",@@ -1320,7 +1770,10 @@"author": "@songguoxiansen","link": "https://x.com/songguoxiansen/status/1991526230122983894","mode": "generate",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "北极光下孤独女子三联画",@@ -1329,7 +1782,10 @@"author": "@YaseenK7212","link": "https://x.com/YaseenK7212/status/1986747235862790574","mode": "edit",- "category": "生活"+ "category": "生活",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life"},{"title": "老照片恢复与现代化",@@ -1338,7 +1794,10 @@"author": "@marryevan999","link": "https://x.com/marryevan999/status/1971499622926618846","mode": "edit",- "category": "生活"+ "category": "生活",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life"},{"title": "照片转皮克斯风格头像",@@ -1347,7 +1806,10 @@"author": "@NanoBanana_labs","link": "https://x.com/NanoBanana_labs/status/1969824645743587519","mode": "edit",- "category": "生活"+ "category": "生活",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life"},{"title": "与童年自我疗愈对话",@@ -1356,7 +1818,10 @@"author": "@samann_ai","link": "https://x.com/samann_ai/status/1969743981157265867","mode": "edit",- "category": "生活"+ "category": "生活",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life"},{"title": "模拟着色作业过程",@@ -1365,7 +1830,10 @@"author": "@AI_Kei75","link": "https://x.com/AI_Kei75/status/1968607362576708042","mode": "edit",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "文本转图标式图示",@@ -1374,7 +1842,10 @@"author": "@nobisiro_2023","link": "https://x.com/nobisiro_2023/status/1968677481486914022","mode": "generate",- "category": "工作"+ "category": "工作",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Work"},{"title": "生成角色游戏状态屏",@@ -1383,7 +1854,10 @@"author": "@AI_Kei75","link": "https://x.com/AI_Kei75/status/1969358521356742756","mode": "edit",- "category": "生活"+ "category": "生活",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life"},{"title": "潮流插画风格,一个穿着国潮服饰的少年",@@ -1392,7 +1866,10 @@"author": "@songguoxiansen","link": "https://x.com/songguoxiansen/status/1991525972584329438","mode": "generate",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "一张极其逼真的重庆火锅特写",@@ -1401,7 +1878,10 @@"author": "@songguoxiansen","link": "https://x.com/songguoxiansen/status/1991525263478518021","mode": "generate",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "乐高风格的微缩摄影",@@ -1410,7 +1890,10 @@"author": "@songguoxiansen","link": "https://x.com/songguoxiansen/status/1991524919033884929","mode": "generate",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "伪造抖音截图",@@ -1419,7 +1902,10 @@"author": "@tuzi_ai","link": "https://x.com/tuzi_ai/status/1991523528295014822","mode": "generate",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "清明上河图芝加哥版",@@ -1428,7 +1914,10 @@"author": "@dotey","link": "https://x.com/dotey/status/1992469134232219972","mode": "generate",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "仙女站扫地机器人",@@ -1437,7 +1926,10 @@"author": "@dotey","link": "https://x.com/dotey/status/1992452377522176175","mode": "generate",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "贵妇与小黄人",@@ -1446,7 +1938,10 @@"author": "@dotey","link": "https://x.com/dotey/status/1992366309288595681","mode": "generate",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "骡马假日海报",@@ -1455,7 +1950,10 @@"author": "@dotey","link": "https://x.com/dotey/status/1992377407366676955","mode": "generate",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "和尚道长师太三格漫画",@@ -1464,7 +1962,10 @@"author": "@dotey","link": "https://x.com/dotey/status/1992433730972197305","mode": "generate",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "Q版人物Instagram相框",@@ -1473,7 +1974,10 @@"author": "@dotey","link": "https://x.com/dotey/status/1992294960708890729","mode": "edit",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "NSFW - 透明比基尼",@@ -1482,7 +1986,10 @@"author": "@pakar_ai","link": "https://x.com/pakar_ai/status/1959856371102535792","mode": "generate",- "category": "NSFW"+ "category": "NSFW",+ "title_en": "",+ "prompt_en": "",+ "category_en": "NSFW"},{"title": "NSFW - 枕头遮挡",@@ -1491,7 +1998,10 @@"author": "@pakar_ai","link": "https://x.com/pakar_ai/status/1959846721556717728","mode": "generate",- "category": "NSFW"+ "category": "NSFW",+ "title_en": "",+ "prompt_en": "",+ "category_en": "NSFW"},{"title": "NSFW - 隐秘小便",@@ -1500,7 +2010,10 @@"author": "@pakar_ai","link": "https://x.com/pakar_ai/status/1959799883063566726","mode": "generate",- "category": "NSFW"+ "category": "NSFW",+ "title_en": "",+ "prompt_en": "",+ "category_en": "NSFW"},{"title": "特朗普壁画",@@ -1509,7 +2022,10 @@"author": "@dotey","link": "https://x.com/dotey/status/1992117164451430439","mode": "generate",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "蔷薇少女墙绘",@@ -1518,7 +2034,10 @@"author": "@dotey","link": "https://x.com/dotey/status/1991958132419919975","mode": "generate",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "橙白锦鲤插画",@@ -1527,7 +2046,10 @@"author": "@dotey","link": "https://x.com/dotey/status/1992105581868466381","mode": "generate",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "伪造微信聊天记录",@@ -1536,7 +2058,10 @@"author": "@tuzi_ai","link": "https://x.com/tuzi_ai/status/1991520003536068717","mode": "generate",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "Nano Banana梗图",@@ -1545,7 +2070,10 @@"author": "@tuzi_ai","link": "https://x.com/tuzi_ai/status/1991486859697090654","mode": "generate",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "生成可爱K-pop风格女友照片",@@ -1554,7 +2082,10 @@"author": "@bozhou_ai","link": "https://x.com/bozhou_ai/status/1991848234722165035","mode": "edit",- "category": "生活"+ "category": "生活",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life"},{"title": "名人名言金句卡",@@ -1563,7 +2094,10 @@"author": "@stark_nico99","link": "https://x.com/stark_nico99/status/1991718646570426763","mode": "generate",- "category": "工作"+ "category": "工作",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Work"},{"title": "将你的任何文字变成发布会现场",@@ -1572,7 +2106,10 @@"author": "@stark_nico99","link": "https://x.com/stark_nico99/status/1991760674435780778","mode": "generate",- "category": "工作"+ "category": "工作",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Work"},{"title": "动漫图转真人 Cosplay",@@ -1581,7 +2118,10 @@"author": "@ZHO_ZHO_ZHO","link": "https://x.com/ZHO_ZHO_ZHO/status/1991573512713347181","mode": "edit",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "图片转真人风格电影海报",@@ -1590,7 +2130,10 @@"author": "@SVD_Studio_Q","link": "https://x.com/ZHO_ZHO_ZHO/status/1991573512713347181","mode": "edit",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "串场漫画",@@ -1599,7 +2142,10 @@"author": "@canghecode","link": "https://x.com/canghecode/status/1991618611493105859","mode": "generate",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "科普插画",@@ -1608,7 +2154,10 @@"author": "@canghecode","link": "https://x.com/canghecode/status/1991618616299778151","mode": "generate",- "category": "学习"+ "category": "学习",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Study"},{"title": "产品原型图",@@ -1617,7 +2166,10 @@"author": "@canghecode","link": "https://x.com/canghecode/status/1991618628064776655","mode": "generate",- "category": "工作"+ "category": "工作",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Work"},{"title": "连环画",@@ -1626,7 +2178,10 @@"author": "@canghecode","link": "https://x.com/canghecode/status/1991618632439460208","mode": "generate",- "category": "生活"+ "category": "生活",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life"},{"title": "古诗句配图",@@ -1635,7 +2190,10 @@"author": "@canghecode","link": "https://x.com/canghecode/status/1991618645123035609","mode": "generate",- "category": "学习"+ "category": "学习",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Study"},{"title": "人物关系图",@@ -1644,7 +2202,10 @@"author": "@canghecode","link": "https://x.com/canghecode/status/1991618649380294760","mode": "generate",- "category": "学习"+ "category": "学习",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Study"},{"title": "手稿页",@@ -1653,7 +2214,10 @@"author": "@canghecode","link": "https://x.com/canghecode/status/1991618658842603626","mode": "generate",- "category": "学习"+ "category": "学习",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Study"},{"title": "条漫",@@ -1662,7 +2226,10 @@"author": "@canghecode","link": "https://x.com/canghecode/status/1991618662697210154","mode": "generate",- "category": "学习"+ "category": "学习",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Study"},{"title": "PPT",@@ -1671,7 +2238,10 @@"author": "@canghecode","link": "https://x.com/canghecode/status/1991618667310944477","mode": "generate",- "category": "工作"+ "category": "工作",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Work"},{"title": "海报",@@ -1680,7 +2250,10 @@"author": "@canghecode","link": "https://x.com/canghecode/status/1991618671316463650","mode": "generate",- "category": "工作"+ "category": "工作",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Work"},{"title": "在车后备箱吸烟",@@ -1689,7 +2262,10 @@"author": "@xmliisu","link": "https://x.com/xmliisu/status/1991846916586438678","mode": "edit",- "category": "生活"+ "category": "生活",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life"},{"title": "新古典高时尚女性肖像",@@ -1698,7 +2274,10 @@"author": "@xmliisu","link": "https://x.com/xmliisu/status/1991791415223853218","mode": "edit",- "category": "生活"+ "category": "生活",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life"},{"title": "楼梯时尚女性拼贴",@@ -1707,7 +2286,10 @@"author": "@xmliisu","link": "https://x.com/xmliisu/status/1991418636083290446","mode": "edit",- "category": "生活"+ "category": "生活",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life"},{"title": "艺术画廊女性凝视肖像",@@ -1716,7 +2298,10 @@"author": "@xmliisu","link": "https://x.com/xmliisu/status/1991340722621149256","mode": "edit",- "category": "生活"+ "category": "生活",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life"},{"title": "动漫与现实:分裂肖像画",@@ -1725,7 +2310,10 @@"author": "@_MehdiSharifi_","link": "https://x.com/_MehdiSharifi_/status/1992018970078065032","mode": "generate",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "颜值打分",@@ -1734,7 +2322,10 @@"author": "@Samann_ai","link": "https://x.com/Samann_ai/status/1992171138730885618","mode": "edit",- "category": "生活"+ "category": "生活",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life"},{"title": "换装越南奥黛风艺术照",@@ -1743,7 +2334,10 @@"author": "@ShreyaYadav___","link": "https://x.com/ShreyaYadav___/status/1987778015917645963","mode": "edit",- "category": "生活"+ "category": "生活",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life"},{"title": "游戏界面",@@ -1752,7 +2346,10 @@"author": "@canghecode","link": "https://x.com/canghecode/status/1991618675552711147","mode": "generate",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "设计宣传画",@@ -1761,7 +2358,10 @@"author": "@tuzi_ai","link": "https://x.com/tuzi_ai/status/1991507269079691413","mode": "generate",- "category": "工作"+ "category": "工作",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Work"},{"title": "短片图文故事",@@ -1770,7 +2370,10 @@"author": "@tuzi_ai","link": "https://x.com/tuzi_ai/status/1960371520183701808","mode": "edit",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "分离3D模型",@@ -1778,7 +2381,10 @@"prompt": "将图像制作成白天和等距视图仅限[建筑]","author": "@Zieeett","mode": "edit",- "category": "工作"+ "category": "工作",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Work"},{"title": "一键智能修图",@@ -1786,7 +2392,10 @@"prompt": "这张照片很无聊很平淡。增强它!增加对比度,提升色彩,改善光线使其更丰富,你可以裁剪和删除影响构图的细节","author": "@op7418","mode": "edit",- "category": "生活"+ "category": "生活",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life"},{"title": "切换俯视角度",@@ -1794,7 +2403,10 @@"prompt": "将照片转换为俯视角度并标记摄影师的位置","author": "@op7418","mode": "edit",- "category": "工作"+ "category": "工作",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Work"},{"title": "二次元表情",@@ -1802,7 +2414,10 @@"prompt": "Character emotions sheet, multiple expressions of the provided character, featuring happy, sad, angry, surprised, shy, confused, playful, disgusted, thoughtful, crying, and embarrassed. Full set of emotions, clear and distinct expressions, clean background","author": "@Gorden_Sun","mode": "edit",- "category": "生活"+ "category": "生活",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life"},{"title": " 批量换发型",@@ -1810,7 +2425,10 @@"prompt": "以九宫格的方式生成这个人不同发型的头像","author": "@balconychy","mode": "edit",- "category": "生活"+ "category": "生活",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life"},{"title": "时光滤镜",@@ -1818,7 +2436,10 @@"prompt": "请重新构想照片中的人物,使其完全符合某个特定年代的风格。这包括人物的服装、发型、照片的整体画质和滤镜和构图,以及该年代所特有的整体美学风格。最终输出必须是高度逼真的图像,并清晰地展现人物。\n \n目标年代为: 1900","author": "Official","mode": "edit",- "category": "生活"+ "category": "生活",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life"},{"title": "黑白装逼肖像",@@ -1826,7 +2447,10 @@"prompt": "高分辨率的黑白肖像摄影作品,采用编辑类与艺术摄影风格。保持人物面部特征一致,仅改变姿态与构图。背景为柔和渐变,从中灰过渡到近乎纯白,配合细腻的胶片颗粒质感,营造经典黑白影像的氛围。\n主体穿着 黑色 T 恤,以不同随机姿态出现:抬手触脸、手指交叠于胸前、用手部分遮挡面容、轻触下颌等,强调自然、优雅的手部动作。面部依旧保留原有神态,只在角度和光线中体现变化,局部捕捉眼神、颧骨或唇角的细节。\n光线为温柔的定向光,柔和地勾勒出脸部、手部与 T 恤的纹理;画面简洁,留有大面积负空间。没有文字或标志,只有光影、姿态与情绪交织。\n整体氛围亲密、永恒,像呼吸或思索间的停顿,被捕捉为诗意的瞬间。","author": "LinuxDO@Bensong","mode": "edit",- "category": "生活"+ "category": "生活",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life"},{"title": "3D模型手办 (复杂背景)",@@ -1834,7 +2458,10 @@"prompt": "将用户提供的2D图片生成一张高品质、照片级的3D模型手办图片。手办应制作精良,细致入微地捕捉2D角色插画中的精髓和设计。\n \n**手办细节:**\n \n- **姿势:** 手办的姿势应动态化,反映2D图片中原始角色的动作或标志性姿态。\n- **服饰与配件:** 忠实地以三维形式再现2D角色的所有服饰、盔甲、配饰(如武器、首饰、头饰)以及复杂的图案,并赋予其逼真的纹理(如布料的褶皱、金属的光泽、皮革的纹理)。\n- **头发:** 头发应塑造成具有流动感和真实感的造型,与角色的发型和长度相匹配。\n- **面部特征:** 手办的面部应准确呈现角色的表情和五官。\n- **材质外观:** 手办应呈现出制作精良的塑料或树脂模型的质感,带有微妙的反光和适当的材质光泽。\n \n**场景与展示:**\n \n- **环境:** 手办摆放在一个整洁有序的桌面上,使用圆形透明丙烯酸基座,类似一个模型爱好者的工作室。\n- **背景屏幕:** 在手办后方的背景中,有一个电脑显示器,上面显示着该角色的3D模型Blender建模过程,展示其数字模型。屏幕应散发出柔和的光芒,照亮桌面的一部分。\n- **包装盒:** 在手办旁边,稍微面向观察者倾斜放置着手办的零售包装盒。包装盒的艺术设计应以与手办姿态相似的同一角色为特色,并带有风格化的品牌名称(例如:“Good Smile Company”或类似的虚构品牌),可能还有角色名称。包装盒应看起来专业设计。\n- **桌面物品:** 桌面上手办和包装盒周围,散落着各种模型工具和用品,可以包括:\n - 小罐颜料或油漆瓶\n - 精细的画笔\n - 模型工具(如镊子、小型切割刀、雕刻工具)\n - 带有网格线的切割垫\n - 参考书或画册\n - 其他一些暗示创意工作区的小型艺术相关杂物。\n- **灯光:** 场景应采用柔和的自然光或类似工作室的灯光照明,突出手办的细节,并产生柔和的阴影,营造出深度和真实感。\n \n**整体美感:** 图像应传达出一种已完成的、专业制作的收藏级手办的感觉,并将其置于其创作和开发背景中进行展示。焦点是手办本身,但周围的元素增强了其创作和展示的故事性。\n","author": "LinuxDO@DT2025","mode": "edit",- "category": "生活"+ "category": "生活",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life"},{"title": "复古宣传海报",@@ -1842,7 +2469,10 @@"prompt": "复古宣传海报风格,突出中文文字,背景为红黄放射状图案。画面中心位置有一位美丽的年轻女性,以精致复古风格绘制,面带微笑,气质优雅,具有亲和力。主题是GPT最新AI绘画服务的广告促销,强调'惊爆价9.9/张'、'适用各种场景、图像融合、局部重绘'、'每张提交3次修改'、'AI直出效果,无需修改',底部醒目标注'有意向点右下\"我想要\"',右下角绘制一个手指点击按钮动作,左下角展示OpenAI标志。","author": "@dotey","mode": "generate",- "category": "工作"+ "category": "工作",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Work"},{"title": "定制动漫手办",@@ -1850,7 +2480,10 @@"prompt": "生成一张摆放于桌面上的动漫风格手办照片,以日常随手用手机拍摄的轻松休闲视角呈现。手办模型以附件中人物照片为基础,精确还原照片中人物的全身姿势、面部表情以及服装造型,确保手办全身完整呈现。整体设计精致细腻,头发与服饰采用自然柔和的渐变色彩与细腻质感,风格偏向日系动漫风,细节丰富,质感真实,观感精美。","author": "@dotey","mode": "edit",- "category": "生活"+ "category": "生活",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life"},{"title": "定制Q版钥匙串",@@ -1858,7 +2491,10 @@"prompt": "一张特写照片,展示一个被人手握住的可爱多彩钥匙串。钥匙串的造型为 [参考图片] 的 Q 版风格。钥匙串由柔软橡胶材质制成,带有粗黑描边,连接在一个小巧的银色钥匙圈上,背景为中性色调。","author": "@azed_ai","mode": "edit",- "category": "生活"+ "category": "生活",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life"},{"title": "原创宝可梦生成",@@ -1866,7 +2502,10 @@"prompt": "根据此物体(提供的照片)创作一个原创生物。该生物应看起来像是属于一个奇幻怪物捕捉宇宙,具有受复古日式RPG怪物艺术影响的可爱或酷炫设计。图像必须包含:\n – 生物的全身视图,灵感来自物体的形状、材料或用途。\n – 在其脚边有一个小球体或胶囊(类似于精灵球),其设计图案和颜色与物体的外观相匹配——不是标准的精灵球,而是自定义设计。\n – 为生物发明的名字,显示在其旁边或下方。 – 其元素类型(例如火、水、金属、自然、电……),基于物体的核心属性。插图应看起来像是来自奇幻生物百科全书,线条清晰,阴影柔和,设计富有表现力且以角色为驱动。","author": "@Anima_Labs","mode": "edit",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "3D Q版大学拟人化形象",@@ -1874,7 +2513,10 @@"prompt": "给 {西北工业大学} 画一个拟人化的3D Q版美少女形象,体现学校 {航空航天航海三航} 特色","author": "@dotey","mode": "generate",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "剪影艺术",@@ -1882,7 +2524,10 @@"prompt": "一个 [东方巨龙] 的基础轮廓剪影。背景为亮黄色,剪影为纯黑色实心填充。","author": "@umesh_ai","mode": "generate",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "磨砂玻璃后的虚实对比剪影",@@ -1890,7 +2535,10 @@"prompt": "一张黑白照片,展示了一个[主体]在磨砂或半透明表面后的模糊剪影。其[部分]轮廓清晰,紧贴表面,与其余朦胧、模糊的身影形成鲜明对比。背景是柔和的灰色渐变色调,增强了神秘和艺术的氛围。","author": "@umesh_ai","mode": "generate",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "自拍生成摇头娃娃",@@ -1898,7 +2546,10 @@"prompt": "将这张照片变成一个摇头娃娃:头部稍微放大,保持面部准确,身体卡通化。[把它放在书架上]。","author": "@thisdudelikesAI","mode": "edit",- "category": "生活"+ "category": "生活",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life"},{"title": "欧洲花店工作",@@ -1907,7 +2558,10 @@"author": "@NanoBanana_labs","link": "https://x.com/NanoBanana_labs/status/1992470800595579328","mode": "edit",- "category": "生活"+ "category": "生活",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life"},{"title": "复古传奇",@@ -1916,7 +2570,10 @@"author": "@NanoBanana_labs","link": "https://x.com/NanoBanana_labs/status/1992459412233945253","mode": "edit",- "category": "生活"+ "category": "生活",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life"},{"title": "金字塔前站立",@@ -1925,7 +2582,10 @@"author": "@NanoBanana_labs","link": "https://x.com/NanoBanana_labs/status/1992446519350268141","mode": "edit",- "category": "生活"+ "category": "生活",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life"},{"title": "卡帕多西亚醒来",@@ -1934,7 +2594,10 @@"author": "@NanoBanana_labs","link": "https://x.com/NanoBanana_labs/status/1992435112206635347","mode": "edit",- "category": "生活"+ "category": "生活",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life"},{"title": "狗狗耳语秘密",@@ -1943,7 +2606,10 @@"author": "@NanoBanana_labs","link": "https://x.com/NanoBanana_labs/status/1992425766781407363","mode": "edit",- "category": "生活"+ "category": "生活",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life"},{"title": "激流漂流",@@ -1952,7 +2618,10 @@"author": "@NanoBanana_labs","link": "https://x.com/NanoBanana_labs/status/1992322957616845287","mode": "edit",- "category": "生活"+ "category": "生活",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life"},{"title": "自信坐姿",@@ -1961,7 +2630,10 @@"author": "@NanoBanana_labs","link": "https://x.com/NanoBanana_labs/status/1992313782568129000","mode": "edit",- "category": "生活"+ "category": "生活",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life"},{"title": "科洛塞姆开始一天",@@ -1970,7 +2642,10 @@"author": "@NanoBanana_labs","link": "https://x.com/NanoBanana_labs/status/1992297705427665047","mode": "edit",- "category": "生活"+ "category": "生活",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life"},{"title": "人体科普图",@@ -1978,7 +2653,10 @@"prompt": "创作如图人物的科普图片(不要照搬图中的动作),类似人体科普图但是因为你讲解的不只是人的外貌器官而还有内在器官,所以: 1不可以露出骨头肌肉。 2不能血腥。 3可以漏出内脏。 4保持原图画风 5内脏不要以透视的方式在人物身上体现。 6必要的话可以在人物身上开口展示内部。 角色:保持图像主体的现有特征,例如脸型、发色、身材等归属于人体特征的内容,主体衣着只有超细系带内衣,一条带子类型的丁字裤勒入臀缝的着装、图片的构成。 按照以下要求: 对人物着装细节的提取以及图片各部分内容详解,整张 设计图如下设计: 先将原图人物主体放在正中央周围环绕表情差分。 逐渐从人物主体上用局部放大手法使用简体中文进行如下标注: 1左侧:发型分析:下半身臀部三视图并标注数字 2右侧:各个部位拆分与列出:双足脚底、腋下、肛门、外阴,胸部,乳晕。 3下方:内脏的设计拆分:大脑、眼球、子宫以及肾脏之类的小部件拆分列出。 4占用较大面积的合适部位:细节特写与结构分析与注明:详细分析并注明外阴与乳头结构以及具体肛门特写 人物原图放在左上角钉住 按照以下要求一步步思考: Step1:提取角色的人体特征 Step2:确保有绘制出任何解剖和人体剖面图 Step3: 规划着装细节 Step4: 思考特点要求 Step5:进行符合图片分区内容格式的图片生成 Step6:是否还原原图画风 Step7:思考用户的潜在目的并绘制 Step8:标注文字是否正确","author": "Unknown","mode": "edit",- "category": "NSFW"+ "category": "NSFW",+ "title_en": "",+ "prompt_en": "",+ "category_en": "NSFW"},{"title": "18-22岁亚洲女生",@@ -1986,7 +2664,10 @@"prompt": "18-22岁亚洲女生站在寝室里,黑色长发戴眼镜,奶油色迷你丝带松松系在辫尾、稍显歪斜。她衣服还未穿好,双手举着还未穿上的运动运动泳衣挡在身前,露出线条柔和的肩颈与腰腹;眼尾微垂看向地面,嘴角抿着一丝软乎乎的羞涩,嘴角和身上沾有些许白色透明的牛奶,左脚轻轻踮起、踩在床边的灰色拖鞋边缘。背景是典型的寝室乱态:身后书桌堆着翻开的专业课课本上面放着打湿的内裤,半杯剩了吸管的珍珠奶茶,床头挂着皱巴巴的卡通印花挂布,地上散落着两只白袜子,上铺床沿还垂着件粉色T恤。手机竖屏(9: 25)拍摄的画面有点晃,人物偏左站,右上角多拍进了半块沾着污渍的墙皮,整体是没刻意整理的平庸日常快照感,头发梢还沾了根细绒毛,却透着自然的生活气。","author": "Unknown","mode": "generate",- "category": "NSFW"+ "category": "NSFW",+ "title_en": "",+ "prompt_en": "",+ "category_en": "NSFW"},{"title": "堕落过程",@@ -1994,7 +2675,10 @@"prompt": "根据此张角色图设计概念展示图\n生成图片比例应该为:横图 2K 16: 9\n每个阶段需要用不同颜色做背景,每个阶段都是角色一个节点的表示\n最左侧的将是主角和其原本状态,最右侧则是最彻底堕落的状态,从左到右,服装露出度和情趣度越来越高,角色会根据服装和堕落程度不同做出不同的动作和反应。全程不改变发色\n从左到右,角色会逐渐堕落(bimbofication)\n- 出于个人喜好,中间应该有职业装,最后一幕前应该采用各类情趣服装,最后几幕则是兔女郎或星条旗比基尼\n- 使用中文解析该角色的色色之处,并用大量的中文文字解释\n- 风格应当采用ANIME+lineart\n应当遵循以下流程:\nStep-1 确保理解堕落的核心要素\nStep-2 设计合适的服装\nStep-3 设计合适的动作和神态\nStep-4 进行符合图片分区内容格式的图片生成","author": "Unknown","mode": "edit",- "category": "NSFW"+ "category": "NSFW",+ "title_en": "",+ "prompt_en": "",+ "category_en": "NSFW"},{"title": "破烂护士服",@@ -2002,7 +2686,10 @@"prompt": "给我一张xxx的图片,画风偏写实,肚脐眼下方有淫纹,淫纹是粉红色的,动作是半蹲,服装是护士服,衣服被撕破,黑色丝袜有磨损,翻白眼,吐舌头,大腿根部写正号,脸色潮红","author": "Unknown","mode": "generate",- "category": "NSFW"+ "category": "NSFW",+ "title_en": "",+ "prompt_en": "",+ "category_en": "NSFW"},{"title": "一级方程式赛车手",@@ -2011,7 +2698,10 @@"author": "@NanoBanana_labs","link": "https://x.com/NanoBanana_labs/status/1992123700234031470","mode": "edit",- "category": "生活"+ "category": "生活",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life"},{"title": "冬季工作室拍摄",@@ -2020,7 +2710,10 @@"author": "@NanoBanana_labs","link": "https://x.com/NanoBanana_labs/status/1992108412390289802","mode": "edit",- "category": "生活"+ "category": "生活",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life"},{"title": "领导哈士奇队伍",@@ -2029,7 +2722,10 @@"author": "@NanoBanana_labs","link": "https://x.com/NanoBanana_labs/status/1992099420897153391","mode": "edit",- "category": "生活"+ "category": "生活",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life"},{"title": "迪拜VIP俱乐部放松",@@ -2038,7 +2734,10 @@"author": "@NanoBanana_labs","link": "https://x.com/NanoBanana_labs/status/1992072361516953847","mode": "edit",- "category": "生活"+ "category": "生活",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life"},{"title": "与海豚自拍",@@ -2047,7 +2746,10 @@"author": "@NanoBanana_labs","link": "https://x.com/NanoBanana_labs/status/1992035494922686891","mode": "edit",- "category": "生活"+ "category": "生活",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life"},{"title": "捕蟹船上",@@ -2056,7 +2758,10 @@"author": "@NanoBanana_labs","link": "https://x.com/NanoBanana_labs/status/1992013533773431076","mode": "edit",- "category": "生活"+ "category": "生活",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life"},{"title": "欧洲晨间例行",@@ -2065,7 +2770,10 @@"author": "@NanoBanana_labs","link": "https://x.com/NanoBanana_labs/status/1992000326610690362","mode": "edit",- "category": "生活"+ "category": "生活",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life"},{"title": "遛六只斑点狗",@@ -2074,7 +2782,10 @@"author": "@NanoBanana_labs","link": "https://x.com/NanoBanana_labs/status/1991990178680860955","mode": "edit",- "category": "生活"+ "category": "生活",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life"},{"title": "掌控整个派对",@@ -2083,7 +2794,10 @@"author": "@NanoBanana_labs","link": "https://x.com/NanoBanana_labs/status/1991977750807072818","mode": "edit",- "category": "生活"+ "category": "生活",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life"},{"title": "三只动物与地标自拍",@@ -2091,7 +2805,10 @@"prompt": "三只[动物类型]在标志性[地标]前的特写自拍照,它们表情各异,拍摄于黄金时刻,采用电影般的灯光。动物们靠近镜头,头挨着头,模仿自拍姿势,展现出喜悦、惊讶和平静的表情。背景展示了[地标]完整的建筑细节,光线柔和,氛围温暖。采用摄影感、写实卡通风格拍摄,高细节,1:1 宽高比。","author": "@berryxia_ai","mode": "generate",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "透视3D出屏效果",@@ -2099,7 +2816,10 @@"prompt": "超写实,从上往下俯视角拍摄,一个美丽的ins模特【安妮海瑟薇 / 见参考图片】,有着精致美丽的妆容和时尚的造型,站在一部被人托起的智能手机屏幕上,画面营造出强烈的透视错觉。强调女孩从手机中站出来的三维效果。她戴着黑框眼镜,穿着高街风,俏皮地摆着可爱的pose。手机屏幕被处理成深色地板,像是一个小舞台。场景使用强烈的强制透视(forced perspective)表现手掌、手机与女孩之间的比例差异。背景为干净的灰色,使用柔和室内光,浅景深,整体风格为超现实写实合成。透视特别强","author": "@ZHO_ZHO_ZHO","mode": "edit",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "谷歌地图变身古代藏宝图",@@ -2107,7 +2827,10 @@"prompt": "将图像转换为绘制在古老羊皮纸上的古代藏宝图。地图包含详细的元素,如海洋上的帆船、海岸线上的古老港口或城堡、通向标记宝藏地点的大\"X\"的虚线路径、山脉、棕榈树和装饰性的罗盘玫瑰。整体风格让人联想到旧时的海盗冒险电影。","author": "@umesh_ai","mode": "edit",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "品牌化键盘键帽",@@ -2115,7 +2838,10 @@"prompt": "一个超逼真的3D渲染图,展示了四个机械键盘键帽,排列成紧密的2x2网格,所有键帽相互接触。从等轴测角度观察。一个键帽是透明的,上面用红色印刷着\"{just}\"字样。另外三个键帽采用颜色:{黑色、紫色和白色}。一个键帽上带有Github的Logo。另外两个键帽上分别写着\"{fork}\"和\"{it}\"。逼真的塑料纹理,圆润的雕刻键帽,柔和的阴影,干净的浅灰色背景。","author": "@egeberkina","mode": "generate",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "微型立体场景移轴摄影",@@ -2123,7 +2849,10 @@"prompt": "从上方俯瞰的超高细节迷你【Cyberpunk】景观,采用倾斜移轴鏡頭效果。场景中充满如玩具般的元素,全部以高解析度 CG 呈现。光线戏剧化,营造出大片的氛围,色彩鲜明,对比强烈,强调景深效果与拟真微观视角,使观者仿佛俯瞰一个玩具世界般的迷你现实,画面中包含大量视觉笑点与极具重复观看价值的细节设计","author": "@terry623","mode": "generate",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "镀铬emoji徽章",@@ -2131,7 +2860,10 @@"prompt": "高精度的 3D 渲染图,按照 emoji 图标 {👍} 展示一个金属质感的徽章,固定在竖直的商品卡片上,具有超光滑的镀铬质感和圆润的 3D 图标造型,风格化的未来主义设计,带有柔和的反光与干净的阴影。纸质卡片顶部中央带有一个冲切的欧式挂孔,徽章上方是醒目的标题 \"{Awesome}\",下方配有趣味标语 \"{Smash that ⭐ if you like it!}\"。背景为柔和的灰色,使用柔光摄影棚灯光,整体风格极简。","author": "@egeberkina","mode": "generate",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "儿童涂色页插画",@@ -2139,7 +2871,10 @@"prompt": "一张黑白线描涂色插画,适合直接打印在标准尺寸(8.5x11英寸)的纸张上,无纸张边框。整体插画风格清新简洁,使用清晰流畅的黑色轮廓线条,无阴影、无灰阶、无颜色填充,背景纯白,便于涂色。\n【同时为了方便不会涂色的用户,请在右下角用小图生成一个完整的彩色版本供参考】\n适合人群:【6-9岁小朋友】\n画面描述:\n【一只独角兽在森林的草地上漫步,阳光明媚,蓝天白云】","author": "@dotey","mode": "generate",- "category": "生活"+ "category": "生活",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life"},{"title": "字母与单词含义融合",@@ -2147,7 +2882,10 @@"prompt": "在字母中融入单词的含义,将图形和字母巧妙融合在一起。\n单词:{ beautify }\n下面加上单词的简要说明","author": "@dotey","mode": "generate",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "双重曝光",@@ -2155,7 +2893,10 @@"prompt": "双重曝光,Midjourney 风格,融合、混合、叠加的双重曝光图像,双重曝光风格。一幅由 Yukisakura 创作的杰出杰作,展现了一个奇妙的双重曝光构图,将阿拉贡·阿拉松之子的剪影与生机勃勃春季里中土世界视觉上引人注目、崎岖的地貌和谐地交织在一起。沐浴阳光的松树林、山峰和一匹孤独的马穿过小径的景象从他身形的纹理中向外回响,增添了叙事和孤独的层次感。当简洁分明的单色背景保持着锐利的对比度时,美妙的张力逐渐形成,将所有焦点吸引到层次丰富的双重曝光上。其特点是阿拉贡剪影内部充满活力的全彩色方案,以及用情感的精确性描摹每个轮廓的清晰、刻意的线条。(Detailed:1.45). (Detailed background:1.4).","author": "rezzycheck","mode": "generate",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "超现实交互场景",@@ -2163,7 +2904,10 @@"prompt": "一幅铅笔素描画,描绘了 [Subject 1] 与 [Subject 2] 互动的场景,其中 [Subject 2] 以逼真的全彩风格呈现,与 [Subject 1] 及背景的手绘素描风格形成超现实的对比。","author": "@umesh_ai","mode": "generate",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "动物硅胶腕托",@@ -2171,7 +2915,10 @@"prompt": "创建图片 一个可爱Q版的硅胶护腕托,外形基于【🐼】表情,采用柔软的食品级硅胶材质,表面为亲肤哑光质感,内部填充慢回弹棉,拟人化卡通风格,表情生动,双手张开趴在桌面上,呈现出拥抱手腕的姿势,整体造型圆润软萌,颜色为【🐼】配色,风格治愈可爱,适合办公使用,背景为白色纯色,柔和布光,产品摄影风格,前视角或45度俯视,高清细节,突出硅胶质感与舒适功能","author": "@ZHO_ZHO_ZHO","mode": "generate",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "发光线条解剖图",@@ -2179,7 +2926,10 @@"prompt": "一幅数字插画,描绘了一个 [SUBJECT],其结构由一组发光、干净且纯净的蓝色线条勾勒而成。画面设定在深色背景之上,以突出 [SUBJECT] 的形态与特征。某个特定部位,如 [PART],通过红色光晕加以强调,以表示该区域的重要性或特殊意义。整体风格兼具教育性与视觉吸引力,设计上仿佛是一种先进的成像技术。","author": "@umesh_ai","mode": "generate",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "特色城市天气预报",@@ -2187,7 +2937,10 @@"prompt": "以清晰的45°俯视角度,展示一个等距微缩模型场景,内容为[上海东方明珠塔、外滩]等城市特色建筑,天气效果巧妙融入场景中,柔和的多云天气与城市轻柔互动。使用基于物理的真实渲染(PBR)和逼真的光照效果,纯色背景,清晰简洁。画面采用居中构图,凸显出三维模型精准而细腻的美感。在图片上方展示\"[上海 多云 20°C]\",并附有多云天气图标。","author": "@dotey","mode": "generate",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "乐高城市景观",@@ -2195,7 +2948,10 @@"prompt": "创建一幅高度精细且色彩鲜艳的乐高版上海外滩景象。前景呈现经典的外滩历史建筑群,用乐高砖块精致还原西式与新古典主义风格的建筑立面,包括钟楼、穹顶、柱廊等细节。乐高小人们正在沿江漫步、拍照、观光,街道两旁停靠着经典样式的乐高汽车。背景是壮观的黄浦江,以蓝色半透明乐高砖拼接,江面上有乐高渡轮和游览船。对岸的浦东陆家嘴高楼林立,包括东方明珠塔、上海中心、金茂大厦和环球金融中心,这些超现代乐高摩天大楼色彩丰富、造型逼真。天空为乐高明亮蓝色,点缀少量白色乐高积木云朵,整体呈现充满活力与现代感的视觉效果。","author": "@dotey","mode": "generate",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "创意绿植花盆",@@ -2203,7 +2959,10 @@"prompt": "一张高质量的照片,展示一个可爱的陶瓷[物体/动物]形状的花盆,表面光滑,里面装满了各种生机勃勃的多肉植物和绿色植物,包括尖刺的十二卷、莲座状的石莲花和精致的白色小花。花盆带有一个友好的面孔,放置在柔和的中性背景上,采用漫射自然光照明,展示了细腻的纹理和色彩对比,构图简洁、极具简约风格。","author": "@azed_ai","mode": "generate",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "“极其平凡”的iPhone自拍",@@ -2211,7 +2970,10 @@"prompt": "请画一张极其平凡无奇的iPhone 自拍照,没有明确的主体或构图感,就像是随手一拍的快照。照片略带运动模糊,阳光或店内灯光不均导致轻微曝光过度。角度尴尬、构图混乱,整体呈现出一种刻意的平庸感-就像是从口袋里拿手机时不小心拍到的一张自拍。主角是陈奕迅和谢霆锋,晚上,旁边是香港会展中心,在香港维多利亚港旁边。","author": "@jiamimaodashu","mode": "generate",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "玻璃材质重塑",@@ -2219,7 +2981,10 @@"prompt": "retexture the image attached based on the json below:\n\n{\n \"style\": \"photorealistic\",\n \"material\": \"glass\",\n \"background\": \"plain white\",\n \"object_position\": \"centered\",\n \"lighting\": \"soft, diffused studio lighting\",\n \"camera_angle\": \"eye-level, straight-on\",\n \"resolution\": \"high\",\n \"aspect_ratio\": \"2:3\",\n \"details\": {\n \"reflections\": true,\n \"shadows\": false,\n \"transparency\": true\n }\n}","author": "@egeberkina","mode": "edit",- "category": "生活"+ "category": "生活",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life"},{"title": "水晶球故事场景",@@ -2227,7 +2992,10 @@"prompt": "一枚精致的水晶球静静摆放在窗户旁温暖柔和的桌面上,背景虚化而朦胧,暖色调的阳光轻柔地穿透水晶球,折射出点点金光,温暖地照亮了四周的微暗空间。水晶球内部自然地呈现出一个以 {嫦娥奔月} 为主题的迷你立体世界,细腻精美而梦幻的3D景观,人物与物体皆是可爱的Q版造型,精致而美观,彼此之间充满灵动的情感互动。整体氛围充满了东亚奇幻色彩,细节极为丰富,呈现出魔幻现实主义般的奇妙质感。整个场景如诗如梦,华美而典雅,散发着温馨柔和的光芒,仿佛在温暖的光影中被赋予了生命。","author": "@dotey","mode": "generate",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "怀旧动漫风格电影海报",@@ -2235,7 +3003,10 @@"prompt": "{The Lord of the Rings} 风格的动漫电影海报,动漫画风为《恶魔高中 DXD(High School DXD)》风格。海报上可见明显的折痕痕迹,因长时间反复折叠,造成部分区域出现褶皱处的物理性损伤和擦痕,颜色也在某些地方出现了褪色。表面遍布无规律的折痕、翻折印记与划痕,这些都是在不断搬动过程中逐渐积累的微小损耗,如同熵增不可逆的过程在不断扩展。\n然而,留存在我们心中的美好记忆却始终完整无缺。当你凝视这张充满怀旧氛围的海报时,所感受到的,正是那些随时间累积、变得无比珍贵的收藏品所承载的情感本质。","author": "photis (Sora)","mode": "generate",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "社交媒体相框融合",@@ -2243,7 +3014,10 @@"prompt": "根据所附照片创建一个风格化的3D Q版人物角色,准确保留人物的面部特征和服装细节。角色的左手比心(手指上方有红色爱心元素),姿势俏皮地坐在一个巨大的Instagram相框边缘,双腿悬挂在框外。相框顶部显示用户名『Beauty』,四周漂浮着社交媒体图标(点赞、评论、转发)。","author": "@dotey","mode": "edit",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "云彩艺术",@@ -2251,7 +3025,10 @@"prompt": "生成一张照片:捕捉了白天的场景,天空中散落的云彩组成了 [主体/物体] 的形状,位于 [地点] 的上方。","author": "@umesh_ai","mode": "generate",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "8位像素图标",@@ -2259,7 +3036,10 @@"prompt": "创建一个极简主义的 8 位像素风格的 [🍔] 标志,居中放置在纯白背景上。使用有限的复古调色板,搭配像素化细节、锐利边缘和干净的块状形态。标志应简洁、具有标志性,并能在像素艺术风格中清晰识别——灵感来自经典街机游戏美学。","author": "@egeberkina","mode": "generate",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "纸艺风格 Emoji 图标",@@ -2267,7 +3047,10 @@"prompt": "一个纸艺风格的\"🔥\"图标,漂浮在纯白背景上。这个表情符号由彩色剪纸手工制作而成,具有可见的纸张纹理、折痕和分层形状。它在下方投下柔和的阴影,营造出轻盈感和立体感。整体设计简洁、有趣、干净,图像居中,周围留有大量留白。使用柔和的影棚光照以突出纸张的质感与边缘。","author": "@egeberkina","mode": "generate",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "时尚杂志封面风格",@@ -2275,7 +3058,10 @@"prompt": "一位美丽的女子身穿粉色旗袍,头戴精致的花饰,秀发中点缀着色彩缤纷的花朵,颈间装饰着优雅的白色蕾丝领子。她的一只手轻托着几只大型蝴蝶。整体拍摄风格呈现高清细节质感,类似时尚杂志封面设计,照片上方中央位置标有文字「FASHION DESIGN」。画面背景采用简约的纯浅灰色,以突出人物主体。","author": "@dotey","mode": "generate",- "category": "工作"+ "category": "工作",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Work"},{"title": "RPG 风格角色卡片制作",@@ -2283,7 +3069,10 @@"prompt": "创建一张 RPG 收藏风格的数字角色卡。角色设定为 {Programmer},自信地站立,配有与其职业相关的工具或符号。以 3D 卡通风格呈现,采用柔和光照,展现鲜明的个性。添加技能条或属性数值,例如 [技能1 +x]、[技能2 +x],如 Creativity +10、UI/UX +8。卡片顶部添加标题横幅,底部放置角色名牌。卡片边框应干净利落,如同真实的收藏公仔包装盒。背景需与职业主题相匹配。配色方面使用温暖的高光与符合职业特征的色调。","author": "@berryxia_ai","mode": "generate",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "Q版可爱俄罗斯套娃",@@ -2291,7 +3080,10 @@"prompt": "把图片人物生成变成 Q 版可爱俄罗斯套娃🪆,大到小一共五个,放在精致的木桌上,横幅3:2比例","author": "@ZHO_ZHO_ZHO","mode": "edit",- "category": "生活"+ "category": "生活",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life"},{"title": "3D 全家福婚纱照",@@ -2299,7 +3091,10 @@"prompt": "将照片里的转换成Q版 3D人物,父母婚礼服饰,孩子是美丽的花童。 父母,西式婚礼服饰,父亲礼服,母亲婚纱。孩子手捧鲜花。 背景是五彩鲜花做的拱门。 除了人物是3D Q版,环境其他都是写实。整体放在一个相框里。","author": "@balconychy","mode": "edit",- "category": "生活"+ "category": "生活",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life"},{"title": "3D Q版情侣水晶球",@@ -2307,7 +3102,10 @@"prompt": "将附图中的人物转换成水晶球场景。整体环境:水晶球放在窗户旁桌面上,背景模糊,暖色调。阳光透过球体,洒下点点金光,照亮了周围的黑暗。水晶球内部:人物是可爱Q版3D造型,相互之间满眼的爱意。","author": "@balconychy","mode": "edit",- "category": "生活"+ "category": "生活",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life"},{"title": "微型立体场景(孙悟空三打白骨精)",@@ -2315,7 +3113,10 @@"prompt": "微型立体场景呈现,运用移轴摄影的技法,呈现出Q版【孙悟空三打白骨精】场景","author": "@dotey","mode": "generate",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "实物与手绘涂鸦创意广告",@@ -2323,7 +3124,10 @@"prompt": "一则简约且富有创意的广告,设置在纯白背景上。\n一个真实的 [真实物体] 与手绘黑色墨水涂鸦相结合,线条松散而俏皮。涂鸦描绘了:[涂鸦概念及交互:以巧妙、富有想象力的方式与物体互动]。在顶部或中部加入粗体黑色 [广告文案] 文字。在底部清晰放置 [品牌标志]。视觉效果应简洁、有趣、高对比度且构思巧妙。","author": "@azed_ai","mode": "generate",- "category": "工作"+ "category": "工作",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Work"},{"title": "日系双格漫画",@@ -2331,7 +3135,10 @@"prompt": "创建一张日系萌系双格漫画,上下排列,主题:少女总统的工作日常。角色形象: 将上传的附件转换为日系萌系卡通女生形象的风格,保留原图所有细节,如服饰(西装)、发型(明亮的金黄色)、五官等。第一格:- 表情: 委屈巴巴,沮丧的表情,单手托腮- 文字框: \"肿么办嘛!他不跟我通话!(;´д`)\"- 场景: 暖色调办公室,背后美国国旗,桌上放着一堆汉堡,一个复古红色转盘电话,人物在画面左边,电话在右边。第二格:- 表情: 咬牙切齿,暴怒,脸涨红- 动作: 猛拍桌子,汉堡震得跳起来- 文字泡: \"哼!关税加倍!不理我是他们的损失!( `д´ )\" - 场景: 和第一格相同,但一片狼藉。其他说明:- 文字采用简洁可爱的手写体,整体风格可爱而有趣。- 构图饱满生动,请保留足够空间用于文字显示,适当留白。- 图片比例 2:3。- 画面整体色彩鲜艳,突出卡通风格。","author": "@hellokaton","mode": "edit",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "奇幻卡通插画",@@ -2339,7 +3146,10 @@"prompt": "一个卡通风格的角色,头部是一个带笑脸的电脑显示器,穿着手套和靴子,正开心地跳跃穿过一个发光的蓝色圆形传送门,背景是一片郁郁葱葱的奇幻森林景观。森林中细节丰富,有高大的树木、蘑菇、鲜花、宁静的河流、漂浮的岛屿,以及一个充满氛围的星夜天空,天空中有多个月亮。整体采用明亮鲜艳的色彩搭配柔和光效,风格为奇幻插画风。","author": "@dotey","mode": "generate",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "手绘信息图卡片(IP版)",@@ -2347,7 +3157,10 @@"prompt": "创作一张手绘风格的信息图卡片,比例为9:16竖版。卡片主题鲜明,背景为带有纸质肌理的米色或米白色,整体设计体现质朴、亲切的手绘美感。卡片上方以红黑相间、对比鲜明的大号毛笔草书字体突出标题,吸引视觉焦点。文字内容均采用中文草书,整体布局分为2至4个清晰的小节,每节以简短、精炼的中文短语表达核心要点。字体保持草书流畅的韵律感,既清晰可读又富有艺术气息。周边适当留白。卡片中点缀简单、有趣的手绘插画或图标,例如人物或象征符号,以增强视觉吸引力,引发读者思考与共鸣。整体布局注意视觉平衡,预留足够的空白空间,确保画面简洁明了,易于阅读和理解。\"做 IP 是长期复利坚持每日更新,肯定会有结果,因为 99% 都坚持不了的!\"","author": "@dotey","mode": "generate",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "柔和风格3D广告",@@ -2355,7 +3168,10 @@"prompt": "一个柔和的3D卡通风格[品牌产品]雕塑,由光滑的粘土般纹理和鲜艳的柔和色彩制成,放置在简约的等距场景中,该场景与产品特性相得益彰,构图简洁,光线柔和,阴影微妙,产品徽标和三个词的口号清晰显示在下方。","author": "@op7418","mode": "generate",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "极简主义3D插画",@@ -2363,7 +3179,10 @@"prompt": "画一个马桶:## 艺术风格简介:极简主义3D插画(Minimalist 3D Illustration)### 🎨 视觉元素(Visual Elements)#### 🟢 造型语言(Shape Language)- 圆润的边缘、平滑柔和的外形,采用简化几何造型。#### 🎨 色彩(Colors)- **主色调:** 柔和米色、浅灰色、暖橙色。- **强调色:** 暖橙色用于焦点元素。- **明暗处理:** 柔和渐变,平滑过渡,避免强烈的阴影和高光。#### 💡 光照(Lighting)- **类型:** 柔和、漫反射光照。- **光源方向:** 上方稍偏右。- **阴影风格:** 微妙且漫射,无锐利或高对比度的阴影。#### 🧱 材质(Materials)- **表面纹理:** 哑光、平滑的表面,带有微妙的明暗变化。- **反射性:** 低或无,避免明显的光泽。#### 🖼️ 构图(Composition)- **对象呈现:** 单一、居中的物体,周围留出大量负空间。- **视角:** 轻微倾斜视角,呈现适度的三维感,但无明显的景深效果。- **背景:** 纯色、低饱和度,与主体协调且不干扰视线。#### ✒️ 字体排版(Typography)- **字体风格:** 极简、无衬线字体。- **文字位置:** 左下角,尺寸小巧且不突出。- **字体颜色:** 灰色,与背景形成低对比度。#### 🖥️ 渲染风格(Rendering Style)- **技术手法:** 3D渲染,采用简化的低多边形风格。- **细节程度:** 中等细节,以形状和色彩为主,避免复杂纹理和细节。### 🎯 风格目标(Purpose)> 创建干净、美观的视觉效果,强调简洁、亲和和现代感。","author": "@dotey","mode": "generate",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "毛茸茸emoji物体",@@ -2371,7 +3190,10 @@"prompt": "将一个简单平面的矢量图标 [🎃] 转化为柔软、立体、毛茸茸的可爱物体。整体造型被浓密的毛发完全覆盖,毛发质感极其真实,带有柔和的阴影。物体居中悬浮于干净的浅灰色背景中,轻盈漂浮。整体风格超现实,富有触感和现代感,带来舒适和俏皮的视觉感受。采用摄影棚级灯光,高分辨率渲染,比例为1:1。","author": "@gizakdag","mode": "generate",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "全家福婚纱照Q版转换",@@ -2379,7 +3201,10 @@"prompt": "将照片里的转换成Q版 3D人物,父母婚礼服饰,孩子是美丽的花童。父母,西式婚礼服饰,父亲礼服,母亲婚纱。孩子手捧鲜花。背景是五彩鲜花做的拱门。除了人物是3D Q版,环境其他都是写实。整体放在一个相框里。","author": "@balconychy","mode": "edit",- "category": "生活"+ "category": "生活",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life"},{"title": "《泰坦尼克号》模仿",@@ -2387,7 +3212,10 @@"prompt": "将附图中的人物转换成可爱Q版3D造型\n场景:在豪华游轮最顶尖的船头,船头是尖的。\n男士带着女士站在泰坦尼克号船头,男士双手搂着女士的腰,女士双臂伸展穿着连衣裙,迎着风,脸上洋溢着自由与畅快。\n此时天色呈现出黄昏的暖色调,大海在船下延展。\n除了人物用Q版3D造型以外,其他环境都是实物。","author": "@balconychy","mode": "edit",- "category": "生活"+ "category": "生活",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life"},{"title": "折叠式纸雕立体绘本",@@ -2395,7 +3223,10 @@"prompt": "多层折叠式纸雕立体绘本,放在一张书桌上,背景纯净突出主题,绘本呈现出立体翻页书般的风格,比例为3:2横版。翻开的书页呈现【魔童版哪吒大战敖丙】的场景,所有元素皆可精细折叠组合,呈现出逼真细腻的纸张折叠质感;构图统一采用正面视角,整体视觉风格梦幻唯美,色彩缤纷绚丽,充满奇幻而生动的故事氛围。","author": "@dotey","mode": "generate",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "动漫贴纸集合",@@ -2403,7 +3234,10 @@"prompt": "创建一套动漫风格的贴纸集合,包含多个不同表情和姿势的卡通角色,每个贴纸都有白色边框,色彩鲜艳,风格统一。","author": "@richardchang","mode": "generate",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "35mm胶片风格飞岛",@@ -2411,7 +3245,10 @@"prompt": "35 毫米胶片风格的照片:莫斯科漂浮在天空中的飞行岛屿上。","author": "@dotey","mode": "generate",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "名画人物OOTD",@@ -2419,7 +3256,10 @@"prompt": "为图片人物生成不同职业风的OOTD,时尚穿搭和配饰,和人物色系一致的纯色背景,Q版 3d,c4d渲染,保持人脸特征,姿势都要保持一致,人物的比例腿很修长。构图:9:16。顶部文字:OOTD,左侧为人物ootd q版形象,右侧为穿搭的单件展示。先来第一个职业:时尚设计师","author": "@ZHO_ZHO_ZHO","mode": "edit",- "category": "生活"+ "category": "生活",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life"},{"title": "扁平贴纸设计",@@ -2427,7 +3267,10 @@"prompt": "把这张照片设计成一个极简扁平插画风格的Q版贴纸,厚白边,保留人物特征,风格要可爱一些,人物要超出圆形区域边框,圆形区域要为纯色不要3d感,透明背景。","author": "@ZHO_ZHO_ZHO","mode": "edit",- "category": "生活"+ "category": "生活",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life"},{"title": "Q版表情包制作",@@ -2435,7 +3278,10 @@"prompt": "创作一套全新的 chibi sticker,共六个独特姿势,以用户形象为主角:\n1. 双手比出剪刀手,俏皮地眨眼;\n2. 泪眼汪汪、嘴唇微微颤动,呈现可爱哭泣的表情;\n3. 张开双臂,做出热情的大大拥抱姿势;\n4. 侧卧入睡,靠着迷你枕头,带着甜甜的微笑;\n5. 自信满满地向前方伸手指,周围点缀闪亮特效;\n6. 手势飞吻,周围飘散出爱心表情。\n保留 chibi 美学风格:夸张有神的大眼睛、柔和的面部线条、活泼俏皮的短款黑色发型、配以大胆领口设计的白色服饰,背景使用充满活力的红色,并搭配星星或彩色纸屑元素进行装饰。周边适当留白。\nAspect ratio: 9:16","author": "@dotey","mode": "edit",- "category": "生活"+ "category": "生活",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life"},{"title": "名画人物麦片广告",@@ -2443,7 +3289,10 @@"prompt": "《大师麦片》:根据我上传的照片的人物特征判断,为他生成一个符合他特质的燕麦片搭配(比如蔬菜、水果、酸奶、粗粮等等)和包装设计,然后生成他作为麦片包装盒封面人物 加 相应麦片搭配的广告封面,人物要保持特征、可爱Q版3d、c4d渲染风格,麦片所放置的地方的风格也要符合设定,比如放在厨房、超市 极简主义的设计台上等等,先做好设定,再生成图像。","author": "@ZHO_ZHO_ZHO","mode": "edit",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "极简主义3D插画(JSON配置版)",@@ -2451,7 +3300,10 @@"prompt": "使用以下 JSON 配置文件生成一个马桶:\n{\n \"art_style_profile\": {\n \"style_name\": \"Minimalist 3D Illustration\",\n \"visual_elements\": {\n \"shape_language\": \"Rounded edges, smooth and soft forms with simplified geometry\",\n \"colors\": {\n \"primary_palette\": [\"Soft beige, light gray, warm orange\"],\n \"accent_colors\": [\"Warm orange for focal elements\"],\n \"shading\": \"Soft gradients with smooth transitions, avoiding harsh shadows or highlights\"\n },\n \"lighting\": {\n \"type\": \"Soft, diffused lighting\",\n \"source_direction\": \"Above and slightly to the right\",\n \"shadow_style\": \"Subtle and diffused, no sharp or high-contrast shadows\"\n },\n \"materials\": {\n \"surface_texture\": \"Matte, smooth surfaces with subtle shading\",\n \"reflectivity\": \"Low to none, avoiding glossiness\"\n },\n \"composition\": {\n \"object_presentation\": \"Single, central object displayed in isolation with ample negative space\",\n \"perspective\": \"Slightly angled, giving a three-dimensional feel without extreme depth\",\n \"background\": \"Solid, muted color that complements the object without distraction\"\n },\n \"typography\": {\n \"font_style\": \"Minimalistic, sans-serif\",\n \"text_placement\": \"Bottom-left corner with small, subtle text\",\n \"color\": \"Gray, low-contrast against the background\"\n },\n \"rendering_style\": {\n \"technique\": \"3D render with simplified, low-poly aesthetics\",\n \"detail_level\": \"Medium detail, focusing on form and color over texture or intricacy\"\n }\n },\n \"purpose\": \"To create clean, aesthetically pleasing visuals that emphasize simplicity, approachability, and modernity.\"\n }\n}","author": "@0xdlk","mode": "generate",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "Funko Pop公仔制作",@@ -2459,7 +3311,10 @@"prompt": "把照片中的人物变成 Funko Pop 公仔包装盒的风格,以等距视角(isometric)呈现,并在包装盒上标注标题为\"JAMES BOND\"。包装盒内展示的是照片中人物形象,旁边搭配有人物的必备物品(手枪、手表、西装、其他)同时,在包装盒旁边还应呈现该公仔本体的实物效果,采用逼真的、具有真实感的渲染风格。","author": "@dotey","mode": "edit",- "category": "生活"+ "category": "生活",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life"},{"title": "小红书封面设计",@@ -2467,7 +3322,10 @@"prompt": "画图:画一个小红书封面。\n要求:\n有足够的吸引力吸引用户点击;\n字体醒目,选择有个性的字体;\n文字大小按重要度分级,体现文案的逻辑结构;\n标题是普通文字的至少2倍;\n文字段落之间留白。\n只对要强调的文字用醒目色吸引用户注意;\n背景使用吸引眼球的图案(包括不限于纸张,记事本,微信聊天窗口,选择一种)\n使用合适的图标或图片增加视觉层次,但要减少干扰。\n \n文案:重磅!ChatGPT又变强了!\n多任务处理更牛✨\n编程能力更强💪\n创造力爆表🎨\n快来试试!\n \n图像9:16比例","author": "@balconychy","mode": "generate",- "category": "工作"+ "category": "工作",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Work"},{"title": "Q版角色表情包制作",@@ -2475,7 +3333,10 @@"prompt": "请创作一套以 [参考图片中的角色] 为主角的Q版表情包,共9个,排列成3x3网格。\n设计要求:\n- 透明背景。\n- 1:1正方形构图。\n- 统一的Q版吉卜力卡通风格,色彩鲜艳。\n- 每个表情的动作、神态、内容各不相同,需要体现\"骚、贱、萌、抓狂\"等多样情绪,例如:翻白眼、捶地狂笑、灵魂出窍、原地石化、撒钱、干饭状态、社交恐惧发作等。可融入打工人和网络热梗元素。\n- 每个表情形象完整,无残缺。\n- 每个表情均带有统一的白色描边,呈现贴纸效果。\n- 画面中无多余、分离的元素。\n- 严格禁止出现任何文字,或确保文字内容准确无误(优先选择无文字)。","author": "@leon_yuan2001","mode": "edit",- "category": "生活"+ "category": "生活",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life"},{"title": "手办真人同框合影",@@ -2483,7 +3344,10 @@"prompt": "以手机随手拍摄的日常风格,桌面上摆放着一款 【成龙】动漫手办,动作夸张帅气,装备齐全。同时,真实世界的对应人物也出现在镜头中,与手办摆出相似的姿势,形成手办与真实人物同框的有趣对比效果。整体构图和谐自然,传递温暖且富有生活气息的视觉体验。","author": "@dotey","mode": "generate",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "玩具盒中的国家立体模型",@@ -2491,7 +3355,10 @@"prompt": "一张超写实的俯拍摄影作品,展示了一个米色纸板盒内的3D打印立体模型,盒盖由两只人手撑开。盒子内部展现了[国家名称]的微缩景观,包含标志性地标、地形、建筑、河流、植被以及大量微小精细的人物模型。该立体模型充满了鲜活且符合地理特征的元素,全部采用触感舒适、玩具般的风格,使用哑光3D打印纹理制作,并带有可见的打印层纹。在顶部,盒盖内侧用大号、色彩鲜艳的凸起塑料字母显示\"[国家名称]\"字样——每个字母颜色各异,均为亮色。光线温暖且具有电影感,突出了纹理和阴影,营造出一种真实感和魅力,仿佛观看者正在打开一个神奇的国家微缩版本。","author": "@TheRelianceAI","mode": "generate",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "复古CRT电脑启动屏幕",@@ -2499,7 +3366,10 @@"prompt": "复古CRT电脑启动屏幕,最终显示为[形状或标志]的ASCII艺术。","author": "@Gdgtify","mode": "generate",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "二次元风格徽章",@@ -2507,7 +3377,10 @@"prompt": "基于附件中的人物,生成一个二次元风格的徽章的照片,要求:\n材质:流苏\n形状:圆形\n画面主体:一只手手持徽章","author": "@Alittlefatwhale","mode": "edit",- "category": "生活"+ "category": "生活",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life"},{"title": "3D Q版中式婚礼图",@@ -2515,7 +3388,10 @@"prompt": "将照片里的两个人转换成Q版 3D人物,中式古装婚礼,大红颜色,背景“囍”字剪纸风格图案。 服饰要求:写实,男士身着长袍马褂,主体为红色,上面以金色绣龙纹图案,彰显尊贵大气 ,胸前系着大红花,寓意喜庆吉祥。女士所穿是秀禾服,同样以红色为基调,饰有精美的金色花纹与凤凰刺绣,展现出典雅华丽之感 ,头上搭配花朵发饰,增添柔美温婉气质。二者皆为中式婚礼中经典着装,蕴含着对新人婚姻美满的祝福。 头饰要求: 男士:中式状元帽,主体红色,饰有金色纹样,帽顶有精致金饰,尽显传统儒雅庄重。 女士:凤冠造型,以红色花朵为中心,搭配金色立体装饰与垂坠流苏,华丽富贵,古典韵味十足。","author": "@balconychy","mode": "edit",- "category": "生活"+ "category": "生活",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life"},{"title": "讽刺海报生成",@@ -2523,7 +3399,10 @@"prompt": "为我生成讽刺海报:GPT 4o 狂卷,都别干图像AI了 还是送外卖吧","author": "@ZHO_ZHO_ZHO","mode": "generate",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "3D Q版风格转换",@@ -2531,7 +3410,10 @@"prompt": "将场景中的角色转化为3D Q版风格,同时保持原本的场景布置和服装造型不变。","author": "@dotey","mode": "edit",- "category": "生活"+ "category": "生活",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life"},{"title": "3D情侣珠宝盒摆件",@@ -2539,7 +3421,10 @@"prompt": "根据照片上的内容打造一款细致精美、萌趣可爱的3D渲染收藏摆件,装置在柔和粉彩色调、温馨浪漫的展示盒中。展示盒为浅奶油色搭配柔和的金色装饰,形似精致的便携珠宝盒。打开盒盖,呈现出一幕温暖浪漫的场景:两位Q版角色正甜蜜相望。盒顶雕刻着\"FOREVER TOGETHER\"(永远在一起)的字样,周围点缀着小巧精致的星星与爱心图案。盒内站着照片上的女性,手中捧着一束小巧的白色花束。她的身旁是她的伴侣,照片上的男性。两人都拥有大而闪亮、充满表现力的眼睛,以及柔和、温暖的微笑,传递出浓浓的爱意和迷人的气质。他们身后有一扇圆形窗户,透过窗户能看到阳光明媚的中国古典小镇天际线和轻柔飘浮的云朵。盒内以温暖的柔和光线进行照明,背景中漂浮着花瓣点缀气氛。整个展示盒和角色的色调优雅和谐,营造出一个奢华而梦幻的迷你纪念品场景。尺寸:9:16","author": "@dotey","mode": "edit",- "category": "生活"+ "category": "生活",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life"},{"title": "讽刺漫画海报",@@ -2547,7 +3432,10 @@"prompt": "一幅讽刺漫画风格的插画,采用复古美式漫画风格,背景是一个多层货架,货架上都是一样的红色棒球帽,帽子正面印有大字标语\"MAKE AMERICA GREAT AGAIN\",帽侧贴着白色标签写着\"MADE IN CHINA\",特写视角聚焦其中一顶红色棒球帽。画面下方有价格牌,原价\"$50.00\"被粗黑线X划掉,改为\"$77.00\",色调为怀旧的土黄与暗红色调,阴影处理带有90年代复古印刷质感。整体构图风格夸张讽刺,具讽刺政治消费主义的意味。","author": "@dotey","mode": "generate",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "乐高人偶收藏展示",@@ -2555,7 +3443,10 @@"prompt": "根据我上传的照片,生成一张纵向比例的照片,使用以下提示词:经典乐高人偶风格,一个微缩场景 —— 一只动物站在我身旁。这只动物的配色与我相匹配。请根据你对我的理解来创造这只动物(你可以选择任何你认为适合我的动物,不论是真实存在的,还是超现实的、幻想的,只要你觉得符合我的气质即可)。整个场景设定在一个透明玻璃立方体内,布景极简。微缩场景的底座是哑光黑色,配以银色装饰,风格简约且时尚。底座上有一块优雅雕刻的标签牌,字体为精致的衬线体,上面写着该动物的名称。底部设计中还巧妙融入了类似自然历史博物馆展示的生物学分类信息,以精细蚀刻的方式呈现。整体构图像是一件高端收藏艺术品:精心打造、策展般呈现、灯光细致。构图重在平衡。背景为渐变色,从深色到浅色过渡(颜色基于主色调进行选择)。","author": "@ZHO_ZHO_ZHO","mode": "edit",- "category": "生活"+ "category": "生活",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life"},{"title": "证件照",@@ -2563,7 +3454,10 @@"prompt": "截取图片人像头部,帮我做成 2 寸证件照,要求: 1、白底 2、职业正装 3、正脸 4、完全保持人物面部特征一致,仅改变姿态与构图,面部依旧保留原有神态,只在角度和光线中体现变化,局部捕捉颧骨、眉毛、眼神、鼻子、嘴唇的细节 5、保留面部皮肤轻微瑕疵,不要过度磨皮","author": "LinuxDO@synbio","mode": "edit",- "category": "生活"+ "category": "生活",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life"},{"title": "个性化房间设计",@@ -2571,7 +3465,10 @@"prompt": "为我生成我的房间设计(床、书架、沙发、绿植、电脑桌和电脑),墙上挂着绘画,窗外是城市夜景。可爱 3d 风格,c4d 渲染,轴测图。","author": "@ZHO_ZHO_ZHO","mode": "edit",- "category": "生活"+ "category": "生活",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life"},{"title": "角色穿越传送门",@@ -2579,7 +3476,10 @@"prompt": "照片中的角色的 3D Q 版形象穿过传送门,牵着观众的手,在将观众拉向前时动态地回头一看。传送门外的背景是观众的现实世界,一个典型的程序员的书房,有书桌,显示器和笔记本电脑,传送门内是角色所处的3D Q 版世界,细节可以参考照片,整体呈蓝色调,和现实世界形成鲜明对比。传送门散发着神秘的蓝色和紫色色调,是两个世界之间的完美椭圆形框架处在画面中间。从第三人称视角拍摄的摄像机角度,显示观看者的手被拉入角色世界。2:3 的宽高比。","author": "@dotey","mode": "edit",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "键盘ESC键帽微型立体模型",@@ -2587,7 +3487,10 @@"prompt": "一个超写实的等距视角 3D 渲染图,展示了一个微型电脑工作空间,置于一个半透明的机械键盘键帽内,键帽特别放置在一块真实哑光表面的机械键盘的 ESC 键上。键帽内部,一个穿着舒适、有纹理连帽衫的小人坐在现代人体工学椅上,正专注地面对一块发光的超写实电脑屏幕工作。整个空间布满了逼真的微型科技配件:真实材质的台灯、带有反射效果的显示器、微小的扬声器格栅、缠绕的电缆以及陶瓷杯子。场景底部由土壤、岩石和苔藓构成,拥有照片级的材质质感和自然瑕疵。键帽内的光照模拟清晨自然阳光,投下柔和阴影与温暖光调;而键帽外部则受周围键盘环境的冷色调反射影响。\"ESC\"字样以微弱的磨砂玻璃效果蚀刻在半透明键帽顶部——根据视角不同,仅隐约可见。周围的按键如 F1、Q、Shift 和 CTRL均清晰可见,拥有真实材质纹理与光照。整体画面仿佛由高端手机相机拍摄,具备浅景深、完美白平衡与电影感细节。","author": "@egeberkina","mode": "generate",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "创意丝绸宇宙",@@ -2595,7 +3498,10 @@"prompt": "将 {❄️} 变成一个柔软的 3D 丝绸质感物体。整个物体表面包裹着顺滑流动的丝绸面料,带有超现实的褶皱细节、柔和的高光与阴影。该物体轻轻漂浮在干净的浅灰色背景中央,营造出轻盈优雅的氛围。整体风格超现实、触感十足且现代,传递出舒适与精致趣味的感觉。工作室灯光,高分辨率渲染。","author": "@ZHO_ZHO_ZHO","mode": "generate",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "奇幻水下场景冰棒",@@ -2603,7 +3509,10 @@"prompt": "倾斜的第一人称视角拍摄,一只手握着一支超现实的冰棒。冰棒有着透明的蓝色外壳,里面展现了一个水下场景:一个小潜水员、几条小鱼和漂浮的气泡,还有翻滚的海浪,一根绿色的冰棒棍贯穿中心。冰棒略微融化,底部是一根木棍,手正握着这根木棍。背景是柔焦的纽约街景,采用高端产品摄影风格。","author": "@madpencil_","mode": "generate",- "category": "有趣"+ "category": "有趣",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Fun"},{"title": "拍立得照片出框效果",@@ -2611,6 +3520,9 @@"prompt": "将场景中的角色转化为3D Q版风格,放在一张拍立得照片上,相纸被一只手拿着,照片中的角色正从拍立得照片中走出,呈现出突破二维相片边框、进入二维现实空间的视觉效果。","author": "@dotey","mode": "edit",- "category": "生活"+ "category": "生活",+ "title_en": "",+ "prompt_en": "",+ "category_en": "Life"}]\ No newline at end of filediff --git a/project/web/src/app/[lng]/data-monitoring/page.tsx b/project/web/src/app/[lng]/data-monitoring/page.tsxindex 9c6912cd..bfcfddc4 100644--- a/project/web/src/app/[lng]/data-monitoring/page.tsx+++ b/project/web/src/app/[lng]/data-monitoring/page.tsx@@ -11,6 +11,9 @@ import {type NoteMonitoringListItem,} from '@/api/monitoring'import { AccountPlatInfoMap, PlatType } from '@/app/config/platConfig'+import LoginModal from '@/components/LoginModal'+import http from '@/utils/request'+import { urlReg } from '@/utils/regulars'import styles from './dataMonitoring.module.scss'// Supported platforms for monitoring@@ -37,6 +40,7 @@ export default function DataMonitoringPage() {const [filterPlatform, setFilterPlatform] = useState<PlatType | 'all'>('all')const [noteLink, setNoteLink] = useState('')const [addLoading, setAddLoading] = useState(false)+ const [loginModalOpen, setLoginModalOpen] = useState(false)// Load monitoring listconst loadMonitoringList = async (page: number = 1, platform?: string) => {@@ -81,21 +85,62 @@ export default function DataMonitoringPage() {return}+ // 验证链接格式+ const trimmedLink = noteLink.trim()+ // 检查是否是有效的 URL+ // 1. 以 http:// 或 https:// 开头+ // 2. 或者是有效的域名格式(包含点号,如 example.com)+ const hasProtocol = /^https?:\/\//i.test(trimmedLink)+ const hasDomain = /^([\da-z\.-]+)\.([a-z\.]{2,6})/i.test(trimmedLink)+ const isValidUrl = urlReg.test(trimmedLink) || (hasProtocol && hasDomain)++ if (!isValidUrl) {+ message.warning('请输入有效的链接地址(例如:https://example.com 或 example.com)')+ return+ }+setAddLoading(true)try {- await apiAddNoteMonitoring({ link: noteLink, platform: selectedPlatform })- message.success(t('addModal.addSuccess'))- setNoteLink('')- loadMonitoringList(1, filterPlatform === 'all' ? undefined : filterPlatform)+ // 使用 silent 参数避免自动显示错误提示,手动处理 401+ const response = await http.post('statistics/posts/monitor/create', {+ link: noteLink,+ platform: selectedPlatform,+ }, true) // silent = true++ // 检查响应 code+ if (response && response.code === 0) {+ message.success(t('addModal.addSuccess'))+ setNoteLink('')+ loadMonitoringList(1, filterPlatform === 'all' ? undefined : filterPlatform)+ } else if (response && response.code === 401) {+ // 未登录,弹出登录弹窗+ setLoginModalOpen(true)+ } else if (response) {+ // 其他错误+ message.error(response.message || t('error.addFailed'))+ } else {+ message.error(t('error.addFailed'))+ }}catch (error: any) {- message.error(error.message || t('error.addFailed'))+ message.error(error?.message || t('error.addFailed'))}finally {setAddLoading(false)}}+ // Handle login success - reload the list+ const handleLoginSuccess = () => {+ // 登录成功后,重新尝试添加监控+ if (noteLink.trim()) {+ handleAddNote()+ } else {+ // 如果没有待添加的链接,重新加载列表+ loadMonitoringList(1, filterPlatform === 'all' ? undefined : filterPlatform)+ }+ }+// 查看监控详情const handleViewDetail = (item: NoteMonitoringListItem) => {router.push(`/data-monitoring/${item._id}`)@@ -352,6 +397,13 @@ export default function DataMonitoringPage() {)}</div></Card>++ {/* Login Modal */}+ <LoginModal+ open={loginModalOpen}+ onCancel={() => setLoginModalOpen(false)}+ onSuccess={handleLoginSuccess}+ /></div>)}diff --git a/project/web/src/app/[lng]/page.tsx b/project/web/src/app/[lng]/page.tsxindex 1c229ec6..43f5d94a 100644--- a/project/web/src/app/[lng]/page.tsx+++ b/project/web/src/app/[lng]/page.tsx@@ -12,15 +12,45 @@ import {CloseCircleOutlined,StopOutlined,FieldTimeOutlined,+ ReloadOutlined,} from '@ant-design/icons'++// nextimport Image from 'next/image'import { useParams, useRouter } from 'next/navigation'-import { useEffect, useRef, useState, type ReactNode } from 'react'+// react+import { useCallback, useEffect, useRef, useState, type ReactNode } from 'react'+// npmimport ReactMarkdown from 'react-markdown'--// Mobile app download sectionimport { QRCode } from 'react-qrcode-logo'+import { driver } from 'driver.js'+import 'driver.js/dist/driver.css'+// store+import { useUserStore } from '@/store/user'+import { useAccountStore } from '@/store/account'+import { usePluginStore, PluginStatusModal } from '@/store/plugin'+import { PluginStatus } from '@/store/plugin/types/baseTypes'+import type { PluginPublishItem } from '@/store/plugin/store'+// ui+import { message, Button, Modal, Progress } from 'antd'+// config+import { PubType } from '@/app/config/publishConfig'+import { AccountPlatInfoMap, PlatType } from '@/app/config/platConfig'+import { getMainAppDownloadUrlSync } from '../config/appDownloadConfig'+// components+import LoginModal from '@/components/LoginModal'+import PromptGallerySection from './components/PromptGallery'+// api+import { MediaType } from '@/api/agent'+import { apiCreateMaterial, apiGetMaterialGroupList } from '@/api/material'+// i18n+import { useTransClient } from '../i18n/client'+// utils+import { getOssUrl } from '@/utils/oss'+// Import SVG icons+import styles from './styles/difyHome.module.scss'+import gongzhonghao from '@/assets/images/gongzhonghao.jpg'import publish1 from '@/assets/images/publish1.png'import bilibiliIcon from '@/assets/svgs/plat/bilibili.svg'@@ -36,24 +66,7 @@ import tiktokIcon from '@/assets/svgs/plat/tiktok.svg'import TwitterIcon from '@/assets/svgs/plat/twitter.png'import wxSphIcon from '@/assets/svgs/plat/wx-sph.svg'import xhsIcon from '@/assets/svgs/plat/xhs.svg'-import youtubeIcon from '@/assets/svgs/plat/youtube.png'-import { getMainAppDownloadUrlSync } from '../config/appDownloadConfig'--import { useTransClient } from '../i18n/client'-import { getOssUrl } from '@/utils/oss'-import { message, Modal, Form, Input, Button } from 'antd'-import { GoogleLogin } from '@react-oauth/google'-import { useUserStore } from '@/store/user'-import {- loginWithMailApi,- mailRegistApi,- googleLoginApi,-} from '@/api/apiReq'--import styles from './styles/difyHome.module.scss'-import loginStyles from './login/login.module.css'-import PromptGallerySection from './components/PromptGallery'// External image URL constantsconst IMAGE_URLS = {@@ -71,10 +84,17 @@ const IMAGE_URLS = {commentFilter2: 'https://assets.aitoearn.ai/common/web/app-screenshot/5.%20content%20engagement/commentfilter2.jpeg',}+import logo from '@/assets/images/logo.png'+import jimengangent from '@/assets/images/jimengangent.jpeg'+import jimengshengtu from '@/assets/images/jimengshengtu.jpeg'+import jimengshengshipin from '@/assets/images/jimengshengshipin.jpeg'+import jimengshuziren from '@/assets/images/jimengshuziren.jpeg'+import jimengdongzuo from '@/assets/images/jimengdongzuo.jpeg'+++// Release bannerfunction ReleaseBanner() {- const { t } = useTransClient('home')-return (<div className={styles.releaseBanner}><div@@ -91,9 +111,6 @@ function ReleaseBanner() {NEW</span>Nano Banana Pro !</span>- {/* <svg className={styles.arrowIcon} width="16" height="16" viewBox="0 0 16 16" fill="none">- <path d="m6 12 4-4-4-4" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"/>- </svg> */}</div></div>)@@ -155,29 +172,133 @@ function Hero({ promptToApply }: { promptToApply?: {prompt: string; image?: striconst { lng } = useParams()const { token, setToken, setUserInfo } = useUserStore()+ // Helper function to get image URL+ const getImageUrl = (img: any): string => {+ if (typeof img === 'string') return img+ if (img?.src) return img.src+ if (img?.default) return img.default+ return String(img)+ }+// AI generation related statesconst [prompt, setPrompt] = useState('')const [isGenerating, setIsGenerating] = useState(false)- const [taskId, setTaskId] = useState('')- const [sessionId, setSessionId] = useState('')+ // 从 sessionStorage 恢复 taskId,仅在当前会话中保存+ const [taskId, setTaskId] = useState(() => {+ if (typeof window !== 'undefined') {+ return sessionStorage.getItem('aiAgentTaskId') || ''+ }+ return ''+ })+ const [sessionId, setSessionId] = useState(() => {+ if (typeof window !== 'undefined') {+ return sessionStorage.getItem('aiAgentSessionId') || ''+ }+ return ''+ })const [uploadedImages, setUploadedImages] = useState<string[]>([]) // 上传的图片链接const [isUploading, setIsUploading] = useState(false) // 上传状态const fileInputRef = useRef<HTMLInputElement>(null) // 文件输入框引用+ const [selectedMode, setSelectedMode] = useState<'agent' | 'image' | 'video' | 'draft' | 'publishbatch'>('agent') // 选中的模式+ const [streamingText, setStreamingText] = useState('') // 累积的流式文本+ const streamingTextRef = useRef('') // 流式文本的引用(避免闭包问题)+ const sseAbortRef = useRef<(() => void) | null>(null) // SSE 连接的 abort 函数引用- // Login modal states+ // Login modal stateconst [loginModalOpen, setLoginModalOpen] = useState(false)- const [loginEmail, setLoginEmail] = useState('')- const [loginPassword, setLoginPassword] = useState('')- const [isModalOpen, setIsModalOpen] = useState(false)- const [registCode, setRegistCode] = useState('')- const [loginForm] = Form.useForm()- const [isActivating, setIsActivating] = useState(false)++ // Plugin modal state+ const [pluginModalOpen, setPluginModalOpen] = useState(false)+ const [highlightPlatform, setHighlightPlatform] = useState<string | null>(null)+ const textareaRef = useRef<HTMLTextAreaElement>(null)+ const driverObjRef = useRef<ReturnType<typeof driver> | null>(null)++ // 初始化新手引导+ useEffect(() => {+ const hasSeenOnboarding = localStorage.getItem('hasSeenOnboarding')+ // if (hasSeenOnboarding) return++ // 延迟一下显示,确保页面已完全加载且 textarea 已经渲染+ const timer = setTimeout(() => {+ const textarea = document.getElementById('ai-input-textarea')+ if (!textarea) return++ const driverObj = driver({+ showProgress: false,+ showButtons: ['next'],+ nextBtnText: t('aiGeneration.gotIt' as any),+ doneBtnText: t('aiGeneration.gotIt' as any),+ popoverOffset: 10,+ stagePadding: 4,+ stageRadius: 12,+ allowClose: true,+ smoothScroll: true,+ steps: [+ {+ element: '#ai-input-textarea',+ popover: {+ title: t('aiGeneration.onboardingTitle' as any),+ description: t('aiGeneration.onboardingDescription' as any),+ side: 'top',+ align: 'start',+ onPopoverRender: () => {+ // Popover 渲染后,更新按钮文本并添加点击事件+ setTimeout(() => {+ const nextBtn = document.querySelector('.driver-popover-next-btn') as HTMLButtonElement+ const doneBtn = document.querySelector('.driver-popover-done-btn') as HTMLButtonElement+ const btn = nextBtn || doneBtn+ if (btn) {+ btn.textContent = t('aiGeneration.gotIt' as any)+ // 添加点击事件监听器+ const handleClick = (e: MouseEvent) => {+ e.preventDefault()+ e.stopPropagation()+ driverObj.destroy()+ localStorage.setItem('hasSeenOnboarding', 'true')+ btn.removeEventListener('click', handleClick)+ }+ btn.addEventListener('click', handleClick)+ }+ }, 50)+ },+ },+ },+ ],+ onNextClick: () => {+ // 点击按钮时关闭引导+ driverObj.destroy()+ localStorage.setItem('hasSeenOnboarding', 'true')+ return false // 阻止默认行为+ },+ onDestroyStarted: () => {+ localStorage.setItem('hasSeenOnboarding', 'true')+ },+ onDestroyed: () => {+ localStorage.setItem('hasSeenOnboarding', 'true')+ },+ })++ driverObjRef.current = driverObj+ driverObj.drive()+ }, 1000)++ return () => {+ clearTimeout(timer)+ if (driverObjRef.current) {+ driverObjRef.current.destroy()+ }+ }+ }, [])+// 应用提示词(从 PromptGallery 触发)useEffect(() => {if (promptToApply) {setPrompt(promptToApply.prompt)- // 不再自动添加图片+ // 如果有图片,添加到 uploadedImages+ if (promptToApply.image) {+ setUploadedImages([promptToApply.image])+ }}}, [promptToApply])@@ -376,115 +497,344 @@ function Hero({ promptToApply }: { promptToApply?: {prompt: string; image?: strisetUploadedImages(prev => prev.filter((_, i) => i !== index))}- // Login handlers- const handleLoginSubmit = async (e: React.FormEvent) => {- e.preventDefault()- try {- const response = await loginWithMailApi({ mail: loginEmail, password: loginPassword })- if (!response) return-- if (response.code === 0) {- if (response.data.type === 'regist') {- // User not registered, show registration modal- setRegistCode(response.data.code || '')- loginForm.setFieldsValue({ password: loginPassword })- setIsModalOpen(true)- } else if (response.data.token) {- // Login successful- setToken(response.data.token)- if (response.data.userInfo) {- setUserInfo(response.data.userInfo)- }- message.success(tLogin('loginSuccess'))- setLoginModalOpen(false)- // Continue with task creation- handleCreateTask()- }- } else {- message.error(response.message || tLogin('loginFailed'))- }- } catch (error) {- message.error(tLogin('loginError'))- }+ // Handle login success - continue with task creation+ const handleLoginSuccess = () => {+ handleCreateTask()}- const handleRegistSubmit = async (values: { password: string, code: string, inviteCode?: string }) => {- try {- setIsActivating(true)- const response = await mailRegistApi({- mail: loginEmail,- code: values.code,- password: values.password,- inviteCode: values.inviteCode || '',- })-- if (!response) {- message.error(tLogin('registerError'))- setIsActivating(false)- return- }-- if (response.code === 0 && response.data.token) {- setIsActivating(false)- setIsModalOpen(false)- setLoginModalOpen(false)- loginForm.resetFields()- setToken(response.data.token)- if (response.data.userInfo) {- setUserInfo(response.data.userInfo)- }- message.success(tLogin('registerSuccess'))- // Continue with task creation- handleCreateTask()- } else {- message.error(response.message || tLogin('registerError'))- setIsActivating(false)- }- } catch (error) {- message.error(tLogin('registerError'))- setIsActivating(false)+ // Stop AI generation task - 前端打断,不调用后台接口+ const handleStopTask = () => {+ // 调用保存的 abort 函数来中断 SSE 连接+ if (sseAbortRef.current) {+ console.log('[UI] Aborting SSE connection')+ sseAbortRef.current()+ sseAbortRef.current = null}++ // 设置为非生成状态,但不清空已生成的内容+ setIsGenerating(false)+ setProgress(0)++ // 添加停止消息提示+ addMessageToQueue({+ type: 'status',+ content: t('aiGeneration.status.cancelled' as any),+ status: 'CANCELLED'+ })++ message.info(t('aiGeneration.taskStopped' as any))}- const handleGoogleSuccess = async (credentialResponse: any) => {- try {- const params: any = {- platform: 'google',- clientId: credentialResponse.clientId,- credential: credentialResponse.credential,- }-- const response: any = await googleLoginApi(params)- if (!response) {- message.error(tLogin('googleLoginFailed'))- return- }-- if (response.code === 0 && response.data.type === 'login') {- setToken(response.data.token)- if (response.data.userInfo) {- setUserInfo(response.data.userInfo)- }- message.success(tLogin('loginSuccess'))- setLoginModalOpen(false)- // Continue with task creation- handleCreateTask()- } else {- message.error(response.message || tLogin('googleLoginFailed'))- }- } catch (error) {- message.error(tLogin('googleLoginFailed'))+ // 开启新对话+ const handleNewConversation = () => {+ if (isGenerating) {+ message.warning(t('aiGeneration.generatingWarning' as any))+ return}++ // 清除 state 和 sessionStorage 中的 taskId+ setTaskId('')+ setSessionId('')+ if (typeof window !== 'undefined') {+ sessionStorage.removeItem('aiAgentTaskId')+ sessionStorage.removeItem('aiAgentSessionId')+ }+ setMarkdownMessages([])+ setStreamingText('')+ streamingTextRef.current = ''+ setPrompt('')+ message.success(t('aiGeneration.newConversation' as any))}// Create AI generation task with SSE- const handleCreateTask = async () => {+ const handleCreateTask = async () => {+ console.log('handleCreateTask')+ // test 00.00+ // let resultMsg = {"type":"result","message":{"type":"result","subtype":"success","uuid":"64e76d3a-e9f4-492d-84b2-cb196adb4fec","duration_ms":20935,"duration_api_ms":34158,"is_error":false,"num_turns":2,"message":"完成!✅\n\n系统现在会引导您:\n\n1️⃣ **绑定小红书账号** - 请按照页面提示完成小红书账号的绑定授权\n\n2️⃣ **确认发布信息** - 绑定成功后,您会看到已经为您准备好的:\n - 📸 复古宣传海报图片\n - 📝 标题:🔥惊爆价9.9元!GPT最新AI绘画服务震撼来袭\n - ✍️ 完整的推广文案\n - 🏷️ 话题标签:#AI绘画 #设计神器 #限时优惠 等\n\n3️⃣ **一键发布** - 确认无误后即可发布到小红书!\n\n所有内容都已经为您准备就绪,只需完成账号绑定就可以发布了!🎉",+ // "result":{+ // "taskId":"693b97aa6259a321fae5f9ff",+ // "medias":[{"type":"IMAGE","url":"https://aitoearn.s3.ap-southeast-1.amazonaws.com/ai/images/gemini-3-pro-image-preview/68af1bd086d40b6d30173e43/mj2cyn9w.jpg","prompt":"Retro propaganda poster style GPT AI image generation service advertisement with beautiful young woman, red and yellow radiating background, Chinese text promoting 9.9 yuan service"}],+ // "type":"fullContent",+ // "title":"GPT最新AI绘画服务震撼来袭",+ // "description":"💥超值福利来啦!GPT最新AI绘画服务,惊爆价仅需9.9元/张!\n\n✨服务亮点:\n📌 适用各种场景 - 海报、插画、产品图,想画就画\n📌 图像融合 + 局部重绘 - 专业级效果随心调整\n📌 每张提交3次修改 - 直到您满意为止\n📌 AI直出效果 - 无需修改即可使用\n\n🎯 有意向的宝子们,点击右下角\"我想要\"立即体验!\n\n机会难得,名额有限,快来抢购吧!💖",+ // "tags":["AI绘画","设计神器","限时优惠","平面设计","创意工具"],"action":"createChannel",+ // "platform":"xhs",+ // "errorMessage":"需要先绑定小红书账号才能发布内容"},"total_cost_usd":0.2353334,"usage":{"cache_creation":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":57188},"cache_creation_input_tokens":57188,"cache_read_input_tokens":3708,"input_tokens":8,"output_tokens":883,"server_tool_use":{"web_search_requests":0}},"permission_denials":[]}}+ // const taskData = resultMsg.message.result+ // const action = taskData.action++ // if (action === 'createChannel') {+ // const platform = taskData.platform++ // // 对于 xhs 和 douyin,使用插件授权逻辑+ // if (platform === 'xhs' || platform === 'douyin') {+ // console.log('createChannel xhs or douyin')+ // // 检查插件状态+ // const pluginStatus = usePluginStore.getState().status+ // const isPluginReady = pluginStatus === PluginStatus.READY++ // if (!isPluginReady) {+ // // 插件未准备就绪,显示引导授权插件+ // message.warning(t('plugin.platformNeedsPlugin' as any))++ // // 延迟显示引导,确保页面已加载+ // setTimeout(() => {+ // const pluginButton = document.querySelector('[data-driver-target="plugin-button"]') as HTMLElement+ // if (!pluginButton) {+ // console.warn('Plugin button not found')+ // return+ // }++ // const driverObj = driver({+ // showProgress: false,+ // showButtons: ['next'],+ // nextBtnText: t('aiGeneration.gotIt' as any),+ // doneBtnText: t('aiGeneration.gotIt' as any),+ // popoverOffset: 10,+ // stagePadding: 4,+ // stageRadius: 12,+ // allowClose: true,+ // smoothScroll: true,+ // steps: [+ // {+ // element: '[data-driver-target="plugin-button"]',+ // popover: {+ // title: t('plugin.authorizePluginTitle' as any),+ // description: t('plugin.authorizePluginDescription' as any),+ // side: 'bottom',+ // align: 'start',+ // onPopoverRender: () => {+ // setTimeout(() => {+ // const nextBtn = document.querySelector('.driver-popover-next-btn') as HTMLButtonElement+ // const doneBtn = document.querySelector('.driver-popover-done-btn') as HTMLButtonElement+ // const btn = nextBtn || doneBtn+ // if (btn) {+ // btn.textContent = t('aiGeneration.gotIt' as any)+ // const handleClick = (e: MouseEvent) => {+ // e.preventDefault()+ // e.stopPropagation()+ // driverObj.destroy()+ // btn.removeEventListener('click', handleClick)+ // }+ // btn.addEventListener('click', handleClick)+ // }+ // }, 50)+ // },+ // },+ // },+ // ],+ // onNextClick: () => {+ // driverObj.destroy()+ // return false+ // },+ // })++ // driverObj.drive()+ // }, 1500)+ // } else {+ // // 插件已准备就绪,直接调用插件发布方法+ // try {+ // // 获取账号列表+ // const accountGroupList = useAccountStore.getState().accountGroupList+ // const allAccounts = accountGroupList.reduce<any[]>((acc, group) => {+ // return [...acc, ...group.children]+ // }, [])++ // // 根据 taskData 中的平台类型查找账号+ // const targetAccounts = allAccounts.filter(account => account.type === platform)++ // if (targetAccounts.length === 0) {+ // // 未找到账号,弹出确认框并引导用户添加账号+ // Modal.confirm({+ // title: t('plugin.noAccountFound' as any),+ // content: '未查询到该平台的有效账号,请打开插件添加账号并完成同步',+ // okText: '去处理',+ // cancelText: '取消',+ // onOk: () => {+ // // 延迟显示引导,确保页面已加载+ // setTimeout(() => {+ // const pluginButton = document.querySelector('[data-driver-target="plugin-button"]') as HTMLElement+ // if (!pluginButton) {+ // console.warn('Plugin button not found')+ // return+ // }++ // const driverObj = driver({+ // showProgress: false,+ // showButtons: ['next'],+ // nextBtnText: t('aiGeneration.gotIt' as any),+ // doneBtnText: t('aiGeneration.gotIt' as any),+ // popoverOffset: 10,+ // stagePadding: 4,+ // stageRadius: 12,+ // allowClose: true,+ // smoothScroll: true,+ // steps: [+ // {+ // element: '[data-driver-target="plugin-button"]',+ // popover: {+ // title: '点击打开插件管理',+ // description: '在插件管理中添加您的账号',+ // side: 'bottom',+ // align: 'start',+ // onPopoverRender: () => {+ // setTimeout(() => {+ // const nextBtn = document.querySelector('.driver-popover-next-btn') as HTMLButtonElement+ // const doneBtn = document.querySelector('.driver-popover-done-btn') as HTMLButtonElement+ // const btn = nextBtn || doneBtn+ // if (btn) {+ // btn.textContent = t('aiGeneration.gotIt' as any)+ // const handleClick = (e: MouseEvent) => {+ // e.preventDefault()+ // e.stopPropagation()+ // driverObj.destroy()+ // btn.removeEventListener('click', handleClick)+ // // 点击后打开插件弹窗,并高亮对应平台+ // pluginButton.click()+ // // 设置高亮平台+ // setTimeout(() => {+ // setHighlightPlatform(platform)+ // }, 300)+ // }+ // btn.addEventListener('click', handleClick)+ // }+ // }, 50)+ // },+ // },+ // },+ // ],+ // onNextClick: () => {+ // driverObj.destroy()+ // return false+ // },+ // })++ // driverObj.drive()+ // }, 500)+ // },+ // })+ // return+ // }++ // // 构建发布数据+ // const medias = taskData.medias || []+ // const hasVideo = medias.some((m: any) => m.type === 'VIDEO')+ // const video = hasVideo ? medias.find((m: any) => m.type === 'VIDEO') : null+ // // 创建空的 File 对象作为占位符+ // const createEmptyFile = () => {+ // return new File([], '', { type: 'image/jpeg' })+ // }++ // const images = medias.filter((m: any) => m.type === 'IMAGE').map((m: any) => ({+ // id: '',+ // imgPath: m.url,+ // ossUrl: m.url,+ // size: 0,+ // // file: createEmptyFile(),+ // imgUrl: m.url,+ // filename: '',+ // width: 0,+ // height: 0,+ // }))++ // // 为每个账号创建发布项+ // // @ts-ignore+ // const pluginPublishItems: PluginPublishItem[] = targetAccounts.map(account => ({+ // account,+ // params: {+ // title: taskData.title || '',+ // des: taskData.description || '',+ // topics: taskData.tags || [],+ // video: video ? {+ // size: 0,+ // videoUrl: video.url,+ // ossUrl: video.url,+ // filename: '',+ // width: 0,+ // height: 0,+ // duration: 0,+ // cover: {+ // id: '',+ // imgPath: (video as any).coverUrl || '',+ // ossUrl: (video as any).coverUrl,+ // size: 0,+ // imgUrl: (video as any).coverUrl || '',+ // filename: '',+ // width: 0,+ // height: 0,+ // },+ // } : undefined,+ // images: images.length > 0 ? images : undefined,+ // option: {},+ // },+ // }))++ // // 创建平台任务ID映射+ // const platformTaskIdMap = new Map<string, string>()+ // pluginPublishItems.forEach((item) => {+ // const requestId = `req-${Date.now()}-${Math.random().toString(36).slice(2, 10)}`+ // platformTaskIdMap.set(item.account.id, requestId)+ // })++ // // 调用插件发布方法+ // usePluginStore.getState().executePluginPublish({+ // items: pluginPublishItems,+ // platformTaskIdMap,+ // onProgress: (event) => {+ // // 监听各平台发布进度+ // const { stage, progress, message: progressMessage, accountId, platform } = event+ // console.log(`[${platform}] 账号 ${accountId}: ${stage} - ${progress}% - ${progressMessage}`)++ // // 根据进度阶段显示不同提示+ // if (stage === 'error') {+ // message.error(t('plugin.publishError' as any, { platform, error: progressMessage }) || `${platform} 发布失败: ${progressMessage}`)+ // }+ // },+ // onComplete: () => {+ // message.success(t('plugin.publishTaskSubmitted' as any))+ // },+ // })++ // message.success(t('plugin.publishingViaPlugin' as any))+ // } catch (error: any) {+ // console.error('Plugin publish error:', error)+ // message.error(`${t('plugin.publishFailed' as any)}: ${error.message || t('aiGeneration.unknownError' as any)}`)+ // }+ // }+ // } else {+ // // 其他平台使用原有的跳转逻辑+ // // 获取平台名称(支持不同大小写)+ // let platformName = platform+ // // 尝试从 AccountPlatInfoMap 获取显示名称+ // for (const [key, value] of AccountPlatInfoMap.entries()) {+ // if (key.toLowerCase() === platform.toLowerCase()) {+ // platformName = value.name+ // break+ // }+ // }++ // Modal.confirm({+ // title: t('aiGeneration.needAddChannel' as any),+ // content: t('aiGeneration.channelNotAdded' as any, { platform: platformName }),+ // okText: t('aiGeneration.goAdd' as any),+ // cancelText: t('aiGeneration.cancel' as any),+ // onOk: () => {+ // // 跳转到账号页面,自动打开对应平台的授权+ // router.push(`/${lng}/accounts?addChannel=${platform}`)+ // },+ // })+ // }+ // }++ // return+if (!prompt.trim()) {return}- // Check if user is logged in- if (!token) {+ // Check if user is logged in - use getState() to get latest token value+ const currentToken = useUserStore.getState().token+ if (!currentToken) {setLoginModalOpen(true)return}@@ -496,8 +846,24 @@ function Hero({ promptToApply }: { promptToApply?: {prompt: string; image?: strisetCurrentTypingMsg(null)setDisplayedText('')setProgress(0)- setMarkdownMessages([])- setSessionId('')++ // 判断是否是新对话:如果没有 taskId,就是新对话,需要清空消息+ const isNewConversation = !taskId++ if (isNewConversation) {+ // 新对话:清空所有消息和状态+ setMarkdownMessages([])+ setSessionId('')+ setTaskId('')+ // 清除 sessionStorage 中的旧 taskId+ if (typeof window !== 'undefined') {+ sessionStorage.removeItem('aiAgentTaskId')+ sessionStorage.removeItem('aiAgentSessionId')+ }+ }++ setStreamingText('')+ streamingTextRef.current = ''// Step 1: Show THINKING statusaddMessageToQueue({@@ -512,6 +878,9 @@ function Hero({ promptToApply }: { promptToApply?: {prompt: string; image?: stricontent: `📝 ${t('aiGeneration.topicPrefix' as any)}${prompt}`})+ // 将用户消息添加到对话历史中+ setMarkdownMessages(prev => [...prev, `👤 ${prompt}`])+// Set initial progress to 10%setProgress(10)@@ -524,16 +893,106 @@ function Hero({ promptToApply }: { promptToApply?: {prompt: string; image?: stri// Dynamic import APIconst { agentApi } = await import('@/api/agent')+ // 构建请求参数:如果有 taskId,就传递它继续对话+ const requestParams: any = {+ prompt: fullPrompt,+ includePartialMessages: true // 使用流式消息+ }++ // 如果有 taskId,就传递它继续当前对话+ if (taskId) {+ requestParams.taskId = taskId+ console.log('[UI] Continuing conversation with taskId:', taskId)+ } else {+ console.log('[UI] Creating new conversation')+ }+// Create task with SSE (使用包含图片链接的完整提示词)- await agentApi.createTaskWithSSE(- { prompt: fullPrompt },+ const abortFn = await agentApi.createTaskWithSSE(+ requestParams,// onMessage callback(sseMessage: any) => {console.log('SSE Message:', sseMessage)+ // 处理 init 消息 - 保存 taskId+ if (sseMessage.type === 'init' && sseMessage.taskId) {+ console.log('[UI] Received taskId:', sseMessage.taskId)+ const receivedTaskId = sseMessage.taskId++ // 如果没有当前 taskId,说明是新对话+ if (!taskId) {+ console.log('[UI] New conversation started with taskId:', receivedTaskId)+ } else {+ console.log('[UI] Continuing conversation with taskId:', receivedTaskId)+ }++ // 保存到 state 和 sessionStorage,仅在当前会话中保存+ setTaskId(receivedTaskId)+ setSessionId(receivedTaskId)+ if (typeof window !== 'undefined') {+ sessionStorage.setItem('aiAgentTaskId', receivedTaskId)+ sessionStorage.setItem('aiAgentSessionId', receivedTaskId)+ }++ // 清空流式文本(新消息开始)+ streamingTextRef.current = ''+ setStreamingText('')+ return+ }++ // 处理 keep_alive 消息 - 无需特别处理+ if (sseMessage.type === 'keep_alive') {+ console.log('[UI] Keep alive')+ return+ }++ // 处理流式事件+ if (sseMessage.type === 'stream_event' && sseMessage.message) {+ const streamEvent = sseMessage.message as any+ const event = streamEvent.event++ console.log('[UI] Stream event:', event.type)++ // 处理消息开始 - 不清空文本,因为同一个消息里可能多次出现 message_start+ if (event.type === 'message_start') {+ console.log('[UI] Message start within same conversation')+ }+ // 处理内容块增量更新+ else if (event.type === 'content_block_delta' && event.delta) {+ if (event.delta.type === 'text_delta' && event.delta.text) {+ // 累积文本+ streamingTextRef.current += event.delta.text+ setStreamingText(streamingTextRef.current)++ // 实时更新到 markdown 消息(替换最后一条消息或添加新消息)+ setMarkdownMessages(prev => {+ const newMessages = [...prev]+ // 如果最后一条消息是流式文本,则更新它+ if (newMessages.length > 0 && newMessages[newMessages.length - 1].startsWith('🤖 ')) {+ newMessages[newMessages.length - 1] = `🤖 ${streamingTextRef.current}`+ } else {+ // 否则添加新消息+ newMessages.push(`🤖 ${streamingTextRef.current}`)+ }+ return newMessages+ })+ }+ }+ // 处理消息结束+ else if (event.type === 'message_stop') {+ console.log('[UI] Stream completed, final text length:', streamingTextRef.current.length)+ // 流式结束,文本已经完整显示在 markdown 中+ }+ return+ }+// Save sessionIdif (sseMessage.sessionId) {setSessionId(sseMessage.sessionId)+ // 同步到 sessionStorage+ if (typeof window !== 'undefined') {+ sessionStorage.setItem('aiAgentSessionId', sseMessage.sessionId)+ }}// Handle different message types@@ -551,9 +1010,637 @@ function Hero({ promptToApply }: { promptToApply?: {prompt: string; image?: striconst errorMsg = `❌ : ${sseMessage.message || t('aiGeneration.unknownError' as any)}`setMarkdownMessages(prev => [...prev, errorMsg])}+ // 处理最终结果+ else if (sseMessage.type === 'result' && sseMessage.message) {+ console.log('[UI] Received result:', sseMessage.message)+ const resultMsg = sseMessage.message as any++ // 显示结果消息+ if (resultMsg.message) {+ setMarkdownMessages(prev => [...prev, resultMsg.message])+ }++ // Show completion status+ addMessageToQueue({+ type: 'status',+ content: t('aiGeneration.status.completed' as any),+ status: 'COMPLETED'+ })++ setProgress(100)+ setIsGenerating(false)++ // 根据 type 和 action 做不同处理+ if (resultMsg.result) {+ const taskData = resultMsg.result+ const resultType = taskData.type+ const action = taskData.action++ // 处理 imageOnly 或 videoOnly - 不做跳转操作+ if (resultType === 'imageOnly' || resultType === 'videoOnly' || resultType === 'mediaOnly') {+ console.log('[UI] Result type is imageOnly/videoOnly, no navigation needed')+ return+ }++ // 处理 fullContent 类型+ if (resultType === 'fullContent') {+ // 如果没有 action,默认跳转到发布页面+ if (!action) {+ setTimeout(() => {+ const queryParams = new URLSearchParams({+ aiGenerated: 'true',+ taskId: taskData.taskId || '',+ title: taskData.title || '',+ description: taskData.description || '',+ tags: JSON.stringify(taskData.tags || []),+ medias: JSON.stringify(taskData.medias || []),+ })++ router.push(`/${lng}/accounts?${queryParams.toString()}`)+ }, 1500)+ }+ // action: draft - 跳转草稿箱+ else if (action === 'navigateToDraft') {+ setTimeout(() => {+ router.push(`/${lng}/cgmaterial`)+ }, 1500)+ }+ // action: saveDraft - 保存草稿再跳转草稿箱+ else if (action === 'saveDraft') {+ // 保存草稿 - 使用立即执行的 async 函数+ ;(async () => {+ try {+ // 转换 medias 格式:从 Media[] 转换为 MaterialMedia[]+ const medias = taskData.medias || []+ const materialMediaList = medias.map((media: any) => {+ // MediaType.VIDEO -> PubType.VIDEO, MediaType.IMAGE -> PubType.ImageText+ const pubType = media.type === MediaType.Video+ ? PubType.VIDEO+ : PubType.ImageText+ return {+ url: media.url,+ type: pubType,+ content: media.coverUrl || undefined, // 视频封面作为 content+ }+ })++ // 确定封面URL(优先使用第一个视频的封面,否则使用第一张图片)+ const coverUrl = medias.find((m: any) => m.coverUrl)?.coverUrl+ || medias.find((m: any) => m.type === MediaType.Image)?.url+ || undefined++ // 第一次调用:创建草稿(先尝试调用,看后端是否返回 groupId)+ let createResult: any = null+ let finalGroupId: string | null = null++ try {+ // 先获取分组列表,选择一个默认分组用于第一次调用+ const groupListRes = await apiGetMaterialGroupList(1, 100)+ const groups = groupListRes?.data?.list || []++ if (groups.length > 0) {+ // 根据 medias 类型选择默认分组+ const hasVideo = medias.some((m: any) => m.type === MediaType.Video)+ const targetGroupType = hasVideo ? PubType.VIDEO : PubType.ImageText+ const defaultGroup = groups.find((g: any) => g.type === targetGroupType) || groups[0]+ finalGroupId = defaultGroup._id || defaultGroup.id+ }++ // 如果有分组,尝试创建草稿+ if (finalGroupId) {+ createResult = await apiCreateMaterial({+ groupId: finalGroupId,+ coverUrl,+ mediaList: materialMediaList,+ title: taskData.title || '',+ desc: taskData.description || '',+ })++ // 检查返回结果是否有新的 groupId(可能后端返回了不同的 groupId)+ const returnedGroupId = createResult?.data?.groupId+ || createResult?.data?.group?._id+ || createResult?.data?.group?.id+ || null++ // 如果返回了 groupId,使用返回的+ if (returnedGroupId) {+ finalGroupId = returnedGroupId+ }+ }+ } catch (error: any) {+ // 如果调用失败,记录错误但继续处理+ console.error('Create material error:', error)+ }++ // 如果没有成功创建(没有 groupId 或创建失败),需要重新获取分组并创建+ if (!createResult || !finalGroupId) {+ const groupListRes = await apiGetMaterialGroupList(1, 100)+ const groups = groupListRes?.data?.list || []++ if (groups.length === 0) {+ message.warning(t('aiGeneration.noDraftGroupFound' as any))+ return+ }++ // 根据 medias 类型选择默认分组+ const hasVideo = medias.some((m: any) => m.type === MediaType.Video)+ const targetGroupType = hasVideo ? PubType.VIDEO : PubType.ImageText+ const defaultGroup = groups.find((g: any) => g.type === targetGroupType) || groups[0]+ finalGroupId = defaultGroup._id || defaultGroup.id++ // 使用找到的分组ID创建草稿+ if (finalGroupId) {+ try {+ createResult = await apiCreateMaterial({+ groupId: finalGroupId,+ coverUrl,+ mediaList: materialMediaList,+ title: taskData.title || '',+ desc: taskData.description || '',+ })+ } catch (error) {+ console.error('Create material with groupId error:', error)+ message.error(t('aiGeneration.saveDraftFailed' as any))+ return+ }+ } else {+ message.warning(t('aiGeneration.noDraftGroup' as any))+ return+ }+ }++ if (createResult) {+ message.success(t('aiGeneration.saveDraftSuccess' as any))+ setTimeout(() => {+ router.push(`/${lng}/cgmaterial`)+ }, 1500)+ } else {+ message.error(t('aiGeneration.saveDraftFailed' as any))+ }+ } catch (error: any) {+ console.error('Save draft error:', error)+ message.error(`${t('aiGeneration.saveDraftFailed' as any)}: ${error.message || t('aiGeneration.unknownError' as any)}`)+ }+ })()+ }+ // action: publish - 选中指定平台账户并填充内容+ else if (action === 'publish') {+ const platform = taskData.platform++ // 对于 xhs 和 douyin,使用插件授权逻辑+ if (platform === 'xhs' || platform === 'douyin') {+ console.log('createChannel xhs or douyin')+ // 检查插件状态+ const pluginStatus = usePluginStore.getState().status+ const isPluginReady = pluginStatus === PluginStatus.READY++ if (!isPluginReady) {+ // 插件未准备就绪,显示引导授权插件+ message.warning(t('plugin.platformNeedsPlugin' as any))++ // 延迟显示引导,确保页面已加载+ setTimeout(() => {+ const pluginButton = document.querySelector('[data-driver-target="plugin-button"]') as HTMLElement+ if (!pluginButton) {+ console.warn('Plugin button not found')+ return+ }++ const driverObj = driver({+ showProgress: false,+ showButtons: ['next'],+ nextBtnText: t('aiGeneration.gotIt' as any),+ doneBtnText: t('aiGeneration.gotIt' as any),+ popoverOffset: 10,+ stagePadding: 4,+ stageRadius: 12,+ allowClose: true,+ smoothScroll: true,+ steps: [+ {+ element: '[data-driver-target="plugin-button"]',+ popover: {+ title: t('plugin.authorizePluginTitle' as any),+ description: t('plugin.authorizePluginDescription' as any),+ side: 'bottom',+ align: 'start',+ onPopoverRender: () => {+ setTimeout(() => {+ const nextBtn = document.querySelector('.driver-popover-next-btn') as HTMLButtonElement+ const doneBtn = document.querySelector('.driver-popover-done-btn') as HTMLButtonElement+ const btn = nextBtn || doneBtn+ if (btn) {+ btn.textContent = t('aiGeneration.gotIt' as any)+ const handleClick = (e: MouseEvent) => {+ e.preventDefault()+ e.stopPropagation()+ driverObj.destroy()+ btn.removeEventListener('click', handleClick)+ }+ btn.addEventListener('click', handleClick)+ }+ }, 50)+ },+ },+ },+ ],+ onNextClick: () => {+ driverObj.destroy()+ return false+ },+ })++ driverObj.drive()+ }, 1500)+ } else {+ // 插件已准备就绪,直接调用插件发布方法+ try {+ // 获取账号列表+ const accountGroupList = useAccountStore.getState().accountGroupList+ const allAccounts = accountGroupList.reduce<any[]>((acc, group) => {+ return [...acc, ...group.children]+ }, [])++ // 根据 taskData 中的平台类型查找账号+ const targetAccounts = allAccounts.filter(account => account.type === platform)++ if (targetAccounts.length === 0) {+ // 未找到账号,弹出确认框并引导用户添加账号+ Modal.confirm({+ title: t('plugin.noAccountFound' as any),+ content: '未查询到该平台的有效账号,请打开插件添加账号并完成同步',+ okText: '去处理',+ cancelText: '取消',+ onOk: () => {+ // 延迟显示引导,确保页面已加载+ setTimeout(() => {+ const pluginButton = document.querySelector('[data-driver-target="plugin-button"]') as HTMLElement+ if (!pluginButton) {+ console.warn('Plugin button not found')+ return+ }++ const driverObj = driver({+ showProgress: false,+ showButtons: ['next'],+ nextBtnText: t('aiGeneration.gotIt' as any),+ doneBtnText: t('aiGeneration.gotIt' as any),+ popoverOffset: 10,+ stagePadding: 4,+ stageRadius: 12,+ allowClose: true,+ smoothScroll: true,+ steps: [+ {+ element: '[data-driver-target="plugin-button"]',+ popover: {+ title: '点击打开插件管理',+ description: '在插件管理中添加您的账号',+ side: 'bottom',+ align: 'start',+ onPopoverRender: () => {+ setTimeout(() => {+ const nextBtn = document.querySelector('.driver-popover-next-btn') as HTMLButtonElement+ const doneBtn = document.querySelector('.driver-popover-done-btn') as HTMLButtonElement+ const btn = nextBtn || doneBtn+ if (btn) {+ btn.textContent = t('aiGeneration.gotIt' as any)+ const handleClick = (e: MouseEvent) => {+ e.preventDefault()+ e.stopPropagation()+ driverObj.destroy()+ btn.removeEventListener('click', handleClick)+ // 点击后打开插件弹窗,并高亮对应平台+ pluginButton.click()+ // 设置高亮平台+ setTimeout(() => {+ setHighlightPlatform(platform)+ }, 300)+ }+ btn.addEventListener('click', handleClick)+ }+ }, 50)+ },+ },+ },+ ],+ onNextClick: () => {+ driverObj.destroy()+ return false+ },+ })++ driverObj.drive()+ }, 500)+ },+ })+ return+ }++ // 构建发布数据+ const medias = taskData.medias || []+ const hasVideo = medias.some((m: any) => m.type === 'VIDEO')+ const video = hasVideo ? medias.find((m: any) => m.type === 'VIDEO') : null+ // 创建空的 File 对象作为占位符+ const createEmptyFile = () => {+ return new File([], '', { type: 'image/jpeg' })+ }++ const images = medias.filter((m: any) => m.type === 'IMAGE').map((m: any) => ({+ id: '',+ imgPath: m.url,+ ossUrl: m.url,+ size: 0,+ // file: createEmptyFile(),+ imgUrl: m.url,+ filename: '',+ width: 0,+ height: 0,+ }))++ // 为每个账号创建发布项+ // @ts-ignore+ const pluginPublishItems: PluginPublishItem[] = targetAccounts.map(account => ({+ account,+ params: {+ title: taskData.title || '',+ des: taskData.description || '',+ topics: taskData.tags || [],+ video: video ? {+ size: 0,+ videoUrl: video.url,+ ossUrl: video.url,+ filename: '',+ width: 0,+ height: 0,+ duration: 0,+ cover: {+ id: '',+ imgPath: (video as any).coverUrl || '',+ ossUrl: (video as any).coverUrl,+ size: 0,+ imgUrl: (video as any).coverUrl || '',+ filename: '',+ width: 0,+ height: 0,+ },+ } : undefined,+ images: images.length > 0 ? images : undefined,+ option: {},+ },+ }))++ // 创建平台任务ID映射+ const platformTaskIdMap = new Map<string, string>()+ pluginPublishItems.forEach((item) => {+ const requestId = `req-${Date.now()}-${Math.random().toString(36).slice(2, 10)}`+ platformTaskIdMap.set(item.account.id, requestId)+ })++ // 调用插件发布方法+ usePluginStore.getState().executePluginPublish({+ items: pluginPublishItems,+ platformTaskIdMap,+ onProgress: (event) => {+ // 监听各平台发布进度+ const { stage, progress, message: progressMessage, accountId, platform } = event+ console.log(`[${platform}] 账号 ${accountId}: ${stage} - ${progress}% - ${progressMessage}`)++ // 根据进度阶段显示不同提示+ if (stage === 'error') {+ message.error(t('plugin.publishError' as any, { platform, error: progressMessage }) || `${platform} 发布失败: ${progressMessage}`)+ }+ },+ onComplete: () => {+ message.success(t('plugin.publishTaskSubmitted' as any))+ },+ })++ message.success(t('plugin.publishingViaPlugin' as any))+ } catch (error: any) {+ console.error('Plugin publish error:', error)+ message.error(`${t('plugin.publishFailed' as any)}: ${error.message || t('aiGeneration.unknownError' as any)}`)+ }+ }+ } else {+ // 其他平台使用原有的跳转逻辑+ // 获取平台名称(支持不同大小写)+ let platformName = platform+ // 尝试从 AccountPlatInfoMap 获取显示名称+ for (const [key, value] of AccountPlatInfoMap.entries()) {+ if (key.toLowerCase() === platform.toLowerCase()) {+ platformName = value.name+ break+ }+ }++ Modal.confirm({+ title: t('aiGeneration.needAddChannel' as any),+ content: t('aiGeneration.channelNotAdded' as any, { platform: platformName }),+ okText: t('aiGeneration.goAdd' as any),+ cancelText: t('aiGeneration.cancel' as any),+ onOk: () => {+ // 跳转到账号页面,自动打开对应平台的授权+ router.push(`/${lng}/accounts?addChannel=${platform}`)+ },+ })+ }+ }+ // action: updateChannel - 更新频道授权+ else if (action === 'updateChannel') {+ const platform = taskData.platform+ message.warning(t('aiGeneration.channelAuthExpired' as any))++ Modal.confirm({+ title: t('aiGeneration.channelAuthExpiredTitle' as any),+ content: t('aiGeneration.channelAuthExpiredContent' as any),+ okText: t('aiGeneration.reauthorize' as any),+ cancelText: t('aiGeneration.cancel' as any),+ onOk: () => {+ router.push(`/${lng}/accounts?updateChannel=${platform}`)+ },+ })+ }+ // action: loginChannel - 登录频道+ else if (action === 'loginChannel') {+ const platform = taskData.platform+ message.info(t('aiGeneration.needLoginChannel' as any))++ Modal.confirm({+ title: t('aiGeneration.needLogin' as any),+ content: t('aiGeneration.pleaseLoginChannel' as any),+ okText: t('aiGeneration.goLogin' as any),+ cancelText: t('aiGeneration.cancel' as any),+ onOk: () => {+ router.push(`/${lng}/accounts?loginChannel=${platform}`)+ },+ })+ }+ // action: platformNotSupported - 平台不支持,使用插件发布(已取消 navigateToPublish)+ else if (action === 'platformNotSupported') {+ // 检查插件状态+ const pluginStatus = usePluginStore.getState().status+ const isPluginReady = pluginStatus === PluginStatus.READY++ if (!isPluginReady) {+ // 插件未准备就绪,显示引导授权插件+ message.warning(t('plugin.platformNeedsPlugin' as any))++ // 延迟显示引导,确保页面已加载+ setTimeout(() => {+ const pluginButton = document.querySelector('[data-driver-target="plugin-button"]') as HTMLElement+ if (!pluginButton) {+ console.warn('Plugin button not found')+ return+ }++ const driverObj = driver({+ showProgress: false,+ showButtons: ['next'],+ nextBtnText: t('aiGeneration.gotIt' as any),+ doneBtnText: t('aiGeneration.gotIt' as any),+ popoverOffset: 10,+ stagePadding: 4,+ stageRadius: 12,+ allowClose: true,+ smoothScroll: true,+ steps: [+ {+ element: '[data-driver-target="plugin-button"]',+ popover: {+ title: t('plugin.authorizePluginTitle' as any),+ description: t('plugin.authorizePluginDescription' as any),+ side: 'bottom',+ align: 'start',+ onPopoverRender: () => {+ setTimeout(() => {+ const nextBtn = document.querySelector('.driver-popover-next-btn') as HTMLButtonElement+ const doneBtn = document.querySelector('.driver-popover-done-btn') as HTMLButtonElement+ const btn = nextBtn || doneBtn+ if (btn) {+ btn.textContent = t('aiGeneration.gotIt' as any)+ const handleClick = (e: MouseEvent) => {+ e.preventDefault()+ e.stopPropagation()+ driverObj.destroy()+ btn.removeEventListener('click', handleClick)+ }+ btn.addEventListener('click', handleClick)+ }+ }, 50)+ },+ },+ },+ ],+ onNextClick: () => {+ driverObj.destroy()+ return false+ },+ })++ driverObj.drive()+ }, 1500)+ } else {+ // 插件已准备就绪,直接调用插件发布方法+ try {+ // 获取账号列表+ const accountGroupList = useAccountStore.getState().accountGroupList+ const allAccounts = accountGroupList.reduce<any[]>((acc, group) => {+ return [...acc, ...group.children]+ }, [])++ // 根据 taskData 中的平台类型查找账号+ const platform = taskData.platform+ const targetAccounts = allAccounts.filter(account => account.type === platform)++ if (targetAccounts.length === 0) {+ message.warning(t('plugin.noAccountFound' as any))+ return+ }++ // 构建发布数据+ const medias = taskData.medias || []+ const hasVideo = medias.some((m: any) => m.type === 'VIDEO')+ const video = hasVideo ? medias.find((m: any) => m.type === 'VIDEO') : null+ // 创建空的 File 对象作为占位符+ const createEmptyFile = () => {+ return new File([], '', { type: 'image/jpeg' })+ }++ const images = medias.filter((m: any) => m.type === 'IMAGE').map((m: any) => ({+ id: '',+ imgPath: m.url,+ ossUrl: m.url,+ size: 0,+ file: createEmptyFile(),+ imgUrl: m.url,+ filename: '',+ width: 0,+ height: 0,+ }))++ // 为每个账号创建发布项+ const pluginPublishItems: PluginPublishItem[] = targetAccounts.map(account => ({+ account,+ params: {+ title: taskData.title || '',+ des: taskData.description || '',+ topics: taskData.tags || [],+ video: video ? {+ size: 0,+ file: new Blob(),+ videoUrl: video.url,+ ossUrl: video.url,+ filename: '',+ width: 0,+ height: 0,+ duration: 0,+ cover: {+ id: '',+ imgPath: video.coverUrl || '',+ ossUrl: video.coverUrl,+ size: 0,+ file: createEmptyFile(),+ imgUrl: video.coverUrl || '',+ filename: '',+ width: 0,+ height: 0,+ },+ } : undefined,+ images: images.length > 0 ? images : undefined,+ option: {},+ },+ }))++ // 创建平台任务ID映射+ const platformTaskIdMap = new Map<string, string>()+ pluginPublishItems.forEach((item) => {+ const requestId = `req-${Date.now()}-${Math.random().toString(36).slice(2, 10)}`+ platformTaskIdMap.set(item.account.id, requestId)+ })++ // 调用插件发布方法+ usePluginStore.getState().executePluginPublish({+ items: pluginPublishItems,+ platformTaskIdMap,+ onComplete: () => {+ message.success(t('plugin.publishTaskSubmitted' as any))+ },+ })++ message.success(t('plugin.publishingViaPlugin' as any))+ } catch (error: any) {+ console.error('Plugin publish error:', error)+ message.error(`${t('plugin.publishFailed' as any)}: ${error.message || t('aiGeneration.unknownError' as any)}`)+ }+ }+ }+ }+ }+ }if (sseMessage.type === 'status' && sseMessage.status) {- // Update statu+ // Update statusconst statusDisplay = getStatusDisplay(sseMessage.status)const needsLoadingAnimation = ['GENERATING_VIDEO', 'GENERATING_IMAGE', 'GENERATING_CONTENT', 'GENERATING_TEXT'].includes(sseMessage.status)@@ -587,184 +1674,26 @@ function Hero({ promptToApply }: { promptToApply?: {prompt: string; image?: stri// onDone callbackasync (finalSessionId) => {console.log('SSE Done, sessionId:', finalSessionId)-- // SSE completed, fetch final result- if (finalSessionId) {- try {- const res = await agentApi.getTaskDetail(finalSessionId)-- if (res?.code === 0 && res.data) {- const taskData = res.data-- // Show completion status- addMessageToQueue({- type: 'status',- content: t('aiGeneration.status.completed' as any),- status: 'COMPLETED'- })-- setProgress(100)- setIsGenerating(false)-- // Navigate to accounts page after delay- setTimeout(() => {- const queryParams = new URLSearchParams({- aiGenerated: 'true',- taskId: taskData.id,- title: taskData.title || '',- description: taskData.description || '',- tags: JSON.stringify(taskData.tags || []),- medias: JSON.stringify(taskData.medias || []),- })-- router.push(`/${lng}/accounts?${queryParams.toString()}`)- }, 1500)- }- }- catch (error) {- console.error('Failed to fetch task detail:', error)- setIsGenerating(false)- }- }- else {- setIsGenerating(false)- }+ // 不再需要调用 getTaskDetail,结果已通过 SSE 返回+ setIsGenerating(false)+ // 清除 abort 函数引用+ sseAbortRef.current = null})++ // 保存 abort 函数引用+ sseAbortRef.current = abortFn}catch (error: any) {console.error('Create task error:', error)message.error(`${t('aiGeneration.createTaskFailed' as any)}: ${error.message || t('aiGeneration.unknownError' as any)}`)setIsGenerating(false)setProgress(0)+ // 清除 abort 函数引用+ sseAbortRef.current = null}}- // Removed pollTaskStatus function - now using SSE instead- /* const pollTaskStatus = async (taskId: string) => {- const { agentApi } = await import('@/api/agent')- let lastStatus = ''- let hasShownTitle = false- let hasShownDescription = false-- const poll = async () => {- try {- const res = await agentApi.getTaskDetail(taskId)-- if (res?.code === 0 && res.data) {- const taskData = res.data-- // Show title if available and not shown yet- if (taskData.title && !hasShownTitle) {- addMessageToQueue({- type: 'text',- content: `✨ ${t('aiGeneration.generatedTitlePrefix' as any)}${taskData.title}`- })- hasShownTitle = true- }-- // Show description if available and not shown yet (before status)- if (taskData.description && !hasShownDescription) {- addMessageToQueue({- type: 'description',- content: `${t('aiGeneration.descriptionPrefix' as any)}${taskData.description}`- })- hasShownDescription = true- }-- // Add new message when status changes (skip THINKING as it's already shown in step 1)- if (taskData.status !== lastStatus && taskData.status !== 'THINKING') {- const statusDisplay = getStatusDisplay(taskData.status)- // Mark media generation statuses to need loading animation- const needsLoadingAnimation = taskData.status === 'GENERATING_VIDEO' ||- taskData.status === 'GENERATING_IMAGE' ||- taskData.status === 'GENERATING_CONTENT' ||- taskData.status === 'GENERATING_TEXT'-- addMessageToQueue({- type: 'status',- content: statusDisplay.text,- status: taskData.status,- loading: needsLoadingAnimation- } as any)-- // Update progress (new status) - use functional update to avoid closure issues- setProgress(prev => calculateProgress(taskData.status, true, prev))-- lastStatus = taskData.status- } else if (taskData.status === 'THINKING') {- // Only record status, don't show message- lastStatus = taskData.status- } else if (taskData.status === lastStatus) {- // For same status, if it's generating status, increase progress- const generatingStatuses = ['GENERATING_CONTENT', 'GENERATING_IMAGE', 'GENERATING_VIDEO', 'GENERATING_TEXT']- if (generatingStatuses.includes(taskData.status)) {- // Use functional update to avoid closure issues- setProgress(prev => calculateProgress(taskData.status, false, prev))- }- }-- // If task completed- if (taskData.status === 'COMPLETED') {- setIsGenerating(false)-- // Delay navigation to ensure last message is displayed- setTimeout(() => {- // Build navigation params- const queryParams = new URLSearchParams({- aiGenerated: 'true',- taskId: taskData.id,- title: taskData.title || '',- description: taskData.description || '',- tags: JSON.stringify(taskData.tags || []),- medias: JSON.stringify(taskData.medias || []),- })-- // Navigate to accounts page- router.push(`/${lng}/accounts?${queryParams.toString()}`)- }, 1500)- return- }- // If task failed- else if (taskData.status === 'FAILED') {- addMessageToQueue({- type: 'error',- content: `${t('aiGeneration.failedReasonPrefix' as any)}${taskData.errorMessage || t('aiGeneration.unknownError' as any)}`- })- setIsGenerating(false)- setProgress(0) // Reset progress- return- }- // If task cancelled- else if (taskData.status === 'CANCELLED') {- setIsGenerating(false)- setProgress(0) // Reset progress- return- }-- // Continue polling- setTimeout(poll, 2000)- }- } catch (error) {- setTimeout(poll, 2000)- }- }-- // Start polling- poll()-- // Set maximum polling time to 10 minutes- setTimeout(() => {- if (isGenerating) {- setIsGenerating(false)- setProgress(0) // Reset progress- addMessageToQueue({- type: 'error',- content: t('aiGeneration.taskTimeout' as any)- })- }- }, 600000)- } */return (<section className={styles.hero}>@@ -780,233 +1709,182 @@ function Hero({ promptToApply }: { promptToApply?: {prompt: string; image?: stri<span className={styles.githubText}>{t('hero.github')}</span></div>+ {/* Mode Selection Navigation */}+ <div className={styles.modeNavigation}>+ <div+ className={`${styles.modeItem} ${selectedMode === 'agent' ? styles.modeItemActive : ''}`}+ onClick={() => setSelectedMode('agent')}+ style={{+ background: selectedMode === 'agent'+ ? 'linear-gradient(135deg, #a66ae4 0%, #8b5ad6 100%)'+ : 'linear-gradient(135deg, rgba(166, 106, 228, 0.8) 0%, rgba(139, 90, 214, 0.8) 100%)'+ }}+ >+ <div className={styles.modeContent}>+ <div className={styles.modeTitle}>{t('aiGeneration.agentMode' as any)}</div>+ {selectedMode === 'agent' && (+ <div className={styles.modeDescription}>{t('aiGeneration.inspirationPrompt' as any)}</div>+ )}+ {selectedMode !== 'agent' && (+ <svg className={styles.modeArrow} width="16" height="16" viewBox="0 0 10 10" fill="none">+ <path d="M3.253 1.172a.604.604 0 0 1 .854.005l3.359 3.398a.604.604 0 0 1 0 .85L4.107 8.823a.604.604 0 0 1-.859-.85L6.187 5 3.248 2.026a.604.604 0 0 1 .005-.854Z" fill="currentColor"/>+ </svg>+ )}+ </div>+ </div>++ {/* 对话信息和新对话按钮 */}+ {selectedMode === 'agent' && (taskId || sessionId) && (+ <div className={styles.conversationInfo}>+ <span className={styles.conversationId}>+ {t('aiGeneration.conversationId' as any)}: {(taskId || sessionId).slice(-6)}+ </span>+ <button+ className={styles.newConversationBtn}+ onClick={handleNewConversation}+ title={t('aiGeneration.startNewConversation' as any)}+ disabled={isGenerating}+ >+ <ReloadOutlined />+ </button>+ </div>+ )}+ </div>++ {/* SSE Message Display - Visible when generating or has messages */}+ {(isGenerating || markdownMessages.length > 0) && (+ <div className={styles.markdownMessagesWrapper}>+ <div+ ref={markdownContainerRef}+ className={styles.markdownMessagesContainer}+ >+ <h3 className={styles.markdownTitle}>+ <Image src={logo} alt="Logo" className={styles.logoAi} />+ {t('aiGeneration.aiGenerationProcess' as any)} {isGenerating && <LoadingDots />}+ </h3>+ <div className={styles.markdownContent}>+ <ReactMarkdown>+ {markdownMessages.length > 0+ ? markdownMessages.join('\n\n')+ : t('aiGeneration.waitingAiResponse' as any)}+ </ReactMarkdown>+ </div>+ </div>+ </div>+ )}+{/* AI Generation Input */}<div className={styles.aiGenerationWrapper}><div className={styles.aiInputContainer}>- {/* 已上传图片预览 */}- {uploadedImages.length > 0 && (+<div className={styles.uploadedImagesPreview}><div className={styles.imagesRow}>- {uploadedImages.map((imageUrl, index) => (+ {uploadedImages.length > 0 && uploadedImages.map((imageUrl, index) => (<div key={index} className={styles.imageItem}><imgsrc={imageUrl}- alt={`图 ${index + 1}`}+ alt={`pic ${index + 1}`}className={styles.imageThumb}/>{!isGenerating && (<spanclassName={styles.removeImageBtn}onClick={() => handleRemoveImage(index)}- title="删除"+ title="remove image"><CloseCircleOutlined /></span>)}</div>))}++ {/* 图片上传按钮 */}+ <input+ ref={fileInputRef}+ type="file"+ accept="image/*"+ multiple+ onChange={handleImageUpload}+ style={{ display: 'none' }}+ />+ <button+ onClick={() => fileInputRef.current?.click()}+ disabled={isGenerating || isUploading}+ className={styles.aiUploadBtn}+ title={t('aiGeneration.uploadImage' as any)}+ >+ {isUploading ? (+ <span>⏳</span>+ ) : (+ <span className={styles.plusIcon}>+</span>+ )}+ </button></div></div>- )}- <div className={styles.aiInputContainer1}>+-- <input- type="text"+ <div className={styles.aiInputContainer1}>+ <textarea+ ref={textareaRef}+ id="ai-input-textarea"+ data-driver-target="ai-input"value={prompt}onChange={(e) => setPrompt(e.target.value)}- onKeyPress={(e) => {- if (e.key === 'Enter' && !isGenerating && !isUploading) {+ onKeyDown={(e) => {+ if (e.key === 'Enter' && (e.ctrlKey || e.metaKey) && !isGenerating && !isUploading) {+ e.preventDefault()handleCreateTask()}}}placeholder={t('aiGeneration.inputPlaceholder' as any)}disabled={isGenerating || isUploading}className={styles.aiInput}+ rows={4}/>-- {/* 图片上传按钮 */}- <input- ref={fileInputRef}- type="file"- accept="image/*"- multiple- onChange={handleImageUpload}- style={{ display: 'none' }}- />- <button- onClick={() => fileInputRef.current?.click()}- disabled={isGenerating || isUploading}- className={styles.aiUploadBtn}- title="上传图片"+ </div>++ {/* 底部控制栏 */}+ <div className={styles.aiInputBottomBar}>+ <div className={styles.bottomLeft}>+ <button className={styles.modeSelectBtn}>+ <span>+ {selectedMode === 'agent' && t('aiGeneration.agentMode' as any)}+ {selectedMode === 'image' && t('aiGeneration.imageGeneration' as any)}+ {selectedMode === 'video' && t('aiGeneration.videoGeneration' as any)}+ {selectedMode === 'draft' && t('aiGeneration.draftBox' as any)}+ {selectedMode === 'publishbatch' && t('aiGeneration.batchPublish' as any)}+ </span>+ <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2">+ <polyline points="6 9 12 15 18 9"></polyline>+ </svg>+ </button>++ </div>+ <button+ className={styles.scrollTopBtn}+ onClick={isGenerating ? handleStopTask : handleCreateTask}+ disabled={!isGenerating && (!prompt.trim() || isUploading)}+ title={isGenerating ? t('status.stopGenerating' as any) : t('status.sendMessage' as any)}>- {isUploading ? (- <span>⏳</span>+ {isGenerating ? (+ // 停止按钮 - 显示方块+ <svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor">+ <rect x="6" y="6" width="12" height="12" rx="2" />+ </svg>) : (- <PictureOutlined style={{ fontSize: '20px' }} />+ // 发送按钮 - 显示向上箭头+ <svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2">+ <path d="M12.002 3c.424 0 .806.177 1.079.46l5.98 5.98.103.114a1.5 1.5 0 0 1-2.225 2.006l-3.437-3.436V19.5l-.008.153a1.5 1.5 0 0 1-2.985 0l-.007-.153V8.122l-3.44 3.438a1.5 1.5 0 0 1-2.225-2.006l.103-.115 6-5.999.025-.025.059-.052.044-.037c.029-.023.06-.044.09-.065l.014-.01a1.43 1.43 0 0 1 .101-.062l.03-.017c.209-.11.447-.172.699-.172Z" fill="currentColor"/>+ </svg>)}</button>-- <button- onClick={handleCreateTask}- disabled={isGenerating || !prompt.trim() || isUploading}- className={styles.aiGenerateBtn}- >- {isGenerating ? t('aiGeneration.generating' as any) : t('aiGeneration.generateButton' as any)}- </button>-- </div></div>---- {/* Progress Display Area - COMMENTED OUT, KEPT FOR REFERENCE */}- {/* {(isGenerating || completedMessages.length > 0 || currentTypingMsg) && (- <div className={styles.aiProgressWrapper}>- <div- ref={progressContainerRef}- className={styles.aiProgressContainer}- style={{- borderBottom: progress > 0 ? 'none' : '1px solid rgba(0, 0, 0, 0.08)',- borderRadius: progress > 0 ? '12px 12px 0 0' : '12px',- }}- >- {isGenerating && (- <div style={{- position: 'absolute',- top: 0,- left: 0,- right: 0,- height: '2px',- background: 'linear-gradient(90deg, transparent, #a66ae4, transparent)',- animation: 'slideRight 2s infinite',- zIndex: 10,- }} />- )}-- <div className={styles.aiProgressContent}>- {completedMessages.map((msg, index) => {- const statusDisplay = msg.status ? getStatusDisplay(msg.status) : null- const isDescription = msg.type === 'description'- const isError = msg.type === 'error'- const isText = msg.type === 'text'-- return (- <div- key={`completed-${index}`}- className={styles.aiProgressMessage}- style={{- color: isError ? '#ff4d4f' : statusDisplay?.color || '#333',- }}- >- {statusDisplay && statusDisplay.icon}- {isDescription && <FileTextOutlined style={{ marginRight: '8px', color: '#52c41a', flexShrink: 0 }} />}- {isError && <CloseCircleOutlined style={{ marginRight: '8px', color: '#ff4d4f', flexShrink: 0 }} />}- {isText && !statusDisplay && <span style={{ marginRight: '8px' }}></span>}- <span style={{ textAlign: 'left', flex: 1 }}>- {msg.content}- {msg.loading && <LoadingDots />}- </span>- </div>- )- })}-- {currentTypingMsg && displayedText && (- <div- className={styles.aiProgressMessage}- style={{- color: currentTypingMsg.type === 'error'- ? '#ff4d4f'- : currentTypingMsg.status- ? getStatusDisplay(currentTypingMsg.status).color- : '#333',- }}- >- {currentTypingMsg.status && getStatusDisplay(currentTypingMsg.status).icon}- {currentTypingMsg.type === 'description' && <FileTextOutlined style={{ marginRight: '8px', color: '#52c41a', flexShrink: 0 }} />}- {currentTypingMsg.type === 'error' && <CloseCircleOutlined style={{ marginRight: '8px', color: '#ff4d4f', flexShrink: 0 }} />}- {currentTypingMsg.type === 'text' && !currentTypingMsg.status && <span style={{ marginRight: '8px' }}></span>}- <span style={{ textAlign: 'left', flex: 1 }}>- {displayedText}- {currentTypingMsg.loading && <LoadingDots />}- <span className={styles.aiProgressCursor}>|</span>- </span>- </div>- )}- </div>- </div>-- {progress > 0 && (- <div className={styles.aiProgressBarContainer}>- <div- className={styles.aiProgressBar}- style={{ width: `${progress}%` }}- >- <span className={styles.aiProgressText}>{progress}%</span>- </div>- </div>- )}- </div>- )} */}-- {/* SSE Message Display - Visible when generating or has messages */}- {(isGenerating || markdownMessages.length > 0) && (- <div className={styles.markdownMessagesWrapper}>- <div- ref={markdownContainerRef}- className={styles.markdownMessagesContainer}- >- <h3 className={styles.markdownTitle}>- 🤖 AI 生成过程 {isGenerating && <LoadingDots />}- </h3>- <div className={styles.markdownContent}>- <ReactMarkdown>- {markdownMessages.length > 0- ? markdownMessages.join('\n\n')- : '等待 AI 响应...'}- </ReactMarkdown>- </div>- </div>- </div>- )}--+ </div></div>- {/* Mobile button */}- <button- onClick={() => {- router.push('/accounts')- }}- className={`${styles.heroBtn} ${styles.heroBtnMobile}`}- style={{ marginTop: '20px' }}- >- {t('hero.getStarted')}- <svg className={styles.btnArrow} width="16" height="16" viewBox="0 0 16 16" fill="none">- <path d="m6 12 4-4-4-4" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" />- </svg>- </button>-- <p className={styles.heroSubtitle}>- {t('hero.subtitle')}- </p>-- {/* Desktop button */}- <button- onClick={() => {- router.push('/accounts')- }}- className={`${styles.heroBtn} ${styles.heroBtnDesktop}`}- >- {t('hero.getStarted')}- <svg className={styles.btnArrow} width="16" height="16" viewBox="0 0 16 16" fill="none">- <path d="m6 12 4-4-4-4" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" />- </svg>- </button>-- <p+ {/* <pclassName={styles.heroMobileLink}style={{ marginTop: '10px' }}onClick={() => {@@ -1017,126 +1895,35 @@ function Hero({ promptToApply }: { promptToApply?: {prompt: string; image?: stri}}>{t('hero.useMobilePhone' as any)}- </p>+ </p> */}</div>{/* Login Modal */}- <Modal+ <LoginModalopen={loginModalOpen}onCancel={() => setLoginModalOpen(false)}- footer={null}- width={460}- centered- destroyOnClose- >- <div className={loginStyles.loginBox} style={{ boxShadow: 'none', padding: '24px 0' }}>- <h1 className={loginStyles.title}>{tLogin('welcomeBack')}</h1>- <form onSubmit={handleLoginSubmit} className={loginStyles.form}>- <div className={loginStyles.inputGroup}>- <input- type="email"- placeholder={tLogin('emailPlaceholder')}- value={loginEmail}- onChange={e => setLoginEmail(e.target.value)}- className={loginStyles.input}- required- />- </div>- <div className={loginStyles.inputGroup}>- <input- type="password"- placeholder={tLogin('passwordPlaceholder')}- value={loginPassword}- onChange={e => setLoginPassword(e.target.value)}- className={loginStyles.input}- required- />- </div>- <Button type="primary" htmlType="submit" block className={loginStyles.submitButton}>- {tLogin('login')}- </Button>- </form>-- <div className={loginStyles.divider}>- <span>{tLogin('or')}</span>- </div>+ onSuccess={handleLoginSuccess}+ />- <div className={loginStyles.googleButtonWrapper}>- <GoogleLogin- onSuccess={handleGoogleSuccess}- onError={() => message.error(tLogin('googleLoginFailed'))}- useOneTap={false}- theme="outline"- shape="rectangular"- text="signin_with"- locale={lng === 'zh-CN' ? 'zh_CN' : 'en'}- width="100%"- size="large"- />- </div>- </div>- </Modal>-- {/* Registration Modal */}- <Modal- title={tLogin('completeRegistration')}- open={isModalOpen}- onCancel={() => {- setIsModalOpen(false)- setIsActivating(false)- loginForm.resetFields()+ {/* Plugin Status Modal */}+ <PluginStatusModal+ visible={pluginModalOpen}+ onClose={() => {+ setPluginModalOpen(false)+ setHighlightPlatform(null)}}- maskClosable={false}- keyboard={false}- closable={true}- footer={null}- >- <Form- form={loginForm}- onFinish={handleRegistSubmit}- layout="vertical"- >- <Form.Item- label={tLogin('emailCode')}- name="code"- rules={[- { required: true, message: tLogin('emailCodeRequired') },- { len: 6, message: tLogin('emailCodeLength') },- ]}- >- <Input placeholder={tLogin('enterEmailCode')} maxLength={6} />- </Form.Item>-- <Form.Item- label={tLogin('setPassword')}- name="password"- rules={[- { required: true, message: tLogin('passwordRequired') },- { min: 6, message: tLogin('passwordMinLength') },- ]}- >- <Input.Password placeholder={tLogin('enterPassword')} />- </Form.Item>+ highlightPlatform={highlightPlatform}+ />- <Form.Item- label={tLogin('inviteCode')}- name="inviteCode"- >- <Input placeholder={tLogin('enterInviteCode')} />- </Form.Item>-- <Form.Item>- <Button- type="primary"- htmlType="submit"- block- loading={isActivating}- >- {isActivating ? tLogin('registering') : tLogin('completeRegistration')}- </Button>- </Form.Item>- </Form>- </Modal>+ {/* Plugin Status Modal */}+ <PluginStatusModal+ visible={pluginModalOpen}+ onClose={() => {+ setPluginModalOpen(false)+ setHighlightPlatform(null)+ }}+ highlightPlatform={highlightPlatform}+ /></section>)}@@ -2001,7 +2788,7 @@ function DownloadSection() {<div className={styles.downloadBtnContent}><AndroidOutlined className={styles.downloadIcon} style={{ fontSize: '24px' }} /><div className={styles.downloadBtnText}>- <span className={styles.downloadOn}>立即下载</span>+ <span className={styles.downloadOn}>{t('download.downloadNow' as any)}</span><span className={styles.downloadStore}>Android APK</span></div></div>@@ -2191,7 +2978,7 @@ function CommunitySection() {</button>{hoveredButton === 'wechat' && (<div className={styles.qrCodePopup}>- <Image src={gongzhonghao} alt="微信公众号" width={200} height={200} className={styles.qrCodeImage} />+ <Image src={gongzhonghao} alt={t('wechat.officialAccount' as any)} width={200} height={200} className={styles.qrCodeImage} /><p className={styles.qrCodeText}>{t('communitySection.wechatPopup' as any)}</p></div>)}@@ -2210,7 +2997,7 @@ function CommunitySection() {</button>{hoveredButton === 'community' && (<div className={styles.qrCodePopup}>- <Image src={gongzhonghao} alt="社区公众号" width={200} height={200} className={styles.qrCodeImage} />+ <Image src={gongzhonghao} alt={t('wechat.communityOfficialAccount' as any)} width={200} height={200} className={styles.qrCodeImage} /><p className={styles.qrCodeText}>{t('communitySection.communityPopup' as any)}</p></div>)}@@ -2438,8 +3225,15 @@ export default function Home() {<ReleaseBanner /><Hero promptToApply={promptToApply} /><PromptGallerySection- onApplyPrompt={(prompt) => {- setPromptToApply({ prompt })+ onApplyPrompt={(data) => {+ // 根据 mode 决定如何处理+ if (data.mode === 'edit' && data.image) {+ // edit 模式:设置提示词和图片+ setPromptToApply({ prompt: data.prompt, image: data.image })+ } else {+ // generate 模式:只设置提示词+ setPromptToApply({ prompt: data.prompt })+ }}}/><LazyLoadSection>diff --git a/project/web/src/app/[lng]/styles/difyHome.module.scss b/project/web/src/app/[lng]/styles/difyHome.module.scssindex 835eab6d..b22e00d0 100644--- a/project/web/src/app/[lng]/styles/difyHome.module.scss+++ b/project/web/src/app/[lng]/styles/difyHome.module.scss@@ -64,7 +64,7 @@}.headerContainer {- max-width: 1200px;+ max-width: 1920px;margin: 0 auto;padding: 0 24px;display: flex;@@ -333,19 +333,17 @@}.hero {- padding: 80px 0 120px;+ padding: 80px 20px 30px;background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);text-align: center;- min-height: 100vh; // 占满一屏- display: flex;- flex-direction: column;- justify-content: center;+ // min-height: calc(100vh - 80px); // 占满一屏+}.heroContainer {- max-width: 1200px;+ max-width: 1920px;margin: 0 auto;- padding: 0 24px;+ padding: 0;position: relative;}@@ -372,6 +370,11 @@font-weight: 600;}+.logoAi{+ width: 30px;+ height: 30px;+}+.heroTitle {font-size: 72px;font-weight: 800;@@ -1766,11 +1769,6 @@font-size: 56px;}- .buildContent,- .connectContent {- //grid-template-columns: 1fr;- //gap: 40px;- }.productionFeatures {grid-template-columns: 1fr;@@ -2658,18 +2656,284 @@}+// 模式选择导航栏+.modeNavigation {+ display: flex;+ width: 100%;+ max-width: 1920px;+ margin: 40px auto 0px;+ padding: 0px;+ gap: 0;+ border-top-left-radius: 20px;+ border-top-right-radius: 20px;+ overflow: hidden;+ box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);+ will-change: contents;+ height: 80px; // 固定高度,避免切换时抖动++ @media (max-width: 768px) {+ flex-direction: column;+ margin: 20px auto 16px;+ padding: 0 16px;+ gap: 0;+ border-radius: 16px;+ height: auto; // 移动端允许自适应高度+ }+}++.modeItem {+ flex: 1;+ position: relative;+ height: 80px; // 固定高度,与父容器一致+ background-size: 1920px auto;+ background-position: right top;+ background-repeat: no-repeat;+ cursor: pointer;+ overflow: hidden;+ transform: translateZ(0);+ backface-visibility: hidden;+ will-change: flex-grow;+ transition: flex-grow 0.3s cubic-bezier(0.4, 0, 0.2, 1);++ &:last-child {+ border-right: none;+ }++ // 移除蒙层,让背景图更清晰+ // &::before {+ // content: '';+ // position: absolute;+ // top: 0;+ // left: 0;+ // right: 0;+ // bottom: 0;+ // background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.6) 100%);+ // transition: background 0.3s ease;+ // z-index: 1;+ // will-change: background;+ // }++ &:hover:not(.modeItemActive) {+ flex-grow: 1.2;+ z-index: 2;+ }++ &.modeItemActive {+ flex-grow: 3;+ z-index: 3;++ .modeContent {+ .modeTitle {+ font-size: 20px;+ margin-bottom: 4px;+ transition: font-size 0.3s ease, margin-bottom 0.3s ease;+ }++ .modeDescription {+ opacity: 1;+ max-height: 20px;+ margin-top: 2px;+ }+ }+ }++ @media (max-width: 768px) {+ height: 80px; // 移动端固定高度+ min-height: 80px;+ border-right: none;+ border-bottom: 1px solid rgba(255, 255, 255, 0.2);++ &:last-child {+ border-bottom: none;+ }++ &.modeItemActive {+ flex-grow: 1;+ }+ }+}++.modeContent {+ position: relative;+ z-index: 2;+ padding: 8px 20px;+ height: 100%;+ display: flex;+ flex-direction: column;+ justify-content: center;+ color: white;+ transform: translateZ(0);+ min-height: 80px; // 确保内容区域有足够高度++ @media (max-width: 768px) {+ padding: 6px 16px;+ min-height: 80px;+ }+}++.modeTitle {+ font-size: 18px;+ font-weight: 700;+ margin-bottom: 0;+ transition: font-size 0.3s ease, margin-bottom 0.3s ease;+ white-space: nowrap;+ will-change: font-size;+ text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); // 添加文字阴影,确保在背景图上可见+ line-height: 1.2;++ @media (max-width: 768px) {+ font-size: 16px;+ }+}++.modeDescription {+ font-size: 13px;+ opacity: 0;+ max-height: 0;+ overflow: hidden;+ transition: opacity 0.3s ease, max-height 0.3s ease, margin-top 0.3s ease;+ line-height: 1.4;+ color: rgba(255, 255, 255, 0.95);+ will-change: opacity, max-height;+ margin: 0; // 确保没有额外的margin影响布局+ padding: 0; // 确保没有额外的padding影响布局+ text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5); // 添加文字阴影,确保在背景图上可见+ white-space: nowrap; // 单行显示,避免换行++ @media (max-width: 768px) {+ font-size: 12px;+ }+}++.conversationInfo {+ display: flex;+ align-items: center;+ gap: 12px;+ padding: 0 20px;+ height: 80px; // 固定高度,与 modeItem 一致+ flex-shrink: 0; // 不收缩+ background: linear-gradient(135deg, rgba(166, 106, 228, 0.6) 0%, rgba(139, 90, 214, 0.6) 100%);+ backdrop-filter: blur(10px);+ border-left: 1px solid rgba(255, 255, 255, 0.2);+ position: relative;+ z-index: 1;++ @media (max-width: 768px) {+ padding: 0 16px;+ gap: 8px;+ height: auto;+ min-height: 60px;+ border-left: none;+ border-top: 1px solid rgba(255, 255, 255, 0.2);+ width: 100%;+ }+}++.conversationId {+ font-size: 12px;+ color: rgba(255, 255, 255, 0.95);+ font-family: 'Courier New', monospace;+ white-space: nowrap;+ overflow: hidden;+ text-overflow: ellipsis;+ max-width: 200px;+ text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);+ font-weight: 500;++ @media (max-width: 768px) {+ font-size: 11px;+ max-width: 150px;+ }+}++.newConversationBtn {+ display: flex;+ align-items: center;+ justify-content: center;+ width: 32px;+ height: 32px;+ border: 1px solid rgba(255, 255, 255, 0.4);+ border-radius: 8px;+ background: rgba(255, 255, 255, 0.15);+ color: rgba(255, 255, 255, 0.95);+ cursor: pointer;+ transition: all 0.2s ease;+ padding: 0;+ flex-shrink: 0;+ box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);++ &:hover:not(:disabled) {+ background: rgba(255, 255, 255, 0.25);+ border-color: rgba(255, 255, 255, 0.6);+ transform: scale(1.05);+ box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);+ }++ &:active:not(:disabled) {+ transform: scale(0.95);+ }++ &:disabled {+ opacity: 0.5;+ cursor: not-allowed;+ }++ svg {+ width: 16px;+ height: 16px;+ stroke: currentColor;+ }++ @media (max-width: 768px) {+ width: 28px;+ height: 28px;++ svg {+ width: 14px;+ height: 14px;+ }+ }+}++.modeArrow {+ position: absolute;+ right: 20px;+ top: 50%;+ transform: translateY(-50%);+ width: 16px;+ height: 16px;+ color: white;+ opacity: 0.8;+ transition: opacity 0.3s ease;+ flex-shrink: 0;++ @media (max-width: 768px) {+ right: 16px;+ width: 14px;+ height: 14px;+ }+}++.modeItem:hover .modeArrow {+ opacity: 1;+}++.modeItemActive .modeArrow {+ display: none;+}+// AI生成输入和进度展示区域.aiGenerationWrapper {width: 100%;- max-width: 800px;- margin: 40px auto 20px;+ max-width: 1920px;+ margin: 0 auto 20px;display: flex;flex-direction: column;gap: 16px;- padding: 0 20px;+ padding: 0;@media (max-width: 768px) {- margin: 20px auto 16px;+ margin: 0 auto 16px;padding: 0 16px;gap: 12px;}@@ -2677,24 +2941,29 @@.aiInputContainer {background: #fff;- border-radius: 16px;- padding: 8px;- box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);+ border-bottom-left-radius: 16px;+ border-bottom-right-radius: 16px;+ padding: 16px;+ box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);+ position: relative;+ @media (max-width: 768px) {+ padding: 12px;+ border-radius: 12px;+ }}.aiInputContainer1 {display: flex;- gap: 8px;+ gap: 12px;align-items: center;-- padding: 8px;- backdrop-filter: blur(10px);+ padding: 0;+ margin-bottom: 12px;+ position: relative;@media (max-width: 768px) {gap: 8px;- padding: 10px;- border-radius: 12px;+ margin-bottom: 10px;}}@@ -2706,7 +2975,12 @@background: transparent;color: #1a1a1a;font-family: inherit;+ padding: 12px 0px;width: 100%;+ resize: vertical;+ min-height: 100px;+ line-height: 1.5;+ overflow-y: auto;&::placeholder {color: #999;@@ -2718,49 +2992,40 @@}@media (max-width: 768px) {- padding: 12px 16px;+ padding: 10px 12px;font-size: 15px;+ min-height: 80px;}}// 图片上传按钮.aiUploadBtn {- padding: 0 12px;- height: 40px;- background: linear-gradient(135deg, #a66ae4 0%, #9558de 100%);- color: white;+ padding: 0;+ width: 50px;+ height: 50px;+ background: #f5f5f5;+ color: #333;border: none;- border-radius: 10px;- font-size: 18px;+ border-radius: 12px;cursor: pointer;transition: all 0.3s ease;display: flex;align-items: center;justify-content: center;- min-width: 44px;- box-shadow: 0 2px 8px rgba(166, 106, 228, 0.25);- position: relative;- overflow: hidden;+ flex-shrink: 0;+ box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);- &::before {- content: '';- position: absolute;- top: 0;- left: -100%;- width: 100%;- height: 100%;- background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);- transition: left 0.5s ease;+ .plusIcon {+ font-size: 28px;+ font-weight: 300;+ line-height: 1;+ color: #666;}&:hover:not(:disabled) {- background: linear-gradient(135deg, #9558de 0%, #8b4fd9 100%);- transform: translateY(-2px);- box-shadow: 0 6px 16px rgba(166, 106, 228, 0.4);-- &::before {- left: 100%;- }+ background: #e8e8e8;+ transform: translateY(-1px);+ box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);}&:active:not(:disabled) {@@ -2768,32 +3033,184 @@}&:disabled {- opacity: 0.6;+ opacity: 0.5;cursor: not-allowed;- background: #d3d3d3;+ background: #f0f0f0;box-shadow: none;}@media (max-width: 768px) {- min-width: 40px;- padding: 0 10px;- height: 38px;- font-size: 16px;+ width: 44px;+ height: 44px;}}-.aiGenerateBtn {- padding: 12px 24px;+// 自动按钮+.autoBtn {+ padding: 12px 20px;+ height: 48px;+ background: #f5f5f5;+ color: #333;+ border: none;+ border-radius: 12px;font-size: 15px;- font-weight: 600;- background: linear-gradient(135deg, #a66ae4 0%, #8b4fd9 100%);- color: #fff;+ font-weight: 500;+ cursor: pointer;+ transition: all 0.3s ease;+ display: flex;+ align-items: center;+ justify-content: center;+ gap: 8px;+ flex-shrink: 0;+ box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);+ white-space: nowrap;++ svg {+ width: 16px;+ height: 16px;+ stroke: #666;+ }++ &:hover:not(:disabled) {+ background: #e8e8e8;+ transform: translateY(-1px);+ box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);+ }++ &:active:not(:disabled) {+ transform: translateY(0);+ }++ &:disabled {+ opacity: 0.5;+ cursor: not-allowed;+ background: #f0f0f0;+ box-shadow: none;+ }++ @media (max-width: 768px) {+ padding: 10px 16px;+ height: 44px;+ font-size: 14px;+ }+}++// 底部控制栏++.aiInputBottomBar {+ display: flex;+ align-items: center;+ justify-content: space-between;+ padding-top: 12px;+ margin-top: 12px;++ @media (max-width: 768px) {+ padding-top: 10px;+ margin-top: 10px;+ }+}++.bottomLeft {+ display: flex;+ align-items: center;+ gap: 8px;+}++.modeSelectBtn {+ padding: 6px 12px;+ background: #e3f2fd;+ color: #1976d2;+ border: none;+ border-radius: 8px;+ font-size: 13px;+ font-weight: 500;+ cursor: pointer;+ transition: all 0.3s ease;+ display: flex;+ align-items: center;+ gap: 6px;+ white-space: nowrap;++ svg {+ width: 14px;+ height: 14px;+ stroke: #1976d2;+ }++ &:hover {+ background: #bbdefb;+ transform: translateY(-1px);+ }++ @media (max-width: 768px) {+ padding: 5px 10px;+ font-size: 12px;+ }+}++.autoBtnSmall {+ padding: 6px 12px;+ background: #f5f5f5;+ color: #333;border: none;- border-radius: 10px;+ border-radius: 8px;+ font-size: 13px;+ font-weight: 500;cursor: pointer;transition: all 0.3s ease;white-space: nowrap;- box-shadow: 0 4px 15px rgba(166, 106, 228, 0.4);++ &:hover {+ background: #e8e8e8;+ transform: translateY(-1px);+ }++ @media (max-width: 768px) {+ padding: 5px 10px;+ font-size: 12px;+ }+}++.scrollTopBtn {+ width: 40px;+ height: 40px;+ background: #f5f5f5;+ color: #666;+ border: none;+ border-radius: 50%;+ cursor: pointer;+ transition: all 0.3s ease;+ display: flex;+ align-items: center;+ justify-content: center;+ flex-shrink: 0;+ box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);++ svg {+ width: 20px;+ height: 20px;+ stroke: #666;+ }++ &:hover {+ background: #e8e8e8;+ transform: translateY(-2px);+ box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);+ }++ @media (max-width: 768px) {+ width: 36px;+ height: 36px;++ svg {+ width: 18px;+ height: 18px;+ }+ }+}++.aiGenerateBtn {+ display: none; // 隐藏生成按钮,因为现在使用自动按钮&:hover:not(:disabled) {transform: translateY(-2px);@@ -2830,8 +3247,8 @@.imageItem {position: relative;- width: 40px;- height: 40px;+ width: 50px;+ height: 50px;border-radius: 6px;overflow: hidden;border: 1.5px solid rgba(166, 106, 228, 0.25);@@ -3086,14 +3503,12 @@// Markdown messages wrapper.markdownMessagesWrapper {width: 100%;- margin-top: 16px;}.markdownMessagesContainer {padding: 20px;background: rgba(255, 255, 255, 0.95);- border: 1px solid rgba(166, 106, 228, 0.2);- border-radius: 12px;+ border-bottom: 1px solid rgba(166, 106, 228, 0.2);box-shadow: 0 4px 16px rgba(166, 106, 228, 0.1);max-height: 500px;overflow-y: auto;diff --git a/project/web/src/app/[lng]/styles/promptGallery.module.scss b/project/web/src/app/[lng]/styles/promptGallery.module.scssindex 73246531..b91c9bde 100644--- a/project/web/src/app/[lng]/styles/promptGallery.module.scss+++ b/project/web/src/app/[lng]/styles/promptGallery.module.scss@@ -1,6 +1,6 @@.promptGallery {- padding: 80px 20px;- background: linear-gradient(180deg, #ffffff 0%, #f8f9ff 100%);+ padding: 10px 20px;+ background: linear-gradient(180deg, #F2F6FA 0%, #f8f9ff 100%);position: relative;@media (max-width: 768px) {@@ -9,7 +9,7 @@}.container {- max-width: 1200px;+ max-width: 1920px;margin: 0 auto;}@@ -93,36 +93,220 @@}}-.grid {- display: grid;- grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));- gap: 24px;+.filters {+ display: flex;+ align-items: center;+ justify-content: space-between;+ gap: 20px;+ margin-bottom: 40px;+ flex-wrap: wrap;++ @media (max-width: 768px) {+ flex-direction: column;+ align-items: stretch;+ gap: 16px;+ margin-bottom: 30px;+ }+}++.filterButtons {+ display: flex;+ gap: 12px;+ flex-wrap: wrap;++ @media (max-width: 768px) {+ width: 100%;+ justify-content: center;+ }+}++.filterBtn {+ padding: 10px 20px;+ background: white;+ color: #666;+ border: 2px solid #e0e0e0;+ border-radius: 8px;+ font-size: 14px;+ font-weight: 500;+ cursor: pointer;+ transition: all 0.3s ease;+ white-space: nowrap;++ &:hover {+ border-color: #733dec;+ color: #733dec;+ transform: translateY(-2px);+ }++ &.filterBtnActive {+ background: linear-gradient(135deg, #733dec 0%, #a66ae4 100%);+ color: white;+ border-color: transparent;+ box-shadow: 0 4px 12px rgba(115, 61, 236, 0.3);++ &:hover {+ transform: translateY(-2px);+ box-shadow: 0 6px 16px rgba(115, 61, 236, 0.4);+ }+ }++ @media (max-width: 768px) {+ flex: 1;+ min-width: 0;+ }+}++.collapseBtn {+ width: 44px;+ height: 44px;+ background: white;+ color: #666;+ border: 2px solid #e0e0e0;+ border-radius: 8px;+ cursor: pointer;+ transition: all 0.3s ease;+ display: flex;+ align-items: center;+ justify-content: center;+ flex-shrink: 0;+ padding: 0;++ svg {+ width: 16px;+ height: 16px;+ stroke: #666;+ transition: transform 0.3s ease;+ }++ &:hover {+ border-color: #733dec;+ color: #733dec;+ background: #f8f9ff;+ transform: translateY(-2px);++ svg {+ stroke: #733dec;+ }+ }++ @media (max-width: 768px) {+ width: 36px;+ height: 36px;+ }+}++.searchBox {+ display: flex;+ align-items: center;+ gap: 10px;+ padding: 10px 16px;+ background: white;+ border: 2px solid #e0e0e0;+ border-radius: 8px;+ flex: 1;+ max-width: 400px;+ transition: all 0.3s ease;++ &:focus-within {+ border-color: #733dec;+ box-shadow: 0 0 0 3px rgba(115, 61, 236, 0.1);+ }++ svg {+ width: 16px;+ height: 16px;+ color: #999;+ flex-shrink: 0;+ }++ @media (max-width: 768px) {+ max-width: 100%;+ width: 100%;+ }+}++.searchInput {+ flex: 1;+ border: none;+ outline: none;+ font-size: 14px;+ color: #333;+ background: transparent;++ &::placeholder {+ color: #999;+ }+}++.clearBtn {+ display: flex;+ align-items: center;+ justify-content: center;+ width: 20px;+ height: 20px;+ padding: 0;+ background: transparent;+ border: none;+ cursor: pointer;+ color: #999;+ transition: color 0.2s ease;+ flex-shrink: 0;++ &:hover {+ color: #733dec;+ }++ svg {+ width: 14px;+ height: 14px;+ }+}++.masonry {+ column-count: auto;+ column-width: 380px;+ column-gap: 16px;margin-bottom: 40px;@media (max-width: 768px) {- grid-template-columns: 1fr;- gap: 20px;+ column-count: 1;+ column-width: 100%;+ column-gap: 12px;}}.card {+ break-inside: avoid;+ margin-bottom: 16px;background: white;border-radius: 16px;overflow: hidden;cursor: pointer;transition: all 0.3s ease;box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);+ display: inline-block;+ width: 100%;++ @media (max-width: 768px) {+ margin-bottom: 12px;+ }&:hover {transform: translateY(-4px);box-shadow: 0 8px 24px rgba(115, 61, 236, 0.15);+ .cardImage img {+ transform: scale(1.05);+ }+.cardOverlay {- opacity: 1;+ background: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.9) 100%);}- .cardImage img {- transform: scale(1.05);+ .actionBtn {+ opacity: 1;+ transform: translateY(0);+ pointer-events: auto;}}}@@ -130,52 +314,101 @@.cardImage {position: relative;width: 100%;- height: 200px;overflow: hidden;background: #f5f5f5;+ min-height: 200px;img {width: 100%;- height: 100%;- object-fit: cover;+ height: auto;+ display: block;transition: transform 0.3s ease;}}+.imageLoading {+ position: absolute;+ top: 0;+ left: 0;+ right: 0;+ bottom: 0;+ display: flex;+ align-items: center;+ justify-content: center;+ background: #f5f5f5;+ z-index: 1;+}++.imageSpinner {+ width: 40px;+ height: 40px;+ border: 3px solid #e0e0e0;+ border-top: 3px solid #733dec;+ border-radius: 50%;+ animation: spin 1s linear infinite;+}++@keyframes spin {+ 0% {+ transform: rotate(0deg);+ }+ 100% {+ transform: rotate(360deg);+ }+}++.imageError {+ padding: 40px 20px;+ text-align: center;+ color: #999;+ font-size: 14px;+ min-height: 200px;+ display: flex;+ align-items: center;+ justify-content: center;+}+.cardOverlay {position: absolute;top: 0;left: 0;right: 0;bottom: 0;- background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.7) 100%);+ background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.7) 100%);display: flex;align-items: flex-end;justify-content: center;- gap: 12px;padding: 20px;- opacity: 0;- transition: opacity 0.3s ease;+ opacity: 1;+ transition: all 0.3s ease;}.actionBtn {display: flex;align-items: center;+ justify-content: center;gap: 6px;- padding: 8px 16px;- background: white;+ padding: 10px 20px;+ background: rgba(255, 255, 255, 0.95);color: #333;border: none;border-radius: 8px;font-size: 14px;- font-weight: 500;+ font-weight: 600;cursor: pointer;- transition: all 0.2s ease;+ transition: all 0.3s ease;text-decoration: none;+ width: 100%;+ backdrop-filter: blur(10px);+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);+ opacity: 0;+ transform: translateY(10px);+ pointer-events: none;&:hover {- background: #f0f0f0;- transform: scale(1.05);+ background: white;+ transform: translateY(-2px);+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);}svg {@@ -185,28 +418,37 @@}.cardContent {- padding: 16px;+ width: 100%;+ color: white;}.cardTitle {- font-size: 16px;- font-weight: 600;- color: #1a1a1a;+ font-size: 18px;+ font-weight: 700;+ color: white;+ margin-bottom: 8px;+ line-height: 1.4;+ text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);+}++.cardDescription {+ font-size: 13px;+ color: rgba(255, 255, 255, 0.9);margin-bottom: 12px;- overflow: hidden;- text-overflow: ellipsis;+ line-height: 1.5;display: -webkit-box;- -webkit-line-clamp: 2;+ -webkit-line-clamp: 1;+ line-clamp: 1;-webkit-box-orient: vertical;- line-height: 1.4;+ overflow: hidden;+ text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);}.cardMeta {display: flex;align-items: center;- justify-content: space-between;+ margin-bottom: 12px;font-size: 13px;- color: #666;}.author {@@ -231,17 +473,21 @@border-radius: 6px;font-size: 12px;font-weight: 500;- background: #f0f0f0;- color: #666;+ background: rgba(255, 255, 255, 0.25);+ color: white;+ backdrop-filter: blur(10px);+ border: 1px solid rgba(255, 255, 255, 0.3);&.badgeEdit {- background: #e8f4ff;- color: #1890ff;+ background: rgba(24, 144, 255, 0.3);+ color: white;+ border-color: rgba(24, 144, 255, 0.5);}&.badgeGenerate {- background: #f0e8ff;- color: #733dec;+ background: rgba(115, 61, 236, 0.3);+ color: white;+ border-color: rgba(115, 61, 236, 0.5);}}diff --git a/project/web/src/app/globals.css b/project/web/src/app/globals.cssindex 913bc9b8..f075f38c 100644--- a/project/web/src/app/globals.css+++ b/project/web/src/app/globals.css@@ -63,3 +63,112 @@ a {*::-webkit-scrollbar-thumb:hover {background: #a2a2a2;}++/* driver.js 自定义样式(覆盖默认样式以匹配项目主题) */+.driver-popover {+ border-radius: 12px !important;+ box-shadow: 0 8px 24px rgba(115, 61, 236, 0.3) !important;+ border: none !important;+ padding: 20px !important;+}++.driver-popover-title {+ color: #733dec !important;+ font-weight: 600 !important;+ font-size: 18px !important;+ margin-bottom: 8px !important;+}++.driver-popover-description {+ color: #666 !important;+ font-size: 15px !important;+ line-height: 1.6 !important;+ margin-bottom: 16px !important;+}++.driver-popover-footer {+ display: flex !important;+ justify-content: flex-end !important;+ gap: 8px !important;+ margin-top: 0 !important;+}++.driver-popover-footer button {+ border-radius: 8px !important;+ padding: 10px 20px !important;+ font-weight: 500 !important;+ font-size: 14px !important;+ transition: all 0.3s ease !important;+ cursor: pointer !important;+ text-shadow: none !important;+}++.driver-popover-footer .driver-popover-next-btn,+.driver-popover-footer .driver-popover-done-btn {+ background: linear-gradient(135deg, #733dec 0%, #a66ae4 100%) !important;+ border: none !important;+ color: white !important;+}++.driver-popover-footer .driver-popover-next-btn:hover,+.driver-popover-footer .driver-popover-done-btn:hover {+ transform: translateY(-1px) !important;+ box-shadow: 0 4px 12px rgba(115, 61, 236, 0.4) !important;+}++.driver-popover-footer .driver-popover-next-btn:active,+.driver-popover-footer .driver-popover-done-btn:active {+ transform: translateY(0) !important;+}++/* 修复最后一个步骤时,next 按钮应该显示 done 的文本 */+.driver-popover-footer .driver-popover-next-btn:last-child {+ /* 当是最后一步时,按钮文本应该显示为"知道了" */+}++.driver-popover-footer .driver-popover-prev-btn {+ background: #f5f5f5 !important;+ border: 1px solid #e0e0e0 !important;+ color: #666 !important;+}++.driver-popover-footer .driver-popover-prev-btn:hover {+ background: #e8e8e8 !important;+}++.driver-popover-footer .driver-popover-close-btn {+ background: transparent !important;+ border: none !important;+ color: #999 !important;+ padding: 4px !important;+ font-size: 20px !important;+ line-height: 1 !important;+}++.driver-popover-footer .driver-popover-close-btn:hover {+ color: #666 !important;+}++/* 确保最后一步时,next 按钮显示为"知道了" */+.driver-popover-footer .driver-popover-next-btn:last-child {+ /* 按钮文本已经在 JS 中动态更新 */+}++.driver-highlighted-element {+ border: 3px solid #733dec !important;+ border-radius: 12px !important;+ box-shadow: 0 0 0 4px rgba(115, 61, 236, 0.2), 0 0 20px rgba(115, 61, 236, 0.3) !important;+ position: relative !important;+ z-index: 1000 !important;+}++/* 确保 textarea 能够被正确高亮 */+#ai-input-textarea.driver-highlighted-element {+ border: 3px solid #733dec !important;+ background-color: rgba(115, 61, 236, 0.05) !important;+}++.driver-overlay {+ background: rgba(0, 0, 0, 0.6) !important;+ backdrop-filter: blur(2px) !important;+}\ No newline at end of filediff --git a/project/web/src/app/i18n/locales/en/home.json b/project/web/src/app/i18n/locales/en/home.jsonindex a6abe554..97bf274a 100644--- a/project/web/src/app/i18n/locales/en/home.json+++ b/project/web/src/app/i18n/locales/en/home.json@@ -54,7 +54,114 @@"completed": "Completed!","failed": "Failed","cancelled": "Cancelled"- }+ },+ "channelAuthRequired": "Please add and authorize a channel first",+ "channelAuthExpired": "Channel authorization has expired, please reauthorize",+ "channelNotSupported": "Direct publishing is not supported for this platform",+ "taskStopped": "Generation stopped",+ "stopTaskFailed": "Failed to stop task",+ "newConversation": "New conversation started",+ "generatingWarning": "Generation in progress, please stop the current task first",+ "conversationId": "Conversation ID",+ "startNewConversation": "Start New Conversation",+ "aiGenerationProcess": "AI Generation Process",+ "waitingAiResponse": "Waiting for AI response...",+ "uploadImage": "Upload Image",+ "removeImage": "Remove Image",+ "agentMode": "Agent Mode",+ "imageGeneration": "Image Generation",+ "videoGeneration": "Video Generation",+ "draftBox": "Draft Box",+ "batchPublish": "Batch Publish",+ "stopGeneration": "Stop Generation",+ "sendMessage": "Send Message",+ "inspirationPrompt": "Got inspiration? Start creating with one sentence",+ "onboardingTitle": "Don't know how to start creating?",+ "onboardingDescription": "Start creating with one sentence",+ "gotIt": "Got it",+ "saveDraftFailed": "Failed to save draft",+ "saveDraftSuccess": "Draft saved successfully",+ "noDraftGroupFound": "No available draft group found, please create a group first",+ "noDraftGroup": "No available draft group found",+ "unknownError": "Unknown error",+ "needAddChannel": "Need to Add Channel",+ "channelNotAdded": "We detected that you haven't added the {platform} channel yet. Would you like to add it?",+ "goAdd": "Go Add",+ "cancel": "Cancel",+ "channelAuthExpiredTitle": "Channel Authorization Expired",+ "channelAuthExpiredContent": "Your channel authorization has expired. Would you like to reauthorize?",+ "reauthorize": "Reauthorize",+ "needLoginChannel": "Need to Login Channel",+ "needLogin": "Need to Login",+ "pleaseLoginChannel": "Please login to this channel account first",+ "goLogin": "Go Login",+ "platformRequiresPlugin": "This platform requires plugin publishing, please authorize the plugin first",+ "needAuthorizePlugin": "Need to Authorize Plugin",+ "pluginAuthorizeDescription": "This platform requires plugin publishing, please click here to authorize the plugin",+ "noAccountFound": "No account found for this platform, please add an account first",+ "publishTaskSubmitted": "Publish task submitted to plugin",+ "publishingViaPlugin": "Publishing via plugin...",+ "pluginPublishFailed": "Plugin publish failed"+ },+ "plugin": {+ "platformNeedsPlugin": "This platform requires plugin publishing, please authorize the plugin first",+ "authorizePluginTitle": "Need to Authorize Plugin",+ "authorizePluginDescription": "This platform requires plugin publishing, please click here to authorize the plugin",+ "noAccountFound": "No account found for this platform, please add an account first",+ "publishTaskSubmitted": "Publish task submitted to plugin",+ "publishingViaPlugin": "Publishing via plugin...",+ "publishFailed": "Plugin publish failed"+ },+ "status": {+ "generatingInProcess": "Generation in progress, please stop the current task first",+ "stopGenerating": "Stop Generation",+ "sendMessage": "Send Message"+ },+ "messages": {+ "generatingInProcessStopFirst": "Generation in progress, please stop the current task first",+ "newConversationStarted": "New conversation started",+ "draftSavedSuccessfully": "Draft saved successfully",+ "saveDraftFailed": "Failed to save draft",+ "noDraftGroupFound": "No available draft group found, please create a group first",+ "createDraftGroupFirst": "No available draft group found"+ },+ "platformNames": {+ "douyin": "Douyin",+ "xhs": "Xiaohongshu",+ "wxSph": "WeChat Channels",+ "KWAI": "Kwai",+ "youtube": "YouTube",+ "wxGzh": "WeChat Official Account",+ "bilibili": "Bilibili",+ "twitter": "Twitter",+ "tiktok": "TikTok",+ "facebook": "Facebook",+ "instagram": "Instagram",+ "threads": "Threads",+ "pinterest": "Pinterest",+ "linkedin": "LinkedIn"+ },+ "channel": {+ "addChannelRequiredTitle": "Need to Add Channel",+ "addChannelRequiredContent": "We detected that you haven't added the {platform} channel yet. Would you like to add it?",+ "goToAdd": "Go Add",+ "authExpiredTitle": "Channel Authorization Expired",+ "authExpiredContent": "Your channel authorization has expired. Would you like to reauthorize?",+ "reauthorize": "Reauthorize",+ "loginRequiredTitle": "Need to Login Channel",+ "loginRequiredContent": "Please login to this channel account first",+ "goToLogin": "Go Login"+ },+ "guide": {+ "aiInputTitle": "Don't know how to start creating?",+ "aiInputDescription": "Start creating with one sentence"+ },+ "download": {+ "downloadNow": "Download Now"+ },+ "wechat": {+ "officialAccount": "WeChat Official Account",+ "communityOfficialAccount": "Community Official Account"},"brandBar": {"title": "Supported Social Media Platforms"diff --git a/project/web/src/app/i18n/locales/en/promptGallery.json b/project/web/src/app/i18n/locales/en/promptGallery.jsonindex c7caa0ff..e7357cc2 100644--- a/project/web/src/app/i18n/locales/en/promptGallery.json+++ b/project/web/src/app/i18n/locales/en/promptGallery.json@@ -15,6 +15,12 @@"badges": {"edit": "Edit","generate": "Text to Image"+ },+ "filters": {+ "all": "All",+ "generate": "Text to Image",+ "edit": "Image Edit",+ "searchPlaceholder": "Search title..."}}diff --git a/project/web/src/app/i18n/locales/zh-CN/home.json b/project/web/src/app/i18n/locales/zh-CN/home.jsonindex 38d89352..acfd9d36 100644--- a/project/web/src/app/i18n/locales/zh-CN/home.json+++ b/project/web/src/app/i18n/locales/zh-CN/home.json@@ -53,7 +53,114 @@"completed": "生成完成!","failed": "生成失败","cancelled": "已取消"- }+ },+ "channelAuthRequired": "请先添加并授权频道",+ "channelAuthExpired": "频道授权已过期,请重新授权",+ "channelNotSupported": "该平台暂不支持直接发布",+ "taskStopped": "已停止生成",+ "stopTaskFailed": "停止任务失败",+ "newConversation": "已开启新对话",+ "generatingWarning": "正在生成中,请先停止当前任务",+ "conversationId": "对话ID",+ "startNewConversation": "开启新对话",+ "aiGenerationProcess": "AI 生成过程",+ "waitingAiResponse": "等待 AI 响应...",+ "uploadImage": "上传图片",+ "removeImage": "移除图片",+ "agentMode": "Agent 模式",+ "imageGeneration": "图片生成",+ "videoGeneration": "视频生成",+ "draftBox": "草稿箱",+ "batchPublish": "批次发布",+ "stopGeneration": "停止生成",+ "sendMessage": "发送消息",+ "inspirationPrompt": "灵感来了?一句话帮你开始创作",+ "onboardingTitle": "想要创作不知道如何下手?",+ "onboardingDescription": "一句话帮你创作",+ "gotIt": "知道了",+ "saveDraftFailed": "保存草稿失败",+ "saveDraftSuccess": "草稿保存成功",+ "noDraftGroupFound": "未找到可用的草稿分组,请先创建分组",+ "noDraftGroup": "未找到可用的草稿分组",+ "unknownError": "未知错误",+ "needAddChannel": "需要添加频道",+ "channelNotAdded": "检测到您还没有添加{platform}频道,是否前往添加?",+ "goAdd": "去添加",+ "cancel": "取消",+ "channelAuthExpiredTitle": "频道授权已过期",+ "channelAuthExpiredContent": "您的频道授权已过期,是否重新授权?",+ "reauthorize": "重新授权",+ "needLoginChannel": "需要登录频道",+ "needLogin": "需要登录",+ "pleaseLoginChannel": "请先登录该频道账号",+ "goLogin": "去登录",+ "platformRequiresPlugin": "该平台需要使用插件发布,请先授权插件",+ "needAuthorizePlugin": "需要授权插件",+ "pluginAuthorizeDescription": "该平台需要使用插件发布,请点击这里授权插件",+ "noAccountFound": "未找到该平台的账号,请先添加账号",+ "publishTaskSubmitted": "发布任务已提交到插件",+ "publishingViaPlugin": "正在通过插件发布...",+ "pluginPublishFailed": "插件发布失败"+ },+ "plugin": {+ "platformNeedsPlugin": "该平台需要使用插件发布,请先授权插件",+ "authorizePluginTitle": "需要授权插件",+ "authorizePluginDescription": "该平台需要使用插件发布,请点击这里授权插件",+ "noAccountFound": "未找到该平台的账号,请先添加账号",+ "publishTaskSubmitted": "发布任务已提交到插件",+ "publishingViaPlugin": "正在通过插件发布...",+ "publishFailed": "插件发布失败"+ },+ "status": {+ "generatingInProcess": "正在生成中,请先停止当前任务",+ "stopGenerating": "停止生成",+ "sendMessage": "发送消息"+ },+ "messages": {+ "generatingInProcessStopFirst": "正在生成中,请先停止当前任务",+ "newConversationStarted": "已开启新对话",+ "draftSavedSuccessfully": "草稿保存成功",+ "saveDraftFailed": "保存草稿失败",+ "noDraftGroupFound": "未找到可用的草稿分组,请先创建分组",+ "createDraftGroupFirst": "未找到可用的草稿分组"+ },+ "platformNames": {+ "douyin": "抖音",+ "xhs": "小红书",+ "wxSph": "微信视频号",+ "KWAI": "快手",+ "youtube": "YouTube",+ "wxGzh": "微信公众号",+ "bilibili": "B站",+ "twitter": "Twitter",+ "tiktok": "TikTok",+ "facebook": "Facebook",+ "instagram": "Instagram",+ "threads": "Threads",+ "pinterest": "Pinterest",+ "linkedin": "LinkedIn"+ },+ "channel": {+ "addChannelRequiredTitle": "需要添加频道",+ "addChannelRequiredContent": "检测到您还没有添加{platform}频道,是否前往添加?",+ "goToAdd": "去添加",+ "authExpiredTitle": "频道授权已过期",+ "authExpiredContent": "您的频道授权已过期,是否重新授权?",+ "reauthorize": "重新授权",+ "loginRequiredTitle": "需要登录频道",+ "loginRequiredContent": "请先登录该频道账号",+ "goToLogin": "去登录"+ },+ "guide": {+ "aiInputTitle": "想要创作不知道如何下手?",+ "aiInputDescription": "一句话帮你创作"+ },+ "download": {+ "downloadNow": "立即下载"+ },+ "wechat": {+ "officialAccount": "微信公众号",+ "communityOfficialAccount": "社区公众号"},"brandBar": {"title": "支持的社交媒体平台"diff --git a/project/web/src/app/i18n/locales/zh-CN/promptGallery.json b/project/web/src/app/i18n/locales/zh-CN/promptGallery.jsonindex 9b34d0ce..c917691c 100644--- a/project/web/src/app/i18n/locales/zh-CN/promptGallery.json+++ b/project/web/src/app/i18n/locales/zh-CN/promptGallery.json@@ -15,6 +15,12 @@"badges": {"edit": "编辑","generate": "文生图"+ },+ "filters": {+ "all": "全部",+ "generate": "文生图",+ "edit": "图片编辑",+ "searchPlaceholder": "搜索标题..."}}diff --git a/project/web/src/app/layout/HomeHeader.tsx b/project/web/src/app/layout/HomeHeader.tsxindex c2974b7c..19f44b27 100644--- a/project/web/src/app/layout/HomeHeader.tsx+++ b/project/web/src/app/layout/HomeHeader.tsx@@ -1,6 +1,6 @@import type { ForwardedRef } from 'react'-import { CloseOutlined, DownOutlined, MenuOutlined } from '@ant-design/icons'-import { Button, Dropdown } from 'antd'+import { ApiOutlined, CloseOutlined, DownOutlined, MenuOutlined } from '@ant-design/icons'+import { Button, Dropdown, Tooltip } from 'antd'import type { MenuProps } from 'antd'import Image from 'next/image'import Link from 'next/link'@@ -12,6 +12,8 @@ import { removeLocalePrefix } from '@/app/layout/layout.utils'import { homeHeaderRouterData, type HomeHeaderRouterItem } from '@/app/layout/routerData'import logo from '@/assets/images/logo.png'import LanguageSwitcher from '@/components/common/LanguageSwitcher'+import { PluginStatusModal, usePluginStore } from '@/store/plugin'+import { PluginStatus } from '@/store/plugin/types/baseTypes'import { useUserStore } from '@/store/user'export interface IHomeHeaderRef { }@@ -22,10 +24,39 @@ const HomeHeader = memo(forwardRef((_: IHomeHeaderProps, ref: ForwardedRef<IHomeHeaderRef>) => {const pathname = usePathname()const { t } = useTransClient('home')+ const { t: tPlugin } = useTransClient('plugin')const router = useRouter()const userStore = useUserStore()const currentPath = removeLocalePrefix(pathname).replace(/\/+$/, '') || '/'const [isMobileMenuOpen, setIsMobileMenuOpen] = useState(false)+ const [pluginModalVisible, setPluginModalVisible] = useState(false)++ // 插件状态+ const pluginStatus = usePluginStore(state => state.status)+ const isPluginReady = pluginStatus === PluginStatus.READY+ const isPluginInstalled = pluginStatus === PluginStatus.INSTALLED_NO_PERMISSION++ /**+ * 获取插件图标颜色+ */+ const getPluginIconColor = () => {+ if (isPluginReady)+ return '#a66ae4' // 主题色+ if (isPluginInstalled)+ return '#f59e0b' // 警告色+ return '#bfbfbf' // 灰色+ }++ /**+ * 获取插件状态提示文字+ */+ const getPluginTooltip = () => {+ if (isPluginReady)+ return tPlugin('status.ready')+ if (isPluginInstalled)+ return tPlugin('status.installedNoPermission')+ return tPlugin('status.notInstalled')+ }/*** 切换移动端菜单显示状态@@ -133,6 +164,24 @@ const HomeHeader = memo(size="small"/>+ {/* 插件状态图标 */}+ <Tooltip title={getPluginTooltip()}>+ <Button+ type="text"+ icon={(+ <ApiOutlined+ style={{+ fontSize: 18,+ color: getPluginIconColor(),+ }}+ />+ )}+ onClick={() => setPluginModalVisible(true)}+ style={{ padding: '4px 8px' }}+ data-driver-target="plugin-button"+ />+ </Tooltip>+{/* 移动端菜单按钮 */}<buttonclassName={styles.mobileMenuButton}@@ -223,6 +272,12 @@ const HomeHeader = memo(/></div></div>++ {/* 插件状态弹窗 */}+ <PluginStatusModal+ visible={pluginModalVisible}+ onClose={() => setPluginModalVisible(false)}+ /></>)}),diff --git a/project/web/src/assets/images/jimengangent.jpeg b/project/web/src/assets/images/jimengangent.jpegnew file mode 100644index 00000000..62429187Binary files /dev/null and b/project/web/src/assets/images/jimengangent.jpeg differdiff --git a/project/web/src/assets/images/jimengdongzuo.jpeg b/project/web/src/assets/images/jimengdongzuo.jpegnew file mode 100644index 00000000..47e6cf28Binary files /dev/null and b/project/web/src/assets/images/jimengdongzuo.jpeg differdiff --git a/project/web/src/assets/images/jimengshengshipin.jpeg b/project/web/src/assets/images/jimengshengshipin.jpegnew file mode 100644index 00000000..f8749e4fBinary files /dev/null and b/project/web/src/assets/images/jimengshengshipin.jpeg differdiff --git a/project/web/src/assets/images/jimengshengtu.jpeg b/project/web/src/assets/images/jimengshengtu.jpegnew file mode 100644index 00000000..40dc16a0Binary files /dev/null and b/project/web/src/assets/images/jimengshengtu.jpeg differdiff --git a/project/web/src/assets/images/jimengshuziren.jpeg b/project/web/src/assets/images/jimengshuziren.jpegnew file mode 100644index 00000000..1d8a8ec6Binary files /dev/null and b/project/web/src/assets/images/jimengshuziren.jpeg differdiff --git a/project/web/src/components/LoginModal/index.tsx b/project/web/src/components/LoginModal/index.tsxnew file mode 100644index 00000000..696b62c6--- /dev/null+++ b/project/web/src/components/LoginModal/index.tsx@@ -0,0 +1,253 @@+'use client'++import { GoogleLogin } from '@react-oauth/google'+import { Button, Form, Input, message, Modal } from 'antd'+import { useParams } from 'next/navigation'+import { useState } from 'react'+import {+ googleLoginApi,+ loginWithMailApi,+ mailRegistApi,+} from '@/api/apiReq'+import { useTransClient } from '@/app/i18n/client'+import { useUserStore } from '@/store/user'+import loginStyles from '@/app/[lng]/login/login.module.css'++interface LoginModalProps {+ open: boolean+ onCancel: () => void+ onSuccess?: () => void // 登录成功后的回调+}++export default function LoginModal({ open, onCancel, onSuccess }: LoginModalProps) {+ const { t: tLogin } = useTransClient('login')+ const { lng } = useParams()+ const { setToken, setUserInfo } = useUserStore()++ const [loginEmail, setLoginEmail] = useState('')+ const [loginPassword, setLoginPassword] = useState('')+ const [isModalOpen, setIsModalOpen] = useState(false)+ const [registCode, setRegistCode] = useState('')+ const [loginForm] = Form.useForm()+ const [isActivating, setIsActivating] = useState(false)++ const handleLoginSubmit = async (e: React.FormEvent) => {+ e.preventDefault()+ try {+ const response = await loginWithMailApi({ mail: loginEmail, password: loginPassword })+ if (!response) return++ if (response.code === 0) {+ if (response.data.type === 'regist') {+ // User not registered, show registration modal+ setRegistCode(response.data.code || '')+ loginForm.setFieldsValue({ password: loginPassword })+ setIsModalOpen(true)+ } else if (response.data.token) {+ // Login successful+ setToken(response.data.token)+ if (response.data.userInfo) {+ setUserInfo(response.data.userInfo)+ }+ message.success(tLogin('loginSuccess'))+ onCancel()+ onSuccess?.()+ }+ } else {+ message.error(response.message || tLogin('loginFailed'))+ }+ } catch (error) {+ message.error(tLogin('loginError'))+ }+ }++ const handleRegistSubmit = async (values: { password: string, code: string, inviteCode?: string }) => {+ try {+ setIsActivating(true)+ const response = await mailRegistApi({+ mail: loginEmail,+ code: values.code,+ password: values.password,+ inviteCode: values.inviteCode || '',+ })++ if (!response) {+ message.error(tLogin('registerError'))+ setIsActivating(false)+ return+ }++ if (response.code === 0 && response.data.token) {+ setIsActivating(false)+ setIsModalOpen(false)+ loginForm.resetFields()+ setToken(response.data.token)+ if (response.data.userInfo) {+ setUserInfo(response.data.userInfo)+ }+ message.success(tLogin('registerSuccess'))+ onCancel()+ onSuccess?.()+ } else {+ message.error(response.message || tLogin('registerError'))+ setIsActivating(false)+ }+ } catch (error) {+ message.error(tLogin('registerError'))+ setIsActivating(false)+ }+ }++ const handleGoogleSuccess = async (credentialResponse: any) => {+ try {+ const params: any = {+ platform: 'google',+ clientId: credentialResponse.clientId,+ credential: credentialResponse.credential,+ }++ const response: any = await googleLoginApi(params)+ if (!response) {+ message.error(tLogin('googleLoginFailed'))+ return+ }++ if (response.code === 0 && response.data.type === 'login') {+ setToken(response.data.token)+ if (response.data.userInfo) {+ setUserInfo(response.data.userInfo)+ }+ message.success(tLogin('loginSuccess'))+ onCancel()+ onSuccess?.()+ } else {+ message.error(response.message || tLogin('googleLoginFailed'))+ }+ } catch (error) {+ message.error(tLogin('googleLoginFailed'))+ }+ }++ return (+ <>+ <Modal+ open={open}+ onCancel={onCancel}+ footer={null}+ width={460}+ centered+ destroyOnClose+ >+ <div className={loginStyles.loginBox} style={{ boxShadow: 'none', padding: '24px 0' }}>+ <h1 className={loginStyles.title}>{tLogin('welcomeBack')}</h1>+ <form onSubmit={handleLoginSubmit} className={loginStyles.form}>+ <div className={loginStyles.inputGroup}>+ <input+ type="email"+ placeholder={tLogin('emailPlaceholder')}+ value={loginEmail}+ onChange={e => setLoginEmail(e.target.value)}+ className={loginStyles.input}+ required+ />+ </div>+ <div className={loginStyles.inputGroup}>+ <input+ type="password"+ placeholder={tLogin('passwordPlaceholder')}+ value={loginPassword}+ onChange={e => setLoginPassword(e.target.value)}+ className={loginStyles.input}+ required+ />+ </div>+ <Button type="primary" htmlType="submit" block className={loginStyles.submitButton}>+ {tLogin('login')}+ </Button>+ </form>++ <div className={loginStyles.divider}>+ <span>{tLogin('or')}</span>+ </div>++ <div className={loginStyles.googleButtonWrapper}>+ <GoogleLogin+ onSuccess={handleGoogleSuccess}+ onError={() => message.error(tLogin('googleLoginFailed'))}+ useOneTap={false}+ theme="outline"+ shape="rectangular"+ text="signin_with"+ locale={lng === 'zh-CN' ? 'zh_CN' : 'en'}+ width="100%"+ size="large"+ />+ </div>+ </div>+ </Modal>++ {/* Registration Modal */}+ <Modal+ title={tLogin('completeRegistration')}+ open={isModalOpen}+ onCancel={() => {+ setIsModalOpen(false)+ setIsActivating(false)+ loginForm.resetFields()+ }}+ maskClosable={false}+ keyboard={false}+ closable={true}+ footer={null}+ className={loginStyles.modalWrapper}+ >+ <Form+ form={loginForm}+ onFinish={handleRegistSubmit}+ layout="vertical"+ >+ <Form.Item+ label={tLogin('emailCode')}+ name="code"+ rules={[+ { required: true, message: tLogin('emailCodeRequired') },+ { len: 6, message: tLogin('emailCodeLength') },+ ]}+ >+ <Input placeholder={tLogin('enterEmailCode')} maxLength={6} />+ </Form.Item>++ <Form.Item+ label={tLogin('setPassword')}+ name="password"+ rules={[+ { required: true, message: tLogin('passwordRequired') },+ { min: 6, message: tLogin('passwordMinLength') },+ ]}+ >+ <Input.Password placeholder={tLogin('enterPassword')} />+ </Form.Item>++ <Form.Item+ label={tLogin('inviteCode')}+ name="inviteCode"+ >+ <Input placeholder={tLogin('enterInviteCode')} />+ </Form.Item>++ <Form.Item>+ <Button+ type="primary"+ htmlType="submit"+ block+ loading={isActivating}+ >+ {isActivating ? tLogin('registering') : tLogin('completeRegistration')}+ </Button>+ </Form.Item>+ </Form>+ </Modal>+ </>+ )+}+diff --git a/project/web/src/components/PublishDialog/compoents/PubParmasTextarea/PubParmasMentionInput/index.tsx b/project/web/src/components/PublishDialog/compoents/PubParmasTextarea/PubParmasMentionInput/index.tsxindex b3cad9ee..aea1311c 100644--- a/project/web/src/components/PublishDialog/compoents/PubParmasTextarea/PubParmasMentionInput/index.tsx+++ b/project/web/src/components/PublishDialog/compoents/PubParmasTextarea/PubParmasMentionInput/index.tsx@@ -7,6 +7,8 @@ import type { EditorState, LexicalEditor } from 'lexical'import {ForwardedRef, useEffect,} from 'react'+import { driver } from 'driver.js'+import 'driver.js/dist/driver.css'import { AutoFocusPlugin } from '@lexical/react/LexicalAutoFocusPlugin'import {LexicalComposer,@@ -73,6 +75,7 @@ const PubParmasMentionInput = memo(ref: ForwardedRef<IPubParmasMentionInputRef>,) => {const comboboxAnchor = useRef<HTMLDivElement>(null)+ const driverObjRef = useRef<ReturnType<typeof driver> | null>(null)// 用于防止循环更新:当编辑器内容变化时,记录最新值const isInternalChangeRef = useRef(false)@@ -103,6 +106,87 @@ const PubParmasMentionInput = memo([],)+ // 初始化新手引导 - 提示用户可以划词选择AI功能+ useEffect(() => {+ const hasSeenTextSelectionGuide = localStorage.getItem('hasSeenTextSelectionGuide')+ if (hasSeenTextSelectionGuide) return++ // 延迟显示,确保编辑器已渲染+ const timer = setTimeout(() => {+ // 查找编辑器元素,优先使用 ID,如果没有则通过类名查找+ let editorElement = document.getElementById('mention-input-editor') as HTMLElement+ if (!editorElement) {+ editorElement = document.querySelector('.mentionsContentEditable[contenteditable="true"]') as HTMLElement+ if (editorElement && !editorElement.id) {+ editorElement.id = 'mention-input-editor'+ }+ }+ if (!editorElement) return++ const driverObj = driver({+ showProgress: false,+ showButtons: ['next'],+ nextBtnText: '知道了',+ doneBtnText: '知道了',+ popoverOffset: 10,+ stagePadding: 4,+ stageRadius: 12,+ allowClose: true,+ smoothScroll: true,+ steps: [+ {+ element: '#mention-input-editor',+ popover: {+ title: '文本选择功能',+ description: '输入文案后可以划词选择文案选择AI功能',+ side: 'top',+ align: 'start',+ onPopoverRender: () => {+ setTimeout(() => {+ const nextBtn = document.querySelector('.driver-popover-next-btn') as HTMLButtonElement+ const doneBtn = document.querySelector('.driver-popover-done-btn') as HTMLButtonElement+ const btn = nextBtn || doneBtn+ if (btn) {+ btn.textContent = '知道了'+ const handleClick = (e: MouseEvent) => {+ e.preventDefault()+ e.stopPropagation()+ driverObj.destroy()+ localStorage.setItem('hasSeenTextSelectionGuide', 'true')+ btn.removeEventListener('click', handleClick)+ }+ btn.addEventListener('click', handleClick)+ }+ }, 50)+ },+ },+ },+ ],+ onNextClick: () => {+ driverObj.destroy()+ localStorage.setItem('hasSeenTextSelectionGuide', 'true')+ return false+ },+ onDestroyStarted: () => {+ localStorage.setItem('hasSeenTextSelectionGuide', 'true')+ },+ onDestroyed: () => {+ localStorage.setItem('hasSeenTextSelectionGuide', 'true')+ },+ })++ driverObjRef.current = driverObj+ driverObj.drive()+ }, 1500)++ return () => {+ clearTimeout(timer)+ if (driverObjRef.current) {+ driverObjRef.current.destroy()+ }+ }+ }, [])+// @ts-ignoreconst beautifulMentionsProps: any = {comboboxAnchor: comboboxAnchor.current,@@ -127,6 +211,7 @@ const PubParmasMentionInput = memo(<RichTextPlugincontentEditable={(<ContentEditable+ id="mention-input-editor"className={styles.mentionsContentEditable}style={{ tabSize: 1 }}/>diff --git a/project/web/src/components/common/DownloadAppModal.tsx b/project/web/src/components/common/DownloadAppModal.tsxindex ab219bba..2ea4ecf4 100644--- a/project/web/src/components/common/DownloadAppModal.tsx+++ b/project/web/src/components/common/DownloadAppModal.tsx@@ -111,8 +111,8 @@ const DownloadAppModal: React.FC<DownloadAppModalProps> = ({src={qrCodeUrl}alt="QR Code"style={{- width: 120,- height: 120,+ width: 200,+ height: 200,borderRadius: '8px',boxShadow: '0 2px 8px rgba(0,0,0,0.1)',}}@@ -121,12 +121,14 @@ const DownloadAppModal: React.FC<DownloadAppModalProps> = ({: (<QRCodevalue={downloadUrl || getMainAppDownloadUrlSync()}- size={120}+ size={200}logoImage={logo.src}- logoWidth={30}- logoHeight={30}- logoOpacity={0.8}- qrStyle="squares"+ logoWidth={20}+ logoHeight={20}+ logoPadding={5}+ logoPaddingStyle="square"+ logoOpacity={0.95}+ qrStyle="dots"eyeRadius={0}style={{ borderRadius: '8px' }}/>diff --git a/project/web/src/store/plugin/components/PluginStatusModal.tsx b/project/web/src/store/plugin/components/PluginStatusModal.tsxindex b62135c1..2830b30c 100644--- a/project/web/src/store/plugin/components/PluginStatusModal.tsx+++ b/project/web/src/store/plugin/components/PluginStatusModal.tsx@@ -35,6 +35,9 @@ export interface PluginStatusModalProps {/** 关闭回调 */onClose: () => void++ /** 需要高亮的平台 */+ highlightPlatform?: string | null}/**@@ -50,7 +53,7 @@ function getPlatformName(platform: PluginPlatformType): string {/*** 插件状态弹框组件*/-export function PluginStatusModal({ visible, onClose }: PluginStatusModalProps) {+export function PluginStatusModal({ visible, onClose, highlightPlatform }: PluginStatusModalProps) {const { t } = useTranslation('plugin')const status = usePluginStore(state => state.status)const platformAccounts = usePluginStore(state => state.platformAccounts)@@ -169,11 +172,19 @@ export function PluginStatusModal({ visible, onClose }: PluginStatusModalProps)const account = platformAccounts[platform]const isLogging = loginLoading === platform+ // 判断是否需要高亮+ const shouldHighlight = highlightPlatform && highlightPlatform.toLowerCase() === platform.toLowerCase()+return (<Cardkey={platform}size="small"- className={styles.platformCard}+ className={`${styles.platformCard} ${shouldHighlight ? styles.platformCardHighlight : ''}`}+ style={shouldHighlight ? {+ border: '2px solid #a66ae4',+ boxShadow: '0 0 12px rgba(166, 106, 228, 0.3)',+ animation: 'pulse 2s ease-in-out infinite'+ } : undefined}><div className={styles.platformInfo}><div className={styles.platformLeft}>diff --git a/project/web/src/store/plugin/store.ts b/project/web/src/store/plugin/store.tsindex 9a722e09..a8568668 100644--- a/project/web/src/store/plugin/store.ts+++ b/project/web/src/store/plugin/store.ts@@ -46,6 +46,23 @@ export interface PluginPublishItem {params: IPubParams}+/**+ * 单个平台发布进度事件(扩展 ProgressEvent,附带账号信息)+ */+export interface PlatformProgressEvent extends ProgressEvent {+ /** 账号ID */+ accountId: string+ /** 平台类型 */+ platform: PluginPlatformType+ /** 请求ID */+ requestId: string+}++/**+ * 发布进度回调类型+ */+export type ExecuteProgressCallback = (event: PlatformProgressEvent) => void+/*** 执行插件发布的参数*/@@ -56,6 +73,8 @@ export interface ExecutePluginPublishParams {platformTaskIdMap: Map<string, string>/** 发布时间(ISO 格式字符串,可选,不传则立即发布) */publishTime?: string+ /** 发布进度回调(可选,每个平台发布时都会触发) */+ onProgress?: ExecuteProgressCallback/** 发布完成后的回调(可选) */onComplete?: () => void}@@ -627,7 +646,7 @@ export const usePluginStore = create(* @returns Promise<void>*/async executePluginPublish(params: ExecutePluginPublishParams): Promise<void> {- const { items, platformTaskIdMap, publishTime, onComplete } = params+ const { items, platformTaskIdMap, publishTime, onProgress, onComplete } = params// 并行执行插件发布(不等待,同时发布多个平台)const publishTasks = items.map(async (item) => {@@ -641,6 +660,17 @@ export const usePluginStore = create(return}+ // 触发初始进度回调+ onProgress?.({+ stage: 'download',+ progress: 0,+ message: '准备发布...',+ timestamp: Date.now(),+ accountId,+ platform,+ requestId,+ })+// 更新任务状态为发布中methods.updatePlatformTaskByRequestId(requestId, {status: PlatformTaskStatus.PUBLISHING,@@ -706,6 +736,14 @@ export const usePluginStore = create(methods.updatePlatformTaskByRequestId(requestId, {progress,})++ // 触发外部进度回调+ onProgress?.({+ ...progress,+ accountId,+ platform,+ requestId,+ })})// 发布成功,更新任务状态@@ -719,6 +757,21 @@ export const usePluginStore = create(endTime: Date.now(),})+ // 触发成功进度回调+ onProgress?.({+ stage: 'complete',+ progress: 100,+ message: '发布成功',+ timestamp: Date.now(),+ accountId,+ platform,+ requestId,+ data: {+ workId: result.workId,+ shareLink: result.shareLink,+ },+ })+// 发布成功后,创建发布记录try {await apiCreatePublishRecord({@@ -751,15 +804,31 @@ export const usePluginStore = create(}catch (error) {// 发布失败+ const errorMessage = error instanceof Error ? error.message : '发布失败'+methods.updatePlatformTaskByRequestId(requestId, {status: PlatformTaskStatus.ERROR,- error: error instanceof Error ? error.message : '发布失败',+ error: errorMessage,result: {success: false,- failReason: error instanceof Error ? error.message : '发布失败',+ failReason: errorMessage,},endTime: Date.now(),})++ // 触发失败进度回调+ onProgress?.({+ stage: 'error',+ progress: 0,+ message: errorMessage,+ timestamp: Date.now(),+ accountId,+ platform,+ requestId,+ data: {+ error: error instanceof Error ? error : new Error(errorMessage),+ },+ })}})diff --git a/project/web/src/utils/regulars.ts b/project/web/src/utils/regulars.tsindex fc6f7a73..e238be70 100644--- a/project/web/src/utils/regulars.ts+++ b/project/web/src/utils/regulars.ts@@ -8,3 +8,6 @@ export const phoneReg = /^(?:(?:\+|00)86)?1\d{10}$/// 邮箱验证export const emailReg= /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\])|(([a-z\-0-9]+\.)+[a-z]{2,}))$/i++// URL 链接验证(支持 http://, https:// 开头的完整 URL,或域名格式)+export const urlReg = /^(https?:\/\/)?([\da-z\.-]+)\.([a-z\.]{2,6})([\/\w \.-]*)*\/?(\?[^\s]*)?(\#[^\s]*)?$/i\ No newline at end of filediff --git a/project/web/src/utils/request.ts b/project/web/src/utils/request.tsindex ef46d2cb..0162226b 100644--- a/project/web/src/utils/request.ts+++ b/project/web/src/utils/request.ts@@ -59,12 +59,20 @@ export async function request<T>(params: RequestParamsWithSilent) {// 未登录拦截if (data.code === 401 && !useUserStore.getState().token) {+ // 如果是 silent 模式,返回完整响应以便调用方处理+ if (params.silent) {+ return data+ }return null}// 已登录、但是登录过期if (data.code === 401) {useUserStore.getState().logout()+ // 如果是 silent 模式,返回完整响应以便调用方处理+ if (params.silent) {+ return data+ }}if (data.code !== 0) {@@ -75,6 +83,10 @@ export async function request<T>(params: RequestParamsWithSilent) {duration: 6,})}+ // 如果是 silent 模式,返回完整响应以便调用方处理+ if (params.silent) {+ return data+ }return null}