Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Iceworks 3.x] 项目统一规范 #1865

Merged
merged 56 commits into from May 5, 2019
Merged

Conversation

@alvinhui
Copy link
Collaborator

alvinhui commented Apr 25, 2019

方案

工程及项目操作解耦

示例:

  1. 前端发起“开启调试”请求
  2. 服务端路由匹配
  3. 服务端控制器进行响应
  4. 项目操作器负责调度
  5. 具体的项目 adapter 负责启动调试服务

项目面板各插件的封装

以“页面列表”插件为例。

前端:

服务端:

梳理

项目相关能力

2.x Terminal 现状

前端渲染:

命令执行:

2.x 主进程与渲染进程通信

渲染进程的事件监听:

  • focus: 界面获得系统的焦点,即 iceworks 成为活动窗口时触发;
  • menu:project:console:toggle:切换运行日志窗口,由程序的菜单栏(项目 - 运行日志)触发;
  • router.push:跳去某个页面,由程序的菜单栏(iceworks - 设置)触发;
  • updater-message:程序需要更新,由自动升级检查触发;
  • update_project:更新项目信息,由项目启动调试的流程触发(告知渲染进程当前项目调试的状态:构建中/编译完成/运行中);
  • menu:project:clearall:删除所有项目,由程序的菜单栏(项目 - 清空列表)触发;
  • processTracking:进度条中打印状态,由创建页面的程序触发;
  • progressVisible:是否显示进度条,由创建页面的程序触发;
  • session:data:启动的子进程任务有日志输出(将会往 iceworks 的终端面板写入数据),由各种命令操作触发;
  • session:exit:启动的子进程退出(iceworks 的终端面板将会新起一行)。
@alvinhui alvinhui changed the title [Iceworks 3.x] 项目层操作规范 [WIP][Iceworks 3.x] 项目层操作规范 Apr 25, 2019
@alvinhui alvinhui changed the title [WIP][Iceworks 3.x] 项目层操作规范 [WIP][Iceworks 3.x] 项目统一规范 Apr 25, 2019
alvinhui added 8 commits Apr 25, 2019
@alvinhui alvinhui requested a review from chenbin92 Apr 28, 2019
alvinhui added 17 commits Apr 28, 2019
…rks/project-stand

# Conflicts:
#	packages/iceworks-server/package.json
#	packages/iceworks-server/src/app/controller/home.ts
#	packages/iceworks-server/src/config/config.default.ts
alvinhui added 6 commits May 5, 2019
@chenbin92 chenbin92 merged commit 1a92e00 into iceworks/release-3.x May 5, 2019
4 checks passed
4 checks passed
WIP Ready for review
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
continuous-integration/travis-ci/push The Travis CI build passed
Details
license/cla Contributor License Agreement is signed.
Details
@delete-merged-branch delete-merged-branch bot deleted the iceworks/project-stand branch May 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.