Skip to content

Commit

Permalink
Merge pull request #1350 from alibaba/iceworks/release-2.15.3
Browse files Browse the repository at this point in the history
fix: create project buffix
  • Loading branch information
fenglai0802 committed Jan 18, 2019
2 parents 023e685 + 04628f9 commit 09a19e4
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tools/iceworks/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"productName": "Iceworks",
"private": true,
"description": "ICE Desktop Application.",
"version": "2.15.2",
"version": "2.15.3",
"author": {
"name": "Alibaba Group Holding Limited",
"url": "http://alibaba.github.io/ice"
Expand Down
5 changes: 5 additions & 0 deletions tools/iceworks/changelog/2.15.3.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"log": [
"修复:模板创建提示问题"
]
}
7 changes: 7 additions & 0 deletions tools/iceworks/changelog/changelog.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
[
{
"changelog": [
"修复:模板创建提示问题"
],
"releaseDate": "2019年01月17日",
"version": "2.15.3"
},
{
"changelog": [
"修复:初始化新建项目,推荐模板不可用"
Expand Down
8 changes: 4 additions & 4 deletions tools/iceworks/renderer/src/components/Scaffold/Item.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ class ScaffoldItem extends Component {
};

createProject = () => {
const { createProject, data = {} } = this.props;
const isOfficialSource = /ice\.alicdn\.com\/(pre-)?assets\/react-materials\.json/.test(
data.source
const { createProject, data = {}, scaffolds= {}, isOfficialSource = false } = this.props;
const isOfficialSrc = isOfficialSource || /ice\.alicdn\.com\/(pre-)?assets\/react-materials\.json/.test(
scaffolds.material.source
);
const hasIceScripts = data.builder === 'ice-scripts';

if (isOfficialSource) {
if (isOfficialSrc) {
if (hasIceScripts) {
createProject(data);
} else {
Expand Down
2 changes: 2 additions & 0 deletions tools/iceworks/renderer/src/components/StartPanel/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,13 @@ class StartPanel extends Component {
{scaffolds.length ? (
<div className="start-recommend-scaffolds">
{scaffolds.map((material, index) => {

return (
<ScaffoldItem
key={index}
createProject={this.props.handleSelectedScaffold}
data={material}
isOfficialSource={true}
/>
);
})}
Expand Down

0 comments on commit 09a19e4

Please sign in to comment.