-
Notifications
You must be signed in to change notification settings - Fork 180
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
feat: page material developer #455
Conversation
里程碑
|
…/page-material-developer
2f6e547
to
99a161b
Compare
流程应该跟之前的生成页面一直,有路由配置的功能。 |
template service 应该封装到 page service ,另外部分和 block service 共用的方法考虑能不能封装到 common service ,不需要实现两遍。 |
…/page-material-developer
"build-plugin-css-assets-local": "^0.1.0", | ||
"build-plugin-fusion": "^0.1.3", | ||
"build-plugin-moment-locales": "^0.1.0", | ||
"ice.js": "^1.0.0", | ||
"typescript": "^3.8.3" | ||
}, | ||
"dependencies": { | ||
"@alifd/next": "~1.19.2", | ||
"@alifd/next": "^1.20.28", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
为什么升级到了 1.20?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
没有刻意升级 应该是 npm run setup 的时候自动变的。
需要回溯到 1.19 吗
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
不要引入不必要的改动
packages/common-service/src/index.ts
Outdated
|
||
// TODO: 如果规定 templates 的类型为 IMaterialPage[] | IMaterialBlock[] | ||
// 则在 368 行会出现不兼容错误 ts 2349. | ||
export const bulkDownload = async function (templates: any, tmpPath: string, log?: (text: string) => void) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
参数名应该叫 materials
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
函数可命名为 bulkDownloadMaterials
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
函数命名没有改?
extensions/iceworks-ui-builder/web/src/pages/PageCreator/configForm.tsx
Outdated
Show resolved
Hide resolved
extensions/iceworks-ui-builder/web/src/pages/PageCreator/index.tsx
Outdated
Show resolved
Hide resolved
reviewed ,请检查所有未关闭的评论。 |
d9f3da4
to
6525e8c
Compare
6525e8c
to
0ab5e28
Compare
第二轮修改已经完成,请查收 |
* docs: update material-ui-builder doc * docs: update README.md
packages/block-service/src/index.ts
Outdated
}; | ||
|
||
/** | ||
* Download blocks code to page | ||
* Render blocks code to page |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个注释有问题,这里已经不是 render blocks to page 了
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个是在 block-service 插件里面的
大概流程是这个样子
-- block render
通用下载 --通用安装依赖
-- get schema -- page render(ejs)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
跟流程没啥关系,这里就是一个渲染区块到指定的文件夹。单个函数的职责是明确的,跟 page 没关系
No description provided.