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

Marklet v1.4 #19

Open
wants to merge 54 commits into
base: master
Choose a base branch
from
Open

Marklet v1.4 #19

wants to merge 54 commits into from

Conversation

shigma
Copy link
Collaborator

@shigma shigma commented Oct 31, 2018

v1.4 的大部分任务现已完成,包括下列内容:

  • 完整的 dev-server,能够与 client 进行数据交换,实现 watch,edit 功能
  • 简单的 project manager,能够观测目录内变化以及入口配置的变化并实时更新

下个版本计划的任务:

  • init 功能,从给定文件夹中初始化出索引并生成入口文件
  • build 功能,利用 vue-server-renderer 实现服务端渲染
  • 进一步优化 dev-server 的界面,结合索引渲染文件树,提供更加直接的新建,保存,重命名,删除等功能,实现 marklet 的语法上色

一些在合并前可以考虑完成的事务:

  • MarkletModel 中的 changedorigin 属性未实现
  • ContentManager 中应该与 localStorage 进行配合实现数据存取
  • switchTo 方法如果结合 history.pushState 会有更好的效果
  • 在 project 模式下实现多种路径访问 localhost 以查看不同的文件
  • 在 file 模式且无初始文件的情况下保存将自动生成 FileManager 实例(目前这种情况下是无法保存的

注意:合并前请手动发版!

npm run bootstrap
npm run build:prod
node build/publish cli dev-server marklet --minor --publish

shigma and others added 30 commits October 22, 2018 15:25
在 client 中暴露了一个全局变量 marklet,拥有 type, sourceType, config, vm 等属性,会通过 initialize.js 进行初始化
1. core updated to v3.2.4
2. update cli readme file
3. disallow server-client communication when filepath is absent
尝试增加了对层叠式菜单的支持
Focus on impl at present,
code style issues (such as oop) shall be postponed.
将 server 和 client 分离……
1. 将一些 API 更换了名称
2. 去除了 inject 的使用
3. 修改了 $menuManager 上 $ref 的实现
4. 解决了多次按 Alt 失效的问题
@shigma shigma added the version New version label Oct 31, 2018
@shigma shigma requested a review from jjyyxx October 31, 2018 13:30
Copy link
Member

@jjyyxx jjyyxx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
version New version
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants