Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
feat(asset-bundle): finish "generateAndDownloadSingleRAB" logic
add main test cases;
  • Loading branch information
yyc-git committed May 5, 2019
1 parent 75c226b commit c973ebf
Show file tree
Hide file tree
Showing 23 changed files with 733 additions and 116 deletions.
Binary file removed public/img/mat.jpg
Binary file not shown.
10 changes: 3 additions & 7 deletions src/core/atom_component/selectTree/SelectTree.re
Expand Up @@ -26,12 +26,6 @@ module Method = {
getValueNodeIconFunc(nodeData.type_, nodeData.value, editorState) getValueNodeIconFunc(nodeData.type_, nodeData.value, editorState)
}; };


let _getNodeName = node =>
switch (node) {
| FolderNode(_, nodeData, _) => nodeData.name
| ValueNode(_, nodeData) => nodeData.name
};

let rec _build = (allNodes, (getValueNodeIconFunc, toggleSelectFunc)) => let rec _build = (allNodes, (getValueNodeIconFunc, toggleSelectFunc)) =>
allNodes allNodes
/* |> _sortByName */ /* |> _sortByName */
Expand Down Expand Up @@ -65,7 +59,9 @@ module Method = {
| Some(icon) => <img src=icon className="treeNode-icon" /> | Some(icon) => <img src=icon className="treeNode-icon" />
} }
} }
<span> {DomHelper.textEl(_getNodeName(node))} </span> <span>
{DomHelper.textEl(NodeSelectTreeService.getNodeName(node))}
</span>
</li> </li>
{ {
ReasonReact.array( ReasonReact.array(
Expand Down

0 comments on commit c973ebf

Please sign in to comment.