Add workflow sharing functionality (#371)

* Add workflow sharing feature with share, fork, and browse functionality

Co-authored-by: jxxghp <jxxghp@163.com>

* Refactor workflow page with dynamic tabs and internationalization support

Co-authored-by: jxxghp <jxxghp@163.com>

* Remove workflow share implementation documentation

Co-authored-by: jxxghp <jxxghp@163.com>

* Fix indentation and structure in Chinese locale files

Co-authored-by: jxxghp <jxxghp@163.com>

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
This commit is contained in:
jxxghp
2025-07-08 23:31:22 +08:00
committed by GitHub
co-authored by jxxghp Cursor Agent
parent f2bc832aca
commit 35332544e4
14 changed files with 876 additions and 27 deletions
+30
View File
@@ -329,6 +329,10 @@ export default {
share: 'Subscription Shares',
},
},
workflowTabs: {
list: 'Workflow',
share: 'Workflow Share',
},
pluginTabs: {
installed: 'My Plugins',
market: 'Plugin Market',
@@ -488,6 +492,7 @@ export default {
dragComponentHint: 'Drag component to canvas',
task: {
edit: 'Edit Task',
share: 'Share',
continue: 'Continue',
restart: 'Restart',
run: 'Run Now',
@@ -655,6 +660,19 @@ export default {
loadPluginSettingFailed: 'Failed to load plugin settings',
},
title: 'Workflow',
share: 'Workflow Share',
searchShares: 'Search Workflow Shares',
noShareData: 'No shared workflows',
sharer: 'Sharer',
timer: 'Timer',
actionCount: 'Action Count',
normalFork: 'Fork Workflow',
cancelShare: 'Cancel Share',
cancelSuccess: 'Share cancelled successfully',
cancelFailed: 'Failed to cancel share: {message}',
usageCount: 'Used {count} times',
addSuccess: 'Forked {name} successfully!',
addFailed: 'Failed to fork {name}: {message}',
noWorkflow: 'No Workflow',
noWorkflowDescription: 'Click the add button to create a workflow task.',
},
@@ -1730,6 +1748,18 @@ export default {
shareSuccess: '{name} shared successfully!',
shareFailed: '{name} share failed: {message}!',
},
workflowShare: {
shareWorkflow: 'Share Workflow',
title: 'Title',
description: 'Description',
descriptionHint:
'Add a description about this workflow. Actions and flows will be included in the share by default',
shareUser: 'Share User',
shareUserHint: "Sharer's nickname",
confirmShare: 'Confirm Share',
shareSuccess: '{name} shared successfully!',
shareFailed: '{name} share failed: {message}!',
},
u115Auth: {
loginTitle: '115 Cloud Login',
scanQrCode: 'Please scan with WeChat or 115 client',
+29
View File
@@ -328,6 +328,10 @@ export default {
share: '订阅分享',
},
},
workflowTabs: {
list: '工作流',
share: '工作流分享',
},
pluginTabs: {
installed: '我的插件',
market: '插件市场',
@@ -486,6 +490,7 @@ export default {
dragComponentHint: '拖动组件到画布',
task: {
edit: '编辑任务',
share: '分享',
continue: '继续执行',
restart: '重新执行',
run: '立即执行',
@@ -653,6 +658,19 @@ export default {
loadPluginSettingFailed: '加载插件设置失败',
},
title: '工作流',
share: '工作流分享',
searchShares: '搜索工作流分享',
noShareData: '暂无分享的工作流',
sharer: '分享人',
timer: '定时器',
actionCount: '动作数量',
normalFork: '复用工作流',
cancelShare: '取消分享',
cancelSuccess: '取消分享成功',
cancelFailed: '取消分享失败:{message}',
usageCount: '复用 {count} 次',
addSuccess: '复用 {name} 成功!',
addFailed: '复用 {name} 失败:{message}',
noWorkflow: '没有工作流',
noWorkflowDescription: '点击添加按钮创建工作流任务。',
},
@@ -1709,6 +1727,17 @@ export default {
shareSuccess: '{name} 分享成功!',
shareFailed: '{name} 分享失败:{message}',
},
workflowShare: {
shareWorkflow: '分享工作流',
title: '标题',
description: '说明',
descriptionHint: '填写关于该工作流的说明,工作流的动作和流程将会默认包含在分享中',
shareUser: '分享用户',
shareUserHint: '分享人的昵称',
confirmShare: '确认分享',
shareSuccess: '{name} 分享成功!',
shareFailed: '{name} 分享失败:{message}',
},
u115Auth: {
loginTitle: '115网盘登录',
scanQrCode: '请使用微信或115客户端扫码',
+29
View File
@@ -329,6 +329,10 @@ export default {
share: '訂閱分享',
},
},
workflowTabs: {
list: '工作流',
share: '工作流分享',
},
pluginTabs: {
installed: '我的插件',
market: '插件市場',
@@ -484,6 +488,7 @@ export default {
dragComponentHint: '拖曳組件到畫布',
task: {
edit: '編輯任務',
share: '分享',
continue: '繼續',
restart: '重新開始',
run: '立即執行',
@@ -651,6 +656,19 @@ export default {
loadPluginSettingFailed: '加載插件設置失敗',
},
title: '工作流',
share: '工作流分享',
searchShares: '搜索工作流分享',
noShareData: '暫無分享的工作流',
sharer: '分享人',
timer: '定時器',
actionCount: '動作數量',
normalFork: '復用工作流',
cancelShare: '取消分享',
cancelSuccess: '取消分享成功',
cancelFailed: '取消分享失敗:{message}',
usageCount: '復用 {count} 次',
addSuccess: '復用 {name} 成功!',
addFailed: '復用 {name} 失敗:{message}',
noWorkflow: '沒有工作流',
noWorkflowDescription: '點擊添加按鈕創建工作流任務。',
},
@@ -1708,6 +1726,17 @@ export default {
shareSuccess: '{name} 分享成功!',
shareFailed: '{name} 分享失敗:{message}',
},
workflowShare: {
shareWorkflow: '分享工作流',
title: '標題',
description: '說明',
descriptionHint: '填寫關於該工作流的說明,工作流的動作和流程將會默認包含在分享中',
shareUser: '分享用戶',
shareUserHint: '分享人的暱稱',
confirmShare: '確認分享',
shareSuccess: '{name} 分享成功!',
shareFailed: '{name} 分享失敗:{message}',
},
u115Auth: {
loginTitle: '115網盤登錄',
scanQrCode: '請使用微信或115客戶端掃碼',