From edab8e9c532d99b3cffb52d8223ba0ff95aa4548 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=85=83=E5=BD=A6?= Date: Thu, 2 Nov 2017 01:40:49 -0500 Subject: [PATCH 0001/1028] Create README.md --- README.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000000..a1c8d0971a --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +# Ice Design From 1f2e5d941595586840105ecab15285ce402725bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=93=E5=87=8C?= Date: Wed, 3 Jan 2018 18:11:03 +0800 Subject: [PATCH 0002/1028] init: submit blocks --- .gitignore | 6 + lerna.json | 8 + package.json | 20 + .../blocks/ApplicationProgress/.editorconfig | 16 + .../blocks/ApplicationProgress/.eslintignore | 12 + .../blocks/ApplicationProgress/.eslintrc | 62 + .../blocks/ApplicationProgress/.gitignore | 13 + .../blocks/ApplicationProgress/README.md | 10 + .../ApplicationProgress/demo/index.html | 19 + .../blocks/ApplicationProgress/demo/index.js | 19 + .../blocks/ApplicationProgress/mock/api.json | 4 + .../blocks/ApplicationProgress/package.json | 51 + .../src/ApplicationProgress.jsx | 154 + .../src/ApplicationProgress.scss | 4 + .../blocks/ApplicationProgress/src/index.js | 3 + .../blocks/AreaStackChart/.editorconfig | 16 + .../blocks/AreaStackChart/.eslintignore | 12 + .../blocks/AreaStackChart/.eslintrc | 61 + .../blocks/AreaStackChart/.gitignore | 13 + .../blocks/AreaStackChart/README.md | 10 + .../blocks/AreaStackChart/demo/index.html | 19 + .../blocks/AreaStackChart/demo/index.js | 19 + .../AreaStackChart/lib/AreaStackChart.js | 80 + .../AreaStackChart/lib/AreaStackChart.scss | 5 + .../blocks/AreaStackChart/lib/index.js | 14 + .../blocks/AreaStackChart/mock/api.json | 4 + .../blocks/AreaStackChart/package.json | 57 + .../AreaStackChart/src/AreaStackChart.jsx | 68 + .../AreaStackChart/src/AreaStackChart.scss | 5 + .../blocks/AreaStackChart/src/index.js | 3 + .../blocks/ArticleList/.editorconfig | 16 + .../blocks/ArticleList/.eslintignore | 12 + .../ice-design/blocks/ArticleList/.eslintrc | 62 + .../ice-design/blocks/ArticleList/.gitignore | 13 + .../ice-design/blocks/ArticleList/README.md | 10 + .../blocks/ArticleList/demo/index.html | 19 + .../blocks/ArticleList/demo/index.js | 19 + .../blocks/ArticleList/mock/api.json | 4 + .../blocks/ArticleList/package.json | 53 + .../blocks/ArticleList/src/ArticleList.jsx | 136 + .../blocks/ArticleList/src/ArticleList.scss | 42 + .../blocks/ArticleList/src/index.js | 3 + .../blocks/BasicDetailInfo/.editorconfig | 16 + .../blocks/BasicDetailInfo/.eslintignore | 12 + .../blocks/BasicDetailInfo/.eslintrc | 62 + .../blocks/BasicDetailInfo/.gitignore | 13 + .../blocks/BasicDetailInfo/README.md | 10 + .../blocks/BasicDetailInfo/demo/index.html | 19 + .../blocks/BasicDetailInfo/demo/index.js | 19 + .../blocks/BasicDetailInfo/mock/api.json | 4 + .../blocks/BasicDetailInfo/package.json | 51 + .../BasicDetailInfo/src/BasicDetailInfo.jsx | 125 + .../BasicDetailInfo/src/BasicDetailInfo.scss | 32 + .../blocks/BasicDetailInfo/src/index.js | 3 + .../blocks/BasicException/.editorconfig | 16 + .../blocks/BasicException/.eslintignore | 12 + .../blocks/BasicException/.eslintrc | 53 + .../blocks/BasicException/.gitignore | 13 + .../blocks/BasicException/README.md | 10 + .../ice-design/blocks/BasicException/abc.json | 14 + .../blocks/BasicException/demo/index.html | 19 + .../blocks/BasicException/demo/index.js | 19 + .../BasicException/lib/BasicException.js | 86 + .../BasicException/lib/BasicException.scss | 22 + .../blocks/BasicException/lib/index.js | 14 + .../blocks/BasicException/mock/api.json | 4 + .../blocks/BasicException/package.json | 56 + .../BasicException/src/BasicException.jsx | 29 + .../BasicException/src/BasicException.scss | 22 + .../blocks/BasicException/src/index.js | 3 + .../blocks/BasicNotFound/.editorconfig | 16 + .../blocks/BasicNotFound/.eslintignore | 12 + .../ice-design/blocks/BasicNotFound/.eslintrc | 53 + .../blocks/BasicNotFound/.gitignore | 13 + .../ice-design/blocks/BasicNotFound/README.md | 10 + .../blocks/BasicNotFound/demo/index.html | 19 + .../blocks/BasicNotFound/demo/index.js | 19 + .../blocks/BasicNotFound/lib/BasicNotFound.js | 87 + .../BasicNotFound/lib/BasicNotFound.scss | 22 + .../blocks/BasicNotFound/lib/index.js | 14 + .../blocks/BasicNotFound/mock/api.json | 4 + .../blocks/BasicNotFound/package.json | 56 + .../BasicNotFound/src/BasicNotFound.jsx | 30 + .../BasicNotFound/src/BasicNotFound.scss | 22 + .../blocks/BasicNotFound/src/index.js | 3 + .../ice-design/blocks/BasicTab/.editorconfig | 16 + .../ice-design/blocks/BasicTab/.eslintignore | 12 + .../ice-design/blocks/BasicTab/.eslintrc | 53 + .../ice-design/blocks/BasicTab/.gitignore | 13 + .../ice-design/blocks/BasicTab/README.md | 10 + .../blocks/BasicTab/demo/index.html | 18 + .../ice-design/blocks/BasicTab/demo/index.js | 19 + .../blocks/BasicTab/lib/BasicTab.js | 76 + .../blocks/BasicTab/lib/BasicTab.scss | 4 + .../ice-design/blocks/BasicTab/lib/index.js | 14 + .../ice-design/blocks/BasicTab/mock/api.json | 4 + .../ice-design/blocks/BasicTab/package.json | 55 + .../blocks/BasicTab/src/BasicTab.jsx | 35 + .../blocks/BasicTab/src/BasicTab.scss | 4 + .../ice-design/blocks/BasicTab/src/index.js | 3 + .../blocks/BrandDisplay/.editorconfig | 16 + .../blocks/BrandDisplay/.eslintignore | 12 + .../ice-design/blocks/BrandDisplay/.eslintrc | 62 + .../ice-design/blocks/BrandDisplay/.gitignore | 13 + .../ice-design/blocks/BrandDisplay/README.md | 10 + .../blocks/BrandDisplay/demo/index.html | 19 + .../blocks/BrandDisplay/demo/index.js | 19 + .../blocks/BrandDisplay/mock/api.json | 4 + .../blocks/BrandDisplay/package.json | 52 + .../blocks/BrandDisplay/src/BrandDisplay.jsx | 118 + .../blocks/BrandDisplay/src/BrandDisplay.scss | 9 + .../blocks/BrandDisplay/src/index.js | 3 + .../blocks/BrandShowCase/.editorconfig | 16 + .../blocks/BrandShowCase/.eslintignore | 12 + .../ice-design/blocks/BrandShowCase/.eslintrc | 62 + .../blocks/BrandShowCase/.gitignore | 13 + .../ice-design/blocks/BrandShowCase/README.md | 10 + .../blocks/BrandShowCase/demo/index.html | 19 + .../blocks/BrandShowCase/demo/index.js | 19 + .../blocks/BrandShowCase/mock/api.json | 4 + .../blocks/BrandShowCase/package.json | 54 + .../BrandShowCase/src/BrandShowCase.jsx | 74 + .../BrandShowCase/src/BrandShowCase.scss | 5 + .../blocks/BrandShowCase/src/index.js | 3 + .../ice-design/blocks/ChartArea/.editorconfig | 16 + .../ice-design/blocks/ChartArea/.eslintignore | 12 + .../ice-design/blocks/ChartArea/.eslintrc | 62 + .../ice-design/blocks/ChartArea/.gitignore | 14 + .../ice-design/blocks/ChartArea/README.md | 10 + .../blocks/ChartArea/demo/index.html | 19 + .../ice-design/blocks/ChartArea/demo/index.js | 19 + .../blocks/ChartArea/lib/ChartArea.js | 113 + .../blocks/ChartArea/lib/ChartArea.scss | 5 + .../ice-design/blocks/ChartArea/lib/index.js | 14 + .../ice-design/blocks/ChartArea/mock/api.json | 4 + .../ice-design/blocks/ChartArea/package.json | 56 + .../blocks/ChartArea/src/ChartArea.jsx | 91 + .../blocks/ChartArea/src/ChartArea.scss | 5 + .../ice-design/blocks/ChartArea/src/index.js | 3 + .../ice-design/blocks/ChartBar/.editorconfig | 16 + .../ice-design/blocks/ChartBar/.eslintignore | 12 + .../ice-design/blocks/ChartBar/.eslintrc | 62 + .../ice-design/blocks/ChartBar/.gitignore | 14 + .../ice-design/blocks/ChartBar/README.md | 10 + .../blocks/ChartBar/demo/index.html | 19 + .../ice-design/blocks/ChartBar/demo/index.js | 19 + .../blocks/ChartBar/lib/ChartBar.js | 124 + .../blocks/ChartBar/lib/ChartBar.scss | 5 + .../ice-design/blocks/ChartBar/lib/index.js | 14 + .../ice-design/blocks/ChartBar/mock/api.json | 4 + .../ice-design/blocks/ChartBar/package.json | 56 + .../blocks/ChartBar/src/ChartBar.jsx | 84 + .../blocks/ChartBar/src/ChartBar.scss | 5 + .../ice-design/blocks/ChartBar/src/index.js | 3 + .../ice-design/blocks/ChartBox/.editorconfig | 16 + .../ice-design/blocks/ChartBox/.eslintignore | 12 + .../ice-design/blocks/ChartBox/.eslintrc | 62 + .../ice-design/blocks/ChartBox/.gitignore | 14 + .../ice-design/blocks/ChartBox/README.md | 10 + .../blocks/ChartBox/demo/index.html | 19 + .../ice-design/blocks/ChartBox/demo/index.js | 19 + .../blocks/ChartBox/lib/ChartBox.js | 219 ++ .../blocks/ChartBox/lib/ChartBox.scss | 5 + .../ice-design/blocks/ChartBox/lib/index.js | 14 + .../ice-design/blocks/ChartBox/mock/api.json | 4 + .../ice-design/blocks/ChartBox/package.json | 56 + .../blocks/ChartBox/src/ChartBox.jsx | 186 ++ .../blocks/ChartBox/src/ChartBox.scss | 5 + .../ice-design/blocks/ChartBox/src/index.js | 3 + .../blocks/ChartBubbleImage/.editorconfig | 16 + .../blocks/ChartBubbleImage/.eslintignore | 12 + .../blocks/ChartBubbleImage/.eslintrc | 53 + .../blocks/ChartBubbleImage/.gitignore | 14 + .../blocks/ChartBubbleImage/README.md | 10 + .../blocks/ChartBubbleImage/demo/index.html | 19 + .../blocks/ChartBubbleImage/demo/index.js | 19 + .../ChartBubbleImage/lib/ChartBubbleImage.js | 164 ++ .../lib/ChartBubbleImage.scss | 5 + .../blocks/ChartBubbleImage/lib/index.js | 14 + .../blocks/ChartBubbleImage/mock/api.json | 4 + .../blocks/ChartBubbleImage/package.json | 56 + .../ChartBubbleImage/src/ChartBubbleImage.jsx | 136 + .../src/ChartBubbleImage.scss | 5 + .../blocks/ChartBubbleImage/src/index.js | 3 + .../blocks/ChartFacet/.editorconfig | 16 + .../blocks/ChartFacet/.eslintignore | 12 + .../ice-design/blocks/ChartFacet/.eslintrc | 62 + .../ice-design/blocks/ChartFacet/.gitignore | 14 + .../ice-design/blocks/ChartFacet/README.md | 10 + .../blocks/ChartFacet/demo/index.html | 19 + .../blocks/ChartFacet/demo/index.js | 19 + .../blocks/ChartFacet/lib/ChartFacet.js | 129 + .../blocks/ChartFacet/lib/ChartFacet.scss | 5 + .../ice-design/blocks/ChartFacet/lib/index.js | 14 + .../blocks/ChartFacet/mock/api.json | 4 + .../ice-design/blocks/ChartFacet/package.json | 56 + .../blocks/ChartFacet/src/ChartFacet.jsx | 102 + .../blocks/ChartFacet/src/ChartFacet.scss | 5 + .../ice-design/blocks/ChartFacet/src/index.js | 3 + .../blocks/ChartFunnel/.editorconfig | 16 + .../blocks/ChartFunnel/.eslintignore | 12 + .../ice-design/blocks/ChartFunnel/.eslintrc | 62 + .../ice-design/blocks/ChartFunnel/.gitignore | 14 + .../ice-design/blocks/ChartFunnel/README.md | 10 + .../blocks/ChartFunnel/demo/index.html | 19 + .../blocks/ChartFunnel/demo/index.js | 19 + .../blocks/ChartFunnel/lib/ChartFunnel.js | 162 ++ .../blocks/ChartFunnel/lib/ChartFunnel.scss | 5 + .../blocks/ChartFunnel/lib/index.js | 14 + .../blocks/ChartFunnel/mock/api.json | 4 + .../blocks/ChartFunnel/package.json | 56 + .../blocks/ChartFunnel/src/ChartFunnel.jsx | 131 + .../blocks/ChartFunnel/src/ChartFunnel.scss | 5 + .../blocks/ChartFunnel/src/index.js | 3 + .../blocks/ChartGauge/.editorconfig | 16 + .../blocks/ChartGauge/.eslintignore | 12 + .../ice-design/blocks/ChartGauge/.eslintrc | 62 + .../ice-design/blocks/ChartGauge/.gitignore | 14 + .../ice-design/blocks/ChartGauge/README.md | 10 + .../blocks/ChartGauge/demo/index.html | 19 + .../blocks/ChartGauge/demo/index.js | 19 + .../blocks/ChartGauge/lib/ChartGauge.js | 232 ++ .../blocks/ChartGauge/lib/ChartGauge.scss | 5 + .../ice-design/blocks/ChartGauge/lib/index.js | 14 + .../blocks/ChartGauge/mock/api.json | 4 + .../ice-design/blocks/ChartGauge/package.json | 56 + .../blocks/ChartGauge/src/ChartGauge.jsx | 186 ++ .../blocks/ChartGauge/src/ChartGauge.scss | 5 + .../ice-design/blocks/ChartGauge/src/index.js | 3 + .../blocks/ChartHeatMap/.editorconfig | 16 + .../blocks/ChartHeatMap/.eslintignore | 12 + .../ice-design/blocks/ChartHeatMap/.eslintrc | 62 + .../ice-design/blocks/ChartHeatMap/.gitignore | 14 + .../ice-design/blocks/ChartHeatMap/README.md | 10 + .../blocks/ChartHeatMap/demo/index.html | 19 + .../blocks/ChartHeatMap/demo/index.js | 19 + .../blocks/ChartHeatMap/lib/ChartHeatMap.js | 155 + .../blocks/ChartHeatMap/lib/ChartHeatMap.scss | 5 + .../blocks/ChartHeatMap/lib/index.js | 14 + .../blocks/ChartHeatMap/mock/api.json | 4 + .../blocks/ChartHeatMap/package.json | 56 + .../blocks/ChartHeatMap/src/ChartHeatMap.jsx | 173 ++ .../blocks/ChartHeatMap/src/ChartHeatMap.scss | 5 + .../blocks/ChartHeatMap/src/index.js | 3 + .../ice-design/blocks/ChartPie/.editorconfig | 16 + .../ice-design/blocks/ChartPie/.eslintignore | 12 + .../ice-design/blocks/ChartPie/.eslintrc | 62 + .../ice-design/blocks/ChartPie/.gitignore | 14 + .../ice-design/blocks/ChartPie/README.md | 10 + .../blocks/ChartPie/demo/index.html | 19 + .../ice-design/blocks/ChartPie/demo/index.js | 19 + .../blocks/ChartPie/lib/ChartPie.js | 138 + .../blocks/ChartPie/lib/ChartPie.scss | 5 + .../ice-design/blocks/ChartPie/lib/index.js | 14 + .../ice-design/blocks/ChartPie/mock/api.json | 4 + .../ice-design/blocks/ChartPie/package.json | 56 + .../blocks/ChartPie/src/ChartPie.jsx | 102 + .../blocks/ChartPie/src/ChartPie.scss | 5 + .../ice-design/blocks/ChartPie/src/index.js | 3 + .../blocks/ChartPoint/.editorconfig | 16 + .../blocks/ChartPoint/.eslintignore | 12 + .../ice-design/blocks/ChartPoint/.eslintrc | 62 + .../ice-design/blocks/ChartPoint/.gitignore | 14 + .../ice-design/blocks/ChartPoint/README.md | 10 + .../blocks/ChartPoint/demo/index.html | 19 + .../blocks/ChartPoint/demo/index.js | 19 + .../blocks/ChartPoint/lib/ChartPoint.js | 121 + .../blocks/ChartPoint/lib/ChartPoint.scss | 5 + .../ice-design/blocks/ChartPoint/lib/index.js | 14 + .../blocks/ChartPoint/mock/chart-point.json | 2540 +++++++++++++++++ .../ice-design/blocks/ChartPoint/package.json | 57 + .../blocks/ChartPoint/src/ChartPoint.jsx | 79 + .../blocks/ChartPoint/src/ChartPoint.scss | 5 + .../ice-design/blocks/ChartPoint/src/index.js | 3 + .../blocks/ChartRadar/.editorconfig | 16 + .../blocks/ChartRadar/.eslintignore | 12 + .../ice-design/blocks/ChartRadar/.eslintrc | 62 + .../ice-design/blocks/ChartRadar/.gitignore | 14 + .../ice-design/blocks/ChartRadar/README.md | 10 + .../blocks/ChartRadar/demo/index.html | 19 + .../blocks/ChartRadar/demo/index.js | 19 + .../blocks/ChartRadar/lib/ChartRadar.js | 147 + .../blocks/ChartRadar/lib/ChartRadar.scss | 5 + .../ice-design/blocks/ChartRadar/lib/index.js | 14 + .../blocks/ChartRadar/mock/api.json | 4 + .../ice-design/blocks/ChartRadar/package.json | 56 + .../blocks/ChartRadar/src/ChartRadar.jsx | 115 + .../blocks/ChartRadar/src/ChartRadar.scss | 5 + .../ice-design/blocks/ChartRadar/src/index.js | 3 + .../blocks/ChartRelation/.editorconfig | 16 + .../blocks/ChartRelation/.eslintignore | 12 + .../ice-design/blocks/ChartRelation/.eslintrc | 62 + .../blocks/ChartRelation/.gitignore | 14 + .../ice-design/blocks/ChartRelation/README.md | 11 + .../blocks/ChartRelation/demo/index.html | 19 + .../blocks/ChartRelation/demo/index.js | 19 + .../blocks/ChartRelation/lib/ChartRelation.js | 136 + .../ChartRelation/lib/ChartRelation.scss | 5 + .../blocks/ChartRelation/lib/index.js | 14 + .../blocks/ChartRelation/mock/api.json | 4 + .../blocks/ChartRelation/package.json | 56 + .../ChartRelation/src/ChartRelation.jsx | 122 + .../ChartRelation/src/ChartRelation.scss | 5 + .../blocks/ChartRelation/src/index.js | 3 + .../blocks/ChartStock/.editorconfig | 16 + .../blocks/ChartStock/.eslintignore | 12 + .../ice-design/blocks/ChartStock/.eslintrc | 62 + .../ice-design/blocks/ChartStock/.gitignore | 14 + .../ice-design/blocks/ChartStock/README.md | 12 + .../blocks/ChartStock/demo/index.html | 19 + .../blocks/ChartStock/demo/index.js | 19 + .../blocks/ChartStock/lib/ChartStock.js | 162 ++ .../blocks/ChartStock/lib/ChartStock.scss | 5 + .../ice-design/blocks/ChartStock/lib/index.js | 14 + .../blocks/ChartStock/mock/chart-stock.json | 615 ++++ .../ice-design/blocks/ChartStock/package.json | 57 + .../blocks/ChartStock/src/ChartStock.jsx | 119 + .../blocks/ChartStock/src/ChartStock.scss | 5 + .../ice-design/blocks/ChartStock/src/index.js | 3 + .../blocks/ChartTypeLine/.editorconfig | 16 + .../blocks/ChartTypeLine/.eslintignore | 12 + .../ice-design/blocks/ChartTypeLine/.eslintrc | 62 + .../blocks/ChartTypeLine/.gitignore | 14 + .../ice-design/blocks/ChartTypeLine/README.md | 10 + .../blocks/ChartTypeLine/demo/index.html | 19 + .../blocks/ChartTypeLine/demo/index.js | 19 + .../blocks/ChartTypeLine/lib/ChartTypeLine.js | 124 + .../ChartTypeLine/lib/ChartTypeLine.scss | 5 + .../blocks/ChartTypeLine/lib/index.js | 14 + .../blocks/ChartTypeLine/mock/api.json | 4 + .../blocks/ChartTypeLine/package.json | 56 + .../ChartTypeLine/src/ChartTypeLine.jsx | 92 + .../ChartTypeLine/src/ChartTypeLine.scss | 5 + .../blocks/ChartTypeLine/src/index.js | 3 + .../blocks/CollapseCard/.editorconfig | 16 + .../blocks/CollapseCard/.eslintignore | 12 + .../ice-design/blocks/CollapseCard/.eslintrc | 62 + .../ice-design/blocks/CollapseCard/.gitignore | 13 + .../ice-design/blocks/CollapseCard/README.md | 10 + .../blocks/CollapseCard/demo/index.html | 19 + .../blocks/CollapseCard/demo/index.js | 19 + .../blocks/CollapseCard/mock/api.json | 4 + .../blocks/CollapseCard/package.json | 52 + .../blocks/CollapseCard/src/CollapseCard.jsx | 109 + .../blocks/CollapseCard/src/CollapseCard.scss | 30 + .../blocks/CollapseCard/src/index.js | 3 + .../blocks/ComplexDialog/.editorconfig | 16 + .../blocks/ComplexDialog/.eslintignore | 12 + .../ice-design/blocks/ComplexDialog/.eslintrc | 62 + .../blocks/ComplexDialog/.gitignore | 13 + .../ice-design/blocks/ComplexDialog/README.md | 12 + .../blocks/ComplexDialog/demo/index.html | 19 + .../blocks/ComplexDialog/demo/index.js | 29 + .../blocks/ComplexDialog/mock/api.json | 4 + .../blocks/ComplexDialog/package.json | 51 + .../ComplexDialog/src/ComplexDialog.jsx | 93 + .../ComplexDialog/src/ComplexDialog.scss | 5 + .../ComplexDialog/src/CreateFuncDialog.js | 46 + .../blocks/ComplexDialog/src/index.js | 3 + .../blocks/ComplexFilter/.editorconfig | 16 + .../blocks/ComplexFilter/.eslintignore | 12 + .../ice-design/blocks/ComplexFilter/.eslintrc | 62 + .../blocks/ComplexFilter/.gitignore | 13 + .../ice-design/blocks/ComplexFilter/README.md | 12 + .../blocks/ComplexFilter/demo/index.html | 19 + .../blocks/ComplexFilter/demo/index.js | 19 + .../blocks/ComplexFilter/mock/api.json | 4 + .../blocks/ComplexFilter/package.json | 51 + .../ComplexFilter/src/ComplexFilter.jsx | 159 ++ .../ComplexFilter/src/ComplexFilter.scss | 30 + .../blocks/ComplexFilter/src/index.js | 3 + .../blocks/ComplexProgressTable/.babelrc | 3 + .../blocks/ComplexProgressTable/.editorconfig | 16 + .../blocks/ComplexProgressTable/.eslintignore | 12 + .../blocks/ComplexProgressTable/.eslintrc | 62 + .../blocks/ComplexProgressTable/.gitignore | 13 + .../blocks/ComplexProgressTable/README.md | 12 + .../ComplexProgressTable/demo/index.html | 19 + .../blocks/ComplexProgressTable/demo/index.js | 19 + .../mock/complex-progress-table.json | 64 + .../blocks/ComplexProgressTable/package.json | 58 + .../src/ComplexProgressTable.jsx | 179 ++ .../src/ComplexProgressTable.scss | 5 + .../src/CreateFuncDialog.jsx | 44 + .../ComplexProgressTable/src/EditDialog.jsx | 161 ++ .../blocks/ComplexProgressTable/src/index.js | 3 + .../blocks/ComplexTabTable/.editorconfig | 16 + .../blocks/ComplexTabTable/.eslintignore | 12 + .../blocks/ComplexTabTable/.eslintrc | 62 + .../blocks/ComplexTabTable/.gitignore | 13 + .../blocks/ComplexTabTable/README.md | 12 + .../blocks/ComplexTabTable/demo/index.html | 19 + .../blocks/ComplexTabTable/demo/index.js | 19 + .../mock/complex-tab-table-list.json | 114 + .../blocks/ComplexTabTable/package.json | 55 + .../ComplexTabTable/src/ComplexTabTable.jsx | 337 +++ .../ComplexTabTable/src/ComplexTabTable.scss | 14 + .../ComplexTabTable/src/SubCategoryItem.jsx | 35 + .../blocks/ComplexTabTable/src/index.js | 3 + .../blocks/CompositeFilter/.editorconfig | 16 + .../blocks/CompositeFilter/.eslintignore | 12 + .../blocks/CompositeFilter/.eslintrc | 62 + .../blocks/CompositeFilter/.gitignore | 13 + .../blocks/CompositeFilter/README.md | 10 + .../blocks/CompositeFilter/demo/index.html | 19 + .../blocks/CompositeFilter/demo/index.js | 19 + .../blocks/CompositeFilter/mock/api.json | 4 + .../blocks/CompositeFilter/package.json | 52 + .../CompositeFilter/src/CompositeFilter.jsx | 128 + .../CompositeFilter/src/CompositeFilter.scss | 4 + .../blocks/CompositeFilter/src/index.js | 3 + .../blocks/ConfirmDialog/.editorconfig | 16 + .../blocks/ConfirmDialog/.eslintignore | 12 + .../ice-design/blocks/ConfirmDialog/.eslintrc | 62 + .../blocks/ConfirmDialog/.gitignore | 13 + .../ice-design/blocks/ConfirmDialog/README.md | 10 + .../blocks/ConfirmDialog/demo/index.html | 19 + .../blocks/ConfirmDialog/demo/index.js | 25 + .../blocks/ConfirmDialog/mock/api.json | 4 + .../blocks/ConfirmDialog/package.json | 51 + .../ConfirmDialog/src/ConfirmDialog.jsx | 62 + .../ConfirmDialog/src/ConfirmDialog.scss | 4 + .../ConfirmDialog/src/CreateFuncDialog.js | 46 + .../blocks/ConfirmDialog/src/index.js | 3 + .../blocks/DataDisplay/.editorconfig | 16 + .../blocks/DataDisplay/.eslintignore | 12 + .../ice-design/blocks/DataDisplay/.eslintrc | 62 + .../ice-design/blocks/DataDisplay/.gitignore | 13 + .../ice-design/blocks/DataDisplay/README.md | 10 + .../blocks/DataDisplay/demo/index.html | 19 + .../blocks/DataDisplay/demo/index.js | 19 + .../blocks/DataDisplay/mock/api.json | 4 + .../blocks/DataDisplay/package.json | 54 + .../blocks/DataDisplay/src/DataDisplay.jsx | 85 + .../blocks/DataDisplay/src/DataDisplay.scss | 5 + .../blocks/DataDisplay/src/index.js | 3 + .../blocks/DetailTable/.editorconfig | 16 + .../blocks/DetailTable/.eslintignore | 12 + .../ice-design/blocks/DetailTable/.eslintrc | 62 + .../ice-design/blocks/DetailTable/.gitignore | 13 + .../ice-design/blocks/DetailTable/README.md | 12 + .../blocks/DetailTable/demo/index.html | 19 + .../blocks/DetailTable/demo/index.js | 19 + .../blocks/DetailTable/mock/api.json | 4 + .../blocks/DetailTable/package.json | 54 + .../blocks/DetailTable/src/DetailTable.jsx | 86 + .../blocks/DetailTable/src/DetailTable.scss | 5 + .../blocks/DetailTable/src/index.js | 3 + .../blocks/DisplayCard/.editorconfig | 16 + .../blocks/DisplayCard/.eslintignore | 12 + .../ice-design/blocks/DisplayCard/.eslintrc | 62 + .../ice-design/blocks/DisplayCard/.gitignore | 13 + .../ice-design/blocks/DisplayCard/README.md | 12 + .../blocks/DisplayCard/demo/index.html | 19 + .../blocks/DisplayCard/demo/index.js | 19 + .../blocks/DisplayCard/mock/api.json | 4 + .../blocks/DisplayCard/package.json | 51 + .../blocks/DisplayCard/src/DisplayCard.jsx | 167 ++ .../blocks/DisplayCard/src/DisplayCard.scss | 4 + .../blocks/DisplayCard/src/index.js | 3 + .../blocks/DownloadCard/.editorconfig | 16 + .../blocks/DownloadCard/.eslintignore | 12 + .../ice-design/blocks/DownloadCard/.eslintrc | 62 + .../ice-design/blocks/DownloadCard/.gitignore | 13 + .../ice-design/blocks/DownloadCard/README.md | 10 + .../blocks/DownloadCard/demo/index.html | 19 + .../blocks/DownloadCard/demo/index.js | 19 + .../blocks/DownloadCard/mock/api.json | 4 + .../DownloadCard/mock/download-card.json | 141 + .../blocks/DownloadCard/package.json | 53 + .../blocks/DownloadCard/src/DownloadCard.jsx | 173 ++ .../blocks/DownloadCard/src/DownloadCard.scss | 16 + .../blocks/DownloadCard/src/index.js | 3 + .../blocks/DynamicBanner/.editorconfig | 16 + .../blocks/DynamicBanner/.eslintignore | 12 + .../ice-design/blocks/DynamicBanner/.eslintrc | 62 + .../blocks/DynamicBanner/.gitignore | 13 + .../ice-design/blocks/DynamicBanner/README.md | 10 + .../blocks/DynamicBanner/demo/index.html | 19 + .../blocks/DynamicBanner/demo/index.js | 19 + .../blocks/DynamicBanner/mock/api.json | 4 + .../blocks/DynamicBanner/package.json | 51 + .../DynamicBanner/src/DynamicBanner.jsx | 110 + .../DynamicBanner/src/DynamicBanner.scss | 10 + .../blocks/DynamicBanner/src/index.js | 3 + .../blocks/EditableTable/.editorconfig | 16 + .../blocks/EditableTable/.eslintignore | 12 + .../ice-design/blocks/EditableTable/.eslintrc | 62 + .../blocks/EditableTable/.gitignore | 13 + .../ice-design/blocks/EditableTable/README.md | 12 + .../blocks/EditableTable/demo/index.html | 19 + .../blocks/EditableTable/demo/index.js | 19 + .../blocks/EditableTable/mock/api.json | 4 + .../blocks/EditableTable/package.json | 51 + .../blocks/EditableTable/src/CellEditor.jsx | 114 + .../EditableTable/src/EditableTable.jsx | 138 + .../EditableTable/src/EditableTable.scss | 12 + .../blocks/EditableTable/src/index.js | 3 + .../blocks/EmptyContent/.editorconfig | 16 + .../blocks/EmptyContent/.eslintignore | 12 + .../ice-design/blocks/EmptyContent/.eslintrc | 62 + .../ice-design/blocks/EmptyContent/.gitignore | 13 + .../ice-design/blocks/EmptyContent/README.md | 10 + .../blocks/EmptyContent/demo/index.html | 19 + .../blocks/EmptyContent/demo/index.js | 19 + .../blocks/EmptyContent/mock/api.json | 4 + .../blocks/EmptyContent/package.json | 54 + .../blocks/EmptyContent/src/EmptyContent.jsx | 46 + .../blocks/EmptyContent/src/EmptyContent.scss | 5 + .../blocks/EmptyContent/src/index.js | 3 + .../blocks/EnhanceTable/.editorconfig | 16 + .../blocks/EnhanceTable/.eslintignore | 12 + .../ice-design/blocks/EnhanceTable/.eslintrc | 62 + .../ice-design/blocks/EnhanceTable/.gitignore | 13 + .../ice-design/blocks/EnhanceTable/README.md | 12 + .../blocks/EnhanceTable/demo/index.html | 19 + .../blocks/EnhanceTable/demo/index.js | 19 + .../EnhanceTable/mock/enhance-table-list.json | 122 + .../blocks/EnhanceTable/package.json | 55 + .../blocks/EnhanceTable/src/EnhanceTable.jsx | 260 ++ .../blocks/EnhanceTable/src/EnhanceTable.scss | 10 + .../blocks/EnhanceTable/src/index.js | 3 + .../ice-design/blocks/EntryCard/.editorconfig | 16 + .../ice-design/blocks/EntryCard/.eslintignore | 20 + .../ice-design/blocks/EntryCard/.eslintrc | 53 + .../ice-design/blocks/EntryCard/.gitignore | 13 + .../ice-design/blocks/EntryCard/README.md | 10 + .../blocks/EntryCard/demo/index.html | 19 + .../ice-design/blocks/EntryCard/demo/index.js | 18 + .../blocks/EntryCard/lib/EntryCard.js | 125 + .../blocks/EntryCard/lib/EntryCard.scss | 4 + .../ice-design/blocks/EntryCard/lib/index.js | 14 + .../ice-design/blocks/EntryCard/mock/api.json | 4 + .../ice-design/blocks/EntryCard/package.json | 55 + .../blocks/EntryCard/src/EntryCard.jsx | 87 + .../blocks/EntryCard/src/EntryCard.scss | 4 + .../ice-design/blocks/EntryCard/src/index.js | 3 + .../blocks/FailureDetail/.editorconfig | 16 + .../blocks/FailureDetail/.eslintignore | 12 + .../ice-design/blocks/FailureDetail/.eslintrc | 62 + .../blocks/FailureDetail/.gitignore | 13 + .../ice-design/blocks/FailureDetail/README.md | 12 + .../blocks/FailureDetail/demo/index.html | 19 + .../blocks/FailureDetail/demo/index.js | 19 + .../blocks/FailureDetail/lib/FailureDetail.js | 107 + .../FailureDetail/lib/FailureDetail.scss | 35 + .../blocks/FailureDetail/lib/index.js | 13 + .../blocks/FailureDetail/mock/api.json | 4 + .../blocks/FailureDetail/package.json | 51 + .../FailureDetail/src/FailureDetail.jsx | 86 + .../FailureDetail/src/FailureDetail.scss | 4 + .../blocks/FailureDetail/src/index.js | 3 + .../blocks/FeatureDisplay/.editorconfig | 16 + .../blocks/FeatureDisplay/.eslintignore | 12 + .../blocks/FeatureDisplay/.eslintrc | 62 + .../blocks/FeatureDisplay/.gitignore | 13 + .../blocks/FeatureDisplay/README.md | 10 + .../blocks/FeatureDisplay/demo/index.html | 19 + .../blocks/FeatureDisplay/demo/index.js | 19 + .../blocks/FeatureDisplay/mock/api.json | 4 + .../blocks/FeatureDisplay/package.json | 51 + .../FeatureDisplay/src/FeatureDisplay.jsx | 105 + .../FeatureDisplay/src/FeatureDisplay.scss | 5 + .../blocks/FeatureDisplay/src/index.js | 3 + .../ice-design/blocks/FeedList/.editorconfig | 16 + .../ice-design/blocks/FeedList/.eslintignore | 12 + .../ice-design/blocks/FeedList/.eslintrc | 62 + .../ice-design/blocks/FeedList/.gitignore | 13 + .../ice-design/blocks/FeedList/README.md | 12 + .../blocks/FeedList/demo/index.html | 19 + .../ice-design/blocks/FeedList/demo/index.js | 19 + .../ice-design/blocks/FeedList/mock/api.json | 4 + .../ice-design/blocks/FeedList/package.json | 54 + .../blocks/FeedList/src/FeedList.jsx | 135 + .../blocks/FeedList/src/FeedList.scss | 4 + .../ice-design/blocks/FeedList/src/index.js | 3 + .../blocks/FilterList/.editorconfig | 16 + .../blocks/FilterList/.eslintignore | 12 + .../ice-design/blocks/FilterList/.eslintrc | 62 + .../ice-design/blocks/FilterList/.gitignore | 13 + .../ice-design/blocks/FilterList/README.md | 10 + .../blocks/FilterList/demo/index.html | 19 + .../blocks/FilterList/demo/index.js | 19 + .../blocks/FilterList/mock/api.json | 4 + .../ice-design/blocks/FilterList/package.json | 53 + .../blocks/FilterList/src/FilterList.jsx | 153 + .../blocks/FilterList/src/FilterList.scss | 16 + .../FilterList/src/SingleItem/SingleItem.jsx | 78 + .../FilterList/src/SingleItem/SingleItem.scss | 6 + .../blocks/FilterList/src/SingleItem/index.js | 1 + .../ice-design/blocks/FilterList/src/index.js | 3 + .../blocks/FilterTable/.editorconfig | 16 + .../blocks/FilterTable/.eslintignore | 12 + .../ice-design/blocks/FilterTable/.eslintrc | 62 + .../ice-design/blocks/FilterTable/.gitignore | 13 + .../ice-design/blocks/FilterTable/README.md | 12 + .../blocks/FilterTable/demo/index.html | 19 + .../blocks/FilterTable/demo/index.js | 14 + .../FilterTable/mock/filter-table-list.json | 122 + .../blocks/FilterTable/package.json | 55 + .../blocks/FilterTable/src/Filter/Filter.jsx | 148 + .../blocks/FilterTable/src/Filter/Filter.scss | 19 + .../blocks/FilterTable/src/Filter/index.js | 1 + .../blocks/FilterTable/src/FilterTable.jsx | 216 ++ .../blocks/FilterTable/src/index.js | 3 + .../blocks/FilterWithSearch/.editorconfig | 16 + .../blocks/FilterWithSearch/.eslintignore | 12 + .../blocks/FilterWithSearch/.eslintrc | 62 + .../blocks/FilterWithSearch/.gitignore | 13 + .../blocks/FilterWithSearch/README.md | 12 + .../blocks/FilterWithSearch/demo/index.html | 19 + .../blocks/FilterWithSearch/demo/index.js | 19 + .../blocks/FilterWithSearch/mock/api.json | 4 + .../blocks/FilterWithSearch/package.json | 51 + .../FilterWithSearch/src/FilterWithSearch.jsx | 101 + .../src/FilterWithSearch.scss | 12 + .../blocks/FilterWithSearch/src/index.js | 3 + .../ice-design/blocks/Footer/.editorconfig | 16 + .../ice-design/blocks/Footer/.eslintignore | 12 + templates/ice-design/blocks/Footer/.eslintrc | 62 + templates/ice-design/blocks/Footer/.gitignore | 13 + templates/ice-design/blocks/Footer/README.md | 10 + .../ice-design/blocks/Footer/demo/index.html | 19 + .../ice-design/blocks/Footer/demo/index.js | 14 + .../ice-design/blocks/Footer/mock/api.json | 4 + .../ice-design/blocks/Footer/package.json | 54 + .../ice-design/blocks/Footer/src/Footer.jsx | 102 + .../ice-design/blocks/Footer/src/index.js | 3 + .../blocks/FooterInfo/.editorconfig | 16 + .../blocks/FooterInfo/.eslintignore | 12 + .../ice-design/blocks/FooterInfo/.eslintrc | 62 + .../ice-design/blocks/FooterInfo/.gitignore | 13 + .../ice-design/blocks/FooterInfo/README.md | 10 + .../blocks/FooterInfo/demo/index.html | 19 + .../blocks/FooterInfo/demo/index.js | 14 + .../blocks/FooterInfo/mock/api.json | 4 + .../ice-design/blocks/FooterInfo/package.json | 54 + .../blocks/FooterInfo/src/FooterInfo.jsx | 111 + .../ice-design/blocks/FooterInfo/src/index.js | 3 + .../blocks/ForgetPasswordForm/.editorconfig | 16 + .../blocks/ForgetPasswordForm/.eslintignore | 12 + .../blocks/ForgetPasswordForm/.eslintrc | 62 + .../blocks/ForgetPasswordForm/.gitignore | 13 + .../blocks/ForgetPasswordForm/README.md | 12 + .../blocks/ForgetPasswordForm/demo/index.html | 19 + .../blocks/ForgetPasswordForm/demo/index.js | 19 + .../blocks/ForgetPasswordForm/mock/api.json | 4 + .../blocks/ForgetPasswordForm/package.json | 55 + .../src/ForgetPasswordForm.jsx | 97 + .../blocks/ForgetPasswordForm/src/index.js | 3 + .../blocks/InfoDisplayTab/.editorconfig | 16 + .../blocks/InfoDisplayTab/.eslintignore | 12 + .../blocks/InfoDisplayTab/.eslintrc | 62 + .../blocks/InfoDisplayTab/.gitignore | 13 + .../blocks/InfoDisplayTab/README.md | 10 + .../blocks/InfoDisplayTab/demo/index.html | 18 + .../blocks/InfoDisplayTab/demo/index.js | 19 + .../InfoDisplayTab/lib/InfoDisplayTab.js | 183 ++ .../InfoDisplayTab/lib/InfoDisplayTab.scss | 33 + .../blocks/InfoDisplayTab/lib/index.js | 14 + .../InfoDisplayTab/mock/info-display-tab.json | 83 + .../blocks/InfoDisplayTab/package.json | 54 + .../InfoDisplayTab/src/InfoDisplayTab.jsx | 111 + .../InfoDisplayTab/src/InfoDisplayTab.scss | 33 + .../blocks/InfoDisplayTab/src/index.js | 3 + .../blocks/InfoDisplayTable/.editorconfig | 16 + .../blocks/InfoDisplayTable/.eslintignore | 12 + .../blocks/InfoDisplayTable/.eslintrc | 62 + .../blocks/InfoDisplayTable/.gitignore | 13 + .../blocks/InfoDisplayTable/README.md | 13 + .../blocks/InfoDisplayTable/demo/index.html | 19 + .../blocks/InfoDisplayTable/demo/index.js | 14 + .../InfoDisplayTable/lib/InfoDisplayTable.js | 117 + .../lib/InfoDisplayTable.scss | 18 + .../blocks/InfoDisplayTable/lib/index.js | 14 + .../blocks/InfoDisplayTable/mock/api.json | 4 + .../blocks/InfoDisplayTable/package.json | 52 + .../InfoDisplayTable/src/InfoDisplayTable.jsx | 89 + .../src/InfoDisplayTable.scss | 18 + .../blocks/InfoDisplayTable/src/index.js | 3 + .../ice-design/blocks/JoinUs/.editorconfig | 16 + .../ice-design/blocks/JoinUs/.eslintignore | 12 + templates/ice-design/blocks/JoinUs/.eslintrc | 62 + templates/ice-design/blocks/JoinUs/.gitignore | 13 + templates/ice-design/blocks/JoinUs/README.md | 10 + .../ice-design/blocks/JoinUs/demo/index.html | 18 + .../ice-design/blocks/JoinUs/demo/index.js | 14 + .../ice-design/blocks/JoinUs/lib/JoinUs.js | 233 ++ .../ice-design/blocks/JoinUs/lib/JoinUs.scss | 21 + .../ice-design/blocks/JoinUs/lib/index.js | 14 + .../ice-design/blocks/JoinUs/mock/api.json | 4 + .../ice-design/blocks/JoinUs/package.json | 55 + .../ice-design/blocks/JoinUs/src/JoinUs.jsx | 143 + .../ice-design/blocks/JoinUs/src/JoinUs.scss | 21 + .../ice-design/blocks/JoinUs/src/index.js | 3 + .../blocks/LandingIntroBanner/.editorconfig | 16 + .../blocks/LandingIntroBanner/.eslintignore | 12 + .../blocks/LandingIntroBanner/.eslintrc | 61 + .../blocks/LandingIntroBanner/.gitignore | 13 + .../blocks/LandingIntroBanner/README.md | 11 + .../blocks/LandingIntroBanner/demo/index.html | 18 + .../blocks/LandingIntroBanner/demo/index.js | 19 + .../lib/LandingIntroBanner.js | 155 + .../lib/LandingIntroBanner.scss | 9 + .../blocks/LandingIntroBanner/lib/index.js | 14 + .../blocks/LandingIntroBanner/mock/api.json | 4 + .../blocks/LandingIntroBanner/package.json | 54 + .../src/LandingIntroBanner.jsx | 101 + .../src/LandingIntroBanner.scss | 9 + .../blocks/LandingIntroBanner/src/index.js | 3 + .../blocks/LeftContentDisplay/.editorconfig | 16 + .../blocks/LeftContentDisplay/.eslintignore | 12 + .../blocks/LeftContentDisplay/.eslintrc | 62 + .../blocks/LeftContentDisplay/.gitignore | 13 + .../blocks/LeftContentDisplay/README.md | 10 + .../blocks/LeftContentDisplay/demo/index.html | 19 + .../blocks/LeftContentDisplay/demo/index.js | 14 + .../lib/LeftContentDisplay.js | 83 + .../lib/LeftContentDisplay.scss | 5 + .../blocks/LeftContentDisplay/lib/index.js | 14 + .../blocks/LeftContentDisplay/mock/api.json | 4 + .../blocks/LeftContentDisplay/package.json | 54 + .../src/LeftContentDisplay.jsx | 35 + .../src/LeftContentDisplay.scss | 5 + .../blocks/LeftContentDisplay/src/index.js | 3 + .../ice-design/blocks/LiteTable/.editorconfig | 16 + .../ice-design/blocks/LiteTable/.eslintignore | 12 + .../ice-design/blocks/LiteTable/.eslintrc | 62 + .../ice-design/blocks/LiteTable/.gitignore | 13 + .../ice-design/blocks/LiteTable/README.md | 12 + .../blocks/LiteTable/demo/index.html | 19 + .../ice-design/blocks/LiteTable/demo/index.js | 19 + .../blocks/LiteTable/lib/LiteTable.js | 154 + .../blocks/LiteTable/lib/LiteTable.scss | 5 + .../ice-design/blocks/LiteTable/lib/index.js | 14 + .../ice-design/blocks/LiteTable/mock/api.json | 4 + .../ice-design/blocks/LiteTable/package.json | 54 + .../blocks/LiteTable/src/LiteTable.jsx | 94 + .../blocks/LiteTable/src/LiteTable.scss | 5 + .../ice-design/blocks/LiteTable/src/index.js | 3 + .../blocks/MessageList/.editorconfig | 16 + .../blocks/MessageList/.eslintignore | 12 + .../ice-design/blocks/MessageList/.eslintrc | 62 + .../ice-design/blocks/MessageList/.gitignore | 13 + .../ice-design/blocks/MessageList/README.md | 12 + .../blocks/MessageList/demo/index.html | 19 + .../blocks/MessageList/demo/index.js | 19 + .../blocks/MessageList/lib/MessageList.js | 139 + .../blocks/MessageList/lib/MessageList.scss | 5 + .../blocks/MessageList/lib/index.js | 14 + .../blocks/MessageList/mock/api.json | 4 + .../blocks/MessageList/package.json | 51 + .../blocks/MessageList/src/MessageList.jsx | 97 + .../blocks/MessageList/src/MessageList.scss | 5 + .../blocks/MessageList/src/index.js | 3 + .../blocks/MonacoEditor/.editorconfig | 16 + .../blocks/MonacoEditor/.eslintignore | 12 + .../ice-design/blocks/MonacoEditor/.eslintrc | 62 + .../ice-design/blocks/MonacoEditor/.gitignore | 13 + .../ice-design/blocks/MonacoEditor/README.md | 12 + .../blocks/MonacoEditor/demo/index.html | 19 + .../blocks/MonacoEditor/demo/index.js | 19 + .../blocks/MonacoEditor/lib/MonacoEditor.js | 171 ++ .../blocks/MonacoEditor/lib/MonacoEditor.scss | 5 + .../blocks/MonacoEditor/lib/index.js | 14 + .../blocks/MonacoEditor/mock/api.json | 4 + .../blocks/MonacoEditor/package.json | 56 + .../blocks/MonacoEditor/src/MonacoEditor.jsx | 114 + .../blocks/MonacoEditor/src/MonacoEditor.scss | 5 + .../blocks/MonacoEditor/src/index.js | 3 + .../blocks/NotPermission/.editorconfig | 16 + .../blocks/NotPermission/.eslintignore | 12 + .../ice-design/blocks/NotPermission/.eslintrc | 62 + .../blocks/NotPermission/.gitignore | 13 + .../ice-design/blocks/NotPermission/README.md | 10 + .../blocks/NotPermission/demo/index.html | 19 + .../blocks/NotPermission/demo/index.js | 19 + .../blocks/NotPermission/lib/NotPermission.js | 85 + .../NotPermission/lib/NotPermission.scss | 5 + .../blocks/NotPermission/lib/index.js | 14 + .../blocks/NotPermission/mock/api.json | 4 + .../blocks/NotPermission/package.json | 54 + .../NotPermission/src/NotPermission.jsx | 34 + .../NotPermission/src/NotPermission.scss | 5 + .../blocks/NotPermission/src/index.js | 3 + .../blocks/OperationTable/.editorconfig | 16 + .../blocks/OperationTable/.eslintignore | 12 + .../blocks/OperationTable/.eslintrc | 62 + .../blocks/OperationTable/.gitignore | 13 + .../blocks/OperationTable/README.md | 12 + .../blocks/OperationTable/demo/index.html | 19 + .../blocks/OperationTable/demo/index.js | 19 + .../OperationTable/lib/DialogDecorator.js | 54 + .../OperationTable/lib/EditorInfoDialog.js | 163 ++ .../OperationTable/lib/OperationTable.js | 286 ++ .../OperationTable/lib/OperationTable.scss | 28 + .../blocks/OperationTable/lib/index.js | 14 + .../mock/operation-table-list.json | 122 + .../mock/update-table-item.json | 5 + .../blocks/OperationTable/package.json | 56 + .../OperationTable/src/DialogDecorator.js | 46 + .../OperationTable/src/EditorInfoDialog.jsx | 100 + .../OperationTable/src/OperationTable.jsx | 216 ++ .../OperationTable/src/OperationTable.scss | 28 + .../blocks/OperationTable/src/index.js | 3 + .../ice-design/blocks/OrderList/.editorconfig | 16 + .../ice-design/blocks/OrderList/.eslintignore | 12 + .../ice-design/blocks/OrderList/.eslintrc | 62 + .../ice-design/blocks/OrderList/.gitignore | 13 + .../ice-design/blocks/OrderList/README.md | 10 + .../blocks/OrderList/demo/index.html | 19 + .../ice-design/blocks/OrderList/demo/index.js | 14 + .../blocks/OrderList/lib/OrderList.js | 199 ++ .../blocks/OrderList/lib/OrderList.scss | 23 + .../ice-design/blocks/OrderList/lib/index.js | 14 + .../blocks/OrderList/mock/order-list.json | 40 + .../ice-design/blocks/OrderList/package.json | 53 + .../blocks/OrderList/src/OrderList.jsx | 126 + .../blocks/OrderList/src/OrderList.scss | 23 + .../ice-design/blocks/OrderList/src/index.js | 3 + .../ice-design/blocks/OurTeam/.editorconfig | 16 + .../ice-design/blocks/OurTeam/.eslintignore | 12 + templates/ice-design/blocks/OurTeam/.eslintrc | 62 + .../ice-design/blocks/OurTeam/.gitignore | 13 + templates/ice-design/blocks/OurTeam/README.md | 10 + .../ice-design/blocks/OurTeam/demo/index.html | 19 + .../ice-design/blocks/OurTeam/demo/index.js | 19 + .../ice-design/blocks/OurTeam/lib/OurTeam.js | 152 + .../blocks/OurTeam/lib/OurTeam.scss | 5 + .../ice-design/blocks/OurTeam/lib/index.js | 14 + .../ice-design/blocks/OurTeam/mock/api.json | 4 + .../ice-design/blocks/OurTeam/package.json | 51 + .../ice-design/blocks/OurTeam/src/OurTeam.jsx | 90 + .../blocks/OurTeam/src/OurTeam.scss | 5 + .../ice-design/blocks/OurTeam/src/index.js | 3 + .../blocks/PictureTextList/.editorconfig | 16 + .../blocks/PictureTextList/.eslintignore | 12 + .../blocks/PictureTextList/.eslintrc | 53 + .../blocks/PictureTextList/.gitignore | 13 + .../blocks/PictureTextList/README.md | 12 + .../blocks/PictureTextList/demo/index.html | 19 + .../blocks/PictureTextList/demo/index.js | 19 + .../PictureTextList/lib/PictureTextList.js | 144 + .../PictureTextList/lib/PictureTextList.scss | 5 + .../lib/SingleItem/SingleItem.js | 120 + .../lib/SingleItem/SingleItem.scss | 6 + .../PictureTextList/lib/SingleItem/index.js | 15 + .../blocks/PictureTextList/lib/index.js | 14 + .../blocks/PictureTextList/mock/api.json | 4 + .../blocks/PictureTextList/package.json | 54 + .../PictureTextList/src/PictureTextList.jsx | 110 + .../PictureTextList/src/PictureTextList.scss | 5 + .../src/SingleItem/SingleItem.jsx | 66 + .../src/SingleItem/SingleItem.scss | 6 + .../PictureTextList/src/SingleItem/index.js | 1 + .../blocks/PictureTextList/src/index.js | 3 + .../blocks/PieDoughnutChart/.editorconfig | 16 + .../blocks/PieDoughnutChart/.eslintignore | 12 + .../blocks/PieDoughnutChart/.eslintrc | 53 + .../blocks/PieDoughnutChart/.gitignore | 13 + .../blocks/PieDoughnutChart/README.md | 10 + .../blocks/PieDoughnutChart/demo/index.html | 19 + .../blocks/PieDoughnutChart/demo/index.js | 19 + .../PieDoughnutChart/lib/PieDoughnutChart.js | 149 + .../lib/PieDoughnutChart.scss | 5 + .../blocks/PieDoughnutChart/lib/index.js | 14 + .../blocks/PieDoughnutChart/mock/api.json | 4 + .../blocks/PieDoughnutChart/package.json | 57 + .../PieDoughnutChart/src/PieDoughnutChart.jsx | 102 + .../src/PieDoughnutChart.scss | 5 + .../blocks/PieDoughnutChart/src/index.js | 3 + .../ice-design/blocks/PriceCard/.editorconfig | 16 + .../ice-design/blocks/PriceCard/.eslintignore | 12 + .../ice-design/blocks/PriceCard/.eslintrc | 62 + .../ice-design/blocks/PriceCard/.gitignore | 13 + .../ice-design/blocks/PriceCard/README.md | 10 + .../blocks/PriceCard/demo/index.html | 19 + .../ice-design/blocks/PriceCard/demo/index.js | 14 + .../blocks/PriceCard/lib/PriceCard.js | 152 + .../blocks/PriceCard/lib/PriceCard.scss | 5 + .../ice-design/blocks/PriceCard/lib/index.js | 14 + .../ice-design/blocks/PriceCard/mock/api.json | 4 + .../ice-design/blocks/PriceCard/package.json | 54 + .../blocks/PriceCard/src/PriceCard.jsx | 91 + .../blocks/PriceCard/src/PriceCard.scss | 5 + .../ice-design/blocks/PriceCard/src/index.js | 3 + .../ice-design/blocks/PriceInfo/.editorconfig | 16 + .../ice-design/blocks/PriceInfo/.eslintignore | 12 + .../ice-design/blocks/PriceInfo/.eslintrc | 62 + .../ice-design/blocks/PriceInfo/.gitignore | 13 + .../ice-design/blocks/PriceInfo/README.md | 10 + .../blocks/PriceInfo/demo/index.html | 19 + .../ice-design/blocks/PriceInfo/demo/index.js | 14 + .../blocks/PriceInfo/lib/PriceInfo.js | 161 ++ .../blocks/PriceInfo/lib/PriceInfo.scss | 5 + .../ice-design/blocks/PriceInfo/lib/index.js | 14 + .../ice-design/blocks/PriceInfo/mock/api.json | 4 + .../ice-design/blocks/PriceInfo/package.json | 51 + .../blocks/PriceInfo/src/PriceInfo.jsx | 97 + .../blocks/PriceInfo/src/PriceInfo.scss | 5 + .../ice-design/blocks/PriceInfo/src/index.js | 3 + .../blocks/PrivateMessageForm/.editorconfig | 16 + .../blocks/PrivateMessageForm/.eslintignore | 12 + .../blocks/PrivateMessageForm/.eslintrc | 62 + .../blocks/PrivateMessageForm/.gitignore | 13 + .../blocks/PrivateMessageForm/README.md | 12 + .../blocks/PrivateMessageForm/demo/index.html | 19 + .../blocks/PrivateMessageForm/demo/index.js | 19 + .../lib/PrivateMessageForm.js | 148 + .../lib/PrivateMessageForm.scss | 5 + .../blocks/PrivateMessageForm/lib/index.js | 14 + .../blocks/PrivateMessageForm/mock/api.json | 4 + .../blocks/PrivateMessageForm/package.json | 54 + .../src/PrivateMessageForm.jsx | 89 + .../src/PrivateMessageForm.scss | 5 + .../blocks/PrivateMessageForm/src/index.js | 3 + .../blocks/ProductInfo/.editorconfig | 16 + .../blocks/ProductInfo/.eslintignore | 12 + .../ice-design/blocks/ProductInfo/.eslintrc | 62 + .../ice-design/blocks/ProductInfo/.gitignore | 13 + .../ice-design/blocks/ProductInfo/README.md | 10 + .../blocks/ProductInfo/demo/index.html | 19 + .../blocks/ProductInfo/demo/index.js | 19 + .../blocks/ProductInfo/lib/ProductInfo.js | 137 + .../blocks/ProductInfo/lib/ProductInfo.scss | 5 + .../blocks/ProductInfo/lib/index.js | 14 + .../blocks/ProductInfo/mock/api.json | 4 + .../blocks/ProductInfo/package.json | 51 + .../blocks/ProductInfo/src/ProductInfo.jsx | 91 + .../blocks/ProductInfo/src/ProductInfo.scss | 5 + .../blocks/ProductInfo/src/index.js | 3 + .../blocks/ProgressTable/.editorconfig | 16 + .../blocks/ProgressTable/.eslintignore | 12 + .../ice-design/blocks/ProgressTable/.eslintrc | 53 + .../blocks/ProgressTable/.gitignore | 13 + .../ice-design/blocks/ProgressTable/README.md | 10 + .../blocks/ProgressTable/demo/index.html | 18 + .../blocks/ProgressTable/demo/index.js | 19 + .../blocks/ProgressTable/lib/ProgressTable.js | 131 + .../ProgressTable/lib/ProgressTable.scss | 8 + .../blocks/ProgressTable/lib/index.js | 14 + .../blocks/ProgressTable/mock/api.json | 4 + .../blocks/ProgressTable/package.json | 54 + .../ProgressTable/src/ProgressTable.jsx | 84 + .../ProgressTable/src/ProgressTable.scss | 8 + .../blocks/ProgressTable/src/index.js | 3 + .../blocks/RegisterForm/.editorconfig | 16 + .../blocks/RegisterForm/.eslintignore | 12 + .../ice-design/blocks/RegisterForm/.eslintrc | 62 + .../ice-design/blocks/RegisterForm/.gitignore | 13 + .../ice-design/blocks/RegisterForm/README.md | 10 + .../ice-design/blocks/RegisterForm/abc.json | 13 + .../blocks/RegisterForm/demo/index.html | 19 + .../blocks/RegisterForm/demo/index.js | 19 + .../blocks/RegisterForm/lib/RegisterForm.js | 194 ++ .../blocks/RegisterForm/lib/RegisterForm.scss | 59 + .../blocks/RegisterForm/lib/index.js | 14 + .../blocks/RegisterForm/mock/api.json | 4 + .../blocks/RegisterForm/package.json | 52 + .../blocks/RegisterForm/src/RegisterForm.jsx | 123 + .../blocks/RegisterForm/src/RegisterForm.scss | 59 + .../blocks/RegisterForm/src/index.js | 3 + .../blocks/RightContentDisplay/.editorconfig | 16 + .../blocks/RightContentDisplay/.eslintignore | 12 + .../blocks/RightContentDisplay/.eslintrc | 62 + .../blocks/RightContentDisplay/.gitignore | 13 + .../blocks/RightContentDisplay/README.md | 10 + .../RightContentDisplay/demo/index.html | 19 + .../blocks/RightContentDisplay/demo/index.js | 14 + .../lib/RightContentDisplay.js | 83 + .../lib/RightContentDisplay.scss | 5 + .../blocks/RightContentDisplay/lib/index.js | 14 + .../blocks/RightContentDisplay/mock/api.json | 4 + .../blocks/RightContentDisplay/package.json | 54 + .../src/RightContentDisplay.jsx | 35 + .../src/RightContentDisplay.scss | 5 + .../blocks/RightContentDisplay/src/index.js | 3 + .../blocks/SelectableTable/.editorconfig | 16 + .../blocks/SelectableTable/.eslintignore | 12 + .../blocks/SelectableTable/.eslintrc | 62 + .../blocks/SelectableTable/.gitignore | 13 + .../blocks/SelectableTable/README.md | 10 + .../blocks/SelectableTable/demo/index.html | 19 + .../blocks/SelectableTable/demo/index.js | 19 + .../SelectableTable/lib/SelectableTable.js | 248 ++ .../SelectableTable/lib/SelectableTable.scss | 7 + .../blocks/SelectableTable/lib/index.js | 14 + .../blocks/SelectableTable/mock/api.json | 4 + .../blocks/SelectableTable/package.json | 52 + .../SelectableTable/src/SelectableTable.jsx | 179 ++ .../SelectableTable/src/SelectableTable.scss | 7 + .../blocks/SelectableTable/src/index.js | 3 + .../blocks/SignupForm/.editorconfig | 16 + .../blocks/SignupForm/.eslintignore | 12 + .../ice-design/blocks/SignupForm/.eslintrc | 62 + .../ice-design/blocks/SignupForm/.gitignore | 13 + .../ice-design/blocks/SignupForm/README.md | 10 + .../blocks/SignupForm/demo/index.html | 19 + .../blocks/SignupForm/demo/index.js | 19 + .../blocks/SignupForm/lib/SignupForm.js | 172 ++ .../blocks/SignupForm/lib/SignupForm.scss | 59 + .../ice-design/blocks/SignupForm/lib/index.js | 14 + .../blocks/SignupForm/mock/api.json | 4 + .../ice-design/blocks/SignupForm/package.json | 52 + .../blocks/SignupForm/src/SignupForm.jsx | 93 + .../blocks/SignupForm/src/SignupForm.scss | 59 + .../ice-design/blocks/SignupForm/src/index.js | 3 + .../blocks/SimpleFluencyForm/.editorconfig | 16 + .../blocks/SimpleFluencyForm/.eslintignore | 12 + .../blocks/SimpleFluencyForm/.eslintrc | 62 + .../blocks/SimpleFluencyForm/.gitignore | 13 + .../blocks/SimpleFluencyForm/README.md | 12 + .../blocks/SimpleFluencyForm/demo/index.html | 19 + .../blocks/SimpleFluencyForm/demo/index.js | 19 + .../lib/SimpleFluencyForm.js | 285 ++ .../lib/SimpleFluencyForm.scss | 5 + .../blocks/SimpleFluencyForm/lib/index.js | 14 + .../blocks/SimpleFluencyForm/mock/api.json | 4 + .../blocks/SimpleFluencyForm/package.json | 55 + .../src/SimpleFluencyForm.jsx | 166 ++ .../src/SimpleFluencyForm.scss | 5 + .../blocks/SimpleFluencyForm/src/index.js | 3 + .../blocks/SimpleFormDialog/.editorconfig | 16 + .../blocks/SimpleFormDialog/.eslintignore | 12 + .../blocks/SimpleFormDialog/.eslintrc | 62 + .../blocks/SimpleFormDialog/.gitignore | 13 + .../blocks/SimpleFormDialog/README.md | 12 + .../blocks/SimpleFormDialog/demo/index.html | 19 + .../blocks/SimpleFormDialog/demo/index.js | 34 + .../SimpleFormDialog/lib/CreateFuncDialog.js | 51 + .../SimpleFormDialog/lib/SimpleFormDialog.js | 244 ++ .../lib/SimpleFormDialog.scss | 5 + .../blocks/SimpleFormDialog/lib/index.js | 14 + .../blocks/SimpleFormDialog/mock/api.json | 4 + .../blocks/SimpleFormDialog/package.json | 52 + .../SimpleFormDialog/src/CreateFuncDialog.js | 43 + .../SimpleFormDialog/src/SimpleFormDialog.jsx | 169 ++ .../src/SimpleFormDialog.scss | 5 + .../blocks/SimpleFormDialog/src/index.js | 3 + .../blocks/SimpleTable/.editorconfig | 16 + .../blocks/SimpleTable/.eslintignore | 12 + .../ice-design/blocks/SimpleTable/.eslintrc | 61 + .../ice-design/blocks/SimpleTable/.gitignore | 13 + .../ice-design/blocks/SimpleTable/README.md | 12 + .../blocks/SimpleTable/demo/index.html | 18 + .../blocks/SimpleTable/demo/index.js | 19 + .../blocks/SimpleTable/lib/SimpleTable.js | 234 ++ .../blocks/SimpleTable/lib/SimpleTable.scss | 10 + .../blocks/SimpleTable/lib/index.js | 14 + .../SimpleTable/mock/simple-table-list.json | 122 + .../blocks/SimpleTable/package.json | 57 + .../blocks/SimpleTable/src/SimpleTable.jsx | 171 ++ .../blocks/SimpleTable/src/SimpleTable.scss | 10 + .../blocks/SimpleTable/src/index.js | 3 + .../blocks/SimpleTestimonial/.editorconfig | 16 + .../blocks/SimpleTestimonial/.eslintignore | 12 + .../blocks/SimpleTestimonial/.eslintrc | 62 + .../blocks/SimpleTestimonial/.gitignore | 13 + .../blocks/SimpleTestimonial/README.md | 10 + .../blocks/SimpleTestimonial/demo/index.html | 19 + .../blocks/SimpleTestimonial/demo/index.js | 19 + .../lib/SimpleTestimonial.js | 114 + .../lib/SimpleTestimonial.scss | 5 + .../blocks/SimpleTestimonial/lib/index.js | 14 + .../blocks/SimpleTestimonial/mock/api.json | 4 + .../blocks/SimpleTestimonial/package.json | 51 + .../src/SimpleTestimonial.jsx | 62 + .../src/SimpleTestimonial.scss | 5 + .../blocks/SimpleTestimonial/src/index.js | 3 + .../blocks/SortCardList/.editorconfig | 16 + .../blocks/SortCardList/.eslintignore | 12 + .../ice-design/blocks/SortCardList/.eslintrc | 62 + .../ice-design/blocks/SortCardList/.gitignore | 14 + .../ice-design/blocks/SortCardList/README.md | 12 + .../blocks/SortCardList/demo/index.html | 19 + .../blocks/SortCardList/demo/index.js | 19 + .../blocks/SortCardList/mock/api.json | 4 + .../blocks/SortCardList/package.json | 57 + .../blocks/SortCardList/src/SortCardList.jsx | 205 ++ .../blocks/SortCardList/src/SortCardList.scss | 5 + .../blocks/SortCardList/src/index.js | 3 + .../blocks/SortableTable/.editorconfig | 16 + .../blocks/SortableTable/.eslintignore | 12 + .../ice-design/blocks/SortableTable/.eslintrc | 62 + .../blocks/SortableTable/.gitignore | 13 + .../ice-design/blocks/SortableTable/README.md | 12 + .../blocks/SortableTable/demo/index.html | 19 + .../blocks/SortableTable/demo/index.js | 19 + .../blocks/SortableTable/lib/SortableTable.js | 176 ++ .../SortableTable/lib/SortableTable.scss | 5 + .../blocks/SortableTable/lib/index.js | 14 + .../blocks/SortableTable/mock/api.json | 4 + .../blocks/SortableTable/package.json | 51 + .../SortableTable/src/SortableTable.jsx | 119 + .../SortableTable/src/SortableTable.scss | 5 + .../blocks/SortableTable/src/index.js | 3 + .../blocks/StatisticalCard/.editorconfig | 16 + .../blocks/StatisticalCard/.eslintignore | 12 + .../blocks/StatisticalCard/.eslintrc | 62 + .../blocks/StatisticalCard/.gitignore | 13 + .../blocks/StatisticalCard/README.md | 12 + .../blocks/StatisticalCard/demo/index.html | 19 + .../blocks/StatisticalCard/demo/index.js | 17 + .../blocks/StatisticalCard/mock/api.json | 4 + .../blocks/StatisticalCard/package.json | 44 + .../StatisticalCard/src/StatisticalCard.jsx | 95 + .../StatisticalCard/src/StatisticalCard.scss | 46 + .../blocks/StatisticalCard/src/index.js | 3 + .../ice-design/blocks/Subscribe/.editorconfig | 16 + .../ice-design/blocks/Subscribe/.eslintignore | 12 + .../ice-design/blocks/Subscribe/.eslintrc | 62 + .../ice-design/blocks/Subscribe/.gitignore | 13 + .../ice-design/blocks/Subscribe/README.md | 12 + .../blocks/Subscribe/demo/index.html | 19 + .../ice-design/blocks/Subscribe/demo/index.js | 19 + .../ice-design/blocks/Subscribe/mock/api.json | 4 + .../ice-design/blocks/Subscribe/package.json | 48 + .../blocks/Subscribe/src/Subscribe.jsx | 102 + .../blocks/Subscribe/src/Subscribe.scss | 5 + .../ice-design/blocks/Subscribe/src/index.js | 3 + .../blocks/SuccessDetail/.editorconfig | 16 + .../blocks/SuccessDetail/.eslintignore | 12 + .../ice-design/blocks/SuccessDetail/.eslintrc | 62 + .../blocks/SuccessDetail/.gitignore | 13 + .../ice-design/blocks/SuccessDetail/README.md | 10 + .../blocks/SuccessDetail/demo/index.html | 19 + .../blocks/SuccessDetail/demo/index.js | 14 + .../blocks/SuccessDetail/mock/api.json | 4 + .../blocks/SuccessDetail/package.json | 51 + .../SuccessDetail/src/SuccessDetail.jsx | 92 + .../SuccessDetail/src/SuccessDetail.scss | 4 + .../blocks/SuccessDetail/src/index.js | 3 + .../blocks/SuccessDialog/.editorconfig | 16 + .../blocks/SuccessDialog/.eslintignore | 12 + .../ice-design/blocks/SuccessDialog/.eslintrc | 62 + .../blocks/SuccessDialog/.gitignore | 13 + .../ice-design/blocks/SuccessDialog/README.md | 10 + .../blocks/SuccessDialog/demo/index.html | 19 + .../blocks/SuccessDialog/demo/index.js | 25 + .../blocks/SuccessDialog/mock/api.json | 4 + .../blocks/SuccessDialog/package.json | 44 + .../SuccessDialog/src/CreateFuncDialog.js | 46 + .../SuccessDialog/src/SuccessDialog.jsx | 46 + .../SuccessDialog/src/SuccessDialog.scss | 4 + .../blocks/SuccessDialog/src/index.js | 3 + .../blocks/SystemNoticeList/.editorconfig | 16 + .../blocks/SystemNoticeList/.eslintignore | 12 + .../blocks/SystemNoticeList/.eslintrc | 62 + .../blocks/SystemNoticeList/.gitignore | 13 + .../blocks/SystemNoticeList/README.md | 10 + .../blocks/SystemNoticeList/demo/index.html | 19 + .../blocks/SystemNoticeList/demo/index.js | 19 + .../blocks/SystemNoticeList/mock/api.json | 4 + .../blocks/SystemNoticeList/package.json | 52 + .../SystemNoticeList/src/SystemNoticeList.jsx | 132 + .../src/SystemNoticeList.scss | 16 + .../blocks/SystemNoticeList/src/index.js | 3 + .../blocks/TabArticle/.editorconfig | 16 + .../blocks/TabArticle/.eslintignore | 12 + .../ice-design/blocks/TabArticle/.eslintrc | 62 + .../ice-design/blocks/TabArticle/.gitignore | 14 + .../ice-design/blocks/TabArticle/README.md | 12 + .../blocks/TabArticle/demo/index.html | 19 + .../blocks/TabArticle/demo/index.js | 19 + .../blocks/TabArticle/mock/api.json | 4 + .../ice-design/blocks/TabArticle/package.json | 54 + .../src/ArticleList/ArticleList.jsx | 114 + .../src/ArticleList/ArticleList.scss | 5 + .../TabArticle/src/ArticleList/index.js | 3 + .../blocks/TabArticle/src/TabArticle.jsx | 118 + .../blocks/TabArticle/src/TabArticle.scss | 5 + .../ice-design/blocks/TabArticle/src/index.js | 3 + .../ice-design/blocks/TabDialog/.editorconfig | 16 + .../ice-design/blocks/TabDialog/.eslintignore | 12 + .../ice-design/blocks/TabDialog/.eslintrc | 62 + .../ice-design/blocks/TabDialog/.gitignore | 14 + .../ice-design/blocks/TabDialog/README.md | 12 + .../blocks/TabDialog/demo/index.html | 19 + .../ice-design/blocks/TabDialog/demo/index.js | 33 + .../ice-design/blocks/TabDialog/mock/api.json | 4 + .../ice-design/blocks/TabDialog/package.json | 54 + .../blocks/TabDialog/src/CreateFuncDialog.js | 46 + .../blocks/TabDialog/src/TabDialog.jsx | 140 + .../blocks/TabDialog/src/TabDialog.scss | 5 + .../ice-design/blocks/TabDialog/src/index.js | 3 + .../blocks/TagMessageList/.editorconfig | 16 + .../blocks/TagMessageList/.eslintignore | 12 + .../blocks/TagMessageList/.eslintrc | 62 + .../blocks/TagMessageList/.gitignore | 14 + .../blocks/TagMessageList/README.md | 12 + .../blocks/TagMessageList/demo/index.html | 19 + .../blocks/TagMessageList/demo/index.js | 19 + .../blocks/TagMessageList/mock/api.json | 4 + .../blocks/TagMessageList/package.json | 57 + .../TagMessageList/src/TagMessageList.jsx | 74 + .../TagMessageList/src/TagMessageList.scss | 11 + .../blocks/TagMessageList/src/index.js | 3 + .../blocks/TeamDisplay/.editorconfig | 16 + .../blocks/TeamDisplay/.eslintignore | 12 + .../ice-design/blocks/TeamDisplay/.eslintrc | 62 + .../ice-design/blocks/TeamDisplay/.gitignore | 14 + .../ice-design/blocks/TeamDisplay/README.md | 10 + .../blocks/TeamDisplay/demo/index.html | 19 + .../blocks/TeamDisplay/demo/index.js | 19 + .../blocks/TeamDisplay/mock/api.json | 4 + .../blocks/TeamDisplay/package.json | 54 + .../blocks/TeamDisplay/src/TeamDisplay.jsx | 74 + .../blocks/TeamDisplay/src/TeamDisplay.scss | 5 + .../blocks/TeamDisplay/src/index.js | 3 + .../ice-design/blocks/TermsInfo/.editorconfig | 16 + .../ice-design/blocks/TermsInfo/.eslintignore | 12 + .../ice-design/blocks/TermsInfo/.eslintrc | 62 + .../ice-design/blocks/TermsInfo/.gitignore | 13 + .../ice-design/blocks/TermsInfo/README.md | 10 + .../blocks/TermsInfo/demo/index.html | 19 + .../ice-design/blocks/TermsInfo/demo/index.js | 14 + .../ice-design/blocks/TermsInfo/mock/api.json | 4 + .../ice-design/blocks/TermsInfo/package.json | 52 + .../blocks/TermsInfo/src/TermsInfo.jsx | 87 + .../blocks/TermsInfo/src/TermsInfo.scss | 4 + .../ice-design/blocks/TermsInfo/src/index.js | 3 + .../blocks/Testimonial/.editorconfig | 16 + .../blocks/Testimonial/.eslintignore | 12 + .../ice-design/blocks/Testimonial/.eslintrc | 62 + .../ice-design/blocks/Testimonial/.gitignore | 14 + .../ice-design/blocks/Testimonial/README.md | 10 + .../blocks/Testimonial/demo/index.html | 19 + .../blocks/Testimonial/demo/index.js | 14 + .../blocks/Testimonial/lib/Testimonial.js | 165 ++ .../blocks/Testimonial/lib/Testimonial.scss | 5 + .../blocks/Testimonial/lib/index.js | 14 + .../blocks/Testimonial/mock/api.json | 4 + .../blocks/Testimonial/package.json | 54 + .../blocks/Testimonial/src/Testimonial.jsx | 115 + .../blocks/Testimonial/src/Testimonial.scss | 5 + .../blocks/Testimonial/src/index.js | 3 + .../blocks/TestimonialCard/.editorconfig | 16 + .../blocks/TestimonialCard/.eslintignore | 12 + .../blocks/TestimonialCard/.eslintrc | 62 + .../blocks/TestimonialCard/.gitignore | 14 + .../blocks/TestimonialCard/README.md | 10 + .../blocks/TestimonialCard/demo/index.html | 19 + .../blocks/TestimonialCard/demo/index.js | 14 + .../blocks/TestimonialCard/mock/api.json | 4 + .../blocks/TestimonialCard/package.json | 55 + .../TestimonialCard/src/TestimonialCard.jsx | 114 + .../TestimonialCard/src/TestimonialCard.scss | 4 + .../blocks/TestimonialCard/src/index.js | 3 + .../ice-design/blocks/TextCard/.editorconfig | 16 + .../ice-design/blocks/TextCard/.eslintignore | 12 + .../ice-design/blocks/TextCard/.eslintrc | 62 + .../ice-design/blocks/TextCard/.gitignore | 13 + .../ice-design/blocks/TextCard/README.md | 12 + .../blocks/TextCard/demo/index.html | 19 + .../ice-design/blocks/TextCard/demo/index.js | 19 + .../ice-design/blocks/TextCard/mock/api.json | 4 + .../ice-design/blocks/TextCard/package.json | 51 + .../blocks/TextCard/src/TextCard.jsx | 87 + .../blocks/TextCard/src/TextCard.scss | 9 + .../ice-design/blocks/TextCard/src/index.js | 3 + .../blocks/TextSearchList/.editorconfig | 16 + .../blocks/TextSearchList/.eslintignore | 12 + .../blocks/TextSearchList/.eslintrc | 53 + .../blocks/TextSearchList/.gitignore | 13 + .../blocks/TextSearchList/README.md | 12 + .../blocks/TextSearchList/demo/index.html | 19 + .../blocks/TextSearchList/demo/index.js | 19 + .../lib/ArticleList/ArticleList.js | 180 ++ .../lib/ArticleList/ArticleList.scss | 5 + .../TextSearchList/lib/ArticleList/index.js | 14 + .../TextSearchList/lib/Filter/Filter.js | 137 + .../blocks/TextSearchList/lib/Filter/index.js | 14 + .../TextSearchList/lib/TextSearchList.js | 126 + .../TextSearchList/lib/TextSearchList.scss | 5 + .../blocks/TextSearchList/lib/index.js | 14 + .../blocks/TextSearchList/mock/api.json | 4 + .../blocks/TextSearchList/package.json | 54 + .../src/ArticleList/ArticleList.jsx | 107 + .../src/ArticleList/ArticleList.scss | 5 + .../TextSearchList/src/ArticleList/index.js | 3 + .../TextSearchList/src/Filter/Filter.jsx | 46 + .../blocks/TextSearchList/src/Filter/index.js | 3 + .../TextSearchList/src/TextSearchList.jsx | 89 + .../TextSearchList/src/TextSearchList.scss | 5 + .../blocks/TextSearchList/src/index.js | 3 + .../blocks/TimeFilterTable/.editorconfig | 16 + .../blocks/TimeFilterTable/.eslintignore | 11 + .../blocks/TimeFilterTable/.eslintrc | 5 + .../blocks/TimeFilterTable/.gitignore | 11 + .../blocks/TimeFilterTable/README.md | 12 + .../blocks/TimeFilterTable/abc.json | 14 + .../blocks/TimeFilterTable/demo/index.html | 19 + .../blocks/TimeFilterTable/demo/index.js | 19 + .../mock/time-filter-table.json | 52 + .../blocks/TimeFilterTable/package.json | 53 + .../TimeFilterTable/src/TimeFilterTable.jsx | 168 ++ .../TimeFilterTable/src/TimeFilterTable.scss | 5 + .../blocks/TimeFilterTable/src/index.js | 3 + .../ice-design/blocks/TopicCard/.editorconfig | 16 + .../ice-design/blocks/TopicCard/.eslintignore | 12 + .../ice-design/blocks/TopicCard/.eslintrc | 61 + .../ice-design/blocks/TopicCard/.gitignore | 13 + .../ice-design/blocks/TopicCard/README.md | 10 + .../blocks/TopicCard/demo/index.html | 18 + .../ice-design/blocks/TopicCard/demo/index.js | 19 + .../blocks/TopicCard/lib/TopicCard.js | 193 ++ .../blocks/TopicCard/lib/TopicCard.scss | 13 + .../ice-design/blocks/TopicCard/lib/index.js | 14 + .../ice-design/blocks/TopicCard/mock/api.json | 4 + .../ice-design/blocks/TopicCard/package.json | 56 + .../blocks/TopicCard/src/TopicCard.jsx | 127 + .../blocks/TopicCard/src/TopicCard.scss | 13 + .../ice-design/blocks/TopicCard/src/index.js | 3 + .../blocks/TreeCardList/.editorconfig | 16 + .../blocks/TreeCardList/.eslintignore | 12 + .../ice-design/blocks/TreeCardList/.eslintrc | 62 + .../ice-design/blocks/TreeCardList/.gitignore | 13 + .../ice-design/blocks/TreeCardList/README.md | 12 + .../blocks/TreeCardList/demo/index.html | 19 + .../blocks/TreeCardList/demo/index.js | 19 + .../blocks/TreeCardList/mock/api.json | 4 + .../blocks/TreeCardList/package.json | 54 + .../blocks/TreeCardList/src/TreeCardList.jsx | 93 + .../blocks/TreeCardList/src/TreeCardList.scss | 9 + .../blocks/TreeCardList/src/index.js | 3 + .../layouts/AsideLayout/.editorconfig | 16 + .../layouts/AsideLayout/.eslintignore | 12 + .../ice-design/layouts/AsideLayout/.eslintrc | 61 + .../ice-design/layouts/AsideLayout/.gitignore | 20 + .../ice-design/layouts/AsideLayout/README.md | 10 + .../layouts/AsideLayout/demo/index.html | 18 + .../layouts/AsideLayout/demo/index.js | 13 + .../layouts/AsideLayout/mock/api.json | 11 + .../layouts/AsideLayout/package.json | 58 + .../layouts/AsideLayout/src/Layout.jsx | 131 + .../layouts/AsideLayout/src/Layout.scss | 51 + .../AsideLayout/src/__components_Footer__.jsx | 43 + .../AsideLayout/src/__components_Header__.jsx | 69 + .../AsideLayout/src/__components_Logo__.jsx | 45 + .../AsideLayout/src/__config_navs__.json | 91 + .../layouts/AsideLayout/src/index.js | 1 + .../layouts/BasicLayout/.editorconfig | 16 + .../layouts/BasicLayout/.eslintignore | 12 + .../ice-design/layouts/BasicLayout/.eslintrc | 61 + .../ice-design/layouts/BasicLayout/.gitignore | 16 + .../ice-design/layouts/BasicLayout/README.md | 10 + .../layouts/BasicLayout/demo/index.html | 18 + .../layouts/BasicLayout/demo/index.js | 13 + .../layouts/BasicLayout/mock/api.json | 11 + .../layouts/BasicLayout/package.json | 58 + .../layouts/BasicLayout/src/Layout.jsx | 30 + .../layouts/BasicLayout/src/Layout.scss | 46 + .../BasicLayout/src/__components_Footer__.jsx | 43 + .../BasicLayout/src/__components_Header__.jsx | 69 + .../BasicLayout/src/__components_Logo__.jsx | 45 + .../BasicLayout/src/__config_navs__.json | 91 + .../layouts/BasicLayout/src/index.js | 1 + .../layouts/LandingLayout/.editorconfig | 16 + .../layouts/LandingLayout/.eslintignore | 12 + .../layouts/LandingLayout/.eslintrc | 61 + .../layouts/LandingLayout/.gitignore | 16 + .../layouts/LandingLayout/README.md | 10 + .../layouts/LandingLayout/demo/index.html | 18 + .../layouts/LandingLayout/demo/index.js | 21 + .../layouts/LandingLayout/mock/api.json | 11 + .../layouts/LandingLayout/package.json | 58 + .../layouts/LandingLayout/src/Layout.jsx | 22 + .../layouts/LandingLayout/src/Layout.scss | 35 + .../src/__components_Footer__.jsx | 43 + .../src/__components_Header__.jsx | 69 + .../LandingLayout/src/__components_Logo__.jsx | 45 + .../LandingLayout/src/__config_navs__.json | 91 + .../layouts/LandingLayout/src/index.js | 1 + .../layouts/ScalableAsideLayout/.editorconfig | 16 + .../layouts/ScalableAsideLayout/.eslintignore | 12 + .../layouts/ScalableAsideLayout/.eslintrc | 61 + .../layouts/ScalableAsideLayout/.gitignore | 20 + .../layouts/ScalableAsideLayout/README.md | 10 + .../ScalableAsideLayout/demo/index.html | 18 + .../layouts/ScalableAsideLayout/demo/index.js | 13 + .../layouts/ScalableAsideLayout/mock/api.json | 4 + .../layouts/ScalableAsideLayout/package.json | 58 + .../ScalableAsideLayout/src/Layout.jsx | 156 + .../ScalableAsideLayout/src/Layout.scss | 37 + .../src/__components_Footer__.jsx | 43 + .../src/__components_Header__.jsx | 69 + .../src/__components_Logo__.jsx | 45 + .../src/__config_navs__.json | 91 + .../layouts/ScalableAsideLayout/src/index.js | 1 + 1389 files changed, 49361 insertions(+) create mode 100644 .gitignore create mode 100644 lerna.json create mode 100644 package.json create mode 100644 templates/ice-design/blocks/ApplicationProgress/.editorconfig create mode 100644 templates/ice-design/blocks/ApplicationProgress/.eslintignore create mode 100644 templates/ice-design/blocks/ApplicationProgress/.eslintrc create mode 100644 templates/ice-design/blocks/ApplicationProgress/.gitignore create mode 100644 templates/ice-design/blocks/ApplicationProgress/README.md create mode 100644 templates/ice-design/blocks/ApplicationProgress/demo/index.html create mode 100644 templates/ice-design/blocks/ApplicationProgress/demo/index.js create mode 100644 templates/ice-design/blocks/ApplicationProgress/mock/api.json create mode 100644 templates/ice-design/blocks/ApplicationProgress/package.json create mode 100644 templates/ice-design/blocks/ApplicationProgress/src/ApplicationProgress.jsx create mode 100644 templates/ice-design/blocks/ApplicationProgress/src/ApplicationProgress.scss create mode 100644 templates/ice-design/blocks/ApplicationProgress/src/index.js create mode 100644 templates/ice-design/blocks/AreaStackChart/.editorconfig create mode 100644 templates/ice-design/blocks/AreaStackChart/.eslintignore create mode 100644 templates/ice-design/blocks/AreaStackChart/.eslintrc create mode 100644 templates/ice-design/blocks/AreaStackChart/.gitignore create mode 100644 templates/ice-design/blocks/AreaStackChart/README.md create mode 100644 templates/ice-design/blocks/AreaStackChart/demo/index.html create mode 100644 templates/ice-design/blocks/AreaStackChart/demo/index.js create mode 100644 templates/ice-design/blocks/AreaStackChart/lib/AreaStackChart.js create mode 100644 templates/ice-design/blocks/AreaStackChart/lib/AreaStackChart.scss create mode 100644 templates/ice-design/blocks/AreaStackChart/lib/index.js create mode 100644 templates/ice-design/blocks/AreaStackChart/mock/api.json create mode 100644 templates/ice-design/blocks/AreaStackChart/package.json create mode 100644 templates/ice-design/blocks/AreaStackChart/src/AreaStackChart.jsx create mode 100644 templates/ice-design/blocks/AreaStackChart/src/AreaStackChart.scss create mode 100644 templates/ice-design/blocks/AreaStackChart/src/index.js create mode 100644 templates/ice-design/blocks/ArticleList/.editorconfig create mode 100644 templates/ice-design/blocks/ArticleList/.eslintignore create mode 100644 templates/ice-design/blocks/ArticleList/.eslintrc create mode 100644 templates/ice-design/blocks/ArticleList/.gitignore create mode 100644 templates/ice-design/blocks/ArticleList/README.md create mode 100644 templates/ice-design/blocks/ArticleList/demo/index.html create mode 100644 templates/ice-design/blocks/ArticleList/demo/index.js create mode 100644 templates/ice-design/blocks/ArticleList/mock/api.json create mode 100644 templates/ice-design/blocks/ArticleList/package.json create mode 100644 templates/ice-design/blocks/ArticleList/src/ArticleList.jsx create mode 100644 templates/ice-design/blocks/ArticleList/src/ArticleList.scss create mode 100644 templates/ice-design/blocks/ArticleList/src/index.js create mode 100644 templates/ice-design/blocks/BasicDetailInfo/.editorconfig create mode 100644 templates/ice-design/blocks/BasicDetailInfo/.eslintignore create mode 100644 templates/ice-design/blocks/BasicDetailInfo/.eslintrc create mode 100644 templates/ice-design/blocks/BasicDetailInfo/.gitignore create mode 100644 templates/ice-design/blocks/BasicDetailInfo/README.md create mode 100644 templates/ice-design/blocks/BasicDetailInfo/demo/index.html create mode 100644 templates/ice-design/blocks/BasicDetailInfo/demo/index.js create mode 100644 templates/ice-design/blocks/BasicDetailInfo/mock/api.json create mode 100644 templates/ice-design/blocks/BasicDetailInfo/package.json create mode 100644 templates/ice-design/blocks/BasicDetailInfo/src/BasicDetailInfo.jsx create mode 100644 templates/ice-design/blocks/BasicDetailInfo/src/BasicDetailInfo.scss create mode 100644 templates/ice-design/blocks/BasicDetailInfo/src/index.js create mode 100644 templates/ice-design/blocks/BasicException/.editorconfig create mode 100644 templates/ice-design/blocks/BasicException/.eslintignore create mode 100644 templates/ice-design/blocks/BasicException/.eslintrc create mode 100644 templates/ice-design/blocks/BasicException/.gitignore create mode 100644 templates/ice-design/blocks/BasicException/README.md create mode 100644 templates/ice-design/blocks/BasicException/abc.json create mode 100644 templates/ice-design/blocks/BasicException/demo/index.html create mode 100644 templates/ice-design/blocks/BasicException/demo/index.js create mode 100644 templates/ice-design/blocks/BasicException/lib/BasicException.js create mode 100644 templates/ice-design/blocks/BasicException/lib/BasicException.scss create mode 100644 templates/ice-design/blocks/BasicException/lib/index.js create mode 100644 templates/ice-design/blocks/BasicException/mock/api.json create mode 100644 templates/ice-design/blocks/BasicException/package.json create mode 100644 templates/ice-design/blocks/BasicException/src/BasicException.jsx create mode 100644 templates/ice-design/blocks/BasicException/src/BasicException.scss create mode 100644 templates/ice-design/blocks/BasicException/src/index.js create mode 100644 templates/ice-design/blocks/BasicNotFound/.editorconfig create mode 100644 templates/ice-design/blocks/BasicNotFound/.eslintignore create mode 100644 templates/ice-design/blocks/BasicNotFound/.eslintrc create mode 100644 templates/ice-design/blocks/BasicNotFound/.gitignore create mode 100644 templates/ice-design/blocks/BasicNotFound/README.md create mode 100644 templates/ice-design/blocks/BasicNotFound/demo/index.html create mode 100644 templates/ice-design/blocks/BasicNotFound/demo/index.js create mode 100644 templates/ice-design/blocks/BasicNotFound/lib/BasicNotFound.js create mode 100644 templates/ice-design/blocks/BasicNotFound/lib/BasicNotFound.scss create mode 100644 templates/ice-design/blocks/BasicNotFound/lib/index.js create mode 100644 templates/ice-design/blocks/BasicNotFound/mock/api.json create mode 100644 templates/ice-design/blocks/BasicNotFound/package.json create mode 100644 templates/ice-design/blocks/BasicNotFound/src/BasicNotFound.jsx create mode 100644 templates/ice-design/blocks/BasicNotFound/src/BasicNotFound.scss create mode 100644 templates/ice-design/blocks/BasicNotFound/src/index.js create mode 100644 templates/ice-design/blocks/BasicTab/.editorconfig create mode 100644 templates/ice-design/blocks/BasicTab/.eslintignore create mode 100644 templates/ice-design/blocks/BasicTab/.eslintrc create mode 100644 templates/ice-design/blocks/BasicTab/.gitignore create mode 100644 templates/ice-design/blocks/BasicTab/README.md create mode 100644 templates/ice-design/blocks/BasicTab/demo/index.html create mode 100644 templates/ice-design/blocks/BasicTab/demo/index.js create mode 100644 templates/ice-design/blocks/BasicTab/lib/BasicTab.js create mode 100644 templates/ice-design/blocks/BasicTab/lib/BasicTab.scss create mode 100644 templates/ice-design/blocks/BasicTab/lib/index.js create mode 100644 templates/ice-design/blocks/BasicTab/mock/api.json create mode 100644 templates/ice-design/blocks/BasicTab/package.json create mode 100644 templates/ice-design/blocks/BasicTab/src/BasicTab.jsx create mode 100644 templates/ice-design/blocks/BasicTab/src/BasicTab.scss create mode 100644 templates/ice-design/blocks/BasicTab/src/index.js create mode 100644 templates/ice-design/blocks/BrandDisplay/.editorconfig create mode 100644 templates/ice-design/blocks/BrandDisplay/.eslintignore create mode 100644 templates/ice-design/blocks/BrandDisplay/.eslintrc create mode 100644 templates/ice-design/blocks/BrandDisplay/.gitignore create mode 100644 templates/ice-design/blocks/BrandDisplay/README.md create mode 100644 templates/ice-design/blocks/BrandDisplay/demo/index.html create mode 100644 templates/ice-design/blocks/BrandDisplay/demo/index.js create mode 100644 templates/ice-design/blocks/BrandDisplay/mock/api.json create mode 100644 templates/ice-design/blocks/BrandDisplay/package.json create mode 100644 templates/ice-design/blocks/BrandDisplay/src/BrandDisplay.jsx create mode 100644 templates/ice-design/blocks/BrandDisplay/src/BrandDisplay.scss create mode 100644 templates/ice-design/blocks/BrandDisplay/src/index.js create mode 100644 templates/ice-design/blocks/BrandShowCase/.editorconfig create mode 100644 templates/ice-design/blocks/BrandShowCase/.eslintignore create mode 100644 templates/ice-design/blocks/BrandShowCase/.eslintrc create mode 100644 templates/ice-design/blocks/BrandShowCase/.gitignore create mode 100644 templates/ice-design/blocks/BrandShowCase/README.md create mode 100644 templates/ice-design/blocks/BrandShowCase/demo/index.html create mode 100644 templates/ice-design/blocks/BrandShowCase/demo/index.js create mode 100644 templates/ice-design/blocks/BrandShowCase/mock/api.json create mode 100644 templates/ice-design/blocks/BrandShowCase/package.json create mode 100644 templates/ice-design/blocks/BrandShowCase/src/BrandShowCase.jsx create mode 100644 templates/ice-design/blocks/BrandShowCase/src/BrandShowCase.scss create mode 100644 templates/ice-design/blocks/BrandShowCase/src/index.js create mode 100644 templates/ice-design/blocks/ChartArea/.editorconfig create mode 100644 templates/ice-design/blocks/ChartArea/.eslintignore create mode 100644 templates/ice-design/blocks/ChartArea/.eslintrc create mode 100644 templates/ice-design/blocks/ChartArea/.gitignore create mode 100644 templates/ice-design/blocks/ChartArea/README.md create mode 100644 templates/ice-design/blocks/ChartArea/demo/index.html create mode 100644 templates/ice-design/blocks/ChartArea/demo/index.js create mode 100644 templates/ice-design/blocks/ChartArea/lib/ChartArea.js create mode 100644 templates/ice-design/blocks/ChartArea/lib/ChartArea.scss create mode 100644 templates/ice-design/blocks/ChartArea/lib/index.js create mode 100644 templates/ice-design/blocks/ChartArea/mock/api.json create mode 100644 templates/ice-design/blocks/ChartArea/package.json create mode 100644 templates/ice-design/blocks/ChartArea/src/ChartArea.jsx create mode 100644 templates/ice-design/blocks/ChartArea/src/ChartArea.scss create mode 100644 templates/ice-design/blocks/ChartArea/src/index.js create mode 100644 templates/ice-design/blocks/ChartBar/.editorconfig create mode 100644 templates/ice-design/blocks/ChartBar/.eslintignore create mode 100644 templates/ice-design/blocks/ChartBar/.eslintrc create mode 100644 templates/ice-design/blocks/ChartBar/.gitignore create mode 100644 templates/ice-design/blocks/ChartBar/README.md create mode 100644 templates/ice-design/blocks/ChartBar/demo/index.html create mode 100644 templates/ice-design/blocks/ChartBar/demo/index.js create mode 100644 templates/ice-design/blocks/ChartBar/lib/ChartBar.js create mode 100644 templates/ice-design/blocks/ChartBar/lib/ChartBar.scss create mode 100644 templates/ice-design/blocks/ChartBar/lib/index.js create mode 100644 templates/ice-design/blocks/ChartBar/mock/api.json create mode 100644 templates/ice-design/blocks/ChartBar/package.json create mode 100644 templates/ice-design/blocks/ChartBar/src/ChartBar.jsx create mode 100644 templates/ice-design/blocks/ChartBar/src/ChartBar.scss create mode 100644 templates/ice-design/blocks/ChartBar/src/index.js create mode 100644 templates/ice-design/blocks/ChartBox/.editorconfig create mode 100644 templates/ice-design/blocks/ChartBox/.eslintignore create mode 100644 templates/ice-design/blocks/ChartBox/.eslintrc create mode 100644 templates/ice-design/blocks/ChartBox/.gitignore create mode 100644 templates/ice-design/blocks/ChartBox/README.md create mode 100644 templates/ice-design/blocks/ChartBox/demo/index.html create mode 100644 templates/ice-design/blocks/ChartBox/demo/index.js create mode 100644 templates/ice-design/blocks/ChartBox/lib/ChartBox.js create mode 100644 templates/ice-design/blocks/ChartBox/lib/ChartBox.scss create mode 100644 templates/ice-design/blocks/ChartBox/lib/index.js create mode 100644 templates/ice-design/blocks/ChartBox/mock/api.json create mode 100644 templates/ice-design/blocks/ChartBox/package.json create mode 100644 templates/ice-design/blocks/ChartBox/src/ChartBox.jsx create mode 100644 templates/ice-design/blocks/ChartBox/src/ChartBox.scss create mode 100644 templates/ice-design/blocks/ChartBox/src/index.js create mode 100644 templates/ice-design/blocks/ChartBubbleImage/.editorconfig create mode 100644 templates/ice-design/blocks/ChartBubbleImage/.eslintignore create mode 100644 templates/ice-design/blocks/ChartBubbleImage/.eslintrc create mode 100644 templates/ice-design/blocks/ChartBubbleImage/.gitignore create mode 100644 templates/ice-design/blocks/ChartBubbleImage/README.md create mode 100644 templates/ice-design/blocks/ChartBubbleImage/demo/index.html create mode 100644 templates/ice-design/blocks/ChartBubbleImage/demo/index.js create mode 100644 templates/ice-design/blocks/ChartBubbleImage/lib/ChartBubbleImage.js create mode 100644 templates/ice-design/blocks/ChartBubbleImage/lib/ChartBubbleImage.scss create mode 100644 templates/ice-design/blocks/ChartBubbleImage/lib/index.js create mode 100644 templates/ice-design/blocks/ChartBubbleImage/mock/api.json create mode 100644 templates/ice-design/blocks/ChartBubbleImage/package.json create mode 100644 templates/ice-design/blocks/ChartBubbleImage/src/ChartBubbleImage.jsx create mode 100644 templates/ice-design/blocks/ChartBubbleImage/src/ChartBubbleImage.scss create mode 100644 templates/ice-design/blocks/ChartBubbleImage/src/index.js create mode 100644 templates/ice-design/blocks/ChartFacet/.editorconfig create mode 100644 templates/ice-design/blocks/ChartFacet/.eslintignore create mode 100644 templates/ice-design/blocks/ChartFacet/.eslintrc create mode 100644 templates/ice-design/blocks/ChartFacet/.gitignore create mode 100644 templates/ice-design/blocks/ChartFacet/README.md create mode 100644 templates/ice-design/blocks/ChartFacet/demo/index.html create mode 100644 templates/ice-design/blocks/ChartFacet/demo/index.js create mode 100644 templates/ice-design/blocks/ChartFacet/lib/ChartFacet.js create mode 100644 templates/ice-design/blocks/ChartFacet/lib/ChartFacet.scss create mode 100644 templates/ice-design/blocks/ChartFacet/lib/index.js create mode 100644 templates/ice-design/blocks/ChartFacet/mock/api.json create mode 100644 templates/ice-design/blocks/ChartFacet/package.json create mode 100644 templates/ice-design/blocks/ChartFacet/src/ChartFacet.jsx create mode 100644 templates/ice-design/blocks/ChartFacet/src/ChartFacet.scss create mode 100644 templates/ice-design/blocks/ChartFacet/src/index.js create mode 100644 templates/ice-design/blocks/ChartFunnel/.editorconfig create mode 100644 templates/ice-design/blocks/ChartFunnel/.eslintignore create mode 100644 templates/ice-design/blocks/ChartFunnel/.eslintrc create mode 100644 templates/ice-design/blocks/ChartFunnel/.gitignore create mode 100644 templates/ice-design/blocks/ChartFunnel/README.md create mode 100644 templates/ice-design/blocks/ChartFunnel/demo/index.html create mode 100644 templates/ice-design/blocks/ChartFunnel/demo/index.js create mode 100644 templates/ice-design/blocks/ChartFunnel/lib/ChartFunnel.js create mode 100644 templates/ice-design/blocks/ChartFunnel/lib/ChartFunnel.scss create mode 100644 templates/ice-design/blocks/ChartFunnel/lib/index.js create mode 100644 templates/ice-design/blocks/ChartFunnel/mock/api.json create mode 100644 templates/ice-design/blocks/ChartFunnel/package.json create mode 100644 templates/ice-design/blocks/ChartFunnel/src/ChartFunnel.jsx create mode 100644 templates/ice-design/blocks/ChartFunnel/src/ChartFunnel.scss create mode 100644 templates/ice-design/blocks/ChartFunnel/src/index.js create mode 100644 templates/ice-design/blocks/ChartGauge/.editorconfig create mode 100644 templates/ice-design/blocks/ChartGauge/.eslintignore create mode 100644 templates/ice-design/blocks/ChartGauge/.eslintrc create mode 100644 templates/ice-design/blocks/ChartGauge/.gitignore create mode 100644 templates/ice-design/blocks/ChartGauge/README.md create mode 100644 templates/ice-design/blocks/ChartGauge/demo/index.html create mode 100644 templates/ice-design/blocks/ChartGauge/demo/index.js create mode 100644 templates/ice-design/blocks/ChartGauge/lib/ChartGauge.js create mode 100644 templates/ice-design/blocks/ChartGauge/lib/ChartGauge.scss create mode 100644 templates/ice-design/blocks/ChartGauge/lib/index.js create mode 100644 templates/ice-design/blocks/ChartGauge/mock/api.json create mode 100644 templates/ice-design/blocks/ChartGauge/package.json create mode 100644 templates/ice-design/blocks/ChartGauge/src/ChartGauge.jsx create mode 100644 templates/ice-design/blocks/ChartGauge/src/ChartGauge.scss create mode 100644 templates/ice-design/blocks/ChartGauge/src/index.js create mode 100644 templates/ice-design/blocks/ChartHeatMap/.editorconfig create mode 100644 templates/ice-design/blocks/ChartHeatMap/.eslintignore create mode 100644 templates/ice-design/blocks/ChartHeatMap/.eslintrc create mode 100644 templates/ice-design/blocks/ChartHeatMap/.gitignore create mode 100644 templates/ice-design/blocks/ChartHeatMap/README.md create mode 100644 templates/ice-design/blocks/ChartHeatMap/demo/index.html create mode 100644 templates/ice-design/blocks/ChartHeatMap/demo/index.js create mode 100644 templates/ice-design/blocks/ChartHeatMap/lib/ChartHeatMap.js create mode 100644 templates/ice-design/blocks/ChartHeatMap/lib/ChartHeatMap.scss create mode 100644 templates/ice-design/blocks/ChartHeatMap/lib/index.js create mode 100644 templates/ice-design/blocks/ChartHeatMap/mock/api.json create mode 100644 templates/ice-design/blocks/ChartHeatMap/package.json create mode 100644 templates/ice-design/blocks/ChartHeatMap/src/ChartHeatMap.jsx create mode 100644 templates/ice-design/blocks/ChartHeatMap/src/ChartHeatMap.scss create mode 100644 templates/ice-design/blocks/ChartHeatMap/src/index.js create mode 100644 templates/ice-design/blocks/ChartPie/.editorconfig create mode 100644 templates/ice-design/blocks/ChartPie/.eslintignore create mode 100644 templates/ice-design/blocks/ChartPie/.eslintrc create mode 100644 templates/ice-design/blocks/ChartPie/.gitignore create mode 100644 templates/ice-design/blocks/ChartPie/README.md create mode 100644 templates/ice-design/blocks/ChartPie/demo/index.html create mode 100644 templates/ice-design/blocks/ChartPie/demo/index.js create mode 100644 templates/ice-design/blocks/ChartPie/lib/ChartPie.js create mode 100644 templates/ice-design/blocks/ChartPie/lib/ChartPie.scss create mode 100644 templates/ice-design/blocks/ChartPie/lib/index.js create mode 100644 templates/ice-design/blocks/ChartPie/mock/api.json create mode 100644 templates/ice-design/blocks/ChartPie/package.json create mode 100644 templates/ice-design/blocks/ChartPie/src/ChartPie.jsx create mode 100644 templates/ice-design/blocks/ChartPie/src/ChartPie.scss create mode 100644 templates/ice-design/blocks/ChartPie/src/index.js create mode 100644 templates/ice-design/blocks/ChartPoint/.editorconfig create mode 100644 templates/ice-design/blocks/ChartPoint/.eslintignore create mode 100644 templates/ice-design/blocks/ChartPoint/.eslintrc create mode 100644 templates/ice-design/blocks/ChartPoint/.gitignore create mode 100644 templates/ice-design/blocks/ChartPoint/README.md create mode 100644 templates/ice-design/blocks/ChartPoint/demo/index.html create mode 100644 templates/ice-design/blocks/ChartPoint/demo/index.js create mode 100644 templates/ice-design/blocks/ChartPoint/lib/ChartPoint.js create mode 100644 templates/ice-design/blocks/ChartPoint/lib/ChartPoint.scss create mode 100644 templates/ice-design/blocks/ChartPoint/lib/index.js create mode 100644 templates/ice-design/blocks/ChartPoint/mock/chart-point.json create mode 100644 templates/ice-design/blocks/ChartPoint/package.json create mode 100644 templates/ice-design/blocks/ChartPoint/src/ChartPoint.jsx create mode 100644 templates/ice-design/blocks/ChartPoint/src/ChartPoint.scss create mode 100644 templates/ice-design/blocks/ChartPoint/src/index.js create mode 100644 templates/ice-design/blocks/ChartRadar/.editorconfig create mode 100644 templates/ice-design/blocks/ChartRadar/.eslintignore create mode 100644 templates/ice-design/blocks/ChartRadar/.eslintrc create mode 100644 templates/ice-design/blocks/ChartRadar/.gitignore create mode 100644 templates/ice-design/blocks/ChartRadar/README.md create mode 100644 templates/ice-design/blocks/ChartRadar/demo/index.html create mode 100644 templates/ice-design/blocks/ChartRadar/demo/index.js create mode 100644 templates/ice-design/blocks/ChartRadar/lib/ChartRadar.js create mode 100644 templates/ice-design/blocks/ChartRadar/lib/ChartRadar.scss create mode 100644 templates/ice-design/blocks/ChartRadar/lib/index.js create mode 100644 templates/ice-design/blocks/ChartRadar/mock/api.json create mode 100644 templates/ice-design/blocks/ChartRadar/package.json create mode 100644 templates/ice-design/blocks/ChartRadar/src/ChartRadar.jsx create mode 100644 templates/ice-design/blocks/ChartRadar/src/ChartRadar.scss create mode 100644 templates/ice-design/blocks/ChartRadar/src/index.js create mode 100644 templates/ice-design/blocks/ChartRelation/.editorconfig create mode 100644 templates/ice-design/blocks/ChartRelation/.eslintignore create mode 100644 templates/ice-design/blocks/ChartRelation/.eslintrc create mode 100644 templates/ice-design/blocks/ChartRelation/.gitignore create mode 100644 templates/ice-design/blocks/ChartRelation/README.md create mode 100644 templates/ice-design/blocks/ChartRelation/demo/index.html create mode 100644 templates/ice-design/blocks/ChartRelation/demo/index.js create mode 100644 templates/ice-design/blocks/ChartRelation/lib/ChartRelation.js create mode 100644 templates/ice-design/blocks/ChartRelation/lib/ChartRelation.scss create mode 100644 templates/ice-design/blocks/ChartRelation/lib/index.js create mode 100644 templates/ice-design/blocks/ChartRelation/mock/api.json create mode 100644 templates/ice-design/blocks/ChartRelation/package.json create mode 100644 templates/ice-design/blocks/ChartRelation/src/ChartRelation.jsx create mode 100644 templates/ice-design/blocks/ChartRelation/src/ChartRelation.scss create mode 100644 templates/ice-design/blocks/ChartRelation/src/index.js create mode 100644 templates/ice-design/blocks/ChartStock/.editorconfig create mode 100644 templates/ice-design/blocks/ChartStock/.eslintignore create mode 100644 templates/ice-design/blocks/ChartStock/.eslintrc create mode 100644 templates/ice-design/blocks/ChartStock/.gitignore create mode 100644 templates/ice-design/blocks/ChartStock/README.md create mode 100644 templates/ice-design/blocks/ChartStock/demo/index.html create mode 100644 templates/ice-design/blocks/ChartStock/demo/index.js create mode 100644 templates/ice-design/blocks/ChartStock/lib/ChartStock.js create mode 100644 templates/ice-design/blocks/ChartStock/lib/ChartStock.scss create mode 100644 templates/ice-design/blocks/ChartStock/lib/index.js create mode 100644 templates/ice-design/blocks/ChartStock/mock/chart-stock.json create mode 100644 templates/ice-design/blocks/ChartStock/package.json create mode 100644 templates/ice-design/blocks/ChartStock/src/ChartStock.jsx create mode 100644 templates/ice-design/blocks/ChartStock/src/ChartStock.scss create mode 100644 templates/ice-design/blocks/ChartStock/src/index.js create mode 100644 templates/ice-design/blocks/ChartTypeLine/.editorconfig create mode 100644 templates/ice-design/blocks/ChartTypeLine/.eslintignore create mode 100644 templates/ice-design/blocks/ChartTypeLine/.eslintrc create mode 100644 templates/ice-design/blocks/ChartTypeLine/.gitignore create mode 100644 templates/ice-design/blocks/ChartTypeLine/README.md create mode 100644 templates/ice-design/blocks/ChartTypeLine/demo/index.html create mode 100644 templates/ice-design/blocks/ChartTypeLine/demo/index.js create mode 100644 templates/ice-design/blocks/ChartTypeLine/lib/ChartTypeLine.js create mode 100644 templates/ice-design/blocks/ChartTypeLine/lib/ChartTypeLine.scss create mode 100644 templates/ice-design/blocks/ChartTypeLine/lib/index.js create mode 100644 templates/ice-design/blocks/ChartTypeLine/mock/api.json create mode 100644 templates/ice-design/blocks/ChartTypeLine/package.json create mode 100644 templates/ice-design/blocks/ChartTypeLine/src/ChartTypeLine.jsx create mode 100644 templates/ice-design/blocks/ChartTypeLine/src/ChartTypeLine.scss create mode 100644 templates/ice-design/blocks/ChartTypeLine/src/index.js create mode 100644 templates/ice-design/blocks/CollapseCard/.editorconfig create mode 100644 templates/ice-design/blocks/CollapseCard/.eslintignore create mode 100644 templates/ice-design/blocks/CollapseCard/.eslintrc create mode 100644 templates/ice-design/blocks/CollapseCard/.gitignore create mode 100644 templates/ice-design/blocks/CollapseCard/README.md create mode 100644 templates/ice-design/blocks/CollapseCard/demo/index.html create mode 100644 templates/ice-design/blocks/CollapseCard/demo/index.js create mode 100644 templates/ice-design/blocks/CollapseCard/mock/api.json create mode 100644 templates/ice-design/blocks/CollapseCard/package.json create mode 100644 templates/ice-design/blocks/CollapseCard/src/CollapseCard.jsx create mode 100644 templates/ice-design/blocks/CollapseCard/src/CollapseCard.scss create mode 100644 templates/ice-design/blocks/CollapseCard/src/index.js create mode 100644 templates/ice-design/blocks/ComplexDialog/.editorconfig create mode 100644 templates/ice-design/blocks/ComplexDialog/.eslintignore create mode 100644 templates/ice-design/blocks/ComplexDialog/.eslintrc create mode 100644 templates/ice-design/blocks/ComplexDialog/.gitignore create mode 100644 templates/ice-design/blocks/ComplexDialog/README.md create mode 100644 templates/ice-design/blocks/ComplexDialog/demo/index.html create mode 100644 templates/ice-design/blocks/ComplexDialog/demo/index.js create mode 100644 templates/ice-design/blocks/ComplexDialog/mock/api.json create mode 100644 templates/ice-design/blocks/ComplexDialog/package.json create mode 100644 templates/ice-design/blocks/ComplexDialog/src/ComplexDialog.jsx create mode 100644 templates/ice-design/blocks/ComplexDialog/src/ComplexDialog.scss create mode 100644 templates/ice-design/blocks/ComplexDialog/src/CreateFuncDialog.js create mode 100644 templates/ice-design/blocks/ComplexDialog/src/index.js create mode 100644 templates/ice-design/blocks/ComplexFilter/.editorconfig create mode 100644 templates/ice-design/blocks/ComplexFilter/.eslintignore create mode 100644 templates/ice-design/blocks/ComplexFilter/.eslintrc create mode 100644 templates/ice-design/blocks/ComplexFilter/.gitignore create mode 100644 templates/ice-design/blocks/ComplexFilter/README.md create mode 100644 templates/ice-design/blocks/ComplexFilter/demo/index.html create mode 100644 templates/ice-design/blocks/ComplexFilter/demo/index.js create mode 100644 templates/ice-design/blocks/ComplexFilter/mock/api.json create mode 100644 templates/ice-design/blocks/ComplexFilter/package.json create mode 100644 templates/ice-design/blocks/ComplexFilter/src/ComplexFilter.jsx create mode 100644 templates/ice-design/blocks/ComplexFilter/src/ComplexFilter.scss create mode 100644 templates/ice-design/blocks/ComplexFilter/src/index.js create mode 100644 templates/ice-design/blocks/ComplexProgressTable/.babelrc create mode 100644 templates/ice-design/blocks/ComplexProgressTable/.editorconfig create mode 100644 templates/ice-design/blocks/ComplexProgressTable/.eslintignore create mode 100644 templates/ice-design/blocks/ComplexProgressTable/.eslintrc create mode 100644 templates/ice-design/blocks/ComplexProgressTable/.gitignore create mode 100644 templates/ice-design/blocks/ComplexProgressTable/README.md create mode 100644 templates/ice-design/blocks/ComplexProgressTable/demo/index.html create mode 100644 templates/ice-design/blocks/ComplexProgressTable/demo/index.js create mode 100644 templates/ice-design/blocks/ComplexProgressTable/mock/complex-progress-table.json create mode 100644 templates/ice-design/blocks/ComplexProgressTable/package.json create mode 100644 templates/ice-design/blocks/ComplexProgressTable/src/ComplexProgressTable.jsx create mode 100644 templates/ice-design/blocks/ComplexProgressTable/src/ComplexProgressTable.scss create mode 100644 templates/ice-design/blocks/ComplexProgressTable/src/CreateFuncDialog.jsx create mode 100644 templates/ice-design/blocks/ComplexProgressTable/src/EditDialog.jsx create mode 100644 templates/ice-design/blocks/ComplexProgressTable/src/index.js create mode 100644 templates/ice-design/blocks/ComplexTabTable/.editorconfig create mode 100644 templates/ice-design/blocks/ComplexTabTable/.eslintignore create mode 100644 templates/ice-design/blocks/ComplexTabTable/.eslintrc create mode 100644 templates/ice-design/blocks/ComplexTabTable/.gitignore create mode 100644 templates/ice-design/blocks/ComplexTabTable/README.md create mode 100644 templates/ice-design/blocks/ComplexTabTable/demo/index.html create mode 100644 templates/ice-design/blocks/ComplexTabTable/demo/index.js create mode 100644 templates/ice-design/blocks/ComplexTabTable/mock/complex-tab-table-list.json create mode 100644 templates/ice-design/blocks/ComplexTabTable/package.json create mode 100644 templates/ice-design/blocks/ComplexTabTable/src/ComplexTabTable.jsx create mode 100644 templates/ice-design/blocks/ComplexTabTable/src/ComplexTabTable.scss create mode 100644 templates/ice-design/blocks/ComplexTabTable/src/SubCategoryItem.jsx create mode 100644 templates/ice-design/blocks/ComplexTabTable/src/index.js create mode 100644 templates/ice-design/blocks/CompositeFilter/.editorconfig create mode 100644 templates/ice-design/blocks/CompositeFilter/.eslintignore create mode 100644 templates/ice-design/blocks/CompositeFilter/.eslintrc create mode 100644 templates/ice-design/blocks/CompositeFilter/.gitignore create mode 100644 templates/ice-design/blocks/CompositeFilter/README.md create mode 100644 templates/ice-design/blocks/CompositeFilter/demo/index.html create mode 100644 templates/ice-design/blocks/CompositeFilter/demo/index.js create mode 100644 templates/ice-design/blocks/CompositeFilter/mock/api.json create mode 100644 templates/ice-design/blocks/CompositeFilter/package.json create mode 100644 templates/ice-design/blocks/CompositeFilter/src/CompositeFilter.jsx create mode 100644 templates/ice-design/blocks/CompositeFilter/src/CompositeFilter.scss create mode 100644 templates/ice-design/blocks/CompositeFilter/src/index.js create mode 100644 templates/ice-design/blocks/ConfirmDialog/.editorconfig create mode 100644 templates/ice-design/blocks/ConfirmDialog/.eslintignore create mode 100644 templates/ice-design/blocks/ConfirmDialog/.eslintrc create mode 100644 templates/ice-design/blocks/ConfirmDialog/.gitignore create mode 100644 templates/ice-design/blocks/ConfirmDialog/README.md create mode 100644 templates/ice-design/blocks/ConfirmDialog/demo/index.html create mode 100644 templates/ice-design/blocks/ConfirmDialog/demo/index.js create mode 100644 templates/ice-design/blocks/ConfirmDialog/mock/api.json create mode 100644 templates/ice-design/blocks/ConfirmDialog/package.json create mode 100644 templates/ice-design/blocks/ConfirmDialog/src/ConfirmDialog.jsx create mode 100644 templates/ice-design/blocks/ConfirmDialog/src/ConfirmDialog.scss create mode 100644 templates/ice-design/blocks/ConfirmDialog/src/CreateFuncDialog.js create mode 100644 templates/ice-design/blocks/ConfirmDialog/src/index.js create mode 100644 templates/ice-design/blocks/DataDisplay/.editorconfig create mode 100644 templates/ice-design/blocks/DataDisplay/.eslintignore create mode 100644 templates/ice-design/blocks/DataDisplay/.eslintrc create mode 100644 templates/ice-design/blocks/DataDisplay/.gitignore create mode 100644 templates/ice-design/blocks/DataDisplay/README.md create mode 100644 templates/ice-design/blocks/DataDisplay/demo/index.html create mode 100644 templates/ice-design/blocks/DataDisplay/demo/index.js create mode 100644 templates/ice-design/blocks/DataDisplay/mock/api.json create mode 100644 templates/ice-design/blocks/DataDisplay/package.json create mode 100644 templates/ice-design/blocks/DataDisplay/src/DataDisplay.jsx create mode 100644 templates/ice-design/blocks/DataDisplay/src/DataDisplay.scss create mode 100644 templates/ice-design/blocks/DataDisplay/src/index.js create mode 100644 templates/ice-design/blocks/DetailTable/.editorconfig create mode 100644 templates/ice-design/blocks/DetailTable/.eslintignore create mode 100644 templates/ice-design/blocks/DetailTable/.eslintrc create mode 100644 templates/ice-design/blocks/DetailTable/.gitignore create mode 100644 templates/ice-design/blocks/DetailTable/README.md create mode 100644 templates/ice-design/blocks/DetailTable/demo/index.html create mode 100644 templates/ice-design/blocks/DetailTable/demo/index.js create mode 100644 templates/ice-design/blocks/DetailTable/mock/api.json create mode 100644 templates/ice-design/blocks/DetailTable/package.json create mode 100644 templates/ice-design/blocks/DetailTable/src/DetailTable.jsx create mode 100644 templates/ice-design/blocks/DetailTable/src/DetailTable.scss create mode 100644 templates/ice-design/blocks/DetailTable/src/index.js create mode 100644 templates/ice-design/blocks/DisplayCard/.editorconfig create mode 100644 templates/ice-design/blocks/DisplayCard/.eslintignore create mode 100644 templates/ice-design/blocks/DisplayCard/.eslintrc create mode 100644 templates/ice-design/blocks/DisplayCard/.gitignore create mode 100644 templates/ice-design/blocks/DisplayCard/README.md create mode 100644 templates/ice-design/blocks/DisplayCard/demo/index.html create mode 100644 templates/ice-design/blocks/DisplayCard/demo/index.js create mode 100644 templates/ice-design/blocks/DisplayCard/mock/api.json create mode 100644 templates/ice-design/blocks/DisplayCard/package.json create mode 100644 templates/ice-design/blocks/DisplayCard/src/DisplayCard.jsx create mode 100644 templates/ice-design/blocks/DisplayCard/src/DisplayCard.scss create mode 100644 templates/ice-design/blocks/DisplayCard/src/index.js create mode 100644 templates/ice-design/blocks/DownloadCard/.editorconfig create mode 100644 templates/ice-design/blocks/DownloadCard/.eslintignore create mode 100644 templates/ice-design/blocks/DownloadCard/.eslintrc create mode 100644 templates/ice-design/blocks/DownloadCard/.gitignore create mode 100644 templates/ice-design/blocks/DownloadCard/README.md create mode 100644 templates/ice-design/blocks/DownloadCard/demo/index.html create mode 100644 templates/ice-design/blocks/DownloadCard/demo/index.js create mode 100644 templates/ice-design/blocks/DownloadCard/mock/api.json create mode 100644 templates/ice-design/blocks/DownloadCard/mock/download-card.json create mode 100644 templates/ice-design/blocks/DownloadCard/package.json create mode 100644 templates/ice-design/blocks/DownloadCard/src/DownloadCard.jsx create mode 100644 templates/ice-design/blocks/DownloadCard/src/DownloadCard.scss create mode 100644 templates/ice-design/blocks/DownloadCard/src/index.js create mode 100644 templates/ice-design/blocks/DynamicBanner/.editorconfig create mode 100644 templates/ice-design/blocks/DynamicBanner/.eslintignore create mode 100644 templates/ice-design/blocks/DynamicBanner/.eslintrc create mode 100644 templates/ice-design/blocks/DynamicBanner/.gitignore create mode 100644 templates/ice-design/blocks/DynamicBanner/README.md create mode 100644 templates/ice-design/blocks/DynamicBanner/demo/index.html create mode 100644 templates/ice-design/blocks/DynamicBanner/demo/index.js create mode 100644 templates/ice-design/blocks/DynamicBanner/mock/api.json create mode 100644 templates/ice-design/blocks/DynamicBanner/package.json create mode 100644 templates/ice-design/blocks/DynamicBanner/src/DynamicBanner.jsx create mode 100644 templates/ice-design/blocks/DynamicBanner/src/DynamicBanner.scss create mode 100644 templates/ice-design/blocks/DynamicBanner/src/index.js create mode 100644 templates/ice-design/blocks/EditableTable/.editorconfig create mode 100644 templates/ice-design/blocks/EditableTable/.eslintignore create mode 100644 templates/ice-design/blocks/EditableTable/.eslintrc create mode 100644 templates/ice-design/blocks/EditableTable/.gitignore create mode 100644 templates/ice-design/blocks/EditableTable/README.md create mode 100644 templates/ice-design/blocks/EditableTable/demo/index.html create mode 100644 templates/ice-design/blocks/EditableTable/demo/index.js create mode 100644 templates/ice-design/blocks/EditableTable/mock/api.json create mode 100644 templates/ice-design/blocks/EditableTable/package.json create mode 100644 templates/ice-design/blocks/EditableTable/src/CellEditor.jsx create mode 100644 templates/ice-design/blocks/EditableTable/src/EditableTable.jsx create mode 100644 templates/ice-design/blocks/EditableTable/src/EditableTable.scss create mode 100644 templates/ice-design/blocks/EditableTable/src/index.js create mode 100644 templates/ice-design/blocks/EmptyContent/.editorconfig create mode 100644 templates/ice-design/blocks/EmptyContent/.eslintignore create mode 100644 templates/ice-design/blocks/EmptyContent/.eslintrc create mode 100644 templates/ice-design/blocks/EmptyContent/.gitignore create mode 100644 templates/ice-design/blocks/EmptyContent/README.md create mode 100644 templates/ice-design/blocks/EmptyContent/demo/index.html create mode 100644 templates/ice-design/blocks/EmptyContent/demo/index.js create mode 100644 templates/ice-design/blocks/EmptyContent/mock/api.json create mode 100644 templates/ice-design/blocks/EmptyContent/package.json create mode 100644 templates/ice-design/blocks/EmptyContent/src/EmptyContent.jsx create mode 100644 templates/ice-design/blocks/EmptyContent/src/EmptyContent.scss create mode 100644 templates/ice-design/blocks/EmptyContent/src/index.js create mode 100644 templates/ice-design/blocks/EnhanceTable/.editorconfig create mode 100644 templates/ice-design/blocks/EnhanceTable/.eslintignore create mode 100644 templates/ice-design/blocks/EnhanceTable/.eslintrc create mode 100644 templates/ice-design/blocks/EnhanceTable/.gitignore create mode 100644 templates/ice-design/blocks/EnhanceTable/README.md create mode 100644 templates/ice-design/blocks/EnhanceTable/demo/index.html create mode 100644 templates/ice-design/blocks/EnhanceTable/demo/index.js create mode 100644 templates/ice-design/blocks/EnhanceTable/mock/enhance-table-list.json create mode 100644 templates/ice-design/blocks/EnhanceTable/package.json create mode 100644 templates/ice-design/blocks/EnhanceTable/src/EnhanceTable.jsx create mode 100644 templates/ice-design/blocks/EnhanceTable/src/EnhanceTable.scss create mode 100644 templates/ice-design/blocks/EnhanceTable/src/index.js create mode 100644 templates/ice-design/blocks/EntryCard/.editorconfig create mode 100644 templates/ice-design/blocks/EntryCard/.eslintignore create mode 100644 templates/ice-design/blocks/EntryCard/.eslintrc create mode 100644 templates/ice-design/blocks/EntryCard/.gitignore create mode 100644 templates/ice-design/blocks/EntryCard/README.md create mode 100644 templates/ice-design/blocks/EntryCard/demo/index.html create mode 100644 templates/ice-design/blocks/EntryCard/demo/index.js create mode 100644 templates/ice-design/blocks/EntryCard/lib/EntryCard.js create mode 100644 templates/ice-design/blocks/EntryCard/lib/EntryCard.scss create mode 100644 templates/ice-design/blocks/EntryCard/lib/index.js create mode 100644 templates/ice-design/blocks/EntryCard/mock/api.json create mode 100644 templates/ice-design/blocks/EntryCard/package.json create mode 100644 templates/ice-design/blocks/EntryCard/src/EntryCard.jsx create mode 100644 templates/ice-design/blocks/EntryCard/src/EntryCard.scss create mode 100644 templates/ice-design/blocks/EntryCard/src/index.js create mode 100644 templates/ice-design/blocks/FailureDetail/.editorconfig create mode 100644 templates/ice-design/blocks/FailureDetail/.eslintignore create mode 100644 templates/ice-design/blocks/FailureDetail/.eslintrc create mode 100644 templates/ice-design/blocks/FailureDetail/.gitignore create mode 100644 templates/ice-design/blocks/FailureDetail/README.md create mode 100644 templates/ice-design/blocks/FailureDetail/demo/index.html create mode 100644 templates/ice-design/blocks/FailureDetail/demo/index.js create mode 100644 templates/ice-design/blocks/FailureDetail/lib/FailureDetail.js create mode 100644 templates/ice-design/blocks/FailureDetail/lib/FailureDetail.scss create mode 100644 templates/ice-design/blocks/FailureDetail/lib/index.js create mode 100644 templates/ice-design/blocks/FailureDetail/mock/api.json create mode 100644 templates/ice-design/blocks/FailureDetail/package.json create mode 100644 templates/ice-design/blocks/FailureDetail/src/FailureDetail.jsx create mode 100644 templates/ice-design/blocks/FailureDetail/src/FailureDetail.scss create mode 100644 templates/ice-design/blocks/FailureDetail/src/index.js create mode 100644 templates/ice-design/blocks/FeatureDisplay/.editorconfig create mode 100644 templates/ice-design/blocks/FeatureDisplay/.eslintignore create mode 100644 templates/ice-design/blocks/FeatureDisplay/.eslintrc create mode 100644 templates/ice-design/blocks/FeatureDisplay/.gitignore create mode 100644 templates/ice-design/blocks/FeatureDisplay/README.md create mode 100644 templates/ice-design/blocks/FeatureDisplay/demo/index.html create mode 100644 templates/ice-design/blocks/FeatureDisplay/demo/index.js create mode 100644 templates/ice-design/blocks/FeatureDisplay/mock/api.json create mode 100644 templates/ice-design/blocks/FeatureDisplay/package.json create mode 100644 templates/ice-design/blocks/FeatureDisplay/src/FeatureDisplay.jsx create mode 100644 templates/ice-design/blocks/FeatureDisplay/src/FeatureDisplay.scss create mode 100644 templates/ice-design/blocks/FeatureDisplay/src/index.js create mode 100644 templates/ice-design/blocks/FeedList/.editorconfig create mode 100644 templates/ice-design/blocks/FeedList/.eslintignore create mode 100644 templates/ice-design/blocks/FeedList/.eslintrc create mode 100644 templates/ice-design/blocks/FeedList/.gitignore create mode 100644 templates/ice-design/blocks/FeedList/README.md create mode 100644 templates/ice-design/blocks/FeedList/demo/index.html create mode 100644 templates/ice-design/blocks/FeedList/demo/index.js create mode 100644 templates/ice-design/blocks/FeedList/mock/api.json create mode 100644 templates/ice-design/blocks/FeedList/package.json create mode 100644 templates/ice-design/blocks/FeedList/src/FeedList.jsx create mode 100644 templates/ice-design/blocks/FeedList/src/FeedList.scss create mode 100644 templates/ice-design/blocks/FeedList/src/index.js create mode 100644 templates/ice-design/blocks/FilterList/.editorconfig create mode 100644 templates/ice-design/blocks/FilterList/.eslintignore create mode 100644 templates/ice-design/blocks/FilterList/.eslintrc create mode 100644 templates/ice-design/blocks/FilterList/.gitignore create mode 100644 templates/ice-design/blocks/FilterList/README.md create mode 100644 templates/ice-design/blocks/FilterList/demo/index.html create mode 100644 templates/ice-design/blocks/FilterList/demo/index.js create mode 100644 templates/ice-design/blocks/FilterList/mock/api.json create mode 100644 templates/ice-design/blocks/FilterList/package.json create mode 100644 templates/ice-design/blocks/FilterList/src/FilterList.jsx create mode 100644 templates/ice-design/blocks/FilterList/src/FilterList.scss create mode 100644 templates/ice-design/blocks/FilterList/src/SingleItem/SingleItem.jsx create mode 100644 templates/ice-design/blocks/FilterList/src/SingleItem/SingleItem.scss create mode 100644 templates/ice-design/blocks/FilterList/src/SingleItem/index.js create mode 100644 templates/ice-design/blocks/FilterList/src/index.js create mode 100644 templates/ice-design/blocks/FilterTable/.editorconfig create mode 100644 templates/ice-design/blocks/FilterTable/.eslintignore create mode 100644 templates/ice-design/blocks/FilterTable/.eslintrc create mode 100644 templates/ice-design/blocks/FilterTable/.gitignore create mode 100644 templates/ice-design/blocks/FilterTable/README.md create mode 100644 templates/ice-design/blocks/FilterTable/demo/index.html create mode 100644 templates/ice-design/blocks/FilterTable/demo/index.js create mode 100644 templates/ice-design/blocks/FilterTable/mock/filter-table-list.json create mode 100644 templates/ice-design/blocks/FilterTable/package.json create mode 100644 templates/ice-design/blocks/FilterTable/src/Filter/Filter.jsx create mode 100644 templates/ice-design/blocks/FilterTable/src/Filter/Filter.scss create mode 100644 templates/ice-design/blocks/FilterTable/src/Filter/index.js create mode 100644 templates/ice-design/blocks/FilterTable/src/FilterTable.jsx create mode 100644 templates/ice-design/blocks/FilterTable/src/index.js create mode 100644 templates/ice-design/blocks/FilterWithSearch/.editorconfig create mode 100644 templates/ice-design/blocks/FilterWithSearch/.eslintignore create mode 100644 templates/ice-design/blocks/FilterWithSearch/.eslintrc create mode 100644 templates/ice-design/blocks/FilterWithSearch/.gitignore create mode 100644 templates/ice-design/blocks/FilterWithSearch/README.md create mode 100644 templates/ice-design/blocks/FilterWithSearch/demo/index.html create mode 100644 templates/ice-design/blocks/FilterWithSearch/demo/index.js create mode 100644 templates/ice-design/blocks/FilterWithSearch/mock/api.json create mode 100644 templates/ice-design/blocks/FilterWithSearch/package.json create mode 100644 templates/ice-design/blocks/FilterWithSearch/src/FilterWithSearch.jsx create mode 100644 templates/ice-design/blocks/FilterWithSearch/src/FilterWithSearch.scss create mode 100644 templates/ice-design/blocks/FilterWithSearch/src/index.js create mode 100644 templates/ice-design/blocks/Footer/.editorconfig create mode 100644 templates/ice-design/blocks/Footer/.eslintignore create mode 100644 templates/ice-design/blocks/Footer/.eslintrc create mode 100644 templates/ice-design/blocks/Footer/.gitignore create mode 100644 templates/ice-design/blocks/Footer/README.md create mode 100644 templates/ice-design/blocks/Footer/demo/index.html create mode 100644 templates/ice-design/blocks/Footer/demo/index.js create mode 100644 templates/ice-design/blocks/Footer/mock/api.json create mode 100644 templates/ice-design/blocks/Footer/package.json create mode 100644 templates/ice-design/blocks/Footer/src/Footer.jsx create mode 100644 templates/ice-design/blocks/Footer/src/index.js create mode 100644 templates/ice-design/blocks/FooterInfo/.editorconfig create mode 100644 templates/ice-design/blocks/FooterInfo/.eslintignore create mode 100644 templates/ice-design/blocks/FooterInfo/.eslintrc create mode 100644 templates/ice-design/blocks/FooterInfo/.gitignore create mode 100644 templates/ice-design/blocks/FooterInfo/README.md create mode 100644 templates/ice-design/blocks/FooterInfo/demo/index.html create mode 100644 templates/ice-design/blocks/FooterInfo/demo/index.js create mode 100644 templates/ice-design/blocks/FooterInfo/mock/api.json create mode 100644 templates/ice-design/blocks/FooterInfo/package.json create mode 100644 templates/ice-design/blocks/FooterInfo/src/FooterInfo.jsx create mode 100644 templates/ice-design/blocks/FooterInfo/src/index.js create mode 100644 templates/ice-design/blocks/ForgetPasswordForm/.editorconfig create mode 100644 templates/ice-design/blocks/ForgetPasswordForm/.eslintignore create mode 100644 templates/ice-design/blocks/ForgetPasswordForm/.eslintrc create mode 100644 templates/ice-design/blocks/ForgetPasswordForm/.gitignore create mode 100644 templates/ice-design/blocks/ForgetPasswordForm/README.md create mode 100644 templates/ice-design/blocks/ForgetPasswordForm/demo/index.html create mode 100644 templates/ice-design/blocks/ForgetPasswordForm/demo/index.js create mode 100644 templates/ice-design/blocks/ForgetPasswordForm/mock/api.json create mode 100644 templates/ice-design/blocks/ForgetPasswordForm/package.json create mode 100644 templates/ice-design/blocks/ForgetPasswordForm/src/ForgetPasswordForm.jsx create mode 100644 templates/ice-design/blocks/ForgetPasswordForm/src/index.js create mode 100644 templates/ice-design/blocks/InfoDisplayTab/.editorconfig create mode 100644 templates/ice-design/blocks/InfoDisplayTab/.eslintignore create mode 100644 templates/ice-design/blocks/InfoDisplayTab/.eslintrc create mode 100644 templates/ice-design/blocks/InfoDisplayTab/.gitignore create mode 100644 templates/ice-design/blocks/InfoDisplayTab/README.md create mode 100644 templates/ice-design/blocks/InfoDisplayTab/demo/index.html create mode 100644 templates/ice-design/blocks/InfoDisplayTab/demo/index.js create mode 100644 templates/ice-design/blocks/InfoDisplayTab/lib/InfoDisplayTab.js create mode 100644 templates/ice-design/blocks/InfoDisplayTab/lib/InfoDisplayTab.scss create mode 100644 templates/ice-design/blocks/InfoDisplayTab/lib/index.js create mode 100644 templates/ice-design/blocks/InfoDisplayTab/mock/info-display-tab.json create mode 100644 templates/ice-design/blocks/InfoDisplayTab/package.json create mode 100644 templates/ice-design/blocks/InfoDisplayTab/src/InfoDisplayTab.jsx create mode 100644 templates/ice-design/blocks/InfoDisplayTab/src/InfoDisplayTab.scss create mode 100644 templates/ice-design/blocks/InfoDisplayTab/src/index.js create mode 100644 templates/ice-design/blocks/InfoDisplayTable/.editorconfig create mode 100644 templates/ice-design/blocks/InfoDisplayTable/.eslintignore create mode 100644 templates/ice-design/blocks/InfoDisplayTable/.eslintrc create mode 100644 templates/ice-design/blocks/InfoDisplayTable/.gitignore create mode 100644 templates/ice-design/blocks/InfoDisplayTable/README.md create mode 100644 templates/ice-design/blocks/InfoDisplayTable/demo/index.html create mode 100644 templates/ice-design/blocks/InfoDisplayTable/demo/index.js create mode 100644 templates/ice-design/blocks/InfoDisplayTable/lib/InfoDisplayTable.js create mode 100644 templates/ice-design/blocks/InfoDisplayTable/lib/InfoDisplayTable.scss create mode 100644 templates/ice-design/blocks/InfoDisplayTable/lib/index.js create mode 100644 templates/ice-design/blocks/InfoDisplayTable/mock/api.json create mode 100644 templates/ice-design/blocks/InfoDisplayTable/package.json create mode 100644 templates/ice-design/blocks/InfoDisplayTable/src/InfoDisplayTable.jsx create mode 100644 templates/ice-design/blocks/InfoDisplayTable/src/InfoDisplayTable.scss create mode 100644 templates/ice-design/blocks/InfoDisplayTable/src/index.js create mode 100644 templates/ice-design/blocks/JoinUs/.editorconfig create mode 100644 templates/ice-design/blocks/JoinUs/.eslintignore create mode 100644 templates/ice-design/blocks/JoinUs/.eslintrc create mode 100644 templates/ice-design/blocks/JoinUs/.gitignore create mode 100644 templates/ice-design/blocks/JoinUs/README.md create mode 100644 templates/ice-design/blocks/JoinUs/demo/index.html create mode 100644 templates/ice-design/blocks/JoinUs/demo/index.js create mode 100644 templates/ice-design/blocks/JoinUs/lib/JoinUs.js create mode 100644 templates/ice-design/blocks/JoinUs/lib/JoinUs.scss create mode 100644 templates/ice-design/blocks/JoinUs/lib/index.js create mode 100644 templates/ice-design/blocks/JoinUs/mock/api.json create mode 100644 templates/ice-design/blocks/JoinUs/package.json create mode 100644 templates/ice-design/blocks/JoinUs/src/JoinUs.jsx create mode 100644 templates/ice-design/blocks/JoinUs/src/JoinUs.scss create mode 100644 templates/ice-design/blocks/JoinUs/src/index.js create mode 100644 templates/ice-design/blocks/LandingIntroBanner/.editorconfig create mode 100644 templates/ice-design/blocks/LandingIntroBanner/.eslintignore create mode 100644 templates/ice-design/blocks/LandingIntroBanner/.eslintrc create mode 100644 templates/ice-design/blocks/LandingIntroBanner/.gitignore create mode 100644 templates/ice-design/blocks/LandingIntroBanner/README.md create mode 100644 templates/ice-design/blocks/LandingIntroBanner/demo/index.html create mode 100644 templates/ice-design/blocks/LandingIntroBanner/demo/index.js create mode 100644 templates/ice-design/blocks/LandingIntroBanner/lib/LandingIntroBanner.js create mode 100644 templates/ice-design/blocks/LandingIntroBanner/lib/LandingIntroBanner.scss create mode 100644 templates/ice-design/blocks/LandingIntroBanner/lib/index.js create mode 100644 templates/ice-design/blocks/LandingIntroBanner/mock/api.json create mode 100644 templates/ice-design/blocks/LandingIntroBanner/package.json create mode 100644 templates/ice-design/blocks/LandingIntroBanner/src/LandingIntroBanner.jsx create mode 100644 templates/ice-design/blocks/LandingIntroBanner/src/LandingIntroBanner.scss create mode 100644 templates/ice-design/blocks/LandingIntroBanner/src/index.js create mode 100644 templates/ice-design/blocks/LeftContentDisplay/.editorconfig create mode 100644 templates/ice-design/blocks/LeftContentDisplay/.eslintignore create mode 100644 templates/ice-design/blocks/LeftContentDisplay/.eslintrc create mode 100644 templates/ice-design/blocks/LeftContentDisplay/.gitignore create mode 100644 templates/ice-design/blocks/LeftContentDisplay/README.md create mode 100644 templates/ice-design/blocks/LeftContentDisplay/demo/index.html create mode 100644 templates/ice-design/blocks/LeftContentDisplay/demo/index.js create mode 100644 templates/ice-design/blocks/LeftContentDisplay/lib/LeftContentDisplay.js create mode 100644 templates/ice-design/blocks/LeftContentDisplay/lib/LeftContentDisplay.scss create mode 100644 templates/ice-design/blocks/LeftContentDisplay/lib/index.js create mode 100644 templates/ice-design/blocks/LeftContentDisplay/mock/api.json create mode 100644 templates/ice-design/blocks/LeftContentDisplay/package.json create mode 100644 templates/ice-design/blocks/LeftContentDisplay/src/LeftContentDisplay.jsx create mode 100644 templates/ice-design/blocks/LeftContentDisplay/src/LeftContentDisplay.scss create mode 100644 templates/ice-design/blocks/LeftContentDisplay/src/index.js create mode 100644 templates/ice-design/blocks/LiteTable/.editorconfig create mode 100644 templates/ice-design/blocks/LiteTable/.eslintignore create mode 100644 templates/ice-design/blocks/LiteTable/.eslintrc create mode 100644 templates/ice-design/blocks/LiteTable/.gitignore create mode 100644 templates/ice-design/blocks/LiteTable/README.md create mode 100644 templates/ice-design/blocks/LiteTable/demo/index.html create mode 100644 templates/ice-design/blocks/LiteTable/demo/index.js create mode 100644 templates/ice-design/blocks/LiteTable/lib/LiteTable.js create mode 100644 templates/ice-design/blocks/LiteTable/lib/LiteTable.scss create mode 100644 templates/ice-design/blocks/LiteTable/lib/index.js create mode 100644 templates/ice-design/blocks/LiteTable/mock/api.json create mode 100644 templates/ice-design/blocks/LiteTable/package.json create mode 100644 templates/ice-design/blocks/LiteTable/src/LiteTable.jsx create mode 100644 templates/ice-design/blocks/LiteTable/src/LiteTable.scss create mode 100644 templates/ice-design/blocks/LiteTable/src/index.js create mode 100644 templates/ice-design/blocks/MessageList/.editorconfig create mode 100644 templates/ice-design/blocks/MessageList/.eslintignore create mode 100644 templates/ice-design/blocks/MessageList/.eslintrc create mode 100644 templates/ice-design/blocks/MessageList/.gitignore create mode 100644 templates/ice-design/blocks/MessageList/README.md create mode 100644 templates/ice-design/blocks/MessageList/demo/index.html create mode 100644 templates/ice-design/blocks/MessageList/demo/index.js create mode 100644 templates/ice-design/blocks/MessageList/lib/MessageList.js create mode 100644 templates/ice-design/blocks/MessageList/lib/MessageList.scss create mode 100644 templates/ice-design/blocks/MessageList/lib/index.js create mode 100644 templates/ice-design/blocks/MessageList/mock/api.json create mode 100644 templates/ice-design/blocks/MessageList/package.json create mode 100644 templates/ice-design/blocks/MessageList/src/MessageList.jsx create mode 100644 templates/ice-design/blocks/MessageList/src/MessageList.scss create mode 100644 templates/ice-design/blocks/MessageList/src/index.js create mode 100644 templates/ice-design/blocks/MonacoEditor/.editorconfig create mode 100644 templates/ice-design/blocks/MonacoEditor/.eslintignore create mode 100644 templates/ice-design/blocks/MonacoEditor/.eslintrc create mode 100644 templates/ice-design/blocks/MonacoEditor/.gitignore create mode 100644 templates/ice-design/blocks/MonacoEditor/README.md create mode 100644 templates/ice-design/blocks/MonacoEditor/demo/index.html create mode 100644 templates/ice-design/blocks/MonacoEditor/demo/index.js create mode 100644 templates/ice-design/blocks/MonacoEditor/lib/MonacoEditor.js create mode 100644 templates/ice-design/blocks/MonacoEditor/lib/MonacoEditor.scss create mode 100644 templates/ice-design/blocks/MonacoEditor/lib/index.js create mode 100644 templates/ice-design/blocks/MonacoEditor/mock/api.json create mode 100644 templates/ice-design/blocks/MonacoEditor/package.json create mode 100644 templates/ice-design/blocks/MonacoEditor/src/MonacoEditor.jsx create mode 100644 templates/ice-design/blocks/MonacoEditor/src/MonacoEditor.scss create mode 100644 templates/ice-design/blocks/MonacoEditor/src/index.js create mode 100644 templates/ice-design/blocks/NotPermission/.editorconfig create mode 100644 templates/ice-design/blocks/NotPermission/.eslintignore create mode 100644 templates/ice-design/blocks/NotPermission/.eslintrc create mode 100644 templates/ice-design/blocks/NotPermission/.gitignore create mode 100644 templates/ice-design/blocks/NotPermission/README.md create mode 100644 templates/ice-design/blocks/NotPermission/demo/index.html create mode 100644 templates/ice-design/blocks/NotPermission/demo/index.js create mode 100644 templates/ice-design/blocks/NotPermission/lib/NotPermission.js create mode 100644 templates/ice-design/blocks/NotPermission/lib/NotPermission.scss create mode 100644 templates/ice-design/blocks/NotPermission/lib/index.js create mode 100644 templates/ice-design/blocks/NotPermission/mock/api.json create mode 100644 templates/ice-design/blocks/NotPermission/package.json create mode 100644 templates/ice-design/blocks/NotPermission/src/NotPermission.jsx create mode 100644 templates/ice-design/blocks/NotPermission/src/NotPermission.scss create mode 100644 templates/ice-design/blocks/NotPermission/src/index.js create mode 100644 templates/ice-design/blocks/OperationTable/.editorconfig create mode 100644 templates/ice-design/blocks/OperationTable/.eslintignore create mode 100644 templates/ice-design/blocks/OperationTable/.eslintrc create mode 100644 templates/ice-design/blocks/OperationTable/.gitignore create mode 100644 templates/ice-design/blocks/OperationTable/README.md create mode 100644 templates/ice-design/blocks/OperationTable/demo/index.html create mode 100644 templates/ice-design/blocks/OperationTable/demo/index.js create mode 100644 templates/ice-design/blocks/OperationTable/lib/DialogDecorator.js create mode 100644 templates/ice-design/blocks/OperationTable/lib/EditorInfoDialog.js create mode 100644 templates/ice-design/blocks/OperationTable/lib/OperationTable.js create mode 100644 templates/ice-design/blocks/OperationTable/lib/OperationTable.scss create mode 100644 templates/ice-design/blocks/OperationTable/lib/index.js create mode 100644 templates/ice-design/blocks/OperationTable/mock/operation-table-list.json create mode 100644 templates/ice-design/blocks/OperationTable/mock/update-table-item.json create mode 100644 templates/ice-design/blocks/OperationTable/package.json create mode 100644 templates/ice-design/blocks/OperationTable/src/DialogDecorator.js create mode 100644 templates/ice-design/blocks/OperationTable/src/EditorInfoDialog.jsx create mode 100644 templates/ice-design/blocks/OperationTable/src/OperationTable.jsx create mode 100644 templates/ice-design/blocks/OperationTable/src/OperationTable.scss create mode 100644 templates/ice-design/blocks/OperationTable/src/index.js create mode 100644 templates/ice-design/blocks/OrderList/.editorconfig create mode 100644 templates/ice-design/blocks/OrderList/.eslintignore create mode 100644 templates/ice-design/blocks/OrderList/.eslintrc create mode 100644 templates/ice-design/blocks/OrderList/.gitignore create mode 100644 templates/ice-design/blocks/OrderList/README.md create mode 100644 templates/ice-design/blocks/OrderList/demo/index.html create mode 100644 templates/ice-design/blocks/OrderList/demo/index.js create mode 100644 templates/ice-design/blocks/OrderList/lib/OrderList.js create mode 100644 templates/ice-design/blocks/OrderList/lib/OrderList.scss create mode 100644 templates/ice-design/blocks/OrderList/lib/index.js create mode 100644 templates/ice-design/blocks/OrderList/mock/order-list.json create mode 100644 templates/ice-design/blocks/OrderList/package.json create mode 100644 templates/ice-design/blocks/OrderList/src/OrderList.jsx create mode 100644 templates/ice-design/blocks/OrderList/src/OrderList.scss create mode 100644 templates/ice-design/blocks/OrderList/src/index.js create mode 100644 templates/ice-design/blocks/OurTeam/.editorconfig create mode 100644 templates/ice-design/blocks/OurTeam/.eslintignore create mode 100644 templates/ice-design/blocks/OurTeam/.eslintrc create mode 100644 templates/ice-design/blocks/OurTeam/.gitignore create mode 100644 templates/ice-design/blocks/OurTeam/README.md create mode 100644 templates/ice-design/blocks/OurTeam/demo/index.html create mode 100644 templates/ice-design/blocks/OurTeam/demo/index.js create mode 100644 templates/ice-design/blocks/OurTeam/lib/OurTeam.js create mode 100644 templates/ice-design/blocks/OurTeam/lib/OurTeam.scss create mode 100644 templates/ice-design/blocks/OurTeam/lib/index.js create mode 100644 templates/ice-design/blocks/OurTeam/mock/api.json create mode 100644 templates/ice-design/blocks/OurTeam/package.json create mode 100644 templates/ice-design/blocks/OurTeam/src/OurTeam.jsx create mode 100644 templates/ice-design/blocks/OurTeam/src/OurTeam.scss create mode 100644 templates/ice-design/blocks/OurTeam/src/index.js create mode 100644 templates/ice-design/blocks/PictureTextList/.editorconfig create mode 100644 templates/ice-design/blocks/PictureTextList/.eslintignore create mode 100644 templates/ice-design/blocks/PictureTextList/.eslintrc create mode 100644 templates/ice-design/blocks/PictureTextList/.gitignore create mode 100644 templates/ice-design/blocks/PictureTextList/README.md create mode 100644 templates/ice-design/blocks/PictureTextList/demo/index.html create mode 100644 templates/ice-design/blocks/PictureTextList/demo/index.js create mode 100644 templates/ice-design/blocks/PictureTextList/lib/PictureTextList.js create mode 100644 templates/ice-design/blocks/PictureTextList/lib/PictureTextList.scss create mode 100644 templates/ice-design/blocks/PictureTextList/lib/SingleItem/SingleItem.js create mode 100644 templates/ice-design/blocks/PictureTextList/lib/SingleItem/SingleItem.scss create mode 100644 templates/ice-design/blocks/PictureTextList/lib/SingleItem/index.js create mode 100644 templates/ice-design/blocks/PictureTextList/lib/index.js create mode 100644 templates/ice-design/blocks/PictureTextList/mock/api.json create mode 100644 templates/ice-design/blocks/PictureTextList/package.json create mode 100644 templates/ice-design/blocks/PictureTextList/src/PictureTextList.jsx create mode 100644 templates/ice-design/blocks/PictureTextList/src/PictureTextList.scss create mode 100644 templates/ice-design/blocks/PictureTextList/src/SingleItem/SingleItem.jsx create mode 100644 templates/ice-design/blocks/PictureTextList/src/SingleItem/SingleItem.scss create mode 100644 templates/ice-design/blocks/PictureTextList/src/SingleItem/index.js create mode 100644 templates/ice-design/blocks/PictureTextList/src/index.js create mode 100644 templates/ice-design/blocks/PieDoughnutChart/.editorconfig create mode 100644 templates/ice-design/blocks/PieDoughnutChart/.eslintignore create mode 100644 templates/ice-design/blocks/PieDoughnutChart/.eslintrc create mode 100644 templates/ice-design/blocks/PieDoughnutChart/.gitignore create mode 100644 templates/ice-design/blocks/PieDoughnutChart/README.md create mode 100644 templates/ice-design/blocks/PieDoughnutChart/demo/index.html create mode 100644 templates/ice-design/blocks/PieDoughnutChart/demo/index.js create mode 100644 templates/ice-design/blocks/PieDoughnutChart/lib/PieDoughnutChart.js create mode 100644 templates/ice-design/blocks/PieDoughnutChart/lib/PieDoughnutChart.scss create mode 100644 templates/ice-design/blocks/PieDoughnutChart/lib/index.js create mode 100644 templates/ice-design/blocks/PieDoughnutChart/mock/api.json create mode 100644 templates/ice-design/blocks/PieDoughnutChart/package.json create mode 100644 templates/ice-design/blocks/PieDoughnutChart/src/PieDoughnutChart.jsx create mode 100644 templates/ice-design/blocks/PieDoughnutChart/src/PieDoughnutChart.scss create mode 100644 templates/ice-design/blocks/PieDoughnutChart/src/index.js create mode 100644 templates/ice-design/blocks/PriceCard/.editorconfig create mode 100644 templates/ice-design/blocks/PriceCard/.eslintignore create mode 100644 templates/ice-design/blocks/PriceCard/.eslintrc create mode 100644 templates/ice-design/blocks/PriceCard/.gitignore create mode 100644 templates/ice-design/blocks/PriceCard/README.md create mode 100644 templates/ice-design/blocks/PriceCard/demo/index.html create mode 100644 templates/ice-design/blocks/PriceCard/demo/index.js create mode 100644 templates/ice-design/blocks/PriceCard/lib/PriceCard.js create mode 100644 templates/ice-design/blocks/PriceCard/lib/PriceCard.scss create mode 100644 templates/ice-design/blocks/PriceCard/lib/index.js create mode 100644 templates/ice-design/blocks/PriceCard/mock/api.json create mode 100644 templates/ice-design/blocks/PriceCard/package.json create mode 100644 templates/ice-design/blocks/PriceCard/src/PriceCard.jsx create mode 100644 templates/ice-design/blocks/PriceCard/src/PriceCard.scss create mode 100644 templates/ice-design/blocks/PriceCard/src/index.js create mode 100644 templates/ice-design/blocks/PriceInfo/.editorconfig create mode 100644 templates/ice-design/blocks/PriceInfo/.eslintignore create mode 100644 templates/ice-design/blocks/PriceInfo/.eslintrc create mode 100644 templates/ice-design/blocks/PriceInfo/.gitignore create mode 100644 templates/ice-design/blocks/PriceInfo/README.md create mode 100644 templates/ice-design/blocks/PriceInfo/demo/index.html create mode 100644 templates/ice-design/blocks/PriceInfo/demo/index.js create mode 100644 templates/ice-design/blocks/PriceInfo/lib/PriceInfo.js create mode 100644 templates/ice-design/blocks/PriceInfo/lib/PriceInfo.scss create mode 100644 templates/ice-design/blocks/PriceInfo/lib/index.js create mode 100644 templates/ice-design/blocks/PriceInfo/mock/api.json create mode 100644 templates/ice-design/blocks/PriceInfo/package.json create mode 100644 templates/ice-design/blocks/PriceInfo/src/PriceInfo.jsx create mode 100644 templates/ice-design/blocks/PriceInfo/src/PriceInfo.scss create mode 100644 templates/ice-design/blocks/PriceInfo/src/index.js create mode 100644 templates/ice-design/blocks/PrivateMessageForm/.editorconfig create mode 100644 templates/ice-design/blocks/PrivateMessageForm/.eslintignore create mode 100644 templates/ice-design/blocks/PrivateMessageForm/.eslintrc create mode 100644 templates/ice-design/blocks/PrivateMessageForm/.gitignore create mode 100644 templates/ice-design/blocks/PrivateMessageForm/README.md create mode 100644 templates/ice-design/blocks/PrivateMessageForm/demo/index.html create mode 100644 templates/ice-design/blocks/PrivateMessageForm/demo/index.js create mode 100644 templates/ice-design/blocks/PrivateMessageForm/lib/PrivateMessageForm.js create mode 100644 templates/ice-design/blocks/PrivateMessageForm/lib/PrivateMessageForm.scss create mode 100644 templates/ice-design/blocks/PrivateMessageForm/lib/index.js create mode 100644 templates/ice-design/blocks/PrivateMessageForm/mock/api.json create mode 100644 templates/ice-design/blocks/PrivateMessageForm/package.json create mode 100644 templates/ice-design/blocks/PrivateMessageForm/src/PrivateMessageForm.jsx create mode 100644 templates/ice-design/blocks/PrivateMessageForm/src/PrivateMessageForm.scss create mode 100644 templates/ice-design/blocks/PrivateMessageForm/src/index.js create mode 100644 templates/ice-design/blocks/ProductInfo/.editorconfig create mode 100644 templates/ice-design/blocks/ProductInfo/.eslintignore create mode 100644 templates/ice-design/blocks/ProductInfo/.eslintrc create mode 100644 templates/ice-design/blocks/ProductInfo/.gitignore create mode 100644 templates/ice-design/blocks/ProductInfo/README.md create mode 100644 templates/ice-design/blocks/ProductInfo/demo/index.html create mode 100644 templates/ice-design/blocks/ProductInfo/demo/index.js create mode 100644 templates/ice-design/blocks/ProductInfo/lib/ProductInfo.js create mode 100644 templates/ice-design/blocks/ProductInfo/lib/ProductInfo.scss create mode 100644 templates/ice-design/blocks/ProductInfo/lib/index.js create mode 100644 templates/ice-design/blocks/ProductInfo/mock/api.json create mode 100644 templates/ice-design/blocks/ProductInfo/package.json create mode 100644 templates/ice-design/blocks/ProductInfo/src/ProductInfo.jsx create mode 100644 templates/ice-design/blocks/ProductInfo/src/ProductInfo.scss create mode 100644 templates/ice-design/blocks/ProductInfo/src/index.js create mode 100644 templates/ice-design/blocks/ProgressTable/.editorconfig create mode 100644 templates/ice-design/blocks/ProgressTable/.eslintignore create mode 100644 templates/ice-design/blocks/ProgressTable/.eslintrc create mode 100644 templates/ice-design/blocks/ProgressTable/.gitignore create mode 100644 templates/ice-design/blocks/ProgressTable/README.md create mode 100644 templates/ice-design/blocks/ProgressTable/demo/index.html create mode 100644 templates/ice-design/blocks/ProgressTable/demo/index.js create mode 100644 templates/ice-design/blocks/ProgressTable/lib/ProgressTable.js create mode 100644 templates/ice-design/blocks/ProgressTable/lib/ProgressTable.scss create mode 100644 templates/ice-design/blocks/ProgressTable/lib/index.js create mode 100644 templates/ice-design/blocks/ProgressTable/mock/api.json create mode 100644 templates/ice-design/blocks/ProgressTable/package.json create mode 100644 templates/ice-design/blocks/ProgressTable/src/ProgressTable.jsx create mode 100644 templates/ice-design/blocks/ProgressTable/src/ProgressTable.scss create mode 100644 templates/ice-design/blocks/ProgressTable/src/index.js create mode 100644 templates/ice-design/blocks/RegisterForm/.editorconfig create mode 100644 templates/ice-design/blocks/RegisterForm/.eslintignore create mode 100644 templates/ice-design/blocks/RegisterForm/.eslintrc create mode 100644 templates/ice-design/blocks/RegisterForm/.gitignore create mode 100644 templates/ice-design/blocks/RegisterForm/README.md create mode 100644 templates/ice-design/blocks/RegisterForm/abc.json create mode 100644 templates/ice-design/blocks/RegisterForm/demo/index.html create mode 100644 templates/ice-design/blocks/RegisterForm/demo/index.js create mode 100644 templates/ice-design/blocks/RegisterForm/lib/RegisterForm.js create mode 100644 templates/ice-design/blocks/RegisterForm/lib/RegisterForm.scss create mode 100644 templates/ice-design/blocks/RegisterForm/lib/index.js create mode 100644 templates/ice-design/blocks/RegisterForm/mock/api.json create mode 100644 templates/ice-design/blocks/RegisterForm/package.json create mode 100644 templates/ice-design/blocks/RegisterForm/src/RegisterForm.jsx create mode 100644 templates/ice-design/blocks/RegisterForm/src/RegisterForm.scss create mode 100644 templates/ice-design/blocks/RegisterForm/src/index.js create mode 100644 templates/ice-design/blocks/RightContentDisplay/.editorconfig create mode 100644 templates/ice-design/blocks/RightContentDisplay/.eslintignore create mode 100644 templates/ice-design/blocks/RightContentDisplay/.eslintrc create mode 100644 templates/ice-design/blocks/RightContentDisplay/.gitignore create mode 100644 templates/ice-design/blocks/RightContentDisplay/README.md create mode 100644 templates/ice-design/blocks/RightContentDisplay/demo/index.html create mode 100644 templates/ice-design/blocks/RightContentDisplay/demo/index.js create mode 100644 templates/ice-design/blocks/RightContentDisplay/lib/RightContentDisplay.js create mode 100644 templates/ice-design/blocks/RightContentDisplay/lib/RightContentDisplay.scss create mode 100644 templates/ice-design/blocks/RightContentDisplay/lib/index.js create mode 100644 templates/ice-design/blocks/RightContentDisplay/mock/api.json create mode 100644 templates/ice-design/blocks/RightContentDisplay/package.json create mode 100644 templates/ice-design/blocks/RightContentDisplay/src/RightContentDisplay.jsx create mode 100644 templates/ice-design/blocks/RightContentDisplay/src/RightContentDisplay.scss create mode 100644 templates/ice-design/blocks/RightContentDisplay/src/index.js create mode 100644 templates/ice-design/blocks/SelectableTable/.editorconfig create mode 100644 templates/ice-design/blocks/SelectableTable/.eslintignore create mode 100644 templates/ice-design/blocks/SelectableTable/.eslintrc create mode 100644 templates/ice-design/blocks/SelectableTable/.gitignore create mode 100644 templates/ice-design/blocks/SelectableTable/README.md create mode 100644 templates/ice-design/blocks/SelectableTable/demo/index.html create mode 100644 templates/ice-design/blocks/SelectableTable/demo/index.js create mode 100644 templates/ice-design/blocks/SelectableTable/lib/SelectableTable.js create mode 100644 templates/ice-design/blocks/SelectableTable/lib/SelectableTable.scss create mode 100644 templates/ice-design/blocks/SelectableTable/lib/index.js create mode 100644 templates/ice-design/blocks/SelectableTable/mock/api.json create mode 100644 templates/ice-design/blocks/SelectableTable/package.json create mode 100644 templates/ice-design/blocks/SelectableTable/src/SelectableTable.jsx create mode 100644 templates/ice-design/blocks/SelectableTable/src/SelectableTable.scss create mode 100644 templates/ice-design/blocks/SelectableTable/src/index.js create mode 100644 templates/ice-design/blocks/SignupForm/.editorconfig create mode 100644 templates/ice-design/blocks/SignupForm/.eslintignore create mode 100644 templates/ice-design/blocks/SignupForm/.eslintrc create mode 100644 templates/ice-design/blocks/SignupForm/.gitignore create mode 100644 templates/ice-design/blocks/SignupForm/README.md create mode 100644 templates/ice-design/blocks/SignupForm/demo/index.html create mode 100644 templates/ice-design/blocks/SignupForm/demo/index.js create mode 100644 templates/ice-design/blocks/SignupForm/lib/SignupForm.js create mode 100644 templates/ice-design/blocks/SignupForm/lib/SignupForm.scss create mode 100644 templates/ice-design/blocks/SignupForm/lib/index.js create mode 100644 templates/ice-design/blocks/SignupForm/mock/api.json create mode 100644 templates/ice-design/blocks/SignupForm/package.json create mode 100644 templates/ice-design/blocks/SignupForm/src/SignupForm.jsx create mode 100644 templates/ice-design/blocks/SignupForm/src/SignupForm.scss create mode 100644 templates/ice-design/blocks/SignupForm/src/index.js create mode 100644 templates/ice-design/blocks/SimpleFluencyForm/.editorconfig create mode 100644 templates/ice-design/blocks/SimpleFluencyForm/.eslintignore create mode 100644 templates/ice-design/blocks/SimpleFluencyForm/.eslintrc create mode 100644 templates/ice-design/blocks/SimpleFluencyForm/.gitignore create mode 100644 templates/ice-design/blocks/SimpleFluencyForm/README.md create mode 100644 templates/ice-design/blocks/SimpleFluencyForm/demo/index.html create mode 100644 templates/ice-design/blocks/SimpleFluencyForm/demo/index.js create mode 100644 templates/ice-design/blocks/SimpleFluencyForm/lib/SimpleFluencyForm.js create mode 100644 templates/ice-design/blocks/SimpleFluencyForm/lib/SimpleFluencyForm.scss create mode 100644 templates/ice-design/blocks/SimpleFluencyForm/lib/index.js create mode 100644 templates/ice-design/blocks/SimpleFluencyForm/mock/api.json create mode 100644 templates/ice-design/blocks/SimpleFluencyForm/package.json create mode 100644 templates/ice-design/blocks/SimpleFluencyForm/src/SimpleFluencyForm.jsx create mode 100644 templates/ice-design/blocks/SimpleFluencyForm/src/SimpleFluencyForm.scss create mode 100644 templates/ice-design/blocks/SimpleFluencyForm/src/index.js create mode 100644 templates/ice-design/blocks/SimpleFormDialog/.editorconfig create mode 100644 templates/ice-design/blocks/SimpleFormDialog/.eslintignore create mode 100644 templates/ice-design/blocks/SimpleFormDialog/.eslintrc create mode 100644 templates/ice-design/blocks/SimpleFormDialog/.gitignore create mode 100644 templates/ice-design/blocks/SimpleFormDialog/README.md create mode 100644 templates/ice-design/blocks/SimpleFormDialog/demo/index.html create mode 100644 templates/ice-design/blocks/SimpleFormDialog/demo/index.js create mode 100644 templates/ice-design/blocks/SimpleFormDialog/lib/CreateFuncDialog.js create mode 100644 templates/ice-design/blocks/SimpleFormDialog/lib/SimpleFormDialog.js create mode 100644 templates/ice-design/blocks/SimpleFormDialog/lib/SimpleFormDialog.scss create mode 100644 templates/ice-design/blocks/SimpleFormDialog/lib/index.js create mode 100644 templates/ice-design/blocks/SimpleFormDialog/mock/api.json create mode 100644 templates/ice-design/blocks/SimpleFormDialog/package.json create mode 100644 templates/ice-design/blocks/SimpleFormDialog/src/CreateFuncDialog.js create mode 100644 templates/ice-design/blocks/SimpleFormDialog/src/SimpleFormDialog.jsx create mode 100644 templates/ice-design/blocks/SimpleFormDialog/src/SimpleFormDialog.scss create mode 100644 templates/ice-design/blocks/SimpleFormDialog/src/index.js create mode 100644 templates/ice-design/blocks/SimpleTable/.editorconfig create mode 100644 templates/ice-design/blocks/SimpleTable/.eslintignore create mode 100644 templates/ice-design/blocks/SimpleTable/.eslintrc create mode 100644 templates/ice-design/blocks/SimpleTable/.gitignore create mode 100644 templates/ice-design/blocks/SimpleTable/README.md create mode 100644 templates/ice-design/blocks/SimpleTable/demo/index.html create mode 100644 templates/ice-design/blocks/SimpleTable/demo/index.js create mode 100644 templates/ice-design/blocks/SimpleTable/lib/SimpleTable.js create mode 100644 templates/ice-design/blocks/SimpleTable/lib/SimpleTable.scss create mode 100644 templates/ice-design/blocks/SimpleTable/lib/index.js create mode 100644 templates/ice-design/blocks/SimpleTable/mock/simple-table-list.json create mode 100644 templates/ice-design/blocks/SimpleTable/package.json create mode 100644 templates/ice-design/blocks/SimpleTable/src/SimpleTable.jsx create mode 100644 templates/ice-design/blocks/SimpleTable/src/SimpleTable.scss create mode 100644 templates/ice-design/blocks/SimpleTable/src/index.js create mode 100644 templates/ice-design/blocks/SimpleTestimonial/.editorconfig create mode 100644 templates/ice-design/blocks/SimpleTestimonial/.eslintignore create mode 100644 templates/ice-design/blocks/SimpleTestimonial/.eslintrc create mode 100644 templates/ice-design/blocks/SimpleTestimonial/.gitignore create mode 100644 templates/ice-design/blocks/SimpleTestimonial/README.md create mode 100644 templates/ice-design/blocks/SimpleTestimonial/demo/index.html create mode 100644 templates/ice-design/blocks/SimpleTestimonial/demo/index.js create mode 100644 templates/ice-design/blocks/SimpleTestimonial/lib/SimpleTestimonial.js create mode 100644 templates/ice-design/blocks/SimpleTestimonial/lib/SimpleTestimonial.scss create mode 100644 templates/ice-design/blocks/SimpleTestimonial/lib/index.js create mode 100644 templates/ice-design/blocks/SimpleTestimonial/mock/api.json create mode 100644 templates/ice-design/blocks/SimpleTestimonial/package.json create mode 100644 templates/ice-design/blocks/SimpleTestimonial/src/SimpleTestimonial.jsx create mode 100644 templates/ice-design/blocks/SimpleTestimonial/src/SimpleTestimonial.scss create mode 100644 templates/ice-design/blocks/SimpleTestimonial/src/index.js create mode 100644 templates/ice-design/blocks/SortCardList/.editorconfig create mode 100644 templates/ice-design/blocks/SortCardList/.eslintignore create mode 100644 templates/ice-design/blocks/SortCardList/.eslintrc create mode 100644 templates/ice-design/blocks/SortCardList/.gitignore create mode 100644 templates/ice-design/blocks/SortCardList/README.md create mode 100644 templates/ice-design/blocks/SortCardList/demo/index.html create mode 100644 templates/ice-design/blocks/SortCardList/demo/index.js create mode 100644 templates/ice-design/blocks/SortCardList/mock/api.json create mode 100644 templates/ice-design/blocks/SortCardList/package.json create mode 100644 templates/ice-design/blocks/SortCardList/src/SortCardList.jsx create mode 100644 templates/ice-design/blocks/SortCardList/src/SortCardList.scss create mode 100644 templates/ice-design/blocks/SortCardList/src/index.js create mode 100644 templates/ice-design/blocks/SortableTable/.editorconfig create mode 100644 templates/ice-design/blocks/SortableTable/.eslintignore create mode 100644 templates/ice-design/blocks/SortableTable/.eslintrc create mode 100644 templates/ice-design/blocks/SortableTable/.gitignore create mode 100644 templates/ice-design/blocks/SortableTable/README.md create mode 100644 templates/ice-design/blocks/SortableTable/demo/index.html create mode 100644 templates/ice-design/blocks/SortableTable/demo/index.js create mode 100644 templates/ice-design/blocks/SortableTable/lib/SortableTable.js create mode 100644 templates/ice-design/blocks/SortableTable/lib/SortableTable.scss create mode 100644 templates/ice-design/blocks/SortableTable/lib/index.js create mode 100644 templates/ice-design/blocks/SortableTable/mock/api.json create mode 100644 templates/ice-design/blocks/SortableTable/package.json create mode 100644 templates/ice-design/blocks/SortableTable/src/SortableTable.jsx create mode 100644 templates/ice-design/blocks/SortableTable/src/SortableTable.scss create mode 100644 templates/ice-design/blocks/SortableTable/src/index.js create mode 100644 templates/ice-design/blocks/StatisticalCard/.editorconfig create mode 100644 templates/ice-design/blocks/StatisticalCard/.eslintignore create mode 100644 templates/ice-design/blocks/StatisticalCard/.eslintrc create mode 100644 templates/ice-design/blocks/StatisticalCard/.gitignore create mode 100644 templates/ice-design/blocks/StatisticalCard/README.md create mode 100644 templates/ice-design/blocks/StatisticalCard/demo/index.html create mode 100644 templates/ice-design/blocks/StatisticalCard/demo/index.js create mode 100644 templates/ice-design/blocks/StatisticalCard/mock/api.json create mode 100644 templates/ice-design/blocks/StatisticalCard/package.json create mode 100644 templates/ice-design/blocks/StatisticalCard/src/StatisticalCard.jsx create mode 100644 templates/ice-design/blocks/StatisticalCard/src/StatisticalCard.scss create mode 100644 templates/ice-design/blocks/StatisticalCard/src/index.js create mode 100644 templates/ice-design/blocks/Subscribe/.editorconfig create mode 100644 templates/ice-design/blocks/Subscribe/.eslintignore create mode 100644 templates/ice-design/blocks/Subscribe/.eslintrc create mode 100644 templates/ice-design/blocks/Subscribe/.gitignore create mode 100644 templates/ice-design/blocks/Subscribe/README.md create mode 100644 templates/ice-design/blocks/Subscribe/demo/index.html create mode 100644 templates/ice-design/blocks/Subscribe/demo/index.js create mode 100644 templates/ice-design/blocks/Subscribe/mock/api.json create mode 100644 templates/ice-design/blocks/Subscribe/package.json create mode 100644 templates/ice-design/blocks/Subscribe/src/Subscribe.jsx create mode 100644 templates/ice-design/blocks/Subscribe/src/Subscribe.scss create mode 100644 templates/ice-design/blocks/Subscribe/src/index.js create mode 100644 templates/ice-design/blocks/SuccessDetail/.editorconfig create mode 100644 templates/ice-design/blocks/SuccessDetail/.eslintignore create mode 100644 templates/ice-design/blocks/SuccessDetail/.eslintrc create mode 100644 templates/ice-design/blocks/SuccessDetail/.gitignore create mode 100644 templates/ice-design/blocks/SuccessDetail/README.md create mode 100644 templates/ice-design/blocks/SuccessDetail/demo/index.html create mode 100644 templates/ice-design/blocks/SuccessDetail/demo/index.js create mode 100644 templates/ice-design/blocks/SuccessDetail/mock/api.json create mode 100644 templates/ice-design/blocks/SuccessDetail/package.json create mode 100644 templates/ice-design/blocks/SuccessDetail/src/SuccessDetail.jsx create mode 100644 templates/ice-design/blocks/SuccessDetail/src/SuccessDetail.scss create mode 100644 templates/ice-design/blocks/SuccessDetail/src/index.js create mode 100644 templates/ice-design/blocks/SuccessDialog/.editorconfig create mode 100644 templates/ice-design/blocks/SuccessDialog/.eslintignore create mode 100644 templates/ice-design/blocks/SuccessDialog/.eslintrc create mode 100644 templates/ice-design/blocks/SuccessDialog/.gitignore create mode 100644 templates/ice-design/blocks/SuccessDialog/README.md create mode 100644 templates/ice-design/blocks/SuccessDialog/demo/index.html create mode 100644 templates/ice-design/blocks/SuccessDialog/demo/index.js create mode 100644 templates/ice-design/blocks/SuccessDialog/mock/api.json create mode 100644 templates/ice-design/blocks/SuccessDialog/package.json create mode 100644 templates/ice-design/blocks/SuccessDialog/src/CreateFuncDialog.js create mode 100644 templates/ice-design/blocks/SuccessDialog/src/SuccessDialog.jsx create mode 100644 templates/ice-design/blocks/SuccessDialog/src/SuccessDialog.scss create mode 100644 templates/ice-design/blocks/SuccessDialog/src/index.js create mode 100644 templates/ice-design/blocks/SystemNoticeList/.editorconfig create mode 100644 templates/ice-design/blocks/SystemNoticeList/.eslintignore create mode 100644 templates/ice-design/blocks/SystemNoticeList/.eslintrc create mode 100644 templates/ice-design/blocks/SystemNoticeList/.gitignore create mode 100644 templates/ice-design/blocks/SystemNoticeList/README.md create mode 100644 templates/ice-design/blocks/SystemNoticeList/demo/index.html create mode 100644 templates/ice-design/blocks/SystemNoticeList/demo/index.js create mode 100644 templates/ice-design/blocks/SystemNoticeList/mock/api.json create mode 100644 templates/ice-design/blocks/SystemNoticeList/package.json create mode 100644 templates/ice-design/blocks/SystemNoticeList/src/SystemNoticeList.jsx create mode 100644 templates/ice-design/blocks/SystemNoticeList/src/SystemNoticeList.scss create mode 100644 templates/ice-design/blocks/SystemNoticeList/src/index.js create mode 100644 templates/ice-design/blocks/TabArticle/.editorconfig create mode 100644 templates/ice-design/blocks/TabArticle/.eslintignore create mode 100644 templates/ice-design/blocks/TabArticle/.eslintrc create mode 100644 templates/ice-design/blocks/TabArticle/.gitignore create mode 100644 templates/ice-design/blocks/TabArticle/README.md create mode 100644 templates/ice-design/blocks/TabArticle/demo/index.html create mode 100644 templates/ice-design/blocks/TabArticle/demo/index.js create mode 100644 templates/ice-design/blocks/TabArticle/mock/api.json create mode 100644 templates/ice-design/blocks/TabArticle/package.json create mode 100644 templates/ice-design/blocks/TabArticle/src/ArticleList/ArticleList.jsx create mode 100644 templates/ice-design/blocks/TabArticle/src/ArticleList/ArticleList.scss create mode 100644 templates/ice-design/blocks/TabArticle/src/ArticleList/index.js create mode 100644 templates/ice-design/blocks/TabArticle/src/TabArticle.jsx create mode 100644 templates/ice-design/blocks/TabArticle/src/TabArticle.scss create mode 100644 templates/ice-design/blocks/TabArticle/src/index.js create mode 100644 templates/ice-design/blocks/TabDialog/.editorconfig create mode 100644 templates/ice-design/blocks/TabDialog/.eslintignore create mode 100644 templates/ice-design/blocks/TabDialog/.eslintrc create mode 100644 templates/ice-design/blocks/TabDialog/.gitignore create mode 100644 templates/ice-design/blocks/TabDialog/README.md create mode 100644 templates/ice-design/blocks/TabDialog/demo/index.html create mode 100644 templates/ice-design/blocks/TabDialog/demo/index.js create mode 100644 templates/ice-design/blocks/TabDialog/mock/api.json create mode 100644 templates/ice-design/blocks/TabDialog/package.json create mode 100644 templates/ice-design/blocks/TabDialog/src/CreateFuncDialog.js create mode 100644 templates/ice-design/blocks/TabDialog/src/TabDialog.jsx create mode 100644 templates/ice-design/blocks/TabDialog/src/TabDialog.scss create mode 100644 templates/ice-design/blocks/TabDialog/src/index.js create mode 100644 templates/ice-design/blocks/TagMessageList/.editorconfig create mode 100644 templates/ice-design/blocks/TagMessageList/.eslintignore create mode 100644 templates/ice-design/blocks/TagMessageList/.eslintrc create mode 100644 templates/ice-design/blocks/TagMessageList/.gitignore create mode 100644 templates/ice-design/blocks/TagMessageList/README.md create mode 100644 templates/ice-design/blocks/TagMessageList/demo/index.html create mode 100644 templates/ice-design/blocks/TagMessageList/demo/index.js create mode 100644 templates/ice-design/blocks/TagMessageList/mock/api.json create mode 100644 templates/ice-design/blocks/TagMessageList/package.json create mode 100644 templates/ice-design/blocks/TagMessageList/src/TagMessageList.jsx create mode 100644 templates/ice-design/blocks/TagMessageList/src/TagMessageList.scss create mode 100644 templates/ice-design/blocks/TagMessageList/src/index.js create mode 100644 templates/ice-design/blocks/TeamDisplay/.editorconfig create mode 100644 templates/ice-design/blocks/TeamDisplay/.eslintignore create mode 100644 templates/ice-design/blocks/TeamDisplay/.eslintrc create mode 100644 templates/ice-design/blocks/TeamDisplay/.gitignore create mode 100644 templates/ice-design/blocks/TeamDisplay/README.md create mode 100644 templates/ice-design/blocks/TeamDisplay/demo/index.html create mode 100644 templates/ice-design/blocks/TeamDisplay/demo/index.js create mode 100644 templates/ice-design/blocks/TeamDisplay/mock/api.json create mode 100644 templates/ice-design/blocks/TeamDisplay/package.json create mode 100644 templates/ice-design/blocks/TeamDisplay/src/TeamDisplay.jsx create mode 100644 templates/ice-design/blocks/TeamDisplay/src/TeamDisplay.scss create mode 100644 templates/ice-design/blocks/TeamDisplay/src/index.js create mode 100644 templates/ice-design/blocks/TermsInfo/.editorconfig create mode 100644 templates/ice-design/blocks/TermsInfo/.eslintignore create mode 100644 templates/ice-design/blocks/TermsInfo/.eslintrc create mode 100644 templates/ice-design/blocks/TermsInfo/.gitignore create mode 100644 templates/ice-design/blocks/TermsInfo/README.md create mode 100644 templates/ice-design/blocks/TermsInfo/demo/index.html create mode 100644 templates/ice-design/blocks/TermsInfo/demo/index.js create mode 100644 templates/ice-design/blocks/TermsInfo/mock/api.json create mode 100644 templates/ice-design/blocks/TermsInfo/package.json create mode 100644 templates/ice-design/blocks/TermsInfo/src/TermsInfo.jsx create mode 100644 templates/ice-design/blocks/TermsInfo/src/TermsInfo.scss create mode 100644 templates/ice-design/blocks/TermsInfo/src/index.js create mode 100644 templates/ice-design/blocks/Testimonial/.editorconfig create mode 100644 templates/ice-design/blocks/Testimonial/.eslintignore create mode 100644 templates/ice-design/blocks/Testimonial/.eslintrc create mode 100644 templates/ice-design/blocks/Testimonial/.gitignore create mode 100644 templates/ice-design/blocks/Testimonial/README.md create mode 100644 templates/ice-design/blocks/Testimonial/demo/index.html create mode 100644 templates/ice-design/blocks/Testimonial/demo/index.js create mode 100644 templates/ice-design/blocks/Testimonial/lib/Testimonial.js create mode 100644 templates/ice-design/blocks/Testimonial/lib/Testimonial.scss create mode 100644 templates/ice-design/blocks/Testimonial/lib/index.js create mode 100644 templates/ice-design/blocks/Testimonial/mock/api.json create mode 100644 templates/ice-design/blocks/Testimonial/package.json create mode 100644 templates/ice-design/blocks/Testimonial/src/Testimonial.jsx create mode 100644 templates/ice-design/blocks/Testimonial/src/Testimonial.scss create mode 100644 templates/ice-design/blocks/Testimonial/src/index.js create mode 100644 templates/ice-design/blocks/TestimonialCard/.editorconfig create mode 100644 templates/ice-design/blocks/TestimonialCard/.eslintignore create mode 100644 templates/ice-design/blocks/TestimonialCard/.eslintrc create mode 100644 templates/ice-design/blocks/TestimonialCard/.gitignore create mode 100644 templates/ice-design/blocks/TestimonialCard/README.md create mode 100644 templates/ice-design/blocks/TestimonialCard/demo/index.html create mode 100644 templates/ice-design/blocks/TestimonialCard/demo/index.js create mode 100644 templates/ice-design/blocks/TestimonialCard/mock/api.json create mode 100644 templates/ice-design/blocks/TestimonialCard/package.json create mode 100644 templates/ice-design/blocks/TestimonialCard/src/TestimonialCard.jsx create mode 100644 templates/ice-design/blocks/TestimonialCard/src/TestimonialCard.scss create mode 100644 templates/ice-design/blocks/TestimonialCard/src/index.js create mode 100644 templates/ice-design/blocks/TextCard/.editorconfig create mode 100644 templates/ice-design/blocks/TextCard/.eslintignore create mode 100644 templates/ice-design/blocks/TextCard/.eslintrc create mode 100644 templates/ice-design/blocks/TextCard/.gitignore create mode 100644 templates/ice-design/blocks/TextCard/README.md create mode 100644 templates/ice-design/blocks/TextCard/demo/index.html create mode 100644 templates/ice-design/blocks/TextCard/demo/index.js create mode 100644 templates/ice-design/blocks/TextCard/mock/api.json create mode 100644 templates/ice-design/blocks/TextCard/package.json create mode 100644 templates/ice-design/blocks/TextCard/src/TextCard.jsx create mode 100644 templates/ice-design/blocks/TextCard/src/TextCard.scss create mode 100644 templates/ice-design/blocks/TextCard/src/index.js create mode 100644 templates/ice-design/blocks/TextSearchList/.editorconfig create mode 100644 templates/ice-design/blocks/TextSearchList/.eslintignore create mode 100644 templates/ice-design/blocks/TextSearchList/.eslintrc create mode 100644 templates/ice-design/blocks/TextSearchList/.gitignore create mode 100644 templates/ice-design/blocks/TextSearchList/README.md create mode 100644 templates/ice-design/blocks/TextSearchList/demo/index.html create mode 100644 templates/ice-design/blocks/TextSearchList/demo/index.js create mode 100644 templates/ice-design/blocks/TextSearchList/lib/ArticleList/ArticleList.js create mode 100644 templates/ice-design/blocks/TextSearchList/lib/ArticleList/ArticleList.scss create mode 100644 templates/ice-design/blocks/TextSearchList/lib/ArticleList/index.js create mode 100644 templates/ice-design/blocks/TextSearchList/lib/Filter/Filter.js create mode 100644 templates/ice-design/blocks/TextSearchList/lib/Filter/index.js create mode 100644 templates/ice-design/blocks/TextSearchList/lib/TextSearchList.js create mode 100644 templates/ice-design/blocks/TextSearchList/lib/TextSearchList.scss create mode 100644 templates/ice-design/blocks/TextSearchList/lib/index.js create mode 100644 templates/ice-design/blocks/TextSearchList/mock/api.json create mode 100644 templates/ice-design/blocks/TextSearchList/package.json create mode 100644 templates/ice-design/blocks/TextSearchList/src/ArticleList/ArticleList.jsx create mode 100644 templates/ice-design/blocks/TextSearchList/src/ArticleList/ArticleList.scss create mode 100644 templates/ice-design/blocks/TextSearchList/src/ArticleList/index.js create mode 100644 templates/ice-design/blocks/TextSearchList/src/Filter/Filter.jsx create mode 100644 templates/ice-design/blocks/TextSearchList/src/Filter/index.js create mode 100644 templates/ice-design/blocks/TextSearchList/src/TextSearchList.jsx create mode 100644 templates/ice-design/blocks/TextSearchList/src/TextSearchList.scss create mode 100644 templates/ice-design/blocks/TextSearchList/src/index.js create mode 100644 templates/ice-design/blocks/TimeFilterTable/.editorconfig create mode 100644 templates/ice-design/blocks/TimeFilterTable/.eslintignore create mode 100644 templates/ice-design/blocks/TimeFilterTable/.eslintrc create mode 100644 templates/ice-design/blocks/TimeFilterTable/.gitignore create mode 100644 templates/ice-design/blocks/TimeFilterTable/README.md create mode 100644 templates/ice-design/blocks/TimeFilterTable/abc.json create mode 100644 templates/ice-design/blocks/TimeFilterTable/demo/index.html create mode 100644 templates/ice-design/blocks/TimeFilterTable/demo/index.js create mode 100644 templates/ice-design/blocks/TimeFilterTable/mock/time-filter-table.json create mode 100644 templates/ice-design/blocks/TimeFilterTable/package.json create mode 100644 templates/ice-design/blocks/TimeFilterTable/src/TimeFilterTable.jsx create mode 100644 templates/ice-design/blocks/TimeFilterTable/src/TimeFilterTable.scss create mode 100644 templates/ice-design/blocks/TimeFilterTable/src/index.js create mode 100644 templates/ice-design/blocks/TopicCard/.editorconfig create mode 100644 templates/ice-design/blocks/TopicCard/.eslintignore create mode 100644 templates/ice-design/blocks/TopicCard/.eslintrc create mode 100644 templates/ice-design/blocks/TopicCard/.gitignore create mode 100644 templates/ice-design/blocks/TopicCard/README.md create mode 100644 templates/ice-design/blocks/TopicCard/demo/index.html create mode 100644 templates/ice-design/blocks/TopicCard/demo/index.js create mode 100644 templates/ice-design/blocks/TopicCard/lib/TopicCard.js create mode 100644 templates/ice-design/blocks/TopicCard/lib/TopicCard.scss create mode 100644 templates/ice-design/blocks/TopicCard/lib/index.js create mode 100644 templates/ice-design/blocks/TopicCard/mock/api.json create mode 100644 templates/ice-design/blocks/TopicCard/package.json create mode 100644 templates/ice-design/blocks/TopicCard/src/TopicCard.jsx create mode 100644 templates/ice-design/blocks/TopicCard/src/TopicCard.scss create mode 100644 templates/ice-design/blocks/TopicCard/src/index.js create mode 100644 templates/ice-design/blocks/TreeCardList/.editorconfig create mode 100644 templates/ice-design/blocks/TreeCardList/.eslintignore create mode 100644 templates/ice-design/blocks/TreeCardList/.eslintrc create mode 100644 templates/ice-design/blocks/TreeCardList/.gitignore create mode 100644 templates/ice-design/blocks/TreeCardList/README.md create mode 100644 templates/ice-design/blocks/TreeCardList/demo/index.html create mode 100644 templates/ice-design/blocks/TreeCardList/demo/index.js create mode 100644 templates/ice-design/blocks/TreeCardList/mock/api.json create mode 100644 templates/ice-design/blocks/TreeCardList/package.json create mode 100644 templates/ice-design/blocks/TreeCardList/src/TreeCardList.jsx create mode 100644 templates/ice-design/blocks/TreeCardList/src/TreeCardList.scss create mode 100644 templates/ice-design/blocks/TreeCardList/src/index.js create mode 100644 templates/ice-design/layouts/AsideLayout/.editorconfig create mode 100644 templates/ice-design/layouts/AsideLayout/.eslintignore create mode 100644 templates/ice-design/layouts/AsideLayout/.eslintrc create mode 100644 templates/ice-design/layouts/AsideLayout/.gitignore create mode 100644 templates/ice-design/layouts/AsideLayout/README.md create mode 100644 templates/ice-design/layouts/AsideLayout/demo/index.html create mode 100644 templates/ice-design/layouts/AsideLayout/demo/index.js create mode 100644 templates/ice-design/layouts/AsideLayout/mock/api.json create mode 100644 templates/ice-design/layouts/AsideLayout/package.json create mode 100644 templates/ice-design/layouts/AsideLayout/src/Layout.jsx create mode 100644 templates/ice-design/layouts/AsideLayout/src/Layout.scss create mode 100644 templates/ice-design/layouts/AsideLayout/src/__components_Footer__.jsx create mode 100644 templates/ice-design/layouts/AsideLayout/src/__components_Header__.jsx create mode 100644 templates/ice-design/layouts/AsideLayout/src/__components_Logo__.jsx create mode 100644 templates/ice-design/layouts/AsideLayout/src/__config_navs__.json create mode 100644 templates/ice-design/layouts/AsideLayout/src/index.js create mode 100644 templates/ice-design/layouts/BasicLayout/.editorconfig create mode 100644 templates/ice-design/layouts/BasicLayout/.eslintignore create mode 100644 templates/ice-design/layouts/BasicLayout/.eslintrc create mode 100644 templates/ice-design/layouts/BasicLayout/.gitignore create mode 100644 templates/ice-design/layouts/BasicLayout/README.md create mode 100644 templates/ice-design/layouts/BasicLayout/demo/index.html create mode 100644 templates/ice-design/layouts/BasicLayout/demo/index.js create mode 100644 templates/ice-design/layouts/BasicLayout/mock/api.json create mode 100644 templates/ice-design/layouts/BasicLayout/package.json create mode 100644 templates/ice-design/layouts/BasicLayout/src/Layout.jsx create mode 100644 templates/ice-design/layouts/BasicLayout/src/Layout.scss create mode 100644 templates/ice-design/layouts/BasicLayout/src/__components_Footer__.jsx create mode 100644 templates/ice-design/layouts/BasicLayout/src/__components_Header__.jsx create mode 100644 templates/ice-design/layouts/BasicLayout/src/__components_Logo__.jsx create mode 100644 templates/ice-design/layouts/BasicLayout/src/__config_navs__.json create mode 100644 templates/ice-design/layouts/BasicLayout/src/index.js create mode 100644 templates/ice-design/layouts/LandingLayout/.editorconfig create mode 100644 templates/ice-design/layouts/LandingLayout/.eslintignore create mode 100644 templates/ice-design/layouts/LandingLayout/.eslintrc create mode 100644 templates/ice-design/layouts/LandingLayout/.gitignore create mode 100644 templates/ice-design/layouts/LandingLayout/README.md create mode 100644 templates/ice-design/layouts/LandingLayout/demo/index.html create mode 100644 templates/ice-design/layouts/LandingLayout/demo/index.js create mode 100644 templates/ice-design/layouts/LandingLayout/mock/api.json create mode 100644 templates/ice-design/layouts/LandingLayout/package.json create mode 100644 templates/ice-design/layouts/LandingLayout/src/Layout.jsx create mode 100644 templates/ice-design/layouts/LandingLayout/src/Layout.scss create mode 100644 templates/ice-design/layouts/LandingLayout/src/__components_Footer__.jsx create mode 100644 templates/ice-design/layouts/LandingLayout/src/__components_Header__.jsx create mode 100644 templates/ice-design/layouts/LandingLayout/src/__components_Logo__.jsx create mode 100644 templates/ice-design/layouts/LandingLayout/src/__config_navs__.json create mode 100644 templates/ice-design/layouts/LandingLayout/src/index.js create mode 100644 templates/ice-design/layouts/ScalableAsideLayout/.editorconfig create mode 100644 templates/ice-design/layouts/ScalableAsideLayout/.eslintignore create mode 100644 templates/ice-design/layouts/ScalableAsideLayout/.eslintrc create mode 100644 templates/ice-design/layouts/ScalableAsideLayout/.gitignore create mode 100644 templates/ice-design/layouts/ScalableAsideLayout/README.md create mode 100644 templates/ice-design/layouts/ScalableAsideLayout/demo/index.html create mode 100644 templates/ice-design/layouts/ScalableAsideLayout/demo/index.js create mode 100644 templates/ice-design/layouts/ScalableAsideLayout/mock/api.json create mode 100644 templates/ice-design/layouts/ScalableAsideLayout/package.json create mode 100644 templates/ice-design/layouts/ScalableAsideLayout/src/Layout.jsx create mode 100644 templates/ice-design/layouts/ScalableAsideLayout/src/Layout.scss create mode 100644 templates/ice-design/layouts/ScalableAsideLayout/src/__components_Footer__.jsx create mode 100644 templates/ice-design/layouts/ScalableAsideLayout/src/__components_Header__.jsx create mode 100644 templates/ice-design/layouts/ScalableAsideLayout/src/__components_Logo__.jsx create mode 100644 templates/ice-design/layouts/ScalableAsideLayout/src/__config_navs__.json create mode 100644 templates/ice-design/layouts/ScalableAsideLayout/src/index.js diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000000..2b41665e28 --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +node_modules +.DS_Store +lerna-debug.log +npm-debug.log +mochawesome-report +.happypack diff --git a/lerna.json b/lerna.json new file mode 100644 index 0000000000..485c67e43d --- /dev/null +++ b/lerna.json @@ -0,0 +1,8 @@ +{ + "lerna": "2.5.1", + "packages": [ + "packages/*", + "templates/**" + ], + "version": "independent" +} \ No newline at end of file diff --git a/package.json b/package.json new file mode 100644 index 0000000000..65cb96629d --- /dev/null +++ b/package.json @@ -0,0 +1,20 @@ +{ + "name": "ice-workspace", + "version": "0.0.1", + "scripts": { + "publish": "def update @ali/builder-ice && git pull origin master && lerna publish" + }, + "repository": { + "type": "git", + "url": "git@gitlab.alibaba-inc.com:ice/workspace-outside.git" + }, + "devDependencies": { + "cz-conventional-changelog": "^2.1.0", + "lerna": "^2.5.1" + }, + "config": { + "commitizen": { + "path": "./node_modules/cz-conventional-changelog" + } + } +} diff --git a/templates/ice-design/blocks/ApplicationProgress/.editorconfig b/templates/ice-design/blocks/ApplicationProgress/.editorconfig new file mode 100644 index 0000000000..22ef5ace54 --- /dev/null +++ b/templates/ice-design/blocks/ApplicationProgress/.editorconfig @@ -0,0 +1,16 @@ +# http://editorconfig.org +root = true + +[*] +indent_style = space +indent_size = 2 +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false + +[makefile] +indent_style = tab +indent_size = 4 diff --git a/templates/ice-design/blocks/ApplicationProgress/.eslintignore b/templates/ice-design/blocks/ApplicationProgress/.eslintignore new file mode 100644 index 0000000000..3b21308fc7 --- /dev/null +++ b/templates/ice-design/blocks/ApplicationProgress/.eslintignore @@ -0,0 +1,12 @@ +# 忽略目录 +build/ +tests/ +demo/ +lib/ + +# node 覆盖率文件 +coverage/ + +# 忽略文件 +**/*-min.js +**/*.min.js \ No newline at end of file diff --git a/templates/ice-design/blocks/ApplicationProgress/.eslintrc b/templates/ice-design/blocks/ApplicationProgress/.eslintrc new file mode 100644 index 0000000000..7a4e5bac48 --- /dev/null +++ b/templates/ice-design/blocks/ApplicationProgress/.eslintrc @@ -0,0 +1,62 @@ +{ + "root": true, + "parser": "babel-eslint", + "extends": "eslint-config-airbnb", + "parserOptions": { + "ecmaVersion": 6, + "ecmaFeatures": { + "jsx": true, + "experimentalObjectRestSpread": true + } + }, + "env": { + "browser": true + }, + "plugins": [ + "react", + "babel" + ], + "rules": { + "react/forbid-prop-types": 0, + "jsx-a11y/label-has-for": 0, + "jsx-a11y/no-static-element-interactions": 0, + "jsx-a11y/anchor-has-content": 0, + "jsx-a11y/click-events-have-key-events": 0, + "jsx-a11y/anchor-is-valid": 0, + "react/no-array-index-key": 0, + "func-names": 0, + "arrow-body-style": 0, + "no-use-before-define": 0, + "react/sort-comp": 0, + "react/prop-types": 0, + "react/jsx-first-prop-new-line": 0, + "react/jsx-filename-extension": [ + 1, + { + "extensions": [ + ".js", + ".jsx" + ] + } + ], + "import/extensions": 0, + "import/no-unresolved": 0, + "import/no-extraneous-dependencies": 0, + "prefer-destructuring": 0, + "no-param-reassign": 0, + "no-return-assign": 0, + "max-len": 0, + "consistent-return": 0, + "no-redeclare": 0, + "react/require-extension": 0, + "react/no-danger": 0, + "comma-dangle": [ + "error", + "always-multiline" + ], + "function-paren-newline": 0, + "object-curly-newline": 0, + "no-restricted-globals": 0, + "react/prefer-stateless-function": 0 + } +} diff --git a/templates/ice-design/blocks/ApplicationProgress/.gitignore b/templates/ice-design/blocks/ApplicationProgress/.gitignore new file mode 100644 index 0000000000..cc45d6fb3c --- /dev/null +++ b/templates/ice-design/blocks/ApplicationProgress/.gitignore @@ -0,0 +1,13 @@ + +*.swp +*.dia~ +.idea/ +.DS_Store + +npm-debug.log +yarn-error.log +node_modules/ +tmp/ + +# happypack 缓存 +.happypack diff --git a/templates/ice-design/blocks/ApplicationProgress/README.md b/templates/ice-design/blocks/ApplicationProgress/README.md new file mode 100644 index 0000000000..54929fdcf1 --- /dev/null +++ b/templates/ice-design/blocks/ApplicationProgress/README.md @@ -0,0 +1,10 @@ +# application-progress + +简介:申请进度信息展示 + +![截图](https://img.alicdn.com/tfs/TB1I67ih3vD8KJjy0FlXXagBFXa-947-929.png) + +## 更多 + +* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) +* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) diff --git a/templates/ice-design/blocks/ApplicationProgress/demo/index.html b/templates/ice-design/blocks/ApplicationProgress/demo/index.html new file mode 100644 index 0000000000..9d2d3a663d --- /dev/null +++ b/templates/ice-design/blocks/ApplicationProgress/demo/index.html @@ -0,0 +1,19 @@ + + + + + + + + Document + + + + +
+ + + + + + diff --git a/templates/ice-design/blocks/ApplicationProgress/demo/index.js b/templates/ice-design/blocks/ApplicationProgress/demo/index.js new file mode 100644 index 0000000000..4d6acd389a --- /dev/null +++ b/templates/ice-design/blocks/ApplicationProgress/demo/index.js @@ -0,0 +1,19 @@ +import React, { Component } from 'react'; +import { render } from 'react-dom'; + +// 载入默认全局样式 normalize 、.clearfix 和一些 mixin 方法等 +import '@icedesign/base/lib/_components/@alife/next-core/lib/index.scss'; + +import DemoLayout from '@icedesign/demo-layout'; +import Block from '../src'; + +const props = { + // ... +}; + +render( + + + , + document.querySelector('#mountNode') +); diff --git a/templates/ice-design/blocks/ApplicationProgress/mock/api.json b/templates/ice-design/blocks/ApplicationProgress/mock/api.json new file mode 100644 index 0000000000..e706430232 --- /dev/null +++ b/templates/ice-design/blocks/ApplicationProgress/mock/api.json @@ -0,0 +1,4 @@ +{ + "status": "success", + "data": {} +} diff --git a/templates/ice-design/blocks/ApplicationProgress/package.json b/templates/ice-design/blocks/ApplicationProgress/package.json new file mode 100644 index 0000000000..11ef0469b9 --- /dev/null +++ b/templates/ice-design/blocks/ApplicationProgress/package.json @@ -0,0 +1,51 @@ +{ + "name": "@icedesign/application-progress-block", + "version": "0.1.0", + "description": "", + "files": [ + "src/", + "demo/", + "lib/", + "mock/" + ], + "author": { + "name": "ICE Team", + "email": "ice-admin@alibaba-inc.com" + }, + "repository": { + "type": "git", + "url": "https://github.com/alibaba/ice" + }, + "license": "MIT", + "keywords": [ + "ice", + "ice-block" + ], + "dependencies": { + "prop-types": "^15.5.8", + "@icedesign/base": "^0.1.0", + "@icedesign/card": "^0.1.0" + }, + "devDependencies": { + "babel-eslint": "^8.0.3", + "eslint": "^4.13.1", + "eslint-plugin-babel": "^4.1.1", + "eslint-plugin-react": "^7.5.1", + "@icedesign/demo-layout": "^0.1.0", + "eslint-plugin-import": "^2.8.0", + "eslint-config-airbnb": "^16.1.0", + "eslint-plugin-jsx-a11y": "^6.0.3", + "@icedesign/skin": "^0.1.2" + }, + "blockConfig": { + "name": "application-progress", + "description": "申请进度信息展示", + "chinese": "申请进度信息展示", + "category": "info-display", + "snapshot": "https://img.alicdn.com/tfs/TB1I67ih3vD8KJjy0FlXXagBFXa-947-929.png", + "sketchURL": "", + "icelandURL": "", + "themePackage": "@icedesign/skin" + }, + "scripts": {} +} diff --git a/templates/ice-design/blocks/ApplicationProgress/src/ApplicationProgress.jsx b/templates/ice-design/blocks/ApplicationProgress/src/ApplicationProgress.jsx new file mode 100644 index 0000000000..e08efe6661 --- /dev/null +++ b/templates/ice-design/blocks/ApplicationProgress/src/ApplicationProgress.jsx @@ -0,0 +1,154 @@ +'use strict'; + +import React, { Component } from 'react'; +import { Button, Step, Grid, Icon } from '@icedesign/base'; +import IceCard from '@icedesign/card'; +import './ApplicationProgress.scss'; + +const dataSource = () => { + return [ + { + condition: '校验条件', + validate: true, + url: 'https://img.alicdn.com/tps/TB18NwoNFXXXXXoXXXXXXXXXXXX-132-132.png', + operation: '查看', + description: + '说明以及解决方案说明以及解决方案说明以及解决方案说明以及解决方案说明以及解决方案' + }, + { + condition: '校验条件', + validate: false, + url: 'https://img.alicdn.com/tps/TB1VyMkNFXXXXc8XXXXXXXXXXXX-134-134.png', + operation: '解决方式链接', + description: + '说明以及解决方案说明以及解决方案说明以及解决方案说明以及解决方案说明以及解决方案' + }, + { + condition: '身份认证', + validate: true, + url: 'https://img.alicdn.com/tps/TB1QCMfNFXXXXaOXpXXXXXXXXXX-136-136.png', + operation: '查看', + description: + '说明以及解决方案说明以及解决方案说明以及解决方案说明以及解决方案说明以及解决方案' + }, + { + condition: '非卖家', + validate: false, + url: 'https://img.alicdn.com/tps/TB1mGnSNFXXXXbMaXXXXXXXXXXX-134-136.png', + operation: '解决方式链接', + description: + '说明以及解决方案说明以及解决方案说明以及解决方案说明以及解决方案说明以及解决方案' + }, + { + condition: '18岁以上', + validate: false, + url: 'https://img.alicdn.com/tps/TB1xwQiNFXXXXcfXXXXXXXXXXXX-136-134.png', + operation: '解决方式链接', + description: + '说明以及解决方案说明以及解决方案说明以及解决方案说明以及解决方案说明以及解决方案' + } + ]; +}; + +const { Row, Col } = Grid; + +export default class ApplicationProgress extends Component { + static displayName = 'ApplicationProgress'; + + static propTypes = {}; + + static defaultProps = {}; + + constructor(props) { + super(props); + this.state = {}; + } + + // ICE: React Component 的生命周期 + // http://ice.alibaba-inc.com/docs/guide/intro-react#React-组件的生命周期 + componentWillMount() {} + + componentDidMount() {} + + componentWillReceiveProps(nextProps, nextContext) {} + + shouldComponentUpdate(nextProps, nextState) { + return true; + } + + componentWillUnmount() {} + + render() { + const data = dataSource(); + return ( +
+ + + + + + + +
+ {data.map((item, index) => { + return ( +
+ + +
+ +
+ {item.condition} +
+ + + + + + {item.validate ? '符合文案' : '不符合文案'} + + +
+ {item.description} +
+ + +
+ {item.operation} +
+ +
+
+ ); + })} +
+
+

亲,您需要通过全部校验条件,才可以开通账号!

+ +
+
+
+ ); + } +} + +const styles = { + row: { backgroundColor: '#f9f9f9', marginTop: '32px', padding: '20px 40px' }, + imageWrap: { textAlign: 'center' }, + image: { + width: '64px', + height: '64px', + borderRadius: '50', + marginBottom: '12px' + }, + itemBody: { padding: '10px 50px 0' }, + itemDescription: { color: '#666', marginTop: '20px', width: '309px' }, + operationWrap: { marginTop: '40px', textAlign: 'center' }, + operation: { color: '#2192d9', cursor: 'pointer' }, + itemFooter: { textAlign: 'center', color: '#666', marginTop: '40px' }, + nextBtn: { marginTop: '40px' }, + itemStatus: { color: '#f33', fontSize: '16px' }, + itemStatusText: { marginLeft: '10px' } +}; diff --git a/templates/ice-design/blocks/ApplicationProgress/src/ApplicationProgress.scss b/templates/ice-design/blocks/ApplicationProgress/src/ApplicationProgress.scss new file mode 100644 index 0000000000..f5cba5fc82 --- /dev/null +++ b/templates/ice-design/blocks/ApplicationProgress/src/ApplicationProgress.scss @@ -0,0 +1,4 @@ +@charset "UTF-8"; + +.application-progress { +} diff --git a/templates/ice-design/blocks/ApplicationProgress/src/index.js b/templates/ice-design/blocks/ApplicationProgress/src/index.js new file mode 100644 index 0000000000..0a9b6186b5 --- /dev/null +++ b/templates/ice-design/blocks/ApplicationProgress/src/index.js @@ -0,0 +1,3 @@ +import ApplicationProgress from './ApplicationProgress'; + +export default ApplicationProgress; diff --git a/templates/ice-design/blocks/AreaStackChart/.editorconfig b/templates/ice-design/blocks/AreaStackChart/.editorconfig new file mode 100644 index 0000000000..22ef5ace54 --- /dev/null +++ b/templates/ice-design/blocks/AreaStackChart/.editorconfig @@ -0,0 +1,16 @@ +# http://editorconfig.org +root = true + +[*] +indent_style = space +indent_size = 2 +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false + +[makefile] +indent_style = tab +indent_size = 4 diff --git a/templates/ice-design/blocks/AreaStackChart/.eslintignore b/templates/ice-design/blocks/AreaStackChart/.eslintignore new file mode 100644 index 0000000000..2d5ec592a3 --- /dev/null +++ b/templates/ice-design/blocks/AreaStackChart/.eslintignore @@ -0,0 +1,12 @@ +# 忽略目录 +build/ +tests/ +demo/ +lib/ + +# node 覆盖率文件 +coverage/ + +# 忽略文件 +**/*-min.js +**/*.min.js diff --git a/templates/ice-design/blocks/AreaStackChart/.eslintrc b/templates/ice-design/blocks/AreaStackChart/.eslintrc new file mode 100644 index 0000000000..7cc397841e --- /dev/null +++ b/templates/ice-design/blocks/AreaStackChart/.eslintrc @@ -0,0 +1,61 @@ +{ + "root": true, + "parser": "babel-eslint", + "extends": "eslint-config-airbnb", + "parserOptions": { + "ecmaVersion": 6, + "ecmaFeatures": { + "jsx": true, + "experimentalObjectRestSpread": true + } + }, + "env": { + "browser": true + }, + "plugins": [ + "react", + "babel" + ], + "rules": { + "react/forbid-prop-types": 0, + "jsx-a11y/label-has-for": 0, + "jsx-a11y/no-static-element-interactions": 0, + "jsx-a11y/anchor-has-content": 0, + "jsx-a11y/click-events-have-key-events": 0, + "jsx-a11y/anchor-is-valid": 0, + "react/no-array-index-key": 0, + "func-names": 0, + "arrow-body-style": 0, + "no-use-before-define": 1, + "react/sort-comp": 0, + "react/prop-types": 0, + "react/jsx-first-prop-new-line": 0, + "react/jsx-filename-extension": [ + 1, + { + "extensions": [ + ".js", + ".jsx" + ] + } + ], + "import/extensions": 0, + "import/no-unresolved": 0, + "import/no-extraneous-dependencies": 0, + "prefer-destructuring": 0, + "no-param-reassign": 0, + "no-return-assign": 0, + "max-len": 0, + "consistent-return": 0, + "no-redeclare": 0, + "react/require-extension": 0, + "react/no-danger": 0, + "comma-dangle": [ + "error", + "always-multiline" + ], + "function-paren-newline": 0, + "object-curly-newline": 0, + "no-restricted-globals": 0 + } +} diff --git a/templates/ice-design/blocks/AreaStackChart/.gitignore b/templates/ice-design/blocks/AreaStackChart/.gitignore new file mode 100644 index 0000000000..cc45d6fb3c --- /dev/null +++ b/templates/ice-design/blocks/AreaStackChart/.gitignore @@ -0,0 +1,13 @@ + +*.swp +*.dia~ +.idea/ +.DS_Store + +npm-debug.log +yarn-error.log +node_modules/ +tmp/ + +# happypack 缓存 +.happypack diff --git a/templates/ice-design/blocks/AreaStackChart/README.md b/templates/ice-design/blocks/AreaStackChart/README.md new file mode 100644 index 0000000000..e3891e54e2 --- /dev/null +++ b/templates/ice-design/blocks/AreaStackChart/README.md @@ -0,0 +1,10 @@ +# area-stack-chart + +简介:叠加面积图 + +![截图](https://img.alicdn.com/tfs/TB13crWidfJ8KJjy0FeXXXKEXXa-1754-994.png) + +## 更多 + +* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) +* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) diff --git a/templates/ice-design/blocks/AreaStackChart/demo/index.html b/templates/ice-design/blocks/AreaStackChart/demo/index.html new file mode 100644 index 0000000000..9d2d3a663d --- /dev/null +++ b/templates/ice-design/blocks/AreaStackChart/demo/index.html @@ -0,0 +1,19 @@ + + + + + + + + Document + + + + +
+ + + + + + diff --git a/templates/ice-design/blocks/AreaStackChart/demo/index.js b/templates/ice-design/blocks/AreaStackChart/demo/index.js new file mode 100644 index 0000000000..4d6acd389a --- /dev/null +++ b/templates/ice-design/blocks/AreaStackChart/demo/index.js @@ -0,0 +1,19 @@ +import React, { Component } from 'react'; +import { render } from 'react-dom'; + +// 载入默认全局样式 normalize 、.clearfix 和一些 mixin 方法等 +import '@icedesign/base/lib/_components/@alife/next-core/lib/index.scss'; + +import DemoLayout from '@icedesign/demo-layout'; +import Block from '../src'; + +const props = { + // ... +}; + +render( + + + , + document.querySelector('#mountNode') +); diff --git a/templates/ice-design/blocks/AreaStackChart/lib/AreaStackChart.js b/templates/ice-design/blocks/AreaStackChart/lib/AreaStackChart.js new file mode 100644 index 0000000000..6b646a9c5f --- /dev/null +++ b/templates/ice-design/blocks/AreaStackChart/lib/AreaStackChart.js @@ -0,0 +1,80 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = undefined; + +var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + +var _class, _temp; + +var _react = require('react'); + +var _react2 = _interopRequireDefault(_react); + +var _bizcharts = require('bizcharts'); + +var _card = require('@icedesign/card'); + +var _card2 = _interopRequireDefault(_card); + +require('./AreaStackChart.scss'); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } + +var AreaStackChart = (_temp = _class = function (_Component) { + _inherits(AreaStackChart, _Component); + + function AreaStackChart(props) { + _classCallCheck(this, AreaStackChart); + + var _this = _possibleConstructorReturn(this, (AreaStackChart.__proto__ || Object.getPrototypeOf(AreaStackChart)).call(this, props)); + + _this.state = {}; + return _this; + } + + _createClass(AreaStackChart, [{ + key: 'render', + value: function render() { + var data = [{ country: 'Asia', year: '1750', value: 502 }, { country: 'Asia', year: '1800', value: 635 }, { country: 'Asia', year: '1850', value: 809 }, { country: 'Asia', year: '1900', value: 5268 }, { country: 'Asia', year: '1950', value: 4400 }, { country: 'Asia', year: '1999', value: 3634 }, { country: 'Asia', year: '2050', value: 947 }, { country: 'Africa', year: '1750', value: 106 }, { country: 'Africa', year: '1800', value: 107 }, { country: 'Africa', year: '1850', value: 111 }, { country: 'Africa', year: '1900', value: 1766 }, { country: 'Africa', year: '1950', value: 221 }, { country: 'Africa', year: '1999', value: 767 }, { country: 'Africa', year: '2050', value: 133 }, { country: 'Europe', year: '1750', value: 163 }, { country: 'Europe', year: '1800', value: 203 }, { country: 'Europe', year: '1850', value: 276 }, { country: 'Europe', year: '1900', value: 628 }, { country: 'Europe', year: '1950', value: 547 }, { country: 'Europe', year: '1999', value: 729 }, { country: 'Europe', year: '2050', value: 408 }, { country: 'Oceania', year: '1750', value: 200 }, { country: 'Oceania', year: '1800', value: 200 }, { country: 'Oceania', year: '1850', value: 200 }, { country: 'Oceania', year: '1900', value: 460 }, { country: 'Oceania', year: '1950', value: 230 }, { country: 'Oceania', year: '1999', value: 300 }, { country: 'Oceania', year: '2050', value: 300 }]; + + var cols = { + year: { + type: 'linear', + tickInterval: 50 + } + }; + + return _react2.default.createElement( + 'div', + { className: 'area-stack-chart' }, + _react2.default.createElement( + _card2.default, + null, + _react2.default.createElement( + _bizcharts.Chart, + { height: 400, data: data, scale: cols, forceFit: true }, + _react2.default.createElement(_bizcharts.Axis, { name: 'year' }), + _react2.default.createElement(_bizcharts.Axis, { name: 'value' }), + _react2.default.createElement(_bizcharts.Legend, null), + _react2.default.createElement(_bizcharts.Tooltip, { crosshairs: { type: 'line' } }), + _react2.default.createElement(_bizcharts.Geom, { type: 'area', position: 'year*value', color: 'country' }), + _react2.default.createElement(_bizcharts.Geom, { type: 'line', position: 'year*value', size: 2, color: 'country' }) + ) + ) + ); + } + }]); + + return AreaStackChart; +}(_react.Component), _class.displayName = 'AreaStackChart', _temp); +exports.default = AreaStackChart; +module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/AreaStackChart/lib/AreaStackChart.scss b/templates/ice-design/blocks/AreaStackChart/lib/AreaStackChart.scss new file mode 100644 index 0000000000..297565c89f --- /dev/null +++ b/templates/ice-design/blocks/AreaStackChart/lib/AreaStackChart.scss @@ -0,0 +1,5 @@ +@charset "UTF-8"; + +.area-stack-chart { + +} diff --git a/templates/ice-design/blocks/AreaStackChart/lib/index.js b/templates/ice-design/blocks/AreaStackChart/lib/index.js new file mode 100644 index 0000000000..1e7f0185ab --- /dev/null +++ b/templates/ice-design/blocks/AreaStackChart/lib/index.js @@ -0,0 +1,14 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _AreaStackChart = require('./AreaStackChart'); + +var _AreaStackChart2 = _interopRequireDefault(_AreaStackChart); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +exports.default = _AreaStackChart2.default; +module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/AreaStackChart/mock/api.json b/templates/ice-design/blocks/AreaStackChart/mock/api.json new file mode 100644 index 0000000000..e706430232 --- /dev/null +++ b/templates/ice-design/blocks/AreaStackChart/mock/api.json @@ -0,0 +1,4 @@ +{ + "status": "success", + "data": {} +} diff --git a/templates/ice-design/blocks/AreaStackChart/package.json b/templates/ice-design/blocks/AreaStackChart/package.json new file mode 100644 index 0000000000..fd4d5284d4 --- /dev/null +++ b/templates/ice-design/blocks/AreaStackChart/package.json @@ -0,0 +1,57 @@ +{ + "name": "@icedesign/area-stack-chart-block", + "version": "0.1.0", + "description": "", + "main": "src/index.js", + "files": [ + "src/", + "demo/", + "lib/", + "mock/" + ], + "author": { + "name": "ICE Team", + "email": "ice-admin@alibaba-inc.com" + }, + "repository": { + "type": "git", + "url": "https://github.com/alibaba/ice" + }, + "license": "MIT", + "keywords": [ + "ice", + "ice-block" + ], + "dependencies": { + "@icedesign/base": "^0.1.0", + "@icedesign/card": "^0.1.0", + "bizcharts": "^3.0.5", + "classnames": "^2.2.5", + "prop-types": "^15.5.8" + }, + "devDependencies": { + "@icedesign/demo-layout": "^0.1.0", + "@icedesign/skin": "^0.1.3", + "babel-eslint": "^8.0.3", + "eslint": "^4.13.1", + "eslint-config-airbnb": "^16.1.0", + "eslint-plugin-babel": "^4.1.1", + "eslint-plugin-import": "^2.8.0", + "eslint-plugin-jsx-a11y": "^6.0.3", + "eslint-plugin-react": "^7.5.1" + }, + "blockConfig": { + "name": "area-stack-chart", + "description": "叠加面积图", + "chinese": "叠加面积图", + "category": "chart", + "snapshot": "https://img.alicdn.com/tfs/TB13crWidfJ8KJjy0FeXXXKEXXa-1754-994.png", + "sketchURL": "", + "icelandURL": "", + "themePackage": "@icedesign/skin" + }, + "scripts": { + "lint": "eslint . --ext '.js,.jsx' --fix", + "prepublish": "npm run lint" + } +} diff --git a/templates/ice-design/blocks/AreaStackChart/src/AreaStackChart.jsx b/templates/ice-design/blocks/AreaStackChart/src/AreaStackChart.jsx new file mode 100644 index 0000000000..5d4cba1909 --- /dev/null +++ b/templates/ice-design/blocks/AreaStackChart/src/AreaStackChart.jsx @@ -0,0 +1,68 @@ +import React, { Component } from 'react'; +import { Chart, Geom, Axis, Tooltip, Legend } from 'bizcharts'; +import IceCard from '@icedesign/card'; +import './AreaStackChart.scss'; + +export default class AreaStackChart extends Component { + static displayName = 'AreaStackChart'; + + constructor(props) { + super(props); + this.state = {}; + } + + render() { + const data = [ + { country: 'Asia', year: '1750', value: 502 }, + { country: 'Asia', year: '1800', value: 635 }, + { country: 'Asia', year: '1850', value: 809 }, + { country: 'Asia', year: '1900', value: 5268 }, + { country: 'Asia', year: '1950', value: 4400 }, + { country: 'Asia', year: '1999', value: 3634 }, + { country: 'Asia', year: '2050', value: 947 }, + { country: 'Africa', year: '1750', value: 106 }, + { country: 'Africa', year: '1800', value: 107 }, + { country: 'Africa', year: '1850', value: 111 }, + { country: 'Africa', year: '1900', value: 1766 }, + { country: 'Africa', year: '1950', value: 221 }, + { country: 'Africa', year: '1999', value: 767 }, + { country: 'Africa', year: '2050', value: 133 }, + { country: 'Europe', year: '1750', value: 163 }, + { country: 'Europe', year: '1800', value: 203 }, + { country: 'Europe', year: '1850', value: 276 }, + { country: 'Europe', year: '1900', value: 628 }, + { country: 'Europe', year: '1950', value: 547 }, + { country: 'Europe', year: '1999', value: 729 }, + { country: 'Europe', year: '2050', value: 408 }, + { country: 'Oceania', year: '1750', value: 200 }, + { country: 'Oceania', year: '1800', value: 200 }, + { country: 'Oceania', year: '1850', value: 200 }, + { country: 'Oceania', year: '1900', value: 460 }, + { country: 'Oceania', year: '1950', value: 230 }, + { country: 'Oceania', year: '1999', value: 300 }, + { country: 'Oceania', year: '2050', value: 300 }, + ]; + + const cols = { + year: { + type: 'linear', + tickInterval: 50, + }, + }; + + return ( +
+ + + + + + + + + + +
+ ); + } +} diff --git a/templates/ice-design/blocks/AreaStackChart/src/AreaStackChart.scss b/templates/ice-design/blocks/AreaStackChart/src/AreaStackChart.scss new file mode 100644 index 0000000000..297565c89f --- /dev/null +++ b/templates/ice-design/blocks/AreaStackChart/src/AreaStackChart.scss @@ -0,0 +1,5 @@ +@charset "UTF-8"; + +.area-stack-chart { + +} diff --git a/templates/ice-design/blocks/AreaStackChart/src/index.js b/templates/ice-design/blocks/AreaStackChart/src/index.js new file mode 100644 index 0000000000..a5d84a3f48 --- /dev/null +++ b/templates/ice-design/blocks/AreaStackChart/src/index.js @@ -0,0 +1,3 @@ +import AreaStackChart from './AreaStackChart'; + +export default AreaStackChart; diff --git a/templates/ice-design/blocks/ArticleList/.editorconfig b/templates/ice-design/blocks/ArticleList/.editorconfig new file mode 100644 index 0000000000..22ef5ace54 --- /dev/null +++ b/templates/ice-design/blocks/ArticleList/.editorconfig @@ -0,0 +1,16 @@ +# http://editorconfig.org +root = true + +[*] +indent_style = space +indent_size = 2 +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false + +[makefile] +indent_style = tab +indent_size = 4 diff --git a/templates/ice-design/blocks/ArticleList/.eslintignore b/templates/ice-design/blocks/ArticleList/.eslintignore new file mode 100644 index 0000000000..3b21308fc7 --- /dev/null +++ b/templates/ice-design/blocks/ArticleList/.eslintignore @@ -0,0 +1,12 @@ +# 忽略目录 +build/ +tests/ +demo/ +lib/ + +# node 覆盖率文件 +coverage/ + +# 忽略文件 +**/*-min.js +**/*.min.js \ No newline at end of file diff --git a/templates/ice-design/blocks/ArticleList/.eslintrc b/templates/ice-design/blocks/ArticleList/.eslintrc new file mode 100644 index 0000000000..7a4e5bac48 --- /dev/null +++ b/templates/ice-design/blocks/ArticleList/.eslintrc @@ -0,0 +1,62 @@ +{ + "root": true, + "parser": "babel-eslint", + "extends": "eslint-config-airbnb", + "parserOptions": { + "ecmaVersion": 6, + "ecmaFeatures": { + "jsx": true, + "experimentalObjectRestSpread": true + } + }, + "env": { + "browser": true + }, + "plugins": [ + "react", + "babel" + ], + "rules": { + "react/forbid-prop-types": 0, + "jsx-a11y/label-has-for": 0, + "jsx-a11y/no-static-element-interactions": 0, + "jsx-a11y/anchor-has-content": 0, + "jsx-a11y/click-events-have-key-events": 0, + "jsx-a11y/anchor-is-valid": 0, + "react/no-array-index-key": 0, + "func-names": 0, + "arrow-body-style": 0, + "no-use-before-define": 0, + "react/sort-comp": 0, + "react/prop-types": 0, + "react/jsx-first-prop-new-line": 0, + "react/jsx-filename-extension": [ + 1, + { + "extensions": [ + ".js", + ".jsx" + ] + } + ], + "import/extensions": 0, + "import/no-unresolved": 0, + "import/no-extraneous-dependencies": 0, + "prefer-destructuring": 0, + "no-param-reassign": 0, + "no-return-assign": 0, + "max-len": 0, + "consistent-return": 0, + "no-redeclare": 0, + "react/require-extension": 0, + "react/no-danger": 0, + "comma-dangle": [ + "error", + "always-multiline" + ], + "function-paren-newline": 0, + "object-curly-newline": 0, + "no-restricted-globals": 0, + "react/prefer-stateless-function": 0 + } +} diff --git a/templates/ice-design/blocks/ArticleList/.gitignore b/templates/ice-design/blocks/ArticleList/.gitignore new file mode 100644 index 0000000000..cc45d6fb3c --- /dev/null +++ b/templates/ice-design/blocks/ArticleList/.gitignore @@ -0,0 +1,13 @@ + +*.swp +*.dia~ +.idea/ +.DS_Store + +npm-debug.log +yarn-error.log +node_modules/ +tmp/ + +# happypack 缓存 +.happypack diff --git a/templates/ice-design/blocks/ArticleList/README.md b/templates/ice-design/blocks/ArticleList/README.md new file mode 100644 index 0000000000..314a9b09ce --- /dev/null +++ b/templates/ice-design/blocks/ArticleList/README.md @@ -0,0 +1,10 @@ +# article-list + +简介:文章列表 + +![截图](https://img.alicdn.com/tfs/TB1PXQAifDH8KJjy1XcXXcpdXXa-1906-996.png) + +## 更多 + +* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) +* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) diff --git a/templates/ice-design/blocks/ArticleList/demo/index.html b/templates/ice-design/blocks/ArticleList/demo/index.html new file mode 100644 index 0000000000..9d2d3a663d --- /dev/null +++ b/templates/ice-design/blocks/ArticleList/demo/index.html @@ -0,0 +1,19 @@ + + + + + + + + Document + + + + +
+ + + + + + diff --git a/templates/ice-design/blocks/ArticleList/demo/index.js b/templates/ice-design/blocks/ArticleList/demo/index.js new file mode 100644 index 0000000000..4d6acd389a --- /dev/null +++ b/templates/ice-design/blocks/ArticleList/demo/index.js @@ -0,0 +1,19 @@ +import React, { Component } from 'react'; +import { render } from 'react-dom'; + +// 载入默认全局样式 normalize 、.clearfix 和一些 mixin 方法等 +import '@icedesign/base/lib/_components/@alife/next-core/lib/index.scss'; + +import DemoLayout from '@icedesign/demo-layout'; +import Block from '../src'; + +const props = { + // ... +}; + +render( + + + , + document.querySelector('#mountNode') +); diff --git a/templates/ice-design/blocks/ArticleList/mock/api.json b/templates/ice-design/blocks/ArticleList/mock/api.json new file mode 100644 index 0000000000..e706430232 --- /dev/null +++ b/templates/ice-design/blocks/ArticleList/mock/api.json @@ -0,0 +1,4 @@ +{ + "status": "success", + "data": {} +} diff --git a/templates/ice-design/blocks/ArticleList/package.json b/templates/ice-design/blocks/ArticleList/package.json new file mode 100644 index 0000000000..a9c605b6b1 --- /dev/null +++ b/templates/ice-design/blocks/ArticleList/package.json @@ -0,0 +1,53 @@ +{ + "name": "@icedesign/article-list-block", + "version": "0.1.0", + "description": "", + "main": "lib/index.js", + "files": [ + "src/", + "demo/", + "lib/", + "mock/" + ], + "author": { + "name": "ICE Team", + "email": "ice-admin@alibaba-inc.com" + }, + "repository": { + "type": "git", + "url": "https://github.com/alibaba/ice" + }, + "license": "MIT", + "keywords": [ + "ice", + "ice-block" + ], + "dependencies": { + "@alife/dpl-ice-design": "^1.0.1", + "prop-types": "^15.5.8", + "@icedesign/base": "^0.1.0", + "@icedesign/card": "^0.1.0" + }, + "devDependencies": { + "babel-eslint": "^8.0.3", + "eslint": "^4.13.1", + "eslint-plugin-babel": "^4.1.1", + "eslint-plugin-react": "^7.5.1", + "@icedesign/demo-layout": "^0.1.0", + "eslint-plugin-import": "^2.8.0", + "eslint-config-airbnb": "^16.1.0", + "eslint-plugin-jsx-a11y": "^6.0.3", + "@icedesign/skin": "^0.1.2" + }, + "blockConfig": { + "name": "article-list", + "description": "文章列表", + "chinese": "文章列表", + "category": "info-display", + "snapshot": "https://img.alicdn.com/tfs/TB1PXQAifDH8KJjy1XcXXcpdXXa-1906-996.png", + "sketchURL": "", + "icelandURL": "", + "themePackage": "@icedesign/skin" + }, + "scripts": {} +} diff --git a/templates/ice-design/blocks/ArticleList/src/ArticleList.jsx b/templates/ice-design/blocks/ArticleList/src/ArticleList.jsx new file mode 100644 index 0000000000..c224fa45ab --- /dev/null +++ b/templates/ice-design/blocks/ArticleList/src/ArticleList.jsx @@ -0,0 +1,136 @@ +'use strict'; + +import React, { Component } from 'react'; +import PropTypes from 'prop-types'; +import IceCard from '@icedesign/card'; +import { Icon } from '@icedesign/base'; +import './ArticleList.scss'; + +const generatorData = () => { + return Array.from({ length: 5 }).map(() => { + return { + title: '越夏越嗨皮-7月官方营销活动-技能提升方向', + description: + '商家通过V任务选择主播并达成合作,费用按照商品链接计算,一个商品为一个价格,建议主播在一场直播里最多接60个商品,并提供不少于两个小时的直播服务,每个商品讲解时间不少于5分钟。', + tags: ['直播', '大促活动', '讲解'], + like: 123, + favor: 245, + comment: 546 + }; + }); +}; + +export default class ArticleList extends Component { + static displayName = 'ArticleList'; + + static propTypes = { + style: PropTypes.object, + className: PropTypes.string + }; + + static defaultProps = {}; + + constructor(props) { + super(props); + this.state = {}; + } + + render() { + const dataSource = generatorData(); + return ( +
+ +
    +
  • + 最新 +
  • +
  • + 最热 +
  • +
  • + 距离截稿日期最近 +
  • +
  • + 距离开始开启最近 +
  • +
+
+ + {dataSource.map((item, index) => { + return ( +
+ +
+

{item.description}

+
+
+
+ {item.tags.map((tag, idx) => { + return ( + + {tag} + + ); + })} +
+
+ + {item.like} + + + {item.favor} + + + {item.comment} + +
+
+
+ ); + })} +
+
+ ); + } +} + +const styles = { + articleFilterCard: { marginBottom: '10px', minHeight: 'auto' }, + articleSort: { + margin: '0', + padding: '0', + display: 'flex' + }, + articleItem: { + marginBottom: '30px', + paddingBottom: '30px', + borderBottom: '1px solid #f5f5f5' + }, + title: { fontSize: '16px', color: '#333', textDecoration: 'none' }, + desc: { lineHeight: '24px', fontSize: '14px', color: '#999' }, + articleItemFooter: { position: 'relative' }, + tag: { + fontSize: '13px', + background: '#f5f5f5', + color: '#999', + padding: '4px 15px', + borderRadius: '20px', + marginRight: '20px' + }, + articleItemMeta: { + position: 'absolute', + right: '0', + top: '0' + } +}; diff --git a/templates/ice-design/blocks/ArticleList/src/ArticleList.scss b/templates/ice-design/blocks/ArticleList/src/ArticleList.scss new file mode 100644 index 0000000000..b0b359612c --- /dev/null +++ b/templates/ice-design/blocks/ArticleList/src/ArticleList.scss @@ -0,0 +1,42 @@ +@charset "UTF-8"; + +.article-list { + .article-sort { + li { + cursor: pointer; + list-style: none; + font-size: 14px; + margin-right: 30px; + i::before { + font-size: 12px; + width: 12px; + } + } + } + .article-item { + &:last-child { + border-bottom: none; + } + } + + .article-item-tag { + &:last-child { + margin-right: 0; + } + } + .article-item-meta { + span { + font-size: 14px; + color: #999; + margin-right: 15px; + } + i { + top: 2px; + color: #d2d2d2; + &::before { + font-size: 14px; + width: 14px; + } + } + } +} diff --git a/templates/ice-design/blocks/ArticleList/src/index.js b/templates/ice-design/blocks/ArticleList/src/index.js new file mode 100644 index 0000000000..86716f32ff --- /dev/null +++ b/templates/ice-design/blocks/ArticleList/src/index.js @@ -0,0 +1,3 @@ +import ArticleList from './ArticleList'; + +export default ArticleList; diff --git a/templates/ice-design/blocks/BasicDetailInfo/.editorconfig b/templates/ice-design/blocks/BasicDetailInfo/.editorconfig new file mode 100644 index 0000000000..22ef5ace54 --- /dev/null +++ b/templates/ice-design/blocks/BasicDetailInfo/.editorconfig @@ -0,0 +1,16 @@ +# http://editorconfig.org +root = true + +[*] +indent_style = space +indent_size = 2 +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false + +[makefile] +indent_style = tab +indent_size = 4 diff --git a/templates/ice-design/blocks/BasicDetailInfo/.eslintignore b/templates/ice-design/blocks/BasicDetailInfo/.eslintignore new file mode 100644 index 0000000000..3b21308fc7 --- /dev/null +++ b/templates/ice-design/blocks/BasicDetailInfo/.eslintignore @@ -0,0 +1,12 @@ +# 忽略目录 +build/ +tests/ +demo/ +lib/ + +# node 覆盖率文件 +coverage/ + +# 忽略文件 +**/*-min.js +**/*.min.js \ No newline at end of file diff --git a/templates/ice-design/blocks/BasicDetailInfo/.eslintrc b/templates/ice-design/blocks/BasicDetailInfo/.eslintrc new file mode 100644 index 0000000000..7a4e5bac48 --- /dev/null +++ b/templates/ice-design/blocks/BasicDetailInfo/.eslintrc @@ -0,0 +1,62 @@ +{ + "root": true, + "parser": "babel-eslint", + "extends": "eslint-config-airbnb", + "parserOptions": { + "ecmaVersion": 6, + "ecmaFeatures": { + "jsx": true, + "experimentalObjectRestSpread": true + } + }, + "env": { + "browser": true + }, + "plugins": [ + "react", + "babel" + ], + "rules": { + "react/forbid-prop-types": 0, + "jsx-a11y/label-has-for": 0, + "jsx-a11y/no-static-element-interactions": 0, + "jsx-a11y/anchor-has-content": 0, + "jsx-a11y/click-events-have-key-events": 0, + "jsx-a11y/anchor-is-valid": 0, + "react/no-array-index-key": 0, + "func-names": 0, + "arrow-body-style": 0, + "no-use-before-define": 0, + "react/sort-comp": 0, + "react/prop-types": 0, + "react/jsx-first-prop-new-line": 0, + "react/jsx-filename-extension": [ + 1, + { + "extensions": [ + ".js", + ".jsx" + ] + } + ], + "import/extensions": 0, + "import/no-unresolved": 0, + "import/no-extraneous-dependencies": 0, + "prefer-destructuring": 0, + "no-param-reassign": 0, + "no-return-assign": 0, + "max-len": 0, + "consistent-return": 0, + "no-redeclare": 0, + "react/require-extension": 0, + "react/no-danger": 0, + "comma-dangle": [ + "error", + "always-multiline" + ], + "function-paren-newline": 0, + "object-curly-newline": 0, + "no-restricted-globals": 0, + "react/prefer-stateless-function": 0 + } +} diff --git a/templates/ice-design/blocks/BasicDetailInfo/.gitignore b/templates/ice-design/blocks/BasicDetailInfo/.gitignore new file mode 100644 index 0000000000..cc45d6fb3c --- /dev/null +++ b/templates/ice-design/blocks/BasicDetailInfo/.gitignore @@ -0,0 +1,13 @@ + +*.swp +*.dia~ +.idea/ +.DS_Store + +npm-debug.log +yarn-error.log +node_modules/ +tmp/ + +# happypack 缓存 +.happypack diff --git a/templates/ice-design/blocks/BasicDetailInfo/README.md b/templates/ice-design/blocks/BasicDetailInfo/README.md new file mode 100644 index 0000000000..75c53c6475 --- /dev/null +++ b/templates/ice-design/blocks/BasicDetailInfo/README.md @@ -0,0 +1,10 @@ +# basic-detail-info + +简介:基础详情信息展示 + +![截图](https://gw.alicdn.com/tfs/TB1JD2VifDH8KJjy1XcXXcpdXXa-1880-1004.png) + +## 更多 + +* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) +* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) diff --git a/templates/ice-design/blocks/BasicDetailInfo/demo/index.html b/templates/ice-design/blocks/BasicDetailInfo/demo/index.html new file mode 100644 index 0000000000..9d2d3a663d --- /dev/null +++ b/templates/ice-design/blocks/BasicDetailInfo/demo/index.html @@ -0,0 +1,19 @@ + + + + + + + + Document + + + + +
+ + + + + + diff --git a/templates/ice-design/blocks/BasicDetailInfo/demo/index.js b/templates/ice-design/blocks/BasicDetailInfo/demo/index.js new file mode 100644 index 0000000000..4d6acd389a --- /dev/null +++ b/templates/ice-design/blocks/BasicDetailInfo/demo/index.js @@ -0,0 +1,19 @@ +import React, { Component } from 'react'; +import { render } from 'react-dom'; + +// 载入默认全局样式 normalize 、.clearfix 和一些 mixin 方法等 +import '@icedesign/base/lib/_components/@alife/next-core/lib/index.scss'; + +import DemoLayout from '@icedesign/demo-layout'; +import Block from '../src'; + +const props = { + // ... +}; + +render( + + + , + document.querySelector('#mountNode') +); diff --git a/templates/ice-design/blocks/BasicDetailInfo/mock/api.json b/templates/ice-design/blocks/BasicDetailInfo/mock/api.json new file mode 100644 index 0000000000..e706430232 --- /dev/null +++ b/templates/ice-design/blocks/BasicDetailInfo/mock/api.json @@ -0,0 +1,4 @@ +{ + "status": "success", + "data": {} +} diff --git a/templates/ice-design/blocks/BasicDetailInfo/package.json b/templates/ice-design/blocks/BasicDetailInfo/package.json new file mode 100644 index 0000000000..5e4c4ffaae --- /dev/null +++ b/templates/ice-design/blocks/BasicDetailInfo/package.json @@ -0,0 +1,51 @@ +{ + "name": "@icedesign/basic-detail-info-block", + "version": "0.1.0", + "description": "", + "files": [ + "src/", + "demo/", + "lib/", + "mock/" + ], + "author": { + "name": "ICE Team", + "email": "ice-admin@alibaba-inc.com" + }, + "repository": { + "type": "git", + "url": "https://github.com/alibaba/ice" + }, + "license": "MIT", + "keywords": [ + "ice", + "ice-block" + ], + "dependencies": { + "prop-types": "^15.5.8", + "@icedesign/base": "^0.1.0", + "@icedesign/card": "^0.1.0" + }, + "devDependencies": { + "babel-eslint": "^8.0.3", + "eslint": "^4.13.1", + "eslint-plugin-babel": "^4.1.1", + "eslint-plugin-react": "^7.5.1", + "@icedesign/demo-layout": "^0.1.0", + "eslint-plugin-import": "^2.8.0", + "eslint-config-airbnb": "^16.1.0", + "eslint-plugin-jsx-a11y": "^6.0.3", + "@icedesign/skin": "^0.1.2" + }, + "blockConfig": { + "name": "basic-detail-info", + "description": "基础详情信息展示", + "chinese": "基础详情信息展示", + "category": "info-display", + "snapshot": "https://gw.alicdn.com/tfs/TB1JD2VifDH8KJjy1XcXXcpdXXa-1880-1004.png", + "sketchURL": "", + "icelandURL": "", + "themePackage": "@icedesign/skin" + }, + "scripts": {} +} diff --git a/templates/ice-design/blocks/BasicDetailInfo/src/BasicDetailInfo.jsx b/templates/ice-design/blocks/BasicDetailInfo/src/BasicDetailInfo.jsx new file mode 100644 index 0000000000..561ee5b208 --- /dev/null +++ b/templates/ice-design/blocks/BasicDetailInfo/src/BasicDetailInfo.jsx @@ -0,0 +1,125 @@ +'use strict'; + +import React, { Component } from 'react'; +import IceCard from '@icedesign/card'; +import './BasicDetailInfo.scss'; + +/** + * 渲染详情信息的数据 + */ +const dataSoruce = { + title: '集盒家居旗舰店双十一活动', + shopName: '集盒家居旗舰店', + amount: '1000.00', + bounty: '200.00', + orderTime: '2017-10-18 12:20:07', + deliveryTime: '2017-10-18 12:20:07', + phone: '15612111213', + address: '杭州市文一西路', + status: '进行中', + remark: '暂无', + pics: [ + 'https://img.alicdn.com/imgextra/i3/672246894/TB2ziLDdbsTMeJjSszdXXcEupXa_!!672246894-0-beehive-scenes.jpg_180x180xzq90.jpg_.webp', + 'https://img.alicdn.com/imgextra/i1/2645911918/TB2qQA9fk.HL1JjSZFuXXX8dXXa_!!2645911918-0-beehive-scenes.jpg_180x180xzq90.jpg_.webp', + 'https://img.alicdn.com/bao/uploaded/TB2obaBXeLyQeBjy1XaXXcexFXa_!!0-dgshop.jpg_180x180xzq90.jpg_.webp', + 'https://img.alicdn.com/tps/i1/99136475/TB2Cc7saE1HTKJjSZFmXXXeYFXa_!!0-juitemmedia.jpg_180x180q90.jpg_.webp' + ] +}; + +export default class BasicDetailInfo extends Component { + static displayName = 'BasicDetailInfo'; + + static propTypes = {}; + + static defaultProps = {}; + + constructor(props) { + super(props); + this.state = {}; + } + + render() { + return ( +
+ +

基础详情页

+
+
基本信息
+
    +
  • + 任务标题: + {dataSoruce.title} +
  • +
  • + 店铺名称: + {dataSoruce.shopName} +
  • +
  • + 任务金额: + ¥ {dataSoruce.amount} +
  • +
  • + 任务赏金: + ¥ {dataSoruce.bounty} +
  • +
  • + 接单时间: + {dataSoruce.orderTime} +
  • +
  • + 交付时间: + {dataSoruce.deliveryTime} +
  • +
+
+
+
更多信息
+
    +
  • + 联系方式: + {dataSoruce.phone} +
  • +
  • + 收货地址: + {dataSoruce.address} +
  • +
  • + 任务状态: + {dataSoruce.status} +
  • +
  • + 备注: + {dataSoruce.remark} +
  • +
  • + 附件: + + {dataSoruce.pics && + dataSoruce.pics.length && + dataSoruce.pics.map((pic, index) => { + return ( + + ); + })} + +
  • +
+
+
+
+ ); + } +} + +const styles = { + basicDetailTitle: { fontSize: '16px' }, + infoItem: { marginLeft: '16px' }, + infoItemTitle: { borderLeft: '3px solid #3080fe', paddingLeft: '10px' }, + attachLabel: { float: 'left' }, + attachPics: { + width: '80px', + height: '80px', + border: '1px solid #eee', + marginRight: '10px' + } +}; diff --git a/templates/ice-design/blocks/BasicDetailInfo/src/BasicDetailInfo.scss b/templates/ice-design/blocks/BasicDetailInfo/src/BasicDetailInfo.scss new file mode 100644 index 0000000000..343accf033 --- /dev/null +++ b/templates/ice-design/blocks/BasicDetailInfo/src/BasicDetailInfo.scss @@ -0,0 +1,32 @@ +@charset "UTF-8"; + +.basic-detail-info { + .info-item { + ul { + overflow: hidden; + padding: 0; + margin-left: 25px; + li { + float: left; + width: 50%; + margin-bottom: 18px; + list-style: none; + font-size: 14px; + span { + &:first-child { + min-width: 70px; + color: #999; + } + &:last-child { + color: #333; + } + } + .attach-pics { + &:last-child { + margin-right: 0; + } + } + } + } + } +} diff --git a/templates/ice-design/blocks/BasicDetailInfo/src/index.js b/templates/ice-design/blocks/BasicDetailInfo/src/index.js new file mode 100644 index 0000000000..38fdd38b07 --- /dev/null +++ b/templates/ice-design/blocks/BasicDetailInfo/src/index.js @@ -0,0 +1,3 @@ +import BasicDetailInfo from './BasicDetailInfo'; + +export default BasicDetailInfo; diff --git a/templates/ice-design/blocks/BasicException/.editorconfig b/templates/ice-design/blocks/BasicException/.editorconfig new file mode 100644 index 0000000000..22ef5ace54 --- /dev/null +++ b/templates/ice-design/blocks/BasicException/.editorconfig @@ -0,0 +1,16 @@ +# http://editorconfig.org +root = true + +[*] +indent_style = space +indent_size = 2 +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false + +[makefile] +indent_style = tab +indent_size = 4 diff --git a/templates/ice-design/blocks/BasicException/.eslintignore b/templates/ice-design/blocks/BasicException/.eslintignore new file mode 100644 index 0000000000..2d5ec592a3 --- /dev/null +++ b/templates/ice-design/blocks/BasicException/.eslintignore @@ -0,0 +1,12 @@ +# 忽略目录 +build/ +tests/ +demo/ +lib/ + +# node 覆盖率文件 +coverage/ + +# 忽略文件 +**/*-min.js +**/*.min.js diff --git a/templates/ice-design/blocks/BasicException/.eslintrc b/templates/ice-design/blocks/BasicException/.eslintrc new file mode 100644 index 0000000000..07c65acfe7 --- /dev/null +++ b/templates/ice-design/blocks/BasicException/.eslintrc @@ -0,0 +1,53 @@ +{ + "root": true, + "parser": "babel-eslint", + "extends": "eslint-config-airbnb", + "parserOptions": { + "ecmaVersion": 6, + "ecmaFeatures": { + "jsx": true, + "experimentalObjectRestSpread": true + } + }, + "env": { + "browser": true + }, + "plugins": ["react", "babel"], + "rules": { + "react/forbid-prop-types": 0, + "jsx-a11y/label-has-for": 0, + "jsx-a11y/no-static-element-interactions": 0, + "jsx-a11y/anchor-has-content": 0, + "jsx-a11y/click-events-have-key-events": 0, + "jsx-a11y/anchor-is-valid": 0, + "react/no-array-index-key": 0, + "func-names": 0, + "arrow-body-style": 0, + "no-use-before-define": 1, + "react/sort-comp": 0, + "react/prop-types": 0, + "react/jsx-first-prop-new-line": 0, + "react/jsx-filename-extension": [ + 1, + { + "extensions": [".js", ".jsx"] + } + ], + "import/extensions": 0, + "import/no-unresolved": 0, + "import/no-extraneous-dependencies": 0, + "prefer-destructuring": 0, + "no-param-reassign": 0, + "no-return-assign": 0, + "max-len": 0, + "consistent-return": 0, + "no-redeclare": 0, + "react/require-extension": 0, + "react/no-danger": 0, + "comma-dangle": ["error", "always-multiline"], + "function-paren-newline": 0, + "object-curly-newline": 0, + "no-restricted-globals": 0, + "react/prefer-stateless-function": 0 + } +} diff --git a/templates/ice-design/blocks/BasicException/.gitignore b/templates/ice-design/blocks/BasicException/.gitignore new file mode 100644 index 0000000000..cc45d6fb3c --- /dev/null +++ b/templates/ice-design/blocks/BasicException/.gitignore @@ -0,0 +1,13 @@ + +*.swp +*.dia~ +.idea/ +.DS_Store + +npm-debug.log +yarn-error.log +node_modules/ +tmp/ + +# happypack 缓存 +.happypack diff --git a/templates/ice-design/blocks/BasicException/README.md b/templates/ice-design/blocks/BasicException/README.md new file mode 100644 index 0000000000..edc0f66d2c --- /dev/null +++ b/templates/ice-design/blocks/BasicException/README.md @@ -0,0 +1,10 @@ +# basic-exception + +简介:基础异常报错 + +![截图](https://img.alicdn.com/tfs/TB197z8if2H8KJjy0FcXXaDlFXa-1786-914.png) + +## 更多 + +* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) +* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) diff --git a/templates/ice-design/blocks/BasicException/abc.json b/templates/ice-design/blocks/BasicException/abc.json new file mode 100644 index 0000000000..60b7a84599 --- /dev/null +++ b/templates/ice-design/blocks/BasicException/abc.json @@ -0,0 +1,14 @@ +{ + "name": "basic-exception", + "description": "", + "type": "ice", + "repository": { + "type": "block", + "template": "@ali/ice-template-block", + "templateVersion": "0.1.3" + }, + "options": { + "styleAutoMixin": true, + "themePackage": "@icedesign/skin" + } +} diff --git a/templates/ice-design/blocks/BasicException/demo/index.html b/templates/ice-design/blocks/BasicException/demo/index.html new file mode 100644 index 0000000000..9d2d3a663d --- /dev/null +++ b/templates/ice-design/blocks/BasicException/demo/index.html @@ -0,0 +1,19 @@ + + + + + + + + Document + + + + +
+ + + + + + diff --git a/templates/ice-design/blocks/BasicException/demo/index.js b/templates/ice-design/blocks/BasicException/demo/index.js new file mode 100644 index 0000000000..4d6acd389a --- /dev/null +++ b/templates/ice-design/blocks/BasicException/demo/index.js @@ -0,0 +1,19 @@ +import React, { Component } from 'react'; +import { render } from 'react-dom'; + +// 载入默认全局样式 normalize 、.clearfix 和一些 mixin 方法等 +import '@icedesign/base/lib/_components/@alife/next-core/lib/index.scss'; + +import DemoLayout from '@icedesign/demo-layout'; +import Block from '../src'; + +const props = { + // ... +}; + +render( + + + , + document.querySelector('#mountNode') +); diff --git a/templates/ice-design/blocks/BasicException/lib/BasicException.js b/templates/ice-design/blocks/BasicException/lib/BasicException.js new file mode 100644 index 0000000000..4667a59670 --- /dev/null +++ b/templates/ice-design/blocks/BasicException/lib/BasicException.js @@ -0,0 +1,86 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = undefined; + +var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + +var _class, _temp; + +var _react = require('react'); + +var _react2 = _interopRequireDefault(_react); + +var _reactRouter = require('react-router'); + +var _card = require('@icedesign/card'); + +var _card2 = _interopRequireDefault(_card); + +require('./BasicException.scss'); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } + +var BasicException = (_temp = _class = function (_Component) { + _inherits(BasicException, _Component); + + function BasicException() { + _classCallCheck(this, BasicException); + + return _possibleConstructorReturn(this, (BasicException.__proto__ || Object.getPrototypeOf(BasicException)).apply(this, arguments)); + } + + _createClass(BasicException, [{ + key: 'render', + value: function render() { + return _react2.default.createElement( + 'div', + { className: 'basic-exception' }, + _react2.default.createElement( + _card2.default, + null, + _react2.default.createElement( + 'div', + { className: 'exception-content' }, + _react2.default.createElement('img', { + src: 'https://img.alicdn.com/tfs/TB1w4M7bNrI8KJjy0FpXXb5hVXa-260-260.png', + className: 'img-exception', + alt: '\u670D\u52A1\u5668\u51FA\u9519' + }), + _react2.default.createElement( + 'div', + { className: 'prompt' }, + _react2.default.createElement( + 'h3', + null, + '\u62B1\u6B49\uFF0C\u670D\u52A1\u5668\u51FA\u9519\u4E86' + ), + _react2.default.createElement( + 'p', + null, + '\u670D\u52A1\u5668\u51FA\u9519\u4E86\uFF0C\u8BF7\u91CD\u65B0\u5237\u65B0\u9875\u9762\u6216\u8FD4\u56DE', + _react2.default.createElement( + _reactRouter.Link, + { to: '/' }, + '\u9996\u9875' + ) + ) + ) + ) + ) + ); + } + }]); + + return BasicException; +}(_react.Component), _class.displayName = 'BasicException', _temp); +exports.default = BasicException; +module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/BasicException/lib/BasicException.scss b/templates/ice-design/blocks/BasicException/lib/BasicException.scss new file mode 100644 index 0000000000..015457dd53 --- /dev/null +++ b/templates/ice-design/blocks/BasicException/lib/BasicException.scss @@ -0,0 +1,22 @@ +@charset "UTF-8"; + +.basic-exception { + .exception-content { + display: flex; + justify-content: center; + align-items: center; + min-height: 500px; + } + .img-exception { + margin-right: 50px; + } + h3 { + color: #333; + font-size: 24px; + margin: 20px 0; + } + p { + color: #666; + font-size: 16px; + } +} diff --git a/templates/ice-design/blocks/BasicException/lib/index.js b/templates/ice-design/blocks/BasicException/lib/index.js new file mode 100644 index 0000000000..243c8565dc --- /dev/null +++ b/templates/ice-design/blocks/BasicException/lib/index.js @@ -0,0 +1,14 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _BasicException = require('./BasicException'); + +var _BasicException2 = _interopRequireDefault(_BasicException); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +exports.default = _BasicException2.default; +module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/BasicException/mock/api.json b/templates/ice-design/blocks/BasicException/mock/api.json new file mode 100644 index 0000000000..e706430232 --- /dev/null +++ b/templates/ice-design/blocks/BasicException/mock/api.json @@ -0,0 +1,4 @@ +{ + "status": "success", + "data": {} +} diff --git a/templates/ice-design/blocks/BasicException/package.json b/templates/ice-design/blocks/BasicException/package.json new file mode 100644 index 0000000000..eca02f68c5 --- /dev/null +++ b/templates/ice-design/blocks/BasicException/package.json @@ -0,0 +1,56 @@ +{ + "name": "@icedesign/basic-exception-block", + "version": "0.1.0", + "description": "", + "main": "lib/index.js", + "files": [ + "src/", + "demo/", + "mock/", + "lib" + ], + "author": { + "name": "ICE Team", + "email": "ice-admin@alibaba-inc.com" + }, + "repository": { + "type": "git", + "url": "https://github.com/alibaba/ice" + }, + "license": "MIT", + "keywords": [ + "ice", + "ice-block" + ], + "dependencies": { + "prop-types": "^15.5.8", + "react-router": "^3.2.0", + "@icedesign/base": "^0.1.0", + "@icedesign/card": "^0.1.0" + }, + "devDependencies": { + "babel-eslint": "^8.0.3", + "eslint": "^4.13.1", + "eslint-plugin-babel": "^4.1.1", + "eslint-plugin-react": "^7.5.1", + "@icedesign/demo-layout": "^0.1.0", + "eslint-plugin-import": "^2.8.0", + "eslint-config-airbnb": "^16.1.0", + "eslint-plugin-jsx-a11y": "^6.0.3", + "@icedesign/skin": "^0.1.2" + }, + "blockConfig": { + "name": "basic-exception", + "description": "基础异常报错", + "chinese": "基础异常报错", + "category": "exception", + "snapshot": "https://img.alicdn.com/tfs/TB197z8if2H8KJjy0FcXXaDlFXa-1786-914.png", + "sketchURL": "", + "icelandURL": "", + "themePackage": "@icedesign/skin" + }, + "scripts": { + "lint": "eslint . --ext '.js,.jsx' --fix", + "prepublish": "npm run lint" + } +} diff --git a/templates/ice-design/blocks/BasicException/src/BasicException.jsx b/templates/ice-design/blocks/BasicException/src/BasicException.jsx new file mode 100644 index 0000000000..556fb72a2d --- /dev/null +++ b/templates/ice-design/blocks/BasicException/src/BasicException.jsx @@ -0,0 +1,29 @@ +import React, { Component } from 'react'; +import { Link } from 'react-router'; +import IceCard from '@icedesign/card'; +import './BasicException.scss'; + +export default class BasicException extends Component { + static displayName = 'BasicException'; + render() { + return ( +
+ +
+ 服务器出错 +
+

抱歉,服务器出错了

+

+ 服务器出错了,请重新刷新页面或返回首页 +

+
+
+
+
+ ); + } +} diff --git a/templates/ice-design/blocks/BasicException/src/BasicException.scss b/templates/ice-design/blocks/BasicException/src/BasicException.scss new file mode 100644 index 0000000000..015457dd53 --- /dev/null +++ b/templates/ice-design/blocks/BasicException/src/BasicException.scss @@ -0,0 +1,22 @@ +@charset "UTF-8"; + +.basic-exception { + .exception-content { + display: flex; + justify-content: center; + align-items: center; + min-height: 500px; + } + .img-exception { + margin-right: 50px; + } + h3 { + color: #333; + font-size: 24px; + margin: 20px 0; + } + p { + color: #666; + font-size: 16px; + } +} diff --git a/templates/ice-design/blocks/BasicException/src/index.js b/templates/ice-design/blocks/BasicException/src/index.js new file mode 100644 index 0000000000..d7f0a0fd20 --- /dev/null +++ b/templates/ice-design/blocks/BasicException/src/index.js @@ -0,0 +1,3 @@ +import BasicException from './BasicException'; + +export default BasicException; diff --git a/templates/ice-design/blocks/BasicNotFound/.editorconfig b/templates/ice-design/blocks/BasicNotFound/.editorconfig new file mode 100644 index 0000000000..22ef5ace54 --- /dev/null +++ b/templates/ice-design/blocks/BasicNotFound/.editorconfig @@ -0,0 +1,16 @@ +# http://editorconfig.org +root = true + +[*] +indent_style = space +indent_size = 2 +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false + +[makefile] +indent_style = tab +indent_size = 4 diff --git a/templates/ice-design/blocks/BasicNotFound/.eslintignore b/templates/ice-design/blocks/BasicNotFound/.eslintignore new file mode 100644 index 0000000000..2d5ec592a3 --- /dev/null +++ b/templates/ice-design/blocks/BasicNotFound/.eslintignore @@ -0,0 +1,12 @@ +# 忽略目录 +build/ +tests/ +demo/ +lib/ + +# node 覆盖率文件 +coverage/ + +# 忽略文件 +**/*-min.js +**/*.min.js diff --git a/templates/ice-design/blocks/BasicNotFound/.eslintrc b/templates/ice-design/blocks/BasicNotFound/.eslintrc new file mode 100644 index 0000000000..07c65acfe7 --- /dev/null +++ b/templates/ice-design/blocks/BasicNotFound/.eslintrc @@ -0,0 +1,53 @@ +{ + "root": true, + "parser": "babel-eslint", + "extends": "eslint-config-airbnb", + "parserOptions": { + "ecmaVersion": 6, + "ecmaFeatures": { + "jsx": true, + "experimentalObjectRestSpread": true + } + }, + "env": { + "browser": true + }, + "plugins": ["react", "babel"], + "rules": { + "react/forbid-prop-types": 0, + "jsx-a11y/label-has-for": 0, + "jsx-a11y/no-static-element-interactions": 0, + "jsx-a11y/anchor-has-content": 0, + "jsx-a11y/click-events-have-key-events": 0, + "jsx-a11y/anchor-is-valid": 0, + "react/no-array-index-key": 0, + "func-names": 0, + "arrow-body-style": 0, + "no-use-before-define": 1, + "react/sort-comp": 0, + "react/prop-types": 0, + "react/jsx-first-prop-new-line": 0, + "react/jsx-filename-extension": [ + 1, + { + "extensions": [".js", ".jsx"] + } + ], + "import/extensions": 0, + "import/no-unresolved": 0, + "import/no-extraneous-dependencies": 0, + "prefer-destructuring": 0, + "no-param-reassign": 0, + "no-return-assign": 0, + "max-len": 0, + "consistent-return": 0, + "no-redeclare": 0, + "react/require-extension": 0, + "react/no-danger": 0, + "comma-dangle": ["error", "always-multiline"], + "function-paren-newline": 0, + "object-curly-newline": 0, + "no-restricted-globals": 0, + "react/prefer-stateless-function": 0 + } +} diff --git a/templates/ice-design/blocks/BasicNotFound/.gitignore b/templates/ice-design/blocks/BasicNotFound/.gitignore new file mode 100644 index 0000000000..cc45d6fb3c --- /dev/null +++ b/templates/ice-design/blocks/BasicNotFound/.gitignore @@ -0,0 +1,13 @@ + +*.swp +*.dia~ +.idea/ +.DS_Store + +npm-debug.log +yarn-error.log +node_modules/ +tmp/ + +# happypack 缓存 +.happypack diff --git a/templates/ice-design/blocks/BasicNotFound/README.md b/templates/ice-design/blocks/BasicNotFound/README.md new file mode 100644 index 0000000000..b65b8d57c1 --- /dev/null +++ b/templates/ice-design/blocks/BasicNotFound/README.md @@ -0,0 +1,10 @@ +# basic-not-found + +简介:404 报错提示 + +![截图](https://img.alicdn.com/tfs/TB1.HyVgyqAXuNjy1XdXXaYcVXa-1914-1066.png) + +## 更多 + +* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) +* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) diff --git a/templates/ice-design/blocks/BasicNotFound/demo/index.html b/templates/ice-design/blocks/BasicNotFound/demo/index.html new file mode 100644 index 0000000000..9d2d3a663d --- /dev/null +++ b/templates/ice-design/blocks/BasicNotFound/demo/index.html @@ -0,0 +1,19 @@ + + + + + + + + Document + + + + +
+ + + + + + diff --git a/templates/ice-design/blocks/BasicNotFound/demo/index.js b/templates/ice-design/blocks/BasicNotFound/demo/index.js new file mode 100644 index 0000000000..30ecdbc652 --- /dev/null +++ b/templates/ice-design/blocks/BasicNotFound/demo/index.js @@ -0,0 +1,19 @@ +import React, { Component } from 'react'; +import { render } from 'react-dom'; + +// 载入默认全局样式 normalize 、.clearfix 和一些 mixin 方法等 +import '@icedesign/base/lib/_components/@alife/next-core/lib/index.scss'; + +import DemoLayout from '@icedesign/demo-layout'; +import Block from '../src'; + +const props = { + // ... +}; + +render( + + + , + document.querySelector('#mountNode') +); diff --git a/templates/ice-design/blocks/BasicNotFound/lib/BasicNotFound.js b/templates/ice-design/blocks/BasicNotFound/lib/BasicNotFound.js new file mode 100644 index 0000000000..362b5d39f2 --- /dev/null +++ b/templates/ice-design/blocks/BasicNotFound/lib/BasicNotFound.js @@ -0,0 +1,87 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = undefined; + +var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + +var _class, _temp; + +var _react = require('react'); + +var _react2 = _interopRequireDefault(_react); + +var _reactRouter = require('react-router'); + +var _card = require('@icedesign/card'); + +var _card2 = _interopRequireDefault(_card); + +require('./BasicNotFound.scss'); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } + +var BasicNotFound = (_temp = _class = function (_Component) { + _inherits(BasicNotFound, _Component); + + function BasicNotFound() { + _classCallCheck(this, BasicNotFound); + + return _possibleConstructorReturn(this, (BasicNotFound.__proto__ || Object.getPrototypeOf(BasicNotFound)).apply(this, arguments)); + } + + _createClass(BasicNotFound, [{ + key: 'render', + value: function render() { + return _react2.default.createElement( + 'div', + { className: 'basic-not-found' }, + _react2.default.createElement( + _card2.default, + null, + _react2.default.createElement( + 'div', + { className: 'not-found-content' }, + _react2.default.createElement('img', { + src: 'https://img.alicdn.com/tfs/TB1txw7bNrI8KJjy0FpXXb5hVXa-260-260.png', + className: 'img-notfound', + alt: '\u9875\u9762\u4E0D\u5B58\u5728' + }), + _react2.default.createElement( + 'div', + { className: 'prompt' }, + _react2.default.createElement( + 'h3', + null, + '\u62B1\u6B49\uFF0C\u4F60\u8BBF\u95EE\u7684\u9875\u9762\u4E0D\u5B58\u5728' + ), + _react2.default.createElement( + 'p', + null, + '\u60A8\u8981\u627E\u7684\u9875\u9762\u6CA1\u6709\u627E\u5230\uFF0C\u8BF7\u8FD4\u56DE', + _react2.default.createElement( + _reactRouter.Link, + { to: '/' }, + '\u9996\u9875' + ), + '\u7EE7\u7EED\u6D4F\u89C8' + ) + ) + ) + ) + ); + } + }]); + + return BasicNotFound; +}(_react.Component), _class.displayName = 'BasicNotFound', _temp); +exports.default = BasicNotFound; +module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/BasicNotFound/lib/BasicNotFound.scss b/templates/ice-design/blocks/BasicNotFound/lib/BasicNotFound.scss new file mode 100644 index 0000000000..cb75ad6504 --- /dev/null +++ b/templates/ice-design/blocks/BasicNotFound/lib/BasicNotFound.scss @@ -0,0 +1,22 @@ +@charset "UTF-8"; + +.basic-not-found { + .not-found-content { + display: flex; + justify-content: center; + align-items: center; + min-height: 500px; + } + .img-notfound { + margin-right: 50px; + } + h3 { + color: #333; + font-size: 24px; + margin: 20px 0; + } + p { + color: #666; + font-size: 16px; + } +} diff --git a/templates/ice-design/blocks/BasicNotFound/lib/index.js b/templates/ice-design/blocks/BasicNotFound/lib/index.js new file mode 100644 index 0000000000..cf0ad40472 --- /dev/null +++ b/templates/ice-design/blocks/BasicNotFound/lib/index.js @@ -0,0 +1,14 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _BasicNotFound = require('./BasicNotFound'); + +var _BasicNotFound2 = _interopRequireDefault(_BasicNotFound); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +exports.default = _BasicNotFound2.default; +module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/BasicNotFound/mock/api.json b/templates/ice-design/blocks/BasicNotFound/mock/api.json new file mode 100644 index 0000000000..e706430232 --- /dev/null +++ b/templates/ice-design/blocks/BasicNotFound/mock/api.json @@ -0,0 +1,4 @@ +{ + "status": "success", + "data": {} +} diff --git a/templates/ice-design/blocks/BasicNotFound/package.json b/templates/ice-design/blocks/BasicNotFound/package.json new file mode 100644 index 0000000000..fd02c8bd8a --- /dev/null +++ b/templates/ice-design/blocks/BasicNotFound/package.json @@ -0,0 +1,56 @@ +{ + "name": "@icedesign/basic-not-found-block", + "version": "0.1.0", + "description": "", + "main": "lib/index.js", + "files": [ + "src/", + "demo/", + "mock/", + "lib/" + ], + "author": { + "name": "ICE Team", + "email": "ice-admin@alibaba-inc.com" + }, + "repository": { + "type": "git", + "url": "https://github.com/alibaba/ice" + }, + "license": "MIT", + "keywords": [ + "ice", + "ice-block" + ], + "dependencies": { + "@icedesign/base": "^0.1.0", + "@icedesign/card": "^0.1.0", + "prop-types": "^15.5.8", + "react-router": "^3.2.0" + }, + "devDependencies": { + "@icedesign/demo-layout": "^0.1.2", + "@icedesign/skin": "^0.1.2", + "babel-eslint": "^8.0.3", + "eslint": "^4.13.1", + "eslint-config-airbnb": "^16.1.0", + "eslint-plugin-babel": "^4.1.1", + "eslint-plugin-import": "^2.8.0", + "eslint-plugin-jsx-a11y": "^6.0.3", + "eslint-plugin-react": "^7.5.1" + }, + "blockConfig": { + "name": "basic-not-found", + "description": "404 报错提示", + "chinese": "404 报错提示", + "category": "exception", + "snapshot": "https://img.alicdn.com/tfs/TB1.HyVgyqAXuNjy1XdXXaYcVXa-1914-1066.png", + "sketchURL": "", + "icelandURL": "", + "themePackage": "@icedesign/skin" + }, + "scripts": { + "lint": "eslint . --ext '.js,.jsx' --fix", + "prepublish": "npm run lint" + } +} diff --git a/templates/ice-design/blocks/BasicNotFound/src/BasicNotFound.jsx b/templates/ice-design/blocks/BasicNotFound/src/BasicNotFound.jsx new file mode 100644 index 0000000000..97f2a850f2 --- /dev/null +++ b/templates/ice-design/blocks/BasicNotFound/src/BasicNotFound.jsx @@ -0,0 +1,30 @@ +import React, { Component } from 'react'; +import { Link } from 'react-router'; +import IceCard from '@icedesign/card'; +import './BasicNotFound.scss'; + +export default class BasicNotFound extends Component { + static displayName = 'BasicNotFound'; + + render() { + return ( +
+ +
+ 页面不存在 +
+

抱歉,你访问的页面不存在

+

+ 您要找的页面没有找到,请返回首页继续浏览 +

+
+
+
+
+ ); + } +} diff --git a/templates/ice-design/blocks/BasicNotFound/src/BasicNotFound.scss b/templates/ice-design/blocks/BasicNotFound/src/BasicNotFound.scss new file mode 100644 index 0000000000..cb75ad6504 --- /dev/null +++ b/templates/ice-design/blocks/BasicNotFound/src/BasicNotFound.scss @@ -0,0 +1,22 @@ +@charset "UTF-8"; + +.basic-not-found { + .not-found-content { + display: flex; + justify-content: center; + align-items: center; + min-height: 500px; + } + .img-notfound { + margin-right: 50px; + } + h3 { + color: #333; + font-size: 24px; + margin: 20px 0; + } + p { + color: #666; + font-size: 16px; + } +} diff --git a/templates/ice-design/blocks/BasicNotFound/src/index.js b/templates/ice-design/blocks/BasicNotFound/src/index.js new file mode 100644 index 0000000000..d918a75fa3 --- /dev/null +++ b/templates/ice-design/blocks/BasicNotFound/src/index.js @@ -0,0 +1,3 @@ +import BasicNotFound from './BasicNotFound'; + +export default BasicNotFound; diff --git a/templates/ice-design/blocks/BasicTab/.editorconfig b/templates/ice-design/blocks/BasicTab/.editorconfig new file mode 100644 index 0000000000..22ef5ace54 --- /dev/null +++ b/templates/ice-design/blocks/BasicTab/.editorconfig @@ -0,0 +1,16 @@ +# http://editorconfig.org +root = true + +[*] +indent_style = space +indent_size = 2 +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false + +[makefile] +indent_style = tab +indent_size = 4 diff --git a/templates/ice-design/blocks/BasicTab/.eslintignore b/templates/ice-design/blocks/BasicTab/.eslintignore new file mode 100644 index 0000000000..2d5ec592a3 --- /dev/null +++ b/templates/ice-design/blocks/BasicTab/.eslintignore @@ -0,0 +1,12 @@ +# 忽略目录 +build/ +tests/ +demo/ +lib/ + +# node 覆盖率文件 +coverage/ + +# 忽略文件 +**/*-min.js +**/*.min.js diff --git a/templates/ice-design/blocks/BasicTab/.eslintrc b/templates/ice-design/blocks/BasicTab/.eslintrc new file mode 100644 index 0000000000..07c65acfe7 --- /dev/null +++ b/templates/ice-design/blocks/BasicTab/.eslintrc @@ -0,0 +1,53 @@ +{ + "root": true, + "parser": "babel-eslint", + "extends": "eslint-config-airbnb", + "parserOptions": { + "ecmaVersion": 6, + "ecmaFeatures": { + "jsx": true, + "experimentalObjectRestSpread": true + } + }, + "env": { + "browser": true + }, + "plugins": ["react", "babel"], + "rules": { + "react/forbid-prop-types": 0, + "jsx-a11y/label-has-for": 0, + "jsx-a11y/no-static-element-interactions": 0, + "jsx-a11y/anchor-has-content": 0, + "jsx-a11y/click-events-have-key-events": 0, + "jsx-a11y/anchor-is-valid": 0, + "react/no-array-index-key": 0, + "func-names": 0, + "arrow-body-style": 0, + "no-use-before-define": 1, + "react/sort-comp": 0, + "react/prop-types": 0, + "react/jsx-first-prop-new-line": 0, + "react/jsx-filename-extension": [ + 1, + { + "extensions": [".js", ".jsx"] + } + ], + "import/extensions": 0, + "import/no-unresolved": 0, + "import/no-extraneous-dependencies": 0, + "prefer-destructuring": 0, + "no-param-reassign": 0, + "no-return-assign": 0, + "max-len": 0, + "consistent-return": 0, + "no-redeclare": 0, + "react/require-extension": 0, + "react/no-danger": 0, + "comma-dangle": ["error", "always-multiline"], + "function-paren-newline": 0, + "object-curly-newline": 0, + "no-restricted-globals": 0, + "react/prefer-stateless-function": 0 + } +} diff --git a/templates/ice-design/blocks/BasicTab/.gitignore b/templates/ice-design/blocks/BasicTab/.gitignore new file mode 100644 index 0000000000..cc45d6fb3c --- /dev/null +++ b/templates/ice-design/blocks/BasicTab/.gitignore @@ -0,0 +1,13 @@ + +*.swp +*.dia~ +.idea/ +.DS_Store + +npm-debug.log +yarn-error.log +node_modules/ +tmp/ + +# happypack 缓存 +.happypack diff --git a/templates/ice-design/blocks/BasicTab/README.md b/templates/ice-design/blocks/BasicTab/README.md new file mode 100644 index 0000000000..ecba840b4f --- /dev/null +++ b/templates/ice-design/blocks/BasicTab/README.md @@ -0,0 +1,10 @@ +# basic-tab + +简介:基础 Tab 组件 + +![截图](https://img.alicdn.com/tfs/TB1lrQXif2H8KJjy0FcXXaDlFXa-1144-112.png) + +## 更多 + +* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) +* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) diff --git a/templates/ice-design/blocks/BasicTab/demo/index.html b/templates/ice-design/blocks/BasicTab/demo/index.html new file mode 100644 index 0000000000..cb0422f8d9 --- /dev/null +++ b/templates/ice-design/blocks/BasicTab/demo/index.html @@ -0,0 +1,18 @@ + + + + + + + + Document + + + + +
+ + + + + diff --git a/templates/ice-design/blocks/BasicTab/demo/index.js b/templates/ice-design/blocks/BasicTab/demo/index.js new file mode 100644 index 0000000000..4d6acd389a --- /dev/null +++ b/templates/ice-design/blocks/BasicTab/demo/index.js @@ -0,0 +1,19 @@ +import React, { Component } from 'react'; +import { render } from 'react-dom'; + +// 载入默认全局样式 normalize 、.clearfix 和一些 mixin 方法等 +import '@icedesign/base/lib/_components/@alife/next-core/lib/index.scss'; + +import DemoLayout from '@icedesign/demo-layout'; +import Block from '../src'; + +const props = { + // ... +}; + +render( + + + , + document.querySelector('#mountNode') +); diff --git a/templates/ice-design/blocks/BasicTab/lib/BasicTab.js b/templates/ice-design/blocks/BasicTab/lib/BasicTab.js new file mode 100644 index 0000000000..7f255aa4da --- /dev/null +++ b/templates/ice-design/blocks/BasicTab/lib/BasicTab.js @@ -0,0 +1,76 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = undefined; + +var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + +var _class, _temp; + +var _react = require('react'); + +var _react2 = _interopRequireDefault(_react); + +var _card = require('@icedesign/card'); + +var _card2 = _interopRequireDefault(_card); + +require('./BasicTab.scss'); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } + +var Tab = require('@icedesign/base/lib/tab'); + +var BasicTab = (_temp = _class = function (_Component) { + _inherits(BasicTab, _Component); + + function BasicTab() { + _classCallCheck(this, BasicTab); + + return _possibleConstructorReturn(this, (BasicTab.__proto__ || Object.getPrototypeOf(BasicTab)).apply(this, arguments)); + } + + _createClass(BasicTab, [{ + key: 'render', + value: function render() { + var tabs = [{ tab: '订阅号概览', key: 'guide' }, { tab: '订阅号推送', key: 'push' }, { tab: '互动消息', key: 'message' }, { tab: '自动回复设置', key: 'autoreply' }]; + + return _react2.default.createElement( + 'div', + { className: 'basic-tab' }, + _react2.default.createElement( + _card2.default, + { style: styles.tabCardStyle }, + _react2.default.createElement( + Tab, + { contentStyle: { display: 'none' } }, + tabs.map(function (item) { + return _react2.default.createElement(Tab.TabPane, { key: item.key, tab: item.tab }); + }) + ) + ) + ); + } + }]); + + return BasicTab; +}(_react.Component), _class.displayName = 'BasicTab', _temp); +exports.default = BasicTab; + + +var styles = { + tabCardStyle: { + display: 'flex', + padding: '0', + alignItems: 'flex-end' + } +}; +module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/BasicTab/lib/BasicTab.scss b/templates/ice-design/blocks/BasicTab/lib/BasicTab.scss new file mode 100644 index 0000000000..2c8b62448d --- /dev/null +++ b/templates/ice-design/blocks/BasicTab/lib/BasicTab.scss @@ -0,0 +1,4 @@ +@charset "UTF-8"; + +.basic-tab { +} diff --git a/templates/ice-design/blocks/BasicTab/lib/index.js b/templates/ice-design/blocks/BasicTab/lib/index.js new file mode 100644 index 0000000000..d81accfa06 --- /dev/null +++ b/templates/ice-design/blocks/BasicTab/lib/index.js @@ -0,0 +1,14 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _BasicTab = require('./BasicTab'); + +var _BasicTab2 = _interopRequireDefault(_BasicTab); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +exports.default = _BasicTab2.default; +module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/BasicTab/mock/api.json b/templates/ice-design/blocks/BasicTab/mock/api.json new file mode 100644 index 0000000000..e706430232 --- /dev/null +++ b/templates/ice-design/blocks/BasicTab/mock/api.json @@ -0,0 +1,4 @@ +{ + "status": "success", + "data": {} +} diff --git a/templates/ice-design/blocks/BasicTab/package.json b/templates/ice-design/blocks/BasicTab/package.json new file mode 100644 index 0000000000..7850b4af88 --- /dev/null +++ b/templates/ice-design/blocks/BasicTab/package.json @@ -0,0 +1,55 @@ +{ + "name": "@icedesign/basic-tab-block", + "version": "0.1.0", + "description": "", + "main": "lib/index.js", + "files": [ + "src/", + "demo/", + "mock/", + "lib/" + ], + "author": { + "name": "ICE Team", + "email": "ice-admin@alibaba-inc.com" + }, + "repository": { + "type": "git", + "url": "https://github.com/alibaba/ice" + }, + "license": "MIT", + "keywords": [ + "ice", + "ice-block" + ], + "dependencies": { + "prop-types": "^15.5.8", + "@icedesign/base": "^0.1.0", + "@icedesign/card": "^0.1.0" + }, + "devDependencies": { + "babel-eslint": "^8.0.3", + "eslint": "^4.13.1", + "eslint-plugin-babel": "^4.1.1", + "eslint-plugin-react": "^7.5.1", + "@icedesign/demo-layout": "^0.1.0", + "eslint-plugin-import": "^2.8.0", + "eslint-config-airbnb": "^16.1.0", + "eslint-plugin-jsx-a11y": "^6.0.3", + "@icedesign/skin": "^0.1.3" + }, + "blockConfig": { + "name": "basic-tab", + "description": "基础 Tab 组件", + "chinese": "基础 Tab 组件", + "category": "info-display", + "snapshot": "https://img.alicdn.com/tfs/TB1lrQXif2H8KJjy0FcXXaDlFXa-1144-112.png", + "sketchURL": "", + "icelandURL": "", + "themePackage": "@icedesign/skin" + }, + "scripts": { + "lint": "eslint . --ext '.js,.jsx' --fix", + "prepublish": "npm run lint" + } +} diff --git a/templates/ice-design/blocks/BasicTab/src/BasicTab.jsx b/templates/ice-design/blocks/BasicTab/src/BasicTab.jsx new file mode 100644 index 0000000000..d113a6b219 --- /dev/null +++ b/templates/ice-design/blocks/BasicTab/src/BasicTab.jsx @@ -0,0 +1,35 @@ +import React, { Component } from 'react'; +import { Tab } from '@icedesign/base'; +import IceCard from '@icedesign/card'; +import './BasicTab.scss'; + +export default class BasicTab extends Component { + static displayName = 'BasicTab'; + + render() { + const tabs = [ + { tab: '订阅号概览', key: 'guide' }, + { tab: '订阅号推送', key: 'push' }, + { tab: '互动消息', key: 'message' }, + { tab: '自动回复设置', key: 'autoreply' }, + ]; + + return ( +
+ + + {tabs.map(item => )} + + +
+ ); + } +} + +const styles = { + tabCardStyle: { + display: 'flex', + padding: '0', + alignItems: 'flex-end', + }, +}; diff --git a/templates/ice-design/blocks/BasicTab/src/BasicTab.scss b/templates/ice-design/blocks/BasicTab/src/BasicTab.scss new file mode 100644 index 0000000000..2c8b62448d --- /dev/null +++ b/templates/ice-design/blocks/BasicTab/src/BasicTab.scss @@ -0,0 +1,4 @@ +@charset "UTF-8"; + +.basic-tab { +} diff --git a/templates/ice-design/blocks/BasicTab/src/index.js b/templates/ice-design/blocks/BasicTab/src/index.js new file mode 100644 index 0000000000..39f120d487 --- /dev/null +++ b/templates/ice-design/blocks/BasicTab/src/index.js @@ -0,0 +1,3 @@ +import BasicTab from './BasicTab'; + +export default BasicTab; diff --git a/templates/ice-design/blocks/BrandDisplay/.editorconfig b/templates/ice-design/blocks/BrandDisplay/.editorconfig new file mode 100644 index 0000000000..22ef5ace54 --- /dev/null +++ b/templates/ice-design/blocks/BrandDisplay/.editorconfig @@ -0,0 +1,16 @@ +# http://editorconfig.org +root = true + +[*] +indent_style = space +indent_size = 2 +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false + +[makefile] +indent_style = tab +indent_size = 4 diff --git a/templates/ice-design/blocks/BrandDisplay/.eslintignore b/templates/ice-design/blocks/BrandDisplay/.eslintignore new file mode 100644 index 0000000000..3b21308fc7 --- /dev/null +++ b/templates/ice-design/blocks/BrandDisplay/.eslintignore @@ -0,0 +1,12 @@ +# 忽略目录 +build/ +tests/ +demo/ +lib/ + +# node 覆盖率文件 +coverage/ + +# 忽略文件 +**/*-min.js +**/*.min.js \ No newline at end of file diff --git a/templates/ice-design/blocks/BrandDisplay/.eslintrc b/templates/ice-design/blocks/BrandDisplay/.eslintrc new file mode 100644 index 0000000000..7a4e5bac48 --- /dev/null +++ b/templates/ice-design/blocks/BrandDisplay/.eslintrc @@ -0,0 +1,62 @@ +{ + "root": true, + "parser": "babel-eslint", + "extends": "eslint-config-airbnb", + "parserOptions": { + "ecmaVersion": 6, + "ecmaFeatures": { + "jsx": true, + "experimentalObjectRestSpread": true + } + }, + "env": { + "browser": true + }, + "plugins": [ + "react", + "babel" + ], + "rules": { + "react/forbid-prop-types": 0, + "jsx-a11y/label-has-for": 0, + "jsx-a11y/no-static-element-interactions": 0, + "jsx-a11y/anchor-has-content": 0, + "jsx-a11y/click-events-have-key-events": 0, + "jsx-a11y/anchor-is-valid": 0, + "react/no-array-index-key": 0, + "func-names": 0, + "arrow-body-style": 0, + "no-use-before-define": 0, + "react/sort-comp": 0, + "react/prop-types": 0, + "react/jsx-first-prop-new-line": 0, + "react/jsx-filename-extension": [ + 1, + { + "extensions": [ + ".js", + ".jsx" + ] + } + ], + "import/extensions": 0, + "import/no-unresolved": 0, + "import/no-extraneous-dependencies": 0, + "prefer-destructuring": 0, + "no-param-reassign": 0, + "no-return-assign": 0, + "max-len": 0, + "consistent-return": 0, + "no-redeclare": 0, + "react/require-extension": 0, + "react/no-danger": 0, + "comma-dangle": [ + "error", + "always-multiline" + ], + "function-paren-newline": 0, + "object-curly-newline": 0, + "no-restricted-globals": 0, + "react/prefer-stateless-function": 0 + } +} diff --git a/templates/ice-design/blocks/BrandDisplay/.gitignore b/templates/ice-design/blocks/BrandDisplay/.gitignore new file mode 100644 index 0000000000..cc45d6fb3c --- /dev/null +++ b/templates/ice-design/blocks/BrandDisplay/.gitignore @@ -0,0 +1,13 @@ + +*.swp +*.dia~ +.idea/ +.DS_Store + +npm-debug.log +yarn-error.log +node_modules/ +tmp/ + +# happypack 缓存 +.happypack diff --git a/templates/ice-design/blocks/BrandDisplay/README.md b/templates/ice-design/blocks/BrandDisplay/README.md new file mode 100644 index 0000000000..fa00c00605 --- /dev/null +++ b/templates/ice-design/blocks/BrandDisplay/README.md @@ -0,0 +1,10 @@ +# brand-display + +简介:品牌列表展示 + +![截图](https://img.alicdn.com/tfs/TB1XIooihrI8KJjy0FpXXb5hVXa-1802-874.png) + +## 更多 + +* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) +* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) diff --git a/templates/ice-design/blocks/BrandDisplay/demo/index.html b/templates/ice-design/blocks/BrandDisplay/demo/index.html new file mode 100644 index 0000000000..9d2d3a663d --- /dev/null +++ b/templates/ice-design/blocks/BrandDisplay/demo/index.html @@ -0,0 +1,19 @@ + + + + + + + + Document + + + + +
+ + + + + + diff --git a/templates/ice-design/blocks/BrandDisplay/demo/index.js b/templates/ice-design/blocks/BrandDisplay/demo/index.js new file mode 100644 index 0000000000..4d6acd389a --- /dev/null +++ b/templates/ice-design/blocks/BrandDisplay/demo/index.js @@ -0,0 +1,19 @@ +import React, { Component } from 'react'; +import { render } from 'react-dom'; + +// 载入默认全局样式 normalize 、.clearfix 和一些 mixin 方法等 +import '@icedesign/base/lib/_components/@alife/next-core/lib/index.scss'; + +import DemoLayout from '@icedesign/demo-layout'; +import Block from '../src'; + +const props = { + // ... +}; + +render( + + + , + document.querySelector('#mountNode') +); diff --git a/templates/ice-design/blocks/BrandDisplay/mock/api.json b/templates/ice-design/blocks/BrandDisplay/mock/api.json new file mode 100644 index 0000000000..e706430232 --- /dev/null +++ b/templates/ice-design/blocks/BrandDisplay/mock/api.json @@ -0,0 +1,4 @@ +{ + "status": "success", + "data": {} +} diff --git a/templates/ice-design/blocks/BrandDisplay/package.json b/templates/ice-design/blocks/BrandDisplay/package.json new file mode 100644 index 0000000000..f4ac3d5d84 --- /dev/null +++ b/templates/ice-design/blocks/BrandDisplay/package.json @@ -0,0 +1,52 @@ +{ + "name": "@icedesign/brand-display-block", + "version": "0.1.0", + "description": "", + "main": "lib/index.js", + "files": [ + "src/", + "demo/", + "lib/", + "mock/" + ], + "author": { + "name": "ICE Team", + "email": "ice-admin@alibaba-inc.com" + }, + "repository": { + "type": "git", + "url": "https://github.com/alibaba/ice" + }, + "license": "MIT", + "keywords": [ + "ice", + "ice-block" + ], + "dependencies": { + "prop-types": "^15.5.8", + "@icedesign/base": "^0.1.0", + "@icedesign/img": "^0.1.0" + }, + "devDependencies": { + "babel-eslint": "^8.0.3", + "eslint": "^4.13.1", + "eslint-plugin-babel": "^4.1.1", + "eslint-plugin-react": "^7.5.1", + "@icedesign/demo-layout": "^0.1.0", + "eslint-plugin-import": "^2.8.0", + "eslint-config-airbnb": "^16.1.0", + "eslint-plugin-jsx-a11y": "^6.0.3", + "@icedesign/skin": "^0.1.2" + }, + "blockConfig": { + "name": "brand-display", + "description": "品牌列表展示", + "chinese": "品牌列表展示", + "category": "info-display", + "snapshot": "https://img.alicdn.com/tfs/TB1XIooihrI8KJjy0FpXXb5hVXa-1802-874.png", + "sketchURL": "", + "icelandURL": "", + "themePackage": "@icedesign/skin" + }, + "scripts": {} +} diff --git a/templates/ice-design/blocks/BrandDisplay/src/BrandDisplay.jsx b/templates/ice-design/blocks/BrandDisplay/src/BrandDisplay.jsx new file mode 100644 index 0000000000..a4bc96c9c9 --- /dev/null +++ b/templates/ice-design/blocks/BrandDisplay/src/BrandDisplay.jsx @@ -0,0 +1,118 @@ +'use strict'; + +import React, { Component } from 'react'; +import PropTypes from 'prop-types'; +import Img from '@icedesign/img'; +import './BrandDisplay.scss'; + +const dataSource = [ + { + title: '飞利浦', + subject: + '一场内容营销活动获得超百万的进店点击,定位新广告的达人+积极迎接内容时代的品牌,如何刷新内容营销的定义?', + headPic: + 'https://img.alicdn.com/tfs/TB1QMwlSXXXXXaUXXXXXXXXXXXX-122-122.png', + pic: 'https://img.alicdn.com/tfs/TB1n6H_SXXXXXc3XpXXXXXXXXXX-616-348.png', + url: 'https://v.taobao.com/v/mission/case-detail?userId=38587850' + }, + { + title: '万家乐', + subject: + '策划『生活改造家』主题全案,联合一线大咖制作图文、直播、短视频全域引流,助力品牌升级和高端人群种草,结合行业活动割草。', + headPic: 'https://img.alicdn.com/tfs/TB1Z4CLSXXXXXcHXVXXXXXXXXXX-61-61.png', + pic: 'https://img.alicdn.com/tfs/TB1bHO6SXXXXXaiXFXXXXXXXXXX-308-174.png', + url: 'https://v.taobao.com/v/mission/case-detail?userId=2738062192' + }, + { + title: '职场游乐园', + subject: '2017年以“职场游乐园”为主题,全方位推动Lee牛仔专家与创新者形象。', + headPic: + 'https://img.alicdn.com/tfs/TB1kX62SXXXXXXJXVXXXXXXXXXX-122-122.png', + pic: 'https://img.alicdn.com/tfs/TB17bzrSXXXXXbpaFXXXXXXXXXX-616-348.png', + url: 'https://v.taobao.com/v/mission/case-detail?userId=2894350953' + }, + { + title: '品味百味人生', + subject: + '吃货的世界你不懂,看着直播镜头里心仪的零食恨不得舔屏,从种草到剁手分分钟一气呵成。', + headPic: + 'https://img.alicdn.com/tfs/TB19C_9SXXXXXc1XpXXXXXXXXXX-122-122.png', + pic: 'https://img.alicdn.com/tfs/TB1IkEjSXXXXXb1XXXXXXXXXXXX-616-348.png', + url: 'https://v.taobao.com/v/mission/case-detail?userId=2149813109' + } +]; + +export default class BrandDisplay extends Component { + static displayName = 'BrandDisplay'; + + static propTypes = { + style: PropTypes.object, + className: PropTypes.string + }; + + static defaultProps = {}; + + render() { + return ( +
+
+
+
品牌展示
+
+ +
+
+ ); + } +} + +const styles = { + brandHeader: { position: 'relative', textAlign: 'center' }, + brandTitle: { marginBottom: '20px', fontSize: '20px', color: '#333333' }, + brandItem: { + height: '175px', + background: '#fff', + display: 'inline-block', + verticalAlign: 'top', + marginBottom: '30px', + marginLeft: '15px', + overflow: 'hidden' + }, + caseContent: { + width: '250px', + display: 'inline-block', + verticalAlign: 'top' + }, + caseSubject: { margin: '20px 10px 0', lineHeight: '60px', height: '60px' }, + subjectImage: { width: '60px', height: '60px', borderRadius: '50%' }, + subjectDesc: { + fontSize: '16px', + color: '#333333', + height: '60px', + verticalAlign: 'top', + marginLeft: '12px' + }, + caseDetail: { + fontSize: '12px', + color: '#666666', + padding: '0 16px', + textAlign: 'left' + } +}; diff --git a/templates/ice-design/blocks/BrandDisplay/src/BrandDisplay.scss b/templates/ice-design/blocks/BrandDisplay/src/BrandDisplay.scss new file mode 100644 index 0000000000..f0e9707d9b --- /dev/null +++ b/templates/ice-design/blocks/BrandDisplay/src/BrandDisplay.scss @@ -0,0 +1,9 @@ +@charset "UTF-8"; + +.brand-display { + .brand-item { + &::nth-child(2n + 1) { + margin-left: 0; + } + } +} diff --git a/templates/ice-design/blocks/BrandDisplay/src/index.js b/templates/ice-design/blocks/BrandDisplay/src/index.js new file mode 100644 index 0000000000..239847b8a7 --- /dev/null +++ b/templates/ice-design/blocks/BrandDisplay/src/index.js @@ -0,0 +1,3 @@ +import BrandDisplay from './BrandDisplay'; + +export default BrandDisplay; diff --git a/templates/ice-design/blocks/BrandShowCase/.editorconfig b/templates/ice-design/blocks/BrandShowCase/.editorconfig new file mode 100644 index 0000000000..22ef5ace54 --- /dev/null +++ b/templates/ice-design/blocks/BrandShowCase/.editorconfig @@ -0,0 +1,16 @@ +# http://editorconfig.org +root = true + +[*] +indent_style = space +indent_size = 2 +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false + +[makefile] +indent_style = tab +indent_size = 4 diff --git a/templates/ice-design/blocks/BrandShowCase/.eslintignore b/templates/ice-design/blocks/BrandShowCase/.eslintignore new file mode 100644 index 0000000000..3b21308fc7 --- /dev/null +++ b/templates/ice-design/blocks/BrandShowCase/.eslintignore @@ -0,0 +1,12 @@ +# 忽略目录 +build/ +tests/ +demo/ +lib/ + +# node 覆盖率文件 +coverage/ + +# 忽略文件 +**/*-min.js +**/*.min.js \ No newline at end of file diff --git a/templates/ice-design/blocks/BrandShowCase/.eslintrc b/templates/ice-design/blocks/BrandShowCase/.eslintrc new file mode 100644 index 0000000000..7a4e5bac48 --- /dev/null +++ b/templates/ice-design/blocks/BrandShowCase/.eslintrc @@ -0,0 +1,62 @@ +{ + "root": true, + "parser": "babel-eslint", + "extends": "eslint-config-airbnb", + "parserOptions": { + "ecmaVersion": 6, + "ecmaFeatures": { + "jsx": true, + "experimentalObjectRestSpread": true + } + }, + "env": { + "browser": true + }, + "plugins": [ + "react", + "babel" + ], + "rules": { + "react/forbid-prop-types": 0, + "jsx-a11y/label-has-for": 0, + "jsx-a11y/no-static-element-interactions": 0, + "jsx-a11y/anchor-has-content": 0, + "jsx-a11y/click-events-have-key-events": 0, + "jsx-a11y/anchor-is-valid": 0, + "react/no-array-index-key": 0, + "func-names": 0, + "arrow-body-style": 0, + "no-use-before-define": 0, + "react/sort-comp": 0, + "react/prop-types": 0, + "react/jsx-first-prop-new-line": 0, + "react/jsx-filename-extension": [ + 1, + { + "extensions": [ + ".js", + ".jsx" + ] + } + ], + "import/extensions": 0, + "import/no-unresolved": 0, + "import/no-extraneous-dependencies": 0, + "prefer-destructuring": 0, + "no-param-reassign": 0, + "no-return-assign": 0, + "max-len": 0, + "consistent-return": 0, + "no-redeclare": 0, + "react/require-extension": 0, + "react/no-danger": 0, + "comma-dangle": [ + "error", + "always-multiline" + ], + "function-paren-newline": 0, + "object-curly-newline": 0, + "no-restricted-globals": 0, + "react/prefer-stateless-function": 0 + } +} diff --git a/templates/ice-design/blocks/BrandShowCase/.gitignore b/templates/ice-design/blocks/BrandShowCase/.gitignore new file mode 100644 index 0000000000..cc45d6fb3c --- /dev/null +++ b/templates/ice-design/blocks/BrandShowCase/.gitignore @@ -0,0 +1,13 @@ + +*.swp +*.dia~ +.idea/ +.DS_Store + +npm-debug.log +yarn-error.log +node_modules/ +tmp/ + +# happypack 缓存 +.happypack diff --git a/templates/ice-design/blocks/BrandShowCase/README.md b/templates/ice-design/blocks/BrandShowCase/README.md new file mode 100644 index 0000000000..ed0d336bec --- /dev/null +++ b/templates/ice-design/blocks/BrandShowCase/README.md @@ -0,0 +1,10 @@ +# brand-show-case + +简介:品牌展示 + +![截图](https://img.alicdn.com/tfs/TB1DGFejr_I8KJjy1XaXXbsxpXa-1910-860.png) + +## 更多 + +* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) +* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) diff --git a/templates/ice-design/blocks/BrandShowCase/demo/index.html b/templates/ice-design/blocks/BrandShowCase/demo/index.html new file mode 100644 index 0000000000..9d2d3a663d --- /dev/null +++ b/templates/ice-design/blocks/BrandShowCase/demo/index.html @@ -0,0 +1,19 @@ + + + + + + + + Document + + + + +
+ + + + + + diff --git a/templates/ice-design/blocks/BrandShowCase/demo/index.js b/templates/ice-design/blocks/BrandShowCase/demo/index.js new file mode 100644 index 0000000000..178a766115 --- /dev/null +++ b/templates/ice-design/blocks/BrandShowCase/demo/index.js @@ -0,0 +1,19 @@ +import React, {Component} from 'react'; +import {render} from 'react-dom'; + +// 载入默认全局样式 normalize 、.clearfix 和一些 mixin 方法等 +import '@icedesign/base/lib/_components/@alife/next-core/lib/index.scss'; + +import DemoLayout from '@icedesign/demo-layout'; +import Block from '../src'; + +const props = { + // ... +}; + +render( + + + , + document.querySelector('#mountNode') +); diff --git a/templates/ice-design/blocks/BrandShowCase/mock/api.json b/templates/ice-design/blocks/BrandShowCase/mock/api.json new file mode 100644 index 0000000000..e706430232 --- /dev/null +++ b/templates/ice-design/blocks/BrandShowCase/mock/api.json @@ -0,0 +1,4 @@ +{ + "status": "success", + "data": {} +} diff --git a/templates/ice-design/blocks/BrandShowCase/package.json b/templates/ice-design/blocks/BrandShowCase/package.json new file mode 100644 index 0000000000..c94660834b --- /dev/null +++ b/templates/ice-design/blocks/BrandShowCase/package.json @@ -0,0 +1,54 @@ +{ + "name": "@icedesign/brand-show-case-block", + "version": "0.1.0", + "description": "", + "files": [ + "src/", + "demo/", + "lib/", + "mock/" + ], + "scripts": {}, + "author": { + "name": "ICE Team", + "email": "ice-admin@alibaba-inc.com" + }, + "repository": { + "type": "git", + "url": "https://github.com/alibaba/ice" + }, + "license": "MIT", + "keywords": [ + "ice", + "ice-block" + ], + "dependencies": { + "@icedesign/base": "^0.1.0", + "prop-types": "^15.5.8", + "@icedesign/card": "^0.1.0" + }, + "devDependencies": { + "@icedesign/skin": "^0.1.2", + "babel-eslint": "^8.0.3", + "eslint-plugin-react": "^7.5.1", + "react": "15.x", + "react-copy-to-clipboard": "^4.2.3", + "react-dom": "15.x", + "eslint": "^4.13.1", + "eslint-plugin-babel": "^4.1.1", + "eslint-plugin-import": "^2.8.0", + "eslint-config-airbnb": "^16.1.0", + "eslint-plugin-jsx-a11y": "^6.0.3", + "@icedesign/demo-layout": "^0.1.0" + }, + "blockConfig": { + "name": "brand-show-case", + "description": "", + "chinese": "品牌展示", + "category": "info-display", + "snapshot": "https://img.alicdn.com/tfs/TB1DGFejr_I8KJjy1XaXXbsxpXa-1910-860.png", + "sketchURL": "", + "icelandURL": "", + "themePackage": "@icedesign/skin" + } +} diff --git a/templates/ice-design/blocks/BrandShowCase/src/BrandShowCase.jsx b/templates/ice-design/blocks/BrandShowCase/src/BrandShowCase.jsx new file mode 100644 index 0000000000..377a18070c --- /dev/null +++ b/templates/ice-design/blocks/BrandShowCase/src/BrandShowCase.jsx @@ -0,0 +1,74 @@ +import React, { Component } from 'react'; +import PropTypes from 'prop-types'; +import IceCard from '@icedesign/card'; +import './BrandShowCase.scss'; + +const generatorData = (count) => { + return Array.from({ length: count }).map((item, index) => { + return { + imgUrl: + 'https://img.alicdn.com/tfs/TB1rnNcjr_I8KJjy1XaXXbsxpXa-603-474.png' + }; + }); +}; + +export default class BrandShowCase extends Component { + static displayName = 'BrandShowCase'; + + static propTypes = {}; + + static defaultProps = {}; + + constructor(props) { + super(props); + this.state = {}; + } + + // ICE: React Component 的生命周期 + // http://ice.alibaba-inc.com/docs/guide/intro-react#React-组件的生命周期 + componentWillMount() {} + + componentDidMount() {} + + componentWillReceiveProps(nextProps, nextContext) {} + + shouldComponentUpdate(nextProps, nextState) { + return true; + } + + componentWillUnmount() {} + + render() { + const data = generatorData(12); + return ( +
+ +
+

品牌展示

+

+ 广义的“品牌”是具有经济价值的无形资产,用抽象化的、特有的、能识别的心智概念来表现其差异性,从而在人们的意识当中占据一定位置的综合反映。品牌建设具有长期性 +

+
+
+ {data.map((item, index) => { + return ( +
+ +
+ ); + })} +
+
+
+ ); + } +} + +const styles = { + head: { width: '50%', margin: '0 auto' }, + title: { textAlign: 'center', fontSize: '28px' }, + intro: { textAlign: 'center', color: '#999' }, + items: { display: 'flex', flexWrap: 'wrap', margin: '30px 0' }, + item: { width: '16.66%', margin: '10px 0', textAlign: 'center' }, + image: { width: '100px', height: '80px' } +}; diff --git a/templates/ice-design/blocks/BrandShowCase/src/BrandShowCase.scss b/templates/ice-design/blocks/BrandShowCase/src/BrandShowCase.scss new file mode 100644 index 0000000000..3815870707 --- /dev/null +++ b/templates/ice-design/blocks/BrandShowCase/src/BrandShowCase.scss @@ -0,0 +1,5 @@ +@charset "UTF-8"; + +.brand-show-case { + +} diff --git a/templates/ice-design/blocks/BrandShowCase/src/index.js b/templates/ice-design/blocks/BrandShowCase/src/index.js new file mode 100644 index 0000000000..5dd8d2c3b0 --- /dev/null +++ b/templates/ice-design/blocks/BrandShowCase/src/index.js @@ -0,0 +1,3 @@ +import BrandShowCase from './BrandShowCase'; + +export default BrandShowCase; diff --git a/templates/ice-design/blocks/ChartArea/.editorconfig b/templates/ice-design/blocks/ChartArea/.editorconfig new file mode 100644 index 0000000000..22ef5ace54 --- /dev/null +++ b/templates/ice-design/blocks/ChartArea/.editorconfig @@ -0,0 +1,16 @@ +# http://editorconfig.org +root = true + +[*] +indent_style = space +indent_size = 2 +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false + +[makefile] +indent_style = tab +indent_size = 4 diff --git a/templates/ice-design/blocks/ChartArea/.eslintignore b/templates/ice-design/blocks/ChartArea/.eslintignore new file mode 100644 index 0000000000..3b21308fc7 --- /dev/null +++ b/templates/ice-design/blocks/ChartArea/.eslintignore @@ -0,0 +1,12 @@ +# 忽略目录 +build/ +tests/ +demo/ +lib/ + +# node 覆盖率文件 +coverage/ + +# 忽略文件 +**/*-min.js +**/*.min.js \ No newline at end of file diff --git a/templates/ice-design/blocks/ChartArea/.eslintrc b/templates/ice-design/blocks/ChartArea/.eslintrc new file mode 100644 index 0000000000..7a4e5bac48 --- /dev/null +++ b/templates/ice-design/blocks/ChartArea/.eslintrc @@ -0,0 +1,62 @@ +{ + "root": true, + "parser": "babel-eslint", + "extends": "eslint-config-airbnb", + "parserOptions": { + "ecmaVersion": 6, + "ecmaFeatures": { + "jsx": true, + "experimentalObjectRestSpread": true + } + }, + "env": { + "browser": true + }, + "plugins": [ + "react", + "babel" + ], + "rules": { + "react/forbid-prop-types": 0, + "jsx-a11y/label-has-for": 0, + "jsx-a11y/no-static-element-interactions": 0, + "jsx-a11y/anchor-has-content": 0, + "jsx-a11y/click-events-have-key-events": 0, + "jsx-a11y/anchor-is-valid": 0, + "react/no-array-index-key": 0, + "func-names": 0, + "arrow-body-style": 0, + "no-use-before-define": 0, + "react/sort-comp": 0, + "react/prop-types": 0, + "react/jsx-first-prop-new-line": 0, + "react/jsx-filename-extension": [ + 1, + { + "extensions": [ + ".js", + ".jsx" + ] + } + ], + "import/extensions": 0, + "import/no-unresolved": 0, + "import/no-extraneous-dependencies": 0, + "prefer-destructuring": 0, + "no-param-reassign": 0, + "no-return-assign": 0, + "max-len": 0, + "consistent-return": 0, + "no-redeclare": 0, + "react/require-extension": 0, + "react/no-danger": 0, + "comma-dangle": [ + "error", + "always-multiline" + ], + "function-paren-newline": 0, + "object-curly-newline": 0, + "no-restricted-globals": 0, + "react/prefer-stateless-function": 0 + } +} diff --git a/templates/ice-design/blocks/ChartArea/.gitignore b/templates/ice-design/blocks/ChartArea/.gitignore new file mode 100644 index 0000000000..5945feea3c --- /dev/null +++ b/templates/ice-design/blocks/ChartArea/.gitignore @@ -0,0 +1,14 @@ + + *.swp + *.dia~ + .idea/ + .DS_Store + + npm-debug.log + yarn-error.log + node_modules/ + tmp/ + + # happypack 缓存 + .happypack + \ No newline at end of file diff --git a/templates/ice-design/blocks/ChartArea/README.md b/templates/ice-design/blocks/ChartArea/README.md new file mode 100644 index 0000000000..a33494f3f1 --- /dev/null +++ b/templates/ice-design/blocks/ChartArea/README.md @@ -0,0 +1,10 @@ +# chart-area + +简介:面积图 + +![截图](https://img.alicdn.com/tfs/TB1tF0DivDH8KJjy1XcXXcpdXXa-1910-1040.png) + +## 更多 + +* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) +* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) diff --git a/templates/ice-design/blocks/ChartArea/demo/index.html b/templates/ice-design/blocks/ChartArea/demo/index.html new file mode 100644 index 0000000000..9d2d3a663d --- /dev/null +++ b/templates/ice-design/blocks/ChartArea/demo/index.html @@ -0,0 +1,19 @@ + + + + + + + + Document + + + + +
+ + + + + + diff --git a/templates/ice-design/blocks/ChartArea/demo/index.js b/templates/ice-design/blocks/ChartArea/demo/index.js new file mode 100644 index 0000000000..178a766115 --- /dev/null +++ b/templates/ice-design/blocks/ChartArea/demo/index.js @@ -0,0 +1,19 @@ +import React, {Component} from 'react'; +import {render} from 'react-dom'; + +// 载入默认全局样式 normalize 、.clearfix 和一些 mixin 方法等 +import '@icedesign/base/lib/_components/@alife/next-core/lib/index.scss'; + +import DemoLayout from '@icedesign/demo-layout'; +import Block from '../src'; + +const props = { + // ... +}; + +render( + + + , + document.querySelector('#mountNode') +); diff --git a/templates/ice-design/blocks/ChartArea/lib/ChartArea.js b/templates/ice-design/blocks/ChartArea/lib/ChartArea.js new file mode 100644 index 0000000000..2fc5ea2528 --- /dev/null +++ b/templates/ice-design/blocks/ChartArea/lib/ChartArea.js @@ -0,0 +1,113 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = undefined; + +var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + +var _class, _temp; + +var _react = require('react'); + +var _react2 = _interopRequireDefault(_react); + +var _bizcharts = require('bizcharts'); + +var _dataSet = require('@antv/data-set'); + +var _card = require('@icedesign/card'); + +var _card2 = _interopRequireDefault(_card); + +require('./ChartArea.scss'); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } + +var ChartArea = (_temp = _class = function (_Component) { + _inherits(ChartArea, _Component); + + function ChartArea(props) { + _classCallCheck(this, ChartArea); + + var _this = _possibleConstructorReturn(this, (ChartArea.__proto__ || Object.getPrototypeOf(ChartArea)).call(this, props)); + + _this.state = {}; + return _this; + } + + _createClass(ChartArea, [{ + key: 'render', + value: function render() { + // 参考:https://alibaba.github.io/BizCharts/ + var data = [{ year: '1996', north: 322, south: 162 }, { year: '1997', north: 324, south: 90 }, { year: '1998', north: 329, south: 50 }, { year: '1999', north: 342, south: 77 }, { year: '2000', north: 348, south: 35 }, { year: '2001', north: 334, south: -45 }, { year: '2002', north: 325, south: -88 }, { year: '2003', north: 316, south: -120 }, { year: '2004', north: 318, south: -156 }, { year: '2005', north: 330, south: -123 }, { year: '2006', north: 355, south: -88 }, { year: '2007', north: 366, south: -66 }, { year: '2008', north: 337, south: -45 }, { year: '2009', north: 352, south: -29 }, { year: '2010', north: 377, south: -45 }, { year: '2011', north: 383, south: -88 }, { year: '2012', north: 344, south: -132 }, { year: '2013', north: 366, south: -146 }, { year: '2014', north: 389, south: -169 }, { year: '2015', north: 334, south: -184 }]; + + var dv = new _dataSet.DataView().source(data); + dv.transform({ + type: 'fold', + fields: ['north', 'south'], // 展开字段集 + key: 'type', // key字段 + value: 'value' // value字段 + }); + + var cols = { + year: { + range: [0, 1] + } + }; + + return _react2.default.createElement( + 'div', + { className: 'chart-area' }, + _react2.default.createElement( + _card2.default, + null, + _react2.default.createElement( + 'h4', + { style: styles.title }, + '\u9762\u79EF\u56FE' + ), + _react2.default.createElement( + _bizcharts.Chart, + { height: 400, data: dv, scale: cols, forceFit: true }, + _react2.default.createElement(_bizcharts.Axis, { name: 'year' }), + _react2.default.createElement(_bizcharts.Axis, { + name: 'value', + label: { + formatter: function formatter(val) { + return (val / 10000).toFixed(1) + 'k'; + } + } + }), + _react2.default.createElement(_bizcharts.Legend, null), + _react2.default.createElement(_bizcharts.Tooltip, { crosshairs: { type: 'line' } }), + _react2.default.createElement(_bizcharts.Geom, { type: 'area', position: 'year*value', color: 'type' }), + _react2.default.createElement(_bizcharts.Geom, { type: 'line', position: 'year*value', size: 2, color: 'type' }) + ) + ) + ); + } + }]); + + return ChartArea; +}(_react.Component), _class.displayName = 'ChartArea', _class.propTypes = {}, _class.defaultProps = {}, _temp); +exports.default = ChartArea; + + +var styles = { + title: { + margin: '0 0 40px', + fontSize: '18px', + paddingBottom: '15px', + fontWeight: 'bold', + borderBottom: '1px solid #eee' + } +}; +module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/ChartArea/lib/ChartArea.scss b/templates/ice-design/blocks/ChartArea/lib/ChartArea.scss new file mode 100644 index 0000000000..4b1ec6c084 --- /dev/null +++ b/templates/ice-design/blocks/ChartArea/lib/ChartArea.scss @@ -0,0 +1,5 @@ +@charset "UTF-8"; + +.chart-area { + +} diff --git a/templates/ice-design/blocks/ChartArea/lib/index.js b/templates/ice-design/blocks/ChartArea/lib/index.js new file mode 100644 index 0000000000..e1778a8347 --- /dev/null +++ b/templates/ice-design/blocks/ChartArea/lib/index.js @@ -0,0 +1,14 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _ChartArea = require('./ChartArea'); + +var _ChartArea2 = _interopRequireDefault(_ChartArea); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +exports.default = _ChartArea2.default; +module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/ChartArea/mock/api.json b/templates/ice-design/blocks/ChartArea/mock/api.json new file mode 100644 index 0000000000..e706430232 --- /dev/null +++ b/templates/ice-design/blocks/ChartArea/mock/api.json @@ -0,0 +1,4 @@ +{ + "status": "success", + "data": {} +} diff --git a/templates/ice-design/blocks/ChartArea/package.json b/templates/ice-design/blocks/ChartArea/package.json new file mode 100644 index 0000000000..95cecedc4d --- /dev/null +++ b/templates/ice-design/blocks/ChartArea/package.json @@ -0,0 +1,56 @@ +{ + "name": "@icedesign/chart-area-block", + "version": "0.1.0", + "description": "", + "files": [ + "src/", + "demo/", + "lib/", + "mock/" + ], + "author": { + "name": "ICE Team", + "email": "ice-admin@alibaba-inc.com" + }, + "repository": { + "type": "git", + "url": "https://github.com/alibaba/ice" + }, + "license": "MIT", + "keywords": [ + "ice", + "ice-block" + ], + "dependencies": { + "@antv/data-set": "^0.8.0", + "bizcharts": "^3.0.5", + "prop-types": "^15.5.8", + "@icedesign/base": "^0.1.0", + "@icedesign/card": "^0.1.0" + }, + "devDependencies": { + "babel-eslint": "^8.0.3", + "eslint": "^4.13.1", + "eslint-plugin-babel": "^4.1.1", + "eslint-plugin-react": "^7.5.1", + "@icedesign/demo-layout": "^0.1.0", + "eslint-plugin-import": "^2.8.0", + "eslint-config-airbnb": "^16.1.0", + "eslint-plugin-jsx-a11y": "^6.0.3", + "@icedesign/skin": "^0.1.2" + }, + "blockConfig": { + "name": "chart-area", + "description": "", + "chinese": "面积图", + "category": "chart", + "snapshot": "https://img.alicdn.com/tfs/TB1tF0DivDH8KJjy1XcXXcpdXXa-1910-1040.png", + "sketchURL": "", + "icelandURL": "", + "themePackage": "@icedesign/skin" + }, + "scripts": { + "lint": "eslint . --ext '.js,.jsx' --fix", + "prepublish": "npm run lint" + } +} diff --git a/templates/ice-design/blocks/ChartArea/src/ChartArea.jsx b/templates/ice-design/blocks/ChartArea/src/ChartArea.jsx new file mode 100644 index 0000000000..1ca3ef41b0 --- /dev/null +++ b/templates/ice-design/blocks/ChartArea/src/ChartArea.jsx @@ -0,0 +1,91 @@ +import React, { Component } from 'react'; +import { Chart, Geom, Axis, Tooltip, Legend } from 'bizcharts'; +import { DataView } from '@antv/data-set'; +import IceCard from '@icedesign/card'; +import './ChartArea.scss'; + +export default class ChartArea extends Component { + static displayName = 'ChartArea'; + + static propTypes = {}; + + static defaultProps = {}; + + constructor(props) { + super(props); + this.state = {}; + } + + render() { + // 参考:https://alibaba.github.io/BizCharts/ + const data = [ + { year: '1996', north: 322, south: 162 }, + { year: '1997', north: 324, south: 90 }, + { year: '1998', north: 329, south: 50 }, + { year: '1999', north: 342, south: 77 }, + { year: '2000', north: 348, south: 35 }, + { year: '2001', north: 334, south: -45 }, + { year: '2002', north: 325, south: -88 }, + { year: '2003', north: 316, south: -120 }, + { year: '2004', north: 318, south: -156 }, + { year: '2005', north: 330, south: -123 }, + { year: '2006', north: 355, south: -88 }, + { year: '2007', north: 366, south: -66 }, + { year: '2008', north: 337, south: -45 }, + { year: '2009', north: 352, south: -29 }, + { year: '2010', north: 377, south: -45 }, + { year: '2011', north: 383, south: -88 }, + { year: '2012', north: 344, south: -132 }, + { year: '2013', north: 366, south: -146 }, + { year: '2014', north: 389, south: -169 }, + { year: '2015', north: 334, south: -184 }, + ]; + + const dv = new DataView().source(data); + dv.transform({ + type: 'fold', + fields: ['north', 'south'], // 展开字段集 + key: 'type', // key字段 + value: 'value', // value字段 + }); + + const cols = { + year: { + range: [0, 1], + }, + }; + + return ( +
+ +

面积图

+ + + { + return `${(val / 10000).toFixed(1)}k`; + }, + }} + /> + + + + + +
+
+ ); + } +} + +const styles = { + title: { + margin: '0 0 40px', + fontSize: '18px', + paddingBottom: '15px', + fontWeight: 'bold', + borderBottom: '1px solid #eee', + }, +}; diff --git a/templates/ice-design/blocks/ChartArea/src/ChartArea.scss b/templates/ice-design/blocks/ChartArea/src/ChartArea.scss new file mode 100644 index 0000000000..4b1ec6c084 --- /dev/null +++ b/templates/ice-design/blocks/ChartArea/src/ChartArea.scss @@ -0,0 +1,5 @@ +@charset "UTF-8"; + +.chart-area { + +} diff --git a/templates/ice-design/blocks/ChartArea/src/index.js b/templates/ice-design/blocks/ChartArea/src/index.js new file mode 100644 index 0000000000..ee2ba58c8b --- /dev/null +++ b/templates/ice-design/blocks/ChartArea/src/index.js @@ -0,0 +1,3 @@ +import ChartArea from './ChartArea'; + +export default ChartArea; diff --git a/templates/ice-design/blocks/ChartBar/.editorconfig b/templates/ice-design/blocks/ChartBar/.editorconfig new file mode 100644 index 0000000000..22ef5ace54 --- /dev/null +++ b/templates/ice-design/blocks/ChartBar/.editorconfig @@ -0,0 +1,16 @@ +# http://editorconfig.org +root = true + +[*] +indent_style = space +indent_size = 2 +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false + +[makefile] +indent_style = tab +indent_size = 4 diff --git a/templates/ice-design/blocks/ChartBar/.eslintignore b/templates/ice-design/blocks/ChartBar/.eslintignore new file mode 100644 index 0000000000..3b21308fc7 --- /dev/null +++ b/templates/ice-design/blocks/ChartBar/.eslintignore @@ -0,0 +1,12 @@ +# 忽略目录 +build/ +tests/ +demo/ +lib/ + +# node 覆盖率文件 +coverage/ + +# 忽略文件 +**/*-min.js +**/*.min.js \ No newline at end of file diff --git a/templates/ice-design/blocks/ChartBar/.eslintrc b/templates/ice-design/blocks/ChartBar/.eslintrc new file mode 100644 index 0000000000..7a4e5bac48 --- /dev/null +++ b/templates/ice-design/blocks/ChartBar/.eslintrc @@ -0,0 +1,62 @@ +{ + "root": true, + "parser": "babel-eslint", + "extends": "eslint-config-airbnb", + "parserOptions": { + "ecmaVersion": 6, + "ecmaFeatures": { + "jsx": true, + "experimentalObjectRestSpread": true + } + }, + "env": { + "browser": true + }, + "plugins": [ + "react", + "babel" + ], + "rules": { + "react/forbid-prop-types": 0, + "jsx-a11y/label-has-for": 0, + "jsx-a11y/no-static-element-interactions": 0, + "jsx-a11y/anchor-has-content": 0, + "jsx-a11y/click-events-have-key-events": 0, + "jsx-a11y/anchor-is-valid": 0, + "react/no-array-index-key": 0, + "func-names": 0, + "arrow-body-style": 0, + "no-use-before-define": 0, + "react/sort-comp": 0, + "react/prop-types": 0, + "react/jsx-first-prop-new-line": 0, + "react/jsx-filename-extension": [ + 1, + { + "extensions": [ + ".js", + ".jsx" + ] + } + ], + "import/extensions": 0, + "import/no-unresolved": 0, + "import/no-extraneous-dependencies": 0, + "prefer-destructuring": 0, + "no-param-reassign": 0, + "no-return-assign": 0, + "max-len": 0, + "consistent-return": 0, + "no-redeclare": 0, + "react/require-extension": 0, + "react/no-danger": 0, + "comma-dangle": [ + "error", + "always-multiline" + ], + "function-paren-newline": 0, + "object-curly-newline": 0, + "no-restricted-globals": 0, + "react/prefer-stateless-function": 0 + } +} diff --git a/templates/ice-design/blocks/ChartBar/.gitignore b/templates/ice-design/blocks/ChartBar/.gitignore new file mode 100644 index 0000000000..5945feea3c --- /dev/null +++ b/templates/ice-design/blocks/ChartBar/.gitignore @@ -0,0 +1,14 @@ + + *.swp + *.dia~ + .idea/ + .DS_Store + + npm-debug.log + yarn-error.log + node_modules/ + tmp/ + + # happypack 缓存 + .happypack + \ No newline at end of file diff --git a/templates/ice-design/blocks/ChartBar/README.md b/templates/ice-design/blocks/ChartBar/README.md new file mode 100644 index 0000000000..d2e163b8ca --- /dev/null +++ b/templates/ice-design/blocks/ChartBar/README.md @@ -0,0 +1,10 @@ +# chart-bar + +简介:柱状图 + +![截图](https://img.alicdn.com/tfs/TB1IdeWf5qAXuNjy1XdXXaYcVXa-1900-1042.png) + +## 更多 + +* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) +* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) diff --git a/templates/ice-design/blocks/ChartBar/demo/index.html b/templates/ice-design/blocks/ChartBar/demo/index.html new file mode 100644 index 0000000000..9d2d3a663d --- /dev/null +++ b/templates/ice-design/blocks/ChartBar/demo/index.html @@ -0,0 +1,19 @@ + + + + + + + + Document + + + + +
+ + + + + + diff --git a/templates/ice-design/blocks/ChartBar/demo/index.js b/templates/ice-design/blocks/ChartBar/demo/index.js new file mode 100644 index 0000000000..178a766115 --- /dev/null +++ b/templates/ice-design/blocks/ChartBar/demo/index.js @@ -0,0 +1,19 @@ +import React, {Component} from 'react'; +import {render} from 'react-dom'; + +// 载入默认全局样式 normalize 、.clearfix 和一些 mixin 方法等 +import '@icedesign/base/lib/_components/@alife/next-core/lib/index.scss'; + +import DemoLayout from '@icedesign/demo-layout'; +import Block from '../src'; + +const props = { + // ... +}; + +render( + + + , + document.querySelector('#mountNode') +); diff --git a/templates/ice-design/blocks/ChartBar/lib/ChartBar.js b/templates/ice-design/blocks/ChartBar/lib/ChartBar.js new file mode 100644 index 0000000000..90f72db8be --- /dev/null +++ b/templates/ice-design/blocks/ChartBar/lib/ChartBar.js @@ -0,0 +1,124 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = undefined; + +var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + +var _class, _temp; + +var _react = require('react'); + +var _react2 = _interopRequireDefault(_react); + +var _card = require('@icedesign/card'); + +var _card2 = _interopRequireDefault(_card); + +var _bizcharts = require('bizcharts'); + +var _dataSet = require('@antv/data-set'); + +require('./ChartBar.scss'); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } + +var ChartBar = (_temp = _class = function (_Component) { + _inherits(ChartBar, _Component); + + function ChartBar(props) { + _classCallCheck(this, ChartBar); + + var _this = _possibleConstructorReturn(this, (ChartBar.__proto__ || Object.getPrototypeOf(ChartBar)).call(this, props)); + + _this.state = {}; + return _this; + } + + _createClass(ChartBar, [{ + key: 'render', + value: function render() { + var data = [{ + name: 'London', + 'Jan.': 18.9, + 'Feb.': 28.8, + 'Mar.': 39.3, + 'Apr.': 81.4, + May: 47, + 'Jun.': 20.3, + 'Jul.': 24, + 'Aug.': 35.6 + }, { + name: 'Berlin', + 'Jan.': 12.4, + 'Feb.': 23.2, + 'Mar.': 34.5, + 'Apr.': 99.7, + May: 52.6, + 'Jun.': 35.5, + 'Jul.': 37.4, + 'Aug.': 42.4 + }]; + + var ds = new _dataSet.DataSet(); + var dv = ds.createView().source(data); + dv.transform({ + type: 'fold', + fields: ['Jan.', 'Feb.', 'Mar.', 'Apr.', 'May', 'Jun.', 'Jul.', 'Aug.'], // 展开字段集 + key: '月份', // key字段 + value: '月均降雨量' // value字段 + }); + + return _react2.default.createElement( + 'div', + { className: 'chart-bar' }, + _react2.default.createElement( + _card2.default, + null, + _react2.default.createElement( + 'h4', + { style: styles.title }, + '\u67F1\u72B6\u56FE' + ), + _react2.default.createElement( + _bizcharts.Chart, + { height: 400, data: dv, forceFit: true }, + _react2.default.createElement(_bizcharts.Axis, { name: '\u6708\u4EFD' }), + _react2.default.createElement(_bizcharts.Axis, { name: '\u6708\u5747\u964D\u96E8\u91CF' }), + _react2.default.createElement(_bizcharts.Legend, null), + _react2.default.createElement(_bizcharts.Tooltip, { crosshairs: { type: 'y' } }), + _react2.default.createElement(_bizcharts.Geom, { + type: 'interval', + position: '\u6708\u4EFD*\u6708\u5747\u964D\u96E8\u91CF', + color: 'name', + adjust: [{ type: 'dodge', marginRatio: 1 / 32 }] + }) + ) + ) + ); + } + }]); + + return ChartBar; +}(_react.Component), _class.displayName = 'ChartBar', _class.propTypes = {}, _class.defaultProps = {}, _temp); +exports.default = ChartBar; + + +var styles = { + title: { + margin: '0 0 40px', + fontSize: '18px', + paddingBottom: '15px', + fontWeight: 'bold', + borderBottom: '1px solid #eee' + } +}; +module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/ChartBar/lib/ChartBar.scss b/templates/ice-design/blocks/ChartBar/lib/ChartBar.scss new file mode 100644 index 0000000000..5e5812da20 --- /dev/null +++ b/templates/ice-design/blocks/ChartBar/lib/ChartBar.scss @@ -0,0 +1,5 @@ +@charset "UTF-8"; + +.chart-bar { + +} diff --git a/templates/ice-design/blocks/ChartBar/lib/index.js b/templates/ice-design/blocks/ChartBar/lib/index.js new file mode 100644 index 0000000000..80799ae7cc --- /dev/null +++ b/templates/ice-design/blocks/ChartBar/lib/index.js @@ -0,0 +1,14 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _ChartBar = require('./ChartBar'); + +var _ChartBar2 = _interopRequireDefault(_ChartBar); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +exports.default = _ChartBar2.default; +module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/ChartBar/mock/api.json b/templates/ice-design/blocks/ChartBar/mock/api.json new file mode 100644 index 0000000000..e706430232 --- /dev/null +++ b/templates/ice-design/blocks/ChartBar/mock/api.json @@ -0,0 +1,4 @@ +{ + "status": "success", + "data": {} +} diff --git a/templates/ice-design/blocks/ChartBar/package.json b/templates/ice-design/blocks/ChartBar/package.json new file mode 100644 index 0000000000..434d73d67d --- /dev/null +++ b/templates/ice-design/blocks/ChartBar/package.json @@ -0,0 +1,56 @@ +{ + "name": "@icedesign/chart-bar-block", + "version": "0.1.0", + "description": "", + "files": [ + "src/", + "demo/", + "lib/", + "mock/" + ], + "author": { + "name": "ICE Team", + "email": "ice-admin@alibaba-inc.com" + }, + "repository": { + "type": "git", + "url": "https://github.com/alibaba/ice" + }, + "license": "MIT", + "keywords": [ + "ice", + "ice-block" + ], + "dependencies": { + "@antv/data-set": "^0.8.0", + "bizcharts": "^3.0.5", + "prop-types": "^15.5.8", + "@icedesign/base": "^0.1.0", + "@icedesign/card": "^0.1.0" + }, + "devDependencies": { + "babel-eslint": "^8.0.3", + "eslint": "^4.13.1", + "eslint-plugin-babel": "^4.1.1", + "eslint-plugin-react": "^7.5.1", + "@icedesign/demo-layout": "^0.1.0", + "eslint-plugin-import": "^2.8.0", + "eslint-config-airbnb": "^16.1.0", + "eslint-plugin-jsx-a11y": "^6.0.3", + "@icedesign/skin": "^0.1.2" + }, + "blockConfig": { + "name": "chart-bar", + "description": "", + "chinese": "柱状图", + "category": "chart", + "snapshot": "https://img.alicdn.com/tfs/TB1IdeWf5qAXuNjy1XdXXaYcVXa-1900-1042.png", + "sketchURL": "", + "icelandURL": "", + "themePackage": "@icedesign/skin" + }, + "scripts": { + "lint": "eslint . --ext '.js,.jsx' --fix", + "prepublish": "npm run lint" + } +} diff --git a/templates/ice-design/blocks/ChartBar/src/ChartBar.jsx b/templates/ice-design/blocks/ChartBar/src/ChartBar.jsx new file mode 100644 index 0000000000..6e06cc8d1e --- /dev/null +++ b/templates/ice-design/blocks/ChartBar/src/ChartBar.jsx @@ -0,0 +1,84 @@ +import React, { Component } from 'react'; +import IceCard from '@icedesign/card'; +import { Chart, Axis, Geom, Tooltip, Legend } from 'bizcharts'; +import { DataSet } from '@antv/data-set'; +import './ChartBar.scss'; + +export default class ChartBar extends Component { + static displayName = 'ChartBar'; + + static propTypes = {}; + + static defaultProps = {}; + + constructor(props) { + super(props); + this.state = {}; + } + + render() { + const data = [ + { + name: 'London', + 'Jan.': 18.9, + 'Feb.': 28.8, + 'Mar.': 39.3, + 'Apr.': 81.4, + May: 47, + 'Jun.': 20.3, + 'Jul.': 24, + 'Aug.': 35.6, + }, + { + name: 'Berlin', + 'Jan.': 12.4, + 'Feb.': 23.2, + 'Mar.': 34.5, + 'Apr.': 99.7, + May: 52.6, + 'Jun.': 35.5, + 'Jul.': 37.4, + 'Aug.': 42.4, + }, + ]; + + const ds = new DataSet(); + const dv = ds.createView().source(data); + dv.transform({ + type: 'fold', + fields: ['Jan.', 'Feb.', 'Mar.', 'Apr.', 'May', 'Jun.', 'Jul.', 'Aug.'], // 展开字段集 + key: '月份', // key字段 + value: '月均降雨量', // value字段 + }); + + return ( +
+ +

柱状图

+ + + + + + + +
+
+ ); + } +} + +const styles = { + title: { + margin: '0 0 40px', + fontSize: '18px', + paddingBottom: '15px', + fontWeight: 'bold', + borderBottom: '1px solid #eee', + }, +}; diff --git a/templates/ice-design/blocks/ChartBar/src/ChartBar.scss b/templates/ice-design/blocks/ChartBar/src/ChartBar.scss new file mode 100644 index 0000000000..5e5812da20 --- /dev/null +++ b/templates/ice-design/blocks/ChartBar/src/ChartBar.scss @@ -0,0 +1,5 @@ +@charset "UTF-8"; + +.chart-bar { + +} diff --git a/templates/ice-design/blocks/ChartBar/src/index.js b/templates/ice-design/blocks/ChartBar/src/index.js new file mode 100644 index 0000000000..f00255f5ca --- /dev/null +++ b/templates/ice-design/blocks/ChartBar/src/index.js @@ -0,0 +1,3 @@ +import ChartBar from './ChartBar'; + +export default ChartBar; diff --git a/templates/ice-design/blocks/ChartBox/.editorconfig b/templates/ice-design/blocks/ChartBox/.editorconfig new file mode 100644 index 0000000000..22ef5ace54 --- /dev/null +++ b/templates/ice-design/blocks/ChartBox/.editorconfig @@ -0,0 +1,16 @@ +# http://editorconfig.org +root = true + +[*] +indent_style = space +indent_size = 2 +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false + +[makefile] +indent_style = tab +indent_size = 4 diff --git a/templates/ice-design/blocks/ChartBox/.eslintignore b/templates/ice-design/blocks/ChartBox/.eslintignore new file mode 100644 index 0000000000..3b21308fc7 --- /dev/null +++ b/templates/ice-design/blocks/ChartBox/.eslintignore @@ -0,0 +1,12 @@ +# 忽略目录 +build/ +tests/ +demo/ +lib/ + +# node 覆盖率文件 +coverage/ + +# 忽略文件 +**/*-min.js +**/*.min.js \ No newline at end of file diff --git a/templates/ice-design/blocks/ChartBox/.eslintrc b/templates/ice-design/blocks/ChartBox/.eslintrc new file mode 100644 index 0000000000..7a4e5bac48 --- /dev/null +++ b/templates/ice-design/blocks/ChartBox/.eslintrc @@ -0,0 +1,62 @@ +{ + "root": true, + "parser": "babel-eslint", + "extends": "eslint-config-airbnb", + "parserOptions": { + "ecmaVersion": 6, + "ecmaFeatures": { + "jsx": true, + "experimentalObjectRestSpread": true + } + }, + "env": { + "browser": true + }, + "plugins": [ + "react", + "babel" + ], + "rules": { + "react/forbid-prop-types": 0, + "jsx-a11y/label-has-for": 0, + "jsx-a11y/no-static-element-interactions": 0, + "jsx-a11y/anchor-has-content": 0, + "jsx-a11y/click-events-have-key-events": 0, + "jsx-a11y/anchor-is-valid": 0, + "react/no-array-index-key": 0, + "func-names": 0, + "arrow-body-style": 0, + "no-use-before-define": 0, + "react/sort-comp": 0, + "react/prop-types": 0, + "react/jsx-first-prop-new-line": 0, + "react/jsx-filename-extension": [ + 1, + { + "extensions": [ + ".js", + ".jsx" + ] + } + ], + "import/extensions": 0, + "import/no-unresolved": 0, + "import/no-extraneous-dependencies": 0, + "prefer-destructuring": 0, + "no-param-reassign": 0, + "no-return-assign": 0, + "max-len": 0, + "consistent-return": 0, + "no-redeclare": 0, + "react/require-extension": 0, + "react/no-danger": 0, + "comma-dangle": [ + "error", + "always-multiline" + ], + "function-paren-newline": 0, + "object-curly-newline": 0, + "no-restricted-globals": 0, + "react/prefer-stateless-function": 0 + } +} diff --git a/templates/ice-design/blocks/ChartBox/.gitignore b/templates/ice-design/blocks/ChartBox/.gitignore new file mode 100644 index 0000000000..5945feea3c --- /dev/null +++ b/templates/ice-design/blocks/ChartBox/.gitignore @@ -0,0 +1,14 @@ + + *.swp + *.dia~ + .idea/ + .DS_Store + + npm-debug.log + yarn-error.log + node_modules/ + tmp/ + + # happypack 缓存 + .happypack + \ No newline at end of file diff --git a/templates/ice-design/blocks/ChartBox/README.md b/templates/ice-design/blocks/ChartBox/README.md new file mode 100644 index 0000000000..8f2fe8adb1 --- /dev/null +++ b/templates/ice-design/blocks/ChartBox/README.md @@ -0,0 +1,10 @@ +# chart-box + +简介:箱型图 + +![截图](https://img.alicdn.com/tfs/TB1nR5Wf5qAXuNjy1XdXXaYcVXa-1902-1036.png) + +## 更多 + +* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) +* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) diff --git a/templates/ice-design/blocks/ChartBox/demo/index.html b/templates/ice-design/blocks/ChartBox/demo/index.html new file mode 100644 index 0000000000..9d2d3a663d --- /dev/null +++ b/templates/ice-design/blocks/ChartBox/demo/index.html @@ -0,0 +1,19 @@ + + + + + + + + Document + + + + +
+ + + + + + diff --git a/templates/ice-design/blocks/ChartBox/demo/index.js b/templates/ice-design/blocks/ChartBox/demo/index.js new file mode 100644 index 0000000000..178a766115 --- /dev/null +++ b/templates/ice-design/blocks/ChartBox/demo/index.js @@ -0,0 +1,19 @@ +import React, {Component} from 'react'; +import {render} from 'react-dom'; + +// 载入默认全局样式 normalize 、.clearfix 和一些 mixin 方法等 +import '@icedesign/base/lib/_components/@alife/next-core/lib/index.scss'; + +import DemoLayout from '@icedesign/demo-layout'; +import Block from '../src'; + +const props = { + // ... +}; + +render( + + + , + document.querySelector('#mountNode') +); diff --git a/templates/ice-design/blocks/ChartBox/lib/ChartBox.js b/templates/ice-design/blocks/ChartBox/lib/ChartBox.js new file mode 100644 index 0000000000..9a68fab232 --- /dev/null +++ b/templates/ice-design/blocks/ChartBox/lib/ChartBox.js @@ -0,0 +1,219 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = undefined; + +var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + +var _class, _temp; + +var _react = require('react'); + +var _react2 = _interopRequireDefault(_react); + +var _card = require('@icedesign/card'); + +var _card2 = _interopRequireDefault(_card); + +var _bizcharts = require('bizcharts'); + +var _dataSet = require('@antv/data-set'); + +require('./ChartBox.scss'); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } + +var ChartBox = (_temp = _class = function (_Component) { + _inherits(ChartBox, _Component); + + function ChartBox(props) { + _classCallCheck(this, ChartBox); + + var _this = _possibleConstructorReturn(this, (ChartBox.__proto__ || Object.getPrototypeOf(ChartBox)).call(this, props)); + + _this.state = {}; + return _this; + } + + _createClass(ChartBox, [{ + key: 'render', + value: function render() { + // 参考:https://alibaba.github.io/BizCharts/ + var data = [{ + x: '职业 A', + low: 20000, + q1: 26000, + median: 27000, + q3: 32000, + high: 38000, + outliers: [50000, 52000] + }, { + x: '职业 B', + low: 40000, + q1: 49000, + median: 62000, + q3: 73000, + high: 88000, + outliers: [32000, 29000, 106000] + }, { + x: '职业 C', + low: 52000, + q1: 59000, + median: 65000, + q3: 74000, + high: 83000, + outliers: [91000] + }, { + x: '职业 D', + low: 58000, + q1: 96000, + median: 130000, + q3: 170000, + high: 200000, + outliers: [42000, 210000, 215000] + }, { + x: '职业 E', + low: 24000, + q1: 28000, + median: 32000, + q3: 38000, + high: 42000, + outliers: [48000] + }, { + x: '职业 F', + low: 47000, + q1: 56000, + median: 69000, + q3: 85000, + high: 100000, + outliers: [110000, 115000, 32000] + }, { + x: '职业 G', + low: 64000, + q1: 74000, + median: 83000, + q3: 93000, + high: 100000, + outliers: [110000] + }, { + x: '职业 H', + low: 67000, + q1: 72000, + median: 84000, + q3: 95000, + high: 110000, + outliers: [57000, 54000] + }]; + + var DataView = _dataSet.DataSet.DataView; + + var dv = new DataView().source(data); + dv.transform({ + type: 'map', + callback: function callback(obj) { + obj.range = [obj.low, obj.q1, obj.median, obj.q3, obj.high]; + return obj; + } + }); + + var cols = { + range: { + min: 0, + max: 240000 + }, + outliers: { + min: 0, + max: 240000 + } + }; + + return _react2.default.createElement( + 'div', + { className: 'chart-box' }, + _react2.default.createElement( + _card2.default, + null, + _react2.default.createElement( + 'h4', + { style: styles.title }, + '\u7BB1\u578B\u56FE' + ), + _react2.default.createElement( + _bizcharts.Chart, + { + height: 400, + data: dv, + scale: cols, + padding: [20, 120, 95], + forceFit: true + }, + _react2.default.createElement(_bizcharts.Axis, { name: 'x' }), + _react2.default.createElement(_bizcharts.Axis, { name: 'range' }), + _react2.default.createElement(_bizcharts.Tooltip, { + showTitle: false, + crosshairs: { + type: 'rect', + style: { fill: '#E4E8F1', fillOpacity: 0.43 } + }, + itemTpl: '
  • {name}
    \u6700\u5927\u503C\uFF1A{high}
    \u4E0A\u56DB\u5206\u4F4D\u6570\uFF1A{q3}
    \u4E2D\u4F4D\u6570\uFF1A{median}
    \u4E0B\u56DB\u5206\u4F4D\u6570\uFF1A{q1}
    \u6700\u5C0F\u503C\uFF1A{low}
  • ' + }), + _react2.default.createElement(_bizcharts.Geom, { + type: 'schema', + position: 'x*range', + shape: 'box', + tooltip: ['x*low*q1*median*q3*high', function (x, low, q1, median, q3, high) { + return { + name: x, + low: low, + q1: q1, + median: median, + q3: q3, + high: high + }; + }], + style: { + stroke: 'rgba(0, 0, 0, 0.45)', + fill: '#1890FF', + fillOpacity: 0.3 + } + }), + _react2.default.createElement( + _bizcharts.View, + { data: data }, + _react2.default.createElement(_bizcharts.Geom, { + type: 'point', + position: 'x*outliers', + shape: 'circle', + size: 3, + active: false + }) + ) + ) + ) + ); + } + }]); + + return ChartBox; +}(_react.Component), _class.displayName = 'ChartBox', _class.propTypes = {}, _class.defaultProps = {}, _temp); +exports.default = ChartBox; + + +var styles = { + title: { + margin: '0 0 40px', + fontSize: '18px', + paddingBottom: '15px', + fontWeight: 'bold', + borderBottom: '1px solid #eee' + } +}; +module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/ChartBox/lib/ChartBox.scss b/templates/ice-design/blocks/ChartBox/lib/ChartBox.scss new file mode 100644 index 0000000000..859ec7505d --- /dev/null +++ b/templates/ice-design/blocks/ChartBox/lib/ChartBox.scss @@ -0,0 +1,5 @@ +@charset "UTF-8"; + +.chart-box { + +} diff --git a/templates/ice-design/blocks/ChartBox/lib/index.js b/templates/ice-design/blocks/ChartBox/lib/index.js new file mode 100644 index 0000000000..24bcfa1647 --- /dev/null +++ b/templates/ice-design/blocks/ChartBox/lib/index.js @@ -0,0 +1,14 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _ChartBox = require('./ChartBox'); + +var _ChartBox2 = _interopRequireDefault(_ChartBox); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +exports.default = _ChartBox2.default; +module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/ChartBox/mock/api.json b/templates/ice-design/blocks/ChartBox/mock/api.json new file mode 100644 index 0000000000..e706430232 --- /dev/null +++ b/templates/ice-design/blocks/ChartBox/mock/api.json @@ -0,0 +1,4 @@ +{ + "status": "success", + "data": {} +} diff --git a/templates/ice-design/blocks/ChartBox/package.json b/templates/ice-design/blocks/ChartBox/package.json new file mode 100644 index 0000000000..c0a9dc5556 --- /dev/null +++ b/templates/ice-design/blocks/ChartBox/package.json @@ -0,0 +1,56 @@ +{ + "name": "@icedesign/chart-box-block", + "version": "0.1.0", + "description": "", + "files": [ + "src/", + "demo/", + "lib/", + "mock/" + ], + "author": { + "name": "ICE Team", + "email": "ice-admin@alibaba-inc.com" + }, + "repository": { + "type": "git", + "url": "https://github.com/alibaba/ice" + }, + "license": "MIT", + "keywords": [ + "ice", + "ice-block" + ], + "dependencies": { + "@antv/data-set": "^0.8.0", + "bizcharts": "^3.0.5", + "prop-types": "^15.5.8", + "@icedesign/base": "^0.1.0", + "@icedesign/card": "^0.1.0" + }, + "devDependencies": { + "babel-eslint": "^8.0.3", + "eslint": "^4.13.1", + "eslint-plugin-babel": "^4.1.1", + "eslint-plugin-react": "^7.5.1", + "@icedesign/demo-layout": "^0.1.0", + "eslint-plugin-import": "^2.8.0", + "eslint-config-airbnb": "^16.1.0", + "eslint-plugin-jsx-a11y": "^6.0.3", + "@icedesign/skin": "^0.1.2" + }, + "blockConfig": { + "name": "chart-box", + "description": "", + "chinese": "箱型图", + "category": "chart", + "snapshot": "https://img.alicdn.com/tfs/TB1nR5Wf5qAXuNjy1XdXXaYcVXa-1902-1036.png", + "sketchURL": "", + "icelandURL": "", + "themePackage": "@icedesign/skin" + }, + "scripts": { + "lint": "eslint . --ext '.js,.jsx' --fix", + "prepublish": "npm run lint" + } +} diff --git a/templates/ice-design/blocks/ChartBox/src/ChartBox.jsx b/templates/ice-design/blocks/ChartBox/src/ChartBox.jsx new file mode 100644 index 0000000000..0e36aa319a --- /dev/null +++ b/templates/ice-design/blocks/ChartBox/src/ChartBox.jsx @@ -0,0 +1,186 @@ +import React, { Component } from 'react'; +import IceCard from '@icedesign/card'; +import { Chart, Geom, Axis, Tooltip, View } from 'bizcharts'; +import { DataSet } from '@antv/data-set'; +import './ChartBox.scss'; + +export default class ChartBox extends Component { + static displayName = 'ChartBox'; + + static propTypes = {}; + + static defaultProps = {}; + + constructor(props) { + super(props); + this.state = {}; + } + + render() { + // 参考:https://alibaba.github.io/BizCharts/ + const data = [ + { + x: '职业 A', + low: 20000, + q1: 26000, + median: 27000, + q3: 32000, + high: 38000, + outliers: [50000, 52000], + }, + { + x: '职业 B', + low: 40000, + q1: 49000, + median: 62000, + q3: 73000, + high: 88000, + outliers: [32000, 29000, 106000], + }, + { + x: '职业 C', + low: 52000, + q1: 59000, + median: 65000, + q3: 74000, + high: 83000, + outliers: [91000], + }, + { + x: '职业 D', + low: 58000, + q1: 96000, + median: 130000, + q3: 170000, + high: 200000, + outliers: [42000, 210000, 215000], + }, + { + x: '职业 E', + low: 24000, + q1: 28000, + median: 32000, + q3: 38000, + high: 42000, + outliers: [48000], + }, + { + x: '职业 F', + low: 47000, + q1: 56000, + median: 69000, + q3: 85000, + high: 100000, + outliers: [110000, 115000, 32000], + }, + { + x: '职业 G', + low: 64000, + q1: 74000, + median: 83000, + q3: 93000, + high: 100000, + outliers: [110000], + }, + { + x: '职业 H', + low: 67000, + q1: 72000, + median: 84000, + q3: 95000, + high: 110000, + outliers: [57000, 54000], + }, + ]; + + const { DataView } = DataSet; + const dv = new DataView().source(data); + dv.transform({ + type: 'map', + callback: (obj) => { + obj.range = [obj.low, obj.q1, obj.median, obj.q3, obj.high]; + return obj; + }, + }); + + const cols = { + range: { + min: 0, + max: 240000, + }, + outliers: { + min: 0, + max: 240000, + }, + }; + + return ( +
    + +

    箱型图

    + + + + + + { + return { + name: x, + low, + q1, + median, + q3, + high, + }; + }, + ]} + style={{ + stroke: 'rgba(0, 0, 0, 0.45)', + fill: '#1890FF', + fillOpacity: 0.3, + }} + /> + + + + +
    +
    + ); + } +} + +const styles = { + title: { + margin: '0 0 40px', + fontSize: '18px', + paddingBottom: '15px', + fontWeight: 'bold', + borderBottom: '1px solid #eee', + }, +}; diff --git a/templates/ice-design/blocks/ChartBox/src/ChartBox.scss b/templates/ice-design/blocks/ChartBox/src/ChartBox.scss new file mode 100644 index 0000000000..859ec7505d --- /dev/null +++ b/templates/ice-design/blocks/ChartBox/src/ChartBox.scss @@ -0,0 +1,5 @@ +@charset "UTF-8"; + +.chart-box { + +} diff --git a/templates/ice-design/blocks/ChartBox/src/index.js b/templates/ice-design/blocks/ChartBox/src/index.js new file mode 100644 index 0000000000..869f9d8db4 --- /dev/null +++ b/templates/ice-design/blocks/ChartBox/src/index.js @@ -0,0 +1,3 @@ +import ChartBox from './ChartBox'; + +export default ChartBox; diff --git a/templates/ice-design/blocks/ChartBubbleImage/.editorconfig b/templates/ice-design/blocks/ChartBubbleImage/.editorconfig new file mode 100644 index 0000000000..22ef5ace54 --- /dev/null +++ b/templates/ice-design/blocks/ChartBubbleImage/.editorconfig @@ -0,0 +1,16 @@ +# http://editorconfig.org +root = true + +[*] +indent_style = space +indent_size = 2 +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false + +[makefile] +indent_style = tab +indent_size = 4 diff --git a/templates/ice-design/blocks/ChartBubbleImage/.eslintignore b/templates/ice-design/blocks/ChartBubbleImage/.eslintignore new file mode 100644 index 0000000000..3b21308fc7 --- /dev/null +++ b/templates/ice-design/blocks/ChartBubbleImage/.eslintignore @@ -0,0 +1,12 @@ +# 忽略目录 +build/ +tests/ +demo/ +lib/ + +# node 覆盖率文件 +coverage/ + +# 忽略文件 +**/*-min.js +**/*.min.js \ No newline at end of file diff --git a/templates/ice-design/blocks/ChartBubbleImage/.eslintrc b/templates/ice-design/blocks/ChartBubbleImage/.eslintrc new file mode 100644 index 0000000000..59b96e85d6 --- /dev/null +++ b/templates/ice-design/blocks/ChartBubbleImage/.eslintrc @@ -0,0 +1,53 @@ +{ + "root": true, + "parser": "babel-eslint", + "extends": "eslint-config-airbnb", + "parserOptions": { + "ecmaVersion": 6, + "ecmaFeatures": { + "jsx": true, + "experimentalObjectRestSpread": true + } + }, + "env": { + "browser": true + }, + "plugins": ["react", "babel"], + "rules": { + "react/forbid-prop-types": 0, + "jsx-a11y/label-has-for": 0, + "jsx-a11y/no-static-element-interactions": 0, + "jsx-a11y/anchor-has-content": 0, + "jsx-a11y/click-events-have-key-events": 0, + "jsx-a11y/anchor-is-valid": 0, + "react/no-array-index-key": 0, + "func-names": 0, + "arrow-body-style": 0, + "no-use-before-define": 0, + "react/sort-comp": 0, + "react/prop-types": 0, + "react/jsx-first-prop-new-line": 0, + "react/jsx-filename-extension": [ + 1, + { + "extensions": [".js", ".jsx"] + } + ], + "import/extensions": 0, + "import/no-unresolved": 0, + "import/no-extraneous-dependencies": 0, + "prefer-destructuring": 0, + "no-param-reassign": 0, + "no-return-assign": 0, + "max-len": 0, + "consistent-return": 0, + "no-redeclare": 0, + "react/require-extension": 0, + "react/no-danger": 0, + "comma-dangle": ["error", "always-multiline"], + "function-paren-newline": 0, + "object-curly-newline": 0, + "no-restricted-globals": 0, + "react/prefer-stateless-function": 0 + } +} diff --git a/templates/ice-design/blocks/ChartBubbleImage/.gitignore b/templates/ice-design/blocks/ChartBubbleImage/.gitignore new file mode 100644 index 0000000000..5945feea3c --- /dev/null +++ b/templates/ice-design/blocks/ChartBubbleImage/.gitignore @@ -0,0 +1,14 @@ + + *.swp + *.dia~ + .idea/ + .DS_Store + + npm-debug.log + yarn-error.log + node_modules/ + tmp/ + + # happypack 缓存 + .happypack + \ No newline at end of file diff --git a/templates/ice-design/blocks/ChartBubbleImage/README.md b/templates/ice-design/blocks/ChartBubbleImage/README.md new file mode 100644 index 0000000000..0da0ec4ef2 --- /dev/null +++ b/templates/ice-design/blocks/ChartBubbleImage/README.md @@ -0,0 +1,10 @@ +# chart-bubble-image + +简介:自定义气泡图 + +![截图](https://img.alicdn.com/tfs/TB11w4FivDH8KJjy1XcXXcpdXXa-1902-1032.png) + +## 更多 + +* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) +* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) diff --git a/templates/ice-design/blocks/ChartBubbleImage/demo/index.html b/templates/ice-design/blocks/ChartBubbleImage/demo/index.html new file mode 100644 index 0000000000..9d2d3a663d --- /dev/null +++ b/templates/ice-design/blocks/ChartBubbleImage/demo/index.html @@ -0,0 +1,19 @@ + + + + + + + + Document + + + + +
    + + + + + + diff --git a/templates/ice-design/blocks/ChartBubbleImage/demo/index.js b/templates/ice-design/blocks/ChartBubbleImage/demo/index.js new file mode 100644 index 0000000000..178a766115 --- /dev/null +++ b/templates/ice-design/blocks/ChartBubbleImage/demo/index.js @@ -0,0 +1,19 @@ +import React, {Component} from 'react'; +import {render} from 'react-dom'; + +// 载入默认全局样式 normalize 、.clearfix 和一些 mixin 方法等 +import '@icedesign/base/lib/_components/@alife/next-core/lib/index.scss'; + +import DemoLayout from '@icedesign/demo-layout'; +import Block from '../src'; + +const props = { + // ... +}; + +render( + + + , + document.querySelector('#mountNode') +); diff --git a/templates/ice-design/blocks/ChartBubbleImage/lib/ChartBubbleImage.js b/templates/ice-design/blocks/ChartBubbleImage/lib/ChartBubbleImage.js new file mode 100644 index 0000000000..a3449336d2 --- /dev/null +++ b/templates/ice-design/blocks/ChartBubbleImage/lib/ChartBubbleImage.js @@ -0,0 +1,164 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = undefined; + +var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + +var _class, _temp; /* eslint no-mixed-operators: 0 */ +/* eslint no-underscore-dangle: 0 */ + + +var _react = require('react'); + +var _react2 = _interopRequireDefault(_react); + +var _card = require('@icedesign/card'); + +var _card2 = _interopRequireDefault(_card); + +var _bizcharts = require('bizcharts'); + +require('./ChartBubbleImage.scss'); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } + +var ChartBubbleImage = (_temp = _class = function (_Component) { + _inherits(ChartBubbleImage, _Component); + + function ChartBubbleImage(props) { + _classCallCheck(this, ChartBubbleImage); + + var _this = _possibleConstructorReturn(this, (ChartBubbleImage.__proto__ || Object.getPrototypeOf(ChartBubbleImage)).call(this, props)); + + _this.state = {}; + return _this; + } + + _createClass(ChartBubbleImage, [{ + key: 'render', + value: function render() { + // 参考:https://alibaba.github.io/BizCharts/ + // 自定义 shape, 支持图片形式的气泡 + _bizcharts.Shape.registerShape('point', 'image', { + drawShape: function drawShape(cfg, container) { + cfg.points = this.parsePoints(cfg.points); + var coord = this._coord; + container.addShape('line', { + attrs: { + x1: cfg.points[0].x, + y1: cfg.points[0].y, + x2: cfg.points[0].x, + y2: coord.start.y, + stroke: '#ccc', + lineWidth: 1, + lineDash: [4, 2] + } + }); + return container.addShape('image', { + attrs: { + x: cfg.points[0].x - 12 * cfg.size / 2, + y: cfg.points[0].y - 12 * cfg.size, + width: 12 * cfg.size, + height: 12 * cfg.size, + img: cfg.shape[1] + } + }); + } + }); + + var data = [{ name: 'Internet Explorer', value: 26 }, { name: 'Chrome', value: 40 }, { name: 'Firefox', value: 30 }, { name: 'Safari', value: 24 }, { name: 'Opera', value: 15 }, { name: 'Undetectable', value: 8 }]; + + var imageMap = { + 'Internet Explorer': 'https://gw.alipayobjects.com/zos/rmsportal/eOYRaLPOmkieVvjyjTzM.png', + Chrome: 'https://gw.alipayobjects.com/zos/rmsportal/dWJWRLWfpOEbwCyxmZwu.png', + Firefox: 'https://gw.alipayobjects.com/zos/rmsportal/ZEPeDluKmAoTioCABBTc.png', + Safari: 'https://gw.alipayobjects.com/zos/rmsportal/eZYhlLzqWLAYwOHQAXmc.png', + Opera: 'https://gw.alipayobjects.com/zos/rmsportal/vXiGOWCGZNKuVVpVYQAw.png', + Undetectable: 'https://gw.alipayobjects.com/zos/rmsportal/NjApYXminrnhBgOXyuaK.png' + }; + + var cols = { + value: { + nice: false, + max: 60, + min: 0 + } + }; + + return _react2.default.createElement( + 'div', + { className: 'chart-bubble-image' }, + _react2.default.createElement( + _card2.default, + null, + _react2.default.createElement( + 'h4', + { style: styles.title }, + '\u81EA\u5B9A\u4E49\u6C14\u6CE1\u56FE' + ), + _react2.default.createElement( + _bizcharts.Chart, + { + height: 400, + data: data, + padding: [20, 20, 90], + scale: cols, + forceFit: true + }, + _react2.default.createElement(_bizcharts.Axis, { name: 'name' }), + _react2.default.createElement(_bizcharts.Axis, { name: 'value', visible: false }), + _react2.default.createElement(_bizcharts.Tooltip, null), + _react2.default.createElement( + _bizcharts.Geom, + { + type: 'point', + position: 'name*value', + color: 'name', + shape: ['name', function (name) { + return ['image', imageMap[name]]; // 根据具体的字段指定 shape + }], + size: 'value', + style: { + stroke: '#fff', + lineWidth: 1, + fillOpacity: 1 + } + }, + _react2.default.createElement(_bizcharts.Label, { + content: 'value', + offset: -20, + textStyle: { + fontSize: 16 // 文本大小 + } + }) + ) + ) + ) + ); + } + }]); + + return ChartBubbleImage; +}(_react.Component), _class.displayName = 'ChartBubbleImage', _class.propTypes = {}, _class.defaultProps = {}, _temp); +exports.default = ChartBubbleImage; + + +var styles = { + title: { + margin: '0 0 40px', + fontSize: '18px', + paddingBottom: '15px', + fontWeight: 'bold', + borderBottom: '1px solid #eee' + } +}; +module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/ChartBubbleImage/lib/ChartBubbleImage.scss b/templates/ice-design/blocks/ChartBubbleImage/lib/ChartBubbleImage.scss new file mode 100644 index 0000000000..125362a264 --- /dev/null +++ b/templates/ice-design/blocks/ChartBubbleImage/lib/ChartBubbleImage.scss @@ -0,0 +1,5 @@ +@charset "UTF-8"; + +.chart-bubble-image { + +} diff --git a/templates/ice-design/blocks/ChartBubbleImage/lib/index.js b/templates/ice-design/blocks/ChartBubbleImage/lib/index.js new file mode 100644 index 0000000000..1f155202b2 --- /dev/null +++ b/templates/ice-design/blocks/ChartBubbleImage/lib/index.js @@ -0,0 +1,14 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _ChartBubbleImage = require('./ChartBubbleImage'); + +var _ChartBubbleImage2 = _interopRequireDefault(_ChartBubbleImage); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +exports.default = _ChartBubbleImage2.default; +module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/ChartBubbleImage/mock/api.json b/templates/ice-design/blocks/ChartBubbleImage/mock/api.json new file mode 100644 index 0000000000..e706430232 --- /dev/null +++ b/templates/ice-design/blocks/ChartBubbleImage/mock/api.json @@ -0,0 +1,4 @@ +{ + "status": "success", + "data": {} +} diff --git a/templates/ice-design/blocks/ChartBubbleImage/package.json b/templates/ice-design/blocks/ChartBubbleImage/package.json new file mode 100644 index 0000000000..b43e3dd24e --- /dev/null +++ b/templates/ice-design/blocks/ChartBubbleImage/package.json @@ -0,0 +1,56 @@ +{ + "name": "@icedesign/chart-bubble-image-block", + "version": "0.1.0", + "description": "", + "files": [ + "src/", + "demo/", + "lib/", + "mock/" + ], + "author": { + "name": "ICE Team", + "email": "ice-admin@alibaba-inc.com" + }, + "repository": { + "type": "git", + "url": "https://github.com/alibaba/ice" + }, + "license": "MIT", + "keywords": [ + "ice", + "ice-block" + ], + "dependencies": { + "@antv/data-set": "^0.8.0", + "bizcharts": "^3.0.5", + "prop-types": "^15.5.8", + "@icedesign/base": "^0.1.0", + "@icedesign/card": "^0.1.0" + }, + "devDependencies": { + "babel-eslint": "^8.0.3", + "eslint": "^4.13.1", + "eslint-plugin-babel": "^4.1.1", + "eslint-plugin-react": "^7.5.1", + "@icedesign/demo-layout": "^0.1.0", + "eslint-plugin-import": "^2.8.0", + "eslint-config-airbnb": "^16.1.0", + "eslint-plugin-jsx-a11y": "^6.0.3", + "@icedesign/skin": "^0.1.2" + }, + "blockConfig": { + "name": "chart-bubble-image", + "description": "", + "chinese": "自定义气泡图", + "category": "chart", + "snapshot": "https://img.alicdn.com/tfs/TB11w4FivDH8KJjy1XcXXcpdXXa-1902-1032.png", + "sketchURL": "", + "icelandURL": "", + "themePackage": "@icedesign/skin" + }, + "scripts": { + "lint": "eslint . --ext '.js,.jsx' --fix", + "prepublish": "npm run lint" + } +} diff --git a/templates/ice-design/blocks/ChartBubbleImage/src/ChartBubbleImage.jsx b/templates/ice-design/blocks/ChartBubbleImage/src/ChartBubbleImage.jsx new file mode 100644 index 0000000000..c1db63de48 --- /dev/null +++ b/templates/ice-design/blocks/ChartBubbleImage/src/ChartBubbleImage.jsx @@ -0,0 +1,136 @@ +/* eslint no-mixed-operators: 0 */ +/* eslint no-underscore-dangle: 0 */ +import React, { Component } from 'react'; +import IceCard from '@icedesign/card'; +import { Chart, Geom, Axis, Tooltip, Label, Shape } from 'bizcharts'; +import './ChartBubbleImage.scss'; + +export default class ChartBubbleImage extends Component { + static displayName = 'ChartBubbleImage'; + + static propTypes = {}; + + static defaultProps = {}; + + constructor(props) { + super(props); + this.state = {}; + } + + render() { + // 参考:https://alibaba.github.io/BizCharts/ + // 自定义 shape, 支持图片形式的气泡 + Shape.registerShape('point', 'image', { + drawShape(cfg, container) { + cfg.points = this.parsePoints(cfg.points); + const coord = this._coord; + container.addShape('line', { + attrs: { + x1: cfg.points[0].x, + y1: cfg.points[0].y, + x2: cfg.points[0].x, + y2: coord.start.y, + stroke: '#ccc', + lineWidth: 1, + lineDash: [4, 2], + }, + }); + return container.addShape('image', { + attrs: { + x: cfg.points[0].x - 12 * cfg.size / 2, + y: cfg.points[0].y - 12 * cfg.size, + width: 12 * cfg.size, + height: 12 * cfg.size, + img: cfg.shape[1], + }, + }); + }, + }); + + const data = [ + { name: 'Internet Explorer', value: 26 }, + { name: 'Chrome', value: 40 }, + { name: 'Firefox', value: 30 }, + { name: 'Safari', value: 24 }, + { name: 'Opera', value: 15 }, + { name: 'Undetectable', value: 8 }, + ]; + + const imageMap = { + 'Internet Explorer': + 'https://gw.alipayobjects.com/zos/rmsportal/eOYRaLPOmkieVvjyjTzM.png', + Chrome: + 'https://gw.alipayobjects.com/zos/rmsportal/dWJWRLWfpOEbwCyxmZwu.png', + Firefox: + 'https://gw.alipayobjects.com/zos/rmsportal/ZEPeDluKmAoTioCABBTc.png', + Safari: + 'https://gw.alipayobjects.com/zos/rmsportal/eZYhlLzqWLAYwOHQAXmc.png', + Opera: + 'https://gw.alipayobjects.com/zos/rmsportal/vXiGOWCGZNKuVVpVYQAw.png', + Undetectable: + 'https://gw.alipayobjects.com/zos/rmsportal/NjApYXminrnhBgOXyuaK.png', + }; + + const cols = { + value: { + nice: false, + max: 60, + min: 0, + }, + }; + + return ( +
    + +

    自定义气泡图

    + + + + + { + return ['image', imageMap[name]]; // 根据具体的字段指定 shape + }, + ]} + size="value" + style={{ + stroke: '#fff', + lineWidth: 1, + fillOpacity: 1, + }} + > + + +
    +
    + ); + } +} + +const styles = { + title: { + margin: '0 0 40px', + fontSize: '18px', + paddingBottom: '15px', + fontWeight: 'bold', + borderBottom: '1px solid #eee', + }, +}; diff --git a/templates/ice-design/blocks/ChartBubbleImage/src/ChartBubbleImage.scss b/templates/ice-design/blocks/ChartBubbleImage/src/ChartBubbleImage.scss new file mode 100644 index 0000000000..125362a264 --- /dev/null +++ b/templates/ice-design/blocks/ChartBubbleImage/src/ChartBubbleImage.scss @@ -0,0 +1,5 @@ +@charset "UTF-8"; + +.chart-bubble-image { + +} diff --git a/templates/ice-design/blocks/ChartBubbleImage/src/index.js b/templates/ice-design/blocks/ChartBubbleImage/src/index.js new file mode 100644 index 0000000000..059ee97101 --- /dev/null +++ b/templates/ice-design/blocks/ChartBubbleImage/src/index.js @@ -0,0 +1,3 @@ +import ChartBubbleImage from './ChartBubbleImage'; + +export default ChartBubbleImage; diff --git a/templates/ice-design/blocks/ChartFacet/.editorconfig b/templates/ice-design/blocks/ChartFacet/.editorconfig new file mode 100644 index 0000000000..22ef5ace54 --- /dev/null +++ b/templates/ice-design/blocks/ChartFacet/.editorconfig @@ -0,0 +1,16 @@ +# http://editorconfig.org +root = true + +[*] +indent_style = space +indent_size = 2 +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false + +[makefile] +indent_style = tab +indent_size = 4 diff --git a/templates/ice-design/blocks/ChartFacet/.eslintignore b/templates/ice-design/blocks/ChartFacet/.eslintignore new file mode 100644 index 0000000000..3b21308fc7 --- /dev/null +++ b/templates/ice-design/blocks/ChartFacet/.eslintignore @@ -0,0 +1,12 @@ +# 忽略目录 +build/ +tests/ +demo/ +lib/ + +# node 覆盖率文件 +coverage/ + +# 忽略文件 +**/*-min.js +**/*.min.js \ No newline at end of file diff --git a/templates/ice-design/blocks/ChartFacet/.eslintrc b/templates/ice-design/blocks/ChartFacet/.eslintrc new file mode 100644 index 0000000000..7a4e5bac48 --- /dev/null +++ b/templates/ice-design/blocks/ChartFacet/.eslintrc @@ -0,0 +1,62 @@ +{ + "root": true, + "parser": "babel-eslint", + "extends": "eslint-config-airbnb", + "parserOptions": { + "ecmaVersion": 6, + "ecmaFeatures": { + "jsx": true, + "experimentalObjectRestSpread": true + } + }, + "env": { + "browser": true + }, + "plugins": [ + "react", + "babel" + ], + "rules": { + "react/forbid-prop-types": 0, + "jsx-a11y/label-has-for": 0, + "jsx-a11y/no-static-element-interactions": 0, + "jsx-a11y/anchor-has-content": 0, + "jsx-a11y/click-events-have-key-events": 0, + "jsx-a11y/anchor-is-valid": 0, + "react/no-array-index-key": 0, + "func-names": 0, + "arrow-body-style": 0, + "no-use-before-define": 0, + "react/sort-comp": 0, + "react/prop-types": 0, + "react/jsx-first-prop-new-line": 0, + "react/jsx-filename-extension": [ + 1, + { + "extensions": [ + ".js", + ".jsx" + ] + } + ], + "import/extensions": 0, + "import/no-unresolved": 0, + "import/no-extraneous-dependencies": 0, + "prefer-destructuring": 0, + "no-param-reassign": 0, + "no-return-assign": 0, + "max-len": 0, + "consistent-return": 0, + "no-redeclare": 0, + "react/require-extension": 0, + "react/no-danger": 0, + "comma-dangle": [ + "error", + "always-multiline" + ], + "function-paren-newline": 0, + "object-curly-newline": 0, + "no-restricted-globals": 0, + "react/prefer-stateless-function": 0 + } +} diff --git a/templates/ice-design/blocks/ChartFacet/.gitignore b/templates/ice-design/blocks/ChartFacet/.gitignore new file mode 100644 index 0000000000..5945feea3c --- /dev/null +++ b/templates/ice-design/blocks/ChartFacet/.gitignore @@ -0,0 +1,14 @@ + + *.swp + *.dia~ + .idea/ + .DS_Store + + npm-debug.log + yarn-error.log + node_modules/ + tmp/ + + # happypack 缓存 + .happypack + \ No newline at end of file diff --git a/templates/ice-design/blocks/ChartFacet/README.md b/templates/ice-design/blocks/ChartFacet/README.md new file mode 100644 index 0000000000..dafd82d840 --- /dev/null +++ b/templates/ice-design/blocks/ChartFacet/README.md @@ -0,0 +1,10 @@ +# chart-facet + +简介:分面图 + +![截图](https://img.alicdn.com/tfs/TB1D80FivDH8KJjy1XcXXcpdXXa-1988-1236.png) + +## 更多 + +* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) +* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) diff --git a/templates/ice-design/blocks/ChartFacet/demo/index.html b/templates/ice-design/blocks/ChartFacet/demo/index.html new file mode 100644 index 0000000000..9d2d3a663d --- /dev/null +++ b/templates/ice-design/blocks/ChartFacet/demo/index.html @@ -0,0 +1,19 @@ + + + + + + + + Document + + + + +
    + + + + + + diff --git a/templates/ice-design/blocks/ChartFacet/demo/index.js b/templates/ice-design/blocks/ChartFacet/demo/index.js new file mode 100644 index 0000000000..178a766115 --- /dev/null +++ b/templates/ice-design/blocks/ChartFacet/demo/index.js @@ -0,0 +1,19 @@ +import React, {Component} from 'react'; +import {render} from 'react-dom'; + +// 载入默认全局样式 normalize 、.clearfix 和一些 mixin 方法等 +import '@icedesign/base/lib/_components/@alife/next-core/lib/index.scss'; + +import DemoLayout from '@icedesign/demo-layout'; +import Block from '../src'; + +const props = { + // ... +}; + +render( + + + , + document.querySelector('#mountNode') +); diff --git a/templates/ice-design/blocks/ChartFacet/lib/ChartFacet.js b/templates/ice-design/blocks/ChartFacet/lib/ChartFacet.js new file mode 100644 index 0000000000..d8eb581421 --- /dev/null +++ b/templates/ice-design/blocks/ChartFacet/lib/ChartFacet.js @@ -0,0 +1,129 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = undefined; + +var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + +var _class, _temp; + +var _react = require('react'); + +var _react2 = _interopRequireDefault(_react); + +var _card = require('@icedesign/card'); + +var _card2 = _interopRequireDefault(_card); + +var _bizcharts = require('bizcharts'); + +var _dataSet = require('@antv/data-set'); + +require('./ChartFacet.scss'); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } + +var ChartFacet = (_temp = _class = function (_Component) { + _inherits(ChartFacet, _Component); + + function ChartFacet(props) { + _classCallCheck(this, ChartFacet); + + var _this = _possibleConstructorReturn(this, (ChartFacet.__proto__ || Object.getPrototypeOf(ChartFacet)).call(this, props)); + + _this.state = {}; + return _this; + } + + _createClass(ChartFacet, [{ + key: 'render', + value: function render() { + // 参考:https://alibaba.github.io/BizCharts/ + var data = [{ gender: '男', count: 40, class: '一班', grade: '一年级' }, { gender: '女', count: 30, class: '一班', grade: '一年级' }, { gender: '男', count: 35, class: '二班', grade: '一年级' }, { gender: '女', count: 45, class: '二班', grade: '一年级' }, { gender: '男', count: 20, class: '三班', grade: '一年级' }, { gender: '女', count: 35, class: '三班', grade: '一年级' }, { gender: '男', count: 30, class: '一班', grade: '二年级' }, { gender: '女', count: 40, class: '一班', grade: '二年级' }, { gender: '男', count: 25, class: '二班', grade: '二年级' }, { gender: '女', count: 32, class: '二班', grade: '二年级' }, { gender: '男', count: 28, class: '三班', grade: '二年级' }, { gender: '女', count: 36, class: '三班', grade: '二年级' }]; + + var scale = { + cut: { + sync: true + }, + mean: { + sync: true, + tickCount: 5 + } + }; + + return _react2.default.createElement( + 'div', + { className: 'chart-facet' }, + _react2.default.createElement( + _card2.default, + null, + _react2.default.createElement( + 'h4', + { style: styles.title }, + '\u5206\u9762\u56FE' + ), + _react2.default.createElement( + _bizcharts.Chart, + { + data: data, + width: 960, + height: 500, + padding: [30, 80, 80, 80], + scale: scale + }, + _react2.default.createElement(_bizcharts.Tooltip, { showTitle: false }), + _react2.default.createElement(_bizcharts.Legend, null), + _react2.default.createElement(_bizcharts.Coord, { type: 'theta' }), + _react2.default.createElement(_bizcharts.Facet, { + type: 'tree', + fields: ['grade', 'class'], + line: { stroke: '#c0d0e0' }, + lineSmooth: true, + eachView: function eachView(view, facet) { + var data2 = facet.data; + var dv = new _dataSet.DataView(); + dv.source(data2).transform({ + type: 'percent', + field: 'count', + dimension: 'gender', + as: 'percent' + }); + view.source(dv, { + percent: { + formatter: function formatter(val) { + return (val * 100).toFixed(2) + '%'; + } + } + }); + view.intervalStack().position('percent').color('gender'); + } + }) + ) + ) + ); + } + }]); + + return ChartFacet; +}(_react.Component), _class.displayName = 'ChartFacet', _class.propTypes = {}, _class.defaultProps = {}, _temp); +exports.default = ChartFacet; + + +var styles = { + title: { + margin: '0 0 40px', + fontSize: '18px', + paddingBottom: '15px', + fontWeight: 'bold', + borderBottom: '1px solid #eee' + } +}; +module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/ChartFacet/lib/ChartFacet.scss b/templates/ice-design/blocks/ChartFacet/lib/ChartFacet.scss new file mode 100644 index 0000000000..175ddb2d35 --- /dev/null +++ b/templates/ice-design/blocks/ChartFacet/lib/ChartFacet.scss @@ -0,0 +1,5 @@ +@charset "UTF-8"; + +.chart-facet { + +} diff --git a/templates/ice-design/blocks/ChartFacet/lib/index.js b/templates/ice-design/blocks/ChartFacet/lib/index.js new file mode 100644 index 0000000000..754d7f90a1 --- /dev/null +++ b/templates/ice-design/blocks/ChartFacet/lib/index.js @@ -0,0 +1,14 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _ChartFacet = require('./ChartFacet'); + +var _ChartFacet2 = _interopRequireDefault(_ChartFacet); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +exports.default = _ChartFacet2.default; +module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/ChartFacet/mock/api.json b/templates/ice-design/blocks/ChartFacet/mock/api.json new file mode 100644 index 0000000000..e706430232 --- /dev/null +++ b/templates/ice-design/blocks/ChartFacet/mock/api.json @@ -0,0 +1,4 @@ +{ + "status": "success", + "data": {} +} diff --git a/templates/ice-design/blocks/ChartFacet/package.json b/templates/ice-design/blocks/ChartFacet/package.json new file mode 100644 index 0000000000..6d85ccbd4e --- /dev/null +++ b/templates/ice-design/blocks/ChartFacet/package.json @@ -0,0 +1,56 @@ +{ + "name": "@icedesign/chart-facet-block", + "version": "0.1.0", + "description": "", + "files": [ + "src/", + "demo/", + "lib/", + "mock/" + ], + "author": { + "name": "ICE Team", + "email": "ice-admin@alibaba-inc.com" + }, + "repository": { + "type": "git", + "url": "https://github.com/alibaba/ice" + }, + "license": "MIT", + "keywords": [ + "ice", + "ice-block" + ], + "dependencies": { + "@antv/data-set": "^0.8.0", + "bizcharts": "^3.0.5", + "prop-types": "^15.5.8", + "@icedesign/base": "^0.1.0", + "@icedesign/card": "^0.1.0" + }, + "devDependencies": { + "babel-eslint": "^8.0.3", + "eslint": "^4.13.1", + "eslint-plugin-babel": "^4.1.1", + "eslint-plugin-react": "^7.5.1", + "@icedesign/demo-layout": "^0.1.0", + "eslint-plugin-import": "^2.8.0", + "eslint-config-airbnb": "^16.1.0", + "eslint-plugin-jsx-a11y": "^6.0.3", + "@icedesign/skin": "^0.1.2" + }, + "blockConfig": { + "name": "chart-facet", + "description": "", + "chinese": "分面图", + "category": "chart", + "snapshot": "https://img.alicdn.com/tfs/TB1D80FivDH8KJjy1XcXXcpdXXa-1988-1236.png", + "sketchURL": "", + "icelandURL": "", + "themePackage": "@icedesign/skin" + }, + "scripts": { + "lint": "eslint . --ext '.js,.jsx' --fix", + "prepublish": "npm run lint" + } +} diff --git a/templates/ice-design/blocks/ChartFacet/src/ChartFacet.jsx b/templates/ice-design/blocks/ChartFacet/src/ChartFacet.jsx new file mode 100644 index 0000000000..9dd073c23a --- /dev/null +++ b/templates/ice-design/blocks/ChartFacet/src/ChartFacet.jsx @@ -0,0 +1,102 @@ +import React, { Component } from 'react'; +import IceCard from '@icedesign/card'; +import { Chart, Tooltip, Facet, Legend, Coord } from 'bizcharts'; +import { DataView } from '@antv/data-set'; +import './ChartFacet.scss'; + +export default class ChartFacet extends Component { + static displayName = 'ChartFacet'; + + static propTypes = {}; + + static defaultProps = {}; + + constructor(props) { + super(props); + this.state = {}; + } + + render() { + // 参考:https://alibaba.github.io/BizCharts/ + const data = [ + { gender: '男', count: 40, class: '一班', grade: '一年级' }, + { gender: '女', count: 30, class: '一班', grade: '一年级' }, + { gender: '男', count: 35, class: '二班', grade: '一年级' }, + { gender: '女', count: 45, class: '二班', grade: '一年级' }, + { gender: '男', count: 20, class: '三班', grade: '一年级' }, + { gender: '女', count: 35, class: '三班', grade: '一年级' }, + { gender: '男', count: 30, class: '一班', grade: '二年级' }, + { gender: '女', count: 40, class: '一班', grade: '二年级' }, + { gender: '男', count: 25, class: '二班', grade: '二年级' }, + { gender: '女', count: 32, class: '二班', grade: '二年级' }, + { gender: '男', count: 28, class: '三班', grade: '二年级' }, + { gender: '女', count: 36, class: '三班', grade: '二年级' }, + ]; + + const scale = { + cut: { + sync: true, + }, + mean: { + sync: true, + tickCount: 5, + }, + }; + + return ( +
    + +

    分面图

    + + + + + { + const data2 = facet.data; + const dv = new DataView(); + dv.source(data2).transform({ + type: 'percent', + field: 'count', + dimension: 'gender', + as: 'percent', + }); + view.source(dv, { + percent: { + formatter(val) { + return `${(val * 100).toFixed(2)}%`; + }, + }, + }); + view + .intervalStack() + .position('percent') + .color('gender'); + }} + /> + +
    +
    + ); + } +} + +const styles = { + title: { + margin: '0 0 40px', + fontSize: '18px', + paddingBottom: '15px', + fontWeight: 'bold', + borderBottom: '1px solid #eee', + }, +}; diff --git a/templates/ice-design/blocks/ChartFacet/src/ChartFacet.scss b/templates/ice-design/blocks/ChartFacet/src/ChartFacet.scss new file mode 100644 index 0000000000..175ddb2d35 --- /dev/null +++ b/templates/ice-design/blocks/ChartFacet/src/ChartFacet.scss @@ -0,0 +1,5 @@ +@charset "UTF-8"; + +.chart-facet { + +} diff --git a/templates/ice-design/blocks/ChartFacet/src/index.js b/templates/ice-design/blocks/ChartFacet/src/index.js new file mode 100644 index 0000000000..f78de22b5f --- /dev/null +++ b/templates/ice-design/blocks/ChartFacet/src/index.js @@ -0,0 +1,3 @@ +import ChartFacet from './ChartFacet'; + +export default ChartFacet; diff --git a/templates/ice-design/blocks/ChartFunnel/.editorconfig b/templates/ice-design/blocks/ChartFunnel/.editorconfig new file mode 100644 index 0000000000..22ef5ace54 --- /dev/null +++ b/templates/ice-design/blocks/ChartFunnel/.editorconfig @@ -0,0 +1,16 @@ +# http://editorconfig.org +root = true + +[*] +indent_style = space +indent_size = 2 +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false + +[makefile] +indent_style = tab +indent_size = 4 diff --git a/templates/ice-design/blocks/ChartFunnel/.eslintignore b/templates/ice-design/blocks/ChartFunnel/.eslintignore new file mode 100644 index 0000000000..3b21308fc7 --- /dev/null +++ b/templates/ice-design/blocks/ChartFunnel/.eslintignore @@ -0,0 +1,12 @@ +# 忽略目录 +build/ +tests/ +demo/ +lib/ + +# node 覆盖率文件 +coverage/ + +# 忽略文件 +**/*-min.js +**/*.min.js \ No newline at end of file diff --git a/templates/ice-design/blocks/ChartFunnel/.eslintrc b/templates/ice-design/blocks/ChartFunnel/.eslintrc new file mode 100644 index 0000000000..7a4e5bac48 --- /dev/null +++ b/templates/ice-design/blocks/ChartFunnel/.eslintrc @@ -0,0 +1,62 @@ +{ + "root": true, + "parser": "babel-eslint", + "extends": "eslint-config-airbnb", + "parserOptions": { + "ecmaVersion": 6, + "ecmaFeatures": { + "jsx": true, + "experimentalObjectRestSpread": true + } + }, + "env": { + "browser": true + }, + "plugins": [ + "react", + "babel" + ], + "rules": { + "react/forbid-prop-types": 0, + "jsx-a11y/label-has-for": 0, + "jsx-a11y/no-static-element-interactions": 0, + "jsx-a11y/anchor-has-content": 0, + "jsx-a11y/click-events-have-key-events": 0, + "jsx-a11y/anchor-is-valid": 0, + "react/no-array-index-key": 0, + "func-names": 0, + "arrow-body-style": 0, + "no-use-before-define": 0, + "react/sort-comp": 0, + "react/prop-types": 0, + "react/jsx-first-prop-new-line": 0, + "react/jsx-filename-extension": [ + 1, + { + "extensions": [ + ".js", + ".jsx" + ] + } + ], + "import/extensions": 0, + "import/no-unresolved": 0, + "import/no-extraneous-dependencies": 0, + "prefer-destructuring": 0, + "no-param-reassign": 0, + "no-return-assign": 0, + "max-len": 0, + "consistent-return": 0, + "no-redeclare": 0, + "react/require-extension": 0, + "react/no-danger": 0, + "comma-dangle": [ + "error", + "always-multiline" + ], + "function-paren-newline": 0, + "object-curly-newline": 0, + "no-restricted-globals": 0, + "react/prefer-stateless-function": 0 + } +} diff --git a/templates/ice-design/blocks/ChartFunnel/.gitignore b/templates/ice-design/blocks/ChartFunnel/.gitignore new file mode 100644 index 0000000000..5945feea3c --- /dev/null +++ b/templates/ice-design/blocks/ChartFunnel/.gitignore @@ -0,0 +1,14 @@ + + *.swp + *.dia~ + .idea/ + .DS_Store + + npm-debug.log + yarn-error.log + node_modules/ + tmp/ + + # happypack 缓存 + .happypack + \ No newline at end of file diff --git a/templates/ice-design/blocks/ChartFunnel/README.md b/templates/ice-design/blocks/ChartFunnel/README.md new file mode 100644 index 0000000000..8b1badf8cd --- /dev/null +++ b/templates/ice-design/blocks/ChartFunnel/README.md @@ -0,0 +1,10 @@ +# chart-funnel + +简介:漏斗图 + +![截图](https://img.alicdn.com/tfs/TB14y8xiv6H8KJjy0FjXXaXepXa-1888-1038.png) + +## 更多 + +* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) +* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) diff --git a/templates/ice-design/blocks/ChartFunnel/demo/index.html b/templates/ice-design/blocks/ChartFunnel/demo/index.html new file mode 100644 index 0000000000..9d2d3a663d --- /dev/null +++ b/templates/ice-design/blocks/ChartFunnel/demo/index.html @@ -0,0 +1,19 @@ + + + + + + + + Document + + + + +
    + + + + + + diff --git a/templates/ice-design/blocks/ChartFunnel/demo/index.js b/templates/ice-design/blocks/ChartFunnel/demo/index.js new file mode 100644 index 0000000000..178a766115 --- /dev/null +++ b/templates/ice-design/blocks/ChartFunnel/demo/index.js @@ -0,0 +1,19 @@ +import React, {Component} from 'react'; +import {render} from 'react-dom'; + +// 载入默认全局样式 normalize 、.clearfix 和一些 mixin 方法等 +import '@icedesign/base/lib/_components/@alife/next-core/lib/index.scss'; + +import DemoLayout from '@icedesign/demo-layout'; +import Block from '../src'; + +const props = { + // ... +}; + +render( + + + , + document.querySelector('#mountNode') +); diff --git a/templates/ice-design/blocks/ChartFunnel/lib/ChartFunnel.js b/templates/ice-design/blocks/ChartFunnel/lib/ChartFunnel.js new file mode 100644 index 0000000000..91d3c6c431 --- /dev/null +++ b/templates/ice-design/blocks/ChartFunnel/lib/ChartFunnel.js @@ -0,0 +1,162 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = undefined; + +var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + +var _class, _temp; + +var _react = require('react'); + +var _react2 = _interopRequireDefault(_react); + +var _card = require('@icedesign/card'); + +var _card2 = _interopRequireDefault(_card); + +var _bizcharts = require('bizcharts'); + +var _dataSet = require('@antv/data-set'); + +require('./ChartFunnel.scss'); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } + +var ChartFunnel = (_temp = _class = function (_Component) { + _inherits(ChartFunnel, _Component); + + function ChartFunnel(props) { + _classCallCheck(this, ChartFunnel); + + var _this = _possibleConstructorReturn(this, (ChartFunnel.__proto__ || Object.getPrototypeOf(ChartFunnel)).call(this, props)); + + _this.state = {}; + return _this; + } + + _createClass(ChartFunnel, [{ + key: 'render', + value: function render() { + // 参考:https://alibaba.github.io/BizCharts/ + var Text = _bizcharts.Guide.Text; + + var data = [{ action: '浏览网站', pv: 50000 }, { action: '放入购物车', pv: 35000 }, { action: '生成订单', pv: 25000 }, { action: '支付订单', pv: 15000 }, { action: '完成交易', pv: 8000 }]; + + var dv = new _dataSet.DataView().source(data); + dv.transform({ + type: 'percent', + field: 'pv', + dimension: 'action', + as: 'percent' + }); + data = dv.rows; + + var cols = { + percent: { + nice: false + } + }; + + return _react2.default.createElement( + 'div', + { className: 'chart-funnel' }, + _react2.default.createElement( + _card2.default, + null, + _react2.default.createElement( + 'h4', + { style: styles.title }, + '\u6F0F\u6597\u56FE' + ), + _react2.default.createElement( + _bizcharts.Chart, + { + height: 400, + data: data, + scale: cols, + padding: [20, 120, 95], + forceFit: true + }, + _react2.default.createElement(_bizcharts.Tooltip, { + showTitle: false, + itemTpl: '
  • {name}
    \u6D4F\u89C8\u4EBA\u6570\uFF1A{pv}
    \u5360\u6BD4\uFF1A{percent}
  • ' + }), + _react2.default.createElement(_bizcharts.Coord, { type: 'rect', transpose: true, scale: [1, -1] }), + _react2.default.createElement(_bizcharts.Legend, null), + data.map(function (obj, index) { + return _react2.default.createElement( + _bizcharts.Guide, + { key: index }, + _react2.default.createElement(Text, { + top: true, + position: { + action: obj.action, + percent: 'median' + }, + content: parseInt(obj.percent * 100, 10) + '%', + style: { + fill: '#fff', + fontSize: '12', + textAlign: 'center', + shadowBlur: 2, + shadowColor: 'rgba(0, 0, 0, .45)' + } + }) + ); + }), + _react2.default.createElement( + _bizcharts.Geom, + { + type: 'intervalSymmetric', + position: 'action*percent', + shape: 'funnel', + color: ['action', ['#0050B3', '#1890FF', '#40A9FF', '#69C0FF', '#BAE7FF']], + tooltip: ['action*pv*percent', function (action, pv, percent) { + return { + name: action, + percent: parseInt(percent * 100, 10) + '%', + pv: pv + }; + }] + }, + _react2.default.createElement(_bizcharts.Label, { + content: ['action*pv', function (action, pv) { + return action + ' ' + pv; + }], + offset: 35, + labeLine: { + lineWidth: 1, + stroke: 'rgba(0, 0, 0, 0.15)' + } + }) + ) + ) + ) + ); + } + }]); + + return ChartFunnel; +}(_react.Component), _class.displayName = 'ChartFunnel', _class.propTypes = {}, _class.defaultProps = {}, _temp); +exports.default = ChartFunnel; + + +var styles = { + title: { + margin: '0 0 40px', + fontSize: '18px', + paddingBottom: '15px', + fontWeight: 'bold', + borderBottom: '1px solid #eee' + } +}; +module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/ChartFunnel/lib/ChartFunnel.scss b/templates/ice-design/blocks/ChartFunnel/lib/ChartFunnel.scss new file mode 100644 index 0000000000..0845cf925c --- /dev/null +++ b/templates/ice-design/blocks/ChartFunnel/lib/ChartFunnel.scss @@ -0,0 +1,5 @@ +@charset "UTF-8"; + +.chart-funnel { + +} diff --git a/templates/ice-design/blocks/ChartFunnel/lib/index.js b/templates/ice-design/blocks/ChartFunnel/lib/index.js new file mode 100644 index 0000000000..bf47a90234 --- /dev/null +++ b/templates/ice-design/blocks/ChartFunnel/lib/index.js @@ -0,0 +1,14 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _ChartFunnel = require('./ChartFunnel'); + +var _ChartFunnel2 = _interopRequireDefault(_ChartFunnel); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +exports.default = _ChartFunnel2.default; +module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/ChartFunnel/mock/api.json b/templates/ice-design/blocks/ChartFunnel/mock/api.json new file mode 100644 index 0000000000..e706430232 --- /dev/null +++ b/templates/ice-design/blocks/ChartFunnel/mock/api.json @@ -0,0 +1,4 @@ +{ + "status": "success", + "data": {} +} diff --git a/templates/ice-design/blocks/ChartFunnel/package.json b/templates/ice-design/blocks/ChartFunnel/package.json new file mode 100644 index 0000000000..740b22eca4 --- /dev/null +++ b/templates/ice-design/blocks/ChartFunnel/package.json @@ -0,0 +1,56 @@ +{ + "name": "@icedesign/chart-funnel-block", + "version": "0.1.0", + "description": "", + "files": [ + "src/", + "demo/", + "lib/", + "mock/" + ], + "author": { + "name": "ICE Team", + "email": "ice-admin@alibaba-inc.com" + }, + "repository": { + "type": "git", + "url": "https://github.com/alibaba/ice" + }, + "license": "MIT", + "keywords": [ + "ice", + "ice-block" + ], + "dependencies": { + "@antv/data-set": "^0.8.0", + "bizcharts": "^3.0.5", + "prop-types": "^15.5.8", + "@icedesign/base": "^0.1.0", + "@icedesign/card": "^0.1.0" + }, + "devDependencies": { + "babel-eslint": "^8.0.3", + "eslint": "^4.13.1", + "eslint-plugin-babel": "^4.1.1", + "eslint-plugin-react": "^7.5.1", + "@icedesign/demo-layout": "^0.1.0", + "eslint-plugin-import": "^2.8.0", + "eslint-config-airbnb": "^16.1.0", + "eslint-plugin-jsx-a11y": "^6.0.3", + "@icedesign/skin": "^0.1.2" + }, + "blockConfig": { + "name": "chart-funnel", + "description": "", + "chinese": "漏斗图", + "category": "chart", + "snapshot": "https://img.alicdn.com/tfs/TB14y8xiv6H8KJjy0FjXXaXepXa-1888-1038.png", + "sketchURL": "", + "icelandURL": "", + "themePackage": "@icedesign/skin" + }, + "scripts": { + "lint": "eslint . --ext '.js,.jsx' --fix", + "prepublish": "npm run lint" + } +} diff --git a/templates/ice-design/blocks/ChartFunnel/src/ChartFunnel.jsx b/templates/ice-design/blocks/ChartFunnel/src/ChartFunnel.jsx new file mode 100644 index 0000000000..60a896501e --- /dev/null +++ b/templates/ice-design/blocks/ChartFunnel/src/ChartFunnel.jsx @@ -0,0 +1,131 @@ +import React, { Component } from 'react'; +import IceCard from '@icedesign/card'; +import { Chart, Geom, Tooltip, Coord, Label, Legend, Guide } from 'bizcharts'; +import { DataView } from '@antv/data-set'; +import './ChartFunnel.scss'; + +export default class ChartFunnel extends Component { + static displayName = 'ChartFunnel'; + + static propTypes = {}; + + static defaultProps = {}; + + constructor(props) { + super(props); + this.state = {}; + } + + render() { + // 参考:https://alibaba.github.io/BizCharts/ + const { Text } = Guide; + let data = [ + { action: '浏览网站', pv: 50000 }, + { action: '放入购物车', pv: 35000 }, + { action: '生成订单', pv: 25000 }, + { action: '支付订单', pv: 15000 }, + { action: '完成交易', pv: 8000 }, + ]; + + const dv = new DataView().source(data); + dv.transform({ + type: 'percent', + field: 'pv', + dimension: 'action', + as: 'percent', + }); + data = dv.rows; + + const cols = { + percent: { + nice: false, + }, + }; + + return ( +
    + +

    漏斗图

    + + + + + {data.map((obj, index) => { + return ( + + + + ); + })} + { + return { + name: action, + percent: `${parseInt(percent * 100, 10)}%`, + pv, + }; + }, + ]} + > + + +
    +
    + ); + } +} + +const styles = { + title: { + margin: '0 0 40px', + fontSize: '18px', + paddingBottom: '15px', + fontWeight: 'bold', + borderBottom: '1px solid #eee', + }, +}; diff --git a/templates/ice-design/blocks/ChartFunnel/src/ChartFunnel.scss b/templates/ice-design/blocks/ChartFunnel/src/ChartFunnel.scss new file mode 100644 index 0000000000..0845cf925c --- /dev/null +++ b/templates/ice-design/blocks/ChartFunnel/src/ChartFunnel.scss @@ -0,0 +1,5 @@ +@charset "UTF-8"; + +.chart-funnel { + +} diff --git a/templates/ice-design/blocks/ChartFunnel/src/index.js b/templates/ice-design/blocks/ChartFunnel/src/index.js new file mode 100644 index 0000000000..6d02a178d1 --- /dev/null +++ b/templates/ice-design/blocks/ChartFunnel/src/index.js @@ -0,0 +1,3 @@ +import ChartFunnel from './ChartFunnel'; + +export default ChartFunnel; diff --git a/templates/ice-design/blocks/ChartGauge/.editorconfig b/templates/ice-design/blocks/ChartGauge/.editorconfig new file mode 100644 index 0000000000..22ef5ace54 --- /dev/null +++ b/templates/ice-design/blocks/ChartGauge/.editorconfig @@ -0,0 +1,16 @@ +# http://editorconfig.org +root = true + +[*] +indent_style = space +indent_size = 2 +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false + +[makefile] +indent_style = tab +indent_size = 4 diff --git a/templates/ice-design/blocks/ChartGauge/.eslintignore b/templates/ice-design/blocks/ChartGauge/.eslintignore new file mode 100644 index 0000000000..3b21308fc7 --- /dev/null +++ b/templates/ice-design/blocks/ChartGauge/.eslintignore @@ -0,0 +1,12 @@ +# 忽略目录 +build/ +tests/ +demo/ +lib/ + +# node 覆盖率文件 +coverage/ + +# 忽略文件 +**/*-min.js +**/*.min.js \ No newline at end of file diff --git a/templates/ice-design/blocks/ChartGauge/.eslintrc b/templates/ice-design/blocks/ChartGauge/.eslintrc new file mode 100644 index 0000000000..7a4e5bac48 --- /dev/null +++ b/templates/ice-design/blocks/ChartGauge/.eslintrc @@ -0,0 +1,62 @@ +{ + "root": true, + "parser": "babel-eslint", + "extends": "eslint-config-airbnb", + "parserOptions": { + "ecmaVersion": 6, + "ecmaFeatures": { + "jsx": true, + "experimentalObjectRestSpread": true + } + }, + "env": { + "browser": true + }, + "plugins": [ + "react", + "babel" + ], + "rules": { + "react/forbid-prop-types": 0, + "jsx-a11y/label-has-for": 0, + "jsx-a11y/no-static-element-interactions": 0, + "jsx-a11y/anchor-has-content": 0, + "jsx-a11y/click-events-have-key-events": 0, + "jsx-a11y/anchor-is-valid": 0, + "react/no-array-index-key": 0, + "func-names": 0, + "arrow-body-style": 0, + "no-use-before-define": 0, + "react/sort-comp": 0, + "react/prop-types": 0, + "react/jsx-first-prop-new-line": 0, + "react/jsx-filename-extension": [ + 1, + { + "extensions": [ + ".js", + ".jsx" + ] + } + ], + "import/extensions": 0, + "import/no-unresolved": 0, + "import/no-extraneous-dependencies": 0, + "prefer-destructuring": 0, + "no-param-reassign": 0, + "no-return-assign": 0, + "max-len": 0, + "consistent-return": 0, + "no-redeclare": 0, + "react/require-extension": 0, + "react/no-danger": 0, + "comma-dangle": [ + "error", + "always-multiline" + ], + "function-paren-newline": 0, + "object-curly-newline": 0, + "no-restricted-globals": 0, + "react/prefer-stateless-function": 0 + } +} diff --git a/templates/ice-design/blocks/ChartGauge/.gitignore b/templates/ice-design/blocks/ChartGauge/.gitignore new file mode 100644 index 0000000000..5945feea3c --- /dev/null +++ b/templates/ice-design/blocks/ChartGauge/.gitignore @@ -0,0 +1,14 @@ + + *.swp + *.dia~ + .idea/ + .DS_Store + + npm-debug.log + yarn-error.log + node_modules/ + tmp/ + + # happypack 缓存 + .happypack + \ No newline at end of file diff --git a/templates/ice-design/blocks/ChartGauge/README.md b/templates/ice-design/blocks/ChartGauge/README.md new file mode 100644 index 0000000000..8f209e74cd --- /dev/null +++ b/templates/ice-design/blocks/ChartGauge/README.md @@ -0,0 +1,10 @@ +# chart-gauge + +简介:仪表图 + +![截图](https://img.alicdn.com/tfs/TB1KXNyiv6H8KJjy0FjXXaXepXa-1908-1040.png) + +## 更多 + +* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) +* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) diff --git a/templates/ice-design/blocks/ChartGauge/demo/index.html b/templates/ice-design/blocks/ChartGauge/demo/index.html new file mode 100644 index 0000000000..9d2d3a663d --- /dev/null +++ b/templates/ice-design/blocks/ChartGauge/demo/index.html @@ -0,0 +1,19 @@ + + + + + + + + Document + + + + +
    + + + + + + diff --git a/templates/ice-design/blocks/ChartGauge/demo/index.js b/templates/ice-design/blocks/ChartGauge/demo/index.js new file mode 100644 index 0000000000..178a766115 --- /dev/null +++ b/templates/ice-design/blocks/ChartGauge/demo/index.js @@ -0,0 +1,19 @@ +import React, {Component} from 'react'; +import {render} from 'react-dom'; + +// 载入默认全局样式 normalize 、.clearfix 和一些 mixin 方法等 +import '@icedesign/base/lib/_components/@alife/next-core/lib/index.scss'; + +import DemoLayout from '@icedesign/demo-layout'; +import Block from '../src'; + +const props = { + // ... +}; + +render( + + + , + document.querySelector('#mountNode') +); diff --git a/templates/ice-design/blocks/ChartGauge/lib/ChartGauge.js b/templates/ice-design/blocks/ChartGauge/lib/ChartGauge.js new file mode 100644 index 0000000000..6d7751afdd --- /dev/null +++ b/templates/ice-design/blocks/ChartGauge/lib/ChartGauge.js @@ -0,0 +1,232 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = undefined; + +var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + +var _class, _temp; /* eslint no-mixed-operators: 0 */ + + +var _react = require('react'); + +var _react2 = _interopRequireDefault(_react); + +var _card = require('@icedesign/card'); + +var _card2 = _interopRequireDefault(_card); + +var _bizcharts = require('bizcharts'); + +require('./ChartGauge.scss'); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } + +var ChartGauge = (_temp = _class = function (_Component) { + _inherits(ChartGauge, _Component); + + function ChartGauge(props) { + _classCallCheck(this, ChartGauge); + + var _this = _possibleConstructorReturn(this, (ChartGauge.__proto__ || Object.getPrototypeOf(ChartGauge)).call(this, props)); + + _this.state = {}; + return _this; + } + + _createClass(ChartGauge, [{ + key: 'render', + value: function render() { + // 参考:https://alibaba.github.io/BizCharts/ + var Arc = _bizcharts.Guide.Arc, + Html = _bizcharts.Guide.Html, + Line = _bizcharts.Guide.Line; + // 自定义Shape 部分 + + _bizcharts.Shape.registerShape('point', 'pointer', { + drawShape: function drawShape(cfg, group) { + var point = cfg.points[0]; // 获取第一个标记点 + point = this.parsePoint(point); + var center = this.parsePoint({ + // 获取极坐标系下画布中心点 + x: 0, + y: 0 + }); + // 绘制指针 + group.addShape('line', { + attrs: { + x1: center.x, + y1: center.y, + x2: point.x, + y2: point.y - 20, + stroke: cfg.color, + lineWidth: 5, + lineCap: 'round' + } + }); + return group.addShape('circle', { + attrs: { + x: center.x, + y: center.y, + r: 12, + stroke: cfg.color, + lineWidth: 4.5, + fill: '#fff' + } + }); + } + }); + + var data = [{ value: 6 }]; + var cols = { + value: { + min: 0, + max: 9, + ticks: [2.25, 3.75, 5.25, 6.75], + nice: false + } + }; + return _react2.default.createElement( + 'div', + { className: 'chart-gauge' }, + _react2.default.createElement( + _card2.default, + null, + _react2.default.createElement( + 'h4', + { style: styles.title }, + '\u4EEA\u8868\u56FE' + ), + _react2.default.createElement( + _bizcharts.Chart, + { + height: 400, + data: data, + scale: cols, + padding: [0, 0, 200, 0], + forceFit: true + }, + _react2.default.createElement(_bizcharts.Coord, { + type: 'polar', + startAngle: -9 / 8 * Math.PI, + endAngle: 1 / 8 * Math.PI, + radius: 0.75 + }), + _react2.default.createElement(_bizcharts.Axis, { + name: 'value', + zIndex: 2, + label: { + offset: -20, + formatter: function formatter(val) { + if (val === '2.25') { + return '差'; + } else if (val === '3.75') { + return '中'; + } else if (val === '5.25') { + return '良'; + } + + return '优'; + }, + textStyle: { + fontSize: 24, + fill: 'rgba(0, 0, 0, 0.65)', + textAlign: 'center' + } + } + }), + _react2.default.createElement( + _bizcharts.Guide, + null, + _react2.default.createElement(Line, { + start: [3, 0.905], + end: [3.0035, 0.85], + lineStyle: { + stroke: '#19AFFA', // 线的颜色 + lineDash: null, // 虚线的设置 + lineWidth: 3 + } + }), + _react2.default.createElement(Line, { + start: [4.5, 0.905], + end: [4.5, 0.85], + lineStyle: { + stroke: '#19AFFA', // 线的颜色 + lineDash: null, // 虚线的设置 + lineWidth: 3 + } + }), + _react2.default.createElement(Line, { + start: [6, 0.905], + end: [6.0035, 0.85], + lineStyle: { + stroke: '#19AFFA', // 线的颜色 + lineDash: null, // 虚线的设置 + lineWidth: 3 + } + }), + _react2.default.createElement(Arc, { + zIndex: 0, + start: [0, 0.965], + end: [9, 0.965], + style: { + // 底灰色 + stroke: '#000', + lineWidth: 18, + opacity: 0.09 + } + }), + _react2.default.createElement(Arc, { + zIndex: 1, + start: [0, 0.965], + end: [data[0].value, 0.965], + style: { + // 底灰色 + stroke: '#1890FF', + lineWidth: 18 + } + }), + _react2.default.createElement(Html, { + position: ['50%', '95%'], + html: function html() { + return '

    \u5408\u683C\u7387

    ' + data[0].value * 10 + '%

    '; + } + }) + ), + _react2.default.createElement(_bizcharts.Geom, { + type: 'point', + position: 'value*1', + shape: 'pointer', + color: '#1890FF', + active: false, + style: { stroke: '#fff', lineWidth: 1 } + }) + ) + ) + ); + } + }]); + + return ChartGauge; +}(_react.Component), _class.displayName = 'ChartGauge', _class.propTypes = {}, _class.defaultProps = {}, _temp); +exports.default = ChartGauge; + + +var styles = { + title: { + margin: '0 0 40px', + fontSize: '18px', + paddingBottom: '15px', + fontWeight: 'bold', + borderBottom: '1px solid #eee' + } +}; +module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/ChartGauge/lib/ChartGauge.scss b/templates/ice-design/blocks/ChartGauge/lib/ChartGauge.scss new file mode 100644 index 0000000000..89b380e399 --- /dev/null +++ b/templates/ice-design/blocks/ChartGauge/lib/ChartGauge.scss @@ -0,0 +1,5 @@ +@charset "UTF-8"; + +.chart-gauge { + +} diff --git a/templates/ice-design/blocks/ChartGauge/lib/index.js b/templates/ice-design/blocks/ChartGauge/lib/index.js new file mode 100644 index 0000000000..94637e1ff8 --- /dev/null +++ b/templates/ice-design/blocks/ChartGauge/lib/index.js @@ -0,0 +1,14 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _ChartGauge = require('./ChartGauge'); + +var _ChartGauge2 = _interopRequireDefault(_ChartGauge); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +exports.default = _ChartGauge2.default; +module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/ChartGauge/mock/api.json b/templates/ice-design/blocks/ChartGauge/mock/api.json new file mode 100644 index 0000000000..e706430232 --- /dev/null +++ b/templates/ice-design/blocks/ChartGauge/mock/api.json @@ -0,0 +1,4 @@ +{ + "status": "success", + "data": {} +} diff --git a/templates/ice-design/blocks/ChartGauge/package.json b/templates/ice-design/blocks/ChartGauge/package.json new file mode 100644 index 0000000000..03f6a7f03c --- /dev/null +++ b/templates/ice-design/blocks/ChartGauge/package.json @@ -0,0 +1,56 @@ +{ + "name": "@icedesign/chart-gauge-block", + "version": "0.1.0", + "description": "", + "files": [ + "src/", + "demo/", + "lib/", + "mock/" + ], + "author": { + "name": "ICE Team", + "email": "ice-admin@alibaba-inc.com" + }, + "repository": { + "type": "git", + "url": "https://github.com/alibaba/ice" + }, + "license": "MIT", + "keywords": [ + "ice", + "ice-block" + ], + "dependencies": { + "@antv/data-set": "^0.8.0", + "bizcharts": "^3.0.5", + "prop-types": "^15.5.8", + "@icedesign/base": "^0.1.0", + "@icedesign/card": "^0.1.0" + }, + "devDependencies": { + "babel-eslint": "^8.0.3", + "eslint": "^4.13.1", + "eslint-plugin-babel": "^4.1.1", + "eslint-plugin-react": "^7.5.1", + "@icedesign/demo-layout": "^0.1.0", + "eslint-plugin-import": "^2.8.0", + "eslint-config-airbnb": "^16.1.0", + "eslint-plugin-jsx-a11y": "^6.0.3", + "@icedesign/skin": "^0.1.2" + }, + "blockConfig": { + "name": "chart-gauge", + "description": "", + "chinese": "仪表图", + "category": "chart", + "snapshot": "https://img.alicdn.com/tfs/TB1KXNyiv6H8KJjy0FjXXaXepXa-1908-1040.png", + "sketchURL": "", + "icelandURL": "", + "themePackage": "@icedesign/skin" + }, + "scripts": { + "lint": "eslint . --ext '.js,.jsx' --fix", + "prepublish": "npm run lint" + } +} diff --git a/templates/ice-design/blocks/ChartGauge/src/ChartGauge.jsx b/templates/ice-design/blocks/ChartGauge/src/ChartGauge.jsx new file mode 100644 index 0000000000..d617ebb84b --- /dev/null +++ b/templates/ice-design/blocks/ChartGauge/src/ChartGauge.jsx @@ -0,0 +1,186 @@ +/* eslint no-mixed-operators: 0 */ +import React, { Component } from 'react'; +import IceCard from '@icedesign/card'; +import { Chart, Geom, Axis, Coord, Guide, Shape } from 'bizcharts'; +import './ChartGauge.scss'; + +export default class ChartGauge extends Component { + static displayName = 'ChartGauge'; + + static propTypes = {}; + + static defaultProps = {}; + + constructor(props) { + super(props); + this.state = {}; + } + + render() { + // 参考:https://alibaba.github.io/BizCharts/ + const { Arc, Html, Line } = Guide; + // 自定义Shape 部分 + Shape.registerShape('point', 'pointer', { + drawShape(cfg, group) { + let point = cfg.points[0]; // 获取第一个标记点 + point = this.parsePoint(point); + const center = this.parsePoint({ + // 获取极坐标系下画布中心点 + x: 0, + y: 0, + }); + // 绘制指针 + group.addShape('line', { + attrs: { + x1: center.x, + y1: center.y, + x2: point.x, + y2: point.y - 20, + stroke: cfg.color, + lineWidth: 5, + lineCap: 'round', + }, + }); + return group.addShape('circle', { + attrs: { + x: center.x, + y: center.y, + r: 12, + stroke: cfg.color, + lineWidth: 4.5, + fill: '#fff', + }, + }); + }, + }); + + const data = [{ value: 6 }]; + const cols = { + value: { + min: 0, + max: 9, + ticks: [2.25, 3.75, 5.25, 6.75], + nice: false, + }, + }; + return ( +
    + +

    仪表图

    + + + { + if (val === '2.25') { + return '差'; + } else if (val === '3.75') { + return '中'; + } else if (val === '5.25') { + return '良'; + } + + return '优'; + }, + textStyle: { + fontSize: 24, + fill: 'rgba(0, 0, 0, 0.65)', + textAlign: 'center', + }, + }} + /> + + + + + + + { + return `

    合格率

    ${data[0] + .value * 10}%

    `; + }} + /> +
    + +
    +
    +
    + ); + } +} + +const styles = { + title: { + margin: '0 0 40px', + fontSize: '18px', + paddingBottom: '15px', + fontWeight: 'bold', + borderBottom: '1px solid #eee', + }, +}; diff --git a/templates/ice-design/blocks/ChartGauge/src/ChartGauge.scss b/templates/ice-design/blocks/ChartGauge/src/ChartGauge.scss new file mode 100644 index 0000000000..89b380e399 --- /dev/null +++ b/templates/ice-design/blocks/ChartGauge/src/ChartGauge.scss @@ -0,0 +1,5 @@ +@charset "UTF-8"; + +.chart-gauge { + +} diff --git a/templates/ice-design/blocks/ChartGauge/src/index.js b/templates/ice-design/blocks/ChartGauge/src/index.js new file mode 100644 index 0000000000..19625c28a5 --- /dev/null +++ b/templates/ice-design/blocks/ChartGauge/src/index.js @@ -0,0 +1,3 @@ +import ChartGauge from './ChartGauge'; + +export default ChartGauge; diff --git a/templates/ice-design/blocks/ChartHeatMap/.editorconfig b/templates/ice-design/blocks/ChartHeatMap/.editorconfig new file mode 100644 index 0000000000..22ef5ace54 --- /dev/null +++ b/templates/ice-design/blocks/ChartHeatMap/.editorconfig @@ -0,0 +1,16 @@ +# http://editorconfig.org +root = true + +[*] +indent_style = space +indent_size = 2 +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false + +[makefile] +indent_style = tab +indent_size = 4 diff --git a/templates/ice-design/blocks/ChartHeatMap/.eslintignore b/templates/ice-design/blocks/ChartHeatMap/.eslintignore new file mode 100644 index 0000000000..3b21308fc7 --- /dev/null +++ b/templates/ice-design/blocks/ChartHeatMap/.eslintignore @@ -0,0 +1,12 @@ +# 忽略目录 +build/ +tests/ +demo/ +lib/ + +# node 覆盖率文件 +coverage/ + +# 忽略文件 +**/*-min.js +**/*.min.js \ No newline at end of file diff --git a/templates/ice-design/blocks/ChartHeatMap/.eslintrc b/templates/ice-design/blocks/ChartHeatMap/.eslintrc new file mode 100644 index 0000000000..7a4e5bac48 --- /dev/null +++ b/templates/ice-design/blocks/ChartHeatMap/.eslintrc @@ -0,0 +1,62 @@ +{ + "root": true, + "parser": "babel-eslint", + "extends": "eslint-config-airbnb", + "parserOptions": { + "ecmaVersion": 6, + "ecmaFeatures": { + "jsx": true, + "experimentalObjectRestSpread": true + } + }, + "env": { + "browser": true + }, + "plugins": [ + "react", + "babel" + ], + "rules": { + "react/forbid-prop-types": 0, + "jsx-a11y/label-has-for": 0, + "jsx-a11y/no-static-element-interactions": 0, + "jsx-a11y/anchor-has-content": 0, + "jsx-a11y/click-events-have-key-events": 0, + "jsx-a11y/anchor-is-valid": 0, + "react/no-array-index-key": 0, + "func-names": 0, + "arrow-body-style": 0, + "no-use-before-define": 0, + "react/sort-comp": 0, + "react/prop-types": 0, + "react/jsx-first-prop-new-line": 0, + "react/jsx-filename-extension": [ + 1, + { + "extensions": [ + ".js", + ".jsx" + ] + } + ], + "import/extensions": 0, + "import/no-unresolved": 0, + "import/no-extraneous-dependencies": 0, + "prefer-destructuring": 0, + "no-param-reassign": 0, + "no-return-assign": 0, + "max-len": 0, + "consistent-return": 0, + "no-redeclare": 0, + "react/require-extension": 0, + "react/no-danger": 0, + "comma-dangle": [ + "error", + "always-multiline" + ], + "function-paren-newline": 0, + "object-curly-newline": 0, + "no-restricted-globals": 0, + "react/prefer-stateless-function": 0 + } +} diff --git a/templates/ice-design/blocks/ChartHeatMap/.gitignore b/templates/ice-design/blocks/ChartHeatMap/.gitignore new file mode 100644 index 0000000000..5945feea3c --- /dev/null +++ b/templates/ice-design/blocks/ChartHeatMap/.gitignore @@ -0,0 +1,14 @@ + + *.swp + *.dia~ + .idea/ + .DS_Store + + npm-debug.log + yarn-error.log + node_modules/ + tmp/ + + # happypack 缓存 + .happypack + \ No newline at end of file diff --git a/templates/ice-design/blocks/ChartHeatMap/README.md b/templates/ice-design/blocks/ChartHeatMap/README.md new file mode 100644 index 0000000000..87e5c8edfb --- /dev/null +++ b/templates/ice-design/blocks/ChartHeatMap/README.md @@ -0,0 +1,10 @@ +# chart-heat-map + +简介:色块图 + +![截图](https://img.alicdn.com/tfs/TB1W_FoixrI8KJjy0FpXXb5hVXa-1906-1222.png) + +## 更多 + +* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) +* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) diff --git a/templates/ice-design/blocks/ChartHeatMap/demo/index.html b/templates/ice-design/blocks/ChartHeatMap/demo/index.html new file mode 100644 index 0000000000..9d2d3a663d --- /dev/null +++ b/templates/ice-design/blocks/ChartHeatMap/demo/index.html @@ -0,0 +1,19 @@ + + + + + + + + Document + + + + +
    + + + + + + diff --git a/templates/ice-design/blocks/ChartHeatMap/demo/index.js b/templates/ice-design/blocks/ChartHeatMap/demo/index.js new file mode 100644 index 0000000000..178a766115 --- /dev/null +++ b/templates/ice-design/blocks/ChartHeatMap/demo/index.js @@ -0,0 +1,19 @@ +import React, {Component} from 'react'; +import {render} from 'react-dom'; + +// 载入默认全局样式 normalize 、.clearfix 和一些 mixin 方法等 +import '@icedesign/base/lib/_components/@alife/next-core/lib/index.scss'; + +import DemoLayout from '@icedesign/demo-layout'; +import Block from '../src'; + +const props = { + // ... +}; + +render( + + + , + document.querySelector('#mountNode') +); diff --git a/templates/ice-design/blocks/ChartHeatMap/lib/ChartHeatMap.js b/templates/ice-design/blocks/ChartHeatMap/lib/ChartHeatMap.js new file mode 100644 index 0000000000..3abaf77bed --- /dev/null +++ b/templates/ice-design/blocks/ChartHeatMap/lib/ChartHeatMap.js @@ -0,0 +1,155 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = undefined; + +var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + +var _class, _temp; /* eslint no-plusplus: 0 */ + + +var _react = require('react'); + +var _react2 = _interopRequireDefault(_react); + +var _card = require('@icedesign/card'); + +var _card2 = _interopRequireDefault(_card); + +var _bizcharts = require('bizcharts'); + +require('./ChartHeatMap.scss'); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } + +var ChartHeatMap = (_temp = _class = function (_Component) { + _inherits(ChartHeatMap, _Component); + + function ChartHeatMap(props) { + _classCallCheck(this, ChartHeatMap); + + var _this = _possibleConstructorReturn(this, (ChartHeatMap.__proto__ || Object.getPrototypeOf(ChartHeatMap)).call(this, props)); + + _this.state = {}; + return _this; + } + + _createClass(ChartHeatMap, [{ + key: 'render', + value: function render() { + // 参考:https://alibaba.github.io/BizCharts/ + var data = [[0, 0, 10], [0, 1, 19], [0, 2, 8], [0, 3, 24], [0, 4, 67], [1, 0, 92], [1, 1, 58], [1, 2, 78], [1, 3, 117], [1, 4, 48], [2, 0, 35], [2, 1, 15], [2, 2, 123], [2, 3, 64], [2, 4, 52], [3, 0, 72], [3, 1, 132], [3, 2, 114], [3, 3, 19], [3, 4, 16], [4, 0, 38], [4, 1, 5], [4, 2, 8], [4, 3, 117], [4, 4, 115], [5, 0, 88], [5, 1, 32], [5, 2, 12], [5, 3, 6], [5, 4, 120], [6, 0, 13], [6, 1, 44], [6, 2, 88], [6, 3, 98], [6, 4, 96], [7, 0, 31], [7, 1, 1], [7, 2, 82], [7, 3, 32], [7, 4, 30], [8, 0, 85], [8, 1, 97], [8, 2, 123], [8, 3, 64], [8, 4, 84], [9, 0, 47], [9, 1, 114], [9, 2, 31], [9, 3, 48], [9, 4, 91]]; + + var source = []; + for (var i = 0; i < data.length; i++) { + var item = data[i]; + var obj = {}; + obj.name = item[0]; + obj.day = item[1]; + obj.sales = item[2]; + source.push(obj); + } + + var cols = { + name: { + type: 'cat', + values: ['Alexander', 'Marie', 'Maximilian', 'Sophia', 'Lukas', 'Maria', 'Leon', 'Anna', 'Tim', 'Laura'] + }, + day: { + type: 'cat', + values: ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday'] + } + }; + + return _react2.default.createElement( + 'div', + { className: 'chart-heat-map' }, + _react2.default.createElement( + _card2.default, + null, + _react2.default.createElement( + 'h4', + { style: styles.title }, + '\u8272\u5757\u56FE' + ), + _react2.default.createElement( + _bizcharts.Chart, + { + height: 500, + data: source, + scale: cols, + padding: [20, 80, 120, 85], + forceFit: true + }, + _react2.default.createElement(_bizcharts.Axis, { + name: 'name', + grid: { + align: 'center', + lineStyle: { + lineWidth: 1, + lineDash: null, + stroke: '#f0f0f0' + }, + showFirstLine: true + } + }), + _react2.default.createElement(_bizcharts.Axis, { + name: 'day', + grid: { + align: 'center', + lineStyle: { + lineWidth: 1, + lineDash: null, + stroke: '#f0f0f0' + } + } + }), + _react2.default.createElement(_bizcharts.Tooltip, null), + _react2.default.createElement( + _bizcharts.Geom, + { + type: 'polygon', + position: 'name*day', + color: ['sales', '#BAE7FF-#1890FF-#0050B3'], + style: { stroke: '#fff', lineWidth: 1 } + }, + _react2.default.createElement(_bizcharts.Label, { + content: 'sales', + offset: -2, + textStyle: { + fill: '#fff', + fontWeight: 'bold', + shadowBlur: 2, + shadowColor: 'rgba(0, 0, 0, .45)' + } + }) + ) + ) + ) + ); + } + }]); + + return ChartHeatMap; +}(_react.Component), _class.displayName = 'ChartHeatMap', _class.propTypes = {}, _class.defaultProps = {}, _temp); +exports.default = ChartHeatMap; + + +var styles = { + title: { + margin: '0 0 40px', + fontSize: '18px', + paddingBottom: '15px', + fontWeight: 'bold', + borderBottom: '1px solid #eee' + } +}; +module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/ChartHeatMap/lib/ChartHeatMap.scss b/templates/ice-design/blocks/ChartHeatMap/lib/ChartHeatMap.scss new file mode 100644 index 0000000000..de0d2473c1 --- /dev/null +++ b/templates/ice-design/blocks/ChartHeatMap/lib/ChartHeatMap.scss @@ -0,0 +1,5 @@ +@charset "UTF-8"; + +.chart-heat-map { + +} diff --git a/templates/ice-design/blocks/ChartHeatMap/lib/index.js b/templates/ice-design/blocks/ChartHeatMap/lib/index.js new file mode 100644 index 0000000000..4826620419 --- /dev/null +++ b/templates/ice-design/blocks/ChartHeatMap/lib/index.js @@ -0,0 +1,14 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _ChartHeatMap = require('./ChartHeatMap'); + +var _ChartHeatMap2 = _interopRequireDefault(_ChartHeatMap); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +exports.default = _ChartHeatMap2.default; +module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/ChartHeatMap/mock/api.json b/templates/ice-design/blocks/ChartHeatMap/mock/api.json new file mode 100644 index 0000000000..e706430232 --- /dev/null +++ b/templates/ice-design/blocks/ChartHeatMap/mock/api.json @@ -0,0 +1,4 @@ +{ + "status": "success", + "data": {} +} diff --git a/templates/ice-design/blocks/ChartHeatMap/package.json b/templates/ice-design/blocks/ChartHeatMap/package.json new file mode 100644 index 0000000000..8d204f4979 --- /dev/null +++ b/templates/ice-design/blocks/ChartHeatMap/package.json @@ -0,0 +1,56 @@ +{ + "name": "@icedesign/chart-heat-map-block", + "version": "0.1.0", + "description": "", + "files": [ + "src/", + "demo/", + "lib/", + "mock/" + ], + "author": { + "name": "ICE Team", + "email": "ice-admin@alibaba-inc.com" + }, + "repository": { + "type": "git", + "url": "https://github.com/alibaba/ice" + }, + "license": "MIT", + "keywords": [ + "ice", + "ice-block" + ], + "dependencies": { + "@antv/data-set": "^0.8.0", + "bizcharts": "^3.0.5", + "prop-types": "^15.5.8", + "@icedesign/base": "^0.1.0", + "@icedesign/card": "^0.1.0" + }, + "devDependencies": { + "babel-eslint": "^8.0.3", + "eslint": "^4.13.1", + "eslint-plugin-babel": "^4.1.1", + "eslint-plugin-react": "^7.5.1", + "@icedesign/demo-layout": "^0.1.0", + "eslint-plugin-import": "^2.8.0", + "eslint-config-airbnb": "^16.1.0", + "eslint-plugin-jsx-a11y": "^6.0.3", + "@icedesign/skin": "^0.1.2" + }, + "blockConfig": { + "name": "chart-heat-map", + "description": "", + "chinese": "色块图", + "category": "chart", + "snapshot": "https://img.alicdn.com/tfs/TB1W_FoixrI8KJjy0FpXXb5hVXa-1906-1222.png", + "sketchURL": "", + "icelandURL": "", + "themePackage": "@icedesign/skin" + }, + "scripts": { + "lint": "eslint . --ext '.js,.jsx' --fix", + "prepublish": "npm run lint" + } +} diff --git a/templates/ice-design/blocks/ChartHeatMap/src/ChartHeatMap.jsx b/templates/ice-design/blocks/ChartHeatMap/src/ChartHeatMap.jsx new file mode 100644 index 0000000000..d1c594d11b --- /dev/null +++ b/templates/ice-design/blocks/ChartHeatMap/src/ChartHeatMap.jsx @@ -0,0 +1,173 @@ +/* eslint no-plusplus: 0 */ +import React, { Component } from 'react'; +import IceCard from '@icedesign/card'; +import { Chart, Geom, Axis, Tooltip, Label } from 'bizcharts'; +import './ChartHeatMap.scss'; + +export default class ChartHeatMap extends Component { + static displayName = 'ChartHeatMap'; + + static propTypes = {}; + + static defaultProps = {}; + + constructor(props) { + super(props); + this.state = {}; + } + + render() { + // 参考:https://alibaba.github.io/BizCharts/ + const data = [ + [0, 0, 10], + [0, 1, 19], + [0, 2, 8], + [0, 3, 24], + [0, 4, 67], + [1, 0, 92], + [1, 1, 58], + [1, 2, 78], + [1, 3, 117], + [1, 4, 48], + [2, 0, 35], + [2, 1, 15], + [2, 2, 123], + [2, 3, 64], + [2, 4, 52], + [3, 0, 72], + [3, 1, 132], + [3, 2, 114], + [3, 3, 19], + [3, 4, 16], + [4, 0, 38], + [4, 1, 5], + [4, 2, 8], + [4, 3, 117], + [4, 4, 115], + [5, 0, 88], + [5, 1, 32], + [5, 2, 12], + [5, 3, 6], + [5, 4, 120], + [6, 0, 13], + [6, 1, 44], + [6, 2, 88], + [6, 3, 98], + [6, 4, 96], + [7, 0, 31], + [7, 1, 1], + [7, 2, 82], + [7, 3, 32], + [7, 4, 30], + [8, 0, 85], + [8, 1, 97], + [8, 2, 123], + [8, 3, 64], + [8, 4, 84], + [9, 0, 47], + [9, 1, 114], + [9, 2, 31], + [9, 3, 48], + [9, 4, 91], + ]; + + const source = []; + for (let i = 0; i < data.length; i++) { + const item = data[i]; + const obj = {}; + obj.name = item[0]; + obj.day = item[1]; + obj.sales = item[2]; + source.push(obj); + } + + const cols = { + name: { + type: 'cat', + values: [ + 'Alexander', + 'Marie', + 'Maximilian', + 'Sophia', + 'Lukas', + 'Maria', + 'Leon', + 'Anna', + 'Tim', + 'Laura', + ], + }, + day: { + type: 'cat', + values: ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday'], + }, + }; + + return ( +
    + +

    色块图

    + + + + + + + +
    +
    + ); + } +} + +const styles = { + title: { + margin: '0 0 40px', + fontSize: '18px', + paddingBottom: '15px', + fontWeight: 'bold', + borderBottom: '1px solid #eee', + }, +}; diff --git a/templates/ice-design/blocks/ChartHeatMap/src/ChartHeatMap.scss b/templates/ice-design/blocks/ChartHeatMap/src/ChartHeatMap.scss new file mode 100644 index 0000000000..de0d2473c1 --- /dev/null +++ b/templates/ice-design/blocks/ChartHeatMap/src/ChartHeatMap.scss @@ -0,0 +1,5 @@ +@charset "UTF-8"; + +.chart-heat-map { + +} diff --git a/templates/ice-design/blocks/ChartHeatMap/src/index.js b/templates/ice-design/blocks/ChartHeatMap/src/index.js new file mode 100644 index 0000000000..87eb375103 --- /dev/null +++ b/templates/ice-design/blocks/ChartHeatMap/src/index.js @@ -0,0 +1,3 @@ +import ChartHeatMap from './ChartHeatMap'; + +export default ChartHeatMap; diff --git a/templates/ice-design/blocks/ChartPie/.editorconfig b/templates/ice-design/blocks/ChartPie/.editorconfig new file mode 100644 index 0000000000..22ef5ace54 --- /dev/null +++ b/templates/ice-design/blocks/ChartPie/.editorconfig @@ -0,0 +1,16 @@ +# http://editorconfig.org +root = true + +[*] +indent_style = space +indent_size = 2 +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false + +[makefile] +indent_style = tab +indent_size = 4 diff --git a/templates/ice-design/blocks/ChartPie/.eslintignore b/templates/ice-design/blocks/ChartPie/.eslintignore new file mode 100644 index 0000000000..3b21308fc7 --- /dev/null +++ b/templates/ice-design/blocks/ChartPie/.eslintignore @@ -0,0 +1,12 @@ +# 忽略目录 +build/ +tests/ +demo/ +lib/ + +# node 覆盖率文件 +coverage/ + +# 忽略文件 +**/*-min.js +**/*.min.js \ No newline at end of file diff --git a/templates/ice-design/blocks/ChartPie/.eslintrc b/templates/ice-design/blocks/ChartPie/.eslintrc new file mode 100644 index 0000000000..7a4e5bac48 --- /dev/null +++ b/templates/ice-design/blocks/ChartPie/.eslintrc @@ -0,0 +1,62 @@ +{ + "root": true, + "parser": "babel-eslint", + "extends": "eslint-config-airbnb", + "parserOptions": { + "ecmaVersion": 6, + "ecmaFeatures": { + "jsx": true, + "experimentalObjectRestSpread": true + } + }, + "env": { + "browser": true + }, + "plugins": [ + "react", + "babel" + ], + "rules": { + "react/forbid-prop-types": 0, + "jsx-a11y/label-has-for": 0, + "jsx-a11y/no-static-element-interactions": 0, + "jsx-a11y/anchor-has-content": 0, + "jsx-a11y/click-events-have-key-events": 0, + "jsx-a11y/anchor-is-valid": 0, + "react/no-array-index-key": 0, + "func-names": 0, + "arrow-body-style": 0, + "no-use-before-define": 0, + "react/sort-comp": 0, + "react/prop-types": 0, + "react/jsx-first-prop-new-line": 0, + "react/jsx-filename-extension": [ + 1, + { + "extensions": [ + ".js", + ".jsx" + ] + } + ], + "import/extensions": 0, + "import/no-unresolved": 0, + "import/no-extraneous-dependencies": 0, + "prefer-destructuring": 0, + "no-param-reassign": 0, + "no-return-assign": 0, + "max-len": 0, + "consistent-return": 0, + "no-redeclare": 0, + "react/require-extension": 0, + "react/no-danger": 0, + "comma-dangle": [ + "error", + "always-multiline" + ], + "function-paren-newline": 0, + "object-curly-newline": 0, + "no-restricted-globals": 0, + "react/prefer-stateless-function": 0 + } +} diff --git a/templates/ice-design/blocks/ChartPie/.gitignore b/templates/ice-design/blocks/ChartPie/.gitignore new file mode 100644 index 0000000000..5945feea3c --- /dev/null +++ b/templates/ice-design/blocks/ChartPie/.gitignore @@ -0,0 +1,14 @@ + + *.swp + *.dia~ + .idea/ + .DS_Store + + npm-debug.log + yarn-error.log + node_modules/ + tmp/ + + # happypack 缓存 + .happypack + \ No newline at end of file diff --git a/templates/ice-design/blocks/ChartPie/README.md b/templates/ice-design/blocks/ChartPie/README.md new file mode 100644 index 0000000000..6ac71a6123 --- /dev/null +++ b/templates/ice-design/blocks/ChartPie/README.md @@ -0,0 +1,10 @@ +# chart-pie + +简介:饼图 + +![截图](https://img.alicdn.com/tfs/TB1rfJHivDH8KJjy1XcXXcpdXXa-1910-1022.png) + +## 更多 + +* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) +* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) diff --git a/templates/ice-design/blocks/ChartPie/demo/index.html b/templates/ice-design/blocks/ChartPie/demo/index.html new file mode 100644 index 0000000000..9d2d3a663d --- /dev/null +++ b/templates/ice-design/blocks/ChartPie/demo/index.html @@ -0,0 +1,19 @@ + + + + + + + + Document + + + + +
    + + + + + + diff --git a/templates/ice-design/blocks/ChartPie/demo/index.js b/templates/ice-design/blocks/ChartPie/demo/index.js new file mode 100644 index 0000000000..178a766115 --- /dev/null +++ b/templates/ice-design/blocks/ChartPie/demo/index.js @@ -0,0 +1,19 @@ +import React, {Component} from 'react'; +import {render} from 'react-dom'; + +// 载入默认全局样式 normalize 、.clearfix 和一些 mixin 方法等 +import '@icedesign/base/lib/_components/@alife/next-core/lib/index.scss'; + +import DemoLayout from '@icedesign/demo-layout'; +import Block from '../src'; + +const props = { + // ... +}; + +render( + + + , + document.querySelector('#mountNode') +); diff --git a/templates/ice-design/blocks/ChartPie/lib/ChartPie.js b/templates/ice-design/blocks/ChartPie/lib/ChartPie.js new file mode 100644 index 0000000000..77838111bb --- /dev/null +++ b/templates/ice-design/blocks/ChartPie/lib/ChartPie.js @@ -0,0 +1,138 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = undefined; + +var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + +var _class, _temp; + +var _react = require('react'); + +var _react2 = _interopRequireDefault(_react); + +var _bizcharts = require('bizcharts'); + +var _dataSet = require('@antv/data-set'); + +var _card = require('@icedesign/card'); + +var _card2 = _interopRequireDefault(_card); + +require('./ChartPie.scss'); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } + +var ChartPie = (_temp = _class = function (_Component) { + _inherits(ChartPie, _Component); + + function ChartPie(props) { + _classCallCheck(this, ChartPie); + + var _this = _possibleConstructorReturn(this, (ChartPie.__proto__ || Object.getPrototypeOf(ChartPie)).call(this, props)); + + _this.state = {}; + return _this; + } + + _createClass(ChartPie, [{ + key: 'render', + value: function render() { + // 参考:https://alibaba.github.io/BizCharts/ + var data = [{ item: '事例一', count: 40 }, { item: '事例二', count: 21 }, { item: '事例三', count: 17 }, { item: '事例四', count: 13 }, { item: '事例五', count: 9 }]; + + var dv = new _dataSet.DataView(); + dv.source(data).transform({ + type: 'percent', + field: 'count', + dimension: 'item', + as: 'percent' + }); + + var cols = { + percent: { + formatter: function formatter(val) { + val = val * 100 + '%'; + return val; + } + } + }; + + return _react2.default.createElement( + 'div', + { className: 'chart-pie' }, + _react2.default.createElement( + _card2.default, + null, + _react2.default.createElement( + 'h4', + { style: styles.title }, + '\u997C\u56FE' + ), + _react2.default.createElement( + _bizcharts.Chart, + { + height: 400, + data: dv, + scale: cols, + padding: [80, 100, 80, 80], + forceFit: true + }, + _react2.default.createElement(_bizcharts.Coord, { type: 'theta', radius: 0.75 }), + _react2.default.createElement(_bizcharts.Axis, { name: 'percent' }), + _react2.default.createElement(_bizcharts.Legend, { position: 'right', offsetY: -100, offsetX: -100 }), + _react2.default.createElement(_bizcharts.Tooltip, { + showTitle: false, + itemTpl: '
  • {name}: {value}
  • ' + }), + _react2.default.createElement( + _bizcharts.Geom, + { + type: 'intervalStack', + position: 'percent', + color: 'item', + tooltip: ['item*percent', function (item, percent) { + percent = percent * 100 + '%'; + return { + name: item, + value: percent + }; + }], + style: { lineWidth: 1, stroke: '#fff' } + }, + _react2.default.createElement(_bizcharts.Label, { + content: 'percent', + formatter: function formatter(val, item) { + return item.point.item + ': ' + val; + } + }) + ) + ) + ) + ); + } + }]); + + return ChartPie; +}(_react.Component), _class.displayName = 'ChartPie', _class.propTypes = {}, _class.defaultProps = {}, _temp); +exports.default = ChartPie; + + +var styles = { + title: { + margin: '0 0 40px', + fontSize: '18px', + paddingBottom: '15px', + fontWeight: 'bold', + borderBottom: '1px solid #eee' + } +}; +module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/ChartPie/lib/ChartPie.scss b/templates/ice-design/blocks/ChartPie/lib/ChartPie.scss new file mode 100644 index 0000000000..101a0bac24 --- /dev/null +++ b/templates/ice-design/blocks/ChartPie/lib/ChartPie.scss @@ -0,0 +1,5 @@ +@charset "UTF-8"; + +.chart-pie { + +} diff --git a/templates/ice-design/blocks/ChartPie/lib/index.js b/templates/ice-design/blocks/ChartPie/lib/index.js new file mode 100644 index 0000000000..2389cdd52e --- /dev/null +++ b/templates/ice-design/blocks/ChartPie/lib/index.js @@ -0,0 +1,14 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _ChartPie = require('./ChartPie'); + +var _ChartPie2 = _interopRequireDefault(_ChartPie); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +exports.default = _ChartPie2.default; +module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/ChartPie/mock/api.json b/templates/ice-design/blocks/ChartPie/mock/api.json new file mode 100644 index 0000000000..e706430232 --- /dev/null +++ b/templates/ice-design/blocks/ChartPie/mock/api.json @@ -0,0 +1,4 @@ +{ + "status": "success", + "data": {} +} diff --git a/templates/ice-design/blocks/ChartPie/package.json b/templates/ice-design/blocks/ChartPie/package.json new file mode 100644 index 0000000000..4f26ce9217 --- /dev/null +++ b/templates/ice-design/blocks/ChartPie/package.json @@ -0,0 +1,56 @@ +{ + "name": "@icedesign/chart-pie-block", + "version": "0.1.0", + "description": "", + "files": [ + "src/", + "demo/", + "lib/", + "mock/" + ], + "author": { + "name": "ICE Team", + "email": "ice-admin@alibaba-inc.com" + }, + "repository": { + "type": "git", + "url": "https://github.com/alibaba/ice" + }, + "license": "MIT", + "keywords": [ + "ice", + "ice-block" + ], + "dependencies": { + "@antv/data-set": "^0.8.0", + "bizcharts": "^3.0.5", + "prop-types": "^15.5.8", + "@icedesign/base": "^0.1.0", + "@icedesign/card": "^0.1.0" + }, + "devDependencies": { + "babel-eslint": "^8.0.3", + "eslint": "^4.13.1", + "eslint-plugin-babel": "^4.1.1", + "eslint-plugin-react": "^7.5.1", + "@icedesign/demo-layout": "^0.1.0", + "eslint-plugin-import": "^2.8.0", + "eslint-config-airbnb": "^16.1.0", + "eslint-plugin-jsx-a11y": "^6.0.3", + "@icedesign/skin": "^0.1.2" + }, + "blockConfig": { + "name": "chart-pie", + "description": "", + "chinese": "饼图", + "category": "chart", + "snapshot": "https://img.alicdn.com/tfs/TB1rfJHivDH8KJjy1XcXXcpdXXa-1910-1022.png", + "sketchURL": "", + "icelandURL": "", + "themePackage": "@icedesign/skin" + }, + "scripts": { + "lint": "eslint . --ext '.js,.jsx' --fix", + "prepublish": "npm run lint" + } +} diff --git a/templates/ice-design/blocks/ChartPie/src/ChartPie.jsx b/templates/ice-design/blocks/ChartPie/src/ChartPie.jsx new file mode 100644 index 0000000000..0b8f286a20 --- /dev/null +++ b/templates/ice-design/blocks/ChartPie/src/ChartPie.jsx @@ -0,0 +1,102 @@ +import React, { Component } from 'react'; +import { Chart, Axis, Geom, Tooltip, Coord, Legend, Label } from 'bizcharts'; +import { DataView } from '@antv/data-set'; +import IceCard from '@icedesign/card'; +import './ChartPie.scss'; + +export default class ChartPie extends Component { + static displayName = 'ChartPie'; + + static propTypes = {}; + + static defaultProps = {}; + + constructor(props) { + super(props); + this.state = {}; + } + + render() { + // 参考:https://alibaba.github.io/BizCharts/ + const data = [ + { item: '事例一', count: 40 }, + { item: '事例二', count: 21 }, + { item: '事例三', count: 17 }, + { item: '事例四', count: 13 }, + { item: '事例五', count: 9 }, + ]; + + const dv = new DataView(); + dv.source(data).transform({ + type: 'percent', + field: 'count', + dimension: 'item', + as: 'percent', + }); + + const cols = { + percent: { + formatter: (val) => { + val = `${val * 100}%`; + return val; + }, + }, + }; + + return ( +
    + +

    饼图

    + + + + + + { + percent = `${percent * 100}%`; + return { + name: item, + value: percent, + }; + }, + ]} + style={{ lineWidth: 1, stroke: '#fff' }} + > + + +
    +
    + ); + } +} + +const styles = { + title: { + margin: '0 0 40px', + fontSize: '18px', + paddingBottom: '15px', + fontWeight: 'bold', + borderBottom: '1px solid #eee', + }, +}; diff --git a/templates/ice-design/blocks/ChartPie/src/ChartPie.scss b/templates/ice-design/blocks/ChartPie/src/ChartPie.scss new file mode 100644 index 0000000000..101a0bac24 --- /dev/null +++ b/templates/ice-design/blocks/ChartPie/src/ChartPie.scss @@ -0,0 +1,5 @@ +@charset "UTF-8"; + +.chart-pie { + +} diff --git a/templates/ice-design/blocks/ChartPie/src/index.js b/templates/ice-design/blocks/ChartPie/src/index.js new file mode 100644 index 0000000000..8c18d306ec --- /dev/null +++ b/templates/ice-design/blocks/ChartPie/src/index.js @@ -0,0 +1,3 @@ +import ChartPie from './ChartPie'; + +export default ChartPie; diff --git a/templates/ice-design/blocks/ChartPoint/.editorconfig b/templates/ice-design/blocks/ChartPoint/.editorconfig new file mode 100644 index 0000000000..22ef5ace54 --- /dev/null +++ b/templates/ice-design/blocks/ChartPoint/.editorconfig @@ -0,0 +1,16 @@ +# http://editorconfig.org +root = true + +[*] +indent_style = space +indent_size = 2 +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false + +[makefile] +indent_style = tab +indent_size = 4 diff --git a/templates/ice-design/blocks/ChartPoint/.eslintignore b/templates/ice-design/blocks/ChartPoint/.eslintignore new file mode 100644 index 0000000000..3b21308fc7 --- /dev/null +++ b/templates/ice-design/blocks/ChartPoint/.eslintignore @@ -0,0 +1,12 @@ +# 忽略目录 +build/ +tests/ +demo/ +lib/ + +# node 覆盖率文件 +coverage/ + +# 忽略文件 +**/*-min.js +**/*.min.js \ No newline at end of file diff --git a/templates/ice-design/blocks/ChartPoint/.eslintrc b/templates/ice-design/blocks/ChartPoint/.eslintrc new file mode 100644 index 0000000000..7a4e5bac48 --- /dev/null +++ b/templates/ice-design/blocks/ChartPoint/.eslintrc @@ -0,0 +1,62 @@ +{ + "root": true, + "parser": "babel-eslint", + "extends": "eslint-config-airbnb", + "parserOptions": { + "ecmaVersion": 6, + "ecmaFeatures": { + "jsx": true, + "experimentalObjectRestSpread": true + } + }, + "env": { + "browser": true + }, + "plugins": [ + "react", + "babel" + ], + "rules": { + "react/forbid-prop-types": 0, + "jsx-a11y/label-has-for": 0, + "jsx-a11y/no-static-element-interactions": 0, + "jsx-a11y/anchor-has-content": 0, + "jsx-a11y/click-events-have-key-events": 0, + "jsx-a11y/anchor-is-valid": 0, + "react/no-array-index-key": 0, + "func-names": 0, + "arrow-body-style": 0, + "no-use-before-define": 0, + "react/sort-comp": 0, + "react/prop-types": 0, + "react/jsx-first-prop-new-line": 0, + "react/jsx-filename-extension": [ + 1, + { + "extensions": [ + ".js", + ".jsx" + ] + } + ], + "import/extensions": 0, + "import/no-unresolved": 0, + "import/no-extraneous-dependencies": 0, + "prefer-destructuring": 0, + "no-param-reassign": 0, + "no-return-assign": 0, + "max-len": 0, + "consistent-return": 0, + "no-redeclare": 0, + "react/require-extension": 0, + "react/no-danger": 0, + "comma-dangle": [ + "error", + "always-multiline" + ], + "function-paren-newline": 0, + "object-curly-newline": 0, + "no-restricted-globals": 0, + "react/prefer-stateless-function": 0 + } +} diff --git a/templates/ice-design/blocks/ChartPoint/.gitignore b/templates/ice-design/blocks/ChartPoint/.gitignore new file mode 100644 index 0000000000..5945feea3c --- /dev/null +++ b/templates/ice-design/blocks/ChartPoint/.gitignore @@ -0,0 +1,14 @@ + + *.swp + *.dia~ + .idea/ + .DS_Store + + npm-debug.log + yarn-error.log + node_modules/ + tmp/ + + # happypack 缓存 + .happypack + \ No newline at end of file diff --git a/templates/ice-design/blocks/ChartPoint/README.md b/templates/ice-design/blocks/ChartPoint/README.md new file mode 100644 index 0000000000..8d364993b2 --- /dev/null +++ b/templates/ice-design/blocks/ChartPoint/README.md @@ -0,0 +1,10 @@ +# chart-point + +简介:点图 + +![截图](https://img.alicdn.com/tfs/TB1E1y0f5qAXuNjy1XdXXaYcVXa-1916-1044.png) + +## 更多 + +* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) +* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) diff --git a/templates/ice-design/blocks/ChartPoint/demo/index.html b/templates/ice-design/blocks/ChartPoint/demo/index.html new file mode 100644 index 0000000000..9d2d3a663d --- /dev/null +++ b/templates/ice-design/blocks/ChartPoint/demo/index.html @@ -0,0 +1,19 @@ + + + + + + + + Document + + + + +
    + + + + + + diff --git a/templates/ice-design/blocks/ChartPoint/demo/index.js b/templates/ice-design/blocks/ChartPoint/demo/index.js new file mode 100644 index 0000000000..178a766115 --- /dev/null +++ b/templates/ice-design/blocks/ChartPoint/demo/index.js @@ -0,0 +1,19 @@ +import React, {Component} from 'react'; +import {render} from 'react-dom'; + +// 载入默认全局样式 normalize 、.clearfix 和一些 mixin 方法等 +import '@icedesign/base/lib/_components/@alife/next-core/lib/index.scss'; + +import DemoLayout from '@icedesign/demo-layout'; +import Block from '../src'; + +const props = { + // ... +}; + +render( + + + , + document.querySelector('#mountNode') +); diff --git a/templates/ice-design/blocks/ChartPoint/lib/ChartPoint.js b/templates/ice-design/blocks/ChartPoint/lib/ChartPoint.js new file mode 100644 index 0000000000..2acfb17f46 --- /dev/null +++ b/templates/ice-design/blocks/ChartPoint/lib/ChartPoint.js @@ -0,0 +1,121 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = undefined; + +var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + +var _class, _temp; + +var _react = require('react'); + +var _react2 = _interopRequireDefault(_react); + +var _axios = require('axios'); + +var _axios2 = _interopRequireDefault(_axios); + +var _card = require('@icedesign/card'); + +var _card2 = _interopRequireDefault(_card); + +var _bizcharts = require('bizcharts'); + +require('./ChartPoint.scss'); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } + +var ChartPoint = (_temp = _class = function (_Component) { + _inherits(ChartPoint, _Component); + + function ChartPoint(props) { + _classCallCheck(this, ChartPoint); + + var _this = _possibleConstructorReturn(this, (ChartPoint.__proto__ || Object.getPrototypeOf(ChartPoint)).call(this, props)); + + _this.state = { + data: [] + }; + return _this; + } + + _createClass(ChartPoint, [{ + key: 'componentDidMount', + value: function componentDidMount() { + var _this2 = this; + + _axios2.default.get('/mock/chart-point.json').then(function (response) { + console.log(response.data.data); + _this2.setState({ + data: response.data.data + }); + }).catch(function (error) { + console.log(error); + }); + } + }, { + key: 'render', + value: function render() { + return _react2.default.createElement( + 'div', + { className: 'chart-point' }, + _react2.default.createElement( + _card2.default, + null, + _react2.default.createElement( + 'h4', + { style: styles.title }, + '\u70B9\u56FE' + ), + _react2.default.createElement( + _bizcharts.Chart, + { height: 400, data: this.state.data, forceFit: true }, + _react2.default.createElement(_bizcharts.Tooltip, { + showTitle: false, + crosshairs: { type: 'cross' }, + itemTpl: '
  • {name}
    {value}
  • ' + }), + _react2.default.createElement(_bizcharts.Axis, { name: 'height' }), + _react2.default.createElement(_bizcharts.Axis, { name: 'weight' }), + _react2.default.createElement(_bizcharts.Geom, { + type: 'point', + position: 'height*weight', + opacity: 0.65, + shape: 'circle', + size: 4, + tooltip: ['gender*height*weight', function (gender, height, weight) { + return { + name: gender, + value: height + '(cm), ' + weight + '(kg)' + }; + }] + }) + ) + ) + ); + } + }]); + + return ChartPoint; +}(_react.Component), _class.displayName = 'ChartPoint', _class.propTypes = {}, _class.defaultProps = {}, _temp); +exports.default = ChartPoint; + + +var styles = { + title: { + margin: '0 0 40px', + fontSize: '18px', + paddingBottom: '15px', + fontWeight: 'bold', + borderBottom: '1px solid #eee' + } +}; +module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/ChartPoint/lib/ChartPoint.scss b/templates/ice-design/blocks/ChartPoint/lib/ChartPoint.scss new file mode 100644 index 0000000000..59162ff3b3 --- /dev/null +++ b/templates/ice-design/blocks/ChartPoint/lib/ChartPoint.scss @@ -0,0 +1,5 @@ +@charset "UTF-8"; + +.chart-point { + +} diff --git a/templates/ice-design/blocks/ChartPoint/lib/index.js b/templates/ice-design/blocks/ChartPoint/lib/index.js new file mode 100644 index 0000000000..902f379899 --- /dev/null +++ b/templates/ice-design/blocks/ChartPoint/lib/index.js @@ -0,0 +1,14 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _ChartPoint = require('./ChartPoint'); + +var _ChartPoint2 = _interopRequireDefault(_ChartPoint); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +exports.default = _ChartPoint2.default; +module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/ChartPoint/mock/chart-point.json b/templates/ice-design/blocks/ChartPoint/mock/chart-point.json new file mode 100644 index 0000000000..88a1ca050e --- /dev/null +++ b/templates/ice-design/blocks/ChartPoint/mock/chart-point.json @@ -0,0 +1,2540 @@ +{ + "status": "success", + "data": [ + { + "gender": "female", + "height": 161.2, + "weight": 51.6 + }, + { + "gender": "female", + "height": 167.5, + "weight": 59 + }, + { + "gender": "female", + "height": 159.5, + "weight": 49.2 + }, + { + "gender": "female", + "height": 157, + "weight": 63 + }, + { + "gender": "female", + "height": 155.8, + "weight": 53.6 + }, + { + "gender": "female", + "height": 170, + "weight": 59 + }, + { + "gender": "female", + "height": 159.1, + "weight": 47.6 + }, + { + "gender": "female", + "height": 166, + "weight": 69.8 + }, + { + "gender": "female", + "height": 176.2, + "weight": 66.8 + }, + { + "gender": "female", + "height": 160.2, + "weight": 75.2 + }, + { + "gender": "female", + "height": 172.5, + "weight": 55.2 + }, + { + "gender": "female", + "height": 170.9, + "weight": 54.2 + }, + { + "gender": "female", + "height": 172.9, + "weight": 62.5 + }, + { + "gender": "female", + "height": 153.4, + "weight": 42 + }, + { + "gender": "female", + "height": 160, + "weight": 50 + }, + { + "gender": "female", + "height": 147.2, + "weight": 49.8 + }, + { + "gender": "female", + "height": 168.2, + "weight": 49.2 + }, + { + "gender": "female", + "height": 175, + "weight": 73.2 + }, + { + "gender": "female", + "height": 157, + "weight": 47.8 + }, + { + "gender": "female", + "height": 167.6, + "weight": 68.8 + }, + { + "gender": "female", + "height": 159.5, + "weight": 50.6 + }, + { + "gender": "female", + "height": 175, + "weight": 82.5 + }, + { + "gender": "female", + "height": 166.8, + "weight": 57.2 + }, + { + "gender": "female", + "height": 176.5, + "weight": 87.8 + }, + { + "gender": "female", + "height": 170.2, + "weight": 72.8 + }, + { + "gender": "female", + "height": 174, + "weight": 54.5 + }, + { + "gender": "female", + "height": 173, + "weight": 59.8 + }, + { + "gender": "female", + "height": 179.9, + "weight": 67.3 + }, + { + "gender": "female", + "height": 170.5, + "weight": 67.8 + }, + { + "gender": "female", + "height": 160, + "weight": 47 + }, + { + "gender": "female", + "height": 154.4, + "weight": 46.2 + }, + { + "gender": "female", + "height": 162, + "weight": 55 + }, + { + "gender": "female", + "height": 176.5, + "weight": 83 + }, + { + "gender": "female", + "height": 160, + "weight": 54.4 + }, + { + "gender": "female", + "height": 152, + "weight": 45.8 + }, + { + "gender": "female", + "height": 162.1, + "weight": 53.6 + }, + { + "gender": "female", + "height": 170, + "weight": 73.2 + }, + { + "gender": "female", + "height": 160.2, + "weight": 52.1 + }, + { + "gender": "female", + "height": 161.3, + "weight": 67.9 + }, + { + "gender": "female", + "height": 166.4, + "weight": 56.6 + }, + { + "gender": "female", + "height": 168.9, + "weight": 62.3 + }, + { + "gender": "female", + "height": 163.8, + "weight": 58.5 + }, + { + "gender": "female", + "height": 167.6, + "weight": 54.5 + }, + { + "gender": "female", + "height": 160, + "weight": 50.2 + }, + { + "gender": "female", + "height": 161.3, + "weight": 60.3 + }, + { + "gender": "female", + "height": 167.6, + "weight": 58.3 + }, + { + "gender": "female", + "height": 165.1, + "weight": 56.2 + }, + { + "gender": "female", + "height": 160, + "weight": 50.2 + }, + { + "gender": "female", + "height": 170, + "weight": 72.9 + }, + { + "gender": "female", + "height": 157.5, + "weight": 59.8 + }, + { + "gender": "female", + "height": 167.6, + "weight": 61 + }, + { + "gender": "female", + "height": 160.7, + "weight": 69.1 + }, + { + "gender": "female", + "height": 163.2, + "weight": 55.9 + }, + { + "gender": "female", + "height": 152.4, + "weight": 46.5 + }, + { + "gender": "female", + "height": 157.5, + "weight": 54.3 + }, + { + "gender": "female", + "height": 168.3, + "weight": 54.8 + }, + { + "gender": "female", + "height": 180.3, + "weight": 60.7 + }, + { + "gender": "female", + "height": 165.5, + "weight": 60 + }, + { + "gender": "female", + "height": 165, + "weight": 62 + }, + { + "gender": "female", + "height": 164.5, + "weight": 60.3 + }, + { + "gender": "female", + "height": 156, + "weight": 52.7 + }, + { + "gender": "female", + "height": 160, + "weight": 74.3 + }, + { + "gender": "female", + "height": 163, + "weight": 62 + }, + { + "gender": "female", + "height": 165.7, + "weight": 73.1 + }, + { + "gender": "female", + "height": 161, + "weight": 80 + }, + { + "gender": "female", + "height": 162, + "weight": 54.7 + }, + { + "gender": "female", + "height": 166, + "weight": 53.2 + }, + { + "gender": "female", + "height": 174, + "weight": 75.7 + }, + { + "gender": "female", + "height": 172.7, + "weight": 61.1 + }, + { + "gender": "female", + "height": 167.6, + "weight": 55.7 + }, + { + "gender": "female", + "height": 151.1, + "weight": 48.7 + }, + { + "gender": "female", + "height": 164.5, + "weight": 52.3 + }, + { + "gender": "female", + "height": 163.5, + "weight": 50 + }, + { + "gender": "female", + "height": 152, + "weight": 59.3 + }, + { + "gender": "female", + "height": 169, + "weight": 62.5 + }, + { + "gender": "female", + "height": 164, + "weight": 55.7 + }, + { + "gender": "female", + "height": 161.2, + "weight": 54.8 + }, + { + "gender": "female", + "height": 155, + "weight": 45.9 + }, + { + "gender": "female", + "height": 170, + "weight": 70.6 + }, + { + "gender": "female", + "height": 176.2, + "weight": 67.2 + }, + { + "gender": "female", + "height": 170, + "weight": 69.4 + }, + { + "gender": "female", + "height": 162.5, + "weight": 58.2 + }, + { + "gender": "female", + "height": 170.3, + "weight": 64.8 + }, + { + "gender": "female", + "height": 164.1, + "weight": 71.6 + }, + { + "gender": "female", + "height": 169.5, + "weight": 52.8 + }, + { + "gender": "female", + "height": 163.2, + "weight": 59.8 + }, + { + "gender": "female", + "height": 154.5, + "weight": 49 + }, + { + "gender": "female", + "height": 159.8, + "weight": 50 + }, + { + "gender": "female", + "height": 173.2, + "weight": 69.2 + }, + { + "gender": "female", + "height": 170, + "weight": 55.9 + }, + { + "gender": "female", + "height": 161.4, + "weight": 63.4 + }, + { + "gender": "female", + "height": 169, + "weight": 58.2 + }, + { + "gender": "female", + "height": 166.2, + "weight": 58.6 + }, + { + "gender": "female", + "height": 159.4, + "weight": 45.7 + }, + { + "gender": "female", + "height": 162.5, + "weight": 52.2 + }, + { + "gender": "female", + "height": 159, + "weight": 48.6 + }, + { + "gender": "female", + "height": 162.8, + "weight": 57.8 + }, + { + "gender": "female", + "height": 159, + "weight": 55.6 + }, + { + "gender": "female", + "height": 179.8, + "weight": 66.8 + }, + { + "gender": "female", + "height": 162.9, + "weight": 59.4 + }, + { + "gender": "female", + "height": 161, + "weight": 53.6 + }, + { + "gender": "female", + "height": 151.1, + "weight": 73.2 + }, + { + "gender": "female", + "height": 168.2, + "weight": 53.4 + }, + { + "gender": "female", + "height": 168.9, + "weight": 69 + }, + { + "gender": "female", + "height": 173.2, + "weight": 58.4 + }, + { + "gender": "female", + "height": 171.8, + "weight": 56.2 + }, + { + "gender": "female", + "height": 178, + "weight": 70.6 + }, + { + "gender": "female", + "height": 164.3, + "weight": 59.8 + }, + { + "gender": "female", + "height": 163, + "weight": 72 + }, + { + "gender": "female", + "height": 168.5, + "weight": 65.2 + }, + { + "gender": "female", + "height": 166.8, + "weight": 56.6 + }, + { + "gender": "female", + "height": 172.7, + "weight": 105.2 + }, + { + "gender": "female", + "height": 163.5, + "weight": 51.8 + }, + { + "gender": "female", + "height": 169.4, + "weight": 63.4 + }, + { + "gender": "female", + "height": 167.8, + "weight": 59 + }, + { + "gender": "female", + "height": 159.5, + "weight": 47.6 + }, + { + "gender": "female", + "height": 167.6, + "weight": 63 + }, + { + "gender": "female", + "height": 161.2, + "weight": 55.2 + }, + { + "gender": "female", + "height": 160, + "weight": 45 + }, + { + "gender": "female", + "height": 163.2, + "weight": 54 + }, + { + "gender": "female", + "height": 162.2, + "weight": 50.2 + }, + { + "gender": "female", + "height": 161.3, + "weight": 60.2 + }, + { + "gender": "female", + "height": 149.5, + "weight": 44.8 + }, + { + "gender": "female", + "height": 157.5, + "weight": 58.8 + }, + { + "gender": "female", + "height": 163.2, + "weight": 56.4 + }, + { + "gender": "female", + "height": 172.7, + "weight": 62 + }, + { + "gender": "female", + "height": 155, + "weight": 49.2 + }, + { + "gender": "female", + "height": 156.5, + "weight": 67.2 + }, + { + "gender": "female", + "height": 164, + "weight": 53.8 + }, + { + "gender": "female", + "height": 160.9, + "weight": 54.4 + }, + { + "gender": "female", + "height": 162.8, + "weight": 58 + }, + { + "gender": "female", + "height": 167, + "weight": 59.8 + }, + { + "gender": "female", + "height": 160, + "weight": 54.8 + }, + { + "gender": "female", + "height": 160, + "weight": 43.2 + }, + { + "gender": "female", + "height": 168.9, + "weight": 60.5 + }, + { + "gender": "female", + "height": 158.2, + "weight": 46.4 + }, + { + "gender": "female", + "height": 156, + "weight": 64.4 + }, + { + "gender": "female", + "height": 160, + "weight": 48.8 + }, + { + "gender": "female", + "height": 167.1, + "weight": 62.2 + }, + { + "gender": "female", + "height": 158, + "weight": 55.5 + }, + { + "gender": "female", + "height": 167.6, + "weight": 57.8 + }, + { + "gender": "female", + "height": 156, + "weight": 54.6 + }, + { + "gender": "female", + "height": 162.1, + "weight": 59.2 + }, + { + "gender": "female", + "height": 173.4, + "weight": 52.7 + }, + { + "gender": "female", + "height": 159.8, + "weight": 53.2 + }, + { + "gender": "female", + "height": 170.5, + "weight": 64.5 + }, + { + "gender": "female", + "height": 159.2, + "weight": 51.8 + }, + { + "gender": "female", + "height": 157.5, + "weight": 56 + }, + { + "gender": "female", + "height": 161.3, + "weight": 63.6 + }, + { + "gender": "female", + "height": 162.6, + "weight": 63.2 + }, + { + "gender": "female", + "height": 160, + "weight": 59.5 + }, + { + "gender": "female", + "height": 168.9, + "weight": 56.8 + }, + { + "gender": "female", + "height": 165.1, + "weight": 64.1 + }, + { + "gender": "female", + "height": 162.6, + "weight": 50 + }, + { + "gender": "female", + "height": 165.1, + "weight": 72.3 + }, + { + "gender": "female", + "height": 166.4, + "weight": 55 + }, + { + "gender": "female", + "height": 160, + "weight": 55.9 + }, + { + "gender": "female", + "height": 152.4, + "weight": 60.4 + }, + { + "gender": "female", + "height": 170.2, + "weight": 69.1 + }, + { + "gender": "female", + "height": 162.6, + "weight": 84.5 + }, + { + "gender": "female", + "height": 170.2, + "weight": 55.9 + }, + { + "gender": "female", + "height": 158.8, + "weight": 55.5 + }, + { + "gender": "female", + "height": 172.7, + "weight": 69.5 + }, + { + "gender": "female", + "height": 167.6, + "weight": 76.4 + }, + { + "gender": "female", + "height": 162.6, + "weight": 61.4 + }, + { + "gender": "female", + "height": 167.6, + "weight": 65.9 + }, + { + "gender": "female", + "height": 156.2, + "weight": 58.6 + }, + { + "gender": "female", + "height": 175.2, + "weight": 66.8 + }, + { + "gender": "female", + "height": 172.1, + "weight": 56.6 + }, + { + "gender": "female", + "height": 162.6, + "weight": 58.6 + }, + { + "gender": "female", + "height": 160, + "weight": 55.9 + }, + { + "gender": "female", + "height": 165.1, + "weight": 59.1 + }, + { + "gender": "female", + "height": 182.9, + "weight": 81.8 + }, + { + "gender": "female", + "height": 166.4, + "weight": 70.7 + }, + { + "gender": "female", + "height": 165.1, + "weight": 56.8 + }, + { + "gender": "female", + "height": 177.8, + "weight": 60 + }, + { + "gender": "female", + "height": 165.1, + "weight": 58.2 + }, + { + "gender": "female", + "height": 175.3, + "weight": 72.7 + }, + { + "gender": "female", + "height": 154.9, + "weight": 54.1 + }, + { + "gender": "female", + "height": 158.8, + "weight": 49.1 + }, + { + "gender": "female", + "height": 172.7, + "weight": 75.9 + }, + { + "gender": "female", + "height": 168.9, + "weight": 55 + }, + { + "gender": "female", + "height": 161.3, + "weight": 57.3 + }, + { + "gender": "female", + "height": 167.6, + "weight": 55 + }, + { + "gender": "female", + "height": 165.1, + "weight": 65.5 + }, + { + "gender": "female", + "height": 175.3, + "weight": 65.5 + }, + { + "gender": "female", + "height": 157.5, + "weight": 48.6 + }, + { + "gender": "female", + "height": 163.8, + "weight": 58.6 + }, + { + "gender": "female", + "height": 167.6, + "weight": 63.6 + }, + { + "gender": "female", + "height": 165.1, + "weight": 55.2 + }, + { + "gender": "female", + "height": 165.1, + "weight": 62.7 + }, + { + "gender": "female", + "height": 168.9, + "weight": 56.6 + }, + { + "gender": "female", + "height": 162.6, + "weight": 53.9 + }, + { + "gender": "female", + "height": 164.5, + "weight": 63.2 + }, + { + "gender": "female", + "height": 176.5, + "weight": 73.6 + }, + { + "gender": "female", + "height": 168.9, + "weight": 62 + }, + { + "gender": "female", + "height": 175.3, + "weight": 63.6 + }, + { + "gender": "female", + "height": 159.4, + "weight": 53.2 + }, + { + "gender": "female", + "height": 160, + "weight": 53.4 + }, + { + "gender": "female", + "height": 170.2, + "weight": 55 + }, + { + "gender": "female", + "height": 162.6, + "weight": 70.5 + }, + { + "gender": "female", + "height": 167.6, + "weight": 54.5 + }, + { + "gender": "female", + "height": 162.6, + "weight": 54.5 + }, + { + "gender": "female", + "height": 160.7, + "weight": 55.9 + }, + { + "gender": "female", + "height": 160, + "weight": 59 + }, + { + "gender": "female", + "height": 157.5, + "weight": 63.6 + }, + { + "gender": "female", + "height": 162.6, + "weight": 54.5 + }, + { + "gender": "female", + "height": 152.4, + "weight": 47.3 + }, + { + "gender": "female", + "height": 170.2, + "weight": 67.7 + }, + { + "gender": "female", + "height": 165.1, + "weight": 80.9 + }, + { + "gender": "female", + "height": 172.7, + "weight": 70.5 + }, + { + "gender": "female", + "height": 165.1, + "weight": 60.9 + }, + { + "gender": "female", + "height": 170.2, + "weight": 63.6 + }, + { + "gender": "female", + "height": 170.2, + "weight": 54.5 + }, + { + "gender": "female", + "height": 170.2, + "weight": 59.1 + }, + { + "gender": "female", + "height": 161.3, + "weight": 70.5 + }, + { + "gender": "female", + "height": 167.6, + "weight": 52.7 + }, + { + "gender": "female", + "height": 167.6, + "weight": 62.7 + }, + { + "gender": "female", + "height": 165.1, + "weight": 86.3 + }, + { + "gender": "female", + "height": 162.6, + "weight": 66.4 + }, + { + "gender": "female", + "height": 152.4, + "weight": 67.3 + }, + { + "gender": "female", + "height": 168.9, + "weight": 63 + }, + { + "gender": "female", + "height": 170.2, + "weight": 73.6 + }, + { + "gender": "female", + "height": 175.2, + "weight": 62.3 + }, + { + "gender": "female", + "height": 175.2, + "weight": 57.7 + }, + { + "gender": "female", + "height": 160, + "weight": 55.4 + }, + { + "gender": "female", + "height": 165.1, + "weight": 104.1 + }, + { + "gender": "female", + "height": 174, + "weight": 55.5 + }, + { + "gender": "female", + "height": 170.2, + "weight": 77.3 + }, + { + "gender": "female", + "height": 160, + "weight": 80.5 + }, + { + "gender": "female", + "height": 167.6, + "weight": 64.5 + }, + { + "gender": "female", + "height": 167.6, + "weight": 72.3 + }, + { + "gender": "female", + "height": 167.6, + "weight": 61.4 + }, + { + "gender": "female", + "height": 154.9, + "weight": 58.2 + }, + { + "gender": "female", + "height": 162.6, + "weight": 81.8 + }, + { + "gender": "female", + "height": 175.3, + "weight": 63.6 + }, + { + "gender": "female", + "height": 171.4, + "weight": 53.4 + }, + { + "gender": "female", + "height": 157.5, + "weight": 54.5 + }, + { + "gender": "female", + "height": 165.1, + "weight": 53.6 + }, + { + "gender": "female", + "height": 160, + "weight": 60 + }, + { + "gender": "female", + "height": 174, + "weight": 73.6 + }, + { + "gender": "female", + "height": 162.6, + "weight": 61.4 + }, + { + "gender": "female", + "height": 174, + "weight": 55.5 + }, + { + "gender": "female", + "height": 162.6, + "weight": 63.6 + }, + { + "gender": "female", + "height": 161.3, + "weight": 60.9 + }, + { + "gender": "female", + "height": 156.2, + "weight": 60 + }, + { + "gender": "female", + "height": 149.9, + "weight": 46.8 + }, + { + "gender": "female", + "height": 169.5, + "weight": 57.3 + }, + { + "gender": "female", + "height": 160, + "weight": 64.1 + }, + { + "gender": "female", + "height": 175.3, + "weight": 63.6 + }, + { + "gender": "female", + "height": 169.5, + "weight": 67.3 + }, + { + "gender": "female", + "height": 160, + "weight": 75.5 + }, + { + "gender": "female", + "height": 172.7, + "weight": 68.2 + }, + { + "gender": "female", + "height": 162.6, + "weight": 61.4 + }, + { + "gender": "female", + "height": 157.5, + "weight": 76.8 + }, + { + "gender": "female", + "height": 176.5, + "weight": 71.8 + }, + { + "gender": "female", + "height": 164.4, + "weight": 55.5 + }, + { + "gender": "female", + "height": 160.7, + "weight": 48.6 + }, + { + "gender": "female", + "height": 174, + "weight": 66.4 + }, + { + "gender": "female", + "height": 163.8, + "weight": 67.3 + }, + { + "gender": "male", + "height": 174, + "weight": 65.6 + }, + { + "gender": "male", + "height": 175.3, + "weight": 71.8 + }, + { + "gender": "male", + "height": 193.5, + "weight": 80.7 + }, + { + "gender": "male", + "height": 186.5, + "weight": 72.6 + }, + { + "gender": "male", + "height": 187.2, + "weight": 78.8 + }, + { + "gender": "male", + "height": 181.5, + "weight": 74.8 + }, + { + "gender": "male", + "height": 184, + "weight": 86.4 + }, + { + "gender": "male", + "height": 184.5, + "weight": 78.4 + }, + { + "gender": "male", + "height": 175, + "weight": 62 + }, + { + "gender": "male", + "height": 184, + "weight": 81.6 + }, + { + "gender": "male", + "height": 180, + "weight": 76.6 + }, + { + "gender": "male", + "height": 177.8, + "weight": 83.6 + }, + { + "gender": "male", + "height": 192, + "weight": 90 + }, + { + "gender": "male", + "height": 176, + "weight": 74.6 + }, + { + "gender": "male", + "height": 174, + "weight": 71 + }, + { + "gender": "male", + "height": 184, + "weight": 79.6 + }, + { + "gender": "male", + "height": 192.7, + "weight": 93.8 + }, + { + "gender": "male", + "height": 171.5, + "weight": 70 + }, + { + "gender": "male", + "height": 173, + "weight": 72.4 + }, + { + "gender": "male", + "height": 176, + "weight": 85.9 + }, + { + "gender": "male", + "height": 176, + "weight": 78.8 + }, + { + "gender": "male", + "height": 180.5, + "weight": 77.8 + }, + { + "gender": "male", + "height": 172.7, + "weight": 66.2 + }, + { + "gender": "male", + "height": 176, + "weight": 86.4 + }, + { + "gender": "male", + "height": 173.5, + "weight": 81.8 + }, + { + "gender": "male", + "height": 178, + "weight": 89.6 + }, + { + "gender": "male", + "height": 180.3, + "weight": 82.8 + }, + { + "gender": "male", + "height": 180.3, + "weight": 76.4 + }, + { + "gender": "male", + "height": 164.5, + "weight": 63.2 + }, + { + "gender": "male", + "height": 173, + "weight": 60.9 + }, + { + "gender": "male", + "height": 183.5, + "weight": 74.8 + }, + { + "gender": "male", + "height": 175.5, + "weight": 70 + }, + { + "gender": "male", + "height": 188, + "weight": 72.4 + }, + { + "gender": "male", + "height": 189.2, + "weight": 84.1 + }, + { + "gender": "male", + "height": 172.8, + "weight": 69.1 + }, + { + "gender": "male", + "height": 170, + "weight": 59.5 + }, + { + "gender": "male", + "height": 182, + "weight": 67.2 + }, + { + "gender": "male", + "height": 170, + "weight": 61.3 + }, + { + "gender": "male", + "height": 177.8, + "weight": 68.6 + }, + { + "gender": "male", + "height": 184.2, + "weight": 80.1 + }, + { + "gender": "male", + "height": 186.7, + "weight": 87.8 + }, + { + "gender": "male", + "height": 171.4, + "weight": 84.7 + }, + { + "gender": "male", + "height": 172.7, + "weight": 73.4 + }, + { + "gender": "male", + "height": 175.3, + "weight": 72.1 + }, + { + "gender": "male", + "height": 180.3, + "weight": 82.6 + }, + { + "gender": "male", + "height": 182.9, + "weight": 88.7 + }, + { + "gender": "male", + "height": 188, + "weight": 84.1 + }, + { + "gender": "male", + "height": 177.2, + "weight": 94.1 + }, + { + "gender": "male", + "height": 172.1, + "weight": 74.9 + }, + { + "gender": "male", + "height": 167, + "weight": 59.1 + }, + { + "gender": "male", + "height": 169.5, + "weight": 75.6 + }, + { + "gender": "male", + "height": 174, + "weight": 86.2 + }, + { + "gender": "male", + "height": 172.7, + "weight": 75.3 + }, + { + "gender": "male", + "height": 182.2, + "weight": 87.1 + }, + { + "gender": "male", + "height": 164.1, + "weight": 55.2 + }, + { + "gender": "male", + "height": 163, + "weight": 57 + }, + { + "gender": "male", + "height": 171.5, + "weight": 61.4 + }, + { + "gender": "male", + "height": 184.2, + "weight": 76.8 + }, + { + "gender": "male", + "height": 174, + "weight": 86.8 + }, + { + "gender": "male", + "height": 174, + "weight": 72.2 + }, + { + "gender": "male", + "height": 177, + "weight": 71.6 + }, + { + "gender": "male", + "height": 186, + "weight": 84.8 + }, + { + "gender": "male", + "height": 167, + "weight": 68.2 + }, + { + "gender": "male", + "height": 171.8, + "weight": 66.1 + }, + { + "gender": "male", + "height": 182, + "weight": 72 + }, + { + "gender": "male", + "height": 167, + "weight": 64.6 + }, + { + "gender": "male", + "height": 177.8, + "weight": 74.8 + }, + { + "gender": "male", + "height": 164.5, + "weight": 70 + }, + { + "gender": "male", + "height": 192, + "weight": 101.6 + }, + { + "gender": "male", + "height": 175.5, + "weight": 63.2 + }, + { + "gender": "male", + "height": 171.2, + "weight": 79.1 + }, + { + "gender": "male", + "height": 181.6, + "weight": 78.9 + }, + { + "gender": "male", + "height": 167.4, + "weight": 67.7 + }, + { + "gender": "male", + "height": 181.1, + "weight": 66 + }, + { + "gender": "male", + "height": 177, + "weight": 68.2 + }, + { + "gender": "male", + "height": 174.5, + "weight": 63.9 + }, + { + "gender": "male", + "height": 177.5, + "weight": 72 + }, + { + "gender": "male", + "height": 170.5, + "weight": 56.8 + }, + { + "gender": "male", + "height": 182.4, + "weight": 74.5 + }, + { + "gender": "male", + "height": 197.1, + "weight": 90.9 + }, + { + "gender": "male", + "height": 180.1, + "weight": 93 + }, + { + "gender": "male", + "height": 175.5, + "weight": 80.9 + }, + { + "gender": "male", + "height": 180.6, + "weight": 72.7 + }, + { + "gender": "male", + "height": 184.4, + "weight": 68 + }, + { + "gender": "male", + "height": 175.5, + "weight": 70.9 + }, + { + "gender": "male", + "height": 180.6, + "weight": 72.5 + }, + { + "gender": "male", + "height": 177, + "weight": 72.5 + }, + { + "gender": "male", + "height": 177.1, + "weight": 83.4 + }, + { + "gender": "male", + "height": 181.6, + "weight": 75.5 + }, + { + "gender": "male", + "height": 176.5, + "weight": 73 + }, + { + "gender": "male", + "height": 175, + "weight": 70.2 + }, + { + "gender": "male", + "height": 174, + "weight": 73.4 + }, + { + "gender": "male", + "height": 165.1, + "weight": 70.5 + }, + { + "gender": "male", + "height": 177, + "weight": 68.9 + }, + { + "gender": "male", + "height": 192, + "weight": 102.3 + }, + { + "gender": "male", + "height": 176.5, + "weight": 68.4 + }, + { + "gender": "male", + "height": 169.4, + "weight": 65.9 + }, + { + "gender": "male", + "height": 182.1, + "weight": 75.7 + }, + { + "gender": "male", + "height": 179.8, + "weight": 84.5 + }, + { + "gender": "male", + "height": 175.3, + "weight": 87.7 + }, + { + "gender": "male", + "height": 184.9, + "weight": 86.4 + }, + { + "gender": "male", + "height": 177.3, + "weight": 73.2 + }, + { + "gender": "male", + "height": 167.4, + "weight": 53.9 + }, + { + "gender": "male", + "height": 178.1, + "weight": 72 + }, + { + "gender": "male", + "height": 168.9, + "weight": 55.5 + }, + { + "gender": "male", + "height": 157.2, + "weight": 58.4 + }, + { + "gender": "male", + "height": 180.3, + "weight": 83.2 + }, + { + "gender": "male", + "height": 170.2, + "weight": 72.7 + }, + { + "gender": "male", + "height": 177.8, + "weight": 64.1 + }, + { + "gender": "male", + "height": 172.7, + "weight": 72.3 + }, + { + "gender": "male", + "height": 165.1, + "weight": 65 + }, + { + "gender": "male", + "height": 186.7, + "weight": 86.4 + }, + { + "gender": "male", + "height": 165.1, + "weight": 65 + }, + { + "gender": "male", + "height": 174, + "weight": 88.6 + }, + { + "gender": "male", + "height": 175.3, + "weight": 84.1 + }, + { + "gender": "male", + "height": 185.4, + "weight": 66.8 + }, + { + "gender": "male", + "height": 177.8, + "weight": 75.5 + }, + { + "gender": "male", + "height": 180.3, + "weight": 93.2 + }, + { + "gender": "male", + "height": 180.3, + "weight": 82.7 + }, + { + "gender": "male", + "height": 177.8, + "weight": 58 + }, + { + "gender": "male", + "height": 177.8, + "weight": 79.5 + }, + { + "gender": "male", + "height": 177.8, + "weight": 78.6 + }, + { + "gender": "male", + "height": 177.8, + "weight": 71.8 + }, + { + "gender": "male", + "height": 177.8, + "weight": 116.4 + }, + { + "gender": "male", + "height": 163.8, + "weight": 72.2 + }, + { + "gender": "male", + "height": 188, + "weight": 83.6 + }, + { + "gender": "male", + "height": 198.1, + "weight": 85.5 + }, + { + "gender": "male", + "height": 175.3, + "weight": 90.9 + }, + { + "gender": "male", + "height": 166.4, + "weight": 85.9 + }, + { + "gender": "male", + "height": 190.5, + "weight": 89.1 + }, + { + "gender": "male", + "height": 166.4, + "weight": 75 + }, + { + "gender": "male", + "height": 177.8, + "weight": 77.7 + }, + { + "gender": "male", + "height": 179.7, + "weight": 86.4 + }, + { + "gender": "male", + "height": 172.7, + "weight": 90.9 + }, + { + "gender": "male", + "height": 190.5, + "weight": 73.6 + }, + { + "gender": "male", + "height": 185.4, + "weight": 76.4 + }, + { + "gender": "male", + "height": 168.9, + "weight": 69.1 + }, + { + "gender": "male", + "height": 167.6, + "weight": 84.5 + }, + { + "gender": "male", + "height": 175.3, + "weight": 64.5 + }, + { + "gender": "male", + "height": 170.2, + "weight": 69.1 + }, + { + "gender": "male", + "height": 190.5, + "weight": 108.6 + }, + { + "gender": "male", + "height": 177.8, + "weight": 86.4 + }, + { + "gender": "male", + "height": 190.5, + "weight": 80.9 + }, + { + "gender": "male", + "height": 177.8, + "weight": 87.7 + }, + { + "gender": "male", + "height": 184.2, + "weight": 94.5 + }, + { + "gender": "male", + "height": 176.5, + "weight": 80.2 + }, + { + "gender": "male", + "height": 177.8, + "weight": 72 + }, + { + "gender": "male", + "height": 180.3, + "weight": 71.4 + }, + { + "gender": "male", + "height": 171.4, + "weight": 72.7 + }, + { + "gender": "male", + "height": 172.7, + "weight": 84.1 + }, + { + "gender": "male", + "height": 172.7, + "weight": 76.8 + }, + { + "gender": "male", + "height": 177.8, + "weight": 63.6 + }, + { + "gender": "male", + "height": 177.8, + "weight": 80.9 + }, + { + "gender": "male", + "height": 182.9, + "weight": 80.9 + }, + { + "gender": "male", + "height": 170.2, + "weight": 85.5 + }, + { + "gender": "male", + "height": 167.6, + "weight": 68.6 + }, + { + "gender": "male", + "height": 175.3, + "weight": 67.7 + }, + { + "gender": "male", + "height": 165.1, + "weight": 66.4 + }, + { + "gender": "male", + "height": 185.4, + "weight": 102.3 + }, + { + "gender": "male", + "height": 181.6, + "weight": 70.5 + }, + { + "gender": "male", + "height": 172.7, + "weight": 95.9 + }, + { + "gender": "male", + "height": 190.5, + "weight": 84.1 + }, + { + "gender": "male", + "height": 179.1, + "weight": 87.3 + }, + { + "gender": "male", + "height": 175.3, + "weight": 71.8 + }, + { + "gender": "male", + "height": 170.2, + "weight": 65.9 + }, + { + "gender": "male", + "height": 193, + "weight": 95.9 + }, + { + "gender": "male", + "height": 171.4, + "weight": 91.4 + }, + { + "gender": "male", + "height": 177.8, + "weight": 81.8 + }, + { + "gender": "male", + "height": 177.8, + "weight": 96.8 + }, + { + "gender": "male", + "height": 167.6, + "weight": 69.1 + }, + { + "gender": "male", + "height": 167.6, + "weight": 82.7 + }, + { + "gender": "male", + "height": 180.3, + "weight": 75.5 + }, + { + "gender": "male", + "height": 182.9, + "weight": 79.5 + }, + { + "gender": "male", + "height": 176.5, + "weight": 73.6 + }, + { + "gender": "male", + "height": 186.7, + "weight": 91.8 + }, + { + "gender": "male", + "height": 188, + "weight": 84.1 + }, + { + "gender": "male", + "height": 188, + "weight": 85.9 + }, + { + "gender": "male", + "height": 177.8, + "weight": 81.8 + }, + { + "gender": "male", + "height": 174, + "weight": 82.5 + }, + { + "gender": "male", + "height": 177.8, + "weight": 80.5 + }, + { + "gender": "male", + "height": 171.4, + "weight": 70 + }, + { + "gender": "male", + "height": 185.4, + "weight": 81.8 + }, + { + "gender": "male", + "height": 185.4, + "weight": 84.1 + }, + { + "gender": "male", + "height": 188, + "weight": 90.5 + }, + { + "gender": "male", + "height": 188, + "weight": 91.4 + }, + { + "gender": "male", + "height": 182.9, + "weight": 89.1 + }, + { + "gender": "male", + "height": 176.5, + "weight": 85 + }, + { + "gender": "male", + "height": 175.3, + "weight": 69.1 + }, + { + "gender": "male", + "height": 175.3, + "weight": 73.6 + }, + { + "gender": "male", + "height": 188, + "weight": 80.5 + }, + { + "gender": "male", + "height": 188, + "weight": 82.7 + }, + { + "gender": "male", + "height": 175.3, + "weight": 86.4 + }, + { + "gender": "male", + "height": 170.5, + "weight": 67.7 + }, + { + "gender": "male", + "height": 179.1, + "weight": 92.7 + }, + { + "gender": "male", + "height": 177.8, + "weight": 93.6 + }, + { + "gender": "male", + "height": 175.3, + "weight": 70.9 + }, + { + "gender": "male", + "height": 182.9, + "weight": 75 + }, + { + "gender": "male", + "height": 170.8, + "weight": 93.2 + }, + { + "gender": "male", + "height": 188, + "weight": 93.2 + }, + { + "gender": "male", + "height": 180.3, + "weight": 77.7 + }, + { + "gender": "male", + "height": 177.8, + "weight": 61.4 + }, + { + "gender": "male", + "height": 185.4, + "weight": 94.1 + }, + { + "gender": "male", + "height": 168.9, + "weight": 75 + }, + { + "gender": "male", + "height": 185.4, + "weight": 83.6 + }, + { + "gender": "male", + "height": 180.3, + "weight": 85.5 + }, + { + "gender": "male", + "height": 174, + "weight": 73.9 + }, + { + "gender": "male", + "height": 167.6, + "weight": 66.8 + }, + { + "gender": "male", + "height": 182.9, + "weight": 87.3 + }, + { + "gender": "male", + "height": 160, + "weight": 72.3 + }, + { + "gender": "male", + "height": 180.3, + "weight": 88.6 + }, + { + "gender": "male", + "height": 167.6, + "weight": 75.5 + }, + { + "gender": "male", + "height": 186.7, + "weight": 101.4 + }, + { + "gender": "male", + "height": 175.3, + "weight": 91.1 + }, + { + "gender": "male", + "height": 175.3, + "weight": 67.3 + }, + { + "gender": "male", + "height": 175.9, + "weight": 77.7 + }, + { + "gender": "male", + "height": 175.3, + "weight": 81.8 + }, + { + "gender": "male", + "height": 179.1, + "weight": 75.5 + }, + { + "gender": "male", + "height": 181.6, + "weight": 84.5 + }, + { + "gender": "male", + "height": 177.8, + "weight": 76.6 + }, + { + "gender": "male", + "height": 182.9, + "weight": 85 + }, + { + "gender": "male", + "height": 177.8, + "weight": 102.5 + }, + { + "gender": "male", + "height": 184.2, + "weight": 77.3 + }, + { + "gender": "male", + "height": 179.1, + "weight": 71.8 + }, + { + "gender": "male", + "height": 176.5, + "weight": 87.9 + }, + { + "gender": "male", + "height": 188, + "weight": 94.3 + }, + { + "gender": "male", + "height": 174, + "weight": 70.9 + }, + { + "gender": "male", + "height": 167.6, + "weight": 64.5 + }, + { + "gender": "male", + "height": 170.2, + "weight": 77.3 + }, + { + "gender": "male", + "height": 167.6, + "weight": 72.3 + }, + { + "gender": "male", + "height": 188, + "weight": 87.3 + }, + { + "gender": "male", + "height": 174, + "weight": 80 + }, + { + "gender": "male", + "height": 176.5, + "weight": 82.3 + }, + { + "gender": "male", + "height": 180.3, + "weight": 73.6 + }, + { + "gender": "male", + "height": 167.6, + "weight": 74.1 + }, + { + "gender": "male", + "height": 188, + "weight": 85.9 + }, + { + "gender": "male", + "height": 180.3, + "weight": 73.2 + }, + { + "gender": "male", + "height": 167.6, + "weight": 76.3 + }, + { + "gender": "male", + "height": 183, + "weight": 65.9 + }, + { + "gender": "male", + "height": 183, + "weight": 90.9 + }, + { + "gender": "male", + "height": 179.1, + "weight": 89.1 + }, + { + "gender": "male", + "height": 170.2, + "weight": 62.3 + }, + { + "gender": "male", + "height": 177.8, + "weight": 82.7 + }, + { + "gender": "male", + "height": 179.1, + "weight": 79.1 + }, + { + "gender": "male", + "height": 190.5, + "weight": 98.2 + }, + { + "gender": "male", + "height": 177.8, + "weight": 84.1 + }, + { + "gender": "male", + "height": 180.3, + "weight": 83.2 + }, + { + "gender": "male", + "height": 180.3, + "weight": 83.2 + } + ] +} diff --git a/templates/ice-design/blocks/ChartPoint/package.json b/templates/ice-design/blocks/ChartPoint/package.json new file mode 100644 index 0000000000..be5bfa8058 --- /dev/null +++ b/templates/ice-design/blocks/ChartPoint/package.json @@ -0,0 +1,57 @@ +{ + "name": "@icedesign/chart-point-block", + "version": "0.1.0", + "description": "", + "files": [ + "src/", + "demo/", + "lib/", + "mock/" + ], + "author": { + "name": "ICE Team", + "email": "ice-admin@alibaba-inc.com" + }, + "repository": { + "type": "git", + "url": "https://github.com/alibaba/ice" + }, + "license": "MIT", + "keywords": [ + "ice", + "ice-block" + ], + "dependencies": { + "@antv/data-set": "^0.8.0", + "axios": "^0.17.1", + "bizcharts": "^3.0.5", + "prop-types": "^15.5.8", + "@icedesign/base": "^0.1.0", + "@icedesign/card": "^0.1.0" + }, + "devDependencies": { + "babel-eslint": "^8.0.3", + "eslint": "^4.13.1", + "eslint-plugin-babel": "^4.1.1", + "eslint-plugin-react": "^7.5.1", + "@icedesign/demo-layout": "^0.1.0", + "eslint-plugin-import": "^2.8.0", + "eslint-config-airbnb": "^16.1.0", + "eslint-plugin-jsx-a11y": "^6.0.3", + "@icedesign/skin": "^0.1.2" + }, + "blockConfig": { + "name": "chart-point", + "description": "", + "chinese": "点图", + "category": "chart", + "snapshot": "https://img.alicdn.com/tfs/TB1E1y0f5qAXuNjy1XdXXaYcVXa-1916-1044.png", + "sketchURL": "", + "icelandURL": "", + "themePackage": "@icedesign/skin" + }, + "scripts": { + "lint": "eslint . --ext '.js,.jsx' --fix", + "prepublish": "npm run lint" + } +} diff --git a/templates/ice-design/blocks/ChartPoint/src/ChartPoint.jsx b/templates/ice-design/blocks/ChartPoint/src/ChartPoint.jsx new file mode 100644 index 0000000000..89b63beb3e --- /dev/null +++ b/templates/ice-design/blocks/ChartPoint/src/ChartPoint.jsx @@ -0,0 +1,79 @@ +import React, { Component } from 'react'; +import axios from 'axios'; +import IceCard from '@icedesign/card'; +import { Chart, Geom, Axis, Tooltip } from 'bizcharts'; +import './ChartPoint.scss'; + +export default class ChartPoint extends Component { + static displayName = 'ChartPoint'; + + static propTypes = {}; + + static defaultProps = {}; + + constructor(props) { + super(props); + this.state = { + data: [], + }; + } + + componentDidMount() { + axios + .get('/mock/chart-point.json') + .then((response) => { + console.log(response.data.data); + this.setState({ + data: response.data.data, + }); + }) + .catch((error) => { + console.log(error); + }); + } + + render() { + return ( +
    + +

    点图

    + + + + + { + return { + name: gender, + value: `${height}(cm), ${weight}(kg)`, + }; + }, + ]} + /> + +
    +
    + ); + } +} + +const styles = { + title: { + margin: '0 0 40px', + fontSize: '18px', + paddingBottom: '15px', + fontWeight: 'bold', + borderBottom: '1px solid #eee', + }, +}; diff --git a/templates/ice-design/blocks/ChartPoint/src/ChartPoint.scss b/templates/ice-design/blocks/ChartPoint/src/ChartPoint.scss new file mode 100644 index 0000000000..59162ff3b3 --- /dev/null +++ b/templates/ice-design/blocks/ChartPoint/src/ChartPoint.scss @@ -0,0 +1,5 @@ +@charset "UTF-8"; + +.chart-point { + +} diff --git a/templates/ice-design/blocks/ChartPoint/src/index.js b/templates/ice-design/blocks/ChartPoint/src/index.js new file mode 100644 index 0000000000..9f6ebafa13 --- /dev/null +++ b/templates/ice-design/blocks/ChartPoint/src/index.js @@ -0,0 +1,3 @@ +import ChartPoint from './ChartPoint'; + +export default ChartPoint; diff --git a/templates/ice-design/blocks/ChartRadar/.editorconfig b/templates/ice-design/blocks/ChartRadar/.editorconfig new file mode 100644 index 0000000000..22ef5ace54 --- /dev/null +++ b/templates/ice-design/blocks/ChartRadar/.editorconfig @@ -0,0 +1,16 @@ +# http://editorconfig.org +root = true + +[*] +indent_style = space +indent_size = 2 +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false + +[makefile] +indent_style = tab +indent_size = 4 diff --git a/templates/ice-design/blocks/ChartRadar/.eslintignore b/templates/ice-design/blocks/ChartRadar/.eslintignore new file mode 100644 index 0000000000..3b21308fc7 --- /dev/null +++ b/templates/ice-design/blocks/ChartRadar/.eslintignore @@ -0,0 +1,12 @@ +# 忽略目录 +build/ +tests/ +demo/ +lib/ + +# node 覆盖率文件 +coverage/ + +# 忽略文件 +**/*-min.js +**/*.min.js \ No newline at end of file diff --git a/templates/ice-design/blocks/ChartRadar/.eslintrc b/templates/ice-design/blocks/ChartRadar/.eslintrc new file mode 100644 index 0000000000..7a4e5bac48 --- /dev/null +++ b/templates/ice-design/blocks/ChartRadar/.eslintrc @@ -0,0 +1,62 @@ +{ + "root": true, + "parser": "babel-eslint", + "extends": "eslint-config-airbnb", + "parserOptions": { + "ecmaVersion": 6, + "ecmaFeatures": { + "jsx": true, + "experimentalObjectRestSpread": true + } + }, + "env": { + "browser": true + }, + "plugins": [ + "react", + "babel" + ], + "rules": { + "react/forbid-prop-types": 0, + "jsx-a11y/label-has-for": 0, + "jsx-a11y/no-static-element-interactions": 0, + "jsx-a11y/anchor-has-content": 0, + "jsx-a11y/click-events-have-key-events": 0, + "jsx-a11y/anchor-is-valid": 0, + "react/no-array-index-key": 0, + "func-names": 0, + "arrow-body-style": 0, + "no-use-before-define": 0, + "react/sort-comp": 0, + "react/prop-types": 0, + "react/jsx-first-prop-new-line": 0, + "react/jsx-filename-extension": [ + 1, + { + "extensions": [ + ".js", + ".jsx" + ] + } + ], + "import/extensions": 0, + "import/no-unresolved": 0, + "import/no-extraneous-dependencies": 0, + "prefer-destructuring": 0, + "no-param-reassign": 0, + "no-return-assign": 0, + "max-len": 0, + "consistent-return": 0, + "no-redeclare": 0, + "react/require-extension": 0, + "react/no-danger": 0, + "comma-dangle": [ + "error", + "always-multiline" + ], + "function-paren-newline": 0, + "object-curly-newline": 0, + "no-restricted-globals": 0, + "react/prefer-stateless-function": 0 + } +} diff --git a/templates/ice-design/blocks/ChartRadar/.gitignore b/templates/ice-design/blocks/ChartRadar/.gitignore new file mode 100644 index 0000000000..5945feea3c --- /dev/null +++ b/templates/ice-design/blocks/ChartRadar/.gitignore @@ -0,0 +1,14 @@ + + *.swp + *.dia~ + .idea/ + .DS_Store + + npm-debug.log + yarn-error.log + node_modules/ + tmp/ + + # happypack 缓存 + .happypack + \ No newline at end of file diff --git a/templates/ice-design/blocks/ChartRadar/README.md b/templates/ice-design/blocks/ChartRadar/README.md new file mode 100644 index 0000000000..b0729a0109 --- /dev/null +++ b/templates/ice-design/blocks/ChartRadar/README.md @@ -0,0 +1,10 @@ +# chart-radar + +简介:雷达图 + +![截图](https://img.alicdn.com/tfs/TB1wNkNilfH8KJjy1XbXXbLdXXa-1876-958.png) + +## 更多 + +* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) +* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) diff --git a/templates/ice-design/blocks/ChartRadar/demo/index.html b/templates/ice-design/blocks/ChartRadar/demo/index.html new file mode 100644 index 0000000000..9d2d3a663d --- /dev/null +++ b/templates/ice-design/blocks/ChartRadar/demo/index.html @@ -0,0 +1,19 @@ + + + + + + + + Document + + + + +
    + + + + + + diff --git a/templates/ice-design/blocks/ChartRadar/demo/index.js b/templates/ice-design/blocks/ChartRadar/demo/index.js new file mode 100644 index 0000000000..178a766115 --- /dev/null +++ b/templates/ice-design/blocks/ChartRadar/demo/index.js @@ -0,0 +1,19 @@ +import React, {Component} from 'react'; +import {render} from 'react-dom'; + +// 载入默认全局样式 normalize 、.clearfix 和一些 mixin 方法等 +import '@icedesign/base/lib/_components/@alife/next-core/lib/index.scss'; + +import DemoLayout from '@icedesign/demo-layout'; +import Block from '../src'; + +const props = { + // ... +}; + +render( + + + , + document.querySelector('#mountNode') +); diff --git a/templates/ice-design/blocks/ChartRadar/lib/ChartRadar.js b/templates/ice-design/blocks/ChartRadar/lib/ChartRadar.js new file mode 100644 index 0000000000..2c77d3445f --- /dev/null +++ b/templates/ice-design/blocks/ChartRadar/lib/ChartRadar.js @@ -0,0 +1,147 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = undefined; + +var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + +var _class, _temp; + +var _react = require('react'); + +var _react2 = _interopRequireDefault(_react); + +var _card = require('@icedesign/card'); + +var _card2 = _interopRequireDefault(_card); + +var _bizcharts = require('bizcharts'); + +var _dataSet = require('@antv/data-set'); + +require('./ChartRadar.scss'); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } + +var ChartRadar = (_temp = _class = function (_Component) { + _inherits(ChartRadar, _Component); + + function ChartRadar(props) { + _classCallCheck(this, ChartRadar); + + var _this = _possibleConstructorReturn(this, (ChartRadar.__proto__ || Object.getPrototypeOf(ChartRadar)).call(this, props)); + + _this.state = {}; + return _this; + } + + _createClass(ChartRadar, [{ + key: 'render', + value: function render() { + // 参考:https://alibaba.github.io/BizCharts/ + var data = [{ item: 'Design', a: 70, b: 30 }, { item: 'Development', a: 60, b: 70 }, { item: 'Marketing', a: 50, b: 60 }, { item: 'Users', a: 40, b: 50 }, { item: 'Test', a: 60, b: 70 }, { item: 'Language', a: 70, b: 50 }, { item: 'Technology', a: 50, b: 40 }, { item: 'Support', a: 30, b: 40 }, { item: 'Sales', a: 60, b: 40 }, { item: 'UX', a: 50, b: 60 }]; + + var dv = new _dataSet.DataView().source(data); + dv.transform({ + type: 'fold', + fields: ['a', 'b'], // 展开字段集 + key: 'user', // key字段 + value: 'score' // value字段 + }); + + var cols = { + score: { + min: 0, + max: 80 + } + }; + + return _react2.default.createElement( + 'div', + { className: 'chart-radar' }, + _react2.default.createElement( + _card2.default, + null, + _react2.default.createElement( + 'h4', + { style: styles.title }, + '\u96F7\u8FBE\u56FE' + ), + _react2.default.createElement( + _bizcharts.Chart, + { + height: 400, + data: dv, + padding: [20, 20, 95, 20], + scale: cols, + forceFit: true + }, + _react2.default.createElement(_bizcharts.Coord, { type: 'polar', radius: 0.8 }), + _react2.default.createElement(_bizcharts.Axis, { + name: 'item', + line: null, + tickLine: null, + grid: { + lineStyle: { + lineDash: null + }, + hideFirstLine: false + } + }), + _react2.default.createElement(_bizcharts.Tooltip, null), + _react2.default.createElement(_bizcharts.Axis, { + name: 'score', + line: null, + tickLine: null, + grid: { + type: 'polygon', + lineStyle: { + lineDash: null + }, + alternateColor: 'rgba(0, 0, 0, 0.04)' + } + }), + _react2.default.createElement(_bizcharts.Legend, { name: 'user', marker: 'circle', offset: 30 }), + _react2.default.createElement(_bizcharts.Geom, { type: 'area', position: 'item*score', color: 'user' }), + _react2.default.createElement(_bizcharts.Geom, { type: 'line', position: 'item*score', color: 'user', size: 2 }), + _react2.default.createElement(_bizcharts.Geom, { + type: 'point', + position: 'item*score', + color: 'user', + shape: 'circle', + size: 4, + style: { + stroke: '#fff', + lineWidth: 1, + fillOpacity: 1 + } + }) + ) + ) + ); + } + }]); + + return ChartRadar; +}(_react.Component), _class.displayName = 'ChartRadar', _class.propTypes = {}, _class.defaultProps = {}, _temp); +exports.default = ChartRadar; + + +var styles = { + title: { + margin: '0 0 40px', + fontSize: '18px', + paddingBottom: '15px', + fontWeight: 'bold', + borderBottom: '1px solid #eee' + } +}; +module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/ChartRadar/lib/ChartRadar.scss b/templates/ice-design/blocks/ChartRadar/lib/ChartRadar.scss new file mode 100644 index 0000000000..b1a5967961 --- /dev/null +++ b/templates/ice-design/blocks/ChartRadar/lib/ChartRadar.scss @@ -0,0 +1,5 @@ +@charset "UTF-8"; + +.chart-radar { + +} diff --git a/templates/ice-design/blocks/ChartRadar/lib/index.js b/templates/ice-design/blocks/ChartRadar/lib/index.js new file mode 100644 index 0000000000..5f39ab10d3 --- /dev/null +++ b/templates/ice-design/blocks/ChartRadar/lib/index.js @@ -0,0 +1,14 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _ChartRadar = require('./ChartRadar'); + +var _ChartRadar2 = _interopRequireDefault(_ChartRadar); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +exports.default = _ChartRadar2.default; +module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/ChartRadar/mock/api.json b/templates/ice-design/blocks/ChartRadar/mock/api.json new file mode 100644 index 0000000000..e706430232 --- /dev/null +++ b/templates/ice-design/blocks/ChartRadar/mock/api.json @@ -0,0 +1,4 @@ +{ + "status": "success", + "data": {} +} diff --git a/templates/ice-design/blocks/ChartRadar/package.json b/templates/ice-design/blocks/ChartRadar/package.json new file mode 100644 index 0000000000..2f084a8b31 --- /dev/null +++ b/templates/ice-design/blocks/ChartRadar/package.json @@ -0,0 +1,56 @@ +{ + "name": "@icedesign/chart-radar-block", + "version": "0.1.0", + "description": "", + "files": [ + "src/", + "demo/", + "lib/", + "mock/" + ], + "author": { + "name": "ICE Team", + "email": "ice-admin@alibaba-inc.com" + }, + "repository": { + "type": "git", + "url": "https://github.com/alibaba/ice" + }, + "license": "MIT", + "keywords": [ + "ice", + "ice-block" + ], + "dependencies": { + "@antv/data-set": "^0.8.0", + "bizcharts": "^3.0.5", + "prop-types": "^15.5.8", + "@icedesign/base": "^0.1.0", + "@icedesign/card": "^0.1.0" + }, + "devDependencies": { + "babel-eslint": "^8.0.3", + "eslint": "^4.13.1", + "eslint-plugin-babel": "^4.1.1", + "eslint-plugin-react": "^7.5.1", + "@icedesign/demo-layout": "^0.1.0", + "eslint-plugin-import": "^2.8.0", + "eslint-config-airbnb": "^16.1.0", + "eslint-plugin-jsx-a11y": "^6.0.3", + "@icedesign/skin": "^0.1.2" + }, + "blockConfig": { + "name": "chart-radar", + "description": "雷达图", + "chinese": "雷达图", + "category": "chart", + "snapshot": "https://img.alicdn.com/tfs/TB1wNkNilfH8KJjy1XbXXbLdXXa-1876-958.png", + "sketchURL": "", + "icelandURL": "", + "themePackage": "@icedesign/skin" + }, + "scripts": { + "lint": "eslint . --ext '.js,.jsx' --fix", + "prepublish": "npm run lint" + } +} diff --git a/templates/ice-design/blocks/ChartRadar/src/ChartRadar.jsx b/templates/ice-design/blocks/ChartRadar/src/ChartRadar.jsx new file mode 100644 index 0000000000..9f46c7975b --- /dev/null +++ b/templates/ice-design/blocks/ChartRadar/src/ChartRadar.jsx @@ -0,0 +1,115 @@ +import React, { Component } from 'react'; +import IceCard from '@icedesign/card'; +import { Chart, Geom, Axis, Tooltip, Coord, Legend } from 'bizcharts'; +import { DataView } from '@antv/data-set'; +import './ChartRadar.scss'; + +export default class ChartRadar extends Component { + static displayName = 'ChartRadar'; + + static propTypes = {}; + + static defaultProps = {}; + + constructor(props) { + super(props); + this.state = {}; + } + + render() { + // 参考:https://alibaba.github.io/BizCharts/ + const data = [ + { item: 'Design', a: 70, b: 30 }, + { item: 'Development', a: 60, b: 70 }, + { item: 'Marketing', a: 50, b: 60 }, + { item: 'Users', a: 40, b: 50 }, + { item: 'Test', a: 60, b: 70 }, + { item: 'Language', a: 70, b: 50 }, + { item: 'Technology', a: 50, b: 40 }, + { item: 'Support', a: 30, b: 40 }, + { item: 'Sales', a: 60, b: 40 }, + { item: 'UX', a: 50, b: 60 }, + ]; + + const dv = new DataView().source(data); + dv.transform({ + type: 'fold', + fields: ['a', 'b'], // 展开字段集 + key: 'user', // key字段 + value: 'score', // value字段 + }); + + const cols = { + score: { + min: 0, + max: 80, + }, + }; + + return ( +
    + +

    雷达图

    + + + + + + + + + + +
    +
    + ); + } +} + +const styles = { + title: { + margin: '0 0 40px', + fontSize: '18px', + paddingBottom: '15px', + fontWeight: 'bold', + borderBottom: '1px solid #eee', + }, +}; diff --git a/templates/ice-design/blocks/ChartRadar/src/ChartRadar.scss b/templates/ice-design/blocks/ChartRadar/src/ChartRadar.scss new file mode 100644 index 0000000000..b1a5967961 --- /dev/null +++ b/templates/ice-design/blocks/ChartRadar/src/ChartRadar.scss @@ -0,0 +1,5 @@ +@charset "UTF-8"; + +.chart-radar { + +} diff --git a/templates/ice-design/blocks/ChartRadar/src/index.js b/templates/ice-design/blocks/ChartRadar/src/index.js new file mode 100644 index 0000000000..e5a12b407d --- /dev/null +++ b/templates/ice-design/blocks/ChartRadar/src/index.js @@ -0,0 +1,3 @@ +import ChartRadar from './ChartRadar'; + +export default ChartRadar; diff --git a/templates/ice-design/blocks/ChartRelation/.editorconfig b/templates/ice-design/blocks/ChartRelation/.editorconfig new file mode 100644 index 0000000000..22ef5ace54 --- /dev/null +++ b/templates/ice-design/blocks/ChartRelation/.editorconfig @@ -0,0 +1,16 @@ +# http://editorconfig.org +root = true + +[*] +indent_style = space +indent_size = 2 +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false + +[makefile] +indent_style = tab +indent_size = 4 diff --git a/templates/ice-design/blocks/ChartRelation/.eslintignore b/templates/ice-design/blocks/ChartRelation/.eslintignore new file mode 100644 index 0000000000..3b21308fc7 --- /dev/null +++ b/templates/ice-design/blocks/ChartRelation/.eslintignore @@ -0,0 +1,12 @@ +# 忽略目录 +build/ +tests/ +demo/ +lib/ + +# node 覆盖率文件 +coverage/ + +# 忽略文件 +**/*-min.js +**/*.min.js \ No newline at end of file diff --git a/templates/ice-design/blocks/ChartRelation/.eslintrc b/templates/ice-design/blocks/ChartRelation/.eslintrc new file mode 100644 index 0000000000..7a4e5bac48 --- /dev/null +++ b/templates/ice-design/blocks/ChartRelation/.eslintrc @@ -0,0 +1,62 @@ +{ + "root": true, + "parser": "babel-eslint", + "extends": "eslint-config-airbnb", + "parserOptions": { + "ecmaVersion": 6, + "ecmaFeatures": { + "jsx": true, + "experimentalObjectRestSpread": true + } + }, + "env": { + "browser": true + }, + "plugins": [ + "react", + "babel" + ], + "rules": { + "react/forbid-prop-types": 0, + "jsx-a11y/label-has-for": 0, + "jsx-a11y/no-static-element-interactions": 0, + "jsx-a11y/anchor-has-content": 0, + "jsx-a11y/click-events-have-key-events": 0, + "jsx-a11y/anchor-is-valid": 0, + "react/no-array-index-key": 0, + "func-names": 0, + "arrow-body-style": 0, + "no-use-before-define": 0, + "react/sort-comp": 0, + "react/prop-types": 0, + "react/jsx-first-prop-new-line": 0, + "react/jsx-filename-extension": [ + 1, + { + "extensions": [ + ".js", + ".jsx" + ] + } + ], + "import/extensions": 0, + "import/no-unresolved": 0, + "import/no-extraneous-dependencies": 0, + "prefer-destructuring": 0, + "no-param-reassign": 0, + "no-return-assign": 0, + "max-len": 0, + "consistent-return": 0, + "no-redeclare": 0, + "react/require-extension": 0, + "react/no-danger": 0, + "comma-dangle": [ + "error", + "always-multiline" + ], + "function-paren-newline": 0, + "object-curly-newline": 0, + "no-restricted-globals": 0, + "react/prefer-stateless-function": 0 + } +} diff --git a/templates/ice-design/blocks/ChartRelation/.gitignore b/templates/ice-design/blocks/ChartRelation/.gitignore new file mode 100644 index 0000000000..5945feea3c --- /dev/null +++ b/templates/ice-design/blocks/ChartRelation/.gitignore @@ -0,0 +1,14 @@ + + *.swp + *.dia~ + .idea/ + .DS_Store + + npm-debug.log + yarn-error.log + node_modules/ + tmp/ + + # happypack 缓存 + .happypack + \ No newline at end of file diff --git a/templates/ice-design/blocks/ChartRelation/README.md b/templates/ice-design/blocks/ChartRelation/README.md new file mode 100644 index 0000000000..8c909380b3 --- /dev/null +++ b/templates/ice-design/blocks/ChartRelation/README.md @@ -0,0 +1,11 @@ +# chart-relation + +简介:关系图 + + +![截图](https://img.alicdn.com/tfs/TB1My.6idfJ8KJjy0FeXXXKEXXa-1874-922.png) + +## 更多 + +* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) +* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) diff --git a/templates/ice-design/blocks/ChartRelation/demo/index.html b/templates/ice-design/blocks/ChartRelation/demo/index.html new file mode 100644 index 0000000000..9d2d3a663d --- /dev/null +++ b/templates/ice-design/blocks/ChartRelation/demo/index.html @@ -0,0 +1,19 @@ + + + + + + + + Document + + + + +
    + + + + + + diff --git a/templates/ice-design/blocks/ChartRelation/demo/index.js b/templates/ice-design/blocks/ChartRelation/demo/index.js new file mode 100644 index 0000000000..178a766115 --- /dev/null +++ b/templates/ice-design/blocks/ChartRelation/demo/index.js @@ -0,0 +1,19 @@ +import React, {Component} from 'react'; +import {render} from 'react-dom'; + +// 载入默认全局样式 normalize 、.clearfix 和一些 mixin 方法等 +import '@icedesign/base/lib/_components/@alife/next-core/lib/index.scss'; + +import DemoLayout from '@icedesign/demo-layout'; +import Block from '../src'; + +const props = { + // ... +}; + +render( + + + , + document.querySelector('#mountNode') +); diff --git a/templates/ice-design/blocks/ChartRelation/lib/ChartRelation.js b/templates/ice-design/blocks/ChartRelation/lib/ChartRelation.js new file mode 100644 index 0000000000..b4de111489 --- /dev/null +++ b/templates/ice-design/blocks/ChartRelation/lib/ChartRelation.js @@ -0,0 +1,136 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = undefined; + +var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + +var _class, _temp; + +var _react = require('react'); + +var _react2 = _interopRequireDefault(_react); + +var _card = require('@icedesign/card'); + +var _card2 = _interopRequireDefault(_card); + +var _bizcharts = require('bizcharts'); + +var _dataSet = require('@antv/data-set'); + +require('./ChartRelation.scss'); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } + +var ChartRelation = (_temp = _class = function (_Component) { + _inherits(ChartRelation, _Component); + + function ChartRelation(props) { + _classCallCheck(this, ChartRelation); + + var _this = _possibleConstructorReturn(this, (ChartRelation.__proto__ || Object.getPrototypeOf(ChartRelation)).call(this, props)); + + _this.state = {}; + return _this; + } + + _createClass(ChartRelation, [{ + key: 'render', + value: function render() { + // 参考:https://alibaba.github.io/BizCharts/ + var data = { + name: 'root', + children: [{ name: '分类 1', value: 560 }, { name: '分类 2', value: 500 }, { name: '分类 3', value: 150 }, { name: '分类 4', value: 140 }, { name: '分类 5', value: 115 }, { name: '分类 6', value: 95 }, { name: '分类 7', value: 90 }, { name: '分类 8', value: 75 }, { name: '分类 9', value: 98 }, { name: '分类 10', value: 60 }, { name: '分类 11', value: 45 }, { name: '分类 12', value: 40 }, { name: '分类 13', value: 40 }, { name: '分类 14', value: 35 }, { name: '分类 15', value: 40 }, { name: '分类 16', value: 40 }, { name: '分类 17', value: 40 }, { name: '分类 18', value: 30 }, { name: '分类 19', value: 28 }, { name: '分类 20', value: 16 }] + }; + + var dv = new _dataSet.DataView(); + dv.source(data, { + type: 'hierarchy' + }).transform({ + field: 'value', + type: 'hierarchy.treemap', + tile: 'treemapResquarify', + as: ['x', 'y'] + }); + var nodes = dv.getAllNodes(); + nodes.map(function (node) { + node.name = node.data.name; + node.value = node.data.value; + return node; + }); + + var scale = { + value: { nice: false } + }; + + var htmlStr = '
  • ' + '' + '{name}
    ' + '浏览人数:{count}
    ' + '
  • '; + return _react2.default.createElement( + 'div', + { className: 'chart-relation' }, + _react2.default.createElement( + _card2.default, + null, + _react2.default.createElement( + 'h4', + { style: styles.title }, + '\u9762\u79EF\u56FE' + ), + _react2.default.createElement( + _bizcharts.Chart, + { data: nodes, forceFit: true, height: 400, scale: scale }, + _react2.default.createElement(_bizcharts.Tooltip, { showTitle: false, itemTpl: htmlStr }), + _react2.default.createElement( + _bizcharts.Geom, + { + type: 'polygon', + position: 'x*y', + color: 'name', + tooltip: ['name*value', function (name, count) { + return { + name: name, + count: count + }; + }], + style: { lineWidth: 1, stroke: '#fff' } + }, + _react2.default.createElement(_bizcharts.Label, { + content: 'name', + offset: 0, + textStyle: { textBaseline: 'middle' }, + formatter: function formatter(val) { + if (val !== 'root') { + return val; + } + } + }) + ) + ) + ) + ); + } + }]); + + return ChartRelation; +}(_react.Component), _class.displayName = 'ChartRelation', _class.propTypes = {}, _class.defaultProps = {}, _temp); +exports.default = ChartRelation; + + +var styles = { + title: { + margin: '0 0 40px', + fontSize: '18px', + paddingBottom: '15px', + fontWeight: 'bold', + borderBottom: '1px solid #eee' + } +}; +module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/ChartRelation/lib/ChartRelation.scss b/templates/ice-design/blocks/ChartRelation/lib/ChartRelation.scss new file mode 100644 index 0000000000..ea07891e29 --- /dev/null +++ b/templates/ice-design/blocks/ChartRelation/lib/ChartRelation.scss @@ -0,0 +1,5 @@ +@charset "UTF-8"; + +.chart-relation { + +} diff --git a/templates/ice-design/blocks/ChartRelation/lib/index.js b/templates/ice-design/blocks/ChartRelation/lib/index.js new file mode 100644 index 0000000000..5cc6dbcbeb --- /dev/null +++ b/templates/ice-design/blocks/ChartRelation/lib/index.js @@ -0,0 +1,14 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _ChartRelation = require('./ChartRelation'); + +var _ChartRelation2 = _interopRequireDefault(_ChartRelation); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +exports.default = _ChartRelation2.default; +module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/ChartRelation/mock/api.json b/templates/ice-design/blocks/ChartRelation/mock/api.json new file mode 100644 index 0000000000..e706430232 --- /dev/null +++ b/templates/ice-design/blocks/ChartRelation/mock/api.json @@ -0,0 +1,4 @@ +{ + "status": "success", + "data": {} +} diff --git a/templates/ice-design/blocks/ChartRelation/package.json b/templates/ice-design/blocks/ChartRelation/package.json new file mode 100644 index 0000000000..aae7e69466 --- /dev/null +++ b/templates/ice-design/blocks/ChartRelation/package.json @@ -0,0 +1,56 @@ +{ + "name": "@icedesign/chart-relation-block", + "version": "0.1.0", + "description": "", + "files": [ + "src/", + "demo/", + "lib/", + "mock/" + ], + "author": { + "name": "ICE Team", + "email": "ice-admin@alibaba-inc.com" + }, + "repository": { + "type": "git", + "url": "https://github.com/alibaba/ice" + }, + "license": "MIT", + "keywords": [ + "ice", + "ice-block" + ], + "dependencies": { + "@antv/data-set": "^0.8.0", + "bizcharts": "^3.0.5", + "prop-types": "^15.5.8", + "@icedesign/base": "^0.1.0", + "@icedesign/card": "^0.1.0" + }, + "devDependencies": { + "babel-eslint": "^8.0.3", + "eslint": "^4.13.1", + "eslint-plugin-babel": "^4.1.1", + "eslint-plugin-react": "^7.5.1", + "@icedesign/demo-layout": "^0.1.0", + "eslint-plugin-import": "^2.8.0", + "eslint-config-airbnb": "^16.1.0", + "eslint-plugin-jsx-a11y": "^6.0.3", + "@icedesign/skin": "^0.1.2" + }, + "blockConfig": { + "name": "chart-relation", + "description": "关系图", + "chinese": "关系图", + "category": "chart", + "snapshot": "https://img.alicdn.com/tfs/TB1My.6idfJ8KJjy0FeXXXKEXXa-1874-922.png", + "sketchURL": "", + "icelandURL": "", + "themePackage": "@icedesign/skin" + }, + "scripts": { + "lint": "eslint . --ext '.js,.jsx' --fix", + "prepublish": "npm run lint" + } +} diff --git a/templates/ice-design/blocks/ChartRelation/src/ChartRelation.jsx b/templates/ice-design/blocks/ChartRelation/src/ChartRelation.jsx new file mode 100644 index 0000000000..58f955d145 --- /dev/null +++ b/templates/ice-design/blocks/ChartRelation/src/ChartRelation.jsx @@ -0,0 +1,122 @@ +import React, { Component } from 'react'; +import IceCard from '@icedesign/card'; +import { Chart, Geom, Tooltip, Label } from 'bizcharts'; +import { DataView } from '@antv/data-set'; +import './ChartRelation.scss'; + +export default class ChartRelation extends Component { + static displayName = 'ChartRelation'; + + static propTypes = {}; + + static defaultProps = {}; + + constructor(props) { + super(props); + this.state = {}; + } + + render() { + // 参考:https://alibaba.github.io/BizCharts/ + const data = { + name: 'root', + children: [ + { name: '分类 1', value: 560 }, + { name: '分类 2', value: 500 }, + { name: '分类 3', value: 150 }, + { name: '分类 4', value: 140 }, + { name: '分类 5', value: 115 }, + { name: '分类 6', value: 95 }, + { name: '分类 7', value: 90 }, + { name: '分类 8', value: 75 }, + { name: '分类 9', value: 98 }, + { name: '分类 10', value: 60 }, + { name: '分类 11', value: 45 }, + { name: '分类 12', value: 40 }, + { name: '分类 13', value: 40 }, + { name: '分类 14', value: 35 }, + { name: '分类 15', value: 40 }, + { name: '分类 16', value: 40 }, + { name: '分类 17', value: 40 }, + { name: '分类 18', value: 30 }, + { name: '分类 19', value: 28 }, + { name: '分类 20', value: 16 }, + ], + }; + + const dv = new DataView(); + dv + .source(data, { + type: 'hierarchy', + }) + .transform({ + field: 'value', + type: 'hierarchy.treemap', + tile: 'treemapResquarify', + as: ['x', 'y'], + }); + const nodes = dv.getAllNodes(); + nodes.map((node) => { + node.name = node.data.name; + node.value = node.data.value; + return node; + }); + + const scale = { + value: { nice: false }, + }; + + const htmlStr = + '
  • ' + + '' + + '{name}
    ' + + '浏览人数:{count}
    ' + + '
  • '; + return ( +
    + +

    面积图

    + + + { + return { + name, + count, + }; + }, + ]} + style={{ lineWidth: 1, stroke: '#fff' }} + > + + +
    +
    + ); + } +} + +const styles = { + title: { + margin: '0 0 40px', + fontSize: '18px', + paddingBottom: '15px', + fontWeight: 'bold', + borderBottom: '1px solid #eee', + }, +}; diff --git a/templates/ice-design/blocks/ChartRelation/src/ChartRelation.scss b/templates/ice-design/blocks/ChartRelation/src/ChartRelation.scss new file mode 100644 index 0000000000..ea07891e29 --- /dev/null +++ b/templates/ice-design/blocks/ChartRelation/src/ChartRelation.scss @@ -0,0 +1,5 @@ +@charset "UTF-8"; + +.chart-relation { + +} diff --git a/templates/ice-design/blocks/ChartRelation/src/index.js b/templates/ice-design/blocks/ChartRelation/src/index.js new file mode 100644 index 0000000000..fa346b1103 --- /dev/null +++ b/templates/ice-design/blocks/ChartRelation/src/index.js @@ -0,0 +1,3 @@ +import ChartRelation from './ChartRelation'; + +export default ChartRelation; diff --git a/templates/ice-design/blocks/ChartStock/.editorconfig b/templates/ice-design/blocks/ChartStock/.editorconfig new file mode 100644 index 0000000000..22ef5ace54 --- /dev/null +++ b/templates/ice-design/blocks/ChartStock/.editorconfig @@ -0,0 +1,16 @@ +# http://editorconfig.org +root = true + +[*] +indent_style = space +indent_size = 2 +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false + +[makefile] +indent_style = tab +indent_size = 4 diff --git a/templates/ice-design/blocks/ChartStock/.eslintignore b/templates/ice-design/blocks/ChartStock/.eslintignore new file mode 100644 index 0000000000..3b21308fc7 --- /dev/null +++ b/templates/ice-design/blocks/ChartStock/.eslintignore @@ -0,0 +1,12 @@ +# 忽略目录 +build/ +tests/ +demo/ +lib/ + +# node 覆盖率文件 +coverage/ + +# 忽略文件 +**/*-min.js +**/*.min.js \ No newline at end of file diff --git a/templates/ice-design/blocks/ChartStock/.eslintrc b/templates/ice-design/blocks/ChartStock/.eslintrc new file mode 100644 index 0000000000..7a4e5bac48 --- /dev/null +++ b/templates/ice-design/blocks/ChartStock/.eslintrc @@ -0,0 +1,62 @@ +{ + "root": true, + "parser": "babel-eslint", + "extends": "eslint-config-airbnb", + "parserOptions": { + "ecmaVersion": 6, + "ecmaFeatures": { + "jsx": true, + "experimentalObjectRestSpread": true + } + }, + "env": { + "browser": true + }, + "plugins": [ + "react", + "babel" + ], + "rules": { + "react/forbid-prop-types": 0, + "jsx-a11y/label-has-for": 0, + "jsx-a11y/no-static-element-interactions": 0, + "jsx-a11y/anchor-has-content": 0, + "jsx-a11y/click-events-have-key-events": 0, + "jsx-a11y/anchor-is-valid": 0, + "react/no-array-index-key": 0, + "func-names": 0, + "arrow-body-style": 0, + "no-use-before-define": 0, + "react/sort-comp": 0, + "react/prop-types": 0, + "react/jsx-first-prop-new-line": 0, + "react/jsx-filename-extension": [ + 1, + { + "extensions": [ + ".js", + ".jsx" + ] + } + ], + "import/extensions": 0, + "import/no-unresolved": 0, + "import/no-extraneous-dependencies": 0, + "prefer-destructuring": 0, + "no-param-reassign": 0, + "no-return-assign": 0, + "max-len": 0, + "consistent-return": 0, + "no-redeclare": 0, + "react/require-extension": 0, + "react/no-danger": 0, + "comma-dangle": [ + "error", + "always-multiline" + ], + "function-paren-newline": 0, + "object-curly-newline": 0, + "no-restricted-globals": 0, + "react/prefer-stateless-function": 0 + } +} diff --git a/templates/ice-design/blocks/ChartStock/.gitignore b/templates/ice-design/blocks/ChartStock/.gitignore new file mode 100644 index 0000000000..5945feea3c --- /dev/null +++ b/templates/ice-design/blocks/ChartStock/.gitignore @@ -0,0 +1,14 @@ + + *.swp + *.dia~ + .idea/ + .DS_Store + + npm-debug.log + yarn-error.log + node_modules/ + tmp/ + + # happypack 缓存 + .happypack + \ No newline at end of file diff --git a/templates/ice-design/blocks/ChartStock/README.md b/templates/ice-design/blocks/ChartStock/README.md new file mode 100644 index 0000000000..bfb0e5dd98 --- /dev/null +++ b/templates/ice-design/blocks/ChartStock/README.md @@ -0,0 +1,12 @@ +# chart-stock + +简介:股票图 + + + +![截图](https://img.alicdn.com/tfs/TB1ZYAYigvD8KJjSsplXXaIEFXa-1886-974.png) + +## 更多 + +* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) +* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) diff --git a/templates/ice-design/blocks/ChartStock/demo/index.html b/templates/ice-design/blocks/ChartStock/demo/index.html new file mode 100644 index 0000000000..9d2d3a663d --- /dev/null +++ b/templates/ice-design/blocks/ChartStock/demo/index.html @@ -0,0 +1,19 @@ + + + + + + + + Document + + + + +
    + + + + + + diff --git a/templates/ice-design/blocks/ChartStock/demo/index.js b/templates/ice-design/blocks/ChartStock/demo/index.js new file mode 100644 index 0000000000..178a766115 --- /dev/null +++ b/templates/ice-design/blocks/ChartStock/demo/index.js @@ -0,0 +1,19 @@ +import React, {Component} from 'react'; +import {render} from 'react-dom'; + +// 载入默认全局样式 normalize 、.clearfix 和一些 mixin 方法等 +import '@icedesign/base/lib/_components/@alife/next-core/lib/index.scss'; + +import DemoLayout from '@icedesign/demo-layout'; +import Block from '../src'; + +const props = { + // ... +}; + +render( + + + , + document.querySelector('#mountNode') +); diff --git a/templates/ice-design/blocks/ChartStock/lib/ChartStock.js b/templates/ice-design/blocks/ChartStock/lib/ChartStock.js new file mode 100644 index 0000000000..6812eca6b2 --- /dev/null +++ b/templates/ice-design/blocks/ChartStock/lib/ChartStock.js @@ -0,0 +1,162 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = undefined; + +var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + +var _class, _temp; + +var _react = require('react'); + +var _react2 = _interopRequireDefault(_react); + +var _axios = require('axios'); + +var _axios2 = _interopRequireDefault(_axios); + +var _bizcharts = require('bizcharts'); + +var _dataSet = require('@antv/data-set'); + +var _card = require('@icedesign/card'); + +var _card2 = _interopRequireDefault(_card); + +require('./ChartStock.scss'); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } + +var ChartStock = (_temp = _class = function (_Component) { + _inherits(ChartStock, _Component); + + function ChartStock(props) { + _classCallCheck(this, ChartStock); + + var _this = _possibleConstructorReturn(this, (ChartStock.__proto__ || Object.getPrototypeOf(ChartStock)).call(this, props)); + + _this.state = { + data: [] + }; + return _this; + } + + _createClass(ChartStock, [{ + key: 'componentDidMount', + value: function componentDidMount() { + var _this2 = this; + + _axios2.default.get('/mock/chart-stock.json').then(function (response) { + console.log(response); + _this2.setState({ + data: response.data && response.data.data + }); + }).catch(function (error) { + console.log(error); + }); + } + }, { + key: 'render', + value: function render() { + // 参考:https://alibaba.github.io/BizCharts/ + var cols = { + date: { + type: 'time', + nice: false, + mask: 'MM-DD', + tickCount: 10 + }, + range: { + min: 20, + max: 35, + nice: false, + tickInterval: 2 + }, + mean: { + min: 20, + max: 35, + nice: false + }, + stockRange: { + min: 20, + max: 35, + nice: false + } + }; + + var dv = new _dataSet.DataView(); + dv.source(this.state.data).transform({ + type: 'map', + callback: function callback(obj) { + obj.stockRange = [obj.start, obj.end, obj.highest, obj.lowest]; + return obj; + } + }); + + return _react2.default.createElement( + 'div', + { className: 'chart-stock' }, + _react2.default.createElement( + _card2.default, + null, + _react2.default.createElement( + 'h4', + { style: styles.title }, + '\u9762\u79EF\u56FE' + ), + _react2.default.createElement( + _bizcharts.Chart, + { height: 400, data: dv, scale: cols, forceFit: true }, + _react2.default.createElement(_bizcharts.Axis, { name: 'mean', visible: false }), + _react2.default.createElement(_bizcharts.Legend, null), + _react2.default.createElement(_bizcharts.Axis, { name: 'stockRange', visible: false }), + _react2.default.createElement(_bizcharts.Tooltip, { + showTitle: false, + itemTpl: '
  • {name}
    \u5F00\u76D8\u4EF7\uFF1A{start}
    \u6536\u76D8\u4EF7\uFF1A{end}
    \u6700\u9AD8\u4EF7\uFF1A{max}
    \u6700\u4F4E\u4EF7\uFF1A{min}
    \u6210\u4EA4\u91CF\uFF1A{volumn}
  • ' + }), + _react2.default.createElement(_bizcharts.Geom, { type: 'area', position: 'date*range', color: '#64b5f6' }), + _react2.default.createElement(_bizcharts.Geom, { + type: 'schema', + position: 'date*stockRange', + color: ['trend', function (val) { + if (val === 'up') { + return '#f04864'; + } + + if (val === 'down') { + return '#2fc25b'; + } + }], + tooltip: 'start*end*highest*lowest', + shape: 'candle' + }), + _react2.default.createElement(_bizcharts.Geom, { type: 'line', position: 'date*mean', color: '#FACC14' }) + ) + ) + ); + } + }]); + + return ChartStock; +}(_react.Component), _class.displayName = 'ChartStock', _class.propTypes = {}, _class.defaultProps = {}, _temp); +exports.default = ChartStock; + + +var styles = { + title: { + margin: '0 0 40px', + fontSize: '18px', + paddingBottom: '15px', + fontWeight: 'bold', + borderBottom: '1px solid #eee' + } +}; +module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/ChartStock/lib/ChartStock.scss b/templates/ice-design/blocks/ChartStock/lib/ChartStock.scss new file mode 100644 index 0000000000..e9421a5eb9 --- /dev/null +++ b/templates/ice-design/blocks/ChartStock/lib/ChartStock.scss @@ -0,0 +1,5 @@ +@charset "UTF-8"; + +.chart-stock { + +} diff --git a/templates/ice-design/blocks/ChartStock/lib/index.js b/templates/ice-design/blocks/ChartStock/lib/index.js new file mode 100644 index 0000000000..5709c64aae --- /dev/null +++ b/templates/ice-design/blocks/ChartStock/lib/index.js @@ -0,0 +1,14 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _ChartStock = require('./ChartStock'); + +var _ChartStock2 = _interopRequireDefault(_ChartStock); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +exports.default = _ChartStock2.default; +module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/ChartStock/mock/chart-stock.json b/templates/ice-design/blocks/ChartStock/mock/chart-stock.json new file mode 100644 index 0000000000..9373eb9b99 --- /dev/null +++ b/templates/ice-design/blocks/ChartStock/mock/chart-stock.json @@ -0,0 +1,615 @@ +{ + "status": "success", + "data": [ + { + "date": 1186444800000, + "range": [22.258032033902, 25.4889359321959], + "start": 22.75, + "end": 23.44, + "lowest": 22.69, + "highest": 23.7, + "mean": 23.335, + "trend": "up" + }, + { + "date": 1186358400000, + "range": [22.2381666799343, 25.3786666401314], + "start": 23.03, + "end": 22.97, + "lowest": 22.44, + "highest": 23.15, + "mean": 23.285, + "trend": "down" + }, + { + "date": 1186099200000, + "range": [22.2646752576289, 25.3541494847422], + "start": 23.2, + "end": 22.92, + "lowest": 22.87, + "highest": 23.39, + "mean": 23.2945, + "trend": "down" + }, + { + "date": 1186012800000, + "range": [22.351151387828, 25.293697224344], + "start": 22.65, + "end": 23.36, + "lowest": 22.65, + "highest": 23.7, + "mean": 23.332, + "trend": "up" + }, + { + "date": 1185926400000, + "range": [22.4525580936985, 25.195883812603], + "start": 23.17, + "end": 23.25, + "lowest": 22.85, + "highest": 23.4, + "mean": 23.367, + "trend": "up" + }, + { + "date": 1185840000000, + "range": [22.5727587647169, 25.0649824705663], + "start": 23.88, + "end": 23.25, + "lowest": 23.24, + "highest": 23.93, + "mean": 23.4035, + "trend": "down" + }, + { + "date": 1185753600000, + "range": [22.615611475491, 25.0677770490181], + "start": 23.55, + "end": 23.62, + "lowest": 23.38, + "highest": 23.88, + "mean": 23.433, + "trend": "up" + }, + { + "date": 1185494400000, + "range": [22.6132951454669, 25.0574097090663], + "start": 23.98, + "end": 23.49, + "lowest": 23.47, + "highest": 24.49, + "mean": 23.428, + "trend": "down" + }, + { + "date": 1185408000000, + "range": [22.6301690560976, 25.1586618878048], + "start": 24.4, + "end": 24.03, + "lowest": 23.62, + "highest": 24.49, + "mean": 23.473, + "trend": "down" + }, + { + "date": 1185321600000, + "range": [22.5611733265837, 25.5141533468326], + "start": 25.01, + "end": 24.68, + "lowest": 24.59, + "highest": 25.32, + "mean": 23.5455, + "trend": "down" + }, + { + "date": 1185235200000, + "range": [22.5307199313896, 25.8450601372208], + "start": 24.8, + "end": 24.84, + "lowest": 24.73, + "highest": 25.34, + "mean": 23.6355, + "trend": "up" + }, + { + "date": 1185148800000, + "range": [22.4759114363302, 26.2021771273396], + "start": 25.43, + "end": 24.99, + "lowest": 24.98, + "highest": 25.46, + "mean": 23.718, + "trend": "down" + }, + { + "date": 1184889600000, + "range": [22.3814852838885, 26.6625294322229], + "start": 25.7, + "end": 25.35, + "lowest": 25.2, + "highest": 25.89, + "mean": 23.8085, + "trend": "down" + }, + { + "date": 1184803200000, + "range": [22.329872112167, 27.2562557756661], + "start": 26.32, + "end": 26.03, + "lowest": 25.92, + "highest": 26.34, + "mean": 23.972, + "trend": "down" + }, + { + "date": 1184716800000, + "range": [22.2394563687459, 27.8690872625082], + "start": 26.07, + "end": 26.2, + "lowest": 26.02, + "highest": 26.72, + "mean": 24.116, + "trend": "up" + }, + { + "date": 1184630400000, + "range": [21.9240703578069, 29.0713592843861], + "start": 26.74, + "end": 27.53, + "lowest": 26.7, + "highest": 27.8, + "mean": 24.3065, + "trend": "up" + }, + { + "date": 1184544000000, + "range": [21.812522351567, 29.613955296866], + "start": 26.48, + "end": 26.7, + "lowest": 26.13, + "highest": 26.74, + "mean": 24.413, + "trend": "up" + }, + { + "date": 1184284800000, + "range": [21.7905091214527, 30.0539817570947], + "start": 26.87, + "end": 26.58, + "lowest": 26.5, + "highest": 26.97, + "mean": 24.545, + "trend": "down" + }, + { + "date": 1184198400000, + "range": [21.7801924456099, 30.5486151087802], + "start": 26.7, + "end": 26.96, + "lowest": 26.34, + "highest": 26.97, + "mean": 24.703, + "trend": "up" + }, + { + "date": 1184112000000, + "range": [21.8250372642247, 30.8819254715507], + "start": 27.03, + "end": 26.69, + "lowest": 26.55, + "highest": 27.05, + "mean": 24.844, + "trend": "down" + }, + { + "date": 1184025600000, + "range": [21.9384132069328, 31.1846735861345], + "start": 27.09, + "end": 26.97, + "lowest": 26.96, + "highest": 27.57, + "mean": 25.0205, + "trend": "down" + }, + { + "date": 1183939200000, + "range": [22.161256767491, 31.3734864650181], + "start": 26.92, + "end": 27.2, + "lowest": 26.82, + "highest": 27.33, + "mean": 25.232, + "trend": "up" + }, + { + "date": 1183680000000, + "range": [22.4604705168376, 31.4020589663248], + "start": 27.01, + "end": 27.1, + "lowest": 26.93, + "highest": 27.14, + "mean": 25.441, + "trend": "up" + }, + { + "date": 1183593600000, + "range": [22.7301730821014, 31.4071538357971], + "start": 26.92, + "end": 26.99, + "lowest": 26.9, + "highest": 27.14, + "mean": 25.6225, + "trend": "up" + }, + { + "date": 1183420800000, + "range": [23.075282464312, 31.279435071376], + "start": 26.95, + "end": 27, + "lowest": 26.9, + "highest": 27.25, + "mean": 25.81, + "trend": "up" + }, + { + "date": 1183334400000, + "range": [23.4888727296016, 30.9937545407968], + "start": 27.19, + "end": 26.86, + "lowest": 26.76, + "highest": 27.27, + "mean": 25.9905, + "trend": "down" + }, + { + "date": 1183075200000, + "range": [23.8701829341171, 30.7576341317659], + "start": 27.21, + "end": 27.13, + "lowest": 26.93, + "highest": 27.38, + "mean": 26.166, + "trend": "down" + }, + { + "date": 1182988800000, + "range": [24.37101840654, 30.3199631869199], + "start": 27.44, + "end": 27.25, + "lowest": 27.12, + "highest": 27.49, + "mean": 26.354, + "trend": "down" + }, + { + "date": 1182902400000, + "range": [24.791784218615, 30.01093156277], + "start": 27.51, + "end": 27.58, + "lowest": 27.4, + "highest": 27.66, + "mean": 26.5315, + "trend": "up" + }, + { + "date": 1182816000000, + "range": [25.0933572728443, 29.8622854543115], + "start": 27.73, + "end": 27.71, + "lowest": 27.36, + "highest": 28.18, + "mean": 26.683, + "trend": "down" + }, + { + "date": 1182729600000, + "range": [25.425715490675, 29.61756901865], + "start": 27.6, + "end": 27.64, + "lowest": 27.34, + "highest": 27.77, + "mean": 26.823, + "trend": "up" + }, + { + "date": 1182470400000, + "range": [25.8087650221504, 29.2099699556992], + "start": 27.68, + "end": 27.38, + "lowest": 27.31, + "highest": 27.79, + "mean": 26.9425, + "trend": "down" + }, + { + "date": 1182384000000, + "range": [26.1473627984766, 28.8807744030469], + "start": 27.69, + "end": 27.67, + "lowest": 27.55, + "highest": 27.94, + "mean": 27.0585, + "trend": "down" + }, + { + "date": 1182297600000, + "range": [26.3248926451067, 28.7702147097866], + "start": 27.89, + "end": 27.66, + "lowest": 27.66, + "highest": 28.17, + "mean": 27.14, + "trend": "down" + }, + { + "date": 1182211200000, + "range": [26.4936901365961, 28.6471197268079], + "start": 29.4, + "end": 27.63, + "lowest": 27.54, + "highest": 29.4, + "mean": 27.2115, + "trend": "down" + }, + { + "date": 1182124800000, + "range": [26.4307185674103, 28.8615628651793], + "start": 27.72, + "end": 28.12, + "lowest": 27.5, + "highest": 28.34, + "mean": 27.241, + "trend": "up" + }, + { + "date": 1181865600000, + "range": [26.4999748869929, 28.8145502260142], + "start": 27.49, + "end": 27.31, + "lowest": 27.19, + "highest": 27.52, + "mean": 27.2715, + "trend": "down" + }, + { + "date": 1181779200000, + "range": [26.6042255158895, 28.7140489682209], + "start": 27.38, + "end": 27.3, + "lowest": 27.15, + "highest": 27.64, + "mean": 27.3075, + "trend": "down" + }, + { + "date": 1181692800000, + "range": [26.6431307564529, 28.6992384870942], + "start": 27.12, + "end": 27.38, + "lowest": 26.61, + "highest": 27.41, + "mean": 27.3285, + "trend": "up" + }, + { + "date": 1181606400000, + "range": [26.7121412686811, 28.6152174626379], + "start": 27.3, + "end": 27.05, + "lowest": 26.98, + "highest": 27.66, + "mean": 27.3465, + "trend": "down" + }, + { + "date": 1181520000000, + "range": [26.7550747383997, 28.5863505232005], + "start": 27.27, + "end": 27.35, + "lowest": 27.15, + "highest": 27.52, + "mean": 27.3655, + "trend": "up" + }, + { + "date": 1181260800000, + "range": [26.7692772911645, 28.5864454176711], + "start": 27.02, + "end": 27.39, + "lowest": 26.96, + "highest": 27.45, + "mean": 27.375, + "trend": "up" + }, + { + "date": 1181174400000, + "range": [26.7502625758866, 28.6064748482268], + "start": 27.34, + "end": 26.98, + "lowest": 26.98, + "highest": 27.73, + "mean": 27.369, + "trend": "down" + }, + { + "date": 1181088000000, + "range": [26.7972853923045, 28.5799292153909], + "start": 28.05, + "end": 27.44, + "lowest": 27.3, + "highest": 28.11, + "mean": 27.3915, + "trend": "down" + }, + { + "date": 1181001600000, + "range": [26.783728754541, 28.791542490918], + "start": 28.4, + "end": 28.23, + "lowest": 28.1, + "highest": 28.59, + "mean": 27.453, + "trend": "down" + }, + { + "date": 1180915200000, + "range": [26.7608993321351, 29.0967013357298], + "start": 28.6, + "end": 28.59, + "lowest": 28.4, + "highest": 28.78, + "mean": 27.5395, + "trend": "down" + }, + { + "date": 1180656000000, + "range": [26.6982987495954, 29.4694025008091], + "start": 28.9, + "end": 28.78, + "lowest": 28.61, + "highest": 29.13, + "mean": 27.622, + "trend": "down" + }, + { + "date": 1180569600000, + "range": [26.6761979819332, 29.7311040361336], + "start": 28.76, + "end": 28.7, + "lowest": 28.49, + "highest": 28.85, + "mean": 27.6945, + "trend": "down" + }, + { + "date": 1180483200000, + "range": [26.6753026623903, 29.8528946752193], + "start": 28.19, + "end": 28, + "lowest": 28, + "highest": 28.38, + "mean": 27.7345, + "trend": "down" + }, + { + "date": 1180396800000, + "range": [26.6710036429932, 29.9649927140135], + "start": 28.36, + "end": 28.4, + "lowest": 28.2, + "highest": 28.73, + "mean": 27.769, + "trend": "up" + }, + { + "date": 1180051200000, + "range": [26.6649239816591, 30.1181520366818], + "start": 28.44, + "end": 28.58, + "lowest": 28.34, + "highest": 28.73, + "mean": 27.816, + "trend": "up" + }, + { + "date": 1179964800000, + "range": [26.7069333280674, 30.1886333438653], + "start": 28.65, + "end": 28.41, + "lowest": 28.25, + "highest": 28.88, + "mean": 27.8675, + "trend": "down" + }, + { + "date": 1179878400000, + "range": [26.7142754376783, 30.3149491246434], + "start": 29.1, + "end": 28.61, + "lowest": 28.53, + "highest": 29.37, + "mean": 27.9145, + "trend": "down" + }, + { + "date": 1179792000000, + "range": [26.7071004565491, 30.5182990869018], + "start": 29.33, + "end": 28.92, + "lowest": 28.78, + "highest": 29.35, + "mean": 27.9775, + "trend": "down" + }, + { + "date": 1179705600000, + "range": [26.6717633151346, 30.8469733697308], + "start": 29.62, + "end": 29.35, + "lowest": 29.32, + "highest": 29.86, + "mean": 28.0635, + "trend": "down" + }, + { + "date": 1179446400000, + "range": [26.5706493402039, 31.2937013195923], + "start": 28.9, + "end": 29.75, + "lowest": 28.78, + "highest": 29.8, + "mean": 28.145, + "trend": "up" + }, + { + "date": 1179360000000, + "range": [26.671971354434, 31.2800572911321], + "start": 28.99, + "end": 28.57, + "lowest": 28.49, + "highest": 29.13, + "mean": 28.208, + "trend": "down" + }, + { + "date": 1179273600000, + "range": [26.7676578857188, 31.3751842285624], + "start": 28.89, + "end": 29.21, + "lowest": 28.25, + "highest": 29.37, + "mean": 28.3035, + "trend": "up" + }, + { + "date": 1179187200000, + "range": [26.885335608266, 31.354328783468], + "start": 29.16, + "end": 28.81, + "lowest": 28.75, + "highest": 29.42, + "mean": 28.375, + "trend": "down" + }, + { + "date": 1179100800000, + "range": [27.0767083929953, 31.3105832140094], + "start": 29.79, + "end": 29.5, + "lowest": 29.08, + "highest": 30, + "mean": 28.488, + "trend": "down" + }, + { + "date": 1178841600000, + "range": [27.1574611912334, 31.5540776175331], + "start": 29.62, + "end": 30.05, + "lowest": 29.53, + "highest": 30.08, + "mean": 28.623, + "trend": "up" + } + ] +} diff --git a/templates/ice-design/blocks/ChartStock/package.json b/templates/ice-design/blocks/ChartStock/package.json new file mode 100644 index 0000000000..bb6c440422 --- /dev/null +++ b/templates/ice-design/blocks/ChartStock/package.json @@ -0,0 +1,57 @@ +{ + "name": "@icedesign/chart-stock-block", + "version": "0.1.0", + "description": "", + "files": [ + "src/", + "demo/", + "lib/", + "mock/" + ], + "author": { + "name": "ICE Team", + "email": "ice-admin@alibaba-inc.com" + }, + "repository": { + "type": "git", + "url": "https://github.com/alibaba/ice" + }, + "license": "MIT", + "keywords": [ + "ice", + "ice-block" + ], + "dependencies": { + "@antv/data-set": "^0.8.0", + "axios": "^0.17.1", + "bizcharts": "^3.0.5", + "prop-types": "^15.5.8", + "@icedesign/base": "^0.1.0", + "@icedesign/card": "^0.1.0" + }, + "devDependencies": { + "babel-eslint": "^8.0.3", + "eslint": "^4.13.1", + "eslint-plugin-babel": "^4.1.1", + "eslint-plugin-react": "^7.5.1", + "@icedesign/demo-layout": "^0.1.0", + "eslint-plugin-import": "^2.8.0", + "eslint-config-airbnb": "^16.1.0", + "eslint-plugin-jsx-a11y": "^6.0.3", + "@icedesign/skin": "^0.1.2" + }, + "blockConfig": { + "name": "chart-stock", + "description": "股票图", + "chinese": "股票图", + "category": "chart", + "snapshot": "https://img.alicdn.com/tfs/TB1ZYAYigvD8KJjSsplXXaIEFXa-1886-974.png", + "sketchURL": "", + "icelandURL": "", + "themePackage": "@icedesign/skin" + }, + "scripts": { + "lint": "eslint . --ext '.js,.jsx' --fix", + "prepublish": "npm run lint" + } +} diff --git a/templates/ice-design/blocks/ChartStock/src/ChartStock.jsx b/templates/ice-design/blocks/ChartStock/src/ChartStock.jsx new file mode 100644 index 0000000000..d327b7be0d --- /dev/null +++ b/templates/ice-design/blocks/ChartStock/src/ChartStock.jsx @@ -0,0 +1,119 @@ +import React, { Component } from 'react'; +import axios from 'axios'; +import { Chart, Geom, Axis, Tooltip, Legend } from 'bizcharts'; +import { DataView } from '@antv/data-set'; +import IceCard from '@icedesign/card'; +import './ChartStock.scss'; + +export default class ChartStock extends Component { + static displayName = 'ChartStock'; + + static propTypes = {}; + + static defaultProps = {}; + + constructor(props) { + super(props); + this.state = { + data: [], + }; + } + + componentDidMount() { + axios + .get('/mock/chart-stock.json') + .then((response) => { + console.log(response); + this.setState({ + data: response.data && response.data.data, + }); + }) + .catch((error) => { + console.log(error); + }); + } + + render() { + // 参考:https://alibaba.github.io/BizCharts/ + const cols = { + date: { + type: 'time', + nice: false, + mask: 'MM-DD', + tickCount: 10, + }, + range: { + min: 20, + max: 35, + nice: false, + tickInterval: 2, + }, + mean: { + min: 20, + max: 35, + nice: false, + }, + stockRange: { + min: 20, + max: 35, + nice: false, + }, + }; + + const dv = new DataView(); + dv.source(this.state.data).transform({ + type: 'map', + callback: (obj) => { + obj.stockRange = [obj.start, obj.end, obj.highest, obj.lowest]; + return obj; + }, + }); + + return ( +
    + +

    面积图

    + + + + + + + { + if (val === 'up') { + return '#f04864'; + } + + if (val === 'down') { + return '#2fc25b'; + } + }, + ]} + tooltip="start*end*highest*lowest" + shape="candle" + /> + + +
    +
    + ); + } +} + +const styles = { + title: { + margin: '0 0 40px', + fontSize: '18px', + paddingBottom: '15px', + fontWeight: 'bold', + borderBottom: '1px solid #eee', + }, +}; diff --git a/templates/ice-design/blocks/ChartStock/src/ChartStock.scss b/templates/ice-design/blocks/ChartStock/src/ChartStock.scss new file mode 100644 index 0000000000..e9421a5eb9 --- /dev/null +++ b/templates/ice-design/blocks/ChartStock/src/ChartStock.scss @@ -0,0 +1,5 @@ +@charset "UTF-8"; + +.chart-stock { + +} diff --git a/templates/ice-design/blocks/ChartStock/src/index.js b/templates/ice-design/blocks/ChartStock/src/index.js new file mode 100644 index 0000000000..f8d444870d --- /dev/null +++ b/templates/ice-design/blocks/ChartStock/src/index.js @@ -0,0 +1,3 @@ +import ChartStock from './ChartStock'; + +export default ChartStock; diff --git a/templates/ice-design/blocks/ChartTypeLine/.editorconfig b/templates/ice-design/blocks/ChartTypeLine/.editorconfig new file mode 100644 index 0000000000..22ef5ace54 --- /dev/null +++ b/templates/ice-design/blocks/ChartTypeLine/.editorconfig @@ -0,0 +1,16 @@ +# http://editorconfig.org +root = true + +[*] +indent_style = space +indent_size = 2 +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false + +[makefile] +indent_style = tab +indent_size = 4 diff --git a/templates/ice-design/blocks/ChartTypeLine/.eslintignore b/templates/ice-design/blocks/ChartTypeLine/.eslintignore new file mode 100644 index 0000000000..3b21308fc7 --- /dev/null +++ b/templates/ice-design/blocks/ChartTypeLine/.eslintignore @@ -0,0 +1,12 @@ +# 忽略目录 +build/ +tests/ +demo/ +lib/ + +# node 覆盖率文件 +coverage/ + +# 忽略文件 +**/*-min.js +**/*.min.js \ No newline at end of file diff --git a/templates/ice-design/blocks/ChartTypeLine/.eslintrc b/templates/ice-design/blocks/ChartTypeLine/.eslintrc new file mode 100644 index 0000000000..7a4e5bac48 --- /dev/null +++ b/templates/ice-design/blocks/ChartTypeLine/.eslintrc @@ -0,0 +1,62 @@ +{ + "root": true, + "parser": "babel-eslint", + "extends": "eslint-config-airbnb", + "parserOptions": { + "ecmaVersion": 6, + "ecmaFeatures": { + "jsx": true, + "experimentalObjectRestSpread": true + } + }, + "env": { + "browser": true + }, + "plugins": [ + "react", + "babel" + ], + "rules": { + "react/forbid-prop-types": 0, + "jsx-a11y/label-has-for": 0, + "jsx-a11y/no-static-element-interactions": 0, + "jsx-a11y/anchor-has-content": 0, + "jsx-a11y/click-events-have-key-events": 0, + "jsx-a11y/anchor-is-valid": 0, + "react/no-array-index-key": 0, + "func-names": 0, + "arrow-body-style": 0, + "no-use-before-define": 0, + "react/sort-comp": 0, + "react/prop-types": 0, + "react/jsx-first-prop-new-line": 0, + "react/jsx-filename-extension": [ + 1, + { + "extensions": [ + ".js", + ".jsx" + ] + } + ], + "import/extensions": 0, + "import/no-unresolved": 0, + "import/no-extraneous-dependencies": 0, + "prefer-destructuring": 0, + "no-param-reassign": 0, + "no-return-assign": 0, + "max-len": 0, + "consistent-return": 0, + "no-redeclare": 0, + "react/require-extension": 0, + "react/no-danger": 0, + "comma-dangle": [ + "error", + "always-multiline" + ], + "function-paren-newline": 0, + "object-curly-newline": 0, + "no-restricted-globals": 0, + "react/prefer-stateless-function": 0 + } +} diff --git a/templates/ice-design/blocks/ChartTypeLine/.gitignore b/templates/ice-design/blocks/ChartTypeLine/.gitignore new file mode 100644 index 0000000000..5945feea3c --- /dev/null +++ b/templates/ice-design/blocks/ChartTypeLine/.gitignore @@ -0,0 +1,14 @@ + + *.swp + *.dia~ + .idea/ + .DS_Store + + npm-debug.log + yarn-error.log + node_modules/ + tmp/ + + # happypack 缓存 + .happypack + \ No newline at end of file diff --git a/templates/ice-design/blocks/ChartTypeLine/README.md b/templates/ice-design/blocks/ChartTypeLine/README.md new file mode 100644 index 0000000000..e6f7ccfff8 --- /dev/null +++ b/templates/ice-design/blocks/ChartTypeLine/README.md @@ -0,0 +1,10 @@ +# chart-type-line + +简介:折线图 + +![截图](https://img.alicdn.com/tfs/TB1Of87isLJ8KJjy0FnXXcFDpXa-1906-1044.png) + +## 更多 + +* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) +* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) diff --git a/templates/ice-design/blocks/ChartTypeLine/demo/index.html b/templates/ice-design/blocks/ChartTypeLine/demo/index.html new file mode 100644 index 0000000000..9d2d3a663d --- /dev/null +++ b/templates/ice-design/blocks/ChartTypeLine/demo/index.html @@ -0,0 +1,19 @@ + + + + + + + + Document + + + + +
    + + + + + + diff --git a/templates/ice-design/blocks/ChartTypeLine/demo/index.js b/templates/ice-design/blocks/ChartTypeLine/demo/index.js new file mode 100644 index 0000000000..178a766115 --- /dev/null +++ b/templates/ice-design/blocks/ChartTypeLine/demo/index.js @@ -0,0 +1,19 @@ +import React, {Component} from 'react'; +import {render} from 'react-dom'; + +// 载入默认全局样式 normalize 、.clearfix 和一些 mixin 方法等 +import '@icedesign/base/lib/_components/@alife/next-core/lib/index.scss'; + +import DemoLayout from '@icedesign/demo-layout'; +import Block from '../src'; + +const props = { + // ... +}; + +render( + + + , + document.querySelector('#mountNode') +); diff --git a/templates/ice-design/blocks/ChartTypeLine/lib/ChartTypeLine.js b/templates/ice-design/blocks/ChartTypeLine/lib/ChartTypeLine.js new file mode 100644 index 0000000000..79d26cc851 --- /dev/null +++ b/templates/ice-design/blocks/ChartTypeLine/lib/ChartTypeLine.js @@ -0,0 +1,124 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = undefined; + +var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + +var _class, _temp; + +var _react = require('react'); + +var _react2 = _interopRequireDefault(_react); + +var _bizcharts = require('bizcharts'); + +var _dataSet = require('@antv/data-set'); + +var _card = require('@icedesign/card'); + +var _card2 = _interopRequireDefault(_card); + +require('./ChartTypeLine.scss'); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } + +var ChartTypeLine = (_temp = _class = function (_Component) { + _inherits(ChartTypeLine, _Component); + + function ChartTypeLine(props) { + _classCallCheck(this, ChartTypeLine); + + var _this = _possibleConstructorReturn(this, (ChartTypeLine.__proto__ || Object.getPrototypeOf(ChartTypeLine)).call(this, props)); + + _this.state = {}; + return _this; + } + + _createClass(ChartTypeLine, [{ + key: 'render', + value: function render() { + // 参考:https://alibaba.github.io/BizCharts/ + // 数据源 + var data = [{ month: 'Jan', Tokyo: 7.0, London: 3.9 }, { month: 'Feb', Tokyo: 6.9, London: 4.2 }, { month: 'Mar', Tokyo: 9.5, London: 5.7 }, { month: 'Apr', Tokyo: 14.5, London: 8.5 }, { month: 'May', Tokyo: 18.4, London: 11.9 }, { month: 'Jun', Tokyo: 21.5, London: 15.2 }, { month: 'Jul', Tokyo: 25.2, London: 17.0 }, { month: 'Aug', Tokyo: 26.5, London: 16.6 }, { month: 'Sep', Tokyo: 23.3, London: 14.2 }, { month: 'Oct', Tokyo: 18.3, London: 10.3 }, { month: 'Nov', Tokyo: 13.9, London: 6.6 }, { month: 'Dec', Tokyo: 9.6, London: 4.8 }]; + + // DataSet https://github.com/alibaba/BizCharts/blob/master/doc/tutorial/dataset.md#dataset + var ds = new _dataSet.DataSet(); + var dv = ds.createView().source(data); + dv.transform({ + type: 'fold', + fields: ['Tokyo', 'London'], + key: 'city', + value: 'temperature' + }); + + // 定义度量 + var cols = { + month: { + range: [0, 1] + } + }; + + return _react2.default.createElement( + 'div', + { className: 'chart-type-line' }, + _react2.default.createElement( + _card2.default, + null, + _react2.default.createElement( + 'h4', + { style: styles.title }, + '\u6298\u7EBF\u56FE' + ), + _react2.default.createElement( + _bizcharts.Chart, + { height: 400, data: dv, scale: cols, forceFit: true }, + _react2.default.createElement(_bizcharts.Axis, { name: 'month' }), + _react2.default.createElement(_bizcharts.Axis, { name: 'temperature', label: { formatter: function formatter(val) { + return val + '\xB0C'; + } } }), + _react2.default.createElement(_bizcharts.Tooltip, { crosshairs: { type: 'y' } }), + _react2.default.createElement(_bizcharts.Geom, { + type: 'line', + position: 'month*temperature', + size: 2, + color: 'city', + shape: 'smooth' + }), + _react2.default.createElement(_bizcharts.Geom, { + type: 'point', + position: 'month*temperature', + size: 4, + shape: 'circle', + color: 'city', + style: { stroke: '#fff', lineWidth: 1 } + }) + ) + ) + ); + } + }]); + + return ChartTypeLine; +}(_react.Component), _class.displayName = 'ChartTypeLine', _class.propTypes = {}, _class.defaultProps = {}, _temp); +exports.default = ChartTypeLine; + + +var styles = { + title: { + margin: '0 0 40px', + fontSize: '18px', + paddingBottom: '15px', + fontWeight: 'bold', + borderBottom: '1px solid #eee' + } +}; +module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/ChartTypeLine/lib/ChartTypeLine.scss b/templates/ice-design/blocks/ChartTypeLine/lib/ChartTypeLine.scss new file mode 100644 index 0000000000..9226b8aba3 --- /dev/null +++ b/templates/ice-design/blocks/ChartTypeLine/lib/ChartTypeLine.scss @@ -0,0 +1,5 @@ +@charset "UTF-8"; + +.chart-type-line { + +} diff --git a/templates/ice-design/blocks/ChartTypeLine/lib/index.js b/templates/ice-design/blocks/ChartTypeLine/lib/index.js new file mode 100644 index 0000000000..1401875d81 --- /dev/null +++ b/templates/ice-design/blocks/ChartTypeLine/lib/index.js @@ -0,0 +1,14 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _ChartTypeLine = require('./ChartTypeLine'); + +var _ChartTypeLine2 = _interopRequireDefault(_ChartTypeLine); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +exports.default = _ChartTypeLine2.default; +module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/ChartTypeLine/mock/api.json b/templates/ice-design/blocks/ChartTypeLine/mock/api.json new file mode 100644 index 0000000000..e706430232 --- /dev/null +++ b/templates/ice-design/blocks/ChartTypeLine/mock/api.json @@ -0,0 +1,4 @@ +{ + "status": "success", + "data": {} +} diff --git a/templates/ice-design/blocks/ChartTypeLine/package.json b/templates/ice-design/blocks/ChartTypeLine/package.json new file mode 100644 index 0000000000..a277ff9847 --- /dev/null +++ b/templates/ice-design/blocks/ChartTypeLine/package.json @@ -0,0 +1,56 @@ +{ + "name": "@icedesign/chart-type-line-block", + "version": "0.1.0", + "description": "", + "files": [ + "src/", + "demo/", + "lib/", + "mock/" + ], + "author": { + "name": "ICE Team", + "email": "ice-admin@alibaba-inc.com" + }, + "repository": { + "type": "git", + "url": "https://github.com/alibaba/ice" + }, + "license": "MIT", + "keywords": [ + "ice", + "ice-block" + ], + "dependencies": { + "@antv/data-set": "^0.8.0", + "bizcharts": "^3.0.5", + "prop-types": "^15.5.8", + "@icedesign/base": "^0.1.0", + "@icedesign/card": "^0.1.0" + }, + "devDependencies": { + "babel-eslint": "^8.0.3", + "eslint": "^4.13.1", + "eslint-plugin-babel": "^4.1.1", + "eslint-plugin-react": "^7.5.1", + "@icedesign/demo-layout": "^0.1.0", + "eslint-plugin-import": "^2.8.0", + "eslint-config-airbnb": "^16.1.0", + "eslint-plugin-jsx-a11y": "^6.0.3", + "@icedesign/skin": "^0.1.2" + }, + "blockConfig": { + "name": "chart-type-line", + "description": "", + "chinese": "折线图", + "category": "chart", + "snapshot": "https://img.alicdn.com/tfs/TB1Of87isLJ8KJjy0FnXXcFDpXa-1906-1044.png", + "sketchURL": "", + "icelandURL": "", + "themePackage": "@icedesign/skin" + }, + "scripts": { + "lint": "eslint . --ext '.js,.jsx' --fix", + "prepublish": "npm run lint" + } +} diff --git a/templates/ice-design/blocks/ChartTypeLine/src/ChartTypeLine.jsx b/templates/ice-design/blocks/ChartTypeLine/src/ChartTypeLine.jsx new file mode 100644 index 0000000000..5eb6f79710 --- /dev/null +++ b/templates/ice-design/blocks/ChartTypeLine/src/ChartTypeLine.jsx @@ -0,0 +1,92 @@ +import React, { Component } from 'react'; +import { Chart, Axis, Geom, Tooltip } from 'bizcharts'; +import { DataSet } from '@antv/data-set'; +import IceCard from '@icedesign/card'; +import './ChartTypeLine.scss'; + +export default class ChartTypeLine extends Component { + static displayName = 'ChartTypeLine'; + + static propTypes = {}; + + static defaultProps = {}; + + constructor(props) { + super(props); + this.state = {}; + } + + render() { + // 参考:https://alibaba.github.io/BizCharts/ + // 数据源 + const data = [ + { month: 'Jan', Tokyo: 7.0, London: 3.9 }, + { month: 'Feb', Tokyo: 6.9, London: 4.2 }, + { month: 'Mar', Tokyo: 9.5, London: 5.7 }, + { month: 'Apr', Tokyo: 14.5, London: 8.5 }, + { month: 'May', Tokyo: 18.4, London: 11.9 }, + { month: 'Jun', Tokyo: 21.5, London: 15.2 }, + { month: 'Jul', Tokyo: 25.2, London: 17.0 }, + { month: 'Aug', Tokyo: 26.5, London: 16.6 }, + { month: 'Sep', Tokyo: 23.3, London: 14.2 }, + { month: 'Oct', Tokyo: 18.3, London: 10.3 }, + { month: 'Nov', Tokyo: 13.9, London: 6.6 }, + { month: 'Dec', Tokyo: 9.6, London: 4.8 }, + ]; + + // DataSet https://github.com/alibaba/BizCharts/blob/master/doc/tutorial/dataset.md#dataset + const ds = new DataSet(); + const dv = ds.createView().source(data); + dv.transform({ + type: 'fold', + fields: ['Tokyo', 'London'], + key: 'city', + value: 'temperature', + }); + + // 定义度量 + const cols = { + month: { + range: [0, 1], + }, + }; + + return ( +
    + +

    折线图

    + + + `${val}°C` }} /> + + + + +
    +
    + ); + } +} + +const styles = { + title: { + margin: '0 0 40px', + fontSize: '18px', + paddingBottom: '15px', + fontWeight: 'bold', + borderBottom: '1px solid #eee', + }, +}; diff --git a/templates/ice-design/blocks/ChartTypeLine/src/ChartTypeLine.scss b/templates/ice-design/blocks/ChartTypeLine/src/ChartTypeLine.scss new file mode 100644 index 0000000000..9226b8aba3 --- /dev/null +++ b/templates/ice-design/blocks/ChartTypeLine/src/ChartTypeLine.scss @@ -0,0 +1,5 @@ +@charset "UTF-8"; + +.chart-type-line { + +} diff --git a/templates/ice-design/blocks/ChartTypeLine/src/index.js b/templates/ice-design/blocks/ChartTypeLine/src/index.js new file mode 100644 index 0000000000..bb333d5b70 --- /dev/null +++ b/templates/ice-design/blocks/ChartTypeLine/src/index.js @@ -0,0 +1,3 @@ +import ChartTypeLine from './ChartTypeLine'; + +export default ChartTypeLine; diff --git a/templates/ice-design/blocks/CollapseCard/.editorconfig b/templates/ice-design/blocks/CollapseCard/.editorconfig new file mode 100644 index 0000000000..22ef5ace54 --- /dev/null +++ b/templates/ice-design/blocks/CollapseCard/.editorconfig @@ -0,0 +1,16 @@ +# http://editorconfig.org +root = true + +[*] +indent_style = space +indent_size = 2 +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false + +[makefile] +indent_style = tab +indent_size = 4 diff --git a/templates/ice-design/blocks/CollapseCard/.eslintignore b/templates/ice-design/blocks/CollapseCard/.eslintignore new file mode 100644 index 0000000000..3b21308fc7 --- /dev/null +++ b/templates/ice-design/blocks/CollapseCard/.eslintignore @@ -0,0 +1,12 @@ +# 忽略目录 +build/ +tests/ +demo/ +lib/ + +# node 覆盖率文件 +coverage/ + +# 忽略文件 +**/*-min.js +**/*.min.js \ No newline at end of file diff --git a/templates/ice-design/blocks/CollapseCard/.eslintrc b/templates/ice-design/blocks/CollapseCard/.eslintrc new file mode 100644 index 0000000000..7a4e5bac48 --- /dev/null +++ b/templates/ice-design/blocks/CollapseCard/.eslintrc @@ -0,0 +1,62 @@ +{ + "root": true, + "parser": "babel-eslint", + "extends": "eslint-config-airbnb", + "parserOptions": { + "ecmaVersion": 6, + "ecmaFeatures": { + "jsx": true, + "experimentalObjectRestSpread": true + } + }, + "env": { + "browser": true + }, + "plugins": [ + "react", + "babel" + ], + "rules": { + "react/forbid-prop-types": 0, + "jsx-a11y/label-has-for": 0, + "jsx-a11y/no-static-element-interactions": 0, + "jsx-a11y/anchor-has-content": 0, + "jsx-a11y/click-events-have-key-events": 0, + "jsx-a11y/anchor-is-valid": 0, + "react/no-array-index-key": 0, + "func-names": 0, + "arrow-body-style": 0, + "no-use-before-define": 0, + "react/sort-comp": 0, + "react/prop-types": 0, + "react/jsx-first-prop-new-line": 0, + "react/jsx-filename-extension": [ + 1, + { + "extensions": [ + ".js", + ".jsx" + ] + } + ], + "import/extensions": 0, + "import/no-unresolved": 0, + "import/no-extraneous-dependencies": 0, + "prefer-destructuring": 0, + "no-param-reassign": 0, + "no-return-assign": 0, + "max-len": 0, + "consistent-return": 0, + "no-redeclare": 0, + "react/require-extension": 0, + "react/no-danger": 0, + "comma-dangle": [ + "error", + "always-multiline" + ], + "function-paren-newline": 0, + "object-curly-newline": 0, + "no-restricted-globals": 0, + "react/prefer-stateless-function": 0 + } +} diff --git a/templates/ice-design/blocks/CollapseCard/.gitignore b/templates/ice-design/blocks/CollapseCard/.gitignore new file mode 100644 index 0000000000..cc45d6fb3c --- /dev/null +++ b/templates/ice-design/blocks/CollapseCard/.gitignore @@ -0,0 +1,13 @@ + +*.swp +*.dia~ +.idea/ +.DS_Store + +npm-debug.log +yarn-error.log +node_modules/ +tmp/ + +# happypack 缓存 +.happypack diff --git a/templates/ice-design/blocks/CollapseCard/README.md b/templates/ice-design/blocks/CollapseCard/README.md new file mode 100644 index 0000000000..a2c2323633 --- /dev/null +++ b/templates/ice-design/blocks/CollapseCard/README.md @@ -0,0 +1,10 @@ +# collapse-card + +简介:折叠型卡片的信息展示 + +![截图](https://img.alicdn.com/tfs/TB1NXIUh2DH8KJjy1XcXXcpdXXa-956-270.png) + +## 更多 + +* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) +* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) diff --git a/templates/ice-design/blocks/CollapseCard/demo/index.html b/templates/ice-design/blocks/CollapseCard/demo/index.html new file mode 100644 index 0000000000..9d2d3a663d --- /dev/null +++ b/templates/ice-design/blocks/CollapseCard/demo/index.html @@ -0,0 +1,19 @@ + + + + + + + + Document + + + + +
    + + + + + + diff --git a/templates/ice-design/blocks/CollapseCard/demo/index.js b/templates/ice-design/blocks/CollapseCard/demo/index.js new file mode 100644 index 0000000000..178a766115 --- /dev/null +++ b/templates/ice-design/blocks/CollapseCard/demo/index.js @@ -0,0 +1,19 @@ +import React, {Component} from 'react'; +import {render} from 'react-dom'; + +// 载入默认全局样式 normalize 、.clearfix 和一些 mixin 方法等 +import '@icedesign/base/lib/_components/@alife/next-core/lib/index.scss'; + +import DemoLayout from '@icedesign/demo-layout'; +import Block from '../src'; + +const props = { + // ... +}; + +render( + + + , + document.querySelector('#mountNode') +); diff --git a/templates/ice-design/blocks/CollapseCard/mock/api.json b/templates/ice-design/blocks/CollapseCard/mock/api.json new file mode 100644 index 0000000000..e706430232 --- /dev/null +++ b/templates/ice-design/blocks/CollapseCard/mock/api.json @@ -0,0 +1,4 @@ +{ + "status": "success", + "data": {} +} diff --git a/templates/ice-design/blocks/CollapseCard/package.json b/templates/ice-design/blocks/CollapseCard/package.json new file mode 100644 index 0000000000..090fcefd15 --- /dev/null +++ b/templates/ice-design/blocks/CollapseCard/package.json @@ -0,0 +1,52 @@ +{ + "name": "@icedesign/collapse-card-block", + "version": "0.1.0", + "description": "", + "files": [ + "src/", + "demo/", + "lib/", + "mock/" + ], + "author": { + "name": "ICE Team", + "email": "ice-admin@alibaba-inc.com" + }, + "repository": { + "type": "git", + "url": "https://github.com/alibaba/ice" + }, + "license": "MIT", + "keywords": [ + "ice", + "ice-block" + ], + "dependencies": { + "classnames": "^2.2.5", + "prop-types": "^15.5.8", + "@icedesign/base": "^0.1.0", + "@icedesign/card": "^0.1.0" + }, + "devDependencies": { + "babel-eslint": "^8.0.3", + "eslint": "^4.13.1", + "eslint-plugin-babel": "^4.1.1", + "eslint-plugin-react": "^7.5.1", + "@icedesign/demo-layout": "^0.1.0", + "eslint-plugin-import": "^2.8.0", + "eslint-config-airbnb": "^16.1.0", + "eslint-plugin-jsx-a11y": "^6.0.3", + "@icedesign/skin": "^0.1.2" + }, + "blockConfig": { + "name": "collapse-card", + "description": "折叠型卡片的信息展示", + "chinese": "折叠型卡片的信息展示", + "category": "info-display", + "snapshot": "https://img.alicdn.com/tfs/TB1NXIUh2DH8KJjy1XcXXcpdXXa-956-270.png", + "sketchURL": "", + "icelandURL": "", + "themePackage": "@icedesign/skin" + }, + "scripts": {} +} diff --git a/templates/ice-design/blocks/CollapseCard/src/CollapseCard.jsx b/templates/ice-design/blocks/CollapseCard/src/CollapseCard.jsx new file mode 100644 index 0000000000..4016cd6da8 --- /dev/null +++ b/templates/ice-design/blocks/CollapseCard/src/CollapseCard.jsx @@ -0,0 +1,109 @@ +'use strict'; + +import React, { Component } from 'react'; +import IceCard from '@icedesign/card'; +import { Icon } from '@icedesign/base'; +import classnames from 'classnames'; +import './CollapseCard.scss'; + +export default class CollapseCard extends Component { + static displayName = 'CollapseCard'; + + static propTypes = {}; + + static defaultProps = {}; + + constructor(props) { + super(props); + this.state = { + collapse: false + }; + } + + // ICE: React Component 的生命周期 + // http://ice.alibaba-inc.com/docs/guide/intro-react#React-组件的生命周期 + componentWillMount() {} + + componentDidMount() {} + + componentWillReceiveProps(nextProps, nextContext) {} + + shouldComponentUpdate(nextProps, nextState) { + return true; + } + + componentWillUnmount() {} + + toggleCollapse = () => { + const { collapse } = this.state; + this.setState({ + collapse: collapse ? false : true + }); + }; + + render() { + const { collapse } = this.state; + const cls = classnames('base-info', { collapse: collapse }); + return ( +
    + +
    + +
    +

    戴森

    +

    + 作为一家英国创新科技公司,戴森致力于设计和研发能用科技来简化人们生活的产品.戴森官方旗舰店保修长达5年,您可以在戴森官方联络中心购买零件,每周7天提供服务{' '} +

    +
    +
    +
      +
    • + 活动标题: + 戴森周年庆活动 +
    • +
    • + 店铺名称: + 戴森周年庆活动 +
    • +
    • + 开始时间: + 2017-10-18 12:20:07 +
    • +
    • + 结束时间: + 2017-12-18 12:20:07 +
    • +
    +
    + + {collapse ? '更多信息' : '收起'} + + +
    +
    +
    + ); + } +} + +const styles = { + summaryInfo: { display: 'flex', borderBottom: '1px solid #e7e7eb' }, + logo: { width: '100px', height: '100px' }, + infoIntro: { marginLeft: '20px', paddingBottom: '20px' }, + infoTitle: { fontWeight: 'bold' }, + infoDesc: { color: '#999' }, + toggleBtn: { + marginTop: '20px', + textAlign: 'center', + color: '#999', + textDecoration: 'none' + } +}; diff --git a/templates/ice-design/blocks/CollapseCard/src/CollapseCard.scss b/templates/ice-design/blocks/CollapseCard/src/CollapseCard.scss new file mode 100644 index 0000000000..3c42e307d2 --- /dev/null +++ b/templates/ice-design/blocks/CollapseCard/src/CollapseCard.scss @@ -0,0 +1,30 @@ +@charset "UTF-8"; + +.collapse-card { + .base-info { + display: flex; + flex-wrap: wrap; + padding-top: 20px; + li { + width: 50%; + margin-bottom: 15px; + span { + &:first-child { + color: #999; + } + } + } + } + + .collapse { + display: none; + } + + i { + margin-left: 5px; + &.next-icon-medium:before { + width: 12px; + font-size: 12px; + } + } +} diff --git a/templates/ice-design/blocks/CollapseCard/src/index.js b/templates/ice-design/blocks/CollapseCard/src/index.js new file mode 100644 index 0000000000..c4909b20a0 --- /dev/null +++ b/templates/ice-design/blocks/CollapseCard/src/index.js @@ -0,0 +1,3 @@ +import CollapseCard from './CollapseCard'; + +export default CollapseCard; diff --git a/templates/ice-design/blocks/ComplexDialog/.editorconfig b/templates/ice-design/blocks/ComplexDialog/.editorconfig new file mode 100644 index 0000000000..22ef5ace54 --- /dev/null +++ b/templates/ice-design/blocks/ComplexDialog/.editorconfig @@ -0,0 +1,16 @@ +# http://editorconfig.org +root = true + +[*] +indent_style = space +indent_size = 2 +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false + +[makefile] +indent_style = tab +indent_size = 4 diff --git a/templates/ice-design/blocks/ComplexDialog/.eslintignore b/templates/ice-design/blocks/ComplexDialog/.eslintignore new file mode 100644 index 0000000000..3b21308fc7 --- /dev/null +++ b/templates/ice-design/blocks/ComplexDialog/.eslintignore @@ -0,0 +1,12 @@ +# 忽略目录 +build/ +tests/ +demo/ +lib/ + +# node 覆盖率文件 +coverage/ + +# 忽略文件 +**/*-min.js +**/*.min.js \ No newline at end of file diff --git a/templates/ice-design/blocks/ComplexDialog/.eslintrc b/templates/ice-design/blocks/ComplexDialog/.eslintrc new file mode 100644 index 0000000000..7a4e5bac48 --- /dev/null +++ b/templates/ice-design/blocks/ComplexDialog/.eslintrc @@ -0,0 +1,62 @@ +{ + "root": true, + "parser": "babel-eslint", + "extends": "eslint-config-airbnb", + "parserOptions": { + "ecmaVersion": 6, + "ecmaFeatures": { + "jsx": true, + "experimentalObjectRestSpread": true + } + }, + "env": { + "browser": true + }, + "plugins": [ + "react", + "babel" + ], + "rules": { + "react/forbid-prop-types": 0, + "jsx-a11y/label-has-for": 0, + "jsx-a11y/no-static-element-interactions": 0, + "jsx-a11y/anchor-has-content": 0, + "jsx-a11y/click-events-have-key-events": 0, + "jsx-a11y/anchor-is-valid": 0, + "react/no-array-index-key": 0, + "func-names": 0, + "arrow-body-style": 0, + "no-use-before-define": 0, + "react/sort-comp": 0, + "react/prop-types": 0, + "react/jsx-first-prop-new-line": 0, + "react/jsx-filename-extension": [ + 1, + { + "extensions": [ + ".js", + ".jsx" + ] + } + ], + "import/extensions": 0, + "import/no-unresolved": 0, + "import/no-extraneous-dependencies": 0, + "prefer-destructuring": 0, + "no-param-reassign": 0, + "no-return-assign": 0, + "max-len": 0, + "consistent-return": 0, + "no-redeclare": 0, + "react/require-extension": 0, + "react/no-danger": 0, + "comma-dangle": [ + "error", + "always-multiline" + ], + "function-paren-newline": 0, + "object-curly-newline": 0, + "no-restricted-globals": 0, + "react/prefer-stateless-function": 0 + } +} diff --git a/templates/ice-design/blocks/ComplexDialog/.gitignore b/templates/ice-design/blocks/ComplexDialog/.gitignore new file mode 100644 index 0000000000..cc45d6fb3c --- /dev/null +++ b/templates/ice-design/blocks/ComplexDialog/.gitignore @@ -0,0 +1,13 @@ + +*.swp +*.dia~ +.idea/ +.DS_Store + +npm-debug.log +yarn-error.log +node_modules/ +tmp/ + +# happypack 缓存 +.happypack diff --git a/templates/ice-design/blocks/ComplexDialog/README.md b/templates/ice-design/blocks/ComplexDialog/README.md new file mode 100644 index 0000000000..71c5c82d95 --- /dev/null +++ b/templates/ice-design/blocks/ComplexDialog/README.md @@ -0,0 +1,12 @@ +# complex-dialog + +简介:复杂信息弹窗 + +复杂信息和自定义底部按钮的弹窗 + +![截图](https://img.alicdn.com/tfs/TB1Un_filfH8KJjy1XbXXbLdXXa-1270-650.png) + +## 更多 + +* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) +* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) diff --git a/templates/ice-design/blocks/ComplexDialog/demo/index.html b/templates/ice-design/blocks/ComplexDialog/demo/index.html new file mode 100644 index 0000000000..9d2d3a663d --- /dev/null +++ b/templates/ice-design/blocks/ComplexDialog/demo/index.html @@ -0,0 +1,19 @@ + + + + + + + + Document + + + + +
    + + + + + + diff --git a/templates/ice-design/blocks/ComplexDialog/demo/index.js b/templates/ice-design/blocks/ComplexDialog/demo/index.js new file mode 100644 index 0000000000..0412958095 --- /dev/null +++ b/templates/ice-design/blocks/ComplexDialog/demo/index.js @@ -0,0 +1,29 @@ +import React, { Component } from 'react'; +import { render } from 'react-dom'; + +// 载入默认全局样式 normalize 、.clearfix 和一些 mixin 方法等 +import '@icedesign/base/lib/_components/@alife/next-core/lib/index.scss'; + +import DemoLayout from '@icedesign/demo-layout'; +import Block from '../src'; + +Block.show({ + onClose: () => { + Block.hide(); + }, + onCancel: () => { + Block.hide(); + }, + text: '是否要删除当前文章?' +}); + +const props = { + // ... +}; + +render( + +
    + , + document.querySelector('#mountNode') +); diff --git a/templates/ice-design/blocks/ComplexDialog/mock/api.json b/templates/ice-design/blocks/ComplexDialog/mock/api.json new file mode 100644 index 0000000000..e706430232 --- /dev/null +++ b/templates/ice-design/blocks/ComplexDialog/mock/api.json @@ -0,0 +1,4 @@ +{ + "status": "success", + "data": {} +} diff --git a/templates/ice-design/blocks/ComplexDialog/package.json b/templates/ice-design/blocks/ComplexDialog/package.json new file mode 100644 index 0000000000..94c6fb8a88 --- /dev/null +++ b/templates/ice-design/blocks/ComplexDialog/package.json @@ -0,0 +1,51 @@ +{ + "name": "@icedesign/complex-dialog-block", + "version": "0.1.0", + "description": "复杂信息和自定义底部按钮的弹窗", + "files": [ + "src/", + "demo/", + "lib/", + "mock/" + ], + "author": { + "name": "ICE Team", + "email": "ice-admin@alibaba-inc.com" + }, + "repository": { + "type": "git", + "url": "https://github.com/alibaba/ice" + }, + "license": "MIT", + "keywords": [ + "ice", + "ice-block" + ], + "dependencies": { + "prop-types": "^15.5.8", + "@icedesign/base": "^0.1.0", + "@icedesign/card": "^0.1.0" + }, + "devDependencies": { + "babel-eslint": "^8.0.3", + "eslint": "^4.13.1", + "eslint-plugin-babel": "^4.1.1", + "eslint-plugin-react": "^7.5.1", + "@icedesign/demo-layout": "^0.1.0", + "eslint-plugin-import": "^2.8.0", + "eslint-config-airbnb": "^16.1.0", + "eslint-plugin-jsx-a11y": "^6.0.3", + "@icedesign/skin": "^0.1.2" + }, + "blockConfig": { + "name": "complex-dialog", + "description": "复杂信息和自定义底部按钮的弹窗", + "chinese": "复杂信息弹窗", + "category": "modal", + "snapshot": "https://img.alicdn.com/tfs/TB1Un_filfH8KJjy1XbXXbLdXXa-1270-650.png", + "sketchURL": "", + "icelandURL": "", + "themePackage": "@icedesign/skin" + }, + "scripts": {} +} diff --git a/templates/ice-design/blocks/ComplexDialog/src/ComplexDialog.jsx b/templates/ice-design/blocks/ComplexDialog/src/ComplexDialog.jsx new file mode 100644 index 0000000000..cfddfa9140 --- /dev/null +++ b/templates/ice-design/blocks/ComplexDialog/src/ComplexDialog.jsx @@ -0,0 +1,93 @@ +'use strict'; + +import React, { Component } from 'react'; +import PropTypes from 'prop-types'; +import { Dialog, Button, Icon } from '@icedesign/base'; +import './ComplexDialog.scss'; + +import CreateFuncDialog from './CreateFuncDialog'; + +class ComplexDialog extends Component { + static displayName = 'ComplexDialog'; + + constructor(props) { + super(props); + this.state = { + visible: props.visible + }; + } + + renderFooter = () => { + return ( +
    + + +
    + ); + }; + + render() { + return ( + +
    + +
    + 恭喜您成功创作平台
    现在可以认证符合自己的角色啦 +
    +
    + 角色是淘宝中对达人的XXX,通过角色您将获得特权 +
    +
    +
    + V + 标头像 +
    +
    + {' '} + 角色标志 +
    +
    + {' '} + 优先发表 +
    +
    +
    +
    + ); + } +} + +const styles = { + dialog: { width: '640px' }, + icon: { width: '52px', height: '52px' }, + dialogContent: { + height: '200px', + display: 'flex', + flexDirection: 'column', + alignItems: 'center' + }, + info: { marginTop: '10px', fontSize: '16px', textAlign: 'center' }, + extraInfo: { marginTop: '12px', fontSize: '12px', color: '#999999' }, + authList: { marginTop: '10px', fontSize: '12px', color: '#999999' }, + authItem: { marginTop: '5px' }, + authItemIcon: { color: '#2ECA9C' }, + footer: { marginTop: '10px', marginBottom: '10px', textAlign: 'center' } +}; + +export default CreateFuncDialog(ComplexDialog); diff --git a/templates/ice-design/blocks/ComplexDialog/src/ComplexDialog.scss b/templates/ice-design/blocks/ComplexDialog/src/ComplexDialog.scss new file mode 100644 index 0000000000..b26cda3f89 --- /dev/null +++ b/templates/ice-design/blocks/ComplexDialog/src/ComplexDialog.scss @@ -0,0 +1,5 @@ +@charset "UTF-8"; + +.complex-dialog { + +} diff --git a/templates/ice-design/blocks/ComplexDialog/src/CreateFuncDialog.js b/templates/ice-design/blocks/ComplexDialog/src/CreateFuncDialog.js new file mode 100644 index 0000000000..b009df541d --- /dev/null +++ b/templates/ice-design/blocks/ComplexDialog/src/CreateFuncDialog.js @@ -0,0 +1,46 @@ +'use strict'; + +import React from 'react'; +import ReactDOM from 'react-dom'; + +// 包装 Dialog 类组件,使其支持 show、hide 这种命令式调用 +const CreateFuncDialog = WrapperElement => { + let instance = null; + let container = null; + + return { + // 创建并打开一个弹窗,并传入初始化的 props + show: props => { + // 如果已经有实例打开了,则不会继续打开 + if (instance) { + return; + } + + container = document.createElement('div'); + document.body.appendChild(container); + instance = ReactDOM.render( + , + container + ); + }, + // 隐藏并销毁弹窗 + hide: () => { + if (instance) { + instance.setState( + { + visible: false + }, + () => { + setTimeout(() => { + ReactDOM.unmountComponentAtNode(container); + instance = null; + container.parentNode.removeChild(container); + }, 1000); + } + ); + } + } + }; +}; + +export default CreateFuncDialog; diff --git a/templates/ice-design/blocks/ComplexDialog/src/index.js b/templates/ice-design/blocks/ComplexDialog/src/index.js new file mode 100644 index 0000000000..2d3c359b47 --- /dev/null +++ b/templates/ice-design/blocks/ComplexDialog/src/index.js @@ -0,0 +1,3 @@ +import ComplexDialog from './ComplexDialog'; + +export default ComplexDialog; diff --git a/templates/ice-design/blocks/ComplexFilter/.editorconfig b/templates/ice-design/blocks/ComplexFilter/.editorconfig new file mode 100644 index 0000000000..22ef5ace54 --- /dev/null +++ b/templates/ice-design/blocks/ComplexFilter/.editorconfig @@ -0,0 +1,16 @@ +# http://editorconfig.org +root = true + +[*] +indent_style = space +indent_size = 2 +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false + +[makefile] +indent_style = tab +indent_size = 4 diff --git a/templates/ice-design/blocks/ComplexFilter/.eslintignore b/templates/ice-design/blocks/ComplexFilter/.eslintignore new file mode 100644 index 0000000000..3b21308fc7 --- /dev/null +++ b/templates/ice-design/blocks/ComplexFilter/.eslintignore @@ -0,0 +1,12 @@ +# 忽略目录 +build/ +tests/ +demo/ +lib/ + +# node 覆盖率文件 +coverage/ + +# 忽略文件 +**/*-min.js +**/*.min.js \ No newline at end of file diff --git a/templates/ice-design/blocks/ComplexFilter/.eslintrc b/templates/ice-design/blocks/ComplexFilter/.eslintrc new file mode 100644 index 0000000000..7a4e5bac48 --- /dev/null +++ b/templates/ice-design/blocks/ComplexFilter/.eslintrc @@ -0,0 +1,62 @@ +{ + "root": true, + "parser": "babel-eslint", + "extends": "eslint-config-airbnb", + "parserOptions": { + "ecmaVersion": 6, + "ecmaFeatures": { + "jsx": true, + "experimentalObjectRestSpread": true + } + }, + "env": { + "browser": true + }, + "plugins": [ + "react", + "babel" + ], + "rules": { + "react/forbid-prop-types": 0, + "jsx-a11y/label-has-for": 0, + "jsx-a11y/no-static-element-interactions": 0, + "jsx-a11y/anchor-has-content": 0, + "jsx-a11y/click-events-have-key-events": 0, + "jsx-a11y/anchor-is-valid": 0, + "react/no-array-index-key": 0, + "func-names": 0, + "arrow-body-style": 0, + "no-use-before-define": 0, + "react/sort-comp": 0, + "react/prop-types": 0, + "react/jsx-first-prop-new-line": 0, + "react/jsx-filename-extension": [ + 1, + { + "extensions": [ + ".js", + ".jsx" + ] + } + ], + "import/extensions": 0, + "import/no-unresolved": 0, + "import/no-extraneous-dependencies": 0, + "prefer-destructuring": 0, + "no-param-reassign": 0, + "no-return-assign": 0, + "max-len": 0, + "consistent-return": 0, + "no-redeclare": 0, + "react/require-extension": 0, + "react/no-danger": 0, + "comma-dangle": [ + "error", + "always-multiline" + ], + "function-paren-newline": 0, + "object-curly-newline": 0, + "no-restricted-globals": 0, + "react/prefer-stateless-function": 0 + } +} diff --git a/templates/ice-design/blocks/ComplexFilter/.gitignore b/templates/ice-design/blocks/ComplexFilter/.gitignore new file mode 100644 index 0000000000..cc45d6fb3c --- /dev/null +++ b/templates/ice-design/blocks/ComplexFilter/.gitignore @@ -0,0 +1,13 @@ + +*.swp +*.dia~ +.idea/ +.DS_Store + +npm-debug.log +yarn-error.log +node_modules/ +tmp/ + +# happypack 缓存 +.happypack diff --git a/templates/ice-design/blocks/ComplexFilter/README.md b/templates/ice-design/blocks/ComplexFilter/README.md new file mode 100644 index 0000000000..91660d1669 --- /dev/null +++ b/templates/ice-design/blocks/ComplexFilter/README.md @@ -0,0 +1,12 @@ +# complex-filter + +简介:复杂筛选 + +复杂筛选 + +![截图](https://gw.alicdn.com/tfs/TB1MyEzh4rI8KJjy0FpXXb5hVXa-2036-844.png) + +## 更多 + +* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) +* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) diff --git a/templates/ice-design/blocks/ComplexFilter/demo/index.html b/templates/ice-design/blocks/ComplexFilter/demo/index.html new file mode 100644 index 0000000000..9d2d3a663d --- /dev/null +++ b/templates/ice-design/blocks/ComplexFilter/demo/index.html @@ -0,0 +1,19 @@ + + + + + + + + Document + + + + +
    + + + + + + diff --git a/templates/ice-design/blocks/ComplexFilter/demo/index.js b/templates/ice-design/blocks/ComplexFilter/demo/index.js new file mode 100644 index 0000000000..178a766115 --- /dev/null +++ b/templates/ice-design/blocks/ComplexFilter/demo/index.js @@ -0,0 +1,19 @@ +import React, {Component} from 'react'; +import {render} from 'react-dom'; + +// 载入默认全局样式 normalize 、.clearfix 和一些 mixin 方法等 +import '@icedesign/base/lib/_components/@alife/next-core/lib/index.scss'; + +import DemoLayout from '@icedesign/demo-layout'; +import Block from '../src'; + +const props = { + // ... +}; + +render( + + + , + document.querySelector('#mountNode') +); diff --git a/templates/ice-design/blocks/ComplexFilter/mock/api.json b/templates/ice-design/blocks/ComplexFilter/mock/api.json new file mode 100644 index 0000000000..e706430232 --- /dev/null +++ b/templates/ice-design/blocks/ComplexFilter/mock/api.json @@ -0,0 +1,4 @@ +{ + "status": "success", + "data": {} +} diff --git a/templates/ice-design/blocks/ComplexFilter/package.json b/templates/ice-design/blocks/ComplexFilter/package.json new file mode 100644 index 0000000000..274ca07f47 --- /dev/null +++ b/templates/ice-design/blocks/ComplexFilter/package.json @@ -0,0 +1,51 @@ +{ + "name": "@icedesign/complex-filter-block", + "version": "0.1.0", + "description": "复杂筛选", + "files": [ + "src/", + "demo/", + "lib/", + "mock/" + ], + "author": { + "name": "ICE Team", + "email": "ice-admin@alibaba-inc.com" + }, + "repository": { + "type": "git", + "url": "https://github.com/alibaba/ice" + }, + "license": "MIT", + "keywords": [ + "ice", + "ice-block" + ], + "dependencies": { + "prop-types": "^15.5.8", + "@icedesign/base": "^0.1.0", + "@icedesign/card": "^0.1.0" + }, + "devDependencies": { + "babel-eslint": "^8.0.3", + "eslint": "^4.13.1", + "eslint-plugin-babel": "^4.1.1", + "eslint-plugin-react": "^7.5.1", + "@icedesign/demo-layout": "^0.1.0", + "eslint-plugin-import": "^2.8.0", + "eslint-config-airbnb": "^16.1.0", + "eslint-plugin-jsx-a11y": "^6.0.3", + "@icedesign/skin": "^0.1.2" + }, + "blockConfig": { + "name": "complex-filter", + "description": "复杂筛选", + "chinese": "复杂筛选", + "category": "filter", + "snapshot": "https://gw.alicdn.com/tfs/TB1MyEzh4rI8KJjy0FpXXb5hVXa-2036-844.png", + "sketchURL": "", + "icelandURL": "", + "themePackage": "@icedesign/skin" + }, + "scripts": {} +} diff --git a/templates/ice-design/blocks/ComplexFilter/src/ComplexFilter.jsx b/templates/ice-design/blocks/ComplexFilter/src/ComplexFilter.jsx new file mode 100644 index 0000000000..7fcf1863cd --- /dev/null +++ b/templates/ice-design/blocks/ComplexFilter/src/ComplexFilter.jsx @@ -0,0 +1,159 @@ +'use strict'; + +import React, { Component } from 'react'; +import PropTypes from 'prop-types'; +import IceCard from '@icedesign/card'; +import { Select } from '@icedesign/base'; +import './ComplexFilter.scss'; + +const { Combobox } = Select; + +export default class ComplexFilter extends Component { + static displayName = 'ComplexFilter'; + + static propTypes = { + style: PropTypes.object, + className: PropTypes.string + }; + + static defaultProps = {}; + + constructor(props) { + super(props); + this.state = { + currentFilterType: 'article', + categories: ['type1', 'type3'] + }; + } + + // ICE: React Component 的生命周期 + // http://ice.alibaba-inc.com/docs/guide/intro-react#React-组件的生命周期 + componentWillMount() {} + + componentDidMount() {} + + componentWillReceiveProps(nextProps, nextContext) {} + + shouldComponentUpdate(nextProps, nextState) { + return true; + } + + componentWillUnmount() {} + + render() { + const { currentFilterType, categories } = this.state; + const FILTERS = [ + { type: 'article', text: '文章' }, + { type: 'app', text: '应用' }, + { type: 'other', text: '其他' } + ]; + + const CATEGORIES = [ + { type: 'all', text: '全部' }, + { type: 'type1', text: '类目一' }, + { type: 'type2', text: '类目二' }, + { type: 'type3', text: '类目三' }, + { type: 'type4', text: '类目四' } + ]; + return ( +
    + + {FILTERS.map((item, idx) => ( +
    { + this.setState({ + currentFilterType: item.type + }); + }} + > + {item.text} +
    + ))} +
    + + +
    + 所属类目: + {CATEGORIES.map((cat, idx) => ( + -1 ? 'active' : '' + }`} + onClick={() => { + const isInCategory = categories.indexOf(cat.type) > -1; + if (isInCategory) { + this.setState({ + categories: categories.filter((item) => item !== cat.type) + }); + } else { + this.setState({ + categories: [...categories, cat.type] + }); + } + }} + key={idx} + > + {cat.text} + + ))} +
    + +
    + 所有者: console.log('blur')} + /> + 活跃用户: + 好评度: +
    +
    +
    + ); + } +} + +const styles = { + tabFilterContainer: { + display: 'flex', + flexDirection: 'row', + paddingBottom: 0 + }, + filterBelonging: { paddingBottom: '10px', borderBottom: '1px solid #F4F4F4' }, + filterBelongingLabel: { + fontSize: '14px', + color: '#333', + marginRight: '19px' + }, + filterForm: { + marginTop: '20px', + display: 'flex', + flexDirection: 'row', + alignItems: 'center' + }, + combobox: { width: '200px', marginRight: '25px' }, + select: { width: '50px', marginRight: '25px' } +}; diff --git a/templates/ice-design/blocks/ComplexFilter/src/ComplexFilter.scss b/templates/ice-design/blocks/ComplexFilter/src/ComplexFilter.scss new file mode 100644 index 0000000000..2520efdb0f --- /dev/null +++ b/templates/ice-design/blocks/ComplexFilter/src/ComplexFilter.scss @@ -0,0 +1,30 @@ +@charset "UTF-8"; + +.complex-filter { + .tab-filter-item { + cursor: pointer; + text-align: center; + border-bottom: 3px solid #fff; + width: 40px; + margin: 0 20px; + white-space: nowrap; + padding-bottom: 15px; + &:hover, + &.active { + color: #3080fe; + border-bottom-color: #3080fe; + } + } + + .filter-belonging-item { + cursor: pointer; + font-size: 14px; + color: #666; + margin-right: 20px; + &.active, + &:hover { + color: #000; + font-weight: bold; + } + } +} diff --git a/templates/ice-design/blocks/ComplexFilter/src/index.js b/templates/ice-design/blocks/ComplexFilter/src/index.js new file mode 100644 index 0000000000..cd432f9543 --- /dev/null +++ b/templates/ice-design/blocks/ComplexFilter/src/index.js @@ -0,0 +1,3 @@ +import ComplexFilter from './ComplexFilter'; + +export default ComplexFilter; diff --git a/templates/ice-design/blocks/ComplexProgressTable/.babelrc b/templates/ice-design/blocks/ComplexProgressTable/.babelrc new file mode 100644 index 0000000000..fcdb865abe --- /dev/null +++ b/templates/ice-design/blocks/ComplexProgressTable/.babelrc @@ -0,0 +1,3 @@ +{ + "plugins": ["transform-decorators-legacy"] +} diff --git a/templates/ice-design/blocks/ComplexProgressTable/.editorconfig b/templates/ice-design/blocks/ComplexProgressTable/.editorconfig new file mode 100644 index 0000000000..22ef5ace54 --- /dev/null +++ b/templates/ice-design/blocks/ComplexProgressTable/.editorconfig @@ -0,0 +1,16 @@ +# http://editorconfig.org +root = true + +[*] +indent_style = space +indent_size = 2 +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false + +[makefile] +indent_style = tab +indent_size = 4 diff --git a/templates/ice-design/blocks/ComplexProgressTable/.eslintignore b/templates/ice-design/blocks/ComplexProgressTable/.eslintignore new file mode 100644 index 0000000000..3b21308fc7 --- /dev/null +++ b/templates/ice-design/blocks/ComplexProgressTable/.eslintignore @@ -0,0 +1,12 @@ +# 忽略目录 +build/ +tests/ +demo/ +lib/ + +# node 覆盖率文件 +coverage/ + +# 忽略文件 +**/*-min.js +**/*.min.js \ No newline at end of file diff --git a/templates/ice-design/blocks/ComplexProgressTable/.eslintrc b/templates/ice-design/blocks/ComplexProgressTable/.eslintrc new file mode 100644 index 0000000000..7a4e5bac48 --- /dev/null +++ b/templates/ice-design/blocks/ComplexProgressTable/.eslintrc @@ -0,0 +1,62 @@ +{ + "root": true, + "parser": "babel-eslint", + "extends": "eslint-config-airbnb", + "parserOptions": { + "ecmaVersion": 6, + "ecmaFeatures": { + "jsx": true, + "experimentalObjectRestSpread": true + } + }, + "env": { + "browser": true + }, + "plugins": [ + "react", + "babel" + ], + "rules": { + "react/forbid-prop-types": 0, + "jsx-a11y/label-has-for": 0, + "jsx-a11y/no-static-element-interactions": 0, + "jsx-a11y/anchor-has-content": 0, + "jsx-a11y/click-events-have-key-events": 0, + "jsx-a11y/anchor-is-valid": 0, + "react/no-array-index-key": 0, + "func-names": 0, + "arrow-body-style": 0, + "no-use-before-define": 0, + "react/sort-comp": 0, + "react/prop-types": 0, + "react/jsx-first-prop-new-line": 0, + "react/jsx-filename-extension": [ + 1, + { + "extensions": [ + ".js", + ".jsx" + ] + } + ], + "import/extensions": 0, + "import/no-unresolved": 0, + "import/no-extraneous-dependencies": 0, + "prefer-destructuring": 0, + "no-param-reassign": 0, + "no-return-assign": 0, + "max-len": 0, + "consistent-return": 0, + "no-redeclare": 0, + "react/require-extension": 0, + "react/no-danger": 0, + "comma-dangle": [ + "error", + "always-multiline" + ], + "function-paren-newline": 0, + "object-curly-newline": 0, + "no-restricted-globals": 0, + "react/prefer-stateless-function": 0 + } +} diff --git a/templates/ice-design/blocks/ComplexProgressTable/.gitignore b/templates/ice-design/blocks/ComplexProgressTable/.gitignore new file mode 100644 index 0000000000..cc45d6fb3c --- /dev/null +++ b/templates/ice-design/blocks/ComplexProgressTable/.gitignore @@ -0,0 +1,13 @@ + +*.swp +*.dia~ +.idea/ +.DS_Store + +npm-debug.log +yarn-error.log +node_modules/ +tmp/ + +# happypack 缓存 +.happypack diff --git a/templates/ice-design/blocks/ComplexProgressTable/README.md b/templates/ice-design/blocks/ComplexProgressTable/README.md new file mode 100644 index 0000000000..d6e04810c9 --- /dev/null +++ b/templates/ice-design/blocks/ComplexProgressTable/README.md @@ -0,0 +1,12 @@ +# complex-progress-table + +简介:进度管理表格 + +进度管理表格 + +![截图](https://img.alicdn.com/tfs/TB1tcvSg5qAXuNjy1XdXXaYcVXa-1894-1312.png) + +## 更多 + +* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) +* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) diff --git a/templates/ice-design/blocks/ComplexProgressTable/demo/index.html b/templates/ice-design/blocks/ComplexProgressTable/demo/index.html new file mode 100644 index 0000000000..9d2d3a663d --- /dev/null +++ b/templates/ice-design/blocks/ComplexProgressTable/demo/index.html @@ -0,0 +1,19 @@ + + + + + + + + Document + + + + +
    + + + + + + diff --git a/templates/ice-design/blocks/ComplexProgressTable/demo/index.js b/templates/ice-design/blocks/ComplexProgressTable/demo/index.js new file mode 100644 index 0000000000..178a766115 --- /dev/null +++ b/templates/ice-design/blocks/ComplexProgressTable/demo/index.js @@ -0,0 +1,19 @@ +import React, {Component} from 'react'; +import {render} from 'react-dom'; + +// 载入默认全局样式 normalize 、.clearfix 和一些 mixin 方法等 +import '@icedesign/base/lib/_components/@alife/next-core/lib/index.scss'; + +import DemoLayout from '@icedesign/demo-layout'; +import Block from '../src'; + +const props = { + // ... +}; + +render( + + + , + document.querySelector('#mountNode') +); diff --git a/templates/ice-design/blocks/ComplexProgressTable/mock/complex-progress-table.json b/templates/ice-design/blocks/ComplexProgressTable/mock/complex-progress-table.json new file mode 100644 index 0000000000..88fca0a84b --- /dev/null +++ b/templates/ice-design/blocks/ComplexProgressTable/mock/complex-progress-table.json @@ -0,0 +1,64 @@ +{ + "status": "SUCCESS", + "data": { + "total": 100, + "pageSize": 10, + "currentPage": 1, + "list": [ + { + "title": "这里展示项目的标题,最多可以展示26个汉字字符", + "createTime": "2017/12/19", + "progress": 10, + "priority": "高" + }, + { + "title": "这里展示项目的标题,最多可以展示26个汉字字符", + "createTime": "2017/12/19", + "progress": 0, + "priority": "中" + }, + { + "title": "这里展示项目的标题,最多可以展示26个汉字字符", + "createTime": "2017/12/19", + "progress": 100, + "priority": "低" + }, + { + "title": "这里展示项目的标题,最多可以展示26个汉字字符", + "createTime": "2017/12/19", + "progress": 10, + "priority": "高" + }, + { + "title": "这里展示项目的标题,最多可以展示26个汉字字符", + "createTime": "2017/12/19", + "progress": 10, + "priority": "高" + }, + { + "title": "这里展示项目的标题,最多可以展示26个汉字字符", + "createTime": "2017/12/19", + "progress": 10, + "priority": "高" + }, + { + "title": "这里展示项目的标题,最多可以展示26个汉字字符", + "createTime": "2017/12/19", + "progress": 50, + "priority": "中" + }, + { + "title": "这里展示项目的标题,最多可以展示26个汉字字符", + "createTime": "2017/12/19", + "progress": 10, + "priority": "高" + }, + { + "title": "这里展示项目的标题,最多可以展示26个汉字字符", + "createTime": "2017/12/19", + "progress": 70, + "priority": "低" + } + ] + } +} diff --git a/templates/ice-design/blocks/ComplexProgressTable/package.json b/templates/ice-design/blocks/ComplexProgressTable/package.json new file mode 100644 index 0000000000..48e2d50e65 --- /dev/null +++ b/templates/ice-design/blocks/ComplexProgressTable/package.json @@ -0,0 +1,58 @@ +{ + "name": "@icedesign/complex-progress-table-block", + "version": "0.1.0", + "description": "进度管理表格", + "files": [ + "src/", + "demo/", + "lib/", + "mock/" + ], + "scripts": {}, + "author": { + "name": "ICE Team", + "email": "ice-admin@alibaba-inc.com" + }, + "repository": { + "type": "git", + "url": "https://github.com/alibaba/ice" + }, + "license": "MIT", + "keywords": [ + "ice", + "ice-block" + ], + "dependencies": { + "@icedesign/base": "^0.1.0", + "prop-types": "^15.5.8", + "@icedesign/card": "^0.1.0", + "@icedesign/data-binder": "^0.1.0", + "@icedesign/form-binder": "^0.1.0", + "@icedesign/img": "^0.1.0" + }, + "devDependencies": { + "@icedesign/skin": "^0.1.2", + "babel-eslint": "^8.0.3", + "babel-plugin-transform-decorators-legacy": "^1.3.4", + "eslint": "^4.13.1", + "eslint-config-airbnb": "^16.1.0", + "eslint-plugin-babel": "^4.1.1", + "eslint-plugin-import": "^2.8.0", + "eslint-plugin-jsx-a11y": "^6.0.3", + "eslint-plugin-react": "^7.5.1", + "react": "15.x", + "react-copy-to-clipboard": "^4.2.3", + "react-dom": "15.x", + "@icedesign/demo-layout": "^0.1.0" + }, + "blockConfig": { + "name": "complex-progress-table", + "description": "进度管理表格", + "chinese": "进度管理表格", + "category": "table", + "snapshot": "https://img.alicdn.com/tfs/TB1tcvSg5qAXuNjy1XdXXaYcVXa-1894-1312.png", + "sketchURL": "", + "icelandURL": "", + "themePackage": "@icedesign/skin" + } +} diff --git a/templates/ice-design/blocks/ComplexProgressTable/src/ComplexProgressTable.jsx b/templates/ice-design/blocks/ComplexProgressTable/src/ComplexProgressTable.jsx new file mode 100644 index 0000000000..4785fc9eeb --- /dev/null +++ b/templates/ice-design/blocks/ComplexProgressTable/src/ComplexProgressTable.jsx @@ -0,0 +1,179 @@ +import React, { Component } from 'react'; +import IceCard from '@icedesign/card'; +import { Table, Pagination, Progress, Button } from '@icedesign/base'; +import DataBinder from '@icedesign/data-binder'; + +import './ComplexProgressTable.scss'; +import EditDialog from './EditDialog'; + +// 详细用法请参见 http://ice.alibaba-inc.com/modules/ice-data-binder +@DataBinder({ + tableData: { + // 详细请求配置请参见 https://github.com/axios/axios + url: '/mock/complex-progress-table.json', + params: { + page: 1 + }, + defaultBindingData: { + list: [], + total: 100, + pageSize: 10, + currentPage: 1 + } + }, + updateRow: { + url: '/your-update-api.json' + } +}) +export default class ComplexProgressTable extends Component { + static displayName = 'ComplexProgressTable'; + + static propTypes = {}; + + static defaultProps = {}; + + constructor(props) { + super(props); + + // 缓存 table 的请求参数 + this.queryCache = {}; + this.state = {}; + } + + // ICE: React Component 的生命周期 + // http://ice.alibaba-inc.com/docs/guide/intro-react#React-组件的生命周期 + componentWillMount() {} + + componentDidMount() { + this.queryCache.page = 1; + this.fetchData(); + } + + fetchData = () => { + this.props.updateBindingData('tableData', { + data: this.queryCache + }); + }; + + changePage = (currentPage) => { + this.queryCache.page = currentPage; + + this.fetchData(); + }; + + renderTitle = (value, index, record) => { + return ( +
    +
    {record.title}
    +
    创建时间 {record.createTime}
    +
    + ); + }; + + editItem = (index, record) => { + EditDialog.show({ + onClose: () => { + EditDialog.hide(); + }, + onCancel: () => { + EditDialog.hide(); + }, + onOk: (value) => { + // 获取修改后的数据,更新表格 + // todo 更新接口,并重新刷新数据 + // this.props.updateBindingData('updateRow', { + // method: 'post', + // data: value + // }, () => { + // this.fetchData(); + // }); + console.log('value', value); + EditDialog.hide(); + }, + value: record + }); + }; + + renderOperations = (value, index, record) => { + return ( +
    + + +
    + ); + }; + + renderProgress = (value) => { + return ; + }; + + render() { + const tableData = this.props.bindingData.tableData; + + return ( +
    + + + + + + +
    +
    + +
    +
    +
    + ); + } +} + +const styles = { + tableCard: { padding: '10px' }, + title: {}, + subTitle: { marginTop: '4px', fontSize: '12px', color: '#999999' }, + operationButton: { marginRight: '10px' }, + priority: { width: '70px', textAlign: 'center' }, + complexProgressTable: {}, + operations: { lineHeight: '28px' }, + pagination: { textAlign: 'right', paddingTop: '26px' } +}; diff --git a/templates/ice-design/blocks/ComplexProgressTable/src/ComplexProgressTable.scss b/templates/ice-design/blocks/ComplexProgressTable/src/ComplexProgressTable.scss new file mode 100644 index 0000000000..852a44eaf7 --- /dev/null +++ b/templates/ice-design/blocks/ComplexProgressTable/src/ComplexProgressTable.scss @@ -0,0 +1,5 @@ +@charset "UTF-8"; + +.complex-progress-table { + +} diff --git a/templates/ice-design/blocks/ComplexProgressTable/src/CreateFuncDialog.jsx b/templates/ice-design/blocks/ComplexProgressTable/src/CreateFuncDialog.jsx new file mode 100644 index 0000000000..6438c318ef --- /dev/null +++ b/templates/ice-design/blocks/ComplexProgressTable/src/CreateFuncDialog.jsx @@ -0,0 +1,44 @@ +import React from 'react'; +import ReactDOM from 'react-dom'; + +// 包装 Dialog 类组件,使其支持 show、hide 这种命令式调用 +const CreateFuncDialog = (WrapperElement) => { + let instance = null; + let container = null; + + return { + // 创建并打开一个弹窗,并传入初始化的 props + show: (props) => { + // 如果已经有实例打开了,则不会继续打开 + if (instance) { + return; + } + + container = document.createElement('div'); /* eslint no-undef: "off" */ + document.body.appendChild(container); + instance = ReactDOM.render( + , + container + ); + }, + // 隐藏并销毁弹窗 + hide: () => { + if (instance) { + instance.setState( + { + visible: false, + }, + () => { + setTimeout(() => { + ReactDOM.unmountComponentAtNode(container); + instance = null; + container.parentNode.removeChild(container); + }, 1000); + } + ); + } + }, + }; +}; + +export default CreateFuncDialog; diff --git a/templates/ice-design/blocks/ComplexProgressTable/src/EditDialog.jsx b/templates/ice-design/blocks/ComplexProgressTable/src/EditDialog.jsx new file mode 100644 index 0000000000..50f99291ea --- /dev/null +++ b/templates/ice-design/blocks/ComplexProgressTable/src/EditDialog.jsx @@ -0,0 +1,161 @@ +import React, { Component } from 'react'; +import { Dialog, Grid, Input, Radio, Range } from '@icedesign/base'; +import { + FormBinderWrapper as IceFormBinderWrapper, + FormBinder as IceFormBinder, + FormError as IceFormError, +} from '@icedesign/form-binder'; +import CreateFuncDialog from './CreateFuncDialog'; + +const { Row, Col } = Grid; +const { Group: RadioGroup } = Radio; + +class EditDialog extends Component { + static displayName = 'EditDialog'; + + constructor(props) { + super(props); + this.state = { + visible: props.visible, + value: props.value, + }; + } + + // ICE: React Component 的生命周期 + // http://ice.alibaba-inc.com/docs/guide/intro-react#React-组件的生命周期 + componentWillMount() {} + + componentDidMount() {} + + componentWillReceiveProps() {} + + shouldComponentUpdate() { + return true; + } + + componentWillUnmount() {} + + onOk = () => { + this.refForm.validateAll((errors, values) => { + if (errors) { + return; + } + if (typeof this.props.onOk === 'function') { + this.props.onOk(values); + } + }); + }; + + onFormChange = (value) => { + this.setState({ + value, + }); + }; + + render() { + return ( + + { + this.refForm = ref; + }} + value={this.state.value} + onChange={this.onFormChange} + > +
    + + + + + + + + + + + + + + + + +
    + + + +
    + +
    + + + + + + + + + + +
    +
    +
    + ); + } +} + +const styles = { + dialog: { + width: '640px', + }, + dialogContent: {}, + formRow: { + marginTop: 20, + }, + input: { + width: '100%', + }, + progressWrapper: { + marginTop: '10px', + }, + formLabel: { + lineHeight: '26px', + textAlign: 'right', + display: 'inline-block', + }, +}; + +export default CreateFuncDialog(EditDialog); diff --git a/templates/ice-design/blocks/ComplexProgressTable/src/index.js b/templates/ice-design/blocks/ComplexProgressTable/src/index.js new file mode 100644 index 0000000000..9cc606cfa9 --- /dev/null +++ b/templates/ice-design/blocks/ComplexProgressTable/src/index.js @@ -0,0 +1,3 @@ +import ComplexProgressTable from './ComplexProgressTable'; + +export default ComplexProgressTable; diff --git a/templates/ice-design/blocks/ComplexTabTable/.editorconfig b/templates/ice-design/blocks/ComplexTabTable/.editorconfig new file mode 100644 index 0000000000..22ef5ace54 --- /dev/null +++ b/templates/ice-design/blocks/ComplexTabTable/.editorconfig @@ -0,0 +1,16 @@ +# http://editorconfig.org +root = true + +[*] +indent_style = space +indent_size = 2 +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false + +[makefile] +indent_style = tab +indent_size = 4 diff --git a/templates/ice-design/blocks/ComplexTabTable/.eslintignore b/templates/ice-design/blocks/ComplexTabTable/.eslintignore new file mode 100644 index 0000000000..3b21308fc7 --- /dev/null +++ b/templates/ice-design/blocks/ComplexTabTable/.eslintignore @@ -0,0 +1,12 @@ +# 忽略目录 +build/ +tests/ +demo/ +lib/ + +# node 覆盖率文件 +coverage/ + +# 忽略文件 +**/*-min.js +**/*.min.js \ No newline at end of file diff --git a/templates/ice-design/blocks/ComplexTabTable/.eslintrc b/templates/ice-design/blocks/ComplexTabTable/.eslintrc new file mode 100644 index 0000000000..7a4e5bac48 --- /dev/null +++ b/templates/ice-design/blocks/ComplexTabTable/.eslintrc @@ -0,0 +1,62 @@ +{ + "root": true, + "parser": "babel-eslint", + "extends": "eslint-config-airbnb", + "parserOptions": { + "ecmaVersion": 6, + "ecmaFeatures": { + "jsx": true, + "experimentalObjectRestSpread": true + } + }, + "env": { + "browser": true + }, + "plugins": [ + "react", + "babel" + ], + "rules": { + "react/forbid-prop-types": 0, + "jsx-a11y/label-has-for": 0, + "jsx-a11y/no-static-element-interactions": 0, + "jsx-a11y/anchor-has-content": 0, + "jsx-a11y/click-events-have-key-events": 0, + "jsx-a11y/anchor-is-valid": 0, + "react/no-array-index-key": 0, + "func-names": 0, + "arrow-body-style": 0, + "no-use-before-define": 0, + "react/sort-comp": 0, + "react/prop-types": 0, + "react/jsx-first-prop-new-line": 0, + "react/jsx-filename-extension": [ + 1, + { + "extensions": [ + ".js", + ".jsx" + ] + } + ], + "import/extensions": 0, + "import/no-unresolved": 0, + "import/no-extraneous-dependencies": 0, + "prefer-destructuring": 0, + "no-param-reassign": 0, + "no-return-assign": 0, + "max-len": 0, + "consistent-return": 0, + "no-redeclare": 0, + "react/require-extension": 0, + "react/no-danger": 0, + "comma-dangle": [ + "error", + "always-multiline" + ], + "function-paren-newline": 0, + "object-curly-newline": 0, + "no-restricted-globals": 0, + "react/prefer-stateless-function": 0 + } +} diff --git a/templates/ice-design/blocks/ComplexTabTable/.gitignore b/templates/ice-design/blocks/ComplexTabTable/.gitignore new file mode 100644 index 0000000000..cc45d6fb3c --- /dev/null +++ b/templates/ice-design/blocks/ComplexTabTable/.gitignore @@ -0,0 +1,13 @@ + +*.swp +*.dia~ +.idea/ +.DS_Store + +npm-debug.log +yarn-error.log +node_modules/ +tmp/ + +# happypack 缓存 +.happypack diff --git a/templates/ice-design/blocks/ComplexTabTable/README.md b/templates/ice-design/blocks/ComplexTabTable/README.md new file mode 100644 index 0000000000..9986b46f37 --- /dev/null +++ b/templates/ice-design/blocks/ComplexTabTable/README.md @@ -0,0 +1,12 @@ +# complex-tab-table + +简介:复杂 Tab 筛选表格 + +附带复杂的 Tab 多级筛选项的表格 + +![截图](https://img.alicdn.com/tfs/TB1IZMeifDH8KJjy1XcXXcpdXXa-1892-1462.png) + +## 更多 + +* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) +* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) diff --git a/templates/ice-design/blocks/ComplexTabTable/demo/index.html b/templates/ice-design/blocks/ComplexTabTable/demo/index.html new file mode 100644 index 0000000000..9d2d3a663d --- /dev/null +++ b/templates/ice-design/blocks/ComplexTabTable/demo/index.html @@ -0,0 +1,19 @@ + + + + + + + + Document + + + + +
    + + + + + + diff --git a/templates/ice-design/blocks/ComplexTabTable/demo/index.js b/templates/ice-design/blocks/ComplexTabTable/demo/index.js new file mode 100644 index 0000000000..4d6acd389a --- /dev/null +++ b/templates/ice-design/blocks/ComplexTabTable/demo/index.js @@ -0,0 +1,19 @@ +import React, { Component } from 'react'; +import { render } from 'react-dom'; + +// 载入默认全局样式 normalize 、.clearfix 和一些 mixin 方法等 +import '@icedesign/base/lib/_components/@alife/next-core/lib/index.scss'; + +import DemoLayout from '@icedesign/demo-layout'; +import Block from '../src'; + +const props = { + // ... +}; + +render( + + + , + document.querySelector('#mountNode') +); diff --git a/templates/ice-design/blocks/ComplexTabTable/mock/complex-tab-table-list.json b/templates/ice-design/blocks/ComplexTabTable/mock/complex-tab-table-list.json new file mode 100644 index 0000000000..d6fa80d115 --- /dev/null +++ b/templates/ice-design/blocks/ComplexTabTable/mock/complex-tab-table-list.json @@ -0,0 +1,114 @@ +{ + "status": "SUCCESS", + "data": { + "total": 100, + "pageSize": 10, + "currentPage": 1, + "list": [ + { + "id": 1, + "cover": "//img.alicdn.com/bao/uploaded/i3/120976213/TB2O4nSnblmpuFjSZFlXXbdQXXa_!!120976213.jpg_240x240.jpg", + "title": "于momo2017秋冬新款背带裙复古格子连衣裙清新背心裙a字裙短裙子", + "url": "https://item.taobao.com/item.htm?id=558559528377", + "type": "清单", + "publishTime": "17-04-28 20:29:20", + "publishStatus": "已发布", + "pushStatus": "已推送至订阅号", + "operation": { + "edit": true + } + }, + { + "id": 2, + "cover": "//img.alicdn.com/bao/uploaded/i4/TB1GiPSinJ_SKJjSZPiYXH3LpXa_M2.SS2_100x100.jpg", + "title": "SOTHEA 2017秋冬新款 高质感特定纱线欧美宽松马海毛羊毛毛衣", + "url": "https://item.taobao.com/item.htm?id=558559528377", + "type": "清单", + "publishTime": "17-04-28 20:29:20", + "publishStatus": "已发布", + "pushStatus": "已推送至订阅号", + "operation": { + "edit": true + } + }, + { + "id": 3, + "cover": "//img.alicdn.com/bao/uploaded/i3/120976213/TB2O4nSnblmpuFjSZFlXXbdQXXa_!!120976213.jpg_240x240.jpg", + "title": "川岛屋 日式天然玉米皮草编碗垫锅垫隔热垫茶垫加厚餐垫GD-29", + "url": "https://item.taobao.com/item.htm?id=558559528377", + "type": "清单", + "publishTime": "17-04-28 20:29:20", + "publishStatus": "已发布", + "pushStatus": "已推送至订阅号", + "operation": { + "edit": true + } + }, + { + "id": 4, + "cover": "//img.alicdn.com/bao/uploaded/i7/TB1QpMvk3n.PuJjSZFkYXI_lpXa_M2.SS2_100x100.jpg", + "title": "SOTHEA 2017秋冬新款 绑带腰封设计感超顺滑质感落肩铜氨丝连衣裙", + "url": "https://item.taobao.com/item.htm?id=558559528377", + "type": "清单", + "publishTime": "17-04-28 20:29:20", + "publishStatus": "已发布", + "pushStatus": "已推送至订阅号", + "operation": { + "edit": true + } + }, + { + "id": 5, + "cover": "//img.alicdn.com/bao/uploaded/i4/120976213/TB2GiVsdS0mpuFjSZPiXXbssVXa_!!120976213.jpg_240x240.jpg", + "title": "川岛屋 日式糖果色陶瓷柄不锈钢餐具西餐牛扒刀叉勺子咖啡勺S-27", + "url": "https://item.taobao.com/item.htm?id=558559528377", + "type": "清单", + "publishTime": "17-04-28 20:29:20", + "publishStatus": "已发布", + "pushStatus": "已推送至订阅号", + "operation": { + "edit": true + } + }, + { + "id": 6, + "cover": "//img.alicdn.com/bao/uploaded/i3/120976213/TB2bxHGtpXXXXXVXXXXXXXXXXXX_!!120976213.jpg_240x240.jpg", + "title": "日式和风深蓝素色文艺餐巾餐垫围裙锅垫隔热手套厨房桌布GD-11", + "url": "https://item.taobao.com/item.htm?id=558559528377", + "type": "清单", + "publishTime": "17-04-28 20:29:20", + "publishStatus": "已发布", + "pushStatus": "已推送至订阅号", + "operation": { + "edit": true + } + }, + { + "id": 7, + "cover": "https://img.alicdn.com/bao/uploaded/i4/120976213/TB2bEcHnXXXXXbgXXXXXXXXXXXX_!!120976213.jpg_100x100.jpg", + "title": "川岛屋 日式雪点樱花手绘陶瓷餐具米饭碗拉面碗寿司盘子汤碗PZ-36", + "url": "https://item.taobao.com/item.htm?id=558559528377", + "type": "清单", + "publishTime": "17-04-28 20:29:20", + "publishStatus": "已发布", + "pushStatus": "已推送至订阅号", + "operation": { + "edit": true + } + }, + { + "id": 8, + "cover": "//img.alicdn.com/bao/uploaded/i2/TB11DjAIFXXXXaTXFXXXXXXXXXX_!!0-item_pic.jpg_100x100.jpg", + "title": "川岛屋 釉下彩复古日式陶瓷盘子菜盘圆盘调味碟 米饭碗日式餐具", + "url": "https://item.taobao.com/item.htm?id=558559528377", + "type": "清单", + "publishTime": "17-04-28 20:29:20", + "publishStatus": "已发布", + "pushStatus": "已推送至订阅号", + "operation": { + "edit": true + } + } + ] + } +} \ No newline at end of file diff --git a/templates/ice-design/blocks/ComplexTabTable/package.json b/templates/ice-design/blocks/ComplexTabTable/package.json new file mode 100644 index 0000000000..ee867ff0f5 --- /dev/null +++ b/templates/ice-design/blocks/ComplexTabTable/package.json @@ -0,0 +1,55 @@ +{ + "name": "@icedesign/complex-tab-table-block", + "version": "0.1.0", + "description": "附带复杂的 Tab 多级筛选项的表格", + "files": [ + "src/", + "demo/", + "lib/", + "mock/" + ], + "author": { + "name": "ICE Team", + "email": "ice-admin@alibaba-inc.com" + }, + "repository": { + "type": "git", + "url": "https://github.com/alibaba/ice" + }, + "license": "MIT", + "keywords": [ + "ice", + "ice-block" + ], + "dependencies": { + "@icedesign/base": "^0.1.0", + "@icedesign/card": "^0.1.0", + "@icedesign/data-binder": "^0.1.0", + "@icedesign/img": "^0.1.0", + "@icedesign/label": "^0.1.0", + "@icedesign/skin": "^0.1.3", + "prop-types": "^15.5.8" + }, + "devDependencies": { + "babel-eslint": "^8.0.3", + "eslint": "^4.13.1", + "eslint-plugin-babel": "^4.1.1", + "eslint-plugin-react": "^7.5.1", + "@icedesign/demo-layout": "^0.1.0", + "eslint-plugin-import": "^2.8.0", + "eslint-config-airbnb": "^16.1.0", + "eslint-plugin-jsx-a11y": "^6.0.3", + "@icedesign/skin": "^0.1.2" + }, + "blockConfig": { + "name": "complex-tab-table", + "description": "附带复杂的 Tab 多级筛选项的表格", + "chinese": "复杂 Tab 筛选表格", + "category": "table", + "snapshot": "https://img.alicdn.com/tfs/TB1IZMeifDH8KJjy1XcXXcpdXXa-1892-1462.png", + "sketchURL": "", + "icelandURL": "", + "themePackage": "@icedesign/skin" + }, + "scripts": {} +} diff --git a/templates/ice-design/blocks/ComplexTabTable/src/ComplexTabTable.jsx b/templates/ice-design/blocks/ComplexTabTable/src/ComplexTabTable.jsx new file mode 100644 index 0000000000..2eeaef3954 --- /dev/null +++ b/templates/ice-design/blocks/ComplexTabTable/src/ComplexTabTable.jsx @@ -0,0 +1,337 @@ +'use strict'; + +import React, { Component } from 'react'; +import PropTypes from 'prop-types'; +import './ComplexTabTable.scss'; + +import { Table, Pagination, Tab, DatePicker, Search } from '@icedesign/base'; + +import IceCard from '@icedesign/card'; +import IceImg from '@icedesign/img'; +import DataBinder from '@icedesign/data-binder'; +import IceLabel from '@icedesign/label'; + +import SubCategoryItem from './SubCategoryItem'; + +// 详细用法请参见 http://ice.alibaba-inc.com/modules/ice-data-binder +@DataBinder({ + tableData: { + // 详细请求配置请参见 https://github.com/axios/axios + url: '/mock/complex-tab-table-list.json', + params: { + page: 1 + }, + defaultBindingData: { + list: [], + total: 100, + pageSize: 10, + currentPage: 1 + } + } +}) +export default class ComplexTabTable extends Component { + static displayName = 'ComplexTabTable'; + + static propTypes = { + style: PropTypes.object, + className: PropTypes.string + }; + + static defaultProps = {}; + + constructor(props) { + super(props); + + this.queryCache = {}; + this.state = { + currentTab: 'solved', + currentCategory: '1', + tabList: [ + { + text: '已解决', + count: '123', + type: 'solved', + subCategories: [ + { + text: '申请账号失败', + id: '1' + }, + { + text: '粉丝数为0', + id: '2' + }, + { + text: '空间不足', + id: '3' + }, + { + text: '系统报错', + id: '4' + }, + { + text: '网络异常', + id: '5' + }, + { + text: '不在范围', + id: '6' + } + ] + }, + { + text: '待解决', + count: '10', + type: 'needFix', + subCategories: [ + { + text: '网络异常', + id: '21' + }, + { + text: '空间不足', + id: '22' + } + ] + }, + { + text: '待验证', + count: '32', + type: 'needValidate', + subCategories: [ + { + text: '系统报错', + id: '34' + }, + { + text: '网络异常', + id: '35' + }, + { + text: '不在范围', + id: '36' + } + ] + } + ] + }; + } + + // ICE: React Component 的生命周期 + // http://ice.alibaba-inc.com/docs/guide/intro-react#React-组件的生命周期 + componentWillMount() {} + + componentDidMount() { + this.queryCache.page = 1; + this.fetchData(); + } + + componentWillReceiveProps(nextProps, nextContext) {} + + shouldComponentUpdate(nextProps, nextState) { + return true; + } + + componentWillUnmount() {} + + fetchData = () => { + this.props.updateBindingData('tableData', { + data: this.queryCache + }); + }; + + renderTitle = (value, index, record) => { + return ( +
    +
    + +
    + {record.title} +
    + ); + }; + + editItem = (record, e) => { + e.preventDefault(); + // todo + }; + + renderOperations = (value, index, record) => { + return ( + + ); + }; + + renderStatus = (value, index, record) => { + return ( + + {value} + + ); + }; + + changePage = (currentPage) => { + this.queryCache.page = currentPage; + + this.fetchData(); + }; + + onTabChange = (tabKey) => { + const firstTabCatId = this.state.tabList.find((item) => { + return item.type === tabKey; + }).subCategories[0].id; + + this.setState({ + currentTab: tabKey, + currentCategory: firstTabCatId + }); + this.queryCache.catId = firstTabCatId; + this.fetchData(); + }; + + onDateChange = (date, strDate) => { + this.queryCache.date = strDate; + this.fetchData(); + }; + + onSearch = (value) => { + this.queryCache.keywords = value.key; + this.fetchData(); + }; + + onSubCategoryClick = (catId) => { + this.setState({ + currentCategory: catId + }); + this.queryCache.catId = catId; + this.fetchData(); + }; + + render() { + const tableData = this.props.bindingData.tableData; + + const { tabList } = this.state; + + return ( +
    + + + + +
    + } + > + {tabList && tabList.length > 0 + ? tabList.map((tab, idx) => { + return ( + + {tab.text}{' '} + {tab.count} + + } + > + {tab.subCategories && tab.subCategories.length > 0 + ? tab.subCategories.map((catItem, index) => { + return ( + + ); + }) + : null} + + ); + }) + : null} + + + + + + + + + +
    +
    + +
    +
    +
    + ); + } +} + +const styles = { + complexTabTableOperation: { lineHeight: '28px' }, + titleWrapper: { display: 'flex', flexDirection: 'row' }, + title: { marginLeft: '10px', lineHeight: '20px' }, + tabExtra: { display: 'flex', alignItems: 'center' }, + search: { marginLeft: 10 }, + tabCount: { color: '#3080FE' }, + pagination: { textAlign: 'right', paddingTop: '26px' } +}; diff --git a/templates/ice-design/blocks/ComplexTabTable/src/ComplexTabTable.scss b/templates/ice-design/blocks/ComplexTabTable/src/ComplexTabTable.scss new file mode 100644 index 0000000000..43f2636502 --- /dev/null +++ b/templates/ice-design/blocks/ComplexTabTable/src/ComplexTabTable.scss @@ -0,0 +1,14 @@ +@charset "UTF-8"; + +.complex-tab-table { + .complex-tab-table-operation { + a { + margin-right: 12px; + text-decoration: none; + } + } + .next-tabs-medium .next-tabs-tab-inner { + height: 40px; + line-height: 40px; + } +} diff --git a/templates/ice-design/blocks/ComplexTabTable/src/SubCategoryItem.jsx b/templates/ice-design/blocks/ComplexTabTable/src/SubCategoryItem.jsx new file mode 100644 index 0000000000..9697f0a101 --- /dev/null +++ b/templates/ice-design/blocks/ComplexTabTable/src/SubCategoryItem.jsx @@ -0,0 +1,35 @@ +'use strict'; + +import React, { Component } from 'react'; +import PropTypes from 'prop-types'; + +const categoryStyle = { + display: 'inline-block', + marginRight: '12px', + padding: '0 20px', + height: '24px', + lineHeight: '24px', + textAlign: 'center', + borderRadius: '100px', + cursor: 'pointer', + fontSize: '12px', + marginTop: '12px' +}; + +export default (props) => { + + return ( + { + props.onItemClick && props.onItemClick(props.id); + }} + > + {props.text} + + ); +} \ No newline at end of file diff --git a/templates/ice-design/blocks/ComplexTabTable/src/index.js b/templates/ice-design/blocks/ComplexTabTable/src/index.js new file mode 100644 index 0000000000..bf56845114 --- /dev/null +++ b/templates/ice-design/blocks/ComplexTabTable/src/index.js @@ -0,0 +1,3 @@ +import ComplexTabTable from './ComplexTabTable'; + +export default ComplexTabTable; diff --git a/templates/ice-design/blocks/CompositeFilter/.editorconfig b/templates/ice-design/blocks/CompositeFilter/.editorconfig new file mode 100644 index 0000000000..22ef5ace54 --- /dev/null +++ b/templates/ice-design/blocks/CompositeFilter/.editorconfig @@ -0,0 +1,16 @@ +# http://editorconfig.org +root = true + +[*] +indent_style = space +indent_size = 2 +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false + +[makefile] +indent_style = tab +indent_size = 4 diff --git a/templates/ice-design/blocks/CompositeFilter/.eslintignore b/templates/ice-design/blocks/CompositeFilter/.eslintignore new file mode 100644 index 0000000000..3b21308fc7 --- /dev/null +++ b/templates/ice-design/blocks/CompositeFilter/.eslintignore @@ -0,0 +1,12 @@ +# 忽略目录 +build/ +tests/ +demo/ +lib/ + +# node 覆盖率文件 +coverage/ + +# 忽略文件 +**/*-min.js +**/*.min.js \ No newline at end of file diff --git a/templates/ice-design/blocks/CompositeFilter/.eslintrc b/templates/ice-design/blocks/CompositeFilter/.eslintrc new file mode 100644 index 0000000000..7a4e5bac48 --- /dev/null +++ b/templates/ice-design/blocks/CompositeFilter/.eslintrc @@ -0,0 +1,62 @@ +{ + "root": true, + "parser": "babel-eslint", + "extends": "eslint-config-airbnb", + "parserOptions": { + "ecmaVersion": 6, + "ecmaFeatures": { + "jsx": true, + "experimentalObjectRestSpread": true + } + }, + "env": { + "browser": true + }, + "plugins": [ + "react", + "babel" + ], + "rules": { + "react/forbid-prop-types": 0, + "jsx-a11y/label-has-for": 0, + "jsx-a11y/no-static-element-interactions": 0, + "jsx-a11y/anchor-has-content": 0, + "jsx-a11y/click-events-have-key-events": 0, + "jsx-a11y/anchor-is-valid": 0, + "react/no-array-index-key": 0, + "func-names": 0, + "arrow-body-style": 0, + "no-use-before-define": 0, + "react/sort-comp": 0, + "react/prop-types": 0, + "react/jsx-first-prop-new-line": 0, + "react/jsx-filename-extension": [ + 1, + { + "extensions": [ + ".js", + ".jsx" + ] + } + ], + "import/extensions": 0, + "import/no-unresolved": 0, + "import/no-extraneous-dependencies": 0, + "prefer-destructuring": 0, + "no-param-reassign": 0, + "no-return-assign": 0, + "max-len": 0, + "consistent-return": 0, + "no-redeclare": 0, + "react/require-extension": 0, + "react/no-danger": 0, + "comma-dangle": [ + "error", + "always-multiline" + ], + "function-paren-newline": 0, + "object-curly-newline": 0, + "no-restricted-globals": 0, + "react/prefer-stateless-function": 0 + } +} diff --git a/templates/ice-design/blocks/CompositeFilter/.gitignore b/templates/ice-design/blocks/CompositeFilter/.gitignore new file mode 100644 index 0000000000..cc45d6fb3c --- /dev/null +++ b/templates/ice-design/blocks/CompositeFilter/.gitignore @@ -0,0 +1,13 @@ + +*.swp +*.dia~ +.idea/ +.DS_Store + +npm-debug.log +yarn-error.log +node_modules/ +tmp/ + +# happypack 缓存 +.happypack diff --git a/templates/ice-design/blocks/CompositeFilter/README.md b/templates/ice-design/blocks/CompositeFilter/README.md new file mode 100644 index 0000000000..8052ce912c --- /dev/null +++ b/templates/ice-design/blocks/CompositeFilter/README.md @@ -0,0 +1,10 @@ +# composite-filter + +简介:复杂的筛选 + +![截图](https://img.alicdn.com/tfs/TB1mfclilTH8KJjy0FiXXcRsXXa-1896-246.png) + +## 更多 + +* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) +* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) diff --git a/templates/ice-design/blocks/CompositeFilter/demo/index.html b/templates/ice-design/blocks/CompositeFilter/demo/index.html new file mode 100644 index 0000000000..9d2d3a663d --- /dev/null +++ b/templates/ice-design/blocks/CompositeFilter/demo/index.html @@ -0,0 +1,19 @@ + + + + + + + + Document + + + + +
    + + + + + + diff --git a/templates/ice-design/blocks/CompositeFilter/demo/index.js b/templates/ice-design/blocks/CompositeFilter/demo/index.js new file mode 100644 index 0000000000..4d6acd389a --- /dev/null +++ b/templates/ice-design/blocks/CompositeFilter/demo/index.js @@ -0,0 +1,19 @@ +import React, { Component } from 'react'; +import { render } from 'react-dom'; + +// 载入默认全局样式 normalize 、.clearfix 和一些 mixin 方法等 +import '@icedesign/base/lib/_components/@alife/next-core/lib/index.scss'; + +import DemoLayout from '@icedesign/demo-layout'; +import Block from '../src'; + +const props = { + // ... +}; + +render( + + + , + document.querySelector('#mountNode') +); diff --git a/templates/ice-design/blocks/CompositeFilter/mock/api.json b/templates/ice-design/blocks/CompositeFilter/mock/api.json new file mode 100644 index 0000000000..e706430232 --- /dev/null +++ b/templates/ice-design/blocks/CompositeFilter/mock/api.json @@ -0,0 +1,4 @@ +{ + "status": "success", + "data": {} +} diff --git a/templates/ice-design/blocks/CompositeFilter/package.json b/templates/ice-design/blocks/CompositeFilter/package.json new file mode 100644 index 0000000000..29e3b8cad2 --- /dev/null +++ b/templates/ice-design/blocks/CompositeFilter/package.json @@ -0,0 +1,52 @@ +{ + "name": "@icedesign/composite-filter-block", + "version": "0.1.0", + "description": "", + "main": "lib/index.js", + "files": [ + "src/", + "demo/", + "lib/", + "mock/" + ], + "author": { + "name": "ICE Team", + "email": "ice-admin@alibaba-inc.com" + }, + "repository": { + "type": "git", + "url": "https://github.com/alibaba/ice" + }, + "license": "MIT", + "keywords": [ + "ice", + "ice-block" + ], + "dependencies": { + "prop-types": "^15.5.8", + "@icedesign/base": "^0.1.0", + "@icedesign/card": "^0.1.0" + }, + "devDependencies": { + "babel-eslint": "^8.0.3", + "eslint": "^4.13.1", + "eslint-plugin-babel": "^4.1.1", + "eslint-plugin-react": "^7.5.1", + "@icedesign/demo-layout": "^0.1.0", + "eslint-plugin-import": "^2.8.0", + "eslint-config-airbnb": "^16.1.0", + "eslint-plugin-jsx-a11y": "^6.0.3", + "@icedesign/skin": "^0.1.2" + }, + "blockConfig": { + "name": "composite-filter", + "description": "复杂的筛选", + "chinese": "复杂的筛选", + "category": "filter", + "snapshot": "https://img.alicdn.com/tfs/TB1mfclilTH8KJjy0FiXXcRsXXa-1896-246.png", + "sketchURL": "", + "icelandURL": "", + "themePackage": "@icedesign/skin" + }, + "scripts": {} +} diff --git a/templates/ice-design/blocks/CompositeFilter/src/CompositeFilter.jsx b/templates/ice-design/blocks/CompositeFilter/src/CompositeFilter.jsx new file mode 100644 index 0000000000..a847c5ac47 --- /dev/null +++ b/templates/ice-design/blocks/CompositeFilter/src/CompositeFilter.jsx @@ -0,0 +1,128 @@ +'use strict'; + +import React, { Component } from 'react'; +import PropTypes from 'prop-types'; +import { Search, Tab, Tag, DatePicker } from '@icedesign/base'; +import IceCard from '@icedesign/card'; +import './CompositeFilter.scss'; + +const TabPane = Tab.TabPane; + +// mock data +const tagList = [ + { + key: 'all', + name: '全部商品' + }, + { + key: 'unclassified', + name: '未分类' + }, + { + key: 'invalid', + name: '已失效' + }, + { + key: 'haohuo', + name: '有好货专用' + }, + { + key: 'bimai', + name: '必买清单' + } +]; + +export default class CompositeFilter extends Component { + static displayName = 'CompositeFilter'; + + static propTypes = { + style: PropTypes.object, + className: PropTypes.string + }; + + static defaultProps = {}; + + constructor(props) { + super(props); + this.state = {}; + } + + onTabChange = (key) => { + console.log('select tab is: ' + key); + }; + + onTagChange = (key, selected) => { + console.log( + 'Tag: ' + key + ' is ' + (selected ? 'selected' : 'unselected') + ); + }; + + onDateChange = (value) => { + console.log(value); + }; + + onSearch = (value) => { + console.log(value); + }; + + render() { + return ( +
    + + + + +
    + } + > + + + + + + + +
    + {tagList.map((tag, index) => { + return ( + + {tag.name} + + ); + })} +
    + + + ); + } +} + +const styles = { + compositeFilter: {}, + filterCard: { position: 'relative', padding: 10 }, + tagList: { marginTop: '10px' }, + extraFilter: { + marginTop: '8px', + display: 'flex', + flexDirection: 'row' + }, + search: { marginLeft: '12px' } +}; diff --git a/templates/ice-design/blocks/CompositeFilter/src/CompositeFilter.scss b/templates/ice-design/blocks/CompositeFilter/src/CompositeFilter.scss new file mode 100644 index 0000000000..c3f6efce34 --- /dev/null +++ b/templates/ice-design/blocks/CompositeFilter/src/CompositeFilter.scss @@ -0,0 +1,4 @@ +@charset "UTF-8"; + +.composite-filter { +} diff --git a/templates/ice-design/blocks/CompositeFilter/src/index.js b/templates/ice-design/blocks/CompositeFilter/src/index.js new file mode 100644 index 0000000000..17df872b21 --- /dev/null +++ b/templates/ice-design/blocks/CompositeFilter/src/index.js @@ -0,0 +1,3 @@ +import CompositeFilter from './CompositeFilter'; + +export default CompositeFilter; diff --git a/templates/ice-design/blocks/ConfirmDialog/.editorconfig b/templates/ice-design/blocks/ConfirmDialog/.editorconfig new file mode 100644 index 0000000000..22ef5ace54 --- /dev/null +++ b/templates/ice-design/blocks/ConfirmDialog/.editorconfig @@ -0,0 +1,16 @@ +# http://editorconfig.org +root = true + +[*] +indent_style = space +indent_size = 2 +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false + +[makefile] +indent_style = tab +indent_size = 4 diff --git a/templates/ice-design/blocks/ConfirmDialog/.eslintignore b/templates/ice-design/blocks/ConfirmDialog/.eslintignore new file mode 100644 index 0000000000..3b21308fc7 --- /dev/null +++ b/templates/ice-design/blocks/ConfirmDialog/.eslintignore @@ -0,0 +1,12 @@ +# 忽略目录 +build/ +tests/ +demo/ +lib/ + +# node 覆盖率文件 +coverage/ + +# 忽略文件 +**/*-min.js +**/*.min.js \ No newline at end of file diff --git a/templates/ice-design/blocks/ConfirmDialog/.eslintrc b/templates/ice-design/blocks/ConfirmDialog/.eslintrc new file mode 100644 index 0000000000..7a4e5bac48 --- /dev/null +++ b/templates/ice-design/blocks/ConfirmDialog/.eslintrc @@ -0,0 +1,62 @@ +{ + "root": true, + "parser": "babel-eslint", + "extends": "eslint-config-airbnb", + "parserOptions": { + "ecmaVersion": 6, + "ecmaFeatures": { + "jsx": true, + "experimentalObjectRestSpread": true + } + }, + "env": { + "browser": true + }, + "plugins": [ + "react", + "babel" + ], + "rules": { + "react/forbid-prop-types": 0, + "jsx-a11y/label-has-for": 0, + "jsx-a11y/no-static-element-interactions": 0, + "jsx-a11y/anchor-has-content": 0, + "jsx-a11y/click-events-have-key-events": 0, + "jsx-a11y/anchor-is-valid": 0, + "react/no-array-index-key": 0, + "func-names": 0, + "arrow-body-style": 0, + "no-use-before-define": 0, + "react/sort-comp": 0, + "react/prop-types": 0, + "react/jsx-first-prop-new-line": 0, + "react/jsx-filename-extension": [ + 1, + { + "extensions": [ + ".js", + ".jsx" + ] + } + ], + "import/extensions": 0, + "import/no-unresolved": 0, + "import/no-extraneous-dependencies": 0, + "prefer-destructuring": 0, + "no-param-reassign": 0, + "no-return-assign": 0, + "max-len": 0, + "consistent-return": 0, + "no-redeclare": 0, + "react/require-extension": 0, + "react/no-danger": 0, + "comma-dangle": [ + "error", + "always-multiline" + ], + "function-paren-newline": 0, + "object-curly-newline": 0, + "no-restricted-globals": 0, + "react/prefer-stateless-function": 0 + } +} diff --git a/templates/ice-design/blocks/ConfirmDialog/.gitignore b/templates/ice-design/blocks/ConfirmDialog/.gitignore new file mode 100644 index 0000000000..cc45d6fb3c --- /dev/null +++ b/templates/ice-design/blocks/ConfirmDialog/.gitignore @@ -0,0 +1,13 @@ + +*.swp +*.dia~ +.idea/ +.DS_Store + +npm-debug.log +yarn-error.log +node_modules/ +tmp/ + +# happypack 缓存 +.happypack diff --git a/templates/ice-design/blocks/ConfirmDialog/README.md b/templates/ice-design/blocks/ConfirmDialog/README.md new file mode 100644 index 0000000000..95e2ee2df5 --- /dev/null +++ b/templates/ice-design/blocks/ConfirmDialog/README.md @@ -0,0 +1,10 @@ +# confirm-dialog + +简介:确认类型的提示框 + +![截图](https://img.alicdn.com/tfs/TB1Zr3xigvD8KJjy0FlXXagBFXa-1272-620.png) + +## 更多 + +* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) +* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) diff --git a/templates/ice-design/blocks/ConfirmDialog/demo/index.html b/templates/ice-design/blocks/ConfirmDialog/demo/index.html new file mode 100644 index 0000000000..9d2d3a663d --- /dev/null +++ b/templates/ice-design/blocks/ConfirmDialog/demo/index.html @@ -0,0 +1,19 @@ + + + + + + + + Document + + + + +
    + + + + + + diff --git a/templates/ice-design/blocks/ConfirmDialog/demo/index.js b/templates/ice-design/blocks/ConfirmDialog/demo/index.js new file mode 100644 index 0000000000..04788142cb --- /dev/null +++ b/templates/ice-design/blocks/ConfirmDialog/demo/index.js @@ -0,0 +1,25 @@ +import React, { Component } from 'react'; +import { render } from 'react-dom'; +import DemoLayout from '@icedesign/demo-layout'; +import Block from '../src'; + +Block.show({ + onClose: () => { + Block.hide(); + }, + onCancel: () => { + Block.hide(); + }, + text: '是否要删除当前文章?' +}); + +const props = { + // ... +}; + +render( + +
    + , + document.querySelector('#mountNode') +); diff --git a/templates/ice-design/blocks/ConfirmDialog/mock/api.json b/templates/ice-design/blocks/ConfirmDialog/mock/api.json new file mode 100644 index 0000000000..e706430232 --- /dev/null +++ b/templates/ice-design/blocks/ConfirmDialog/mock/api.json @@ -0,0 +1,4 @@ +{ + "status": "success", + "data": {} +} diff --git a/templates/ice-design/blocks/ConfirmDialog/package.json b/templates/ice-design/blocks/ConfirmDialog/package.json new file mode 100644 index 0000000000..45cadfaf10 --- /dev/null +++ b/templates/ice-design/blocks/ConfirmDialog/package.json @@ -0,0 +1,51 @@ +{ + "name": "@icedesign/confirm-dialog-block", + "version": "0.1.0", + "description": "", + "main": "lib/index.js", + "files": [ + "src/", + "demo/", + "lib/", + "mock/" + ], + "author": { + "name": "ICE Team", + "email": "ice-admin@alibaba-inc.com" + }, + "repository": { + "type": "git", + "url": "https://github.com/alibaba/ice" + }, + "license": "MIT", + "keywords": [ + "ice", + "ice-block" + ], + "dependencies": { + "prop-types": "^15.5.8", + "@icedesign/base": "^0.1.0" + }, + "devDependencies": { + "babel-eslint": "^8.0.3", + "eslint": "^4.13.1", + "eslint-plugin-babel": "^4.1.1", + "eslint-plugin-react": "^7.5.1", + "@icedesign/demo-layout": "^0.1.0", + "eslint-plugin-import": "^2.8.0", + "eslint-config-airbnb": "^16.1.0", + "eslint-plugin-jsx-a11y": "^6.0.3", + "@icedesign/skin": "^0.1.2" + }, + "blockConfig": { + "name": "confirm-dialog", + "description": "确认类型的提示框", + "chinese": "确认类型的提示框", + "category": "modal", + "snapshot": "https://img.alicdn.com/tfs/TB1Zr3xigvD8KJjy0FlXXagBFXa-1272-620.png", + "sketchURL": "", + "icelandURL": "", + "themePackage": "@icedesign/skin" + }, + "scripts": {} +} diff --git a/templates/ice-design/blocks/ConfirmDialog/src/ConfirmDialog.jsx b/templates/ice-design/blocks/ConfirmDialog/src/ConfirmDialog.jsx new file mode 100644 index 0000000000..e27676c9a2 --- /dev/null +++ b/templates/ice-design/blocks/ConfirmDialog/src/ConfirmDialog.jsx @@ -0,0 +1,62 @@ +'use strict'; + +import React, { Component } from 'react'; +import { Dialog } from '@icedesign/base'; +import './ConfirmDialog.scss'; + +import CreateFuncDialog from './CreateFuncDialog'; + +class ConfirmDialog extends Component { + static displayName = 'ConfirmDialog'; + + constructor(props) { + super(props); + this.state = { + visible: props.visible + }; + } + + render() { + return ( + +
    + +

    + {this.props.text ? this.props.text : '你确定要删除此条内容吗?'} +

    +
    +
    + ); + } +} + +const styles = { + dialog: { width: '640px' }, + icon: { + width: '52px', + height: '52px', + marginTop: '26px', + marginBottom: '10px' + }, + dialogContent: { + height: '160px', + display: 'flex', + flexDirection: 'column', + alignItems: 'center' + }, + text: { fontSize: '16px;' } +}; + +export default CreateFuncDialog(ConfirmDialog); diff --git a/templates/ice-design/blocks/ConfirmDialog/src/ConfirmDialog.scss b/templates/ice-design/blocks/ConfirmDialog/src/ConfirmDialog.scss new file mode 100644 index 0000000000..af8c4bccb0 --- /dev/null +++ b/templates/ice-design/blocks/ConfirmDialog/src/ConfirmDialog.scss @@ -0,0 +1,4 @@ +@charset "UTF-8"; + +.confirm-dialog { +} diff --git a/templates/ice-design/blocks/ConfirmDialog/src/CreateFuncDialog.js b/templates/ice-design/blocks/ConfirmDialog/src/CreateFuncDialog.js new file mode 100644 index 0000000000..b009df541d --- /dev/null +++ b/templates/ice-design/blocks/ConfirmDialog/src/CreateFuncDialog.js @@ -0,0 +1,46 @@ +'use strict'; + +import React from 'react'; +import ReactDOM from 'react-dom'; + +// 包装 Dialog 类组件,使其支持 show、hide 这种命令式调用 +const CreateFuncDialog = WrapperElement => { + let instance = null; + let container = null; + + return { + // 创建并打开一个弹窗,并传入初始化的 props + show: props => { + // 如果已经有实例打开了,则不会继续打开 + if (instance) { + return; + } + + container = document.createElement('div'); + document.body.appendChild(container); + instance = ReactDOM.render( + , + container + ); + }, + // 隐藏并销毁弹窗 + hide: () => { + if (instance) { + instance.setState( + { + visible: false + }, + () => { + setTimeout(() => { + ReactDOM.unmountComponentAtNode(container); + instance = null; + container.parentNode.removeChild(container); + }, 1000); + } + ); + } + } + }; +}; + +export default CreateFuncDialog; diff --git a/templates/ice-design/blocks/ConfirmDialog/src/index.js b/templates/ice-design/blocks/ConfirmDialog/src/index.js new file mode 100644 index 0000000000..8e034e44e4 --- /dev/null +++ b/templates/ice-design/blocks/ConfirmDialog/src/index.js @@ -0,0 +1,3 @@ +import ConfirmDialog from './ConfirmDialog'; + +export default ConfirmDialog; diff --git a/templates/ice-design/blocks/DataDisplay/.editorconfig b/templates/ice-design/blocks/DataDisplay/.editorconfig new file mode 100644 index 0000000000..22ef5ace54 --- /dev/null +++ b/templates/ice-design/blocks/DataDisplay/.editorconfig @@ -0,0 +1,16 @@ +# http://editorconfig.org +root = true + +[*] +indent_style = space +indent_size = 2 +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false + +[makefile] +indent_style = tab +indent_size = 4 diff --git a/templates/ice-design/blocks/DataDisplay/.eslintignore b/templates/ice-design/blocks/DataDisplay/.eslintignore new file mode 100644 index 0000000000..3b21308fc7 --- /dev/null +++ b/templates/ice-design/blocks/DataDisplay/.eslintignore @@ -0,0 +1,12 @@ +# 忽略目录 +build/ +tests/ +demo/ +lib/ + +# node 覆盖率文件 +coverage/ + +# 忽略文件 +**/*-min.js +**/*.min.js \ No newline at end of file diff --git a/templates/ice-design/blocks/DataDisplay/.eslintrc b/templates/ice-design/blocks/DataDisplay/.eslintrc new file mode 100644 index 0000000000..7a4e5bac48 --- /dev/null +++ b/templates/ice-design/blocks/DataDisplay/.eslintrc @@ -0,0 +1,62 @@ +{ + "root": true, + "parser": "babel-eslint", + "extends": "eslint-config-airbnb", + "parserOptions": { + "ecmaVersion": 6, + "ecmaFeatures": { + "jsx": true, + "experimentalObjectRestSpread": true + } + }, + "env": { + "browser": true + }, + "plugins": [ + "react", + "babel" + ], + "rules": { + "react/forbid-prop-types": 0, + "jsx-a11y/label-has-for": 0, + "jsx-a11y/no-static-element-interactions": 0, + "jsx-a11y/anchor-has-content": 0, + "jsx-a11y/click-events-have-key-events": 0, + "jsx-a11y/anchor-is-valid": 0, + "react/no-array-index-key": 0, + "func-names": 0, + "arrow-body-style": 0, + "no-use-before-define": 0, + "react/sort-comp": 0, + "react/prop-types": 0, + "react/jsx-first-prop-new-line": 0, + "react/jsx-filename-extension": [ + 1, + { + "extensions": [ + ".js", + ".jsx" + ] + } + ], + "import/extensions": 0, + "import/no-unresolved": 0, + "import/no-extraneous-dependencies": 0, + "prefer-destructuring": 0, + "no-param-reassign": 0, + "no-return-assign": 0, + "max-len": 0, + "consistent-return": 0, + "no-redeclare": 0, + "react/require-extension": 0, + "react/no-danger": 0, + "comma-dangle": [ + "error", + "always-multiline" + ], + "function-paren-newline": 0, + "object-curly-newline": 0, + "no-restricted-globals": 0, + "react/prefer-stateless-function": 0 + } +} diff --git a/templates/ice-design/blocks/DataDisplay/.gitignore b/templates/ice-design/blocks/DataDisplay/.gitignore new file mode 100644 index 0000000000..cc45d6fb3c --- /dev/null +++ b/templates/ice-design/blocks/DataDisplay/.gitignore @@ -0,0 +1,13 @@ + +*.swp +*.dia~ +.idea/ +.DS_Store + +npm-debug.log +yarn-error.log +node_modules/ +tmp/ + +# happypack 缓存 +.happypack diff --git a/templates/ice-design/blocks/DataDisplay/README.md b/templates/ice-design/blocks/DataDisplay/README.md new file mode 100644 index 0000000000..3b9ad2f0f5 --- /dev/null +++ b/templates/ice-design/blocks/DataDisplay/README.md @@ -0,0 +1,10 @@ +# data-display + +简介:数据展示 + +![截图](https://img.alicdn.com/tfs/TB1IKT9jfDH8KJjy1XcXXcpdXXa-1892-324.png) + +## 更多 + +* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) +* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) diff --git a/templates/ice-design/blocks/DataDisplay/demo/index.html b/templates/ice-design/blocks/DataDisplay/demo/index.html new file mode 100644 index 0000000000..9d2d3a663d --- /dev/null +++ b/templates/ice-design/blocks/DataDisplay/demo/index.html @@ -0,0 +1,19 @@ + + + + + + + + Document + + + + +
    + + + + + + diff --git a/templates/ice-design/blocks/DataDisplay/demo/index.js b/templates/ice-design/blocks/DataDisplay/demo/index.js new file mode 100644 index 0000000000..4d6acd389a --- /dev/null +++ b/templates/ice-design/blocks/DataDisplay/demo/index.js @@ -0,0 +1,19 @@ +import React, { Component } from 'react'; +import { render } from 'react-dom'; + +// 载入默认全局样式 normalize 、.clearfix 和一些 mixin 方法等 +import '@icedesign/base/lib/_components/@alife/next-core/lib/index.scss'; + +import DemoLayout from '@icedesign/demo-layout'; +import Block from '../src'; + +const props = { + // ... +}; + +render( + + + , + document.querySelector('#mountNode') +); diff --git a/templates/ice-design/blocks/DataDisplay/mock/api.json b/templates/ice-design/blocks/DataDisplay/mock/api.json new file mode 100644 index 0000000000..e706430232 --- /dev/null +++ b/templates/ice-design/blocks/DataDisplay/mock/api.json @@ -0,0 +1,4 @@ +{ + "status": "success", + "data": {} +} diff --git a/templates/ice-design/blocks/DataDisplay/package.json b/templates/ice-design/blocks/DataDisplay/package.json new file mode 100644 index 0000000000..5f7ec43e36 --- /dev/null +++ b/templates/ice-design/blocks/DataDisplay/package.json @@ -0,0 +1,54 @@ +{ + "name": "@icedesign/data-display-block", + "version": "0.1.0", + "description": "", + "files": [ + "src/", + "demo/", + "lib/", + "mock/" + ], + "scripts": {}, + "author": { + "name": "ICE Team", + "email": "ice-admin@alibaba-inc.com" + }, + "repository": { + "type": "git", + "url": "https://github.com/alibaba/ice" + }, + "license": "MIT", + "keywords": [ + "ice", + "ice-block" + ], + "dependencies": { + "@icedesign/base": "^0.1.0", + "prop-types": "^15.5.8", + "@icedesign/card": "^0.1.0" + }, + "devDependencies": { + "@icedesign/skin": "^0.1.2", + "babel-eslint": "^8.0.3", + "eslint-plugin-react": "^7.5.1", + "react": "15.x", + "react-copy-to-clipboard": "^4.2.3", + "react-dom": "15.x", + "eslint": "^4.13.1", + "eslint-plugin-babel": "^4.1.1", + "eslint-plugin-import": "^2.8.0", + "eslint-config-airbnb": "^16.1.0", + "eslint-plugin-jsx-a11y": "^6.0.3", + "@icedesign/demo-layout": "^0.1.0" + }, + "blockConfig": { + "name": "data-display", + "description": "", + "chinese": "数据展示", + "category": "data-display", + "snapshot": "https://img.alicdn.com/tfs/TB1IKT9jfDH8KJjy1XcXXcpdXXa-1892-324.png", + "sketchURL": "", + "icelandURL": "", + "themePackage": "@icedesign/skin" + } +} diff --git a/templates/ice-design/blocks/DataDisplay/src/DataDisplay.jsx b/templates/ice-design/blocks/DataDisplay/src/DataDisplay.jsx new file mode 100644 index 0000000000..e8fcea001c --- /dev/null +++ b/templates/ice-design/blocks/DataDisplay/src/DataDisplay.jsx @@ -0,0 +1,85 @@ +import React, { Component } from 'react'; +import PropTypes from 'prop-types'; +import IceCard from '@icedesign/card'; +import './DataDisplay.scss'; + +const data = [ + { + count: 100, + title: '日活跃数' + }, + { + count: '3,000', + title: '月活跃数' + }, + { + count: '20,000', + title: '年活跃数' + } +]; + +export default class DataDisplay extends Component { + static displayName = 'DataDisplay'; + + static propTypes = {}; + + static defaultProps = {}; + + constructor(props) { + super(props); + this.state = {}; + } + + // ICE: React Component 的生命周期 + // http://ice.alibaba-inc.com/docs/guide/intro-react#React-组件的生命周期 + componentWillMount() {} + + componentDidMount() {} + + componentWillReceiveProps(nextProps, nextContext) {} + + shouldComponentUpdate(nextProps, nextState) { + return true; + } + + componentWillUnmount() {} + + render() { + return ( +
    + +
    + {data.map((item, index) => { + return ( +
    +
    {item.count}
    + +

    {item.title}

    +
    + ); + })} +
    +
    +
    + ); + } +} + +const styles = { + items: { display: 'flex', flexWrap: 'wrap' }, + item: { width: '33%', margin: '20px 0', textAlign: 'center' }, + count: { + margin: '12px 0', + fontWeight: 'bold', + fontSize: '32px', + color: '#15A0FF' + }, + title: { color: '#999' }, + splitLine: { + display: 'block', + margin: '0 auto', + width: '24px', + height: '1px', + background: '#9B9B9B' + } +}; diff --git a/templates/ice-design/blocks/DataDisplay/src/DataDisplay.scss b/templates/ice-design/blocks/DataDisplay/src/DataDisplay.scss new file mode 100644 index 0000000000..ed194a0673 --- /dev/null +++ b/templates/ice-design/blocks/DataDisplay/src/DataDisplay.scss @@ -0,0 +1,5 @@ +@charset "UTF-8"; + +.data-display { + +} diff --git a/templates/ice-design/blocks/DataDisplay/src/index.js b/templates/ice-design/blocks/DataDisplay/src/index.js new file mode 100644 index 0000000000..c061953dea --- /dev/null +++ b/templates/ice-design/blocks/DataDisplay/src/index.js @@ -0,0 +1,3 @@ +import DataDisplay from './DataDisplay'; + +export default DataDisplay; diff --git a/templates/ice-design/blocks/DetailTable/.editorconfig b/templates/ice-design/blocks/DetailTable/.editorconfig new file mode 100644 index 0000000000..22ef5ace54 --- /dev/null +++ b/templates/ice-design/blocks/DetailTable/.editorconfig @@ -0,0 +1,16 @@ +# http://editorconfig.org +root = true + +[*] +indent_style = space +indent_size = 2 +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false + +[makefile] +indent_style = tab +indent_size = 4 diff --git a/templates/ice-design/blocks/DetailTable/.eslintignore b/templates/ice-design/blocks/DetailTable/.eslintignore new file mode 100644 index 0000000000..3b21308fc7 --- /dev/null +++ b/templates/ice-design/blocks/DetailTable/.eslintignore @@ -0,0 +1,12 @@ +# 忽略目录 +build/ +tests/ +demo/ +lib/ + +# node 覆盖率文件 +coverage/ + +# 忽略文件 +**/*-min.js +**/*.min.js \ No newline at end of file diff --git a/templates/ice-design/blocks/DetailTable/.eslintrc b/templates/ice-design/blocks/DetailTable/.eslintrc new file mode 100644 index 0000000000..7a4e5bac48 --- /dev/null +++ b/templates/ice-design/blocks/DetailTable/.eslintrc @@ -0,0 +1,62 @@ +{ + "root": true, + "parser": "babel-eslint", + "extends": "eslint-config-airbnb", + "parserOptions": { + "ecmaVersion": 6, + "ecmaFeatures": { + "jsx": true, + "experimentalObjectRestSpread": true + } + }, + "env": { + "browser": true + }, + "plugins": [ + "react", + "babel" + ], + "rules": { + "react/forbid-prop-types": 0, + "jsx-a11y/label-has-for": 0, + "jsx-a11y/no-static-element-interactions": 0, + "jsx-a11y/anchor-has-content": 0, + "jsx-a11y/click-events-have-key-events": 0, + "jsx-a11y/anchor-is-valid": 0, + "react/no-array-index-key": 0, + "func-names": 0, + "arrow-body-style": 0, + "no-use-before-define": 0, + "react/sort-comp": 0, + "react/prop-types": 0, + "react/jsx-first-prop-new-line": 0, + "react/jsx-filename-extension": [ + 1, + { + "extensions": [ + ".js", + ".jsx" + ] + } + ], + "import/extensions": 0, + "import/no-unresolved": 0, + "import/no-extraneous-dependencies": 0, + "prefer-destructuring": 0, + "no-param-reassign": 0, + "no-return-assign": 0, + "max-len": 0, + "consistent-return": 0, + "no-redeclare": 0, + "react/require-extension": 0, + "react/no-danger": 0, + "comma-dangle": [ + "error", + "always-multiline" + ], + "function-paren-newline": 0, + "object-curly-newline": 0, + "no-restricted-globals": 0, + "react/prefer-stateless-function": 0 + } +} diff --git a/templates/ice-design/blocks/DetailTable/.gitignore b/templates/ice-design/blocks/DetailTable/.gitignore new file mode 100644 index 0000000000..cc45d6fb3c --- /dev/null +++ b/templates/ice-design/blocks/DetailTable/.gitignore @@ -0,0 +1,13 @@ + +*.swp +*.dia~ +.idea/ +.DS_Store + +npm-debug.log +yarn-error.log +node_modules/ +tmp/ + +# happypack 缓存 +.happypack diff --git a/templates/ice-design/blocks/DetailTable/README.md b/templates/ice-design/blocks/DetailTable/README.md new file mode 100644 index 0000000000..c54cd8303f --- /dev/null +++ b/templates/ice-design/blocks/DetailTable/README.md @@ -0,0 +1,12 @@ +# detail-table + +简介:详情信息表格 + +展示详情信息的表格 + +![截图](https://img.alicdn.com/tfs/TB1hplfjr_I8KJjy1XaXXbsxpXa-1886-700.png) + +## 更多 + +* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) +* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) diff --git a/templates/ice-design/blocks/DetailTable/demo/index.html b/templates/ice-design/blocks/DetailTable/demo/index.html new file mode 100644 index 0000000000..9d2d3a663d --- /dev/null +++ b/templates/ice-design/blocks/DetailTable/demo/index.html @@ -0,0 +1,19 @@ + + + + + + + + Document + + + + +
    + + + + + + diff --git a/templates/ice-design/blocks/DetailTable/demo/index.js b/templates/ice-design/blocks/DetailTable/demo/index.js new file mode 100644 index 0000000000..178a766115 --- /dev/null +++ b/templates/ice-design/blocks/DetailTable/demo/index.js @@ -0,0 +1,19 @@ +import React, {Component} from 'react'; +import {render} from 'react-dom'; + +// 载入默认全局样式 normalize 、.clearfix 和一些 mixin 方法等 +import '@icedesign/base/lib/_components/@alife/next-core/lib/index.scss'; + +import DemoLayout from '@icedesign/demo-layout'; +import Block from '../src'; + +const props = { + // ... +}; + +render( + + + , + document.querySelector('#mountNode') +); diff --git a/templates/ice-design/blocks/DetailTable/mock/api.json b/templates/ice-design/blocks/DetailTable/mock/api.json new file mode 100644 index 0000000000..e706430232 --- /dev/null +++ b/templates/ice-design/blocks/DetailTable/mock/api.json @@ -0,0 +1,4 @@ +{ + "status": "success", + "data": {} +} diff --git a/templates/ice-design/blocks/DetailTable/package.json b/templates/ice-design/blocks/DetailTable/package.json new file mode 100644 index 0000000000..e15a208046 --- /dev/null +++ b/templates/ice-design/blocks/DetailTable/package.json @@ -0,0 +1,54 @@ +{ + "name": "@icedesign/detail-table-block", + "version": "0.1.0", + "description": "展示详情信息的表格", + "files": [ + "src/", + "demo/", + "lib/", + "mock/" + ], + "scripts": {}, + "author": { + "name": "ICE Team", + "email": "ice-admin@alibaba-inc.com" + }, + "repository": { + "type": "git", + "url": "https://github.com/alibaba/ice" + }, + "license": "MIT", + "keywords": [ + "ice", + "ice-block" + ], + "dependencies": { + "@icedesign/base": "^0.1.0", + "prop-types": "^15.5.8", + "@icedesign/card": "^0.1.0" + }, + "devDependencies": { + "@icedesign/skin": "^0.1.2", + "babel-eslint": "^8.0.3", + "eslint-plugin-react": "^7.5.1", + "react": "15.x", + "react-copy-to-clipboard": "^4.2.3", + "react-dom": "15.x", + "eslint": "^4.13.1", + "eslint-plugin-babel": "^4.1.1", + "eslint-plugin-import": "^2.8.0", + "eslint-config-airbnb": "^16.1.0", + "eslint-plugin-jsx-a11y": "^6.0.3", + "@icedesign/demo-layout": "^0.1.0" + }, + "blockConfig": { + "name": "detail-table", + "description": "展示详情信息的表格", + "chinese": "详情信息表格", + "category": "table", + "snapshot": "https://img.alicdn.com/tfs/TB1hplfjr_I8KJjy1XaXXbsxpXa-1886-700.png", + "sketchURL": "", + "icelandURL": "", + "themePackage": "@icedesign/skin" + } +} diff --git a/templates/ice-design/blocks/DetailTable/src/DetailTable.jsx b/templates/ice-design/blocks/DetailTable/src/DetailTable.jsx new file mode 100644 index 0000000000..5af724cd36 --- /dev/null +++ b/templates/ice-design/blocks/DetailTable/src/DetailTable.jsx @@ -0,0 +1,86 @@ +import React, { Component } from 'react'; +import PropTypes from 'prop-types'; +import IceCard from '@icedesign/card'; +import './DetailTable.scss'; + +export default class DetailTable extends Component { + static displayName = 'DetailTable'; + + static propTypes = {}; + + static defaultProps = {}; + + constructor(props) { + super(props); + this.state = {}; + } + + // ICE: React Component 的生命周期 + // http://ice.alibaba-inc.com/docs/guide/intro-react#React-组件的生命周期 + componentWillMount() {} + + componentDidMount() {} + + componentWillReceiveProps(nextProps, nextContext) {} + + shouldComponentUpdate(nextProps, nextState) { + return true; + } + + componentWillUnmount() {} + + render() { + return ( +
    + +
      +
    • +
      任务标题:
      +
      集盒家居旗舰店双十一活动
      +
    • +
    • +
      单个任务金额:
      +
      ¥ 1000.00
      +
    • +
    • +
      接单时间:
      +
      2017-10-18 12:20:07
      +
    • +
    • +
      商家联系方式:
      +
      15112111213
      +
    • +
    • +
      任务状态:
      +
      + 进行中 +
      +
    • +
    • +
      收货地址:
      +
      + 浙江省杭州市余杭区文一西路969号淘宝城 +
      +
    • +
    +
    +
    + ); + } +} + +const styles = { + detailItem: { + padding: '15px 0px', + display: 'flex', + borderTop: '1px solid #EEEFF3' + }, + detailTitle: { + marginRight: '30px', + textAlign: 'right', + width: '120px', + color: '#999999' + }, + detailBody: { flex: 1 }, + statusProcessing: { color: '#64D874' } +}; diff --git a/templates/ice-design/blocks/DetailTable/src/DetailTable.scss b/templates/ice-design/blocks/DetailTable/src/DetailTable.scss new file mode 100644 index 0000000000..355614c733 --- /dev/null +++ b/templates/ice-design/blocks/DetailTable/src/DetailTable.scss @@ -0,0 +1,5 @@ +@charset "UTF-8"; + +.detail-table { + +} diff --git a/templates/ice-design/blocks/DetailTable/src/index.js b/templates/ice-design/blocks/DetailTable/src/index.js new file mode 100644 index 0000000000..2bf20959d9 --- /dev/null +++ b/templates/ice-design/blocks/DetailTable/src/index.js @@ -0,0 +1,3 @@ +import DetailTable from './DetailTable'; + +export default DetailTable; diff --git a/templates/ice-design/blocks/DisplayCard/.editorconfig b/templates/ice-design/blocks/DisplayCard/.editorconfig new file mode 100644 index 0000000000..22ef5ace54 --- /dev/null +++ b/templates/ice-design/blocks/DisplayCard/.editorconfig @@ -0,0 +1,16 @@ +# http://editorconfig.org +root = true + +[*] +indent_style = space +indent_size = 2 +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false + +[makefile] +indent_style = tab +indent_size = 4 diff --git a/templates/ice-design/blocks/DisplayCard/.eslintignore b/templates/ice-design/blocks/DisplayCard/.eslintignore new file mode 100644 index 0000000000..3b21308fc7 --- /dev/null +++ b/templates/ice-design/blocks/DisplayCard/.eslintignore @@ -0,0 +1,12 @@ +# 忽略目录 +build/ +tests/ +demo/ +lib/ + +# node 覆盖率文件 +coverage/ + +# 忽略文件 +**/*-min.js +**/*.min.js \ No newline at end of file diff --git a/templates/ice-design/blocks/DisplayCard/.eslintrc b/templates/ice-design/blocks/DisplayCard/.eslintrc new file mode 100644 index 0000000000..7a4e5bac48 --- /dev/null +++ b/templates/ice-design/blocks/DisplayCard/.eslintrc @@ -0,0 +1,62 @@ +{ + "root": true, + "parser": "babel-eslint", + "extends": "eslint-config-airbnb", + "parserOptions": { + "ecmaVersion": 6, + "ecmaFeatures": { + "jsx": true, + "experimentalObjectRestSpread": true + } + }, + "env": { + "browser": true + }, + "plugins": [ + "react", + "babel" + ], + "rules": { + "react/forbid-prop-types": 0, + "jsx-a11y/label-has-for": 0, + "jsx-a11y/no-static-element-interactions": 0, + "jsx-a11y/anchor-has-content": 0, + "jsx-a11y/click-events-have-key-events": 0, + "jsx-a11y/anchor-is-valid": 0, + "react/no-array-index-key": 0, + "func-names": 0, + "arrow-body-style": 0, + "no-use-before-define": 0, + "react/sort-comp": 0, + "react/prop-types": 0, + "react/jsx-first-prop-new-line": 0, + "react/jsx-filename-extension": [ + 1, + { + "extensions": [ + ".js", + ".jsx" + ] + } + ], + "import/extensions": 0, + "import/no-unresolved": 0, + "import/no-extraneous-dependencies": 0, + "prefer-destructuring": 0, + "no-param-reassign": 0, + "no-return-assign": 0, + "max-len": 0, + "consistent-return": 0, + "no-redeclare": 0, + "react/require-extension": 0, + "react/no-danger": 0, + "comma-dangle": [ + "error", + "always-multiline" + ], + "function-paren-newline": 0, + "object-curly-newline": 0, + "no-restricted-globals": 0, + "react/prefer-stateless-function": 0 + } +} diff --git a/templates/ice-design/blocks/DisplayCard/.gitignore b/templates/ice-design/blocks/DisplayCard/.gitignore new file mode 100644 index 0000000000..cc45d6fb3c --- /dev/null +++ b/templates/ice-design/blocks/DisplayCard/.gitignore @@ -0,0 +1,13 @@ + +*.swp +*.dia~ +.idea/ +.DS_Store + +npm-debug.log +yarn-error.log +node_modules/ +tmp/ + +# happypack 缓存 +.happypack diff --git a/templates/ice-design/blocks/DisplayCard/README.md b/templates/ice-design/blocks/DisplayCard/README.md new file mode 100644 index 0000000000..b61c803fe4 --- /dev/null +++ b/templates/ice-design/blocks/DisplayCard/README.md @@ -0,0 +1,12 @@ +# display-card + +简介:展示型卡片 + +展示型卡片 + +![截图](https://img.alicdn.com/tfs/TB1zRDFim_I8KJjy0FoXXaFnVXa-1908-292.png) + +## 更多 + +* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) +* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) diff --git a/templates/ice-design/blocks/DisplayCard/demo/index.html b/templates/ice-design/blocks/DisplayCard/demo/index.html new file mode 100644 index 0000000000..9d2d3a663d --- /dev/null +++ b/templates/ice-design/blocks/DisplayCard/demo/index.html @@ -0,0 +1,19 @@ + + + + + + + + Document + + + + +
    + + + + + + diff --git a/templates/ice-design/blocks/DisplayCard/demo/index.js b/templates/ice-design/blocks/DisplayCard/demo/index.js new file mode 100644 index 0000000000..178a766115 --- /dev/null +++ b/templates/ice-design/blocks/DisplayCard/demo/index.js @@ -0,0 +1,19 @@ +import React, {Component} from 'react'; +import {render} from 'react-dom'; + +// 载入默认全局样式 normalize 、.clearfix 和一些 mixin 方法等 +import '@icedesign/base/lib/_components/@alife/next-core/lib/index.scss'; + +import DemoLayout from '@icedesign/demo-layout'; +import Block from '../src'; + +const props = { + // ... +}; + +render( + + + , + document.querySelector('#mountNode') +); diff --git a/templates/ice-design/blocks/DisplayCard/mock/api.json b/templates/ice-design/blocks/DisplayCard/mock/api.json new file mode 100644 index 0000000000..e706430232 --- /dev/null +++ b/templates/ice-design/blocks/DisplayCard/mock/api.json @@ -0,0 +1,4 @@ +{ + "status": "success", + "data": {} +} diff --git a/templates/ice-design/blocks/DisplayCard/package.json b/templates/ice-design/blocks/DisplayCard/package.json new file mode 100644 index 0000000000..8affd9aa9b --- /dev/null +++ b/templates/ice-design/blocks/DisplayCard/package.json @@ -0,0 +1,51 @@ +{ + "name": "@icedesign/display-card-block", + "version": "0.1.0", + "description": "展示型卡片", + "files": [ + "src/", + "demo/", + "lib/", + "mock/" + ], + "author": { + "name": "ICE Team", + "email": "ice-admin@alibaba-inc.com" + }, + "repository": { + "type": "git", + "url": "https://github.com/alibaba/ice" + }, + "license": "MIT", + "keywords": [ + "ice", + "ice-block" + ], + "dependencies": { + "prop-types": "^15.5.8", + "@icedesign/base": "^0.1.0", + "@icedesign/card": "^0.1.0" + }, + "devDependencies": { + "babel-eslint": "^8.0.3", + "eslint": "^4.13.1", + "eslint-plugin-babel": "^4.1.1", + "eslint-plugin-react": "^7.5.1", + "@icedesign/demo-layout": "^0.1.0", + "eslint-plugin-import": "^2.8.0", + "eslint-config-airbnb": "^16.1.0", + "eslint-plugin-jsx-a11y": "^6.0.3", + "@icedesign/skin": "^0.1.2" + }, + "blockConfig": { + "name": "display-card", + "description": "展示型卡片", + "chinese": "展示型卡片", + "category": "data-display", + "snapshot": "https://img.alicdn.com/tfs/TB1zRDFim_I8KJjy0FoXXaFnVXa-1908-292.png", + "sketchURL": "", + "icelandURL": "", + "themePackage": "@icedesign/skin" + }, + "scripts": {} +} diff --git a/templates/ice-design/blocks/DisplayCard/src/DisplayCard.jsx b/templates/ice-design/blocks/DisplayCard/src/DisplayCard.jsx new file mode 100644 index 0000000000..28fe77a9aa --- /dev/null +++ b/templates/ice-design/blocks/DisplayCard/src/DisplayCard.jsx @@ -0,0 +1,167 @@ +'use strict'; + +import React, { Component } from 'react'; +import IceCard from '@icedesign/card'; +import './DisplayCard.scss'; + +export default class DisplayCard extends Component { + static displayName = 'DisplayCard'; + + static propTypes = {}; + + static defaultProps = {}; + + constructor(props) { + super(props); + this.state = {}; + } + + // ICE: React Component 的生命周期 + // http://ice.alibaba-inc.com/docs/guide/intro-react#React-组件的生命周期 + componentWillMount() {} + + componentDidMount() {} + + componentWillReceiveProps(nextProps, nextContext) {} + + shouldComponentUpdate(nextProps, nextState) { + return true; + } + + componentWillUnmount() {} + + renderItem = (data, idx) => { + return
    111
    ; + }; + + render() { + const down = ( + + ); + const up = ( + + ); + return ( +
    + +
    +
    + 昨日内容浏览次数 + + +
    +
    46,657
    +
    + 较前日 + {down} + -200 近7天 + {up} + +100 +
    +
    +
    +
    + 昨日账号主页浏览人数 + + +
    +
    533
    +
    + 较前日 + {down} + -200 近7天 + {up} + +100 +
    +
    +
    +
    + 昨日活跃粉丝数 + + +
    +
    2233
    +
    + 较前日 + {down} + -200 近7天 + {up} + +100 +
    +
    +
    +
    + 昨日粉丝数 + + +
    +
    23,333
    +
    + 较前日 + {down} + -200 近7天 + {up} + +100 +
    +
    +
    +
    + ); + } +} + +const styles = { + displayCardContainer: { + padding: '0 60px', + backgroundImage: + 'url(https://gw.alicdn.com/tfs/TB1yjIrh3vD8KJjy0FlXXagBFXa-2112-340.png)', + backgroundRepeat: 'no-repeat', + backgroundPosition: 'center center', + display: 'flex', + flexDirection: 'row', + justifyContent: 'space-between' + }, + displayCardItem: { + display: 'flex', + height: '150px', + width: '169', + flexDirection: 'column', + justifyContent: 'center' + }, + displayCardText: { color: '#BEBEBE', fontSize: '12px', marginBottom: '5px' }, + helpLink: { marginLeft: '5px' }, + displayCardNumber: { + color: '#fff', + fontSize: '24px', + fontWeight: 'bold', + marginBottom: '3px' + }, + displayCardDesc: { color: '#BEBEBE', fontSize: '12px' }, + down: { width: '6px', height: '9px' }, + up: { width: '6px', height: '9px' } +}; diff --git a/templates/ice-design/blocks/DisplayCard/src/DisplayCard.scss b/templates/ice-design/blocks/DisplayCard/src/DisplayCard.scss new file mode 100644 index 0000000000..a27d7924a8 --- /dev/null +++ b/templates/ice-design/blocks/DisplayCard/src/DisplayCard.scss @@ -0,0 +1,4 @@ +@charset "UTF-8"; + +.display-card { +} diff --git a/templates/ice-design/blocks/DisplayCard/src/index.js b/templates/ice-design/blocks/DisplayCard/src/index.js new file mode 100644 index 0000000000..cd25f69f09 --- /dev/null +++ b/templates/ice-design/blocks/DisplayCard/src/index.js @@ -0,0 +1,3 @@ +import DisplayCard from './DisplayCard'; + +export default DisplayCard; diff --git a/templates/ice-design/blocks/DownloadCard/.editorconfig b/templates/ice-design/blocks/DownloadCard/.editorconfig new file mode 100644 index 0000000000..22ef5ace54 --- /dev/null +++ b/templates/ice-design/blocks/DownloadCard/.editorconfig @@ -0,0 +1,16 @@ +# http://editorconfig.org +root = true + +[*] +indent_style = space +indent_size = 2 +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false + +[makefile] +indent_style = tab +indent_size = 4 diff --git a/templates/ice-design/blocks/DownloadCard/.eslintignore b/templates/ice-design/blocks/DownloadCard/.eslintignore new file mode 100644 index 0000000000..3b21308fc7 --- /dev/null +++ b/templates/ice-design/blocks/DownloadCard/.eslintignore @@ -0,0 +1,12 @@ +# 忽略目录 +build/ +tests/ +demo/ +lib/ + +# node 覆盖率文件 +coverage/ + +# 忽略文件 +**/*-min.js +**/*.min.js \ No newline at end of file diff --git a/templates/ice-design/blocks/DownloadCard/.eslintrc b/templates/ice-design/blocks/DownloadCard/.eslintrc new file mode 100644 index 0000000000..7a4e5bac48 --- /dev/null +++ b/templates/ice-design/blocks/DownloadCard/.eslintrc @@ -0,0 +1,62 @@ +{ + "root": true, + "parser": "babel-eslint", + "extends": "eslint-config-airbnb", + "parserOptions": { + "ecmaVersion": 6, + "ecmaFeatures": { + "jsx": true, + "experimentalObjectRestSpread": true + } + }, + "env": { + "browser": true + }, + "plugins": [ + "react", + "babel" + ], + "rules": { + "react/forbid-prop-types": 0, + "jsx-a11y/label-has-for": 0, + "jsx-a11y/no-static-element-interactions": 0, + "jsx-a11y/anchor-has-content": 0, + "jsx-a11y/click-events-have-key-events": 0, + "jsx-a11y/anchor-is-valid": 0, + "react/no-array-index-key": 0, + "func-names": 0, + "arrow-body-style": 0, + "no-use-before-define": 0, + "react/sort-comp": 0, + "react/prop-types": 0, + "react/jsx-first-prop-new-line": 0, + "react/jsx-filename-extension": [ + 1, + { + "extensions": [ + ".js", + ".jsx" + ] + } + ], + "import/extensions": 0, + "import/no-unresolved": 0, + "import/no-extraneous-dependencies": 0, + "prefer-destructuring": 0, + "no-param-reassign": 0, + "no-return-assign": 0, + "max-len": 0, + "consistent-return": 0, + "no-redeclare": 0, + "react/require-extension": 0, + "react/no-danger": 0, + "comma-dangle": [ + "error", + "always-multiline" + ], + "function-paren-newline": 0, + "object-curly-newline": 0, + "no-restricted-globals": 0, + "react/prefer-stateless-function": 0 + } +} diff --git a/templates/ice-design/blocks/DownloadCard/.gitignore b/templates/ice-design/blocks/DownloadCard/.gitignore new file mode 100644 index 0000000000..cc45d6fb3c --- /dev/null +++ b/templates/ice-design/blocks/DownloadCard/.gitignore @@ -0,0 +1,13 @@ + +*.swp +*.dia~ +.idea/ +.DS_Store + +npm-debug.log +yarn-error.log +node_modules/ +tmp/ + +# happypack 缓存 +.happypack diff --git a/templates/ice-design/blocks/DownloadCard/README.md b/templates/ice-design/blocks/DownloadCard/README.md new file mode 100644 index 0000000000..ac6b40794f --- /dev/null +++ b/templates/ice-design/blocks/DownloadCard/README.md @@ -0,0 +1,10 @@ +# download-card + +简介:下载型信息卡片 + +![截图](https://img.alicdn.com/tfs/TB1HLu1hLDH8KJjy1XcXXcpdXXa-938-688.png) + +## 更多 + +* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) +* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) diff --git a/templates/ice-design/blocks/DownloadCard/demo/index.html b/templates/ice-design/blocks/DownloadCard/demo/index.html new file mode 100644 index 0000000000..9d2d3a663d --- /dev/null +++ b/templates/ice-design/blocks/DownloadCard/demo/index.html @@ -0,0 +1,19 @@ + + + + + + + + Document + + + + +
    + + + + + + diff --git a/templates/ice-design/blocks/DownloadCard/demo/index.js b/templates/ice-design/blocks/DownloadCard/demo/index.js new file mode 100644 index 0000000000..4d6acd389a --- /dev/null +++ b/templates/ice-design/blocks/DownloadCard/demo/index.js @@ -0,0 +1,19 @@ +import React, { Component } from 'react'; +import { render } from 'react-dom'; + +// 载入默认全局样式 normalize 、.clearfix 和一些 mixin 方法等 +import '@icedesign/base/lib/_components/@alife/next-core/lib/index.scss'; + +import DemoLayout from '@icedesign/demo-layout'; +import Block from '../src'; + +const props = { + // ... +}; + +render( + + + , + document.querySelector('#mountNode') +); diff --git a/templates/ice-design/blocks/DownloadCard/mock/api.json b/templates/ice-design/blocks/DownloadCard/mock/api.json new file mode 100644 index 0000000000..e706430232 --- /dev/null +++ b/templates/ice-design/blocks/DownloadCard/mock/api.json @@ -0,0 +1,4 @@ +{ + "status": "success", + "data": {} +} diff --git a/templates/ice-design/blocks/DownloadCard/mock/download-card.json b/templates/ice-design/blocks/DownloadCard/mock/download-card.json new file mode 100644 index 0000000000..48f4ccf15f --- /dev/null +++ b/templates/ice-design/blocks/DownloadCard/mock/download-card.json @@ -0,0 +1,141 @@ +{ + "status": "success", + "data": { + "clientSDK": [ + { + "img": "//img.alicdn.com/tfs/TB1gX6WNFXXXXb6XXXXXXXXXXXX-130-108.png", + "title": "淘宝交易", + "desc": "快速搭建交易闭环", + "androidSDK": "https://www.taobao.com/", + "iosSDK": "https://www.taobao.com/", + "version": "", + "docs": "", + "guide": "", + "faq": "" + }, + { + "img": "//img.alicdn.com/tfs/TB17ITyNFXXXXaGXVXXXXXXXXXX-114-102.png", + "title": "淘宝交易", + "desc": "快速搭建交易闭环", + "androidSDK": "https://www.taobao.com/", + "iosSDK": "https://www.taobao.com/", + "version": "", + "docs": "", + "guide": "", + "faq": "" + }, + { + "img": "//img.alicdn.com/tfs/TB1EA2FNFXXXXX2XFXXXXXXXXXX-96-126.png", + "title": "淘宝交易", + "desc": "快速搭建交易闭环", + "androidSDK": "https://www.taobao.com/", + "iosSDK": "https://www.taobao.com/", + "version": "", + "docs": "", + "guide": "", + "faq": "" + }, + { + "img": "//img.alicdn.com/tfs/TB1gX6WNFXXXXb6XXXXXXXXXXXX-130-108.png", + "title": "淘宝交易", + "desc": "快速搭建交易闭环", + "androidSDK": "https://www.taobao.com/", + "iosSDK": "https://www.taobao.com/", + "version": "", + "docs": "", + "guide": "", + "faq": "" + }, + { + "img": "//img.alicdn.com/tfs/TB17ITyNFXXXXaGXVXXXXXXXXXX-114-102.png", + "title": "淘宝交易", + "desc": "快速搭建交易闭环", + "androidSDK": "https://www.taobao.com/", + "iosSDK": "https://www.taobao.com/", + "version": "", + "docs": "", + "guide": "", + "faq": "" + }, + { + "img": "//img.alicdn.com/tfs/TB1EA2FNFXXXXX2XFXXXXXXXXXX-96-126.png", + "title": "淘宝交易", + "desc": "快速搭建交易闭环", + "androidSDK": "https://www.taobao.com/", + "iosSDK": "https://www.taobao.com/", + "version": "", + "docs": "", + "guide": "", + "faq": "" + } + ], + "serverSDK": [ + { + "img": "//img.alicdn.com/tfs/TB1gX6WNFXXXXb6XXXXXXXXXXXX-130-108.png", + "title": "天猫交易", + "desc": "快速搭建交易闭环", + "androidSDK": "https://www.taobao.com/", + "iosSDK": "https://www.taobao.com/", + "version": "", + "docs": "", + "guide": "", + "faq": "" + }, + { + "img": "//img.alicdn.com/tfs/TB17ITyNFXXXXaGXVXXXXXXXXXX-114-102.png", + "title": "天猫交易", + "desc": "快速搭建交易闭环", + "androidSDK": "https://www.taobao.com/", + "iosSDK": "https://www.taobao.com/", + "version": "", + "docs": "", + "guide": "", + "faq": "" + }, + { + "img": "//img.alicdn.com/tfs/TB1EA2FNFXXXXX2XFXXXXXXXXXX-96-126.png", + "title": "天猫交易", + "desc": "快速搭建交易闭环", + "androidSDK": "https://www.taobao.com/", + "iosSDK": "https://www.taobao.com/", + "version": "", + "docs": "", + "guide": "", + "faq": "" + }, + { + "img": "//img.alicdn.com/tfs/TB1gX6WNFXXXXb6XXXXXXXXXXXX-130-108.png", + "title": "天猫交易", + "desc": "快速搭建交易闭环", + "androidSDK": "https://www.taobao.com/", + "iosSDK": "https://www.taobao.com/", + "version": "", + "docs": "", + "guide": "", + "faq": "" + }, + { + "img": "//img.alicdn.com/tfs/TB17ITyNFXXXXaGXVXXXXXXXXXX-114-102.png", + "title": "天猫交易", + "desc": "快速搭建交易闭环", + "androidSDK": "https://www.taobao.com/", + "iosSDK": "https://www.taobao.com/", + "version": "", + "docs": "", + "guide": "", + "faq": "" + }, + { + "img": "//img.alicdn.com/tfs/TB1EA2FNFXXXXX2XFXXXXXXXXXX-96-126.png", + "title": "天猫交易", + "desc": "快速搭建交易闭环", + "androidSDK": "https://www.taobao.com/", + "iosSDK": "https://www.taobao.com/", + "version": "", + "docs": "", + "guide": "", + "faq": "" + } + ] + } +} diff --git a/templates/ice-design/blocks/DownloadCard/package.json b/templates/ice-design/blocks/DownloadCard/package.json new file mode 100644 index 0000000000..7d22e69800 --- /dev/null +++ b/templates/ice-design/blocks/DownloadCard/package.json @@ -0,0 +1,53 @@ +{ + "name": "@icedesign/download-card-block", + "version": "0.1.0", + "description": "", + "main": "lib/index.js", + "files": [ + "src/", + "demo/", + "lib/", + "mock/" + ], + "author": { + "name": "ICE Team", + "email": "ice-admin@alibaba-inc.com" + }, + "repository": { + "type": "git", + "url": "https://github.com/alibaba/ice" + }, + "license": "MIT", + "keywords": [ + "ice", + "ice-block" + ], + "dependencies": { + "axios": "^0.17.1", + "prop-types": "^15.5.8", + "@icedesign/base": "^0.1.0", + "@icedesign/card": "^0.1.0" + }, + "devDependencies": { + "babel-eslint": "^8.0.3", + "eslint": "^4.13.1", + "eslint-plugin-babel": "^4.1.1", + "eslint-plugin-react": "^7.5.1", + "@icedesign/demo-layout": "^0.1.0", + "eslint-plugin-import": "^2.8.0", + "eslint-config-airbnb": "^16.1.0", + "eslint-plugin-jsx-a11y": "^6.0.3", + "@icedesign/skin": "^0.1.2" + }, + "blockConfig": { + "name": "download-card", + "description": "下载型信息卡片", + "chinese": "下载型信息卡片", + "category": "info-display,list", + "snapshot": "https://img.alicdn.com/tfs/TB1HLu1hLDH8KJjy1XcXXcpdXXa-938-688.png", + "sketchURL": "", + "icelandURL": "", + "themePackage": "@icedesign/skin" + }, + "scripts": {} +} diff --git a/templates/ice-design/blocks/DownloadCard/src/DownloadCard.jsx b/templates/ice-design/blocks/DownloadCard/src/DownloadCard.jsx new file mode 100644 index 0000000000..a8c11bdc28 --- /dev/null +++ b/templates/ice-design/blocks/DownloadCard/src/DownloadCard.jsx @@ -0,0 +1,173 @@ +'use strict'; + +import React, { Component } from 'react'; +import PropTypes from 'prop-types'; +import IceCard from '@icedesign/card'; +import axios from 'axios'; +import { Tab, Button, Icon } from '@icedesign/base'; +import './DownloadCard.scss'; + +const { TabPane } = Tab; + +export default class DownloadCard extends Component { + static displayName = 'DownloadCard'; + + static propTypes = { + style: PropTypes.object, + className: PropTypes.string + }; + + static defaultProps = {}; + + constructor(props) { + super(props); + this.state = { + tabData: {} + }; + } + + /** + * 异步获取数据 + */ + getData = () => { + axios + .get('/mock/download-card.json') + .then((response) => { + this.setState({ + tabData: response.data.data || {} + }); + }) + .catch((error) => { + console.log(error); + }); + }; + + componentDidMount() { + this.getData(); + } + + renderContent = (data) => { + return data.map((item, index) => { + return ( +
    +
    +
    + +
    +

    {item.title}

    +

    {item.desc}

    +
    + +
    + + +
    + + +
    + ); + }); + }; + + render() { + const { tabData } = this.state; + return ( +
    + + + + {tabData.clientSDK + ? this.renderContent(tabData.clientSDK) + : '暂无数据'} + + + {tabData.serverSDK + ? this.renderContent(tabData.serverSDK) + : '暂无数据'} + + + +
    + ); + } +} + +const styles = { + columnCardItem: { + position: 'relative', + float: 'left', + width: '284px', + height: '280px', + padding: '0px', + marginRight: '16px', + marginBottom: '16px', + overflow: 'hidden', + boxShadow: + '0px 0px 2px 0px rgba(0, 0, 0, 0.1),0px 2px 2px 0px rgba(0, 0, 0, 0.1)', + background: '#fff' + }, + cardBody: { + textAlign: 'center', + padding: '20px 0', + marginBottom: '15px', + borderBottom: '1px solid #dedede' + }, + avatarWrapper: { + width: '50px', + height: '50px', + overflow: 'hidden', + margin: '0 auto' + }, + title: { fontSize: '20px', margin: '10px' }, + desc: { fontSize: '15px', color: '#999' }, + downloadButtons: { marginBottom: '15px', textAlign: 'center' }, + rightButton: { width: '114px', fontSize: '13px', marginLeft: '10px' }, + leftButton: { width: '114px', fontSize: '13px' }, + cardBottom: { + padding: '10px 10px', + background: '#f6f7f9', + position: 'absolute', + bottom: '0px', + left: '0px', + right: '0px' + }, + bottomText: { + marginLeft: '15px', + fontSize: '13px', + color: '#666', + textDecoration: 'none' + }, + downloadCard: {}, + img: { width: '100%' } +}; diff --git a/templates/ice-design/blocks/DownloadCard/src/DownloadCard.scss b/templates/ice-design/blocks/DownloadCard/src/DownloadCard.scss new file mode 100644 index 0000000000..be5efa7972 --- /dev/null +++ b/templates/ice-design/blocks/DownloadCard/src/DownloadCard.scss @@ -0,0 +1,16 @@ +@charset "UTF-8"; + +.download-card { + .column-card-item { + &:nth-child(3n) { + margin-right: 0; + } + } + + .next-btn-medium { + padding: 0 8px; + .next-icon-first { + margin-right: 0; + } + } +} diff --git a/templates/ice-design/blocks/DownloadCard/src/index.js b/templates/ice-design/blocks/DownloadCard/src/index.js new file mode 100644 index 0000000000..729198448f --- /dev/null +++ b/templates/ice-design/blocks/DownloadCard/src/index.js @@ -0,0 +1,3 @@ +import DownloadCard from './DownloadCard'; + +export default DownloadCard; diff --git a/templates/ice-design/blocks/DynamicBanner/.editorconfig b/templates/ice-design/blocks/DynamicBanner/.editorconfig new file mode 100644 index 0000000000..22ef5ace54 --- /dev/null +++ b/templates/ice-design/blocks/DynamicBanner/.editorconfig @@ -0,0 +1,16 @@ +# http://editorconfig.org +root = true + +[*] +indent_style = space +indent_size = 2 +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false + +[makefile] +indent_style = tab +indent_size = 4 diff --git a/templates/ice-design/blocks/DynamicBanner/.eslintignore b/templates/ice-design/blocks/DynamicBanner/.eslintignore new file mode 100644 index 0000000000..3b21308fc7 --- /dev/null +++ b/templates/ice-design/blocks/DynamicBanner/.eslintignore @@ -0,0 +1,12 @@ +# 忽略目录 +build/ +tests/ +demo/ +lib/ + +# node 覆盖率文件 +coverage/ + +# 忽略文件 +**/*-min.js +**/*.min.js \ No newline at end of file diff --git a/templates/ice-design/blocks/DynamicBanner/.eslintrc b/templates/ice-design/blocks/DynamicBanner/.eslintrc new file mode 100644 index 0000000000..7a4e5bac48 --- /dev/null +++ b/templates/ice-design/blocks/DynamicBanner/.eslintrc @@ -0,0 +1,62 @@ +{ + "root": true, + "parser": "babel-eslint", + "extends": "eslint-config-airbnb", + "parserOptions": { + "ecmaVersion": 6, + "ecmaFeatures": { + "jsx": true, + "experimentalObjectRestSpread": true + } + }, + "env": { + "browser": true + }, + "plugins": [ + "react", + "babel" + ], + "rules": { + "react/forbid-prop-types": 0, + "jsx-a11y/label-has-for": 0, + "jsx-a11y/no-static-element-interactions": 0, + "jsx-a11y/anchor-has-content": 0, + "jsx-a11y/click-events-have-key-events": 0, + "jsx-a11y/anchor-is-valid": 0, + "react/no-array-index-key": 0, + "func-names": 0, + "arrow-body-style": 0, + "no-use-before-define": 0, + "react/sort-comp": 0, + "react/prop-types": 0, + "react/jsx-first-prop-new-line": 0, + "react/jsx-filename-extension": [ + 1, + { + "extensions": [ + ".js", + ".jsx" + ] + } + ], + "import/extensions": 0, + "import/no-unresolved": 0, + "import/no-extraneous-dependencies": 0, + "prefer-destructuring": 0, + "no-param-reassign": 0, + "no-return-assign": 0, + "max-len": 0, + "consistent-return": 0, + "no-redeclare": 0, + "react/require-extension": 0, + "react/no-danger": 0, + "comma-dangle": [ + "error", + "always-multiline" + ], + "function-paren-newline": 0, + "object-curly-newline": 0, + "no-restricted-globals": 0, + "react/prefer-stateless-function": 0 + } +} diff --git a/templates/ice-design/blocks/DynamicBanner/.gitignore b/templates/ice-design/blocks/DynamicBanner/.gitignore new file mode 100644 index 0000000000..cc45d6fb3c --- /dev/null +++ b/templates/ice-design/blocks/DynamicBanner/.gitignore @@ -0,0 +1,13 @@ + +*.swp +*.dia~ +.idea/ +.DS_Store + +npm-debug.log +yarn-error.log +node_modules/ +tmp/ + +# happypack 缓存 +.happypack diff --git a/templates/ice-design/blocks/DynamicBanner/README.md b/templates/ice-design/blocks/DynamicBanner/README.md new file mode 100644 index 0000000000..64d7f2b2b2 --- /dev/null +++ b/templates/ice-design/blocks/DynamicBanner/README.md @@ -0,0 +1,10 @@ +# dynamic-banner + +简介:视差滚动的 Banner + +![截图](https://img.alicdn.com/tfs/TB1fZEIifDH8KJjy1XcXXcpdXXa-1276-672.png) + +## 更多 + +* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) +* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) diff --git a/templates/ice-design/blocks/DynamicBanner/demo/index.html b/templates/ice-design/blocks/DynamicBanner/demo/index.html new file mode 100644 index 0000000000..9d2d3a663d --- /dev/null +++ b/templates/ice-design/blocks/DynamicBanner/demo/index.html @@ -0,0 +1,19 @@ + + + + + + + + Document + + + + +
    + + + + + + diff --git a/templates/ice-design/blocks/DynamicBanner/demo/index.js b/templates/ice-design/blocks/DynamicBanner/demo/index.js new file mode 100644 index 0000000000..4d6acd389a --- /dev/null +++ b/templates/ice-design/blocks/DynamicBanner/demo/index.js @@ -0,0 +1,19 @@ +import React, { Component } from 'react'; +import { render } from 'react-dom'; + +// 载入默认全局样式 normalize 、.clearfix 和一些 mixin 方法等 +import '@icedesign/base/lib/_components/@alife/next-core/lib/index.scss'; + +import DemoLayout from '@icedesign/demo-layout'; +import Block from '../src'; + +const props = { + // ... +}; + +render( + + + , + document.querySelector('#mountNode') +); diff --git a/templates/ice-design/blocks/DynamicBanner/mock/api.json b/templates/ice-design/blocks/DynamicBanner/mock/api.json new file mode 100644 index 0000000000..e706430232 --- /dev/null +++ b/templates/ice-design/blocks/DynamicBanner/mock/api.json @@ -0,0 +1,4 @@ +{ + "status": "success", + "data": {} +} diff --git a/templates/ice-design/blocks/DynamicBanner/package.json b/templates/ice-design/blocks/DynamicBanner/package.json new file mode 100644 index 0000000000..24d428ed7d --- /dev/null +++ b/templates/ice-design/blocks/DynamicBanner/package.json @@ -0,0 +1,51 @@ +{ + "name": "@icedesign/dynamic-banner-block", + "version": "0.1.0", + "description": "", + "main": "lib/index.js", + "files": [ + "src/", + "demo/", + "lib/", + "mock/" + ], + "author": { + "name": "ICE Team", + "email": "ice-admin@alibaba-inc.com" + }, + "repository": { + "type": "git", + "url": "https://github.com/alibaba/ice" + }, + "license": "MIT", + "keywords": [ + "ice", + "ice-block" + ], + "dependencies": { + "prop-types": "^15.5.8", + "@icedesign/base": "^0.1.0" + }, + "devDependencies": { + "babel-eslint": "^8.0.3", + "eslint": "^4.13.1", + "eslint-plugin-babel": "^4.1.1", + "eslint-plugin-react": "^7.5.1", + "@icedesign/demo-layout": "^0.1.0", + "eslint-plugin-import": "^2.8.0", + "eslint-config-airbnb": "^16.1.0", + "eslint-plugin-jsx-a11y": "^6.0.3", + "@icedesign/skin": "^0.1.2" + }, + "blockConfig": { + "name": "dynamic-banner", + "description": "视差滚动的 Banner", + "chinese": "视差滚动的 Banner", + "category": "info-display", + "snapshot": "https://img.alicdn.com/tfs/TB1fZEIifDH8KJjy1XcXXcpdXXa-1276-672.png", + "sketchURL": "", + "icelandURL": "", + "themePackage": "@icedesign/skin" + }, + "scripts": {} +} diff --git a/templates/ice-design/blocks/DynamicBanner/src/DynamicBanner.jsx b/templates/ice-design/blocks/DynamicBanner/src/DynamicBanner.jsx new file mode 100644 index 0000000000..209cc364da --- /dev/null +++ b/templates/ice-design/blocks/DynamicBanner/src/DynamicBanner.jsx @@ -0,0 +1,110 @@ +'use strict'; + +import React, { Component } from 'react'; +import './DynamicBanner.scss'; + +export default class DynamicBanner extends Component { + static displayName = 'DynamicBanner'; + + handleMouseEnter = () => { + const ele = document.getElementById('bannerBox'); + const thisPX = ele.offsetLeft; + const thisPY = ele.offsetTop; + const boxWidth = ele.offsetWidth; + const boxHeight = ele.offsetHeight; + + ele.addEventListener('mousemove', function(event) { + const mouseX = event.pageX - thisPX; + const mouseY = event.pageY - thisPY; + let X; + let Y; + if (mouseX > boxWidth / 2) { + X = mouseX - boxWidth / 2; + } else { + X = mouseX - boxWidth / 2; + } + if (mouseY > boxHeight / 2) { + Y = boxHeight / 2 - mouseY; + } else { + Y = boxHeight / 2 - mouseY; + } + + ele.style.transform = `rotateY(${X / 50}deg) rotateX(${Y / 50}deg)`; + }); + }; + + handleMouseLeave = () => { + const ele = document.getElementById('bannerBox'); + ele.style.transform = 'rotateY(0deg) rotateX(0deg)'; + }; + + render() { + return ( +
    +
    + + + 更快,更优,更 Cool + + + 企业级泛后台应用解决方案 + +
    +
    + ); + } +} + +const styles = { + dynamicBanner: { perspective: '800px' }, + bannerBox: { + position: 'relative', + width: '600px', + height: '300px', + margin: '100px auto', + background: + "url('http://static.smartisanos.cn/index/img/store/home/banner-3d-item-1-box-1_61bdc2f4f9.png') center no-repeat", + backgroundSize: '100% 100%', + borderRadius: '10px', + transformStyle: 'preserve-3d', + transformOrigin: '50% 50%', + transform: 'rotateY(0deg) rotateX(0deg)' + }, + image: { + position: 'absolute', + width: '100%', + height: '100%', + bottom: '8px', + left: '0', + background: + 'url("http://static.smartisanos.cn/index/img/store/home/banner-3d-item-1-box-3_8fa7866d59.png") center no-repeat', + backgroundSize: '95% 100%', + transform: 'translateZ(40px)' + }, + slogan: { + position: 'absolute', + top: '20%', + right: '10%', + fontSize: '30px', + color: '#fff', + textAlign: 'right', + fontWeight: 'lighter', + transform: 'translateZ(20px)' + }, + copyright: { + position: 'absolute', + bottom: '10%', + right: '10%', + fontSize: '10px', + color: '#fff', + textAlign: 'right', + fontWeight: 'lighter', + transform: 'translateZ(0px)' + } +}; diff --git a/templates/ice-design/blocks/DynamicBanner/src/DynamicBanner.scss b/templates/ice-design/blocks/DynamicBanner/src/DynamicBanner.scss new file mode 100644 index 0000000000..fda36f85cf --- /dev/null +++ b/templates/ice-design/blocks/DynamicBanner/src/DynamicBanner.scss @@ -0,0 +1,10 @@ +@charset "UTF-8"; + +.dynamic-banner { + & * { + transition: all 0.3s; + -webkit-transition: all 0.3s; + transition-timing-function: linear; + -webkit-transition-timing-function: linear; + } +} diff --git a/templates/ice-design/blocks/DynamicBanner/src/index.js b/templates/ice-design/blocks/DynamicBanner/src/index.js new file mode 100644 index 0000000000..f137fa2e5b --- /dev/null +++ b/templates/ice-design/blocks/DynamicBanner/src/index.js @@ -0,0 +1,3 @@ +import DynamicBanner from './DynamicBanner'; + +export default DynamicBanner; diff --git a/templates/ice-design/blocks/EditableTable/.editorconfig b/templates/ice-design/blocks/EditableTable/.editorconfig new file mode 100644 index 0000000000..22ef5ace54 --- /dev/null +++ b/templates/ice-design/blocks/EditableTable/.editorconfig @@ -0,0 +1,16 @@ +# http://editorconfig.org +root = true + +[*] +indent_style = space +indent_size = 2 +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false + +[makefile] +indent_style = tab +indent_size = 4 diff --git a/templates/ice-design/blocks/EditableTable/.eslintignore b/templates/ice-design/blocks/EditableTable/.eslintignore new file mode 100644 index 0000000000..3b21308fc7 --- /dev/null +++ b/templates/ice-design/blocks/EditableTable/.eslintignore @@ -0,0 +1,12 @@ +# 忽略目录 +build/ +tests/ +demo/ +lib/ + +# node 覆盖率文件 +coverage/ + +# 忽略文件 +**/*-min.js +**/*.min.js \ No newline at end of file diff --git a/templates/ice-design/blocks/EditableTable/.eslintrc b/templates/ice-design/blocks/EditableTable/.eslintrc new file mode 100644 index 0000000000..7a4e5bac48 --- /dev/null +++ b/templates/ice-design/blocks/EditableTable/.eslintrc @@ -0,0 +1,62 @@ +{ + "root": true, + "parser": "babel-eslint", + "extends": "eslint-config-airbnb", + "parserOptions": { + "ecmaVersion": 6, + "ecmaFeatures": { + "jsx": true, + "experimentalObjectRestSpread": true + } + }, + "env": { + "browser": true + }, + "plugins": [ + "react", + "babel" + ], + "rules": { + "react/forbid-prop-types": 0, + "jsx-a11y/label-has-for": 0, + "jsx-a11y/no-static-element-interactions": 0, + "jsx-a11y/anchor-has-content": 0, + "jsx-a11y/click-events-have-key-events": 0, + "jsx-a11y/anchor-is-valid": 0, + "react/no-array-index-key": 0, + "func-names": 0, + "arrow-body-style": 0, + "no-use-before-define": 0, + "react/sort-comp": 0, + "react/prop-types": 0, + "react/jsx-first-prop-new-line": 0, + "react/jsx-filename-extension": [ + 1, + { + "extensions": [ + ".js", + ".jsx" + ] + } + ], + "import/extensions": 0, + "import/no-unresolved": 0, + "import/no-extraneous-dependencies": 0, + "prefer-destructuring": 0, + "no-param-reassign": 0, + "no-return-assign": 0, + "max-len": 0, + "consistent-return": 0, + "no-redeclare": 0, + "react/require-extension": 0, + "react/no-danger": 0, + "comma-dangle": [ + "error", + "always-multiline" + ], + "function-paren-newline": 0, + "object-curly-newline": 0, + "no-restricted-globals": 0, + "react/prefer-stateless-function": 0 + } +} diff --git a/templates/ice-design/blocks/EditableTable/.gitignore b/templates/ice-design/blocks/EditableTable/.gitignore new file mode 100644 index 0000000000..cc45d6fb3c --- /dev/null +++ b/templates/ice-design/blocks/EditableTable/.gitignore @@ -0,0 +1,13 @@ + +*.swp +*.dia~ +.idea/ +.DS_Store + +npm-debug.log +yarn-error.log +node_modules/ +tmp/ + +# happypack 缓存 +.happypack diff --git a/templates/ice-design/blocks/EditableTable/README.md b/templates/ice-design/blocks/EditableTable/README.md new file mode 100644 index 0000000000..d2451d5383 --- /dev/null +++ b/templates/ice-design/blocks/EditableTable/README.md @@ -0,0 +1,12 @@ +# editable-table + +简介:可编辑表格 + +可编辑内容的表格 + +![截图](https://img.alicdn.com/tfs/TB1BBhujfDH8KJjy1XcXXcpdXXa-1896-712.png) + +## 更多 + +* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) +* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) diff --git a/templates/ice-design/blocks/EditableTable/demo/index.html b/templates/ice-design/blocks/EditableTable/demo/index.html new file mode 100644 index 0000000000..9d2d3a663d --- /dev/null +++ b/templates/ice-design/blocks/EditableTable/demo/index.html @@ -0,0 +1,19 @@ + + + + + + + + Document + + + + +
    + + + + + + diff --git a/templates/ice-design/blocks/EditableTable/demo/index.js b/templates/ice-design/blocks/EditableTable/demo/index.js new file mode 100644 index 0000000000..178a766115 --- /dev/null +++ b/templates/ice-design/blocks/EditableTable/demo/index.js @@ -0,0 +1,19 @@ +import React, {Component} from 'react'; +import {render} from 'react-dom'; + +// 载入默认全局样式 normalize 、.clearfix 和一些 mixin 方法等 +import '@icedesign/base/lib/_components/@alife/next-core/lib/index.scss'; + +import DemoLayout from '@icedesign/demo-layout'; +import Block from '../src'; + +const props = { + // ... +}; + +render( + + + , + document.querySelector('#mountNode') +); diff --git a/templates/ice-design/blocks/EditableTable/mock/api.json b/templates/ice-design/blocks/EditableTable/mock/api.json new file mode 100644 index 0000000000..e706430232 --- /dev/null +++ b/templates/ice-design/blocks/EditableTable/mock/api.json @@ -0,0 +1,4 @@ +{ + "status": "success", + "data": {} +} diff --git a/templates/ice-design/blocks/EditableTable/package.json b/templates/ice-design/blocks/EditableTable/package.json new file mode 100644 index 0000000000..917ddef162 --- /dev/null +++ b/templates/ice-design/blocks/EditableTable/package.json @@ -0,0 +1,51 @@ +{ + "name": "@icedesign/editable-table-block", + "version": "0.1.0", + "description": "可编辑内容的表格", + "files": [ + "src/", + "demo/", + "lib/", + "mock/" + ], + "author": { + "name": "ICE Team", + "email": "ice-admin@alibaba-inc.com" + }, + "repository": { + "type": "git", + "url": "https://github.com/alibaba/ice" + }, + "license": "MIT", + "keywords": [ + "ice", + "ice-block" + ], + "dependencies": { + "prop-types": "^15.5.8", + "@icedesign/base": "^0.1.0", + "@icedesign/card": "^0.1.0" + }, + "devDependencies": { + "babel-eslint": "^8.0.3", + "eslint": "^4.13.1", + "eslint-plugin-babel": "^4.1.1", + "eslint-plugin-react": "^7.5.1", + "@icedesign/demo-layout": "^0.1.0", + "eslint-plugin-import": "^2.8.0", + "eslint-config-airbnb": "^16.1.0", + "eslint-plugin-jsx-a11y": "^6.0.3", + "@icedesign/skin": "^0.1.2" + }, + "blockConfig": { + "name": "editable-table", + "description": "可编辑内容的表格", + "chinese": "可编辑表格", + "category": "table", + "snapshot": "https://img.alicdn.com/tfs/TB1BBhujfDH8KJjy1XcXXcpdXXa-1896-712.png", + "sketchURL": "", + "icelandURL": "", + "themePackage": "@icedesign/skin" + }, + "scripts": {} +} diff --git a/templates/ice-design/blocks/EditableTable/src/CellEditor.jsx b/templates/ice-design/blocks/EditableTable/src/CellEditor.jsx new file mode 100644 index 0000000000..9e89f36048 --- /dev/null +++ b/templates/ice-design/blocks/EditableTable/src/CellEditor.jsx @@ -0,0 +1,114 @@ +'use strict'; + +import React, { Component } from 'react'; +import PropTypes from 'prop-types'; + +import { Table, Icon, Button, Input } from '@icedesign/base'; + +export default class CellEditor extends Component { + static displayName = 'CellEditor'; + + constructor(props) { + super(props); + + this.tempValue = ''; + this.state = { + editMode: false, + value: props.value || '' + }; + } + + componentWillReceiveProps(nextProps) { + if ('value' in nextProps) { + this.setState({ + value: nextProps.value + }); + } + } + + editThisCell = () => { + // 缓存数据以便回滚 + this.tempValue = this.state.value; + this.setState({ + editMode: true + }); + }; + + onValueChange = value => { + this.setState({ + value + }); + }; + + updateValue = () => { + this.setState({ + editMode: false + }); + const { index, valueKey } = this.props; + const { value } = this.state; + this.props.onChange && this.props.onChange(index, valueKey, value); + }; + + rollBackThisCell = () => { + this.setState({ + value: this.tempValue, + editMode: false + }); + this.tempValue = ''; + }; + + render() { + const { value, editMode } = this.state; + + if (editMode) { + return ( +
    + + + + + + + +
    + ); + } else { + return ( +
    + {value} + + + +
    + ); + } + } +} + +const styles = { + cellInput: { + width: 'calc(100% - 44px)' + }, + operationIcon: { + marginLeft: '10px', + color: '#999', + cursor: 'pointer' + } +}; diff --git a/templates/ice-design/blocks/EditableTable/src/EditableTable.jsx b/templates/ice-design/blocks/EditableTable/src/EditableTable.jsx new file mode 100644 index 0000000000..a89d0566fc --- /dev/null +++ b/templates/ice-design/blocks/EditableTable/src/EditableTable.jsx @@ -0,0 +1,138 @@ +'use strict'; + +import React, { Component } from 'react'; +import PropTypes from 'prop-types'; +import IceCard from '@icedesign/card'; +import './EditableTable.scss'; +import { Table, Icon, Button, Input } from '@icedesign/base'; +import CellEditor from './CellEditor'; + +const generatorData = () => { + return Array.from({ length: 5 }).map((item, index) => { + return { + todo: '待办事项 ' + index, + memo: '备注说明文案 ' + index, + validity: '2017-12-12' + }; + }); +}; + +export default class EditableTable extends Component { + static displayName = 'EditableTable'; + + static propTypes = {}; + + static defaultProps = {}; + + constructor(props) { + super(props); + this.state = { + dataSource: generatorData() + }; + } + + // ICE: React Component 的生命周期 + // http://ice.alibaba-inc.com/docs/guide/intro-react#React-组件的生命周期 + componentWillMount() {} + + componentDidMount() {} + + componentWillReceiveProps(nextProps, nextContext) {} + + shouldComponentUpdate(nextProps, nextState) { + return true; + } + + componentWillUnmount() {} + + renderOrder = (value, index, record) => { + return {index}; + }; + + deleteItem = (index) => { + this.state.dataSource.splice(index, 1); + this.setState({ + dataSource: this.state.dataSource + }); + }; + + renderOperation = (value, index, record) => { + return ( + + ); + }; + + changeDataSource = (index, valueKey, value) => { + // todo 将修改后的表格数据发送接口,持久化 + this.state.dataSource[index][valueKey] = value; + this.setState({ + dataSource: this.state.dataSource + }); + }; + + renderEditor = (valueKey, value, index, record) => { + return ( + + ); + }; + + addNewItem = () => { + this.state.dataSource.push({ + todo: '暂无', + memo: '暂无', + validity: '暂无' + }); + this.setState({ + dataSource: this.state.dataSource + }); + }; + + render() { + return ( +
    + + + + + + + +
    +
    + + 新增一行 +
    +
    +
    + ); + } +} + +const styles = { + addNewItem: { + background: '#F5F5F5', + height: 32, + lineHeight: '32px', + marginTop: 20, + cursor: 'pointer', + textAlign: 'center' + } +}; diff --git a/templates/ice-design/blocks/EditableTable/src/EditableTable.scss b/templates/ice-design/blocks/EditableTable/src/EditableTable.scss new file mode 100644 index 0000000000..742dbb232b --- /dev/null +++ b/templates/ice-design/blocks/EditableTable/src/EditableTable.scss @@ -0,0 +1,12 @@ +@charset "UTF-8"; + +.editable-table { + .celleditor { + &:hover .celleditor-trigger { + display: inline-block; + } + } + .celleditor-trigger { + display: none; + } +} diff --git a/templates/ice-design/blocks/EditableTable/src/index.js b/templates/ice-design/blocks/EditableTable/src/index.js new file mode 100644 index 0000000000..9952183065 --- /dev/null +++ b/templates/ice-design/blocks/EditableTable/src/index.js @@ -0,0 +1,3 @@ +import EditableTable from './EditableTable'; + +export default EditableTable; diff --git a/templates/ice-design/blocks/EmptyContent/.editorconfig b/templates/ice-design/blocks/EmptyContent/.editorconfig new file mode 100644 index 0000000000..22ef5ace54 --- /dev/null +++ b/templates/ice-design/blocks/EmptyContent/.editorconfig @@ -0,0 +1,16 @@ +# http://editorconfig.org +root = true + +[*] +indent_style = space +indent_size = 2 +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false + +[makefile] +indent_style = tab +indent_size = 4 diff --git a/templates/ice-design/blocks/EmptyContent/.eslintignore b/templates/ice-design/blocks/EmptyContent/.eslintignore new file mode 100644 index 0000000000..3b21308fc7 --- /dev/null +++ b/templates/ice-design/blocks/EmptyContent/.eslintignore @@ -0,0 +1,12 @@ +# 忽略目录 +build/ +tests/ +demo/ +lib/ + +# node 覆盖率文件 +coverage/ + +# 忽略文件 +**/*-min.js +**/*.min.js \ No newline at end of file diff --git a/templates/ice-design/blocks/EmptyContent/.eslintrc b/templates/ice-design/blocks/EmptyContent/.eslintrc new file mode 100644 index 0000000000..7a4e5bac48 --- /dev/null +++ b/templates/ice-design/blocks/EmptyContent/.eslintrc @@ -0,0 +1,62 @@ +{ + "root": true, + "parser": "babel-eslint", + "extends": "eslint-config-airbnb", + "parserOptions": { + "ecmaVersion": 6, + "ecmaFeatures": { + "jsx": true, + "experimentalObjectRestSpread": true + } + }, + "env": { + "browser": true + }, + "plugins": [ + "react", + "babel" + ], + "rules": { + "react/forbid-prop-types": 0, + "jsx-a11y/label-has-for": 0, + "jsx-a11y/no-static-element-interactions": 0, + "jsx-a11y/anchor-has-content": 0, + "jsx-a11y/click-events-have-key-events": 0, + "jsx-a11y/anchor-is-valid": 0, + "react/no-array-index-key": 0, + "func-names": 0, + "arrow-body-style": 0, + "no-use-before-define": 0, + "react/sort-comp": 0, + "react/prop-types": 0, + "react/jsx-first-prop-new-line": 0, + "react/jsx-filename-extension": [ + 1, + { + "extensions": [ + ".js", + ".jsx" + ] + } + ], + "import/extensions": 0, + "import/no-unresolved": 0, + "import/no-extraneous-dependencies": 0, + "prefer-destructuring": 0, + "no-param-reassign": 0, + "no-return-assign": 0, + "max-len": 0, + "consistent-return": 0, + "no-redeclare": 0, + "react/require-extension": 0, + "react/no-danger": 0, + "comma-dangle": [ + "error", + "always-multiline" + ], + "function-paren-newline": 0, + "object-curly-newline": 0, + "no-restricted-globals": 0, + "react/prefer-stateless-function": 0 + } +} diff --git a/templates/ice-design/blocks/EmptyContent/.gitignore b/templates/ice-design/blocks/EmptyContent/.gitignore new file mode 100644 index 0000000000..cc45d6fb3c --- /dev/null +++ b/templates/ice-design/blocks/EmptyContent/.gitignore @@ -0,0 +1,13 @@ + +*.swp +*.dia~ +.idea/ +.DS_Store + +npm-debug.log +yarn-error.log +node_modules/ +tmp/ + +# happypack 缓存 +.happypack diff --git a/templates/ice-design/blocks/EmptyContent/README.md b/templates/ice-design/blocks/EmptyContent/README.md new file mode 100644 index 0000000000..4f8d38066b --- /dev/null +++ b/templates/ice-design/blocks/EmptyContent/README.md @@ -0,0 +1,10 @@ +# empty-content + +简介:空内容提示 + +![截图](https://img.alicdn.com/tfs/TB1unfJiOqAXuNjy1XdXXaYcVXa-1862-1024.png) + +## 更多 + +* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) +* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) diff --git a/templates/ice-design/blocks/EmptyContent/demo/index.html b/templates/ice-design/blocks/EmptyContent/demo/index.html new file mode 100644 index 0000000000..9d2d3a663d --- /dev/null +++ b/templates/ice-design/blocks/EmptyContent/demo/index.html @@ -0,0 +1,19 @@ + + + + + + + + Document + + + + +
    + + + + + + diff --git a/templates/ice-design/blocks/EmptyContent/demo/index.js b/templates/ice-design/blocks/EmptyContent/demo/index.js new file mode 100644 index 0000000000..178a766115 --- /dev/null +++ b/templates/ice-design/blocks/EmptyContent/demo/index.js @@ -0,0 +1,19 @@ +import React, {Component} from 'react'; +import {render} from 'react-dom'; + +// 载入默认全局样式 normalize 、.clearfix 和一些 mixin 方法等 +import '@icedesign/base/lib/_components/@alife/next-core/lib/index.scss'; + +import DemoLayout from '@icedesign/demo-layout'; +import Block from '../src'; + +const props = { + // ... +}; + +render( + + + , + document.querySelector('#mountNode') +); diff --git a/templates/ice-design/blocks/EmptyContent/mock/api.json b/templates/ice-design/blocks/EmptyContent/mock/api.json new file mode 100644 index 0000000000..eee2984fbe --- /dev/null +++ b/templates/ice-design/blocks/EmptyContent/mock/api.json @@ -0,0 +1,4 @@ +{ + "status": "SUCCESS", + "data": {} +} diff --git a/templates/ice-design/blocks/EmptyContent/package.json b/templates/ice-design/blocks/EmptyContent/package.json new file mode 100644 index 0000000000..c489b66d91 --- /dev/null +++ b/templates/ice-design/blocks/EmptyContent/package.json @@ -0,0 +1,54 @@ +{ + "name": "@icedesign/empty-content-block", + "version": "0.1.1", + "description": "", + "files": [ + "src/", + "demo/", + "lib/", + "mock/" + ], + "scripts": {}, + "author": { + "name": "ICE Team", + "email": "ice-admin@alibaba-inc.com" + }, + "repository": { + "type": "git", + "url": "https://github.com/alibaba/ice" + }, + "license": "MIT", + "keywords": [ + "ice", + "ice-block" + ], + "dependencies": { + "@icedesign/base": "^0.1.0", + "prop-types": "^15.5.8", + "@icedesign/card": "^0.1.0" + }, + "devDependencies": { + "@icedesign/skin": "^0.1.2", + "babel-eslint": "^8.0.3", + "eslint-plugin-react": "^7.5.1", + "react": "15.x", + "react-copy-to-clipboard": "^4.2.3", + "react-dom": "15.x", + "eslint": "^4.13.1", + "eslint-plugin-babel": "^4.1.1", + "eslint-plugin-import": "^2.8.0", + "eslint-config-airbnb": "^16.1.0", + "eslint-plugin-jsx-a11y": "^6.0.3", + "@icedesign/demo-layout": "^0.1.0" + }, + "blockConfig": { + "name": "empty-content", + "description": "", + "chinese": "空内容提示", + "category": "exception", + "snapshot": "https://img.alicdn.com/tfs/TB1unfJiOqAXuNjy1XdXXaYcVXa-1862-1024.png", + "sketchURL": "", + "icelandURL": "", + "themePackage": "@icedesign/skin" + } +} diff --git a/templates/ice-design/blocks/EmptyContent/src/EmptyContent.jsx b/templates/ice-design/blocks/EmptyContent/src/EmptyContent.jsx new file mode 100644 index 0000000000..030405537a --- /dev/null +++ b/templates/ice-design/blocks/EmptyContent/src/EmptyContent.jsx @@ -0,0 +1,46 @@ +import React, { Component } from 'react'; +import IceCard from '@icedesign/card'; +import './EmptyContent.scss'; + +export default class EmptyContent extends Component { + static displayName = 'EmptyContent'; + + constructor(props) { + super(props); + this.state = {}; + } + + render() { + return ( +
    + +
    + empty +
    +

    页面暂无内容

    +

    + 抱歉,页面暂无内容,请看看其他页面 +

    +
    +
    +
    +
    + ); + } +} + +const styles = { + content: { + display: 'flex', + justifyContent: 'center', + alignItems: 'center', + minHeight: '500px' + }, + image: { width: '260px', height: '260px', marginRight: '50px' }, + title: { color: '#333', fontSize: '24px', margin: '20px 0' }, + description: { color: '#666' } +}; diff --git a/templates/ice-design/blocks/EmptyContent/src/EmptyContent.scss b/templates/ice-design/blocks/EmptyContent/src/EmptyContent.scss new file mode 100644 index 0000000000..9f9df24359 --- /dev/null +++ b/templates/ice-design/blocks/EmptyContent/src/EmptyContent.scss @@ -0,0 +1,5 @@ +@charset "UTF-8"; + +.empty-content { + +} diff --git a/templates/ice-design/blocks/EmptyContent/src/index.js b/templates/ice-design/blocks/EmptyContent/src/index.js new file mode 100644 index 0000000000..53b74894f7 --- /dev/null +++ b/templates/ice-design/blocks/EmptyContent/src/index.js @@ -0,0 +1,3 @@ +import EmptyContent from './EmptyContent'; + +export default EmptyContent; diff --git a/templates/ice-design/blocks/EnhanceTable/.editorconfig b/templates/ice-design/blocks/EnhanceTable/.editorconfig new file mode 100644 index 0000000000..22ef5ace54 --- /dev/null +++ b/templates/ice-design/blocks/EnhanceTable/.editorconfig @@ -0,0 +1,16 @@ +# http://editorconfig.org +root = true + +[*] +indent_style = space +indent_size = 2 +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false + +[makefile] +indent_style = tab +indent_size = 4 diff --git a/templates/ice-design/blocks/EnhanceTable/.eslintignore b/templates/ice-design/blocks/EnhanceTable/.eslintignore new file mode 100644 index 0000000000..3b21308fc7 --- /dev/null +++ b/templates/ice-design/blocks/EnhanceTable/.eslintignore @@ -0,0 +1,12 @@ +# 忽略目录 +build/ +tests/ +demo/ +lib/ + +# node 覆盖率文件 +coverage/ + +# 忽略文件 +**/*-min.js +**/*.min.js \ No newline at end of file diff --git a/templates/ice-design/blocks/EnhanceTable/.eslintrc b/templates/ice-design/blocks/EnhanceTable/.eslintrc new file mode 100644 index 0000000000..7a4e5bac48 --- /dev/null +++ b/templates/ice-design/blocks/EnhanceTable/.eslintrc @@ -0,0 +1,62 @@ +{ + "root": true, + "parser": "babel-eslint", + "extends": "eslint-config-airbnb", + "parserOptions": { + "ecmaVersion": 6, + "ecmaFeatures": { + "jsx": true, + "experimentalObjectRestSpread": true + } + }, + "env": { + "browser": true + }, + "plugins": [ + "react", + "babel" + ], + "rules": { + "react/forbid-prop-types": 0, + "jsx-a11y/label-has-for": 0, + "jsx-a11y/no-static-element-interactions": 0, + "jsx-a11y/anchor-has-content": 0, + "jsx-a11y/click-events-have-key-events": 0, + "jsx-a11y/anchor-is-valid": 0, + "react/no-array-index-key": 0, + "func-names": 0, + "arrow-body-style": 0, + "no-use-before-define": 0, + "react/sort-comp": 0, + "react/prop-types": 0, + "react/jsx-first-prop-new-line": 0, + "react/jsx-filename-extension": [ + 1, + { + "extensions": [ + ".js", + ".jsx" + ] + } + ], + "import/extensions": 0, + "import/no-unresolved": 0, + "import/no-extraneous-dependencies": 0, + "prefer-destructuring": 0, + "no-param-reassign": 0, + "no-return-assign": 0, + "max-len": 0, + "consistent-return": 0, + "no-redeclare": 0, + "react/require-extension": 0, + "react/no-danger": 0, + "comma-dangle": [ + "error", + "always-multiline" + ], + "function-paren-newline": 0, + "object-curly-newline": 0, + "no-restricted-globals": 0, + "react/prefer-stateless-function": 0 + } +} diff --git a/templates/ice-design/blocks/EnhanceTable/.gitignore b/templates/ice-design/blocks/EnhanceTable/.gitignore new file mode 100644 index 0000000000..cc45d6fb3c --- /dev/null +++ b/templates/ice-design/blocks/EnhanceTable/.gitignore @@ -0,0 +1,13 @@ + +*.swp +*.dia~ +.idea/ +.DS_Store + +npm-debug.log +yarn-error.log +node_modules/ +tmp/ + +# happypack 缓存 +.happypack diff --git a/templates/ice-design/blocks/EnhanceTable/README.md b/templates/ice-design/blocks/EnhanceTable/README.md new file mode 100644 index 0000000000..ff5381c455 --- /dev/null +++ b/templates/ice-design/blocks/EnhanceTable/README.md @@ -0,0 +1,12 @@ +# enhance-table + +简介:增强筛选表单 + +附带简单表单筛选功能的增强筛选表单 + +![截图](https://img.alicdn.com/tfs/TB1viRoixrI8KJjy0FpXXb5hVXa-1896-1134.png) + +## 更多 + +* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) +* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) diff --git a/templates/ice-design/blocks/EnhanceTable/demo/index.html b/templates/ice-design/blocks/EnhanceTable/demo/index.html new file mode 100644 index 0000000000..9d2d3a663d --- /dev/null +++ b/templates/ice-design/blocks/EnhanceTable/demo/index.html @@ -0,0 +1,19 @@ + + + + + + + + Document + + + + +
    + + + + + + diff --git a/templates/ice-design/blocks/EnhanceTable/demo/index.js b/templates/ice-design/blocks/EnhanceTable/demo/index.js new file mode 100644 index 0000000000..4d6acd389a --- /dev/null +++ b/templates/ice-design/blocks/EnhanceTable/demo/index.js @@ -0,0 +1,19 @@ +import React, { Component } from 'react'; +import { render } from 'react-dom'; + +// 载入默认全局样式 normalize 、.clearfix 和一些 mixin 方法等 +import '@icedesign/base/lib/_components/@alife/next-core/lib/index.scss'; + +import DemoLayout from '@icedesign/demo-layout'; +import Block from '../src'; + +const props = { + // ... +}; + +render( + + + , + document.querySelector('#mountNode') +); diff --git a/templates/ice-design/blocks/EnhanceTable/mock/enhance-table-list.json b/templates/ice-design/blocks/EnhanceTable/mock/enhance-table-list.json new file mode 100644 index 0000000000..5347bea249 --- /dev/null +++ b/templates/ice-design/blocks/EnhanceTable/mock/enhance-table-list.json @@ -0,0 +1,122 @@ +{ + "status": "SUCCESS", + "data": { + "total": 100, + "pageSize": 10, + "currentPage": 1, + "list": [ + { + "id": 1, + "cover": + "//img.alicdn.com/bao/uploaded/i3/120976213/TB2O4nSnblmpuFjSZFlXXbdQXXa_!!120976213.jpg_240x240.jpg", + "title": "于momo2017秋冬新款背带裙复古格子连衣裙清新背心裙a字裙短裙子", + "url": "https://item.taobao.com/item.htm?id=558559528377", + "type": "清单", + "publishTime": "17-04-28 20:29:20", + "publishStatus": "已发布", + "pushStatus": "已推送至订阅号", + "operation": { + "edit": true + } + }, + { + "id": 2, + "cover": + "//img.alicdn.com/bao/uploaded/i4/TB1GiPSinJ_SKJjSZPiYXH3LpXa_M2.SS2_100x100.jpg", + "title": "SOTHEA 2017秋冬新款 高质感特定纱线欧美宽松马海毛羊毛毛衣", + "url": "https://item.taobao.com/item.htm?id=558559528377", + "type": "清单", + "publishTime": "17-04-28 20:29:20", + "publishStatus": "已发布", + "pushStatus": "已推送至订阅号", + "operation": { + "edit": true + } + }, + { + "id": 3, + "cover": + "//img.alicdn.com/bao/uploaded/i3/120976213/TB2O4nSnblmpuFjSZFlXXbdQXXa_!!120976213.jpg_240x240.jpg", + "title": "川岛屋 日式天然玉米皮草编碗垫锅垫隔热垫茶垫加厚餐垫GD-29", + "url": "https://item.taobao.com/item.htm?id=558559528377", + "type": "清单", + "publishTime": "17-04-28 20:29:20", + "publishStatus": "已发布", + "pushStatus": "已推送至订阅号", + "operation": { + "edit": true + } + }, + { + "id": 4, + "cover": + "//img.alicdn.com/bao/uploaded/i7/TB1QpMvk3n.PuJjSZFkYXI_lpXa_M2.SS2_100x100.jpg", + "title": "SOTHEA 2017秋冬新款 绑带腰封设计感超顺滑质感落肩铜氨丝连衣裙", + "url": "https://item.taobao.com/item.htm?id=558559528377", + "type": "清单", + "publishTime": "17-04-28 20:29:20", + "publishStatus": "已发布", + "pushStatus": "已推送至订阅号", + "operation": { + "edit": true + } + }, + { + "id": 5, + "cover": + "//img.alicdn.com/bao/uploaded/i4/120976213/TB2GiVsdS0mpuFjSZPiXXbssVXa_!!120976213.jpg_240x240.jpg", + "title": "川岛屋 日式糖果色陶瓷柄不锈钢餐具西餐牛扒刀叉勺子咖啡勺S-27", + "url": "https://item.taobao.com/item.htm?id=558559528377", + "type": "清单", + "publishTime": "17-04-28 20:29:20", + "publishStatus": "已发布", + "pushStatus": "已推送至订阅号", + "operation": { + "edit": true + } + }, + { + "id": 6, + "cover": + "//img.alicdn.com/bao/uploaded/i3/120976213/TB2bxHGtpXXXXXVXXXXXXXXXXXX_!!120976213.jpg_240x240.jpg", + "title": "日式和风深蓝素色文艺餐巾餐垫围裙锅垫隔热手套厨房桌布GD-11", + "url": "https://item.taobao.com/item.htm?id=558559528377", + "type": "清单", + "publishTime": "17-04-28 20:29:20", + "publishStatus": "已发布", + "pushStatus": "已推送至订阅号", + "operation": { + "edit": true + } + }, + { + "id": 7, + "cover": + "https://img.alicdn.com/bao/uploaded/i4/120976213/TB2bEcHnXXXXXbgXXXXXXXXXXXX_!!120976213.jpg_100x100.jpg", + "title": "川岛屋 日式雪点樱花手绘陶瓷餐具米饭碗拉面碗寿司盘子汤碗PZ-36", + "url": "https://item.taobao.com/item.htm?id=558559528377", + "type": "清单", + "publishTime": "17-04-28 20:29:20", + "publishStatus": "已发布", + "pushStatus": "已推送至订阅号", + "operation": { + "edit": true + } + }, + { + "id": 8, + "cover": + "//img.alicdn.com/bao/uploaded/i2/TB11DjAIFXXXXaTXFXXXXXXXXXX_!!0-item_pic.jpg_100x100.jpg", + "title": "川岛屋 釉下彩复古日式陶瓷盘子菜盘圆盘调味碟 米饭碗日式餐具", + "url": "https://item.taobao.com/item.htm?id=558559528377", + "type": "清单", + "publishTime": "17-04-28 20:29:20", + "publishStatus": "已发布", + "pushStatus": "已推送至订阅号", + "operation": { + "edit": true + } + } + ] + } +} diff --git a/templates/ice-design/blocks/EnhanceTable/package.json b/templates/ice-design/blocks/EnhanceTable/package.json new file mode 100644 index 0000000000..372802ec6a --- /dev/null +++ b/templates/ice-design/blocks/EnhanceTable/package.json @@ -0,0 +1,55 @@ +{ + "name": "@icedesign/enhance-table-block", + "version": "0.1.0", + "description": "附带简单表单筛选功能的增强筛选表单", + "main": "lib/index.js", + "files": [ + "src/", + "demo/", + "lib/", + "mock/" + ], + "author": { + "name": "ICE Team", + "email": "ice-admin@alibaba-inc.com" + }, + "repository": { + "type": "git", + "url": "https://github.com/alibaba/ice" + }, + "license": "MIT", + "keywords": [ + "ice", + "ice-block" + ], + "dependencies": { + "prop-types": "^15.5.8", + "@icedesign/base": "^0.1.0", + "@icedesign/card": "^0.1.0", + "@icedesign/data-binder": "^0.1.0", + "@icedesign/img": "^0.1.0", + "@icedesign/label": "^0.1.0" + }, + "devDependencies": { + "babel-eslint": "^8.0.3", + "eslint": "^4.13.1", + "eslint-plugin-babel": "^4.1.1", + "eslint-plugin-react": "^7.5.1", + "@icedesign/demo-layout": "^0.1.0", + "eslint-plugin-import": "^2.8.0", + "eslint-config-airbnb": "^16.1.0", + "eslint-plugin-jsx-a11y": "^6.0.3", + "@icedesign/skin": "^0.1.2" + }, + "blockConfig": { + "name": "enhance-table", + "description": "附带简单表单筛选功能的增强筛选表单", + "chinese": "增强筛选表单", + "category": "table", + "snapshot": "https://img.alicdn.com/tfs/TB1viRoixrI8KJjy0FpXXb5hVXa-1896-1134.png", + "sketchURL": "", + "icelandURL": "", + "themePackage": "@icedesign/skin" + }, + "scripts": {} +} diff --git a/templates/ice-design/blocks/EnhanceTable/src/EnhanceTable.jsx b/templates/ice-design/blocks/EnhanceTable/src/EnhanceTable.jsx new file mode 100644 index 0000000000..d5c08abca7 --- /dev/null +++ b/templates/ice-design/blocks/EnhanceTable/src/EnhanceTable.jsx @@ -0,0 +1,260 @@ +'use strict'; + +import React, { Component } from 'react'; +import PropTypes from 'prop-types'; +import './EnhanceTable.scss'; + +import { Table, Pagination, Tab, DatePicker, Search } from '@icedesign/base'; + +import IceCard from '@icedesign/card'; +import IceImg from '@icedesign/img'; +import DataBinder from '@icedesign/data-binder'; +import IceLabel from '@icedesign/label'; + +// 详细用法请参见 http://ice.alibaba-inc.com/modules/ice-data-binder +@DataBinder({ + tableData: { + // 详细请求配置请参见 https://github.com/axios/axios + url: '/mock/enhance-table-list.json', + params: { + page: 1 + }, + defaultBindingData: { + list: [], + total: 100, + pageSize: 10, + currentPage: 1 + } + } +}) +export default class EnhanceTable extends Component { + static displayName = 'EnhanceTable'; + + static propTypes = { + style: PropTypes.object, + className: PropTypes.string + }; + + static defaultProps = {}; + + constructor(props) { + super(props); + + this.queryCache = {}; + this.state = { + activeKey: 'solved' + }; + } + + // ICE: React Component 的生命周期 + // http://ice.alibaba-inc.com/docs/guide/intro-react#React-组件的生命周期 + componentWillMount() {} + + componentDidMount() { + this.queryCache.page = 1; + this.fetchData(); + } + + componentWillReceiveProps(nextProps, nextContext) {} + + shouldComponentUpdate(nextProps, nextState) { + return true; + } + + componentWillUnmount() {} + + fetchData = () => { + this.props.updateBindingData('tableData', { + data: this.queryCache + }); + }; + + renderTitle = (value, index, record) => { + return ( +
    +
    + +
    + {record.title} +
    + ); + }; + + editItem = (record, e) => { + e.preventDefault(); + // todo + }; + + renderOperations = (value, index, record) => { + return ( + + ); + }; + + renderStatus = (value, index, record) => { + return ( + + {value} + + ); + }; + + changePage = (currentPage) => { + this.queryCache.page = currentPage; + + this.fetchData(); + }; + + onTabChange = (tabKey) => { + this.setState({ + activeKey: tabKey + }); + this.queryCache.activeKey = tabKey; + + if (tabKey === 'solved') { + this.fetchData(); + } else if (tabKey === 'needFix') { + this.fetchData(); + } else { + alert('你点击了 ' + tabKey); + } + }; + + onDateChange = (date, strDate) => { + this.queryCache.date = strDate; + this.fetchData(); + }; + + onSearch = (value) => { + this.queryCache.keywords = value.key; + this.fetchData(); + }; + + render() { + const tableData = this.props.bindingData.tableData; + + return ( +
    + +
    + + + 已解决 123 + + } + /> + + 待解决 10 + + } + /> + + 待验证 2 + + } + /> + +
    +
    + + +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + ); + } +} + +const styles = { + enhanceTableOperation: { 'a {MarginRight': '12px', textDecoration: 'none' }, + enhanceTable: {}, + titleWrapper: { display: 'flex', flexDirection: 'row' }, + title: { marginLeft: '10px', lineHeight: '20px' }, + enhanceTableOperation: { lineHeight: '28px' }, + card: { + minHeight: 0, + marginBottom: 20, + display: 'flex', + justifyContent: 'space-between' + }, + tabCount: { color: '#3080FE' }, + extraFilter: { display: 'flex', alignItems: 'center' }, + search: { marginLeft: 10 }, + pagination: { textAlign: 'right', paddingTop: '26px' } +}; diff --git a/templates/ice-design/blocks/EnhanceTable/src/EnhanceTable.scss b/templates/ice-design/blocks/EnhanceTable/src/EnhanceTable.scss new file mode 100644 index 0000000000..bf8322e50a --- /dev/null +++ b/templates/ice-design/blocks/EnhanceTable/src/EnhanceTable.scss @@ -0,0 +1,10 @@ +@charset "UTF-8"; + +.enhance-table { + .enhance-table-operation { + a { + margin-right: 12px; + text-decoration: none; + } + } +} diff --git a/templates/ice-design/blocks/EnhanceTable/src/index.js b/templates/ice-design/blocks/EnhanceTable/src/index.js new file mode 100644 index 0000000000..befd32b059 --- /dev/null +++ b/templates/ice-design/blocks/EnhanceTable/src/index.js @@ -0,0 +1,3 @@ +import EnhanceTable from './EnhanceTable'; + +export default EnhanceTable; diff --git a/templates/ice-design/blocks/EntryCard/.editorconfig b/templates/ice-design/blocks/EntryCard/.editorconfig new file mode 100644 index 0000000000..22ef5ace54 --- /dev/null +++ b/templates/ice-design/blocks/EntryCard/.editorconfig @@ -0,0 +1,16 @@ +# http://editorconfig.org +root = true + +[*] +indent_style = space +indent_size = 2 +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false + +[makefile] +indent_style = tab +indent_size = 4 diff --git a/templates/ice-design/blocks/EntryCard/.eslintignore b/templates/ice-design/blocks/EntryCard/.eslintignore new file mode 100644 index 0000000000..66244c2356 --- /dev/null +++ b/templates/ice-design/blocks/EntryCard/.eslintignore @@ -0,0 +1,20 @@ +*.swp +*.dia~ +.idea/ +.DS_Store + +npm-debug.log +yarn-error.log +node_modules/ +tmp/ + +# 这是编译后的代码, 用于提交到 tnpm, git 仓库不需要此份代码 +lib/ +# 提供 start dev 的环境依赖 +# happypack 缓存 +.happypack + +# fusion 配置平台相关 +theme/build/ +theme/deps.json +theme/index.html diff --git a/templates/ice-design/blocks/EntryCard/.eslintrc b/templates/ice-design/blocks/EntryCard/.eslintrc new file mode 100644 index 0000000000..07c65acfe7 --- /dev/null +++ b/templates/ice-design/blocks/EntryCard/.eslintrc @@ -0,0 +1,53 @@ +{ + "root": true, + "parser": "babel-eslint", + "extends": "eslint-config-airbnb", + "parserOptions": { + "ecmaVersion": 6, + "ecmaFeatures": { + "jsx": true, + "experimentalObjectRestSpread": true + } + }, + "env": { + "browser": true + }, + "plugins": ["react", "babel"], + "rules": { + "react/forbid-prop-types": 0, + "jsx-a11y/label-has-for": 0, + "jsx-a11y/no-static-element-interactions": 0, + "jsx-a11y/anchor-has-content": 0, + "jsx-a11y/click-events-have-key-events": 0, + "jsx-a11y/anchor-is-valid": 0, + "react/no-array-index-key": 0, + "func-names": 0, + "arrow-body-style": 0, + "no-use-before-define": 1, + "react/sort-comp": 0, + "react/prop-types": 0, + "react/jsx-first-prop-new-line": 0, + "react/jsx-filename-extension": [ + 1, + { + "extensions": [".js", ".jsx"] + } + ], + "import/extensions": 0, + "import/no-unresolved": 0, + "import/no-extraneous-dependencies": 0, + "prefer-destructuring": 0, + "no-param-reassign": 0, + "no-return-assign": 0, + "max-len": 0, + "consistent-return": 0, + "no-redeclare": 0, + "react/require-extension": 0, + "react/no-danger": 0, + "comma-dangle": ["error", "always-multiline"], + "function-paren-newline": 0, + "object-curly-newline": 0, + "no-restricted-globals": 0, + "react/prefer-stateless-function": 0 + } +} diff --git a/templates/ice-design/blocks/EntryCard/.gitignore b/templates/ice-design/blocks/EntryCard/.gitignore new file mode 100644 index 0000000000..cc45d6fb3c --- /dev/null +++ b/templates/ice-design/blocks/EntryCard/.gitignore @@ -0,0 +1,13 @@ + +*.swp +*.dia~ +.idea/ +.DS_Store + +npm-debug.log +yarn-error.log +node_modules/ +tmp/ + +# happypack 缓存 +.happypack diff --git a/templates/ice-design/blocks/EntryCard/README.md b/templates/ice-design/blocks/EntryCard/README.md new file mode 100644 index 0000000000..1a5d9830e0 --- /dev/null +++ b/templates/ice-design/blocks/EntryCard/README.md @@ -0,0 +1,10 @@ +# entry-card + +简介:入口列表卡片 + +![截图](https://img.alicdn.com/tfs/TB1RSAIif6H8KJjy0FjXXaXepXa-1102-262.png) + +## 更多 + +* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) +* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) diff --git a/templates/ice-design/blocks/EntryCard/demo/index.html b/templates/ice-design/blocks/EntryCard/demo/index.html new file mode 100644 index 0000000000..9d2d3a663d --- /dev/null +++ b/templates/ice-design/blocks/EntryCard/demo/index.html @@ -0,0 +1,19 @@ + + + + + + + + Document + + + + +
    + + + + + + diff --git a/templates/ice-design/blocks/EntryCard/demo/index.js b/templates/ice-design/blocks/EntryCard/demo/index.js new file mode 100644 index 0000000000..6994fa7f92 --- /dev/null +++ b/templates/ice-design/blocks/EntryCard/demo/index.js @@ -0,0 +1,18 @@ +import React from 'react'; +import { render } from 'react-dom'; + +// 载入默认全局样式 normalize 、.clearfix 和一些 mixin 方法等 +import '@icedesign/base/lib/_components/@alife/next-core/lib/index.scss'; +import DemoLayout from '@icedesign/demo-layout'; +import Block from '../src'; + +const props = { + // ... +}; + +render( + + + , + document.querySelector('#mountNode') +); diff --git a/templates/ice-design/blocks/EntryCard/lib/EntryCard.js b/templates/ice-design/blocks/EntryCard/lib/EntryCard.js new file mode 100644 index 0000000000..a04976c4c1 --- /dev/null +++ b/templates/ice-design/blocks/EntryCard/lib/EntryCard.js @@ -0,0 +1,125 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = undefined; + +var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + +var _class, _temp; + +var _react = require('react'); + +var _react2 = _interopRequireDefault(_react); + +var _card = require('@icedesign/card'); + +var _card2 = _interopRequireDefault(_card); + +require('./EntryCard.scss'); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } + +var list = [{ + title: '帖子', + img: '//gw.alicdn.com/tfscom/TB1OyT.RVXXXXcpXXXXXXXXXXXX.png', + url: '//www.taobao.com' +}, { + title: '宝贝清单', + img: '//img.alicdn.com/tfs/TB1g6cGRFXXXXa9XXXXXXXXXXXX-140-140.png', + url: '//www.taobao.com' +}, { + title: '图片', + img: '//img.alicdn.com/tfs/TB1hJ7dRFXXXXcgXFXXXXXXXXXX-140-140.png', + url: '//www.taobao.com' +}, { + title: '上新', + img: '//img.alicdn.com/tfs/TB196v1RFXXXXb6aXXXXXXXXXXX-140-140.png', + url: '//www.taobao.com' +}, { + title: '短视频', + img: '//gw.alicdn.com/tfscom/TB1toY.RVXXXXcuXXXXXXXXXXXX.png', + url: '//www.taobao.com' +}, { + title: '短视频', + img: '//gw.alicdn.com/tfscom/TB1toY.RVXXXXcuXXXXXXXXXXXX.png', + url: '//www.taobao.com' +}]; + +var EntryCard = (_temp = _class = function (_Component) { + _inherits(EntryCard, _Component); + + function EntryCard() { + _classCallCheck(this, EntryCard); + + return _possibleConstructorReturn(this, (EntryCard.__proto__ || Object.getPrototypeOf(EntryCard)).apply(this, arguments)); + } + + _createClass(EntryCard, [{ + key: 'render', + value: function render() { + return _react2.default.createElement( + _card2.default, + { + className: 'entry-card', + style: { + display: 'flex', + flexDirection: 'row', + flexWrap: 'wrap' + } + }, + list.map(function (item, index) { + return _react2.default.createElement( + 'div', + { key: index, style: styles.item }, + _react2.default.createElement( + 'a', + { href: item.url, style: styles.link, target: '_blank' }, + _react2.default.createElement('img', { src: item.img, style: styles.cover, alt: item.title }), + _react2.default.createElement( + 'div', + { style: styles.title }, + item.title + ) + ) + ); + }) + ); + } + }]); + + return EntryCard; +}(_react.Component), _class.displayName = 'EntryCard', _temp); +exports.default = EntryCard; + + +var styles = { + item: { + display: 'flex', + flexDirection: 'column', + alignItems: 'center', + width: '70px', + margin: '10px 40px' + }, + link: { + textDecoration: 'none', + color: '#333' + }, + cover: { + width: '70px', + height: '70px' + }, + title: { + marginTop: '12px', + fontSize: '14px', + textAlign: 'center' + } +}; +module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/EntryCard/lib/EntryCard.scss b/templates/ice-design/blocks/EntryCard/lib/EntryCard.scss new file mode 100644 index 0000000000..654aa4f2bd --- /dev/null +++ b/templates/ice-design/blocks/EntryCard/lib/EntryCard.scss @@ -0,0 +1,4 @@ +@charset "UTF-8"; + +.entry-card { +} diff --git a/templates/ice-design/blocks/EntryCard/lib/index.js b/templates/ice-design/blocks/EntryCard/lib/index.js new file mode 100644 index 0000000000..e892ebf485 --- /dev/null +++ b/templates/ice-design/blocks/EntryCard/lib/index.js @@ -0,0 +1,14 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _EntryCard = require('./EntryCard'); + +var _EntryCard2 = _interopRequireDefault(_EntryCard); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +exports.default = _EntryCard2.default; +module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/EntryCard/mock/api.json b/templates/ice-design/blocks/EntryCard/mock/api.json new file mode 100644 index 0000000000..e706430232 --- /dev/null +++ b/templates/ice-design/blocks/EntryCard/mock/api.json @@ -0,0 +1,4 @@ +{ + "status": "success", + "data": {} +} diff --git a/templates/ice-design/blocks/EntryCard/package.json b/templates/ice-design/blocks/EntryCard/package.json new file mode 100644 index 0000000000..598e2e4eaa --- /dev/null +++ b/templates/ice-design/blocks/EntryCard/package.json @@ -0,0 +1,55 @@ +{ + "name": "@icedesign/entry-card-block", + "version": "0.1.0", + "description": "", + "main": "lib/index.js", + "files": [ + "src/", + "demo/", + "mock/", + "lib/" + ], + "author": { + "name": "ICE Team", + "email": "ice-admin@alibaba-inc.com" + }, + "repository": { + "type": "git", + "url": "https://github.com/alibaba/ice" + }, + "license": "MIT", + "keywords": [ + "ice", + "ice-block" + ], + "dependencies": { + "@icedesign/base": "^0.1.0", + "@icedesign/card": "^0.1.0", + "prop-types": "^15.5.8" + }, + "devDependencies": { + "@icedesign/demo-layout": "^0.1.0", + "@icedesign/skin": "^0.1.2", + "babel-eslint": "^8.0.3", + "eslint": "^4.13.1", + "eslint-config-airbnb": "^16.1.0", + "eslint-plugin-babel": "^4.1.1", + "eslint-plugin-import": "^2.8.0", + "eslint-plugin-jsx-a11y": "^6.0.3", + "eslint-plugin-react": "^7.5.1" + }, + "blockConfig": { + "name": "entry-card", + "description": "入口列表卡片", + "chinese": "入口列表卡片", + "category": "list", + "snapshot": "https://img.alicdn.com/tfs/TB1RSAIif6H8KJjy0FjXXaXepXa-1102-262.png", + "sketchURL": "", + "icelandURL": "", + "themePackage": "@icedesign/skin" + }, + "scripts": { + "lint": "eslint . --ext '.js,.jsx' --fix", + "prepublish": "npm run lint" + } +} diff --git a/templates/ice-design/blocks/EntryCard/src/EntryCard.jsx b/templates/ice-design/blocks/EntryCard/src/EntryCard.jsx new file mode 100644 index 0000000000..afdc26435a --- /dev/null +++ b/templates/ice-design/blocks/EntryCard/src/EntryCard.jsx @@ -0,0 +1,87 @@ +import React, { Component } from 'react'; +import IceCard from '@icedesign/card'; +import './EntryCard.scss'; + +const list = [ + { + title: '帖子', + img: '//gw.alicdn.com/tfscom/TB1OyT.RVXXXXcpXXXXXXXXXXXX.png', + url: '//www.taobao.com', + }, + { + title: '宝贝清单', + img: '//img.alicdn.com/tfs/TB1g6cGRFXXXXa9XXXXXXXXXXXX-140-140.png', + url: '//www.taobao.com', + }, + { + title: '图片', + img: '//img.alicdn.com/tfs/TB1hJ7dRFXXXXcgXFXXXXXXXXXX-140-140.png', + url: '//www.taobao.com', + }, + { + title: '上新', + img: '//img.alicdn.com/tfs/TB196v1RFXXXXb6aXXXXXXXXXXX-140-140.png', + url: '//www.taobao.com', + }, + { + title: '短视频', + img: '//gw.alicdn.com/tfscom/TB1toY.RVXXXXcuXXXXXXXXXXXX.png', + url: '//www.taobao.com', + }, + { + title: '短视频', + img: '//gw.alicdn.com/tfscom/TB1toY.RVXXXXcuXXXXXXXXXXXX.png', + url: '//www.taobao.com', + }, +]; + +export default class EntryCard extends Component { + static displayName = 'EntryCard'; + + render() { + return ( + + {list.map((item, index) => { + return ( + + ); + })} + + ); + } +} + +const styles = { + item: { + display: 'flex', + flexDirection: 'column', + alignItems: 'center', + width: '70px', + margin: '10px 40px', + }, + link: { + textDecoration: 'none', + color: '#333', + }, + cover: { + width: '70px', + height: '70px', + }, + title: { + marginTop: '12px', + fontSize: '14px', + textAlign: 'center', + }, +}; diff --git a/templates/ice-design/blocks/EntryCard/src/EntryCard.scss b/templates/ice-design/blocks/EntryCard/src/EntryCard.scss new file mode 100644 index 0000000000..654aa4f2bd --- /dev/null +++ b/templates/ice-design/blocks/EntryCard/src/EntryCard.scss @@ -0,0 +1,4 @@ +@charset "UTF-8"; + +.entry-card { +} diff --git a/templates/ice-design/blocks/EntryCard/src/index.js b/templates/ice-design/blocks/EntryCard/src/index.js new file mode 100644 index 0000000000..cea15443ce --- /dev/null +++ b/templates/ice-design/blocks/EntryCard/src/index.js @@ -0,0 +1,3 @@ +import EntryCard from './EntryCard'; + +export default EntryCard; diff --git a/templates/ice-design/blocks/FailureDetail/.editorconfig b/templates/ice-design/blocks/FailureDetail/.editorconfig new file mode 100644 index 0000000000..22ef5ace54 --- /dev/null +++ b/templates/ice-design/blocks/FailureDetail/.editorconfig @@ -0,0 +1,16 @@ +# http://editorconfig.org +root = true + +[*] +indent_style = space +indent_size = 2 +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false + +[makefile] +indent_style = tab +indent_size = 4 diff --git a/templates/ice-design/blocks/FailureDetail/.eslintignore b/templates/ice-design/blocks/FailureDetail/.eslintignore new file mode 100644 index 0000000000..3b21308fc7 --- /dev/null +++ b/templates/ice-design/blocks/FailureDetail/.eslintignore @@ -0,0 +1,12 @@ +# 忽略目录 +build/ +tests/ +demo/ +lib/ + +# node 覆盖率文件 +coverage/ + +# 忽略文件 +**/*-min.js +**/*.min.js \ No newline at end of file diff --git a/templates/ice-design/blocks/FailureDetail/.eslintrc b/templates/ice-design/blocks/FailureDetail/.eslintrc new file mode 100644 index 0000000000..7a4e5bac48 --- /dev/null +++ b/templates/ice-design/blocks/FailureDetail/.eslintrc @@ -0,0 +1,62 @@ +{ + "root": true, + "parser": "babel-eslint", + "extends": "eslint-config-airbnb", + "parserOptions": { + "ecmaVersion": 6, + "ecmaFeatures": { + "jsx": true, + "experimentalObjectRestSpread": true + } + }, + "env": { + "browser": true + }, + "plugins": [ + "react", + "babel" + ], + "rules": { + "react/forbid-prop-types": 0, + "jsx-a11y/label-has-for": 0, + "jsx-a11y/no-static-element-interactions": 0, + "jsx-a11y/anchor-has-content": 0, + "jsx-a11y/click-events-have-key-events": 0, + "jsx-a11y/anchor-is-valid": 0, + "react/no-array-index-key": 0, + "func-names": 0, + "arrow-body-style": 0, + "no-use-before-define": 0, + "react/sort-comp": 0, + "react/prop-types": 0, + "react/jsx-first-prop-new-line": 0, + "react/jsx-filename-extension": [ + 1, + { + "extensions": [ + ".js", + ".jsx" + ] + } + ], + "import/extensions": 0, + "import/no-unresolved": 0, + "import/no-extraneous-dependencies": 0, + "prefer-destructuring": 0, + "no-param-reassign": 0, + "no-return-assign": 0, + "max-len": 0, + "consistent-return": 0, + "no-redeclare": 0, + "react/require-extension": 0, + "react/no-danger": 0, + "comma-dangle": [ + "error", + "always-multiline" + ], + "function-paren-newline": 0, + "object-curly-newline": 0, + "no-restricted-globals": 0, + "react/prefer-stateless-function": 0 + } +} diff --git a/templates/ice-design/blocks/FailureDetail/.gitignore b/templates/ice-design/blocks/FailureDetail/.gitignore new file mode 100644 index 0000000000..cc45d6fb3c --- /dev/null +++ b/templates/ice-design/blocks/FailureDetail/.gitignore @@ -0,0 +1,13 @@ + +*.swp +*.dia~ +.idea/ +.DS_Store + +npm-debug.log +yarn-error.log +node_modules/ +tmp/ + +# happypack 缓存 +.happypack diff --git a/templates/ice-design/blocks/FailureDetail/README.md b/templates/ice-design/blocks/FailureDetail/README.md new file mode 100644 index 0000000000..68fa2afa61 --- /dev/null +++ b/templates/ice-design/blocks/FailureDetail/README.md @@ -0,0 +1,12 @@ +# failure-detail + +简介:提交失败详情展示 + + + +![截图](https://gw.alicdn.com/tfs/TB15u0eisLJ8KJjy0FnXXcFDpXa-1326-824.png) + +## 更多 + +* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) +* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) diff --git a/templates/ice-design/blocks/FailureDetail/demo/index.html b/templates/ice-design/blocks/FailureDetail/demo/index.html new file mode 100644 index 0000000000..9d2d3a663d --- /dev/null +++ b/templates/ice-design/blocks/FailureDetail/demo/index.html @@ -0,0 +1,19 @@ + + + + + + + + Document + + + + +
    + + + + + + diff --git a/templates/ice-design/blocks/FailureDetail/demo/index.js b/templates/ice-design/blocks/FailureDetail/demo/index.js new file mode 100644 index 0000000000..178a766115 --- /dev/null +++ b/templates/ice-design/blocks/FailureDetail/demo/index.js @@ -0,0 +1,19 @@ +import React, {Component} from 'react'; +import {render} from 'react-dom'; + +// 载入默认全局样式 normalize 、.clearfix 和一些 mixin 方法等 +import '@icedesign/base/lib/_components/@alife/next-core/lib/index.scss'; + +import DemoLayout from '@icedesign/demo-layout'; +import Block from '../src'; + +const props = { + // ... +}; + +render( + + + , + document.querySelector('#mountNode') +); diff --git a/templates/ice-design/blocks/FailureDetail/lib/FailureDetail.js b/templates/ice-design/blocks/FailureDetail/lib/FailureDetail.js new file mode 100644 index 0000000000..e89357bf1f --- /dev/null +++ b/templates/ice-design/blocks/FailureDetail/lib/FailureDetail.js @@ -0,0 +1,107 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + +var _react = require('react'); + +var _react2 = _interopRequireDefault(_react); + +var _iceCard = require('@ali/ice-card'); + +var _iceCard2 = _interopRequireDefault(_iceCard); + +var _next = require('@alife/next'); + +require('./FailureDetail.scss'); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } + +var FailureDetail = function (_Component) { + _inherits(FailureDetail, _Component); + + function FailureDetail(props) { + _classCallCheck(this, FailureDetail); + + var _this = _possibleConstructorReturn(this, (FailureDetail.__proto__ || Object.getPrototypeOf(FailureDetail)).call(this, props)); + + _this.state = {}; + return _this; + } + + // ICE: React Component 的生命周期 + // http://ice.alibaba-inc.com/docs/guide/intro-react#React-组件的生命周期 + + + _createClass(FailureDetail, [{ + key: 'componentWillMount', + value: function componentWillMount() {} + }, { + key: 'componentDidMount', + value: function componentDidMount() {} + }, { + key: 'componentWillReceiveProps', + value: function componentWillReceiveProps(nextProps, nextContext) {} + }, { + key: 'shouldComponentUpdate', + value: function shouldComponentUpdate(nextProps, nextState) { + return true; + } + }, { + key: 'componentWillUnmount', + value: function componentWillUnmount() {} + }, { + key: 'render', + value: function render() { + return _react2.default.createElement( + 'div', + { className: 'failure-detail' }, + _react2.default.createElement( + _iceCard2.default, + { style: { padding: '80px 40px' } }, + _react2.default.createElement( + 'div', + { className: 'success-detail-head' }, + _react2.default.createElement('img', { src: 'https://img.alicdn.com/tfs/TB1LUMhhY_I8KJjy1XaXXbsxpXa-156-156.png' }), + _react2.default.createElement( + 'h3', + { className: 'title' }, + '\u63D0\u4EA4\u5931\u8D25' + ) + ), + _react2.default.createElement( + 'p', + { className: 'summary' }, + '\u63D0\u4F9B\u4FE1\u606F\u4E0D\u7B26\u5408\u8981\u6C42\uFF0C\u8BF7\u91CD\u65B0\u63D0\u4EA4' + ), + _react2.default.createElement( + 'p', + { className: 'descrpiton' }, + '\u5982\u679C\u6709\u66F4\u591A\u7EC6\u8282\u9700\u8981\u5C55\u793A\uFF0C\u53EF\u4EE5\u8865\u5145\u5728\u8FD9\u91CC\uFF0C\u4E00\u4E9B\u76F8\u5173\u7684\u4ECB\u7ECD\u548C\u63CF\u8FF0' + ), + _react2.default.createElement( + 'a', + { href: '/', className: 'back-to-link' }, + '\u8FD4\u56DE\u4FEE\u6539' + ) + ) + ); + } + }]); + + return FailureDetail; +}(_react.Component); + +FailureDetail.displayName = 'FailureDetail'; +FailureDetail.propTypes = {}; +FailureDetail.defaultProps = {}; +exports.default = FailureDetail; \ No newline at end of file diff --git a/templates/ice-design/blocks/FailureDetail/lib/FailureDetail.scss b/templates/ice-design/blocks/FailureDetail/lib/FailureDetail.scss new file mode 100644 index 0000000000..6080636c6d --- /dev/null +++ b/templates/ice-design/blocks/FailureDetail/lib/FailureDetail.scss @@ -0,0 +1,35 @@ +@charset "UTF-8"; + +.failure-detail { + text-align: center; + .success-detail-head { + position: relative; + img { + width: 40px; + height: 40px; + } + .title { + margin: 0; + font-weight: bold; + } + } + .summary, + .descrpiton { + font-size: 14px; + color: #666; + } + .summary { + margin-bottom: 40px; + } + .back-to-link { + display: inline-block; + margin-top: 80px; + height: 28px; + padding: 0 16px; + font-size: 14px; + line-height: 26px; + color: #fff; + border-radius: 50px; + background-color: #3080fe; + } +} diff --git a/templates/ice-design/blocks/FailureDetail/lib/index.js b/templates/ice-design/blocks/FailureDetail/lib/index.js new file mode 100644 index 0000000000..b66b0b76c4 --- /dev/null +++ b/templates/ice-design/blocks/FailureDetail/lib/index.js @@ -0,0 +1,13 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _FailureDetail = require('./FailureDetail'); + +var _FailureDetail2 = _interopRequireDefault(_FailureDetail); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +exports.default = _FailureDetail2.default; \ No newline at end of file diff --git a/templates/ice-design/blocks/FailureDetail/mock/api.json b/templates/ice-design/blocks/FailureDetail/mock/api.json new file mode 100644 index 0000000000..e706430232 --- /dev/null +++ b/templates/ice-design/blocks/FailureDetail/mock/api.json @@ -0,0 +1,4 @@ +{ + "status": "success", + "data": {} +} diff --git a/templates/ice-design/blocks/FailureDetail/package.json b/templates/ice-design/blocks/FailureDetail/package.json new file mode 100644 index 0000000000..7613672588 --- /dev/null +++ b/templates/ice-design/blocks/FailureDetail/package.json @@ -0,0 +1,51 @@ +{ + "name": "@icedesign/failure-detail-block", + "version": "0.1.0", + "description": "", + "files": [ + "src/", + "demo/", + "lib/", + "mock/" + ], + "author": { + "name": "ICE Team", + "email": "ice-admin@alibaba-inc.com" + }, + "repository": { + "type": "git", + "url": "https://github.com/alibaba/ice" + }, + "license": "MIT", + "keywords": [ + "ice", + "ice-block" + ], + "dependencies": { + "prop-types": "^15.5.8", + "@icedesign/base": "^0.1.0", + "@icedesign/card": "^0.1.0" + }, + "devDependencies": { + "babel-eslint": "^8.0.3", + "eslint": "^4.13.1", + "eslint-plugin-babel": "^4.1.1", + "eslint-plugin-react": "^7.5.1", + "@icedesign/demo-layout": "^0.1.0", + "eslint-plugin-import": "^2.8.0", + "eslint-config-airbnb": "^16.1.0", + "eslint-plugin-jsx-a11y": "^6.0.3", + "@icedesign/skin": "^0.1.2" + }, + "blockConfig": { + "name": "failure-detail", + "description": "提交失败详情展示", + "chinese": "提交失败详情展示", + "category": "info-display", + "snapshot": "https://gw.alicdn.com/tfs/TB15u0eisLJ8KJjy0FnXXcFDpXa-1326-824.png", + "sketchURL": "", + "icelandURL": "", + "themePackage": "@icedesign/skin" + }, + "scripts": {} +} diff --git a/templates/ice-design/blocks/FailureDetail/src/FailureDetail.jsx b/templates/ice-design/blocks/FailureDetail/src/FailureDetail.jsx new file mode 100644 index 0000000000..c670ef3d7b --- /dev/null +++ b/templates/ice-design/blocks/FailureDetail/src/FailureDetail.jsx @@ -0,0 +1,86 @@ +'use strict'; + +import React, { Component } from 'react'; +import IceCard from '@icedesign/card'; +import { Button } from '@icedesign/base'; +import './FailureDetail.scss'; + +export default class FailureDetail extends Component { + static displayName = 'FailureDetail'; + + static propTypes = {}; + + static defaultProps = {}; + + constructor(props) { + super(props); + this.state = {}; + } + + // ICE: React Component 的生命周期 + // http://ice.alibaba-inc.com/docs/guide/intro-react#React-组件的生命周期 + componentWillMount() {} + + componentDidMount() {} + + componentWillReceiveProps(nextProps, nextContext) {} + + shouldComponentUpdate(nextProps, nextState) { + return true; + } + + componentWillUnmount() {} + + render() { + return ( +
    + +
    + +

    提交失败

    +
    +

    提供信息不符合要求,请重新提交

    +

    + 如果有更多细节需要展示,可以补充在这里,一些相关的介绍和描述 +

    + + 返回修改 + +
    +
    + ); + } +} + +const styles = { + failureDetail: { textAlign: 'center' }, + img: { + width: '40px', + height: '40px' + }, + successDetailHead: { + position: 'relative' + }, + title: { margin: '0', fontWeight: 'bold' }, + summary: { + marginBottom: '40px', + fontSize: '14px', + color: '#666' + }, + descrpiton: { fontSize: '14px', color: '#666' }, + backToLink: { + display: 'inline-block', + marginTop: '80px', + height: '28px', + padding: '0 16px', + fontSize: '14px', + lineHeight: '26px', + color: '#fff', + borderRadius: '50px', + backgroundColor: '#3080fe' + }, + card: { padding: '80px 40px' } +}; diff --git a/templates/ice-design/blocks/FailureDetail/src/FailureDetail.scss b/templates/ice-design/blocks/FailureDetail/src/FailureDetail.scss new file mode 100644 index 0000000000..38e62b1d47 --- /dev/null +++ b/templates/ice-design/blocks/FailureDetail/src/FailureDetail.scss @@ -0,0 +1,4 @@ +@charset "UTF-8"; + +.failure-detail { +} diff --git a/templates/ice-design/blocks/FailureDetail/src/index.js b/templates/ice-design/blocks/FailureDetail/src/index.js new file mode 100644 index 0000000000..586c7a1e04 --- /dev/null +++ b/templates/ice-design/blocks/FailureDetail/src/index.js @@ -0,0 +1,3 @@ +import FailureDetail from './FailureDetail'; + +export default FailureDetail; diff --git a/templates/ice-design/blocks/FeatureDisplay/.editorconfig b/templates/ice-design/blocks/FeatureDisplay/.editorconfig new file mode 100644 index 0000000000..22ef5ace54 --- /dev/null +++ b/templates/ice-design/blocks/FeatureDisplay/.editorconfig @@ -0,0 +1,16 @@ +# http://editorconfig.org +root = true + +[*] +indent_style = space +indent_size = 2 +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false + +[makefile] +indent_style = tab +indent_size = 4 diff --git a/templates/ice-design/blocks/FeatureDisplay/.eslintignore b/templates/ice-design/blocks/FeatureDisplay/.eslintignore new file mode 100644 index 0000000000..3b21308fc7 --- /dev/null +++ b/templates/ice-design/blocks/FeatureDisplay/.eslintignore @@ -0,0 +1,12 @@ +# 忽略目录 +build/ +tests/ +demo/ +lib/ + +# node 覆盖率文件 +coverage/ + +# 忽略文件 +**/*-min.js +**/*.min.js \ No newline at end of file diff --git a/templates/ice-design/blocks/FeatureDisplay/.eslintrc b/templates/ice-design/blocks/FeatureDisplay/.eslintrc new file mode 100644 index 0000000000..7a4e5bac48 --- /dev/null +++ b/templates/ice-design/blocks/FeatureDisplay/.eslintrc @@ -0,0 +1,62 @@ +{ + "root": true, + "parser": "babel-eslint", + "extends": "eslint-config-airbnb", + "parserOptions": { + "ecmaVersion": 6, + "ecmaFeatures": { + "jsx": true, + "experimentalObjectRestSpread": true + } + }, + "env": { + "browser": true + }, + "plugins": [ + "react", + "babel" + ], + "rules": { + "react/forbid-prop-types": 0, + "jsx-a11y/label-has-for": 0, + "jsx-a11y/no-static-element-interactions": 0, + "jsx-a11y/anchor-has-content": 0, + "jsx-a11y/click-events-have-key-events": 0, + "jsx-a11y/anchor-is-valid": 0, + "react/no-array-index-key": 0, + "func-names": 0, + "arrow-body-style": 0, + "no-use-before-define": 0, + "react/sort-comp": 0, + "react/prop-types": 0, + "react/jsx-first-prop-new-line": 0, + "react/jsx-filename-extension": [ + 1, + { + "extensions": [ + ".js", + ".jsx" + ] + } + ], + "import/extensions": 0, + "import/no-unresolved": 0, + "import/no-extraneous-dependencies": 0, + "prefer-destructuring": 0, + "no-param-reassign": 0, + "no-return-assign": 0, + "max-len": 0, + "consistent-return": 0, + "no-redeclare": 0, + "react/require-extension": 0, + "react/no-danger": 0, + "comma-dangle": [ + "error", + "always-multiline" + ], + "function-paren-newline": 0, + "object-curly-newline": 0, + "no-restricted-globals": 0, + "react/prefer-stateless-function": 0 + } +} diff --git a/templates/ice-design/blocks/FeatureDisplay/.gitignore b/templates/ice-design/blocks/FeatureDisplay/.gitignore new file mode 100644 index 0000000000..cc45d6fb3c --- /dev/null +++ b/templates/ice-design/blocks/FeatureDisplay/.gitignore @@ -0,0 +1,13 @@ + +*.swp +*.dia~ +.idea/ +.DS_Store + +npm-debug.log +yarn-error.log +node_modules/ +tmp/ + +# happypack 缓存 +.happypack diff --git a/templates/ice-design/blocks/FeatureDisplay/README.md b/templates/ice-design/blocks/FeatureDisplay/README.md new file mode 100644 index 0000000000..ccee61983c --- /dev/null +++ b/templates/ice-design/blocks/FeatureDisplay/README.md @@ -0,0 +1,10 @@ +# feature-display + +简介:功能特点展示 + +![截图](https://img.alicdn.com/tfs/TB1W3vQi3vD8KJjy0FlXXagBFXa-1914-1522.png) + +## 更多 + +* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) +* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) diff --git a/templates/ice-design/blocks/FeatureDisplay/demo/index.html b/templates/ice-design/blocks/FeatureDisplay/demo/index.html new file mode 100644 index 0000000000..9d2d3a663d --- /dev/null +++ b/templates/ice-design/blocks/FeatureDisplay/demo/index.html @@ -0,0 +1,19 @@ + + + + + + + + Document + + + + +
    + + + + + + diff --git a/templates/ice-design/blocks/FeatureDisplay/demo/index.js b/templates/ice-design/blocks/FeatureDisplay/demo/index.js new file mode 100644 index 0000000000..178a766115 --- /dev/null +++ b/templates/ice-design/blocks/FeatureDisplay/demo/index.js @@ -0,0 +1,19 @@ +import React, {Component} from 'react'; +import {render} from 'react-dom'; + +// 载入默认全局样式 normalize 、.clearfix 和一些 mixin 方法等 +import '@icedesign/base/lib/_components/@alife/next-core/lib/index.scss'; + +import DemoLayout from '@icedesign/demo-layout'; +import Block from '../src'; + +const props = { + // ... +}; + +render( + + + , + document.querySelector('#mountNode') +); diff --git a/templates/ice-design/blocks/FeatureDisplay/mock/api.json b/templates/ice-design/blocks/FeatureDisplay/mock/api.json new file mode 100644 index 0000000000..e706430232 --- /dev/null +++ b/templates/ice-design/blocks/FeatureDisplay/mock/api.json @@ -0,0 +1,4 @@ +{ + "status": "success", + "data": {} +} diff --git a/templates/ice-design/blocks/FeatureDisplay/package.json b/templates/ice-design/blocks/FeatureDisplay/package.json new file mode 100644 index 0000000000..4b43ec2051 --- /dev/null +++ b/templates/ice-design/blocks/FeatureDisplay/package.json @@ -0,0 +1,51 @@ +{ + "name": "@icedesign/feature-display-block", + "version": "0.1.0", + "description": "", + "files": [ + "src/", + "demo/", + "lib/", + "mock/" + ], + "author": { + "name": "ICE Team", + "email": "ice-admin@alibaba-inc.com" + }, + "repository": { + "type": "git", + "url": "https://github.com/alibaba/ice" + }, + "license": "MIT", + "keywords": [ + "ice", + "ice-block" + ], + "dependencies": { + "prop-types": "^15.5.8", + "@icedesign/base": "^0.1.0", + "@icedesign/card": "^0.1.0" + }, + "devDependencies": { + "babel-eslint": "^8.0.3", + "eslint": "^4.13.1", + "eslint-plugin-babel": "^4.1.1", + "eslint-plugin-react": "^7.5.1", + "@icedesign/demo-layout": "^0.1.0", + "eslint-plugin-import": "^2.8.0", + "eslint-config-airbnb": "^16.1.0", + "eslint-plugin-jsx-a11y": "^6.0.3", + "@icedesign/skin": "^0.1.2" + }, + "blockConfig": { + "name": "feature-display", + "description": "", + "chinese": "功能特点展示", + "category": "info-display", + "snapshot": "https://img.alicdn.com/tfs/TB1W3vQi3vD8KJjy0FlXXagBFXa-1914-1522.png", + "sketchURL": "", + "icelandURL": "", + "themePackage": "@icedesign/skin" + }, + "scripts": {} +} diff --git a/templates/ice-design/blocks/FeatureDisplay/src/FeatureDisplay.jsx b/templates/ice-design/blocks/FeatureDisplay/src/FeatureDisplay.jsx new file mode 100644 index 0000000000..c85af026d4 --- /dev/null +++ b/templates/ice-design/blocks/FeatureDisplay/src/FeatureDisplay.jsx @@ -0,0 +1,105 @@ +'use strict'; + +import React, { Component } from 'react'; +import PropTypes from 'prop-types'; +import IceCard from '@icedesign/card'; +import './FeatureDisplay.scss'; + +const data = [ + { + title: '特点1', + description: + '特点描述文案特点描述文案特点描述文案特点描述文案特点描述文案特点描述文案特点描述文案', + imgUrl: 'https://img.alicdn.com/tfs/TB1RBTKi4rI8KJjy0FpXXb5hVXa-456-456.png' + }, + { + title: '特点2', + description: + '特点描述文案特点描述文案特点描述文案特点描述文案特点描述文案特点描述文案特点描述文案', + imgUrl: 'https://img.alicdn.com/tfs/TB1LN_Ai9_I8KJjy0FoXXaFnVXa-450-453.png' + }, + { + title: '特点3', + description: + '特点描述文案特点描述文案特点描述文案特点描述文案特点描述文案特点描述文案特点描述文案', + imgUrl: 'https://img.alicdn.com/tfs/TB1K3JmgOqAXuNjy1XdXXaYcVXa-450-450.png' + }, + { + title: '特点4', + description: + '特点描述文案特点描述文案特点描述文案特点描述文案特点描述文案特点描述文案特点描述文案', + imgUrl: 'https://img.alicdn.com/tfs/TB124gfiY_I8KJjy1XaXXbsxpXa-450-453.png' + }, + { + title: '特点5', + description: + '特点描述文案特点描述文案特点描述文案特点描述文案特点描述文案特点描述文案特点描述文案', + imgUrl: 'https://img.alicdn.com/tfs/TB1s4T4i2DH8KJjy1XcXXcpdXXa-450-450.png' + }, + { + title: '特点6', + description: + '特点描述文案特点描述文案特点描述文案特点描述文案特点描述文案特点描述文案特点描述文案', + imgUrl: 'https://img.alicdn.com/tfs/TB1oEe3i8fH8KJjy1XbXXbLdXXa-453-453.png' + } +]; + +export default class FeatureDisplay extends Component { + static displayName = 'FeatureDisplay'; + + static propTypes = {}; + + static defaultProps = {}; + + constructor(props) { + super(props); + this.state = {}; + } + + // ICE: React Component 的生命周期 + // http://ice.alibaba-inc.com/docs/guide/intro-react#React-组件的生命周期 + componentWillMount() {} + + componentDidMount() {} + + componentWillReceiveProps(nextProps, nextContext) {} + + shouldComponentUpdate(nextProps, nextState) { + return true; + } + + componentWillUnmount() {} + + render() { + return ( +
    + +
    + {data.map((item, index) => { + return ( +
    + +

    {item.title}

    +

    {item.description}

    +
    + ); + })} +
    +
    +
    + ); + } +} + +const styles = { + items: { display: 'flex', flexWrap: 'wrap' }, + item: { + width: '33%', + textAlign: 'center', + padding: '0 30px', + margin: '40px 0' + }, + title: { fontWeight: 'bold', fontSize: '20px' }, + image: { width: '150px', height: '150px', borderRadius: '50%' }, + description: { fontSize: '13px', lineHeight: '22px' } +}; diff --git a/templates/ice-design/blocks/FeatureDisplay/src/FeatureDisplay.scss b/templates/ice-design/blocks/FeatureDisplay/src/FeatureDisplay.scss new file mode 100644 index 0000000000..db131bd61a --- /dev/null +++ b/templates/ice-design/blocks/FeatureDisplay/src/FeatureDisplay.scss @@ -0,0 +1,5 @@ +@charset "UTF-8"; + +.feature-display { + +} diff --git a/templates/ice-design/blocks/FeatureDisplay/src/index.js b/templates/ice-design/blocks/FeatureDisplay/src/index.js new file mode 100644 index 0000000000..6d870e25fb --- /dev/null +++ b/templates/ice-design/blocks/FeatureDisplay/src/index.js @@ -0,0 +1,3 @@ +import FeatureDisplay from './FeatureDisplay'; + +export default FeatureDisplay; diff --git a/templates/ice-design/blocks/FeedList/.editorconfig b/templates/ice-design/blocks/FeedList/.editorconfig new file mode 100644 index 0000000000..22ef5ace54 --- /dev/null +++ b/templates/ice-design/blocks/FeedList/.editorconfig @@ -0,0 +1,16 @@ +# http://editorconfig.org +root = true + +[*] +indent_style = space +indent_size = 2 +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false + +[makefile] +indent_style = tab +indent_size = 4 diff --git a/templates/ice-design/blocks/FeedList/.eslintignore b/templates/ice-design/blocks/FeedList/.eslintignore new file mode 100644 index 0000000000..3b21308fc7 --- /dev/null +++ b/templates/ice-design/blocks/FeedList/.eslintignore @@ -0,0 +1,12 @@ +# 忽略目录 +build/ +tests/ +demo/ +lib/ + +# node 覆盖率文件 +coverage/ + +# 忽略文件 +**/*-min.js +**/*.min.js \ No newline at end of file diff --git a/templates/ice-design/blocks/FeedList/.eslintrc b/templates/ice-design/blocks/FeedList/.eslintrc new file mode 100644 index 0000000000..7a4e5bac48 --- /dev/null +++ b/templates/ice-design/blocks/FeedList/.eslintrc @@ -0,0 +1,62 @@ +{ + "root": true, + "parser": "babel-eslint", + "extends": "eslint-config-airbnb", + "parserOptions": { + "ecmaVersion": 6, + "ecmaFeatures": { + "jsx": true, + "experimentalObjectRestSpread": true + } + }, + "env": { + "browser": true + }, + "plugins": [ + "react", + "babel" + ], + "rules": { + "react/forbid-prop-types": 0, + "jsx-a11y/label-has-for": 0, + "jsx-a11y/no-static-element-interactions": 0, + "jsx-a11y/anchor-has-content": 0, + "jsx-a11y/click-events-have-key-events": 0, + "jsx-a11y/anchor-is-valid": 0, + "react/no-array-index-key": 0, + "func-names": 0, + "arrow-body-style": 0, + "no-use-before-define": 0, + "react/sort-comp": 0, + "react/prop-types": 0, + "react/jsx-first-prop-new-line": 0, + "react/jsx-filename-extension": [ + 1, + { + "extensions": [ + ".js", + ".jsx" + ] + } + ], + "import/extensions": 0, + "import/no-unresolved": 0, + "import/no-extraneous-dependencies": 0, + "prefer-destructuring": 0, + "no-param-reassign": 0, + "no-return-assign": 0, + "max-len": 0, + "consistent-return": 0, + "no-redeclare": 0, + "react/require-extension": 0, + "react/no-danger": 0, + "comma-dangle": [ + "error", + "always-multiline" + ], + "function-paren-newline": 0, + "object-curly-newline": 0, + "no-restricted-globals": 0, + "react/prefer-stateless-function": 0 + } +} diff --git a/templates/ice-design/blocks/FeedList/.gitignore b/templates/ice-design/blocks/FeedList/.gitignore new file mode 100644 index 0000000000..cc45d6fb3c --- /dev/null +++ b/templates/ice-design/blocks/FeedList/.gitignore @@ -0,0 +1,13 @@ + +*.swp +*.dia~ +.idea/ +.DS_Store + +npm-debug.log +yarn-error.log +node_modules/ +tmp/ + +# happypack 缓存 +.happypack diff --git a/templates/ice-design/blocks/FeedList/README.md b/templates/ice-design/blocks/FeedList/README.md new file mode 100644 index 0000000000..8119441329 --- /dev/null +++ b/templates/ice-design/blocks/FeedList/README.md @@ -0,0 +1,12 @@ +# feed-list + +简介:Feed 消息列表 + +Feed 消息列表 + +![截图](https://img.alicdn.com/tfs/TB1jqXwjx6I8KJjy0FgXXXXzVXa-852-1098.png) + +## 更多 + +* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) +* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) diff --git a/templates/ice-design/blocks/FeedList/demo/index.html b/templates/ice-design/blocks/FeedList/demo/index.html new file mode 100644 index 0000000000..9d2d3a663d --- /dev/null +++ b/templates/ice-design/blocks/FeedList/demo/index.html @@ -0,0 +1,19 @@ + + + + + + + + Document + + + + +
    + + + + + + diff --git a/templates/ice-design/blocks/FeedList/demo/index.js b/templates/ice-design/blocks/FeedList/demo/index.js new file mode 100644 index 0000000000..178a766115 --- /dev/null +++ b/templates/ice-design/blocks/FeedList/demo/index.js @@ -0,0 +1,19 @@ +import React, {Component} from 'react'; +import {render} from 'react-dom'; + +// 载入默认全局样式 normalize 、.clearfix 和一些 mixin 方法等 +import '@icedesign/base/lib/_components/@alife/next-core/lib/index.scss'; + +import DemoLayout from '@icedesign/demo-layout'; +import Block from '../src'; + +const props = { + // ... +}; + +render( + + + , + document.querySelector('#mountNode') +); diff --git a/templates/ice-design/blocks/FeedList/mock/api.json b/templates/ice-design/blocks/FeedList/mock/api.json new file mode 100644 index 0000000000..e706430232 --- /dev/null +++ b/templates/ice-design/blocks/FeedList/mock/api.json @@ -0,0 +1,4 @@ +{ + "status": "success", + "data": {} +} diff --git a/templates/ice-design/blocks/FeedList/package.json b/templates/ice-design/blocks/FeedList/package.json new file mode 100644 index 0000000000..90ac6c3cec --- /dev/null +++ b/templates/ice-design/blocks/FeedList/package.json @@ -0,0 +1,54 @@ +{ + "name": "@icedesign/feed-list-block", + "version": "0.1.0", + "description": " Feed 消息列表", + "files": [ + "src/", + "demo/", + "lib/", + "mock/" + ], + "scripts": {}, + "author": { + "name": "ICE Team", + "email": "ice-admin@alibaba-inc.com" + }, + "repository": { + "type": "git", + "url": "https://github.com/alibaba/ice" + }, + "license": "MIT", + "keywords": [ + "ice", + "ice-block" + ], + "dependencies": { + "@icedesign/base": "^0.1.0", + "prop-types": "^15.5.8", + "@icedesign/card": "^0.1.0" + }, + "devDependencies": { + "@icedesign/skin": "^0.1.2", + "babel-eslint": "^8.0.3", + "eslint-plugin-react": "^7.5.1", + "react": "15.x", + "react-copy-to-clipboard": "^4.2.3", + "react-dom": "15.x", + "eslint": "^4.13.1", + "eslint-plugin-babel": "^4.1.1", + "eslint-plugin-import": "^2.8.0", + "eslint-config-airbnb": "^16.1.0", + "eslint-plugin-jsx-a11y": "^6.0.3", + "@icedesign/demo-layout": "^0.1.0" + }, + "blockConfig": { + "name": "feed-list", + "description": " Feed 消息列表", + "chinese": "Feed 消息列表", + "category": "list", + "snapshot": "https://img.alicdn.com/tfs/TB1jqXwjx6I8KJjy0FgXXXXzVXa-852-1098.png", + "sketchURL": "", + "icelandURL": "", + "themePackage": "@icedesign/skin" + } +} diff --git a/templates/ice-design/blocks/FeedList/src/FeedList.jsx b/templates/ice-design/blocks/FeedList/src/FeedList.jsx new file mode 100644 index 0000000000..319f9b340b --- /dev/null +++ b/templates/ice-design/blocks/FeedList/src/FeedList.jsx @@ -0,0 +1,135 @@ +import React, { Component } from 'react'; +import IceCard from '@icedesign/card'; +import './FeedList.scss'; + +const dataSource = [ + { + nickName: '某某', + datetime: '2分钟前', + avatar: 'https://gw.alicdn.com/tfs/TB1h_tjbyqAXuNjy1XdXXaYcVXa-333-415.png', + message: '刚刚完成了智能化搭建课程的学习' + }, + { + nickName: '某某', + datetime: '3分钟前', + avatar: 'https://gw.alicdn.com/tfs/TB1h_tjbyqAXuNjy1XdXXaYcVXa-333-415.png', + message: + '这里展示状态的描述简介,最多可以展示两行的内容,超出的内容可以用省略号代替' + }, + { + nickName: '某某', + datetime: '5分钟前', + avatar: 'https://gw.alicdn.com/tfs/TB1h_tjbyqAXuNjy1XdXXaYcVXa-333-415.png', + message: '刚刚完成了智能化搭建课程的学习' + }, + { + nickName: '某某', + datetime: '1天前', + avatar: 'https://gw.alicdn.com/tfs/TB1h_tjbyqAXuNjy1XdXXaYcVXa-333-415.png', + message: '刚刚完成了智能化搭建课程的学习' + }, + { + nickName: '某某', + datetime: '2天前', + avatar: 'https://gw.alicdn.com/tfs/TB1h_tjbyqAXuNjy1XdXXaYcVXa-333-415.png', + message: + '刚刚完成了Sketch图形设计课程的学习,课程内容包括组件绘制,画布编辑等' + } +]; + +export default class FeedList extends Component { + static displayName = 'FeedList'; + + static propTypes = {}; + + static defaultProps = {}; + + constructor(props) { + super(props); + this.state = {}; + } + + // ICE: React Component 的生命周期 + // http://ice.alibaba-inc.com/docs/guide/intro-react#React-组件的生命周期 + componentWillMount() {} + + componentDidMount() {} + + componentWillUnmount() {} + renderItem = (item, idx) => { + return ( +
    +
    + + avatar + {item.nickName} 发布了一个状态 + + {item.datetime} +
    + + {item.message} + +
    + ); + }; + + render() { + return ( +
    + +
    + 朋友状态列表 + 共10条状态 +
    + {dataSource.map(this.renderItem)} + +
    +
    + ); + } +} + +const styles = { + titleRow: { + display: 'flex', + flexDirection: 'row', + justifyContent: 'space-between', + marginBottom: '15px' + }, + title: { + color: '#000', + fontSize: '14px', + display: 'inline-flex', + lineHeight: '22px' + }, + status: { color: '#999', fontSize: '12px' }, + itemRow: { + display: 'flex', + flexDirection: 'row', + justifyContent: 'space-between' + }, + avatar: { + width: '24px', + height: '24px', + borderRadius: '50%', + marginRight: '10px' + }, + item: { + display: 'flex', + flexDirection: 'column', + paddingTop: '15px', + borderBottom: '1px solid #fafafa' + }, + message: { + color: '#666', + fontSize: '14px', + paddingLeft: '34px', + width: '320px', + marginBottom: '15px', + lineHeight: '22px' + }, + allMessage: { textAlign: 'center', height: '50px', lineHeight: '50px' }, + feedList: { width: '430px' } +}; diff --git a/templates/ice-design/blocks/FeedList/src/FeedList.scss b/templates/ice-design/blocks/FeedList/src/FeedList.scss new file mode 100644 index 0000000000..da1c8985ea --- /dev/null +++ b/templates/ice-design/blocks/FeedList/src/FeedList.scss @@ -0,0 +1,4 @@ +@charset "UTF-8"; + +.feed-list { +} diff --git a/templates/ice-design/blocks/FeedList/src/index.js b/templates/ice-design/blocks/FeedList/src/index.js new file mode 100644 index 0000000000..b09398e3c5 --- /dev/null +++ b/templates/ice-design/blocks/FeedList/src/index.js @@ -0,0 +1,3 @@ +import FeedList from './FeedList'; + +export default FeedList; diff --git a/templates/ice-design/blocks/FilterList/.editorconfig b/templates/ice-design/blocks/FilterList/.editorconfig new file mode 100644 index 0000000000..22ef5ace54 --- /dev/null +++ b/templates/ice-design/blocks/FilterList/.editorconfig @@ -0,0 +1,16 @@ +# http://editorconfig.org +root = true + +[*] +indent_style = space +indent_size = 2 +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false + +[makefile] +indent_style = tab +indent_size = 4 diff --git a/templates/ice-design/blocks/FilterList/.eslintignore b/templates/ice-design/blocks/FilterList/.eslintignore new file mode 100644 index 0000000000..3b21308fc7 --- /dev/null +++ b/templates/ice-design/blocks/FilterList/.eslintignore @@ -0,0 +1,12 @@ +# 忽略目录 +build/ +tests/ +demo/ +lib/ + +# node 覆盖率文件 +coverage/ + +# 忽略文件 +**/*-min.js +**/*.min.js \ No newline at end of file diff --git a/templates/ice-design/blocks/FilterList/.eslintrc b/templates/ice-design/blocks/FilterList/.eslintrc new file mode 100644 index 0000000000..7a4e5bac48 --- /dev/null +++ b/templates/ice-design/blocks/FilterList/.eslintrc @@ -0,0 +1,62 @@ +{ + "root": true, + "parser": "babel-eslint", + "extends": "eslint-config-airbnb", + "parserOptions": { + "ecmaVersion": 6, + "ecmaFeatures": { + "jsx": true, + "experimentalObjectRestSpread": true + } + }, + "env": { + "browser": true + }, + "plugins": [ + "react", + "babel" + ], + "rules": { + "react/forbid-prop-types": 0, + "jsx-a11y/label-has-for": 0, + "jsx-a11y/no-static-element-interactions": 0, + "jsx-a11y/anchor-has-content": 0, + "jsx-a11y/click-events-have-key-events": 0, + "jsx-a11y/anchor-is-valid": 0, + "react/no-array-index-key": 0, + "func-names": 0, + "arrow-body-style": 0, + "no-use-before-define": 0, + "react/sort-comp": 0, + "react/prop-types": 0, + "react/jsx-first-prop-new-line": 0, + "react/jsx-filename-extension": [ + 1, + { + "extensions": [ + ".js", + ".jsx" + ] + } + ], + "import/extensions": 0, + "import/no-unresolved": 0, + "import/no-extraneous-dependencies": 0, + "prefer-destructuring": 0, + "no-param-reassign": 0, + "no-return-assign": 0, + "max-len": 0, + "consistent-return": 0, + "no-redeclare": 0, + "react/require-extension": 0, + "react/no-danger": 0, + "comma-dangle": [ + "error", + "always-multiline" + ], + "function-paren-newline": 0, + "object-curly-newline": 0, + "no-restricted-globals": 0, + "react/prefer-stateless-function": 0 + } +} diff --git a/templates/ice-design/blocks/FilterList/.gitignore b/templates/ice-design/blocks/FilterList/.gitignore new file mode 100644 index 0000000000..cc45d6fb3c --- /dev/null +++ b/templates/ice-design/blocks/FilterList/.gitignore @@ -0,0 +1,13 @@ + +*.swp +*.dia~ +.idea/ +.DS_Store + +npm-debug.log +yarn-error.log +node_modules/ +tmp/ + +# happypack 缓存 +.happypack diff --git a/templates/ice-design/blocks/FilterList/README.md b/templates/ice-design/blocks/FilterList/README.md new file mode 100644 index 0000000000..183e773989 --- /dev/null +++ b/templates/ice-design/blocks/FilterList/README.md @@ -0,0 +1,10 @@ +# filter-list + +简介:支持过滤的列表 + +![截图](https://img.alicdn.com/tfs/TB1iUbYilfH8KJjy1XbXXbLdXXa-2000-1154.png) + +## 更多 + +* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) +* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) diff --git a/templates/ice-design/blocks/FilterList/demo/index.html b/templates/ice-design/blocks/FilterList/demo/index.html new file mode 100644 index 0000000000..9d2d3a663d --- /dev/null +++ b/templates/ice-design/blocks/FilterList/demo/index.html @@ -0,0 +1,19 @@ + + + + + + + + Document + + + + +
    + + + + + + diff --git a/templates/ice-design/blocks/FilterList/demo/index.js b/templates/ice-design/blocks/FilterList/demo/index.js new file mode 100644 index 0000000000..4d6acd389a --- /dev/null +++ b/templates/ice-design/blocks/FilterList/demo/index.js @@ -0,0 +1,19 @@ +import React, { Component } from 'react'; +import { render } from 'react-dom'; + +// 载入默认全局样式 normalize 、.clearfix 和一些 mixin 方法等 +import '@icedesign/base/lib/_components/@alife/next-core/lib/index.scss'; + +import DemoLayout from '@icedesign/demo-layout'; +import Block from '../src'; + +const props = { + // ... +}; + +render( + + + , + document.querySelector('#mountNode') +); diff --git a/templates/ice-design/blocks/FilterList/mock/api.json b/templates/ice-design/blocks/FilterList/mock/api.json new file mode 100644 index 0000000000..e706430232 --- /dev/null +++ b/templates/ice-design/blocks/FilterList/mock/api.json @@ -0,0 +1,4 @@ +{ + "status": "success", + "data": {} +} diff --git a/templates/ice-design/blocks/FilterList/package.json b/templates/ice-design/blocks/FilterList/package.json new file mode 100644 index 0000000000..88566bb108 --- /dev/null +++ b/templates/ice-design/blocks/FilterList/package.json @@ -0,0 +1,53 @@ +{ + "name": "@icedesign/filter-list-block", + "version": "0.1.0", + "description": "", + "main": "lib/index.js", + "files": [ + "src/", + "demo/", + "lib/", + "mock/" + ], + "author": { + "name": "ICE Team", + "email": "ice-admin@alibaba-inc.com" + }, + "repository": { + "type": "git", + "url": "https://github.com/alibaba/ice" + }, + "license": "MIT", + "keywords": [ + "ice", + "ice-block" + ], + "dependencies": { + "@alife/dpl-ice-design": "^1.0.1", + "prop-types": "^15.5.8", + "@icedesign/base": "^0.1.0", + "@icedesign/card": "^0.1.0" + }, + "devDependencies": { + "babel-eslint": "^8.0.3", + "eslint": "^4.13.1", + "eslint-plugin-babel": "^4.1.1", + "eslint-plugin-react": "^7.5.1", + "@icedesign/demo-layout": "^0.1.0", + "eslint-plugin-import": "^2.8.0", + "eslint-config-airbnb": "^16.1.0", + "eslint-plugin-jsx-a11y": "^6.0.3", + "@icedesign/skin": "^0.1.2" + }, + "blockConfig": { + "name": "filter-list", + "description": "支持过滤的列表", + "chinese": "支持过滤的列表", + "category": "list", + "snapshot": "https://img.alicdn.com/tfs/TB1iUbYilfH8KJjy1XbXXbLdXXa-2000-1154.png", + "sketchURL": "", + "icelandURL": "", + "themePackage": "@icedesign/skin" + }, + "scripts": {} +} diff --git a/templates/ice-design/blocks/FilterList/src/FilterList.jsx b/templates/ice-design/blocks/FilterList/src/FilterList.jsx new file mode 100644 index 0000000000..cd1be5cd43 --- /dev/null +++ b/templates/ice-design/blocks/FilterList/src/FilterList.jsx @@ -0,0 +1,153 @@ +'use strict'; + +import React, { Component } from 'react'; +import { Button, Search } from '@icedesign/base'; +import IceCard from '@icedesign/card'; +import SingleItem from './SingleItem'; +import './FilterList.scss'; + +const dataSource = [ + { + title: '衬衫女雪纺上衣2017大纺上衣2017大纺上衣2017大', + extra: '预计佣金 ¥10', + price: '¥89', + image: + '//img.alicdn.com/bao/uploaded/i3/120976213/TB2O4nSnblmpuFjSZFlXXbdQXXa_!!120976213.jpg_240x240.jpg' + }, + { + title: '衬衫女雪纺上衣2017大纺上衣2017大纺上衣2017大', + extra: '预计佣金 ¥10', + price: '¥89', + image: + '//img.alicdn.com/bao/uploaded/i4/120976213/TB2GiVsdS0mpuFjSZPiXXbssVXa_!!120976213.jpg_240x240.jpg' + }, + { + title: '衬衫女雪纺上衣2017大纺上衣2017大纺上衣2017大', + extra: '预计佣金 ¥10', + price: '¥89', + image: + '//img.alicdn.com/bao/uploaded/i3/120976213/TB2bxHGtpXXXXXVXXXXXXXXXXXX_!!120976213.jpg_240x240.jpg' + }, + { + title: '衬衫女雪纺上衣2017大纺上衣2017大纺上衣2017大', + extra: '预计佣金 ¥10', + price: '¥89', + image: + '//img.alicdn.com/bao/uploaded/i4/120976213/TB2bEcHnXXXXXbgXXXXXXXXXXXX_!!120976213.jpg_100x100.jpg' + }, + { + title: '衬衫女雪纺上衣2017大纺上衣2017大纺上衣2017大', + extra: '预计佣金 ¥10', + price: '¥89', + image: + '//img.alicdn.com/bao/uploaded/i2/TB11DjAIFXXXXaTXFXXXXXXXXXX_!!0-item_pic.jpg_100x100.jpg' + }, + { + title: '衬衫女雪纺上衣2017大纺上衣2017大纺上衣2017大', + extra: '预计佣金 ¥10', + price: '¥89', + image: + '//img.alicdn.com/bao/uploaded/i4/TB1GiPSinJ_SKJjSZPiYXH3LpXa_M2.SS2_100x100.jpg' + } +]; + +export default class FilterList extends Component { + static displayName = 'FilterList'; + + renderItem = item => { + return ; + }; + renderItemRow = () => { + return
    {dataSource.map(this.renderItem)}
    ; + }; + + render() { + const cardStyle = { + display: 'flex', + margin: '20px' + }; + + return ( +
    + +
    + + +
    + +
    +
    + 我的商品 +
    +
    + 我的图片 +
    +
    + 我的视频 +
    +
    + +
    + + + + + + +
    +
    + + + {this.renderItemRow()} + {this.renderItemRow()} + {this.renderItemRow()} + {this.renderItemRow()} + {this.renderItemRow()} + +
    + ); + } +} + +const styles = { + filterList: {}, + selectItem: { + padding: '0 16px', + borderRight: '1px solid #ddd', + cursor: 'pointer' + }, + selectBtn: { marginRight: '10px' }, + todo0: { + margin: '0 10px 10px 10px', + display: 'flex', + flexDirection: 'row', + justifyContent: 'space-around' + }, + filterListHeaderWrapper: { padding: '20px', flexDirection: 'column', position: 'relative' }, + searchWrapper: { + position: 'absolute', + right: '20px', + top: '20px', + display: 'flex', + flexDirection: 'row' + }, + searchInput: { marginRight: '15px' }, + filterCategories: { display: 'flex', flexDirection: 'row', marginBottom: '25px' }, + filterCategoryChildren: {}, + searchResultWrapper: { flexDirection: 'column', padding: '20px 0' } +}; diff --git a/templates/ice-design/blocks/FilterList/src/FilterList.scss b/templates/ice-design/blocks/FilterList/src/FilterList.scss new file mode 100644 index 0000000000..d55a585735 --- /dev/null +++ b/templates/ice-design/blocks/FilterList/src/FilterList.scss @@ -0,0 +1,16 @@ +@charset "UTF-8"; + +.filter-list { + .select-item { + &.active, &:hover { + color: #3080fe !important; + } + &:first-child { + padding-left: 0 !important; + } + &:last-child { + padding-right: 0 !important; + border-right-width: 0 !important; + } + } +} diff --git a/templates/ice-design/blocks/FilterList/src/SingleItem/SingleItem.jsx b/templates/ice-design/blocks/FilterList/src/SingleItem/SingleItem.jsx new file mode 100644 index 0000000000..1c4ed958bd --- /dev/null +++ b/templates/ice-design/blocks/FilterList/src/SingleItem/SingleItem.jsx @@ -0,0 +1,78 @@ +import React, { Component } from 'react'; +import IceImg from '@icedesign/img'; +import './SingleItem.scss'; + +export default class SingleItem extends Component { + static displayName = 'SingleItem'; + + render() { + const { + style, + className = '', + active, + title, + image, + price, + extra + } = this.props; + return ( +
    + +
    + {title} +
    +
    + {price} +
    +
    + {extra} +
    +
    + ); + } +} diff --git a/templates/ice-design/blocks/FilterList/src/SingleItem/SingleItem.scss b/templates/ice-design/blocks/FilterList/src/SingleItem/SingleItem.scss new file mode 100644 index 0000000000..cfae9d1041 --- /dev/null +++ b/templates/ice-design/blocks/FilterList/src/SingleItem/SingleItem.scss @@ -0,0 +1,6 @@ +// SingleItem style +.single-item { + &:hover { + background-color: #f4f4f4 !important; + } +} diff --git a/templates/ice-design/blocks/FilterList/src/SingleItem/index.js b/templates/ice-design/blocks/FilterList/src/SingleItem/index.js new file mode 100644 index 0000000000..fe7cf600ef --- /dev/null +++ b/templates/ice-design/blocks/FilterList/src/SingleItem/index.js @@ -0,0 +1 @@ +export default from './SingleItem'; diff --git a/templates/ice-design/blocks/FilterList/src/index.js b/templates/ice-design/blocks/FilterList/src/index.js new file mode 100644 index 0000000000..96f9661a46 --- /dev/null +++ b/templates/ice-design/blocks/FilterList/src/index.js @@ -0,0 +1,3 @@ +import FilterList from './FilterList'; + +export default FilterList; diff --git a/templates/ice-design/blocks/FilterTable/.editorconfig b/templates/ice-design/blocks/FilterTable/.editorconfig new file mode 100644 index 0000000000..22ef5ace54 --- /dev/null +++ b/templates/ice-design/blocks/FilterTable/.editorconfig @@ -0,0 +1,16 @@ +# http://editorconfig.org +root = true + +[*] +indent_style = space +indent_size = 2 +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false + +[makefile] +indent_style = tab +indent_size = 4 diff --git a/templates/ice-design/blocks/FilterTable/.eslintignore b/templates/ice-design/blocks/FilterTable/.eslintignore new file mode 100644 index 0000000000..3b21308fc7 --- /dev/null +++ b/templates/ice-design/blocks/FilterTable/.eslintignore @@ -0,0 +1,12 @@ +# 忽略目录 +build/ +tests/ +demo/ +lib/ + +# node 覆盖率文件 +coverage/ + +# 忽略文件 +**/*-min.js +**/*.min.js \ No newline at end of file diff --git a/templates/ice-design/blocks/FilterTable/.eslintrc b/templates/ice-design/blocks/FilterTable/.eslintrc new file mode 100644 index 0000000000..7a4e5bac48 --- /dev/null +++ b/templates/ice-design/blocks/FilterTable/.eslintrc @@ -0,0 +1,62 @@ +{ + "root": true, + "parser": "babel-eslint", + "extends": "eslint-config-airbnb", + "parserOptions": { + "ecmaVersion": 6, + "ecmaFeatures": { + "jsx": true, + "experimentalObjectRestSpread": true + } + }, + "env": { + "browser": true + }, + "plugins": [ + "react", + "babel" + ], + "rules": { + "react/forbid-prop-types": 0, + "jsx-a11y/label-has-for": 0, + "jsx-a11y/no-static-element-interactions": 0, + "jsx-a11y/anchor-has-content": 0, + "jsx-a11y/click-events-have-key-events": 0, + "jsx-a11y/anchor-is-valid": 0, + "react/no-array-index-key": 0, + "func-names": 0, + "arrow-body-style": 0, + "no-use-before-define": 0, + "react/sort-comp": 0, + "react/prop-types": 0, + "react/jsx-first-prop-new-line": 0, + "react/jsx-filename-extension": [ + 1, + { + "extensions": [ + ".js", + ".jsx" + ] + } + ], + "import/extensions": 0, + "import/no-unresolved": 0, + "import/no-extraneous-dependencies": 0, + "prefer-destructuring": 0, + "no-param-reassign": 0, + "no-return-assign": 0, + "max-len": 0, + "consistent-return": 0, + "no-redeclare": 0, + "react/require-extension": 0, + "react/no-danger": 0, + "comma-dangle": [ + "error", + "always-multiline" + ], + "function-paren-newline": 0, + "object-curly-newline": 0, + "no-restricted-globals": 0, + "react/prefer-stateless-function": 0 + } +} diff --git a/templates/ice-design/blocks/FilterTable/.gitignore b/templates/ice-design/blocks/FilterTable/.gitignore new file mode 100644 index 0000000000..cc45d6fb3c --- /dev/null +++ b/templates/ice-design/blocks/FilterTable/.gitignore @@ -0,0 +1,13 @@ + +*.swp +*.dia~ +.idea/ +.DS_Store + +npm-debug.log +yarn-error.log +node_modules/ +tmp/ + +# happypack 缓存 +.happypack diff --git a/templates/ice-design/blocks/FilterTable/README.md b/templates/ice-design/blocks/FilterTable/README.md new file mode 100644 index 0000000000..06523b687c --- /dev/null +++ b/templates/ice-design/blocks/FilterTable/README.md @@ -0,0 +1,12 @@ +# filter-table + +简介:支持筛选的表格 + +附带筛选工具条的表格 + +![截图](https://img.alicdn.com/tfs/TB1kD3JinvI8KJjSspjXXcgjXXa-1926-1536.png) + +## 更多 + +* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) +* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) diff --git a/templates/ice-design/blocks/FilterTable/demo/index.html b/templates/ice-design/blocks/FilterTable/demo/index.html new file mode 100644 index 0000000000..9d2d3a663d --- /dev/null +++ b/templates/ice-design/blocks/FilterTable/demo/index.html @@ -0,0 +1,19 @@ + + + + + + + + Document + + + + +
    + + + + + + diff --git a/templates/ice-design/blocks/FilterTable/demo/index.js b/templates/ice-design/blocks/FilterTable/demo/index.js new file mode 100644 index 0000000000..92d23644de --- /dev/null +++ b/templates/ice-design/blocks/FilterTable/demo/index.js @@ -0,0 +1,14 @@ +import React, { Component } from 'react'; +import { render } from 'react-dom'; +import DemoLayout from '@icedesign/demo-layout'; +import Block from '../src'; + +const props = { + // ... +}; + +render(( + + + +), document.querySelector('#mountNode')); diff --git a/templates/ice-design/blocks/FilterTable/mock/filter-table-list.json b/templates/ice-design/blocks/FilterTable/mock/filter-table-list.json new file mode 100644 index 0000000000..5347bea249 --- /dev/null +++ b/templates/ice-design/blocks/FilterTable/mock/filter-table-list.json @@ -0,0 +1,122 @@ +{ + "status": "SUCCESS", + "data": { + "total": 100, + "pageSize": 10, + "currentPage": 1, + "list": [ + { + "id": 1, + "cover": + "//img.alicdn.com/bao/uploaded/i3/120976213/TB2O4nSnblmpuFjSZFlXXbdQXXa_!!120976213.jpg_240x240.jpg", + "title": "于momo2017秋冬新款背带裙复古格子连衣裙清新背心裙a字裙短裙子", + "url": "https://item.taobao.com/item.htm?id=558559528377", + "type": "清单", + "publishTime": "17-04-28 20:29:20", + "publishStatus": "已发布", + "pushStatus": "已推送至订阅号", + "operation": { + "edit": true + } + }, + { + "id": 2, + "cover": + "//img.alicdn.com/bao/uploaded/i4/TB1GiPSinJ_SKJjSZPiYXH3LpXa_M2.SS2_100x100.jpg", + "title": "SOTHEA 2017秋冬新款 高质感特定纱线欧美宽松马海毛羊毛毛衣", + "url": "https://item.taobao.com/item.htm?id=558559528377", + "type": "清单", + "publishTime": "17-04-28 20:29:20", + "publishStatus": "已发布", + "pushStatus": "已推送至订阅号", + "operation": { + "edit": true + } + }, + { + "id": 3, + "cover": + "//img.alicdn.com/bao/uploaded/i3/120976213/TB2O4nSnblmpuFjSZFlXXbdQXXa_!!120976213.jpg_240x240.jpg", + "title": "川岛屋 日式天然玉米皮草编碗垫锅垫隔热垫茶垫加厚餐垫GD-29", + "url": "https://item.taobao.com/item.htm?id=558559528377", + "type": "清单", + "publishTime": "17-04-28 20:29:20", + "publishStatus": "已发布", + "pushStatus": "已推送至订阅号", + "operation": { + "edit": true + } + }, + { + "id": 4, + "cover": + "//img.alicdn.com/bao/uploaded/i7/TB1QpMvk3n.PuJjSZFkYXI_lpXa_M2.SS2_100x100.jpg", + "title": "SOTHEA 2017秋冬新款 绑带腰封设计感超顺滑质感落肩铜氨丝连衣裙", + "url": "https://item.taobao.com/item.htm?id=558559528377", + "type": "清单", + "publishTime": "17-04-28 20:29:20", + "publishStatus": "已发布", + "pushStatus": "已推送至订阅号", + "operation": { + "edit": true + } + }, + { + "id": 5, + "cover": + "//img.alicdn.com/bao/uploaded/i4/120976213/TB2GiVsdS0mpuFjSZPiXXbssVXa_!!120976213.jpg_240x240.jpg", + "title": "川岛屋 日式糖果色陶瓷柄不锈钢餐具西餐牛扒刀叉勺子咖啡勺S-27", + "url": "https://item.taobao.com/item.htm?id=558559528377", + "type": "清单", + "publishTime": "17-04-28 20:29:20", + "publishStatus": "已发布", + "pushStatus": "已推送至订阅号", + "operation": { + "edit": true + } + }, + { + "id": 6, + "cover": + "//img.alicdn.com/bao/uploaded/i3/120976213/TB2bxHGtpXXXXXVXXXXXXXXXXXX_!!120976213.jpg_240x240.jpg", + "title": "日式和风深蓝素色文艺餐巾餐垫围裙锅垫隔热手套厨房桌布GD-11", + "url": "https://item.taobao.com/item.htm?id=558559528377", + "type": "清单", + "publishTime": "17-04-28 20:29:20", + "publishStatus": "已发布", + "pushStatus": "已推送至订阅号", + "operation": { + "edit": true + } + }, + { + "id": 7, + "cover": + "https://img.alicdn.com/bao/uploaded/i4/120976213/TB2bEcHnXXXXXbgXXXXXXXXXXXX_!!120976213.jpg_100x100.jpg", + "title": "川岛屋 日式雪点樱花手绘陶瓷餐具米饭碗拉面碗寿司盘子汤碗PZ-36", + "url": "https://item.taobao.com/item.htm?id=558559528377", + "type": "清单", + "publishTime": "17-04-28 20:29:20", + "publishStatus": "已发布", + "pushStatus": "已推送至订阅号", + "operation": { + "edit": true + } + }, + { + "id": 8, + "cover": + "//img.alicdn.com/bao/uploaded/i2/TB11DjAIFXXXXaTXFXXXXXXXXXX_!!0-item_pic.jpg_100x100.jpg", + "title": "川岛屋 釉下彩复古日式陶瓷盘子菜盘圆盘调味碟 米饭碗日式餐具", + "url": "https://item.taobao.com/item.htm?id=558559528377", + "type": "清单", + "publishTime": "17-04-28 20:29:20", + "publishStatus": "已发布", + "pushStatus": "已推送至订阅号", + "operation": { + "edit": true + } + } + ] + } +} diff --git a/templates/ice-design/blocks/FilterTable/package.json b/templates/ice-design/blocks/FilterTable/package.json new file mode 100644 index 0000000000..61492fbc6a --- /dev/null +++ b/templates/ice-design/blocks/FilterTable/package.json @@ -0,0 +1,55 @@ +{ + "name": "@icedesign/filter-table-block", + "version": "0.1.0", + "description": "附带筛选工具条的表格", + "files": [ + "src/", + "demo/", + "lib/", + "mock/" + ], + "author": { + "name": "ICE Team", + "email": "ice-admin@alibaba-inc.com" + }, + "repository": { + "type": "git", + "url": "https://github.com/alibaba/ice" + }, + "license": "MIT", + "keywords": [ + "ice", + "ice-block" + ], + "dependencies": { + "prop-types": "^15.5.8", + "@icedesign/base": "^0.1.0", + "@icedesign/card": "^0.1.0", + "@icedesign/data-binder": "^0.1.0", + "@icedesign/form-binder": "^0.1.0", + "@icedesign/img": "^0.1.0", + "@icedesign/label": "^0.1.0" + }, + "devDependencies": { + "babel-eslint": "^8.0.3", + "eslint": "^4.13.1", + "eslint-plugin-babel": "^4.1.1", + "eslint-plugin-react": "^7.5.1", + "@icedesign/demo-layout": "^0.1.0", + "eslint-plugin-import": "^2.8.0", + "eslint-config-airbnb": "^16.1.0", + "eslint-plugin-jsx-a11y": "^6.0.3", + "@icedesign/skin": "^0.1.2" + }, + "blockConfig": { + "name": "filter-table", + "description": "附带筛选工具条的表格", + "chinese": "支持筛选的表格", + "category": "table", + "snapshot": "https://img.alicdn.com/tfs/TB1kD3JinvI8KJjSspjXXcgjXXa-1926-1536.png", + "sketchURL": "", + "icelandURL": "", + "themePackage": "@icedesign/skin" + }, + "scripts": {} +} diff --git a/templates/ice-design/blocks/FilterTable/src/Filter/Filter.jsx b/templates/ice-design/blocks/FilterTable/src/Filter/Filter.jsx new file mode 100644 index 0000000000..ce81d6030b --- /dev/null +++ b/templates/ice-design/blocks/FilterTable/src/Filter/Filter.jsx @@ -0,0 +1,148 @@ +import React, { Component } from 'react'; +import { Input, Grid, Select, Button, DatePicker } from '@icedesign/base'; +import IceCard from '@icedesign/card'; + +// form binder 详细用法请参见官方文档 +import { + FormBinderWrapper as IceFormBinderWrapper, + FormBinder as IceFormBinder, + FormError as IceFormError +} from '@icedesign/form-binder'; + +const { Row, Col } = Grid; +const { Option } = Select; + +export default class Filter extends Component { + static displayName = 'Filter'; + + render() { + return ( + + + + + + + + + + + + + + + + + + + + + + + + + + { + return strValue; + }} + > + + + + + + { + return strValue; + }} + > + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + + +
    +
    +
    + ); + } +} + +const styles = { + filterCol: { + display: 'flex', + alignItems: 'center', + marginBottom: '20px' + }, + + filterTitle: { + width: '68px', + textAlign: 'right', + marginRight: '12px', + fontSize: '14px' + }, + + filterTool: { + width: '200px' + } +}; diff --git a/templates/ice-design/blocks/FilterTable/src/Filter/Filter.scss b/templates/ice-design/blocks/FilterTable/src/Filter/Filter.scss new file mode 100644 index 0000000000..2763cfb652 --- /dev/null +++ b/templates/ice-design/blocks/FilterTable/src/Filter/Filter.scss @@ -0,0 +1,19 @@ +// Filter style +.filter-table { + .filter-col { + display: flex; + align-items: center; + margin-bottom: 20px; + } + + .filter-title { + width: 68px; + text-align: right; + margin-right: 12px; + font-size: 14px; + } + + .filter-tool { + width: 200px; + } +} diff --git a/templates/ice-design/blocks/FilterTable/src/Filter/index.js b/templates/ice-design/blocks/FilterTable/src/Filter/index.js new file mode 100644 index 0000000000..df72651a22 --- /dev/null +++ b/templates/ice-design/blocks/FilterTable/src/Filter/index.js @@ -0,0 +1 @@ +export default from './Filter'; diff --git a/templates/ice-design/blocks/FilterTable/src/FilterTable.jsx b/templates/ice-design/blocks/FilterTable/src/FilterTable.jsx new file mode 100644 index 0000000000..b0478bbffc --- /dev/null +++ b/templates/ice-design/blocks/FilterTable/src/FilterTable.jsx @@ -0,0 +1,216 @@ +'use strict'; + +import React, { Component } from 'react'; +import PropTypes from 'prop-types'; + +import { Table, Pagination } from '@icedesign/base'; + +import IceCard from '@icedesign/card'; +import IceImg from '@icedesign/img'; +import DataBinder from '@icedesign/data-binder'; +import IceLabel from '@icedesign/label'; + +import FilterForm from './Filter'; + +// 详细用法请参见 http://ice.alibaba-inc.com/modules/ice-data-binder +@DataBinder({ + tableData: { + // 详细请求配置请参见 https://github.com/axios/axios + url: '/mock/filter-table-list.json', + params: { + page: 1 + }, + defaultBindingData: { + list: [], + total: 100, + pageSize: 10, + currentPage: 1 + } + } +}) +export default class EnhanceTable extends Component { + static displayName = 'EnhanceTable'; + + static propTypes = { + style: PropTypes.object, + className: PropTypes.string + }; + + static defaultProps = {}; + + constructor(props) { + super(props); + + // 请求参数缓存 + this.queryCache = {}; + this.state = { + filterFormValue: {} + }; + } + + // ICE: React Component 的生命周期 + // http://ice.alibaba-inc.com/docs/guide/intro-react#React-组件的生命周期 + componentWillMount() {} + + componentDidMount() { + this.queryCache.page = 1; + this.fetchData(); + } + + componentWillReceiveProps(nextProps, nextContext) {} + + shouldComponentUpdate(nextProps, nextState) { + return true; + } + + componentWillUnmount() {} + + fetchData = () => { + this.props.updateBindingData('tableData', { + data: this.queryCache + }); + }; + + renderTitle = (value, index, record) => { + return ( +
    +
    + +
    + {record.title} +
    + ); + }; + + editItem = (record, e) => { + e.preventDefault(); + // todo + }; + + renderOperations = (value, index, record) => { + return ( + + ); + }; + + renderStatus = (value, index, record) => { + return ( + + {value} + + ); + }; + + changePage = currentPage => { + this.queryCache.page = currentPage; + + this.fetchData(); + }; + + filterFormChange = value => { + this.setState({ + filterFormValue: value + }); + }; + + filterTable = () => { + // 合并参数,请求数据 + this.queryCache = { + ...this.queryCache, + ...this.state.filterFormValue + }; + this.fetchData(); + }; + + resetFilter = () => { + this.setState({ + filterFormValue: {} + }); + }; + + render() { + const tableData = this.props.bindingData.tableData; + const { filterFormValue } = this.state; + + return ( +
    + + + + + + + + + + +
    +
    + +
    +
    +
    + ); + } +} + +const styles = { + filterTableOperation: { lineHeight: '28px' }, + operationItem: { + marginRight: '12px', + textDecoration: 'none' + }, + titleWrapper: { display: 'flex', flexDirection: 'row' }, + title: { marginLeft: '10px', lineHeight: '20px' }, + cardWrapper: { + minHeight: 0, + marginBottom: 20, + display: 'flex', + justifyContent: 'space-between' + }, + todo4: { textAlign: 'right', paddingTop: '26px' } +}; diff --git a/templates/ice-design/blocks/FilterTable/src/index.js b/templates/ice-design/blocks/FilterTable/src/index.js new file mode 100644 index 0000000000..64706e2b8f --- /dev/null +++ b/templates/ice-design/blocks/FilterTable/src/index.js @@ -0,0 +1,3 @@ +import FilterTable from './FilterTable'; + +export default FilterTable; diff --git a/templates/ice-design/blocks/FilterWithSearch/.editorconfig b/templates/ice-design/blocks/FilterWithSearch/.editorconfig new file mode 100644 index 0000000000..22ef5ace54 --- /dev/null +++ b/templates/ice-design/blocks/FilterWithSearch/.editorconfig @@ -0,0 +1,16 @@ +# http://editorconfig.org +root = true + +[*] +indent_style = space +indent_size = 2 +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false + +[makefile] +indent_style = tab +indent_size = 4 diff --git a/templates/ice-design/blocks/FilterWithSearch/.eslintignore b/templates/ice-design/blocks/FilterWithSearch/.eslintignore new file mode 100644 index 0000000000..3b21308fc7 --- /dev/null +++ b/templates/ice-design/blocks/FilterWithSearch/.eslintignore @@ -0,0 +1,12 @@ +# 忽略目录 +build/ +tests/ +demo/ +lib/ + +# node 覆盖率文件 +coverage/ + +# 忽略文件 +**/*-min.js +**/*.min.js \ No newline at end of file diff --git a/templates/ice-design/blocks/FilterWithSearch/.eslintrc b/templates/ice-design/blocks/FilterWithSearch/.eslintrc new file mode 100644 index 0000000000..7a4e5bac48 --- /dev/null +++ b/templates/ice-design/blocks/FilterWithSearch/.eslintrc @@ -0,0 +1,62 @@ +{ + "root": true, + "parser": "babel-eslint", + "extends": "eslint-config-airbnb", + "parserOptions": { + "ecmaVersion": 6, + "ecmaFeatures": { + "jsx": true, + "experimentalObjectRestSpread": true + } + }, + "env": { + "browser": true + }, + "plugins": [ + "react", + "babel" + ], + "rules": { + "react/forbid-prop-types": 0, + "jsx-a11y/label-has-for": 0, + "jsx-a11y/no-static-element-interactions": 0, + "jsx-a11y/anchor-has-content": 0, + "jsx-a11y/click-events-have-key-events": 0, + "jsx-a11y/anchor-is-valid": 0, + "react/no-array-index-key": 0, + "func-names": 0, + "arrow-body-style": 0, + "no-use-before-define": 0, + "react/sort-comp": 0, + "react/prop-types": 0, + "react/jsx-first-prop-new-line": 0, + "react/jsx-filename-extension": [ + 1, + { + "extensions": [ + ".js", + ".jsx" + ] + } + ], + "import/extensions": 0, + "import/no-unresolved": 0, + "import/no-extraneous-dependencies": 0, + "prefer-destructuring": 0, + "no-param-reassign": 0, + "no-return-assign": 0, + "max-len": 0, + "consistent-return": 0, + "no-redeclare": 0, + "react/require-extension": 0, + "react/no-danger": 0, + "comma-dangle": [ + "error", + "always-multiline" + ], + "function-paren-newline": 0, + "object-curly-newline": 0, + "no-restricted-globals": 0, + "react/prefer-stateless-function": 0 + } +} diff --git a/templates/ice-design/blocks/FilterWithSearch/.gitignore b/templates/ice-design/blocks/FilterWithSearch/.gitignore new file mode 100644 index 0000000000..cc45d6fb3c --- /dev/null +++ b/templates/ice-design/blocks/FilterWithSearch/.gitignore @@ -0,0 +1,13 @@ + +*.swp +*.dia~ +.idea/ +.DS_Store + +npm-debug.log +yarn-error.log +node_modules/ +tmp/ + +# happypack 缓存 +.happypack diff --git a/templates/ice-design/blocks/FilterWithSearch/README.md b/templates/ice-design/blocks/FilterWithSearch/README.md new file mode 100644 index 0000000000..525a7d8f01 --- /dev/null +++ b/templates/ice-design/blocks/FilterWithSearch/README.md @@ -0,0 +1,12 @@ +# filter-with-search + +简介: 含搜索筛选 + +含搜索筛选 + +![截图](https://img.alicdn.com/tfs/TB1vqnmihTI8KJjSspiXXbM4FXa-1906-136.png) + +## 更多 + +* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) +* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) diff --git a/templates/ice-design/blocks/FilterWithSearch/demo/index.html b/templates/ice-design/blocks/FilterWithSearch/demo/index.html new file mode 100644 index 0000000000..9d2d3a663d --- /dev/null +++ b/templates/ice-design/blocks/FilterWithSearch/demo/index.html @@ -0,0 +1,19 @@ + + + + + + + + Document + + + + +
    + + + + + + diff --git a/templates/ice-design/blocks/FilterWithSearch/demo/index.js b/templates/ice-design/blocks/FilterWithSearch/demo/index.js new file mode 100644 index 0000000000..178a766115 --- /dev/null +++ b/templates/ice-design/blocks/FilterWithSearch/demo/index.js @@ -0,0 +1,19 @@ +import React, {Component} from 'react'; +import {render} from 'react-dom'; + +// 载入默认全局样式 normalize 、.clearfix 和一些 mixin 方法等 +import '@icedesign/base/lib/_components/@alife/next-core/lib/index.scss'; + +import DemoLayout from '@icedesign/demo-layout'; +import Block from '../src'; + +const props = { + // ... +}; + +render( + + + , + document.querySelector('#mountNode') +); diff --git a/templates/ice-design/blocks/FilterWithSearch/mock/api.json b/templates/ice-design/blocks/FilterWithSearch/mock/api.json new file mode 100644 index 0000000000..e706430232 --- /dev/null +++ b/templates/ice-design/blocks/FilterWithSearch/mock/api.json @@ -0,0 +1,4 @@ +{ + "status": "success", + "data": {} +} diff --git a/templates/ice-design/blocks/FilterWithSearch/package.json b/templates/ice-design/blocks/FilterWithSearch/package.json new file mode 100644 index 0000000000..7a63f8e408 --- /dev/null +++ b/templates/ice-design/blocks/FilterWithSearch/package.json @@ -0,0 +1,51 @@ +{ + "name": "@icedesign/filter-with-search-block", + "version": "0.1.0", + "description": " 含搜索筛选", + "files": [ + "src/", + "demo/", + "lib/", + "mock/" + ], + "author": { + "name": "ICE Team", + "email": "ice-admin@alibaba-inc.com" + }, + "repository": { + "type": "git", + "url": "https://github.com/alibaba/ice" + }, + "license": "MIT", + "keywords": [ + "ice", + "ice-block" + ], + "dependencies": { + "prop-types": "^15.5.8", + "@icedesign/base": "^0.1.0", + "@icedesign/card": "^0.1.0" + }, + "devDependencies": { + "babel-eslint": "^8.0.3", + "eslint": "^4.13.1", + "eslint-plugin-babel": "^4.1.1", + "eslint-plugin-react": "^7.5.1", + "@icedesign/demo-layout": "^0.1.0", + "eslint-plugin-import": "^2.8.0", + "eslint-config-airbnb": "^16.1.0", + "eslint-plugin-jsx-a11y": "^6.0.3", + "@icedesign/skin": "^0.1.2" + }, + "blockConfig": { + "name": "filter-with-search", + "description": " 含搜索筛选", + "chinese": " 含搜索筛选", + "category": "filter", + "snapshot": "https://img.alicdn.com/tfs/TB1vqnmihTI8KJjSspiXXbM4FXa-1906-136.png", + "sketchURL": "", + "icelandURL": "", + "themePackage": "@icedesign/skin" + }, + "scripts": {} +} diff --git a/templates/ice-design/blocks/FilterWithSearch/src/FilterWithSearch.jsx b/templates/ice-design/blocks/FilterWithSearch/src/FilterWithSearch.jsx new file mode 100644 index 0000000000..d8e0b280f1 --- /dev/null +++ b/templates/ice-design/blocks/FilterWithSearch/src/FilterWithSearch.jsx @@ -0,0 +1,101 @@ +'use strict'; + +import React, { Component } from 'react'; +import IceCard from '@icedesign/card'; +import { Search } from '@icedesign/base'; +import './FilterWithSearch.scss'; + +export default class FilterWithSearch extends Component { + static displayName = 'FilterWithSearch'; + + static propTypes = {}; + + static defaultProps = {}; + + constructor(props) { + super(props); + this.state = {}; + } + + // ICE: React Component 的生命周期 + // http://ice.alibaba-inc.com/docs/guide/intro-react#React-组件的生命周期 + componentWillMount() {} + + componentDidMount() {} + + componentWillReceiveProps(nextProps, nextContext) {} + + shouldComponentUpdate(nextProps, nextState) { + return true; + } + + componentWillUnmount() {} + + selectFilter = type => { + // type can be 'all', 'process', 'pending' + // handler + }; + + handleSearch = () => { + // handler logical + }; + + render() { + return ( +
    + +
    + + 全部 + + + 进行中 + + + 等待中 + +
    + +
    +
    + ); + } +} + +const styles = { + filterWithSearchContainer: { + display: 'flex', + flexDirection: 'row', + justifyContent: 'space-between' + }, + filterContainer: { display: 'flex', alignItems: 'center' }, + filterItem: { + height: '20px', + padding: '0 20px', + color: '#333', + fontSize: '14px', + cursor: 'pointer', + borderRight: '1px solid #D8D8D8' + } +}; diff --git a/templates/ice-design/blocks/FilterWithSearch/src/FilterWithSearch.scss b/templates/ice-design/blocks/FilterWithSearch/src/FilterWithSearch.scss new file mode 100644 index 0000000000..3c9ff32e4a --- /dev/null +++ b/templates/ice-design/blocks/FilterWithSearch/src/FilterWithSearch.scss @@ -0,0 +1,12 @@ +@charset "UTF-8"; + +.filter-with-search { + .filter-item { + &:last-child { + border-right: none !important; + } + &:hover, &.selected { + color: #3080FE !important; + } + } +} diff --git a/templates/ice-design/blocks/FilterWithSearch/src/index.js b/templates/ice-design/blocks/FilterWithSearch/src/index.js new file mode 100644 index 0000000000..7bc10f23b3 --- /dev/null +++ b/templates/ice-design/blocks/FilterWithSearch/src/index.js @@ -0,0 +1,3 @@ +import FilterWithSearch from './FilterWithSearch'; + +export default FilterWithSearch; diff --git a/templates/ice-design/blocks/Footer/.editorconfig b/templates/ice-design/blocks/Footer/.editorconfig new file mode 100644 index 0000000000..22ef5ace54 --- /dev/null +++ b/templates/ice-design/blocks/Footer/.editorconfig @@ -0,0 +1,16 @@ +# http://editorconfig.org +root = true + +[*] +indent_style = space +indent_size = 2 +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false + +[makefile] +indent_style = tab +indent_size = 4 diff --git a/templates/ice-design/blocks/Footer/.eslintignore b/templates/ice-design/blocks/Footer/.eslintignore new file mode 100644 index 0000000000..3b21308fc7 --- /dev/null +++ b/templates/ice-design/blocks/Footer/.eslintignore @@ -0,0 +1,12 @@ +# 忽略目录 +build/ +tests/ +demo/ +lib/ + +# node 覆盖率文件 +coverage/ + +# 忽略文件 +**/*-min.js +**/*.min.js \ No newline at end of file diff --git a/templates/ice-design/blocks/Footer/.eslintrc b/templates/ice-design/blocks/Footer/.eslintrc new file mode 100644 index 0000000000..7a4e5bac48 --- /dev/null +++ b/templates/ice-design/blocks/Footer/.eslintrc @@ -0,0 +1,62 @@ +{ + "root": true, + "parser": "babel-eslint", + "extends": "eslint-config-airbnb", + "parserOptions": { + "ecmaVersion": 6, + "ecmaFeatures": { + "jsx": true, + "experimentalObjectRestSpread": true + } + }, + "env": { + "browser": true + }, + "plugins": [ + "react", + "babel" + ], + "rules": { + "react/forbid-prop-types": 0, + "jsx-a11y/label-has-for": 0, + "jsx-a11y/no-static-element-interactions": 0, + "jsx-a11y/anchor-has-content": 0, + "jsx-a11y/click-events-have-key-events": 0, + "jsx-a11y/anchor-is-valid": 0, + "react/no-array-index-key": 0, + "func-names": 0, + "arrow-body-style": 0, + "no-use-before-define": 0, + "react/sort-comp": 0, + "react/prop-types": 0, + "react/jsx-first-prop-new-line": 0, + "react/jsx-filename-extension": [ + 1, + { + "extensions": [ + ".js", + ".jsx" + ] + } + ], + "import/extensions": 0, + "import/no-unresolved": 0, + "import/no-extraneous-dependencies": 0, + "prefer-destructuring": 0, + "no-param-reassign": 0, + "no-return-assign": 0, + "max-len": 0, + "consistent-return": 0, + "no-redeclare": 0, + "react/require-extension": 0, + "react/no-danger": 0, + "comma-dangle": [ + "error", + "always-multiline" + ], + "function-paren-newline": 0, + "object-curly-newline": 0, + "no-restricted-globals": 0, + "react/prefer-stateless-function": 0 + } +} diff --git a/templates/ice-design/blocks/Footer/.gitignore b/templates/ice-design/blocks/Footer/.gitignore new file mode 100644 index 0000000000..cc45d6fb3c --- /dev/null +++ b/templates/ice-design/blocks/Footer/.gitignore @@ -0,0 +1,13 @@ + +*.swp +*.dia~ +.idea/ +.DS_Store + +npm-debug.log +yarn-error.log +node_modules/ +tmp/ + +# happypack 缓存 +.happypack diff --git a/templates/ice-design/blocks/Footer/README.md b/templates/ice-design/blocks/Footer/README.md new file mode 100644 index 0000000000..d948806f5c --- /dev/null +++ b/templates/ice-design/blocks/Footer/README.md @@ -0,0 +1,10 @@ +# footer + +简介:页脚 + +![截图](https://img.alicdn.com/tfs/TB1if0vg5qAXuNjy1XdXXaYcVXa-2516-356.png) + +## 更多 + +* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) +* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) diff --git a/templates/ice-design/blocks/Footer/demo/index.html b/templates/ice-design/blocks/Footer/demo/index.html new file mode 100644 index 0000000000..9d2d3a663d --- /dev/null +++ b/templates/ice-design/blocks/Footer/demo/index.html @@ -0,0 +1,19 @@ + + + + + + + + Document + + + + +
    + + + + + + diff --git a/templates/ice-design/blocks/Footer/demo/index.js b/templates/ice-design/blocks/Footer/demo/index.js new file mode 100644 index 0000000000..f80b542308 --- /dev/null +++ b/templates/ice-design/blocks/Footer/demo/index.js @@ -0,0 +1,14 @@ +import React, { Component } from 'react'; +import { render } from 'react-dom'; + +// 载入默认全局样式 normalize 、.clearfix 和一些 mixin 方法等 +import '@icedesign/base/lib/_components/@alife/next-core/lib/index.scss'; + +import DemoLayout from '@icedesign/demo-layout'; +import Block from '../src'; + +const props = { + // ... +}; + +render(, document.querySelector('#mountNode')); diff --git a/templates/ice-design/blocks/Footer/mock/api.json b/templates/ice-design/blocks/Footer/mock/api.json new file mode 100644 index 0000000000..e706430232 --- /dev/null +++ b/templates/ice-design/blocks/Footer/mock/api.json @@ -0,0 +1,4 @@ +{ + "status": "success", + "data": {} +} diff --git a/templates/ice-design/blocks/Footer/package.json b/templates/ice-design/blocks/Footer/package.json new file mode 100644 index 0000000000..592500627c --- /dev/null +++ b/templates/ice-design/blocks/Footer/package.json @@ -0,0 +1,54 @@ +{ + "name": "@icedesign/footer-block", + "version": "0.1.0", + "description": "", + "files": [ + "src/", + "demo/", + "lib/", + "mock/" + ], + "scripts": {}, + "author": { + "name": "ICE Team", + "email": "ice-admin@alibaba-inc.com" + }, + "repository": { + "type": "git", + "url": "https://github.com/alibaba/ice" + }, + "license": "MIT", + "keywords": [ + "ice", + "ice-block" + ], + "dependencies": { + "@icedesign/base": "^0.1.0", + "prop-types": "^15.5.8", + "@icedesign/card": "^0.1.0" + }, + "devDependencies": { + "@icedesign/skin": "^0.1.2", + "babel-eslint": "^8.0.3", + "eslint-plugin-react": "^7.5.1", + "react": "15.x", + "react-copy-to-clipboard": "^4.2.3", + "react-dom": "15.x", + "eslint": "^4.13.1", + "eslint-plugin-babel": "^4.1.1", + "eslint-plugin-import": "^2.8.0", + "eslint-config-airbnb": "^16.1.0", + "eslint-plugin-jsx-a11y": "^6.0.3", + "@icedesign/demo-layout": "^0.1.0" + }, + "blockConfig": { + "name": "footer", + "description": "", + "chinese": "页脚", + "category": "info-display", + "snapshot": "https://img.alicdn.com/tfs/TB1if0vg5qAXuNjy1XdXXaYcVXa-2516-356.png", + "sketchURL": "", + "icelandURL": "", + "themePackage": "@icedesign/skin" + } +} diff --git a/templates/ice-design/blocks/Footer/src/Footer.jsx b/templates/ice-design/blocks/Footer/src/Footer.jsx new file mode 100644 index 0000000000..0d0d403a76 --- /dev/null +++ b/templates/ice-design/blocks/Footer/src/Footer.jsx @@ -0,0 +1,102 @@ +import React, { Component } from 'react'; +import IceCard from '@icedesign/card'; + +export default class Footer extends Component { + static displayName = 'Footer'; + + static propTypes = {}; + + static defaultProps = {}; + + constructor(props) { + super(props); + this.state = {}; + } + + // ICE: React Component 的生命周期 + // http://ice.alibaba-inc.com/docs/guide/intro-react#React-组件的生命周期 + componentWillMount() {} + + componentDidMount() {} + + componentWillReceiveProps(nextProps, nextContext) {} + + shouldComponentUpdate(nextProps, nextState) { + return true; + } + + componentWillUnmount() {} + + render() { + return ( +
    + +
    +

    LOGO

    + +
    + + +
    +

    © 2017 Taobao FED

    +
    +
    +
    + ); + } +} + +const styles = { + content: { + display: 'flex', + flexWrap: 'wrap', + width: '1080px', + margin: '0 auto' + }, + logo: { + color: '#3080FE', + fontWeight: 'bold', + fontSize: '28px', + margin: '12px 0' + }, + nav: { width: '400px', margin: '0 auto', display: 'flex' }, + navItem: { width: '25%', lineHeight: '54px', textAlign: 'center' }, + navLink: { color: '#666', display: 'block' }, + share: { lineHeight: '54px' }, + shareIcon: { width: '22px', height: '16px' }, + weChart: { marginLeft: '20px' }, + copyRight: { + display: 'flex', + width: '100%', + marginTop: '40px', + justifyContent: 'center', + fontSize: '12px' + } +}; diff --git a/templates/ice-design/blocks/Footer/src/index.js b/templates/ice-design/blocks/Footer/src/index.js new file mode 100644 index 0000000000..ced11e5251 --- /dev/null +++ b/templates/ice-design/blocks/Footer/src/index.js @@ -0,0 +1,3 @@ +import Footer from './Footer'; + +export default Footer; diff --git a/templates/ice-design/blocks/FooterInfo/.editorconfig b/templates/ice-design/blocks/FooterInfo/.editorconfig new file mode 100644 index 0000000000..22ef5ace54 --- /dev/null +++ b/templates/ice-design/blocks/FooterInfo/.editorconfig @@ -0,0 +1,16 @@ +# http://editorconfig.org +root = true + +[*] +indent_style = space +indent_size = 2 +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false + +[makefile] +indent_style = tab +indent_size = 4 diff --git a/templates/ice-design/blocks/FooterInfo/.eslintignore b/templates/ice-design/blocks/FooterInfo/.eslintignore new file mode 100644 index 0000000000..3b21308fc7 --- /dev/null +++ b/templates/ice-design/blocks/FooterInfo/.eslintignore @@ -0,0 +1,12 @@ +# 忽略目录 +build/ +tests/ +demo/ +lib/ + +# node 覆盖率文件 +coverage/ + +# 忽略文件 +**/*-min.js +**/*.min.js \ No newline at end of file diff --git a/templates/ice-design/blocks/FooterInfo/.eslintrc b/templates/ice-design/blocks/FooterInfo/.eslintrc new file mode 100644 index 0000000000..7a4e5bac48 --- /dev/null +++ b/templates/ice-design/blocks/FooterInfo/.eslintrc @@ -0,0 +1,62 @@ +{ + "root": true, + "parser": "babel-eslint", + "extends": "eslint-config-airbnb", + "parserOptions": { + "ecmaVersion": 6, + "ecmaFeatures": { + "jsx": true, + "experimentalObjectRestSpread": true + } + }, + "env": { + "browser": true + }, + "plugins": [ + "react", + "babel" + ], + "rules": { + "react/forbid-prop-types": 0, + "jsx-a11y/label-has-for": 0, + "jsx-a11y/no-static-element-interactions": 0, + "jsx-a11y/anchor-has-content": 0, + "jsx-a11y/click-events-have-key-events": 0, + "jsx-a11y/anchor-is-valid": 0, + "react/no-array-index-key": 0, + "func-names": 0, + "arrow-body-style": 0, + "no-use-before-define": 0, + "react/sort-comp": 0, + "react/prop-types": 0, + "react/jsx-first-prop-new-line": 0, + "react/jsx-filename-extension": [ + 1, + { + "extensions": [ + ".js", + ".jsx" + ] + } + ], + "import/extensions": 0, + "import/no-unresolved": 0, + "import/no-extraneous-dependencies": 0, + "prefer-destructuring": 0, + "no-param-reassign": 0, + "no-return-assign": 0, + "max-len": 0, + "consistent-return": 0, + "no-redeclare": 0, + "react/require-extension": 0, + "react/no-danger": 0, + "comma-dangle": [ + "error", + "always-multiline" + ], + "function-paren-newline": 0, + "object-curly-newline": 0, + "no-restricted-globals": 0, + "react/prefer-stateless-function": 0 + } +} diff --git a/templates/ice-design/blocks/FooterInfo/.gitignore b/templates/ice-design/blocks/FooterInfo/.gitignore new file mode 100644 index 0000000000..cc45d6fb3c --- /dev/null +++ b/templates/ice-design/blocks/FooterInfo/.gitignore @@ -0,0 +1,13 @@ + +*.swp +*.dia~ +.idea/ +.DS_Store + +npm-debug.log +yarn-error.log +node_modules/ +tmp/ + +# happypack 缓存 +.happypack diff --git a/templates/ice-design/blocks/FooterInfo/README.md b/templates/ice-design/blocks/FooterInfo/README.md new file mode 100644 index 0000000000..5094e558f0 --- /dev/null +++ b/templates/ice-design/blocks/FooterInfo/README.md @@ -0,0 +1,10 @@ +# footer-info + +简介:页脚信息展示 + +![截图](https://img.alicdn.com/tfs/TB14GfWjhrI8KJjy0FpXXb5hVXa-2566-806.png) + +## 更多 + +* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) +* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) diff --git a/templates/ice-design/blocks/FooterInfo/demo/index.html b/templates/ice-design/blocks/FooterInfo/demo/index.html new file mode 100644 index 0000000000..9d2d3a663d --- /dev/null +++ b/templates/ice-design/blocks/FooterInfo/demo/index.html @@ -0,0 +1,19 @@ + + + + + + + + Document + + + + +
    + + + + + + diff --git a/templates/ice-design/blocks/FooterInfo/demo/index.js b/templates/ice-design/blocks/FooterInfo/demo/index.js new file mode 100644 index 0000000000..f80b542308 --- /dev/null +++ b/templates/ice-design/blocks/FooterInfo/demo/index.js @@ -0,0 +1,14 @@ +import React, { Component } from 'react'; +import { render } from 'react-dom'; + +// 载入默认全局样式 normalize 、.clearfix 和一些 mixin 方法等 +import '@icedesign/base/lib/_components/@alife/next-core/lib/index.scss'; + +import DemoLayout from '@icedesign/demo-layout'; +import Block from '../src'; + +const props = { + // ... +}; + +render(, document.querySelector('#mountNode')); diff --git a/templates/ice-design/blocks/FooterInfo/mock/api.json b/templates/ice-design/blocks/FooterInfo/mock/api.json new file mode 100644 index 0000000000..e706430232 --- /dev/null +++ b/templates/ice-design/blocks/FooterInfo/mock/api.json @@ -0,0 +1,4 @@ +{ + "status": "success", + "data": {} +} diff --git a/templates/ice-design/blocks/FooterInfo/package.json b/templates/ice-design/blocks/FooterInfo/package.json new file mode 100644 index 0000000000..6b5da5b9f6 --- /dev/null +++ b/templates/ice-design/blocks/FooterInfo/package.json @@ -0,0 +1,54 @@ +{ + "name": "@icedesign/footer-info-block", + "version": "0.1.0", + "description": "", + "files": [ + "src/", + "demo/", + "lib/", + "mock/" + ], + "scripts": {}, + "author": { + "name": "ICE Team", + "email": "ice-admin@alibaba-inc.com" + }, + "repository": { + "type": "git", + "url": "https://github.com/alibaba/ice" + }, + "license": "MIT", + "keywords": [ + "ice", + "ice-block" + ], + "dependencies": { + "@icedesign/base": "^0.1.0", + "prop-types": "^15.5.8", + "@icedesign/card": "^0.1.0" + }, + "devDependencies": { + "@icedesign/skin": "^0.1.2", + "babel-eslint": "^8.0.3", + "eslint-plugin-react": "^7.5.1", + "react": "15.x", + "react-copy-to-clipboard": "^4.2.3", + "react-dom": "15.x", + "eslint": "^4.13.1", + "eslint-plugin-babel": "^4.1.1", + "eslint-plugin-import": "^2.8.0", + "eslint-config-airbnb": "^16.1.0", + "eslint-plugin-jsx-a11y": "^6.0.3", + "@icedesign/demo-layout": "^0.1.0" + }, + "blockConfig": { + "name": "footer-info", + "description": "", + "chinese": "页脚信息展示", + "category": "info-display", + "snapshot": "https://img.alicdn.com/tfs/TB14GfWjhrI8KJjy0FpXXb5hVXa-2566-806.png", + "sketchURL": "", + "icelandURL": "", + "themePackage": "@icedesign/skin" + } +} diff --git a/templates/ice-design/blocks/FooterInfo/src/FooterInfo.jsx b/templates/ice-design/blocks/FooterInfo/src/FooterInfo.jsx new file mode 100644 index 0000000000..0a0c578282 --- /dev/null +++ b/templates/ice-design/blocks/FooterInfo/src/FooterInfo.jsx @@ -0,0 +1,111 @@ +import React, { Component } from 'react'; + +export default class FooterInfo extends Component { + static displayName = 'FooterInfo'; + + static propTypes = {}; + + static defaultProps = {}; + + constructor(props) { + super(props); + this.state = {}; + } + + // ICE: React Component 的生命周期 + // http://ice.alibaba-inc.com/docs/guide/intro-react#React-组件的生命周期 + componentWillMount() {} + + componentDidMount() {} + + componentWillReceiveProps(nextProps, nextContext) {} + + shouldComponentUpdate(nextProps, nextState) { + return true; + } + + componentWillUnmount() {} + + render() { + return ( +
    +
    +
    +

    产品介绍

    + +
    +
    +

    合作伙伴

    + +
    +
    +

    关注我们

    + +
    +
    +

    © 2017 Taobao FED

    +
    + ); + } +} + +const styles = { + container: { background: '#1861D5', padding: '80px 0' }, + items: { + display: 'flex', + flexWrap: 'wrap', + width: '1080px', + margin: '0 auto' + }, + item: { + width: '30%', + padding: '20px 30px 60px', + marginRight: '5%', + borderRadius: '6px', + textAlign: 'center' + }, + itemTitle: { margin: '20px 0', color: '#fff', fontSize: '24px' }, + navLink: { + display: 'block', + height: '32px', + lineHeight: '32px', + color: '#E1EEFF' + }, + copyRight: { color: '#fff', textAlign: 'center' } +}; diff --git a/templates/ice-design/blocks/FooterInfo/src/index.js b/templates/ice-design/blocks/FooterInfo/src/index.js new file mode 100644 index 0000000000..70f6cee4aa --- /dev/null +++ b/templates/ice-design/blocks/FooterInfo/src/index.js @@ -0,0 +1,3 @@ +import FooterInfo from './FooterInfo'; + +export default FooterInfo; diff --git a/templates/ice-design/blocks/ForgetPasswordForm/.editorconfig b/templates/ice-design/blocks/ForgetPasswordForm/.editorconfig new file mode 100644 index 0000000000..22ef5ace54 --- /dev/null +++ b/templates/ice-design/blocks/ForgetPasswordForm/.editorconfig @@ -0,0 +1,16 @@ +# http://editorconfig.org +root = true + +[*] +indent_style = space +indent_size = 2 +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false + +[makefile] +indent_style = tab +indent_size = 4 diff --git a/templates/ice-design/blocks/ForgetPasswordForm/.eslintignore b/templates/ice-design/blocks/ForgetPasswordForm/.eslintignore new file mode 100644 index 0000000000..3b21308fc7 --- /dev/null +++ b/templates/ice-design/blocks/ForgetPasswordForm/.eslintignore @@ -0,0 +1,12 @@ +# 忽略目录 +build/ +tests/ +demo/ +lib/ + +# node 覆盖率文件 +coverage/ + +# 忽略文件 +**/*-min.js +**/*.min.js \ No newline at end of file diff --git a/templates/ice-design/blocks/ForgetPasswordForm/.eslintrc b/templates/ice-design/blocks/ForgetPasswordForm/.eslintrc new file mode 100644 index 0000000000..7a4e5bac48 --- /dev/null +++ b/templates/ice-design/blocks/ForgetPasswordForm/.eslintrc @@ -0,0 +1,62 @@ +{ + "root": true, + "parser": "babel-eslint", + "extends": "eslint-config-airbnb", + "parserOptions": { + "ecmaVersion": 6, + "ecmaFeatures": { + "jsx": true, + "experimentalObjectRestSpread": true + } + }, + "env": { + "browser": true + }, + "plugins": [ + "react", + "babel" + ], + "rules": { + "react/forbid-prop-types": 0, + "jsx-a11y/label-has-for": 0, + "jsx-a11y/no-static-element-interactions": 0, + "jsx-a11y/anchor-has-content": 0, + "jsx-a11y/click-events-have-key-events": 0, + "jsx-a11y/anchor-is-valid": 0, + "react/no-array-index-key": 0, + "func-names": 0, + "arrow-body-style": 0, + "no-use-before-define": 0, + "react/sort-comp": 0, + "react/prop-types": 0, + "react/jsx-first-prop-new-line": 0, + "react/jsx-filename-extension": [ + 1, + { + "extensions": [ + ".js", + ".jsx" + ] + } + ], + "import/extensions": 0, + "import/no-unresolved": 0, + "import/no-extraneous-dependencies": 0, + "prefer-destructuring": 0, + "no-param-reassign": 0, + "no-return-assign": 0, + "max-len": 0, + "consistent-return": 0, + "no-redeclare": 0, + "react/require-extension": 0, + "react/no-danger": 0, + "comma-dangle": [ + "error", + "always-multiline" + ], + "function-paren-newline": 0, + "object-curly-newline": 0, + "no-restricted-globals": 0, + "react/prefer-stateless-function": 0 + } +} diff --git a/templates/ice-design/blocks/ForgetPasswordForm/.gitignore b/templates/ice-design/blocks/ForgetPasswordForm/.gitignore new file mode 100644 index 0000000000..cc45d6fb3c --- /dev/null +++ b/templates/ice-design/blocks/ForgetPasswordForm/.gitignore @@ -0,0 +1,13 @@ + +*.swp +*.dia~ +.idea/ +.DS_Store + +npm-debug.log +yarn-error.log +node_modules/ +tmp/ + +# happypack 缓存 +.happypack diff --git a/templates/ice-design/blocks/ForgetPasswordForm/README.md b/templates/ice-design/blocks/ForgetPasswordForm/README.md new file mode 100644 index 0000000000..6bab3c2cc7 --- /dev/null +++ b/templates/ice-design/blocks/ForgetPasswordForm/README.md @@ -0,0 +1,12 @@ +# forget-password-form + +简介:忘记密码 + +忘记密码 + +![截图](https://gw.alicdn.com/tfs/TB1YYOAg5qAXuNjy1XdXXaYcVXa-1012-424.png) + +## 更多 + +* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) +* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) diff --git a/templates/ice-design/blocks/ForgetPasswordForm/demo/index.html b/templates/ice-design/blocks/ForgetPasswordForm/demo/index.html new file mode 100644 index 0000000000..9d2d3a663d --- /dev/null +++ b/templates/ice-design/blocks/ForgetPasswordForm/demo/index.html @@ -0,0 +1,19 @@ + + + + + + + + Document + + + + +
    + + + + + + diff --git a/templates/ice-design/blocks/ForgetPasswordForm/demo/index.js b/templates/ice-design/blocks/ForgetPasswordForm/demo/index.js new file mode 100644 index 0000000000..178a766115 --- /dev/null +++ b/templates/ice-design/blocks/ForgetPasswordForm/demo/index.js @@ -0,0 +1,19 @@ +import React, {Component} from 'react'; +import {render} from 'react-dom'; + +// 载入默认全局样式 normalize 、.clearfix 和一些 mixin 方法等 +import '@icedesign/base/lib/_components/@alife/next-core/lib/index.scss'; + +import DemoLayout from '@icedesign/demo-layout'; +import Block from '../src'; + +const props = { + // ... +}; + +render( + + + , + document.querySelector('#mountNode') +); diff --git a/templates/ice-design/blocks/ForgetPasswordForm/mock/api.json b/templates/ice-design/blocks/ForgetPasswordForm/mock/api.json new file mode 100644 index 0000000000..e706430232 --- /dev/null +++ b/templates/ice-design/blocks/ForgetPasswordForm/mock/api.json @@ -0,0 +1,4 @@ +{ + "status": "success", + "data": {} +} diff --git a/templates/ice-design/blocks/ForgetPasswordForm/package.json b/templates/ice-design/blocks/ForgetPasswordForm/package.json new file mode 100644 index 0000000000..254882b359 --- /dev/null +++ b/templates/ice-design/blocks/ForgetPasswordForm/package.json @@ -0,0 +1,55 @@ +{ + "name": "@icedesign/forget-password-form-block", + "version": "0.1.0", + "description": "忘记密码", + "files": [ + "src/", + "demo/", + "lib/", + "mock/" + ], + "scripts": {}, + "author": { + "name": "ICE Team", + "email": "ice-admin@alibaba-inc.com" + }, + "repository": { + "type": "git", + "url": "https://github.com/alibaba/ice" + }, + "license": "MIT", + "keywords": [ + "ice", + "ice-block" + ], + "dependencies": { + "@icedesign/base": "^0.1.0", + "prop-types": "^15.5.8", + "@icedesign/card": "^0.1.0", + "@icedesign/form-binder": "^0.1.0" + }, + "devDependencies": { + "@icedesign/skin": "^0.1.2", + "babel-eslint": "^8.0.3", + "eslint-plugin-react": "^7.5.1", + "react": "15.x", + "react-copy-to-clipboard": "^4.2.3", + "react-dom": "15.x", + "eslint": "^4.13.1", + "eslint-plugin-babel": "^4.1.1", + "eslint-plugin-import": "^2.8.0", + "eslint-config-airbnb": "^16.1.0", + "eslint-plugin-jsx-a11y": "^6.0.3", + "@icedesign/demo-layout": "^0.1.0" + }, + "blockConfig": { + "name": "forget-password-form", + "description": "忘记密码", + "chinese": "忘记密码", + "category": "form", + "snapshot": "https://gw.alicdn.com/tfs/TB1YYOAg5qAXuNjy1XdXXaYcVXa-1012-424.png", + "sketchURL": "", + "icelandURL": "", + "themePackage": "@icedesign/skin" + } +} diff --git a/templates/ice-design/blocks/ForgetPasswordForm/src/ForgetPasswordForm.jsx b/templates/ice-design/blocks/ForgetPasswordForm/src/ForgetPasswordForm.jsx new file mode 100644 index 0000000000..48f64e07f0 --- /dev/null +++ b/templates/ice-design/blocks/ForgetPasswordForm/src/ForgetPasswordForm.jsx @@ -0,0 +1,97 @@ +import React, { Component } from 'react'; +import { Input, Button } from '@icedesign/base'; +import IceCard from '@icedesign/card'; +import { + FormBinderWrapper, + FormBinder, + FormError +} from '@icedesign/form-binder'; + +export default class ForgetPasswordForm extends Component { + static displayName = 'ForgetPasswordForm'; + + static propTypes = {}; + + static defaultProps = {}; + + constructor(props) { + super(props); + this.state = { + email: '' + }; + } + + // ICE: React Component 的生命周期 + // http://ice.alibaba-inc.com/docs/guide/intro-react#React-组件的生命周期 + componentWillMount() {} + + componentDidMount() {} + + componentWillUnmount() {} + + emailChange = newValue => { + this.setState(newValue); + }; + + sendMessage = () => { + this.form.validateAll((errors, values) => { + console.log('errors', errors, 'values', values); + }); + }; + + render() { + return ( +
    + +
    忘记密码
    +
    填入您的邮箱,重置后的密码会发到您的邮箱
    +
    邮箱地址:
    +
    + { + this.form = form; + }} + value={{ + email: this.state.email + }} + onChange={this.emailChange} + > +
    + + + +
    + +
    +
    +
    +
    + +
    + +
    +
    +
    + ); + } +} + +const styles = { + formCard: { width: '518px', paddingLeft: '30px' }, + title: { + fontSize: '16px', + marginBottom: '10px', + color: '#000', + fontWeight: 'bold' + }, + subtitle: { color: '#000', fontSize: '14px', marginBottom: '30px' }, + groupTitle: { marginBottom: '10px' }, + input: { width: '332px' }, + inputWrap: { marginBottom: '20px' } +}; diff --git a/templates/ice-design/blocks/ForgetPasswordForm/src/index.js b/templates/ice-design/blocks/ForgetPasswordForm/src/index.js new file mode 100644 index 0000000000..42adf012e5 --- /dev/null +++ b/templates/ice-design/blocks/ForgetPasswordForm/src/index.js @@ -0,0 +1,3 @@ +import ForgetPasswordForm from './ForgetPasswordForm'; + +export default ForgetPasswordForm; diff --git a/templates/ice-design/blocks/InfoDisplayTab/.editorconfig b/templates/ice-design/blocks/InfoDisplayTab/.editorconfig new file mode 100644 index 0000000000..22ef5ace54 --- /dev/null +++ b/templates/ice-design/blocks/InfoDisplayTab/.editorconfig @@ -0,0 +1,16 @@ +# http://editorconfig.org +root = true + +[*] +indent_style = space +indent_size = 2 +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false + +[makefile] +indent_style = tab +indent_size = 4 diff --git a/templates/ice-design/blocks/InfoDisplayTab/.eslintignore b/templates/ice-design/blocks/InfoDisplayTab/.eslintignore new file mode 100644 index 0000000000..3b21308fc7 --- /dev/null +++ b/templates/ice-design/blocks/InfoDisplayTab/.eslintignore @@ -0,0 +1,12 @@ +# 忽略目录 +build/ +tests/ +demo/ +lib/ + +# node 覆盖率文件 +coverage/ + +# 忽略文件 +**/*-min.js +**/*.min.js \ No newline at end of file diff --git a/templates/ice-design/blocks/InfoDisplayTab/.eslintrc b/templates/ice-design/blocks/InfoDisplayTab/.eslintrc new file mode 100644 index 0000000000..7a4e5bac48 --- /dev/null +++ b/templates/ice-design/blocks/InfoDisplayTab/.eslintrc @@ -0,0 +1,62 @@ +{ + "root": true, + "parser": "babel-eslint", + "extends": "eslint-config-airbnb", + "parserOptions": { + "ecmaVersion": 6, + "ecmaFeatures": { + "jsx": true, + "experimentalObjectRestSpread": true + } + }, + "env": { + "browser": true + }, + "plugins": [ + "react", + "babel" + ], + "rules": { + "react/forbid-prop-types": 0, + "jsx-a11y/label-has-for": 0, + "jsx-a11y/no-static-element-interactions": 0, + "jsx-a11y/anchor-has-content": 0, + "jsx-a11y/click-events-have-key-events": 0, + "jsx-a11y/anchor-is-valid": 0, + "react/no-array-index-key": 0, + "func-names": 0, + "arrow-body-style": 0, + "no-use-before-define": 0, + "react/sort-comp": 0, + "react/prop-types": 0, + "react/jsx-first-prop-new-line": 0, + "react/jsx-filename-extension": [ + 1, + { + "extensions": [ + ".js", + ".jsx" + ] + } + ], + "import/extensions": 0, + "import/no-unresolved": 0, + "import/no-extraneous-dependencies": 0, + "prefer-destructuring": 0, + "no-param-reassign": 0, + "no-return-assign": 0, + "max-len": 0, + "consistent-return": 0, + "no-redeclare": 0, + "react/require-extension": 0, + "react/no-danger": 0, + "comma-dangle": [ + "error", + "always-multiline" + ], + "function-paren-newline": 0, + "object-curly-newline": 0, + "no-restricted-globals": 0, + "react/prefer-stateless-function": 0 + } +} diff --git a/templates/ice-design/blocks/InfoDisplayTab/.gitignore b/templates/ice-design/blocks/InfoDisplayTab/.gitignore new file mode 100644 index 0000000000..cc45d6fb3c --- /dev/null +++ b/templates/ice-design/blocks/InfoDisplayTab/.gitignore @@ -0,0 +1,13 @@ + +*.swp +*.dia~ +.idea/ +.DS_Store + +npm-debug.log +yarn-error.log +node_modules/ +tmp/ + +# happypack 缓存 +.happypack diff --git a/templates/ice-design/blocks/InfoDisplayTab/README.md b/templates/ice-design/blocks/InfoDisplayTab/README.md new file mode 100644 index 0000000000..4c06e48e9b --- /dev/null +++ b/templates/ice-design/blocks/InfoDisplayTab/README.md @@ -0,0 +1,10 @@ +# info-display-tab + +简介:标签页信息展示 + +![截图](https://img.alicdn.com/tfs/TB1eHD0fiqAXuNjy1XdXXaYcVXa-914-700.png) + +## 更多 + +* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) +* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) diff --git a/templates/ice-design/blocks/InfoDisplayTab/demo/index.html b/templates/ice-design/blocks/InfoDisplayTab/demo/index.html new file mode 100644 index 0000000000..cb0422f8d9 --- /dev/null +++ b/templates/ice-design/blocks/InfoDisplayTab/demo/index.html @@ -0,0 +1,18 @@ + + + + + + + + Document + + + + +
    + + + + + diff --git a/templates/ice-design/blocks/InfoDisplayTab/demo/index.js b/templates/ice-design/blocks/InfoDisplayTab/demo/index.js new file mode 100644 index 0000000000..4d6acd389a --- /dev/null +++ b/templates/ice-design/blocks/InfoDisplayTab/demo/index.js @@ -0,0 +1,19 @@ +import React, { Component } from 'react'; +import { render } from 'react-dom'; + +// 载入默认全局样式 normalize 、.clearfix 和一些 mixin 方法等 +import '@icedesign/base/lib/_components/@alife/next-core/lib/index.scss'; + +import DemoLayout from '@icedesign/demo-layout'; +import Block from '../src'; + +const props = { + // ... +}; + +render( + + + , + document.querySelector('#mountNode') +); diff --git a/templates/ice-design/blocks/InfoDisplayTab/lib/InfoDisplayTab.js b/templates/ice-design/blocks/InfoDisplayTab/lib/InfoDisplayTab.js new file mode 100644 index 0000000000..fff0a6bbaf --- /dev/null +++ b/templates/ice-design/blocks/InfoDisplayTab/lib/InfoDisplayTab.js @@ -0,0 +1,183 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = undefined; + +var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + +var _class, _temp; + +var _react = require('react'); + +var _react2 = _interopRequireDefault(_react); + +var _propTypes = require('prop-types'); + +var _propTypes2 = _interopRequireDefault(_propTypes); + +var _card = require('@icedesign/card'); + +var _card2 = _interopRequireDefault(_card); + +var _ellipsis = require('@icedesign/ellipsis'); + +var _ellipsis2 = _interopRequireDefault(_ellipsis); + +var _axios = require('axios'); + +var _axios2 = _interopRequireDefault(_axios); + +require('./InfoDisplayTab.scss'); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } + +var Tab = require('@icedesign/base/lib/tab'); + +var Button = require('@icedesign/base/lib/button'); + +var Grid = require('@icedesign/base/lib/grid'); + +var Row = Grid.Row, + Col = Grid.Col; +var TabPane = Tab.TabPane; +var InfoDisplayTab = (_temp = _class = function (_Component) { + _inherits(InfoDisplayTab, _Component); + + function InfoDisplayTab(props) { + _classCallCheck(this, InfoDisplayTab); + + var _this = _possibleConstructorReturn(this, (InfoDisplayTab.__proto__ || Object.getPrototypeOf(InfoDisplayTab)).call(this, props)); + + _this.getData = function () { + _axios2.default.get('/mock/info-display-tab.json').then(function (response) { + _this.setState({ + tabData: response.data.data || {} + }); + }).catch(function (error) { + console.log(error); + }); + }; + + _this.renderContent = function (data) { + return data.map(function (item, index) { + return _react2.default.createElement( + 'div', + { key: index, className: 'column-card', style: styles.columnCard }, + _react2.default.createElement( + Row, + null, + _react2.default.createElement( + Col, + { className: 'column-card-title titleStyle', style: styles.columnCardTitleTitleStyle }, + item.title + ) + ), + _react2.default.createElement( + Row, + { + style: styles.todo0 + }, + _react2.default.createElement( + Col, + null, + _react2.default.createElement( + 'div', + { className: 'column-card-desc', style: styles.columnCardDesc }, + _react2.default.createElement(_ellipsis2.default, { lineLimit: 6, text: item.desc }) + ) + ) + ), + _react2.default.createElement( + Row, + { + style: styles.todo1 + }, + _react2.default.createElement( + Col, + null, + _react2.default.createElement( + Button, + { + type: 'primary', + component: 'a', + href: 'http://www.taobao.com/', + target: '_blank', + size: 'large' + }, + '\u7533\u8BF7\u9891\u9053' + ) + ) + ) + ); + }); + }; + + _this.state = { + tabData: {} + }; + return _this; + } + + /** + * 异步获取数据 + */ + + + _createClass(InfoDisplayTab, [{ + key: 'componentDidMount', + value: function componentDidMount() { + this.getData(); + } + }, { + key: 'render', + value: function render() { + var tabData = this.state.tabData; + + return _react2.default.createElement( + 'div', + { className: 'info-display-tab', style: styles.infoDisplayTab }, + _react2.default.createElement( + _card2.default, + null, + _react2.default.createElement( + Tab, + { type: 'bar', onChange: this.callback }, + _react2.default.createElement( + TabPane, + { tab: '\u5168\u90E8\u9891\u9053', key: '1' }, + tabData.all ? this.renderContent(tabData.all) : '暂无数据' + ), + _react2.default.createElement( + TabPane, + { tab: '\u53EF\u7533\u8BF7\u9891\u9053', key: '2' }, + tabData.apply ? this.renderContent(tabData.apply) : '暂无数据' + ), + _react2.default.createElement( + TabPane, + { tab: '\u5DF2\u83B7\u5F97\u9891\u9053', key: '3' }, + tabData.existing ? this.renderContent(tabData.existing) : '暂无数据' + ) + ) + ) + ); + } + }]); + + return InfoDisplayTab; +}(_react.Component), _class.displayName = 'InfoDisplayTab', _class.propTypes = { + style: _propTypes2.default.object, + className: _propTypes2.default.string +}, _class.defaultProps = {}, _temp); +exports.default = InfoDisplayTab; + + +var styles = { "columnCard": { "float": "left", "width": "284px", "overflow": "hidden", "boxShadow": "0px 0px 2px 0px rgba(0" }, "columnCardDesc": { "height": "144px", "overflow": "hidden", "lineHeight": "24px", "fontSize": "14px", "color": "#666", "margin": "5px auto 0 auto" }, "infoDisplayTab": {}, "todo0": { "marginTop": "20px" }, "todo1": { "textAlign": "center", "marginTop": "15px" } }; +module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/InfoDisplayTab/lib/InfoDisplayTab.scss b/templates/ice-design/blocks/InfoDisplayTab/lib/InfoDisplayTab.scss new file mode 100644 index 0000000000..dd93e4ea5b --- /dev/null +++ b/templates/ice-design/blocks/InfoDisplayTab/lib/InfoDisplayTab.scss @@ -0,0 +1,33 @@ +@charset "UTF-8"; + +.info-display-tab { + .column-card { + float: left; + width: 284px; + overflow: hidden; + box-shadow: 0px 0px 2px 0px rgba(0, 0, 0, 0.1), 0px 2px 2px 0px rgba(0, 0, 0, 0.1); + background: #fff; + height: 310px; + position: relative; + margin-right: 16px; + margin-bottom: 16px; + &:nth-child(3n) { + margin-right: 0; + } + } + + .column-card-desc { + height: 144px; + overflow: hidden; + line-height: 24px; + font-size: 14px; + color: #666; + margin: 5px auto 0 auto; + } + + .titleStyle { + font-size: 18px; + text-align: center; + margin-top: 22px; + } +} diff --git a/templates/ice-design/blocks/InfoDisplayTab/lib/index.js b/templates/ice-design/blocks/InfoDisplayTab/lib/index.js new file mode 100644 index 0000000000..38c8ee0099 --- /dev/null +++ b/templates/ice-design/blocks/InfoDisplayTab/lib/index.js @@ -0,0 +1,14 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _InfoDisplayTab = require('./InfoDisplayTab'); + +var _InfoDisplayTab2 = _interopRequireDefault(_InfoDisplayTab); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +exports.default = _InfoDisplayTab2.default; +module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/InfoDisplayTab/mock/info-display-tab.json b/templates/ice-design/blocks/InfoDisplayTab/mock/info-display-tab.json new file mode 100644 index 0000000000..f062a3979b --- /dev/null +++ b/templates/ice-design/blocks/InfoDisplayTab/mock/info-display-tab.json @@ -0,0 +1,83 @@ +{ + "status": "success", + "data": { + "all": [ + { + "title": "淘宝头条", + "desc": "网罗天下高逼格好物的商品推荐平台,品质生活指南,只要是好的东西,我们这里就要。我们要求你有出众的选品能力,眼光独到,善于发现。在这里我们重新定义好。" + }, + { + "title": "淘宝头条", + "desc": "网罗天下高逼格好物的商品推荐平台,品质生活指南,只要是好的东西,我们这里就要。我们要求你有出众的选品能力,眼光独到,善于发现。在这里我们重新定义好。" + }, + { + "title": "淘宝头条", + "desc": "网罗天下高逼格好物的商品推荐平台,品质生活指南,只要是好的东西,我们这里就要。我们要求你有出众的选品能力,眼光独到,善于发现。在这里我们重新定义好。" + }, + { + "title": "淘宝头条", + "desc": "网罗天下高逼格好物的商品推荐平台,品质生活指南,只要是好的东西,我们这里就要。我们要求你有出众的选品能力,眼光独到,善于发现。在这里我们重新定义好。" + }, + { + "title": "淘宝头条", + "desc": "网罗天下高逼格好物的商品推荐平台,品质生活指南,只要是好的东西,我们这里就要。我们要求你有出众的选品能力,眼光独到,善于发现。在这里我们重新定义好。" + }, + { + "title": "淘宝头条", + "desc": "网罗天下高逼格好物的商品推荐平台,品质生活指南,只要是好的东西,我们这里就要。我们要求你有出众的选品能力,眼光独到,善于发现。在这里我们重新定义好。" + } + ], + "apply": [ + { + "title": "极有家", + "desc": "网罗天下高逼格好物的商品推荐平台,品质生活指南,只要是好的东西,我们这里就要。我们要求你有出众的选品能力,眼光独到,善于发现。在这里我们重新定义好。" + }, + { + "title": "极有家", + "desc": "网罗天下高逼格好物的商品推荐平台,品质生活指南,只要是好的东西,我们这里就要。我们要求你有出众的选品能力,眼光独到,善于发现。在这里我们重新定义好。" + }, + { + "title": "极有家", + "desc": "网罗天下高逼格好物的商品推荐平台,品质生活指南,只要是好的东西,我们这里就要。我们要求你有出众的选品能力,眼光独到,善于发现。在这里我们重新定义好。" + }, + { + "title": "极有家", + "desc": "网罗天下高逼格好物的商品推荐平台,品质生活指南,只要是好的东西,我们这里就要。我们要求你有出众的选品能力,眼光独到,善于发现。在这里我们重新定义好。" + }, + { + "title": "极有家", + "desc": "网罗天下高逼格好物的商品推荐平台,品质生活指南,只要是好的东西,我们这里就要。我们要求你有出众的选品能力,眼光独到,善于发现。在这里我们重新定义好。" + }, + { + "title": "极有家", + "desc": "网罗天下高逼格好物的商品推荐平台,品质生活指南,只要是好的东西,我们这里就要。我们要求你有出众的选品能力,眼光独到,善于发现。在这里我们重新定义好。" + } + ], + "existing": [ + { + "title": "聚划算", + "desc": "网罗天下高逼格好物的商品推荐平台,品质生活指南,只要是好的东西,我们这里就要。我们要求你有出众的选品能力,眼光独到,善于发现。在这里我们重新定义好。" + }, + { + "title": "聚划算", + "desc": "网罗天下高逼格好物的商品推荐平台,品质生活指南,只要是好的东西,我们这里就要。我们要求你有出众的选品能力,眼光独到,善于发现。在这里我们重新定义好。" + }, + { + "title": "聚划算", + "desc": "网罗天下高逼格好物的商品推荐平台,品质生活指南,只要是好的东西,我们这里就要。我们要求你有出众的选品能力,眼光独到,善于发现。在这里我们重新定义好。" + }, + { + "title": "聚划算", + "desc": "网罗天下高逼格好物的商品推荐平台,品质生活指南,只要是好的东西,我们这里就要。我们要求你有出众的选品能力,眼光独到,善于发现。在这里我们重新定义好。" + }, + { + "title": "聚划算", + "desc": "网罗天下高逼格好物的商品推荐平台,品质生活指南,只要是好的东西,我们这里就要。我们要求你有出众的选品能力,眼光独到,善于发现。在这里我们重新定义好。" + }, + { + "title": "聚划算", + "desc": "网罗天下高逼格好物的商品推荐平台,品质生活指南,只要是好的东西,我们这里就要。我们要求你有出众的选品能力,眼光独到,善于发现。在这里我们重新定义好。" + } + ] + } +} diff --git a/templates/ice-design/blocks/InfoDisplayTab/package.json b/templates/ice-design/blocks/InfoDisplayTab/package.json new file mode 100644 index 0000000000..943aa14b04 --- /dev/null +++ b/templates/ice-design/blocks/InfoDisplayTab/package.json @@ -0,0 +1,54 @@ +{ + "name": "@icedesign/info-display-tab-block", + "version": "0.1.0", + "description": "", + "main": "lib/index.js", + "files": [ + "src/", + "demo/", + "lib/", + "mock/" + ], + "author": { + "name": "ICE Team", + "email": "ice-admin@alibaba-inc.com" + }, + "repository": { + "type": "git", + "url": "https://github.com/alibaba/ice" + }, + "license": "MIT", + "keywords": [ + "ice", + "ice-block" + ], + "dependencies": { + "axios": "^0.17.1", + "prop-types": "^15.5.8", + "@icedesign/base": "^0.1.0", + "@icedesign/card": "^0.1.0", + "@icedesign/ellipsis": "^0.1.0" + }, + "devDependencies": { + "babel-eslint": "^8.0.3", + "eslint": "^4.13.1", + "eslint-plugin-babel": "^4.1.1", + "eslint-plugin-react": "^7.5.1", + "@icedesign/demo-layout": "^0.1.0", + "eslint-plugin-import": "^2.8.0", + "eslint-config-airbnb": "^16.1.0", + "eslint-plugin-jsx-a11y": "^6.0.3", + "@icedesign/skin": "^0.1.2" + }, + "blockConfig": { + "name": "info-display-tab", + "description": "标签页信息展示", + "chinese": "标签页信息展示", + "category": "info-display", + "snapshot": "https://img.alicdn.com/tfs/TB1eHD0fiqAXuNjy1XdXXaYcVXa-914-700.png", + "sketchURL": "", + "icelandURL": "", + "themePackage": "@icedesign/skin" + }, + "scripts": {} +} diff --git a/templates/ice-design/blocks/InfoDisplayTab/src/InfoDisplayTab.jsx b/templates/ice-design/blocks/InfoDisplayTab/src/InfoDisplayTab.jsx new file mode 100644 index 0000000000..6c4784ff50 --- /dev/null +++ b/templates/ice-design/blocks/InfoDisplayTab/src/InfoDisplayTab.jsx @@ -0,0 +1,111 @@ +'use strict'; + +import React, {Component} from 'react'; +import PropTypes from 'prop-types'; +import IceCard from '@icedesign/card'; +import {Tab, Button, Grid} from '@icedesign/base'; +import IceEllipsis from '@icedesign/ellipsis'; +import axios from 'axios'; +import './InfoDisplayTab.scss'; + +const {Row, Col} = Grid; +const {TabPane} = Tab; + +export default class InfoDisplayTab extends Component { + static displayName = 'InfoDisplayTab'; + + static propTypes = { + style: PropTypes.object, + className: PropTypes.string, + }; + + static defaultProps = {}; + + constructor(props) { + super(props); + this.state = { + tabData: {}, + }; + } + + /** + * 异步获取数据 + */ + getData = () => { + axios + .get('/mock/info-display-tab.json') + .then(response => { + this.setState({ + tabData: response.data.data || {}, + }); + }) + .catch(error => { + console.log(error); + }); + }; + + componentDidMount() { + this.getData(); + } + + renderContent = data => { + return data.map((item, index) => { + return ( +
    + + {item.title} + + + +
    + +
    + +
    + + + + + +
    + ); + }); + }; + + render() { + const {tabData} = this.state; + return ( +
    + + + + {tabData.all ? this.renderContent(tabData.all) : '暂无数据'} + + + {tabData.apply ? this.renderContent(tabData.apply) : '暂无数据'} + + + {tabData.existing + ? this.renderContent(tabData.existing) + : '暂无数据'} + + + +
    + ); + } +} + +const styles = {"columnCard":{"float":"left","width":"284px","overflow":"hidden","boxShadow":"0px 0px 2px 0px rgba(0"},"columnCardDesc":{"height":"144px","overflow":"hidden","lineHeight":"24px","fontSize":"14px","color":"#666","margin":"5px auto 0 auto"},"infoDisplayTab":{},"todo0":{"marginTop":"20px"},"todo1":{"textAlign":"center","marginTop":"15px"}} \ No newline at end of file diff --git a/templates/ice-design/blocks/InfoDisplayTab/src/InfoDisplayTab.scss b/templates/ice-design/blocks/InfoDisplayTab/src/InfoDisplayTab.scss new file mode 100644 index 0000000000..dd93e4ea5b --- /dev/null +++ b/templates/ice-design/blocks/InfoDisplayTab/src/InfoDisplayTab.scss @@ -0,0 +1,33 @@ +@charset "UTF-8"; + +.info-display-tab { + .column-card { + float: left; + width: 284px; + overflow: hidden; + box-shadow: 0px 0px 2px 0px rgba(0, 0, 0, 0.1), 0px 2px 2px 0px rgba(0, 0, 0, 0.1); + background: #fff; + height: 310px; + position: relative; + margin-right: 16px; + margin-bottom: 16px; + &:nth-child(3n) { + margin-right: 0; + } + } + + .column-card-desc { + height: 144px; + overflow: hidden; + line-height: 24px; + font-size: 14px; + color: #666; + margin: 5px auto 0 auto; + } + + .titleStyle { + font-size: 18px; + text-align: center; + margin-top: 22px; + } +} diff --git a/templates/ice-design/blocks/InfoDisplayTab/src/index.js b/templates/ice-design/blocks/InfoDisplayTab/src/index.js new file mode 100644 index 0000000000..5858878294 --- /dev/null +++ b/templates/ice-design/blocks/InfoDisplayTab/src/index.js @@ -0,0 +1,3 @@ +import InfoDisplayTab from './InfoDisplayTab'; + +export default InfoDisplayTab; diff --git a/templates/ice-design/blocks/InfoDisplayTable/.editorconfig b/templates/ice-design/blocks/InfoDisplayTable/.editorconfig new file mode 100644 index 0000000000..22ef5ace54 --- /dev/null +++ b/templates/ice-design/blocks/InfoDisplayTable/.editorconfig @@ -0,0 +1,16 @@ +# http://editorconfig.org +root = true + +[*] +indent_style = space +indent_size = 2 +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false + +[makefile] +indent_style = tab +indent_size = 4 diff --git a/templates/ice-design/blocks/InfoDisplayTable/.eslintignore b/templates/ice-design/blocks/InfoDisplayTable/.eslintignore new file mode 100644 index 0000000000..3b21308fc7 --- /dev/null +++ b/templates/ice-design/blocks/InfoDisplayTable/.eslintignore @@ -0,0 +1,12 @@ +# 忽略目录 +build/ +tests/ +demo/ +lib/ + +# node 覆盖率文件 +coverage/ + +# 忽略文件 +**/*-min.js +**/*.min.js \ No newline at end of file diff --git a/templates/ice-design/blocks/InfoDisplayTable/.eslintrc b/templates/ice-design/blocks/InfoDisplayTable/.eslintrc new file mode 100644 index 0000000000..7a4e5bac48 --- /dev/null +++ b/templates/ice-design/blocks/InfoDisplayTable/.eslintrc @@ -0,0 +1,62 @@ +{ + "root": true, + "parser": "babel-eslint", + "extends": "eslint-config-airbnb", + "parserOptions": { + "ecmaVersion": 6, + "ecmaFeatures": { + "jsx": true, + "experimentalObjectRestSpread": true + } + }, + "env": { + "browser": true + }, + "plugins": [ + "react", + "babel" + ], + "rules": { + "react/forbid-prop-types": 0, + "jsx-a11y/label-has-for": 0, + "jsx-a11y/no-static-element-interactions": 0, + "jsx-a11y/anchor-has-content": 0, + "jsx-a11y/click-events-have-key-events": 0, + "jsx-a11y/anchor-is-valid": 0, + "react/no-array-index-key": 0, + "func-names": 0, + "arrow-body-style": 0, + "no-use-before-define": 0, + "react/sort-comp": 0, + "react/prop-types": 0, + "react/jsx-first-prop-new-line": 0, + "react/jsx-filename-extension": [ + 1, + { + "extensions": [ + ".js", + ".jsx" + ] + } + ], + "import/extensions": 0, + "import/no-unresolved": 0, + "import/no-extraneous-dependencies": 0, + "prefer-destructuring": 0, + "no-param-reassign": 0, + "no-return-assign": 0, + "max-len": 0, + "consistent-return": 0, + "no-redeclare": 0, + "react/require-extension": 0, + "react/no-danger": 0, + "comma-dangle": [ + "error", + "always-multiline" + ], + "function-paren-newline": 0, + "object-curly-newline": 0, + "no-restricted-globals": 0, + "react/prefer-stateless-function": 0 + } +} diff --git a/templates/ice-design/blocks/InfoDisplayTable/.gitignore b/templates/ice-design/blocks/InfoDisplayTable/.gitignore new file mode 100644 index 0000000000..cc45d6fb3c --- /dev/null +++ b/templates/ice-design/blocks/InfoDisplayTable/.gitignore @@ -0,0 +1,13 @@ + +*.swp +*.dia~ +.idea/ +.DS_Store + +npm-debug.log +yarn-error.log +node_modules/ +tmp/ + +# happypack 缓存 +.happypack diff --git a/templates/ice-design/blocks/InfoDisplayTable/README.md b/templates/ice-design/blocks/InfoDisplayTable/README.md new file mode 100644 index 0000000000..97cfcef276 --- /dev/null +++ b/templates/ice-design/blocks/InfoDisplayTable/README.md @@ -0,0 +1,13 @@ +# InfoDisplayTable + +简介:两栏信息展示型表格 + + + +## 效果图 +![效果图](https://img.alicdn.com/tfs/TB1niC_fiqAXuNjy1XdXXaYcVXa-959-294.png) + +## 更多 + +* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) +* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) diff --git a/templates/ice-design/blocks/InfoDisplayTable/demo/index.html b/templates/ice-design/blocks/InfoDisplayTable/demo/index.html new file mode 100644 index 0000000000..9d2d3a663d --- /dev/null +++ b/templates/ice-design/blocks/InfoDisplayTable/demo/index.html @@ -0,0 +1,19 @@ + + + + + + + + Document + + + + +
    + + + + + + diff --git a/templates/ice-design/blocks/InfoDisplayTable/demo/index.js b/templates/ice-design/blocks/InfoDisplayTable/demo/index.js new file mode 100644 index 0000000000..92d23644de --- /dev/null +++ b/templates/ice-design/blocks/InfoDisplayTable/demo/index.js @@ -0,0 +1,14 @@ +import React, { Component } from 'react'; +import { render } from 'react-dom'; +import DemoLayout from '@icedesign/demo-layout'; +import Block from '../src'; + +const props = { + // ... +}; + +render(( + + + +), document.querySelector('#mountNode')); diff --git a/templates/ice-design/blocks/InfoDisplayTable/lib/InfoDisplayTable.js b/templates/ice-design/blocks/InfoDisplayTable/lib/InfoDisplayTable.js new file mode 100644 index 0000000000..95aecbae7d --- /dev/null +++ b/templates/ice-design/blocks/InfoDisplayTable/lib/InfoDisplayTable.js @@ -0,0 +1,117 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = undefined; + +var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + +var _class, _temp; + +var _react = require('react'); + +var _react2 = _interopRequireDefault(_react); + +var _propTypes = require('prop-types'); + +var _propTypes2 = _interopRequireDefault(_propTypes); + +var _card = require('@icedesign/card'); + +var _card2 = _interopRequireDefault(_card); + +require('./InfoDisplayTable.scss'); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } + +var Table = require('@icedesign/base/lib/table'); + +/** + * 表格接收的数据 + */ +var dataSource = function dataSource() { + return [{ + label: '姓名', + value: '张三' + }, { + label: '性别', + value: '男' + }, { + label: '年龄', + value: '25' + }, { + label: '籍贯', + value: '杭州' + }, { + label: '职业', + value: '程序员' + }]; +}; + +var InfoDisplayTable = (_temp = _class = function (_Component) { + _inherits(InfoDisplayTable, _Component); + + function InfoDisplayTable(props) { + _classCallCheck(this, InfoDisplayTable); + + var _this = _possibleConstructorReturn(this, (InfoDisplayTable.__proto__ || Object.getPrototypeOf(InfoDisplayTable)).call(this, props)); + + _this.state = {}; + return _this; + } + + // ICE: React Component 的生命周期 + // http://ice.alibaba-inc.com/docs/guide/intro-react#React-组件的生命周期 + + + _createClass(InfoDisplayTable, [{ + key: 'componentWillMount', + value: function componentWillMount() {} + }, { + key: 'componentDidMount', + value: function componentDidMount() {} + }, { + key: 'componentWillReceiveProps', + value: function componentWillReceiveProps(nextProps, nextContext) {} + }, { + key: 'shouldComponentUpdate', + value: function shouldComponentUpdate(nextProps, nextState) { + return true; + } + }, { + key: 'componentWillUnmount', + value: function componentWillUnmount() {} + }, { + key: 'render', + value: function render() { + return _react2.default.createElement( + 'div', + { className: 'info-display-table', style: styles.infoDisplayTable }, + _react2.default.createElement( + _card2.default, + null, + _react2.default.createElement( + Table, + { dataSource: dataSource() }, + _react2.default.createElement(Table.Column, { title: '\u4E2A\u4EBA\u4FE1\u606F', dataIndex: 'label' }), + _react2.default.createElement(Table.Column, { title: '', dataIndex: 'value' }) + ) + ) + ); + } + }]); + + return InfoDisplayTable; +}(_react.Component), _class.displayName = 'InfoDisplayTable', _class.propTypes = {}, _class.defaultProps = {}, _temp); +exports.default = InfoDisplayTable; + + +var styles = { "infoDisplayTable": {} }; +module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/InfoDisplayTable/lib/InfoDisplayTable.scss b/templates/ice-design/blocks/InfoDisplayTable/lib/InfoDisplayTable.scss new file mode 100644 index 0000000000..1ba2d0e18c --- /dev/null +++ b/templates/ice-design/blocks/InfoDisplayTable/lib/InfoDisplayTable.scss @@ -0,0 +1,18 @@ +@charset "UTF-8"; + +.info-display-table { + .next-table tr { + th { + border: 0; + border-bottom: 1px solid #EEEFF3; + } + th:first-child { + font-weight: bold; + color: #333; + font-size: 18px; + } + } + .next-table .next-table-cell.first { + font-weight: bold; + } +} diff --git a/templates/ice-design/blocks/InfoDisplayTable/lib/index.js b/templates/ice-design/blocks/InfoDisplayTable/lib/index.js new file mode 100644 index 0000000000..2e84ca88bc --- /dev/null +++ b/templates/ice-design/blocks/InfoDisplayTable/lib/index.js @@ -0,0 +1,14 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _InfoDisplayTable = require('./InfoDisplayTable'); + +var _InfoDisplayTable2 = _interopRequireDefault(_InfoDisplayTable); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +exports.default = _InfoDisplayTable2.default; +module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/InfoDisplayTable/mock/api.json b/templates/ice-design/blocks/InfoDisplayTable/mock/api.json new file mode 100644 index 0000000000..e706430232 --- /dev/null +++ b/templates/ice-design/blocks/InfoDisplayTable/mock/api.json @@ -0,0 +1,4 @@ +{ + "status": "success", + "data": {} +} diff --git a/templates/ice-design/blocks/InfoDisplayTable/package.json b/templates/ice-design/blocks/InfoDisplayTable/package.json new file mode 100644 index 0000000000..978f50846d --- /dev/null +++ b/templates/ice-design/blocks/InfoDisplayTable/package.json @@ -0,0 +1,52 @@ +{ + "name": "@icedesign/info-display-table-block", + "version": "0.1.0", + "description": "", + "main": "lib/index.js", + "files": [ + "src/", + "demo/", + "lib/", + "mock/" + ], + "author": { + "name": "ICE Team", + "email": "ice-admin@alibaba-inc.com" + }, + "repository": { + "type": "git", + "url": "https://github.com/alibaba/ice" + }, + "license": "MIT", + "keywords": [ + "ice", + "ice-block" + ], + "dependencies": { + "prop-types": "^15.5.8", + "@icedesign/base": "^0.1.0", + "@icedesign/card": "^0.1.0" + }, + "devDependencies": { + "babel-eslint": "^8.0.3", + "eslint": "^4.13.1", + "eslint-plugin-babel": "^4.1.1", + "eslint-plugin-react": "^7.5.1", + "@icedesign/demo-layout": "^0.1.0", + "eslint-plugin-import": "^2.8.0", + "eslint-config-airbnb": "^16.1.0", + "eslint-plugin-jsx-a11y": "^6.0.3", + "@icedesign/skin": "^0.1.2" + }, + "blockConfig": { + "name": "info-display-table", + "description": "两栏信息展示型表格", + "chinese": "两栏信息展示型表格", + "category": "table", + "snapshot": "https://img.alicdn.com/tfs/TB1niC_fiqAXuNjy1XdXXaYcVXa-959-294.png", + "sketchURL": "", + "icelandURL": "", + "themePackage": "@icedesign/skin" + }, + "scripts": {} +} diff --git a/templates/ice-design/blocks/InfoDisplayTable/src/InfoDisplayTable.jsx b/templates/ice-design/blocks/InfoDisplayTable/src/InfoDisplayTable.jsx new file mode 100644 index 0000000000..4a9aa5bc40 --- /dev/null +++ b/templates/ice-design/blocks/InfoDisplayTable/src/InfoDisplayTable.jsx @@ -0,0 +1,89 @@ +'use strict'; + +import React, { Component } from 'react'; +import PropTypes from 'prop-types'; +import { Table } from '@icedesign/base'; +import IceCard from '@icedesign/card'; +import './InfoDisplayTable.scss'; + +/** + * 表格接收的数据 + */ +const dataSource = () => { + return [ + { + label: '姓名', + value: '张三', + }, + { + label: '性别', + value: '男' + }, + { + label: '年龄', + value: '25' + }, + { + label: '籍贯', + value: '杭州' + }, + { + label: '职业', + value: '程序员' + }, + ]; +}; + +export default class InfoDisplayTable extends Component { + static displayName = 'InfoDisplayTable'; + + static propTypes = { + }; + + static defaultProps = { + }; + + constructor(props) { + super(props); + this.state = { + + }; + } + + // ICE: React Component 的生命周期 + // http://ice.alibaba-inc.com/docs/guide/intro-react#React-组件的生命周期 + componentWillMount() { + + } + + componentDidMount() { + + } + + componentWillReceiveProps(nextProps, nextContext) { + + } + + shouldComponentUpdate(nextProps, nextState) { + return true; + } + + componentWillUnmount() { + + } + + render() { + return ( +
    + + + + +
    +
    +
    + ); + } +} + +const styles = {"infoDisplayTable":{}} \ No newline at end of file diff --git a/templates/ice-design/blocks/InfoDisplayTable/src/InfoDisplayTable.scss b/templates/ice-design/blocks/InfoDisplayTable/src/InfoDisplayTable.scss new file mode 100644 index 0000000000..1ba2d0e18c --- /dev/null +++ b/templates/ice-design/blocks/InfoDisplayTable/src/InfoDisplayTable.scss @@ -0,0 +1,18 @@ +@charset "UTF-8"; + +.info-display-table { + .next-table tr { + th { + border: 0; + border-bottom: 1px solid #EEEFF3; + } + th:first-child { + font-weight: bold; + color: #333; + font-size: 18px; + } + } + .next-table .next-table-cell.first { + font-weight: bold; + } +} diff --git a/templates/ice-design/blocks/InfoDisplayTable/src/index.js b/templates/ice-design/blocks/InfoDisplayTable/src/index.js new file mode 100644 index 0000000000..59b2ab0d35 --- /dev/null +++ b/templates/ice-design/blocks/InfoDisplayTable/src/index.js @@ -0,0 +1,3 @@ +import InfoDisplayTable from './InfoDisplayTable'; + +export default InfoDisplayTable; diff --git a/templates/ice-design/blocks/JoinUs/.editorconfig b/templates/ice-design/blocks/JoinUs/.editorconfig new file mode 100644 index 0000000000..22ef5ace54 --- /dev/null +++ b/templates/ice-design/blocks/JoinUs/.editorconfig @@ -0,0 +1,16 @@ +# http://editorconfig.org +root = true + +[*] +indent_style = space +indent_size = 2 +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false + +[makefile] +indent_style = tab +indent_size = 4 diff --git a/templates/ice-design/blocks/JoinUs/.eslintignore b/templates/ice-design/blocks/JoinUs/.eslintignore new file mode 100644 index 0000000000..3b21308fc7 --- /dev/null +++ b/templates/ice-design/blocks/JoinUs/.eslintignore @@ -0,0 +1,12 @@ +# 忽略目录 +build/ +tests/ +demo/ +lib/ + +# node 覆盖率文件 +coverage/ + +# 忽略文件 +**/*-min.js +**/*.min.js \ No newline at end of file diff --git a/templates/ice-design/blocks/JoinUs/.eslintrc b/templates/ice-design/blocks/JoinUs/.eslintrc new file mode 100644 index 0000000000..7a4e5bac48 --- /dev/null +++ b/templates/ice-design/blocks/JoinUs/.eslintrc @@ -0,0 +1,62 @@ +{ + "root": true, + "parser": "babel-eslint", + "extends": "eslint-config-airbnb", + "parserOptions": { + "ecmaVersion": 6, + "ecmaFeatures": { + "jsx": true, + "experimentalObjectRestSpread": true + } + }, + "env": { + "browser": true + }, + "plugins": [ + "react", + "babel" + ], + "rules": { + "react/forbid-prop-types": 0, + "jsx-a11y/label-has-for": 0, + "jsx-a11y/no-static-element-interactions": 0, + "jsx-a11y/anchor-has-content": 0, + "jsx-a11y/click-events-have-key-events": 0, + "jsx-a11y/anchor-is-valid": 0, + "react/no-array-index-key": 0, + "func-names": 0, + "arrow-body-style": 0, + "no-use-before-define": 0, + "react/sort-comp": 0, + "react/prop-types": 0, + "react/jsx-first-prop-new-line": 0, + "react/jsx-filename-extension": [ + 1, + { + "extensions": [ + ".js", + ".jsx" + ] + } + ], + "import/extensions": 0, + "import/no-unresolved": 0, + "import/no-extraneous-dependencies": 0, + "prefer-destructuring": 0, + "no-param-reassign": 0, + "no-return-assign": 0, + "max-len": 0, + "consistent-return": 0, + "no-redeclare": 0, + "react/require-extension": 0, + "react/no-danger": 0, + "comma-dangle": [ + "error", + "always-multiline" + ], + "function-paren-newline": 0, + "object-curly-newline": 0, + "no-restricted-globals": 0, + "react/prefer-stateless-function": 0 + } +} diff --git a/templates/ice-design/blocks/JoinUs/.gitignore b/templates/ice-design/blocks/JoinUs/.gitignore new file mode 100644 index 0000000000..cc45d6fb3c --- /dev/null +++ b/templates/ice-design/blocks/JoinUs/.gitignore @@ -0,0 +1,13 @@ + +*.swp +*.dia~ +.idea/ +.DS_Store + +npm-debug.log +yarn-error.log +node_modules/ +tmp/ + +# happypack 缓存 +.happypack diff --git a/templates/ice-design/blocks/JoinUs/README.md b/templates/ice-design/blocks/JoinUs/README.md new file mode 100644 index 0000000000..307c00238b --- /dev/null +++ b/templates/ice-design/blocks/JoinUs/README.md @@ -0,0 +1,10 @@ +# join-us + +简介:加入我们 + +![截图](https://img.alicdn.com/tfs/TB1L1SQjr_I8KJjy1XaXXbsxpXa-2650-1126.png) + +## 更多 + +* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) +* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) diff --git a/templates/ice-design/blocks/JoinUs/demo/index.html b/templates/ice-design/blocks/JoinUs/demo/index.html new file mode 100644 index 0000000000..cb0422f8d9 --- /dev/null +++ b/templates/ice-design/blocks/JoinUs/demo/index.html @@ -0,0 +1,18 @@ + + + + + + + + Document + + + + +
    + + + + + diff --git a/templates/ice-design/blocks/JoinUs/demo/index.js b/templates/ice-design/blocks/JoinUs/demo/index.js new file mode 100644 index 0000000000..f80b542308 --- /dev/null +++ b/templates/ice-design/blocks/JoinUs/demo/index.js @@ -0,0 +1,14 @@ +import React, { Component } from 'react'; +import { render } from 'react-dom'; + +// 载入默认全局样式 normalize 、.clearfix 和一些 mixin 方法等 +import '@icedesign/base/lib/_components/@alife/next-core/lib/index.scss'; + +import DemoLayout from '@icedesign/demo-layout'; +import Block from '../src'; + +const props = { + // ... +}; + +render(, document.querySelector('#mountNode')); diff --git a/templates/ice-design/blocks/JoinUs/lib/JoinUs.js b/templates/ice-design/blocks/JoinUs/lib/JoinUs.js new file mode 100644 index 0000000000..07bf16f23f --- /dev/null +++ b/templates/ice-design/blocks/JoinUs/lib/JoinUs.js @@ -0,0 +1,233 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = undefined; + +var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; + +var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + +var _class, _temp; + +var _react = require('react'); + +var _react2 = _interopRequireDefault(_react); + +var _formBinder = require('@icedesign/form-binder'); + +require('./JoinUs.scss'); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } + +var Grid = require('@icedesign/base/lib/grid'); + +var Input = require('@icedesign/base/lib/input'); + +var Button = require('@icedesign/base/lib/button'); + +var Row = Grid.Row, + Col = Grid.Col; + +var telPattern = /^(1[\d]{1}[\d]{9})|(((400)-(\d{3})-(\d{4}))|^((\d{7,8})|(\d{4}|\d{3})-(\d{7,8})|(\d{7,8})-(\d{4}|\d{3}|\d{2}|\d{1}))$)$|^([ ]?)$/; + +var JoinUs = (_temp = _class = function (_Component) { + _inherits(JoinUs, _Component); + + function JoinUs(props) { + _classCallCheck(this, JoinUs); + + var _this = _possibleConstructorReturn(this, (JoinUs.__proto__ || Object.getPrototypeOf(JoinUs)).call(this, props)); + + _this.formChange = function (newValue) { + _this.setState({ + formValue: newValue + }); + }; + + _this.handleSubmit = function () { + _this.form.validateAll(function (error, value) { + console.log(value); + }); + }; + + _this.state = { + formValue: { + username: '', + email: '', + phone: '', + jobtitle: '', + content: '' + } + }; + return _this; + } + + _createClass(JoinUs, [{ + key: 'render', + value: function render() { + var _this2 = this; + + return _react2.default.createElement( + 'div', + { + className: 'join-us', + style: _extends({}, styles.container, styles.joinUs) + }, + _react2.default.createElement( + 'div', + { style: styles.content }, + _react2.default.createElement( + 'div', + { style: styles.head }, + _react2.default.createElement( + 'h2', + { style: styles.title }, + '\u6211\u4EEC\u7684\u56E2\u961F' + ), + _react2.default.createElement( + 'p', + { style: styles.intro }, + '\u6211\u4EEC\u662F\u4E00\u652F\u5145\u6EE1\u6FC0\u60C5\u3001\u5FD7\u5411\u8FDC\u5927\u3001\u6000\u63E3\u68A6\u60F3\u7684\u56E2\u961F\uFF0C', + _react2.default.createElement('br', null), + '\u4E5F\u662F\u4E00\u4E2A\u601D\u7EF4\u6D3B\u8DC3\u3001\u671D\u6C14\u84EC\u52C3\u3001\u56E2\u7ED3\u4E92\u52A9\u7684\u5927\u5BB6\u5EAD' + ) + ), + _react2.default.createElement( + _formBinder.FormBinderWrapper, + { + ref: function ref(form) { + _this2.form = form; + }, + value: this.state.formValue, + onChange: this.formChange + }, + _react2.default.createElement( + 'div', + { style: styles.formContent }, + _react2.default.createElement( + Row, + { className: 'hoz-form-item', style: styles.hozFormItem }, + _react2.default.createElement( + Col, + { span: 8 }, + _react2.default.createElement( + _formBinder.FormBinder, + { required: true, message: '\u5FC5\u586B\u9879' }, + _react2.default.createElement(Input, { name: 'username', placeholder: '\u59D3\u540D' }) + ), + _react2.default.createElement( + 'div', + { style: styles.formErrorWrapper }, + _react2.default.createElement(_formBinder.FormError, { name: 'username', style: styles.errorText }) + ) + ), + _react2.default.createElement( + Col, + { span: 8 }, + _react2.default.createElement( + _formBinder.FormBinder, + { type: 'email', required: true, message: '\u90AE\u7BB1\u4E0D\u5408\u6CD5' }, + _react2.default.createElement(Input, { name: 'email', placeholder: '\u90AE\u7BB1' }) + ), + _react2.default.createElement( + 'div', + { style: styles.formErrorWrapper }, + _react2.default.createElement(_formBinder.FormError, { name: 'email', style: styles.errorText }) + ) + ), + _react2.default.createElement( + Col, + { span: 8 }, + _react2.default.createElement( + _formBinder.FormBinder, + { + required: true, + message: '\u8BF7\u8F93\u5165\u5408\u6CD5\u7684\u7535\u8BDD\u53F7\u7801', + pattern: telPattern, + triggerType: 'onBlur' + }, + _react2.default.createElement(Input, { name: 'phone', placeholder: '\u7535\u8BDD' }) + ), + _react2.default.createElement( + 'div', + { style: styles.formErrorWrapper }, + _react2.default.createElement(_formBinder.FormError, { name: 'phone', style: styles.errorText }) + ) + ) + ), + _react2.default.createElement( + Row, + { className: 'ver-form-item', style: styles.verFormItem }, + _react2.default.createElement( + _formBinder.FormBinder, + null, + _react2.default.createElement(Input, { name: 'jobtitle', placeholder: '\u804C\u4F4D' }) + ) + ), + _react2.default.createElement( + Row, + { className: 'ver-form-item', style: styles.verFormItem }, + _react2.default.createElement( + _formBinder.FormBinder, + null, + _react2.default.createElement(Input, { multiple: true, name: 'content', placeholder: '\u4E00\u4E9B\u81EA\u6211\u4ECB\u7ECD' }) + ) + ), + _react2.default.createElement( + Row, + null, + _react2.default.createElement( + Col, + null, + _react2.default.createElement( + Button, + { + onClick: this.handleSubmit, + type: 'primary', + style: styles.submitBtn + }, + '\u63D0\u4EA4' + ) + ) + ) + ) + ) + ) + ); + } + }]); + + return JoinUs; +}(_react.Component), _class.displayName = 'JoinUs', _temp); +exports.default = JoinUs; + + +var styles = { + container: { + background: 'url(https://img.alicdn.com/tfs/TB1JGoDi3vD8KJjy0FlXXagBFXa-5040-2811.png)', + backgroundSize: 'cover' + }, + content: { + width: '1080px', + margin: '0 auto', + padding: '80px 0' + }, + head: { width: '50%', margin: '0 auto' }, + title: { margin: '0', textAlign: 'center', fontSize: '28px', color: '#fff' }, + intro: { textAlign: 'center', color: '#fff' }, + formContent: { width: '640px', margin: '60px auto' }, + errorText: { color: '#fff' }, + submitBtn: { color: '#2977f3', background: '#fff', borderRadius: '6px' }, + joinUs: {}, + hozFormItem: {}, + verFormItem: {} +}; +module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/JoinUs/lib/JoinUs.scss b/templates/ice-design/blocks/JoinUs/lib/JoinUs.scss new file mode 100644 index 0000000000..7b7538a7b0 --- /dev/null +++ b/templates/ice-design/blocks/JoinUs/lib/JoinUs.scss @@ -0,0 +1,21 @@ +@charset "UTF-8"; + +.join-us { + .next-input.next-input-single input, + .next-input.next-input-multiple textarea { + font-size: 12px; + } + .hoz-form-item { + .next-col { + padding: 0; + } + } + .ver-form-item { + .next-input { + width: 610px; + } + } + .next-row { + margin-bottom: 15px; + } +} diff --git a/templates/ice-design/blocks/JoinUs/lib/index.js b/templates/ice-design/blocks/JoinUs/lib/index.js new file mode 100644 index 0000000000..45d0544b00 --- /dev/null +++ b/templates/ice-design/blocks/JoinUs/lib/index.js @@ -0,0 +1,14 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _JoinUs = require('./JoinUs'); + +var _JoinUs2 = _interopRequireDefault(_JoinUs); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +exports.default = _JoinUs2.default; +module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/JoinUs/mock/api.json b/templates/ice-design/blocks/JoinUs/mock/api.json new file mode 100644 index 0000000000..eee2984fbe --- /dev/null +++ b/templates/ice-design/blocks/JoinUs/mock/api.json @@ -0,0 +1,4 @@ +{ + "status": "SUCCESS", + "data": {} +} diff --git a/templates/ice-design/blocks/JoinUs/package.json b/templates/ice-design/blocks/JoinUs/package.json new file mode 100644 index 0000000000..e6e2478014 --- /dev/null +++ b/templates/ice-design/blocks/JoinUs/package.json @@ -0,0 +1,55 @@ +{ + "name": "@icedesign/join-us-block-block", + "version": "0.1.0", + "description": "", + "files": [ + "src/", + "demo/", + "lib/", + "mock/" + ], + "scripts": {}, + "author": { + "name": "ICE Team", + "email": "ice-admin@alibaba-inc.com" + }, + "repository": { + "type": "git", + "url": "https://github.com/alibaba/ice" + }, + "license": "MIT", + "keywords": [ + "ice", + "ice-block" + ], + "dependencies": { + "@icedesign/base": "^0.1.0", + "prop-types": "^15.5.8", + "@icedesign/card": "^0.1.0", + "@icedesign/form-binder": "^0.1.0" + }, + "devDependencies": { + "@icedesign/skin": "^0.1.2", + "babel-eslint": "^8.0.3", + "eslint-plugin-react": "^7.5.1", + "react": "15.x", + "react-copy-to-clipboard": "^4.2.3", + "react-dom": "15.x", + "eslint": "^4.13.1", + "eslint-plugin-babel": "^4.1.1", + "eslint-plugin-import": "^2.8.0", + "eslint-config-airbnb": "^16.1.0", + "eslint-plugin-jsx-a11y": "^6.0.3", + "@icedesign/demo-layout": "^0.1.0" + }, + "blockConfig": { + "name": "join-us", + "description": "", + "chinese": "加入我们", + "category": "form", + "snapshot": "https://img.alicdn.com/tfs/TB1L1SQjr_I8KJjy1XaXXbsxpXa-2650-1126.png", + "sketchURL": "", + "icelandURL": "", + "themePackage": "@icedesign/skin" + } +} diff --git a/templates/ice-design/blocks/JoinUs/src/JoinUs.jsx b/templates/ice-design/blocks/JoinUs/src/JoinUs.jsx new file mode 100644 index 0000000000..2b599037ae --- /dev/null +++ b/templates/ice-design/blocks/JoinUs/src/JoinUs.jsx @@ -0,0 +1,143 @@ +import React, { Component } from 'react'; +import { Grid, Input, Button } from '@icedesign/base'; +import { FormBinderWrapper, FormBinder, FormError } from '@icedesign/form-binder'; +import './JoinUs.scss'; + +const { Row, Col } = Grid; +const telPattern = /^(1[\d]{1}[\d]{9})|(((400)-(\d{3})-(\d{4}))|^((\d{7,8})|(\d{4}|\d{3})-(\d{7,8})|(\d{7,8})-(\d{4}|\d{3}|\d{2}|\d{1}))$)$|^([ ]?)$/; + +export default class JoinUs extends Component { + static displayName = 'JoinUs'; + + constructor(props) { + super(props); + this.state = { + formValue: { + username: '', + email: '', + phone: '', + jobtitle: '', + content: '', + }, + }; + } + + formChange = (newValue) => { + this.setState({ + formValue: newValue, + }); + }; + + handleSubmit = () => { + this.form.validateAll((error, value) => { + console.log(value); + }); + }; + + render() { + return ( +
    +
    +
    +

    我们的团队

    +

    + 我们是一支充满激情、志向远大、怀揣梦想的团队,
    也是一个思维活跃、朝气蓬勃、团结互助的大家庭 +

    +
    + { + this.form = form; + }} + value={this.state.formValue} + onChange={this.formChange} + > +
    + + + + + +
    + +
    + + + + + +
    + +
    + + + + + +
    + +
    + +
    + + + + + + + + + + + + + + + + + + +
    +
    +
    +
    + ); + } +} + +const styles = { + container: { + background: 'url(https://img.alicdn.com/tfs/TB1JGoDi3vD8KJjy0FlXXagBFXa-5040-2811.png)', + backgroundSize: 'cover', + }, + content: { + width: '1080px', + margin: '0 auto', + padding: '80px 0', + }, + head: { width: '50%', margin: '0 auto' }, + title: { margin: '0', textAlign: 'center', fontSize: '28px', color: '#fff' }, + intro: { textAlign: 'center', color: '#fff' }, + formContent: { width: '640px', margin: '60px auto' }, + errorText: { color: '#fff' }, + submitBtn: { color: '#2977f3', background: '#fff', borderRadius: '6px' }, + joinUs: {}, + hozFormItem: {}, + verFormItem: {}, +}; diff --git a/templates/ice-design/blocks/JoinUs/src/JoinUs.scss b/templates/ice-design/blocks/JoinUs/src/JoinUs.scss new file mode 100644 index 0000000000..7b7538a7b0 --- /dev/null +++ b/templates/ice-design/blocks/JoinUs/src/JoinUs.scss @@ -0,0 +1,21 @@ +@charset "UTF-8"; + +.join-us { + .next-input.next-input-single input, + .next-input.next-input-multiple textarea { + font-size: 12px; + } + .hoz-form-item { + .next-col { + padding: 0; + } + } + .ver-form-item { + .next-input { + width: 610px; + } + } + .next-row { + margin-bottom: 15px; + } +} diff --git a/templates/ice-design/blocks/JoinUs/src/index.js b/templates/ice-design/blocks/JoinUs/src/index.js new file mode 100644 index 0000000000..b8ff077ebd --- /dev/null +++ b/templates/ice-design/blocks/JoinUs/src/index.js @@ -0,0 +1,3 @@ +import JoinUs from './JoinUs'; + +export default JoinUs; diff --git a/templates/ice-design/blocks/LandingIntroBanner/.editorconfig b/templates/ice-design/blocks/LandingIntroBanner/.editorconfig new file mode 100644 index 0000000000..22ef5ace54 --- /dev/null +++ b/templates/ice-design/blocks/LandingIntroBanner/.editorconfig @@ -0,0 +1,16 @@ +# http://editorconfig.org +root = true + +[*] +indent_style = space +indent_size = 2 +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false + +[makefile] +indent_style = tab +indent_size = 4 diff --git a/templates/ice-design/blocks/LandingIntroBanner/.eslintignore b/templates/ice-design/blocks/LandingIntroBanner/.eslintignore new file mode 100644 index 0000000000..2d5ec592a3 --- /dev/null +++ b/templates/ice-design/blocks/LandingIntroBanner/.eslintignore @@ -0,0 +1,12 @@ +# 忽略目录 +build/ +tests/ +demo/ +lib/ + +# node 覆盖率文件 +coverage/ + +# 忽略文件 +**/*-min.js +**/*.min.js diff --git a/templates/ice-design/blocks/LandingIntroBanner/.eslintrc b/templates/ice-design/blocks/LandingIntroBanner/.eslintrc new file mode 100644 index 0000000000..7cc397841e --- /dev/null +++ b/templates/ice-design/blocks/LandingIntroBanner/.eslintrc @@ -0,0 +1,61 @@ +{ + "root": true, + "parser": "babel-eslint", + "extends": "eslint-config-airbnb", + "parserOptions": { + "ecmaVersion": 6, + "ecmaFeatures": { + "jsx": true, + "experimentalObjectRestSpread": true + } + }, + "env": { + "browser": true + }, + "plugins": [ + "react", + "babel" + ], + "rules": { + "react/forbid-prop-types": 0, + "jsx-a11y/label-has-for": 0, + "jsx-a11y/no-static-element-interactions": 0, + "jsx-a11y/anchor-has-content": 0, + "jsx-a11y/click-events-have-key-events": 0, + "jsx-a11y/anchor-is-valid": 0, + "react/no-array-index-key": 0, + "func-names": 0, + "arrow-body-style": 0, + "no-use-before-define": 1, + "react/sort-comp": 0, + "react/prop-types": 0, + "react/jsx-first-prop-new-line": 0, + "react/jsx-filename-extension": [ + 1, + { + "extensions": [ + ".js", + ".jsx" + ] + } + ], + "import/extensions": 0, + "import/no-unresolved": 0, + "import/no-extraneous-dependencies": 0, + "prefer-destructuring": 0, + "no-param-reassign": 0, + "no-return-assign": 0, + "max-len": 0, + "consistent-return": 0, + "no-redeclare": 0, + "react/require-extension": 0, + "react/no-danger": 0, + "comma-dangle": [ + "error", + "always-multiline" + ], + "function-paren-newline": 0, + "object-curly-newline": 0, + "no-restricted-globals": 0 + } +} diff --git a/templates/ice-design/blocks/LandingIntroBanner/.gitignore b/templates/ice-design/blocks/LandingIntroBanner/.gitignore new file mode 100644 index 0000000000..cc45d6fb3c --- /dev/null +++ b/templates/ice-design/blocks/LandingIntroBanner/.gitignore @@ -0,0 +1,13 @@ + +*.swp +*.dia~ +.idea/ +.DS_Store + +npm-debug.log +yarn-error.log +node_modules/ +tmp/ + +# happypack 缓存 +.happypack diff --git a/templates/ice-design/blocks/LandingIntroBanner/README.md b/templates/ice-design/blocks/LandingIntroBanner/README.md new file mode 100644 index 0000000000..a5c9115ff7 --- /dev/null +++ b/templates/ice-design/blocks/LandingIntroBanner/README.md @@ -0,0 +1,11 @@ +# landing-intro-banner + +简介:首页介绍 Banner + +![截图](https://img.alicdn.com/tfs/TB1Cn3Kif6H8KJjy0FjXXaXepXa-2222-998.png) + +## 更多 + +* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) +* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) + diff --git a/templates/ice-design/blocks/LandingIntroBanner/demo/index.html b/templates/ice-design/blocks/LandingIntroBanner/demo/index.html new file mode 100644 index 0000000000..cb0422f8d9 --- /dev/null +++ b/templates/ice-design/blocks/LandingIntroBanner/demo/index.html @@ -0,0 +1,18 @@ + + + + + + + + Document + + + + +
    + + + + + diff --git a/templates/ice-design/blocks/LandingIntroBanner/demo/index.js b/templates/ice-design/blocks/LandingIntroBanner/demo/index.js new file mode 100644 index 0000000000..9610e2f782 --- /dev/null +++ b/templates/ice-design/blocks/LandingIntroBanner/demo/index.js @@ -0,0 +1,19 @@ +import React, { Component } from 'react'; +import { render } from 'react-dom'; + +// 载入默认全局样式 normalize 、.clearfix 和一些 mixin 方法等 +import '@icedesign/base/lib/_components/@alife/next-core/lib/index.scss'; + +import DemoLayout from '@icedesign/demo-layout'; +import Block from '../src'; + +const props = { + // ... +}; + +render( +
    + +
    , + document.querySelector('#mountNode') +); diff --git a/templates/ice-design/blocks/LandingIntroBanner/lib/LandingIntroBanner.js b/templates/ice-design/blocks/LandingIntroBanner/lib/LandingIntroBanner.js new file mode 100644 index 0000000000..6383b7a1cb --- /dev/null +++ b/templates/ice-design/blocks/LandingIntroBanner/lib/LandingIntroBanner.js @@ -0,0 +1,155 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = undefined; + +var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; + +var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + +var _class, _temp; + +var _react = require('react'); + +var _react2 = _interopRequireDefault(_react); + +var _reactRouter = require('react-router'); + +require('./LandingIntroBanner.scss'); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } + +var Button = require('@icedesign/base/lib/button'); + +// 寻找背景图片可以从 https://unsplash.com/ 寻找 +var backgroundImage = 'https://img.alicdn.com/tfs/TB1j9kWgvDH8KJjy1XcXXcpdXXa-1680-870.jpg'; + +var LandingIntroBanner = (_temp = _class = function (_Component) { + _inherits(LandingIntroBanner, _Component); + + function LandingIntroBanner(props) { + _classCallCheck(this, LandingIntroBanner); + + var _this = _possibleConstructorReturn(this, (LandingIntroBanner.__proto__ || Object.getPrototypeOf(LandingIntroBanner)).call(this, props)); + + _this.state = {}; + return _this; + } + + _createClass(LandingIntroBanner, [{ + key: 'render', + value: function render() { + // 登录介绍页面默认撑满一屏高度 + return _react2.default.createElement( + 'div', + { style: styles.landingIntro }, + _react2.default.createElement('div', { + style: _extends({}, styles.landingIntroBackground, { + backgroundImage: 'url('http://github.com/+%20backgroundImage%20+')' + }) + }), + _react2.default.createElement( + 'div', + { + className: 'landing-intro-banner-content-wrapper', + style: styles.contentWrapper + }, + _react2.default.createElement( + 'div', + null, + _react2.default.createElement( + 'h2', + { style: styles.title }, + '\u66F4\u5FEB\uFF0C\u66F4\u4F18\uFF0C\u66F4 Cool !', + _react2.default.createElement('br', null), + '\u6B22\u8FCE\u4F7F\u7528 ICE' + ), + _react2.default.createElement( + 'div', + { style: styles.buttons }, + _react2.default.createElement( + _reactRouter.Link, + { to: '/link-to-help-document' }, + _react2.default.createElement( + Button, + { + style: { + marginRight: 20, + height: 50, + padding: '0 58px', + fontSize: 16, + color: '#fff' + }, + type: 'primary', + size: 'large', + shape: 'ghost' + }, + '\u67E5\u770B\u5E2E\u52A9' + ) + ), + _react2.default.createElement( + _reactRouter.Link, + { to: '/link-to-dashboard' }, + _react2.default.createElement( + Button, + { + style: { height: 50, padding: '0 58px', fontSize: 16 }, + type: 'primary', + size: 'large' + }, + '\u7ACB\u5373\u4F7F\u7528' + ) + ) + ) + ) + ) + ); + } + }]); + + return LandingIntroBanner; +}(_react.Component), _class.displayName = 'LandingIntroBanner', _temp); +exports.default = LandingIntroBanner; + + +var styles = { + landingIntro: { + position: 'relative', + height: '100vh' + }, + landingIntroBackground: { + position: 'absolute', + top: 0, + left: 0, + right: 0, + bottom: 0, + backgroundSize: 'cover' + }, + contentWrapper: { + position: 'absolute', + top: 0, + left: 0, + right: 0, + bottom: 0, + display: 'flex', + justifyContent: 'center', + alignItems: 'center' + }, + title: { + textAlign: 'center', + color: '#fff', + fontSize: '32px', + letterSpacing: '1.94px', + lineHeight: '48px' + }, + buttons: { textAlign: 'center', marginTop: 70 } +}; +module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/LandingIntroBanner/lib/LandingIntroBanner.scss b/templates/ice-design/blocks/LandingIntroBanner/lib/LandingIntroBanner.scss new file mode 100644 index 0000000000..82cbe75248 --- /dev/null +++ b/templates/ice-design/blocks/LandingIntroBanner/lib/LandingIntroBanner.scss @@ -0,0 +1,9 @@ +@charset "UTF-8"; + +.landing-intro-banner-content-wrapper { + a:hover, + a:visited, + a:link { + color: #fff; + } +} diff --git a/templates/ice-design/blocks/LandingIntroBanner/lib/index.js b/templates/ice-design/blocks/LandingIntroBanner/lib/index.js new file mode 100644 index 0000000000..9122d97f60 --- /dev/null +++ b/templates/ice-design/blocks/LandingIntroBanner/lib/index.js @@ -0,0 +1,14 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _LandingIntroBanner = require('./LandingIntroBanner'); + +var _LandingIntroBanner2 = _interopRequireDefault(_LandingIntroBanner); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +exports.default = _LandingIntroBanner2.default; +module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/LandingIntroBanner/mock/api.json b/templates/ice-design/blocks/LandingIntroBanner/mock/api.json new file mode 100644 index 0000000000..e706430232 --- /dev/null +++ b/templates/ice-design/blocks/LandingIntroBanner/mock/api.json @@ -0,0 +1,4 @@ +{ + "status": "success", + "data": {} +} diff --git a/templates/ice-design/blocks/LandingIntroBanner/package.json b/templates/ice-design/blocks/LandingIntroBanner/package.json new file mode 100644 index 0000000000..ef50245a7a --- /dev/null +++ b/templates/ice-design/blocks/LandingIntroBanner/package.json @@ -0,0 +1,54 @@ +{ + "name": "@icedesign/landing-intro-banner-block", + "version": "0.1.0", + "description": "首页介绍 Banner", + "main": "lib/index.js", + "files": [ + "src/", + "demo/", + "mock/" + ], + "author": { + "name": "ICE Team", + "email": "ice-admin@alibaba-inc.com" + }, + "repository": { + "type": "git", + "url": "https://github.com/alibaba/ice" + }, + "license": "MIT", + "keywords": [ + "ice", + "ice-block" + ], + "dependencies": { + "prop-types": "^15.5.8", + "react-router": "^3.0.5", + "@icedesign/base": "^0.1.0" + }, + "devDependencies": { + "babel-eslint": "^8.0.3", + "eslint": "^4.13.1", + "eslint-plugin-babel": "^4.1.1", + "eslint-plugin-react": "^7.5.1", + "@icedesign/demo-layout": "^0.1.0", + "eslint-plugin-import": "^2.8.0", + "eslint-config-airbnb": "^16.1.0", + "eslint-plugin-jsx-a11y": "^6.0.3", + "@icedesign/skin": "^0.1.3" + }, + "blockConfig": { + "name": "landing-intro-banner", + "description": "首页介绍 Banner", + "chinese": "首页介绍 Banner", + "category": "info-display", + "snapshot": "https://img.alicdn.com/tfs/TB1Cn3Kif6H8KJjy0FjXXaXepXa-2222-998.png", + "sketchURL": "", + "icelandURL": "", + "themePackage": "@icedesign/skin" + }, + "scripts": { + "lint": "eslint . --ext '.js,.jsx' --fix", + "prepublish": "npm run lint" + } +} diff --git a/templates/ice-design/blocks/LandingIntroBanner/src/LandingIntroBanner.jsx b/templates/ice-design/blocks/LandingIntroBanner/src/LandingIntroBanner.jsx new file mode 100644 index 0000000000..51fb18c747 --- /dev/null +++ b/templates/ice-design/blocks/LandingIntroBanner/src/LandingIntroBanner.jsx @@ -0,0 +1,101 @@ +import React, { Component } from 'react'; +import { Button } from '@icedesign/base'; +import { Link } from 'react-router'; +import './LandingIntroBanner.scss'; + +// 寻找背景图片可以从 https://unsplash.com/ 寻找 +const backgroundImage = + 'https://img.alicdn.com/tfs/TB1j9kWgvDH8KJjy1XcXXcpdXXa-1680-870.jpg'; + +export default class LandingIntroBanner extends Component { + static displayName = 'LandingIntroBanner'; + + constructor(props) { + super(props); + this.state = {}; + } + + render() { + // 登录介绍页面默认撑满一屏高度 + return ( +
    +
    +
    +
    +

    + 更快,更优,更 Cool !
    欢迎使用 ICE +

    +
    + + + + + + +
    +
    +
    +
    + ); + } +} + +const styles = { + landingIntro: { + position: 'relative', + height: '100vh', + }, + landingIntroBackground: { + position: 'absolute', + top: 0, + left: 0, + right: 0, + bottom: 0, + backgroundSize: 'cover', + }, + contentWrapper: { + position: 'absolute', + top: 0, + left: 0, + right: 0, + bottom: 0, + display: 'flex', + justifyContent: 'center', + alignItems: 'center', + }, + title: { + textAlign: 'center', + color: '#fff', + fontSize: '32px', + letterSpacing: '1.94px', + lineHeight: '48px', + }, + buttons: { textAlign: 'center', marginTop: 70 }, +}; diff --git a/templates/ice-design/blocks/LandingIntroBanner/src/LandingIntroBanner.scss b/templates/ice-design/blocks/LandingIntroBanner/src/LandingIntroBanner.scss new file mode 100644 index 0000000000..82cbe75248 --- /dev/null +++ b/templates/ice-design/blocks/LandingIntroBanner/src/LandingIntroBanner.scss @@ -0,0 +1,9 @@ +@charset "UTF-8"; + +.landing-intro-banner-content-wrapper { + a:hover, + a:visited, + a:link { + color: #fff; + } +} diff --git a/templates/ice-design/blocks/LandingIntroBanner/src/index.js b/templates/ice-design/blocks/LandingIntroBanner/src/index.js new file mode 100644 index 0000000000..3c171a0f8c --- /dev/null +++ b/templates/ice-design/blocks/LandingIntroBanner/src/index.js @@ -0,0 +1,3 @@ +import LandingIntroBanner from './LandingIntroBanner'; + +export default LandingIntroBanner; diff --git a/templates/ice-design/blocks/LeftContentDisplay/.editorconfig b/templates/ice-design/blocks/LeftContentDisplay/.editorconfig new file mode 100644 index 0000000000..22ef5ace54 --- /dev/null +++ b/templates/ice-design/blocks/LeftContentDisplay/.editorconfig @@ -0,0 +1,16 @@ +# http://editorconfig.org +root = true + +[*] +indent_style = space +indent_size = 2 +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false + +[makefile] +indent_style = tab +indent_size = 4 diff --git a/templates/ice-design/blocks/LeftContentDisplay/.eslintignore b/templates/ice-design/blocks/LeftContentDisplay/.eslintignore new file mode 100644 index 0000000000..3b21308fc7 --- /dev/null +++ b/templates/ice-design/blocks/LeftContentDisplay/.eslintignore @@ -0,0 +1,12 @@ +# 忽略目录 +build/ +tests/ +demo/ +lib/ + +# node 覆盖率文件 +coverage/ + +# 忽略文件 +**/*-min.js +**/*.min.js \ No newline at end of file diff --git a/templates/ice-design/blocks/LeftContentDisplay/.eslintrc b/templates/ice-design/blocks/LeftContentDisplay/.eslintrc new file mode 100644 index 0000000000..7a4e5bac48 --- /dev/null +++ b/templates/ice-design/blocks/LeftContentDisplay/.eslintrc @@ -0,0 +1,62 @@ +{ + "root": true, + "parser": "babel-eslint", + "extends": "eslint-config-airbnb", + "parserOptions": { + "ecmaVersion": 6, + "ecmaFeatures": { + "jsx": true, + "experimentalObjectRestSpread": true + } + }, + "env": { + "browser": true + }, + "plugins": [ + "react", + "babel" + ], + "rules": { + "react/forbid-prop-types": 0, + "jsx-a11y/label-has-for": 0, + "jsx-a11y/no-static-element-interactions": 0, + "jsx-a11y/anchor-has-content": 0, + "jsx-a11y/click-events-have-key-events": 0, + "jsx-a11y/anchor-is-valid": 0, + "react/no-array-index-key": 0, + "func-names": 0, + "arrow-body-style": 0, + "no-use-before-define": 0, + "react/sort-comp": 0, + "react/prop-types": 0, + "react/jsx-first-prop-new-line": 0, + "react/jsx-filename-extension": [ + 1, + { + "extensions": [ + ".js", + ".jsx" + ] + } + ], + "import/extensions": 0, + "import/no-unresolved": 0, + "import/no-extraneous-dependencies": 0, + "prefer-destructuring": 0, + "no-param-reassign": 0, + "no-return-assign": 0, + "max-len": 0, + "consistent-return": 0, + "no-redeclare": 0, + "react/require-extension": 0, + "react/no-danger": 0, + "comma-dangle": [ + "error", + "always-multiline" + ], + "function-paren-newline": 0, + "object-curly-newline": 0, + "no-restricted-globals": 0, + "react/prefer-stateless-function": 0 + } +} diff --git a/templates/ice-design/blocks/LeftContentDisplay/.gitignore b/templates/ice-design/blocks/LeftContentDisplay/.gitignore new file mode 100644 index 0000000000..cc45d6fb3c --- /dev/null +++ b/templates/ice-design/blocks/LeftContentDisplay/.gitignore @@ -0,0 +1,13 @@ + +*.swp +*.dia~ +.idea/ +.DS_Store + +npm-debug.log +yarn-error.log +node_modules/ +tmp/ + +# happypack 缓存 +.happypack diff --git a/templates/ice-design/blocks/LeftContentDisplay/README.md b/templates/ice-design/blocks/LeftContentDisplay/README.md new file mode 100644 index 0000000000..faf0b7947a --- /dev/null +++ b/templates/ice-design/blocks/LeftContentDisplay/README.md @@ -0,0 +1,10 @@ +# left-content-display + +简介:功能描述-右图左文 + +![截图](https://img.alicdn.com/tfs/TB1g58VjxrI8KJjy0FpXXb5hVXa-2368-1192.png) + +## 更多 + +* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) +* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) diff --git a/templates/ice-design/blocks/LeftContentDisplay/demo/index.html b/templates/ice-design/blocks/LeftContentDisplay/demo/index.html new file mode 100644 index 0000000000..9d2d3a663d --- /dev/null +++ b/templates/ice-design/blocks/LeftContentDisplay/demo/index.html @@ -0,0 +1,19 @@ + + + + + + + + Document + + + + +
    + + + + + + diff --git a/templates/ice-design/blocks/LeftContentDisplay/demo/index.js b/templates/ice-design/blocks/LeftContentDisplay/demo/index.js new file mode 100644 index 0000000000..f80b542308 --- /dev/null +++ b/templates/ice-design/blocks/LeftContentDisplay/demo/index.js @@ -0,0 +1,14 @@ +import React, { Component } from 'react'; +import { render } from 'react-dom'; + +// 载入默认全局样式 normalize 、.clearfix 和一些 mixin 方法等 +import '@icedesign/base/lib/_components/@alife/next-core/lib/index.scss'; + +import DemoLayout from '@icedesign/demo-layout'; +import Block from '../src'; + +const props = { + // ... +}; + +render(, document.querySelector('#mountNode')); diff --git a/templates/ice-design/blocks/LeftContentDisplay/lib/LeftContentDisplay.js b/templates/ice-design/blocks/LeftContentDisplay/lib/LeftContentDisplay.js new file mode 100644 index 0000000000..f2e208dc84 --- /dev/null +++ b/templates/ice-design/blocks/LeftContentDisplay/lib/LeftContentDisplay.js @@ -0,0 +1,83 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = undefined; + +var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + +var _class, _temp; + +var _react = require('react'); + +var _react2 = _interopRequireDefault(_react); + +require('./LeftContentDisplay.scss'); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } + +var LeftContentDisplay = (_temp = _class = function (_Component) { + _inherits(LeftContentDisplay, _Component); + + function LeftContentDisplay(props) { + _classCallCheck(this, LeftContentDisplay); + + var _this = _possibleConstructorReturn(this, (LeftContentDisplay.__proto__ || Object.getPrototypeOf(LeftContentDisplay)).call(this, props)); + + _this.state = {}; + return _this; + } + + _createClass(LeftContentDisplay, [{ + key: 'render', + value: function render() { + return _react2.default.createElement( + 'div', + _defineProperty({ className: 'left-content-display', style: styles.leftContentDisplay }, 'style', styles.container), + _react2.default.createElement( + 'div', + { style: styles.content }, + _react2.default.createElement( + 'div', + { style: styles.col }, + _react2.default.createElement( + 'h2', + { style: styles.title }, + '\u529F\u80FD\u63CF\u8FF0' + ), + _react2.default.createElement( + 'p', + { style: styles.description }, + '\u529F\u80FD\u63CF\u8FF0\u7684\u6587\u6848\uFF0C\u529F\u80FD\u63CF\u8FF0\u7684\u6587\u6848\u529F\u80FD\u63CF\u8FF0\u7684\u6587\u6848\u529F\u80FD\u63CF\u8FF0\u7684\u6587\u6848' + ) + ), + _react2.default.createElement( + 'div', + { style: styles.col }, + _react2.default.createElement('img', { + src: 'https://img.alicdn.com/tfs/TB1MgyDjsLJ8KJjy0FnXXcFDpXa-618-1046.png', + alt: 'img', + style: styles.image + }) + ) + ) + ); + } + }]); + + return LeftContentDisplay; +}(_react.Component), _class.displayName = 'LeftContentDisplay', _temp); +exports.default = LeftContentDisplay; + + +var styles = { "container": { "margin": "0 auto", "width": "1080px" }, "content": { "display": "flex", "position": "relative", "alignItems": "center", "overflow": "hidden", "height": "600px" }, "col": { "width": "50%" }, "title": { "fontSize": "28px", "fontWeight": "bold" }, "description": { "color": "#666", "lineHeight": "22px" }, "image": { "position": "absolute", "top": "20px", "width": "40%" }, "leftContentDisplay": {} }; +module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/LeftContentDisplay/lib/LeftContentDisplay.scss b/templates/ice-design/blocks/LeftContentDisplay/lib/LeftContentDisplay.scss new file mode 100644 index 0000000000..6a5c46cd04 --- /dev/null +++ b/templates/ice-design/blocks/LeftContentDisplay/lib/LeftContentDisplay.scss @@ -0,0 +1,5 @@ +@charset "UTF-8"; + +.left-content-display { + +} diff --git a/templates/ice-design/blocks/LeftContentDisplay/lib/index.js b/templates/ice-design/blocks/LeftContentDisplay/lib/index.js new file mode 100644 index 0000000000..54fa1730c7 --- /dev/null +++ b/templates/ice-design/blocks/LeftContentDisplay/lib/index.js @@ -0,0 +1,14 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _LeftContentDisplay = require('./LeftContentDisplay'); + +var _LeftContentDisplay2 = _interopRequireDefault(_LeftContentDisplay); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +exports.default = _LeftContentDisplay2.default; +module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/LeftContentDisplay/mock/api.json b/templates/ice-design/blocks/LeftContentDisplay/mock/api.json new file mode 100644 index 0000000000..eee2984fbe --- /dev/null +++ b/templates/ice-design/blocks/LeftContentDisplay/mock/api.json @@ -0,0 +1,4 @@ +{ + "status": "SUCCESS", + "data": {} +} diff --git a/templates/ice-design/blocks/LeftContentDisplay/package.json b/templates/ice-design/blocks/LeftContentDisplay/package.json new file mode 100644 index 0000000000..cf11a3ddd0 --- /dev/null +++ b/templates/ice-design/blocks/LeftContentDisplay/package.json @@ -0,0 +1,54 @@ +{ + "name": "@icedesign/left-content-display-block", + "version": "0.1.0", + "description": "", + "files": [ + "src/", + "demo/", + "lib/", + "mock/" + ], + "scripts": {}, + "author": { + "name": "ICE Team", + "email": "ice-admin@alibaba-inc.com" + }, + "repository": { + "type": "git", + "url": "https://github.com/alibaba/ice" + }, + "license": "MIT", + "keywords": [ + "ice", + "ice-block" + ], + "dependencies": { + "@icedesign/base": "^0.1.0", + "prop-types": "^15.5.8", + "@icedesign/card": "^0.1.0" + }, + "devDependencies": { + "@icedesign/skin": "^0.1.2", + "babel-eslint": "^8.0.3", + "eslint-plugin-react": "^7.5.1", + "react": "15.x", + "react-copy-to-clipboard": "^4.2.3", + "react-dom": "15.x", + "eslint": "^4.13.1", + "eslint-plugin-babel": "^4.1.1", + "eslint-plugin-import": "^2.8.0", + "eslint-config-airbnb": "^16.1.0", + "eslint-plugin-jsx-a11y": "^6.0.3", + "@icedesign/demo-layout": "^0.1.0" + }, + "blockConfig": { + "name": "left-content-display", + "description": "", + "chinese": "功能描述-右图左文", + "category": "info-display", + "snapshot": "https://img.alicdn.com/tfs/TB1g58VjxrI8KJjy0FpXXb5hVXa-2368-1192.png", + "sketchURL": "", + "icelandURL": "", + "themePackage": "@icedesign/skin" + } +} diff --git a/templates/ice-design/blocks/LeftContentDisplay/src/LeftContentDisplay.jsx b/templates/ice-design/blocks/LeftContentDisplay/src/LeftContentDisplay.jsx new file mode 100644 index 0000000000..f31039e422 --- /dev/null +++ b/templates/ice-design/blocks/LeftContentDisplay/src/LeftContentDisplay.jsx @@ -0,0 +1,35 @@ +import React, { Component } from 'react'; +import './LeftContentDisplay.scss'; + +export default class LeftContentDisplay extends Component { + static displayName = 'LeftContentDisplay'; + + constructor(props) { + super(props); + this.state = {}; + } + + render() { + return ( +
    +
    +
    +

    功能描述

    +

    + 功能描述的文案,功能描述的文案功能描述的文案功能描述的文案 +

    +
    +
    + img +
    +
    +
    + ); + } +} + +const styles = {"container":{"margin":"0 auto","width":"1080px"},"content":{"display":"flex","position":"relative","alignItems":"center","overflow":"hidden","height":"600px"},"col":{"width":"50%"},"title":{"fontSize":"28px","fontWeight":"bold"},"description":{"color":"#666","lineHeight":"22px"},"image":{"position":"absolute","top":"20px","width":"40%"},"leftContentDisplay":{}} diff --git a/templates/ice-design/blocks/LeftContentDisplay/src/LeftContentDisplay.scss b/templates/ice-design/blocks/LeftContentDisplay/src/LeftContentDisplay.scss new file mode 100644 index 0000000000..6a5c46cd04 --- /dev/null +++ b/templates/ice-design/blocks/LeftContentDisplay/src/LeftContentDisplay.scss @@ -0,0 +1,5 @@ +@charset "UTF-8"; + +.left-content-display { + +} diff --git a/templates/ice-design/blocks/LeftContentDisplay/src/index.js b/templates/ice-design/blocks/LeftContentDisplay/src/index.js new file mode 100644 index 0000000000..7c93a7ad27 --- /dev/null +++ b/templates/ice-design/blocks/LeftContentDisplay/src/index.js @@ -0,0 +1,3 @@ +import LeftContentDisplay from './LeftContentDisplay'; + +export default LeftContentDisplay; diff --git a/templates/ice-design/blocks/LiteTable/.editorconfig b/templates/ice-design/blocks/LiteTable/.editorconfig new file mode 100644 index 0000000000..22ef5ace54 --- /dev/null +++ b/templates/ice-design/blocks/LiteTable/.editorconfig @@ -0,0 +1,16 @@ +# http://editorconfig.org +root = true + +[*] +indent_style = space +indent_size = 2 +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false + +[makefile] +indent_style = tab +indent_size = 4 diff --git a/templates/ice-design/blocks/LiteTable/.eslintignore b/templates/ice-design/blocks/LiteTable/.eslintignore new file mode 100644 index 0000000000..3b21308fc7 --- /dev/null +++ b/templates/ice-design/blocks/LiteTable/.eslintignore @@ -0,0 +1,12 @@ +# 忽略目录 +build/ +tests/ +demo/ +lib/ + +# node 覆盖率文件 +coverage/ + +# 忽略文件 +**/*-min.js +**/*.min.js \ No newline at end of file diff --git a/templates/ice-design/blocks/LiteTable/.eslintrc b/templates/ice-design/blocks/LiteTable/.eslintrc new file mode 100644 index 0000000000..7a4e5bac48 --- /dev/null +++ b/templates/ice-design/blocks/LiteTable/.eslintrc @@ -0,0 +1,62 @@ +{ + "root": true, + "parser": "babel-eslint", + "extends": "eslint-config-airbnb", + "parserOptions": { + "ecmaVersion": 6, + "ecmaFeatures": { + "jsx": true, + "experimentalObjectRestSpread": true + } + }, + "env": { + "browser": true + }, + "plugins": [ + "react", + "babel" + ], + "rules": { + "react/forbid-prop-types": 0, + "jsx-a11y/label-has-for": 0, + "jsx-a11y/no-static-element-interactions": 0, + "jsx-a11y/anchor-has-content": 0, + "jsx-a11y/click-events-have-key-events": 0, + "jsx-a11y/anchor-is-valid": 0, + "react/no-array-index-key": 0, + "func-names": 0, + "arrow-body-style": 0, + "no-use-before-define": 0, + "react/sort-comp": 0, + "react/prop-types": 0, + "react/jsx-first-prop-new-line": 0, + "react/jsx-filename-extension": [ + 1, + { + "extensions": [ + ".js", + ".jsx" + ] + } + ], + "import/extensions": 0, + "import/no-unresolved": 0, + "import/no-extraneous-dependencies": 0, + "prefer-destructuring": 0, + "no-param-reassign": 0, + "no-return-assign": 0, + "max-len": 0, + "consistent-return": 0, + "no-redeclare": 0, + "react/require-extension": 0, + "react/no-danger": 0, + "comma-dangle": [ + "error", + "always-multiline" + ], + "function-paren-newline": 0, + "object-curly-newline": 0, + "no-restricted-globals": 0, + "react/prefer-stateless-function": 0 + } +} diff --git a/templates/ice-design/blocks/LiteTable/.gitignore b/templates/ice-design/blocks/LiteTable/.gitignore new file mode 100644 index 0000000000..cc45d6fb3c --- /dev/null +++ b/templates/ice-design/blocks/LiteTable/.gitignore @@ -0,0 +1,13 @@ + +*.swp +*.dia~ +.idea/ +.DS_Store + +npm-debug.log +yarn-error.log +node_modules/ +tmp/ + +# happypack 缓存 +.happypack diff --git a/templates/ice-design/blocks/LiteTable/README.md b/templates/ice-design/blocks/LiteTable/README.md new file mode 100644 index 0000000000..8b5ca860c6 --- /dev/null +++ b/templates/ice-design/blocks/LiteTable/README.md @@ -0,0 +1,12 @@ +# lite-table + +简介:简单带状态表格 + +简单的附带状态的表格 + +![截图](https://img.alicdn.com/tfs/TB1_Oy4jcrI8KJjy0FhXXbfnpXa-840-956.png) + +## 更多 + +* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) +* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) diff --git a/templates/ice-design/blocks/LiteTable/demo/index.html b/templates/ice-design/blocks/LiteTable/demo/index.html new file mode 100644 index 0000000000..9d2d3a663d --- /dev/null +++ b/templates/ice-design/blocks/LiteTable/demo/index.html @@ -0,0 +1,19 @@ + + + + + + + + Document + + + + +
    + + + + + + diff --git a/templates/ice-design/blocks/LiteTable/demo/index.js b/templates/ice-design/blocks/LiteTable/demo/index.js new file mode 100644 index 0000000000..178a766115 --- /dev/null +++ b/templates/ice-design/blocks/LiteTable/demo/index.js @@ -0,0 +1,19 @@ +import React, {Component} from 'react'; +import {render} from 'react-dom'; + +// 载入默认全局样式 normalize 、.clearfix 和一些 mixin 方法等 +import '@icedesign/base/lib/_components/@alife/next-core/lib/index.scss'; + +import DemoLayout from '@icedesign/demo-layout'; +import Block from '../src'; + +const props = { + // ... +}; + +render( + + + , + document.querySelector('#mountNode') +); diff --git a/templates/ice-design/blocks/LiteTable/lib/LiteTable.js b/templates/ice-design/blocks/LiteTable/lib/LiteTable.js new file mode 100644 index 0000000000..649898459f --- /dev/null +++ b/templates/ice-design/blocks/LiteTable/lib/LiteTable.js @@ -0,0 +1,154 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = undefined; + +var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + +var _class, _temp; + +var _react = require('react'); + +var _react2 = _interopRequireDefault(_react); + +var _card = require('@icedesign/card'); + +var _card2 = _interopRequireDefault(_card); + +require('./LiteTable.scss'); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } + +var Table = require('@icedesign/base/lib/table'); + +var styles = { + tableCard: { width: 430, padding: 10 }, + liteTable: {}, + todo0: { color: '#5485F7' }, + todo1: { color: '#64D874' }, + todo2: { color: '#999999' }, + todo3: { color: '#FA7070' } +}; + +var generatorMockStatus = function generatorMockStatus() { + var random = parseInt(Math.random() * 10, 10); + if (random < 3) { + return 'processing'; + } else if (random >= 3 && random < 6) { + return 'finish'; + } else if (random >= 6 && random < 8) { + return 'terminated'; + } else if (random >= 8) { + return 'pass'; + } +}; + +var generatorData = function generatorData() { + return Array.from({ length: 10 }).map(function (item, index) { + return { + project: '\u8FD9\u91CC\u662F\u5B57\u6570\u4E0D\u80FD\u592A\u957F\u7684\u9879\u76EE\u540D ' + index, + owner: '\u5F00\u53D1\u8005 ' + index, + status: generatorMockStatus() + }; + }); +}; + +var statusComponents = { + processing: _react2.default.createElement( + 'span', + { style: styles.todo0 }, + '\u8FDB\u884C\u4E2D' + ), + finish: _react2.default.createElement( + 'span', + { style: styles.todo1 }, + '\u5DF2\u5B8C\u6210' + ), + terminated: _react2.default.createElement( + 'span', + { style: styles.todo2 }, + '\u5DF2\u7EC8\u6B62' + ), + pass: _react2.default.createElement( + 'span', + { style: styles.todo3 }, + '\u672A\u901A\u8FC7' + ) +}; + +var LiteTable = (_temp = _class = function (_Component) { + _inherits(LiteTable, _Component); + + function LiteTable(props) { + _classCallCheck(this, LiteTable); + + var _this = _possibleConstructorReturn(this, (LiteTable.__proto__ || Object.getPrototypeOf(LiteTable)).call(this, props)); + + _this.renderStatus = function (value) { + return statusComponents[value]; + }; + + _this.state = { + tableData: generatorData() + }; + return _this; + } + + // ICE: React Component 的生命周期 + // http://ice.alibaba-inc.com/docs/guide/intro-react#React-组件的生命周期 + + + _createClass(LiteTable, [{ + key: 'componentWillMount', + value: function componentWillMount() {} + }, { + key: 'componentDidMount', + value: function componentDidMount() {} + }, { + key: 'shouldComponentUpdate', + value: function shouldComponentUpdate() { + return true; + } + }, { + key: 'componentWillUnmount', + value: function componentWillUnmount() {} + }, { + key: 'render', + value: function render() { + var tableData = this.state.tableData; + + return _react2.default.createElement( + 'div', + { className: 'lite-table', style: styles.liteTable }, + _react2.default.createElement( + _card2.default, + { style: styles.tableCard }, + _react2.default.createElement( + Table, + { dataSource: tableData, hasBorder: false }, + _react2.default.createElement(Table.Column, { title: '\u9879\u76EE\u540D\u79F0', dataIndex: 'project', width: 160 }), + _react2.default.createElement(Table.Column, { title: '\u521B\u5EFA\u8005', dataIndex: 'owner', width: 65 }), + _react2.default.createElement(Table.Column, { + title: '\u72B6\u6001', + dataIndex: 'status', + cell: this.renderStatus, + width: 65 + }) + ) + ) + ); + } + }]); + + return LiteTable; +}(_react.Component), _class.displayName = 'LiteTable', _class.propTypes = {}, _class.defaultProps = {}, _temp); +exports.default = LiteTable; +module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/LiteTable/lib/LiteTable.scss b/templates/ice-design/blocks/LiteTable/lib/LiteTable.scss new file mode 100644 index 0000000000..7c0b0452af --- /dev/null +++ b/templates/ice-design/blocks/LiteTable/lib/LiteTable.scss @@ -0,0 +1,5 @@ +@charset "UTF-8"; + +.lite-table { + +} diff --git a/templates/ice-design/blocks/LiteTable/lib/index.js b/templates/ice-design/blocks/LiteTable/lib/index.js new file mode 100644 index 0000000000..f9ab936fee --- /dev/null +++ b/templates/ice-design/blocks/LiteTable/lib/index.js @@ -0,0 +1,14 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _LiteTable = require('./LiteTable'); + +var _LiteTable2 = _interopRequireDefault(_LiteTable); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +exports.default = _LiteTable2.default; +module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/LiteTable/mock/api.json b/templates/ice-design/blocks/LiteTable/mock/api.json new file mode 100644 index 0000000000..e706430232 --- /dev/null +++ b/templates/ice-design/blocks/LiteTable/mock/api.json @@ -0,0 +1,4 @@ +{ + "status": "success", + "data": {} +} diff --git a/templates/ice-design/blocks/LiteTable/package.json b/templates/ice-design/blocks/LiteTable/package.json new file mode 100644 index 0000000000..e4720337f0 --- /dev/null +++ b/templates/ice-design/blocks/LiteTable/package.json @@ -0,0 +1,54 @@ +{ + "name": "@icedesign/lite-table-block", + "version": "0.1.0", + "description": "简单的附带状态的表格", + "files": [ + "src/", + "demo/", + "lib/", + "mock/" + ], + "scripts": {}, + "author": { + "name": "ICE Team", + "email": "ice-admin@alibaba-inc.com" + }, + "repository": { + "type": "git", + "url": "https://github.com/alibaba/ice" + }, + "license": "MIT", + "keywords": [ + "ice", + "ice-block" + ], + "dependencies": { + "@icedesign/base": "^0.1.0", + "prop-types": "^15.5.8", + "@icedesign/card": "^0.1.0" + }, + "devDependencies": { + "@icedesign/skin": "^0.1.2", + "babel-eslint": "^8.0.3", + "eslint-plugin-react": "^7.5.1", + "react": "15.x", + "react-copy-to-clipboard": "^4.2.3", + "react-dom": "15.x", + "eslint": "^4.13.1", + "eslint-plugin-babel": "^4.1.1", + "eslint-plugin-import": "^2.8.0", + "eslint-config-airbnb": "^16.1.0", + "eslint-plugin-jsx-a11y": "^6.0.3", + "@icedesign/demo-layout": "^0.1.0" + }, + "blockConfig": { + "name": "lite-table", + "description": "简单的附带状态的表格", + "chinese": "简单带状态表格", + "category": "table", + "snapshot": "https://img.alicdn.com/tfs/TB1_Oy4jcrI8KJjy0FhXXbfnpXa-840-956.png", + "sketchURL": "", + "icelandURL": "", + "themePackage": "@icedesign/skin" + } +} diff --git a/templates/ice-design/blocks/LiteTable/src/LiteTable.jsx b/templates/ice-design/blocks/LiteTable/src/LiteTable.jsx new file mode 100644 index 0000000000..12edcfbcc2 --- /dev/null +++ b/templates/ice-design/blocks/LiteTable/src/LiteTable.jsx @@ -0,0 +1,94 @@ +import React, { Component } from 'react'; +import IceCard from '@icedesign/card'; +import { Table } from '@icedesign/base'; +import './LiteTable.scss'; + +const styles = { + tableCard: { width: 430, padding: 10 }, + liteTable: {}, + todo0: { color: '#5485F7' }, + todo1: { color: '#64D874' }, + todo2: { color: '#999999' }, + todo3: { color: '#FA7070' }, +}; + +const generatorMockStatus = () => { + const random = parseInt(Math.random() * 10, 10); + if (random < 3) { + return 'processing'; + } else if (random >= 3 && random < 6) { + return 'finish'; + } else if (random >= 6 && random < 8) { + return 'terminated'; + } else if (random >= 8) { + return 'pass'; + } +}; + +const generatorData = () => { + return Array.from({ length: 10 }).map((item, index) => { + return { + project: `这里是字数不能太长的项目名 ${index}`, + owner: `开发者 ${index}`, + status: generatorMockStatus(), + }; + }); +}; + +const statusComponents = { + processing: 进行中, + finish: 已完成, + terminated: 已终止, + pass: 未通过, +}; + +export default class LiteTable extends Component { + static displayName = 'LiteTable'; + + static propTypes = {}; + + static defaultProps = {}; + + constructor(props) { + super(props); + this.state = { + tableData: generatorData(), + }; + } + + // ICE: React Component 的生命周期 + // http://ice.alibaba-inc.com/docs/guide/intro-react#React-组件的生命周期 + componentWillMount() { } + + componentDidMount() { } + + shouldComponentUpdate() { + return true; + } + + componentWillUnmount() { } + + renderStatus = (value) => { + return statusComponents[value]; + }; + + render() { + const { tableData } = this.state; + return ( +
    + + + + + +
    +
    +
    + ); + } +} diff --git a/templates/ice-design/blocks/LiteTable/src/LiteTable.scss b/templates/ice-design/blocks/LiteTable/src/LiteTable.scss new file mode 100644 index 0000000000..7c0b0452af --- /dev/null +++ b/templates/ice-design/blocks/LiteTable/src/LiteTable.scss @@ -0,0 +1,5 @@ +@charset "UTF-8"; + +.lite-table { + +} diff --git a/templates/ice-design/blocks/LiteTable/src/index.js b/templates/ice-design/blocks/LiteTable/src/index.js new file mode 100644 index 0000000000..c7985cac73 --- /dev/null +++ b/templates/ice-design/blocks/LiteTable/src/index.js @@ -0,0 +1,3 @@ +import LiteTable from './LiteTable'; + +export default LiteTable; diff --git a/templates/ice-design/blocks/MessageList/.editorconfig b/templates/ice-design/blocks/MessageList/.editorconfig new file mode 100644 index 0000000000..22ef5ace54 --- /dev/null +++ b/templates/ice-design/blocks/MessageList/.editorconfig @@ -0,0 +1,16 @@ +# http://editorconfig.org +root = true + +[*] +indent_style = space +indent_size = 2 +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false + +[makefile] +indent_style = tab +indent_size = 4 diff --git a/templates/ice-design/blocks/MessageList/.eslintignore b/templates/ice-design/blocks/MessageList/.eslintignore new file mode 100644 index 0000000000..3b21308fc7 --- /dev/null +++ b/templates/ice-design/blocks/MessageList/.eslintignore @@ -0,0 +1,12 @@ +# 忽略目录 +build/ +tests/ +demo/ +lib/ + +# node 覆盖率文件 +coverage/ + +# 忽略文件 +**/*-min.js +**/*.min.js \ No newline at end of file diff --git a/templates/ice-design/blocks/MessageList/.eslintrc b/templates/ice-design/blocks/MessageList/.eslintrc new file mode 100644 index 0000000000..7a4e5bac48 --- /dev/null +++ b/templates/ice-design/blocks/MessageList/.eslintrc @@ -0,0 +1,62 @@ +{ + "root": true, + "parser": "babel-eslint", + "extends": "eslint-config-airbnb", + "parserOptions": { + "ecmaVersion": 6, + "ecmaFeatures": { + "jsx": true, + "experimentalObjectRestSpread": true + } + }, + "env": { + "browser": true + }, + "plugins": [ + "react", + "babel" + ], + "rules": { + "react/forbid-prop-types": 0, + "jsx-a11y/label-has-for": 0, + "jsx-a11y/no-static-element-interactions": 0, + "jsx-a11y/anchor-has-content": 0, + "jsx-a11y/click-events-have-key-events": 0, + "jsx-a11y/anchor-is-valid": 0, + "react/no-array-index-key": 0, + "func-names": 0, + "arrow-body-style": 0, + "no-use-before-define": 0, + "react/sort-comp": 0, + "react/prop-types": 0, + "react/jsx-first-prop-new-line": 0, + "react/jsx-filename-extension": [ + 1, + { + "extensions": [ + ".js", + ".jsx" + ] + } + ], + "import/extensions": 0, + "import/no-unresolved": 0, + "import/no-extraneous-dependencies": 0, + "prefer-destructuring": 0, + "no-param-reassign": 0, + "no-return-assign": 0, + "max-len": 0, + "consistent-return": 0, + "no-redeclare": 0, + "react/require-extension": 0, + "react/no-danger": 0, + "comma-dangle": [ + "error", + "always-multiline" + ], + "function-paren-newline": 0, + "object-curly-newline": 0, + "no-restricted-globals": 0, + "react/prefer-stateless-function": 0 + } +} diff --git a/templates/ice-design/blocks/MessageList/.gitignore b/templates/ice-design/blocks/MessageList/.gitignore new file mode 100644 index 0000000000..cc45d6fb3c --- /dev/null +++ b/templates/ice-design/blocks/MessageList/.gitignore @@ -0,0 +1,13 @@ + +*.swp +*.dia~ +.idea/ +.DS_Store + +npm-debug.log +yarn-error.log +node_modules/ +tmp/ + +# happypack 缓存 +.happypack diff --git a/templates/ice-design/blocks/MessageList/README.md b/templates/ice-design/blocks/MessageList/README.md new file mode 100644 index 0000000000..0dedd5d857 --- /dev/null +++ b/templates/ice-design/blocks/MessageList/README.md @@ -0,0 +1,12 @@ +# message-list + +简介:消息列表 + +消息列表 + +![截图](https://gw.alicdn.com/tfs/TB1qZtrir_I8KJjy1XaXXbsxpXa-1882-1262.png) + +## 更多 + +* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) +* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) diff --git a/templates/ice-design/blocks/MessageList/demo/index.html b/templates/ice-design/blocks/MessageList/demo/index.html new file mode 100644 index 0000000000..9d2d3a663d --- /dev/null +++ b/templates/ice-design/blocks/MessageList/demo/index.html @@ -0,0 +1,19 @@ + + + + + + + + Document + + + + +
    + + + + + + diff --git a/templates/ice-design/blocks/MessageList/demo/index.js b/templates/ice-design/blocks/MessageList/demo/index.js new file mode 100644 index 0000000000..d0af0a70ee --- /dev/null +++ b/templates/ice-design/blocks/MessageList/demo/index.js @@ -0,0 +1,19 @@ +import React, {Component} from 'react'; +import {render} from 'react-dom'; + +// 载入默认全局样式 normalize 、.clearfix 和一些 mixin 方法等 +import '@alife/next/lib/_components/@alife/next-core/lib/index.scss'; + +import DemoLayout from '@icedesign/demo-layout'; +import Block from '../src'; + +const props = { + // ... +}; + +render( + + + , + document.querySelector('#mountNode') +); diff --git a/templates/ice-design/blocks/MessageList/lib/MessageList.js b/templates/ice-design/blocks/MessageList/lib/MessageList.js new file mode 100644 index 0000000000..a9b4040402 --- /dev/null +++ b/templates/ice-design/blocks/MessageList/lib/MessageList.js @@ -0,0 +1,139 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = undefined; + +var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + +var _class, _temp; + +var _react = require('react'); + +var _react2 = _interopRequireDefault(_react); + +var _propTypes = require('prop-types'); + +var _propTypes2 = _interopRequireDefault(_propTypes); + +var _card = require('@icedesign/card'); + +var _card2 = _interopRequireDefault(_card); + +require('./MessageList.scss'); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } + +var Pagination = require('@icedesign/base/lib/pagination'); + +var dataSource = [{ + title: '消息标题', + message: '您的账号在2017.4.1日发布的文章《夏日阳光穿搭》中出现恶意引导,违反了商业规则,即日起封号,30天内不得重新申请入驻。', + datetime: '07-07 18:36' +}, { + title: '消息标题', + message: '您的账号在2017.4.1日发布的文章《夏日阳光穿搭》中出现恶意引导,违反了商业规则,即日起封号,30天内不得重新申请入驻。账号在2017.4.1日发布的文章《夏日阳光穿搭》中出现恶意引导,违反了商业规则,即日起封号,30天内不得重新申请入驻。', + datetime: '07-07 18:36' +}, { + title: '消息标题', + message: '您的账号在2017.4.1日发布的文章《夏日阳光穿搭》中出现恶意引导,违反了商业规则,即日起封号,30天内不得重新申请入驻。账号在2017.4.1日发布的文章《夏日阳光穿搭》中出现恶意引导,违反了商业规则,即日起封号,30天内不得重新申请入驻。', + datetime: '07-07 18:36' +}, { + title: '消息标题', + message: '您的账号在2017.4.1日发布的文章《夏日阳光穿搭》中出现恶意引导,违反了商业规则,即日起封号,30天内不得重新申请入驻。', + datetime: '07-07 18:36' +}, { + title: '消息标题', + message: '您的账号在2017.4.1日发布的文章《夏日阳光穿搭》中出现恶意引导,违反了商业规则,即日起封号,30天内不得重新申请入驻。', + datetime: '07-07 18:36' +}]; + +var MessageList = (_temp = _class = function (_Component) { + _inherits(MessageList, _Component); + + function MessageList(props) { + _classCallCheck(this, MessageList); + + var _this = _possibleConstructorReturn(this, (MessageList.__proto__ || Object.getPrototypeOf(MessageList)).call(this, props)); + + _this.renderItem = function (item, idx) { + return _react2.default.createElement( + 'div', + { style: styles.item, key: idx }, + _react2.default.createElement( + 'div', + { style: styles.title }, + item.title, + _react2.default.createElement( + 'span', + { style: styles.datetime }, + item.datetime + ) + ), + _react2.default.createElement( + 'div', + { style: styles.message }, + item.message + ) + ); + }; + + _this.state = {}; + return _this; + } + + // ICE: React Component 的生命周期 + // http://ice.alibaba-inc.com/docs/guide/intro-react#React-组件的生命周期 + + + _createClass(MessageList, [{ + key: 'componentWillMount', + value: function componentWillMount() {} + }, { + key: 'componentDidMount', + value: function componentDidMount() {} + }, { + key: 'componentWillReceiveProps', + value: function componentWillReceiveProps(nextProps, nextContext) {} + }, { + key: 'shouldComponentUpdate', + value: function shouldComponentUpdate(nextProps, nextState) { + return true; + } + }, { + key: 'componentWillUnmount', + value: function componentWillUnmount() {} + }, { + key: 'render', + value: function render() { + return _react2.default.createElement( + 'div', + { className: 'message-list', style: styles.messageList }, + _react2.default.createElement( + _card2.default, + null, + dataSource.map(this.renderItem), + _react2.default.createElement( + 'div', + { style: styles.paginationWarp }, + _react2.default.createElement(Pagination, null) + ) + ) + ); + } + }]); + + return MessageList; +}(_react.Component), _class.displayName = 'MessageList', _temp); +exports.default = MessageList; + + +var styles = { item: { borderBottom: '1px solid #eee', margin: '0 15px 20px' }, title: { fontSize: '16px', color: '#444', marginBottom: '15px', position: 'relative' }, datetime: { position: 'absolute', right: '10px', paddingTop: '10px', fontSize: '12px', color: '#666' }, message: { fontSize: '14px', color: '#666', marginBottom: '20px', width: '790px' }, paginationWarp: { marginTop: '15px', display: 'flex', flexDirection: 'row', justifyContent: 'flex-end' }, messageList: {} }; +module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/MessageList/lib/MessageList.scss b/templates/ice-design/blocks/MessageList/lib/MessageList.scss new file mode 100644 index 0000000000..38139915e5 --- /dev/null +++ b/templates/ice-design/blocks/MessageList/lib/MessageList.scss @@ -0,0 +1,5 @@ +@charset "UTF-8"; + +.message-list { + +} diff --git a/templates/ice-design/blocks/MessageList/lib/index.js b/templates/ice-design/blocks/MessageList/lib/index.js new file mode 100644 index 0000000000..bf436a2317 --- /dev/null +++ b/templates/ice-design/blocks/MessageList/lib/index.js @@ -0,0 +1,14 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _MessageList = require('./MessageList'); + +var _MessageList2 = _interopRequireDefault(_MessageList); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +exports.default = _MessageList2.default; +module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/MessageList/mock/api.json b/templates/ice-design/blocks/MessageList/mock/api.json new file mode 100644 index 0000000000..e706430232 --- /dev/null +++ b/templates/ice-design/blocks/MessageList/mock/api.json @@ -0,0 +1,4 @@ +{ + "status": "success", + "data": {} +} diff --git a/templates/ice-design/blocks/MessageList/package.json b/templates/ice-design/blocks/MessageList/package.json new file mode 100644 index 0000000000..c799c37d42 --- /dev/null +++ b/templates/ice-design/blocks/MessageList/package.json @@ -0,0 +1,51 @@ +{ + "name": "@icedesign/message-list-block", + "version": "0.1.0", + "description": "消息列表", + "files": [ + "src/", + "demo/", + "lib/", + "mock/" + ], + "author": { + "name": "ICE Team", + "email": "ice-admin@alibaba-inc.com" + }, + "repository": { + "type": "git", + "url": "https://github.com/alibaba/ice" + }, + "license": "MIT", + "keywords": [ + "ice", + "ice-block" + ], + "dependencies": { + "prop-types": "^15.5.8", + "@icedesign/base": "^0.1.0", + "@icedesign/card": "^0.1.0" + }, + "devDependencies": { + "babel-eslint": "^8.0.3", + "eslint": "^4.13.1", + "eslint-plugin-babel": "^4.1.1", + "eslint-plugin-react": "^7.5.1", + "@icedesign/demo-layout": "^0.1.0", + "eslint-plugin-import": "^2.8.0", + "eslint-config-airbnb": "^16.1.0", + "eslint-plugin-jsx-a11y": "^6.0.3", + "@icedesign/skin": "^0.1.2" + }, + "blockConfig": { + "name": "message-list", + "description": "消息列表", + "chinese": "消息列表", + "category": "list", + "snapshot": "https://gw.alicdn.com/tfs/TB1qZtrir_I8KJjy1XaXXbsxpXa-1882-1262.png", + "sketchURL": "", + "icelandURL": "", + "themePackage": "@icedesign/skin" + }, + "scripts": {} +} diff --git a/templates/ice-design/blocks/MessageList/src/MessageList.jsx b/templates/ice-design/blocks/MessageList/src/MessageList.jsx new file mode 100644 index 0000000000..bda5eff775 --- /dev/null +++ b/templates/ice-design/blocks/MessageList/src/MessageList.jsx @@ -0,0 +1,97 @@ + + +import React, { Component } from 'react'; +import PropTypes from 'prop-types'; +import IceCard from '@icedesign/card'; +import { Pagination } from '@icedesign/base'; +import './MessageList.scss'; + + +const dataSource = [ + { + title: '消息标题', + message: '您的账号在2017.4.1日发布的文章《夏日阳光穿搭》中出现恶意引导,违反了商业规则,即日起封号,30天内不得重新申请入驻。', + datetime: '07-07 18:36', + }, + { + title: '消息标题', + message: '您的账号在2017.4.1日发布的文章《夏日阳光穿搭》中出现恶意引导,违反了商业规则,即日起封号,30天内不得重新申请入驻。账号在2017.4.1日发布的文章《夏日阳光穿搭》中出现恶意引导,违反了商业规则,即日起封号,30天内不得重新申请入驻。', + datetime: '07-07 18:36', + }, + { + title: '消息标题', + message: '您的账号在2017.4.1日发布的文章《夏日阳光穿搭》中出现恶意引导,违反了商业规则,即日起封号,30天内不得重新申请入驻。账号在2017.4.1日发布的文章《夏日阳光穿搭》中出现恶意引导,违反了商业规则,即日起封号,30天内不得重新申请入驻。', + datetime: '07-07 18:36', + }, + { + title: '消息标题', + message: '您的账号在2017.4.1日发布的文章《夏日阳光穿搭》中出现恶意引导,违反了商业规则,即日起封号,30天内不得重新申请入驻。', + datetime: '07-07 18:36', + }, + { + title: '消息标题', + message: '您的账号在2017.4.1日发布的文章《夏日阳光穿搭》中出现恶意引导,违反了商业规则,即日起封号,30天内不得重新申请入驻。', + datetime: '07-07 18:36', + }, + +]; + +export default class MessageList extends Component { + static displayName = 'MessageList'; + + constructor(props) { + super(props); + this.state = { + + }; + } + + // ICE: React Component 的生命周期 + // http://ice.alibaba-inc.com/docs/guide/intro-react#React-组件的生命周期 + componentWillMount() { + + } + + componentDidMount() { + + } + + componentWillReceiveProps(nextProps, nextContext) { + + } + + shouldComponentUpdate(nextProps, nextState) { + return true; + } + + componentWillUnmount() { + + } + + renderItem = (item, idx) => { + return ( +
    +
    + {item.title} + {item.datetime} +
    +
    {item.message}
    +
    + ); + } + + render() { + return ( +
    + + {dataSource.map(this.renderItem)} +
    + +
    +
    +
    + ); + } +} + +const styles = { item: { borderBottom: '1px solid #eee', margin: '0 15px 20px' }, title: { fontSize: '16px', color: '#444', marginBottom: '15px', position: 'relative' }, datetime: { position: 'absolute', right: '10px', paddingTop: '10px', fontSize: '12px', color: '#666' }, message: { fontSize: '14px', color: '#666', marginBottom: '20px', width: '790px' }, paginationWarp: { marginTop: '15px', display: 'flex', flexDirection: 'row', justifyContent: 'flex-end' }, messageList: {} }; diff --git a/templates/ice-design/blocks/MessageList/src/MessageList.scss b/templates/ice-design/blocks/MessageList/src/MessageList.scss new file mode 100644 index 0000000000..38139915e5 --- /dev/null +++ b/templates/ice-design/blocks/MessageList/src/MessageList.scss @@ -0,0 +1,5 @@ +@charset "UTF-8"; + +.message-list { + +} diff --git a/templates/ice-design/blocks/MessageList/src/index.js b/templates/ice-design/blocks/MessageList/src/index.js new file mode 100644 index 0000000000..e78513f679 --- /dev/null +++ b/templates/ice-design/blocks/MessageList/src/index.js @@ -0,0 +1,3 @@ +import MessageList from './MessageList'; + +export default MessageList; diff --git a/templates/ice-design/blocks/MonacoEditor/.editorconfig b/templates/ice-design/blocks/MonacoEditor/.editorconfig new file mode 100644 index 0000000000..22ef5ace54 --- /dev/null +++ b/templates/ice-design/blocks/MonacoEditor/.editorconfig @@ -0,0 +1,16 @@ +# http://editorconfig.org +root = true + +[*] +indent_style = space +indent_size = 2 +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false + +[makefile] +indent_style = tab +indent_size = 4 diff --git a/templates/ice-design/blocks/MonacoEditor/.eslintignore b/templates/ice-design/blocks/MonacoEditor/.eslintignore new file mode 100644 index 0000000000..3b21308fc7 --- /dev/null +++ b/templates/ice-design/blocks/MonacoEditor/.eslintignore @@ -0,0 +1,12 @@ +# 忽略目录 +build/ +tests/ +demo/ +lib/ + +# node 覆盖率文件 +coverage/ + +# 忽略文件 +**/*-min.js +**/*.min.js \ No newline at end of file diff --git a/templates/ice-design/blocks/MonacoEditor/.eslintrc b/templates/ice-design/blocks/MonacoEditor/.eslintrc new file mode 100644 index 0000000000..7a4e5bac48 --- /dev/null +++ b/templates/ice-design/blocks/MonacoEditor/.eslintrc @@ -0,0 +1,62 @@ +{ + "root": true, + "parser": "babel-eslint", + "extends": "eslint-config-airbnb", + "parserOptions": { + "ecmaVersion": 6, + "ecmaFeatures": { + "jsx": true, + "experimentalObjectRestSpread": true + } + }, + "env": { + "browser": true + }, + "plugins": [ + "react", + "babel" + ], + "rules": { + "react/forbid-prop-types": 0, + "jsx-a11y/label-has-for": 0, + "jsx-a11y/no-static-element-interactions": 0, + "jsx-a11y/anchor-has-content": 0, + "jsx-a11y/click-events-have-key-events": 0, + "jsx-a11y/anchor-is-valid": 0, + "react/no-array-index-key": 0, + "func-names": 0, + "arrow-body-style": 0, + "no-use-before-define": 0, + "react/sort-comp": 0, + "react/prop-types": 0, + "react/jsx-first-prop-new-line": 0, + "react/jsx-filename-extension": [ + 1, + { + "extensions": [ + ".js", + ".jsx" + ] + } + ], + "import/extensions": 0, + "import/no-unresolved": 0, + "import/no-extraneous-dependencies": 0, + "prefer-destructuring": 0, + "no-param-reassign": 0, + "no-return-assign": 0, + "max-len": 0, + "consistent-return": 0, + "no-redeclare": 0, + "react/require-extension": 0, + "react/no-danger": 0, + "comma-dangle": [ + "error", + "always-multiline" + ], + "function-paren-newline": 0, + "object-curly-newline": 0, + "no-restricted-globals": 0, + "react/prefer-stateless-function": 0 + } +} diff --git a/templates/ice-design/blocks/MonacoEditor/.gitignore b/templates/ice-design/blocks/MonacoEditor/.gitignore new file mode 100644 index 0000000000..cc45d6fb3c --- /dev/null +++ b/templates/ice-design/blocks/MonacoEditor/.gitignore @@ -0,0 +1,13 @@ + +*.swp +*.dia~ +.idea/ +.DS_Store + +npm-debug.log +yarn-error.log +node_modules/ +tmp/ + +# happypack 缓存 +.happypack diff --git a/templates/ice-design/blocks/MonacoEditor/README.md b/templates/ice-design/blocks/MonacoEditor/README.md new file mode 100644 index 0000000000..d35d8524d1 --- /dev/null +++ b/templates/ice-design/blocks/MonacoEditor/README.md @@ -0,0 +1,12 @@ +# monaco-editor + +简介:Monaco 代码编辑器 + +Monaco 代码编辑器 + +![截图](https://gw.alicdn.com/tfs/TB1bOKfjvDH8KJjy1XcXXcpdXXa-1886-1236.png) + +## 更多 + +* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) +* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) diff --git a/templates/ice-design/blocks/MonacoEditor/demo/index.html b/templates/ice-design/blocks/MonacoEditor/demo/index.html new file mode 100644 index 0000000000..9d2d3a663d --- /dev/null +++ b/templates/ice-design/blocks/MonacoEditor/demo/index.html @@ -0,0 +1,19 @@ + + + + + + + + Document + + + + +
    + + + + + + diff --git a/templates/ice-design/blocks/MonacoEditor/demo/index.js b/templates/ice-design/blocks/MonacoEditor/demo/index.js new file mode 100644 index 0000000000..d0af0a70ee --- /dev/null +++ b/templates/ice-design/blocks/MonacoEditor/demo/index.js @@ -0,0 +1,19 @@ +import React, {Component} from 'react'; +import {render} from 'react-dom'; + +// 载入默认全局样式 normalize 、.clearfix 和一些 mixin 方法等 +import '@alife/next/lib/_components/@alife/next-core/lib/index.scss'; + +import DemoLayout from '@icedesign/demo-layout'; +import Block from '../src'; + +const props = { + // ... +}; + +render( + + + , + document.querySelector('#mountNode') +); diff --git a/templates/ice-design/blocks/MonacoEditor/lib/MonacoEditor.js b/templates/ice-design/blocks/MonacoEditor/lib/MonacoEditor.js new file mode 100644 index 0000000000..786f554292 --- /dev/null +++ b/templates/ice-design/blocks/MonacoEditor/lib/MonacoEditor.js @@ -0,0 +1,171 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = undefined; + +var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + +var _class, _temp; + +var _react = require('react'); + +var _react2 = _interopRequireDefault(_react); + +var _card = require('@icedesign/card'); + +var _card2 = _interopRequireDefault(_card); + +var _reactMonacoEditor = require('react-monaco-editor'); + +var _reactMonacoEditor2 = _interopRequireDefault(_reactMonacoEditor); + +require('regenerator-runtime/runtime'); + +require('./MonacoEditor.scss'); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, arguments); return new Promise(function (resolve, reject) { function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { return Promise.resolve(value).then(function (value) { step("next", value); }, function (err) { step("throw", err); }); } } return step("next"); }); }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } + +function getScript(uri) { + return new Promise(function (resolve, reject) { + var el = document.createElement('script'); + el.type = 'text/javascript'; + var head = document.head || document.head.getElementsByTagName('head')[0]; + el.onerror = function onerror(e) { + reject(new URIError(uri + ' could not be loaded'), e); + }; + el.onload = function onload(e) { + resolve({ uri: uri, event: e }); + }; + head.appendChild(el); + el.src = uri; + }); +} + +var MonacoEditor = (_temp = _class = function (_Component) { + _inherits(MonacoEditor, _Component); + + function MonacoEditor(props) { + _classCallCheck(this, MonacoEditor); + + var _this = _possibleConstructorReturn(this, (MonacoEditor.__proto__ || Object.getPrototypeOf(MonacoEditor)).call(this, props)); + + _this.onChange = function (newValue, e) { + console.log('onChange', newValue, e); + }; + + _this.editorDidMount = function (editor) { + console.log('editorDidMount', editor); + editor.focus(); + }; + + _this.state = { + monacoReady: false + }; + return _this; + } + + // ICE: React Component 的生命周期 + // http://ice.alibaba-inc.com/docs/guide/intro-react#React-组件的生命周期 + + + _createClass(MonacoEditor, [{ + key: 'componentWillMount', + value: function () { + var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() { + var _this2 = this; + + var vsBasePath, monacoRequire; + return regeneratorRuntime.wrap(function _callee$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + vsBasePath = '//unpkg.com/monaco-editor@0.10.1/min/vs'; + _context.next = 3; + return getScript(vsBasePath + '/loader.js'); + + case 3: + monacoRequire = window.require; + + monacoRequire.config({ paths: { vs: vsBasePath } }); + // monaco editor 的跨域解决方案:https://github.com/Microsoft/monaco-editor#integrate-cross-domain + window.MonacoEnvironment = { + getWorkerUrl: function getWorkerUrl() { + return '/monaco-editor-worker-loader-proxy.js'; + } + }; + monacoRequire(['vs/editor/editor.main'], function () { + _this2.setState({ + monacoReady: true + }); + }); + + case 7: + case 'end': + return _context.stop(); + } + } + }, _callee, this); + })); + + function componentWillMount() { + return _ref.apply(this, arguments); + } + + return componentWillMount; + }() + }, { + key: 'componentDidMount', + value: function componentDidMount() {} + }, { + key: 'componentWillUnmount', + value: function componentWillUnmount() {} + }, { + key: 'render', + value: function render() { + var code = 'console.log(\'hello world\');\n\nfunction foo() {\n // hello world\n}\n'; + var options = { + selectOnLineNumbers: true + }; + var monacoReady = this.state.monacoReady; + + + return _react2.default.createElement( + 'div', + { className: 'monaco-editor-container', style: styles.monacoEditorContainer }, + _react2.default.createElement( + _card2.default, + { style: styles.container }, + monacoReady ? _react2.default.createElement(_reactMonacoEditor2.default, { + height: '600', + language: 'javascript', + theme: 'vs-dark', + value: code, + options: options, + onChange: this.onChange, + editorDidMount: this.editorDidMount + }) : 'loading...' + ) + ); + } + }]); + + return MonacoEditor; +}(_react.Component), _class.displayName = 'MonacoEditor', _class.propTypes = {}, _class.defaultProps = {}, _temp); +exports.default = MonacoEditor; + + +var styles = { + container: { overflow: 'hidden', position: 'relative' }, + monacoEditorContainer: {} +}; +module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/MonacoEditor/lib/MonacoEditor.scss b/templates/ice-design/blocks/MonacoEditor/lib/MonacoEditor.scss new file mode 100644 index 0000000000..640620eda8 --- /dev/null +++ b/templates/ice-design/blocks/MonacoEditor/lib/MonacoEditor.scss @@ -0,0 +1,5 @@ +@charset "UTF-8"; + +.monaco-editor-container { + +} diff --git a/templates/ice-design/blocks/MonacoEditor/lib/index.js b/templates/ice-design/blocks/MonacoEditor/lib/index.js new file mode 100644 index 0000000000..7a91d3a547 --- /dev/null +++ b/templates/ice-design/blocks/MonacoEditor/lib/index.js @@ -0,0 +1,14 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _MonacoEditor = require('./MonacoEditor'); + +var _MonacoEditor2 = _interopRequireDefault(_MonacoEditor); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +exports.default = _MonacoEditor2.default; +module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/MonacoEditor/mock/api.json b/templates/ice-design/blocks/MonacoEditor/mock/api.json new file mode 100644 index 0000000000..eee2984fbe --- /dev/null +++ b/templates/ice-design/blocks/MonacoEditor/mock/api.json @@ -0,0 +1,4 @@ +{ + "status": "SUCCESS", + "data": {} +} diff --git a/templates/ice-design/blocks/MonacoEditor/package.json b/templates/ice-design/blocks/MonacoEditor/package.json new file mode 100644 index 0000000000..e32fab0e7a --- /dev/null +++ b/templates/ice-design/blocks/MonacoEditor/package.json @@ -0,0 +1,56 @@ +{ + "name": "@icedesign/monaco-editor-block", + "version": "0.1.0", + "description": "Monaco 代码编辑器", + "files": [ + "src/", + "demo/", + "lib/", + "mock/" + ], + "scripts": {}, + "author": { + "name": "ICE Team", + "email": "ice-admin@alibaba-inc.com" + }, + "repository": { + "type": "git", + "url": "https://github.com/alibaba/ice" + }, + "license": "MIT", + "keywords": [ + "ice", + "ice-block" + ], + "dependencies": { + "@icedesign/base": "^0.1.0", + "@icedesign/card": "^0.1.0", + "prop-types": "^15.5.8", + "react-monaco-editor": "^0.13.0", + "regenerator-runtime": "^0.11.1" + }, + "devDependencies": { + "@icedesign/demo-layout": "^0.1.2", + "@icedesign/skin": "^0.1.2", + "babel-eslint": "^8.0.3", + "eslint": "^4.13.1", + "eslint-config-airbnb": "^16.1.0", + "eslint-plugin-babel": "^4.1.1", + "eslint-plugin-import": "^2.8.0", + "eslint-plugin-jsx-a11y": "^6.0.3", + "eslint-plugin-react": "^7.5.1", + "react": "15.x", + "react-copy-to-clipboard": "^4.2.3", + "react-dom": "15.x" + }, + "blockConfig": { + "name": "monaco-editor", + "description": "Monaco 代码编辑器", + "chinese": "Monaco 代码编辑器", + "category": "form", + "snapshot": "https://gw.alicdn.com/tfs/TB1bOKfjvDH8KJjy1XcXXcpdXXa-1886-1236.png", + "sketchURL": "", + "icelandURL": "", + "themePackage": "@icedesign/skin" + } +} diff --git a/templates/ice-design/blocks/MonacoEditor/src/MonacoEditor.jsx b/templates/ice-design/blocks/MonacoEditor/src/MonacoEditor.jsx new file mode 100644 index 0000000000..43e603eaa9 --- /dev/null +++ b/templates/ice-design/blocks/MonacoEditor/src/MonacoEditor.jsx @@ -0,0 +1,114 @@ + + +import React, { Component } from 'react'; +import IceCard from '@icedesign/card'; +import Monaco from 'react-monaco-editor'; +import 'regenerator-runtime/runtime'; +import './MonacoEditor.scss'; + +function getScript(uri) { + return new Promise((resolve, reject) => { + const el = document.createElement('script'); + el.type = 'text/javascript'; + const head = document.head || + document.head.getElementsByTagName('head')[0]; + el.onerror = function onerror(e) { + reject(new URIError(`${uri} could not be loaded`), e); + }; + el.onload = function onload(e) { + resolve({ uri, event: e }); + }; + head.appendChild(el); + el.src = uri; + }); +} + +export default class MonacoEditor extends Component { + static displayName = 'MonacoEditor'; + + static propTypes = { + }; + + static defaultProps = { + }; + + constructor(props) { + super(props); + this.state = { + monacoReady: false, + }; + } + + // ICE: React Component 的生命周期 + // http://ice.alibaba-inc.com/docs/guide/intro-react#React-组件的生命周期 + async componentWillMount() { + const vsBasePath = '//unpkg.com/monaco-editor@0.10.1/min/vs'; + + await getScript(`${vsBasePath}/loader.js`); + const monacoRequire = window.require; + monacoRequire.config({ paths: { vs: vsBasePath } }); + // monaco editor 的跨域解决方案:https://github.com/Microsoft/monaco-editor#integrate-cross-domain + window.MonacoEnvironment = { + getWorkerUrl() { + return '/monaco-editor-worker-loader-proxy.js'; + }, + }; + monacoRequire(['vs/editor/editor.main'], () => { + this.setState({ + monacoReady: true, + }); + }); + } + + componentDidMount() { + + } + + componentWillUnmount() { + + } + + onChange = (newValue, e) => { + console.log('onChange', newValue, e); + }; + editorDidMount = (editor) => { + console.log('editorDidMount', editor); + editor.focus(); + }; + + render() { + const code = `console.log('hello world'); + +function foo() { + // hello world +} +`; + const options = { + selectOnLineNumbers: true, + }; + const { monacoReady } = this.state; + + return ( +
    + + { + monacoReady ? : 'loading...' + } + +
    + ); + } +} + +const styles = { + container: { overflow: 'hidden', position: 'relative' }, + monacoEditorContainer: {}, +}; diff --git a/templates/ice-design/blocks/MonacoEditor/src/MonacoEditor.scss b/templates/ice-design/blocks/MonacoEditor/src/MonacoEditor.scss new file mode 100644 index 0000000000..640620eda8 --- /dev/null +++ b/templates/ice-design/blocks/MonacoEditor/src/MonacoEditor.scss @@ -0,0 +1,5 @@ +@charset "UTF-8"; + +.monaco-editor-container { + +} diff --git a/templates/ice-design/blocks/MonacoEditor/src/index.js b/templates/ice-design/blocks/MonacoEditor/src/index.js new file mode 100644 index 0000000000..99b92411a9 --- /dev/null +++ b/templates/ice-design/blocks/MonacoEditor/src/index.js @@ -0,0 +1,3 @@ +import MonacoEditor from './MonacoEditor'; + +export default MonacoEditor; diff --git a/templates/ice-design/blocks/NotPermission/.editorconfig b/templates/ice-design/blocks/NotPermission/.editorconfig new file mode 100644 index 0000000000..22ef5ace54 --- /dev/null +++ b/templates/ice-design/blocks/NotPermission/.editorconfig @@ -0,0 +1,16 @@ +# http://editorconfig.org +root = true + +[*] +indent_style = space +indent_size = 2 +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false + +[makefile] +indent_style = tab +indent_size = 4 diff --git a/templates/ice-design/blocks/NotPermission/.eslintignore b/templates/ice-design/blocks/NotPermission/.eslintignore new file mode 100644 index 0000000000..3b21308fc7 --- /dev/null +++ b/templates/ice-design/blocks/NotPermission/.eslintignore @@ -0,0 +1,12 @@ +# 忽略目录 +build/ +tests/ +demo/ +lib/ + +# node 覆盖率文件 +coverage/ + +# 忽略文件 +**/*-min.js +**/*.min.js \ No newline at end of file diff --git a/templates/ice-design/blocks/NotPermission/.eslintrc b/templates/ice-design/blocks/NotPermission/.eslintrc new file mode 100644 index 0000000000..7a4e5bac48 --- /dev/null +++ b/templates/ice-design/blocks/NotPermission/.eslintrc @@ -0,0 +1,62 @@ +{ + "root": true, + "parser": "babel-eslint", + "extends": "eslint-config-airbnb", + "parserOptions": { + "ecmaVersion": 6, + "ecmaFeatures": { + "jsx": true, + "experimentalObjectRestSpread": true + } + }, + "env": { + "browser": true + }, + "plugins": [ + "react", + "babel" + ], + "rules": { + "react/forbid-prop-types": 0, + "jsx-a11y/label-has-for": 0, + "jsx-a11y/no-static-element-interactions": 0, + "jsx-a11y/anchor-has-content": 0, + "jsx-a11y/click-events-have-key-events": 0, + "jsx-a11y/anchor-is-valid": 0, + "react/no-array-index-key": 0, + "func-names": 0, + "arrow-body-style": 0, + "no-use-before-define": 0, + "react/sort-comp": 0, + "react/prop-types": 0, + "react/jsx-first-prop-new-line": 0, + "react/jsx-filename-extension": [ + 1, + { + "extensions": [ + ".js", + ".jsx" + ] + } + ], + "import/extensions": 0, + "import/no-unresolved": 0, + "import/no-extraneous-dependencies": 0, + "prefer-destructuring": 0, + "no-param-reassign": 0, + "no-return-assign": 0, + "max-len": 0, + "consistent-return": 0, + "no-redeclare": 0, + "react/require-extension": 0, + "react/no-danger": 0, + "comma-dangle": [ + "error", + "always-multiline" + ], + "function-paren-newline": 0, + "object-curly-newline": 0, + "no-restricted-globals": 0, + "react/prefer-stateless-function": 0 + } +} diff --git a/templates/ice-design/blocks/NotPermission/.gitignore b/templates/ice-design/blocks/NotPermission/.gitignore new file mode 100644 index 0000000000..cc45d6fb3c --- /dev/null +++ b/templates/ice-design/blocks/NotPermission/.gitignore @@ -0,0 +1,13 @@ + +*.swp +*.dia~ +.idea/ +.DS_Store + +npm-debug.log +yarn-error.log +node_modules/ +tmp/ + +# happypack 缓存 +.happypack diff --git a/templates/ice-design/blocks/NotPermission/README.md b/templates/ice-design/blocks/NotPermission/README.md new file mode 100644 index 0000000000..731dc47f79 --- /dev/null +++ b/templates/ice-design/blocks/NotPermission/README.md @@ -0,0 +1,10 @@ +# not-permission + +简介:无权限提示 + +![截图](https://img.alicdn.com/tfs/TB1XvlnjtfJ8KJjy0FeXXXKEXXa-1900-1072.png) + +## 更多 + +* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) +* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) diff --git a/templates/ice-design/blocks/NotPermission/demo/index.html b/templates/ice-design/blocks/NotPermission/demo/index.html new file mode 100644 index 0000000000..9d2d3a663d --- /dev/null +++ b/templates/ice-design/blocks/NotPermission/demo/index.html @@ -0,0 +1,19 @@ + + + + + + + + Document + + + + +
    + + + + + + diff --git a/templates/ice-design/blocks/NotPermission/demo/index.js b/templates/ice-design/blocks/NotPermission/demo/index.js new file mode 100644 index 0000000000..4d6acd389a --- /dev/null +++ b/templates/ice-design/blocks/NotPermission/demo/index.js @@ -0,0 +1,19 @@ +import React, { Component } from 'react'; +import { render } from 'react-dom'; + +// 载入默认全局样式 normalize 、.clearfix 和一些 mixin 方法等 +import '@icedesign/base/lib/_components/@alife/next-core/lib/index.scss'; + +import DemoLayout from '@icedesign/demo-layout'; +import Block from '../src'; + +const props = { + // ... +}; + +render( + + + , + document.querySelector('#mountNode') +); diff --git a/templates/ice-design/blocks/NotPermission/lib/NotPermission.js b/templates/ice-design/blocks/NotPermission/lib/NotPermission.js new file mode 100644 index 0000000000..5357993ac7 --- /dev/null +++ b/templates/ice-design/blocks/NotPermission/lib/NotPermission.js @@ -0,0 +1,85 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = undefined; + +var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + +var _class, _temp; + +var _react = require('react'); + +var _react2 = _interopRequireDefault(_react); + +var _card = require('@icedesign/card'); + +var _card2 = _interopRequireDefault(_card); + +require('./NotPermission.scss'); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } + +var NotPermission = (_temp = _class = function (_Component) { + _inherits(NotPermission, _Component); + + function NotPermission(props) { + _classCallCheck(this, NotPermission); + + var _this = _possibleConstructorReturn(this, (NotPermission.__proto__ || Object.getPrototypeOf(NotPermission)).call(this, props)); + + _this.state = {}; + return _this; + } + + _createClass(NotPermission, [{ + key: 'render', + value: function render() { + return _react2.default.createElement( + 'div', + { className: 'not-permission', style: styles.notPermission }, + _react2.default.createElement( + _card2.default, + null, + _react2.default.createElement( + 'div', + { style: styles.content }, + _react2.default.createElement('img', { + src: 'https://img.alicdn.com/tfs/TB1Gy4Yjv6H8KJjy0FjXXaXepXa-780-780.png', + style: styles.image, + alt: 'prmission' + }), + _react2.default.createElement( + 'div', + { style: styles.prompt }, + _react2.default.createElement( + 'h3', + { style: styles.title }, + '\u62B1\u6B49\uFF0C\u60A8\u65E0\u6743\u9650\uFF5E' + ), + _react2.default.createElement( + 'p', + { style: styles.description }, + '\u62B1\u6B49\uFF0C\u60A8\u6682\u65E0\u6743\u9650\uFF0C\u8BF7\u770B\u770B\u5176\u4ED6\u9875\u9762' + ) + ) + ) + ) + ); + } + }]); + + return NotPermission; +}(_react.Component), _class.displayName = 'NotPermission', _temp); +exports.default = NotPermission; + + +var styles = { content: { display: 'flex', justifyContent: 'center', alignItems: 'center', minHeight: '500px' }, image: { width: '260px', height: '260px', marginRight: '50px' }, title: { color: '#333', fontSize: '24px', margin: '20px 0' }, description: { color: '#666' }, notPermission: {} }; +module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/NotPermission/lib/NotPermission.scss b/templates/ice-design/blocks/NotPermission/lib/NotPermission.scss new file mode 100644 index 0000000000..c7e9b8ffd1 --- /dev/null +++ b/templates/ice-design/blocks/NotPermission/lib/NotPermission.scss @@ -0,0 +1,5 @@ +@charset "UTF-8"; + +.not-permission { + +} diff --git a/templates/ice-design/blocks/NotPermission/lib/index.js b/templates/ice-design/blocks/NotPermission/lib/index.js new file mode 100644 index 0000000000..1df330f422 --- /dev/null +++ b/templates/ice-design/blocks/NotPermission/lib/index.js @@ -0,0 +1,14 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _NotPermission = require('./NotPermission'); + +var _NotPermission2 = _interopRequireDefault(_NotPermission); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +exports.default = _NotPermission2.default; +module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/NotPermission/mock/api.json b/templates/ice-design/blocks/NotPermission/mock/api.json new file mode 100644 index 0000000000..eee2984fbe --- /dev/null +++ b/templates/ice-design/blocks/NotPermission/mock/api.json @@ -0,0 +1,4 @@ +{ + "status": "SUCCESS", + "data": {} +} diff --git a/templates/ice-design/blocks/NotPermission/package.json b/templates/ice-design/blocks/NotPermission/package.json new file mode 100644 index 0000000000..ae218354f2 --- /dev/null +++ b/templates/ice-design/blocks/NotPermission/package.json @@ -0,0 +1,54 @@ +{ + "name": "@icedesign/not-permission-block", + "version": "0.1.0", + "description": "", + "files": [ + "src/", + "demo/", + "lib/", + "mock/" + ], + "scripts": {}, + "author": { + "name": "ICE Team", + "email": "ice-admin@alibaba-inc.com" + }, + "repository": { + "type": "git", + "url": "https://github.com/alibaba/ice" + }, + "license": "MIT", + "keywords": [ + "ice", + "ice-block" + ], + "dependencies": { + "@icedesign/base": "^0.1.0", + "prop-types": "^15.5.8", + "@icedesign/card": "^0.1.0" + }, + "devDependencies": { + "@icedesign/skin": "^0.1.2", + "babel-eslint": "^8.0.3", + "eslint-plugin-react": "^7.5.1", + "react": "15.x", + "react-copy-to-clipboard": "^4.2.3", + "react-dom": "15.x", + "eslint": "^4.13.1", + "eslint-plugin-babel": "^4.1.1", + "eslint-plugin-import": "^2.8.0", + "eslint-config-airbnb": "^16.1.0", + "eslint-plugin-jsx-a11y": "^6.0.3", + "@icedesign/demo-layout": "^0.1.0" + }, + "blockConfig": { + "name": "not-permission", + "description": "", + "chinese": "无权限提示", + "category": "exception", + "snapshot": "https://img.alicdn.com/tfs/TB1XvlnjtfJ8KJjy0FeXXXKEXXa-1900-1072.png", + "sketchURL": "", + "icelandURL": "", + "themePackage": "@icedesign/skin" + } +} diff --git a/templates/ice-design/blocks/NotPermission/src/NotPermission.jsx b/templates/ice-design/blocks/NotPermission/src/NotPermission.jsx new file mode 100644 index 0000000000..ddce11408e --- /dev/null +++ b/templates/ice-design/blocks/NotPermission/src/NotPermission.jsx @@ -0,0 +1,34 @@ +import React, { Component } from 'react'; +import IceCard from '@icedesign/card'; +import './NotPermission.scss'; + +export default class NotPermission extends Component { + static displayName = 'NotPermission'; + + constructor(props) { + super(props); + this.state = {}; + } + + render() { + return ( +
    + +
    + prmission +
    +

    抱歉,您无权限~

    +

    抱歉,您暂无权限,请看看其他页面

    +
    +
    +
    +
    + ); + } +} + +const styles = { content: { display: 'flex', justifyContent: 'center', alignItems: 'center', minHeight: '500px' }, image: { width: '260px', height: '260px', marginRight: '50px' }, title: { color: '#333', fontSize: '24px', margin: '20px 0' }, description: { color: '#666' }, notPermission: {} }; diff --git a/templates/ice-design/blocks/NotPermission/src/NotPermission.scss b/templates/ice-design/blocks/NotPermission/src/NotPermission.scss new file mode 100644 index 0000000000..c7e9b8ffd1 --- /dev/null +++ b/templates/ice-design/blocks/NotPermission/src/NotPermission.scss @@ -0,0 +1,5 @@ +@charset "UTF-8"; + +.not-permission { + +} diff --git a/templates/ice-design/blocks/NotPermission/src/index.js b/templates/ice-design/blocks/NotPermission/src/index.js new file mode 100644 index 0000000000..44441cda44 --- /dev/null +++ b/templates/ice-design/blocks/NotPermission/src/index.js @@ -0,0 +1,3 @@ +import NotPermission from './NotPermission'; + +export default NotPermission; diff --git a/templates/ice-design/blocks/OperationTable/.editorconfig b/templates/ice-design/blocks/OperationTable/.editorconfig new file mode 100644 index 0000000000..22ef5ace54 --- /dev/null +++ b/templates/ice-design/blocks/OperationTable/.editorconfig @@ -0,0 +1,16 @@ +# http://editorconfig.org +root = true + +[*] +indent_style = space +indent_size = 2 +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false + +[makefile] +indent_style = tab +indent_size = 4 diff --git a/templates/ice-design/blocks/OperationTable/.eslintignore b/templates/ice-design/blocks/OperationTable/.eslintignore new file mode 100644 index 0000000000..3b21308fc7 --- /dev/null +++ b/templates/ice-design/blocks/OperationTable/.eslintignore @@ -0,0 +1,12 @@ +# 忽略目录 +build/ +tests/ +demo/ +lib/ + +# node 覆盖率文件 +coverage/ + +# 忽略文件 +**/*-min.js +**/*.min.js \ No newline at end of file diff --git a/templates/ice-design/blocks/OperationTable/.eslintrc b/templates/ice-design/blocks/OperationTable/.eslintrc new file mode 100644 index 0000000000..7a4e5bac48 --- /dev/null +++ b/templates/ice-design/blocks/OperationTable/.eslintrc @@ -0,0 +1,62 @@ +{ + "root": true, + "parser": "babel-eslint", + "extends": "eslint-config-airbnb", + "parserOptions": { + "ecmaVersion": 6, + "ecmaFeatures": { + "jsx": true, + "experimentalObjectRestSpread": true + } + }, + "env": { + "browser": true + }, + "plugins": [ + "react", + "babel" + ], + "rules": { + "react/forbid-prop-types": 0, + "jsx-a11y/label-has-for": 0, + "jsx-a11y/no-static-element-interactions": 0, + "jsx-a11y/anchor-has-content": 0, + "jsx-a11y/click-events-have-key-events": 0, + "jsx-a11y/anchor-is-valid": 0, + "react/no-array-index-key": 0, + "func-names": 0, + "arrow-body-style": 0, + "no-use-before-define": 0, + "react/sort-comp": 0, + "react/prop-types": 0, + "react/jsx-first-prop-new-line": 0, + "react/jsx-filename-extension": [ + 1, + { + "extensions": [ + ".js", + ".jsx" + ] + } + ], + "import/extensions": 0, + "import/no-unresolved": 0, + "import/no-extraneous-dependencies": 0, + "prefer-destructuring": 0, + "no-param-reassign": 0, + "no-return-assign": 0, + "max-len": 0, + "consistent-return": 0, + "no-redeclare": 0, + "react/require-extension": 0, + "react/no-danger": 0, + "comma-dangle": [ + "error", + "always-multiline" + ], + "function-paren-newline": 0, + "object-curly-newline": 0, + "no-restricted-globals": 0, + "react/prefer-stateless-function": 0 + } +} diff --git a/templates/ice-design/blocks/OperationTable/.gitignore b/templates/ice-design/blocks/OperationTable/.gitignore new file mode 100644 index 0000000000..cc45d6fb3c --- /dev/null +++ b/templates/ice-design/blocks/OperationTable/.gitignore @@ -0,0 +1,13 @@ + +*.swp +*.dia~ +.idea/ +.DS_Store + +npm-debug.log +yarn-error.log +node_modules/ +tmp/ + +# happypack 缓存 +.happypack diff --git a/templates/ice-design/blocks/OperationTable/README.md b/templates/ice-design/blocks/OperationTable/README.md new file mode 100644 index 0000000000..47c386f115 --- /dev/null +++ b/templates/ice-design/blocks/OperationTable/README.md @@ -0,0 +1,12 @@ +# operation-table + +简介:附带操作的表格 + +附带操作按钮的表格 + +![截图](https://img.alicdn.com/tfs/TB17r2OilfH8KJjy1XbXXbLdXXa-1908-1482.png) + +## 更多 + +* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) +* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) diff --git a/templates/ice-design/blocks/OperationTable/demo/index.html b/templates/ice-design/blocks/OperationTable/demo/index.html new file mode 100644 index 0000000000..9d2d3a663d --- /dev/null +++ b/templates/ice-design/blocks/OperationTable/demo/index.html @@ -0,0 +1,19 @@ + + + + + + + + Document + + + + +
    + + + + + + diff --git a/templates/ice-design/blocks/OperationTable/demo/index.js b/templates/ice-design/blocks/OperationTable/demo/index.js new file mode 100644 index 0000000000..d0af0a70ee --- /dev/null +++ b/templates/ice-design/blocks/OperationTable/demo/index.js @@ -0,0 +1,19 @@ +import React, {Component} from 'react'; +import {render} from 'react-dom'; + +// 载入默认全局样式 normalize 、.clearfix 和一些 mixin 方法等 +import '@alife/next/lib/_components/@alife/next-core/lib/index.scss'; + +import DemoLayout from '@icedesign/demo-layout'; +import Block from '../src'; + +const props = { + // ... +}; + +render( + + + , + document.querySelector('#mountNode') +); diff --git a/templates/ice-design/blocks/OperationTable/lib/DialogDecorator.js b/templates/ice-design/blocks/OperationTable/lib/DialogDecorator.js new file mode 100644 index 0000000000..0d7248d9af --- /dev/null +++ b/templates/ice-design/blocks/OperationTable/lib/DialogDecorator.js @@ -0,0 +1,54 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; + +var _react = require('react'); + +var _react2 = _interopRequireDefault(_react); + +var _reactDom = require('react-dom'); + +var _reactDom2 = _interopRequireDefault(_reactDom); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// 包装 Dialog 类组件,使其支持 show、hide 这种命令式调用 +var CreateFuncDialog = function CreateFuncDialog(WrapperElement) { + var instance = null; + var container = null; + + return { + // 创建并打开一个弹窗,并传入初始化的 props + show: function show(props) { + // 如果已经有实例打开了,则不会继续打开 + if (instance) { + return; + } + + container = document.createElement('div'); + document.body.appendChild(container); + instance = _reactDom2.default.render(_react2.default.createElement(WrapperElement, _extends({}, props, { visible: true })), container); + }, + // 隐藏并销毁弹窗 + hide: function hide() { + if (instance) { + instance.setState({ + visible: false + }, function () { + setTimeout(function () { + _reactDom2.default.unmountComponentAtNode(container); + instance = null; + container.parentNode.removeChild(container); + }, 1000); + }); + } + } + }; +}; + +exports.default = CreateFuncDialog; +module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/OperationTable/lib/EditorInfoDialog.js b/templates/ice-design/blocks/OperationTable/lib/EditorInfoDialog.js new file mode 100644 index 0000000000..5830133b98 --- /dev/null +++ b/templates/ice-design/blocks/OperationTable/lib/EditorInfoDialog.js @@ -0,0 +1,163 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + +var _react = require('react'); + +var _react2 = _interopRequireDefault(_react); + +var _propTypes = require('prop-types'); + +var _propTypes2 = _interopRequireDefault(_propTypes); + +var _DialogDecorator = require('./DialogDecorator'); + +var _DialogDecorator2 = _interopRequireDefault(_DialogDecorator); + +var _formBinder = require('@icedesign/form-binder'); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } + +var Dialog = require('@icedesign/base/lib/dialog'); + +var Input = require('@icedesign/base/lib/input'); + +var Select = require('@icedesign/base/lib/select'); + +var Grid = require('@icedesign/base/lib/grid'); + +var Col = Grid.Col, + Row = Grid.Row; + + +var typeData = [{ label: '清单', value: '清单' }, { label: '单品', value: '单品' }]; + +var FormDialog = function (_Component) { + _inherits(FormDialog, _Component); + + function FormDialog(props) { + _classCallCheck(this, FormDialog); + + var _this = _possibleConstructorReturn(this, (FormDialog.__proto__ || Object.getPrototypeOf(FormDialog)).call(this, props)); + + _this.onFormChange = function (value) { + _this.setState({ + value: value + }); + }; + + _this.onOkHandler = function () { + _this.props.onOk && _this.props.onOk(_this.state.value); + }; + + _this.state = { + visible: props.visible, + value: props.value + }; + return _this; + } + + _createClass(FormDialog, [{ + key: 'render', + value: function render() { + return _react2.default.createElement( + Dialog, + { + title: '\u7F16\u8F91\u6570\u636E', + onClose: this.props.onClose, + onCancel: this.props.onCancel, + onOk: this.onOkHandler, + visible: this.state.visible, + style: { width: 400 } + }, + _react2.default.createElement( + _formBinder.FormBinderWrapper, + { + value: this.state.value, + onChange: this.onFormChange + }, + _react2.default.createElement( + 'div', + null, + _react2.default.createElement( + Row, + null, + _react2.default.createElement( + Col, + { span: 4 }, + _react2.default.createElement( + 'span', + { style: styles.label }, + '\u6807\u9898' + ) + ), + _react2.default.createElement( + Col, + { span: 18 }, + _react2.default.createElement( + _formBinder.FormBinder, + { required: true, max: 20, message: '\u5F53\u524D\u6807\u9898\u5FC5\u586B' }, + _react2.default.createElement(Input, { style: styles.formField, name: 'title' }) + ), + _react2.default.createElement(_formBinder.FormError, { name: 'title' }) + ) + ), + _react2.default.createElement( + Row, + { style: styles.row }, + _react2.default.createElement( + Col, + { span: 4 }, + _react2.default.createElement( + 'span', + { style: styles.label }, + '\u7C7B\u578B' + ) + ), + _react2.default.createElement( + Col, + { span: 18 }, + _react2.default.createElement( + _formBinder.FormBinder, + null, + _react2.default.createElement(Select, { + dataSource: typeData, + style: styles.formField, + name: 'type' + }) + ) + ) + ) + ) + ) + ); + } + }]); + + return FormDialog; +}(_react.Component); + +var styles = { + row: { + marginTop: '10px' + }, + label: { + lineHeight: '30px' + }, + formField: { + width: '100%' + } +}; + +exports.default = (0, _DialogDecorator2.default)(FormDialog); +module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/OperationTable/lib/OperationTable.js b/templates/ice-design/blocks/OperationTable/lib/OperationTable.js new file mode 100644 index 0000000000..84cbe90448 --- /dev/null +++ b/templates/ice-design/blocks/OperationTable/lib/OperationTable.js @@ -0,0 +1,286 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = undefined; + +var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + +var _dec, _class, _class2, _temp; + +var _react = require('react'); + +var _react2 = _interopRequireDefault(_react); + +var _propTypes = require('prop-types'); + +var _propTypes2 = _interopRequireDefault(_propTypes); + +require('./OperationTable.scss'); + +var _card = require('@icedesign/card'); + +var _card2 = _interopRequireDefault(_card); + +var _img = require('@icedesign/img'); + +var _img2 = _interopRequireDefault(_img); + +var _dataBinder = require('@icedesign/data-binder'); + +var _dataBinder2 = _interopRequireDefault(_dataBinder); + +var _label = require('@icedesign/label'); + +var _label2 = _interopRequireDefault(_label); + +var _EditorInfoDialog = require('./EditorInfoDialog'); + +var _EditorInfoDialog2 = _interopRequireDefault(_EditorInfoDialog); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } + +var Table = require('@icedesign/base/lib/table'); + +var Pagination = require('@icedesign/base/lib/pagination'); + +var Button = require('@icedesign/base/lib/button'); + +var Icon = require('@icedesign/base/lib/icon'); + +// 详细用法请参见 http://ice.alibaba-inc.com/modules/ice-data-binder +var OperationTable = (_dec = (0, _dataBinder2.default)({ + tableData: { + // 详细请求配置请参见 https://github.com/axios/axios + url: '/mock/operation-table-list.json', + params: { + page: 1 + }, + defaultBindingData: { + list: [], + total: 100, + pageSize: 10, + currentPage: 1 + } + }, + updateTableData: { + url: '/mock/update-table-item.json' + } +}), _dec(_class = (_temp = _class2 = function (_Component) { + _inherits(OperationTable, _Component); + + function OperationTable(props) { + _classCallCheck(this, OperationTable); + + var _this = _possibleConstructorReturn(this, (OperationTable.__proto__ || Object.getPrototypeOf(OperationTable)).call(this, props)); + + _this.fetchData = function (_ref) { + var page = _ref.page; + + _this.props.updateBindingData('tableData', { + data: { + page: page + } + }); + }; + + _this.renderTitle = function (value, index, record) { + return _react2.default.createElement( + 'div', + { + style: styles.todo0 + }, + _react2.default.createElement( + 'div', + null, + _react2.default.createElement(_img2.default, { src: record.cover, width: 48, height: 48 }) + ), + _react2.default.createElement( + 'span', + { + style: styles.todo1 + }, + record.title + ) + ); + }; + + _this.editItem = function (record, e) { + e.preventDefault(); + _EditorInfoDialog2.default.show({ + value: record, + onOk: function onOk(value) { + console.log('value', value); + // todo send to api + _this.props.updateBindingData('updateTableData', { + params: { + // 复杂数据结构需要 JSON stringify + newItem: JSON.stringify(value) + } + }, function () { + // 更新完成之后,可以重新刷新列表接口 + _this.props.updateBindingData('tableData', { + data: { + page: 1 + } + }); + _EditorInfoDialog2.default.hide(); + }); + }, + onClose: function onClose() { + _EditorInfoDialog2.default.hide(); + }, + onCancel: function onCancel() { + _EditorInfoDialog2.default.hide(); + } + }); + }; + + _this.renderOperations = function (value, index, record) { + return _react2.default.createElement( + 'div', + { className: 'operation-table-operation', style: styles.operationTableOperation }, + _react2.default.createElement( + 'span', + { + onClick: _this.editItem.bind(_this, record), + title: '\u7F16\u8F91', + className: 'operation-table-operation-item', + style: styles.operationTableOperationItem + }, + _react2.default.createElement(Icon, { size: 'xs', type: 'edit' }) + ), + _react2.default.createElement( + 'span', + { title: '\u5220\u9664', className: 'operation-table-operation-item', style: styles.operationTableOperationItem }, + _react2.default.createElement(Icon, { size: 'xs', type: 'close' }) + ), + _react2.default.createElement( + 'span', + { title: '\u6536\u85CF', className: 'operation-table-operation-item', style: styles.operationTableOperationItem }, + _react2.default.createElement(Icon, { size: 'xs', type: 'favorites-filling' }) + ) + ); + }; + + _this.renderStatus = function (value, index, record) { + return _react2.default.createElement( + _label2.default, + { inverse: false, status: 'default' }, + value + ); + }; + + _this.changePage = function (currentPage) { + _this.fetchData({ + page: currentPage + }); + }; + + _this.state = {}; + return _this; + } + + // ICE: React Component 的生命周期 + // http://ice.alibaba-inc.com/docs/guide/intro-react#React-组件的生命周期 + + + _createClass(OperationTable, [{ + key: 'componentWillMount', + value: function componentWillMount() {} + }, { + key: 'componentDidMount', + value: function componentDidMount() { + this.fetchData({ + page: 1 + }); + } + }, { + key: 'componentWillReceiveProps', + value: function componentWillReceiveProps(nextProps, nextContext) {} + }, { + key: 'shouldComponentUpdate', + value: function shouldComponentUpdate(nextProps, nextState) { + return true; + } + }, { + key: 'componentWillUnmount', + value: function componentWillUnmount() {} + }, { + key: 'render', + value: function render() { + var tableData = this.props.bindingData.tableData; + + return _react2.default.createElement( + 'div', + { className: 'operation-table', style: styles.operationTable }, + _react2.default.createElement( + _card2.default, + { style: styles.todo2 }, + _react2.default.createElement( + Table, + { + dataSource: tableData.list, + isLoading: tableData.__loading, + className: 'basic-table', + style: styles.basicTable, + hasBorder: false + }, + _react2.default.createElement(Table.Column, { + title: '\u95EE\u9898\u63CF\u8FF0', + cell: this.renderTitle, + width: 320 + }), + _react2.default.createElement(Table.Column, { title: '\u95EE\u9898\u5206\u7C7B', dataIndex: 'type', width: 85 }), + _react2.default.createElement(Table.Column, { + title: '\u53D1\u5E03\u65F6\u95F4', + dataIndex: 'publishTime', + width: 150 + }), + _react2.default.createElement(Table.Column, { + title: '\u72B6\u6001', + dataIndex: 'publishStatus', + width: 85, + cell: this.renderStatus + }), + _react2.default.createElement(Table.Column, { + title: '\u64CD\u4F5C', + dataIndex: 'operation', + width: 150, + cell: this.renderOperations + }) + ), + _react2.default.createElement( + 'div', + { + style: styles.todo3 + }, + _react2.default.createElement(Pagination, { + current: tableData.currentPage, + pageSize: tableData.pageSize, + total: tableData.total, + onChange: this.changePage + }) + ) + ) + ); + } + }]); + + return OperationTable; +}(_react.Component), _class2.displayName = 'OperationTable', _class2.propTypes = { + style: _propTypes2.default.object, + className: _propTypes2.default.string +}, _class2.defaultProps = {}, _temp)) || _class); +exports.default = OperationTable; + + +var styles = { operationTableOperation: { 'a {MarginRight': '12px', textDecoration: 'none' }, operationTableOperationItem: { display: 'inline-block', width: '24px', height: '24px', borderRadius: '999px', color: '#929292', background: '#f2f2f2', textAlign: 'center', cursor: 'pointer', lineHeight: '24px', marginRight: '6px', transition: 'all ease 0' }, operationTable: {}, todo0: { display: 'flex', flexDirection: 'row' }, todo1: { marginLeft: '10px', lineHeight: '20px' }, todo2: { padding: '10px 10px 20px 10px' }, todo3: { textAlign: 'right', paddingTop: '26px' } }; +module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/OperationTable/lib/OperationTable.scss b/templates/ice-design/blocks/OperationTable/lib/OperationTable.scss new file mode 100644 index 0000000000..836ff99138 --- /dev/null +++ b/templates/ice-design/blocks/OperationTable/lib/OperationTable.scss @@ -0,0 +1,28 @@ +@charset "UTF-8"; + +.operation-table { + .operation-table-operation { + a { + margin-right: 12px; + text-decoration: none; + } + } + .operation-table-operation-item { + display: inline-block; + width: 24px; + height: 24px; + border-radius: 999px; + color: #929292; + background: #f2f2f2; + text-align: center; + cursor: pointer; + line-height: 24px; + margin-right: 6px; + transition: all ease 0.3s; + } + .next-table-row:hover { + .operation-table-operation-item { + background: #fff; + } + } +} diff --git a/templates/ice-design/blocks/OperationTable/lib/index.js b/templates/ice-design/blocks/OperationTable/lib/index.js new file mode 100644 index 0000000000..c208d69dd0 --- /dev/null +++ b/templates/ice-design/blocks/OperationTable/lib/index.js @@ -0,0 +1,14 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _OperationTable = require('./OperationTable'); + +var _OperationTable2 = _interopRequireDefault(_OperationTable); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +exports.default = _OperationTable2.default; +module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/OperationTable/mock/operation-table-list.json b/templates/ice-design/blocks/OperationTable/mock/operation-table-list.json new file mode 100644 index 0000000000..5347bea249 --- /dev/null +++ b/templates/ice-design/blocks/OperationTable/mock/operation-table-list.json @@ -0,0 +1,122 @@ +{ + "status": "SUCCESS", + "data": { + "total": 100, + "pageSize": 10, + "currentPage": 1, + "list": [ + { + "id": 1, + "cover": + "//img.alicdn.com/bao/uploaded/i3/120976213/TB2O4nSnblmpuFjSZFlXXbdQXXa_!!120976213.jpg_240x240.jpg", + "title": "于momo2017秋冬新款背带裙复古格子连衣裙清新背心裙a字裙短裙子", + "url": "https://item.taobao.com/item.htm?id=558559528377", + "type": "清单", + "publishTime": "17-04-28 20:29:20", + "publishStatus": "已发布", + "pushStatus": "已推送至订阅号", + "operation": { + "edit": true + } + }, + { + "id": 2, + "cover": + "//img.alicdn.com/bao/uploaded/i4/TB1GiPSinJ_SKJjSZPiYXH3LpXa_M2.SS2_100x100.jpg", + "title": "SOTHEA 2017秋冬新款 高质感特定纱线欧美宽松马海毛羊毛毛衣", + "url": "https://item.taobao.com/item.htm?id=558559528377", + "type": "清单", + "publishTime": "17-04-28 20:29:20", + "publishStatus": "已发布", + "pushStatus": "已推送至订阅号", + "operation": { + "edit": true + } + }, + { + "id": 3, + "cover": + "//img.alicdn.com/bao/uploaded/i3/120976213/TB2O4nSnblmpuFjSZFlXXbdQXXa_!!120976213.jpg_240x240.jpg", + "title": "川岛屋 日式天然玉米皮草编碗垫锅垫隔热垫茶垫加厚餐垫GD-29", + "url": "https://item.taobao.com/item.htm?id=558559528377", + "type": "清单", + "publishTime": "17-04-28 20:29:20", + "publishStatus": "已发布", + "pushStatus": "已推送至订阅号", + "operation": { + "edit": true + } + }, + { + "id": 4, + "cover": + "//img.alicdn.com/bao/uploaded/i7/TB1QpMvk3n.PuJjSZFkYXI_lpXa_M2.SS2_100x100.jpg", + "title": "SOTHEA 2017秋冬新款 绑带腰封设计感超顺滑质感落肩铜氨丝连衣裙", + "url": "https://item.taobao.com/item.htm?id=558559528377", + "type": "清单", + "publishTime": "17-04-28 20:29:20", + "publishStatus": "已发布", + "pushStatus": "已推送至订阅号", + "operation": { + "edit": true + } + }, + { + "id": 5, + "cover": + "//img.alicdn.com/bao/uploaded/i4/120976213/TB2GiVsdS0mpuFjSZPiXXbssVXa_!!120976213.jpg_240x240.jpg", + "title": "川岛屋 日式糖果色陶瓷柄不锈钢餐具西餐牛扒刀叉勺子咖啡勺S-27", + "url": "https://item.taobao.com/item.htm?id=558559528377", + "type": "清单", + "publishTime": "17-04-28 20:29:20", + "publishStatus": "已发布", + "pushStatus": "已推送至订阅号", + "operation": { + "edit": true + } + }, + { + "id": 6, + "cover": + "//img.alicdn.com/bao/uploaded/i3/120976213/TB2bxHGtpXXXXXVXXXXXXXXXXXX_!!120976213.jpg_240x240.jpg", + "title": "日式和风深蓝素色文艺餐巾餐垫围裙锅垫隔热手套厨房桌布GD-11", + "url": "https://item.taobao.com/item.htm?id=558559528377", + "type": "清单", + "publishTime": "17-04-28 20:29:20", + "publishStatus": "已发布", + "pushStatus": "已推送至订阅号", + "operation": { + "edit": true + } + }, + { + "id": 7, + "cover": + "https://img.alicdn.com/bao/uploaded/i4/120976213/TB2bEcHnXXXXXbgXXXXXXXXXXXX_!!120976213.jpg_100x100.jpg", + "title": "川岛屋 日式雪点樱花手绘陶瓷餐具米饭碗拉面碗寿司盘子汤碗PZ-36", + "url": "https://item.taobao.com/item.htm?id=558559528377", + "type": "清单", + "publishTime": "17-04-28 20:29:20", + "publishStatus": "已发布", + "pushStatus": "已推送至订阅号", + "operation": { + "edit": true + } + }, + { + "id": 8, + "cover": + "//img.alicdn.com/bao/uploaded/i2/TB11DjAIFXXXXaTXFXXXXXXXXXX_!!0-item_pic.jpg_100x100.jpg", + "title": "川岛屋 釉下彩复古日式陶瓷盘子菜盘圆盘调味碟 米饭碗日式餐具", + "url": "https://item.taobao.com/item.htm?id=558559528377", + "type": "清单", + "publishTime": "17-04-28 20:29:20", + "publishStatus": "已发布", + "pushStatus": "已推送至订阅号", + "operation": { + "edit": true + } + } + ] + } +} diff --git a/templates/ice-design/blocks/OperationTable/mock/update-table-item.json b/templates/ice-design/blocks/OperationTable/mock/update-table-item.json new file mode 100644 index 0000000000..7648d63039 --- /dev/null +++ b/templates/ice-design/blocks/OperationTable/mock/update-table-item.json @@ -0,0 +1,5 @@ +{ + "status": "SUCCESS", + "message": "更新数据成功!", + "data": {} +} diff --git a/templates/ice-design/blocks/OperationTable/package.json b/templates/ice-design/blocks/OperationTable/package.json new file mode 100644 index 0000000000..2100b43034 --- /dev/null +++ b/templates/ice-design/blocks/OperationTable/package.json @@ -0,0 +1,56 @@ +{ + "name": "@icedesign/operation-table-block", + "version": "0.1.0", + "description": "附带操作按钮的表格", + "main": "lib/index.js", + "files": [ + "src/", + "demo/", + "lib/", + "mock/" + ], + "author": { + "name": "ICE Team", + "email": "ice-admin@alibaba-inc.com" + }, + "repository": { + "type": "git", + "url": "https://github.com/alibaba/ice" + }, + "license": "MIT", + "keywords": [ + "ice", + "ice-block" + ], + "dependencies": { + "prop-types": "^15.5.8", + "@icedesign/base": "^0.1.0", + "@icedesign/card": "^0.1.0", + "@icedesign/data-binder": "^0.1.0", + "@icedesign/form-binder": "^0.1.0", + "@icedesign/img": "^0.1.0", + "@icedesign/label": "^0.1.0" + }, + "devDependencies": { + "babel-eslint": "^8.0.3", + "eslint": "^4.13.1", + "eslint-plugin-babel": "^4.1.1", + "eslint-plugin-react": "^7.5.1", + "@icedesign/demo-layout": "^0.1.0", + "eslint-plugin-import": "^2.8.0", + "eslint-config-airbnb": "^16.1.0", + "eslint-plugin-jsx-a11y": "^6.0.3", + "@icedesign/skin": "^0.1.2" + }, + "blockConfig": { + "name": "operation-table", + "description": "附带操作按钮的表格", + "chinese": "附带操作的表格", + "category": "table", + "snapshot": "https://img.alicdn.com/tfs/TB17r2OilfH8KJjy1XbXXbLdXXa-1908-1482.png", + "sketchURL": "", + "icelandURL": "", + "themePackage": "@icedesign/skin" + }, + "scripts": {} +} diff --git a/templates/ice-design/blocks/OperationTable/src/DialogDecorator.js b/templates/ice-design/blocks/OperationTable/src/DialogDecorator.js new file mode 100644 index 0000000000..f091d06e3f --- /dev/null +++ b/templates/ice-design/blocks/OperationTable/src/DialogDecorator.js @@ -0,0 +1,46 @@ + + +import React from 'react'; +import ReactDOM from 'react-dom'; + +// 包装 Dialog 类组件,使其支持 show、hide 这种命令式调用 +const CreateFuncDialog = (WrapperElement) => { + let instance = null; + let container = null; + + return { + // 创建并打开一个弹窗,并传入初始化的 props + show: (props) => { + // 如果已经有实例打开了,则不会继续打开 + if (instance) { + return; + } + + container = document.createElement('div'); + document.body.appendChild(container); + instance = ReactDOM.render( + , + container + ); + }, + // 隐藏并销毁弹窗 + hide: () => { + if (instance) { + instance.setState( + { + visible: false, + }, + () => { + setTimeout(() => { + ReactDOM.unmountComponentAtNode(container); + instance = null; + container.parentNode.removeChild(container); + }, 1000); + } + ); + } + }, + }; +}; + +export default CreateFuncDialog; diff --git a/templates/ice-design/blocks/OperationTable/src/EditorInfoDialog.jsx b/templates/ice-design/blocks/OperationTable/src/EditorInfoDialog.jsx new file mode 100644 index 0000000000..f358016fd6 --- /dev/null +++ b/templates/ice-design/blocks/OperationTable/src/EditorInfoDialog.jsx @@ -0,0 +1,100 @@ + + +import React, { Component } from 'react'; +import PropTypes from 'prop-types'; + +import DialogDecorator from './DialogDecorator'; +import { Dialog, Input, Select, Grid } from '@icedesign/base'; +import { + FormBinderWrapper as IceFormBinderWrapper, + FormBinder as IceFormBinder, + FormError as IceFormError, +} from '@icedesign/form-binder'; + +const { Col, Row } = Grid; + +const typeData = [ + { label: '清单', value: '清单' }, + { label: '单品', value: '单品' }, +]; + +class FormDialog extends Component { + constructor(props) { + super(props); + + this.state = { + visible: props.visible, + value: props.value, + }; + } + + onFormChange = (value) => { + this.setState({ + value, + }); + }; + + onOkHandler = () => { + this.props.onOk && this.props.onOk(this.state.value); + }; + + render() { + return ( + + +
    + + + 标题 + + + + + + + + + + + 类型 + + + + +
    +
    消息内容
    +
    + +
    +
    + +
    + +
    + ); + } +} + +const styles = { formCard: { width: 518, paddingLeft: '30px' }, title: { fontSize: '16px', marginBottom: '10px', color: '#000', fontWeight: 'bold' }, subtitle: { color: '#000', fontSize: '14px', marginBottom: '30px' }, groupTitle: { marginBottom: '10px' }, input: { width: '332px', marginBottom: '20px' }, textarea: { width: '332px', heihgt: '85px' }, textareaWrap: { marginBottom: '20px' }, privateMessageForm: {} }; diff --git a/templates/ice-design/blocks/PrivateMessageForm/src/PrivateMessageForm.scss b/templates/ice-design/blocks/PrivateMessageForm/src/PrivateMessageForm.scss new file mode 100644 index 0000000000..70bde29b50 --- /dev/null +++ b/templates/ice-design/blocks/PrivateMessageForm/src/PrivateMessageForm.scss @@ -0,0 +1,5 @@ +@charset "UTF-8"; + +.private-message-form { + +} diff --git a/templates/ice-design/blocks/PrivateMessageForm/src/index.js b/templates/ice-design/blocks/PrivateMessageForm/src/index.js new file mode 100644 index 0000000000..e6ab22439e --- /dev/null +++ b/templates/ice-design/blocks/PrivateMessageForm/src/index.js @@ -0,0 +1,3 @@ +import PrivateMessageForm from './PrivateMessageForm'; + +export default PrivateMessageForm; diff --git a/templates/ice-design/blocks/ProductInfo/.editorconfig b/templates/ice-design/blocks/ProductInfo/.editorconfig new file mode 100644 index 0000000000..22ef5ace54 --- /dev/null +++ b/templates/ice-design/blocks/ProductInfo/.editorconfig @@ -0,0 +1,16 @@ +# http://editorconfig.org +root = true + +[*] +indent_style = space +indent_size = 2 +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false + +[makefile] +indent_style = tab +indent_size = 4 diff --git a/templates/ice-design/blocks/ProductInfo/.eslintignore b/templates/ice-design/blocks/ProductInfo/.eslintignore new file mode 100644 index 0000000000..3b21308fc7 --- /dev/null +++ b/templates/ice-design/blocks/ProductInfo/.eslintignore @@ -0,0 +1,12 @@ +# 忽略目录 +build/ +tests/ +demo/ +lib/ + +# node 覆盖率文件 +coverage/ + +# 忽略文件 +**/*-min.js +**/*.min.js \ No newline at end of file diff --git a/templates/ice-design/blocks/ProductInfo/.eslintrc b/templates/ice-design/blocks/ProductInfo/.eslintrc new file mode 100644 index 0000000000..7a4e5bac48 --- /dev/null +++ b/templates/ice-design/blocks/ProductInfo/.eslintrc @@ -0,0 +1,62 @@ +{ + "root": true, + "parser": "babel-eslint", + "extends": "eslint-config-airbnb", + "parserOptions": { + "ecmaVersion": 6, + "ecmaFeatures": { + "jsx": true, + "experimentalObjectRestSpread": true + } + }, + "env": { + "browser": true + }, + "plugins": [ + "react", + "babel" + ], + "rules": { + "react/forbid-prop-types": 0, + "jsx-a11y/label-has-for": 0, + "jsx-a11y/no-static-element-interactions": 0, + "jsx-a11y/anchor-has-content": 0, + "jsx-a11y/click-events-have-key-events": 0, + "jsx-a11y/anchor-is-valid": 0, + "react/no-array-index-key": 0, + "func-names": 0, + "arrow-body-style": 0, + "no-use-before-define": 0, + "react/sort-comp": 0, + "react/prop-types": 0, + "react/jsx-first-prop-new-line": 0, + "react/jsx-filename-extension": [ + 1, + { + "extensions": [ + ".js", + ".jsx" + ] + } + ], + "import/extensions": 0, + "import/no-unresolved": 0, + "import/no-extraneous-dependencies": 0, + "prefer-destructuring": 0, + "no-param-reassign": 0, + "no-return-assign": 0, + "max-len": 0, + "consistent-return": 0, + "no-redeclare": 0, + "react/require-extension": 0, + "react/no-danger": 0, + "comma-dangle": [ + "error", + "always-multiline" + ], + "function-paren-newline": 0, + "object-curly-newline": 0, + "no-restricted-globals": 0, + "react/prefer-stateless-function": 0 + } +} diff --git a/templates/ice-design/blocks/ProductInfo/.gitignore b/templates/ice-design/blocks/ProductInfo/.gitignore new file mode 100644 index 0000000000..cc45d6fb3c --- /dev/null +++ b/templates/ice-design/blocks/ProductInfo/.gitignore @@ -0,0 +1,13 @@ + +*.swp +*.dia~ +.idea/ +.DS_Store + +npm-debug.log +yarn-error.log +node_modules/ +tmp/ + +# happypack 缓存 +.happypack diff --git a/templates/ice-design/blocks/ProductInfo/README.md b/templates/ice-design/blocks/ProductInfo/README.md new file mode 100644 index 0000000000..f3585d4bd7 --- /dev/null +++ b/templates/ice-design/blocks/ProductInfo/README.md @@ -0,0 +1,10 @@ +# product-info + +简介:产品信息展示 + +![截图](https://img.alicdn.com/tfs/TB1IQ9Fif6H8KJjy0FjXXaXepXa-955-528.png) + +## 更多 + +* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) +* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) diff --git a/templates/ice-design/blocks/ProductInfo/demo/index.html b/templates/ice-design/blocks/ProductInfo/demo/index.html new file mode 100644 index 0000000000..9d2d3a663d --- /dev/null +++ b/templates/ice-design/blocks/ProductInfo/demo/index.html @@ -0,0 +1,19 @@ + + + + + + + + Document + + + + +
    + + + + + + diff --git a/templates/ice-design/blocks/ProductInfo/demo/index.js b/templates/ice-design/blocks/ProductInfo/demo/index.js new file mode 100644 index 0000000000..178a766115 --- /dev/null +++ b/templates/ice-design/blocks/ProductInfo/demo/index.js @@ -0,0 +1,19 @@ +import React, {Component} from 'react'; +import {render} from 'react-dom'; + +// 载入默认全局样式 normalize 、.clearfix 和一些 mixin 方法等 +import '@icedesign/base/lib/_components/@alife/next-core/lib/index.scss'; + +import DemoLayout from '@icedesign/demo-layout'; +import Block from '../src'; + +const props = { + // ... +}; + +render( + + + , + document.querySelector('#mountNode') +); diff --git a/templates/ice-design/blocks/ProductInfo/lib/ProductInfo.js b/templates/ice-design/blocks/ProductInfo/lib/ProductInfo.js new file mode 100644 index 0000000000..96835d1ba2 --- /dev/null +++ b/templates/ice-design/blocks/ProductInfo/lib/ProductInfo.js @@ -0,0 +1,137 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = undefined; + +var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + +var _class, _temp; + +var _react = require('react'); + +var _react2 = _interopRequireDefault(_react); + +var _propTypes = require('prop-types'); + +var _propTypes2 = _interopRequireDefault(_propTypes); + +var _card = require('@icedesign/card'); + +var _card2 = _interopRequireDefault(_card); + +require('./ProductInfo.scss'); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } + +var dataSource = [{ + title: '主页背书', + pic: 'https://img.alicdn.com/tfs/TB1i7OMif6H8KJjSspmXXb2WXXa-210-210.png', + desc: '这里填写具体的细节描述,如果文字很长可以' +}, { + title: '频道入驻', + pic: 'https://img.alicdn.com/tfs/TB1wA5KinvI8KJjSspjXXcgjXXa-210-210.png', + desc: '这里填写具体的细节描述,如果文字很长可以' +}, { + title: '商业扶持', + pic: 'https://img.alicdn.com/tfs/TB1laelicjI8KJjSsppXXXbyVXa-210-210.png', + desc: '这里填写具体的细节描述,如果文字很长可以' +}, { + title: '专属管家', + pic: 'https://img.alicdn.com/tfs/TB1EfLYfOqAXuNjy1XdXXaYcVXa-207-210.png', + desc: '这里填写具体的细节描述,如果文字很长可以' +}, { + title: '资源优选', + pic: 'https://img.alicdn.com/tfs/TB1a31mignH8KJjSspcXXb3QFXa-210-210.png', + desc: '这里填写具体的细节描述,如果文字很长可以' +}, { + title: '快捷搜索', + pic: 'https://img.alicdn.com/tfs/TB1ALecicrI8KJjy0FhXXbfnpXa-210-210.png', + desc: '这里填写具体的细节描述,如果文字很长可以' +}]; + +var ProductInfo = (_temp = _class = function (_Component) { + _inherits(ProductInfo, _Component); + + function ProductInfo(props) { + _classCallCheck(this, ProductInfo); + + var _this = _possibleConstructorReturn(this, (ProductInfo.__proto__ || Object.getPrototypeOf(ProductInfo)).call(this, props)); + + _this.state = {}; + return _this; + } + + // ICE: React Component 的生命周期 + // http://ice.alibaba-inc.com/docs/guide/intro-react#React-组件的生命周期 + + + _createClass(ProductInfo, [{ + key: 'componentWillMount', + value: function componentWillMount() {} + }, { + key: 'componentDidMount', + value: function componentDidMount() {} + }, { + key: 'componentWillReceiveProps', + value: function componentWillReceiveProps(nextProps, nextContext) {} + }, { + key: 'shouldComponentUpdate', + value: function shouldComponentUpdate(nextProps, nextState) { + return true; + } + }, { + key: 'componentWillUnmount', + value: function componentWillUnmount() {} + }, { + key: 'render', + value: function render() { + return _react2.default.createElement( + 'div', + { className: 'product-info', style: styles.productInfo }, + _react2.default.createElement( + _card2.default, + null, + _react2.default.createElement( + 'div', + { style: styles.items }, + dataSource.map(function (item, index) { + return _react2.default.createElement( + 'div', + { key: index, style: styles.item }, + _react2.default.createElement('img', { src: item.pic, style: styles.pic }), + _react2.default.createElement( + 'h3', + { style: styles.title }, + item.title + ), + _react2.default.createElement( + 'p', + { style: styles.desc }, + item.desc + ) + ); + }) + ) + ) + ); + } + }]); + + return ProductInfo; +}(_react.Component), _class.displayName = 'ProductInfo', _class.propTypes = { + style: _propTypes2.default.object, + className: _propTypes2.default.string +}, _class.defaultProps = {}, _temp); +exports.default = ProductInfo; + + +var styles = { items: { display: 'flex', flexWrap: 'wrap' }, item: { width: '33.3333%', textAlign: 'center', padding: '10px 22px', marginBottom: '20px' }, pic: { width: 100, height: 100 }, title: { fontWeight: 'bold' }, desc: { lineHeight: '22px' }, productInfo: {} }; +module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/ProductInfo/lib/ProductInfo.scss b/templates/ice-design/blocks/ProductInfo/lib/ProductInfo.scss new file mode 100644 index 0000000000..0cbab418e2 --- /dev/null +++ b/templates/ice-design/blocks/ProductInfo/lib/ProductInfo.scss @@ -0,0 +1,5 @@ +@charset "UTF-8"; + +.product-info { + +} diff --git a/templates/ice-design/blocks/ProductInfo/lib/index.js b/templates/ice-design/blocks/ProductInfo/lib/index.js new file mode 100644 index 0000000000..da8f84cb14 --- /dev/null +++ b/templates/ice-design/blocks/ProductInfo/lib/index.js @@ -0,0 +1,14 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _ProductInfo = require('./ProductInfo'); + +var _ProductInfo2 = _interopRequireDefault(_ProductInfo); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +exports.default = _ProductInfo2.default; +module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/ProductInfo/mock/api.json b/templates/ice-design/blocks/ProductInfo/mock/api.json new file mode 100644 index 0000000000..e706430232 --- /dev/null +++ b/templates/ice-design/blocks/ProductInfo/mock/api.json @@ -0,0 +1,4 @@ +{ + "status": "success", + "data": {} +} diff --git a/templates/ice-design/blocks/ProductInfo/package.json b/templates/ice-design/blocks/ProductInfo/package.json new file mode 100644 index 0000000000..2bb0ec5965 --- /dev/null +++ b/templates/ice-design/blocks/ProductInfo/package.json @@ -0,0 +1,51 @@ +{ + "name": "@icedesign/product-info-block", + "version": "0.1.0", + "description": "", + "files": [ + "src/", + "demo/", + "lib/", + "mock/" + ], + "author": { + "name": "ICE Team", + "email": "ice-admin@alibaba-inc.com" + }, + "repository": { + "type": "git", + "url": "https://github.com/alibaba/ice" + }, + "license": "MIT", + "keywords": [ + "ice", + "ice-block" + ], + "dependencies": { + "prop-types": "^15.5.8", + "@icedesign/base": "^0.1.0", + "@icedesign/card": "^0.1.0" + }, + "devDependencies": { + "babel-eslint": "^8.0.3", + "eslint": "^4.13.1", + "eslint-plugin-babel": "^4.1.1", + "eslint-plugin-react": "^7.5.1", + "@icedesign/demo-layout": "^0.1.0", + "eslint-plugin-import": "^2.8.0", + "eslint-config-airbnb": "^16.1.0", + "eslint-plugin-jsx-a11y": "^6.0.3", + "@icedesign/skin": "^0.1.2" + }, + "blockConfig": { + "name": "product-info", + "description": "产品信息展示", + "chinese": "产品信息展示", + "category": "info-display", + "snapshot": "https://img.alicdn.com/tfs/TB1IQ9Fif6H8KJjy0FjXXaXepXa-955-528.png", + "sketchURL": "", + "icelandURL": "", + "themePackage": "@icedesign/skin" + }, + "scripts": {} +} diff --git a/templates/ice-design/blocks/ProductInfo/src/ProductInfo.jsx b/templates/ice-design/blocks/ProductInfo/src/ProductInfo.jsx new file mode 100644 index 0000000000..fb94bf45c4 --- /dev/null +++ b/templates/ice-design/blocks/ProductInfo/src/ProductInfo.jsx @@ -0,0 +1,91 @@ + + +import React, { Component } from 'react'; +import PropTypes from 'prop-types'; +import IceCard from '@icedesign/card'; +import './ProductInfo.scss'; + +const dataSource = [ + { + title: '主页背书', + pic: 'https://img.alicdn.com/tfs/TB1i7OMif6H8KJjSspmXXb2WXXa-210-210.png', + desc: '这里填写具体的细节描述,如果文字很长可以', + }, + { + title: '频道入驻', + pic: 'https://img.alicdn.com/tfs/TB1wA5KinvI8KJjSspjXXcgjXXa-210-210.png', + desc: '这里填写具体的细节描述,如果文字很长可以', + }, + { + title: '商业扶持', + pic: 'https://img.alicdn.com/tfs/TB1laelicjI8KJjSsppXXXbyVXa-210-210.png', + desc: '这里填写具体的细节描述,如果文字很长可以', + }, + { + title: '专属管家', + pic: 'https://img.alicdn.com/tfs/TB1EfLYfOqAXuNjy1XdXXaYcVXa-207-210.png', + desc: '这里填写具体的细节描述,如果文字很长可以', + }, + { + title: '资源优选', + pic: 'https://img.alicdn.com/tfs/TB1a31mignH8KJjSspcXXb3QFXa-210-210.png', + desc: '这里填写具体的细节描述,如果文字很长可以', + }, + { + title: '快捷搜索', + pic: 'https://img.alicdn.com/tfs/TB1ALecicrI8KJjy0FhXXbfnpXa-210-210.png', + desc: '这里填写具体的细节描述,如果文字很长可以', + }, +]; + +export default class ProductInfo extends Component { + static displayName = 'ProductInfo'; + + static propTypes = { + style: PropTypes.object, + className: PropTypes.string, + }; + + static defaultProps = {}; + + constructor(props) { + super(props); + this.state = {}; + } + + // ICE: React Component 的生命周期 + // http://ice.alibaba-inc.com/docs/guide/intro-react#React-组件的生命周期 + componentWillMount() {} + + componentDidMount() {} + + componentWillReceiveProps(nextProps, nextContext) {} + + shouldComponentUpdate(nextProps, nextState) { + return true; + } + + componentWillUnmount() {} + + render() { + return ( +
    + +
    + {dataSource.map((item, index) => { + return ( +
    + +

    {item.title}

    +

    {item.desc}

    +
    + ); + })} +
    +
    +
    + ); + } +} + +const styles = { items: { display: 'flex', flexWrap: 'wrap' }, item: { width: '33.3333%', textAlign: 'center', padding: '10px 22px', marginBottom: '20px' }, pic: { width: 100, height: 100 }, title: { fontWeight: 'bold' }, desc: { lineHeight: '22px' }, productInfo: {} }; diff --git a/templates/ice-design/blocks/ProductInfo/src/ProductInfo.scss b/templates/ice-design/blocks/ProductInfo/src/ProductInfo.scss new file mode 100644 index 0000000000..0cbab418e2 --- /dev/null +++ b/templates/ice-design/blocks/ProductInfo/src/ProductInfo.scss @@ -0,0 +1,5 @@ +@charset "UTF-8"; + +.product-info { + +} diff --git a/templates/ice-design/blocks/ProductInfo/src/index.js b/templates/ice-design/blocks/ProductInfo/src/index.js new file mode 100644 index 0000000000..53a1e7c89c --- /dev/null +++ b/templates/ice-design/blocks/ProductInfo/src/index.js @@ -0,0 +1,3 @@ +import ProductInfo from './ProductInfo'; + +export default ProductInfo; diff --git a/templates/ice-design/blocks/ProgressTable/.editorconfig b/templates/ice-design/blocks/ProgressTable/.editorconfig new file mode 100644 index 0000000000..22ef5ace54 --- /dev/null +++ b/templates/ice-design/blocks/ProgressTable/.editorconfig @@ -0,0 +1,16 @@ +# http://editorconfig.org +root = true + +[*] +indent_style = space +indent_size = 2 +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false + +[makefile] +indent_style = tab +indent_size = 4 diff --git a/templates/ice-design/blocks/ProgressTable/.eslintignore b/templates/ice-design/blocks/ProgressTable/.eslintignore new file mode 100644 index 0000000000..2d5ec592a3 --- /dev/null +++ b/templates/ice-design/blocks/ProgressTable/.eslintignore @@ -0,0 +1,12 @@ +# 忽略目录 +build/ +tests/ +demo/ +lib/ + +# node 覆盖率文件 +coverage/ + +# 忽略文件 +**/*-min.js +**/*.min.js diff --git a/templates/ice-design/blocks/ProgressTable/.eslintrc b/templates/ice-design/blocks/ProgressTable/.eslintrc new file mode 100644 index 0000000000..dd7e78fc12 --- /dev/null +++ b/templates/ice-design/blocks/ProgressTable/.eslintrc @@ -0,0 +1,53 @@ +{ + "root": true, + "parser": "babel-eslint", + "extends": "eslint-config-airbnb", + "parserOptions": { + "ecmaVersion": 6, + "ecmaFeatures": { + "jsx": true, + "experimentalObjectRestSpread": true + } + }, + "env": { + "browser": true + }, + "plugins": ["react", "babel"], + "rules": { + "react/forbid-prop-types": 0, + "jsx-a11y/label-has-for": 0, + "jsx-a11y/no-static-element-interactions": 0, + "jsx-a11y/anchor-has-content": 0, + "jsx-a11y/click-events-have-key-events": 0, + "jsx-a11y/anchor-is-valid": 0, + "react/no-array-index-key": 0, + "func-names": 0, + "arrow-body-style": 0, + "no-use-before-define": 1, + "react/sort-comp": 0, + "react/prop-types": 0, + "react/jsx-first-prop-new-line": 0, + "react/jsx-filename-extension": [ + 1, + { + "extensions": [".js", ".jsx"] + } + ], + "import/extensions": 0, + "import/no-unresolved": 0, + "import/no-extraneous-dependencies": 0, + "prefer-destructuring": 0, + "no-param-reassign": 0, + "no-return-assign": 0, + "max-len": 0, + "consistent-return": 0, + "no-redeclare": 0, + "react/require-extension": 0, + "react/no-danger": 0, + "comma-dangle": ["error", "always-multiline"], + "function-paren-newline": 0, + "object-curly-newline": 0, + "no-restricted-globals": 0, + "no-mixed-operators": 0 + } +} diff --git a/templates/ice-design/blocks/ProgressTable/.gitignore b/templates/ice-design/blocks/ProgressTable/.gitignore new file mode 100644 index 0000000000..cc45d6fb3c --- /dev/null +++ b/templates/ice-design/blocks/ProgressTable/.gitignore @@ -0,0 +1,13 @@ + +*.swp +*.dia~ +.idea/ +.DS_Store + +npm-debug.log +yarn-error.log +node_modules/ +tmp/ + +# happypack 缓存 +.happypack diff --git a/templates/ice-design/blocks/ProgressTable/README.md b/templates/ice-design/blocks/ProgressTable/README.md new file mode 100644 index 0000000000..e6b415b0a4 --- /dev/null +++ b/templates/ice-design/blocks/ProgressTable/README.md @@ -0,0 +1,10 @@ +# progress-table + +简介:进度条表格 + +![截图](https://img.alicdn.com/tfs/TB1MSwOih6I8KJjy0FgXXXXzVXa-1828-1206.png) + +## 更多 + +* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) +* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) diff --git a/templates/ice-design/blocks/ProgressTable/demo/index.html b/templates/ice-design/blocks/ProgressTable/demo/index.html new file mode 100644 index 0000000000..cb0422f8d9 --- /dev/null +++ b/templates/ice-design/blocks/ProgressTable/demo/index.html @@ -0,0 +1,18 @@ + + + + + + + + Document + + + + +
    + + + + + diff --git a/templates/ice-design/blocks/ProgressTable/demo/index.js b/templates/ice-design/blocks/ProgressTable/demo/index.js new file mode 100644 index 0000000000..4d6acd389a --- /dev/null +++ b/templates/ice-design/blocks/ProgressTable/demo/index.js @@ -0,0 +1,19 @@ +import React, { Component } from 'react'; +import { render } from 'react-dom'; + +// 载入默认全局样式 normalize 、.clearfix 和一些 mixin 方法等 +import '@icedesign/base/lib/_components/@alife/next-core/lib/index.scss'; + +import DemoLayout from '@icedesign/demo-layout'; +import Block from '../src'; + +const props = { + // ... +}; + +render( + + + , + document.querySelector('#mountNode') +); diff --git a/templates/ice-design/blocks/ProgressTable/lib/ProgressTable.js b/templates/ice-design/blocks/ProgressTable/lib/ProgressTable.js new file mode 100644 index 0000000000..e49e979cd4 --- /dev/null +++ b/templates/ice-design/blocks/ProgressTable/lib/ProgressTable.js @@ -0,0 +1,131 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = undefined; + +var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + +var _class, _temp; + +var _react = require('react'); + +var _react2 = _interopRequireDefault(_react); + +var _card = require('@icedesign/card'); + +var _card2 = _interopRequireDefault(_card); + +require('./ProgressTable.scss'); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } + +var Table = require('@icedesign/base/lib/table'); + +var Progress = require('@icedesign/base/lib/progress'); + +var Pagination = require('@icedesign/base/lib/pagination'); + +var getTableData = function getTableData() { + return Array.from({ length: 10 }).map(function (item, index) { + return { + name: 'A旗舰店', + total: Math.ceil(Math.random() * 1000000), + count: 300 - index * 10, + progress: Math.ceil(Math.random() * 100) + }; + }); +}; + +var ProgressTable = (_temp = _class = function (_Component) { + _inherits(ProgressTable, _Component); + + function ProgressTable(props) { + _classCallCheck(this, ProgressTable); + + var _this = _possibleConstructorReturn(this, (ProgressTable.__proto__ || Object.getPrototypeOf(ProgressTable)).call(this, props)); + + _this.renderCellProgress = function (value) { + return _react2.default.createElement(Progress, { showInfo: false, percent: parseInt(value, 10) }); + }; + + _this.onPageChange = function (pageNo) { + _this.setState({ + current: pageNo + }); + }; + + _this.state = { + dataSource: getTableData(), + current: 1 + }; + return _this; + } + + _createClass(ProgressTable, [{ + key: 'render', + value: function render() { + return _react2.default.createElement( + 'div', + { className: 'progress-table' }, + _react2.default.createElement( + _card2.default, + { + style: { + margin: '20px' + }, + className: 'tab-card', + title: '\u672C\u6708\u6700\u6D3B\u8DC3\u91D1\u4E3B' + }, + _react2.default.createElement( + Table, + { + hasBorder: true, + getRowClassName: function getRowClassName(record, index) { + return 'progress-table-tr progress-table-tr' + index; + }, + dataSource: this.state.dataSource + }, + _react2.default.createElement(Table.Column, { title: '\u5E97\u94FA\u540D\u79F0', dataIndex: 'name' }), + _react2.default.createElement(Table.Column, { title: '\u6210\u4EA4\u91D1\u989D', dataIndex: 'total' }), + _react2.default.createElement(Table.Column, { title: '\u6210\u4EA4\u5355\u6570', dataIndex: 'count' }), + _react2.default.createElement(Table.Column, { + title: '', + dataIndex: 'progress', + cell: this.renderCellProgress + }) + ), + _react2.default.createElement( + 'div', + { style: styles.paginationWrapper }, + _react2.default.createElement(Pagination, { + current: this.state.current, + onChange: this.onPageChange, + shape: 'arrow-only' + }) + ) + ) + ); + } + }]); + + return ProgressTable; +}(_react.Component), _class.displayName = 'ProgressTable', _temp); +exports.default = ProgressTable; + + +var styles = { + paginationWrapper: { + display: 'flex', + padding: '20px 0 0 0', + flexDirection: 'row-reverse' + } +}; +module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/ProgressTable/lib/ProgressTable.scss b/templates/ice-design/blocks/ProgressTable/lib/ProgressTable.scss new file mode 100644 index 0000000000..86fb3dd312 --- /dev/null +++ b/templates/ice-design/blocks/ProgressTable/lib/ProgressTable.scss @@ -0,0 +1,8 @@ +@charset "UTF-8"; + +.progress-table { + .progress-table-tr { + color: #666; + font-size: 14px; + } +} diff --git a/templates/ice-design/blocks/ProgressTable/lib/index.js b/templates/ice-design/blocks/ProgressTable/lib/index.js new file mode 100644 index 0000000000..809c6784e4 --- /dev/null +++ b/templates/ice-design/blocks/ProgressTable/lib/index.js @@ -0,0 +1,14 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _ProgressTable = require('./ProgressTable'); + +var _ProgressTable2 = _interopRequireDefault(_ProgressTable); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +exports.default = _ProgressTable2.default; +module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/ProgressTable/mock/api.json b/templates/ice-design/blocks/ProgressTable/mock/api.json new file mode 100644 index 0000000000..e706430232 --- /dev/null +++ b/templates/ice-design/blocks/ProgressTable/mock/api.json @@ -0,0 +1,4 @@ +{ + "status": "success", + "data": {} +} diff --git a/templates/ice-design/blocks/ProgressTable/package.json b/templates/ice-design/blocks/ProgressTable/package.json new file mode 100644 index 0000000000..49d8566611 --- /dev/null +++ b/templates/ice-design/blocks/ProgressTable/package.json @@ -0,0 +1,54 @@ +{ + "name": "@icedesign/progress-table-block", + "version": "0.1.0", + "description": "", + "main": "lib/index.js", + "files": [ + "src/", + "demo/", + "mock/" + ], + "author": { + "name": "ICE Team", + "email": "ice-admin@alibaba-inc.com" + }, + "repository": { + "type": "git", + "url": "https://github.com/alibaba/ice" + }, + "license": "MIT", + "keywords": [ + "ice", + "ice-block" + ], + "dependencies": { + "prop-types": "^0.1.0", + "@icedesign/base": "^0.1.0", + "@icedesign/card": "^0.1.0" + }, + "devDependencies": { + "babel-eslint": "^8.0.3", + "eslint": "^4.13.1", + "eslint-plugin-babel": "^4.1.1", + "eslint-plugin-react": "^7.5.1", + "eslint-plugin-import": "^2.8.0", + "eslint-config-airbnb": "^16.1.0", + "eslint-plugin-jsx-a11y": "^6.0.3", + "@icedesign/skin": "^0.1.3", + "@icedesign/demo-layout": "^0.1.0" + }, + "blockConfig": { + "name": "progress-table", + "description": "进度条表格", + "chinese": "进度条表格", + "category": "table", + "snapshot": "https://img.alicdn.com/tfs/TB1MSwOih6I8KJjy0FgXXXXzVXa-1828-1206.png", + "sketchURL": "", + "icelandURL": "", + "themePackage": "@icedesign/skin" + }, + "scripts": { + "lint": "eslint . --ext '.js,.jsx' --fix", + "prepublish": "npm run lint" + } +} diff --git a/templates/ice-design/blocks/ProgressTable/src/ProgressTable.jsx b/templates/ice-design/blocks/ProgressTable/src/ProgressTable.jsx new file mode 100644 index 0000000000..6a7cc445c2 --- /dev/null +++ b/templates/ice-design/blocks/ProgressTable/src/ProgressTable.jsx @@ -0,0 +1,84 @@ +import React, { Component } from 'react'; +import { Table, Progress, Pagination } from '@icedesign/base'; +import IceCard from '@icedesign/card'; +import './ProgressTable.scss'; + +const getTableData = () => { + return Array.from({ length: 10 }).map((item, index) => { + return { + name: 'A旗舰店', + total: Math.ceil(Math.random() * 1000000), + count: 300 - index * 10, + progress: Math.ceil(Math.random() * 100), + }; + }); +}; + +export default class ProgressTable extends Component { + static displayName = 'ProgressTable'; + + constructor(props) { + super(props); + + this.state = { + dataSource: getTableData(), + current: 1, + }; + } + + renderCellProgress = value => ( + + ); + + onPageChange = (pageNo) => { + this.setState({ + current: pageNo, + }); + }; + + render() { + return ( +
    + + { + return `progress-table-tr progress-table-tr${index}`; + }} + dataSource={this.state.dataSource} + > + + + + +
    +
    + +
    +
    +
    + ); + } +} + +const styles = { + paginationWrapper: { + display: 'flex', + padding: '20px 0 0 0', + flexDirection: 'row-reverse', + }, +}; diff --git a/templates/ice-design/blocks/ProgressTable/src/ProgressTable.scss b/templates/ice-design/blocks/ProgressTable/src/ProgressTable.scss new file mode 100644 index 0000000000..86fb3dd312 --- /dev/null +++ b/templates/ice-design/blocks/ProgressTable/src/ProgressTable.scss @@ -0,0 +1,8 @@ +@charset "UTF-8"; + +.progress-table { + .progress-table-tr { + color: #666; + font-size: 14px; + } +} diff --git a/templates/ice-design/blocks/ProgressTable/src/index.js b/templates/ice-design/blocks/ProgressTable/src/index.js new file mode 100644 index 0000000000..498c8a8593 --- /dev/null +++ b/templates/ice-design/blocks/ProgressTable/src/index.js @@ -0,0 +1,3 @@ +import ProgressTable from './ProgressTable'; + +export default ProgressTable; diff --git a/templates/ice-design/blocks/RegisterForm/.editorconfig b/templates/ice-design/blocks/RegisterForm/.editorconfig new file mode 100644 index 0000000000..22ef5ace54 --- /dev/null +++ b/templates/ice-design/blocks/RegisterForm/.editorconfig @@ -0,0 +1,16 @@ +# http://editorconfig.org +root = true + +[*] +indent_style = space +indent_size = 2 +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false + +[makefile] +indent_style = tab +indent_size = 4 diff --git a/templates/ice-design/blocks/RegisterForm/.eslintignore b/templates/ice-design/blocks/RegisterForm/.eslintignore new file mode 100644 index 0000000000..3b21308fc7 --- /dev/null +++ b/templates/ice-design/blocks/RegisterForm/.eslintignore @@ -0,0 +1,12 @@ +# 忽略目录 +build/ +tests/ +demo/ +lib/ + +# node 覆盖率文件 +coverage/ + +# 忽略文件 +**/*-min.js +**/*.min.js \ No newline at end of file diff --git a/templates/ice-design/blocks/RegisterForm/.eslintrc b/templates/ice-design/blocks/RegisterForm/.eslintrc new file mode 100644 index 0000000000..7a4e5bac48 --- /dev/null +++ b/templates/ice-design/blocks/RegisterForm/.eslintrc @@ -0,0 +1,62 @@ +{ + "root": true, + "parser": "babel-eslint", + "extends": "eslint-config-airbnb", + "parserOptions": { + "ecmaVersion": 6, + "ecmaFeatures": { + "jsx": true, + "experimentalObjectRestSpread": true + } + }, + "env": { + "browser": true + }, + "plugins": [ + "react", + "babel" + ], + "rules": { + "react/forbid-prop-types": 0, + "jsx-a11y/label-has-for": 0, + "jsx-a11y/no-static-element-interactions": 0, + "jsx-a11y/anchor-has-content": 0, + "jsx-a11y/click-events-have-key-events": 0, + "jsx-a11y/anchor-is-valid": 0, + "react/no-array-index-key": 0, + "func-names": 0, + "arrow-body-style": 0, + "no-use-before-define": 0, + "react/sort-comp": 0, + "react/prop-types": 0, + "react/jsx-first-prop-new-line": 0, + "react/jsx-filename-extension": [ + 1, + { + "extensions": [ + ".js", + ".jsx" + ] + } + ], + "import/extensions": 0, + "import/no-unresolved": 0, + "import/no-extraneous-dependencies": 0, + "prefer-destructuring": 0, + "no-param-reassign": 0, + "no-return-assign": 0, + "max-len": 0, + "consistent-return": 0, + "no-redeclare": 0, + "react/require-extension": 0, + "react/no-danger": 0, + "comma-dangle": [ + "error", + "always-multiline" + ], + "function-paren-newline": 0, + "object-curly-newline": 0, + "no-restricted-globals": 0, + "react/prefer-stateless-function": 0 + } +} diff --git a/templates/ice-design/blocks/RegisterForm/.gitignore b/templates/ice-design/blocks/RegisterForm/.gitignore new file mode 100644 index 0000000000..cc45d6fb3c --- /dev/null +++ b/templates/ice-design/blocks/RegisterForm/.gitignore @@ -0,0 +1,13 @@ + +*.swp +*.dia~ +.idea/ +.DS_Store + +npm-debug.log +yarn-error.log +node_modules/ +tmp/ + +# happypack 缓存 +.happypack diff --git a/templates/ice-design/blocks/RegisterForm/README.md b/templates/ice-design/blocks/RegisterForm/README.md new file mode 100644 index 0000000000..72d4596248 --- /dev/null +++ b/templates/ice-design/blocks/RegisterForm/README.md @@ -0,0 +1,10 @@ +# register-form + +简介:注册表单 + +![截图](https://img.alicdn.com/tfs/TB1hLZ7ih6I8KJjy0FgXXXXzVXa-574-772.png) + +## 更多 + +* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) +* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) diff --git a/templates/ice-design/blocks/RegisterForm/abc.json b/templates/ice-design/blocks/RegisterForm/abc.json new file mode 100644 index 0000000000..b8b4ec03a2 --- /dev/null +++ b/templates/ice-design/blocks/RegisterForm/abc.json @@ -0,0 +1,13 @@ +{ + "name": "register-form", + "description": "", + "type": "ice", + "repository": { + "type": "block", + "template": "@ali/ice-template-block", + "templateVersion": "0.1.3" + }, + "options": { + "styleAutoMixin": true + } +} \ No newline at end of file diff --git a/templates/ice-design/blocks/RegisterForm/demo/index.html b/templates/ice-design/blocks/RegisterForm/demo/index.html new file mode 100644 index 0000000000..9d2d3a663d --- /dev/null +++ b/templates/ice-design/blocks/RegisterForm/demo/index.html @@ -0,0 +1,19 @@ + + + + + + + + Document + + + + +
    + + + + + + diff --git a/templates/ice-design/blocks/RegisterForm/demo/index.js b/templates/ice-design/blocks/RegisterForm/demo/index.js new file mode 100644 index 0000000000..178a766115 --- /dev/null +++ b/templates/ice-design/blocks/RegisterForm/demo/index.js @@ -0,0 +1,19 @@ +import React, {Component} from 'react'; +import {render} from 'react-dom'; + +// 载入默认全局样式 normalize 、.clearfix 和一些 mixin 方法等 +import '@icedesign/base/lib/_components/@alife/next-core/lib/index.scss'; + +import DemoLayout from '@icedesign/demo-layout'; +import Block from '../src'; + +const props = { + // ... +}; + +render( + + + , + document.querySelector('#mountNode') +); diff --git a/templates/ice-design/blocks/RegisterForm/lib/RegisterForm.js b/templates/ice-design/blocks/RegisterForm/lib/RegisterForm.js new file mode 100644 index 0000000000..d1e726eabc --- /dev/null +++ b/templates/ice-design/blocks/RegisterForm/lib/RegisterForm.js @@ -0,0 +1,194 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = undefined; + +var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; + +var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + +var _class, _temp; + +var _react = require('react'); + +var _react2 = _interopRequireDefault(_react); + +var _propTypes = require('prop-types'); + +var _propTypes2 = _interopRequireDefault(_propTypes); + +var _icon = require('@icedesign/icon'); + +var _icon2 = _interopRequireDefault(_icon); + +require('./RegisterForm.scss'); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } + +var Form = require('@icedesign/base/lib/form'); + +var Input = require('@icedesign/base/lib/input'); + +var Button = require('@icedesign/base/lib/button'); + +var Checkbox = require('@icedesign/base/lib/checkbox'); + +var Field = require('@icedesign/base/lib/field'); + +var FormItem = Form.Item; + +var RegisterForm = (_temp = _class = function (_Component) { + _inherits(RegisterForm, _Component); + + function RegisterForm(props) { + _classCallCheck(this, RegisterForm); + + var _this = _possibleConstructorReturn(this, (RegisterForm.__proto__ || Object.getPrototypeOf(RegisterForm)).call(this, props)); + + _this.field = new Field(_this); + return _this; + } + + _createClass(RegisterForm, [{ + key: 'checkPass', + value: function checkPass(rule, value, callback) { + var validate = this.field.validate; + + if (value) { + validate(['rePasswd']); + } + callback(); + } + }, { + key: 'checkPass2', + value: function checkPass2(rule, value, callback) { + var getValue = this.field.getValue; + + if (value && value !== getValue('passwd')) { + callback('两次输入密码不一致!'); + } else { + callback(); + } + } + }, { + key: 'handleSubmit', + value: function handleSubmit(e) { + e.preventDefault(); + this.field.validate(function (errors, values) { + if (errors) { + console.log('Errors in form!!!'); + return; + } + console.log(values); + }); + } + }, { + key: 'render', + value: function render() { + var init = this.field.init; + + + return _react2.default.createElement( + 'div', + { className: 'register-form' }, + _react2.default.createElement( + 'div', + { className: 'form' }, + _react2.default.createElement( + 'h4', + null, + '\u6CE8\u518C' + ), + _react2.default.createElement( + Form, + { field: this.field }, + _react2.default.createElement( + FormItem, + null, + _react2.default.createElement(_icon2.default, { type: 'person', size: 'xs' }), + _react2.default.createElement(Input, _extends({ maxLength: 20, placeholder: '\u59D3\u540D' + }, init('name', { + rules: [{ required: true, min: 5, message: '用户名至少为 5 个字符' }] + }))) + ), + _react2.default.createElement( + FormItem, + null, + _react2.default.createElement(_icon2.default, { type: 'mail', size: 'xs' }), + _react2.default.createElement(Input, _extends({ type: 'email', placeholder: '\u90AE\u7BB1' + }, init('email', { + rules: [{ required: true, trigger: 'onBlur', message: '请输入正确的邮箱地址' }, { type: 'email', message: '请输入正确的邮箱地址', trigger: ['onBlur', 'onChange'] }] + }))) + ), + _react2.default.createElement( + FormItem, + null, + _react2.default.createElement(_icon2.default, { type: 'lock', size: 'xs' }), + _react2.default.createElement(Input, _extends({ htmlType: 'password', placeholder: '\u8BF7\u8F93\u5165\u5BC6\u7801' + }, init('passwd', { + rules: [{ required: true, whitespace: true, message: '请填写密码' }, { validator: this.checkPass.bind(this) }] + }))) + ), + _react2.default.createElement( + FormItem, + null, + _react2.default.createElement(_icon2.default, { type: 'lock', size: 'xs' }), + _react2.default.createElement(Input, _extends({ htmlType: 'password', placeholder: '\u4E24\u6B21\u8F93\u5165\u5BC6\u7801\u4FDD\u6301\u4E00\u81F4' + }, init('rePasswd', { + rules: [{ + required: true, + whitespace: true, + message: '请再次输入密码' + }, { + validator: this.checkPass2.bind(this) + }] + }))) + ), + _react2.default.createElement( + FormItem, + null, + _react2.default.createElement( + Checkbox, + init('agreement'), + '\u540C\u610F\u6CE8\u518C\u6761\u6B3E' + ) + ), + _react2.default.createElement( + FormItem, + null, + _react2.default.createElement( + Button, + { type: 'primary', onClick: this.handleSubmit.bind(this) }, + '\u6CE8 \u518C' + ) + ), + _react2.default.createElement( + 'div', + { className: 'tips' }, + _react2.default.createElement( + 'a', + { href: '/' }, + '\u767B \u5F55' + ) + ) + ) + ) + ); + } + }]); + + return RegisterForm; +}(_react.Component), _class.displayName = 'RegisterForm', _class.propTypes = { + style: _propTypes2.default.object, + className: _propTypes2.default.string +}, _class.defaultProps = {}, _temp); +exports.default = RegisterForm; +module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/RegisterForm/lib/RegisterForm.scss b/templates/ice-design/blocks/RegisterForm/lib/RegisterForm.scss new file mode 100644 index 0000000000..d97aa2a4d5 --- /dev/null +++ b/templates/ice-design/blocks/RegisterForm/lib/RegisterForm.scss @@ -0,0 +1,59 @@ +@charset "UTF-8"; + +.register-form { + display: flex; + justify-content: center; + .form { + padding: 30px 40px; + background: #fff; + border-radius: 6px; + box-shadow: 1px 1px 2px #eee; + h4 { + margin: 0 0 20px; + text-align: center; + color: #3080FE; + letter-spacing: 12px; + } + .next-input.next-input-single { + width: 240px; + border-top: 0; + border-left: 0; + border-right: 0; + border-color: #DCDCDC; + input { + padding-left: 25px; + font-size: 13px; + } + } + .next-form-item { + margin-bottom: 25px; + } + i, + .next-checkbox-label { + color: #999; + font-size: 13px; + } + i { + position: absolute; + left: 0; + top: 3px; + } + button { + width: 240px; + background: #3080FE; + border-radius: 28px; + } + .tips { + text-align: center; + a { + color: #999; + text-decoration: none; + font-size: 13px; + } + span { + color: #dcd6d6; + margin: 0 8px; + } + } + } +} diff --git a/templates/ice-design/blocks/RegisterForm/lib/index.js b/templates/ice-design/blocks/RegisterForm/lib/index.js new file mode 100644 index 0000000000..054cf23984 --- /dev/null +++ b/templates/ice-design/blocks/RegisterForm/lib/index.js @@ -0,0 +1,14 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _RegisterForm = require('./RegisterForm'); + +var _RegisterForm2 = _interopRequireDefault(_RegisterForm); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +exports.default = _RegisterForm2.default; +module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/RegisterForm/mock/api.json b/templates/ice-design/blocks/RegisterForm/mock/api.json new file mode 100644 index 0000000000..e706430232 --- /dev/null +++ b/templates/ice-design/blocks/RegisterForm/mock/api.json @@ -0,0 +1,4 @@ +{ + "status": "success", + "data": {} +} diff --git a/templates/ice-design/blocks/RegisterForm/package.json b/templates/ice-design/blocks/RegisterForm/package.json new file mode 100644 index 0000000000..61d89b754d --- /dev/null +++ b/templates/ice-design/blocks/RegisterForm/package.json @@ -0,0 +1,52 @@ +{ + "name": "@icedesign/register-form-block", + "version": "0.1.0", + "description": "", + "main": "lib/index.js", + "files": [ + "src/", + "demo/", + "lib/", + "mock/" + ], + "author": { + "name": "ICE Team", + "email": "ice-admin@alibaba-inc.com" + }, + "repository": { + "type": "git", + "url": "https://github.com/alibaba/ice" + }, + "license": "MIT", + "keywords": [ + "ice", + "ice-block" + ], + "dependencies": { + "prop-types": "^15.5.8", + "@icedesign/base": "^0.1.0", + "@icedesign/icon": "^0.1.0" + }, + "devDependencies": { + "@icedesign/demo-layout": "^0.1.2", + "@icedesign/skin": "^0.1.2", + "babel-eslint": "^8.0.3", + "eslint": "^4.13.1", + "eslint-config-airbnb": "^16.1.0", + "eslint-plugin-babel": "^4.1.1", + "eslint-plugin-import": "^2.8.0", + "eslint-plugin-jsx-a11y": "^6.0.3", + "eslint-plugin-react": "^7.5.1" + }, + "blockConfig": { + "name": "register-form", + "description": "注册表单", + "chinese": "注册表单", + "category": "form", + "snapshot": "https://img.alicdn.com/tfs/TB1hLZ7ih6I8KJjy0FgXXXXzVXa-574-772.png", + "sketchURL": "", + "icelandURL": "", + "themePackage": "@icedesign/skin" + }, + "scripts": {} +} diff --git a/templates/ice-design/blocks/RegisterForm/src/RegisterForm.jsx b/templates/ice-design/blocks/RegisterForm/src/RegisterForm.jsx new file mode 100644 index 0000000000..f19f164bcc --- /dev/null +++ b/templates/ice-design/blocks/RegisterForm/src/RegisterForm.jsx @@ -0,0 +1,123 @@ +'use strict'; + +import React, { Component } from 'react'; +import PropTypes from 'prop-types'; +import { Form, Input, Button, Checkbox, Field } from '@icedesign/base'; +import IceIcon from '@icedesign/icon'; +import './RegisterForm.scss'; + +const FormItem = Form.Item; + +export default class RegisterForm extends Component { + static displayName = 'RegisterForm'; + + static propTypes = { + style: PropTypes.object, + className: PropTypes.string, + }; + + static defaultProps = { + }; + + constructor(props) { + super(props); + this.field = new Field(this); + } + + checkPass(rule, value, callback) { + const { validate } = this.field; + if (value) { + validate(['rePasswd']); + } + callback(); + } + + checkPass2(rule, value, callback) { + const { getValue } = this.field; + if (value && value !== getValue('passwd')) { + callback('两次输入密码不一致!'); + } else { + callback(); + } + } + + handleSubmit(e) { + e.preventDefault(); + this.field.validate((errors, values) => { + if (errors) { + console.log('Errors in form!!!'); + return; + } + console.log(values); + }); + } + + render() { + const { init } = this.field; + + return ( +
    +
    +

    注册

    +
    + + + + + + + + + + + + + + + + + + 同意注册条款 + + + + +
    + 登 录 +
    +
    +
    +
    + ); + } +} diff --git a/templates/ice-design/blocks/RegisterForm/src/RegisterForm.scss b/templates/ice-design/blocks/RegisterForm/src/RegisterForm.scss new file mode 100644 index 0000000000..d97aa2a4d5 --- /dev/null +++ b/templates/ice-design/blocks/RegisterForm/src/RegisterForm.scss @@ -0,0 +1,59 @@ +@charset "UTF-8"; + +.register-form { + display: flex; + justify-content: center; + .form { + padding: 30px 40px; + background: #fff; + border-radius: 6px; + box-shadow: 1px 1px 2px #eee; + h4 { + margin: 0 0 20px; + text-align: center; + color: #3080FE; + letter-spacing: 12px; + } + .next-input.next-input-single { + width: 240px; + border-top: 0; + border-left: 0; + border-right: 0; + border-color: #DCDCDC; + input { + padding-left: 25px; + font-size: 13px; + } + } + .next-form-item { + margin-bottom: 25px; + } + i, + .next-checkbox-label { + color: #999; + font-size: 13px; + } + i { + position: absolute; + left: 0; + top: 3px; + } + button { + width: 240px; + background: #3080FE; + border-radius: 28px; + } + .tips { + text-align: center; + a { + color: #999; + text-decoration: none; + font-size: 13px; + } + span { + color: #dcd6d6; + margin: 0 8px; + } + } + } +} diff --git a/templates/ice-design/blocks/RegisterForm/src/index.js b/templates/ice-design/blocks/RegisterForm/src/index.js new file mode 100644 index 0000000000..d4ded4adaa --- /dev/null +++ b/templates/ice-design/blocks/RegisterForm/src/index.js @@ -0,0 +1,3 @@ +import RegisterForm from './RegisterForm'; + +export default RegisterForm; diff --git a/templates/ice-design/blocks/RightContentDisplay/.editorconfig b/templates/ice-design/blocks/RightContentDisplay/.editorconfig new file mode 100644 index 0000000000..22ef5ace54 --- /dev/null +++ b/templates/ice-design/blocks/RightContentDisplay/.editorconfig @@ -0,0 +1,16 @@ +# http://editorconfig.org +root = true + +[*] +indent_style = space +indent_size = 2 +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false + +[makefile] +indent_style = tab +indent_size = 4 diff --git a/templates/ice-design/blocks/RightContentDisplay/.eslintignore b/templates/ice-design/blocks/RightContentDisplay/.eslintignore new file mode 100644 index 0000000000..3b21308fc7 --- /dev/null +++ b/templates/ice-design/blocks/RightContentDisplay/.eslintignore @@ -0,0 +1,12 @@ +# 忽略目录 +build/ +tests/ +demo/ +lib/ + +# node 覆盖率文件 +coverage/ + +# 忽略文件 +**/*-min.js +**/*.min.js \ No newline at end of file diff --git a/templates/ice-design/blocks/RightContentDisplay/.eslintrc b/templates/ice-design/blocks/RightContentDisplay/.eslintrc new file mode 100644 index 0000000000..7a4e5bac48 --- /dev/null +++ b/templates/ice-design/blocks/RightContentDisplay/.eslintrc @@ -0,0 +1,62 @@ +{ + "root": true, + "parser": "babel-eslint", + "extends": "eslint-config-airbnb", + "parserOptions": { + "ecmaVersion": 6, + "ecmaFeatures": { + "jsx": true, + "experimentalObjectRestSpread": true + } + }, + "env": { + "browser": true + }, + "plugins": [ + "react", + "babel" + ], + "rules": { + "react/forbid-prop-types": 0, + "jsx-a11y/label-has-for": 0, + "jsx-a11y/no-static-element-interactions": 0, + "jsx-a11y/anchor-has-content": 0, + "jsx-a11y/click-events-have-key-events": 0, + "jsx-a11y/anchor-is-valid": 0, + "react/no-array-index-key": 0, + "func-names": 0, + "arrow-body-style": 0, + "no-use-before-define": 0, + "react/sort-comp": 0, + "react/prop-types": 0, + "react/jsx-first-prop-new-line": 0, + "react/jsx-filename-extension": [ + 1, + { + "extensions": [ + ".js", + ".jsx" + ] + } + ], + "import/extensions": 0, + "import/no-unresolved": 0, + "import/no-extraneous-dependencies": 0, + "prefer-destructuring": 0, + "no-param-reassign": 0, + "no-return-assign": 0, + "max-len": 0, + "consistent-return": 0, + "no-redeclare": 0, + "react/require-extension": 0, + "react/no-danger": 0, + "comma-dangle": [ + "error", + "always-multiline" + ], + "function-paren-newline": 0, + "object-curly-newline": 0, + "no-restricted-globals": 0, + "react/prefer-stateless-function": 0 + } +} diff --git a/templates/ice-design/blocks/RightContentDisplay/.gitignore b/templates/ice-design/blocks/RightContentDisplay/.gitignore new file mode 100644 index 0000000000..cc45d6fb3c --- /dev/null +++ b/templates/ice-design/blocks/RightContentDisplay/.gitignore @@ -0,0 +1,13 @@ + +*.swp +*.dia~ +.idea/ +.DS_Store + +npm-debug.log +yarn-error.log +node_modules/ +tmp/ + +# happypack 缓存 +.happypack diff --git a/templates/ice-design/blocks/RightContentDisplay/README.md b/templates/ice-design/blocks/RightContentDisplay/README.md new file mode 100644 index 0000000000..f330b30f14 --- /dev/null +++ b/templates/ice-design/blocks/RightContentDisplay/README.md @@ -0,0 +1,10 @@ +# right-content-display + +简介:功能描述-左图右文 + +![截图](https://img.alicdn.com/tfs/TB1O.0KjC_I8KJjy0FoXXaFnVXa-2344-1184.png) + +## 更多 + +* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) +* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) diff --git a/templates/ice-design/blocks/RightContentDisplay/demo/index.html b/templates/ice-design/blocks/RightContentDisplay/demo/index.html new file mode 100644 index 0000000000..9d2d3a663d --- /dev/null +++ b/templates/ice-design/blocks/RightContentDisplay/demo/index.html @@ -0,0 +1,19 @@ + + + + + + + + Document + + + + +
    + + + + + + diff --git a/templates/ice-design/blocks/RightContentDisplay/demo/index.js b/templates/ice-design/blocks/RightContentDisplay/demo/index.js new file mode 100644 index 0000000000..f80b542308 --- /dev/null +++ b/templates/ice-design/blocks/RightContentDisplay/demo/index.js @@ -0,0 +1,14 @@ +import React, { Component } from 'react'; +import { render } from 'react-dom'; + +// 载入默认全局样式 normalize 、.clearfix 和一些 mixin 方法等 +import '@icedesign/base/lib/_components/@alife/next-core/lib/index.scss'; + +import DemoLayout from '@icedesign/demo-layout'; +import Block from '../src'; + +const props = { + // ... +}; + +render(, document.querySelector('#mountNode')); diff --git a/templates/ice-design/blocks/RightContentDisplay/lib/RightContentDisplay.js b/templates/ice-design/blocks/RightContentDisplay/lib/RightContentDisplay.js new file mode 100644 index 0000000000..14ff4a358f --- /dev/null +++ b/templates/ice-design/blocks/RightContentDisplay/lib/RightContentDisplay.js @@ -0,0 +1,83 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = undefined; + +var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + +var _class, _temp; + +var _react = require('react'); + +var _react2 = _interopRequireDefault(_react); + +require('./RightContentDisplay.scss'); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } + +var RightContentDisplay = (_temp = _class = function (_Component) { + _inherits(RightContentDisplay, _Component); + + function RightContentDisplay(props) { + _classCallCheck(this, RightContentDisplay); + + var _this = _possibleConstructorReturn(this, (RightContentDisplay.__proto__ || Object.getPrototypeOf(RightContentDisplay)).call(this, props)); + + _this.state = {}; + return _this; + } + + _createClass(RightContentDisplay, [{ + key: 'render', + value: function render() { + return _react2.default.createElement( + 'div', + _defineProperty({ className: 'right-content-display', style: styles.rightContentDisplay }, 'style', styles.container), + _react2.default.createElement( + 'div', + { style: styles.content }, + _react2.default.createElement( + 'div', + { style: styles.col }, + _react2.default.createElement('img', { + src: 'https://img.alicdn.com/tfs/TB1MgyDjsLJ8KJjy0FnXXcFDpXa-618-1046.png', + alt: 'img', + style: styles.image + }) + ), + _react2.default.createElement( + 'div', + { style: styles.col }, + _react2.default.createElement( + 'h2', + { style: styles.title }, + '\u529F\u80FD\u63CF\u8FF0' + ), + _react2.default.createElement( + 'p', + { style: styles.description }, + '\u529F\u80FD\u63CF\u8FF0\u7684\u6587\u6848\uFF0C\u529F\u80FD\u63CF\u8FF0\u7684\u6587\u6848\u529F\u80FD\u63CF\u8FF0\u7684\u6587\u6848\u529F\u80FD\u63CF\u8FF0\u7684\u6587\u6848' + ) + ) + ) + ); + } + }]); + + return RightContentDisplay; +}(_react.Component), _class.displayName = 'RightContentDisplay', _temp); +exports.default = RightContentDisplay; + + +var styles = { container: { margin: '0 auto', width: '1080px' }, content: { display: 'flex', position: 'relative', alignItems: 'center', overflow: 'hidden', height: '600px' }, col: { width: '50%' }, title: { fontSize: '28px', fontWeight: 'bold' }, description: { color: '#666', lineHeight: '22px' }, image: { position: 'absolute', top: '20px', width: '40%' }, rightContentDisplay: {} }; +module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/RightContentDisplay/lib/RightContentDisplay.scss b/templates/ice-design/blocks/RightContentDisplay/lib/RightContentDisplay.scss new file mode 100644 index 0000000000..aab0bddf48 --- /dev/null +++ b/templates/ice-design/blocks/RightContentDisplay/lib/RightContentDisplay.scss @@ -0,0 +1,5 @@ +@charset "UTF-8"; + +.right-content-display { + +} diff --git a/templates/ice-design/blocks/RightContentDisplay/lib/index.js b/templates/ice-design/blocks/RightContentDisplay/lib/index.js new file mode 100644 index 0000000000..7a42c97730 --- /dev/null +++ b/templates/ice-design/blocks/RightContentDisplay/lib/index.js @@ -0,0 +1,14 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _RightContentDisplay = require('./RightContentDisplay'); + +var _RightContentDisplay2 = _interopRequireDefault(_RightContentDisplay); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +exports.default = _RightContentDisplay2.default; +module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/RightContentDisplay/mock/api.json b/templates/ice-design/blocks/RightContentDisplay/mock/api.json new file mode 100644 index 0000000000..eee2984fbe --- /dev/null +++ b/templates/ice-design/blocks/RightContentDisplay/mock/api.json @@ -0,0 +1,4 @@ +{ + "status": "SUCCESS", + "data": {} +} diff --git a/templates/ice-design/blocks/RightContentDisplay/package.json b/templates/ice-design/blocks/RightContentDisplay/package.json new file mode 100644 index 0000000000..fea1f0db67 --- /dev/null +++ b/templates/ice-design/blocks/RightContentDisplay/package.json @@ -0,0 +1,54 @@ +{ + "name": "@icedesign/right-content-display-block", + "version": "0.1.0", + "description": "", + "files": [ + "src/", + "demo/", + "lib/", + "mock/" + ], + "scripts": {}, + "author": { + "name": "ICE Team", + "email": "ice-admin@alibaba-inc.com" + }, + "repository": { + "type": "git", + "url": "https://github.com/alibaba/ice" + }, + "license": "MIT", + "keywords": [ + "ice", + "ice-block" + ], + "dependencies": { + "@icedesign/base": "^0.1.0", + "prop-types": "^15.5.8", + "@icedesign/card": "^0.1.0" + }, + "devDependencies": { + "@icedesign/skin": "^0.1.2", + "babel-eslint": "^8.0.3", + "eslint-plugin-react": "^7.5.1", + "react": "15.x", + "react-copy-to-clipboard": "^4.2.3", + "react-dom": "15.x", + "eslint": "^4.13.1", + "eslint-plugin-babel": "^4.1.1", + "eslint-plugin-import": "^2.8.0", + "eslint-config-airbnb": "^16.1.0", + "eslint-plugin-jsx-a11y": "^6.0.3", + "@icedesign/demo-layout": "^0.1.0" + }, + "blockConfig": { + "name": "right-content-display", + "description": "", + "chinese": "功能描述-左图右文", + "category": "info-display", + "snapshot": "https://img.alicdn.com/tfs/TB1O.0KjC_I8KJjy0FoXXaFnVXa-2344-1184.png", + "sketchURL": "", + "icelandURL": "", + "themePackage": "@icedesign/skin" + } +} diff --git a/templates/ice-design/blocks/RightContentDisplay/src/RightContentDisplay.jsx b/templates/ice-design/blocks/RightContentDisplay/src/RightContentDisplay.jsx new file mode 100644 index 0000000000..39e74f07d5 --- /dev/null +++ b/templates/ice-design/blocks/RightContentDisplay/src/RightContentDisplay.jsx @@ -0,0 +1,35 @@ +import React, { Component } from 'react'; +import './RightContentDisplay.scss'; + +export default class RightContentDisplay extends Component { + static displayName = 'RightContentDisplay'; + + constructor(props) { + super(props); + this.state = {}; + } + + render() { + return ( +
    +
    +
    + img +
    +
    +

    功能描述

    +

    + 功能描述的文案,功能描述的文案功能描述的文案功能描述的文案 +

    +
    +
    +
    + ); + } +} + +const styles = { container: { margin: '0 auto', width: '1080px' }, content: { display: 'flex', position: 'relative', alignItems: 'center', overflow: 'hidden', height: '600px' }, col: { width: '50%' }, title: { fontSize: '28px', fontWeight: 'bold' }, description: { color: '#666', lineHeight: '22px' }, image: { position: 'absolute', top: '20px', width: '40%' }, rightContentDisplay: {} }; diff --git a/templates/ice-design/blocks/RightContentDisplay/src/RightContentDisplay.scss b/templates/ice-design/blocks/RightContentDisplay/src/RightContentDisplay.scss new file mode 100644 index 0000000000..aab0bddf48 --- /dev/null +++ b/templates/ice-design/blocks/RightContentDisplay/src/RightContentDisplay.scss @@ -0,0 +1,5 @@ +@charset "UTF-8"; + +.right-content-display { + +} diff --git a/templates/ice-design/blocks/RightContentDisplay/src/index.js b/templates/ice-design/blocks/RightContentDisplay/src/index.js new file mode 100644 index 0000000000..d0518a4d99 --- /dev/null +++ b/templates/ice-design/blocks/RightContentDisplay/src/index.js @@ -0,0 +1,3 @@ +import RightContentDisplay from './RightContentDisplay'; + +export default RightContentDisplay; diff --git a/templates/ice-design/blocks/SelectableTable/.editorconfig b/templates/ice-design/blocks/SelectableTable/.editorconfig new file mode 100644 index 0000000000..22ef5ace54 --- /dev/null +++ b/templates/ice-design/blocks/SelectableTable/.editorconfig @@ -0,0 +1,16 @@ +# http://editorconfig.org +root = true + +[*] +indent_style = space +indent_size = 2 +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false + +[makefile] +indent_style = tab +indent_size = 4 diff --git a/templates/ice-design/blocks/SelectableTable/.eslintignore b/templates/ice-design/blocks/SelectableTable/.eslintignore new file mode 100644 index 0000000000..3b21308fc7 --- /dev/null +++ b/templates/ice-design/blocks/SelectableTable/.eslintignore @@ -0,0 +1,12 @@ +# 忽略目录 +build/ +tests/ +demo/ +lib/ + +# node 覆盖率文件 +coverage/ + +# 忽略文件 +**/*-min.js +**/*.min.js \ No newline at end of file diff --git a/templates/ice-design/blocks/SelectableTable/.eslintrc b/templates/ice-design/blocks/SelectableTable/.eslintrc new file mode 100644 index 0000000000..7a4e5bac48 --- /dev/null +++ b/templates/ice-design/blocks/SelectableTable/.eslintrc @@ -0,0 +1,62 @@ +{ + "root": true, + "parser": "babel-eslint", + "extends": "eslint-config-airbnb", + "parserOptions": { + "ecmaVersion": 6, + "ecmaFeatures": { + "jsx": true, + "experimentalObjectRestSpread": true + } + }, + "env": { + "browser": true + }, + "plugins": [ + "react", + "babel" + ], + "rules": { + "react/forbid-prop-types": 0, + "jsx-a11y/label-has-for": 0, + "jsx-a11y/no-static-element-interactions": 0, + "jsx-a11y/anchor-has-content": 0, + "jsx-a11y/click-events-have-key-events": 0, + "jsx-a11y/anchor-is-valid": 0, + "react/no-array-index-key": 0, + "func-names": 0, + "arrow-body-style": 0, + "no-use-before-define": 0, + "react/sort-comp": 0, + "react/prop-types": 0, + "react/jsx-first-prop-new-line": 0, + "react/jsx-filename-extension": [ + 1, + { + "extensions": [ + ".js", + ".jsx" + ] + } + ], + "import/extensions": 0, + "import/no-unresolved": 0, + "import/no-extraneous-dependencies": 0, + "prefer-destructuring": 0, + "no-param-reassign": 0, + "no-return-assign": 0, + "max-len": 0, + "consistent-return": 0, + "no-redeclare": 0, + "react/require-extension": 0, + "react/no-danger": 0, + "comma-dangle": [ + "error", + "always-multiline" + ], + "function-paren-newline": 0, + "object-curly-newline": 0, + "no-restricted-globals": 0, + "react/prefer-stateless-function": 0 + } +} diff --git a/templates/ice-design/blocks/SelectableTable/.gitignore b/templates/ice-design/blocks/SelectableTable/.gitignore new file mode 100644 index 0000000000..cc45d6fb3c --- /dev/null +++ b/templates/ice-design/blocks/SelectableTable/.gitignore @@ -0,0 +1,13 @@ + +*.swp +*.dia~ +.idea/ +.DS_Store + +npm-debug.log +yarn-error.log +node_modules/ +tmp/ + +# happypack 缓存 +.happypack diff --git a/templates/ice-design/blocks/SelectableTable/README.md b/templates/ice-design/blocks/SelectableTable/README.md new file mode 100644 index 0000000000..6f148e7d75 --- /dev/null +++ b/templates/ice-design/blocks/SelectableTable/README.md @@ -0,0 +1,10 @@ +# selectable-table + +简介:可批量操作的表格 + +![截图](https://img.alicdn.com/tfs/TB19Y4Ff5qAXuNjy1XdXXaYcVXa-1017-655.png) + +## 更多 + +* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) +* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) diff --git a/templates/ice-design/blocks/SelectableTable/demo/index.html b/templates/ice-design/blocks/SelectableTable/demo/index.html new file mode 100644 index 0000000000..9d2d3a663d --- /dev/null +++ b/templates/ice-design/blocks/SelectableTable/demo/index.html @@ -0,0 +1,19 @@ + + + + + + + + Document + + + + +
    + + + + + + diff --git a/templates/ice-design/blocks/SelectableTable/demo/index.js b/templates/ice-design/blocks/SelectableTable/demo/index.js new file mode 100644 index 0000000000..4d6acd389a --- /dev/null +++ b/templates/ice-design/blocks/SelectableTable/demo/index.js @@ -0,0 +1,19 @@ +import React, { Component } from 'react'; +import { render } from 'react-dom'; + +// 载入默认全局样式 normalize 、.clearfix 和一些 mixin 方法等 +import '@icedesign/base/lib/_components/@alife/next-core/lib/index.scss'; + +import DemoLayout from '@icedesign/demo-layout'; +import Block from '../src'; + +const props = { + // ... +}; + +render( + + + , + document.querySelector('#mountNode') +); diff --git a/templates/ice-design/blocks/SelectableTable/lib/SelectableTable.js b/templates/ice-design/blocks/SelectableTable/lib/SelectableTable.js new file mode 100644 index 0000000000..4168eb6660 --- /dev/null +++ b/templates/ice-design/blocks/SelectableTable/lib/SelectableTable.js @@ -0,0 +1,248 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = undefined; + +var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; + +var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + +var _class, _temp; + +var _react = require('react'); + +var _react2 = _interopRequireDefault(_react); + +var _card = require('@icedesign/card'); + +var _card2 = _interopRequireDefault(_card); + +require('./SelectableTable.scss'); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } + +var Table = require('@icedesign/base/lib/table'); + +var Button = require('@icedesign/base/lib/button'); + +var Icon = require('@icedesign/base/lib/icon'); + +var Pagination = require('@icedesign/base/lib/pagination'); + +var getMockData = function getMockData() { + var result = []; + for (var i = 0; i < 10; i++) { + result.push({ + id: 100306660940 + i, + title: { + name: 'Quotation for 1PCS Nano ' + (3 + i) + '.0 controller compatible' + }, + type: 'demo示例', + template: '参数字典列表', + status: '已发布', + publisher: '小马', + rate: '5', + time: 2000 + i + }); + } + return result; +}; + +// 注意:下载数据的功能,强烈推荐通过接口实现数据输出,并下载 +// 因为这样可以有下载鉴权和日志记录,包括当前能不能下载,以及谁下载了什么 + +var SelectableTable = (_temp = _class = function (_Component) { + _inherits(SelectableTable, _Component); + + function SelectableTable(props) { + _classCallCheck(this, SelectableTable); + + // 表格可以勾选配置项 + var _this = _possibleConstructorReturn(this, (SelectableTable.__proto__ || Object.getPrototypeOf(SelectableTable)).call(this, props)); + + _this.clearSelectedKeys = function () { + _this.setState({ + selectedRowKeys: [] + }); + }; + + _this.addMoreItem = function () { + // todo add some item + }; + + _this.deleteSelectedKeys = function () { + var selectedRowKeys = _this.state.selectedRowKeys; + // todo delete selectedRowKeys + + console.log('delete keys', selectedRowKeys); + }; + + _this.deleteItem = function (record) { + // todo remove this record + var id = record.id; + + console.log('delete item', id); + }; + + _this.renderOperator = function (value, index, record) { + return _react2.default.createElement( + 'div', + null, + _react2.default.createElement( + 'a', + { href: 'javascript: void(0);' }, + '\u7F16\u8F91' + ), + _react2.default.createElement( + 'a', + { + style: styles.todo0, + onClick: _this.deleteItem.bind(_this, record), + href: 'javascript: void(0);' + }, + '\u5220\u9664' + ) + ); + }; + + _this.rowSelection = { + // 表格发生勾选状态变化时触发 + onChange: function onChange(ids, records) { + console.log('ids', ids); + _this.setState({ + selectedRowKeys: ids + }); + }, + // 全选表格时触发的回调 + onSelectAll: function onSelectAll(selected, records) { + console.log('onSelectAll', selected, records); + }, + // 支持针对特殊行进行定制 + getProps: function getProps(record) { + return { + disabled: record.id === 100306660941 + }; + } + }; + + _this.state = { + selectedRowKeys: [], + dataSource: getMockData() + }; + return _this; + } + + _createClass(SelectableTable, [{ + key: 'render', + value: function render() { + return _react2.default.createElement( + 'div', + { className: 'selectable-table', style: styles.selectableTable }, + _react2.default.createElement( + _card2.default, + { + style: styles.todo1 + }, + _react2.default.createElement( + 'div', + null, + _react2.default.createElement( + Button, + { + onClick: this.addMoreItem, + size: 'small', + className: 'batch-btn', + style: styles.batchBtn + }, + _react2.default.createElement(Icon, { type: 'add' }), + '\u589E\u52A0' + ), + _react2.default.createElement( + Button, + { + onClick: this.deleteSelectedKeys, + size: 'small', + className: 'batch-btn', + style: styles.batchBtn, + disabled: !this.state.selectedRowKeys.length + }, + _react2.default.createElement(Icon, { type: 'ashbin' }), + '\u5220\u9664' + ), + _react2.default.createElement( + Button, + { + onClick: this.clearSelectedKeys, + size: 'small', + className: 'batch-btn', + style: styles.batchBtn + }, + _react2.default.createElement(Icon, { type: 'close' }), + '\u6E05\u7A7A\u9009\u4E2D' + ) + ), + _react2.default.createElement( + 'div', + null, + _react2.default.createElement( + 'a', + { href: '/', download: true }, + _react2.default.createElement(Icon, { size: 'small', type: 'download' }), + ' \u5BFC\u51FA\u8868\u683C\u6570\u636E\u5230 .csv \u6587\u4EF6' + ) + ) + ), + _react2.default.createElement( + _card2.default, + { style: styles.todo2 }, + _react2.default.createElement( + Table, + { + dataSource: this.state.dataSource, + isLoading: this.state.isLoading, + rowSelection: _extends({}, this.rowSelection, { + selectedRowKeys: this.state.selectedRowKeys + }) + }, + _react2.default.createElement(Table.Column, { title: '\u7F16\u7801', dataIndex: 'id', lock: true, width: 120 }), + _react2.default.createElement(Table.Column, { title: '\u540D\u79F0', dataIndex: 'title.name', width: 350 }), + _react2.default.createElement(Table.Column, { title: '\u7C7B\u578B', dataIndex: 'type', width: 160 }), + _react2.default.createElement(Table.Column, { title: '\u6A21\u677F', dataIndex: 'template', width: 160 }), + _react2.default.createElement(Table.Column, { title: '\u53D1\u5E03\u72B6\u6001', dataIndex: 'status', width: 120 }), + _react2.default.createElement(Table.Column, { title: '\u8BC4\u5206', dataIndex: 'rate', width: 120 }), + _react2.default.createElement(Table.Column, { title: '\u64CD\u4F5C\u8005', dataIndex: 'publisher', width: 120 }), + _react2.default.createElement(Table.Column, { title: '\u4FEE\u6539\u65F6\u95F4', dataIndex: 'time', width: 120 }), + _react2.default.createElement(Table.Column, { + title: '\u64CD\u4F5C', + cell: this.renderOperator, + lock: 'right', + width: 120 + }) + ), + _react2.default.createElement( + 'div', + { + style: styles.todo3 + }, + _react2.default.createElement(Pagination, { onChange: this.change }) + ) + ) + ); + } + }]); + + return SelectableTable; +}(_react.Component), _class.displayName = 'SelectableTable', _class.propTypes = {}, _class.defaultProps = {}, _temp); +exports.default = SelectableTable; + + +var styles = { selectableTable: {}, batchBtn: { marginRight: '10px' }, todo0: { marginLeft: 10 }, todo1: { marginBottom: '20px', minHeight: 'auto', display: 'flex', justifyContent: 'space-between' }, todo2: { width: '1026px' }, todo3: { textAlign: 'right', paddingTop: '26px' } }; +module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/SelectableTable/lib/SelectableTable.scss b/templates/ice-design/blocks/SelectableTable/lib/SelectableTable.scss new file mode 100644 index 0000000000..5176981f0f --- /dev/null +++ b/templates/ice-design/blocks/SelectableTable/lib/SelectableTable.scss @@ -0,0 +1,7 @@ +@charset "UTF-8"; + +.selectable-table { + .batch-btn { + margin-right: 10px; + } +} diff --git a/templates/ice-design/blocks/SelectableTable/lib/index.js b/templates/ice-design/blocks/SelectableTable/lib/index.js new file mode 100644 index 0000000000..5255c31826 --- /dev/null +++ b/templates/ice-design/blocks/SelectableTable/lib/index.js @@ -0,0 +1,14 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _SelectableTable = require('./SelectableTable'); + +var _SelectableTable2 = _interopRequireDefault(_SelectableTable); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +exports.default = _SelectableTable2.default; +module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/SelectableTable/mock/api.json b/templates/ice-design/blocks/SelectableTable/mock/api.json new file mode 100644 index 0000000000..e706430232 --- /dev/null +++ b/templates/ice-design/blocks/SelectableTable/mock/api.json @@ -0,0 +1,4 @@ +{ + "status": "success", + "data": {} +} diff --git a/templates/ice-design/blocks/SelectableTable/package.json b/templates/ice-design/blocks/SelectableTable/package.json new file mode 100644 index 0000000000..1ac94c8da0 --- /dev/null +++ b/templates/ice-design/blocks/SelectableTable/package.json @@ -0,0 +1,52 @@ +{ + "name": "@icedesign/selectable-table-block", + "version": "0.1.0", + "description": "", + "main": "lib/index.js", + "files": [ + "src/", + "demo/", + "lib/", + "mock/" + ], + "author": { + "name": "ICE Team", + "email": "ice-admin@alibaba-inc.com" + }, + "repository": { + "type": "git", + "url": "https://github.com/alibaba/ice" + }, + "license": "MIT", + "keywords": [ + "ice", + "ice-block" + ], + "dependencies": { + "prop-types": "^15.5.8", + "@icedesign/base": "^0.1.0", + "@icedesign/card": "^0.1.0" + }, + "devDependencies": { + "babel-eslint": "^8.0.3", + "eslint": "^4.13.1", + "eslint-plugin-babel": "^4.1.1", + "eslint-plugin-react": "^7.5.1", + "@icedesign/demo-layout": "^0.1.0", + "eslint-plugin-import": "^2.8.0", + "eslint-config-airbnb": "^16.1.0", + "eslint-plugin-jsx-a11y": "^6.0.3", + "@icedesign/skin": "^0.1.2" + }, + "blockConfig": { + "name": "selectable-table", + "description": "可批量操作的表格", + "chinese": "可批量操作的表格", + "category": "table", + "snapshot": "https://img.alicdn.com/tfs/TB19Y4Ff5qAXuNjy1XdXXaYcVXa-1017-655.png", + "sketchURL": "", + "icelandURL": "", + "themePackage": "@icedesign/skin" + }, + "scripts": {} +} diff --git a/templates/ice-design/blocks/SelectableTable/src/SelectableTable.jsx b/templates/ice-design/blocks/SelectableTable/src/SelectableTable.jsx new file mode 100644 index 0000000000..a17d733585 --- /dev/null +++ b/templates/ice-design/blocks/SelectableTable/src/SelectableTable.jsx @@ -0,0 +1,179 @@ + + +import React, { Component } from 'react'; +import { Table, Button, Icon, Pagination } from '@icedesign/base'; +import IceCard from '@icedesign/card'; + +import './SelectableTable.scss'; + +const getMockData = () => { + const result = []; + for (let i = 0; i < 10; i++) { + result.push({ + id: 100306660940 + i, + title: { + name: `Quotation for 1PCS Nano ${3 + i}.0 controller compatible`, + }, + type: 'demo示例', + template: '参数字典列表', + status: '已发布', + publisher: '小马', + rate: '5', + time: 2000 + i, + }); + } + return result; +}; + +// 注意:下载数据的功能,强烈推荐通过接口实现数据输出,并下载 +// 因为这样可以有下载鉴权和日志记录,包括当前能不能下载,以及谁下载了什么 + +export default class SelectableTable extends Component { + static displayName = 'SelectableTable'; + + static propTypes = {}; + + static defaultProps = {}; + + constructor(props) { + super(props); + + // 表格可以勾选配置项 + this.rowSelection = { + // 表格发生勾选状态变化时触发 + onChange: (ids, records) => { + console.log('ids', ids); + this.setState({ + selectedRowKeys: ids, + }); + }, + // 全选表格时触发的回调 + onSelectAll: (selected, records) => { + console.log('onSelectAll', selected, records); + }, + // 支持针对特殊行进行定制 + getProps: (record) => { + return { + disabled: record.id === 100306660941, + }; + }, + }; + + this.state = { + selectedRowKeys: [], + dataSource: getMockData(), + }; + } + + clearSelectedKeys = () => { + this.setState({ + selectedRowKeys: [], + }); + }; + + addMoreItem = () => { + // todo add some item + }; + + deleteSelectedKeys = () => { + const { selectedRowKeys } = this.state; + // todo delete selectedRowKeys + console.log('delete keys', selectedRowKeys); + }; + + deleteItem = (record) => { + // todo remove this record + const { id } = record; + console.log('delete item', id); + }; + + renderOperator = (value, index, record) => { + return ( + + ); + }; + + render() { + return ( +
    + +
    + + + +
    + +
    + + + + + + + + + + + +
    +
    + +
    +
    +
    + ); + } +} + +const styles = { selectableTable: {}, batchBtn: { marginRight: '10px' }, todo0: { marginLeft: 10 }, todo1: { marginBottom: '20px', minHeight: 'auto', display: 'flex', justifyContent: 'space-between' }, todo2: { width: '1026px' }, todo3: { textAlign: 'right', paddingTop: '26px' } }; diff --git a/templates/ice-design/blocks/SelectableTable/src/SelectableTable.scss b/templates/ice-design/blocks/SelectableTable/src/SelectableTable.scss new file mode 100644 index 0000000000..5176981f0f --- /dev/null +++ b/templates/ice-design/blocks/SelectableTable/src/SelectableTable.scss @@ -0,0 +1,7 @@ +@charset "UTF-8"; + +.selectable-table { + .batch-btn { + margin-right: 10px; + } +} diff --git a/templates/ice-design/blocks/SelectableTable/src/index.js b/templates/ice-design/blocks/SelectableTable/src/index.js new file mode 100644 index 0000000000..242e9c374b --- /dev/null +++ b/templates/ice-design/blocks/SelectableTable/src/index.js @@ -0,0 +1,3 @@ +import SelectableTable from './SelectableTable'; + +export default SelectableTable; diff --git a/templates/ice-design/blocks/SignupForm/.editorconfig b/templates/ice-design/blocks/SignupForm/.editorconfig new file mode 100644 index 0000000000..22ef5ace54 --- /dev/null +++ b/templates/ice-design/blocks/SignupForm/.editorconfig @@ -0,0 +1,16 @@ +# http://editorconfig.org +root = true + +[*] +indent_style = space +indent_size = 2 +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false + +[makefile] +indent_style = tab +indent_size = 4 diff --git a/templates/ice-design/blocks/SignupForm/.eslintignore b/templates/ice-design/blocks/SignupForm/.eslintignore new file mode 100644 index 0000000000..3b21308fc7 --- /dev/null +++ b/templates/ice-design/blocks/SignupForm/.eslintignore @@ -0,0 +1,12 @@ +# 忽略目录 +build/ +tests/ +demo/ +lib/ + +# node 覆盖率文件 +coverage/ + +# 忽略文件 +**/*-min.js +**/*.min.js \ No newline at end of file diff --git a/templates/ice-design/blocks/SignupForm/.eslintrc b/templates/ice-design/blocks/SignupForm/.eslintrc new file mode 100644 index 0000000000..7a4e5bac48 --- /dev/null +++ b/templates/ice-design/blocks/SignupForm/.eslintrc @@ -0,0 +1,62 @@ +{ + "root": true, + "parser": "babel-eslint", + "extends": "eslint-config-airbnb", + "parserOptions": { + "ecmaVersion": 6, + "ecmaFeatures": { + "jsx": true, + "experimentalObjectRestSpread": true + } + }, + "env": { + "browser": true + }, + "plugins": [ + "react", + "babel" + ], + "rules": { + "react/forbid-prop-types": 0, + "jsx-a11y/label-has-for": 0, + "jsx-a11y/no-static-element-interactions": 0, + "jsx-a11y/anchor-has-content": 0, + "jsx-a11y/click-events-have-key-events": 0, + "jsx-a11y/anchor-is-valid": 0, + "react/no-array-index-key": 0, + "func-names": 0, + "arrow-body-style": 0, + "no-use-before-define": 0, + "react/sort-comp": 0, + "react/prop-types": 0, + "react/jsx-first-prop-new-line": 0, + "react/jsx-filename-extension": [ + 1, + { + "extensions": [ + ".js", + ".jsx" + ] + } + ], + "import/extensions": 0, + "import/no-unresolved": 0, + "import/no-extraneous-dependencies": 0, + "prefer-destructuring": 0, + "no-param-reassign": 0, + "no-return-assign": 0, + "max-len": 0, + "consistent-return": 0, + "no-redeclare": 0, + "react/require-extension": 0, + "react/no-danger": 0, + "comma-dangle": [ + "error", + "always-multiline" + ], + "function-paren-newline": 0, + "object-curly-newline": 0, + "no-restricted-globals": 0, + "react/prefer-stateless-function": 0 + } +} diff --git a/templates/ice-design/blocks/SignupForm/.gitignore b/templates/ice-design/blocks/SignupForm/.gitignore new file mode 100644 index 0000000000..cc45d6fb3c --- /dev/null +++ b/templates/ice-design/blocks/SignupForm/.gitignore @@ -0,0 +1,13 @@ + +*.swp +*.dia~ +.idea/ +.DS_Store + +npm-debug.log +yarn-error.log +node_modules/ +tmp/ + +# happypack 缓存 +.happypack diff --git a/templates/ice-design/blocks/SignupForm/README.md b/templates/ice-design/blocks/SignupForm/README.md new file mode 100644 index 0000000000..b8c504182a --- /dev/null +++ b/templates/ice-design/blocks/SignupForm/README.md @@ -0,0 +1,10 @@ +# signup-form + +简介:登录表单 + +![截图](https://img.alicdn.com/tfs/TB1wHA9ib_I8KJjy1XaXXbsxpXa-616-612.png) + +## 更多 + +* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) +* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) diff --git a/templates/ice-design/blocks/SignupForm/demo/index.html b/templates/ice-design/blocks/SignupForm/demo/index.html new file mode 100644 index 0000000000..9d2d3a663d --- /dev/null +++ b/templates/ice-design/blocks/SignupForm/demo/index.html @@ -0,0 +1,19 @@ + + + + + + + + Document + + + + +
    + + + + + + diff --git a/templates/ice-design/blocks/SignupForm/demo/index.js b/templates/ice-design/blocks/SignupForm/demo/index.js new file mode 100644 index 0000000000..178a766115 --- /dev/null +++ b/templates/ice-design/blocks/SignupForm/demo/index.js @@ -0,0 +1,19 @@ +import React, {Component} from 'react'; +import {render} from 'react-dom'; + +// 载入默认全局样式 normalize 、.clearfix 和一些 mixin 方法等 +import '@icedesign/base/lib/_components/@alife/next-core/lib/index.scss'; + +import DemoLayout from '@icedesign/demo-layout'; +import Block from '../src'; + +const props = { + // ... +}; + +render( + + + , + document.querySelector('#mountNode') +); diff --git a/templates/ice-design/blocks/SignupForm/lib/SignupForm.js b/templates/ice-design/blocks/SignupForm/lib/SignupForm.js new file mode 100644 index 0000000000..4af1b7f631 --- /dev/null +++ b/templates/ice-design/blocks/SignupForm/lib/SignupForm.js @@ -0,0 +1,172 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = undefined; + +var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; + +var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + +var _class, _temp; + +var _react = require('react'); + +var _react2 = _interopRequireDefault(_react); + +var _propTypes = require('prop-types'); + +var _propTypes2 = _interopRequireDefault(_propTypes); + +var _icon = require('@icedesign/icon'); + +var _icon2 = _interopRequireDefault(_icon); + +require('./SignupForm.scss'); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } + +var Form = require('@icedesign/base/lib/form'); + +var Input = require('@icedesign/base/lib/input'); + +var Button = require('@icedesign/base/lib/button'); + +var Checkbox = require('@icedesign/base/lib/checkbox'); + +var Field = require('@icedesign/base/lib/field'); + +var FormItem = Form.Item; + +var SignupForm = (_temp = _class = function (_Component) { + _inherits(SignupForm, _Component); + + function SignupForm(props) { + _classCallCheck(this, SignupForm); + + var _this = _possibleConstructorReturn(this, (SignupForm.__proto__ || Object.getPrototypeOf(SignupForm)).call(this, props)); + + _this.field = new Field(_this); + return _this; + } + + _createClass(SignupForm, [{ + key: 'checkPassword', + value: function checkPassword(rule, value, callback) { + var validate = this.field.validate; + + if (value) { + validate(['rePasswd']); + } + callback(); + } + }, { + key: 'handleSubmit', + value: function handleSubmit(e) { + e.preventDefault(); + this.field.validate(function (errors, values) { + if (errors) { + console.log('Errors in form!!!'); + return; + } + console.log(values); + }); + } + }, { + key: 'render', + value: function render() { + var init = this.field.init; + + + return _react2.default.createElement( + 'div', + { className: 'signup-form', style: styles.signupForm }, + _react2.default.createElement( + 'div', + { className: 'form', style: styles.form }, + _react2.default.createElement( + 'h4', + null, + '\u767B\u5F55' + ), + _react2.default.createElement( + Form, + { field: this.field }, + _react2.default.createElement( + FormItem, + null, + _react2.default.createElement(_icon2.default, { type: 'person', size: 'xs' }), + _react2.default.createElement(Input, _extends({ maxLength: 20, placeholder: '\u4F1A\u5458\u540D/\u90AE\u7BB1/\u624B\u673A\u53F7' + }, init('name', { + rules: [{ required: true, min: 5, message: '用户名至少为 5 个字符' }] + }))) + ), + _react2.default.createElement( + FormItem, + null, + _react2.default.createElement(_icon2.default, { type: 'lock', size: 'xs' }), + _react2.default.createElement(Input, _extends({ htmlType: 'password', placeholder: '\u5BC6\u7801' + }, init('password', { + rules: [{ required: true, whitespace: true, min: 6, message: '密码至少为 6 个字符' }, { validator: this.checkPassword.bind(this) }] + }))) + ), + _react2.default.createElement( + FormItem, + null, + _react2.default.createElement( + Checkbox, + init('agreement'), + '\u8BB0\u4F4F\u8D26\u53F7' + ) + ), + _react2.default.createElement( + FormItem, + null, + _react2.default.createElement( + Button, + { type: 'primary', onClick: this.handleSubmit.bind(this) }, + '\u767B \u5F55' + ) + ), + _react2.default.createElement( + 'div', + { className: 'tips', style: styles.tips }, + _react2.default.createElement( + 'a', + { href: '/' }, + '\u7ACB\u5373\u6CE8\u518C' + ), + _react2.default.createElement( + 'span', + null, + '|' + ), + _react2.default.createElement( + 'a', + { href: '/' }, + '\u5FD8\u8BB0\u5BC6\u7801' + ) + ) + ) + ) + ); + } + }]); + + return SignupForm; +}(_react.Component), _class.displayName = 'SignupForm', _class.propTypes = { + style: _propTypes2.default.object, + className: _propTypes2.default.string +}, _class.defaultProps = {}, _temp); +exports.default = SignupForm; + + +var styles = { "signupForm": { "display": "flex", "justifyContent": "center" }, "form": { "display": "flex", "justifyContent": "center" }, "tips": { "textAlign": "center", "a {Color": "#999", "textDecoration": "none", "fontSize": "13px" } }; +module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/SignupForm/lib/SignupForm.scss b/templates/ice-design/blocks/SignupForm/lib/SignupForm.scss new file mode 100644 index 0000000000..9a124f333e --- /dev/null +++ b/templates/ice-design/blocks/SignupForm/lib/SignupForm.scss @@ -0,0 +1,59 @@ +@charset "UTF-8"; + +.signup-form { + display: flex; + justify-content: center; + .form { + padding: 30px 40px; + background: #fff; + border-radius: 6px; + box-shadow: 1px 1px 2px #eee; + h4 { + margin: 0 0 20px; + text-align: center; + color: #3080FE; + letter-spacing: 12px; + } + .next-input.next-input-single { + width: 240px; + border-top: 0; + border-left: 0; + border-right: 0; + border-color: #DCDCDC; + input { + padding-left: 25px; + font-size: 13px; + } + } + .next-form-item { + margin-bottom: 25px; + } + i, + .next-checkbox-label { + color: #999; + font-size: 13px; + } + i { + position: absolute; + left: 0; + top: 3px; + } + button { + width: 240px; + background: #3080FE; + border-radius: 28px; + } + .tips { + text-align: center; + a { + color: #999; + text-decoration: none; + font-size: 13px; + } + span { + color: #dcd6d6; + margin: 0 8px; + } + } + } +} diff --git a/templates/ice-design/blocks/SignupForm/lib/index.js b/templates/ice-design/blocks/SignupForm/lib/index.js new file mode 100644 index 0000000000..536cb2ba2d --- /dev/null +++ b/templates/ice-design/blocks/SignupForm/lib/index.js @@ -0,0 +1,14 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _SignupForm = require('./SignupForm'); + +var _SignupForm2 = _interopRequireDefault(_SignupForm); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +exports.default = _SignupForm2.default; +module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/SignupForm/mock/api.json b/templates/ice-design/blocks/SignupForm/mock/api.json new file mode 100644 index 0000000000..e706430232 --- /dev/null +++ b/templates/ice-design/blocks/SignupForm/mock/api.json @@ -0,0 +1,4 @@ +{ + "status": "success", + "data": {} +} diff --git a/templates/ice-design/blocks/SignupForm/package.json b/templates/ice-design/blocks/SignupForm/package.json new file mode 100644 index 0000000000..10e5bf6831 --- /dev/null +++ b/templates/ice-design/blocks/SignupForm/package.json @@ -0,0 +1,52 @@ +{ + "name": "@icedesign/signup-form-block-block", + "version": "0.1.0", + "description": "", + "main": "lib/index.js", + "files": [ + "src/", + "demo/", + "lib/", + "mock/" + ], + "author": { + "name": "ICE Team", + "email": "ice-admin@alibaba-inc.com" + }, + "repository": { + "type": "git", + "url": "https://github.com/alibaba/ice" + }, + "license": "MIT", + "keywords": [ + "ice", + "ice-block" + ], + "dependencies": { + "prop-types": "^15.5.8", + "@icedesign/base": "^0.1.0", + "@icedesign/icon": "^0.1.0" + }, + "devDependencies": { + "babel-eslint": "^8.0.3", + "eslint": "^4.13.1", + "eslint-plugin-babel": "^4.1.1", + "eslint-plugin-react": "^7.5.1", + "@icedesign/demo-layout": "^0.1.0", + "eslint-plugin-import": "^2.8.0", + "eslint-config-airbnb": "^16.1.0", + "eslint-plugin-jsx-a11y": "^6.0.3", + "@icedesign/skin": "^0.1.2" + }, + "blockConfig": { + "name": "signup-form", + "description": "登录表单", + "chinese": "登录表单", + "category": "form", + "snapshot": "https://img.alicdn.com/tfs/TB1wHA9ib_I8KJjy1XaXXbsxpXa-616-612.png", + "sketchURL": "", + "icelandURL": "", + "themePackage": "@icedesign/skin" + }, + "scripts": {} +} diff --git a/templates/ice-design/blocks/SignupForm/src/SignupForm.jsx b/templates/ice-design/blocks/SignupForm/src/SignupForm.jsx new file mode 100644 index 0000000000..dab844e181 --- /dev/null +++ b/templates/ice-design/blocks/SignupForm/src/SignupForm.jsx @@ -0,0 +1,93 @@ +'use strict'; + +import React, { Component } from 'react'; +import PropTypes from 'prop-types'; +import { Form, Input, Button, Checkbox, Field } from '@icedesign/base'; +import IceIcon from '@icedesign/icon'; +import './SignupForm.scss'; + +const FormItem = Form.Item; + +export default class SignupForm extends Component { + static displayName = 'SignupForm'; + + static propTypes = { + style: PropTypes.object, + className: PropTypes.string, + }; + + static defaultProps = { + }; + + constructor(props) { + super(props); + this.field = new Field(this); + } + + checkPassword(rule, value, callback) { + const { validate } = this.field; + if (value) { + validate(['rePasswd']); + } + callback(); + } + + handleSubmit(e) { + e.preventDefault(); + this.field.validate((errors, values) => { + if (errors) { + console.log('Errors in form!!!'); + return; + } + console.log(values); + }); + } + + render() { + const { init } = this.field; + + return ( +
    +
    +

    登录

    +
    + + + + + + + + + + 记住账号 + + + + + +
    +
    +
    + ); + } +} + +const styles = {"signupForm":{"display":"flex","justifyContent":"center"},"form":{"display":"flex","justifyContent":"center"},"tips":{"textAlign":"center","a {Color":"#999","textDecoration":"none","fontSize":"13px"}} \ No newline at end of file diff --git a/templates/ice-design/blocks/SignupForm/src/SignupForm.scss b/templates/ice-design/blocks/SignupForm/src/SignupForm.scss new file mode 100644 index 0000000000..9a124f333e --- /dev/null +++ b/templates/ice-design/blocks/SignupForm/src/SignupForm.scss @@ -0,0 +1,59 @@ +@charset "UTF-8"; + +.signup-form { + display: flex; + justify-content: center; + .form { + padding: 30px 40px; + background: #fff; + border-radius: 6px; + box-shadow: 1px 1px 2px #eee; + h4 { + margin: 0 0 20px; + text-align: center; + color: #3080FE; + letter-spacing: 12px; + } + .next-input.next-input-single { + width: 240px; + border-top: 0; + border-left: 0; + border-right: 0; + border-color: #DCDCDC; + input { + padding-left: 25px; + font-size: 13px; + } + } + .next-form-item { + margin-bottom: 25px; + } + i, + .next-checkbox-label { + color: #999; + font-size: 13px; + } + i { + position: absolute; + left: 0; + top: 3px; + } + button { + width: 240px; + background: #3080FE; + border-radius: 28px; + } + .tips { + text-align: center; + a { + color: #999; + text-decoration: none; + font-size: 13px; + } + span { + color: #dcd6d6; + margin: 0 8px; + } + } + } +} diff --git a/templates/ice-design/blocks/SignupForm/src/index.js b/templates/ice-design/blocks/SignupForm/src/index.js new file mode 100644 index 0000000000..e6e9eb9513 --- /dev/null +++ b/templates/ice-design/blocks/SignupForm/src/index.js @@ -0,0 +1,3 @@ +import SignupForm from './SignupForm'; + +export default SignupForm; diff --git a/templates/ice-design/blocks/SimpleFluencyForm/.editorconfig b/templates/ice-design/blocks/SimpleFluencyForm/.editorconfig new file mode 100644 index 0000000000..22ef5ace54 --- /dev/null +++ b/templates/ice-design/blocks/SimpleFluencyForm/.editorconfig @@ -0,0 +1,16 @@ +# http://editorconfig.org +root = true + +[*] +indent_style = space +indent_size = 2 +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false + +[makefile] +indent_style = tab +indent_size = 4 diff --git a/templates/ice-design/blocks/SimpleFluencyForm/.eslintignore b/templates/ice-design/blocks/SimpleFluencyForm/.eslintignore new file mode 100644 index 0000000000..3b21308fc7 --- /dev/null +++ b/templates/ice-design/blocks/SimpleFluencyForm/.eslintignore @@ -0,0 +1,12 @@ +# 忽略目录 +build/ +tests/ +demo/ +lib/ + +# node 覆盖率文件 +coverage/ + +# 忽略文件 +**/*-min.js +**/*.min.js \ No newline at end of file diff --git a/templates/ice-design/blocks/SimpleFluencyForm/.eslintrc b/templates/ice-design/blocks/SimpleFluencyForm/.eslintrc new file mode 100644 index 0000000000..7a4e5bac48 --- /dev/null +++ b/templates/ice-design/blocks/SimpleFluencyForm/.eslintrc @@ -0,0 +1,62 @@ +{ + "root": true, + "parser": "babel-eslint", + "extends": "eslint-config-airbnb", + "parserOptions": { + "ecmaVersion": 6, + "ecmaFeatures": { + "jsx": true, + "experimentalObjectRestSpread": true + } + }, + "env": { + "browser": true + }, + "plugins": [ + "react", + "babel" + ], + "rules": { + "react/forbid-prop-types": 0, + "jsx-a11y/label-has-for": 0, + "jsx-a11y/no-static-element-interactions": 0, + "jsx-a11y/anchor-has-content": 0, + "jsx-a11y/click-events-have-key-events": 0, + "jsx-a11y/anchor-is-valid": 0, + "react/no-array-index-key": 0, + "func-names": 0, + "arrow-body-style": 0, + "no-use-before-define": 0, + "react/sort-comp": 0, + "react/prop-types": 0, + "react/jsx-first-prop-new-line": 0, + "react/jsx-filename-extension": [ + 1, + { + "extensions": [ + ".js", + ".jsx" + ] + } + ], + "import/extensions": 0, + "import/no-unresolved": 0, + "import/no-extraneous-dependencies": 0, + "prefer-destructuring": 0, + "no-param-reassign": 0, + "no-return-assign": 0, + "max-len": 0, + "consistent-return": 0, + "no-redeclare": 0, + "react/require-extension": 0, + "react/no-danger": 0, + "comma-dangle": [ + "error", + "always-multiline" + ], + "function-paren-newline": 0, + "object-curly-newline": 0, + "no-restricted-globals": 0, + "react/prefer-stateless-function": 0 + } +} diff --git a/templates/ice-design/blocks/SimpleFluencyForm/.gitignore b/templates/ice-design/blocks/SimpleFluencyForm/.gitignore new file mode 100644 index 0000000000..cc45d6fb3c --- /dev/null +++ b/templates/ice-design/blocks/SimpleFluencyForm/.gitignore @@ -0,0 +1,13 @@ + +*.swp +*.dia~ +.idea/ +.DS_Store + +npm-debug.log +yarn-error.log +node_modules/ +tmp/ + +# happypack 缓存 +.happypack diff --git a/templates/ice-design/blocks/SimpleFluencyForm/README.md b/templates/ice-design/blocks/SimpleFluencyForm/README.md new file mode 100644 index 0000000000..2ccb6579b1 --- /dev/null +++ b/templates/ice-design/blocks/SimpleFluencyForm/README.md @@ -0,0 +1,12 @@ +# simple-fluency-form + +简介:简单流畅型表单 + +SimpleFluencyForm + +![截图](https://gw.alicdn.com/tfs/TB1emXIjDnI8KJjy0FfXXcdoVXa-1776-902.png) + +## 更多 + +* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) +* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) diff --git a/templates/ice-design/blocks/SimpleFluencyForm/demo/index.html b/templates/ice-design/blocks/SimpleFluencyForm/demo/index.html new file mode 100644 index 0000000000..9d2d3a663d --- /dev/null +++ b/templates/ice-design/blocks/SimpleFluencyForm/demo/index.html @@ -0,0 +1,19 @@ + + + + + + + + Document + + + + +
    + + + + + + diff --git a/templates/ice-design/blocks/SimpleFluencyForm/demo/index.js b/templates/ice-design/blocks/SimpleFluencyForm/demo/index.js new file mode 100644 index 0000000000..178a766115 --- /dev/null +++ b/templates/ice-design/blocks/SimpleFluencyForm/demo/index.js @@ -0,0 +1,19 @@ +import React, {Component} from 'react'; +import {render} from 'react-dom'; + +// 载入默认全局样式 normalize 、.clearfix 和一些 mixin 方法等 +import '@icedesign/base/lib/_components/@alife/next-core/lib/index.scss'; + +import DemoLayout from '@icedesign/demo-layout'; +import Block from '../src'; + +const props = { + // ... +}; + +render( + + + , + document.querySelector('#mountNode') +); diff --git a/templates/ice-design/blocks/SimpleFluencyForm/lib/SimpleFluencyForm.js b/templates/ice-design/blocks/SimpleFluencyForm/lib/SimpleFluencyForm.js new file mode 100644 index 0000000000..e14de5c91b --- /dev/null +++ b/templates/ice-design/blocks/SimpleFluencyForm/lib/SimpleFluencyForm.js @@ -0,0 +1,285 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = undefined; + +var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + +var _class, _temp; + +var _react = require('react'); + +var _react2 = _interopRequireDefault(_react); + +var _card = require('@icedesign/card'); + +var _card2 = _interopRequireDefault(_card); + +var _formBinder = require('@icedesign/form-binder'); + +require('./SimpleFluencyForm.scss'); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } + +var Step = require('@icedesign/base/lib/step'); + +var Grid = require('@icedesign/base/lib/grid'); + +var Input = require('@icedesign/base/lib/input'); + +var Button = require('@icedesign/base/lib/button'); + +var Row = Grid.Row, + Col = Grid.Col; + +var telPattern = /^(1[\d]{1}[\d]{9})|(((400)-(\d{3})-(\d{4}))|^((\d{7,8})|(\d{4}|\d{3})-(\d{7,8})|(\d{7,8})-(\d{4}|\d{3}|\d{2}|\d{1}))$)$|^([ ]?)$/; + +var SimpleFluencyForm = (_temp = _class = function (_Component) { + _inherits(SimpleFluencyForm, _Component); + + function SimpleFluencyForm(props) { + _classCallCheck(this, SimpleFluencyForm); + + var _this = _possibleConstructorReturn(this, (SimpleFluencyForm.__proto__ || Object.getPrototypeOf(SimpleFluencyForm)).call(this, props)); + + _this.formChange = function (newValue) { + _this.setState({ + formValue: newValue + }); + }; + + _this.nextStep = function () { + _this.form.validateAll(function (error, value) { + console.log(value); + if (!error || error.length === 0) { + _this.setState({ step: _this.state.step + 1 }); + } + }); + }; + + _this.renderStep = function (step) { + if (step === 0) { + var _this$state$formValue = _this.state.formValue, + username = _this$state$formValue.username, + email = _this$state$formValue.email, + phone = _this$state$formValue.phone, + address = _this$state$formValue.address; + + var initValue = { + username: username, email: email, phone: phone, address: address + }; + return _react2.default.createElement( + _card2.default, + { style: styles.form }, + _react2.default.createElement( + _formBinder.FormBinderWrapper, + { + ref: function ref(form) { + _this.form = form; + }, + value: initValue, + onChange: _this.formChange + }, + _react2.default.createElement( + 'div', + null, + _react2.default.createElement( + Row, + { style: styles.formRow }, + _react2.default.createElement( + Col, + { fixedSpan: 8, style: styles.formLabel }, + _react2.default.createElement( + 'span', + null, + '\u59D3\u540D\uFF1A' + ) + ), + _react2.default.createElement( + Col, + { span: 12 }, + _react2.default.createElement( + _formBinder.FormBinder, + { required: true, message: '\u5FC5\u586B\u9879' }, + _react2.default.createElement(Input, { name: 'username' }) + ), + _react2.default.createElement( + 'div', + { style: styles.formErrorWrapper }, + _react2.default.createElement(_formBinder.FormError, { name: 'username' }) + ) + ) + ), + _react2.default.createElement( + Row, + { style: styles.formRow }, + _react2.default.createElement( + Col, + { fixedSpan: 8, style: styles.formLabel }, + '\u90AE\u7BB1\uFF1A' + ), + _react2.default.createElement( + Col, + { span: 12 }, + _react2.default.createElement( + _formBinder.FormBinder, + { type: 'email', required: true, message: '\u90AE\u7BB1\u4E0D\u5408\u6CD5' }, + _react2.default.createElement(Input, { name: 'email' }) + ), + _react2.default.createElement( + 'div', + { style: styles.formErrorWrapper }, + _react2.default.createElement(_formBinder.FormError, { name: 'email' }) + ) + ) + ), + _react2.default.createElement( + Row, + { style: styles.formRow }, + _react2.default.createElement( + Col, + { fixedSpan: 8, style: styles.formLabel }, + '\u7535\u8BDD\uFF1A' + ), + _react2.default.createElement( + Col, + { span: 12 }, + _react2.default.createElement( + _formBinder.FormBinder, + { required: true, message: '\u8BF7\u8F93\u5165\u5408\u6CD5\u7684\u7535\u8BDD\u53F7\u7801', pattern: telPattern, triggerType: 'onBlur' }, + _react2.default.createElement(Input, { name: 'phone' }) + ), + _react2.default.createElement( + 'div', + { style: styles.formErrorWrapper }, + _react2.default.createElement(_formBinder.FormError, { name: 'phone' }) + ) + ) + ), + _react2.default.createElement( + Row, + { style: styles.formRow }, + _react2.default.createElement( + Col, + { fixedSpan: 8, style: styles.formLabel }, + '\u5730\u5740\uFF1A' + ), + _react2.default.createElement( + Col, + { span: 12 }, + _react2.default.createElement( + _formBinder.FormBinder, + null, + _react2.default.createElement(Input, { required: true, message: '\u5FC5\u586B', multiple: true, name: 'address' }) + ), + _react2.default.createElement( + 'div', + { style: styles.formErrorWrapper }, + _react2.default.createElement(_formBinder.FormError, { name: 'address' }) + ) + ) + ), + _react2.default.createElement( + Row, + null, + _react2.default.createElement( + Col, + { fixedOffset: 8 }, + _react2.default.createElement( + Button, + { onClick: _this.nextStep, type: 'primary' }, + '\u4E0B\u4E00\u6B65' + ) + ) + ) + ) + ) + ); + } else if (step === 1) { + return _react2.default.createElement( + _card2.default, + null, + _react2.default.createElement( + 'span', + null, + '\u6B65\u9AA4\u4E8C' + ) + ); + } else if (step === 2) { + return _react2.default.createElement( + _card2.default, + null, + _react2.default.createElement( + 'span', + null, + '\u6B65\u9AA4\u4E09' + ) + ); + } + }; + + _this.state = { + step: 0, + formValue: { + username: '', + email: '', + phone: '', + address: '' + } + }; + return _this; + } + + // ICE: React Component 的生命周期 + // http://ice.alibaba-inc.com/docs/guide/intro-react#React-组件的生命周期 + + + _createClass(SimpleFluencyForm, [{ + key: 'componentWillMount', + value: function componentWillMount() {} + }, { + key: 'componentDidMount', + value: function componentDidMount() {} + }, { + key: 'componentWillReceiveProps', + value: function componentWillReceiveProps() {} + }, { + key: 'componentWillUnmount', + value: function componentWillUnmount() {} + }, { + key: 'render', + value: function render() { + return _react2.default.createElement( + 'div', + { className: 'simple-fluency-form', style: styles.simpleFluencyForm }, + _react2.default.createElement( + _card2.default, + null, + _react2.default.createElement( + Step, + { current: this.state.step, type: 'dot' }, + _react2.default.createElement(Step.Item, { key: 0, title: '\u586B\u5199\u4FE1\u606F' }), + _react2.default.createElement(Step.Item, { key: 1, title: '\u786E\u8BA4\u4FE1\u606F' }), + _react2.default.createElement(Step.Item, { key: 2, title: '\u5B8C\u6210' }) + ) + ), + this.renderStep(this.state.step) + ); + } + }]); + + return SimpleFluencyForm; +}(_react.Component), _class.displayName = 'SimpleFluencyForm', _class.propTypes = {}, _class.defaultProps = {}, _temp); +exports.default = SimpleFluencyForm; + + +var styles = { formLabel: { textAlign: 'right', lineHeight: '1.7rem', paddingRight: '10px' }, formRow: { marginBottom: '20px' }, form: { padding: '40px 0 20px' }, formErrorWrapper: { marginTop: '5px' }, simpleFluencyForm: {} }; +module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/SimpleFluencyForm/lib/SimpleFluencyForm.scss b/templates/ice-design/blocks/SimpleFluencyForm/lib/SimpleFluencyForm.scss new file mode 100644 index 0000000000..d97a3f5679 --- /dev/null +++ b/templates/ice-design/blocks/SimpleFluencyForm/lib/SimpleFluencyForm.scss @@ -0,0 +1,5 @@ +@charset "UTF-8"; + +.simple-fluency-form { + +} diff --git a/templates/ice-design/blocks/SimpleFluencyForm/lib/index.js b/templates/ice-design/blocks/SimpleFluencyForm/lib/index.js new file mode 100644 index 0000000000..7cb6d9bb1e --- /dev/null +++ b/templates/ice-design/blocks/SimpleFluencyForm/lib/index.js @@ -0,0 +1,14 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _SimpleFluencyForm = require('./SimpleFluencyForm'); + +var _SimpleFluencyForm2 = _interopRequireDefault(_SimpleFluencyForm); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +exports.default = _SimpleFluencyForm2.default; +module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/SimpleFluencyForm/mock/api.json b/templates/ice-design/blocks/SimpleFluencyForm/mock/api.json new file mode 100644 index 0000000000..e706430232 --- /dev/null +++ b/templates/ice-design/blocks/SimpleFluencyForm/mock/api.json @@ -0,0 +1,4 @@ +{ + "status": "success", + "data": {} +} diff --git a/templates/ice-design/blocks/SimpleFluencyForm/package.json b/templates/ice-design/blocks/SimpleFluencyForm/package.json new file mode 100644 index 0000000000..33b16db05c --- /dev/null +++ b/templates/ice-design/blocks/SimpleFluencyForm/package.json @@ -0,0 +1,55 @@ +{ + "name": "@icedesign/simple-fluency-form-block", + "version": "0.1.0", + "description": "SimpleFluencyForm", + "files": [ + "src/", + "demo/", + "lib/", + "mock/" + ], + "scripts": {}, + "author": { + "name": "ICE Team", + "email": "ice-admin@alibaba-inc.com" + }, + "repository": { + "type": "git", + "url": "https://github.com/alibaba/ice" + }, + "license": "MIT", + "keywords": [ + "ice", + "ice-block" + ], + "dependencies": { + "@icedesign/base": "^0.1.0", + "prop-types": "^15.5.8", + "@icedesign/card": "^0.1.0", + "@icedesign/form-binder": "^0.1.0" + }, + "devDependencies": { + "@icedesign/skin": "^0.1.2", + "babel-eslint": "^8.0.3", + "eslint-plugin-react": "^7.5.1", + "react": "15.x", + "react-copy-to-clipboard": "^4.2.3", + "react-dom": "15.x", + "eslint": "^4.13.1", + "eslint-plugin-babel": "^4.1.1", + "eslint-plugin-import": "^2.8.0", + "eslint-config-airbnb": "^16.1.0", + "eslint-plugin-jsx-a11y": "^6.0.3", + "@icedesign/demo-layout": "^0.1.0" + }, + "blockConfig": { + "name": "simple-fluency-form", + "description": "SimpleFluencyForm", + "chinese": "简单流畅型表单", + "category": "form", + "snapshot": "https://gw.alicdn.com/tfs/TB1emXIjDnI8KJjy0FfXXcdoVXa-1776-902.png", + "sketchURL": "", + "icelandURL": "", + "themePackage": "@icedesign/skin" + } +} diff --git a/templates/ice-design/blocks/SimpleFluencyForm/src/SimpleFluencyForm.jsx b/templates/ice-design/blocks/SimpleFluencyForm/src/SimpleFluencyForm.jsx new file mode 100644 index 0000000000..b458a862e4 --- /dev/null +++ b/templates/ice-design/blocks/SimpleFluencyForm/src/SimpleFluencyForm.jsx @@ -0,0 +1,166 @@ + + +import React, { Component } from 'react'; +import IceCard from '@icedesign/card'; +import { Step, Grid, Input, Button } from '@icedesign/base'; +import { FormBinderWrapper, FormBinder, FormError } from '@icedesign/form-binder'; +import './SimpleFluencyForm.scss'; + +const { Row, Col } = Grid; +const telPattern = /^(1[\d]{1}[\d]{9})|(((400)-(\d{3})-(\d{4}))|^((\d{7,8})|(\d{4}|\d{3})-(\d{7,8})|(\d{7,8})-(\d{4}|\d{3}|\d{2}|\d{1}))$)$|^([ ]?)$/; + +export default class SimpleFluencyForm extends Component { + static displayName = 'SimpleFluencyForm'; + + static propTypes = { + }; + + static defaultProps = { + }; + + constructor(props) { + super(props); + this.state = { + step: 0, + formValue: { + username: '', + email: '', + phone: '', + address: '', + }, + }; + } + + // ICE: React Component 的生命周期 + // http://ice.alibaba-inc.com/docs/guide/intro-react#React-组件的生命周期 + componentWillMount() { + + } + + componentDidMount() { + + } + + componentWillReceiveProps() { + + } + + componentWillUnmount() { + + } + + formChange = (newValue) => { + this.setState({ + formValue: newValue, + }); + }; + + nextStep = () => { + this.form.validateAll((error, value) => { + console.log(value); + if (!error || error.length === 0) { + this.setState({ step: this.state.step + 1 }); + } + }); + }; + + renderStep = (step) => { + if (step === 0) { + const { username, email, phone, address } = this.state.formValue; + const initValue = { + username, email, phone, address, + }; + return ( + + { this.form = form; }} + value={initValue} + onChange={this.formChange} + > +
    + + + 姓名: + + + +
    + +
    + +
    + + + 邮箱: + + + +
    + +
    + +
    + + + 电话: + + + +
    + +
    + +
    + + + 地址: + + + +
    + +
    + +
    + + + + + + +
    +
    +
    + ); + } else if (step === 1) { + return ( + + 步骤二 + + ); + } else if (step === 2) { + return ( + + 步骤三 + + ); + } + }; + + render() { + return ( +
    + + + + + + + + {this.renderStep(this.state.step)} +
    + ); + } +} + +const styles = { formLabel: { textAlign: 'right', lineHeight: '1.7rem', paddingRight: '10px' }, formRow: { marginBottom: '20px' }, form: { padding: '40px 0 20px' }, formErrorWrapper: { marginTop: '5px' }, simpleFluencyForm: {} }; diff --git a/templates/ice-design/blocks/SimpleFluencyForm/src/SimpleFluencyForm.scss b/templates/ice-design/blocks/SimpleFluencyForm/src/SimpleFluencyForm.scss new file mode 100644 index 0000000000..d97a3f5679 --- /dev/null +++ b/templates/ice-design/blocks/SimpleFluencyForm/src/SimpleFluencyForm.scss @@ -0,0 +1,5 @@ +@charset "UTF-8"; + +.simple-fluency-form { + +} diff --git a/templates/ice-design/blocks/SimpleFluencyForm/src/index.js b/templates/ice-design/blocks/SimpleFluencyForm/src/index.js new file mode 100644 index 0000000000..8e469786f1 --- /dev/null +++ b/templates/ice-design/blocks/SimpleFluencyForm/src/index.js @@ -0,0 +1,3 @@ +import SimpleFluencyForm from './SimpleFluencyForm'; + +export default SimpleFluencyForm; diff --git a/templates/ice-design/blocks/SimpleFormDialog/.editorconfig b/templates/ice-design/blocks/SimpleFormDialog/.editorconfig new file mode 100644 index 0000000000..22ef5ace54 --- /dev/null +++ b/templates/ice-design/blocks/SimpleFormDialog/.editorconfig @@ -0,0 +1,16 @@ +# http://editorconfig.org +root = true + +[*] +indent_style = space +indent_size = 2 +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false + +[makefile] +indent_style = tab +indent_size = 4 diff --git a/templates/ice-design/blocks/SimpleFormDialog/.eslintignore b/templates/ice-design/blocks/SimpleFormDialog/.eslintignore new file mode 100644 index 0000000000..3b21308fc7 --- /dev/null +++ b/templates/ice-design/blocks/SimpleFormDialog/.eslintignore @@ -0,0 +1,12 @@ +# 忽略目录 +build/ +tests/ +demo/ +lib/ + +# node 覆盖率文件 +coverage/ + +# 忽略文件 +**/*-min.js +**/*.min.js \ No newline at end of file diff --git a/templates/ice-design/blocks/SimpleFormDialog/.eslintrc b/templates/ice-design/blocks/SimpleFormDialog/.eslintrc new file mode 100644 index 0000000000..7a4e5bac48 --- /dev/null +++ b/templates/ice-design/blocks/SimpleFormDialog/.eslintrc @@ -0,0 +1,62 @@ +{ + "root": true, + "parser": "babel-eslint", + "extends": "eslint-config-airbnb", + "parserOptions": { + "ecmaVersion": 6, + "ecmaFeatures": { + "jsx": true, + "experimentalObjectRestSpread": true + } + }, + "env": { + "browser": true + }, + "plugins": [ + "react", + "babel" + ], + "rules": { + "react/forbid-prop-types": 0, + "jsx-a11y/label-has-for": 0, + "jsx-a11y/no-static-element-interactions": 0, + "jsx-a11y/anchor-has-content": 0, + "jsx-a11y/click-events-have-key-events": 0, + "jsx-a11y/anchor-is-valid": 0, + "react/no-array-index-key": 0, + "func-names": 0, + "arrow-body-style": 0, + "no-use-before-define": 0, + "react/sort-comp": 0, + "react/prop-types": 0, + "react/jsx-first-prop-new-line": 0, + "react/jsx-filename-extension": [ + 1, + { + "extensions": [ + ".js", + ".jsx" + ] + } + ], + "import/extensions": 0, + "import/no-unresolved": 0, + "import/no-extraneous-dependencies": 0, + "prefer-destructuring": 0, + "no-param-reassign": 0, + "no-return-assign": 0, + "max-len": 0, + "consistent-return": 0, + "no-redeclare": 0, + "react/require-extension": 0, + "react/no-danger": 0, + "comma-dangle": [ + "error", + "always-multiline" + ], + "function-paren-newline": 0, + "object-curly-newline": 0, + "no-restricted-globals": 0, + "react/prefer-stateless-function": 0 + } +} diff --git a/templates/ice-design/blocks/SimpleFormDialog/.gitignore b/templates/ice-design/blocks/SimpleFormDialog/.gitignore new file mode 100644 index 0000000000..cc45d6fb3c --- /dev/null +++ b/templates/ice-design/blocks/SimpleFormDialog/.gitignore @@ -0,0 +1,13 @@ + +*.swp +*.dia~ +.idea/ +.DS_Store + +npm-debug.log +yarn-error.log +node_modules/ +tmp/ + +# happypack 缓存 +.happypack diff --git a/templates/ice-design/blocks/SimpleFormDialog/README.md b/templates/ice-design/blocks/SimpleFormDialog/README.md new file mode 100644 index 0000000000..b4a710816d --- /dev/null +++ b/templates/ice-design/blocks/SimpleFormDialog/README.md @@ -0,0 +1,12 @@ +# simple-form-dialog + +简介:简单表单弹窗 + +简单的表单弹窗 + +![截图](https://img.alicdn.com/tfs/TB1.65ri9_I8KJjy0FoXXaFnVXa-1270-628.png) + +## 更多 + +* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) +* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) diff --git a/templates/ice-design/blocks/SimpleFormDialog/demo/index.html b/templates/ice-design/blocks/SimpleFormDialog/demo/index.html new file mode 100644 index 0000000000..9d2d3a663d --- /dev/null +++ b/templates/ice-design/blocks/SimpleFormDialog/demo/index.html @@ -0,0 +1,19 @@ + + + + + + + + Document + + + + +
    + + + + + + diff --git a/templates/ice-design/blocks/SimpleFormDialog/demo/index.js b/templates/ice-design/blocks/SimpleFormDialog/demo/index.js new file mode 100644 index 0000000000..38fa37bd4c --- /dev/null +++ b/templates/ice-design/blocks/SimpleFormDialog/demo/index.js @@ -0,0 +1,34 @@ +import React, { Component } from 'react'; +import { render } from 'react-dom'; + +// 载入默认全局样式 normalize 、.clearfix 和一些 mixin 方法等 +import '@icedesign/base/lib/_components/@alife/next-core/lib/index.scss'; + +import DemoLayout from '@icedesign/demo-layout'; +import Block from '../src'; + +Block.show({ + onClose: () => { + Block.hide(); + }, + onCancel: () => { + Block.hide(); + }, + onOk: value => { + console.log('value', value); + }, + value: { + type: 'video' + } +}); + +const props = { + // ... +}; + +render( + +
    + , + document.querySelector('#mountNode') +); diff --git a/templates/ice-design/blocks/SimpleFormDialog/lib/CreateFuncDialog.js b/templates/ice-design/blocks/SimpleFormDialog/lib/CreateFuncDialog.js new file mode 100644 index 0000000000..999b240af5 --- /dev/null +++ b/templates/ice-design/blocks/SimpleFormDialog/lib/CreateFuncDialog.js @@ -0,0 +1,51 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; + +var _react = require('react'); + +var _react2 = _interopRequireDefault(_react); + +var _reactDom = require('react-dom'); + +var _reactDom2 = _interopRequireDefault(_reactDom); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// 包装 Dialog 类组件,使其支持 show、hide 这种命令式调用 +var CreateFuncDialog = function CreateFuncDialog(WrapperElement) { + var instance = null; + var container = document.createElement('div'); + document.body.appendChild(container); + + return { + // 创建并打开一个弹窗,并传入初始化的 props + show: function show(props) { + // 如果已经有实例打开了,则不会继续打开 + if (instance) { + return; + } + instance = _reactDom2.default.render(_react2.default.createElement(WrapperElement, _extends({}, props, { visible: true })), container); + }, + // 隐藏并销毁弹窗 + hide: function hide() { + if (instance) { + instance.setState({ + visible: false + }, function () { + setTimeout(function () { + _reactDom2.default.unmountComponentAtNode(container); + instance = null; + }, 1000); + }); + } + } + }; +}; + +exports.default = CreateFuncDialog; +module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/SimpleFormDialog/lib/SimpleFormDialog.js b/templates/ice-design/blocks/SimpleFormDialog/lib/SimpleFormDialog.js new file mode 100644 index 0000000000..77b28a8557 --- /dev/null +++ b/templates/ice-design/blocks/SimpleFormDialog/lib/SimpleFormDialog.js @@ -0,0 +1,244 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; + +var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + +var _class, _temp; + +// 用法: +// import SimpleFormDialog from '...'; +// +// SimpleFormDialog.show({ +// onClose: () => { +// SimpleFormDialog.hide(); +// }, +// onCancel: () => { +// SimpleFormDialog.hide(); +// }, +// // 点击确认按钮之后,拿到表单数据 +// onOk: value => { +// console.log('value', value); +// }, +// // 回填数据 +// value: { +// type: 'video' +// } +// }); + +var _react = require('react'); + +var _react2 = _interopRequireDefault(_react); + +var _formBinder = require('@icedesign/form-binder'); + +var _CreateFuncDialog = require('./CreateFuncDialog'); + +var _CreateFuncDialog2 = _interopRequireDefault(_CreateFuncDialog); + +require('./SimpleFormDialog.scss'); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } + +var Dialog = require('@icedesign/base/lib/dialog'); + +var Grid = require('@icedesign/base/lib/grid'); + +var Input = require('@icedesign/base/lib/input'); + +var Radio = require('@icedesign/base/lib/radio'); + +var Row = Grid.Row, + Col = Grid.Col; +var RadioGroup = Radio.Group; + + +var defaultValue = { + keywords: '', + type: 'post', + content: '' +}; + +var SimpleFormDialog = (_temp = _class = function (_Component) { + _inherits(SimpleFormDialog, _Component); + + function SimpleFormDialog(props) { + _classCallCheck(this, SimpleFormDialog); + + var _this = _possibleConstructorReturn(this, (SimpleFormDialog.__proto__ || Object.getPrototypeOf(SimpleFormDialog)).call(this, props)); + + _this.onOk = function () { + _this.refForm.validateAll(function (errors, values) { + if (errors) { + return; + } + if (typeof _this.props.onOk === 'function') { + _this.props.onOk(values); + } + }); + }; + + _this.onFormChange = function (value) { + _this.setState({ + value: value + }); + }; + + _this.state = { + visible: props.visible, + value: props.value || defaultValue + }; + return _this; + } + + // ICE: React Component 的生命周期 + // http://ice.alibaba-inc.com/docs/guide/intro-react#React-组件的生命周期 + + + _createClass(SimpleFormDialog, [{ + key: 'componentWillMount', + value: function componentWillMount() {} + }, { + key: 'componentDidMount', + value: function componentDidMount() {} + }, { + key: 'componentWillReceiveProps', + value: function componentWillReceiveProps() {} + }, { + key: 'shouldComponentUpdate', + value: function shouldComponentUpdate() { + return true; + } + }, { + key: 'componentWillUnmount', + value: function componentWillUnmount() {} + }, { + key: 'render', + value: function render() { + var _this2 = this, + _extends2; + + return _react2.default.createElement( + Dialog, + _extends((_extends2 = { + className: 'simple-form-dialog', + style: styles.simpleFormDialog + }, _defineProperty(_extends2, 'style', styles.dialog), _defineProperty(_extends2, 'autoFocus', false), _defineProperty(_extends2, 'footerAlign', 'center'), _defineProperty(_extends2, 'title', '\u7B80\u5355\u8868\u5355'), _extends2), this.props, { + onOk: this.onOk, + isFullScreen: true, + visible: this.state.visible + }), + _react2.default.createElement( + _formBinder.FormBinderWrapper, + { + ref: function ref(_ref) { + _this2.refForm = _ref; + }, + value: this.state.value, + onChange: this.onFormChange + }, + _react2.default.createElement( + 'div', + { style: styles.dialogContent }, + _react2.default.createElement( + Row, + { style: styles.formRow }, + _react2.default.createElement( + Col, + { span: '3' }, + _react2.default.createElement( + 'label', + { style: styles.formLabel }, + '\u5173\u952E\u8BCD' + ) + ), + _react2.default.createElement( + Col, + { span: '16' }, + _react2.default.createElement( + _formBinder.FormBinder, + { + required: true, + min: 2, + max: 10, + message: '\u5F53\u524D\u5B57\u6BB5\u5FC5\u586B\uFF0C\u4E14\u6700\u5C11 2 \u4E2A\u5B57\u6700\u591A 10 \u4E2A\u5B57' + }, + _react2.default.createElement(Input, { + name: 'keywords', + style: styles.input, + placeholder: '\u591A\u5173\u952E\u8BCD\u7528\u82F1\u6587 , \u53F7\u5206\u5272' + }) + ), + _react2.default.createElement(_formBinder.FormError, { name: 'keywords' }) + ) + ), + _react2.default.createElement( + Row, + { style: styles.formRow }, + _react2.default.createElement( + Col, + null, + _react2.default.createElement( + _formBinder.FormBinder, + null, + _react2.default.createElement(RadioGroup, { + name: 'type', + dataSource: [{ + value: 'post', + label: '文章' + }, { + value: 'video', + label: '视频' + }, { + value: 'image', + label: '图片' + }] + }) + ) + ) + ), + _react2.default.createElement( + Row, + { style: styles.formRow }, + _react2.default.createElement( + Col, + null, + _react2.default.createElement( + _formBinder.FormBinder, + null, + _react2.default.createElement(Input, { + name: 'content', + style: styles.input, + multiple: true, + placeholder: '\u8BF7\u8F93\u5165\u8BE6\u7EC6\u5185\u5BB9', + rows: 4 + }) + ) + ) + ) + ) + ) + ); + } + }]); + + return SimpleFormDialog; +}(_react.Component), _class.displayName = 'SimpleFormDialog', _temp); + + +var styles = { dialog: { width: '640px' }, dialogContent: {}, formRow: { marginTop: 20 }, input: { width: '100%' }, formLabel: { lineHeight: '26px' }, simpleFormDialog: {} }; + +exports.default = (0, _CreateFuncDialog2.default)(SimpleFormDialog); +module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/SimpleFormDialog/lib/SimpleFormDialog.scss b/templates/ice-design/blocks/SimpleFormDialog/lib/SimpleFormDialog.scss new file mode 100644 index 0000000000..e04a63ee58 --- /dev/null +++ b/templates/ice-design/blocks/SimpleFormDialog/lib/SimpleFormDialog.scss @@ -0,0 +1,5 @@ +@charset "UTF-8"; + +.simple-form-dialog { + +} diff --git a/templates/ice-design/blocks/SimpleFormDialog/lib/index.js b/templates/ice-design/blocks/SimpleFormDialog/lib/index.js new file mode 100644 index 0000000000..d8bdb31355 --- /dev/null +++ b/templates/ice-design/blocks/SimpleFormDialog/lib/index.js @@ -0,0 +1,14 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _SimpleFormDialog = require('./SimpleFormDialog'); + +var _SimpleFormDialog2 = _interopRequireDefault(_SimpleFormDialog); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +exports.default = _SimpleFormDialog2.default; +module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/SimpleFormDialog/mock/api.json b/templates/ice-design/blocks/SimpleFormDialog/mock/api.json new file mode 100644 index 0000000000..e706430232 --- /dev/null +++ b/templates/ice-design/blocks/SimpleFormDialog/mock/api.json @@ -0,0 +1,4 @@ +{ + "status": "success", + "data": {} +} diff --git a/templates/ice-design/blocks/SimpleFormDialog/package.json b/templates/ice-design/blocks/SimpleFormDialog/package.json new file mode 100644 index 0000000000..f37febd8f2 --- /dev/null +++ b/templates/ice-design/blocks/SimpleFormDialog/package.json @@ -0,0 +1,52 @@ +{ + "name": "@icedesign/simple-form-dialog-block", + "version": "0.1.0", + "description": "简单的表单弹窗", + "files": [ + "src/", + "demo/", + "lib/", + "mock/" + ], + "author": { + "name": "ICE Team", + "email": "ice-admin@alibaba-inc.com" + }, + "scripts": {}, + "repository": { + "type": "git", + "url": "https://github.com/alibaba/ice" + }, + "license": "MIT", + "keywords": [ + "ice", + "ice-block" + ], + "dependencies": { + "@icedesign/base": "^0.1.0", + "prop-types": "^15.5.8", + "@icedesign/card": "^0.1.0", + "@icedesign/form-binder": "^0.1.0" + }, + "devDependencies": { + "babel-eslint": "^8.0.3", + "eslint": "^4.13.1", + "eslint-config-airbnb": "^16.1.0", + "eslint-plugin-babel": "^4.1.1", + "eslint-plugin-import": "^2.8.0", + "eslint-plugin-jsx-a11y": "^6.0.3", + "eslint-plugin-react": "^7.5.1", + "@icedesign/demo-layout": "^0.1.0", + "@icedesign/skin": "^0.1.2" + }, + "blockConfig": { + "name": "simple-form-dialog", + "description": "简单的表单弹窗", + "chinese": "简单表单弹窗", + "category": "modal", + "snapshot": "https://img.alicdn.com/tfs/TB1.65ri9_I8KJjy0FoXXaFnVXa-1270-628.png", + "sketchURL": "", + "icelandURL": "", + "themePackage": "@icedesign/skin" + } +} diff --git a/templates/ice-design/blocks/SimpleFormDialog/src/CreateFuncDialog.js b/templates/ice-design/blocks/SimpleFormDialog/src/CreateFuncDialog.js new file mode 100644 index 0000000000..b7a2688da5 --- /dev/null +++ b/templates/ice-design/blocks/SimpleFormDialog/src/CreateFuncDialog.js @@ -0,0 +1,43 @@ + + +import React from 'react'; +import ReactDOM from 'react-dom'; + +// 包装 Dialog 类组件,使其支持 show、hide 这种命令式调用 +const CreateFuncDialog = (WrapperElement) => { + let instance = null; + const container = document.createElement('div'); + document.body.appendChild(container); + + return { + // 创建并打开一个弹窗,并传入初始化的 props + show: (props) => { + // 如果已经有实例打开了,则不会继续打开 + if (instance) { + return; + } + instance = ReactDOM.render( + , + container + ); + }, + // 隐藏并销毁弹窗 + hide: () => { + if (instance) { + instance.setState( + { + visible: false, + }, + () => { + setTimeout(() => { + ReactDOM.unmountComponentAtNode(container); + instance = null; + }, 1000); + } + ); + } + }, + }; +}; + +export default CreateFuncDialog; diff --git a/templates/ice-design/blocks/SimpleFormDialog/src/SimpleFormDialog.jsx b/templates/ice-design/blocks/SimpleFormDialog/src/SimpleFormDialog.jsx new file mode 100644 index 0000000000..00c0bf7b5b --- /dev/null +++ b/templates/ice-design/blocks/SimpleFormDialog/src/SimpleFormDialog.jsx @@ -0,0 +1,169 @@ + + +// 用法: +// import SimpleFormDialog from '...'; +// +// SimpleFormDialog.show({ +// onClose: () => { +// SimpleFormDialog.hide(); +// }, +// onCancel: () => { +// SimpleFormDialog.hide(); +// }, +// // 点击确认按钮之后,拿到表单数据 +// onOk: value => { +// console.log('value', value); +// }, +// // 回填数据 +// value: { +// type: 'video' +// } +// }); + +import React, { Component } from 'react'; +import { Dialog, Grid, Input, Radio } from '@icedesign/base'; +import { + FormBinderWrapper as IceFormBinderWrapper, + FormBinder as IceFormBinder, + FormError as IceFormError, +} from '@icedesign/form-binder'; +import CreateFuncDialog from './CreateFuncDialog'; +import './SimpleFormDialog.scss'; + +const { Row, Col } = Grid; +const { Group: RadioGroup } = Radio; + +const defaultValue = { + keywords: '', + type: 'post', + content: '', +}; + +class SimpleFormDialog extends Component { + static displayName = 'SimpleFormDialog'; + + constructor(props) { + super(props); + this.state = { + visible: props.visible, + value: props.value || defaultValue, + }; + } + + // ICE: React Component 的生命周期 + // http://ice.alibaba-inc.com/docs/guide/intro-react#React-组件的生命周期 + componentWillMount() { } + + componentDidMount() { } + + componentWillReceiveProps() { } + + shouldComponentUpdate() { + return true; + } + + componentWillUnmount() { } + + onOk = () => { + this.refForm.validateAll((errors, values) => { + if (errors) { + return; + } + if (typeof this.props.onOk === 'function') { + this.props.onOk(values); + } + }); + }; + + onFormChange = (value) => { + this.setState({ + value, + }); + }; + + render() { + return ( + + { this.refForm = ref; }} + value={this.state.value} + onChange={this.onFormChange} + > +
    + + + + + + + + + + + + + + + + + + + + + + + + + +
    +
    +
    + ); + } +} + +const styles = { dialog: { width: '640px' }, dialogContent: {}, formRow: { marginTop: 20 }, input: { width: '100%' }, formLabel: { lineHeight: '26px' }, simpleFormDialog: {} }; + +export default CreateFuncDialog(SimpleFormDialog); diff --git a/templates/ice-design/blocks/SimpleFormDialog/src/SimpleFormDialog.scss b/templates/ice-design/blocks/SimpleFormDialog/src/SimpleFormDialog.scss new file mode 100644 index 0000000000..e04a63ee58 --- /dev/null +++ b/templates/ice-design/blocks/SimpleFormDialog/src/SimpleFormDialog.scss @@ -0,0 +1,5 @@ +@charset "UTF-8"; + +.simple-form-dialog { + +} diff --git a/templates/ice-design/blocks/SimpleFormDialog/src/index.js b/templates/ice-design/blocks/SimpleFormDialog/src/index.js new file mode 100644 index 0000000000..7a92b0e17e --- /dev/null +++ b/templates/ice-design/blocks/SimpleFormDialog/src/index.js @@ -0,0 +1,3 @@ +import SimpleFormDialog from './SimpleFormDialog'; + +export default SimpleFormDialog; diff --git a/templates/ice-design/blocks/SimpleTable/.editorconfig b/templates/ice-design/blocks/SimpleTable/.editorconfig new file mode 100644 index 0000000000..22ef5ace54 --- /dev/null +++ b/templates/ice-design/blocks/SimpleTable/.editorconfig @@ -0,0 +1,16 @@ +# http://editorconfig.org +root = true + +[*] +indent_style = space +indent_size = 2 +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false + +[makefile] +indent_style = tab +indent_size = 4 diff --git a/templates/ice-design/blocks/SimpleTable/.eslintignore b/templates/ice-design/blocks/SimpleTable/.eslintignore new file mode 100644 index 0000000000..2d5ec592a3 --- /dev/null +++ b/templates/ice-design/blocks/SimpleTable/.eslintignore @@ -0,0 +1,12 @@ +# 忽略目录 +build/ +tests/ +demo/ +lib/ + +# node 覆盖率文件 +coverage/ + +# 忽略文件 +**/*-min.js +**/*.min.js diff --git a/templates/ice-design/blocks/SimpleTable/.eslintrc b/templates/ice-design/blocks/SimpleTable/.eslintrc new file mode 100644 index 0000000000..7cc397841e --- /dev/null +++ b/templates/ice-design/blocks/SimpleTable/.eslintrc @@ -0,0 +1,61 @@ +{ + "root": true, + "parser": "babel-eslint", + "extends": "eslint-config-airbnb", + "parserOptions": { + "ecmaVersion": 6, + "ecmaFeatures": { + "jsx": true, + "experimentalObjectRestSpread": true + } + }, + "env": { + "browser": true + }, + "plugins": [ + "react", + "babel" + ], + "rules": { + "react/forbid-prop-types": 0, + "jsx-a11y/label-has-for": 0, + "jsx-a11y/no-static-element-interactions": 0, + "jsx-a11y/anchor-has-content": 0, + "jsx-a11y/click-events-have-key-events": 0, + "jsx-a11y/anchor-is-valid": 0, + "react/no-array-index-key": 0, + "func-names": 0, + "arrow-body-style": 0, + "no-use-before-define": 1, + "react/sort-comp": 0, + "react/prop-types": 0, + "react/jsx-first-prop-new-line": 0, + "react/jsx-filename-extension": [ + 1, + { + "extensions": [ + ".js", + ".jsx" + ] + } + ], + "import/extensions": 0, + "import/no-unresolved": 0, + "import/no-extraneous-dependencies": 0, + "prefer-destructuring": 0, + "no-param-reassign": 0, + "no-return-assign": 0, + "max-len": 0, + "consistent-return": 0, + "no-redeclare": 0, + "react/require-extension": 0, + "react/no-danger": 0, + "comma-dangle": [ + "error", + "always-multiline" + ], + "function-paren-newline": 0, + "object-curly-newline": 0, + "no-restricted-globals": 0 + } +} diff --git a/templates/ice-design/blocks/SimpleTable/.gitignore b/templates/ice-design/blocks/SimpleTable/.gitignore new file mode 100644 index 0000000000..cc45d6fb3c --- /dev/null +++ b/templates/ice-design/blocks/SimpleTable/.gitignore @@ -0,0 +1,13 @@ + +*.swp +*.dia~ +.idea/ +.DS_Store + +npm-debug.log +yarn-error.log +node_modules/ +tmp/ + +# happypack 缓存 +.happypack diff --git a/templates/ice-design/blocks/SimpleTable/README.md b/templates/ice-design/blocks/SimpleTable/README.md new file mode 100644 index 0000000000..00cc69c551 --- /dev/null +++ b/templates/ice-design/blocks/SimpleTable/README.md @@ -0,0 +1,12 @@ +# simple-table + +简介:基础表格 + +基础的表格 + +![截图](https://img.alicdn.com/tfs/TB1dnoMib_I8KJjy1XaXXbsxpXa-1908-1496.png) + +## 更多 + +* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) +* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) diff --git a/templates/ice-design/blocks/SimpleTable/demo/index.html b/templates/ice-design/blocks/SimpleTable/demo/index.html new file mode 100644 index 0000000000..cb0422f8d9 --- /dev/null +++ b/templates/ice-design/blocks/SimpleTable/demo/index.html @@ -0,0 +1,18 @@ + + + + + + + + Document + + + + +
    + + + + + diff --git a/templates/ice-design/blocks/SimpleTable/demo/index.js b/templates/ice-design/blocks/SimpleTable/demo/index.js new file mode 100644 index 0000000000..4d6acd389a --- /dev/null +++ b/templates/ice-design/blocks/SimpleTable/demo/index.js @@ -0,0 +1,19 @@ +import React, { Component } from 'react'; +import { render } from 'react-dom'; + +// 载入默认全局样式 normalize 、.clearfix 和一些 mixin 方法等 +import '@icedesign/base/lib/_components/@alife/next-core/lib/index.scss'; + +import DemoLayout from '@icedesign/demo-layout'; +import Block from '../src'; + +const props = { + // ... +}; + +render( + + + , + document.querySelector('#mountNode') +); diff --git a/templates/ice-design/blocks/SimpleTable/lib/SimpleTable.js b/templates/ice-design/blocks/SimpleTable/lib/SimpleTable.js new file mode 100644 index 0000000000..b5aaa88adf --- /dev/null +++ b/templates/ice-design/blocks/SimpleTable/lib/SimpleTable.js @@ -0,0 +1,234 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = undefined; + +var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + +var _dec, _class, _class2, _temp; + +var _react = require('react'); + +var _react2 = _interopRequireDefault(_react); + +var _card = require('@icedesign/card'); + +var _card2 = _interopRequireDefault(_card); + +var _img = require('@icedesign/img'); + +var _img2 = _interopRequireDefault(_img); + +var _dataBinder = require('@icedesign/data-binder'); + +var _dataBinder2 = _interopRequireDefault(_dataBinder); + +var _label = require('@icedesign/label'); + +var _label2 = _interopRequireDefault(_label); + +require('./SimpleTable.scss'); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } + +var Table = require('@icedesign/base/lib/table'); + +var Pagination = require('@icedesign/base/lib/pagination'); + +// 详细用法请参见 http://ice.alibaba-inc.com/modules/ice-data-binder +var SimpleTable = (_dec = (0, _dataBinder2.default)({ + tableData: { + // 详细请求配置请参见 https://github.com/axios/axios + url: '/mock/simple-table-list.json', + params: { + page: 1 + }, + defaultBindingData: { + list: [], + total: 100, + pageSize: 10, + currentPage: 1 + } + } +}), _dec(_class = (_temp = _class2 = function (_Component) { + _inherits(SimpleTable, _Component); + + function SimpleTable(props) { + _classCallCheck(this, SimpleTable); + + var _this = _possibleConstructorReturn(this, (SimpleTable.__proto__ || Object.getPrototypeOf(SimpleTable)).call(this, props)); + + _this.fetchData = function (_ref) { + var page = _ref.page; + + _this.props.updateBindingData('tableData', { + data: { + page: page + } + }); + }; + + _this.renderTitle = function (value, index, record) { + return _react2.default.createElement( + 'div', + { + style: { + display: 'flex', + flexDirection: 'row' + } + }, + _react2.default.createElement( + 'div', + null, + _react2.default.createElement(_img2.default, { src: record.cover, width: 48, height: 48 }) + ), + _react2.default.createElement( + 'span', + { + style: { + marginLeft: '10px', + lineHeight: '20px' + } + }, + record.title + ) + ); + }; + + _this.editItem = function (record, e) { + e.preventDefault(); + // todo + console.log('record', record); + }; + + _this.renderOperations = function (value, index, record) { + return _react2.default.createElement( + 'div', + { className: 'simple-table-operation', style: { lineHeight: '28px' } }, + _react2.default.createElement( + 'a', + { + href: '#', + target: '_blank', + onClick: function onClick() { + _this.editItem(record); + } + }, + '\u89E3\u51B3' + ), + _react2.default.createElement( + 'a', + { href: '#', target: '_blank' }, + '\u8BE6\u60C5' + ), + _react2.default.createElement( + 'a', + { href: '#', target: '_blank' }, + '\u5206\u7C7B' + ) + ); + }; + + _this.renderStatus = function (value) { + return _react2.default.createElement( + _label2.default, + { inverse: false, status: 'default' }, + value + ); + }; + + _this.changePage = function (currentPage) { + _this.fetchData({ + page: currentPage + }); + }; + + _this.state = {}; + return _this; + } + + _createClass(SimpleTable, [{ + key: 'componentDidMount', + value: function componentDidMount() { + this.fetchData({ + page: 1 + }); + } + }, { + key: 'render', + value: function render() { + var tableData = this.props.bindingData.tableData; + + return _react2.default.createElement( + 'div', + { className: 'simple-table' }, + _react2.default.createElement( + _card2.default, + null, + _react2.default.createElement( + Table, + { + dataSource: tableData.list, + isLoading: tableData.__loading // eslint-disable-line + , className: 'basic-table', + hasBorder: false + }, + _react2.default.createElement(Table.Column, { + title: '\u95EE\u9898\u63CF\u8FF0', + cell: this.renderTitle, + width: 320 + }), + _react2.default.createElement(Table.Column, { title: '\u95EE\u9898\u5206\u7C7B', dataIndex: 'type', width: 85 }), + _react2.default.createElement(Table.Column, { + title: '\u53D1\u5E03\u65F6\u95F4', + dataIndex: 'publishTime', + width: 150 + }), + _react2.default.createElement(Table.Column, { + title: '\u72B6\u6001', + dataIndex: 'publishStatus', + width: 85, + cell: this.renderStatus + }), + _react2.default.createElement(Table.Column, { + title: '\u64CD\u4F5C', + dataIndex: 'operation', + width: 150, + cell: this.renderOperations + }) + ), + _react2.default.createElement( + 'div', + { style: styles.paginationWrapper }, + _react2.default.createElement(Pagination, { + current: tableData.currentPage, + pageSize: tableData.pageSize, + total: tableData.total, + onChange: this.changePage + }) + ) + ) + ); + } + }]); + + return SimpleTable; +}(_react.Component), _class2.displayName = 'SimpleTable', _class2.propTypes = {}, _class2.defaultProps = {}, _temp)) || _class); +exports.default = SimpleTable; + + +var styles = { + paginationWrapper: { + textAlign: 'right', + paddingTop: '26px' + } +}; +module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/SimpleTable/lib/SimpleTable.scss b/templates/ice-design/blocks/SimpleTable/lib/SimpleTable.scss new file mode 100644 index 0000000000..db432073fa --- /dev/null +++ b/templates/ice-design/blocks/SimpleTable/lib/SimpleTable.scss @@ -0,0 +1,10 @@ +@charset "UTF-8"; + +.simple-table { + .simple-table-operation { + a { + margin-right: 12px; + text-decoration: none; + } + } +} diff --git a/templates/ice-design/blocks/SimpleTable/lib/index.js b/templates/ice-design/blocks/SimpleTable/lib/index.js new file mode 100644 index 0000000000..79a82336cb --- /dev/null +++ b/templates/ice-design/blocks/SimpleTable/lib/index.js @@ -0,0 +1,14 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _SimpleTable = require('./SimpleTable'); + +var _SimpleTable2 = _interopRequireDefault(_SimpleTable); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +exports.default = _SimpleTable2.default; +module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/SimpleTable/mock/simple-table-list.json b/templates/ice-design/blocks/SimpleTable/mock/simple-table-list.json new file mode 100644 index 0000000000..5347bea249 --- /dev/null +++ b/templates/ice-design/blocks/SimpleTable/mock/simple-table-list.json @@ -0,0 +1,122 @@ +{ + "status": "SUCCESS", + "data": { + "total": 100, + "pageSize": 10, + "currentPage": 1, + "list": [ + { + "id": 1, + "cover": + "//img.alicdn.com/bao/uploaded/i3/120976213/TB2O4nSnblmpuFjSZFlXXbdQXXa_!!120976213.jpg_240x240.jpg", + "title": "于momo2017秋冬新款背带裙复古格子连衣裙清新背心裙a字裙短裙子", + "url": "https://item.taobao.com/item.htm?id=558559528377", + "type": "清单", + "publishTime": "17-04-28 20:29:20", + "publishStatus": "已发布", + "pushStatus": "已推送至订阅号", + "operation": { + "edit": true + } + }, + { + "id": 2, + "cover": + "//img.alicdn.com/bao/uploaded/i4/TB1GiPSinJ_SKJjSZPiYXH3LpXa_M2.SS2_100x100.jpg", + "title": "SOTHEA 2017秋冬新款 高质感特定纱线欧美宽松马海毛羊毛毛衣", + "url": "https://item.taobao.com/item.htm?id=558559528377", + "type": "清单", + "publishTime": "17-04-28 20:29:20", + "publishStatus": "已发布", + "pushStatus": "已推送至订阅号", + "operation": { + "edit": true + } + }, + { + "id": 3, + "cover": + "//img.alicdn.com/bao/uploaded/i3/120976213/TB2O4nSnblmpuFjSZFlXXbdQXXa_!!120976213.jpg_240x240.jpg", + "title": "川岛屋 日式天然玉米皮草编碗垫锅垫隔热垫茶垫加厚餐垫GD-29", + "url": "https://item.taobao.com/item.htm?id=558559528377", + "type": "清单", + "publishTime": "17-04-28 20:29:20", + "publishStatus": "已发布", + "pushStatus": "已推送至订阅号", + "operation": { + "edit": true + } + }, + { + "id": 4, + "cover": + "//img.alicdn.com/bao/uploaded/i7/TB1QpMvk3n.PuJjSZFkYXI_lpXa_M2.SS2_100x100.jpg", + "title": "SOTHEA 2017秋冬新款 绑带腰封设计感超顺滑质感落肩铜氨丝连衣裙", + "url": "https://item.taobao.com/item.htm?id=558559528377", + "type": "清单", + "publishTime": "17-04-28 20:29:20", + "publishStatus": "已发布", + "pushStatus": "已推送至订阅号", + "operation": { + "edit": true + } + }, + { + "id": 5, + "cover": + "//img.alicdn.com/bao/uploaded/i4/120976213/TB2GiVsdS0mpuFjSZPiXXbssVXa_!!120976213.jpg_240x240.jpg", + "title": "川岛屋 日式糖果色陶瓷柄不锈钢餐具西餐牛扒刀叉勺子咖啡勺S-27", + "url": "https://item.taobao.com/item.htm?id=558559528377", + "type": "清单", + "publishTime": "17-04-28 20:29:20", + "publishStatus": "已发布", + "pushStatus": "已推送至订阅号", + "operation": { + "edit": true + } + }, + { + "id": 6, + "cover": + "//img.alicdn.com/bao/uploaded/i3/120976213/TB2bxHGtpXXXXXVXXXXXXXXXXXX_!!120976213.jpg_240x240.jpg", + "title": "日式和风深蓝素色文艺餐巾餐垫围裙锅垫隔热手套厨房桌布GD-11", + "url": "https://item.taobao.com/item.htm?id=558559528377", + "type": "清单", + "publishTime": "17-04-28 20:29:20", + "publishStatus": "已发布", + "pushStatus": "已推送至订阅号", + "operation": { + "edit": true + } + }, + { + "id": 7, + "cover": + "https://img.alicdn.com/bao/uploaded/i4/120976213/TB2bEcHnXXXXXbgXXXXXXXXXXXX_!!120976213.jpg_100x100.jpg", + "title": "川岛屋 日式雪点樱花手绘陶瓷餐具米饭碗拉面碗寿司盘子汤碗PZ-36", + "url": "https://item.taobao.com/item.htm?id=558559528377", + "type": "清单", + "publishTime": "17-04-28 20:29:20", + "publishStatus": "已发布", + "pushStatus": "已推送至订阅号", + "operation": { + "edit": true + } + }, + { + "id": 8, + "cover": + "//img.alicdn.com/bao/uploaded/i2/TB11DjAIFXXXXaTXFXXXXXXXXXX_!!0-item_pic.jpg_100x100.jpg", + "title": "川岛屋 釉下彩复古日式陶瓷盘子菜盘圆盘调味碟 米饭碗日式餐具", + "url": "https://item.taobao.com/item.htm?id=558559528377", + "type": "清单", + "publishTime": "17-04-28 20:29:20", + "publishStatus": "已发布", + "pushStatus": "已推送至订阅号", + "operation": { + "edit": true + } + } + ] + } +} diff --git a/templates/ice-design/blocks/SimpleTable/package.json b/templates/ice-design/blocks/SimpleTable/package.json new file mode 100644 index 0000000000..163ebf2efa --- /dev/null +++ b/templates/ice-design/blocks/SimpleTable/package.json @@ -0,0 +1,57 @@ +{ + "name": "@icedesign/simple-table-block", + "version": "0.1.0", + "description": "基础的表格", + "main": "lib/index.js", + "files": [ + "src/", + "demo/", + "mock/" + ], + "author": { + "name": "ICE Team", + "email": "ice-admin@alibaba-inc.com" + }, + "repository": { + "type": "git", + "url": "https://github.com/alibaba/ice" + }, + "license": "MIT", + "keywords": [ + "ice", + "ice-block" + ], + "dependencies": { + "@icedesign/base": "^0.1.0", + "@icedesign/card": "^0.1.1", + "@icedesign/data-binder": "^0.1.1", + "@icedesign/img": "^0.1.1", + "@icedesign/label": "^0.1.0", + "prop-types": "^15.5.8" + }, + "devDependencies": { + "@icedesign/demo-layout": "latest", + "babel-eslint": "^8.0.3", + "eslint": "^4.13.1", + "eslint-plugin-babel": "^4.1.1", + "eslint-plugin-react": "^7.5.1", + "@icedesign/skin": "^0.1.3", + "eslint-plugin-import": "^2.8.0", + "eslint-config-airbnb": "^16.1.0", + "eslint-plugin-jsx-a11y": "^6.0.3" + }, + "blockConfig": { + "name": "simple-table", + "description": "基础的表格", + "chinese": "基础表格", + "category": "table", + "snapshot": "https://img.alicdn.com/tfs/TB1dnoMib_I8KJjy1XaXXbsxpXa-1908-1496.png", + "sketchURL": "", + "icelandURL": "", + "themePackage": "@icedesign/skin" + }, + "scripts": { + "lint": "eslint . --ext '.js,.jsx' --fix", + "prepublish": "npm run lint" + } +} diff --git a/templates/ice-design/blocks/SimpleTable/src/SimpleTable.jsx b/templates/ice-design/blocks/SimpleTable/src/SimpleTable.jsx new file mode 100644 index 0000000000..67939c37f7 --- /dev/null +++ b/templates/ice-design/blocks/SimpleTable/src/SimpleTable.jsx @@ -0,0 +1,171 @@ +import React, { Component } from 'react'; +import { Table, Pagination } from '@icedesign/base'; +import IceCard from '@icedesign/card'; +import IceImg from '@icedesign/img'; +import DataBinder from '@icedesign/data-binder'; +import IceLabel from '@icedesign/label'; +import './SimpleTable.scss'; + +// 详细用法请参见 http://ice.alibaba-inc.com/modules/ice-data-binder +@DataBinder({ + tableData: { + // 详细请求配置请参见 https://github.com/axios/axios + url: '/mock/simple-table-list.json', + params: { + page: 1, + }, + defaultBindingData: { + list: [], + total: 100, + pageSize: 10, + currentPage: 1, + }, + }, +}) +export default class SimpleTable extends Component { + static displayName = 'SimpleTable'; + + static propTypes = {}; + + static defaultProps = {}; + + constructor(props) { + super(props); + this.state = {}; + } + + componentDidMount() { + this.fetchData({ + page: 1, + }); + } + + fetchData = ({ page }) => { + this.props.updateBindingData('tableData', { + data: { + page, + }, + }); + }; + + renderTitle = (value, index, record) => { + return ( +
    +
    + +
    + + {record.title} + +
    + ); + }; + + editItem = (record, e) => { + e.preventDefault(); + // todo + console.log('record', record); + }; + + renderOperations = (value, index, record) => { + return ( + + ); + }; + + renderStatus = (value) => { + return ( + + {value} + + ); + }; + + changePage = (currentPage) => { + this.fetchData({ + page: currentPage, + }); + }; + + render() { + const tableData = this.props.bindingData.tableData; + + return ( +
    + + + + + + + +
    +
    + +
    +
    +
    + ); + } +} + +const styles = { + paginationWrapper: { + textAlign: 'right', + paddingTop: '26px', + }, +}; diff --git a/templates/ice-design/blocks/SimpleTable/src/SimpleTable.scss b/templates/ice-design/blocks/SimpleTable/src/SimpleTable.scss new file mode 100644 index 0000000000..db432073fa --- /dev/null +++ b/templates/ice-design/blocks/SimpleTable/src/SimpleTable.scss @@ -0,0 +1,10 @@ +@charset "UTF-8"; + +.simple-table { + .simple-table-operation { + a { + margin-right: 12px; + text-decoration: none; + } + } +} diff --git a/templates/ice-design/blocks/SimpleTable/src/index.js b/templates/ice-design/blocks/SimpleTable/src/index.js new file mode 100644 index 0000000000..dfae89413b --- /dev/null +++ b/templates/ice-design/blocks/SimpleTable/src/index.js @@ -0,0 +1,3 @@ +import SimpleTable from './SimpleTable'; + +export default SimpleTable; diff --git a/templates/ice-design/blocks/SimpleTestimonial/.editorconfig b/templates/ice-design/blocks/SimpleTestimonial/.editorconfig new file mode 100644 index 0000000000..22ef5ace54 --- /dev/null +++ b/templates/ice-design/blocks/SimpleTestimonial/.editorconfig @@ -0,0 +1,16 @@ +# http://editorconfig.org +root = true + +[*] +indent_style = space +indent_size = 2 +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false + +[makefile] +indent_style = tab +indent_size = 4 diff --git a/templates/ice-design/blocks/SimpleTestimonial/.eslintignore b/templates/ice-design/blocks/SimpleTestimonial/.eslintignore new file mode 100644 index 0000000000..3b21308fc7 --- /dev/null +++ b/templates/ice-design/blocks/SimpleTestimonial/.eslintignore @@ -0,0 +1,12 @@ +# 忽略目录 +build/ +tests/ +demo/ +lib/ + +# node 覆盖率文件 +coverage/ + +# 忽略文件 +**/*-min.js +**/*.min.js \ No newline at end of file diff --git a/templates/ice-design/blocks/SimpleTestimonial/.eslintrc b/templates/ice-design/blocks/SimpleTestimonial/.eslintrc new file mode 100644 index 0000000000..7a4e5bac48 --- /dev/null +++ b/templates/ice-design/blocks/SimpleTestimonial/.eslintrc @@ -0,0 +1,62 @@ +{ + "root": true, + "parser": "babel-eslint", + "extends": "eslint-config-airbnb", + "parserOptions": { + "ecmaVersion": 6, + "ecmaFeatures": { + "jsx": true, + "experimentalObjectRestSpread": true + } + }, + "env": { + "browser": true + }, + "plugins": [ + "react", + "babel" + ], + "rules": { + "react/forbid-prop-types": 0, + "jsx-a11y/label-has-for": 0, + "jsx-a11y/no-static-element-interactions": 0, + "jsx-a11y/anchor-has-content": 0, + "jsx-a11y/click-events-have-key-events": 0, + "jsx-a11y/anchor-is-valid": 0, + "react/no-array-index-key": 0, + "func-names": 0, + "arrow-body-style": 0, + "no-use-before-define": 0, + "react/sort-comp": 0, + "react/prop-types": 0, + "react/jsx-first-prop-new-line": 0, + "react/jsx-filename-extension": [ + 1, + { + "extensions": [ + ".js", + ".jsx" + ] + } + ], + "import/extensions": 0, + "import/no-unresolved": 0, + "import/no-extraneous-dependencies": 0, + "prefer-destructuring": 0, + "no-param-reassign": 0, + "no-return-assign": 0, + "max-len": 0, + "consistent-return": 0, + "no-redeclare": 0, + "react/require-extension": 0, + "react/no-danger": 0, + "comma-dangle": [ + "error", + "always-multiline" + ], + "function-paren-newline": 0, + "object-curly-newline": 0, + "no-restricted-globals": 0, + "react/prefer-stateless-function": 0 + } +} diff --git a/templates/ice-design/blocks/SimpleTestimonial/.gitignore b/templates/ice-design/blocks/SimpleTestimonial/.gitignore new file mode 100644 index 0000000000..cc45d6fb3c --- /dev/null +++ b/templates/ice-design/blocks/SimpleTestimonial/.gitignore @@ -0,0 +1,13 @@ + +*.swp +*.dia~ +.idea/ +.DS_Store + +npm-debug.log +yarn-error.log +node_modules/ +tmp/ + +# happypack 缓存 +.happypack diff --git a/templates/ice-design/blocks/SimpleTestimonial/README.md b/templates/ice-design/blocks/SimpleTestimonial/README.md new file mode 100644 index 0000000000..9ed3413443 --- /dev/null +++ b/templates/ice-design/blocks/SimpleTestimonial/README.md @@ -0,0 +1,10 @@ +# simple-testimonial + +简介:简单的客户评价 + +![截图](https://img.alicdn.com/tfs/TB1X6osi4rI8KJjy0FpXXb5hVXa-1906-474.png) + +## 更多 + +* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) +* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) diff --git a/templates/ice-design/blocks/SimpleTestimonial/demo/index.html b/templates/ice-design/blocks/SimpleTestimonial/demo/index.html new file mode 100644 index 0000000000..9d2d3a663d --- /dev/null +++ b/templates/ice-design/blocks/SimpleTestimonial/demo/index.html @@ -0,0 +1,19 @@ + + + + + + + + Document + + + + +
    + + + + + + diff --git a/templates/ice-design/blocks/SimpleTestimonial/demo/index.js b/templates/ice-design/blocks/SimpleTestimonial/demo/index.js new file mode 100644 index 0000000000..178a766115 --- /dev/null +++ b/templates/ice-design/blocks/SimpleTestimonial/demo/index.js @@ -0,0 +1,19 @@ +import React, {Component} from 'react'; +import {render} from 'react-dom'; + +// 载入默认全局样式 normalize 、.clearfix 和一些 mixin 方法等 +import '@icedesign/base/lib/_components/@alife/next-core/lib/index.scss'; + +import DemoLayout from '@icedesign/demo-layout'; +import Block from '../src'; + +const props = { + // ... +}; + +render( + + + , + document.querySelector('#mountNode') +); diff --git a/templates/ice-design/blocks/SimpleTestimonial/lib/SimpleTestimonial.js b/templates/ice-design/blocks/SimpleTestimonial/lib/SimpleTestimonial.js new file mode 100644 index 0000000000..261b9ef6c5 --- /dev/null +++ b/templates/ice-design/blocks/SimpleTestimonial/lib/SimpleTestimonial.js @@ -0,0 +1,114 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = undefined; + +var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + +var _class, _temp; + +var _react = require('react'); + +var _react2 = _interopRequireDefault(_react); + +var _propTypes = require('prop-types'); + +var _propTypes2 = _interopRequireDefault(_propTypes); + +var _card = require('@icedesign/card'); + +var _card2 = _interopRequireDefault(_card); + +require('./SimpleTestimonial.scss'); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } + +var SimpleTestimonial = (_temp = _class = function (_Component) { + _inherits(SimpleTestimonial, _Component); + + function SimpleTestimonial(props) { + _classCallCheck(this, SimpleTestimonial); + + var _this = _possibleConstructorReturn(this, (SimpleTestimonial.__proto__ || Object.getPrototypeOf(SimpleTestimonial)).call(this, props)); + + _this.state = {}; + return _this; + } + + // ICE: React Component 的生命周期 + // http://ice.alibaba-inc.com/docs/guide/intro-react#React-组件的生命周期 + + + _createClass(SimpleTestimonial, [{ + key: 'componentWillMount', + value: function componentWillMount() {} + }, { + key: 'componentDidMount', + value: function componentDidMount() {} + }, { + key: 'componentWillReceiveProps', + value: function componentWillReceiveProps(nextProps, nextContext) {} + }, { + key: 'shouldComponentUpdate', + value: function shouldComponentUpdate(nextProps, nextState) { + return true; + } + }, { + key: 'componentWillUnmount', + value: function componentWillUnmount() {} + }, { + key: 'render', + value: function render() { + return _react2.default.createElement( + 'div', + { className: 'simple-testimonial', style: styles.simpleTestimonial }, + _react2.default.createElement( + _card2.default, + null, + _react2.default.createElement( + 'div', + { style: styles.item }, + _react2.default.createElement( + 'p', + { style: styles.description }, + '\u201C \u968F\u7740\u4E2A\u4EBA\u7528\u6237\u5BF9\u4E8E\u4E92\u8054\u7F51\u5185\u5BB9\u83B7\u53D6\u7684\u8981\u6C42\u548C\u53E3\u5473\u8D8A\u6765\u8D8A\u7279\u522B\uFF0C\u600E\u6837\u63D0\u4F9B\u66F4\u52A0\u7CBE\u51C6\u4E2A\u6027\u5316\u7684\u8D44 \u8BAF\u8BA2\u9605\u670D\u52A1\u662F\u63D0\u5347\u7528\u6237\u4F53\u9A8C\u7684\u5173\u952E\u3002\u867D\u7136\u6211\u4EEC\u53D1\u73B0\u76EE\u524D\u5E02\u9762\u4E0A\u6709\u975E\u5E38\u591A\u7684\u8D44\u8BAF\u7C7B app \u90FD\u6807\u699C\u81EA\u5DF1\u80FD \u591F\u63D0\u4F9B\u4E2A\u4EBA\u5B9A\u5236\u5316\u7684\u65B0\u95FB\u9605\u8BFB\u529F\u80FD\uFF0C\u4F46\u662F\u672C\u8D28\u4E0A\u6765\u8BF4\u4E00\u822C\u90FD\u662F\u901A\u8FC7\u65B0\u95FB\u6E90+\u5174\u8DA3\u70B9+\u667A\u80FD\u63A8\u8350\u8FD9\u6837\u7684\u7EC4\u5408\u5B9E\u73B0\u7684 \u201D' + ), + _react2.default.createElement( + 'div', + { style: styles.infoBox }, + _react2.default.createElement('img', { + style: styles.avatar, + src: 'https://img.alicdn.com/tfs/TB1cUfViZrI8KJjy0FhXXbfnpXa-450-456.png' + }), + _react2.default.createElement( + 'h5', + { style: styles.name }, + '\u4EBA\u7269\u540D' + ), + _react2.default.createElement( + 'p', + { style: styles.company }, + '\u5C31\u804C\u516C\u53F8/\u804C\u52A1' + ) + ) + ) + ) + ); + } + }]); + + return SimpleTestimonial; +}(_react.Component), _class.displayName = 'SimpleTestimonial', _class.propTypes = {}, _class.defaultProps = {}, _temp); +exports.default = SimpleTestimonial; + + +var styles = { item: { width: '80%', margin: '0 auto', textAlign: 'center' }, description: { lineHeight: '28px' }, infoBox: { display: 'flex', textAlign: 'center', justifyContent: 'center', alignItems: 'center', marginTop: '40px' }, avatar: { width: '64px', height: '64px' }, name: { margin: '0 15px', fontSize: '15px', fontWeight: 'bold' }, company: { margin: 0 }, simpleTestimonial: {} }; +module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/SimpleTestimonial/lib/SimpleTestimonial.scss b/templates/ice-design/blocks/SimpleTestimonial/lib/SimpleTestimonial.scss new file mode 100644 index 0000000000..196f8ed649 --- /dev/null +++ b/templates/ice-design/blocks/SimpleTestimonial/lib/SimpleTestimonial.scss @@ -0,0 +1,5 @@ +@charset "UTF-8"; + +.simple-testimonial { + +} diff --git a/templates/ice-design/blocks/SimpleTestimonial/lib/index.js b/templates/ice-design/blocks/SimpleTestimonial/lib/index.js new file mode 100644 index 0000000000..2197db84c6 --- /dev/null +++ b/templates/ice-design/blocks/SimpleTestimonial/lib/index.js @@ -0,0 +1,14 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _SimpleTestimonial = require('./SimpleTestimonial'); + +var _SimpleTestimonial2 = _interopRequireDefault(_SimpleTestimonial); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +exports.default = _SimpleTestimonial2.default; +module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/SimpleTestimonial/mock/api.json b/templates/ice-design/blocks/SimpleTestimonial/mock/api.json new file mode 100644 index 0000000000..e706430232 --- /dev/null +++ b/templates/ice-design/blocks/SimpleTestimonial/mock/api.json @@ -0,0 +1,4 @@ +{ + "status": "success", + "data": {} +} diff --git a/templates/ice-design/blocks/SimpleTestimonial/package.json b/templates/ice-design/blocks/SimpleTestimonial/package.json new file mode 100644 index 0000000000..c9e80d8cf9 --- /dev/null +++ b/templates/ice-design/blocks/SimpleTestimonial/package.json @@ -0,0 +1,51 @@ +{ + "name": "@icedesign/simple-testimonial-block", + "version": "0.1.0", + "description": "", + "files": [ + "src/", + "demo/", + "lib/", + "mock/" + ], + "author": { + "name": "ICE Team", + "email": "ice-admin@alibaba-inc.com" + }, + "repository": { + "type": "git", + "url": "https://github.com/alibaba/ice" + }, + "license": "MIT", + "keywords": [ + "ice", + "ice-block" + ], + "dependencies": { + "prop-types": "^15.5.8", + "@icedesign/base": "^0.1.0", + "@icedesign/card": "^0.1.0" + }, + "devDependencies": { + "babel-eslint": "^8.0.3", + "eslint": "^4.13.1", + "eslint-plugin-babel": "^4.1.1", + "eslint-plugin-react": "^7.5.1", + "@icedesign/demo-layout": "^0.1.0", + "eslint-plugin-import": "^2.8.0", + "eslint-config-airbnb": "^16.1.0", + "eslint-plugin-jsx-a11y": "^6.0.3", + "@icedesign/skin": "^0.1.2" + }, + "blockConfig": { + "name": "simple-testimonial", + "description": "", + "chinese": "简单的客户评价", + "category": "info-display", + "snapshot": "https://img.alicdn.com/tfs/TB1X6osi4rI8KJjy0FpXXb5hVXa-1906-474.png", + "sketchURL": "", + "icelandURL": "", + "themePackage": "@icedesign/skin" + }, + "scripts": {} +} diff --git a/templates/ice-design/blocks/SimpleTestimonial/src/SimpleTestimonial.jsx b/templates/ice-design/blocks/SimpleTestimonial/src/SimpleTestimonial.jsx new file mode 100644 index 0000000000..612a6bba3d --- /dev/null +++ b/templates/ice-design/blocks/SimpleTestimonial/src/SimpleTestimonial.jsx @@ -0,0 +1,62 @@ + + +import React, { Component } from 'react'; +import PropTypes from 'prop-types'; +import IceCard from '@icedesign/card'; +import './SimpleTestimonial.scss'; + +export default class SimpleTestimonial extends Component { + static displayName = 'SimpleTestimonial'; + + static propTypes = {}; + + static defaultProps = {}; + + constructor(props) { + super(props); + this.state = {}; + } + + // ICE: React Component 的生命周期 + // http://ice.alibaba-inc.com/docs/guide/intro-react#React-组件的生命周期 + componentWillMount() {} + + componentDidMount() {} + + componentWillReceiveProps(nextProps, nextContext) {} + + shouldComponentUpdate(nextProps, nextState) { + return true; + } + + componentWillUnmount() {} + + render() { + return ( +
    + +
    +

    + “ + 随着个人用户对于互联网内容获取的要求和口味越来越特别,怎样提供更加精准个性化的资 + 讯订阅服务是提升用户体验的关键。虽然我们发现目前市面上有非常多的资讯类 + app 都标榜自己能 + 够提供个人定制化的新闻阅读功能,但是本质上来说一般都是通过新闻源+兴趣点+智能推荐这样的组合实现的 + ” +

    +
    + +
    人物名
    +

    就职公司/职务

    +
    +
    +
    +
    + ); + } +} + +const styles = { item: { width: '80%', margin: '0 auto', textAlign: 'center' }, description: { lineHeight: '28px' }, infoBox: { display: 'flex', textAlign: 'center', justifyContent: 'center', alignItems: 'center', marginTop: '40px' }, avatar: { width: '64px', height: '64px' }, name: { margin: '0 15px', fontSize: '15px', fontWeight: 'bold' }, company: { margin: 0 }, simpleTestimonial: {} }; diff --git a/templates/ice-design/blocks/SimpleTestimonial/src/SimpleTestimonial.scss b/templates/ice-design/blocks/SimpleTestimonial/src/SimpleTestimonial.scss new file mode 100644 index 0000000000..196f8ed649 --- /dev/null +++ b/templates/ice-design/blocks/SimpleTestimonial/src/SimpleTestimonial.scss @@ -0,0 +1,5 @@ +@charset "UTF-8"; + +.simple-testimonial { + +} diff --git a/templates/ice-design/blocks/SimpleTestimonial/src/index.js b/templates/ice-design/blocks/SimpleTestimonial/src/index.js new file mode 100644 index 0000000000..8bfcdf004a --- /dev/null +++ b/templates/ice-design/blocks/SimpleTestimonial/src/index.js @@ -0,0 +1,3 @@ +import SimpleTestimonial from './SimpleTestimonial'; + +export default SimpleTestimonial; diff --git a/templates/ice-design/blocks/SortCardList/.editorconfig b/templates/ice-design/blocks/SortCardList/.editorconfig new file mode 100644 index 0000000000..22ef5ace54 --- /dev/null +++ b/templates/ice-design/blocks/SortCardList/.editorconfig @@ -0,0 +1,16 @@ +# http://editorconfig.org +root = true + +[*] +indent_style = space +indent_size = 2 +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false + +[makefile] +indent_style = tab +indent_size = 4 diff --git a/templates/ice-design/blocks/SortCardList/.eslintignore b/templates/ice-design/blocks/SortCardList/.eslintignore new file mode 100644 index 0000000000..3b21308fc7 --- /dev/null +++ b/templates/ice-design/blocks/SortCardList/.eslintignore @@ -0,0 +1,12 @@ +# 忽略目录 +build/ +tests/ +demo/ +lib/ + +# node 覆盖率文件 +coverage/ + +# 忽略文件 +**/*-min.js +**/*.min.js \ No newline at end of file diff --git a/templates/ice-design/blocks/SortCardList/.eslintrc b/templates/ice-design/blocks/SortCardList/.eslintrc new file mode 100644 index 0000000000..7a4e5bac48 --- /dev/null +++ b/templates/ice-design/blocks/SortCardList/.eslintrc @@ -0,0 +1,62 @@ +{ + "root": true, + "parser": "babel-eslint", + "extends": "eslint-config-airbnb", + "parserOptions": { + "ecmaVersion": 6, + "ecmaFeatures": { + "jsx": true, + "experimentalObjectRestSpread": true + } + }, + "env": { + "browser": true + }, + "plugins": [ + "react", + "babel" + ], + "rules": { + "react/forbid-prop-types": 0, + "jsx-a11y/label-has-for": 0, + "jsx-a11y/no-static-element-interactions": 0, + "jsx-a11y/anchor-has-content": 0, + "jsx-a11y/click-events-have-key-events": 0, + "jsx-a11y/anchor-is-valid": 0, + "react/no-array-index-key": 0, + "func-names": 0, + "arrow-body-style": 0, + "no-use-before-define": 0, + "react/sort-comp": 0, + "react/prop-types": 0, + "react/jsx-first-prop-new-line": 0, + "react/jsx-filename-extension": [ + 1, + { + "extensions": [ + ".js", + ".jsx" + ] + } + ], + "import/extensions": 0, + "import/no-unresolved": 0, + "import/no-extraneous-dependencies": 0, + "prefer-destructuring": 0, + "no-param-reassign": 0, + "no-return-assign": 0, + "max-len": 0, + "consistent-return": 0, + "no-redeclare": 0, + "react/require-extension": 0, + "react/no-danger": 0, + "comma-dangle": [ + "error", + "always-multiline" + ], + "function-paren-newline": 0, + "object-curly-newline": 0, + "no-restricted-globals": 0, + "react/prefer-stateless-function": 0 + } +} diff --git a/templates/ice-design/blocks/SortCardList/.gitignore b/templates/ice-design/blocks/SortCardList/.gitignore new file mode 100644 index 0000000000..5945feea3c --- /dev/null +++ b/templates/ice-design/blocks/SortCardList/.gitignore @@ -0,0 +1,14 @@ + + *.swp + *.dia~ + .idea/ + .DS_Store + + npm-debug.log + yarn-error.log + node_modules/ + tmp/ + + # happypack 缓存 + .happypack + \ No newline at end of file diff --git a/templates/ice-design/blocks/SortCardList/README.md b/templates/ice-design/blocks/SortCardList/README.md new file mode 100644 index 0000000000..1f1dc12be6 --- /dev/null +++ b/templates/ice-design/blocks/SortCardList/README.md @@ -0,0 +1,12 @@ +# sort-card-list + +简介:拖拽排序卡片列表 + +拖拽排序卡片列表 + +![截图](https://gw.alicdn.com/tfs/TB1CmT8jfDH8KJjy1XcXXcpdXXa-2034-830.png) + +## 更多 + +* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) +* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) diff --git a/templates/ice-design/blocks/SortCardList/demo/index.html b/templates/ice-design/blocks/SortCardList/demo/index.html new file mode 100644 index 0000000000..9d2d3a663d --- /dev/null +++ b/templates/ice-design/blocks/SortCardList/demo/index.html @@ -0,0 +1,19 @@ + + + + + + + + Document + + + + +
    + + + + + + diff --git a/templates/ice-design/blocks/SortCardList/demo/index.js b/templates/ice-design/blocks/SortCardList/demo/index.js new file mode 100644 index 0000000000..178a766115 --- /dev/null +++ b/templates/ice-design/blocks/SortCardList/demo/index.js @@ -0,0 +1,19 @@ +import React, {Component} from 'react'; +import {render} from 'react-dom'; + +// 载入默认全局样式 normalize 、.clearfix 和一些 mixin 方法等 +import '@icedesign/base/lib/_components/@alife/next-core/lib/index.scss'; + +import DemoLayout from '@icedesign/demo-layout'; +import Block from '../src'; + +const props = { + // ... +}; + +render( + + + , + document.querySelector('#mountNode') +); diff --git a/templates/ice-design/blocks/SortCardList/mock/api.json b/templates/ice-design/blocks/SortCardList/mock/api.json new file mode 100644 index 0000000000..e706430232 --- /dev/null +++ b/templates/ice-design/blocks/SortCardList/mock/api.json @@ -0,0 +1,4 @@ +{ + "status": "success", + "data": {} +} diff --git a/templates/ice-design/blocks/SortCardList/package.json b/templates/ice-design/blocks/SortCardList/package.json new file mode 100644 index 0000000000..0864cc3ec6 --- /dev/null +++ b/templates/ice-design/blocks/SortCardList/package.json @@ -0,0 +1,57 @@ +{ + "name": "@icedesign/sort-card-list-block", + "version": "0.1.0", + "description": "拖拽排序卡片列表", + "files": [ + "src/", + "demo/", + "lib/", + "mock/" + ], + "scripts": { + "lint": "eslint . --ext '.js,.jsx' --fix", + "prepublish": "npm run lint" + }, + "author": { + "name": "ICE Team", + "email": "ice-admin@alibaba-inc.com" + }, + "repository": { + "type": "git", + "url": "https://github.com/alibaba/ice" + }, + "license": "MIT", + "keywords": [ + "ice", + "ice-block" + ], + "dependencies": { + "@icedesign/base": "^0.1.0", + "prop-types": "^15.5.8", + "@icedesign/card": "^0.1.0" + }, + "devDependencies": { + "@icedesign/skin": "^0.1.2", + "babel-eslint": "^8.0.3", + "eslint-plugin-react": "^7.5.1", + "react": "15.x", + "react-copy-to-clipboard": "^4.2.3", + "react-dom": "15.x", + "eslint": "^4.13.1", + "eslint-plugin-babel": "^4.1.1", + "eslint-plugin-import": "^2.8.0", + "eslint-config-airbnb": "^16.1.0", + "eslint-plugin-jsx-a11y": "^6.0.3", + "@icedesign/demo-layout": "^0.1.0" + }, + "blockConfig": { + "name": "sort-card-list", + "description": "拖拽排序卡片列表", + "chinese": "拖拽排序卡片列表", + "category": "list", + "snapshot": "https://gw.alicdn.com/tfs/TB1CmT8jfDH8KJjy1XcXXcpdXXa-2034-830.png", + "sketchURL": "", + "icelandURL": "", + "themePackage": "@icedesign/skin" + } +} diff --git a/templates/ice-design/blocks/SortCardList/src/SortCardList.jsx b/templates/ice-design/blocks/SortCardList/src/SortCardList.jsx new file mode 100644 index 0000000000..8e7bba7221 --- /dev/null +++ b/templates/ice-design/blocks/SortCardList/src/SortCardList.jsx @@ -0,0 +1,205 @@ + +import React, { Component } from 'react'; +import IceCard from '@icedesign/card'; +import './SortCardList.scss'; + +const stateBackgroundMap = { + 0: '#F4F7FF', + 1: '#FFFAE8', + 2: '#EAFCF6', + 3: '#FFF7F7', +}; + +export default class SortCardList extends Component { + static displayName = 'SortCardList'; + + static propTypes = { + }; + + static defaultProps = { + }; + + constructor(props) { + super(props); + this.state = { + todos: [ + { + id: 1, + state: 0, + description: '这里是任务的描述,用简短的文字介绍任务的内容,最多可以展示两行的文字', + datetime: '07-07 18:36', + }, + { + id: 2, + state: 1, + description: '这里是任务的描述,用简短的文字介绍任务的内容,最多可以展示两行的文字', + datetime: '07-07 18:36', + }, + { + id: 3, + state: 2, + description: '这里是任务的描述,用简短的文字介绍任务的内容,最多可以展示两行的文字', + datetime: '07-07 18:36', + }, + ], + doings: [ + { + id: 1, + state: 0, + description: '这里是任务的描述,用简短的文字介绍任务的内容,最多可以展示两行的文字', + datetime: '07-07 18:36', + }, + { + id: 2, + state: 1, + description: '这里是任务的描述,用简短的文字介绍任务的内容,最多可以展示两行的文字', + datetime: '07-07 18:36', + }, + { + id: 3, + state: 2, + description: '这里是任务的描述,用简短的文字介绍任务的内容,最多可以展示两行的文字', + datetime: '07-07 18:36', + }, + { + id: 4, + state: 2, + description: '这里是任务的描述,用简短的文字介绍任务的内容,最多可以展示两行的文字', + datetime: '07-07 18:36', + }, + { + id: 5, + state: 2, + description: '这里是任务的描述,用简短的文字介绍任务的内容,最多可以展示两行的文字', + datetime: '07-07 18:36', + }, + ], + dones: [ + { + id: 2, + state: 1, + description: '这里是任务的描述,用简短的文字介绍任务的内容,最多可以展示两行的文字', + datetime: '07-07 18:36', + }, + ], + }; + } + + // ICE: React Component 的生命周期 + // http://ice.alibaba-inc.com/docs/guide/intro-react#React-组件的生命周期 + componentWillMount() { + + } + + componentDidMount() { + + } + + componentWillUnmount() { + + } + + handleFinish = () => { }; + + renderItem = (item) => { + return ( +
    +
    {item.description}
    +
    + + icon + {item.datetime} + + 完成 +
    +
    + ); + } + + render() { + const { + todos, doings, dones, + } = this.state; + return ( +
    + +
    +
    待办事项
    +
    在任务卡片间拖拽来排序
    + {todos.map(this.renderItem)} +
    +
    +
    进行中
    +
    在任务卡片间拖拽来排序
    + {doings.map(this.renderItem)} +
    +
    +
    已完成
    +
    在任务卡片间拖拽来排序
    + {dones.map(this.renderItem)} +
    +
    +
    + ); + } +} + +const styles = { + cardContainer: { + display: 'flex', + flexDirection: 'row', + }, + cardList: { + flex: 1, + }, + title: { + fontSize: '16px', + marginBottom: '10px', + color: '#000', + }, + subTitle: { + fontSize: '12px', + marginBottom: '10px', + color: '#000', + }, + cardItem: { + width: '324px', + height: '80px', + borderRadius: '4px', + marginBottom: '10px', + padding: '10px 16px', + position: 'relative', + }, + icon: { + width: '11px', + height: '11px', + marginRight: '5px', + }, + desc: { + fontSize: '12px', + color: '#000', + marginBottom: '10px', + height: '35px', + overflow: 'hidden', + }, + done: { + fontSize: '12px', + color: '#000', + position: 'absolute', + right: '16px', + bottom: '10px', + cursor: 'pointer', + }, +}; diff --git a/templates/ice-design/blocks/SortCardList/src/SortCardList.scss b/templates/ice-design/blocks/SortCardList/src/SortCardList.scss new file mode 100644 index 0000000000..0aa004b4d4 --- /dev/null +++ b/templates/ice-design/blocks/SortCardList/src/SortCardList.scss @@ -0,0 +1,5 @@ +@charset "UTF-8"; + +.sort-card-list { + width: 1036px; +} diff --git a/templates/ice-design/blocks/SortCardList/src/index.js b/templates/ice-design/blocks/SortCardList/src/index.js new file mode 100644 index 0000000000..5c51b375e9 --- /dev/null +++ b/templates/ice-design/blocks/SortCardList/src/index.js @@ -0,0 +1,3 @@ +import SortCardList from './SortCardList'; + +export default SortCardList; diff --git a/templates/ice-design/blocks/SortableTable/.editorconfig b/templates/ice-design/blocks/SortableTable/.editorconfig new file mode 100644 index 0000000000..22ef5ace54 --- /dev/null +++ b/templates/ice-design/blocks/SortableTable/.editorconfig @@ -0,0 +1,16 @@ +# http://editorconfig.org +root = true + +[*] +indent_style = space +indent_size = 2 +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false + +[makefile] +indent_style = tab +indent_size = 4 diff --git a/templates/ice-design/blocks/SortableTable/.eslintignore b/templates/ice-design/blocks/SortableTable/.eslintignore new file mode 100644 index 0000000000..3b21308fc7 --- /dev/null +++ b/templates/ice-design/blocks/SortableTable/.eslintignore @@ -0,0 +1,12 @@ +# 忽略目录 +build/ +tests/ +demo/ +lib/ + +# node 覆盖率文件 +coverage/ + +# 忽略文件 +**/*-min.js +**/*.min.js \ No newline at end of file diff --git a/templates/ice-design/blocks/SortableTable/.eslintrc b/templates/ice-design/blocks/SortableTable/.eslintrc new file mode 100644 index 0000000000..7a4e5bac48 --- /dev/null +++ b/templates/ice-design/blocks/SortableTable/.eslintrc @@ -0,0 +1,62 @@ +{ + "root": true, + "parser": "babel-eslint", + "extends": "eslint-config-airbnb", + "parserOptions": { + "ecmaVersion": 6, + "ecmaFeatures": { + "jsx": true, + "experimentalObjectRestSpread": true + } + }, + "env": { + "browser": true + }, + "plugins": [ + "react", + "babel" + ], + "rules": { + "react/forbid-prop-types": 0, + "jsx-a11y/label-has-for": 0, + "jsx-a11y/no-static-element-interactions": 0, + "jsx-a11y/anchor-has-content": 0, + "jsx-a11y/click-events-have-key-events": 0, + "jsx-a11y/anchor-is-valid": 0, + "react/no-array-index-key": 0, + "func-names": 0, + "arrow-body-style": 0, + "no-use-before-define": 0, + "react/sort-comp": 0, + "react/prop-types": 0, + "react/jsx-first-prop-new-line": 0, + "react/jsx-filename-extension": [ + 1, + { + "extensions": [ + ".js", + ".jsx" + ] + } + ], + "import/extensions": 0, + "import/no-unresolved": 0, + "import/no-extraneous-dependencies": 0, + "prefer-destructuring": 0, + "no-param-reassign": 0, + "no-return-assign": 0, + "max-len": 0, + "consistent-return": 0, + "no-redeclare": 0, + "react/require-extension": 0, + "react/no-danger": 0, + "comma-dangle": [ + "error", + "always-multiline" + ], + "function-paren-newline": 0, + "object-curly-newline": 0, + "no-restricted-globals": 0, + "react/prefer-stateless-function": 0 + } +} diff --git a/templates/ice-design/blocks/SortableTable/.gitignore b/templates/ice-design/blocks/SortableTable/.gitignore new file mode 100644 index 0000000000..cc45d6fb3c --- /dev/null +++ b/templates/ice-design/blocks/SortableTable/.gitignore @@ -0,0 +1,13 @@ + +*.swp +*.dia~ +.idea/ +.DS_Store + +npm-debug.log +yarn-error.log +node_modules/ +tmp/ + +# happypack 缓存 +.happypack diff --git a/templates/ice-design/blocks/SortableTable/README.md b/templates/ice-design/blocks/SortableTable/README.md new file mode 100644 index 0000000000..bd5fde292d --- /dev/null +++ b/templates/ice-design/blocks/SortableTable/README.md @@ -0,0 +1,12 @@ +# sortable-table + +简介:可排序表格 + +可排序的表格 + +![截图](https://img.alicdn.com/tfs/TB1Od76i2DH8KJjy1XcXXcpdXXa-1892-638.png) + +## 更多 + +* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) +* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) diff --git a/templates/ice-design/blocks/SortableTable/demo/index.html b/templates/ice-design/blocks/SortableTable/demo/index.html new file mode 100644 index 0000000000..9d2d3a663d --- /dev/null +++ b/templates/ice-design/blocks/SortableTable/demo/index.html @@ -0,0 +1,19 @@ + + + + + + + + Document + + + + +
    + + + + + + diff --git a/templates/ice-design/blocks/SortableTable/demo/index.js b/templates/ice-design/blocks/SortableTable/demo/index.js new file mode 100644 index 0000000000..178a766115 --- /dev/null +++ b/templates/ice-design/blocks/SortableTable/demo/index.js @@ -0,0 +1,19 @@ +import React, {Component} from 'react'; +import {render} from 'react-dom'; + +// 载入默认全局样式 normalize 、.clearfix 和一些 mixin 方法等 +import '@icedesign/base/lib/_components/@alife/next-core/lib/index.scss'; + +import DemoLayout from '@icedesign/demo-layout'; +import Block from '../src'; + +const props = { + // ... +}; + +render( + + + , + document.querySelector('#mountNode') +); diff --git a/templates/ice-design/blocks/SortableTable/lib/SortableTable.js b/templates/ice-design/blocks/SortableTable/lib/SortableTable.js new file mode 100644 index 0000000000..307b916645 --- /dev/null +++ b/templates/ice-design/blocks/SortableTable/lib/SortableTable.js @@ -0,0 +1,176 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = undefined; + +var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + +var _class, _temp; + +var _react = require('react'); + +var _react2 = _interopRequireDefault(_react); + +var _propTypes = require('prop-types'); + +var _propTypes2 = _interopRequireDefault(_propTypes); + +var _card = require('@icedesign/card'); + +var _card2 = _interopRequireDefault(_card); + +require('./SortableTable.scss'); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } + +var Table = require('@icedesign/base/lib/table'); + +var Icon = require('@icedesign/base/lib/icon'); + +var Button = require('@icedesign/base/lib/button'); + +var generatorData = function generatorData() { + return Array.from({ length: 5 }).map(function (item, index) { + console.log('item', item); + return { + todo: '\u5F85\u529E\u4E8B\u9879 ' + index, + memo: '\u5907\u6CE8\u8BF4\u660E\u6587\u6848 ' + index, + validity: '2017-12-12' + }; + }); +}; + +var SortableTable = (_temp = _class = function (_Component) { + _inherits(SortableTable, _Component); + + function SortableTable(props) { + _classCallCheck(this, SortableTable); + + var _this = _possibleConstructorReturn(this, (SortableTable.__proto__ || Object.getPrototypeOf(SortableTable)).call(this, props)); + + _this.moveUp = function (index) { + if (index > 0) { + var dataSource = _this.state.dataSource; + var prevItem = dataSource[index - 1]; + var currentItem = dataSource[index]; + dataSource.splice(index - 1, 2, currentItem, prevItem); + _this.setState({ + dataSource: dataSource + }); + } + }; + + _this.moveDown = function (index) { + if (index < _this.state.dataSource.length - 1) { + var dataSource = _this.state.dataSource; + var currentItem = dataSource[index]; + var nextItem = dataSource[index + 1]; + dataSource.splice(index, 2, nextItem, currentItem); + _this.setState({ + dataSource: dataSource + }); + } + }; + + _this.renderOrder = function (value, index, record) { + return _react2.default.createElement( + 'span', + null, + index + ); + }; + + _this.renderSortButton = function (value, index, record) { + return _react2.default.createElement( + 'div', + null, + _react2.default.createElement( + Button, + { + onClick: _this.moveDown.bind(_this, index), + size: 'large', + shape: 'text', + disabled: index === _this.state.dataSource.length - 1 + }, + _react2.default.createElement(Icon, { title: '\u4E0B\u79FB', type: 'descending' }) + ), + _react2.default.createElement( + Button, + { + onClick: _this.moveUp.bind(_this, index), + size: 'large', + shape: 'text', + disabled: index === 0 + }, + _react2.default.createElement(Icon, { title: '\u4E0A\u79FB', type: 'ascending' }) + ) + ); + }; + + _this.state = { + dataSource: generatorData() + }; + return _this; + } + + // ICE: React Component 的生命周期 + // http://ice.alibaba-inc.com/docs/guide/intro-react#React-组件的生命周期 + + + _createClass(SortableTable, [{ + key: 'componentWillMount', + value: function componentWillMount() {} + }, { + key: 'componentDidMount', + value: function componentDidMount() {} + }, { + key: 'componentWillReceiveProps', + value: function componentWillReceiveProps(nextProps, nextContext) {} + }, { + key: 'shouldComponentUpdate', + value: function shouldComponentUpdate(nextProps, nextState) { + return true; + } + }, { + key: 'componentWillUnmount', + value: function componentWillUnmount() {} + }, { + key: 'render', + value: function render() { + return _react2.default.createElement( + 'div', + { className: 'sortable-table', style: styles.sortableTable }, + _react2.default.createElement( + _card2.default, + null, + _react2.default.createElement( + Table, + { dataSource: this.state.dataSource, hasBorder: false }, + _react2.default.createElement(Table.Column, { width: 80, title: '\u987A\u5E8F', cell: this.renderOrder }), + _react2.default.createElement(Table.Column, { width: 280, title: '\u5F85\u529E\u4E8B\u9879', dataIndex: 'todo' }), + _react2.default.createElement(Table.Column, { width: 240, title: '\u5907\u6CE8', dataIndex: 'memo' }), + _react2.default.createElement(Table.Column, { width: 180, title: '\u6709\u6548\u65F6\u95F4', dataIndex: 'validity' }), + _react2.default.createElement(Table.Column, { title: '\u6392\u5E8F', cell: this.renderSortButton }) + ) + ) + ); + } + }]); + + return SortableTable; +}(_react.Component), _class.displayName = 'SortableTable', _class.propTypes = {}, _class.defaultProps = {}, _temp); +exports.default = SortableTable; + + +var styles = { + sortableTable: {} +}; +module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/SortableTable/lib/SortableTable.scss b/templates/ice-design/blocks/SortableTable/lib/SortableTable.scss new file mode 100644 index 0000000000..abe7068dd0 --- /dev/null +++ b/templates/ice-design/blocks/SortableTable/lib/SortableTable.scss @@ -0,0 +1,5 @@ +@charset "UTF-8"; + +.sortable-table { + +} diff --git a/templates/ice-design/blocks/SortableTable/lib/index.js b/templates/ice-design/blocks/SortableTable/lib/index.js new file mode 100644 index 0000000000..fb78611a8a --- /dev/null +++ b/templates/ice-design/blocks/SortableTable/lib/index.js @@ -0,0 +1,14 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _SortableTable = require('./SortableTable'); + +var _SortableTable2 = _interopRequireDefault(_SortableTable); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +exports.default = _SortableTable2.default; +module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/SortableTable/mock/api.json b/templates/ice-design/blocks/SortableTable/mock/api.json new file mode 100644 index 0000000000..e706430232 --- /dev/null +++ b/templates/ice-design/blocks/SortableTable/mock/api.json @@ -0,0 +1,4 @@ +{ + "status": "success", + "data": {} +} diff --git a/templates/ice-design/blocks/SortableTable/package.json b/templates/ice-design/blocks/SortableTable/package.json new file mode 100644 index 0000000000..3803be7cc1 --- /dev/null +++ b/templates/ice-design/blocks/SortableTable/package.json @@ -0,0 +1,51 @@ +{ + "name": "@icedesign/sortable-table-block", + "version": "0.1.0", + "description": "可排序的表格", + "files": [ + "src/", + "demo/", + "lib/", + "mock/" + ], + "author": { + "name": "ICE Team", + "email": "ice-admin@alibaba-inc.com" + }, + "repository": { + "type": "git", + "url": "https://github.com/alibaba/ice" + }, + "license": "MIT", + "keywords": [ + "ice", + "ice-block" + ], + "dependencies": { + "prop-types": "^15.5.8", + "@icedesign/base": "^0.1.0", + "@icedesign/card": "^0.1.0" + }, + "devDependencies": { + "babel-eslint": "^8.0.3", + "eslint": "^4.13.1", + "eslint-plugin-babel": "^4.1.1", + "eslint-plugin-react": "^7.5.1", + "@icedesign/demo-layout": "^0.1.0", + "eslint-plugin-import": "^2.8.0", + "eslint-config-airbnb": "^16.1.0", + "eslint-plugin-jsx-a11y": "^6.0.3", + "@icedesign/skin": "^0.1.2" + }, + "blockConfig": { + "name": "sortable-table", + "description": "可排序的表格", + "chinese": "可排序表格", + "category": "table", + "snapshot": "https://img.alicdn.com/tfs/TB1Od76i2DH8KJjy1XcXXcpdXXa-1892-638.png", + "sketchURL": "", + "icelandURL": "", + "themePackage": "@icedesign/skin" + }, + "scripts": {} +} diff --git a/templates/ice-design/blocks/SortableTable/src/SortableTable.jsx b/templates/ice-design/blocks/SortableTable/src/SortableTable.jsx new file mode 100644 index 0000000000..43205b25c1 --- /dev/null +++ b/templates/ice-design/blocks/SortableTable/src/SortableTable.jsx @@ -0,0 +1,119 @@ + + +import React, { Component } from 'react'; +import PropTypes from 'prop-types'; +import IceCard from '@icedesign/card'; +import './SortableTable.scss'; + +import { Table, Icon, Button } from '@icedesign/base'; + +const generatorData = () => { + return Array.from({ length: 5 }).map((item, index) => { + console.log('item', item); + return { + todo: `待办事项 ${index}`, + memo: `备注说明文案 ${index}`, + validity: '2017-12-12', + }; + }); +}; + +export default class SortableTable extends Component { + static displayName = 'SortableTable'; + + static propTypes = {}; + + static defaultProps = {}; + + constructor(props) { + super(props); + this.state = { + dataSource: generatorData(), + }; + } + + // ICE: React Component 的生命周期 + // http://ice.alibaba-inc.com/docs/guide/intro-react#React-组件的生命周期 + componentWillMount() { } + + componentDidMount() { } + + componentWillReceiveProps(nextProps, nextContext) { } + + shouldComponentUpdate(nextProps, nextState) { + return true; + } + + componentWillUnmount() { } + + moveUp = (index) => { + if (index > 0) { + const dataSource = this.state.dataSource; + const prevItem = dataSource[index - 1]; + const currentItem = dataSource[index]; + dataSource.splice(index - 1, 2, currentItem, prevItem); + this.setState({ + dataSource, + }); + } + }; + moveDown = (index) => { + if (index < this.state.dataSource.length - 1) { + const dataSource = this.state.dataSource; + const currentItem = dataSource[index]; + const nextItem = dataSource[index + 1]; + dataSource.splice(index, 2, nextItem, currentItem); + this.setState({ + dataSource, + }); + } + }; + + renderOrder = (value, index, record) => { + return {index}; + }; + + renderSortButton = (value, index, record) => { + return ( +
    + + +
    + ); + }; + + render() { + return ( +
    + + + + + + + +
    +
    +
    + ); + } +} + + +const styles = { + sortableTable: {}, +}; diff --git a/templates/ice-design/blocks/SortableTable/src/SortableTable.scss b/templates/ice-design/blocks/SortableTable/src/SortableTable.scss new file mode 100644 index 0000000000..abe7068dd0 --- /dev/null +++ b/templates/ice-design/blocks/SortableTable/src/SortableTable.scss @@ -0,0 +1,5 @@ +@charset "UTF-8"; + +.sortable-table { + +} diff --git a/templates/ice-design/blocks/SortableTable/src/index.js b/templates/ice-design/blocks/SortableTable/src/index.js new file mode 100644 index 0000000000..91f0469e7f --- /dev/null +++ b/templates/ice-design/blocks/SortableTable/src/index.js @@ -0,0 +1,3 @@ +import SortableTable from './SortableTable'; + +export default SortableTable; diff --git a/templates/ice-design/blocks/StatisticalCard/.editorconfig b/templates/ice-design/blocks/StatisticalCard/.editorconfig new file mode 100644 index 0000000000..22ef5ace54 --- /dev/null +++ b/templates/ice-design/blocks/StatisticalCard/.editorconfig @@ -0,0 +1,16 @@ +# http://editorconfig.org +root = true + +[*] +indent_style = space +indent_size = 2 +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false + +[makefile] +indent_style = tab +indent_size = 4 diff --git a/templates/ice-design/blocks/StatisticalCard/.eslintignore b/templates/ice-design/blocks/StatisticalCard/.eslintignore new file mode 100644 index 0000000000..3b21308fc7 --- /dev/null +++ b/templates/ice-design/blocks/StatisticalCard/.eslintignore @@ -0,0 +1,12 @@ +# 忽略目录 +build/ +tests/ +demo/ +lib/ + +# node 覆盖率文件 +coverage/ + +# 忽略文件 +**/*-min.js +**/*.min.js \ No newline at end of file diff --git a/templates/ice-design/blocks/StatisticalCard/.eslintrc b/templates/ice-design/blocks/StatisticalCard/.eslintrc new file mode 100644 index 0000000000..7a4e5bac48 --- /dev/null +++ b/templates/ice-design/blocks/StatisticalCard/.eslintrc @@ -0,0 +1,62 @@ +{ + "root": true, + "parser": "babel-eslint", + "extends": "eslint-config-airbnb", + "parserOptions": { + "ecmaVersion": 6, + "ecmaFeatures": { + "jsx": true, + "experimentalObjectRestSpread": true + } + }, + "env": { + "browser": true + }, + "plugins": [ + "react", + "babel" + ], + "rules": { + "react/forbid-prop-types": 0, + "jsx-a11y/label-has-for": 0, + "jsx-a11y/no-static-element-interactions": 0, + "jsx-a11y/anchor-has-content": 0, + "jsx-a11y/click-events-have-key-events": 0, + "jsx-a11y/anchor-is-valid": 0, + "react/no-array-index-key": 0, + "func-names": 0, + "arrow-body-style": 0, + "no-use-before-define": 0, + "react/sort-comp": 0, + "react/prop-types": 0, + "react/jsx-first-prop-new-line": 0, + "react/jsx-filename-extension": [ + 1, + { + "extensions": [ + ".js", + ".jsx" + ] + } + ], + "import/extensions": 0, + "import/no-unresolved": 0, + "import/no-extraneous-dependencies": 0, + "prefer-destructuring": 0, + "no-param-reassign": 0, + "no-return-assign": 0, + "max-len": 0, + "consistent-return": 0, + "no-redeclare": 0, + "react/require-extension": 0, + "react/no-danger": 0, + "comma-dangle": [ + "error", + "always-multiline" + ], + "function-paren-newline": 0, + "object-curly-newline": 0, + "no-restricted-globals": 0, + "react/prefer-stateless-function": 0 + } +} diff --git a/templates/ice-design/blocks/StatisticalCard/.gitignore b/templates/ice-design/blocks/StatisticalCard/.gitignore new file mode 100644 index 0000000000..cc45d6fb3c --- /dev/null +++ b/templates/ice-design/blocks/StatisticalCard/.gitignore @@ -0,0 +1,13 @@ + +*.swp +*.dia~ +.idea/ +.DS_Store + +npm-debug.log +yarn-error.log +node_modules/ +tmp/ + +# happypack 缓存 +.happypack diff --git a/templates/ice-design/blocks/StatisticalCard/README.md b/templates/ice-design/blocks/StatisticalCard/README.md new file mode 100644 index 0000000000..f622bf60bc --- /dev/null +++ b/templates/ice-design/blocks/StatisticalCard/README.md @@ -0,0 +1,12 @@ +# statistical-card + +简介:统计型卡片 + +统计型卡片 + +![截图](https://img.alicdn.com/tfs/TB1MLLbilfH8KJjy1XbXXbLdXXa-1910-210.png) + +## 更多 + +* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) +* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) diff --git a/templates/ice-design/blocks/StatisticalCard/demo/index.html b/templates/ice-design/blocks/StatisticalCard/demo/index.html new file mode 100644 index 0000000000..9d2d3a663d --- /dev/null +++ b/templates/ice-design/blocks/StatisticalCard/demo/index.html @@ -0,0 +1,19 @@ + + + + + + + + Document + + + + +
    + + + + + + diff --git a/templates/ice-design/blocks/StatisticalCard/demo/index.js b/templates/ice-design/blocks/StatisticalCard/demo/index.js new file mode 100644 index 0000000000..fb093d338b --- /dev/null +++ b/templates/ice-design/blocks/StatisticalCard/demo/index.js @@ -0,0 +1,17 @@ +import React, { Component } from 'react'; +import { render } from 'react-dom'; +// 载入默认全局样式 normalize 、.clearfix 和一些 mixin 方法等 +import '@icedesign/base/lib/_components/@alife/next-core/lib/index.scss'; +import DemoLayout from '@icedesign/demo-layout'; +import Block from '../src'; + +const props = { + // ... +}; + +render( + + + , + document.querySelector('#mountNode') +); diff --git a/templates/ice-design/blocks/StatisticalCard/mock/api.json b/templates/ice-design/blocks/StatisticalCard/mock/api.json new file mode 100644 index 0000000000..e706430232 --- /dev/null +++ b/templates/ice-design/blocks/StatisticalCard/mock/api.json @@ -0,0 +1,4 @@ +{ + "status": "success", + "data": {} +} diff --git a/templates/ice-design/blocks/StatisticalCard/package.json b/templates/ice-design/blocks/StatisticalCard/package.json new file mode 100644 index 0000000000..483eafe627 --- /dev/null +++ b/templates/ice-design/blocks/StatisticalCard/package.json @@ -0,0 +1,44 @@ +{ + "name": "@icedesign/statistical-card-block", + "version": "0.1.0", + "description": "统计型卡片", + "files": ["src/", "demo/", "lib/", "mock/"], + "author": { + "name": "ICE Team", + "email": "ice-admin@alibaba-inc.com" + }, + "repository": { + "type": "git", + "url": "https://github.com/alibaba/ice" + }, + "license": "MIT", + "keywords": ["ice", "ice-block"], + "dependencies": { + "prop-types": "^15.5.8", + "@icedesign/base": "^0.1.0", + "@icedesign/card": "^0.1.0" + }, + "devDependencies": { + "babel-eslint": "^8.0.3", + "eslint": "^4.13.1", + "eslint-plugin-babel": "^4.1.1", + "eslint-plugin-react": "^7.5.1", + "@icedesign/demo-layout": "^0.1.0", + "eslint-plugin-import": "^2.8.0", + "eslint-config-airbnb": "^16.1.0", + "eslint-plugin-jsx-a11y": "^6.0.3", + "@icedesign/skin": "^0.1.2" + }, + "blockConfig": { + "name": "statistical-card", + "description": "统计型卡片", + "chinese": "统计型卡片", + "category": "data-display", + "snapshot": + "https://img.alicdn.com/tfs/TB1MLLbilfH8KJjy1XbXXbLdXXa-1910-210.png", + "sketchURL": "", + "icelandURL": "", + "themePackage": "@icedesign/skin" + }, + "scripts": {} +} diff --git a/templates/ice-design/blocks/StatisticalCard/src/StatisticalCard.jsx b/templates/ice-design/blocks/StatisticalCard/src/StatisticalCard.jsx new file mode 100644 index 0000000000..f63a633294 --- /dev/null +++ b/templates/ice-design/blocks/StatisticalCard/src/StatisticalCard.jsx @@ -0,0 +1,95 @@ +import React, { Component } from 'react'; +import IceCard from '@icedesign/card'; +import './StatisticalCard.scss'; + +const dataSource = [ + { + text: '昨日内容浏览次数', + number: '46,657', + circle: { + width: 36, + height: 31, + icon: 'https://gw.alicdn.com/tfs/TB1YDjNh4rI8KJjy0FpXXb5hVXa-36-31.png', + }, + helpURL: 'http://taobao.com/', + }, + { + text: '昨日账号主页浏览人数', + number: '96', + circle: { + width: 40, + height: 43, + icon: 'https://gw.alicdn.com/tfs/TB1Vzv5h2DH8KJjy1XcXXcpdXXa-40-43.png', + }, + helpURL: 'http://taobao.com/', + }, + { + text: '昨日粉丝数', + number: '157', + circle: { + width: 42, + height: 29, + icon: 'https://gw.alicdn.com/tfs/TB1uB_Fh9_I8KJjy0FoXXaFnVXa-42-29.png', + }, + helpURL: 'http://taobao.com/', + }, + { + text: '昨日活跃粉丝数', + number: '42', + circle: { + width: 43, + height: 42, + icon: 'https://gw.alicdn.com/tfs/TB186kphZLJ8KJjy0FnXXcFDpXa-43-42.png', + }, + helpURL: 'http://taobao.com/', + }, +]; + +export default class StatisticalCard extends Component { + static displayName = 'StatisticalCard'; + + constructor(props) { + super(props); + this.state = {}; + } + + renderItem = () => { + return dataSource.map((data, idx) => { + const imgStyle = { + width: `${data.circle.width}px`, + height: `${data.circle.height}px`, + }; + return ( +
    +
    + 图片 +
    +
    +
    + {data.text} + + 图片 + +
    +
    {data.number}
    +
    +
    + ); + }); + }; + + render() { + return ( +
    + {this.renderItem()} +
    + ); + } +} diff --git a/templates/ice-design/blocks/StatisticalCard/src/StatisticalCard.scss b/templates/ice-design/blocks/StatisticalCard/src/StatisticalCard.scss new file mode 100644 index 0000000000..40fdc4242f --- /dev/null +++ b/templates/ice-design/blocks/StatisticalCard/src/StatisticalCard.scss @@ -0,0 +1,46 @@ +@charset "UTF-8"; + +.statistical-card { + + .statistical-card-list { + display: flex; + flex-direction: row; + height: 110px; + justify-content: center; + } + .statistical-card-item { + flex: 1; + display: flex; + flex-direction: row; + } + + .circle-wrap { + background-color: #FFECB3; + width: 70px; + height: 70px; + position: relative; + display: flex; + justify-content: center; + align-items: center; + border-radius: 50%; + margin-right: 10px; + } + + .statistical-card-desc { + display: flex; + flex-direction: column; + justify-content: center; + } + + .statistical-card-text { + color: #333333; + font-size: 12px; + font-weight: bold; + margin-bottom: 4px; + } + + .statistical-card-number { + color: #333333; + font-size: 24px; + } +} diff --git a/templates/ice-design/blocks/StatisticalCard/src/index.js b/templates/ice-design/blocks/StatisticalCard/src/index.js new file mode 100644 index 0000000000..58323caa2d --- /dev/null +++ b/templates/ice-design/blocks/StatisticalCard/src/index.js @@ -0,0 +1,3 @@ +import StatisticalCard from './StatisticalCard'; + +export default StatisticalCard; diff --git a/templates/ice-design/blocks/Subscribe/.editorconfig b/templates/ice-design/blocks/Subscribe/.editorconfig new file mode 100644 index 0000000000..22ef5ace54 --- /dev/null +++ b/templates/ice-design/blocks/Subscribe/.editorconfig @@ -0,0 +1,16 @@ +# http://editorconfig.org +root = true + +[*] +indent_style = space +indent_size = 2 +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false + +[makefile] +indent_style = tab +indent_size = 4 diff --git a/templates/ice-design/blocks/Subscribe/.eslintignore b/templates/ice-design/blocks/Subscribe/.eslintignore new file mode 100644 index 0000000000..3b21308fc7 --- /dev/null +++ b/templates/ice-design/blocks/Subscribe/.eslintignore @@ -0,0 +1,12 @@ +# 忽略目录 +build/ +tests/ +demo/ +lib/ + +# node 覆盖率文件 +coverage/ + +# 忽略文件 +**/*-min.js +**/*.min.js \ No newline at end of file diff --git a/templates/ice-design/blocks/Subscribe/.eslintrc b/templates/ice-design/blocks/Subscribe/.eslintrc new file mode 100644 index 0000000000..7a4e5bac48 --- /dev/null +++ b/templates/ice-design/blocks/Subscribe/.eslintrc @@ -0,0 +1,62 @@ +{ + "root": true, + "parser": "babel-eslint", + "extends": "eslint-config-airbnb", + "parserOptions": { + "ecmaVersion": 6, + "ecmaFeatures": { + "jsx": true, + "experimentalObjectRestSpread": true + } + }, + "env": { + "browser": true + }, + "plugins": [ + "react", + "babel" + ], + "rules": { + "react/forbid-prop-types": 0, + "jsx-a11y/label-has-for": 0, + "jsx-a11y/no-static-element-interactions": 0, + "jsx-a11y/anchor-has-content": 0, + "jsx-a11y/click-events-have-key-events": 0, + "jsx-a11y/anchor-is-valid": 0, + "react/no-array-index-key": 0, + "func-names": 0, + "arrow-body-style": 0, + "no-use-before-define": 0, + "react/sort-comp": 0, + "react/prop-types": 0, + "react/jsx-first-prop-new-line": 0, + "react/jsx-filename-extension": [ + 1, + { + "extensions": [ + ".js", + ".jsx" + ] + } + ], + "import/extensions": 0, + "import/no-unresolved": 0, + "import/no-extraneous-dependencies": 0, + "prefer-destructuring": 0, + "no-param-reassign": 0, + "no-return-assign": 0, + "max-len": 0, + "consistent-return": 0, + "no-redeclare": 0, + "react/require-extension": 0, + "react/no-danger": 0, + "comma-dangle": [ + "error", + "always-multiline" + ], + "function-paren-newline": 0, + "object-curly-newline": 0, + "no-restricted-globals": 0, + "react/prefer-stateless-function": 0 + } +} diff --git a/templates/ice-design/blocks/Subscribe/.gitignore b/templates/ice-design/blocks/Subscribe/.gitignore new file mode 100644 index 0000000000..cc45d6fb3c --- /dev/null +++ b/templates/ice-design/blocks/Subscribe/.gitignore @@ -0,0 +1,13 @@ + +*.swp +*.dia~ +.idea/ +.DS_Store + +npm-debug.log +yarn-error.log +node_modules/ +tmp/ + +# happypack 缓存 +.happypack diff --git a/templates/ice-design/blocks/Subscribe/README.md b/templates/ice-design/blocks/Subscribe/README.md new file mode 100644 index 0000000000..a971640c5d --- /dev/null +++ b/templates/ice-design/blocks/Subscribe/README.md @@ -0,0 +1,12 @@ +# subscribe + +简介:订阅 + +订阅 + +![截图](https://gw.alicdn.com/tfs/TB1HFVejvDH8KJjy1XcXXcpdXXa-1832-382.png) + +## 更多 + +* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) +* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) diff --git a/templates/ice-design/blocks/Subscribe/demo/index.html b/templates/ice-design/blocks/Subscribe/demo/index.html new file mode 100644 index 0000000000..9d2d3a663d --- /dev/null +++ b/templates/ice-design/blocks/Subscribe/demo/index.html @@ -0,0 +1,19 @@ + + + + + + + + Document + + + + +
    + + + + + + diff --git a/templates/ice-design/blocks/Subscribe/demo/index.js b/templates/ice-design/blocks/Subscribe/demo/index.js new file mode 100644 index 0000000000..178a766115 --- /dev/null +++ b/templates/ice-design/blocks/Subscribe/demo/index.js @@ -0,0 +1,19 @@ +import React, {Component} from 'react'; +import {render} from 'react-dom'; + +// 载入默认全局样式 normalize 、.clearfix 和一些 mixin 方法等 +import '@icedesign/base/lib/_components/@alife/next-core/lib/index.scss'; + +import DemoLayout from '@icedesign/demo-layout'; +import Block from '../src'; + +const props = { + // ... +}; + +render( + + + , + document.querySelector('#mountNode') +); diff --git a/templates/ice-design/blocks/Subscribe/mock/api.json b/templates/ice-design/blocks/Subscribe/mock/api.json new file mode 100644 index 0000000000..e706430232 --- /dev/null +++ b/templates/ice-design/blocks/Subscribe/mock/api.json @@ -0,0 +1,4 @@ +{ + "status": "success", + "data": {} +} diff --git a/templates/ice-design/blocks/Subscribe/package.json b/templates/ice-design/blocks/Subscribe/package.json new file mode 100644 index 0000000000..66741def2f --- /dev/null +++ b/templates/ice-design/blocks/Subscribe/package.json @@ -0,0 +1,48 @@ +{ + "name": "@icedesign/subscribe-block", + "version": "0.1.0", + "description": "订阅", + "files": ["src/", "demo/", "lib/", "mock/"], + "scripts": {}, + "author": { + "name": "ICE Team", + "email": "ice-admin@alibaba-inc.com" + }, + "repository": { + "type": "git", + "url": "https://github.com/alibaba/ice" + }, + "license": "MIT", + "keywords": ["ice", "ice-block"], + "dependencies": { + "@icedesign/base": "^0.1.0", + "prop-types": "^15.5.8", + "@icedesign/card": "^0.1.0", + "@icedesign/form-binder": "^0.1.0" + }, + "devDependencies": { + "@icedesign/skin": "^0.1.2", + "babel-eslint": "^8.0.3", + "eslint-plugin-react": "^7.5.1", + "react": "15.x", + "react-copy-to-clipboard": "^4.2.3", + "react-dom": "15.x", + "eslint": "^4.13.1", + "eslint-plugin-babel": "^4.1.1", + "eslint-plugin-import": "^2.8.0", + "eslint-config-airbnb": "^16.1.0", + "eslint-plugin-jsx-a11y": "^6.0.3", + "@icedesign/demo-layout": "^0.1.0" + }, + "blockConfig": { + "name": "subscribe", + "description": "订阅", + "chinese": "订阅", + "category": "form", + "snapshot": + "https://gw.alicdn.com/tfs/TB1HFVejvDH8KJjy1XcXXcpdXXa-1832-382.png", + "sketchURL": "", + "icelandURL": "", + "themePackage": "@icedesign/skin" + } +} diff --git a/templates/ice-design/blocks/Subscribe/src/Subscribe.jsx b/templates/ice-design/blocks/Subscribe/src/Subscribe.jsx new file mode 100644 index 0000000000..f6f7e20473 --- /dev/null +++ b/templates/ice-design/blocks/Subscribe/src/Subscribe.jsx @@ -0,0 +1,102 @@ +import React, { Component } from 'react'; +import IceCard from '@icedesign/card'; +import { Input, Button } from '@icedesign/base'; +import { + FormBinderWrapper, + FormBinder, + FormError +} from '@icedesign/form-binder'; + +import './Subscribe.scss'; + +export default class Subscribe extends Component { + static displayName = 'Subscribe'; + + static propTypes = {}; + + static defaultProps = {}; + + constructor(props) { + super(props); + this.state = { + formValue: { + email: '' + } + }; + } + + formChange = newValue => { + this.setState({ + formValue: newValue + }); + }; + + subscribe = () => { + this.form.validateAll((errors, values) => { + console.log('errors', errors, 'values', values); + }); + }; + + render() { + return ( +
    + +

    订阅

    + { + this.form = form; + }} + value={this.state.formValue} + onChange={this.formChange} + > +
    +
    + + + + +
    +
    + +
    +
    +
    +
    +
    + ); + } +} + +const styles = { + container: { + padding: '48px 0' + }, + title: { + fontSize: '26px', + color: '#000', + textAlign: 'center', + margin: '0' + }, + input: { + width: '400px', + marginRight: '15px' + }, + center: { + display: 'flex', + flexDirection: 'row', + justifyContent: 'center', + marginTop: '20px' + }, + error: { + paddingLeft: '240px', + marginTop: '5px' + }, + subscribe: {} +}; diff --git a/templates/ice-design/blocks/Subscribe/src/Subscribe.scss b/templates/ice-design/blocks/Subscribe/src/Subscribe.scss new file mode 100644 index 0000000000..71c201c969 --- /dev/null +++ b/templates/ice-design/blocks/Subscribe/src/Subscribe.scss @@ -0,0 +1,5 @@ +@charset "UTF-8"; + +.subscribe { + +} diff --git a/templates/ice-design/blocks/Subscribe/src/index.js b/templates/ice-design/blocks/Subscribe/src/index.js new file mode 100644 index 0000000000..601e34bb4f --- /dev/null +++ b/templates/ice-design/blocks/Subscribe/src/index.js @@ -0,0 +1,3 @@ +import Subscribe from './Subscribe'; + +export default Subscribe; diff --git a/templates/ice-design/blocks/SuccessDetail/.editorconfig b/templates/ice-design/blocks/SuccessDetail/.editorconfig new file mode 100644 index 0000000000..22ef5ace54 --- /dev/null +++ b/templates/ice-design/blocks/SuccessDetail/.editorconfig @@ -0,0 +1,16 @@ +# http://editorconfig.org +root = true + +[*] +indent_style = space +indent_size = 2 +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false + +[makefile] +indent_style = tab +indent_size = 4 diff --git a/templates/ice-design/blocks/SuccessDetail/.eslintignore b/templates/ice-design/blocks/SuccessDetail/.eslintignore new file mode 100644 index 0000000000..3b21308fc7 --- /dev/null +++ b/templates/ice-design/blocks/SuccessDetail/.eslintignore @@ -0,0 +1,12 @@ +# 忽略目录 +build/ +tests/ +demo/ +lib/ + +# node 覆盖率文件 +coverage/ + +# 忽略文件 +**/*-min.js +**/*.min.js \ No newline at end of file diff --git a/templates/ice-design/blocks/SuccessDetail/.eslintrc b/templates/ice-design/blocks/SuccessDetail/.eslintrc new file mode 100644 index 0000000000..7a4e5bac48 --- /dev/null +++ b/templates/ice-design/blocks/SuccessDetail/.eslintrc @@ -0,0 +1,62 @@ +{ + "root": true, + "parser": "babel-eslint", + "extends": "eslint-config-airbnb", + "parserOptions": { + "ecmaVersion": 6, + "ecmaFeatures": { + "jsx": true, + "experimentalObjectRestSpread": true + } + }, + "env": { + "browser": true + }, + "plugins": [ + "react", + "babel" + ], + "rules": { + "react/forbid-prop-types": 0, + "jsx-a11y/label-has-for": 0, + "jsx-a11y/no-static-element-interactions": 0, + "jsx-a11y/anchor-has-content": 0, + "jsx-a11y/click-events-have-key-events": 0, + "jsx-a11y/anchor-is-valid": 0, + "react/no-array-index-key": 0, + "func-names": 0, + "arrow-body-style": 0, + "no-use-before-define": 0, + "react/sort-comp": 0, + "react/prop-types": 0, + "react/jsx-first-prop-new-line": 0, + "react/jsx-filename-extension": [ + 1, + { + "extensions": [ + ".js", + ".jsx" + ] + } + ], + "import/extensions": 0, + "import/no-unresolved": 0, + "import/no-extraneous-dependencies": 0, + "prefer-destructuring": 0, + "no-param-reassign": 0, + "no-return-assign": 0, + "max-len": 0, + "consistent-return": 0, + "no-redeclare": 0, + "react/require-extension": 0, + "react/no-danger": 0, + "comma-dangle": [ + "error", + "always-multiline" + ], + "function-paren-newline": 0, + "object-curly-newline": 0, + "no-restricted-globals": 0, + "react/prefer-stateless-function": 0 + } +} diff --git a/templates/ice-design/blocks/SuccessDetail/.gitignore b/templates/ice-design/blocks/SuccessDetail/.gitignore new file mode 100644 index 0000000000..cc45d6fb3c --- /dev/null +++ b/templates/ice-design/blocks/SuccessDetail/.gitignore @@ -0,0 +1,13 @@ + +*.swp +*.dia~ +.idea/ +.DS_Store + +npm-debug.log +yarn-error.log +node_modules/ +tmp/ + +# happypack 缓存 +.happypack diff --git a/templates/ice-design/blocks/SuccessDetail/README.md b/templates/ice-design/blocks/SuccessDetail/README.md new file mode 100644 index 0000000000..2926684e81 --- /dev/null +++ b/templates/ice-design/blocks/SuccessDetail/README.md @@ -0,0 +1,10 @@ +# success-detail + +简介:成功详情信息展示 + +![截图](https://gw.alicdn.com/tfs/TB1rmoainnI8KJjy0FfXXcdoVXa-1750-986.png) + +## 更多 + +* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) +* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) diff --git a/templates/ice-design/blocks/SuccessDetail/demo/index.html b/templates/ice-design/blocks/SuccessDetail/demo/index.html new file mode 100644 index 0000000000..9d2d3a663d --- /dev/null +++ b/templates/ice-design/blocks/SuccessDetail/demo/index.html @@ -0,0 +1,19 @@ + + + + + + + + Document + + + + +
    + + + + + + diff --git a/templates/ice-design/blocks/SuccessDetail/demo/index.js b/templates/ice-design/blocks/SuccessDetail/demo/index.js new file mode 100644 index 0000000000..92d23644de --- /dev/null +++ b/templates/ice-design/blocks/SuccessDetail/demo/index.js @@ -0,0 +1,14 @@ +import React, { Component } from 'react'; +import { render } from 'react-dom'; +import DemoLayout from '@icedesign/demo-layout'; +import Block from '../src'; + +const props = { + // ... +}; + +render(( + + + +), document.querySelector('#mountNode')); diff --git a/templates/ice-design/blocks/SuccessDetail/mock/api.json b/templates/ice-design/blocks/SuccessDetail/mock/api.json new file mode 100644 index 0000000000..e706430232 --- /dev/null +++ b/templates/ice-design/blocks/SuccessDetail/mock/api.json @@ -0,0 +1,4 @@ +{ + "status": "success", + "data": {} +} diff --git a/templates/ice-design/blocks/SuccessDetail/package.json b/templates/ice-design/blocks/SuccessDetail/package.json new file mode 100644 index 0000000000..2feeed06e5 --- /dev/null +++ b/templates/ice-design/blocks/SuccessDetail/package.json @@ -0,0 +1,51 @@ +{ + "name": "@icedesign/success-detail-block", + "version": "0.1.0", + "description": "", + "files": [ + "src/", + "demo/", + "lib/", + "mock/" + ], + "author": { + "name": "ICE Team", + "email": "ice-admin@alibaba-inc.com" + }, + "repository": { + "type": "git", + "url": "https://github.com/alibaba/ice" + }, + "license": "MIT", + "keywords": [ + "ice", + "ice-block" + ], + "dependencies": { + "prop-types": "^15.5.8", + "@icedesign/base": "^0.1.0", + "@icedesign/card": "^0.1.0" + }, + "devDependencies": { + "babel-eslint": "^8.0.3", + "eslint": "^4.13.1", + "eslint-plugin-babel": "^4.1.1", + "eslint-plugin-react": "^7.5.1", + "@icedesign/demo-layout": "^0.1.0", + "eslint-plugin-import": "^2.8.0", + "eslint-config-airbnb": "^16.1.0", + "eslint-plugin-jsx-a11y": "^6.0.3", + "@icedesign/skin": "^0.1.2" + }, + "blockConfig": { + "name": "success-detail", + "description": "成功详情信息展示", + "chinese": "成功详情信息展示", + "category": "info-display", + "snapshot": "https://gw.alicdn.com/tfs/TB1rmoainnI8KJjy0FfXXcdoVXa-1750-986.png", + "sketchURL": "", + "icelandURL": "", + "themePackage": "@icedesign/skin" + }, + "scripts": {} +} diff --git a/templates/ice-design/blocks/SuccessDetail/src/SuccessDetail.jsx b/templates/ice-design/blocks/SuccessDetail/src/SuccessDetail.jsx new file mode 100644 index 0000000000..505565a804 --- /dev/null +++ b/templates/ice-design/blocks/SuccessDetail/src/SuccessDetail.jsx @@ -0,0 +1,92 @@ +'use strict'; + +import React, { Component } from 'react'; +import IceCard from '@icedesign/card'; +import { Button, Step } from '@icedesign/base'; +import './SuccessDetail.scss'; + +export default class SuccessDetail extends Component { + static displayName = 'SuccessDetail'; + + static propTypes = {}; + + static defaultProps = {}; + + constructor(props) { + super(props); + this.state = { + value: ['填写信息', '申请审核', '开通账号', '完成'], // 步骤条信息 + current: 1, // 当前步骤 + type: 'dot' // 步骤的类型,可选值: 'circle', 'arrow', 'dot' + }; + } + + render() { + const { value, current, type } = this.state; + return ( +
    + +
    + +

    + 提交成功 +

    +
    +

    + 本文字区域可以展示简单的说明 +

    +

    + 如果有跟多细节需要展示,可以补充在下面这里,一些相关的介绍和描述 +

    + + {value.map((item, index) => { + return ; + })} + +
    + + +
    +
    +
    + ); + } +} + +const styles = { + container: { + padding: '80px 40px' + }, + btn: { + marginRight: '6px' + }, + successDetail: { + textAlign: 'center' + }, + successDetailHead: { + position: 'relative' + }, + img: { + Width: '40px', + height: '40px' + }, + title: { + margin: '0' + }, + summary: { + marginBottom: '40px', + fontSize: '14px', + color: '#666' + }, + summary: { + marginBottom: '40px' + }, + nextStep: { + margin: '80px 0' + } +}; diff --git a/templates/ice-design/blocks/SuccessDetail/src/SuccessDetail.scss b/templates/ice-design/blocks/SuccessDetail/src/SuccessDetail.scss new file mode 100644 index 0000000000..f05de886f1 --- /dev/null +++ b/templates/ice-design/blocks/SuccessDetail/src/SuccessDetail.scss @@ -0,0 +1,4 @@ +@charset "UTF-8"; + +.success-detail { +} diff --git a/templates/ice-design/blocks/SuccessDetail/src/index.js b/templates/ice-design/blocks/SuccessDetail/src/index.js new file mode 100644 index 0000000000..4c33831e6d --- /dev/null +++ b/templates/ice-design/blocks/SuccessDetail/src/index.js @@ -0,0 +1,3 @@ +import SuccessDetail from './SuccessDetail'; + +export default SuccessDetail; diff --git a/templates/ice-design/blocks/SuccessDialog/.editorconfig b/templates/ice-design/blocks/SuccessDialog/.editorconfig new file mode 100644 index 0000000000..22ef5ace54 --- /dev/null +++ b/templates/ice-design/blocks/SuccessDialog/.editorconfig @@ -0,0 +1,16 @@ +# http://editorconfig.org +root = true + +[*] +indent_style = space +indent_size = 2 +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false + +[makefile] +indent_style = tab +indent_size = 4 diff --git a/templates/ice-design/blocks/SuccessDialog/.eslintignore b/templates/ice-design/blocks/SuccessDialog/.eslintignore new file mode 100644 index 0000000000..3b21308fc7 --- /dev/null +++ b/templates/ice-design/blocks/SuccessDialog/.eslintignore @@ -0,0 +1,12 @@ +# 忽略目录 +build/ +tests/ +demo/ +lib/ + +# node 覆盖率文件 +coverage/ + +# 忽略文件 +**/*-min.js +**/*.min.js \ No newline at end of file diff --git a/templates/ice-design/blocks/SuccessDialog/.eslintrc b/templates/ice-design/blocks/SuccessDialog/.eslintrc new file mode 100644 index 0000000000..7a4e5bac48 --- /dev/null +++ b/templates/ice-design/blocks/SuccessDialog/.eslintrc @@ -0,0 +1,62 @@ +{ + "root": true, + "parser": "babel-eslint", + "extends": "eslint-config-airbnb", + "parserOptions": { + "ecmaVersion": 6, + "ecmaFeatures": { + "jsx": true, + "experimentalObjectRestSpread": true + } + }, + "env": { + "browser": true + }, + "plugins": [ + "react", + "babel" + ], + "rules": { + "react/forbid-prop-types": 0, + "jsx-a11y/label-has-for": 0, + "jsx-a11y/no-static-element-interactions": 0, + "jsx-a11y/anchor-has-content": 0, + "jsx-a11y/click-events-have-key-events": 0, + "jsx-a11y/anchor-is-valid": 0, + "react/no-array-index-key": 0, + "func-names": 0, + "arrow-body-style": 0, + "no-use-before-define": 0, + "react/sort-comp": 0, + "react/prop-types": 0, + "react/jsx-first-prop-new-line": 0, + "react/jsx-filename-extension": [ + 1, + { + "extensions": [ + ".js", + ".jsx" + ] + } + ], + "import/extensions": 0, + "import/no-unresolved": 0, + "import/no-extraneous-dependencies": 0, + "prefer-destructuring": 0, + "no-param-reassign": 0, + "no-return-assign": 0, + "max-len": 0, + "consistent-return": 0, + "no-redeclare": 0, + "react/require-extension": 0, + "react/no-danger": 0, + "comma-dangle": [ + "error", + "always-multiline" + ], + "function-paren-newline": 0, + "object-curly-newline": 0, + "no-restricted-globals": 0, + "react/prefer-stateless-function": 0 + } +} diff --git a/templates/ice-design/blocks/SuccessDialog/.gitignore b/templates/ice-design/blocks/SuccessDialog/.gitignore new file mode 100644 index 0000000000..cc45d6fb3c --- /dev/null +++ b/templates/ice-design/blocks/SuccessDialog/.gitignore @@ -0,0 +1,13 @@ + +*.swp +*.dia~ +.idea/ +.DS_Store + +npm-debug.log +yarn-error.log +node_modules/ +tmp/ + +# happypack 缓存 +.happypack diff --git a/templates/ice-design/blocks/SuccessDialog/README.md b/templates/ice-design/blocks/SuccessDialog/README.md new file mode 100644 index 0000000000..6c5fb3cd68 --- /dev/null +++ b/templates/ice-design/blocks/SuccessDialog/README.md @@ -0,0 +1,10 @@ +# success-dialog + +简介:提示框-成功 + +![截图](https://img.alicdn.com/tfs/TB1J9cak4rI8KJjy0FpXXb5hVXa-1284-554.png) + +## 更多 + +* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) +* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) diff --git a/templates/ice-design/blocks/SuccessDialog/demo/index.html b/templates/ice-design/blocks/SuccessDialog/demo/index.html new file mode 100644 index 0000000000..9d2d3a663d --- /dev/null +++ b/templates/ice-design/blocks/SuccessDialog/demo/index.html @@ -0,0 +1,19 @@ + + + + + + + + Document + + + + +
    + + + + + + diff --git a/templates/ice-design/blocks/SuccessDialog/demo/index.js b/templates/ice-design/blocks/SuccessDialog/demo/index.js new file mode 100644 index 0000000000..04788142cb --- /dev/null +++ b/templates/ice-design/blocks/SuccessDialog/demo/index.js @@ -0,0 +1,25 @@ +import React, { Component } from 'react'; +import { render } from 'react-dom'; +import DemoLayout from '@icedesign/demo-layout'; +import Block from '../src'; + +Block.show({ + onClose: () => { + Block.hide(); + }, + onCancel: () => { + Block.hide(); + }, + text: '是否要删除当前文章?' +}); + +const props = { + // ... +}; + +render( + +
    + , + document.querySelector('#mountNode') +); diff --git a/templates/ice-design/blocks/SuccessDialog/mock/api.json b/templates/ice-design/blocks/SuccessDialog/mock/api.json new file mode 100644 index 0000000000..e706430232 --- /dev/null +++ b/templates/ice-design/blocks/SuccessDialog/mock/api.json @@ -0,0 +1,4 @@ +{ + "status": "success", + "data": {} +} diff --git a/templates/ice-design/blocks/SuccessDialog/package.json b/templates/ice-design/blocks/SuccessDialog/package.json new file mode 100644 index 0000000000..c55a51ffef --- /dev/null +++ b/templates/ice-design/blocks/SuccessDialog/package.json @@ -0,0 +1,44 @@ +{ + "name": "@icedesign/success-dialog-block", + "version": "0.1.0", + "description": "", + "main": "lib/index.js", + "files": ["src/", "demo/", "lib/", "mock/"], + "author": { + "name": "ICE Team", + "email": "ice-admin@alibaba-inc.com" + }, + "repository": { + "type": "git", + "url": "https://github.com/alibaba/ice" + }, + "license": "MIT", + "keywords": ["ice", "ice-block"], + "dependencies": { + "prop-types": "^15.5.8", + "@icedesign/base": "^0.1.0" + }, + "devDependencies": { + "babel-eslint": "^8.0.3", + "eslint": "^4.13.1", + "eslint-plugin-babel": "^4.1.1", + "eslint-plugin-react": "^7.5.1", + "@icedesign/demo-layout": "^0.1.0", + "eslint-plugin-import": "^2.8.0", + "eslint-config-airbnb": "^16.1.0", + "eslint-plugin-jsx-a11y": "^6.0.3", + "@icedesign/skin": "^0.1.2" + }, + "blockConfig": { + "name": "success-dialog", + "description": "", + "chinese": "提示框-成功", + "category": "modal", + "snapshot": + "https://img.alicdn.com/tfs/TB1J9cak4rI8KJjy0FpXXb5hVXa-1284-554.png", + "sketchURL": "", + "icelandURL": "", + "themePackage": "@icedesign/skin" + }, + "scripts": {} +} diff --git a/templates/ice-design/blocks/SuccessDialog/src/CreateFuncDialog.js b/templates/ice-design/blocks/SuccessDialog/src/CreateFuncDialog.js new file mode 100644 index 0000000000..b009df541d --- /dev/null +++ b/templates/ice-design/blocks/SuccessDialog/src/CreateFuncDialog.js @@ -0,0 +1,46 @@ +'use strict'; + +import React from 'react'; +import ReactDOM from 'react-dom'; + +// 包装 Dialog 类组件,使其支持 show、hide 这种命令式调用 +const CreateFuncDialog = WrapperElement => { + let instance = null; + let container = null; + + return { + // 创建并打开一个弹窗,并传入初始化的 props + show: props => { + // 如果已经有实例打开了,则不会继续打开 + if (instance) { + return; + } + + container = document.createElement('div'); + document.body.appendChild(container); + instance = ReactDOM.render( + , + container + ); + }, + // 隐藏并销毁弹窗 + hide: () => { + if (instance) { + instance.setState( + { + visible: false + }, + () => { + setTimeout(() => { + ReactDOM.unmountComponentAtNode(container); + instance = null; + container.parentNode.removeChild(container); + }, 1000); + } + ); + } + } + }; +}; + +export default CreateFuncDialog; diff --git a/templates/ice-design/blocks/SuccessDialog/src/SuccessDialog.jsx b/templates/ice-design/blocks/SuccessDialog/src/SuccessDialog.jsx new file mode 100644 index 0000000000..a4299ff2e9 --- /dev/null +++ b/templates/ice-design/blocks/SuccessDialog/src/SuccessDialog.jsx @@ -0,0 +1,46 @@ +'use strict'; + +import React, { Component } from 'react'; +import PropTypes from 'prop-types'; +import { Dialog } from '@icedesign/base'; +import './SuccessDialog.scss'; + +import CreateFuncDialog from './CreateFuncDialog'; + +class SuccessDialog extends Component { + static displayName = 'SuccessDialog'; + + constructor(props) { + super(props); + this.state = { + visible: props.visible + }; + } + + render() { + return ( + +
    + +

    我们将在5-7个工作日内完成审核,请耐心等待

    +
    +
    + ); + } +} + +const styles = {"dialog":{"width":"640px"},"dialogContent":{"height":"200px","display":"flex","flexDirection":"column","alignItems":"center"},"icon":{"width":"52px","height":"52px","marginTop":"46px","marginBottom":"10px"},"text":{"fontSize":"16px;"},"successDialog":{}} + +export default CreateFuncDialog(SuccessDialog); diff --git a/templates/ice-design/blocks/SuccessDialog/src/SuccessDialog.scss b/templates/ice-design/blocks/SuccessDialog/src/SuccessDialog.scss new file mode 100644 index 0000000000..d30d268d97 --- /dev/null +++ b/templates/ice-design/blocks/SuccessDialog/src/SuccessDialog.scss @@ -0,0 +1,4 @@ +@charset "UTF-8"; + +.success-dialog { +} diff --git a/templates/ice-design/blocks/SuccessDialog/src/index.js b/templates/ice-design/blocks/SuccessDialog/src/index.js new file mode 100644 index 0000000000..c993e2431f --- /dev/null +++ b/templates/ice-design/blocks/SuccessDialog/src/index.js @@ -0,0 +1,3 @@ +import SuccessDialog from './SuccessDialog'; + +export default SuccessDialog; diff --git a/templates/ice-design/blocks/SystemNoticeList/.editorconfig b/templates/ice-design/blocks/SystemNoticeList/.editorconfig new file mode 100644 index 0000000000..22ef5ace54 --- /dev/null +++ b/templates/ice-design/blocks/SystemNoticeList/.editorconfig @@ -0,0 +1,16 @@ +# http://editorconfig.org +root = true + +[*] +indent_style = space +indent_size = 2 +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false + +[makefile] +indent_style = tab +indent_size = 4 diff --git a/templates/ice-design/blocks/SystemNoticeList/.eslintignore b/templates/ice-design/blocks/SystemNoticeList/.eslintignore new file mode 100644 index 0000000000..3b21308fc7 --- /dev/null +++ b/templates/ice-design/blocks/SystemNoticeList/.eslintignore @@ -0,0 +1,12 @@ +# 忽略目录 +build/ +tests/ +demo/ +lib/ + +# node 覆盖率文件 +coverage/ + +# 忽略文件 +**/*-min.js +**/*.min.js \ No newline at end of file diff --git a/templates/ice-design/blocks/SystemNoticeList/.eslintrc b/templates/ice-design/blocks/SystemNoticeList/.eslintrc new file mode 100644 index 0000000000..7a4e5bac48 --- /dev/null +++ b/templates/ice-design/blocks/SystemNoticeList/.eslintrc @@ -0,0 +1,62 @@ +{ + "root": true, + "parser": "babel-eslint", + "extends": "eslint-config-airbnb", + "parserOptions": { + "ecmaVersion": 6, + "ecmaFeatures": { + "jsx": true, + "experimentalObjectRestSpread": true + } + }, + "env": { + "browser": true + }, + "plugins": [ + "react", + "babel" + ], + "rules": { + "react/forbid-prop-types": 0, + "jsx-a11y/label-has-for": 0, + "jsx-a11y/no-static-element-interactions": 0, + "jsx-a11y/anchor-has-content": 0, + "jsx-a11y/click-events-have-key-events": 0, + "jsx-a11y/anchor-is-valid": 0, + "react/no-array-index-key": 0, + "func-names": 0, + "arrow-body-style": 0, + "no-use-before-define": 0, + "react/sort-comp": 0, + "react/prop-types": 0, + "react/jsx-first-prop-new-line": 0, + "react/jsx-filename-extension": [ + 1, + { + "extensions": [ + ".js", + ".jsx" + ] + } + ], + "import/extensions": 0, + "import/no-unresolved": 0, + "import/no-extraneous-dependencies": 0, + "prefer-destructuring": 0, + "no-param-reassign": 0, + "no-return-assign": 0, + "max-len": 0, + "consistent-return": 0, + "no-redeclare": 0, + "react/require-extension": 0, + "react/no-danger": 0, + "comma-dangle": [ + "error", + "always-multiline" + ], + "function-paren-newline": 0, + "object-curly-newline": 0, + "no-restricted-globals": 0, + "react/prefer-stateless-function": 0 + } +} diff --git a/templates/ice-design/blocks/SystemNoticeList/.gitignore b/templates/ice-design/blocks/SystemNoticeList/.gitignore new file mode 100644 index 0000000000..cc45d6fb3c --- /dev/null +++ b/templates/ice-design/blocks/SystemNoticeList/.gitignore @@ -0,0 +1,13 @@ + +*.swp +*.dia~ +.idea/ +.DS_Store + +npm-debug.log +yarn-error.log +node_modules/ +tmp/ + +# happypack 缓存 +.happypack diff --git a/templates/ice-design/blocks/SystemNoticeList/README.md b/templates/ice-design/blocks/SystemNoticeList/README.md new file mode 100644 index 0000000000..b0863ec3f5 --- /dev/null +++ b/templates/ice-design/blocks/SystemNoticeList/README.md @@ -0,0 +1,10 @@ +# system-notice-list + +简介:系统消息列表 + +![截图](https://img.alicdn.com/tfs/TB1Xz9cf5qAXuNjy1XdXXaYcVXa-1904-638.png) + +## 更多 + +* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) +* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) diff --git a/templates/ice-design/blocks/SystemNoticeList/demo/index.html b/templates/ice-design/blocks/SystemNoticeList/demo/index.html new file mode 100644 index 0000000000..9d2d3a663d --- /dev/null +++ b/templates/ice-design/blocks/SystemNoticeList/demo/index.html @@ -0,0 +1,19 @@ + + + + + + + + Document + + + + +
    + + + + + + diff --git a/templates/ice-design/blocks/SystemNoticeList/demo/index.js b/templates/ice-design/blocks/SystemNoticeList/demo/index.js new file mode 100644 index 0000000000..4d6acd389a --- /dev/null +++ b/templates/ice-design/blocks/SystemNoticeList/demo/index.js @@ -0,0 +1,19 @@ +import React, { Component } from 'react'; +import { render } from 'react-dom'; + +// 载入默认全局样式 normalize 、.clearfix 和一些 mixin 方法等 +import '@icedesign/base/lib/_components/@alife/next-core/lib/index.scss'; + +import DemoLayout from '@icedesign/demo-layout'; +import Block from '../src'; + +const props = { + // ... +}; + +render( + + + , + document.querySelector('#mountNode') +); diff --git a/templates/ice-design/blocks/SystemNoticeList/mock/api.json b/templates/ice-design/blocks/SystemNoticeList/mock/api.json new file mode 100644 index 0000000000..e706430232 --- /dev/null +++ b/templates/ice-design/blocks/SystemNoticeList/mock/api.json @@ -0,0 +1,4 @@ +{ + "status": "success", + "data": {} +} diff --git a/templates/ice-design/blocks/SystemNoticeList/package.json b/templates/ice-design/blocks/SystemNoticeList/package.json new file mode 100644 index 0000000000..4db9e78c20 --- /dev/null +++ b/templates/ice-design/blocks/SystemNoticeList/package.json @@ -0,0 +1,52 @@ +{ + "name": "@icedesign/system-notice-list-block", + "version": "0.1.0", + "description": "", + "main": "lib/index.js", + "files": [ + "src/", + "demo/", + "lib/", + "mock/" + ], + "author": { + "name": "ICE Team", + "email": "ice-admin@alibaba-inc.com" + }, + "repository": { + "type": "git", + "url": "https://github.com/alibaba/ice" + }, + "license": "MIT", + "keywords": [ + "ice", + "ice-block" + ], + "dependencies": { + "prop-types": "^15.5.8", + "@icedesign/base": "^0.1.0", + "@icedesign/card": "^0.1.0" + }, + "devDependencies": { + "babel-eslint": "^8.0.3", + "eslint": "^4.13.1", + "eslint-plugin-babel": "^4.1.1", + "eslint-plugin-react": "^7.5.1", + "@icedesign/demo-layout": "^0.1.0", + "eslint-plugin-import": "^2.8.0", + "eslint-config-airbnb": "^16.1.0", + "eslint-plugin-jsx-a11y": "^6.0.3", + "@icedesign/skin": "^0.1.2" + }, + "blockConfig": { + "name": "system-notice-list", + "description": "系统消息列表", + "chinese": "系统消息列表", + "category": "list", + "snapshot": "https://img.alicdn.com/tfs/TB1Xz9cf5qAXuNjy1XdXXaYcVXa-1904-638.png", + "sketchURL": "", + "icelandURL": "", + "themePackage": "@icedesign/skin" + }, + "scripts": {} +} diff --git a/templates/ice-design/blocks/SystemNoticeList/src/SystemNoticeList.jsx b/templates/ice-design/blocks/SystemNoticeList/src/SystemNoticeList.jsx new file mode 100644 index 0000000000..739cdf473a --- /dev/null +++ b/templates/ice-design/blocks/SystemNoticeList/src/SystemNoticeList.jsx @@ -0,0 +1,132 @@ +'use strict'; + +import React, { Component } from 'react'; +import IceCard from '@icedesign/card'; +import { Pagination } from '@icedesign/base'; +import './SystemNoticeList.scss'; + +const dataSource = [ + { + title: '关于淘宝网存储设备商品发布规范的公告', + tag: 'up', + href: '', + time: '2017-11-29' + }, + { + title: '加强淘宝网电动四轮车类目准入的公告', + tag: 'new', + href: '', + time: '2017-10-29' + }, + { + title: '淘宝网VR头盔商品发布规范的公告', + tag: 'hot', + href: '', + time: '2017-03-11' + }, + { + title: '加强淘宝网农药类目准入的公告', + tag: '', + href: '', + time: '2017-02-16' + }, + { + title: '淘宝网2017年春节发货时间及交易超时调整公告', + tag: '', + href: '', + time: '2017-11-23' + } +]; + +const dict = { + up: '置顶', + hot: '新', + new: '热' +}; + +export default class SystemNoticeList extends Component { + static displayName = 'SystemNoticeList'; + + constructor(props) { + super(props); + this.state = { + current: 2 + }; + } + + handleChange = current => { + console.log('current:', current); + this.setState({ current }); + }; + + render() { + return ( +
    + +
    +

    系统公告

    +
      + {dataSource.map((item, index) => { + return ( +
    • + + {item.title} + + {item.tag && ( + + {dict[item.tag]} + + )} + {item.time} +
    • + ); + })} +
    +
    +
    + +
    +
    +
    + ); + } +} + +const styles = { + title: { + margin: '0', + fontSize: '16px' + }, + noticeList: { + margin: 0, + padding: 0 + }, + noticeItem: { + position: 'relative', + padding: '12px 0', + listStyle: 'none', + borderBottom: '1px solid #F4F4F4' + }, + noticeTitle: { + fontSize: '14px', + color: '#333', + textDecoration: 'none' + }, + noticeTag: { + fontSize: '12px', + padding: '2px 6px', + borderRadius: '8px', + marginLeft: '5px' + }, + noticeTime: { + position: 'absolute', + right: '0', + top: '15px', + fontSize: '12px', + color: '#999' + } +}; diff --git a/templates/ice-design/blocks/SystemNoticeList/src/SystemNoticeList.scss b/templates/ice-design/blocks/SystemNoticeList/src/SystemNoticeList.scss new file mode 100644 index 0000000000..2e3bfe2deb --- /dev/null +++ b/templates/ice-design/blocks/SystemNoticeList/src/SystemNoticeList.scss @@ -0,0 +1,16 @@ +@charset "UTF-8"; + +.system-notice-list { + .up { + color: #4296ff; + background: #eff6ff; + } + .new { + color: #fca61c; + background: #fff4e2; + } + .hot { + color: #f86d6d; + background: #ffe8e8; + } +} diff --git a/templates/ice-design/blocks/SystemNoticeList/src/index.js b/templates/ice-design/blocks/SystemNoticeList/src/index.js new file mode 100644 index 0000000000..13d466ae7e --- /dev/null +++ b/templates/ice-design/blocks/SystemNoticeList/src/index.js @@ -0,0 +1,3 @@ +import SystemNoticeList from './SystemNoticeList'; + +export default SystemNoticeList; diff --git a/templates/ice-design/blocks/TabArticle/.editorconfig b/templates/ice-design/blocks/TabArticle/.editorconfig new file mode 100644 index 0000000000..22ef5ace54 --- /dev/null +++ b/templates/ice-design/blocks/TabArticle/.editorconfig @@ -0,0 +1,16 @@ +# http://editorconfig.org +root = true + +[*] +indent_style = space +indent_size = 2 +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false + +[makefile] +indent_style = tab +indent_size = 4 diff --git a/templates/ice-design/blocks/TabArticle/.eslintignore b/templates/ice-design/blocks/TabArticle/.eslintignore new file mode 100644 index 0000000000..3b21308fc7 --- /dev/null +++ b/templates/ice-design/blocks/TabArticle/.eslintignore @@ -0,0 +1,12 @@ +# 忽略目录 +build/ +tests/ +demo/ +lib/ + +# node 覆盖率文件 +coverage/ + +# 忽略文件 +**/*-min.js +**/*.min.js \ No newline at end of file diff --git a/templates/ice-design/blocks/TabArticle/.eslintrc b/templates/ice-design/blocks/TabArticle/.eslintrc new file mode 100644 index 0000000000..7a4e5bac48 --- /dev/null +++ b/templates/ice-design/blocks/TabArticle/.eslintrc @@ -0,0 +1,62 @@ +{ + "root": true, + "parser": "babel-eslint", + "extends": "eslint-config-airbnb", + "parserOptions": { + "ecmaVersion": 6, + "ecmaFeatures": { + "jsx": true, + "experimentalObjectRestSpread": true + } + }, + "env": { + "browser": true + }, + "plugins": [ + "react", + "babel" + ], + "rules": { + "react/forbid-prop-types": 0, + "jsx-a11y/label-has-for": 0, + "jsx-a11y/no-static-element-interactions": 0, + "jsx-a11y/anchor-has-content": 0, + "jsx-a11y/click-events-have-key-events": 0, + "jsx-a11y/anchor-is-valid": 0, + "react/no-array-index-key": 0, + "func-names": 0, + "arrow-body-style": 0, + "no-use-before-define": 0, + "react/sort-comp": 0, + "react/prop-types": 0, + "react/jsx-first-prop-new-line": 0, + "react/jsx-filename-extension": [ + 1, + { + "extensions": [ + ".js", + ".jsx" + ] + } + ], + "import/extensions": 0, + "import/no-unresolved": 0, + "import/no-extraneous-dependencies": 0, + "prefer-destructuring": 0, + "no-param-reassign": 0, + "no-return-assign": 0, + "max-len": 0, + "consistent-return": 0, + "no-redeclare": 0, + "react/require-extension": 0, + "react/no-danger": 0, + "comma-dangle": [ + "error", + "always-multiline" + ], + "function-paren-newline": 0, + "object-curly-newline": 0, + "no-restricted-globals": 0, + "react/prefer-stateless-function": 0 + } +} diff --git a/templates/ice-design/blocks/TabArticle/.gitignore b/templates/ice-design/blocks/TabArticle/.gitignore new file mode 100644 index 0000000000..5945feea3c --- /dev/null +++ b/templates/ice-design/blocks/TabArticle/.gitignore @@ -0,0 +1,14 @@ + + *.swp + *.dia~ + .idea/ + .DS_Store + + npm-debug.log + yarn-error.log + node_modules/ + tmp/ + + # happypack 缓存 + .happypack + \ No newline at end of file diff --git a/templates/ice-design/blocks/TabArticle/README.md b/templates/ice-design/blocks/TabArticle/README.md new file mode 100644 index 0000000000..019e8fb3a9 --- /dev/null +++ b/templates/ice-design/blocks/TabArticle/README.md @@ -0,0 +1,12 @@ +# tab-article + +简介:tab和文章列表组合 + +tab和文章列表组合 + +![截图](https://gw.alicdn.com/tfs/TB18xpkivDH8KJjy1XcXXcpdXXa-1706-1516.png) + +## 更多 + +* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) +* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) diff --git a/templates/ice-design/blocks/TabArticle/demo/index.html b/templates/ice-design/blocks/TabArticle/demo/index.html new file mode 100644 index 0000000000..9d2d3a663d --- /dev/null +++ b/templates/ice-design/blocks/TabArticle/demo/index.html @@ -0,0 +1,19 @@ + + + + + + + + Document + + + + +
    + + + + + + diff --git a/templates/ice-design/blocks/TabArticle/demo/index.js b/templates/ice-design/blocks/TabArticle/demo/index.js new file mode 100644 index 0000000000..178a766115 --- /dev/null +++ b/templates/ice-design/blocks/TabArticle/demo/index.js @@ -0,0 +1,19 @@ +import React, {Component} from 'react'; +import {render} from 'react-dom'; + +// 载入默认全局样式 normalize 、.clearfix 和一些 mixin 方法等 +import '@icedesign/base/lib/_components/@alife/next-core/lib/index.scss'; + +import DemoLayout from '@icedesign/demo-layout'; +import Block from '../src'; + +const props = { + // ... +}; + +render( + + + , + document.querySelector('#mountNode') +); diff --git a/templates/ice-design/blocks/TabArticle/mock/api.json b/templates/ice-design/blocks/TabArticle/mock/api.json new file mode 100644 index 0000000000..e706430232 --- /dev/null +++ b/templates/ice-design/blocks/TabArticle/mock/api.json @@ -0,0 +1,4 @@ +{ + "status": "success", + "data": {} +} diff --git a/templates/ice-design/blocks/TabArticle/package.json b/templates/ice-design/blocks/TabArticle/package.json new file mode 100644 index 0000000000..d6975e6d3b --- /dev/null +++ b/templates/ice-design/blocks/TabArticle/package.json @@ -0,0 +1,54 @@ +{ + "name": "@icedesign/tab-article-block", + "version": "0.1.0", + "description": "tab和文章列表组合", + "files": [ + "src/", + "demo/", + "lib/", + "mock/" + ], + "author": { + "name": "ICE Team", + "email": "ice-admin@alibaba-inc.com" + }, + "repository": { + "type": "git", + "url": "https://github.com/alibaba/ice" + }, + "license": "MIT", + "keywords": [ + "ice", + "ice-block" + ], + "dependencies": { + "prop-types": "^15.5.8", + "@icedesign/base": "^0.1.0", + "@icedesign/card": "^0.1.0" + }, + "devDependencies": { + "babel-eslint": "^8.0.3", + "eslint": "^4.13.1", + "eslint-plugin-babel": "^4.1.1", + "eslint-plugin-react": "^7.5.1", + "@icedesign/demo-layout": "^0.1.0", + "eslint-plugin-import": "^2.8.0", + "eslint-config-airbnb": "^16.1.0", + "eslint-plugin-jsx-a11y": "^6.0.3", + "@icedesign/skin": "^0.1.2" + }, + "blockConfig": { + "name": "tab-article", + "description": "tab和文章列表组合", + "chinese": "tab和文章列表组合", + "category": "list", + "snapshot": "https://gw.alicdn.com/tfs/TB18xpkivDH8KJjy1XcXXcpdXXa-1706-1516.png", + "sketchURL": "", + "icelandURL": "", + "themePackage": "@icedesign/skin" + }, + "scripts": { + "lint": "eslint . --ext '.js,.jsx' --fix", + "prepublish": "npm run lint" + } +} diff --git a/templates/ice-design/blocks/TabArticle/src/ArticleList/ArticleList.jsx b/templates/ice-design/blocks/TabArticle/src/ArticleList/ArticleList.jsx new file mode 100644 index 0000000000..8c7b381524 --- /dev/null +++ b/templates/ice-design/blocks/TabArticle/src/ArticleList/ArticleList.jsx @@ -0,0 +1,114 @@ +import React, { Component } from 'react'; +import IceCard from '@icedesign/card'; +import { Pagination, Button } from '@icedesign/base'; +import './ArticleList.scss'; + +export default class ArticleList extends Component { + static displayName = 'ArticleList'; + + constructor(props) { + super(props); + this.state = {}; + } + + handleTagClick = () => { + // handler + }; + + renderTag = (text, onClick, idx) => { + return ( + + ); + }; + + renderItem = (data, idx) => { + const wrapperStyle = { ...styles.item }; + const informationStyle = { ...styles.information }; + return ( +
    +
    + {data.title} + {data.datetime} +
    +
    {data.description}
    +
    +
    + {data.tags.map((item) => { + return this.renderTag( + item, + this.handleTagClick.bind(this, idx, item), + idx + ); + })} +
    +
    + 点赞: {data.star} + 喜爱: {data.like} + 评论: {data.comment} +
    +
    +
    + ); + }; + + render() { + const { dataSource = [] } = this.props; + return ( + + {dataSource.map(this.renderItem)} +
    + +
    +
    + ); + } +} + +const styles = { + item: { + borderBottom: '1px solid #F4F4F4', + marginBottom: '15px', + }, + title: { + color: '#333', + fontSize: '16px', + marginBottom: '15px', + position: 'relative', + }, + datetime: { + position: 'absolute', + right: '10px', + fontSize: '12px', + color: '#9B9B9B', + }, + desc: { + color: '#999', + fontSize: '14px', + paddingBottom: '15px', + }, + information: { + display: 'flex', + flexDirection: 'row', + justifyContent: 'space-between', + marginBottom: '15px', + }, + button: { + marginRight: '10px', + }, + operator: { + paddingTop: '8px', + fontSize: '12px', + color: '#9B9B9B', + }, + operatorItem: { + marginRight: '5px', + }, + paginationWrap: { + display: 'flex', + flexDirection: 'row', + justifyContent: 'flex-end', + marginTop: '15px', + }, +}; diff --git a/templates/ice-design/blocks/TabArticle/src/ArticleList/ArticleList.scss b/templates/ice-design/blocks/TabArticle/src/ArticleList/ArticleList.scss new file mode 100644 index 0000000000..20e67a3b1e --- /dev/null +++ b/templates/ice-design/blocks/TabArticle/src/ArticleList/ArticleList.scss @@ -0,0 +1,5 @@ +@charset "UTF-8"; + +.article-list { + +} diff --git a/templates/ice-design/blocks/TabArticle/src/ArticleList/index.js b/templates/ice-design/blocks/TabArticle/src/ArticleList/index.js new file mode 100644 index 0000000000..86716f32ff --- /dev/null +++ b/templates/ice-design/blocks/TabArticle/src/ArticleList/index.js @@ -0,0 +1,3 @@ +import ArticleList from './ArticleList'; + +export default ArticleList; diff --git a/templates/ice-design/blocks/TabArticle/src/TabArticle.jsx b/templates/ice-design/blocks/TabArticle/src/TabArticle.jsx new file mode 100644 index 0000000000..34d7e583d5 --- /dev/null +++ b/templates/ice-design/blocks/TabArticle/src/TabArticle.jsx @@ -0,0 +1,118 @@ +import React, { Component } from 'react'; +import IceCard from '@icedesign/card'; +import ArticleList from './ArticleList'; +import './TabArticle.scss'; + +const dataSource = [ + { + title: '越夏越嗨皮-7月官方营销活动-技能提升方向', + description: + '商家通过V任务选择主播并达成合作,费用按照商品链接计算,一个商品为一个价格,建议主播在一场直播里最多接60个商品,并提供不少于两个小时的直播服务,每个商品讲解时间不少于5分钟。 ', + tags: ['直播', '大促', '简介'], + datetime: '2017年12月12日 18:00', + star: 130, + like: 233, + comment: 123, + }, + { + title: '越夏越嗨皮-7月官方营销活动-技能提升方向', + description: + '商家通过V任务选择主播并达成合作,费用按照商品链接计算,一个商品为一个价格,建议主播在一场直播里最多接60个商品,并提供不少于两个小时的直播服务,每个商品讲解时间不少于5分钟。 ', + tags: ['直播', '大促', '简介'], + datetime: '2017年12月12日 18:00', + star: 130, + like: 233, + comment: 123, + }, + { + title: '越夏越嗨皮-7月官方营销活动-技能提升方向', + description: + '商家通过V任务选择主播并达成合作,费用按照商品链接计算,一个商品为一个价格,建议主播在一场直播里最多接60个商品,并提供不少于两个小时的直播服务,每个商品讲解时间不少于5分钟。 ', + tags: ['直播', '大促', '简介'], + datetime: '2017年12月12日 18:00', + star: 130, + like: 233, + comment: 123, + }, + { + title: '越夏越嗨皮-7月官方营销活动-技能提升方向', + description: + '商家通过V任务选择主播并达成合作,费用按照商品链接计算,一个商品为一个价格,建议主播在一场直播里最多接60个商品,并提供不少于两个小时的直播服务,每个商品讲解时间不少于5分钟。 ', + tags: ['直播', '大促', '简介'], + datetime: '2017年12月12日 18:00', + star: 130, + like: 233, + comment: 123, + }, + { + title: '越夏越嗨皮-7月官方营销活动-技能提升方向', + description: + '商家通过V任务选择主播并达成合作,费用按照商品链接计算,一个商品为一个价格,建议主播在一场直播里最多接60个商品,并提供不少于两个小时的直播服务,每个商品讲解时间不少于5分钟。 ', + tags: ['直播', '大促', '简介'], + datetime: '2017年12月12日 18:00', + star: 130, + like: 233, + comment: 123, + }, +]; + +const ICON = { + active: 'https://gw.alicdn.com/tfs/TB1bQQ4ihrI8KJjy0FpXXb5hVXa-20-24.png', + inactive: 'https://gw.alicdn.com/tfs/TB1PwspilfH8KJjy1XbXXbLdXXa-20-24.png', +}; + +export default class TabArticle extends Component { + static displayName = 'TabArticle'; + + constructor(props) { + super(props); + this.state = {}; + } + + render() { + return ( +
    + +
    + 最新 最新 +
    +
    + 最热 最热 +
    +
    + 距离截稿日期最近{' '} + 距离截稿日期最近 +
    +
    + +
    + ); + } +} + +const styles = { + tabList: { + display: 'flex', + flexDirection: 'row', + }, + icon: { + width: '10px', + height: '12px', + }, + tab: { + cursor: 'pointer', + marginRight: '15px', + }, + tabActive: { + color: '#3080FE', + }, +}; diff --git a/templates/ice-design/blocks/TabArticle/src/TabArticle.scss b/templates/ice-design/blocks/TabArticle/src/TabArticle.scss new file mode 100644 index 0000000000..fcac3d19b5 --- /dev/null +++ b/templates/ice-design/blocks/TabArticle/src/TabArticle.scss @@ -0,0 +1,5 @@ +@charset "UTF-8"; + +.tab-article { + +} diff --git a/templates/ice-design/blocks/TabArticle/src/index.js b/templates/ice-design/blocks/TabArticle/src/index.js new file mode 100644 index 0000000000..e5c1ed2362 --- /dev/null +++ b/templates/ice-design/blocks/TabArticle/src/index.js @@ -0,0 +1,3 @@ +import TabArticle from './TabArticle'; + +export default TabArticle; diff --git a/templates/ice-design/blocks/TabDialog/.editorconfig b/templates/ice-design/blocks/TabDialog/.editorconfig new file mode 100644 index 0000000000..22ef5ace54 --- /dev/null +++ b/templates/ice-design/blocks/TabDialog/.editorconfig @@ -0,0 +1,16 @@ +# http://editorconfig.org +root = true + +[*] +indent_style = space +indent_size = 2 +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false + +[makefile] +indent_style = tab +indent_size = 4 diff --git a/templates/ice-design/blocks/TabDialog/.eslintignore b/templates/ice-design/blocks/TabDialog/.eslintignore new file mode 100644 index 0000000000..3b21308fc7 --- /dev/null +++ b/templates/ice-design/blocks/TabDialog/.eslintignore @@ -0,0 +1,12 @@ +# 忽略目录 +build/ +tests/ +demo/ +lib/ + +# node 覆盖率文件 +coverage/ + +# 忽略文件 +**/*-min.js +**/*.min.js \ No newline at end of file diff --git a/templates/ice-design/blocks/TabDialog/.eslintrc b/templates/ice-design/blocks/TabDialog/.eslintrc new file mode 100644 index 0000000000..7a4e5bac48 --- /dev/null +++ b/templates/ice-design/blocks/TabDialog/.eslintrc @@ -0,0 +1,62 @@ +{ + "root": true, + "parser": "babel-eslint", + "extends": "eslint-config-airbnb", + "parserOptions": { + "ecmaVersion": 6, + "ecmaFeatures": { + "jsx": true, + "experimentalObjectRestSpread": true + } + }, + "env": { + "browser": true + }, + "plugins": [ + "react", + "babel" + ], + "rules": { + "react/forbid-prop-types": 0, + "jsx-a11y/label-has-for": 0, + "jsx-a11y/no-static-element-interactions": 0, + "jsx-a11y/anchor-has-content": 0, + "jsx-a11y/click-events-have-key-events": 0, + "jsx-a11y/anchor-is-valid": 0, + "react/no-array-index-key": 0, + "func-names": 0, + "arrow-body-style": 0, + "no-use-before-define": 0, + "react/sort-comp": 0, + "react/prop-types": 0, + "react/jsx-first-prop-new-line": 0, + "react/jsx-filename-extension": [ + 1, + { + "extensions": [ + ".js", + ".jsx" + ] + } + ], + "import/extensions": 0, + "import/no-unresolved": 0, + "import/no-extraneous-dependencies": 0, + "prefer-destructuring": 0, + "no-param-reassign": 0, + "no-return-assign": 0, + "max-len": 0, + "consistent-return": 0, + "no-redeclare": 0, + "react/require-extension": 0, + "react/no-danger": 0, + "comma-dangle": [ + "error", + "always-multiline" + ], + "function-paren-newline": 0, + "object-curly-newline": 0, + "no-restricted-globals": 0, + "react/prefer-stateless-function": 0 + } +} diff --git a/templates/ice-design/blocks/TabDialog/.gitignore b/templates/ice-design/blocks/TabDialog/.gitignore new file mode 100644 index 0000000000..5945feea3c --- /dev/null +++ b/templates/ice-design/blocks/TabDialog/.gitignore @@ -0,0 +1,14 @@ + + *.swp + *.dia~ + .idea/ + .DS_Store + + npm-debug.log + yarn-error.log + node_modules/ + tmp/ + + # happypack 缓存 + .happypack + \ No newline at end of file diff --git a/templates/ice-design/blocks/TabDialog/README.md b/templates/ice-design/blocks/TabDialog/README.md new file mode 100644 index 0000000000..4caa8e061b --- /dev/null +++ b/templates/ice-design/blocks/TabDialog/README.md @@ -0,0 +1,12 @@ +# tab-dialog + +简介:标签内容弹窗 + +标签内容弹窗 + +![截图](https://img.alicdn.com/tfs/TB19AF4gOqAXuNjy1XdXXaYcVXa-1262-812.png) + +## 更多 + +* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) +* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) diff --git a/templates/ice-design/blocks/TabDialog/demo/index.html b/templates/ice-design/blocks/TabDialog/demo/index.html new file mode 100644 index 0000000000..9d2d3a663d --- /dev/null +++ b/templates/ice-design/blocks/TabDialog/demo/index.html @@ -0,0 +1,19 @@ + + + + + + + + Document + + + + +
    + + + + + + diff --git a/templates/ice-design/blocks/TabDialog/demo/index.js b/templates/ice-design/blocks/TabDialog/demo/index.js new file mode 100644 index 0000000000..14a162dccd --- /dev/null +++ b/templates/ice-design/blocks/TabDialog/demo/index.js @@ -0,0 +1,33 @@ +import React, { Component } from 'react'; +import { render } from 'react-dom'; + +// 载入默认全局样式 normalize 、.clearfix 和一些 mixin 方法等 +import '@icedesign/base/lib/_components/@alife/next-core/lib/index.scss'; + +import DemoLayout from '@icedesign/demo-layout'; +import Block from '../src'; + +Block.show({ + onClose: () => { + Block.hide(); + }, + onCancel: () => { + Block.hide(); + }, + onOk: selectedItems => { + console.log('selectedItems', selectedItems); + Block.hide(); + }, + selectedItems: ['231'] +}); + +const props = { + // ... +}; + +render( + +
    + , + document.querySelector('#mountNode') +); diff --git a/templates/ice-design/blocks/TabDialog/mock/api.json b/templates/ice-design/blocks/TabDialog/mock/api.json new file mode 100644 index 0000000000..e706430232 --- /dev/null +++ b/templates/ice-design/blocks/TabDialog/mock/api.json @@ -0,0 +1,4 @@ +{ + "status": "success", + "data": {} +} diff --git a/templates/ice-design/blocks/TabDialog/package.json b/templates/ice-design/blocks/TabDialog/package.json new file mode 100644 index 0000000000..22dbbce55b --- /dev/null +++ b/templates/ice-design/blocks/TabDialog/package.json @@ -0,0 +1,54 @@ +{ + "name": "@icedesign/tab-dialog-block", + "version": "0.1.0", + "description": "标签内容弹窗", + "files": [ + "src/", + "demo/", + "lib/", + "mock/" + ], + "author": { + "name": "ICE Team", + "email": "ice-admin@alibaba-inc.com" + }, + "repository": { + "type": "git", + "url": "https://github.com/alibaba/ice" + }, + "license": "MIT", + "keywords": [ + "ice", + "ice-block" + ], + "dependencies": { + "prop-types": "^15.5.8", + "@icedesign/base": "^0.1.0", + "@icedesign/card": "^0.1.0" + }, + "devDependencies": { + "babel-eslint": "^8.0.3", + "eslint": "^4.13.1", + "eslint-plugin-babel": "^4.1.1", + "eslint-plugin-react": "^7.5.1", + "@icedesign/demo-layout": "^0.1.0", + "eslint-plugin-import": "^2.8.0", + "eslint-config-airbnb": "^16.1.0", + "eslint-plugin-jsx-a11y": "^6.0.3", + "@icedesign/skin": "^0.1.2" + }, + "blockConfig": { + "name": "tab-dialog", + "description": "标签内容弹窗", + "chinese": "标签内容弹窗", + "category": "modal", + "snapshot": "https://img.alicdn.com/tfs/TB19AF4gOqAXuNjy1XdXXaYcVXa-1262-812.png", + "sketchURL": "", + "icelandURL": "", + "themePackage": "@icedesign/skin" + }, + "scripts": { + "lint": "eslint . --ext '.js,.jsx' --fix", + "prepublish": "npm run lint" + } +} diff --git a/templates/ice-design/blocks/TabDialog/src/CreateFuncDialog.js b/templates/ice-design/blocks/TabDialog/src/CreateFuncDialog.js new file mode 100644 index 0000000000..f091d06e3f --- /dev/null +++ b/templates/ice-design/blocks/TabDialog/src/CreateFuncDialog.js @@ -0,0 +1,46 @@ + + +import React from 'react'; +import ReactDOM from 'react-dom'; + +// 包装 Dialog 类组件,使其支持 show、hide 这种命令式调用 +const CreateFuncDialog = (WrapperElement) => { + let instance = null; + let container = null; + + return { + // 创建并打开一个弹窗,并传入初始化的 props + show: (props) => { + // 如果已经有实例打开了,则不会继续打开 + if (instance) { + return; + } + + container = document.createElement('div'); + document.body.appendChild(container); + instance = ReactDOM.render( + , + container + ); + }, + // 隐藏并销毁弹窗 + hide: () => { + if (instance) { + instance.setState( + { + visible: false, + }, + () => { + setTimeout(() => { + ReactDOM.unmountComponentAtNode(container); + instance = null; + container.parentNode.removeChild(container); + }, 1000); + } + ); + } + }, + }; +}; + +export default CreateFuncDialog; diff --git a/templates/ice-design/blocks/TabDialog/src/TabDialog.jsx b/templates/ice-design/blocks/TabDialog/src/TabDialog.jsx new file mode 100644 index 0000000000..ad545aac85 --- /dev/null +++ b/templates/ice-design/blocks/TabDialog/src/TabDialog.jsx @@ -0,0 +1,140 @@ +/* eslint no-unused-expressions: 0 */ +import React, { Component } from 'react'; +import { Dialog, Tab, Table } from '@icedesign/base'; +import './TabDialog.scss'; +import CreateFuncDialog from './CreateFuncDialog'; + +// 使用方法: +// import TabDialog from '...'; +// TabDialog.show({ +// onClose: () => { +// TabDialog.hide(); +// }, +// onCancel: () => { +// TabDialog.hide(); +// }, +// // 点击确定按钮,可以拿到被选中的值 +// onOk: selectedItems => { +// console.log('selectedItems', selectedItems); +// TabDialog.hide(); +// }, +// // 默认传递 selectedItems 可以回填数据 +// selectedItems: ['231'] +// }); + +const TabPane = Tab.TabPane; + +const mockData = [ + { + title: '十九大后,习近平对中国经济给出8大论断', + id: '1212', + }, + { + title: '中驻美使馆:美《国家安全战略报告》自相矛盾', + id: '231', + }, + { + title: '美发国安战略:坚持"一中政策" 继续对台军售', + id: '2321', + }, + { + title: '又一"港独"组织濒于溃散:召集人潜逃 发言人退伙', + id: '22331', + }, +]; + +class TabDialog extends Component { + static displayName = 'TabDialog'; + + constructor(props) { + super(props); + this.state = { + visible: props.visible, + selectedItems: props.selectedItems || [], + }; + } + + onItemSelect = (selectedItems) => { + this.setState({ + selectedItems, + }); + }; + + onTabChange = () => { + // 清理掉缓存数据 + this.setState({ + selectedItems: [], + }); + }; + + onDialogOk = () => { + this.props.onOk && this.props.onOk(this.state.selectedItems); + }; + + render() { + return ( + +
    + + +
    + + +
    +
    +
    + +
    + + +
    +
    +
    +
    +
    +
    + ); + } +} + +const styles = { + dialog: { + width: '640px', + }, + dialogContent: {}, + tabContentWrapper: { + padding: '20px 0 20px 0', + }, + tabContent: { + display: 'flex', + minHeight: '100px', + fontSize: '20px', + }, +}; + +export default CreateFuncDialog(TabDialog); diff --git a/templates/ice-design/blocks/TabDialog/src/TabDialog.scss b/templates/ice-design/blocks/TabDialog/src/TabDialog.scss new file mode 100644 index 0000000000..4d09994b32 --- /dev/null +++ b/templates/ice-design/blocks/TabDialog/src/TabDialog.scss @@ -0,0 +1,5 @@ +@charset "UTF-8"; + +.tab-dialog { + +} diff --git a/templates/ice-design/blocks/TabDialog/src/index.js b/templates/ice-design/blocks/TabDialog/src/index.js new file mode 100644 index 0000000000..26e78e7a86 --- /dev/null +++ b/templates/ice-design/blocks/TabDialog/src/index.js @@ -0,0 +1,3 @@ +import TabDialog from './TabDialog'; + +export default TabDialog; diff --git a/templates/ice-design/blocks/TagMessageList/.editorconfig b/templates/ice-design/blocks/TagMessageList/.editorconfig new file mode 100644 index 0000000000..22ef5ace54 --- /dev/null +++ b/templates/ice-design/blocks/TagMessageList/.editorconfig @@ -0,0 +1,16 @@ +# http://editorconfig.org +root = true + +[*] +indent_style = space +indent_size = 2 +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false + +[makefile] +indent_style = tab +indent_size = 4 diff --git a/templates/ice-design/blocks/TagMessageList/.eslintignore b/templates/ice-design/blocks/TagMessageList/.eslintignore new file mode 100644 index 0000000000..3b21308fc7 --- /dev/null +++ b/templates/ice-design/blocks/TagMessageList/.eslintignore @@ -0,0 +1,12 @@ +# 忽略目录 +build/ +tests/ +demo/ +lib/ + +# node 覆盖率文件 +coverage/ + +# 忽略文件 +**/*-min.js +**/*.min.js \ No newline at end of file diff --git a/templates/ice-design/blocks/TagMessageList/.eslintrc b/templates/ice-design/blocks/TagMessageList/.eslintrc new file mode 100644 index 0000000000..7a4e5bac48 --- /dev/null +++ b/templates/ice-design/blocks/TagMessageList/.eslintrc @@ -0,0 +1,62 @@ +{ + "root": true, + "parser": "babel-eslint", + "extends": "eslint-config-airbnb", + "parserOptions": { + "ecmaVersion": 6, + "ecmaFeatures": { + "jsx": true, + "experimentalObjectRestSpread": true + } + }, + "env": { + "browser": true + }, + "plugins": [ + "react", + "babel" + ], + "rules": { + "react/forbid-prop-types": 0, + "jsx-a11y/label-has-for": 0, + "jsx-a11y/no-static-element-interactions": 0, + "jsx-a11y/anchor-has-content": 0, + "jsx-a11y/click-events-have-key-events": 0, + "jsx-a11y/anchor-is-valid": 0, + "react/no-array-index-key": 0, + "func-names": 0, + "arrow-body-style": 0, + "no-use-before-define": 0, + "react/sort-comp": 0, + "react/prop-types": 0, + "react/jsx-first-prop-new-line": 0, + "react/jsx-filename-extension": [ + 1, + { + "extensions": [ + ".js", + ".jsx" + ] + } + ], + "import/extensions": 0, + "import/no-unresolved": 0, + "import/no-extraneous-dependencies": 0, + "prefer-destructuring": 0, + "no-param-reassign": 0, + "no-return-assign": 0, + "max-len": 0, + "consistent-return": 0, + "no-redeclare": 0, + "react/require-extension": 0, + "react/no-danger": 0, + "comma-dangle": [ + "error", + "always-multiline" + ], + "function-paren-newline": 0, + "object-curly-newline": 0, + "no-restricted-globals": 0, + "react/prefer-stateless-function": 0 + } +} diff --git a/templates/ice-design/blocks/TagMessageList/.gitignore b/templates/ice-design/blocks/TagMessageList/.gitignore new file mode 100644 index 0000000000..5945feea3c --- /dev/null +++ b/templates/ice-design/blocks/TagMessageList/.gitignore @@ -0,0 +1,14 @@ + + *.swp + *.dia~ + .idea/ + .DS_Store + + npm-debug.log + yarn-error.log + node_modules/ + tmp/ + + # happypack 缓存 + .happypack + \ No newline at end of file diff --git a/templates/ice-design/blocks/TagMessageList/README.md b/templates/ice-design/blocks/TagMessageList/README.md new file mode 100644 index 0000000000..0b845d0156 --- /dev/null +++ b/templates/ice-design/blocks/TagMessageList/README.md @@ -0,0 +1,12 @@ +# tag-message-list + +简介:标签消息列表 + +标签消息列表 + +![截图](https://img.alicdn.com/tfs/TB1VfEejlfH8KJjy1XbXXbLdXXa-846-776.png) + +## 更多 + +* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) +* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) diff --git a/templates/ice-design/blocks/TagMessageList/demo/index.html b/templates/ice-design/blocks/TagMessageList/demo/index.html new file mode 100644 index 0000000000..9d2d3a663d --- /dev/null +++ b/templates/ice-design/blocks/TagMessageList/demo/index.html @@ -0,0 +1,19 @@ + + + + + + + + Document + + + + +
    + + + + + + diff --git a/templates/ice-design/blocks/TagMessageList/demo/index.js b/templates/ice-design/blocks/TagMessageList/demo/index.js new file mode 100644 index 0000000000..178a766115 --- /dev/null +++ b/templates/ice-design/blocks/TagMessageList/demo/index.js @@ -0,0 +1,19 @@ +import React, {Component} from 'react'; +import {render} from 'react-dom'; + +// 载入默认全局样式 normalize 、.clearfix 和一些 mixin 方法等 +import '@icedesign/base/lib/_components/@alife/next-core/lib/index.scss'; + +import DemoLayout from '@icedesign/demo-layout'; +import Block from '../src'; + +const props = { + // ... +}; + +render( + + + , + document.querySelector('#mountNode') +); diff --git a/templates/ice-design/blocks/TagMessageList/mock/api.json b/templates/ice-design/blocks/TagMessageList/mock/api.json new file mode 100644 index 0000000000..e706430232 --- /dev/null +++ b/templates/ice-design/blocks/TagMessageList/mock/api.json @@ -0,0 +1,4 @@ +{ + "status": "success", + "data": {} +} diff --git a/templates/ice-design/blocks/TagMessageList/package.json b/templates/ice-design/blocks/TagMessageList/package.json new file mode 100644 index 0000000000..a4fb8d6740 --- /dev/null +++ b/templates/ice-design/blocks/TagMessageList/package.json @@ -0,0 +1,57 @@ +{ + "name": "@icedesign/tag-message-list-block", + "version": "0.1.0", + "description": "标签消息列表", + "files": [ + "src/", + "demo/", + "lib/", + "mock/" + ], + "scripts": { + "lint": "eslint . --ext '.js,.jsx' --fix", + "prepublish": "npm run lint" + }, + "author": { + "name": "ICE Team", + "email": "ice-admin@alibaba-inc.com" + }, + "repository": { + "type": "git", + "url": "https://github.com/alibaba/ice" + }, + "license": "MIT", + "keywords": [ + "ice", + "ice-block" + ], + "dependencies": { + "@icedesign/base": "^0.1.0", + "prop-types": "^15.5.8", + "@icedesign/card": "^0.1.0" + }, + "devDependencies": { + "@icedesign/skin": "^0.1.2", + "babel-eslint": "^8.0.3", + "eslint-plugin-react": "^7.5.1", + "react": "15.x", + "react-copy-to-clipboard": "^4.2.3", + "react-dom": "15.x", + "eslint": "^4.13.1", + "eslint-plugin-babel": "^4.1.1", + "eslint-plugin-import": "^2.8.0", + "eslint-config-airbnb": "^16.1.0", + "eslint-plugin-jsx-a11y": "^6.0.3", + "@icedesign/demo-layout": "^0.1.0" + }, + "blockConfig": { + "name": "tag-message-list", + "description": "标签消息列表", + "chinese": "标签消息列表", + "category": "list", + "snapshot": "https://img.alicdn.com/tfs/TB1VfEejlfH8KJjy1XbXXbLdXXa-846-776.png", + "sketchURL": "", + "icelandURL": "", + "themePackage": "@icedesign/skin" + } +} diff --git a/templates/ice-design/blocks/TagMessageList/src/TagMessageList.jsx b/templates/ice-design/blocks/TagMessageList/src/TagMessageList.jsx new file mode 100644 index 0000000000..5381891bf4 --- /dev/null +++ b/templates/ice-design/blocks/TagMessageList/src/TagMessageList.jsx @@ -0,0 +1,74 @@ +import React, { Component } from 'react'; +import { Tab } from '@icedesign/base'; +import IceCard from '@icedesign/card'; +import './TagMessageList.scss'; + +const dataSource = [ + { title: '关于淘宝网存储设备商品发布规范的公告', date: '2017/01/06' }, + { title: '加强淘宝网电动四轮车类目准入的公告', date: '2017/01/06' }, + { title: '淘宝网VR头盔商品发布规范的公告', date: '2017/01/06' }, + { title: '加强淘宝网农药类目准入的公告', date: '2017/01/06' }, + { title: '淘宝网2017年春节发货时间及交易超时调整公告', date: '2017/01/06' }, +]; + +export default class TagMessageList extends Component { + static displayName = 'TagMessageList'; + + constructor(props) { + super(props); + this.state = {}; + } + + renderItem = (item, idx) => { + return ( +
    + + {item.title} + +
    {item.date}
    +
    + ); + }; + + render() { + return ( +
    + + + + {dataSource.map(this.renderItem)} + + + + + +
    + ); + } +} + +const styles = { + allMessage: { + height: '50px', + lineHeight: '50px', + textAlign: 'center', + }, + item: { + borderBottom: '1px solid #F4F4F4', + display: 'flex', + flexDirection: 'row', + justifyContent: 'space-between', + + padding: '15px 0', + }, + title: { + fontSize: '14px', + color: '#000', + }, + date: { + fontSize: '12px', + color: '#000', + }, +}; diff --git a/templates/ice-design/blocks/TagMessageList/src/TagMessageList.scss b/templates/ice-design/blocks/TagMessageList/src/TagMessageList.scss new file mode 100644 index 0000000000..a85e135aaf --- /dev/null +++ b/templates/ice-design/blocks/TagMessageList/src/TagMessageList.scss @@ -0,0 +1,11 @@ +@charset "UTF-8"; + +.tag-message-list { + width: 430px; + + .next-tabs .next-tabs-content { + padding-left: 0; + padding-right: 0; + padding-bottom: 0; + } +} diff --git a/templates/ice-design/blocks/TagMessageList/src/index.js b/templates/ice-design/blocks/TagMessageList/src/index.js new file mode 100644 index 0000000000..94485d8421 --- /dev/null +++ b/templates/ice-design/blocks/TagMessageList/src/index.js @@ -0,0 +1,3 @@ +import TagMessageList from './TagMessageList'; + +export default TagMessageList; diff --git a/templates/ice-design/blocks/TeamDisplay/.editorconfig b/templates/ice-design/blocks/TeamDisplay/.editorconfig new file mode 100644 index 0000000000..22ef5ace54 --- /dev/null +++ b/templates/ice-design/blocks/TeamDisplay/.editorconfig @@ -0,0 +1,16 @@ +# http://editorconfig.org +root = true + +[*] +indent_style = space +indent_size = 2 +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false + +[makefile] +indent_style = tab +indent_size = 4 diff --git a/templates/ice-design/blocks/TeamDisplay/.eslintignore b/templates/ice-design/blocks/TeamDisplay/.eslintignore new file mode 100644 index 0000000000..3b21308fc7 --- /dev/null +++ b/templates/ice-design/blocks/TeamDisplay/.eslintignore @@ -0,0 +1,12 @@ +# 忽略目录 +build/ +tests/ +demo/ +lib/ + +# node 覆盖率文件 +coverage/ + +# 忽略文件 +**/*-min.js +**/*.min.js \ No newline at end of file diff --git a/templates/ice-design/blocks/TeamDisplay/.eslintrc b/templates/ice-design/blocks/TeamDisplay/.eslintrc new file mode 100644 index 0000000000..7a4e5bac48 --- /dev/null +++ b/templates/ice-design/blocks/TeamDisplay/.eslintrc @@ -0,0 +1,62 @@ +{ + "root": true, + "parser": "babel-eslint", + "extends": "eslint-config-airbnb", + "parserOptions": { + "ecmaVersion": 6, + "ecmaFeatures": { + "jsx": true, + "experimentalObjectRestSpread": true + } + }, + "env": { + "browser": true + }, + "plugins": [ + "react", + "babel" + ], + "rules": { + "react/forbid-prop-types": 0, + "jsx-a11y/label-has-for": 0, + "jsx-a11y/no-static-element-interactions": 0, + "jsx-a11y/anchor-has-content": 0, + "jsx-a11y/click-events-have-key-events": 0, + "jsx-a11y/anchor-is-valid": 0, + "react/no-array-index-key": 0, + "func-names": 0, + "arrow-body-style": 0, + "no-use-before-define": 0, + "react/sort-comp": 0, + "react/prop-types": 0, + "react/jsx-first-prop-new-line": 0, + "react/jsx-filename-extension": [ + 1, + { + "extensions": [ + ".js", + ".jsx" + ] + } + ], + "import/extensions": 0, + "import/no-unresolved": 0, + "import/no-extraneous-dependencies": 0, + "prefer-destructuring": 0, + "no-param-reassign": 0, + "no-return-assign": 0, + "max-len": 0, + "consistent-return": 0, + "no-redeclare": 0, + "react/require-extension": 0, + "react/no-danger": 0, + "comma-dangle": [ + "error", + "always-multiline" + ], + "function-paren-newline": 0, + "object-curly-newline": 0, + "no-restricted-globals": 0, + "react/prefer-stateless-function": 0 + } +} diff --git a/templates/ice-design/blocks/TeamDisplay/.gitignore b/templates/ice-design/blocks/TeamDisplay/.gitignore new file mode 100644 index 0000000000..5945feea3c --- /dev/null +++ b/templates/ice-design/blocks/TeamDisplay/.gitignore @@ -0,0 +1,14 @@ + + *.swp + *.dia~ + .idea/ + .DS_Store + + npm-debug.log + yarn-error.log + node_modules/ + tmp/ + + # happypack 缓存 + .happypack + \ No newline at end of file diff --git a/templates/ice-design/blocks/TeamDisplay/README.md b/templates/ice-design/blocks/TeamDisplay/README.md new file mode 100644 index 0000000000..011c75febc --- /dev/null +++ b/templates/ice-design/blocks/TeamDisplay/README.md @@ -0,0 +1,10 @@ +# team-display + +简介:团队展示 + +![截图](https://img.alicdn.com/tfs/TB1P1cBi3DD8KJjy0FdXXcjvXXa-1904-1554.png) + +## 更多 + +* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) +* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) diff --git a/templates/ice-design/blocks/TeamDisplay/demo/index.html b/templates/ice-design/blocks/TeamDisplay/demo/index.html new file mode 100644 index 0000000000..9d2d3a663d --- /dev/null +++ b/templates/ice-design/blocks/TeamDisplay/demo/index.html @@ -0,0 +1,19 @@ + + + + + + + + Document + + + + +
    + + + + + + diff --git a/templates/ice-design/blocks/TeamDisplay/demo/index.js b/templates/ice-design/blocks/TeamDisplay/demo/index.js new file mode 100644 index 0000000000..178a766115 --- /dev/null +++ b/templates/ice-design/blocks/TeamDisplay/demo/index.js @@ -0,0 +1,19 @@ +import React, {Component} from 'react'; +import {render} from 'react-dom'; + +// 载入默认全局样式 normalize 、.clearfix 和一些 mixin 方法等 +import '@icedesign/base/lib/_components/@alife/next-core/lib/index.scss'; + +import DemoLayout from '@icedesign/demo-layout'; +import Block from '../src'; + +const props = { + // ... +}; + +render( + + + , + document.querySelector('#mountNode') +); diff --git a/templates/ice-design/blocks/TeamDisplay/mock/api.json b/templates/ice-design/blocks/TeamDisplay/mock/api.json new file mode 100644 index 0000000000..e706430232 --- /dev/null +++ b/templates/ice-design/blocks/TeamDisplay/mock/api.json @@ -0,0 +1,4 @@ +{ + "status": "success", + "data": {} +} diff --git a/templates/ice-design/blocks/TeamDisplay/package.json b/templates/ice-design/blocks/TeamDisplay/package.json new file mode 100644 index 0000000000..7038012296 --- /dev/null +++ b/templates/ice-design/blocks/TeamDisplay/package.json @@ -0,0 +1,54 @@ +{ + "name": "@icedesign/team-display-block", + "version": "0.1.0", + "description": "", + "files": [ + "src/", + "demo/", + "lib/", + "mock/" + ], + "author": { + "name": "ICE Team", + "email": "ice-admin@alibaba-inc.com" + }, + "repository": { + "type": "git", + "url": "https://github.com/alibaba/ice" + }, + "license": "MIT", + "keywords": [ + "ice", + "ice-block" + ], + "dependencies": { + "prop-types": "^15.5.8", + "@icedesign/base": "^0.1.0", + "@icedesign/card": "^0.1.0" + }, + "devDependencies": { + "babel-eslint": "^8.0.3", + "eslint": "^4.13.1", + "eslint-plugin-babel": "^4.1.1", + "eslint-plugin-react": "^7.5.1", + "@icedesign/demo-layout": "^0.1.0", + "eslint-plugin-import": "^2.8.0", + "eslint-config-airbnb": "^16.1.0", + "eslint-plugin-jsx-a11y": "^6.0.3", + "@icedesign/skin": "^0.1.2" + }, + "blockConfig": { + "name": "team-display", + "description": "", + "chinese": "团队展示", + "category": "info-display", + "snapshot": "https://img.alicdn.com/tfs/TB1P1cBi3DD8KJjy0FdXXcjvXXa-1904-1554.png", + "sketchURL": "", + "icelandURL": "", + "themePackage": "@icedesign/skin" + }, + "scripts": { + "lint": "eslint . --ext '.js,.jsx' --fix", + "prepublish": "npm run lint" + } +} diff --git a/templates/ice-design/blocks/TeamDisplay/src/TeamDisplay.jsx b/templates/ice-design/blocks/TeamDisplay/src/TeamDisplay.jsx new file mode 100644 index 0000000000..985ce4a287 --- /dev/null +++ b/templates/ice-design/blocks/TeamDisplay/src/TeamDisplay.jsx @@ -0,0 +1,74 @@ +import React, { Component } from 'react'; +import IceCard from '@icedesign/card'; +import './TeamDisplay.scss'; + +const generatorData = (count) => { + return Array.from({ length: count }).map((item, index) => { + return { + name: `成员${index + 1}`, + description: '描述文案描述文案描述文案描述文案描述文案', + imgUrl: + 'https://img.alicdn.com/tfs/TB1cUfViZrI8KJjy0FhXXbfnpXa-450-456.png', + }; + }); +}; + +export default class TeamDisplay extends Component { + static displayName = 'TeamDisplay'; + + constructor(props) { + super(props); + this.state = {}; + } + + render() { + const data = generatorData(6); + return ( +
    + +

    我们的团队

    +
    + {data.map((item, index) => { + return ( +
    + {item.name} +
    {item.name}
    +

    {item.description}

    +
    + ); + })} +
    +
    +
    + ); + } +} + +const styles = { + title: { + textAlign: 'center', + fontSize: '28px', + }, + items: { + display: 'flex', + flexWrap: 'wrap', + }, + item: { + width: '33%', + padding: '0 40px', + margin: '40px 0', + textAlign: 'center', + }, + name: { + fontWeight: 'bold', + fontSize: '15px', + }, + avatar: { + width: '150px', + height: '150px', + }, +}; diff --git a/templates/ice-design/blocks/TeamDisplay/src/TeamDisplay.scss b/templates/ice-design/blocks/TeamDisplay/src/TeamDisplay.scss new file mode 100644 index 0000000000..b930c69aba --- /dev/null +++ b/templates/ice-design/blocks/TeamDisplay/src/TeamDisplay.scss @@ -0,0 +1,5 @@ +@charset "UTF-8"; + +.team-display { + +} diff --git a/templates/ice-design/blocks/TeamDisplay/src/index.js b/templates/ice-design/blocks/TeamDisplay/src/index.js new file mode 100644 index 0000000000..f425d6cf1e --- /dev/null +++ b/templates/ice-design/blocks/TeamDisplay/src/index.js @@ -0,0 +1,3 @@ +import TeamDisplay from './TeamDisplay'; + +export default TeamDisplay; diff --git a/templates/ice-design/blocks/TermsInfo/.editorconfig b/templates/ice-design/blocks/TermsInfo/.editorconfig new file mode 100644 index 0000000000..22ef5ace54 --- /dev/null +++ b/templates/ice-design/blocks/TermsInfo/.editorconfig @@ -0,0 +1,16 @@ +# http://editorconfig.org +root = true + +[*] +indent_style = space +indent_size = 2 +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false + +[makefile] +indent_style = tab +indent_size = 4 diff --git a/templates/ice-design/blocks/TermsInfo/.eslintignore b/templates/ice-design/blocks/TermsInfo/.eslintignore new file mode 100644 index 0000000000..3b21308fc7 --- /dev/null +++ b/templates/ice-design/blocks/TermsInfo/.eslintignore @@ -0,0 +1,12 @@ +# 忽略目录 +build/ +tests/ +demo/ +lib/ + +# node 覆盖率文件 +coverage/ + +# 忽略文件 +**/*-min.js +**/*.min.js \ No newline at end of file diff --git a/templates/ice-design/blocks/TermsInfo/.eslintrc b/templates/ice-design/blocks/TermsInfo/.eslintrc new file mode 100644 index 0000000000..7a4e5bac48 --- /dev/null +++ b/templates/ice-design/blocks/TermsInfo/.eslintrc @@ -0,0 +1,62 @@ +{ + "root": true, + "parser": "babel-eslint", + "extends": "eslint-config-airbnb", + "parserOptions": { + "ecmaVersion": 6, + "ecmaFeatures": { + "jsx": true, + "experimentalObjectRestSpread": true + } + }, + "env": { + "browser": true + }, + "plugins": [ + "react", + "babel" + ], + "rules": { + "react/forbid-prop-types": 0, + "jsx-a11y/label-has-for": 0, + "jsx-a11y/no-static-element-interactions": 0, + "jsx-a11y/anchor-has-content": 0, + "jsx-a11y/click-events-have-key-events": 0, + "jsx-a11y/anchor-is-valid": 0, + "react/no-array-index-key": 0, + "func-names": 0, + "arrow-body-style": 0, + "no-use-before-define": 0, + "react/sort-comp": 0, + "react/prop-types": 0, + "react/jsx-first-prop-new-line": 0, + "react/jsx-filename-extension": [ + 1, + { + "extensions": [ + ".js", + ".jsx" + ] + } + ], + "import/extensions": 0, + "import/no-unresolved": 0, + "import/no-extraneous-dependencies": 0, + "prefer-destructuring": 0, + "no-param-reassign": 0, + "no-return-assign": 0, + "max-len": 0, + "consistent-return": 0, + "no-redeclare": 0, + "react/require-extension": 0, + "react/no-danger": 0, + "comma-dangle": [ + "error", + "always-multiline" + ], + "function-paren-newline": 0, + "object-curly-newline": 0, + "no-restricted-globals": 0, + "react/prefer-stateless-function": 0 + } +} diff --git a/templates/ice-design/blocks/TermsInfo/.gitignore b/templates/ice-design/blocks/TermsInfo/.gitignore new file mode 100644 index 0000000000..cc45d6fb3c --- /dev/null +++ b/templates/ice-design/blocks/TermsInfo/.gitignore @@ -0,0 +1,13 @@ + +*.swp +*.dia~ +.idea/ +.DS_Store + +npm-debug.log +yarn-error.log +node_modules/ +tmp/ + +# happypack 缓存 +.happypack diff --git a/templates/ice-design/blocks/TermsInfo/README.md b/templates/ice-design/blocks/TermsInfo/README.md new file mode 100644 index 0000000000..b4f30af236 --- /dev/null +++ b/templates/ice-design/blocks/TermsInfo/README.md @@ -0,0 +1,10 @@ +# terms-info + +简介:协议信息展示 + +![截图](https://img.alicdn.com/tfs/TB1aL6ZfiqAXuNjy1XdXXaYcVXa-948-735.png) + +## 更多 + +* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) +* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) diff --git a/templates/ice-design/blocks/TermsInfo/demo/index.html b/templates/ice-design/blocks/TermsInfo/demo/index.html new file mode 100644 index 0000000000..9d2d3a663d --- /dev/null +++ b/templates/ice-design/blocks/TermsInfo/demo/index.html @@ -0,0 +1,19 @@ + + + + + + + + Document + + + + +
    + + + + + + diff --git a/templates/ice-design/blocks/TermsInfo/demo/index.js b/templates/ice-design/blocks/TermsInfo/demo/index.js new file mode 100644 index 0000000000..92d23644de --- /dev/null +++ b/templates/ice-design/blocks/TermsInfo/demo/index.js @@ -0,0 +1,14 @@ +import React, { Component } from 'react'; +import { render } from 'react-dom'; +import DemoLayout from '@icedesign/demo-layout'; +import Block from '../src'; + +const props = { + // ... +}; + +render(( + + + +), document.querySelector('#mountNode')); diff --git a/templates/ice-design/blocks/TermsInfo/mock/api.json b/templates/ice-design/blocks/TermsInfo/mock/api.json new file mode 100644 index 0000000000..e706430232 --- /dev/null +++ b/templates/ice-design/blocks/TermsInfo/mock/api.json @@ -0,0 +1,4 @@ +{ + "status": "success", + "data": {} +} diff --git a/templates/ice-design/blocks/TermsInfo/package.json b/templates/ice-design/blocks/TermsInfo/package.json new file mode 100644 index 0000000000..ca92bb701f --- /dev/null +++ b/templates/ice-design/blocks/TermsInfo/package.json @@ -0,0 +1,52 @@ +{ + "name": "@icedesign/terms-info-block", + "version": "0.1.0", + "description": "", + "main": "lib/index.js", + "files": [ + "src/", + "demo/", + "lib/", + "mock/" + ], + "author": { + "name": "ICE Team", + "email": "ice-admin@alibaba-inc.com" + }, + "repository": { + "type": "git", + "url": "https://github.com/alibaba/ice" + }, + "license": "MIT", + "keywords": [ + "ice", + "ice-block" + ], + "dependencies": { + "prop-types": "^15.5.8", + "@icedesign/base": "^0.1.0", + "@icedesign/card": "^0.1.0" + }, + "devDependencies": { + "babel-eslint": "^8.0.3", + "eslint": "^4.13.1", + "eslint-plugin-babel": "^4.1.1", + "eslint-plugin-react": "^7.5.1", + "@icedesign/demo-layout": "^0.1.0", + "eslint-plugin-import": "^2.8.0", + "eslint-config-airbnb": "^16.1.0", + "eslint-plugin-jsx-a11y": "^6.0.3", + "@icedesign/skin": "^0.1.2" + }, + "blockConfig": { + "name": "terms-info", + "description": "协议信息展示", + "chinese": "协议信息展示", + "category": "info-display", + "snapshot": "https://img.alicdn.com/tfs/TB1aL6ZfiqAXuNjy1XdXXaYcVXa-948-735.png", + "sketchURL": "", + "icelandURL": "", + "themePackage": "@icedesign/skin" + }, + "scripts": {} +} diff --git a/templates/ice-design/blocks/TermsInfo/src/TermsInfo.jsx b/templates/ice-design/blocks/TermsInfo/src/TermsInfo.jsx new file mode 100644 index 0000000000..7c4a2ee6e3 --- /dev/null +++ b/templates/ice-design/blocks/TermsInfo/src/TermsInfo.jsx @@ -0,0 +1,87 @@ +'use strict'; + +import React, { Component } from 'react'; +import IceCard from '@icedesign/card'; +import { Checkbox, Button } from '@icedesign/base'; +import './TermsInfo.scss'; + +export default class TermsInfo extends Component { + static displayName = 'TermsInfo'; + + constructor(props) { + super(props); + this.state = {}; + } + + render() { + return ( +
    + +

    淘宝达人合作协议

    + +
    +

    + 鉴于淘宝网提供的信息发布服务属于电子公告牌(BBS)性质,淘宝网上的店铺、商品信息(包括但不限于店铺名称、公司名称、 + 联系人及联络信息、产品的描述和说明、相关图片、视频等)由用户自行提供并上传,由用户对其提供并上传的信息承担相应法律责任 + 淘宝网服务提供者对此另有约定的,将在相关的协议或其他法律文本中与您进行明确。 +

    +

    + 我们尊重知识产权,反对并打击侵犯知识产权的行为。知识产权权利人若认为淘宝网内容(包括但不限于淘宝网用户发布的商品信息) + 侵犯其合法权益的,可以通过阿里巴巴知识产权保护平台(https://ipp.alibabagroup.com/)进行投诉,我们将在收到知识 + 产权权利人合格通知后依据相应的法律法规以及平台规则及时处理。 +

    +

    + 广告、分析服务类的授权合作伙伴。除非得到您的许可,否则我们不会将您的个人身份信息(指可以识别您身份的信息,例如姓名或 + 电子邮箱,通过这些信息可以联系到您或识别您的身份)与提供广告、分析服务的合作伙伴共享。我们会向这些合作伙伴提供有关其 + 广告覆盖面和有效性的信息,而不会提供您的个人身份信息,或者我们将这些信息进行汇总,以便它不会识别您个人。例如,只有在广 + 告主同意遵守我们的广告发布准则后,我们才可能会告诉广告主他们广告的效果如何,或者有多少人看了他们广告或在看到广告后安 + 装了应用,或者向这些合作伙伴提供不能识别个人身份的统计信息(例如“男性,25-29岁,位于北京”),帮助他们了解其受众或顾客。 +

    +

    + 我们已采取符合业界标准、合理可行的安全防护措施保护您提供的个人信息安全,防止个人信息遭到未经授权访问、公开披露、使用、修 + 改、损坏或丢失。例如,在您的浏览器与服务器之间交换数据(如信用卡信息)时受 + SSL(Secure Socket Layer)协议加密保护; + 我们同时对淘宝网网站提供HTTPS(Hyper Text Transfer Protocol over + Secure Socket Layer)协议安全浏览方式 +

    +
    + +

    + 我同意《淘宝达人合作协议》 +

    + +
    + +
    +
    +
    + ); + } +} + +const styles = { + termsInfo: { + padding: '30px', + backgroundColor: '#fff' + }, + desc: { + fontSize: '13px', + lineHeight: '28px' + }, + title: { + textAlign: 'center', + margin: '0', + paddingBottom: '20px', + fontSize: '20px', + borderBottom: '1px solid #dedede' + }, + content: { + color: '#666', + fontSize: '16px', + padding: '20px 0', + borderBottom: '1px solid #dedede' + }, + btn: { textAlign: 'center' } +}; diff --git a/templates/ice-design/blocks/TermsInfo/src/TermsInfo.scss b/templates/ice-design/blocks/TermsInfo/src/TermsInfo.scss new file mode 100644 index 0000000000..9b65036492 --- /dev/null +++ b/templates/ice-design/blocks/TermsInfo/src/TermsInfo.scss @@ -0,0 +1,4 @@ +@charset "UTF-8"; + +.terms-info { +} diff --git a/templates/ice-design/blocks/TermsInfo/src/index.js b/templates/ice-design/blocks/TermsInfo/src/index.js new file mode 100644 index 0000000000..a9827c92ac --- /dev/null +++ b/templates/ice-design/blocks/TermsInfo/src/index.js @@ -0,0 +1,3 @@ +import TermsInfo from './TermsInfo'; + +export default TermsInfo; diff --git a/templates/ice-design/blocks/Testimonial/.editorconfig b/templates/ice-design/blocks/Testimonial/.editorconfig new file mode 100644 index 0000000000..22ef5ace54 --- /dev/null +++ b/templates/ice-design/blocks/Testimonial/.editorconfig @@ -0,0 +1,16 @@ +# http://editorconfig.org +root = true + +[*] +indent_style = space +indent_size = 2 +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false + +[makefile] +indent_style = tab +indent_size = 4 diff --git a/templates/ice-design/blocks/Testimonial/.eslintignore b/templates/ice-design/blocks/Testimonial/.eslintignore new file mode 100644 index 0000000000..3b21308fc7 --- /dev/null +++ b/templates/ice-design/blocks/Testimonial/.eslintignore @@ -0,0 +1,12 @@ +# 忽略目录 +build/ +tests/ +demo/ +lib/ + +# node 覆盖率文件 +coverage/ + +# 忽略文件 +**/*-min.js +**/*.min.js \ No newline at end of file diff --git a/templates/ice-design/blocks/Testimonial/.eslintrc b/templates/ice-design/blocks/Testimonial/.eslintrc new file mode 100644 index 0000000000..7a4e5bac48 --- /dev/null +++ b/templates/ice-design/blocks/Testimonial/.eslintrc @@ -0,0 +1,62 @@ +{ + "root": true, + "parser": "babel-eslint", + "extends": "eslint-config-airbnb", + "parserOptions": { + "ecmaVersion": 6, + "ecmaFeatures": { + "jsx": true, + "experimentalObjectRestSpread": true + } + }, + "env": { + "browser": true + }, + "plugins": [ + "react", + "babel" + ], + "rules": { + "react/forbid-prop-types": 0, + "jsx-a11y/label-has-for": 0, + "jsx-a11y/no-static-element-interactions": 0, + "jsx-a11y/anchor-has-content": 0, + "jsx-a11y/click-events-have-key-events": 0, + "jsx-a11y/anchor-is-valid": 0, + "react/no-array-index-key": 0, + "func-names": 0, + "arrow-body-style": 0, + "no-use-before-define": 0, + "react/sort-comp": 0, + "react/prop-types": 0, + "react/jsx-first-prop-new-line": 0, + "react/jsx-filename-extension": [ + 1, + { + "extensions": [ + ".js", + ".jsx" + ] + } + ], + "import/extensions": 0, + "import/no-unresolved": 0, + "import/no-extraneous-dependencies": 0, + "prefer-destructuring": 0, + "no-param-reassign": 0, + "no-return-assign": 0, + "max-len": 0, + "consistent-return": 0, + "no-redeclare": 0, + "react/require-extension": 0, + "react/no-danger": 0, + "comma-dangle": [ + "error", + "always-multiline" + ], + "function-paren-newline": 0, + "object-curly-newline": 0, + "no-restricted-globals": 0, + "react/prefer-stateless-function": 0 + } +} diff --git a/templates/ice-design/blocks/Testimonial/.gitignore b/templates/ice-design/blocks/Testimonial/.gitignore new file mode 100644 index 0000000000..5945feea3c --- /dev/null +++ b/templates/ice-design/blocks/Testimonial/.gitignore @@ -0,0 +1,14 @@ + + *.swp + *.dia~ + .idea/ + .DS_Store + + npm-debug.log + yarn-error.log + node_modules/ + tmp/ + + # happypack 缓存 + .happypack + \ No newline at end of file diff --git a/templates/ice-design/blocks/Testimonial/README.md b/templates/ice-design/blocks/Testimonial/README.md new file mode 100644 index 0000000000..43db4d9b8d --- /dev/null +++ b/templates/ice-design/blocks/Testimonial/README.md @@ -0,0 +1,10 @@ +# testimonial + +简介:客户评价展示 + +![截图](https://img.alicdn.com/tfs/TB1N4oni8fH8KJjy1XbXXbLdXXa-2692-1250.png) + +## 更多 + +* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) +* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) diff --git a/templates/ice-design/blocks/Testimonial/demo/index.html b/templates/ice-design/blocks/Testimonial/demo/index.html new file mode 100644 index 0000000000..9d2d3a663d --- /dev/null +++ b/templates/ice-design/blocks/Testimonial/demo/index.html @@ -0,0 +1,19 @@ + + + + + + + + Document + + + + +
    + + + + + + diff --git a/templates/ice-design/blocks/Testimonial/demo/index.js b/templates/ice-design/blocks/Testimonial/demo/index.js new file mode 100644 index 0000000000..f80b542308 --- /dev/null +++ b/templates/ice-design/blocks/Testimonial/demo/index.js @@ -0,0 +1,14 @@ +import React, { Component } from 'react'; +import { render } from 'react-dom'; + +// 载入默认全局样式 normalize 、.clearfix 和一些 mixin 方法等 +import '@icedesign/base/lib/_components/@alife/next-core/lib/index.scss'; + +import DemoLayout from '@icedesign/demo-layout'; +import Block from '../src'; + +const props = { + // ... +}; + +render(, document.querySelector('#mountNode')); diff --git a/templates/ice-design/blocks/Testimonial/lib/Testimonial.js b/templates/ice-design/blocks/Testimonial/lib/Testimonial.js new file mode 100644 index 0000000000..427f614b9d --- /dev/null +++ b/templates/ice-design/blocks/Testimonial/lib/Testimonial.js @@ -0,0 +1,165 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = undefined; + +var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; + +var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + +var _class, _temp; + +var _react = require('react'); + +var _react2 = _interopRequireDefault(_react); + +var _card = require('@icedesign/card'); + +var _card2 = _interopRequireDefault(_card); + +require('./Testimonial.scss'); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } + +var generatorData = function generatorData(count) { + return Array.from({ length: count }).map(function () { + return { + name: '人物名', + company: '就职公司/职务', + description: '随着个人用户对于互联网内容获取的要求和口味越来越特别,怎样提供更加精准个性化的资讯订阅服务是提升用户体验的关键。但是本质上来说一般都是通过新闻源智能推荐这样的组合实现的', + imgUrl: 'https://img.alicdn.com/tfs/TB1cUfViZrI8KJjy0FhXXbfnpXa-450-456.png' + }; + }); +}; + +var Testimonial = (_temp = _class = function (_Component) { + _inherits(Testimonial, _Component); + + function Testimonial(props) { + _classCallCheck(this, Testimonial); + + var _this = _possibleConstructorReturn(this, (Testimonial.__proto__ || Object.getPrototypeOf(Testimonial)).call(this, props)); + + _this.state = {}; + return _this; + } + + _createClass(Testimonial, [{ + key: 'render', + value: function render() { + var data = generatorData(3); + return _react2.default.createElement( + 'div', + { className: 'testimonial' }, + _react2.default.createElement( + _card2.default, + null, + _react2.default.createElement( + 'div', + { style: styles.items }, + data.map(function (item, index) { + var rowLastItem = (index + 1) % 3 === 0 ? styles.rowLastItem : {}; + return _react2.default.createElement( + 'div', + { + key: index, + style: _extends({}, styles.item, rowLastItem), + className: 'item' + }, + _react2.default.createElement( + 'p', + { style: styles.description }, + '\u201C', + item.description, + '\u201D' + ), + _react2.default.createElement( + 'div', + { style: styles.infoBox }, + _react2.default.createElement('img', { + style: styles.avatar, + src: item.imgUrl, + alt: item.name + }), + _react2.default.createElement( + 'div', + { style: styles.baseInfo }, + _react2.default.createElement( + 'h5', + { style: styles.name }, + item.name + ), + _react2.default.createElement( + 'p', + { style: styles.company }, + item.company + ) + ) + ) + ); + }) + ) + ) + ); + } + }]); + + return Testimonial; +}(_react.Component), _class.displayName = 'Testimonial', _class.propTypes = {}, _class.defaultProps = {}, _temp); +exports.default = Testimonial; + + +var styles = { + items: { + display: 'flex', + flexWrap: 'wrap', + padding: '80px 0', + width: '1080px', + margin: '0 auto' + }, + item: { + width: '30%', + padding: '20px 30px 60px', + marginRight: '5%', + background: '#fff', + borderRadius: '6px', + textAlign: 'center' + }, + rowLastItem: { + marginRight: 0 + }, + infoBox: { + display: 'flex', + flexDirection: 'column', + alignItems: 'center', + marginTop: '40px' + }, + baseInfo: { + display: 'flex', + flexDirection: 'column' + }, + avatar: { + width: '64px', + height: '64px' + }, + name: { + margin: '10px 0 0', + fontSize: '15px', + fontWeight: 'bold' + }, + company: { + margin: 0 + }, + description: { + lineHeight: '28px' + } +}; +module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/Testimonial/lib/Testimonial.scss b/templates/ice-design/blocks/Testimonial/lib/Testimonial.scss new file mode 100644 index 0000000000..1809a97f6f --- /dev/null +++ b/templates/ice-design/blocks/Testimonial/lib/Testimonial.scss @@ -0,0 +1,5 @@ +@charset "UTF-8"; + +.testimonial { + +} diff --git a/templates/ice-design/blocks/Testimonial/lib/index.js b/templates/ice-design/blocks/Testimonial/lib/index.js new file mode 100644 index 0000000000..4ca9504bf6 --- /dev/null +++ b/templates/ice-design/blocks/Testimonial/lib/index.js @@ -0,0 +1,14 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _Testimonial = require('./Testimonial'); + +var _Testimonial2 = _interopRequireDefault(_Testimonial); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +exports.default = _Testimonial2.default; +module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/Testimonial/mock/api.json b/templates/ice-design/blocks/Testimonial/mock/api.json new file mode 100644 index 0000000000..e706430232 --- /dev/null +++ b/templates/ice-design/blocks/Testimonial/mock/api.json @@ -0,0 +1,4 @@ +{ + "status": "success", + "data": {} +} diff --git a/templates/ice-design/blocks/Testimonial/package.json b/templates/ice-design/blocks/Testimonial/package.json new file mode 100644 index 0000000000..3e6c4b6ae1 --- /dev/null +++ b/templates/ice-design/blocks/Testimonial/package.json @@ -0,0 +1,54 @@ +{ + "name": "@icedesign/testimonial-block", + "version": "0.1.0", + "description": "", + "files": [ + "src/", + "demo/", + "lib/", + "mock/" + ], + "author": { + "name": "ICE Team", + "email": "ice-admin@alibaba-inc.com" + }, + "repository": { + "type": "git", + "url": "https://github.com/alibaba/ice" + }, + "license": "MIT", + "keywords": [ + "ice", + "ice-block" + ], + "dependencies": { + "prop-types": "^15.5.8", + "@icedesign/base": "^0.1.0", + "@icedesign/card": "^0.1.0" + }, + "devDependencies": { + "babel-eslint": "^8.0.3", + "eslint": "^4.13.1", + "eslint-plugin-babel": "^4.1.1", + "eslint-plugin-react": "^7.5.1", + "@icedesign/demo-layout": "^0.1.0", + "eslint-plugin-import": "^2.8.0", + "eslint-config-airbnb": "^16.1.0", + "eslint-plugin-jsx-a11y": "^6.0.3", + "@icedesign/skin": "^0.1.2" + }, + "blockConfig": { + "name": "testimonial", + "description": "", + "chinese": "客户评价展示", + "category": "info-display", + "snapshot": "https://img.alicdn.com/tfs/TB1N4oni8fH8KJjy1XbXXbLdXXa-2692-1250.png", + "sketchURL": "", + "icelandURL": "", + "themePackage": "@icedesign/skin" + }, + "scripts": { + "lint": "eslint . --ext '.js,.jsx' --fix", + "prepublish": "npm run lint" + } +} diff --git a/templates/ice-design/blocks/Testimonial/src/Testimonial.jsx b/templates/ice-design/blocks/Testimonial/src/Testimonial.jsx new file mode 100644 index 0000000000..46cd4e83d6 --- /dev/null +++ b/templates/ice-design/blocks/Testimonial/src/Testimonial.jsx @@ -0,0 +1,115 @@ +import React, { Component } from 'react'; +import IceCard from '@icedesign/card'; +import './Testimonial.scss'; + +const generatorData = (count) => { + return Array.from({ length: count }).map(() => { + return { + name: '人物名', + company: '就职公司/职务', + description: + '随着个人用户对于互联网内容获取的要求和口味越来越特别,怎样提供更加精准个性化的资讯订阅服务是提升用户体验的关键。但是本质上来说一般都是通过新闻源智能推荐这样的组合实现的', + imgUrl: + 'https://img.alicdn.com/tfs/TB1cUfViZrI8KJjy0FhXXbfnpXa-450-456.png', + }; + }); +}; + +export default class Testimonial extends Component { + static displayName = 'Testimonial'; + + static propTypes = {}; + + static defaultProps = {}; + + constructor(props) { + super(props); + this.state = {}; + } + + render() { + const data = generatorData(3); + return ( +
    + +
    + {data.map((item, index) => { + const rowLastItem = + (index + 1) % 3 === 0 ? styles.rowLastItem : {}; + return ( +
    +

    + “ + {item.description} + ” +

    +
    + {item.name} +
    +
    {item.name}
    +

    {item.company}

    +
    +
    +
    + ); + })} +
    +
    +
    + ); + } +} + +const styles = { + items: { + display: 'flex', + flexWrap: 'wrap', + padding: '80px 0', + width: '1080px', + margin: '0 auto', + }, + item: { + width: '30%', + padding: '20px 30px 60px', + marginRight: '5%', + background: '#fff', + borderRadius: '6px', + textAlign: 'center', + }, + rowLastItem: { + marginRight: 0, + }, + infoBox: { + display: 'flex', + flexDirection: 'column', + alignItems: 'center', + marginTop: '40px', + }, + baseInfo: { + display: 'flex', + flexDirection: 'column', + }, + avatar: { + width: '64px', + height: '64px', + }, + name: { + margin: '10px 0 0', + fontSize: '15px', + fontWeight: 'bold', + }, + company: { + margin: 0, + }, + description: { + lineHeight: '28px', + }, +}; diff --git a/templates/ice-design/blocks/Testimonial/src/Testimonial.scss b/templates/ice-design/blocks/Testimonial/src/Testimonial.scss new file mode 100644 index 0000000000..1809a97f6f --- /dev/null +++ b/templates/ice-design/blocks/Testimonial/src/Testimonial.scss @@ -0,0 +1,5 @@ +@charset "UTF-8"; + +.testimonial { + +} diff --git a/templates/ice-design/blocks/Testimonial/src/index.js b/templates/ice-design/blocks/Testimonial/src/index.js new file mode 100644 index 0000000000..e133034deb --- /dev/null +++ b/templates/ice-design/blocks/Testimonial/src/index.js @@ -0,0 +1,3 @@ +import Testimonial from './Testimonial'; + +export default Testimonial; diff --git a/templates/ice-design/blocks/TestimonialCard/.editorconfig b/templates/ice-design/blocks/TestimonialCard/.editorconfig new file mode 100644 index 0000000000..22ef5ace54 --- /dev/null +++ b/templates/ice-design/blocks/TestimonialCard/.editorconfig @@ -0,0 +1,16 @@ +# http://editorconfig.org +root = true + +[*] +indent_style = space +indent_size = 2 +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false + +[makefile] +indent_style = tab +indent_size = 4 diff --git a/templates/ice-design/blocks/TestimonialCard/.eslintignore b/templates/ice-design/blocks/TestimonialCard/.eslintignore new file mode 100644 index 0000000000..3b21308fc7 --- /dev/null +++ b/templates/ice-design/blocks/TestimonialCard/.eslintignore @@ -0,0 +1,12 @@ +# 忽略目录 +build/ +tests/ +demo/ +lib/ + +# node 覆盖率文件 +coverage/ + +# 忽略文件 +**/*-min.js +**/*.min.js \ No newline at end of file diff --git a/templates/ice-design/blocks/TestimonialCard/.eslintrc b/templates/ice-design/blocks/TestimonialCard/.eslintrc new file mode 100644 index 0000000000..7a4e5bac48 --- /dev/null +++ b/templates/ice-design/blocks/TestimonialCard/.eslintrc @@ -0,0 +1,62 @@ +{ + "root": true, + "parser": "babel-eslint", + "extends": "eslint-config-airbnb", + "parserOptions": { + "ecmaVersion": 6, + "ecmaFeatures": { + "jsx": true, + "experimentalObjectRestSpread": true + } + }, + "env": { + "browser": true + }, + "plugins": [ + "react", + "babel" + ], + "rules": { + "react/forbid-prop-types": 0, + "jsx-a11y/label-has-for": 0, + "jsx-a11y/no-static-element-interactions": 0, + "jsx-a11y/anchor-has-content": 0, + "jsx-a11y/click-events-have-key-events": 0, + "jsx-a11y/anchor-is-valid": 0, + "react/no-array-index-key": 0, + "func-names": 0, + "arrow-body-style": 0, + "no-use-before-define": 0, + "react/sort-comp": 0, + "react/prop-types": 0, + "react/jsx-first-prop-new-line": 0, + "react/jsx-filename-extension": [ + 1, + { + "extensions": [ + ".js", + ".jsx" + ] + } + ], + "import/extensions": 0, + "import/no-unresolved": 0, + "import/no-extraneous-dependencies": 0, + "prefer-destructuring": 0, + "no-param-reassign": 0, + "no-return-assign": 0, + "max-len": 0, + "consistent-return": 0, + "no-redeclare": 0, + "react/require-extension": 0, + "react/no-danger": 0, + "comma-dangle": [ + "error", + "always-multiline" + ], + "function-paren-newline": 0, + "object-curly-newline": 0, + "no-restricted-globals": 0, + "react/prefer-stateless-function": 0 + } +} diff --git a/templates/ice-design/blocks/TestimonialCard/.gitignore b/templates/ice-design/blocks/TestimonialCard/.gitignore new file mode 100644 index 0000000000..5945feea3c --- /dev/null +++ b/templates/ice-design/blocks/TestimonialCard/.gitignore @@ -0,0 +1,14 @@ + + *.swp + *.dia~ + .idea/ + .DS_Store + + npm-debug.log + yarn-error.log + node_modules/ + tmp/ + + # happypack 缓存 + .happypack + \ No newline at end of file diff --git a/templates/ice-design/blocks/TestimonialCard/README.md b/templates/ice-design/blocks/TestimonialCard/README.md new file mode 100644 index 0000000000..8a592fa1f0 --- /dev/null +++ b/templates/ice-design/blocks/TestimonialCard/README.md @@ -0,0 +1,10 @@ +# testimonial-card + +简介:客户评论卡片 + +![截图](https://img.alicdn.com/tfs/TB14w4EjBfH8KJjy1XbXXbLdXXa-2824-1110.png) + +## 更多 + +* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) +* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) diff --git a/templates/ice-design/blocks/TestimonialCard/demo/index.html b/templates/ice-design/blocks/TestimonialCard/demo/index.html new file mode 100644 index 0000000000..9d2d3a663d --- /dev/null +++ b/templates/ice-design/blocks/TestimonialCard/demo/index.html @@ -0,0 +1,19 @@ + + + + + + + + Document + + + + +
    + + + + + + diff --git a/templates/ice-design/blocks/TestimonialCard/demo/index.js b/templates/ice-design/blocks/TestimonialCard/demo/index.js new file mode 100644 index 0000000000..9e926826cb --- /dev/null +++ b/templates/ice-design/blocks/TestimonialCard/demo/index.js @@ -0,0 +1,14 @@ +import React, {Component} from 'react'; +import {render} from 'react-dom'; + +// 载入默认全局样式 normalize 、.clearfix 和一些 mixin 方法等 +import '@icedesign/base/lib/_components/@alife/next-core/lib/index.scss'; + +import DemoLayout from '@icedesign/demo-layout'; +import Block from '../src'; + +const props = { + // ... +}; + +render(, document.querySelector('#mountNode')); diff --git a/templates/ice-design/blocks/TestimonialCard/mock/api.json b/templates/ice-design/blocks/TestimonialCard/mock/api.json new file mode 100644 index 0000000000..e706430232 --- /dev/null +++ b/templates/ice-design/blocks/TestimonialCard/mock/api.json @@ -0,0 +1,4 @@ +{ + "status": "success", + "data": {} +} diff --git a/templates/ice-design/blocks/TestimonialCard/package.json b/templates/ice-design/blocks/TestimonialCard/package.json new file mode 100644 index 0000000000..e7f967514b --- /dev/null +++ b/templates/ice-design/blocks/TestimonialCard/package.json @@ -0,0 +1,55 @@ +{ + "name": "@icedesign/testimonial-card-block", + "version": "0.1.0", + "description": "", + "files": [ + "src/", + "demo/", + "lib/", + "mock/" + ], + "author": { + "name": "ICE Team", + "email": "ice-admin@alibaba-inc.com" + }, + "repository": { + "type": "git", + "url": "https://github.com/alibaba/ice" + }, + "license": "MIT", + "keywords": [ + "ice", + "ice-block" + ], + "dependencies": { + "classnames": "^2.2.5", + "prop-types": "^15.5.8", + "@icedesign/base": "^0.1.0", + "@icedesign/card": "^0.1.0" + }, + "devDependencies": { + "babel-eslint": "^8.0.3", + "eslint": "^4.13.1", + "eslint-plugin-babel": "^4.1.1", + "eslint-plugin-react": "^7.5.1", + "@icedesign/demo-layout": "^0.1.0", + "eslint-plugin-import": "^2.8.0", + "eslint-config-airbnb": "^16.1.0", + "eslint-plugin-jsx-a11y": "^6.0.3", + "@icedesign/skin": "^0.1.2" + }, + "blockConfig": { + "name": "testimonial-card", + "description": "", + "chinese": "客户评论卡片", + "category": "info-display", + "snapshot": "https://img.alicdn.com/tfs/TB14w4EjBfH8KJjy1XbXXbLdXXa-2824-1110.png", + "sketchURL": "", + "icelandURL": "", + "themePackage": "@icedesign/skin" + }, + "scripts": { + "lint": "eslint . --ext '.js,.jsx' --fix", + "prepublish": "npm run lint" + } +} diff --git a/templates/ice-design/blocks/TestimonialCard/src/TestimonialCard.jsx b/templates/ice-design/blocks/TestimonialCard/src/TestimonialCard.jsx new file mode 100644 index 0000000000..d1ad7bc4b1 --- /dev/null +++ b/templates/ice-design/blocks/TestimonialCard/src/TestimonialCard.jsx @@ -0,0 +1,114 @@ +import React, { Component } from 'react'; +import IceCard from '@icedesign/card'; +import './TestimonialCard.scss'; + +const generatorData = (count) => { + return Array.from({ length: count }).map(() => { + return { + name: '人物名', + company: '就职公司/职务', + description: + '随着个人用户对于互联网内容获取的要求和口味越来越特别,怎样提供更加精准个性化的资讯订阅服务是提升用户体验的关键。虽然我们发现目前市面上有非常多的资讯类app 都标榜自己能够提供个人定制化的新闻阅读功能,但是本质上来说一般都是通过新闻源+兴趣点+智能推荐这样的组合实现的', + imgUrl: + 'https://img.alicdn.com/tfs/TB1cUfViZrI8KJjy0FhXXbfnpXa-450-456.png', + }; + }); +}; + +export default class TestimonialCard extends Component { + static displayName = 'TestimonialCard'; + + constructor(props) { + super(props); + this.state = {}; + } + + render() { + const data = generatorData(3); + return ( +
    + +
    + {data.map((item, index) => { + const rowLastItem = + (index + 1) % 3 === 0 ? styles.rowLastItem : {}; + return ( +
    +
    + {item.name} +
    +
    {item.name}
    +

    {item.company}

    +
    +
    +

    + “ + {item.description} + ” +

    +
    + ); + })} +
    +
    +
    + ); + } +} + +const styles = { + container: { + background: + 'url(https://img.alicdn.com/tfs/TB1JGoDi3vD8KJjy0FlXXagBFXa-5040-2811.png)', + borderRadius: 0, + }, + items: { + display: 'flex', + flexWrap: 'wrap', + padding: '80px 0', + width: '80%', + margin: '0 auto', + }, + item: { + width: '30%', + padding: '20px 30px 60px', + marginRight: '5%', + background: '#fff', + borderRadius: '6px', + }, + rowLastItem: { + marginRight: 0, + }, + infoBox: { + display: 'flex', + }, + baseInfo: { + display: 'flex', + flexDirection: 'column', + justifyContent: 'center', + marginLeft: '15px', + }, + avatar: { + width: '64px', + height: '64px', + }, + name: { + margin: '0', + fontSize: '15px', + fontWeight: 'bold', + }, + company: { + margin: 0, + }, + description: { + lineHeight: '28px', + }, +}; diff --git a/templates/ice-design/blocks/TestimonialCard/src/TestimonialCard.scss b/templates/ice-design/blocks/TestimonialCard/src/TestimonialCard.scss new file mode 100644 index 0000000000..ac7502580e --- /dev/null +++ b/templates/ice-design/blocks/TestimonialCard/src/TestimonialCard.scss @@ -0,0 +1,4 @@ +@charset "UTF-8"; + +.testimonial-card { +} diff --git a/templates/ice-design/blocks/TestimonialCard/src/index.js b/templates/ice-design/blocks/TestimonialCard/src/index.js new file mode 100644 index 0000000000..22dc463588 --- /dev/null +++ b/templates/ice-design/blocks/TestimonialCard/src/index.js @@ -0,0 +1,3 @@ +import TestimonialCard from './TestimonialCard'; + +export default TestimonialCard; diff --git a/templates/ice-design/blocks/TextCard/.editorconfig b/templates/ice-design/blocks/TextCard/.editorconfig new file mode 100644 index 0000000000..22ef5ace54 --- /dev/null +++ b/templates/ice-design/blocks/TextCard/.editorconfig @@ -0,0 +1,16 @@ +# http://editorconfig.org +root = true + +[*] +indent_style = space +indent_size = 2 +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false + +[makefile] +indent_style = tab +indent_size = 4 diff --git a/templates/ice-design/blocks/TextCard/.eslintignore b/templates/ice-design/blocks/TextCard/.eslintignore new file mode 100644 index 0000000000..3b21308fc7 --- /dev/null +++ b/templates/ice-design/blocks/TextCard/.eslintignore @@ -0,0 +1,12 @@ +# 忽略目录 +build/ +tests/ +demo/ +lib/ + +# node 覆盖率文件 +coverage/ + +# 忽略文件 +**/*-min.js +**/*.min.js \ No newline at end of file diff --git a/templates/ice-design/blocks/TextCard/.eslintrc b/templates/ice-design/blocks/TextCard/.eslintrc new file mode 100644 index 0000000000..7a4e5bac48 --- /dev/null +++ b/templates/ice-design/blocks/TextCard/.eslintrc @@ -0,0 +1,62 @@ +{ + "root": true, + "parser": "babel-eslint", + "extends": "eslint-config-airbnb", + "parserOptions": { + "ecmaVersion": 6, + "ecmaFeatures": { + "jsx": true, + "experimentalObjectRestSpread": true + } + }, + "env": { + "browser": true + }, + "plugins": [ + "react", + "babel" + ], + "rules": { + "react/forbid-prop-types": 0, + "jsx-a11y/label-has-for": 0, + "jsx-a11y/no-static-element-interactions": 0, + "jsx-a11y/anchor-has-content": 0, + "jsx-a11y/click-events-have-key-events": 0, + "jsx-a11y/anchor-is-valid": 0, + "react/no-array-index-key": 0, + "func-names": 0, + "arrow-body-style": 0, + "no-use-before-define": 0, + "react/sort-comp": 0, + "react/prop-types": 0, + "react/jsx-first-prop-new-line": 0, + "react/jsx-filename-extension": [ + 1, + { + "extensions": [ + ".js", + ".jsx" + ] + } + ], + "import/extensions": 0, + "import/no-unresolved": 0, + "import/no-extraneous-dependencies": 0, + "prefer-destructuring": 0, + "no-param-reassign": 0, + "no-return-assign": 0, + "max-len": 0, + "consistent-return": 0, + "no-redeclare": 0, + "react/require-extension": 0, + "react/no-danger": 0, + "comma-dangle": [ + "error", + "always-multiline" + ], + "function-paren-newline": 0, + "object-curly-newline": 0, + "no-restricted-globals": 0, + "react/prefer-stateless-function": 0 + } +} diff --git a/templates/ice-design/blocks/TextCard/.gitignore b/templates/ice-design/blocks/TextCard/.gitignore new file mode 100644 index 0000000000..cc45d6fb3c --- /dev/null +++ b/templates/ice-design/blocks/TextCard/.gitignore @@ -0,0 +1,13 @@ + +*.swp +*.dia~ +.idea/ +.DS_Store + +npm-debug.log +yarn-error.log +node_modules/ +tmp/ + +# happypack 缓存 +.happypack diff --git a/templates/ice-design/blocks/TextCard/README.md b/templates/ice-design/blocks/TextCard/README.md new file mode 100644 index 0000000000..2a77216cbb --- /dev/null +++ b/templates/ice-design/blocks/TextCard/README.md @@ -0,0 +1,12 @@ +# text-card + +简介:纯文字展示型卡片 + +纯文字展示型卡片 + +![截图](https://img.alicdn.com/tfs/TB14dP0h8fH8KJjy1XbXXbLdXXa-1896-238.png) + +## 更多 + +* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) +* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) diff --git a/templates/ice-design/blocks/TextCard/demo/index.html b/templates/ice-design/blocks/TextCard/demo/index.html new file mode 100644 index 0000000000..9d2d3a663d --- /dev/null +++ b/templates/ice-design/blocks/TextCard/demo/index.html @@ -0,0 +1,19 @@ + + + + + + + + Document + + + + +
    + + + + + + diff --git a/templates/ice-design/blocks/TextCard/demo/index.js b/templates/ice-design/blocks/TextCard/demo/index.js new file mode 100644 index 0000000000..178a766115 --- /dev/null +++ b/templates/ice-design/blocks/TextCard/demo/index.js @@ -0,0 +1,19 @@ +import React, {Component} from 'react'; +import {render} from 'react-dom'; + +// 载入默认全局样式 normalize 、.clearfix 和一些 mixin 方法等 +import '@icedesign/base/lib/_components/@alife/next-core/lib/index.scss'; + +import DemoLayout from '@icedesign/demo-layout'; +import Block from '../src'; + +const props = { + // ... +}; + +render( + + + , + document.querySelector('#mountNode') +); diff --git a/templates/ice-design/blocks/TextCard/mock/api.json b/templates/ice-design/blocks/TextCard/mock/api.json new file mode 100644 index 0000000000..e706430232 --- /dev/null +++ b/templates/ice-design/blocks/TextCard/mock/api.json @@ -0,0 +1,4 @@ +{ + "status": "success", + "data": {} +} diff --git a/templates/ice-design/blocks/TextCard/package.json b/templates/ice-design/blocks/TextCard/package.json new file mode 100644 index 0000000000..dba4dda40b --- /dev/null +++ b/templates/ice-design/blocks/TextCard/package.json @@ -0,0 +1,51 @@ +{ + "name": "@icedesign/text-card-block", + "version": "0.1.0", + "description": "纯文字展示型卡片", + "files": [ + "src/", + "demo/", + "lib/", + "mock/" + ], + "author": { + "name": "ICE Team", + "email": "ice-admin@alibaba-inc.com" + }, + "repository": { + "type": "git", + "url": "https://github.com/alibaba/ice" + }, + "license": "MIT", + "keywords": [ + "ice", + "ice-block" + ], + "dependencies": { + "prop-types": "^15.5.8", + "@icedesign/base": "^0.1.0", + "@icedesign/card": "^0.1.0" + }, + "devDependencies": { + "babel-eslint": "^8.0.3", + "eslint": "^4.13.1", + "eslint-plugin-babel": "^4.1.1", + "eslint-plugin-react": "^7.5.1", + "@icedesign/demo-layout": "^0.1.0", + "eslint-plugin-import": "^2.8.0", + "eslint-config-airbnb": "^16.1.0", + "eslint-plugin-jsx-a11y": "^6.0.3", + "@icedesign/skin": "^0.1.2" + }, + "blockConfig": { + "name": "text-card", + "description": "纯文字展示型卡片", + "chinese": "纯文字展示型卡片", + "category": "data-display", + "snapshot": "https://img.alicdn.com/tfs/TB14dP0h8fH8KJjy1XbXXbLdXXa-1896-238.png", + "sketchURL": "", + "icelandURL": "", + "themePackage": "@icedesign/skin" + }, + "scripts": {} +} diff --git a/templates/ice-design/blocks/TextCard/src/TextCard.jsx b/templates/ice-design/blocks/TextCard/src/TextCard.jsx new file mode 100644 index 0000000000..b5b28612f3 --- /dev/null +++ b/templates/ice-design/blocks/TextCard/src/TextCard.jsx @@ -0,0 +1,87 @@ +'use strict'; + +import React, { Component } from 'react'; +import IceCard from '@icedesign/card'; +import './TextCard.scss'; + +export default class TextCard extends Component { + static displayName = 'TextCard'; + + constructor(props) { + super(props); + this.state = {}; + } + + // ICE: React Component 的生命周期 + // http://ice.alibaba-inc.com/docs/guide/intro-react#React-组件的生命周期 + componentWillMount() {} + + componentDidMount() {} + + componentWillReceiveProps(nextProps, nextContext) {} + + shouldComponentUpdate(nextProps, nextState) { + return true; + } + + componentWillUnmount() {} + + render() { + return ( +
    + +
    +
    + 我的待办 +
    +
    + + 8 + 个任务 +
    +
    + +
    +
    + 本周任务平均处理时间 +
    +
    + + 32 + 分钟 +
    +
    + +
    +
    + 本周完成任务数 +
    +
    + + 23 + 个任务 +
    +
    +
    +
    + ); + } +} + +const styles = { + textCard: { color: '#333' }, + textCardList: { display: 'flex', flexDirection: 'row' }, + textCardItem: { + flex: '1', + borderRight: '1px solid #F0F0F0', + height: '90px', + width: '33%', + display: 'flex', + flexDirection: 'column', + justifyContent: 'center', + alignItems: 'center' + }, + textCardSubtitle: { fontSize: '12px', marginBottom: '10px' }, + textCardTitle: { fontSize: '16px' }, + textCardNumber: { fontSize: '24px', fontWeight: 'bold' } +}; diff --git a/templates/ice-design/blocks/TextCard/src/TextCard.scss b/templates/ice-design/blocks/TextCard/src/TextCard.scss new file mode 100644 index 0000000000..b1eae96a57 --- /dev/null +++ b/templates/ice-design/blocks/TextCard/src/TextCard.scss @@ -0,0 +1,9 @@ +@charset "UTF-8"; + +.text-card-list { + .text-card-item { + &:last-child { + border-right: none !important; + } + } +} diff --git a/templates/ice-design/blocks/TextCard/src/index.js b/templates/ice-design/blocks/TextCard/src/index.js new file mode 100644 index 0000000000..063df3f3ad --- /dev/null +++ b/templates/ice-design/blocks/TextCard/src/index.js @@ -0,0 +1,3 @@ +import TextCard from './TextCard'; + +export default TextCard; diff --git a/templates/ice-design/blocks/TextSearchList/.editorconfig b/templates/ice-design/blocks/TextSearchList/.editorconfig new file mode 100644 index 0000000000..22ef5ace54 --- /dev/null +++ b/templates/ice-design/blocks/TextSearchList/.editorconfig @@ -0,0 +1,16 @@ +# http://editorconfig.org +root = true + +[*] +indent_style = space +indent_size = 2 +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false + +[makefile] +indent_style = tab +indent_size = 4 diff --git a/templates/ice-design/blocks/TextSearchList/.eslintignore b/templates/ice-design/blocks/TextSearchList/.eslintignore new file mode 100644 index 0000000000..2d5ec592a3 --- /dev/null +++ b/templates/ice-design/blocks/TextSearchList/.eslintignore @@ -0,0 +1,12 @@ +# 忽略目录 +build/ +tests/ +demo/ +lib/ + +# node 覆盖率文件 +coverage/ + +# 忽略文件 +**/*-min.js +**/*.min.js diff --git a/templates/ice-design/blocks/TextSearchList/.eslintrc b/templates/ice-design/blocks/TextSearchList/.eslintrc new file mode 100644 index 0000000000..07c65acfe7 --- /dev/null +++ b/templates/ice-design/blocks/TextSearchList/.eslintrc @@ -0,0 +1,53 @@ +{ + "root": true, + "parser": "babel-eslint", + "extends": "eslint-config-airbnb", + "parserOptions": { + "ecmaVersion": 6, + "ecmaFeatures": { + "jsx": true, + "experimentalObjectRestSpread": true + } + }, + "env": { + "browser": true + }, + "plugins": ["react", "babel"], + "rules": { + "react/forbid-prop-types": 0, + "jsx-a11y/label-has-for": 0, + "jsx-a11y/no-static-element-interactions": 0, + "jsx-a11y/anchor-has-content": 0, + "jsx-a11y/click-events-have-key-events": 0, + "jsx-a11y/anchor-is-valid": 0, + "react/no-array-index-key": 0, + "func-names": 0, + "arrow-body-style": 0, + "no-use-before-define": 1, + "react/sort-comp": 0, + "react/prop-types": 0, + "react/jsx-first-prop-new-line": 0, + "react/jsx-filename-extension": [ + 1, + { + "extensions": [".js", ".jsx"] + } + ], + "import/extensions": 0, + "import/no-unresolved": 0, + "import/no-extraneous-dependencies": 0, + "prefer-destructuring": 0, + "no-param-reassign": 0, + "no-return-assign": 0, + "max-len": 0, + "consistent-return": 0, + "no-redeclare": 0, + "react/require-extension": 0, + "react/no-danger": 0, + "comma-dangle": ["error", "always-multiline"], + "function-paren-newline": 0, + "object-curly-newline": 0, + "no-restricted-globals": 0, + "react/prefer-stateless-function": 0 + } +} diff --git a/templates/ice-design/blocks/TextSearchList/.gitignore b/templates/ice-design/blocks/TextSearchList/.gitignore new file mode 100644 index 0000000000..cc45d6fb3c --- /dev/null +++ b/templates/ice-design/blocks/TextSearchList/.gitignore @@ -0,0 +1,13 @@ + +*.swp +*.dia~ +.idea/ +.DS_Store + +npm-debug.log +yarn-error.log +node_modules/ +tmp/ + +# happypack 缓存 +.happypack diff --git a/templates/ice-design/blocks/TextSearchList/README.md b/templates/ice-design/blocks/TextSearchList/README.md new file mode 100644 index 0000000000..51afbca87f --- /dev/null +++ b/templates/ice-design/blocks/TextSearchList/README.md @@ -0,0 +1,12 @@ +# text-search-list + +简介:文字搜索列表 + +文字搜索列表 + +![截图](https://gw.alicdn.com/tfs/TB1bcxnir_I8KJjy1XaXXbsxpXa-1906-1536.png) + +## 更多 + +* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) +* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) diff --git a/templates/ice-design/blocks/TextSearchList/demo/index.html b/templates/ice-design/blocks/TextSearchList/demo/index.html new file mode 100644 index 0000000000..9d2d3a663d --- /dev/null +++ b/templates/ice-design/blocks/TextSearchList/demo/index.html @@ -0,0 +1,19 @@ + + + + + + + + Document + + + + +
    + + + + + + diff --git a/templates/ice-design/blocks/TextSearchList/demo/index.js b/templates/ice-design/blocks/TextSearchList/demo/index.js new file mode 100644 index 0000000000..4d6acd389a --- /dev/null +++ b/templates/ice-design/blocks/TextSearchList/demo/index.js @@ -0,0 +1,19 @@ +import React, { Component } from 'react'; +import { render } from 'react-dom'; + +// 载入默认全局样式 normalize 、.clearfix 和一些 mixin 方法等 +import '@icedesign/base/lib/_components/@alife/next-core/lib/index.scss'; + +import DemoLayout from '@icedesign/demo-layout'; +import Block from '../src'; + +const props = { + // ... +}; + +render( + + + , + document.querySelector('#mountNode') +); diff --git a/templates/ice-design/blocks/TextSearchList/lib/ArticleList/ArticleList.js b/templates/ice-design/blocks/TextSearchList/lib/ArticleList/ArticleList.js new file mode 100644 index 0000000000..f472f531b4 --- /dev/null +++ b/templates/ice-design/blocks/TextSearchList/lib/ArticleList/ArticleList.js @@ -0,0 +1,180 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = undefined; + +var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; + +var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + +var _class, _temp2; + +var _react = require('react'); + +var _react2 = _interopRequireDefault(_react); + +var _card = require('@icedesign/card'); + +var _card2 = _interopRequireDefault(_card); + +require('./ArticleList.scss'); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } + +var Button = require('@icedesign/base/lib/button'); + +var ArticleList = (_temp2 = _class = function (_Component) { + _inherits(ArticleList, _Component); + + function ArticleList() { + var _ref; + + var _temp, _this, _ret; + + _classCallCheck(this, ArticleList); + + for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = ArticleList.__proto__ || Object.getPrototypeOf(ArticleList)).call.apply(_ref, [this].concat(args))), _this), _this.handleTagClick = function (idx, text) { + // handler + console.log('handleTagClick:', text); + }, _this.renderTag = function (text, onClick, idx) { + return _react2.default.createElement( + Button, + { size: 'small', onClick: onClick, key: idx, style: styles.button }, + text + ); + }, _this.renderItem = function (data, idx, all) { + var isLast = all.length - 1 === idx; + var wrapperStyle = _extends({}, styles.item); + var informationStyle = _extends({}, styles.information); + if (isLast) { + delete wrapperStyle.borderBottom; + wrapperStyle.marginBottom = '0px'; + informationStyle.marginBottom = '0px'; + } + return _react2.default.createElement( + 'div', + { key: idx, style: wrapperStyle }, + _react2.default.createElement( + 'div', + { style: styles.title }, + data.title, + _react2.default.createElement( + 'span', + { style: styles.datetime }, + data.datetime + ) + ), + _react2.default.createElement( + 'div', + { style: styles.desc }, + data.description + ), + _react2.default.createElement( + 'div', + { style: informationStyle }, + _react2.default.createElement( + 'div', + { style: styles.tagList }, + data.tags.map(function (item) { + return _this.renderTag(item, _this.handleTagClick.bind(_this, idx, item), idx); + }) + ), + _react2.default.createElement( + 'div', + { style: styles.operator }, + _react2.default.createElement( + 'span', + { style: styles.operatorItem }, + '\u70B9\u8D5E: ', + data.star + ), + _react2.default.createElement( + 'span', + { style: styles.operatorItem }, + '\u559C\u7231: ', + data.like + ), + _react2.default.createElement( + 'span', + { style: styles.operatorItem }, + '\u8BC4\u8BBA: ', + data.comment + ) + ) + ) + ); + }, _temp), _possibleConstructorReturn(_this, _ret); + } + + _createClass(ArticleList, [{ + key: 'render', + value: function render() { + var _props$dataSource = this.props.dataSource, + dataSource = _props$dataSource === undefined ? [] : _props$dataSource; + + return _react2.default.createElement( + _card2.default, + { className: 'article-list' }, + dataSource.map(this.renderItem) + ); + } + }]); + + return ArticleList; +}(_react.Component), _class.displayName = 'ArticleList', _temp2); +exports.default = ArticleList; + + +var styles = { + item: { + borderBottom: '1px solid #F4F4F4', + marginBottom: '15px' + }, + title: { + color: '#333', + fontSize: '16px', + marginBottom: '15px', + position: 'relative' + }, + datetime: { + position: 'absolute', + right: '10px', + fontSize: '12px', + color: '#9B9B9B' + }, + desc: { + color: '#999', + fontSize: '14px', + paddingBottom: '15px' + }, + information: { + display: 'flex', + flexDirection: 'row', + justifyContent: 'space-between', + marginBottom: '15px' + }, + button: { + marginRight: '10px' + }, + operator: { + paddingTop: '8px', + fontSize: '12px', + color: '#9B9B9B' + }, + operatorItem: { + marginRight: '5px' + } +}; +module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/TextSearchList/lib/ArticleList/ArticleList.scss b/templates/ice-design/blocks/TextSearchList/lib/ArticleList/ArticleList.scss new file mode 100644 index 0000000000..20e67a3b1e --- /dev/null +++ b/templates/ice-design/blocks/TextSearchList/lib/ArticleList/ArticleList.scss @@ -0,0 +1,5 @@ +@charset "UTF-8"; + +.article-list { + +} diff --git a/templates/ice-design/blocks/TextSearchList/lib/ArticleList/index.js b/templates/ice-design/blocks/TextSearchList/lib/ArticleList/index.js new file mode 100644 index 0000000000..27b570b2d7 --- /dev/null +++ b/templates/ice-design/blocks/TextSearchList/lib/ArticleList/index.js @@ -0,0 +1,14 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _ArticleList = require('./ArticleList'); + +var _ArticleList2 = _interopRequireDefault(_ArticleList); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +exports.default = _ArticleList2.default; +module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/TextSearchList/lib/Filter/Filter.js b/templates/ice-design/blocks/TextSearchList/lib/Filter/Filter.js new file mode 100644 index 0000000000..6a16d6c83c --- /dev/null +++ b/templates/ice-design/blocks/TextSearchList/lib/Filter/Filter.js @@ -0,0 +1,137 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = undefined; + +var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + +var _react = require('react'); + +var _react2 = _interopRequireDefault(_react); + +var _card = require('@icedesign/card'); + +var _card2 = _interopRequireDefault(_card); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } + +var Filter = function (_Component) { + _inherits(Filter, _Component); + + function Filter() { + _classCallCheck(this, Filter); + + return _possibleConstructorReturn(this, (Filter.__proto__ || Object.getPrototypeOf(Filter)).apply(this, arguments)); + } + + _createClass(Filter, [{ + key: 'render', + value: function render() { + return _react2.default.createElement( + _card2.default, + { style: styles.container }, + _react2.default.createElement( + 'div', + { style: styles.category }, + _react2.default.createElement( + 'span', + { style: styles.label }, + '\u6240\u5C5E\u7C7B\u76EE\uFF1A' + ), + _react2.default.createElement( + 'span', + { style: styles.item }, + '\u5168\u90E8' + ), + _react2.default.createElement( + 'span', + { style: styles.item }, + '\u7C7B\u76EE\u4E00' + ), + _react2.default.createElement( + 'span', + { style: styles.item }, + '\u7C7B\u76EE\u4E8C' + ), + _react2.default.createElement( + 'span', + { style: styles.item }, + '\u7C7B\u76EE\u4E09' + ), + _react2.default.createElement( + 'span', + { style: styles.item }, + '\u7C7B\u76EE\u56DB' + ) + ), + _react2.default.createElement( + 'div', + { style: styles.others }, + _react2.default.createElement( + 'span', + { style: styles.label }, + '\u5176\u5B83\u7B5B\u9009\uFF1A' + ), + _react2.default.createElement( + 'span', + { style: styles.item }, + '\u5168\u90E8' + ), + _react2.default.createElement( + 'span', + { style: styles.item }, + '\u7C7B\u76EE\u4E00' + ), + _react2.default.createElement( + 'span', + { style: styles.item }, + '\u7C7B\u76EE\u4E8C' + ), + _react2.default.createElement( + 'span', + { style: styles.item }, + '\u7C7B\u76EE\u4E09' + ), + _react2.default.createElement( + 'span', + { style: styles.item }, + '\u7C7B\u76EE\u56DB' + ) + ) + ); + } + }]); + + return Filter; +}(_react.Component); + +exports.default = Filter; + + +var styles = { + container: {}, + category: { + padding: '0 10px 15px', + borderBottom: '1px solid #eee' + }, + others: { + padding: '15px 10px 0' + }, + label: { + color: '#333', + fontSize: '14px', + marginRight: '10px' + }, + item: { + marginRight: '10px' + } +}; +module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/TextSearchList/lib/Filter/index.js b/templates/ice-design/blocks/TextSearchList/lib/Filter/index.js new file mode 100644 index 0000000000..3213b36325 --- /dev/null +++ b/templates/ice-design/blocks/TextSearchList/lib/Filter/index.js @@ -0,0 +1,14 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _Filter = require('./Filter'); + +var _Filter2 = _interopRequireDefault(_Filter); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +exports.default = _Filter2.default; +module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/TextSearchList/lib/TextSearchList.js b/templates/ice-design/blocks/TextSearchList/lib/TextSearchList.js new file mode 100644 index 0000000000..4a349c0129 --- /dev/null +++ b/templates/ice-design/blocks/TextSearchList/lib/TextSearchList.js @@ -0,0 +1,126 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = undefined; + +var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + +var _class, _temp; + +var _react = require('react'); + +var _react2 = _interopRequireDefault(_react); + +var _card = require('@icedesign/card'); + +var _card2 = _interopRequireDefault(_card); + +var _ArticleList = require('./ArticleList'); + +var _ArticleList2 = _interopRequireDefault(_ArticleList); + +var _Filter = require('./Filter'); + +var _Filter2 = _interopRequireDefault(_Filter); + +require('./TextSearchList.scss'); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } + +var Search = require('@icedesign/base/lib/search'); + +var dataSource = [{ + title: '越夏越嗨皮-7月官方营销活动-技能提升方向', + description: '商家通过V任务选择主播并达成合作,费用按照商品链接计算,一个商品为一个价格,建议主播在一场直播里最多接60个商品,并提供不少于两个小时的直播服务,每个商品讲解时间不少于5分钟。 ', + tags: ['直播', '大促', '简介'], + datetime: '2017年12月12日 18:00', + star: 130, + like: 233, + comment: 123 +}, { + title: '越夏越嗨皮-7月官方营销活动-技能提升方向', + description: '商家通过V任务选择主播并达成合作,费用按照商品链接计算,一个商品为一个价格,建议主播在一场直播里最多接60个商品,并提供不少于两个小时的直播服务,每个商品讲解时间不少于5分钟。 ', + tags: ['直播', '大促', '简介'], + datetime: '2017年12月12日 18:00', + star: 130, + like: 233, + comment: 123 +}, { + title: '越夏越嗨皮-7月官方营销活动-技能提升方向', + description: '商家通过V任务选择主播并达成合作,费用按照商品链接计算,一个商品为一个价格,建议主播在一场直播里最多接60个商品,并提供不少于两个小时的直播服务,每个商品讲解时间不少于5分钟。 ', + tags: ['直播', '大促', '简介'], + datetime: '2017年12月12日 18:00', + star: 130, + like: 233, + comment: 123 +}, { + title: '越夏越嗨皮-7月官方营销活动-技能提升方向', + description: '商家通过V任务选择主播并达成合作,费用按照商品链接计算,一个商品为一个价格,建议主播在一场直播里最多接60个商品,并提供不少于两个小时的直播服务,每个商品讲解时间不少于5分钟。 ', + tags: ['直播', '大促', '简介'], + datetime: '2017年12月12日 18:00', + star: 130, + like: 233, + comment: 123 +}, { + title: '越夏越嗨皮-7月官方营销活动-技能提升方向', + description: '商家通过V任务选择主播并达成合作,费用按照商品链接计算,一个商品为一个价格,建议主播在一场直播里最多接60个商品,并提供不少于两个小时的直播服务,每个商品讲解时间不少于5分钟。 ', + tags: ['直播', '大促', '简介'], + datetime: '2017年12月12日 18:00', + star: 130, + like: 233, + comment: 123 +}]; + +var TextSearchList = (_temp = _class = function (_Component) { + _inherits(TextSearchList, _Component); + + function TextSearchList() { + _classCallCheck(this, TextSearchList); + + return _possibleConstructorReturn(this, (TextSearchList.__proto__ || Object.getPrototypeOf(TextSearchList)).apply(this, arguments)); + } + + _createClass(TextSearchList, [{ + key: 'render', + value: function render() { + return _react2.default.createElement( + 'div', + { className: 'text-search-list' }, + _react2.default.createElement( + _card2.default, + { style: styles.searchWrap }, + _react2.default.createElement(Search, { + size: 'large', + inputWidth: 500, + searchText: '\u641C\u7D22', + placeholder: '\u8BF7\u8F93\u5165\u8981\u641C\u7D22\u7684\u5173\u952E\u8BCD\u6216\u5546\u54C1\u94FE\u63A5' + }) + ), + _react2.default.createElement(_Filter2.default, null), + _react2.default.createElement(_ArticleList2.default, { dataSource: dataSource }) + ); + } + }]); + + return TextSearchList; +}(_react.Component), _class.displayName = 'TextSearchList', _temp); +exports.default = TextSearchList; + + +var styles = { + searchWrap: { + display: 'flex', + justifyContent: 'center', + alignItems: 'center', + height: '80px' + } +}; +module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/TextSearchList/lib/TextSearchList.scss b/templates/ice-design/blocks/TextSearchList/lib/TextSearchList.scss new file mode 100644 index 0000000000..3af9c3cc90 --- /dev/null +++ b/templates/ice-design/blocks/TextSearchList/lib/TextSearchList.scss @@ -0,0 +1,5 @@ +@charset "UTF-8"; + +.text-search-list { + +} diff --git a/templates/ice-design/blocks/TextSearchList/lib/index.js b/templates/ice-design/blocks/TextSearchList/lib/index.js new file mode 100644 index 0000000000..8209da8ab3 --- /dev/null +++ b/templates/ice-design/blocks/TextSearchList/lib/index.js @@ -0,0 +1,14 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _TextSearchList = require('./TextSearchList'); + +var _TextSearchList2 = _interopRequireDefault(_TextSearchList); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +exports.default = _TextSearchList2.default; +module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/TextSearchList/mock/api.json b/templates/ice-design/blocks/TextSearchList/mock/api.json new file mode 100644 index 0000000000..e706430232 --- /dev/null +++ b/templates/ice-design/blocks/TextSearchList/mock/api.json @@ -0,0 +1,4 @@ +{ + "status": "success", + "data": {} +} diff --git a/templates/ice-design/blocks/TextSearchList/package.json b/templates/ice-design/blocks/TextSearchList/package.json new file mode 100644 index 0000000000..145a3a7235 --- /dev/null +++ b/templates/ice-design/blocks/TextSearchList/package.json @@ -0,0 +1,54 @@ +{ + "name": "@icedesign/text-search-list-block", + "version": "0.1.0", + "description": "文字搜索列表", + "files": [ + "src/", + "demo/", + "lib/", + "mock/" + ], + "author": { + "name": "ICE Team", + "email": "ice-admin@alibaba-inc.com" + }, + "repository": { + "type": "git", + "url": "https://github.com/alibaba/ice" + }, + "license": "MIT", + "keywords": [ + "ice", + "ice-block" + ], + "dependencies": { + "prop-types": "^15.5.8", + "@icedesign/base": "^0.1.0", + "@icedesign/card": "^0.1.0" + }, + "devDependencies": { + "babel-eslint": "^8.0.3", + "eslint": "^4.13.1", + "eslint-plugin-babel": "^4.1.1", + "eslint-plugin-react": "^7.5.1", + "@icedesign/demo-layout": "^0.1.0", + "eslint-plugin-import": "^2.8.0", + "eslint-config-airbnb": "^16.1.0", + "eslint-plugin-jsx-a11y": "^6.0.3", + "@icedesign/skin": "^0.1.2" + }, + "blockConfig": { + "name": "text-search-list", + "description": "文字搜索列表", + "chinese": "文字搜索列表", + "category": "list", + "snapshot": "https://gw.alicdn.com/tfs/TB1bcxnir_I8KJjy1XaXXbsxpXa-1906-1536.png", + "sketchURL": "", + "icelandURL": "", + "themePackage": "@icedesign/skin" + }, + "scripts": { + "lint": "eslint . --ext '.js,.jsx' --fix", + "prepublish": "npm run lint" + } +} diff --git a/templates/ice-design/blocks/TextSearchList/src/ArticleList/ArticleList.jsx b/templates/ice-design/blocks/TextSearchList/src/ArticleList/ArticleList.jsx new file mode 100644 index 0000000000..88aa015df6 --- /dev/null +++ b/templates/ice-design/blocks/TextSearchList/src/ArticleList/ArticleList.jsx @@ -0,0 +1,107 @@ +import React, { Component } from 'react'; +import IceCard from '@icedesign/card'; +import { Button } from '@icedesign/base'; +import './ArticleList.scss'; + +export default class ArticleList extends Component { + static displayName = 'ArticleList'; + + handleTagClick = (idx, text) => { + // handler + console.log('handleTagClick:', text); + }; + + renderTag = (text, onClick, idx) => { + return ( + + ); + }; + + renderItem = (data, idx, all) => { + const isLast = all.length - 1 === idx; + const wrapperStyle = { ...styles.item }; + const informationStyle = { ...styles.information }; + if (isLast) { + delete wrapperStyle.borderBottom; + wrapperStyle.marginBottom = '0px'; + informationStyle.marginBottom = '0px'; + } + return ( +
    +
    + {data.title} + {data.datetime} +
    +
    {data.description}
    +
    +
    + {data.tags.map((item) => { + return this.renderTag( + item, + this.handleTagClick.bind(this, idx, item), + idx + ); + })} +
    +
    + 点赞: {data.star} + 喜爱: {data.like} + 评论: {data.comment} +
    +
    +
    + ); + }; + + render() { + const { dataSource = [] } = this.props; + return ( + + {dataSource.map(this.renderItem)} + + ); + } +} + +const styles = { + item: { + borderBottom: '1px solid #F4F4F4', + marginBottom: '15px', + }, + title: { + color: '#333', + fontSize: '16px', + marginBottom: '15px', + position: 'relative', + }, + datetime: { + position: 'absolute', + right: '10px', + fontSize: '12px', + color: '#9B9B9B', + }, + desc: { + color: '#999', + fontSize: '14px', + paddingBottom: '15px', + }, + information: { + display: 'flex', + flexDirection: 'row', + justifyContent: 'space-between', + marginBottom: '15px', + }, + button: { + marginRight: '10px', + }, + operator: { + paddingTop: '8px', + fontSize: '12px', + color: '#9B9B9B', + }, + operatorItem: { + marginRight: '5px', + }, +}; diff --git a/templates/ice-design/blocks/TextSearchList/src/ArticleList/ArticleList.scss b/templates/ice-design/blocks/TextSearchList/src/ArticleList/ArticleList.scss new file mode 100644 index 0000000000..20e67a3b1e --- /dev/null +++ b/templates/ice-design/blocks/TextSearchList/src/ArticleList/ArticleList.scss @@ -0,0 +1,5 @@ +@charset "UTF-8"; + +.article-list { + +} diff --git a/templates/ice-design/blocks/TextSearchList/src/ArticleList/index.js b/templates/ice-design/blocks/TextSearchList/src/ArticleList/index.js new file mode 100644 index 0000000000..86716f32ff --- /dev/null +++ b/templates/ice-design/blocks/TextSearchList/src/ArticleList/index.js @@ -0,0 +1,3 @@ +import ArticleList from './ArticleList'; + +export default ArticleList; diff --git a/templates/ice-design/blocks/TextSearchList/src/Filter/Filter.jsx b/templates/ice-design/blocks/TextSearchList/src/Filter/Filter.jsx new file mode 100644 index 0000000000..29bd959ef4 --- /dev/null +++ b/templates/ice-design/blocks/TextSearchList/src/Filter/Filter.jsx @@ -0,0 +1,46 @@ +import React, { Component } from 'react'; +import IceCard from '@icedesign/card'; + +export default class Filter extends Component { + render() { + return ( + +
    + 所属类目: + 全部 + 类目一 + 类目二 + 类目三 + 类目四 +
    +
    + 其它筛选: + 全部 + 类目一 + 类目二 + 类目三 + 类目四 +
    +
    + ); + } +} + +const styles = { + container: {}, + category: { + padding: '0 10px 15px', + borderBottom: '1px solid #eee', + }, + others: { + padding: '15px 10px 0', + }, + label: { + color: '#333', + fontSize: '14px', + marginRight: '10px', + }, + item: { + marginRight: '10px', + }, +}; diff --git a/templates/ice-design/blocks/TextSearchList/src/Filter/index.js b/templates/ice-design/blocks/TextSearchList/src/Filter/index.js new file mode 100644 index 0000000000..6ebc41c0e4 --- /dev/null +++ b/templates/ice-design/blocks/TextSearchList/src/Filter/index.js @@ -0,0 +1,3 @@ +import Filter from './Filter'; + +export default Filter; diff --git a/templates/ice-design/blocks/TextSearchList/src/TextSearchList.jsx b/templates/ice-design/blocks/TextSearchList/src/TextSearchList.jsx new file mode 100644 index 0000000000..2b648172dd --- /dev/null +++ b/templates/ice-design/blocks/TextSearchList/src/TextSearchList.jsx @@ -0,0 +1,89 @@ +import React, { Component } from 'react'; +import IceCard from '@icedesign/card'; +import { Search } from '@icedesign/base'; +import ArticleList from './ArticleList'; +import Filter from './Filter'; +import './TextSearchList.scss'; + +const dataSource = [ + { + title: '越夏越嗨皮-7月官方营销活动-技能提升方向', + description: + '商家通过V任务选择主播并达成合作,费用按照商品链接计算,一个商品为一个价格,建议主播在一场直播里最多接60个商品,并提供不少于两个小时的直播服务,每个商品讲解时间不少于5分钟。 ', + tags: ['直播', '大促', '简介'], + datetime: '2017年12月12日 18:00', + star: 130, + like: 233, + comment: 123, + }, + { + title: '越夏越嗨皮-7月官方营销活动-技能提升方向', + description: + '商家通过V任务选择主播并达成合作,费用按照商品链接计算,一个商品为一个价格,建议主播在一场直播里最多接60个商品,并提供不少于两个小时的直播服务,每个商品讲解时间不少于5分钟。 ', + tags: ['直播', '大促', '简介'], + datetime: '2017年12月12日 18:00', + star: 130, + like: 233, + comment: 123, + }, + { + title: '越夏越嗨皮-7月官方营销活动-技能提升方向', + description: + '商家通过V任务选择主播并达成合作,费用按照商品链接计算,一个商品为一个价格,建议主播在一场直播里最多接60个商品,并提供不少于两个小时的直播服务,每个商品讲解时间不少于5分钟。 ', + tags: ['直播', '大促', '简介'], + datetime: '2017年12月12日 18:00', + star: 130, + like: 233, + comment: 123, + }, + { + title: '越夏越嗨皮-7月官方营销活动-技能提升方向', + description: + '商家通过V任务选择主播并达成合作,费用按照商品链接计算,一个商品为一个价格,建议主播在一场直播里最多接60个商品,并提供不少于两个小时的直播服务,每个商品讲解时间不少于5分钟。 ', + tags: ['直播', '大促', '简介'], + datetime: '2017年12月12日 18:00', + star: 130, + like: 233, + comment: 123, + }, + { + title: '越夏越嗨皮-7月官方营销活动-技能提升方向', + description: + '商家通过V任务选择主播并达成合作,费用按照商品链接计算,一个商品为一个价格,建议主播在一场直播里最多接60个商品,并提供不少于两个小时的直播服务,每个商品讲解时间不少于5分钟。 ', + tags: ['直播', '大促', '简介'], + datetime: '2017年12月12日 18:00', + star: 130, + like: 233, + comment: 123, + }, +]; + +export default class TextSearchList extends Component { + static displayName = 'TextSearchList'; + + render() { + return ( +
    + + + + + +
    + ); + } +} + +const styles = { + searchWrap: { + display: 'flex', + justifyContent: 'center', + alignItems: 'center', + height: '80px', + }, +}; diff --git a/templates/ice-design/blocks/TextSearchList/src/TextSearchList.scss b/templates/ice-design/blocks/TextSearchList/src/TextSearchList.scss new file mode 100644 index 0000000000..3af9c3cc90 --- /dev/null +++ b/templates/ice-design/blocks/TextSearchList/src/TextSearchList.scss @@ -0,0 +1,5 @@ +@charset "UTF-8"; + +.text-search-list { + +} diff --git a/templates/ice-design/blocks/TextSearchList/src/index.js b/templates/ice-design/blocks/TextSearchList/src/index.js new file mode 100644 index 0000000000..f6139c72bf --- /dev/null +++ b/templates/ice-design/blocks/TextSearchList/src/index.js @@ -0,0 +1,3 @@ +import TextSearchList from './TextSearchList'; + +export default TextSearchList; diff --git a/templates/ice-design/blocks/TimeFilterTable/.editorconfig b/templates/ice-design/blocks/TimeFilterTable/.editorconfig new file mode 100644 index 0000000000..22ef5ace54 --- /dev/null +++ b/templates/ice-design/blocks/TimeFilterTable/.editorconfig @@ -0,0 +1,16 @@ +# http://editorconfig.org +root = true + +[*] +indent_style = space +indent_size = 2 +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false + +[makefile] +indent_style = tab +indent_size = 4 diff --git a/templates/ice-design/blocks/TimeFilterTable/.eslintignore b/templates/ice-design/blocks/TimeFilterTable/.eslintignore new file mode 100644 index 0000000000..3b437e6141 --- /dev/null +++ b/templates/ice-design/blocks/TimeFilterTable/.eslintignore @@ -0,0 +1,11 @@ +# 忽略目录 +build/ +tests/ +demo/ + +# node 覆盖率文件 +coverage/ + +# 忽略文件 +**/*-min.js +**/*.min.js diff --git a/templates/ice-design/blocks/TimeFilterTable/.eslintrc b/templates/ice-design/blocks/TimeFilterTable/.eslintrc new file mode 100644 index 0000000000..ca5bbf3164 --- /dev/null +++ b/templates/ice-design/blocks/TimeFilterTable/.eslintrc @@ -0,0 +1,5 @@ +{ + "root": true, + "parser": "babel-eslint", + "extends": "@ali/eslint-config-tbfed" +} diff --git a/templates/ice-design/blocks/TimeFilterTable/.gitignore b/templates/ice-design/blocks/TimeFilterTable/.gitignore new file mode 100644 index 0000000000..51115c22b9 --- /dev/null +++ b/templates/ice-design/blocks/TimeFilterTable/.gitignore @@ -0,0 +1,11 @@ +*.swp +*.dia~ +.idea/ +.DS_Store + +npm-debug.log +yarn-error.log +node_modules/ +tmp/ + +.happypack \ No newline at end of file diff --git a/templates/ice-design/blocks/TimeFilterTable/README.md b/templates/ice-design/blocks/TimeFilterTable/README.md new file mode 100644 index 0000000000..42d435daba --- /dev/null +++ b/templates/ice-design/blocks/TimeFilterTable/README.md @@ -0,0 +1,12 @@ +# time-filter-table + +简介:时间筛选表格 + +支持时间筛选的表格 + +![截图](https://img.alicdn.com/tfs/TB12iaMjcrI8KJjy0FhXXbfnpXa-1904-1004.png) + +## 更多 + +* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) +* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) diff --git a/templates/ice-design/blocks/TimeFilterTable/abc.json b/templates/ice-design/blocks/TimeFilterTable/abc.json new file mode 100644 index 0000000000..73622d94e6 --- /dev/null +++ b/templates/ice-design/blocks/TimeFilterTable/abc.json @@ -0,0 +1,14 @@ +{ + "name": "time-filter-table", + "description": "支持时间筛选的表格", + "type": "ice", + "repository": { + "type": "block", + "template": "@ali/ice-template-block", + "templateVersion": "0.2.1" + }, + "options": { + "styleAutoMixin": true, + "themePackage": "@alife/dpl-ice-design" + } +} \ No newline at end of file diff --git a/templates/ice-design/blocks/TimeFilterTable/demo/index.html b/templates/ice-design/blocks/TimeFilterTable/demo/index.html new file mode 100644 index 0000000000..9d2d3a663d --- /dev/null +++ b/templates/ice-design/blocks/TimeFilterTable/demo/index.html @@ -0,0 +1,19 @@ + + + + + + + + Document + + + + +
    + + + + + + diff --git a/templates/ice-design/blocks/TimeFilterTable/demo/index.js b/templates/ice-design/blocks/TimeFilterTable/demo/index.js new file mode 100644 index 0000000000..c35c738fa4 --- /dev/null +++ b/templates/ice-design/blocks/TimeFilterTable/demo/index.js @@ -0,0 +1,19 @@ +import React, {Component} from 'react'; +import {render} from 'react-dom'; + +// 载入默认全局样式 normalize 、.clearfix 和一些 mixin 方法等 +import '@alife/next/lib/_components/@alife/next-core/lib/index.scss'; + +import DemoLayout from '@ali/ice-demo-layout'; +import Block from '../src'; + +const props = { + // ... +}; + +render( + + + , + document.querySelector('#mountNode') +); diff --git a/templates/ice-design/blocks/TimeFilterTable/mock/time-filter-table.json b/templates/ice-design/blocks/TimeFilterTable/mock/time-filter-table.json new file mode 100644 index 0000000000..790a0c07d2 --- /dev/null +++ b/templates/ice-design/blocks/TimeFilterTable/mock/time-filter-table.json @@ -0,0 +1,52 @@ +{ + "status": "SUCCESS", + "data": { + "total": 100, + "pageSize": 10, + "currentPage": 1, + "list": [ + { + "title": "活动的标题文案", + "memo": "需要备注的说明文案", + "validity": "长期有效", + "owner": "姓名" + }, + { + "title": "活动的标题文案", + "memo": "需要备注的说明文案", + "validity": "长期有效", + "owner": "姓名" + }, + { + "title": "活动的标题文案", + "memo": "需要备注的说明文案", + "validity": "长期有效", + "owner": "姓名" + }, + { + "title": "活动的标题文案", + "memo": "需要备注的说明文案", + "validity": "长期有效", + "owner": "姓名" + }, + { + "title": "活动的标题文案", + "memo": "需要备注的说明文案", + "validity": "长期有效", + "owner": "姓名" + }, + { + "title": "活动的标题文案", + "memo": "需要备注的说明文案", + "validity": "长期有效", + "owner": "姓名" + }, + { + "title": "活动的标题文案", + "memo": "需要备注的说明文案", + "validity": "长期有效", + "owner": "姓名" + } + ] + } +} diff --git a/templates/ice-design/blocks/TimeFilterTable/package.json b/templates/ice-design/blocks/TimeFilterTable/package.json new file mode 100644 index 0000000000..7dd5704fa1 --- /dev/null +++ b/templates/ice-design/blocks/TimeFilterTable/package.json @@ -0,0 +1,53 @@ +{ + "name": "@ali/time-filter-table", + "version": "0.1.2", + "description": "支持时间筛选的表格", + "files": [ + "src/", + "demo/" + ], + "author": { + "name": "浩睿", + "email": "" + }, + "repository": { + "type": "git", + "url": "https://gitlab.alibaba-inc.com/ice/workspace-outside/tree/master/templates/ice-design/blocks/time-filter-table.git" + }, + "license": "ISC", + "keywords": [ + "ice", + "ice-block" + ], + "dependencies": { + "@ali/ice-card": "^0.1.1", + "@ali/ice-data-binder": "^0.5.0", + "@ali/ice-label": "^0.2.1", + "@alife/dpl-ice-design": "^1.3.1", + "@alife/next": "0.x", + "prop-types": "^15.5.8" + }, + "devDependencies": { + "@ali/ice-demo-layout": "latest", + "@alife/ice-skin": "^5.0.3", + "@ali/eslint-config-tbfed": "^0.6.1", + "@ali/eslint-plugin-tbfed": "^1.0.2", + "babel-eslint": "^6.1.2", + "eslint": "^3.19.0", + "eslint-plugin-babel": "^4.1.1", + "eslint-plugin-react": "^6.10.3", + "@alife/dpl-ice-design": "^1.2.0" + }, + "publishConfig": { + "registry": "http://registry.npm.alibaba-inc.com/" + }, + "blockConfig": { + "name": "time-filter-table", + "description": "支持时间筛选的表格", + "chinese": "时间筛选表格", + "category": "table", + "snapshot": "https://img.alicdn.com/tfs/TB12iaMjcrI8KJjy0FhXXbfnpXa-1904-1004.png", + "sketchURL": "", + "icelandURL": "" + } +} diff --git a/templates/ice-design/blocks/TimeFilterTable/src/TimeFilterTable.jsx b/templates/ice-design/blocks/TimeFilterTable/src/TimeFilterTable.jsx new file mode 100644 index 0000000000..5f6a046c64 --- /dev/null +++ b/templates/ice-design/blocks/TimeFilterTable/src/TimeFilterTable.jsx @@ -0,0 +1,168 @@ +'use strict'; + +import React, { Component } from 'react'; +import PropTypes from 'prop-types'; +import IceCard from '@ali/ice-card'; +import './TimeFilterTable.scss'; +import { Table, Pagination, Tab, Radio, Search } from '@alife/next'; +import DataBinder from '@ali/ice-data-binder'; +import IceLabel from '@ali/ice-label'; + +const { Group: RadioGroup } = Radio; + +// 详细用法请参见 http://ice.alibaba-inc.com/modules/ice-data-binder +@DataBinder({ + tableData: { + // 详细请求配置请参见 https://github.com/axios/axios + url: '/mock/time-filter-table.json', + params: { + page: 1 + }, + defaultBindingData: { + list: [], + total: 100, + pageSize: 10, + currentPage: 1 + } + } +}) +export default class TimeFilterTable extends Component { + static displayName = 'TimeFilterTable'; + + static propTypes = {}; + + static defaultProps = {}; + + constructor(props) { + super(props); + + this.queryCache = {}; + this.state = { + timeRange: 'day' + }; + } + + // ICE: React Component 的生命周期 + // http://ice.alibaba-inc.com/docs/guide/intro-react#React-组件的生命周期 + componentWillMount() {} + + componentDidMount() { + this.queryCache.page = 1; + this.fetchData(); + } + + componentWillReceiveProps(nextProps, nextContext) {} + + shouldComponentUpdate(nextProps, nextState) { + return true; + } + + componentWillUnmount() {} + + fetchData = () => { + this.props.updateBindingData('tableData', { + params: this.queryCache + }); + }; + + changePage = currentPage => { + this.queryCache.page = currentPage; + this.fetchData(); + }; + + onDateChange = date => { + this.queryCache.timeRange = date; + this.fetchData(); + this.setState({ + timeRange: date + }); + }; + + onSearch = value => { + this.queryCache.keywords = value.key; + this.fetchData(); + }; + + renderOrder = (value, index, record) => { + return {index + 1}; + }; + + render() { + const tableData = this.props.bindingData.tableData; + + return ( +
    + +
    + 选择活动日期范围: + +
    +
    + +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + ); + } +} + +const styles = { + filterCard: { + display: 'flex', + alignItems: 'center', + justifyContent: 'space-between' + }, + pagination: { + textAlign: 'right', + paddingTop: '20px', + paddingBottom: '10px' + }, + tableCard: { + padding: 10 + } +}; diff --git a/templates/ice-design/blocks/TimeFilterTable/src/TimeFilterTable.scss b/templates/ice-design/blocks/TimeFilterTable/src/TimeFilterTable.scss new file mode 100644 index 0000000000..fb4d0665a7 --- /dev/null +++ b/templates/ice-design/blocks/TimeFilterTable/src/TimeFilterTable.scss @@ -0,0 +1,5 @@ +@charset "UTF-8"; + +.time-filter-table { + +} diff --git a/templates/ice-design/blocks/TimeFilterTable/src/index.js b/templates/ice-design/blocks/TimeFilterTable/src/index.js new file mode 100644 index 0000000000..664bd11289 --- /dev/null +++ b/templates/ice-design/blocks/TimeFilterTable/src/index.js @@ -0,0 +1,3 @@ +import TimeFilterTable from './TimeFilterTable'; + +export default TimeFilterTable; diff --git a/templates/ice-design/blocks/TopicCard/.editorconfig b/templates/ice-design/blocks/TopicCard/.editorconfig new file mode 100644 index 0000000000..22ef5ace54 --- /dev/null +++ b/templates/ice-design/blocks/TopicCard/.editorconfig @@ -0,0 +1,16 @@ +# http://editorconfig.org +root = true + +[*] +indent_style = space +indent_size = 2 +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false + +[makefile] +indent_style = tab +indent_size = 4 diff --git a/templates/ice-design/blocks/TopicCard/.eslintignore b/templates/ice-design/blocks/TopicCard/.eslintignore new file mode 100644 index 0000000000..2d5ec592a3 --- /dev/null +++ b/templates/ice-design/blocks/TopicCard/.eslintignore @@ -0,0 +1,12 @@ +# 忽略目录 +build/ +tests/ +demo/ +lib/ + +# node 覆盖率文件 +coverage/ + +# 忽略文件 +**/*-min.js +**/*.min.js diff --git a/templates/ice-design/blocks/TopicCard/.eslintrc b/templates/ice-design/blocks/TopicCard/.eslintrc new file mode 100644 index 0000000000..7cc397841e --- /dev/null +++ b/templates/ice-design/blocks/TopicCard/.eslintrc @@ -0,0 +1,61 @@ +{ + "root": true, + "parser": "babel-eslint", + "extends": "eslint-config-airbnb", + "parserOptions": { + "ecmaVersion": 6, + "ecmaFeatures": { + "jsx": true, + "experimentalObjectRestSpread": true + } + }, + "env": { + "browser": true + }, + "plugins": [ + "react", + "babel" + ], + "rules": { + "react/forbid-prop-types": 0, + "jsx-a11y/label-has-for": 0, + "jsx-a11y/no-static-element-interactions": 0, + "jsx-a11y/anchor-has-content": 0, + "jsx-a11y/click-events-have-key-events": 0, + "jsx-a11y/anchor-is-valid": 0, + "react/no-array-index-key": 0, + "func-names": 0, + "arrow-body-style": 0, + "no-use-before-define": 1, + "react/sort-comp": 0, + "react/prop-types": 0, + "react/jsx-first-prop-new-line": 0, + "react/jsx-filename-extension": [ + 1, + { + "extensions": [ + ".js", + ".jsx" + ] + } + ], + "import/extensions": 0, + "import/no-unresolved": 0, + "import/no-extraneous-dependencies": 0, + "prefer-destructuring": 0, + "no-param-reassign": 0, + "no-return-assign": 0, + "max-len": 0, + "consistent-return": 0, + "no-redeclare": 0, + "react/require-extension": 0, + "react/no-danger": 0, + "comma-dangle": [ + "error", + "always-multiline" + ], + "function-paren-newline": 0, + "object-curly-newline": 0, + "no-restricted-globals": 0 + } +} diff --git a/templates/ice-design/blocks/TopicCard/.gitignore b/templates/ice-design/blocks/TopicCard/.gitignore new file mode 100644 index 0000000000..cc45d6fb3c --- /dev/null +++ b/templates/ice-design/blocks/TopicCard/.gitignore @@ -0,0 +1,13 @@ + +*.swp +*.dia~ +.idea/ +.DS_Store + +npm-debug.log +yarn-error.log +node_modules/ +tmp/ + +# happypack 缓存 +.happypack diff --git a/templates/ice-design/blocks/TopicCard/README.md b/templates/ice-design/blocks/TopicCard/README.md new file mode 100644 index 0000000000..20077445f6 --- /dev/null +++ b/templates/ice-design/blocks/TopicCard/README.md @@ -0,0 +1,10 @@ +# topic-card + +简介:核心数据 + +![截图](https://img.alicdn.com/tfs/TB1xH9df5qAXuNjy1XdXXaYcVXa-1796-290.png) + +## 更多 + +* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) +* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) diff --git a/templates/ice-design/blocks/TopicCard/demo/index.html b/templates/ice-design/blocks/TopicCard/demo/index.html new file mode 100644 index 0000000000..cb0422f8d9 --- /dev/null +++ b/templates/ice-design/blocks/TopicCard/demo/index.html @@ -0,0 +1,18 @@ + + + + + + + + Document + + + + +
    + + + + + diff --git a/templates/ice-design/blocks/TopicCard/demo/index.js b/templates/ice-design/blocks/TopicCard/demo/index.js new file mode 100644 index 0000000000..4d6acd389a --- /dev/null +++ b/templates/ice-design/blocks/TopicCard/demo/index.js @@ -0,0 +1,19 @@ +import React, { Component } from 'react'; +import { render } from 'react-dom'; + +// 载入默认全局样式 normalize 、.clearfix 和一些 mixin 方法等 +import '@icedesign/base/lib/_components/@alife/next-core/lib/index.scss'; + +import DemoLayout from '@icedesign/demo-layout'; +import Block from '../src'; + +const props = { + // ... +}; + +render( + + + , + document.querySelector('#mountNode') +); diff --git a/templates/ice-design/blocks/TopicCard/lib/TopicCard.js b/templates/ice-design/blocks/TopicCard/lib/TopicCard.js new file mode 100644 index 0000000000..03bf2c68c8 --- /dev/null +++ b/templates/ice-design/blocks/TopicCard/lib/TopicCard.js @@ -0,0 +1,193 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = undefined; + +var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + +var _class, _temp; + +var _react = require('react'); + +var _react2 = _interopRequireDefault(_react); + +var _card = require('@icedesign/card'); + +var _card2 = _interopRequireDefault(_card); + +require('./TopicCard.scss'); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } + +var dataSource = [{ + meta: '话题曝光', + total: '56799', + up: '100', + down: '100', + icon: '//img.alicdn.com/tfs/TB1nQ4hgILJ8KJjy0FnXXcFDpXa-132-126.png' +}, { + meta: '话题曝光', + total: '56799', + up: '100', + down: '100', + icon: '//img.alicdn.com/tfs/TB1OuuTgL6H8KJjy0FjXXaXepXa-132-126.png' +}, { + meta: '话题曝光', + total: '56799', + up: '100', + down: '100', + icon: '//img.alicdn.com/tfs/TB1aTaIgRTH8KJjy0FiXXcRsXXa-132-123.png' +}, { + meta: '话题曝光', + total: '56799', + up: '100', + down: '100', + icon: '//img.alicdn.com/tfs/TB1dTaIgRTH8KJjy0FiXXcRsXXa-120-120.png' +}, { + meta: '话题曝光', + total: '56799', + up: '100', + down: '100', + icon: '//img.alicdn.com/tfs/TB1OuuTgL6H8KJjy0FjXXaXepXa-132-126.png' +}]; + +var TopicCard = (_temp = _class = function (_Component) { + _inherits(TopicCard, _Component); + + function TopicCard() { + _classCallCheck(this, TopicCard); + + return _possibleConstructorReturn(this, (TopicCard.__proto__ || Object.getPrototypeOf(TopicCard)).apply(this, arguments)); + } + + _createClass(TopicCard, [{ + key: 'shouldComponentUpdate', + value: function shouldComponentUpdate() { + return false; + } + }, { + key: 'render', + value: function render() { + return _react2.default.createElement( + _card2.default, + { style: styles.container, className: 'tab-card', title: '\u6570\u636E\u6982\u89C8' }, + _react2.default.createElement( + 'div', + { className: 'topic-card' }, + _react2.default.createElement( + 'div', + { style: styles.horizontalWraper }, + dataSource.map(function (item, idx) { + return _react2.default.createElement( + 'div', + { + style: styles.topicCardItem, + className: 'topic-card-item', + key: 'card-item-' + idx + }, + _react2.default.createElement( + 'div', + { style: styles.cover }, + _react2.default.createElement('img', { alt: 'icon', src: item.icon, style: styles.icon }) + ), + _react2.default.createElement( + 'div', + { style: styles.content }, + _react2.default.createElement( + 'div', + { style: styles.meta }, + item.meta + ), + _react2.default.createElement( + 'div', + { style: styles.total }, + item.total + ), + _react2.default.createElement( + 'div', + { style: styles.compareText }, + '\u8F83\u524D\u65E5 ', + _react2.default.createElement( + 'span', + { style: styles.up }, + '\u2191+', + item.up + ) + ), + _react2.default.createElement( + 'div', + { style: styles.compareText }, + '\u8FD17\u5929 ', + _react2.default.createElement( + 'span', + { style: styles.down }, + '\u2193-', + item.down + ) + ) + ) + ); + }) + ) + ) + ); + } + }]); + + return TopicCard; +}(_react.Component), _class.displayName = 'TopicCard', _temp); +exports.default = TopicCard; + + +var styles = { + container: { + margin: '0 0 20px 0' + }, + icon: { + width: '44px', + height: '41px' + }, + horizontalWraper: { + display: 'flex', + flexDirection: 'row', + flexWrap: 'wrap' + }, + content: {}, + cover: { + backgroundColor: '#e9f1ff', + marginRight: '10px', + height: '70px', + width: '70px', + borderRadius: '70px', + display: 'flex', + alignItems: 'center', + justifyContent: 'center' + }, + meta: { + fontSize: '12px', + color: '#333333' + }, + total: { + fontSize: '24px', + color: '#333333' + }, + compareText: { + fontSize: '12px', + color: '#999999' + }, + up: { + color: '#fc5848' + }, + down: { + color: '#64d874' + } +}; +module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/TopicCard/lib/TopicCard.scss b/templates/ice-design/blocks/TopicCard/lib/TopicCard.scss new file mode 100644 index 0000000000..d0e76145c3 --- /dev/null +++ b/templates/ice-design/blocks/TopicCard/lib/TopicCard.scss @@ -0,0 +1,13 @@ +@charset "UTF-8"; + +.topic-card { + .topic-card-item { + display: flex; + flex-direction: row; + width: 165px; + margin: 10px 22px 10px 0; + &:nth-child(5n) { + margin-right: 0; + } + } +} diff --git a/templates/ice-design/blocks/TopicCard/lib/index.js b/templates/ice-design/blocks/TopicCard/lib/index.js new file mode 100644 index 0000000000..562519a4f4 --- /dev/null +++ b/templates/ice-design/blocks/TopicCard/lib/index.js @@ -0,0 +1,14 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _TopicCard = require('./TopicCard'); + +var _TopicCard2 = _interopRequireDefault(_TopicCard); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +exports.default = _TopicCard2.default; +module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/TopicCard/mock/api.json b/templates/ice-design/blocks/TopicCard/mock/api.json new file mode 100644 index 0000000000..e706430232 --- /dev/null +++ b/templates/ice-design/blocks/TopicCard/mock/api.json @@ -0,0 +1,4 @@ +{ + "status": "success", + "data": {} +} diff --git a/templates/ice-design/blocks/TopicCard/package.json b/templates/ice-design/blocks/TopicCard/package.json new file mode 100644 index 0000000000..9c18cdbe3c --- /dev/null +++ b/templates/ice-design/blocks/TopicCard/package.json @@ -0,0 +1,56 @@ +{ + "name": "@icedesign/topic-card-block-block", + "version": "0.1.0", + "description": "", + "main": "lib/index.js", + "files": [ + "src/", + "demo/", + "lib/", + "mock/" + ], + "author": { + "name": "ICE Team", + "email": "ice-admin@alibaba-inc.com" + }, + "repository": { + "type": "git", + "url": "https://github.com/alibaba/ice" + }, + "license": "MIT", + "keywords": [ + "ice", + "ice-block" + ], + "dependencies": { + "@icedesign/base": "^0.1.0", + "@icedesign/card": "^0.1.0", + "prop-types": "^15.5.8" + }, + "devDependencies": { + "@icedesign/demo-layout": "^0.1.2", + "@icedesign/layout": "^0.1.0", + "babel-eslint": "^8.0.3", + "eslint": "^4.13.1", + "eslint-plugin-babel": "^4.1.1", + "eslint-plugin-react": "^7.5.1", + "eslint-plugin-import": "^2.8.0", + "eslint-config-airbnb": "^16.1.0", + "eslint-plugin-jsx-a11y": "^6.0.3", + "@icedesign/skin": "^0.1.2" + }, + "blockConfig": { + "name": "topic-card", + "description": "核心数据", + "chinese": "核心数据", + "category": "data-display", + "snapshot": "https://img.alicdn.com/tfs/TB1xH9df5qAXuNjy1XdXXaYcVXa-1796-290.png", + "sketchURL": "", + "icelandURL": "", + "themePackage": "@icedesign/skin" + }, + "scripts": { + "lint": "eslint . --ext '.js,.jsx' --fix", + "prepublish": "npm run lint" + } +} diff --git a/templates/ice-design/blocks/TopicCard/src/TopicCard.jsx b/templates/ice-design/blocks/TopicCard/src/TopicCard.jsx new file mode 100644 index 0000000000..3d7e9efbfa --- /dev/null +++ b/templates/ice-design/blocks/TopicCard/src/TopicCard.jsx @@ -0,0 +1,127 @@ +import React, { Component } from 'react'; +import IceCard from '@icedesign/card'; +import './TopicCard.scss'; + +const dataSource = [ + { + meta: '话题曝光', + total: '56799', + up: '100', + down: '100', + icon: '//img.alicdn.com/tfs/TB1nQ4hgILJ8KJjy0FnXXcFDpXa-132-126.png', + }, + { + meta: '话题曝光', + total: '56799', + up: '100', + down: '100', + icon: '//img.alicdn.com/tfs/TB1OuuTgL6H8KJjy0FjXXaXepXa-132-126.png', + }, + { + meta: '话题曝光', + total: '56799', + up: '100', + down: '100', + icon: '//img.alicdn.com/tfs/TB1aTaIgRTH8KJjy0FiXXcRsXXa-132-123.png', + }, + { + meta: '话题曝光', + total: '56799', + up: '100', + down: '100', + icon: '//img.alicdn.com/tfs/TB1dTaIgRTH8KJjy0FiXXcRsXXa-120-120.png', + }, + { + meta: '话题曝光', + total: '56799', + up: '100', + down: '100', + icon: '//img.alicdn.com/tfs/TB1OuuTgL6H8KJjy0FjXXaXepXa-132-126.png', + }, +]; + +export default class TopicCard extends Component { + static displayName = 'TopicCard'; + + shouldComponentUpdate() { + return false; + } + + render() { + return ( + +
    +
    + {dataSource.map((item, idx) => { + return ( +
    +
    + icon +
    +
    +
    {item.meta}
    +
    {item.total}
    +
    + 较前日 ↑+{item.up} +
    +
    + 近7天 ↓-{item.down} +
    +
    +
    + ); + })} +
    +
    +
    + ); + } +} + +const styles = { + container: { + margin: '0 0 20px 0', + }, + icon: { + width: '44px', + height: '41px', + }, + horizontalWraper: { + display: 'flex', + flexDirection: 'row', + flexWrap: 'wrap', + }, + content: {}, + cover: { + backgroundColor: '#e9f1ff', + marginRight: '10px', + height: '70px', + width: '70px', + borderRadius: '70px', + display: 'flex', + alignItems: 'center', + justifyContent: 'center', + }, + meta: { + fontSize: '12px', + color: '#333333', + }, + total: { + fontSize: '24px', + color: '#333333', + }, + compareText: { + fontSize: '12px', + color: '#999999', + }, + up: { + color: '#fc5848', + }, + down: { + color: '#64d874', + }, +}; diff --git a/templates/ice-design/blocks/TopicCard/src/TopicCard.scss b/templates/ice-design/blocks/TopicCard/src/TopicCard.scss new file mode 100644 index 0000000000..d0e76145c3 --- /dev/null +++ b/templates/ice-design/blocks/TopicCard/src/TopicCard.scss @@ -0,0 +1,13 @@ +@charset "UTF-8"; + +.topic-card { + .topic-card-item { + display: flex; + flex-direction: row; + width: 165px; + margin: 10px 22px 10px 0; + &:nth-child(5n) { + margin-right: 0; + } + } +} diff --git a/templates/ice-design/blocks/TopicCard/src/index.js b/templates/ice-design/blocks/TopicCard/src/index.js new file mode 100644 index 0000000000..2fcbeb5902 --- /dev/null +++ b/templates/ice-design/blocks/TopicCard/src/index.js @@ -0,0 +1,3 @@ +import TopicCard from './TopicCard'; + +export default TopicCard; diff --git a/templates/ice-design/blocks/TreeCardList/.editorconfig b/templates/ice-design/blocks/TreeCardList/.editorconfig new file mode 100644 index 0000000000..22ef5ace54 --- /dev/null +++ b/templates/ice-design/blocks/TreeCardList/.editorconfig @@ -0,0 +1,16 @@ +# http://editorconfig.org +root = true + +[*] +indent_style = space +indent_size = 2 +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false + +[makefile] +indent_style = tab +indent_size = 4 diff --git a/templates/ice-design/blocks/TreeCardList/.eslintignore b/templates/ice-design/blocks/TreeCardList/.eslintignore new file mode 100644 index 0000000000..3b21308fc7 --- /dev/null +++ b/templates/ice-design/blocks/TreeCardList/.eslintignore @@ -0,0 +1,12 @@ +# 忽略目录 +build/ +tests/ +demo/ +lib/ + +# node 覆盖率文件 +coverage/ + +# 忽略文件 +**/*-min.js +**/*.min.js \ No newline at end of file diff --git a/templates/ice-design/blocks/TreeCardList/.eslintrc b/templates/ice-design/blocks/TreeCardList/.eslintrc new file mode 100644 index 0000000000..7a4e5bac48 --- /dev/null +++ b/templates/ice-design/blocks/TreeCardList/.eslintrc @@ -0,0 +1,62 @@ +{ + "root": true, + "parser": "babel-eslint", + "extends": "eslint-config-airbnb", + "parserOptions": { + "ecmaVersion": 6, + "ecmaFeatures": { + "jsx": true, + "experimentalObjectRestSpread": true + } + }, + "env": { + "browser": true + }, + "plugins": [ + "react", + "babel" + ], + "rules": { + "react/forbid-prop-types": 0, + "jsx-a11y/label-has-for": 0, + "jsx-a11y/no-static-element-interactions": 0, + "jsx-a11y/anchor-has-content": 0, + "jsx-a11y/click-events-have-key-events": 0, + "jsx-a11y/anchor-is-valid": 0, + "react/no-array-index-key": 0, + "func-names": 0, + "arrow-body-style": 0, + "no-use-before-define": 0, + "react/sort-comp": 0, + "react/prop-types": 0, + "react/jsx-first-prop-new-line": 0, + "react/jsx-filename-extension": [ + 1, + { + "extensions": [ + ".js", + ".jsx" + ] + } + ], + "import/extensions": 0, + "import/no-unresolved": 0, + "import/no-extraneous-dependencies": 0, + "prefer-destructuring": 0, + "no-param-reassign": 0, + "no-return-assign": 0, + "max-len": 0, + "consistent-return": 0, + "no-redeclare": 0, + "react/require-extension": 0, + "react/no-danger": 0, + "comma-dangle": [ + "error", + "always-multiline" + ], + "function-paren-newline": 0, + "object-curly-newline": 0, + "no-restricted-globals": 0, + "react/prefer-stateless-function": 0 + } +} diff --git a/templates/ice-design/blocks/TreeCardList/.gitignore b/templates/ice-design/blocks/TreeCardList/.gitignore new file mode 100644 index 0000000000..cc45d6fb3c --- /dev/null +++ b/templates/ice-design/blocks/TreeCardList/.gitignore @@ -0,0 +1,13 @@ + +*.swp +*.dia~ +.idea/ +.DS_Store + +npm-debug.log +yarn-error.log +node_modules/ +tmp/ + +# happypack 缓存 +.happypack diff --git a/templates/ice-design/blocks/TreeCardList/README.md b/templates/ice-design/blocks/TreeCardList/README.md new file mode 100644 index 0000000000..37e076f7c3 --- /dev/null +++ b/templates/ice-design/blocks/TreeCardList/README.md @@ -0,0 +1,12 @@ +# tree-card-list + +简介:树形卡片列表 + +树形卡片列表 + +![截图](https://gw.alicdn.com/tfs/TB1eX93jlfH8KJjy1XbXXbLdXXa-454-686.png) + +## 更多 + +* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) +* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) diff --git a/templates/ice-design/blocks/TreeCardList/demo/index.html b/templates/ice-design/blocks/TreeCardList/demo/index.html new file mode 100644 index 0000000000..9d2d3a663d --- /dev/null +++ b/templates/ice-design/blocks/TreeCardList/demo/index.html @@ -0,0 +1,19 @@ + + + + + + + + Document + + + + +
    + + + + + + diff --git a/templates/ice-design/blocks/TreeCardList/demo/index.js b/templates/ice-design/blocks/TreeCardList/demo/index.js new file mode 100644 index 0000000000..178a766115 --- /dev/null +++ b/templates/ice-design/blocks/TreeCardList/demo/index.js @@ -0,0 +1,19 @@ +import React, {Component} from 'react'; +import {render} from 'react-dom'; + +// 载入默认全局样式 normalize 、.clearfix 和一些 mixin 方法等 +import '@icedesign/base/lib/_components/@alife/next-core/lib/index.scss'; + +import DemoLayout from '@icedesign/demo-layout'; +import Block from '../src'; + +const props = { + // ... +}; + +render( + + + , + document.querySelector('#mountNode') +); diff --git a/templates/ice-design/blocks/TreeCardList/mock/api.json b/templates/ice-design/blocks/TreeCardList/mock/api.json new file mode 100644 index 0000000000..e706430232 --- /dev/null +++ b/templates/ice-design/blocks/TreeCardList/mock/api.json @@ -0,0 +1,4 @@ +{ + "status": "success", + "data": {} +} diff --git a/templates/ice-design/blocks/TreeCardList/package.json b/templates/ice-design/blocks/TreeCardList/package.json new file mode 100644 index 0000000000..ba40275da0 --- /dev/null +++ b/templates/ice-design/blocks/TreeCardList/package.json @@ -0,0 +1,54 @@ +{ + "name": "@icedesign/tree-card-list-block", + "version": "0.1.0", + "description": "树形卡片列表", + "files": [ + "src/", + "demo/", + "lib/", + "mock/" + ], + "scripts": {}, + "author": { + "name": "ICE Team", + "email": "ice-admin@alibaba-inc.com" + }, + "repository": { + "type": "git", + "url": "https://github.com/alibaba/ice" + }, + "license": "MIT", + "keywords": [ + "ice", + "ice-block" + ], + "dependencies": { + "@icedesign/base": "^0.1.0", + "@icedesign/card": "^0.1.0", + "prop-types": "^15.5.8" + }, + "devDependencies": { + "@icedesign/demo-layout": "^0.1.0", + "@icedesign/skin": "^0.1.3", + "babel-eslint": "^8.0.3", + "eslint": "^4.13.1", + "eslint-config-airbnb": "^16.1.0", + "eslint-plugin-babel": "^4.1.1", + "eslint-plugin-import": "^2.8.0", + "eslint-plugin-jsx-a11y": "^6.0.3", + "eslint-plugin-react": "^7.5.1", + "react": "15.x", + "react-copy-to-clipboard": "^4.2.3", + "react-dom": "15.x" + }, + "blockConfig": { + "name": "tree-card-list", + "description": "树形卡片列表", + "chinese": "树形卡片列表", + "category": "list", + "snapshot": "https://gw.alicdn.com/tfs/TB1eX93jlfH8KJjy1XbXXbLdXXa-454-686.png", + "sketchURL": "", + "icelandURL": "", + "themePackage": "@icedesign/skin" + } +} diff --git a/templates/ice-design/blocks/TreeCardList/src/TreeCardList.jsx b/templates/ice-design/blocks/TreeCardList/src/TreeCardList.jsx new file mode 100644 index 0000000000..3c95563e6b --- /dev/null +++ b/templates/ice-design/blocks/TreeCardList/src/TreeCardList.jsx @@ -0,0 +1,93 @@ +import React, { Component } from 'react'; +import { Select } from '@icedesign/base'; +import IceCard from '@icedesign/card'; +import './TreeCardList.scss'; + +const { Option } = Select; + +const dataSource = [ + { tab: '首页', url: '##', subTitle: '10W' }, + { tab: '列表页', url: '##', subTitle: '20W' }, + { tab: '详情页', url: '##', subTitle: '30W' }, + { tab: '下单页', url: '##', subTitle: '10W' }, + { tab: '猜你喜欢', url: '##', subTitle: '40W' }, + { tab: '欢迎页面', url: '##', subTitle: '10W' }, + { tab: '项目管理页', url: '##', subTitle: '20W' } +]; + +export default class TreeCardList extends Component { + static displayName = 'TreeCardList'; + + static propTypes = {}; + + static defaultProps = {}; + + constructor(props) { + super(props); + this.state = {}; + } + + // ICE: React Component 的生命周期 + // http://ice.alibaba-inc.com/docs/guide/intro-react#React-组件的生命周期 + componentWillMount() {} + + componentDidMount() {} + + componentWillUnmount() {} + + renderItem = (item, idx) => { + return ( + + {item.tab} + {item.subTitle} + + ); + }; + + render() { + return ( +
    + +
    + 站点列表 + +
    + {dataSource.map(this.renderItem)} +
    +
    + ); + } +} + +const styles = { + firstRow: { + fontSize: '16px', + display: 'flex', + flexDirection: 'row', + justifyContent: 'space-between', + marginBottom: '10px' + }, + treeCardItem: { + display: 'flex', + flexDirection: 'row', + justifyContent: 'space-between', + borderRadius: '4px', + height: '40px', + lineHeight: '40px', + fontSize: '14px', + color: '#000', + cursor: 'pointer', + padding: '0 10px', + textDecoration: 'none' + }, + treeCardList: { width: '240px' } +}; diff --git a/templates/ice-design/blocks/TreeCardList/src/TreeCardList.scss b/templates/ice-design/blocks/TreeCardList/src/TreeCardList.scss new file mode 100644 index 0000000000..f6da6c2b39 --- /dev/null +++ b/templates/ice-design/blocks/TreeCardList/src/TreeCardList.scss @@ -0,0 +1,9 @@ +@charset "UTF-8"; + +.tree-card-list { + .tree-card-item { + &:hover { + background-color: #F6F6F6; + } + } +} diff --git a/templates/ice-design/blocks/TreeCardList/src/index.js b/templates/ice-design/blocks/TreeCardList/src/index.js new file mode 100644 index 0000000000..d6e619715c --- /dev/null +++ b/templates/ice-design/blocks/TreeCardList/src/index.js @@ -0,0 +1,3 @@ +import TreeCardList from './TreeCardList'; + +export default TreeCardList; diff --git a/templates/ice-design/layouts/AsideLayout/.editorconfig b/templates/ice-design/layouts/AsideLayout/.editorconfig new file mode 100644 index 0000000000..22ef5ace54 --- /dev/null +++ b/templates/ice-design/layouts/AsideLayout/.editorconfig @@ -0,0 +1,16 @@ +# http://editorconfig.org +root = true + +[*] +indent_style = space +indent_size = 2 +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false + +[makefile] +indent_style = tab +indent_size = 4 diff --git a/templates/ice-design/layouts/AsideLayout/.eslintignore b/templates/ice-design/layouts/AsideLayout/.eslintignore new file mode 100644 index 0000000000..2d5ec592a3 --- /dev/null +++ b/templates/ice-design/layouts/AsideLayout/.eslintignore @@ -0,0 +1,12 @@ +# 忽略目录 +build/ +tests/ +demo/ +lib/ + +# node 覆盖率文件 +coverage/ + +# 忽略文件 +**/*-min.js +**/*.min.js diff --git a/templates/ice-design/layouts/AsideLayout/.eslintrc b/templates/ice-design/layouts/AsideLayout/.eslintrc new file mode 100644 index 0000000000..7cc397841e --- /dev/null +++ b/templates/ice-design/layouts/AsideLayout/.eslintrc @@ -0,0 +1,61 @@ +{ + "root": true, + "parser": "babel-eslint", + "extends": "eslint-config-airbnb", + "parserOptions": { + "ecmaVersion": 6, + "ecmaFeatures": { + "jsx": true, + "experimentalObjectRestSpread": true + } + }, + "env": { + "browser": true + }, + "plugins": [ + "react", + "babel" + ], + "rules": { + "react/forbid-prop-types": 0, + "jsx-a11y/label-has-for": 0, + "jsx-a11y/no-static-element-interactions": 0, + "jsx-a11y/anchor-has-content": 0, + "jsx-a11y/click-events-have-key-events": 0, + "jsx-a11y/anchor-is-valid": 0, + "react/no-array-index-key": 0, + "func-names": 0, + "arrow-body-style": 0, + "no-use-before-define": 1, + "react/sort-comp": 0, + "react/prop-types": 0, + "react/jsx-first-prop-new-line": 0, + "react/jsx-filename-extension": [ + 1, + { + "extensions": [ + ".js", + ".jsx" + ] + } + ], + "import/extensions": 0, + "import/no-unresolved": 0, + "import/no-extraneous-dependencies": 0, + "prefer-destructuring": 0, + "no-param-reassign": 0, + "no-return-assign": 0, + "max-len": 0, + "consistent-return": 0, + "no-redeclare": 0, + "react/require-extension": 0, + "react/no-danger": 0, + "comma-dangle": [ + "error", + "always-multiline" + ], + "function-paren-newline": 0, + "object-curly-newline": 0, + "no-restricted-globals": 0 + } +} diff --git a/templates/ice-design/layouts/AsideLayout/.gitignore b/templates/ice-design/layouts/AsideLayout/.gitignore new file mode 100644 index 0000000000..66244c2356 --- /dev/null +++ b/templates/ice-design/layouts/AsideLayout/.gitignore @@ -0,0 +1,20 @@ +*.swp +*.dia~ +.idea/ +.DS_Store + +npm-debug.log +yarn-error.log +node_modules/ +tmp/ + +# 这是编译后的代码, 用于提交到 tnpm, git 仓库不需要此份代码 +lib/ +# 提供 start dev 的环境依赖 +# happypack 缓存 +.happypack + +# fusion 配置平台相关 +theme/build/ +theme/deps.json +theme/index.html diff --git a/templates/ice-design/layouts/AsideLayout/README.md b/templates/ice-design/layouts/AsideLayout/README.md new file mode 100644 index 0000000000..0435d7659a --- /dev/null +++ b/templates/ice-design/layouts/AsideLayout/README.md @@ -0,0 +1,10 @@ +# aside-layout + +简介:附带侧边栏的 Layout + +![截图](https://img.alicdn.com/tfs/TB1i0lfivDH8KJjy1XcXXcpdXXa-2606-1286.png) + +## 更多 + +* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) +* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) diff --git a/templates/ice-design/layouts/AsideLayout/demo/index.html b/templates/ice-design/layouts/AsideLayout/demo/index.html new file mode 100644 index 0000000000..9f033a3925 --- /dev/null +++ b/templates/ice-design/layouts/AsideLayout/demo/index.html @@ -0,0 +1,18 @@ + + + + + + + + Document + + + + +
    + + + + + diff --git a/templates/ice-design/layouts/AsideLayout/demo/index.js b/templates/ice-design/layouts/AsideLayout/demo/index.js new file mode 100644 index 0000000000..905e7283b2 --- /dev/null +++ b/templates/ice-design/layouts/AsideLayout/demo/index.js @@ -0,0 +1,13 @@ +import React, { Component } from 'react'; +import { render } from 'react-dom'; +import Layout from '../src'; +import '@icedesign/base/lib/_components/@alife/next-core/lib/index.scss'; + +const props = { + // ... +}; + +render(( + + +), document.querySelector('#mountNode')); diff --git a/templates/ice-design/layouts/AsideLayout/mock/api.json b/templates/ice-design/layouts/AsideLayout/mock/api.json new file mode 100644 index 0000000000..05bd9be44e --- /dev/null +++ b/templates/ice-design/layouts/AsideLayout/mock/api.json @@ -0,0 +1,11 @@ +{ + "status": "SUCCESS", + "message": "请求成功", + "data": { + "foo": [ + 0, + 1, + 2 + ] + } +} diff --git a/templates/ice-design/layouts/AsideLayout/package.json b/templates/ice-design/layouts/AsideLayout/package.json new file mode 100644 index 0000000000..145b011e63 --- /dev/null +++ b/templates/ice-design/layouts/AsideLayout/package.json @@ -0,0 +1,58 @@ +{ + "name": "@icedesign/aside-layout", + "version": "0.1.2", + "description": "basic layout", + "files": [ + "src/", + "lib/", + "demo/", + "mock/" + ], + "author": { + "name": "ICE Team", + "email": "ice-admin@alibaba-inc.com" + }, + "repository": { + "type": "git", + "url": "https://github.com/alibaba/ice" + }, + "license": "ISC", + "keywords": [ + "ice", + "ice-block" + ], + "dependencies": { + "@icedesign/base": "^0.1.0", + "@icedesign/img": "^0.1.0", + "@icedesign/layout": "^0.1.0", + "@icedesign/menu": "^0.1.0", + "classnames": "^2.2.5", + "prop-types": "^15.5.8", + "react-document-title": "^2.0.3", + "react-router": "^3.2.0" + }, + "devDependencies": { + "@icedesign/skin": "latest", + "babel-eslint": "^8.0.3", + "eslint": "^4.13.1", + "eslint-config-airbnb": "^16.1.0", + "eslint-plugin-babel": "^4.1.1", + "eslint-plugin-import": "^2.8.0", + "eslint-plugin-jsx-a11y": "^6.0.3", + "eslint-plugin-react": "^7.5.1" + }, + "blockConfig": { + "name": "aside-layout", + "description": "附带侧边栏的 Layout", + "chinese": "附带侧边栏的 Layout", + "category": "layout", + "snapshot": "https://img.alicdn.com/tfs/TB130YAkr_I8KJjy1XaXXbsxpXa-640-400.png", + "sketchURL": "", + "icelandURL": "", + "themePackage": "@icedesign/skin" + }, + "scripts": { + "lint": "eslint . --ext '.js,.jsx' --fix", + "prepublish": "npm run lint" + } +} diff --git a/templates/ice-design/layouts/AsideLayout/src/Layout.jsx b/templates/ice-design/layouts/AsideLayout/src/Layout.jsx new file mode 100644 index 0000000000..151f83fa53 --- /dev/null +++ b/templates/ice-design/layouts/AsideLayout/src/Layout.jsx @@ -0,0 +1,131 @@ +import React, { Component } from 'react'; +import cx from 'classnames'; +import Layout from '@icedesign/layout'; +import { Icon } from '@icedesign/base'; +import Menu, { SubMenu, Item as MenuItem } from '@icedesign/menu'; +import { Link } from 'react-router'; +import Header from './__components_Header__'; +import Footer from './__components_Footer__'; +import { asideNavs } from './__config_navs__'; +import './Layout.scss'; + +export default class AsideLayout extends Component { + static propTypes = {}; + + static defaultProps = {}; + + // 当前点击的菜单项 + handleClick = (selectedKeys) => { + console.log('selectedKeys:', selectedKeys); + }; + + // 当前打开的菜单项 + getOpenKeys = () => { + const { routes = [{}] } = this.props; + const matched = routes[0].path; + let openKeys = ''; + + if (asideNavs && asideNavs.length > 0) { + asideNavs.forEach((item, index) => { + if (item.to === matched) { + openKeys = index; + } + }); + } + + return openKeys; + }; + + render() { + const { location = {} } = this.props; + const { pathname } = location; + + return ( + +
    + + + + {asideNavs && + asideNavs.length > 0 && + asideNavs.map((nav, index) => { + if (nav.children && nav.children.length > 0) { + return ( + + {nav.icon ? ( + + ) : null} + {nav.text} + + } + > + {nav.children.map((item) => { + const linkProps = {}; + if (item.newWindow) { + linkProps.href = item.to; + linkProps.target = '_blank'; + } else if (item.external) { + linkProps.href = item.to; + } else { + linkProps.to = item.to; + } + + return ( + + {item.text} + + ); + })} + + ); + } + + const linkProps = {}; + if (nav.newWindow) { + linkProps.href = nav.to; + linkProps.target = '_blank'; + } else if (nav.external) { + linkProps.href = nav.to; + } else { + linkProps.to = nav.to; + } + + return ( + + + + {nav.icon ? : null} + {nav.text} + + + + ); + })} + + + + {this.props.children} + + +
    + + ); + } +} diff --git a/templates/ice-design/layouts/AsideLayout/src/Layout.scss b/templates/ice-design/layouts/AsideLayout/src/Layout.scss new file mode 100644 index 0000000000..0995dca946 --- /dev/null +++ b/templates/ice-design/layouts/AsideLayout/src/Layout.scss @@ -0,0 +1,51 @@ +.ice-admin-aside-layout { + background-color: #fafafa; + background-image: url(https://img.alicdn.com/tfs/TB1GsHCd8fH8KJjy1XbXXbLdXXa-1680-370.png); + background-size: 100%; + background-repeat: no-repeat; + background-origin: center; + min-width: 1200px; + .ice-admin-layout-header { + width: 1200px; + margin: 20px auto; + display: flex; + justify-content: space-between; // flex-start|flex-end|center|space-between|space-around; + align-items: center; + } + + .ice-admin-layout-footer-body { + width: 1200px; + margin: 45px auto; + display: flex; + justify-content: space-between; + align-items: center; + } + + .ice-admin-layout-body { + width: 1200px; + margin: 0 auto; + position: relative; + z-index: 10; + .ice-menu { + background: transparent; + } + } + + // 顶部导航效果覆盖 + .ice-admin-layout-header-menu { + .ice-menu { + background: transparent; + } + } + + .logo a { + &:active, + &:link { + text-decoration: none; + } + } + + .ice-admin-layout-header-username { + color: #666; + } +} diff --git a/templates/ice-design/layouts/AsideLayout/src/__components_Footer__.jsx b/templates/ice-design/layouts/AsideLayout/src/__components_Footer__.jsx new file mode 100644 index 0000000000..9c3d814c2e --- /dev/null +++ b/templates/ice-design/layouts/AsideLayout/src/__components_Footer__.jsx @@ -0,0 +1,43 @@ +import React from 'react'; +import Layout from '@icedesign/layout'; +import Logo from './__components_Logo__'; + +export default () => { + return ( + +
    +
    + +
    +
    + 淘宝技术部 终端技术团队{' '} + + 帮助支持 + {' '} + + 提交反馈 + +
    + 由{' '} + + ICE + {' '} + 提供技术支持 +
    +
    +
    + ); +}; diff --git a/templates/ice-design/layouts/AsideLayout/src/__components_Header__.jsx b/templates/ice-design/layouts/AsideLayout/src/__components_Header__.jsx new file mode 100644 index 0000000000..2ef83412bf --- /dev/null +++ b/templates/ice-design/layouts/AsideLayout/src/__components_Header__.jsx @@ -0,0 +1,69 @@ +import React from 'react'; +import IceImg from '@icedesign/img'; +import Layout from '@icedesign/layout'; +import Menu from '@icedesign/menu'; +import { Icon } from '@icedesign/base'; +import { Link } from 'react-router'; +import { headerNavs } from './__config_navs__'; +import Logo from './__components_Logo__'; + +export default ({ width }) => { + return ( + +
    + +
    + {/* Header 菜单项 begin */} + {headerNavs && headerNavs.length > 0 ? ( + + {headerNavs.map((nav, idx) => { + const linkProps = {}; + if (nav.newWindow) { + linkProps.href = nav.to; + linkProps.target = '_blank'; + } else if (nav.external) { + linkProps.href = nav.to; + } else { + linkProps.to = nav.to; + } + return ( + + + {nav.icon ? : null} + {nav.text} + + + ); + })} + + ) : null} + {/* Header 菜单项 end */} + + {/* Header 右侧内容块 */} + + + 淘小宝 + +
    +
    +
    + ); +}; diff --git a/templates/ice-design/layouts/AsideLayout/src/__components_Logo__.jsx b/templates/ice-design/layouts/AsideLayout/src/__components_Logo__.jsx new file mode 100644 index 0000000000..54ce333d1e --- /dev/null +++ b/templates/ice-design/layouts/AsideLayout/src/__components_Logo__.jsx @@ -0,0 +1,45 @@ +import React, { PureComponent } from 'react'; +import { Link } from 'react-router'; + +export default class Logo extends PureComponent { + render() { + const { style } = this.props; + return ( +
    + + + ICE + +
    + ICE +
    + Design +
    + +
    + ); + } +} diff --git a/templates/ice-design/layouts/AsideLayout/src/__config_navs__.json b/templates/ice-design/layouts/AsideLayout/src/__config_navs__.json new file mode 100644 index 0000000000..f92cf3eb6b --- /dev/null +++ b/templates/ice-design/layouts/AsideLayout/src/__config_navs__.json @@ -0,0 +1,91 @@ +{ + "headerNavs": [ + { + "text": "首页", + "to": "/dashboard/index" + }, + { + "text": "反馈", + "to": + "//aone.alibaba-inc.com/project/478546/issue/new?akProjectId=478546&", + "newWindow": true + }, + { + "text": "帮助", + "to": "//ice.alibaba-inc.com/docs/about", + "newWindow": true + } + ], + "asideNavs": [ + { + "text": "Dashboard", + "to": "/dashboard", + "icon": "compass", + "children": [ + { + "text": "首页", + "to": "/dashboard/index" + }, + { + "text": "列表页", + "to": "/dashboard/list" + }, + { + "text": "图表页", + "to": "/dashboard/chart" + } + ] + }, + { + "text": "列表", + "to": "/list", + "icon": "nav-list", + "children": [ + { + "text": "文章列表", + "to": "/list/article-list" + } + ] + }, + { + "text": "表格", + "to": "/table", + "icon": "table", + "children": [ + { + "text": "基础表格", + "to": "/table/basic-table" + }, + { + "text": "进度条表格", + "to": "/table/progress-table" + } + ] + }, + { + "text": "异常反馈", + "to": "/exception", + "icon": "warning", + "children": [ + { + "text": "404", + "to": "/exception/404" + }, + { + "text": "500", + "to": "/exception/500" + }, + { + "text": "无边栏 layout 500", + "to": "/exception/500-with-basic-layout" + } + ] + }, + { + "text": "查看更多模块", + "to": "//ice.alibaba-inc.com/blocks", + "newWindow": true, + "icon": "folder" + } + ] +} diff --git a/templates/ice-design/layouts/AsideLayout/src/index.js b/templates/ice-design/layouts/AsideLayout/src/index.js new file mode 100644 index 0000000000..0720a9d6f4 --- /dev/null +++ b/templates/ice-design/layouts/AsideLayout/src/index.js @@ -0,0 +1 @@ +export default from './Layout'; diff --git a/templates/ice-design/layouts/BasicLayout/.editorconfig b/templates/ice-design/layouts/BasicLayout/.editorconfig new file mode 100644 index 0000000000..22ef5ace54 --- /dev/null +++ b/templates/ice-design/layouts/BasicLayout/.editorconfig @@ -0,0 +1,16 @@ +# http://editorconfig.org +root = true + +[*] +indent_style = space +indent_size = 2 +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false + +[makefile] +indent_style = tab +indent_size = 4 diff --git a/templates/ice-design/layouts/BasicLayout/.eslintignore b/templates/ice-design/layouts/BasicLayout/.eslintignore new file mode 100644 index 0000000000..2d5ec592a3 --- /dev/null +++ b/templates/ice-design/layouts/BasicLayout/.eslintignore @@ -0,0 +1,12 @@ +# 忽略目录 +build/ +tests/ +demo/ +lib/ + +# node 覆盖率文件 +coverage/ + +# 忽略文件 +**/*-min.js +**/*.min.js diff --git a/templates/ice-design/layouts/BasicLayout/.eslintrc b/templates/ice-design/layouts/BasicLayout/.eslintrc new file mode 100644 index 0000000000..7cc397841e --- /dev/null +++ b/templates/ice-design/layouts/BasicLayout/.eslintrc @@ -0,0 +1,61 @@ +{ + "root": true, + "parser": "babel-eslint", + "extends": "eslint-config-airbnb", + "parserOptions": { + "ecmaVersion": 6, + "ecmaFeatures": { + "jsx": true, + "experimentalObjectRestSpread": true + } + }, + "env": { + "browser": true + }, + "plugins": [ + "react", + "babel" + ], + "rules": { + "react/forbid-prop-types": 0, + "jsx-a11y/label-has-for": 0, + "jsx-a11y/no-static-element-interactions": 0, + "jsx-a11y/anchor-has-content": 0, + "jsx-a11y/click-events-have-key-events": 0, + "jsx-a11y/anchor-is-valid": 0, + "react/no-array-index-key": 0, + "func-names": 0, + "arrow-body-style": 0, + "no-use-before-define": 1, + "react/sort-comp": 0, + "react/prop-types": 0, + "react/jsx-first-prop-new-line": 0, + "react/jsx-filename-extension": [ + 1, + { + "extensions": [ + ".js", + ".jsx" + ] + } + ], + "import/extensions": 0, + "import/no-unresolved": 0, + "import/no-extraneous-dependencies": 0, + "prefer-destructuring": 0, + "no-param-reassign": 0, + "no-return-assign": 0, + "max-len": 0, + "consistent-return": 0, + "no-redeclare": 0, + "react/require-extension": 0, + "react/no-danger": 0, + "comma-dangle": [ + "error", + "always-multiline" + ], + "function-paren-newline": 0, + "object-curly-newline": 0, + "no-restricted-globals": 0 + } +} diff --git a/templates/ice-design/layouts/BasicLayout/.gitignore b/templates/ice-design/layouts/BasicLayout/.gitignore new file mode 100644 index 0000000000..6780e95249 --- /dev/null +++ b/templates/ice-design/layouts/BasicLayout/.gitignore @@ -0,0 +1,16 @@ +*.swp +*.dia~ +.idea/ +.DS_Store + +npm-debug.log +yarn-error.log +node_modules/ +tmp/ + +# 这是编译后的代码, 用于提交到 tnpm, git 仓库不需要此份代码 +lib/ +# 提供 start dev 的环境依赖 +# happypack 缓存 +.happypack + diff --git a/templates/ice-design/layouts/BasicLayout/README.md b/templates/ice-design/layouts/BasicLayout/README.md new file mode 100644 index 0000000000..80d87b82e7 --- /dev/null +++ b/templates/ice-design/layouts/BasicLayout/README.md @@ -0,0 +1,10 @@ +# basic-layout + +简介:基础 layout + +![截图](https://img.alicdn.com/tfs/TB1Qh4rir_I8KJjy1XaXXbsxpXa-2536-1246.png) + +## 更多 + +* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) +* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) diff --git a/templates/ice-design/layouts/BasicLayout/demo/index.html b/templates/ice-design/layouts/BasicLayout/demo/index.html new file mode 100644 index 0000000000..9f033a3925 --- /dev/null +++ b/templates/ice-design/layouts/BasicLayout/demo/index.html @@ -0,0 +1,18 @@ + + + + + + + + Document + + + + +
    + + + + + diff --git a/templates/ice-design/layouts/BasicLayout/demo/index.js b/templates/ice-design/layouts/BasicLayout/demo/index.js new file mode 100644 index 0000000000..905e7283b2 --- /dev/null +++ b/templates/ice-design/layouts/BasicLayout/demo/index.js @@ -0,0 +1,13 @@ +import React, { Component } from 'react'; +import { render } from 'react-dom'; +import Layout from '../src'; +import '@icedesign/base/lib/_components/@alife/next-core/lib/index.scss'; + +const props = { + // ... +}; + +render(( + + +), document.querySelector('#mountNode')); diff --git a/templates/ice-design/layouts/BasicLayout/mock/api.json b/templates/ice-design/layouts/BasicLayout/mock/api.json new file mode 100644 index 0000000000..05bd9be44e --- /dev/null +++ b/templates/ice-design/layouts/BasicLayout/mock/api.json @@ -0,0 +1,11 @@ +{ + "status": "SUCCESS", + "message": "请求成功", + "data": { + "foo": [ + 0, + 1, + 2 + ] + } +} diff --git a/templates/ice-design/layouts/BasicLayout/package.json b/templates/ice-design/layouts/BasicLayout/package.json new file mode 100644 index 0000000000..7ccba5c871 --- /dev/null +++ b/templates/ice-design/layouts/BasicLayout/package.json @@ -0,0 +1,58 @@ +{ + "name": "@icedesign/basic-layout", + "version": "0.1.2", + "description": "basic layout", + "files": [ + "src/", + "lib/", + "demo/", + "mock/" + ], + "author": { + "name": "ICE Team", + "email": "ice-admin@alibaba-inc.com" + }, + "repository": { + "type": "git", + "url": "https://github.com/alibaba/ice" + }, + "license": "MIT", + "keywords": [ + "ice", + "ice-block" + ], + "dependencies": { + "@icedesign/img": "^0.1.0", + "@icedesign/layout": "^0.1.0", + "@icedesign/menu": "^0.1.0", + "@icedesign/base": "^0.1.0", + "classnames": "^2.2.5", + "prop-types": "^15.5.8", + "react-document-title": "^2.0.3", + "react-router": "^3.2.0" + }, + "devDependencies": { + "@icedesign/skin": "latest", + "babel-eslint": "^8.0.3", + "eslint": "^4.13.1", + "eslint-plugin-babel": "^4.1.1", + "eslint-plugin-react": "^7.5.1", + "eslint-plugin-import": "^2.8.0", + "eslint-config-airbnb": "^16.1.0", + "eslint-plugin-jsx-a11y": "^6.0.3" + }, + "blockConfig": { + "name": "basic-layout", + "description": "基础 layout", + "chinese": "基础 layout", + "category": "layout", + "snapshot": "https://img.alicdn.com/tfs/TB13JYAkr_I8KJjy1XaXXbsxpXa-640-400.png", + "sketchURL": "", + "icelandURL": "", + "themePackage": "@icedesign/skin" + }, + "scripts": { + "lint": "eslint . --ext '.js,.jsx' --fix", + "prepublish": "npm run lint" + } +} diff --git a/templates/ice-design/layouts/BasicLayout/src/Layout.jsx b/templates/ice-design/layouts/BasicLayout/src/Layout.jsx new file mode 100644 index 0000000000..7ce69eb8f4 --- /dev/null +++ b/templates/ice-design/layouts/BasicLayout/src/Layout.jsx @@ -0,0 +1,30 @@ +import React, { PureComponent } from 'react'; +import cx from 'classnames'; +import Layout from '@icedesign/layout'; +import Header from './__components_Header__'; +import Footer from './__components_Footer__'; +import './Layout.scss'; + +export default class BasicLayout extends PureComponent { + static propTypes = {}; + + static defaultProps = {}; + + render() { + return ( + +
    + + {this.props.children} + +
    + + ); + } +} diff --git a/templates/ice-design/layouts/BasicLayout/src/Layout.scss b/templates/ice-design/layouts/BasicLayout/src/Layout.scss new file mode 100644 index 0000000000..946427a2ec --- /dev/null +++ b/templates/ice-design/layouts/BasicLayout/src/Layout.scss @@ -0,0 +1,46 @@ +.ice-admin-basic-layout { + background-color: #fafafa; + background-image: url(https://img.alicdn.com/tfs/TB1GsHCd8fH8KJjy1XbXXbLdXXa-1680-370.png); + background-size: 100%; + background-repeat: no-repeat; + background-origin: center; + min-width: 1200px; + .ice-admin-layout-header { + width: 1200px; + margin: 20px auto; + display: flex; + justify-content: space-between; // flex-start|flex-end|center|space-between|space-around; + align-items: center; + } + + .ice-admin-layout-footer-body { + width: 1200px; + margin: 45px auto; + display: flex; + justify-content: space-between; + align-items: center; + } + + .ice-layout-main { + width: 1200px; + margin: 0 auto; + } + + // 顶部导航效果覆盖 + .ice-admin-layout-header-menu { + .ice-menu { + background: transparent; + } + } + + .logo a { + &:active, + &:link { + text-decoration: none; + } + } + + .ice-admin-layout-header-username { + color: #666; + } +} diff --git a/templates/ice-design/layouts/BasicLayout/src/__components_Footer__.jsx b/templates/ice-design/layouts/BasicLayout/src/__components_Footer__.jsx new file mode 100644 index 0000000000..0eb8850bf1 --- /dev/null +++ b/templates/ice-design/layouts/BasicLayout/src/__components_Footer__.jsx @@ -0,0 +1,43 @@ +import React from 'react'; +import Layout from '@icedesign/layout'; +import Logo from './__components_Logo__'; + +export default () => { + return ( + +
    +
    + +
    +
    + 淘宝技术部 终端技术团队{' '} + + 帮助支持 + {' '} + + 提交反馈 + +
    + 由{' '} + + ICE + {' '} + 提供技术支持 +
    +
    +
    + ); +}; diff --git a/templates/ice-design/layouts/BasicLayout/src/__components_Header__.jsx b/templates/ice-design/layouts/BasicLayout/src/__components_Header__.jsx new file mode 100644 index 0000000000..2ef83412bf --- /dev/null +++ b/templates/ice-design/layouts/BasicLayout/src/__components_Header__.jsx @@ -0,0 +1,69 @@ +import React from 'react'; +import IceImg from '@icedesign/img'; +import Layout from '@icedesign/layout'; +import Menu from '@icedesign/menu'; +import { Icon } from '@icedesign/base'; +import { Link } from 'react-router'; +import { headerNavs } from './__config_navs__'; +import Logo from './__components_Logo__'; + +export default ({ width }) => { + return ( + +
    + +
    + {/* Header 菜单项 begin */} + {headerNavs && headerNavs.length > 0 ? ( + + {headerNavs.map((nav, idx) => { + const linkProps = {}; + if (nav.newWindow) { + linkProps.href = nav.to; + linkProps.target = '_blank'; + } else if (nav.external) { + linkProps.href = nav.to; + } else { + linkProps.to = nav.to; + } + return ( + + + {nav.icon ? : null} + {nav.text} + + + ); + })} + + ) : null} + {/* Header 菜单项 end */} + + {/* Header 右侧内容块 */} + + + 淘小宝 + +
    +
    +
    + ); +}; diff --git a/templates/ice-design/layouts/BasicLayout/src/__components_Logo__.jsx b/templates/ice-design/layouts/BasicLayout/src/__components_Logo__.jsx new file mode 100644 index 0000000000..54ce333d1e --- /dev/null +++ b/templates/ice-design/layouts/BasicLayout/src/__components_Logo__.jsx @@ -0,0 +1,45 @@ +import React, { PureComponent } from 'react'; +import { Link } from 'react-router'; + +export default class Logo extends PureComponent { + render() { + const { style } = this.props; + return ( +
    + + + ICE + +
    + ICE +
    + Design +
    + +
    + ); + } +} diff --git a/templates/ice-design/layouts/BasicLayout/src/__config_navs__.json b/templates/ice-design/layouts/BasicLayout/src/__config_navs__.json new file mode 100644 index 0000000000..f92cf3eb6b --- /dev/null +++ b/templates/ice-design/layouts/BasicLayout/src/__config_navs__.json @@ -0,0 +1,91 @@ +{ + "headerNavs": [ + { + "text": "首页", + "to": "/dashboard/index" + }, + { + "text": "反馈", + "to": + "//aone.alibaba-inc.com/project/478546/issue/new?akProjectId=478546&", + "newWindow": true + }, + { + "text": "帮助", + "to": "//ice.alibaba-inc.com/docs/about", + "newWindow": true + } + ], + "asideNavs": [ + { + "text": "Dashboard", + "to": "/dashboard", + "icon": "compass", + "children": [ + { + "text": "首页", + "to": "/dashboard/index" + }, + { + "text": "列表页", + "to": "/dashboard/list" + }, + { + "text": "图表页", + "to": "/dashboard/chart" + } + ] + }, + { + "text": "列表", + "to": "/list", + "icon": "nav-list", + "children": [ + { + "text": "文章列表", + "to": "/list/article-list" + } + ] + }, + { + "text": "表格", + "to": "/table", + "icon": "table", + "children": [ + { + "text": "基础表格", + "to": "/table/basic-table" + }, + { + "text": "进度条表格", + "to": "/table/progress-table" + } + ] + }, + { + "text": "异常反馈", + "to": "/exception", + "icon": "warning", + "children": [ + { + "text": "404", + "to": "/exception/404" + }, + { + "text": "500", + "to": "/exception/500" + }, + { + "text": "无边栏 layout 500", + "to": "/exception/500-with-basic-layout" + } + ] + }, + { + "text": "查看更多模块", + "to": "//ice.alibaba-inc.com/blocks", + "newWindow": true, + "icon": "folder" + } + ] +} diff --git a/templates/ice-design/layouts/BasicLayout/src/index.js b/templates/ice-design/layouts/BasicLayout/src/index.js new file mode 100644 index 0000000000..0720a9d6f4 --- /dev/null +++ b/templates/ice-design/layouts/BasicLayout/src/index.js @@ -0,0 +1 @@ +export default from './Layout'; diff --git a/templates/ice-design/layouts/LandingLayout/.editorconfig b/templates/ice-design/layouts/LandingLayout/.editorconfig new file mode 100644 index 0000000000..22ef5ace54 --- /dev/null +++ b/templates/ice-design/layouts/LandingLayout/.editorconfig @@ -0,0 +1,16 @@ +# http://editorconfig.org +root = true + +[*] +indent_style = space +indent_size = 2 +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false + +[makefile] +indent_style = tab +indent_size = 4 diff --git a/templates/ice-design/layouts/LandingLayout/.eslintignore b/templates/ice-design/layouts/LandingLayout/.eslintignore new file mode 100644 index 0000000000..2d5ec592a3 --- /dev/null +++ b/templates/ice-design/layouts/LandingLayout/.eslintignore @@ -0,0 +1,12 @@ +# 忽略目录 +build/ +tests/ +demo/ +lib/ + +# node 覆盖率文件 +coverage/ + +# 忽略文件 +**/*-min.js +**/*.min.js diff --git a/templates/ice-design/layouts/LandingLayout/.eslintrc b/templates/ice-design/layouts/LandingLayout/.eslintrc new file mode 100644 index 0000000000..7cc397841e --- /dev/null +++ b/templates/ice-design/layouts/LandingLayout/.eslintrc @@ -0,0 +1,61 @@ +{ + "root": true, + "parser": "babel-eslint", + "extends": "eslint-config-airbnb", + "parserOptions": { + "ecmaVersion": 6, + "ecmaFeatures": { + "jsx": true, + "experimentalObjectRestSpread": true + } + }, + "env": { + "browser": true + }, + "plugins": [ + "react", + "babel" + ], + "rules": { + "react/forbid-prop-types": 0, + "jsx-a11y/label-has-for": 0, + "jsx-a11y/no-static-element-interactions": 0, + "jsx-a11y/anchor-has-content": 0, + "jsx-a11y/click-events-have-key-events": 0, + "jsx-a11y/anchor-is-valid": 0, + "react/no-array-index-key": 0, + "func-names": 0, + "arrow-body-style": 0, + "no-use-before-define": 1, + "react/sort-comp": 0, + "react/prop-types": 0, + "react/jsx-first-prop-new-line": 0, + "react/jsx-filename-extension": [ + 1, + { + "extensions": [ + ".js", + ".jsx" + ] + } + ], + "import/extensions": 0, + "import/no-unresolved": 0, + "import/no-extraneous-dependencies": 0, + "prefer-destructuring": 0, + "no-param-reassign": 0, + "no-return-assign": 0, + "max-len": 0, + "consistent-return": 0, + "no-redeclare": 0, + "react/require-extension": 0, + "react/no-danger": 0, + "comma-dangle": [ + "error", + "always-multiline" + ], + "function-paren-newline": 0, + "object-curly-newline": 0, + "no-restricted-globals": 0 + } +} diff --git a/templates/ice-design/layouts/LandingLayout/.gitignore b/templates/ice-design/layouts/LandingLayout/.gitignore new file mode 100644 index 0000000000..6780e95249 --- /dev/null +++ b/templates/ice-design/layouts/LandingLayout/.gitignore @@ -0,0 +1,16 @@ +*.swp +*.dia~ +.idea/ +.DS_Store + +npm-debug.log +yarn-error.log +node_modules/ +tmp/ + +# 这是编译后的代码, 用于提交到 tnpm, git 仓库不需要此份代码 +lib/ +# 提供 start dev 的环境依赖 +# happypack 缓存 +.happypack + diff --git a/templates/ice-design/layouts/LandingLayout/README.md b/templates/ice-design/layouts/LandingLayout/README.md new file mode 100644 index 0000000000..28cf3c28b6 --- /dev/null +++ b/templates/ice-design/layouts/LandingLayout/README.md @@ -0,0 +1,10 @@ +# landing-layout + +简介:登录页面 Layout + +![截图](https://img.alicdn.com/tfs/TB1mH8kirYI8KJjy0FaXXbAiVXa-2614-1298.png) + +## 更多 + +* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) +* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) diff --git a/templates/ice-design/layouts/LandingLayout/demo/index.html b/templates/ice-design/layouts/LandingLayout/demo/index.html new file mode 100644 index 0000000000..9f033a3925 --- /dev/null +++ b/templates/ice-design/layouts/LandingLayout/demo/index.html @@ -0,0 +1,18 @@ + + + + + + + + Document + + + + +
    + + + + + diff --git a/templates/ice-design/layouts/LandingLayout/demo/index.js b/templates/ice-design/layouts/LandingLayout/demo/index.js new file mode 100644 index 0000000000..ebd7bf741e --- /dev/null +++ b/templates/ice-design/layouts/LandingLayout/demo/index.js @@ -0,0 +1,21 @@ +import React, { Component } from 'react'; +import { render } from 'react-dom'; +import Layout from '../src'; +import '@icedesign/base/lib/_components/@alife/next-core/lib/index.scss'; + +const props = { + // ... +}; + +render( + +
    + , + document.querySelector('#mountNode') +); diff --git a/templates/ice-design/layouts/LandingLayout/mock/api.json b/templates/ice-design/layouts/LandingLayout/mock/api.json new file mode 100644 index 0000000000..05bd9be44e --- /dev/null +++ b/templates/ice-design/layouts/LandingLayout/mock/api.json @@ -0,0 +1,11 @@ +{ + "status": "SUCCESS", + "message": "请求成功", + "data": { + "foo": [ + 0, + 1, + 2 + ] + } +} diff --git a/templates/ice-design/layouts/LandingLayout/package.json b/templates/ice-design/layouts/LandingLayout/package.json new file mode 100644 index 0000000000..e86f99ad18 --- /dev/null +++ b/templates/ice-design/layouts/LandingLayout/package.json @@ -0,0 +1,58 @@ +{ + "name": "@icedesign/landing-layout", + "version": "0.1.2", + "description": "landing layout", + "files": [ + "src/", + "lib/", + "demo/", + "mock/" + ], + "author": { + "name": "ICE Team", + "email": "ice-admin@alibaba-inc.com" + }, + "repository": { + "type": "git", + "url": "https://github.com/alibaba/ice" + }, + "license": "MIT", + "keywords": [ + "ice", + "ice-block" + ], + "dependencies": { + "@icedesign/img": "^0.1.0", + "@icedesign/layout": "^0.1.0", + "@icedesign/menu": "^0.1.0", + "@icedesign/base": "^0.1.0", + "classnames": "^2.2.5", + "prop-types": "^15.5.8", + "react-document-title": "^2.0.3", + "react-router": "^3.2.0" + }, + "devDependencies": { + "@icedesign/skin": "latest", + "babel-eslint": "^8.0.3", + "eslint": "^4.13.1", + "eslint-plugin-babel": "^4.1.1", + "eslint-plugin-react": "^7.5.1", + "eslint-plugin-import": "^2.8.0", + "eslint-config-airbnb": "^16.1.0", + "eslint-plugin-jsx-a11y": "^6.0.3" + }, + "blockConfig": { + "name": "landing-layout", + "description": "登录页面 Layout", + "chinese": "登录页面 Layout", + "category": "layout", + "snapshot": "https://img.alicdn.com/tfs/TB1VoV7kBfH8KJjy1XbXXbLdXXa-640-400.png", + "sketchURL": "", + "icelandURL": "", + "themePackage": "@icedesign/skin" + }, + "scripts": { + "lint": "eslint . --ext '.js,.jsx' --fix", + "prepublish": "npm run lint" + } +} diff --git a/templates/ice-design/layouts/LandingLayout/src/Layout.jsx b/templates/ice-design/layouts/LandingLayout/src/Layout.jsx new file mode 100644 index 0000000000..be3cfceb4a --- /dev/null +++ b/templates/ice-design/layouts/LandingLayout/src/Layout.jsx @@ -0,0 +1,22 @@ +import React, { PureComponent } from 'react'; +import Header from './__components_Header__'; +import Footer from './__components_Footer__'; +import './Layout.scss'; + +export default class LandingLayout extends PureComponent { + static propTypes = {}; + + static defaultProps = {}; + + render() { + return ( +
    +
    +
    +
    +
    {this.props.children}
    +
    +
    + ); + } +} diff --git a/templates/ice-design/layouts/LandingLayout/src/Layout.scss b/templates/ice-design/layouts/LandingLayout/src/Layout.scss new file mode 100644 index 0000000000..cf22f8e6ea --- /dev/null +++ b/templates/ice-design/layouts/LandingLayout/src/Layout.scss @@ -0,0 +1,35 @@ +.landing-layout { + .landing-layout-header { + position: absolute; + z-index: 11; + left: 0; + right: 0; + } + .ice-admin-layout-header { + width: 1200px; + margin: 20px auto; + display: flex; + justify-content: space-between; // flex-start|flex-end|center|space-between|space-around; + align-items: center; + .ice-menu { + background: transparent; + } + } + + .ice-admin-layout-footer-body { + width: 1200px; + margin: 45px auto; + display: flex; + justify-content: space-between; + align-items: center; + } + + .ice-admin-layout-header-username { + color: #fff; + } + + .ice-layout-theme-light.ice-layout-header .ice-menu-item, + .ice-layout-theme-light.ice-layout-header .ice-menu-item > a { + color: #fff; + } +} diff --git a/templates/ice-design/layouts/LandingLayout/src/__components_Footer__.jsx b/templates/ice-design/layouts/LandingLayout/src/__components_Footer__.jsx new file mode 100644 index 0000000000..43686a0d97 --- /dev/null +++ b/templates/ice-design/layouts/LandingLayout/src/__components_Footer__.jsx @@ -0,0 +1,43 @@ +import React from 'react'; +import Layout from '@icedesign/layout'; +import Logo from './__components_Logo__'; + +export default () => { + return ( + +
    +
    + +
    +
    + 淘宝技术部 终端技术团队{' '} + + 帮助支持 + {' '} + + 提交反馈 + +
    + 由{' '} + + ICE + {' '} + 提供技术支持 +
    +
    +
    + ); +}; diff --git a/templates/ice-design/layouts/LandingLayout/src/__components_Header__.jsx b/templates/ice-design/layouts/LandingLayout/src/__components_Header__.jsx new file mode 100644 index 0000000000..2ef83412bf --- /dev/null +++ b/templates/ice-design/layouts/LandingLayout/src/__components_Header__.jsx @@ -0,0 +1,69 @@ +import React from 'react'; +import IceImg from '@icedesign/img'; +import Layout from '@icedesign/layout'; +import Menu from '@icedesign/menu'; +import { Icon } from '@icedesign/base'; +import { Link } from 'react-router'; +import { headerNavs } from './__config_navs__'; +import Logo from './__components_Logo__'; + +export default ({ width }) => { + return ( + +
    + +
    + {/* Header 菜单项 begin */} + {headerNavs && headerNavs.length > 0 ? ( + + {headerNavs.map((nav, idx) => { + const linkProps = {}; + if (nav.newWindow) { + linkProps.href = nav.to; + linkProps.target = '_blank'; + } else if (nav.external) { + linkProps.href = nav.to; + } else { + linkProps.to = nav.to; + } + return ( + + + {nav.icon ? : null} + {nav.text} + + + ); + })} + + ) : null} + {/* Header 菜单项 end */} + + {/* Header 右侧内容块 */} + + + 淘小宝 + +
    +
    +
    + ); +}; diff --git a/templates/ice-design/layouts/LandingLayout/src/__components_Logo__.jsx b/templates/ice-design/layouts/LandingLayout/src/__components_Logo__.jsx new file mode 100644 index 0000000000..54ce333d1e --- /dev/null +++ b/templates/ice-design/layouts/LandingLayout/src/__components_Logo__.jsx @@ -0,0 +1,45 @@ +import React, { PureComponent } from 'react'; +import { Link } from 'react-router'; + +export default class Logo extends PureComponent { + render() { + const { style } = this.props; + return ( +
    + + + ICE + +
    + ICE +
    + Design +
    + +
    + ); + } +} diff --git a/templates/ice-design/layouts/LandingLayout/src/__config_navs__.json b/templates/ice-design/layouts/LandingLayout/src/__config_navs__.json new file mode 100644 index 0000000000..f92cf3eb6b --- /dev/null +++ b/templates/ice-design/layouts/LandingLayout/src/__config_navs__.json @@ -0,0 +1,91 @@ +{ + "headerNavs": [ + { + "text": "首页", + "to": "/dashboard/index" + }, + { + "text": "反馈", + "to": + "//aone.alibaba-inc.com/project/478546/issue/new?akProjectId=478546&", + "newWindow": true + }, + { + "text": "帮助", + "to": "//ice.alibaba-inc.com/docs/about", + "newWindow": true + } + ], + "asideNavs": [ + { + "text": "Dashboard", + "to": "/dashboard", + "icon": "compass", + "children": [ + { + "text": "首页", + "to": "/dashboard/index" + }, + { + "text": "列表页", + "to": "/dashboard/list" + }, + { + "text": "图表页", + "to": "/dashboard/chart" + } + ] + }, + { + "text": "列表", + "to": "/list", + "icon": "nav-list", + "children": [ + { + "text": "文章列表", + "to": "/list/article-list" + } + ] + }, + { + "text": "表格", + "to": "/table", + "icon": "table", + "children": [ + { + "text": "基础表格", + "to": "/table/basic-table" + }, + { + "text": "进度条表格", + "to": "/table/progress-table" + } + ] + }, + { + "text": "异常反馈", + "to": "/exception", + "icon": "warning", + "children": [ + { + "text": "404", + "to": "/exception/404" + }, + { + "text": "500", + "to": "/exception/500" + }, + { + "text": "无边栏 layout 500", + "to": "/exception/500-with-basic-layout" + } + ] + }, + { + "text": "查看更多模块", + "to": "//ice.alibaba-inc.com/blocks", + "newWindow": true, + "icon": "folder" + } + ] +} diff --git a/templates/ice-design/layouts/LandingLayout/src/index.js b/templates/ice-design/layouts/LandingLayout/src/index.js new file mode 100644 index 0000000000..0720a9d6f4 --- /dev/null +++ b/templates/ice-design/layouts/LandingLayout/src/index.js @@ -0,0 +1 @@ +export default from './Layout'; diff --git a/templates/ice-design/layouts/ScalableAsideLayout/.editorconfig b/templates/ice-design/layouts/ScalableAsideLayout/.editorconfig new file mode 100644 index 0000000000..22ef5ace54 --- /dev/null +++ b/templates/ice-design/layouts/ScalableAsideLayout/.editorconfig @@ -0,0 +1,16 @@ +# http://editorconfig.org +root = true + +[*] +indent_style = space +indent_size = 2 +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false + +[makefile] +indent_style = tab +indent_size = 4 diff --git a/templates/ice-design/layouts/ScalableAsideLayout/.eslintignore b/templates/ice-design/layouts/ScalableAsideLayout/.eslintignore new file mode 100644 index 0000000000..2d5ec592a3 --- /dev/null +++ b/templates/ice-design/layouts/ScalableAsideLayout/.eslintignore @@ -0,0 +1,12 @@ +# 忽略目录 +build/ +tests/ +demo/ +lib/ + +# node 覆盖率文件 +coverage/ + +# 忽略文件 +**/*-min.js +**/*.min.js diff --git a/templates/ice-design/layouts/ScalableAsideLayout/.eslintrc b/templates/ice-design/layouts/ScalableAsideLayout/.eslintrc new file mode 100644 index 0000000000..7cc397841e --- /dev/null +++ b/templates/ice-design/layouts/ScalableAsideLayout/.eslintrc @@ -0,0 +1,61 @@ +{ + "root": true, + "parser": "babel-eslint", + "extends": "eslint-config-airbnb", + "parserOptions": { + "ecmaVersion": 6, + "ecmaFeatures": { + "jsx": true, + "experimentalObjectRestSpread": true + } + }, + "env": { + "browser": true + }, + "plugins": [ + "react", + "babel" + ], + "rules": { + "react/forbid-prop-types": 0, + "jsx-a11y/label-has-for": 0, + "jsx-a11y/no-static-element-interactions": 0, + "jsx-a11y/anchor-has-content": 0, + "jsx-a11y/click-events-have-key-events": 0, + "jsx-a11y/anchor-is-valid": 0, + "react/no-array-index-key": 0, + "func-names": 0, + "arrow-body-style": 0, + "no-use-before-define": 1, + "react/sort-comp": 0, + "react/prop-types": 0, + "react/jsx-first-prop-new-line": 0, + "react/jsx-filename-extension": [ + 1, + { + "extensions": [ + ".js", + ".jsx" + ] + } + ], + "import/extensions": 0, + "import/no-unresolved": 0, + "import/no-extraneous-dependencies": 0, + "prefer-destructuring": 0, + "no-param-reassign": 0, + "no-return-assign": 0, + "max-len": 0, + "consistent-return": 0, + "no-redeclare": 0, + "react/require-extension": 0, + "react/no-danger": 0, + "comma-dangle": [ + "error", + "always-multiline" + ], + "function-paren-newline": 0, + "object-curly-newline": 0, + "no-restricted-globals": 0 + } +} diff --git a/templates/ice-design/layouts/ScalableAsideLayout/.gitignore b/templates/ice-design/layouts/ScalableAsideLayout/.gitignore new file mode 100644 index 0000000000..66244c2356 --- /dev/null +++ b/templates/ice-design/layouts/ScalableAsideLayout/.gitignore @@ -0,0 +1,20 @@ +*.swp +*.dia~ +.idea/ +.DS_Store + +npm-debug.log +yarn-error.log +node_modules/ +tmp/ + +# 这是编译后的代码, 用于提交到 tnpm, git 仓库不需要此份代码 +lib/ +# 提供 start dev 的环境依赖 +# happypack 缓存 +.happypack + +# fusion 配置平台相关 +theme/build/ +theme/deps.json +theme/index.html diff --git a/templates/ice-design/layouts/ScalableAsideLayout/README.md b/templates/ice-design/layouts/ScalableAsideLayout/README.md new file mode 100644 index 0000000000..f190d668b6 --- /dev/null +++ b/templates/ice-design/layouts/ScalableAsideLayout/README.md @@ -0,0 +1,10 @@ +# scalable-aside-layout + +简介:侧边栏可伸缩 Layout + +![截图](https://img.alicdn.com/tfs/TB1.yERim_I8KJjy0FoXXaFnVXa-2820-1284.png) + +## 更多 + +* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) +* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) diff --git a/templates/ice-design/layouts/ScalableAsideLayout/demo/index.html b/templates/ice-design/layouts/ScalableAsideLayout/demo/index.html new file mode 100644 index 0000000000..9f033a3925 --- /dev/null +++ b/templates/ice-design/layouts/ScalableAsideLayout/demo/index.html @@ -0,0 +1,18 @@ + + + + + + + + Document + + + + +
    + + + + + diff --git a/templates/ice-design/layouts/ScalableAsideLayout/demo/index.js b/templates/ice-design/layouts/ScalableAsideLayout/demo/index.js new file mode 100644 index 0000000000..905e7283b2 --- /dev/null +++ b/templates/ice-design/layouts/ScalableAsideLayout/demo/index.js @@ -0,0 +1,13 @@ +import React, { Component } from 'react'; +import { render } from 'react-dom'; +import Layout from '../src'; +import '@icedesign/base/lib/_components/@alife/next-core/lib/index.scss'; + +const props = { + // ... +}; + +render(( + + +), document.querySelector('#mountNode')); diff --git a/templates/ice-design/layouts/ScalableAsideLayout/mock/api.json b/templates/ice-design/layouts/ScalableAsideLayout/mock/api.json new file mode 100644 index 0000000000..e706430232 --- /dev/null +++ b/templates/ice-design/layouts/ScalableAsideLayout/mock/api.json @@ -0,0 +1,4 @@ +{ + "status": "success", + "data": {} +} diff --git a/templates/ice-design/layouts/ScalableAsideLayout/package.json b/templates/ice-design/layouts/ScalableAsideLayout/package.json new file mode 100644 index 0000000000..eb009647da --- /dev/null +++ b/templates/ice-design/layouts/ScalableAsideLayout/package.json @@ -0,0 +1,58 @@ +{ + "name": "@icedesign/scalable-aside-layout", + "version": "0.1.2", + "description": "", + "files": [ + "lib/", + "src/", + "mock/", + "demo/" + ], + "author": { + "name": "ICE Team", + "email": "ice-admin@alibaba-inc.com" + }, + "repository": { + "type": "git", + "url": "https://github.com/alibaba/ice" + }, + "license": "MIT", + "keywords": [ + "ice", + "ice-component" + ], + "dependencies": { + "@icedesign/img": "^0.1.0", + "@icedesign/layout": "^0.1.0", + "@icedesign/menu": "^0.1.0", + "classnames": "^2.2.5", + "prop-types": "^15.5.8", + "react-document-title": "^2.0.3", + "react-router": "^3.2.0", + "@icedesign/base": "^0.1.0" + }, + "devDependencies": { + "@icedesign/skin": "^0.1.0", + "babel-eslint": "^8.0.3", + "eslint": "^4.13.1", + "eslint-plugin-babel": "^4.1.1", + "eslint-plugin-react": "^7.5.1", + "eslint-plugin-import": "^2.8.0", + "eslint-config-airbnb": "^16.1.0", + "eslint-plugin-jsx-a11y": "^6.0.3" + }, + "blockConfig": { + "name": "scalable-aside-layout", + "description": "侧边栏可伸缩 Layout", + "chinese": "侧边栏可伸缩 Layout", + "category": "layout", + "snapshot": "https://img.alicdn.com/tfs/TB120YAkr_I8KJjy1XaXXbsxpXa-640-400.png", + "sketchURL": "", + "icelandURL": "", + "themePackage": "@icedesign/skin" + }, + "scripts": { + "lint": "eslint . --ext '.js,.jsx' --fix", + "prepublish": "npm run lint" + } +} diff --git a/templates/ice-design/layouts/ScalableAsideLayout/src/Layout.jsx b/templates/ice-design/layouts/ScalableAsideLayout/src/Layout.jsx new file mode 100644 index 0000000000..81f654de2c --- /dev/null +++ b/templates/ice-design/layouts/ScalableAsideLayout/src/Layout.jsx @@ -0,0 +1,156 @@ +import React, { Component } from 'react'; +import cx from 'classnames'; +import Layout from '@icedesign/layout'; +import Menu, { SubMenu, Item as MenuItem } from '@icedesign/menu'; +import { Link } from 'react-router'; +import { Icon, Button } from '@icedesign/base'; +import Header from './__components_Header__'; +import Footer from './__components_Footer__'; +import { asideNavs } from './__config_navs__'; + +import './Layout.scss'; + +export default class ScalableAsideLayout extends Component { + static propTypes = {}; + + static defaultProps = {}; + + constructor(props) { + super(props); + + this.state = { + collapse: false, + }; + } + + toggleCollapse = () => { + this.setState({ + collapse: !this.state.collapse, + }); + }; + + // 当前打开的菜单项 + getOpenKeys = () => { + const { routes = [{}] } = this.props; + const matched = routes[0].path; + let openKeys = ''; + + if (asideNavs && asideNavs.length > 0) { + asideNavs.forEach((item, index) => { + if (item.to === matched) { + openKeys = index; + } + }); + } + + return openKeys; + }; + + render() { + const { location = {} } = this.props; + const { pathname } = location; + + return ( + +
    + + + + {/* 侧边菜单项 begin */} + + + {asideNavs && + asideNavs.length > 0 && + asideNavs.map((nav, index) => { + if (nav.children && nav.children.length > 0) { + return ( + + {nav.icon ? ( + + ) : null} + + {nav.text} + + + } + > + {nav.children.map((item) => { + const linkProps = {}; + if (item.newWindow) { + linkProps.href = item.to; + linkProps.target = '_blank'; + } else if (item.external) { + linkProps.href = item.to; + } else { + linkProps.to = item.to; + } + + return ( + + {item.text} + + ); + })} + + ); + } + + const linkProps = {}; + if (nav.newWindow) { + linkProps.href = nav.to; + linkProps.target = '_blank'; + } else if (nav.external) { + linkProps.href = nav.to; + } else { + linkProps.to = nav.to; + } + + return ( + + + + {nav.icon ? : null} + + {nav.text} + + + + + ); + })} + + {/* 侧边菜单项 end */} + + + {/* 主体内容 */} + {this.props.children} + + +
    + + ); + } +} diff --git a/templates/ice-design/layouts/ScalableAsideLayout/src/Layout.scss b/templates/ice-design/layouts/ScalableAsideLayout/src/Layout.scss new file mode 100644 index 0000000000..5a570bf0c2 --- /dev/null +++ b/templates/ice-design/layouts/ScalableAsideLayout/src/Layout.scss @@ -0,0 +1,37 @@ +.ice-admin-scalable-aside-layout { + width: 100%; + padding: 0 20px; + background-color: #fafafa; + background-image: url(https://img.alicdn.com/tfs/TB1GsHCd8fH8KJjy1XbXXbLdXXa-1680-370.png); + background-size: 100%; + background-repeat: no-repeat; + background-origin: center; + .ice-admin-layout-header { + width: 100%; + margin: 20px auto; + padding: 0 20px; + display: flex; + justify-content: space-between; + align-items: center; + } + + .ice-admin-layout-footer-body { + width: 100%; + margin: 20px auto; + padding: 0 20px; + display: flex; + justify-content: space-between; + align-items: center; + } + + // 顶部导航效果覆盖 + .ice-admin-layout-header-menu { + .ice-menu { + background: transparent; + } + } + + .ice-admin-layout-header-username { + color: #666; + } +} diff --git a/templates/ice-design/layouts/ScalableAsideLayout/src/__components_Footer__.jsx b/templates/ice-design/layouts/ScalableAsideLayout/src/__components_Footer__.jsx new file mode 100644 index 0000000000..5b61849c01 --- /dev/null +++ b/templates/ice-design/layouts/ScalableAsideLayout/src/__components_Footer__.jsx @@ -0,0 +1,43 @@ +import React from 'react'; +import Layout from '@icedesign/layout'; +import Logo from './__components_Logo__'; + +export default () => { + return ( + +
    +
    + +
    +
    + 淘宝技术部 终端技术团队{' '} + + 帮助支持 + {' '} + + 提交反馈 + +
    + 由{' '} + + ICE + {' '} + 提供技术支持 +
    +
    +
    + ); +}; diff --git a/templates/ice-design/layouts/ScalableAsideLayout/src/__components_Header__.jsx b/templates/ice-design/layouts/ScalableAsideLayout/src/__components_Header__.jsx new file mode 100644 index 0000000000..2ef83412bf --- /dev/null +++ b/templates/ice-design/layouts/ScalableAsideLayout/src/__components_Header__.jsx @@ -0,0 +1,69 @@ +import React from 'react'; +import IceImg from '@icedesign/img'; +import Layout from '@icedesign/layout'; +import Menu from '@icedesign/menu'; +import { Icon } from '@icedesign/base'; +import { Link } from 'react-router'; +import { headerNavs } from './__config_navs__'; +import Logo from './__components_Logo__'; + +export default ({ width }) => { + return ( + +
    + +
    + {/* Header 菜单项 begin */} + {headerNavs && headerNavs.length > 0 ? ( + + {headerNavs.map((nav, idx) => { + const linkProps = {}; + if (nav.newWindow) { + linkProps.href = nav.to; + linkProps.target = '_blank'; + } else if (nav.external) { + linkProps.href = nav.to; + } else { + linkProps.to = nav.to; + } + return ( + + + {nav.icon ? : null} + {nav.text} + + + ); + })} + + ) : null} + {/* Header 菜单项 end */} + + {/* Header 右侧内容块 */} + + + 淘小宝 + +
    +
    +
    + ); +}; diff --git a/templates/ice-design/layouts/ScalableAsideLayout/src/__components_Logo__.jsx b/templates/ice-design/layouts/ScalableAsideLayout/src/__components_Logo__.jsx new file mode 100644 index 0000000000..54ce333d1e --- /dev/null +++ b/templates/ice-design/layouts/ScalableAsideLayout/src/__components_Logo__.jsx @@ -0,0 +1,45 @@ +import React, { PureComponent } from 'react'; +import { Link } from 'react-router'; + +export default class Logo extends PureComponent { + render() { + const { style } = this.props; + return ( +
    + + + ICE + +
    + ICE +
    + Design +
    + +
    + ); + } +} diff --git a/templates/ice-design/layouts/ScalableAsideLayout/src/__config_navs__.json b/templates/ice-design/layouts/ScalableAsideLayout/src/__config_navs__.json new file mode 100644 index 0000000000..f92cf3eb6b --- /dev/null +++ b/templates/ice-design/layouts/ScalableAsideLayout/src/__config_navs__.json @@ -0,0 +1,91 @@ +{ + "headerNavs": [ + { + "text": "首页", + "to": "/dashboard/index" + }, + { + "text": "反馈", + "to": + "//aone.alibaba-inc.com/project/478546/issue/new?akProjectId=478546&", + "newWindow": true + }, + { + "text": "帮助", + "to": "//ice.alibaba-inc.com/docs/about", + "newWindow": true + } + ], + "asideNavs": [ + { + "text": "Dashboard", + "to": "/dashboard", + "icon": "compass", + "children": [ + { + "text": "首页", + "to": "/dashboard/index" + }, + { + "text": "列表页", + "to": "/dashboard/list" + }, + { + "text": "图表页", + "to": "/dashboard/chart" + } + ] + }, + { + "text": "列表", + "to": "/list", + "icon": "nav-list", + "children": [ + { + "text": "文章列表", + "to": "/list/article-list" + } + ] + }, + { + "text": "表格", + "to": "/table", + "icon": "table", + "children": [ + { + "text": "基础表格", + "to": "/table/basic-table" + }, + { + "text": "进度条表格", + "to": "/table/progress-table" + } + ] + }, + { + "text": "异常反馈", + "to": "/exception", + "icon": "warning", + "children": [ + { + "text": "404", + "to": "/exception/404" + }, + { + "text": "500", + "to": "/exception/500" + }, + { + "text": "无边栏 layout 500", + "to": "/exception/500-with-basic-layout" + } + ] + }, + { + "text": "查看更多模块", + "to": "//ice.alibaba-inc.com/blocks", + "newWindow": true, + "icon": "folder" + } + ] +} diff --git a/templates/ice-design/layouts/ScalableAsideLayout/src/index.js b/templates/ice-design/layouts/ScalableAsideLayout/src/index.js new file mode 100644 index 0000000000..0720a9d6f4 --- /dev/null +++ b/templates/ice-design/layouts/ScalableAsideLayout/src/index.js @@ -0,0 +1 @@ +export default from './Layout'; From 9948b8ab1f898ebcd345cffc3b270477bb6de5d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=93=E5=87=8C?= Date: Wed, 3 Jan 2018 18:21:49 +0800 Subject: [PATCH 0003/1028] chore: add gitignore --- .gitignore | 1 + templates/ice-design/.gitignore | 2 ++ 2 files changed, 3 insertions(+) create mode 100644 templates/ice-design/.gitignore diff --git a/.gitignore b/.gitignore index 2b41665e28..e33381f3c8 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ lerna-debug.log npm-debug.log mochawesome-report .happypack +package-lock.json diff --git a/templates/ice-design/.gitignore b/templates/ice-design/.gitignore new file mode 100644 index 0000000000..c611a55665 --- /dev/null +++ b/templates/ice-design/.gitignore @@ -0,0 +1,2 @@ +# 忽略模板的 lib/ +lib/ From 4308f253d1eb3875a745222155e7187b104f3dc0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=93=E5=87=8C?= Date: Wed, 3 Jan 2018 21:05:40 +0800 Subject: [PATCH 0004/1028] chore: review --- README.md | 2 +- package.json | 8 +++++--- .../ice-design/blocks/BasicException/abc.json | 14 -------------- templates/ice-design/blocks/RegisterForm/abc.json | 13 ------------- .../blocks/StatisticalCard/package.json | 15 +++++++++++---- .../ice-design/blocks/Subscribe/package.json | 15 +++++++++++---- .../ice-design/blocks/SuccessDialog/package.json | 15 +++++++++++---- .../blocks/TimeFilterTable/package.json | 2 +- .../ice-design/layouts/AsideLayout/package.json | 2 +- 9 files changed, 41 insertions(+), 45 deletions(-) delete mode 100644 templates/ice-design/blocks/BasicException/abc.json delete mode 100644 templates/ice-design/blocks/RegisterForm/abc.json diff --git a/README.md b/README.md index a1c8d0971a..6480fd7415 100644 --- a/README.md +++ b/README.md @@ -1 +1 @@ -# Ice Design +# ICE diff --git a/package.json b/package.json index 65cb96629d..68bccaf7c9 100644 --- a/package.json +++ b/package.json @@ -2,11 +2,13 @@ "name": "ice-workspace", "version": "0.0.1", "scripts": { - "publish": "def update @ali/builder-ice && git pull origin master && lerna publish" + "publish": "lerna publish", + "bootstrap": "lerna bootstrap", + "setup": "lerna setup" }, "repository": { "type": "git", - "url": "git@gitlab.alibaba-inc.com:ice/workspace-outside.git" + "url": "https://github.com/alibaba/ice" }, "devDependencies": { "cz-conventional-changelog": "^2.1.0", @@ -17,4 +19,4 @@ "path": "./node_modules/cz-conventional-changelog" } } -} +} \ No newline at end of file diff --git a/templates/ice-design/blocks/BasicException/abc.json b/templates/ice-design/blocks/BasicException/abc.json deleted file mode 100644 index 60b7a84599..0000000000 --- a/templates/ice-design/blocks/BasicException/abc.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "name": "basic-exception", - "description": "", - "type": "ice", - "repository": { - "type": "block", - "template": "@ali/ice-template-block", - "templateVersion": "0.1.3" - }, - "options": { - "styleAutoMixin": true, - "themePackage": "@icedesign/skin" - } -} diff --git a/templates/ice-design/blocks/RegisterForm/abc.json b/templates/ice-design/blocks/RegisterForm/abc.json deleted file mode 100644 index b8b4ec03a2..0000000000 --- a/templates/ice-design/blocks/RegisterForm/abc.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "name": "register-form", - "description": "", - "type": "ice", - "repository": { - "type": "block", - "template": "@ali/ice-template-block", - "templateVersion": "0.1.3" - }, - "options": { - "styleAutoMixin": true - } -} \ No newline at end of file diff --git a/templates/ice-design/blocks/StatisticalCard/package.json b/templates/ice-design/blocks/StatisticalCard/package.json index 483eafe627..348dd2b7ca 100644 --- a/templates/ice-design/blocks/StatisticalCard/package.json +++ b/templates/ice-design/blocks/StatisticalCard/package.json @@ -2,7 +2,12 @@ "name": "@icedesign/statistical-card-block", "version": "0.1.0", "description": "统计型卡片", - "files": ["src/", "demo/", "lib/", "mock/"], + "files": [ + "src/", + "demo/", + "lib/", + "mock/" + ], "author": { "name": "ICE Team", "email": "ice-admin@alibaba-inc.com" @@ -12,7 +17,10 @@ "url": "https://github.com/alibaba/ice" }, "license": "MIT", - "keywords": ["ice", "ice-block"], + "keywords": [ + "ice", + "ice-block" + ], "dependencies": { "prop-types": "^15.5.8", "@icedesign/base": "^0.1.0", @@ -34,8 +42,7 @@ "description": "统计型卡片", "chinese": "统计型卡片", "category": "data-display", - "snapshot": - "https://img.alicdn.com/tfs/TB1MLLbilfH8KJjy1XbXXbLdXXa-1910-210.png", + "snapshot": "https://img.alicdn.com/tfs/TB1MLLbilfH8KJjy1XbXXbLdXXa-1910-210.png", "sketchURL": "", "icelandURL": "", "themePackage": "@icedesign/skin" diff --git a/templates/ice-design/blocks/Subscribe/package.json b/templates/ice-design/blocks/Subscribe/package.json index 66741def2f..50f26bd356 100644 --- a/templates/ice-design/blocks/Subscribe/package.json +++ b/templates/ice-design/blocks/Subscribe/package.json @@ -2,7 +2,12 @@ "name": "@icedesign/subscribe-block", "version": "0.1.0", "description": "订阅", - "files": ["src/", "demo/", "lib/", "mock/"], + "files": [ + "src/", + "demo/", + "lib/", + "mock/" + ], "scripts": {}, "author": { "name": "ICE Team", @@ -13,7 +18,10 @@ "url": "https://github.com/alibaba/ice" }, "license": "MIT", - "keywords": ["ice", "ice-block"], + "keywords": [ + "ice", + "ice-block" + ], "dependencies": { "@icedesign/base": "^0.1.0", "prop-types": "^15.5.8", @@ -39,8 +47,7 @@ "description": "订阅", "chinese": "订阅", "category": "form", - "snapshot": - "https://gw.alicdn.com/tfs/TB1HFVejvDH8KJjy1XcXXcpdXXa-1832-382.png", + "snapshot": "https://gw.alicdn.com/tfs/TB1HFVejvDH8KJjy1XcXXcpdXXa-1832-382.png", "sketchURL": "", "icelandURL": "", "themePackage": "@icedesign/skin" diff --git a/templates/ice-design/blocks/SuccessDialog/package.json b/templates/ice-design/blocks/SuccessDialog/package.json index c55a51ffef..775b9bd574 100644 --- a/templates/ice-design/blocks/SuccessDialog/package.json +++ b/templates/ice-design/blocks/SuccessDialog/package.json @@ -3,7 +3,12 @@ "version": "0.1.0", "description": "", "main": "lib/index.js", - "files": ["src/", "demo/", "lib/", "mock/"], + "files": [ + "src/", + "demo/", + "lib/", + "mock/" + ], "author": { "name": "ICE Team", "email": "ice-admin@alibaba-inc.com" @@ -13,7 +18,10 @@ "url": "https://github.com/alibaba/ice" }, "license": "MIT", - "keywords": ["ice", "ice-block"], + "keywords": [ + "ice", + "ice-block" + ], "dependencies": { "prop-types": "^15.5.8", "@icedesign/base": "^0.1.0" @@ -34,8 +42,7 @@ "description": "", "chinese": "提示框-成功", "category": "modal", - "snapshot": - "https://img.alicdn.com/tfs/TB1J9cak4rI8KJjy0FpXXb5hVXa-1284-554.png", + "snapshot": "https://img.alicdn.com/tfs/TB1J9cak4rI8KJjy0FpXXb5hVXa-1284-554.png", "sketchURL": "", "icelandURL": "", "themePackage": "@icedesign/skin" diff --git a/templates/ice-design/blocks/TimeFilterTable/package.json b/templates/ice-design/blocks/TimeFilterTable/package.json index 7dd5704fa1..94a01a95a3 100644 --- a/templates/ice-design/blocks/TimeFilterTable/package.json +++ b/templates/ice-design/blocks/TimeFilterTable/package.json @@ -14,7 +14,7 @@ "type": "git", "url": "https://gitlab.alibaba-inc.com/ice/workspace-outside/tree/master/templates/ice-design/blocks/time-filter-table.git" }, - "license": "ISC", + "license": "MIT", "keywords": [ "ice", "ice-block" diff --git a/templates/ice-design/layouts/AsideLayout/package.json b/templates/ice-design/layouts/AsideLayout/package.json index 145b011e63..c51f484432 100644 --- a/templates/ice-design/layouts/AsideLayout/package.json +++ b/templates/ice-design/layouts/AsideLayout/package.json @@ -16,7 +16,7 @@ "type": "git", "url": "https://github.com/alibaba/ice" }, - "license": "ISC", + "license": "MIT", "keywords": [ "ice", "ice-block" From 4823e049a731539e6ae2abcf99f6ec95e4a79fa6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=93=E5=87=8C?= Date: Wed, 3 Jan 2018 21:06:13 +0800 Subject: [PATCH 0005/1028] chore: review --- .../ice-design/blocks/TimeFilterTable/abc.json | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 templates/ice-design/blocks/TimeFilterTable/abc.json diff --git a/templates/ice-design/blocks/TimeFilterTable/abc.json b/templates/ice-design/blocks/TimeFilterTable/abc.json deleted file mode 100644 index 73622d94e6..0000000000 --- a/templates/ice-design/blocks/TimeFilterTable/abc.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "name": "time-filter-table", - "description": "支持时间筛选的表格", - "type": "ice", - "repository": { - "type": "block", - "template": "@ali/ice-template-block", - "templateVersion": "0.2.1" - }, - "options": { - "styleAutoMixin": true, - "themePackage": "@alife/dpl-ice-design" - } -} \ No newline at end of file From 8a987c97d61a373a5f4f9bf4f489665a7e0620a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=93=E5=87=8C?= Date: Thu, 4 Jan 2018 15:56:34 +0800 Subject: [PATCH 0006/1028] chore: change dirs --- {templates/ice-design => blocks}/.gitignore | 0 .../ApplicationProgress/.editorconfig | 0 .../ApplicationProgress/.eslintignore | 0 .../ApplicationProgress/.eslintrc | 0 .../ApplicationProgress/.gitignore | 0 .../ApplicationProgress/README.md | 0 .../ApplicationProgress/demo/index.html | 0 .../ApplicationProgress/demo/index.js | 0 .../ApplicationProgress/mock/api.json | 0 .../ApplicationProgress/package.json | 0 .../src/ApplicationProgress.jsx | 0 .../src/ApplicationProgress.scss | 0 .../ApplicationProgress/src/index.js | 0 .../AreaStackChart/.editorconfig | 0 .../AreaStackChart/.eslintignore | 0 .../AreaStackChart/.eslintrc | 0 .../AreaStackChart/.gitignore | 0 .../AreaStackChart/README.md | 0 .../AreaStackChart/demo/index.html | 0 .../AreaStackChart/demo/index.js | 0 .../AreaStackChart/mock/api.json | 0 .../AreaStackChart/package.json | 0 .../AreaStackChart/src/AreaStackChart.jsx | 0 .../AreaStackChart/src}/AreaStackChart.scss | 0 .../AreaStackChart/src/index.js | 0 .../ArticleList/.editorconfig | 0 .../ArticleList/.eslintignore | 0 .../blocks => blocks}/ArticleList/.eslintrc | 0 .../blocks => blocks}/ArticleList/.gitignore | 0 .../blocks => blocks}/ArticleList/README.md | 0 .../ArticleList/demo/index.html | 0 .../ArticleList/demo/index.js | 0 .../ArticleList/mock/api.json | 0 .../ArticleList/package.json | 0 .../ArticleList/src/ArticleList.jsx | 0 .../ArticleList/src/ArticleList.scss | 0 .../ArticleList/src/index.js | 0 .../BasicDetailInfo/.editorconfig | 0 .../BasicDetailInfo/.eslintignore | 0 .../BasicDetailInfo/.eslintrc | 0 .../BasicDetailInfo/.gitignore | 0 .../BasicDetailInfo/README.md | 0 .../BasicDetailInfo/demo/index.html | 0 .../BasicDetailInfo/demo/index.js | 0 .../BasicDetailInfo/mock/api.json | 0 .../BasicDetailInfo/package.json | 0 .../BasicDetailInfo/src/BasicDetailInfo.jsx | 0 .../BasicDetailInfo/src/BasicDetailInfo.scss | 0 .../BasicDetailInfo/src/index.js | 0 .../BasicException/.editorconfig | 0 .../BasicException/.eslintignore | 0 .../BasicException/.eslintrc | 0 .../BasicException/.gitignore | 0 .../BasicException/README.md | 0 .../BasicException/demo/index.html | 0 .../BasicException/demo/index.js | 0 .../BasicException/mock/api.json | 0 .../BasicException/package.json | 0 .../BasicException/src/BasicException.jsx | 0 .../BasicException/src}/BasicException.scss | 0 .../BasicException/src/index.js | 0 .../BasicNotFound/.editorconfig | 0 .../BasicNotFound/.eslintignore | 0 .../blocks => blocks}/BasicNotFound/.eslintrc | 0 .../BasicNotFound/.gitignore | 0 .../blocks => blocks}/BasicNotFound/README.md | 0 .../BasicNotFound/demo/index.html | 0 .../BasicNotFound/demo/index.js | 0 .../BasicNotFound/mock/api.json | 0 .../BasicNotFound/package.json | 0 .../BasicNotFound/src/BasicNotFound.jsx | 0 .../BasicNotFound/src}/BasicNotFound.scss | 0 .../BasicNotFound/src/index.js | 0 .../blocks => blocks}/BasicTab/.editorconfig | 0 .../blocks => blocks}/BasicTab/.eslintignore | 0 .../blocks => blocks}/BasicTab/.eslintrc | 0 .../blocks => blocks}/BasicTab/.gitignore | 0 .../blocks => blocks}/BasicTab/README.md | 0 .../BasicTab/demo/index.html | 0 .../blocks => blocks}/BasicTab/demo/index.js | 0 .../blocks => blocks}/BasicTab/mock/api.json | 0 .../blocks => blocks}/BasicTab/package.json | 0 .../BasicTab/src/BasicTab.jsx | 0 .../lib => blocks/BasicTab/src}/BasicTab.scss | 0 .../blocks => blocks}/BasicTab/src/index.js | 0 .../BrandDisplay/.editorconfig | 0 .../BrandDisplay/.eslintignore | 0 .../blocks => blocks}/BrandDisplay/.eslintrc | 0 .../blocks => blocks}/BrandDisplay/.gitignore | 0 .../blocks => blocks}/BrandDisplay/README.md | 0 .../BrandDisplay/demo/index.html | 0 .../BrandDisplay/demo/index.js | 0 .../BrandDisplay/mock/api.json | 0 .../BrandDisplay/package.json | 0 .../BrandDisplay/src/BrandDisplay.jsx | 0 .../BrandDisplay/src/BrandDisplay.scss | 0 .../BrandDisplay/src/index.js | 0 .../BrandShowCase/.editorconfig | 0 .../BrandShowCase/.eslintignore | 0 .../blocks => blocks}/BrandShowCase/.eslintrc | 0 .../BrandShowCase/.gitignore | 0 .../blocks => blocks}/BrandShowCase/README.md | 0 .../BrandShowCase/demo/index.html | 0 .../BrandShowCase/demo/index.js | 0 .../BrandShowCase/mock/api.json | 0 .../BrandShowCase/package.json | 0 .../BrandShowCase/src/BrandShowCase.jsx | 0 .../BrandShowCase/src/BrandShowCase.scss | 0 .../BrandShowCase/src/index.js | 0 .../blocks => blocks}/ChartArea/.editorconfig | 0 .../blocks => blocks}/ChartArea/.eslintignore | 0 .../blocks => blocks}/ChartArea/.eslintrc | 0 .../blocks => blocks}/ChartArea/.gitignore | 0 .../blocks => blocks}/ChartArea/README.md | 0 .../ChartArea/demo/index.html | 0 .../blocks => blocks}/ChartArea/demo/index.js | 0 .../blocks => blocks}/ChartArea/mock/api.json | 0 .../blocks => blocks}/ChartArea/package.json | 0 .../ChartArea/src/ChartArea.jsx | 0 .../ChartArea/src}/ChartArea.scss | 0 .../blocks => blocks}/ChartArea/src/index.js | 0 .../blocks => blocks}/ChartBar/.editorconfig | 0 .../blocks => blocks}/ChartBar/.eslintignore | 0 .../blocks => blocks}/ChartBar/.eslintrc | 0 .../blocks => blocks}/ChartBar/.gitignore | 0 .../blocks => blocks}/ChartBar/README.md | 0 .../ChartBar/demo/index.html | 0 .../blocks => blocks}/ChartBar/demo/index.js | 0 .../blocks => blocks}/ChartBar/mock/api.json | 0 .../blocks => blocks}/ChartBar/package.json | 0 .../ChartBar/src/ChartBar.jsx | 0 .../lib => blocks/ChartBar/src}/ChartBar.scss | 0 .../blocks => blocks}/ChartBar/src/index.js | 0 .../blocks => blocks}/ChartBox/.editorconfig | 0 .../blocks => blocks}/ChartBox/.eslintignore | 0 .../blocks => blocks}/ChartBox/.eslintrc | 0 .../blocks => blocks}/ChartBox/.gitignore | 0 .../blocks => blocks}/ChartBox/README.md | 0 .../ChartBox/demo/index.html | 0 .../blocks => blocks}/ChartBox/demo/index.js | 0 .../blocks => blocks}/ChartBox/mock/api.json | 0 .../blocks => blocks}/ChartBox/package.json | 0 .../ChartBox/src/ChartBox.jsx | 0 .../lib => blocks/ChartBox/src}/ChartBox.scss | 0 .../blocks => blocks}/ChartBox/src/index.js | 0 .../ChartBubbleImage/.editorconfig | 0 .../ChartBubbleImage/.eslintignore | 0 .../ChartBubbleImage/.eslintrc | 0 .../ChartBubbleImage/.gitignore | 0 .../ChartBubbleImage/README.md | 0 .../ChartBubbleImage/demo/index.html | 0 .../ChartBubbleImage/demo/index.js | 0 .../ChartBubbleImage/mock/api.json | 0 .../ChartBubbleImage/package.json | 0 .../ChartBubbleImage/src/ChartBubbleImage.jsx | 0 .../src}/ChartBubbleImage.scss | 0 .../ChartBubbleImage/src/index.js | 0 .../ChartFacet/.editorconfig | 0 .../ChartFacet/.eslintignore | 0 .../blocks => blocks}/ChartFacet/.eslintrc | 0 .../blocks => blocks}/ChartFacet/.gitignore | 0 .../blocks => blocks}/ChartFacet/README.md | 0 .../ChartFacet/demo/index.html | 0 .../ChartFacet/demo/index.js | 0 .../ChartFacet/mock/api.json | 0 .../blocks => blocks}/ChartFacet/package.json | 0 .../ChartFacet/src/ChartFacet.jsx | 0 .../ChartFacet/src}/ChartFacet.scss | 0 .../blocks => blocks}/ChartFacet/src/index.js | 0 .../ChartFunnel/.editorconfig | 0 .../ChartFunnel/.eslintignore | 0 .../blocks => blocks}/ChartFunnel/.eslintrc | 0 .../blocks => blocks}/ChartFunnel/.gitignore | 0 .../blocks => blocks}/ChartFunnel/README.md | 0 .../ChartFunnel/demo/index.html | 0 .../ChartFunnel/demo/index.js | 0 .../ChartFunnel/mock/api.json | 0 .../ChartFunnel/package.json | 0 .../ChartFunnel/src/ChartFunnel.jsx | 0 .../ChartFunnel/src}/ChartFunnel.scss | 0 .../ChartFunnel/src/index.js | 0 .../ChartGauge/.editorconfig | 0 .../ChartGauge/.eslintignore | 0 .../blocks => blocks}/ChartGauge/.eslintrc | 0 .../blocks => blocks}/ChartGauge/.gitignore | 0 .../blocks => blocks}/ChartGauge/README.md | 0 .../ChartGauge/demo/index.html | 0 .../ChartGauge/demo/index.js | 0 .../ChartGauge/mock/api.json | 0 .../blocks => blocks}/ChartGauge/package.json | 0 .../ChartGauge/src/ChartGauge.jsx | 0 .../ChartGauge/src}/ChartGauge.scss | 0 .../blocks => blocks}/ChartGauge/src/index.js | 0 .../ChartHeatMap/.editorconfig | 0 .../ChartHeatMap/.eslintignore | 0 .../blocks => blocks}/ChartHeatMap/.eslintrc | 0 .../blocks => blocks}/ChartHeatMap/.gitignore | 0 .../blocks => blocks}/ChartHeatMap/README.md | 0 .../ChartHeatMap/demo/index.html | 0 .../ChartHeatMap/demo/index.js | 0 .../ChartHeatMap/mock/api.json | 0 .../ChartHeatMap/package.json | 0 .../ChartHeatMap/src/ChartHeatMap.jsx | 0 .../ChartHeatMap/src}/ChartHeatMap.scss | 0 .../ChartHeatMap/src/index.js | 0 .../blocks => blocks}/ChartPie/.editorconfig | 0 .../blocks => blocks}/ChartPie/.eslintignore | 0 .../blocks => blocks}/ChartPie/.eslintrc | 0 .../blocks => blocks}/ChartPie/.gitignore | 0 .../blocks => blocks}/ChartPie/README.md | 0 .../ChartPie/demo/index.html | 0 .../blocks => blocks}/ChartPie/demo/index.js | 0 .../blocks => blocks}/ChartPie/mock/api.json | 0 .../blocks => blocks}/ChartPie/package.json | 0 .../ChartPie/src/ChartPie.jsx | 0 .../lib => blocks/ChartPie/src}/ChartPie.scss | 0 .../blocks => blocks}/ChartPie/src/index.js | 0 .../ChartPoint/.editorconfig | 0 .../ChartPoint/.eslintignore | 0 .../blocks => blocks}/ChartPoint/.eslintrc | 0 .../blocks => blocks}/ChartPoint/.gitignore | 0 .../blocks => blocks}/ChartPoint/README.md | 0 .../ChartPoint/demo/index.html | 0 .../ChartPoint/demo/index.js | 0 .../ChartPoint/mock/chart-point.json | 0 .../blocks => blocks}/ChartPoint/package.json | 0 .../ChartPoint/src/ChartPoint.jsx | 0 .../ChartPoint/src}/ChartPoint.scss | 0 .../blocks => blocks}/ChartPoint/src/index.js | 0 .../ChartRadar/.editorconfig | 0 .../ChartRadar/.eslintignore | 0 .../blocks => blocks}/ChartRadar/.eslintrc | 0 .../blocks => blocks}/ChartRadar/.gitignore | 0 .../blocks => blocks}/ChartRadar/README.md | 0 .../ChartRadar/demo/index.html | 0 .../ChartRadar/demo/index.js | 0 .../ChartRadar/mock/api.json | 0 .../blocks => blocks}/ChartRadar/package.json | 0 .../ChartRadar/src/ChartRadar.jsx | 0 .../ChartRadar/src}/ChartRadar.scss | 0 .../blocks => blocks}/ChartRadar/src/index.js | 0 .../ChartRelation/.editorconfig | 0 .../ChartRelation/.eslintignore | 0 .../blocks => blocks}/ChartRelation/.eslintrc | 0 .../ChartRelation/.gitignore | 0 .../blocks => blocks}/ChartRelation/README.md | 0 .../ChartRelation/demo/index.html | 0 .../ChartRelation/demo/index.js | 0 .../ChartRelation/mock/api.json | 0 .../ChartRelation/package.json | 0 .../ChartRelation/src/ChartRelation.jsx | 0 .../ChartRelation/src}/ChartRelation.scss | 0 .../ChartRelation/src/index.js | 0 .../ChartStock/.editorconfig | 0 .../ChartStock/.eslintignore | 0 .../blocks => blocks}/ChartStock/.eslintrc | 0 .../blocks => blocks}/ChartStock/.gitignore | 0 .../blocks => blocks}/ChartStock/README.md | 0 .../ChartStock/demo/index.html | 0 .../ChartStock/demo/index.js | 0 .../ChartStock/mock/chart-stock.json | 0 .../blocks => blocks}/ChartStock/package.json | 0 .../ChartStock/src/ChartStock.jsx | 0 .../ChartStock/src}/ChartStock.scss | 0 .../blocks => blocks}/ChartStock/src/index.js | 0 .../ChartTypeLine/.editorconfig | 0 .../ChartTypeLine/.eslintignore | 0 .../blocks => blocks}/ChartTypeLine/.eslintrc | 0 .../ChartTypeLine/.gitignore | 0 .../blocks => blocks}/ChartTypeLine/README.md | 0 .../ChartTypeLine/demo/index.html | 0 .../ChartTypeLine/demo/index.js | 0 .../ChartTypeLine/mock/api.json | 0 .../ChartTypeLine/package.json | 0 .../ChartTypeLine/src/ChartTypeLine.jsx | 0 .../ChartTypeLine/src}/ChartTypeLine.scss | 0 .../ChartTypeLine/src/index.js | 0 .../CollapseCard/.editorconfig | 0 .../CollapseCard/.eslintignore | 0 .../blocks => blocks}/CollapseCard/.eslintrc | 0 .../blocks => blocks}/CollapseCard/.gitignore | 0 .../blocks => blocks}/CollapseCard/README.md | 0 .../CollapseCard/demo/index.html | 0 .../CollapseCard/demo/index.js | 0 .../CollapseCard/mock/api.json | 0 .../CollapseCard/package.json | 0 .../CollapseCard/src/CollapseCard.jsx | 0 .../CollapseCard/src/CollapseCard.scss | 0 .../CollapseCard/src/index.js | 0 .../ComplexDialog/.editorconfig | 0 .../ComplexDialog/.eslintignore | 0 .../blocks => blocks}/ComplexDialog/.eslintrc | 0 .../ComplexDialog/.gitignore | 0 .../blocks => blocks}/ComplexDialog/README.md | 0 .../ComplexDialog/demo/index.html | 0 .../ComplexDialog/demo/index.js | 0 .../ComplexDialog/mock/api.json | 0 .../ComplexDialog/package.json | 0 .../ComplexDialog/src/ComplexDialog.jsx | 0 .../ComplexDialog/src/ComplexDialog.scss | 0 .../ComplexDialog/src/CreateFuncDialog.js | 0 .../ComplexDialog/src/index.js | 0 .../ComplexFilter/.editorconfig | 0 .../ComplexFilter/.eslintignore | 0 .../blocks => blocks}/ComplexFilter/.eslintrc | 0 .../ComplexFilter/.gitignore | 0 .../blocks => blocks}/ComplexFilter/README.md | 0 .../ComplexFilter/demo/index.html | 0 .../ComplexFilter/demo/index.js | 0 .../ComplexFilter/mock/api.json | 0 .../ComplexFilter/package.json | 0 .../ComplexFilter/src/ComplexFilter.jsx | 0 .../ComplexFilter/src/ComplexFilter.scss | 0 .../ComplexFilter/src/index.js | 0 .../ComplexProgressTable/.babelrc | 0 .../ComplexProgressTable/.editorconfig | 0 .../ComplexProgressTable/.eslintignore | 0 .../ComplexProgressTable/.eslintrc | 0 .../ComplexProgressTable/.gitignore | 0 .../ComplexProgressTable/README.md | 0 .../ComplexProgressTable/demo/index.html | 0 .../ComplexProgressTable/demo/index.js | 0 .../mock/complex-progress-table.json | 0 .../ComplexProgressTable/package.json | 0 .../src/ComplexProgressTable.jsx | 0 .../src/ComplexProgressTable.scss | 0 .../src/CreateFuncDialog.jsx | 0 .../ComplexProgressTable/src/EditDialog.jsx | 0 .../ComplexProgressTable/src/index.js | 0 .../ComplexTabTable/.editorconfig | 0 .../ComplexTabTable/.eslintignore | 0 .../ComplexTabTable/.eslintrc | 0 .../ComplexTabTable/.gitignore | 0 .../ComplexTabTable/README.md | 0 .../ComplexTabTable/demo/index.html | 0 .../ComplexTabTable/demo/index.js | 0 .../mock/complex-tab-table-list.json | 0 .../ComplexTabTable/package.json | 0 .../ComplexTabTable/src/ComplexTabTable.jsx | 0 .../ComplexTabTable/src/ComplexTabTable.scss | 0 .../ComplexTabTable/src/SubCategoryItem.jsx | 0 .../ComplexTabTable/src/index.js | 0 .../CompositeFilter/.editorconfig | 0 .../CompositeFilter/.eslintignore | 0 .../CompositeFilter/.eslintrc | 0 .../CompositeFilter/.gitignore | 0 .../CompositeFilter/README.md | 0 .../CompositeFilter/demo/index.html | 0 .../CompositeFilter/demo/index.js | 0 .../CompositeFilter/mock/api.json | 0 .../CompositeFilter/package.json | 0 .../CompositeFilter/src/CompositeFilter.jsx | 0 .../CompositeFilter/src/CompositeFilter.scss | 0 .../CompositeFilter/src/index.js | 0 .../ConfirmDialog/.editorconfig | 0 .../ConfirmDialog/.eslintignore | 0 .../blocks => blocks}/ConfirmDialog/.eslintrc | 0 .../ConfirmDialog/.gitignore | 0 .../blocks => blocks}/ConfirmDialog/README.md | 0 .../ConfirmDialog/demo/index.html | 0 .../ConfirmDialog/demo/index.js | 0 .../ConfirmDialog/mock/api.json | 0 .../ConfirmDialog/package.json | 0 .../ConfirmDialog/src/ConfirmDialog.jsx | 0 .../ConfirmDialog/src/ConfirmDialog.scss | 0 .../ConfirmDialog/src/CreateFuncDialog.js | 0 .../ConfirmDialog/src/index.js | 0 .../DataDisplay/.editorconfig | 0 .../DataDisplay/.eslintignore | 0 .../blocks => blocks}/DataDisplay/.eslintrc | 0 .../blocks => blocks}/DataDisplay/.gitignore | 0 .../blocks => blocks}/DataDisplay/README.md | 0 .../DataDisplay/demo/index.html | 0 .../DataDisplay/demo/index.js | 0 .../DataDisplay/mock/api.json | 0 .../DataDisplay/package.json | 0 .../DataDisplay/src/DataDisplay.jsx | 0 .../DataDisplay/src/DataDisplay.scss | 0 .../DataDisplay/src/index.js | 0 .../DetailTable/.editorconfig | 0 .../DetailTable/.eslintignore | 0 .../blocks => blocks}/DetailTable/.eslintrc | 0 .../blocks => blocks}/DetailTable/.gitignore | 0 .../blocks => blocks}/DetailTable/README.md | 0 .../DetailTable/demo/index.html | 0 .../DetailTable/demo/index.js | 0 .../DetailTable/mock/api.json | 0 .../DetailTable/package.json | 0 .../DetailTable/src/DetailTable.jsx | 0 .../DetailTable/src/DetailTable.scss | 0 .../DetailTable/src/index.js | 0 .../DisplayCard/.editorconfig | 0 .../DisplayCard/.eslintignore | 0 .../blocks => blocks}/DisplayCard/.eslintrc | 0 .../blocks => blocks}/DisplayCard/.gitignore | 0 .../blocks => blocks}/DisplayCard/README.md | 0 .../DisplayCard/demo/index.html | 0 .../DisplayCard/demo/index.js | 0 .../DisplayCard/mock/api.json | 0 .../DisplayCard/package.json | 0 .../DisplayCard/src/DisplayCard.jsx | 0 .../DisplayCard/src/DisplayCard.scss | 0 .../DisplayCard/src/index.js | 0 .../DownloadCard/.editorconfig | 0 .../DownloadCard/.eslintignore | 0 .../blocks => blocks}/DownloadCard/.eslintrc | 0 .../blocks => blocks}/DownloadCard/.gitignore | 0 .../blocks => blocks}/DownloadCard/README.md | 0 .../DownloadCard/demo/index.html | 0 .../DownloadCard/demo/index.js | 0 .../DownloadCard/mock/api.json | 0 .../DownloadCard/mock/download-card.json | 0 .../DownloadCard/package.json | 0 .../DownloadCard/src/DownloadCard.jsx | 0 .../DownloadCard/src/DownloadCard.scss | 0 .../DownloadCard/src/index.js | 0 .../DynamicBanner/.editorconfig | 0 .../DynamicBanner/.eslintignore | 0 .../blocks => blocks}/DynamicBanner/.eslintrc | 0 .../DynamicBanner/.gitignore | 0 .../blocks => blocks}/DynamicBanner/README.md | 0 .../DynamicBanner/demo/index.html | 0 .../DynamicBanner/demo/index.js | 0 .../DynamicBanner/mock/api.json | 0 .../DynamicBanner/package.json | 0 .../DynamicBanner/src/DynamicBanner.jsx | 0 .../DynamicBanner/src/DynamicBanner.scss | 0 .../DynamicBanner/src/index.js | 0 .../EditableTable/.editorconfig | 0 .../EditableTable/.eslintignore | 0 .../blocks => blocks}/EditableTable/.eslintrc | 0 .../EditableTable/.gitignore | 0 .../blocks => blocks}/EditableTable/README.md | 0 .../EditableTable/demo/index.html | 0 .../EditableTable/demo/index.js | 0 .../EditableTable/mock/api.json | 0 .../EditableTable/package.json | 0 .../EditableTable/src/CellEditor.jsx | 0 .../EditableTable/src/EditableTable.jsx | 0 .../EditableTable/src/EditableTable.scss | 0 .../EditableTable/src/index.js | 0 .../EmptyContent/.editorconfig | 0 .../EmptyContent/.eslintignore | 0 .../blocks => blocks}/EmptyContent/.eslintrc | 0 .../blocks => blocks}/EmptyContent/.gitignore | 0 .../blocks => blocks}/EmptyContent/README.md | 0 .../EmptyContent/demo/index.html | 0 .../EmptyContent/demo/index.js | 0 .../EmptyContent/mock/api.json | 0 .../EmptyContent/package.json | 0 .../EmptyContent/src/EmptyContent.jsx | 0 .../EmptyContent/src/EmptyContent.scss | 0 .../EmptyContent/src/index.js | 0 .../EnhanceTable/.editorconfig | 0 .../EnhanceTable/.eslintignore | 0 .../blocks => blocks}/EnhanceTable/.eslintrc | 0 .../blocks => blocks}/EnhanceTable/.gitignore | 0 .../blocks => blocks}/EnhanceTable/README.md | 0 .../EnhanceTable/demo/index.html | 0 .../EnhanceTable/demo/index.js | 0 .../EnhanceTable/mock/enhance-table-list.json | 0 .../EnhanceTable/package.json | 0 .../EnhanceTable/src/EnhanceTable.jsx | 0 .../EnhanceTable/src/EnhanceTable.scss | 0 .../EnhanceTable/src/index.js | 0 .../blocks => blocks}/EntryCard/.editorconfig | 0 .../blocks => blocks}/EntryCard/.eslintignore | 0 .../blocks => blocks}/EntryCard/.eslintrc | 0 .../blocks => blocks}/EntryCard/.gitignore | 0 .../blocks => blocks}/EntryCard/README.md | 0 .../EntryCard/demo/index.html | 0 .../blocks => blocks}/EntryCard/demo/index.js | 0 .../blocks => blocks}/EntryCard/mock/api.json | 0 .../blocks => blocks}/EntryCard/package.json | 0 .../EntryCard/src/EntryCard.jsx | 0 .../EntryCard/src}/EntryCard.scss | 0 .../blocks => blocks}/EntryCard/src/index.js | 0 .../FailureDetail/.editorconfig | 0 .../FailureDetail/.eslintignore | 0 .../blocks => blocks}/FailureDetail/.eslintrc | 0 .../FailureDetail/.gitignore | 0 .../blocks => blocks}/FailureDetail/README.md | 0 .../FailureDetail/demo/index.html | 0 .../FailureDetail/demo/index.js | 0 .../FailureDetail/mock/api.json | 0 .../FailureDetail/package.json | 0 .../FailureDetail/src/FailureDetail.jsx | 0 .../FailureDetail/src/FailureDetail.scss | 0 .../FailureDetail/src/index.js | 0 .../FeatureDisplay/.editorconfig | 0 .../FeatureDisplay/.eslintignore | 0 .../FeatureDisplay/.eslintrc | 0 .../FeatureDisplay/.gitignore | 0 .../FeatureDisplay/README.md | 0 .../FeatureDisplay/demo/index.html | 0 .../FeatureDisplay/demo/index.js | 0 .../FeatureDisplay/mock/api.json | 0 .../FeatureDisplay/package.json | 0 .../FeatureDisplay/src/FeatureDisplay.jsx | 0 .../FeatureDisplay/src/FeatureDisplay.scss | 0 .../FeatureDisplay/src/index.js | 0 .../blocks => blocks}/FeedList/.editorconfig | 0 .../blocks => blocks}/FeedList/.eslintignore | 0 .../blocks => blocks}/FeedList/.eslintrc | 0 .../blocks => blocks}/FeedList/.gitignore | 0 .../blocks => blocks}/FeedList/README.md | 0 .../FeedList/demo/index.html | 0 .../blocks => blocks}/FeedList/demo/index.js | 0 .../blocks => blocks}/FeedList/mock/api.json | 0 .../blocks => blocks}/FeedList/package.json | 0 .../FeedList/src/FeedList.jsx | 0 .../FeedList/src/FeedList.scss | 0 .../blocks => blocks}/FeedList/src/index.js | 0 .../FilterList/.editorconfig | 0 .../FilterList/.eslintignore | 0 .../blocks => blocks}/FilterList/.eslintrc | 0 .../blocks => blocks}/FilterList/.gitignore | 0 .../blocks => blocks}/FilterList/README.md | 0 .../FilterList/demo/index.html | 0 .../FilterList/demo/index.js | 0 .../FilterList/mock/api.json | 0 .../blocks => blocks}/FilterList/package.json | 0 .../FilterList/src/FilterList.jsx | 0 .../FilterList/src/FilterList.scss | 0 .../FilterList/src/SingleItem/SingleItem.jsx | 0 .../FilterList/src/SingleItem/SingleItem.scss | 0 .../FilterList/src/SingleItem/index.js | 0 .../blocks => blocks}/FilterList/src/index.js | 0 .../FilterTable/.editorconfig | 0 .../FilterTable/.eslintignore | 0 .../blocks => blocks}/FilterTable/.eslintrc | 0 .../blocks => blocks}/FilterTable/.gitignore | 0 .../blocks => blocks}/FilterTable/README.md | 0 .../FilterTable/demo/index.html | 0 .../FilterTable/demo/index.js | 0 .../FilterTable/mock/filter-table-list.json | 0 .../FilterTable/package.json | 0 .../FilterTable/src/Filter/Filter.jsx | 0 .../FilterTable/src/Filter/Filter.scss | 0 .../FilterTable/src/Filter/index.js | 0 .../FilterTable/src/FilterTable.jsx | 0 .../FilterTable/src/index.js | 0 .../FilterWithSearch/.editorconfig | 0 .../FilterWithSearch/.eslintignore | 0 .../FilterWithSearch/.eslintrc | 0 .../FilterWithSearch/.gitignore | 0 .../FilterWithSearch/README.md | 0 .../FilterWithSearch/demo/index.html | 0 .../FilterWithSearch/demo/index.js | 0 .../FilterWithSearch/mock/api.json | 0 .../FilterWithSearch/package.json | 0 .../FilterWithSearch/src/FilterWithSearch.jsx | 0 .../src/FilterWithSearch.scss | 0 .../FilterWithSearch/src/index.js | 0 .../blocks => blocks}/Footer/.editorconfig | 0 .../blocks => blocks}/Footer/.eslintignore | 0 .../blocks => blocks}/Footer/.eslintrc | 0 .../blocks => blocks}/Footer/.gitignore | 0 .../blocks => blocks}/Footer/README.md | 0 .../blocks => blocks}/Footer/demo/index.html | 0 .../blocks => blocks}/Footer/demo/index.js | 0 .../blocks => blocks}/Footer/mock/api.json | 0 .../blocks => blocks}/Footer/package.json | 0 .../blocks => blocks}/Footer/src/Footer.jsx | 0 .../blocks => blocks}/Footer/src/index.js | 0 .../FooterInfo/.editorconfig | 0 .../FooterInfo/.eslintignore | 0 .../blocks => blocks}/FooterInfo/.eslintrc | 0 .../blocks => blocks}/FooterInfo/.gitignore | 0 .../blocks => blocks}/FooterInfo/README.md | 0 .../FooterInfo/demo/index.html | 0 .../FooterInfo/demo/index.js | 0 .../FooterInfo/mock/api.json | 0 .../blocks => blocks}/FooterInfo/package.json | 0 .../FooterInfo/src/FooterInfo.jsx | 0 .../blocks => blocks}/FooterInfo/src/index.js | 0 .../ForgetPasswordForm/.editorconfig | 0 .../ForgetPasswordForm/.eslintignore | 0 .../ForgetPasswordForm/.eslintrc | 0 .../ForgetPasswordForm/.gitignore | 0 .../ForgetPasswordForm/README.md | 0 .../ForgetPasswordForm/demo/index.html | 0 .../ForgetPasswordForm/demo/index.js | 0 .../ForgetPasswordForm/mock/api.json | 0 .../ForgetPasswordForm/package.json | 0 .../src/ForgetPasswordForm.jsx | 0 .../ForgetPasswordForm/src/index.js | 0 .../InfoDisplayTab/.editorconfig | 0 .../InfoDisplayTab/.eslintignore | 0 .../InfoDisplayTab/.eslintrc | 0 .../InfoDisplayTab/.gitignore | 0 .../InfoDisplayTab/README.md | 0 .../InfoDisplayTab/demo/index.html | 0 .../InfoDisplayTab/demo/index.js | 0 .../InfoDisplayTab/mock/info-display-tab.json | 0 .../InfoDisplayTab/package.json | 0 .../InfoDisplayTab/src/InfoDisplayTab.jsx | 0 .../InfoDisplayTab/src}/InfoDisplayTab.scss | 0 .../InfoDisplayTab/src/index.js | 0 .../InfoDisplayTable/.editorconfig | 0 .../InfoDisplayTable/.eslintignore | 0 .../InfoDisplayTable/.eslintrc | 0 .../InfoDisplayTable/.gitignore | 0 .../InfoDisplayTable/README.md | 0 .../InfoDisplayTable/demo/index.html | 0 .../InfoDisplayTable/demo/index.js | 0 .../InfoDisplayTable/mock/api.json | 0 .../InfoDisplayTable/package.json | 0 .../InfoDisplayTable/src/InfoDisplayTable.jsx | 0 .../src}/InfoDisplayTable.scss | 0 .../InfoDisplayTable/src/index.js | 0 .../blocks => blocks}/JoinUs/.editorconfig | 0 .../blocks => blocks}/JoinUs/.eslintignore | 0 .../blocks => blocks}/JoinUs/.eslintrc | 0 .../blocks => blocks}/JoinUs/.gitignore | 0 .../blocks => blocks}/JoinUs/README.md | 0 .../blocks => blocks}/JoinUs/demo/index.html | 0 .../blocks => blocks}/JoinUs/demo/index.js | 0 .../blocks => blocks}/JoinUs/mock/api.json | 0 .../blocks => blocks}/JoinUs/package.json | 0 .../blocks => blocks}/JoinUs/src/JoinUs.jsx | 0 .../lib => blocks/JoinUs/src}/JoinUs.scss | 0 .../blocks => blocks}/JoinUs/src/index.js | 0 .../LandingIntroBanner/.editorconfig | 0 .../LandingIntroBanner/.eslintignore | 0 .../LandingIntroBanner/.eslintrc | 0 .../LandingIntroBanner/.gitignore | 0 .../LandingIntroBanner/README.md | 0 .../LandingIntroBanner/demo/index.html | 0 .../LandingIntroBanner/demo/index.js | 0 .../LandingIntroBanner/mock/api.json | 0 .../LandingIntroBanner/package.json | 0 .../src/LandingIntroBanner.jsx | 0 .../src}/LandingIntroBanner.scss | 0 .../LandingIntroBanner/src/index.js | 0 .../LeftContentDisplay/.editorconfig | 0 .../LeftContentDisplay/.eslintignore | 0 .../LeftContentDisplay/.eslintrc | 0 .../LeftContentDisplay/.gitignore | 0 .../LeftContentDisplay/README.md | 0 .../LeftContentDisplay/demo/index.html | 0 .../LeftContentDisplay/demo/index.js | 0 .../LeftContentDisplay/mock/api.json | 0 .../LeftContentDisplay/package.json | 0 .../src/LeftContentDisplay.jsx | 0 .../src}/LeftContentDisplay.scss | 0 .../LeftContentDisplay/src/index.js | 0 .../blocks => blocks}/LiteTable/.editorconfig | 0 .../blocks => blocks}/LiteTable/.eslintignore | 0 .../blocks => blocks}/LiteTable/.eslintrc | 0 .../blocks => blocks}/LiteTable/.gitignore | 0 .../blocks => blocks}/LiteTable/README.md | 0 .../LiteTable/demo/index.html | 0 .../blocks => blocks}/LiteTable/demo/index.js | 0 .../blocks => blocks}/LiteTable/mock/api.json | 0 .../blocks => blocks}/LiteTable/package.json | 0 .../LiteTable/src/LiteTable.jsx | 0 .../LiteTable/src}/LiteTable.scss | 0 .../blocks => blocks}/LiteTable/src/index.js | 0 .../MessageList/.editorconfig | 0 .../MessageList/.eslintignore | 0 .../blocks => blocks}/MessageList/.eslintrc | 0 .../blocks => blocks}/MessageList/.gitignore | 0 .../blocks => blocks}/MessageList/README.md | 0 .../MessageList/demo/index.html | 0 .../MessageList/demo/index.js | 0 .../MessageList/mock/api.json | 0 .../MessageList/package.json | 0 .../MessageList/src/MessageList.jsx | 0 .../MessageList/src}/MessageList.scss | 0 .../MessageList/src/index.js | 0 .../MonacoEditor/.editorconfig | 0 .../MonacoEditor/.eslintignore | 0 .../blocks => blocks}/MonacoEditor/.eslintrc | 0 .../blocks => blocks}/MonacoEditor/.gitignore | 0 .../blocks => blocks}/MonacoEditor/README.md | 0 .../MonacoEditor/demo/index.html | 0 .../MonacoEditor/demo/index.js | 0 .../MonacoEditor/mock/api.json | 0 .../MonacoEditor/package.json | 0 .../MonacoEditor/src/MonacoEditor.jsx | 0 .../MonacoEditor/src}/MonacoEditor.scss | 0 .../MonacoEditor/src/index.js | 0 .../NotPermission/.editorconfig | 0 .../NotPermission/.eslintignore | 0 .../blocks => blocks}/NotPermission/.eslintrc | 0 .../NotPermission/.gitignore | 0 .../blocks => blocks}/NotPermission/README.md | 0 .../NotPermission/demo/index.html | 0 .../NotPermission/demo/index.js | 0 .../NotPermission/mock/api.json | 0 .../NotPermission/package.json | 0 .../NotPermission/src/NotPermission.jsx | 0 .../NotPermission/src}/NotPermission.scss | 0 .../NotPermission/src/index.js | 0 .../OperationTable/.editorconfig | 0 .../OperationTable/.eslintignore | 0 .../OperationTable/.eslintrc | 0 .../OperationTable/.gitignore | 0 .../OperationTable/README.md | 0 .../OperationTable/demo/index.html | 0 .../OperationTable/demo/index.js | 0 .../mock/operation-table-list.json | 0 .../mock/update-table-item.json | 0 .../OperationTable/package.json | 0 .../OperationTable/src/DialogDecorator.js | 0 .../OperationTable/src/EditorInfoDialog.jsx | 0 .../OperationTable/src/OperationTable.jsx | 0 .../OperationTable/src}/OperationTable.scss | 0 .../OperationTable/src/index.js | 0 .../blocks => blocks}/OrderList/.editorconfig | 0 .../blocks => blocks}/OrderList/.eslintignore | 0 .../blocks => blocks}/OrderList/.eslintrc | 0 .../blocks => blocks}/OrderList/.gitignore | 0 .../blocks => blocks}/OrderList/README.md | 0 .../OrderList/demo/index.html | 0 .../blocks => blocks}/OrderList/demo/index.js | 0 .../OrderList/mock/order-list.json | 0 .../blocks => blocks}/OrderList/package.json | 0 .../OrderList/src/OrderList.jsx | 0 .../OrderList/src}/OrderList.scss | 0 .../blocks => blocks}/OrderList/src/index.js | 0 .../blocks => blocks}/OurTeam/.editorconfig | 0 .../blocks => blocks}/OurTeam/.eslintignore | 0 .../blocks => blocks}/OurTeam/.eslintrc | 0 .../blocks => blocks}/OurTeam/.gitignore | 0 .../blocks => blocks}/OurTeam/README.md | 0 .../blocks => blocks}/OurTeam/demo/index.html | 0 .../blocks => blocks}/OurTeam/demo/index.js | 0 .../blocks => blocks}/OurTeam/mock/api.json | 0 .../blocks => blocks}/OurTeam/package.json | 0 .../blocks => blocks}/OurTeam/src/OurTeam.jsx | 0 .../lib => blocks/OurTeam/src}/OurTeam.scss | 0 .../blocks => blocks}/OurTeam/src/index.js | 0 .../PictureTextList/.editorconfig | 0 .../PictureTextList/.eslintignore | 0 .../PictureTextList/.eslintrc | 0 .../PictureTextList/.gitignore | 0 .../PictureTextList/README.md | 0 .../PictureTextList/demo/index.html | 0 .../PictureTextList/demo/index.js | 0 .../PictureTextList/mock/api.json | 0 .../PictureTextList/package.json | 0 .../PictureTextList/src/PictureTextList.jsx | 0 .../PictureTextList/src}/PictureTextList.scss | 0 .../src/SingleItem/SingleItem.jsx | 0 .../src}/SingleItem/SingleItem.scss | 0 .../PictureTextList/src/SingleItem/index.js | 0 .../PictureTextList/src/index.js | 0 .../PieDoughnutChart/.editorconfig | 0 .../PieDoughnutChart/.eslintignore | 0 .../PieDoughnutChart/.eslintrc | 0 .../PieDoughnutChart/.gitignore | 0 .../PieDoughnutChart/README.md | 0 .../PieDoughnutChart/demo/index.html | 0 .../PieDoughnutChart/demo/index.js | 0 .../PieDoughnutChart/mock/api.json | 0 .../PieDoughnutChart/package.json | 0 .../PieDoughnutChart/src/PieDoughnutChart.jsx | 0 .../src}/PieDoughnutChart.scss | 0 .../PieDoughnutChart/src/index.js | 0 .../blocks => blocks}/PriceCard/.editorconfig | 0 .../blocks => blocks}/PriceCard/.eslintignore | 0 .../blocks => blocks}/PriceCard/.eslintrc | 0 .../blocks => blocks}/PriceCard/.gitignore | 0 .../blocks => blocks}/PriceCard/README.md | 0 .../PriceCard/demo/index.html | 0 .../blocks => blocks}/PriceCard/demo/index.js | 0 .../blocks => blocks}/PriceCard/mock/api.json | 0 .../blocks => blocks}/PriceCard/package.json | 0 .../PriceCard/src/PriceCard.jsx | 0 .../PriceCard/src}/PriceCard.scss | 0 .../blocks => blocks}/PriceCard/src/index.js | 0 .../blocks => blocks}/PriceInfo/.editorconfig | 0 .../blocks => blocks}/PriceInfo/.eslintignore | 0 .../blocks => blocks}/PriceInfo/.eslintrc | 0 .../blocks => blocks}/PriceInfo/.gitignore | 0 .../blocks => blocks}/PriceInfo/README.md | 0 .../PriceInfo/demo/index.html | 0 .../blocks => blocks}/PriceInfo/demo/index.js | 0 .../blocks => blocks}/PriceInfo/mock/api.json | 0 .../blocks => blocks}/PriceInfo/package.json | 0 .../PriceInfo/src/PriceInfo.jsx | 0 .../PriceInfo/src}/PriceInfo.scss | 0 .../blocks => blocks}/PriceInfo/src/index.js | 0 .../PrivateMessageForm/.editorconfig | 0 .../PrivateMessageForm/.eslintignore | 0 .../PrivateMessageForm/.eslintrc | 0 .../PrivateMessageForm/.gitignore | 0 .../PrivateMessageForm/README.md | 0 .../PrivateMessageForm/demo/index.html | 0 .../PrivateMessageForm/demo/index.js | 0 .../PrivateMessageForm/mock/api.json | 0 .../PrivateMessageForm/package.json | 0 .../src/PrivateMessageForm.jsx | 0 .../src}/PrivateMessageForm.scss | 0 .../PrivateMessageForm/src/index.js | 0 .../ProductInfo/.editorconfig | 0 .../ProductInfo/.eslintignore | 0 .../blocks => blocks}/ProductInfo/.eslintrc | 0 .../blocks => blocks}/ProductInfo/.gitignore | 0 .../blocks => blocks}/ProductInfo/README.md | 0 .../ProductInfo/demo/index.html | 0 .../ProductInfo/demo/index.js | 0 .../ProductInfo/mock/api.json | 0 .../ProductInfo/package.json | 0 .../ProductInfo/src/ProductInfo.jsx | 0 .../ProductInfo/src}/ProductInfo.scss | 0 .../ProductInfo/src/index.js | 0 .../ProgressTable/.editorconfig | 0 .../ProgressTable/.eslintignore | 0 .../blocks => blocks}/ProgressTable/.eslintrc | 0 .../ProgressTable/.gitignore | 0 .../blocks => blocks}/ProgressTable/README.md | 0 .../ProgressTable/demo/index.html | 0 .../ProgressTable/demo/index.js | 0 .../ProgressTable/mock/api.json | 0 .../ProgressTable/package.json | 0 .../ProgressTable/src/ProgressTable.jsx | 0 .../ProgressTable/src}/ProgressTable.scss | 0 .../ProgressTable/src/index.js | 0 .../RegisterForm/.editorconfig | 0 .../RegisterForm/.eslintignore | 0 .../blocks => blocks}/RegisterForm/.eslintrc | 0 .../blocks => blocks}/RegisterForm/.gitignore | 0 .../blocks => blocks}/RegisterForm/README.md | 0 .../RegisterForm/demo/index.html | 0 .../RegisterForm/demo/index.js | 0 .../RegisterForm/mock/api.json | 0 .../RegisterForm/package.json | 0 .../RegisterForm/src/RegisterForm.jsx | 0 .../RegisterForm/src}/RegisterForm.scss | 0 .../RegisterForm/src/index.js | 0 .../RightContentDisplay/.editorconfig | 0 .../RightContentDisplay/.eslintignore | 0 .../RightContentDisplay/.eslintrc | 0 .../RightContentDisplay/.gitignore | 0 .../RightContentDisplay/README.md | 0 .../RightContentDisplay/demo/index.html | 0 .../RightContentDisplay/demo/index.js | 0 .../RightContentDisplay/mock/api.json | 0 .../RightContentDisplay/package.json | 0 .../src/RightContentDisplay.jsx | 0 .../src}/RightContentDisplay.scss | 0 .../RightContentDisplay/src/index.js | 0 .../SelectableTable/.editorconfig | 0 .../SelectableTable/.eslintignore | 0 .../SelectableTable/.eslintrc | 0 .../SelectableTable/.gitignore | 0 .../SelectableTable/README.md | 0 .../SelectableTable/demo/index.html | 0 .../SelectableTable/demo/index.js | 0 .../SelectableTable/mock/api.json | 0 .../SelectableTable/package.json | 0 .../SelectableTable/src/SelectableTable.jsx | 0 .../SelectableTable/src}/SelectableTable.scss | 0 .../SelectableTable/src/index.js | 0 .../SignupForm/.editorconfig | 0 .../SignupForm/.eslintignore | 0 .../blocks => blocks}/SignupForm/.eslintrc | 0 .../blocks => blocks}/SignupForm/.gitignore | 0 .../blocks => blocks}/SignupForm/README.md | 0 .../SignupForm/demo/index.html | 0 .../SignupForm/demo/index.js | 0 .../SignupForm/mock/api.json | 0 .../blocks => blocks}/SignupForm/package.json | 0 .../SignupForm/src/SignupForm.jsx | 0 .../SignupForm/src}/SignupForm.scss | 0 .../blocks => blocks}/SignupForm/src/index.js | 0 .../SimpleFluencyForm/.editorconfig | 0 .../SimpleFluencyForm/.eslintignore | 0 .../SimpleFluencyForm/.eslintrc | 0 .../SimpleFluencyForm/.gitignore | 0 .../SimpleFluencyForm/README.md | 0 .../SimpleFluencyForm/demo/index.html | 0 .../SimpleFluencyForm/demo/index.js | 0 .../SimpleFluencyForm/mock/api.json | 0 .../SimpleFluencyForm/package.json | 0 .../src/SimpleFluencyForm.jsx | 0 .../src}/SimpleFluencyForm.scss | 0 .../SimpleFluencyForm/src/index.js | 0 .../SimpleFormDialog/.editorconfig | 0 .../SimpleFormDialog/.eslintignore | 0 .../SimpleFormDialog/.eslintrc | 0 .../SimpleFormDialog/.gitignore | 0 .../SimpleFormDialog/README.md | 0 .../SimpleFormDialog/demo/index.html | 0 .../SimpleFormDialog/demo/index.js | 0 .../SimpleFormDialog/mock/api.json | 0 .../SimpleFormDialog/package.json | 0 .../SimpleFormDialog/src/CreateFuncDialog.js | 0 .../SimpleFormDialog/src/SimpleFormDialog.jsx | 0 .../src}/SimpleFormDialog.scss | 0 .../SimpleFormDialog/src/index.js | 0 .../SimpleTable/.editorconfig | 0 .../SimpleTable/.eslintignore | 0 .../blocks => blocks}/SimpleTable/.eslintrc | 0 .../blocks => blocks}/SimpleTable/.gitignore | 0 .../blocks => blocks}/SimpleTable/README.md | 0 .../SimpleTable/demo/index.html | 0 .../SimpleTable/demo/index.js | 0 .../SimpleTable/mock/simple-table-list.json | 0 .../SimpleTable/package.json | 0 .../SimpleTable/src/SimpleTable.jsx | 0 .../SimpleTable/src}/SimpleTable.scss | 0 .../SimpleTable/src/index.js | 0 .../SimpleTestimonial/.editorconfig | 0 .../SimpleTestimonial/.eslintignore | 0 .../SimpleTestimonial/.eslintrc | 0 .../SimpleTestimonial/.gitignore | 0 .../SimpleTestimonial/README.md | 0 .../SimpleTestimonial/demo/index.html | 0 .../SimpleTestimonial/demo/index.js | 0 .../SimpleTestimonial/mock/api.json | 0 .../SimpleTestimonial/package.json | 0 .../src/SimpleTestimonial.jsx | 0 .../src}/SimpleTestimonial.scss | 0 .../SimpleTestimonial/src/index.js | 0 .../SortCardList/.editorconfig | 0 .../SortCardList/.eslintignore | 0 .../blocks => blocks}/SortCardList/.eslintrc | 0 .../blocks => blocks}/SortCardList/.gitignore | 0 .../blocks => blocks}/SortCardList/README.md | 0 .../SortCardList/demo/index.html | 0 .../SortCardList/demo/index.js | 0 .../SortCardList/mock/api.json | 0 .../SortCardList/package.json | 0 .../SortCardList/src/SortCardList.jsx | 0 .../SortCardList/src/SortCardList.scss | 0 .../SortCardList/src/index.js | 0 .../StatisticalCard}/.editorconfig | 0 .../StatisticalCard}/.eslintignore | 0 .../StatisticalCard}/.eslintrc | 0 .../StatisticalCard}/.gitignore | 0 .../StatisticalCard/README.md | 0 .../StatisticalCard}/demo/index.html | 0 .../StatisticalCard/demo/index.js | 0 .../StatisticalCard}/mock/api.json | 0 .../StatisticalCard/package.json | 0 .../StatisticalCard/src/StatisticalCard.jsx | 0 .../StatisticalCard/src/StatisticalCard.scss | 0 .../StatisticalCard/src/index.js | 0 .../Subscribe}/.editorconfig | 0 .../Subscribe}/.eslintignore | 0 .../Subscribe}/.eslintrc | 0 .../Subscribe}/.gitignore | 0 .../blocks => blocks}/Subscribe/README.md | 0 .../Subscribe}/demo/index.html | 0 .../Subscribe}/demo/index.js | 0 .../Subscribe}/mock/api.json | 0 .../blocks => blocks}/Subscribe/package.json | 0 .../Subscribe/src/Subscribe.jsx | 0 .../Subscribe/src/Subscribe.scss | 0 .../blocks => blocks}/Subscribe/src/index.js | 0 .../SuccessDetail}/.editorconfig | 0 .../SuccessDetail}/.eslintignore | 0 .../SuccessDetail}/.eslintrc | 0 .../SuccessDetail}/.gitignore | 0 .../blocks => blocks}/SuccessDetail/README.md | 0 .../SuccessDetail}/demo/index.html | 0 .../SuccessDetail/demo/index.js | 0 .../SuccessDetail}/mock/api.json | 0 .../SuccessDetail/package.json | 0 .../SuccessDetail/src/SuccessDetail.jsx | 0 .../SuccessDetail/src/SuccessDetail.scss | 0 .../SuccessDetail/src/index.js | 0 .../SuccessDialog}/.editorconfig | 0 .../SuccessDialog}/.eslintignore | 0 .../SuccessDialog}/.eslintrc | 0 .../SuccessDialog}/.gitignore | 0 .../blocks => blocks}/SuccessDialog/README.md | 0 .../SuccessDialog}/demo/index.html | 0 .../SuccessDialog/demo/index.js | 0 .../SuccessDialog}/mock/api.json | 0 .../SuccessDialog/package.json | 0 .../SuccessDialog/src/CreateFuncDialog.js | 0 .../SuccessDialog/src/SuccessDialog.jsx | 0 .../SuccessDialog/src/SuccessDialog.scss | 0 .../SuccessDialog/src/index.js | 0 .../SystemNoticeList}/.editorconfig | 0 .../SystemNoticeList}/.eslintignore | 0 .../SystemNoticeList}/.eslintrc | 0 .../SystemNoticeList}/.gitignore | 0 .../SystemNoticeList/README.md | 0 .../SystemNoticeList}/demo/index.html | 0 .../SystemNoticeList/demo/index.js | 0 .../SystemNoticeList}/mock/api.json | 0 .../SystemNoticeList/package.json | 0 .../SystemNoticeList/src/SystemNoticeList.jsx | 0 .../src/SystemNoticeList.scss | 0 .../SystemNoticeList/src/index.js | 0 .../TabArticle}/.editorconfig | 0 .../TabArticle}/.eslintignore | 0 .../TabArticle}/.eslintrc | 0 .../blocks => blocks}/TabArticle/.gitignore | 0 .../blocks => blocks}/TabArticle/README.md | 0 .../TabArticle}/demo/index.html | 0 .../TabArticle}/demo/index.js | 0 .../TabArticle}/mock/api.json | 0 .../blocks => blocks}/TabArticle/package.json | 0 .../src/ArticleList/ArticleList.jsx | 0 .../src/ArticleList/ArticleList.scss | 0 .../TabArticle/src/ArticleList/index.js | 0 .../TabArticle/src/TabArticle.jsx | 0 .../TabArticle/src/TabArticle.scss | 0 .../blocks => blocks}/TabArticle/src/index.js | 0 .../TabDialog}/.editorconfig | 0 .../TabDialog}/.eslintignore | 0 .../TabArticle => blocks/TabDialog}/.eslintrc | 0 .../blocks => blocks}/TabDialog/.gitignore | 0 .../blocks => blocks}/TabDialog/README.md | 0 .../TabDialog}/demo/index.html | 0 .../blocks => blocks}/TabDialog/demo/index.js | 0 .../TabDialog}/mock/api.json | 0 .../blocks => blocks}/TabDialog/package.json | 0 .../TabDialog/src/CreateFuncDialog.js | 0 .../TabDialog/src/TabDialog.jsx | 0 .../TabDialog/src/TabDialog.scss | 0 .../blocks => blocks}/TabDialog/src/index.js | 0 .../TagMessageList}/.editorconfig | 0 .../TagMessageList}/.eslintignore | 0 .../TagMessageList}/.eslintrc | 0 .../TagMessageList/.gitignore | 0 .../TagMessageList/README.md | 0 .../TagMessageList}/demo/index.html | 0 .../TagMessageList}/demo/index.js | 0 .../TagMessageList}/mock/api.json | 0 .../TagMessageList/package.json | 0 .../TagMessageList/src/TagMessageList.jsx | 0 .../TagMessageList/src/TagMessageList.scss | 0 .../TagMessageList/src/index.js | 0 .../TeamDisplay}/.editorconfig | 0 .../TeamDisplay}/.eslintignore | 0 .../TeamDisplay}/.eslintrc | 0 .../blocks => blocks}/TeamDisplay/.gitignore | 0 .../blocks => blocks}/TeamDisplay/README.md | 0 .../TeamDisplay}/demo/index.html | 0 .../TeamDisplay}/demo/index.js | 0 .../TeamDisplay}/mock/api.json | 0 .../TeamDisplay/package.json | 0 .../TeamDisplay/src/TeamDisplay.jsx | 0 .../TeamDisplay/src/TeamDisplay.scss | 0 .../TeamDisplay/src/index.js | 0 .../TermsInfo}/.editorconfig | 0 .../TermsInfo}/.eslintignore | 0 .../TermsInfo}/.eslintrc | 0 .../TermsInfo}/.gitignore | 0 .../blocks => blocks}/TermsInfo/README.md | 0 .../TermsInfo}/demo/index.html | 0 .../blocks => blocks}/TermsInfo/demo/index.js | 0 .../TermsInfo}/mock/api.json | 0 .../blocks => blocks}/TermsInfo/package.json | 0 .../TermsInfo/src/TermsInfo.jsx | 0 .../TermsInfo/src/TermsInfo.scss | 0 .../blocks => blocks}/TermsInfo/src/index.js | 0 .../Testimonial}/.editorconfig | 0 .../Testimonial}/.eslintignore | 0 .../Testimonial}/.eslintrc | 0 .../blocks => blocks}/Testimonial/.gitignore | 0 .../blocks => blocks}/Testimonial/README.md | 0 .../Testimonial}/demo/index.html | 0 .../Testimonial/demo/index.js | 0 .../Testimonial}/mock/api.json | 0 .../Testimonial/package.json | 0 .../Testimonial/src/Testimonial.jsx | 0 .../Testimonial/src}/Testimonial.scss | 0 .../Testimonial/src/index.js | 0 .../TestimonialCard}/.editorconfig | 0 .../TestimonialCard}/.eslintignore | 0 .../TestimonialCard}/.eslintrc | 0 .../TestimonialCard/.gitignore | 0 .../TestimonialCard/README.md | 0 .../TestimonialCard}/demo/index.html | 0 .../TestimonialCard/demo/index.js | 0 .../TestimonialCard}/mock/api.json | 0 .../TestimonialCard/package.json | 0 .../TestimonialCard/src/TestimonialCard.jsx | 0 .../TestimonialCard/src/TestimonialCard.scss | 0 .../TestimonialCard/src/index.js | 0 .../TextCard}/.editorconfig | 0 .../TextCard}/.eslintignore | 0 .../TextCard}/.eslintrc | 0 .../TermsInfo => blocks/TextCard}/.gitignore | 0 .../blocks => blocks}/TextCard/README.md | 0 .../TextCard}/demo/index.html | 0 .../TextCard}/demo/index.js | 0 .../TextCard}/mock/api.json | 0 .../blocks => blocks}/TextCard/package.json | 0 .../TextCard/src/TextCard.jsx | 0 .../TextCard/src/TextCard.scss | 0 .../blocks => blocks}/TextCard/src/index.js | 0 .../TextSearchList}/.editorconfig | 0 .../TextSearchList/.eslintignore | 0 .../TextSearchList/.eslintrc | 0 .../TextSearchList}/.gitignore | 0 .../TextSearchList/README.md | 0 .../TextSearchList}/demo/index.html | 0 .../TextSearchList/demo/index.js | 0 .../TextSearchList}/mock/api.json | 0 .../TextSearchList/package.json | 0 .../src/ArticleList/ArticleList.jsx | 0 .../src}/ArticleList/ArticleList.scss | 0 .../TextSearchList/src/ArticleList/index.js | 0 .../TextSearchList/src/Filter/Filter.jsx | 0 .../TextSearchList/src/Filter/index.js | 0 .../TextSearchList/src/TextSearchList.jsx | 0 .../TextSearchList/src}/TextSearchList.scss | 0 .../TextSearchList/src/index.js | 0 .../TimeFilterTable}/.editorconfig | 0 .../TimeFilterTable/.eslintignore | 0 .../TimeFilterTable/.eslintrc | 0 .../TimeFilterTable/.gitignore | 0 .../TimeFilterTable/README.md | 0 .../TimeFilterTable}/demo/index.html | 0 .../TimeFilterTable/demo/index.js | 0 .../mock/time-filter-table.json | 0 .../TimeFilterTable/package.json | 0 .../TimeFilterTable/src/TimeFilterTable.jsx | 0 .../TimeFilterTable/src/TimeFilterTable.scss | 0 .../TimeFilterTable/src/index.js | 0 .../TopicCard}/.editorconfig | 0 .../blocks => blocks}/TopicCard/.eslintignore | 0 .../blocks => blocks}/TopicCard/.eslintrc | 0 .../TopicCard}/.gitignore | 0 .../blocks => blocks}/TopicCard/README.md | 0 .../TopicCard/demo/index.html | 0 .../blocks => blocks}/TopicCard/demo/index.js | 0 .../TopicCard}/mock/api.json | 0 .../blocks => blocks}/TopicCard/package.json | 0 .../TopicCard/src/TopicCard.jsx | 0 .../TopicCard/src}/TopicCard.scss | 0 .../blocks => blocks}/TopicCard/src/index.js | 0 .../TreeCardList}/.editorconfig | 0 .../TreeCardList}/.eslintignore | 0 .../TreeCardList}/.eslintrc | 0 .../TreeCardList}/.gitignore | 0 .../blocks => blocks}/TreeCardList/README.md | 0 .../TreeCardList}/demo/index.html | 0 .../TreeCardList}/demo/index.js | 0 .../TreeCardList}/mock/api.json | 0 .../TreeCardList/package.json | 0 .../TreeCardList/src/TreeCardList.jsx | 0 .../TreeCardList/src/TreeCardList.scss | 0 .../TreeCardList/src/index.js | 0 layouts/.gitignore | 2 + .../AsideLayout}/.editorconfig | 0 .../AsideLayout/.eslintignore | 0 .../layouts => layouts}/AsideLayout/.eslintrc | 0 .../AsideLayout/.gitignore | 0 .../layouts => layouts}/AsideLayout/README.md | 0 .../AsideLayout/demo/index.html | 0 .../AsideLayout/demo/index.js | 0 .../AsideLayout/mock/api.json | 0 .../AsideLayout/package.json | 0 .../AsideLayout/src/Layout.jsx | 0 .../AsideLayout/src/Layout.scss | 0 .../AsideLayout/src/__components_Footer__.jsx | 0 .../AsideLayout/src/__components_Header__.jsx | 0 .../AsideLayout/src/__components_Logo__.jsx | 0 .../AsideLayout/src/__config_navs__.json | 0 .../AsideLayout/src/index.js | 0 .../BasicLayout}/.editorconfig | 0 .../BasicLayout/.eslintignore | 0 .../layouts => layouts}/BasicLayout/.eslintrc | 0 .../BasicLayout/.gitignore | 0 .../layouts => layouts}/BasicLayout/README.md | 0 .../BasicLayout/demo/index.html | 0 .../BasicLayout/demo/index.js | 0 .../BasicLayout/mock/api.json | 0 .../BasicLayout/package.json | 0 .../BasicLayout/src/Layout.jsx | 0 .../BasicLayout/src/Layout.scss | 0 .../BasicLayout/src/__components_Footer__.jsx | 0 .../BasicLayout/src/__components_Header__.jsx | 0 .../BasicLayout/src/__components_Logo__.jsx | 0 .../BasicLayout/src/__config_navs__.json | 0 .../BasicLayout/src/index.js | 0 .../LandingLayout}/.editorconfig | 0 .../LandingLayout/.eslintignore | 0 .../LandingLayout/.eslintrc | 0 .../LandingLayout/.gitignore | 0 .../LandingLayout/README.md | 0 .../LandingLayout/demo/index.html | 0 .../LandingLayout/demo/index.js | 0 .../LandingLayout/mock/api.json | 0 .../LandingLayout/package.json | 0 .../LandingLayout/src/Layout.jsx | 0 .../LandingLayout/src/Layout.scss | 0 .../src/__components_Footer__.jsx | 0 .../src/__components_Header__.jsx | 0 .../LandingLayout/src/__components_Logo__.jsx | 0 .../LandingLayout/src/__config_navs__.json | 0 .../LandingLayout/src/index.js | 0 .../ScalableAsideLayout}/.editorconfig | 0 .../ScalableAsideLayout/.eslintignore | 0 .../ScalableAsideLayout/.eslintrc | 0 .../ScalableAsideLayout/.gitignore | 0 .../ScalableAsideLayout/README.md | 0 .../ScalableAsideLayout/demo/index.html | 0 .../ScalableAsideLayout/demo/index.js | 0 .../ScalableAsideLayout}/mock/api.json | 0 .../ScalableAsideLayout/package.json | 0 .../ScalableAsideLayout/src/Layout.jsx | 0 .../ScalableAsideLayout/src/Layout.scss | 0 .../src/__components_Footer__.jsx | 0 .../src/__components_Header__.jsx | 0 .../src/__components_Logo__.jsx | 0 .../src/__config_navs__.json | 0 .../ScalableAsideLayout/src/index.js | 0 .../AreaStackChart/lib/AreaStackChart.js | 80 ----- .../blocks/AreaStackChart/lib/index.js | 14 - .../AreaStackChart/src/AreaStackChart.scss | 5 - .../BasicException/lib/BasicException.js | 86 ------ .../blocks/BasicException/lib/index.js | 14 - .../BasicException/src/BasicException.scss | 22 -- .../blocks/BasicNotFound/lib/BasicNotFound.js | 87 ------ .../blocks/BasicNotFound/lib/index.js | 14 - .../BasicNotFound/src/BasicNotFound.scss | 22 -- .../blocks/BasicTab/lib/BasicTab.js | 76 ----- .../ice-design/blocks/BasicTab/lib/index.js | 14 - .../blocks/BasicTab/src/BasicTab.scss | 4 - .../blocks/ChartArea/lib/ChartArea.js | 113 ------- .../ice-design/blocks/ChartArea/lib/index.js | 14 - .../blocks/ChartArea/src/ChartArea.scss | 5 - .../blocks/ChartBar/lib/ChartBar.js | 124 -------- .../ice-design/blocks/ChartBar/lib/index.js | 14 - .../blocks/ChartBar/src/ChartBar.scss | 5 - .../blocks/ChartBox/lib/ChartBox.js | 219 -------------- .../ice-design/blocks/ChartBox/lib/index.js | 14 - .../blocks/ChartBox/src/ChartBox.scss | 5 - .../ChartBubbleImage/lib/ChartBubbleImage.js | 164 ---------- .../blocks/ChartBubbleImage/lib/index.js | 14 - .../src/ChartBubbleImage.scss | 5 - .../blocks/ChartFacet/lib/ChartFacet.js | 129 -------- .../ice-design/blocks/ChartFacet/lib/index.js | 14 - .../blocks/ChartFacet/src/ChartFacet.scss | 5 - .../blocks/ChartFunnel/lib/ChartFunnel.js | 162 ---------- .../blocks/ChartFunnel/lib/index.js | 14 - .../blocks/ChartFunnel/src/ChartFunnel.scss | 5 - .../blocks/ChartGauge/lib/ChartGauge.js | 232 -------------- .../ice-design/blocks/ChartGauge/lib/index.js | 14 - .../blocks/ChartGauge/src/ChartGauge.scss | 5 - .../blocks/ChartHeatMap/lib/ChartHeatMap.js | 155 ---------- .../blocks/ChartHeatMap/lib/index.js | 14 - .../blocks/ChartHeatMap/src/ChartHeatMap.scss | 5 - .../blocks/ChartPie/lib/ChartPie.js | 138 --------- .../ice-design/blocks/ChartPie/lib/index.js | 14 - .../blocks/ChartPie/src/ChartPie.scss | 5 - .../blocks/ChartPoint/lib/ChartPoint.js | 121 -------- .../ice-design/blocks/ChartPoint/lib/index.js | 14 - .../blocks/ChartPoint/src/ChartPoint.scss | 5 - .../blocks/ChartRadar/lib/ChartRadar.js | 147 --------- .../ice-design/blocks/ChartRadar/lib/index.js | 14 - .../blocks/ChartRadar/src/ChartRadar.scss | 5 - .../blocks/ChartRelation/lib/ChartRelation.js | 136 --------- .../blocks/ChartRelation/lib/index.js | 14 - .../ChartRelation/src/ChartRelation.scss | 5 - .../blocks/ChartStock/lib/ChartStock.js | 162 ---------- .../ice-design/blocks/ChartStock/lib/index.js | 14 - .../blocks/ChartStock/src/ChartStock.scss | 5 - .../blocks/ChartTypeLine/lib/ChartTypeLine.js | 124 -------- .../blocks/ChartTypeLine/lib/index.js | 14 - .../ChartTypeLine/src/ChartTypeLine.scss | 5 - .../blocks/EntryCard/lib/EntryCard.js | 125 -------- .../ice-design/blocks/EntryCard/lib/index.js | 14 - .../blocks/EntryCard/src/EntryCard.scss | 4 - .../blocks/FailureDetail/lib/FailureDetail.js | 107 ------- .../FailureDetail/lib/FailureDetail.scss | 35 --- .../blocks/FailureDetail/lib/index.js | 13 - .../InfoDisplayTab/lib/InfoDisplayTab.js | 183 ----------- .../blocks/InfoDisplayTab/lib/index.js | 14 - .../InfoDisplayTab/src/InfoDisplayTab.scss | 33 -- .../InfoDisplayTable/lib/InfoDisplayTable.js | 117 ------- .../blocks/InfoDisplayTable/lib/index.js | 14 - .../src/InfoDisplayTable.scss | 18 -- .../ice-design/blocks/JoinUs/lib/JoinUs.js | 233 -------------- .../ice-design/blocks/JoinUs/lib/index.js | 14 - .../ice-design/blocks/JoinUs/src/JoinUs.scss | 21 -- .../lib/LandingIntroBanner.js | 155 ---------- .../blocks/LandingIntroBanner/lib/index.js | 14 - .../src/LandingIntroBanner.scss | 9 - .../lib/LeftContentDisplay.js | 83 ----- .../blocks/LeftContentDisplay/lib/index.js | 14 - .../src/LeftContentDisplay.scss | 5 - .../blocks/LiteTable/lib/LiteTable.js | 154 ---------- .../ice-design/blocks/LiteTable/lib/index.js | 14 - .../blocks/LiteTable/src/LiteTable.scss | 5 - .../blocks/MessageList/lib/MessageList.js | 139 --------- .../blocks/MessageList/lib/index.js | 14 - .../blocks/MessageList/src/MessageList.scss | 5 - .../blocks/MonacoEditor/lib/MonacoEditor.js | 171 ----------- .../blocks/MonacoEditor/lib/index.js | 14 - .../blocks/MonacoEditor/src/MonacoEditor.scss | 5 - .../blocks/NotPermission/lib/NotPermission.js | 85 ------ .../blocks/NotPermission/lib/index.js | 14 - .../NotPermission/src/NotPermission.scss | 5 - .../OperationTable/lib/DialogDecorator.js | 54 ---- .../OperationTable/lib/EditorInfoDialog.js | 163 ---------- .../OperationTable/lib/OperationTable.js | 286 ------------------ .../blocks/OperationTable/lib/index.js | 14 - .../OperationTable/src/OperationTable.scss | 28 -- .../blocks/OrderList/lib/OrderList.js | 199 ------------ .../ice-design/blocks/OrderList/lib/index.js | 14 - .../blocks/OrderList/src/OrderList.scss | 23 -- .../ice-design/blocks/OurTeam/lib/OurTeam.js | 152 ---------- .../ice-design/blocks/OurTeam/lib/index.js | 14 - .../blocks/OurTeam/src/OurTeam.scss | 5 - .../PictureTextList/lib/PictureTextList.js | 144 --------- .../lib/SingleItem/SingleItem.js | 120 -------- .../PictureTextList/lib/SingleItem/index.js | 15 - .../blocks/PictureTextList/lib/index.js | 14 - .../PictureTextList/src/PictureTextList.scss | 5 - .../src/SingleItem/SingleItem.scss | 6 - .../PieDoughnutChart/lib/PieDoughnutChart.js | 149 --------- .../blocks/PieDoughnutChart/lib/index.js | 14 - .../src/PieDoughnutChart.scss | 5 - .../blocks/PriceCard/lib/PriceCard.js | 152 ---------- .../ice-design/blocks/PriceCard/lib/index.js | 14 - .../blocks/PriceCard/src/PriceCard.scss | 5 - .../blocks/PriceInfo/lib/PriceInfo.js | 161 ---------- .../ice-design/blocks/PriceInfo/lib/index.js | 14 - .../blocks/PriceInfo/src/PriceInfo.scss | 5 - .../lib/PrivateMessageForm.js | 148 --------- .../blocks/PrivateMessageForm/lib/index.js | 14 - .../src/PrivateMessageForm.scss | 5 - .../blocks/ProductInfo/lib/ProductInfo.js | 137 --------- .../blocks/ProductInfo/lib/index.js | 14 - .../blocks/ProductInfo/src/ProductInfo.scss | 5 - .../blocks/ProgressTable/lib/ProgressTable.js | 131 -------- .../blocks/ProgressTable/lib/index.js | 14 - .../ProgressTable/src/ProgressTable.scss | 8 - .../blocks/RegisterForm/lib/RegisterForm.js | 194 ------------ .../blocks/RegisterForm/lib/index.js | 14 - .../blocks/RegisterForm/src/RegisterForm.scss | 59 ---- .../lib/RightContentDisplay.js | 83 ----- .../blocks/RightContentDisplay/lib/index.js | 14 - .../src/RightContentDisplay.scss | 5 - .../SelectableTable/lib/SelectableTable.js | 248 --------------- .../blocks/SelectableTable/lib/index.js | 14 - .../SelectableTable/src/SelectableTable.scss | 7 - .../blocks/SignupForm/lib/SignupForm.js | 172 ----------- .../ice-design/blocks/SignupForm/lib/index.js | 14 - .../blocks/SignupForm/src/SignupForm.scss | 59 ---- .../lib/SimpleFluencyForm.js | 285 ----------------- .../blocks/SimpleFluencyForm/lib/index.js | 14 - .../src/SimpleFluencyForm.scss | 5 - .../SimpleFormDialog/lib/CreateFuncDialog.js | 51 ---- .../SimpleFormDialog/lib/SimpleFormDialog.js | 244 --------------- .../blocks/SimpleFormDialog/lib/index.js | 14 - .../src/SimpleFormDialog.scss | 5 - .../blocks/SimpleTable/lib/SimpleTable.js | 234 -------------- .../blocks/SimpleTable/lib/index.js | 14 - .../blocks/SimpleTable/src/SimpleTable.scss | 10 - .../lib/SimpleTestimonial.js | 114 ------- .../blocks/SimpleTestimonial/lib/index.js | 14 - .../src/SimpleTestimonial.scss | 5 - .../ice-design/blocks/SortableTable/README.md | 12 - .../blocks/SortableTable/lib/SortableTable.js | 176 ----------- .../SortableTable/lib/SortableTable.scss | 5 - .../blocks/SortableTable/lib/index.js | 14 - .../blocks/SortableTable/package.json | 51 ---- .../SortableTable/src/SortableTable.jsx | 119 -------- .../SortableTable/src/SortableTable.scss | 5 - .../blocks/SortableTable/src/index.js | 3 - .../blocks/Testimonial/lib/Testimonial.js | 165 ---------- .../blocks/Testimonial/lib/index.js | 14 - .../blocks/Testimonial/src/Testimonial.scss | 5 - .../lib/ArticleList/ArticleList.js | 180 ----------- .../TextSearchList/lib/ArticleList/index.js | 14 - .../TextSearchList/lib/Filter/Filter.js | 137 --------- .../blocks/TextSearchList/lib/Filter/index.js | 14 - .../TextSearchList/lib/TextSearchList.js | 126 -------- .../blocks/TextSearchList/lib/index.js | 14 - .../src/ArticleList/ArticleList.scss | 5 - .../TextSearchList/src/TextSearchList.scss | 5 - .../blocks/TopicCard/lib/TopicCard.js | 193 ------------ .../ice-design/blocks/TopicCard/lib/index.js | 14 - .../blocks/TopicCard/src/TopicCard.scss | 13 - .../blocks/TreeCardList/.eslintignore | 12 - .../ice-design/blocks/TreeCardList/.eslintrc | 62 ---- .../ice-design/blocks/TreeCardList/.gitignore | 13 - .../blocks/TreeCardList/demo/index.html | 19 -- .../blocks/TreeCardList/demo/index.js | 19 -- .../layouts/ScalableAsideLayout/.editorconfig | 16 - .../layouts/ScalableAsideLayout/mock/api.json | 4 - 1385 files changed, 2 insertions(+), 10252 deletions(-) rename {templates/ice-design => blocks}/.gitignore (100%) rename {templates/ice-design/blocks => blocks}/ApplicationProgress/.editorconfig (100%) rename {templates/ice-design/blocks => blocks}/ApplicationProgress/.eslintignore (100%) rename {templates/ice-design/blocks => blocks}/ApplicationProgress/.eslintrc (100%) rename {templates/ice-design/blocks => blocks}/ApplicationProgress/.gitignore (100%) rename {templates/ice-design/blocks => blocks}/ApplicationProgress/README.md (100%) rename {templates/ice-design/blocks => blocks}/ApplicationProgress/demo/index.html (100%) rename {templates/ice-design/blocks => blocks}/ApplicationProgress/demo/index.js (100%) rename {templates/ice-design/blocks => blocks}/ApplicationProgress/mock/api.json (100%) rename {templates/ice-design/blocks => blocks}/ApplicationProgress/package.json (100%) rename {templates/ice-design/blocks => blocks}/ApplicationProgress/src/ApplicationProgress.jsx (100%) rename {templates/ice-design/blocks => blocks}/ApplicationProgress/src/ApplicationProgress.scss (100%) rename {templates/ice-design/blocks => blocks}/ApplicationProgress/src/index.js (100%) rename {templates/ice-design/blocks => blocks}/AreaStackChart/.editorconfig (100%) rename {templates/ice-design/blocks => blocks}/AreaStackChart/.eslintignore (100%) rename {templates/ice-design/blocks => blocks}/AreaStackChart/.eslintrc (100%) rename {templates/ice-design/blocks => blocks}/AreaStackChart/.gitignore (100%) rename {templates/ice-design/blocks => blocks}/AreaStackChart/README.md (100%) rename {templates/ice-design/blocks => blocks}/AreaStackChart/demo/index.html (100%) rename {templates/ice-design/blocks => blocks}/AreaStackChart/demo/index.js (100%) rename {templates/ice-design/blocks => blocks}/AreaStackChart/mock/api.json (100%) rename {templates/ice-design/blocks => blocks}/AreaStackChart/package.json (100%) rename {templates/ice-design/blocks => blocks}/AreaStackChart/src/AreaStackChart.jsx (100%) rename {templates/ice-design/blocks/AreaStackChart/lib => blocks/AreaStackChart/src}/AreaStackChart.scss (100%) rename {templates/ice-design/blocks => blocks}/AreaStackChart/src/index.js (100%) rename {templates/ice-design/blocks => blocks}/ArticleList/.editorconfig (100%) rename {templates/ice-design/blocks => blocks}/ArticleList/.eslintignore (100%) rename {templates/ice-design/blocks => blocks}/ArticleList/.eslintrc (100%) rename {templates/ice-design/blocks => blocks}/ArticleList/.gitignore (100%) rename {templates/ice-design/blocks => blocks}/ArticleList/README.md (100%) rename {templates/ice-design/blocks => blocks}/ArticleList/demo/index.html (100%) rename {templates/ice-design/blocks => blocks}/ArticleList/demo/index.js (100%) rename {templates/ice-design/blocks => blocks}/ArticleList/mock/api.json (100%) rename {templates/ice-design/blocks => blocks}/ArticleList/package.json (100%) rename {templates/ice-design/blocks => blocks}/ArticleList/src/ArticleList.jsx (100%) rename {templates/ice-design/blocks => blocks}/ArticleList/src/ArticleList.scss (100%) rename {templates/ice-design/blocks => blocks}/ArticleList/src/index.js (100%) rename {templates/ice-design/blocks => blocks}/BasicDetailInfo/.editorconfig (100%) rename {templates/ice-design/blocks => blocks}/BasicDetailInfo/.eslintignore (100%) rename {templates/ice-design/blocks => blocks}/BasicDetailInfo/.eslintrc (100%) rename {templates/ice-design/blocks => blocks}/BasicDetailInfo/.gitignore (100%) rename {templates/ice-design/blocks => blocks}/BasicDetailInfo/README.md (100%) rename {templates/ice-design/blocks => blocks}/BasicDetailInfo/demo/index.html (100%) rename {templates/ice-design/blocks => blocks}/BasicDetailInfo/demo/index.js (100%) rename {templates/ice-design/blocks => blocks}/BasicDetailInfo/mock/api.json (100%) rename {templates/ice-design/blocks => blocks}/BasicDetailInfo/package.json (100%) rename {templates/ice-design/blocks => blocks}/BasicDetailInfo/src/BasicDetailInfo.jsx (100%) rename {templates/ice-design/blocks => blocks}/BasicDetailInfo/src/BasicDetailInfo.scss (100%) rename {templates/ice-design/blocks => blocks}/BasicDetailInfo/src/index.js (100%) rename {templates/ice-design/blocks => blocks}/BasicException/.editorconfig (100%) rename {templates/ice-design/blocks => blocks}/BasicException/.eslintignore (100%) rename {templates/ice-design/blocks => blocks}/BasicException/.eslintrc (100%) rename {templates/ice-design/blocks => blocks}/BasicException/.gitignore (100%) rename {templates/ice-design/blocks => blocks}/BasicException/README.md (100%) rename {templates/ice-design/blocks => blocks}/BasicException/demo/index.html (100%) rename {templates/ice-design/blocks => blocks}/BasicException/demo/index.js (100%) rename {templates/ice-design/blocks => blocks}/BasicException/mock/api.json (100%) rename {templates/ice-design/blocks => blocks}/BasicException/package.json (100%) rename {templates/ice-design/blocks => blocks}/BasicException/src/BasicException.jsx (100%) rename {templates/ice-design/blocks/BasicException/lib => blocks/BasicException/src}/BasicException.scss (100%) rename {templates/ice-design/blocks => blocks}/BasicException/src/index.js (100%) rename {templates/ice-design/blocks => blocks}/BasicNotFound/.editorconfig (100%) rename {templates/ice-design/blocks => blocks}/BasicNotFound/.eslintignore (100%) rename {templates/ice-design/blocks => blocks}/BasicNotFound/.eslintrc (100%) rename {templates/ice-design/blocks => blocks}/BasicNotFound/.gitignore (100%) rename {templates/ice-design/blocks => blocks}/BasicNotFound/README.md (100%) rename {templates/ice-design/blocks => blocks}/BasicNotFound/demo/index.html (100%) rename {templates/ice-design/blocks => blocks}/BasicNotFound/demo/index.js (100%) rename {templates/ice-design/blocks => blocks}/BasicNotFound/mock/api.json (100%) rename {templates/ice-design/blocks => blocks}/BasicNotFound/package.json (100%) rename {templates/ice-design/blocks => blocks}/BasicNotFound/src/BasicNotFound.jsx (100%) rename {templates/ice-design/blocks/BasicNotFound/lib => blocks/BasicNotFound/src}/BasicNotFound.scss (100%) rename {templates/ice-design/blocks => blocks}/BasicNotFound/src/index.js (100%) rename {templates/ice-design/blocks => blocks}/BasicTab/.editorconfig (100%) rename {templates/ice-design/blocks => blocks}/BasicTab/.eslintignore (100%) rename {templates/ice-design/blocks => blocks}/BasicTab/.eslintrc (100%) rename {templates/ice-design/blocks => blocks}/BasicTab/.gitignore (100%) rename {templates/ice-design/blocks => blocks}/BasicTab/README.md (100%) rename {templates/ice-design/blocks => blocks}/BasicTab/demo/index.html (100%) rename {templates/ice-design/blocks => blocks}/BasicTab/demo/index.js (100%) rename {templates/ice-design/blocks => blocks}/BasicTab/mock/api.json (100%) rename {templates/ice-design/blocks => blocks}/BasicTab/package.json (100%) rename {templates/ice-design/blocks => blocks}/BasicTab/src/BasicTab.jsx (100%) rename {templates/ice-design/blocks/BasicTab/lib => blocks/BasicTab/src}/BasicTab.scss (100%) rename {templates/ice-design/blocks => blocks}/BasicTab/src/index.js (100%) rename {templates/ice-design/blocks => blocks}/BrandDisplay/.editorconfig (100%) rename {templates/ice-design/blocks => blocks}/BrandDisplay/.eslintignore (100%) rename {templates/ice-design/blocks => blocks}/BrandDisplay/.eslintrc (100%) rename {templates/ice-design/blocks => blocks}/BrandDisplay/.gitignore (100%) rename {templates/ice-design/blocks => blocks}/BrandDisplay/README.md (100%) rename {templates/ice-design/blocks => blocks}/BrandDisplay/demo/index.html (100%) rename {templates/ice-design/blocks => blocks}/BrandDisplay/demo/index.js (100%) rename {templates/ice-design/blocks => blocks}/BrandDisplay/mock/api.json (100%) rename {templates/ice-design/blocks => blocks}/BrandDisplay/package.json (100%) rename {templates/ice-design/blocks => blocks}/BrandDisplay/src/BrandDisplay.jsx (100%) rename {templates/ice-design/blocks => blocks}/BrandDisplay/src/BrandDisplay.scss (100%) rename {templates/ice-design/blocks => blocks}/BrandDisplay/src/index.js (100%) rename {templates/ice-design/blocks => blocks}/BrandShowCase/.editorconfig (100%) rename {templates/ice-design/blocks => blocks}/BrandShowCase/.eslintignore (100%) rename {templates/ice-design/blocks => blocks}/BrandShowCase/.eslintrc (100%) rename {templates/ice-design/blocks => blocks}/BrandShowCase/.gitignore (100%) rename {templates/ice-design/blocks => blocks}/BrandShowCase/README.md (100%) rename {templates/ice-design/blocks => blocks}/BrandShowCase/demo/index.html (100%) rename {templates/ice-design/blocks => blocks}/BrandShowCase/demo/index.js (100%) rename {templates/ice-design/blocks => blocks}/BrandShowCase/mock/api.json (100%) rename {templates/ice-design/blocks => blocks}/BrandShowCase/package.json (100%) rename {templates/ice-design/blocks => blocks}/BrandShowCase/src/BrandShowCase.jsx (100%) rename {templates/ice-design/blocks => blocks}/BrandShowCase/src/BrandShowCase.scss (100%) rename {templates/ice-design/blocks => blocks}/BrandShowCase/src/index.js (100%) rename {templates/ice-design/blocks => blocks}/ChartArea/.editorconfig (100%) rename {templates/ice-design/blocks => blocks}/ChartArea/.eslintignore (100%) rename {templates/ice-design/blocks => blocks}/ChartArea/.eslintrc (100%) rename {templates/ice-design/blocks => blocks}/ChartArea/.gitignore (100%) rename {templates/ice-design/blocks => blocks}/ChartArea/README.md (100%) rename {templates/ice-design/blocks => blocks}/ChartArea/demo/index.html (100%) rename {templates/ice-design/blocks => blocks}/ChartArea/demo/index.js (100%) rename {templates/ice-design/blocks => blocks}/ChartArea/mock/api.json (100%) rename {templates/ice-design/blocks => blocks}/ChartArea/package.json (100%) rename {templates/ice-design/blocks => blocks}/ChartArea/src/ChartArea.jsx (100%) rename {templates/ice-design/blocks/ChartArea/lib => blocks/ChartArea/src}/ChartArea.scss (100%) rename {templates/ice-design/blocks => blocks}/ChartArea/src/index.js (100%) rename {templates/ice-design/blocks => blocks}/ChartBar/.editorconfig (100%) rename {templates/ice-design/blocks => blocks}/ChartBar/.eslintignore (100%) rename {templates/ice-design/blocks => blocks}/ChartBar/.eslintrc (100%) rename {templates/ice-design/blocks => blocks}/ChartBar/.gitignore (100%) rename {templates/ice-design/blocks => blocks}/ChartBar/README.md (100%) rename {templates/ice-design/blocks => blocks}/ChartBar/demo/index.html (100%) rename {templates/ice-design/blocks => blocks}/ChartBar/demo/index.js (100%) rename {templates/ice-design/blocks => blocks}/ChartBar/mock/api.json (100%) rename {templates/ice-design/blocks => blocks}/ChartBar/package.json (100%) rename {templates/ice-design/blocks => blocks}/ChartBar/src/ChartBar.jsx (100%) rename {templates/ice-design/blocks/ChartBar/lib => blocks/ChartBar/src}/ChartBar.scss (100%) rename {templates/ice-design/blocks => blocks}/ChartBar/src/index.js (100%) rename {templates/ice-design/blocks => blocks}/ChartBox/.editorconfig (100%) rename {templates/ice-design/blocks => blocks}/ChartBox/.eslintignore (100%) rename {templates/ice-design/blocks => blocks}/ChartBox/.eslintrc (100%) rename {templates/ice-design/blocks => blocks}/ChartBox/.gitignore (100%) rename {templates/ice-design/blocks => blocks}/ChartBox/README.md (100%) rename {templates/ice-design/blocks => blocks}/ChartBox/demo/index.html (100%) rename {templates/ice-design/blocks => blocks}/ChartBox/demo/index.js (100%) rename {templates/ice-design/blocks => blocks}/ChartBox/mock/api.json (100%) rename {templates/ice-design/blocks => blocks}/ChartBox/package.json (100%) rename {templates/ice-design/blocks => blocks}/ChartBox/src/ChartBox.jsx (100%) rename {templates/ice-design/blocks/ChartBox/lib => blocks/ChartBox/src}/ChartBox.scss (100%) rename {templates/ice-design/blocks => blocks}/ChartBox/src/index.js (100%) rename {templates/ice-design/blocks => blocks}/ChartBubbleImage/.editorconfig (100%) rename {templates/ice-design/blocks => blocks}/ChartBubbleImage/.eslintignore (100%) rename {templates/ice-design/blocks => blocks}/ChartBubbleImage/.eslintrc (100%) rename {templates/ice-design/blocks => blocks}/ChartBubbleImage/.gitignore (100%) rename {templates/ice-design/blocks => blocks}/ChartBubbleImage/README.md (100%) rename {templates/ice-design/blocks => blocks}/ChartBubbleImage/demo/index.html (100%) rename {templates/ice-design/blocks => blocks}/ChartBubbleImage/demo/index.js (100%) rename {templates/ice-design/blocks => blocks}/ChartBubbleImage/mock/api.json (100%) rename {templates/ice-design/blocks => blocks}/ChartBubbleImage/package.json (100%) rename {templates/ice-design/blocks => blocks}/ChartBubbleImage/src/ChartBubbleImage.jsx (100%) rename {templates/ice-design/blocks/ChartBubbleImage/lib => blocks/ChartBubbleImage/src}/ChartBubbleImage.scss (100%) rename {templates/ice-design/blocks => blocks}/ChartBubbleImage/src/index.js (100%) rename {templates/ice-design/blocks => blocks}/ChartFacet/.editorconfig (100%) rename {templates/ice-design/blocks => blocks}/ChartFacet/.eslintignore (100%) rename {templates/ice-design/blocks => blocks}/ChartFacet/.eslintrc (100%) rename {templates/ice-design/blocks => blocks}/ChartFacet/.gitignore (100%) rename {templates/ice-design/blocks => blocks}/ChartFacet/README.md (100%) rename {templates/ice-design/blocks => blocks}/ChartFacet/demo/index.html (100%) rename {templates/ice-design/blocks => blocks}/ChartFacet/demo/index.js (100%) rename {templates/ice-design/blocks => blocks}/ChartFacet/mock/api.json (100%) rename {templates/ice-design/blocks => blocks}/ChartFacet/package.json (100%) rename {templates/ice-design/blocks => blocks}/ChartFacet/src/ChartFacet.jsx (100%) rename {templates/ice-design/blocks/ChartFacet/lib => blocks/ChartFacet/src}/ChartFacet.scss (100%) rename {templates/ice-design/blocks => blocks}/ChartFacet/src/index.js (100%) rename {templates/ice-design/blocks => blocks}/ChartFunnel/.editorconfig (100%) rename {templates/ice-design/blocks => blocks}/ChartFunnel/.eslintignore (100%) rename {templates/ice-design/blocks => blocks}/ChartFunnel/.eslintrc (100%) rename {templates/ice-design/blocks => blocks}/ChartFunnel/.gitignore (100%) rename {templates/ice-design/blocks => blocks}/ChartFunnel/README.md (100%) rename {templates/ice-design/blocks => blocks}/ChartFunnel/demo/index.html (100%) rename {templates/ice-design/blocks => blocks}/ChartFunnel/demo/index.js (100%) rename {templates/ice-design/blocks => blocks}/ChartFunnel/mock/api.json (100%) rename {templates/ice-design/blocks => blocks}/ChartFunnel/package.json (100%) rename {templates/ice-design/blocks => blocks}/ChartFunnel/src/ChartFunnel.jsx (100%) rename {templates/ice-design/blocks/ChartFunnel/lib => blocks/ChartFunnel/src}/ChartFunnel.scss (100%) rename {templates/ice-design/blocks => blocks}/ChartFunnel/src/index.js (100%) rename {templates/ice-design/blocks => blocks}/ChartGauge/.editorconfig (100%) rename {templates/ice-design/blocks => blocks}/ChartGauge/.eslintignore (100%) rename {templates/ice-design/blocks => blocks}/ChartGauge/.eslintrc (100%) rename {templates/ice-design/blocks => blocks}/ChartGauge/.gitignore (100%) rename {templates/ice-design/blocks => blocks}/ChartGauge/README.md (100%) rename {templates/ice-design/blocks => blocks}/ChartGauge/demo/index.html (100%) rename {templates/ice-design/blocks => blocks}/ChartGauge/demo/index.js (100%) rename {templates/ice-design/blocks => blocks}/ChartGauge/mock/api.json (100%) rename {templates/ice-design/blocks => blocks}/ChartGauge/package.json (100%) rename {templates/ice-design/blocks => blocks}/ChartGauge/src/ChartGauge.jsx (100%) rename {templates/ice-design/blocks/ChartGauge/lib => blocks/ChartGauge/src}/ChartGauge.scss (100%) rename {templates/ice-design/blocks => blocks}/ChartGauge/src/index.js (100%) rename {templates/ice-design/blocks => blocks}/ChartHeatMap/.editorconfig (100%) rename {templates/ice-design/blocks => blocks}/ChartHeatMap/.eslintignore (100%) rename {templates/ice-design/blocks => blocks}/ChartHeatMap/.eslintrc (100%) rename {templates/ice-design/blocks => blocks}/ChartHeatMap/.gitignore (100%) rename {templates/ice-design/blocks => blocks}/ChartHeatMap/README.md (100%) rename {templates/ice-design/blocks => blocks}/ChartHeatMap/demo/index.html (100%) rename {templates/ice-design/blocks => blocks}/ChartHeatMap/demo/index.js (100%) rename {templates/ice-design/blocks => blocks}/ChartHeatMap/mock/api.json (100%) rename {templates/ice-design/blocks => blocks}/ChartHeatMap/package.json (100%) rename {templates/ice-design/blocks => blocks}/ChartHeatMap/src/ChartHeatMap.jsx (100%) rename {templates/ice-design/blocks/ChartHeatMap/lib => blocks/ChartHeatMap/src}/ChartHeatMap.scss (100%) rename {templates/ice-design/blocks => blocks}/ChartHeatMap/src/index.js (100%) rename {templates/ice-design/blocks => blocks}/ChartPie/.editorconfig (100%) rename {templates/ice-design/blocks => blocks}/ChartPie/.eslintignore (100%) rename {templates/ice-design/blocks => blocks}/ChartPie/.eslintrc (100%) rename {templates/ice-design/blocks => blocks}/ChartPie/.gitignore (100%) rename {templates/ice-design/blocks => blocks}/ChartPie/README.md (100%) rename {templates/ice-design/blocks => blocks}/ChartPie/demo/index.html (100%) rename {templates/ice-design/blocks => blocks}/ChartPie/demo/index.js (100%) rename {templates/ice-design/blocks => blocks}/ChartPie/mock/api.json (100%) rename {templates/ice-design/blocks => blocks}/ChartPie/package.json (100%) rename {templates/ice-design/blocks => blocks}/ChartPie/src/ChartPie.jsx (100%) rename {templates/ice-design/blocks/ChartPie/lib => blocks/ChartPie/src}/ChartPie.scss (100%) rename {templates/ice-design/blocks => blocks}/ChartPie/src/index.js (100%) rename {templates/ice-design/blocks => blocks}/ChartPoint/.editorconfig (100%) rename {templates/ice-design/blocks => blocks}/ChartPoint/.eslintignore (100%) rename {templates/ice-design/blocks => blocks}/ChartPoint/.eslintrc (100%) rename {templates/ice-design/blocks => blocks}/ChartPoint/.gitignore (100%) rename {templates/ice-design/blocks => blocks}/ChartPoint/README.md (100%) rename {templates/ice-design/blocks => blocks}/ChartPoint/demo/index.html (100%) rename {templates/ice-design/blocks => blocks}/ChartPoint/demo/index.js (100%) rename {templates/ice-design/blocks => blocks}/ChartPoint/mock/chart-point.json (100%) rename {templates/ice-design/blocks => blocks}/ChartPoint/package.json (100%) rename {templates/ice-design/blocks => blocks}/ChartPoint/src/ChartPoint.jsx (100%) rename {templates/ice-design/blocks/ChartPoint/lib => blocks/ChartPoint/src}/ChartPoint.scss (100%) rename {templates/ice-design/blocks => blocks}/ChartPoint/src/index.js (100%) rename {templates/ice-design/blocks => blocks}/ChartRadar/.editorconfig (100%) rename {templates/ice-design/blocks => blocks}/ChartRadar/.eslintignore (100%) rename {templates/ice-design/blocks => blocks}/ChartRadar/.eslintrc (100%) rename {templates/ice-design/blocks => blocks}/ChartRadar/.gitignore (100%) rename {templates/ice-design/blocks => blocks}/ChartRadar/README.md (100%) rename {templates/ice-design/blocks => blocks}/ChartRadar/demo/index.html (100%) rename {templates/ice-design/blocks => blocks}/ChartRadar/demo/index.js (100%) rename {templates/ice-design/blocks => blocks}/ChartRadar/mock/api.json (100%) rename {templates/ice-design/blocks => blocks}/ChartRadar/package.json (100%) rename {templates/ice-design/blocks => blocks}/ChartRadar/src/ChartRadar.jsx (100%) rename {templates/ice-design/blocks/ChartRadar/lib => blocks/ChartRadar/src}/ChartRadar.scss (100%) rename {templates/ice-design/blocks => blocks}/ChartRadar/src/index.js (100%) rename {templates/ice-design/blocks => blocks}/ChartRelation/.editorconfig (100%) rename {templates/ice-design/blocks => blocks}/ChartRelation/.eslintignore (100%) rename {templates/ice-design/blocks => blocks}/ChartRelation/.eslintrc (100%) rename {templates/ice-design/blocks => blocks}/ChartRelation/.gitignore (100%) rename {templates/ice-design/blocks => blocks}/ChartRelation/README.md (100%) rename {templates/ice-design/blocks => blocks}/ChartRelation/demo/index.html (100%) rename {templates/ice-design/blocks => blocks}/ChartRelation/demo/index.js (100%) rename {templates/ice-design/blocks => blocks}/ChartRelation/mock/api.json (100%) rename {templates/ice-design/blocks => blocks}/ChartRelation/package.json (100%) rename {templates/ice-design/blocks => blocks}/ChartRelation/src/ChartRelation.jsx (100%) rename {templates/ice-design/blocks/ChartRelation/lib => blocks/ChartRelation/src}/ChartRelation.scss (100%) rename {templates/ice-design/blocks => blocks}/ChartRelation/src/index.js (100%) rename {templates/ice-design/blocks => blocks}/ChartStock/.editorconfig (100%) rename {templates/ice-design/blocks => blocks}/ChartStock/.eslintignore (100%) rename {templates/ice-design/blocks => blocks}/ChartStock/.eslintrc (100%) rename {templates/ice-design/blocks => blocks}/ChartStock/.gitignore (100%) rename {templates/ice-design/blocks => blocks}/ChartStock/README.md (100%) rename {templates/ice-design/blocks => blocks}/ChartStock/demo/index.html (100%) rename {templates/ice-design/blocks => blocks}/ChartStock/demo/index.js (100%) rename {templates/ice-design/blocks => blocks}/ChartStock/mock/chart-stock.json (100%) rename {templates/ice-design/blocks => blocks}/ChartStock/package.json (100%) rename {templates/ice-design/blocks => blocks}/ChartStock/src/ChartStock.jsx (100%) rename {templates/ice-design/blocks/ChartStock/lib => blocks/ChartStock/src}/ChartStock.scss (100%) rename {templates/ice-design/blocks => blocks}/ChartStock/src/index.js (100%) rename {templates/ice-design/blocks => blocks}/ChartTypeLine/.editorconfig (100%) rename {templates/ice-design/blocks => blocks}/ChartTypeLine/.eslintignore (100%) rename {templates/ice-design/blocks => blocks}/ChartTypeLine/.eslintrc (100%) rename {templates/ice-design/blocks => blocks}/ChartTypeLine/.gitignore (100%) rename {templates/ice-design/blocks => blocks}/ChartTypeLine/README.md (100%) rename {templates/ice-design/blocks => blocks}/ChartTypeLine/demo/index.html (100%) rename {templates/ice-design/blocks => blocks}/ChartTypeLine/demo/index.js (100%) rename {templates/ice-design/blocks => blocks}/ChartTypeLine/mock/api.json (100%) rename {templates/ice-design/blocks => blocks}/ChartTypeLine/package.json (100%) rename {templates/ice-design/blocks => blocks}/ChartTypeLine/src/ChartTypeLine.jsx (100%) rename {templates/ice-design/blocks/ChartTypeLine/lib => blocks/ChartTypeLine/src}/ChartTypeLine.scss (100%) rename {templates/ice-design/blocks => blocks}/ChartTypeLine/src/index.js (100%) rename {templates/ice-design/blocks => blocks}/CollapseCard/.editorconfig (100%) rename {templates/ice-design/blocks => blocks}/CollapseCard/.eslintignore (100%) rename {templates/ice-design/blocks => blocks}/CollapseCard/.eslintrc (100%) rename {templates/ice-design/blocks => blocks}/CollapseCard/.gitignore (100%) rename {templates/ice-design/blocks => blocks}/CollapseCard/README.md (100%) rename {templates/ice-design/blocks => blocks}/CollapseCard/demo/index.html (100%) rename {templates/ice-design/blocks => blocks}/CollapseCard/demo/index.js (100%) rename {templates/ice-design/blocks => blocks}/CollapseCard/mock/api.json (100%) rename {templates/ice-design/blocks => blocks}/CollapseCard/package.json (100%) rename {templates/ice-design/blocks => blocks}/CollapseCard/src/CollapseCard.jsx (100%) rename {templates/ice-design/blocks => blocks}/CollapseCard/src/CollapseCard.scss (100%) rename {templates/ice-design/blocks => blocks}/CollapseCard/src/index.js (100%) rename {templates/ice-design/blocks => blocks}/ComplexDialog/.editorconfig (100%) rename {templates/ice-design/blocks => blocks}/ComplexDialog/.eslintignore (100%) rename {templates/ice-design/blocks => blocks}/ComplexDialog/.eslintrc (100%) rename {templates/ice-design/blocks => blocks}/ComplexDialog/.gitignore (100%) rename {templates/ice-design/blocks => blocks}/ComplexDialog/README.md (100%) rename {templates/ice-design/blocks => blocks}/ComplexDialog/demo/index.html (100%) rename {templates/ice-design/blocks => blocks}/ComplexDialog/demo/index.js (100%) rename {templates/ice-design/blocks => blocks}/ComplexDialog/mock/api.json (100%) rename {templates/ice-design/blocks => blocks}/ComplexDialog/package.json (100%) rename {templates/ice-design/blocks => blocks}/ComplexDialog/src/ComplexDialog.jsx (100%) rename {templates/ice-design/blocks => blocks}/ComplexDialog/src/ComplexDialog.scss (100%) rename {templates/ice-design/blocks => blocks}/ComplexDialog/src/CreateFuncDialog.js (100%) rename {templates/ice-design/blocks => blocks}/ComplexDialog/src/index.js (100%) rename {templates/ice-design/blocks => blocks}/ComplexFilter/.editorconfig (100%) rename {templates/ice-design/blocks => blocks}/ComplexFilter/.eslintignore (100%) rename {templates/ice-design/blocks => blocks}/ComplexFilter/.eslintrc (100%) rename {templates/ice-design/blocks => blocks}/ComplexFilter/.gitignore (100%) rename {templates/ice-design/blocks => blocks}/ComplexFilter/README.md (100%) rename {templates/ice-design/blocks => blocks}/ComplexFilter/demo/index.html (100%) rename {templates/ice-design/blocks => blocks}/ComplexFilter/demo/index.js (100%) rename {templates/ice-design/blocks => blocks}/ComplexFilter/mock/api.json (100%) rename {templates/ice-design/blocks => blocks}/ComplexFilter/package.json (100%) rename {templates/ice-design/blocks => blocks}/ComplexFilter/src/ComplexFilter.jsx (100%) rename {templates/ice-design/blocks => blocks}/ComplexFilter/src/ComplexFilter.scss (100%) rename {templates/ice-design/blocks => blocks}/ComplexFilter/src/index.js (100%) rename {templates/ice-design/blocks => blocks}/ComplexProgressTable/.babelrc (100%) rename {templates/ice-design/blocks => blocks}/ComplexProgressTable/.editorconfig (100%) rename {templates/ice-design/blocks => blocks}/ComplexProgressTable/.eslintignore (100%) rename {templates/ice-design/blocks => blocks}/ComplexProgressTable/.eslintrc (100%) rename {templates/ice-design/blocks => blocks}/ComplexProgressTable/.gitignore (100%) rename {templates/ice-design/blocks => blocks}/ComplexProgressTable/README.md (100%) rename {templates/ice-design/blocks => blocks}/ComplexProgressTable/demo/index.html (100%) rename {templates/ice-design/blocks => blocks}/ComplexProgressTable/demo/index.js (100%) rename {templates/ice-design/blocks => blocks}/ComplexProgressTable/mock/complex-progress-table.json (100%) rename {templates/ice-design/blocks => blocks}/ComplexProgressTable/package.json (100%) rename {templates/ice-design/blocks => blocks}/ComplexProgressTable/src/ComplexProgressTable.jsx (100%) rename {templates/ice-design/blocks => blocks}/ComplexProgressTable/src/ComplexProgressTable.scss (100%) rename {templates/ice-design/blocks => blocks}/ComplexProgressTable/src/CreateFuncDialog.jsx (100%) rename {templates/ice-design/blocks => blocks}/ComplexProgressTable/src/EditDialog.jsx (100%) rename {templates/ice-design/blocks => blocks}/ComplexProgressTable/src/index.js (100%) rename {templates/ice-design/blocks => blocks}/ComplexTabTable/.editorconfig (100%) rename {templates/ice-design/blocks => blocks}/ComplexTabTable/.eslintignore (100%) rename {templates/ice-design/blocks => blocks}/ComplexTabTable/.eslintrc (100%) rename {templates/ice-design/blocks => blocks}/ComplexTabTable/.gitignore (100%) rename {templates/ice-design/blocks => blocks}/ComplexTabTable/README.md (100%) rename {templates/ice-design/blocks => blocks}/ComplexTabTable/demo/index.html (100%) rename {templates/ice-design/blocks => blocks}/ComplexTabTable/demo/index.js (100%) rename {templates/ice-design/blocks => blocks}/ComplexTabTable/mock/complex-tab-table-list.json (100%) rename {templates/ice-design/blocks => blocks}/ComplexTabTable/package.json (100%) rename {templates/ice-design/blocks => blocks}/ComplexTabTable/src/ComplexTabTable.jsx (100%) rename {templates/ice-design/blocks => blocks}/ComplexTabTable/src/ComplexTabTable.scss (100%) rename {templates/ice-design/blocks => blocks}/ComplexTabTable/src/SubCategoryItem.jsx (100%) rename {templates/ice-design/blocks => blocks}/ComplexTabTable/src/index.js (100%) rename {templates/ice-design/blocks => blocks}/CompositeFilter/.editorconfig (100%) rename {templates/ice-design/blocks => blocks}/CompositeFilter/.eslintignore (100%) rename {templates/ice-design/blocks => blocks}/CompositeFilter/.eslintrc (100%) rename {templates/ice-design/blocks => blocks}/CompositeFilter/.gitignore (100%) rename {templates/ice-design/blocks => blocks}/CompositeFilter/README.md (100%) rename {templates/ice-design/blocks => blocks}/CompositeFilter/demo/index.html (100%) rename {templates/ice-design/blocks => blocks}/CompositeFilter/demo/index.js (100%) rename {templates/ice-design/blocks => blocks}/CompositeFilter/mock/api.json (100%) rename {templates/ice-design/blocks => blocks}/CompositeFilter/package.json (100%) rename {templates/ice-design/blocks => blocks}/CompositeFilter/src/CompositeFilter.jsx (100%) rename {templates/ice-design/blocks => blocks}/CompositeFilter/src/CompositeFilter.scss (100%) rename {templates/ice-design/blocks => blocks}/CompositeFilter/src/index.js (100%) rename {templates/ice-design/blocks => blocks}/ConfirmDialog/.editorconfig (100%) rename {templates/ice-design/blocks => blocks}/ConfirmDialog/.eslintignore (100%) rename {templates/ice-design/blocks => blocks}/ConfirmDialog/.eslintrc (100%) rename {templates/ice-design/blocks => blocks}/ConfirmDialog/.gitignore (100%) rename {templates/ice-design/blocks => blocks}/ConfirmDialog/README.md (100%) rename {templates/ice-design/blocks => blocks}/ConfirmDialog/demo/index.html (100%) rename {templates/ice-design/blocks => blocks}/ConfirmDialog/demo/index.js (100%) rename {templates/ice-design/blocks => blocks}/ConfirmDialog/mock/api.json (100%) rename {templates/ice-design/blocks => blocks}/ConfirmDialog/package.json (100%) rename {templates/ice-design/blocks => blocks}/ConfirmDialog/src/ConfirmDialog.jsx (100%) rename {templates/ice-design/blocks => blocks}/ConfirmDialog/src/ConfirmDialog.scss (100%) rename {templates/ice-design/blocks => blocks}/ConfirmDialog/src/CreateFuncDialog.js (100%) rename {templates/ice-design/blocks => blocks}/ConfirmDialog/src/index.js (100%) rename {templates/ice-design/blocks => blocks}/DataDisplay/.editorconfig (100%) rename {templates/ice-design/blocks => blocks}/DataDisplay/.eslintignore (100%) rename {templates/ice-design/blocks => blocks}/DataDisplay/.eslintrc (100%) rename {templates/ice-design/blocks => blocks}/DataDisplay/.gitignore (100%) rename {templates/ice-design/blocks => blocks}/DataDisplay/README.md (100%) rename {templates/ice-design/blocks => blocks}/DataDisplay/demo/index.html (100%) rename {templates/ice-design/blocks => blocks}/DataDisplay/demo/index.js (100%) rename {templates/ice-design/blocks => blocks}/DataDisplay/mock/api.json (100%) rename {templates/ice-design/blocks => blocks}/DataDisplay/package.json (100%) rename {templates/ice-design/blocks => blocks}/DataDisplay/src/DataDisplay.jsx (100%) rename {templates/ice-design/blocks => blocks}/DataDisplay/src/DataDisplay.scss (100%) rename {templates/ice-design/blocks => blocks}/DataDisplay/src/index.js (100%) rename {templates/ice-design/blocks => blocks}/DetailTable/.editorconfig (100%) rename {templates/ice-design/blocks => blocks}/DetailTable/.eslintignore (100%) rename {templates/ice-design/blocks => blocks}/DetailTable/.eslintrc (100%) rename {templates/ice-design/blocks => blocks}/DetailTable/.gitignore (100%) rename {templates/ice-design/blocks => blocks}/DetailTable/README.md (100%) rename {templates/ice-design/blocks => blocks}/DetailTable/demo/index.html (100%) rename {templates/ice-design/blocks => blocks}/DetailTable/demo/index.js (100%) rename {templates/ice-design/blocks => blocks}/DetailTable/mock/api.json (100%) rename {templates/ice-design/blocks => blocks}/DetailTable/package.json (100%) rename {templates/ice-design/blocks => blocks}/DetailTable/src/DetailTable.jsx (100%) rename {templates/ice-design/blocks => blocks}/DetailTable/src/DetailTable.scss (100%) rename {templates/ice-design/blocks => blocks}/DetailTable/src/index.js (100%) rename {templates/ice-design/blocks => blocks}/DisplayCard/.editorconfig (100%) rename {templates/ice-design/blocks => blocks}/DisplayCard/.eslintignore (100%) rename {templates/ice-design/blocks => blocks}/DisplayCard/.eslintrc (100%) rename {templates/ice-design/blocks => blocks}/DisplayCard/.gitignore (100%) rename {templates/ice-design/blocks => blocks}/DisplayCard/README.md (100%) rename {templates/ice-design/blocks => blocks}/DisplayCard/demo/index.html (100%) rename {templates/ice-design/blocks => blocks}/DisplayCard/demo/index.js (100%) rename {templates/ice-design/blocks => blocks}/DisplayCard/mock/api.json (100%) rename {templates/ice-design/blocks => blocks}/DisplayCard/package.json (100%) rename {templates/ice-design/blocks => blocks}/DisplayCard/src/DisplayCard.jsx (100%) rename {templates/ice-design/blocks => blocks}/DisplayCard/src/DisplayCard.scss (100%) rename {templates/ice-design/blocks => blocks}/DisplayCard/src/index.js (100%) rename {templates/ice-design/blocks => blocks}/DownloadCard/.editorconfig (100%) rename {templates/ice-design/blocks => blocks}/DownloadCard/.eslintignore (100%) rename {templates/ice-design/blocks => blocks}/DownloadCard/.eslintrc (100%) rename {templates/ice-design/blocks => blocks}/DownloadCard/.gitignore (100%) rename {templates/ice-design/blocks => blocks}/DownloadCard/README.md (100%) rename {templates/ice-design/blocks => blocks}/DownloadCard/demo/index.html (100%) rename {templates/ice-design/blocks => blocks}/DownloadCard/demo/index.js (100%) rename {templates/ice-design/blocks => blocks}/DownloadCard/mock/api.json (100%) rename {templates/ice-design/blocks => blocks}/DownloadCard/mock/download-card.json (100%) rename {templates/ice-design/blocks => blocks}/DownloadCard/package.json (100%) rename {templates/ice-design/blocks => blocks}/DownloadCard/src/DownloadCard.jsx (100%) rename {templates/ice-design/blocks => blocks}/DownloadCard/src/DownloadCard.scss (100%) rename {templates/ice-design/blocks => blocks}/DownloadCard/src/index.js (100%) rename {templates/ice-design/blocks => blocks}/DynamicBanner/.editorconfig (100%) rename {templates/ice-design/blocks => blocks}/DynamicBanner/.eslintignore (100%) rename {templates/ice-design/blocks => blocks}/DynamicBanner/.eslintrc (100%) rename {templates/ice-design/blocks => blocks}/DynamicBanner/.gitignore (100%) rename {templates/ice-design/blocks => blocks}/DynamicBanner/README.md (100%) rename {templates/ice-design/blocks => blocks}/DynamicBanner/demo/index.html (100%) rename {templates/ice-design/blocks => blocks}/DynamicBanner/demo/index.js (100%) rename {templates/ice-design/blocks => blocks}/DynamicBanner/mock/api.json (100%) rename {templates/ice-design/blocks => blocks}/DynamicBanner/package.json (100%) rename {templates/ice-design/blocks => blocks}/DynamicBanner/src/DynamicBanner.jsx (100%) rename {templates/ice-design/blocks => blocks}/DynamicBanner/src/DynamicBanner.scss (100%) rename {templates/ice-design/blocks => blocks}/DynamicBanner/src/index.js (100%) rename {templates/ice-design/blocks => blocks}/EditableTable/.editorconfig (100%) rename {templates/ice-design/blocks => blocks}/EditableTable/.eslintignore (100%) rename {templates/ice-design/blocks => blocks}/EditableTable/.eslintrc (100%) rename {templates/ice-design/blocks => blocks}/EditableTable/.gitignore (100%) rename {templates/ice-design/blocks => blocks}/EditableTable/README.md (100%) rename {templates/ice-design/blocks => blocks}/EditableTable/demo/index.html (100%) rename {templates/ice-design/blocks => blocks}/EditableTable/demo/index.js (100%) rename {templates/ice-design/blocks => blocks}/EditableTable/mock/api.json (100%) rename {templates/ice-design/blocks => blocks}/EditableTable/package.json (100%) rename {templates/ice-design/blocks => blocks}/EditableTable/src/CellEditor.jsx (100%) rename {templates/ice-design/blocks => blocks}/EditableTable/src/EditableTable.jsx (100%) rename {templates/ice-design/blocks => blocks}/EditableTable/src/EditableTable.scss (100%) rename {templates/ice-design/blocks => blocks}/EditableTable/src/index.js (100%) rename {templates/ice-design/blocks => blocks}/EmptyContent/.editorconfig (100%) rename {templates/ice-design/blocks => blocks}/EmptyContent/.eslintignore (100%) rename {templates/ice-design/blocks => blocks}/EmptyContent/.eslintrc (100%) rename {templates/ice-design/blocks => blocks}/EmptyContent/.gitignore (100%) rename {templates/ice-design/blocks => blocks}/EmptyContent/README.md (100%) rename {templates/ice-design/blocks => blocks}/EmptyContent/demo/index.html (100%) rename {templates/ice-design/blocks => blocks}/EmptyContent/demo/index.js (100%) rename {templates/ice-design/blocks => blocks}/EmptyContent/mock/api.json (100%) rename {templates/ice-design/blocks => blocks}/EmptyContent/package.json (100%) rename {templates/ice-design/blocks => blocks}/EmptyContent/src/EmptyContent.jsx (100%) rename {templates/ice-design/blocks => blocks}/EmptyContent/src/EmptyContent.scss (100%) rename {templates/ice-design/blocks => blocks}/EmptyContent/src/index.js (100%) rename {templates/ice-design/blocks => blocks}/EnhanceTable/.editorconfig (100%) rename {templates/ice-design/blocks => blocks}/EnhanceTable/.eslintignore (100%) rename {templates/ice-design/blocks => blocks}/EnhanceTable/.eslintrc (100%) rename {templates/ice-design/blocks => blocks}/EnhanceTable/.gitignore (100%) rename {templates/ice-design/blocks => blocks}/EnhanceTable/README.md (100%) rename {templates/ice-design/blocks => blocks}/EnhanceTable/demo/index.html (100%) rename {templates/ice-design/blocks => blocks}/EnhanceTable/demo/index.js (100%) rename {templates/ice-design/blocks => blocks}/EnhanceTable/mock/enhance-table-list.json (100%) rename {templates/ice-design/blocks => blocks}/EnhanceTable/package.json (100%) rename {templates/ice-design/blocks => blocks}/EnhanceTable/src/EnhanceTable.jsx (100%) rename {templates/ice-design/blocks => blocks}/EnhanceTable/src/EnhanceTable.scss (100%) rename {templates/ice-design/blocks => blocks}/EnhanceTable/src/index.js (100%) rename {templates/ice-design/blocks => blocks}/EntryCard/.editorconfig (100%) rename {templates/ice-design/blocks => blocks}/EntryCard/.eslintignore (100%) rename {templates/ice-design/blocks => blocks}/EntryCard/.eslintrc (100%) rename {templates/ice-design/blocks => blocks}/EntryCard/.gitignore (100%) rename {templates/ice-design/blocks => blocks}/EntryCard/README.md (100%) rename {templates/ice-design/blocks => blocks}/EntryCard/demo/index.html (100%) rename {templates/ice-design/blocks => blocks}/EntryCard/demo/index.js (100%) rename {templates/ice-design/blocks => blocks}/EntryCard/mock/api.json (100%) rename {templates/ice-design/blocks => blocks}/EntryCard/package.json (100%) rename {templates/ice-design/blocks => blocks}/EntryCard/src/EntryCard.jsx (100%) rename {templates/ice-design/blocks/EntryCard/lib => blocks/EntryCard/src}/EntryCard.scss (100%) rename {templates/ice-design/blocks => blocks}/EntryCard/src/index.js (100%) rename {templates/ice-design/blocks => blocks}/FailureDetail/.editorconfig (100%) rename {templates/ice-design/blocks => blocks}/FailureDetail/.eslintignore (100%) rename {templates/ice-design/blocks => blocks}/FailureDetail/.eslintrc (100%) rename {templates/ice-design/blocks => blocks}/FailureDetail/.gitignore (100%) rename {templates/ice-design/blocks => blocks}/FailureDetail/README.md (100%) rename {templates/ice-design/blocks => blocks}/FailureDetail/demo/index.html (100%) rename {templates/ice-design/blocks => blocks}/FailureDetail/demo/index.js (100%) rename {templates/ice-design/blocks => blocks}/FailureDetail/mock/api.json (100%) rename {templates/ice-design/blocks => blocks}/FailureDetail/package.json (100%) rename {templates/ice-design/blocks => blocks}/FailureDetail/src/FailureDetail.jsx (100%) rename {templates/ice-design/blocks => blocks}/FailureDetail/src/FailureDetail.scss (100%) rename {templates/ice-design/blocks => blocks}/FailureDetail/src/index.js (100%) rename {templates/ice-design/blocks => blocks}/FeatureDisplay/.editorconfig (100%) rename {templates/ice-design/blocks => blocks}/FeatureDisplay/.eslintignore (100%) rename {templates/ice-design/blocks => blocks}/FeatureDisplay/.eslintrc (100%) rename {templates/ice-design/blocks => blocks}/FeatureDisplay/.gitignore (100%) rename {templates/ice-design/blocks => blocks}/FeatureDisplay/README.md (100%) rename {templates/ice-design/blocks => blocks}/FeatureDisplay/demo/index.html (100%) rename {templates/ice-design/blocks => blocks}/FeatureDisplay/demo/index.js (100%) rename {templates/ice-design/blocks => blocks}/FeatureDisplay/mock/api.json (100%) rename {templates/ice-design/blocks => blocks}/FeatureDisplay/package.json (100%) rename {templates/ice-design/blocks => blocks}/FeatureDisplay/src/FeatureDisplay.jsx (100%) rename {templates/ice-design/blocks => blocks}/FeatureDisplay/src/FeatureDisplay.scss (100%) rename {templates/ice-design/blocks => blocks}/FeatureDisplay/src/index.js (100%) rename {templates/ice-design/blocks => blocks}/FeedList/.editorconfig (100%) rename {templates/ice-design/blocks => blocks}/FeedList/.eslintignore (100%) rename {templates/ice-design/blocks => blocks}/FeedList/.eslintrc (100%) rename {templates/ice-design/blocks => blocks}/FeedList/.gitignore (100%) rename {templates/ice-design/blocks => blocks}/FeedList/README.md (100%) rename {templates/ice-design/blocks => blocks}/FeedList/demo/index.html (100%) rename {templates/ice-design/blocks => blocks}/FeedList/demo/index.js (100%) rename {templates/ice-design/blocks => blocks}/FeedList/mock/api.json (100%) rename {templates/ice-design/blocks => blocks}/FeedList/package.json (100%) rename {templates/ice-design/blocks => blocks}/FeedList/src/FeedList.jsx (100%) rename {templates/ice-design/blocks => blocks}/FeedList/src/FeedList.scss (100%) rename {templates/ice-design/blocks => blocks}/FeedList/src/index.js (100%) rename {templates/ice-design/blocks => blocks}/FilterList/.editorconfig (100%) rename {templates/ice-design/blocks => blocks}/FilterList/.eslintignore (100%) rename {templates/ice-design/blocks => blocks}/FilterList/.eslintrc (100%) rename {templates/ice-design/blocks => blocks}/FilterList/.gitignore (100%) rename {templates/ice-design/blocks => blocks}/FilterList/README.md (100%) rename {templates/ice-design/blocks => blocks}/FilterList/demo/index.html (100%) rename {templates/ice-design/blocks => blocks}/FilterList/demo/index.js (100%) rename {templates/ice-design/blocks => blocks}/FilterList/mock/api.json (100%) rename {templates/ice-design/blocks => blocks}/FilterList/package.json (100%) rename {templates/ice-design/blocks => blocks}/FilterList/src/FilterList.jsx (100%) rename {templates/ice-design/blocks => blocks}/FilterList/src/FilterList.scss (100%) rename {templates/ice-design/blocks => blocks}/FilterList/src/SingleItem/SingleItem.jsx (100%) rename {templates/ice-design/blocks => blocks}/FilterList/src/SingleItem/SingleItem.scss (100%) rename {templates/ice-design/blocks => blocks}/FilterList/src/SingleItem/index.js (100%) rename {templates/ice-design/blocks => blocks}/FilterList/src/index.js (100%) rename {templates/ice-design/blocks => blocks}/FilterTable/.editorconfig (100%) rename {templates/ice-design/blocks => blocks}/FilterTable/.eslintignore (100%) rename {templates/ice-design/blocks => blocks}/FilterTable/.eslintrc (100%) rename {templates/ice-design/blocks => blocks}/FilterTable/.gitignore (100%) rename {templates/ice-design/blocks => blocks}/FilterTable/README.md (100%) rename {templates/ice-design/blocks => blocks}/FilterTable/demo/index.html (100%) rename {templates/ice-design/blocks => blocks}/FilterTable/demo/index.js (100%) rename {templates/ice-design/blocks => blocks}/FilterTable/mock/filter-table-list.json (100%) rename {templates/ice-design/blocks => blocks}/FilterTable/package.json (100%) rename {templates/ice-design/blocks => blocks}/FilterTable/src/Filter/Filter.jsx (100%) rename {templates/ice-design/blocks => blocks}/FilterTable/src/Filter/Filter.scss (100%) rename {templates/ice-design/blocks => blocks}/FilterTable/src/Filter/index.js (100%) rename {templates/ice-design/blocks => blocks}/FilterTable/src/FilterTable.jsx (100%) rename {templates/ice-design/blocks => blocks}/FilterTable/src/index.js (100%) rename {templates/ice-design/blocks => blocks}/FilterWithSearch/.editorconfig (100%) rename {templates/ice-design/blocks => blocks}/FilterWithSearch/.eslintignore (100%) rename {templates/ice-design/blocks => blocks}/FilterWithSearch/.eslintrc (100%) rename {templates/ice-design/blocks => blocks}/FilterWithSearch/.gitignore (100%) rename {templates/ice-design/blocks => blocks}/FilterWithSearch/README.md (100%) rename {templates/ice-design/blocks => blocks}/FilterWithSearch/demo/index.html (100%) rename {templates/ice-design/blocks => blocks}/FilterWithSearch/demo/index.js (100%) rename {templates/ice-design/blocks => blocks}/FilterWithSearch/mock/api.json (100%) rename {templates/ice-design/blocks => blocks}/FilterWithSearch/package.json (100%) rename {templates/ice-design/blocks => blocks}/FilterWithSearch/src/FilterWithSearch.jsx (100%) rename {templates/ice-design/blocks => blocks}/FilterWithSearch/src/FilterWithSearch.scss (100%) rename {templates/ice-design/blocks => blocks}/FilterWithSearch/src/index.js (100%) rename {templates/ice-design/blocks => blocks}/Footer/.editorconfig (100%) rename {templates/ice-design/blocks => blocks}/Footer/.eslintignore (100%) rename {templates/ice-design/blocks => blocks}/Footer/.eslintrc (100%) rename {templates/ice-design/blocks => blocks}/Footer/.gitignore (100%) rename {templates/ice-design/blocks => blocks}/Footer/README.md (100%) rename {templates/ice-design/blocks => blocks}/Footer/demo/index.html (100%) rename {templates/ice-design/blocks => blocks}/Footer/demo/index.js (100%) rename {templates/ice-design/blocks => blocks}/Footer/mock/api.json (100%) rename {templates/ice-design/blocks => blocks}/Footer/package.json (100%) rename {templates/ice-design/blocks => blocks}/Footer/src/Footer.jsx (100%) rename {templates/ice-design/blocks => blocks}/Footer/src/index.js (100%) rename {templates/ice-design/blocks => blocks}/FooterInfo/.editorconfig (100%) rename {templates/ice-design/blocks => blocks}/FooterInfo/.eslintignore (100%) rename {templates/ice-design/blocks => blocks}/FooterInfo/.eslintrc (100%) rename {templates/ice-design/blocks => blocks}/FooterInfo/.gitignore (100%) rename {templates/ice-design/blocks => blocks}/FooterInfo/README.md (100%) rename {templates/ice-design/blocks => blocks}/FooterInfo/demo/index.html (100%) rename {templates/ice-design/blocks => blocks}/FooterInfo/demo/index.js (100%) rename {templates/ice-design/blocks => blocks}/FooterInfo/mock/api.json (100%) rename {templates/ice-design/blocks => blocks}/FooterInfo/package.json (100%) rename {templates/ice-design/blocks => blocks}/FooterInfo/src/FooterInfo.jsx (100%) rename {templates/ice-design/blocks => blocks}/FooterInfo/src/index.js (100%) rename {templates/ice-design/blocks => blocks}/ForgetPasswordForm/.editorconfig (100%) rename {templates/ice-design/blocks => blocks}/ForgetPasswordForm/.eslintignore (100%) rename {templates/ice-design/blocks => blocks}/ForgetPasswordForm/.eslintrc (100%) rename {templates/ice-design/blocks => blocks}/ForgetPasswordForm/.gitignore (100%) rename {templates/ice-design/blocks => blocks}/ForgetPasswordForm/README.md (100%) rename {templates/ice-design/blocks => blocks}/ForgetPasswordForm/demo/index.html (100%) rename {templates/ice-design/blocks => blocks}/ForgetPasswordForm/demo/index.js (100%) rename {templates/ice-design/blocks => blocks}/ForgetPasswordForm/mock/api.json (100%) rename {templates/ice-design/blocks => blocks}/ForgetPasswordForm/package.json (100%) rename {templates/ice-design/blocks => blocks}/ForgetPasswordForm/src/ForgetPasswordForm.jsx (100%) rename {templates/ice-design/blocks => blocks}/ForgetPasswordForm/src/index.js (100%) rename {templates/ice-design/blocks => blocks}/InfoDisplayTab/.editorconfig (100%) rename {templates/ice-design/blocks => blocks}/InfoDisplayTab/.eslintignore (100%) rename {templates/ice-design/blocks => blocks}/InfoDisplayTab/.eslintrc (100%) rename {templates/ice-design/blocks => blocks}/InfoDisplayTab/.gitignore (100%) rename {templates/ice-design/blocks => blocks}/InfoDisplayTab/README.md (100%) rename {templates/ice-design/blocks => blocks}/InfoDisplayTab/demo/index.html (100%) rename {templates/ice-design/blocks => blocks}/InfoDisplayTab/demo/index.js (100%) rename {templates/ice-design/blocks => blocks}/InfoDisplayTab/mock/info-display-tab.json (100%) rename {templates/ice-design/blocks => blocks}/InfoDisplayTab/package.json (100%) rename {templates/ice-design/blocks => blocks}/InfoDisplayTab/src/InfoDisplayTab.jsx (100%) rename {templates/ice-design/blocks/InfoDisplayTab/lib => blocks/InfoDisplayTab/src}/InfoDisplayTab.scss (100%) rename {templates/ice-design/blocks => blocks}/InfoDisplayTab/src/index.js (100%) rename {templates/ice-design/blocks => blocks}/InfoDisplayTable/.editorconfig (100%) rename {templates/ice-design/blocks => blocks}/InfoDisplayTable/.eslintignore (100%) rename {templates/ice-design/blocks => blocks}/InfoDisplayTable/.eslintrc (100%) rename {templates/ice-design/blocks => blocks}/InfoDisplayTable/.gitignore (100%) rename {templates/ice-design/blocks => blocks}/InfoDisplayTable/README.md (100%) rename {templates/ice-design/blocks => blocks}/InfoDisplayTable/demo/index.html (100%) rename {templates/ice-design/blocks => blocks}/InfoDisplayTable/demo/index.js (100%) rename {templates/ice-design/blocks => blocks}/InfoDisplayTable/mock/api.json (100%) rename {templates/ice-design/blocks => blocks}/InfoDisplayTable/package.json (100%) rename {templates/ice-design/blocks => blocks}/InfoDisplayTable/src/InfoDisplayTable.jsx (100%) rename {templates/ice-design/blocks/InfoDisplayTable/lib => blocks/InfoDisplayTable/src}/InfoDisplayTable.scss (100%) rename {templates/ice-design/blocks => blocks}/InfoDisplayTable/src/index.js (100%) rename {templates/ice-design/blocks => blocks}/JoinUs/.editorconfig (100%) rename {templates/ice-design/blocks => blocks}/JoinUs/.eslintignore (100%) rename {templates/ice-design/blocks => blocks}/JoinUs/.eslintrc (100%) rename {templates/ice-design/blocks => blocks}/JoinUs/.gitignore (100%) rename {templates/ice-design/blocks => blocks}/JoinUs/README.md (100%) rename {templates/ice-design/blocks => blocks}/JoinUs/demo/index.html (100%) rename {templates/ice-design/blocks => blocks}/JoinUs/demo/index.js (100%) rename {templates/ice-design/blocks => blocks}/JoinUs/mock/api.json (100%) rename {templates/ice-design/blocks => blocks}/JoinUs/package.json (100%) rename {templates/ice-design/blocks => blocks}/JoinUs/src/JoinUs.jsx (100%) rename {templates/ice-design/blocks/JoinUs/lib => blocks/JoinUs/src}/JoinUs.scss (100%) rename {templates/ice-design/blocks => blocks}/JoinUs/src/index.js (100%) rename {templates/ice-design/blocks => blocks}/LandingIntroBanner/.editorconfig (100%) rename {templates/ice-design/blocks => blocks}/LandingIntroBanner/.eslintignore (100%) rename {templates/ice-design/blocks => blocks}/LandingIntroBanner/.eslintrc (100%) rename {templates/ice-design/blocks => blocks}/LandingIntroBanner/.gitignore (100%) rename {templates/ice-design/blocks => blocks}/LandingIntroBanner/README.md (100%) rename {templates/ice-design/blocks => blocks}/LandingIntroBanner/demo/index.html (100%) rename {templates/ice-design/blocks => blocks}/LandingIntroBanner/demo/index.js (100%) rename {templates/ice-design/blocks => blocks}/LandingIntroBanner/mock/api.json (100%) rename {templates/ice-design/blocks => blocks}/LandingIntroBanner/package.json (100%) rename {templates/ice-design/blocks => blocks}/LandingIntroBanner/src/LandingIntroBanner.jsx (100%) rename {templates/ice-design/blocks/LandingIntroBanner/lib => blocks/LandingIntroBanner/src}/LandingIntroBanner.scss (100%) rename {templates/ice-design/blocks => blocks}/LandingIntroBanner/src/index.js (100%) rename {templates/ice-design/blocks => blocks}/LeftContentDisplay/.editorconfig (100%) rename {templates/ice-design/blocks => blocks}/LeftContentDisplay/.eslintignore (100%) rename {templates/ice-design/blocks => blocks}/LeftContentDisplay/.eslintrc (100%) rename {templates/ice-design/blocks => blocks}/LeftContentDisplay/.gitignore (100%) rename {templates/ice-design/blocks => blocks}/LeftContentDisplay/README.md (100%) rename {templates/ice-design/blocks => blocks}/LeftContentDisplay/demo/index.html (100%) rename {templates/ice-design/blocks => blocks}/LeftContentDisplay/demo/index.js (100%) rename {templates/ice-design/blocks => blocks}/LeftContentDisplay/mock/api.json (100%) rename {templates/ice-design/blocks => blocks}/LeftContentDisplay/package.json (100%) rename {templates/ice-design/blocks => blocks}/LeftContentDisplay/src/LeftContentDisplay.jsx (100%) rename {templates/ice-design/blocks/LeftContentDisplay/lib => blocks/LeftContentDisplay/src}/LeftContentDisplay.scss (100%) rename {templates/ice-design/blocks => blocks}/LeftContentDisplay/src/index.js (100%) rename {templates/ice-design/blocks => blocks}/LiteTable/.editorconfig (100%) rename {templates/ice-design/blocks => blocks}/LiteTable/.eslintignore (100%) rename {templates/ice-design/blocks => blocks}/LiteTable/.eslintrc (100%) rename {templates/ice-design/blocks => blocks}/LiteTable/.gitignore (100%) rename {templates/ice-design/blocks => blocks}/LiteTable/README.md (100%) rename {templates/ice-design/blocks => blocks}/LiteTable/demo/index.html (100%) rename {templates/ice-design/blocks => blocks}/LiteTable/demo/index.js (100%) rename {templates/ice-design/blocks => blocks}/LiteTable/mock/api.json (100%) rename {templates/ice-design/blocks => blocks}/LiteTable/package.json (100%) rename {templates/ice-design/blocks => blocks}/LiteTable/src/LiteTable.jsx (100%) rename {templates/ice-design/blocks/LiteTable/lib => blocks/LiteTable/src}/LiteTable.scss (100%) rename {templates/ice-design/blocks => blocks}/LiteTable/src/index.js (100%) rename {templates/ice-design/blocks => blocks}/MessageList/.editorconfig (100%) rename {templates/ice-design/blocks => blocks}/MessageList/.eslintignore (100%) rename {templates/ice-design/blocks => blocks}/MessageList/.eslintrc (100%) rename {templates/ice-design/blocks => blocks}/MessageList/.gitignore (100%) rename {templates/ice-design/blocks => blocks}/MessageList/README.md (100%) rename {templates/ice-design/blocks => blocks}/MessageList/demo/index.html (100%) rename {templates/ice-design/blocks => blocks}/MessageList/demo/index.js (100%) rename {templates/ice-design/blocks => blocks}/MessageList/mock/api.json (100%) rename {templates/ice-design/blocks => blocks}/MessageList/package.json (100%) rename {templates/ice-design/blocks => blocks}/MessageList/src/MessageList.jsx (100%) rename {templates/ice-design/blocks/MessageList/lib => blocks/MessageList/src}/MessageList.scss (100%) rename {templates/ice-design/blocks => blocks}/MessageList/src/index.js (100%) rename {templates/ice-design/blocks => blocks}/MonacoEditor/.editorconfig (100%) rename {templates/ice-design/blocks => blocks}/MonacoEditor/.eslintignore (100%) rename {templates/ice-design/blocks => blocks}/MonacoEditor/.eslintrc (100%) rename {templates/ice-design/blocks => blocks}/MonacoEditor/.gitignore (100%) rename {templates/ice-design/blocks => blocks}/MonacoEditor/README.md (100%) rename {templates/ice-design/blocks => blocks}/MonacoEditor/demo/index.html (100%) rename {templates/ice-design/blocks => blocks}/MonacoEditor/demo/index.js (100%) rename {templates/ice-design/blocks => blocks}/MonacoEditor/mock/api.json (100%) rename {templates/ice-design/blocks => blocks}/MonacoEditor/package.json (100%) rename {templates/ice-design/blocks => blocks}/MonacoEditor/src/MonacoEditor.jsx (100%) rename {templates/ice-design/blocks/MonacoEditor/lib => blocks/MonacoEditor/src}/MonacoEditor.scss (100%) rename {templates/ice-design/blocks => blocks}/MonacoEditor/src/index.js (100%) rename {templates/ice-design/blocks => blocks}/NotPermission/.editorconfig (100%) rename {templates/ice-design/blocks => blocks}/NotPermission/.eslintignore (100%) rename {templates/ice-design/blocks => blocks}/NotPermission/.eslintrc (100%) rename {templates/ice-design/blocks => blocks}/NotPermission/.gitignore (100%) rename {templates/ice-design/blocks => blocks}/NotPermission/README.md (100%) rename {templates/ice-design/blocks => blocks}/NotPermission/demo/index.html (100%) rename {templates/ice-design/blocks => blocks}/NotPermission/demo/index.js (100%) rename {templates/ice-design/blocks => blocks}/NotPermission/mock/api.json (100%) rename {templates/ice-design/blocks => blocks}/NotPermission/package.json (100%) rename {templates/ice-design/blocks => blocks}/NotPermission/src/NotPermission.jsx (100%) rename {templates/ice-design/blocks/NotPermission/lib => blocks/NotPermission/src}/NotPermission.scss (100%) rename {templates/ice-design/blocks => blocks}/NotPermission/src/index.js (100%) rename {templates/ice-design/blocks => blocks}/OperationTable/.editorconfig (100%) rename {templates/ice-design/blocks => blocks}/OperationTable/.eslintignore (100%) rename {templates/ice-design/blocks => blocks}/OperationTable/.eslintrc (100%) rename {templates/ice-design/blocks => blocks}/OperationTable/.gitignore (100%) rename {templates/ice-design/blocks => blocks}/OperationTable/README.md (100%) rename {templates/ice-design/blocks => blocks}/OperationTable/demo/index.html (100%) rename {templates/ice-design/blocks => blocks}/OperationTable/demo/index.js (100%) rename {templates/ice-design/blocks => blocks}/OperationTable/mock/operation-table-list.json (100%) rename {templates/ice-design/blocks => blocks}/OperationTable/mock/update-table-item.json (100%) rename {templates/ice-design/blocks => blocks}/OperationTable/package.json (100%) rename {templates/ice-design/blocks => blocks}/OperationTable/src/DialogDecorator.js (100%) rename {templates/ice-design/blocks => blocks}/OperationTable/src/EditorInfoDialog.jsx (100%) rename {templates/ice-design/blocks => blocks}/OperationTable/src/OperationTable.jsx (100%) rename {templates/ice-design/blocks/OperationTable/lib => blocks/OperationTable/src}/OperationTable.scss (100%) rename {templates/ice-design/blocks => blocks}/OperationTable/src/index.js (100%) rename {templates/ice-design/blocks => blocks}/OrderList/.editorconfig (100%) rename {templates/ice-design/blocks => blocks}/OrderList/.eslintignore (100%) rename {templates/ice-design/blocks => blocks}/OrderList/.eslintrc (100%) rename {templates/ice-design/blocks => blocks}/OrderList/.gitignore (100%) rename {templates/ice-design/blocks => blocks}/OrderList/README.md (100%) rename {templates/ice-design/blocks => blocks}/OrderList/demo/index.html (100%) rename {templates/ice-design/blocks => blocks}/OrderList/demo/index.js (100%) rename {templates/ice-design/blocks => blocks}/OrderList/mock/order-list.json (100%) rename {templates/ice-design/blocks => blocks}/OrderList/package.json (100%) rename {templates/ice-design/blocks => blocks}/OrderList/src/OrderList.jsx (100%) rename {templates/ice-design/blocks/OrderList/lib => blocks/OrderList/src}/OrderList.scss (100%) rename {templates/ice-design/blocks => blocks}/OrderList/src/index.js (100%) rename {templates/ice-design/blocks => blocks}/OurTeam/.editorconfig (100%) rename {templates/ice-design/blocks => blocks}/OurTeam/.eslintignore (100%) rename {templates/ice-design/blocks => blocks}/OurTeam/.eslintrc (100%) rename {templates/ice-design/blocks => blocks}/OurTeam/.gitignore (100%) rename {templates/ice-design/blocks => blocks}/OurTeam/README.md (100%) rename {templates/ice-design/blocks => blocks}/OurTeam/demo/index.html (100%) rename {templates/ice-design/blocks => blocks}/OurTeam/demo/index.js (100%) rename {templates/ice-design/blocks => blocks}/OurTeam/mock/api.json (100%) rename {templates/ice-design/blocks => blocks}/OurTeam/package.json (100%) rename {templates/ice-design/blocks => blocks}/OurTeam/src/OurTeam.jsx (100%) rename {templates/ice-design/blocks/OurTeam/lib => blocks/OurTeam/src}/OurTeam.scss (100%) rename {templates/ice-design/blocks => blocks}/OurTeam/src/index.js (100%) rename {templates/ice-design/blocks => blocks}/PictureTextList/.editorconfig (100%) rename {templates/ice-design/blocks => blocks}/PictureTextList/.eslintignore (100%) rename {templates/ice-design/blocks => blocks}/PictureTextList/.eslintrc (100%) rename {templates/ice-design/blocks => blocks}/PictureTextList/.gitignore (100%) rename {templates/ice-design/blocks => blocks}/PictureTextList/README.md (100%) rename {templates/ice-design/blocks => blocks}/PictureTextList/demo/index.html (100%) rename {templates/ice-design/blocks => blocks}/PictureTextList/demo/index.js (100%) rename {templates/ice-design/blocks => blocks}/PictureTextList/mock/api.json (100%) rename {templates/ice-design/blocks => blocks}/PictureTextList/package.json (100%) rename {templates/ice-design/blocks => blocks}/PictureTextList/src/PictureTextList.jsx (100%) rename {templates/ice-design/blocks/PictureTextList/lib => blocks/PictureTextList/src}/PictureTextList.scss (100%) rename {templates/ice-design/blocks => blocks}/PictureTextList/src/SingleItem/SingleItem.jsx (100%) rename {templates/ice-design/blocks/PictureTextList/lib => blocks/PictureTextList/src}/SingleItem/SingleItem.scss (100%) rename {templates/ice-design/blocks => blocks}/PictureTextList/src/SingleItem/index.js (100%) rename {templates/ice-design/blocks => blocks}/PictureTextList/src/index.js (100%) rename {templates/ice-design/blocks => blocks}/PieDoughnutChart/.editorconfig (100%) rename {templates/ice-design/blocks => blocks}/PieDoughnutChart/.eslintignore (100%) rename {templates/ice-design/blocks => blocks}/PieDoughnutChart/.eslintrc (100%) rename {templates/ice-design/blocks => blocks}/PieDoughnutChart/.gitignore (100%) rename {templates/ice-design/blocks => blocks}/PieDoughnutChart/README.md (100%) rename {templates/ice-design/blocks => blocks}/PieDoughnutChart/demo/index.html (100%) rename {templates/ice-design/blocks => blocks}/PieDoughnutChart/demo/index.js (100%) rename {templates/ice-design/blocks => blocks}/PieDoughnutChart/mock/api.json (100%) rename {templates/ice-design/blocks => blocks}/PieDoughnutChart/package.json (100%) rename {templates/ice-design/blocks => blocks}/PieDoughnutChart/src/PieDoughnutChart.jsx (100%) rename {templates/ice-design/blocks/PieDoughnutChart/lib => blocks/PieDoughnutChart/src}/PieDoughnutChart.scss (100%) rename {templates/ice-design/blocks => blocks}/PieDoughnutChart/src/index.js (100%) rename {templates/ice-design/blocks => blocks}/PriceCard/.editorconfig (100%) rename {templates/ice-design/blocks => blocks}/PriceCard/.eslintignore (100%) rename {templates/ice-design/blocks => blocks}/PriceCard/.eslintrc (100%) rename {templates/ice-design/blocks => blocks}/PriceCard/.gitignore (100%) rename {templates/ice-design/blocks => blocks}/PriceCard/README.md (100%) rename {templates/ice-design/blocks => blocks}/PriceCard/demo/index.html (100%) rename {templates/ice-design/blocks => blocks}/PriceCard/demo/index.js (100%) rename {templates/ice-design/blocks => blocks}/PriceCard/mock/api.json (100%) rename {templates/ice-design/blocks => blocks}/PriceCard/package.json (100%) rename {templates/ice-design/blocks => blocks}/PriceCard/src/PriceCard.jsx (100%) rename {templates/ice-design/blocks/PriceCard/lib => blocks/PriceCard/src}/PriceCard.scss (100%) rename {templates/ice-design/blocks => blocks}/PriceCard/src/index.js (100%) rename {templates/ice-design/blocks => blocks}/PriceInfo/.editorconfig (100%) rename {templates/ice-design/blocks => blocks}/PriceInfo/.eslintignore (100%) rename {templates/ice-design/blocks => blocks}/PriceInfo/.eslintrc (100%) rename {templates/ice-design/blocks => blocks}/PriceInfo/.gitignore (100%) rename {templates/ice-design/blocks => blocks}/PriceInfo/README.md (100%) rename {templates/ice-design/blocks => blocks}/PriceInfo/demo/index.html (100%) rename {templates/ice-design/blocks => blocks}/PriceInfo/demo/index.js (100%) rename {templates/ice-design/blocks => blocks}/PriceInfo/mock/api.json (100%) rename {templates/ice-design/blocks => blocks}/PriceInfo/package.json (100%) rename {templates/ice-design/blocks => blocks}/PriceInfo/src/PriceInfo.jsx (100%) rename {templates/ice-design/blocks/PriceInfo/lib => blocks/PriceInfo/src}/PriceInfo.scss (100%) rename {templates/ice-design/blocks => blocks}/PriceInfo/src/index.js (100%) rename {templates/ice-design/blocks => blocks}/PrivateMessageForm/.editorconfig (100%) rename {templates/ice-design/blocks => blocks}/PrivateMessageForm/.eslintignore (100%) rename {templates/ice-design/blocks => blocks}/PrivateMessageForm/.eslintrc (100%) rename {templates/ice-design/blocks => blocks}/PrivateMessageForm/.gitignore (100%) rename {templates/ice-design/blocks => blocks}/PrivateMessageForm/README.md (100%) rename {templates/ice-design/blocks => blocks}/PrivateMessageForm/demo/index.html (100%) rename {templates/ice-design/blocks => blocks}/PrivateMessageForm/demo/index.js (100%) rename {templates/ice-design/blocks => blocks}/PrivateMessageForm/mock/api.json (100%) rename {templates/ice-design/blocks => blocks}/PrivateMessageForm/package.json (100%) rename {templates/ice-design/blocks => blocks}/PrivateMessageForm/src/PrivateMessageForm.jsx (100%) rename {templates/ice-design/blocks/PrivateMessageForm/lib => blocks/PrivateMessageForm/src}/PrivateMessageForm.scss (100%) rename {templates/ice-design/blocks => blocks}/PrivateMessageForm/src/index.js (100%) rename {templates/ice-design/blocks => blocks}/ProductInfo/.editorconfig (100%) rename {templates/ice-design/blocks => blocks}/ProductInfo/.eslintignore (100%) rename {templates/ice-design/blocks => blocks}/ProductInfo/.eslintrc (100%) rename {templates/ice-design/blocks => blocks}/ProductInfo/.gitignore (100%) rename {templates/ice-design/blocks => blocks}/ProductInfo/README.md (100%) rename {templates/ice-design/blocks => blocks}/ProductInfo/demo/index.html (100%) rename {templates/ice-design/blocks => blocks}/ProductInfo/demo/index.js (100%) rename {templates/ice-design/blocks => blocks}/ProductInfo/mock/api.json (100%) rename {templates/ice-design/blocks => blocks}/ProductInfo/package.json (100%) rename {templates/ice-design/blocks => blocks}/ProductInfo/src/ProductInfo.jsx (100%) rename {templates/ice-design/blocks/ProductInfo/lib => blocks/ProductInfo/src}/ProductInfo.scss (100%) rename {templates/ice-design/blocks => blocks}/ProductInfo/src/index.js (100%) rename {templates/ice-design/blocks => blocks}/ProgressTable/.editorconfig (100%) rename {templates/ice-design/blocks => blocks}/ProgressTable/.eslintignore (100%) rename {templates/ice-design/blocks => blocks}/ProgressTable/.eslintrc (100%) rename {templates/ice-design/blocks => blocks}/ProgressTable/.gitignore (100%) rename {templates/ice-design/blocks => blocks}/ProgressTable/README.md (100%) rename {templates/ice-design/blocks => blocks}/ProgressTable/demo/index.html (100%) rename {templates/ice-design/blocks => blocks}/ProgressTable/demo/index.js (100%) rename {templates/ice-design/blocks => blocks}/ProgressTable/mock/api.json (100%) rename {templates/ice-design/blocks => blocks}/ProgressTable/package.json (100%) rename {templates/ice-design/blocks => blocks}/ProgressTable/src/ProgressTable.jsx (100%) rename {templates/ice-design/blocks/ProgressTable/lib => blocks/ProgressTable/src}/ProgressTable.scss (100%) rename {templates/ice-design/blocks => blocks}/ProgressTable/src/index.js (100%) rename {templates/ice-design/blocks => blocks}/RegisterForm/.editorconfig (100%) rename {templates/ice-design/blocks => blocks}/RegisterForm/.eslintignore (100%) rename {templates/ice-design/blocks => blocks}/RegisterForm/.eslintrc (100%) rename {templates/ice-design/blocks => blocks}/RegisterForm/.gitignore (100%) rename {templates/ice-design/blocks => blocks}/RegisterForm/README.md (100%) rename {templates/ice-design/blocks => blocks}/RegisterForm/demo/index.html (100%) rename {templates/ice-design/blocks => blocks}/RegisterForm/demo/index.js (100%) rename {templates/ice-design/blocks => blocks}/RegisterForm/mock/api.json (100%) rename {templates/ice-design/blocks => blocks}/RegisterForm/package.json (100%) rename {templates/ice-design/blocks => blocks}/RegisterForm/src/RegisterForm.jsx (100%) rename {templates/ice-design/blocks/RegisterForm/lib => blocks/RegisterForm/src}/RegisterForm.scss (100%) rename {templates/ice-design/blocks => blocks}/RegisterForm/src/index.js (100%) rename {templates/ice-design/blocks => blocks}/RightContentDisplay/.editorconfig (100%) rename {templates/ice-design/blocks => blocks}/RightContentDisplay/.eslintignore (100%) rename {templates/ice-design/blocks => blocks}/RightContentDisplay/.eslintrc (100%) rename {templates/ice-design/blocks => blocks}/RightContentDisplay/.gitignore (100%) rename {templates/ice-design/blocks => blocks}/RightContentDisplay/README.md (100%) rename {templates/ice-design/blocks => blocks}/RightContentDisplay/demo/index.html (100%) rename {templates/ice-design/blocks => blocks}/RightContentDisplay/demo/index.js (100%) rename {templates/ice-design/blocks => blocks}/RightContentDisplay/mock/api.json (100%) rename {templates/ice-design/blocks => blocks}/RightContentDisplay/package.json (100%) rename {templates/ice-design/blocks => blocks}/RightContentDisplay/src/RightContentDisplay.jsx (100%) rename {templates/ice-design/blocks/RightContentDisplay/lib => blocks/RightContentDisplay/src}/RightContentDisplay.scss (100%) rename {templates/ice-design/blocks => blocks}/RightContentDisplay/src/index.js (100%) rename {templates/ice-design/blocks => blocks}/SelectableTable/.editorconfig (100%) rename {templates/ice-design/blocks => blocks}/SelectableTable/.eslintignore (100%) rename {templates/ice-design/blocks => blocks}/SelectableTable/.eslintrc (100%) rename {templates/ice-design/blocks => blocks}/SelectableTable/.gitignore (100%) rename {templates/ice-design/blocks => blocks}/SelectableTable/README.md (100%) rename {templates/ice-design/blocks => blocks}/SelectableTable/demo/index.html (100%) rename {templates/ice-design/blocks => blocks}/SelectableTable/demo/index.js (100%) rename {templates/ice-design/blocks => blocks}/SelectableTable/mock/api.json (100%) rename {templates/ice-design/blocks => blocks}/SelectableTable/package.json (100%) rename {templates/ice-design/blocks => blocks}/SelectableTable/src/SelectableTable.jsx (100%) rename {templates/ice-design/blocks/SelectableTable/lib => blocks/SelectableTable/src}/SelectableTable.scss (100%) rename {templates/ice-design/blocks => blocks}/SelectableTable/src/index.js (100%) rename {templates/ice-design/blocks => blocks}/SignupForm/.editorconfig (100%) rename {templates/ice-design/blocks => blocks}/SignupForm/.eslintignore (100%) rename {templates/ice-design/blocks => blocks}/SignupForm/.eslintrc (100%) rename {templates/ice-design/blocks => blocks}/SignupForm/.gitignore (100%) rename {templates/ice-design/blocks => blocks}/SignupForm/README.md (100%) rename {templates/ice-design/blocks => blocks}/SignupForm/demo/index.html (100%) rename {templates/ice-design/blocks => blocks}/SignupForm/demo/index.js (100%) rename {templates/ice-design/blocks => blocks}/SignupForm/mock/api.json (100%) rename {templates/ice-design/blocks => blocks}/SignupForm/package.json (100%) rename {templates/ice-design/blocks => blocks}/SignupForm/src/SignupForm.jsx (100%) rename {templates/ice-design/blocks/SignupForm/lib => blocks/SignupForm/src}/SignupForm.scss (100%) rename {templates/ice-design/blocks => blocks}/SignupForm/src/index.js (100%) rename {templates/ice-design/blocks => blocks}/SimpleFluencyForm/.editorconfig (100%) rename {templates/ice-design/blocks => blocks}/SimpleFluencyForm/.eslintignore (100%) rename {templates/ice-design/blocks => blocks}/SimpleFluencyForm/.eslintrc (100%) rename {templates/ice-design/blocks => blocks}/SimpleFluencyForm/.gitignore (100%) rename {templates/ice-design/blocks => blocks}/SimpleFluencyForm/README.md (100%) rename {templates/ice-design/blocks => blocks}/SimpleFluencyForm/demo/index.html (100%) rename {templates/ice-design/blocks => blocks}/SimpleFluencyForm/demo/index.js (100%) rename {templates/ice-design/blocks => blocks}/SimpleFluencyForm/mock/api.json (100%) rename {templates/ice-design/blocks => blocks}/SimpleFluencyForm/package.json (100%) rename {templates/ice-design/blocks => blocks}/SimpleFluencyForm/src/SimpleFluencyForm.jsx (100%) rename {templates/ice-design/blocks/SimpleFluencyForm/lib => blocks/SimpleFluencyForm/src}/SimpleFluencyForm.scss (100%) rename {templates/ice-design/blocks => blocks}/SimpleFluencyForm/src/index.js (100%) rename {templates/ice-design/blocks => blocks}/SimpleFormDialog/.editorconfig (100%) rename {templates/ice-design/blocks => blocks}/SimpleFormDialog/.eslintignore (100%) rename {templates/ice-design/blocks => blocks}/SimpleFormDialog/.eslintrc (100%) rename {templates/ice-design/blocks => blocks}/SimpleFormDialog/.gitignore (100%) rename {templates/ice-design/blocks => blocks}/SimpleFormDialog/README.md (100%) rename {templates/ice-design/blocks => blocks}/SimpleFormDialog/demo/index.html (100%) rename {templates/ice-design/blocks => blocks}/SimpleFormDialog/demo/index.js (100%) rename {templates/ice-design/blocks => blocks}/SimpleFormDialog/mock/api.json (100%) rename {templates/ice-design/blocks => blocks}/SimpleFormDialog/package.json (100%) rename {templates/ice-design/blocks => blocks}/SimpleFormDialog/src/CreateFuncDialog.js (100%) rename {templates/ice-design/blocks => blocks}/SimpleFormDialog/src/SimpleFormDialog.jsx (100%) rename {templates/ice-design/blocks/SimpleFormDialog/lib => blocks/SimpleFormDialog/src}/SimpleFormDialog.scss (100%) rename {templates/ice-design/blocks => blocks}/SimpleFormDialog/src/index.js (100%) rename {templates/ice-design/blocks => blocks}/SimpleTable/.editorconfig (100%) rename {templates/ice-design/blocks => blocks}/SimpleTable/.eslintignore (100%) rename {templates/ice-design/blocks => blocks}/SimpleTable/.eslintrc (100%) rename {templates/ice-design/blocks => blocks}/SimpleTable/.gitignore (100%) rename {templates/ice-design/blocks => blocks}/SimpleTable/README.md (100%) rename {templates/ice-design/blocks => blocks}/SimpleTable/demo/index.html (100%) rename {templates/ice-design/blocks => blocks}/SimpleTable/demo/index.js (100%) rename {templates/ice-design/blocks => blocks}/SimpleTable/mock/simple-table-list.json (100%) rename {templates/ice-design/blocks => blocks}/SimpleTable/package.json (100%) rename {templates/ice-design/blocks => blocks}/SimpleTable/src/SimpleTable.jsx (100%) rename {templates/ice-design/blocks/SimpleTable/lib => blocks/SimpleTable/src}/SimpleTable.scss (100%) rename {templates/ice-design/blocks => blocks}/SimpleTable/src/index.js (100%) rename {templates/ice-design/blocks => blocks}/SimpleTestimonial/.editorconfig (100%) rename {templates/ice-design/blocks => blocks}/SimpleTestimonial/.eslintignore (100%) rename {templates/ice-design/blocks => blocks}/SimpleTestimonial/.eslintrc (100%) rename {templates/ice-design/blocks => blocks}/SimpleTestimonial/.gitignore (100%) rename {templates/ice-design/blocks => blocks}/SimpleTestimonial/README.md (100%) rename {templates/ice-design/blocks => blocks}/SimpleTestimonial/demo/index.html (100%) rename {templates/ice-design/blocks => blocks}/SimpleTestimonial/demo/index.js (100%) rename {templates/ice-design/blocks => blocks}/SimpleTestimonial/mock/api.json (100%) rename {templates/ice-design/blocks => blocks}/SimpleTestimonial/package.json (100%) rename {templates/ice-design/blocks => blocks}/SimpleTestimonial/src/SimpleTestimonial.jsx (100%) rename {templates/ice-design/blocks/SimpleTestimonial/lib => blocks/SimpleTestimonial/src}/SimpleTestimonial.scss (100%) rename {templates/ice-design/blocks => blocks}/SimpleTestimonial/src/index.js (100%) rename {templates/ice-design/blocks => blocks}/SortCardList/.editorconfig (100%) rename {templates/ice-design/blocks => blocks}/SortCardList/.eslintignore (100%) rename {templates/ice-design/blocks => blocks}/SortCardList/.eslintrc (100%) rename {templates/ice-design/blocks => blocks}/SortCardList/.gitignore (100%) rename {templates/ice-design/blocks => blocks}/SortCardList/README.md (100%) rename {templates/ice-design/blocks => blocks}/SortCardList/demo/index.html (100%) rename {templates/ice-design/blocks => blocks}/SortCardList/demo/index.js (100%) rename {templates/ice-design/blocks => blocks}/SortCardList/mock/api.json (100%) rename {templates/ice-design/blocks => blocks}/SortCardList/package.json (100%) rename {templates/ice-design/blocks => blocks}/SortCardList/src/SortCardList.jsx (100%) rename {templates/ice-design/blocks => blocks}/SortCardList/src/SortCardList.scss (100%) rename {templates/ice-design/blocks => blocks}/SortCardList/src/index.js (100%) rename {templates/ice-design/blocks/SortableTable => blocks/StatisticalCard}/.editorconfig (100%) rename {templates/ice-design/blocks/SortableTable => blocks/StatisticalCard}/.eslintignore (100%) rename {templates/ice-design/blocks/SortableTable => blocks/StatisticalCard}/.eslintrc (100%) rename {templates/ice-design/blocks/SortableTable => blocks/StatisticalCard}/.gitignore (100%) rename {templates/ice-design/blocks => blocks}/StatisticalCard/README.md (100%) rename {templates/ice-design/blocks/SortableTable => blocks/StatisticalCard}/demo/index.html (100%) rename {templates/ice-design/blocks => blocks}/StatisticalCard/demo/index.js (100%) rename {templates/ice-design/blocks/SortableTable => blocks/StatisticalCard}/mock/api.json (100%) rename {templates/ice-design/blocks => blocks}/StatisticalCard/package.json (100%) rename {templates/ice-design/blocks => blocks}/StatisticalCard/src/StatisticalCard.jsx (100%) rename {templates/ice-design/blocks => blocks}/StatisticalCard/src/StatisticalCard.scss (100%) rename {templates/ice-design/blocks => blocks}/StatisticalCard/src/index.js (100%) rename {templates/ice-design/blocks/StatisticalCard => blocks/Subscribe}/.editorconfig (100%) rename {templates/ice-design/blocks/StatisticalCard => blocks/Subscribe}/.eslintignore (100%) rename {templates/ice-design/blocks/StatisticalCard => blocks/Subscribe}/.eslintrc (100%) rename {templates/ice-design/blocks/StatisticalCard => blocks/Subscribe}/.gitignore (100%) rename {templates/ice-design/blocks => blocks}/Subscribe/README.md (100%) rename {templates/ice-design/blocks/StatisticalCard => blocks/Subscribe}/demo/index.html (100%) rename {templates/ice-design/blocks/SortableTable => blocks/Subscribe}/demo/index.js (100%) rename {templates/ice-design/blocks/StatisticalCard => blocks/Subscribe}/mock/api.json (100%) rename {templates/ice-design/blocks => blocks}/Subscribe/package.json (100%) rename {templates/ice-design/blocks => blocks}/Subscribe/src/Subscribe.jsx (100%) rename {templates/ice-design/blocks => blocks}/Subscribe/src/Subscribe.scss (100%) rename {templates/ice-design/blocks => blocks}/Subscribe/src/index.js (100%) rename {templates/ice-design/blocks/Subscribe => blocks/SuccessDetail}/.editorconfig (100%) rename {templates/ice-design/blocks/Subscribe => blocks/SuccessDetail}/.eslintignore (100%) rename {templates/ice-design/blocks/Subscribe => blocks/SuccessDetail}/.eslintrc (100%) rename {templates/ice-design/blocks/Subscribe => blocks/SuccessDetail}/.gitignore (100%) rename {templates/ice-design/blocks => blocks}/SuccessDetail/README.md (100%) rename {templates/ice-design/blocks/Subscribe => blocks/SuccessDetail}/demo/index.html (100%) rename {templates/ice-design/blocks => blocks}/SuccessDetail/demo/index.js (100%) rename {templates/ice-design/blocks/Subscribe => blocks/SuccessDetail}/mock/api.json (100%) rename {templates/ice-design/blocks => blocks}/SuccessDetail/package.json (100%) rename {templates/ice-design/blocks => blocks}/SuccessDetail/src/SuccessDetail.jsx (100%) rename {templates/ice-design/blocks => blocks}/SuccessDetail/src/SuccessDetail.scss (100%) rename {templates/ice-design/blocks => blocks}/SuccessDetail/src/index.js (100%) rename {templates/ice-design/blocks/SuccessDetail => blocks/SuccessDialog}/.editorconfig (100%) rename {templates/ice-design/blocks/SuccessDetail => blocks/SuccessDialog}/.eslintignore (100%) rename {templates/ice-design/blocks/SuccessDetail => blocks/SuccessDialog}/.eslintrc (100%) rename {templates/ice-design/blocks/SuccessDetail => blocks/SuccessDialog}/.gitignore (100%) rename {templates/ice-design/blocks => blocks}/SuccessDialog/README.md (100%) rename {templates/ice-design/blocks/SuccessDetail => blocks/SuccessDialog}/demo/index.html (100%) rename {templates/ice-design/blocks => blocks}/SuccessDialog/demo/index.js (100%) rename {templates/ice-design/blocks/SuccessDetail => blocks/SuccessDialog}/mock/api.json (100%) rename {templates/ice-design/blocks => blocks}/SuccessDialog/package.json (100%) rename {templates/ice-design/blocks => blocks}/SuccessDialog/src/CreateFuncDialog.js (100%) rename {templates/ice-design/blocks => blocks}/SuccessDialog/src/SuccessDialog.jsx (100%) rename {templates/ice-design/blocks => blocks}/SuccessDialog/src/SuccessDialog.scss (100%) rename {templates/ice-design/blocks => blocks}/SuccessDialog/src/index.js (100%) rename {templates/ice-design/blocks/SuccessDialog => blocks/SystemNoticeList}/.editorconfig (100%) rename {templates/ice-design/blocks/SuccessDialog => blocks/SystemNoticeList}/.eslintignore (100%) rename {templates/ice-design/blocks/SuccessDialog => blocks/SystemNoticeList}/.eslintrc (100%) rename {templates/ice-design/blocks/SuccessDialog => blocks/SystemNoticeList}/.gitignore (100%) rename {templates/ice-design/blocks => blocks}/SystemNoticeList/README.md (100%) rename {templates/ice-design/blocks/SuccessDialog => blocks/SystemNoticeList}/demo/index.html (100%) rename {templates/ice-design/blocks => blocks}/SystemNoticeList/demo/index.js (100%) rename {templates/ice-design/blocks/SuccessDialog => blocks/SystemNoticeList}/mock/api.json (100%) rename {templates/ice-design/blocks => blocks}/SystemNoticeList/package.json (100%) rename {templates/ice-design/blocks => blocks}/SystemNoticeList/src/SystemNoticeList.jsx (100%) rename {templates/ice-design/blocks => blocks}/SystemNoticeList/src/SystemNoticeList.scss (100%) rename {templates/ice-design/blocks => blocks}/SystemNoticeList/src/index.js (100%) rename {templates/ice-design/blocks/SystemNoticeList => blocks/TabArticle}/.editorconfig (100%) rename {templates/ice-design/blocks/SystemNoticeList => blocks/TabArticle}/.eslintignore (100%) rename {templates/ice-design/blocks/SystemNoticeList => blocks/TabArticle}/.eslintrc (100%) rename {templates/ice-design/blocks => blocks}/TabArticle/.gitignore (100%) rename {templates/ice-design/blocks => blocks}/TabArticle/README.md (100%) rename {templates/ice-design/blocks/SystemNoticeList => blocks/TabArticle}/demo/index.html (100%) rename {templates/ice-design/blocks/Subscribe => blocks/TabArticle}/demo/index.js (100%) rename {templates/ice-design/blocks/SystemNoticeList => blocks/TabArticle}/mock/api.json (100%) rename {templates/ice-design/blocks => blocks}/TabArticle/package.json (100%) rename {templates/ice-design/blocks => blocks}/TabArticle/src/ArticleList/ArticleList.jsx (100%) rename {templates/ice-design/blocks => blocks}/TabArticle/src/ArticleList/ArticleList.scss (100%) rename {templates/ice-design/blocks => blocks}/TabArticle/src/ArticleList/index.js (100%) rename {templates/ice-design/blocks => blocks}/TabArticle/src/TabArticle.jsx (100%) rename {templates/ice-design/blocks => blocks}/TabArticle/src/TabArticle.scss (100%) rename {templates/ice-design/blocks => blocks}/TabArticle/src/index.js (100%) rename {templates/ice-design/blocks/TabArticle => blocks/TabDialog}/.editorconfig (100%) rename {templates/ice-design/blocks/TabArticle => blocks/TabDialog}/.eslintignore (100%) rename {templates/ice-design/blocks/TabArticle => blocks/TabDialog}/.eslintrc (100%) rename {templates/ice-design/blocks => blocks}/TabDialog/.gitignore (100%) rename {templates/ice-design/blocks => blocks}/TabDialog/README.md (100%) rename {templates/ice-design/blocks/TabArticle => blocks/TabDialog}/demo/index.html (100%) rename {templates/ice-design/blocks => blocks}/TabDialog/demo/index.js (100%) rename {templates/ice-design/blocks/TabArticle => blocks/TabDialog}/mock/api.json (100%) rename {templates/ice-design/blocks => blocks}/TabDialog/package.json (100%) rename {templates/ice-design/blocks => blocks}/TabDialog/src/CreateFuncDialog.js (100%) rename {templates/ice-design/blocks => blocks}/TabDialog/src/TabDialog.jsx (100%) rename {templates/ice-design/blocks => blocks}/TabDialog/src/TabDialog.scss (100%) rename {templates/ice-design/blocks => blocks}/TabDialog/src/index.js (100%) rename {templates/ice-design/blocks/TabDialog => blocks/TagMessageList}/.editorconfig (100%) rename {templates/ice-design/blocks/TabDialog => blocks/TagMessageList}/.eslintignore (100%) rename {templates/ice-design/blocks/TabDialog => blocks/TagMessageList}/.eslintrc (100%) rename {templates/ice-design/blocks => blocks}/TagMessageList/.gitignore (100%) rename {templates/ice-design/blocks => blocks}/TagMessageList/README.md (100%) rename {templates/ice-design/blocks/TabDialog => blocks/TagMessageList}/demo/index.html (100%) rename {templates/ice-design/blocks/TabArticle => blocks/TagMessageList}/demo/index.js (100%) rename {templates/ice-design/blocks/TabDialog => blocks/TagMessageList}/mock/api.json (100%) rename {templates/ice-design/blocks => blocks}/TagMessageList/package.json (100%) rename {templates/ice-design/blocks => blocks}/TagMessageList/src/TagMessageList.jsx (100%) rename {templates/ice-design/blocks => blocks}/TagMessageList/src/TagMessageList.scss (100%) rename {templates/ice-design/blocks => blocks}/TagMessageList/src/index.js (100%) rename {templates/ice-design/blocks/TagMessageList => blocks/TeamDisplay}/.editorconfig (100%) rename {templates/ice-design/blocks/TagMessageList => blocks/TeamDisplay}/.eslintignore (100%) rename {templates/ice-design/blocks/TagMessageList => blocks/TeamDisplay}/.eslintrc (100%) rename {templates/ice-design/blocks => blocks}/TeamDisplay/.gitignore (100%) rename {templates/ice-design/blocks => blocks}/TeamDisplay/README.md (100%) rename {templates/ice-design/blocks/TagMessageList => blocks/TeamDisplay}/demo/index.html (100%) rename {templates/ice-design/blocks/TagMessageList => blocks/TeamDisplay}/demo/index.js (100%) rename {templates/ice-design/blocks/TagMessageList => blocks/TeamDisplay}/mock/api.json (100%) rename {templates/ice-design/blocks => blocks}/TeamDisplay/package.json (100%) rename {templates/ice-design/blocks => blocks}/TeamDisplay/src/TeamDisplay.jsx (100%) rename {templates/ice-design/blocks => blocks}/TeamDisplay/src/TeamDisplay.scss (100%) rename {templates/ice-design/blocks => blocks}/TeamDisplay/src/index.js (100%) rename {templates/ice-design/blocks/TeamDisplay => blocks/TermsInfo}/.editorconfig (100%) rename {templates/ice-design/blocks/TeamDisplay => blocks/TermsInfo}/.eslintignore (100%) rename {templates/ice-design/blocks/TeamDisplay => blocks/TermsInfo}/.eslintrc (100%) rename {templates/ice-design/blocks/SystemNoticeList => blocks/TermsInfo}/.gitignore (100%) rename {templates/ice-design/blocks => blocks}/TermsInfo/README.md (100%) rename {templates/ice-design/blocks/TeamDisplay => blocks/TermsInfo}/demo/index.html (100%) rename {templates/ice-design/blocks => blocks}/TermsInfo/demo/index.js (100%) rename {templates/ice-design/blocks/TeamDisplay => blocks/TermsInfo}/mock/api.json (100%) rename {templates/ice-design/blocks => blocks}/TermsInfo/package.json (100%) rename {templates/ice-design/blocks => blocks}/TermsInfo/src/TermsInfo.jsx (100%) rename {templates/ice-design/blocks => blocks}/TermsInfo/src/TermsInfo.scss (100%) rename {templates/ice-design/blocks => blocks}/TermsInfo/src/index.js (100%) rename {templates/ice-design/blocks/TermsInfo => blocks/Testimonial}/.editorconfig (100%) rename {templates/ice-design/blocks/TermsInfo => blocks/Testimonial}/.eslintignore (100%) rename {templates/ice-design/blocks/TermsInfo => blocks/Testimonial}/.eslintrc (100%) rename {templates/ice-design/blocks => blocks}/Testimonial/.gitignore (100%) rename {templates/ice-design/blocks => blocks}/Testimonial/README.md (100%) rename {templates/ice-design/blocks/TermsInfo => blocks/Testimonial}/demo/index.html (100%) rename {templates/ice-design/blocks => blocks}/Testimonial/demo/index.js (100%) rename {templates/ice-design/blocks/TermsInfo => blocks/Testimonial}/mock/api.json (100%) rename {templates/ice-design/blocks => blocks}/Testimonial/package.json (100%) rename {templates/ice-design/blocks => blocks}/Testimonial/src/Testimonial.jsx (100%) rename {templates/ice-design/blocks/Testimonial/lib => blocks/Testimonial/src}/Testimonial.scss (100%) rename {templates/ice-design/blocks => blocks}/Testimonial/src/index.js (100%) rename {templates/ice-design/blocks/Testimonial => blocks/TestimonialCard}/.editorconfig (100%) rename {templates/ice-design/blocks/Testimonial => blocks/TestimonialCard}/.eslintignore (100%) rename {templates/ice-design/blocks/Testimonial => blocks/TestimonialCard}/.eslintrc (100%) rename {templates/ice-design/blocks => blocks}/TestimonialCard/.gitignore (100%) rename {templates/ice-design/blocks => blocks}/TestimonialCard/README.md (100%) rename {templates/ice-design/blocks/Testimonial => blocks/TestimonialCard}/demo/index.html (100%) rename {templates/ice-design/blocks => blocks}/TestimonialCard/demo/index.js (100%) rename {templates/ice-design/blocks/Testimonial => blocks/TestimonialCard}/mock/api.json (100%) rename {templates/ice-design/blocks => blocks}/TestimonialCard/package.json (100%) rename {templates/ice-design/blocks => blocks}/TestimonialCard/src/TestimonialCard.jsx (100%) rename {templates/ice-design/blocks => blocks}/TestimonialCard/src/TestimonialCard.scss (100%) rename {templates/ice-design/blocks => blocks}/TestimonialCard/src/index.js (100%) rename {templates/ice-design/blocks/TestimonialCard => blocks/TextCard}/.editorconfig (100%) rename {templates/ice-design/blocks/TestimonialCard => blocks/TextCard}/.eslintignore (100%) rename {templates/ice-design/blocks/TestimonialCard => blocks/TextCard}/.eslintrc (100%) rename {templates/ice-design/blocks/TermsInfo => blocks/TextCard}/.gitignore (100%) rename {templates/ice-design/blocks => blocks}/TextCard/README.md (100%) rename {templates/ice-design/blocks/TestimonialCard => blocks/TextCard}/demo/index.html (100%) rename {templates/ice-design/blocks/TeamDisplay => blocks/TextCard}/demo/index.js (100%) rename {templates/ice-design/blocks/TestimonialCard => blocks/TextCard}/mock/api.json (100%) rename {templates/ice-design/blocks => blocks}/TextCard/package.json (100%) rename {templates/ice-design/blocks => blocks}/TextCard/src/TextCard.jsx (100%) rename {templates/ice-design/blocks => blocks}/TextCard/src/TextCard.scss (100%) rename {templates/ice-design/blocks => blocks}/TextCard/src/index.js (100%) rename {templates/ice-design/blocks/TextCard => blocks/TextSearchList}/.editorconfig (100%) rename {templates/ice-design/blocks => blocks}/TextSearchList/.eslintignore (100%) rename {templates/ice-design/blocks => blocks}/TextSearchList/.eslintrc (100%) rename {templates/ice-design/blocks/TextCard => blocks/TextSearchList}/.gitignore (100%) rename {templates/ice-design/blocks => blocks}/TextSearchList/README.md (100%) rename {templates/ice-design/blocks/TextCard => blocks/TextSearchList}/demo/index.html (100%) rename {templates/ice-design/blocks => blocks}/TextSearchList/demo/index.js (100%) rename {templates/ice-design/blocks/TextCard => blocks/TextSearchList}/mock/api.json (100%) rename {templates/ice-design/blocks => blocks}/TextSearchList/package.json (100%) rename {templates/ice-design/blocks => blocks}/TextSearchList/src/ArticleList/ArticleList.jsx (100%) rename {templates/ice-design/blocks/TextSearchList/lib => blocks/TextSearchList/src}/ArticleList/ArticleList.scss (100%) rename {templates/ice-design/blocks => blocks}/TextSearchList/src/ArticleList/index.js (100%) rename {templates/ice-design/blocks => blocks}/TextSearchList/src/Filter/Filter.jsx (100%) rename {templates/ice-design/blocks => blocks}/TextSearchList/src/Filter/index.js (100%) rename {templates/ice-design/blocks => blocks}/TextSearchList/src/TextSearchList.jsx (100%) rename {templates/ice-design/blocks/TextSearchList/lib => blocks/TextSearchList/src}/TextSearchList.scss (100%) rename {templates/ice-design/blocks => blocks}/TextSearchList/src/index.js (100%) rename {templates/ice-design/blocks/TextSearchList => blocks/TimeFilterTable}/.editorconfig (100%) rename {templates/ice-design/blocks => blocks}/TimeFilterTable/.eslintignore (100%) rename {templates/ice-design/blocks => blocks}/TimeFilterTable/.eslintrc (100%) rename {templates/ice-design/blocks => blocks}/TimeFilterTable/.gitignore (100%) rename {templates/ice-design/blocks => blocks}/TimeFilterTable/README.md (100%) rename {templates/ice-design/blocks/TextSearchList => blocks/TimeFilterTable}/demo/index.html (100%) rename {templates/ice-design/blocks => blocks}/TimeFilterTable/demo/index.js (100%) rename {templates/ice-design/blocks => blocks}/TimeFilterTable/mock/time-filter-table.json (100%) rename {templates/ice-design/blocks => blocks}/TimeFilterTable/package.json (100%) rename {templates/ice-design/blocks => blocks}/TimeFilterTable/src/TimeFilterTable.jsx (100%) rename {templates/ice-design/blocks => blocks}/TimeFilterTable/src/TimeFilterTable.scss (100%) rename {templates/ice-design/blocks => blocks}/TimeFilterTable/src/index.js (100%) rename {templates/ice-design/blocks/TimeFilterTable => blocks/TopicCard}/.editorconfig (100%) rename {templates/ice-design/blocks => blocks}/TopicCard/.eslintignore (100%) rename {templates/ice-design/blocks => blocks}/TopicCard/.eslintrc (100%) rename {templates/ice-design/blocks/TextSearchList => blocks/TopicCard}/.gitignore (100%) rename {templates/ice-design/blocks => blocks}/TopicCard/README.md (100%) rename {templates/ice-design/blocks => blocks}/TopicCard/demo/index.html (100%) rename {templates/ice-design/blocks => blocks}/TopicCard/demo/index.js (100%) rename {templates/ice-design/blocks/TextSearchList => blocks/TopicCard}/mock/api.json (100%) rename {templates/ice-design/blocks => blocks}/TopicCard/package.json (100%) rename {templates/ice-design/blocks => blocks}/TopicCard/src/TopicCard.jsx (100%) rename {templates/ice-design/blocks/TopicCard/lib => blocks/TopicCard/src}/TopicCard.scss (100%) rename {templates/ice-design/blocks => blocks}/TopicCard/src/index.js (100%) rename {templates/ice-design/blocks/TopicCard => blocks/TreeCardList}/.editorconfig (100%) rename {templates/ice-design/blocks/TextCard => blocks/TreeCardList}/.eslintignore (100%) rename {templates/ice-design/blocks/TextCard => blocks/TreeCardList}/.eslintrc (100%) rename {templates/ice-design/blocks/TopicCard => blocks/TreeCardList}/.gitignore (100%) rename {templates/ice-design/blocks => blocks}/TreeCardList/README.md (100%) rename {templates/ice-design/blocks/TimeFilterTable => blocks/TreeCardList}/demo/index.html (100%) rename {templates/ice-design/blocks/TextCard => blocks/TreeCardList}/demo/index.js (100%) rename {templates/ice-design/blocks/TopicCard => blocks/TreeCardList}/mock/api.json (100%) rename {templates/ice-design/blocks => blocks}/TreeCardList/package.json (100%) rename {templates/ice-design/blocks => blocks}/TreeCardList/src/TreeCardList.jsx (100%) rename {templates/ice-design/blocks => blocks}/TreeCardList/src/TreeCardList.scss (100%) rename {templates/ice-design/blocks => blocks}/TreeCardList/src/index.js (100%) create mode 100644 layouts/.gitignore rename {templates/ice-design/blocks/TreeCardList => layouts/AsideLayout}/.editorconfig (100%) rename {templates/ice-design/layouts => layouts}/AsideLayout/.eslintignore (100%) rename {templates/ice-design/layouts => layouts}/AsideLayout/.eslintrc (100%) rename {templates/ice-design/layouts => layouts}/AsideLayout/.gitignore (100%) rename {templates/ice-design/layouts => layouts}/AsideLayout/README.md (100%) rename {templates/ice-design/layouts => layouts}/AsideLayout/demo/index.html (100%) rename {templates/ice-design/layouts => layouts}/AsideLayout/demo/index.js (100%) rename {templates/ice-design/layouts => layouts}/AsideLayout/mock/api.json (100%) rename {templates/ice-design/layouts => layouts}/AsideLayout/package.json (100%) rename {templates/ice-design/layouts => layouts}/AsideLayout/src/Layout.jsx (100%) rename {templates/ice-design/layouts => layouts}/AsideLayout/src/Layout.scss (100%) rename {templates/ice-design/layouts => layouts}/AsideLayout/src/__components_Footer__.jsx (100%) rename {templates/ice-design/layouts => layouts}/AsideLayout/src/__components_Header__.jsx (100%) rename {templates/ice-design/layouts => layouts}/AsideLayout/src/__components_Logo__.jsx (100%) rename {templates/ice-design/layouts => layouts}/AsideLayout/src/__config_navs__.json (100%) rename {templates/ice-design/layouts => layouts}/AsideLayout/src/index.js (100%) rename {templates/ice-design/layouts/AsideLayout => layouts/BasicLayout}/.editorconfig (100%) rename {templates/ice-design/layouts => layouts}/BasicLayout/.eslintignore (100%) rename {templates/ice-design/layouts => layouts}/BasicLayout/.eslintrc (100%) rename {templates/ice-design/layouts => layouts}/BasicLayout/.gitignore (100%) rename {templates/ice-design/layouts => layouts}/BasicLayout/README.md (100%) rename {templates/ice-design/layouts => layouts}/BasicLayout/demo/index.html (100%) rename {templates/ice-design/layouts => layouts}/BasicLayout/demo/index.js (100%) rename {templates/ice-design/layouts => layouts}/BasicLayout/mock/api.json (100%) rename {templates/ice-design/layouts => layouts}/BasicLayout/package.json (100%) rename {templates/ice-design/layouts => layouts}/BasicLayout/src/Layout.jsx (100%) rename {templates/ice-design/layouts => layouts}/BasicLayout/src/Layout.scss (100%) rename {templates/ice-design/layouts => layouts}/BasicLayout/src/__components_Footer__.jsx (100%) rename {templates/ice-design/layouts => layouts}/BasicLayout/src/__components_Header__.jsx (100%) rename {templates/ice-design/layouts => layouts}/BasicLayout/src/__components_Logo__.jsx (100%) rename {templates/ice-design/layouts => layouts}/BasicLayout/src/__config_navs__.json (100%) rename {templates/ice-design/layouts => layouts}/BasicLayout/src/index.js (100%) rename {templates/ice-design/layouts/BasicLayout => layouts/LandingLayout}/.editorconfig (100%) rename {templates/ice-design/layouts => layouts}/LandingLayout/.eslintignore (100%) rename {templates/ice-design/layouts => layouts}/LandingLayout/.eslintrc (100%) rename {templates/ice-design/layouts => layouts}/LandingLayout/.gitignore (100%) rename {templates/ice-design/layouts => layouts}/LandingLayout/README.md (100%) rename {templates/ice-design/layouts => layouts}/LandingLayout/demo/index.html (100%) rename {templates/ice-design/layouts => layouts}/LandingLayout/demo/index.js (100%) rename {templates/ice-design/layouts => layouts}/LandingLayout/mock/api.json (100%) rename {templates/ice-design/layouts => layouts}/LandingLayout/package.json (100%) rename {templates/ice-design/layouts => layouts}/LandingLayout/src/Layout.jsx (100%) rename {templates/ice-design/layouts => layouts}/LandingLayout/src/Layout.scss (100%) rename {templates/ice-design/layouts => layouts}/LandingLayout/src/__components_Footer__.jsx (100%) rename {templates/ice-design/layouts => layouts}/LandingLayout/src/__components_Header__.jsx (100%) rename {templates/ice-design/layouts => layouts}/LandingLayout/src/__components_Logo__.jsx (100%) rename {templates/ice-design/layouts => layouts}/LandingLayout/src/__config_navs__.json (100%) rename {templates/ice-design/layouts => layouts}/LandingLayout/src/index.js (100%) rename {templates/ice-design/layouts/LandingLayout => layouts/ScalableAsideLayout}/.editorconfig (100%) rename {templates/ice-design/layouts => layouts}/ScalableAsideLayout/.eslintignore (100%) rename {templates/ice-design/layouts => layouts}/ScalableAsideLayout/.eslintrc (100%) rename {templates/ice-design/layouts => layouts}/ScalableAsideLayout/.gitignore (100%) rename {templates/ice-design/layouts => layouts}/ScalableAsideLayout/README.md (100%) rename {templates/ice-design/layouts => layouts}/ScalableAsideLayout/demo/index.html (100%) rename {templates/ice-design/layouts => layouts}/ScalableAsideLayout/demo/index.js (100%) rename {templates/ice-design/blocks/TreeCardList => layouts/ScalableAsideLayout}/mock/api.json (100%) rename {templates/ice-design/layouts => layouts}/ScalableAsideLayout/package.json (100%) rename {templates/ice-design/layouts => layouts}/ScalableAsideLayout/src/Layout.jsx (100%) rename {templates/ice-design/layouts => layouts}/ScalableAsideLayout/src/Layout.scss (100%) rename {templates/ice-design/layouts => layouts}/ScalableAsideLayout/src/__components_Footer__.jsx (100%) rename {templates/ice-design/layouts => layouts}/ScalableAsideLayout/src/__components_Header__.jsx (100%) rename {templates/ice-design/layouts => layouts}/ScalableAsideLayout/src/__components_Logo__.jsx (100%) rename {templates/ice-design/layouts => layouts}/ScalableAsideLayout/src/__config_navs__.json (100%) rename {templates/ice-design/layouts => layouts}/ScalableAsideLayout/src/index.js (100%) delete mode 100644 templates/ice-design/blocks/AreaStackChart/lib/AreaStackChart.js delete mode 100644 templates/ice-design/blocks/AreaStackChart/lib/index.js delete mode 100644 templates/ice-design/blocks/AreaStackChart/src/AreaStackChart.scss delete mode 100644 templates/ice-design/blocks/BasicException/lib/BasicException.js delete mode 100644 templates/ice-design/blocks/BasicException/lib/index.js delete mode 100644 templates/ice-design/blocks/BasicException/src/BasicException.scss delete mode 100644 templates/ice-design/blocks/BasicNotFound/lib/BasicNotFound.js delete mode 100644 templates/ice-design/blocks/BasicNotFound/lib/index.js delete mode 100644 templates/ice-design/blocks/BasicNotFound/src/BasicNotFound.scss delete mode 100644 templates/ice-design/blocks/BasicTab/lib/BasicTab.js delete mode 100644 templates/ice-design/blocks/BasicTab/lib/index.js delete mode 100644 templates/ice-design/blocks/BasicTab/src/BasicTab.scss delete mode 100644 templates/ice-design/blocks/ChartArea/lib/ChartArea.js delete mode 100644 templates/ice-design/blocks/ChartArea/lib/index.js delete mode 100644 templates/ice-design/blocks/ChartArea/src/ChartArea.scss delete mode 100644 templates/ice-design/blocks/ChartBar/lib/ChartBar.js delete mode 100644 templates/ice-design/blocks/ChartBar/lib/index.js delete mode 100644 templates/ice-design/blocks/ChartBar/src/ChartBar.scss delete mode 100644 templates/ice-design/blocks/ChartBox/lib/ChartBox.js delete mode 100644 templates/ice-design/blocks/ChartBox/lib/index.js delete mode 100644 templates/ice-design/blocks/ChartBox/src/ChartBox.scss delete mode 100644 templates/ice-design/blocks/ChartBubbleImage/lib/ChartBubbleImage.js delete mode 100644 templates/ice-design/blocks/ChartBubbleImage/lib/index.js delete mode 100644 templates/ice-design/blocks/ChartBubbleImage/src/ChartBubbleImage.scss delete mode 100644 templates/ice-design/blocks/ChartFacet/lib/ChartFacet.js delete mode 100644 templates/ice-design/blocks/ChartFacet/lib/index.js delete mode 100644 templates/ice-design/blocks/ChartFacet/src/ChartFacet.scss delete mode 100644 templates/ice-design/blocks/ChartFunnel/lib/ChartFunnel.js delete mode 100644 templates/ice-design/blocks/ChartFunnel/lib/index.js delete mode 100644 templates/ice-design/blocks/ChartFunnel/src/ChartFunnel.scss delete mode 100644 templates/ice-design/blocks/ChartGauge/lib/ChartGauge.js delete mode 100644 templates/ice-design/blocks/ChartGauge/lib/index.js delete mode 100644 templates/ice-design/blocks/ChartGauge/src/ChartGauge.scss delete mode 100644 templates/ice-design/blocks/ChartHeatMap/lib/ChartHeatMap.js delete mode 100644 templates/ice-design/blocks/ChartHeatMap/lib/index.js delete mode 100644 templates/ice-design/blocks/ChartHeatMap/src/ChartHeatMap.scss delete mode 100644 templates/ice-design/blocks/ChartPie/lib/ChartPie.js delete mode 100644 templates/ice-design/blocks/ChartPie/lib/index.js delete mode 100644 templates/ice-design/blocks/ChartPie/src/ChartPie.scss delete mode 100644 templates/ice-design/blocks/ChartPoint/lib/ChartPoint.js delete mode 100644 templates/ice-design/blocks/ChartPoint/lib/index.js delete mode 100644 templates/ice-design/blocks/ChartPoint/src/ChartPoint.scss delete mode 100644 templates/ice-design/blocks/ChartRadar/lib/ChartRadar.js delete mode 100644 templates/ice-design/blocks/ChartRadar/lib/index.js delete mode 100644 templates/ice-design/blocks/ChartRadar/src/ChartRadar.scss delete mode 100644 templates/ice-design/blocks/ChartRelation/lib/ChartRelation.js delete mode 100644 templates/ice-design/blocks/ChartRelation/lib/index.js delete mode 100644 templates/ice-design/blocks/ChartRelation/src/ChartRelation.scss delete mode 100644 templates/ice-design/blocks/ChartStock/lib/ChartStock.js delete mode 100644 templates/ice-design/blocks/ChartStock/lib/index.js delete mode 100644 templates/ice-design/blocks/ChartStock/src/ChartStock.scss delete mode 100644 templates/ice-design/blocks/ChartTypeLine/lib/ChartTypeLine.js delete mode 100644 templates/ice-design/blocks/ChartTypeLine/lib/index.js delete mode 100644 templates/ice-design/blocks/ChartTypeLine/src/ChartTypeLine.scss delete mode 100644 templates/ice-design/blocks/EntryCard/lib/EntryCard.js delete mode 100644 templates/ice-design/blocks/EntryCard/lib/index.js delete mode 100644 templates/ice-design/blocks/EntryCard/src/EntryCard.scss delete mode 100644 templates/ice-design/blocks/FailureDetail/lib/FailureDetail.js delete mode 100644 templates/ice-design/blocks/FailureDetail/lib/FailureDetail.scss delete mode 100644 templates/ice-design/blocks/FailureDetail/lib/index.js delete mode 100644 templates/ice-design/blocks/InfoDisplayTab/lib/InfoDisplayTab.js delete mode 100644 templates/ice-design/blocks/InfoDisplayTab/lib/index.js delete mode 100644 templates/ice-design/blocks/InfoDisplayTab/src/InfoDisplayTab.scss delete mode 100644 templates/ice-design/blocks/InfoDisplayTable/lib/InfoDisplayTable.js delete mode 100644 templates/ice-design/blocks/InfoDisplayTable/lib/index.js delete mode 100644 templates/ice-design/blocks/InfoDisplayTable/src/InfoDisplayTable.scss delete mode 100644 templates/ice-design/blocks/JoinUs/lib/JoinUs.js delete mode 100644 templates/ice-design/blocks/JoinUs/lib/index.js delete mode 100644 templates/ice-design/blocks/JoinUs/src/JoinUs.scss delete mode 100644 templates/ice-design/blocks/LandingIntroBanner/lib/LandingIntroBanner.js delete mode 100644 templates/ice-design/blocks/LandingIntroBanner/lib/index.js delete mode 100644 templates/ice-design/blocks/LandingIntroBanner/src/LandingIntroBanner.scss delete mode 100644 templates/ice-design/blocks/LeftContentDisplay/lib/LeftContentDisplay.js delete mode 100644 templates/ice-design/blocks/LeftContentDisplay/lib/index.js delete mode 100644 templates/ice-design/blocks/LeftContentDisplay/src/LeftContentDisplay.scss delete mode 100644 templates/ice-design/blocks/LiteTable/lib/LiteTable.js delete mode 100644 templates/ice-design/blocks/LiteTable/lib/index.js delete mode 100644 templates/ice-design/blocks/LiteTable/src/LiteTable.scss delete mode 100644 templates/ice-design/blocks/MessageList/lib/MessageList.js delete mode 100644 templates/ice-design/blocks/MessageList/lib/index.js delete mode 100644 templates/ice-design/blocks/MessageList/src/MessageList.scss delete mode 100644 templates/ice-design/blocks/MonacoEditor/lib/MonacoEditor.js delete mode 100644 templates/ice-design/blocks/MonacoEditor/lib/index.js delete mode 100644 templates/ice-design/blocks/MonacoEditor/src/MonacoEditor.scss delete mode 100644 templates/ice-design/blocks/NotPermission/lib/NotPermission.js delete mode 100644 templates/ice-design/blocks/NotPermission/lib/index.js delete mode 100644 templates/ice-design/blocks/NotPermission/src/NotPermission.scss delete mode 100644 templates/ice-design/blocks/OperationTable/lib/DialogDecorator.js delete mode 100644 templates/ice-design/blocks/OperationTable/lib/EditorInfoDialog.js delete mode 100644 templates/ice-design/blocks/OperationTable/lib/OperationTable.js delete mode 100644 templates/ice-design/blocks/OperationTable/lib/index.js delete mode 100644 templates/ice-design/blocks/OperationTable/src/OperationTable.scss delete mode 100644 templates/ice-design/blocks/OrderList/lib/OrderList.js delete mode 100644 templates/ice-design/blocks/OrderList/lib/index.js delete mode 100644 templates/ice-design/blocks/OrderList/src/OrderList.scss delete mode 100644 templates/ice-design/blocks/OurTeam/lib/OurTeam.js delete mode 100644 templates/ice-design/blocks/OurTeam/lib/index.js delete mode 100644 templates/ice-design/blocks/OurTeam/src/OurTeam.scss delete mode 100644 templates/ice-design/blocks/PictureTextList/lib/PictureTextList.js delete mode 100644 templates/ice-design/blocks/PictureTextList/lib/SingleItem/SingleItem.js delete mode 100644 templates/ice-design/blocks/PictureTextList/lib/SingleItem/index.js delete mode 100644 templates/ice-design/blocks/PictureTextList/lib/index.js delete mode 100644 templates/ice-design/blocks/PictureTextList/src/PictureTextList.scss delete mode 100644 templates/ice-design/blocks/PictureTextList/src/SingleItem/SingleItem.scss delete mode 100644 templates/ice-design/blocks/PieDoughnutChart/lib/PieDoughnutChart.js delete mode 100644 templates/ice-design/blocks/PieDoughnutChart/lib/index.js delete mode 100644 templates/ice-design/blocks/PieDoughnutChart/src/PieDoughnutChart.scss delete mode 100644 templates/ice-design/blocks/PriceCard/lib/PriceCard.js delete mode 100644 templates/ice-design/blocks/PriceCard/lib/index.js delete mode 100644 templates/ice-design/blocks/PriceCard/src/PriceCard.scss delete mode 100644 templates/ice-design/blocks/PriceInfo/lib/PriceInfo.js delete mode 100644 templates/ice-design/blocks/PriceInfo/lib/index.js delete mode 100644 templates/ice-design/blocks/PriceInfo/src/PriceInfo.scss delete mode 100644 templates/ice-design/blocks/PrivateMessageForm/lib/PrivateMessageForm.js delete mode 100644 templates/ice-design/blocks/PrivateMessageForm/lib/index.js delete mode 100644 templates/ice-design/blocks/PrivateMessageForm/src/PrivateMessageForm.scss delete mode 100644 templates/ice-design/blocks/ProductInfo/lib/ProductInfo.js delete mode 100644 templates/ice-design/blocks/ProductInfo/lib/index.js delete mode 100644 templates/ice-design/blocks/ProductInfo/src/ProductInfo.scss delete mode 100644 templates/ice-design/blocks/ProgressTable/lib/ProgressTable.js delete mode 100644 templates/ice-design/blocks/ProgressTable/lib/index.js delete mode 100644 templates/ice-design/blocks/ProgressTable/src/ProgressTable.scss delete mode 100644 templates/ice-design/blocks/RegisterForm/lib/RegisterForm.js delete mode 100644 templates/ice-design/blocks/RegisterForm/lib/index.js delete mode 100644 templates/ice-design/blocks/RegisterForm/src/RegisterForm.scss delete mode 100644 templates/ice-design/blocks/RightContentDisplay/lib/RightContentDisplay.js delete mode 100644 templates/ice-design/blocks/RightContentDisplay/lib/index.js delete mode 100644 templates/ice-design/blocks/RightContentDisplay/src/RightContentDisplay.scss delete mode 100644 templates/ice-design/blocks/SelectableTable/lib/SelectableTable.js delete mode 100644 templates/ice-design/blocks/SelectableTable/lib/index.js delete mode 100644 templates/ice-design/blocks/SelectableTable/src/SelectableTable.scss delete mode 100644 templates/ice-design/blocks/SignupForm/lib/SignupForm.js delete mode 100644 templates/ice-design/blocks/SignupForm/lib/index.js delete mode 100644 templates/ice-design/blocks/SignupForm/src/SignupForm.scss delete mode 100644 templates/ice-design/blocks/SimpleFluencyForm/lib/SimpleFluencyForm.js delete mode 100644 templates/ice-design/blocks/SimpleFluencyForm/lib/index.js delete mode 100644 templates/ice-design/blocks/SimpleFluencyForm/src/SimpleFluencyForm.scss delete mode 100644 templates/ice-design/blocks/SimpleFormDialog/lib/CreateFuncDialog.js delete mode 100644 templates/ice-design/blocks/SimpleFormDialog/lib/SimpleFormDialog.js delete mode 100644 templates/ice-design/blocks/SimpleFormDialog/lib/index.js delete mode 100644 templates/ice-design/blocks/SimpleFormDialog/src/SimpleFormDialog.scss delete mode 100644 templates/ice-design/blocks/SimpleTable/lib/SimpleTable.js delete mode 100644 templates/ice-design/blocks/SimpleTable/lib/index.js delete mode 100644 templates/ice-design/blocks/SimpleTable/src/SimpleTable.scss delete mode 100644 templates/ice-design/blocks/SimpleTestimonial/lib/SimpleTestimonial.js delete mode 100644 templates/ice-design/blocks/SimpleTestimonial/lib/index.js delete mode 100644 templates/ice-design/blocks/SimpleTestimonial/src/SimpleTestimonial.scss delete mode 100644 templates/ice-design/blocks/SortableTable/README.md delete mode 100644 templates/ice-design/blocks/SortableTable/lib/SortableTable.js delete mode 100644 templates/ice-design/blocks/SortableTable/lib/SortableTable.scss delete mode 100644 templates/ice-design/blocks/SortableTable/lib/index.js delete mode 100644 templates/ice-design/blocks/SortableTable/package.json delete mode 100644 templates/ice-design/blocks/SortableTable/src/SortableTable.jsx delete mode 100644 templates/ice-design/blocks/SortableTable/src/SortableTable.scss delete mode 100644 templates/ice-design/blocks/SortableTable/src/index.js delete mode 100644 templates/ice-design/blocks/Testimonial/lib/Testimonial.js delete mode 100644 templates/ice-design/blocks/Testimonial/lib/index.js delete mode 100644 templates/ice-design/blocks/Testimonial/src/Testimonial.scss delete mode 100644 templates/ice-design/blocks/TextSearchList/lib/ArticleList/ArticleList.js delete mode 100644 templates/ice-design/blocks/TextSearchList/lib/ArticleList/index.js delete mode 100644 templates/ice-design/blocks/TextSearchList/lib/Filter/Filter.js delete mode 100644 templates/ice-design/blocks/TextSearchList/lib/Filter/index.js delete mode 100644 templates/ice-design/blocks/TextSearchList/lib/TextSearchList.js delete mode 100644 templates/ice-design/blocks/TextSearchList/lib/index.js delete mode 100644 templates/ice-design/blocks/TextSearchList/src/ArticleList/ArticleList.scss delete mode 100644 templates/ice-design/blocks/TextSearchList/src/TextSearchList.scss delete mode 100644 templates/ice-design/blocks/TopicCard/lib/TopicCard.js delete mode 100644 templates/ice-design/blocks/TopicCard/lib/index.js delete mode 100644 templates/ice-design/blocks/TopicCard/src/TopicCard.scss delete mode 100644 templates/ice-design/blocks/TreeCardList/.eslintignore delete mode 100644 templates/ice-design/blocks/TreeCardList/.eslintrc delete mode 100644 templates/ice-design/blocks/TreeCardList/.gitignore delete mode 100644 templates/ice-design/blocks/TreeCardList/demo/index.html delete mode 100644 templates/ice-design/blocks/TreeCardList/demo/index.js delete mode 100644 templates/ice-design/layouts/ScalableAsideLayout/.editorconfig delete mode 100644 templates/ice-design/layouts/ScalableAsideLayout/mock/api.json diff --git a/templates/ice-design/.gitignore b/blocks/.gitignore similarity index 100% rename from templates/ice-design/.gitignore rename to blocks/.gitignore diff --git a/templates/ice-design/blocks/ApplicationProgress/.editorconfig b/blocks/ApplicationProgress/.editorconfig similarity index 100% rename from templates/ice-design/blocks/ApplicationProgress/.editorconfig rename to blocks/ApplicationProgress/.editorconfig diff --git a/templates/ice-design/blocks/ApplicationProgress/.eslintignore b/blocks/ApplicationProgress/.eslintignore similarity index 100% rename from templates/ice-design/blocks/ApplicationProgress/.eslintignore rename to blocks/ApplicationProgress/.eslintignore diff --git a/templates/ice-design/blocks/ApplicationProgress/.eslintrc b/blocks/ApplicationProgress/.eslintrc similarity index 100% rename from templates/ice-design/blocks/ApplicationProgress/.eslintrc rename to blocks/ApplicationProgress/.eslintrc diff --git a/templates/ice-design/blocks/ApplicationProgress/.gitignore b/blocks/ApplicationProgress/.gitignore similarity index 100% rename from templates/ice-design/blocks/ApplicationProgress/.gitignore rename to blocks/ApplicationProgress/.gitignore diff --git a/templates/ice-design/blocks/ApplicationProgress/README.md b/blocks/ApplicationProgress/README.md similarity index 100% rename from templates/ice-design/blocks/ApplicationProgress/README.md rename to blocks/ApplicationProgress/README.md diff --git a/templates/ice-design/blocks/ApplicationProgress/demo/index.html b/blocks/ApplicationProgress/demo/index.html similarity index 100% rename from templates/ice-design/blocks/ApplicationProgress/demo/index.html rename to blocks/ApplicationProgress/demo/index.html diff --git a/templates/ice-design/blocks/ApplicationProgress/demo/index.js b/blocks/ApplicationProgress/demo/index.js similarity index 100% rename from templates/ice-design/blocks/ApplicationProgress/demo/index.js rename to blocks/ApplicationProgress/demo/index.js diff --git a/templates/ice-design/blocks/ApplicationProgress/mock/api.json b/blocks/ApplicationProgress/mock/api.json similarity index 100% rename from templates/ice-design/blocks/ApplicationProgress/mock/api.json rename to blocks/ApplicationProgress/mock/api.json diff --git a/templates/ice-design/blocks/ApplicationProgress/package.json b/blocks/ApplicationProgress/package.json similarity index 100% rename from templates/ice-design/blocks/ApplicationProgress/package.json rename to blocks/ApplicationProgress/package.json diff --git a/templates/ice-design/blocks/ApplicationProgress/src/ApplicationProgress.jsx b/blocks/ApplicationProgress/src/ApplicationProgress.jsx similarity index 100% rename from templates/ice-design/blocks/ApplicationProgress/src/ApplicationProgress.jsx rename to blocks/ApplicationProgress/src/ApplicationProgress.jsx diff --git a/templates/ice-design/blocks/ApplicationProgress/src/ApplicationProgress.scss b/blocks/ApplicationProgress/src/ApplicationProgress.scss similarity index 100% rename from templates/ice-design/blocks/ApplicationProgress/src/ApplicationProgress.scss rename to blocks/ApplicationProgress/src/ApplicationProgress.scss diff --git a/templates/ice-design/blocks/ApplicationProgress/src/index.js b/blocks/ApplicationProgress/src/index.js similarity index 100% rename from templates/ice-design/blocks/ApplicationProgress/src/index.js rename to blocks/ApplicationProgress/src/index.js diff --git a/templates/ice-design/blocks/AreaStackChart/.editorconfig b/blocks/AreaStackChart/.editorconfig similarity index 100% rename from templates/ice-design/blocks/AreaStackChart/.editorconfig rename to blocks/AreaStackChart/.editorconfig diff --git a/templates/ice-design/blocks/AreaStackChart/.eslintignore b/blocks/AreaStackChart/.eslintignore similarity index 100% rename from templates/ice-design/blocks/AreaStackChart/.eslintignore rename to blocks/AreaStackChart/.eslintignore diff --git a/templates/ice-design/blocks/AreaStackChart/.eslintrc b/blocks/AreaStackChart/.eslintrc similarity index 100% rename from templates/ice-design/blocks/AreaStackChart/.eslintrc rename to blocks/AreaStackChart/.eslintrc diff --git a/templates/ice-design/blocks/AreaStackChart/.gitignore b/blocks/AreaStackChart/.gitignore similarity index 100% rename from templates/ice-design/blocks/AreaStackChart/.gitignore rename to blocks/AreaStackChart/.gitignore diff --git a/templates/ice-design/blocks/AreaStackChart/README.md b/blocks/AreaStackChart/README.md similarity index 100% rename from templates/ice-design/blocks/AreaStackChart/README.md rename to blocks/AreaStackChart/README.md diff --git a/templates/ice-design/blocks/AreaStackChart/demo/index.html b/blocks/AreaStackChart/demo/index.html similarity index 100% rename from templates/ice-design/blocks/AreaStackChart/demo/index.html rename to blocks/AreaStackChart/demo/index.html diff --git a/templates/ice-design/blocks/AreaStackChart/demo/index.js b/blocks/AreaStackChart/demo/index.js similarity index 100% rename from templates/ice-design/blocks/AreaStackChart/demo/index.js rename to blocks/AreaStackChart/demo/index.js diff --git a/templates/ice-design/blocks/AreaStackChart/mock/api.json b/blocks/AreaStackChart/mock/api.json similarity index 100% rename from templates/ice-design/blocks/AreaStackChart/mock/api.json rename to blocks/AreaStackChart/mock/api.json diff --git a/templates/ice-design/blocks/AreaStackChart/package.json b/blocks/AreaStackChart/package.json similarity index 100% rename from templates/ice-design/blocks/AreaStackChart/package.json rename to blocks/AreaStackChart/package.json diff --git a/templates/ice-design/blocks/AreaStackChart/src/AreaStackChart.jsx b/blocks/AreaStackChart/src/AreaStackChart.jsx similarity index 100% rename from templates/ice-design/blocks/AreaStackChart/src/AreaStackChart.jsx rename to blocks/AreaStackChart/src/AreaStackChart.jsx diff --git a/templates/ice-design/blocks/AreaStackChart/lib/AreaStackChart.scss b/blocks/AreaStackChart/src/AreaStackChart.scss similarity index 100% rename from templates/ice-design/blocks/AreaStackChart/lib/AreaStackChart.scss rename to blocks/AreaStackChart/src/AreaStackChart.scss diff --git a/templates/ice-design/blocks/AreaStackChart/src/index.js b/blocks/AreaStackChart/src/index.js similarity index 100% rename from templates/ice-design/blocks/AreaStackChart/src/index.js rename to blocks/AreaStackChart/src/index.js diff --git a/templates/ice-design/blocks/ArticleList/.editorconfig b/blocks/ArticleList/.editorconfig similarity index 100% rename from templates/ice-design/blocks/ArticleList/.editorconfig rename to blocks/ArticleList/.editorconfig diff --git a/templates/ice-design/blocks/ArticleList/.eslintignore b/blocks/ArticleList/.eslintignore similarity index 100% rename from templates/ice-design/blocks/ArticleList/.eslintignore rename to blocks/ArticleList/.eslintignore diff --git a/templates/ice-design/blocks/ArticleList/.eslintrc b/blocks/ArticleList/.eslintrc similarity index 100% rename from templates/ice-design/blocks/ArticleList/.eslintrc rename to blocks/ArticleList/.eslintrc diff --git a/templates/ice-design/blocks/ArticleList/.gitignore b/blocks/ArticleList/.gitignore similarity index 100% rename from templates/ice-design/blocks/ArticleList/.gitignore rename to blocks/ArticleList/.gitignore diff --git a/templates/ice-design/blocks/ArticleList/README.md b/blocks/ArticleList/README.md similarity index 100% rename from templates/ice-design/blocks/ArticleList/README.md rename to blocks/ArticleList/README.md diff --git a/templates/ice-design/blocks/ArticleList/demo/index.html b/blocks/ArticleList/demo/index.html similarity index 100% rename from templates/ice-design/blocks/ArticleList/demo/index.html rename to blocks/ArticleList/demo/index.html diff --git a/templates/ice-design/blocks/ArticleList/demo/index.js b/blocks/ArticleList/demo/index.js similarity index 100% rename from templates/ice-design/blocks/ArticleList/demo/index.js rename to blocks/ArticleList/demo/index.js diff --git a/templates/ice-design/blocks/ArticleList/mock/api.json b/blocks/ArticleList/mock/api.json similarity index 100% rename from templates/ice-design/blocks/ArticleList/mock/api.json rename to blocks/ArticleList/mock/api.json diff --git a/templates/ice-design/blocks/ArticleList/package.json b/blocks/ArticleList/package.json similarity index 100% rename from templates/ice-design/blocks/ArticleList/package.json rename to blocks/ArticleList/package.json diff --git a/templates/ice-design/blocks/ArticleList/src/ArticleList.jsx b/blocks/ArticleList/src/ArticleList.jsx similarity index 100% rename from templates/ice-design/blocks/ArticleList/src/ArticleList.jsx rename to blocks/ArticleList/src/ArticleList.jsx diff --git a/templates/ice-design/blocks/ArticleList/src/ArticleList.scss b/blocks/ArticleList/src/ArticleList.scss similarity index 100% rename from templates/ice-design/blocks/ArticleList/src/ArticleList.scss rename to blocks/ArticleList/src/ArticleList.scss diff --git a/templates/ice-design/blocks/ArticleList/src/index.js b/blocks/ArticleList/src/index.js similarity index 100% rename from templates/ice-design/blocks/ArticleList/src/index.js rename to blocks/ArticleList/src/index.js diff --git a/templates/ice-design/blocks/BasicDetailInfo/.editorconfig b/blocks/BasicDetailInfo/.editorconfig similarity index 100% rename from templates/ice-design/blocks/BasicDetailInfo/.editorconfig rename to blocks/BasicDetailInfo/.editorconfig diff --git a/templates/ice-design/blocks/BasicDetailInfo/.eslintignore b/blocks/BasicDetailInfo/.eslintignore similarity index 100% rename from templates/ice-design/blocks/BasicDetailInfo/.eslintignore rename to blocks/BasicDetailInfo/.eslintignore diff --git a/templates/ice-design/blocks/BasicDetailInfo/.eslintrc b/blocks/BasicDetailInfo/.eslintrc similarity index 100% rename from templates/ice-design/blocks/BasicDetailInfo/.eslintrc rename to blocks/BasicDetailInfo/.eslintrc diff --git a/templates/ice-design/blocks/BasicDetailInfo/.gitignore b/blocks/BasicDetailInfo/.gitignore similarity index 100% rename from templates/ice-design/blocks/BasicDetailInfo/.gitignore rename to blocks/BasicDetailInfo/.gitignore diff --git a/templates/ice-design/blocks/BasicDetailInfo/README.md b/blocks/BasicDetailInfo/README.md similarity index 100% rename from templates/ice-design/blocks/BasicDetailInfo/README.md rename to blocks/BasicDetailInfo/README.md diff --git a/templates/ice-design/blocks/BasicDetailInfo/demo/index.html b/blocks/BasicDetailInfo/demo/index.html similarity index 100% rename from templates/ice-design/blocks/BasicDetailInfo/demo/index.html rename to blocks/BasicDetailInfo/demo/index.html diff --git a/templates/ice-design/blocks/BasicDetailInfo/demo/index.js b/blocks/BasicDetailInfo/demo/index.js similarity index 100% rename from templates/ice-design/blocks/BasicDetailInfo/demo/index.js rename to blocks/BasicDetailInfo/demo/index.js diff --git a/templates/ice-design/blocks/BasicDetailInfo/mock/api.json b/blocks/BasicDetailInfo/mock/api.json similarity index 100% rename from templates/ice-design/blocks/BasicDetailInfo/mock/api.json rename to blocks/BasicDetailInfo/mock/api.json diff --git a/templates/ice-design/blocks/BasicDetailInfo/package.json b/blocks/BasicDetailInfo/package.json similarity index 100% rename from templates/ice-design/blocks/BasicDetailInfo/package.json rename to blocks/BasicDetailInfo/package.json diff --git a/templates/ice-design/blocks/BasicDetailInfo/src/BasicDetailInfo.jsx b/blocks/BasicDetailInfo/src/BasicDetailInfo.jsx similarity index 100% rename from templates/ice-design/blocks/BasicDetailInfo/src/BasicDetailInfo.jsx rename to blocks/BasicDetailInfo/src/BasicDetailInfo.jsx diff --git a/templates/ice-design/blocks/BasicDetailInfo/src/BasicDetailInfo.scss b/blocks/BasicDetailInfo/src/BasicDetailInfo.scss similarity index 100% rename from templates/ice-design/blocks/BasicDetailInfo/src/BasicDetailInfo.scss rename to blocks/BasicDetailInfo/src/BasicDetailInfo.scss diff --git a/templates/ice-design/blocks/BasicDetailInfo/src/index.js b/blocks/BasicDetailInfo/src/index.js similarity index 100% rename from templates/ice-design/blocks/BasicDetailInfo/src/index.js rename to blocks/BasicDetailInfo/src/index.js diff --git a/templates/ice-design/blocks/BasicException/.editorconfig b/blocks/BasicException/.editorconfig similarity index 100% rename from templates/ice-design/blocks/BasicException/.editorconfig rename to blocks/BasicException/.editorconfig diff --git a/templates/ice-design/blocks/BasicException/.eslintignore b/blocks/BasicException/.eslintignore similarity index 100% rename from templates/ice-design/blocks/BasicException/.eslintignore rename to blocks/BasicException/.eslintignore diff --git a/templates/ice-design/blocks/BasicException/.eslintrc b/blocks/BasicException/.eslintrc similarity index 100% rename from templates/ice-design/blocks/BasicException/.eslintrc rename to blocks/BasicException/.eslintrc diff --git a/templates/ice-design/blocks/BasicException/.gitignore b/blocks/BasicException/.gitignore similarity index 100% rename from templates/ice-design/blocks/BasicException/.gitignore rename to blocks/BasicException/.gitignore diff --git a/templates/ice-design/blocks/BasicException/README.md b/blocks/BasicException/README.md similarity index 100% rename from templates/ice-design/blocks/BasicException/README.md rename to blocks/BasicException/README.md diff --git a/templates/ice-design/blocks/BasicException/demo/index.html b/blocks/BasicException/demo/index.html similarity index 100% rename from templates/ice-design/blocks/BasicException/demo/index.html rename to blocks/BasicException/demo/index.html diff --git a/templates/ice-design/blocks/BasicException/demo/index.js b/blocks/BasicException/demo/index.js similarity index 100% rename from templates/ice-design/blocks/BasicException/demo/index.js rename to blocks/BasicException/demo/index.js diff --git a/templates/ice-design/blocks/BasicException/mock/api.json b/blocks/BasicException/mock/api.json similarity index 100% rename from templates/ice-design/blocks/BasicException/mock/api.json rename to blocks/BasicException/mock/api.json diff --git a/templates/ice-design/blocks/BasicException/package.json b/blocks/BasicException/package.json similarity index 100% rename from templates/ice-design/blocks/BasicException/package.json rename to blocks/BasicException/package.json diff --git a/templates/ice-design/blocks/BasicException/src/BasicException.jsx b/blocks/BasicException/src/BasicException.jsx similarity index 100% rename from templates/ice-design/blocks/BasicException/src/BasicException.jsx rename to blocks/BasicException/src/BasicException.jsx diff --git a/templates/ice-design/blocks/BasicException/lib/BasicException.scss b/blocks/BasicException/src/BasicException.scss similarity index 100% rename from templates/ice-design/blocks/BasicException/lib/BasicException.scss rename to blocks/BasicException/src/BasicException.scss diff --git a/templates/ice-design/blocks/BasicException/src/index.js b/blocks/BasicException/src/index.js similarity index 100% rename from templates/ice-design/blocks/BasicException/src/index.js rename to blocks/BasicException/src/index.js diff --git a/templates/ice-design/blocks/BasicNotFound/.editorconfig b/blocks/BasicNotFound/.editorconfig similarity index 100% rename from templates/ice-design/blocks/BasicNotFound/.editorconfig rename to blocks/BasicNotFound/.editorconfig diff --git a/templates/ice-design/blocks/BasicNotFound/.eslintignore b/blocks/BasicNotFound/.eslintignore similarity index 100% rename from templates/ice-design/blocks/BasicNotFound/.eslintignore rename to blocks/BasicNotFound/.eslintignore diff --git a/templates/ice-design/blocks/BasicNotFound/.eslintrc b/blocks/BasicNotFound/.eslintrc similarity index 100% rename from templates/ice-design/blocks/BasicNotFound/.eslintrc rename to blocks/BasicNotFound/.eslintrc diff --git a/templates/ice-design/blocks/BasicNotFound/.gitignore b/blocks/BasicNotFound/.gitignore similarity index 100% rename from templates/ice-design/blocks/BasicNotFound/.gitignore rename to blocks/BasicNotFound/.gitignore diff --git a/templates/ice-design/blocks/BasicNotFound/README.md b/blocks/BasicNotFound/README.md similarity index 100% rename from templates/ice-design/blocks/BasicNotFound/README.md rename to blocks/BasicNotFound/README.md diff --git a/templates/ice-design/blocks/BasicNotFound/demo/index.html b/blocks/BasicNotFound/demo/index.html similarity index 100% rename from templates/ice-design/blocks/BasicNotFound/demo/index.html rename to blocks/BasicNotFound/demo/index.html diff --git a/templates/ice-design/blocks/BasicNotFound/demo/index.js b/blocks/BasicNotFound/demo/index.js similarity index 100% rename from templates/ice-design/blocks/BasicNotFound/demo/index.js rename to blocks/BasicNotFound/demo/index.js diff --git a/templates/ice-design/blocks/BasicNotFound/mock/api.json b/blocks/BasicNotFound/mock/api.json similarity index 100% rename from templates/ice-design/blocks/BasicNotFound/mock/api.json rename to blocks/BasicNotFound/mock/api.json diff --git a/templates/ice-design/blocks/BasicNotFound/package.json b/blocks/BasicNotFound/package.json similarity index 100% rename from templates/ice-design/blocks/BasicNotFound/package.json rename to blocks/BasicNotFound/package.json diff --git a/templates/ice-design/blocks/BasicNotFound/src/BasicNotFound.jsx b/blocks/BasicNotFound/src/BasicNotFound.jsx similarity index 100% rename from templates/ice-design/blocks/BasicNotFound/src/BasicNotFound.jsx rename to blocks/BasicNotFound/src/BasicNotFound.jsx diff --git a/templates/ice-design/blocks/BasicNotFound/lib/BasicNotFound.scss b/blocks/BasicNotFound/src/BasicNotFound.scss similarity index 100% rename from templates/ice-design/blocks/BasicNotFound/lib/BasicNotFound.scss rename to blocks/BasicNotFound/src/BasicNotFound.scss diff --git a/templates/ice-design/blocks/BasicNotFound/src/index.js b/blocks/BasicNotFound/src/index.js similarity index 100% rename from templates/ice-design/blocks/BasicNotFound/src/index.js rename to blocks/BasicNotFound/src/index.js diff --git a/templates/ice-design/blocks/BasicTab/.editorconfig b/blocks/BasicTab/.editorconfig similarity index 100% rename from templates/ice-design/blocks/BasicTab/.editorconfig rename to blocks/BasicTab/.editorconfig diff --git a/templates/ice-design/blocks/BasicTab/.eslintignore b/blocks/BasicTab/.eslintignore similarity index 100% rename from templates/ice-design/blocks/BasicTab/.eslintignore rename to blocks/BasicTab/.eslintignore diff --git a/templates/ice-design/blocks/BasicTab/.eslintrc b/blocks/BasicTab/.eslintrc similarity index 100% rename from templates/ice-design/blocks/BasicTab/.eslintrc rename to blocks/BasicTab/.eslintrc diff --git a/templates/ice-design/blocks/BasicTab/.gitignore b/blocks/BasicTab/.gitignore similarity index 100% rename from templates/ice-design/blocks/BasicTab/.gitignore rename to blocks/BasicTab/.gitignore diff --git a/templates/ice-design/blocks/BasicTab/README.md b/blocks/BasicTab/README.md similarity index 100% rename from templates/ice-design/blocks/BasicTab/README.md rename to blocks/BasicTab/README.md diff --git a/templates/ice-design/blocks/BasicTab/demo/index.html b/blocks/BasicTab/demo/index.html similarity index 100% rename from templates/ice-design/blocks/BasicTab/demo/index.html rename to blocks/BasicTab/demo/index.html diff --git a/templates/ice-design/blocks/BasicTab/demo/index.js b/blocks/BasicTab/demo/index.js similarity index 100% rename from templates/ice-design/blocks/BasicTab/demo/index.js rename to blocks/BasicTab/demo/index.js diff --git a/templates/ice-design/blocks/BasicTab/mock/api.json b/blocks/BasicTab/mock/api.json similarity index 100% rename from templates/ice-design/blocks/BasicTab/mock/api.json rename to blocks/BasicTab/mock/api.json diff --git a/templates/ice-design/blocks/BasicTab/package.json b/blocks/BasicTab/package.json similarity index 100% rename from templates/ice-design/blocks/BasicTab/package.json rename to blocks/BasicTab/package.json diff --git a/templates/ice-design/blocks/BasicTab/src/BasicTab.jsx b/blocks/BasicTab/src/BasicTab.jsx similarity index 100% rename from templates/ice-design/blocks/BasicTab/src/BasicTab.jsx rename to blocks/BasicTab/src/BasicTab.jsx diff --git a/templates/ice-design/blocks/BasicTab/lib/BasicTab.scss b/blocks/BasicTab/src/BasicTab.scss similarity index 100% rename from templates/ice-design/blocks/BasicTab/lib/BasicTab.scss rename to blocks/BasicTab/src/BasicTab.scss diff --git a/templates/ice-design/blocks/BasicTab/src/index.js b/blocks/BasicTab/src/index.js similarity index 100% rename from templates/ice-design/blocks/BasicTab/src/index.js rename to blocks/BasicTab/src/index.js diff --git a/templates/ice-design/blocks/BrandDisplay/.editorconfig b/blocks/BrandDisplay/.editorconfig similarity index 100% rename from templates/ice-design/blocks/BrandDisplay/.editorconfig rename to blocks/BrandDisplay/.editorconfig diff --git a/templates/ice-design/blocks/BrandDisplay/.eslintignore b/blocks/BrandDisplay/.eslintignore similarity index 100% rename from templates/ice-design/blocks/BrandDisplay/.eslintignore rename to blocks/BrandDisplay/.eslintignore diff --git a/templates/ice-design/blocks/BrandDisplay/.eslintrc b/blocks/BrandDisplay/.eslintrc similarity index 100% rename from templates/ice-design/blocks/BrandDisplay/.eslintrc rename to blocks/BrandDisplay/.eslintrc diff --git a/templates/ice-design/blocks/BrandDisplay/.gitignore b/blocks/BrandDisplay/.gitignore similarity index 100% rename from templates/ice-design/blocks/BrandDisplay/.gitignore rename to blocks/BrandDisplay/.gitignore diff --git a/templates/ice-design/blocks/BrandDisplay/README.md b/blocks/BrandDisplay/README.md similarity index 100% rename from templates/ice-design/blocks/BrandDisplay/README.md rename to blocks/BrandDisplay/README.md diff --git a/templates/ice-design/blocks/BrandDisplay/demo/index.html b/blocks/BrandDisplay/demo/index.html similarity index 100% rename from templates/ice-design/blocks/BrandDisplay/demo/index.html rename to blocks/BrandDisplay/demo/index.html diff --git a/templates/ice-design/blocks/BrandDisplay/demo/index.js b/blocks/BrandDisplay/demo/index.js similarity index 100% rename from templates/ice-design/blocks/BrandDisplay/demo/index.js rename to blocks/BrandDisplay/demo/index.js diff --git a/templates/ice-design/blocks/BrandDisplay/mock/api.json b/blocks/BrandDisplay/mock/api.json similarity index 100% rename from templates/ice-design/blocks/BrandDisplay/mock/api.json rename to blocks/BrandDisplay/mock/api.json diff --git a/templates/ice-design/blocks/BrandDisplay/package.json b/blocks/BrandDisplay/package.json similarity index 100% rename from templates/ice-design/blocks/BrandDisplay/package.json rename to blocks/BrandDisplay/package.json diff --git a/templates/ice-design/blocks/BrandDisplay/src/BrandDisplay.jsx b/blocks/BrandDisplay/src/BrandDisplay.jsx similarity index 100% rename from templates/ice-design/blocks/BrandDisplay/src/BrandDisplay.jsx rename to blocks/BrandDisplay/src/BrandDisplay.jsx diff --git a/templates/ice-design/blocks/BrandDisplay/src/BrandDisplay.scss b/blocks/BrandDisplay/src/BrandDisplay.scss similarity index 100% rename from templates/ice-design/blocks/BrandDisplay/src/BrandDisplay.scss rename to blocks/BrandDisplay/src/BrandDisplay.scss diff --git a/templates/ice-design/blocks/BrandDisplay/src/index.js b/blocks/BrandDisplay/src/index.js similarity index 100% rename from templates/ice-design/blocks/BrandDisplay/src/index.js rename to blocks/BrandDisplay/src/index.js diff --git a/templates/ice-design/blocks/BrandShowCase/.editorconfig b/blocks/BrandShowCase/.editorconfig similarity index 100% rename from templates/ice-design/blocks/BrandShowCase/.editorconfig rename to blocks/BrandShowCase/.editorconfig diff --git a/templates/ice-design/blocks/BrandShowCase/.eslintignore b/blocks/BrandShowCase/.eslintignore similarity index 100% rename from templates/ice-design/blocks/BrandShowCase/.eslintignore rename to blocks/BrandShowCase/.eslintignore diff --git a/templates/ice-design/blocks/BrandShowCase/.eslintrc b/blocks/BrandShowCase/.eslintrc similarity index 100% rename from templates/ice-design/blocks/BrandShowCase/.eslintrc rename to blocks/BrandShowCase/.eslintrc diff --git a/templates/ice-design/blocks/BrandShowCase/.gitignore b/blocks/BrandShowCase/.gitignore similarity index 100% rename from templates/ice-design/blocks/BrandShowCase/.gitignore rename to blocks/BrandShowCase/.gitignore diff --git a/templates/ice-design/blocks/BrandShowCase/README.md b/blocks/BrandShowCase/README.md similarity index 100% rename from templates/ice-design/blocks/BrandShowCase/README.md rename to blocks/BrandShowCase/README.md diff --git a/templates/ice-design/blocks/BrandShowCase/demo/index.html b/blocks/BrandShowCase/demo/index.html similarity index 100% rename from templates/ice-design/blocks/BrandShowCase/demo/index.html rename to blocks/BrandShowCase/demo/index.html diff --git a/templates/ice-design/blocks/BrandShowCase/demo/index.js b/blocks/BrandShowCase/demo/index.js similarity index 100% rename from templates/ice-design/blocks/BrandShowCase/demo/index.js rename to blocks/BrandShowCase/demo/index.js diff --git a/templates/ice-design/blocks/BrandShowCase/mock/api.json b/blocks/BrandShowCase/mock/api.json similarity index 100% rename from templates/ice-design/blocks/BrandShowCase/mock/api.json rename to blocks/BrandShowCase/mock/api.json diff --git a/templates/ice-design/blocks/BrandShowCase/package.json b/blocks/BrandShowCase/package.json similarity index 100% rename from templates/ice-design/blocks/BrandShowCase/package.json rename to blocks/BrandShowCase/package.json diff --git a/templates/ice-design/blocks/BrandShowCase/src/BrandShowCase.jsx b/blocks/BrandShowCase/src/BrandShowCase.jsx similarity index 100% rename from templates/ice-design/blocks/BrandShowCase/src/BrandShowCase.jsx rename to blocks/BrandShowCase/src/BrandShowCase.jsx diff --git a/templates/ice-design/blocks/BrandShowCase/src/BrandShowCase.scss b/blocks/BrandShowCase/src/BrandShowCase.scss similarity index 100% rename from templates/ice-design/blocks/BrandShowCase/src/BrandShowCase.scss rename to blocks/BrandShowCase/src/BrandShowCase.scss diff --git a/templates/ice-design/blocks/BrandShowCase/src/index.js b/blocks/BrandShowCase/src/index.js similarity index 100% rename from templates/ice-design/blocks/BrandShowCase/src/index.js rename to blocks/BrandShowCase/src/index.js diff --git a/templates/ice-design/blocks/ChartArea/.editorconfig b/blocks/ChartArea/.editorconfig similarity index 100% rename from templates/ice-design/blocks/ChartArea/.editorconfig rename to blocks/ChartArea/.editorconfig diff --git a/templates/ice-design/blocks/ChartArea/.eslintignore b/blocks/ChartArea/.eslintignore similarity index 100% rename from templates/ice-design/blocks/ChartArea/.eslintignore rename to blocks/ChartArea/.eslintignore diff --git a/templates/ice-design/blocks/ChartArea/.eslintrc b/blocks/ChartArea/.eslintrc similarity index 100% rename from templates/ice-design/blocks/ChartArea/.eslintrc rename to blocks/ChartArea/.eslintrc diff --git a/templates/ice-design/blocks/ChartArea/.gitignore b/blocks/ChartArea/.gitignore similarity index 100% rename from templates/ice-design/blocks/ChartArea/.gitignore rename to blocks/ChartArea/.gitignore diff --git a/templates/ice-design/blocks/ChartArea/README.md b/blocks/ChartArea/README.md similarity index 100% rename from templates/ice-design/blocks/ChartArea/README.md rename to blocks/ChartArea/README.md diff --git a/templates/ice-design/blocks/ChartArea/demo/index.html b/blocks/ChartArea/demo/index.html similarity index 100% rename from templates/ice-design/blocks/ChartArea/demo/index.html rename to blocks/ChartArea/demo/index.html diff --git a/templates/ice-design/blocks/ChartArea/demo/index.js b/blocks/ChartArea/demo/index.js similarity index 100% rename from templates/ice-design/blocks/ChartArea/demo/index.js rename to blocks/ChartArea/demo/index.js diff --git a/templates/ice-design/blocks/ChartArea/mock/api.json b/blocks/ChartArea/mock/api.json similarity index 100% rename from templates/ice-design/blocks/ChartArea/mock/api.json rename to blocks/ChartArea/mock/api.json diff --git a/templates/ice-design/blocks/ChartArea/package.json b/blocks/ChartArea/package.json similarity index 100% rename from templates/ice-design/blocks/ChartArea/package.json rename to blocks/ChartArea/package.json diff --git a/templates/ice-design/blocks/ChartArea/src/ChartArea.jsx b/blocks/ChartArea/src/ChartArea.jsx similarity index 100% rename from templates/ice-design/blocks/ChartArea/src/ChartArea.jsx rename to blocks/ChartArea/src/ChartArea.jsx diff --git a/templates/ice-design/blocks/ChartArea/lib/ChartArea.scss b/blocks/ChartArea/src/ChartArea.scss similarity index 100% rename from templates/ice-design/blocks/ChartArea/lib/ChartArea.scss rename to blocks/ChartArea/src/ChartArea.scss diff --git a/templates/ice-design/blocks/ChartArea/src/index.js b/blocks/ChartArea/src/index.js similarity index 100% rename from templates/ice-design/blocks/ChartArea/src/index.js rename to blocks/ChartArea/src/index.js diff --git a/templates/ice-design/blocks/ChartBar/.editorconfig b/blocks/ChartBar/.editorconfig similarity index 100% rename from templates/ice-design/blocks/ChartBar/.editorconfig rename to blocks/ChartBar/.editorconfig diff --git a/templates/ice-design/blocks/ChartBar/.eslintignore b/blocks/ChartBar/.eslintignore similarity index 100% rename from templates/ice-design/blocks/ChartBar/.eslintignore rename to blocks/ChartBar/.eslintignore diff --git a/templates/ice-design/blocks/ChartBar/.eslintrc b/blocks/ChartBar/.eslintrc similarity index 100% rename from templates/ice-design/blocks/ChartBar/.eslintrc rename to blocks/ChartBar/.eslintrc diff --git a/templates/ice-design/blocks/ChartBar/.gitignore b/blocks/ChartBar/.gitignore similarity index 100% rename from templates/ice-design/blocks/ChartBar/.gitignore rename to blocks/ChartBar/.gitignore diff --git a/templates/ice-design/blocks/ChartBar/README.md b/blocks/ChartBar/README.md similarity index 100% rename from templates/ice-design/blocks/ChartBar/README.md rename to blocks/ChartBar/README.md diff --git a/templates/ice-design/blocks/ChartBar/demo/index.html b/blocks/ChartBar/demo/index.html similarity index 100% rename from templates/ice-design/blocks/ChartBar/demo/index.html rename to blocks/ChartBar/demo/index.html diff --git a/templates/ice-design/blocks/ChartBar/demo/index.js b/blocks/ChartBar/demo/index.js similarity index 100% rename from templates/ice-design/blocks/ChartBar/demo/index.js rename to blocks/ChartBar/demo/index.js diff --git a/templates/ice-design/blocks/ChartBar/mock/api.json b/blocks/ChartBar/mock/api.json similarity index 100% rename from templates/ice-design/blocks/ChartBar/mock/api.json rename to blocks/ChartBar/mock/api.json diff --git a/templates/ice-design/blocks/ChartBar/package.json b/blocks/ChartBar/package.json similarity index 100% rename from templates/ice-design/blocks/ChartBar/package.json rename to blocks/ChartBar/package.json diff --git a/templates/ice-design/blocks/ChartBar/src/ChartBar.jsx b/blocks/ChartBar/src/ChartBar.jsx similarity index 100% rename from templates/ice-design/blocks/ChartBar/src/ChartBar.jsx rename to blocks/ChartBar/src/ChartBar.jsx diff --git a/templates/ice-design/blocks/ChartBar/lib/ChartBar.scss b/blocks/ChartBar/src/ChartBar.scss similarity index 100% rename from templates/ice-design/blocks/ChartBar/lib/ChartBar.scss rename to blocks/ChartBar/src/ChartBar.scss diff --git a/templates/ice-design/blocks/ChartBar/src/index.js b/blocks/ChartBar/src/index.js similarity index 100% rename from templates/ice-design/blocks/ChartBar/src/index.js rename to blocks/ChartBar/src/index.js diff --git a/templates/ice-design/blocks/ChartBox/.editorconfig b/blocks/ChartBox/.editorconfig similarity index 100% rename from templates/ice-design/blocks/ChartBox/.editorconfig rename to blocks/ChartBox/.editorconfig diff --git a/templates/ice-design/blocks/ChartBox/.eslintignore b/blocks/ChartBox/.eslintignore similarity index 100% rename from templates/ice-design/blocks/ChartBox/.eslintignore rename to blocks/ChartBox/.eslintignore diff --git a/templates/ice-design/blocks/ChartBox/.eslintrc b/blocks/ChartBox/.eslintrc similarity index 100% rename from templates/ice-design/blocks/ChartBox/.eslintrc rename to blocks/ChartBox/.eslintrc diff --git a/templates/ice-design/blocks/ChartBox/.gitignore b/blocks/ChartBox/.gitignore similarity index 100% rename from templates/ice-design/blocks/ChartBox/.gitignore rename to blocks/ChartBox/.gitignore diff --git a/templates/ice-design/blocks/ChartBox/README.md b/blocks/ChartBox/README.md similarity index 100% rename from templates/ice-design/blocks/ChartBox/README.md rename to blocks/ChartBox/README.md diff --git a/templates/ice-design/blocks/ChartBox/demo/index.html b/blocks/ChartBox/demo/index.html similarity index 100% rename from templates/ice-design/blocks/ChartBox/demo/index.html rename to blocks/ChartBox/demo/index.html diff --git a/templates/ice-design/blocks/ChartBox/demo/index.js b/blocks/ChartBox/demo/index.js similarity index 100% rename from templates/ice-design/blocks/ChartBox/demo/index.js rename to blocks/ChartBox/demo/index.js diff --git a/templates/ice-design/blocks/ChartBox/mock/api.json b/blocks/ChartBox/mock/api.json similarity index 100% rename from templates/ice-design/blocks/ChartBox/mock/api.json rename to blocks/ChartBox/mock/api.json diff --git a/templates/ice-design/blocks/ChartBox/package.json b/blocks/ChartBox/package.json similarity index 100% rename from templates/ice-design/blocks/ChartBox/package.json rename to blocks/ChartBox/package.json diff --git a/templates/ice-design/blocks/ChartBox/src/ChartBox.jsx b/blocks/ChartBox/src/ChartBox.jsx similarity index 100% rename from templates/ice-design/blocks/ChartBox/src/ChartBox.jsx rename to blocks/ChartBox/src/ChartBox.jsx diff --git a/templates/ice-design/blocks/ChartBox/lib/ChartBox.scss b/blocks/ChartBox/src/ChartBox.scss similarity index 100% rename from templates/ice-design/blocks/ChartBox/lib/ChartBox.scss rename to blocks/ChartBox/src/ChartBox.scss diff --git a/templates/ice-design/blocks/ChartBox/src/index.js b/blocks/ChartBox/src/index.js similarity index 100% rename from templates/ice-design/blocks/ChartBox/src/index.js rename to blocks/ChartBox/src/index.js diff --git a/templates/ice-design/blocks/ChartBubbleImage/.editorconfig b/blocks/ChartBubbleImage/.editorconfig similarity index 100% rename from templates/ice-design/blocks/ChartBubbleImage/.editorconfig rename to blocks/ChartBubbleImage/.editorconfig diff --git a/templates/ice-design/blocks/ChartBubbleImage/.eslintignore b/blocks/ChartBubbleImage/.eslintignore similarity index 100% rename from templates/ice-design/blocks/ChartBubbleImage/.eslintignore rename to blocks/ChartBubbleImage/.eslintignore diff --git a/templates/ice-design/blocks/ChartBubbleImage/.eslintrc b/blocks/ChartBubbleImage/.eslintrc similarity index 100% rename from templates/ice-design/blocks/ChartBubbleImage/.eslintrc rename to blocks/ChartBubbleImage/.eslintrc diff --git a/templates/ice-design/blocks/ChartBubbleImage/.gitignore b/blocks/ChartBubbleImage/.gitignore similarity index 100% rename from templates/ice-design/blocks/ChartBubbleImage/.gitignore rename to blocks/ChartBubbleImage/.gitignore diff --git a/templates/ice-design/blocks/ChartBubbleImage/README.md b/blocks/ChartBubbleImage/README.md similarity index 100% rename from templates/ice-design/blocks/ChartBubbleImage/README.md rename to blocks/ChartBubbleImage/README.md diff --git a/templates/ice-design/blocks/ChartBubbleImage/demo/index.html b/blocks/ChartBubbleImage/demo/index.html similarity index 100% rename from templates/ice-design/blocks/ChartBubbleImage/demo/index.html rename to blocks/ChartBubbleImage/demo/index.html diff --git a/templates/ice-design/blocks/ChartBubbleImage/demo/index.js b/blocks/ChartBubbleImage/demo/index.js similarity index 100% rename from templates/ice-design/blocks/ChartBubbleImage/demo/index.js rename to blocks/ChartBubbleImage/demo/index.js diff --git a/templates/ice-design/blocks/ChartBubbleImage/mock/api.json b/blocks/ChartBubbleImage/mock/api.json similarity index 100% rename from templates/ice-design/blocks/ChartBubbleImage/mock/api.json rename to blocks/ChartBubbleImage/mock/api.json diff --git a/templates/ice-design/blocks/ChartBubbleImage/package.json b/blocks/ChartBubbleImage/package.json similarity index 100% rename from templates/ice-design/blocks/ChartBubbleImage/package.json rename to blocks/ChartBubbleImage/package.json diff --git a/templates/ice-design/blocks/ChartBubbleImage/src/ChartBubbleImage.jsx b/blocks/ChartBubbleImage/src/ChartBubbleImage.jsx similarity index 100% rename from templates/ice-design/blocks/ChartBubbleImage/src/ChartBubbleImage.jsx rename to blocks/ChartBubbleImage/src/ChartBubbleImage.jsx diff --git a/templates/ice-design/blocks/ChartBubbleImage/lib/ChartBubbleImage.scss b/blocks/ChartBubbleImage/src/ChartBubbleImage.scss similarity index 100% rename from templates/ice-design/blocks/ChartBubbleImage/lib/ChartBubbleImage.scss rename to blocks/ChartBubbleImage/src/ChartBubbleImage.scss diff --git a/templates/ice-design/blocks/ChartBubbleImage/src/index.js b/blocks/ChartBubbleImage/src/index.js similarity index 100% rename from templates/ice-design/blocks/ChartBubbleImage/src/index.js rename to blocks/ChartBubbleImage/src/index.js diff --git a/templates/ice-design/blocks/ChartFacet/.editorconfig b/blocks/ChartFacet/.editorconfig similarity index 100% rename from templates/ice-design/blocks/ChartFacet/.editorconfig rename to blocks/ChartFacet/.editorconfig diff --git a/templates/ice-design/blocks/ChartFacet/.eslintignore b/blocks/ChartFacet/.eslintignore similarity index 100% rename from templates/ice-design/blocks/ChartFacet/.eslintignore rename to blocks/ChartFacet/.eslintignore diff --git a/templates/ice-design/blocks/ChartFacet/.eslintrc b/blocks/ChartFacet/.eslintrc similarity index 100% rename from templates/ice-design/blocks/ChartFacet/.eslintrc rename to blocks/ChartFacet/.eslintrc diff --git a/templates/ice-design/blocks/ChartFacet/.gitignore b/blocks/ChartFacet/.gitignore similarity index 100% rename from templates/ice-design/blocks/ChartFacet/.gitignore rename to blocks/ChartFacet/.gitignore diff --git a/templates/ice-design/blocks/ChartFacet/README.md b/blocks/ChartFacet/README.md similarity index 100% rename from templates/ice-design/blocks/ChartFacet/README.md rename to blocks/ChartFacet/README.md diff --git a/templates/ice-design/blocks/ChartFacet/demo/index.html b/blocks/ChartFacet/demo/index.html similarity index 100% rename from templates/ice-design/blocks/ChartFacet/demo/index.html rename to blocks/ChartFacet/demo/index.html diff --git a/templates/ice-design/blocks/ChartFacet/demo/index.js b/blocks/ChartFacet/demo/index.js similarity index 100% rename from templates/ice-design/blocks/ChartFacet/demo/index.js rename to blocks/ChartFacet/demo/index.js diff --git a/templates/ice-design/blocks/ChartFacet/mock/api.json b/blocks/ChartFacet/mock/api.json similarity index 100% rename from templates/ice-design/blocks/ChartFacet/mock/api.json rename to blocks/ChartFacet/mock/api.json diff --git a/templates/ice-design/blocks/ChartFacet/package.json b/blocks/ChartFacet/package.json similarity index 100% rename from templates/ice-design/blocks/ChartFacet/package.json rename to blocks/ChartFacet/package.json diff --git a/templates/ice-design/blocks/ChartFacet/src/ChartFacet.jsx b/blocks/ChartFacet/src/ChartFacet.jsx similarity index 100% rename from templates/ice-design/blocks/ChartFacet/src/ChartFacet.jsx rename to blocks/ChartFacet/src/ChartFacet.jsx diff --git a/templates/ice-design/blocks/ChartFacet/lib/ChartFacet.scss b/blocks/ChartFacet/src/ChartFacet.scss similarity index 100% rename from templates/ice-design/blocks/ChartFacet/lib/ChartFacet.scss rename to blocks/ChartFacet/src/ChartFacet.scss diff --git a/templates/ice-design/blocks/ChartFacet/src/index.js b/blocks/ChartFacet/src/index.js similarity index 100% rename from templates/ice-design/blocks/ChartFacet/src/index.js rename to blocks/ChartFacet/src/index.js diff --git a/templates/ice-design/blocks/ChartFunnel/.editorconfig b/blocks/ChartFunnel/.editorconfig similarity index 100% rename from templates/ice-design/blocks/ChartFunnel/.editorconfig rename to blocks/ChartFunnel/.editorconfig diff --git a/templates/ice-design/blocks/ChartFunnel/.eslintignore b/blocks/ChartFunnel/.eslintignore similarity index 100% rename from templates/ice-design/blocks/ChartFunnel/.eslintignore rename to blocks/ChartFunnel/.eslintignore diff --git a/templates/ice-design/blocks/ChartFunnel/.eslintrc b/blocks/ChartFunnel/.eslintrc similarity index 100% rename from templates/ice-design/blocks/ChartFunnel/.eslintrc rename to blocks/ChartFunnel/.eslintrc diff --git a/templates/ice-design/blocks/ChartFunnel/.gitignore b/blocks/ChartFunnel/.gitignore similarity index 100% rename from templates/ice-design/blocks/ChartFunnel/.gitignore rename to blocks/ChartFunnel/.gitignore diff --git a/templates/ice-design/blocks/ChartFunnel/README.md b/blocks/ChartFunnel/README.md similarity index 100% rename from templates/ice-design/blocks/ChartFunnel/README.md rename to blocks/ChartFunnel/README.md diff --git a/templates/ice-design/blocks/ChartFunnel/demo/index.html b/blocks/ChartFunnel/demo/index.html similarity index 100% rename from templates/ice-design/blocks/ChartFunnel/demo/index.html rename to blocks/ChartFunnel/demo/index.html diff --git a/templates/ice-design/blocks/ChartFunnel/demo/index.js b/blocks/ChartFunnel/demo/index.js similarity index 100% rename from templates/ice-design/blocks/ChartFunnel/demo/index.js rename to blocks/ChartFunnel/demo/index.js diff --git a/templates/ice-design/blocks/ChartFunnel/mock/api.json b/blocks/ChartFunnel/mock/api.json similarity index 100% rename from templates/ice-design/blocks/ChartFunnel/mock/api.json rename to blocks/ChartFunnel/mock/api.json diff --git a/templates/ice-design/blocks/ChartFunnel/package.json b/blocks/ChartFunnel/package.json similarity index 100% rename from templates/ice-design/blocks/ChartFunnel/package.json rename to blocks/ChartFunnel/package.json diff --git a/templates/ice-design/blocks/ChartFunnel/src/ChartFunnel.jsx b/blocks/ChartFunnel/src/ChartFunnel.jsx similarity index 100% rename from templates/ice-design/blocks/ChartFunnel/src/ChartFunnel.jsx rename to blocks/ChartFunnel/src/ChartFunnel.jsx diff --git a/templates/ice-design/blocks/ChartFunnel/lib/ChartFunnel.scss b/blocks/ChartFunnel/src/ChartFunnel.scss similarity index 100% rename from templates/ice-design/blocks/ChartFunnel/lib/ChartFunnel.scss rename to blocks/ChartFunnel/src/ChartFunnel.scss diff --git a/templates/ice-design/blocks/ChartFunnel/src/index.js b/blocks/ChartFunnel/src/index.js similarity index 100% rename from templates/ice-design/blocks/ChartFunnel/src/index.js rename to blocks/ChartFunnel/src/index.js diff --git a/templates/ice-design/blocks/ChartGauge/.editorconfig b/blocks/ChartGauge/.editorconfig similarity index 100% rename from templates/ice-design/blocks/ChartGauge/.editorconfig rename to blocks/ChartGauge/.editorconfig diff --git a/templates/ice-design/blocks/ChartGauge/.eslintignore b/blocks/ChartGauge/.eslintignore similarity index 100% rename from templates/ice-design/blocks/ChartGauge/.eslintignore rename to blocks/ChartGauge/.eslintignore diff --git a/templates/ice-design/blocks/ChartGauge/.eslintrc b/blocks/ChartGauge/.eslintrc similarity index 100% rename from templates/ice-design/blocks/ChartGauge/.eslintrc rename to blocks/ChartGauge/.eslintrc diff --git a/templates/ice-design/blocks/ChartGauge/.gitignore b/blocks/ChartGauge/.gitignore similarity index 100% rename from templates/ice-design/blocks/ChartGauge/.gitignore rename to blocks/ChartGauge/.gitignore diff --git a/templates/ice-design/blocks/ChartGauge/README.md b/blocks/ChartGauge/README.md similarity index 100% rename from templates/ice-design/blocks/ChartGauge/README.md rename to blocks/ChartGauge/README.md diff --git a/templates/ice-design/blocks/ChartGauge/demo/index.html b/blocks/ChartGauge/demo/index.html similarity index 100% rename from templates/ice-design/blocks/ChartGauge/demo/index.html rename to blocks/ChartGauge/demo/index.html diff --git a/templates/ice-design/blocks/ChartGauge/demo/index.js b/blocks/ChartGauge/demo/index.js similarity index 100% rename from templates/ice-design/blocks/ChartGauge/demo/index.js rename to blocks/ChartGauge/demo/index.js diff --git a/templates/ice-design/blocks/ChartGauge/mock/api.json b/blocks/ChartGauge/mock/api.json similarity index 100% rename from templates/ice-design/blocks/ChartGauge/mock/api.json rename to blocks/ChartGauge/mock/api.json diff --git a/templates/ice-design/blocks/ChartGauge/package.json b/blocks/ChartGauge/package.json similarity index 100% rename from templates/ice-design/blocks/ChartGauge/package.json rename to blocks/ChartGauge/package.json diff --git a/templates/ice-design/blocks/ChartGauge/src/ChartGauge.jsx b/blocks/ChartGauge/src/ChartGauge.jsx similarity index 100% rename from templates/ice-design/blocks/ChartGauge/src/ChartGauge.jsx rename to blocks/ChartGauge/src/ChartGauge.jsx diff --git a/templates/ice-design/blocks/ChartGauge/lib/ChartGauge.scss b/blocks/ChartGauge/src/ChartGauge.scss similarity index 100% rename from templates/ice-design/blocks/ChartGauge/lib/ChartGauge.scss rename to blocks/ChartGauge/src/ChartGauge.scss diff --git a/templates/ice-design/blocks/ChartGauge/src/index.js b/blocks/ChartGauge/src/index.js similarity index 100% rename from templates/ice-design/blocks/ChartGauge/src/index.js rename to blocks/ChartGauge/src/index.js diff --git a/templates/ice-design/blocks/ChartHeatMap/.editorconfig b/blocks/ChartHeatMap/.editorconfig similarity index 100% rename from templates/ice-design/blocks/ChartHeatMap/.editorconfig rename to blocks/ChartHeatMap/.editorconfig diff --git a/templates/ice-design/blocks/ChartHeatMap/.eslintignore b/blocks/ChartHeatMap/.eslintignore similarity index 100% rename from templates/ice-design/blocks/ChartHeatMap/.eslintignore rename to blocks/ChartHeatMap/.eslintignore diff --git a/templates/ice-design/blocks/ChartHeatMap/.eslintrc b/blocks/ChartHeatMap/.eslintrc similarity index 100% rename from templates/ice-design/blocks/ChartHeatMap/.eslintrc rename to blocks/ChartHeatMap/.eslintrc diff --git a/templates/ice-design/blocks/ChartHeatMap/.gitignore b/blocks/ChartHeatMap/.gitignore similarity index 100% rename from templates/ice-design/blocks/ChartHeatMap/.gitignore rename to blocks/ChartHeatMap/.gitignore diff --git a/templates/ice-design/blocks/ChartHeatMap/README.md b/blocks/ChartHeatMap/README.md similarity index 100% rename from templates/ice-design/blocks/ChartHeatMap/README.md rename to blocks/ChartHeatMap/README.md diff --git a/templates/ice-design/blocks/ChartHeatMap/demo/index.html b/blocks/ChartHeatMap/demo/index.html similarity index 100% rename from templates/ice-design/blocks/ChartHeatMap/demo/index.html rename to blocks/ChartHeatMap/demo/index.html diff --git a/templates/ice-design/blocks/ChartHeatMap/demo/index.js b/blocks/ChartHeatMap/demo/index.js similarity index 100% rename from templates/ice-design/blocks/ChartHeatMap/demo/index.js rename to blocks/ChartHeatMap/demo/index.js diff --git a/templates/ice-design/blocks/ChartHeatMap/mock/api.json b/blocks/ChartHeatMap/mock/api.json similarity index 100% rename from templates/ice-design/blocks/ChartHeatMap/mock/api.json rename to blocks/ChartHeatMap/mock/api.json diff --git a/templates/ice-design/blocks/ChartHeatMap/package.json b/blocks/ChartHeatMap/package.json similarity index 100% rename from templates/ice-design/blocks/ChartHeatMap/package.json rename to blocks/ChartHeatMap/package.json diff --git a/templates/ice-design/blocks/ChartHeatMap/src/ChartHeatMap.jsx b/blocks/ChartHeatMap/src/ChartHeatMap.jsx similarity index 100% rename from templates/ice-design/blocks/ChartHeatMap/src/ChartHeatMap.jsx rename to blocks/ChartHeatMap/src/ChartHeatMap.jsx diff --git a/templates/ice-design/blocks/ChartHeatMap/lib/ChartHeatMap.scss b/blocks/ChartHeatMap/src/ChartHeatMap.scss similarity index 100% rename from templates/ice-design/blocks/ChartHeatMap/lib/ChartHeatMap.scss rename to blocks/ChartHeatMap/src/ChartHeatMap.scss diff --git a/templates/ice-design/blocks/ChartHeatMap/src/index.js b/blocks/ChartHeatMap/src/index.js similarity index 100% rename from templates/ice-design/blocks/ChartHeatMap/src/index.js rename to blocks/ChartHeatMap/src/index.js diff --git a/templates/ice-design/blocks/ChartPie/.editorconfig b/blocks/ChartPie/.editorconfig similarity index 100% rename from templates/ice-design/blocks/ChartPie/.editorconfig rename to blocks/ChartPie/.editorconfig diff --git a/templates/ice-design/blocks/ChartPie/.eslintignore b/blocks/ChartPie/.eslintignore similarity index 100% rename from templates/ice-design/blocks/ChartPie/.eslintignore rename to blocks/ChartPie/.eslintignore diff --git a/templates/ice-design/blocks/ChartPie/.eslintrc b/blocks/ChartPie/.eslintrc similarity index 100% rename from templates/ice-design/blocks/ChartPie/.eslintrc rename to blocks/ChartPie/.eslintrc diff --git a/templates/ice-design/blocks/ChartPie/.gitignore b/blocks/ChartPie/.gitignore similarity index 100% rename from templates/ice-design/blocks/ChartPie/.gitignore rename to blocks/ChartPie/.gitignore diff --git a/templates/ice-design/blocks/ChartPie/README.md b/blocks/ChartPie/README.md similarity index 100% rename from templates/ice-design/blocks/ChartPie/README.md rename to blocks/ChartPie/README.md diff --git a/templates/ice-design/blocks/ChartPie/demo/index.html b/blocks/ChartPie/demo/index.html similarity index 100% rename from templates/ice-design/blocks/ChartPie/demo/index.html rename to blocks/ChartPie/demo/index.html diff --git a/templates/ice-design/blocks/ChartPie/demo/index.js b/blocks/ChartPie/demo/index.js similarity index 100% rename from templates/ice-design/blocks/ChartPie/demo/index.js rename to blocks/ChartPie/demo/index.js diff --git a/templates/ice-design/blocks/ChartPie/mock/api.json b/blocks/ChartPie/mock/api.json similarity index 100% rename from templates/ice-design/blocks/ChartPie/mock/api.json rename to blocks/ChartPie/mock/api.json diff --git a/templates/ice-design/blocks/ChartPie/package.json b/blocks/ChartPie/package.json similarity index 100% rename from templates/ice-design/blocks/ChartPie/package.json rename to blocks/ChartPie/package.json diff --git a/templates/ice-design/blocks/ChartPie/src/ChartPie.jsx b/blocks/ChartPie/src/ChartPie.jsx similarity index 100% rename from templates/ice-design/blocks/ChartPie/src/ChartPie.jsx rename to blocks/ChartPie/src/ChartPie.jsx diff --git a/templates/ice-design/blocks/ChartPie/lib/ChartPie.scss b/blocks/ChartPie/src/ChartPie.scss similarity index 100% rename from templates/ice-design/blocks/ChartPie/lib/ChartPie.scss rename to blocks/ChartPie/src/ChartPie.scss diff --git a/templates/ice-design/blocks/ChartPie/src/index.js b/blocks/ChartPie/src/index.js similarity index 100% rename from templates/ice-design/blocks/ChartPie/src/index.js rename to blocks/ChartPie/src/index.js diff --git a/templates/ice-design/blocks/ChartPoint/.editorconfig b/blocks/ChartPoint/.editorconfig similarity index 100% rename from templates/ice-design/blocks/ChartPoint/.editorconfig rename to blocks/ChartPoint/.editorconfig diff --git a/templates/ice-design/blocks/ChartPoint/.eslintignore b/blocks/ChartPoint/.eslintignore similarity index 100% rename from templates/ice-design/blocks/ChartPoint/.eslintignore rename to blocks/ChartPoint/.eslintignore diff --git a/templates/ice-design/blocks/ChartPoint/.eslintrc b/blocks/ChartPoint/.eslintrc similarity index 100% rename from templates/ice-design/blocks/ChartPoint/.eslintrc rename to blocks/ChartPoint/.eslintrc diff --git a/templates/ice-design/blocks/ChartPoint/.gitignore b/blocks/ChartPoint/.gitignore similarity index 100% rename from templates/ice-design/blocks/ChartPoint/.gitignore rename to blocks/ChartPoint/.gitignore diff --git a/templates/ice-design/blocks/ChartPoint/README.md b/blocks/ChartPoint/README.md similarity index 100% rename from templates/ice-design/blocks/ChartPoint/README.md rename to blocks/ChartPoint/README.md diff --git a/templates/ice-design/blocks/ChartPoint/demo/index.html b/blocks/ChartPoint/demo/index.html similarity index 100% rename from templates/ice-design/blocks/ChartPoint/demo/index.html rename to blocks/ChartPoint/demo/index.html diff --git a/templates/ice-design/blocks/ChartPoint/demo/index.js b/blocks/ChartPoint/demo/index.js similarity index 100% rename from templates/ice-design/blocks/ChartPoint/demo/index.js rename to blocks/ChartPoint/demo/index.js diff --git a/templates/ice-design/blocks/ChartPoint/mock/chart-point.json b/blocks/ChartPoint/mock/chart-point.json similarity index 100% rename from templates/ice-design/blocks/ChartPoint/mock/chart-point.json rename to blocks/ChartPoint/mock/chart-point.json diff --git a/templates/ice-design/blocks/ChartPoint/package.json b/blocks/ChartPoint/package.json similarity index 100% rename from templates/ice-design/blocks/ChartPoint/package.json rename to blocks/ChartPoint/package.json diff --git a/templates/ice-design/blocks/ChartPoint/src/ChartPoint.jsx b/blocks/ChartPoint/src/ChartPoint.jsx similarity index 100% rename from templates/ice-design/blocks/ChartPoint/src/ChartPoint.jsx rename to blocks/ChartPoint/src/ChartPoint.jsx diff --git a/templates/ice-design/blocks/ChartPoint/lib/ChartPoint.scss b/blocks/ChartPoint/src/ChartPoint.scss similarity index 100% rename from templates/ice-design/blocks/ChartPoint/lib/ChartPoint.scss rename to blocks/ChartPoint/src/ChartPoint.scss diff --git a/templates/ice-design/blocks/ChartPoint/src/index.js b/blocks/ChartPoint/src/index.js similarity index 100% rename from templates/ice-design/blocks/ChartPoint/src/index.js rename to blocks/ChartPoint/src/index.js diff --git a/templates/ice-design/blocks/ChartRadar/.editorconfig b/blocks/ChartRadar/.editorconfig similarity index 100% rename from templates/ice-design/blocks/ChartRadar/.editorconfig rename to blocks/ChartRadar/.editorconfig diff --git a/templates/ice-design/blocks/ChartRadar/.eslintignore b/blocks/ChartRadar/.eslintignore similarity index 100% rename from templates/ice-design/blocks/ChartRadar/.eslintignore rename to blocks/ChartRadar/.eslintignore diff --git a/templates/ice-design/blocks/ChartRadar/.eslintrc b/blocks/ChartRadar/.eslintrc similarity index 100% rename from templates/ice-design/blocks/ChartRadar/.eslintrc rename to blocks/ChartRadar/.eslintrc diff --git a/templates/ice-design/blocks/ChartRadar/.gitignore b/blocks/ChartRadar/.gitignore similarity index 100% rename from templates/ice-design/blocks/ChartRadar/.gitignore rename to blocks/ChartRadar/.gitignore diff --git a/templates/ice-design/blocks/ChartRadar/README.md b/blocks/ChartRadar/README.md similarity index 100% rename from templates/ice-design/blocks/ChartRadar/README.md rename to blocks/ChartRadar/README.md diff --git a/templates/ice-design/blocks/ChartRadar/demo/index.html b/blocks/ChartRadar/demo/index.html similarity index 100% rename from templates/ice-design/blocks/ChartRadar/demo/index.html rename to blocks/ChartRadar/demo/index.html diff --git a/templates/ice-design/blocks/ChartRadar/demo/index.js b/blocks/ChartRadar/demo/index.js similarity index 100% rename from templates/ice-design/blocks/ChartRadar/demo/index.js rename to blocks/ChartRadar/demo/index.js diff --git a/templates/ice-design/blocks/ChartRadar/mock/api.json b/blocks/ChartRadar/mock/api.json similarity index 100% rename from templates/ice-design/blocks/ChartRadar/mock/api.json rename to blocks/ChartRadar/mock/api.json diff --git a/templates/ice-design/blocks/ChartRadar/package.json b/blocks/ChartRadar/package.json similarity index 100% rename from templates/ice-design/blocks/ChartRadar/package.json rename to blocks/ChartRadar/package.json diff --git a/templates/ice-design/blocks/ChartRadar/src/ChartRadar.jsx b/blocks/ChartRadar/src/ChartRadar.jsx similarity index 100% rename from templates/ice-design/blocks/ChartRadar/src/ChartRadar.jsx rename to blocks/ChartRadar/src/ChartRadar.jsx diff --git a/templates/ice-design/blocks/ChartRadar/lib/ChartRadar.scss b/blocks/ChartRadar/src/ChartRadar.scss similarity index 100% rename from templates/ice-design/blocks/ChartRadar/lib/ChartRadar.scss rename to blocks/ChartRadar/src/ChartRadar.scss diff --git a/templates/ice-design/blocks/ChartRadar/src/index.js b/blocks/ChartRadar/src/index.js similarity index 100% rename from templates/ice-design/blocks/ChartRadar/src/index.js rename to blocks/ChartRadar/src/index.js diff --git a/templates/ice-design/blocks/ChartRelation/.editorconfig b/blocks/ChartRelation/.editorconfig similarity index 100% rename from templates/ice-design/blocks/ChartRelation/.editorconfig rename to blocks/ChartRelation/.editorconfig diff --git a/templates/ice-design/blocks/ChartRelation/.eslintignore b/blocks/ChartRelation/.eslintignore similarity index 100% rename from templates/ice-design/blocks/ChartRelation/.eslintignore rename to blocks/ChartRelation/.eslintignore diff --git a/templates/ice-design/blocks/ChartRelation/.eslintrc b/blocks/ChartRelation/.eslintrc similarity index 100% rename from templates/ice-design/blocks/ChartRelation/.eslintrc rename to blocks/ChartRelation/.eslintrc diff --git a/templates/ice-design/blocks/ChartRelation/.gitignore b/blocks/ChartRelation/.gitignore similarity index 100% rename from templates/ice-design/blocks/ChartRelation/.gitignore rename to blocks/ChartRelation/.gitignore diff --git a/templates/ice-design/blocks/ChartRelation/README.md b/blocks/ChartRelation/README.md similarity index 100% rename from templates/ice-design/blocks/ChartRelation/README.md rename to blocks/ChartRelation/README.md diff --git a/templates/ice-design/blocks/ChartRelation/demo/index.html b/blocks/ChartRelation/demo/index.html similarity index 100% rename from templates/ice-design/blocks/ChartRelation/demo/index.html rename to blocks/ChartRelation/demo/index.html diff --git a/templates/ice-design/blocks/ChartRelation/demo/index.js b/blocks/ChartRelation/demo/index.js similarity index 100% rename from templates/ice-design/blocks/ChartRelation/demo/index.js rename to blocks/ChartRelation/demo/index.js diff --git a/templates/ice-design/blocks/ChartRelation/mock/api.json b/blocks/ChartRelation/mock/api.json similarity index 100% rename from templates/ice-design/blocks/ChartRelation/mock/api.json rename to blocks/ChartRelation/mock/api.json diff --git a/templates/ice-design/blocks/ChartRelation/package.json b/blocks/ChartRelation/package.json similarity index 100% rename from templates/ice-design/blocks/ChartRelation/package.json rename to blocks/ChartRelation/package.json diff --git a/templates/ice-design/blocks/ChartRelation/src/ChartRelation.jsx b/blocks/ChartRelation/src/ChartRelation.jsx similarity index 100% rename from templates/ice-design/blocks/ChartRelation/src/ChartRelation.jsx rename to blocks/ChartRelation/src/ChartRelation.jsx diff --git a/templates/ice-design/blocks/ChartRelation/lib/ChartRelation.scss b/blocks/ChartRelation/src/ChartRelation.scss similarity index 100% rename from templates/ice-design/blocks/ChartRelation/lib/ChartRelation.scss rename to blocks/ChartRelation/src/ChartRelation.scss diff --git a/templates/ice-design/blocks/ChartRelation/src/index.js b/blocks/ChartRelation/src/index.js similarity index 100% rename from templates/ice-design/blocks/ChartRelation/src/index.js rename to blocks/ChartRelation/src/index.js diff --git a/templates/ice-design/blocks/ChartStock/.editorconfig b/blocks/ChartStock/.editorconfig similarity index 100% rename from templates/ice-design/blocks/ChartStock/.editorconfig rename to blocks/ChartStock/.editorconfig diff --git a/templates/ice-design/blocks/ChartStock/.eslintignore b/blocks/ChartStock/.eslintignore similarity index 100% rename from templates/ice-design/blocks/ChartStock/.eslintignore rename to blocks/ChartStock/.eslintignore diff --git a/templates/ice-design/blocks/ChartStock/.eslintrc b/blocks/ChartStock/.eslintrc similarity index 100% rename from templates/ice-design/blocks/ChartStock/.eslintrc rename to blocks/ChartStock/.eslintrc diff --git a/templates/ice-design/blocks/ChartStock/.gitignore b/blocks/ChartStock/.gitignore similarity index 100% rename from templates/ice-design/blocks/ChartStock/.gitignore rename to blocks/ChartStock/.gitignore diff --git a/templates/ice-design/blocks/ChartStock/README.md b/blocks/ChartStock/README.md similarity index 100% rename from templates/ice-design/blocks/ChartStock/README.md rename to blocks/ChartStock/README.md diff --git a/templates/ice-design/blocks/ChartStock/demo/index.html b/blocks/ChartStock/demo/index.html similarity index 100% rename from templates/ice-design/blocks/ChartStock/demo/index.html rename to blocks/ChartStock/demo/index.html diff --git a/templates/ice-design/blocks/ChartStock/demo/index.js b/blocks/ChartStock/demo/index.js similarity index 100% rename from templates/ice-design/blocks/ChartStock/demo/index.js rename to blocks/ChartStock/demo/index.js diff --git a/templates/ice-design/blocks/ChartStock/mock/chart-stock.json b/blocks/ChartStock/mock/chart-stock.json similarity index 100% rename from templates/ice-design/blocks/ChartStock/mock/chart-stock.json rename to blocks/ChartStock/mock/chart-stock.json diff --git a/templates/ice-design/blocks/ChartStock/package.json b/blocks/ChartStock/package.json similarity index 100% rename from templates/ice-design/blocks/ChartStock/package.json rename to blocks/ChartStock/package.json diff --git a/templates/ice-design/blocks/ChartStock/src/ChartStock.jsx b/blocks/ChartStock/src/ChartStock.jsx similarity index 100% rename from templates/ice-design/blocks/ChartStock/src/ChartStock.jsx rename to blocks/ChartStock/src/ChartStock.jsx diff --git a/templates/ice-design/blocks/ChartStock/lib/ChartStock.scss b/blocks/ChartStock/src/ChartStock.scss similarity index 100% rename from templates/ice-design/blocks/ChartStock/lib/ChartStock.scss rename to blocks/ChartStock/src/ChartStock.scss diff --git a/templates/ice-design/blocks/ChartStock/src/index.js b/blocks/ChartStock/src/index.js similarity index 100% rename from templates/ice-design/blocks/ChartStock/src/index.js rename to blocks/ChartStock/src/index.js diff --git a/templates/ice-design/blocks/ChartTypeLine/.editorconfig b/blocks/ChartTypeLine/.editorconfig similarity index 100% rename from templates/ice-design/blocks/ChartTypeLine/.editorconfig rename to blocks/ChartTypeLine/.editorconfig diff --git a/templates/ice-design/blocks/ChartTypeLine/.eslintignore b/blocks/ChartTypeLine/.eslintignore similarity index 100% rename from templates/ice-design/blocks/ChartTypeLine/.eslintignore rename to blocks/ChartTypeLine/.eslintignore diff --git a/templates/ice-design/blocks/ChartTypeLine/.eslintrc b/blocks/ChartTypeLine/.eslintrc similarity index 100% rename from templates/ice-design/blocks/ChartTypeLine/.eslintrc rename to blocks/ChartTypeLine/.eslintrc diff --git a/templates/ice-design/blocks/ChartTypeLine/.gitignore b/blocks/ChartTypeLine/.gitignore similarity index 100% rename from templates/ice-design/blocks/ChartTypeLine/.gitignore rename to blocks/ChartTypeLine/.gitignore diff --git a/templates/ice-design/blocks/ChartTypeLine/README.md b/blocks/ChartTypeLine/README.md similarity index 100% rename from templates/ice-design/blocks/ChartTypeLine/README.md rename to blocks/ChartTypeLine/README.md diff --git a/templates/ice-design/blocks/ChartTypeLine/demo/index.html b/blocks/ChartTypeLine/demo/index.html similarity index 100% rename from templates/ice-design/blocks/ChartTypeLine/demo/index.html rename to blocks/ChartTypeLine/demo/index.html diff --git a/templates/ice-design/blocks/ChartTypeLine/demo/index.js b/blocks/ChartTypeLine/demo/index.js similarity index 100% rename from templates/ice-design/blocks/ChartTypeLine/demo/index.js rename to blocks/ChartTypeLine/demo/index.js diff --git a/templates/ice-design/blocks/ChartTypeLine/mock/api.json b/blocks/ChartTypeLine/mock/api.json similarity index 100% rename from templates/ice-design/blocks/ChartTypeLine/mock/api.json rename to blocks/ChartTypeLine/mock/api.json diff --git a/templates/ice-design/blocks/ChartTypeLine/package.json b/blocks/ChartTypeLine/package.json similarity index 100% rename from templates/ice-design/blocks/ChartTypeLine/package.json rename to blocks/ChartTypeLine/package.json diff --git a/templates/ice-design/blocks/ChartTypeLine/src/ChartTypeLine.jsx b/blocks/ChartTypeLine/src/ChartTypeLine.jsx similarity index 100% rename from templates/ice-design/blocks/ChartTypeLine/src/ChartTypeLine.jsx rename to blocks/ChartTypeLine/src/ChartTypeLine.jsx diff --git a/templates/ice-design/blocks/ChartTypeLine/lib/ChartTypeLine.scss b/blocks/ChartTypeLine/src/ChartTypeLine.scss similarity index 100% rename from templates/ice-design/blocks/ChartTypeLine/lib/ChartTypeLine.scss rename to blocks/ChartTypeLine/src/ChartTypeLine.scss diff --git a/templates/ice-design/blocks/ChartTypeLine/src/index.js b/blocks/ChartTypeLine/src/index.js similarity index 100% rename from templates/ice-design/blocks/ChartTypeLine/src/index.js rename to blocks/ChartTypeLine/src/index.js diff --git a/templates/ice-design/blocks/CollapseCard/.editorconfig b/blocks/CollapseCard/.editorconfig similarity index 100% rename from templates/ice-design/blocks/CollapseCard/.editorconfig rename to blocks/CollapseCard/.editorconfig diff --git a/templates/ice-design/blocks/CollapseCard/.eslintignore b/blocks/CollapseCard/.eslintignore similarity index 100% rename from templates/ice-design/blocks/CollapseCard/.eslintignore rename to blocks/CollapseCard/.eslintignore diff --git a/templates/ice-design/blocks/CollapseCard/.eslintrc b/blocks/CollapseCard/.eslintrc similarity index 100% rename from templates/ice-design/blocks/CollapseCard/.eslintrc rename to blocks/CollapseCard/.eslintrc diff --git a/templates/ice-design/blocks/CollapseCard/.gitignore b/blocks/CollapseCard/.gitignore similarity index 100% rename from templates/ice-design/blocks/CollapseCard/.gitignore rename to blocks/CollapseCard/.gitignore diff --git a/templates/ice-design/blocks/CollapseCard/README.md b/blocks/CollapseCard/README.md similarity index 100% rename from templates/ice-design/blocks/CollapseCard/README.md rename to blocks/CollapseCard/README.md diff --git a/templates/ice-design/blocks/CollapseCard/demo/index.html b/blocks/CollapseCard/demo/index.html similarity index 100% rename from templates/ice-design/blocks/CollapseCard/demo/index.html rename to blocks/CollapseCard/demo/index.html diff --git a/templates/ice-design/blocks/CollapseCard/demo/index.js b/blocks/CollapseCard/demo/index.js similarity index 100% rename from templates/ice-design/blocks/CollapseCard/demo/index.js rename to blocks/CollapseCard/demo/index.js diff --git a/templates/ice-design/blocks/CollapseCard/mock/api.json b/blocks/CollapseCard/mock/api.json similarity index 100% rename from templates/ice-design/blocks/CollapseCard/mock/api.json rename to blocks/CollapseCard/mock/api.json diff --git a/templates/ice-design/blocks/CollapseCard/package.json b/blocks/CollapseCard/package.json similarity index 100% rename from templates/ice-design/blocks/CollapseCard/package.json rename to blocks/CollapseCard/package.json diff --git a/templates/ice-design/blocks/CollapseCard/src/CollapseCard.jsx b/blocks/CollapseCard/src/CollapseCard.jsx similarity index 100% rename from templates/ice-design/blocks/CollapseCard/src/CollapseCard.jsx rename to blocks/CollapseCard/src/CollapseCard.jsx diff --git a/templates/ice-design/blocks/CollapseCard/src/CollapseCard.scss b/blocks/CollapseCard/src/CollapseCard.scss similarity index 100% rename from templates/ice-design/blocks/CollapseCard/src/CollapseCard.scss rename to blocks/CollapseCard/src/CollapseCard.scss diff --git a/templates/ice-design/blocks/CollapseCard/src/index.js b/blocks/CollapseCard/src/index.js similarity index 100% rename from templates/ice-design/blocks/CollapseCard/src/index.js rename to blocks/CollapseCard/src/index.js diff --git a/templates/ice-design/blocks/ComplexDialog/.editorconfig b/blocks/ComplexDialog/.editorconfig similarity index 100% rename from templates/ice-design/blocks/ComplexDialog/.editorconfig rename to blocks/ComplexDialog/.editorconfig diff --git a/templates/ice-design/blocks/ComplexDialog/.eslintignore b/blocks/ComplexDialog/.eslintignore similarity index 100% rename from templates/ice-design/blocks/ComplexDialog/.eslintignore rename to blocks/ComplexDialog/.eslintignore diff --git a/templates/ice-design/blocks/ComplexDialog/.eslintrc b/blocks/ComplexDialog/.eslintrc similarity index 100% rename from templates/ice-design/blocks/ComplexDialog/.eslintrc rename to blocks/ComplexDialog/.eslintrc diff --git a/templates/ice-design/blocks/ComplexDialog/.gitignore b/blocks/ComplexDialog/.gitignore similarity index 100% rename from templates/ice-design/blocks/ComplexDialog/.gitignore rename to blocks/ComplexDialog/.gitignore diff --git a/templates/ice-design/blocks/ComplexDialog/README.md b/blocks/ComplexDialog/README.md similarity index 100% rename from templates/ice-design/blocks/ComplexDialog/README.md rename to blocks/ComplexDialog/README.md diff --git a/templates/ice-design/blocks/ComplexDialog/demo/index.html b/blocks/ComplexDialog/demo/index.html similarity index 100% rename from templates/ice-design/blocks/ComplexDialog/demo/index.html rename to blocks/ComplexDialog/demo/index.html diff --git a/templates/ice-design/blocks/ComplexDialog/demo/index.js b/blocks/ComplexDialog/demo/index.js similarity index 100% rename from templates/ice-design/blocks/ComplexDialog/demo/index.js rename to blocks/ComplexDialog/demo/index.js diff --git a/templates/ice-design/blocks/ComplexDialog/mock/api.json b/blocks/ComplexDialog/mock/api.json similarity index 100% rename from templates/ice-design/blocks/ComplexDialog/mock/api.json rename to blocks/ComplexDialog/mock/api.json diff --git a/templates/ice-design/blocks/ComplexDialog/package.json b/blocks/ComplexDialog/package.json similarity index 100% rename from templates/ice-design/blocks/ComplexDialog/package.json rename to blocks/ComplexDialog/package.json diff --git a/templates/ice-design/blocks/ComplexDialog/src/ComplexDialog.jsx b/blocks/ComplexDialog/src/ComplexDialog.jsx similarity index 100% rename from templates/ice-design/blocks/ComplexDialog/src/ComplexDialog.jsx rename to blocks/ComplexDialog/src/ComplexDialog.jsx diff --git a/templates/ice-design/blocks/ComplexDialog/src/ComplexDialog.scss b/blocks/ComplexDialog/src/ComplexDialog.scss similarity index 100% rename from templates/ice-design/blocks/ComplexDialog/src/ComplexDialog.scss rename to blocks/ComplexDialog/src/ComplexDialog.scss diff --git a/templates/ice-design/blocks/ComplexDialog/src/CreateFuncDialog.js b/blocks/ComplexDialog/src/CreateFuncDialog.js similarity index 100% rename from templates/ice-design/blocks/ComplexDialog/src/CreateFuncDialog.js rename to blocks/ComplexDialog/src/CreateFuncDialog.js diff --git a/templates/ice-design/blocks/ComplexDialog/src/index.js b/blocks/ComplexDialog/src/index.js similarity index 100% rename from templates/ice-design/blocks/ComplexDialog/src/index.js rename to blocks/ComplexDialog/src/index.js diff --git a/templates/ice-design/blocks/ComplexFilter/.editorconfig b/blocks/ComplexFilter/.editorconfig similarity index 100% rename from templates/ice-design/blocks/ComplexFilter/.editorconfig rename to blocks/ComplexFilter/.editorconfig diff --git a/templates/ice-design/blocks/ComplexFilter/.eslintignore b/blocks/ComplexFilter/.eslintignore similarity index 100% rename from templates/ice-design/blocks/ComplexFilter/.eslintignore rename to blocks/ComplexFilter/.eslintignore diff --git a/templates/ice-design/blocks/ComplexFilter/.eslintrc b/blocks/ComplexFilter/.eslintrc similarity index 100% rename from templates/ice-design/blocks/ComplexFilter/.eslintrc rename to blocks/ComplexFilter/.eslintrc diff --git a/templates/ice-design/blocks/ComplexFilter/.gitignore b/blocks/ComplexFilter/.gitignore similarity index 100% rename from templates/ice-design/blocks/ComplexFilter/.gitignore rename to blocks/ComplexFilter/.gitignore diff --git a/templates/ice-design/blocks/ComplexFilter/README.md b/blocks/ComplexFilter/README.md similarity index 100% rename from templates/ice-design/blocks/ComplexFilter/README.md rename to blocks/ComplexFilter/README.md diff --git a/templates/ice-design/blocks/ComplexFilter/demo/index.html b/blocks/ComplexFilter/demo/index.html similarity index 100% rename from templates/ice-design/blocks/ComplexFilter/demo/index.html rename to blocks/ComplexFilter/demo/index.html diff --git a/templates/ice-design/blocks/ComplexFilter/demo/index.js b/blocks/ComplexFilter/demo/index.js similarity index 100% rename from templates/ice-design/blocks/ComplexFilter/demo/index.js rename to blocks/ComplexFilter/demo/index.js diff --git a/templates/ice-design/blocks/ComplexFilter/mock/api.json b/blocks/ComplexFilter/mock/api.json similarity index 100% rename from templates/ice-design/blocks/ComplexFilter/mock/api.json rename to blocks/ComplexFilter/mock/api.json diff --git a/templates/ice-design/blocks/ComplexFilter/package.json b/blocks/ComplexFilter/package.json similarity index 100% rename from templates/ice-design/blocks/ComplexFilter/package.json rename to blocks/ComplexFilter/package.json diff --git a/templates/ice-design/blocks/ComplexFilter/src/ComplexFilter.jsx b/blocks/ComplexFilter/src/ComplexFilter.jsx similarity index 100% rename from templates/ice-design/blocks/ComplexFilter/src/ComplexFilter.jsx rename to blocks/ComplexFilter/src/ComplexFilter.jsx diff --git a/templates/ice-design/blocks/ComplexFilter/src/ComplexFilter.scss b/blocks/ComplexFilter/src/ComplexFilter.scss similarity index 100% rename from templates/ice-design/blocks/ComplexFilter/src/ComplexFilter.scss rename to blocks/ComplexFilter/src/ComplexFilter.scss diff --git a/templates/ice-design/blocks/ComplexFilter/src/index.js b/blocks/ComplexFilter/src/index.js similarity index 100% rename from templates/ice-design/blocks/ComplexFilter/src/index.js rename to blocks/ComplexFilter/src/index.js diff --git a/templates/ice-design/blocks/ComplexProgressTable/.babelrc b/blocks/ComplexProgressTable/.babelrc similarity index 100% rename from templates/ice-design/blocks/ComplexProgressTable/.babelrc rename to blocks/ComplexProgressTable/.babelrc diff --git a/templates/ice-design/blocks/ComplexProgressTable/.editorconfig b/blocks/ComplexProgressTable/.editorconfig similarity index 100% rename from templates/ice-design/blocks/ComplexProgressTable/.editorconfig rename to blocks/ComplexProgressTable/.editorconfig diff --git a/templates/ice-design/blocks/ComplexProgressTable/.eslintignore b/blocks/ComplexProgressTable/.eslintignore similarity index 100% rename from templates/ice-design/blocks/ComplexProgressTable/.eslintignore rename to blocks/ComplexProgressTable/.eslintignore diff --git a/templates/ice-design/blocks/ComplexProgressTable/.eslintrc b/blocks/ComplexProgressTable/.eslintrc similarity index 100% rename from templates/ice-design/blocks/ComplexProgressTable/.eslintrc rename to blocks/ComplexProgressTable/.eslintrc diff --git a/templates/ice-design/blocks/ComplexProgressTable/.gitignore b/blocks/ComplexProgressTable/.gitignore similarity index 100% rename from templates/ice-design/blocks/ComplexProgressTable/.gitignore rename to blocks/ComplexProgressTable/.gitignore diff --git a/templates/ice-design/blocks/ComplexProgressTable/README.md b/blocks/ComplexProgressTable/README.md similarity index 100% rename from templates/ice-design/blocks/ComplexProgressTable/README.md rename to blocks/ComplexProgressTable/README.md diff --git a/templates/ice-design/blocks/ComplexProgressTable/demo/index.html b/blocks/ComplexProgressTable/demo/index.html similarity index 100% rename from templates/ice-design/blocks/ComplexProgressTable/demo/index.html rename to blocks/ComplexProgressTable/demo/index.html diff --git a/templates/ice-design/blocks/ComplexProgressTable/demo/index.js b/blocks/ComplexProgressTable/demo/index.js similarity index 100% rename from templates/ice-design/blocks/ComplexProgressTable/demo/index.js rename to blocks/ComplexProgressTable/demo/index.js diff --git a/templates/ice-design/blocks/ComplexProgressTable/mock/complex-progress-table.json b/blocks/ComplexProgressTable/mock/complex-progress-table.json similarity index 100% rename from templates/ice-design/blocks/ComplexProgressTable/mock/complex-progress-table.json rename to blocks/ComplexProgressTable/mock/complex-progress-table.json diff --git a/templates/ice-design/blocks/ComplexProgressTable/package.json b/blocks/ComplexProgressTable/package.json similarity index 100% rename from templates/ice-design/blocks/ComplexProgressTable/package.json rename to blocks/ComplexProgressTable/package.json diff --git a/templates/ice-design/blocks/ComplexProgressTable/src/ComplexProgressTable.jsx b/blocks/ComplexProgressTable/src/ComplexProgressTable.jsx similarity index 100% rename from templates/ice-design/blocks/ComplexProgressTable/src/ComplexProgressTable.jsx rename to blocks/ComplexProgressTable/src/ComplexProgressTable.jsx diff --git a/templates/ice-design/blocks/ComplexProgressTable/src/ComplexProgressTable.scss b/blocks/ComplexProgressTable/src/ComplexProgressTable.scss similarity index 100% rename from templates/ice-design/blocks/ComplexProgressTable/src/ComplexProgressTable.scss rename to blocks/ComplexProgressTable/src/ComplexProgressTable.scss diff --git a/templates/ice-design/blocks/ComplexProgressTable/src/CreateFuncDialog.jsx b/blocks/ComplexProgressTable/src/CreateFuncDialog.jsx similarity index 100% rename from templates/ice-design/blocks/ComplexProgressTable/src/CreateFuncDialog.jsx rename to blocks/ComplexProgressTable/src/CreateFuncDialog.jsx diff --git a/templates/ice-design/blocks/ComplexProgressTable/src/EditDialog.jsx b/blocks/ComplexProgressTable/src/EditDialog.jsx similarity index 100% rename from templates/ice-design/blocks/ComplexProgressTable/src/EditDialog.jsx rename to blocks/ComplexProgressTable/src/EditDialog.jsx diff --git a/templates/ice-design/blocks/ComplexProgressTable/src/index.js b/blocks/ComplexProgressTable/src/index.js similarity index 100% rename from templates/ice-design/blocks/ComplexProgressTable/src/index.js rename to blocks/ComplexProgressTable/src/index.js diff --git a/templates/ice-design/blocks/ComplexTabTable/.editorconfig b/blocks/ComplexTabTable/.editorconfig similarity index 100% rename from templates/ice-design/blocks/ComplexTabTable/.editorconfig rename to blocks/ComplexTabTable/.editorconfig diff --git a/templates/ice-design/blocks/ComplexTabTable/.eslintignore b/blocks/ComplexTabTable/.eslintignore similarity index 100% rename from templates/ice-design/blocks/ComplexTabTable/.eslintignore rename to blocks/ComplexTabTable/.eslintignore diff --git a/templates/ice-design/blocks/ComplexTabTable/.eslintrc b/blocks/ComplexTabTable/.eslintrc similarity index 100% rename from templates/ice-design/blocks/ComplexTabTable/.eslintrc rename to blocks/ComplexTabTable/.eslintrc diff --git a/templates/ice-design/blocks/ComplexTabTable/.gitignore b/blocks/ComplexTabTable/.gitignore similarity index 100% rename from templates/ice-design/blocks/ComplexTabTable/.gitignore rename to blocks/ComplexTabTable/.gitignore diff --git a/templates/ice-design/blocks/ComplexTabTable/README.md b/blocks/ComplexTabTable/README.md similarity index 100% rename from templates/ice-design/blocks/ComplexTabTable/README.md rename to blocks/ComplexTabTable/README.md diff --git a/templates/ice-design/blocks/ComplexTabTable/demo/index.html b/blocks/ComplexTabTable/demo/index.html similarity index 100% rename from templates/ice-design/blocks/ComplexTabTable/demo/index.html rename to blocks/ComplexTabTable/demo/index.html diff --git a/templates/ice-design/blocks/ComplexTabTable/demo/index.js b/blocks/ComplexTabTable/demo/index.js similarity index 100% rename from templates/ice-design/blocks/ComplexTabTable/demo/index.js rename to blocks/ComplexTabTable/demo/index.js diff --git a/templates/ice-design/blocks/ComplexTabTable/mock/complex-tab-table-list.json b/blocks/ComplexTabTable/mock/complex-tab-table-list.json similarity index 100% rename from templates/ice-design/blocks/ComplexTabTable/mock/complex-tab-table-list.json rename to blocks/ComplexTabTable/mock/complex-tab-table-list.json diff --git a/templates/ice-design/blocks/ComplexTabTable/package.json b/blocks/ComplexTabTable/package.json similarity index 100% rename from templates/ice-design/blocks/ComplexTabTable/package.json rename to blocks/ComplexTabTable/package.json diff --git a/templates/ice-design/blocks/ComplexTabTable/src/ComplexTabTable.jsx b/blocks/ComplexTabTable/src/ComplexTabTable.jsx similarity index 100% rename from templates/ice-design/blocks/ComplexTabTable/src/ComplexTabTable.jsx rename to blocks/ComplexTabTable/src/ComplexTabTable.jsx diff --git a/templates/ice-design/blocks/ComplexTabTable/src/ComplexTabTable.scss b/blocks/ComplexTabTable/src/ComplexTabTable.scss similarity index 100% rename from templates/ice-design/blocks/ComplexTabTable/src/ComplexTabTable.scss rename to blocks/ComplexTabTable/src/ComplexTabTable.scss diff --git a/templates/ice-design/blocks/ComplexTabTable/src/SubCategoryItem.jsx b/blocks/ComplexTabTable/src/SubCategoryItem.jsx similarity index 100% rename from templates/ice-design/blocks/ComplexTabTable/src/SubCategoryItem.jsx rename to blocks/ComplexTabTable/src/SubCategoryItem.jsx diff --git a/templates/ice-design/blocks/ComplexTabTable/src/index.js b/blocks/ComplexTabTable/src/index.js similarity index 100% rename from templates/ice-design/blocks/ComplexTabTable/src/index.js rename to blocks/ComplexTabTable/src/index.js diff --git a/templates/ice-design/blocks/CompositeFilter/.editorconfig b/blocks/CompositeFilter/.editorconfig similarity index 100% rename from templates/ice-design/blocks/CompositeFilter/.editorconfig rename to blocks/CompositeFilter/.editorconfig diff --git a/templates/ice-design/blocks/CompositeFilter/.eslintignore b/blocks/CompositeFilter/.eslintignore similarity index 100% rename from templates/ice-design/blocks/CompositeFilter/.eslintignore rename to blocks/CompositeFilter/.eslintignore diff --git a/templates/ice-design/blocks/CompositeFilter/.eslintrc b/blocks/CompositeFilter/.eslintrc similarity index 100% rename from templates/ice-design/blocks/CompositeFilter/.eslintrc rename to blocks/CompositeFilter/.eslintrc diff --git a/templates/ice-design/blocks/CompositeFilter/.gitignore b/blocks/CompositeFilter/.gitignore similarity index 100% rename from templates/ice-design/blocks/CompositeFilter/.gitignore rename to blocks/CompositeFilter/.gitignore diff --git a/templates/ice-design/blocks/CompositeFilter/README.md b/blocks/CompositeFilter/README.md similarity index 100% rename from templates/ice-design/blocks/CompositeFilter/README.md rename to blocks/CompositeFilter/README.md diff --git a/templates/ice-design/blocks/CompositeFilter/demo/index.html b/blocks/CompositeFilter/demo/index.html similarity index 100% rename from templates/ice-design/blocks/CompositeFilter/demo/index.html rename to blocks/CompositeFilter/demo/index.html diff --git a/templates/ice-design/blocks/CompositeFilter/demo/index.js b/blocks/CompositeFilter/demo/index.js similarity index 100% rename from templates/ice-design/blocks/CompositeFilter/demo/index.js rename to blocks/CompositeFilter/demo/index.js diff --git a/templates/ice-design/blocks/CompositeFilter/mock/api.json b/blocks/CompositeFilter/mock/api.json similarity index 100% rename from templates/ice-design/blocks/CompositeFilter/mock/api.json rename to blocks/CompositeFilter/mock/api.json diff --git a/templates/ice-design/blocks/CompositeFilter/package.json b/blocks/CompositeFilter/package.json similarity index 100% rename from templates/ice-design/blocks/CompositeFilter/package.json rename to blocks/CompositeFilter/package.json diff --git a/templates/ice-design/blocks/CompositeFilter/src/CompositeFilter.jsx b/blocks/CompositeFilter/src/CompositeFilter.jsx similarity index 100% rename from templates/ice-design/blocks/CompositeFilter/src/CompositeFilter.jsx rename to blocks/CompositeFilter/src/CompositeFilter.jsx diff --git a/templates/ice-design/blocks/CompositeFilter/src/CompositeFilter.scss b/blocks/CompositeFilter/src/CompositeFilter.scss similarity index 100% rename from templates/ice-design/blocks/CompositeFilter/src/CompositeFilter.scss rename to blocks/CompositeFilter/src/CompositeFilter.scss diff --git a/templates/ice-design/blocks/CompositeFilter/src/index.js b/blocks/CompositeFilter/src/index.js similarity index 100% rename from templates/ice-design/blocks/CompositeFilter/src/index.js rename to blocks/CompositeFilter/src/index.js diff --git a/templates/ice-design/blocks/ConfirmDialog/.editorconfig b/blocks/ConfirmDialog/.editorconfig similarity index 100% rename from templates/ice-design/blocks/ConfirmDialog/.editorconfig rename to blocks/ConfirmDialog/.editorconfig diff --git a/templates/ice-design/blocks/ConfirmDialog/.eslintignore b/blocks/ConfirmDialog/.eslintignore similarity index 100% rename from templates/ice-design/blocks/ConfirmDialog/.eslintignore rename to blocks/ConfirmDialog/.eslintignore diff --git a/templates/ice-design/blocks/ConfirmDialog/.eslintrc b/blocks/ConfirmDialog/.eslintrc similarity index 100% rename from templates/ice-design/blocks/ConfirmDialog/.eslintrc rename to blocks/ConfirmDialog/.eslintrc diff --git a/templates/ice-design/blocks/ConfirmDialog/.gitignore b/blocks/ConfirmDialog/.gitignore similarity index 100% rename from templates/ice-design/blocks/ConfirmDialog/.gitignore rename to blocks/ConfirmDialog/.gitignore diff --git a/templates/ice-design/blocks/ConfirmDialog/README.md b/blocks/ConfirmDialog/README.md similarity index 100% rename from templates/ice-design/blocks/ConfirmDialog/README.md rename to blocks/ConfirmDialog/README.md diff --git a/templates/ice-design/blocks/ConfirmDialog/demo/index.html b/blocks/ConfirmDialog/demo/index.html similarity index 100% rename from templates/ice-design/blocks/ConfirmDialog/demo/index.html rename to blocks/ConfirmDialog/demo/index.html diff --git a/templates/ice-design/blocks/ConfirmDialog/demo/index.js b/blocks/ConfirmDialog/demo/index.js similarity index 100% rename from templates/ice-design/blocks/ConfirmDialog/demo/index.js rename to blocks/ConfirmDialog/demo/index.js diff --git a/templates/ice-design/blocks/ConfirmDialog/mock/api.json b/blocks/ConfirmDialog/mock/api.json similarity index 100% rename from templates/ice-design/blocks/ConfirmDialog/mock/api.json rename to blocks/ConfirmDialog/mock/api.json diff --git a/templates/ice-design/blocks/ConfirmDialog/package.json b/blocks/ConfirmDialog/package.json similarity index 100% rename from templates/ice-design/blocks/ConfirmDialog/package.json rename to blocks/ConfirmDialog/package.json diff --git a/templates/ice-design/blocks/ConfirmDialog/src/ConfirmDialog.jsx b/blocks/ConfirmDialog/src/ConfirmDialog.jsx similarity index 100% rename from templates/ice-design/blocks/ConfirmDialog/src/ConfirmDialog.jsx rename to blocks/ConfirmDialog/src/ConfirmDialog.jsx diff --git a/templates/ice-design/blocks/ConfirmDialog/src/ConfirmDialog.scss b/blocks/ConfirmDialog/src/ConfirmDialog.scss similarity index 100% rename from templates/ice-design/blocks/ConfirmDialog/src/ConfirmDialog.scss rename to blocks/ConfirmDialog/src/ConfirmDialog.scss diff --git a/templates/ice-design/blocks/ConfirmDialog/src/CreateFuncDialog.js b/blocks/ConfirmDialog/src/CreateFuncDialog.js similarity index 100% rename from templates/ice-design/blocks/ConfirmDialog/src/CreateFuncDialog.js rename to blocks/ConfirmDialog/src/CreateFuncDialog.js diff --git a/templates/ice-design/blocks/ConfirmDialog/src/index.js b/blocks/ConfirmDialog/src/index.js similarity index 100% rename from templates/ice-design/blocks/ConfirmDialog/src/index.js rename to blocks/ConfirmDialog/src/index.js diff --git a/templates/ice-design/blocks/DataDisplay/.editorconfig b/blocks/DataDisplay/.editorconfig similarity index 100% rename from templates/ice-design/blocks/DataDisplay/.editorconfig rename to blocks/DataDisplay/.editorconfig diff --git a/templates/ice-design/blocks/DataDisplay/.eslintignore b/blocks/DataDisplay/.eslintignore similarity index 100% rename from templates/ice-design/blocks/DataDisplay/.eslintignore rename to blocks/DataDisplay/.eslintignore diff --git a/templates/ice-design/blocks/DataDisplay/.eslintrc b/blocks/DataDisplay/.eslintrc similarity index 100% rename from templates/ice-design/blocks/DataDisplay/.eslintrc rename to blocks/DataDisplay/.eslintrc diff --git a/templates/ice-design/blocks/DataDisplay/.gitignore b/blocks/DataDisplay/.gitignore similarity index 100% rename from templates/ice-design/blocks/DataDisplay/.gitignore rename to blocks/DataDisplay/.gitignore diff --git a/templates/ice-design/blocks/DataDisplay/README.md b/blocks/DataDisplay/README.md similarity index 100% rename from templates/ice-design/blocks/DataDisplay/README.md rename to blocks/DataDisplay/README.md diff --git a/templates/ice-design/blocks/DataDisplay/demo/index.html b/blocks/DataDisplay/demo/index.html similarity index 100% rename from templates/ice-design/blocks/DataDisplay/demo/index.html rename to blocks/DataDisplay/demo/index.html diff --git a/templates/ice-design/blocks/DataDisplay/demo/index.js b/blocks/DataDisplay/demo/index.js similarity index 100% rename from templates/ice-design/blocks/DataDisplay/demo/index.js rename to blocks/DataDisplay/demo/index.js diff --git a/templates/ice-design/blocks/DataDisplay/mock/api.json b/blocks/DataDisplay/mock/api.json similarity index 100% rename from templates/ice-design/blocks/DataDisplay/mock/api.json rename to blocks/DataDisplay/mock/api.json diff --git a/templates/ice-design/blocks/DataDisplay/package.json b/blocks/DataDisplay/package.json similarity index 100% rename from templates/ice-design/blocks/DataDisplay/package.json rename to blocks/DataDisplay/package.json diff --git a/templates/ice-design/blocks/DataDisplay/src/DataDisplay.jsx b/blocks/DataDisplay/src/DataDisplay.jsx similarity index 100% rename from templates/ice-design/blocks/DataDisplay/src/DataDisplay.jsx rename to blocks/DataDisplay/src/DataDisplay.jsx diff --git a/templates/ice-design/blocks/DataDisplay/src/DataDisplay.scss b/blocks/DataDisplay/src/DataDisplay.scss similarity index 100% rename from templates/ice-design/blocks/DataDisplay/src/DataDisplay.scss rename to blocks/DataDisplay/src/DataDisplay.scss diff --git a/templates/ice-design/blocks/DataDisplay/src/index.js b/blocks/DataDisplay/src/index.js similarity index 100% rename from templates/ice-design/blocks/DataDisplay/src/index.js rename to blocks/DataDisplay/src/index.js diff --git a/templates/ice-design/blocks/DetailTable/.editorconfig b/blocks/DetailTable/.editorconfig similarity index 100% rename from templates/ice-design/blocks/DetailTable/.editorconfig rename to blocks/DetailTable/.editorconfig diff --git a/templates/ice-design/blocks/DetailTable/.eslintignore b/blocks/DetailTable/.eslintignore similarity index 100% rename from templates/ice-design/blocks/DetailTable/.eslintignore rename to blocks/DetailTable/.eslintignore diff --git a/templates/ice-design/blocks/DetailTable/.eslintrc b/blocks/DetailTable/.eslintrc similarity index 100% rename from templates/ice-design/blocks/DetailTable/.eslintrc rename to blocks/DetailTable/.eslintrc diff --git a/templates/ice-design/blocks/DetailTable/.gitignore b/blocks/DetailTable/.gitignore similarity index 100% rename from templates/ice-design/blocks/DetailTable/.gitignore rename to blocks/DetailTable/.gitignore diff --git a/templates/ice-design/blocks/DetailTable/README.md b/blocks/DetailTable/README.md similarity index 100% rename from templates/ice-design/blocks/DetailTable/README.md rename to blocks/DetailTable/README.md diff --git a/templates/ice-design/blocks/DetailTable/demo/index.html b/blocks/DetailTable/demo/index.html similarity index 100% rename from templates/ice-design/blocks/DetailTable/demo/index.html rename to blocks/DetailTable/demo/index.html diff --git a/templates/ice-design/blocks/DetailTable/demo/index.js b/blocks/DetailTable/demo/index.js similarity index 100% rename from templates/ice-design/blocks/DetailTable/demo/index.js rename to blocks/DetailTable/demo/index.js diff --git a/templates/ice-design/blocks/DetailTable/mock/api.json b/blocks/DetailTable/mock/api.json similarity index 100% rename from templates/ice-design/blocks/DetailTable/mock/api.json rename to blocks/DetailTable/mock/api.json diff --git a/templates/ice-design/blocks/DetailTable/package.json b/blocks/DetailTable/package.json similarity index 100% rename from templates/ice-design/blocks/DetailTable/package.json rename to blocks/DetailTable/package.json diff --git a/templates/ice-design/blocks/DetailTable/src/DetailTable.jsx b/blocks/DetailTable/src/DetailTable.jsx similarity index 100% rename from templates/ice-design/blocks/DetailTable/src/DetailTable.jsx rename to blocks/DetailTable/src/DetailTable.jsx diff --git a/templates/ice-design/blocks/DetailTable/src/DetailTable.scss b/blocks/DetailTable/src/DetailTable.scss similarity index 100% rename from templates/ice-design/blocks/DetailTable/src/DetailTable.scss rename to blocks/DetailTable/src/DetailTable.scss diff --git a/templates/ice-design/blocks/DetailTable/src/index.js b/blocks/DetailTable/src/index.js similarity index 100% rename from templates/ice-design/blocks/DetailTable/src/index.js rename to blocks/DetailTable/src/index.js diff --git a/templates/ice-design/blocks/DisplayCard/.editorconfig b/blocks/DisplayCard/.editorconfig similarity index 100% rename from templates/ice-design/blocks/DisplayCard/.editorconfig rename to blocks/DisplayCard/.editorconfig diff --git a/templates/ice-design/blocks/DisplayCard/.eslintignore b/blocks/DisplayCard/.eslintignore similarity index 100% rename from templates/ice-design/blocks/DisplayCard/.eslintignore rename to blocks/DisplayCard/.eslintignore diff --git a/templates/ice-design/blocks/DisplayCard/.eslintrc b/blocks/DisplayCard/.eslintrc similarity index 100% rename from templates/ice-design/blocks/DisplayCard/.eslintrc rename to blocks/DisplayCard/.eslintrc diff --git a/templates/ice-design/blocks/DisplayCard/.gitignore b/blocks/DisplayCard/.gitignore similarity index 100% rename from templates/ice-design/blocks/DisplayCard/.gitignore rename to blocks/DisplayCard/.gitignore diff --git a/templates/ice-design/blocks/DisplayCard/README.md b/blocks/DisplayCard/README.md similarity index 100% rename from templates/ice-design/blocks/DisplayCard/README.md rename to blocks/DisplayCard/README.md diff --git a/templates/ice-design/blocks/DisplayCard/demo/index.html b/blocks/DisplayCard/demo/index.html similarity index 100% rename from templates/ice-design/blocks/DisplayCard/demo/index.html rename to blocks/DisplayCard/demo/index.html diff --git a/templates/ice-design/blocks/DisplayCard/demo/index.js b/blocks/DisplayCard/demo/index.js similarity index 100% rename from templates/ice-design/blocks/DisplayCard/demo/index.js rename to blocks/DisplayCard/demo/index.js diff --git a/templates/ice-design/blocks/DisplayCard/mock/api.json b/blocks/DisplayCard/mock/api.json similarity index 100% rename from templates/ice-design/blocks/DisplayCard/mock/api.json rename to blocks/DisplayCard/mock/api.json diff --git a/templates/ice-design/blocks/DisplayCard/package.json b/blocks/DisplayCard/package.json similarity index 100% rename from templates/ice-design/blocks/DisplayCard/package.json rename to blocks/DisplayCard/package.json diff --git a/templates/ice-design/blocks/DisplayCard/src/DisplayCard.jsx b/blocks/DisplayCard/src/DisplayCard.jsx similarity index 100% rename from templates/ice-design/blocks/DisplayCard/src/DisplayCard.jsx rename to blocks/DisplayCard/src/DisplayCard.jsx diff --git a/templates/ice-design/blocks/DisplayCard/src/DisplayCard.scss b/blocks/DisplayCard/src/DisplayCard.scss similarity index 100% rename from templates/ice-design/blocks/DisplayCard/src/DisplayCard.scss rename to blocks/DisplayCard/src/DisplayCard.scss diff --git a/templates/ice-design/blocks/DisplayCard/src/index.js b/blocks/DisplayCard/src/index.js similarity index 100% rename from templates/ice-design/blocks/DisplayCard/src/index.js rename to blocks/DisplayCard/src/index.js diff --git a/templates/ice-design/blocks/DownloadCard/.editorconfig b/blocks/DownloadCard/.editorconfig similarity index 100% rename from templates/ice-design/blocks/DownloadCard/.editorconfig rename to blocks/DownloadCard/.editorconfig diff --git a/templates/ice-design/blocks/DownloadCard/.eslintignore b/blocks/DownloadCard/.eslintignore similarity index 100% rename from templates/ice-design/blocks/DownloadCard/.eslintignore rename to blocks/DownloadCard/.eslintignore diff --git a/templates/ice-design/blocks/DownloadCard/.eslintrc b/blocks/DownloadCard/.eslintrc similarity index 100% rename from templates/ice-design/blocks/DownloadCard/.eslintrc rename to blocks/DownloadCard/.eslintrc diff --git a/templates/ice-design/blocks/DownloadCard/.gitignore b/blocks/DownloadCard/.gitignore similarity index 100% rename from templates/ice-design/blocks/DownloadCard/.gitignore rename to blocks/DownloadCard/.gitignore diff --git a/templates/ice-design/blocks/DownloadCard/README.md b/blocks/DownloadCard/README.md similarity index 100% rename from templates/ice-design/blocks/DownloadCard/README.md rename to blocks/DownloadCard/README.md diff --git a/templates/ice-design/blocks/DownloadCard/demo/index.html b/blocks/DownloadCard/demo/index.html similarity index 100% rename from templates/ice-design/blocks/DownloadCard/demo/index.html rename to blocks/DownloadCard/demo/index.html diff --git a/templates/ice-design/blocks/DownloadCard/demo/index.js b/blocks/DownloadCard/demo/index.js similarity index 100% rename from templates/ice-design/blocks/DownloadCard/demo/index.js rename to blocks/DownloadCard/demo/index.js diff --git a/templates/ice-design/blocks/DownloadCard/mock/api.json b/blocks/DownloadCard/mock/api.json similarity index 100% rename from templates/ice-design/blocks/DownloadCard/mock/api.json rename to blocks/DownloadCard/mock/api.json diff --git a/templates/ice-design/blocks/DownloadCard/mock/download-card.json b/blocks/DownloadCard/mock/download-card.json similarity index 100% rename from templates/ice-design/blocks/DownloadCard/mock/download-card.json rename to blocks/DownloadCard/mock/download-card.json diff --git a/templates/ice-design/blocks/DownloadCard/package.json b/blocks/DownloadCard/package.json similarity index 100% rename from templates/ice-design/blocks/DownloadCard/package.json rename to blocks/DownloadCard/package.json diff --git a/templates/ice-design/blocks/DownloadCard/src/DownloadCard.jsx b/blocks/DownloadCard/src/DownloadCard.jsx similarity index 100% rename from templates/ice-design/blocks/DownloadCard/src/DownloadCard.jsx rename to blocks/DownloadCard/src/DownloadCard.jsx diff --git a/templates/ice-design/blocks/DownloadCard/src/DownloadCard.scss b/blocks/DownloadCard/src/DownloadCard.scss similarity index 100% rename from templates/ice-design/blocks/DownloadCard/src/DownloadCard.scss rename to blocks/DownloadCard/src/DownloadCard.scss diff --git a/templates/ice-design/blocks/DownloadCard/src/index.js b/blocks/DownloadCard/src/index.js similarity index 100% rename from templates/ice-design/blocks/DownloadCard/src/index.js rename to blocks/DownloadCard/src/index.js diff --git a/templates/ice-design/blocks/DynamicBanner/.editorconfig b/blocks/DynamicBanner/.editorconfig similarity index 100% rename from templates/ice-design/blocks/DynamicBanner/.editorconfig rename to blocks/DynamicBanner/.editorconfig diff --git a/templates/ice-design/blocks/DynamicBanner/.eslintignore b/blocks/DynamicBanner/.eslintignore similarity index 100% rename from templates/ice-design/blocks/DynamicBanner/.eslintignore rename to blocks/DynamicBanner/.eslintignore diff --git a/templates/ice-design/blocks/DynamicBanner/.eslintrc b/blocks/DynamicBanner/.eslintrc similarity index 100% rename from templates/ice-design/blocks/DynamicBanner/.eslintrc rename to blocks/DynamicBanner/.eslintrc diff --git a/templates/ice-design/blocks/DynamicBanner/.gitignore b/blocks/DynamicBanner/.gitignore similarity index 100% rename from templates/ice-design/blocks/DynamicBanner/.gitignore rename to blocks/DynamicBanner/.gitignore diff --git a/templates/ice-design/blocks/DynamicBanner/README.md b/blocks/DynamicBanner/README.md similarity index 100% rename from templates/ice-design/blocks/DynamicBanner/README.md rename to blocks/DynamicBanner/README.md diff --git a/templates/ice-design/blocks/DynamicBanner/demo/index.html b/blocks/DynamicBanner/demo/index.html similarity index 100% rename from templates/ice-design/blocks/DynamicBanner/demo/index.html rename to blocks/DynamicBanner/demo/index.html diff --git a/templates/ice-design/blocks/DynamicBanner/demo/index.js b/blocks/DynamicBanner/demo/index.js similarity index 100% rename from templates/ice-design/blocks/DynamicBanner/demo/index.js rename to blocks/DynamicBanner/demo/index.js diff --git a/templates/ice-design/blocks/DynamicBanner/mock/api.json b/blocks/DynamicBanner/mock/api.json similarity index 100% rename from templates/ice-design/blocks/DynamicBanner/mock/api.json rename to blocks/DynamicBanner/mock/api.json diff --git a/templates/ice-design/blocks/DynamicBanner/package.json b/blocks/DynamicBanner/package.json similarity index 100% rename from templates/ice-design/blocks/DynamicBanner/package.json rename to blocks/DynamicBanner/package.json diff --git a/templates/ice-design/blocks/DynamicBanner/src/DynamicBanner.jsx b/blocks/DynamicBanner/src/DynamicBanner.jsx similarity index 100% rename from templates/ice-design/blocks/DynamicBanner/src/DynamicBanner.jsx rename to blocks/DynamicBanner/src/DynamicBanner.jsx diff --git a/templates/ice-design/blocks/DynamicBanner/src/DynamicBanner.scss b/blocks/DynamicBanner/src/DynamicBanner.scss similarity index 100% rename from templates/ice-design/blocks/DynamicBanner/src/DynamicBanner.scss rename to blocks/DynamicBanner/src/DynamicBanner.scss diff --git a/templates/ice-design/blocks/DynamicBanner/src/index.js b/blocks/DynamicBanner/src/index.js similarity index 100% rename from templates/ice-design/blocks/DynamicBanner/src/index.js rename to blocks/DynamicBanner/src/index.js diff --git a/templates/ice-design/blocks/EditableTable/.editorconfig b/blocks/EditableTable/.editorconfig similarity index 100% rename from templates/ice-design/blocks/EditableTable/.editorconfig rename to blocks/EditableTable/.editorconfig diff --git a/templates/ice-design/blocks/EditableTable/.eslintignore b/blocks/EditableTable/.eslintignore similarity index 100% rename from templates/ice-design/blocks/EditableTable/.eslintignore rename to blocks/EditableTable/.eslintignore diff --git a/templates/ice-design/blocks/EditableTable/.eslintrc b/blocks/EditableTable/.eslintrc similarity index 100% rename from templates/ice-design/blocks/EditableTable/.eslintrc rename to blocks/EditableTable/.eslintrc diff --git a/templates/ice-design/blocks/EditableTable/.gitignore b/blocks/EditableTable/.gitignore similarity index 100% rename from templates/ice-design/blocks/EditableTable/.gitignore rename to blocks/EditableTable/.gitignore diff --git a/templates/ice-design/blocks/EditableTable/README.md b/blocks/EditableTable/README.md similarity index 100% rename from templates/ice-design/blocks/EditableTable/README.md rename to blocks/EditableTable/README.md diff --git a/templates/ice-design/blocks/EditableTable/demo/index.html b/blocks/EditableTable/demo/index.html similarity index 100% rename from templates/ice-design/blocks/EditableTable/demo/index.html rename to blocks/EditableTable/demo/index.html diff --git a/templates/ice-design/blocks/EditableTable/demo/index.js b/blocks/EditableTable/demo/index.js similarity index 100% rename from templates/ice-design/blocks/EditableTable/demo/index.js rename to blocks/EditableTable/demo/index.js diff --git a/templates/ice-design/blocks/EditableTable/mock/api.json b/blocks/EditableTable/mock/api.json similarity index 100% rename from templates/ice-design/blocks/EditableTable/mock/api.json rename to blocks/EditableTable/mock/api.json diff --git a/templates/ice-design/blocks/EditableTable/package.json b/blocks/EditableTable/package.json similarity index 100% rename from templates/ice-design/blocks/EditableTable/package.json rename to blocks/EditableTable/package.json diff --git a/templates/ice-design/blocks/EditableTable/src/CellEditor.jsx b/blocks/EditableTable/src/CellEditor.jsx similarity index 100% rename from templates/ice-design/blocks/EditableTable/src/CellEditor.jsx rename to blocks/EditableTable/src/CellEditor.jsx diff --git a/templates/ice-design/blocks/EditableTable/src/EditableTable.jsx b/blocks/EditableTable/src/EditableTable.jsx similarity index 100% rename from templates/ice-design/blocks/EditableTable/src/EditableTable.jsx rename to blocks/EditableTable/src/EditableTable.jsx diff --git a/templates/ice-design/blocks/EditableTable/src/EditableTable.scss b/blocks/EditableTable/src/EditableTable.scss similarity index 100% rename from templates/ice-design/blocks/EditableTable/src/EditableTable.scss rename to blocks/EditableTable/src/EditableTable.scss diff --git a/templates/ice-design/blocks/EditableTable/src/index.js b/blocks/EditableTable/src/index.js similarity index 100% rename from templates/ice-design/blocks/EditableTable/src/index.js rename to blocks/EditableTable/src/index.js diff --git a/templates/ice-design/blocks/EmptyContent/.editorconfig b/blocks/EmptyContent/.editorconfig similarity index 100% rename from templates/ice-design/blocks/EmptyContent/.editorconfig rename to blocks/EmptyContent/.editorconfig diff --git a/templates/ice-design/blocks/EmptyContent/.eslintignore b/blocks/EmptyContent/.eslintignore similarity index 100% rename from templates/ice-design/blocks/EmptyContent/.eslintignore rename to blocks/EmptyContent/.eslintignore diff --git a/templates/ice-design/blocks/EmptyContent/.eslintrc b/blocks/EmptyContent/.eslintrc similarity index 100% rename from templates/ice-design/blocks/EmptyContent/.eslintrc rename to blocks/EmptyContent/.eslintrc diff --git a/templates/ice-design/blocks/EmptyContent/.gitignore b/blocks/EmptyContent/.gitignore similarity index 100% rename from templates/ice-design/blocks/EmptyContent/.gitignore rename to blocks/EmptyContent/.gitignore diff --git a/templates/ice-design/blocks/EmptyContent/README.md b/blocks/EmptyContent/README.md similarity index 100% rename from templates/ice-design/blocks/EmptyContent/README.md rename to blocks/EmptyContent/README.md diff --git a/templates/ice-design/blocks/EmptyContent/demo/index.html b/blocks/EmptyContent/demo/index.html similarity index 100% rename from templates/ice-design/blocks/EmptyContent/demo/index.html rename to blocks/EmptyContent/demo/index.html diff --git a/templates/ice-design/blocks/EmptyContent/demo/index.js b/blocks/EmptyContent/demo/index.js similarity index 100% rename from templates/ice-design/blocks/EmptyContent/demo/index.js rename to blocks/EmptyContent/demo/index.js diff --git a/templates/ice-design/blocks/EmptyContent/mock/api.json b/blocks/EmptyContent/mock/api.json similarity index 100% rename from templates/ice-design/blocks/EmptyContent/mock/api.json rename to blocks/EmptyContent/mock/api.json diff --git a/templates/ice-design/blocks/EmptyContent/package.json b/blocks/EmptyContent/package.json similarity index 100% rename from templates/ice-design/blocks/EmptyContent/package.json rename to blocks/EmptyContent/package.json diff --git a/templates/ice-design/blocks/EmptyContent/src/EmptyContent.jsx b/blocks/EmptyContent/src/EmptyContent.jsx similarity index 100% rename from templates/ice-design/blocks/EmptyContent/src/EmptyContent.jsx rename to blocks/EmptyContent/src/EmptyContent.jsx diff --git a/templates/ice-design/blocks/EmptyContent/src/EmptyContent.scss b/blocks/EmptyContent/src/EmptyContent.scss similarity index 100% rename from templates/ice-design/blocks/EmptyContent/src/EmptyContent.scss rename to blocks/EmptyContent/src/EmptyContent.scss diff --git a/templates/ice-design/blocks/EmptyContent/src/index.js b/blocks/EmptyContent/src/index.js similarity index 100% rename from templates/ice-design/blocks/EmptyContent/src/index.js rename to blocks/EmptyContent/src/index.js diff --git a/templates/ice-design/blocks/EnhanceTable/.editorconfig b/blocks/EnhanceTable/.editorconfig similarity index 100% rename from templates/ice-design/blocks/EnhanceTable/.editorconfig rename to blocks/EnhanceTable/.editorconfig diff --git a/templates/ice-design/blocks/EnhanceTable/.eslintignore b/blocks/EnhanceTable/.eslintignore similarity index 100% rename from templates/ice-design/blocks/EnhanceTable/.eslintignore rename to blocks/EnhanceTable/.eslintignore diff --git a/templates/ice-design/blocks/EnhanceTable/.eslintrc b/blocks/EnhanceTable/.eslintrc similarity index 100% rename from templates/ice-design/blocks/EnhanceTable/.eslintrc rename to blocks/EnhanceTable/.eslintrc diff --git a/templates/ice-design/blocks/EnhanceTable/.gitignore b/blocks/EnhanceTable/.gitignore similarity index 100% rename from templates/ice-design/blocks/EnhanceTable/.gitignore rename to blocks/EnhanceTable/.gitignore diff --git a/templates/ice-design/blocks/EnhanceTable/README.md b/blocks/EnhanceTable/README.md similarity index 100% rename from templates/ice-design/blocks/EnhanceTable/README.md rename to blocks/EnhanceTable/README.md diff --git a/templates/ice-design/blocks/EnhanceTable/demo/index.html b/blocks/EnhanceTable/demo/index.html similarity index 100% rename from templates/ice-design/blocks/EnhanceTable/demo/index.html rename to blocks/EnhanceTable/demo/index.html diff --git a/templates/ice-design/blocks/EnhanceTable/demo/index.js b/blocks/EnhanceTable/demo/index.js similarity index 100% rename from templates/ice-design/blocks/EnhanceTable/demo/index.js rename to blocks/EnhanceTable/demo/index.js diff --git a/templates/ice-design/blocks/EnhanceTable/mock/enhance-table-list.json b/blocks/EnhanceTable/mock/enhance-table-list.json similarity index 100% rename from templates/ice-design/blocks/EnhanceTable/mock/enhance-table-list.json rename to blocks/EnhanceTable/mock/enhance-table-list.json diff --git a/templates/ice-design/blocks/EnhanceTable/package.json b/blocks/EnhanceTable/package.json similarity index 100% rename from templates/ice-design/blocks/EnhanceTable/package.json rename to blocks/EnhanceTable/package.json diff --git a/templates/ice-design/blocks/EnhanceTable/src/EnhanceTable.jsx b/blocks/EnhanceTable/src/EnhanceTable.jsx similarity index 100% rename from templates/ice-design/blocks/EnhanceTable/src/EnhanceTable.jsx rename to blocks/EnhanceTable/src/EnhanceTable.jsx diff --git a/templates/ice-design/blocks/EnhanceTable/src/EnhanceTable.scss b/blocks/EnhanceTable/src/EnhanceTable.scss similarity index 100% rename from templates/ice-design/blocks/EnhanceTable/src/EnhanceTable.scss rename to blocks/EnhanceTable/src/EnhanceTable.scss diff --git a/templates/ice-design/blocks/EnhanceTable/src/index.js b/blocks/EnhanceTable/src/index.js similarity index 100% rename from templates/ice-design/blocks/EnhanceTable/src/index.js rename to blocks/EnhanceTable/src/index.js diff --git a/templates/ice-design/blocks/EntryCard/.editorconfig b/blocks/EntryCard/.editorconfig similarity index 100% rename from templates/ice-design/blocks/EntryCard/.editorconfig rename to blocks/EntryCard/.editorconfig diff --git a/templates/ice-design/blocks/EntryCard/.eslintignore b/blocks/EntryCard/.eslintignore similarity index 100% rename from templates/ice-design/blocks/EntryCard/.eslintignore rename to blocks/EntryCard/.eslintignore diff --git a/templates/ice-design/blocks/EntryCard/.eslintrc b/blocks/EntryCard/.eslintrc similarity index 100% rename from templates/ice-design/blocks/EntryCard/.eslintrc rename to blocks/EntryCard/.eslintrc diff --git a/templates/ice-design/blocks/EntryCard/.gitignore b/blocks/EntryCard/.gitignore similarity index 100% rename from templates/ice-design/blocks/EntryCard/.gitignore rename to blocks/EntryCard/.gitignore diff --git a/templates/ice-design/blocks/EntryCard/README.md b/blocks/EntryCard/README.md similarity index 100% rename from templates/ice-design/blocks/EntryCard/README.md rename to blocks/EntryCard/README.md diff --git a/templates/ice-design/blocks/EntryCard/demo/index.html b/blocks/EntryCard/demo/index.html similarity index 100% rename from templates/ice-design/blocks/EntryCard/demo/index.html rename to blocks/EntryCard/demo/index.html diff --git a/templates/ice-design/blocks/EntryCard/demo/index.js b/blocks/EntryCard/demo/index.js similarity index 100% rename from templates/ice-design/blocks/EntryCard/demo/index.js rename to blocks/EntryCard/demo/index.js diff --git a/templates/ice-design/blocks/EntryCard/mock/api.json b/blocks/EntryCard/mock/api.json similarity index 100% rename from templates/ice-design/blocks/EntryCard/mock/api.json rename to blocks/EntryCard/mock/api.json diff --git a/templates/ice-design/blocks/EntryCard/package.json b/blocks/EntryCard/package.json similarity index 100% rename from templates/ice-design/blocks/EntryCard/package.json rename to blocks/EntryCard/package.json diff --git a/templates/ice-design/blocks/EntryCard/src/EntryCard.jsx b/blocks/EntryCard/src/EntryCard.jsx similarity index 100% rename from templates/ice-design/blocks/EntryCard/src/EntryCard.jsx rename to blocks/EntryCard/src/EntryCard.jsx diff --git a/templates/ice-design/blocks/EntryCard/lib/EntryCard.scss b/blocks/EntryCard/src/EntryCard.scss similarity index 100% rename from templates/ice-design/blocks/EntryCard/lib/EntryCard.scss rename to blocks/EntryCard/src/EntryCard.scss diff --git a/templates/ice-design/blocks/EntryCard/src/index.js b/blocks/EntryCard/src/index.js similarity index 100% rename from templates/ice-design/blocks/EntryCard/src/index.js rename to blocks/EntryCard/src/index.js diff --git a/templates/ice-design/blocks/FailureDetail/.editorconfig b/blocks/FailureDetail/.editorconfig similarity index 100% rename from templates/ice-design/blocks/FailureDetail/.editorconfig rename to blocks/FailureDetail/.editorconfig diff --git a/templates/ice-design/blocks/FailureDetail/.eslintignore b/blocks/FailureDetail/.eslintignore similarity index 100% rename from templates/ice-design/blocks/FailureDetail/.eslintignore rename to blocks/FailureDetail/.eslintignore diff --git a/templates/ice-design/blocks/FailureDetail/.eslintrc b/blocks/FailureDetail/.eslintrc similarity index 100% rename from templates/ice-design/blocks/FailureDetail/.eslintrc rename to blocks/FailureDetail/.eslintrc diff --git a/templates/ice-design/blocks/FailureDetail/.gitignore b/blocks/FailureDetail/.gitignore similarity index 100% rename from templates/ice-design/blocks/FailureDetail/.gitignore rename to blocks/FailureDetail/.gitignore diff --git a/templates/ice-design/blocks/FailureDetail/README.md b/blocks/FailureDetail/README.md similarity index 100% rename from templates/ice-design/blocks/FailureDetail/README.md rename to blocks/FailureDetail/README.md diff --git a/templates/ice-design/blocks/FailureDetail/demo/index.html b/blocks/FailureDetail/demo/index.html similarity index 100% rename from templates/ice-design/blocks/FailureDetail/demo/index.html rename to blocks/FailureDetail/demo/index.html diff --git a/templates/ice-design/blocks/FailureDetail/demo/index.js b/blocks/FailureDetail/demo/index.js similarity index 100% rename from templates/ice-design/blocks/FailureDetail/demo/index.js rename to blocks/FailureDetail/demo/index.js diff --git a/templates/ice-design/blocks/FailureDetail/mock/api.json b/blocks/FailureDetail/mock/api.json similarity index 100% rename from templates/ice-design/blocks/FailureDetail/mock/api.json rename to blocks/FailureDetail/mock/api.json diff --git a/templates/ice-design/blocks/FailureDetail/package.json b/blocks/FailureDetail/package.json similarity index 100% rename from templates/ice-design/blocks/FailureDetail/package.json rename to blocks/FailureDetail/package.json diff --git a/templates/ice-design/blocks/FailureDetail/src/FailureDetail.jsx b/blocks/FailureDetail/src/FailureDetail.jsx similarity index 100% rename from templates/ice-design/blocks/FailureDetail/src/FailureDetail.jsx rename to blocks/FailureDetail/src/FailureDetail.jsx diff --git a/templates/ice-design/blocks/FailureDetail/src/FailureDetail.scss b/blocks/FailureDetail/src/FailureDetail.scss similarity index 100% rename from templates/ice-design/blocks/FailureDetail/src/FailureDetail.scss rename to blocks/FailureDetail/src/FailureDetail.scss diff --git a/templates/ice-design/blocks/FailureDetail/src/index.js b/blocks/FailureDetail/src/index.js similarity index 100% rename from templates/ice-design/blocks/FailureDetail/src/index.js rename to blocks/FailureDetail/src/index.js diff --git a/templates/ice-design/blocks/FeatureDisplay/.editorconfig b/blocks/FeatureDisplay/.editorconfig similarity index 100% rename from templates/ice-design/blocks/FeatureDisplay/.editorconfig rename to blocks/FeatureDisplay/.editorconfig diff --git a/templates/ice-design/blocks/FeatureDisplay/.eslintignore b/blocks/FeatureDisplay/.eslintignore similarity index 100% rename from templates/ice-design/blocks/FeatureDisplay/.eslintignore rename to blocks/FeatureDisplay/.eslintignore diff --git a/templates/ice-design/blocks/FeatureDisplay/.eslintrc b/blocks/FeatureDisplay/.eslintrc similarity index 100% rename from templates/ice-design/blocks/FeatureDisplay/.eslintrc rename to blocks/FeatureDisplay/.eslintrc diff --git a/templates/ice-design/blocks/FeatureDisplay/.gitignore b/blocks/FeatureDisplay/.gitignore similarity index 100% rename from templates/ice-design/blocks/FeatureDisplay/.gitignore rename to blocks/FeatureDisplay/.gitignore diff --git a/templates/ice-design/blocks/FeatureDisplay/README.md b/blocks/FeatureDisplay/README.md similarity index 100% rename from templates/ice-design/blocks/FeatureDisplay/README.md rename to blocks/FeatureDisplay/README.md diff --git a/templates/ice-design/blocks/FeatureDisplay/demo/index.html b/blocks/FeatureDisplay/demo/index.html similarity index 100% rename from templates/ice-design/blocks/FeatureDisplay/demo/index.html rename to blocks/FeatureDisplay/demo/index.html diff --git a/templates/ice-design/blocks/FeatureDisplay/demo/index.js b/blocks/FeatureDisplay/demo/index.js similarity index 100% rename from templates/ice-design/blocks/FeatureDisplay/demo/index.js rename to blocks/FeatureDisplay/demo/index.js diff --git a/templates/ice-design/blocks/FeatureDisplay/mock/api.json b/blocks/FeatureDisplay/mock/api.json similarity index 100% rename from templates/ice-design/blocks/FeatureDisplay/mock/api.json rename to blocks/FeatureDisplay/mock/api.json diff --git a/templates/ice-design/blocks/FeatureDisplay/package.json b/blocks/FeatureDisplay/package.json similarity index 100% rename from templates/ice-design/blocks/FeatureDisplay/package.json rename to blocks/FeatureDisplay/package.json diff --git a/templates/ice-design/blocks/FeatureDisplay/src/FeatureDisplay.jsx b/blocks/FeatureDisplay/src/FeatureDisplay.jsx similarity index 100% rename from templates/ice-design/blocks/FeatureDisplay/src/FeatureDisplay.jsx rename to blocks/FeatureDisplay/src/FeatureDisplay.jsx diff --git a/templates/ice-design/blocks/FeatureDisplay/src/FeatureDisplay.scss b/blocks/FeatureDisplay/src/FeatureDisplay.scss similarity index 100% rename from templates/ice-design/blocks/FeatureDisplay/src/FeatureDisplay.scss rename to blocks/FeatureDisplay/src/FeatureDisplay.scss diff --git a/templates/ice-design/blocks/FeatureDisplay/src/index.js b/blocks/FeatureDisplay/src/index.js similarity index 100% rename from templates/ice-design/blocks/FeatureDisplay/src/index.js rename to blocks/FeatureDisplay/src/index.js diff --git a/templates/ice-design/blocks/FeedList/.editorconfig b/blocks/FeedList/.editorconfig similarity index 100% rename from templates/ice-design/blocks/FeedList/.editorconfig rename to blocks/FeedList/.editorconfig diff --git a/templates/ice-design/blocks/FeedList/.eslintignore b/blocks/FeedList/.eslintignore similarity index 100% rename from templates/ice-design/blocks/FeedList/.eslintignore rename to blocks/FeedList/.eslintignore diff --git a/templates/ice-design/blocks/FeedList/.eslintrc b/blocks/FeedList/.eslintrc similarity index 100% rename from templates/ice-design/blocks/FeedList/.eslintrc rename to blocks/FeedList/.eslintrc diff --git a/templates/ice-design/blocks/FeedList/.gitignore b/blocks/FeedList/.gitignore similarity index 100% rename from templates/ice-design/blocks/FeedList/.gitignore rename to blocks/FeedList/.gitignore diff --git a/templates/ice-design/blocks/FeedList/README.md b/blocks/FeedList/README.md similarity index 100% rename from templates/ice-design/blocks/FeedList/README.md rename to blocks/FeedList/README.md diff --git a/templates/ice-design/blocks/FeedList/demo/index.html b/blocks/FeedList/demo/index.html similarity index 100% rename from templates/ice-design/blocks/FeedList/demo/index.html rename to blocks/FeedList/demo/index.html diff --git a/templates/ice-design/blocks/FeedList/demo/index.js b/blocks/FeedList/demo/index.js similarity index 100% rename from templates/ice-design/blocks/FeedList/demo/index.js rename to blocks/FeedList/demo/index.js diff --git a/templates/ice-design/blocks/FeedList/mock/api.json b/blocks/FeedList/mock/api.json similarity index 100% rename from templates/ice-design/blocks/FeedList/mock/api.json rename to blocks/FeedList/mock/api.json diff --git a/templates/ice-design/blocks/FeedList/package.json b/blocks/FeedList/package.json similarity index 100% rename from templates/ice-design/blocks/FeedList/package.json rename to blocks/FeedList/package.json diff --git a/templates/ice-design/blocks/FeedList/src/FeedList.jsx b/blocks/FeedList/src/FeedList.jsx similarity index 100% rename from templates/ice-design/blocks/FeedList/src/FeedList.jsx rename to blocks/FeedList/src/FeedList.jsx diff --git a/templates/ice-design/blocks/FeedList/src/FeedList.scss b/blocks/FeedList/src/FeedList.scss similarity index 100% rename from templates/ice-design/blocks/FeedList/src/FeedList.scss rename to blocks/FeedList/src/FeedList.scss diff --git a/templates/ice-design/blocks/FeedList/src/index.js b/blocks/FeedList/src/index.js similarity index 100% rename from templates/ice-design/blocks/FeedList/src/index.js rename to blocks/FeedList/src/index.js diff --git a/templates/ice-design/blocks/FilterList/.editorconfig b/blocks/FilterList/.editorconfig similarity index 100% rename from templates/ice-design/blocks/FilterList/.editorconfig rename to blocks/FilterList/.editorconfig diff --git a/templates/ice-design/blocks/FilterList/.eslintignore b/blocks/FilterList/.eslintignore similarity index 100% rename from templates/ice-design/blocks/FilterList/.eslintignore rename to blocks/FilterList/.eslintignore diff --git a/templates/ice-design/blocks/FilterList/.eslintrc b/blocks/FilterList/.eslintrc similarity index 100% rename from templates/ice-design/blocks/FilterList/.eslintrc rename to blocks/FilterList/.eslintrc diff --git a/templates/ice-design/blocks/FilterList/.gitignore b/blocks/FilterList/.gitignore similarity index 100% rename from templates/ice-design/blocks/FilterList/.gitignore rename to blocks/FilterList/.gitignore diff --git a/templates/ice-design/blocks/FilterList/README.md b/blocks/FilterList/README.md similarity index 100% rename from templates/ice-design/blocks/FilterList/README.md rename to blocks/FilterList/README.md diff --git a/templates/ice-design/blocks/FilterList/demo/index.html b/blocks/FilterList/demo/index.html similarity index 100% rename from templates/ice-design/blocks/FilterList/demo/index.html rename to blocks/FilterList/demo/index.html diff --git a/templates/ice-design/blocks/FilterList/demo/index.js b/blocks/FilterList/demo/index.js similarity index 100% rename from templates/ice-design/blocks/FilterList/demo/index.js rename to blocks/FilterList/demo/index.js diff --git a/templates/ice-design/blocks/FilterList/mock/api.json b/blocks/FilterList/mock/api.json similarity index 100% rename from templates/ice-design/blocks/FilterList/mock/api.json rename to blocks/FilterList/mock/api.json diff --git a/templates/ice-design/blocks/FilterList/package.json b/blocks/FilterList/package.json similarity index 100% rename from templates/ice-design/blocks/FilterList/package.json rename to blocks/FilterList/package.json diff --git a/templates/ice-design/blocks/FilterList/src/FilterList.jsx b/blocks/FilterList/src/FilterList.jsx similarity index 100% rename from templates/ice-design/blocks/FilterList/src/FilterList.jsx rename to blocks/FilterList/src/FilterList.jsx diff --git a/templates/ice-design/blocks/FilterList/src/FilterList.scss b/blocks/FilterList/src/FilterList.scss similarity index 100% rename from templates/ice-design/blocks/FilterList/src/FilterList.scss rename to blocks/FilterList/src/FilterList.scss diff --git a/templates/ice-design/blocks/FilterList/src/SingleItem/SingleItem.jsx b/blocks/FilterList/src/SingleItem/SingleItem.jsx similarity index 100% rename from templates/ice-design/blocks/FilterList/src/SingleItem/SingleItem.jsx rename to blocks/FilterList/src/SingleItem/SingleItem.jsx diff --git a/templates/ice-design/blocks/FilterList/src/SingleItem/SingleItem.scss b/blocks/FilterList/src/SingleItem/SingleItem.scss similarity index 100% rename from templates/ice-design/blocks/FilterList/src/SingleItem/SingleItem.scss rename to blocks/FilterList/src/SingleItem/SingleItem.scss diff --git a/templates/ice-design/blocks/FilterList/src/SingleItem/index.js b/blocks/FilterList/src/SingleItem/index.js similarity index 100% rename from templates/ice-design/blocks/FilterList/src/SingleItem/index.js rename to blocks/FilterList/src/SingleItem/index.js diff --git a/templates/ice-design/blocks/FilterList/src/index.js b/blocks/FilterList/src/index.js similarity index 100% rename from templates/ice-design/blocks/FilterList/src/index.js rename to blocks/FilterList/src/index.js diff --git a/templates/ice-design/blocks/FilterTable/.editorconfig b/blocks/FilterTable/.editorconfig similarity index 100% rename from templates/ice-design/blocks/FilterTable/.editorconfig rename to blocks/FilterTable/.editorconfig diff --git a/templates/ice-design/blocks/FilterTable/.eslintignore b/blocks/FilterTable/.eslintignore similarity index 100% rename from templates/ice-design/blocks/FilterTable/.eslintignore rename to blocks/FilterTable/.eslintignore diff --git a/templates/ice-design/blocks/FilterTable/.eslintrc b/blocks/FilterTable/.eslintrc similarity index 100% rename from templates/ice-design/blocks/FilterTable/.eslintrc rename to blocks/FilterTable/.eslintrc diff --git a/templates/ice-design/blocks/FilterTable/.gitignore b/blocks/FilterTable/.gitignore similarity index 100% rename from templates/ice-design/blocks/FilterTable/.gitignore rename to blocks/FilterTable/.gitignore diff --git a/templates/ice-design/blocks/FilterTable/README.md b/blocks/FilterTable/README.md similarity index 100% rename from templates/ice-design/blocks/FilterTable/README.md rename to blocks/FilterTable/README.md diff --git a/templates/ice-design/blocks/FilterTable/demo/index.html b/blocks/FilterTable/demo/index.html similarity index 100% rename from templates/ice-design/blocks/FilterTable/demo/index.html rename to blocks/FilterTable/demo/index.html diff --git a/templates/ice-design/blocks/FilterTable/demo/index.js b/blocks/FilterTable/demo/index.js similarity index 100% rename from templates/ice-design/blocks/FilterTable/demo/index.js rename to blocks/FilterTable/demo/index.js diff --git a/templates/ice-design/blocks/FilterTable/mock/filter-table-list.json b/blocks/FilterTable/mock/filter-table-list.json similarity index 100% rename from templates/ice-design/blocks/FilterTable/mock/filter-table-list.json rename to blocks/FilterTable/mock/filter-table-list.json diff --git a/templates/ice-design/blocks/FilterTable/package.json b/blocks/FilterTable/package.json similarity index 100% rename from templates/ice-design/blocks/FilterTable/package.json rename to blocks/FilterTable/package.json diff --git a/templates/ice-design/blocks/FilterTable/src/Filter/Filter.jsx b/blocks/FilterTable/src/Filter/Filter.jsx similarity index 100% rename from templates/ice-design/blocks/FilterTable/src/Filter/Filter.jsx rename to blocks/FilterTable/src/Filter/Filter.jsx diff --git a/templates/ice-design/blocks/FilterTable/src/Filter/Filter.scss b/blocks/FilterTable/src/Filter/Filter.scss similarity index 100% rename from templates/ice-design/blocks/FilterTable/src/Filter/Filter.scss rename to blocks/FilterTable/src/Filter/Filter.scss diff --git a/templates/ice-design/blocks/FilterTable/src/Filter/index.js b/blocks/FilterTable/src/Filter/index.js similarity index 100% rename from templates/ice-design/blocks/FilterTable/src/Filter/index.js rename to blocks/FilterTable/src/Filter/index.js diff --git a/templates/ice-design/blocks/FilterTable/src/FilterTable.jsx b/blocks/FilterTable/src/FilterTable.jsx similarity index 100% rename from templates/ice-design/blocks/FilterTable/src/FilterTable.jsx rename to blocks/FilterTable/src/FilterTable.jsx diff --git a/templates/ice-design/blocks/FilterTable/src/index.js b/blocks/FilterTable/src/index.js similarity index 100% rename from templates/ice-design/blocks/FilterTable/src/index.js rename to blocks/FilterTable/src/index.js diff --git a/templates/ice-design/blocks/FilterWithSearch/.editorconfig b/blocks/FilterWithSearch/.editorconfig similarity index 100% rename from templates/ice-design/blocks/FilterWithSearch/.editorconfig rename to blocks/FilterWithSearch/.editorconfig diff --git a/templates/ice-design/blocks/FilterWithSearch/.eslintignore b/blocks/FilterWithSearch/.eslintignore similarity index 100% rename from templates/ice-design/blocks/FilterWithSearch/.eslintignore rename to blocks/FilterWithSearch/.eslintignore diff --git a/templates/ice-design/blocks/FilterWithSearch/.eslintrc b/blocks/FilterWithSearch/.eslintrc similarity index 100% rename from templates/ice-design/blocks/FilterWithSearch/.eslintrc rename to blocks/FilterWithSearch/.eslintrc diff --git a/templates/ice-design/blocks/FilterWithSearch/.gitignore b/blocks/FilterWithSearch/.gitignore similarity index 100% rename from templates/ice-design/blocks/FilterWithSearch/.gitignore rename to blocks/FilterWithSearch/.gitignore diff --git a/templates/ice-design/blocks/FilterWithSearch/README.md b/blocks/FilterWithSearch/README.md similarity index 100% rename from templates/ice-design/blocks/FilterWithSearch/README.md rename to blocks/FilterWithSearch/README.md diff --git a/templates/ice-design/blocks/FilterWithSearch/demo/index.html b/blocks/FilterWithSearch/demo/index.html similarity index 100% rename from templates/ice-design/blocks/FilterWithSearch/demo/index.html rename to blocks/FilterWithSearch/demo/index.html diff --git a/templates/ice-design/blocks/FilterWithSearch/demo/index.js b/blocks/FilterWithSearch/demo/index.js similarity index 100% rename from templates/ice-design/blocks/FilterWithSearch/demo/index.js rename to blocks/FilterWithSearch/demo/index.js diff --git a/templates/ice-design/blocks/FilterWithSearch/mock/api.json b/blocks/FilterWithSearch/mock/api.json similarity index 100% rename from templates/ice-design/blocks/FilterWithSearch/mock/api.json rename to blocks/FilterWithSearch/mock/api.json diff --git a/templates/ice-design/blocks/FilterWithSearch/package.json b/blocks/FilterWithSearch/package.json similarity index 100% rename from templates/ice-design/blocks/FilterWithSearch/package.json rename to blocks/FilterWithSearch/package.json diff --git a/templates/ice-design/blocks/FilterWithSearch/src/FilterWithSearch.jsx b/blocks/FilterWithSearch/src/FilterWithSearch.jsx similarity index 100% rename from templates/ice-design/blocks/FilterWithSearch/src/FilterWithSearch.jsx rename to blocks/FilterWithSearch/src/FilterWithSearch.jsx diff --git a/templates/ice-design/blocks/FilterWithSearch/src/FilterWithSearch.scss b/blocks/FilterWithSearch/src/FilterWithSearch.scss similarity index 100% rename from templates/ice-design/blocks/FilterWithSearch/src/FilterWithSearch.scss rename to blocks/FilterWithSearch/src/FilterWithSearch.scss diff --git a/templates/ice-design/blocks/FilterWithSearch/src/index.js b/blocks/FilterWithSearch/src/index.js similarity index 100% rename from templates/ice-design/blocks/FilterWithSearch/src/index.js rename to blocks/FilterWithSearch/src/index.js diff --git a/templates/ice-design/blocks/Footer/.editorconfig b/blocks/Footer/.editorconfig similarity index 100% rename from templates/ice-design/blocks/Footer/.editorconfig rename to blocks/Footer/.editorconfig diff --git a/templates/ice-design/blocks/Footer/.eslintignore b/blocks/Footer/.eslintignore similarity index 100% rename from templates/ice-design/blocks/Footer/.eslintignore rename to blocks/Footer/.eslintignore diff --git a/templates/ice-design/blocks/Footer/.eslintrc b/blocks/Footer/.eslintrc similarity index 100% rename from templates/ice-design/blocks/Footer/.eslintrc rename to blocks/Footer/.eslintrc diff --git a/templates/ice-design/blocks/Footer/.gitignore b/blocks/Footer/.gitignore similarity index 100% rename from templates/ice-design/blocks/Footer/.gitignore rename to blocks/Footer/.gitignore diff --git a/templates/ice-design/blocks/Footer/README.md b/blocks/Footer/README.md similarity index 100% rename from templates/ice-design/blocks/Footer/README.md rename to blocks/Footer/README.md diff --git a/templates/ice-design/blocks/Footer/demo/index.html b/blocks/Footer/demo/index.html similarity index 100% rename from templates/ice-design/blocks/Footer/demo/index.html rename to blocks/Footer/demo/index.html diff --git a/templates/ice-design/blocks/Footer/demo/index.js b/blocks/Footer/demo/index.js similarity index 100% rename from templates/ice-design/blocks/Footer/demo/index.js rename to blocks/Footer/demo/index.js diff --git a/templates/ice-design/blocks/Footer/mock/api.json b/blocks/Footer/mock/api.json similarity index 100% rename from templates/ice-design/blocks/Footer/mock/api.json rename to blocks/Footer/mock/api.json diff --git a/templates/ice-design/blocks/Footer/package.json b/blocks/Footer/package.json similarity index 100% rename from templates/ice-design/blocks/Footer/package.json rename to blocks/Footer/package.json diff --git a/templates/ice-design/blocks/Footer/src/Footer.jsx b/blocks/Footer/src/Footer.jsx similarity index 100% rename from templates/ice-design/blocks/Footer/src/Footer.jsx rename to blocks/Footer/src/Footer.jsx diff --git a/templates/ice-design/blocks/Footer/src/index.js b/blocks/Footer/src/index.js similarity index 100% rename from templates/ice-design/blocks/Footer/src/index.js rename to blocks/Footer/src/index.js diff --git a/templates/ice-design/blocks/FooterInfo/.editorconfig b/blocks/FooterInfo/.editorconfig similarity index 100% rename from templates/ice-design/blocks/FooterInfo/.editorconfig rename to blocks/FooterInfo/.editorconfig diff --git a/templates/ice-design/blocks/FooterInfo/.eslintignore b/blocks/FooterInfo/.eslintignore similarity index 100% rename from templates/ice-design/blocks/FooterInfo/.eslintignore rename to blocks/FooterInfo/.eslintignore diff --git a/templates/ice-design/blocks/FooterInfo/.eslintrc b/blocks/FooterInfo/.eslintrc similarity index 100% rename from templates/ice-design/blocks/FooterInfo/.eslintrc rename to blocks/FooterInfo/.eslintrc diff --git a/templates/ice-design/blocks/FooterInfo/.gitignore b/blocks/FooterInfo/.gitignore similarity index 100% rename from templates/ice-design/blocks/FooterInfo/.gitignore rename to blocks/FooterInfo/.gitignore diff --git a/templates/ice-design/blocks/FooterInfo/README.md b/blocks/FooterInfo/README.md similarity index 100% rename from templates/ice-design/blocks/FooterInfo/README.md rename to blocks/FooterInfo/README.md diff --git a/templates/ice-design/blocks/FooterInfo/demo/index.html b/blocks/FooterInfo/demo/index.html similarity index 100% rename from templates/ice-design/blocks/FooterInfo/demo/index.html rename to blocks/FooterInfo/demo/index.html diff --git a/templates/ice-design/blocks/FooterInfo/demo/index.js b/blocks/FooterInfo/demo/index.js similarity index 100% rename from templates/ice-design/blocks/FooterInfo/demo/index.js rename to blocks/FooterInfo/demo/index.js diff --git a/templates/ice-design/blocks/FooterInfo/mock/api.json b/blocks/FooterInfo/mock/api.json similarity index 100% rename from templates/ice-design/blocks/FooterInfo/mock/api.json rename to blocks/FooterInfo/mock/api.json diff --git a/templates/ice-design/blocks/FooterInfo/package.json b/blocks/FooterInfo/package.json similarity index 100% rename from templates/ice-design/blocks/FooterInfo/package.json rename to blocks/FooterInfo/package.json diff --git a/templates/ice-design/blocks/FooterInfo/src/FooterInfo.jsx b/blocks/FooterInfo/src/FooterInfo.jsx similarity index 100% rename from templates/ice-design/blocks/FooterInfo/src/FooterInfo.jsx rename to blocks/FooterInfo/src/FooterInfo.jsx diff --git a/templates/ice-design/blocks/FooterInfo/src/index.js b/blocks/FooterInfo/src/index.js similarity index 100% rename from templates/ice-design/blocks/FooterInfo/src/index.js rename to blocks/FooterInfo/src/index.js diff --git a/templates/ice-design/blocks/ForgetPasswordForm/.editorconfig b/blocks/ForgetPasswordForm/.editorconfig similarity index 100% rename from templates/ice-design/blocks/ForgetPasswordForm/.editorconfig rename to blocks/ForgetPasswordForm/.editorconfig diff --git a/templates/ice-design/blocks/ForgetPasswordForm/.eslintignore b/blocks/ForgetPasswordForm/.eslintignore similarity index 100% rename from templates/ice-design/blocks/ForgetPasswordForm/.eslintignore rename to blocks/ForgetPasswordForm/.eslintignore diff --git a/templates/ice-design/blocks/ForgetPasswordForm/.eslintrc b/blocks/ForgetPasswordForm/.eslintrc similarity index 100% rename from templates/ice-design/blocks/ForgetPasswordForm/.eslintrc rename to blocks/ForgetPasswordForm/.eslintrc diff --git a/templates/ice-design/blocks/ForgetPasswordForm/.gitignore b/blocks/ForgetPasswordForm/.gitignore similarity index 100% rename from templates/ice-design/blocks/ForgetPasswordForm/.gitignore rename to blocks/ForgetPasswordForm/.gitignore diff --git a/templates/ice-design/blocks/ForgetPasswordForm/README.md b/blocks/ForgetPasswordForm/README.md similarity index 100% rename from templates/ice-design/blocks/ForgetPasswordForm/README.md rename to blocks/ForgetPasswordForm/README.md diff --git a/templates/ice-design/blocks/ForgetPasswordForm/demo/index.html b/blocks/ForgetPasswordForm/demo/index.html similarity index 100% rename from templates/ice-design/blocks/ForgetPasswordForm/demo/index.html rename to blocks/ForgetPasswordForm/demo/index.html diff --git a/templates/ice-design/blocks/ForgetPasswordForm/demo/index.js b/blocks/ForgetPasswordForm/demo/index.js similarity index 100% rename from templates/ice-design/blocks/ForgetPasswordForm/demo/index.js rename to blocks/ForgetPasswordForm/demo/index.js diff --git a/templates/ice-design/blocks/ForgetPasswordForm/mock/api.json b/blocks/ForgetPasswordForm/mock/api.json similarity index 100% rename from templates/ice-design/blocks/ForgetPasswordForm/mock/api.json rename to blocks/ForgetPasswordForm/mock/api.json diff --git a/templates/ice-design/blocks/ForgetPasswordForm/package.json b/blocks/ForgetPasswordForm/package.json similarity index 100% rename from templates/ice-design/blocks/ForgetPasswordForm/package.json rename to blocks/ForgetPasswordForm/package.json diff --git a/templates/ice-design/blocks/ForgetPasswordForm/src/ForgetPasswordForm.jsx b/blocks/ForgetPasswordForm/src/ForgetPasswordForm.jsx similarity index 100% rename from templates/ice-design/blocks/ForgetPasswordForm/src/ForgetPasswordForm.jsx rename to blocks/ForgetPasswordForm/src/ForgetPasswordForm.jsx diff --git a/templates/ice-design/blocks/ForgetPasswordForm/src/index.js b/blocks/ForgetPasswordForm/src/index.js similarity index 100% rename from templates/ice-design/blocks/ForgetPasswordForm/src/index.js rename to blocks/ForgetPasswordForm/src/index.js diff --git a/templates/ice-design/blocks/InfoDisplayTab/.editorconfig b/blocks/InfoDisplayTab/.editorconfig similarity index 100% rename from templates/ice-design/blocks/InfoDisplayTab/.editorconfig rename to blocks/InfoDisplayTab/.editorconfig diff --git a/templates/ice-design/blocks/InfoDisplayTab/.eslintignore b/blocks/InfoDisplayTab/.eslintignore similarity index 100% rename from templates/ice-design/blocks/InfoDisplayTab/.eslintignore rename to blocks/InfoDisplayTab/.eslintignore diff --git a/templates/ice-design/blocks/InfoDisplayTab/.eslintrc b/blocks/InfoDisplayTab/.eslintrc similarity index 100% rename from templates/ice-design/blocks/InfoDisplayTab/.eslintrc rename to blocks/InfoDisplayTab/.eslintrc diff --git a/templates/ice-design/blocks/InfoDisplayTab/.gitignore b/blocks/InfoDisplayTab/.gitignore similarity index 100% rename from templates/ice-design/blocks/InfoDisplayTab/.gitignore rename to blocks/InfoDisplayTab/.gitignore diff --git a/templates/ice-design/blocks/InfoDisplayTab/README.md b/blocks/InfoDisplayTab/README.md similarity index 100% rename from templates/ice-design/blocks/InfoDisplayTab/README.md rename to blocks/InfoDisplayTab/README.md diff --git a/templates/ice-design/blocks/InfoDisplayTab/demo/index.html b/blocks/InfoDisplayTab/demo/index.html similarity index 100% rename from templates/ice-design/blocks/InfoDisplayTab/demo/index.html rename to blocks/InfoDisplayTab/demo/index.html diff --git a/templates/ice-design/blocks/InfoDisplayTab/demo/index.js b/blocks/InfoDisplayTab/demo/index.js similarity index 100% rename from templates/ice-design/blocks/InfoDisplayTab/demo/index.js rename to blocks/InfoDisplayTab/demo/index.js diff --git a/templates/ice-design/blocks/InfoDisplayTab/mock/info-display-tab.json b/blocks/InfoDisplayTab/mock/info-display-tab.json similarity index 100% rename from templates/ice-design/blocks/InfoDisplayTab/mock/info-display-tab.json rename to blocks/InfoDisplayTab/mock/info-display-tab.json diff --git a/templates/ice-design/blocks/InfoDisplayTab/package.json b/blocks/InfoDisplayTab/package.json similarity index 100% rename from templates/ice-design/blocks/InfoDisplayTab/package.json rename to blocks/InfoDisplayTab/package.json diff --git a/templates/ice-design/blocks/InfoDisplayTab/src/InfoDisplayTab.jsx b/blocks/InfoDisplayTab/src/InfoDisplayTab.jsx similarity index 100% rename from templates/ice-design/blocks/InfoDisplayTab/src/InfoDisplayTab.jsx rename to blocks/InfoDisplayTab/src/InfoDisplayTab.jsx diff --git a/templates/ice-design/blocks/InfoDisplayTab/lib/InfoDisplayTab.scss b/blocks/InfoDisplayTab/src/InfoDisplayTab.scss similarity index 100% rename from templates/ice-design/blocks/InfoDisplayTab/lib/InfoDisplayTab.scss rename to blocks/InfoDisplayTab/src/InfoDisplayTab.scss diff --git a/templates/ice-design/blocks/InfoDisplayTab/src/index.js b/blocks/InfoDisplayTab/src/index.js similarity index 100% rename from templates/ice-design/blocks/InfoDisplayTab/src/index.js rename to blocks/InfoDisplayTab/src/index.js diff --git a/templates/ice-design/blocks/InfoDisplayTable/.editorconfig b/blocks/InfoDisplayTable/.editorconfig similarity index 100% rename from templates/ice-design/blocks/InfoDisplayTable/.editorconfig rename to blocks/InfoDisplayTable/.editorconfig diff --git a/templates/ice-design/blocks/InfoDisplayTable/.eslintignore b/blocks/InfoDisplayTable/.eslintignore similarity index 100% rename from templates/ice-design/blocks/InfoDisplayTable/.eslintignore rename to blocks/InfoDisplayTable/.eslintignore diff --git a/templates/ice-design/blocks/InfoDisplayTable/.eslintrc b/blocks/InfoDisplayTable/.eslintrc similarity index 100% rename from templates/ice-design/blocks/InfoDisplayTable/.eslintrc rename to blocks/InfoDisplayTable/.eslintrc diff --git a/templates/ice-design/blocks/InfoDisplayTable/.gitignore b/blocks/InfoDisplayTable/.gitignore similarity index 100% rename from templates/ice-design/blocks/InfoDisplayTable/.gitignore rename to blocks/InfoDisplayTable/.gitignore diff --git a/templates/ice-design/blocks/InfoDisplayTable/README.md b/blocks/InfoDisplayTable/README.md similarity index 100% rename from templates/ice-design/blocks/InfoDisplayTable/README.md rename to blocks/InfoDisplayTable/README.md diff --git a/templates/ice-design/blocks/InfoDisplayTable/demo/index.html b/blocks/InfoDisplayTable/demo/index.html similarity index 100% rename from templates/ice-design/blocks/InfoDisplayTable/demo/index.html rename to blocks/InfoDisplayTable/demo/index.html diff --git a/templates/ice-design/blocks/InfoDisplayTable/demo/index.js b/blocks/InfoDisplayTable/demo/index.js similarity index 100% rename from templates/ice-design/blocks/InfoDisplayTable/demo/index.js rename to blocks/InfoDisplayTable/demo/index.js diff --git a/templates/ice-design/blocks/InfoDisplayTable/mock/api.json b/blocks/InfoDisplayTable/mock/api.json similarity index 100% rename from templates/ice-design/blocks/InfoDisplayTable/mock/api.json rename to blocks/InfoDisplayTable/mock/api.json diff --git a/templates/ice-design/blocks/InfoDisplayTable/package.json b/blocks/InfoDisplayTable/package.json similarity index 100% rename from templates/ice-design/blocks/InfoDisplayTable/package.json rename to blocks/InfoDisplayTable/package.json diff --git a/templates/ice-design/blocks/InfoDisplayTable/src/InfoDisplayTable.jsx b/blocks/InfoDisplayTable/src/InfoDisplayTable.jsx similarity index 100% rename from templates/ice-design/blocks/InfoDisplayTable/src/InfoDisplayTable.jsx rename to blocks/InfoDisplayTable/src/InfoDisplayTable.jsx diff --git a/templates/ice-design/blocks/InfoDisplayTable/lib/InfoDisplayTable.scss b/blocks/InfoDisplayTable/src/InfoDisplayTable.scss similarity index 100% rename from templates/ice-design/blocks/InfoDisplayTable/lib/InfoDisplayTable.scss rename to blocks/InfoDisplayTable/src/InfoDisplayTable.scss diff --git a/templates/ice-design/blocks/InfoDisplayTable/src/index.js b/blocks/InfoDisplayTable/src/index.js similarity index 100% rename from templates/ice-design/blocks/InfoDisplayTable/src/index.js rename to blocks/InfoDisplayTable/src/index.js diff --git a/templates/ice-design/blocks/JoinUs/.editorconfig b/blocks/JoinUs/.editorconfig similarity index 100% rename from templates/ice-design/blocks/JoinUs/.editorconfig rename to blocks/JoinUs/.editorconfig diff --git a/templates/ice-design/blocks/JoinUs/.eslintignore b/blocks/JoinUs/.eslintignore similarity index 100% rename from templates/ice-design/blocks/JoinUs/.eslintignore rename to blocks/JoinUs/.eslintignore diff --git a/templates/ice-design/blocks/JoinUs/.eslintrc b/blocks/JoinUs/.eslintrc similarity index 100% rename from templates/ice-design/blocks/JoinUs/.eslintrc rename to blocks/JoinUs/.eslintrc diff --git a/templates/ice-design/blocks/JoinUs/.gitignore b/blocks/JoinUs/.gitignore similarity index 100% rename from templates/ice-design/blocks/JoinUs/.gitignore rename to blocks/JoinUs/.gitignore diff --git a/templates/ice-design/blocks/JoinUs/README.md b/blocks/JoinUs/README.md similarity index 100% rename from templates/ice-design/blocks/JoinUs/README.md rename to blocks/JoinUs/README.md diff --git a/templates/ice-design/blocks/JoinUs/demo/index.html b/blocks/JoinUs/demo/index.html similarity index 100% rename from templates/ice-design/blocks/JoinUs/demo/index.html rename to blocks/JoinUs/demo/index.html diff --git a/templates/ice-design/blocks/JoinUs/demo/index.js b/blocks/JoinUs/demo/index.js similarity index 100% rename from templates/ice-design/blocks/JoinUs/demo/index.js rename to blocks/JoinUs/demo/index.js diff --git a/templates/ice-design/blocks/JoinUs/mock/api.json b/blocks/JoinUs/mock/api.json similarity index 100% rename from templates/ice-design/blocks/JoinUs/mock/api.json rename to blocks/JoinUs/mock/api.json diff --git a/templates/ice-design/blocks/JoinUs/package.json b/blocks/JoinUs/package.json similarity index 100% rename from templates/ice-design/blocks/JoinUs/package.json rename to blocks/JoinUs/package.json diff --git a/templates/ice-design/blocks/JoinUs/src/JoinUs.jsx b/blocks/JoinUs/src/JoinUs.jsx similarity index 100% rename from templates/ice-design/blocks/JoinUs/src/JoinUs.jsx rename to blocks/JoinUs/src/JoinUs.jsx diff --git a/templates/ice-design/blocks/JoinUs/lib/JoinUs.scss b/blocks/JoinUs/src/JoinUs.scss similarity index 100% rename from templates/ice-design/blocks/JoinUs/lib/JoinUs.scss rename to blocks/JoinUs/src/JoinUs.scss diff --git a/templates/ice-design/blocks/JoinUs/src/index.js b/blocks/JoinUs/src/index.js similarity index 100% rename from templates/ice-design/blocks/JoinUs/src/index.js rename to blocks/JoinUs/src/index.js diff --git a/templates/ice-design/blocks/LandingIntroBanner/.editorconfig b/blocks/LandingIntroBanner/.editorconfig similarity index 100% rename from templates/ice-design/blocks/LandingIntroBanner/.editorconfig rename to blocks/LandingIntroBanner/.editorconfig diff --git a/templates/ice-design/blocks/LandingIntroBanner/.eslintignore b/blocks/LandingIntroBanner/.eslintignore similarity index 100% rename from templates/ice-design/blocks/LandingIntroBanner/.eslintignore rename to blocks/LandingIntroBanner/.eslintignore diff --git a/templates/ice-design/blocks/LandingIntroBanner/.eslintrc b/blocks/LandingIntroBanner/.eslintrc similarity index 100% rename from templates/ice-design/blocks/LandingIntroBanner/.eslintrc rename to blocks/LandingIntroBanner/.eslintrc diff --git a/templates/ice-design/blocks/LandingIntroBanner/.gitignore b/blocks/LandingIntroBanner/.gitignore similarity index 100% rename from templates/ice-design/blocks/LandingIntroBanner/.gitignore rename to blocks/LandingIntroBanner/.gitignore diff --git a/templates/ice-design/blocks/LandingIntroBanner/README.md b/blocks/LandingIntroBanner/README.md similarity index 100% rename from templates/ice-design/blocks/LandingIntroBanner/README.md rename to blocks/LandingIntroBanner/README.md diff --git a/templates/ice-design/blocks/LandingIntroBanner/demo/index.html b/blocks/LandingIntroBanner/demo/index.html similarity index 100% rename from templates/ice-design/blocks/LandingIntroBanner/demo/index.html rename to blocks/LandingIntroBanner/demo/index.html diff --git a/templates/ice-design/blocks/LandingIntroBanner/demo/index.js b/blocks/LandingIntroBanner/demo/index.js similarity index 100% rename from templates/ice-design/blocks/LandingIntroBanner/demo/index.js rename to blocks/LandingIntroBanner/demo/index.js diff --git a/templates/ice-design/blocks/LandingIntroBanner/mock/api.json b/blocks/LandingIntroBanner/mock/api.json similarity index 100% rename from templates/ice-design/blocks/LandingIntroBanner/mock/api.json rename to blocks/LandingIntroBanner/mock/api.json diff --git a/templates/ice-design/blocks/LandingIntroBanner/package.json b/blocks/LandingIntroBanner/package.json similarity index 100% rename from templates/ice-design/blocks/LandingIntroBanner/package.json rename to blocks/LandingIntroBanner/package.json diff --git a/templates/ice-design/blocks/LandingIntroBanner/src/LandingIntroBanner.jsx b/blocks/LandingIntroBanner/src/LandingIntroBanner.jsx similarity index 100% rename from templates/ice-design/blocks/LandingIntroBanner/src/LandingIntroBanner.jsx rename to blocks/LandingIntroBanner/src/LandingIntroBanner.jsx diff --git a/templates/ice-design/blocks/LandingIntroBanner/lib/LandingIntroBanner.scss b/blocks/LandingIntroBanner/src/LandingIntroBanner.scss similarity index 100% rename from templates/ice-design/blocks/LandingIntroBanner/lib/LandingIntroBanner.scss rename to blocks/LandingIntroBanner/src/LandingIntroBanner.scss diff --git a/templates/ice-design/blocks/LandingIntroBanner/src/index.js b/blocks/LandingIntroBanner/src/index.js similarity index 100% rename from templates/ice-design/blocks/LandingIntroBanner/src/index.js rename to blocks/LandingIntroBanner/src/index.js diff --git a/templates/ice-design/blocks/LeftContentDisplay/.editorconfig b/blocks/LeftContentDisplay/.editorconfig similarity index 100% rename from templates/ice-design/blocks/LeftContentDisplay/.editorconfig rename to blocks/LeftContentDisplay/.editorconfig diff --git a/templates/ice-design/blocks/LeftContentDisplay/.eslintignore b/blocks/LeftContentDisplay/.eslintignore similarity index 100% rename from templates/ice-design/blocks/LeftContentDisplay/.eslintignore rename to blocks/LeftContentDisplay/.eslintignore diff --git a/templates/ice-design/blocks/LeftContentDisplay/.eslintrc b/blocks/LeftContentDisplay/.eslintrc similarity index 100% rename from templates/ice-design/blocks/LeftContentDisplay/.eslintrc rename to blocks/LeftContentDisplay/.eslintrc diff --git a/templates/ice-design/blocks/LeftContentDisplay/.gitignore b/blocks/LeftContentDisplay/.gitignore similarity index 100% rename from templates/ice-design/blocks/LeftContentDisplay/.gitignore rename to blocks/LeftContentDisplay/.gitignore diff --git a/templates/ice-design/blocks/LeftContentDisplay/README.md b/blocks/LeftContentDisplay/README.md similarity index 100% rename from templates/ice-design/blocks/LeftContentDisplay/README.md rename to blocks/LeftContentDisplay/README.md diff --git a/templates/ice-design/blocks/LeftContentDisplay/demo/index.html b/blocks/LeftContentDisplay/demo/index.html similarity index 100% rename from templates/ice-design/blocks/LeftContentDisplay/demo/index.html rename to blocks/LeftContentDisplay/demo/index.html diff --git a/templates/ice-design/blocks/LeftContentDisplay/demo/index.js b/blocks/LeftContentDisplay/demo/index.js similarity index 100% rename from templates/ice-design/blocks/LeftContentDisplay/demo/index.js rename to blocks/LeftContentDisplay/demo/index.js diff --git a/templates/ice-design/blocks/LeftContentDisplay/mock/api.json b/blocks/LeftContentDisplay/mock/api.json similarity index 100% rename from templates/ice-design/blocks/LeftContentDisplay/mock/api.json rename to blocks/LeftContentDisplay/mock/api.json diff --git a/templates/ice-design/blocks/LeftContentDisplay/package.json b/blocks/LeftContentDisplay/package.json similarity index 100% rename from templates/ice-design/blocks/LeftContentDisplay/package.json rename to blocks/LeftContentDisplay/package.json diff --git a/templates/ice-design/blocks/LeftContentDisplay/src/LeftContentDisplay.jsx b/blocks/LeftContentDisplay/src/LeftContentDisplay.jsx similarity index 100% rename from templates/ice-design/blocks/LeftContentDisplay/src/LeftContentDisplay.jsx rename to blocks/LeftContentDisplay/src/LeftContentDisplay.jsx diff --git a/templates/ice-design/blocks/LeftContentDisplay/lib/LeftContentDisplay.scss b/blocks/LeftContentDisplay/src/LeftContentDisplay.scss similarity index 100% rename from templates/ice-design/blocks/LeftContentDisplay/lib/LeftContentDisplay.scss rename to blocks/LeftContentDisplay/src/LeftContentDisplay.scss diff --git a/templates/ice-design/blocks/LeftContentDisplay/src/index.js b/blocks/LeftContentDisplay/src/index.js similarity index 100% rename from templates/ice-design/blocks/LeftContentDisplay/src/index.js rename to blocks/LeftContentDisplay/src/index.js diff --git a/templates/ice-design/blocks/LiteTable/.editorconfig b/blocks/LiteTable/.editorconfig similarity index 100% rename from templates/ice-design/blocks/LiteTable/.editorconfig rename to blocks/LiteTable/.editorconfig diff --git a/templates/ice-design/blocks/LiteTable/.eslintignore b/blocks/LiteTable/.eslintignore similarity index 100% rename from templates/ice-design/blocks/LiteTable/.eslintignore rename to blocks/LiteTable/.eslintignore diff --git a/templates/ice-design/blocks/LiteTable/.eslintrc b/blocks/LiteTable/.eslintrc similarity index 100% rename from templates/ice-design/blocks/LiteTable/.eslintrc rename to blocks/LiteTable/.eslintrc diff --git a/templates/ice-design/blocks/LiteTable/.gitignore b/blocks/LiteTable/.gitignore similarity index 100% rename from templates/ice-design/blocks/LiteTable/.gitignore rename to blocks/LiteTable/.gitignore diff --git a/templates/ice-design/blocks/LiteTable/README.md b/blocks/LiteTable/README.md similarity index 100% rename from templates/ice-design/blocks/LiteTable/README.md rename to blocks/LiteTable/README.md diff --git a/templates/ice-design/blocks/LiteTable/demo/index.html b/blocks/LiteTable/demo/index.html similarity index 100% rename from templates/ice-design/blocks/LiteTable/demo/index.html rename to blocks/LiteTable/demo/index.html diff --git a/templates/ice-design/blocks/LiteTable/demo/index.js b/blocks/LiteTable/demo/index.js similarity index 100% rename from templates/ice-design/blocks/LiteTable/demo/index.js rename to blocks/LiteTable/demo/index.js diff --git a/templates/ice-design/blocks/LiteTable/mock/api.json b/blocks/LiteTable/mock/api.json similarity index 100% rename from templates/ice-design/blocks/LiteTable/mock/api.json rename to blocks/LiteTable/mock/api.json diff --git a/templates/ice-design/blocks/LiteTable/package.json b/blocks/LiteTable/package.json similarity index 100% rename from templates/ice-design/blocks/LiteTable/package.json rename to blocks/LiteTable/package.json diff --git a/templates/ice-design/blocks/LiteTable/src/LiteTable.jsx b/blocks/LiteTable/src/LiteTable.jsx similarity index 100% rename from templates/ice-design/blocks/LiteTable/src/LiteTable.jsx rename to blocks/LiteTable/src/LiteTable.jsx diff --git a/templates/ice-design/blocks/LiteTable/lib/LiteTable.scss b/blocks/LiteTable/src/LiteTable.scss similarity index 100% rename from templates/ice-design/blocks/LiteTable/lib/LiteTable.scss rename to blocks/LiteTable/src/LiteTable.scss diff --git a/templates/ice-design/blocks/LiteTable/src/index.js b/blocks/LiteTable/src/index.js similarity index 100% rename from templates/ice-design/blocks/LiteTable/src/index.js rename to blocks/LiteTable/src/index.js diff --git a/templates/ice-design/blocks/MessageList/.editorconfig b/blocks/MessageList/.editorconfig similarity index 100% rename from templates/ice-design/blocks/MessageList/.editorconfig rename to blocks/MessageList/.editorconfig diff --git a/templates/ice-design/blocks/MessageList/.eslintignore b/blocks/MessageList/.eslintignore similarity index 100% rename from templates/ice-design/blocks/MessageList/.eslintignore rename to blocks/MessageList/.eslintignore diff --git a/templates/ice-design/blocks/MessageList/.eslintrc b/blocks/MessageList/.eslintrc similarity index 100% rename from templates/ice-design/blocks/MessageList/.eslintrc rename to blocks/MessageList/.eslintrc diff --git a/templates/ice-design/blocks/MessageList/.gitignore b/blocks/MessageList/.gitignore similarity index 100% rename from templates/ice-design/blocks/MessageList/.gitignore rename to blocks/MessageList/.gitignore diff --git a/templates/ice-design/blocks/MessageList/README.md b/blocks/MessageList/README.md similarity index 100% rename from templates/ice-design/blocks/MessageList/README.md rename to blocks/MessageList/README.md diff --git a/templates/ice-design/blocks/MessageList/demo/index.html b/blocks/MessageList/demo/index.html similarity index 100% rename from templates/ice-design/blocks/MessageList/demo/index.html rename to blocks/MessageList/demo/index.html diff --git a/templates/ice-design/blocks/MessageList/demo/index.js b/blocks/MessageList/demo/index.js similarity index 100% rename from templates/ice-design/blocks/MessageList/demo/index.js rename to blocks/MessageList/demo/index.js diff --git a/templates/ice-design/blocks/MessageList/mock/api.json b/blocks/MessageList/mock/api.json similarity index 100% rename from templates/ice-design/blocks/MessageList/mock/api.json rename to blocks/MessageList/mock/api.json diff --git a/templates/ice-design/blocks/MessageList/package.json b/blocks/MessageList/package.json similarity index 100% rename from templates/ice-design/blocks/MessageList/package.json rename to blocks/MessageList/package.json diff --git a/templates/ice-design/blocks/MessageList/src/MessageList.jsx b/blocks/MessageList/src/MessageList.jsx similarity index 100% rename from templates/ice-design/blocks/MessageList/src/MessageList.jsx rename to blocks/MessageList/src/MessageList.jsx diff --git a/templates/ice-design/blocks/MessageList/lib/MessageList.scss b/blocks/MessageList/src/MessageList.scss similarity index 100% rename from templates/ice-design/blocks/MessageList/lib/MessageList.scss rename to blocks/MessageList/src/MessageList.scss diff --git a/templates/ice-design/blocks/MessageList/src/index.js b/blocks/MessageList/src/index.js similarity index 100% rename from templates/ice-design/blocks/MessageList/src/index.js rename to blocks/MessageList/src/index.js diff --git a/templates/ice-design/blocks/MonacoEditor/.editorconfig b/blocks/MonacoEditor/.editorconfig similarity index 100% rename from templates/ice-design/blocks/MonacoEditor/.editorconfig rename to blocks/MonacoEditor/.editorconfig diff --git a/templates/ice-design/blocks/MonacoEditor/.eslintignore b/blocks/MonacoEditor/.eslintignore similarity index 100% rename from templates/ice-design/blocks/MonacoEditor/.eslintignore rename to blocks/MonacoEditor/.eslintignore diff --git a/templates/ice-design/blocks/MonacoEditor/.eslintrc b/blocks/MonacoEditor/.eslintrc similarity index 100% rename from templates/ice-design/blocks/MonacoEditor/.eslintrc rename to blocks/MonacoEditor/.eslintrc diff --git a/templates/ice-design/blocks/MonacoEditor/.gitignore b/blocks/MonacoEditor/.gitignore similarity index 100% rename from templates/ice-design/blocks/MonacoEditor/.gitignore rename to blocks/MonacoEditor/.gitignore diff --git a/templates/ice-design/blocks/MonacoEditor/README.md b/blocks/MonacoEditor/README.md similarity index 100% rename from templates/ice-design/blocks/MonacoEditor/README.md rename to blocks/MonacoEditor/README.md diff --git a/templates/ice-design/blocks/MonacoEditor/demo/index.html b/blocks/MonacoEditor/demo/index.html similarity index 100% rename from templates/ice-design/blocks/MonacoEditor/demo/index.html rename to blocks/MonacoEditor/demo/index.html diff --git a/templates/ice-design/blocks/MonacoEditor/demo/index.js b/blocks/MonacoEditor/demo/index.js similarity index 100% rename from templates/ice-design/blocks/MonacoEditor/demo/index.js rename to blocks/MonacoEditor/demo/index.js diff --git a/templates/ice-design/blocks/MonacoEditor/mock/api.json b/blocks/MonacoEditor/mock/api.json similarity index 100% rename from templates/ice-design/blocks/MonacoEditor/mock/api.json rename to blocks/MonacoEditor/mock/api.json diff --git a/templates/ice-design/blocks/MonacoEditor/package.json b/blocks/MonacoEditor/package.json similarity index 100% rename from templates/ice-design/blocks/MonacoEditor/package.json rename to blocks/MonacoEditor/package.json diff --git a/templates/ice-design/blocks/MonacoEditor/src/MonacoEditor.jsx b/blocks/MonacoEditor/src/MonacoEditor.jsx similarity index 100% rename from templates/ice-design/blocks/MonacoEditor/src/MonacoEditor.jsx rename to blocks/MonacoEditor/src/MonacoEditor.jsx diff --git a/templates/ice-design/blocks/MonacoEditor/lib/MonacoEditor.scss b/blocks/MonacoEditor/src/MonacoEditor.scss similarity index 100% rename from templates/ice-design/blocks/MonacoEditor/lib/MonacoEditor.scss rename to blocks/MonacoEditor/src/MonacoEditor.scss diff --git a/templates/ice-design/blocks/MonacoEditor/src/index.js b/blocks/MonacoEditor/src/index.js similarity index 100% rename from templates/ice-design/blocks/MonacoEditor/src/index.js rename to blocks/MonacoEditor/src/index.js diff --git a/templates/ice-design/blocks/NotPermission/.editorconfig b/blocks/NotPermission/.editorconfig similarity index 100% rename from templates/ice-design/blocks/NotPermission/.editorconfig rename to blocks/NotPermission/.editorconfig diff --git a/templates/ice-design/blocks/NotPermission/.eslintignore b/blocks/NotPermission/.eslintignore similarity index 100% rename from templates/ice-design/blocks/NotPermission/.eslintignore rename to blocks/NotPermission/.eslintignore diff --git a/templates/ice-design/blocks/NotPermission/.eslintrc b/blocks/NotPermission/.eslintrc similarity index 100% rename from templates/ice-design/blocks/NotPermission/.eslintrc rename to blocks/NotPermission/.eslintrc diff --git a/templates/ice-design/blocks/NotPermission/.gitignore b/blocks/NotPermission/.gitignore similarity index 100% rename from templates/ice-design/blocks/NotPermission/.gitignore rename to blocks/NotPermission/.gitignore diff --git a/templates/ice-design/blocks/NotPermission/README.md b/blocks/NotPermission/README.md similarity index 100% rename from templates/ice-design/blocks/NotPermission/README.md rename to blocks/NotPermission/README.md diff --git a/templates/ice-design/blocks/NotPermission/demo/index.html b/blocks/NotPermission/demo/index.html similarity index 100% rename from templates/ice-design/blocks/NotPermission/demo/index.html rename to blocks/NotPermission/demo/index.html diff --git a/templates/ice-design/blocks/NotPermission/demo/index.js b/blocks/NotPermission/demo/index.js similarity index 100% rename from templates/ice-design/blocks/NotPermission/demo/index.js rename to blocks/NotPermission/demo/index.js diff --git a/templates/ice-design/blocks/NotPermission/mock/api.json b/blocks/NotPermission/mock/api.json similarity index 100% rename from templates/ice-design/blocks/NotPermission/mock/api.json rename to blocks/NotPermission/mock/api.json diff --git a/templates/ice-design/blocks/NotPermission/package.json b/blocks/NotPermission/package.json similarity index 100% rename from templates/ice-design/blocks/NotPermission/package.json rename to blocks/NotPermission/package.json diff --git a/templates/ice-design/blocks/NotPermission/src/NotPermission.jsx b/blocks/NotPermission/src/NotPermission.jsx similarity index 100% rename from templates/ice-design/blocks/NotPermission/src/NotPermission.jsx rename to blocks/NotPermission/src/NotPermission.jsx diff --git a/templates/ice-design/blocks/NotPermission/lib/NotPermission.scss b/blocks/NotPermission/src/NotPermission.scss similarity index 100% rename from templates/ice-design/blocks/NotPermission/lib/NotPermission.scss rename to blocks/NotPermission/src/NotPermission.scss diff --git a/templates/ice-design/blocks/NotPermission/src/index.js b/blocks/NotPermission/src/index.js similarity index 100% rename from templates/ice-design/blocks/NotPermission/src/index.js rename to blocks/NotPermission/src/index.js diff --git a/templates/ice-design/blocks/OperationTable/.editorconfig b/blocks/OperationTable/.editorconfig similarity index 100% rename from templates/ice-design/blocks/OperationTable/.editorconfig rename to blocks/OperationTable/.editorconfig diff --git a/templates/ice-design/blocks/OperationTable/.eslintignore b/blocks/OperationTable/.eslintignore similarity index 100% rename from templates/ice-design/blocks/OperationTable/.eslintignore rename to blocks/OperationTable/.eslintignore diff --git a/templates/ice-design/blocks/OperationTable/.eslintrc b/blocks/OperationTable/.eslintrc similarity index 100% rename from templates/ice-design/blocks/OperationTable/.eslintrc rename to blocks/OperationTable/.eslintrc diff --git a/templates/ice-design/blocks/OperationTable/.gitignore b/blocks/OperationTable/.gitignore similarity index 100% rename from templates/ice-design/blocks/OperationTable/.gitignore rename to blocks/OperationTable/.gitignore diff --git a/templates/ice-design/blocks/OperationTable/README.md b/blocks/OperationTable/README.md similarity index 100% rename from templates/ice-design/blocks/OperationTable/README.md rename to blocks/OperationTable/README.md diff --git a/templates/ice-design/blocks/OperationTable/demo/index.html b/blocks/OperationTable/demo/index.html similarity index 100% rename from templates/ice-design/blocks/OperationTable/demo/index.html rename to blocks/OperationTable/demo/index.html diff --git a/templates/ice-design/blocks/OperationTable/demo/index.js b/blocks/OperationTable/demo/index.js similarity index 100% rename from templates/ice-design/blocks/OperationTable/demo/index.js rename to blocks/OperationTable/demo/index.js diff --git a/templates/ice-design/blocks/OperationTable/mock/operation-table-list.json b/blocks/OperationTable/mock/operation-table-list.json similarity index 100% rename from templates/ice-design/blocks/OperationTable/mock/operation-table-list.json rename to blocks/OperationTable/mock/operation-table-list.json diff --git a/templates/ice-design/blocks/OperationTable/mock/update-table-item.json b/blocks/OperationTable/mock/update-table-item.json similarity index 100% rename from templates/ice-design/blocks/OperationTable/mock/update-table-item.json rename to blocks/OperationTable/mock/update-table-item.json diff --git a/templates/ice-design/blocks/OperationTable/package.json b/blocks/OperationTable/package.json similarity index 100% rename from templates/ice-design/blocks/OperationTable/package.json rename to blocks/OperationTable/package.json diff --git a/templates/ice-design/blocks/OperationTable/src/DialogDecorator.js b/blocks/OperationTable/src/DialogDecorator.js similarity index 100% rename from templates/ice-design/blocks/OperationTable/src/DialogDecorator.js rename to blocks/OperationTable/src/DialogDecorator.js diff --git a/templates/ice-design/blocks/OperationTable/src/EditorInfoDialog.jsx b/blocks/OperationTable/src/EditorInfoDialog.jsx similarity index 100% rename from templates/ice-design/blocks/OperationTable/src/EditorInfoDialog.jsx rename to blocks/OperationTable/src/EditorInfoDialog.jsx diff --git a/templates/ice-design/blocks/OperationTable/src/OperationTable.jsx b/blocks/OperationTable/src/OperationTable.jsx similarity index 100% rename from templates/ice-design/blocks/OperationTable/src/OperationTable.jsx rename to blocks/OperationTable/src/OperationTable.jsx diff --git a/templates/ice-design/blocks/OperationTable/lib/OperationTable.scss b/blocks/OperationTable/src/OperationTable.scss similarity index 100% rename from templates/ice-design/blocks/OperationTable/lib/OperationTable.scss rename to blocks/OperationTable/src/OperationTable.scss diff --git a/templates/ice-design/blocks/OperationTable/src/index.js b/blocks/OperationTable/src/index.js similarity index 100% rename from templates/ice-design/blocks/OperationTable/src/index.js rename to blocks/OperationTable/src/index.js diff --git a/templates/ice-design/blocks/OrderList/.editorconfig b/blocks/OrderList/.editorconfig similarity index 100% rename from templates/ice-design/blocks/OrderList/.editorconfig rename to blocks/OrderList/.editorconfig diff --git a/templates/ice-design/blocks/OrderList/.eslintignore b/blocks/OrderList/.eslintignore similarity index 100% rename from templates/ice-design/blocks/OrderList/.eslintignore rename to blocks/OrderList/.eslintignore diff --git a/templates/ice-design/blocks/OrderList/.eslintrc b/blocks/OrderList/.eslintrc similarity index 100% rename from templates/ice-design/blocks/OrderList/.eslintrc rename to blocks/OrderList/.eslintrc diff --git a/templates/ice-design/blocks/OrderList/.gitignore b/blocks/OrderList/.gitignore similarity index 100% rename from templates/ice-design/blocks/OrderList/.gitignore rename to blocks/OrderList/.gitignore diff --git a/templates/ice-design/blocks/OrderList/README.md b/blocks/OrderList/README.md similarity index 100% rename from templates/ice-design/blocks/OrderList/README.md rename to blocks/OrderList/README.md diff --git a/templates/ice-design/blocks/OrderList/demo/index.html b/blocks/OrderList/demo/index.html similarity index 100% rename from templates/ice-design/blocks/OrderList/demo/index.html rename to blocks/OrderList/demo/index.html diff --git a/templates/ice-design/blocks/OrderList/demo/index.js b/blocks/OrderList/demo/index.js similarity index 100% rename from templates/ice-design/blocks/OrderList/demo/index.js rename to blocks/OrderList/demo/index.js diff --git a/templates/ice-design/blocks/OrderList/mock/order-list.json b/blocks/OrderList/mock/order-list.json similarity index 100% rename from templates/ice-design/blocks/OrderList/mock/order-list.json rename to blocks/OrderList/mock/order-list.json diff --git a/templates/ice-design/blocks/OrderList/package.json b/blocks/OrderList/package.json similarity index 100% rename from templates/ice-design/blocks/OrderList/package.json rename to blocks/OrderList/package.json diff --git a/templates/ice-design/blocks/OrderList/src/OrderList.jsx b/blocks/OrderList/src/OrderList.jsx similarity index 100% rename from templates/ice-design/blocks/OrderList/src/OrderList.jsx rename to blocks/OrderList/src/OrderList.jsx diff --git a/templates/ice-design/blocks/OrderList/lib/OrderList.scss b/blocks/OrderList/src/OrderList.scss similarity index 100% rename from templates/ice-design/blocks/OrderList/lib/OrderList.scss rename to blocks/OrderList/src/OrderList.scss diff --git a/templates/ice-design/blocks/OrderList/src/index.js b/blocks/OrderList/src/index.js similarity index 100% rename from templates/ice-design/blocks/OrderList/src/index.js rename to blocks/OrderList/src/index.js diff --git a/templates/ice-design/blocks/OurTeam/.editorconfig b/blocks/OurTeam/.editorconfig similarity index 100% rename from templates/ice-design/blocks/OurTeam/.editorconfig rename to blocks/OurTeam/.editorconfig diff --git a/templates/ice-design/blocks/OurTeam/.eslintignore b/blocks/OurTeam/.eslintignore similarity index 100% rename from templates/ice-design/blocks/OurTeam/.eslintignore rename to blocks/OurTeam/.eslintignore diff --git a/templates/ice-design/blocks/OurTeam/.eslintrc b/blocks/OurTeam/.eslintrc similarity index 100% rename from templates/ice-design/blocks/OurTeam/.eslintrc rename to blocks/OurTeam/.eslintrc diff --git a/templates/ice-design/blocks/OurTeam/.gitignore b/blocks/OurTeam/.gitignore similarity index 100% rename from templates/ice-design/blocks/OurTeam/.gitignore rename to blocks/OurTeam/.gitignore diff --git a/templates/ice-design/blocks/OurTeam/README.md b/blocks/OurTeam/README.md similarity index 100% rename from templates/ice-design/blocks/OurTeam/README.md rename to blocks/OurTeam/README.md diff --git a/templates/ice-design/blocks/OurTeam/demo/index.html b/blocks/OurTeam/demo/index.html similarity index 100% rename from templates/ice-design/blocks/OurTeam/demo/index.html rename to blocks/OurTeam/demo/index.html diff --git a/templates/ice-design/blocks/OurTeam/demo/index.js b/blocks/OurTeam/demo/index.js similarity index 100% rename from templates/ice-design/blocks/OurTeam/demo/index.js rename to blocks/OurTeam/demo/index.js diff --git a/templates/ice-design/blocks/OurTeam/mock/api.json b/blocks/OurTeam/mock/api.json similarity index 100% rename from templates/ice-design/blocks/OurTeam/mock/api.json rename to blocks/OurTeam/mock/api.json diff --git a/templates/ice-design/blocks/OurTeam/package.json b/blocks/OurTeam/package.json similarity index 100% rename from templates/ice-design/blocks/OurTeam/package.json rename to blocks/OurTeam/package.json diff --git a/templates/ice-design/blocks/OurTeam/src/OurTeam.jsx b/blocks/OurTeam/src/OurTeam.jsx similarity index 100% rename from templates/ice-design/blocks/OurTeam/src/OurTeam.jsx rename to blocks/OurTeam/src/OurTeam.jsx diff --git a/templates/ice-design/blocks/OurTeam/lib/OurTeam.scss b/blocks/OurTeam/src/OurTeam.scss similarity index 100% rename from templates/ice-design/blocks/OurTeam/lib/OurTeam.scss rename to blocks/OurTeam/src/OurTeam.scss diff --git a/templates/ice-design/blocks/OurTeam/src/index.js b/blocks/OurTeam/src/index.js similarity index 100% rename from templates/ice-design/blocks/OurTeam/src/index.js rename to blocks/OurTeam/src/index.js diff --git a/templates/ice-design/blocks/PictureTextList/.editorconfig b/blocks/PictureTextList/.editorconfig similarity index 100% rename from templates/ice-design/blocks/PictureTextList/.editorconfig rename to blocks/PictureTextList/.editorconfig diff --git a/templates/ice-design/blocks/PictureTextList/.eslintignore b/blocks/PictureTextList/.eslintignore similarity index 100% rename from templates/ice-design/blocks/PictureTextList/.eslintignore rename to blocks/PictureTextList/.eslintignore diff --git a/templates/ice-design/blocks/PictureTextList/.eslintrc b/blocks/PictureTextList/.eslintrc similarity index 100% rename from templates/ice-design/blocks/PictureTextList/.eslintrc rename to blocks/PictureTextList/.eslintrc diff --git a/templates/ice-design/blocks/PictureTextList/.gitignore b/blocks/PictureTextList/.gitignore similarity index 100% rename from templates/ice-design/blocks/PictureTextList/.gitignore rename to blocks/PictureTextList/.gitignore diff --git a/templates/ice-design/blocks/PictureTextList/README.md b/blocks/PictureTextList/README.md similarity index 100% rename from templates/ice-design/blocks/PictureTextList/README.md rename to blocks/PictureTextList/README.md diff --git a/templates/ice-design/blocks/PictureTextList/demo/index.html b/blocks/PictureTextList/demo/index.html similarity index 100% rename from templates/ice-design/blocks/PictureTextList/demo/index.html rename to blocks/PictureTextList/demo/index.html diff --git a/templates/ice-design/blocks/PictureTextList/demo/index.js b/blocks/PictureTextList/demo/index.js similarity index 100% rename from templates/ice-design/blocks/PictureTextList/demo/index.js rename to blocks/PictureTextList/demo/index.js diff --git a/templates/ice-design/blocks/PictureTextList/mock/api.json b/blocks/PictureTextList/mock/api.json similarity index 100% rename from templates/ice-design/blocks/PictureTextList/mock/api.json rename to blocks/PictureTextList/mock/api.json diff --git a/templates/ice-design/blocks/PictureTextList/package.json b/blocks/PictureTextList/package.json similarity index 100% rename from templates/ice-design/blocks/PictureTextList/package.json rename to blocks/PictureTextList/package.json diff --git a/templates/ice-design/blocks/PictureTextList/src/PictureTextList.jsx b/blocks/PictureTextList/src/PictureTextList.jsx similarity index 100% rename from templates/ice-design/blocks/PictureTextList/src/PictureTextList.jsx rename to blocks/PictureTextList/src/PictureTextList.jsx diff --git a/templates/ice-design/blocks/PictureTextList/lib/PictureTextList.scss b/blocks/PictureTextList/src/PictureTextList.scss similarity index 100% rename from templates/ice-design/blocks/PictureTextList/lib/PictureTextList.scss rename to blocks/PictureTextList/src/PictureTextList.scss diff --git a/templates/ice-design/blocks/PictureTextList/src/SingleItem/SingleItem.jsx b/blocks/PictureTextList/src/SingleItem/SingleItem.jsx similarity index 100% rename from templates/ice-design/blocks/PictureTextList/src/SingleItem/SingleItem.jsx rename to blocks/PictureTextList/src/SingleItem/SingleItem.jsx diff --git a/templates/ice-design/blocks/PictureTextList/lib/SingleItem/SingleItem.scss b/blocks/PictureTextList/src/SingleItem/SingleItem.scss similarity index 100% rename from templates/ice-design/blocks/PictureTextList/lib/SingleItem/SingleItem.scss rename to blocks/PictureTextList/src/SingleItem/SingleItem.scss diff --git a/templates/ice-design/blocks/PictureTextList/src/SingleItem/index.js b/blocks/PictureTextList/src/SingleItem/index.js similarity index 100% rename from templates/ice-design/blocks/PictureTextList/src/SingleItem/index.js rename to blocks/PictureTextList/src/SingleItem/index.js diff --git a/templates/ice-design/blocks/PictureTextList/src/index.js b/blocks/PictureTextList/src/index.js similarity index 100% rename from templates/ice-design/blocks/PictureTextList/src/index.js rename to blocks/PictureTextList/src/index.js diff --git a/templates/ice-design/blocks/PieDoughnutChart/.editorconfig b/blocks/PieDoughnutChart/.editorconfig similarity index 100% rename from templates/ice-design/blocks/PieDoughnutChart/.editorconfig rename to blocks/PieDoughnutChart/.editorconfig diff --git a/templates/ice-design/blocks/PieDoughnutChart/.eslintignore b/blocks/PieDoughnutChart/.eslintignore similarity index 100% rename from templates/ice-design/blocks/PieDoughnutChart/.eslintignore rename to blocks/PieDoughnutChart/.eslintignore diff --git a/templates/ice-design/blocks/PieDoughnutChart/.eslintrc b/blocks/PieDoughnutChart/.eslintrc similarity index 100% rename from templates/ice-design/blocks/PieDoughnutChart/.eslintrc rename to blocks/PieDoughnutChart/.eslintrc diff --git a/templates/ice-design/blocks/PieDoughnutChart/.gitignore b/blocks/PieDoughnutChart/.gitignore similarity index 100% rename from templates/ice-design/blocks/PieDoughnutChart/.gitignore rename to blocks/PieDoughnutChart/.gitignore diff --git a/templates/ice-design/blocks/PieDoughnutChart/README.md b/blocks/PieDoughnutChart/README.md similarity index 100% rename from templates/ice-design/blocks/PieDoughnutChart/README.md rename to blocks/PieDoughnutChart/README.md diff --git a/templates/ice-design/blocks/PieDoughnutChart/demo/index.html b/blocks/PieDoughnutChart/demo/index.html similarity index 100% rename from templates/ice-design/blocks/PieDoughnutChart/demo/index.html rename to blocks/PieDoughnutChart/demo/index.html diff --git a/templates/ice-design/blocks/PieDoughnutChart/demo/index.js b/blocks/PieDoughnutChart/demo/index.js similarity index 100% rename from templates/ice-design/blocks/PieDoughnutChart/demo/index.js rename to blocks/PieDoughnutChart/demo/index.js diff --git a/templates/ice-design/blocks/PieDoughnutChart/mock/api.json b/blocks/PieDoughnutChart/mock/api.json similarity index 100% rename from templates/ice-design/blocks/PieDoughnutChart/mock/api.json rename to blocks/PieDoughnutChart/mock/api.json diff --git a/templates/ice-design/blocks/PieDoughnutChart/package.json b/blocks/PieDoughnutChart/package.json similarity index 100% rename from templates/ice-design/blocks/PieDoughnutChart/package.json rename to blocks/PieDoughnutChart/package.json diff --git a/templates/ice-design/blocks/PieDoughnutChart/src/PieDoughnutChart.jsx b/blocks/PieDoughnutChart/src/PieDoughnutChart.jsx similarity index 100% rename from templates/ice-design/blocks/PieDoughnutChart/src/PieDoughnutChart.jsx rename to blocks/PieDoughnutChart/src/PieDoughnutChart.jsx diff --git a/templates/ice-design/blocks/PieDoughnutChart/lib/PieDoughnutChart.scss b/blocks/PieDoughnutChart/src/PieDoughnutChart.scss similarity index 100% rename from templates/ice-design/blocks/PieDoughnutChart/lib/PieDoughnutChart.scss rename to blocks/PieDoughnutChart/src/PieDoughnutChart.scss diff --git a/templates/ice-design/blocks/PieDoughnutChart/src/index.js b/blocks/PieDoughnutChart/src/index.js similarity index 100% rename from templates/ice-design/blocks/PieDoughnutChart/src/index.js rename to blocks/PieDoughnutChart/src/index.js diff --git a/templates/ice-design/blocks/PriceCard/.editorconfig b/blocks/PriceCard/.editorconfig similarity index 100% rename from templates/ice-design/blocks/PriceCard/.editorconfig rename to blocks/PriceCard/.editorconfig diff --git a/templates/ice-design/blocks/PriceCard/.eslintignore b/blocks/PriceCard/.eslintignore similarity index 100% rename from templates/ice-design/blocks/PriceCard/.eslintignore rename to blocks/PriceCard/.eslintignore diff --git a/templates/ice-design/blocks/PriceCard/.eslintrc b/blocks/PriceCard/.eslintrc similarity index 100% rename from templates/ice-design/blocks/PriceCard/.eslintrc rename to blocks/PriceCard/.eslintrc diff --git a/templates/ice-design/blocks/PriceCard/.gitignore b/blocks/PriceCard/.gitignore similarity index 100% rename from templates/ice-design/blocks/PriceCard/.gitignore rename to blocks/PriceCard/.gitignore diff --git a/templates/ice-design/blocks/PriceCard/README.md b/blocks/PriceCard/README.md similarity index 100% rename from templates/ice-design/blocks/PriceCard/README.md rename to blocks/PriceCard/README.md diff --git a/templates/ice-design/blocks/PriceCard/demo/index.html b/blocks/PriceCard/demo/index.html similarity index 100% rename from templates/ice-design/blocks/PriceCard/demo/index.html rename to blocks/PriceCard/demo/index.html diff --git a/templates/ice-design/blocks/PriceCard/demo/index.js b/blocks/PriceCard/demo/index.js similarity index 100% rename from templates/ice-design/blocks/PriceCard/demo/index.js rename to blocks/PriceCard/demo/index.js diff --git a/templates/ice-design/blocks/PriceCard/mock/api.json b/blocks/PriceCard/mock/api.json similarity index 100% rename from templates/ice-design/blocks/PriceCard/mock/api.json rename to blocks/PriceCard/mock/api.json diff --git a/templates/ice-design/blocks/PriceCard/package.json b/blocks/PriceCard/package.json similarity index 100% rename from templates/ice-design/blocks/PriceCard/package.json rename to blocks/PriceCard/package.json diff --git a/templates/ice-design/blocks/PriceCard/src/PriceCard.jsx b/blocks/PriceCard/src/PriceCard.jsx similarity index 100% rename from templates/ice-design/blocks/PriceCard/src/PriceCard.jsx rename to blocks/PriceCard/src/PriceCard.jsx diff --git a/templates/ice-design/blocks/PriceCard/lib/PriceCard.scss b/blocks/PriceCard/src/PriceCard.scss similarity index 100% rename from templates/ice-design/blocks/PriceCard/lib/PriceCard.scss rename to blocks/PriceCard/src/PriceCard.scss diff --git a/templates/ice-design/blocks/PriceCard/src/index.js b/blocks/PriceCard/src/index.js similarity index 100% rename from templates/ice-design/blocks/PriceCard/src/index.js rename to blocks/PriceCard/src/index.js diff --git a/templates/ice-design/blocks/PriceInfo/.editorconfig b/blocks/PriceInfo/.editorconfig similarity index 100% rename from templates/ice-design/blocks/PriceInfo/.editorconfig rename to blocks/PriceInfo/.editorconfig diff --git a/templates/ice-design/blocks/PriceInfo/.eslintignore b/blocks/PriceInfo/.eslintignore similarity index 100% rename from templates/ice-design/blocks/PriceInfo/.eslintignore rename to blocks/PriceInfo/.eslintignore diff --git a/templates/ice-design/blocks/PriceInfo/.eslintrc b/blocks/PriceInfo/.eslintrc similarity index 100% rename from templates/ice-design/blocks/PriceInfo/.eslintrc rename to blocks/PriceInfo/.eslintrc diff --git a/templates/ice-design/blocks/PriceInfo/.gitignore b/blocks/PriceInfo/.gitignore similarity index 100% rename from templates/ice-design/blocks/PriceInfo/.gitignore rename to blocks/PriceInfo/.gitignore diff --git a/templates/ice-design/blocks/PriceInfo/README.md b/blocks/PriceInfo/README.md similarity index 100% rename from templates/ice-design/blocks/PriceInfo/README.md rename to blocks/PriceInfo/README.md diff --git a/templates/ice-design/blocks/PriceInfo/demo/index.html b/blocks/PriceInfo/demo/index.html similarity index 100% rename from templates/ice-design/blocks/PriceInfo/demo/index.html rename to blocks/PriceInfo/demo/index.html diff --git a/templates/ice-design/blocks/PriceInfo/demo/index.js b/blocks/PriceInfo/demo/index.js similarity index 100% rename from templates/ice-design/blocks/PriceInfo/demo/index.js rename to blocks/PriceInfo/demo/index.js diff --git a/templates/ice-design/blocks/PriceInfo/mock/api.json b/blocks/PriceInfo/mock/api.json similarity index 100% rename from templates/ice-design/blocks/PriceInfo/mock/api.json rename to blocks/PriceInfo/mock/api.json diff --git a/templates/ice-design/blocks/PriceInfo/package.json b/blocks/PriceInfo/package.json similarity index 100% rename from templates/ice-design/blocks/PriceInfo/package.json rename to blocks/PriceInfo/package.json diff --git a/templates/ice-design/blocks/PriceInfo/src/PriceInfo.jsx b/blocks/PriceInfo/src/PriceInfo.jsx similarity index 100% rename from templates/ice-design/blocks/PriceInfo/src/PriceInfo.jsx rename to blocks/PriceInfo/src/PriceInfo.jsx diff --git a/templates/ice-design/blocks/PriceInfo/lib/PriceInfo.scss b/blocks/PriceInfo/src/PriceInfo.scss similarity index 100% rename from templates/ice-design/blocks/PriceInfo/lib/PriceInfo.scss rename to blocks/PriceInfo/src/PriceInfo.scss diff --git a/templates/ice-design/blocks/PriceInfo/src/index.js b/blocks/PriceInfo/src/index.js similarity index 100% rename from templates/ice-design/blocks/PriceInfo/src/index.js rename to blocks/PriceInfo/src/index.js diff --git a/templates/ice-design/blocks/PrivateMessageForm/.editorconfig b/blocks/PrivateMessageForm/.editorconfig similarity index 100% rename from templates/ice-design/blocks/PrivateMessageForm/.editorconfig rename to blocks/PrivateMessageForm/.editorconfig diff --git a/templates/ice-design/blocks/PrivateMessageForm/.eslintignore b/blocks/PrivateMessageForm/.eslintignore similarity index 100% rename from templates/ice-design/blocks/PrivateMessageForm/.eslintignore rename to blocks/PrivateMessageForm/.eslintignore diff --git a/templates/ice-design/blocks/PrivateMessageForm/.eslintrc b/blocks/PrivateMessageForm/.eslintrc similarity index 100% rename from templates/ice-design/blocks/PrivateMessageForm/.eslintrc rename to blocks/PrivateMessageForm/.eslintrc diff --git a/templates/ice-design/blocks/PrivateMessageForm/.gitignore b/blocks/PrivateMessageForm/.gitignore similarity index 100% rename from templates/ice-design/blocks/PrivateMessageForm/.gitignore rename to blocks/PrivateMessageForm/.gitignore diff --git a/templates/ice-design/blocks/PrivateMessageForm/README.md b/blocks/PrivateMessageForm/README.md similarity index 100% rename from templates/ice-design/blocks/PrivateMessageForm/README.md rename to blocks/PrivateMessageForm/README.md diff --git a/templates/ice-design/blocks/PrivateMessageForm/demo/index.html b/blocks/PrivateMessageForm/demo/index.html similarity index 100% rename from templates/ice-design/blocks/PrivateMessageForm/demo/index.html rename to blocks/PrivateMessageForm/demo/index.html diff --git a/templates/ice-design/blocks/PrivateMessageForm/demo/index.js b/blocks/PrivateMessageForm/demo/index.js similarity index 100% rename from templates/ice-design/blocks/PrivateMessageForm/demo/index.js rename to blocks/PrivateMessageForm/demo/index.js diff --git a/templates/ice-design/blocks/PrivateMessageForm/mock/api.json b/blocks/PrivateMessageForm/mock/api.json similarity index 100% rename from templates/ice-design/blocks/PrivateMessageForm/mock/api.json rename to blocks/PrivateMessageForm/mock/api.json diff --git a/templates/ice-design/blocks/PrivateMessageForm/package.json b/blocks/PrivateMessageForm/package.json similarity index 100% rename from templates/ice-design/blocks/PrivateMessageForm/package.json rename to blocks/PrivateMessageForm/package.json diff --git a/templates/ice-design/blocks/PrivateMessageForm/src/PrivateMessageForm.jsx b/blocks/PrivateMessageForm/src/PrivateMessageForm.jsx similarity index 100% rename from templates/ice-design/blocks/PrivateMessageForm/src/PrivateMessageForm.jsx rename to blocks/PrivateMessageForm/src/PrivateMessageForm.jsx diff --git a/templates/ice-design/blocks/PrivateMessageForm/lib/PrivateMessageForm.scss b/blocks/PrivateMessageForm/src/PrivateMessageForm.scss similarity index 100% rename from templates/ice-design/blocks/PrivateMessageForm/lib/PrivateMessageForm.scss rename to blocks/PrivateMessageForm/src/PrivateMessageForm.scss diff --git a/templates/ice-design/blocks/PrivateMessageForm/src/index.js b/blocks/PrivateMessageForm/src/index.js similarity index 100% rename from templates/ice-design/blocks/PrivateMessageForm/src/index.js rename to blocks/PrivateMessageForm/src/index.js diff --git a/templates/ice-design/blocks/ProductInfo/.editorconfig b/blocks/ProductInfo/.editorconfig similarity index 100% rename from templates/ice-design/blocks/ProductInfo/.editorconfig rename to blocks/ProductInfo/.editorconfig diff --git a/templates/ice-design/blocks/ProductInfo/.eslintignore b/blocks/ProductInfo/.eslintignore similarity index 100% rename from templates/ice-design/blocks/ProductInfo/.eslintignore rename to blocks/ProductInfo/.eslintignore diff --git a/templates/ice-design/blocks/ProductInfo/.eslintrc b/blocks/ProductInfo/.eslintrc similarity index 100% rename from templates/ice-design/blocks/ProductInfo/.eslintrc rename to blocks/ProductInfo/.eslintrc diff --git a/templates/ice-design/blocks/ProductInfo/.gitignore b/blocks/ProductInfo/.gitignore similarity index 100% rename from templates/ice-design/blocks/ProductInfo/.gitignore rename to blocks/ProductInfo/.gitignore diff --git a/templates/ice-design/blocks/ProductInfo/README.md b/blocks/ProductInfo/README.md similarity index 100% rename from templates/ice-design/blocks/ProductInfo/README.md rename to blocks/ProductInfo/README.md diff --git a/templates/ice-design/blocks/ProductInfo/demo/index.html b/blocks/ProductInfo/demo/index.html similarity index 100% rename from templates/ice-design/blocks/ProductInfo/demo/index.html rename to blocks/ProductInfo/demo/index.html diff --git a/templates/ice-design/blocks/ProductInfo/demo/index.js b/blocks/ProductInfo/demo/index.js similarity index 100% rename from templates/ice-design/blocks/ProductInfo/demo/index.js rename to blocks/ProductInfo/demo/index.js diff --git a/templates/ice-design/blocks/ProductInfo/mock/api.json b/blocks/ProductInfo/mock/api.json similarity index 100% rename from templates/ice-design/blocks/ProductInfo/mock/api.json rename to blocks/ProductInfo/mock/api.json diff --git a/templates/ice-design/blocks/ProductInfo/package.json b/blocks/ProductInfo/package.json similarity index 100% rename from templates/ice-design/blocks/ProductInfo/package.json rename to blocks/ProductInfo/package.json diff --git a/templates/ice-design/blocks/ProductInfo/src/ProductInfo.jsx b/blocks/ProductInfo/src/ProductInfo.jsx similarity index 100% rename from templates/ice-design/blocks/ProductInfo/src/ProductInfo.jsx rename to blocks/ProductInfo/src/ProductInfo.jsx diff --git a/templates/ice-design/blocks/ProductInfo/lib/ProductInfo.scss b/blocks/ProductInfo/src/ProductInfo.scss similarity index 100% rename from templates/ice-design/blocks/ProductInfo/lib/ProductInfo.scss rename to blocks/ProductInfo/src/ProductInfo.scss diff --git a/templates/ice-design/blocks/ProductInfo/src/index.js b/blocks/ProductInfo/src/index.js similarity index 100% rename from templates/ice-design/blocks/ProductInfo/src/index.js rename to blocks/ProductInfo/src/index.js diff --git a/templates/ice-design/blocks/ProgressTable/.editorconfig b/blocks/ProgressTable/.editorconfig similarity index 100% rename from templates/ice-design/blocks/ProgressTable/.editorconfig rename to blocks/ProgressTable/.editorconfig diff --git a/templates/ice-design/blocks/ProgressTable/.eslintignore b/blocks/ProgressTable/.eslintignore similarity index 100% rename from templates/ice-design/blocks/ProgressTable/.eslintignore rename to blocks/ProgressTable/.eslintignore diff --git a/templates/ice-design/blocks/ProgressTable/.eslintrc b/blocks/ProgressTable/.eslintrc similarity index 100% rename from templates/ice-design/blocks/ProgressTable/.eslintrc rename to blocks/ProgressTable/.eslintrc diff --git a/templates/ice-design/blocks/ProgressTable/.gitignore b/blocks/ProgressTable/.gitignore similarity index 100% rename from templates/ice-design/blocks/ProgressTable/.gitignore rename to blocks/ProgressTable/.gitignore diff --git a/templates/ice-design/blocks/ProgressTable/README.md b/blocks/ProgressTable/README.md similarity index 100% rename from templates/ice-design/blocks/ProgressTable/README.md rename to blocks/ProgressTable/README.md diff --git a/templates/ice-design/blocks/ProgressTable/demo/index.html b/blocks/ProgressTable/demo/index.html similarity index 100% rename from templates/ice-design/blocks/ProgressTable/demo/index.html rename to blocks/ProgressTable/demo/index.html diff --git a/templates/ice-design/blocks/ProgressTable/demo/index.js b/blocks/ProgressTable/demo/index.js similarity index 100% rename from templates/ice-design/blocks/ProgressTable/demo/index.js rename to blocks/ProgressTable/demo/index.js diff --git a/templates/ice-design/blocks/ProgressTable/mock/api.json b/blocks/ProgressTable/mock/api.json similarity index 100% rename from templates/ice-design/blocks/ProgressTable/mock/api.json rename to blocks/ProgressTable/mock/api.json diff --git a/templates/ice-design/blocks/ProgressTable/package.json b/blocks/ProgressTable/package.json similarity index 100% rename from templates/ice-design/blocks/ProgressTable/package.json rename to blocks/ProgressTable/package.json diff --git a/templates/ice-design/blocks/ProgressTable/src/ProgressTable.jsx b/blocks/ProgressTable/src/ProgressTable.jsx similarity index 100% rename from templates/ice-design/blocks/ProgressTable/src/ProgressTable.jsx rename to blocks/ProgressTable/src/ProgressTable.jsx diff --git a/templates/ice-design/blocks/ProgressTable/lib/ProgressTable.scss b/blocks/ProgressTable/src/ProgressTable.scss similarity index 100% rename from templates/ice-design/blocks/ProgressTable/lib/ProgressTable.scss rename to blocks/ProgressTable/src/ProgressTable.scss diff --git a/templates/ice-design/blocks/ProgressTable/src/index.js b/blocks/ProgressTable/src/index.js similarity index 100% rename from templates/ice-design/blocks/ProgressTable/src/index.js rename to blocks/ProgressTable/src/index.js diff --git a/templates/ice-design/blocks/RegisterForm/.editorconfig b/blocks/RegisterForm/.editorconfig similarity index 100% rename from templates/ice-design/blocks/RegisterForm/.editorconfig rename to blocks/RegisterForm/.editorconfig diff --git a/templates/ice-design/blocks/RegisterForm/.eslintignore b/blocks/RegisterForm/.eslintignore similarity index 100% rename from templates/ice-design/blocks/RegisterForm/.eslintignore rename to blocks/RegisterForm/.eslintignore diff --git a/templates/ice-design/blocks/RegisterForm/.eslintrc b/blocks/RegisterForm/.eslintrc similarity index 100% rename from templates/ice-design/blocks/RegisterForm/.eslintrc rename to blocks/RegisterForm/.eslintrc diff --git a/templates/ice-design/blocks/RegisterForm/.gitignore b/blocks/RegisterForm/.gitignore similarity index 100% rename from templates/ice-design/blocks/RegisterForm/.gitignore rename to blocks/RegisterForm/.gitignore diff --git a/templates/ice-design/blocks/RegisterForm/README.md b/blocks/RegisterForm/README.md similarity index 100% rename from templates/ice-design/blocks/RegisterForm/README.md rename to blocks/RegisterForm/README.md diff --git a/templates/ice-design/blocks/RegisterForm/demo/index.html b/blocks/RegisterForm/demo/index.html similarity index 100% rename from templates/ice-design/blocks/RegisterForm/demo/index.html rename to blocks/RegisterForm/demo/index.html diff --git a/templates/ice-design/blocks/RegisterForm/demo/index.js b/blocks/RegisterForm/demo/index.js similarity index 100% rename from templates/ice-design/blocks/RegisterForm/demo/index.js rename to blocks/RegisterForm/demo/index.js diff --git a/templates/ice-design/blocks/RegisterForm/mock/api.json b/blocks/RegisterForm/mock/api.json similarity index 100% rename from templates/ice-design/blocks/RegisterForm/mock/api.json rename to blocks/RegisterForm/mock/api.json diff --git a/templates/ice-design/blocks/RegisterForm/package.json b/blocks/RegisterForm/package.json similarity index 100% rename from templates/ice-design/blocks/RegisterForm/package.json rename to blocks/RegisterForm/package.json diff --git a/templates/ice-design/blocks/RegisterForm/src/RegisterForm.jsx b/blocks/RegisterForm/src/RegisterForm.jsx similarity index 100% rename from templates/ice-design/blocks/RegisterForm/src/RegisterForm.jsx rename to blocks/RegisterForm/src/RegisterForm.jsx diff --git a/templates/ice-design/blocks/RegisterForm/lib/RegisterForm.scss b/blocks/RegisterForm/src/RegisterForm.scss similarity index 100% rename from templates/ice-design/blocks/RegisterForm/lib/RegisterForm.scss rename to blocks/RegisterForm/src/RegisterForm.scss diff --git a/templates/ice-design/blocks/RegisterForm/src/index.js b/blocks/RegisterForm/src/index.js similarity index 100% rename from templates/ice-design/blocks/RegisterForm/src/index.js rename to blocks/RegisterForm/src/index.js diff --git a/templates/ice-design/blocks/RightContentDisplay/.editorconfig b/blocks/RightContentDisplay/.editorconfig similarity index 100% rename from templates/ice-design/blocks/RightContentDisplay/.editorconfig rename to blocks/RightContentDisplay/.editorconfig diff --git a/templates/ice-design/blocks/RightContentDisplay/.eslintignore b/blocks/RightContentDisplay/.eslintignore similarity index 100% rename from templates/ice-design/blocks/RightContentDisplay/.eslintignore rename to blocks/RightContentDisplay/.eslintignore diff --git a/templates/ice-design/blocks/RightContentDisplay/.eslintrc b/blocks/RightContentDisplay/.eslintrc similarity index 100% rename from templates/ice-design/blocks/RightContentDisplay/.eslintrc rename to blocks/RightContentDisplay/.eslintrc diff --git a/templates/ice-design/blocks/RightContentDisplay/.gitignore b/blocks/RightContentDisplay/.gitignore similarity index 100% rename from templates/ice-design/blocks/RightContentDisplay/.gitignore rename to blocks/RightContentDisplay/.gitignore diff --git a/templates/ice-design/blocks/RightContentDisplay/README.md b/blocks/RightContentDisplay/README.md similarity index 100% rename from templates/ice-design/blocks/RightContentDisplay/README.md rename to blocks/RightContentDisplay/README.md diff --git a/templates/ice-design/blocks/RightContentDisplay/demo/index.html b/blocks/RightContentDisplay/demo/index.html similarity index 100% rename from templates/ice-design/blocks/RightContentDisplay/demo/index.html rename to blocks/RightContentDisplay/demo/index.html diff --git a/templates/ice-design/blocks/RightContentDisplay/demo/index.js b/blocks/RightContentDisplay/demo/index.js similarity index 100% rename from templates/ice-design/blocks/RightContentDisplay/demo/index.js rename to blocks/RightContentDisplay/demo/index.js diff --git a/templates/ice-design/blocks/RightContentDisplay/mock/api.json b/blocks/RightContentDisplay/mock/api.json similarity index 100% rename from templates/ice-design/blocks/RightContentDisplay/mock/api.json rename to blocks/RightContentDisplay/mock/api.json diff --git a/templates/ice-design/blocks/RightContentDisplay/package.json b/blocks/RightContentDisplay/package.json similarity index 100% rename from templates/ice-design/blocks/RightContentDisplay/package.json rename to blocks/RightContentDisplay/package.json diff --git a/templates/ice-design/blocks/RightContentDisplay/src/RightContentDisplay.jsx b/blocks/RightContentDisplay/src/RightContentDisplay.jsx similarity index 100% rename from templates/ice-design/blocks/RightContentDisplay/src/RightContentDisplay.jsx rename to blocks/RightContentDisplay/src/RightContentDisplay.jsx diff --git a/templates/ice-design/blocks/RightContentDisplay/lib/RightContentDisplay.scss b/blocks/RightContentDisplay/src/RightContentDisplay.scss similarity index 100% rename from templates/ice-design/blocks/RightContentDisplay/lib/RightContentDisplay.scss rename to blocks/RightContentDisplay/src/RightContentDisplay.scss diff --git a/templates/ice-design/blocks/RightContentDisplay/src/index.js b/blocks/RightContentDisplay/src/index.js similarity index 100% rename from templates/ice-design/blocks/RightContentDisplay/src/index.js rename to blocks/RightContentDisplay/src/index.js diff --git a/templates/ice-design/blocks/SelectableTable/.editorconfig b/blocks/SelectableTable/.editorconfig similarity index 100% rename from templates/ice-design/blocks/SelectableTable/.editorconfig rename to blocks/SelectableTable/.editorconfig diff --git a/templates/ice-design/blocks/SelectableTable/.eslintignore b/blocks/SelectableTable/.eslintignore similarity index 100% rename from templates/ice-design/blocks/SelectableTable/.eslintignore rename to blocks/SelectableTable/.eslintignore diff --git a/templates/ice-design/blocks/SelectableTable/.eslintrc b/blocks/SelectableTable/.eslintrc similarity index 100% rename from templates/ice-design/blocks/SelectableTable/.eslintrc rename to blocks/SelectableTable/.eslintrc diff --git a/templates/ice-design/blocks/SelectableTable/.gitignore b/blocks/SelectableTable/.gitignore similarity index 100% rename from templates/ice-design/blocks/SelectableTable/.gitignore rename to blocks/SelectableTable/.gitignore diff --git a/templates/ice-design/blocks/SelectableTable/README.md b/blocks/SelectableTable/README.md similarity index 100% rename from templates/ice-design/blocks/SelectableTable/README.md rename to blocks/SelectableTable/README.md diff --git a/templates/ice-design/blocks/SelectableTable/demo/index.html b/blocks/SelectableTable/demo/index.html similarity index 100% rename from templates/ice-design/blocks/SelectableTable/demo/index.html rename to blocks/SelectableTable/demo/index.html diff --git a/templates/ice-design/blocks/SelectableTable/demo/index.js b/blocks/SelectableTable/demo/index.js similarity index 100% rename from templates/ice-design/blocks/SelectableTable/demo/index.js rename to blocks/SelectableTable/demo/index.js diff --git a/templates/ice-design/blocks/SelectableTable/mock/api.json b/blocks/SelectableTable/mock/api.json similarity index 100% rename from templates/ice-design/blocks/SelectableTable/mock/api.json rename to blocks/SelectableTable/mock/api.json diff --git a/templates/ice-design/blocks/SelectableTable/package.json b/blocks/SelectableTable/package.json similarity index 100% rename from templates/ice-design/blocks/SelectableTable/package.json rename to blocks/SelectableTable/package.json diff --git a/templates/ice-design/blocks/SelectableTable/src/SelectableTable.jsx b/blocks/SelectableTable/src/SelectableTable.jsx similarity index 100% rename from templates/ice-design/blocks/SelectableTable/src/SelectableTable.jsx rename to blocks/SelectableTable/src/SelectableTable.jsx diff --git a/templates/ice-design/blocks/SelectableTable/lib/SelectableTable.scss b/blocks/SelectableTable/src/SelectableTable.scss similarity index 100% rename from templates/ice-design/blocks/SelectableTable/lib/SelectableTable.scss rename to blocks/SelectableTable/src/SelectableTable.scss diff --git a/templates/ice-design/blocks/SelectableTable/src/index.js b/blocks/SelectableTable/src/index.js similarity index 100% rename from templates/ice-design/blocks/SelectableTable/src/index.js rename to blocks/SelectableTable/src/index.js diff --git a/templates/ice-design/blocks/SignupForm/.editorconfig b/blocks/SignupForm/.editorconfig similarity index 100% rename from templates/ice-design/blocks/SignupForm/.editorconfig rename to blocks/SignupForm/.editorconfig diff --git a/templates/ice-design/blocks/SignupForm/.eslintignore b/blocks/SignupForm/.eslintignore similarity index 100% rename from templates/ice-design/blocks/SignupForm/.eslintignore rename to blocks/SignupForm/.eslintignore diff --git a/templates/ice-design/blocks/SignupForm/.eslintrc b/blocks/SignupForm/.eslintrc similarity index 100% rename from templates/ice-design/blocks/SignupForm/.eslintrc rename to blocks/SignupForm/.eslintrc diff --git a/templates/ice-design/blocks/SignupForm/.gitignore b/blocks/SignupForm/.gitignore similarity index 100% rename from templates/ice-design/blocks/SignupForm/.gitignore rename to blocks/SignupForm/.gitignore diff --git a/templates/ice-design/blocks/SignupForm/README.md b/blocks/SignupForm/README.md similarity index 100% rename from templates/ice-design/blocks/SignupForm/README.md rename to blocks/SignupForm/README.md diff --git a/templates/ice-design/blocks/SignupForm/demo/index.html b/blocks/SignupForm/demo/index.html similarity index 100% rename from templates/ice-design/blocks/SignupForm/demo/index.html rename to blocks/SignupForm/demo/index.html diff --git a/templates/ice-design/blocks/SignupForm/demo/index.js b/blocks/SignupForm/demo/index.js similarity index 100% rename from templates/ice-design/blocks/SignupForm/demo/index.js rename to blocks/SignupForm/demo/index.js diff --git a/templates/ice-design/blocks/SignupForm/mock/api.json b/blocks/SignupForm/mock/api.json similarity index 100% rename from templates/ice-design/blocks/SignupForm/mock/api.json rename to blocks/SignupForm/mock/api.json diff --git a/templates/ice-design/blocks/SignupForm/package.json b/blocks/SignupForm/package.json similarity index 100% rename from templates/ice-design/blocks/SignupForm/package.json rename to blocks/SignupForm/package.json diff --git a/templates/ice-design/blocks/SignupForm/src/SignupForm.jsx b/blocks/SignupForm/src/SignupForm.jsx similarity index 100% rename from templates/ice-design/blocks/SignupForm/src/SignupForm.jsx rename to blocks/SignupForm/src/SignupForm.jsx diff --git a/templates/ice-design/blocks/SignupForm/lib/SignupForm.scss b/blocks/SignupForm/src/SignupForm.scss similarity index 100% rename from templates/ice-design/blocks/SignupForm/lib/SignupForm.scss rename to blocks/SignupForm/src/SignupForm.scss diff --git a/templates/ice-design/blocks/SignupForm/src/index.js b/blocks/SignupForm/src/index.js similarity index 100% rename from templates/ice-design/blocks/SignupForm/src/index.js rename to blocks/SignupForm/src/index.js diff --git a/templates/ice-design/blocks/SimpleFluencyForm/.editorconfig b/blocks/SimpleFluencyForm/.editorconfig similarity index 100% rename from templates/ice-design/blocks/SimpleFluencyForm/.editorconfig rename to blocks/SimpleFluencyForm/.editorconfig diff --git a/templates/ice-design/blocks/SimpleFluencyForm/.eslintignore b/blocks/SimpleFluencyForm/.eslintignore similarity index 100% rename from templates/ice-design/blocks/SimpleFluencyForm/.eslintignore rename to blocks/SimpleFluencyForm/.eslintignore diff --git a/templates/ice-design/blocks/SimpleFluencyForm/.eslintrc b/blocks/SimpleFluencyForm/.eslintrc similarity index 100% rename from templates/ice-design/blocks/SimpleFluencyForm/.eslintrc rename to blocks/SimpleFluencyForm/.eslintrc diff --git a/templates/ice-design/blocks/SimpleFluencyForm/.gitignore b/blocks/SimpleFluencyForm/.gitignore similarity index 100% rename from templates/ice-design/blocks/SimpleFluencyForm/.gitignore rename to blocks/SimpleFluencyForm/.gitignore diff --git a/templates/ice-design/blocks/SimpleFluencyForm/README.md b/blocks/SimpleFluencyForm/README.md similarity index 100% rename from templates/ice-design/blocks/SimpleFluencyForm/README.md rename to blocks/SimpleFluencyForm/README.md diff --git a/templates/ice-design/blocks/SimpleFluencyForm/demo/index.html b/blocks/SimpleFluencyForm/demo/index.html similarity index 100% rename from templates/ice-design/blocks/SimpleFluencyForm/demo/index.html rename to blocks/SimpleFluencyForm/demo/index.html diff --git a/templates/ice-design/blocks/SimpleFluencyForm/demo/index.js b/blocks/SimpleFluencyForm/demo/index.js similarity index 100% rename from templates/ice-design/blocks/SimpleFluencyForm/demo/index.js rename to blocks/SimpleFluencyForm/demo/index.js diff --git a/templates/ice-design/blocks/SimpleFluencyForm/mock/api.json b/blocks/SimpleFluencyForm/mock/api.json similarity index 100% rename from templates/ice-design/blocks/SimpleFluencyForm/mock/api.json rename to blocks/SimpleFluencyForm/mock/api.json diff --git a/templates/ice-design/blocks/SimpleFluencyForm/package.json b/blocks/SimpleFluencyForm/package.json similarity index 100% rename from templates/ice-design/blocks/SimpleFluencyForm/package.json rename to blocks/SimpleFluencyForm/package.json diff --git a/templates/ice-design/blocks/SimpleFluencyForm/src/SimpleFluencyForm.jsx b/blocks/SimpleFluencyForm/src/SimpleFluencyForm.jsx similarity index 100% rename from templates/ice-design/blocks/SimpleFluencyForm/src/SimpleFluencyForm.jsx rename to blocks/SimpleFluencyForm/src/SimpleFluencyForm.jsx diff --git a/templates/ice-design/blocks/SimpleFluencyForm/lib/SimpleFluencyForm.scss b/blocks/SimpleFluencyForm/src/SimpleFluencyForm.scss similarity index 100% rename from templates/ice-design/blocks/SimpleFluencyForm/lib/SimpleFluencyForm.scss rename to blocks/SimpleFluencyForm/src/SimpleFluencyForm.scss diff --git a/templates/ice-design/blocks/SimpleFluencyForm/src/index.js b/blocks/SimpleFluencyForm/src/index.js similarity index 100% rename from templates/ice-design/blocks/SimpleFluencyForm/src/index.js rename to blocks/SimpleFluencyForm/src/index.js diff --git a/templates/ice-design/blocks/SimpleFormDialog/.editorconfig b/blocks/SimpleFormDialog/.editorconfig similarity index 100% rename from templates/ice-design/blocks/SimpleFormDialog/.editorconfig rename to blocks/SimpleFormDialog/.editorconfig diff --git a/templates/ice-design/blocks/SimpleFormDialog/.eslintignore b/blocks/SimpleFormDialog/.eslintignore similarity index 100% rename from templates/ice-design/blocks/SimpleFormDialog/.eslintignore rename to blocks/SimpleFormDialog/.eslintignore diff --git a/templates/ice-design/blocks/SimpleFormDialog/.eslintrc b/blocks/SimpleFormDialog/.eslintrc similarity index 100% rename from templates/ice-design/blocks/SimpleFormDialog/.eslintrc rename to blocks/SimpleFormDialog/.eslintrc diff --git a/templates/ice-design/blocks/SimpleFormDialog/.gitignore b/blocks/SimpleFormDialog/.gitignore similarity index 100% rename from templates/ice-design/blocks/SimpleFormDialog/.gitignore rename to blocks/SimpleFormDialog/.gitignore diff --git a/templates/ice-design/blocks/SimpleFormDialog/README.md b/blocks/SimpleFormDialog/README.md similarity index 100% rename from templates/ice-design/blocks/SimpleFormDialog/README.md rename to blocks/SimpleFormDialog/README.md diff --git a/templates/ice-design/blocks/SimpleFormDialog/demo/index.html b/blocks/SimpleFormDialog/demo/index.html similarity index 100% rename from templates/ice-design/blocks/SimpleFormDialog/demo/index.html rename to blocks/SimpleFormDialog/demo/index.html diff --git a/templates/ice-design/blocks/SimpleFormDialog/demo/index.js b/blocks/SimpleFormDialog/demo/index.js similarity index 100% rename from templates/ice-design/blocks/SimpleFormDialog/demo/index.js rename to blocks/SimpleFormDialog/demo/index.js diff --git a/templates/ice-design/blocks/SimpleFormDialog/mock/api.json b/blocks/SimpleFormDialog/mock/api.json similarity index 100% rename from templates/ice-design/blocks/SimpleFormDialog/mock/api.json rename to blocks/SimpleFormDialog/mock/api.json diff --git a/templates/ice-design/blocks/SimpleFormDialog/package.json b/blocks/SimpleFormDialog/package.json similarity index 100% rename from templates/ice-design/blocks/SimpleFormDialog/package.json rename to blocks/SimpleFormDialog/package.json diff --git a/templates/ice-design/blocks/SimpleFormDialog/src/CreateFuncDialog.js b/blocks/SimpleFormDialog/src/CreateFuncDialog.js similarity index 100% rename from templates/ice-design/blocks/SimpleFormDialog/src/CreateFuncDialog.js rename to blocks/SimpleFormDialog/src/CreateFuncDialog.js diff --git a/templates/ice-design/blocks/SimpleFormDialog/src/SimpleFormDialog.jsx b/blocks/SimpleFormDialog/src/SimpleFormDialog.jsx similarity index 100% rename from templates/ice-design/blocks/SimpleFormDialog/src/SimpleFormDialog.jsx rename to blocks/SimpleFormDialog/src/SimpleFormDialog.jsx diff --git a/templates/ice-design/blocks/SimpleFormDialog/lib/SimpleFormDialog.scss b/blocks/SimpleFormDialog/src/SimpleFormDialog.scss similarity index 100% rename from templates/ice-design/blocks/SimpleFormDialog/lib/SimpleFormDialog.scss rename to blocks/SimpleFormDialog/src/SimpleFormDialog.scss diff --git a/templates/ice-design/blocks/SimpleFormDialog/src/index.js b/blocks/SimpleFormDialog/src/index.js similarity index 100% rename from templates/ice-design/blocks/SimpleFormDialog/src/index.js rename to blocks/SimpleFormDialog/src/index.js diff --git a/templates/ice-design/blocks/SimpleTable/.editorconfig b/blocks/SimpleTable/.editorconfig similarity index 100% rename from templates/ice-design/blocks/SimpleTable/.editorconfig rename to blocks/SimpleTable/.editorconfig diff --git a/templates/ice-design/blocks/SimpleTable/.eslintignore b/blocks/SimpleTable/.eslintignore similarity index 100% rename from templates/ice-design/blocks/SimpleTable/.eslintignore rename to blocks/SimpleTable/.eslintignore diff --git a/templates/ice-design/blocks/SimpleTable/.eslintrc b/blocks/SimpleTable/.eslintrc similarity index 100% rename from templates/ice-design/blocks/SimpleTable/.eslintrc rename to blocks/SimpleTable/.eslintrc diff --git a/templates/ice-design/blocks/SimpleTable/.gitignore b/blocks/SimpleTable/.gitignore similarity index 100% rename from templates/ice-design/blocks/SimpleTable/.gitignore rename to blocks/SimpleTable/.gitignore diff --git a/templates/ice-design/blocks/SimpleTable/README.md b/blocks/SimpleTable/README.md similarity index 100% rename from templates/ice-design/blocks/SimpleTable/README.md rename to blocks/SimpleTable/README.md diff --git a/templates/ice-design/blocks/SimpleTable/demo/index.html b/blocks/SimpleTable/demo/index.html similarity index 100% rename from templates/ice-design/blocks/SimpleTable/demo/index.html rename to blocks/SimpleTable/demo/index.html diff --git a/templates/ice-design/blocks/SimpleTable/demo/index.js b/blocks/SimpleTable/demo/index.js similarity index 100% rename from templates/ice-design/blocks/SimpleTable/demo/index.js rename to blocks/SimpleTable/demo/index.js diff --git a/templates/ice-design/blocks/SimpleTable/mock/simple-table-list.json b/blocks/SimpleTable/mock/simple-table-list.json similarity index 100% rename from templates/ice-design/blocks/SimpleTable/mock/simple-table-list.json rename to blocks/SimpleTable/mock/simple-table-list.json diff --git a/templates/ice-design/blocks/SimpleTable/package.json b/blocks/SimpleTable/package.json similarity index 100% rename from templates/ice-design/blocks/SimpleTable/package.json rename to blocks/SimpleTable/package.json diff --git a/templates/ice-design/blocks/SimpleTable/src/SimpleTable.jsx b/blocks/SimpleTable/src/SimpleTable.jsx similarity index 100% rename from templates/ice-design/blocks/SimpleTable/src/SimpleTable.jsx rename to blocks/SimpleTable/src/SimpleTable.jsx diff --git a/templates/ice-design/blocks/SimpleTable/lib/SimpleTable.scss b/blocks/SimpleTable/src/SimpleTable.scss similarity index 100% rename from templates/ice-design/blocks/SimpleTable/lib/SimpleTable.scss rename to blocks/SimpleTable/src/SimpleTable.scss diff --git a/templates/ice-design/blocks/SimpleTable/src/index.js b/blocks/SimpleTable/src/index.js similarity index 100% rename from templates/ice-design/blocks/SimpleTable/src/index.js rename to blocks/SimpleTable/src/index.js diff --git a/templates/ice-design/blocks/SimpleTestimonial/.editorconfig b/blocks/SimpleTestimonial/.editorconfig similarity index 100% rename from templates/ice-design/blocks/SimpleTestimonial/.editorconfig rename to blocks/SimpleTestimonial/.editorconfig diff --git a/templates/ice-design/blocks/SimpleTestimonial/.eslintignore b/blocks/SimpleTestimonial/.eslintignore similarity index 100% rename from templates/ice-design/blocks/SimpleTestimonial/.eslintignore rename to blocks/SimpleTestimonial/.eslintignore diff --git a/templates/ice-design/blocks/SimpleTestimonial/.eslintrc b/blocks/SimpleTestimonial/.eslintrc similarity index 100% rename from templates/ice-design/blocks/SimpleTestimonial/.eslintrc rename to blocks/SimpleTestimonial/.eslintrc diff --git a/templates/ice-design/blocks/SimpleTestimonial/.gitignore b/blocks/SimpleTestimonial/.gitignore similarity index 100% rename from templates/ice-design/blocks/SimpleTestimonial/.gitignore rename to blocks/SimpleTestimonial/.gitignore diff --git a/templates/ice-design/blocks/SimpleTestimonial/README.md b/blocks/SimpleTestimonial/README.md similarity index 100% rename from templates/ice-design/blocks/SimpleTestimonial/README.md rename to blocks/SimpleTestimonial/README.md diff --git a/templates/ice-design/blocks/SimpleTestimonial/demo/index.html b/blocks/SimpleTestimonial/demo/index.html similarity index 100% rename from templates/ice-design/blocks/SimpleTestimonial/demo/index.html rename to blocks/SimpleTestimonial/demo/index.html diff --git a/templates/ice-design/blocks/SimpleTestimonial/demo/index.js b/blocks/SimpleTestimonial/demo/index.js similarity index 100% rename from templates/ice-design/blocks/SimpleTestimonial/demo/index.js rename to blocks/SimpleTestimonial/demo/index.js diff --git a/templates/ice-design/blocks/SimpleTestimonial/mock/api.json b/blocks/SimpleTestimonial/mock/api.json similarity index 100% rename from templates/ice-design/blocks/SimpleTestimonial/mock/api.json rename to blocks/SimpleTestimonial/mock/api.json diff --git a/templates/ice-design/blocks/SimpleTestimonial/package.json b/blocks/SimpleTestimonial/package.json similarity index 100% rename from templates/ice-design/blocks/SimpleTestimonial/package.json rename to blocks/SimpleTestimonial/package.json diff --git a/templates/ice-design/blocks/SimpleTestimonial/src/SimpleTestimonial.jsx b/blocks/SimpleTestimonial/src/SimpleTestimonial.jsx similarity index 100% rename from templates/ice-design/blocks/SimpleTestimonial/src/SimpleTestimonial.jsx rename to blocks/SimpleTestimonial/src/SimpleTestimonial.jsx diff --git a/templates/ice-design/blocks/SimpleTestimonial/lib/SimpleTestimonial.scss b/blocks/SimpleTestimonial/src/SimpleTestimonial.scss similarity index 100% rename from templates/ice-design/blocks/SimpleTestimonial/lib/SimpleTestimonial.scss rename to blocks/SimpleTestimonial/src/SimpleTestimonial.scss diff --git a/templates/ice-design/blocks/SimpleTestimonial/src/index.js b/blocks/SimpleTestimonial/src/index.js similarity index 100% rename from templates/ice-design/blocks/SimpleTestimonial/src/index.js rename to blocks/SimpleTestimonial/src/index.js diff --git a/templates/ice-design/blocks/SortCardList/.editorconfig b/blocks/SortCardList/.editorconfig similarity index 100% rename from templates/ice-design/blocks/SortCardList/.editorconfig rename to blocks/SortCardList/.editorconfig diff --git a/templates/ice-design/blocks/SortCardList/.eslintignore b/blocks/SortCardList/.eslintignore similarity index 100% rename from templates/ice-design/blocks/SortCardList/.eslintignore rename to blocks/SortCardList/.eslintignore diff --git a/templates/ice-design/blocks/SortCardList/.eslintrc b/blocks/SortCardList/.eslintrc similarity index 100% rename from templates/ice-design/blocks/SortCardList/.eslintrc rename to blocks/SortCardList/.eslintrc diff --git a/templates/ice-design/blocks/SortCardList/.gitignore b/blocks/SortCardList/.gitignore similarity index 100% rename from templates/ice-design/blocks/SortCardList/.gitignore rename to blocks/SortCardList/.gitignore diff --git a/templates/ice-design/blocks/SortCardList/README.md b/blocks/SortCardList/README.md similarity index 100% rename from templates/ice-design/blocks/SortCardList/README.md rename to blocks/SortCardList/README.md diff --git a/templates/ice-design/blocks/SortCardList/demo/index.html b/blocks/SortCardList/demo/index.html similarity index 100% rename from templates/ice-design/blocks/SortCardList/demo/index.html rename to blocks/SortCardList/demo/index.html diff --git a/templates/ice-design/blocks/SortCardList/demo/index.js b/blocks/SortCardList/demo/index.js similarity index 100% rename from templates/ice-design/blocks/SortCardList/demo/index.js rename to blocks/SortCardList/demo/index.js diff --git a/templates/ice-design/blocks/SortCardList/mock/api.json b/blocks/SortCardList/mock/api.json similarity index 100% rename from templates/ice-design/blocks/SortCardList/mock/api.json rename to blocks/SortCardList/mock/api.json diff --git a/templates/ice-design/blocks/SortCardList/package.json b/blocks/SortCardList/package.json similarity index 100% rename from templates/ice-design/blocks/SortCardList/package.json rename to blocks/SortCardList/package.json diff --git a/templates/ice-design/blocks/SortCardList/src/SortCardList.jsx b/blocks/SortCardList/src/SortCardList.jsx similarity index 100% rename from templates/ice-design/blocks/SortCardList/src/SortCardList.jsx rename to blocks/SortCardList/src/SortCardList.jsx diff --git a/templates/ice-design/blocks/SortCardList/src/SortCardList.scss b/blocks/SortCardList/src/SortCardList.scss similarity index 100% rename from templates/ice-design/blocks/SortCardList/src/SortCardList.scss rename to blocks/SortCardList/src/SortCardList.scss diff --git a/templates/ice-design/blocks/SortCardList/src/index.js b/blocks/SortCardList/src/index.js similarity index 100% rename from templates/ice-design/blocks/SortCardList/src/index.js rename to blocks/SortCardList/src/index.js diff --git a/templates/ice-design/blocks/SortableTable/.editorconfig b/blocks/StatisticalCard/.editorconfig similarity index 100% rename from templates/ice-design/blocks/SortableTable/.editorconfig rename to blocks/StatisticalCard/.editorconfig diff --git a/templates/ice-design/blocks/SortableTable/.eslintignore b/blocks/StatisticalCard/.eslintignore similarity index 100% rename from templates/ice-design/blocks/SortableTable/.eslintignore rename to blocks/StatisticalCard/.eslintignore diff --git a/templates/ice-design/blocks/SortableTable/.eslintrc b/blocks/StatisticalCard/.eslintrc similarity index 100% rename from templates/ice-design/blocks/SortableTable/.eslintrc rename to blocks/StatisticalCard/.eslintrc diff --git a/templates/ice-design/blocks/SortableTable/.gitignore b/blocks/StatisticalCard/.gitignore similarity index 100% rename from templates/ice-design/blocks/SortableTable/.gitignore rename to blocks/StatisticalCard/.gitignore diff --git a/templates/ice-design/blocks/StatisticalCard/README.md b/blocks/StatisticalCard/README.md similarity index 100% rename from templates/ice-design/blocks/StatisticalCard/README.md rename to blocks/StatisticalCard/README.md diff --git a/templates/ice-design/blocks/SortableTable/demo/index.html b/blocks/StatisticalCard/demo/index.html similarity index 100% rename from templates/ice-design/blocks/SortableTable/demo/index.html rename to blocks/StatisticalCard/demo/index.html diff --git a/templates/ice-design/blocks/StatisticalCard/demo/index.js b/blocks/StatisticalCard/demo/index.js similarity index 100% rename from templates/ice-design/blocks/StatisticalCard/demo/index.js rename to blocks/StatisticalCard/demo/index.js diff --git a/templates/ice-design/blocks/SortableTable/mock/api.json b/blocks/StatisticalCard/mock/api.json similarity index 100% rename from templates/ice-design/blocks/SortableTable/mock/api.json rename to blocks/StatisticalCard/mock/api.json diff --git a/templates/ice-design/blocks/StatisticalCard/package.json b/blocks/StatisticalCard/package.json similarity index 100% rename from templates/ice-design/blocks/StatisticalCard/package.json rename to blocks/StatisticalCard/package.json diff --git a/templates/ice-design/blocks/StatisticalCard/src/StatisticalCard.jsx b/blocks/StatisticalCard/src/StatisticalCard.jsx similarity index 100% rename from templates/ice-design/blocks/StatisticalCard/src/StatisticalCard.jsx rename to blocks/StatisticalCard/src/StatisticalCard.jsx diff --git a/templates/ice-design/blocks/StatisticalCard/src/StatisticalCard.scss b/blocks/StatisticalCard/src/StatisticalCard.scss similarity index 100% rename from templates/ice-design/blocks/StatisticalCard/src/StatisticalCard.scss rename to blocks/StatisticalCard/src/StatisticalCard.scss diff --git a/templates/ice-design/blocks/StatisticalCard/src/index.js b/blocks/StatisticalCard/src/index.js similarity index 100% rename from templates/ice-design/blocks/StatisticalCard/src/index.js rename to blocks/StatisticalCard/src/index.js diff --git a/templates/ice-design/blocks/StatisticalCard/.editorconfig b/blocks/Subscribe/.editorconfig similarity index 100% rename from templates/ice-design/blocks/StatisticalCard/.editorconfig rename to blocks/Subscribe/.editorconfig diff --git a/templates/ice-design/blocks/StatisticalCard/.eslintignore b/blocks/Subscribe/.eslintignore similarity index 100% rename from templates/ice-design/blocks/StatisticalCard/.eslintignore rename to blocks/Subscribe/.eslintignore diff --git a/templates/ice-design/blocks/StatisticalCard/.eslintrc b/blocks/Subscribe/.eslintrc similarity index 100% rename from templates/ice-design/blocks/StatisticalCard/.eslintrc rename to blocks/Subscribe/.eslintrc diff --git a/templates/ice-design/blocks/StatisticalCard/.gitignore b/blocks/Subscribe/.gitignore similarity index 100% rename from templates/ice-design/blocks/StatisticalCard/.gitignore rename to blocks/Subscribe/.gitignore diff --git a/templates/ice-design/blocks/Subscribe/README.md b/blocks/Subscribe/README.md similarity index 100% rename from templates/ice-design/blocks/Subscribe/README.md rename to blocks/Subscribe/README.md diff --git a/templates/ice-design/blocks/StatisticalCard/demo/index.html b/blocks/Subscribe/demo/index.html similarity index 100% rename from templates/ice-design/blocks/StatisticalCard/demo/index.html rename to blocks/Subscribe/demo/index.html diff --git a/templates/ice-design/blocks/SortableTable/demo/index.js b/blocks/Subscribe/demo/index.js similarity index 100% rename from templates/ice-design/blocks/SortableTable/demo/index.js rename to blocks/Subscribe/demo/index.js diff --git a/templates/ice-design/blocks/StatisticalCard/mock/api.json b/blocks/Subscribe/mock/api.json similarity index 100% rename from templates/ice-design/blocks/StatisticalCard/mock/api.json rename to blocks/Subscribe/mock/api.json diff --git a/templates/ice-design/blocks/Subscribe/package.json b/blocks/Subscribe/package.json similarity index 100% rename from templates/ice-design/blocks/Subscribe/package.json rename to blocks/Subscribe/package.json diff --git a/templates/ice-design/blocks/Subscribe/src/Subscribe.jsx b/blocks/Subscribe/src/Subscribe.jsx similarity index 100% rename from templates/ice-design/blocks/Subscribe/src/Subscribe.jsx rename to blocks/Subscribe/src/Subscribe.jsx diff --git a/templates/ice-design/blocks/Subscribe/src/Subscribe.scss b/blocks/Subscribe/src/Subscribe.scss similarity index 100% rename from templates/ice-design/blocks/Subscribe/src/Subscribe.scss rename to blocks/Subscribe/src/Subscribe.scss diff --git a/templates/ice-design/blocks/Subscribe/src/index.js b/blocks/Subscribe/src/index.js similarity index 100% rename from templates/ice-design/blocks/Subscribe/src/index.js rename to blocks/Subscribe/src/index.js diff --git a/templates/ice-design/blocks/Subscribe/.editorconfig b/blocks/SuccessDetail/.editorconfig similarity index 100% rename from templates/ice-design/blocks/Subscribe/.editorconfig rename to blocks/SuccessDetail/.editorconfig diff --git a/templates/ice-design/blocks/Subscribe/.eslintignore b/blocks/SuccessDetail/.eslintignore similarity index 100% rename from templates/ice-design/blocks/Subscribe/.eslintignore rename to blocks/SuccessDetail/.eslintignore diff --git a/templates/ice-design/blocks/Subscribe/.eslintrc b/blocks/SuccessDetail/.eslintrc similarity index 100% rename from templates/ice-design/blocks/Subscribe/.eslintrc rename to blocks/SuccessDetail/.eslintrc diff --git a/templates/ice-design/blocks/Subscribe/.gitignore b/blocks/SuccessDetail/.gitignore similarity index 100% rename from templates/ice-design/blocks/Subscribe/.gitignore rename to blocks/SuccessDetail/.gitignore diff --git a/templates/ice-design/blocks/SuccessDetail/README.md b/blocks/SuccessDetail/README.md similarity index 100% rename from templates/ice-design/blocks/SuccessDetail/README.md rename to blocks/SuccessDetail/README.md diff --git a/templates/ice-design/blocks/Subscribe/demo/index.html b/blocks/SuccessDetail/demo/index.html similarity index 100% rename from templates/ice-design/blocks/Subscribe/demo/index.html rename to blocks/SuccessDetail/demo/index.html diff --git a/templates/ice-design/blocks/SuccessDetail/demo/index.js b/blocks/SuccessDetail/demo/index.js similarity index 100% rename from templates/ice-design/blocks/SuccessDetail/demo/index.js rename to blocks/SuccessDetail/demo/index.js diff --git a/templates/ice-design/blocks/Subscribe/mock/api.json b/blocks/SuccessDetail/mock/api.json similarity index 100% rename from templates/ice-design/blocks/Subscribe/mock/api.json rename to blocks/SuccessDetail/mock/api.json diff --git a/templates/ice-design/blocks/SuccessDetail/package.json b/blocks/SuccessDetail/package.json similarity index 100% rename from templates/ice-design/blocks/SuccessDetail/package.json rename to blocks/SuccessDetail/package.json diff --git a/templates/ice-design/blocks/SuccessDetail/src/SuccessDetail.jsx b/blocks/SuccessDetail/src/SuccessDetail.jsx similarity index 100% rename from templates/ice-design/blocks/SuccessDetail/src/SuccessDetail.jsx rename to blocks/SuccessDetail/src/SuccessDetail.jsx diff --git a/templates/ice-design/blocks/SuccessDetail/src/SuccessDetail.scss b/blocks/SuccessDetail/src/SuccessDetail.scss similarity index 100% rename from templates/ice-design/blocks/SuccessDetail/src/SuccessDetail.scss rename to blocks/SuccessDetail/src/SuccessDetail.scss diff --git a/templates/ice-design/blocks/SuccessDetail/src/index.js b/blocks/SuccessDetail/src/index.js similarity index 100% rename from templates/ice-design/blocks/SuccessDetail/src/index.js rename to blocks/SuccessDetail/src/index.js diff --git a/templates/ice-design/blocks/SuccessDetail/.editorconfig b/blocks/SuccessDialog/.editorconfig similarity index 100% rename from templates/ice-design/blocks/SuccessDetail/.editorconfig rename to blocks/SuccessDialog/.editorconfig diff --git a/templates/ice-design/blocks/SuccessDetail/.eslintignore b/blocks/SuccessDialog/.eslintignore similarity index 100% rename from templates/ice-design/blocks/SuccessDetail/.eslintignore rename to blocks/SuccessDialog/.eslintignore diff --git a/templates/ice-design/blocks/SuccessDetail/.eslintrc b/blocks/SuccessDialog/.eslintrc similarity index 100% rename from templates/ice-design/blocks/SuccessDetail/.eslintrc rename to blocks/SuccessDialog/.eslintrc diff --git a/templates/ice-design/blocks/SuccessDetail/.gitignore b/blocks/SuccessDialog/.gitignore similarity index 100% rename from templates/ice-design/blocks/SuccessDetail/.gitignore rename to blocks/SuccessDialog/.gitignore diff --git a/templates/ice-design/blocks/SuccessDialog/README.md b/blocks/SuccessDialog/README.md similarity index 100% rename from templates/ice-design/blocks/SuccessDialog/README.md rename to blocks/SuccessDialog/README.md diff --git a/templates/ice-design/blocks/SuccessDetail/demo/index.html b/blocks/SuccessDialog/demo/index.html similarity index 100% rename from templates/ice-design/blocks/SuccessDetail/demo/index.html rename to blocks/SuccessDialog/demo/index.html diff --git a/templates/ice-design/blocks/SuccessDialog/demo/index.js b/blocks/SuccessDialog/demo/index.js similarity index 100% rename from templates/ice-design/blocks/SuccessDialog/demo/index.js rename to blocks/SuccessDialog/demo/index.js diff --git a/templates/ice-design/blocks/SuccessDetail/mock/api.json b/blocks/SuccessDialog/mock/api.json similarity index 100% rename from templates/ice-design/blocks/SuccessDetail/mock/api.json rename to blocks/SuccessDialog/mock/api.json diff --git a/templates/ice-design/blocks/SuccessDialog/package.json b/blocks/SuccessDialog/package.json similarity index 100% rename from templates/ice-design/blocks/SuccessDialog/package.json rename to blocks/SuccessDialog/package.json diff --git a/templates/ice-design/blocks/SuccessDialog/src/CreateFuncDialog.js b/blocks/SuccessDialog/src/CreateFuncDialog.js similarity index 100% rename from templates/ice-design/blocks/SuccessDialog/src/CreateFuncDialog.js rename to blocks/SuccessDialog/src/CreateFuncDialog.js diff --git a/templates/ice-design/blocks/SuccessDialog/src/SuccessDialog.jsx b/blocks/SuccessDialog/src/SuccessDialog.jsx similarity index 100% rename from templates/ice-design/blocks/SuccessDialog/src/SuccessDialog.jsx rename to blocks/SuccessDialog/src/SuccessDialog.jsx diff --git a/templates/ice-design/blocks/SuccessDialog/src/SuccessDialog.scss b/blocks/SuccessDialog/src/SuccessDialog.scss similarity index 100% rename from templates/ice-design/blocks/SuccessDialog/src/SuccessDialog.scss rename to blocks/SuccessDialog/src/SuccessDialog.scss diff --git a/templates/ice-design/blocks/SuccessDialog/src/index.js b/blocks/SuccessDialog/src/index.js similarity index 100% rename from templates/ice-design/blocks/SuccessDialog/src/index.js rename to blocks/SuccessDialog/src/index.js diff --git a/templates/ice-design/blocks/SuccessDialog/.editorconfig b/blocks/SystemNoticeList/.editorconfig similarity index 100% rename from templates/ice-design/blocks/SuccessDialog/.editorconfig rename to blocks/SystemNoticeList/.editorconfig diff --git a/templates/ice-design/blocks/SuccessDialog/.eslintignore b/blocks/SystemNoticeList/.eslintignore similarity index 100% rename from templates/ice-design/blocks/SuccessDialog/.eslintignore rename to blocks/SystemNoticeList/.eslintignore diff --git a/templates/ice-design/blocks/SuccessDialog/.eslintrc b/blocks/SystemNoticeList/.eslintrc similarity index 100% rename from templates/ice-design/blocks/SuccessDialog/.eslintrc rename to blocks/SystemNoticeList/.eslintrc diff --git a/templates/ice-design/blocks/SuccessDialog/.gitignore b/blocks/SystemNoticeList/.gitignore similarity index 100% rename from templates/ice-design/blocks/SuccessDialog/.gitignore rename to blocks/SystemNoticeList/.gitignore diff --git a/templates/ice-design/blocks/SystemNoticeList/README.md b/blocks/SystemNoticeList/README.md similarity index 100% rename from templates/ice-design/blocks/SystemNoticeList/README.md rename to blocks/SystemNoticeList/README.md diff --git a/templates/ice-design/blocks/SuccessDialog/demo/index.html b/blocks/SystemNoticeList/demo/index.html similarity index 100% rename from templates/ice-design/blocks/SuccessDialog/demo/index.html rename to blocks/SystemNoticeList/demo/index.html diff --git a/templates/ice-design/blocks/SystemNoticeList/demo/index.js b/blocks/SystemNoticeList/demo/index.js similarity index 100% rename from templates/ice-design/blocks/SystemNoticeList/demo/index.js rename to blocks/SystemNoticeList/demo/index.js diff --git a/templates/ice-design/blocks/SuccessDialog/mock/api.json b/blocks/SystemNoticeList/mock/api.json similarity index 100% rename from templates/ice-design/blocks/SuccessDialog/mock/api.json rename to blocks/SystemNoticeList/mock/api.json diff --git a/templates/ice-design/blocks/SystemNoticeList/package.json b/blocks/SystemNoticeList/package.json similarity index 100% rename from templates/ice-design/blocks/SystemNoticeList/package.json rename to blocks/SystemNoticeList/package.json diff --git a/templates/ice-design/blocks/SystemNoticeList/src/SystemNoticeList.jsx b/blocks/SystemNoticeList/src/SystemNoticeList.jsx similarity index 100% rename from templates/ice-design/blocks/SystemNoticeList/src/SystemNoticeList.jsx rename to blocks/SystemNoticeList/src/SystemNoticeList.jsx diff --git a/templates/ice-design/blocks/SystemNoticeList/src/SystemNoticeList.scss b/blocks/SystemNoticeList/src/SystemNoticeList.scss similarity index 100% rename from templates/ice-design/blocks/SystemNoticeList/src/SystemNoticeList.scss rename to blocks/SystemNoticeList/src/SystemNoticeList.scss diff --git a/templates/ice-design/blocks/SystemNoticeList/src/index.js b/blocks/SystemNoticeList/src/index.js similarity index 100% rename from templates/ice-design/blocks/SystemNoticeList/src/index.js rename to blocks/SystemNoticeList/src/index.js diff --git a/templates/ice-design/blocks/SystemNoticeList/.editorconfig b/blocks/TabArticle/.editorconfig similarity index 100% rename from templates/ice-design/blocks/SystemNoticeList/.editorconfig rename to blocks/TabArticle/.editorconfig diff --git a/templates/ice-design/blocks/SystemNoticeList/.eslintignore b/blocks/TabArticle/.eslintignore similarity index 100% rename from templates/ice-design/blocks/SystemNoticeList/.eslintignore rename to blocks/TabArticle/.eslintignore diff --git a/templates/ice-design/blocks/SystemNoticeList/.eslintrc b/blocks/TabArticle/.eslintrc similarity index 100% rename from templates/ice-design/blocks/SystemNoticeList/.eslintrc rename to blocks/TabArticle/.eslintrc diff --git a/templates/ice-design/blocks/TabArticle/.gitignore b/blocks/TabArticle/.gitignore similarity index 100% rename from templates/ice-design/blocks/TabArticle/.gitignore rename to blocks/TabArticle/.gitignore diff --git a/templates/ice-design/blocks/TabArticle/README.md b/blocks/TabArticle/README.md similarity index 100% rename from templates/ice-design/blocks/TabArticle/README.md rename to blocks/TabArticle/README.md diff --git a/templates/ice-design/blocks/SystemNoticeList/demo/index.html b/blocks/TabArticle/demo/index.html similarity index 100% rename from templates/ice-design/blocks/SystemNoticeList/demo/index.html rename to blocks/TabArticle/demo/index.html diff --git a/templates/ice-design/blocks/Subscribe/demo/index.js b/blocks/TabArticle/demo/index.js similarity index 100% rename from templates/ice-design/blocks/Subscribe/demo/index.js rename to blocks/TabArticle/demo/index.js diff --git a/templates/ice-design/blocks/SystemNoticeList/mock/api.json b/blocks/TabArticle/mock/api.json similarity index 100% rename from templates/ice-design/blocks/SystemNoticeList/mock/api.json rename to blocks/TabArticle/mock/api.json diff --git a/templates/ice-design/blocks/TabArticle/package.json b/blocks/TabArticle/package.json similarity index 100% rename from templates/ice-design/blocks/TabArticle/package.json rename to blocks/TabArticle/package.json diff --git a/templates/ice-design/blocks/TabArticle/src/ArticleList/ArticleList.jsx b/blocks/TabArticle/src/ArticleList/ArticleList.jsx similarity index 100% rename from templates/ice-design/blocks/TabArticle/src/ArticleList/ArticleList.jsx rename to blocks/TabArticle/src/ArticleList/ArticleList.jsx diff --git a/templates/ice-design/blocks/TabArticle/src/ArticleList/ArticleList.scss b/blocks/TabArticle/src/ArticleList/ArticleList.scss similarity index 100% rename from templates/ice-design/blocks/TabArticle/src/ArticleList/ArticleList.scss rename to blocks/TabArticle/src/ArticleList/ArticleList.scss diff --git a/templates/ice-design/blocks/TabArticle/src/ArticleList/index.js b/blocks/TabArticle/src/ArticleList/index.js similarity index 100% rename from templates/ice-design/blocks/TabArticle/src/ArticleList/index.js rename to blocks/TabArticle/src/ArticleList/index.js diff --git a/templates/ice-design/blocks/TabArticle/src/TabArticle.jsx b/blocks/TabArticle/src/TabArticle.jsx similarity index 100% rename from templates/ice-design/blocks/TabArticle/src/TabArticle.jsx rename to blocks/TabArticle/src/TabArticle.jsx diff --git a/templates/ice-design/blocks/TabArticle/src/TabArticle.scss b/blocks/TabArticle/src/TabArticle.scss similarity index 100% rename from templates/ice-design/blocks/TabArticle/src/TabArticle.scss rename to blocks/TabArticle/src/TabArticle.scss diff --git a/templates/ice-design/blocks/TabArticle/src/index.js b/blocks/TabArticle/src/index.js similarity index 100% rename from templates/ice-design/blocks/TabArticle/src/index.js rename to blocks/TabArticle/src/index.js diff --git a/templates/ice-design/blocks/TabArticle/.editorconfig b/blocks/TabDialog/.editorconfig similarity index 100% rename from templates/ice-design/blocks/TabArticle/.editorconfig rename to blocks/TabDialog/.editorconfig diff --git a/templates/ice-design/blocks/TabArticle/.eslintignore b/blocks/TabDialog/.eslintignore similarity index 100% rename from templates/ice-design/blocks/TabArticle/.eslintignore rename to blocks/TabDialog/.eslintignore diff --git a/templates/ice-design/blocks/TabArticle/.eslintrc b/blocks/TabDialog/.eslintrc similarity index 100% rename from templates/ice-design/blocks/TabArticle/.eslintrc rename to blocks/TabDialog/.eslintrc diff --git a/templates/ice-design/blocks/TabDialog/.gitignore b/blocks/TabDialog/.gitignore similarity index 100% rename from templates/ice-design/blocks/TabDialog/.gitignore rename to blocks/TabDialog/.gitignore diff --git a/templates/ice-design/blocks/TabDialog/README.md b/blocks/TabDialog/README.md similarity index 100% rename from templates/ice-design/blocks/TabDialog/README.md rename to blocks/TabDialog/README.md diff --git a/templates/ice-design/blocks/TabArticle/demo/index.html b/blocks/TabDialog/demo/index.html similarity index 100% rename from templates/ice-design/blocks/TabArticle/demo/index.html rename to blocks/TabDialog/demo/index.html diff --git a/templates/ice-design/blocks/TabDialog/demo/index.js b/blocks/TabDialog/demo/index.js similarity index 100% rename from templates/ice-design/blocks/TabDialog/demo/index.js rename to blocks/TabDialog/demo/index.js diff --git a/templates/ice-design/blocks/TabArticle/mock/api.json b/blocks/TabDialog/mock/api.json similarity index 100% rename from templates/ice-design/blocks/TabArticle/mock/api.json rename to blocks/TabDialog/mock/api.json diff --git a/templates/ice-design/blocks/TabDialog/package.json b/blocks/TabDialog/package.json similarity index 100% rename from templates/ice-design/blocks/TabDialog/package.json rename to blocks/TabDialog/package.json diff --git a/templates/ice-design/blocks/TabDialog/src/CreateFuncDialog.js b/blocks/TabDialog/src/CreateFuncDialog.js similarity index 100% rename from templates/ice-design/blocks/TabDialog/src/CreateFuncDialog.js rename to blocks/TabDialog/src/CreateFuncDialog.js diff --git a/templates/ice-design/blocks/TabDialog/src/TabDialog.jsx b/blocks/TabDialog/src/TabDialog.jsx similarity index 100% rename from templates/ice-design/blocks/TabDialog/src/TabDialog.jsx rename to blocks/TabDialog/src/TabDialog.jsx diff --git a/templates/ice-design/blocks/TabDialog/src/TabDialog.scss b/blocks/TabDialog/src/TabDialog.scss similarity index 100% rename from templates/ice-design/blocks/TabDialog/src/TabDialog.scss rename to blocks/TabDialog/src/TabDialog.scss diff --git a/templates/ice-design/blocks/TabDialog/src/index.js b/blocks/TabDialog/src/index.js similarity index 100% rename from templates/ice-design/blocks/TabDialog/src/index.js rename to blocks/TabDialog/src/index.js diff --git a/templates/ice-design/blocks/TabDialog/.editorconfig b/blocks/TagMessageList/.editorconfig similarity index 100% rename from templates/ice-design/blocks/TabDialog/.editorconfig rename to blocks/TagMessageList/.editorconfig diff --git a/templates/ice-design/blocks/TabDialog/.eslintignore b/blocks/TagMessageList/.eslintignore similarity index 100% rename from templates/ice-design/blocks/TabDialog/.eslintignore rename to blocks/TagMessageList/.eslintignore diff --git a/templates/ice-design/blocks/TabDialog/.eslintrc b/blocks/TagMessageList/.eslintrc similarity index 100% rename from templates/ice-design/blocks/TabDialog/.eslintrc rename to blocks/TagMessageList/.eslintrc diff --git a/templates/ice-design/blocks/TagMessageList/.gitignore b/blocks/TagMessageList/.gitignore similarity index 100% rename from templates/ice-design/blocks/TagMessageList/.gitignore rename to blocks/TagMessageList/.gitignore diff --git a/templates/ice-design/blocks/TagMessageList/README.md b/blocks/TagMessageList/README.md similarity index 100% rename from templates/ice-design/blocks/TagMessageList/README.md rename to blocks/TagMessageList/README.md diff --git a/templates/ice-design/blocks/TabDialog/demo/index.html b/blocks/TagMessageList/demo/index.html similarity index 100% rename from templates/ice-design/blocks/TabDialog/demo/index.html rename to blocks/TagMessageList/demo/index.html diff --git a/templates/ice-design/blocks/TabArticle/demo/index.js b/blocks/TagMessageList/demo/index.js similarity index 100% rename from templates/ice-design/blocks/TabArticle/demo/index.js rename to blocks/TagMessageList/demo/index.js diff --git a/templates/ice-design/blocks/TabDialog/mock/api.json b/blocks/TagMessageList/mock/api.json similarity index 100% rename from templates/ice-design/blocks/TabDialog/mock/api.json rename to blocks/TagMessageList/mock/api.json diff --git a/templates/ice-design/blocks/TagMessageList/package.json b/blocks/TagMessageList/package.json similarity index 100% rename from templates/ice-design/blocks/TagMessageList/package.json rename to blocks/TagMessageList/package.json diff --git a/templates/ice-design/blocks/TagMessageList/src/TagMessageList.jsx b/blocks/TagMessageList/src/TagMessageList.jsx similarity index 100% rename from templates/ice-design/blocks/TagMessageList/src/TagMessageList.jsx rename to blocks/TagMessageList/src/TagMessageList.jsx diff --git a/templates/ice-design/blocks/TagMessageList/src/TagMessageList.scss b/blocks/TagMessageList/src/TagMessageList.scss similarity index 100% rename from templates/ice-design/blocks/TagMessageList/src/TagMessageList.scss rename to blocks/TagMessageList/src/TagMessageList.scss diff --git a/templates/ice-design/blocks/TagMessageList/src/index.js b/blocks/TagMessageList/src/index.js similarity index 100% rename from templates/ice-design/blocks/TagMessageList/src/index.js rename to blocks/TagMessageList/src/index.js diff --git a/templates/ice-design/blocks/TagMessageList/.editorconfig b/blocks/TeamDisplay/.editorconfig similarity index 100% rename from templates/ice-design/blocks/TagMessageList/.editorconfig rename to blocks/TeamDisplay/.editorconfig diff --git a/templates/ice-design/blocks/TagMessageList/.eslintignore b/blocks/TeamDisplay/.eslintignore similarity index 100% rename from templates/ice-design/blocks/TagMessageList/.eslintignore rename to blocks/TeamDisplay/.eslintignore diff --git a/templates/ice-design/blocks/TagMessageList/.eslintrc b/blocks/TeamDisplay/.eslintrc similarity index 100% rename from templates/ice-design/blocks/TagMessageList/.eslintrc rename to blocks/TeamDisplay/.eslintrc diff --git a/templates/ice-design/blocks/TeamDisplay/.gitignore b/blocks/TeamDisplay/.gitignore similarity index 100% rename from templates/ice-design/blocks/TeamDisplay/.gitignore rename to blocks/TeamDisplay/.gitignore diff --git a/templates/ice-design/blocks/TeamDisplay/README.md b/blocks/TeamDisplay/README.md similarity index 100% rename from templates/ice-design/blocks/TeamDisplay/README.md rename to blocks/TeamDisplay/README.md diff --git a/templates/ice-design/blocks/TagMessageList/demo/index.html b/blocks/TeamDisplay/demo/index.html similarity index 100% rename from templates/ice-design/blocks/TagMessageList/demo/index.html rename to blocks/TeamDisplay/demo/index.html diff --git a/templates/ice-design/blocks/TagMessageList/demo/index.js b/blocks/TeamDisplay/demo/index.js similarity index 100% rename from templates/ice-design/blocks/TagMessageList/demo/index.js rename to blocks/TeamDisplay/demo/index.js diff --git a/templates/ice-design/blocks/TagMessageList/mock/api.json b/blocks/TeamDisplay/mock/api.json similarity index 100% rename from templates/ice-design/blocks/TagMessageList/mock/api.json rename to blocks/TeamDisplay/mock/api.json diff --git a/templates/ice-design/blocks/TeamDisplay/package.json b/blocks/TeamDisplay/package.json similarity index 100% rename from templates/ice-design/blocks/TeamDisplay/package.json rename to blocks/TeamDisplay/package.json diff --git a/templates/ice-design/blocks/TeamDisplay/src/TeamDisplay.jsx b/blocks/TeamDisplay/src/TeamDisplay.jsx similarity index 100% rename from templates/ice-design/blocks/TeamDisplay/src/TeamDisplay.jsx rename to blocks/TeamDisplay/src/TeamDisplay.jsx diff --git a/templates/ice-design/blocks/TeamDisplay/src/TeamDisplay.scss b/blocks/TeamDisplay/src/TeamDisplay.scss similarity index 100% rename from templates/ice-design/blocks/TeamDisplay/src/TeamDisplay.scss rename to blocks/TeamDisplay/src/TeamDisplay.scss diff --git a/templates/ice-design/blocks/TeamDisplay/src/index.js b/blocks/TeamDisplay/src/index.js similarity index 100% rename from templates/ice-design/blocks/TeamDisplay/src/index.js rename to blocks/TeamDisplay/src/index.js diff --git a/templates/ice-design/blocks/TeamDisplay/.editorconfig b/blocks/TermsInfo/.editorconfig similarity index 100% rename from templates/ice-design/blocks/TeamDisplay/.editorconfig rename to blocks/TermsInfo/.editorconfig diff --git a/templates/ice-design/blocks/TeamDisplay/.eslintignore b/blocks/TermsInfo/.eslintignore similarity index 100% rename from templates/ice-design/blocks/TeamDisplay/.eslintignore rename to blocks/TermsInfo/.eslintignore diff --git a/templates/ice-design/blocks/TeamDisplay/.eslintrc b/blocks/TermsInfo/.eslintrc similarity index 100% rename from templates/ice-design/blocks/TeamDisplay/.eslintrc rename to blocks/TermsInfo/.eslintrc diff --git a/templates/ice-design/blocks/SystemNoticeList/.gitignore b/blocks/TermsInfo/.gitignore similarity index 100% rename from templates/ice-design/blocks/SystemNoticeList/.gitignore rename to blocks/TermsInfo/.gitignore diff --git a/templates/ice-design/blocks/TermsInfo/README.md b/blocks/TermsInfo/README.md similarity index 100% rename from templates/ice-design/blocks/TermsInfo/README.md rename to blocks/TermsInfo/README.md diff --git a/templates/ice-design/blocks/TeamDisplay/demo/index.html b/blocks/TermsInfo/demo/index.html similarity index 100% rename from templates/ice-design/blocks/TeamDisplay/demo/index.html rename to blocks/TermsInfo/demo/index.html diff --git a/templates/ice-design/blocks/TermsInfo/demo/index.js b/blocks/TermsInfo/demo/index.js similarity index 100% rename from templates/ice-design/blocks/TermsInfo/demo/index.js rename to blocks/TermsInfo/demo/index.js diff --git a/templates/ice-design/blocks/TeamDisplay/mock/api.json b/blocks/TermsInfo/mock/api.json similarity index 100% rename from templates/ice-design/blocks/TeamDisplay/mock/api.json rename to blocks/TermsInfo/mock/api.json diff --git a/templates/ice-design/blocks/TermsInfo/package.json b/blocks/TermsInfo/package.json similarity index 100% rename from templates/ice-design/blocks/TermsInfo/package.json rename to blocks/TermsInfo/package.json diff --git a/templates/ice-design/blocks/TermsInfo/src/TermsInfo.jsx b/blocks/TermsInfo/src/TermsInfo.jsx similarity index 100% rename from templates/ice-design/blocks/TermsInfo/src/TermsInfo.jsx rename to blocks/TermsInfo/src/TermsInfo.jsx diff --git a/templates/ice-design/blocks/TermsInfo/src/TermsInfo.scss b/blocks/TermsInfo/src/TermsInfo.scss similarity index 100% rename from templates/ice-design/blocks/TermsInfo/src/TermsInfo.scss rename to blocks/TermsInfo/src/TermsInfo.scss diff --git a/templates/ice-design/blocks/TermsInfo/src/index.js b/blocks/TermsInfo/src/index.js similarity index 100% rename from templates/ice-design/blocks/TermsInfo/src/index.js rename to blocks/TermsInfo/src/index.js diff --git a/templates/ice-design/blocks/TermsInfo/.editorconfig b/blocks/Testimonial/.editorconfig similarity index 100% rename from templates/ice-design/blocks/TermsInfo/.editorconfig rename to blocks/Testimonial/.editorconfig diff --git a/templates/ice-design/blocks/TermsInfo/.eslintignore b/blocks/Testimonial/.eslintignore similarity index 100% rename from templates/ice-design/blocks/TermsInfo/.eslintignore rename to blocks/Testimonial/.eslintignore diff --git a/templates/ice-design/blocks/TermsInfo/.eslintrc b/blocks/Testimonial/.eslintrc similarity index 100% rename from templates/ice-design/blocks/TermsInfo/.eslintrc rename to blocks/Testimonial/.eslintrc diff --git a/templates/ice-design/blocks/Testimonial/.gitignore b/blocks/Testimonial/.gitignore similarity index 100% rename from templates/ice-design/blocks/Testimonial/.gitignore rename to blocks/Testimonial/.gitignore diff --git a/templates/ice-design/blocks/Testimonial/README.md b/blocks/Testimonial/README.md similarity index 100% rename from templates/ice-design/blocks/Testimonial/README.md rename to blocks/Testimonial/README.md diff --git a/templates/ice-design/blocks/TermsInfo/demo/index.html b/blocks/Testimonial/demo/index.html similarity index 100% rename from templates/ice-design/blocks/TermsInfo/demo/index.html rename to blocks/Testimonial/demo/index.html diff --git a/templates/ice-design/blocks/Testimonial/demo/index.js b/blocks/Testimonial/demo/index.js similarity index 100% rename from templates/ice-design/blocks/Testimonial/demo/index.js rename to blocks/Testimonial/demo/index.js diff --git a/templates/ice-design/blocks/TermsInfo/mock/api.json b/blocks/Testimonial/mock/api.json similarity index 100% rename from templates/ice-design/blocks/TermsInfo/mock/api.json rename to blocks/Testimonial/mock/api.json diff --git a/templates/ice-design/blocks/Testimonial/package.json b/blocks/Testimonial/package.json similarity index 100% rename from templates/ice-design/blocks/Testimonial/package.json rename to blocks/Testimonial/package.json diff --git a/templates/ice-design/blocks/Testimonial/src/Testimonial.jsx b/blocks/Testimonial/src/Testimonial.jsx similarity index 100% rename from templates/ice-design/blocks/Testimonial/src/Testimonial.jsx rename to blocks/Testimonial/src/Testimonial.jsx diff --git a/templates/ice-design/blocks/Testimonial/lib/Testimonial.scss b/blocks/Testimonial/src/Testimonial.scss similarity index 100% rename from templates/ice-design/blocks/Testimonial/lib/Testimonial.scss rename to blocks/Testimonial/src/Testimonial.scss diff --git a/templates/ice-design/blocks/Testimonial/src/index.js b/blocks/Testimonial/src/index.js similarity index 100% rename from templates/ice-design/blocks/Testimonial/src/index.js rename to blocks/Testimonial/src/index.js diff --git a/templates/ice-design/blocks/Testimonial/.editorconfig b/blocks/TestimonialCard/.editorconfig similarity index 100% rename from templates/ice-design/blocks/Testimonial/.editorconfig rename to blocks/TestimonialCard/.editorconfig diff --git a/templates/ice-design/blocks/Testimonial/.eslintignore b/blocks/TestimonialCard/.eslintignore similarity index 100% rename from templates/ice-design/blocks/Testimonial/.eslintignore rename to blocks/TestimonialCard/.eslintignore diff --git a/templates/ice-design/blocks/Testimonial/.eslintrc b/blocks/TestimonialCard/.eslintrc similarity index 100% rename from templates/ice-design/blocks/Testimonial/.eslintrc rename to blocks/TestimonialCard/.eslintrc diff --git a/templates/ice-design/blocks/TestimonialCard/.gitignore b/blocks/TestimonialCard/.gitignore similarity index 100% rename from templates/ice-design/blocks/TestimonialCard/.gitignore rename to blocks/TestimonialCard/.gitignore diff --git a/templates/ice-design/blocks/TestimonialCard/README.md b/blocks/TestimonialCard/README.md similarity index 100% rename from templates/ice-design/blocks/TestimonialCard/README.md rename to blocks/TestimonialCard/README.md diff --git a/templates/ice-design/blocks/Testimonial/demo/index.html b/blocks/TestimonialCard/demo/index.html similarity index 100% rename from templates/ice-design/blocks/Testimonial/demo/index.html rename to blocks/TestimonialCard/demo/index.html diff --git a/templates/ice-design/blocks/TestimonialCard/demo/index.js b/blocks/TestimonialCard/demo/index.js similarity index 100% rename from templates/ice-design/blocks/TestimonialCard/demo/index.js rename to blocks/TestimonialCard/demo/index.js diff --git a/templates/ice-design/blocks/Testimonial/mock/api.json b/blocks/TestimonialCard/mock/api.json similarity index 100% rename from templates/ice-design/blocks/Testimonial/mock/api.json rename to blocks/TestimonialCard/mock/api.json diff --git a/templates/ice-design/blocks/TestimonialCard/package.json b/blocks/TestimonialCard/package.json similarity index 100% rename from templates/ice-design/blocks/TestimonialCard/package.json rename to blocks/TestimonialCard/package.json diff --git a/templates/ice-design/blocks/TestimonialCard/src/TestimonialCard.jsx b/blocks/TestimonialCard/src/TestimonialCard.jsx similarity index 100% rename from templates/ice-design/blocks/TestimonialCard/src/TestimonialCard.jsx rename to blocks/TestimonialCard/src/TestimonialCard.jsx diff --git a/templates/ice-design/blocks/TestimonialCard/src/TestimonialCard.scss b/blocks/TestimonialCard/src/TestimonialCard.scss similarity index 100% rename from templates/ice-design/blocks/TestimonialCard/src/TestimonialCard.scss rename to blocks/TestimonialCard/src/TestimonialCard.scss diff --git a/templates/ice-design/blocks/TestimonialCard/src/index.js b/blocks/TestimonialCard/src/index.js similarity index 100% rename from templates/ice-design/blocks/TestimonialCard/src/index.js rename to blocks/TestimonialCard/src/index.js diff --git a/templates/ice-design/blocks/TestimonialCard/.editorconfig b/blocks/TextCard/.editorconfig similarity index 100% rename from templates/ice-design/blocks/TestimonialCard/.editorconfig rename to blocks/TextCard/.editorconfig diff --git a/templates/ice-design/blocks/TestimonialCard/.eslintignore b/blocks/TextCard/.eslintignore similarity index 100% rename from templates/ice-design/blocks/TestimonialCard/.eslintignore rename to blocks/TextCard/.eslintignore diff --git a/templates/ice-design/blocks/TestimonialCard/.eslintrc b/blocks/TextCard/.eslintrc similarity index 100% rename from templates/ice-design/blocks/TestimonialCard/.eslintrc rename to blocks/TextCard/.eslintrc diff --git a/templates/ice-design/blocks/TermsInfo/.gitignore b/blocks/TextCard/.gitignore similarity index 100% rename from templates/ice-design/blocks/TermsInfo/.gitignore rename to blocks/TextCard/.gitignore diff --git a/templates/ice-design/blocks/TextCard/README.md b/blocks/TextCard/README.md similarity index 100% rename from templates/ice-design/blocks/TextCard/README.md rename to blocks/TextCard/README.md diff --git a/templates/ice-design/blocks/TestimonialCard/demo/index.html b/blocks/TextCard/demo/index.html similarity index 100% rename from templates/ice-design/blocks/TestimonialCard/demo/index.html rename to blocks/TextCard/demo/index.html diff --git a/templates/ice-design/blocks/TeamDisplay/demo/index.js b/blocks/TextCard/demo/index.js similarity index 100% rename from templates/ice-design/blocks/TeamDisplay/demo/index.js rename to blocks/TextCard/demo/index.js diff --git a/templates/ice-design/blocks/TestimonialCard/mock/api.json b/blocks/TextCard/mock/api.json similarity index 100% rename from templates/ice-design/blocks/TestimonialCard/mock/api.json rename to blocks/TextCard/mock/api.json diff --git a/templates/ice-design/blocks/TextCard/package.json b/blocks/TextCard/package.json similarity index 100% rename from templates/ice-design/blocks/TextCard/package.json rename to blocks/TextCard/package.json diff --git a/templates/ice-design/blocks/TextCard/src/TextCard.jsx b/blocks/TextCard/src/TextCard.jsx similarity index 100% rename from templates/ice-design/blocks/TextCard/src/TextCard.jsx rename to blocks/TextCard/src/TextCard.jsx diff --git a/templates/ice-design/blocks/TextCard/src/TextCard.scss b/blocks/TextCard/src/TextCard.scss similarity index 100% rename from templates/ice-design/blocks/TextCard/src/TextCard.scss rename to blocks/TextCard/src/TextCard.scss diff --git a/templates/ice-design/blocks/TextCard/src/index.js b/blocks/TextCard/src/index.js similarity index 100% rename from templates/ice-design/blocks/TextCard/src/index.js rename to blocks/TextCard/src/index.js diff --git a/templates/ice-design/blocks/TextCard/.editorconfig b/blocks/TextSearchList/.editorconfig similarity index 100% rename from templates/ice-design/blocks/TextCard/.editorconfig rename to blocks/TextSearchList/.editorconfig diff --git a/templates/ice-design/blocks/TextSearchList/.eslintignore b/blocks/TextSearchList/.eslintignore similarity index 100% rename from templates/ice-design/blocks/TextSearchList/.eslintignore rename to blocks/TextSearchList/.eslintignore diff --git a/templates/ice-design/blocks/TextSearchList/.eslintrc b/blocks/TextSearchList/.eslintrc similarity index 100% rename from templates/ice-design/blocks/TextSearchList/.eslintrc rename to blocks/TextSearchList/.eslintrc diff --git a/templates/ice-design/blocks/TextCard/.gitignore b/blocks/TextSearchList/.gitignore similarity index 100% rename from templates/ice-design/blocks/TextCard/.gitignore rename to blocks/TextSearchList/.gitignore diff --git a/templates/ice-design/blocks/TextSearchList/README.md b/blocks/TextSearchList/README.md similarity index 100% rename from templates/ice-design/blocks/TextSearchList/README.md rename to blocks/TextSearchList/README.md diff --git a/templates/ice-design/blocks/TextCard/demo/index.html b/blocks/TextSearchList/demo/index.html similarity index 100% rename from templates/ice-design/blocks/TextCard/demo/index.html rename to blocks/TextSearchList/demo/index.html diff --git a/templates/ice-design/blocks/TextSearchList/demo/index.js b/blocks/TextSearchList/demo/index.js similarity index 100% rename from templates/ice-design/blocks/TextSearchList/demo/index.js rename to blocks/TextSearchList/demo/index.js diff --git a/templates/ice-design/blocks/TextCard/mock/api.json b/blocks/TextSearchList/mock/api.json similarity index 100% rename from templates/ice-design/blocks/TextCard/mock/api.json rename to blocks/TextSearchList/mock/api.json diff --git a/templates/ice-design/blocks/TextSearchList/package.json b/blocks/TextSearchList/package.json similarity index 100% rename from templates/ice-design/blocks/TextSearchList/package.json rename to blocks/TextSearchList/package.json diff --git a/templates/ice-design/blocks/TextSearchList/src/ArticleList/ArticleList.jsx b/blocks/TextSearchList/src/ArticleList/ArticleList.jsx similarity index 100% rename from templates/ice-design/blocks/TextSearchList/src/ArticleList/ArticleList.jsx rename to blocks/TextSearchList/src/ArticleList/ArticleList.jsx diff --git a/templates/ice-design/blocks/TextSearchList/lib/ArticleList/ArticleList.scss b/blocks/TextSearchList/src/ArticleList/ArticleList.scss similarity index 100% rename from templates/ice-design/blocks/TextSearchList/lib/ArticleList/ArticleList.scss rename to blocks/TextSearchList/src/ArticleList/ArticleList.scss diff --git a/templates/ice-design/blocks/TextSearchList/src/ArticleList/index.js b/blocks/TextSearchList/src/ArticleList/index.js similarity index 100% rename from templates/ice-design/blocks/TextSearchList/src/ArticleList/index.js rename to blocks/TextSearchList/src/ArticleList/index.js diff --git a/templates/ice-design/blocks/TextSearchList/src/Filter/Filter.jsx b/blocks/TextSearchList/src/Filter/Filter.jsx similarity index 100% rename from templates/ice-design/blocks/TextSearchList/src/Filter/Filter.jsx rename to blocks/TextSearchList/src/Filter/Filter.jsx diff --git a/templates/ice-design/blocks/TextSearchList/src/Filter/index.js b/blocks/TextSearchList/src/Filter/index.js similarity index 100% rename from templates/ice-design/blocks/TextSearchList/src/Filter/index.js rename to blocks/TextSearchList/src/Filter/index.js diff --git a/templates/ice-design/blocks/TextSearchList/src/TextSearchList.jsx b/blocks/TextSearchList/src/TextSearchList.jsx similarity index 100% rename from templates/ice-design/blocks/TextSearchList/src/TextSearchList.jsx rename to blocks/TextSearchList/src/TextSearchList.jsx diff --git a/templates/ice-design/blocks/TextSearchList/lib/TextSearchList.scss b/blocks/TextSearchList/src/TextSearchList.scss similarity index 100% rename from templates/ice-design/blocks/TextSearchList/lib/TextSearchList.scss rename to blocks/TextSearchList/src/TextSearchList.scss diff --git a/templates/ice-design/blocks/TextSearchList/src/index.js b/blocks/TextSearchList/src/index.js similarity index 100% rename from templates/ice-design/blocks/TextSearchList/src/index.js rename to blocks/TextSearchList/src/index.js diff --git a/templates/ice-design/blocks/TextSearchList/.editorconfig b/blocks/TimeFilterTable/.editorconfig similarity index 100% rename from templates/ice-design/blocks/TextSearchList/.editorconfig rename to blocks/TimeFilterTable/.editorconfig diff --git a/templates/ice-design/blocks/TimeFilterTable/.eslintignore b/blocks/TimeFilterTable/.eslintignore similarity index 100% rename from templates/ice-design/blocks/TimeFilterTable/.eslintignore rename to blocks/TimeFilterTable/.eslintignore diff --git a/templates/ice-design/blocks/TimeFilterTable/.eslintrc b/blocks/TimeFilterTable/.eslintrc similarity index 100% rename from templates/ice-design/blocks/TimeFilterTable/.eslintrc rename to blocks/TimeFilterTable/.eslintrc diff --git a/templates/ice-design/blocks/TimeFilterTable/.gitignore b/blocks/TimeFilterTable/.gitignore similarity index 100% rename from templates/ice-design/blocks/TimeFilterTable/.gitignore rename to blocks/TimeFilterTable/.gitignore diff --git a/templates/ice-design/blocks/TimeFilterTable/README.md b/blocks/TimeFilterTable/README.md similarity index 100% rename from templates/ice-design/blocks/TimeFilterTable/README.md rename to blocks/TimeFilterTable/README.md diff --git a/templates/ice-design/blocks/TextSearchList/demo/index.html b/blocks/TimeFilterTable/demo/index.html similarity index 100% rename from templates/ice-design/blocks/TextSearchList/demo/index.html rename to blocks/TimeFilterTable/demo/index.html diff --git a/templates/ice-design/blocks/TimeFilterTable/demo/index.js b/blocks/TimeFilterTable/demo/index.js similarity index 100% rename from templates/ice-design/blocks/TimeFilterTable/demo/index.js rename to blocks/TimeFilterTable/demo/index.js diff --git a/templates/ice-design/blocks/TimeFilterTable/mock/time-filter-table.json b/blocks/TimeFilterTable/mock/time-filter-table.json similarity index 100% rename from templates/ice-design/blocks/TimeFilterTable/mock/time-filter-table.json rename to blocks/TimeFilterTable/mock/time-filter-table.json diff --git a/templates/ice-design/blocks/TimeFilterTable/package.json b/blocks/TimeFilterTable/package.json similarity index 100% rename from templates/ice-design/blocks/TimeFilterTable/package.json rename to blocks/TimeFilterTable/package.json diff --git a/templates/ice-design/blocks/TimeFilterTable/src/TimeFilterTable.jsx b/blocks/TimeFilterTable/src/TimeFilterTable.jsx similarity index 100% rename from templates/ice-design/blocks/TimeFilterTable/src/TimeFilterTable.jsx rename to blocks/TimeFilterTable/src/TimeFilterTable.jsx diff --git a/templates/ice-design/blocks/TimeFilterTable/src/TimeFilterTable.scss b/blocks/TimeFilterTable/src/TimeFilterTable.scss similarity index 100% rename from templates/ice-design/blocks/TimeFilterTable/src/TimeFilterTable.scss rename to blocks/TimeFilterTable/src/TimeFilterTable.scss diff --git a/templates/ice-design/blocks/TimeFilterTable/src/index.js b/blocks/TimeFilterTable/src/index.js similarity index 100% rename from templates/ice-design/blocks/TimeFilterTable/src/index.js rename to blocks/TimeFilterTable/src/index.js diff --git a/templates/ice-design/blocks/TimeFilterTable/.editorconfig b/blocks/TopicCard/.editorconfig similarity index 100% rename from templates/ice-design/blocks/TimeFilterTable/.editorconfig rename to blocks/TopicCard/.editorconfig diff --git a/templates/ice-design/blocks/TopicCard/.eslintignore b/blocks/TopicCard/.eslintignore similarity index 100% rename from templates/ice-design/blocks/TopicCard/.eslintignore rename to blocks/TopicCard/.eslintignore diff --git a/templates/ice-design/blocks/TopicCard/.eslintrc b/blocks/TopicCard/.eslintrc similarity index 100% rename from templates/ice-design/blocks/TopicCard/.eslintrc rename to blocks/TopicCard/.eslintrc diff --git a/templates/ice-design/blocks/TextSearchList/.gitignore b/blocks/TopicCard/.gitignore similarity index 100% rename from templates/ice-design/blocks/TextSearchList/.gitignore rename to blocks/TopicCard/.gitignore diff --git a/templates/ice-design/blocks/TopicCard/README.md b/blocks/TopicCard/README.md similarity index 100% rename from templates/ice-design/blocks/TopicCard/README.md rename to blocks/TopicCard/README.md diff --git a/templates/ice-design/blocks/TopicCard/demo/index.html b/blocks/TopicCard/demo/index.html similarity index 100% rename from templates/ice-design/blocks/TopicCard/demo/index.html rename to blocks/TopicCard/demo/index.html diff --git a/templates/ice-design/blocks/TopicCard/demo/index.js b/blocks/TopicCard/demo/index.js similarity index 100% rename from templates/ice-design/blocks/TopicCard/demo/index.js rename to blocks/TopicCard/demo/index.js diff --git a/templates/ice-design/blocks/TextSearchList/mock/api.json b/blocks/TopicCard/mock/api.json similarity index 100% rename from templates/ice-design/blocks/TextSearchList/mock/api.json rename to blocks/TopicCard/mock/api.json diff --git a/templates/ice-design/blocks/TopicCard/package.json b/blocks/TopicCard/package.json similarity index 100% rename from templates/ice-design/blocks/TopicCard/package.json rename to blocks/TopicCard/package.json diff --git a/templates/ice-design/blocks/TopicCard/src/TopicCard.jsx b/blocks/TopicCard/src/TopicCard.jsx similarity index 100% rename from templates/ice-design/blocks/TopicCard/src/TopicCard.jsx rename to blocks/TopicCard/src/TopicCard.jsx diff --git a/templates/ice-design/blocks/TopicCard/lib/TopicCard.scss b/blocks/TopicCard/src/TopicCard.scss similarity index 100% rename from templates/ice-design/blocks/TopicCard/lib/TopicCard.scss rename to blocks/TopicCard/src/TopicCard.scss diff --git a/templates/ice-design/blocks/TopicCard/src/index.js b/blocks/TopicCard/src/index.js similarity index 100% rename from templates/ice-design/blocks/TopicCard/src/index.js rename to blocks/TopicCard/src/index.js diff --git a/templates/ice-design/blocks/TopicCard/.editorconfig b/blocks/TreeCardList/.editorconfig similarity index 100% rename from templates/ice-design/blocks/TopicCard/.editorconfig rename to blocks/TreeCardList/.editorconfig diff --git a/templates/ice-design/blocks/TextCard/.eslintignore b/blocks/TreeCardList/.eslintignore similarity index 100% rename from templates/ice-design/blocks/TextCard/.eslintignore rename to blocks/TreeCardList/.eslintignore diff --git a/templates/ice-design/blocks/TextCard/.eslintrc b/blocks/TreeCardList/.eslintrc similarity index 100% rename from templates/ice-design/blocks/TextCard/.eslintrc rename to blocks/TreeCardList/.eslintrc diff --git a/templates/ice-design/blocks/TopicCard/.gitignore b/blocks/TreeCardList/.gitignore similarity index 100% rename from templates/ice-design/blocks/TopicCard/.gitignore rename to blocks/TreeCardList/.gitignore diff --git a/templates/ice-design/blocks/TreeCardList/README.md b/blocks/TreeCardList/README.md similarity index 100% rename from templates/ice-design/blocks/TreeCardList/README.md rename to blocks/TreeCardList/README.md diff --git a/templates/ice-design/blocks/TimeFilterTable/demo/index.html b/blocks/TreeCardList/demo/index.html similarity index 100% rename from templates/ice-design/blocks/TimeFilterTable/demo/index.html rename to blocks/TreeCardList/demo/index.html diff --git a/templates/ice-design/blocks/TextCard/demo/index.js b/blocks/TreeCardList/demo/index.js similarity index 100% rename from templates/ice-design/blocks/TextCard/demo/index.js rename to blocks/TreeCardList/demo/index.js diff --git a/templates/ice-design/blocks/TopicCard/mock/api.json b/blocks/TreeCardList/mock/api.json similarity index 100% rename from templates/ice-design/blocks/TopicCard/mock/api.json rename to blocks/TreeCardList/mock/api.json diff --git a/templates/ice-design/blocks/TreeCardList/package.json b/blocks/TreeCardList/package.json similarity index 100% rename from templates/ice-design/blocks/TreeCardList/package.json rename to blocks/TreeCardList/package.json diff --git a/templates/ice-design/blocks/TreeCardList/src/TreeCardList.jsx b/blocks/TreeCardList/src/TreeCardList.jsx similarity index 100% rename from templates/ice-design/blocks/TreeCardList/src/TreeCardList.jsx rename to blocks/TreeCardList/src/TreeCardList.jsx diff --git a/templates/ice-design/blocks/TreeCardList/src/TreeCardList.scss b/blocks/TreeCardList/src/TreeCardList.scss similarity index 100% rename from templates/ice-design/blocks/TreeCardList/src/TreeCardList.scss rename to blocks/TreeCardList/src/TreeCardList.scss diff --git a/templates/ice-design/blocks/TreeCardList/src/index.js b/blocks/TreeCardList/src/index.js similarity index 100% rename from templates/ice-design/blocks/TreeCardList/src/index.js rename to blocks/TreeCardList/src/index.js diff --git a/layouts/.gitignore b/layouts/.gitignore new file mode 100644 index 0000000000..c611a55665 --- /dev/null +++ b/layouts/.gitignore @@ -0,0 +1,2 @@ +# 忽略模板的 lib/ +lib/ diff --git a/templates/ice-design/blocks/TreeCardList/.editorconfig b/layouts/AsideLayout/.editorconfig similarity index 100% rename from templates/ice-design/blocks/TreeCardList/.editorconfig rename to layouts/AsideLayout/.editorconfig diff --git a/templates/ice-design/layouts/AsideLayout/.eslintignore b/layouts/AsideLayout/.eslintignore similarity index 100% rename from templates/ice-design/layouts/AsideLayout/.eslintignore rename to layouts/AsideLayout/.eslintignore diff --git a/templates/ice-design/layouts/AsideLayout/.eslintrc b/layouts/AsideLayout/.eslintrc similarity index 100% rename from templates/ice-design/layouts/AsideLayout/.eslintrc rename to layouts/AsideLayout/.eslintrc diff --git a/templates/ice-design/layouts/AsideLayout/.gitignore b/layouts/AsideLayout/.gitignore similarity index 100% rename from templates/ice-design/layouts/AsideLayout/.gitignore rename to layouts/AsideLayout/.gitignore diff --git a/templates/ice-design/layouts/AsideLayout/README.md b/layouts/AsideLayout/README.md similarity index 100% rename from templates/ice-design/layouts/AsideLayout/README.md rename to layouts/AsideLayout/README.md diff --git a/templates/ice-design/layouts/AsideLayout/demo/index.html b/layouts/AsideLayout/demo/index.html similarity index 100% rename from templates/ice-design/layouts/AsideLayout/demo/index.html rename to layouts/AsideLayout/demo/index.html diff --git a/templates/ice-design/layouts/AsideLayout/demo/index.js b/layouts/AsideLayout/demo/index.js similarity index 100% rename from templates/ice-design/layouts/AsideLayout/demo/index.js rename to layouts/AsideLayout/demo/index.js diff --git a/templates/ice-design/layouts/AsideLayout/mock/api.json b/layouts/AsideLayout/mock/api.json similarity index 100% rename from templates/ice-design/layouts/AsideLayout/mock/api.json rename to layouts/AsideLayout/mock/api.json diff --git a/templates/ice-design/layouts/AsideLayout/package.json b/layouts/AsideLayout/package.json similarity index 100% rename from templates/ice-design/layouts/AsideLayout/package.json rename to layouts/AsideLayout/package.json diff --git a/templates/ice-design/layouts/AsideLayout/src/Layout.jsx b/layouts/AsideLayout/src/Layout.jsx similarity index 100% rename from templates/ice-design/layouts/AsideLayout/src/Layout.jsx rename to layouts/AsideLayout/src/Layout.jsx diff --git a/templates/ice-design/layouts/AsideLayout/src/Layout.scss b/layouts/AsideLayout/src/Layout.scss similarity index 100% rename from templates/ice-design/layouts/AsideLayout/src/Layout.scss rename to layouts/AsideLayout/src/Layout.scss diff --git a/templates/ice-design/layouts/AsideLayout/src/__components_Footer__.jsx b/layouts/AsideLayout/src/__components_Footer__.jsx similarity index 100% rename from templates/ice-design/layouts/AsideLayout/src/__components_Footer__.jsx rename to layouts/AsideLayout/src/__components_Footer__.jsx diff --git a/templates/ice-design/layouts/AsideLayout/src/__components_Header__.jsx b/layouts/AsideLayout/src/__components_Header__.jsx similarity index 100% rename from templates/ice-design/layouts/AsideLayout/src/__components_Header__.jsx rename to layouts/AsideLayout/src/__components_Header__.jsx diff --git a/templates/ice-design/layouts/AsideLayout/src/__components_Logo__.jsx b/layouts/AsideLayout/src/__components_Logo__.jsx similarity index 100% rename from templates/ice-design/layouts/AsideLayout/src/__components_Logo__.jsx rename to layouts/AsideLayout/src/__components_Logo__.jsx diff --git a/templates/ice-design/layouts/AsideLayout/src/__config_navs__.json b/layouts/AsideLayout/src/__config_navs__.json similarity index 100% rename from templates/ice-design/layouts/AsideLayout/src/__config_navs__.json rename to layouts/AsideLayout/src/__config_navs__.json diff --git a/templates/ice-design/layouts/AsideLayout/src/index.js b/layouts/AsideLayout/src/index.js similarity index 100% rename from templates/ice-design/layouts/AsideLayout/src/index.js rename to layouts/AsideLayout/src/index.js diff --git a/templates/ice-design/layouts/AsideLayout/.editorconfig b/layouts/BasicLayout/.editorconfig similarity index 100% rename from templates/ice-design/layouts/AsideLayout/.editorconfig rename to layouts/BasicLayout/.editorconfig diff --git a/templates/ice-design/layouts/BasicLayout/.eslintignore b/layouts/BasicLayout/.eslintignore similarity index 100% rename from templates/ice-design/layouts/BasicLayout/.eslintignore rename to layouts/BasicLayout/.eslintignore diff --git a/templates/ice-design/layouts/BasicLayout/.eslintrc b/layouts/BasicLayout/.eslintrc similarity index 100% rename from templates/ice-design/layouts/BasicLayout/.eslintrc rename to layouts/BasicLayout/.eslintrc diff --git a/templates/ice-design/layouts/BasicLayout/.gitignore b/layouts/BasicLayout/.gitignore similarity index 100% rename from templates/ice-design/layouts/BasicLayout/.gitignore rename to layouts/BasicLayout/.gitignore diff --git a/templates/ice-design/layouts/BasicLayout/README.md b/layouts/BasicLayout/README.md similarity index 100% rename from templates/ice-design/layouts/BasicLayout/README.md rename to layouts/BasicLayout/README.md diff --git a/templates/ice-design/layouts/BasicLayout/demo/index.html b/layouts/BasicLayout/demo/index.html similarity index 100% rename from templates/ice-design/layouts/BasicLayout/demo/index.html rename to layouts/BasicLayout/demo/index.html diff --git a/templates/ice-design/layouts/BasicLayout/demo/index.js b/layouts/BasicLayout/demo/index.js similarity index 100% rename from templates/ice-design/layouts/BasicLayout/demo/index.js rename to layouts/BasicLayout/demo/index.js diff --git a/templates/ice-design/layouts/BasicLayout/mock/api.json b/layouts/BasicLayout/mock/api.json similarity index 100% rename from templates/ice-design/layouts/BasicLayout/mock/api.json rename to layouts/BasicLayout/mock/api.json diff --git a/templates/ice-design/layouts/BasicLayout/package.json b/layouts/BasicLayout/package.json similarity index 100% rename from templates/ice-design/layouts/BasicLayout/package.json rename to layouts/BasicLayout/package.json diff --git a/templates/ice-design/layouts/BasicLayout/src/Layout.jsx b/layouts/BasicLayout/src/Layout.jsx similarity index 100% rename from templates/ice-design/layouts/BasicLayout/src/Layout.jsx rename to layouts/BasicLayout/src/Layout.jsx diff --git a/templates/ice-design/layouts/BasicLayout/src/Layout.scss b/layouts/BasicLayout/src/Layout.scss similarity index 100% rename from templates/ice-design/layouts/BasicLayout/src/Layout.scss rename to layouts/BasicLayout/src/Layout.scss diff --git a/templates/ice-design/layouts/BasicLayout/src/__components_Footer__.jsx b/layouts/BasicLayout/src/__components_Footer__.jsx similarity index 100% rename from templates/ice-design/layouts/BasicLayout/src/__components_Footer__.jsx rename to layouts/BasicLayout/src/__components_Footer__.jsx diff --git a/templates/ice-design/layouts/BasicLayout/src/__components_Header__.jsx b/layouts/BasicLayout/src/__components_Header__.jsx similarity index 100% rename from templates/ice-design/layouts/BasicLayout/src/__components_Header__.jsx rename to layouts/BasicLayout/src/__components_Header__.jsx diff --git a/templates/ice-design/layouts/BasicLayout/src/__components_Logo__.jsx b/layouts/BasicLayout/src/__components_Logo__.jsx similarity index 100% rename from templates/ice-design/layouts/BasicLayout/src/__components_Logo__.jsx rename to layouts/BasicLayout/src/__components_Logo__.jsx diff --git a/templates/ice-design/layouts/BasicLayout/src/__config_navs__.json b/layouts/BasicLayout/src/__config_navs__.json similarity index 100% rename from templates/ice-design/layouts/BasicLayout/src/__config_navs__.json rename to layouts/BasicLayout/src/__config_navs__.json diff --git a/templates/ice-design/layouts/BasicLayout/src/index.js b/layouts/BasicLayout/src/index.js similarity index 100% rename from templates/ice-design/layouts/BasicLayout/src/index.js rename to layouts/BasicLayout/src/index.js diff --git a/templates/ice-design/layouts/BasicLayout/.editorconfig b/layouts/LandingLayout/.editorconfig similarity index 100% rename from templates/ice-design/layouts/BasicLayout/.editorconfig rename to layouts/LandingLayout/.editorconfig diff --git a/templates/ice-design/layouts/LandingLayout/.eslintignore b/layouts/LandingLayout/.eslintignore similarity index 100% rename from templates/ice-design/layouts/LandingLayout/.eslintignore rename to layouts/LandingLayout/.eslintignore diff --git a/templates/ice-design/layouts/LandingLayout/.eslintrc b/layouts/LandingLayout/.eslintrc similarity index 100% rename from templates/ice-design/layouts/LandingLayout/.eslintrc rename to layouts/LandingLayout/.eslintrc diff --git a/templates/ice-design/layouts/LandingLayout/.gitignore b/layouts/LandingLayout/.gitignore similarity index 100% rename from templates/ice-design/layouts/LandingLayout/.gitignore rename to layouts/LandingLayout/.gitignore diff --git a/templates/ice-design/layouts/LandingLayout/README.md b/layouts/LandingLayout/README.md similarity index 100% rename from templates/ice-design/layouts/LandingLayout/README.md rename to layouts/LandingLayout/README.md diff --git a/templates/ice-design/layouts/LandingLayout/demo/index.html b/layouts/LandingLayout/demo/index.html similarity index 100% rename from templates/ice-design/layouts/LandingLayout/demo/index.html rename to layouts/LandingLayout/demo/index.html diff --git a/templates/ice-design/layouts/LandingLayout/demo/index.js b/layouts/LandingLayout/demo/index.js similarity index 100% rename from templates/ice-design/layouts/LandingLayout/demo/index.js rename to layouts/LandingLayout/demo/index.js diff --git a/templates/ice-design/layouts/LandingLayout/mock/api.json b/layouts/LandingLayout/mock/api.json similarity index 100% rename from templates/ice-design/layouts/LandingLayout/mock/api.json rename to layouts/LandingLayout/mock/api.json diff --git a/templates/ice-design/layouts/LandingLayout/package.json b/layouts/LandingLayout/package.json similarity index 100% rename from templates/ice-design/layouts/LandingLayout/package.json rename to layouts/LandingLayout/package.json diff --git a/templates/ice-design/layouts/LandingLayout/src/Layout.jsx b/layouts/LandingLayout/src/Layout.jsx similarity index 100% rename from templates/ice-design/layouts/LandingLayout/src/Layout.jsx rename to layouts/LandingLayout/src/Layout.jsx diff --git a/templates/ice-design/layouts/LandingLayout/src/Layout.scss b/layouts/LandingLayout/src/Layout.scss similarity index 100% rename from templates/ice-design/layouts/LandingLayout/src/Layout.scss rename to layouts/LandingLayout/src/Layout.scss diff --git a/templates/ice-design/layouts/LandingLayout/src/__components_Footer__.jsx b/layouts/LandingLayout/src/__components_Footer__.jsx similarity index 100% rename from templates/ice-design/layouts/LandingLayout/src/__components_Footer__.jsx rename to layouts/LandingLayout/src/__components_Footer__.jsx diff --git a/templates/ice-design/layouts/LandingLayout/src/__components_Header__.jsx b/layouts/LandingLayout/src/__components_Header__.jsx similarity index 100% rename from templates/ice-design/layouts/LandingLayout/src/__components_Header__.jsx rename to layouts/LandingLayout/src/__components_Header__.jsx diff --git a/templates/ice-design/layouts/LandingLayout/src/__components_Logo__.jsx b/layouts/LandingLayout/src/__components_Logo__.jsx similarity index 100% rename from templates/ice-design/layouts/LandingLayout/src/__components_Logo__.jsx rename to layouts/LandingLayout/src/__components_Logo__.jsx diff --git a/templates/ice-design/layouts/LandingLayout/src/__config_navs__.json b/layouts/LandingLayout/src/__config_navs__.json similarity index 100% rename from templates/ice-design/layouts/LandingLayout/src/__config_navs__.json rename to layouts/LandingLayout/src/__config_navs__.json diff --git a/templates/ice-design/layouts/LandingLayout/src/index.js b/layouts/LandingLayout/src/index.js similarity index 100% rename from templates/ice-design/layouts/LandingLayout/src/index.js rename to layouts/LandingLayout/src/index.js diff --git a/templates/ice-design/layouts/LandingLayout/.editorconfig b/layouts/ScalableAsideLayout/.editorconfig similarity index 100% rename from templates/ice-design/layouts/LandingLayout/.editorconfig rename to layouts/ScalableAsideLayout/.editorconfig diff --git a/templates/ice-design/layouts/ScalableAsideLayout/.eslintignore b/layouts/ScalableAsideLayout/.eslintignore similarity index 100% rename from templates/ice-design/layouts/ScalableAsideLayout/.eslintignore rename to layouts/ScalableAsideLayout/.eslintignore diff --git a/templates/ice-design/layouts/ScalableAsideLayout/.eslintrc b/layouts/ScalableAsideLayout/.eslintrc similarity index 100% rename from templates/ice-design/layouts/ScalableAsideLayout/.eslintrc rename to layouts/ScalableAsideLayout/.eslintrc diff --git a/templates/ice-design/layouts/ScalableAsideLayout/.gitignore b/layouts/ScalableAsideLayout/.gitignore similarity index 100% rename from templates/ice-design/layouts/ScalableAsideLayout/.gitignore rename to layouts/ScalableAsideLayout/.gitignore diff --git a/templates/ice-design/layouts/ScalableAsideLayout/README.md b/layouts/ScalableAsideLayout/README.md similarity index 100% rename from templates/ice-design/layouts/ScalableAsideLayout/README.md rename to layouts/ScalableAsideLayout/README.md diff --git a/templates/ice-design/layouts/ScalableAsideLayout/demo/index.html b/layouts/ScalableAsideLayout/demo/index.html similarity index 100% rename from templates/ice-design/layouts/ScalableAsideLayout/demo/index.html rename to layouts/ScalableAsideLayout/demo/index.html diff --git a/templates/ice-design/layouts/ScalableAsideLayout/demo/index.js b/layouts/ScalableAsideLayout/demo/index.js similarity index 100% rename from templates/ice-design/layouts/ScalableAsideLayout/demo/index.js rename to layouts/ScalableAsideLayout/demo/index.js diff --git a/templates/ice-design/blocks/TreeCardList/mock/api.json b/layouts/ScalableAsideLayout/mock/api.json similarity index 100% rename from templates/ice-design/blocks/TreeCardList/mock/api.json rename to layouts/ScalableAsideLayout/mock/api.json diff --git a/templates/ice-design/layouts/ScalableAsideLayout/package.json b/layouts/ScalableAsideLayout/package.json similarity index 100% rename from templates/ice-design/layouts/ScalableAsideLayout/package.json rename to layouts/ScalableAsideLayout/package.json diff --git a/templates/ice-design/layouts/ScalableAsideLayout/src/Layout.jsx b/layouts/ScalableAsideLayout/src/Layout.jsx similarity index 100% rename from templates/ice-design/layouts/ScalableAsideLayout/src/Layout.jsx rename to layouts/ScalableAsideLayout/src/Layout.jsx diff --git a/templates/ice-design/layouts/ScalableAsideLayout/src/Layout.scss b/layouts/ScalableAsideLayout/src/Layout.scss similarity index 100% rename from templates/ice-design/layouts/ScalableAsideLayout/src/Layout.scss rename to layouts/ScalableAsideLayout/src/Layout.scss diff --git a/templates/ice-design/layouts/ScalableAsideLayout/src/__components_Footer__.jsx b/layouts/ScalableAsideLayout/src/__components_Footer__.jsx similarity index 100% rename from templates/ice-design/layouts/ScalableAsideLayout/src/__components_Footer__.jsx rename to layouts/ScalableAsideLayout/src/__components_Footer__.jsx diff --git a/templates/ice-design/layouts/ScalableAsideLayout/src/__components_Header__.jsx b/layouts/ScalableAsideLayout/src/__components_Header__.jsx similarity index 100% rename from templates/ice-design/layouts/ScalableAsideLayout/src/__components_Header__.jsx rename to layouts/ScalableAsideLayout/src/__components_Header__.jsx diff --git a/templates/ice-design/layouts/ScalableAsideLayout/src/__components_Logo__.jsx b/layouts/ScalableAsideLayout/src/__components_Logo__.jsx similarity index 100% rename from templates/ice-design/layouts/ScalableAsideLayout/src/__components_Logo__.jsx rename to layouts/ScalableAsideLayout/src/__components_Logo__.jsx diff --git a/templates/ice-design/layouts/ScalableAsideLayout/src/__config_navs__.json b/layouts/ScalableAsideLayout/src/__config_navs__.json similarity index 100% rename from templates/ice-design/layouts/ScalableAsideLayout/src/__config_navs__.json rename to layouts/ScalableAsideLayout/src/__config_navs__.json diff --git a/templates/ice-design/layouts/ScalableAsideLayout/src/index.js b/layouts/ScalableAsideLayout/src/index.js similarity index 100% rename from templates/ice-design/layouts/ScalableAsideLayout/src/index.js rename to layouts/ScalableAsideLayout/src/index.js diff --git a/templates/ice-design/blocks/AreaStackChart/lib/AreaStackChart.js b/templates/ice-design/blocks/AreaStackChart/lib/AreaStackChart.js deleted file mode 100644 index 6b646a9c5f..0000000000 --- a/templates/ice-design/blocks/AreaStackChart/lib/AreaStackChart.js +++ /dev/null @@ -1,80 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = undefined; - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _class, _temp; - -var _react = require('react'); - -var _react2 = _interopRequireDefault(_react); - -var _bizcharts = require('bizcharts'); - -var _card = require('@icedesign/card'); - -var _card2 = _interopRequireDefault(_card); - -require('./AreaStackChart.scss'); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -var AreaStackChart = (_temp = _class = function (_Component) { - _inherits(AreaStackChart, _Component); - - function AreaStackChart(props) { - _classCallCheck(this, AreaStackChart); - - var _this = _possibleConstructorReturn(this, (AreaStackChart.__proto__ || Object.getPrototypeOf(AreaStackChart)).call(this, props)); - - _this.state = {}; - return _this; - } - - _createClass(AreaStackChart, [{ - key: 'render', - value: function render() { - var data = [{ country: 'Asia', year: '1750', value: 502 }, { country: 'Asia', year: '1800', value: 635 }, { country: 'Asia', year: '1850', value: 809 }, { country: 'Asia', year: '1900', value: 5268 }, { country: 'Asia', year: '1950', value: 4400 }, { country: 'Asia', year: '1999', value: 3634 }, { country: 'Asia', year: '2050', value: 947 }, { country: 'Africa', year: '1750', value: 106 }, { country: 'Africa', year: '1800', value: 107 }, { country: 'Africa', year: '1850', value: 111 }, { country: 'Africa', year: '1900', value: 1766 }, { country: 'Africa', year: '1950', value: 221 }, { country: 'Africa', year: '1999', value: 767 }, { country: 'Africa', year: '2050', value: 133 }, { country: 'Europe', year: '1750', value: 163 }, { country: 'Europe', year: '1800', value: 203 }, { country: 'Europe', year: '1850', value: 276 }, { country: 'Europe', year: '1900', value: 628 }, { country: 'Europe', year: '1950', value: 547 }, { country: 'Europe', year: '1999', value: 729 }, { country: 'Europe', year: '2050', value: 408 }, { country: 'Oceania', year: '1750', value: 200 }, { country: 'Oceania', year: '1800', value: 200 }, { country: 'Oceania', year: '1850', value: 200 }, { country: 'Oceania', year: '1900', value: 460 }, { country: 'Oceania', year: '1950', value: 230 }, { country: 'Oceania', year: '1999', value: 300 }, { country: 'Oceania', year: '2050', value: 300 }]; - - var cols = { - year: { - type: 'linear', - tickInterval: 50 - } - }; - - return _react2.default.createElement( - 'div', - { className: 'area-stack-chart' }, - _react2.default.createElement( - _card2.default, - null, - _react2.default.createElement( - _bizcharts.Chart, - { height: 400, data: data, scale: cols, forceFit: true }, - _react2.default.createElement(_bizcharts.Axis, { name: 'year' }), - _react2.default.createElement(_bizcharts.Axis, { name: 'value' }), - _react2.default.createElement(_bizcharts.Legend, null), - _react2.default.createElement(_bizcharts.Tooltip, { crosshairs: { type: 'line' } }), - _react2.default.createElement(_bizcharts.Geom, { type: 'area', position: 'year*value', color: 'country' }), - _react2.default.createElement(_bizcharts.Geom, { type: 'line', position: 'year*value', size: 2, color: 'country' }) - ) - ) - ); - } - }]); - - return AreaStackChart; -}(_react.Component), _class.displayName = 'AreaStackChart', _temp); -exports.default = AreaStackChart; -module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/AreaStackChart/lib/index.js b/templates/ice-design/blocks/AreaStackChart/lib/index.js deleted file mode 100644 index 1e7f0185ab..0000000000 --- a/templates/ice-design/blocks/AreaStackChart/lib/index.js +++ /dev/null @@ -1,14 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _AreaStackChart = require('./AreaStackChart'); - -var _AreaStackChart2 = _interopRequireDefault(_AreaStackChart); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -exports.default = _AreaStackChart2.default; -module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/AreaStackChart/src/AreaStackChart.scss b/templates/ice-design/blocks/AreaStackChart/src/AreaStackChart.scss deleted file mode 100644 index 297565c89f..0000000000 --- a/templates/ice-design/blocks/AreaStackChart/src/AreaStackChart.scss +++ /dev/null @@ -1,5 +0,0 @@ -@charset "UTF-8"; - -.area-stack-chart { - -} diff --git a/templates/ice-design/blocks/BasicException/lib/BasicException.js b/templates/ice-design/blocks/BasicException/lib/BasicException.js deleted file mode 100644 index 4667a59670..0000000000 --- a/templates/ice-design/blocks/BasicException/lib/BasicException.js +++ /dev/null @@ -1,86 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = undefined; - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _class, _temp; - -var _react = require('react'); - -var _react2 = _interopRequireDefault(_react); - -var _reactRouter = require('react-router'); - -var _card = require('@icedesign/card'); - -var _card2 = _interopRequireDefault(_card); - -require('./BasicException.scss'); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -var BasicException = (_temp = _class = function (_Component) { - _inherits(BasicException, _Component); - - function BasicException() { - _classCallCheck(this, BasicException); - - return _possibleConstructorReturn(this, (BasicException.__proto__ || Object.getPrototypeOf(BasicException)).apply(this, arguments)); - } - - _createClass(BasicException, [{ - key: 'render', - value: function render() { - return _react2.default.createElement( - 'div', - { className: 'basic-exception' }, - _react2.default.createElement( - _card2.default, - null, - _react2.default.createElement( - 'div', - { className: 'exception-content' }, - _react2.default.createElement('img', { - src: 'https://img.alicdn.com/tfs/TB1w4M7bNrI8KJjy0FpXXb5hVXa-260-260.png', - className: 'img-exception', - alt: '\u670D\u52A1\u5668\u51FA\u9519' - }), - _react2.default.createElement( - 'div', - { className: 'prompt' }, - _react2.default.createElement( - 'h3', - null, - '\u62B1\u6B49\uFF0C\u670D\u52A1\u5668\u51FA\u9519\u4E86' - ), - _react2.default.createElement( - 'p', - null, - '\u670D\u52A1\u5668\u51FA\u9519\u4E86\uFF0C\u8BF7\u91CD\u65B0\u5237\u65B0\u9875\u9762\u6216\u8FD4\u56DE', - _react2.default.createElement( - _reactRouter.Link, - { to: '/' }, - '\u9996\u9875' - ) - ) - ) - ) - ) - ); - } - }]); - - return BasicException; -}(_react.Component), _class.displayName = 'BasicException', _temp); -exports.default = BasicException; -module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/BasicException/lib/index.js b/templates/ice-design/blocks/BasicException/lib/index.js deleted file mode 100644 index 243c8565dc..0000000000 --- a/templates/ice-design/blocks/BasicException/lib/index.js +++ /dev/null @@ -1,14 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _BasicException = require('./BasicException'); - -var _BasicException2 = _interopRequireDefault(_BasicException); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -exports.default = _BasicException2.default; -module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/BasicException/src/BasicException.scss b/templates/ice-design/blocks/BasicException/src/BasicException.scss deleted file mode 100644 index 015457dd53..0000000000 --- a/templates/ice-design/blocks/BasicException/src/BasicException.scss +++ /dev/null @@ -1,22 +0,0 @@ -@charset "UTF-8"; - -.basic-exception { - .exception-content { - display: flex; - justify-content: center; - align-items: center; - min-height: 500px; - } - .img-exception { - margin-right: 50px; - } - h3 { - color: #333; - font-size: 24px; - margin: 20px 0; - } - p { - color: #666; - font-size: 16px; - } -} diff --git a/templates/ice-design/blocks/BasicNotFound/lib/BasicNotFound.js b/templates/ice-design/blocks/BasicNotFound/lib/BasicNotFound.js deleted file mode 100644 index 362b5d39f2..0000000000 --- a/templates/ice-design/blocks/BasicNotFound/lib/BasicNotFound.js +++ /dev/null @@ -1,87 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = undefined; - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _class, _temp; - -var _react = require('react'); - -var _react2 = _interopRequireDefault(_react); - -var _reactRouter = require('react-router'); - -var _card = require('@icedesign/card'); - -var _card2 = _interopRequireDefault(_card); - -require('./BasicNotFound.scss'); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -var BasicNotFound = (_temp = _class = function (_Component) { - _inherits(BasicNotFound, _Component); - - function BasicNotFound() { - _classCallCheck(this, BasicNotFound); - - return _possibleConstructorReturn(this, (BasicNotFound.__proto__ || Object.getPrototypeOf(BasicNotFound)).apply(this, arguments)); - } - - _createClass(BasicNotFound, [{ - key: 'render', - value: function render() { - return _react2.default.createElement( - 'div', - { className: 'basic-not-found' }, - _react2.default.createElement( - _card2.default, - null, - _react2.default.createElement( - 'div', - { className: 'not-found-content' }, - _react2.default.createElement('img', { - src: 'https://img.alicdn.com/tfs/TB1txw7bNrI8KJjy0FpXXb5hVXa-260-260.png', - className: 'img-notfound', - alt: '\u9875\u9762\u4E0D\u5B58\u5728' - }), - _react2.default.createElement( - 'div', - { className: 'prompt' }, - _react2.default.createElement( - 'h3', - null, - '\u62B1\u6B49\uFF0C\u4F60\u8BBF\u95EE\u7684\u9875\u9762\u4E0D\u5B58\u5728' - ), - _react2.default.createElement( - 'p', - null, - '\u60A8\u8981\u627E\u7684\u9875\u9762\u6CA1\u6709\u627E\u5230\uFF0C\u8BF7\u8FD4\u56DE', - _react2.default.createElement( - _reactRouter.Link, - { to: '/' }, - '\u9996\u9875' - ), - '\u7EE7\u7EED\u6D4F\u89C8' - ) - ) - ) - ) - ); - } - }]); - - return BasicNotFound; -}(_react.Component), _class.displayName = 'BasicNotFound', _temp); -exports.default = BasicNotFound; -module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/BasicNotFound/lib/index.js b/templates/ice-design/blocks/BasicNotFound/lib/index.js deleted file mode 100644 index cf0ad40472..0000000000 --- a/templates/ice-design/blocks/BasicNotFound/lib/index.js +++ /dev/null @@ -1,14 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _BasicNotFound = require('./BasicNotFound'); - -var _BasicNotFound2 = _interopRequireDefault(_BasicNotFound); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -exports.default = _BasicNotFound2.default; -module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/BasicNotFound/src/BasicNotFound.scss b/templates/ice-design/blocks/BasicNotFound/src/BasicNotFound.scss deleted file mode 100644 index cb75ad6504..0000000000 --- a/templates/ice-design/blocks/BasicNotFound/src/BasicNotFound.scss +++ /dev/null @@ -1,22 +0,0 @@ -@charset "UTF-8"; - -.basic-not-found { - .not-found-content { - display: flex; - justify-content: center; - align-items: center; - min-height: 500px; - } - .img-notfound { - margin-right: 50px; - } - h3 { - color: #333; - font-size: 24px; - margin: 20px 0; - } - p { - color: #666; - font-size: 16px; - } -} diff --git a/templates/ice-design/blocks/BasicTab/lib/BasicTab.js b/templates/ice-design/blocks/BasicTab/lib/BasicTab.js deleted file mode 100644 index 7f255aa4da..0000000000 --- a/templates/ice-design/blocks/BasicTab/lib/BasicTab.js +++ /dev/null @@ -1,76 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = undefined; - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _class, _temp; - -var _react = require('react'); - -var _react2 = _interopRequireDefault(_react); - -var _card = require('@icedesign/card'); - -var _card2 = _interopRequireDefault(_card); - -require('./BasicTab.scss'); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -var Tab = require('@icedesign/base/lib/tab'); - -var BasicTab = (_temp = _class = function (_Component) { - _inherits(BasicTab, _Component); - - function BasicTab() { - _classCallCheck(this, BasicTab); - - return _possibleConstructorReturn(this, (BasicTab.__proto__ || Object.getPrototypeOf(BasicTab)).apply(this, arguments)); - } - - _createClass(BasicTab, [{ - key: 'render', - value: function render() { - var tabs = [{ tab: '订阅号概览', key: 'guide' }, { tab: '订阅号推送', key: 'push' }, { tab: '互动消息', key: 'message' }, { tab: '自动回复设置', key: 'autoreply' }]; - - return _react2.default.createElement( - 'div', - { className: 'basic-tab' }, - _react2.default.createElement( - _card2.default, - { style: styles.tabCardStyle }, - _react2.default.createElement( - Tab, - { contentStyle: { display: 'none' } }, - tabs.map(function (item) { - return _react2.default.createElement(Tab.TabPane, { key: item.key, tab: item.tab }); - }) - ) - ) - ); - } - }]); - - return BasicTab; -}(_react.Component), _class.displayName = 'BasicTab', _temp); -exports.default = BasicTab; - - -var styles = { - tabCardStyle: { - display: 'flex', - padding: '0', - alignItems: 'flex-end' - } -}; -module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/BasicTab/lib/index.js b/templates/ice-design/blocks/BasicTab/lib/index.js deleted file mode 100644 index d81accfa06..0000000000 --- a/templates/ice-design/blocks/BasicTab/lib/index.js +++ /dev/null @@ -1,14 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _BasicTab = require('./BasicTab'); - -var _BasicTab2 = _interopRequireDefault(_BasicTab); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -exports.default = _BasicTab2.default; -module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/BasicTab/src/BasicTab.scss b/templates/ice-design/blocks/BasicTab/src/BasicTab.scss deleted file mode 100644 index 2c8b62448d..0000000000 --- a/templates/ice-design/blocks/BasicTab/src/BasicTab.scss +++ /dev/null @@ -1,4 +0,0 @@ -@charset "UTF-8"; - -.basic-tab { -} diff --git a/templates/ice-design/blocks/ChartArea/lib/ChartArea.js b/templates/ice-design/blocks/ChartArea/lib/ChartArea.js deleted file mode 100644 index 2fc5ea2528..0000000000 --- a/templates/ice-design/blocks/ChartArea/lib/ChartArea.js +++ /dev/null @@ -1,113 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = undefined; - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _class, _temp; - -var _react = require('react'); - -var _react2 = _interopRequireDefault(_react); - -var _bizcharts = require('bizcharts'); - -var _dataSet = require('@antv/data-set'); - -var _card = require('@icedesign/card'); - -var _card2 = _interopRequireDefault(_card); - -require('./ChartArea.scss'); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -var ChartArea = (_temp = _class = function (_Component) { - _inherits(ChartArea, _Component); - - function ChartArea(props) { - _classCallCheck(this, ChartArea); - - var _this = _possibleConstructorReturn(this, (ChartArea.__proto__ || Object.getPrototypeOf(ChartArea)).call(this, props)); - - _this.state = {}; - return _this; - } - - _createClass(ChartArea, [{ - key: 'render', - value: function render() { - // 参考:https://alibaba.github.io/BizCharts/ - var data = [{ year: '1996', north: 322, south: 162 }, { year: '1997', north: 324, south: 90 }, { year: '1998', north: 329, south: 50 }, { year: '1999', north: 342, south: 77 }, { year: '2000', north: 348, south: 35 }, { year: '2001', north: 334, south: -45 }, { year: '2002', north: 325, south: -88 }, { year: '2003', north: 316, south: -120 }, { year: '2004', north: 318, south: -156 }, { year: '2005', north: 330, south: -123 }, { year: '2006', north: 355, south: -88 }, { year: '2007', north: 366, south: -66 }, { year: '2008', north: 337, south: -45 }, { year: '2009', north: 352, south: -29 }, { year: '2010', north: 377, south: -45 }, { year: '2011', north: 383, south: -88 }, { year: '2012', north: 344, south: -132 }, { year: '2013', north: 366, south: -146 }, { year: '2014', north: 389, south: -169 }, { year: '2015', north: 334, south: -184 }]; - - var dv = new _dataSet.DataView().source(data); - dv.transform({ - type: 'fold', - fields: ['north', 'south'], // 展开字段集 - key: 'type', // key字段 - value: 'value' // value字段 - }); - - var cols = { - year: { - range: [0, 1] - } - }; - - return _react2.default.createElement( - 'div', - { className: 'chart-area' }, - _react2.default.createElement( - _card2.default, - null, - _react2.default.createElement( - 'h4', - { style: styles.title }, - '\u9762\u79EF\u56FE' - ), - _react2.default.createElement( - _bizcharts.Chart, - { height: 400, data: dv, scale: cols, forceFit: true }, - _react2.default.createElement(_bizcharts.Axis, { name: 'year' }), - _react2.default.createElement(_bizcharts.Axis, { - name: 'value', - label: { - formatter: function formatter(val) { - return (val / 10000).toFixed(1) + 'k'; - } - } - }), - _react2.default.createElement(_bizcharts.Legend, null), - _react2.default.createElement(_bizcharts.Tooltip, { crosshairs: { type: 'line' } }), - _react2.default.createElement(_bizcharts.Geom, { type: 'area', position: 'year*value', color: 'type' }), - _react2.default.createElement(_bizcharts.Geom, { type: 'line', position: 'year*value', size: 2, color: 'type' }) - ) - ) - ); - } - }]); - - return ChartArea; -}(_react.Component), _class.displayName = 'ChartArea', _class.propTypes = {}, _class.defaultProps = {}, _temp); -exports.default = ChartArea; - - -var styles = { - title: { - margin: '0 0 40px', - fontSize: '18px', - paddingBottom: '15px', - fontWeight: 'bold', - borderBottom: '1px solid #eee' - } -}; -module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/ChartArea/lib/index.js b/templates/ice-design/blocks/ChartArea/lib/index.js deleted file mode 100644 index e1778a8347..0000000000 --- a/templates/ice-design/blocks/ChartArea/lib/index.js +++ /dev/null @@ -1,14 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _ChartArea = require('./ChartArea'); - -var _ChartArea2 = _interopRequireDefault(_ChartArea); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -exports.default = _ChartArea2.default; -module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/ChartArea/src/ChartArea.scss b/templates/ice-design/blocks/ChartArea/src/ChartArea.scss deleted file mode 100644 index 4b1ec6c084..0000000000 --- a/templates/ice-design/blocks/ChartArea/src/ChartArea.scss +++ /dev/null @@ -1,5 +0,0 @@ -@charset "UTF-8"; - -.chart-area { - -} diff --git a/templates/ice-design/blocks/ChartBar/lib/ChartBar.js b/templates/ice-design/blocks/ChartBar/lib/ChartBar.js deleted file mode 100644 index 90f72db8be..0000000000 --- a/templates/ice-design/blocks/ChartBar/lib/ChartBar.js +++ /dev/null @@ -1,124 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = undefined; - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _class, _temp; - -var _react = require('react'); - -var _react2 = _interopRequireDefault(_react); - -var _card = require('@icedesign/card'); - -var _card2 = _interopRequireDefault(_card); - -var _bizcharts = require('bizcharts'); - -var _dataSet = require('@antv/data-set'); - -require('./ChartBar.scss'); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -var ChartBar = (_temp = _class = function (_Component) { - _inherits(ChartBar, _Component); - - function ChartBar(props) { - _classCallCheck(this, ChartBar); - - var _this = _possibleConstructorReturn(this, (ChartBar.__proto__ || Object.getPrototypeOf(ChartBar)).call(this, props)); - - _this.state = {}; - return _this; - } - - _createClass(ChartBar, [{ - key: 'render', - value: function render() { - var data = [{ - name: 'London', - 'Jan.': 18.9, - 'Feb.': 28.8, - 'Mar.': 39.3, - 'Apr.': 81.4, - May: 47, - 'Jun.': 20.3, - 'Jul.': 24, - 'Aug.': 35.6 - }, { - name: 'Berlin', - 'Jan.': 12.4, - 'Feb.': 23.2, - 'Mar.': 34.5, - 'Apr.': 99.7, - May: 52.6, - 'Jun.': 35.5, - 'Jul.': 37.4, - 'Aug.': 42.4 - }]; - - var ds = new _dataSet.DataSet(); - var dv = ds.createView().source(data); - dv.transform({ - type: 'fold', - fields: ['Jan.', 'Feb.', 'Mar.', 'Apr.', 'May', 'Jun.', 'Jul.', 'Aug.'], // 展开字段集 - key: '月份', // key字段 - value: '月均降雨量' // value字段 - }); - - return _react2.default.createElement( - 'div', - { className: 'chart-bar' }, - _react2.default.createElement( - _card2.default, - null, - _react2.default.createElement( - 'h4', - { style: styles.title }, - '\u67F1\u72B6\u56FE' - ), - _react2.default.createElement( - _bizcharts.Chart, - { height: 400, data: dv, forceFit: true }, - _react2.default.createElement(_bizcharts.Axis, { name: '\u6708\u4EFD' }), - _react2.default.createElement(_bizcharts.Axis, { name: '\u6708\u5747\u964D\u96E8\u91CF' }), - _react2.default.createElement(_bizcharts.Legend, null), - _react2.default.createElement(_bizcharts.Tooltip, { crosshairs: { type: 'y' } }), - _react2.default.createElement(_bizcharts.Geom, { - type: 'interval', - position: '\u6708\u4EFD*\u6708\u5747\u964D\u96E8\u91CF', - color: 'name', - adjust: [{ type: 'dodge', marginRatio: 1 / 32 }] - }) - ) - ) - ); - } - }]); - - return ChartBar; -}(_react.Component), _class.displayName = 'ChartBar', _class.propTypes = {}, _class.defaultProps = {}, _temp); -exports.default = ChartBar; - - -var styles = { - title: { - margin: '0 0 40px', - fontSize: '18px', - paddingBottom: '15px', - fontWeight: 'bold', - borderBottom: '1px solid #eee' - } -}; -module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/ChartBar/lib/index.js b/templates/ice-design/blocks/ChartBar/lib/index.js deleted file mode 100644 index 80799ae7cc..0000000000 --- a/templates/ice-design/blocks/ChartBar/lib/index.js +++ /dev/null @@ -1,14 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _ChartBar = require('./ChartBar'); - -var _ChartBar2 = _interopRequireDefault(_ChartBar); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -exports.default = _ChartBar2.default; -module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/ChartBar/src/ChartBar.scss b/templates/ice-design/blocks/ChartBar/src/ChartBar.scss deleted file mode 100644 index 5e5812da20..0000000000 --- a/templates/ice-design/blocks/ChartBar/src/ChartBar.scss +++ /dev/null @@ -1,5 +0,0 @@ -@charset "UTF-8"; - -.chart-bar { - -} diff --git a/templates/ice-design/blocks/ChartBox/lib/ChartBox.js b/templates/ice-design/blocks/ChartBox/lib/ChartBox.js deleted file mode 100644 index 9a68fab232..0000000000 --- a/templates/ice-design/blocks/ChartBox/lib/ChartBox.js +++ /dev/null @@ -1,219 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = undefined; - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _class, _temp; - -var _react = require('react'); - -var _react2 = _interopRequireDefault(_react); - -var _card = require('@icedesign/card'); - -var _card2 = _interopRequireDefault(_card); - -var _bizcharts = require('bizcharts'); - -var _dataSet = require('@antv/data-set'); - -require('./ChartBox.scss'); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -var ChartBox = (_temp = _class = function (_Component) { - _inherits(ChartBox, _Component); - - function ChartBox(props) { - _classCallCheck(this, ChartBox); - - var _this = _possibleConstructorReturn(this, (ChartBox.__proto__ || Object.getPrototypeOf(ChartBox)).call(this, props)); - - _this.state = {}; - return _this; - } - - _createClass(ChartBox, [{ - key: 'render', - value: function render() { - // 参考:https://alibaba.github.io/BizCharts/ - var data = [{ - x: '职业 A', - low: 20000, - q1: 26000, - median: 27000, - q3: 32000, - high: 38000, - outliers: [50000, 52000] - }, { - x: '职业 B', - low: 40000, - q1: 49000, - median: 62000, - q3: 73000, - high: 88000, - outliers: [32000, 29000, 106000] - }, { - x: '职业 C', - low: 52000, - q1: 59000, - median: 65000, - q3: 74000, - high: 83000, - outliers: [91000] - }, { - x: '职业 D', - low: 58000, - q1: 96000, - median: 130000, - q3: 170000, - high: 200000, - outliers: [42000, 210000, 215000] - }, { - x: '职业 E', - low: 24000, - q1: 28000, - median: 32000, - q3: 38000, - high: 42000, - outliers: [48000] - }, { - x: '职业 F', - low: 47000, - q1: 56000, - median: 69000, - q3: 85000, - high: 100000, - outliers: [110000, 115000, 32000] - }, { - x: '职业 G', - low: 64000, - q1: 74000, - median: 83000, - q3: 93000, - high: 100000, - outliers: [110000] - }, { - x: '职业 H', - low: 67000, - q1: 72000, - median: 84000, - q3: 95000, - high: 110000, - outliers: [57000, 54000] - }]; - - var DataView = _dataSet.DataSet.DataView; - - var dv = new DataView().source(data); - dv.transform({ - type: 'map', - callback: function callback(obj) { - obj.range = [obj.low, obj.q1, obj.median, obj.q3, obj.high]; - return obj; - } - }); - - var cols = { - range: { - min: 0, - max: 240000 - }, - outliers: { - min: 0, - max: 240000 - } - }; - - return _react2.default.createElement( - 'div', - { className: 'chart-box' }, - _react2.default.createElement( - _card2.default, - null, - _react2.default.createElement( - 'h4', - { style: styles.title }, - '\u7BB1\u578B\u56FE' - ), - _react2.default.createElement( - _bizcharts.Chart, - { - height: 400, - data: dv, - scale: cols, - padding: [20, 120, 95], - forceFit: true - }, - _react2.default.createElement(_bizcharts.Axis, { name: 'x' }), - _react2.default.createElement(_bizcharts.Axis, { name: 'range' }), - _react2.default.createElement(_bizcharts.Tooltip, { - showTitle: false, - crosshairs: { - type: 'rect', - style: { fill: '#E4E8F1', fillOpacity: 0.43 } - }, - itemTpl: '
  • {name}
    \u6700\u5927\u503C\uFF1A{high}
    \u4E0A\u56DB\u5206\u4F4D\u6570\uFF1A{q3}
    \u4E2D\u4F4D\u6570\uFF1A{median}
    \u4E0B\u56DB\u5206\u4F4D\u6570\uFF1A{q1}
    \u6700\u5C0F\u503C\uFF1A{low}
  • ' - }), - _react2.default.createElement(_bizcharts.Geom, { - type: 'schema', - position: 'x*range', - shape: 'box', - tooltip: ['x*low*q1*median*q3*high', function (x, low, q1, median, q3, high) { - return { - name: x, - low: low, - q1: q1, - median: median, - q3: q3, - high: high - }; - }], - style: { - stroke: 'rgba(0, 0, 0, 0.45)', - fill: '#1890FF', - fillOpacity: 0.3 - } - }), - _react2.default.createElement( - _bizcharts.View, - { data: data }, - _react2.default.createElement(_bizcharts.Geom, { - type: 'point', - position: 'x*outliers', - shape: 'circle', - size: 3, - active: false - }) - ) - ) - ) - ); - } - }]); - - return ChartBox; -}(_react.Component), _class.displayName = 'ChartBox', _class.propTypes = {}, _class.defaultProps = {}, _temp); -exports.default = ChartBox; - - -var styles = { - title: { - margin: '0 0 40px', - fontSize: '18px', - paddingBottom: '15px', - fontWeight: 'bold', - borderBottom: '1px solid #eee' - } -}; -module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/ChartBox/lib/index.js b/templates/ice-design/blocks/ChartBox/lib/index.js deleted file mode 100644 index 24bcfa1647..0000000000 --- a/templates/ice-design/blocks/ChartBox/lib/index.js +++ /dev/null @@ -1,14 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _ChartBox = require('./ChartBox'); - -var _ChartBox2 = _interopRequireDefault(_ChartBox); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -exports.default = _ChartBox2.default; -module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/ChartBox/src/ChartBox.scss b/templates/ice-design/blocks/ChartBox/src/ChartBox.scss deleted file mode 100644 index 859ec7505d..0000000000 --- a/templates/ice-design/blocks/ChartBox/src/ChartBox.scss +++ /dev/null @@ -1,5 +0,0 @@ -@charset "UTF-8"; - -.chart-box { - -} diff --git a/templates/ice-design/blocks/ChartBubbleImage/lib/ChartBubbleImage.js b/templates/ice-design/blocks/ChartBubbleImage/lib/ChartBubbleImage.js deleted file mode 100644 index a3449336d2..0000000000 --- a/templates/ice-design/blocks/ChartBubbleImage/lib/ChartBubbleImage.js +++ /dev/null @@ -1,164 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = undefined; - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _class, _temp; /* eslint no-mixed-operators: 0 */ -/* eslint no-underscore-dangle: 0 */ - - -var _react = require('react'); - -var _react2 = _interopRequireDefault(_react); - -var _card = require('@icedesign/card'); - -var _card2 = _interopRequireDefault(_card); - -var _bizcharts = require('bizcharts'); - -require('./ChartBubbleImage.scss'); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -var ChartBubbleImage = (_temp = _class = function (_Component) { - _inherits(ChartBubbleImage, _Component); - - function ChartBubbleImage(props) { - _classCallCheck(this, ChartBubbleImage); - - var _this = _possibleConstructorReturn(this, (ChartBubbleImage.__proto__ || Object.getPrototypeOf(ChartBubbleImage)).call(this, props)); - - _this.state = {}; - return _this; - } - - _createClass(ChartBubbleImage, [{ - key: 'render', - value: function render() { - // 参考:https://alibaba.github.io/BizCharts/ - // 自定义 shape, 支持图片形式的气泡 - _bizcharts.Shape.registerShape('point', 'image', { - drawShape: function drawShape(cfg, container) { - cfg.points = this.parsePoints(cfg.points); - var coord = this._coord; - container.addShape('line', { - attrs: { - x1: cfg.points[0].x, - y1: cfg.points[0].y, - x2: cfg.points[0].x, - y2: coord.start.y, - stroke: '#ccc', - lineWidth: 1, - lineDash: [4, 2] - } - }); - return container.addShape('image', { - attrs: { - x: cfg.points[0].x - 12 * cfg.size / 2, - y: cfg.points[0].y - 12 * cfg.size, - width: 12 * cfg.size, - height: 12 * cfg.size, - img: cfg.shape[1] - } - }); - } - }); - - var data = [{ name: 'Internet Explorer', value: 26 }, { name: 'Chrome', value: 40 }, { name: 'Firefox', value: 30 }, { name: 'Safari', value: 24 }, { name: 'Opera', value: 15 }, { name: 'Undetectable', value: 8 }]; - - var imageMap = { - 'Internet Explorer': 'https://gw.alipayobjects.com/zos/rmsportal/eOYRaLPOmkieVvjyjTzM.png', - Chrome: 'https://gw.alipayobjects.com/zos/rmsportal/dWJWRLWfpOEbwCyxmZwu.png', - Firefox: 'https://gw.alipayobjects.com/zos/rmsportal/ZEPeDluKmAoTioCABBTc.png', - Safari: 'https://gw.alipayobjects.com/zos/rmsportal/eZYhlLzqWLAYwOHQAXmc.png', - Opera: 'https://gw.alipayobjects.com/zos/rmsportal/vXiGOWCGZNKuVVpVYQAw.png', - Undetectable: 'https://gw.alipayobjects.com/zos/rmsportal/NjApYXminrnhBgOXyuaK.png' - }; - - var cols = { - value: { - nice: false, - max: 60, - min: 0 - } - }; - - return _react2.default.createElement( - 'div', - { className: 'chart-bubble-image' }, - _react2.default.createElement( - _card2.default, - null, - _react2.default.createElement( - 'h4', - { style: styles.title }, - '\u81EA\u5B9A\u4E49\u6C14\u6CE1\u56FE' - ), - _react2.default.createElement( - _bizcharts.Chart, - { - height: 400, - data: data, - padding: [20, 20, 90], - scale: cols, - forceFit: true - }, - _react2.default.createElement(_bizcharts.Axis, { name: 'name' }), - _react2.default.createElement(_bizcharts.Axis, { name: 'value', visible: false }), - _react2.default.createElement(_bizcharts.Tooltip, null), - _react2.default.createElement( - _bizcharts.Geom, - { - type: 'point', - position: 'name*value', - color: 'name', - shape: ['name', function (name) { - return ['image', imageMap[name]]; // 根据具体的字段指定 shape - }], - size: 'value', - style: { - stroke: '#fff', - lineWidth: 1, - fillOpacity: 1 - } - }, - _react2.default.createElement(_bizcharts.Label, { - content: 'value', - offset: -20, - textStyle: { - fontSize: 16 // 文本大小 - } - }) - ) - ) - ) - ); - } - }]); - - return ChartBubbleImage; -}(_react.Component), _class.displayName = 'ChartBubbleImage', _class.propTypes = {}, _class.defaultProps = {}, _temp); -exports.default = ChartBubbleImage; - - -var styles = { - title: { - margin: '0 0 40px', - fontSize: '18px', - paddingBottom: '15px', - fontWeight: 'bold', - borderBottom: '1px solid #eee' - } -}; -module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/ChartBubbleImage/lib/index.js b/templates/ice-design/blocks/ChartBubbleImage/lib/index.js deleted file mode 100644 index 1f155202b2..0000000000 --- a/templates/ice-design/blocks/ChartBubbleImage/lib/index.js +++ /dev/null @@ -1,14 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _ChartBubbleImage = require('./ChartBubbleImage'); - -var _ChartBubbleImage2 = _interopRequireDefault(_ChartBubbleImage); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -exports.default = _ChartBubbleImage2.default; -module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/ChartBubbleImage/src/ChartBubbleImage.scss b/templates/ice-design/blocks/ChartBubbleImage/src/ChartBubbleImage.scss deleted file mode 100644 index 125362a264..0000000000 --- a/templates/ice-design/blocks/ChartBubbleImage/src/ChartBubbleImage.scss +++ /dev/null @@ -1,5 +0,0 @@ -@charset "UTF-8"; - -.chart-bubble-image { - -} diff --git a/templates/ice-design/blocks/ChartFacet/lib/ChartFacet.js b/templates/ice-design/blocks/ChartFacet/lib/ChartFacet.js deleted file mode 100644 index d8eb581421..0000000000 --- a/templates/ice-design/blocks/ChartFacet/lib/ChartFacet.js +++ /dev/null @@ -1,129 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = undefined; - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _class, _temp; - -var _react = require('react'); - -var _react2 = _interopRequireDefault(_react); - -var _card = require('@icedesign/card'); - -var _card2 = _interopRequireDefault(_card); - -var _bizcharts = require('bizcharts'); - -var _dataSet = require('@antv/data-set'); - -require('./ChartFacet.scss'); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -var ChartFacet = (_temp = _class = function (_Component) { - _inherits(ChartFacet, _Component); - - function ChartFacet(props) { - _classCallCheck(this, ChartFacet); - - var _this = _possibleConstructorReturn(this, (ChartFacet.__proto__ || Object.getPrototypeOf(ChartFacet)).call(this, props)); - - _this.state = {}; - return _this; - } - - _createClass(ChartFacet, [{ - key: 'render', - value: function render() { - // 参考:https://alibaba.github.io/BizCharts/ - var data = [{ gender: '男', count: 40, class: '一班', grade: '一年级' }, { gender: '女', count: 30, class: '一班', grade: '一年级' }, { gender: '男', count: 35, class: '二班', grade: '一年级' }, { gender: '女', count: 45, class: '二班', grade: '一年级' }, { gender: '男', count: 20, class: '三班', grade: '一年级' }, { gender: '女', count: 35, class: '三班', grade: '一年级' }, { gender: '男', count: 30, class: '一班', grade: '二年级' }, { gender: '女', count: 40, class: '一班', grade: '二年级' }, { gender: '男', count: 25, class: '二班', grade: '二年级' }, { gender: '女', count: 32, class: '二班', grade: '二年级' }, { gender: '男', count: 28, class: '三班', grade: '二年级' }, { gender: '女', count: 36, class: '三班', grade: '二年级' }]; - - var scale = { - cut: { - sync: true - }, - mean: { - sync: true, - tickCount: 5 - } - }; - - return _react2.default.createElement( - 'div', - { className: 'chart-facet' }, - _react2.default.createElement( - _card2.default, - null, - _react2.default.createElement( - 'h4', - { style: styles.title }, - '\u5206\u9762\u56FE' - ), - _react2.default.createElement( - _bizcharts.Chart, - { - data: data, - width: 960, - height: 500, - padding: [30, 80, 80, 80], - scale: scale - }, - _react2.default.createElement(_bizcharts.Tooltip, { showTitle: false }), - _react2.default.createElement(_bizcharts.Legend, null), - _react2.default.createElement(_bizcharts.Coord, { type: 'theta' }), - _react2.default.createElement(_bizcharts.Facet, { - type: 'tree', - fields: ['grade', 'class'], - line: { stroke: '#c0d0e0' }, - lineSmooth: true, - eachView: function eachView(view, facet) { - var data2 = facet.data; - var dv = new _dataSet.DataView(); - dv.source(data2).transform({ - type: 'percent', - field: 'count', - dimension: 'gender', - as: 'percent' - }); - view.source(dv, { - percent: { - formatter: function formatter(val) { - return (val * 100).toFixed(2) + '%'; - } - } - }); - view.intervalStack().position('percent').color('gender'); - } - }) - ) - ) - ); - } - }]); - - return ChartFacet; -}(_react.Component), _class.displayName = 'ChartFacet', _class.propTypes = {}, _class.defaultProps = {}, _temp); -exports.default = ChartFacet; - - -var styles = { - title: { - margin: '0 0 40px', - fontSize: '18px', - paddingBottom: '15px', - fontWeight: 'bold', - borderBottom: '1px solid #eee' - } -}; -module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/ChartFacet/lib/index.js b/templates/ice-design/blocks/ChartFacet/lib/index.js deleted file mode 100644 index 754d7f90a1..0000000000 --- a/templates/ice-design/blocks/ChartFacet/lib/index.js +++ /dev/null @@ -1,14 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _ChartFacet = require('./ChartFacet'); - -var _ChartFacet2 = _interopRequireDefault(_ChartFacet); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -exports.default = _ChartFacet2.default; -module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/ChartFacet/src/ChartFacet.scss b/templates/ice-design/blocks/ChartFacet/src/ChartFacet.scss deleted file mode 100644 index 175ddb2d35..0000000000 --- a/templates/ice-design/blocks/ChartFacet/src/ChartFacet.scss +++ /dev/null @@ -1,5 +0,0 @@ -@charset "UTF-8"; - -.chart-facet { - -} diff --git a/templates/ice-design/blocks/ChartFunnel/lib/ChartFunnel.js b/templates/ice-design/blocks/ChartFunnel/lib/ChartFunnel.js deleted file mode 100644 index 91d3c6c431..0000000000 --- a/templates/ice-design/blocks/ChartFunnel/lib/ChartFunnel.js +++ /dev/null @@ -1,162 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = undefined; - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _class, _temp; - -var _react = require('react'); - -var _react2 = _interopRequireDefault(_react); - -var _card = require('@icedesign/card'); - -var _card2 = _interopRequireDefault(_card); - -var _bizcharts = require('bizcharts'); - -var _dataSet = require('@antv/data-set'); - -require('./ChartFunnel.scss'); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -var ChartFunnel = (_temp = _class = function (_Component) { - _inherits(ChartFunnel, _Component); - - function ChartFunnel(props) { - _classCallCheck(this, ChartFunnel); - - var _this = _possibleConstructorReturn(this, (ChartFunnel.__proto__ || Object.getPrototypeOf(ChartFunnel)).call(this, props)); - - _this.state = {}; - return _this; - } - - _createClass(ChartFunnel, [{ - key: 'render', - value: function render() { - // 参考:https://alibaba.github.io/BizCharts/ - var Text = _bizcharts.Guide.Text; - - var data = [{ action: '浏览网站', pv: 50000 }, { action: '放入购物车', pv: 35000 }, { action: '生成订单', pv: 25000 }, { action: '支付订单', pv: 15000 }, { action: '完成交易', pv: 8000 }]; - - var dv = new _dataSet.DataView().source(data); - dv.transform({ - type: 'percent', - field: 'pv', - dimension: 'action', - as: 'percent' - }); - data = dv.rows; - - var cols = { - percent: { - nice: false - } - }; - - return _react2.default.createElement( - 'div', - { className: 'chart-funnel' }, - _react2.default.createElement( - _card2.default, - null, - _react2.default.createElement( - 'h4', - { style: styles.title }, - '\u6F0F\u6597\u56FE' - ), - _react2.default.createElement( - _bizcharts.Chart, - { - height: 400, - data: data, - scale: cols, - padding: [20, 120, 95], - forceFit: true - }, - _react2.default.createElement(_bizcharts.Tooltip, { - showTitle: false, - itemTpl: '
  • {name}
    \u6D4F\u89C8\u4EBA\u6570\uFF1A{pv}
    \u5360\u6BD4\uFF1A{percent}
  • ' - }), - _react2.default.createElement(_bizcharts.Coord, { type: 'rect', transpose: true, scale: [1, -1] }), - _react2.default.createElement(_bizcharts.Legend, null), - data.map(function (obj, index) { - return _react2.default.createElement( - _bizcharts.Guide, - { key: index }, - _react2.default.createElement(Text, { - top: true, - position: { - action: obj.action, - percent: 'median' - }, - content: parseInt(obj.percent * 100, 10) + '%', - style: { - fill: '#fff', - fontSize: '12', - textAlign: 'center', - shadowBlur: 2, - shadowColor: 'rgba(0, 0, 0, .45)' - } - }) - ); - }), - _react2.default.createElement( - _bizcharts.Geom, - { - type: 'intervalSymmetric', - position: 'action*percent', - shape: 'funnel', - color: ['action', ['#0050B3', '#1890FF', '#40A9FF', '#69C0FF', '#BAE7FF']], - tooltip: ['action*pv*percent', function (action, pv, percent) { - return { - name: action, - percent: parseInt(percent * 100, 10) + '%', - pv: pv - }; - }] - }, - _react2.default.createElement(_bizcharts.Label, { - content: ['action*pv', function (action, pv) { - return action + ' ' + pv; - }], - offset: 35, - labeLine: { - lineWidth: 1, - stroke: 'rgba(0, 0, 0, 0.15)' - } - }) - ) - ) - ) - ); - } - }]); - - return ChartFunnel; -}(_react.Component), _class.displayName = 'ChartFunnel', _class.propTypes = {}, _class.defaultProps = {}, _temp); -exports.default = ChartFunnel; - - -var styles = { - title: { - margin: '0 0 40px', - fontSize: '18px', - paddingBottom: '15px', - fontWeight: 'bold', - borderBottom: '1px solid #eee' - } -}; -module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/ChartFunnel/lib/index.js b/templates/ice-design/blocks/ChartFunnel/lib/index.js deleted file mode 100644 index bf47a90234..0000000000 --- a/templates/ice-design/blocks/ChartFunnel/lib/index.js +++ /dev/null @@ -1,14 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _ChartFunnel = require('./ChartFunnel'); - -var _ChartFunnel2 = _interopRequireDefault(_ChartFunnel); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -exports.default = _ChartFunnel2.default; -module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/ChartFunnel/src/ChartFunnel.scss b/templates/ice-design/blocks/ChartFunnel/src/ChartFunnel.scss deleted file mode 100644 index 0845cf925c..0000000000 --- a/templates/ice-design/blocks/ChartFunnel/src/ChartFunnel.scss +++ /dev/null @@ -1,5 +0,0 @@ -@charset "UTF-8"; - -.chart-funnel { - -} diff --git a/templates/ice-design/blocks/ChartGauge/lib/ChartGauge.js b/templates/ice-design/blocks/ChartGauge/lib/ChartGauge.js deleted file mode 100644 index 6d7751afdd..0000000000 --- a/templates/ice-design/blocks/ChartGauge/lib/ChartGauge.js +++ /dev/null @@ -1,232 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = undefined; - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _class, _temp; /* eslint no-mixed-operators: 0 */ - - -var _react = require('react'); - -var _react2 = _interopRequireDefault(_react); - -var _card = require('@icedesign/card'); - -var _card2 = _interopRequireDefault(_card); - -var _bizcharts = require('bizcharts'); - -require('./ChartGauge.scss'); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -var ChartGauge = (_temp = _class = function (_Component) { - _inherits(ChartGauge, _Component); - - function ChartGauge(props) { - _classCallCheck(this, ChartGauge); - - var _this = _possibleConstructorReturn(this, (ChartGauge.__proto__ || Object.getPrototypeOf(ChartGauge)).call(this, props)); - - _this.state = {}; - return _this; - } - - _createClass(ChartGauge, [{ - key: 'render', - value: function render() { - // 参考:https://alibaba.github.io/BizCharts/ - var Arc = _bizcharts.Guide.Arc, - Html = _bizcharts.Guide.Html, - Line = _bizcharts.Guide.Line; - // 自定义Shape 部分 - - _bizcharts.Shape.registerShape('point', 'pointer', { - drawShape: function drawShape(cfg, group) { - var point = cfg.points[0]; // 获取第一个标记点 - point = this.parsePoint(point); - var center = this.parsePoint({ - // 获取极坐标系下画布中心点 - x: 0, - y: 0 - }); - // 绘制指针 - group.addShape('line', { - attrs: { - x1: center.x, - y1: center.y, - x2: point.x, - y2: point.y - 20, - stroke: cfg.color, - lineWidth: 5, - lineCap: 'round' - } - }); - return group.addShape('circle', { - attrs: { - x: center.x, - y: center.y, - r: 12, - stroke: cfg.color, - lineWidth: 4.5, - fill: '#fff' - } - }); - } - }); - - var data = [{ value: 6 }]; - var cols = { - value: { - min: 0, - max: 9, - ticks: [2.25, 3.75, 5.25, 6.75], - nice: false - } - }; - return _react2.default.createElement( - 'div', - { className: 'chart-gauge' }, - _react2.default.createElement( - _card2.default, - null, - _react2.default.createElement( - 'h4', - { style: styles.title }, - '\u4EEA\u8868\u56FE' - ), - _react2.default.createElement( - _bizcharts.Chart, - { - height: 400, - data: data, - scale: cols, - padding: [0, 0, 200, 0], - forceFit: true - }, - _react2.default.createElement(_bizcharts.Coord, { - type: 'polar', - startAngle: -9 / 8 * Math.PI, - endAngle: 1 / 8 * Math.PI, - radius: 0.75 - }), - _react2.default.createElement(_bizcharts.Axis, { - name: 'value', - zIndex: 2, - label: { - offset: -20, - formatter: function formatter(val) { - if (val === '2.25') { - return '差'; - } else if (val === '3.75') { - return '中'; - } else if (val === '5.25') { - return '良'; - } - - return '优'; - }, - textStyle: { - fontSize: 24, - fill: 'rgba(0, 0, 0, 0.65)', - textAlign: 'center' - } - } - }), - _react2.default.createElement( - _bizcharts.Guide, - null, - _react2.default.createElement(Line, { - start: [3, 0.905], - end: [3.0035, 0.85], - lineStyle: { - stroke: '#19AFFA', // 线的颜色 - lineDash: null, // 虚线的设置 - lineWidth: 3 - } - }), - _react2.default.createElement(Line, { - start: [4.5, 0.905], - end: [4.5, 0.85], - lineStyle: { - stroke: '#19AFFA', // 线的颜色 - lineDash: null, // 虚线的设置 - lineWidth: 3 - } - }), - _react2.default.createElement(Line, { - start: [6, 0.905], - end: [6.0035, 0.85], - lineStyle: { - stroke: '#19AFFA', // 线的颜色 - lineDash: null, // 虚线的设置 - lineWidth: 3 - } - }), - _react2.default.createElement(Arc, { - zIndex: 0, - start: [0, 0.965], - end: [9, 0.965], - style: { - // 底灰色 - stroke: '#000', - lineWidth: 18, - opacity: 0.09 - } - }), - _react2.default.createElement(Arc, { - zIndex: 1, - start: [0, 0.965], - end: [data[0].value, 0.965], - style: { - // 底灰色 - stroke: '#1890FF', - lineWidth: 18 - } - }), - _react2.default.createElement(Html, { - position: ['50%', '95%'], - html: function html() { - return '

    \u5408\u683C\u7387

    ' + data[0].value * 10 + '%

    '; - } - }) - ), - _react2.default.createElement(_bizcharts.Geom, { - type: 'point', - position: 'value*1', - shape: 'pointer', - color: '#1890FF', - active: false, - style: { stroke: '#fff', lineWidth: 1 } - }) - ) - ) - ); - } - }]); - - return ChartGauge; -}(_react.Component), _class.displayName = 'ChartGauge', _class.propTypes = {}, _class.defaultProps = {}, _temp); -exports.default = ChartGauge; - - -var styles = { - title: { - margin: '0 0 40px', - fontSize: '18px', - paddingBottom: '15px', - fontWeight: 'bold', - borderBottom: '1px solid #eee' - } -}; -module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/ChartGauge/lib/index.js b/templates/ice-design/blocks/ChartGauge/lib/index.js deleted file mode 100644 index 94637e1ff8..0000000000 --- a/templates/ice-design/blocks/ChartGauge/lib/index.js +++ /dev/null @@ -1,14 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _ChartGauge = require('./ChartGauge'); - -var _ChartGauge2 = _interopRequireDefault(_ChartGauge); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -exports.default = _ChartGauge2.default; -module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/ChartGauge/src/ChartGauge.scss b/templates/ice-design/blocks/ChartGauge/src/ChartGauge.scss deleted file mode 100644 index 89b380e399..0000000000 --- a/templates/ice-design/blocks/ChartGauge/src/ChartGauge.scss +++ /dev/null @@ -1,5 +0,0 @@ -@charset "UTF-8"; - -.chart-gauge { - -} diff --git a/templates/ice-design/blocks/ChartHeatMap/lib/ChartHeatMap.js b/templates/ice-design/blocks/ChartHeatMap/lib/ChartHeatMap.js deleted file mode 100644 index 3abaf77bed..0000000000 --- a/templates/ice-design/blocks/ChartHeatMap/lib/ChartHeatMap.js +++ /dev/null @@ -1,155 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = undefined; - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _class, _temp; /* eslint no-plusplus: 0 */ - - -var _react = require('react'); - -var _react2 = _interopRequireDefault(_react); - -var _card = require('@icedesign/card'); - -var _card2 = _interopRequireDefault(_card); - -var _bizcharts = require('bizcharts'); - -require('./ChartHeatMap.scss'); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -var ChartHeatMap = (_temp = _class = function (_Component) { - _inherits(ChartHeatMap, _Component); - - function ChartHeatMap(props) { - _classCallCheck(this, ChartHeatMap); - - var _this = _possibleConstructorReturn(this, (ChartHeatMap.__proto__ || Object.getPrototypeOf(ChartHeatMap)).call(this, props)); - - _this.state = {}; - return _this; - } - - _createClass(ChartHeatMap, [{ - key: 'render', - value: function render() { - // 参考:https://alibaba.github.io/BizCharts/ - var data = [[0, 0, 10], [0, 1, 19], [0, 2, 8], [0, 3, 24], [0, 4, 67], [1, 0, 92], [1, 1, 58], [1, 2, 78], [1, 3, 117], [1, 4, 48], [2, 0, 35], [2, 1, 15], [2, 2, 123], [2, 3, 64], [2, 4, 52], [3, 0, 72], [3, 1, 132], [3, 2, 114], [3, 3, 19], [3, 4, 16], [4, 0, 38], [4, 1, 5], [4, 2, 8], [4, 3, 117], [4, 4, 115], [5, 0, 88], [5, 1, 32], [5, 2, 12], [5, 3, 6], [5, 4, 120], [6, 0, 13], [6, 1, 44], [6, 2, 88], [6, 3, 98], [6, 4, 96], [7, 0, 31], [7, 1, 1], [7, 2, 82], [7, 3, 32], [7, 4, 30], [8, 0, 85], [8, 1, 97], [8, 2, 123], [8, 3, 64], [8, 4, 84], [9, 0, 47], [9, 1, 114], [9, 2, 31], [9, 3, 48], [9, 4, 91]]; - - var source = []; - for (var i = 0; i < data.length; i++) { - var item = data[i]; - var obj = {}; - obj.name = item[0]; - obj.day = item[1]; - obj.sales = item[2]; - source.push(obj); - } - - var cols = { - name: { - type: 'cat', - values: ['Alexander', 'Marie', 'Maximilian', 'Sophia', 'Lukas', 'Maria', 'Leon', 'Anna', 'Tim', 'Laura'] - }, - day: { - type: 'cat', - values: ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday'] - } - }; - - return _react2.default.createElement( - 'div', - { className: 'chart-heat-map' }, - _react2.default.createElement( - _card2.default, - null, - _react2.default.createElement( - 'h4', - { style: styles.title }, - '\u8272\u5757\u56FE' - ), - _react2.default.createElement( - _bizcharts.Chart, - { - height: 500, - data: source, - scale: cols, - padding: [20, 80, 120, 85], - forceFit: true - }, - _react2.default.createElement(_bizcharts.Axis, { - name: 'name', - grid: { - align: 'center', - lineStyle: { - lineWidth: 1, - lineDash: null, - stroke: '#f0f0f0' - }, - showFirstLine: true - } - }), - _react2.default.createElement(_bizcharts.Axis, { - name: 'day', - grid: { - align: 'center', - lineStyle: { - lineWidth: 1, - lineDash: null, - stroke: '#f0f0f0' - } - } - }), - _react2.default.createElement(_bizcharts.Tooltip, null), - _react2.default.createElement( - _bizcharts.Geom, - { - type: 'polygon', - position: 'name*day', - color: ['sales', '#BAE7FF-#1890FF-#0050B3'], - style: { stroke: '#fff', lineWidth: 1 } - }, - _react2.default.createElement(_bizcharts.Label, { - content: 'sales', - offset: -2, - textStyle: { - fill: '#fff', - fontWeight: 'bold', - shadowBlur: 2, - shadowColor: 'rgba(0, 0, 0, .45)' - } - }) - ) - ) - ) - ); - } - }]); - - return ChartHeatMap; -}(_react.Component), _class.displayName = 'ChartHeatMap', _class.propTypes = {}, _class.defaultProps = {}, _temp); -exports.default = ChartHeatMap; - - -var styles = { - title: { - margin: '0 0 40px', - fontSize: '18px', - paddingBottom: '15px', - fontWeight: 'bold', - borderBottom: '1px solid #eee' - } -}; -module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/ChartHeatMap/lib/index.js b/templates/ice-design/blocks/ChartHeatMap/lib/index.js deleted file mode 100644 index 4826620419..0000000000 --- a/templates/ice-design/blocks/ChartHeatMap/lib/index.js +++ /dev/null @@ -1,14 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _ChartHeatMap = require('./ChartHeatMap'); - -var _ChartHeatMap2 = _interopRequireDefault(_ChartHeatMap); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -exports.default = _ChartHeatMap2.default; -module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/ChartHeatMap/src/ChartHeatMap.scss b/templates/ice-design/blocks/ChartHeatMap/src/ChartHeatMap.scss deleted file mode 100644 index de0d2473c1..0000000000 --- a/templates/ice-design/blocks/ChartHeatMap/src/ChartHeatMap.scss +++ /dev/null @@ -1,5 +0,0 @@ -@charset "UTF-8"; - -.chart-heat-map { - -} diff --git a/templates/ice-design/blocks/ChartPie/lib/ChartPie.js b/templates/ice-design/blocks/ChartPie/lib/ChartPie.js deleted file mode 100644 index 77838111bb..0000000000 --- a/templates/ice-design/blocks/ChartPie/lib/ChartPie.js +++ /dev/null @@ -1,138 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = undefined; - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _class, _temp; - -var _react = require('react'); - -var _react2 = _interopRequireDefault(_react); - -var _bizcharts = require('bizcharts'); - -var _dataSet = require('@antv/data-set'); - -var _card = require('@icedesign/card'); - -var _card2 = _interopRequireDefault(_card); - -require('./ChartPie.scss'); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -var ChartPie = (_temp = _class = function (_Component) { - _inherits(ChartPie, _Component); - - function ChartPie(props) { - _classCallCheck(this, ChartPie); - - var _this = _possibleConstructorReturn(this, (ChartPie.__proto__ || Object.getPrototypeOf(ChartPie)).call(this, props)); - - _this.state = {}; - return _this; - } - - _createClass(ChartPie, [{ - key: 'render', - value: function render() { - // 参考:https://alibaba.github.io/BizCharts/ - var data = [{ item: '事例一', count: 40 }, { item: '事例二', count: 21 }, { item: '事例三', count: 17 }, { item: '事例四', count: 13 }, { item: '事例五', count: 9 }]; - - var dv = new _dataSet.DataView(); - dv.source(data).transform({ - type: 'percent', - field: 'count', - dimension: 'item', - as: 'percent' - }); - - var cols = { - percent: { - formatter: function formatter(val) { - val = val * 100 + '%'; - return val; - } - } - }; - - return _react2.default.createElement( - 'div', - { className: 'chart-pie' }, - _react2.default.createElement( - _card2.default, - null, - _react2.default.createElement( - 'h4', - { style: styles.title }, - '\u997C\u56FE' - ), - _react2.default.createElement( - _bizcharts.Chart, - { - height: 400, - data: dv, - scale: cols, - padding: [80, 100, 80, 80], - forceFit: true - }, - _react2.default.createElement(_bizcharts.Coord, { type: 'theta', radius: 0.75 }), - _react2.default.createElement(_bizcharts.Axis, { name: 'percent' }), - _react2.default.createElement(_bizcharts.Legend, { position: 'right', offsetY: -100, offsetX: -100 }), - _react2.default.createElement(_bizcharts.Tooltip, { - showTitle: false, - itemTpl: '
  • {name}: {value}
  • ' - }), - _react2.default.createElement( - _bizcharts.Geom, - { - type: 'intervalStack', - position: 'percent', - color: 'item', - tooltip: ['item*percent', function (item, percent) { - percent = percent * 100 + '%'; - return { - name: item, - value: percent - }; - }], - style: { lineWidth: 1, stroke: '#fff' } - }, - _react2.default.createElement(_bizcharts.Label, { - content: 'percent', - formatter: function formatter(val, item) { - return item.point.item + ': ' + val; - } - }) - ) - ) - ) - ); - } - }]); - - return ChartPie; -}(_react.Component), _class.displayName = 'ChartPie', _class.propTypes = {}, _class.defaultProps = {}, _temp); -exports.default = ChartPie; - - -var styles = { - title: { - margin: '0 0 40px', - fontSize: '18px', - paddingBottom: '15px', - fontWeight: 'bold', - borderBottom: '1px solid #eee' - } -}; -module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/ChartPie/lib/index.js b/templates/ice-design/blocks/ChartPie/lib/index.js deleted file mode 100644 index 2389cdd52e..0000000000 --- a/templates/ice-design/blocks/ChartPie/lib/index.js +++ /dev/null @@ -1,14 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _ChartPie = require('./ChartPie'); - -var _ChartPie2 = _interopRequireDefault(_ChartPie); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -exports.default = _ChartPie2.default; -module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/ChartPie/src/ChartPie.scss b/templates/ice-design/blocks/ChartPie/src/ChartPie.scss deleted file mode 100644 index 101a0bac24..0000000000 --- a/templates/ice-design/blocks/ChartPie/src/ChartPie.scss +++ /dev/null @@ -1,5 +0,0 @@ -@charset "UTF-8"; - -.chart-pie { - -} diff --git a/templates/ice-design/blocks/ChartPoint/lib/ChartPoint.js b/templates/ice-design/blocks/ChartPoint/lib/ChartPoint.js deleted file mode 100644 index 2acfb17f46..0000000000 --- a/templates/ice-design/blocks/ChartPoint/lib/ChartPoint.js +++ /dev/null @@ -1,121 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = undefined; - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _class, _temp; - -var _react = require('react'); - -var _react2 = _interopRequireDefault(_react); - -var _axios = require('axios'); - -var _axios2 = _interopRequireDefault(_axios); - -var _card = require('@icedesign/card'); - -var _card2 = _interopRequireDefault(_card); - -var _bizcharts = require('bizcharts'); - -require('./ChartPoint.scss'); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -var ChartPoint = (_temp = _class = function (_Component) { - _inherits(ChartPoint, _Component); - - function ChartPoint(props) { - _classCallCheck(this, ChartPoint); - - var _this = _possibleConstructorReturn(this, (ChartPoint.__proto__ || Object.getPrototypeOf(ChartPoint)).call(this, props)); - - _this.state = { - data: [] - }; - return _this; - } - - _createClass(ChartPoint, [{ - key: 'componentDidMount', - value: function componentDidMount() { - var _this2 = this; - - _axios2.default.get('/mock/chart-point.json').then(function (response) { - console.log(response.data.data); - _this2.setState({ - data: response.data.data - }); - }).catch(function (error) { - console.log(error); - }); - } - }, { - key: 'render', - value: function render() { - return _react2.default.createElement( - 'div', - { className: 'chart-point' }, - _react2.default.createElement( - _card2.default, - null, - _react2.default.createElement( - 'h4', - { style: styles.title }, - '\u70B9\u56FE' - ), - _react2.default.createElement( - _bizcharts.Chart, - { height: 400, data: this.state.data, forceFit: true }, - _react2.default.createElement(_bizcharts.Tooltip, { - showTitle: false, - crosshairs: { type: 'cross' }, - itemTpl: '
  • {name}
    {value}
  • ' - }), - _react2.default.createElement(_bizcharts.Axis, { name: 'height' }), - _react2.default.createElement(_bizcharts.Axis, { name: 'weight' }), - _react2.default.createElement(_bizcharts.Geom, { - type: 'point', - position: 'height*weight', - opacity: 0.65, - shape: 'circle', - size: 4, - tooltip: ['gender*height*weight', function (gender, height, weight) { - return { - name: gender, - value: height + '(cm), ' + weight + '(kg)' - }; - }] - }) - ) - ) - ); - } - }]); - - return ChartPoint; -}(_react.Component), _class.displayName = 'ChartPoint', _class.propTypes = {}, _class.defaultProps = {}, _temp); -exports.default = ChartPoint; - - -var styles = { - title: { - margin: '0 0 40px', - fontSize: '18px', - paddingBottom: '15px', - fontWeight: 'bold', - borderBottom: '1px solid #eee' - } -}; -module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/ChartPoint/lib/index.js b/templates/ice-design/blocks/ChartPoint/lib/index.js deleted file mode 100644 index 902f379899..0000000000 --- a/templates/ice-design/blocks/ChartPoint/lib/index.js +++ /dev/null @@ -1,14 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _ChartPoint = require('./ChartPoint'); - -var _ChartPoint2 = _interopRequireDefault(_ChartPoint); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -exports.default = _ChartPoint2.default; -module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/ChartPoint/src/ChartPoint.scss b/templates/ice-design/blocks/ChartPoint/src/ChartPoint.scss deleted file mode 100644 index 59162ff3b3..0000000000 --- a/templates/ice-design/blocks/ChartPoint/src/ChartPoint.scss +++ /dev/null @@ -1,5 +0,0 @@ -@charset "UTF-8"; - -.chart-point { - -} diff --git a/templates/ice-design/blocks/ChartRadar/lib/ChartRadar.js b/templates/ice-design/blocks/ChartRadar/lib/ChartRadar.js deleted file mode 100644 index 2c77d3445f..0000000000 --- a/templates/ice-design/blocks/ChartRadar/lib/ChartRadar.js +++ /dev/null @@ -1,147 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = undefined; - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _class, _temp; - -var _react = require('react'); - -var _react2 = _interopRequireDefault(_react); - -var _card = require('@icedesign/card'); - -var _card2 = _interopRequireDefault(_card); - -var _bizcharts = require('bizcharts'); - -var _dataSet = require('@antv/data-set'); - -require('./ChartRadar.scss'); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -var ChartRadar = (_temp = _class = function (_Component) { - _inherits(ChartRadar, _Component); - - function ChartRadar(props) { - _classCallCheck(this, ChartRadar); - - var _this = _possibleConstructorReturn(this, (ChartRadar.__proto__ || Object.getPrototypeOf(ChartRadar)).call(this, props)); - - _this.state = {}; - return _this; - } - - _createClass(ChartRadar, [{ - key: 'render', - value: function render() { - // 参考:https://alibaba.github.io/BizCharts/ - var data = [{ item: 'Design', a: 70, b: 30 }, { item: 'Development', a: 60, b: 70 }, { item: 'Marketing', a: 50, b: 60 }, { item: 'Users', a: 40, b: 50 }, { item: 'Test', a: 60, b: 70 }, { item: 'Language', a: 70, b: 50 }, { item: 'Technology', a: 50, b: 40 }, { item: 'Support', a: 30, b: 40 }, { item: 'Sales', a: 60, b: 40 }, { item: 'UX', a: 50, b: 60 }]; - - var dv = new _dataSet.DataView().source(data); - dv.transform({ - type: 'fold', - fields: ['a', 'b'], // 展开字段集 - key: 'user', // key字段 - value: 'score' // value字段 - }); - - var cols = { - score: { - min: 0, - max: 80 - } - }; - - return _react2.default.createElement( - 'div', - { className: 'chart-radar' }, - _react2.default.createElement( - _card2.default, - null, - _react2.default.createElement( - 'h4', - { style: styles.title }, - '\u96F7\u8FBE\u56FE' - ), - _react2.default.createElement( - _bizcharts.Chart, - { - height: 400, - data: dv, - padding: [20, 20, 95, 20], - scale: cols, - forceFit: true - }, - _react2.default.createElement(_bizcharts.Coord, { type: 'polar', radius: 0.8 }), - _react2.default.createElement(_bizcharts.Axis, { - name: 'item', - line: null, - tickLine: null, - grid: { - lineStyle: { - lineDash: null - }, - hideFirstLine: false - } - }), - _react2.default.createElement(_bizcharts.Tooltip, null), - _react2.default.createElement(_bizcharts.Axis, { - name: 'score', - line: null, - tickLine: null, - grid: { - type: 'polygon', - lineStyle: { - lineDash: null - }, - alternateColor: 'rgba(0, 0, 0, 0.04)' - } - }), - _react2.default.createElement(_bizcharts.Legend, { name: 'user', marker: 'circle', offset: 30 }), - _react2.default.createElement(_bizcharts.Geom, { type: 'area', position: 'item*score', color: 'user' }), - _react2.default.createElement(_bizcharts.Geom, { type: 'line', position: 'item*score', color: 'user', size: 2 }), - _react2.default.createElement(_bizcharts.Geom, { - type: 'point', - position: 'item*score', - color: 'user', - shape: 'circle', - size: 4, - style: { - stroke: '#fff', - lineWidth: 1, - fillOpacity: 1 - } - }) - ) - ) - ); - } - }]); - - return ChartRadar; -}(_react.Component), _class.displayName = 'ChartRadar', _class.propTypes = {}, _class.defaultProps = {}, _temp); -exports.default = ChartRadar; - - -var styles = { - title: { - margin: '0 0 40px', - fontSize: '18px', - paddingBottom: '15px', - fontWeight: 'bold', - borderBottom: '1px solid #eee' - } -}; -module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/ChartRadar/lib/index.js b/templates/ice-design/blocks/ChartRadar/lib/index.js deleted file mode 100644 index 5f39ab10d3..0000000000 --- a/templates/ice-design/blocks/ChartRadar/lib/index.js +++ /dev/null @@ -1,14 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _ChartRadar = require('./ChartRadar'); - -var _ChartRadar2 = _interopRequireDefault(_ChartRadar); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -exports.default = _ChartRadar2.default; -module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/ChartRadar/src/ChartRadar.scss b/templates/ice-design/blocks/ChartRadar/src/ChartRadar.scss deleted file mode 100644 index b1a5967961..0000000000 --- a/templates/ice-design/blocks/ChartRadar/src/ChartRadar.scss +++ /dev/null @@ -1,5 +0,0 @@ -@charset "UTF-8"; - -.chart-radar { - -} diff --git a/templates/ice-design/blocks/ChartRelation/lib/ChartRelation.js b/templates/ice-design/blocks/ChartRelation/lib/ChartRelation.js deleted file mode 100644 index b4de111489..0000000000 --- a/templates/ice-design/blocks/ChartRelation/lib/ChartRelation.js +++ /dev/null @@ -1,136 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = undefined; - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _class, _temp; - -var _react = require('react'); - -var _react2 = _interopRequireDefault(_react); - -var _card = require('@icedesign/card'); - -var _card2 = _interopRequireDefault(_card); - -var _bizcharts = require('bizcharts'); - -var _dataSet = require('@antv/data-set'); - -require('./ChartRelation.scss'); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -var ChartRelation = (_temp = _class = function (_Component) { - _inherits(ChartRelation, _Component); - - function ChartRelation(props) { - _classCallCheck(this, ChartRelation); - - var _this = _possibleConstructorReturn(this, (ChartRelation.__proto__ || Object.getPrototypeOf(ChartRelation)).call(this, props)); - - _this.state = {}; - return _this; - } - - _createClass(ChartRelation, [{ - key: 'render', - value: function render() { - // 参考:https://alibaba.github.io/BizCharts/ - var data = { - name: 'root', - children: [{ name: '分类 1', value: 560 }, { name: '分类 2', value: 500 }, { name: '分类 3', value: 150 }, { name: '分类 4', value: 140 }, { name: '分类 5', value: 115 }, { name: '分类 6', value: 95 }, { name: '分类 7', value: 90 }, { name: '分类 8', value: 75 }, { name: '分类 9', value: 98 }, { name: '分类 10', value: 60 }, { name: '分类 11', value: 45 }, { name: '分类 12', value: 40 }, { name: '分类 13', value: 40 }, { name: '分类 14', value: 35 }, { name: '分类 15', value: 40 }, { name: '分类 16', value: 40 }, { name: '分类 17', value: 40 }, { name: '分类 18', value: 30 }, { name: '分类 19', value: 28 }, { name: '分类 20', value: 16 }] - }; - - var dv = new _dataSet.DataView(); - dv.source(data, { - type: 'hierarchy' - }).transform({ - field: 'value', - type: 'hierarchy.treemap', - tile: 'treemapResquarify', - as: ['x', 'y'] - }); - var nodes = dv.getAllNodes(); - nodes.map(function (node) { - node.name = node.data.name; - node.value = node.data.value; - return node; - }); - - var scale = { - value: { nice: false } - }; - - var htmlStr = '
  • ' + '' + '{name}
    ' + '浏览人数:{count}
    ' + '
  • '; - return _react2.default.createElement( - 'div', - { className: 'chart-relation' }, - _react2.default.createElement( - _card2.default, - null, - _react2.default.createElement( - 'h4', - { style: styles.title }, - '\u9762\u79EF\u56FE' - ), - _react2.default.createElement( - _bizcharts.Chart, - { data: nodes, forceFit: true, height: 400, scale: scale }, - _react2.default.createElement(_bizcharts.Tooltip, { showTitle: false, itemTpl: htmlStr }), - _react2.default.createElement( - _bizcharts.Geom, - { - type: 'polygon', - position: 'x*y', - color: 'name', - tooltip: ['name*value', function (name, count) { - return { - name: name, - count: count - }; - }], - style: { lineWidth: 1, stroke: '#fff' } - }, - _react2.default.createElement(_bizcharts.Label, { - content: 'name', - offset: 0, - textStyle: { textBaseline: 'middle' }, - formatter: function formatter(val) { - if (val !== 'root') { - return val; - } - } - }) - ) - ) - ) - ); - } - }]); - - return ChartRelation; -}(_react.Component), _class.displayName = 'ChartRelation', _class.propTypes = {}, _class.defaultProps = {}, _temp); -exports.default = ChartRelation; - - -var styles = { - title: { - margin: '0 0 40px', - fontSize: '18px', - paddingBottom: '15px', - fontWeight: 'bold', - borderBottom: '1px solid #eee' - } -}; -module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/ChartRelation/lib/index.js b/templates/ice-design/blocks/ChartRelation/lib/index.js deleted file mode 100644 index 5cc6dbcbeb..0000000000 --- a/templates/ice-design/blocks/ChartRelation/lib/index.js +++ /dev/null @@ -1,14 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _ChartRelation = require('./ChartRelation'); - -var _ChartRelation2 = _interopRequireDefault(_ChartRelation); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -exports.default = _ChartRelation2.default; -module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/ChartRelation/src/ChartRelation.scss b/templates/ice-design/blocks/ChartRelation/src/ChartRelation.scss deleted file mode 100644 index ea07891e29..0000000000 --- a/templates/ice-design/blocks/ChartRelation/src/ChartRelation.scss +++ /dev/null @@ -1,5 +0,0 @@ -@charset "UTF-8"; - -.chart-relation { - -} diff --git a/templates/ice-design/blocks/ChartStock/lib/ChartStock.js b/templates/ice-design/blocks/ChartStock/lib/ChartStock.js deleted file mode 100644 index 6812eca6b2..0000000000 --- a/templates/ice-design/blocks/ChartStock/lib/ChartStock.js +++ /dev/null @@ -1,162 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = undefined; - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _class, _temp; - -var _react = require('react'); - -var _react2 = _interopRequireDefault(_react); - -var _axios = require('axios'); - -var _axios2 = _interopRequireDefault(_axios); - -var _bizcharts = require('bizcharts'); - -var _dataSet = require('@antv/data-set'); - -var _card = require('@icedesign/card'); - -var _card2 = _interopRequireDefault(_card); - -require('./ChartStock.scss'); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -var ChartStock = (_temp = _class = function (_Component) { - _inherits(ChartStock, _Component); - - function ChartStock(props) { - _classCallCheck(this, ChartStock); - - var _this = _possibleConstructorReturn(this, (ChartStock.__proto__ || Object.getPrototypeOf(ChartStock)).call(this, props)); - - _this.state = { - data: [] - }; - return _this; - } - - _createClass(ChartStock, [{ - key: 'componentDidMount', - value: function componentDidMount() { - var _this2 = this; - - _axios2.default.get('/mock/chart-stock.json').then(function (response) { - console.log(response); - _this2.setState({ - data: response.data && response.data.data - }); - }).catch(function (error) { - console.log(error); - }); - } - }, { - key: 'render', - value: function render() { - // 参考:https://alibaba.github.io/BizCharts/ - var cols = { - date: { - type: 'time', - nice: false, - mask: 'MM-DD', - tickCount: 10 - }, - range: { - min: 20, - max: 35, - nice: false, - tickInterval: 2 - }, - mean: { - min: 20, - max: 35, - nice: false - }, - stockRange: { - min: 20, - max: 35, - nice: false - } - }; - - var dv = new _dataSet.DataView(); - dv.source(this.state.data).transform({ - type: 'map', - callback: function callback(obj) { - obj.stockRange = [obj.start, obj.end, obj.highest, obj.lowest]; - return obj; - } - }); - - return _react2.default.createElement( - 'div', - { className: 'chart-stock' }, - _react2.default.createElement( - _card2.default, - null, - _react2.default.createElement( - 'h4', - { style: styles.title }, - '\u9762\u79EF\u56FE' - ), - _react2.default.createElement( - _bizcharts.Chart, - { height: 400, data: dv, scale: cols, forceFit: true }, - _react2.default.createElement(_bizcharts.Axis, { name: 'mean', visible: false }), - _react2.default.createElement(_bizcharts.Legend, null), - _react2.default.createElement(_bizcharts.Axis, { name: 'stockRange', visible: false }), - _react2.default.createElement(_bizcharts.Tooltip, { - showTitle: false, - itemTpl: '
  • {name}
    \u5F00\u76D8\u4EF7\uFF1A{start}
    \u6536\u76D8\u4EF7\uFF1A{end}
    \u6700\u9AD8\u4EF7\uFF1A{max}
    \u6700\u4F4E\u4EF7\uFF1A{min}
    \u6210\u4EA4\u91CF\uFF1A{volumn}
  • ' - }), - _react2.default.createElement(_bizcharts.Geom, { type: 'area', position: 'date*range', color: '#64b5f6' }), - _react2.default.createElement(_bizcharts.Geom, { - type: 'schema', - position: 'date*stockRange', - color: ['trend', function (val) { - if (val === 'up') { - return '#f04864'; - } - - if (val === 'down') { - return '#2fc25b'; - } - }], - tooltip: 'start*end*highest*lowest', - shape: 'candle' - }), - _react2.default.createElement(_bizcharts.Geom, { type: 'line', position: 'date*mean', color: '#FACC14' }) - ) - ) - ); - } - }]); - - return ChartStock; -}(_react.Component), _class.displayName = 'ChartStock', _class.propTypes = {}, _class.defaultProps = {}, _temp); -exports.default = ChartStock; - - -var styles = { - title: { - margin: '0 0 40px', - fontSize: '18px', - paddingBottom: '15px', - fontWeight: 'bold', - borderBottom: '1px solid #eee' - } -}; -module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/ChartStock/lib/index.js b/templates/ice-design/blocks/ChartStock/lib/index.js deleted file mode 100644 index 5709c64aae..0000000000 --- a/templates/ice-design/blocks/ChartStock/lib/index.js +++ /dev/null @@ -1,14 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _ChartStock = require('./ChartStock'); - -var _ChartStock2 = _interopRequireDefault(_ChartStock); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -exports.default = _ChartStock2.default; -module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/ChartStock/src/ChartStock.scss b/templates/ice-design/blocks/ChartStock/src/ChartStock.scss deleted file mode 100644 index e9421a5eb9..0000000000 --- a/templates/ice-design/blocks/ChartStock/src/ChartStock.scss +++ /dev/null @@ -1,5 +0,0 @@ -@charset "UTF-8"; - -.chart-stock { - -} diff --git a/templates/ice-design/blocks/ChartTypeLine/lib/ChartTypeLine.js b/templates/ice-design/blocks/ChartTypeLine/lib/ChartTypeLine.js deleted file mode 100644 index 79d26cc851..0000000000 --- a/templates/ice-design/blocks/ChartTypeLine/lib/ChartTypeLine.js +++ /dev/null @@ -1,124 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = undefined; - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _class, _temp; - -var _react = require('react'); - -var _react2 = _interopRequireDefault(_react); - -var _bizcharts = require('bizcharts'); - -var _dataSet = require('@antv/data-set'); - -var _card = require('@icedesign/card'); - -var _card2 = _interopRequireDefault(_card); - -require('./ChartTypeLine.scss'); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -var ChartTypeLine = (_temp = _class = function (_Component) { - _inherits(ChartTypeLine, _Component); - - function ChartTypeLine(props) { - _classCallCheck(this, ChartTypeLine); - - var _this = _possibleConstructorReturn(this, (ChartTypeLine.__proto__ || Object.getPrototypeOf(ChartTypeLine)).call(this, props)); - - _this.state = {}; - return _this; - } - - _createClass(ChartTypeLine, [{ - key: 'render', - value: function render() { - // 参考:https://alibaba.github.io/BizCharts/ - // 数据源 - var data = [{ month: 'Jan', Tokyo: 7.0, London: 3.9 }, { month: 'Feb', Tokyo: 6.9, London: 4.2 }, { month: 'Mar', Tokyo: 9.5, London: 5.7 }, { month: 'Apr', Tokyo: 14.5, London: 8.5 }, { month: 'May', Tokyo: 18.4, London: 11.9 }, { month: 'Jun', Tokyo: 21.5, London: 15.2 }, { month: 'Jul', Tokyo: 25.2, London: 17.0 }, { month: 'Aug', Tokyo: 26.5, London: 16.6 }, { month: 'Sep', Tokyo: 23.3, London: 14.2 }, { month: 'Oct', Tokyo: 18.3, London: 10.3 }, { month: 'Nov', Tokyo: 13.9, London: 6.6 }, { month: 'Dec', Tokyo: 9.6, London: 4.8 }]; - - // DataSet https://github.com/alibaba/BizCharts/blob/master/doc/tutorial/dataset.md#dataset - var ds = new _dataSet.DataSet(); - var dv = ds.createView().source(data); - dv.transform({ - type: 'fold', - fields: ['Tokyo', 'London'], - key: 'city', - value: 'temperature' - }); - - // 定义度量 - var cols = { - month: { - range: [0, 1] - } - }; - - return _react2.default.createElement( - 'div', - { className: 'chart-type-line' }, - _react2.default.createElement( - _card2.default, - null, - _react2.default.createElement( - 'h4', - { style: styles.title }, - '\u6298\u7EBF\u56FE' - ), - _react2.default.createElement( - _bizcharts.Chart, - { height: 400, data: dv, scale: cols, forceFit: true }, - _react2.default.createElement(_bizcharts.Axis, { name: 'month' }), - _react2.default.createElement(_bizcharts.Axis, { name: 'temperature', label: { formatter: function formatter(val) { - return val + '\xB0C'; - } } }), - _react2.default.createElement(_bizcharts.Tooltip, { crosshairs: { type: 'y' } }), - _react2.default.createElement(_bizcharts.Geom, { - type: 'line', - position: 'month*temperature', - size: 2, - color: 'city', - shape: 'smooth' - }), - _react2.default.createElement(_bizcharts.Geom, { - type: 'point', - position: 'month*temperature', - size: 4, - shape: 'circle', - color: 'city', - style: { stroke: '#fff', lineWidth: 1 } - }) - ) - ) - ); - } - }]); - - return ChartTypeLine; -}(_react.Component), _class.displayName = 'ChartTypeLine', _class.propTypes = {}, _class.defaultProps = {}, _temp); -exports.default = ChartTypeLine; - - -var styles = { - title: { - margin: '0 0 40px', - fontSize: '18px', - paddingBottom: '15px', - fontWeight: 'bold', - borderBottom: '1px solid #eee' - } -}; -module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/ChartTypeLine/lib/index.js b/templates/ice-design/blocks/ChartTypeLine/lib/index.js deleted file mode 100644 index 1401875d81..0000000000 --- a/templates/ice-design/blocks/ChartTypeLine/lib/index.js +++ /dev/null @@ -1,14 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _ChartTypeLine = require('./ChartTypeLine'); - -var _ChartTypeLine2 = _interopRequireDefault(_ChartTypeLine); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -exports.default = _ChartTypeLine2.default; -module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/ChartTypeLine/src/ChartTypeLine.scss b/templates/ice-design/blocks/ChartTypeLine/src/ChartTypeLine.scss deleted file mode 100644 index 9226b8aba3..0000000000 --- a/templates/ice-design/blocks/ChartTypeLine/src/ChartTypeLine.scss +++ /dev/null @@ -1,5 +0,0 @@ -@charset "UTF-8"; - -.chart-type-line { - -} diff --git a/templates/ice-design/blocks/EntryCard/lib/EntryCard.js b/templates/ice-design/blocks/EntryCard/lib/EntryCard.js deleted file mode 100644 index a04976c4c1..0000000000 --- a/templates/ice-design/blocks/EntryCard/lib/EntryCard.js +++ /dev/null @@ -1,125 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = undefined; - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _class, _temp; - -var _react = require('react'); - -var _react2 = _interopRequireDefault(_react); - -var _card = require('@icedesign/card'); - -var _card2 = _interopRequireDefault(_card); - -require('./EntryCard.scss'); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -var list = [{ - title: '帖子', - img: '//gw.alicdn.com/tfscom/TB1OyT.RVXXXXcpXXXXXXXXXXXX.png', - url: '//www.taobao.com' -}, { - title: '宝贝清单', - img: '//img.alicdn.com/tfs/TB1g6cGRFXXXXa9XXXXXXXXXXXX-140-140.png', - url: '//www.taobao.com' -}, { - title: '图片', - img: '//img.alicdn.com/tfs/TB1hJ7dRFXXXXcgXFXXXXXXXXXX-140-140.png', - url: '//www.taobao.com' -}, { - title: '上新', - img: '//img.alicdn.com/tfs/TB196v1RFXXXXb6aXXXXXXXXXXX-140-140.png', - url: '//www.taobao.com' -}, { - title: '短视频', - img: '//gw.alicdn.com/tfscom/TB1toY.RVXXXXcuXXXXXXXXXXXX.png', - url: '//www.taobao.com' -}, { - title: '短视频', - img: '//gw.alicdn.com/tfscom/TB1toY.RVXXXXcuXXXXXXXXXXXX.png', - url: '//www.taobao.com' -}]; - -var EntryCard = (_temp = _class = function (_Component) { - _inherits(EntryCard, _Component); - - function EntryCard() { - _classCallCheck(this, EntryCard); - - return _possibleConstructorReturn(this, (EntryCard.__proto__ || Object.getPrototypeOf(EntryCard)).apply(this, arguments)); - } - - _createClass(EntryCard, [{ - key: 'render', - value: function render() { - return _react2.default.createElement( - _card2.default, - { - className: 'entry-card', - style: { - display: 'flex', - flexDirection: 'row', - flexWrap: 'wrap' - } - }, - list.map(function (item, index) { - return _react2.default.createElement( - 'div', - { key: index, style: styles.item }, - _react2.default.createElement( - 'a', - { href: item.url, style: styles.link, target: '_blank' }, - _react2.default.createElement('img', { src: item.img, style: styles.cover, alt: item.title }), - _react2.default.createElement( - 'div', - { style: styles.title }, - item.title - ) - ) - ); - }) - ); - } - }]); - - return EntryCard; -}(_react.Component), _class.displayName = 'EntryCard', _temp); -exports.default = EntryCard; - - -var styles = { - item: { - display: 'flex', - flexDirection: 'column', - alignItems: 'center', - width: '70px', - margin: '10px 40px' - }, - link: { - textDecoration: 'none', - color: '#333' - }, - cover: { - width: '70px', - height: '70px' - }, - title: { - marginTop: '12px', - fontSize: '14px', - textAlign: 'center' - } -}; -module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/EntryCard/lib/index.js b/templates/ice-design/blocks/EntryCard/lib/index.js deleted file mode 100644 index e892ebf485..0000000000 --- a/templates/ice-design/blocks/EntryCard/lib/index.js +++ /dev/null @@ -1,14 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _EntryCard = require('./EntryCard'); - -var _EntryCard2 = _interopRequireDefault(_EntryCard); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -exports.default = _EntryCard2.default; -module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/EntryCard/src/EntryCard.scss b/templates/ice-design/blocks/EntryCard/src/EntryCard.scss deleted file mode 100644 index 654aa4f2bd..0000000000 --- a/templates/ice-design/blocks/EntryCard/src/EntryCard.scss +++ /dev/null @@ -1,4 +0,0 @@ -@charset "UTF-8"; - -.entry-card { -} diff --git a/templates/ice-design/blocks/FailureDetail/lib/FailureDetail.js b/templates/ice-design/blocks/FailureDetail/lib/FailureDetail.js deleted file mode 100644 index e89357bf1f..0000000000 --- a/templates/ice-design/blocks/FailureDetail/lib/FailureDetail.js +++ /dev/null @@ -1,107 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _react = require('react'); - -var _react2 = _interopRequireDefault(_react); - -var _iceCard = require('@ali/ice-card'); - -var _iceCard2 = _interopRequireDefault(_iceCard); - -var _next = require('@alife/next'); - -require('./FailureDetail.scss'); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -var FailureDetail = function (_Component) { - _inherits(FailureDetail, _Component); - - function FailureDetail(props) { - _classCallCheck(this, FailureDetail); - - var _this = _possibleConstructorReturn(this, (FailureDetail.__proto__ || Object.getPrototypeOf(FailureDetail)).call(this, props)); - - _this.state = {}; - return _this; - } - - // ICE: React Component 的生命周期 - // http://ice.alibaba-inc.com/docs/guide/intro-react#React-组件的生命周期 - - - _createClass(FailureDetail, [{ - key: 'componentWillMount', - value: function componentWillMount() {} - }, { - key: 'componentDidMount', - value: function componentDidMount() {} - }, { - key: 'componentWillReceiveProps', - value: function componentWillReceiveProps(nextProps, nextContext) {} - }, { - key: 'shouldComponentUpdate', - value: function shouldComponentUpdate(nextProps, nextState) { - return true; - } - }, { - key: 'componentWillUnmount', - value: function componentWillUnmount() {} - }, { - key: 'render', - value: function render() { - return _react2.default.createElement( - 'div', - { className: 'failure-detail' }, - _react2.default.createElement( - _iceCard2.default, - { style: { padding: '80px 40px' } }, - _react2.default.createElement( - 'div', - { className: 'success-detail-head' }, - _react2.default.createElement('img', { src: 'https://img.alicdn.com/tfs/TB1LUMhhY_I8KJjy1XaXXbsxpXa-156-156.png' }), - _react2.default.createElement( - 'h3', - { className: 'title' }, - '\u63D0\u4EA4\u5931\u8D25' - ) - ), - _react2.default.createElement( - 'p', - { className: 'summary' }, - '\u63D0\u4F9B\u4FE1\u606F\u4E0D\u7B26\u5408\u8981\u6C42\uFF0C\u8BF7\u91CD\u65B0\u63D0\u4EA4' - ), - _react2.default.createElement( - 'p', - { className: 'descrpiton' }, - '\u5982\u679C\u6709\u66F4\u591A\u7EC6\u8282\u9700\u8981\u5C55\u793A\uFF0C\u53EF\u4EE5\u8865\u5145\u5728\u8FD9\u91CC\uFF0C\u4E00\u4E9B\u76F8\u5173\u7684\u4ECB\u7ECD\u548C\u63CF\u8FF0' - ), - _react2.default.createElement( - 'a', - { href: '/', className: 'back-to-link' }, - '\u8FD4\u56DE\u4FEE\u6539' - ) - ) - ); - } - }]); - - return FailureDetail; -}(_react.Component); - -FailureDetail.displayName = 'FailureDetail'; -FailureDetail.propTypes = {}; -FailureDetail.defaultProps = {}; -exports.default = FailureDetail; \ No newline at end of file diff --git a/templates/ice-design/blocks/FailureDetail/lib/FailureDetail.scss b/templates/ice-design/blocks/FailureDetail/lib/FailureDetail.scss deleted file mode 100644 index 6080636c6d..0000000000 --- a/templates/ice-design/blocks/FailureDetail/lib/FailureDetail.scss +++ /dev/null @@ -1,35 +0,0 @@ -@charset "UTF-8"; - -.failure-detail { - text-align: center; - .success-detail-head { - position: relative; - img { - width: 40px; - height: 40px; - } - .title { - margin: 0; - font-weight: bold; - } - } - .summary, - .descrpiton { - font-size: 14px; - color: #666; - } - .summary { - margin-bottom: 40px; - } - .back-to-link { - display: inline-block; - margin-top: 80px; - height: 28px; - padding: 0 16px; - font-size: 14px; - line-height: 26px; - color: #fff; - border-radius: 50px; - background-color: #3080fe; - } -} diff --git a/templates/ice-design/blocks/FailureDetail/lib/index.js b/templates/ice-design/blocks/FailureDetail/lib/index.js deleted file mode 100644 index b66b0b76c4..0000000000 --- a/templates/ice-design/blocks/FailureDetail/lib/index.js +++ /dev/null @@ -1,13 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _FailureDetail = require('./FailureDetail'); - -var _FailureDetail2 = _interopRequireDefault(_FailureDetail); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -exports.default = _FailureDetail2.default; \ No newline at end of file diff --git a/templates/ice-design/blocks/InfoDisplayTab/lib/InfoDisplayTab.js b/templates/ice-design/blocks/InfoDisplayTab/lib/InfoDisplayTab.js deleted file mode 100644 index fff0a6bbaf..0000000000 --- a/templates/ice-design/blocks/InfoDisplayTab/lib/InfoDisplayTab.js +++ /dev/null @@ -1,183 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = undefined; - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _class, _temp; - -var _react = require('react'); - -var _react2 = _interopRequireDefault(_react); - -var _propTypes = require('prop-types'); - -var _propTypes2 = _interopRequireDefault(_propTypes); - -var _card = require('@icedesign/card'); - -var _card2 = _interopRequireDefault(_card); - -var _ellipsis = require('@icedesign/ellipsis'); - -var _ellipsis2 = _interopRequireDefault(_ellipsis); - -var _axios = require('axios'); - -var _axios2 = _interopRequireDefault(_axios); - -require('./InfoDisplayTab.scss'); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -var Tab = require('@icedesign/base/lib/tab'); - -var Button = require('@icedesign/base/lib/button'); - -var Grid = require('@icedesign/base/lib/grid'); - -var Row = Grid.Row, - Col = Grid.Col; -var TabPane = Tab.TabPane; -var InfoDisplayTab = (_temp = _class = function (_Component) { - _inherits(InfoDisplayTab, _Component); - - function InfoDisplayTab(props) { - _classCallCheck(this, InfoDisplayTab); - - var _this = _possibleConstructorReturn(this, (InfoDisplayTab.__proto__ || Object.getPrototypeOf(InfoDisplayTab)).call(this, props)); - - _this.getData = function () { - _axios2.default.get('/mock/info-display-tab.json').then(function (response) { - _this.setState({ - tabData: response.data.data || {} - }); - }).catch(function (error) { - console.log(error); - }); - }; - - _this.renderContent = function (data) { - return data.map(function (item, index) { - return _react2.default.createElement( - 'div', - { key: index, className: 'column-card', style: styles.columnCard }, - _react2.default.createElement( - Row, - null, - _react2.default.createElement( - Col, - { className: 'column-card-title titleStyle', style: styles.columnCardTitleTitleStyle }, - item.title - ) - ), - _react2.default.createElement( - Row, - { - style: styles.todo0 - }, - _react2.default.createElement( - Col, - null, - _react2.default.createElement( - 'div', - { className: 'column-card-desc', style: styles.columnCardDesc }, - _react2.default.createElement(_ellipsis2.default, { lineLimit: 6, text: item.desc }) - ) - ) - ), - _react2.default.createElement( - Row, - { - style: styles.todo1 - }, - _react2.default.createElement( - Col, - null, - _react2.default.createElement( - Button, - { - type: 'primary', - component: 'a', - href: 'http://www.taobao.com/', - target: '_blank', - size: 'large' - }, - '\u7533\u8BF7\u9891\u9053' - ) - ) - ) - ); - }); - }; - - _this.state = { - tabData: {} - }; - return _this; - } - - /** - * 异步获取数据 - */ - - - _createClass(InfoDisplayTab, [{ - key: 'componentDidMount', - value: function componentDidMount() { - this.getData(); - } - }, { - key: 'render', - value: function render() { - var tabData = this.state.tabData; - - return _react2.default.createElement( - 'div', - { className: 'info-display-tab', style: styles.infoDisplayTab }, - _react2.default.createElement( - _card2.default, - null, - _react2.default.createElement( - Tab, - { type: 'bar', onChange: this.callback }, - _react2.default.createElement( - TabPane, - { tab: '\u5168\u90E8\u9891\u9053', key: '1' }, - tabData.all ? this.renderContent(tabData.all) : '暂无数据' - ), - _react2.default.createElement( - TabPane, - { tab: '\u53EF\u7533\u8BF7\u9891\u9053', key: '2' }, - tabData.apply ? this.renderContent(tabData.apply) : '暂无数据' - ), - _react2.default.createElement( - TabPane, - { tab: '\u5DF2\u83B7\u5F97\u9891\u9053', key: '3' }, - tabData.existing ? this.renderContent(tabData.existing) : '暂无数据' - ) - ) - ) - ); - } - }]); - - return InfoDisplayTab; -}(_react.Component), _class.displayName = 'InfoDisplayTab', _class.propTypes = { - style: _propTypes2.default.object, - className: _propTypes2.default.string -}, _class.defaultProps = {}, _temp); -exports.default = InfoDisplayTab; - - -var styles = { "columnCard": { "float": "left", "width": "284px", "overflow": "hidden", "boxShadow": "0px 0px 2px 0px rgba(0" }, "columnCardDesc": { "height": "144px", "overflow": "hidden", "lineHeight": "24px", "fontSize": "14px", "color": "#666", "margin": "5px auto 0 auto" }, "infoDisplayTab": {}, "todo0": { "marginTop": "20px" }, "todo1": { "textAlign": "center", "marginTop": "15px" } }; -module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/InfoDisplayTab/lib/index.js b/templates/ice-design/blocks/InfoDisplayTab/lib/index.js deleted file mode 100644 index 38c8ee0099..0000000000 --- a/templates/ice-design/blocks/InfoDisplayTab/lib/index.js +++ /dev/null @@ -1,14 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _InfoDisplayTab = require('./InfoDisplayTab'); - -var _InfoDisplayTab2 = _interopRequireDefault(_InfoDisplayTab); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -exports.default = _InfoDisplayTab2.default; -module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/InfoDisplayTab/src/InfoDisplayTab.scss b/templates/ice-design/blocks/InfoDisplayTab/src/InfoDisplayTab.scss deleted file mode 100644 index dd93e4ea5b..0000000000 --- a/templates/ice-design/blocks/InfoDisplayTab/src/InfoDisplayTab.scss +++ /dev/null @@ -1,33 +0,0 @@ -@charset "UTF-8"; - -.info-display-tab { - .column-card { - float: left; - width: 284px; - overflow: hidden; - box-shadow: 0px 0px 2px 0px rgba(0, 0, 0, 0.1), 0px 2px 2px 0px rgba(0, 0, 0, 0.1); - background: #fff; - height: 310px; - position: relative; - margin-right: 16px; - margin-bottom: 16px; - &:nth-child(3n) { - margin-right: 0; - } - } - - .column-card-desc { - height: 144px; - overflow: hidden; - line-height: 24px; - font-size: 14px; - color: #666; - margin: 5px auto 0 auto; - } - - .titleStyle { - font-size: 18px; - text-align: center; - margin-top: 22px; - } -} diff --git a/templates/ice-design/blocks/InfoDisplayTable/lib/InfoDisplayTable.js b/templates/ice-design/blocks/InfoDisplayTable/lib/InfoDisplayTable.js deleted file mode 100644 index 95aecbae7d..0000000000 --- a/templates/ice-design/blocks/InfoDisplayTable/lib/InfoDisplayTable.js +++ /dev/null @@ -1,117 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = undefined; - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _class, _temp; - -var _react = require('react'); - -var _react2 = _interopRequireDefault(_react); - -var _propTypes = require('prop-types'); - -var _propTypes2 = _interopRequireDefault(_propTypes); - -var _card = require('@icedesign/card'); - -var _card2 = _interopRequireDefault(_card); - -require('./InfoDisplayTable.scss'); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -var Table = require('@icedesign/base/lib/table'); - -/** - * 表格接收的数据 - */ -var dataSource = function dataSource() { - return [{ - label: '姓名', - value: '张三' - }, { - label: '性别', - value: '男' - }, { - label: '年龄', - value: '25' - }, { - label: '籍贯', - value: '杭州' - }, { - label: '职业', - value: '程序员' - }]; -}; - -var InfoDisplayTable = (_temp = _class = function (_Component) { - _inherits(InfoDisplayTable, _Component); - - function InfoDisplayTable(props) { - _classCallCheck(this, InfoDisplayTable); - - var _this = _possibleConstructorReturn(this, (InfoDisplayTable.__proto__ || Object.getPrototypeOf(InfoDisplayTable)).call(this, props)); - - _this.state = {}; - return _this; - } - - // ICE: React Component 的生命周期 - // http://ice.alibaba-inc.com/docs/guide/intro-react#React-组件的生命周期 - - - _createClass(InfoDisplayTable, [{ - key: 'componentWillMount', - value: function componentWillMount() {} - }, { - key: 'componentDidMount', - value: function componentDidMount() {} - }, { - key: 'componentWillReceiveProps', - value: function componentWillReceiveProps(nextProps, nextContext) {} - }, { - key: 'shouldComponentUpdate', - value: function shouldComponentUpdate(nextProps, nextState) { - return true; - } - }, { - key: 'componentWillUnmount', - value: function componentWillUnmount() {} - }, { - key: 'render', - value: function render() { - return _react2.default.createElement( - 'div', - { className: 'info-display-table', style: styles.infoDisplayTable }, - _react2.default.createElement( - _card2.default, - null, - _react2.default.createElement( - Table, - { dataSource: dataSource() }, - _react2.default.createElement(Table.Column, { title: '\u4E2A\u4EBA\u4FE1\u606F', dataIndex: 'label' }), - _react2.default.createElement(Table.Column, { title: '', dataIndex: 'value' }) - ) - ) - ); - } - }]); - - return InfoDisplayTable; -}(_react.Component), _class.displayName = 'InfoDisplayTable', _class.propTypes = {}, _class.defaultProps = {}, _temp); -exports.default = InfoDisplayTable; - - -var styles = { "infoDisplayTable": {} }; -module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/InfoDisplayTable/lib/index.js b/templates/ice-design/blocks/InfoDisplayTable/lib/index.js deleted file mode 100644 index 2e84ca88bc..0000000000 --- a/templates/ice-design/blocks/InfoDisplayTable/lib/index.js +++ /dev/null @@ -1,14 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _InfoDisplayTable = require('./InfoDisplayTable'); - -var _InfoDisplayTable2 = _interopRequireDefault(_InfoDisplayTable); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -exports.default = _InfoDisplayTable2.default; -module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/InfoDisplayTable/src/InfoDisplayTable.scss b/templates/ice-design/blocks/InfoDisplayTable/src/InfoDisplayTable.scss deleted file mode 100644 index 1ba2d0e18c..0000000000 --- a/templates/ice-design/blocks/InfoDisplayTable/src/InfoDisplayTable.scss +++ /dev/null @@ -1,18 +0,0 @@ -@charset "UTF-8"; - -.info-display-table { - .next-table tr { - th { - border: 0; - border-bottom: 1px solid #EEEFF3; - } - th:first-child { - font-weight: bold; - color: #333; - font-size: 18px; - } - } - .next-table .next-table-cell.first { - font-weight: bold; - } -} diff --git a/templates/ice-design/blocks/JoinUs/lib/JoinUs.js b/templates/ice-design/blocks/JoinUs/lib/JoinUs.js deleted file mode 100644 index 07bf16f23f..0000000000 --- a/templates/ice-design/blocks/JoinUs/lib/JoinUs.js +++ /dev/null @@ -1,233 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = undefined; - -var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _class, _temp; - -var _react = require('react'); - -var _react2 = _interopRequireDefault(_react); - -var _formBinder = require('@icedesign/form-binder'); - -require('./JoinUs.scss'); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -var Grid = require('@icedesign/base/lib/grid'); - -var Input = require('@icedesign/base/lib/input'); - -var Button = require('@icedesign/base/lib/button'); - -var Row = Grid.Row, - Col = Grid.Col; - -var telPattern = /^(1[\d]{1}[\d]{9})|(((400)-(\d{3})-(\d{4}))|^((\d{7,8})|(\d{4}|\d{3})-(\d{7,8})|(\d{7,8})-(\d{4}|\d{3}|\d{2}|\d{1}))$)$|^([ ]?)$/; - -var JoinUs = (_temp = _class = function (_Component) { - _inherits(JoinUs, _Component); - - function JoinUs(props) { - _classCallCheck(this, JoinUs); - - var _this = _possibleConstructorReturn(this, (JoinUs.__proto__ || Object.getPrototypeOf(JoinUs)).call(this, props)); - - _this.formChange = function (newValue) { - _this.setState({ - formValue: newValue - }); - }; - - _this.handleSubmit = function () { - _this.form.validateAll(function (error, value) { - console.log(value); - }); - }; - - _this.state = { - formValue: { - username: '', - email: '', - phone: '', - jobtitle: '', - content: '' - } - }; - return _this; - } - - _createClass(JoinUs, [{ - key: 'render', - value: function render() { - var _this2 = this; - - return _react2.default.createElement( - 'div', - { - className: 'join-us', - style: _extends({}, styles.container, styles.joinUs) - }, - _react2.default.createElement( - 'div', - { style: styles.content }, - _react2.default.createElement( - 'div', - { style: styles.head }, - _react2.default.createElement( - 'h2', - { style: styles.title }, - '\u6211\u4EEC\u7684\u56E2\u961F' - ), - _react2.default.createElement( - 'p', - { style: styles.intro }, - '\u6211\u4EEC\u662F\u4E00\u652F\u5145\u6EE1\u6FC0\u60C5\u3001\u5FD7\u5411\u8FDC\u5927\u3001\u6000\u63E3\u68A6\u60F3\u7684\u56E2\u961F\uFF0C', - _react2.default.createElement('br', null), - '\u4E5F\u662F\u4E00\u4E2A\u601D\u7EF4\u6D3B\u8DC3\u3001\u671D\u6C14\u84EC\u52C3\u3001\u56E2\u7ED3\u4E92\u52A9\u7684\u5927\u5BB6\u5EAD' - ) - ), - _react2.default.createElement( - _formBinder.FormBinderWrapper, - { - ref: function ref(form) { - _this2.form = form; - }, - value: this.state.formValue, - onChange: this.formChange - }, - _react2.default.createElement( - 'div', - { style: styles.formContent }, - _react2.default.createElement( - Row, - { className: 'hoz-form-item', style: styles.hozFormItem }, - _react2.default.createElement( - Col, - { span: 8 }, - _react2.default.createElement( - _formBinder.FormBinder, - { required: true, message: '\u5FC5\u586B\u9879' }, - _react2.default.createElement(Input, { name: 'username', placeholder: '\u59D3\u540D' }) - ), - _react2.default.createElement( - 'div', - { style: styles.formErrorWrapper }, - _react2.default.createElement(_formBinder.FormError, { name: 'username', style: styles.errorText }) - ) - ), - _react2.default.createElement( - Col, - { span: 8 }, - _react2.default.createElement( - _formBinder.FormBinder, - { type: 'email', required: true, message: '\u90AE\u7BB1\u4E0D\u5408\u6CD5' }, - _react2.default.createElement(Input, { name: 'email', placeholder: '\u90AE\u7BB1' }) - ), - _react2.default.createElement( - 'div', - { style: styles.formErrorWrapper }, - _react2.default.createElement(_formBinder.FormError, { name: 'email', style: styles.errorText }) - ) - ), - _react2.default.createElement( - Col, - { span: 8 }, - _react2.default.createElement( - _formBinder.FormBinder, - { - required: true, - message: '\u8BF7\u8F93\u5165\u5408\u6CD5\u7684\u7535\u8BDD\u53F7\u7801', - pattern: telPattern, - triggerType: 'onBlur' - }, - _react2.default.createElement(Input, { name: 'phone', placeholder: '\u7535\u8BDD' }) - ), - _react2.default.createElement( - 'div', - { style: styles.formErrorWrapper }, - _react2.default.createElement(_formBinder.FormError, { name: 'phone', style: styles.errorText }) - ) - ) - ), - _react2.default.createElement( - Row, - { className: 'ver-form-item', style: styles.verFormItem }, - _react2.default.createElement( - _formBinder.FormBinder, - null, - _react2.default.createElement(Input, { name: 'jobtitle', placeholder: '\u804C\u4F4D' }) - ) - ), - _react2.default.createElement( - Row, - { className: 'ver-form-item', style: styles.verFormItem }, - _react2.default.createElement( - _formBinder.FormBinder, - null, - _react2.default.createElement(Input, { multiple: true, name: 'content', placeholder: '\u4E00\u4E9B\u81EA\u6211\u4ECB\u7ECD' }) - ) - ), - _react2.default.createElement( - Row, - null, - _react2.default.createElement( - Col, - null, - _react2.default.createElement( - Button, - { - onClick: this.handleSubmit, - type: 'primary', - style: styles.submitBtn - }, - '\u63D0\u4EA4' - ) - ) - ) - ) - ) - ) - ); - } - }]); - - return JoinUs; -}(_react.Component), _class.displayName = 'JoinUs', _temp); -exports.default = JoinUs; - - -var styles = { - container: { - background: 'url(https://img.alicdn.com/tfs/TB1JGoDi3vD8KJjy0FlXXagBFXa-5040-2811.png)', - backgroundSize: 'cover' - }, - content: { - width: '1080px', - margin: '0 auto', - padding: '80px 0' - }, - head: { width: '50%', margin: '0 auto' }, - title: { margin: '0', textAlign: 'center', fontSize: '28px', color: '#fff' }, - intro: { textAlign: 'center', color: '#fff' }, - formContent: { width: '640px', margin: '60px auto' }, - errorText: { color: '#fff' }, - submitBtn: { color: '#2977f3', background: '#fff', borderRadius: '6px' }, - joinUs: {}, - hozFormItem: {}, - verFormItem: {} -}; -module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/JoinUs/lib/index.js b/templates/ice-design/blocks/JoinUs/lib/index.js deleted file mode 100644 index 45d0544b00..0000000000 --- a/templates/ice-design/blocks/JoinUs/lib/index.js +++ /dev/null @@ -1,14 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _JoinUs = require('./JoinUs'); - -var _JoinUs2 = _interopRequireDefault(_JoinUs); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -exports.default = _JoinUs2.default; -module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/JoinUs/src/JoinUs.scss b/templates/ice-design/blocks/JoinUs/src/JoinUs.scss deleted file mode 100644 index 7b7538a7b0..0000000000 --- a/templates/ice-design/blocks/JoinUs/src/JoinUs.scss +++ /dev/null @@ -1,21 +0,0 @@ -@charset "UTF-8"; - -.join-us { - .next-input.next-input-single input, - .next-input.next-input-multiple textarea { - font-size: 12px; - } - .hoz-form-item { - .next-col { - padding: 0; - } - } - .ver-form-item { - .next-input { - width: 610px; - } - } - .next-row { - margin-bottom: 15px; - } -} diff --git a/templates/ice-design/blocks/LandingIntroBanner/lib/LandingIntroBanner.js b/templates/ice-design/blocks/LandingIntroBanner/lib/LandingIntroBanner.js deleted file mode 100644 index 6383b7a1cb..0000000000 --- a/templates/ice-design/blocks/LandingIntroBanner/lib/LandingIntroBanner.js +++ /dev/null @@ -1,155 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = undefined; - -var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _class, _temp; - -var _react = require('react'); - -var _react2 = _interopRequireDefault(_react); - -var _reactRouter = require('react-router'); - -require('./LandingIntroBanner.scss'); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -var Button = require('@icedesign/base/lib/button'); - -// 寻找背景图片可以从 https://unsplash.com/ 寻找 -var backgroundImage = 'https://img.alicdn.com/tfs/TB1j9kWgvDH8KJjy1XcXXcpdXXa-1680-870.jpg'; - -var LandingIntroBanner = (_temp = _class = function (_Component) { - _inherits(LandingIntroBanner, _Component); - - function LandingIntroBanner(props) { - _classCallCheck(this, LandingIntroBanner); - - var _this = _possibleConstructorReturn(this, (LandingIntroBanner.__proto__ || Object.getPrototypeOf(LandingIntroBanner)).call(this, props)); - - _this.state = {}; - return _this; - } - - _createClass(LandingIntroBanner, [{ - key: 'render', - value: function render() { - // 登录介绍页面默认撑满一屏高度 - return _react2.default.createElement( - 'div', - { style: styles.landingIntro }, - _react2.default.createElement('div', { - style: _extends({}, styles.landingIntroBackground, { - backgroundImage: 'url('http://github.com/+%20backgroundImage%20+')' - }) - }), - _react2.default.createElement( - 'div', - { - className: 'landing-intro-banner-content-wrapper', - style: styles.contentWrapper - }, - _react2.default.createElement( - 'div', - null, - _react2.default.createElement( - 'h2', - { style: styles.title }, - '\u66F4\u5FEB\uFF0C\u66F4\u4F18\uFF0C\u66F4 Cool !', - _react2.default.createElement('br', null), - '\u6B22\u8FCE\u4F7F\u7528 ICE' - ), - _react2.default.createElement( - 'div', - { style: styles.buttons }, - _react2.default.createElement( - _reactRouter.Link, - { to: '/link-to-help-document' }, - _react2.default.createElement( - Button, - { - style: { - marginRight: 20, - height: 50, - padding: '0 58px', - fontSize: 16, - color: '#fff' - }, - type: 'primary', - size: 'large', - shape: 'ghost' - }, - '\u67E5\u770B\u5E2E\u52A9' - ) - ), - _react2.default.createElement( - _reactRouter.Link, - { to: '/link-to-dashboard' }, - _react2.default.createElement( - Button, - { - style: { height: 50, padding: '0 58px', fontSize: 16 }, - type: 'primary', - size: 'large' - }, - '\u7ACB\u5373\u4F7F\u7528' - ) - ) - ) - ) - ) - ); - } - }]); - - return LandingIntroBanner; -}(_react.Component), _class.displayName = 'LandingIntroBanner', _temp); -exports.default = LandingIntroBanner; - - -var styles = { - landingIntro: { - position: 'relative', - height: '100vh' - }, - landingIntroBackground: { - position: 'absolute', - top: 0, - left: 0, - right: 0, - bottom: 0, - backgroundSize: 'cover' - }, - contentWrapper: { - position: 'absolute', - top: 0, - left: 0, - right: 0, - bottom: 0, - display: 'flex', - justifyContent: 'center', - alignItems: 'center' - }, - title: { - textAlign: 'center', - color: '#fff', - fontSize: '32px', - letterSpacing: '1.94px', - lineHeight: '48px' - }, - buttons: { textAlign: 'center', marginTop: 70 } -}; -module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/LandingIntroBanner/lib/index.js b/templates/ice-design/blocks/LandingIntroBanner/lib/index.js deleted file mode 100644 index 9122d97f60..0000000000 --- a/templates/ice-design/blocks/LandingIntroBanner/lib/index.js +++ /dev/null @@ -1,14 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _LandingIntroBanner = require('./LandingIntroBanner'); - -var _LandingIntroBanner2 = _interopRequireDefault(_LandingIntroBanner); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -exports.default = _LandingIntroBanner2.default; -module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/LandingIntroBanner/src/LandingIntroBanner.scss b/templates/ice-design/blocks/LandingIntroBanner/src/LandingIntroBanner.scss deleted file mode 100644 index 82cbe75248..0000000000 --- a/templates/ice-design/blocks/LandingIntroBanner/src/LandingIntroBanner.scss +++ /dev/null @@ -1,9 +0,0 @@ -@charset "UTF-8"; - -.landing-intro-banner-content-wrapper { - a:hover, - a:visited, - a:link { - color: #fff; - } -} diff --git a/templates/ice-design/blocks/LeftContentDisplay/lib/LeftContentDisplay.js b/templates/ice-design/blocks/LeftContentDisplay/lib/LeftContentDisplay.js deleted file mode 100644 index f2e208dc84..0000000000 --- a/templates/ice-design/blocks/LeftContentDisplay/lib/LeftContentDisplay.js +++ /dev/null @@ -1,83 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = undefined; - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _class, _temp; - -var _react = require('react'); - -var _react2 = _interopRequireDefault(_react); - -require('./LeftContentDisplay.scss'); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -var LeftContentDisplay = (_temp = _class = function (_Component) { - _inherits(LeftContentDisplay, _Component); - - function LeftContentDisplay(props) { - _classCallCheck(this, LeftContentDisplay); - - var _this = _possibleConstructorReturn(this, (LeftContentDisplay.__proto__ || Object.getPrototypeOf(LeftContentDisplay)).call(this, props)); - - _this.state = {}; - return _this; - } - - _createClass(LeftContentDisplay, [{ - key: 'render', - value: function render() { - return _react2.default.createElement( - 'div', - _defineProperty({ className: 'left-content-display', style: styles.leftContentDisplay }, 'style', styles.container), - _react2.default.createElement( - 'div', - { style: styles.content }, - _react2.default.createElement( - 'div', - { style: styles.col }, - _react2.default.createElement( - 'h2', - { style: styles.title }, - '\u529F\u80FD\u63CF\u8FF0' - ), - _react2.default.createElement( - 'p', - { style: styles.description }, - '\u529F\u80FD\u63CF\u8FF0\u7684\u6587\u6848\uFF0C\u529F\u80FD\u63CF\u8FF0\u7684\u6587\u6848\u529F\u80FD\u63CF\u8FF0\u7684\u6587\u6848\u529F\u80FD\u63CF\u8FF0\u7684\u6587\u6848' - ) - ), - _react2.default.createElement( - 'div', - { style: styles.col }, - _react2.default.createElement('img', { - src: 'https://img.alicdn.com/tfs/TB1MgyDjsLJ8KJjy0FnXXcFDpXa-618-1046.png', - alt: 'img', - style: styles.image - }) - ) - ) - ); - } - }]); - - return LeftContentDisplay; -}(_react.Component), _class.displayName = 'LeftContentDisplay', _temp); -exports.default = LeftContentDisplay; - - -var styles = { "container": { "margin": "0 auto", "width": "1080px" }, "content": { "display": "flex", "position": "relative", "alignItems": "center", "overflow": "hidden", "height": "600px" }, "col": { "width": "50%" }, "title": { "fontSize": "28px", "fontWeight": "bold" }, "description": { "color": "#666", "lineHeight": "22px" }, "image": { "position": "absolute", "top": "20px", "width": "40%" }, "leftContentDisplay": {} }; -module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/LeftContentDisplay/lib/index.js b/templates/ice-design/blocks/LeftContentDisplay/lib/index.js deleted file mode 100644 index 54fa1730c7..0000000000 --- a/templates/ice-design/blocks/LeftContentDisplay/lib/index.js +++ /dev/null @@ -1,14 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _LeftContentDisplay = require('./LeftContentDisplay'); - -var _LeftContentDisplay2 = _interopRequireDefault(_LeftContentDisplay); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -exports.default = _LeftContentDisplay2.default; -module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/LeftContentDisplay/src/LeftContentDisplay.scss b/templates/ice-design/blocks/LeftContentDisplay/src/LeftContentDisplay.scss deleted file mode 100644 index 6a5c46cd04..0000000000 --- a/templates/ice-design/blocks/LeftContentDisplay/src/LeftContentDisplay.scss +++ /dev/null @@ -1,5 +0,0 @@ -@charset "UTF-8"; - -.left-content-display { - -} diff --git a/templates/ice-design/blocks/LiteTable/lib/LiteTable.js b/templates/ice-design/blocks/LiteTable/lib/LiteTable.js deleted file mode 100644 index 649898459f..0000000000 --- a/templates/ice-design/blocks/LiteTable/lib/LiteTable.js +++ /dev/null @@ -1,154 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = undefined; - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _class, _temp; - -var _react = require('react'); - -var _react2 = _interopRequireDefault(_react); - -var _card = require('@icedesign/card'); - -var _card2 = _interopRequireDefault(_card); - -require('./LiteTable.scss'); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -var Table = require('@icedesign/base/lib/table'); - -var styles = { - tableCard: { width: 430, padding: 10 }, - liteTable: {}, - todo0: { color: '#5485F7' }, - todo1: { color: '#64D874' }, - todo2: { color: '#999999' }, - todo3: { color: '#FA7070' } -}; - -var generatorMockStatus = function generatorMockStatus() { - var random = parseInt(Math.random() * 10, 10); - if (random < 3) { - return 'processing'; - } else if (random >= 3 && random < 6) { - return 'finish'; - } else if (random >= 6 && random < 8) { - return 'terminated'; - } else if (random >= 8) { - return 'pass'; - } -}; - -var generatorData = function generatorData() { - return Array.from({ length: 10 }).map(function (item, index) { - return { - project: '\u8FD9\u91CC\u662F\u5B57\u6570\u4E0D\u80FD\u592A\u957F\u7684\u9879\u76EE\u540D ' + index, - owner: '\u5F00\u53D1\u8005 ' + index, - status: generatorMockStatus() - }; - }); -}; - -var statusComponents = { - processing: _react2.default.createElement( - 'span', - { style: styles.todo0 }, - '\u8FDB\u884C\u4E2D' - ), - finish: _react2.default.createElement( - 'span', - { style: styles.todo1 }, - '\u5DF2\u5B8C\u6210' - ), - terminated: _react2.default.createElement( - 'span', - { style: styles.todo2 }, - '\u5DF2\u7EC8\u6B62' - ), - pass: _react2.default.createElement( - 'span', - { style: styles.todo3 }, - '\u672A\u901A\u8FC7' - ) -}; - -var LiteTable = (_temp = _class = function (_Component) { - _inherits(LiteTable, _Component); - - function LiteTable(props) { - _classCallCheck(this, LiteTable); - - var _this = _possibleConstructorReturn(this, (LiteTable.__proto__ || Object.getPrototypeOf(LiteTable)).call(this, props)); - - _this.renderStatus = function (value) { - return statusComponents[value]; - }; - - _this.state = { - tableData: generatorData() - }; - return _this; - } - - // ICE: React Component 的生命周期 - // http://ice.alibaba-inc.com/docs/guide/intro-react#React-组件的生命周期 - - - _createClass(LiteTable, [{ - key: 'componentWillMount', - value: function componentWillMount() {} - }, { - key: 'componentDidMount', - value: function componentDidMount() {} - }, { - key: 'shouldComponentUpdate', - value: function shouldComponentUpdate() { - return true; - } - }, { - key: 'componentWillUnmount', - value: function componentWillUnmount() {} - }, { - key: 'render', - value: function render() { - var tableData = this.state.tableData; - - return _react2.default.createElement( - 'div', - { className: 'lite-table', style: styles.liteTable }, - _react2.default.createElement( - _card2.default, - { style: styles.tableCard }, - _react2.default.createElement( - Table, - { dataSource: tableData, hasBorder: false }, - _react2.default.createElement(Table.Column, { title: '\u9879\u76EE\u540D\u79F0', dataIndex: 'project', width: 160 }), - _react2.default.createElement(Table.Column, { title: '\u521B\u5EFA\u8005', dataIndex: 'owner', width: 65 }), - _react2.default.createElement(Table.Column, { - title: '\u72B6\u6001', - dataIndex: 'status', - cell: this.renderStatus, - width: 65 - }) - ) - ) - ); - } - }]); - - return LiteTable; -}(_react.Component), _class.displayName = 'LiteTable', _class.propTypes = {}, _class.defaultProps = {}, _temp); -exports.default = LiteTable; -module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/LiteTable/lib/index.js b/templates/ice-design/blocks/LiteTable/lib/index.js deleted file mode 100644 index f9ab936fee..0000000000 --- a/templates/ice-design/blocks/LiteTable/lib/index.js +++ /dev/null @@ -1,14 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _LiteTable = require('./LiteTable'); - -var _LiteTable2 = _interopRequireDefault(_LiteTable); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -exports.default = _LiteTable2.default; -module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/LiteTable/src/LiteTable.scss b/templates/ice-design/blocks/LiteTable/src/LiteTable.scss deleted file mode 100644 index 7c0b0452af..0000000000 --- a/templates/ice-design/blocks/LiteTable/src/LiteTable.scss +++ /dev/null @@ -1,5 +0,0 @@ -@charset "UTF-8"; - -.lite-table { - -} diff --git a/templates/ice-design/blocks/MessageList/lib/MessageList.js b/templates/ice-design/blocks/MessageList/lib/MessageList.js deleted file mode 100644 index a9b4040402..0000000000 --- a/templates/ice-design/blocks/MessageList/lib/MessageList.js +++ /dev/null @@ -1,139 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = undefined; - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _class, _temp; - -var _react = require('react'); - -var _react2 = _interopRequireDefault(_react); - -var _propTypes = require('prop-types'); - -var _propTypes2 = _interopRequireDefault(_propTypes); - -var _card = require('@icedesign/card'); - -var _card2 = _interopRequireDefault(_card); - -require('./MessageList.scss'); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -var Pagination = require('@icedesign/base/lib/pagination'); - -var dataSource = [{ - title: '消息标题', - message: '您的账号在2017.4.1日发布的文章《夏日阳光穿搭》中出现恶意引导,违反了商业规则,即日起封号,30天内不得重新申请入驻。', - datetime: '07-07 18:36' -}, { - title: '消息标题', - message: '您的账号在2017.4.1日发布的文章《夏日阳光穿搭》中出现恶意引导,违反了商业规则,即日起封号,30天内不得重新申请入驻。账号在2017.4.1日发布的文章《夏日阳光穿搭》中出现恶意引导,违反了商业规则,即日起封号,30天内不得重新申请入驻。', - datetime: '07-07 18:36' -}, { - title: '消息标题', - message: '您的账号在2017.4.1日发布的文章《夏日阳光穿搭》中出现恶意引导,违反了商业规则,即日起封号,30天内不得重新申请入驻。账号在2017.4.1日发布的文章《夏日阳光穿搭》中出现恶意引导,违反了商业规则,即日起封号,30天内不得重新申请入驻。', - datetime: '07-07 18:36' -}, { - title: '消息标题', - message: '您的账号在2017.4.1日发布的文章《夏日阳光穿搭》中出现恶意引导,违反了商业规则,即日起封号,30天内不得重新申请入驻。', - datetime: '07-07 18:36' -}, { - title: '消息标题', - message: '您的账号在2017.4.1日发布的文章《夏日阳光穿搭》中出现恶意引导,违反了商业规则,即日起封号,30天内不得重新申请入驻。', - datetime: '07-07 18:36' -}]; - -var MessageList = (_temp = _class = function (_Component) { - _inherits(MessageList, _Component); - - function MessageList(props) { - _classCallCheck(this, MessageList); - - var _this = _possibleConstructorReturn(this, (MessageList.__proto__ || Object.getPrototypeOf(MessageList)).call(this, props)); - - _this.renderItem = function (item, idx) { - return _react2.default.createElement( - 'div', - { style: styles.item, key: idx }, - _react2.default.createElement( - 'div', - { style: styles.title }, - item.title, - _react2.default.createElement( - 'span', - { style: styles.datetime }, - item.datetime - ) - ), - _react2.default.createElement( - 'div', - { style: styles.message }, - item.message - ) - ); - }; - - _this.state = {}; - return _this; - } - - // ICE: React Component 的生命周期 - // http://ice.alibaba-inc.com/docs/guide/intro-react#React-组件的生命周期 - - - _createClass(MessageList, [{ - key: 'componentWillMount', - value: function componentWillMount() {} - }, { - key: 'componentDidMount', - value: function componentDidMount() {} - }, { - key: 'componentWillReceiveProps', - value: function componentWillReceiveProps(nextProps, nextContext) {} - }, { - key: 'shouldComponentUpdate', - value: function shouldComponentUpdate(nextProps, nextState) { - return true; - } - }, { - key: 'componentWillUnmount', - value: function componentWillUnmount() {} - }, { - key: 'render', - value: function render() { - return _react2.default.createElement( - 'div', - { className: 'message-list', style: styles.messageList }, - _react2.default.createElement( - _card2.default, - null, - dataSource.map(this.renderItem), - _react2.default.createElement( - 'div', - { style: styles.paginationWarp }, - _react2.default.createElement(Pagination, null) - ) - ) - ); - } - }]); - - return MessageList; -}(_react.Component), _class.displayName = 'MessageList', _temp); -exports.default = MessageList; - - -var styles = { item: { borderBottom: '1px solid #eee', margin: '0 15px 20px' }, title: { fontSize: '16px', color: '#444', marginBottom: '15px', position: 'relative' }, datetime: { position: 'absolute', right: '10px', paddingTop: '10px', fontSize: '12px', color: '#666' }, message: { fontSize: '14px', color: '#666', marginBottom: '20px', width: '790px' }, paginationWarp: { marginTop: '15px', display: 'flex', flexDirection: 'row', justifyContent: 'flex-end' }, messageList: {} }; -module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/MessageList/lib/index.js b/templates/ice-design/blocks/MessageList/lib/index.js deleted file mode 100644 index bf436a2317..0000000000 --- a/templates/ice-design/blocks/MessageList/lib/index.js +++ /dev/null @@ -1,14 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _MessageList = require('./MessageList'); - -var _MessageList2 = _interopRequireDefault(_MessageList); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -exports.default = _MessageList2.default; -module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/MessageList/src/MessageList.scss b/templates/ice-design/blocks/MessageList/src/MessageList.scss deleted file mode 100644 index 38139915e5..0000000000 --- a/templates/ice-design/blocks/MessageList/src/MessageList.scss +++ /dev/null @@ -1,5 +0,0 @@ -@charset "UTF-8"; - -.message-list { - -} diff --git a/templates/ice-design/blocks/MonacoEditor/lib/MonacoEditor.js b/templates/ice-design/blocks/MonacoEditor/lib/MonacoEditor.js deleted file mode 100644 index 786f554292..0000000000 --- a/templates/ice-design/blocks/MonacoEditor/lib/MonacoEditor.js +++ /dev/null @@ -1,171 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = undefined; - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _class, _temp; - -var _react = require('react'); - -var _react2 = _interopRequireDefault(_react); - -var _card = require('@icedesign/card'); - -var _card2 = _interopRequireDefault(_card); - -var _reactMonacoEditor = require('react-monaco-editor'); - -var _reactMonacoEditor2 = _interopRequireDefault(_reactMonacoEditor); - -require('regenerator-runtime/runtime'); - -require('./MonacoEditor.scss'); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, arguments); return new Promise(function (resolve, reject) { function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { return Promise.resolve(value).then(function (value) { step("next", value); }, function (err) { step("throw", err); }); } } return step("next"); }); }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -function getScript(uri) { - return new Promise(function (resolve, reject) { - var el = document.createElement('script'); - el.type = 'text/javascript'; - var head = document.head || document.head.getElementsByTagName('head')[0]; - el.onerror = function onerror(e) { - reject(new URIError(uri + ' could not be loaded'), e); - }; - el.onload = function onload(e) { - resolve({ uri: uri, event: e }); - }; - head.appendChild(el); - el.src = uri; - }); -} - -var MonacoEditor = (_temp = _class = function (_Component) { - _inherits(MonacoEditor, _Component); - - function MonacoEditor(props) { - _classCallCheck(this, MonacoEditor); - - var _this = _possibleConstructorReturn(this, (MonacoEditor.__proto__ || Object.getPrototypeOf(MonacoEditor)).call(this, props)); - - _this.onChange = function (newValue, e) { - console.log('onChange', newValue, e); - }; - - _this.editorDidMount = function (editor) { - console.log('editorDidMount', editor); - editor.focus(); - }; - - _this.state = { - monacoReady: false - }; - return _this; - } - - // ICE: React Component 的生命周期 - // http://ice.alibaba-inc.com/docs/guide/intro-react#React-组件的生命周期 - - - _createClass(MonacoEditor, [{ - key: 'componentWillMount', - value: function () { - var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() { - var _this2 = this; - - var vsBasePath, monacoRequire; - return regeneratorRuntime.wrap(function _callee$(_context) { - while (1) { - switch (_context.prev = _context.next) { - case 0: - vsBasePath = '//unpkg.com/monaco-editor@0.10.1/min/vs'; - _context.next = 3; - return getScript(vsBasePath + '/loader.js'); - - case 3: - monacoRequire = window.require; - - monacoRequire.config({ paths: { vs: vsBasePath } }); - // monaco editor 的跨域解决方案:https://github.com/Microsoft/monaco-editor#integrate-cross-domain - window.MonacoEnvironment = { - getWorkerUrl: function getWorkerUrl() { - return '/monaco-editor-worker-loader-proxy.js'; - } - }; - monacoRequire(['vs/editor/editor.main'], function () { - _this2.setState({ - monacoReady: true - }); - }); - - case 7: - case 'end': - return _context.stop(); - } - } - }, _callee, this); - })); - - function componentWillMount() { - return _ref.apply(this, arguments); - } - - return componentWillMount; - }() - }, { - key: 'componentDidMount', - value: function componentDidMount() {} - }, { - key: 'componentWillUnmount', - value: function componentWillUnmount() {} - }, { - key: 'render', - value: function render() { - var code = 'console.log(\'hello world\');\n\nfunction foo() {\n // hello world\n}\n'; - var options = { - selectOnLineNumbers: true - }; - var monacoReady = this.state.monacoReady; - - - return _react2.default.createElement( - 'div', - { className: 'monaco-editor-container', style: styles.monacoEditorContainer }, - _react2.default.createElement( - _card2.default, - { style: styles.container }, - monacoReady ? _react2.default.createElement(_reactMonacoEditor2.default, { - height: '600', - language: 'javascript', - theme: 'vs-dark', - value: code, - options: options, - onChange: this.onChange, - editorDidMount: this.editorDidMount - }) : 'loading...' - ) - ); - } - }]); - - return MonacoEditor; -}(_react.Component), _class.displayName = 'MonacoEditor', _class.propTypes = {}, _class.defaultProps = {}, _temp); -exports.default = MonacoEditor; - - -var styles = { - container: { overflow: 'hidden', position: 'relative' }, - monacoEditorContainer: {} -}; -module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/MonacoEditor/lib/index.js b/templates/ice-design/blocks/MonacoEditor/lib/index.js deleted file mode 100644 index 7a91d3a547..0000000000 --- a/templates/ice-design/blocks/MonacoEditor/lib/index.js +++ /dev/null @@ -1,14 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _MonacoEditor = require('./MonacoEditor'); - -var _MonacoEditor2 = _interopRequireDefault(_MonacoEditor); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -exports.default = _MonacoEditor2.default; -module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/MonacoEditor/src/MonacoEditor.scss b/templates/ice-design/blocks/MonacoEditor/src/MonacoEditor.scss deleted file mode 100644 index 640620eda8..0000000000 --- a/templates/ice-design/blocks/MonacoEditor/src/MonacoEditor.scss +++ /dev/null @@ -1,5 +0,0 @@ -@charset "UTF-8"; - -.monaco-editor-container { - -} diff --git a/templates/ice-design/blocks/NotPermission/lib/NotPermission.js b/templates/ice-design/blocks/NotPermission/lib/NotPermission.js deleted file mode 100644 index 5357993ac7..0000000000 --- a/templates/ice-design/blocks/NotPermission/lib/NotPermission.js +++ /dev/null @@ -1,85 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = undefined; - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _class, _temp; - -var _react = require('react'); - -var _react2 = _interopRequireDefault(_react); - -var _card = require('@icedesign/card'); - -var _card2 = _interopRequireDefault(_card); - -require('./NotPermission.scss'); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -var NotPermission = (_temp = _class = function (_Component) { - _inherits(NotPermission, _Component); - - function NotPermission(props) { - _classCallCheck(this, NotPermission); - - var _this = _possibleConstructorReturn(this, (NotPermission.__proto__ || Object.getPrototypeOf(NotPermission)).call(this, props)); - - _this.state = {}; - return _this; - } - - _createClass(NotPermission, [{ - key: 'render', - value: function render() { - return _react2.default.createElement( - 'div', - { className: 'not-permission', style: styles.notPermission }, - _react2.default.createElement( - _card2.default, - null, - _react2.default.createElement( - 'div', - { style: styles.content }, - _react2.default.createElement('img', { - src: 'https://img.alicdn.com/tfs/TB1Gy4Yjv6H8KJjy0FjXXaXepXa-780-780.png', - style: styles.image, - alt: 'prmission' - }), - _react2.default.createElement( - 'div', - { style: styles.prompt }, - _react2.default.createElement( - 'h3', - { style: styles.title }, - '\u62B1\u6B49\uFF0C\u60A8\u65E0\u6743\u9650\uFF5E' - ), - _react2.default.createElement( - 'p', - { style: styles.description }, - '\u62B1\u6B49\uFF0C\u60A8\u6682\u65E0\u6743\u9650\uFF0C\u8BF7\u770B\u770B\u5176\u4ED6\u9875\u9762' - ) - ) - ) - ) - ); - } - }]); - - return NotPermission; -}(_react.Component), _class.displayName = 'NotPermission', _temp); -exports.default = NotPermission; - - -var styles = { content: { display: 'flex', justifyContent: 'center', alignItems: 'center', minHeight: '500px' }, image: { width: '260px', height: '260px', marginRight: '50px' }, title: { color: '#333', fontSize: '24px', margin: '20px 0' }, description: { color: '#666' }, notPermission: {} }; -module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/NotPermission/lib/index.js b/templates/ice-design/blocks/NotPermission/lib/index.js deleted file mode 100644 index 1df330f422..0000000000 --- a/templates/ice-design/blocks/NotPermission/lib/index.js +++ /dev/null @@ -1,14 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _NotPermission = require('./NotPermission'); - -var _NotPermission2 = _interopRequireDefault(_NotPermission); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -exports.default = _NotPermission2.default; -module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/NotPermission/src/NotPermission.scss b/templates/ice-design/blocks/NotPermission/src/NotPermission.scss deleted file mode 100644 index c7e9b8ffd1..0000000000 --- a/templates/ice-design/blocks/NotPermission/src/NotPermission.scss +++ /dev/null @@ -1,5 +0,0 @@ -@charset "UTF-8"; - -.not-permission { - -} diff --git a/templates/ice-design/blocks/OperationTable/lib/DialogDecorator.js b/templates/ice-design/blocks/OperationTable/lib/DialogDecorator.js deleted file mode 100644 index 0d7248d9af..0000000000 --- a/templates/ice-design/blocks/OperationTable/lib/DialogDecorator.js +++ /dev/null @@ -1,54 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - -var _react = require('react'); - -var _react2 = _interopRequireDefault(_react); - -var _reactDom = require('react-dom'); - -var _reactDom2 = _interopRequireDefault(_reactDom); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -// 包装 Dialog 类组件,使其支持 show、hide 这种命令式调用 -var CreateFuncDialog = function CreateFuncDialog(WrapperElement) { - var instance = null; - var container = null; - - return { - // 创建并打开一个弹窗,并传入初始化的 props - show: function show(props) { - // 如果已经有实例打开了,则不会继续打开 - if (instance) { - return; - } - - container = document.createElement('div'); - document.body.appendChild(container); - instance = _reactDom2.default.render(_react2.default.createElement(WrapperElement, _extends({}, props, { visible: true })), container); - }, - // 隐藏并销毁弹窗 - hide: function hide() { - if (instance) { - instance.setState({ - visible: false - }, function () { - setTimeout(function () { - _reactDom2.default.unmountComponentAtNode(container); - instance = null; - container.parentNode.removeChild(container); - }, 1000); - }); - } - } - }; -}; - -exports.default = CreateFuncDialog; -module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/OperationTable/lib/EditorInfoDialog.js b/templates/ice-design/blocks/OperationTable/lib/EditorInfoDialog.js deleted file mode 100644 index 5830133b98..0000000000 --- a/templates/ice-design/blocks/OperationTable/lib/EditorInfoDialog.js +++ /dev/null @@ -1,163 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _react = require('react'); - -var _react2 = _interopRequireDefault(_react); - -var _propTypes = require('prop-types'); - -var _propTypes2 = _interopRequireDefault(_propTypes); - -var _DialogDecorator = require('./DialogDecorator'); - -var _DialogDecorator2 = _interopRequireDefault(_DialogDecorator); - -var _formBinder = require('@icedesign/form-binder'); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -var Dialog = require('@icedesign/base/lib/dialog'); - -var Input = require('@icedesign/base/lib/input'); - -var Select = require('@icedesign/base/lib/select'); - -var Grid = require('@icedesign/base/lib/grid'); - -var Col = Grid.Col, - Row = Grid.Row; - - -var typeData = [{ label: '清单', value: '清单' }, { label: '单品', value: '单品' }]; - -var FormDialog = function (_Component) { - _inherits(FormDialog, _Component); - - function FormDialog(props) { - _classCallCheck(this, FormDialog); - - var _this = _possibleConstructorReturn(this, (FormDialog.__proto__ || Object.getPrototypeOf(FormDialog)).call(this, props)); - - _this.onFormChange = function (value) { - _this.setState({ - value: value - }); - }; - - _this.onOkHandler = function () { - _this.props.onOk && _this.props.onOk(_this.state.value); - }; - - _this.state = { - visible: props.visible, - value: props.value - }; - return _this; - } - - _createClass(FormDialog, [{ - key: 'render', - value: function render() { - return _react2.default.createElement( - Dialog, - { - title: '\u7F16\u8F91\u6570\u636E', - onClose: this.props.onClose, - onCancel: this.props.onCancel, - onOk: this.onOkHandler, - visible: this.state.visible, - style: { width: 400 } - }, - _react2.default.createElement( - _formBinder.FormBinderWrapper, - { - value: this.state.value, - onChange: this.onFormChange - }, - _react2.default.createElement( - 'div', - null, - _react2.default.createElement( - Row, - null, - _react2.default.createElement( - Col, - { span: 4 }, - _react2.default.createElement( - 'span', - { style: styles.label }, - '\u6807\u9898' - ) - ), - _react2.default.createElement( - Col, - { span: 18 }, - _react2.default.createElement( - _formBinder.FormBinder, - { required: true, max: 20, message: '\u5F53\u524D\u6807\u9898\u5FC5\u586B' }, - _react2.default.createElement(Input, { style: styles.formField, name: 'title' }) - ), - _react2.default.createElement(_formBinder.FormError, { name: 'title' }) - ) - ), - _react2.default.createElement( - Row, - { style: styles.row }, - _react2.default.createElement( - Col, - { span: 4 }, - _react2.default.createElement( - 'span', - { style: styles.label }, - '\u7C7B\u578B' - ) - ), - _react2.default.createElement( - Col, - { span: 18 }, - _react2.default.createElement( - _formBinder.FormBinder, - null, - _react2.default.createElement(Select, { - dataSource: typeData, - style: styles.formField, - name: 'type' - }) - ) - ) - ) - ) - ) - ); - } - }]); - - return FormDialog; -}(_react.Component); - -var styles = { - row: { - marginTop: '10px' - }, - label: { - lineHeight: '30px' - }, - formField: { - width: '100%' - } -}; - -exports.default = (0, _DialogDecorator2.default)(FormDialog); -module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/OperationTable/lib/OperationTable.js b/templates/ice-design/blocks/OperationTable/lib/OperationTable.js deleted file mode 100644 index 84cbe90448..0000000000 --- a/templates/ice-design/blocks/OperationTable/lib/OperationTable.js +++ /dev/null @@ -1,286 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = undefined; - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _dec, _class, _class2, _temp; - -var _react = require('react'); - -var _react2 = _interopRequireDefault(_react); - -var _propTypes = require('prop-types'); - -var _propTypes2 = _interopRequireDefault(_propTypes); - -require('./OperationTable.scss'); - -var _card = require('@icedesign/card'); - -var _card2 = _interopRequireDefault(_card); - -var _img = require('@icedesign/img'); - -var _img2 = _interopRequireDefault(_img); - -var _dataBinder = require('@icedesign/data-binder'); - -var _dataBinder2 = _interopRequireDefault(_dataBinder); - -var _label = require('@icedesign/label'); - -var _label2 = _interopRequireDefault(_label); - -var _EditorInfoDialog = require('./EditorInfoDialog'); - -var _EditorInfoDialog2 = _interopRequireDefault(_EditorInfoDialog); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -var Table = require('@icedesign/base/lib/table'); - -var Pagination = require('@icedesign/base/lib/pagination'); - -var Button = require('@icedesign/base/lib/button'); - -var Icon = require('@icedesign/base/lib/icon'); - -// 详细用法请参见 http://ice.alibaba-inc.com/modules/ice-data-binder -var OperationTable = (_dec = (0, _dataBinder2.default)({ - tableData: { - // 详细请求配置请参见 https://github.com/axios/axios - url: '/mock/operation-table-list.json', - params: { - page: 1 - }, - defaultBindingData: { - list: [], - total: 100, - pageSize: 10, - currentPage: 1 - } - }, - updateTableData: { - url: '/mock/update-table-item.json' - } -}), _dec(_class = (_temp = _class2 = function (_Component) { - _inherits(OperationTable, _Component); - - function OperationTable(props) { - _classCallCheck(this, OperationTable); - - var _this = _possibleConstructorReturn(this, (OperationTable.__proto__ || Object.getPrototypeOf(OperationTable)).call(this, props)); - - _this.fetchData = function (_ref) { - var page = _ref.page; - - _this.props.updateBindingData('tableData', { - data: { - page: page - } - }); - }; - - _this.renderTitle = function (value, index, record) { - return _react2.default.createElement( - 'div', - { - style: styles.todo0 - }, - _react2.default.createElement( - 'div', - null, - _react2.default.createElement(_img2.default, { src: record.cover, width: 48, height: 48 }) - ), - _react2.default.createElement( - 'span', - { - style: styles.todo1 - }, - record.title - ) - ); - }; - - _this.editItem = function (record, e) { - e.preventDefault(); - _EditorInfoDialog2.default.show({ - value: record, - onOk: function onOk(value) { - console.log('value', value); - // todo send to api - _this.props.updateBindingData('updateTableData', { - params: { - // 复杂数据结构需要 JSON stringify - newItem: JSON.stringify(value) - } - }, function () { - // 更新完成之后,可以重新刷新列表接口 - _this.props.updateBindingData('tableData', { - data: { - page: 1 - } - }); - _EditorInfoDialog2.default.hide(); - }); - }, - onClose: function onClose() { - _EditorInfoDialog2.default.hide(); - }, - onCancel: function onCancel() { - _EditorInfoDialog2.default.hide(); - } - }); - }; - - _this.renderOperations = function (value, index, record) { - return _react2.default.createElement( - 'div', - { className: 'operation-table-operation', style: styles.operationTableOperation }, - _react2.default.createElement( - 'span', - { - onClick: _this.editItem.bind(_this, record), - title: '\u7F16\u8F91', - className: 'operation-table-operation-item', - style: styles.operationTableOperationItem - }, - _react2.default.createElement(Icon, { size: 'xs', type: 'edit' }) - ), - _react2.default.createElement( - 'span', - { title: '\u5220\u9664', className: 'operation-table-operation-item', style: styles.operationTableOperationItem }, - _react2.default.createElement(Icon, { size: 'xs', type: 'close' }) - ), - _react2.default.createElement( - 'span', - { title: '\u6536\u85CF', className: 'operation-table-operation-item', style: styles.operationTableOperationItem }, - _react2.default.createElement(Icon, { size: 'xs', type: 'favorites-filling' }) - ) - ); - }; - - _this.renderStatus = function (value, index, record) { - return _react2.default.createElement( - _label2.default, - { inverse: false, status: 'default' }, - value - ); - }; - - _this.changePage = function (currentPage) { - _this.fetchData({ - page: currentPage - }); - }; - - _this.state = {}; - return _this; - } - - // ICE: React Component 的生命周期 - // http://ice.alibaba-inc.com/docs/guide/intro-react#React-组件的生命周期 - - - _createClass(OperationTable, [{ - key: 'componentWillMount', - value: function componentWillMount() {} - }, { - key: 'componentDidMount', - value: function componentDidMount() { - this.fetchData({ - page: 1 - }); - } - }, { - key: 'componentWillReceiveProps', - value: function componentWillReceiveProps(nextProps, nextContext) {} - }, { - key: 'shouldComponentUpdate', - value: function shouldComponentUpdate(nextProps, nextState) { - return true; - } - }, { - key: 'componentWillUnmount', - value: function componentWillUnmount() {} - }, { - key: 'render', - value: function render() { - var tableData = this.props.bindingData.tableData; - - return _react2.default.createElement( - 'div', - { className: 'operation-table', style: styles.operationTable }, - _react2.default.createElement( - _card2.default, - { style: styles.todo2 }, - _react2.default.createElement( - Table, - { - dataSource: tableData.list, - isLoading: tableData.__loading, - className: 'basic-table', - style: styles.basicTable, - hasBorder: false - }, - _react2.default.createElement(Table.Column, { - title: '\u95EE\u9898\u63CF\u8FF0', - cell: this.renderTitle, - width: 320 - }), - _react2.default.createElement(Table.Column, { title: '\u95EE\u9898\u5206\u7C7B', dataIndex: 'type', width: 85 }), - _react2.default.createElement(Table.Column, { - title: '\u53D1\u5E03\u65F6\u95F4', - dataIndex: 'publishTime', - width: 150 - }), - _react2.default.createElement(Table.Column, { - title: '\u72B6\u6001', - dataIndex: 'publishStatus', - width: 85, - cell: this.renderStatus - }), - _react2.default.createElement(Table.Column, { - title: '\u64CD\u4F5C', - dataIndex: 'operation', - width: 150, - cell: this.renderOperations - }) - ), - _react2.default.createElement( - 'div', - { - style: styles.todo3 - }, - _react2.default.createElement(Pagination, { - current: tableData.currentPage, - pageSize: tableData.pageSize, - total: tableData.total, - onChange: this.changePage - }) - ) - ) - ); - } - }]); - - return OperationTable; -}(_react.Component), _class2.displayName = 'OperationTable', _class2.propTypes = { - style: _propTypes2.default.object, - className: _propTypes2.default.string -}, _class2.defaultProps = {}, _temp)) || _class); -exports.default = OperationTable; - - -var styles = { operationTableOperation: { 'a {MarginRight': '12px', textDecoration: 'none' }, operationTableOperationItem: { display: 'inline-block', width: '24px', height: '24px', borderRadius: '999px', color: '#929292', background: '#f2f2f2', textAlign: 'center', cursor: 'pointer', lineHeight: '24px', marginRight: '6px', transition: 'all ease 0' }, operationTable: {}, todo0: { display: 'flex', flexDirection: 'row' }, todo1: { marginLeft: '10px', lineHeight: '20px' }, todo2: { padding: '10px 10px 20px 10px' }, todo3: { textAlign: 'right', paddingTop: '26px' } }; -module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/OperationTable/lib/index.js b/templates/ice-design/blocks/OperationTable/lib/index.js deleted file mode 100644 index c208d69dd0..0000000000 --- a/templates/ice-design/blocks/OperationTable/lib/index.js +++ /dev/null @@ -1,14 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _OperationTable = require('./OperationTable'); - -var _OperationTable2 = _interopRequireDefault(_OperationTable); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -exports.default = _OperationTable2.default; -module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/OperationTable/src/OperationTable.scss b/templates/ice-design/blocks/OperationTable/src/OperationTable.scss deleted file mode 100644 index 836ff99138..0000000000 --- a/templates/ice-design/blocks/OperationTable/src/OperationTable.scss +++ /dev/null @@ -1,28 +0,0 @@ -@charset "UTF-8"; - -.operation-table { - .operation-table-operation { - a { - margin-right: 12px; - text-decoration: none; - } - } - .operation-table-operation-item { - display: inline-block; - width: 24px; - height: 24px; - border-radius: 999px; - color: #929292; - background: #f2f2f2; - text-align: center; - cursor: pointer; - line-height: 24px; - margin-right: 6px; - transition: all ease 0.3s; - } - .next-table-row:hover { - .operation-table-operation-item { - background: #fff; - } - } -} diff --git a/templates/ice-design/blocks/OrderList/lib/OrderList.js b/templates/ice-design/blocks/OrderList/lib/OrderList.js deleted file mode 100644 index 2374c1cdd5..0000000000 --- a/templates/ice-design/blocks/OrderList/lib/OrderList.js +++ /dev/null @@ -1,199 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = undefined; - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _class, _temp; - -var _react = require('react'); - -var _react2 = _interopRequireDefault(_react); - -var _propTypes = require('prop-types'); - -var _propTypes2 = _interopRequireDefault(_propTypes); - -var _axios = require('axios'); - -var _axios2 = _interopRequireDefault(_axios); - -var _card = require('@icedesign/card'); - -var _card2 = _interopRequireDefault(_card); - -require('./OrderList.scss'); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -var Table = require('@icedesign/base/lib/table'); - -var OrderList = (_temp = _class = function (_Component) { - _inherits(OrderList, _Component); - - function OrderList(props) { - _classCallCheck(this, OrderList); - - var _this = _possibleConstructorReturn(this, (OrderList.__proto__ || Object.getPrototypeOf(OrderList)).call(this, props)); - - _this.getTableData = function () { - _axios2.default.get('/mock/order-list.json').then(function (response) { - _this.setState({ - tableData: response.data.data - }); - }).catch(function (error) { - console.log(error); - }); - }; - - _this.renderOrderInfo = function (product) { - return _react2.default.createElement( - 'div', - { className: 'order-info', style: styles.orderInfo }, - _react2.default.createElement('img', { src: product[0].avatar, className: 'order-img', style: styles.orderImg }), - _react2.default.createElement( - 'div', - { className: 'order-description', style: styles.orderDescription }, - product[0].description - ) - ); - }; - - _this.renderOrderPrice = function (price) { - return _react2.default.createElement( - 'b', - null, - price - ); - }; - - _this.renderOrderNumber = function (record) { - return _react2.default.createElement( - 'div', - null, - record.product[0].title - ); - }; - - _this.getRowClassName = function (record) { - if (record.status == 0) { - return 'highlight-row'; - } - }; - - _this.renderOperation = function () { - return _react2.default.createElement( - 'a', - { href: '/', className: 'order-detail-link', style: styles.orderDetailLink }, - '\u67E5\u770B' - ); - }; - - _this.handleRowSelection = function (selectedRowKeys, records) { - console.log('selectedRowKeys:', selectedRowKeys); - console.log('records:', records); - }; - - _this.state = { - tableData: [] - }; - return _this; - } - - _createClass(OrderList, [{ - key: 'componentDidMount', - value: function componentDidMount() { - this.getTableData(); - } - - /** - * 异步获取数据 - */ - - - /** - * 渲染订单信息 - */ - - - /** - * 渲染订单价格 - */ - - - /** - * 渲染订单单号 - */ - - - /** - * 设置每一行的样式名称 - */ - - - /** - * 渲染操作行 - */ - - - /** - * 选中当前行的回调 - */ - - }, { - key: 'render', - value: function render() { - var rowSelection = { - onChange: this.handleRowSelection, - mode: 'single' - }; - - var tableData = this.state.tableData; - - - return _react2.default.createElement( - 'div', - { className: 'order-list', style: styles.orderList }, - _react2.default.createElement( - _card2.default, - null, - _react2.default.createElement( - 'div', - { className: 'order-list-head', style: styles.orderListHead }, - '\u8BA2\u5355\u5217\u8868' - ), - _react2.default.createElement( - Table, - { dataSource: tableData, - getRowClassName: this.getRowClassName, - rowSelection: rowSelection - }, - _react2.default.createElement(Table.GroupHeader, { cell: this.renderOrderNumber }), - _react2.default.createElement(Table.Column, { cell: this.renderOrderInfo, title: '\u5546\u54C1', dataIndex: 'product' }), - _react2.default.createElement(Table.Column, { cell: this.renderOrderPrice, title: '\u4EF7\u683C', dataIndex: 'price', width: 120 }), - _react2.default.createElement(Table.Column, { cell: this.renderOperation, title: '\u64CD\u4F5C', width: 100 }) - ) - ) - ); - } - }]); - - return OrderList; -}(_react.Component), _class.displayName = 'OrderList', _class.propTypes = { - style: _propTypes2.default.object, - className: _propTypes2.default.string -}, _class.defaultProps = {}, _temp); -exports.default = OrderList; - - -var styles = { "orderImg": { "width": "60px", "height": "60px", "float": "left", "marginRight": "10px" }, "orderDetailLink": { "textDecoration": "none" }, "orderList": {}, "orderListHead": { "marginBottom": "20px", "color": "#666" } }; -module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/OrderList/lib/index.js b/templates/ice-design/blocks/OrderList/lib/index.js deleted file mode 100644 index d3215494ea..0000000000 --- a/templates/ice-design/blocks/OrderList/lib/index.js +++ /dev/null @@ -1,14 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _OrderList = require('./OrderList'); - -var _OrderList2 = _interopRequireDefault(_OrderList); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -exports.default = _OrderList2.default; -module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/OrderList/src/OrderList.scss b/templates/ice-design/blocks/OrderList/src/OrderList.scss deleted file mode 100644 index 750d52fbb1..0000000000 --- a/templates/ice-design/blocks/OrderList/src/OrderList.scss +++ /dev/null @@ -1,23 +0,0 @@ -@charset "UTF-8"; - -.order-list { - .next-table th, - .next-table td { - border: 0; - } - - .order-list-head { - margin-bottom: 20px; - color: #666; - } - .order-detail-link { - text-decoration: none; - } - - .order-img { - width: 60px; - height: 60px; - float: left; - margin-right: 10px; - } -} diff --git a/templates/ice-design/blocks/OurTeam/lib/OurTeam.js b/templates/ice-design/blocks/OurTeam/lib/OurTeam.js deleted file mode 100644 index 5b24eb9d44..0000000000 --- a/templates/ice-design/blocks/OurTeam/lib/OurTeam.js +++ /dev/null @@ -1,152 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = undefined; - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _class, _temp; - -var _react = require('react'); - -var _react2 = _interopRequireDefault(_react); - -var _propTypes = require('prop-types'); - -var _propTypes2 = _interopRequireDefault(_propTypes); - -var _card = require('@icedesign/card'); - -var _card2 = _interopRequireDefault(_card); - -require('./OurTeam.scss'); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -var generatorData = function generatorData(count) { - return Array.from({ length: count }).map(function (item, index) { - return { - name: '\u6210\u5458' + (index + 1), - description: '描述文案描述文案描述文案描述文案描述文案', - imgUrl: 'https://img.alicdn.com/tfs/TB1cUfViZrI8KJjy0FhXXbfnpXa-450-456.png' - }; - }); -}; - -var OurTeam = (_temp = _class = function (_Component) { - _inherits(OurTeam, _Component); - - function OurTeam(props) { - _classCallCheck(this, OurTeam); - - var _this = _possibleConstructorReturn(this, (OurTeam.__proto__ || Object.getPrototypeOf(OurTeam)).call(this, props)); - - _this.state = {}; - return _this; - } - - // ICE: React Component 的生命周期 - // http://ice.alibaba-inc.com/docs/guide/intro-react#React-组件的生命周期 - - - _createClass(OurTeam, [{ - key: 'componentWillMount', - value: function componentWillMount() {} - }, { - key: 'componentDidMount', - value: function componentDidMount() {} - }, { - key: 'componentWillReceiveProps', - value: function componentWillReceiveProps(nextProps, nextContext) {} - }, { - key: 'shouldComponentUpdate', - value: function shouldComponentUpdate(nextProps, nextState) { - return true; - } - }, { - key: 'componentWillUnmount', - value: function componentWillUnmount() {} - }, { - key: 'render', - value: function render() { - var data = generatorData(4); - return _react2.default.createElement( - 'div', - { className: 'our-team', style: styles.ourTeam }, - _react2.default.createElement( - _card2.default, - null, - _react2.default.createElement( - 'div', - { style: styles.head }, - _react2.default.createElement( - 'h2', - { style: styles.title }, - '\u6211\u4EEC\u7684\u56E2\u961F' - ), - _react2.default.createElement( - 'p', - { style: styles.intro }, - '\u6211\u4EEC\u662F\u4E00\u652F\u5145\u6EE1\u6FC0\u60C5\u3001\u5FD7\u5411\u8FDC\u5927\u3001\u6000\u63E3\u68A6\u60F3\u7684\u56E2\u961F\uFF0C\u4E5F\u662F\u4E00\u4E2A\u601D\u7EF4\u6D3B\u8DC3\u3001\u671D\u6C14\u84EC\u52C3\u3001\u56E2\u7ED3\u4E92\u52A9\u7684\u5927\u5BB6\u5EAD\u3002' - ) - ), - _react2.default.createElement( - 'div', - { style: styles.items }, - data.map(function (item, index) { - return _react2.default.createElement( - 'div', - { style: styles.item, key: index }, - _react2.default.createElement('img', { src: item.imgUrl, style: styles.avatar }), - _react2.default.createElement( - 'div', - { style: styles.baseInfo }, - _react2.default.createElement( - 'h5', - { style: styles.name }, - item.name - ), - _react2.default.createElement( - 'p', - { style: styles.description }, - item.description - ) - ) - ); - }) - ) - ) - ); - } - }]); - - return OurTeam; -}(_react.Component), _class.displayName = 'OurTeam', _class.propTypes = {}, _class.defaultProps = {}, _temp); -exports.default = OurTeam; - - -var styles = { - head: { width: '50%', margin: '0 auto' }, - title: { textAlign: 'center', fontSize: '28px' }, - intro: { textAlign: 'center' }, - items: { display: 'flex', flexWrap: 'wrap' }, - item: { display: 'flex', width: '50%', padding: '0 40px', margin: '40px 0' }, - baseInfo: { display: 'flex', flexDirection: 'column', justifyContent: 'center', paddingLeft: '25px' }, - name: { - fontWeight: 'bold', - margin: '0 0 10px', - fontSize: '15px' - }, - description: { margin: 0 }, - avatar: { width: '150px', height: '150px' }, - ourTeam: {} -}; -module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/OurTeam/lib/index.js b/templates/ice-design/blocks/OurTeam/lib/index.js deleted file mode 100644 index 019de5d2fc..0000000000 --- a/templates/ice-design/blocks/OurTeam/lib/index.js +++ /dev/null @@ -1,14 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _OurTeam = require('./OurTeam'); - -var _OurTeam2 = _interopRequireDefault(_OurTeam); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -exports.default = _OurTeam2.default; -module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/OurTeam/src/OurTeam.scss b/templates/ice-design/blocks/OurTeam/src/OurTeam.scss deleted file mode 100644 index 2f24092239..0000000000 --- a/templates/ice-design/blocks/OurTeam/src/OurTeam.scss +++ /dev/null @@ -1,5 +0,0 @@ -@charset "UTF-8"; - -.our-team { - -} diff --git a/templates/ice-design/blocks/PictureTextList/lib/PictureTextList.js b/templates/ice-design/blocks/PictureTextList/lib/PictureTextList.js deleted file mode 100644 index 13c533ab62..0000000000 --- a/templates/ice-design/blocks/PictureTextList/lib/PictureTextList.js +++ /dev/null @@ -1,144 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = undefined; - -var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _class, _temp; - -var _react = require('react'); - -var _react2 = _interopRequireDefault(_react); - -var _card = require('@icedesign/card'); - -var _card2 = _interopRequireDefault(_card); - -var _SingleItem = require('./SingleItem'); - -var _SingleItem2 = _interopRequireDefault(_SingleItem); - -require('./PictureTextList.scss'); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -var Pagination = require('@icedesign/base/lib/pagination'); - -var dataSource = [{ - title: '衬衫女雪纺上衣2017大纺上衣2017大纺上衣2017大', - extra: '预计佣金 ¥10', - price: '¥89', - image: '//img.alicdn.com/bao/uploaded/i3/120976213/TB2O4nSnblmpuFjSZFlXXbdQXXa_!!120976213.jpg_240x240.jpg' -}, { - title: '衬衫女雪纺上衣2017大纺上衣2017大纺上衣2017大', - extra: '预计佣金 ¥10', - price: '¥89', - image: '//img.alicdn.com/bao/uploaded/i4/120976213/TB2GiVsdS0mpuFjSZPiXXbssVXa_!!120976213.jpg_240x240.jpg' -}, { - title: '衬衫女雪纺上衣2017大纺上衣2017大纺上衣2017大', - extra: '预计佣金 ¥10', - price: '¥89', - image: '//img.alicdn.com/bao/uploaded/i3/120976213/TB2bxHGtpXXXXXVXXXXXXXXXXXX_!!120976213.jpg_240x240.jpg' -}, { - title: '衬衫女雪纺上衣2017大纺上衣2017大纺上衣2017大', - extra: '预计佣金 ¥10', - price: '¥89', - image: '//img.alicdn.com/bao/uploaded/i4/120976213/TB2bEcHnXXXXXbgXXXXXXXXXXXX_!!120976213.jpg_100x100.jpg' -}, { - title: '衬衫女雪纺上衣2017大纺上衣2017大纺上衣2017大', - extra: '预计佣金 ¥10', - price: '¥89', - image: '//img.alicdn.com/bao/uploaded/i2/TB11DjAIFXXXXaTXFXXXXXXXXXX_!!0-item_pic.jpg_100x100.jpg' -}, { - title: '衬衫女雪纺上衣2017大纺上衣2017大纺上衣2017大', - extra: '预计佣金 ¥10', - price: '¥89', - image: '//img.alicdn.com/bao/uploaded/i4/TB1GiPSinJ_SKJjSZPiYXH3LpXa_M2.SS2_100x100.jpg' -}]; - -var PictureTextList = (_temp = _class = function (_Component) { - _inherits(PictureTextList, _Component); - - function PictureTextList(props) { - _classCallCheck(this, PictureTextList); - - var _this = _possibleConstructorReturn(this, (PictureTextList.__proto__ || Object.getPrototypeOf(PictureTextList)).call(this, props)); - - _this.renderItem = function (item, index) { - return _react2.default.createElement(_SingleItem2.default, _extends({ key: index }, item)); - }; - - _this.renderItemRow = function () { - return _react2.default.createElement( - 'div', - { style: styles.row }, - dataSource.map(_this.renderItem) - ); - }; - - _this.state = {}; - return _this; - } - - _createClass(PictureTextList, [{ - key: 'render', - value: function render() { - return _react2.default.createElement( - 'div', - { className: 'picture-text-list' }, - _react2.default.createElement( - _card2.default, - { style: styles.card }, - this.renderItemRow(), - this.renderItemRow(), - this.renderItemRow(), - this.renderItemRow(), - _react2.default.createElement( - 'div', - { style: styles.paginationContainer }, - _react2.default.createElement(Pagination, null) - ) - ) - ); - } - }]); - - return PictureTextList; -}(_react.Component), _class.displayName = 'PictureTextList', _class.propTypes = {}, _class.defaultProps = {}, _temp); -exports.default = PictureTextList; - - -var styles = { - row: { - margin: '0 10px 10px 10px', - display: 'flex', - flexDirection: 'row', - justifyContent: 'space-around' - }, - cardStyle: { - display: 'flex', - margin: '20px', - padding: '0 30px' - }, - card: { - padding: '20px 10px' - }, - paginationContainer: { - marginTop: '25px', - display: 'flex', - flexDirection: 'row', - justifyContent: 'flex-end' - } -}; -module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/PictureTextList/lib/SingleItem/SingleItem.js b/templates/ice-design/blocks/PictureTextList/lib/SingleItem/SingleItem.js deleted file mode 100644 index de7db00f8c..0000000000 --- a/templates/ice-design/blocks/PictureTextList/lib/SingleItem/SingleItem.js +++ /dev/null @@ -1,120 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = undefined; - -var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _class, _temp; - -var _react = require('react'); - -var _react2 = _interopRequireDefault(_react); - -var _img = require('@icedesign/img'); - -var _img2 = _interopRequireDefault(_img); - -require('./SingleItem.scss'); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -var SingleItem = (_temp = _class = function (_Component) { - _inherits(SingleItem, _Component); - - function SingleItem() { - _classCallCheck(this, SingleItem); - - return _possibleConstructorReturn(this, (SingleItem.__proto__ || Object.getPrototypeOf(SingleItem)).apply(this, arguments)); - } - - _createClass(SingleItem, [{ - key: 'render', - value: function render() { - var _props = this.props, - style = _props.style, - _props$className = _props.className, - className = _props$className === undefined ? '' : _props$className, - active = _props.active, - title = _props.title, - image = _props.image, - price = _props.price, - extra = _props.extra; - - return _react2.default.createElement( - 'div', - { className: className + ' single-item', - style: _extends({}, style, { - width: '165px', - height: '230px', - cursor: 'pointer', - borderRadius: '4px', - backgroundColor: active ? '#f4f4f4' : undefined - }) - }, - _react2.default.createElement(_img2.default, { - src: image, - width: 149, - height: 149, - style: { margin: '8px' } - }), - _react2.default.createElement( - 'div', - { style: { - textOverflow: 'ellipsis', - overflow: 'hidden', - whiteSpace: 'nowrap', - color: '#999', - fontSize: '12px', - lineHeight: '18px', - margin: '0 14px' - } - }, - title - ), - _react2.default.createElement( - 'div', - { style: { - textOverflow: 'ellipsis', - overflow: 'hidden', - whiteSpace: 'nowrap', - color: '#999', - lineHeight: '18px', - fontSize: '12px', - margin: '0 14px' - } - }, - price - ), - _react2.default.createElement( - 'div', - { style: { - textOverflow: 'ellipsis', - overflow: 'hidden', - whiteSpace: 'nowrap', - lineHeight: '18px', - color: '#C0C0C0', - fontSize: '12px', - margin: '0 14px' - } - }, - extra - ) - ); - } - }]); - - return SingleItem; -}(_react.Component), _class.displayName = 'SingleItem', _temp); -exports.default = SingleItem; -module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/PictureTextList/lib/SingleItem/index.js b/templates/ice-design/blocks/PictureTextList/lib/SingleItem/index.js deleted file mode 100644 index f66f9a95ef..0000000000 --- a/templates/ice-design/blocks/PictureTextList/lib/SingleItem/index.js +++ /dev/null @@ -1,15 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = undefined; - -var _SingleItem = require('./SingleItem'); - -var _SingleItem2 = _interopRequireDefault(_SingleItem); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -exports.default = _SingleItem2.default; -module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/PictureTextList/lib/index.js b/templates/ice-design/blocks/PictureTextList/lib/index.js deleted file mode 100644 index c31201bf49..0000000000 --- a/templates/ice-design/blocks/PictureTextList/lib/index.js +++ /dev/null @@ -1,14 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _PictureTextList = require('./PictureTextList'); - -var _PictureTextList2 = _interopRequireDefault(_PictureTextList); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -exports.default = _PictureTextList2.default; -module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/PictureTextList/src/PictureTextList.scss b/templates/ice-design/blocks/PictureTextList/src/PictureTextList.scss deleted file mode 100644 index ec27b1194d..0000000000 --- a/templates/ice-design/blocks/PictureTextList/src/PictureTextList.scss +++ /dev/null @@ -1,5 +0,0 @@ -@charset "UTF-8"; - -.picture-text-list { - -} diff --git a/templates/ice-design/blocks/PictureTextList/src/SingleItem/SingleItem.scss b/templates/ice-design/blocks/PictureTextList/src/SingleItem/SingleItem.scss deleted file mode 100644 index 9d928bd4d4..0000000000 --- a/templates/ice-design/blocks/PictureTextList/src/SingleItem/SingleItem.scss +++ /dev/null @@ -1,6 +0,0 @@ -// SingleItem style -.single-item { - &:hover { - background-color: #f4f4f4; - } -} diff --git a/templates/ice-design/blocks/PieDoughnutChart/lib/PieDoughnutChart.js b/templates/ice-design/blocks/PieDoughnutChart/lib/PieDoughnutChart.js deleted file mode 100644 index a35c1bd3a2..0000000000 --- a/templates/ice-design/blocks/PieDoughnutChart/lib/PieDoughnutChart.js +++ /dev/null @@ -1,149 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = undefined; - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _class, _temp; - -var _react = require('react'); - -var _react2 = _interopRequireDefault(_react); - -var _card = require('@icedesign/card'); - -var _card2 = _interopRequireDefault(_card); - -var _bizcharts = require('bizcharts'); - -var _dataSet = require('@antv/data-set'); - -var _dataSet2 = _interopRequireDefault(_dataSet); - -require('./PieDoughnutChart.scss'); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -var Grid = require('@icedesign/base/lib/grid'); - -var Row = Grid.Row, - Col = Grid.Col; -var DataView = _dataSet2.default.DataView; -var PieDoughnutChart = (_temp = _class = function (_Component) { - _inherits(PieDoughnutChart, _Component); - - function PieDoughnutChart() { - _classCallCheck(this, PieDoughnutChart); - - return _possibleConstructorReturn(this, (PieDoughnutChart.__proto__ || Object.getPrototypeOf(PieDoughnutChart)).apply(this, arguments)); - } - - _createClass(PieDoughnutChart, [{ - key: 'render', - value: function render() { - var data = [{ genre: '男', sold: 500 }, { genre: '女', sold: 200 }, { genre: '未知', sold: 200 }]; - - var data2 = [{ genre: '10~20岁', sold: 500 }, { genre: '20~30岁', sold: 200 }, { genre: '40~50岁', sold: 100 }, { genre: '60~70岁', sold: 40 }, { genre: '80~90岁', sold: 30 }]; - var dv = new DataView(); - var dv2 = new DataView(); - dv.source(data).transform({ - type: 'percent', - field: 'sold', - dimension: 'genre', - as: 'percent' - }); - - dv2.source(data2).transform({ - type: 'percent', - field: 'sold', - dimension: 'genre', - as: 'percent' - }); - - var cols = { - percent: { - formatter: function formatter(val) { - val = (val * 100).toFixed(2) + '%'; - return val; - } - } - }; - - return _react2.default.createElement( - 'div', - { className: 'pie-doughnut-chart' }, - _react2.default.createElement( - Row, - { style: { padding: 0 } }, - _react2.default.createElement( - Col, - { span: '12' }, - _react2.default.createElement( - _card2.default, - { className: 'tab-card', title: '\u6027\u522B\u5360\u6BD4' }, - _react2.default.createElement( - _bizcharts.Chart, - { - width: 400, - height: 300, - data: dv, - scale: cols, - padding: [80, 100, 80, 80], - forceFit: true - }, - _react2.default.createElement(_bizcharts.Coord, { type: 'theta', radius: 0.75 }), - _react2.default.createElement(_bizcharts.Axis, { name: 'percent' }), - _react2.default.createElement(_bizcharts.Legend, { position: 'bottom' }), - _react2.default.createElement(_bizcharts.Tooltip, { - showTitle: false, - itemTpl: '
  • {name}: {value}
  • ' - }), - _react2.default.createElement(_bizcharts.Geom, { type: 'intervalStack', position: 'percent', color: 'genre' }) - ) - ) - ), - _react2.default.createElement( - Col, - { span: '12' }, - _react2.default.createElement( - _card2.default, - { className: 'tab-card', title: '\u5E74\u9F84\u5206\u5E03' }, - _react2.default.createElement( - _bizcharts.Chart, - { - width: 450, - height: 300, - data: dv2, - scale: cols, - padding: [80, 100, 80, 80], - forceFit: true - }, - _react2.default.createElement(_bizcharts.Coord, { type: 'theta', radius: 0.75 }), - _react2.default.createElement(_bizcharts.Axis, { name: 'percent' }), - _react2.default.createElement(_bizcharts.Legend, { position: 'bottom' }), - _react2.default.createElement(_bizcharts.Tooltip, { - showTitle: false, - itemTpl: '
  • {name}: {value}
  • ' - }), - _react2.default.createElement(_bizcharts.Geom, { type: 'intervalStack', position: 'percent', color: 'genre' }) - ) - ) - ) - ) - ); - } - }]); - - return PieDoughnutChart; -}(_react.Component), _class.displayName = 'PieDoughnutChart', _temp); -exports.default = PieDoughnutChart; -module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/PieDoughnutChart/lib/index.js b/templates/ice-design/blocks/PieDoughnutChart/lib/index.js deleted file mode 100644 index a2a40ffa3e..0000000000 --- a/templates/ice-design/blocks/PieDoughnutChart/lib/index.js +++ /dev/null @@ -1,14 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _PieDoughnutChart = require('./PieDoughnutChart'); - -var _PieDoughnutChart2 = _interopRequireDefault(_PieDoughnutChart); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -exports.default = _PieDoughnutChart2.default; -module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/PieDoughnutChart/src/PieDoughnutChart.scss b/templates/ice-design/blocks/PieDoughnutChart/src/PieDoughnutChart.scss deleted file mode 100644 index 46f85a6fda..0000000000 --- a/templates/ice-design/blocks/PieDoughnutChart/src/PieDoughnutChart.scss +++ /dev/null @@ -1,5 +0,0 @@ -@charset "UTF-8"; - -.pie-doughnut-chart { - -} diff --git a/templates/ice-design/blocks/PriceCard/lib/PriceCard.js b/templates/ice-design/blocks/PriceCard/lib/PriceCard.js deleted file mode 100644 index 42e657bf02..0000000000 --- a/templates/ice-design/blocks/PriceCard/lib/PriceCard.js +++ /dev/null @@ -1,152 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = undefined; - -var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _class, _temp; - -var _react = require('react'); - -var _react2 = _interopRequireDefault(_react); - -var _propTypes = require('prop-types'); - -var _propTypes2 = _interopRequireDefault(_propTypes); - -var _card = require('@icedesign/card'); - -var _card2 = _interopRequireDefault(_card); - -require('./PriceCard.scss'); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -var data = [{ - title: '基本配置', - price: '99', - description: '海纳百川精选全球的高品质软件与服务,大咖云集,知识分享的开发者技术社区' -}, { - title: '标准配置', - price: '199', - description: '海纳百川精选全球的高品质软件与服务,大咖云集,知识分享的开发者技术社区' -}, { - title: '高端配置', - price: '299', - description: '海纳百川精选全球的高品质软件与服务,大咖云集,知识分享的开发者技术社区' -}]; - -var PriceCard = (_temp = _class = function (_Component) { - _inherits(PriceCard, _Component); - - function PriceCard(props) { - _classCallCheck(this, PriceCard); - - var _this = _possibleConstructorReturn(this, (PriceCard.__proto__ || Object.getPrototypeOf(PriceCard)).call(this, props)); - - _this.state = {}; - return _this; - } - - // ICE: React Component 的生命周期 - // http://ice.alibaba-inc.com/docs/guide/intro-react#React-组件的生命周期 - - - _createClass(PriceCard, [{ - key: 'componentWillMount', - value: function componentWillMount() {} - }, { - key: 'componentDidMount', - value: function componentDidMount() {} - }, { - key: 'componentWillReceiveProps', - value: function componentWillReceiveProps(nextProps, nextContext) {} - }, { - key: 'shouldComponentUpdate', - value: function shouldComponentUpdate(nextProps, nextState) { - return true; - } - }, { - key: 'componentWillUnmount', - value: function componentWillUnmount() {} - }, { - key: 'render', - value: function render() { - return _react2.default.createElement( - 'div', - { className: 'price-card', style: styles.priceCard }, - _react2.default.createElement( - 'div', - { style: styles.container }, - _react2.default.createElement( - 'div', - { style: styles.items }, - data.map(function (item, index) { - var rowLastItem = (index + 1) % 3 === 0 ? styles.rowLastItem : {}; - return _react2.default.createElement( - 'div', - _defineProperty({ - key: index, - style: _extends({}, styles.item, rowLastItem), - className: 'item' }, 'style', styles.item), - _react2.default.createElement( - 'div', - { style: styles.head }, - _react2.default.createElement( - 'h3', - { style: styles.title }, - item.title - ), - _react2.default.createElement( - 'p', - { style: styles.description }, - item.description - ) - ), - _react2.default.createElement( - 'div', - { style: styles.info }, - _react2.default.createElement( - 'p', - { style: styles.price }, - '\uFFE5', - item.price - ) - ), - _react2.default.createElement( - 'div', - { style: styles.buyBtn }, - _react2.default.createElement( - 'a', - { href: '/', style: styles.link }, - '\u7ACB\u5373\u8D2D\u4E70' - ) - ) - ); - }) - ) - ) - ); - } - }]); - - return PriceCard; -}(_react.Component), _class.displayName = 'PriceCard', _class.propTypes = {}, _class.defaultProps = {}, _temp); -exports.default = PriceCard; - - -var styles = { "container": { "background": "url(https://img.alicdn.com/tfs/TB1JGoDi3vD8KJjy0FlXXagBFXa-5040-2811.png)", "backgroundSize": "cover" }, "items": { "display": "flex", "flexWrap": "wrap", "padding": "120px 0", "width": "1080px", "margin": "0 auto" }, "item": { "width": "28%", "marginRight": "8%", "background": "#FAFAFA", "borderRadius": "6px", "paddingBottom": "50px" }, "rowLastItem": { "marginRight": 0 }, "head": { "padding": "30px 0", "textAlign": "center", "borderRadius": "6px 6px 0 0" }, "title": { "margin": "0 0 5px", "fontWeight": "bold", "fontSize": "20px" }, "price": { "margin": "0", "fontWeight": "bold", "fontSize": "22px" }, "info": { "display": "flex", "flexDirection": "column", "alignItems": "center" }, "description": { "margin": "20px auto", "lineHeight": "22px", "textAlign": "center", "width": "60%", "color": "#999" }, "buyBtn": { "display": "flex", "justifyContent": "center", "marginTop": "20px" }, "link": { "padding": "4px 15px", "background": "#3080FE", "borderRadius": "12px", "color": "#fff" }, "priceCard": {} }; -module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/PriceCard/lib/index.js b/templates/ice-design/blocks/PriceCard/lib/index.js deleted file mode 100644 index 91a6bafeda..0000000000 --- a/templates/ice-design/blocks/PriceCard/lib/index.js +++ /dev/null @@ -1,14 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _PriceCard = require('./PriceCard'); - -var _PriceCard2 = _interopRequireDefault(_PriceCard); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -exports.default = _PriceCard2.default; -module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/PriceCard/src/PriceCard.scss b/templates/ice-design/blocks/PriceCard/src/PriceCard.scss deleted file mode 100644 index 2e653c20a6..0000000000 --- a/templates/ice-design/blocks/PriceCard/src/PriceCard.scss +++ /dev/null @@ -1,5 +0,0 @@ -@charset "UTF-8"; - -.price-card { - -} diff --git a/templates/ice-design/blocks/PriceInfo/lib/PriceInfo.js b/templates/ice-design/blocks/PriceInfo/lib/PriceInfo.js deleted file mode 100644 index 6e897e2968..0000000000 --- a/templates/ice-design/blocks/PriceInfo/lib/PriceInfo.js +++ /dev/null @@ -1,161 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = undefined; - -var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _class, _temp; - -var _react = require('react'); - -var _react2 = _interopRequireDefault(_react); - -var _propTypes = require('prop-types'); - -var _propTypes2 = _interopRequireDefault(_propTypes); - -var _card = require('@icedesign/card'); - -var _card2 = _interopRequireDefault(_card); - -require('./PriceInfo.scss'); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -var data = [{ - title: '基本配置', - price: '99', - type: '微型企业', - description: '海纳百川,精选全球的高品质软件与服务,大咖云集,知识分享的开发者技术社区', - imgUrl: 'https://img.alicdn.com/tfs/TB1cUfViZrI8KJjy0FhXXbfnpXa-450-456.png' -}, { - title: '标准配置', - price: '199', - type: '中小企业', - description: '海纳百川,精选全球的高品质软件与服务,大咖云集,知识分享的开发者技术社区', - imgUrl: 'https://img.alicdn.com/tfs/TB1cUfViZrI8KJjy0FhXXbfnpXa-450-456.png' -}, { - title: '高端配置', - price: '299', - type: '大型企业', - description: '海纳百川,精选全球的高品质软件与服务,大咖云集,知识分享的开发者技术社区', - imgUrl: 'https://img.alicdn.com/tfs/TB1cUfViZrI8KJjy0FhXXbfnpXa-450-456.png' -}]; - -var PriceInfo = (_temp = _class = function (_Component) { - _inherits(PriceInfo, _Component); - - function PriceInfo(props) { - _classCallCheck(this, PriceInfo); - - var _this = _possibleConstructorReturn(this, (PriceInfo.__proto__ || Object.getPrototypeOf(PriceInfo)).call(this, props)); - - _this.state = {}; - return _this; - } - - // ICE: React Component 的生命周期 - // http://ice.alibaba-inc.com/docs/guide/intro-react#React-组件的生命周期 - - - _createClass(PriceInfo, [{ - key: 'componentWillMount', - value: function componentWillMount() {} - }, { - key: 'componentDidMount', - value: function componentDidMount() {} - }, { - key: 'componentWillReceiveProps', - value: function componentWillReceiveProps(nextProps, nextContext) {} - }, { - key: 'shouldComponentUpdate', - value: function shouldComponentUpdate(nextProps, nextState) { - return true; - } - }, { - key: 'componentWillUnmount', - value: function componentWillUnmount() {} - }, { - key: 'render', - value: function render() { - return _react2.default.createElement( - 'div', - { className: 'price-info', style: styles.priceInfo }, - _react2.default.createElement( - 'div', - { style: styles.items }, - data.map(function (item, index) { - var rowLastItem = (index + 1) % 3 === 0 ? styles.rowLastItem : {}; - return _react2.default.createElement( - 'div', - _defineProperty({ - key: index, - style: _extends({}, styles.item, rowLastItem), - className: 'item' - }, 'style', styles.item), - _react2.default.createElement( - 'div', - { style: styles.head }, - _react2.default.createElement( - 'h3', - { style: styles.title }, - item.title - ), - _react2.default.createElement( - 'p', - { style: styles.price }, - '\uFFE5', - item.price - ) - ), - _react2.default.createElement( - 'div', - { style: styles.info }, - _react2.default.createElement('img', { style: styles.image, src: item.imgUrl }), - _react2.default.createElement( - 'h5', - { style: styles.type }, - item.type - ), - _react2.default.createElement( - 'p', - { style: styles.description }, - item.description - ) - ), - _react2.default.createElement( - 'div', - { style: styles.buyBtn }, - _react2.default.createElement( - 'a', - { href: '/', style: styles.link }, - '\u7ACB\u5373\u8D2D\u4E70' - ) - ) - ); - }) - ) - ); - } - }]); - - return PriceInfo; -}(_react.Component), _class.displayName = 'PriceInfo', _class.propTypes = {}, _class.defaultProps = {}, _temp); -exports.default = PriceInfo; - - -var styles = { items: { display: 'flex', flexWrap: 'wrap', padding: '80px 0', width: '1080px', margin: '0 auto' }, item: { width: '28%', marginRight: '8%', background: '#FAFAFA', borderRadius: '6px', paddingBottom: '50px' }, rowLastItem: { marginRight: 0 }, head: { padding: '30px 0', background: '#3080FE', textAlign: 'center', color: '#fff', borderRadius: '6px 6px 0 0' }, title: { margin: '0 0 5px', fontWeight: 'bold', fontSize: '20px' }, price: { margin: '0', fontWeight: 'bold', fontSize: '18px' }, info: { display: 'flex', flexDirection: 'column', alignItems: 'center', marginTop: '40px' }, image: { width: '52px', height: '52px' }, type: { margin: 0, fontSize: '15px', fontWeight: 'bold', marginTop: '10px' }, description: { margin: '20px 0', lineHeight: '22px', textAlign: 'center', width: '60%', color: '#999' }, buyBtn: { display: 'flex', justifyContent: 'center', marginTop: '20px' }, link: { padding: '4px 15px', background: '#3080FE', borderRadius: '12px', color: '#fff' }, priceInfo: {} }; -module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/PriceInfo/lib/index.js b/templates/ice-design/blocks/PriceInfo/lib/index.js deleted file mode 100644 index 16c3671b42..0000000000 --- a/templates/ice-design/blocks/PriceInfo/lib/index.js +++ /dev/null @@ -1,14 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _PriceInfo = require('./PriceInfo'); - -var _PriceInfo2 = _interopRequireDefault(_PriceInfo); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -exports.default = _PriceInfo2.default; -module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/PriceInfo/src/PriceInfo.scss b/templates/ice-design/blocks/PriceInfo/src/PriceInfo.scss deleted file mode 100644 index 8b319d50e5..0000000000 --- a/templates/ice-design/blocks/PriceInfo/src/PriceInfo.scss +++ /dev/null @@ -1,5 +0,0 @@ -@charset "UTF-8"; - -.price-info { - -} diff --git a/templates/ice-design/blocks/PrivateMessageForm/lib/PrivateMessageForm.js b/templates/ice-design/blocks/PrivateMessageForm/lib/PrivateMessageForm.js deleted file mode 100644 index ecfabae601..0000000000 --- a/templates/ice-design/blocks/PrivateMessageForm/lib/PrivateMessageForm.js +++ /dev/null @@ -1,148 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = undefined; - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _class, _temp; - -var _react = require('react'); - -var _react2 = _interopRequireDefault(_react); - -var _card = require('@icedesign/card'); - -var _card2 = _interopRequireDefault(_card); - -require('./PrivateMessageForm.scss'); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -var Input = require('@icedesign/base/lib/input'); - -var Button = require('@icedesign/base/lib/button'); - -var PrivateMessageForm = (_temp = _class = function (_Component) { - _inherits(PrivateMessageForm, _Component); - - function PrivateMessageForm(props) { - _classCallCheck(this, PrivateMessageForm); - - var _this = _possibleConstructorReturn(this, (PrivateMessageForm.__proto__ || Object.getPrototypeOf(PrivateMessageForm)).call(this, props)); - - _this.titleChange = function (title) { - _this.setState({ - title: title - }); - }; - - _this.messageChange = function (message) { - _this.setState({ - message: message - }); - }; - - _this.sendMessage = function () { - console.log(_this.state); - }; - - _this.state = { - title: '', - message: '' - }; - return _this; - } - - // ICE: React Component 的生命周期 - // http://ice.alibaba-inc.com/docs/guide/intro-react#React-组件的生命周期 - - - _createClass(PrivateMessageForm, [{ - key: 'componentWillMount', - value: function componentWillMount() {} - }, { - key: 'componentDidMount', - value: function componentDidMount() {} - }, { - key: 'componentWillUnmount', - value: function componentWillUnmount() {} - }, { - key: 'render', - value: function render() { - return _react2.default.createElement( - 'div', - { className: 'private-message-form', style: styles.privateMessageForm }, - _react2.default.createElement( - _card2.default, - { style: styles.formCard }, - _react2.default.createElement( - 'div', - { style: styles.title }, - '\u79C1\u6709\u6D88\u606F' - ), - _react2.default.createElement( - 'div', - { style: styles.subtitle }, - '\u7ED9\u738B\u660E\u660E\u53D1\u79C1\u6709\u6D88\u606F' - ), - _react2.default.createElement( - 'div', - { style: styles.groupTitle }, - '\u6807\u9898' - ), - _react2.default.createElement( - 'div', - { style: styles.inputWrap }, - _react2.default.createElement(Input, { - style: styles.input, - value: this.state.title, - onChange: this.titleChange, - placeholder: '\u8BF7\u8F93\u5165\u6807\u9898' - }) - ), - _react2.default.createElement( - 'div', - { style: styles.groupTitle }, - '\u6D88\u606F\u5185\u5BB9' - ), - _react2.default.createElement( - 'div', - { style: styles.textareaWrap }, - _react2.default.createElement(Input, { - style: styles.textarea, - multiple: true, - value: this.state.message, - onChange: this.messageChange, - placeholder: '\u8BF7\u8F93\u5165\u5185\u5BB9' - }) - ), - _react2.default.createElement( - 'div', - { style: styles.btnWrap }, - _react2.default.createElement( - Button, - { type: 'primary', onClick: this.sendMessage }, - '\u53D1\u9001\u6D88\u606F' - ) - ) - ) - ); - } - }]); - - return PrivateMessageForm; -}(_react.Component), _class.displayName = 'PrivateMessageForm', _class.propTypes = {}, _class.defaultProps = {}, _temp); -exports.default = PrivateMessageForm; - - -var styles = { formCard: { width: 518, paddingLeft: '30px' }, title: { fontSize: '16px', marginBottom: '10px', color: '#000', fontWeight: 'bold' }, subtitle: { color: '#000', fontSize: '14px', marginBottom: '30px' }, groupTitle: { marginBottom: '10px' }, input: { width: '332px', marginBottom: '20px' }, textarea: { width: '332px', heihgt: '85px' }, textareaWrap: { marginBottom: '20px' }, privateMessageForm: {} }; -module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/PrivateMessageForm/lib/index.js b/templates/ice-design/blocks/PrivateMessageForm/lib/index.js deleted file mode 100644 index 5787125124..0000000000 --- a/templates/ice-design/blocks/PrivateMessageForm/lib/index.js +++ /dev/null @@ -1,14 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _PrivateMessageForm = require('./PrivateMessageForm'); - -var _PrivateMessageForm2 = _interopRequireDefault(_PrivateMessageForm); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -exports.default = _PrivateMessageForm2.default; -module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/PrivateMessageForm/src/PrivateMessageForm.scss b/templates/ice-design/blocks/PrivateMessageForm/src/PrivateMessageForm.scss deleted file mode 100644 index 70bde29b50..0000000000 --- a/templates/ice-design/blocks/PrivateMessageForm/src/PrivateMessageForm.scss +++ /dev/null @@ -1,5 +0,0 @@ -@charset "UTF-8"; - -.private-message-form { - -} diff --git a/templates/ice-design/blocks/ProductInfo/lib/ProductInfo.js b/templates/ice-design/blocks/ProductInfo/lib/ProductInfo.js deleted file mode 100644 index 96835d1ba2..0000000000 --- a/templates/ice-design/blocks/ProductInfo/lib/ProductInfo.js +++ /dev/null @@ -1,137 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = undefined; - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _class, _temp; - -var _react = require('react'); - -var _react2 = _interopRequireDefault(_react); - -var _propTypes = require('prop-types'); - -var _propTypes2 = _interopRequireDefault(_propTypes); - -var _card = require('@icedesign/card'); - -var _card2 = _interopRequireDefault(_card); - -require('./ProductInfo.scss'); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -var dataSource = [{ - title: '主页背书', - pic: 'https://img.alicdn.com/tfs/TB1i7OMif6H8KJjSspmXXb2WXXa-210-210.png', - desc: '这里填写具体的细节描述,如果文字很长可以' -}, { - title: '频道入驻', - pic: 'https://img.alicdn.com/tfs/TB1wA5KinvI8KJjSspjXXcgjXXa-210-210.png', - desc: '这里填写具体的细节描述,如果文字很长可以' -}, { - title: '商业扶持', - pic: 'https://img.alicdn.com/tfs/TB1laelicjI8KJjSsppXXXbyVXa-210-210.png', - desc: '这里填写具体的细节描述,如果文字很长可以' -}, { - title: '专属管家', - pic: 'https://img.alicdn.com/tfs/TB1EfLYfOqAXuNjy1XdXXaYcVXa-207-210.png', - desc: '这里填写具体的细节描述,如果文字很长可以' -}, { - title: '资源优选', - pic: 'https://img.alicdn.com/tfs/TB1a31mignH8KJjSspcXXb3QFXa-210-210.png', - desc: '这里填写具体的细节描述,如果文字很长可以' -}, { - title: '快捷搜索', - pic: 'https://img.alicdn.com/tfs/TB1ALecicrI8KJjy0FhXXbfnpXa-210-210.png', - desc: '这里填写具体的细节描述,如果文字很长可以' -}]; - -var ProductInfo = (_temp = _class = function (_Component) { - _inherits(ProductInfo, _Component); - - function ProductInfo(props) { - _classCallCheck(this, ProductInfo); - - var _this = _possibleConstructorReturn(this, (ProductInfo.__proto__ || Object.getPrototypeOf(ProductInfo)).call(this, props)); - - _this.state = {}; - return _this; - } - - // ICE: React Component 的生命周期 - // http://ice.alibaba-inc.com/docs/guide/intro-react#React-组件的生命周期 - - - _createClass(ProductInfo, [{ - key: 'componentWillMount', - value: function componentWillMount() {} - }, { - key: 'componentDidMount', - value: function componentDidMount() {} - }, { - key: 'componentWillReceiveProps', - value: function componentWillReceiveProps(nextProps, nextContext) {} - }, { - key: 'shouldComponentUpdate', - value: function shouldComponentUpdate(nextProps, nextState) { - return true; - } - }, { - key: 'componentWillUnmount', - value: function componentWillUnmount() {} - }, { - key: 'render', - value: function render() { - return _react2.default.createElement( - 'div', - { className: 'product-info', style: styles.productInfo }, - _react2.default.createElement( - _card2.default, - null, - _react2.default.createElement( - 'div', - { style: styles.items }, - dataSource.map(function (item, index) { - return _react2.default.createElement( - 'div', - { key: index, style: styles.item }, - _react2.default.createElement('img', { src: item.pic, style: styles.pic }), - _react2.default.createElement( - 'h3', - { style: styles.title }, - item.title - ), - _react2.default.createElement( - 'p', - { style: styles.desc }, - item.desc - ) - ); - }) - ) - ) - ); - } - }]); - - return ProductInfo; -}(_react.Component), _class.displayName = 'ProductInfo', _class.propTypes = { - style: _propTypes2.default.object, - className: _propTypes2.default.string -}, _class.defaultProps = {}, _temp); -exports.default = ProductInfo; - - -var styles = { items: { display: 'flex', flexWrap: 'wrap' }, item: { width: '33.3333%', textAlign: 'center', padding: '10px 22px', marginBottom: '20px' }, pic: { width: 100, height: 100 }, title: { fontWeight: 'bold' }, desc: { lineHeight: '22px' }, productInfo: {} }; -module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/ProductInfo/lib/index.js b/templates/ice-design/blocks/ProductInfo/lib/index.js deleted file mode 100644 index da8f84cb14..0000000000 --- a/templates/ice-design/blocks/ProductInfo/lib/index.js +++ /dev/null @@ -1,14 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _ProductInfo = require('./ProductInfo'); - -var _ProductInfo2 = _interopRequireDefault(_ProductInfo); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -exports.default = _ProductInfo2.default; -module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/ProductInfo/src/ProductInfo.scss b/templates/ice-design/blocks/ProductInfo/src/ProductInfo.scss deleted file mode 100644 index 0cbab418e2..0000000000 --- a/templates/ice-design/blocks/ProductInfo/src/ProductInfo.scss +++ /dev/null @@ -1,5 +0,0 @@ -@charset "UTF-8"; - -.product-info { - -} diff --git a/templates/ice-design/blocks/ProgressTable/lib/ProgressTable.js b/templates/ice-design/blocks/ProgressTable/lib/ProgressTable.js deleted file mode 100644 index e49e979cd4..0000000000 --- a/templates/ice-design/blocks/ProgressTable/lib/ProgressTable.js +++ /dev/null @@ -1,131 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = undefined; - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _class, _temp; - -var _react = require('react'); - -var _react2 = _interopRequireDefault(_react); - -var _card = require('@icedesign/card'); - -var _card2 = _interopRequireDefault(_card); - -require('./ProgressTable.scss'); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -var Table = require('@icedesign/base/lib/table'); - -var Progress = require('@icedesign/base/lib/progress'); - -var Pagination = require('@icedesign/base/lib/pagination'); - -var getTableData = function getTableData() { - return Array.from({ length: 10 }).map(function (item, index) { - return { - name: 'A旗舰店', - total: Math.ceil(Math.random() * 1000000), - count: 300 - index * 10, - progress: Math.ceil(Math.random() * 100) - }; - }); -}; - -var ProgressTable = (_temp = _class = function (_Component) { - _inherits(ProgressTable, _Component); - - function ProgressTable(props) { - _classCallCheck(this, ProgressTable); - - var _this = _possibleConstructorReturn(this, (ProgressTable.__proto__ || Object.getPrototypeOf(ProgressTable)).call(this, props)); - - _this.renderCellProgress = function (value) { - return _react2.default.createElement(Progress, { showInfo: false, percent: parseInt(value, 10) }); - }; - - _this.onPageChange = function (pageNo) { - _this.setState({ - current: pageNo - }); - }; - - _this.state = { - dataSource: getTableData(), - current: 1 - }; - return _this; - } - - _createClass(ProgressTable, [{ - key: 'render', - value: function render() { - return _react2.default.createElement( - 'div', - { className: 'progress-table' }, - _react2.default.createElement( - _card2.default, - { - style: { - margin: '20px' - }, - className: 'tab-card', - title: '\u672C\u6708\u6700\u6D3B\u8DC3\u91D1\u4E3B' - }, - _react2.default.createElement( - Table, - { - hasBorder: true, - getRowClassName: function getRowClassName(record, index) { - return 'progress-table-tr progress-table-tr' + index; - }, - dataSource: this.state.dataSource - }, - _react2.default.createElement(Table.Column, { title: '\u5E97\u94FA\u540D\u79F0', dataIndex: 'name' }), - _react2.default.createElement(Table.Column, { title: '\u6210\u4EA4\u91D1\u989D', dataIndex: 'total' }), - _react2.default.createElement(Table.Column, { title: '\u6210\u4EA4\u5355\u6570', dataIndex: 'count' }), - _react2.default.createElement(Table.Column, { - title: '', - dataIndex: 'progress', - cell: this.renderCellProgress - }) - ), - _react2.default.createElement( - 'div', - { style: styles.paginationWrapper }, - _react2.default.createElement(Pagination, { - current: this.state.current, - onChange: this.onPageChange, - shape: 'arrow-only' - }) - ) - ) - ); - } - }]); - - return ProgressTable; -}(_react.Component), _class.displayName = 'ProgressTable', _temp); -exports.default = ProgressTable; - - -var styles = { - paginationWrapper: { - display: 'flex', - padding: '20px 0 0 0', - flexDirection: 'row-reverse' - } -}; -module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/ProgressTable/lib/index.js b/templates/ice-design/blocks/ProgressTable/lib/index.js deleted file mode 100644 index 809c6784e4..0000000000 --- a/templates/ice-design/blocks/ProgressTable/lib/index.js +++ /dev/null @@ -1,14 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _ProgressTable = require('./ProgressTable'); - -var _ProgressTable2 = _interopRequireDefault(_ProgressTable); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -exports.default = _ProgressTable2.default; -module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/ProgressTable/src/ProgressTable.scss b/templates/ice-design/blocks/ProgressTable/src/ProgressTable.scss deleted file mode 100644 index 86fb3dd312..0000000000 --- a/templates/ice-design/blocks/ProgressTable/src/ProgressTable.scss +++ /dev/null @@ -1,8 +0,0 @@ -@charset "UTF-8"; - -.progress-table { - .progress-table-tr { - color: #666; - font-size: 14px; - } -} diff --git a/templates/ice-design/blocks/RegisterForm/lib/RegisterForm.js b/templates/ice-design/blocks/RegisterForm/lib/RegisterForm.js deleted file mode 100644 index d1e726eabc..0000000000 --- a/templates/ice-design/blocks/RegisterForm/lib/RegisterForm.js +++ /dev/null @@ -1,194 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = undefined; - -var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _class, _temp; - -var _react = require('react'); - -var _react2 = _interopRequireDefault(_react); - -var _propTypes = require('prop-types'); - -var _propTypes2 = _interopRequireDefault(_propTypes); - -var _icon = require('@icedesign/icon'); - -var _icon2 = _interopRequireDefault(_icon); - -require('./RegisterForm.scss'); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -var Form = require('@icedesign/base/lib/form'); - -var Input = require('@icedesign/base/lib/input'); - -var Button = require('@icedesign/base/lib/button'); - -var Checkbox = require('@icedesign/base/lib/checkbox'); - -var Field = require('@icedesign/base/lib/field'); - -var FormItem = Form.Item; - -var RegisterForm = (_temp = _class = function (_Component) { - _inherits(RegisterForm, _Component); - - function RegisterForm(props) { - _classCallCheck(this, RegisterForm); - - var _this = _possibleConstructorReturn(this, (RegisterForm.__proto__ || Object.getPrototypeOf(RegisterForm)).call(this, props)); - - _this.field = new Field(_this); - return _this; - } - - _createClass(RegisterForm, [{ - key: 'checkPass', - value: function checkPass(rule, value, callback) { - var validate = this.field.validate; - - if (value) { - validate(['rePasswd']); - } - callback(); - } - }, { - key: 'checkPass2', - value: function checkPass2(rule, value, callback) { - var getValue = this.field.getValue; - - if (value && value !== getValue('passwd')) { - callback('两次输入密码不一致!'); - } else { - callback(); - } - } - }, { - key: 'handleSubmit', - value: function handleSubmit(e) { - e.preventDefault(); - this.field.validate(function (errors, values) { - if (errors) { - console.log('Errors in form!!!'); - return; - } - console.log(values); - }); - } - }, { - key: 'render', - value: function render() { - var init = this.field.init; - - - return _react2.default.createElement( - 'div', - { className: 'register-form' }, - _react2.default.createElement( - 'div', - { className: 'form' }, - _react2.default.createElement( - 'h4', - null, - '\u6CE8\u518C' - ), - _react2.default.createElement( - Form, - { field: this.field }, - _react2.default.createElement( - FormItem, - null, - _react2.default.createElement(_icon2.default, { type: 'person', size: 'xs' }), - _react2.default.createElement(Input, _extends({ maxLength: 20, placeholder: '\u59D3\u540D' - }, init('name', { - rules: [{ required: true, min: 5, message: '用户名至少为 5 个字符' }] - }))) - ), - _react2.default.createElement( - FormItem, - null, - _react2.default.createElement(_icon2.default, { type: 'mail', size: 'xs' }), - _react2.default.createElement(Input, _extends({ type: 'email', placeholder: '\u90AE\u7BB1' - }, init('email', { - rules: [{ required: true, trigger: 'onBlur', message: '请输入正确的邮箱地址' }, { type: 'email', message: '请输入正确的邮箱地址', trigger: ['onBlur', 'onChange'] }] - }))) - ), - _react2.default.createElement( - FormItem, - null, - _react2.default.createElement(_icon2.default, { type: 'lock', size: 'xs' }), - _react2.default.createElement(Input, _extends({ htmlType: 'password', placeholder: '\u8BF7\u8F93\u5165\u5BC6\u7801' - }, init('passwd', { - rules: [{ required: true, whitespace: true, message: '请填写密码' }, { validator: this.checkPass.bind(this) }] - }))) - ), - _react2.default.createElement( - FormItem, - null, - _react2.default.createElement(_icon2.default, { type: 'lock', size: 'xs' }), - _react2.default.createElement(Input, _extends({ htmlType: 'password', placeholder: '\u4E24\u6B21\u8F93\u5165\u5BC6\u7801\u4FDD\u6301\u4E00\u81F4' - }, init('rePasswd', { - rules: [{ - required: true, - whitespace: true, - message: '请再次输入密码' - }, { - validator: this.checkPass2.bind(this) - }] - }))) - ), - _react2.default.createElement( - FormItem, - null, - _react2.default.createElement( - Checkbox, - init('agreement'), - '\u540C\u610F\u6CE8\u518C\u6761\u6B3E' - ) - ), - _react2.default.createElement( - FormItem, - null, - _react2.default.createElement( - Button, - { type: 'primary', onClick: this.handleSubmit.bind(this) }, - '\u6CE8 \u518C' - ) - ), - _react2.default.createElement( - 'div', - { className: 'tips' }, - _react2.default.createElement( - 'a', - { href: '/' }, - '\u767B \u5F55' - ) - ) - ) - ) - ); - } - }]); - - return RegisterForm; -}(_react.Component), _class.displayName = 'RegisterForm', _class.propTypes = { - style: _propTypes2.default.object, - className: _propTypes2.default.string -}, _class.defaultProps = {}, _temp); -exports.default = RegisterForm; -module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/RegisterForm/lib/index.js b/templates/ice-design/blocks/RegisterForm/lib/index.js deleted file mode 100644 index 054cf23984..0000000000 --- a/templates/ice-design/blocks/RegisterForm/lib/index.js +++ /dev/null @@ -1,14 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _RegisterForm = require('./RegisterForm'); - -var _RegisterForm2 = _interopRequireDefault(_RegisterForm); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -exports.default = _RegisterForm2.default; -module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/RegisterForm/src/RegisterForm.scss b/templates/ice-design/blocks/RegisterForm/src/RegisterForm.scss deleted file mode 100644 index d97aa2a4d5..0000000000 --- a/templates/ice-design/blocks/RegisterForm/src/RegisterForm.scss +++ /dev/null @@ -1,59 +0,0 @@ -@charset "UTF-8"; - -.register-form { - display: flex; - justify-content: center; - .form { - padding: 30px 40px; - background: #fff; - border-radius: 6px; - box-shadow: 1px 1px 2px #eee; - h4 { - margin: 0 0 20px; - text-align: center; - color: #3080FE; - letter-spacing: 12px; - } - .next-input.next-input-single { - width: 240px; - border-top: 0; - border-left: 0; - border-right: 0; - border-color: #DCDCDC; - input { - padding-left: 25px; - font-size: 13px; - } - } - .next-form-item { - margin-bottom: 25px; - } - i, - .next-checkbox-label { - color: #999; - font-size: 13px; - } - i { - position: absolute; - left: 0; - top: 3px; - } - button { - width: 240px; - background: #3080FE; - border-radius: 28px; - } - .tips { - text-align: center; - a { - color: #999; - text-decoration: none; - font-size: 13px; - } - span { - color: #dcd6d6; - margin: 0 8px; - } - } - } -} diff --git a/templates/ice-design/blocks/RightContentDisplay/lib/RightContentDisplay.js b/templates/ice-design/blocks/RightContentDisplay/lib/RightContentDisplay.js deleted file mode 100644 index 14ff4a358f..0000000000 --- a/templates/ice-design/blocks/RightContentDisplay/lib/RightContentDisplay.js +++ /dev/null @@ -1,83 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = undefined; - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _class, _temp; - -var _react = require('react'); - -var _react2 = _interopRequireDefault(_react); - -require('./RightContentDisplay.scss'); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -var RightContentDisplay = (_temp = _class = function (_Component) { - _inherits(RightContentDisplay, _Component); - - function RightContentDisplay(props) { - _classCallCheck(this, RightContentDisplay); - - var _this = _possibleConstructorReturn(this, (RightContentDisplay.__proto__ || Object.getPrototypeOf(RightContentDisplay)).call(this, props)); - - _this.state = {}; - return _this; - } - - _createClass(RightContentDisplay, [{ - key: 'render', - value: function render() { - return _react2.default.createElement( - 'div', - _defineProperty({ className: 'right-content-display', style: styles.rightContentDisplay }, 'style', styles.container), - _react2.default.createElement( - 'div', - { style: styles.content }, - _react2.default.createElement( - 'div', - { style: styles.col }, - _react2.default.createElement('img', { - src: 'https://img.alicdn.com/tfs/TB1MgyDjsLJ8KJjy0FnXXcFDpXa-618-1046.png', - alt: 'img', - style: styles.image - }) - ), - _react2.default.createElement( - 'div', - { style: styles.col }, - _react2.default.createElement( - 'h2', - { style: styles.title }, - '\u529F\u80FD\u63CF\u8FF0' - ), - _react2.default.createElement( - 'p', - { style: styles.description }, - '\u529F\u80FD\u63CF\u8FF0\u7684\u6587\u6848\uFF0C\u529F\u80FD\u63CF\u8FF0\u7684\u6587\u6848\u529F\u80FD\u63CF\u8FF0\u7684\u6587\u6848\u529F\u80FD\u63CF\u8FF0\u7684\u6587\u6848' - ) - ) - ) - ); - } - }]); - - return RightContentDisplay; -}(_react.Component), _class.displayName = 'RightContentDisplay', _temp); -exports.default = RightContentDisplay; - - -var styles = { container: { margin: '0 auto', width: '1080px' }, content: { display: 'flex', position: 'relative', alignItems: 'center', overflow: 'hidden', height: '600px' }, col: { width: '50%' }, title: { fontSize: '28px', fontWeight: 'bold' }, description: { color: '#666', lineHeight: '22px' }, image: { position: 'absolute', top: '20px', width: '40%' }, rightContentDisplay: {} }; -module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/RightContentDisplay/lib/index.js b/templates/ice-design/blocks/RightContentDisplay/lib/index.js deleted file mode 100644 index 7a42c97730..0000000000 --- a/templates/ice-design/blocks/RightContentDisplay/lib/index.js +++ /dev/null @@ -1,14 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _RightContentDisplay = require('./RightContentDisplay'); - -var _RightContentDisplay2 = _interopRequireDefault(_RightContentDisplay); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -exports.default = _RightContentDisplay2.default; -module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/RightContentDisplay/src/RightContentDisplay.scss b/templates/ice-design/blocks/RightContentDisplay/src/RightContentDisplay.scss deleted file mode 100644 index aab0bddf48..0000000000 --- a/templates/ice-design/blocks/RightContentDisplay/src/RightContentDisplay.scss +++ /dev/null @@ -1,5 +0,0 @@ -@charset "UTF-8"; - -.right-content-display { - -} diff --git a/templates/ice-design/blocks/SelectableTable/lib/SelectableTable.js b/templates/ice-design/blocks/SelectableTable/lib/SelectableTable.js deleted file mode 100644 index 4168eb6660..0000000000 --- a/templates/ice-design/blocks/SelectableTable/lib/SelectableTable.js +++ /dev/null @@ -1,248 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = undefined; - -var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _class, _temp; - -var _react = require('react'); - -var _react2 = _interopRequireDefault(_react); - -var _card = require('@icedesign/card'); - -var _card2 = _interopRequireDefault(_card); - -require('./SelectableTable.scss'); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -var Table = require('@icedesign/base/lib/table'); - -var Button = require('@icedesign/base/lib/button'); - -var Icon = require('@icedesign/base/lib/icon'); - -var Pagination = require('@icedesign/base/lib/pagination'); - -var getMockData = function getMockData() { - var result = []; - for (var i = 0; i < 10; i++) { - result.push({ - id: 100306660940 + i, - title: { - name: 'Quotation for 1PCS Nano ' + (3 + i) + '.0 controller compatible' - }, - type: 'demo示例', - template: '参数字典列表', - status: '已发布', - publisher: '小马', - rate: '5', - time: 2000 + i - }); - } - return result; -}; - -// 注意:下载数据的功能,强烈推荐通过接口实现数据输出,并下载 -// 因为这样可以有下载鉴权和日志记录,包括当前能不能下载,以及谁下载了什么 - -var SelectableTable = (_temp = _class = function (_Component) { - _inherits(SelectableTable, _Component); - - function SelectableTable(props) { - _classCallCheck(this, SelectableTable); - - // 表格可以勾选配置项 - var _this = _possibleConstructorReturn(this, (SelectableTable.__proto__ || Object.getPrototypeOf(SelectableTable)).call(this, props)); - - _this.clearSelectedKeys = function () { - _this.setState({ - selectedRowKeys: [] - }); - }; - - _this.addMoreItem = function () { - // todo add some item - }; - - _this.deleteSelectedKeys = function () { - var selectedRowKeys = _this.state.selectedRowKeys; - // todo delete selectedRowKeys - - console.log('delete keys', selectedRowKeys); - }; - - _this.deleteItem = function (record) { - // todo remove this record - var id = record.id; - - console.log('delete item', id); - }; - - _this.renderOperator = function (value, index, record) { - return _react2.default.createElement( - 'div', - null, - _react2.default.createElement( - 'a', - { href: 'javascript: void(0);' }, - '\u7F16\u8F91' - ), - _react2.default.createElement( - 'a', - { - style: styles.todo0, - onClick: _this.deleteItem.bind(_this, record), - href: 'javascript: void(0);' - }, - '\u5220\u9664' - ) - ); - }; - - _this.rowSelection = { - // 表格发生勾选状态变化时触发 - onChange: function onChange(ids, records) { - console.log('ids', ids); - _this.setState({ - selectedRowKeys: ids - }); - }, - // 全选表格时触发的回调 - onSelectAll: function onSelectAll(selected, records) { - console.log('onSelectAll', selected, records); - }, - // 支持针对特殊行进行定制 - getProps: function getProps(record) { - return { - disabled: record.id === 100306660941 - }; - } - }; - - _this.state = { - selectedRowKeys: [], - dataSource: getMockData() - }; - return _this; - } - - _createClass(SelectableTable, [{ - key: 'render', - value: function render() { - return _react2.default.createElement( - 'div', - { className: 'selectable-table', style: styles.selectableTable }, - _react2.default.createElement( - _card2.default, - { - style: styles.todo1 - }, - _react2.default.createElement( - 'div', - null, - _react2.default.createElement( - Button, - { - onClick: this.addMoreItem, - size: 'small', - className: 'batch-btn', - style: styles.batchBtn - }, - _react2.default.createElement(Icon, { type: 'add' }), - '\u589E\u52A0' - ), - _react2.default.createElement( - Button, - { - onClick: this.deleteSelectedKeys, - size: 'small', - className: 'batch-btn', - style: styles.batchBtn, - disabled: !this.state.selectedRowKeys.length - }, - _react2.default.createElement(Icon, { type: 'ashbin' }), - '\u5220\u9664' - ), - _react2.default.createElement( - Button, - { - onClick: this.clearSelectedKeys, - size: 'small', - className: 'batch-btn', - style: styles.batchBtn - }, - _react2.default.createElement(Icon, { type: 'close' }), - '\u6E05\u7A7A\u9009\u4E2D' - ) - ), - _react2.default.createElement( - 'div', - null, - _react2.default.createElement( - 'a', - { href: '/', download: true }, - _react2.default.createElement(Icon, { size: 'small', type: 'download' }), - ' \u5BFC\u51FA\u8868\u683C\u6570\u636E\u5230 .csv \u6587\u4EF6' - ) - ) - ), - _react2.default.createElement( - _card2.default, - { style: styles.todo2 }, - _react2.default.createElement( - Table, - { - dataSource: this.state.dataSource, - isLoading: this.state.isLoading, - rowSelection: _extends({}, this.rowSelection, { - selectedRowKeys: this.state.selectedRowKeys - }) - }, - _react2.default.createElement(Table.Column, { title: '\u7F16\u7801', dataIndex: 'id', lock: true, width: 120 }), - _react2.default.createElement(Table.Column, { title: '\u540D\u79F0', dataIndex: 'title.name', width: 350 }), - _react2.default.createElement(Table.Column, { title: '\u7C7B\u578B', dataIndex: 'type', width: 160 }), - _react2.default.createElement(Table.Column, { title: '\u6A21\u677F', dataIndex: 'template', width: 160 }), - _react2.default.createElement(Table.Column, { title: '\u53D1\u5E03\u72B6\u6001', dataIndex: 'status', width: 120 }), - _react2.default.createElement(Table.Column, { title: '\u8BC4\u5206', dataIndex: 'rate', width: 120 }), - _react2.default.createElement(Table.Column, { title: '\u64CD\u4F5C\u8005', dataIndex: 'publisher', width: 120 }), - _react2.default.createElement(Table.Column, { title: '\u4FEE\u6539\u65F6\u95F4', dataIndex: 'time', width: 120 }), - _react2.default.createElement(Table.Column, { - title: '\u64CD\u4F5C', - cell: this.renderOperator, - lock: 'right', - width: 120 - }) - ), - _react2.default.createElement( - 'div', - { - style: styles.todo3 - }, - _react2.default.createElement(Pagination, { onChange: this.change }) - ) - ) - ); - } - }]); - - return SelectableTable; -}(_react.Component), _class.displayName = 'SelectableTable', _class.propTypes = {}, _class.defaultProps = {}, _temp); -exports.default = SelectableTable; - - -var styles = { selectableTable: {}, batchBtn: { marginRight: '10px' }, todo0: { marginLeft: 10 }, todo1: { marginBottom: '20px', minHeight: 'auto', display: 'flex', justifyContent: 'space-between' }, todo2: { width: '1026px' }, todo3: { textAlign: 'right', paddingTop: '26px' } }; -module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/SelectableTable/lib/index.js b/templates/ice-design/blocks/SelectableTable/lib/index.js deleted file mode 100644 index 5255c31826..0000000000 --- a/templates/ice-design/blocks/SelectableTable/lib/index.js +++ /dev/null @@ -1,14 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _SelectableTable = require('./SelectableTable'); - -var _SelectableTable2 = _interopRequireDefault(_SelectableTable); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -exports.default = _SelectableTable2.default; -module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/SelectableTable/src/SelectableTable.scss b/templates/ice-design/blocks/SelectableTable/src/SelectableTable.scss deleted file mode 100644 index 5176981f0f..0000000000 --- a/templates/ice-design/blocks/SelectableTable/src/SelectableTable.scss +++ /dev/null @@ -1,7 +0,0 @@ -@charset "UTF-8"; - -.selectable-table { - .batch-btn { - margin-right: 10px; - } -} diff --git a/templates/ice-design/blocks/SignupForm/lib/SignupForm.js b/templates/ice-design/blocks/SignupForm/lib/SignupForm.js deleted file mode 100644 index 4af1b7f631..0000000000 --- a/templates/ice-design/blocks/SignupForm/lib/SignupForm.js +++ /dev/null @@ -1,172 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = undefined; - -var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _class, _temp; - -var _react = require('react'); - -var _react2 = _interopRequireDefault(_react); - -var _propTypes = require('prop-types'); - -var _propTypes2 = _interopRequireDefault(_propTypes); - -var _icon = require('@icedesign/icon'); - -var _icon2 = _interopRequireDefault(_icon); - -require('./SignupForm.scss'); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -var Form = require('@icedesign/base/lib/form'); - -var Input = require('@icedesign/base/lib/input'); - -var Button = require('@icedesign/base/lib/button'); - -var Checkbox = require('@icedesign/base/lib/checkbox'); - -var Field = require('@icedesign/base/lib/field'); - -var FormItem = Form.Item; - -var SignupForm = (_temp = _class = function (_Component) { - _inherits(SignupForm, _Component); - - function SignupForm(props) { - _classCallCheck(this, SignupForm); - - var _this = _possibleConstructorReturn(this, (SignupForm.__proto__ || Object.getPrototypeOf(SignupForm)).call(this, props)); - - _this.field = new Field(_this); - return _this; - } - - _createClass(SignupForm, [{ - key: 'checkPassword', - value: function checkPassword(rule, value, callback) { - var validate = this.field.validate; - - if (value) { - validate(['rePasswd']); - } - callback(); - } - }, { - key: 'handleSubmit', - value: function handleSubmit(e) { - e.preventDefault(); - this.field.validate(function (errors, values) { - if (errors) { - console.log('Errors in form!!!'); - return; - } - console.log(values); - }); - } - }, { - key: 'render', - value: function render() { - var init = this.field.init; - - - return _react2.default.createElement( - 'div', - { className: 'signup-form', style: styles.signupForm }, - _react2.default.createElement( - 'div', - { className: 'form', style: styles.form }, - _react2.default.createElement( - 'h4', - null, - '\u767B\u5F55' - ), - _react2.default.createElement( - Form, - { field: this.field }, - _react2.default.createElement( - FormItem, - null, - _react2.default.createElement(_icon2.default, { type: 'person', size: 'xs' }), - _react2.default.createElement(Input, _extends({ maxLength: 20, placeholder: '\u4F1A\u5458\u540D/\u90AE\u7BB1/\u624B\u673A\u53F7' - }, init('name', { - rules: [{ required: true, min: 5, message: '用户名至少为 5 个字符' }] - }))) - ), - _react2.default.createElement( - FormItem, - null, - _react2.default.createElement(_icon2.default, { type: 'lock', size: 'xs' }), - _react2.default.createElement(Input, _extends({ htmlType: 'password', placeholder: '\u5BC6\u7801' - }, init('password', { - rules: [{ required: true, whitespace: true, min: 6, message: '密码至少为 6 个字符' }, { validator: this.checkPassword.bind(this) }] - }))) - ), - _react2.default.createElement( - FormItem, - null, - _react2.default.createElement( - Checkbox, - init('agreement'), - '\u8BB0\u4F4F\u8D26\u53F7' - ) - ), - _react2.default.createElement( - FormItem, - null, - _react2.default.createElement( - Button, - { type: 'primary', onClick: this.handleSubmit.bind(this) }, - '\u767B \u5F55' - ) - ), - _react2.default.createElement( - 'div', - { className: 'tips', style: styles.tips }, - _react2.default.createElement( - 'a', - { href: '/' }, - '\u7ACB\u5373\u6CE8\u518C' - ), - _react2.default.createElement( - 'span', - null, - '|' - ), - _react2.default.createElement( - 'a', - { href: '/' }, - '\u5FD8\u8BB0\u5BC6\u7801' - ) - ) - ) - ) - ); - } - }]); - - return SignupForm; -}(_react.Component), _class.displayName = 'SignupForm', _class.propTypes = { - style: _propTypes2.default.object, - className: _propTypes2.default.string -}, _class.defaultProps = {}, _temp); -exports.default = SignupForm; - - -var styles = { "signupForm": { "display": "flex", "justifyContent": "center" }, "form": { "display": "flex", "justifyContent": "center" }, "tips": { "textAlign": "center", "a {Color": "#999", "textDecoration": "none", "fontSize": "13px" } }; -module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/SignupForm/lib/index.js b/templates/ice-design/blocks/SignupForm/lib/index.js deleted file mode 100644 index 536cb2ba2d..0000000000 --- a/templates/ice-design/blocks/SignupForm/lib/index.js +++ /dev/null @@ -1,14 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _SignupForm = require('./SignupForm'); - -var _SignupForm2 = _interopRequireDefault(_SignupForm); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -exports.default = _SignupForm2.default; -module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/SignupForm/src/SignupForm.scss b/templates/ice-design/blocks/SignupForm/src/SignupForm.scss deleted file mode 100644 index 9a124f333e..0000000000 --- a/templates/ice-design/blocks/SignupForm/src/SignupForm.scss +++ /dev/null @@ -1,59 +0,0 @@ -@charset "UTF-8"; - -.signup-form { - display: flex; - justify-content: center; - .form { - padding: 30px 40px; - background: #fff; - border-radius: 6px; - box-shadow: 1px 1px 2px #eee; - h4 { - margin: 0 0 20px; - text-align: center; - color: #3080FE; - letter-spacing: 12px; - } - .next-input.next-input-single { - width: 240px; - border-top: 0; - border-left: 0; - border-right: 0; - border-color: #DCDCDC; - input { - padding-left: 25px; - font-size: 13px; - } - } - .next-form-item { - margin-bottom: 25px; - } - i, - .next-checkbox-label { - color: #999; - font-size: 13px; - } - i { - position: absolute; - left: 0; - top: 3px; - } - button { - width: 240px; - background: #3080FE; - border-radius: 28px; - } - .tips { - text-align: center; - a { - color: #999; - text-decoration: none; - font-size: 13px; - } - span { - color: #dcd6d6; - margin: 0 8px; - } - } - } -} diff --git a/templates/ice-design/blocks/SimpleFluencyForm/lib/SimpleFluencyForm.js b/templates/ice-design/blocks/SimpleFluencyForm/lib/SimpleFluencyForm.js deleted file mode 100644 index e14de5c91b..0000000000 --- a/templates/ice-design/blocks/SimpleFluencyForm/lib/SimpleFluencyForm.js +++ /dev/null @@ -1,285 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = undefined; - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _class, _temp; - -var _react = require('react'); - -var _react2 = _interopRequireDefault(_react); - -var _card = require('@icedesign/card'); - -var _card2 = _interopRequireDefault(_card); - -var _formBinder = require('@icedesign/form-binder'); - -require('./SimpleFluencyForm.scss'); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -var Step = require('@icedesign/base/lib/step'); - -var Grid = require('@icedesign/base/lib/grid'); - -var Input = require('@icedesign/base/lib/input'); - -var Button = require('@icedesign/base/lib/button'); - -var Row = Grid.Row, - Col = Grid.Col; - -var telPattern = /^(1[\d]{1}[\d]{9})|(((400)-(\d{3})-(\d{4}))|^((\d{7,8})|(\d{4}|\d{3})-(\d{7,8})|(\d{7,8})-(\d{4}|\d{3}|\d{2}|\d{1}))$)$|^([ ]?)$/; - -var SimpleFluencyForm = (_temp = _class = function (_Component) { - _inherits(SimpleFluencyForm, _Component); - - function SimpleFluencyForm(props) { - _classCallCheck(this, SimpleFluencyForm); - - var _this = _possibleConstructorReturn(this, (SimpleFluencyForm.__proto__ || Object.getPrototypeOf(SimpleFluencyForm)).call(this, props)); - - _this.formChange = function (newValue) { - _this.setState({ - formValue: newValue - }); - }; - - _this.nextStep = function () { - _this.form.validateAll(function (error, value) { - console.log(value); - if (!error || error.length === 0) { - _this.setState({ step: _this.state.step + 1 }); - } - }); - }; - - _this.renderStep = function (step) { - if (step === 0) { - var _this$state$formValue = _this.state.formValue, - username = _this$state$formValue.username, - email = _this$state$formValue.email, - phone = _this$state$formValue.phone, - address = _this$state$formValue.address; - - var initValue = { - username: username, email: email, phone: phone, address: address - }; - return _react2.default.createElement( - _card2.default, - { style: styles.form }, - _react2.default.createElement( - _formBinder.FormBinderWrapper, - { - ref: function ref(form) { - _this.form = form; - }, - value: initValue, - onChange: _this.formChange - }, - _react2.default.createElement( - 'div', - null, - _react2.default.createElement( - Row, - { style: styles.formRow }, - _react2.default.createElement( - Col, - { fixedSpan: 8, style: styles.formLabel }, - _react2.default.createElement( - 'span', - null, - '\u59D3\u540D\uFF1A' - ) - ), - _react2.default.createElement( - Col, - { span: 12 }, - _react2.default.createElement( - _formBinder.FormBinder, - { required: true, message: '\u5FC5\u586B\u9879' }, - _react2.default.createElement(Input, { name: 'username' }) - ), - _react2.default.createElement( - 'div', - { style: styles.formErrorWrapper }, - _react2.default.createElement(_formBinder.FormError, { name: 'username' }) - ) - ) - ), - _react2.default.createElement( - Row, - { style: styles.formRow }, - _react2.default.createElement( - Col, - { fixedSpan: 8, style: styles.formLabel }, - '\u90AE\u7BB1\uFF1A' - ), - _react2.default.createElement( - Col, - { span: 12 }, - _react2.default.createElement( - _formBinder.FormBinder, - { type: 'email', required: true, message: '\u90AE\u7BB1\u4E0D\u5408\u6CD5' }, - _react2.default.createElement(Input, { name: 'email' }) - ), - _react2.default.createElement( - 'div', - { style: styles.formErrorWrapper }, - _react2.default.createElement(_formBinder.FormError, { name: 'email' }) - ) - ) - ), - _react2.default.createElement( - Row, - { style: styles.formRow }, - _react2.default.createElement( - Col, - { fixedSpan: 8, style: styles.formLabel }, - '\u7535\u8BDD\uFF1A' - ), - _react2.default.createElement( - Col, - { span: 12 }, - _react2.default.createElement( - _formBinder.FormBinder, - { required: true, message: '\u8BF7\u8F93\u5165\u5408\u6CD5\u7684\u7535\u8BDD\u53F7\u7801', pattern: telPattern, triggerType: 'onBlur' }, - _react2.default.createElement(Input, { name: 'phone' }) - ), - _react2.default.createElement( - 'div', - { style: styles.formErrorWrapper }, - _react2.default.createElement(_formBinder.FormError, { name: 'phone' }) - ) - ) - ), - _react2.default.createElement( - Row, - { style: styles.formRow }, - _react2.default.createElement( - Col, - { fixedSpan: 8, style: styles.formLabel }, - '\u5730\u5740\uFF1A' - ), - _react2.default.createElement( - Col, - { span: 12 }, - _react2.default.createElement( - _formBinder.FormBinder, - null, - _react2.default.createElement(Input, { required: true, message: '\u5FC5\u586B', multiple: true, name: 'address' }) - ), - _react2.default.createElement( - 'div', - { style: styles.formErrorWrapper }, - _react2.default.createElement(_formBinder.FormError, { name: 'address' }) - ) - ) - ), - _react2.default.createElement( - Row, - null, - _react2.default.createElement( - Col, - { fixedOffset: 8 }, - _react2.default.createElement( - Button, - { onClick: _this.nextStep, type: 'primary' }, - '\u4E0B\u4E00\u6B65' - ) - ) - ) - ) - ) - ); - } else if (step === 1) { - return _react2.default.createElement( - _card2.default, - null, - _react2.default.createElement( - 'span', - null, - '\u6B65\u9AA4\u4E8C' - ) - ); - } else if (step === 2) { - return _react2.default.createElement( - _card2.default, - null, - _react2.default.createElement( - 'span', - null, - '\u6B65\u9AA4\u4E09' - ) - ); - } - }; - - _this.state = { - step: 0, - formValue: { - username: '', - email: '', - phone: '', - address: '' - } - }; - return _this; - } - - // ICE: React Component 的生命周期 - // http://ice.alibaba-inc.com/docs/guide/intro-react#React-组件的生命周期 - - - _createClass(SimpleFluencyForm, [{ - key: 'componentWillMount', - value: function componentWillMount() {} - }, { - key: 'componentDidMount', - value: function componentDidMount() {} - }, { - key: 'componentWillReceiveProps', - value: function componentWillReceiveProps() {} - }, { - key: 'componentWillUnmount', - value: function componentWillUnmount() {} - }, { - key: 'render', - value: function render() { - return _react2.default.createElement( - 'div', - { className: 'simple-fluency-form', style: styles.simpleFluencyForm }, - _react2.default.createElement( - _card2.default, - null, - _react2.default.createElement( - Step, - { current: this.state.step, type: 'dot' }, - _react2.default.createElement(Step.Item, { key: 0, title: '\u586B\u5199\u4FE1\u606F' }), - _react2.default.createElement(Step.Item, { key: 1, title: '\u786E\u8BA4\u4FE1\u606F' }), - _react2.default.createElement(Step.Item, { key: 2, title: '\u5B8C\u6210' }) - ) - ), - this.renderStep(this.state.step) - ); - } - }]); - - return SimpleFluencyForm; -}(_react.Component), _class.displayName = 'SimpleFluencyForm', _class.propTypes = {}, _class.defaultProps = {}, _temp); -exports.default = SimpleFluencyForm; - - -var styles = { formLabel: { textAlign: 'right', lineHeight: '1.7rem', paddingRight: '10px' }, formRow: { marginBottom: '20px' }, form: { padding: '40px 0 20px' }, formErrorWrapper: { marginTop: '5px' }, simpleFluencyForm: {} }; -module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/SimpleFluencyForm/lib/index.js b/templates/ice-design/blocks/SimpleFluencyForm/lib/index.js deleted file mode 100644 index 7cb6d9bb1e..0000000000 --- a/templates/ice-design/blocks/SimpleFluencyForm/lib/index.js +++ /dev/null @@ -1,14 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _SimpleFluencyForm = require('./SimpleFluencyForm'); - -var _SimpleFluencyForm2 = _interopRequireDefault(_SimpleFluencyForm); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -exports.default = _SimpleFluencyForm2.default; -module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/SimpleFluencyForm/src/SimpleFluencyForm.scss b/templates/ice-design/blocks/SimpleFluencyForm/src/SimpleFluencyForm.scss deleted file mode 100644 index d97a3f5679..0000000000 --- a/templates/ice-design/blocks/SimpleFluencyForm/src/SimpleFluencyForm.scss +++ /dev/null @@ -1,5 +0,0 @@ -@charset "UTF-8"; - -.simple-fluency-form { - -} diff --git a/templates/ice-design/blocks/SimpleFormDialog/lib/CreateFuncDialog.js b/templates/ice-design/blocks/SimpleFormDialog/lib/CreateFuncDialog.js deleted file mode 100644 index 999b240af5..0000000000 --- a/templates/ice-design/blocks/SimpleFormDialog/lib/CreateFuncDialog.js +++ /dev/null @@ -1,51 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - -var _react = require('react'); - -var _react2 = _interopRequireDefault(_react); - -var _reactDom = require('react-dom'); - -var _reactDom2 = _interopRequireDefault(_reactDom); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -// 包装 Dialog 类组件,使其支持 show、hide 这种命令式调用 -var CreateFuncDialog = function CreateFuncDialog(WrapperElement) { - var instance = null; - var container = document.createElement('div'); - document.body.appendChild(container); - - return { - // 创建并打开一个弹窗,并传入初始化的 props - show: function show(props) { - // 如果已经有实例打开了,则不会继续打开 - if (instance) { - return; - } - instance = _reactDom2.default.render(_react2.default.createElement(WrapperElement, _extends({}, props, { visible: true })), container); - }, - // 隐藏并销毁弹窗 - hide: function hide() { - if (instance) { - instance.setState({ - visible: false - }, function () { - setTimeout(function () { - _reactDom2.default.unmountComponentAtNode(container); - instance = null; - }, 1000); - }); - } - } - }; -}; - -exports.default = CreateFuncDialog; -module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/SimpleFormDialog/lib/SimpleFormDialog.js b/templates/ice-design/blocks/SimpleFormDialog/lib/SimpleFormDialog.js deleted file mode 100644 index 77b28a8557..0000000000 --- a/templates/ice-design/blocks/SimpleFormDialog/lib/SimpleFormDialog.js +++ /dev/null @@ -1,244 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _class, _temp; - -// 用法: -// import SimpleFormDialog from '...'; -// -// SimpleFormDialog.show({ -// onClose: () => { -// SimpleFormDialog.hide(); -// }, -// onCancel: () => { -// SimpleFormDialog.hide(); -// }, -// // 点击确认按钮之后,拿到表单数据 -// onOk: value => { -// console.log('value', value); -// }, -// // 回填数据 -// value: { -// type: 'video' -// } -// }); - -var _react = require('react'); - -var _react2 = _interopRequireDefault(_react); - -var _formBinder = require('@icedesign/form-binder'); - -var _CreateFuncDialog = require('./CreateFuncDialog'); - -var _CreateFuncDialog2 = _interopRequireDefault(_CreateFuncDialog); - -require('./SimpleFormDialog.scss'); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -var Dialog = require('@icedesign/base/lib/dialog'); - -var Grid = require('@icedesign/base/lib/grid'); - -var Input = require('@icedesign/base/lib/input'); - -var Radio = require('@icedesign/base/lib/radio'); - -var Row = Grid.Row, - Col = Grid.Col; -var RadioGroup = Radio.Group; - - -var defaultValue = { - keywords: '', - type: 'post', - content: '' -}; - -var SimpleFormDialog = (_temp = _class = function (_Component) { - _inherits(SimpleFormDialog, _Component); - - function SimpleFormDialog(props) { - _classCallCheck(this, SimpleFormDialog); - - var _this = _possibleConstructorReturn(this, (SimpleFormDialog.__proto__ || Object.getPrototypeOf(SimpleFormDialog)).call(this, props)); - - _this.onOk = function () { - _this.refForm.validateAll(function (errors, values) { - if (errors) { - return; - } - if (typeof _this.props.onOk === 'function') { - _this.props.onOk(values); - } - }); - }; - - _this.onFormChange = function (value) { - _this.setState({ - value: value - }); - }; - - _this.state = { - visible: props.visible, - value: props.value || defaultValue - }; - return _this; - } - - // ICE: React Component 的生命周期 - // http://ice.alibaba-inc.com/docs/guide/intro-react#React-组件的生命周期 - - - _createClass(SimpleFormDialog, [{ - key: 'componentWillMount', - value: function componentWillMount() {} - }, { - key: 'componentDidMount', - value: function componentDidMount() {} - }, { - key: 'componentWillReceiveProps', - value: function componentWillReceiveProps() {} - }, { - key: 'shouldComponentUpdate', - value: function shouldComponentUpdate() { - return true; - } - }, { - key: 'componentWillUnmount', - value: function componentWillUnmount() {} - }, { - key: 'render', - value: function render() { - var _this2 = this, - _extends2; - - return _react2.default.createElement( - Dialog, - _extends((_extends2 = { - className: 'simple-form-dialog', - style: styles.simpleFormDialog - }, _defineProperty(_extends2, 'style', styles.dialog), _defineProperty(_extends2, 'autoFocus', false), _defineProperty(_extends2, 'footerAlign', 'center'), _defineProperty(_extends2, 'title', '\u7B80\u5355\u8868\u5355'), _extends2), this.props, { - onOk: this.onOk, - isFullScreen: true, - visible: this.state.visible - }), - _react2.default.createElement( - _formBinder.FormBinderWrapper, - { - ref: function ref(_ref) { - _this2.refForm = _ref; - }, - value: this.state.value, - onChange: this.onFormChange - }, - _react2.default.createElement( - 'div', - { style: styles.dialogContent }, - _react2.default.createElement( - Row, - { style: styles.formRow }, - _react2.default.createElement( - Col, - { span: '3' }, - _react2.default.createElement( - 'label', - { style: styles.formLabel }, - '\u5173\u952E\u8BCD' - ) - ), - _react2.default.createElement( - Col, - { span: '16' }, - _react2.default.createElement( - _formBinder.FormBinder, - { - required: true, - min: 2, - max: 10, - message: '\u5F53\u524D\u5B57\u6BB5\u5FC5\u586B\uFF0C\u4E14\u6700\u5C11 2 \u4E2A\u5B57\u6700\u591A 10 \u4E2A\u5B57' - }, - _react2.default.createElement(Input, { - name: 'keywords', - style: styles.input, - placeholder: '\u591A\u5173\u952E\u8BCD\u7528\u82F1\u6587 , \u53F7\u5206\u5272' - }) - ), - _react2.default.createElement(_formBinder.FormError, { name: 'keywords' }) - ) - ), - _react2.default.createElement( - Row, - { style: styles.formRow }, - _react2.default.createElement( - Col, - null, - _react2.default.createElement( - _formBinder.FormBinder, - null, - _react2.default.createElement(RadioGroup, { - name: 'type', - dataSource: [{ - value: 'post', - label: '文章' - }, { - value: 'video', - label: '视频' - }, { - value: 'image', - label: '图片' - }] - }) - ) - ) - ), - _react2.default.createElement( - Row, - { style: styles.formRow }, - _react2.default.createElement( - Col, - null, - _react2.default.createElement( - _formBinder.FormBinder, - null, - _react2.default.createElement(Input, { - name: 'content', - style: styles.input, - multiple: true, - placeholder: '\u8BF7\u8F93\u5165\u8BE6\u7EC6\u5185\u5BB9', - rows: 4 - }) - ) - ) - ) - ) - ) - ); - } - }]); - - return SimpleFormDialog; -}(_react.Component), _class.displayName = 'SimpleFormDialog', _temp); - - -var styles = { dialog: { width: '640px' }, dialogContent: {}, formRow: { marginTop: 20 }, input: { width: '100%' }, formLabel: { lineHeight: '26px' }, simpleFormDialog: {} }; - -exports.default = (0, _CreateFuncDialog2.default)(SimpleFormDialog); -module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/SimpleFormDialog/lib/index.js b/templates/ice-design/blocks/SimpleFormDialog/lib/index.js deleted file mode 100644 index d8bdb31355..0000000000 --- a/templates/ice-design/blocks/SimpleFormDialog/lib/index.js +++ /dev/null @@ -1,14 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _SimpleFormDialog = require('./SimpleFormDialog'); - -var _SimpleFormDialog2 = _interopRequireDefault(_SimpleFormDialog); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -exports.default = _SimpleFormDialog2.default; -module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/SimpleFormDialog/src/SimpleFormDialog.scss b/templates/ice-design/blocks/SimpleFormDialog/src/SimpleFormDialog.scss deleted file mode 100644 index e04a63ee58..0000000000 --- a/templates/ice-design/blocks/SimpleFormDialog/src/SimpleFormDialog.scss +++ /dev/null @@ -1,5 +0,0 @@ -@charset "UTF-8"; - -.simple-form-dialog { - -} diff --git a/templates/ice-design/blocks/SimpleTable/lib/SimpleTable.js b/templates/ice-design/blocks/SimpleTable/lib/SimpleTable.js deleted file mode 100644 index b5aaa88adf..0000000000 --- a/templates/ice-design/blocks/SimpleTable/lib/SimpleTable.js +++ /dev/null @@ -1,234 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = undefined; - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _dec, _class, _class2, _temp; - -var _react = require('react'); - -var _react2 = _interopRequireDefault(_react); - -var _card = require('@icedesign/card'); - -var _card2 = _interopRequireDefault(_card); - -var _img = require('@icedesign/img'); - -var _img2 = _interopRequireDefault(_img); - -var _dataBinder = require('@icedesign/data-binder'); - -var _dataBinder2 = _interopRequireDefault(_dataBinder); - -var _label = require('@icedesign/label'); - -var _label2 = _interopRequireDefault(_label); - -require('./SimpleTable.scss'); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -var Table = require('@icedesign/base/lib/table'); - -var Pagination = require('@icedesign/base/lib/pagination'); - -// 详细用法请参见 http://ice.alibaba-inc.com/modules/ice-data-binder -var SimpleTable = (_dec = (0, _dataBinder2.default)({ - tableData: { - // 详细请求配置请参见 https://github.com/axios/axios - url: '/mock/simple-table-list.json', - params: { - page: 1 - }, - defaultBindingData: { - list: [], - total: 100, - pageSize: 10, - currentPage: 1 - } - } -}), _dec(_class = (_temp = _class2 = function (_Component) { - _inherits(SimpleTable, _Component); - - function SimpleTable(props) { - _classCallCheck(this, SimpleTable); - - var _this = _possibleConstructorReturn(this, (SimpleTable.__proto__ || Object.getPrototypeOf(SimpleTable)).call(this, props)); - - _this.fetchData = function (_ref) { - var page = _ref.page; - - _this.props.updateBindingData('tableData', { - data: { - page: page - } - }); - }; - - _this.renderTitle = function (value, index, record) { - return _react2.default.createElement( - 'div', - { - style: { - display: 'flex', - flexDirection: 'row' - } - }, - _react2.default.createElement( - 'div', - null, - _react2.default.createElement(_img2.default, { src: record.cover, width: 48, height: 48 }) - ), - _react2.default.createElement( - 'span', - { - style: { - marginLeft: '10px', - lineHeight: '20px' - } - }, - record.title - ) - ); - }; - - _this.editItem = function (record, e) { - e.preventDefault(); - // todo - console.log('record', record); - }; - - _this.renderOperations = function (value, index, record) { - return _react2.default.createElement( - 'div', - { className: 'simple-table-operation', style: { lineHeight: '28px' } }, - _react2.default.createElement( - 'a', - { - href: '#', - target: '_blank', - onClick: function onClick() { - _this.editItem(record); - } - }, - '\u89E3\u51B3' - ), - _react2.default.createElement( - 'a', - { href: '#', target: '_blank' }, - '\u8BE6\u60C5' - ), - _react2.default.createElement( - 'a', - { href: '#', target: '_blank' }, - '\u5206\u7C7B' - ) - ); - }; - - _this.renderStatus = function (value) { - return _react2.default.createElement( - _label2.default, - { inverse: false, status: 'default' }, - value - ); - }; - - _this.changePage = function (currentPage) { - _this.fetchData({ - page: currentPage - }); - }; - - _this.state = {}; - return _this; - } - - _createClass(SimpleTable, [{ - key: 'componentDidMount', - value: function componentDidMount() { - this.fetchData({ - page: 1 - }); - } - }, { - key: 'render', - value: function render() { - var tableData = this.props.bindingData.tableData; - - return _react2.default.createElement( - 'div', - { className: 'simple-table' }, - _react2.default.createElement( - _card2.default, - null, - _react2.default.createElement( - Table, - { - dataSource: tableData.list, - isLoading: tableData.__loading // eslint-disable-line - , className: 'basic-table', - hasBorder: false - }, - _react2.default.createElement(Table.Column, { - title: '\u95EE\u9898\u63CF\u8FF0', - cell: this.renderTitle, - width: 320 - }), - _react2.default.createElement(Table.Column, { title: '\u95EE\u9898\u5206\u7C7B', dataIndex: 'type', width: 85 }), - _react2.default.createElement(Table.Column, { - title: '\u53D1\u5E03\u65F6\u95F4', - dataIndex: 'publishTime', - width: 150 - }), - _react2.default.createElement(Table.Column, { - title: '\u72B6\u6001', - dataIndex: 'publishStatus', - width: 85, - cell: this.renderStatus - }), - _react2.default.createElement(Table.Column, { - title: '\u64CD\u4F5C', - dataIndex: 'operation', - width: 150, - cell: this.renderOperations - }) - ), - _react2.default.createElement( - 'div', - { style: styles.paginationWrapper }, - _react2.default.createElement(Pagination, { - current: tableData.currentPage, - pageSize: tableData.pageSize, - total: tableData.total, - onChange: this.changePage - }) - ) - ) - ); - } - }]); - - return SimpleTable; -}(_react.Component), _class2.displayName = 'SimpleTable', _class2.propTypes = {}, _class2.defaultProps = {}, _temp)) || _class); -exports.default = SimpleTable; - - -var styles = { - paginationWrapper: { - textAlign: 'right', - paddingTop: '26px' - } -}; -module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/SimpleTable/lib/index.js b/templates/ice-design/blocks/SimpleTable/lib/index.js deleted file mode 100644 index 79a82336cb..0000000000 --- a/templates/ice-design/blocks/SimpleTable/lib/index.js +++ /dev/null @@ -1,14 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _SimpleTable = require('./SimpleTable'); - -var _SimpleTable2 = _interopRequireDefault(_SimpleTable); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -exports.default = _SimpleTable2.default; -module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/SimpleTable/src/SimpleTable.scss b/templates/ice-design/blocks/SimpleTable/src/SimpleTable.scss deleted file mode 100644 index db432073fa..0000000000 --- a/templates/ice-design/blocks/SimpleTable/src/SimpleTable.scss +++ /dev/null @@ -1,10 +0,0 @@ -@charset "UTF-8"; - -.simple-table { - .simple-table-operation { - a { - margin-right: 12px; - text-decoration: none; - } - } -} diff --git a/templates/ice-design/blocks/SimpleTestimonial/lib/SimpleTestimonial.js b/templates/ice-design/blocks/SimpleTestimonial/lib/SimpleTestimonial.js deleted file mode 100644 index 261b9ef6c5..0000000000 --- a/templates/ice-design/blocks/SimpleTestimonial/lib/SimpleTestimonial.js +++ /dev/null @@ -1,114 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = undefined; - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _class, _temp; - -var _react = require('react'); - -var _react2 = _interopRequireDefault(_react); - -var _propTypes = require('prop-types'); - -var _propTypes2 = _interopRequireDefault(_propTypes); - -var _card = require('@icedesign/card'); - -var _card2 = _interopRequireDefault(_card); - -require('./SimpleTestimonial.scss'); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -var SimpleTestimonial = (_temp = _class = function (_Component) { - _inherits(SimpleTestimonial, _Component); - - function SimpleTestimonial(props) { - _classCallCheck(this, SimpleTestimonial); - - var _this = _possibleConstructorReturn(this, (SimpleTestimonial.__proto__ || Object.getPrototypeOf(SimpleTestimonial)).call(this, props)); - - _this.state = {}; - return _this; - } - - // ICE: React Component 的生命周期 - // http://ice.alibaba-inc.com/docs/guide/intro-react#React-组件的生命周期 - - - _createClass(SimpleTestimonial, [{ - key: 'componentWillMount', - value: function componentWillMount() {} - }, { - key: 'componentDidMount', - value: function componentDidMount() {} - }, { - key: 'componentWillReceiveProps', - value: function componentWillReceiveProps(nextProps, nextContext) {} - }, { - key: 'shouldComponentUpdate', - value: function shouldComponentUpdate(nextProps, nextState) { - return true; - } - }, { - key: 'componentWillUnmount', - value: function componentWillUnmount() {} - }, { - key: 'render', - value: function render() { - return _react2.default.createElement( - 'div', - { className: 'simple-testimonial', style: styles.simpleTestimonial }, - _react2.default.createElement( - _card2.default, - null, - _react2.default.createElement( - 'div', - { style: styles.item }, - _react2.default.createElement( - 'p', - { style: styles.description }, - '\u201C \u968F\u7740\u4E2A\u4EBA\u7528\u6237\u5BF9\u4E8E\u4E92\u8054\u7F51\u5185\u5BB9\u83B7\u53D6\u7684\u8981\u6C42\u548C\u53E3\u5473\u8D8A\u6765\u8D8A\u7279\u522B\uFF0C\u600E\u6837\u63D0\u4F9B\u66F4\u52A0\u7CBE\u51C6\u4E2A\u6027\u5316\u7684\u8D44 \u8BAF\u8BA2\u9605\u670D\u52A1\u662F\u63D0\u5347\u7528\u6237\u4F53\u9A8C\u7684\u5173\u952E\u3002\u867D\u7136\u6211\u4EEC\u53D1\u73B0\u76EE\u524D\u5E02\u9762\u4E0A\u6709\u975E\u5E38\u591A\u7684\u8D44\u8BAF\u7C7B app \u90FD\u6807\u699C\u81EA\u5DF1\u80FD \u591F\u63D0\u4F9B\u4E2A\u4EBA\u5B9A\u5236\u5316\u7684\u65B0\u95FB\u9605\u8BFB\u529F\u80FD\uFF0C\u4F46\u662F\u672C\u8D28\u4E0A\u6765\u8BF4\u4E00\u822C\u90FD\u662F\u901A\u8FC7\u65B0\u95FB\u6E90+\u5174\u8DA3\u70B9+\u667A\u80FD\u63A8\u8350\u8FD9\u6837\u7684\u7EC4\u5408\u5B9E\u73B0\u7684 \u201D' - ), - _react2.default.createElement( - 'div', - { style: styles.infoBox }, - _react2.default.createElement('img', { - style: styles.avatar, - src: 'https://img.alicdn.com/tfs/TB1cUfViZrI8KJjy0FhXXbfnpXa-450-456.png' - }), - _react2.default.createElement( - 'h5', - { style: styles.name }, - '\u4EBA\u7269\u540D' - ), - _react2.default.createElement( - 'p', - { style: styles.company }, - '\u5C31\u804C\u516C\u53F8/\u804C\u52A1' - ) - ) - ) - ) - ); - } - }]); - - return SimpleTestimonial; -}(_react.Component), _class.displayName = 'SimpleTestimonial', _class.propTypes = {}, _class.defaultProps = {}, _temp); -exports.default = SimpleTestimonial; - - -var styles = { item: { width: '80%', margin: '0 auto', textAlign: 'center' }, description: { lineHeight: '28px' }, infoBox: { display: 'flex', textAlign: 'center', justifyContent: 'center', alignItems: 'center', marginTop: '40px' }, avatar: { width: '64px', height: '64px' }, name: { margin: '0 15px', fontSize: '15px', fontWeight: 'bold' }, company: { margin: 0 }, simpleTestimonial: {} }; -module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/SimpleTestimonial/lib/index.js b/templates/ice-design/blocks/SimpleTestimonial/lib/index.js deleted file mode 100644 index 2197db84c6..0000000000 --- a/templates/ice-design/blocks/SimpleTestimonial/lib/index.js +++ /dev/null @@ -1,14 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _SimpleTestimonial = require('./SimpleTestimonial'); - -var _SimpleTestimonial2 = _interopRequireDefault(_SimpleTestimonial); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -exports.default = _SimpleTestimonial2.default; -module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/SimpleTestimonial/src/SimpleTestimonial.scss b/templates/ice-design/blocks/SimpleTestimonial/src/SimpleTestimonial.scss deleted file mode 100644 index 196f8ed649..0000000000 --- a/templates/ice-design/blocks/SimpleTestimonial/src/SimpleTestimonial.scss +++ /dev/null @@ -1,5 +0,0 @@ -@charset "UTF-8"; - -.simple-testimonial { - -} diff --git a/templates/ice-design/blocks/SortableTable/README.md b/templates/ice-design/blocks/SortableTable/README.md deleted file mode 100644 index bd5fde292d..0000000000 --- a/templates/ice-design/blocks/SortableTable/README.md +++ /dev/null @@ -1,12 +0,0 @@ -# sortable-table - -简介:可排序表格 - -可排序的表格 - -![截图](https://img.alicdn.com/tfs/TB1Od76i2DH8KJjy1XcXXcpdXXa-1892-638.png) - -## 更多 - -* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) -* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) diff --git a/templates/ice-design/blocks/SortableTable/lib/SortableTable.js b/templates/ice-design/blocks/SortableTable/lib/SortableTable.js deleted file mode 100644 index 307b916645..0000000000 --- a/templates/ice-design/blocks/SortableTable/lib/SortableTable.js +++ /dev/null @@ -1,176 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = undefined; - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _class, _temp; - -var _react = require('react'); - -var _react2 = _interopRequireDefault(_react); - -var _propTypes = require('prop-types'); - -var _propTypes2 = _interopRequireDefault(_propTypes); - -var _card = require('@icedesign/card'); - -var _card2 = _interopRequireDefault(_card); - -require('./SortableTable.scss'); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -var Table = require('@icedesign/base/lib/table'); - -var Icon = require('@icedesign/base/lib/icon'); - -var Button = require('@icedesign/base/lib/button'); - -var generatorData = function generatorData() { - return Array.from({ length: 5 }).map(function (item, index) { - console.log('item', item); - return { - todo: '\u5F85\u529E\u4E8B\u9879 ' + index, - memo: '\u5907\u6CE8\u8BF4\u660E\u6587\u6848 ' + index, - validity: '2017-12-12' - }; - }); -}; - -var SortableTable = (_temp = _class = function (_Component) { - _inherits(SortableTable, _Component); - - function SortableTable(props) { - _classCallCheck(this, SortableTable); - - var _this = _possibleConstructorReturn(this, (SortableTable.__proto__ || Object.getPrototypeOf(SortableTable)).call(this, props)); - - _this.moveUp = function (index) { - if (index > 0) { - var dataSource = _this.state.dataSource; - var prevItem = dataSource[index - 1]; - var currentItem = dataSource[index]; - dataSource.splice(index - 1, 2, currentItem, prevItem); - _this.setState({ - dataSource: dataSource - }); - } - }; - - _this.moveDown = function (index) { - if (index < _this.state.dataSource.length - 1) { - var dataSource = _this.state.dataSource; - var currentItem = dataSource[index]; - var nextItem = dataSource[index + 1]; - dataSource.splice(index, 2, nextItem, currentItem); - _this.setState({ - dataSource: dataSource - }); - } - }; - - _this.renderOrder = function (value, index, record) { - return _react2.default.createElement( - 'span', - null, - index - ); - }; - - _this.renderSortButton = function (value, index, record) { - return _react2.default.createElement( - 'div', - null, - _react2.default.createElement( - Button, - { - onClick: _this.moveDown.bind(_this, index), - size: 'large', - shape: 'text', - disabled: index === _this.state.dataSource.length - 1 - }, - _react2.default.createElement(Icon, { title: '\u4E0B\u79FB', type: 'descending' }) - ), - _react2.default.createElement( - Button, - { - onClick: _this.moveUp.bind(_this, index), - size: 'large', - shape: 'text', - disabled: index === 0 - }, - _react2.default.createElement(Icon, { title: '\u4E0A\u79FB', type: 'ascending' }) - ) - ); - }; - - _this.state = { - dataSource: generatorData() - }; - return _this; - } - - // ICE: React Component 的生命周期 - // http://ice.alibaba-inc.com/docs/guide/intro-react#React-组件的生命周期 - - - _createClass(SortableTable, [{ - key: 'componentWillMount', - value: function componentWillMount() {} - }, { - key: 'componentDidMount', - value: function componentDidMount() {} - }, { - key: 'componentWillReceiveProps', - value: function componentWillReceiveProps(nextProps, nextContext) {} - }, { - key: 'shouldComponentUpdate', - value: function shouldComponentUpdate(nextProps, nextState) { - return true; - } - }, { - key: 'componentWillUnmount', - value: function componentWillUnmount() {} - }, { - key: 'render', - value: function render() { - return _react2.default.createElement( - 'div', - { className: 'sortable-table', style: styles.sortableTable }, - _react2.default.createElement( - _card2.default, - null, - _react2.default.createElement( - Table, - { dataSource: this.state.dataSource, hasBorder: false }, - _react2.default.createElement(Table.Column, { width: 80, title: '\u987A\u5E8F', cell: this.renderOrder }), - _react2.default.createElement(Table.Column, { width: 280, title: '\u5F85\u529E\u4E8B\u9879', dataIndex: 'todo' }), - _react2.default.createElement(Table.Column, { width: 240, title: '\u5907\u6CE8', dataIndex: 'memo' }), - _react2.default.createElement(Table.Column, { width: 180, title: '\u6709\u6548\u65F6\u95F4', dataIndex: 'validity' }), - _react2.default.createElement(Table.Column, { title: '\u6392\u5E8F', cell: this.renderSortButton }) - ) - ) - ); - } - }]); - - return SortableTable; -}(_react.Component), _class.displayName = 'SortableTable', _class.propTypes = {}, _class.defaultProps = {}, _temp); -exports.default = SortableTable; - - -var styles = { - sortableTable: {} -}; -module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/SortableTable/lib/SortableTable.scss b/templates/ice-design/blocks/SortableTable/lib/SortableTable.scss deleted file mode 100644 index abe7068dd0..0000000000 --- a/templates/ice-design/blocks/SortableTable/lib/SortableTable.scss +++ /dev/null @@ -1,5 +0,0 @@ -@charset "UTF-8"; - -.sortable-table { - -} diff --git a/templates/ice-design/blocks/SortableTable/lib/index.js b/templates/ice-design/blocks/SortableTable/lib/index.js deleted file mode 100644 index fb78611a8a..0000000000 --- a/templates/ice-design/blocks/SortableTable/lib/index.js +++ /dev/null @@ -1,14 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _SortableTable = require('./SortableTable'); - -var _SortableTable2 = _interopRequireDefault(_SortableTable); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -exports.default = _SortableTable2.default; -module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/SortableTable/package.json b/templates/ice-design/blocks/SortableTable/package.json deleted file mode 100644 index 3803be7cc1..0000000000 --- a/templates/ice-design/blocks/SortableTable/package.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "name": "@icedesign/sortable-table-block", - "version": "0.1.0", - "description": "可排序的表格", - "files": [ - "src/", - "demo/", - "lib/", - "mock/" - ], - "author": { - "name": "ICE Team", - "email": "ice-admin@alibaba-inc.com" - }, - "repository": { - "type": "git", - "url": "https://github.com/alibaba/ice" - }, - "license": "MIT", - "keywords": [ - "ice", - "ice-block" - ], - "dependencies": { - "prop-types": "^15.5.8", - "@icedesign/base": "^0.1.0", - "@icedesign/card": "^0.1.0" - }, - "devDependencies": { - "babel-eslint": "^8.0.3", - "eslint": "^4.13.1", - "eslint-plugin-babel": "^4.1.1", - "eslint-plugin-react": "^7.5.1", - "@icedesign/demo-layout": "^0.1.0", - "eslint-plugin-import": "^2.8.0", - "eslint-config-airbnb": "^16.1.0", - "eslint-plugin-jsx-a11y": "^6.0.3", - "@icedesign/skin": "^0.1.2" - }, - "blockConfig": { - "name": "sortable-table", - "description": "可排序的表格", - "chinese": "可排序表格", - "category": "table", - "snapshot": "https://img.alicdn.com/tfs/TB1Od76i2DH8KJjy1XcXXcpdXXa-1892-638.png", - "sketchURL": "", - "icelandURL": "", - "themePackage": "@icedesign/skin" - }, - "scripts": {} -} diff --git a/templates/ice-design/blocks/SortableTable/src/SortableTable.jsx b/templates/ice-design/blocks/SortableTable/src/SortableTable.jsx deleted file mode 100644 index 43205b25c1..0000000000 --- a/templates/ice-design/blocks/SortableTable/src/SortableTable.jsx +++ /dev/null @@ -1,119 +0,0 @@ - - -import React, { Component } from 'react'; -import PropTypes from 'prop-types'; -import IceCard from '@icedesign/card'; -import './SortableTable.scss'; - -import { Table, Icon, Button } from '@icedesign/base'; - -const generatorData = () => { - return Array.from({ length: 5 }).map((item, index) => { - console.log('item', item); - return { - todo: `待办事项 ${index}`, - memo: `备注说明文案 ${index}`, - validity: '2017-12-12', - }; - }); -}; - -export default class SortableTable extends Component { - static displayName = 'SortableTable'; - - static propTypes = {}; - - static defaultProps = {}; - - constructor(props) { - super(props); - this.state = { - dataSource: generatorData(), - }; - } - - // ICE: React Component 的生命周期 - // http://ice.alibaba-inc.com/docs/guide/intro-react#React-组件的生命周期 - componentWillMount() { } - - componentDidMount() { } - - componentWillReceiveProps(nextProps, nextContext) { } - - shouldComponentUpdate(nextProps, nextState) { - return true; - } - - componentWillUnmount() { } - - moveUp = (index) => { - if (index > 0) { - const dataSource = this.state.dataSource; - const prevItem = dataSource[index - 1]; - const currentItem = dataSource[index]; - dataSource.splice(index - 1, 2, currentItem, prevItem); - this.setState({ - dataSource, - }); - } - }; - moveDown = (index) => { - if (index < this.state.dataSource.length - 1) { - const dataSource = this.state.dataSource; - const currentItem = dataSource[index]; - const nextItem = dataSource[index + 1]; - dataSource.splice(index, 2, nextItem, currentItem); - this.setState({ - dataSource, - }); - } - }; - - renderOrder = (value, index, record) => { - return {index}; - }; - - renderSortButton = (value, index, record) => { - return ( -
    - - -
    - ); - }; - - render() { - return ( -
    - - - - - - - -
    -
    -
    - ); - } -} - - -const styles = { - sortableTable: {}, -}; diff --git a/templates/ice-design/blocks/SortableTable/src/SortableTable.scss b/templates/ice-design/blocks/SortableTable/src/SortableTable.scss deleted file mode 100644 index abe7068dd0..0000000000 --- a/templates/ice-design/blocks/SortableTable/src/SortableTable.scss +++ /dev/null @@ -1,5 +0,0 @@ -@charset "UTF-8"; - -.sortable-table { - -} diff --git a/templates/ice-design/blocks/SortableTable/src/index.js b/templates/ice-design/blocks/SortableTable/src/index.js deleted file mode 100644 index 91f0469e7f..0000000000 --- a/templates/ice-design/blocks/SortableTable/src/index.js +++ /dev/null @@ -1,3 +0,0 @@ -import SortableTable from './SortableTable'; - -export default SortableTable; diff --git a/templates/ice-design/blocks/Testimonial/lib/Testimonial.js b/templates/ice-design/blocks/Testimonial/lib/Testimonial.js deleted file mode 100644 index 427f614b9d..0000000000 --- a/templates/ice-design/blocks/Testimonial/lib/Testimonial.js +++ /dev/null @@ -1,165 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = undefined; - -var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _class, _temp; - -var _react = require('react'); - -var _react2 = _interopRequireDefault(_react); - -var _card = require('@icedesign/card'); - -var _card2 = _interopRequireDefault(_card); - -require('./Testimonial.scss'); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -var generatorData = function generatorData(count) { - return Array.from({ length: count }).map(function () { - return { - name: '人物名', - company: '就职公司/职务', - description: '随着个人用户对于互联网内容获取的要求和口味越来越特别,怎样提供更加精准个性化的资讯订阅服务是提升用户体验的关键。但是本质上来说一般都是通过新闻源智能推荐这样的组合实现的', - imgUrl: 'https://img.alicdn.com/tfs/TB1cUfViZrI8KJjy0FhXXbfnpXa-450-456.png' - }; - }); -}; - -var Testimonial = (_temp = _class = function (_Component) { - _inherits(Testimonial, _Component); - - function Testimonial(props) { - _classCallCheck(this, Testimonial); - - var _this = _possibleConstructorReturn(this, (Testimonial.__proto__ || Object.getPrototypeOf(Testimonial)).call(this, props)); - - _this.state = {}; - return _this; - } - - _createClass(Testimonial, [{ - key: 'render', - value: function render() { - var data = generatorData(3); - return _react2.default.createElement( - 'div', - { className: 'testimonial' }, - _react2.default.createElement( - _card2.default, - null, - _react2.default.createElement( - 'div', - { style: styles.items }, - data.map(function (item, index) { - var rowLastItem = (index + 1) % 3 === 0 ? styles.rowLastItem : {}; - return _react2.default.createElement( - 'div', - { - key: index, - style: _extends({}, styles.item, rowLastItem), - className: 'item' - }, - _react2.default.createElement( - 'p', - { style: styles.description }, - '\u201C', - item.description, - '\u201D' - ), - _react2.default.createElement( - 'div', - { style: styles.infoBox }, - _react2.default.createElement('img', { - style: styles.avatar, - src: item.imgUrl, - alt: item.name - }), - _react2.default.createElement( - 'div', - { style: styles.baseInfo }, - _react2.default.createElement( - 'h5', - { style: styles.name }, - item.name - ), - _react2.default.createElement( - 'p', - { style: styles.company }, - item.company - ) - ) - ) - ); - }) - ) - ) - ); - } - }]); - - return Testimonial; -}(_react.Component), _class.displayName = 'Testimonial', _class.propTypes = {}, _class.defaultProps = {}, _temp); -exports.default = Testimonial; - - -var styles = { - items: { - display: 'flex', - flexWrap: 'wrap', - padding: '80px 0', - width: '1080px', - margin: '0 auto' - }, - item: { - width: '30%', - padding: '20px 30px 60px', - marginRight: '5%', - background: '#fff', - borderRadius: '6px', - textAlign: 'center' - }, - rowLastItem: { - marginRight: 0 - }, - infoBox: { - display: 'flex', - flexDirection: 'column', - alignItems: 'center', - marginTop: '40px' - }, - baseInfo: { - display: 'flex', - flexDirection: 'column' - }, - avatar: { - width: '64px', - height: '64px' - }, - name: { - margin: '10px 0 0', - fontSize: '15px', - fontWeight: 'bold' - }, - company: { - margin: 0 - }, - description: { - lineHeight: '28px' - } -}; -module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/Testimonial/lib/index.js b/templates/ice-design/blocks/Testimonial/lib/index.js deleted file mode 100644 index 4ca9504bf6..0000000000 --- a/templates/ice-design/blocks/Testimonial/lib/index.js +++ /dev/null @@ -1,14 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _Testimonial = require('./Testimonial'); - -var _Testimonial2 = _interopRequireDefault(_Testimonial); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -exports.default = _Testimonial2.default; -module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/Testimonial/src/Testimonial.scss b/templates/ice-design/blocks/Testimonial/src/Testimonial.scss deleted file mode 100644 index 1809a97f6f..0000000000 --- a/templates/ice-design/blocks/Testimonial/src/Testimonial.scss +++ /dev/null @@ -1,5 +0,0 @@ -@charset "UTF-8"; - -.testimonial { - -} diff --git a/templates/ice-design/blocks/TextSearchList/lib/ArticleList/ArticleList.js b/templates/ice-design/blocks/TextSearchList/lib/ArticleList/ArticleList.js deleted file mode 100644 index f472f531b4..0000000000 --- a/templates/ice-design/blocks/TextSearchList/lib/ArticleList/ArticleList.js +++ /dev/null @@ -1,180 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = undefined; - -var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _class, _temp2; - -var _react = require('react'); - -var _react2 = _interopRequireDefault(_react); - -var _card = require('@icedesign/card'); - -var _card2 = _interopRequireDefault(_card); - -require('./ArticleList.scss'); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -var Button = require('@icedesign/base/lib/button'); - -var ArticleList = (_temp2 = _class = function (_Component) { - _inherits(ArticleList, _Component); - - function ArticleList() { - var _ref; - - var _temp, _this, _ret; - - _classCallCheck(this, ArticleList); - - for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = ArticleList.__proto__ || Object.getPrototypeOf(ArticleList)).call.apply(_ref, [this].concat(args))), _this), _this.handleTagClick = function (idx, text) { - // handler - console.log('handleTagClick:', text); - }, _this.renderTag = function (text, onClick, idx) { - return _react2.default.createElement( - Button, - { size: 'small', onClick: onClick, key: idx, style: styles.button }, - text - ); - }, _this.renderItem = function (data, idx, all) { - var isLast = all.length - 1 === idx; - var wrapperStyle = _extends({}, styles.item); - var informationStyle = _extends({}, styles.information); - if (isLast) { - delete wrapperStyle.borderBottom; - wrapperStyle.marginBottom = '0px'; - informationStyle.marginBottom = '0px'; - } - return _react2.default.createElement( - 'div', - { key: idx, style: wrapperStyle }, - _react2.default.createElement( - 'div', - { style: styles.title }, - data.title, - _react2.default.createElement( - 'span', - { style: styles.datetime }, - data.datetime - ) - ), - _react2.default.createElement( - 'div', - { style: styles.desc }, - data.description - ), - _react2.default.createElement( - 'div', - { style: informationStyle }, - _react2.default.createElement( - 'div', - { style: styles.tagList }, - data.tags.map(function (item) { - return _this.renderTag(item, _this.handleTagClick.bind(_this, idx, item), idx); - }) - ), - _react2.default.createElement( - 'div', - { style: styles.operator }, - _react2.default.createElement( - 'span', - { style: styles.operatorItem }, - '\u70B9\u8D5E: ', - data.star - ), - _react2.default.createElement( - 'span', - { style: styles.operatorItem }, - '\u559C\u7231: ', - data.like - ), - _react2.default.createElement( - 'span', - { style: styles.operatorItem }, - '\u8BC4\u8BBA: ', - data.comment - ) - ) - ) - ); - }, _temp), _possibleConstructorReturn(_this, _ret); - } - - _createClass(ArticleList, [{ - key: 'render', - value: function render() { - var _props$dataSource = this.props.dataSource, - dataSource = _props$dataSource === undefined ? [] : _props$dataSource; - - return _react2.default.createElement( - _card2.default, - { className: 'article-list' }, - dataSource.map(this.renderItem) - ); - } - }]); - - return ArticleList; -}(_react.Component), _class.displayName = 'ArticleList', _temp2); -exports.default = ArticleList; - - -var styles = { - item: { - borderBottom: '1px solid #F4F4F4', - marginBottom: '15px' - }, - title: { - color: '#333', - fontSize: '16px', - marginBottom: '15px', - position: 'relative' - }, - datetime: { - position: 'absolute', - right: '10px', - fontSize: '12px', - color: '#9B9B9B' - }, - desc: { - color: '#999', - fontSize: '14px', - paddingBottom: '15px' - }, - information: { - display: 'flex', - flexDirection: 'row', - justifyContent: 'space-between', - marginBottom: '15px' - }, - button: { - marginRight: '10px' - }, - operator: { - paddingTop: '8px', - fontSize: '12px', - color: '#9B9B9B' - }, - operatorItem: { - marginRight: '5px' - } -}; -module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/TextSearchList/lib/ArticleList/index.js b/templates/ice-design/blocks/TextSearchList/lib/ArticleList/index.js deleted file mode 100644 index 27b570b2d7..0000000000 --- a/templates/ice-design/blocks/TextSearchList/lib/ArticleList/index.js +++ /dev/null @@ -1,14 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _ArticleList = require('./ArticleList'); - -var _ArticleList2 = _interopRequireDefault(_ArticleList); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -exports.default = _ArticleList2.default; -module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/TextSearchList/lib/Filter/Filter.js b/templates/ice-design/blocks/TextSearchList/lib/Filter/Filter.js deleted file mode 100644 index 6a16d6c83c..0000000000 --- a/templates/ice-design/blocks/TextSearchList/lib/Filter/Filter.js +++ /dev/null @@ -1,137 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = undefined; - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _react = require('react'); - -var _react2 = _interopRequireDefault(_react); - -var _card = require('@icedesign/card'); - -var _card2 = _interopRequireDefault(_card); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -var Filter = function (_Component) { - _inherits(Filter, _Component); - - function Filter() { - _classCallCheck(this, Filter); - - return _possibleConstructorReturn(this, (Filter.__proto__ || Object.getPrototypeOf(Filter)).apply(this, arguments)); - } - - _createClass(Filter, [{ - key: 'render', - value: function render() { - return _react2.default.createElement( - _card2.default, - { style: styles.container }, - _react2.default.createElement( - 'div', - { style: styles.category }, - _react2.default.createElement( - 'span', - { style: styles.label }, - '\u6240\u5C5E\u7C7B\u76EE\uFF1A' - ), - _react2.default.createElement( - 'span', - { style: styles.item }, - '\u5168\u90E8' - ), - _react2.default.createElement( - 'span', - { style: styles.item }, - '\u7C7B\u76EE\u4E00' - ), - _react2.default.createElement( - 'span', - { style: styles.item }, - '\u7C7B\u76EE\u4E8C' - ), - _react2.default.createElement( - 'span', - { style: styles.item }, - '\u7C7B\u76EE\u4E09' - ), - _react2.default.createElement( - 'span', - { style: styles.item }, - '\u7C7B\u76EE\u56DB' - ) - ), - _react2.default.createElement( - 'div', - { style: styles.others }, - _react2.default.createElement( - 'span', - { style: styles.label }, - '\u5176\u5B83\u7B5B\u9009\uFF1A' - ), - _react2.default.createElement( - 'span', - { style: styles.item }, - '\u5168\u90E8' - ), - _react2.default.createElement( - 'span', - { style: styles.item }, - '\u7C7B\u76EE\u4E00' - ), - _react2.default.createElement( - 'span', - { style: styles.item }, - '\u7C7B\u76EE\u4E8C' - ), - _react2.default.createElement( - 'span', - { style: styles.item }, - '\u7C7B\u76EE\u4E09' - ), - _react2.default.createElement( - 'span', - { style: styles.item }, - '\u7C7B\u76EE\u56DB' - ) - ) - ); - } - }]); - - return Filter; -}(_react.Component); - -exports.default = Filter; - - -var styles = { - container: {}, - category: { - padding: '0 10px 15px', - borderBottom: '1px solid #eee' - }, - others: { - padding: '15px 10px 0' - }, - label: { - color: '#333', - fontSize: '14px', - marginRight: '10px' - }, - item: { - marginRight: '10px' - } -}; -module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/TextSearchList/lib/Filter/index.js b/templates/ice-design/blocks/TextSearchList/lib/Filter/index.js deleted file mode 100644 index 3213b36325..0000000000 --- a/templates/ice-design/blocks/TextSearchList/lib/Filter/index.js +++ /dev/null @@ -1,14 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _Filter = require('./Filter'); - -var _Filter2 = _interopRequireDefault(_Filter); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -exports.default = _Filter2.default; -module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/TextSearchList/lib/TextSearchList.js b/templates/ice-design/blocks/TextSearchList/lib/TextSearchList.js deleted file mode 100644 index 4a349c0129..0000000000 --- a/templates/ice-design/blocks/TextSearchList/lib/TextSearchList.js +++ /dev/null @@ -1,126 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = undefined; - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _class, _temp; - -var _react = require('react'); - -var _react2 = _interopRequireDefault(_react); - -var _card = require('@icedesign/card'); - -var _card2 = _interopRequireDefault(_card); - -var _ArticleList = require('./ArticleList'); - -var _ArticleList2 = _interopRequireDefault(_ArticleList); - -var _Filter = require('./Filter'); - -var _Filter2 = _interopRequireDefault(_Filter); - -require('./TextSearchList.scss'); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -var Search = require('@icedesign/base/lib/search'); - -var dataSource = [{ - title: '越夏越嗨皮-7月官方营销活动-技能提升方向', - description: '商家通过V任务选择主播并达成合作,费用按照商品链接计算,一个商品为一个价格,建议主播在一场直播里最多接60个商品,并提供不少于两个小时的直播服务,每个商品讲解时间不少于5分钟。 ', - tags: ['直播', '大促', '简介'], - datetime: '2017年12月12日 18:00', - star: 130, - like: 233, - comment: 123 -}, { - title: '越夏越嗨皮-7月官方营销活动-技能提升方向', - description: '商家通过V任务选择主播并达成合作,费用按照商品链接计算,一个商品为一个价格,建议主播在一场直播里最多接60个商品,并提供不少于两个小时的直播服务,每个商品讲解时间不少于5分钟。 ', - tags: ['直播', '大促', '简介'], - datetime: '2017年12月12日 18:00', - star: 130, - like: 233, - comment: 123 -}, { - title: '越夏越嗨皮-7月官方营销活动-技能提升方向', - description: '商家通过V任务选择主播并达成合作,费用按照商品链接计算,一个商品为一个价格,建议主播在一场直播里最多接60个商品,并提供不少于两个小时的直播服务,每个商品讲解时间不少于5分钟。 ', - tags: ['直播', '大促', '简介'], - datetime: '2017年12月12日 18:00', - star: 130, - like: 233, - comment: 123 -}, { - title: '越夏越嗨皮-7月官方营销活动-技能提升方向', - description: '商家通过V任务选择主播并达成合作,费用按照商品链接计算,一个商品为一个价格,建议主播在一场直播里最多接60个商品,并提供不少于两个小时的直播服务,每个商品讲解时间不少于5分钟。 ', - tags: ['直播', '大促', '简介'], - datetime: '2017年12月12日 18:00', - star: 130, - like: 233, - comment: 123 -}, { - title: '越夏越嗨皮-7月官方营销活动-技能提升方向', - description: '商家通过V任务选择主播并达成合作,费用按照商品链接计算,一个商品为一个价格,建议主播在一场直播里最多接60个商品,并提供不少于两个小时的直播服务,每个商品讲解时间不少于5分钟。 ', - tags: ['直播', '大促', '简介'], - datetime: '2017年12月12日 18:00', - star: 130, - like: 233, - comment: 123 -}]; - -var TextSearchList = (_temp = _class = function (_Component) { - _inherits(TextSearchList, _Component); - - function TextSearchList() { - _classCallCheck(this, TextSearchList); - - return _possibleConstructorReturn(this, (TextSearchList.__proto__ || Object.getPrototypeOf(TextSearchList)).apply(this, arguments)); - } - - _createClass(TextSearchList, [{ - key: 'render', - value: function render() { - return _react2.default.createElement( - 'div', - { className: 'text-search-list' }, - _react2.default.createElement( - _card2.default, - { style: styles.searchWrap }, - _react2.default.createElement(Search, { - size: 'large', - inputWidth: 500, - searchText: '\u641C\u7D22', - placeholder: '\u8BF7\u8F93\u5165\u8981\u641C\u7D22\u7684\u5173\u952E\u8BCD\u6216\u5546\u54C1\u94FE\u63A5' - }) - ), - _react2.default.createElement(_Filter2.default, null), - _react2.default.createElement(_ArticleList2.default, { dataSource: dataSource }) - ); - } - }]); - - return TextSearchList; -}(_react.Component), _class.displayName = 'TextSearchList', _temp); -exports.default = TextSearchList; - - -var styles = { - searchWrap: { - display: 'flex', - justifyContent: 'center', - alignItems: 'center', - height: '80px' - } -}; -module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/TextSearchList/lib/index.js b/templates/ice-design/blocks/TextSearchList/lib/index.js deleted file mode 100644 index 8209da8ab3..0000000000 --- a/templates/ice-design/blocks/TextSearchList/lib/index.js +++ /dev/null @@ -1,14 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _TextSearchList = require('./TextSearchList'); - -var _TextSearchList2 = _interopRequireDefault(_TextSearchList); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -exports.default = _TextSearchList2.default; -module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/TextSearchList/src/ArticleList/ArticleList.scss b/templates/ice-design/blocks/TextSearchList/src/ArticleList/ArticleList.scss deleted file mode 100644 index 20e67a3b1e..0000000000 --- a/templates/ice-design/blocks/TextSearchList/src/ArticleList/ArticleList.scss +++ /dev/null @@ -1,5 +0,0 @@ -@charset "UTF-8"; - -.article-list { - -} diff --git a/templates/ice-design/blocks/TextSearchList/src/TextSearchList.scss b/templates/ice-design/blocks/TextSearchList/src/TextSearchList.scss deleted file mode 100644 index 3af9c3cc90..0000000000 --- a/templates/ice-design/blocks/TextSearchList/src/TextSearchList.scss +++ /dev/null @@ -1,5 +0,0 @@ -@charset "UTF-8"; - -.text-search-list { - -} diff --git a/templates/ice-design/blocks/TopicCard/lib/TopicCard.js b/templates/ice-design/blocks/TopicCard/lib/TopicCard.js deleted file mode 100644 index 03bf2c68c8..0000000000 --- a/templates/ice-design/blocks/TopicCard/lib/TopicCard.js +++ /dev/null @@ -1,193 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = undefined; - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _class, _temp; - -var _react = require('react'); - -var _react2 = _interopRequireDefault(_react); - -var _card = require('@icedesign/card'); - -var _card2 = _interopRequireDefault(_card); - -require('./TopicCard.scss'); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -var dataSource = [{ - meta: '话题曝光', - total: '56799', - up: '100', - down: '100', - icon: '//img.alicdn.com/tfs/TB1nQ4hgILJ8KJjy0FnXXcFDpXa-132-126.png' -}, { - meta: '话题曝光', - total: '56799', - up: '100', - down: '100', - icon: '//img.alicdn.com/tfs/TB1OuuTgL6H8KJjy0FjXXaXepXa-132-126.png' -}, { - meta: '话题曝光', - total: '56799', - up: '100', - down: '100', - icon: '//img.alicdn.com/tfs/TB1aTaIgRTH8KJjy0FiXXcRsXXa-132-123.png' -}, { - meta: '话题曝光', - total: '56799', - up: '100', - down: '100', - icon: '//img.alicdn.com/tfs/TB1dTaIgRTH8KJjy0FiXXcRsXXa-120-120.png' -}, { - meta: '话题曝光', - total: '56799', - up: '100', - down: '100', - icon: '//img.alicdn.com/tfs/TB1OuuTgL6H8KJjy0FjXXaXepXa-132-126.png' -}]; - -var TopicCard = (_temp = _class = function (_Component) { - _inherits(TopicCard, _Component); - - function TopicCard() { - _classCallCheck(this, TopicCard); - - return _possibleConstructorReturn(this, (TopicCard.__proto__ || Object.getPrototypeOf(TopicCard)).apply(this, arguments)); - } - - _createClass(TopicCard, [{ - key: 'shouldComponentUpdate', - value: function shouldComponentUpdate() { - return false; - } - }, { - key: 'render', - value: function render() { - return _react2.default.createElement( - _card2.default, - { style: styles.container, className: 'tab-card', title: '\u6570\u636E\u6982\u89C8' }, - _react2.default.createElement( - 'div', - { className: 'topic-card' }, - _react2.default.createElement( - 'div', - { style: styles.horizontalWraper }, - dataSource.map(function (item, idx) { - return _react2.default.createElement( - 'div', - { - style: styles.topicCardItem, - className: 'topic-card-item', - key: 'card-item-' + idx - }, - _react2.default.createElement( - 'div', - { style: styles.cover }, - _react2.default.createElement('img', { alt: 'icon', src: item.icon, style: styles.icon }) - ), - _react2.default.createElement( - 'div', - { style: styles.content }, - _react2.default.createElement( - 'div', - { style: styles.meta }, - item.meta - ), - _react2.default.createElement( - 'div', - { style: styles.total }, - item.total - ), - _react2.default.createElement( - 'div', - { style: styles.compareText }, - '\u8F83\u524D\u65E5 ', - _react2.default.createElement( - 'span', - { style: styles.up }, - '\u2191+', - item.up - ) - ), - _react2.default.createElement( - 'div', - { style: styles.compareText }, - '\u8FD17\u5929 ', - _react2.default.createElement( - 'span', - { style: styles.down }, - '\u2193-', - item.down - ) - ) - ) - ); - }) - ) - ) - ); - } - }]); - - return TopicCard; -}(_react.Component), _class.displayName = 'TopicCard', _temp); -exports.default = TopicCard; - - -var styles = { - container: { - margin: '0 0 20px 0' - }, - icon: { - width: '44px', - height: '41px' - }, - horizontalWraper: { - display: 'flex', - flexDirection: 'row', - flexWrap: 'wrap' - }, - content: {}, - cover: { - backgroundColor: '#e9f1ff', - marginRight: '10px', - height: '70px', - width: '70px', - borderRadius: '70px', - display: 'flex', - alignItems: 'center', - justifyContent: 'center' - }, - meta: { - fontSize: '12px', - color: '#333333' - }, - total: { - fontSize: '24px', - color: '#333333' - }, - compareText: { - fontSize: '12px', - color: '#999999' - }, - up: { - color: '#fc5848' - }, - down: { - color: '#64d874' - } -}; -module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/TopicCard/lib/index.js b/templates/ice-design/blocks/TopicCard/lib/index.js deleted file mode 100644 index 562519a4f4..0000000000 --- a/templates/ice-design/blocks/TopicCard/lib/index.js +++ /dev/null @@ -1,14 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _TopicCard = require('./TopicCard'); - -var _TopicCard2 = _interopRequireDefault(_TopicCard); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -exports.default = _TopicCard2.default; -module.exports = exports['default']; \ No newline at end of file diff --git a/templates/ice-design/blocks/TopicCard/src/TopicCard.scss b/templates/ice-design/blocks/TopicCard/src/TopicCard.scss deleted file mode 100644 index d0e76145c3..0000000000 --- a/templates/ice-design/blocks/TopicCard/src/TopicCard.scss +++ /dev/null @@ -1,13 +0,0 @@ -@charset "UTF-8"; - -.topic-card { - .topic-card-item { - display: flex; - flex-direction: row; - width: 165px; - margin: 10px 22px 10px 0; - &:nth-child(5n) { - margin-right: 0; - } - } -} diff --git a/templates/ice-design/blocks/TreeCardList/.eslintignore b/templates/ice-design/blocks/TreeCardList/.eslintignore deleted file mode 100644 index 3b21308fc7..0000000000 --- a/templates/ice-design/blocks/TreeCardList/.eslintignore +++ /dev/null @@ -1,12 +0,0 @@ -# 忽略目录 -build/ -tests/ -demo/ -lib/ - -# node 覆盖率文件 -coverage/ - -# 忽略文件 -**/*-min.js -**/*.min.js \ No newline at end of file diff --git a/templates/ice-design/blocks/TreeCardList/.eslintrc b/templates/ice-design/blocks/TreeCardList/.eslintrc deleted file mode 100644 index 7a4e5bac48..0000000000 --- a/templates/ice-design/blocks/TreeCardList/.eslintrc +++ /dev/null @@ -1,62 +0,0 @@ -{ - "root": true, - "parser": "babel-eslint", - "extends": "eslint-config-airbnb", - "parserOptions": { - "ecmaVersion": 6, - "ecmaFeatures": { - "jsx": true, - "experimentalObjectRestSpread": true - } - }, - "env": { - "browser": true - }, - "plugins": [ - "react", - "babel" - ], - "rules": { - "react/forbid-prop-types": 0, - "jsx-a11y/label-has-for": 0, - "jsx-a11y/no-static-element-interactions": 0, - "jsx-a11y/anchor-has-content": 0, - "jsx-a11y/click-events-have-key-events": 0, - "jsx-a11y/anchor-is-valid": 0, - "react/no-array-index-key": 0, - "func-names": 0, - "arrow-body-style": 0, - "no-use-before-define": 0, - "react/sort-comp": 0, - "react/prop-types": 0, - "react/jsx-first-prop-new-line": 0, - "react/jsx-filename-extension": [ - 1, - { - "extensions": [ - ".js", - ".jsx" - ] - } - ], - "import/extensions": 0, - "import/no-unresolved": 0, - "import/no-extraneous-dependencies": 0, - "prefer-destructuring": 0, - "no-param-reassign": 0, - "no-return-assign": 0, - "max-len": 0, - "consistent-return": 0, - "no-redeclare": 0, - "react/require-extension": 0, - "react/no-danger": 0, - "comma-dangle": [ - "error", - "always-multiline" - ], - "function-paren-newline": 0, - "object-curly-newline": 0, - "no-restricted-globals": 0, - "react/prefer-stateless-function": 0 - } -} diff --git a/templates/ice-design/blocks/TreeCardList/.gitignore b/templates/ice-design/blocks/TreeCardList/.gitignore deleted file mode 100644 index cc45d6fb3c..0000000000 --- a/templates/ice-design/blocks/TreeCardList/.gitignore +++ /dev/null @@ -1,13 +0,0 @@ - -*.swp -*.dia~ -.idea/ -.DS_Store - -npm-debug.log -yarn-error.log -node_modules/ -tmp/ - -# happypack 缓存 -.happypack diff --git a/templates/ice-design/blocks/TreeCardList/demo/index.html b/templates/ice-design/blocks/TreeCardList/demo/index.html deleted file mode 100644 index 9d2d3a663d..0000000000 --- a/templates/ice-design/blocks/TreeCardList/demo/index.html +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - Document - - - - -
    - - - - - - diff --git a/templates/ice-design/blocks/TreeCardList/demo/index.js b/templates/ice-design/blocks/TreeCardList/demo/index.js deleted file mode 100644 index 178a766115..0000000000 --- a/templates/ice-design/blocks/TreeCardList/demo/index.js +++ /dev/null @@ -1,19 +0,0 @@ -import React, {Component} from 'react'; -import {render} from 'react-dom'; - -// 载入默认全局样式 normalize 、.clearfix 和一些 mixin 方法等 -import '@icedesign/base/lib/_components/@alife/next-core/lib/index.scss'; - -import DemoLayout from '@icedesign/demo-layout'; -import Block from '../src'; - -const props = { - // ... -}; - -render( - - - , - document.querySelector('#mountNode') -); diff --git a/templates/ice-design/layouts/ScalableAsideLayout/.editorconfig b/templates/ice-design/layouts/ScalableAsideLayout/.editorconfig deleted file mode 100644 index 22ef5ace54..0000000000 --- a/templates/ice-design/layouts/ScalableAsideLayout/.editorconfig +++ /dev/null @@ -1,16 +0,0 @@ -# http://editorconfig.org -root = true - -[*] -indent_style = space -indent_size = 2 -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -[*.md] -trim_trailing_whitespace = false - -[makefile] -indent_style = tab -indent_size = 4 diff --git a/templates/ice-design/layouts/ScalableAsideLayout/mock/api.json b/templates/ice-design/layouts/ScalableAsideLayout/mock/api.json deleted file mode 100644 index e706430232..0000000000 --- a/templates/ice-design/layouts/ScalableAsideLayout/mock/api.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "status": "success", - "data": {} -} From 22de1e6f8d1ba491b551c1f6d2d8d9d66a060cbb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B5=A9=E7=9D=BF?= Date: Thu, 4 Jan 2018 17:50:07 +0800 Subject: [PATCH 0007/1028] feat: change ComplexFilter and SuccessDialog snapshot --- blocks/ComplexFilter/README.md | 2 +- blocks/ComplexFilter/package.json | 4 ++-- blocks/SuccessDialog/README.md | 2 +- blocks/SuccessDialog/package.json | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/blocks/ComplexFilter/README.md b/blocks/ComplexFilter/README.md index 91660d1669..a59f147097 100644 --- a/blocks/ComplexFilter/README.md +++ b/blocks/ComplexFilter/README.md @@ -4,7 +4,7 @@ 复杂筛选 -![截图](https://gw.alicdn.com/tfs/TB1MyEzh4rI8KJjy0FpXXb5hVXa-2036-844.png) +![截图](https://img.alicdn.com/tfs/TB1mlUelb_I8KJjy1XaXXbsxpXa-1914-382.png) ## 更多 diff --git a/blocks/ComplexFilter/package.json b/blocks/ComplexFilter/package.json index 274ca07f47..5308e06f92 100644 --- a/blocks/ComplexFilter/package.json +++ b/blocks/ComplexFilter/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/complex-filter-block", - "version": "0.1.0", + "version": "0.1.2", "description": "复杂筛选", "files": [ "src/", @@ -42,7 +42,7 @@ "description": "复杂筛选", "chinese": "复杂筛选", "category": "filter", - "snapshot": "https://gw.alicdn.com/tfs/TB1MyEzh4rI8KJjy0FpXXb5hVXa-2036-844.png", + "snapshot": "https://img.alicdn.com/tfs/TB1mlUelb_I8KJjy1XaXXbsxpXa-1914-382.png", "sketchURL": "", "icelandURL": "", "themePackage": "@icedesign/skin" diff --git a/blocks/SuccessDialog/README.md b/blocks/SuccessDialog/README.md index 6c5fb3cd68..6eb702a25c 100644 --- a/blocks/SuccessDialog/README.md +++ b/blocks/SuccessDialog/README.md @@ -2,7 +2,7 @@ 简介:提示框-成功 -![截图](https://img.alicdn.com/tfs/TB1J9cak4rI8KJjy0FpXXb5hVXa-1284-554.png) +![截图](https://img.alicdn.com/tfs/TB1CMVpi5qAXuNjy1XdXXaYcVXa-1278-540.png) ## 更多 diff --git a/blocks/SuccessDialog/package.json b/blocks/SuccessDialog/package.json index 775b9bd574..c0b29665e2 100644 --- a/blocks/SuccessDialog/package.json +++ b/blocks/SuccessDialog/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/success-dialog-block", - "version": "0.1.0", + "version": "0.1.1", "description": "", "main": "lib/index.js", "files": [ @@ -42,7 +42,7 @@ "description": "", "chinese": "提示框-成功", "category": "modal", - "snapshot": "https://img.alicdn.com/tfs/TB1J9cak4rI8KJjy0FpXXb5hVXa-1284-554.png", + "snapshot": "https://img.alicdn.com/tfs/TB1CMVpi5qAXuNjy1XdXXaYcVXa-1278-540.png", "sketchURL": "", "icelandURL": "", "themePackage": "@icedesign/skin" From f0d6aaf5ba397ce14e410c5c1d3549fafb900478 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B5=A9=E7=9D=BF?= Date: Thu, 4 Jan 2018 17:53:37 +0800 Subject: [PATCH 0008/1028] feat: change ComplexFilter snapshot --- blocks/ComplexFilter/README.md | 2 +- blocks/ComplexFilter/package.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/blocks/ComplexFilter/README.md b/blocks/ComplexFilter/README.md index a59f147097..e526bb4d7d 100644 --- a/blocks/ComplexFilter/README.md +++ b/blocks/ComplexFilter/README.md @@ -4,7 +4,7 @@ 复杂筛选 -![截图](https://img.alicdn.com/tfs/TB1mlUelb_I8KJjy1XaXXbsxpXa-1914-382.png) +![截图](https://img.alicdn.com/tfs/TB1y4M2lgvD8KJjy0FlXXagBFXa-1908-232.png) ## 更多 diff --git a/blocks/ComplexFilter/package.json b/blocks/ComplexFilter/package.json index 5308e06f92..f73dd1a760 100644 --- a/blocks/ComplexFilter/package.json +++ b/blocks/ComplexFilter/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/complex-filter-block", - "version": "0.1.2", + "version": "0.1.3", "description": "复杂筛选", "files": [ "src/", @@ -42,7 +42,7 @@ "description": "复杂筛选", "chinese": "复杂筛选", "category": "filter", - "snapshot": "https://img.alicdn.com/tfs/TB1mlUelb_I8KJjy1XaXXbsxpXa-1914-382.png", + "snapshot": "https://img.alicdn.com/tfs/TB1y4M2lgvD8KJjy0FlXXagBFXa-1908-232.png", "sketchURL": "", "icelandURL": "", "themePackage": "@icedesign/skin" From 9323067d93f30f4227abf747ac9587d3ad58d88a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B5=A9=E7=9D=BF?= Date: Thu, 4 Jan 2018 18:07:04 +0800 Subject: [PATCH 0009/1028] feat: change TreeCardList snapshot --- blocks/TreeCardList/README.md | 2 +- blocks/TreeCardList/package.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/blocks/TreeCardList/README.md b/blocks/TreeCardList/README.md index 37e076f7c3..5b7c9ee185 100644 --- a/blocks/TreeCardList/README.md +++ b/blocks/TreeCardList/README.md @@ -4,7 +4,7 @@ 树形卡片列表 -![截图](https://gw.alicdn.com/tfs/TB1eX93jlfH8KJjy1XbXXbLdXXa-454-686.png) +![截图](https://img.alicdn.com/tfs/TB1lJIelhTI8KJjSspiXXbM4FXa-1014-780.png) ## 更多 diff --git a/blocks/TreeCardList/package.json b/blocks/TreeCardList/package.json index ba40275da0..d1a33fb25c 100644 --- a/blocks/TreeCardList/package.json +++ b/blocks/TreeCardList/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/tree-card-list-block", - "version": "0.1.0", + "version": "0.1.1", "description": "树形卡片列表", "files": [ "src/", @@ -46,7 +46,7 @@ "description": "树形卡片列表", "chinese": "树形卡片列表", "category": "list", - "snapshot": "https://gw.alicdn.com/tfs/TB1eX93jlfH8KJjy1XbXXbLdXXa-454-686.png", + "snapshot": "https://img.alicdn.com/tfs/TB1lJIelhTI8KJjSspiXXbM4FXa-1014-780.png", "sketchURL": "", "icelandURL": "", "themePackage": "@icedesign/skin" From 7773e1ec0f241a5233eb4e6117b9a1723a8af2e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B5=A9=E7=9D=BF?= Date: Thu, 4 Jan 2018 18:12:57 +0800 Subject: [PATCH 0010/1028] feat: change ForgetPasswordForm snapshot --- blocks/ForgetPasswordForm/README.md | 2 +- blocks/ForgetPasswordForm/package.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/blocks/ForgetPasswordForm/README.md b/blocks/ForgetPasswordForm/README.md index 6bab3c2cc7..23f92a5bd7 100644 --- a/blocks/ForgetPasswordForm/README.md +++ b/blocks/ForgetPasswordForm/README.md @@ -4,7 +4,7 @@ 忘记密码 -![截图](https://gw.alicdn.com/tfs/TB1YYOAg5qAXuNjy1XdXXaYcVXa-1012-424.png) +![截图](https://img.alicdn.com/tfs/TB1TjBilvDH8KJjy1XcXXcpdXXa-1102-554.png) ## 更多 diff --git a/blocks/ForgetPasswordForm/package.json b/blocks/ForgetPasswordForm/package.json index 254882b359..f0986fe1c0 100644 --- a/blocks/ForgetPasswordForm/package.json +++ b/blocks/ForgetPasswordForm/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/forget-password-form-block", - "version": "0.1.0", + "version": "0.1.1", "description": "忘记密码", "files": [ "src/", @@ -47,7 +47,7 @@ "description": "忘记密码", "chinese": "忘记密码", "category": "form", - "snapshot": "https://gw.alicdn.com/tfs/TB1YYOAg5qAXuNjy1XdXXaYcVXa-1012-424.png", + "snapshot": "https://img.alicdn.com/tfs/TB1TjBilvDH8KJjy1XcXXcpdXXa-1102-554.png", "sketchURL": "", "icelandURL": "", "themePackage": "@icedesign/skin" From a03f7e0b6222adc0885ec94a0e1d5a0637f8d775 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B5=A9=E7=9D=BF?= Date: Thu, 4 Jan 2018 18:15:07 +0800 Subject: [PATCH 0011/1028] feat: change PrivateMessageForm snapshot --- blocks/PrivateMessageForm/README.md | 2 +- blocks/PrivateMessageForm/package.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/blocks/PrivateMessageForm/README.md b/blocks/PrivateMessageForm/README.md index 110f7fe1e3..88d011c710 100644 --- a/blocks/PrivateMessageForm/README.md +++ b/blocks/PrivateMessageForm/README.md @@ -4,7 +4,7 @@ 私有消息表单 -![截图](https://gw.alicdn.com/tfs/TB1pz0tjr_I8KJjy1XaXXbsxpXa-996-682.png) +![截图](https://img.alicdn.com/tfs/TB1H5Q1lhrI8KJjy0FpXXb5hVXa-1234-784.png) ## 更多 diff --git a/blocks/PrivateMessageForm/package.json b/blocks/PrivateMessageForm/package.json index c50c2165db..9719056910 100644 --- a/blocks/PrivateMessageForm/package.json +++ b/blocks/PrivateMessageForm/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/private-message-form-block", - "version": "0.1.0", + "version": "0.1.1", "description": "私有消息表单", "files": [ "src/", @@ -46,7 +46,7 @@ "description": "私有消息表单", "chinese": "私有消息表单", "category": "form", - "snapshot": "https://gw.alicdn.com/tfs/TB1pz0tjr_I8KJjy1XaXXbsxpXa-996-682.png", + "snapshot": "https://img.alicdn.com/tfs/TB1H5Q1lhrI8KJjy0FpXXb5hVXa-1234-784.png", "sketchURL": "", "icelandURL": "", "themePackage": "@icedesign/skin" From c11aefc02855d0f441d55f12f7a467f77be4aec4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B5=A9=E7=9D=BF?= Date: Thu, 4 Jan 2018 18:22:06 +0800 Subject: [PATCH 0012/1028] feat: change MessageList snapshot --- blocks/MessageList/README.md | 2 +- blocks/MessageList/demo/index.js | 6 +- blocks/MessageList/package.json | 4 +- blocks/MessageList/src/MessageList.jsx | 80 +++++++++++++++----------- 4 files changed, 54 insertions(+), 38 deletions(-) diff --git a/blocks/MessageList/README.md b/blocks/MessageList/README.md index 0dedd5d857..5fcea4049b 100644 --- a/blocks/MessageList/README.md +++ b/blocks/MessageList/README.md @@ -4,7 +4,7 @@ 消息列表 -![截图](https://gw.alicdn.com/tfs/TB1qZtrir_I8KJjy1XaXXbsxpXa-1882-1262.png) +![截图](https://img.alicdn.com/tfs/TB1hbVYlsLJ8KJjy0FnXXcFDpXa-1900-1180.png) ## 更多 diff --git a/blocks/MessageList/demo/index.js b/blocks/MessageList/demo/index.js index d0af0a70ee..4d6acd389a 100644 --- a/blocks/MessageList/demo/index.js +++ b/blocks/MessageList/demo/index.js @@ -1,8 +1,8 @@ -import React, {Component} from 'react'; -import {render} from 'react-dom'; +import React, { Component } from 'react'; +import { render } from 'react-dom'; // 载入默认全局样式 normalize 、.clearfix 和一些 mixin 方法等 -import '@alife/next/lib/_components/@alife/next-core/lib/index.scss'; +import '@icedesign/base/lib/_components/@alife/next-core/lib/index.scss'; import DemoLayout from '@icedesign/demo-layout'; import Block from '../src'; diff --git a/blocks/MessageList/package.json b/blocks/MessageList/package.json index c799c37d42..b20eb682d9 100644 --- a/blocks/MessageList/package.json +++ b/blocks/MessageList/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/message-list-block", - "version": "0.1.0", + "version": "0.1.1", "description": "消息列表", "files": [ "src/", @@ -42,7 +42,7 @@ "description": "消息列表", "chinese": "消息列表", "category": "list", - "snapshot": "https://gw.alicdn.com/tfs/TB1qZtrir_I8KJjy1XaXXbsxpXa-1882-1262.png", + "snapshot": "https://img.alicdn.com/tfs/TB1hbVYlsLJ8KJjy0FnXXcFDpXa-1900-1180.png", "sketchURL": "", "icelandURL": "", "themePackage": "@icedesign/skin" diff --git a/blocks/MessageList/src/MessageList.jsx b/blocks/MessageList/src/MessageList.jsx index bda5eff775..e1c6fff358 100644 --- a/blocks/MessageList/src/MessageList.jsx +++ b/blocks/MessageList/src/MessageList.jsx @@ -1,39 +1,37 @@ - - import React, { Component } from 'react'; import PropTypes from 'prop-types'; import IceCard from '@icedesign/card'; import { Pagination } from '@icedesign/base'; import './MessageList.scss'; - const dataSource = [ { title: '消息标题', - message: '您的账号在2017.4.1日发布的文章《夏日阳光穿搭》中出现恶意引导,违反了商业规则,即日起封号,30天内不得重新申请入驻。', - datetime: '07-07 18:36', + message: '这里是一条消息提醒详细说明。', + datetime: '07-07 18:36' }, { title: '消息标题', - message: '您的账号在2017.4.1日发布的文章《夏日阳光穿搭》中出现恶意引导,违反了商业规则,即日起封号,30天内不得重新申请入驻。账号在2017.4.1日发布的文章《夏日阳光穿搭》中出现恶意引导,违反了商业规则,即日起封号,30天内不得重新申请入驻。', - datetime: '07-07 18:36', + message: + '这里是一条比较长的消息提醒详细说明。这里是一条比较长的消息提醒详细说明。这里是一条比较长的消息提醒详细说明。这里是一条比较长的消息提醒详细说明。这里是一条比较长的消息提醒详细说明。这里是一条比较长的消息提醒详细说明。这里是一条比较长的消息提醒详细说明。这里是一条比较长的消息提醒详细说明。这里是一条比较长的消息提醒详细说明。', + datetime: '07-07 18:36' }, { title: '消息标题', - message: '您的账号在2017.4.1日发布的文章《夏日阳光穿搭》中出现恶意引导,违反了商业规则,即日起封号,30天内不得重新申请入驻。账号在2017.4.1日发布的文章《夏日阳光穿搭》中出现恶意引导,违反了商业规则,即日起封号,30天内不得重新申请入驻。', - datetime: '07-07 18:36', + message: + '这里是一条比较长的消息提醒详细说明。这里是一条比较长的消息提醒详细说明。这里是一条比较长的消息提醒详细说明。这里是一条比较长的消息提醒详细说明。这里是一条比较长的消息提醒详细说明。这里是一条比较长的消息提醒详细说明。这里是一条比较长的消息提醒详细说明。这里是一条比较长的消息提醒详细说明。这里是一条比较长的消息提醒详细说明。', + datetime: '07-07 18:36' }, { title: '消息标题', - message: '您的账号在2017.4.1日发布的文章《夏日阳光穿搭》中出现恶意引导,违反了商业规则,即日起封号,30天内不得重新申请入驻。', - datetime: '07-07 18:36', + message: '这里是一条比较长的消息提醒详细说明。', + datetime: '07-07 18:36' }, { title: '消息标题', - message: '您的账号在2017.4.1日发布的文章《夏日阳光穿搭》中出现恶意引导,违反了商业规则,即日起封号,30天内不得重新申请入驻。', - datetime: '07-07 18:36', - }, - + message: '这里是一条比较长的消息提醒详细说明。', + datetime: '07-07 18:36' + } ]; export default class MessageList extends Component { @@ -41,32 +39,22 @@ export default class MessageList extends Component { constructor(props) { super(props); - this.state = { - - }; + this.state = {}; } // ICE: React Component 的生命周期 // http://ice.alibaba-inc.com/docs/guide/intro-react#React-组件的生命周期 - componentWillMount() { - - } - - componentDidMount() { + componentWillMount() {} - } - - componentWillReceiveProps(nextProps, nextContext) { + componentDidMount() {} - } + componentWillReceiveProps(nextProps, nextContext) {} shouldComponentUpdate(nextProps, nextState) { return true; } - componentWillUnmount() { - - } + componentWillUnmount() {} renderItem = (item, idx) => { return ( @@ -78,7 +66,7 @@ export default class MessageList extends Component {
    {item.message}
    ); - } + }; render() { return ( @@ -94,4 +82,32 @@ export default class MessageList extends Component { } } -const styles = { item: { borderBottom: '1px solid #eee', margin: '0 15px 20px' }, title: { fontSize: '16px', color: '#444', marginBottom: '15px', position: 'relative' }, datetime: { position: 'absolute', right: '10px', paddingTop: '10px', fontSize: '12px', color: '#666' }, message: { fontSize: '14px', color: '#666', marginBottom: '20px', width: '790px' }, paginationWarp: { marginTop: '15px', display: 'flex', flexDirection: 'row', justifyContent: 'flex-end' }, messageList: {} }; +const styles = { + item: { borderBottom: '1px solid #eee', margin: '0 15px 20px' }, + title: { + fontSize: '16px', + color: '#444', + marginBottom: '15px', + position: 'relative' + }, + datetime: { + position: 'absolute', + right: '10px', + paddingTop: '10px', + fontSize: '12px', + color: '#666' + }, + message: { + fontSize: '14px', + color: '#666', + marginBottom: '20px', + width: '790px' + }, + paginationWarp: { + marginTop: '15px', + display: 'flex', + flexDirection: 'row', + justifyContent: 'flex-end' + }, + messageList: {} +}; From 679760b9bddda1647ad8bdc99b47b6d623121963 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B5=A9=E7=9D=BF?= Date: Thu, 4 Jan 2018 18:26:07 +0800 Subject: [PATCH 0013/1028] feat: change LandingIntroBanner snapshot --- blocks/LandingIntroBanner/README.md | 2 +- blocks/LandingIntroBanner/package.json | 14 ++++---------- 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/blocks/LandingIntroBanner/README.md b/blocks/LandingIntroBanner/README.md index a5c9115ff7..a6e9be3b47 100644 --- a/blocks/LandingIntroBanner/README.md +++ b/blocks/LandingIntroBanner/README.md @@ -2,7 +2,7 @@ 简介:首页介绍 Banner -![截图](https://img.alicdn.com/tfs/TB1Cn3Kif6H8KJjy0FjXXaXepXa-2222-998.png) +![截图](https://img.alicdn.com/tfs/TB1zP8Flx6I8KJjy0FgXXXXzVXa-2524-1154.png) ## 更多 diff --git a/blocks/LandingIntroBanner/package.json b/blocks/LandingIntroBanner/package.json index ef50245a7a..941cd4e517 100644 --- a/blocks/LandingIntroBanner/package.json +++ b/blocks/LandingIntroBanner/package.json @@ -3,11 +3,7 @@ "version": "0.1.0", "description": "首页介绍 Banner", "main": "lib/index.js", - "files": [ - "src/", - "demo/", - "mock/" - ], + "files": ["src/", "demo/", "mock/"], "author": { "name": "ICE Team", "email": "ice-admin@alibaba-inc.com" @@ -17,10 +13,7 @@ "url": "https://github.com/alibaba/ice" }, "license": "MIT", - "keywords": [ - "ice", - "ice-block" - ], + "keywords": ["ice", "ice-block"], "dependencies": { "prop-types": "^15.5.8", "react-router": "^3.0.5", @@ -42,7 +35,8 @@ "description": "首页介绍 Banner", "chinese": "首页介绍 Banner", "category": "info-display", - "snapshot": "https://img.alicdn.com/tfs/TB1Cn3Kif6H8KJjy0FjXXaXepXa-2222-998.png", + "snapshot": + "https://img.alicdn.com/tfs/TB1zP8Flx6I8KJjy0FgXXXXzVXa-2524-1154.png", "sketchURL": "", "icelandURL": "", "themePackage": "@icedesign/skin" From 90d2cb5bf608ef2682286586e12d6b7006b6aac4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B5=A9=E7=9D=BF?= Date: Thu, 4 Jan 2018 18:26:48 +0800 Subject: [PATCH 0014/1028] chore: update LandingIntroBanner version --- blocks/LandingIntroBanner/package.json | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/blocks/LandingIntroBanner/package.json b/blocks/LandingIntroBanner/package.json index 941cd4e517..2f8f1c5b9a 100644 --- a/blocks/LandingIntroBanner/package.json +++ b/blocks/LandingIntroBanner/package.json @@ -1,9 +1,13 @@ { "name": "@icedesign/landing-intro-banner-block", - "version": "0.1.0", + "version": "0.1.1", "description": "首页介绍 Banner", "main": "lib/index.js", - "files": ["src/", "demo/", "mock/"], + "files": [ + "src/", + "demo/", + "mock/" + ], "author": { "name": "ICE Team", "email": "ice-admin@alibaba-inc.com" @@ -13,7 +17,10 @@ "url": "https://github.com/alibaba/ice" }, "license": "MIT", - "keywords": ["ice", "ice-block"], + "keywords": [ + "ice", + "ice-block" + ], "dependencies": { "prop-types": "^15.5.8", "react-router": "^3.0.5", @@ -35,8 +42,7 @@ "description": "首页介绍 Banner", "chinese": "首页介绍 Banner", "category": "info-display", - "snapshot": - "https://img.alicdn.com/tfs/TB1zP8Flx6I8KJjy0FgXXXXzVXa-2524-1154.png", + "snapshot": "https://img.alicdn.com/tfs/TB1zP8Flx6I8KJjy0FgXXXXzVXa-2524-1154.png", "sketchURL": "", "icelandURL": "", "themePackage": "@icedesign/skin" From 7138c0dba10dc8a0a9518839ce98ea58da2620ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B5=A9=E7=9D=BF?= Date: Thu, 4 Jan 2018 18:36:51 +0800 Subject: [PATCH 0015/1028] feat: update TimeFilterTable block --- blocks/TimeFilterTable/.eslintignore | 3 +- blocks/TimeFilterTable/.eslintrc | 59 ++++++++++++++++++- blocks/TimeFilterTable/.gitignore | 4 +- blocks/TimeFilterTable/README.md | 2 +- blocks/TimeFilterTable/demo/index.js | 4 +- blocks/TimeFilterTable/package.json | 59 ++++++++----------- .../TimeFilterTable/src/TimeFilterTable.jsx | 21 +++---- 7 files changed, 100 insertions(+), 52 deletions(-) diff --git a/blocks/TimeFilterTable/.eslintignore b/blocks/TimeFilterTable/.eslintignore index 3b437e6141..3b21308fc7 100644 --- a/blocks/TimeFilterTable/.eslintignore +++ b/blocks/TimeFilterTable/.eslintignore @@ -2,10 +2,11 @@ build/ tests/ demo/ +lib/ # node 覆盖率文件 coverage/ # 忽略文件 **/*-min.js -**/*.min.js +**/*.min.js \ No newline at end of file diff --git a/blocks/TimeFilterTable/.eslintrc b/blocks/TimeFilterTable/.eslintrc index ca5bbf3164..7a4e5bac48 100644 --- a/blocks/TimeFilterTable/.eslintrc +++ b/blocks/TimeFilterTable/.eslintrc @@ -1,5 +1,62 @@ { "root": true, "parser": "babel-eslint", - "extends": "@ali/eslint-config-tbfed" + "extends": "eslint-config-airbnb", + "parserOptions": { + "ecmaVersion": 6, + "ecmaFeatures": { + "jsx": true, + "experimentalObjectRestSpread": true + } + }, + "env": { + "browser": true + }, + "plugins": [ + "react", + "babel" + ], + "rules": { + "react/forbid-prop-types": 0, + "jsx-a11y/label-has-for": 0, + "jsx-a11y/no-static-element-interactions": 0, + "jsx-a11y/anchor-has-content": 0, + "jsx-a11y/click-events-have-key-events": 0, + "jsx-a11y/anchor-is-valid": 0, + "react/no-array-index-key": 0, + "func-names": 0, + "arrow-body-style": 0, + "no-use-before-define": 0, + "react/sort-comp": 0, + "react/prop-types": 0, + "react/jsx-first-prop-new-line": 0, + "react/jsx-filename-extension": [ + 1, + { + "extensions": [ + ".js", + ".jsx" + ] + } + ], + "import/extensions": 0, + "import/no-unresolved": 0, + "import/no-extraneous-dependencies": 0, + "prefer-destructuring": 0, + "no-param-reassign": 0, + "no-return-assign": 0, + "max-len": 0, + "consistent-return": 0, + "no-redeclare": 0, + "react/require-extension": 0, + "react/no-danger": 0, + "comma-dangle": [ + "error", + "always-multiline" + ], + "function-paren-newline": 0, + "object-curly-newline": 0, + "no-restricted-globals": 0, + "react/prefer-stateless-function": 0 + } } diff --git a/blocks/TimeFilterTable/.gitignore b/blocks/TimeFilterTable/.gitignore index 51115c22b9..cc45d6fb3c 100644 --- a/blocks/TimeFilterTable/.gitignore +++ b/blocks/TimeFilterTable/.gitignore @@ -1,3 +1,4 @@ + *.swp *.dia~ .idea/ @@ -8,4 +9,5 @@ yarn-error.log node_modules/ tmp/ -.happypack \ No newline at end of file +# happypack 缓存 +.happypack diff --git a/blocks/TimeFilterTable/README.md b/blocks/TimeFilterTable/README.md index 42d435daba..9c2f36b84e 100644 --- a/blocks/TimeFilterTable/README.md +++ b/blocks/TimeFilterTable/README.md @@ -4,7 +4,7 @@ 支持时间筛选的表格 -![截图](https://img.alicdn.com/tfs/TB12iaMjcrI8KJjy0FhXXbfnpXa-1904-1004.png) +![截图](https://img.alicdn.com/tfs/TB1.dqQi5qAXuNjy1XdXXaYcVXa-1902-1004.png) ## 更多 diff --git a/blocks/TimeFilterTable/demo/index.js b/blocks/TimeFilterTable/demo/index.js index c35c738fa4..178a766115 100644 --- a/blocks/TimeFilterTable/demo/index.js +++ b/blocks/TimeFilterTable/demo/index.js @@ -2,9 +2,9 @@ import React, {Component} from 'react'; import {render} from 'react-dom'; // 载入默认全局样式 normalize 、.clearfix 和一些 mixin 方法等 -import '@alife/next/lib/_components/@alife/next-core/lib/index.scss'; +import '@icedesign/base/lib/_components/@alife/next-core/lib/index.scss'; -import DemoLayout from '@ali/ice-demo-layout'; +import DemoLayout from '@icedesign/demo-layout'; import Block from '../src'; const props = { diff --git a/blocks/TimeFilterTable/package.json b/blocks/TimeFilterTable/package.json index 94a01a95a3..24db25ef3b 100644 --- a/blocks/TimeFilterTable/package.json +++ b/blocks/TimeFilterTable/package.json @@ -1,53 +1,46 @@ { - "name": "@ali/time-filter-table", - "version": "0.1.2", + "name": "@icedesign/time-filter-table-block", + "version": "0.1.0", "description": "支持时间筛选的表格", - "files": [ - "src/", - "demo/" - ], + "files": ["src/", "demo/", "lib/", "mock/"], "author": { - "name": "浩睿", - "email": "" + "name": "ICE Team", + "email": "ice-admin@alibaba-inc.com" }, "repository": { "type": "git", - "url": "https://gitlab.alibaba-inc.com/ice/workspace-outside/tree/master/templates/ice-design/blocks/time-filter-table.git" + "url": "https://github.com/alibaba/ice" }, "license": "MIT", - "keywords": [ - "ice", - "ice-block" - ], + "keywords": ["ice", "ice-block"], "dependencies": { - "@ali/ice-card": "^0.1.1", - "@ali/ice-data-binder": "^0.5.0", - "@ali/ice-label": "^0.2.1", - "@alife/dpl-ice-design": "^1.3.1", - "@alife/next": "0.x", - "prop-types": "^15.5.8" + "prop-types": "^15.5.8", + "@icedesign/base": "^0.1.0", + "@icedesign/card": "^0.1.0", + "@icedesign/data-binder": "^0.1.0", + "@icedesign/label": "^0.1.0" }, "devDependencies": { - "@ali/ice-demo-layout": "latest", - "@alife/ice-skin": "^5.0.3", - "@ali/eslint-config-tbfed": "^0.6.1", - "@ali/eslint-plugin-tbfed": "^1.0.2", - "babel-eslint": "^6.1.2", - "eslint": "^3.19.0", + "babel-eslint": "^8.0.3", + "eslint": "^4.13.1", "eslint-plugin-babel": "^4.1.1", - "eslint-plugin-react": "^6.10.3", - "@alife/dpl-ice-design": "^1.2.0" - }, - "publishConfig": { - "registry": "http://registry.npm.alibaba-inc.com/" + "eslint-plugin-react": "^7.5.1", + "@icedesign/demo-layout": "^0.1.0", + "eslint-plugin-import": "^2.8.0", + "eslint-config-airbnb": "^16.1.0", + "eslint-plugin-jsx-a11y": "^6.0.3", + "@icedesign/skin": "^0.1.4" }, "blockConfig": { "name": "time-filter-table", "description": "支持时间筛选的表格", "chinese": "时间筛选表格", "category": "table", - "snapshot": "https://img.alicdn.com/tfs/TB12iaMjcrI8KJjy0FhXXbfnpXa-1904-1004.png", + "snapshot": + "https://img.alicdn.com/tfs/TB1.dqQi5qAXuNjy1XdXXaYcVXa-1902-1004.png", "sketchURL": "", - "icelandURL": "" - } + "icelandURL": "", + "themePackage": "@icedesign/skin" + }, + "scripts": {} } diff --git a/blocks/TimeFilterTable/src/TimeFilterTable.jsx b/blocks/TimeFilterTable/src/TimeFilterTable.jsx index 5f6a046c64..a739eb247e 100644 --- a/blocks/TimeFilterTable/src/TimeFilterTable.jsx +++ b/blocks/TimeFilterTable/src/TimeFilterTable.jsx @@ -2,11 +2,11 @@ import React, { Component } from 'react'; import PropTypes from 'prop-types'; -import IceCard from '@ali/ice-card'; +import IceCard from '@icedesign/card'; import './TimeFilterTable.scss'; -import { Table, Pagination, Tab, Radio, Search } from '@alife/next'; -import DataBinder from '@ali/ice-data-binder'; -import IceLabel from '@ali/ice-label'; +import { Table, Pagination, Tab, Radio, Search } from '@icedesign/base'; +import DataBinder from '@icedesign/data-binder'; +import IceLabel from '@icedesign/label'; const { Group: RadioGroup } = Radio; @@ -116,7 +116,7 @@ export default class TimeFilterTable extends Component {
    Date: Thu, 4 Jan 2018 18:52:11 +0800 Subject: [PATCH 0016/1028] feat: update footer --- .../AsideLayout/src/__components_Footer__.jsx | 18 ++++-------------- .../BasicLayout/src/__components_Footer__.jsx | 18 ++++-------------- .../src/__components_Footer__.jsx | 18 ++++-------------- .../src/__components_Footer__.jsx | 18 ++++-------------- 4 files changed, 16 insertions(+), 56 deletions(-) diff --git a/layouts/AsideLayout/src/__components_Footer__.jsx b/layouts/AsideLayout/src/__components_Footer__.jsx index 9c3d814c2e..399853f2dc 100644 --- a/layouts/AsideLayout/src/__components_Footer__.jsx +++ b/layouts/AsideLayout/src/__components_Footer__.jsx @@ -8,7 +8,7 @@ export default () => { className="ice-admin-layout-footer" style={{ textAlign: 'center', - lineHeight: '36px', + lineHeight: '36px' }} >
    @@ -20,22 +20,12 @@ export default () => { color: '#999', lineHeight: 1.5, fontSize: 12, - textAlign: 'right', + textAlign: 'right' }} > - 淘宝技术部 终端技术团队{' '} - - 帮助支持 - {' '} - - 提交反馈 - + 阿里巴巴集团
    - 由{' '} - - ICE - {' '} - 提供技术支持 + © 2018 版权所有
    diff --git a/layouts/BasicLayout/src/__components_Footer__.jsx b/layouts/BasicLayout/src/__components_Footer__.jsx index 0eb8850bf1..399853f2dc 100644 --- a/layouts/BasicLayout/src/__components_Footer__.jsx +++ b/layouts/BasicLayout/src/__components_Footer__.jsx @@ -8,7 +8,7 @@ export default () => { className="ice-admin-layout-footer" style={{ textAlign: 'center', - lineHeight: '36px', + lineHeight: '36px' }} >
    @@ -20,22 +20,12 @@ export default () => { color: '#999', lineHeight: 1.5, fontSize: 12, - textAlign: 'right', + textAlign: 'right' }} > - 淘宝技术部 终端技术团队{' '} - - 帮助支持 - {' '} - - 提交反馈 - + 阿里巴巴集团
    - 由{' '} - - ICE - {' '} - 提供技术支持 + © 2018 版权所有
    diff --git a/layouts/LandingLayout/src/__components_Footer__.jsx b/layouts/LandingLayout/src/__components_Footer__.jsx index 43686a0d97..399853f2dc 100644 --- a/layouts/LandingLayout/src/__components_Footer__.jsx +++ b/layouts/LandingLayout/src/__components_Footer__.jsx @@ -8,7 +8,7 @@ export default () => { className="ice-admin-layout-footer" style={{ textAlign: 'center', - lineHeight: '36px', + lineHeight: '36px' }} >
    @@ -20,22 +20,12 @@ export default () => { color: '#999', lineHeight: 1.5, fontSize: 12, - textAlign: 'right', + textAlign: 'right' }} > - 淘宝技术部 终端技术团队{' '} - - 帮助支持 - {' '} - - 提交反馈 - + 阿里巴巴集团
    - 由{' '} - - ICE - {' '} - 提供技术支持 + © 2018 版权所有
    diff --git a/layouts/ScalableAsideLayout/src/__components_Footer__.jsx b/layouts/ScalableAsideLayout/src/__components_Footer__.jsx index 5b61849c01..399853f2dc 100644 --- a/layouts/ScalableAsideLayout/src/__components_Footer__.jsx +++ b/layouts/ScalableAsideLayout/src/__components_Footer__.jsx @@ -8,7 +8,7 @@ export default () => { className="ice-admin-layout-footer" style={{ textAlign: 'center', - lineHeight: '36px', + lineHeight: '36px' }} >
    @@ -20,22 +20,12 @@ export default () => { color: '#999', lineHeight: 1.5, fontSize: 12, - textAlign: 'right', + textAlign: 'right' }} > - 淘宝技术部 终端技术团队{' '} - - 帮助支持 - {' '} - - 提交反馈 - + 阿里巴巴集团
    - 由{' '} - - ICE - {' '} - 提供技术支持 + © 2018 版权所有
    From 0c457f5aefa98cfe47d68267a2f789d1fb4c9edc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=93=E5=87=8C?= Date: Thu, 4 Jan 2018 20:17:09 +0800 Subject: [PATCH 0017/1028] chore: lint --- .editorconfig | 16 +++++ .eslintignore | 13 ++++ .eslintrc | 62 +++++++++++++++++++ blocks/TimeFilterTable/.eslintignore | 3 +- blocks/TimeFilterTable/.eslintrc | 59 +++++++++++++++++- blocks/TimeFilterTable/.gitignore | 4 +- blocks/TimeFilterTable/demo/index.js | 4 +- blocks/TimeFilterTable/package.json | 49 ++++++++------- .../TimeFilterTable/src/TimeFilterTable.jsx | 58 ++++++++--------- package.json | 13 +++- 10 files changed, 222 insertions(+), 59 deletions(-) create mode 100644 .editorconfig create mode 100644 .eslintignore create mode 100644 .eslintrc diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000000..22ef5ace54 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,16 @@ +# http://editorconfig.org +root = true + +[*] +indent_style = space +indent_size = 2 +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false + +[makefile] +indent_style = tab +indent_size = 4 diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 0000000000..3249425a4e --- /dev/null +++ b/.eslintignore @@ -0,0 +1,13 @@ +# 忽略目录 +build/ +tests/ +demo/ +lib/ +node_modules/ + +# node 覆盖率文件 +coverage/ + +# 忽略文件 +**/*-min.js +**/*.min.js \ No newline at end of file diff --git a/.eslintrc b/.eslintrc new file mode 100644 index 0000000000..7a4e5bac48 --- /dev/null +++ b/.eslintrc @@ -0,0 +1,62 @@ +{ + "root": true, + "parser": "babel-eslint", + "extends": "eslint-config-airbnb", + "parserOptions": { + "ecmaVersion": 6, + "ecmaFeatures": { + "jsx": true, + "experimentalObjectRestSpread": true + } + }, + "env": { + "browser": true + }, + "plugins": [ + "react", + "babel" + ], + "rules": { + "react/forbid-prop-types": 0, + "jsx-a11y/label-has-for": 0, + "jsx-a11y/no-static-element-interactions": 0, + "jsx-a11y/anchor-has-content": 0, + "jsx-a11y/click-events-have-key-events": 0, + "jsx-a11y/anchor-is-valid": 0, + "react/no-array-index-key": 0, + "func-names": 0, + "arrow-body-style": 0, + "no-use-before-define": 0, + "react/sort-comp": 0, + "react/prop-types": 0, + "react/jsx-first-prop-new-line": 0, + "react/jsx-filename-extension": [ + 1, + { + "extensions": [ + ".js", + ".jsx" + ] + } + ], + "import/extensions": 0, + "import/no-unresolved": 0, + "import/no-extraneous-dependencies": 0, + "prefer-destructuring": 0, + "no-param-reassign": 0, + "no-return-assign": 0, + "max-len": 0, + "consistent-return": 0, + "no-redeclare": 0, + "react/require-extension": 0, + "react/no-danger": 0, + "comma-dangle": [ + "error", + "always-multiline" + ], + "function-paren-newline": 0, + "object-curly-newline": 0, + "no-restricted-globals": 0, + "react/prefer-stateless-function": 0 + } +} diff --git a/blocks/TimeFilterTable/.eslintignore b/blocks/TimeFilterTable/.eslintignore index 3b437e6141..3b21308fc7 100644 --- a/blocks/TimeFilterTable/.eslintignore +++ b/blocks/TimeFilterTable/.eslintignore @@ -2,10 +2,11 @@ build/ tests/ demo/ +lib/ # node 覆盖率文件 coverage/ # 忽略文件 **/*-min.js -**/*.min.js +**/*.min.js \ No newline at end of file diff --git a/blocks/TimeFilterTable/.eslintrc b/blocks/TimeFilterTable/.eslintrc index ca5bbf3164..7a4e5bac48 100644 --- a/blocks/TimeFilterTable/.eslintrc +++ b/blocks/TimeFilterTable/.eslintrc @@ -1,5 +1,62 @@ { "root": true, "parser": "babel-eslint", - "extends": "@ali/eslint-config-tbfed" + "extends": "eslint-config-airbnb", + "parserOptions": { + "ecmaVersion": 6, + "ecmaFeatures": { + "jsx": true, + "experimentalObjectRestSpread": true + } + }, + "env": { + "browser": true + }, + "plugins": [ + "react", + "babel" + ], + "rules": { + "react/forbid-prop-types": 0, + "jsx-a11y/label-has-for": 0, + "jsx-a11y/no-static-element-interactions": 0, + "jsx-a11y/anchor-has-content": 0, + "jsx-a11y/click-events-have-key-events": 0, + "jsx-a11y/anchor-is-valid": 0, + "react/no-array-index-key": 0, + "func-names": 0, + "arrow-body-style": 0, + "no-use-before-define": 0, + "react/sort-comp": 0, + "react/prop-types": 0, + "react/jsx-first-prop-new-line": 0, + "react/jsx-filename-extension": [ + 1, + { + "extensions": [ + ".js", + ".jsx" + ] + } + ], + "import/extensions": 0, + "import/no-unresolved": 0, + "import/no-extraneous-dependencies": 0, + "prefer-destructuring": 0, + "no-param-reassign": 0, + "no-return-assign": 0, + "max-len": 0, + "consistent-return": 0, + "no-redeclare": 0, + "react/require-extension": 0, + "react/no-danger": 0, + "comma-dangle": [ + "error", + "always-multiline" + ], + "function-paren-newline": 0, + "object-curly-newline": 0, + "no-restricted-globals": 0, + "react/prefer-stateless-function": 0 + } } diff --git a/blocks/TimeFilterTable/.gitignore b/blocks/TimeFilterTable/.gitignore index 51115c22b9..cc45d6fb3c 100644 --- a/blocks/TimeFilterTable/.gitignore +++ b/blocks/TimeFilterTable/.gitignore @@ -1,3 +1,4 @@ + *.swp *.dia~ .idea/ @@ -8,4 +9,5 @@ yarn-error.log node_modules/ tmp/ -.happypack \ No newline at end of file +# happypack 缓存 +.happypack diff --git a/blocks/TimeFilterTable/demo/index.js b/blocks/TimeFilterTable/demo/index.js index c35c738fa4..178a766115 100644 --- a/blocks/TimeFilterTable/demo/index.js +++ b/blocks/TimeFilterTable/demo/index.js @@ -2,9 +2,9 @@ import React, {Component} from 'react'; import {render} from 'react-dom'; // 载入默认全局样式 normalize 、.clearfix 和一些 mixin 方法等 -import '@alife/next/lib/_components/@alife/next-core/lib/index.scss'; +import '@icedesign/base/lib/_components/@alife/next-core/lib/index.scss'; -import DemoLayout from '@ali/ice-demo-layout'; +import DemoLayout from '@icedesign/demo-layout'; import Block from '../src'; const props = { diff --git a/blocks/TimeFilterTable/package.json b/blocks/TimeFilterTable/package.json index 94a01a95a3..0fe4143d97 100644 --- a/blocks/TimeFilterTable/package.json +++ b/blocks/TimeFilterTable/package.json @@ -1,18 +1,20 @@ { - "name": "@ali/time-filter-table", - "version": "0.1.2", + "name": "@icedesign/time-filter-table-block", + "version": "0.1.0", "description": "支持时间筛选的表格", "files": [ "src/", - "demo/" + "demo/", + "lib/", + "mock/" ], "author": { - "name": "浩睿", - "email": "" + "name": "ICE Team", + "email": "ice-admin@alibaba-inc.com" }, "repository": { "type": "git", - "url": "https://gitlab.alibaba-inc.com/ice/workspace-outside/tree/master/templates/ice-design/blocks/time-filter-table.git" + "url": "https://github.com/alibaba/ice" }, "license": "MIT", "keywords": [ @@ -20,26 +22,23 @@ "ice-block" ], "dependencies": { - "@ali/ice-card": "^0.1.1", - "@ali/ice-data-binder": "^0.5.0", - "@ali/ice-label": "^0.2.1", "@alife/dpl-ice-design": "^1.3.1", - "@alife/next": "0.x", - "prop-types": "^15.5.8" + "prop-types": "^15.5.8", + "@icedesign/base": "^0.1.0", + "@icedesign/card": "^0.1.0", + "@icedesign/data-binder": "^0.1.0", + "@icedesign/label": "^0.1.0" }, "devDependencies": { - "@ali/ice-demo-layout": "latest", - "@alife/ice-skin": "^5.0.3", - "@ali/eslint-config-tbfed": "^0.6.1", - "@ali/eslint-plugin-tbfed": "^1.0.2", - "babel-eslint": "^6.1.2", - "eslint": "^3.19.0", + "babel-eslint": "^8.0.3", + "eslint": "^4.13.1", "eslint-plugin-babel": "^4.1.1", - "eslint-plugin-react": "^6.10.3", - "@alife/dpl-ice-design": "^1.2.0" - }, - "publishConfig": { - "registry": "http://registry.npm.alibaba-inc.com/" + "eslint-plugin-react": "^7.5.1", + "@icedesign/demo-layout": "^0.1.0", + "eslint-plugin-import": "^2.8.0", + "eslint-config-airbnb": "^16.1.0", + "eslint-plugin-jsx-a11y": "^6.0.3", + "@icedesign/skin": "^0.1.2" }, "blockConfig": { "name": "time-filter-table", @@ -48,6 +47,8 @@ "category": "table", "snapshot": "https://img.alicdn.com/tfs/TB12iaMjcrI8KJjy0FhXXbfnpXa-1904-1004.png", "sketchURL": "", - "icelandURL": "" - } + "icelandURL": "", + "themePackage": "@icedesign/skin" + }, + "scripts": {} } diff --git a/blocks/TimeFilterTable/src/TimeFilterTable.jsx b/blocks/TimeFilterTable/src/TimeFilterTable.jsx index 5f6a046c64..d93cd4793e 100644 --- a/blocks/TimeFilterTable/src/TimeFilterTable.jsx +++ b/blocks/TimeFilterTable/src/TimeFilterTable.jsx @@ -1,12 +1,12 @@ -'use strict'; + import React, { Component } from 'react'; import PropTypes from 'prop-types'; -import IceCard from '@ali/ice-card'; +import IceCard from '@icedesign/card'; import './TimeFilterTable.scss'; -import { Table, Pagination, Tab, Radio, Search } from '@alife/next'; -import DataBinder from '@ali/ice-data-binder'; -import IceLabel from '@ali/ice-label'; +import { Table, Pagination, Tab, Radio, Search } from '@icedesign/base'; +import DataBinder from '@icedesign/data-binder'; +import IceLabel from '@icedesign/label'; const { Group: RadioGroup } = Radio; @@ -16,15 +16,15 @@ const { Group: RadioGroup } = Radio; // 详细请求配置请参见 https://github.com/axios/axios url: '/mock/time-filter-table.json', params: { - page: 1 + page: 1, }, defaultBindingData: { list: [], total: 100, pageSize: 10, - currentPage: 1 - } - } + currentPage: 1, + }, + }, }) export default class TimeFilterTable extends Component { static displayName = 'TimeFilterTable'; @@ -38,47 +38,47 @@ export default class TimeFilterTable extends Component { this.queryCache = {}; this.state = { - timeRange: 'day' + timeRange: 'day', }; } // ICE: React Component 的生命周期 // http://ice.alibaba-inc.com/docs/guide/intro-react#React-组件的生命周期 - componentWillMount() {} + componentWillMount() { } componentDidMount() { this.queryCache.page = 1; this.fetchData(); } - componentWillReceiveProps(nextProps, nextContext) {} + componentWillReceiveProps(nextProps, nextContext) { } shouldComponentUpdate(nextProps, nextState) { return true; } - componentWillUnmount() {} + componentWillUnmount() { } fetchData = () => { this.props.updateBindingData('tableData', { - params: this.queryCache + params: this.queryCache, }); }; - changePage = currentPage => { + changePage = (currentPage) => { this.queryCache.page = currentPage; this.fetchData(); }; - onDateChange = date => { + onDateChange = (date) => { this.queryCache.timeRange = date; this.fetchData(); this.setState({ - timeRange: date + timeRange: date, }); }; - onSearch = value => { + onSearch = (value) => { this.queryCache.keywords = value.key; this.fetchData(); }; @@ -91,7 +91,7 @@ export default class TimeFilterTable extends Component { const tableData = this.props.bindingData.tableData; return ( -
    +
    选择活动日期范围: @@ -100,23 +100,23 @@ export default class TimeFilterTable extends Component { dataSource={[ { label: '今天', - value: 'day' + value: 'day', }, { label: '本周', - value: 'week' + value: 'week', }, { label: '本月', - value: 'month' - } + value: 'month', + }, ]} onChange={this.onDateChange} />
    Date: Thu, 4 Jan 2018 20:27:49 +0800 Subject: [PATCH 0018/1028] chore: delete eslint related files that not needed --- blocks/ApplicationProgress/.editorconfig | 16 ------ blocks/ApplicationProgress/.eslintignore | 12 ----- blocks/ApplicationProgress/.eslintrc | 62 ----------------------- blocks/ApplicationProgress/.gitignore | 13 ----- blocks/ApplicationProgress/package.json | 9 +--- blocks/AreaStackChart/.editorconfig | 16 ------ blocks/AreaStackChart/.eslintignore | 12 ----- blocks/AreaStackChart/.eslintrc | 61 ---------------------- blocks/AreaStackChart/.gitignore | 13 ----- blocks/AreaStackChart/package.json | 10 ---- blocks/ArticleList/.editorconfig | 16 ------ blocks/ArticleList/.eslintignore | 12 ----- blocks/ArticleList/.eslintrc | 62 ----------------------- blocks/ArticleList/.gitignore | 13 ----- blocks/ArticleList/package.json | 9 +--- blocks/BasicDetailInfo/.editorconfig | 16 ------ blocks/BasicDetailInfo/.eslintignore | 12 ----- blocks/BasicDetailInfo/.eslintrc | 62 ----------------------- blocks/BasicDetailInfo/.gitignore | 13 ----- blocks/BasicDetailInfo/package.json | 9 +--- blocks/BasicException/.editorconfig | 16 ------ blocks/BasicException/.eslintignore | 12 ----- blocks/BasicException/.eslintrc | 53 ------------------- blocks/BasicException/.gitignore | 13 ----- blocks/BasicException/package.json | 10 ---- blocks/BasicNotFound/.editorconfig | 16 ------ blocks/BasicNotFound/.eslintignore | 12 ----- blocks/BasicNotFound/.eslintrc | 53 ------------------- blocks/BasicNotFound/.gitignore | 13 ----- blocks/BasicNotFound/package.json | 10 ---- blocks/BasicTab/.editorconfig | 16 ------ blocks/BasicTab/.eslintignore | 12 ----- blocks/BasicTab/.eslintrc | 53 ------------------- blocks/BasicTab/.gitignore | 13 ----- blocks/BasicTab/package.json | 10 ---- blocks/BrandDisplay/.editorconfig | 16 ------ blocks/BrandDisplay/.eslintignore | 12 ----- blocks/BrandDisplay/.eslintrc | 62 ----------------------- blocks/BrandDisplay/.gitignore | 13 ----- blocks/BrandDisplay/package.json | 9 +--- blocks/BrandShowCase/.editorconfig | 16 ------ blocks/BrandShowCase/.eslintignore | 12 ----- blocks/BrandShowCase/.eslintrc | 62 ----------------------- blocks/BrandShowCase/.gitignore | 13 ----- blocks/BrandShowCase/package.json | 7 --- blocks/ChartArea/.editorconfig | 16 ------ blocks/ChartArea/.eslintignore | 12 ----- blocks/ChartArea/.eslintrc | 62 ----------------------- blocks/ChartArea/.gitignore | 14 ----- blocks/ChartArea/package.json | 10 ---- blocks/ChartBar/.editorconfig | 16 ------ blocks/ChartBar/.eslintignore | 12 ----- blocks/ChartBar/.eslintrc | 62 ----------------------- blocks/ChartBar/.gitignore | 14 ----- blocks/ChartBar/package.json | 10 ---- blocks/ChartBox/.editorconfig | 16 ------ blocks/ChartBox/.eslintignore | 12 ----- blocks/ChartBox/.eslintrc | 62 ----------------------- blocks/ChartBox/.gitignore | 14 ----- blocks/ChartBox/package.json | 10 ---- blocks/ChartBubbleImage/.editorconfig | 16 ------ blocks/ChartBubbleImage/.eslintignore | 12 ----- blocks/ChartBubbleImage/.eslintrc | 53 ------------------- blocks/ChartBubbleImage/.gitignore | 14 ----- blocks/ChartBubbleImage/package.json | 10 ---- blocks/ChartFacet/.editorconfig | 16 ------ blocks/ChartFacet/.eslintignore | 12 ----- blocks/ChartFacet/.eslintrc | 62 ----------------------- blocks/ChartFacet/.gitignore | 14 ----- blocks/ChartFacet/package.json | 10 ---- blocks/ChartFunnel/.editorconfig | 16 ------ blocks/ChartFunnel/.eslintignore | 12 ----- blocks/ChartFunnel/.eslintrc | 62 ----------------------- blocks/ChartFunnel/.gitignore | 14 ----- blocks/ChartFunnel/package.json | 10 ---- blocks/ChartGauge/.editorconfig | 16 ------ blocks/ChartGauge/.eslintignore | 12 ----- blocks/ChartGauge/.eslintrc | 62 ----------------------- blocks/ChartGauge/.gitignore | 14 ----- blocks/ChartGauge/package.json | 10 ---- blocks/ChartHeatMap/.editorconfig | 16 ------ blocks/ChartHeatMap/.eslintignore | 12 ----- blocks/ChartHeatMap/.eslintrc | 62 ----------------------- blocks/ChartHeatMap/.gitignore | 14 ----- blocks/ChartHeatMap/package.json | 10 ---- blocks/ChartPie/.editorconfig | 16 ------ blocks/ChartPie/.eslintignore | 12 ----- blocks/ChartPie/.eslintrc | 62 ----------------------- blocks/ChartPie/.gitignore | 14 ----- blocks/ChartPie/package.json | 10 ---- blocks/ChartPoint/.editorconfig | 16 ------ blocks/ChartPoint/.eslintignore | 12 ----- blocks/ChartPoint/.eslintrc | 62 ----------------------- blocks/ChartPoint/.gitignore | 14 ----- blocks/ChartPoint/package.json | 10 ---- blocks/ChartRadar/.editorconfig | 16 ------ blocks/ChartRadar/.eslintignore | 12 ----- blocks/ChartRadar/.eslintrc | 62 ----------------------- blocks/ChartRadar/.gitignore | 14 ----- blocks/ChartRadar/package.json | 10 ---- blocks/ChartRelation/.editorconfig | 16 ------ blocks/ChartRelation/.eslintignore | 12 ----- blocks/ChartRelation/.eslintrc | 62 ----------------------- blocks/ChartRelation/.gitignore | 14 ----- blocks/ChartRelation/package.json | 10 ---- blocks/ChartStock/.editorconfig | 16 ------ blocks/ChartStock/.eslintignore | 12 ----- blocks/ChartStock/.eslintrc | 62 ----------------------- blocks/ChartStock/.gitignore | 14 ----- blocks/ChartStock/package.json | 10 ---- blocks/ChartTypeLine/.editorconfig | 16 ------ blocks/ChartTypeLine/.eslintignore | 12 ----- blocks/ChartTypeLine/.eslintrc | 62 ----------------------- blocks/ChartTypeLine/.gitignore | 14 ----- blocks/ChartTypeLine/package.json | 10 ---- blocks/CollapseCard/.editorconfig | 16 ------ blocks/CollapseCard/.eslintignore | 12 ----- blocks/CollapseCard/.eslintrc | 62 ----------------------- blocks/CollapseCard/.gitignore | 13 ----- blocks/CollapseCard/package.json | 9 +--- blocks/ComplexDialog/.editorconfig | 16 ------ blocks/ComplexDialog/.eslintignore | 12 ----- blocks/ComplexDialog/.eslintrc | 62 ----------------------- blocks/ComplexDialog/.gitignore | 13 ----- blocks/ComplexDialog/package.json | 9 +--- blocks/ComplexFilter/.editorconfig | 16 ------ blocks/ComplexFilter/.eslintignore | 12 ----- blocks/ComplexFilter/.eslintrc | 62 ----------------------- blocks/ComplexFilter/.gitignore | 13 ----- blocks/ComplexFilter/package.json | 9 +--- blocks/ComplexProgressTable/.editorconfig | 16 ------ blocks/ComplexProgressTable/.eslintignore | 12 ----- blocks/ComplexProgressTable/.eslintrc | 62 ----------------------- blocks/ComplexProgressTable/.gitignore | 13 ----- blocks/ComplexProgressTable/package.json | 7 --- blocks/ComplexTabTable/.editorconfig | 16 ------ blocks/ComplexTabTable/.eslintignore | 12 ----- blocks/ComplexTabTable/.eslintrc | 62 ----------------------- blocks/ComplexTabTable/.gitignore | 13 ----- blocks/ComplexTabTable/package.json | 9 +--- blocks/CompositeFilter/.editorconfig | 16 ------ blocks/CompositeFilter/.eslintignore | 12 ----- blocks/CompositeFilter/.eslintrc | 62 ----------------------- blocks/CompositeFilter/.gitignore | 13 ----- blocks/CompositeFilter/package.json | 9 +--- blocks/ConfirmDialog/.editorconfig | 16 ------ blocks/ConfirmDialog/.eslintignore | 12 ----- blocks/ConfirmDialog/.eslintrc | 62 ----------------------- blocks/ConfirmDialog/.gitignore | 13 ----- blocks/ConfirmDialog/package.json | 9 +--- blocks/DataDisplay/.editorconfig | 16 ------ blocks/DataDisplay/.eslintignore | 12 ----- blocks/DataDisplay/.eslintrc | 62 ----------------------- blocks/DataDisplay/.gitignore | 13 ----- blocks/DataDisplay/package.json | 7 --- blocks/DetailTable/.editorconfig | 16 ------ blocks/DetailTable/.eslintignore | 12 ----- blocks/DetailTable/.eslintrc | 62 ----------------------- blocks/DetailTable/.gitignore | 13 ----- blocks/DetailTable/package.json | 7 --- blocks/DisplayCard/.editorconfig | 16 ------ blocks/DisplayCard/.eslintignore | 12 ----- blocks/DisplayCard/.eslintrc | 62 ----------------------- blocks/DisplayCard/.gitignore | 13 ----- blocks/DisplayCard/package.json | 9 +--- blocks/DownloadCard/.editorconfig | 16 ------ blocks/DownloadCard/.eslintignore | 12 ----- blocks/DownloadCard/.eslintrc | 62 ----------------------- blocks/DownloadCard/.gitignore | 13 ----- blocks/DownloadCard/package.json | 9 +--- blocks/DynamicBanner/.editorconfig | 16 ------ blocks/DynamicBanner/.eslintignore | 12 ----- blocks/DynamicBanner/.eslintrc | 62 ----------------------- blocks/DynamicBanner/.gitignore | 13 ----- blocks/DynamicBanner/package.json | 9 +--- blocks/EditableTable/.editorconfig | 16 ------ blocks/EditableTable/.eslintignore | 12 ----- blocks/EditableTable/.eslintrc | 62 ----------------------- blocks/EditableTable/.gitignore | 13 ----- blocks/EditableTable/package.json | 9 +--- blocks/EmptyContent/.editorconfig | 16 ------ blocks/EmptyContent/.eslintignore | 12 ----- blocks/EmptyContent/.eslintrc | 62 ----------------------- blocks/EmptyContent/.gitignore | 13 ----- blocks/EmptyContent/package.json | 7 --- blocks/EnhanceTable/.editorconfig | 16 ------ blocks/EnhanceTable/.eslintignore | 12 ----- blocks/EnhanceTable/.eslintrc | 62 ----------------------- blocks/EnhanceTable/.gitignore | 13 ----- blocks/EnhanceTable/package.json | 9 +--- blocks/EntryCard/.editorconfig | 16 ------ blocks/EntryCard/.eslintignore | 20 -------- blocks/EntryCard/.eslintrc | 53 ------------------- blocks/EntryCard/.gitignore | 13 ----- blocks/EntryCard/package.json | 10 ---- blocks/FailureDetail/.editorconfig | 16 ------ blocks/FailureDetail/.eslintignore | 12 ----- blocks/FailureDetail/.eslintrc | 62 ----------------------- blocks/FailureDetail/.gitignore | 13 ----- blocks/FailureDetail/package.json | 9 +--- blocks/FeatureDisplay/.editorconfig | 16 ------ blocks/FeatureDisplay/.eslintignore | 12 ----- blocks/FeatureDisplay/.eslintrc | 62 ----------------------- blocks/FeatureDisplay/.gitignore | 13 ----- blocks/FeatureDisplay/package.json | 9 +--- blocks/FeedList/.editorconfig | 16 ------ blocks/FeedList/.eslintignore | 12 ----- blocks/FeedList/.eslintrc | 62 ----------------------- blocks/FeedList/.gitignore | 13 ----- blocks/FeedList/package.json | 7 --- blocks/FilterList/.editorconfig | 16 ------ blocks/FilterList/.eslintignore | 12 ----- blocks/FilterList/.eslintrc | 62 ----------------------- blocks/FilterList/.gitignore | 13 ----- blocks/FilterList/package.json | 9 +--- blocks/FilterTable/.editorconfig | 16 ------ blocks/FilterTable/.eslintignore | 12 ----- blocks/FilterTable/.eslintrc | 62 ----------------------- blocks/FilterTable/.gitignore | 13 ----- blocks/FilterTable/package.json | 9 +--- blocks/FilterWithSearch/.editorconfig | 16 ------ blocks/FilterWithSearch/.eslintignore | 12 ----- blocks/FilterWithSearch/.eslintrc | 62 ----------------------- blocks/FilterWithSearch/.gitignore | 13 ----- blocks/FilterWithSearch/package.json | 9 +--- blocks/Footer/.editorconfig | 16 ------ blocks/Footer/.eslintignore | 12 ----- blocks/Footer/.eslintrc | 62 ----------------------- blocks/Footer/.gitignore | 13 ----- blocks/Footer/package.json | 7 --- blocks/FooterInfo/.editorconfig | 16 ------ blocks/FooterInfo/.eslintignore | 12 ----- blocks/FooterInfo/.eslintrc | 62 ----------------------- blocks/FooterInfo/.gitignore | 13 ----- blocks/FooterInfo/package.json | 7 --- blocks/ForgetPasswordForm/.editorconfig | 16 ------ blocks/ForgetPasswordForm/.eslintignore | 12 ----- blocks/ForgetPasswordForm/.eslintrc | 62 ----------------------- blocks/ForgetPasswordForm/.gitignore | 13 ----- blocks/ForgetPasswordForm/package.json | 7 --- blocks/InfoDisplayTab/.editorconfig | 16 ------ blocks/InfoDisplayTab/.eslintignore | 12 ----- blocks/InfoDisplayTab/.eslintrc | 62 ----------------------- blocks/InfoDisplayTab/.gitignore | 13 ----- blocks/InfoDisplayTab/package.json | 9 +--- blocks/InfoDisplayTable/.editorconfig | 16 ------ blocks/InfoDisplayTable/.eslintignore | 12 ----- blocks/InfoDisplayTable/.eslintrc | 62 ----------------------- blocks/InfoDisplayTable/.gitignore | 13 ----- blocks/InfoDisplayTable/package.json | 9 +--- blocks/JoinUs/.editorconfig | 16 ------ blocks/JoinUs/.eslintignore | 12 ----- blocks/JoinUs/.eslintrc | 62 ----------------------- blocks/JoinUs/.gitignore | 13 ----- blocks/JoinUs/package.json | 7 --- blocks/LandingIntroBanner/.editorconfig | 16 ------ blocks/LandingIntroBanner/.eslintignore | 12 ----- blocks/LandingIntroBanner/.eslintrc | 61 ---------------------- blocks/LandingIntroBanner/.gitignore | 13 ----- blocks/LandingIntroBanner/package.json | 10 ---- blocks/LeftContentDisplay/.editorconfig | 16 ------ blocks/LeftContentDisplay/.eslintignore | 12 ----- blocks/LeftContentDisplay/.eslintrc | 62 ----------------------- blocks/LeftContentDisplay/.gitignore | 13 ----- blocks/LeftContentDisplay/package.json | 7 --- blocks/LiteTable/.editorconfig | 16 ------ blocks/LiteTable/.eslintignore | 12 ----- blocks/LiteTable/.eslintrc | 62 ----------------------- blocks/LiteTable/.gitignore | 13 ----- blocks/LiteTable/package.json | 7 --- blocks/MessageList/.editorconfig | 16 ------ blocks/MessageList/.eslintignore | 12 ----- blocks/MessageList/.eslintrc | 62 ----------------------- blocks/MessageList/.gitignore | 13 ----- blocks/MessageList/package.json | 9 +--- blocks/MonacoEditor/.editorconfig | 16 ------ blocks/MonacoEditor/.eslintignore | 12 ----- blocks/MonacoEditor/.eslintrc | 62 ----------------------- blocks/MonacoEditor/.gitignore | 13 ----- blocks/MonacoEditor/package.json | 7 --- blocks/NotPermission/.editorconfig | 16 ------ blocks/NotPermission/.eslintignore | 12 ----- blocks/NotPermission/.eslintrc | 62 ----------------------- blocks/NotPermission/.gitignore | 13 ----- blocks/NotPermission/package.json | 7 --- blocks/OperationTable/.editorconfig | 16 ------ blocks/OperationTable/.eslintignore | 12 ----- blocks/OperationTable/.eslintrc | 62 ----------------------- blocks/OperationTable/.gitignore | 13 ----- blocks/OperationTable/package.json | 9 +--- blocks/OrderList/.editorconfig | 16 ------ blocks/OrderList/.eslintignore | 12 ----- blocks/OrderList/.eslintrc | 62 ----------------------- blocks/OrderList/.gitignore | 13 ----- blocks/OrderList/package.json | 9 +--- blocks/OurTeam/.editorconfig | 16 ------ blocks/OurTeam/.eslintignore | 12 ----- blocks/OurTeam/.eslintrc | 62 ----------------------- blocks/OurTeam/.gitignore | 13 ----- blocks/OurTeam/package.json | 9 +--- blocks/PictureTextList/.editorconfig | 16 ------ blocks/PictureTextList/.eslintignore | 12 ----- blocks/PictureTextList/.eslintrc | 53 ------------------- blocks/PictureTextList/.gitignore | 13 ----- blocks/PictureTextList/package.json | 10 ---- blocks/PieDoughnutChart/.editorconfig | 16 ------ blocks/PieDoughnutChart/.eslintignore | 12 ----- blocks/PieDoughnutChart/.eslintrc | 53 ------------------- blocks/PieDoughnutChart/.gitignore | 13 ----- blocks/PieDoughnutChart/package.json | 10 ---- blocks/PriceCard/.editorconfig | 16 ------ blocks/PriceCard/.eslintignore | 12 ----- blocks/PriceCard/.eslintrc | 62 ----------------------- blocks/PriceCard/.gitignore | 13 ----- blocks/PriceCard/package.json | 7 --- blocks/PriceInfo/.editorconfig | 16 ------ blocks/PriceInfo/.eslintignore | 12 ----- blocks/PriceInfo/.eslintrc | 62 ----------------------- blocks/PriceInfo/.gitignore | 13 ----- blocks/PriceInfo/package.json | 9 +--- blocks/PrivateMessageForm/.editorconfig | 16 ------ blocks/PrivateMessageForm/.eslintignore | 12 ----- blocks/PrivateMessageForm/.eslintrc | 62 ----------------------- blocks/PrivateMessageForm/.gitignore | 13 ----- blocks/PrivateMessageForm/package.json | 7 --- blocks/ProductInfo/.editorconfig | 16 ------ blocks/ProductInfo/.eslintignore | 12 ----- blocks/ProductInfo/.eslintrc | 62 ----------------------- blocks/ProductInfo/.gitignore | 13 ----- blocks/ProductInfo/package.json | 9 +--- blocks/ProgressTable/.editorconfig | 16 ------ blocks/ProgressTable/.eslintignore | 12 ----- blocks/ProgressTable/.eslintrc | 53 ------------------- blocks/ProgressTable/.gitignore | 13 ----- blocks/ProgressTable/package.json | 10 ---- blocks/RegisterForm/.editorconfig | 16 ------ blocks/RegisterForm/.eslintignore | 12 ----- blocks/RegisterForm/.eslintrc | 62 ----------------------- blocks/RegisterForm/.gitignore | 13 ----- blocks/RegisterForm/package.json | 9 +--- blocks/RightContentDisplay/.editorconfig | 16 ------ blocks/RightContentDisplay/.eslintignore | 12 ----- blocks/RightContentDisplay/.eslintrc | 62 ----------------------- blocks/RightContentDisplay/.gitignore | 13 ----- blocks/RightContentDisplay/package.json | 7 --- blocks/SelectableTable/.editorconfig | 16 ------ blocks/SelectableTable/.eslintignore | 12 ----- blocks/SelectableTable/.eslintrc | 62 ----------------------- blocks/SelectableTable/.gitignore | 13 ----- blocks/SelectableTable/package.json | 9 +--- blocks/SignupForm/.editorconfig | 16 ------ blocks/SignupForm/.eslintignore | 12 ----- blocks/SignupForm/.eslintrc | 62 ----------------------- blocks/SignupForm/.gitignore | 13 ----- blocks/SignupForm/package.json | 9 +--- blocks/SimpleFluencyForm/.editorconfig | 16 ------ blocks/SimpleFluencyForm/.eslintignore | 12 ----- blocks/SimpleFluencyForm/.eslintrc | 62 ----------------------- blocks/SimpleFluencyForm/.gitignore | 13 ----- blocks/SimpleFluencyForm/package.json | 7 --- blocks/SimpleFormDialog/.editorconfig | 16 ------ blocks/SimpleFormDialog/.eslintignore | 12 ----- blocks/SimpleFormDialog/.eslintrc | 62 ----------------------- blocks/SimpleFormDialog/.gitignore | 13 ----- blocks/SimpleFormDialog/package.json | 7 --- blocks/SimpleTable/.editorconfig | 16 ------ blocks/SimpleTable/.eslintignore | 12 ----- blocks/SimpleTable/.eslintrc | 61 ---------------------- blocks/SimpleTable/.gitignore | 13 ----- blocks/SimpleTable/package.json | 12 +---- blocks/SimpleTestimonial/.editorconfig | 16 ------ blocks/SimpleTestimonial/.eslintignore | 12 ----- blocks/SimpleTestimonial/.eslintrc | 62 ----------------------- blocks/SimpleTestimonial/.gitignore | 13 ----- blocks/SimpleTestimonial/package.json | 9 +--- blocks/SortCardList/.editorconfig | 16 ------ blocks/SortCardList/.eslintignore | 12 ----- blocks/SortCardList/.eslintrc | 62 ----------------------- blocks/SortCardList/.gitignore | 14 ----- blocks/SortCardList/package.json | 10 ---- blocks/StatisticalCard/.editorconfig | 16 ------ blocks/StatisticalCard/.eslintignore | 12 ----- blocks/StatisticalCard/.eslintrc | 62 ----------------------- blocks/StatisticalCard/.gitignore | 13 ----- blocks/StatisticalCard/package.json | 9 +--- blocks/Subscribe/.editorconfig | 16 ------ blocks/Subscribe/.eslintignore | 12 ----- blocks/Subscribe/.eslintrc | 62 ----------------------- blocks/Subscribe/.gitignore | 13 ----- blocks/Subscribe/package.json | 7 --- blocks/SuccessDetail/.editorconfig | 16 ------ blocks/SuccessDetail/.eslintignore | 12 ----- blocks/SuccessDetail/.eslintrc | 62 ----------------------- blocks/SuccessDetail/.gitignore | 13 ----- blocks/SuccessDetail/package.json | 9 +--- blocks/SuccessDialog/.editorconfig | 16 ------ blocks/SuccessDialog/.eslintignore | 12 ----- blocks/SuccessDialog/.eslintrc | 62 ----------------------- blocks/SuccessDialog/.gitignore | 13 ----- blocks/SuccessDialog/package.json | 9 +--- blocks/SystemNoticeList/.editorconfig | 16 ------ blocks/SystemNoticeList/.eslintignore | 12 ----- blocks/SystemNoticeList/.eslintrc | 62 ----------------------- blocks/SystemNoticeList/.gitignore | 13 ----- blocks/SystemNoticeList/package.json | 9 +--- blocks/TabArticle/.editorconfig | 16 ------ blocks/TabArticle/.eslintignore | 12 ----- blocks/TabArticle/.eslintrc | 62 ----------------------- blocks/TabArticle/.gitignore | 14 ----- blocks/TabArticle/package.json | 10 ---- blocks/TabDialog/.editorconfig | 16 ------ blocks/TabDialog/.eslintignore | 12 ----- blocks/TabDialog/.eslintrc | 62 ----------------------- blocks/TabDialog/.gitignore | 14 ----- blocks/TabDialog/package.json | 10 ---- blocks/TagMessageList/.editorconfig | 16 ------ blocks/TagMessageList/.eslintignore | 12 ----- blocks/TagMessageList/.eslintrc | 62 ----------------------- blocks/TagMessageList/.gitignore | 14 ----- blocks/TagMessageList/package.json | 10 ---- blocks/TeamDisplay/.editorconfig | 16 ------ blocks/TeamDisplay/.eslintignore | 12 ----- blocks/TeamDisplay/.eslintrc | 62 ----------------------- blocks/TeamDisplay/.gitignore | 14 ----- blocks/TeamDisplay/package.json | 10 ---- blocks/TermsInfo/.editorconfig | 16 ------ blocks/TermsInfo/.eslintignore | 12 ----- blocks/TermsInfo/.eslintrc | 62 ----------------------- blocks/TermsInfo/.gitignore | 13 ----- blocks/TermsInfo/package.json | 9 +--- blocks/Testimonial/.editorconfig | 16 ------ blocks/Testimonial/.eslintignore | 12 ----- blocks/Testimonial/.eslintrc | 62 ----------------------- blocks/Testimonial/.gitignore | 14 ----- blocks/Testimonial/package.json | 10 ---- blocks/TestimonialCard/.editorconfig | 16 ------ blocks/TestimonialCard/.eslintignore | 12 ----- blocks/TestimonialCard/.eslintrc | 62 ----------------------- blocks/TestimonialCard/.gitignore | 14 ----- blocks/TestimonialCard/package.json | 10 ---- blocks/TextCard/.editorconfig | 16 ------ blocks/TextCard/.eslintignore | 12 ----- blocks/TextCard/.eslintrc | 62 ----------------------- blocks/TextCard/.gitignore | 13 ----- blocks/TextCard/package.json | 9 +--- blocks/TextSearchList/.editorconfig | 16 ------ blocks/TextSearchList/.eslintignore | 12 ----- blocks/TextSearchList/.eslintrc | 53 ------------------- blocks/TextSearchList/.gitignore | 13 ----- blocks/TextSearchList/package.json | 10 ---- blocks/TimeFilterTable/.editorconfig | 16 ------ blocks/TimeFilterTable/.eslintignore | 12 ----- blocks/TimeFilterTable/.eslintrc | 62 ----------------------- blocks/TimeFilterTable/.gitignore | 13 ----- blocks/TimeFilterTable/package.json | 18 +------ blocks/TopicCard/.editorconfig | 16 ------ blocks/TopicCard/.eslintignore | 12 ----- blocks/TopicCard/.eslintrc | 61 ---------------------- blocks/TopicCard/.gitignore | 13 ----- blocks/TopicCard/package.json | 10 ---- blocks/TreeCardList/.editorconfig | 16 ------ blocks/TreeCardList/.eslintignore | 12 ----- blocks/TreeCardList/.eslintrc | 62 ----------------------- blocks/TreeCardList/.gitignore | 13 ----- blocks/TreeCardList/package.json | 7 --- layouts/.gitignore | 2 - layouts/AsideLayout/.editorconfig | 16 ------ layouts/AsideLayout/.eslintignore | 12 ----- layouts/AsideLayout/.eslintrc | 61 ---------------------- layouts/AsideLayout/.gitignore | 20 -------- layouts/AsideLayout/package.json | 10 ---- layouts/BasicLayout/.editorconfig | 16 ------ layouts/BasicLayout/.eslintignore | 12 ----- layouts/BasicLayout/.eslintrc | 61 ---------------------- layouts/BasicLayout/.gitignore | 16 ------ layouts/BasicLayout/package.json | 12 +---- layouts/LandingLayout/.editorconfig | 16 ------ layouts/LandingLayout/.eslintignore | 12 ----- layouts/LandingLayout/.eslintrc | 61 ---------------------- layouts/LandingLayout/.gitignore | 16 ------ layouts/LandingLayout/package.json | 12 +---- layouts/ScalableAsideLayout/.editorconfig | 16 ------ layouts/ScalableAsideLayout/.eslintignore | 12 ----- layouts/ScalableAsideLayout/.eslintrc | 61 ---------------------- layouts/ScalableAsideLayout/.gitignore | 20 -------- layouts/ScalableAsideLayout/package.json | 12 +---- 486 files changed, 43 insertions(+), 10795 deletions(-) delete mode 100644 blocks/ApplicationProgress/.editorconfig delete mode 100644 blocks/ApplicationProgress/.eslintignore delete mode 100644 blocks/ApplicationProgress/.eslintrc delete mode 100644 blocks/ApplicationProgress/.gitignore delete mode 100644 blocks/AreaStackChart/.editorconfig delete mode 100644 blocks/AreaStackChart/.eslintignore delete mode 100644 blocks/AreaStackChart/.eslintrc delete mode 100644 blocks/AreaStackChart/.gitignore delete mode 100644 blocks/ArticleList/.editorconfig delete mode 100644 blocks/ArticleList/.eslintignore delete mode 100644 blocks/ArticleList/.eslintrc delete mode 100644 blocks/ArticleList/.gitignore delete mode 100644 blocks/BasicDetailInfo/.editorconfig delete mode 100644 blocks/BasicDetailInfo/.eslintignore delete mode 100644 blocks/BasicDetailInfo/.eslintrc delete mode 100644 blocks/BasicDetailInfo/.gitignore delete mode 100644 blocks/BasicException/.editorconfig delete mode 100644 blocks/BasicException/.eslintignore delete mode 100644 blocks/BasicException/.eslintrc delete mode 100644 blocks/BasicException/.gitignore delete mode 100644 blocks/BasicNotFound/.editorconfig delete mode 100644 blocks/BasicNotFound/.eslintignore delete mode 100644 blocks/BasicNotFound/.eslintrc delete mode 100644 blocks/BasicNotFound/.gitignore delete mode 100644 blocks/BasicTab/.editorconfig delete mode 100644 blocks/BasicTab/.eslintignore delete mode 100644 blocks/BasicTab/.eslintrc delete mode 100644 blocks/BasicTab/.gitignore delete mode 100644 blocks/BrandDisplay/.editorconfig delete mode 100644 blocks/BrandDisplay/.eslintignore delete mode 100644 blocks/BrandDisplay/.eslintrc delete mode 100644 blocks/BrandDisplay/.gitignore delete mode 100644 blocks/BrandShowCase/.editorconfig delete mode 100644 blocks/BrandShowCase/.eslintignore delete mode 100644 blocks/BrandShowCase/.eslintrc delete mode 100644 blocks/BrandShowCase/.gitignore delete mode 100644 blocks/ChartArea/.editorconfig delete mode 100644 blocks/ChartArea/.eslintignore delete mode 100644 blocks/ChartArea/.eslintrc delete mode 100644 blocks/ChartArea/.gitignore delete mode 100644 blocks/ChartBar/.editorconfig delete mode 100644 blocks/ChartBar/.eslintignore delete mode 100644 blocks/ChartBar/.eslintrc delete mode 100644 blocks/ChartBar/.gitignore delete mode 100644 blocks/ChartBox/.editorconfig delete mode 100644 blocks/ChartBox/.eslintignore delete mode 100644 blocks/ChartBox/.eslintrc delete mode 100644 blocks/ChartBox/.gitignore delete mode 100644 blocks/ChartBubbleImage/.editorconfig delete mode 100644 blocks/ChartBubbleImage/.eslintignore delete mode 100644 blocks/ChartBubbleImage/.eslintrc delete mode 100644 blocks/ChartBubbleImage/.gitignore delete mode 100644 blocks/ChartFacet/.editorconfig delete mode 100644 blocks/ChartFacet/.eslintignore delete mode 100644 blocks/ChartFacet/.eslintrc delete mode 100644 blocks/ChartFacet/.gitignore delete mode 100644 blocks/ChartFunnel/.editorconfig delete mode 100644 blocks/ChartFunnel/.eslintignore delete mode 100644 blocks/ChartFunnel/.eslintrc delete mode 100644 blocks/ChartFunnel/.gitignore delete mode 100644 blocks/ChartGauge/.editorconfig delete mode 100644 blocks/ChartGauge/.eslintignore delete mode 100644 blocks/ChartGauge/.eslintrc delete mode 100644 blocks/ChartGauge/.gitignore delete mode 100644 blocks/ChartHeatMap/.editorconfig delete mode 100644 blocks/ChartHeatMap/.eslintignore delete mode 100644 blocks/ChartHeatMap/.eslintrc delete mode 100644 blocks/ChartHeatMap/.gitignore delete mode 100644 blocks/ChartPie/.editorconfig delete mode 100644 blocks/ChartPie/.eslintignore delete mode 100644 blocks/ChartPie/.eslintrc delete mode 100644 blocks/ChartPie/.gitignore delete mode 100644 blocks/ChartPoint/.editorconfig delete mode 100644 blocks/ChartPoint/.eslintignore delete mode 100644 blocks/ChartPoint/.eslintrc delete mode 100644 blocks/ChartPoint/.gitignore delete mode 100644 blocks/ChartRadar/.editorconfig delete mode 100644 blocks/ChartRadar/.eslintignore delete mode 100644 blocks/ChartRadar/.eslintrc delete mode 100644 blocks/ChartRadar/.gitignore delete mode 100644 blocks/ChartRelation/.editorconfig delete mode 100644 blocks/ChartRelation/.eslintignore delete mode 100644 blocks/ChartRelation/.eslintrc delete mode 100644 blocks/ChartRelation/.gitignore delete mode 100644 blocks/ChartStock/.editorconfig delete mode 100644 blocks/ChartStock/.eslintignore delete mode 100644 blocks/ChartStock/.eslintrc delete mode 100644 blocks/ChartStock/.gitignore delete mode 100644 blocks/ChartTypeLine/.editorconfig delete mode 100644 blocks/ChartTypeLine/.eslintignore delete mode 100644 blocks/ChartTypeLine/.eslintrc delete mode 100644 blocks/ChartTypeLine/.gitignore delete mode 100644 blocks/CollapseCard/.editorconfig delete mode 100644 blocks/CollapseCard/.eslintignore delete mode 100644 blocks/CollapseCard/.eslintrc delete mode 100644 blocks/CollapseCard/.gitignore delete mode 100644 blocks/ComplexDialog/.editorconfig delete mode 100644 blocks/ComplexDialog/.eslintignore delete mode 100644 blocks/ComplexDialog/.eslintrc delete mode 100644 blocks/ComplexDialog/.gitignore delete mode 100644 blocks/ComplexFilter/.editorconfig delete mode 100644 blocks/ComplexFilter/.eslintignore delete mode 100644 blocks/ComplexFilter/.eslintrc delete mode 100644 blocks/ComplexFilter/.gitignore delete mode 100644 blocks/ComplexProgressTable/.editorconfig delete mode 100644 blocks/ComplexProgressTable/.eslintignore delete mode 100644 blocks/ComplexProgressTable/.eslintrc delete mode 100644 blocks/ComplexProgressTable/.gitignore delete mode 100644 blocks/ComplexTabTable/.editorconfig delete mode 100644 blocks/ComplexTabTable/.eslintignore delete mode 100644 blocks/ComplexTabTable/.eslintrc delete mode 100644 blocks/ComplexTabTable/.gitignore delete mode 100644 blocks/CompositeFilter/.editorconfig delete mode 100644 blocks/CompositeFilter/.eslintignore delete mode 100644 blocks/CompositeFilter/.eslintrc delete mode 100644 blocks/CompositeFilter/.gitignore delete mode 100644 blocks/ConfirmDialog/.editorconfig delete mode 100644 blocks/ConfirmDialog/.eslintignore delete mode 100644 blocks/ConfirmDialog/.eslintrc delete mode 100644 blocks/ConfirmDialog/.gitignore delete mode 100644 blocks/DataDisplay/.editorconfig delete mode 100644 blocks/DataDisplay/.eslintignore delete mode 100644 blocks/DataDisplay/.eslintrc delete mode 100644 blocks/DataDisplay/.gitignore delete mode 100644 blocks/DetailTable/.editorconfig delete mode 100644 blocks/DetailTable/.eslintignore delete mode 100644 blocks/DetailTable/.eslintrc delete mode 100644 blocks/DetailTable/.gitignore delete mode 100644 blocks/DisplayCard/.editorconfig delete mode 100644 blocks/DisplayCard/.eslintignore delete mode 100644 blocks/DisplayCard/.eslintrc delete mode 100644 blocks/DisplayCard/.gitignore delete mode 100644 blocks/DownloadCard/.editorconfig delete mode 100644 blocks/DownloadCard/.eslintignore delete mode 100644 blocks/DownloadCard/.eslintrc delete mode 100644 blocks/DownloadCard/.gitignore delete mode 100644 blocks/DynamicBanner/.editorconfig delete mode 100644 blocks/DynamicBanner/.eslintignore delete mode 100644 blocks/DynamicBanner/.eslintrc delete mode 100644 blocks/DynamicBanner/.gitignore delete mode 100644 blocks/EditableTable/.editorconfig delete mode 100644 blocks/EditableTable/.eslintignore delete mode 100644 blocks/EditableTable/.eslintrc delete mode 100644 blocks/EditableTable/.gitignore delete mode 100644 blocks/EmptyContent/.editorconfig delete mode 100644 blocks/EmptyContent/.eslintignore delete mode 100644 blocks/EmptyContent/.eslintrc delete mode 100644 blocks/EmptyContent/.gitignore delete mode 100644 blocks/EnhanceTable/.editorconfig delete mode 100644 blocks/EnhanceTable/.eslintignore delete mode 100644 blocks/EnhanceTable/.eslintrc delete mode 100644 blocks/EnhanceTable/.gitignore delete mode 100644 blocks/EntryCard/.editorconfig delete mode 100644 blocks/EntryCard/.eslintignore delete mode 100644 blocks/EntryCard/.eslintrc delete mode 100644 blocks/EntryCard/.gitignore delete mode 100644 blocks/FailureDetail/.editorconfig delete mode 100644 blocks/FailureDetail/.eslintignore delete mode 100644 blocks/FailureDetail/.eslintrc delete mode 100644 blocks/FailureDetail/.gitignore delete mode 100644 blocks/FeatureDisplay/.editorconfig delete mode 100644 blocks/FeatureDisplay/.eslintignore delete mode 100644 blocks/FeatureDisplay/.eslintrc delete mode 100644 blocks/FeatureDisplay/.gitignore delete mode 100644 blocks/FeedList/.editorconfig delete mode 100644 blocks/FeedList/.eslintignore delete mode 100644 blocks/FeedList/.eslintrc delete mode 100644 blocks/FeedList/.gitignore delete mode 100644 blocks/FilterList/.editorconfig delete mode 100644 blocks/FilterList/.eslintignore delete mode 100644 blocks/FilterList/.eslintrc delete mode 100644 blocks/FilterList/.gitignore delete mode 100644 blocks/FilterTable/.editorconfig delete mode 100644 blocks/FilterTable/.eslintignore delete mode 100644 blocks/FilterTable/.eslintrc delete mode 100644 blocks/FilterTable/.gitignore delete mode 100644 blocks/FilterWithSearch/.editorconfig delete mode 100644 blocks/FilterWithSearch/.eslintignore delete mode 100644 blocks/FilterWithSearch/.eslintrc delete mode 100644 blocks/FilterWithSearch/.gitignore delete mode 100644 blocks/Footer/.editorconfig delete mode 100644 blocks/Footer/.eslintignore delete mode 100644 blocks/Footer/.eslintrc delete mode 100644 blocks/Footer/.gitignore delete mode 100644 blocks/FooterInfo/.editorconfig delete mode 100644 blocks/FooterInfo/.eslintignore delete mode 100644 blocks/FooterInfo/.eslintrc delete mode 100644 blocks/FooterInfo/.gitignore delete mode 100644 blocks/ForgetPasswordForm/.editorconfig delete mode 100644 blocks/ForgetPasswordForm/.eslintignore delete mode 100644 blocks/ForgetPasswordForm/.eslintrc delete mode 100644 blocks/ForgetPasswordForm/.gitignore delete mode 100644 blocks/InfoDisplayTab/.editorconfig delete mode 100644 blocks/InfoDisplayTab/.eslintignore delete mode 100644 blocks/InfoDisplayTab/.eslintrc delete mode 100644 blocks/InfoDisplayTab/.gitignore delete mode 100644 blocks/InfoDisplayTable/.editorconfig delete mode 100644 blocks/InfoDisplayTable/.eslintignore delete mode 100644 blocks/InfoDisplayTable/.eslintrc delete mode 100644 blocks/InfoDisplayTable/.gitignore delete mode 100644 blocks/JoinUs/.editorconfig delete mode 100644 blocks/JoinUs/.eslintignore delete mode 100644 blocks/JoinUs/.eslintrc delete mode 100644 blocks/JoinUs/.gitignore delete mode 100644 blocks/LandingIntroBanner/.editorconfig delete mode 100644 blocks/LandingIntroBanner/.eslintignore delete mode 100644 blocks/LandingIntroBanner/.eslintrc delete mode 100644 blocks/LandingIntroBanner/.gitignore delete mode 100644 blocks/LeftContentDisplay/.editorconfig delete mode 100644 blocks/LeftContentDisplay/.eslintignore delete mode 100644 blocks/LeftContentDisplay/.eslintrc delete mode 100644 blocks/LeftContentDisplay/.gitignore delete mode 100644 blocks/LiteTable/.editorconfig delete mode 100644 blocks/LiteTable/.eslintignore delete mode 100644 blocks/LiteTable/.eslintrc delete mode 100644 blocks/LiteTable/.gitignore delete mode 100644 blocks/MessageList/.editorconfig delete mode 100644 blocks/MessageList/.eslintignore delete mode 100644 blocks/MessageList/.eslintrc delete mode 100644 blocks/MessageList/.gitignore delete mode 100644 blocks/MonacoEditor/.editorconfig delete mode 100644 blocks/MonacoEditor/.eslintignore delete mode 100644 blocks/MonacoEditor/.eslintrc delete mode 100644 blocks/MonacoEditor/.gitignore delete mode 100644 blocks/NotPermission/.editorconfig delete mode 100644 blocks/NotPermission/.eslintignore delete mode 100644 blocks/NotPermission/.eslintrc delete mode 100644 blocks/NotPermission/.gitignore delete mode 100644 blocks/OperationTable/.editorconfig delete mode 100644 blocks/OperationTable/.eslintignore delete mode 100644 blocks/OperationTable/.eslintrc delete mode 100644 blocks/OperationTable/.gitignore delete mode 100644 blocks/OrderList/.editorconfig delete mode 100644 blocks/OrderList/.eslintignore delete mode 100644 blocks/OrderList/.eslintrc delete mode 100644 blocks/OrderList/.gitignore delete mode 100644 blocks/OurTeam/.editorconfig delete mode 100644 blocks/OurTeam/.eslintignore delete mode 100644 blocks/OurTeam/.eslintrc delete mode 100644 blocks/OurTeam/.gitignore delete mode 100644 blocks/PictureTextList/.editorconfig delete mode 100644 blocks/PictureTextList/.eslintignore delete mode 100644 blocks/PictureTextList/.eslintrc delete mode 100644 blocks/PictureTextList/.gitignore delete mode 100644 blocks/PieDoughnutChart/.editorconfig delete mode 100644 blocks/PieDoughnutChart/.eslintignore delete mode 100644 blocks/PieDoughnutChart/.eslintrc delete mode 100644 blocks/PieDoughnutChart/.gitignore delete mode 100644 blocks/PriceCard/.editorconfig delete mode 100644 blocks/PriceCard/.eslintignore delete mode 100644 blocks/PriceCard/.eslintrc delete mode 100644 blocks/PriceCard/.gitignore delete mode 100644 blocks/PriceInfo/.editorconfig delete mode 100644 blocks/PriceInfo/.eslintignore delete mode 100644 blocks/PriceInfo/.eslintrc delete mode 100644 blocks/PriceInfo/.gitignore delete mode 100644 blocks/PrivateMessageForm/.editorconfig delete mode 100644 blocks/PrivateMessageForm/.eslintignore delete mode 100644 blocks/PrivateMessageForm/.eslintrc delete mode 100644 blocks/PrivateMessageForm/.gitignore delete mode 100644 blocks/ProductInfo/.editorconfig delete mode 100644 blocks/ProductInfo/.eslintignore delete mode 100644 blocks/ProductInfo/.eslintrc delete mode 100644 blocks/ProductInfo/.gitignore delete mode 100644 blocks/ProgressTable/.editorconfig delete mode 100644 blocks/ProgressTable/.eslintignore delete mode 100644 blocks/ProgressTable/.eslintrc delete mode 100644 blocks/ProgressTable/.gitignore delete mode 100644 blocks/RegisterForm/.editorconfig delete mode 100644 blocks/RegisterForm/.eslintignore delete mode 100644 blocks/RegisterForm/.eslintrc delete mode 100644 blocks/RegisterForm/.gitignore delete mode 100644 blocks/RightContentDisplay/.editorconfig delete mode 100644 blocks/RightContentDisplay/.eslintignore delete mode 100644 blocks/RightContentDisplay/.eslintrc delete mode 100644 blocks/RightContentDisplay/.gitignore delete mode 100644 blocks/SelectableTable/.editorconfig delete mode 100644 blocks/SelectableTable/.eslintignore delete mode 100644 blocks/SelectableTable/.eslintrc delete mode 100644 blocks/SelectableTable/.gitignore delete mode 100644 blocks/SignupForm/.editorconfig delete mode 100644 blocks/SignupForm/.eslintignore delete mode 100644 blocks/SignupForm/.eslintrc delete mode 100644 blocks/SignupForm/.gitignore delete mode 100644 blocks/SimpleFluencyForm/.editorconfig delete mode 100644 blocks/SimpleFluencyForm/.eslintignore delete mode 100644 blocks/SimpleFluencyForm/.eslintrc delete mode 100644 blocks/SimpleFluencyForm/.gitignore delete mode 100644 blocks/SimpleFormDialog/.editorconfig delete mode 100644 blocks/SimpleFormDialog/.eslintignore delete mode 100644 blocks/SimpleFormDialog/.eslintrc delete mode 100644 blocks/SimpleFormDialog/.gitignore delete mode 100644 blocks/SimpleTable/.editorconfig delete mode 100644 blocks/SimpleTable/.eslintignore delete mode 100644 blocks/SimpleTable/.eslintrc delete mode 100644 blocks/SimpleTable/.gitignore delete mode 100644 blocks/SimpleTestimonial/.editorconfig delete mode 100644 blocks/SimpleTestimonial/.eslintignore delete mode 100644 blocks/SimpleTestimonial/.eslintrc delete mode 100644 blocks/SimpleTestimonial/.gitignore delete mode 100644 blocks/SortCardList/.editorconfig delete mode 100644 blocks/SortCardList/.eslintignore delete mode 100644 blocks/SortCardList/.eslintrc delete mode 100644 blocks/SortCardList/.gitignore delete mode 100644 blocks/StatisticalCard/.editorconfig delete mode 100644 blocks/StatisticalCard/.eslintignore delete mode 100644 blocks/StatisticalCard/.eslintrc delete mode 100644 blocks/StatisticalCard/.gitignore delete mode 100644 blocks/Subscribe/.editorconfig delete mode 100644 blocks/Subscribe/.eslintignore delete mode 100644 blocks/Subscribe/.eslintrc delete mode 100644 blocks/Subscribe/.gitignore delete mode 100644 blocks/SuccessDetail/.editorconfig delete mode 100644 blocks/SuccessDetail/.eslintignore delete mode 100644 blocks/SuccessDetail/.eslintrc delete mode 100644 blocks/SuccessDetail/.gitignore delete mode 100644 blocks/SuccessDialog/.editorconfig delete mode 100644 blocks/SuccessDialog/.eslintignore delete mode 100644 blocks/SuccessDialog/.eslintrc delete mode 100644 blocks/SuccessDialog/.gitignore delete mode 100644 blocks/SystemNoticeList/.editorconfig delete mode 100644 blocks/SystemNoticeList/.eslintignore delete mode 100644 blocks/SystemNoticeList/.eslintrc delete mode 100644 blocks/SystemNoticeList/.gitignore delete mode 100644 blocks/TabArticle/.editorconfig delete mode 100644 blocks/TabArticle/.eslintignore delete mode 100644 blocks/TabArticle/.eslintrc delete mode 100644 blocks/TabArticle/.gitignore delete mode 100644 blocks/TabDialog/.editorconfig delete mode 100644 blocks/TabDialog/.eslintignore delete mode 100644 blocks/TabDialog/.eslintrc delete mode 100644 blocks/TabDialog/.gitignore delete mode 100644 blocks/TagMessageList/.editorconfig delete mode 100644 blocks/TagMessageList/.eslintignore delete mode 100644 blocks/TagMessageList/.eslintrc delete mode 100644 blocks/TagMessageList/.gitignore delete mode 100644 blocks/TeamDisplay/.editorconfig delete mode 100644 blocks/TeamDisplay/.eslintignore delete mode 100644 blocks/TeamDisplay/.eslintrc delete mode 100644 blocks/TeamDisplay/.gitignore delete mode 100644 blocks/TermsInfo/.editorconfig delete mode 100644 blocks/TermsInfo/.eslintignore delete mode 100644 blocks/TermsInfo/.eslintrc delete mode 100644 blocks/TermsInfo/.gitignore delete mode 100644 blocks/Testimonial/.editorconfig delete mode 100644 blocks/Testimonial/.eslintignore delete mode 100644 blocks/Testimonial/.eslintrc delete mode 100644 blocks/Testimonial/.gitignore delete mode 100644 blocks/TestimonialCard/.editorconfig delete mode 100644 blocks/TestimonialCard/.eslintignore delete mode 100644 blocks/TestimonialCard/.eslintrc delete mode 100644 blocks/TestimonialCard/.gitignore delete mode 100644 blocks/TextCard/.editorconfig delete mode 100644 blocks/TextCard/.eslintignore delete mode 100644 blocks/TextCard/.eslintrc delete mode 100644 blocks/TextCard/.gitignore delete mode 100644 blocks/TextSearchList/.editorconfig delete mode 100644 blocks/TextSearchList/.eslintignore delete mode 100644 blocks/TextSearchList/.eslintrc delete mode 100644 blocks/TextSearchList/.gitignore delete mode 100644 blocks/TimeFilterTable/.editorconfig delete mode 100644 blocks/TimeFilterTable/.eslintignore delete mode 100644 blocks/TimeFilterTable/.eslintrc delete mode 100644 blocks/TimeFilterTable/.gitignore delete mode 100644 blocks/TopicCard/.editorconfig delete mode 100644 blocks/TopicCard/.eslintignore delete mode 100644 blocks/TopicCard/.eslintrc delete mode 100644 blocks/TopicCard/.gitignore delete mode 100644 blocks/TreeCardList/.editorconfig delete mode 100644 blocks/TreeCardList/.eslintignore delete mode 100644 blocks/TreeCardList/.eslintrc delete mode 100644 blocks/TreeCardList/.gitignore delete mode 100644 layouts/.gitignore delete mode 100644 layouts/AsideLayout/.editorconfig delete mode 100644 layouts/AsideLayout/.eslintignore delete mode 100644 layouts/AsideLayout/.eslintrc delete mode 100644 layouts/AsideLayout/.gitignore delete mode 100644 layouts/BasicLayout/.editorconfig delete mode 100644 layouts/BasicLayout/.eslintignore delete mode 100644 layouts/BasicLayout/.eslintrc delete mode 100644 layouts/BasicLayout/.gitignore delete mode 100644 layouts/LandingLayout/.editorconfig delete mode 100644 layouts/LandingLayout/.eslintignore delete mode 100644 layouts/LandingLayout/.eslintrc delete mode 100644 layouts/LandingLayout/.gitignore delete mode 100644 layouts/ScalableAsideLayout/.editorconfig delete mode 100644 layouts/ScalableAsideLayout/.eslintignore delete mode 100644 layouts/ScalableAsideLayout/.eslintrc delete mode 100644 layouts/ScalableAsideLayout/.gitignore diff --git a/blocks/ApplicationProgress/.editorconfig b/blocks/ApplicationProgress/.editorconfig deleted file mode 100644 index 22ef5ace54..0000000000 --- a/blocks/ApplicationProgress/.editorconfig +++ /dev/null @@ -1,16 +0,0 @@ -# http://editorconfig.org -root = true - -[*] -indent_style = space -indent_size = 2 -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -[*.md] -trim_trailing_whitespace = false - -[makefile] -indent_style = tab -indent_size = 4 diff --git a/blocks/ApplicationProgress/.eslintignore b/blocks/ApplicationProgress/.eslintignore deleted file mode 100644 index 3b21308fc7..0000000000 --- a/blocks/ApplicationProgress/.eslintignore +++ /dev/null @@ -1,12 +0,0 @@ -# 忽略目录 -build/ -tests/ -demo/ -lib/ - -# node 覆盖率文件 -coverage/ - -# 忽略文件 -**/*-min.js -**/*.min.js \ No newline at end of file diff --git a/blocks/ApplicationProgress/.eslintrc b/blocks/ApplicationProgress/.eslintrc deleted file mode 100644 index 7a4e5bac48..0000000000 --- a/blocks/ApplicationProgress/.eslintrc +++ /dev/null @@ -1,62 +0,0 @@ -{ - "root": true, - "parser": "babel-eslint", - "extends": "eslint-config-airbnb", - "parserOptions": { - "ecmaVersion": 6, - "ecmaFeatures": { - "jsx": true, - "experimentalObjectRestSpread": true - } - }, - "env": { - "browser": true - }, - "plugins": [ - "react", - "babel" - ], - "rules": { - "react/forbid-prop-types": 0, - "jsx-a11y/label-has-for": 0, - "jsx-a11y/no-static-element-interactions": 0, - "jsx-a11y/anchor-has-content": 0, - "jsx-a11y/click-events-have-key-events": 0, - "jsx-a11y/anchor-is-valid": 0, - "react/no-array-index-key": 0, - "func-names": 0, - "arrow-body-style": 0, - "no-use-before-define": 0, - "react/sort-comp": 0, - "react/prop-types": 0, - "react/jsx-first-prop-new-line": 0, - "react/jsx-filename-extension": [ - 1, - { - "extensions": [ - ".js", - ".jsx" - ] - } - ], - "import/extensions": 0, - "import/no-unresolved": 0, - "import/no-extraneous-dependencies": 0, - "prefer-destructuring": 0, - "no-param-reassign": 0, - "no-return-assign": 0, - "max-len": 0, - "consistent-return": 0, - "no-redeclare": 0, - "react/require-extension": 0, - "react/no-danger": 0, - "comma-dangle": [ - "error", - "always-multiline" - ], - "function-paren-newline": 0, - "object-curly-newline": 0, - "no-restricted-globals": 0, - "react/prefer-stateless-function": 0 - } -} diff --git a/blocks/ApplicationProgress/.gitignore b/blocks/ApplicationProgress/.gitignore deleted file mode 100644 index cc45d6fb3c..0000000000 --- a/blocks/ApplicationProgress/.gitignore +++ /dev/null @@ -1,13 +0,0 @@ - -*.swp -*.dia~ -.idea/ -.DS_Store - -npm-debug.log -yarn-error.log -node_modules/ -tmp/ - -# happypack 缓存 -.happypack diff --git a/blocks/ApplicationProgress/package.json b/blocks/ApplicationProgress/package.json index 11ef0469b9..33278095a3 100644 --- a/blocks/ApplicationProgress/package.json +++ b/blocks/ApplicationProgress/package.json @@ -27,14 +27,8 @@ "@icedesign/card": "^0.1.0" }, "devDependencies": { - "babel-eslint": "^8.0.3", - "eslint": "^4.13.1", - "eslint-plugin-babel": "^4.1.1", "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "eslint-plugin-import": "^2.8.0", - "eslint-config-airbnb": "^16.1.0", - "eslint-plugin-jsx-a11y": "^6.0.3", "@icedesign/skin": "^0.1.2" }, "blockConfig": { @@ -46,6 +40,5 @@ "sketchURL": "", "icelandURL": "", "themePackage": "@icedesign/skin" - }, - "scripts": {} + } } diff --git a/blocks/AreaStackChart/.editorconfig b/blocks/AreaStackChart/.editorconfig deleted file mode 100644 index 22ef5ace54..0000000000 --- a/blocks/AreaStackChart/.editorconfig +++ /dev/null @@ -1,16 +0,0 @@ -# http://editorconfig.org -root = true - -[*] -indent_style = space -indent_size = 2 -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -[*.md] -trim_trailing_whitespace = false - -[makefile] -indent_style = tab -indent_size = 4 diff --git a/blocks/AreaStackChart/.eslintignore b/blocks/AreaStackChart/.eslintignore deleted file mode 100644 index 2d5ec592a3..0000000000 --- a/blocks/AreaStackChart/.eslintignore +++ /dev/null @@ -1,12 +0,0 @@ -# 忽略目录 -build/ -tests/ -demo/ -lib/ - -# node 覆盖率文件 -coverage/ - -# 忽略文件 -**/*-min.js -**/*.min.js diff --git a/blocks/AreaStackChart/.eslintrc b/blocks/AreaStackChart/.eslintrc deleted file mode 100644 index 7cc397841e..0000000000 --- a/blocks/AreaStackChart/.eslintrc +++ /dev/null @@ -1,61 +0,0 @@ -{ - "root": true, - "parser": "babel-eslint", - "extends": "eslint-config-airbnb", - "parserOptions": { - "ecmaVersion": 6, - "ecmaFeatures": { - "jsx": true, - "experimentalObjectRestSpread": true - } - }, - "env": { - "browser": true - }, - "plugins": [ - "react", - "babel" - ], - "rules": { - "react/forbid-prop-types": 0, - "jsx-a11y/label-has-for": 0, - "jsx-a11y/no-static-element-interactions": 0, - "jsx-a11y/anchor-has-content": 0, - "jsx-a11y/click-events-have-key-events": 0, - "jsx-a11y/anchor-is-valid": 0, - "react/no-array-index-key": 0, - "func-names": 0, - "arrow-body-style": 0, - "no-use-before-define": 1, - "react/sort-comp": 0, - "react/prop-types": 0, - "react/jsx-first-prop-new-line": 0, - "react/jsx-filename-extension": [ - 1, - { - "extensions": [ - ".js", - ".jsx" - ] - } - ], - "import/extensions": 0, - "import/no-unresolved": 0, - "import/no-extraneous-dependencies": 0, - "prefer-destructuring": 0, - "no-param-reassign": 0, - "no-return-assign": 0, - "max-len": 0, - "consistent-return": 0, - "no-redeclare": 0, - "react/require-extension": 0, - "react/no-danger": 0, - "comma-dangle": [ - "error", - "always-multiline" - ], - "function-paren-newline": 0, - "object-curly-newline": 0, - "no-restricted-globals": 0 - } -} diff --git a/blocks/AreaStackChart/.gitignore b/blocks/AreaStackChart/.gitignore deleted file mode 100644 index cc45d6fb3c..0000000000 --- a/blocks/AreaStackChart/.gitignore +++ /dev/null @@ -1,13 +0,0 @@ - -*.swp -*.dia~ -.idea/ -.DS_Store - -npm-debug.log -yarn-error.log -node_modules/ -tmp/ - -# happypack 缓存 -.happypack diff --git a/blocks/AreaStackChart/package.json b/blocks/AreaStackChart/package.json index fd4d5284d4..4e4d5dc68e 100644 --- a/blocks/AreaStackChart/package.json +++ b/blocks/AreaStackChart/package.json @@ -32,12 +32,6 @@ "devDependencies": { "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.3", - "babel-eslint": "^8.0.3", - "eslint": "^4.13.1", - "eslint-config-airbnb": "^16.1.0", - "eslint-plugin-babel": "^4.1.1", - "eslint-plugin-import": "^2.8.0", - "eslint-plugin-jsx-a11y": "^6.0.3", "eslint-plugin-react": "^7.5.1" }, "blockConfig": { @@ -49,9 +43,5 @@ "sketchURL": "", "icelandURL": "", "themePackage": "@icedesign/skin" - }, - "scripts": { - "lint": "eslint . --ext '.js,.jsx' --fix", - "prepublish": "npm run lint" } } diff --git a/blocks/ArticleList/.editorconfig b/blocks/ArticleList/.editorconfig deleted file mode 100644 index 22ef5ace54..0000000000 --- a/blocks/ArticleList/.editorconfig +++ /dev/null @@ -1,16 +0,0 @@ -# http://editorconfig.org -root = true - -[*] -indent_style = space -indent_size = 2 -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -[*.md] -trim_trailing_whitespace = false - -[makefile] -indent_style = tab -indent_size = 4 diff --git a/blocks/ArticleList/.eslintignore b/blocks/ArticleList/.eslintignore deleted file mode 100644 index 3b21308fc7..0000000000 --- a/blocks/ArticleList/.eslintignore +++ /dev/null @@ -1,12 +0,0 @@ -# 忽略目录 -build/ -tests/ -demo/ -lib/ - -# node 覆盖率文件 -coverage/ - -# 忽略文件 -**/*-min.js -**/*.min.js \ No newline at end of file diff --git a/blocks/ArticleList/.eslintrc b/blocks/ArticleList/.eslintrc deleted file mode 100644 index 7a4e5bac48..0000000000 --- a/blocks/ArticleList/.eslintrc +++ /dev/null @@ -1,62 +0,0 @@ -{ - "root": true, - "parser": "babel-eslint", - "extends": "eslint-config-airbnb", - "parserOptions": { - "ecmaVersion": 6, - "ecmaFeatures": { - "jsx": true, - "experimentalObjectRestSpread": true - } - }, - "env": { - "browser": true - }, - "plugins": [ - "react", - "babel" - ], - "rules": { - "react/forbid-prop-types": 0, - "jsx-a11y/label-has-for": 0, - "jsx-a11y/no-static-element-interactions": 0, - "jsx-a11y/anchor-has-content": 0, - "jsx-a11y/click-events-have-key-events": 0, - "jsx-a11y/anchor-is-valid": 0, - "react/no-array-index-key": 0, - "func-names": 0, - "arrow-body-style": 0, - "no-use-before-define": 0, - "react/sort-comp": 0, - "react/prop-types": 0, - "react/jsx-first-prop-new-line": 0, - "react/jsx-filename-extension": [ - 1, - { - "extensions": [ - ".js", - ".jsx" - ] - } - ], - "import/extensions": 0, - "import/no-unresolved": 0, - "import/no-extraneous-dependencies": 0, - "prefer-destructuring": 0, - "no-param-reassign": 0, - "no-return-assign": 0, - "max-len": 0, - "consistent-return": 0, - "no-redeclare": 0, - "react/require-extension": 0, - "react/no-danger": 0, - "comma-dangle": [ - "error", - "always-multiline" - ], - "function-paren-newline": 0, - "object-curly-newline": 0, - "no-restricted-globals": 0, - "react/prefer-stateless-function": 0 - } -} diff --git a/blocks/ArticleList/.gitignore b/blocks/ArticleList/.gitignore deleted file mode 100644 index cc45d6fb3c..0000000000 --- a/blocks/ArticleList/.gitignore +++ /dev/null @@ -1,13 +0,0 @@ - -*.swp -*.dia~ -.idea/ -.DS_Store - -npm-debug.log -yarn-error.log -node_modules/ -tmp/ - -# happypack 缓存 -.happypack diff --git a/blocks/ArticleList/package.json b/blocks/ArticleList/package.json index a9c605b6b1..65593a5017 100644 --- a/blocks/ArticleList/package.json +++ b/blocks/ArticleList/package.json @@ -29,14 +29,8 @@ "@icedesign/card": "^0.1.0" }, "devDependencies": { - "babel-eslint": "^8.0.3", - "eslint": "^4.13.1", - "eslint-plugin-babel": "^4.1.1", "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "eslint-plugin-import": "^2.8.0", - "eslint-config-airbnb": "^16.1.0", - "eslint-plugin-jsx-a11y": "^6.0.3", "@icedesign/skin": "^0.1.2" }, "blockConfig": { @@ -48,6 +42,5 @@ "sketchURL": "", "icelandURL": "", "themePackage": "@icedesign/skin" - }, - "scripts": {} + } } diff --git a/blocks/BasicDetailInfo/.editorconfig b/blocks/BasicDetailInfo/.editorconfig deleted file mode 100644 index 22ef5ace54..0000000000 --- a/blocks/BasicDetailInfo/.editorconfig +++ /dev/null @@ -1,16 +0,0 @@ -# http://editorconfig.org -root = true - -[*] -indent_style = space -indent_size = 2 -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -[*.md] -trim_trailing_whitespace = false - -[makefile] -indent_style = tab -indent_size = 4 diff --git a/blocks/BasicDetailInfo/.eslintignore b/blocks/BasicDetailInfo/.eslintignore deleted file mode 100644 index 3b21308fc7..0000000000 --- a/blocks/BasicDetailInfo/.eslintignore +++ /dev/null @@ -1,12 +0,0 @@ -# 忽略目录 -build/ -tests/ -demo/ -lib/ - -# node 覆盖率文件 -coverage/ - -# 忽略文件 -**/*-min.js -**/*.min.js \ No newline at end of file diff --git a/blocks/BasicDetailInfo/.eslintrc b/blocks/BasicDetailInfo/.eslintrc deleted file mode 100644 index 7a4e5bac48..0000000000 --- a/blocks/BasicDetailInfo/.eslintrc +++ /dev/null @@ -1,62 +0,0 @@ -{ - "root": true, - "parser": "babel-eslint", - "extends": "eslint-config-airbnb", - "parserOptions": { - "ecmaVersion": 6, - "ecmaFeatures": { - "jsx": true, - "experimentalObjectRestSpread": true - } - }, - "env": { - "browser": true - }, - "plugins": [ - "react", - "babel" - ], - "rules": { - "react/forbid-prop-types": 0, - "jsx-a11y/label-has-for": 0, - "jsx-a11y/no-static-element-interactions": 0, - "jsx-a11y/anchor-has-content": 0, - "jsx-a11y/click-events-have-key-events": 0, - "jsx-a11y/anchor-is-valid": 0, - "react/no-array-index-key": 0, - "func-names": 0, - "arrow-body-style": 0, - "no-use-before-define": 0, - "react/sort-comp": 0, - "react/prop-types": 0, - "react/jsx-first-prop-new-line": 0, - "react/jsx-filename-extension": [ - 1, - { - "extensions": [ - ".js", - ".jsx" - ] - } - ], - "import/extensions": 0, - "import/no-unresolved": 0, - "import/no-extraneous-dependencies": 0, - "prefer-destructuring": 0, - "no-param-reassign": 0, - "no-return-assign": 0, - "max-len": 0, - "consistent-return": 0, - "no-redeclare": 0, - "react/require-extension": 0, - "react/no-danger": 0, - "comma-dangle": [ - "error", - "always-multiline" - ], - "function-paren-newline": 0, - "object-curly-newline": 0, - "no-restricted-globals": 0, - "react/prefer-stateless-function": 0 - } -} diff --git a/blocks/BasicDetailInfo/.gitignore b/blocks/BasicDetailInfo/.gitignore deleted file mode 100644 index cc45d6fb3c..0000000000 --- a/blocks/BasicDetailInfo/.gitignore +++ /dev/null @@ -1,13 +0,0 @@ - -*.swp -*.dia~ -.idea/ -.DS_Store - -npm-debug.log -yarn-error.log -node_modules/ -tmp/ - -# happypack 缓存 -.happypack diff --git a/blocks/BasicDetailInfo/package.json b/blocks/BasicDetailInfo/package.json index 5e4c4ffaae..dbb75663c0 100644 --- a/blocks/BasicDetailInfo/package.json +++ b/blocks/BasicDetailInfo/package.json @@ -27,14 +27,8 @@ "@icedesign/card": "^0.1.0" }, "devDependencies": { - "babel-eslint": "^8.0.3", - "eslint": "^4.13.1", - "eslint-plugin-babel": "^4.1.1", "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "eslint-plugin-import": "^2.8.0", - "eslint-config-airbnb": "^16.1.0", - "eslint-plugin-jsx-a11y": "^6.0.3", "@icedesign/skin": "^0.1.2" }, "blockConfig": { @@ -46,6 +40,5 @@ "sketchURL": "", "icelandURL": "", "themePackage": "@icedesign/skin" - }, - "scripts": {} + } } diff --git a/blocks/BasicException/.editorconfig b/blocks/BasicException/.editorconfig deleted file mode 100644 index 22ef5ace54..0000000000 --- a/blocks/BasicException/.editorconfig +++ /dev/null @@ -1,16 +0,0 @@ -# http://editorconfig.org -root = true - -[*] -indent_style = space -indent_size = 2 -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -[*.md] -trim_trailing_whitespace = false - -[makefile] -indent_style = tab -indent_size = 4 diff --git a/blocks/BasicException/.eslintignore b/blocks/BasicException/.eslintignore deleted file mode 100644 index 2d5ec592a3..0000000000 --- a/blocks/BasicException/.eslintignore +++ /dev/null @@ -1,12 +0,0 @@ -# 忽略目录 -build/ -tests/ -demo/ -lib/ - -# node 覆盖率文件 -coverage/ - -# 忽略文件 -**/*-min.js -**/*.min.js diff --git a/blocks/BasicException/.eslintrc b/blocks/BasicException/.eslintrc deleted file mode 100644 index 07c65acfe7..0000000000 --- a/blocks/BasicException/.eslintrc +++ /dev/null @@ -1,53 +0,0 @@ -{ - "root": true, - "parser": "babel-eslint", - "extends": "eslint-config-airbnb", - "parserOptions": { - "ecmaVersion": 6, - "ecmaFeatures": { - "jsx": true, - "experimentalObjectRestSpread": true - } - }, - "env": { - "browser": true - }, - "plugins": ["react", "babel"], - "rules": { - "react/forbid-prop-types": 0, - "jsx-a11y/label-has-for": 0, - "jsx-a11y/no-static-element-interactions": 0, - "jsx-a11y/anchor-has-content": 0, - "jsx-a11y/click-events-have-key-events": 0, - "jsx-a11y/anchor-is-valid": 0, - "react/no-array-index-key": 0, - "func-names": 0, - "arrow-body-style": 0, - "no-use-before-define": 1, - "react/sort-comp": 0, - "react/prop-types": 0, - "react/jsx-first-prop-new-line": 0, - "react/jsx-filename-extension": [ - 1, - { - "extensions": [".js", ".jsx"] - } - ], - "import/extensions": 0, - "import/no-unresolved": 0, - "import/no-extraneous-dependencies": 0, - "prefer-destructuring": 0, - "no-param-reassign": 0, - "no-return-assign": 0, - "max-len": 0, - "consistent-return": 0, - "no-redeclare": 0, - "react/require-extension": 0, - "react/no-danger": 0, - "comma-dangle": ["error", "always-multiline"], - "function-paren-newline": 0, - "object-curly-newline": 0, - "no-restricted-globals": 0, - "react/prefer-stateless-function": 0 - } -} diff --git a/blocks/BasicException/.gitignore b/blocks/BasicException/.gitignore deleted file mode 100644 index cc45d6fb3c..0000000000 --- a/blocks/BasicException/.gitignore +++ /dev/null @@ -1,13 +0,0 @@ - -*.swp -*.dia~ -.idea/ -.DS_Store - -npm-debug.log -yarn-error.log -node_modules/ -tmp/ - -# happypack 缓存 -.happypack diff --git a/blocks/BasicException/package.json b/blocks/BasicException/package.json index eca02f68c5..d1aedc62ab 100644 --- a/blocks/BasicException/package.json +++ b/blocks/BasicException/package.json @@ -29,14 +29,8 @@ "@icedesign/card": "^0.1.0" }, "devDependencies": { - "babel-eslint": "^8.0.3", - "eslint": "^4.13.1", - "eslint-plugin-babel": "^4.1.1", "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "eslint-plugin-import": "^2.8.0", - "eslint-config-airbnb": "^16.1.0", - "eslint-plugin-jsx-a11y": "^6.0.3", "@icedesign/skin": "^0.1.2" }, "blockConfig": { @@ -48,9 +42,5 @@ "sketchURL": "", "icelandURL": "", "themePackage": "@icedesign/skin" - }, - "scripts": { - "lint": "eslint . --ext '.js,.jsx' --fix", - "prepublish": "npm run lint" } } diff --git a/blocks/BasicNotFound/.editorconfig b/blocks/BasicNotFound/.editorconfig deleted file mode 100644 index 22ef5ace54..0000000000 --- a/blocks/BasicNotFound/.editorconfig +++ /dev/null @@ -1,16 +0,0 @@ -# http://editorconfig.org -root = true - -[*] -indent_style = space -indent_size = 2 -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -[*.md] -trim_trailing_whitespace = false - -[makefile] -indent_style = tab -indent_size = 4 diff --git a/blocks/BasicNotFound/.eslintignore b/blocks/BasicNotFound/.eslintignore deleted file mode 100644 index 2d5ec592a3..0000000000 --- a/blocks/BasicNotFound/.eslintignore +++ /dev/null @@ -1,12 +0,0 @@ -# 忽略目录 -build/ -tests/ -demo/ -lib/ - -# node 覆盖率文件 -coverage/ - -# 忽略文件 -**/*-min.js -**/*.min.js diff --git a/blocks/BasicNotFound/.eslintrc b/blocks/BasicNotFound/.eslintrc deleted file mode 100644 index 07c65acfe7..0000000000 --- a/blocks/BasicNotFound/.eslintrc +++ /dev/null @@ -1,53 +0,0 @@ -{ - "root": true, - "parser": "babel-eslint", - "extends": "eslint-config-airbnb", - "parserOptions": { - "ecmaVersion": 6, - "ecmaFeatures": { - "jsx": true, - "experimentalObjectRestSpread": true - } - }, - "env": { - "browser": true - }, - "plugins": ["react", "babel"], - "rules": { - "react/forbid-prop-types": 0, - "jsx-a11y/label-has-for": 0, - "jsx-a11y/no-static-element-interactions": 0, - "jsx-a11y/anchor-has-content": 0, - "jsx-a11y/click-events-have-key-events": 0, - "jsx-a11y/anchor-is-valid": 0, - "react/no-array-index-key": 0, - "func-names": 0, - "arrow-body-style": 0, - "no-use-before-define": 1, - "react/sort-comp": 0, - "react/prop-types": 0, - "react/jsx-first-prop-new-line": 0, - "react/jsx-filename-extension": [ - 1, - { - "extensions": [".js", ".jsx"] - } - ], - "import/extensions": 0, - "import/no-unresolved": 0, - "import/no-extraneous-dependencies": 0, - "prefer-destructuring": 0, - "no-param-reassign": 0, - "no-return-assign": 0, - "max-len": 0, - "consistent-return": 0, - "no-redeclare": 0, - "react/require-extension": 0, - "react/no-danger": 0, - "comma-dangle": ["error", "always-multiline"], - "function-paren-newline": 0, - "object-curly-newline": 0, - "no-restricted-globals": 0, - "react/prefer-stateless-function": 0 - } -} diff --git a/blocks/BasicNotFound/.gitignore b/blocks/BasicNotFound/.gitignore deleted file mode 100644 index cc45d6fb3c..0000000000 --- a/blocks/BasicNotFound/.gitignore +++ /dev/null @@ -1,13 +0,0 @@ - -*.swp -*.dia~ -.idea/ -.DS_Store - -npm-debug.log -yarn-error.log -node_modules/ -tmp/ - -# happypack 缓存 -.happypack diff --git a/blocks/BasicNotFound/package.json b/blocks/BasicNotFound/package.json index fd02c8bd8a..924fbd0230 100644 --- a/blocks/BasicNotFound/package.json +++ b/blocks/BasicNotFound/package.json @@ -31,12 +31,6 @@ "devDependencies": { "@icedesign/demo-layout": "^0.1.2", "@icedesign/skin": "^0.1.2", - "babel-eslint": "^8.0.3", - "eslint": "^4.13.1", - "eslint-config-airbnb": "^16.1.0", - "eslint-plugin-babel": "^4.1.1", - "eslint-plugin-import": "^2.8.0", - "eslint-plugin-jsx-a11y": "^6.0.3", "eslint-plugin-react": "^7.5.1" }, "blockConfig": { @@ -48,9 +42,5 @@ "sketchURL": "", "icelandURL": "", "themePackage": "@icedesign/skin" - }, - "scripts": { - "lint": "eslint . --ext '.js,.jsx' --fix", - "prepublish": "npm run lint" } } diff --git a/blocks/BasicTab/.editorconfig b/blocks/BasicTab/.editorconfig deleted file mode 100644 index 22ef5ace54..0000000000 --- a/blocks/BasicTab/.editorconfig +++ /dev/null @@ -1,16 +0,0 @@ -# http://editorconfig.org -root = true - -[*] -indent_style = space -indent_size = 2 -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -[*.md] -trim_trailing_whitespace = false - -[makefile] -indent_style = tab -indent_size = 4 diff --git a/blocks/BasicTab/.eslintignore b/blocks/BasicTab/.eslintignore deleted file mode 100644 index 2d5ec592a3..0000000000 --- a/blocks/BasicTab/.eslintignore +++ /dev/null @@ -1,12 +0,0 @@ -# 忽略目录 -build/ -tests/ -demo/ -lib/ - -# node 覆盖率文件 -coverage/ - -# 忽略文件 -**/*-min.js -**/*.min.js diff --git a/blocks/BasicTab/.eslintrc b/blocks/BasicTab/.eslintrc deleted file mode 100644 index 07c65acfe7..0000000000 --- a/blocks/BasicTab/.eslintrc +++ /dev/null @@ -1,53 +0,0 @@ -{ - "root": true, - "parser": "babel-eslint", - "extends": "eslint-config-airbnb", - "parserOptions": { - "ecmaVersion": 6, - "ecmaFeatures": { - "jsx": true, - "experimentalObjectRestSpread": true - } - }, - "env": { - "browser": true - }, - "plugins": ["react", "babel"], - "rules": { - "react/forbid-prop-types": 0, - "jsx-a11y/label-has-for": 0, - "jsx-a11y/no-static-element-interactions": 0, - "jsx-a11y/anchor-has-content": 0, - "jsx-a11y/click-events-have-key-events": 0, - "jsx-a11y/anchor-is-valid": 0, - "react/no-array-index-key": 0, - "func-names": 0, - "arrow-body-style": 0, - "no-use-before-define": 1, - "react/sort-comp": 0, - "react/prop-types": 0, - "react/jsx-first-prop-new-line": 0, - "react/jsx-filename-extension": [ - 1, - { - "extensions": [".js", ".jsx"] - } - ], - "import/extensions": 0, - "import/no-unresolved": 0, - "import/no-extraneous-dependencies": 0, - "prefer-destructuring": 0, - "no-param-reassign": 0, - "no-return-assign": 0, - "max-len": 0, - "consistent-return": 0, - "no-redeclare": 0, - "react/require-extension": 0, - "react/no-danger": 0, - "comma-dangle": ["error", "always-multiline"], - "function-paren-newline": 0, - "object-curly-newline": 0, - "no-restricted-globals": 0, - "react/prefer-stateless-function": 0 - } -} diff --git a/blocks/BasicTab/.gitignore b/blocks/BasicTab/.gitignore deleted file mode 100644 index cc45d6fb3c..0000000000 --- a/blocks/BasicTab/.gitignore +++ /dev/null @@ -1,13 +0,0 @@ - -*.swp -*.dia~ -.idea/ -.DS_Store - -npm-debug.log -yarn-error.log -node_modules/ -tmp/ - -# happypack 缓存 -.happypack diff --git a/blocks/BasicTab/package.json b/blocks/BasicTab/package.json index 7850b4af88..d2e90c188a 100644 --- a/blocks/BasicTab/package.json +++ b/blocks/BasicTab/package.json @@ -28,14 +28,8 @@ "@icedesign/card": "^0.1.0" }, "devDependencies": { - "babel-eslint": "^8.0.3", - "eslint": "^4.13.1", - "eslint-plugin-babel": "^4.1.1", "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "eslint-plugin-import": "^2.8.0", - "eslint-config-airbnb": "^16.1.0", - "eslint-plugin-jsx-a11y": "^6.0.3", "@icedesign/skin": "^0.1.3" }, "blockConfig": { @@ -47,9 +41,5 @@ "sketchURL": "", "icelandURL": "", "themePackage": "@icedesign/skin" - }, - "scripts": { - "lint": "eslint . --ext '.js,.jsx' --fix", - "prepublish": "npm run lint" } } diff --git a/blocks/BrandDisplay/.editorconfig b/blocks/BrandDisplay/.editorconfig deleted file mode 100644 index 22ef5ace54..0000000000 --- a/blocks/BrandDisplay/.editorconfig +++ /dev/null @@ -1,16 +0,0 @@ -# http://editorconfig.org -root = true - -[*] -indent_style = space -indent_size = 2 -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -[*.md] -trim_trailing_whitespace = false - -[makefile] -indent_style = tab -indent_size = 4 diff --git a/blocks/BrandDisplay/.eslintignore b/blocks/BrandDisplay/.eslintignore deleted file mode 100644 index 3b21308fc7..0000000000 --- a/blocks/BrandDisplay/.eslintignore +++ /dev/null @@ -1,12 +0,0 @@ -# 忽略目录 -build/ -tests/ -demo/ -lib/ - -# node 覆盖率文件 -coverage/ - -# 忽略文件 -**/*-min.js -**/*.min.js \ No newline at end of file diff --git a/blocks/BrandDisplay/.eslintrc b/blocks/BrandDisplay/.eslintrc deleted file mode 100644 index 7a4e5bac48..0000000000 --- a/blocks/BrandDisplay/.eslintrc +++ /dev/null @@ -1,62 +0,0 @@ -{ - "root": true, - "parser": "babel-eslint", - "extends": "eslint-config-airbnb", - "parserOptions": { - "ecmaVersion": 6, - "ecmaFeatures": { - "jsx": true, - "experimentalObjectRestSpread": true - } - }, - "env": { - "browser": true - }, - "plugins": [ - "react", - "babel" - ], - "rules": { - "react/forbid-prop-types": 0, - "jsx-a11y/label-has-for": 0, - "jsx-a11y/no-static-element-interactions": 0, - "jsx-a11y/anchor-has-content": 0, - "jsx-a11y/click-events-have-key-events": 0, - "jsx-a11y/anchor-is-valid": 0, - "react/no-array-index-key": 0, - "func-names": 0, - "arrow-body-style": 0, - "no-use-before-define": 0, - "react/sort-comp": 0, - "react/prop-types": 0, - "react/jsx-first-prop-new-line": 0, - "react/jsx-filename-extension": [ - 1, - { - "extensions": [ - ".js", - ".jsx" - ] - } - ], - "import/extensions": 0, - "import/no-unresolved": 0, - "import/no-extraneous-dependencies": 0, - "prefer-destructuring": 0, - "no-param-reassign": 0, - "no-return-assign": 0, - "max-len": 0, - "consistent-return": 0, - "no-redeclare": 0, - "react/require-extension": 0, - "react/no-danger": 0, - "comma-dangle": [ - "error", - "always-multiline" - ], - "function-paren-newline": 0, - "object-curly-newline": 0, - "no-restricted-globals": 0, - "react/prefer-stateless-function": 0 - } -} diff --git a/blocks/BrandDisplay/.gitignore b/blocks/BrandDisplay/.gitignore deleted file mode 100644 index cc45d6fb3c..0000000000 --- a/blocks/BrandDisplay/.gitignore +++ /dev/null @@ -1,13 +0,0 @@ - -*.swp -*.dia~ -.idea/ -.DS_Store - -npm-debug.log -yarn-error.log -node_modules/ -tmp/ - -# happypack 缓存 -.happypack diff --git a/blocks/BrandDisplay/package.json b/blocks/BrandDisplay/package.json index f4ac3d5d84..0403bdcf21 100644 --- a/blocks/BrandDisplay/package.json +++ b/blocks/BrandDisplay/package.json @@ -28,14 +28,8 @@ "@icedesign/img": "^0.1.0" }, "devDependencies": { - "babel-eslint": "^8.0.3", - "eslint": "^4.13.1", - "eslint-plugin-babel": "^4.1.1", "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "eslint-plugin-import": "^2.8.0", - "eslint-config-airbnb": "^16.1.0", - "eslint-plugin-jsx-a11y": "^6.0.3", "@icedesign/skin": "^0.1.2" }, "blockConfig": { @@ -47,6 +41,5 @@ "sketchURL": "", "icelandURL": "", "themePackage": "@icedesign/skin" - }, - "scripts": {} + } } diff --git a/blocks/BrandShowCase/.editorconfig b/blocks/BrandShowCase/.editorconfig deleted file mode 100644 index 22ef5ace54..0000000000 --- a/blocks/BrandShowCase/.editorconfig +++ /dev/null @@ -1,16 +0,0 @@ -# http://editorconfig.org -root = true - -[*] -indent_style = space -indent_size = 2 -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -[*.md] -trim_trailing_whitespace = false - -[makefile] -indent_style = tab -indent_size = 4 diff --git a/blocks/BrandShowCase/.eslintignore b/blocks/BrandShowCase/.eslintignore deleted file mode 100644 index 3b21308fc7..0000000000 --- a/blocks/BrandShowCase/.eslintignore +++ /dev/null @@ -1,12 +0,0 @@ -# 忽略目录 -build/ -tests/ -demo/ -lib/ - -# node 覆盖率文件 -coverage/ - -# 忽略文件 -**/*-min.js -**/*.min.js \ No newline at end of file diff --git a/blocks/BrandShowCase/.eslintrc b/blocks/BrandShowCase/.eslintrc deleted file mode 100644 index 7a4e5bac48..0000000000 --- a/blocks/BrandShowCase/.eslintrc +++ /dev/null @@ -1,62 +0,0 @@ -{ - "root": true, - "parser": "babel-eslint", - "extends": "eslint-config-airbnb", - "parserOptions": { - "ecmaVersion": 6, - "ecmaFeatures": { - "jsx": true, - "experimentalObjectRestSpread": true - } - }, - "env": { - "browser": true - }, - "plugins": [ - "react", - "babel" - ], - "rules": { - "react/forbid-prop-types": 0, - "jsx-a11y/label-has-for": 0, - "jsx-a11y/no-static-element-interactions": 0, - "jsx-a11y/anchor-has-content": 0, - "jsx-a11y/click-events-have-key-events": 0, - "jsx-a11y/anchor-is-valid": 0, - "react/no-array-index-key": 0, - "func-names": 0, - "arrow-body-style": 0, - "no-use-before-define": 0, - "react/sort-comp": 0, - "react/prop-types": 0, - "react/jsx-first-prop-new-line": 0, - "react/jsx-filename-extension": [ - 1, - { - "extensions": [ - ".js", - ".jsx" - ] - } - ], - "import/extensions": 0, - "import/no-unresolved": 0, - "import/no-extraneous-dependencies": 0, - "prefer-destructuring": 0, - "no-param-reassign": 0, - "no-return-assign": 0, - "max-len": 0, - "consistent-return": 0, - "no-redeclare": 0, - "react/require-extension": 0, - "react/no-danger": 0, - "comma-dangle": [ - "error", - "always-multiline" - ], - "function-paren-newline": 0, - "object-curly-newline": 0, - "no-restricted-globals": 0, - "react/prefer-stateless-function": 0 - } -} diff --git a/blocks/BrandShowCase/.gitignore b/blocks/BrandShowCase/.gitignore deleted file mode 100644 index cc45d6fb3c..0000000000 --- a/blocks/BrandShowCase/.gitignore +++ /dev/null @@ -1,13 +0,0 @@ - -*.swp -*.dia~ -.idea/ -.DS_Store - -npm-debug.log -yarn-error.log -node_modules/ -tmp/ - -# happypack 缓存 -.happypack diff --git a/blocks/BrandShowCase/package.json b/blocks/BrandShowCase/package.json index c94660834b..f522da2de5 100644 --- a/blocks/BrandShowCase/package.json +++ b/blocks/BrandShowCase/package.json @@ -8,7 +8,6 @@ "lib/", "mock/" ], - "scripts": {}, "author": { "name": "ICE Team", "email": "ice-admin@alibaba-inc.com" @@ -29,16 +28,10 @@ }, "devDependencies": { "@icedesign/skin": "^0.1.2", - "babel-eslint": "^8.0.3", "eslint-plugin-react": "^7.5.1", "react": "15.x", "react-copy-to-clipboard": "^4.2.3", "react-dom": "15.x", - "eslint": "^4.13.1", - "eslint-plugin-babel": "^4.1.1", - "eslint-plugin-import": "^2.8.0", - "eslint-config-airbnb": "^16.1.0", - "eslint-plugin-jsx-a11y": "^6.0.3", "@icedesign/demo-layout": "^0.1.0" }, "blockConfig": { diff --git a/blocks/ChartArea/.editorconfig b/blocks/ChartArea/.editorconfig deleted file mode 100644 index 22ef5ace54..0000000000 --- a/blocks/ChartArea/.editorconfig +++ /dev/null @@ -1,16 +0,0 @@ -# http://editorconfig.org -root = true - -[*] -indent_style = space -indent_size = 2 -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -[*.md] -trim_trailing_whitespace = false - -[makefile] -indent_style = tab -indent_size = 4 diff --git a/blocks/ChartArea/.eslintignore b/blocks/ChartArea/.eslintignore deleted file mode 100644 index 3b21308fc7..0000000000 --- a/blocks/ChartArea/.eslintignore +++ /dev/null @@ -1,12 +0,0 @@ -# 忽略目录 -build/ -tests/ -demo/ -lib/ - -# node 覆盖率文件 -coverage/ - -# 忽略文件 -**/*-min.js -**/*.min.js \ No newline at end of file diff --git a/blocks/ChartArea/.eslintrc b/blocks/ChartArea/.eslintrc deleted file mode 100644 index 7a4e5bac48..0000000000 --- a/blocks/ChartArea/.eslintrc +++ /dev/null @@ -1,62 +0,0 @@ -{ - "root": true, - "parser": "babel-eslint", - "extends": "eslint-config-airbnb", - "parserOptions": { - "ecmaVersion": 6, - "ecmaFeatures": { - "jsx": true, - "experimentalObjectRestSpread": true - } - }, - "env": { - "browser": true - }, - "plugins": [ - "react", - "babel" - ], - "rules": { - "react/forbid-prop-types": 0, - "jsx-a11y/label-has-for": 0, - "jsx-a11y/no-static-element-interactions": 0, - "jsx-a11y/anchor-has-content": 0, - "jsx-a11y/click-events-have-key-events": 0, - "jsx-a11y/anchor-is-valid": 0, - "react/no-array-index-key": 0, - "func-names": 0, - "arrow-body-style": 0, - "no-use-before-define": 0, - "react/sort-comp": 0, - "react/prop-types": 0, - "react/jsx-first-prop-new-line": 0, - "react/jsx-filename-extension": [ - 1, - { - "extensions": [ - ".js", - ".jsx" - ] - } - ], - "import/extensions": 0, - "import/no-unresolved": 0, - "import/no-extraneous-dependencies": 0, - "prefer-destructuring": 0, - "no-param-reassign": 0, - "no-return-assign": 0, - "max-len": 0, - "consistent-return": 0, - "no-redeclare": 0, - "react/require-extension": 0, - "react/no-danger": 0, - "comma-dangle": [ - "error", - "always-multiline" - ], - "function-paren-newline": 0, - "object-curly-newline": 0, - "no-restricted-globals": 0, - "react/prefer-stateless-function": 0 - } -} diff --git a/blocks/ChartArea/.gitignore b/blocks/ChartArea/.gitignore deleted file mode 100644 index 5945feea3c..0000000000 --- a/blocks/ChartArea/.gitignore +++ /dev/null @@ -1,14 +0,0 @@ - - *.swp - *.dia~ - .idea/ - .DS_Store - - npm-debug.log - yarn-error.log - node_modules/ - tmp/ - - # happypack 缓存 - .happypack - \ No newline at end of file diff --git a/blocks/ChartArea/package.json b/blocks/ChartArea/package.json index 95cecedc4d..b909504bea 100644 --- a/blocks/ChartArea/package.json +++ b/blocks/ChartArea/package.json @@ -29,14 +29,8 @@ "@icedesign/card": "^0.1.0" }, "devDependencies": { - "babel-eslint": "^8.0.3", - "eslint": "^4.13.1", - "eslint-plugin-babel": "^4.1.1", "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "eslint-plugin-import": "^2.8.0", - "eslint-config-airbnb": "^16.1.0", - "eslint-plugin-jsx-a11y": "^6.0.3", "@icedesign/skin": "^0.1.2" }, "blockConfig": { @@ -48,9 +42,5 @@ "sketchURL": "", "icelandURL": "", "themePackage": "@icedesign/skin" - }, - "scripts": { - "lint": "eslint . --ext '.js,.jsx' --fix", - "prepublish": "npm run lint" } } diff --git a/blocks/ChartBar/.editorconfig b/blocks/ChartBar/.editorconfig deleted file mode 100644 index 22ef5ace54..0000000000 --- a/blocks/ChartBar/.editorconfig +++ /dev/null @@ -1,16 +0,0 @@ -# http://editorconfig.org -root = true - -[*] -indent_style = space -indent_size = 2 -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -[*.md] -trim_trailing_whitespace = false - -[makefile] -indent_style = tab -indent_size = 4 diff --git a/blocks/ChartBar/.eslintignore b/blocks/ChartBar/.eslintignore deleted file mode 100644 index 3b21308fc7..0000000000 --- a/blocks/ChartBar/.eslintignore +++ /dev/null @@ -1,12 +0,0 @@ -# 忽略目录 -build/ -tests/ -demo/ -lib/ - -# node 覆盖率文件 -coverage/ - -# 忽略文件 -**/*-min.js -**/*.min.js \ No newline at end of file diff --git a/blocks/ChartBar/.eslintrc b/blocks/ChartBar/.eslintrc deleted file mode 100644 index 7a4e5bac48..0000000000 --- a/blocks/ChartBar/.eslintrc +++ /dev/null @@ -1,62 +0,0 @@ -{ - "root": true, - "parser": "babel-eslint", - "extends": "eslint-config-airbnb", - "parserOptions": { - "ecmaVersion": 6, - "ecmaFeatures": { - "jsx": true, - "experimentalObjectRestSpread": true - } - }, - "env": { - "browser": true - }, - "plugins": [ - "react", - "babel" - ], - "rules": { - "react/forbid-prop-types": 0, - "jsx-a11y/label-has-for": 0, - "jsx-a11y/no-static-element-interactions": 0, - "jsx-a11y/anchor-has-content": 0, - "jsx-a11y/click-events-have-key-events": 0, - "jsx-a11y/anchor-is-valid": 0, - "react/no-array-index-key": 0, - "func-names": 0, - "arrow-body-style": 0, - "no-use-before-define": 0, - "react/sort-comp": 0, - "react/prop-types": 0, - "react/jsx-first-prop-new-line": 0, - "react/jsx-filename-extension": [ - 1, - { - "extensions": [ - ".js", - ".jsx" - ] - } - ], - "import/extensions": 0, - "import/no-unresolved": 0, - "import/no-extraneous-dependencies": 0, - "prefer-destructuring": 0, - "no-param-reassign": 0, - "no-return-assign": 0, - "max-len": 0, - "consistent-return": 0, - "no-redeclare": 0, - "react/require-extension": 0, - "react/no-danger": 0, - "comma-dangle": [ - "error", - "always-multiline" - ], - "function-paren-newline": 0, - "object-curly-newline": 0, - "no-restricted-globals": 0, - "react/prefer-stateless-function": 0 - } -} diff --git a/blocks/ChartBar/.gitignore b/blocks/ChartBar/.gitignore deleted file mode 100644 index 5945feea3c..0000000000 --- a/blocks/ChartBar/.gitignore +++ /dev/null @@ -1,14 +0,0 @@ - - *.swp - *.dia~ - .idea/ - .DS_Store - - npm-debug.log - yarn-error.log - node_modules/ - tmp/ - - # happypack 缓存 - .happypack - \ No newline at end of file diff --git a/blocks/ChartBar/package.json b/blocks/ChartBar/package.json index 434d73d67d..557c82adfc 100644 --- a/blocks/ChartBar/package.json +++ b/blocks/ChartBar/package.json @@ -29,14 +29,8 @@ "@icedesign/card": "^0.1.0" }, "devDependencies": { - "babel-eslint": "^8.0.3", - "eslint": "^4.13.1", - "eslint-plugin-babel": "^4.1.1", "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "eslint-plugin-import": "^2.8.0", - "eslint-config-airbnb": "^16.1.0", - "eslint-plugin-jsx-a11y": "^6.0.3", "@icedesign/skin": "^0.1.2" }, "blockConfig": { @@ -48,9 +42,5 @@ "sketchURL": "", "icelandURL": "", "themePackage": "@icedesign/skin" - }, - "scripts": { - "lint": "eslint . --ext '.js,.jsx' --fix", - "prepublish": "npm run lint" } } diff --git a/blocks/ChartBox/.editorconfig b/blocks/ChartBox/.editorconfig deleted file mode 100644 index 22ef5ace54..0000000000 --- a/blocks/ChartBox/.editorconfig +++ /dev/null @@ -1,16 +0,0 @@ -# http://editorconfig.org -root = true - -[*] -indent_style = space -indent_size = 2 -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -[*.md] -trim_trailing_whitespace = false - -[makefile] -indent_style = tab -indent_size = 4 diff --git a/blocks/ChartBox/.eslintignore b/blocks/ChartBox/.eslintignore deleted file mode 100644 index 3b21308fc7..0000000000 --- a/blocks/ChartBox/.eslintignore +++ /dev/null @@ -1,12 +0,0 @@ -# 忽略目录 -build/ -tests/ -demo/ -lib/ - -# node 覆盖率文件 -coverage/ - -# 忽略文件 -**/*-min.js -**/*.min.js \ No newline at end of file diff --git a/blocks/ChartBox/.eslintrc b/blocks/ChartBox/.eslintrc deleted file mode 100644 index 7a4e5bac48..0000000000 --- a/blocks/ChartBox/.eslintrc +++ /dev/null @@ -1,62 +0,0 @@ -{ - "root": true, - "parser": "babel-eslint", - "extends": "eslint-config-airbnb", - "parserOptions": { - "ecmaVersion": 6, - "ecmaFeatures": { - "jsx": true, - "experimentalObjectRestSpread": true - } - }, - "env": { - "browser": true - }, - "plugins": [ - "react", - "babel" - ], - "rules": { - "react/forbid-prop-types": 0, - "jsx-a11y/label-has-for": 0, - "jsx-a11y/no-static-element-interactions": 0, - "jsx-a11y/anchor-has-content": 0, - "jsx-a11y/click-events-have-key-events": 0, - "jsx-a11y/anchor-is-valid": 0, - "react/no-array-index-key": 0, - "func-names": 0, - "arrow-body-style": 0, - "no-use-before-define": 0, - "react/sort-comp": 0, - "react/prop-types": 0, - "react/jsx-first-prop-new-line": 0, - "react/jsx-filename-extension": [ - 1, - { - "extensions": [ - ".js", - ".jsx" - ] - } - ], - "import/extensions": 0, - "import/no-unresolved": 0, - "import/no-extraneous-dependencies": 0, - "prefer-destructuring": 0, - "no-param-reassign": 0, - "no-return-assign": 0, - "max-len": 0, - "consistent-return": 0, - "no-redeclare": 0, - "react/require-extension": 0, - "react/no-danger": 0, - "comma-dangle": [ - "error", - "always-multiline" - ], - "function-paren-newline": 0, - "object-curly-newline": 0, - "no-restricted-globals": 0, - "react/prefer-stateless-function": 0 - } -} diff --git a/blocks/ChartBox/.gitignore b/blocks/ChartBox/.gitignore deleted file mode 100644 index 5945feea3c..0000000000 --- a/blocks/ChartBox/.gitignore +++ /dev/null @@ -1,14 +0,0 @@ - - *.swp - *.dia~ - .idea/ - .DS_Store - - npm-debug.log - yarn-error.log - node_modules/ - tmp/ - - # happypack 缓存 - .happypack - \ No newline at end of file diff --git a/blocks/ChartBox/package.json b/blocks/ChartBox/package.json index c0a9dc5556..7c3e6fb9f3 100644 --- a/blocks/ChartBox/package.json +++ b/blocks/ChartBox/package.json @@ -29,14 +29,8 @@ "@icedesign/card": "^0.1.0" }, "devDependencies": { - "babel-eslint": "^8.0.3", - "eslint": "^4.13.1", - "eslint-plugin-babel": "^4.1.1", "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "eslint-plugin-import": "^2.8.0", - "eslint-config-airbnb": "^16.1.0", - "eslint-plugin-jsx-a11y": "^6.0.3", "@icedesign/skin": "^0.1.2" }, "blockConfig": { @@ -48,9 +42,5 @@ "sketchURL": "", "icelandURL": "", "themePackage": "@icedesign/skin" - }, - "scripts": { - "lint": "eslint . --ext '.js,.jsx' --fix", - "prepublish": "npm run lint" } } diff --git a/blocks/ChartBubbleImage/.editorconfig b/blocks/ChartBubbleImage/.editorconfig deleted file mode 100644 index 22ef5ace54..0000000000 --- a/blocks/ChartBubbleImage/.editorconfig +++ /dev/null @@ -1,16 +0,0 @@ -# http://editorconfig.org -root = true - -[*] -indent_style = space -indent_size = 2 -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -[*.md] -trim_trailing_whitespace = false - -[makefile] -indent_style = tab -indent_size = 4 diff --git a/blocks/ChartBubbleImage/.eslintignore b/blocks/ChartBubbleImage/.eslintignore deleted file mode 100644 index 3b21308fc7..0000000000 --- a/blocks/ChartBubbleImage/.eslintignore +++ /dev/null @@ -1,12 +0,0 @@ -# 忽略目录 -build/ -tests/ -demo/ -lib/ - -# node 覆盖率文件 -coverage/ - -# 忽略文件 -**/*-min.js -**/*.min.js \ No newline at end of file diff --git a/blocks/ChartBubbleImage/.eslintrc b/blocks/ChartBubbleImage/.eslintrc deleted file mode 100644 index 59b96e85d6..0000000000 --- a/blocks/ChartBubbleImage/.eslintrc +++ /dev/null @@ -1,53 +0,0 @@ -{ - "root": true, - "parser": "babel-eslint", - "extends": "eslint-config-airbnb", - "parserOptions": { - "ecmaVersion": 6, - "ecmaFeatures": { - "jsx": true, - "experimentalObjectRestSpread": true - } - }, - "env": { - "browser": true - }, - "plugins": ["react", "babel"], - "rules": { - "react/forbid-prop-types": 0, - "jsx-a11y/label-has-for": 0, - "jsx-a11y/no-static-element-interactions": 0, - "jsx-a11y/anchor-has-content": 0, - "jsx-a11y/click-events-have-key-events": 0, - "jsx-a11y/anchor-is-valid": 0, - "react/no-array-index-key": 0, - "func-names": 0, - "arrow-body-style": 0, - "no-use-before-define": 0, - "react/sort-comp": 0, - "react/prop-types": 0, - "react/jsx-first-prop-new-line": 0, - "react/jsx-filename-extension": [ - 1, - { - "extensions": [".js", ".jsx"] - } - ], - "import/extensions": 0, - "import/no-unresolved": 0, - "import/no-extraneous-dependencies": 0, - "prefer-destructuring": 0, - "no-param-reassign": 0, - "no-return-assign": 0, - "max-len": 0, - "consistent-return": 0, - "no-redeclare": 0, - "react/require-extension": 0, - "react/no-danger": 0, - "comma-dangle": ["error", "always-multiline"], - "function-paren-newline": 0, - "object-curly-newline": 0, - "no-restricted-globals": 0, - "react/prefer-stateless-function": 0 - } -} diff --git a/blocks/ChartBubbleImage/.gitignore b/blocks/ChartBubbleImage/.gitignore deleted file mode 100644 index 5945feea3c..0000000000 --- a/blocks/ChartBubbleImage/.gitignore +++ /dev/null @@ -1,14 +0,0 @@ - - *.swp - *.dia~ - .idea/ - .DS_Store - - npm-debug.log - yarn-error.log - node_modules/ - tmp/ - - # happypack 缓存 - .happypack - \ No newline at end of file diff --git a/blocks/ChartBubbleImage/package.json b/blocks/ChartBubbleImage/package.json index b43e3dd24e..1f3af9f36d 100644 --- a/blocks/ChartBubbleImage/package.json +++ b/blocks/ChartBubbleImage/package.json @@ -29,14 +29,8 @@ "@icedesign/card": "^0.1.0" }, "devDependencies": { - "babel-eslint": "^8.0.3", - "eslint": "^4.13.1", - "eslint-plugin-babel": "^4.1.1", "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "eslint-plugin-import": "^2.8.0", - "eslint-config-airbnb": "^16.1.0", - "eslint-plugin-jsx-a11y": "^6.0.3", "@icedesign/skin": "^0.1.2" }, "blockConfig": { @@ -48,9 +42,5 @@ "sketchURL": "", "icelandURL": "", "themePackage": "@icedesign/skin" - }, - "scripts": { - "lint": "eslint . --ext '.js,.jsx' --fix", - "prepublish": "npm run lint" } } diff --git a/blocks/ChartFacet/.editorconfig b/blocks/ChartFacet/.editorconfig deleted file mode 100644 index 22ef5ace54..0000000000 --- a/blocks/ChartFacet/.editorconfig +++ /dev/null @@ -1,16 +0,0 @@ -# http://editorconfig.org -root = true - -[*] -indent_style = space -indent_size = 2 -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -[*.md] -trim_trailing_whitespace = false - -[makefile] -indent_style = tab -indent_size = 4 diff --git a/blocks/ChartFacet/.eslintignore b/blocks/ChartFacet/.eslintignore deleted file mode 100644 index 3b21308fc7..0000000000 --- a/blocks/ChartFacet/.eslintignore +++ /dev/null @@ -1,12 +0,0 @@ -# 忽略目录 -build/ -tests/ -demo/ -lib/ - -# node 覆盖率文件 -coverage/ - -# 忽略文件 -**/*-min.js -**/*.min.js \ No newline at end of file diff --git a/blocks/ChartFacet/.eslintrc b/blocks/ChartFacet/.eslintrc deleted file mode 100644 index 7a4e5bac48..0000000000 --- a/blocks/ChartFacet/.eslintrc +++ /dev/null @@ -1,62 +0,0 @@ -{ - "root": true, - "parser": "babel-eslint", - "extends": "eslint-config-airbnb", - "parserOptions": { - "ecmaVersion": 6, - "ecmaFeatures": { - "jsx": true, - "experimentalObjectRestSpread": true - } - }, - "env": { - "browser": true - }, - "plugins": [ - "react", - "babel" - ], - "rules": { - "react/forbid-prop-types": 0, - "jsx-a11y/label-has-for": 0, - "jsx-a11y/no-static-element-interactions": 0, - "jsx-a11y/anchor-has-content": 0, - "jsx-a11y/click-events-have-key-events": 0, - "jsx-a11y/anchor-is-valid": 0, - "react/no-array-index-key": 0, - "func-names": 0, - "arrow-body-style": 0, - "no-use-before-define": 0, - "react/sort-comp": 0, - "react/prop-types": 0, - "react/jsx-first-prop-new-line": 0, - "react/jsx-filename-extension": [ - 1, - { - "extensions": [ - ".js", - ".jsx" - ] - } - ], - "import/extensions": 0, - "import/no-unresolved": 0, - "import/no-extraneous-dependencies": 0, - "prefer-destructuring": 0, - "no-param-reassign": 0, - "no-return-assign": 0, - "max-len": 0, - "consistent-return": 0, - "no-redeclare": 0, - "react/require-extension": 0, - "react/no-danger": 0, - "comma-dangle": [ - "error", - "always-multiline" - ], - "function-paren-newline": 0, - "object-curly-newline": 0, - "no-restricted-globals": 0, - "react/prefer-stateless-function": 0 - } -} diff --git a/blocks/ChartFacet/.gitignore b/blocks/ChartFacet/.gitignore deleted file mode 100644 index 5945feea3c..0000000000 --- a/blocks/ChartFacet/.gitignore +++ /dev/null @@ -1,14 +0,0 @@ - - *.swp - *.dia~ - .idea/ - .DS_Store - - npm-debug.log - yarn-error.log - node_modules/ - tmp/ - - # happypack 缓存 - .happypack - \ No newline at end of file diff --git a/blocks/ChartFacet/package.json b/blocks/ChartFacet/package.json index 6d85ccbd4e..1d9f12c689 100644 --- a/blocks/ChartFacet/package.json +++ b/blocks/ChartFacet/package.json @@ -29,14 +29,8 @@ "@icedesign/card": "^0.1.0" }, "devDependencies": { - "babel-eslint": "^8.0.3", - "eslint": "^4.13.1", - "eslint-plugin-babel": "^4.1.1", "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "eslint-plugin-import": "^2.8.0", - "eslint-config-airbnb": "^16.1.0", - "eslint-plugin-jsx-a11y": "^6.0.3", "@icedesign/skin": "^0.1.2" }, "blockConfig": { @@ -48,9 +42,5 @@ "sketchURL": "", "icelandURL": "", "themePackage": "@icedesign/skin" - }, - "scripts": { - "lint": "eslint . --ext '.js,.jsx' --fix", - "prepublish": "npm run lint" } } diff --git a/blocks/ChartFunnel/.editorconfig b/blocks/ChartFunnel/.editorconfig deleted file mode 100644 index 22ef5ace54..0000000000 --- a/blocks/ChartFunnel/.editorconfig +++ /dev/null @@ -1,16 +0,0 @@ -# http://editorconfig.org -root = true - -[*] -indent_style = space -indent_size = 2 -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -[*.md] -trim_trailing_whitespace = false - -[makefile] -indent_style = tab -indent_size = 4 diff --git a/blocks/ChartFunnel/.eslintignore b/blocks/ChartFunnel/.eslintignore deleted file mode 100644 index 3b21308fc7..0000000000 --- a/blocks/ChartFunnel/.eslintignore +++ /dev/null @@ -1,12 +0,0 @@ -# 忽略目录 -build/ -tests/ -demo/ -lib/ - -# node 覆盖率文件 -coverage/ - -# 忽略文件 -**/*-min.js -**/*.min.js \ No newline at end of file diff --git a/blocks/ChartFunnel/.eslintrc b/blocks/ChartFunnel/.eslintrc deleted file mode 100644 index 7a4e5bac48..0000000000 --- a/blocks/ChartFunnel/.eslintrc +++ /dev/null @@ -1,62 +0,0 @@ -{ - "root": true, - "parser": "babel-eslint", - "extends": "eslint-config-airbnb", - "parserOptions": { - "ecmaVersion": 6, - "ecmaFeatures": { - "jsx": true, - "experimentalObjectRestSpread": true - } - }, - "env": { - "browser": true - }, - "plugins": [ - "react", - "babel" - ], - "rules": { - "react/forbid-prop-types": 0, - "jsx-a11y/label-has-for": 0, - "jsx-a11y/no-static-element-interactions": 0, - "jsx-a11y/anchor-has-content": 0, - "jsx-a11y/click-events-have-key-events": 0, - "jsx-a11y/anchor-is-valid": 0, - "react/no-array-index-key": 0, - "func-names": 0, - "arrow-body-style": 0, - "no-use-before-define": 0, - "react/sort-comp": 0, - "react/prop-types": 0, - "react/jsx-first-prop-new-line": 0, - "react/jsx-filename-extension": [ - 1, - { - "extensions": [ - ".js", - ".jsx" - ] - } - ], - "import/extensions": 0, - "import/no-unresolved": 0, - "import/no-extraneous-dependencies": 0, - "prefer-destructuring": 0, - "no-param-reassign": 0, - "no-return-assign": 0, - "max-len": 0, - "consistent-return": 0, - "no-redeclare": 0, - "react/require-extension": 0, - "react/no-danger": 0, - "comma-dangle": [ - "error", - "always-multiline" - ], - "function-paren-newline": 0, - "object-curly-newline": 0, - "no-restricted-globals": 0, - "react/prefer-stateless-function": 0 - } -} diff --git a/blocks/ChartFunnel/.gitignore b/blocks/ChartFunnel/.gitignore deleted file mode 100644 index 5945feea3c..0000000000 --- a/blocks/ChartFunnel/.gitignore +++ /dev/null @@ -1,14 +0,0 @@ - - *.swp - *.dia~ - .idea/ - .DS_Store - - npm-debug.log - yarn-error.log - node_modules/ - tmp/ - - # happypack 缓存 - .happypack - \ No newline at end of file diff --git a/blocks/ChartFunnel/package.json b/blocks/ChartFunnel/package.json index 740b22eca4..0a02fcfbd1 100644 --- a/blocks/ChartFunnel/package.json +++ b/blocks/ChartFunnel/package.json @@ -29,14 +29,8 @@ "@icedesign/card": "^0.1.0" }, "devDependencies": { - "babel-eslint": "^8.0.3", - "eslint": "^4.13.1", - "eslint-plugin-babel": "^4.1.1", "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "eslint-plugin-import": "^2.8.0", - "eslint-config-airbnb": "^16.1.0", - "eslint-plugin-jsx-a11y": "^6.0.3", "@icedesign/skin": "^0.1.2" }, "blockConfig": { @@ -48,9 +42,5 @@ "sketchURL": "", "icelandURL": "", "themePackage": "@icedesign/skin" - }, - "scripts": { - "lint": "eslint . --ext '.js,.jsx' --fix", - "prepublish": "npm run lint" } } diff --git a/blocks/ChartGauge/.editorconfig b/blocks/ChartGauge/.editorconfig deleted file mode 100644 index 22ef5ace54..0000000000 --- a/blocks/ChartGauge/.editorconfig +++ /dev/null @@ -1,16 +0,0 @@ -# http://editorconfig.org -root = true - -[*] -indent_style = space -indent_size = 2 -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -[*.md] -trim_trailing_whitespace = false - -[makefile] -indent_style = tab -indent_size = 4 diff --git a/blocks/ChartGauge/.eslintignore b/blocks/ChartGauge/.eslintignore deleted file mode 100644 index 3b21308fc7..0000000000 --- a/blocks/ChartGauge/.eslintignore +++ /dev/null @@ -1,12 +0,0 @@ -# 忽略目录 -build/ -tests/ -demo/ -lib/ - -# node 覆盖率文件 -coverage/ - -# 忽略文件 -**/*-min.js -**/*.min.js \ No newline at end of file diff --git a/blocks/ChartGauge/.eslintrc b/blocks/ChartGauge/.eslintrc deleted file mode 100644 index 7a4e5bac48..0000000000 --- a/blocks/ChartGauge/.eslintrc +++ /dev/null @@ -1,62 +0,0 @@ -{ - "root": true, - "parser": "babel-eslint", - "extends": "eslint-config-airbnb", - "parserOptions": { - "ecmaVersion": 6, - "ecmaFeatures": { - "jsx": true, - "experimentalObjectRestSpread": true - } - }, - "env": { - "browser": true - }, - "plugins": [ - "react", - "babel" - ], - "rules": { - "react/forbid-prop-types": 0, - "jsx-a11y/label-has-for": 0, - "jsx-a11y/no-static-element-interactions": 0, - "jsx-a11y/anchor-has-content": 0, - "jsx-a11y/click-events-have-key-events": 0, - "jsx-a11y/anchor-is-valid": 0, - "react/no-array-index-key": 0, - "func-names": 0, - "arrow-body-style": 0, - "no-use-before-define": 0, - "react/sort-comp": 0, - "react/prop-types": 0, - "react/jsx-first-prop-new-line": 0, - "react/jsx-filename-extension": [ - 1, - { - "extensions": [ - ".js", - ".jsx" - ] - } - ], - "import/extensions": 0, - "import/no-unresolved": 0, - "import/no-extraneous-dependencies": 0, - "prefer-destructuring": 0, - "no-param-reassign": 0, - "no-return-assign": 0, - "max-len": 0, - "consistent-return": 0, - "no-redeclare": 0, - "react/require-extension": 0, - "react/no-danger": 0, - "comma-dangle": [ - "error", - "always-multiline" - ], - "function-paren-newline": 0, - "object-curly-newline": 0, - "no-restricted-globals": 0, - "react/prefer-stateless-function": 0 - } -} diff --git a/blocks/ChartGauge/.gitignore b/blocks/ChartGauge/.gitignore deleted file mode 100644 index 5945feea3c..0000000000 --- a/blocks/ChartGauge/.gitignore +++ /dev/null @@ -1,14 +0,0 @@ - - *.swp - *.dia~ - .idea/ - .DS_Store - - npm-debug.log - yarn-error.log - node_modules/ - tmp/ - - # happypack 缓存 - .happypack - \ No newline at end of file diff --git a/blocks/ChartGauge/package.json b/blocks/ChartGauge/package.json index 03f6a7f03c..21062c22dd 100644 --- a/blocks/ChartGauge/package.json +++ b/blocks/ChartGauge/package.json @@ -29,14 +29,8 @@ "@icedesign/card": "^0.1.0" }, "devDependencies": { - "babel-eslint": "^8.0.3", - "eslint": "^4.13.1", - "eslint-plugin-babel": "^4.1.1", "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "eslint-plugin-import": "^2.8.0", - "eslint-config-airbnb": "^16.1.0", - "eslint-plugin-jsx-a11y": "^6.0.3", "@icedesign/skin": "^0.1.2" }, "blockConfig": { @@ -48,9 +42,5 @@ "sketchURL": "", "icelandURL": "", "themePackage": "@icedesign/skin" - }, - "scripts": { - "lint": "eslint . --ext '.js,.jsx' --fix", - "prepublish": "npm run lint" } } diff --git a/blocks/ChartHeatMap/.editorconfig b/blocks/ChartHeatMap/.editorconfig deleted file mode 100644 index 22ef5ace54..0000000000 --- a/blocks/ChartHeatMap/.editorconfig +++ /dev/null @@ -1,16 +0,0 @@ -# http://editorconfig.org -root = true - -[*] -indent_style = space -indent_size = 2 -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -[*.md] -trim_trailing_whitespace = false - -[makefile] -indent_style = tab -indent_size = 4 diff --git a/blocks/ChartHeatMap/.eslintignore b/blocks/ChartHeatMap/.eslintignore deleted file mode 100644 index 3b21308fc7..0000000000 --- a/blocks/ChartHeatMap/.eslintignore +++ /dev/null @@ -1,12 +0,0 @@ -# 忽略目录 -build/ -tests/ -demo/ -lib/ - -# node 覆盖率文件 -coverage/ - -# 忽略文件 -**/*-min.js -**/*.min.js \ No newline at end of file diff --git a/blocks/ChartHeatMap/.eslintrc b/blocks/ChartHeatMap/.eslintrc deleted file mode 100644 index 7a4e5bac48..0000000000 --- a/blocks/ChartHeatMap/.eslintrc +++ /dev/null @@ -1,62 +0,0 @@ -{ - "root": true, - "parser": "babel-eslint", - "extends": "eslint-config-airbnb", - "parserOptions": { - "ecmaVersion": 6, - "ecmaFeatures": { - "jsx": true, - "experimentalObjectRestSpread": true - } - }, - "env": { - "browser": true - }, - "plugins": [ - "react", - "babel" - ], - "rules": { - "react/forbid-prop-types": 0, - "jsx-a11y/label-has-for": 0, - "jsx-a11y/no-static-element-interactions": 0, - "jsx-a11y/anchor-has-content": 0, - "jsx-a11y/click-events-have-key-events": 0, - "jsx-a11y/anchor-is-valid": 0, - "react/no-array-index-key": 0, - "func-names": 0, - "arrow-body-style": 0, - "no-use-before-define": 0, - "react/sort-comp": 0, - "react/prop-types": 0, - "react/jsx-first-prop-new-line": 0, - "react/jsx-filename-extension": [ - 1, - { - "extensions": [ - ".js", - ".jsx" - ] - } - ], - "import/extensions": 0, - "import/no-unresolved": 0, - "import/no-extraneous-dependencies": 0, - "prefer-destructuring": 0, - "no-param-reassign": 0, - "no-return-assign": 0, - "max-len": 0, - "consistent-return": 0, - "no-redeclare": 0, - "react/require-extension": 0, - "react/no-danger": 0, - "comma-dangle": [ - "error", - "always-multiline" - ], - "function-paren-newline": 0, - "object-curly-newline": 0, - "no-restricted-globals": 0, - "react/prefer-stateless-function": 0 - } -} diff --git a/blocks/ChartHeatMap/.gitignore b/blocks/ChartHeatMap/.gitignore deleted file mode 100644 index 5945feea3c..0000000000 --- a/blocks/ChartHeatMap/.gitignore +++ /dev/null @@ -1,14 +0,0 @@ - - *.swp - *.dia~ - .idea/ - .DS_Store - - npm-debug.log - yarn-error.log - node_modules/ - tmp/ - - # happypack 缓存 - .happypack - \ No newline at end of file diff --git a/blocks/ChartHeatMap/package.json b/blocks/ChartHeatMap/package.json index 8d204f4979..08d9f5484e 100644 --- a/blocks/ChartHeatMap/package.json +++ b/blocks/ChartHeatMap/package.json @@ -29,14 +29,8 @@ "@icedesign/card": "^0.1.0" }, "devDependencies": { - "babel-eslint": "^8.0.3", - "eslint": "^4.13.1", - "eslint-plugin-babel": "^4.1.1", "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "eslint-plugin-import": "^2.8.0", - "eslint-config-airbnb": "^16.1.0", - "eslint-plugin-jsx-a11y": "^6.0.3", "@icedesign/skin": "^0.1.2" }, "blockConfig": { @@ -48,9 +42,5 @@ "sketchURL": "", "icelandURL": "", "themePackage": "@icedesign/skin" - }, - "scripts": { - "lint": "eslint . --ext '.js,.jsx' --fix", - "prepublish": "npm run lint" } } diff --git a/blocks/ChartPie/.editorconfig b/blocks/ChartPie/.editorconfig deleted file mode 100644 index 22ef5ace54..0000000000 --- a/blocks/ChartPie/.editorconfig +++ /dev/null @@ -1,16 +0,0 @@ -# http://editorconfig.org -root = true - -[*] -indent_style = space -indent_size = 2 -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -[*.md] -trim_trailing_whitespace = false - -[makefile] -indent_style = tab -indent_size = 4 diff --git a/blocks/ChartPie/.eslintignore b/blocks/ChartPie/.eslintignore deleted file mode 100644 index 3b21308fc7..0000000000 --- a/blocks/ChartPie/.eslintignore +++ /dev/null @@ -1,12 +0,0 @@ -# 忽略目录 -build/ -tests/ -demo/ -lib/ - -# node 覆盖率文件 -coverage/ - -# 忽略文件 -**/*-min.js -**/*.min.js \ No newline at end of file diff --git a/blocks/ChartPie/.eslintrc b/blocks/ChartPie/.eslintrc deleted file mode 100644 index 7a4e5bac48..0000000000 --- a/blocks/ChartPie/.eslintrc +++ /dev/null @@ -1,62 +0,0 @@ -{ - "root": true, - "parser": "babel-eslint", - "extends": "eslint-config-airbnb", - "parserOptions": { - "ecmaVersion": 6, - "ecmaFeatures": { - "jsx": true, - "experimentalObjectRestSpread": true - } - }, - "env": { - "browser": true - }, - "plugins": [ - "react", - "babel" - ], - "rules": { - "react/forbid-prop-types": 0, - "jsx-a11y/label-has-for": 0, - "jsx-a11y/no-static-element-interactions": 0, - "jsx-a11y/anchor-has-content": 0, - "jsx-a11y/click-events-have-key-events": 0, - "jsx-a11y/anchor-is-valid": 0, - "react/no-array-index-key": 0, - "func-names": 0, - "arrow-body-style": 0, - "no-use-before-define": 0, - "react/sort-comp": 0, - "react/prop-types": 0, - "react/jsx-first-prop-new-line": 0, - "react/jsx-filename-extension": [ - 1, - { - "extensions": [ - ".js", - ".jsx" - ] - } - ], - "import/extensions": 0, - "import/no-unresolved": 0, - "import/no-extraneous-dependencies": 0, - "prefer-destructuring": 0, - "no-param-reassign": 0, - "no-return-assign": 0, - "max-len": 0, - "consistent-return": 0, - "no-redeclare": 0, - "react/require-extension": 0, - "react/no-danger": 0, - "comma-dangle": [ - "error", - "always-multiline" - ], - "function-paren-newline": 0, - "object-curly-newline": 0, - "no-restricted-globals": 0, - "react/prefer-stateless-function": 0 - } -} diff --git a/blocks/ChartPie/.gitignore b/blocks/ChartPie/.gitignore deleted file mode 100644 index 5945feea3c..0000000000 --- a/blocks/ChartPie/.gitignore +++ /dev/null @@ -1,14 +0,0 @@ - - *.swp - *.dia~ - .idea/ - .DS_Store - - npm-debug.log - yarn-error.log - node_modules/ - tmp/ - - # happypack 缓存 - .happypack - \ No newline at end of file diff --git a/blocks/ChartPie/package.json b/blocks/ChartPie/package.json index 4f26ce9217..dab3f6214d 100644 --- a/blocks/ChartPie/package.json +++ b/blocks/ChartPie/package.json @@ -29,14 +29,8 @@ "@icedesign/card": "^0.1.0" }, "devDependencies": { - "babel-eslint": "^8.0.3", - "eslint": "^4.13.1", - "eslint-plugin-babel": "^4.1.1", "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "eslint-plugin-import": "^2.8.0", - "eslint-config-airbnb": "^16.1.0", - "eslint-plugin-jsx-a11y": "^6.0.3", "@icedesign/skin": "^0.1.2" }, "blockConfig": { @@ -48,9 +42,5 @@ "sketchURL": "", "icelandURL": "", "themePackage": "@icedesign/skin" - }, - "scripts": { - "lint": "eslint . --ext '.js,.jsx' --fix", - "prepublish": "npm run lint" } } diff --git a/blocks/ChartPoint/.editorconfig b/blocks/ChartPoint/.editorconfig deleted file mode 100644 index 22ef5ace54..0000000000 --- a/blocks/ChartPoint/.editorconfig +++ /dev/null @@ -1,16 +0,0 @@ -# http://editorconfig.org -root = true - -[*] -indent_style = space -indent_size = 2 -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -[*.md] -trim_trailing_whitespace = false - -[makefile] -indent_style = tab -indent_size = 4 diff --git a/blocks/ChartPoint/.eslintignore b/blocks/ChartPoint/.eslintignore deleted file mode 100644 index 3b21308fc7..0000000000 --- a/blocks/ChartPoint/.eslintignore +++ /dev/null @@ -1,12 +0,0 @@ -# 忽略目录 -build/ -tests/ -demo/ -lib/ - -# node 覆盖率文件 -coverage/ - -# 忽略文件 -**/*-min.js -**/*.min.js \ No newline at end of file diff --git a/blocks/ChartPoint/.eslintrc b/blocks/ChartPoint/.eslintrc deleted file mode 100644 index 7a4e5bac48..0000000000 --- a/blocks/ChartPoint/.eslintrc +++ /dev/null @@ -1,62 +0,0 @@ -{ - "root": true, - "parser": "babel-eslint", - "extends": "eslint-config-airbnb", - "parserOptions": { - "ecmaVersion": 6, - "ecmaFeatures": { - "jsx": true, - "experimentalObjectRestSpread": true - } - }, - "env": { - "browser": true - }, - "plugins": [ - "react", - "babel" - ], - "rules": { - "react/forbid-prop-types": 0, - "jsx-a11y/label-has-for": 0, - "jsx-a11y/no-static-element-interactions": 0, - "jsx-a11y/anchor-has-content": 0, - "jsx-a11y/click-events-have-key-events": 0, - "jsx-a11y/anchor-is-valid": 0, - "react/no-array-index-key": 0, - "func-names": 0, - "arrow-body-style": 0, - "no-use-before-define": 0, - "react/sort-comp": 0, - "react/prop-types": 0, - "react/jsx-first-prop-new-line": 0, - "react/jsx-filename-extension": [ - 1, - { - "extensions": [ - ".js", - ".jsx" - ] - } - ], - "import/extensions": 0, - "import/no-unresolved": 0, - "import/no-extraneous-dependencies": 0, - "prefer-destructuring": 0, - "no-param-reassign": 0, - "no-return-assign": 0, - "max-len": 0, - "consistent-return": 0, - "no-redeclare": 0, - "react/require-extension": 0, - "react/no-danger": 0, - "comma-dangle": [ - "error", - "always-multiline" - ], - "function-paren-newline": 0, - "object-curly-newline": 0, - "no-restricted-globals": 0, - "react/prefer-stateless-function": 0 - } -} diff --git a/blocks/ChartPoint/.gitignore b/blocks/ChartPoint/.gitignore deleted file mode 100644 index 5945feea3c..0000000000 --- a/blocks/ChartPoint/.gitignore +++ /dev/null @@ -1,14 +0,0 @@ - - *.swp - *.dia~ - .idea/ - .DS_Store - - npm-debug.log - yarn-error.log - node_modules/ - tmp/ - - # happypack 缓存 - .happypack - \ No newline at end of file diff --git a/blocks/ChartPoint/package.json b/blocks/ChartPoint/package.json index be5bfa8058..339f8c6f6d 100644 --- a/blocks/ChartPoint/package.json +++ b/blocks/ChartPoint/package.json @@ -30,14 +30,8 @@ "@icedesign/card": "^0.1.0" }, "devDependencies": { - "babel-eslint": "^8.0.3", - "eslint": "^4.13.1", - "eslint-plugin-babel": "^4.1.1", "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "eslint-plugin-import": "^2.8.0", - "eslint-config-airbnb": "^16.1.0", - "eslint-plugin-jsx-a11y": "^6.0.3", "@icedesign/skin": "^0.1.2" }, "blockConfig": { @@ -49,9 +43,5 @@ "sketchURL": "", "icelandURL": "", "themePackage": "@icedesign/skin" - }, - "scripts": { - "lint": "eslint . --ext '.js,.jsx' --fix", - "prepublish": "npm run lint" } } diff --git a/blocks/ChartRadar/.editorconfig b/blocks/ChartRadar/.editorconfig deleted file mode 100644 index 22ef5ace54..0000000000 --- a/blocks/ChartRadar/.editorconfig +++ /dev/null @@ -1,16 +0,0 @@ -# http://editorconfig.org -root = true - -[*] -indent_style = space -indent_size = 2 -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -[*.md] -trim_trailing_whitespace = false - -[makefile] -indent_style = tab -indent_size = 4 diff --git a/blocks/ChartRadar/.eslintignore b/blocks/ChartRadar/.eslintignore deleted file mode 100644 index 3b21308fc7..0000000000 --- a/blocks/ChartRadar/.eslintignore +++ /dev/null @@ -1,12 +0,0 @@ -# 忽略目录 -build/ -tests/ -demo/ -lib/ - -# node 覆盖率文件 -coverage/ - -# 忽略文件 -**/*-min.js -**/*.min.js \ No newline at end of file diff --git a/blocks/ChartRadar/.eslintrc b/blocks/ChartRadar/.eslintrc deleted file mode 100644 index 7a4e5bac48..0000000000 --- a/blocks/ChartRadar/.eslintrc +++ /dev/null @@ -1,62 +0,0 @@ -{ - "root": true, - "parser": "babel-eslint", - "extends": "eslint-config-airbnb", - "parserOptions": { - "ecmaVersion": 6, - "ecmaFeatures": { - "jsx": true, - "experimentalObjectRestSpread": true - } - }, - "env": { - "browser": true - }, - "plugins": [ - "react", - "babel" - ], - "rules": { - "react/forbid-prop-types": 0, - "jsx-a11y/label-has-for": 0, - "jsx-a11y/no-static-element-interactions": 0, - "jsx-a11y/anchor-has-content": 0, - "jsx-a11y/click-events-have-key-events": 0, - "jsx-a11y/anchor-is-valid": 0, - "react/no-array-index-key": 0, - "func-names": 0, - "arrow-body-style": 0, - "no-use-before-define": 0, - "react/sort-comp": 0, - "react/prop-types": 0, - "react/jsx-first-prop-new-line": 0, - "react/jsx-filename-extension": [ - 1, - { - "extensions": [ - ".js", - ".jsx" - ] - } - ], - "import/extensions": 0, - "import/no-unresolved": 0, - "import/no-extraneous-dependencies": 0, - "prefer-destructuring": 0, - "no-param-reassign": 0, - "no-return-assign": 0, - "max-len": 0, - "consistent-return": 0, - "no-redeclare": 0, - "react/require-extension": 0, - "react/no-danger": 0, - "comma-dangle": [ - "error", - "always-multiline" - ], - "function-paren-newline": 0, - "object-curly-newline": 0, - "no-restricted-globals": 0, - "react/prefer-stateless-function": 0 - } -} diff --git a/blocks/ChartRadar/.gitignore b/blocks/ChartRadar/.gitignore deleted file mode 100644 index 5945feea3c..0000000000 --- a/blocks/ChartRadar/.gitignore +++ /dev/null @@ -1,14 +0,0 @@ - - *.swp - *.dia~ - .idea/ - .DS_Store - - npm-debug.log - yarn-error.log - node_modules/ - tmp/ - - # happypack 缓存 - .happypack - \ No newline at end of file diff --git a/blocks/ChartRadar/package.json b/blocks/ChartRadar/package.json index 2f084a8b31..867c30fc8b 100644 --- a/blocks/ChartRadar/package.json +++ b/blocks/ChartRadar/package.json @@ -29,14 +29,8 @@ "@icedesign/card": "^0.1.0" }, "devDependencies": { - "babel-eslint": "^8.0.3", - "eslint": "^4.13.1", - "eslint-plugin-babel": "^4.1.1", "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "eslint-plugin-import": "^2.8.0", - "eslint-config-airbnb": "^16.1.0", - "eslint-plugin-jsx-a11y": "^6.0.3", "@icedesign/skin": "^0.1.2" }, "blockConfig": { @@ -48,9 +42,5 @@ "sketchURL": "", "icelandURL": "", "themePackage": "@icedesign/skin" - }, - "scripts": { - "lint": "eslint . --ext '.js,.jsx' --fix", - "prepublish": "npm run lint" } } diff --git a/blocks/ChartRelation/.editorconfig b/blocks/ChartRelation/.editorconfig deleted file mode 100644 index 22ef5ace54..0000000000 --- a/blocks/ChartRelation/.editorconfig +++ /dev/null @@ -1,16 +0,0 @@ -# http://editorconfig.org -root = true - -[*] -indent_style = space -indent_size = 2 -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -[*.md] -trim_trailing_whitespace = false - -[makefile] -indent_style = tab -indent_size = 4 diff --git a/blocks/ChartRelation/.eslintignore b/blocks/ChartRelation/.eslintignore deleted file mode 100644 index 3b21308fc7..0000000000 --- a/blocks/ChartRelation/.eslintignore +++ /dev/null @@ -1,12 +0,0 @@ -# 忽略目录 -build/ -tests/ -demo/ -lib/ - -# node 覆盖率文件 -coverage/ - -# 忽略文件 -**/*-min.js -**/*.min.js \ No newline at end of file diff --git a/blocks/ChartRelation/.eslintrc b/blocks/ChartRelation/.eslintrc deleted file mode 100644 index 7a4e5bac48..0000000000 --- a/blocks/ChartRelation/.eslintrc +++ /dev/null @@ -1,62 +0,0 @@ -{ - "root": true, - "parser": "babel-eslint", - "extends": "eslint-config-airbnb", - "parserOptions": { - "ecmaVersion": 6, - "ecmaFeatures": { - "jsx": true, - "experimentalObjectRestSpread": true - } - }, - "env": { - "browser": true - }, - "plugins": [ - "react", - "babel" - ], - "rules": { - "react/forbid-prop-types": 0, - "jsx-a11y/label-has-for": 0, - "jsx-a11y/no-static-element-interactions": 0, - "jsx-a11y/anchor-has-content": 0, - "jsx-a11y/click-events-have-key-events": 0, - "jsx-a11y/anchor-is-valid": 0, - "react/no-array-index-key": 0, - "func-names": 0, - "arrow-body-style": 0, - "no-use-before-define": 0, - "react/sort-comp": 0, - "react/prop-types": 0, - "react/jsx-first-prop-new-line": 0, - "react/jsx-filename-extension": [ - 1, - { - "extensions": [ - ".js", - ".jsx" - ] - } - ], - "import/extensions": 0, - "import/no-unresolved": 0, - "import/no-extraneous-dependencies": 0, - "prefer-destructuring": 0, - "no-param-reassign": 0, - "no-return-assign": 0, - "max-len": 0, - "consistent-return": 0, - "no-redeclare": 0, - "react/require-extension": 0, - "react/no-danger": 0, - "comma-dangle": [ - "error", - "always-multiline" - ], - "function-paren-newline": 0, - "object-curly-newline": 0, - "no-restricted-globals": 0, - "react/prefer-stateless-function": 0 - } -} diff --git a/blocks/ChartRelation/.gitignore b/blocks/ChartRelation/.gitignore deleted file mode 100644 index 5945feea3c..0000000000 --- a/blocks/ChartRelation/.gitignore +++ /dev/null @@ -1,14 +0,0 @@ - - *.swp - *.dia~ - .idea/ - .DS_Store - - npm-debug.log - yarn-error.log - node_modules/ - tmp/ - - # happypack 缓存 - .happypack - \ No newline at end of file diff --git a/blocks/ChartRelation/package.json b/blocks/ChartRelation/package.json index aae7e69466..a50916bfa2 100644 --- a/blocks/ChartRelation/package.json +++ b/blocks/ChartRelation/package.json @@ -29,14 +29,8 @@ "@icedesign/card": "^0.1.0" }, "devDependencies": { - "babel-eslint": "^8.0.3", - "eslint": "^4.13.1", - "eslint-plugin-babel": "^4.1.1", "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "eslint-plugin-import": "^2.8.0", - "eslint-config-airbnb": "^16.1.0", - "eslint-plugin-jsx-a11y": "^6.0.3", "@icedesign/skin": "^0.1.2" }, "blockConfig": { @@ -48,9 +42,5 @@ "sketchURL": "", "icelandURL": "", "themePackage": "@icedesign/skin" - }, - "scripts": { - "lint": "eslint . --ext '.js,.jsx' --fix", - "prepublish": "npm run lint" } } diff --git a/blocks/ChartStock/.editorconfig b/blocks/ChartStock/.editorconfig deleted file mode 100644 index 22ef5ace54..0000000000 --- a/blocks/ChartStock/.editorconfig +++ /dev/null @@ -1,16 +0,0 @@ -# http://editorconfig.org -root = true - -[*] -indent_style = space -indent_size = 2 -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -[*.md] -trim_trailing_whitespace = false - -[makefile] -indent_style = tab -indent_size = 4 diff --git a/blocks/ChartStock/.eslintignore b/blocks/ChartStock/.eslintignore deleted file mode 100644 index 3b21308fc7..0000000000 --- a/blocks/ChartStock/.eslintignore +++ /dev/null @@ -1,12 +0,0 @@ -# 忽略目录 -build/ -tests/ -demo/ -lib/ - -# node 覆盖率文件 -coverage/ - -# 忽略文件 -**/*-min.js -**/*.min.js \ No newline at end of file diff --git a/blocks/ChartStock/.eslintrc b/blocks/ChartStock/.eslintrc deleted file mode 100644 index 7a4e5bac48..0000000000 --- a/blocks/ChartStock/.eslintrc +++ /dev/null @@ -1,62 +0,0 @@ -{ - "root": true, - "parser": "babel-eslint", - "extends": "eslint-config-airbnb", - "parserOptions": { - "ecmaVersion": 6, - "ecmaFeatures": { - "jsx": true, - "experimentalObjectRestSpread": true - } - }, - "env": { - "browser": true - }, - "plugins": [ - "react", - "babel" - ], - "rules": { - "react/forbid-prop-types": 0, - "jsx-a11y/label-has-for": 0, - "jsx-a11y/no-static-element-interactions": 0, - "jsx-a11y/anchor-has-content": 0, - "jsx-a11y/click-events-have-key-events": 0, - "jsx-a11y/anchor-is-valid": 0, - "react/no-array-index-key": 0, - "func-names": 0, - "arrow-body-style": 0, - "no-use-before-define": 0, - "react/sort-comp": 0, - "react/prop-types": 0, - "react/jsx-first-prop-new-line": 0, - "react/jsx-filename-extension": [ - 1, - { - "extensions": [ - ".js", - ".jsx" - ] - } - ], - "import/extensions": 0, - "import/no-unresolved": 0, - "import/no-extraneous-dependencies": 0, - "prefer-destructuring": 0, - "no-param-reassign": 0, - "no-return-assign": 0, - "max-len": 0, - "consistent-return": 0, - "no-redeclare": 0, - "react/require-extension": 0, - "react/no-danger": 0, - "comma-dangle": [ - "error", - "always-multiline" - ], - "function-paren-newline": 0, - "object-curly-newline": 0, - "no-restricted-globals": 0, - "react/prefer-stateless-function": 0 - } -} diff --git a/blocks/ChartStock/.gitignore b/blocks/ChartStock/.gitignore deleted file mode 100644 index 5945feea3c..0000000000 --- a/blocks/ChartStock/.gitignore +++ /dev/null @@ -1,14 +0,0 @@ - - *.swp - *.dia~ - .idea/ - .DS_Store - - npm-debug.log - yarn-error.log - node_modules/ - tmp/ - - # happypack 缓存 - .happypack - \ No newline at end of file diff --git a/blocks/ChartStock/package.json b/blocks/ChartStock/package.json index bb6c440422..434ede55ee 100644 --- a/blocks/ChartStock/package.json +++ b/blocks/ChartStock/package.json @@ -30,14 +30,8 @@ "@icedesign/card": "^0.1.0" }, "devDependencies": { - "babel-eslint": "^8.0.3", - "eslint": "^4.13.1", - "eslint-plugin-babel": "^4.1.1", "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "eslint-plugin-import": "^2.8.0", - "eslint-config-airbnb": "^16.1.0", - "eslint-plugin-jsx-a11y": "^6.0.3", "@icedesign/skin": "^0.1.2" }, "blockConfig": { @@ -49,9 +43,5 @@ "sketchURL": "", "icelandURL": "", "themePackage": "@icedesign/skin" - }, - "scripts": { - "lint": "eslint . --ext '.js,.jsx' --fix", - "prepublish": "npm run lint" } } diff --git a/blocks/ChartTypeLine/.editorconfig b/blocks/ChartTypeLine/.editorconfig deleted file mode 100644 index 22ef5ace54..0000000000 --- a/blocks/ChartTypeLine/.editorconfig +++ /dev/null @@ -1,16 +0,0 @@ -# http://editorconfig.org -root = true - -[*] -indent_style = space -indent_size = 2 -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -[*.md] -trim_trailing_whitespace = false - -[makefile] -indent_style = tab -indent_size = 4 diff --git a/blocks/ChartTypeLine/.eslintignore b/blocks/ChartTypeLine/.eslintignore deleted file mode 100644 index 3b21308fc7..0000000000 --- a/blocks/ChartTypeLine/.eslintignore +++ /dev/null @@ -1,12 +0,0 @@ -# 忽略目录 -build/ -tests/ -demo/ -lib/ - -# node 覆盖率文件 -coverage/ - -# 忽略文件 -**/*-min.js -**/*.min.js \ No newline at end of file diff --git a/blocks/ChartTypeLine/.eslintrc b/blocks/ChartTypeLine/.eslintrc deleted file mode 100644 index 7a4e5bac48..0000000000 --- a/blocks/ChartTypeLine/.eslintrc +++ /dev/null @@ -1,62 +0,0 @@ -{ - "root": true, - "parser": "babel-eslint", - "extends": "eslint-config-airbnb", - "parserOptions": { - "ecmaVersion": 6, - "ecmaFeatures": { - "jsx": true, - "experimentalObjectRestSpread": true - } - }, - "env": { - "browser": true - }, - "plugins": [ - "react", - "babel" - ], - "rules": { - "react/forbid-prop-types": 0, - "jsx-a11y/label-has-for": 0, - "jsx-a11y/no-static-element-interactions": 0, - "jsx-a11y/anchor-has-content": 0, - "jsx-a11y/click-events-have-key-events": 0, - "jsx-a11y/anchor-is-valid": 0, - "react/no-array-index-key": 0, - "func-names": 0, - "arrow-body-style": 0, - "no-use-before-define": 0, - "react/sort-comp": 0, - "react/prop-types": 0, - "react/jsx-first-prop-new-line": 0, - "react/jsx-filename-extension": [ - 1, - { - "extensions": [ - ".js", - ".jsx" - ] - } - ], - "import/extensions": 0, - "import/no-unresolved": 0, - "import/no-extraneous-dependencies": 0, - "prefer-destructuring": 0, - "no-param-reassign": 0, - "no-return-assign": 0, - "max-len": 0, - "consistent-return": 0, - "no-redeclare": 0, - "react/require-extension": 0, - "react/no-danger": 0, - "comma-dangle": [ - "error", - "always-multiline" - ], - "function-paren-newline": 0, - "object-curly-newline": 0, - "no-restricted-globals": 0, - "react/prefer-stateless-function": 0 - } -} diff --git a/blocks/ChartTypeLine/.gitignore b/blocks/ChartTypeLine/.gitignore deleted file mode 100644 index 5945feea3c..0000000000 --- a/blocks/ChartTypeLine/.gitignore +++ /dev/null @@ -1,14 +0,0 @@ - - *.swp - *.dia~ - .idea/ - .DS_Store - - npm-debug.log - yarn-error.log - node_modules/ - tmp/ - - # happypack 缓存 - .happypack - \ No newline at end of file diff --git a/blocks/ChartTypeLine/package.json b/blocks/ChartTypeLine/package.json index a277ff9847..4e5c115761 100644 --- a/blocks/ChartTypeLine/package.json +++ b/blocks/ChartTypeLine/package.json @@ -29,14 +29,8 @@ "@icedesign/card": "^0.1.0" }, "devDependencies": { - "babel-eslint": "^8.0.3", - "eslint": "^4.13.1", - "eslint-plugin-babel": "^4.1.1", "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "eslint-plugin-import": "^2.8.0", - "eslint-config-airbnb": "^16.1.0", - "eslint-plugin-jsx-a11y": "^6.0.3", "@icedesign/skin": "^0.1.2" }, "blockConfig": { @@ -48,9 +42,5 @@ "sketchURL": "", "icelandURL": "", "themePackage": "@icedesign/skin" - }, - "scripts": { - "lint": "eslint . --ext '.js,.jsx' --fix", - "prepublish": "npm run lint" } } diff --git a/blocks/CollapseCard/.editorconfig b/blocks/CollapseCard/.editorconfig deleted file mode 100644 index 22ef5ace54..0000000000 --- a/blocks/CollapseCard/.editorconfig +++ /dev/null @@ -1,16 +0,0 @@ -# http://editorconfig.org -root = true - -[*] -indent_style = space -indent_size = 2 -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -[*.md] -trim_trailing_whitespace = false - -[makefile] -indent_style = tab -indent_size = 4 diff --git a/blocks/CollapseCard/.eslintignore b/blocks/CollapseCard/.eslintignore deleted file mode 100644 index 3b21308fc7..0000000000 --- a/blocks/CollapseCard/.eslintignore +++ /dev/null @@ -1,12 +0,0 @@ -# 忽略目录 -build/ -tests/ -demo/ -lib/ - -# node 覆盖率文件 -coverage/ - -# 忽略文件 -**/*-min.js -**/*.min.js \ No newline at end of file diff --git a/blocks/CollapseCard/.eslintrc b/blocks/CollapseCard/.eslintrc deleted file mode 100644 index 7a4e5bac48..0000000000 --- a/blocks/CollapseCard/.eslintrc +++ /dev/null @@ -1,62 +0,0 @@ -{ - "root": true, - "parser": "babel-eslint", - "extends": "eslint-config-airbnb", - "parserOptions": { - "ecmaVersion": 6, - "ecmaFeatures": { - "jsx": true, - "experimentalObjectRestSpread": true - } - }, - "env": { - "browser": true - }, - "plugins": [ - "react", - "babel" - ], - "rules": { - "react/forbid-prop-types": 0, - "jsx-a11y/label-has-for": 0, - "jsx-a11y/no-static-element-interactions": 0, - "jsx-a11y/anchor-has-content": 0, - "jsx-a11y/click-events-have-key-events": 0, - "jsx-a11y/anchor-is-valid": 0, - "react/no-array-index-key": 0, - "func-names": 0, - "arrow-body-style": 0, - "no-use-before-define": 0, - "react/sort-comp": 0, - "react/prop-types": 0, - "react/jsx-first-prop-new-line": 0, - "react/jsx-filename-extension": [ - 1, - { - "extensions": [ - ".js", - ".jsx" - ] - } - ], - "import/extensions": 0, - "import/no-unresolved": 0, - "import/no-extraneous-dependencies": 0, - "prefer-destructuring": 0, - "no-param-reassign": 0, - "no-return-assign": 0, - "max-len": 0, - "consistent-return": 0, - "no-redeclare": 0, - "react/require-extension": 0, - "react/no-danger": 0, - "comma-dangle": [ - "error", - "always-multiline" - ], - "function-paren-newline": 0, - "object-curly-newline": 0, - "no-restricted-globals": 0, - "react/prefer-stateless-function": 0 - } -} diff --git a/blocks/CollapseCard/.gitignore b/blocks/CollapseCard/.gitignore deleted file mode 100644 index cc45d6fb3c..0000000000 --- a/blocks/CollapseCard/.gitignore +++ /dev/null @@ -1,13 +0,0 @@ - -*.swp -*.dia~ -.idea/ -.DS_Store - -npm-debug.log -yarn-error.log -node_modules/ -tmp/ - -# happypack 缓存 -.happypack diff --git a/blocks/CollapseCard/package.json b/blocks/CollapseCard/package.json index 090fcefd15..b934f0d0b7 100644 --- a/blocks/CollapseCard/package.json +++ b/blocks/CollapseCard/package.json @@ -28,14 +28,8 @@ "@icedesign/card": "^0.1.0" }, "devDependencies": { - "babel-eslint": "^8.0.3", - "eslint": "^4.13.1", - "eslint-plugin-babel": "^4.1.1", "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "eslint-plugin-import": "^2.8.0", - "eslint-config-airbnb": "^16.1.0", - "eslint-plugin-jsx-a11y": "^6.0.3", "@icedesign/skin": "^0.1.2" }, "blockConfig": { @@ -47,6 +41,5 @@ "sketchURL": "", "icelandURL": "", "themePackage": "@icedesign/skin" - }, - "scripts": {} + } } diff --git a/blocks/ComplexDialog/.editorconfig b/blocks/ComplexDialog/.editorconfig deleted file mode 100644 index 22ef5ace54..0000000000 --- a/blocks/ComplexDialog/.editorconfig +++ /dev/null @@ -1,16 +0,0 @@ -# http://editorconfig.org -root = true - -[*] -indent_style = space -indent_size = 2 -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -[*.md] -trim_trailing_whitespace = false - -[makefile] -indent_style = tab -indent_size = 4 diff --git a/blocks/ComplexDialog/.eslintignore b/blocks/ComplexDialog/.eslintignore deleted file mode 100644 index 3b21308fc7..0000000000 --- a/blocks/ComplexDialog/.eslintignore +++ /dev/null @@ -1,12 +0,0 @@ -# 忽略目录 -build/ -tests/ -demo/ -lib/ - -# node 覆盖率文件 -coverage/ - -# 忽略文件 -**/*-min.js -**/*.min.js \ No newline at end of file diff --git a/blocks/ComplexDialog/.eslintrc b/blocks/ComplexDialog/.eslintrc deleted file mode 100644 index 7a4e5bac48..0000000000 --- a/blocks/ComplexDialog/.eslintrc +++ /dev/null @@ -1,62 +0,0 @@ -{ - "root": true, - "parser": "babel-eslint", - "extends": "eslint-config-airbnb", - "parserOptions": { - "ecmaVersion": 6, - "ecmaFeatures": { - "jsx": true, - "experimentalObjectRestSpread": true - } - }, - "env": { - "browser": true - }, - "plugins": [ - "react", - "babel" - ], - "rules": { - "react/forbid-prop-types": 0, - "jsx-a11y/label-has-for": 0, - "jsx-a11y/no-static-element-interactions": 0, - "jsx-a11y/anchor-has-content": 0, - "jsx-a11y/click-events-have-key-events": 0, - "jsx-a11y/anchor-is-valid": 0, - "react/no-array-index-key": 0, - "func-names": 0, - "arrow-body-style": 0, - "no-use-before-define": 0, - "react/sort-comp": 0, - "react/prop-types": 0, - "react/jsx-first-prop-new-line": 0, - "react/jsx-filename-extension": [ - 1, - { - "extensions": [ - ".js", - ".jsx" - ] - } - ], - "import/extensions": 0, - "import/no-unresolved": 0, - "import/no-extraneous-dependencies": 0, - "prefer-destructuring": 0, - "no-param-reassign": 0, - "no-return-assign": 0, - "max-len": 0, - "consistent-return": 0, - "no-redeclare": 0, - "react/require-extension": 0, - "react/no-danger": 0, - "comma-dangle": [ - "error", - "always-multiline" - ], - "function-paren-newline": 0, - "object-curly-newline": 0, - "no-restricted-globals": 0, - "react/prefer-stateless-function": 0 - } -} diff --git a/blocks/ComplexDialog/.gitignore b/blocks/ComplexDialog/.gitignore deleted file mode 100644 index cc45d6fb3c..0000000000 --- a/blocks/ComplexDialog/.gitignore +++ /dev/null @@ -1,13 +0,0 @@ - -*.swp -*.dia~ -.idea/ -.DS_Store - -npm-debug.log -yarn-error.log -node_modules/ -tmp/ - -# happypack 缓存 -.happypack diff --git a/blocks/ComplexDialog/package.json b/blocks/ComplexDialog/package.json index 94c6fb8a88..34c4c51f4d 100644 --- a/blocks/ComplexDialog/package.json +++ b/blocks/ComplexDialog/package.json @@ -27,14 +27,8 @@ "@icedesign/card": "^0.1.0" }, "devDependencies": { - "babel-eslint": "^8.0.3", - "eslint": "^4.13.1", - "eslint-plugin-babel": "^4.1.1", "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "eslint-plugin-import": "^2.8.0", - "eslint-config-airbnb": "^16.1.0", - "eslint-plugin-jsx-a11y": "^6.0.3", "@icedesign/skin": "^0.1.2" }, "blockConfig": { @@ -46,6 +40,5 @@ "sketchURL": "", "icelandURL": "", "themePackage": "@icedesign/skin" - }, - "scripts": {} + } } diff --git a/blocks/ComplexFilter/.editorconfig b/blocks/ComplexFilter/.editorconfig deleted file mode 100644 index 22ef5ace54..0000000000 --- a/blocks/ComplexFilter/.editorconfig +++ /dev/null @@ -1,16 +0,0 @@ -# http://editorconfig.org -root = true - -[*] -indent_style = space -indent_size = 2 -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -[*.md] -trim_trailing_whitespace = false - -[makefile] -indent_style = tab -indent_size = 4 diff --git a/blocks/ComplexFilter/.eslintignore b/blocks/ComplexFilter/.eslintignore deleted file mode 100644 index 3b21308fc7..0000000000 --- a/blocks/ComplexFilter/.eslintignore +++ /dev/null @@ -1,12 +0,0 @@ -# 忽略目录 -build/ -tests/ -demo/ -lib/ - -# node 覆盖率文件 -coverage/ - -# 忽略文件 -**/*-min.js -**/*.min.js \ No newline at end of file diff --git a/blocks/ComplexFilter/.eslintrc b/blocks/ComplexFilter/.eslintrc deleted file mode 100644 index 7a4e5bac48..0000000000 --- a/blocks/ComplexFilter/.eslintrc +++ /dev/null @@ -1,62 +0,0 @@ -{ - "root": true, - "parser": "babel-eslint", - "extends": "eslint-config-airbnb", - "parserOptions": { - "ecmaVersion": 6, - "ecmaFeatures": { - "jsx": true, - "experimentalObjectRestSpread": true - } - }, - "env": { - "browser": true - }, - "plugins": [ - "react", - "babel" - ], - "rules": { - "react/forbid-prop-types": 0, - "jsx-a11y/label-has-for": 0, - "jsx-a11y/no-static-element-interactions": 0, - "jsx-a11y/anchor-has-content": 0, - "jsx-a11y/click-events-have-key-events": 0, - "jsx-a11y/anchor-is-valid": 0, - "react/no-array-index-key": 0, - "func-names": 0, - "arrow-body-style": 0, - "no-use-before-define": 0, - "react/sort-comp": 0, - "react/prop-types": 0, - "react/jsx-first-prop-new-line": 0, - "react/jsx-filename-extension": [ - 1, - { - "extensions": [ - ".js", - ".jsx" - ] - } - ], - "import/extensions": 0, - "import/no-unresolved": 0, - "import/no-extraneous-dependencies": 0, - "prefer-destructuring": 0, - "no-param-reassign": 0, - "no-return-assign": 0, - "max-len": 0, - "consistent-return": 0, - "no-redeclare": 0, - "react/require-extension": 0, - "react/no-danger": 0, - "comma-dangle": [ - "error", - "always-multiline" - ], - "function-paren-newline": 0, - "object-curly-newline": 0, - "no-restricted-globals": 0, - "react/prefer-stateless-function": 0 - } -} diff --git a/blocks/ComplexFilter/.gitignore b/blocks/ComplexFilter/.gitignore deleted file mode 100644 index cc45d6fb3c..0000000000 --- a/blocks/ComplexFilter/.gitignore +++ /dev/null @@ -1,13 +0,0 @@ - -*.swp -*.dia~ -.idea/ -.DS_Store - -npm-debug.log -yarn-error.log -node_modules/ -tmp/ - -# happypack 缓存 -.happypack diff --git a/blocks/ComplexFilter/package.json b/blocks/ComplexFilter/package.json index f73dd1a760..0d0a47c015 100644 --- a/blocks/ComplexFilter/package.json +++ b/blocks/ComplexFilter/package.json @@ -27,14 +27,8 @@ "@icedesign/card": "^0.1.0" }, "devDependencies": { - "babel-eslint": "^8.0.3", - "eslint": "^4.13.1", - "eslint-plugin-babel": "^4.1.1", "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "eslint-plugin-import": "^2.8.0", - "eslint-config-airbnb": "^16.1.0", - "eslint-plugin-jsx-a11y": "^6.0.3", "@icedesign/skin": "^0.1.2" }, "blockConfig": { @@ -46,6 +40,5 @@ "sketchURL": "", "icelandURL": "", "themePackage": "@icedesign/skin" - }, - "scripts": {} + } } diff --git a/blocks/ComplexProgressTable/.editorconfig b/blocks/ComplexProgressTable/.editorconfig deleted file mode 100644 index 22ef5ace54..0000000000 --- a/blocks/ComplexProgressTable/.editorconfig +++ /dev/null @@ -1,16 +0,0 @@ -# http://editorconfig.org -root = true - -[*] -indent_style = space -indent_size = 2 -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -[*.md] -trim_trailing_whitespace = false - -[makefile] -indent_style = tab -indent_size = 4 diff --git a/blocks/ComplexProgressTable/.eslintignore b/blocks/ComplexProgressTable/.eslintignore deleted file mode 100644 index 3b21308fc7..0000000000 --- a/blocks/ComplexProgressTable/.eslintignore +++ /dev/null @@ -1,12 +0,0 @@ -# 忽略目录 -build/ -tests/ -demo/ -lib/ - -# node 覆盖率文件 -coverage/ - -# 忽略文件 -**/*-min.js -**/*.min.js \ No newline at end of file diff --git a/blocks/ComplexProgressTable/.eslintrc b/blocks/ComplexProgressTable/.eslintrc deleted file mode 100644 index 7a4e5bac48..0000000000 --- a/blocks/ComplexProgressTable/.eslintrc +++ /dev/null @@ -1,62 +0,0 @@ -{ - "root": true, - "parser": "babel-eslint", - "extends": "eslint-config-airbnb", - "parserOptions": { - "ecmaVersion": 6, - "ecmaFeatures": { - "jsx": true, - "experimentalObjectRestSpread": true - } - }, - "env": { - "browser": true - }, - "plugins": [ - "react", - "babel" - ], - "rules": { - "react/forbid-prop-types": 0, - "jsx-a11y/label-has-for": 0, - "jsx-a11y/no-static-element-interactions": 0, - "jsx-a11y/anchor-has-content": 0, - "jsx-a11y/click-events-have-key-events": 0, - "jsx-a11y/anchor-is-valid": 0, - "react/no-array-index-key": 0, - "func-names": 0, - "arrow-body-style": 0, - "no-use-before-define": 0, - "react/sort-comp": 0, - "react/prop-types": 0, - "react/jsx-first-prop-new-line": 0, - "react/jsx-filename-extension": [ - 1, - { - "extensions": [ - ".js", - ".jsx" - ] - } - ], - "import/extensions": 0, - "import/no-unresolved": 0, - "import/no-extraneous-dependencies": 0, - "prefer-destructuring": 0, - "no-param-reassign": 0, - "no-return-assign": 0, - "max-len": 0, - "consistent-return": 0, - "no-redeclare": 0, - "react/require-extension": 0, - "react/no-danger": 0, - "comma-dangle": [ - "error", - "always-multiline" - ], - "function-paren-newline": 0, - "object-curly-newline": 0, - "no-restricted-globals": 0, - "react/prefer-stateless-function": 0 - } -} diff --git a/blocks/ComplexProgressTable/.gitignore b/blocks/ComplexProgressTable/.gitignore deleted file mode 100644 index cc45d6fb3c..0000000000 --- a/blocks/ComplexProgressTable/.gitignore +++ /dev/null @@ -1,13 +0,0 @@ - -*.swp -*.dia~ -.idea/ -.DS_Store - -npm-debug.log -yarn-error.log -node_modules/ -tmp/ - -# happypack 缓存 -.happypack diff --git a/blocks/ComplexProgressTable/package.json b/blocks/ComplexProgressTable/package.json index 48e2d50e65..56f36e089f 100644 --- a/blocks/ComplexProgressTable/package.json +++ b/blocks/ComplexProgressTable/package.json @@ -8,7 +8,6 @@ "lib/", "mock/" ], - "scripts": {}, "author": { "name": "ICE Team", "email": "ice-admin@alibaba-inc.com" @@ -32,13 +31,7 @@ }, "devDependencies": { "@icedesign/skin": "^0.1.2", - "babel-eslint": "^8.0.3", "babel-plugin-transform-decorators-legacy": "^1.3.4", - "eslint": "^4.13.1", - "eslint-config-airbnb": "^16.1.0", - "eslint-plugin-babel": "^4.1.1", - "eslint-plugin-import": "^2.8.0", - "eslint-plugin-jsx-a11y": "^6.0.3", "eslint-plugin-react": "^7.5.1", "react": "15.x", "react-copy-to-clipboard": "^4.2.3", diff --git a/blocks/ComplexTabTable/.editorconfig b/blocks/ComplexTabTable/.editorconfig deleted file mode 100644 index 22ef5ace54..0000000000 --- a/blocks/ComplexTabTable/.editorconfig +++ /dev/null @@ -1,16 +0,0 @@ -# http://editorconfig.org -root = true - -[*] -indent_style = space -indent_size = 2 -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -[*.md] -trim_trailing_whitespace = false - -[makefile] -indent_style = tab -indent_size = 4 diff --git a/blocks/ComplexTabTable/.eslintignore b/blocks/ComplexTabTable/.eslintignore deleted file mode 100644 index 3b21308fc7..0000000000 --- a/blocks/ComplexTabTable/.eslintignore +++ /dev/null @@ -1,12 +0,0 @@ -# 忽略目录 -build/ -tests/ -demo/ -lib/ - -# node 覆盖率文件 -coverage/ - -# 忽略文件 -**/*-min.js -**/*.min.js \ No newline at end of file diff --git a/blocks/ComplexTabTable/.eslintrc b/blocks/ComplexTabTable/.eslintrc deleted file mode 100644 index 7a4e5bac48..0000000000 --- a/blocks/ComplexTabTable/.eslintrc +++ /dev/null @@ -1,62 +0,0 @@ -{ - "root": true, - "parser": "babel-eslint", - "extends": "eslint-config-airbnb", - "parserOptions": { - "ecmaVersion": 6, - "ecmaFeatures": { - "jsx": true, - "experimentalObjectRestSpread": true - } - }, - "env": { - "browser": true - }, - "plugins": [ - "react", - "babel" - ], - "rules": { - "react/forbid-prop-types": 0, - "jsx-a11y/label-has-for": 0, - "jsx-a11y/no-static-element-interactions": 0, - "jsx-a11y/anchor-has-content": 0, - "jsx-a11y/click-events-have-key-events": 0, - "jsx-a11y/anchor-is-valid": 0, - "react/no-array-index-key": 0, - "func-names": 0, - "arrow-body-style": 0, - "no-use-before-define": 0, - "react/sort-comp": 0, - "react/prop-types": 0, - "react/jsx-first-prop-new-line": 0, - "react/jsx-filename-extension": [ - 1, - { - "extensions": [ - ".js", - ".jsx" - ] - } - ], - "import/extensions": 0, - "import/no-unresolved": 0, - "import/no-extraneous-dependencies": 0, - "prefer-destructuring": 0, - "no-param-reassign": 0, - "no-return-assign": 0, - "max-len": 0, - "consistent-return": 0, - "no-redeclare": 0, - "react/require-extension": 0, - "react/no-danger": 0, - "comma-dangle": [ - "error", - "always-multiline" - ], - "function-paren-newline": 0, - "object-curly-newline": 0, - "no-restricted-globals": 0, - "react/prefer-stateless-function": 0 - } -} diff --git a/blocks/ComplexTabTable/.gitignore b/blocks/ComplexTabTable/.gitignore deleted file mode 100644 index cc45d6fb3c..0000000000 --- a/blocks/ComplexTabTable/.gitignore +++ /dev/null @@ -1,13 +0,0 @@ - -*.swp -*.dia~ -.idea/ -.DS_Store - -npm-debug.log -yarn-error.log -node_modules/ -tmp/ - -# happypack 缓存 -.happypack diff --git a/blocks/ComplexTabTable/package.json b/blocks/ComplexTabTable/package.json index ee867ff0f5..2a2d8e5043 100644 --- a/blocks/ComplexTabTable/package.json +++ b/blocks/ComplexTabTable/package.json @@ -31,14 +31,8 @@ "prop-types": "^15.5.8" }, "devDependencies": { - "babel-eslint": "^8.0.3", - "eslint": "^4.13.1", - "eslint-plugin-babel": "^4.1.1", "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "eslint-plugin-import": "^2.8.0", - "eslint-config-airbnb": "^16.1.0", - "eslint-plugin-jsx-a11y": "^6.0.3", "@icedesign/skin": "^0.1.2" }, "blockConfig": { @@ -50,6 +44,5 @@ "sketchURL": "", "icelandURL": "", "themePackage": "@icedesign/skin" - }, - "scripts": {} + } } diff --git a/blocks/CompositeFilter/.editorconfig b/blocks/CompositeFilter/.editorconfig deleted file mode 100644 index 22ef5ace54..0000000000 --- a/blocks/CompositeFilter/.editorconfig +++ /dev/null @@ -1,16 +0,0 @@ -# http://editorconfig.org -root = true - -[*] -indent_style = space -indent_size = 2 -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -[*.md] -trim_trailing_whitespace = false - -[makefile] -indent_style = tab -indent_size = 4 diff --git a/blocks/CompositeFilter/.eslintignore b/blocks/CompositeFilter/.eslintignore deleted file mode 100644 index 3b21308fc7..0000000000 --- a/blocks/CompositeFilter/.eslintignore +++ /dev/null @@ -1,12 +0,0 @@ -# 忽略目录 -build/ -tests/ -demo/ -lib/ - -# node 覆盖率文件 -coverage/ - -# 忽略文件 -**/*-min.js -**/*.min.js \ No newline at end of file diff --git a/blocks/CompositeFilter/.eslintrc b/blocks/CompositeFilter/.eslintrc deleted file mode 100644 index 7a4e5bac48..0000000000 --- a/blocks/CompositeFilter/.eslintrc +++ /dev/null @@ -1,62 +0,0 @@ -{ - "root": true, - "parser": "babel-eslint", - "extends": "eslint-config-airbnb", - "parserOptions": { - "ecmaVersion": 6, - "ecmaFeatures": { - "jsx": true, - "experimentalObjectRestSpread": true - } - }, - "env": { - "browser": true - }, - "plugins": [ - "react", - "babel" - ], - "rules": { - "react/forbid-prop-types": 0, - "jsx-a11y/label-has-for": 0, - "jsx-a11y/no-static-element-interactions": 0, - "jsx-a11y/anchor-has-content": 0, - "jsx-a11y/click-events-have-key-events": 0, - "jsx-a11y/anchor-is-valid": 0, - "react/no-array-index-key": 0, - "func-names": 0, - "arrow-body-style": 0, - "no-use-before-define": 0, - "react/sort-comp": 0, - "react/prop-types": 0, - "react/jsx-first-prop-new-line": 0, - "react/jsx-filename-extension": [ - 1, - { - "extensions": [ - ".js", - ".jsx" - ] - } - ], - "import/extensions": 0, - "import/no-unresolved": 0, - "import/no-extraneous-dependencies": 0, - "prefer-destructuring": 0, - "no-param-reassign": 0, - "no-return-assign": 0, - "max-len": 0, - "consistent-return": 0, - "no-redeclare": 0, - "react/require-extension": 0, - "react/no-danger": 0, - "comma-dangle": [ - "error", - "always-multiline" - ], - "function-paren-newline": 0, - "object-curly-newline": 0, - "no-restricted-globals": 0, - "react/prefer-stateless-function": 0 - } -} diff --git a/blocks/CompositeFilter/.gitignore b/blocks/CompositeFilter/.gitignore deleted file mode 100644 index cc45d6fb3c..0000000000 --- a/blocks/CompositeFilter/.gitignore +++ /dev/null @@ -1,13 +0,0 @@ - -*.swp -*.dia~ -.idea/ -.DS_Store - -npm-debug.log -yarn-error.log -node_modules/ -tmp/ - -# happypack 缓存 -.happypack diff --git a/blocks/CompositeFilter/package.json b/blocks/CompositeFilter/package.json index 29e3b8cad2..d180f4435b 100644 --- a/blocks/CompositeFilter/package.json +++ b/blocks/CompositeFilter/package.json @@ -28,14 +28,8 @@ "@icedesign/card": "^0.1.0" }, "devDependencies": { - "babel-eslint": "^8.0.3", - "eslint": "^4.13.1", - "eslint-plugin-babel": "^4.1.1", "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "eslint-plugin-import": "^2.8.0", - "eslint-config-airbnb": "^16.1.0", - "eslint-plugin-jsx-a11y": "^6.0.3", "@icedesign/skin": "^0.1.2" }, "blockConfig": { @@ -47,6 +41,5 @@ "sketchURL": "", "icelandURL": "", "themePackage": "@icedesign/skin" - }, - "scripts": {} + } } diff --git a/blocks/ConfirmDialog/.editorconfig b/blocks/ConfirmDialog/.editorconfig deleted file mode 100644 index 22ef5ace54..0000000000 --- a/blocks/ConfirmDialog/.editorconfig +++ /dev/null @@ -1,16 +0,0 @@ -# http://editorconfig.org -root = true - -[*] -indent_style = space -indent_size = 2 -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -[*.md] -trim_trailing_whitespace = false - -[makefile] -indent_style = tab -indent_size = 4 diff --git a/blocks/ConfirmDialog/.eslintignore b/blocks/ConfirmDialog/.eslintignore deleted file mode 100644 index 3b21308fc7..0000000000 --- a/blocks/ConfirmDialog/.eslintignore +++ /dev/null @@ -1,12 +0,0 @@ -# 忽略目录 -build/ -tests/ -demo/ -lib/ - -# node 覆盖率文件 -coverage/ - -# 忽略文件 -**/*-min.js -**/*.min.js \ No newline at end of file diff --git a/blocks/ConfirmDialog/.eslintrc b/blocks/ConfirmDialog/.eslintrc deleted file mode 100644 index 7a4e5bac48..0000000000 --- a/blocks/ConfirmDialog/.eslintrc +++ /dev/null @@ -1,62 +0,0 @@ -{ - "root": true, - "parser": "babel-eslint", - "extends": "eslint-config-airbnb", - "parserOptions": { - "ecmaVersion": 6, - "ecmaFeatures": { - "jsx": true, - "experimentalObjectRestSpread": true - } - }, - "env": { - "browser": true - }, - "plugins": [ - "react", - "babel" - ], - "rules": { - "react/forbid-prop-types": 0, - "jsx-a11y/label-has-for": 0, - "jsx-a11y/no-static-element-interactions": 0, - "jsx-a11y/anchor-has-content": 0, - "jsx-a11y/click-events-have-key-events": 0, - "jsx-a11y/anchor-is-valid": 0, - "react/no-array-index-key": 0, - "func-names": 0, - "arrow-body-style": 0, - "no-use-before-define": 0, - "react/sort-comp": 0, - "react/prop-types": 0, - "react/jsx-first-prop-new-line": 0, - "react/jsx-filename-extension": [ - 1, - { - "extensions": [ - ".js", - ".jsx" - ] - } - ], - "import/extensions": 0, - "import/no-unresolved": 0, - "import/no-extraneous-dependencies": 0, - "prefer-destructuring": 0, - "no-param-reassign": 0, - "no-return-assign": 0, - "max-len": 0, - "consistent-return": 0, - "no-redeclare": 0, - "react/require-extension": 0, - "react/no-danger": 0, - "comma-dangle": [ - "error", - "always-multiline" - ], - "function-paren-newline": 0, - "object-curly-newline": 0, - "no-restricted-globals": 0, - "react/prefer-stateless-function": 0 - } -} diff --git a/blocks/ConfirmDialog/.gitignore b/blocks/ConfirmDialog/.gitignore deleted file mode 100644 index cc45d6fb3c..0000000000 --- a/blocks/ConfirmDialog/.gitignore +++ /dev/null @@ -1,13 +0,0 @@ - -*.swp -*.dia~ -.idea/ -.DS_Store - -npm-debug.log -yarn-error.log -node_modules/ -tmp/ - -# happypack 缓存 -.happypack diff --git a/blocks/ConfirmDialog/package.json b/blocks/ConfirmDialog/package.json index 45cadfaf10..75ea6552ba 100644 --- a/blocks/ConfirmDialog/package.json +++ b/blocks/ConfirmDialog/package.json @@ -27,14 +27,8 @@ "@icedesign/base": "^0.1.0" }, "devDependencies": { - "babel-eslint": "^8.0.3", - "eslint": "^4.13.1", - "eslint-plugin-babel": "^4.1.1", "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "eslint-plugin-import": "^2.8.0", - "eslint-config-airbnb": "^16.1.0", - "eslint-plugin-jsx-a11y": "^6.0.3", "@icedesign/skin": "^0.1.2" }, "blockConfig": { @@ -46,6 +40,5 @@ "sketchURL": "", "icelandURL": "", "themePackage": "@icedesign/skin" - }, - "scripts": {} + } } diff --git a/blocks/DataDisplay/.editorconfig b/blocks/DataDisplay/.editorconfig deleted file mode 100644 index 22ef5ace54..0000000000 --- a/blocks/DataDisplay/.editorconfig +++ /dev/null @@ -1,16 +0,0 @@ -# http://editorconfig.org -root = true - -[*] -indent_style = space -indent_size = 2 -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -[*.md] -trim_trailing_whitespace = false - -[makefile] -indent_style = tab -indent_size = 4 diff --git a/blocks/DataDisplay/.eslintignore b/blocks/DataDisplay/.eslintignore deleted file mode 100644 index 3b21308fc7..0000000000 --- a/blocks/DataDisplay/.eslintignore +++ /dev/null @@ -1,12 +0,0 @@ -# 忽略目录 -build/ -tests/ -demo/ -lib/ - -# node 覆盖率文件 -coverage/ - -# 忽略文件 -**/*-min.js -**/*.min.js \ No newline at end of file diff --git a/blocks/DataDisplay/.eslintrc b/blocks/DataDisplay/.eslintrc deleted file mode 100644 index 7a4e5bac48..0000000000 --- a/blocks/DataDisplay/.eslintrc +++ /dev/null @@ -1,62 +0,0 @@ -{ - "root": true, - "parser": "babel-eslint", - "extends": "eslint-config-airbnb", - "parserOptions": { - "ecmaVersion": 6, - "ecmaFeatures": { - "jsx": true, - "experimentalObjectRestSpread": true - } - }, - "env": { - "browser": true - }, - "plugins": [ - "react", - "babel" - ], - "rules": { - "react/forbid-prop-types": 0, - "jsx-a11y/label-has-for": 0, - "jsx-a11y/no-static-element-interactions": 0, - "jsx-a11y/anchor-has-content": 0, - "jsx-a11y/click-events-have-key-events": 0, - "jsx-a11y/anchor-is-valid": 0, - "react/no-array-index-key": 0, - "func-names": 0, - "arrow-body-style": 0, - "no-use-before-define": 0, - "react/sort-comp": 0, - "react/prop-types": 0, - "react/jsx-first-prop-new-line": 0, - "react/jsx-filename-extension": [ - 1, - { - "extensions": [ - ".js", - ".jsx" - ] - } - ], - "import/extensions": 0, - "import/no-unresolved": 0, - "import/no-extraneous-dependencies": 0, - "prefer-destructuring": 0, - "no-param-reassign": 0, - "no-return-assign": 0, - "max-len": 0, - "consistent-return": 0, - "no-redeclare": 0, - "react/require-extension": 0, - "react/no-danger": 0, - "comma-dangle": [ - "error", - "always-multiline" - ], - "function-paren-newline": 0, - "object-curly-newline": 0, - "no-restricted-globals": 0, - "react/prefer-stateless-function": 0 - } -} diff --git a/blocks/DataDisplay/.gitignore b/blocks/DataDisplay/.gitignore deleted file mode 100644 index cc45d6fb3c..0000000000 --- a/blocks/DataDisplay/.gitignore +++ /dev/null @@ -1,13 +0,0 @@ - -*.swp -*.dia~ -.idea/ -.DS_Store - -npm-debug.log -yarn-error.log -node_modules/ -tmp/ - -# happypack 缓存 -.happypack diff --git a/blocks/DataDisplay/package.json b/blocks/DataDisplay/package.json index 5f7ec43e36..00da446a46 100644 --- a/blocks/DataDisplay/package.json +++ b/blocks/DataDisplay/package.json @@ -8,7 +8,6 @@ "lib/", "mock/" ], - "scripts": {}, "author": { "name": "ICE Team", "email": "ice-admin@alibaba-inc.com" @@ -29,16 +28,10 @@ }, "devDependencies": { "@icedesign/skin": "^0.1.2", - "babel-eslint": "^8.0.3", "eslint-plugin-react": "^7.5.1", "react": "15.x", "react-copy-to-clipboard": "^4.2.3", "react-dom": "15.x", - "eslint": "^4.13.1", - "eslint-plugin-babel": "^4.1.1", - "eslint-plugin-import": "^2.8.0", - "eslint-config-airbnb": "^16.1.0", - "eslint-plugin-jsx-a11y": "^6.0.3", "@icedesign/demo-layout": "^0.1.0" }, "blockConfig": { diff --git a/blocks/DetailTable/.editorconfig b/blocks/DetailTable/.editorconfig deleted file mode 100644 index 22ef5ace54..0000000000 --- a/blocks/DetailTable/.editorconfig +++ /dev/null @@ -1,16 +0,0 @@ -# http://editorconfig.org -root = true - -[*] -indent_style = space -indent_size = 2 -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -[*.md] -trim_trailing_whitespace = false - -[makefile] -indent_style = tab -indent_size = 4 diff --git a/blocks/DetailTable/.eslintignore b/blocks/DetailTable/.eslintignore deleted file mode 100644 index 3b21308fc7..0000000000 --- a/blocks/DetailTable/.eslintignore +++ /dev/null @@ -1,12 +0,0 @@ -# 忽略目录 -build/ -tests/ -demo/ -lib/ - -# node 覆盖率文件 -coverage/ - -# 忽略文件 -**/*-min.js -**/*.min.js \ No newline at end of file diff --git a/blocks/DetailTable/.eslintrc b/blocks/DetailTable/.eslintrc deleted file mode 100644 index 7a4e5bac48..0000000000 --- a/blocks/DetailTable/.eslintrc +++ /dev/null @@ -1,62 +0,0 @@ -{ - "root": true, - "parser": "babel-eslint", - "extends": "eslint-config-airbnb", - "parserOptions": { - "ecmaVersion": 6, - "ecmaFeatures": { - "jsx": true, - "experimentalObjectRestSpread": true - } - }, - "env": { - "browser": true - }, - "plugins": [ - "react", - "babel" - ], - "rules": { - "react/forbid-prop-types": 0, - "jsx-a11y/label-has-for": 0, - "jsx-a11y/no-static-element-interactions": 0, - "jsx-a11y/anchor-has-content": 0, - "jsx-a11y/click-events-have-key-events": 0, - "jsx-a11y/anchor-is-valid": 0, - "react/no-array-index-key": 0, - "func-names": 0, - "arrow-body-style": 0, - "no-use-before-define": 0, - "react/sort-comp": 0, - "react/prop-types": 0, - "react/jsx-first-prop-new-line": 0, - "react/jsx-filename-extension": [ - 1, - { - "extensions": [ - ".js", - ".jsx" - ] - } - ], - "import/extensions": 0, - "import/no-unresolved": 0, - "import/no-extraneous-dependencies": 0, - "prefer-destructuring": 0, - "no-param-reassign": 0, - "no-return-assign": 0, - "max-len": 0, - "consistent-return": 0, - "no-redeclare": 0, - "react/require-extension": 0, - "react/no-danger": 0, - "comma-dangle": [ - "error", - "always-multiline" - ], - "function-paren-newline": 0, - "object-curly-newline": 0, - "no-restricted-globals": 0, - "react/prefer-stateless-function": 0 - } -} diff --git a/blocks/DetailTable/.gitignore b/blocks/DetailTable/.gitignore deleted file mode 100644 index cc45d6fb3c..0000000000 --- a/blocks/DetailTable/.gitignore +++ /dev/null @@ -1,13 +0,0 @@ - -*.swp -*.dia~ -.idea/ -.DS_Store - -npm-debug.log -yarn-error.log -node_modules/ -tmp/ - -# happypack 缓存 -.happypack diff --git a/blocks/DetailTable/package.json b/blocks/DetailTable/package.json index e15a208046..6c545b00d5 100644 --- a/blocks/DetailTable/package.json +++ b/blocks/DetailTable/package.json @@ -8,7 +8,6 @@ "lib/", "mock/" ], - "scripts": {}, "author": { "name": "ICE Team", "email": "ice-admin@alibaba-inc.com" @@ -29,16 +28,10 @@ }, "devDependencies": { "@icedesign/skin": "^0.1.2", - "babel-eslint": "^8.0.3", "eslint-plugin-react": "^7.5.1", "react": "15.x", "react-copy-to-clipboard": "^4.2.3", "react-dom": "15.x", - "eslint": "^4.13.1", - "eslint-plugin-babel": "^4.1.1", - "eslint-plugin-import": "^2.8.0", - "eslint-config-airbnb": "^16.1.0", - "eslint-plugin-jsx-a11y": "^6.0.3", "@icedesign/demo-layout": "^0.1.0" }, "blockConfig": { diff --git a/blocks/DisplayCard/.editorconfig b/blocks/DisplayCard/.editorconfig deleted file mode 100644 index 22ef5ace54..0000000000 --- a/blocks/DisplayCard/.editorconfig +++ /dev/null @@ -1,16 +0,0 @@ -# http://editorconfig.org -root = true - -[*] -indent_style = space -indent_size = 2 -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -[*.md] -trim_trailing_whitespace = false - -[makefile] -indent_style = tab -indent_size = 4 diff --git a/blocks/DisplayCard/.eslintignore b/blocks/DisplayCard/.eslintignore deleted file mode 100644 index 3b21308fc7..0000000000 --- a/blocks/DisplayCard/.eslintignore +++ /dev/null @@ -1,12 +0,0 @@ -# 忽略目录 -build/ -tests/ -demo/ -lib/ - -# node 覆盖率文件 -coverage/ - -# 忽略文件 -**/*-min.js -**/*.min.js \ No newline at end of file diff --git a/blocks/DisplayCard/.eslintrc b/blocks/DisplayCard/.eslintrc deleted file mode 100644 index 7a4e5bac48..0000000000 --- a/blocks/DisplayCard/.eslintrc +++ /dev/null @@ -1,62 +0,0 @@ -{ - "root": true, - "parser": "babel-eslint", - "extends": "eslint-config-airbnb", - "parserOptions": { - "ecmaVersion": 6, - "ecmaFeatures": { - "jsx": true, - "experimentalObjectRestSpread": true - } - }, - "env": { - "browser": true - }, - "plugins": [ - "react", - "babel" - ], - "rules": { - "react/forbid-prop-types": 0, - "jsx-a11y/label-has-for": 0, - "jsx-a11y/no-static-element-interactions": 0, - "jsx-a11y/anchor-has-content": 0, - "jsx-a11y/click-events-have-key-events": 0, - "jsx-a11y/anchor-is-valid": 0, - "react/no-array-index-key": 0, - "func-names": 0, - "arrow-body-style": 0, - "no-use-before-define": 0, - "react/sort-comp": 0, - "react/prop-types": 0, - "react/jsx-first-prop-new-line": 0, - "react/jsx-filename-extension": [ - 1, - { - "extensions": [ - ".js", - ".jsx" - ] - } - ], - "import/extensions": 0, - "import/no-unresolved": 0, - "import/no-extraneous-dependencies": 0, - "prefer-destructuring": 0, - "no-param-reassign": 0, - "no-return-assign": 0, - "max-len": 0, - "consistent-return": 0, - "no-redeclare": 0, - "react/require-extension": 0, - "react/no-danger": 0, - "comma-dangle": [ - "error", - "always-multiline" - ], - "function-paren-newline": 0, - "object-curly-newline": 0, - "no-restricted-globals": 0, - "react/prefer-stateless-function": 0 - } -} diff --git a/blocks/DisplayCard/.gitignore b/blocks/DisplayCard/.gitignore deleted file mode 100644 index cc45d6fb3c..0000000000 --- a/blocks/DisplayCard/.gitignore +++ /dev/null @@ -1,13 +0,0 @@ - -*.swp -*.dia~ -.idea/ -.DS_Store - -npm-debug.log -yarn-error.log -node_modules/ -tmp/ - -# happypack 缓存 -.happypack diff --git a/blocks/DisplayCard/package.json b/blocks/DisplayCard/package.json index 8affd9aa9b..e28ce59540 100644 --- a/blocks/DisplayCard/package.json +++ b/blocks/DisplayCard/package.json @@ -27,14 +27,8 @@ "@icedesign/card": "^0.1.0" }, "devDependencies": { - "babel-eslint": "^8.0.3", - "eslint": "^4.13.1", - "eslint-plugin-babel": "^4.1.1", "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "eslint-plugin-import": "^2.8.0", - "eslint-config-airbnb": "^16.1.0", - "eslint-plugin-jsx-a11y": "^6.0.3", "@icedesign/skin": "^0.1.2" }, "blockConfig": { @@ -46,6 +40,5 @@ "sketchURL": "", "icelandURL": "", "themePackage": "@icedesign/skin" - }, - "scripts": {} + } } diff --git a/blocks/DownloadCard/.editorconfig b/blocks/DownloadCard/.editorconfig deleted file mode 100644 index 22ef5ace54..0000000000 --- a/blocks/DownloadCard/.editorconfig +++ /dev/null @@ -1,16 +0,0 @@ -# http://editorconfig.org -root = true - -[*] -indent_style = space -indent_size = 2 -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -[*.md] -trim_trailing_whitespace = false - -[makefile] -indent_style = tab -indent_size = 4 diff --git a/blocks/DownloadCard/.eslintignore b/blocks/DownloadCard/.eslintignore deleted file mode 100644 index 3b21308fc7..0000000000 --- a/blocks/DownloadCard/.eslintignore +++ /dev/null @@ -1,12 +0,0 @@ -# 忽略目录 -build/ -tests/ -demo/ -lib/ - -# node 覆盖率文件 -coverage/ - -# 忽略文件 -**/*-min.js -**/*.min.js \ No newline at end of file diff --git a/blocks/DownloadCard/.eslintrc b/blocks/DownloadCard/.eslintrc deleted file mode 100644 index 7a4e5bac48..0000000000 --- a/blocks/DownloadCard/.eslintrc +++ /dev/null @@ -1,62 +0,0 @@ -{ - "root": true, - "parser": "babel-eslint", - "extends": "eslint-config-airbnb", - "parserOptions": { - "ecmaVersion": 6, - "ecmaFeatures": { - "jsx": true, - "experimentalObjectRestSpread": true - } - }, - "env": { - "browser": true - }, - "plugins": [ - "react", - "babel" - ], - "rules": { - "react/forbid-prop-types": 0, - "jsx-a11y/label-has-for": 0, - "jsx-a11y/no-static-element-interactions": 0, - "jsx-a11y/anchor-has-content": 0, - "jsx-a11y/click-events-have-key-events": 0, - "jsx-a11y/anchor-is-valid": 0, - "react/no-array-index-key": 0, - "func-names": 0, - "arrow-body-style": 0, - "no-use-before-define": 0, - "react/sort-comp": 0, - "react/prop-types": 0, - "react/jsx-first-prop-new-line": 0, - "react/jsx-filename-extension": [ - 1, - { - "extensions": [ - ".js", - ".jsx" - ] - } - ], - "import/extensions": 0, - "import/no-unresolved": 0, - "import/no-extraneous-dependencies": 0, - "prefer-destructuring": 0, - "no-param-reassign": 0, - "no-return-assign": 0, - "max-len": 0, - "consistent-return": 0, - "no-redeclare": 0, - "react/require-extension": 0, - "react/no-danger": 0, - "comma-dangle": [ - "error", - "always-multiline" - ], - "function-paren-newline": 0, - "object-curly-newline": 0, - "no-restricted-globals": 0, - "react/prefer-stateless-function": 0 - } -} diff --git a/blocks/DownloadCard/.gitignore b/blocks/DownloadCard/.gitignore deleted file mode 100644 index cc45d6fb3c..0000000000 --- a/blocks/DownloadCard/.gitignore +++ /dev/null @@ -1,13 +0,0 @@ - -*.swp -*.dia~ -.idea/ -.DS_Store - -npm-debug.log -yarn-error.log -node_modules/ -tmp/ - -# happypack 缓存 -.happypack diff --git a/blocks/DownloadCard/package.json b/blocks/DownloadCard/package.json index 7d22e69800..53126d9535 100644 --- a/blocks/DownloadCard/package.json +++ b/blocks/DownloadCard/package.json @@ -29,14 +29,8 @@ "@icedesign/card": "^0.1.0" }, "devDependencies": { - "babel-eslint": "^8.0.3", - "eslint": "^4.13.1", - "eslint-plugin-babel": "^4.1.1", "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "eslint-plugin-import": "^2.8.0", - "eslint-config-airbnb": "^16.1.0", - "eslint-plugin-jsx-a11y": "^6.0.3", "@icedesign/skin": "^0.1.2" }, "blockConfig": { @@ -48,6 +42,5 @@ "sketchURL": "", "icelandURL": "", "themePackage": "@icedesign/skin" - }, - "scripts": {} + } } diff --git a/blocks/DynamicBanner/.editorconfig b/blocks/DynamicBanner/.editorconfig deleted file mode 100644 index 22ef5ace54..0000000000 --- a/blocks/DynamicBanner/.editorconfig +++ /dev/null @@ -1,16 +0,0 @@ -# http://editorconfig.org -root = true - -[*] -indent_style = space -indent_size = 2 -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -[*.md] -trim_trailing_whitespace = false - -[makefile] -indent_style = tab -indent_size = 4 diff --git a/blocks/DynamicBanner/.eslintignore b/blocks/DynamicBanner/.eslintignore deleted file mode 100644 index 3b21308fc7..0000000000 --- a/blocks/DynamicBanner/.eslintignore +++ /dev/null @@ -1,12 +0,0 @@ -# 忽略目录 -build/ -tests/ -demo/ -lib/ - -# node 覆盖率文件 -coverage/ - -# 忽略文件 -**/*-min.js -**/*.min.js \ No newline at end of file diff --git a/blocks/DynamicBanner/.eslintrc b/blocks/DynamicBanner/.eslintrc deleted file mode 100644 index 7a4e5bac48..0000000000 --- a/blocks/DynamicBanner/.eslintrc +++ /dev/null @@ -1,62 +0,0 @@ -{ - "root": true, - "parser": "babel-eslint", - "extends": "eslint-config-airbnb", - "parserOptions": { - "ecmaVersion": 6, - "ecmaFeatures": { - "jsx": true, - "experimentalObjectRestSpread": true - } - }, - "env": { - "browser": true - }, - "plugins": [ - "react", - "babel" - ], - "rules": { - "react/forbid-prop-types": 0, - "jsx-a11y/label-has-for": 0, - "jsx-a11y/no-static-element-interactions": 0, - "jsx-a11y/anchor-has-content": 0, - "jsx-a11y/click-events-have-key-events": 0, - "jsx-a11y/anchor-is-valid": 0, - "react/no-array-index-key": 0, - "func-names": 0, - "arrow-body-style": 0, - "no-use-before-define": 0, - "react/sort-comp": 0, - "react/prop-types": 0, - "react/jsx-first-prop-new-line": 0, - "react/jsx-filename-extension": [ - 1, - { - "extensions": [ - ".js", - ".jsx" - ] - } - ], - "import/extensions": 0, - "import/no-unresolved": 0, - "import/no-extraneous-dependencies": 0, - "prefer-destructuring": 0, - "no-param-reassign": 0, - "no-return-assign": 0, - "max-len": 0, - "consistent-return": 0, - "no-redeclare": 0, - "react/require-extension": 0, - "react/no-danger": 0, - "comma-dangle": [ - "error", - "always-multiline" - ], - "function-paren-newline": 0, - "object-curly-newline": 0, - "no-restricted-globals": 0, - "react/prefer-stateless-function": 0 - } -} diff --git a/blocks/DynamicBanner/.gitignore b/blocks/DynamicBanner/.gitignore deleted file mode 100644 index cc45d6fb3c..0000000000 --- a/blocks/DynamicBanner/.gitignore +++ /dev/null @@ -1,13 +0,0 @@ - -*.swp -*.dia~ -.idea/ -.DS_Store - -npm-debug.log -yarn-error.log -node_modules/ -tmp/ - -# happypack 缓存 -.happypack diff --git a/blocks/DynamicBanner/package.json b/blocks/DynamicBanner/package.json index 24d428ed7d..d4f19dbc44 100644 --- a/blocks/DynamicBanner/package.json +++ b/blocks/DynamicBanner/package.json @@ -27,14 +27,8 @@ "@icedesign/base": "^0.1.0" }, "devDependencies": { - "babel-eslint": "^8.0.3", - "eslint": "^4.13.1", - "eslint-plugin-babel": "^4.1.1", "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "eslint-plugin-import": "^2.8.0", - "eslint-config-airbnb": "^16.1.0", - "eslint-plugin-jsx-a11y": "^6.0.3", "@icedesign/skin": "^0.1.2" }, "blockConfig": { @@ -46,6 +40,5 @@ "sketchURL": "", "icelandURL": "", "themePackage": "@icedesign/skin" - }, - "scripts": {} + } } diff --git a/blocks/EditableTable/.editorconfig b/blocks/EditableTable/.editorconfig deleted file mode 100644 index 22ef5ace54..0000000000 --- a/blocks/EditableTable/.editorconfig +++ /dev/null @@ -1,16 +0,0 @@ -# http://editorconfig.org -root = true - -[*] -indent_style = space -indent_size = 2 -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -[*.md] -trim_trailing_whitespace = false - -[makefile] -indent_style = tab -indent_size = 4 diff --git a/blocks/EditableTable/.eslintignore b/blocks/EditableTable/.eslintignore deleted file mode 100644 index 3b21308fc7..0000000000 --- a/blocks/EditableTable/.eslintignore +++ /dev/null @@ -1,12 +0,0 @@ -# 忽略目录 -build/ -tests/ -demo/ -lib/ - -# node 覆盖率文件 -coverage/ - -# 忽略文件 -**/*-min.js -**/*.min.js \ No newline at end of file diff --git a/blocks/EditableTable/.eslintrc b/blocks/EditableTable/.eslintrc deleted file mode 100644 index 7a4e5bac48..0000000000 --- a/blocks/EditableTable/.eslintrc +++ /dev/null @@ -1,62 +0,0 @@ -{ - "root": true, - "parser": "babel-eslint", - "extends": "eslint-config-airbnb", - "parserOptions": { - "ecmaVersion": 6, - "ecmaFeatures": { - "jsx": true, - "experimentalObjectRestSpread": true - } - }, - "env": { - "browser": true - }, - "plugins": [ - "react", - "babel" - ], - "rules": { - "react/forbid-prop-types": 0, - "jsx-a11y/label-has-for": 0, - "jsx-a11y/no-static-element-interactions": 0, - "jsx-a11y/anchor-has-content": 0, - "jsx-a11y/click-events-have-key-events": 0, - "jsx-a11y/anchor-is-valid": 0, - "react/no-array-index-key": 0, - "func-names": 0, - "arrow-body-style": 0, - "no-use-before-define": 0, - "react/sort-comp": 0, - "react/prop-types": 0, - "react/jsx-first-prop-new-line": 0, - "react/jsx-filename-extension": [ - 1, - { - "extensions": [ - ".js", - ".jsx" - ] - } - ], - "import/extensions": 0, - "import/no-unresolved": 0, - "import/no-extraneous-dependencies": 0, - "prefer-destructuring": 0, - "no-param-reassign": 0, - "no-return-assign": 0, - "max-len": 0, - "consistent-return": 0, - "no-redeclare": 0, - "react/require-extension": 0, - "react/no-danger": 0, - "comma-dangle": [ - "error", - "always-multiline" - ], - "function-paren-newline": 0, - "object-curly-newline": 0, - "no-restricted-globals": 0, - "react/prefer-stateless-function": 0 - } -} diff --git a/blocks/EditableTable/.gitignore b/blocks/EditableTable/.gitignore deleted file mode 100644 index cc45d6fb3c..0000000000 --- a/blocks/EditableTable/.gitignore +++ /dev/null @@ -1,13 +0,0 @@ - -*.swp -*.dia~ -.idea/ -.DS_Store - -npm-debug.log -yarn-error.log -node_modules/ -tmp/ - -# happypack 缓存 -.happypack diff --git a/blocks/EditableTable/package.json b/blocks/EditableTable/package.json index 917ddef162..bcda2789d2 100644 --- a/blocks/EditableTable/package.json +++ b/blocks/EditableTable/package.json @@ -27,14 +27,8 @@ "@icedesign/card": "^0.1.0" }, "devDependencies": { - "babel-eslint": "^8.0.3", - "eslint": "^4.13.1", - "eslint-plugin-babel": "^4.1.1", "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "eslint-plugin-import": "^2.8.0", - "eslint-config-airbnb": "^16.1.0", - "eslint-plugin-jsx-a11y": "^6.0.3", "@icedesign/skin": "^0.1.2" }, "blockConfig": { @@ -46,6 +40,5 @@ "sketchURL": "", "icelandURL": "", "themePackage": "@icedesign/skin" - }, - "scripts": {} + } } diff --git a/blocks/EmptyContent/.editorconfig b/blocks/EmptyContent/.editorconfig deleted file mode 100644 index 22ef5ace54..0000000000 --- a/blocks/EmptyContent/.editorconfig +++ /dev/null @@ -1,16 +0,0 @@ -# http://editorconfig.org -root = true - -[*] -indent_style = space -indent_size = 2 -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -[*.md] -trim_trailing_whitespace = false - -[makefile] -indent_style = tab -indent_size = 4 diff --git a/blocks/EmptyContent/.eslintignore b/blocks/EmptyContent/.eslintignore deleted file mode 100644 index 3b21308fc7..0000000000 --- a/blocks/EmptyContent/.eslintignore +++ /dev/null @@ -1,12 +0,0 @@ -# 忽略目录 -build/ -tests/ -demo/ -lib/ - -# node 覆盖率文件 -coverage/ - -# 忽略文件 -**/*-min.js -**/*.min.js \ No newline at end of file diff --git a/blocks/EmptyContent/.eslintrc b/blocks/EmptyContent/.eslintrc deleted file mode 100644 index 7a4e5bac48..0000000000 --- a/blocks/EmptyContent/.eslintrc +++ /dev/null @@ -1,62 +0,0 @@ -{ - "root": true, - "parser": "babel-eslint", - "extends": "eslint-config-airbnb", - "parserOptions": { - "ecmaVersion": 6, - "ecmaFeatures": { - "jsx": true, - "experimentalObjectRestSpread": true - } - }, - "env": { - "browser": true - }, - "plugins": [ - "react", - "babel" - ], - "rules": { - "react/forbid-prop-types": 0, - "jsx-a11y/label-has-for": 0, - "jsx-a11y/no-static-element-interactions": 0, - "jsx-a11y/anchor-has-content": 0, - "jsx-a11y/click-events-have-key-events": 0, - "jsx-a11y/anchor-is-valid": 0, - "react/no-array-index-key": 0, - "func-names": 0, - "arrow-body-style": 0, - "no-use-before-define": 0, - "react/sort-comp": 0, - "react/prop-types": 0, - "react/jsx-first-prop-new-line": 0, - "react/jsx-filename-extension": [ - 1, - { - "extensions": [ - ".js", - ".jsx" - ] - } - ], - "import/extensions": 0, - "import/no-unresolved": 0, - "import/no-extraneous-dependencies": 0, - "prefer-destructuring": 0, - "no-param-reassign": 0, - "no-return-assign": 0, - "max-len": 0, - "consistent-return": 0, - "no-redeclare": 0, - "react/require-extension": 0, - "react/no-danger": 0, - "comma-dangle": [ - "error", - "always-multiline" - ], - "function-paren-newline": 0, - "object-curly-newline": 0, - "no-restricted-globals": 0, - "react/prefer-stateless-function": 0 - } -} diff --git a/blocks/EmptyContent/.gitignore b/blocks/EmptyContent/.gitignore deleted file mode 100644 index cc45d6fb3c..0000000000 --- a/blocks/EmptyContent/.gitignore +++ /dev/null @@ -1,13 +0,0 @@ - -*.swp -*.dia~ -.idea/ -.DS_Store - -npm-debug.log -yarn-error.log -node_modules/ -tmp/ - -# happypack 缓存 -.happypack diff --git a/blocks/EmptyContent/package.json b/blocks/EmptyContent/package.json index c489b66d91..57cce071d6 100644 --- a/blocks/EmptyContent/package.json +++ b/blocks/EmptyContent/package.json @@ -8,7 +8,6 @@ "lib/", "mock/" ], - "scripts": {}, "author": { "name": "ICE Team", "email": "ice-admin@alibaba-inc.com" @@ -29,16 +28,10 @@ }, "devDependencies": { "@icedesign/skin": "^0.1.2", - "babel-eslint": "^8.0.3", "eslint-plugin-react": "^7.5.1", "react": "15.x", "react-copy-to-clipboard": "^4.2.3", "react-dom": "15.x", - "eslint": "^4.13.1", - "eslint-plugin-babel": "^4.1.1", - "eslint-plugin-import": "^2.8.0", - "eslint-config-airbnb": "^16.1.0", - "eslint-plugin-jsx-a11y": "^6.0.3", "@icedesign/demo-layout": "^0.1.0" }, "blockConfig": { diff --git a/blocks/EnhanceTable/.editorconfig b/blocks/EnhanceTable/.editorconfig deleted file mode 100644 index 22ef5ace54..0000000000 --- a/blocks/EnhanceTable/.editorconfig +++ /dev/null @@ -1,16 +0,0 @@ -# http://editorconfig.org -root = true - -[*] -indent_style = space -indent_size = 2 -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -[*.md] -trim_trailing_whitespace = false - -[makefile] -indent_style = tab -indent_size = 4 diff --git a/blocks/EnhanceTable/.eslintignore b/blocks/EnhanceTable/.eslintignore deleted file mode 100644 index 3b21308fc7..0000000000 --- a/blocks/EnhanceTable/.eslintignore +++ /dev/null @@ -1,12 +0,0 @@ -# 忽略目录 -build/ -tests/ -demo/ -lib/ - -# node 覆盖率文件 -coverage/ - -# 忽略文件 -**/*-min.js -**/*.min.js \ No newline at end of file diff --git a/blocks/EnhanceTable/.eslintrc b/blocks/EnhanceTable/.eslintrc deleted file mode 100644 index 7a4e5bac48..0000000000 --- a/blocks/EnhanceTable/.eslintrc +++ /dev/null @@ -1,62 +0,0 @@ -{ - "root": true, - "parser": "babel-eslint", - "extends": "eslint-config-airbnb", - "parserOptions": { - "ecmaVersion": 6, - "ecmaFeatures": { - "jsx": true, - "experimentalObjectRestSpread": true - } - }, - "env": { - "browser": true - }, - "plugins": [ - "react", - "babel" - ], - "rules": { - "react/forbid-prop-types": 0, - "jsx-a11y/label-has-for": 0, - "jsx-a11y/no-static-element-interactions": 0, - "jsx-a11y/anchor-has-content": 0, - "jsx-a11y/click-events-have-key-events": 0, - "jsx-a11y/anchor-is-valid": 0, - "react/no-array-index-key": 0, - "func-names": 0, - "arrow-body-style": 0, - "no-use-before-define": 0, - "react/sort-comp": 0, - "react/prop-types": 0, - "react/jsx-first-prop-new-line": 0, - "react/jsx-filename-extension": [ - 1, - { - "extensions": [ - ".js", - ".jsx" - ] - } - ], - "import/extensions": 0, - "import/no-unresolved": 0, - "import/no-extraneous-dependencies": 0, - "prefer-destructuring": 0, - "no-param-reassign": 0, - "no-return-assign": 0, - "max-len": 0, - "consistent-return": 0, - "no-redeclare": 0, - "react/require-extension": 0, - "react/no-danger": 0, - "comma-dangle": [ - "error", - "always-multiline" - ], - "function-paren-newline": 0, - "object-curly-newline": 0, - "no-restricted-globals": 0, - "react/prefer-stateless-function": 0 - } -} diff --git a/blocks/EnhanceTable/.gitignore b/blocks/EnhanceTable/.gitignore deleted file mode 100644 index cc45d6fb3c..0000000000 --- a/blocks/EnhanceTable/.gitignore +++ /dev/null @@ -1,13 +0,0 @@ - -*.swp -*.dia~ -.idea/ -.DS_Store - -npm-debug.log -yarn-error.log -node_modules/ -tmp/ - -# happypack 缓存 -.happypack diff --git a/blocks/EnhanceTable/package.json b/blocks/EnhanceTable/package.json index 372802ec6a..b0b4ad82ad 100644 --- a/blocks/EnhanceTable/package.json +++ b/blocks/EnhanceTable/package.json @@ -31,14 +31,8 @@ "@icedesign/label": "^0.1.0" }, "devDependencies": { - "babel-eslint": "^8.0.3", - "eslint": "^4.13.1", - "eslint-plugin-babel": "^4.1.1", "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "eslint-plugin-import": "^2.8.0", - "eslint-config-airbnb": "^16.1.0", - "eslint-plugin-jsx-a11y": "^6.0.3", "@icedesign/skin": "^0.1.2" }, "blockConfig": { @@ -50,6 +44,5 @@ "sketchURL": "", "icelandURL": "", "themePackage": "@icedesign/skin" - }, - "scripts": {} + } } diff --git a/blocks/EntryCard/.editorconfig b/blocks/EntryCard/.editorconfig deleted file mode 100644 index 22ef5ace54..0000000000 --- a/blocks/EntryCard/.editorconfig +++ /dev/null @@ -1,16 +0,0 @@ -# http://editorconfig.org -root = true - -[*] -indent_style = space -indent_size = 2 -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -[*.md] -trim_trailing_whitespace = false - -[makefile] -indent_style = tab -indent_size = 4 diff --git a/blocks/EntryCard/.eslintignore b/blocks/EntryCard/.eslintignore deleted file mode 100644 index 66244c2356..0000000000 --- a/blocks/EntryCard/.eslintignore +++ /dev/null @@ -1,20 +0,0 @@ -*.swp -*.dia~ -.idea/ -.DS_Store - -npm-debug.log -yarn-error.log -node_modules/ -tmp/ - -# 这是编译后的代码, 用于提交到 tnpm, git 仓库不需要此份代码 -lib/ -# 提供 start dev 的环境依赖 -# happypack 缓存 -.happypack - -# fusion 配置平台相关 -theme/build/ -theme/deps.json -theme/index.html diff --git a/blocks/EntryCard/.eslintrc b/blocks/EntryCard/.eslintrc deleted file mode 100644 index 07c65acfe7..0000000000 --- a/blocks/EntryCard/.eslintrc +++ /dev/null @@ -1,53 +0,0 @@ -{ - "root": true, - "parser": "babel-eslint", - "extends": "eslint-config-airbnb", - "parserOptions": { - "ecmaVersion": 6, - "ecmaFeatures": { - "jsx": true, - "experimentalObjectRestSpread": true - } - }, - "env": { - "browser": true - }, - "plugins": ["react", "babel"], - "rules": { - "react/forbid-prop-types": 0, - "jsx-a11y/label-has-for": 0, - "jsx-a11y/no-static-element-interactions": 0, - "jsx-a11y/anchor-has-content": 0, - "jsx-a11y/click-events-have-key-events": 0, - "jsx-a11y/anchor-is-valid": 0, - "react/no-array-index-key": 0, - "func-names": 0, - "arrow-body-style": 0, - "no-use-before-define": 1, - "react/sort-comp": 0, - "react/prop-types": 0, - "react/jsx-first-prop-new-line": 0, - "react/jsx-filename-extension": [ - 1, - { - "extensions": [".js", ".jsx"] - } - ], - "import/extensions": 0, - "import/no-unresolved": 0, - "import/no-extraneous-dependencies": 0, - "prefer-destructuring": 0, - "no-param-reassign": 0, - "no-return-assign": 0, - "max-len": 0, - "consistent-return": 0, - "no-redeclare": 0, - "react/require-extension": 0, - "react/no-danger": 0, - "comma-dangle": ["error", "always-multiline"], - "function-paren-newline": 0, - "object-curly-newline": 0, - "no-restricted-globals": 0, - "react/prefer-stateless-function": 0 - } -} diff --git a/blocks/EntryCard/.gitignore b/blocks/EntryCard/.gitignore deleted file mode 100644 index cc45d6fb3c..0000000000 --- a/blocks/EntryCard/.gitignore +++ /dev/null @@ -1,13 +0,0 @@ - -*.swp -*.dia~ -.idea/ -.DS_Store - -npm-debug.log -yarn-error.log -node_modules/ -tmp/ - -# happypack 缓存 -.happypack diff --git a/blocks/EntryCard/package.json b/blocks/EntryCard/package.json index 598e2e4eaa..0b6e138268 100644 --- a/blocks/EntryCard/package.json +++ b/blocks/EntryCard/package.json @@ -30,12 +30,6 @@ "devDependencies": { "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.2", - "babel-eslint": "^8.0.3", - "eslint": "^4.13.1", - "eslint-config-airbnb": "^16.1.0", - "eslint-plugin-babel": "^4.1.1", - "eslint-plugin-import": "^2.8.0", - "eslint-plugin-jsx-a11y": "^6.0.3", "eslint-plugin-react": "^7.5.1" }, "blockConfig": { @@ -47,9 +41,5 @@ "sketchURL": "", "icelandURL": "", "themePackage": "@icedesign/skin" - }, - "scripts": { - "lint": "eslint . --ext '.js,.jsx' --fix", - "prepublish": "npm run lint" } } diff --git a/blocks/FailureDetail/.editorconfig b/blocks/FailureDetail/.editorconfig deleted file mode 100644 index 22ef5ace54..0000000000 --- a/blocks/FailureDetail/.editorconfig +++ /dev/null @@ -1,16 +0,0 @@ -# http://editorconfig.org -root = true - -[*] -indent_style = space -indent_size = 2 -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -[*.md] -trim_trailing_whitespace = false - -[makefile] -indent_style = tab -indent_size = 4 diff --git a/blocks/FailureDetail/.eslintignore b/blocks/FailureDetail/.eslintignore deleted file mode 100644 index 3b21308fc7..0000000000 --- a/blocks/FailureDetail/.eslintignore +++ /dev/null @@ -1,12 +0,0 @@ -# 忽略目录 -build/ -tests/ -demo/ -lib/ - -# node 覆盖率文件 -coverage/ - -# 忽略文件 -**/*-min.js -**/*.min.js \ No newline at end of file diff --git a/blocks/FailureDetail/.eslintrc b/blocks/FailureDetail/.eslintrc deleted file mode 100644 index 7a4e5bac48..0000000000 --- a/blocks/FailureDetail/.eslintrc +++ /dev/null @@ -1,62 +0,0 @@ -{ - "root": true, - "parser": "babel-eslint", - "extends": "eslint-config-airbnb", - "parserOptions": { - "ecmaVersion": 6, - "ecmaFeatures": { - "jsx": true, - "experimentalObjectRestSpread": true - } - }, - "env": { - "browser": true - }, - "plugins": [ - "react", - "babel" - ], - "rules": { - "react/forbid-prop-types": 0, - "jsx-a11y/label-has-for": 0, - "jsx-a11y/no-static-element-interactions": 0, - "jsx-a11y/anchor-has-content": 0, - "jsx-a11y/click-events-have-key-events": 0, - "jsx-a11y/anchor-is-valid": 0, - "react/no-array-index-key": 0, - "func-names": 0, - "arrow-body-style": 0, - "no-use-before-define": 0, - "react/sort-comp": 0, - "react/prop-types": 0, - "react/jsx-first-prop-new-line": 0, - "react/jsx-filename-extension": [ - 1, - { - "extensions": [ - ".js", - ".jsx" - ] - } - ], - "import/extensions": 0, - "import/no-unresolved": 0, - "import/no-extraneous-dependencies": 0, - "prefer-destructuring": 0, - "no-param-reassign": 0, - "no-return-assign": 0, - "max-len": 0, - "consistent-return": 0, - "no-redeclare": 0, - "react/require-extension": 0, - "react/no-danger": 0, - "comma-dangle": [ - "error", - "always-multiline" - ], - "function-paren-newline": 0, - "object-curly-newline": 0, - "no-restricted-globals": 0, - "react/prefer-stateless-function": 0 - } -} diff --git a/blocks/FailureDetail/.gitignore b/blocks/FailureDetail/.gitignore deleted file mode 100644 index cc45d6fb3c..0000000000 --- a/blocks/FailureDetail/.gitignore +++ /dev/null @@ -1,13 +0,0 @@ - -*.swp -*.dia~ -.idea/ -.DS_Store - -npm-debug.log -yarn-error.log -node_modules/ -tmp/ - -# happypack 缓存 -.happypack diff --git a/blocks/FailureDetail/package.json b/blocks/FailureDetail/package.json index 7613672588..4ec91d84ef 100644 --- a/blocks/FailureDetail/package.json +++ b/blocks/FailureDetail/package.json @@ -27,14 +27,8 @@ "@icedesign/card": "^0.1.0" }, "devDependencies": { - "babel-eslint": "^8.0.3", - "eslint": "^4.13.1", - "eslint-plugin-babel": "^4.1.1", "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "eslint-plugin-import": "^2.8.0", - "eslint-config-airbnb": "^16.1.0", - "eslint-plugin-jsx-a11y": "^6.0.3", "@icedesign/skin": "^0.1.2" }, "blockConfig": { @@ -46,6 +40,5 @@ "sketchURL": "", "icelandURL": "", "themePackage": "@icedesign/skin" - }, - "scripts": {} + } } diff --git a/blocks/FeatureDisplay/.editorconfig b/blocks/FeatureDisplay/.editorconfig deleted file mode 100644 index 22ef5ace54..0000000000 --- a/blocks/FeatureDisplay/.editorconfig +++ /dev/null @@ -1,16 +0,0 @@ -# http://editorconfig.org -root = true - -[*] -indent_style = space -indent_size = 2 -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -[*.md] -trim_trailing_whitespace = false - -[makefile] -indent_style = tab -indent_size = 4 diff --git a/blocks/FeatureDisplay/.eslintignore b/blocks/FeatureDisplay/.eslintignore deleted file mode 100644 index 3b21308fc7..0000000000 --- a/blocks/FeatureDisplay/.eslintignore +++ /dev/null @@ -1,12 +0,0 @@ -# 忽略目录 -build/ -tests/ -demo/ -lib/ - -# node 覆盖率文件 -coverage/ - -# 忽略文件 -**/*-min.js -**/*.min.js \ No newline at end of file diff --git a/blocks/FeatureDisplay/.eslintrc b/blocks/FeatureDisplay/.eslintrc deleted file mode 100644 index 7a4e5bac48..0000000000 --- a/blocks/FeatureDisplay/.eslintrc +++ /dev/null @@ -1,62 +0,0 @@ -{ - "root": true, - "parser": "babel-eslint", - "extends": "eslint-config-airbnb", - "parserOptions": { - "ecmaVersion": 6, - "ecmaFeatures": { - "jsx": true, - "experimentalObjectRestSpread": true - } - }, - "env": { - "browser": true - }, - "plugins": [ - "react", - "babel" - ], - "rules": { - "react/forbid-prop-types": 0, - "jsx-a11y/label-has-for": 0, - "jsx-a11y/no-static-element-interactions": 0, - "jsx-a11y/anchor-has-content": 0, - "jsx-a11y/click-events-have-key-events": 0, - "jsx-a11y/anchor-is-valid": 0, - "react/no-array-index-key": 0, - "func-names": 0, - "arrow-body-style": 0, - "no-use-before-define": 0, - "react/sort-comp": 0, - "react/prop-types": 0, - "react/jsx-first-prop-new-line": 0, - "react/jsx-filename-extension": [ - 1, - { - "extensions": [ - ".js", - ".jsx" - ] - } - ], - "import/extensions": 0, - "import/no-unresolved": 0, - "import/no-extraneous-dependencies": 0, - "prefer-destructuring": 0, - "no-param-reassign": 0, - "no-return-assign": 0, - "max-len": 0, - "consistent-return": 0, - "no-redeclare": 0, - "react/require-extension": 0, - "react/no-danger": 0, - "comma-dangle": [ - "error", - "always-multiline" - ], - "function-paren-newline": 0, - "object-curly-newline": 0, - "no-restricted-globals": 0, - "react/prefer-stateless-function": 0 - } -} diff --git a/blocks/FeatureDisplay/.gitignore b/blocks/FeatureDisplay/.gitignore deleted file mode 100644 index cc45d6fb3c..0000000000 --- a/blocks/FeatureDisplay/.gitignore +++ /dev/null @@ -1,13 +0,0 @@ - -*.swp -*.dia~ -.idea/ -.DS_Store - -npm-debug.log -yarn-error.log -node_modules/ -tmp/ - -# happypack 缓存 -.happypack diff --git a/blocks/FeatureDisplay/package.json b/blocks/FeatureDisplay/package.json index 4b43ec2051..39aa2a7e3a 100644 --- a/blocks/FeatureDisplay/package.json +++ b/blocks/FeatureDisplay/package.json @@ -27,14 +27,8 @@ "@icedesign/card": "^0.1.0" }, "devDependencies": { - "babel-eslint": "^8.0.3", - "eslint": "^4.13.1", - "eslint-plugin-babel": "^4.1.1", "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "eslint-plugin-import": "^2.8.0", - "eslint-config-airbnb": "^16.1.0", - "eslint-plugin-jsx-a11y": "^6.0.3", "@icedesign/skin": "^0.1.2" }, "blockConfig": { @@ -46,6 +40,5 @@ "sketchURL": "", "icelandURL": "", "themePackage": "@icedesign/skin" - }, - "scripts": {} + } } diff --git a/blocks/FeedList/.editorconfig b/blocks/FeedList/.editorconfig deleted file mode 100644 index 22ef5ace54..0000000000 --- a/blocks/FeedList/.editorconfig +++ /dev/null @@ -1,16 +0,0 @@ -# http://editorconfig.org -root = true - -[*] -indent_style = space -indent_size = 2 -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -[*.md] -trim_trailing_whitespace = false - -[makefile] -indent_style = tab -indent_size = 4 diff --git a/blocks/FeedList/.eslintignore b/blocks/FeedList/.eslintignore deleted file mode 100644 index 3b21308fc7..0000000000 --- a/blocks/FeedList/.eslintignore +++ /dev/null @@ -1,12 +0,0 @@ -# 忽略目录 -build/ -tests/ -demo/ -lib/ - -# node 覆盖率文件 -coverage/ - -# 忽略文件 -**/*-min.js -**/*.min.js \ No newline at end of file diff --git a/blocks/FeedList/.eslintrc b/blocks/FeedList/.eslintrc deleted file mode 100644 index 7a4e5bac48..0000000000 --- a/blocks/FeedList/.eslintrc +++ /dev/null @@ -1,62 +0,0 @@ -{ - "root": true, - "parser": "babel-eslint", - "extends": "eslint-config-airbnb", - "parserOptions": { - "ecmaVersion": 6, - "ecmaFeatures": { - "jsx": true, - "experimentalObjectRestSpread": true - } - }, - "env": { - "browser": true - }, - "plugins": [ - "react", - "babel" - ], - "rules": { - "react/forbid-prop-types": 0, - "jsx-a11y/label-has-for": 0, - "jsx-a11y/no-static-element-interactions": 0, - "jsx-a11y/anchor-has-content": 0, - "jsx-a11y/click-events-have-key-events": 0, - "jsx-a11y/anchor-is-valid": 0, - "react/no-array-index-key": 0, - "func-names": 0, - "arrow-body-style": 0, - "no-use-before-define": 0, - "react/sort-comp": 0, - "react/prop-types": 0, - "react/jsx-first-prop-new-line": 0, - "react/jsx-filename-extension": [ - 1, - { - "extensions": [ - ".js", - ".jsx" - ] - } - ], - "import/extensions": 0, - "import/no-unresolved": 0, - "import/no-extraneous-dependencies": 0, - "prefer-destructuring": 0, - "no-param-reassign": 0, - "no-return-assign": 0, - "max-len": 0, - "consistent-return": 0, - "no-redeclare": 0, - "react/require-extension": 0, - "react/no-danger": 0, - "comma-dangle": [ - "error", - "always-multiline" - ], - "function-paren-newline": 0, - "object-curly-newline": 0, - "no-restricted-globals": 0, - "react/prefer-stateless-function": 0 - } -} diff --git a/blocks/FeedList/.gitignore b/blocks/FeedList/.gitignore deleted file mode 100644 index cc45d6fb3c..0000000000 --- a/blocks/FeedList/.gitignore +++ /dev/null @@ -1,13 +0,0 @@ - -*.swp -*.dia~ -.idea/ -.DS_Store - -npm-debug.log -yarn-error.log -node_modules/ -tmp/ - -# happypack 缓存 -.happypack diff --git a/blocks/FeedList/package.json b/blocks/FeedList/package.json index 90ac6c3cec..8693fc6da6 100644 --- a/blocks/FeedList/package.json +++ b/blocks/FeedList/package.json @@ -8,7 +8,6 @@ "lib/", "mock/" ], - "scripts": {}, "author": { "name": "ICE Team", "email": "ice-admin@alibaba-inc.com" @@ -29,16 +28,10 @@ }, "devDependencies": { "@icedesign/skin": "^0.1.2", - "babel-eslint": "^8.0.3", "eslint-plugin-react": "^7.5.1", "react": "15.x", "react-copy-to-clipboard": "^4.2.3", "react-dom": "15.x", - "eslint": "^4.13.1", - "eslint-plugin-babel": "^4.1.1", - "eslint-plugin-import": "^2.8.0", - "eslint-config-airbnb": "^16.1.0", - "eslint-plugin-jsx-a11y": "^6.0.3", "@icedesign/demo-layout": "^0.1.0" }, "blockConfig": { diff --git a/blocks/FilterList/.editorconfig b/blocks/FilterList/.editorconfig deleted file mode 100644 index 22ef5ace54..0000000000 --- a/blocks/FilterList/.editorconfig +++ /dev/null @@ -1,16 +0,0 @@ -# http://editorconfig.org -root = true - -[*] -indent_style = space -indent_size = 2 -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -[*.md] -trim_trailing_whitespace = false - -[makefile] -indent_style = tab -indent_size = 4 diff --git a/blocks/FilterList/.eslintignore b/blocks/FilterList/.eslintignore deleted file mode 100644 index 3b21308fc7..0000000000 --- a/blocks/FilterList/.eslintignore +++ /dev/null @@ -1,12 +0,0 @@ -# 忽略目录 -build/ -tests/ -demo/ -lib/ - -# node 覆盖率文件 -coverage/ - -# 忽略文件 -**/*-min.js -**/*.min.js \ No newline at end of file diff --git a/blocks/FilterList/.eslintrc b/blocks/FilterList/.eslintrc deleted file mode 100644 index 7a4e5bac48..0000000000 --- a/blocks/FilterList/.eslintrc +++ /dev/null @@ -1,62 +0,0 @@ -{ - "root": true, - "parser": "babel-eslint", - "extends": "eslint-config-airbnb", - "parserOptions": { - "ecmaVersion": 6, - "ecmaFeatures": { - "jsx": true, - "experimentalObjectRestSpread": true - } - }, - "env": { - "browser": true - }, - "plugins": [ - "react", - "babel" - ], - "rules": { - "react/forbid-prop-types": 0, - "jsx-a11y/label-has-for": 0, - "jsx-a11y/no-static-element-interactions": 0, - "jsx-a11y/anchor-has-content": 0, - "jsx-a11y/click-events-have-key-events": 0, - "jsx-a11y/anchor-is-valid": 0, - "react/no-array-index-key": 0, - "func-names": 0, - "arrow-body-style": 0, - "no-use-before-define": 0, - "react/sort-comp": 0, - "react/prop-types": 0, - "react/jsx-first-prop-new-line": 0, - "react/jsx-filename-extension": [ - 1, - { - "extensions": [ - ".js", - ".jsx" - ] - } - ], - "import/extensions": 0, - "import/no-unresolved": 0, - "import/no-extraneous-dependencies": 0, - "prefer-destructuring": 0, - "no-param-reassign": 0, - "no-return-assign": 0, - "max-len": 0, - "consistent-return": 0, - "no-redeclare": 0, - "react/require-extension": 0, - "react/no-danger": 0, - "comma-dangle": [ - "error", - "always-multiline" - ], - "function-paren-newline": 0, - "object-curly-newline": 0, - "no-restricted-globals": 0, - "react/prefer-stateless-function": 0 - } -} diff --git a/blocks/FilterList/.gitignore b/blocks/FilterList/.gitignore deleted file mode 100644 index cc45d6fb3c..0000000000 --- a/blocks/FilterList/.gitignore +++ /dev/null @@ -1,13 +0,0 @@ - -*.swp -*.dia~ -.idea/ -.DS_Store - -npm-debug.log -yarn-error.log -node_modules/ -tmp/ - -# happypack 缓存 -.happypack diff --git a/blocks/FilterList/package.json b/blocks/FilterList/package.json index 88566bb108..b59e9eebd3 100644 --- a/blocks/FilterList/package.json +++ b/blocks/FilterList/package.json @@ -29,14 +29,8 @@ "@icedesign/card": "^0.1.0" }, "devDependencies": { - "babel-eslint": "^8.0.3", - "eslint": "^4.13.1", - "eslint-plugin-babel": "^4.1.1", "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "eslint-plugin-import": "^2.8.0", - "eslint-config-airbnb": "^16.1.0", - "eslint-plugin-jsx-a11y": "^6.0.3", "@icedesign/skin": "^0.1.2" }, "blockConfig": { @@ -48,6 +42,5 @@ "sketchURL": "", "icelandURL": "", "themePackage": "@icedesign/skin" - }, - "scripts": {} + } } diff --git a/blocks/FilterTable/.editorconfig b/blocks/FilterTable/.editorconfig deleted file mode 100644 index 22ef5ace54..0000000000 --- a/blocks/FilterTable/.editorconfig +++ /dev/null @@ -1,16 +0,0 @@ -# http://editorconfig.org -root = true - -[*] -indent_style = space -indent_size = 2 -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -[*.md] -trim_trailing_whitespace = false - -[makefile] -indent_style = tab -indent_size = 4 diff --git a/blocks/FilterTable/.eslintignore b/blocks/FilterTable/.eslintignore deleted file mode 100644 index 3b21308fc7..0000000000 --- a/blocks/FilterTable/.eslintignore +++ /dev/null @@ -1,12 +0,0 @@ -# 忽略目录 -build/ -tests/ -demo/ -lib/ - -# node 覆盖率文件 -coverage/ - -# 忽略文件 -**/*-min.js -**/*.min.js \ No newline at end of file diff --git a/blocks/FilterTable/.eslintrc b/blocks/FilterTable/.eslintrc deleted file mode 100644 index 7a4e5bac48..0000000000 --- a/blocks/FilterTable/.eslintrc +++ /dev/null @@ -1,62 +0,0 @@ -{ - "root": true, - "parser": "babel-eslint", - "extends": "eslint-config-airbnb", - "parserOptions": { - "ecmaVersion": 6, - "ecmaFeatures": { - "jsx": true, - "experimentalObjectRestSpread": true - } - }, - "env": { - "browser": true - }, - "plugins": [ - "react", - "babel" - ], - "rules": { - "react/forbid-prop-types": 0, - "jsx-a11y/label-has-for": 0, - "jsx-a11y/no-static-element-interactions": 0, - "jsx-a11y/anchor-has-content": 0, - "jsx-a11y/click-events-have-key-events": 0, - "jsx-a11y/anchor-is-valid": 0, - "react/no-array-index-key": 0, - "func-names": 0, - "arrow-body-style": 0, - "no-use-before-define": 0, - "react/sort-comp": 0, - "react/prop-types": 0, - "react/jsx-first-prop-new-line": 0, - "react/jsx-filename-extension": [ - 1, - { - "extensions": [ - ".js", - ".jsx" - ] - } - ], - "import/extensions": 0, - "import/no-unresolved": 0, - "import/no-extraneous-dependencies": 0, - "prefer-destructuring": 0, - "no-param-reassign": 0, - "no-return-assign": 0, - "max-len": 0, - "consistent-return": 0, - "no-redeclare": 0, - "react/require-extension": 0, - "react/no-danger": 0, - "comma-dangle": [ - "error", - "always-multiline" - ], - "function-paren-newline": 0, - "object-curly-newline": 0, - "no-restricted-globals": 0, - "react/prefer-stateless-function": 0 - } -} diff --git a/blocks/FilterTable/.gitignore b/blocks/FilterTable/.gitignore deleted file mode 100644 index cc45d6fb3c..0000000000 --- a/blocks/FilterTable/.gitignore +++ /dev/null @@ -1,13 +0,0 @@ - -*.swp -*.dia~ -.idea/ -.DS_Store - -npm-debug.log -yarn-error.log -node_modules/ -tmp/ - -# happypack 缓存 -.happypack diff --git a/blocks/FilterTable/package.json b/blocks/FilterTable/package.json index 61492fbc6a..8884aba8a3 100644 --- a/blocks/FilterTable/package.json +++ b/blocks/FilterTable/package.json @@ -31,14 +31,8 @@ "@icedesign/label": "^0.1.0" }, "devDependencies": { - "babel-eslint": "^8.0.3", - "eslint": "^4.13.1", - "eslint-plugin-babel": "^4.1.1", "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "eslint-plugin-import": "^2.8.0", - "eslint-config-airbnb": "^16.1.0", - "eslint-plugin-jsx-a11y": "^6.0.3", "@icedesign/skin": "^0.1.2" }, "blockConfig": { @@ -50,6 +44,5 @@ "sketchURL": "", "icelandURL": "", "themePackage": "@icedesign/skin" - }, - "scripts": {} + } } diff --git a/blocks/FilterWithSearch/.editorconfig b/blocks/FilterWithSearch/.editorconfig deleted file mode 100644 index 22ef5ace54..0000000000 --- a/blocks/FilterWithSearch/.editorconfig +++ /dev/null @@ -1,16 +0,0 @@ -# http://editorconfig.org -root = true - -[*] -indent_style = space -indent_size = 2 -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -[*.md] -trim_trailing_whitespace = false - -[makefile] -indent_style = tab -indent_size = 4 diff --git a/blocks/FilterWithSearch/.eslintignore b/blocks/FilterWithSearch/.eslintignore deleted file mode 100644 index 3b21308fc7..0000000000 --- a/blocks/FilterWithSearch/.eslintignore +++ /dev/null @@ -1,12 +0,0 @@ -# 忽略目录 -build/ -tests/ -demo/ -lib/ - -# node 覆盖率文件 -coverage/ - -# 忽略文件 -**/*-min.js -**/*.min.js \ No newline at end of file diff --git a/blocks/FilterWithSearch/.eslintrc b/blocks/FilterWithSearch/.eslintrc deleted file mode 100644 index 7a4e5bac48..0000000000 --- a/blocks/FilterWithSearch/.eslintrc +++ /dev/null @@ -1,62 +0,0 @@ -{ - "root": true, - "parser": "babel-eslint", - "extends": "eslint-config-airbnb", - "parserOptions": { - "ecmaVersion": 6, - "ecmaFeatures": { - "jsx": true, - "experimentalObjectRestSpread": true - } - }, - "env": { - "browser": true - }, - "plugins": [ - "react", - "babel" - ], - "rules": { - "react/forbid-prop-types": 0, - "jsx-a11y/label-has-for": 0, - "jsx-a11y/no-static-element-interactions": 0, - "jsx-a11y/anchor-has-content": 0, - "jsx-a11y/click-events-have-key-events": 0, - "jsx-a11y/anchor-is-valid": 0, - "react/no-array-index-key": 0, - "func-names": 0, - "arrow-body-style": 0, - "no-use-before-define": 0, - "react/sort-comp": 0, - "react/prop-types": 0, - "react/jsx-first-prop-new-line": 0, - "react/jsx-filename-extension": [ - 1, - { - "extensions": [ - ".js", - ".jsx" - ] - } - ], - "import/extensions": 0, - "import/no-unresolved": 0, - "import/no-extraneous-dependencies": 0, - "prefer-destructuring": 0, - "no-param-reassign": 0, - "no-return-assign": 0, - "max-len": 0, - "consistent-return": 0, - "no-redeclare": 0, - "react/require-extension": 0, - "react/no-danger": 0, - "comma-dangle": [ - "error", - "always-multiline" - ], - "function-paren-newline": 0, - "object-curly-newline": 0, - "no-restricted-globals": 0, - "react/prefer-stateless-function": 0 - } -} diff --git a/blocks/FilterWithSearch/.gitignore b/blocks/FilterWithSearch/.gitignore deleted file mode 100644 index cc45d6fb3c..0000000000 --- a/blocks/FilterWithSearch/.gitignore +++ /dev/null @@ -1,13 +0,0 @@ - -*.swp -*.dia~ -.idea/ -.DS_Store - -npm-debug.log -yarn-error.log -node_modules/ -tmp/ - -# happypack 缓存 -.happypack diff --git a/blocks/FilterWithSearch/package.json b/blocks/FilterWithSearch/package.json index 7a63f8e408..00cd669d12 100644 --- a/blocks/FilterWithSearch/package.json +++ b/blocks/FilterWithSearch/package.json @@ -27,14 +27,8 @@ "@icedesign/card": "^0.1.0" }, "devDependencies": { - "babel-eslint": "^8.0.3", - "eslint": "^4.13.1", - "eslint-plugin-babel": "^4.1.1", "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "eslint-plugin-import": "^2.8.0", - "eslint-config-airbnb": "^16.1.0", - "eslint-plugin-jsx-a11y": "^6.0.3", "@icedesign/skin": "^0.1.2" }, "blockConfig": { @@ -46,6 +40,5 @@ "sketchURL": "", "icelandURL": "", "themePackage": "@icedesign/skin" - }, - "scripts": {} + } } diff --git a/blocks/Footer/.editorconfig b/blocks/Footer/.editorconfig deleted file mode 100644 index 22ef5ace54..0000000000 --- a/blocks/Footer/.editorconfig +++ /dev/null @@ -1,16 +0,0 @@ -# http://editorconfig.org -root = true - -[*] -indent_style = space -indent_size = 2 -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -[*.md] -trim_trailing_whitespace = false - -[makefile] -indent_style = tab -indent_size = 4 diff --git a/blocks/Footer/.eslintignore b/blocks/Footer/.eslintignore deleted file mode 100644 index 3b21308fc7..0000000000 --- a/blocks/Footer/.eslintignore +++ /dev/null @@ -1,12 +0,0 @@ -# 忽略目录 -build/ -tests/ -demo/ -lib/ - -# node 覆盖率文件 -coverage/ - -# 忽略文件 -**/*-min.js -**/*.min.js \ No newline at end of file diff --git a/blocks/Footer/.eslintrc b/blocks/Footer/.eslintrc deleted file mode 100644 index 7a4e5bac48..0000000000 --- a/blocks/Footer/.eslintrc +++ /dev/null @@ -1,62 +0,0 @@ -{ - "root": true, - "parser": "babel-eslint", - "extends": "eslint-config-airbnb", - "parserOptions": { - "ecmaVersion": 6, - "ecmaFeatures": { - "jsx": true, - "experimentalObjectRestSpread": true - } - }, - "env": { - "browser": true - }, - "plugins": [ - "react", - "babel" - ], - "rules": { - "react/forbid-prop-types": 0, - "jsx-a11y/label-has-for": 0, - "jsx-a11y/no-static-element-interactions": 0, - "jsx-a11y/anchor-has-content": 0, - "jsx-a11y/click-events-have-key-events": 0, - "jsx-a11y/anchor-is-valid": 0, - "react/no-array-index-key": 0, - "func-names": 0, - "arrow-body-style": 0, - "no-use-before-define": 0, - "react/sort-comp": 0, - "react/prop-types": 0, - "react/jsx-first-prop-new-line": 0, - "react/jsx-filename-extension": [ - 1, - { - "extensions": [ - ".js", - ".jsx" - ] - } - ], - "import/extensions": 0, - "import/no-unresolved": 0, - "import/no-extraneous-dependencies": 0, - "prefer-destructuring": 0, - "no-param-reassign": 0, - "no-return-assign": 0, - "max-len": 0, - "consistent-return": 0, - "no-redeclare": 0, - "react/require-extension": 0, - "react/no-danger": 0, - "comma-dangle": [ - "error", - "always-multiline" - ], - "function-paren-newline": 0, - "object-curly-newline": 0, - "no-restricted-globals": 0, - "react/prefer-stateless-function": 0 - } -} diff --git a/blocks/Footer/.gitignore b/blocks/Footer/.gitignore deleted file mode 100644 index cc45d6fb3c..0000000000 --- a/blocks/Footer/.gitignore +++ /dev/null @@ -1,13 +0,0 @@ - -*.swp -*.dia~ -.idea/ -.DS_Store - -npm-debug.log -yarn-error.log -node_modules/ -tmp/ - -# happypack 缓存 -.happypack diff --git a/blocks/Footer/package.json b/blocks/Footer/package.json index 592500627c..c2a9202acd 100644 --- a/blocks/Footer/package.json +++ b/blocks/Footer/package.json @@ -8,7 +8,6 @@ "lib/", "mock/" ], - "scripts": {}, "author": { "name": "ICE Team", "email": "ice-admin@alibaba-inc.com" @@ -29,16 +28,10 @@ }, "devDependencies": { "@icedesign/skin": "^0.1.2", - "babel-eslint": "^8.0.3", "eslint-plugin-react": "^7.5.1", "react": "15.x", "react-copy-to-clipboard": "^4.2.3", "react-dom": "15.x", - "eslint": "^4.13.1", - "eslint-plugin-babel": "^4.1.1", - "eslint-plugin-import": "^2.8.0", - "eslint-config-airbnb": "^16.1.0", - "eslint-plugin-jsx-a11y": "^6.0.3", "@icedesign/demo-layout": "^0.1.0" }, "blockConfig": { diff --git a/blocks/FooterInfo/.editorconfig b/blocks/FooterInfo/.editorconfig deleted file mode 100644 index 22ef5ace54..0000000000 --- a/blocks/FooterInfo/.editorconfig +++ /dev/null @@ -1,16 +0,0 @@ -# http://editorconfig.org -root = true - -[*] -indent_style = space -indent_size = 2 -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -[*.md] -trim_trailing_whitespace = false - -[makefile] -indent_style = tab -indent_size = 4 diff --git a/blocks/FooterInfo/.eslintignore b/blocks/FooterInfo/.eslintignore deleted file mode 100644 index 3b21308fc7..0000000000 --- a/blocks/FooterInfo/.eslintignore +++ /dev/null @@ -1,12 +0,0 @@ -# 忽略目录 -build/ -tests/ -demo/ -lib/ - -# node 覆盖率文件 -coverage/ - -# 忽略文件 -**/*-min.js -**/*.min.js \ No newline at end of file diff --git a/blocks/FooterInfo/.eslintrc b/blocks/FooterInfo/.eslintrc deleted file mode 100644 index 7a4e5bac48..0000000000 --- a/blocks/FooterInfo/.eslintrc +++ /dev/null @@ -1,62 +0,0 @@ -{ - "root": true, - "parser": "babel-eslint", - "extends": "eslint-config-airbnb", - "parserOptions": { - "ecmaVersion": 6, - "ecmaFeatures": { - "jsx": true, - "experimentalObjectRestSpread": true - } - }, - "env": { - "browser": true - }, - "plugins": [ - "react", - "babel" - ], - "rules": { - "react/forbid-prop-types": 0, - "jsx-a11y/label-has-for": 0, - "jsx-a11y/no-static-element-interactions": 0, - "jsx-a11y/anchor-has-content": 0, - "jsx-a11y/click-events-have-key-events": 0, - "jsx-a11y/anchor-is-valid": 0, - "react/no-array-index-key": 0, - "func-names": 0, - "arrow-body-style": 0, - "no-use-before-define": 0, - "react/sort-comp": 0, - "react/prop-types": 0, - "react/jsx-first-prop-new-line": 0, - "react/jsx-filename-extension": [ - 1, - { - "extensions": [ - ".js", - ".jsx" - ] - } - ], - "import/extensions": 0, - "import/no-unresolved": 0, - "import/no-extraneous-dependencies": 0, - "prefer-destructuring": 0, - "no-param-reassign": 0, - "no-return-assign": 0, - "max-len": 0, - "consistent-return": 0, - "no-redeclare": 0, - "react/require-extension": 0, - "react/no-danger": 0, - "comma-dangle": [ - "error", - "always-multiline" - ], - "function-paren-newline": 0, - "object-curly-newline": 0, - "no-restricted-globals": 0, - "react/prefer-stateless-function": 0 - } -} diff --git a/blocks/FooterInfo/.gitignore b/blocks/FooterInfo/.gitignore deleted file mode 100644 index cc45d6fb3c..0000000000 --- a/blocks/FooterInfo/.gitignore +++ /dev/null @@ -1,13 +0,0 @@ - -*.swp -*.dia~ -.idea/ -.DS_Store - -npm-debug.log -yarn-error.log -node_modules/ -tmp/ - -# happypack 缓存 -.happypack diff --git a/blocks/FooterInfo/package.json b/blocks/FooterInfo/package.json index 6b5da5b9f6..70accc0ab9 100644 --- a/blocks/FooterInfo/package.json +++ b/blocks/FooterInfo/package.json @@ -8,7 +8,6 @@ "lib/", "mock/" ], - "scripts": {}, "author": { "name": "ICE Team", "email": "ice-admin@alibaba-inc.com" @@ -29,16 +28,10 @@ }, "devDependencies": { "@icedesign/skin": "^0.1.2", - "babel-eslint": "^8.0.3", "eslint-plugin-react": "^7.5.1", "react": "15.x", "react-copy-to-clipboard": "^4.2.3", "react-dom": "15.x", - "eslint": "^4.13.1", - "eslint-plugin-babel": "^4.1.1", - "eslint-plugin-import": "^2.8.0", - "eslint-config-airbnb": "^16.1.0", - "eslint-plugin-jsx-a11y": "^6.0.3", "@icedesign/demo-layout": "^0.1.0" }, "blockConfig": { diff --git a/blocks/ForgetPasswordForm/.editorconfig b/blocks/ForgetPasswordForm/.editorconfig deleted file mode 100644 index 22ef5ace54..0000000000 --- a/blocks/ForgetPasswordForm/.editorconfig +++ /dev/null @@ -1,16 +0,0 @@ -# http://editorconfig.org -root = true - -[*] -indent_style = space -indent_size = 2 -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -[*.md] -trim_trailing_whitespace = false - -[makefile] -indent_style = tab -indent_size = 4 diff --git a/blocks/ForgetPasswordForm/.eslintignore b/blocks/ForgetPasswordForm/.eslintignore deleted file mode 100644 index 3b21308fc7..0000000000 --- a/blocks/ForgetPasswordForm/.eslintignore +++ /dev/null @@ -1,12 +0,0 @@ -# 忽略目录 -build/ -tests/ -demo/ -lib/ - -# node 覆盖率文件 -coverage/ - -# 忽略文件 -**/*-min.js -**/*.min.js \ No newline at end of file diff --git a/blocks/ForgetPasswordForm/.eslintrc b/blocks/ForgetPasswordForm/.eslintrc deleted file mode 100644 index 7a4e5bac48..0000000000 --- a/blocks/ForgetPasswordForm/.eslintrc +++ /dev/null @@ -1,62 +0,0 @@ -{ - "root": true, - "parser": "babel-eslint", - "extends": "eslint-config-airbnb", - "parserOptions": { - "ecmaVersion": 6, - "ecmaFeatures": { - "jsx": true, - "experimentalObjectRestSpread": true - } - }, - "env": { - "browser": true - }, - "plugins": [ - "react", - "babel" - ], - "rules": { - "react/forbid-prop-types": 0, - "jsx-a11y/label-has-for": 0, - "jsx-a11y/no-static-element-interactions": 0, - "jsx-a11y/anchor-has-content": 0, - "jsx-a11y/click-events-have-key-events": 0, - "jsx-a11y/anchor-is-valid": 0, - "react/no-array-index-key": 0, - "func-names": 0, - "arrow-body-style": 0, - "no-use-before-define": 0, - "react/sort-comp": 0, - "react/prop-types": 0, - "react/jsx-first-prop-new-line": 0, - "react/jsx-filename-extension": [ - 1, - { - "extensions": [ - ".js", - ".jsx" - ] - } - ], - "import/extensions": 0, - "import/no-unresolved": 0, - "import/no-extraneous-dependencies": 0, - "prefer-destructuring": 0, - "no-param-reassign": 0, - "no-return-assign": 0, - "max-len": 0, - "consistent-return": 0, - "no-redeclare": 0, - "react/require-extension": 0, - "react/no-danger": 0, - "comma-dangle": [ - "error", - "always-multiline" - ], - "function-paren-newline": 0, - "object-curly-newline": 0, - "no-restricted-globals": 0, - "react/prefer-stateless-function": 0 - } -} diff --git a/blocks/ForgetPasswordForm/.gitignore b/blocks/ForgetPasswordForm/.gitignore deleted file mode 100644 index cc45d6fb3c..0000000000 --- a/blocks/ForgetPasswordForm/.gitignore +++ /dev/null @@ -1,13 +0,0 @@ - -*.swp -*.dia~ -.idea/ -.DS_Store - -npm-debug.log -yarn-error.log -node_modules/ -tmp/ - -# happypack 缓存 -.happypack diff --git a/blocks/ForgetPasswordForm/package.json b/blocks/ForgetPasswordForm/package.json index f0986fe1c0..ae6d0508bc 100644 --- a/blocks/ForgetPasswordForm/package.json +++ b/blocks/ForgetPasswordForm/package.json @@ -8,7 +8,6 @@ "lib/", "mock/" ], - "scripts": {}, "author": { "name": "ICE Team", "email": "ice-admin@alibaba-inc.com" @@ -30,16 +29,10 @@ }, "devDependencies": { "@icedesign/skin": "^0.1.2", - "babel-eslint": "^8.0.3", "eslint-plugin-react": "^7.5.1", "react": "15.x", "react-copy-to-clipboard": "^4.2.3", "react-dom": "15.x", - "eslint": "^4.13.1", - "eslint-plugin-babel": "^4.1.1", - "eslint-plugin-import": "^2.8.0", - "eslint-config-airbnb": "^16.1.0", - "eslint-plugin-jsx-a11y": "^6.0.3", "@icedesign/demo-layout": "^0.1.0" }, "blockConfig": { diff --git a/blocks/InfoDisplayTab/.editorconfig b/blocks/InfoDisplayTab/.editorconfig deleted file mode 100644 index 22ef5ace54..0000000000 --- a/blocks/InfoDisplayTab/.editorconfig +++ /dev/null @@ -1,16 +0,0 @@ -# http://editorconfig.org -root = true - -[*] -indent_style = space -indent_size = 2 -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -[*.md] -trim_trailing_whitespace = false - -[makefile] -indent_style = tab -indent_size = 4 diff --git a/blocks/InfoDisplayTab/.eslintignore b/blocks/InfoDisplayTab/.eslintignore deleted file mode 100644 index 3b21308fc7..0000000000 --- a/blocks/InfoDisplayTab/.eslintignore +++ /dev/null @@ -1,12 +0,0 @@ -# 忽略目录 -build/ -tests/ -demo/ -lib/ - -# node 覆盖率文件 -coverage/ - -# 忽略文件 -**/*-min.js -**/*.min.js \ No newline at end of file diff --git a/blocks/InfoDisplayTab/.eslintrc b/blocks/InfoDisplayTab/.eslintrc deleted file mode 100644 index 7a4e5bac48..0000000000 --- a/blocks/InfoDisplayTab/.eslintrc +++ /dev/null @@ -1,62 +0,0 @@ -{ - "root": true, - "parser": "babel-eslint", - "extends": "eslint-config-airbnb", - "parserOptions": { - "ecmaVersion": 6, - "ecmaFeatures": { - "jsx": true, - "experimentalObjectRestSpread": true - } - }, - "env": { - "browser": true - }, - "plugins": [ - "react", - "babel" - ], - "rules": { - "react/forbid-prop-types": 0, - "jsx-a11y/label-has-for": 0, - "jsx-a11y/no-static-element-interactions": 0, - "jsx-a11y/anchor-has-content": 0, - "jsx-a11y/click-events-have-key-events": 0, - "jsx-a11y/anchor-is-valid": 0, - "react/no-array-index-key": 0, - "func-names": 0, - "arrow-body-style": 0, - "no-use-before-define": 0, - "react/sort-comp": 0, - "react/prop-types": 0, - "react/jsx-first-prop-new-line": 0, - "react/jsx-filename-extension": [ - 1, - { - "extensions": [ - ".js", - ".jsx" - ] - } - ], - "import/extensions": 0, - "import/no-unresolved": 0, - "import/no-extraneous-dependencies": 0, - "prefer-destructuring": 0, - "no-param-reassign": 0, - "no-return-assign": 0, - "max-len": 0, - "consistent-return": 0, - "no-redeclare": 0, - "react/require-extension": 0, - "react/no-danger": 0, - "comma-dangle": [ - "error", - "always-multiline" - ], - "function-paren-newline": 0, - "object-curly-newline": 0, - "no-restricted-globals": 0, - "react/prefer-stateless-function": 0 - } -} diff --git a/blocks/InfoDisplayTab/.gitignore b/blocks/InfoDisplayTab/.gitignore deleted file mode 100644 index cc45d6fb3c..0000000000 --- a/blocks/InfoDisplayTab/.gitignore +++ /dev/null @@ -1,13 +0,0 @@ - -*.swp -*.dia~ -.idea/ -.DS_Store - -npm-debug.log -yarn-error.log -node_modules/ -tmp/ - -# happypack 缓存 -.happypack diff --git a/blocks/InfoDisplayTab/package.json b/blocks/InfoDisplayTab/package.json index 943aa14b04..0dbdcdf154 100644 --- a/blocks/InfoDisplayTab/package.json +++ b/blocks/InfoDisplayTab/package.json @@ -30,14 +30,8 @@ "@icedesign/ellipsis": "^0.1.0" }, "devDependencies": { - "babel-eslint": "^8.0.3", - "eslint": "^4.13.1", - "eslint-plugin-babel": "^4.1.1", "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "eslint-plugin-import": "^2.8.0", - "eslint-config-airbnb": "^16.1.0", - "eslint-plugin-jsx-a11y": "^6.0.3", "@icedesign/skin": "^0.1.2" }, "blockConfig": { @@ -49,6 +43,5 @@ "sketchURL": "", "icelandURL": "", "themePackage": "@icedesign/skin" - }, - "scripts": {} + } } diff --git a/blocks/InfoDisplayTable/.editorconfig b/blocks/InfoDisplayTable/.editorconfig deleted file mode 100644 index 22ef5ace54..0000000000 --- a/blocks/InfoDisplayTable/.editorconfig +++ /dev/null @@ -1,16 +0,0 @@ -# http://editorconfig.org -root = true - -[*] -indent_style = space -indent_size = 2 -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -[*.md] -trim_trailing_whitespace = false - -[makefile] -indent_style = tab -indent_size = 4 diff --git a/blocks/InfoDisplayTable/.eslintignore b/blocks/InfoDisplayTable/.eslintignore deleted file mode 100644 index 3b21308fc7..0000000000 --- a/blocks/InfoDisplayTable/.eslintignore +++ /dev/null @@ -1,12 +0,0 @@ -# 忽略目录 -build/ -tests/ -demo/ -lib/ - -# node 覆盖率文件 -coverage/ - -# 忽略文件 -**/*-min.js -**/*.min.js \ No newline at end of file diff --git a/blocks/InfoDisplayTable/.eslintrc b/blocks/InfoDisplayTable/.eslintrc deleted file mode 100644 index 7a4e5bac48..0000000000 --- a/blocks/InfoDisplayTable/.eslintrc +++ /dev/null @@ -1,62 +0,0 @@ -{ - "root": true, - "parser": "babel-eslint", - "extends": "eslint-config-airbnb", - "parserOptions": { - "ecmaVersion": 6, - "ecmaFeatures": { - "jsx": true, - "experimentalObjectRestSpread": true - } - }, - "env": { - "browser": true - }, - "plugins": [ - "react", - "babel" - ], - "rules": { - "react/forbid-prop-types": 0, - "jsx-a11y/label-has-for": 0, - "jsx-a11y/no-static-element-interactions": 0, - "jsx-a11y/anchor-has-content": 0, - "jsx-a11y/click-events-have-key-events": 0, - "jsx-a11y/anchor-is-valid": 0, - "react/no-array-index-key": 0, - "func-names": 0, - "arrow-body-style": 0, - "no-use-before-define": 0, - "react/sort-comp": 0, - "react/prop-types": 0, - "react/jsx-first-prop-new-line": 0, - "react/jsx-filename-extension": [ - 1, - { - "extensions": [ - ".js", - ".jsx" - ] - } - ], - "import/extensions": 0, - "import/no-unresolved": 0, - "import/no-extraneous-dependencies": 0, - "prefer-destructuring": 0, - "no-param-reassign": 0, - "no-return-assign": 0, - "max-len": 0, - "consistent-return": 0, - "no-redeclare": 0, - "react/require-extension": 0, - "react/no-danger": 0, - "comma-dangle": [ - "error", - "always-multiline" - ], - "function-paren-newline": 0, - "object-curly-newline": 0, - "no-restricted-globals": 0, - "react/prefer-stateless-function": 0 - } -} diff --git a/blocks/InfoDisplayTable/.gitignore b/blocks/InfoDisplayTable/.gitignore deleted file mode 100644 index cc45d6fb3c..0000000000 --- a/blocks/InfoDisplayTable/.gitignore +++ /dev/null @@ -1,13 +0,0 @@ - -*.swp -*.dia~ -.idea/ -.DS_Store - -npm-debug.log -yarn-error.log -node_modules/ -tmp/ - -# happypack 缓存 -.happypack diff --git a/blocks/InfoDisplayTable/package.json b/blocks/InfoDisplayTable/package.json index 978f50846d..4e26078e3f 100644 --- a/blocks/InfoDisplayTable/package.json +++ b/blocks/InfoDisplayTable/package.json @@ -28,14 +28,8 @@ "@icedesign/card": "^0.1.0" }, "devDependencies": { - "babel-eslint": "^8.0.3", - "eslint": "^4.13.1", - "eslint-plugin-babel": "^4.1.1", "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "eslint-plugin-import": "^2.8.0", - "eslint-config-airbnb": "^16.1.0", - "eslint-plugin-jsx-a11y": "^6.0.3", "@icedesign/skin": "^0.1.2" }, "blockConfig": { @@ -47,6 +41,5 @@ "sketchURL": "", "icelandURL": "", "themePackage": "@icedesign/skin" - }, - "scripts": {} + } } diff --git a/blocks/JoinUs/.editorconfig b/blocks/JoinUs/.editorconfig deleted file mode 100644 index 22ef5ace54..0000000000 --- a/blocks/JoinUs/.editorconfig +++ /dev/null @@ -1,16 +0,0 @@ -# http://editorconfig.org -root = true - -[*] -indent_style = space -indent_size = 2 -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -[*.md] -trim_trailing_whitespace = false - -[makefile] -indent_style = tab -indent_size = 4 diff --git a/blocks/JoinUs/.eslintignore b/blocks/JoinUs/.eslintignore deleted file mode 100644 index 3b21308fc7..0000000000 --- a/blocks/JoinUs/.eslintignore +++ /dev/null @@ -1,12 +0,0 @@ -# 忽略目录 -build/ -tests/ -demo/ -lib/ - -# node 覆盖率文件 -coverage/ - -# 忽略文件 -**/*-min.js -**/*.min.js \ No newline at end of file diff --git a/blocks/JoinUs/.eslintrc b/blocks/JoinUs/.eslintrc deleted file mode 100644 index 7a4e5bac48..0000000000 --- a/blocks/JoinUs/.eslintrc +++ /dev/null @@ -1,62 +0,0 @@ -{ - "root": true, - "parser": "babel-eslint", - "extends": "eslint-config-airbnb", - "parserOptions": { - "ecmaVersion": 6, - "ecmaFeatures": { - "jsx": true, - "experimentalObjectRestSpread": true - } - }, - "env": { - "browser": true - }, - "plugins": [ - "react", - "babel" - ], - "rules": { - "react/forbid-prop-types": 0, - "jsx-a11y/label-has-for": 0, - "jsx-a11y/no-static-element-interactions": 0, - "jsx-a11y/anchor-has-content": 0, - "jsx-a11y/click-events-have-key-events": 0, - "jsx-a11y/anchor-is-valid": 0, - "react/no-array-index-key": 0, - "func-names": 0, - "arrow-body-style": 0, - "no-use-before-define": 0, - "react/sort-comp": 0, - "react/prop-types": 0, - "react/jsx-first-prop-new-line": 0, - "react/jsx-filename-extension": [ - 1, - { - "extensions": [ - ".js", - ".jsx" - ] - } - ], - "import/extensions": 0, - "import/no-unresolved": 0, - "import/no-extraneous-dependencies": 0, - "prefer-destructuring": 0, - "no-param-reassign": 0, - "no-return-assign": 0, - "max-len": 0, - "consistent-return": 0, - "no-redeclare": 0, - "react/require-extension": 0, - "react/no-danger": 0, - "comma-dangle": [ - "error", - "always-multiline" - ], - "function-paren-newline": 0, - "object-curly-newline": 0, - "no-restricted-globals": 0, - "react/prefer-stateless-function": 0 - } -} diff --git a/blocks/JoinUs/.gitignore b/blocks/JoinUs/.gitignore deleted file mode 100644 index cc45d6fb3c..0000000000 --- a/blocks/JoinUs/.gitignore +++ /dev/null @@ -1,13 +0,0 @@ - -*.swp -*.dia~ -.idea/ -.DS_Store - -npm-debug.log -yarn-error.log -node_modules/ -tmp/ - -# happypack 缓存 -.happypack diff --git a/blocks/JoinUs/package.json b/blocks/JoinUs/package.json index e6e2478014..c813e6ab5d 100644 --- a/blocks/JoinUs/package.json +++ b/blocks/JoinUs/package.json @@ -8,7 +8,6 @@ "lib/", "mock/" ], - "scripts": {}, "author": { "name": "ICE Team", "email": "ice-admin@alibaba-inc.com" @@ -30,16 +29,10 @@ }, "devDependencies": { "@icedesign/skin": "^0.1.2", - "babel-eslint": "^8.0.3", "eslint-plugin-react": "^7.5.1", "react": "15.x", "react-copy-to-clipboard": "^4.2.3", "react-dom": "15.x", - "eslint": "^4.13.1", - "eslint-plugin-babel": "^4.1.1", - "eslint-plugin-import": "^2.8.0", - "eslint-config-airbnb": "^16.1.0", - "eslint-plugin-jsx-a11y": "^6.0.3", "@icedesign/demo-layout": "^0.1.0" }, "blockConfig": { diff --git a/blocks/LandingIntroBanner/.editorconfig b/blocks/LandingIntroBanner/.editorconfig deleted file mode 100644 index 22ef5ace54..0000000000 --- a/blocks/LandingIntroBanner/.editorconfig +++ /dev/null @@ -1,16 +0,0 @@ -# http://editorconfig.org -root = true - -[*] -indent_style = space -indent_size = 2 -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -[*.md] -trim_trailing_whitespace = false - -[makefile] -indent_style = tab -indent_size = 4 diff --git a/blocks/LandingIntroBanner/.eslintignore b/blocks/LandingIntroBanner/.eslintignore deleted file mode 100644 index 2d5ec592a3..0000000000 --- a/blocks/LandingIntroBanner/.eslintignore +++ /dev/null @@ -1,12 +0,0 @@ -# 忽略目录 -build/ -tests/ -demo/ -lib/ - -# node 覆盖率文件 -coverage/ - -# 忽略文件 -**/*-min.js -**/*.min.js diff --git a/blocks/LandingIntroBanner/.eslintrc b/blocks/LandingIntroBanner/.eslintrc deleted file mode 100644 index 7cc397841e..0000000000 --- a/blocks/LandingIntroBanner/.eslintrc +++ /dev/null @@ -1,61 +0,0 @@ -{ - "root": true, - "parser": "babel-eslint", - "extends": "eslint-config-airbnb", - "parserOptions": { - "ecmaVersion": 6, - "ecmaFeatures": { - "jsx": true, - "experimentalObjectRestSpread": true - } - }, - "env": { - "browser": true - }, - "plugins": [ - "react", - "babel" - ], - "rules": { - "react/forbid-prop-types": 0, - "jsx-a11y/label-has-for": 0, - "jsx-a11y/no-static-element-interactions": 0, - "jsx-a11y/anchor-has-content": 0, - "jsx-a11y/click-events-have-key-events": 0, - "jsx-a11y/anchor-is-valid": 0, - "react/no-array-index-key": 0, - "func-names": 0, - "arrow-body-style": 0, - "no-use-before-define": 1, - "react/sort-comp": 0, - "react/prop-types": 0, - "react/jsx-first-prop-new-line": 0, - "react/jsx-filename-extension": [ - 1, - { - "extensions": [ - ".js", - ".jsx" - ] - } - ], - "import/extensions": 0, - "import/no-unresolved": 0, - "import/no-extraneous-dependencies": 0, - "prefer-destructuring": 0, - "no-param-reassign": 0, - "no-return-assign": 0, - "max-len": 0, - "consistent-return": 0, - "no-redeclare": 0, - "react/require-extension": 0, - "react/no-danger": 0, - "comma-dangle": [ - "error", - "always-multiline" - ], - "function-paren-newline": 0, - "object-curly-newline": 0, - "no-restricted-globals": 0 - } -} diff --git a/blocks/LandingIntroBanner/.gitignore b/blocks/LandingIntroBanner/.gitignore deleted file mode 100644 index cc45d6fb3c..0000000000 --- a/blocks/LandingIntroBanner/.gitignore +++ /dev/null @@ -1,13 +0,0 @@ - -*.swp -*.dia~ -.idea/ -.DS_Store - -npm-debug.log -yarn-error.log -node_modules/ -tmp/ - -# happypack 缓存 -.happypack diff --git a/blocks/LandingIntroBanner/package.json b/blocks/LandingIntroBanner/package.json index 2f8f1c5b9a..c0157ddf93 100644 --- a/blocks/LandingIntroBanner/package.json +++ b/blocks/LandingIntroBanner/package.json @@ -27,14 +27,8 @@ "@icedesign/base": "^0.1.0" }, "devDependencies": { - "babel-eslint": "^8.0.3", - "eslint": "^4.13.1", - "eslint-plugin-babel": "^4.1.1", "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "eslint-plugin-import": "^2.8.0", - "eslint-config-airbnb": "^16.1.0", - "eslint-plugin-jsx-a11y": "^6.0.3", "@icedesign/skin": "^0.1.3" }, "blockConfig": { @@ -46,9 +40,5 @@ "sketchURL": "", "icelandURL": "", "themePackage": "@icedesign/skin" - }, - "scripts": { - "lint": "eslint . --ext '.js,.jsx' --fix", - "prepublish": "npm run lint" } } diff --git a/blocks/LeftContentDisplay/.editorconfig b/blocks/LeftContentDisplay/.editorconfig deleted file mode 100644 index 22ef5ace54..0000000000 --- a/blocks/LeftContentDisplay/.editorconfig +++ /dev/null @@ -1,16 +0,0 @@ -# http://editorconfig.org -root = true - -[*] -indent_style = space -indent_size = 2 -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -[*.md] -trim_trailing_whitespace = false - -[makefile] -indent_style = tab -indent_size = 4 diff --git a/blocks/LeftContentDisplay/.eslintignore b/blocks/LeftContentDisplay/.eslintignore deleted file mode 100644 index 3b21308fc7..0000000000 --- a/blocks/LeftContentDisplay/.eslintignore +++ /dev/null @@ -1,12 +0,0 @@ -# 忽略目录 -build/ -tests/ -demo/ -lib/ - -# node 覆盖率文件 -coverage/ - -# 忽略文件 -**/*-min.js -**/*.min.js \ No newline at end of file diff --git a/blocks/LeftContentDisplay/.eslintrc b/blocks/LeftContentDisplay/.eslintrc deleted file mode 100644 index 7a4e5bac48..0000000000 --- a/blocks/LeftContentDisplay/.eslintrc +++ /dev/null @@ -1,62 +0,0 @@ -{ - "root": true, - "parser": "babel-eslint", - "extends": "eslint-config-airbnb", - "parserOptions": { - "ecmaVersion": 6, - "ecmaFeatures": { - "jsx": true, - "experimentalObjectRestSpread": true - } - }, - "env": { - "browser": true - }, - "plugins": [ - "react", - "babel" - ], - "rules": { - "react/forbid-prop-types": 0, - "jsx-a11y/label-has-for": 0, - "jsx-a11y/no-static-element-interactions": 0, - "jsx-a11y/anchor-has-content": 0, - "jsx-a11y/click-events-have-key-events": 0, - "jsx-a11y/anchor-is-valid": 0, - "react/no-array-index-key": 0, - "func-names": 0, - "arrow-body-style": 0, - "no-use-before-define": 0, - "react/sort-comp": 0, - "react/prop-types": 0, - "react/jsx-first-prop-new-line": 0, - "react/jsx-filename-extension": [ - 1, - { - "extensions": [ - ".js", - ".jsx" - ] - } - ], - "import/extensions": 0, - "import/no-unresolved": 0, - "import/no-extraneous-dependencies": 0, - "prefer-destructuring": 0, - "no-param-reassign": 0, - "no-return-assign": 0, - "max-len": 0, - "consistent-return": 0, - "no-redeclare": 0, - "react/require-extension": 0, - "react/no-danger": 0, - "comma-dangle": [ - "error", - "always-multiline" - ], - "function-paren-newline": 0, - "object-curly-newline": 0, - "no-restricted-globals": 0, - "react/prefer-stateless-function": 0 - } -} diff --git a/blocks/LeftContentDisplay/.gitignore b/blocks/LeftContentDisplay/.gitignore deleted file mode 100644 index cc45d6fb3c..0000000000 --- a/blocks/LeftContentDisplay/.gitignore +++ /dev/null @@ -1,13 +0,0 @@ - -*.swp -*.dia~ -.idea/ -.DS_Store - -npm-debug.log -yarn-error.log -node_modules/ -tmp/ - -# happypack 缓存 -.happypack diff --git a/blocks/LeftContentDisplay/package.json b/blocks/LeftContentDisplay/package.json index cf11a3ddd0..94a8ef7c67 100644 --- a/blocks/LeftContentDisplay/package.json +++ b/blocks/LeftContentDisplay/package.json @@ -8,7 +8,6 @@ "lib/", "mock/" ], - "scripts": {}, "author": { "name": "ICE Team", "email": "ice-admin@alibaba-inc.com" @@ -29,16 +28,10 @@ }, "devDependencies": { "@icedesign/skin": "^0.1.2", - "babel-eslint": "^8.0.3", "eslint-plugin-react": "^7.5.1", "react": "15.x", "react-copy-to-clipboard": "^4.2.3", "react-dom": "15.x", - "eslint": "^4.13.1", - "eslint-plugin-babel": "^4.1.1", - "eslint-plugin-import": "^2.8.0", - "eslint-config-airbnb": "^16.1.0", - "eslint-plugin-jsx-a11y": "^6.0.3", "@icedesign/demo-layout": "^0.1.0" }, "blockConfig": { diff --git a/blocks/LiteTable/.editorconfig b/blocks/LiteTable/.editorconfig deleted file mode 100644 index 22ef5ace54..0000000000 --- a/blocks/LiteTable/.editorconfig +++ /dev/null @@ -1,16 +0,0 @@ -# http://editorconfig.org -root = true - -[*] -indent_style = space -indent_size = 2 -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -[*.md] -trim_trailing_whitespace = false - -[makefile] -indent_style = tab -indent_size = 4 diff --git a/blocks/LiteTable/.eslintignore b/blocks/LiteTable/.eslintignore deleted file mode 100644 index 3b21308fc7..0000000000 --- a/blocks/LiteTable/.eslintignore +++ /dev/null @@ -1,12 +0,0 @@ -# 忽略目录 -build/ -tests/ -demo/ -lib/ - -# node 覆盖率文件 -coverage/ - -# 忽略文件 -**/*-min.js -**/*.min.js \ No newline at end of file diff --git a/blocks/LiteTable/.eslintrc b/blocks/LiteTable/.eslintrc deleted file mode 100644 index 7a4e5bac48..0000000000 --- a/blocks/LiteTable/.eslintrc +++ /dev/null @@ -1,62 +0,0 @@ -{ - "root": true, - "parser": "babel-eslint", - "extends": "eslint-config-airbnb", - "parserOptions": { - "ecmaVersion": 6, - "ecmaFeatures": { - "jsx": true, - "experimentalObjectRestSpread": true - } - }, - "env": { - "browser": true - }, - "plugins": [ - "react", - "babel" - ], - "rules": { - "react/forbid-prop-types": 0, - "jsx-a11y/label-has-for": 0, - "jsx-a11y/no-static-element-interactions": 0, - "jsx-a11y/anchor-has-content": 0, - "jsx-a11y/click-events-have-key-events": 0, - "jsx-a11y/anchor-is-valid": 0, - "react/no-array-index-key": 0, - "func-names": 0, - "arrow-body-style": 0, - "no-use-before-define": 0, - "react/sort-comp": 0, - "react/prop-types": 0, - "react/jsx-first-prop-new-line": 0, - "react/jsx-filename-extension": [ - 1, - { - "extensions": [ - ".js", - ".jsx" - ] - } - ], - "import/extensions": 0, - "import/no-unresolved": 0, - "import/no-extraneous-dependencies": 0, - "prefer-destructuring": 0, - "no-param-reassign": 0, - "no-return-assign": 0, - "max-len": 0, - "consistent-return": 0, - "no-redeclare": 0, - "react/require-extension": 0, - "react/no-danger": 0, - "comma-dangle": [ - "error", - "always-multiline" - ], - "function-paren-newline": 0, - "object-curly-newline": 0, - "no-restricted-globals": 0, - "react/prefer-stateless-function": 0 - } -} diff --git a/blocks/LiteTable/.gitignore b/blocks/LiteTable/.gitignore deleted file mode 100644 index cc45d6fb3c..0000000000 --- a/blocks/LiteTable/.gitignore +++ /dev/null @@ -1,13 +0,0 @@ - -*.swp -*.dia~ -.idea/ -.DS_Store - -npm-debug.log -yarn-error.log -node_modules/ -tmp/ - -# happypack 缓存 -.happypack diff --git a/blocks/LiteTable/package.json b/blocks/LiteTable/package.json index e4720337f0..be123d5b81 100644 --- a/blocks/LiteTable/package.json +++ b/blocks/LiteTable/package.json @@ -8,7 +8,6 @@ "lib/", "mock/" ], - "scripts": {}, "author": { "name": "ICE Team", "email": "ice-admin@alibaba-inc.com" @@ -29,16 +28,10 @@ }, "devDependencies": { "@icedesign/skin": "^0.1.2", - "babel-eslint": "^8.0.3", "eslint-plugin-react": "^7.5.1", "react": "15.x", "react-copy-to-clipboard": "^4.2.3", "react-dom": "15.x", - "eslint": "^4.13.1", - "eslint-plugin-babel": "^4.1.1", - "eslint-plugin-import": "^2.8.0", - "eslint-config-airbnb": "^16.1.0", - "eslint-plugin-jsx-a11y": "^6.0.3", "@icedesign/demo-layout": "^0.1.0" }, "blockConfig": { diff --git a/blocks/MessageList/.editorconfig b/blocks/MessageList/.editorconfig deleted file mode 100644 index 22ef5ace54..0000000000 --- a/blocks/MessageList/.editorconfig +++ /dev/null @@ -1,16 +0,0 @@ -# http://editorconfig.org -root = true - -[*] -indent_style = space -indent_size = 2 -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -[*.md] -trim_trailing_whitespace = false - -[makefile] -indent_style = tab -indent_size = 4 diff --git a/blocks/MessageList/.eslintignore b/blocks/MessageList/.eslintignore deleted file mode 100644 index 3b21308fc7..0000000000 --- a/blocks/MessageList/.eslintignore +++ /dev/null @@ -1,12 +0,0 @@ -# 忽略目录 -build/ -tests/ -demo/ -lib/ - -# node 覆盖率文件 -coverage/ - -# 忽略文件 -**/*-min.js -**/*.min.js \ No newline at end of file diff --git a/blocks/MessageList/.eslintrc b/blocks/MessageList/.eslintrc deleted file mode 100644 index 7a4e5bac48..0000000000 --- a/blocks/MessageList/.eslintrc +++ /dev/null @@ -1,62 +0,0 @@ -{ - "root": true, - "parser": "babel-eslint", - "extends": "eslint-config-airbnb", - "parserOptions": { - "ecmaVersion": 6, - "ecmaFeatures": { - "jsx": true, - "experimentalObjectRestSpread": true - } - }, - "env": { - "browser": true - }, - "plugins": [ - "react", - "babel" - ], - "rules": { - "react/forbid-prop-types": 0, - "jsx-a11y/label-has-for": 0, - "jsx-a11y/no-static-element-interactions": 0, - "jsx-a11y/anchor-has-content": 0, - "jsx-a11y/click-events-have-key-events": 0, - "jsx-a11y/anchor-is-valid": 0, - "react/no-array-index-key": 0, - "func-names": 0, - "arrow-body-style": 0, - "no-use-before-define": 0, - "react/sort-comp": 0, - "react/prop-types": 0, - "react/jsx-first-prop-new-line": 0, - "react/jsx-filename-extension": [ - 1, - { - "extensions": [ - ".js", - ".jsx" - ] - } - ], - "import/extensions": 0, - "import/no-unresolved": 0, - "import/no-extraneous-dependencies": 0, - "prefer-destructuring": 0, - "no-param-reassign": 0, - "no-return-assign": 0, - "max-len": 0, - "consistent-return": 0, - "no-redeclare": 0, - "react/require-extension": 0, - "react/no-danger": 0, - "comma-dangle": [ - "error", - "always-multiline" - ], - "function-paren-newline": 0, - "object-curly-newline": 0, - "no-restricted-globals": 0, - "react/prefer-stateless-function": 0 - } -} diff --git a/blocks/MessageList/.gitignore b/blocks/MessageList/.gitignore deleted file mode 100644 index cc45d6fb3c..0000000000 --- a/blocks/MessageList/.gitignore +++ /dev/null @@ -1,13 +0,0 @@ - -*.swp -*.dia~ -.idea/ -.DS_Store - -npm-debug.log -yarn-error.log -node_modules/ -tmp/ - -# happypack 缓存 -.happypack diff --git a/blocks/MessageList/package.json b/blocks/MessageList/package.json index b20eb682d9..09d2f293cb 100644 --- a/blocks/MessageList/package.json +++ b/blocks/MessageList/package.json @@ -27,14 +27,8 @@ "@icedesign/card": "^0.1.0" }, "devDependencies": { - "babel-eslint": "^8.0.3", - "eslint": "^4.13.1", - "eslint-plugin-babel": "^4.1.1", "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "eslint-plugin-import": "^2.8.0", - "eslint-config-airbnb": "^16.1.0", - "eslint-plugin-jsx-a11y": "^6.0.3", "@icedesign/skin": "^0.1.2" }, "blockConfig": { @@ -46,6 +40,5 @@ "sketchURL": "", "icelandURL": "", "themePackage": "@icedesign/skin" - }, - "scripts": {} + } } diff --git a/blocks/MonacoEditor/.editorconfig b/blocks/MonacoEditor/.editorconfig deleted file mode 100644 index 22ef5ace54..0000000000 --- a/blocks/MonacoEditor/.editorconfig +++ /dev/null @@ -1,16 +0,0 @@ -# http://editorconfig.org -root = true - -[*] -indent_style = space -indent_size = 2 -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -[*.md] -trim_trailing_whitespace = false - -[makefile] -indent_style = tab -indent_size = 4 diff --git a/blocks/MonacoEditor/.eslintignore b/blocks/MonacoEditor/.eslintignore deleted file mode 100644 index 3b21308fc7..0000000000 --- a/blocks/MonacoEditor/.eslintignore +++ /dev/null @@ -1,12 +0,0 @@ -# 忽略目录 -build/ -tests/ -demo/ -lib/ - -# node 覆盖率文件 -coverage/ - -# 忽略文件 -**/*-min.js -**/*.min.js \ No newline at end of file diff --git a/blocks/MonacoEditor/.eslintrc b/blocks/MonacoEditor/.eslintrc deleted file mode 100644 index 7a4e5bac48..0000000000 --- a/blocks/MonacoEditor/.eslintrc +++ /dev/null @@ -1,62 +0,0 @@ -{ - "root": true, - "parser": "babel-eslint", - "extends": "eslint-config-airbnb", - "parserOptions": { - "ecmaVersion": 6, - "ecmaFeatures": { - "jsx": true, - "experimentalObjectRestSpread": true - } - }, - "env": { - "browser": true - }, - "plugins": [ - "react", - "babel" - ], - "rules": { - "react/forbid-prop-types": 0, - "jsx-a11y/label-has-for": 0, - "jsx-a11y/no-static-element-interactions": 0, - "jsx-a11y/anchor-has-content": 0, - "jsx-a11y/click-events-have-key-events": 0, - "jsx-a11y/anchor-is-valid": 0, - "react/no-array-index-key": 0, - "func-names": 0, - "arrow-body-style": 0, - "no-use-before-define": 0, - "react/sort-comp": 0, - "react/prop-types": 0, - "react/jsx-first-prop-new-line": 0, - "react/jsx-filename-extension": [ - 1, - { - "extensions": [ - ".js", - ".jsx" - ] - } - ], - "import/extensions": 0, - "import/no-unresolved": 0, - "import/no-extraneous-dependencies": 0, - "prefer-destructuring": 0, - "no-param-reassign": 0, - "no-return-assign": 0, - "max-len": 0, - "consistent-return": 0, - "no-redeclare": 0, - "react/require-extension": 0, - "react/no-danger": 0, - "comma-dangle": [ - "error", - "always-multiline" - ], - "function-paren-newline": 0, - "object-curly-newline": 0, - "no-restricted-globals": 0, - "react/prefer-stateless-function": 0 - } -} diff --git a/blocks/MonacoEditor/.gitignore b/blocks/MonacoEditor/.gitignore deleted file mode 100644 index cc45d6fb3c..0000000000 --- a/blocks/MonacoEditor/.gitignore +++ /dev/null @@ -1,13 +0,0 @@ - -*.swp -*.dia~ -.idea/ -.DS_Store - -npm-debug.log -yarn-error.log -node_modules/ -tmp/ - -# happypack 缓存 -.happypack diff --git a/blocks/MonacoEditor/package.json b/blocks/MonacoEditor/package.json index e32fab0e7a..e75c18ce3e 100644 --- a/blocks/MonacoEditor/package.json +++ b/blocks/MonacoEditor/package.json @@ -8,7 +8,6 @@ "lib/", "mock/" ], - "scripts": {}, "author": { "name": "ICE Team", "email": "ice-admin@alibaba-inc.com" @@ -32,12 +31,6 @@ "devDependencies": { "@icedesign/demo-layout": "^0.1.2", "@icedesign/skin": "^0.1.2", - "babel-eslint": "^8.0.3", - "eslint": "^4.13.1", - "eslint-config-airbnb": "^16.1.0", - "eslint-plugin-babel": "^4.1.1", - "eslint-plugin-import": "^2.8.0", - "eslint-plugin-jsx-a11y": "^6.0.3", "eslint-plugin-react": "^7.5.1", "react": "15.x", "react-copy-to-clipboard": "^4.2.3", diff --git a/blocks/NotPermission/.editorconfig b/blocks/NotPermission/.editorconfig deleted file mode 100644 index 22ef5ace54..0000000000 --- a/blocks/NotPermission/.editorconfig +++ /dev/null @@ -1,16 +0,0 @@ -# http://editorconfig.org -root = true - -[*] -indent_style = space -indent_size = 2 -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -[*.md] -trim_trailing_whitespace = false - -[makefile] -indent_style = tab -indent_size = 4 diff --git a/blocks/NotPermission/.eslintignore b/blocks/NotPermission/.eslintignore deleted file mode 100644 index 3b21308fc7..0000000000 --- a/blocks/NotPermission/.eslintignore +++ /dev/null @@ -1,12 +0,0 @@ -# 忽略目录 -build/ -tests/ -demo/ -lib/ - -# node 覆盖率文件 -coverage/ - -# 忽略文件 -**/*-min.js -**/*.min.js \ No newline at end of file diff --git a/blocks/NotPermission/.eslintrc b/blocks/NotPermission/.eslintrc deleted file mode 100644 index 7a4e5bac48..0000000000 --- a/blocks/NotPermission/.eslintrc +++ /dev/null @@ -1,62 +0,0 @@ -{ - "root": true, - "parser": "babel-eslint", - "extends": "eslint-config-airbnb", - "parserOptions": { - "ecmaVersion": 6, - "ecmaFeatures": { - "jsx": true, - "experimentalObjectRestSpread": true - } - }, - "env": { - "browser": true - }, - "plugins": [ - "react", - "babel" - ], - "rules": { - "react/forbid-prop-types": 0, - "jsx-a11y/label-has-for": 0, - "jsx-a11y/no-static-element-interactions": 0, - "jsx-a11y/anchor-has-content": 0, - "jsx-a11y/click-events-have-key-events": 0, - "jsx-a11y/anchor-is-valid": 0, - "react/no-array-index-key": 0, - "func-names": 0, - "arrow-body-style": 0, - "no-use-before-define": 0, - "react/sort-comp": 0, - "react/prop-types": 0, - "react/jsx-first-prop-new-line": 0, - "react/jsx-filename-extension": [ - 1, - { - "extensions": [ - ".js", - ".jsx" - ] - } - ], - "import/extensions": 0, - "import/no-unresolved": 0, - "import/no-extraneous-dependencies": 0, - "prefer-destructuring": 0, - "no-param-reassign": 0, - "no-return-assign": 0, - "max-len": 0, - "consistent-return": 0, - "no-redeclare": 0, - "react/require-extension": 0, - "react/no-danger": 0, - "comma-dangle": [ - "error", - "always-multiline" - ], - "function-paren-newline": 0, - "object-curly-newline": 0, - "no-restricted-globals": 0, - "react/prefer-stateless-function": 0 - } -} diff --git a/blocks/NotPermission/.gitignore b/blocks/NotPermission/.gitignore deleted file mode 100644 index cc45d6fb3c..0000000000 --- a/blocks/NotPermission/.gitignore +++ /dev/null @@ -1,13 +0,0 @@ - -*.swp -*.dia~ -.idea/ -.DS_Store - -npm-debug.log -yarn-error.log -node_modules/ -tmp/ - -# happypack 缓存 -.happypack diff --git a/blocks/NotPermission/package.json b/blocks/NotPermission/package.json index ae218354f2..2787dcb966 100644 --- a/blocks/NotPermission/package.json +++ b/blocks/NotPermission/package.json @@ -8,7 +8,6 @@ "lib/", "mock/" ], - "scripts": {}, "author": { "name": "ICE Team", "email": "ice-admin@alibaba-inc.com" @@ -29,16 +28,10 @@ }, "devDependencies": { "@icedesign/skin": "^0.1.2", - "babel-eslint": "^8.0.3", "eslint-plugin-react": "^7.5.1", "react": "15.x", "react-copy-to-clipboard": "^4.2.3", "react-dom": "15.x", - "eslint": "^4.13.1", - "eslint-plugin-babel": "^4.1.1", - "eslint-plugin-import": "^2.8.0", - "eslint-config-airbnb": "^16.1.0", - "eslint-plugin-jsx-a11y": "^6.0.3", "@icedesign/demo-layout": "^0.1.0" }, "blockConfig": { diff --git a/blocks/OperationTable/.editorconfig b/blocks/OperationTable/.editorconfig deleted file mode 100644 index 22ef5ace54..0000000000 --- a/blocks/OperationTable/.editorconfig +++ /dev/null @@ -1,16 +0,0 @@ -# http://editorconfig.org -root = true - -[*] -indent_style = space -indent_size = 2 -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -[*.md] -trim_trailing_whitespace = false - -[makefile] -indent_style = tab -indent_size = 4 diff --git a/blocks/OperationTable/.eslintignore b/blocks/OperationTable/.eslintignore deleted file mode 100644 index 3b21308fc7..0000000000 --- a/blocks/OperationTable/.eslintignore +++ /dev/null @@ -1,12 +0,0 @@ -# 忽略目录 -build/ -tests/ -demo/ -lib/ - -# node 覆盖率文件 -coverage/ - -# 忽略文件 -**/*-min.js -**/*.min.js \ No newline at end of file diff --git a/blocks/OperationTable/.eslintrc b/blocks/OperationTable/.eslintrc deleted file mode 100644 index 7a4e5bac48..0000000000 --- a/blocks/OperationTable/.eslintrc +++ /dev/null @@ -1,62 +0,0 @@ -{ - "root": true, - "parser": "babel-eslint", - "extends": "eslint-config-airbnb", - "parserOptions": { - "ecmaVersion": 6, - "ecmaFeatures": { - "jsx": true, - "experimentalObjectRestSpread": true - } - }, - "env": { - "browser": true - }, - "plugins": [ - "react", - "babel" - ], - "rules": { - "react/forbid-prop-types": 0, - "jsx-a11y/label-has-for": 0, - "jsx-a11y/no-static-element-interactions": 0, - "jsx-a11y/anchor-has-content": 0, - "jsx-a11y/click-events-have-key-events": 0, - "jsx-a11y/anchor-is-valid": 0, - "react/no-array-index-key": 0, - "func-names": 0, - "arrow-body-style": 0, - "no-use-before-define": 0, - "react/sort-comp": 0, - "react/prop-types": 0, - "react/jsx-first-prop-new-line": 0, - "react/jsx-filename-extension": [ - 1, - { - "extensions": [ - ".js", - ".jsx" - ] - } - ], - "import/extensions": 0, - "import/no-unresolved": 0, - "import/no-extraneous-dependencies": 0, - "prefer-destructuring": 0, - "no-param-reassign": 0, - "no-return-assign": 0, - "max-len": 0, - "consistent-return": 0, - "no-redeclare": 0, - "react/require-extension": 0, - "react/no-danger": 0, - "comma-dangle": [ - "error", - "always-multiline" - ], - "function-paren-newline": 0, - "object-curly-newline": 0, - "no-restricted-globals": 0, - "react/prefer-stateless-function": 0 - } -} diff --git a/blocks/OperationTable/.gitignore b/blocks/OperationTable/.gitignore deleted file mode 100644 index cc45d6fb3c..0000000000 --- a/blocks/OperationTable/.gitignore +++ /dev/null @@ -1,13 +0,0 @@ - -*.swp -*.dia~ -.idea/ -.DS_Store - -npm-debug.log -yarn-error.log -node_modules/ -tmp/ - -# happypack 缓存 -.happypack diff --git a/blocks/OperationTable/package.json b/blocks/OperationTable/package.json index 2100b43034..c021e40f20 100644 --- a/blocks/OperationTable/package.json +++ b/blocks/OperationTable/package.json @@ -32,14 +32,8 @@ "@icedesign/label": "^0.1.0" }, "devDependencies": { - "babel-eslint": "^8.0.3", - "eslint": "^4.13.1", - "eslint-plugin-babel": "^4.1.1", "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "eslint-plugin-import": "^2.8.0", - "eslint-config-airbnb": "^16.1.0", - "eslint-plugin-jsx-a11y": "^6.0.3", "@icedesign/skin": "^0.1.2" }, "blockConfig": { @@ -51,6 +45,5 @@ "sketchURL": "", "icelandURL": "", "themePackage": "@icedesign/skin" - }, - "scripts": {} + } } diff --git a/blocks/OrderList/.editorconfig b/blocks/OrderList/.editorconfig deleted file mode 100644 index 22ef5ace54..0000000000 --- a/blocks/OrderList/.editorconfig +++ /dev/null @@ -1,16 +0,0 @@ -# http://editorconfig.org -root = true - -[*] -indent_style = space -indent_size = 2 -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -[*.md] -trim_trailing_whitespace = false - -[makefile] -indent_style = tab -indent_size = 4 diff --git a/blocks/OrderList/.eslintignore b/blocks/OrderList/.eslintignore deleted file mode 100644 index 3b21308fc7..0000000000 --- a/blocks/OrderList/.eslintignore +++ /dev/null @@ -1,12 +0,0 @@ -# 忽略目录 -build/ -tests/ -demo/ -lib/ - -# node 覆盖率文件 -coverage/ - -# 忽略文件 -**/*-min.js -**/*.min.js \ No newline at end of file diff --git a/blocks/OrderList/.eslintrc b/blocks/OrderList/.eslintrc deleted file mode 100644 index 7a4e5bac48..0000000000 --- a/blocks/OrderList/.eslintrc +++ /dev/null @@ -1,62 +0,0 @@ -{ - "root": true, - "parser": "babel-eslint", - "extends": "eslint-config-airbnb", - "parserOptions": { - "ecmaVersion": 6, - "ecmaFeatures": { - "jsx": true, - "experimentalObjectRestSpread": true - } - }, - "env": { - "browser": true - }, - "plugins": [ - "react", - "babel" - ], - "rules": { - "react/forbid-prop-types": 0, - "jsx-a11y/label-has-for": 0, - "jsx-a11y/no-static-element-interactions": 0, - "jsx-a11y/anchor-has-content": 0, - "jsx-a11y/click-events-have-key-events": 0, - "jsx-a11y/anchor-is-valid": 0, - "react/no-array-index-key": 0, - "func-names": 0, - "arrow-body-style": 0, - "no-use-before-define": 0, - "react/sort-comp": 0, - "react/prop-types": 0, - "react/jsx-first-prop-new-line": 0, - "react/jsx-filename-extension": [ - 1, - { - "extensions": [ - ".js", - ".jsx" - ] - } - ], - "import/extensions": 0, - "import/no-unresolved": 0, - "import/no-extraneous-dependencies": 0, - "prefer-destructuring": 0, - "no-param-reassign": 0, - "no-return-assign": 0, - "max-len": 0, - "consistent-return": 0, - "no-redeclare": 0, - "react/require-extension": 0, - "react/no-danger": 0, - "comma-dangle": [ - "error", - "always-multiline" - ], - "function-paren-newline": 0, - "object-curly-newline": 0, - "no-restricted-globals": 0, - "react/prefer-stateless-function": 0 - } -} diff --git a/blocks/OrderList/.gitignore b/blocks/OrderList/.gitignore deleted file mode 100644 index cc45d6fb3c..0000000000 --- a/blocks/OrderList/.gitignore +++ /dev/null @@ -1,13 +0,0 @@ - -*.swp -*.dia~ -.idea/ -.DS_Store - -npm-debug.log -yarn-error.log -node_modules/ -tmp/ - -# happypack 缓存 -.happypack diff --git a/blocks/OrderList/package.json b/blocks/OrderList/package.json index c1a1923476..1751a08e9e 100644 --- a/blocks/OrderList/package.json +++ b/blocks/OrderList/package.json @@ -29,14 +29,8 @@ "@icedesign/card": "^0.1.0" }, "devDependencies": { - "babel-eslint": "^8.0.3", - "eslint": "^4.13.1", - "eslint-plugin-babel": "^4.1.1", "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "eslint-plugin-import": "^2.8.0", - "eslint-config-airbnb": "^16.1.0", - "eslint-plugin-jsx-a11y": "^6.0.3", "@icedesign/skin": "^0.1.2" }, "blockConfig": { @@ -48,6 +42,5 @@ "sketchURL": "", "icelandURL": "", "themePackage": "@icedesign/skin" - }, - "scripts": {} + } } diff --git a/blocks/OurTeam/.editorconfig b/blocks/OurTeam/.editorconfig deleted file mode 100644 index 22ef5ace54..0000000000 --- a/blocks/OurTeam/.editorconfig +++ /dev/null @@ -1,16 +0,0 @@ -# http://editorconfig.org -root = true - -[*] -indent_style = space -indent_size = 2 -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -[*.md] -trim_trailing_whitespace = false - -[makefile] -indent_style = tab -indent_size = 4 diff --git a/blocks/OurTeam/.eslintignore b/blocks/OurTeam/.eslintignore deleted file mode 100644 index 3b21308fc7..0000000000 --- a/blocks/OurTeam/.eslintignore +++ /dev/null @@ -1,12 +0,0 @@ -# 忽略目录 -build/ -tests/ -demo/ -lib/ - -# node 覆盖率文件 -coverage/ - -# 忽略文件 -**/*-min.js -**/*.min.js \ No newline at end of file diff --git a/blocks/OurTeam/.eslintrc b/blocks/OurTeam/.eslintrc deleted file mode 100644 index 7a4e5bac48..0000000000 --- a/blocks/OurTeam/.eslintrc +++ /dev/null @@ -1,62 +0,0 @@ -{ - "root": true, - "parser": "babel-eslint", - "extends": "eslint-config-airbnb", - "parserOptions": { - "ecmaVersion": 6, - "ecmaFeatures": { - "jsx": true, - "experimentalObjectRestSpread": true - } - }, - "env": { - "browser": true - }, - "plugins": [ - "react", - "babel" - ], - "rules": { - "react/forbid-prop-types": 0, - "jsx-a11y/label-has-for": 0, - "jsx-a11y/no-static-element-interactions": 0, - "jsx-a11y/anchor-has-content": 0, - "jsx-a11y/click-events-have-key-events": 0, - "jsx-a11y/anchor-is-valid": 0, - "react/no-array-index-key": 0, - "func-names": 0, - "arrow-body-style": 0, - "no-use-before-define": 0, - "react/sort-comp": 0, - "react/prop-types": 0, - "react/jsx-first-prop-new-line": 0, - "react/jsx-filename-extension": [ - 1, - { - "extensions": [ - ".js", - ".jsx" - ] - } - ], - "import/extensions": 0, - "import/no-unresolved": 0, - "import/no-extraneous-dependencies": 0, - "prefer-destructuring": 0, - "no-param-reassign": 0, - "no-return-assign": 0, - "max-len": 0, - "consistent-return": 0, - "no-redeclare": 0, - "react/require-extension": 0, - "react/no-danger": 0, - "comma-dangle": [ - "error", - "always-multiline" - ], - "function-paren-newline": 0, - "object-curly-newline": 0, - "no-restricted-globals": 0, - "react/prefer-stateless-function": 0 - } -} diff --git a/blocks/OurTeam/.gitignore b/blocks/OurTeam/.gitignore deleted file mode 100644 index cc45d6fb3c..0000000000 --- a/blocks/OurTeam/.gitignore +++ /dev/null @@ -1,13 +0,0 @@ - -*.swp -*.dia~ -.idea/ -.DS_Store - -npm-debug.log -yarn-error.log -node_modules/ -tmp/ - -# happypack 缓存 -.happypack diff --git a/blocks/OurTeam/package.json b/blocks/OurTeam/package.json index d638e29048..3a1390756f 100644 --- a/blocks/OurTeam/package.json +++ b/blocks/OurTeam/package.json @@ -27,14 +27,8 @@ "@icedesign/card": "^0.1.0" }, "devDependencies": { - "babel-eslint": "^8.0.3", - "eslint": "^4.13.1", - "eslint-plugin-babel": "^4.1.1", "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "eslint-plugin-import": "^2.8.0", - "eslint-config-airbnb": "^16.1.0", - "eslint-plugin-jsx-a11y": "^6.0.3", "@icedesign/skin": "^0.1.2" }, "blockConfig": { @@ -46,6 +40,5 @@ "sketchURL": "", "icelandURL": "", "themePackage": "@icedesign/skin" - }, - "scripts": {} + } } diff --git a/blocks/PictureTextList/.editorconfig b/blocks/PictureTextList/.editorconfig deleted file mode 100644 index 22ef5ace54..0000000000 --- a/blocks/PictureTextList/.editorconfig +++ /dev/null @@ -1,16 +0,0 @@ -# http://editorconfig.org -root = true - -[*] -indent_style = space -indent_size = 2 -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -[*.md] -trim_trailing_whitespace = false - -[makefile] -indent_style = tab -indent_size = 4 diff --git a/blocks/PictureTextList/.eslintignore b/blocks/PictureTextList/.eslintignore deleted file mode 100644 index 2d5ec592a3..0000000000 --- a/blocks/PictureTextList/.eslintignore +++ /dev/null @@ -1,12 +0,0 @@ -# 忽略目录 -build/ -tests/ -demo/ -lib/ - -# node 覆盖率文件 -coverage/ - -# 忽略文件 -**/*-min.js -**/*.min.js diff --git a/blocks/PictureTextList/.eslintrc b/blocks/PictureTextList/.eslintrc deleted file mode 100644 index 07c65acfe7..0000000000 --- a/blocks/PictureTextList/.eslintrc +++ /dev/null @@ -1,53 +0,0 @@ -{ - "root": true, - "parser": "babel-eslint", - "extends": "eslint-config-airbnb", - "parserOptions": { - "ecmaVersion": 6, - "ecmaFeatures": { - "jsx": true, - "experimentalObjectRestSpread": true - } - }, - "env": { - "browser": true - }, - "plugins": ["react", "babel"], - "rules": { - "react/forbid-prop-types": 0, - "jsx-a11y/label-has-for": 0, - "jsx-a11y/no-static-element-interactions": 0, - "jsx-a11y/anchor-has-content": 0, - "jsx-a11y/click-events-have-key-events": 0, - "jsx-a11y/anchor-is-valid": 0, - "react/no-array-index-key": 0, - "func-names": 0, - "arrow-body-style": 0, - "no-use-before-define": 1, - "react/sort-comp": 0, - "react/prop-types": 0, - "react/jsx-first-prop-new-line": 0, - "react/jsx-filename-extension": [ - 1, - { - "extensions": [".js", ".jsx"] - } - ], - "import/extensions": 0, - "import/no-unresolved": 0, - "import/no-extraneous-dependencies": 0, - "prefer-destructuring": 0, - "no-param-reassign": 0, - "no-return-assign": 0, - "max-len": 0, - "consistent-return": 0, - "no-redeclare": 0, - "react/require-extension": 0, - "react/no-danger": 0, - "comma-dangle": ["error", "always-multiline"], - "function-paren-newline": 0, - "object-curly-newline": 0, - "no-restricted-globals": 0, - "react/prefer-stateless-function": 0 - } -} diff --git a/blocks/PictureTextList/.gitignore b/blocks/PictureTextList/.gitignore deleted file mode 100644 index cc45d6fb3c..0000000000 --- a/blocks/PictureTextList/.gitignore +++ /dev/null @@ -1,13 +0,0 @@ - -*.swp -*.dia~ -.idea/ -.DS_Store - -npm-debug.log -yarn-error.log -node_modules/ -tmp/ - -# happypack 缓存 -.happypack diff --git a/blocks/PictureTextList/package.json b/blocks/PictureTextList/package.json index 9172e09f14..946bfe9f10 100644 --- a/blocks/PictureTextList/package.json +++ b/blocks/PictureTextList/package.json @@ -29,12 +29,6 @@ "devDependencies": { "@icedesign/demo-layout": "^0.1.2", "@icedesign/skin": "^0.1.2", - "babel-eslint": "^8.0.3", - "eslint": "^4.13.1", - "eslint-config-airbnb": "^16.1.0", - "eslint-plugin-babel": "^4.1.1", - "eslint-plugin-import": "^2.8.0", - "eslint-plugin-jsx-a11y": "^6.0.3", "eslint-plugin-react": "^7.5.1" }, "blockConfig": { @@ -46,9 +40,5 @@ "sketchURL": "", "icelandURL": "", "themePackage": "@icedesign/skin" - }, - "scripts": { - "lint": "eslint . --ext '.js,.jsx' --fix", - "prepublish": "npm run lint" } } diff --git a/blocks/PieDoughnutChart/.editorconfig b/blocks/PieDoughnutChart/.editorconfig deleted file mode 100644 index 22ef5ace54..0000000000 --- a/blocks/PieDoughnutChart/.editorconfig +++ /dev/null @@ -1,16 +0,0 @@ -# http://editorconfig.org -root = true - -[*] -indent_style = space -indent_size = 2 -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -[*.md] -trim_trailing_whitespace = false - -[makefile] -indent_style = tab -indent_size = 4 diff --git a/blocks/PieDoughnutChart/.eslintignore b/blocks/PieDoughnutChart/.eslintignore deleted file mode 100644 index 2d5ec592a3..0000000000 --- a/blocks/PieDoughnutChart/.eslintignore +++ /dev/null @@ -1,12 +0,0 @@ -# 忽略目录 -build/ -tests/ -demo/ -lib/ - -# node 覆盖率文件 -coverage/ - -# 忽略文件 -**/*-min.js -**/*.min.js diff --git a/blocks/PieDoughnutChart/.eslintrc b/blocks/PieDoughnutChart/.eslintrc deleted file mode 100644 index 07c65acfe7..0000000000 --- a/blocks/PieDoughnutChart/.eslintrc +++ /dev/null @@ -1,53 +0,0 @@ -{ - "root": true, - "parser": "babel-eslint", - "extends": "eslint-config-airbnb", - "parserOptions": { - "ecmaVersion": 6, - "ecmaFeatures": { - "jsx": true, - "experimentalObjectRestSpread": true - } - }, - "env": { - "browser": true - }, - "plugins": ["react", "babel"], - "rules": { - "react/forbid-prop-types": 0, - "jsx-a11y/label-has-for": 0, - "jsx-a11y/no-static-element-interactions": 0, - "jsx-a11y/anchor-has-content": 0, - "jsx-a11y/click-events-have-key-events": 0, - "jsx-a11y/anchor-is-valid": 0, - "react/no-array-index-key": 0, - "func-names": 0, - "arrow-body-style": 0, - "no-use-before-define": 1, - "react/sort-comp": 0, - "react/prop-types": 0, - "react/jsx-first-prop-new-line": 0, - "react/jsx-filename-extension": [ - 1, - { - "extensions": [".js", ".jsx"] - } - ], - "import/extensions": 0, - "import/no-unresolved": 0, - "import/no-extraneous-dependencies": 0, - "prefer-destructuring": 0, - "no-param-reassign": 0, - "no-return-assign": 0, - "max-len": 0, - "consistent-return": 0, - "no-redeclare": 0, - "react/require-extension": 0, - "react/no-danger": 0, - "comma-dangle": ["error", "always-multiline"], - "function-paren-newline": 0, - "object-curly-newline": 0, - "no-restricted-globals": 0, - "react/prefer-stateless-function": 0 - } -} diff --git a/blocks/PieDoughnutChart/.gitignore b/blocks/PieDoughnutChart/.gitignore deleted file mode 100644 index cc45d6fb3c..0000000000 --- a/blocks/PieDoughnutChart/.gitignore +++ /dev/null @@ -1,13 +0,0 @@ - -*.swp -*.dia~ -.idea/ -.DS_Store - -npm-debug.log -yarn-error.log -node_modules/ -tmp/ - -# happypack 缓存 -.happypack diff --git a/blocks/PieDoughnutChart/package.json b/blocks/PieDoughnutChart/package.json index 6f84f13ff1..e85a0b08f7 100644 --- a/blocks/PieDoughnutChart/package.json +++ b/blocks/PieDoughnutChart/package.json @@ -30,13 +30,7 @@ "prop-types": "^15.5.8" }, "devDependencies": { - "babel-eslint": "^8.0.3", - "eslint": "^4.13.1", - "eslint-plugin-babel": "^4.1.1", "eslint-plugin-react": "^7.5.1", - "eslint-plugin-import": "^2.8.0", - "eslint-config-airbnb": "^16.1.0", - "eslint-plugin-jsx-a11y": "^6.0.3", "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.2" }, @@ -49,9 +43,5 @@ "sketchURL": "", "icelandURL": "", "themePackage": "@icedesign/skin" - }, - "scripts": { - "lint": "eslint . --ext '.js,.jsx' --fix", - "prepublish": "npm run lint" } } diff --git a/blocks/PriceCard/.editorconfig b/blocks/PriceCard/.editorconfig deleted file mode 100644 index 22ef5ace54..0000000000 --- a/blocks/PriceCard/.editorconfig +++ /dev/null @@ -1,16 +0,0 @@ -# http://editorconfig.org -root = true - -[*] -indent_style = space -indent_size = 2 -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -[*.md] -trim_trailing_whitespace = false - -[makefile] -indent_style = tab -indent_size = 4 diff --git a/blocks/PriceCard/.eslintignore b/blocks/PriceCard/.eslintignore deleted file mode 100644 index 3b21308fc7..0000000000 --- a/blocks/PriceCard/.eslintignore +++ /dev/null @@ -1,12 +0,0 @@ -# 忽略目录 -build/ -tests/ -demo/ -lib/ - -# node 覆盖率文件 -coverage/ - -# 忽略文件 -**/*-min.js -**/*.min.js \ No newline at end of file diff --git a/blocks/PriceCard/.eslintrc b/blocks/PriceCard/.eslintrc deleted file mode 100644 index 7a4e5bac48..0000000000 --- a/blocks/PriceCard/.eslintrc +++ /dev/null @@ -1,62 +0,0 @@ -{ - "root": true, - "parser": "babel-eslint", - "extends": "eslint-config-airbnb", - "parserOptions": { - "ecmaVersion": 6, - "ecmaFeatures": { - "jsx": true, - "experimentalObjectRestSpread": true - } - }, - "env": { - "browser": true - }, - "plugins": [ - "react", - "babel" - ], - "rules": { - "react/forbid-prop-types": 0, - "jsx-a11y/label-has-for": 0, - "jsx-a11y/no-static-element-interactions": 0, - "jsx-a11y/anchor-has-content": 0, - "jsx-a11y/click-events-have-key-events": 0, - "jsx-a11y/anchor-is-valid": 0, - "react/no-array-index-key": 0, - "func-names": 0, - "arrow-body-style": 0, - "no-use-before-define": 0, - "react/sort-comp": 0, - "react/prop-types": 0, - "react/jsx-first-prop-new-line": 0, - "react/jsx-filename-extension": [ - 1, - { - "extensions": [ - ".js", - ".jsx" - ] - } - ], - "import/extensions": 0, - "import/no-unresolved": 0, - "import/no-extraneous-dependencies": 0, - "prefer-destructuring": 0, - "no-param-reassign": 0, - "no-return-assign": 0, - "max-len": 0, - "consistent-return": 0, - "no-redeclare": 0, - "react/require-extension": 0, - "react/no-danger": 0, - "comma-dangle": [ - "error", - "always-multiline" - ], - "function-paren-newline": 0, - "object-curly-newline": 0, - "no-restricted-globals": 0, - "react/prefer-stateless-function": 0 - } -} diff --git a/blocks/PriceCard/.gitignore b/blocks/PriceCard/.gitignore deleted file mode 100644 index cc45d6fb3c..0000000000 --- a/blocks/PriceCard/.gitignore +++ /dev/null @@ -1,13 +0,0 @@ - -*.swp -*.dia~ -.idea/ -.DS_Store - -npm-debug.log -yarn-error.log -node_modules/ -tmp/ - -# happypack 缓存 -.happypack diff --git a/blocks/PriceCard/package.json b/blocks/PriceCard/package.json index f54307141c..974606fb2b 100644 --- a/blocks/PriceCard/package.json +++ b/blocks/PriceCard/package.json @@ -8,7 +8,6 @@ "lib/", "mock/" ], - "scripts": {}, "author": { "name": "ICE Team", "email": "ice-admin@alibaba-inc.com" @@ -29,16 +28,10 @@ }, "devDependencies": { "@icedesign/skin": "^0.1.2", - "babel-eslint": "^8.0.3", "eslint-plugin-react": "^7.5.1", "react": "15.x", "react-copy-to-clipboard": "^4.2.3", "react-dom": "15.x", - "eslint": "^4.13.1", - "eslint-plugin-babel": "^4.1.1", - "eslint-plugin-import": "^2.8.0", - "eslint-config-airbnb": "^16.1.0", - "eslint-plugin-jsx-a11y": "^6.0.3", "@icedesign/demo-layout": "^0.1.0" }, "blockConfig": { diff --git a/blocks/PriceInfo/.editorconfig b/blocks/PriceInfo/.editorconfig deleted file mode 100644 index 22ef5ace54..0000000000 --- a/blocks/PriceInfo/.editorconfig +++ /dev/null @@ -1,16 +0,0 @@ -# http://editorconfig.org -root = true - -[*] -indent_style = space -indent_size = 2 -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -[*.md] -trim_trailing_whitespace = false - -[makefile] -indent_style = tab -indent_size = 4 diff --git a/blocks/PriceInfo/.eslintignore b/blocks/PriceInfo/.eslintignore deleted file mode 100644 index 3b21308fc7..0000000000 --- a/blocks/PriceInfo/.eslintignore +++ /dev/null @@ -1,12 +0,0 @@ -# 忽略目录 -build/ -tests/ -demo/ -lib/ - -# node 覆盖率文件 -coverage/ - -# 忽略文件 -**/*-min.js -**/*.min.js \ No newline at end of file diff --git a/blocks/PriceInfo/.eslintrc b/blocks/PriceInfo/.eslintrc deleted file mode 100644 index 7a4e5bac48..0000000000 --- a/blocks/PriceInfo/.eslintrc +++ /dev/null @@ -1,62 +0,0 @@ -{ - "root": true, - "parser": "babel-eslint", - "extends": "eslint-config-airbnb", - "parserOptions": { - "ecmaVersion": 6, - "ecmaFeatures": { - "jsx": true, - "experimentalObjectRestSpread": true - } - }, - "env": { - "browser": true - }, - "plugins": [ - "react", - "babel" - ], - "rules": { - "react/forbid-prop-types": 0, - "jsx-a11y/label-has-for": 0, - "jsx-a11y/no-static-element-interactions": 0, - "jsx-a11y/anchor-has-content": 0, - "jsx-a11y/click-events-have-key-events": 0, - "jsx-a11y/anchor-is-valid": 0, - "react/no-array-index-key": 0, - "func-names": 0, - "arrow-body-style": 0, - "no-use-before-define": 0, - "react/sort-comp": 0, - "react/prop-types": 0, - "react/jsx-first-prop-new-line": 0, - "react/jsx-filename-extension": [ - 1, - { - "extensions": [ - ".js", - ".jsx" - ] - } - ], - "import/extensions": 0, - "import/no-unresolved": 0, - "import/no-extraneous-dependencies": 0, - "prefer-destructuring": 0, - "no-param-reassign": 0, - "no-return-assign": 0, - "max-len": 0, - "consistent-return": 0, - "no-redeclare": 0, - "react/require-extension": 0, - "react/no-danger": 0, - "comma-dangle": [ - "error", - "always-multiline" - ], - "function-paren-newline": 0, - "object-curly-newline": 0, - "no-restricted-globals": 0, - "react/prefer-stateless-function": 0 - } -} diff --git a/blocks/PriceInfo/.gitignore b/blocks/PriceInfo/.gitignore deleted file mode 100644 index cc45d6fb3c..0000000000 --- a/blocks/PriceInfo/.gitignore +++ /dev/null @@ -1,13 +0,0 @@ - -*.swp -*.dia~ -.idea/ -.DS_Store - -npm-debug.log -yarn-error.log -node_modules/ -tmp/ - -# happypack 缓存 -.happypack diff --git a/blocks/PriceInfo/package.json b/blocks/PriceInfo/package.json index b2010f9c26..efe7ab939a 100644 --- a/blocks/PriceInfo/package.json +++ b/blocks/PriceInfo/package.json @@ -27,14 +27,8 @@ "@icedesign/card": "^0.1.0" }, "devDependencies": { - "babel-eslint": "^8.0.3", - "eslint": "^4.13.1", - "eslint-plugin-babel": "^4.1.1", "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "eslint-plugin-import": "^2.8.0", - "eslint-config-airbnb": "^16.1.0", - "eslint-plugin-jsx-a11y": "^6.0.3", "@icedesign/skin": "^0.1.2" }, "blockConfig": { @@ -46,6 +40,5 @@ "sketchURL": "", "icelandURL": "", "themePackage": "@icedesign/skin" - }, - "scripts": {} + } } diff --git a/blocks/PrivateMessageForm/.editorconfig b/blocks/PrivateMessageForm/.editorconfig deleted file mode 100644 index 22ef5ace54..0000000000 --- a/blocks/PrivateMessageForm/.editorconfig +++ /dev/null @@ -1,16 +0,0 @@ -# http://editorconfig.org -root = true - -[*] -indent_style = space -indent_size = 2 -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -[*.md] -trim_trailing_whitespace = false - -[makefile] -indent_style = tab -indent_size = 4 diff --git a/blocks/PrivateMessageForm/.eslintignore b/blocks/PrivateMessageForm/.eslintignore deleted file mode 100644 index 3b21308fc7..0000000000 --- a/blocks/PrivateMessageForm/.eslintignore +++ /dev/null @@ -1,12 +0,0 @@ -# 忽略目录 -build/ -tests/ -demo/ -lib/ - -# node 覆盖率文件 -coverage/ - -# 忽略文件 -**/*-min.js -**/*.min.js \ No newline at end of file diff --git a/blocks/PrivateMessageForm/.eslintrc b/blocks/PrivateMessageForm/.eslintrc deleted file mode 100644 index 7a4e5bac48..0000000000 --- a/blocks/PrivateMessageForm/.eslintrc +++ /dev/null @@ -1,62 +0,0 @@ -{ - "root": true, - "parser": "babel-eslint", - "extends": "eslint-config-airbnb", - "parserOptions": { - "ecmaVersion": 6, - "ecmaFeatures": { - "jsx": true, - "experimentalObjectRestSpread": true - } - }, - "env": { - "browser": true - }, - "plugins": [ - "react", - "babel" - ], - "rules": { - "react/forbid-prop-types": 0, - "jsx-a11y/label-has-for": 0, - "jsx-a11y/no-static-element-interactions": 0, - "jsx-a11y/anchor-has-content": 0, - "jsx-a11y/click-events-have-key-events": 0, - "jsx-a11y/anchor-is-valid": 0, - "react/no-array-index-key": 0, - "func-names": 0, - "arrow-body-style": 0, - "no-use-before-define": 0, - "react/sort-comp": 0, - "react/prop-types": 0, - "react/jsx-first-prop-new-line": 0, - "react/jsx-filename-extension": [ - 1, - { - "extensions": [ - ".js", - ".jsx" - ] - } - ], - "import/extensions": 0, - "import/no-unresolved": 0, - "import/no-extraneous-dependencies": 0, - "prefer-destructuring": 0, - "no-param-reassign": 0, - "no-return-assign": 0, - "max-len": 0, - "consistent-return": 0, - "no-redeclare": 0, - "react/require-extension": 0, - "react/no-danger": 0, - "comma-dangle": [ - "error", - "always-multiline" - ], - "function-paren-newline": 0, - "object-curly-newline": 0, - "no-restricted-globals": 0, - "react/prefer-stateless-function": 0 - } -} diff --git a/blocks/PrivateMessageForm/.gitignore b/blocks/PrivateMessageForm/.gitignore deleted file mode 100644 index cc45d6fb3c..0000000000 --- a/blocks/PrivateMessageForm/.gitignore +++ /dev/null @@ -1,13 +0,0 @@ - -*.swp -*.dia~ -.idea/ -.DS_Store - -npm-debug.log -yarn-error.log -node_modules/ -tmp/ - -# happypack 缓存 -.happypack diff --git a/blocks/PrivateMessageForm/package.json b/blocks/PrivateMessageForm/package.json index 9719056910..a6746442a7 100644 --- a/blocks/PrivateMessageForm/package.json +++ b/blocks/PrivateMessageForm/package.json @@ -8,7 +8,6 @@ "lib/", "mock/" ], - "scripts": {}, "author": { "name": "ICE Team", "email": "ice-admin@alibaba-inc.com" @@ -29,16 +28,10 @@ }, "devDependencies": { "@icedesign/skin": "^0.1.2", - "babel-eslint": "^8.0.3", "eslint-plugin-react": "^7.5.1", "react": "15.x", "react-copy-to-clipboard": "^4.2.3", "react-dom": "15.x", - "eslint": "^4.13.1", - "eslint-plugin-babel": "^4.1.1", - "eslint-plugin-import": "^2.8.0", - "eslint-config-airbnb": "^16.1.0", - "eslint-plugin-jsx-a11y": "^6.0.3", "@icedesign/demo-layout": "^0.1.0" }, "blockConfig": { diff --git a/blocks/ProductInfo/.editorconfig b/blocks/ProductInfo/.editorconfig deleted file mode 100644 index 22ef5ace54..0000000000 --- a/blocks/ProductInfo/.editorconfig +++ /dev/null @@ -1,16 +0,0 @@ -# http://editorconfig.org -root = true - -[*] -indent_style = space -indent_size = 2 -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -[*.md] -trim_trailing_whitespace = false - -[makefile] -indent_style = tab -indent_size = 4 diff --git a/blocks/ProductInfo/.eslintignore b/blocks/ProductInfo/.eslintignore deleted file mode 100644 index 3b21308fc7..0000000000 --- a/blocks/ProductInfo/.eslintignore +++ /dev/null @@ -1,12 +0,0 @@ -# 忽略目录 -build/ -tests/ -demo/ -lib/ - -# node 覆盖率文件 -coverage/ - -# 忽略文件 -**/*-min.js -**/*.min.js \ No newline at end of file diff --git a/blocks/ProductInfo/.eslintrc b/blocks/ProductInfo/.eslintrc deleted file mode 100644 index 7a4e5bac48..0000000000 --- a/blocks/ProductInfo/.eslintrc +++ /dev/null @@ -1,62 +0,0 @@ -{ - "root": true, - "parser": "babel-eslint", - "extends": "eslint-config-airbnb", - "parserOptions": { - "ecmaVersion": 6, - "ecmaFeatures": { - "jsx": true, - "experimentalObjectRestSpread": true - } - }, - "env": { - "browser": true - }, - "plugins": [ - "react", - "babel" - ], - "rules": { - "react/forbid-prop-types": 0, - "jsx-a11y/label-has-for": 0, - "jsx-a11y/no-static-element-interactions": 0, - "jsx-a11y/anchor-has-content": 0, - "jsx-a11y/click-events-have-key-events": 0, - "jsx-a11y/anchor-is-valid": 0, - "react/no-array-index-key": 0, - "func-names": 0, - "arrow-body-style": 0, - "no-use-before-define": 0, - "react/sort-comp": 0, - "react/prop-types": 0, - "react/jsx-first-prop-new-line": 0, - "react/jsx-filename-extension": [ - 1, - { - "extensions": [ - ".js", - ".jsx" - ] - } - ], - "import/extensions": 0, - "import/no-unresolved": 0, - "import/no-extraneous-dependencies": 0, - "prefer-destructuring": 0, - "no-param-reassign": 0, - "no-return-assign": 0, - "max-len": 0, - "consistent-return": 0, - "no-redeclare": 0, - "react/require-extension": 0, - "react/no-danger": 0, - "comma-dangle": [ - "error", - "always-multiline" - ], - "function-paren-newline": 0, - "object-curly-newline": 0, - "no-restricted-globals": 0, - "react/prefer-stateless-function": 0 - } -} diff --git a/blocks/ProductInfo/.gitignore b/blocks/ProductInfo/.gitignore deleted file mode 100644 index cc45d6fb3c..0000000000 --- a/blocks/ProductInfo/.gitignore +++ /dev/null @@ -1,13 +0,0 @@ - -*.swp -*.dia~ -.idea/ -.DS_Store - -npm-debug.log -yarn-error.log -node_modules/ -tmp/ - -# happypack 缓存 -.happypack diff --git a/blocks/ProductInfo/package.json b/blocks/ProductInfo/package.json index 2bb0ec5965..a3cf9ba051 100644 --- a/blocks/ProductInfo/package.json +++ b/blocks/ProductInfo/package.json @@ -27,14 +27,8 @@ "@icedesign/card": "^0.1.0" }, "devDependencies": { - "babel-eslint": "^8.0.3", - "eslint": "^4.13.1", - "eslint-plugin-babel": "^4.1.1", "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "eslint-plugin-import": "^2.8.0", - "eslint-config-airbnb": "^16.1.0", - "eslint-plugin-jsx-a11y": "^6.0.3", "@icedesign/skin": "^0.1.2" }, "blockConfig": { @@ -46,6 +40,5 @@ "sketchURL": "", "icelandURL": "", "themePackage": "@icedesign/skin" - }, - "scripts": {} + } } diff --git a/blocks/ProgressTable/.editorconfig b/blocks/ProgressTable/.editorconfig deleted file mode 100644 index 22ef5ace54..0000000000 --- a/blocks/ProgressTable/.editorconfig +++ /dev/null @@ -1,16 +0,0 @@ -# http://editorconfig.org -root = true - -[*] -indent_style = space -indent_size = 2 -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -[*.md] -trim_trailing_whitespace = false - -[makefile] -indent_style = tab -indent_size = 4 diff --git a/blocks/ProgressTable/.eslintignore b/blocks/ProgressTable/.eslintignore deleted file mode 100644 index 2d5ec592a3..0000000000 --- a/blocks/ProgressTable/.eslintignore +++ /dev/null @@ -1,12 +0,0 @@ -# 忽略目录 -build/ -tests/ -demo/ -lib/ - -# node 覆盖率文件 -coverage/ - -# 忽略文件 -**/*-min.js -**/*.min.js diff --git a/blocks/ProgressTable/.eslintrc b/blocks/ProgressTable/.eslintrc deleted file mode 100644 index dd7e78fc12..0000000000 --- a/blocks/ProgressTable/.eslintrc +++ /dev/null @@ -1,53 +0,0 @@ -{ - "root": true, - "parser": "babel-eslint", - "extends": "eslint-config-airbnb", - "parserOptions": { - "ecmaVersion": 6, - "ecmaFeatures": { - "jsx": true, - "experimentalObjectRestSpread": true - } - }, - "env": { - "browser": true - }, - "plugins": ["react", "babel"], - "rules": { - "react/forbid-prop-types": 0, - "jsx-a11y/label-has-for": 0, - "jsx-a11y/no-static-element-interactions": 0, - "jsx-a11y/anchor-has-content": 0, - "jsx-a11y/click-events-have-key-events": 0, - "jsx-a11y/anchor-is-valid": 0, - "react/no-array-index-key": 0, - "func-names": 0, - "arrow-body-style": 0, - "no-use-before-define": 1, - "react/sort-comp": 0, - "react/prop-types": 0, - "react/jsx-first-prop-new-line": 0, - "react/jsx-filename-extension": [ - 1, - { - "extensions": [".js", ".jsx"] - } - ], - "import/extensions": 0, - "import/no-unresolved": 0, - "import/no-extraneous-dependencies": 0, - "prefer-destructuring": 0, - "no-param-reassign": 0, - "no-return-assign": 0, - "max-len": 0, - "consistent-return": 0, - "no-redeclare": 0, - "react/require-extension": 0, - "react/no-danger": 0, - "comma-dangle": ["error", "always-multiline"], - "function-paren-newline": 0, - "object-curly-newline": 0, - "no-restricted-globals": 0, - "no-mixed-operators": 0 - } -} diff --git a/blocks/ProgressTable/.gitignore b/blocks/ProgressTable/.gitignore deleted file mode 100644 index cc45d6fb3c..0000000000 --- a/blocks/ProgressTable/.gitignore +++ /dev/null @@ -1,13 +0,0 @@ - -*.swp -*.dia~ -.idea/ -.DS_Store - -npm-debug.log -yarn-error.log -node_modules/ -tmp/ - -# happypack 缓存 -.happypack diff --git a/blocks/ProgressTable/package.json b/blocks/ProgressTable/package.json index 49d8566611..4d09d8ff6b 100644 --- a/blocks/ProgressTable/package.json +++ b/blocks/ProgressTable/package.json @@ -27,13 +27,7 @@ "@icedesign/card": "^0.1.0" }, "devDependencies": { - "babel-eslint": "^8.0.3", - "eslint": "^4.13.1", - "eslint-plugin-babel": "^4.1.1", "eslint-plugin-react": "^7.5.1", - "eslint-plugin-import": "^2.8.0", - "eslint-config-airbnb": "^16.1.0", - "eslint-plugin-jsx-a11y": "^6.0.3", "@icedesign/skin": "^0.1.3", "@icedesign/demo-layout": "^0.1.0" }, @@ -46,9 +40,5 @@ "sketchURL": "", "icelandURL": "", "themePackage": "@icedesign/skin" - }, - "scripts": { - "lint": "eslint . --ext '.js,.jsx' --fix", - "prepublish": "npm run lint" } } diff --git a/blocks/RegisterForm/.editorconfig b/blocks/RegisterForm/.editorconfig deleted file mode 100644 index 22ef5ace54..0000000000 --- a/blocks/RegisterForm/.editorconfig +++ /dev/null @@ -1,16 +0,0 @@ -# http://editorconfig.org -root = true - -[*] -indent_style = space -indent_size = 2 -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -[*.md] -trim_trailing_whitespace = false - -[makefile] -indent_style = tab -indent_size = 4 diff --git a/blocks/RegisterForm/.eslintignore b/blocks/RegisterForm/.eslintignore deleted file mode 100644 index 3b21308fc7..0000000000 --- a/blocks/RegisterForm/.eslintignore +++ /dev/null @@ -1,12 +0,0 @@ -# 忽略目录 -build/ -tests/ -demo/ -lib/ - -# node 覆盖率文件 -coverage/ - -# 忽略文件 -**/*-min.js -**/*.min.js \ No newline at end of file diff --git a/blocks/RegisterForm/.eslintrc b/blocks/RegisterForm/.eslintrc deleted file mode 100644 index 7a4e5bac48..0000000000 --- a/blocks/RegisterForm/.eslintrc +++ /dev/null @@ -1,62 +0,0 @@ -{ - "root": true, - "parser": "babel-eslint", - "extends": "eslint-config-airbnb", - "parserOptions": { - "ecmaVersion": 6, - "ecmaFeatures": { - "jsx": true, - "experimentalObjectRestSpread": true - } - }, - "env": { - "browser": true - }, - "plugins": [ - "react", - "babel" - ], - "rules": { - "react/forbid-prop-types": 0, - "jsx-a11y/label-has-for": 0, - "jsx-a11y/no-static-element-interactions": 0, - "jsx-a11y/anchor-has-content": 0, - "jsx-a11y/click-events-have-key-events": 0, - "jsx-a11y/anchor-is-valid": 0, - "react/no-array-index-key": 0, - "func-names": 0, - "arrow-body-style": 0, - "no-use-before-define": 0, - "react/sort-comp": 0, - "react/prop-types": 0, - "react/jsx-first-prop-new-line": 0, - "react/jsx-filename-extension": [ - 1, - { - "extensions": [ - ".js", - ".jsx" - ] - } - ], - "import/extensions": 0, - "import/no-unresolved": 0, - "import/no-extraneous-dependencies": 0, - "prefer-destructuring": 0, - "no-param-reassign": 0, - "no-return-assign": 0, - "max-len": 0, - "consistent-return": 0, - "no-redeclare": 0, - "react/require-extension": 0, - "react/no-danger": 0, - "comma-dangle": [ - "error", - "always-multiline" - ], - "function-paren-newline": 0, - "object-curly-newline": 0, - "no-restricted-globals": 0, - "react/prefer-stateless-function": 0 - } -} diff --git a/blocks/RegisterForm/.gitignore b/blocks/RegisterForm/.gitignore deleted file mode 100644 index cc45d6fb3c..0000000000 --- a/blocks/RegisterForm/.gitignore +++ /dev/null @@ -1,13 +0,0 @@ - -*.swp -*.dia~ -.idea/ -.DS_Store - -npm-debug.log -yarn-error.log -node_modules/ -tmp/ - -# happypack 缓存 -.happypack diff --git a/blocks/RegisterForm/package.json b/blocks/RegisterForm/package.json index 61d89b754d..c77a8eccfb 100644 --- a/blocks/RegisterForm/package.json +++ b/blocks/RegisterForm/package.json @@ -30,12 +30,6 @@ "devDependencies": { "@icedesign/demo-layout": "^0.1.2", "@icedesign/skin": "^0.1.2", - "babel-eslint": "^8.0.3", - "eslint": "^4.13.1", - "eslint-config-airbnb": "^16.1.0", - "eslint-plugin-babel": "^4.1.1", - "eslint-plugin-import": "^2.8.0", - "eslint-plugin-jsx-a11y": "^6.0.3", "eslint-plugin-react": "^7.5.1" }, "blockConfig": { @@ -47,6 +41,5 @@ "sketchURL": "", "icelandURL": "", "themePackage": "@icedesign/skin" - }, - "scripts": {} + } } diff --git a/blocks/RightContentDisplay/.editorconfig b/blocks/RightContentDisplay/.editorconfig deleted file mode 100644 index 22ef5ace54..0000000000 --- a/blocks/RightContentDisplay/.editorconfig +++ /dev/null @@ -1,16 +0,0 @@ -# http://editorconfig.org -root = true - -[*] -indent_style = space -indent_size = 2 -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -[*.md] -trim_trailing_whitespace = false - -[makefile] -indent_style = tab -indent_size = 4 diff --git a/blocks/RightContentDisplay/.eslintignore b/blocks/RightContentDisplay/.eslintignore deleted file mode 100644 index 3b21308fc7..0000000000 --- a/blocks/RightContentDisplay/.eslintignore +++ /dev/null @@ -1,12 +0,0 @@ -# 忽略目录 -build/ -tests/ -demo/ -lib/ - -# node 覆盖率文件 -coverage/ - -# 忽略文件 -**/*-min.js -**/*.min.js \ No newline at end of file diff --git a/blocks/RightContentDisplay/.eslintrc b/blocks/RightContentDisplay/.eslintrc deleted file mode 100644 index 7a4e5bac48..0000000000 --- a/blocks/RightContentDisplay/.eslintrc +++ /dev/null @@ -1,62 +0,0 @@ -{ - "root": true, - "parser": "babel-eslint", - "extends": "eslint-config-airbnb", - "parserOptions": { - "ecmaVersion": 6, - "ecmaFeatures": { - "jsx": true, - "experimentalObjectRestSpread": true - } - }, - "env": { - "browser": true - }, - "plugins": [ - "react", - "babel" - ], - "rules": { - "react/forbid-prop-types": 0, - "jsx-a11y/label-has-for": 0, - "jsx-a11y/no-static-element-interactions": 0, - "jsx-a11y/anchor-has-content": 0, - "jsx-a11y/click-events-have-key-events": 0, - "jsx-a11y/anchor-is-valid": 0, - "react/no-array-index-key": 0, - "func-names": 0, - "arrow-body-style": 0, - "no-use-before-define": 0, - "react/sort-comp": 0, - "react/prop-types": 0, - "react/jsx-first-prop-new-line": 0, - "react/jsx-filename-extension": [ - 1, - { - "extensions": [ - ".js", - ".jsx" - ] - } - ], - "import/extensions": 0, - "import/no-unresolved": 0, - "import/no-extraneous-dependencies": 0, - "prefer-destructuring": 0, - "no-param-reassign": 0, - "no-return-assign": 0, - "max-len": 0, - "consistent-return": 0, - "no-redeclare": 0, - "react/require-extension": 0, - "react/no-danger": 0, - "comma-dangle": [ - "error", - "always-multiline" - ], - "function-paren-newline": 0, - "object-curly-newline": 0, - "no-restricted-globals": 0, - "react/prefer-stateless-function": 0 - } -} diff --git a/blocks/RightContentDisplay/.gitignore b/blocks/RightContentDisplay/.gitignore deleted file mode 100644 index cc45d6fb3c..0000000000 --- a/blocks/RightContentDisplay/.gitignore +++ /dev/null @@ -1,13 +0,0 @@ - -*.swp -*.dia~ -.idea/ -.DS_Store - -npm-debug.log -yarn-error.log -node_modules/ -tmp/ - -# happypack 缓存 -.happypack diff --git a/blocks/RightContentDisplay/package.json b/blocks/RightContentDisplay/package.json index fea1f0db67..00fc177cf2 100644 --- a/blocks/RightContentDisplay/package.json +++ b/blocks/RightContentDisplay/package.json @@ -8,7 +8,6 @@ "lib/", "mock/" ], - "scripts": {}, "author": { "name": "ICE Team", "email": "ice-admin@alibaba-inc.com" @@ -29,16 +28,10 @@ }, "devDependencies": { "@icedesign/skin": "^0.1.2", - "babel-eslint": "^8.0.3", "eslint-plugin-react": "^7.5.1", "react": "15.x", "react-copy-to-clipboard": "^4.2.3", "react-dom": "15.x", - "eslint": "^4.13.1", - "eslint-plugin-babel": "^4.1.1", - "eslint-plugin-import": "^2.8.0", - "eslint-config-airbnb": "^16.1.0", - "eslint-plugin-jsx-a11y": "^6.0.3", "@icedesign/demo-layout": "^0.1.0" }, "blockConfig": { diff --git a/blocks/SelectableTable/.editorconfig b/blocks/SelectableTable/.editorconfig deleted file mode 100644 index 22ef5ace54..0000000000 --- a/blocks/SelectableTable/.editorconfig +++ /dev/null @@ -1,16 +0,0 @@ -# http://editorconfig.org -root = true - -[*] -indent_style = space -indent_size = 2 -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -[*.md] -trim_trailing_whitespace = false - -[makefile] -indent_style = tab -indent_size = 4 diff --git a/blocks/SelectableTable/.eslintignore b/blocks/SelectableTable/.eslintignore deleted file mode 100644 index 3b21308fc7..0000000000 --- a/blocks/SelectableTable/.eslintignore +++ /dev/null @@ -1,12 +0,0 @@ -# 忽略目录 -build/ -tests/ -demo/ -lib/ - -# node 覆盖率文件 -coverage/ - -# 忽略文件 -**/*-min.js -**/*.min.js \ No newline at end of file diff --git a/blocks/SelectableTable/.eslintrc b/blocks/SelectableTable/.eslintrc deleted file mode 100644 index 7a4e5bac48..0000000000 --- a/blocks/SelectableTable/.eslintrc +++ /dev/null @@ -1,62 +0,0 @@ -{ - "root": true, - "parser": "babel-eslint", - "extends": "eslint-config-airbnb", - "parserOptions": { - "ecmaVersion": 6, - "ecmaFeatures": { - "jsx": true, - "experimentalObjectRestSpread": true - } - }, - "env": { - "browser": true - }, - "plugins": [ - "react", - "babel" - ], - "rules": { - "react/forbid-prop-types": 0, - "jsx-a11y/label-has-for": 0, - "jsx-a11y/no-static-element-interactions": 0, - "jsx-a11y/anchor-has-content": 0, - "jsx-a11y/click-events-have-key-events": 0, - "jsx-a11y/anchor-is-valid": 0, - "react/no-array-index-key": 0, - "func-names": 0, - "arrow-body-style": 0, - "no-use-before-define": 0, - "react/sort-comp": 0, - "react/prop-types": 0, - "react/jsx-first-prop-new-line": 0, - "react/jsx-filename-extension": [ - 1, - { - "extensions": [ - ".js", - ".jsx" - ] - } - ], - "import/extensions": 0, - "import/no-unresolved": 0, - "import/no-extraneous-dependencies": 0, - "prefer-destructuring": 0, - "no-param-reassign": 0, - "no-return-assign": 0, - "max-len": 0, - "consistent-return": 0, - "no-redeclare": 0, - "react/require-extension": 0, - "react/no-danger": 0, - "comma-dangle": [ - "error", - "always-multiline" - ], - "function-paren-newline": 0, - "object-curly-newline": 0, - "no-restricted-globals": 0, - "react/prefer-stateless-function": 0 - } -} diff --git a/blocks/SelectableTable/.gitignore b/blocks/SelectableTable/.gitignore deleted file mode 100644 index cc45d6fb3c..0000000000 --- a/blocks/SelectableTable/.gitignore +++ /dev/null @@ -1,13 +0,0 @@ - -*.swp -*.dia~ -.idea/ -.DS_Store - -npm-debug.log -yarn-error.log -node_modules/ -tmp/ - -# happypack 缓存 -.happypack diff --git a/blocks/SelectableTable/package.json b/blocks/SelectableTable/package.json index 1ac94c8da0..0aa9f17370 100644 --- a/blocks/SelectableTable/package.json +++ b/blocks/SelectableTable/package.json @@ -28,14 +28,8 @@ "@icedesign/card": "^0.1.0" }, "devDependencies": { - "babel-eslint": "^8.0.3", - "eslint": "^4.13.1", - "eslint-plugin-babel": "^4.1.1", "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "eslint-plugin-import": "^2.8.0", - "eslint-config-airbnb": "^16.1.0", - "eslint-plugin-jsx-a11y": "^6.0.3", "@icedesign/skin": "^0.1.2" }, "blockConfig": { @@ -47,6 +41,5 @@ "sketchURL": "", "icelandURL": "", "themePackage": "@icedesign/skin" - }, - "scripts": {} + } } diff --git a/blocks/SignupForm/.editorconfig b/blocks/SignupForm/.editorconfig deleted file mode 100644 index 22ef5ace54..0000000000 --- a/blocks/SignupForm/.editorconfig +++ /dev/null @@ -1,16 +0,0 @@ -# http://editorconfig.org -root = true - -[*] -indent_style = space -indent_size = 2 -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -[*.md] -trim_trailing_whitespace = false - -[makefile] -indent_style = tab -indent_size = 4 diff --git a/blocks/SignupForm/.eslintignore b/blocks/SignupForm/.eslintignore deleted file mode 100644 index 3b21308fc7..0000000000 --- a/blocks/SignupForm/.eslintignore +++ /dev/null @@ -1,12 +0,0 @@ -# 忽略目录 -build/ -tests/ -demo/ -lib/ - -# node 覆盖率文件 -coverage/ - -# 忽略文件 -**/*-min.js -**/*.min.js \ No newline at end of file diff --git a/blocks/SignupForm/.eslintrc b/blocks/SignupForm/.eslintrc deleted file mode 100644 index 7a4e5bac48..0000000000 --- a/blocks/SignupForm/.eslintrc +++ /dev/null @@ -1,62 +0,0 @@ -{ - "root": true, - "parser": "babel-eslint", - "extends": "eslint-config-airbnb", - "parserOptions": { - "ecmaVersion": 6, - "ecmaFeatures": { - "jsx": true, - "experimentalObjectRestSpread": true - } - }, - "env": { - "browser": true - }, - "plugins": [ - "react", - "babel" - ], - "rules": { - "react/forbid-prop-types": 0, - "jsx-a11y/label-has-for": 0, - "jsx-a11y/no-static-element-interactions": 0, - "jsx-a11y/anchor-has-content": 0, - "jsx-a11y/click-events-have-key-events": 0, - "jsx-a11y/anchor-is-valid": 0, - "react/no-array-index-key": 0, - "func-names": 0, - "arrow-body-style": 0, - "no-use-before-define": 0, - "react/sort-comp": 0, - "react/prop-types": 0, - "react/jsx-first-prop-new-line": 0, - "react/jsx-filename-extension": [ - 1, - { - "extensions": [ - ".js", - ".jsx" - ] - } - ], - "import/extensions": 0, - "import/no-unresolved": 0, - "import/no-extraneous-dependencies": 0, - "prefer-destructuring": 0, - "no-param-reassign": 0, - "no-return-assign": 0, - "max-len": 0, - "consistent-return": 0, - "no-redeclare": 0, - "react/require-extension": 0, - "react/no-danger": 0, - "comma-dangle": [ - "error", - "always-multiline" - ], - "function-paren-newline": 0, - "object-curly-newline": 0, - "no-restricted-globals": 0, - "react/prefer-stateless-function": 0 - } -} diff --git a/blocks/SignupForm/.gitignore b/blocks/SignupForm/.gitignore deleted file mode 100644 index cc45d6fb3c..0000000000 --- a/blocks/SignupForm/.gitignore +++ /dev/null @@ -1,13 +0,0 @@ - -*.swp -*.dia~ -.idea/ -.DS_Store - -npm-debug.log -yarn-error.log -node_modules/ -tmp/ - -# happypack 缓存 -.happypack diff --git a/blocks/SignupForm/package.json b/blocks/SignupForm/package.json index 10e5bf6831..465f63a9d5 100644 --- a/blocks/SignupForm/package.json +++ b/blocks/SignupForm/package.json @@ -28,14 +28,8 @@ "@icedesign/icon": "^0.1.0" }, "devDependencies": { - "babel-eslint": "^8.0.3", - "eslint": "^4.13.1", - "eslint-plugin-babel": "^4.1.1", "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "eslint-plugin-import": "^2.8.0", - "eslint-config-airbnb": "^16.1.0", - "eslint-plugin-jsx-a11y": "^6.0.3", "@icedesign/skin": "^0.1.2" }, "blockConfig": { @@ -47,6 +41,5 @@ "sketchURL": "", "icelandURL": "", "themePackage": "@icedesign/skin" - }, - "scripts": {} + } } diff --git a/blocks/SimpleFluencyForm/.editorconfig b/blocks/SimpleFluencyForm/.editorconfig deleted file mode 100644 index 22ef5ace54..0000000000 --- a/blocks/SimpleFluencyForm/.editorconfig +++ /dev/null @@ -1,16 +0,0 @@ -# http://editorconfig.org -root = true - -[*] -indent_style = space -indent_size = 2 -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -[*.md] -trim_trailing_whitespace = false - -[makefile] -indent_style = tab -indent_size = 4 diff --git a/blocks/SimpleFluencyForm/.eslintignore b/blocks/SimpleFluencyForm/.eslintignore deleted file mode 100644 index 3b21308fc7..0000000000 --- a/blocks/SimpleFluencyForm/.eslintignore +++ /dev/null @@ -1,12 +0,0 @@ -# 忽略目录 -build/ -tests/ -demo/ -lib/ - -# node 覆盖率文件 -coverage/ - -# 忽略文件 -**/*-min.js -**/*.min.js \ No newline at end of file diff --git a/blocks/SimpleFluencyForm/.eslintrc b/blocks/SimpleFluencyForm/.eslintrc deleted file mode 100644 index 7a4e5bac48..0000000000 --- a/blocks/SimpleFluencyForm/.eslintrc +++ /dev/null @@ -1,62 +0,0 @@ -{ - "root": true, - "parser": "babel-eslint", - "extends": "eslint-config-airbnb", - "parserOptions": { - "ecmaVersion": 6, - "ecmaFeatures": { - "jsx": true, - "experimentalObjectRestSpread": true - } - }, - "env": { - "browser": true - }, - "plugins": [ - "react", - "babel" - ], - "rules": { - "react/forbid-prop-types": 0, - "jsx-a11y/label-has-for": 0, - "jsx-a11y/no-static-element-interactions": 0, - "jsx-a11y/anchor-has-content": 0, - "jsx-a11y/click-events-have-key-events": 0, - "jsx-a11y/anchor-is-valid": 0, - "react/no-array-index-key": 0, - "func-names": 0, - "arrow-body-style": 0, - "no-use-before-define": 0, - "react/sort-comp": 0, - "react/prop-types": 0, - "react/jsx-first-prop-new-line": 0, - "react/jsx-filename-extension": [ - 1, - { - "extensions": [ - ".js", - ".jsx" - ] - } - ], - "import/extensions": 0, - "import/no-unresolved": 0, - "import/no-extraneous-dependencies": 0, - "prefer-destructuring": 0, - "no-param-reassign": 0, - "no-return-assign": 0, - "max-len": 0, - "consistent-return": 0, - "no-redeclare": 0, - "react/require-extension": 0, - "react/no-danger": 0, - "comma-dangle": [ - "error", - "always-multiline" - ], - "function-paren-newline": 0, - "object-curly-newline": 0, - "no-restricted-globals": 0, - "react/prefer-stateless-function": 0 - } -} diff --git a/blocks/SimpleFluencyForm/.gitignore b/blocks/SimpleFluencyForm/.gitignore deleted file mode 100644 index cc45d6fb3c..0000000000 --- a/blocks/SimpleFluencyForm/.gitignore +++ /dev/null @@ -1,13 +0,0 @@ - -*.swp -*.dia~ -.idea/ -.DS_Store - -npm-debug.log -yarn-error.log -node_modules/ -tmp/ - -# happypack 缓存 -.happypack diff --git a/blocks/SimpleFluencyForm/package.json b/blocks/SimpleFluencyForm/package.json index 33b16db05c..7ea31cd94d 100644 --- a/blocks/SimpleFluencyForm/package.json +++ b/blocks/SimpleFluencyForm/package.json @@ -8,7 +8,6 @@ "lib/", "mock/" ], - "scripts": {}, "author": { "name": "ICE Team", "email": "ice-admin@alibaba-inc.com" @@ -30,16 +29,10 @@ }, "devDependencies": { "@icedesign/skin": "^0.1.2", - "babel-eslint": "^8.0.3", "eslint-plugin-react": "^7.5.1", "react": "15.x", "react-copy-to-clipboard": "^4.2.3", "react-dom": "15.x", - "eslint": "^4.13.1", - "eslint-plugin-babel": "^4.1.1", - "eslint-plugin-import": "^2.8.0", - "eslint-config-airbnb": "^16.1.0", - "eslint-plugin-jsx-a11y": "^6.0.3", "@icedesign/demo-layout": "^0.1.0" }, "blockConfig": { diff --git a/blocks/SimpleFormDialog/.editorconfig b/blocks/SimpleFormDialog/.editorconfig deleted file mode 100644 index 22ef5ace54..0000000000 --- a/blocks/SimpleFormDialog/.editorconfig +++ /dev/null @@ -1,16 +0,0 @@ -# http://editorconfig.org -root = true - -[*] -indent_style = space -indent_size = 2 -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -[*.md] -trim_trailing_whitespace = false - -[makefile] -indent_style = tab -indent_size = 4 diff --git a/blocks/SimpleFormDialog/.eslintignore b/blocks/SimpleFormDialog/.eslintignore deleted file mode 100644 index 3b21308fc7..0000000000 --- a/blocks/SimpleFormDialog/.eslintignore +++ /dev/null @@ -1,12 +0,0 @@ -# 忽略目录 -build/ -tests/ -demo/ -lib/ - -# node 覆盖率文件 -coverage/ - -# 忽略文件 -**/*-min.js -**/*.min.js \ No newline at end of file diff --git a/blocks/SimpleFormDialog/.eslintrc b/blocks/SimpleFormDialog/.eslintrc deleted file mode 100644 index 7a4e5bac48..0000000000 --- a/blocks/SimpleFormDialog/.eslintrc +++ /dev/null @@ -1,62 +0,0 @@ -{ - "root": true, - "parser": "babel-eslint", - "extends": "eslint-config-airbnb", - "parserOptions": { - "ecmaVersion": 6, - "ecmaFeatures": { - "jsx": true, - "experimentalObjectRestSpread": true - } - }, - "env": { - "browser": true - }, - "plugins": [ - "react", - "babel" - ], - "rules": { - "react/forbid-prop-types": 0, - "jsx-a11y/label-has-for": 0, - "jsx-a11y/no-static-element-interactions": 0, - "jsx-a11y/anchor-has-content": 0, - "jsx-a11y/click-events-have-key-events": 0, - "jsx-a11y/anchor-is-valid": 0, - "react/no-array-index-key": 0, - "func-names": 0, - "arrow-body-style": 0, - "no-use-before-define": 0, - "react/sort-comp": 0, - "react/prop-types": 0, - "react/jsx-first-prop-new-line": 0, - "react/jsx-filename-extension": [ - 1, - { - "extensions": [ - ".js", - ".jsx" - ] - } - ], - "import/extensions": 0, - "import/no-unresolved": 0, - "import/no-extraneous-dependencies": 0, - "prefer-destructuring": 0, - "no-param-reassign": 0, - "no-return-assign": 0, - "max-len": 0, - "consistent-return": 0, - "no-redeclare": 0, - "react/require-extension": 0, - "react/no-danger": 0, - "comma-dangle": [ - "error", - "always-multiline" - ], - "function-paren-newline": 0, - "object-curly-newline": 0, - "no-restricted-globals": 0, - "react/prefer-stateless-function": 0 - } -} diff --git a/blocks/SimpleFormDialog/.gitignore b/blocks/SimpleFormDialog/.gitignore deleted file mode 100644 index cc45d6fb3c..0000000000 --- a/blocks/SimpleFormDialog/.gitignore +++ /dev/null @@ -1,13 +0,0 @@ - -*.swp -*.dia~ -.idea/ -.DS_Store - -npm-debug.log -yarn-error.log -node_modules/ -tmp/ - -# happypack 缓存 -.happypack diff --git a/blocks/SimpleFormDialog/package.json b/blocks/SimpleFormDialog/package.json index f37febd8f2..727a1dd240 100644 --- a/blocks/SimpleFormDialog/package.json +++ b/blocks/SimpleFormDialog/package.json @@ -12,7 +12,6 @@ "name": "ICE Team", "email": "ice-admin@alibaba-inc.com" }, - "scripts": {}, "repository": { "type": "git", "url": "https://github.com/alibaba/ice" @@ -29,12 +28,6 @@ "@icedesign/form-binder": "^0.1.0" }, "devDependencies": { - "babel-eslint": "^8.0.3", - "eslint": "^4.13.1", - "eslint-config-airbnb": "^16.1.0", - "eslint-plugin-babel": "^4.1.1", - "eslint-plugin-import": "^2.8.0", - "eslint-plugin-jsx-a11y": "^6.0.3", "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.2" diff --git a/blocks/SimpleTable/.editorconfig b/blocks/SimpleTable/.editorconfig deleted file mode 100644 index 22ef5ace54..0000000000 --- a/blocks/SimpleTable/.editorconfig +++ /dev/null @@ -1,16 +0,0 @@ -# http://editorconfig.org -root = true - -[*] -indent_style = space -indent_size = 2 -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -[*.md] -trim_trailing_whitespace = false - -[makefile] -indent_style = tab -indent_size = 4 diff --git a/blocks/SimpleTable/.eslintignore b/blocks/SimpleTable/.eslintignore deleted file mode 100644 index 2d5ec592a3..0000000000 --- a/blocks/SimpleTable/.eslintignore +++ /dev/null @@ -1,12 +0,0 @@ -# 忽略目录 -build/ -tests/ -demo/ -lib/ - -# node 覆盖率文件 -coverage/ - -# 忽略文件 -**/*-min.js -**/*.min.js diff --git a/blocks/SimpleTable/.eslintrc b/blocks/SimpleTable/.eslintrc deleted file mode 100644 index 7cc397841e..0000000000 --- a/blocks/SimpleTable/.eslintrc +++ /dev/null @@ -1,61 +0,0 @@ -{ - "root": true, - "parser": "babel-eslint", - "extends": "eslint-config-airbnb", - "parserOptions": { - "ecmaVersion": 6, - "ecmaFeatures": { - "jsx": true, - "experimentalObjectRestSpread": true - } - }, - "env": { - "browser": true - }, - "plugins": [ - "react", - "babel" - ], - "rules": { - "react/forbid-prop-types": 0, - "jsx-a11y/label-has-for": 0, - "jsx-a11y/no-static-element-interactions": 0, - "jsx-a11y/anchor-has-content": 0, - "jsx-a11y/click-events-have-key-events": 0, - "jsx-a11y/anchor-is-valid": 0, - "react/no-array-index-key": 0, - "func-names": 0, - "arrow-body-style": 0, - "no-use-before-define": 1, - "react/sort-comp": 0, - "react/prop-types": 0, - "react/jsx-first-prop-new-line": 0, - "react/jsx-filename-extension": [ - 1, - { - "extensions": [ - ".js", - ".jsx" - ] - } - ], - "import/extensions": 0, - "import/no-unresolved": 0, - "import/no-extraneous-dependencies": 0, - "prefer-destructuring": 0, - "no-param-reassign": 0, - "no-return-assign": 0, - "max-len": 0, - "consistent-return": 0, - "no-redeclare": 0, - "react/require-extension": 0, - "react/no-danger": 0, - "comma-dangle": [ - "error", - "always-multiline" - ], - "function-paren-newline": 0, - "object-curly-newline": 0, - "no-restricted-globals": 0 - } -} diff --git a/blocks/SimpleTable/.gitignore b/blocks/SimpleTable/.gitignore deleted file mode 100644 index cc45d6fb3c..0000000000 --- a/blocks/SimpleTable/.gitignore +++ /dev/null @@ -1,13 +0,0 @@ - -*.swp -*.dia~ -.idea/ -.DS_Store - -npm-debug.log -yarn-error.log -node_modules/ -tmp/ - -# happypack 缓存 -.happypack diff --git a/blocks/SimpleTable/package.json b/blocks/SimpleTable/package.json index 163ebf2efa..d67e26b1ce 100644 --- a/blocks/SimpleTable/package.json +++ b/blocks/SimpleTable/package.json @@ -31,14 +31,8 @@ }, "devDependencies": { "@icedesign/demo-layout": "latest", - "babel-eslint": "^8.0.3", - "eslint": "^4.13.1", - "eslint-plugin-babel": "^4.1.1", "eslint-plugin-react": "^7.5.1", - "@icedesign/skin": "^0.1.3", - "eslint-plugin-import": "^2.8.0", - "eslint-config-airbnb": "^16.1.0", - "eslint-plugin-jsx-a11y": "^6.0.3" + "@icedesign/skin": "^0.1.3" }, "blockConfig": { "name": "simple-table", @@ -49,9 +43,5 @@ "sketchURL": "", "icelandURL": "", "themePackage": "@icedesign/skin" - }, - "scripts": { - "lint": "eslint . --ext '.js,.jsx' --fix", - "prepublish": "npm run lint" } } diff --git a/blocks/SimpleTestimonial/.editorconfig b/blocks/SimpleTestimonial/.editorconfig deleted file mode 100644 index 22ef5ace54..0000000000 --- a/blocks/SimpleTestimonial/.editorconfig +++ /dev/null @@ -1,16 +0,0 @@ -# http://editorconfig.org -root = true - -[*] -indent_style = space -indent_size = 2 -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -[*.md] -trim_trailing_whitespace = false - -[makefile] -indent_style = tab -indent_size = 4 diff --git a/blocks/SimpleTestimonial/.eslintignore b/blocks/SimpleTestimonial/.eslintignore deleted file mode 100644 index 3b21308fc7..0000000000 --- a/blocks/SimpleTestimonial/.eslintignore +++ /dev/null @@ -1,12 +0,0 @@ -# 忽略目录 -build/ -tests/ -demo/ -lib/ - -# node 覆盖率文件 -coverage/ - -# 忽略文件 -**/*-min.js -**/*.min.js \ No newline at end of file diff --git a/blocks/SimpleTestimonial/.eslintrc b/blocks/SimpleTestimonial/.eslintrc deleted file mode 100644 index 7a4e5bac48..0000000000 --- a/blocks/SimpleTestimonial/.eslintrc +++ /dev/null @@ -1,62 +0,0 @@ -{ - "root": true, - "parser": "babel-eslint", - "extends": "eslint-config-airbnb", - "parserOptions": { - "ecmaVersion": 6, - "ecmaFeatures": { - "jsx": true, - "experimentalObjectRestSpread": true - } - }, - "env": { - "browser": true - }, - "plugins": [ - "react", - "babel" - ], - "rules": { - "react/forbid-prop-types": 0, - "jsx-a11y/label-has-for": 0, - "jsx-a11y/no-static-element-interactions": 0, - "jsx-a11y/anchor-has-content": 0, - "jsx-a11y/click-events-have-key-events": 0, - "jsx-a11y/anchor-is-valid": 0, - "react/no-array-index-key": 0, - "func-names": 0, - "arrow-body-style": 0, - "no-use-before-define": 0, - "react/sort-comp": 0, - "react/prop-types": 0, - "react/jsx-first-prop-new-line": 0, - "react/jsx-filename-extension": [ - 1, - { - "extensions": [ - ".js", - ".jsx" - ] - } - ], - "import/extensions": 0, - "import/no-unresolved": 0, - "import/no-extraneous-dependencies": 0, - "prefer-destructuring": 0, - "no-param-reassign": 0, - "no-return-assign": 0, - "max-len": 0, - "consistent-return": 0, - "no-redeclare": 0, - "react/require-extension": 0, - "react/no-danger": 0, - "comma-dangle": [ - "error", - "always-multiline" - ], - "function-paren-newline": 0, - "object-curly-newline": 0, - "no-restricted-globals": 0, - "react/prefer-stateless-function": 0 - } -} diff --git a/blocks/SimpleTestimonial/.gitignore b/blocks/SimpleTestimonial/.gitignore deleted file mode 100644 index cc45d6fb3c..0000000000 --- a/blocks/SimpleTestimonial/.gitignore +++ /dev/null @@ -1,13 +0,0 @@ - -*.swp -*.dia~ -.idea/ -.DS_Store - -npm-debug.log -yarn-error.log -node_modules/ -tmp/ - -# happypack 缓存 -.happypack diff --git a/blocks/SimpleTestimonial/package.json b/blocks/SimpleTestimonial/package.json index c9e80d8cf9..95d38a614b 100644 --- a/blocks/SimpleTestimonial/package.json +++ b/blocks/SimpleTestimonial/package.json @@ -27,14 +27,8 @@ "@icedesign/card": "^0.1.0" }, "devDependencies": { - "babel-eslint": "^8.0.3", - "eslint": "^4.13.1", - "eslint-plugin-babel": "^4.1.1", "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "eslint-plugin-import": "^2.8.0", - "eslint-config-airbnb": "^16.1.0", - "eslint-plugin-jsx-a11y": "^6.0.3", "@icedesign/skin": "^0.1.2" }, "blockConfig": { @@ -46,6 +40,5 @@ "sketchURL": "", "icelandURL": "", "themePackage": "@icedesign/skin" - }, - "scripts": {} + } } diff --git a/blocks/SortCardList/.editorconfig b/blocks/SortCardList/.editorconfig deleted file mode 100644 index 22ef5ace54..0000000000 --- a/blocks/SortCardList/.editorconfig +++ /dev/null @@ -1,16 +0,0 @@ -# http://editorconfig.org -root = true - -[*] -indent_style = space -indent_size = 2 -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -[*.md] -trim_trailing_whitespace = false - -[makefile] -indent_style = tab -indent_size = 4 diff --git a/blocks/SortCardList/.eslintignore b/blocks/SortCardList/.eslintignore deleted file mode 100644 index 3b21308fc7..0000000000 --- a/blocks/SortCardList/.eslintignore +++ /dev/null @@ -1,12 +0,0 @@ -# 忽略目录 -build/ -tests/ -demo/ -lib/ - -# node 覆盖率文件 -coverage/ - -# 忽略文件 -**/*-min.js -**/*.min.js \ No newline at end of file diff --git a/blocks/SortCardList/.eslintrc b/blocks/SortCardList/.eslintrc deleted file mode 100644 index 7a4e5bac48..0000000000 --- a/blocks/SortCardList/.eslintrc +++ /dev/null @@ -1,62 +0,0 @@ -{ - "root": true, - "parser": "babel-eslint", - "extends": "eslint-config-airbnb", - "parserOptions": { - "ecmaVersion": 6, - "ecmaFeatures": { - "jsx": true, - "experimentalObjectRestSpread": true - } - }, - "env": { - "browser": true - }, - "plugins": [ - "react", - "babel" - ], - "rules": { - "react/forbid-prop-types": 0, - "jsx-a11y/label-has-for": 0, - "jsx-a11y/no-static-element-interactions": 0, - "jsx-a11y/anchor-has-content": 0, - "jsx-a11y/click-events-have-key-events": 0, - "jsx-a11y/anchor-is-valid": 0, - "react/no-array-index-key": 0, - "func-names": 0, - "arrow-body-style": 0, - "no-use-before-define": 0, - "react/sort-comp": 0, - "react/prop-types": 0, - "react/jsx-first-prop-new-line": 0, - "react/jsx-filename-extension": [ - 1, - { - "extensions": [ - ".js", - ".jsx" - ] - } - ], - "import/extensions": 0, - "import/no-unresolved": 0, - "import/no-extraneous-dependencies": 0, - "prefer-destructuring": 0, - "no-param-reassign": 0, - "no-return-assign": 0, - "max-len": 0, - "consistent-return": 0, - "no-redeclare": 0, - "react/require-extension": 0, - "react/no-danger": 0, - "comma-dangle": [ - "error", - "always-multiline" - ], - "function-paren-newline": 0, - "object-curly-newline": 0, - "no-restricted-globals": 0, - "react/prefer-stateless-function": 0 - } -} diff --git a/blocks/SortCardList/.gitignore b/blocks/SortCardList/.gitignore deleted file mode 100644 index 5945feea3c..0000000000 --- a/blocks/SortCardList/.gitignore +++ /dev/null @@ -1,14 +0,0 @@ - - *.swp - *.dia~ - .idea/ - .DS_Store - - npm-debug.log - yarn-error.log - node_modules/ - tmp/ - - # happypack 缓存 - .happypack - \ No newline at end of file diff --git a/blocks/SortCardList/package.json b/blocks/SortCardList/package.json index 0864cc3ec6..aeff72e493 100644 --- a/blocks/SortCardList/package.json +++ b/blocks/SortCardList/package.json @@ -8,10 +8,6 @@ "lib/", "mock/" ], - "scripts": { - "lint": "eslint . --ext '.js,.jsx' --fix", - "prepublish": "npm run lint" - }, "author": { "name": "ICE Team", "email": "ice-admin@alibaba-inc.com" @@ -32,16 +28,10 @@ }, "devDependencies": { "@icedesign/skin": "^0.1.2", - "babel-eslint": "^8.0.3", "eslint-plugin-react": "^7.5.1", "react": "15.x", "react-copy-to-clipboard": "^4.2.3", "react-dom": "15.x", - "eslint": "^4.13.1", - "eslint-plugin-babel": "^4.1.1", - "eslint-plugin-import": "^2.8.0", - "eslint-config-airbnb": "^16.1.0", - "eslint-plugin-jsx-a11y": "^6.0.3", "@icedesign/demo-layout": "^0.1.0" }, "blockConfig": { diff --git a/blocks/StatisticalCard/.editorconfig b/blocks/StatisticalCard/.editorconfig deleted file mode 100644 index 22ef5ace54..0000000000 --- a/blocks/StatisticalCard/.editorconfig +++ /dev/null @@ -1,16 +0,0 @@ -# http://editorconfig.org -root = true - -[*] -indent_style = space -indent_size = 2 -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -[*.md] -trim_trailing_whitespace = false - -[makefile] -indent_style = tab -indent_size = 4 diff --git a/blocks/StatisticalCard/.eslintignore b/blocks/StatisticalCard/.eslintignore deleted file mode 100644 index 3b21308fc7..0000000000 --- a/blocks/StatisticalCard/.eslintignore +++ /dev/null @@ -1,12 +0,0 @@ -# 忽略目录 -build/ -tests/ -demo/ -lib/ - -# node 覆盖率文件 -coverage/ - -# 忽略文件 -**/*-min.js -**/*.min.js \ No newline at end of file diff --git a/blocks/StatisticalCard/.eslintrc b/blocks/StatisticalCard/.eslintrc deleted file mode 100644 index 7a4e5bac48..0000000000 --- a/blocks/StatisticalCard/.eslintrc +++ /dev/null @@ -1,62 +0,0 @@ -{ - "root": true, - "parser": "babel-eslint", - "extends": "eslint-config-airbnb", - "parserOptions": { - "ecmaVersion": 6, - "ecmaFeatures": { - "jsx": true, - "experimentalObjectRestSpread": true - } - }, - "env": { - "browser": true - }, - "plugins": [ - "react", - "babel" - ], - "rules": { - "react/forbid-prop-types": 0, - "jsx-a11y/label-has-for": 0, - "jsx-a11y/no-static-element-interactions": 0, - "jsx-a11y/anchor-has-content": 0, - "jsx-a11y/click-events-have-key-events": 0, - "jsx-a11y/anchor-is-valid": 0, - "react/no-array-index-key": 0, - "func-names": 0, - "arrow-body-style": 0, - "no-use-before-define": 0, - "react/sort-comp": 0, - "react/prop-types": 0, - "react/jsx-first-prop-new-line": 0, - "react/jsx-filename-extension": [ - 1, - { - "extensions": [ - ".js", - ".jsx" - ] - } - ], - "import/extensions": 0, - "import/no-unresolved": 0, - "import/no-extraneous-dependencies": 0, - "prefer-destructuring": 0, - "no-param-reassign": 0, - "no-return-assign": 0, - "max-len": 0, - "consistent-return": 0, - "no-redeclare": 0, - "react/require-extension": 0, - "react/no-danger": 0, - "comma-dangle": [ - "error", - "always-multiline" - ], - "function-paren-newline": 0, - "object-curly-newline": 0, - "no-restricted-globals": 0, - "react/prefer-stateless-function": 0 - } -} diff --git a/blocks/StatisticalCard/.gitignore b/blocks/StatisticalCard/.gitignore deleted file mode 100644 index cc45d6fb3c..0000000000 --- a/blocks/StatisticalCard/.gitignore +++ /dev/null @@ -1,13 +0,0 @@ - -*.swp -*.dia~ -.idea/ -.DS_Store - -npm-debug.log -yarn-error.log -node_modules/ -tmp/ - -# happypack 缓存 -.happypack diff --git a/blocks/StatisticalCard/package.json b/blocks/StatisticalCard/package.json index 348dd2b7ca..d78e26d259 100644 --- a/blocks/StatisticalCard/package.json +++ b/blocks/StatisticalCard/package.json @@ -27,14 +27,8 @@ "@icedesign/card": "^0.1.0" }, "devDependencies": { - "babel-eslint": "^8.0.3", - "eslint": "^4.13.1", - "eslint-plugin-babel": "^4.1.1", "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "eslint-plugin-import": "^2.8.0", - "eslint-config-airbnb": "^16.1.0", - "eslint-plugin-jsx-a11y": "^6.0.3", "@icedesign/skin": "^0.1.2" }, "blockConfig": { @@ -46,6 +40,5 @@ "sketchURL": "", "icelandURL": "", "themePackage": "@icedesign/skin" - }, - "scripts": {} + } } diff --git a/blocks/Subscribe/.editorconfig b/blocks/Subscribe/.editorconfig deleted file mode 100644 index 22ef5ace54..0000000000 --- a/blocks/Subscribe/.editorconfig +++ /dev/null @@ -1,16 +0,0 @@ -# http://editorconfig.org -root = true - -[*] -indent_style = space -indent_size = 2 -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -[*.md] -trim_trailing_whitespace = false - -[makefile] -indent_style = tab -indent_size = 4 diff --git a/blocks/Subscribe/.eslintignore b/blocks/Subscribe/.eslintignore deleted file mode 100644 index 3b21308fc7..0000000000 --- a/blocks/Subscribe/.eslintignore +++ /dev/null @@ -1,12 +0,0 @@ -# 忽略目录 -build/ -tests/ -demo/ -lib/ - -# node 覆盖率文件 -coverage/ - -# 忽略文件 -**/*-min.js -**/*.min.js \ No newline at end of file diff --git a/blocks/Subscribe/.eslintrc b/blocks/Subscribe/.eslintrc deleted file mode 100644 index 7a4e5bac48..0000000000 --- a/blocks/Subscribe/.eslintrc +++ /dev/null @@ -1,62 +0,0 @@ -{ - "root": true, - "parser": "babel-eslint", - "extends": "eslint-config-airbnb", - "parserOptions": { - "ecmaVersion": 6, - "ecmaFeatures": { - "jsx": true, - "experimentalObjectRestSpread": true - } - }, - "env": { - "browser": true - }, - "plugins": [ - "react", - "babel" - ], - "rules": { - "react/forbid-prop-types": 0, - "jsx-a11y/label-has-for": 0, - "jsx-a11y/no-static-element-interactions": 0, - "jsx-a11y/anchor-has-content": 0, - "jsx-a11y/click-events-have-key-events": 0, - "jsx-a11y/anchor-is-valid": 0, - "react/no-array-index-key": 0, - "func-names": 0, - "arrow-body-style": 0, - "no-use-before-define": 0, - "react/sort-comp": 0, - "react/prop-types": 0, - "react/jsx-first-prop-new-line": 0, - "react/jsx-filename-extension": [ - 1, - { - "extensions": [ - ".js", - ".jsx" - ] - } - ], - "import/extensions": 0, - "import/no-unresolved": 0, - "import/no-extraneous-dependencies": 0, - "prefer-destructuring": 0, - "no-param-reassign": 0, - "no-return-assign": 0, - "max-len": 0, - "consistent-return": 0, - "no-redeclare": 0, - "react/require-extension": 0, - "react/no-danger": 0, - "comma-dangle": [ - "error", - "always-multiline" - ], - "function-paren-newline": 0, - "object-curly-newline": 0, - "no-restricted-globals": 0, - "react/prefer-stateless-function": 0 - } -} diff --git a/blocks/Subscribe/.gitignore b/blocks/Subscribe/.gitignore deleted file mode 100644 index cc45d6fb3c..0000000000 --- a/blocks/Subscribe/.gitignore +++ /dev/null @@ -1,13 +0,0 @@ - -*.swp -*.dia~ -.idea/ -.DS_Store - -npm-debug.log -yarn-error.log -node_modules/ -tmp/ - -# happypack 缓存 -.happypack diff --git a/blocks/Subscribe/package.json b/blocks/Subscribe/package.json index 50f26bd356..01d490f89c 100644 --- a/blocks/Subscribe/package.json +++ b/blocks/Subscribe/package.json @@ -8,7 +8,6 @@ "lib/", "mock/" ], - "scripts": {}, "author": { "name": "ICE Team", "email": "ice-admin@alibaba-inc.com" @@ -30,16 +29,10 @@ }, "devDependencies": { "@icedesign/skin": "^0.1.2", - "babel-eslint": "^8.0.3", "eslint-plugin-react": "^7.5.1", "react": "15.x", "react-copy-to-clipboard": "^4.2.3", "react-dom": "15.x", - "eslint": "^4.13.1", - "eslint-plugin-babel": "^4.1.1", - "eslint-plugin-import": "^2.8.0", - "eslint-config-airbnb": "^16.1.0", - "eslint-plugin-jsx-a11y": "^6.0.3", "@icedesign/demo-layout": "^0.1.0" }, "blockConfig": { diff --git a/blocks/SuccessDetail/.editorconfig b/blocks/SuccessDetail/.editorconfig deleted file mode 100644 index 22ef5ace54..0000000000 --- a/blocks/SuccessDetail/.editorconfig +++ /dev/null @@ -1,16 +0,0 @@ -# http://editorconfig.org -root = true - -[*] -indent_style = space -indent_size = 2 -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -[*.md] -trim_trailing_whitespace = false - -[makefile] -indent_style = tab -indent_size = 4 diff --git a/blocks/SuccessDetail/.eslintignore b/blocks/SuccessDetail/.eslintignore deleted file mode 100644 index 3b21308fc7..0000000000 --- a/blocks/SuccessDetail/.eslintignore +++ /dev/null @@ -1,12 +0,0 @@ -# 忽略目录 -build/ -tests/ -demo/ -lib/ - -# node 覆盖率文件 -coverage/ - -# 忽略文件 -**/*-min.js -**/*.min.js \ No newline at end of file diff --git a/blocks/SuccessDetail/.eslintrc b/blocks/SuccessDetail/.eslintrc deleted file mode 100644 index 7a4e5bac48..0000000000 --- a/blocks/SuccessDetail/.eslintrc +++ /dev/null @@ -1,62 +0,0 @@ -{ - "root": true, - "parser": "babel-eslint", - "extends": "eslint-config-airbnb", - "parserOptions": { - "ecmaVersion": 6, - "ecmaFeatures": { - "jsx": true, - "experimentalObjectRestSpread": true - } - }, - "env": { - "browser": true - }, - "plugins": [ - "react", - "babel" - ], - "rules": { - "react/forbid-prop-types": 0, - "jsx-a11y/label-has-for": 0, - "jsx-a11y/no-static-element-interactions": 0, - "jsx-a11y/anchor-has-content": 0, - "jsx-a11y/click-events-have-key-events": 0, - "jsx-a11y/anchor-is-valid": 0, - "react/no-array-index-key": 0, - "func-names": 0, - "arrow-body-style": 0, - "no-use-before-define": 0, - "react/sort-comp": 0, - "react/prop-types": 0, - "react/jsx-first-prop-new-line": 0, - "react/jsx-filename-extension": [ - 1, - { - "extensions": [ - ".js", - ".jsx" - ] - } - ], - "import/extensions": 0, - "import/no-unresolved": 0, - "import/no-extraneous-dependencies": 0, - "prefer-destructuring": 0, - "no-param-reassign": 0, - "no-return-assign": 0, - "max-len": 0, - "consistent-return": 0, - "no-redeclare": 0, - "react/require-extension": 0, - "react/no-danger": 0, - "comma-dangle": [ - "error", - "always-multiline" - ], - "function-paren-newline": 0, - "object-curly-newline": 0, - "no-restricted-globals": 0, - "react/prefer-stateless-function": 0 - } -} diff --git a/blocks/SuccessDetail/.gitignore b/blocks/SuccessDetail/.gitignore deleted file mode 100644 index cc45d6fb3c..0000000000 --- a/blocks/SuccessDetail/.gitignore +++ /dev/null @@ -1,13 +0,0 @@ - -*.swp -*.dia~ -.idea/ -.DS_Store - -npm-debug.log -yarn-error.log -node_modules/ -tmp/ - -# happypack 缓存 -.happypack diff --git a/blocks/SuccessDetail/package.json b/blocks/SuccessDetail/package.json index 2feeed06e5..16ecbfe2e9 100644 --- a/blocks/SuccessDetail/package.json +++ b/blocks/SuccessDetail/package.json @@ -27,14 +27,8 @@ "@icedesign/card": "^0.1.0" }, "devDependencies": { - "babel-eslint": "^8.0.3", - "eslint": "^4.13.1", - "eslint-plugin-babel": "^4.1.1", "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "eslint-plugin-import": "^2.8.0", - "eslint-config-airbnb": "^16.1.0", - "eslint-plugin-jsx-a11y": "^6.0.3", "@icedesign/skin": "^0.1.2" }, "blockConfig": { @@ -46,6 +40,5 @@ "sketchURL": "", "icelandURL": "", "themePackage": "@icedesign/skin" - }, - "scripts": {} + } } diff --git a/blocks/SuccessDialog/.editorconfig b/blocks/SuccessDialog/.editorconfig deleted file mode 100644 index 22ef5ace54..0000000000 --- a/blocks/SuccessDialog/.editorconfig +++ /dev/null @@ -1,16 +0,0 @@ -# http://editorconfig.org -root = true - -[*] -indent_style = space -indent_size = 2 -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -[*.md] -trim_trailing_whitespace = false - -[makefile] -indent_style = tab -indent_size = 4 diff --git a/blocks/SuccessDialog/.eslintignore b/blocks/SuccessDialog/.eslintignore deleted file mode 100644 index 3b21308fc7..0000000000 --- a/blocks/SuccessDialog/.eslintignore +++ /dev/null @@ -1,12 +0,0 @@ -# 忽略目录 -build/ -tests/ -demo/ -lib/ - -# node 覆盖率文件 -coverage/ - -# 忽略文件 -**/*-min.js -**/*.min.js \ No newline at end of file diff --git a/blocks/SuccessDialog/.eslintrc b/blocks/SuccessDialog/.eslintrc deleted file mode 100644 index 7a4e5bac48..0000000000 --- a/blocks/SuccessDialog/.eslintrc +++ /dev/null @@ -1,62 +0,0 @@ -{ - "root": true, - "parser": "babel-eslint", - "extends": "eslint-config-airbnb", - "parserOptions": { - "ecmaVersion": 6, - "ecmaFeatures": { - "jsx": true, - "experimentalObjectRestSpread": true - } - }, - "env": { - "browser": true - }, - "plugins": [ - "react", - "babel" - ], - "rules": { - "react/forbid-prop-types": 0, - "jsx-a11y/label-has-for": 0, - "jsx-a11y/no-static-element-interactions": 0, - "jsx-a11y/anchor-has-content": 0, - "jsx-a11y/click-events-have-key-events": 0, - "jsx-a11y/anchor-is-valid": 0, - "react/no-array-index-key": 0, - "func-names": 0, - "arrow-body-style": 0, - "no-use-before-define": 0, - "react/sort-comp": 0, - "react/prop-types": 0, - "react/jsx-first-prop-new-line": 0, - "react/jsx-filename-extension": [ - 1, - { - "extensions": [ - ".js", - ".jsx" - ] - } - ], - "import/extensions": 0, - "import/no-unresolved": 0, - "import/no-extraneous-dependencies": 0, - "prefer-destructuring": 0, - "no-param-reassign": 0, - "no-return-assign": 0, - "max-len": 0, - "consistent-return": 0, - "no-redeclare": 0, - "react/require-extension": 0, - "react/no-danger": 0, - "comma-dangle": [ - "error", - "always-multiline" - ], - "function-paren-newline": 0, - "object-curly-newline": 0, - "no-restricted-globals": 0, - "react/prefer-stateless-function": 0 - } -} diff --git a/blocks/SuccessDialog/.gitignore b/blocks/SuccessDialog/.gitignore deleted file mode 100644 index cc45d6fb3c..0000000000 --- a/blocks/SuccessDialog/.gitignore +++ /dev/null @@ -1,13 +0,0 @@ - -*.swp -*.dia~ -.idea/ -.DS_Store - -npm-debug.log -yarn-error.log -node_modules/ -tmp/ - -# happypack 缓存 -.happypack diff --git a/blocks/SuccessDialog/package.json b/blocks/SuccessDialog/package.json index c0b29665e2..73b2937396 100644 --- a/blocks/SuccessDialog/package.json +++ b/blocks/SuccessDialog/package.json @@ -27,14 +27,8 @@ "@icedesign/base": "^0.1.0" }, "devDependencies": { - "babel-eslint": "^8.0.3", - "eslint": "^4.13.1", - "eslint-plugin-babel": "^4.1.1", "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "eslint-plugin-import": "^2.8.0", - "eslint-config-airbnb": "^16.1.0", - "eslint-plugin-jsx-a11y": "^6.0.3", "@icedesign/skin": "^0.1.2" }, "blockConfig": { @@ -46,6 +40,5 @@ "sketchURL": "", "icelandURL": "", "themePackage": "@icedesign/skin" - }, - "scripts": {} + } } diff --git a/blocks/SystemNoticeList/.editorconfig b/blocks/SystemNoticeList/.editorconfig deleted file mode 100644 index 22ef5ace54..0000000000 --- a/blocks/SystemNoticeList/.editorconfig +++ /dev/null @@ -1,16 +0,0 @@ -# http://editorconfig.org -root = true - -[*] -indent_style = space -indent_size = 2 -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -[*.md] -trim_trailing_whitespace = false - -[makefile] -indent_style = tab -indent_size = 4 diff --git a/blocks/SystemNoticeList/.eslintignore b/blocks/SystemNoticeList/.eslintignore deleted file mode 100644 index 3b21308fc7..0000000000 --- a/blocks/SystemNoticeList/.eslintignore +++ /dev/null @@ -1,12 +0,0 @@ -# 忽略目录 -build/ -tests/ -demo/ -lib/ - -# node 覆盖率文件 -coverage/ - -# 忽略文件 -**/*-min.js -**/*.min.js \ No newline at end of file diff --git a/blocks/SystemNoticeList/.eslintrc b/blocks/SystemNoticeList/.eslintrc deleted file mode 100644 index 7a4e5bac48..0000000000 --- a/blocks/SystemNoticeList/.eslintrc +++ /dev/null @@ -1,62 +0,0 @@ -{ - "root": true, - "parser": "babel-eslint", - "extends": "eslint-config-airbnb", - "parserOptions": { - "ecmaVersion": 6, - "ecmaFeatures": { - "jsx": true, - "experimentalObjectRestSpread": true - } - }, - "env": { - "browser": true - }, - "plugins": [ - "react", - "babel" - ], - "rules": { - "react/forbid-prop-types": 0, - "jsx-a11y/label-has-for": 0, - "jsx-a11y/no-static-element-interactions": 0, - "jsx-a11y/anchor-has-content": 0, - "jsx-a11y/click-events-have-key-events": 0, - "jsx-a11y/anchor-is-valid": 0, - "react/no-array-index-key": 0, - "func-names": 0, - "arrow-body-style": 0, - "no-use-before-define": 0, - "react/sort-comp": 0, - "react/prop-types": 0, - "react/jsx-first-prop-new-line": 0, - "react/jsx-filename-extension": [ - 1, - { - "extensions": [ - ".js", - ".jsx" - ] - } - ], - "import/extensions": 0, - "import/no-unresolved": 0, - "import/no-extraneous-dependencies": 0, - "prefer-destructuring": 0, - "no-param-reassign": 0, - "no-return-assign": 0, - "max-len": 0, - "consistent-return": 0, - "no-redeclare": 0, - "react/require-extension": 0, - "react/no-danger": 0, - "comma-dangle": [ - "error", - "always-multiline" - ], - "function-paren-newline": 0, - "object-curly-newline": 0, - "no-restricted-globals": 0, - "react/prefer-stateless-function": 0 - } -} diff --git a/blocks/SystemNoticeList/.gitignore b/blocks/SystemNoticeList/.gitignore deleted file mode 100644 index cc45d6fb3c..0000000000 --- a/blocks/SystemNoticeList/.gitignore +++ /dev/null @@ -1,13 +0,0 @@ - -*.swp -*.dia~ -.idea/ -.DS_Store - -npm-debug.log -yarn-error.log -node_modules/ -tmp/ - -# happypack 缓存 -.happypack diff --git a/blocks/SystemNoticeList/package.json b/blocks/SystemNoticeList/package.json index 4db9e78c20..df586d9359 100644 --- a/blocks/SystemNoticeList/package.json +++ b/blocks/SystemNoticeList/package.json @@ -28,14 +28,8 @@ "@icedesign/card": "^0.1.0" }, "devDependencies": { - "babel-eslint": "^8.0.3", - "eslint": "^4.13.1", - "eslint-plugin-babel": "^4.1.1", "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "eslint-plugin-import": "^2.8.0", - "eslint-config-airbnb": "^16.1.0", - "eslint-plugin-jsx-a11y": "^6.0.3", "@icedesign/skin": "^0.1.2" }, "blockConfig": { @@ -47,6 +41,5 @@ "sketchURL": "", "icelandURL": "", "themePackage": "@icedesign/skin" - }, - "scripts": {} + } } diff --git a/blocks/TabArticle/.editorconfig b/blocks/TabArticle/.editorconfig deleted file mode 100644 index 22ef5ace54..0000000000 --- a/blocks/TabArticle/.editorconfig +++ /dev/null @@ -1,16 +0,0 @@ -# http://editorconfig.org -root = true - -[*] -indent_style = space -indent_size = 2 -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -[*.md] -trim_trailing_whitespace = false - -[makefile] -indent_style = tab -indent_size = 4 diff --git a/blocks/TabArticle/.eslintignore b/blocks/TabArticle/.eslintignore deleted file mode 100644 index 3b21308fc7..0000000000 --- a/blocks/TabArticle/.eslintignore +++ /dev/null @@ -1,12 +0,0 @@ -# 忽略目录 -build/ -tests/ -demo/ -lib/ - -# node 覆盖率文件 -coverage/ - -# 忽略文件 -**/*-min.js -**/*.min.js \ No newline at end of file diff --git a/blocks/TabArticle/.eslintrc b/blocks/TabArticle/.eslintrc deleted file mode 100644 index 7a4e5bac48..0000000000 --- a/blocks/TabArticle/.eslintrc +++ /dev/null @@ -1,62 +0,0 @@ -{ - "root": true, - "parser": "babel-eslint", - "extends": "eslint-config-airbnb", - "parserOptions": { - "ecmaVersion": 6, - "ecmaFeatures": { - "jsx": true, - "experimentalObjectRestSpread": true - } - }, - "env": { - "browser": true - }, - "plugins": [ - "react", - "babel" - ], - "rules": { - "react/forbid-prop-types": 0, - "jsx-a11y/label-has-for": 0, - "jsx-a11y/no-static-element-interactions": 0, - "jsx-a11y/anchor-has-content": 0, - "jsx-a11y/click-events-have-key-events": 0, - "jsx-a11y/anchor-is-valid": 0, - "react/no-array-index-key": 0, - "func-names": 0, - "arrow-body-style": 0, - "no-use-before-define": 0, - "react/sort-comp": 0, - "react/prop-types": 0, - "react/jsx-first-prop-new-line": 0, - "react/jsx-filename-extension": [ - 1, - { - "extensions": [ - ".js", - ".jsx" - ] - } - ], - "import/extensions": 0, - "import/no-unresolved": 0, - "import/no-extraneous-dependencies": 0, - "prefer-destructuring": 0, - "no-param-reassign": 0, - "no-return-assign": 0, - "max-len": 0, - "consistent-return": 0, - "no-redeclare": 0, - "react/require-extension": 0, - "react/no-danger": 0, - "comma-dangle": [ - "error", - "always-multiline" - ], - "function-paren-newline": 0, - "object-curly-newline": 0, - "no-restricted-globals": 0, - "react/prefer-stateless-function": 0 - } -} diff --git a/blocks/TabArticle/.gitignore b/blocks/TabArticle/.gitignore deleted file mode 100644 index 5945feea3c..0000000000 --- a/blocks/TabArticle/.gitignore +++ /dev/null @@ -1,14 +0,0 @@ - - *.swp - *.dia~ - .idea/ - .DS_Store - - npm-debug.log - yarn-error.log - node_modules/ - tmp/ - - # happypack 缓存 - .happypack - \ No newline at end of file diff --git a/blocks/TabArticle/package.json b/blocks/TabArticle/package.json index d6975e6d3b..8172f43a91 100644 --- a/blocks/TabArticle/package.json +++ b/blocks/TabArticle/package.json @@ -27,14 +27,8 @@ "@icedesign/card": "^0.1.0" }, "devDependencies": { - "babel-eslint": "^8.0.3", - "eslint": "^4.13.1", - "eslint-plugin-babel": "^4.1.1", "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "eslint-plugin-import": "^2.8.0", - "eslint-config-airbnb": "^16.1.0", - "eslint-plugin-jsx-a11y": "^6.0.3", "@icedesign/skin": "^0.1.2" }, "blockConfig": { @@ -46,9 +40,5 @@ "sketchURL": "", "icelandURL": "", "themePackage": "@icedesign/skin" - }, - "scripts": { - "lint": "eslint . --ext '.js,.jsx' --fix", - "prepublish": "npm run lint" } } diff --git a/blocks/TabDialog/.editorconfig b/blocks/TabDialog/.editorconfig deleted file mode 100644 index 22ef5ace54..0000000000 --- a/blocks/TabDialog/.editorconfig +++ /dev/null @@ -1,16 +0,0 @@ -# http://editorconfig.org -root = true - -[*] -indent_style = space -indent_size = 2 -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -[*.md] -trim_trailing_whitespace = false - -[makefile] -indent_style = tab -indent_size = 4 diff --git a/blocks/TabDialog/.eslintignore b/blocks/TabDialog/.eslintignore deleted file mode 100644 index 3b21308fc7..0000000000 --- a/blocks/TabDialog/.eslintignore +++ /dev/null @@ -1,12 +0,0 @@ -# 忽略目录 -build/ -tests/ -demo/ -lib/ - -# node 覆盖率文件 -coverage/ - -# 忽略文件 -**/*-min.js -**/*.min.js \ No newline at end of file diff --git a/blocks/TabDialog/.eslintrc b/blocks/TabDialog/.eslintrc deleted file mode 100644 index 7a4e5bac48..0000000000 --- a/blocks/TabDialog/.eslintrc +++ /dev/null @@ -1,62 +0,0 @@ -{ - "root": true, - "parser": "babel-eslint", - "extends": "eslint-config-airbnb", - "parserOptions": { - "ecmaVersion": 6, - "ecmaFeatures": { - "jsx": true, - "experimentalObjectRestSpread": true - } - }, - "env": { - "browser": true - }, - "plugins": [ - "react", - "babel" - ], - "rules": { - "react/forbid-prop-types": 0, - "jsx-a11y/label-has-for": 0, - "jsx-a11y/no-static-element-interactions": 0, - "jsx-a11y/anchor-has-content": 0, - "jsx-a11y/click-events-have-key-events": 0, - "jsx-a11y/anchor-is-valid": 0, - "react/no-array-index-key": 0, - "func-names": 0, - "arrow-body-style": 0, - "no-use-before-define": 0, - "react/sort-comp": 0, - "react/prop-types": 0, - "react/jsx-first-prop-new-line": 0, - "react/jsx-filename-extension": [ - 1, - { - "extensions": [ - ".js", - ".jsx" - ] - } - ], - "import/extensions": 0, - "import/no-unresolved": 0, - "import/no-extraneous-dependencies": 0, - "prefer-destructuring": 0, - "no-param-reassign": 0, - "no-return-assign": 0, - "max-len": 0, - "consistent-return": 0, - "no-redeclare": 0, - "react/require-extension": 0, - "react/no-danger": 0, - "comma-dangle": [ - "error", - "always-multiline" - ], - "function-paren-newline": 0, - "object-curly-newline": 0, - "no-restricted-globals": 0, - "react/prefer-stateless-function": 0 - } -} diff --git a/blocks/TabDialog/.gitignore b/blocks/TabDialog/.gitignore deleted file mode 100644 index 5945feea3c..0000000000 --- a/blocks/TabDialog/.gitignore +++ /dev/null @@ -1,14 +0,0 @@ - - *.swp - *.dia~ - .idea/ - .DS_Store - - npm-debug.log - yarn-error.log - node_modules/ - tmp/ - - # happypack 缓存 - .happypack - \ No newline at end of file diff --git a/blocks/TabDialog/package.json b/blocks/TabDialog/package.json index 22dbbce55b..4e2e58660e 100644 --- a/blocks/TabDialog/package.json +++ b/blocks/TabDialog/package.json @@ -27,14 +27,8 @@ "@icedesign/card": "^0.1.0" }, "devDependencies": { - "babel-eslint": "^8.0.3", - "eslint": "^4.13.1", - "eslint-plugin-babel": "^4.1.1", "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "eslint-plugin-import": "^2.8.0", - "eslint-config-airbnb": "^16.1.0", - "eslint-plugin-jsx-a11y": "^6.0.3", "@icedesign/skin": "^0.1.2" }, "blockConfig": { @@ -46,9 +40,5 @@ "sketchURL": "", "icelandURL": "", "themePackage": "@icedesign/skin" - }, - "scripts": { - "lint": "eslint . --ext '.js,.jsx' --fix", - "prepublish": "npm run lint" } } diff --git a/blocks/TagMessageList/.editorconfig b/blocks/TagMessageList/.editorconfig deleted file mode 100644 index 22ef5ace54..0000000000 --- a/blocks/TagMessageList/.editorconfig +++ /dev/null @@ -1,16 +0,0 @@ -# http://editorconfig.org -root = true - -[*] -indent_style = space -indent_size = 2 -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -[*.md] -trim_trailing_whitespace = false - -[makefile] -indent_style = tab -indent_size = 4 diff --git a/blocks/TagMessageList/.eslintignore b/blocks/TagMessageList/.eslintignore deleted file mode 100644 index 3b21308fc7..0000000000 --- a/blocks/TagMessageList/.eslintignore +++ /dev/null @@ -1,12 +0,0 @@ -# 忽略目录 -build/ -tests/ -demo/ -lib/ - -# node 覆盖率文件 -coverage/ - -# 忽略文件 -**/*-min.js -**/*.min.js \ No newline at end of file diff --git a/blocks/TagMessageList/.eslintrc b/blocks/TagMessageList/.eslintrc deleted file mode 100644 index 7a4e5bac48..0000000000 --- a/blocks/TagMessageList/.eslintrc +++ /dev/null @@ -1,62 +0,0 @@ -{ - "root": true, - "parser": "babel-eslint", - "extends": "eslint-config-airbnb", - "parserOptions": { - "ecmaVersion": 6, - "ecmaFeatures": { - "jsx": true, - "experimentalObjectRestSpread": true - } - }, - "env": { - "browser": true - }, - "plugins": [ - "react", - "babel" - ], - "rules": { - "react/forbid-prop-types": 0, - "jsx-a11y/label-has-for": 0, - "jsx-a11y/no-static-element-interactions": 0, - "jsx-a11y/anchor-has-content": 0, - "jsx-a11y/click-events-have-key-events": 0, - "jsx-a11y/anchor-is-valid": 0, - "react/no-array-index-key": 0, - "func-names": 0, - "arrow-body-style": 0, - "no-use-before-define": 0, - "react/sort-comp": 0, - "react/prop-types": 0, - "react/jsx-first-prop-new-line": 0, - "react/jsx-filename-extension": [ - 1, - { - "extensions": [ - ".js", - ".jsx" - ] - } - ], - "import/extensions": 0, - "import/no-unresolved": 0, - "import/no-extraneous-dependencies": 0, - "prefer-destructuring": 0, - "no-param-reassign": 0, - "no-return-assign": 0, - "max-len": 0, - "consistent-return": 0, - "no-redeclare": 0, - "react/require-extension": 0, - "react/no-danger": 0, - "comma-dangle": [ - "error", - "always-multiline" - ], - "function-paren-newline": 0, - "object-curly-newline": 0, - "no-restricted-globals": 0, - "react/prefer-stateless-function": 0 - } -} diff --git a/blocks/TagMessageList/.gitignore b/blocks/TagMessageList/.gitignore deleted file mode 100644 index 5945feea3c..0000000000 --- a/blocks/TagMessageList/.gitignore +++ /dev/null @@ -1,14 +0,0 @@ - - *.swp - *.dia~ - .idea/ - .DS_Store - - npm-debug.log - yarn-error.log - node_modules/ - tmp/ - - # happypack 缓存 - .happypack - \ No newline at end of file diff --git a/blocks/TagMessageList/package.json b/blocks/TagMessageList/package.json index a4fb8d6740..e92afba878 100644 --- a/blocks/TagMessageList/package.json +++ b/blocks/TagMessageList/package.json @@ -8,10 +8,6 @@ "lib/", "mock/" ], - "scripts": { - "lint": "eslint . --ext '.js,.jsx' --fix", - "prepublish": "npm run lint" - }, "author": { "name": "ICE Team", "email": "ice-admin@alibaba-inc.com" @@ -32,16 +28,10 @@ }, "devDependencies": { "@icedesign/skin": "^0.1.2", - "babel-eslint": "^8.0.3", "eslint-plugin-react": "^7.5.1", "react": "15.x", "react-copy-to-clipboard": "^4.2.3", "react-dom": "15.x", - "eslint": "^4.13.1", - "eslint-plugin-babel": "^4.1.1", - "eslint-plugin-import": "^2.8.0", - "eslint-config-airbnb": "^16.1.0", - "eslint-plugin-jsx-a11y": "^6.0.3", "@icedesign/demo-layout": "^0.1.0" }, "blockConfig": { diff --git a/blocks/TeamDisplay/.editorconfig b/blocks/TeamDisplay/.editorconfig deleted file mode 100644 index 22ef5ace54..0000000000 --- a/blocks/TeamDisplay/.editorconfig +++ /dev/null @@ -1,16 +0,0 @@ -# http://editorconfig.org -root = true - -[*] -indent_style = space -indent_size = 2 -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -[*.md] -trim_trailing_whitespace = false - -[makefile] -indent_style = tab -indent_size = 4 diff --git a/blocks/TeamDisplay/.eslintignore b/blocks/TeamDisplay/.eslintignore deleted file mode 100644 index 3b21308fc7..0000000000 --- a/blocks/TeamDisplay/.eslintignore +++ /dev/null @@ -1,12 +0,0 @@ -# 忽略目录 -build/ -tests/ -demo/ -lib/ - -# node 覆盖率文件 -coverage/ - -# 忽略文件 -**/*-min.js -**/*.min.js \ No newline at end of file diff --git a/blocks/TeamDisplay/.eslintrc b/blocks/TeamDisplay/.eslintrc deleted file mode 100644 index 7a4e5bac48..0000000000 --- a/blocks/TeamDisplay/.eslintrc +++ /dev/null @@ -1,62 +0,0 @@ -{ - "root": true, - "parser": "babel-eslint", - "extends": "eslint-config-airbnb", - "parserOptions": { - "ecmaVersion": 6, - "ecmaFeatures": { - "jsx": true, - "experimentalObjectRestSpread": true - } - }, - "env": { - "browser": true - }, - "plugins": [ - "react", - "babel" - ], - "rules": { - "react/forbid-prop-types": 0, - "jsx-a11y/label-has-for": 0, - "jsx-a11y/no-static-element-interactions": 0, - "jsx-a11y/anchor-has-content": 0, - "jsx-a11y/click-events-have-key-events": 0, - "jsx-a11y/anchor-is-valid": 0, - "react/no-array-index-key": 0, - "func-names": 0, - "arrow-body-style": 0, - "no-use-before-define": 0, - "react/sort-comp": 0, - "react/prop-types": 0, - "react/jsx-first-prop-new-line": 0, - "react/jsx-filename-extension": [ - 1, - { - "extensions": [ - ".js", - ".jsx" - ] - } - ], - "import/extensions": 0, - "import/no-unresolved": 0, - "import/no-extraneous-dependencies": 0, - "prefer-destructuring": 0, - "no-param-reassign": 0, - "no-return-assign": 0, - "max-len": 0, - "consistent-return": 0, - "no-redeclare": 0, - "react/require-extension": 0, - "react/no-danger": 0, - "comma-dangle": [ - "error", - "always-multiline" - ], - "function-paren-newline": 0, - "object-curly-newline": 0, - "no-restricted-globals": 0, - "react/prefer-stateless-function": 0 - } -} diff --git a/blocks/TeamDisplay/.gitignore b/blocks/TeamDisplay/.gitignore deleted file mode 100644 index 5945feea3c..0000000000 --- a/blocks/TeamDisplay/.gitignore +++ /dev/null @@ -1,14 +0,0 @@ - - *.swp - *.dia~ - .idea/ - .DS_Store - - npm-debug.log - yarn-error.log - node_modules/ - tmp/ - - # happypack 缓存 - .happypack - \ No newline at end of file diff --git a/blocks/TeamDisplay/package.json b/blocks/TeamDisplay/package.json index 7038012296..d0081607cd 100644 --- a/blocks/TeamDisplay/package.json +++ b/blocks/TeamDisplay/package.json @@ -27,14 +27,8 @@ "@icedesign/card": "^0.1.0" }, "devDependencies": { - "babel-eslint": "^8.0.3", - "eslint": "^4.13.1", - "eslint-plugin-babel": "^4.1.1", "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "eslint-plugin-import": "^2.8.0", - "eslint-config-airbnb": "^16.1.0", - "eslint-plugin-jsx-a11y": "^6.0.3", "@icedesign/skin": "^0.1.2" }, "blockConfig": { @@ -46,9 +40,5 @@ "sketchURL": "", "icelandURL": "", "themePackage": "@icedesign/skin" - }, - "scripts": { - "lint": "eslint . --ext '.js,.jsx' --fix", - "prepublish": "npm run lint" } } diff --git a/blocks/TermsInfo/.editorconfig b/blocks/TermsInfo/.editorconfig deleted file mode 100644 index 22ef5ace54..0000000000 --- a/blocks/TermsInfo/.editorconfig +++ /dev/null @@ -1,16 +0,0 @@ -# http://editorconfig.org -root = true - -[*] -indent_style = space -indent_size = 2 -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -[*.md] -trim_trailing_whitespace = false - -[makefile] -indent_style = tab -indent_size = 4 diff --git a/blocks/TermsInfo/.eslintignore b/blocks/TermsInfo/.eslintignore deleted file mode 100644 index 3b21308fc7..0000000000 --- a/blocks/TermsInfo/.eslintignore +++ /dev/null @@ -1,12 +0,0 @@ -# 忽略目录 -build/ -tests/ -demo/ -lib/ - -# node 覆盖率文件 -coverage/ - -# 忽略文件 -**/*-min.js -**/*.min.js \ No newline at end of file diff --git a/blocks/TermsInfo/.eslintrc b/blocks/TermsInfo/.eslintrc deleted file mode 100644 index 7a4e5bac48..0000000000 --- a/blocks/TermsInfo/.eslintrc +++ /dev/null @@ -1,62 +0,0 @@ -{ - "root": true, - "parser": "babel-eslint", - "extends": "eslint-config-airbnb", - "parserOptions": { - "ecmaVersion": 6, - "ecmaFeatures": { - "jsx": true, - "experimentalObjectRestSpread": true - } - }, - "env": { - "browser": true - }, - "plugins": [ - "react", - "babel" - ], - "rules": { - "react/forbid-prop-types": 0, - "jsx-a11y/label-has-for": 0, - "jsx-a11y/no-static-element-interactions": 0, - "jsx-a11y/anchor-has-content": 0, - "jsx-a11y/click-events-have-key-events": 0, - "jsx-a11y/anchor-is-valid": 0, - "react/no-array-index-key": 0, - "func-names": 0, - "arrow-body-style": 0, - "no-use-before-define": 0, - "react/sort-comp": 0, - "react/prop-types": 0, - "react/jsx-first-prop-new-line": 0, - "react/jsx-filename-extension": [ - 1, - { - "extensions": [ - ".js", - ".jsx" - ] - } - ], - "import/extensions": 0, - "import/no-unresolved": 0, - "import/no-extraneous-dependencies": 0, - "prefer-destructuring": 0, - "no-param-reassign": 0, - "no-return-assign": 0, - "max-len": 0, - "consistent-return": 0, - "no-redeclare": 0, - "react/require-extension": 0, - "react/no-danger": 0, - "comma-dangle": [ - "error", - "always-multiline" - ], - "function-paren-newline": 0, - "object-curly-newline": 0, - "no-restricted-globals": 0, - "react/prefer-stateless-function": 0 - } -} diff --git a/blocks/TermsInfo/.gitignore b/blocks/TermsInfo/.gitignore deleted file mode 100644 index cc45d6fb3c..0000000000 --- a/blocks/TermsInfo/.gitignore +++ /dev/null @@ -1,13 +0,0 @@ - -*.swp -*.dia~ -.idea/ -.DS_Store - -npm-debug.log -yarn-error.log -node_modules/ -tmp/ - -# happypack 缓存 -.happypack diff --git a/blocks/TermsInfo/package.json b/blocks/TermsInfo/package.json index ca92bb701f..55a91ac7d3 100644 --- a/blocks/TermsInfo/package.json +++ b/blocks/TermsInfo/package.json @@ -28,14 +28,8 @@ "@icedesign/card": "^0.1.0" }, "devDependencies": { - "babel-eslint": "^8.0.3", - "eslint": "^4.13.1", - "eslint-plugin-babel": "^4.1.1", "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "eslint-plugin-import": "^2.8.0", - "eslint-config-airbnb": "^16.1.0", - "eslint-plugin-jsx-a11y": "^6.0.3", "@icedesign/skin": "^0.1.2" }, "blockConfig": { @@ -47,6 +41,5 @@ "sketchURL": "", "icelandURL": "", "themePackage": "@icedesign/skin" - }, - "scripts": {} + } } diff --git a/blocks/Testimonial/.editorconfig b/blocks/Testimonial/.editorconfig deleted file mode 100644 index 22ef5ace54..0000000000 --- a/blocks/Testimonial/.editorconfig +++ /dev/null @@ -1,16 +0,0 @@ -# http://editorconfig.org -root = true - -[*] -indent_style = space -indent_size = 2 -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -[*.md] -trim_trailing_whitespace = false - -[makefile] -indent_style = tab -indent_size = 4 diff --git a/blocks/Testimonial/.eslintignore b/blocks/Testimonial/.eslintignore deleted file mode 100644 index 3b21308fc7..0000000000 --- a/blocks/Testimonial/.eslintignore +++ /dev/null @@ -1,12 +0,0 @@ -# 忽略目录 -build/ -tests/ -demo/ -lib/ - -# node 覆盖率文件 -coverage/ - -# 忽略文件 -**/*-min.js -**/*.min.js \ No newline at end of file diff --git a/blocks/Testimonial/.eslintrc b/blocks/Testimonial/.eslintrc deleted file mode 100644 index 7a4e5bac48..0000000000 --- a/blocks/Testimonial/.eslintrc +++ /dev/null @@ -1,62 +0,0 @@ -{ - "root": true, - "parser": "babel-eslint", - "extends": "eslint-config-airbnb", - "parserOptions": { - "ecmaVersion": 6, - "ecmaFeatures": { - "jsx": true, - "experimentalObjectRestSpread": true - } - }, - "env": { - "browser": true - }, - "plugins": [ - "react", - "babel" - ], - "rules": { - "react/forbid-prop-types": 0, - "jsx-a11y/label-has-for": 0, - "jsx-a11y/no-static-element-interactions": 0, - "jsx-a11y/anchor-has-content": 0, - "jsx-a11y/click-events-have-key-events": 0, - "jsx-a11y/anchor-is-valid": 0, - "react/no-array-index-key": 0, - "func-names": 0, - "arrow-body-style": 0, - "no-use-before-define": 0, - "react/sort-comp": 0, - "react/prop-types": 0, - "react/jsx-first-prop-new-line": 0, - "react/jsx-filename-extension": [ - 1, - { - "extensions": [ - ".js", - ".jsx" - ] - } - ], - "import/extensions": 0, - "import/no-unresolved": 0, - "import/no-extraneous-dependencies": 0, - "prefer-destructuring": 0, - "no-param-reassign": 0, - "no-return-assign": 0, - "max-len": 0, - "consistent-return": 0, - "no-redeclare": 0, - "react/require-extension": 0, - "react/no-danger": 0, - "comma-dangle": [ - "error", - "always-multiline" - ], - "function-paren-newline": 0, - "object-curly-newline": 0, - "no-restricted-globals": 0, - "react/prefer-stateless-function": 0 - } -} diff --git a/blocks/Testimonial/.gitignore b/blocks/Testimonial/.gitignore deleted file mode 100644 index 5945feea3c..0000000000 --- a/blocks/Testimonial/.gitignore +++ /dev/null @@ -1,14 +0,0 @@ - - *.swp - *.dia~ - .idea/ - .DS_Store - - npm-debug.log - yarn-error.log - node_modules/ - tmp/ - - # happypack 缓存 - .happypack - \ No newline at end of file diff --git a/blocks/Testimonial/package.json b/blocks/Testimonial/package.json index 3e6c4b6ae1..5a2002d4eb 100644 --- a/blocks/Testimonial/package.json +++ b/blocks/Testimonial/package.json @@ -27,14 +27,8 @@ "@icedesign/card": "^0.1.0" }, "devDependencies": { - "babel-eslint": "^8.0.3", - "eslint": "^4.13.1", - "eslint-plugin-babel": "^4.1.1", "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "eslint-plugin-import": "^2.8.0", - "eslint-config-airbnb": "^16.1.0", - "eslint-plugin-jsx-a11y": "^6.0.3", "@icedesign/skin": "^0.1.2" }, "blockConfig": { @@ -46,9 +40,5 @@ "sketchURL": "", "icelandURL": "", "themePackage": "@icedesign/skin" - }, - "scripts": { - "lint": "eslint . --ext '.js,.jsx' --fix", - "prepublish": "npm run lint" } } diff --git a/blocks/TestimonialCard/.editorconfig b/blocks/TestimonialCard/.editorconfig deleted file mode 100644 index 22ef5ace54..0000000000 --- a/blocks/TestimonialCard/.editorconfig +++ /dev/null @@ -1,16 +0,0 @@ -# http://editorconfig.org -root = true - -[*] -indent_style = space -indent_size = 2 -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -[*.md] -trim_trailing_whitespace = false - -[makefile] -indent_style = tab -indent_size = 4 diff --git a/blocks/TestimonialCard/.eslintignore b/blocks/TestimonialCard/.eslintignore deleted file mode 100644 index 3b21308fc7..0000000000 --- a/blocks/TestimonialCard/.eslintignore +++ /dev/null @@ -1,12 +0,0 @@ -# 忽略目录 -build/ -tests/ -demo/ -lib/ - -# node 覆盖率文件 -coverage/ - -# 忽略文件 -**/*-min.js -**/*.min.js \ No newline at end of file diff --git a/blocks/TestimonialCard/.eslintrc b/blocks/TestimonialCard/.eslintrc deleted file mode 100644 index 7a4e5bac48..0000000000 --- a/blocks/TestimonialCard/.eslintrc +++ /dev/null @@ -1,62 +0,0 @@ -{ - "root": true, - "parser": "babel-eslint", - "extends": "eslint-config-airbnb", - "parserOptions": { - "ecmaVersion": 6, - "ecmaFeatures": { - "jsx": true, - "experimentalObjectRestSpread": true - } - }, - "env": { - "browser": true - }, - "plugins": [ - "react", - "babel" - ], - "rules": { - "react/forbid-prop-types": 0, - "jsx-a11y/label-has-for": 0, - "jsx-a11y/no-static-element-interactions": 0, - "jsx-a11y/anchor-has-content": 0, - "jsx-a11y/click-events-have-key-events": 0, - "jsx-a11y/anchor-is-valid": 0, - "react/no-array-index-key": 0, - "func-names": 0, - "arrow-body-style": 0, - "no-use-before-define": 0, - "react/sort-comp": 0, - "react/prop-types": 0, - "react/jsx-first-prop-new-line": 0, - "react/jsx-filename-extension": [ - 1, - { - "extensions": [ - ".js", - ".jsx" - ] - } - ], - "import/extensions": 0, - "import/no-unresolved": 0, - "import/no-extraneous-dependencies": 0, - "prefer-destructuring": 0, - "no-param-reassign": 0, - "no-return-assign": 0, - "max-len": 0, - "consistent-return": 0, - "no-redeclare": 0, - "react/require-extension": 0, - "react/no-danger": 0, - "comma-dangle": [ - "error", - "always-multiline" - ], - "function-paren-newline": 0, - "object-curly-newline": 0, - "no-restricted-globals": 0, - "react/prefer-stateless-function": 0 - } -} diff --git a/blocks/TestimonialCard/.gitignore b/blocks/TestimonialCard/.gitignore deleted file mode 100644 index 5945feea3c..0000000000 --- a/blocks/TestimonialCard/.gitignore +++ /dev/null @@ -1,14 +0,0 @@ - - *.swp - *.dia~ - .idea/ - .DS_Store - - npm-debug.log - yarn-error.log - node_modules/ - tmp/ - - # happypack 缓存 - .happypack - \ No newline at end of file diff --git a/blocks/TestimonialCard/package.json b/blocks/TestimonialCard/package.json index e7f967514b..c0411fc6ef 100644 --- a/blocks/TestimonialCard/package.json +++ b/blocks/TestimonialCard/package.json @@ -28,14 +28,8 @@ "@icedesign/card": "^0.1.0" }, "devDependencies": { - "babel-eslint": "^8.0.3", - "eslint": "^4.13.1", - "eslint-plugin-babel": "^4.1.1", "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "eslint-plugin-import": "^2.8.0", - "eslint-config-airbnb": "^16.1.0", - "eslint-plugin-jsx-a11y": "^6.0.3", "@icedesign/skin": "^0.1.2" }, "blockConfig": { @@ -47,9 +41,5 @@ "sketchURL": "", "icelandURL": "", "themePackage": "@icedesign/skin" - }, - "scripts": { - "lint": "eslint . --ext '.js,.jsx' --fix", - "prepublish": "npm run lint" } } diff --git a/blocks/TextCard/.editorconfig b/blocks/TextCard/.editorconfig deleted file mode 100644 index 22ef5ace54..0000000000 --- a/blocks/TextCard/.editorconfig +++ /dev/null @@ -1,16 +0,0 @@ -# http://editorconfig.org -root = true - -[*] -indent_style = space -indent_size = 2 -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -[*.md] -trim_trailing_whitespace = false - -[makefile] -indent_style = tab -indent_size = 4 diff --git a/blocks/TextCard/.eslintignore b/blocks/TextCard/.eslintignore deleted file mode 100644 index 3b21308fc7..0000000000 --- a/blocks/TextCard/.eslintignore +++ /dev/null @@ -1,12 +0,0 @@ -# 忽略目录 -build/ -tests/ -demo/ -lib/ - -# node 覆盖率文件 -coverage/ - -# 忽略文件 -**/*-min.js -**/*.min.js \ No newline at end of file diff --git a/blocks/TextCard/.eslintrc b/blocks/TextCard/.eslintrc deleted file mode 100644 index 7a4e5bac48..0000000000 --- a/blocks/TextCard/.eslintrc +++ /dev/null @@ -1,62 +0,0 @@ -{ - "root": true, - "parser": "babel-eslint", - "extends": "eslint-config-airbnb", - "parserOptions": { - "ecmaVersion": 6, - "ecmaFeatures": { - "jsx": true, - "experimentalObjectRestSpread": true - } - }, - "env": { - "browser": true - }, - "plugins": [ - "react", - "babel" - ], - "rules": { - "react/forbid-prop-types": 0, - "jsx-a11y/label-has-for": 0, - "jsx-a11y/no-static-element-interactions": 0, - "jsx-a11y/anchor-has-content": 0, - "jsx-a11y/click-events-have-key-events": 0, - "jsx-a11y/anchor-is-valid": 0, - "react/no-array-index-key": 0, - "func-names": 0, - "arrow-body-style": 0, - "no-use-before-define": 0, - "react/sort-comp": 0, - "react/prop-types": 0, - "react/jsx-first-prop-new-line": 0, - "react/jsx-filename-extension": [ - 1, - { - "extensions": [ - ".js", - ".jsx" - ] - } - ], - "import/extensions": 0, - "import/no-unresolved": 0, - "import/no-extraneous-dependencies": 0, - "prefer-destructuring": 0, - "no-param-reassign": 0, - "no-return-assign": 0, - "max-len": 0, - "consistent-return": 0, - "no-redeclare": 0, - "react/require-extension": 0, - "react/no-danger": 0, - "comma-dangle": [ - "error", - "always-multiline" - ], - "function-paren-newline": 0, - "object-curly-newline": 0, - "no-restricted-globals": 0, - "react/prefer-stateless-function": 0 - } -} diff --git a/blocks/TextCard/.gitignore b/blocks/TextCard/.gitignore deleted file mode 100644 index cc45d6fb3c..0000000000 --- a/blocks/TextCard/.gitignore +++ /dev/null @@ -1,13 +0,0 @@ - -*.swp -*.dia~ -.idea/ -.DS_Store - -npm-debug.log -yarn-error.log -node_modules/ -tmp/ - -# happypack 缓存 -.happypack diff --git a/blocks/TextCard/package.json b/blocks/TextCard/package.json index dba4dda40b..1dc4ac42c3 100644 --- a/blocks/TextCard/package.json +++ b/blocks/TextCard/package.json @@ -27,14 +27,8 @@ "@icedesign/card": "^0.1.0" }, "devDependencies": { - "babel-eslint": "^8.0.3", - "eslint": "^4.13.1", - "eslint-plugin-babel": "^4.1.1", "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "eslint-plugin-import": "^2.8.0", - "eslint-config-airbnb": "^16.1.0", - "eslint-plugin-jsx-a11y": "^6.0.3", "@icedesign/skin": "^0.1.2" }, "blockConfig": { @@ -46,6 +40,5 @@ "sketchURL": "", "icelandURL": "", "themePackage": "@icedesign/skin" - }, - "scripts": {} + } } diff --git a/blocks/TextSearchList/.editorconfig b/blocks/TextSearchList/.editorconfig deleted file mode 100644 index 22ef5ace54..0000000000 --- a/blocks/TextSearchList/.editorconfig +++ /dev/null @@ -1,16 +0,0 @@ -# http://editorconfig.org -root = true - -[*] -indent_style = space -indent_size = 2 -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -[*.md] -trim_trailing_whitespace = false - -[makefile] -indent_style = tab -indent_size = 4 diff --git a/blocks/TextSearchList/.eslintignore b/blocks/TextSearchList/.eslintignore deleted file mode 100644 index 2d5ec592a3..0000000000 --- a/blocks/TextSearchList/.eslintignore +++ /dev/null @@ -1,12 +0,0 @@ -# 忽略目录 -build/ -tests/ -demo/ -lib/ - -# node 覆盖率文件 -coverage/ - -# 忽略文件 -**/*-min.js -**/*.min.js diff --git a/blocks/TextSearchList/.eslintrc b/blocks/TextSearchList/.eslintrc deleted file mode 100644 index 07c65acfe7..0000000000 --- a/blocks/TextSearchList/.eslintrc +++ /dev/null @@ -1,53 +0,0 @@ -{ - "root": true, - "parser": "babel-eslint", - "extends": "eslint-config-airbnb", - "parserOptions": { - "ecmaVersion": 6, - "ecmaFeatures": { - "jsx": true, - "experimentalObjectRestSpread": true - } - }, - "env": { - "browser": true - }, - "plugins": ["react", "babel"], - "rules": { - "react/forbid-prop-types": 0, - "jsx-a11y/label-has-for": 0, - "jsx-a11y/no-static-element-interactions": 0, - "jsx-a11y/anchor-has-content": 0, - "jsx-a11y/click-events-have-key-events": 0, - "jsx-a11y/anchor-is-valid": 0, - "react/no-array-index-key": 0, - "func-names": 0, - "arrow-body-style": 0, - "no-use-before-define": 1, - "react/sort-comp": 0, - "react/prop-types": 0, - "react/jsx-first-prop-new-line": 0, - "react/jsx-filename-extension": [ - 1, - { - "extensions": [".js", ".jsx"] - } - ], - "import/extensions": 0, - "import/no-unresolved": 0, - "import/no-extraneous-dependencies": 0, - "prefer-destructuring": 0, - "no-param-reassign": 0, - "no-return-assign": 0, - "max-len": 0, - "consistent-return": 0, - "no-redeclare": 0, - "react/require-extension": 0, - "react/no-danger": 0, - "comma-dangle": ["error", "always-multiline"], - "function-paren-newline": 0, - "object-curly-newline": 0, - "no-restricted-globals": 0, - "react/prefer-stateless-function": 0 - } -} diff --git a/blocks/TextSearchList/.gitignore b/blocks/TextSearchList/.gitignore deleted file mode 100644 index cc45d6fb3c..0000000000 --- a/blocks/TextSearchList/.gitignore +++ /dev/null @@ -1,13 +0,0 @@ - -*.swp -*.dia~ -.idea/ -.DS_Store - -npm-debug.log -yarn-error.log -node_modules/ -tmp/ - -# happypack 缓存 -.happypack diff --git a/blocks/TextSearchList/package.json b/blocks/TextSearchList/package.json index 145a3a7235..bc116f6482 100644 --- a/blocks/TextSearchList/package.json +++ b/blocks/TextSearchList/package.json @@ -27,14 +27,8 @@ "@icedesign/card": "^0.1.0" }, "devDependencies": { - "babel-eslint": "^8.0.3", - "eslint": "^4.13.1", - "eslint-plugin-babel": "^4.1.1", "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "eslint-plugin-import": "^2.8.0", - "eslint-config-airbnb": "^16.1.0", - "eslint-plugin-jsx-a11y": "^6.0.3", "@icedesign/skin": "^0.1.2" }, "blockConfig": { @@ -46,9 +40,5 @@ "sketchURL": "", "icelandURL": "", "themePackage": "@icedesign/skin" - }, - "scripts": { - "lint": "eslint . --ext '.js,.jsx' --fix", - "prepublish": "npm run lint" } } diff --git a/blocks/TimeFilterTable/.editorconfig b/blocks/TimeFilterTable/.editorconfig deleted file mode 100644 index 22ef5ace54..0000000000 --- a/blocks/TimeFilterTable/.editorconfig +++ /dev/null @@ -1,16 +0,0 @@ -# http://editorconfig.org -root = true - -[*] -indent_style = space -indent_size = 2 -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -[*.md] -trim_trailing_whitespace = false - -[makefile] -indent_style = tab -indent_size = 4 diff --git a/blocks/TimeFilterTable/.eslintignore b/blocks/TimeFilterTable/.eslintignore deleted file mode 100644 index 3b21308fc7..0000000000 --- a/blocks/TimeFilterTable/.eslintignore +++ /dev/null @@ -1,12 +0,0 @@ -# 忽略目录 -build/ -tests/ -demo/ -lib/ - -# node 覆盖率文件 -coverage/ - -# 忽略文件 -**/*-min.js -**/*.min.js \ No newline at end of file diff --git a/blocks/TimeFilterTable/.eslintrc b/blocks/TimeFilterTable/.eslintrc deleted file mode 100644 index 7a4e5bac48..0000000000 --- a/blocks/TimeFilterTable/.eslintrc +++ /dev/null @@ -1,62 +0,0 @@ -{ - "root": true, - "parser": "babel-eslint", - "extends": "eslint-config-airbnb", - "parserOptions": { - "ecmaVersion": 6, - "ecmaFeatures": { - "jsx": true, - "experimentalObjectRestSpread": true - } - }, - "env": { - "browser": true - }, - "plugins": [ - "react", - "babel" - ], - "rules": { - "react/forbid-prop-types": 0, - "jsx-a11y/label-has-for": 0, - "jsx-a11y/no-static-element-interactions": 0, - "jsx-a11y/anchor-has-content": 0, - "jsx-a11y/click-events-have-key-events": 0, - "jsx-a11y/anchor-is-valid": 0, - "react/no-array-index-key": 0, - "func-names": 0, - "arrow-body-style": 0, - "no-use-before-define": 0, - "react/sort-comp": 0, - "react/prop-types": 0, - "react/jsx-first-prop-new-line": 0, - "react/jsx-filename-extension": [ - 1, - { - "extensions": [ - ".js", - ".jsx" - ] - } - ], - "import/extensions": 0, - "import/no-unresolved": 0, - "import/no-extraneous-dependencies": 0, - "prefer-destructuring": 0, - "no-param-reassign": 0, - "no-return-assign": 0, - "max-len": 0, - "consistent-return": 0, - "no-redeclare": 0, - "react/require-extension": 0, - "react/no-danger": 0, - "comma-dangle": [ - "error", - "always-multiline" - ], - "function-paren-newline": 0, - "object-curly-newline": 0, - "no-restricted-globals": 0, - "react/prefer-stateless-function": 0 - } -} diff --git a/blocks/TimeFilterTable/.gitignore b/blocks/TimeFilterTable/.gitignore deleted file mode 100644 index cc45d6fb3c..0000000000 --- a/blocks/TimeFilterTable/.gitignore +++ /dev/null @@ -1,13 +0,0 @@ - -*.swp -*.dia~ -.idea/ -.DS_Store - -npm-debug.log -yarn-error.log -node_modules/ -tmp/ - -# happypack 缓存 -.happypack diff --git a/blocks/TimeFilterTable/package.json b/blocks/TimeFilterTable/package.json index 685136e6a1..803045343b 100644 --- a/blocks/TimeFilterTable/package.json +++ b/blocks/TimeFilterTable/package.json @@ -2,21 +2,12 @@ "name": "@icedesign/time-filter-table-block", "version": "0.1.0", "description": "支持时间筛选的表格", -<<<<<<< HEAD "files": [ "src/", "demo/", "lib/", "mock/" ], -======= - "files": [ - "src/", - "demo/", - "lib/", - "mock/" - ], ->>>>>>> 6f8bbd33e4db62185bbe64c9db0ee6effd3c292f "author": { "name": "ICE Team", "email": "ice-admin@alibaba-inc.com" @@ -38,14 +29,8 @@ "@icedesign/label": "^0.1.0" }, "devDependencies": { - "babel-eslint": "^8.0.3", - "eslint": "^4.13.1", - "eslint-plugin-babel": "^4.1.1", "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "eslint-plugin-import": "^2.8.0", - "eslint-config-airbnb": "^16.1.0", - "eslint-plugin-jsx-a11y": "^6.0.3", "@icedesign/skin": "^0.1.4" }, "blockConfig": { @@ -57,6 +42,5 @@ "sketchURL": "", "icelandURL": "", "themePackage": "@icedesign/skin" - }, - "scripts": {} + } } diff --git a/blocks/TopicCard/.editorconfig b/blocks/TopicCard/.editorconfig deleted file mode 100644 index 22ef5ace54..0000000000 --- a/blocks/TopicCard/.editorconfig +++ /dev/null @@ -1,16 +0,0 @@ -# http://editorconfig.org -root = true - -[*] -indent_style = space -indent_size = 2 -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -[*.md] -trim_trailing_whitespace = false - -[makefile] -indent_style = tab -indent_size = 4 diff --git a/blocks/TopicCard/.eslintignore b/blocks/TopicCard/.eslintignore deleted file mode 100644 index 2d5ec592a3..0000000000 --- a/blocks/TopicCard/.eslintignore +++ /dev/null @@ -1,12 +0,0 @@ -# 忽略目录 -build/ -tests/ -demo/ -lib/ - -# node 覆盖率文件 -coverage/ - -# 忽略文件 -**/*-min.js -**/*.min.js diff --git a/blocks/TopicCard/.eslintrc b/blocks/TopicCard/.eslintrc deleted file mode 100644 index 7cc397841e..0000000000 --- a/blocks/TopicCard/.eslintrc +++ /dev/null @@ -1,61 +0,0 @@ -{ - "root": true, - "parser": "babel-eslint", - "extends": "eslint-config-airbnb", - "parserOptions": { - "ecmaVersion": 6, - "ecmaFeatures": { - "jsx": true, - "experimentalObjectRestSpread": true - } - }, - "env": { - "browser": true - }, - "plugins": [ - "react", - "babel" - ], - "rules": { - "react/forbid-prop-types": 0, - "jsx-a11y/label-has-for": 0, - "jsx-a11y/no-static-element-interactions": 0, - "jsx-a11y/anchor-has-content": 0, - "jsx-a11y/click-events-have-key-events": 0, - "jsx-a11y/anchor-is-valid": 0, - "react/no-array-index-key": 0, - "func-names": 0, - "arrow-body-style": 0, - "no-use-before-define": 1, - "react/sort-comp": 0, - "react/prop-types": 0, - "react/jsx-first-prop-new-line": 0, - "react/jsx-filename-extension": [ - 1, - { - "extensions": [ - ".js", - ".jsx" - ] - } - ], - "import/extensions": 0, - "import/no-unresolved": 0, - "import/no-extraneous-dependencies": 0, - "prefer-destructuring": 0, - "no-param-reassign": 0, - "no-return-assign": 0, - "max-len": 0, - "consistent-return": 0, - "no-redeclare": 0, - "react/require-extension": 0, - "react/no-danger": 0, - "comma-dangle": [ - "error", - "always-multiline" - ], - "function-paren-newline": 0, - "object-curly-newline": 0, - "no-restricted-globals": 0 - } -} diff --git a/blocks/TopicCard/.gitignore b/blocks/TopicCard/.gitignore deleted file mode 100644 index cc45d6fb3c..0000000000 --- a/blocks/TopicCard/.gitignore +++ /dev/null @@ -1,13 +0,0 @@ - -*.swp -*.dia~ -.idea/ -.DS_Store - -npm-debug.log -yarn-error.log -node_modules/ -tmp/ - -# happypack 缓存 -.happypack diff --git a/blocks/TopicCard/package.json b/blocks/TopicCard/package.json index 9c18cdbe3c..96f8247631 100644 --- a/blocks/TopicCard/package.json +++ b/blocks/TopicCard/package.json @@ -30,13 +30,7 @@ "devDependencies": { "@icedesign/demo-layout": "^0.1.2", "@icedesign/layout": "^0.1.0", - "babel-eslint": "^8.0.3", - "eslint": "^4.13.1", - "eslint-plugin-babel": "^4.1.1", "eslint-plugin-react": "^7.5.1", - "eslint-plugin-import": "^2.8.0", - "eslint-config-airbnb": "^16.1.0", - "eslint-plugin-jsx-a11y": "^6.0.3", "@icedesign/skin": "^0.1.2" }, "blockConfig": { @@ -48,9 +42,5 @@ "sketchURL": "", "icelandURL": "", "themePackage": "@icedesign/skin" - }, - "scripts": { - "lint": "eslint . --ext '.js,.jsx' --fix", - "prepublish": "npm run lint" } } diff --git a/blocks/TreeCardList/.editorconfig b/blocks/TreeCardList/.editorconfig deleted file mode 100644 index 22ef5ace54..0000000000 --- a/blocks/TreeCardList/.editorconfig +++ /dev/null @@ -1,16 +0,0 @@ -# http://editorconfig.org -root = true - -[*] -indent_style = space -indent_size = 2 -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -[*.md] -trim_trailing_whitespace = false - -[makefile] -indent_style = tab -indent_size = 4 diff --git a/blocks/TreeCardList/.eslintignore b/blocks/TreeCardList/.eslintignore deleted file mode 100644 index 3b21308fc7..0000000000 --- a/blocks/TreeCardList/.eslintignore +++ /dev/null @@ -1,12 +0,0 @@ -# 忽略目录 -build/ -tests/ -demo/ -lib/ - -# node 覆盖率文件 -coverage/ - -# 忽略文件 -**/*-min.js -**/*.min.js \ No newline at end of file diff --git a/blocks/TreeCardList/.eslintrc b/blocks/TreeCardList/.eslintrc deleted file mode 100644 index 7a4e5bac48..0000000000 --- a/blocks/TreeCardList/.eslintrc +++ /dev/null @@ -1,62 +0,0 @@ -{ - "root": true, - "parser": "babel-eslint", - "extends": "eslint-config-airbnb", - "parserOptions": { - "ecmaVersion": 6, - "ecmaFeatures": { - "jsx": true, - "experimentalObjectRestSpread": true - } - }, - "env": { - "browser": true - }, - "plugins": [ - "react", - "babel" - ], - "rules": { - "react/forbid-prop-types": 0, - "jsx-a11y/label-has-for": 0, - "jsx-a11y/no-static-element-interactions": 0, - "jsx-a11y/anchor-has-content": 0, - "jsx-a11y/click-events-have-key-events": 0, - "jsx-a11y/anchor-is-valid": 0, - "react/no-array-index-key": 0, - "func-names": 0, - "arrow-body-style": 0, - "no-use-before-define": 0, - "react/sort-comp": 0, - "react/prop-types": 0, - "react/jsx-first-prop-new-line": 0, - "react/jsx-filename-extension": [ - 1, - { - "extensions": [ - ".js", - ".jsx" - ] - } - ], - "import/extensions": 0, - "import/no-unresolved": 0, - "import/no-extraneous-dependencies": 0, - "prefer-destructuring": 0, - "no-param-reassign": 0, - "no-return-assign": 0, - "max-len": 0, - "consistent-return": 0, - "no-redeclare": 0, - "react/require-extension": 0, - "react/no-danger": 0, - "comma-dangle": [ - "error", - "always-multiline" - ], - "function-paren-newline": 0, - "object-curly-newline": 0, - "no-restricted-globals": 0, - "react/prefer-stateless-function": 0 - } -} diff --git a/blocks/TreeCardList/.gitignore b/blocks/TreeCardList/.gitignore deleted file mode 100644 index cc45d6fb3c..0000000000 --- a/blocks/TreeCardList/.gitignore +++ /dev/null @@ -1,13 +0,0 @@ - -*.swp -*.dia~ -.idea/ -.DS_Store - -npm-debug.log -yarn-error.log -node_modules/ -tmp/ - -# happypack 缓存 -.happypack diff --git a/blocks/TreeCardList/package.json b/blocks/TreeCardList/package.json index d1a33fb25c..d54f9990a6 100644 --- a/blocks/TreeCardList/package.json +++ b/blocks/TreeCardList/package.json @@ -8,7 +8,6 @@ "lib/", "mock/" ], - "scripts": {}, "author": { "name": "ICE Team", "email": "ice-admin@alibaba-inc.com" @@ -30,12 +29,6 @@ "devDependencies": { "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.3", - "babel-eslint": "^8.0.3", - "eslint": "^4.13.1", - "eslint-config-airbnb": "^16.1.0", - "eslint-plugin-babel": "^4.1.1", - "eslint-plugin-import": "^2.8.0", - "eslint-plugin-jsx-a11y": "^6.0.3", "eslint-plugin-react": "^7.5.1", "react": "15.x", "react-copy-to-clipboard": "^4.2.3", diff --git a/layouts/.gitignore b/layouts/.gitignore deleted file mode 100644 index c611a55665..0000000000 --- a/layouts/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -# 忽略模板的 lib/ -lib/ diff --git a/layouts/AsideLayout/.editorconfig b/layouts/AsideLayout/.editorconfig deleted file mode 100644 index 22ef5ace54..0000000000 --- a/layouts/AsideLayout/.editorconfig +++ /dev/null @@ -1,16 +0,0 @@ -# http://editorconfig.org -root = true - -[*] -indent_style = space -indent_size = 2 -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -[*.md] -trim_trailing_whitespace = false - -[makefile] -indent_style = tab -indent_size = 4 diff --git a/layouts/AsideLayout/.eslintignore b/layouts/AsideLayout/.eslintignore deleted file mode 100644 index 2d5ec592a3..0000000000 --- a/layouts/AsideLayout/.eslintignore +++ /dev/null @@ -1,12 +0,0 @@ -# 忽略目录 -build/ -tests/ -demo/ -lib/ - -# node 覆盖率文件 -coverage/ - -# 忽略文件 -**/*-min.js -**/*.min.js diff --git a/layouts/AsideLayout/.eslintrc b/layouts/AsideLayout/.eslintrc deleted file mode 100644 index 7cc397841e..0000000000 --- a/layouts/AsideLayout/.eslintrc +++ /dev/null @@ -1,61 +0,0 @@ -{ - "root": true, - "parser": "babel-eslint", - "extends": "eslint-config-airbnb", - "parserOptions": { - "ecmaVersion": 6, - "ecmaFeatures": { - "jsx": true, - "experimentalObjectRestSpread": true - } - }, - "env": { - "browser": true - }, - "plugins": [ - "react", - "babel" - ], - "rules": { - "react/forbid-prop-types": 0, - "jsx-a11y/label-has-for": 0, - "jsx-a11y/no-static-element-interactions": 0, - "jsx-a11y/anchor-has-content": 0, - "jsx-a11y/click-events-have-key-events": 0, - "jsx-a11y/anchor-is-valid": 0, - "react/no-array-index-key": 0, - "func-names": 0, - "arrow-body-style": 0, - "no-use-before-define": 1, - "react/sort-comp": 0, - "react/prop-types": 0, - "react/jsx-first-prop-new-line": 0, - "react/jsx-filename-extension": [ - 1, - { - "extensions": [ - ".js", - ".jsx" - ] - } - ], - "import/extensions": 0, - "import/no-unresolved": 0, - "import/no-extraneous-dependencies": 0, - "prefer-destructuring": 0, - "no-param-reassign": 0, - "no-return-assign": 0, - "max-len": 0, - "consistent-return": 0, - "no-redeclare": 0, - "react/require-extension": 0, - "react/no-danger": 0, - "comma-dangle": [ - "error", - "always-multiline" - ], - "function-paren-newline": 0, - "object-curly-newline": 0, - "no-restricted-globals": 0 - } -} diff --git a/layouts/AsideLayout/.gitignore b/layouts/AsideLayout/.gitignore deleted file mode 100644 index 66244c2356..0000000000 --- a/layouts/AsideLayout/.gitignore +++ /dev/null @@ -1,20 +0,0 @@ -*.swp -*.dia~ -.idea/ -.DS_Store - -npm-debug.log -yarn-error.log -node_modules/ -tmp/ - -# 这是编译后的代码, 用于提交到 tnpm, git 仓库不需要此份代码 -lib/ -# 提供 start dev 的环境依赖 -# happypack 缓存 -.happypack - -# fusion 配置平台相关 -theme/build/ -theme/deps.json -theme/index.html diff --git a/layouts/AsideLayout/package.json b/layouts/AsideLayout/package.json index c51f484432..db2191ca1c 100644 --- a/layouts/AsideLayout/package.json +++ b/layouts/AsideLayout/package.json @@ -33,12 +33,6 @@ }, "devDependencies": { "@icedesign/skin": "latest", - "babel-eslint": "^8.0.3", - "eslint": "^4.13.1", - "eslint-config-airbnb": "^16.1.0", - "eslint-plugin-babel": "^4.1.1", - "eslint-plugin-import": "^2.8.0", - "eslint-plugin-jsx-a11y": "^6.0.3", "eslint-plugin-react": "^7.5.1" }, "blockConfig": { @@ -50,9 +44,5 @@ "sketchURL": "", "icelandURL": "", "themePackage": "@icedesign/skin" - }, - "scripts": { - "lint": "eslint . --ext '.js,.jsx' --fix", - "prepublish": "npm run lint" } } diff --git a/layouts/BasicLayout/.editorconfig b/layouts/BasicLayout/.editorconfig deleted file mode 100644 index 22ef5ace54..0000000000 --- a/layouts/BasicLayout/.editorconfig +++ /dev/null @@ -1,16 +0,0 @@ -# http://editorconfig.org -root = true - -[*] -indent_style = space -indent_size = 2 -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -[*.md] -trim_trailing_whitespace = false - -[makefile] -indent_style = tab -indent_size = 4 diff --git a/layouts/BasicLayout/.eslintignore b/layouts/BasicLayout/.eslintignore deleted file mode 100644 index 2d5ec592a3..0000000000 --- a/layouts/BasicLayout/.eslintignore +++ /dev/null @@ -1,12 +0,0 @@ -# 忽略目录 -build/ -tests/ -demo/ -lib/ - -# node 覆盖率文件 -coverage/ - -# 忽略文件 -**/*-min.js -**/*.min.js diff --git a/layouts/BasicLayout/.eslintrc b/layouts/BasicLayout/.eslintrc deleted file mode 100644 index 7cc397841e..0000000000 --- a/layouts/BasicLayout/.eslintrc +++ /dev/null @@ -1,61 +0,0 @@ -{ - "root": true, - "parser": "babel-eslint", - "extends": "eslint-config-airbnb", - "parserOptions": { - "ecmaVersion": 6, - "ecmaFeatures": { - "jsx": true, - "experimentalObjectRestSpread": true - } - }, - "env": { - "browser": true - }, - "plugins": [ - "react", - "babel" - ], - "rules": { - "react/forbid-prop-types": 0, - "jsx-a11y/label-has-for": 0, - "jsx-a11y/no-static-element-interactions": 0, - "jsx-a11y/anchor-has-content": 0, - "jsx-a11y/click-events-have-key-events": 0, - "jsx-a11y/anchor-is-valid": 0, - "react/no-array-index-key": 0, - "func-names": 0, - "arrow-body-style": 0, - "no-use-before-define": 1, - "react/sort-comp": 0, - "react/prop-types": 0, - "react/jsx-first-prop-new-line": 0, - "react/jsx-filename-extension": [ - 1, - { - "extensions": [ - ".js", - ".jsx" - ] - } - ], - "import/extensions": 0, - "import/no-unresolved": 0, - "import/no-extraneous-dependencies": 0, - "prefer-destructuring": 0, - "no-param-reassign": 0, - "no-return-assign": 0, - "max-len": 0, - "consistent-return": 0, - "no-redeclare": 0, - "react/require-extension": 0, - "react/no-danger": 0, - "comma-dangle": [ - "error", - "always-multiline" - ], - "function-paren-newline": 0, - "object-curly-newline": 0, - "no-restricted-globals": 0 - } -} diff --git a/layouts/BasicLayout/.gitignore b/layouts/BasicLayout/.gitignore deleted file mode 100644 index 6780e95249..0000000000 --- a/layouts/BasicLayout/.gitignore +++ /dev/null @@ -1,16 +0,0 @@ -*.swp -*.dia~ -.idea/ -.DS_Store - -npm-debug.log -yarn-error.log -node_modules/ -tmp/ - -# 这是编译后的代码, 用于提交到 tnpm, git 仓库不需要此份代码 -lib/ -# 提供 start dev 的环境依赖 -# happypack 缓存 -.happypack - diff --git a/layouts/BasicLayout/package.json b/layouts/BasicLayout/package.json index 7ccba5c871..fe16a436cb 100644 --- a/layouts/BasicLayout/package.json +++ b/layouts/BasicLayout/package.json @@ -33,13 +33,7 @@ }, "devDependencies": { "@icedesign/skin": "latest", - "babel-eslint": "^8.0.3", - "eslint": "^4.13.1", - "eslint-plugin-babel": "^4.1.1", - "eslint-plugin-react": "^7.5.1", - "eslint-plugin-import": "^2.8.0", - "eslint-config-airbnb": "^16.1.0", - "eslint-plugin-jsx-a11y": "^6.0.3" + "eslint-plugin-react": "^7.5.1" }, "blockConfig": { "name": "basic-layout", @@ -50,9 +44,5 @@ "sketchURL": "", "icelandURL": "", "themePackage": "@icedesign/skin" - }, - "scripts": { - "lint": "eslint . --ext '.js,.jsx' --fix", - "prepublish": "npm run lint" } } diff --git a/layouts/LandingLayout/.editorconfig b/layouts/LandingLayout/.editorconfig deleted file mode 100644 index 22ef5ace54..0000000000 --- a/layouts/LandingLayout/.editorconfig +++ /dev/null @@ -1,16 +0,0 @@ -# http://editorconfig.org -root = true - -[*] -indent_style = space -indent_size = 2 -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -[*.md] -trim_trailing_whitespace = false - -[makefile] -indent_style = tab -indent_size = 4 diff --git a/layouts/LandingLayout/.eslintignore b/layouts/LandingLayout/.eslintignore deleted file mode 100644 index 2d5ec592a3..0000000000 --- a/layouts/LandingLayout/.eslintignore +++ /dev/null @@ -1,12 +0,0 @@ -# 忽略目录 -build/ -tests/ -demo/ -lib/ - -# node 覆盖率文件 -coverage/ - -# 忽略文件 -**/*-min.js -**/*.min.js diff --git a/layouts/LandingLayout/.eslintrc b/layouts/LandingLayout/.eslintrc deleted file mode 100644 index 7cc397841e..0000000000 --- a/layouts/LandingLayout/.eslintrc +++ /dev/null @@ -1,61 +0,0 @@ -{ - "root": true, - "parser": "babel-eslint", - "extends": "eslint-config-airbnb", - "parserOptions": { - "ecmaVersion": 6, - "ecmaFeatures": { - "jsx": true, - "experimentalObjectRestSpread": true - } - }, - "env": { - "browser": true - }, - "plugins": [ - "react", - "babel" - ], - "rules": { - "react/forbid-prop-types": 0, - "jsx-a11y/label-has-for": 0, - "jsx-a11y/no-static-element-interactions": 0, - "jsx-a11y/anchor-has-content": 0, - "jsx-a11y/click-events-have-key-events": 0, - "jsx-a11y/anchor-is-valid": 0, - "react/no-array-index-key": 0, - "func-names": 0, - "arrow-body-style": 0, - "no-use-before-define": 1, - "react/sort-comp": 0, - "react/prop-types": 0, - "react/jsx-first-prop-new-line": 0, - "react/jsx-filename-extension": [ - 1, - { - "extensions": [ - ".js", - ".jsx" - ] - } - ], - "import/extensions": 0, - "import/no-unresolved": 0, - "import/no-extraneous-dependencies": 0, - "prefer-destructuring": 0, - "no-param-reassign": 0, - "no-return-assign": 0, - "max-len": 0, - "consistent-return": 0, - "no-redeclare": 0, - "react/require-extension": 0, - "react/no-danger": 0, - "comma-dangle": [ - "error", - "always-multiline" - ], - "function-paren-newline": 0, - "object-curly-newline": 0, - "no-restricted-globals": 0 - } -} diff --git a/layouts/LandingLayout/.gitignore b/layouts/LandingLayout/.gitignore deleted file mode 100644 index 6780e95249..0000000000 --- a/layouts/LandingLayout/.gitignore +++ /dev/null @@ -1,16 +0,0 @@ -*.swp -*.dia~ -.idea/ -.DS_Store - -npm-debug.log -yarn-error.log -node_modules/ -tmp/ - -# 这是编译后的代码, 用于提交到 tnpm, git 仓库不需要此份代码 -lib/ -# 提供 start dev 的环境依赖 -# happypack 缓存 -.happypack - diff --git a/layouts/LandingLayout/package.json b/layouts/LandingLayout/package.json index e86f99ad18..78b324ccf3 100644 --- a/layouts/LandingLayout/package.json +++ b/layouts/LandingLayout/package.json @@ -33,13 +33,7 @@ }, "devDependencies": { "@icedesign/skin": "latest", - "babel-eslint": "^8.0.3", - "eslint": "^4.13.1", - "eslint-plugin-babel": "^4.1.1", - "eslint-plugin-react": "^7.5.1", - "eslint-plugin-import": "^2.8.0", - "eslint-config-airbnb": "^16.1.0", - "eslint-plugin-jsx-a11y": "^6.0.3" + "eslint-plugin-react": "^7.5.1" }, "blockConfig": { "name": "landing-layout", @@ -50,9 +44,5 @@ "sketchURL": "", "icelandURL": "", "themePackage": "@icedesign/skin" - }, - "scripts": { - "lint": "eslint . --ext '.js,.jsx' --fix", - "prepublish": "npm run lint" } } diff --git a/layouts/ScalableAsideLayout/.editorconfig b/layouts/ScalableAsideLayout/.editorconfig deleted file mode 100644 index 22ef5ace54..0000000000 --- a/layouts/ScalableAsideLayout/.editorconfig +++ /dev/null @@ -1,16 +0,0 @@ -# http://editorconfig.org -root = true - -[*] -indent_style = space -indent_size = 2 -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -[*.md] -trim_trailing_whitespace = false - -[makefile] -indent_style = tab -indent_size = 4 diff --git a/layouts/ScalableAsideLayout/.eslintignore b/layouts/ScalableAsideLayout/.eslintignore deleted file mode 100644 index 2d5ec592a3..0000000000 --- a/layouts/ScalableAsideLayout/.eslintignore +++ /dev/null @@ -1,12 +0,0 @@ -# 忽略目录 -build/ -tests/ -demo/ -lib/ - -# node 覆盖率文件 -coverage/ - -# 忽略文件 -**/*-min.js -**/*.min.js diff --git a/layouts/ScalableAsideLayout/.eslintrc b/layouts/ScalableAsideLayout/.eslintrc deleted file mode 100644 index 7cc397841e..0000000000 --- a/layouts/ScalableAsideLayout/.eslintrc +++ /dev/null @@ -1,61 +0,0 @@ -{ - "root": true, - "parser": "babel-eslint", - "extends": "eslint-config-airbnb", - "parserOptions": { - "ecmaVersion": 6, - "ecmaFeatures": { - "jsx": true, - "experimentalObjectRestSpread": true - } - }, - "env": { - "browser": true - }, - "plugins": [ - "react", - "babel" - ], - "rules": { - "react/forbid-prop-types": 0, - "jsx-a11y/label-has-for": 0, - "jsx-a11y/no-static-element-interactions": 0, - "jsx-a11y/anchor-has-content": 0, - "jsx-a11y/click-events-have-key-events": 0, - "jsx-a11y/anchor-is-valid": 0, - "react/no-array-index-key": 0, - "func-names": 0, - "arrow-body-style": 0, - "no-use-before-define": 1, - "react/sort-comp": 0, - "react/prop-types": 0, - "react/jsx-first-prop-new-line": 0, - "react/jsx-filename-extension": [ - 1, - { - "extensions": [ - ".js", - ".jsx" - ] - } - ], - "import/extensions": 0, - "import/no-unresolved": 0, - "import/no-extraneous-dependencies": 0, - "prefer-destructuring": 0, - "no-param-reassign": 0, - "no-return-assign": 0, - "max-len": 0, - "consistent-return": 0, - "no-redeclare": 0, - "react/require-extension": 0, - "react/no-danger": 0, - "comma-dangle": [ - "error", - "always-multiline" - ], - "function-paren-newline": 0, - "object-curly-newline": 0, - "no-restricted-globals": 0 - } -} diff --git a/layouts/ScalableAsideLayout/.gitignore b/layouts/ScalableAsideLayout/.gitignore deleted file mode 100644 index 66244c2356..0000000000 --- a/layouts/ScalableAsideLayout/.gitignore +++ /dev/null @@ -1,20 +0,0 @@ -*.swp -*.dia~ -.idea/ -.DS_Store - -npm-debug.log -yarn-error.log -node_modules/ -tmp/ - -# 这是编译后的代码, 用于提交到 tnpm, git 仓库不需要此份代码 -lib/ -# 提供 start dev 的环境依赖 -# happypack 缓存 -.happypack - -# fusion 配置平台相关 -theme/build/ -theme/deps.json -theme/index.html diff --git a/layouts/ScalableAsideLayout/package.json b/layouts/ScalableAsideLayout/package.json index eb009647da..f1c982d7f7 100644 --- a/layouts/ScalableAsideLayout/package.json +++ b/layouts/ScalableAsideLayout/package.json @@ -33,13 +33,7 @@ }, "devDependencies": { "@icedesign/skin": "^0.1.0", - "babel-eslint": "^8.0.3", - "eslint": "^4.13.1", - "eslint-plugin-babel": "^4.1.1", - "eslint-plugin-react": "^7.5.1", - "eslint-plugin-import": "^2.8.0", - "eslint-config-airbnb": "^16.1.0", - "eslint-plugin-jsx-a11y": "^6.0.3" + "eslint-plugin-react": "^7.5.1" }, "blockConfig": { "name": "scalable-aside-layout", @@ -50,9 +44,5 @@ "sketchURL": "", "icelandURL": "", "themePackage": "@icedesign/skin" - }, - "scripts": { - "lint": "eslint . --ext '.js,.jsx' --fix", - "prepublish": "npm run lint" } } From 65bee2df1b74dddec605a9220bf24bd5e08bc3df Mon Sep 17 00:00:00 2001 From: wssgcg1213 Date: Thu, 4 Jan 2018 20:40:56 +0800 Subject: [PATCH 0019/1028] chore: lerna fix --- lerna.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lerna.json b/lerna.json index 485c67e43d..ee14cc696b 100644 --- a/lerna.json +++ b/lerna.json @@ -2,7 +2,8 @@ "lerna": "2.5.1", "packages": [ "packages/*", - "templates/**" + "blocks/*", + "layouts/*" ], "version": "independent" -} \ No newline at end of file +} From 6bf274168b0bc2d58940aabd22c762c1e1d3facc Mon Sep 17 00:00:00 2001 From: wssgcg1213 Date: Thu, 4 Jan 2018 20:52:11 +0800 Subject: [PATCH 0020/1028] chore: remove unneed readme content --- .gitignore | 1 + blocks/.gitignore | 2 -- blocks/ApplicationProgress/README.md | 6 +++--- blocks/AreaStackChart/README.md | 6 +++--- blocks/ArticleList/README.md | 6 +++--- blocks/BasicDetailInfo/README.md | 6 +++--- blocks/BasicException/README.md | 6 +++--- blocks/BasicNotFound/README.md | 6 +++--- blocks/BasicTab/README.md | 6 +++--- blocks/BrandDisplay/README.md | 6 +++--- blocks/BrandShowCase/README.md | 6 +++--- blocks/ChartArea/README.md | 6 +++--- blocks/ChartBar/README.md | 6 +++--- blocks/ChartBox/README.md | 6 +++--- blocks/ChartBubbleImage/README.md | 6 +++--- blocks/ChartFacet/README.md | 6 +++--- blocks/ChartFunnel/README.md | 6 +++--- blocks/ChartGauge/README.md | 6 +++--- blocks/ChartHeatMap/README.md | 6 +++--- blocks/ChartPie/README.md | 6 +++--- blocks/ChartPoint/README.md | 6 +++--- blocks/ChartRadar/README.md | 6 +++--- blocks/ChartRelation/README.md | 6 +++--- blocks/ChartStock/README.md | 6 +++--- blocks/ChartTypeLine/README.md | 6 +++--- blocks/CollapseCard/README.md | 6 +++--- blocks/ComplexDialog/README.md | 6 +++--- blocks/ComplexFilter/README.md | 6 +++--- blocks/ComplexProgressTable/README.md | 6 +++--- blocks/ComplexTabTable/README.md | 6 +++--- blocks/CompositeFilter/README.md | 6 +++--- blocks/ConfirmDialog/README.md | 6 +++--- blocks/DataDisplay/README.md | 6 +++--- blocks/DetailTable/README.md | 6 +++--- blocks/DisplayCard/README.md | 6 +++--- blocks/DownloadCard/README.md | 6 +++--- blocks/DynamicBanner/README.md | 6 +++--- blocks/EditableTable/README.md | 6 +++--- blocks/EmptyContent/README.md | 6 +++--- blocks/EnhanceTable/README.md | 6 +++--- blocks/EntryCard/README.md | 6 +++--- blocks/FailureDetail/README.md | 6 +++--- blocks/FeatureDisplay/README.md | 6 +++--- blocks/FeedList/README.md | 6 +++--- blocks/FilterList/README.md | 6 +++--- blocks/FilterTable/README.md | 6 +++--- blocks/FilterWithSearch/README.md | 6 +++--- blocks/Footer/README.md | 6 +++--- blocks/FooterInfo/README.md | 6 +++--- blocks/ForgetPasswordForm/README.md | 6 +++--- blocks/InfoDisplayTab/README.md | 6 +++--- blocks/InfoDisplayTable/README.md | 6 +++--- blocks/JoinUs/README.md | 6 +++--- blocks/LandingIntroBanner/README.md | 6 +++--- blocks/LeftContentDisplay/README.md | 6 +++--- blocks/LiteTable/README.md | 6 +++--- blocks/MessageList/README.md | 6 +++--- blocks/MonacoEditor/README.md | 6 +++--- blocks/NotPermission/README.md | 6 +++--- blocks/OperationTable/README.md | 6 +++--- blocks/OrderList/README.md | 6 +++--- blocks/OurTeam/README.md | 6 +++--- blocks/PictureTextList/README.md | 6 +++--- blocks/PieDoughnutChart/README.md | 6 +++--- blocks/PriceCard/README.md | 6 +++--- blocks/PriceInfo/README.md | 6 +++--- blocks/PrivateMessageForm/README.md | 6 +++--- blocks/ProductInfo/README.md | 6 +++--- blocks/ProgressTable/README.md | 6 +++--- blocks/RegisterForm/README.md | 6 +++--- blocks/RightContentDisplay/README.md | 6 +++--- blocks/SelectableTable/README.md | 6 +++--- blocks/SignupForm/README.md | 6 +++--- blocks/SimpleFluencyForm/README.md | 6 +++--- blocks/SimpleFormDialog/README.md | 6 +++--- blocks/SimpleTable/README.md | 6 +++--- blocks/SimpleTestimonial/README.md | 6 +++--- blocks/SortCardList/README.md | 6 +++--- blocks/StatisticalCard/README.md | 6 +++--- blocks/Subscribe/README.md | 6 +++--- blocks/SuccessDetail/README.md | 6 +++--- blocks/SuccessDialog/README.md | 6 +++--- blocks/SystemNoticeList/README.md | 6 +++--- blocks/TabArticle/README.md | 6 +++--- blocks/TabDialog/README.md | 6 +++--- blocks/TagMessageList/README.md | 6 +++--- blocks/TeamDisplay/README.md | 6 +++--- blocks/TermsInfo/README.md | 6 +++--- blocks/Testimonial/README.md | 6 +++--- blocks/TestimonialCard/README.md | 6 +++--- blocks/TextCard/README.md | 6 +++--- blocks/TextSearchList/README.md | 6 +++--- blocks/TimeFilterTable/README.md | 6 +++--- blocks/TopicCard/README.md | 6 +++--- blocks/TreeCardList/README.md | 6 +++--- layouts/AsideLayout/README.md | 5 ----- layouts/BasicLayout/README.md | 5 ----- layouts/LandingLayout/README.md | 5 ----- layouts/ScalableAsideLayout/README.md | 5 ----- 99 files changed, 280 insertions(+), 301 deletions(-) delete mode 100644 blocks/.gitignore diff --git a/.gitignore b/.gitignore index e33381f3c8..8f105f7f91 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ npm-debug.log mochawesome-report .happypack package-lock.json +lib/ diff --git a/blocks/.gitignore b/blocks/.gitignore deleted file mode 100644 index c611a55665..0000000000 --- a/blocks/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -# 忽略模板的 lib/ -lib/ diff --git a/blocks/ApplicationProgress/README.md b/blocks/ApplicationProgress/README.md index 54929fdcf1..28c94e9ca3 100644 --- a/blocks/ApplicationProgress/README.md +++ b/blocks/ApplicationProgress/README.md @@ -4,7 +4,7 @@ ![截图](https://img.alicdn.com/tfs/TB1I67ih3vD8KJjy0FlXXagBFXa-947-929.png) -## 更多 -* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) -* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) + + + diff --git a/blocks/AreaStackChart/README.md b/blocks/AreaStackChart/README.md index e3891e54e2..b1e0da21dc 100644 --- a/blocks/AreaStackChart/README.md +++ b/blocks/AreaStackChart/README.md @@ -4,7 +4,7 @@ ![截图](https://img.alicdn.com/tfs/TB13crWidfJ8KJjy0FeXXXKEXXa-1754-994.png) -## 更多 -* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) -* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) + + + diff --git a/blocks/ArticleList/README.md b/blocks/ArticleList/README.md index 314a9b09ce..4621fd6349 100644 --- a/blocks/ArticleList/README.md +++ b/blocks/ArticleList/README.md @@ -4,7 +4,7 @@ ![截图](https://img.alicdn.com/tfs/TB1PXQAifDH8KJjy1XcXXcpdXXa-1906-996.png) -## 更多 -* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) -* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) + + + diff --git a/blocks/BasicDetailInfo/README.md b/blocks/BasicDetailInfo/README.md index 75c53c6475..0c8347aad7 100644 --- a/blocks/BasicDetailInfo/README.md +++ b/blocks/BasicDetailInfo/README.md @@ -4,7 +4,7 @@ ![截图](https://gw.alicdn.com/tfs/TB1JD2VifDH8KJjy1XcXXcpdXXa-1880-1004.png) -## 更多 -* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) -* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) + + + diff --git a/blocks/BasicException/README.md b/blocks/BasicException/README.md index edc0f66d2c..15a613ede4 100644 --- a/blocks/BasicException/README.md +++ b/blocks/BasicException/README.md @@ -4,7 +4,7 @@ ![截图](https://img.alicdn.com/tfs/TB197z8if2H8KJjy0FcXXaDlFXa-1786-914.png) -## 更多 -* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) -* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) + + + diff --git a/blocks/BasicNotFound/README.md b/blocks/BasicNotFound/README.md index b65b8d57c1..1238810b56 100644 --- a/blocks/BasicNotFound/README.md +++ b/blocks/BasicNotFound/README.md @@ -4,7 +4,7 @@ ![截图](https://img.alicdn.com/tfs/TB1.HyVgyqAXuNjy1XdXXaYcVXa-1914-1066.png) -## 更多 -* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) -* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) + + + diff --git a/blocks/BasicTab/README.md b/blocks/BasicTab/README.md index ecba840b4f..5febeb4aee 100644 --- a/blocks/BasicTab/README.md +++ b/blocks/BasicTab/README.md @@ -4,7 +4,7 @@ ![截图](https://img.alicdn.com/tfs/TB1lrQXif2H8KJjy0FcXXaDlFXa-1144-112.png) -## 更多 -* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) -* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) + + + diff --git a/blocks/BrandDisplay/README.md b/blocks/BrandDisplay/README.md index fa00c00605..19e4cd0b5f 100644 --- a/blocks/BrandDisplay/README.md +++ b/blocks/BrandDisplay/README.md @@ -4,7 +4,7 @@ ![截图](https://img.alicdn.com/tfs/TB1XIooihrI8KJjy0FpXXb5hVXa-1802-874.png) -## 更多 -* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) -* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) + + + diff --git a/blocks/BrandShowCase/README.md b/blocks/BrandShowCase/README.md index ed0d336bec..06677e6f2b 100644 --- a/blocks/BrandShowCase/README.md +++ b/blocks/BrandShowCase/README.md @@ -4,7 +4,7 @@ ![截图](https://img.alicdn.com/tfs/TB1DGFejr_I8KJjy1XaXXbsxpXa-1910-860.png) -## 更多 -* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) -* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) + + + diff --git a/blocks/ChartArea/README.md b/blocks/ChartArea/README.md index a33494f3f1..543ed959c0 100644 --- a/blocks/ChartArea/README.md +++ b/blocks/ChartArea/README.md @@ -4,7 +4,7 @@ ![截图](https://img.alicdn.com/tfs/TB1tF0DivDH8KJjy1XcXXcpdXXa-1910-1040.png) -## 更多 -* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) -* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) + + + diff --git a/blocks/ChartBar/README.md b/blocks/ChartBar/README.md index d2e163b8ca..afad578633 100644 --- a/blocks/ChartBar/README.md +++ b/blocks/ChartBar/README.md @@ -4,7 +4,7 @@ ![截图](https://img.alicdn.com/tfs/TB1IdeWf5qAXuNjy1XdXXaYcVXa-1900-1042.png) -## 更多 -* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) -* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) + + + diff --git a/blocks/ChartBox/README.md b/blocks/ChartBox/README.md index 8f2fe8adb1..c9b5abe918 100644 --- a/blocks/ChartBox/README.md +++ b/blocks/ChartBox/README.md @@ -4,7 +4,7 @@ ![截图](https://img.alicdn.com/tfs/TB1nR5Wf5qAXuNjy1XdXXaYcVXa-1902-1036.png) -## 更多 -* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) -* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) + + + diff --git a/blocks/ChartBubbleImage/README.md b/blocks/ChartBubbleImage/README.md index 0da0ec4ef2..a80d45da94 100644 --- a/blocks/ChartBubbleImage/README.md +++ b/blocks/ChartBubbleImage/README.md @@ -4,7 +4,7 @@ ![截图](https://img.alicdn.com/tfs/TB11w4FivDH8KJjy1XcXXcpdXXa-1902-1032.png) -## 更多 -* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) -* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) + + + diff --git a/blocks/ChartFacet/README.md b/blocks/ChartFacet/README.md index dafd82d840..fda90a0010 100644 --- a/blocks/ChartFacet/README.md +++ b/blocks/ChartFacet/README.md @@ -4,7 +4,7 @@ ![截图](https://img.alicdn.com/tfs/TB1D80FivDH8KJjy1XcXXcpdXXa-1988-1236.png) -## 更多 -* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) -* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) + + + diff --git a/blocks/ChartFunnel/README.md b/blocks/ChartFunnel/README.md index 8b1badf8cd..c7b86eb0a5 100644 --- a/blocks/ChartFunnel/README.md +++ b/blocks/ChartFunnel/README.md @@ -4,7 +4,7 @@ ![截图](https://img.alicdn.com/tfs/TB14y8xiv6H8KJjy0FjXXaXepXa-1888-1038.png) -## 更多 -* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) -* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) + + + diff --git a/blocks/ChartGauge/README.md b/blocks/ChartGauge/README.md index 8f209e74cd..7dda555605 100644 --- a/blocks/ChartGauge/README.md +++ b/blocks/ChartGauge/README.md @@ -4,7 +4,7 @@ ![截图](https://img.alicdn.com/tfs/TB1KXNyiv6H8KJjy0FjXXaXepXa-1908-1040.png) -## 更多 -* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) -* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) + + + diff --git a/blocks/ChartHeatMap/README.md b/blocks/ChartHeatMap/README.md index 87e5c8edfb..126ce8ef0b 100644 --- a/blocks/ChartHeatMap/README.md +++ b/blocks/ChartHeatMap/README.md @@ -4,7 +4,7 @@ ![截图](https://img.alicdn.com/tfs/TB1W_FoixrI8KJjy0FpXXb5hVXa-1906-1222.png) -## 更多 -* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) -* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) + + + diff --git a/blocks/ChartPie/README.md b/blocks/ChartPie/README.md index 6ac71a6123..fc278cb545 100644 --- a/blocks/ChartPie/README.md +++ b/blocks/ChartPie/README.md @@ -4,7 +4,7 @@ ![截图](https://img.alicdn.com/tfs/TB1rfJHivDH8KJjy1XcXXcpdXXa-1910-1022.png) -## 更多 -* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) -* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) + + + diff --git a/blocks/ChartPoint/README.md b/blocks/ChartPoint/README.md index 8d364993b2..c9187db669 100644 --- a/blocks/ChartPoint/README.md +++ b/blocks/ChartPoint/README.md @@ -4,7 +4,7 @@ ![截图](https://img.alicdn.com/tfs/TB1E1y0f5qAXuNjy1XdXXaYcVXa-1916-1044.png) -## 更多 -* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) -* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) + + + diff --git a/blocks/ChartRadar/README.md b/blocks/ChartRadar/README.md index b0729a0109..f0fff3eb00 100644 --- a/blocks/ChartRadar/README.md +++ b/blocks/ChartRadar/README.md @@ -4,7 +4,7 @@ ![截图](https://img.alicdn.com/tfs/TB1wNkNilfH8KJjy1XbXXbLdXXa-1876-958.png) -## 更多 -* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) -* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) + + + diff --git a/blocks/ChartRelation/README.md b/blocks/ChartRelation/README.md index 8c909380b3..e7aa24bf73 100644 --- a/blocks/ChartRelation/README.md +++ b/blocks/ChartRelation/README.md @@ -5,7 +5,7 @@ ![截图](https://img.alicdn.com/tfs/TB1My.6idfJ8KJjy0FeXXXKEXXa-1874-922.png) -## 更多 -* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) -* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) + + + diff --git a/blocks/ChartStock/README.md b/blocks/ChartStock/README.md index bfb0e5dd98..c19ca6e269 100644 --- a/blocks/ChartStock/README.md +++ b/blocks/ChartStock/README.md @@ -6,7 +6,7 @@ ![截图](https://img.alicdn.com/tfs/TB1ZYAYigvD8KJjSsplXXaIEFXa-1886-974.png) -## 更多 -* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) -* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) + + + diff --git a/blocks/ChartTypeLine/README.md b/blocks/ChartTypeLine/README.md index e6f7ccfff8..9e3b82487a 100644 --- a/blocks/ChartTypeLine/README.md +++ b/blocks/ChartTypeLine/README.md @@ -4,7 +4,7 @@ ![截图](https://img.alicdn.com/tfs/TB1Of87isLJ8KJjy0FnXXcFDpXa-1906-1044.png) -## 更多 -* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) -* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) + + + diff --git a/blocks/CollapseCard/README.md b/blocks/CollapseCard/README.md index a2c2323633..4d41e3dd4d 100644 --- a/blocks/CollapseCard/README.md +++ b/blocks/CollapseCard/README.md @@ -4,7 +4,7 @@ ![截图](https://img.alicdn.com/tfs/TB1NXIUh2DH8KJjy1XcXXcpdXXa-956-270.png) -## 更多 -* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) -* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) + + + diff --git a/blocks/ComplexDialog/README.md b/blocks/ComplexDialog/README.md index 71c5c82d95..4f4530e0b3 100644 --- a/blocks/ComplexDialog/README.md +++ b/blocks/ComplexDialog/README.md @@ -6,7 +6,7 @@ ![截图](https://img.alicdn.com/tfs/TB1Un_filfH8KJjy1XbXXbLdXXa-1270-650.png) -## 更多 -* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) -* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) + + + diff --git a/blocks/ComplexFilter/README.md b/blocks/ComplexFilter/README.md index e526bb4d7d..3564d47cca 100644 --- a/blocks/ComplexFilter/README.md +++ b/blocks/ComplexFilter/README.md @@ -6,7 +6,7 @@ ![截图](https://img.alicdn.com/tfs/TB1y4M2lgvD8KJjy0FlXXagBFXa-1908-232.png) -## 更多 -* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) -* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) + + + diff --git a/blocks/ComplexProgressTable/README.md b/blocks/ComplexProgressTable/README.md index d6e04810c9..7c86c6f002 100644 --- a/blocks/ComplexProgressTable/README.md +++ b/blocks/ComplexProgressTable/README.md @@ -6,7 +6,7 @@ ![截图](https://img.alicdn.com/tfs/TB1tcvSg5qAXuNjy1XdXXaYcVXa-1894-1312.png) -## 更多 -* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) -* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) + + + diff --git a/blocks/ComplexTabTable/README.md b/blocks/ComplexTabTable/README.md index 9986b46f37..2770bde7c9 100644 --- a/blocks/ComplexTabTable/README.md +++ b/blocks/ComplexTabTable/README.md @@ -6,7 +6,7 @@ ![截图](https://img.alicdn.com/tfs/TB1IZMeifDH8KJjy1XcXXcpdXXa-1892-1462.png) -## 更多 -* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) -* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) + + + diff --git a/blocks/CompositeFilter/README.md b/blocks/CompositeFilter/README.md index 8052ce912c..d04e06d993 100644 --- a/blocks/CompositeFilter/README.md +++ b/blocks/CompositeFilter/README.md @@ -4,7 +4,7 @@ ![截图](https://img.alicdn.com/tfs/TB1mfclilTH8KJjy0FiXXcRsXXa-1896-246.png) -## 更多 -* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) -* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) + + + diff --git a/blocks/ConfirmDialog/README.md b/blocks/ConfirmDialog/README.md index 95e2ee2df5..7f5bc1e5f2 100644 --- a/blocks/ConfirmDialog/README.md +++ b/blocks/ConfirmDialog/README.md @@ -4,7 +4,7 @@ ![截图](https://img.alicdn.com/tfs/TB1Zr3xigvD8KJjy0FlXXagBFXa-1272-620.png) -## 更多 -* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) -* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) + + + diff --git a/blocks/DataDisplay/README.md b/blocks/DataDisplay/README.md index 3b9ad2f0f5..874f50aa87 100644 --- a/blocks/DataDisplay/README.md +++ b/blocks/DataDisplay/README.md @@ -4,7 +4,7 @@ ![截图](https://img.alicdn.com/tfs/TB1IKT9jfDH8KJjy1XcXXcpdXXa-1892-324.png) -## 更多 -* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) -* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) + + + diff --git a/blocks/DetailTable/README.md b/blocks/DetailTable/README.md index c54cd8303f..0967e38fba 100644 --- a/blocks/DetailTable/README.md +++ b/blocks/DetailTable/README.md @@ -6,7 +6,7 @@ ![截图](https://img.alicdn.com/tfs/TB1hplfjr_I8KJjy1XaXXbsxpXa-1886-700.png) -## 更多 -* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) -* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) + + + diff --git a/blocks/DisplayCard/README.md b/blocks/DisplayCard/README.md index b61c803fe4..4959b42fc7 100644 --- a/blocks/DisplayCard/README.md +++ b/blocks/DisplayCard/README.md @@ -6,7 +6,7 @@ ![截图](https://img.alicdn.com/tfs/TB1zRDFim_I8KJjy0FoXXaFnVXa-1908-292.png) -## 更多 -* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) -* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) + + + diff --git a/blocks/DownloadCard/README.md b/blocks/DownloadCard/README.md index ac6b40794f..050c9df0ad 100644 --- a/blocks/DownloadCard/README.md +++ b/blocks/DownloadCard/README.md @@ -4,7 +4,7 @@ ![截图](https://img.alicdn.com/tfs/TB1HLu1hLDH8KJjy1XcXXcpdXXa-938-688.png) -## 更多 -* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) -* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) + + + diff --git a/blocks/DynamicBanner/README.md b/blocks/DynamicBanner/README.md index 64d7f2b2b2..fa6008f1ed 100644 --- a/blocks/DynamicBanner/README.md +++ b/blocks/DynamicBanner/README.md @@ -4,7 +4,7 @@ ![截图](https://img.alicdn.com/tfs/TB1fZEIifDH8KJjy1XcXXcpdXXa-1276-672.png) -## 更多 -* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) -* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) + + + diff --git a/blocks/EditableTable/README.md b/blocks/EditableTable/README.md index d2451d5383..7064bc9793 100644 --- a/blocks/EditableTable/README.md +++ b/blocks/EditableTable/README.md @@ -6,7 +6,7 @@ ![截图](https://img.alicdn.com/tfs/TB1BBhujfDH8KJjy1XcXXcpdXXa-1896-712.png) -## 更多 -* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) -* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) + + + diff --git a/blocks/EmptyContent/README.md b/blocks/EmptyContent/README.md index 4f8d38066b..c87d58505e 100644 --- a/blocks/EmptyContent/README.md +++ b/blocks/EmptyContent/README.md @@ -4,7 +4,7 @@ ![截图](https://img.alicdn.com/tfs/TB1unfJiOqAXuNjy1XdXXaYcVXa-1862-1024.png) -## 更多 -* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) -* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) + + + diff --git a/blocks/EnhanceTable/README.md b/blocks/EnhanceTable/README.md index ff5381c455..c210cfc324 100644 --- a/blocks/EnhanceTable/README.md +++ b/blocks/EnhanceTable/README.md @@ -6,7 +6,7 @@ ![截图](https://img.alicdn.com/tfs/TB1viRoixrI8KJjy0FpXXb5hVXa-1896-1134.png) -## 更多 -* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) -* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) + + + diff --git a/blocks/EntryCard/README.md b/blocks/EntryCard/README.md index 1a5d9830e0..62e6dc2a5c 100644 --- a/blocks/EntryCard/README.md +++ b/blocks/EntryCard/README.md @@ -4,7 +4,7 @@ ![截图](https://img.alicdn.com/tfs/TB1RSAIif6H8KJjy0FjXXaXepXa-1102-262.png) -## 更多 -* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) -* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) + + + diff --git a/blocks/FailureDetail/README.md b/blocks/FailureDetail/README.md index 68fa2afa61..ef24206bf0 100644 --- a/blocks/FailureDetail/README.md +++ b/blocks/FailureDetail/README.md @@ -6,7 +6,7 @@ ![截图](https://gw.alicdn.com/tfs/TB15u0eisLJ8KJjy0FnXXcFDpXa-1326-824.png) -## 更多 -* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) -* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) + + + diff --git a/blocks/FeatureDisplay/README.md b/blocks/FeatureDisplay/README.md index ccee61983c..86ad467ccb 100644 --- a/blocks/FeatureDisplay/README.md +++ b/blocks/FeatureDisplay/README.md @@ -4,7 +4,7 @@ ![截图](https://img.alicdn.com/tfs/TB1W3vQi3vD8KJjy0FlXXagBFXa-1914-1522.png) -## 更多 -* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) -* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) + + + diff --git a/blocks/FeedList/README.md b/blocks/FeedList/README.md index 8119441329..d250941e17 100644 --- a/blocks/FeedList/README.md +++ b/blocks/FeedList/README.md @@ -6,7 +6,7 @@ Feed 消息列表 ![截图](https://img.alicdn.com/tfs/TB1jqXwjx6I8KJjy0FgXXXXzVXa-852-1098.png) -## 更多 -* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) -* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) + + + diff --git a/blocks/FilterList/README.md b/blocks/FilterList/README.md index 183e773989..54fa99bec6 100644 --- a/blocks/FilterList/README.md +++ b/blocks/FilterList/README.md @@ -4,7 +4,7 @@ ![截图](https://img.alicdn.com/tfs/TB1iUbYilfH8KJjy1XbXXbLdXXa-2000-1154.png) -## 更多 -* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) -* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) + + + diff --git a/blocks/FilterTable/README.md b/blocks/FilterTable/README.md index 06523b687c..dcf0df0fff 100644 --- a/blocks/FilterTable/README.md +++ b/blocks/FilterTable/README.md @@ -6,7 +6,7 @@ ![截图](https://img.alicdn.com/tfs/TB1kD3JinvI8KJjSspjXXcgjXXa-1926-1536.png) -## 更多 -* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) -* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) + + + diff --git a/blocks/FilterWithSearch/README.md b/blocks/FilterWithSearch/README.md index 525a7d8f01..63a03d7267 100644 --- a/blocks/FilterWithSearch/README.md +++ b/blocks/FilterWithSearch/README.md @@ -6,7 +6,7 @@ ![截图](https://img.alicdn.com/tfs/TB1vqnmihTI8KJjSspiXXbM4FXa-1906-136.png) -## 更多 -* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) -* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) + + + diff --git a/blocks/Footer/README.md b/blocks/Footer/README.md index d948806f5c..5b71ee1efb 100644 --- a/blocks/Footer/README.md +++ b/blocks/Footer/README.md @@ -4,7 +4,7 @@ ![截图](https://img.alicdn.com/tfs/TB1if0vg5qAXuNjy1XdXXaYcVXa-2516-356.png) -## 更多 -* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) -* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) + + + diff --git a/blocks/FooterInfo/README.md b/blocks/FooterInfo/README.md index 5094e558f0..d1aa6a08bd 100644 --- a/blocks/FooterInfo/README.md +++ b/blocks/FooterInfo/README.md @@ -4,7 +4,7 @@ ![截图](https://img.alicdn.com/tfs/TB14GfWjhrI8KJjy0FpXXb5hVXa-2566-806.png) -## 更多 -* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) -* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) + + + diff --git a/blocks/ForgetPasswordForm/README.md b/blocks/ForgetPasswordForm/README.md index 23f92a5bd7..edb03f9ab7 100644 --- a/blocks/ForgetPasswordForm/README.md +++ b/blocks/ForgetPasswordForm/README.md @@ -6,7 +6,7 @@ ![截图](https://img.alicdn.com/tfs/TB1TjBilvDH8KJjy1XcXXcpdXXa-1102-554.png) -## 更多 -* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) -* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) + + + diff --git a/blocks/InfoDisplayTab/README.md b/blocks/InfoDisplayTab/README.md index 4c06e48e9b..6d3fd77d51 100644 --- a/blocks/InfoDisplayTab/README.md +++ b/blocks/InfoDisplayTab/README.md @@ -4,7 +4,7 @@ ![截图](https://img.alicdn.com/tfs/TB1eHD0fiqAXuNjy1XdXXaYcVXa-914-700.png) -## 更多 -* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) -* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) + + + diff --git a/blocks/InfoDisplayTable/README.md b/blocks/InfoDisplayTable/README.md index 97cfcef276..e69e0802e6 100644 --- a/blocks/InfoDisplayTable/README.md +++ b/blocks/InfoDisplayTable/README.md @@ -7,7 +7,7 @@ ## 效果图 ![效果图](https://img.alicdn.com/tfs/TB1niC_fiqAXuNjy1XdXXaYcVXa-959-294.png) -## 更多 -* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) -* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) + + + diff --git a/blocks/JoinUs/README.md b/blocks/JoinUs/README.md index 307c00238b..ef8730564a 100644 --- a/blocks/JoinUs/README.md +++ b/blocks/JoinUs/README.md @@ -4,7 +4,7 @@ ![截图](https://img.alicdn.com/tfs/TB1L1SQjr_I8KJjy1XaXXbsxpXa-2650-1126.png) -## 更多 -* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) -* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) + + + diff --git a/blocks/LandingIntroBanner/README.md b/blocks/LandingIntroBanner/README.md index a6e9be3b47..61573e52f2 100644 --- a/blocks/LandingIntroBanner/README.md +++ b/blocks/LandingIntroBanner/README.md @@ -4,8 +4,8 @@ ![截图](https://img.alicdn.com/tfs/TB1zP8Flx6I8KJjy0FgXXXXzVXa-2524-1154.png) -## 更多 -* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) -* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) + + + diff --git a/blocks/LeftContentDisplay/README.md b/blocks/LeftContentDisplay/README.md index faf0b7947a..a0d6fab299 100644 --- a/blocks/LeftContentDisplay/README.md +++ b/blocks/LeftContentDisplay/README.md @@ -4,7 +4,7 @@ ![截图](https://img.alicdn.com/tfs/TB1g58VjxrI8KJjy0FpXXb5hVXa-2368-1192.png) -## 更多 -* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) -* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) + + + diff --git a/blocks/LiteTable/README.md b/blocks/LiteTable/README.md index 8b5ca860c6..e581c04535 100644 --- a/blocks/LiteTable/README.md +++ b/blocks/LiteTable/README.md @@ -6,7 +6,7 @@ ![截图](https://img.alicdn.com/tfs/TB1_Oy4jcrI8KJjy0FhXXbfnpXa-840-956.png) -## 更多 -* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) -* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) + + + diff --git a/blocks/MessageList/README.md b/blocks/MessageList/README.md index 5fcea4049b..48b79dbec5 100644 --- a/blocks/MessageList/README.md +++ b/blocks/MessageList/README.md @@ -6,7 +6,7 @@ ![截图](https://img.alicdn.com/tfs/TB1hbVYlsLJ8KJjy0FnXXcFDpXa-1900-1180.png) -## 更多 -* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) -* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) + + + diff --git a/blocks/MonacoEditor/README.md b/blocks/MonacoEditor/README.md index d35d8524d1..d77423d9fc 100644 --- a/blocks/MonacoEditor/README.md +++ b/blocks/MonacoEditor/README.md @@ -6,7 +6,7 @@ Monaco 代码编辑器 ![截图](https://gw.alicdn.com/tfs/TB1bOKfjvDH8KJjy1XcXXcpdXXa-1886-1236.png) -## 更多 -* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) -* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) + + + diff --git a/blocks/NotPermission/README.md b/blocks/NotPermission/README.md index 731dc47f79..7d9de8185e 100644 --- a/blocks/NotPermission/README.md +++ b/blocks/NotPermission/README.md @@ -4,7 +4,7 @@ ![截图](https://img.alicdn.com/tfs/TB1XvlnjtfJ8KJjy0FeXXXKEXXa-1900-1072.png) -## 更多 -* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) -* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) + + + diff --git a/blocks/OperationTable/README.md b/blocks/OperationTable/README.md index 47c386f115..dfb69b3287 100644 --- a/blocks/OperationTable/README.md +++ b/blocks/OperationTable/README.md @@ -6,7 +6,7 @@ ![截图](https://img.alicdn.com/tfs/TB17r2OilfH8KJjy1XbXXbLdXXa-1908-1482.png) -## 更多 -* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) -* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) + + + diff --git a/blocks/OrderList/README.md b/blocks/OrderList/README.md index 4274d6ac41..505eb1887e 100644 --- a/blocks/OrderList/README.md +++ b/blocks/OrderList/README.md @@ -4,7 +4,7 @@ ![截图](https://img.alicdn.com/tfs/TB1QQY0fiqAXuNjy1XdXXaYcVXa-960-646.png) -## 更多 -* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) -* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) + + + diff --git a/blocks/OurTeam/README.md b/blocks/OurTeam/README.md index 5780e6ab22..d410f7df3c 100644 --- a/blocks/OurTeam/README.md +++ b/blocks/OurTeam/README.md @@ -4,7 +4,7 @@ ![截图](https://img.alicdn.com/tfs/TB1YabDi8fH8KJjy1XbXXbLdXXa-1906-1210.png) -## 更多 -* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) -* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) + + + diff --git a/blocks/PictureTextList/README.md b/blocks/PictureTextList/README.md index f3d05ae289..841317616a 100644 --- a/blocks/PictureTextList/README.md +++ b/blocks/PictureTextList/README.md @@ -6,7 +6,7 @@ ![截图](https://gw.alicdn.com/tfs/TB1ZbgJilTH8KJjy0FiXXcRsXXa-2026-1556.png) -## 更多 -* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) -* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) + + + diff --git a/blocks/PieDoughnutChart/README.md b/blocks/PieDoughnutChart/README.md index e8bfda28c6..2559339f5e 100644 --- a/blocks/PieDoughnutChart/README.md +++ b/blocks/PieDoughnutChart/README.md @@ -4,7 +4,7 @@ ![截图](https://img.alicdn.com/tfs/TB1T_M6ih6I8KJjy0FgXXXXzVXa-1894-708.png) -## 更多 -* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) -* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) + + + diff --git a/blocks/PriceCard/README.md b/blocks/PriceCard/README.md index b6f0b80baa..43ec51a621 100644 --- a/blocks/PriceCard/README.md +++ b/blocks/PriceCard/README.md @@ -4,7 +4,7 @@ ![截图](https://img.alicdn.com/tfs/TB1_5jHjgvD8KJjy0FlXXagBFXa-2810-1074.png) -## 更多 -* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) -* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) + + + diff --git a/blocks/PriceInfo/README.md b/blocks/PriceInfo/README.md index c9472b3a32..3b3cd3b62f 100644 --- a/blocks/PriceInfo/README.md +++ b/blocks/PriceInfo/README.md @@ -4,7 +4,7 @@ ![截图](https://img.alicdn.com/tfs/TB1Z6GPgOqAXuNjy1XdXXaYcVXa-2632-1226.png) -## 更多 -* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) -* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) + + + diff --git a/blocks/PrivateMessageForm/README.md b/blocks/PrivateMessageForm/README.md index 88d011c710..4da0517d0f 100644 --- a/blocks/PrivateMessageForm/README.md +++ b/blocks/PrivateMessageForm/README.md @@ -6,7 +6,7 @@ ![截图](https://img.alicdn.com/tfs/TB1H5Q1lhrI8KJjy0FpXXb5hVXa-1234-784.png) -## 更多 -* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) -* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) + + + diff --git a/blocks/ProductInfo/README.md b/blocks/ProductInfo/README.md index f3585d4bd7..130d2d3b79 100644 --- a/blocks/ProductInfo/README.md +++ b/blocks/ProductInfo/README.md @@ -4,7 +4,7 @@ ![截图](https://img.alicdn.com/tfs/TB1IQ9Fif6H8KJjy0FjXXaXepXa-955-528.png) -## 更多 -* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) -* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) + + + diff --git a/blocks/ProgressTable/README.md b/blocks/ProgressTable/README.md index e6b415b0a4..50d8fa409f 100644 --- a/blocks/ProgressTable/README.md +++ b/blocks/ProgressTable/README.md @@ -4,7 +4,7 @@ ![截图](https://img.alicdn.com/tfs/TB1MSwOih6I8KJjy0FgXXXXzVXa-1828-1206.png) -## 更多 -* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) -* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) + + + diff --git a/blocks/RegisterForm/README.md b/blocks/RegisterForm/README.md index 72d4596248..279d14916a 100644 --- a/blocks/RegisterForm/README.md +++ b/blocks/RegisterForm/README.md @@ -4,7 +4,7 @@ ![截图](https://img.alicdn.com/tfs/TB1hLZ7ih6I8KJjy0FgXXXXzVXa-574-772.png) -## 更多 -* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) -* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) + + + diff --git a/blocks/RightContentDisplay/README.md b/blocks/RightContentDisplay/README.md index f330b30f14..b9ebbd3040 100644 --- a/blocks/RightContentDisplay/README.md +++ b/blocks/RightContentDisplay/README.md @@ -4,7 +4,7 @@ ![截图](https://img.alicdn.com/tfs/TB1O.0KjC_I8KJjy0FoXXaFnVXa-2344-1184.png) -## 更多 -* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) -* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) + + + diff --git a/blocks/SelectableTable/README.md b/blocks/SelectableTable/README.md index 6f148e7d75..67d5a26a44 100644 --- a/blocks/SelectableTable/README.md +++ b/blocks/SelectableTable/README.md @@ -4,7 +4,7 @@ ![截图](https://img.alicdn.com/tfs/TB19Y4Ff5qAXuNjy1XdXXaYcVXa-1017-655.png) -## 更多 -* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) -* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) + + + diff --git a/blocks/SignupForm/README.md b/blocks/SignupForm/README.md index b8c504182a..8f508c1a08 100644 --- a/blocks/SignupForm/README.md +++ b/blocks/SignupForm/README.md @@ -4,7 +4,7 @@ ![截图](https://img.alicdn.com/tfs/TB1wHA9ib_I8KJjy1XaXXbsxpXa-616-612.png) -## 更多 -* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) -* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) + + + diff --git a/blocks/SimpleFluencyForm/README.md b/blocks/SimpleFluencyForm/README.md index 2ccb6579b1..f870c73dd5 100644 --- a/blocks/SimpleFluencyForm/README.md +++ b/blocks/SimpleFluencyForm/README.md @@ -6,7 +6,7 @@ SimpleFluencyForm ![截图](https://gw.alicdn.com/tfs/TB1emXIjDnI8KJjy0FfXXcdoVXa-1776-902.png) -## 更多 -* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) -* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) + + + diff --git a/blocks/SimpleFormDialog/README.md b/blocks/SimpleFormDialog/README.md index b4a710816d..fe4653e51f 100644 --- a/blocks/SimpleFormDialog/README.md +++ b/blocks/SimpleFormDialog/README.md @@ -6,7 +6,7 @@ ![截图](https://img.alicdn.com/tfs/TB1.65ri9_I8KJjy0FoXXaFnVXa-1270-628.png) -## 更多 -* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) -* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) + + + diff --git a/blocks/SimpleTable/README.md b/blocks/SimpleTable/README.md index 00cc69c551..fca3cb9d64 100644 --- a/blocks/SimpleTable/README.md +++ b/blocks/SimpleTable/README.md @@ -6,7 +6,7 @@ ![截图](https://img.alicdn.com/tfs/TB1dnoMib_I8KJjy1XaXXbsxpXa-1908-1496.png) -## 更多 -* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) -* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) + + + diff --git a/blocks/SimpleTestimonial/README.md b/blocks/SimpleTestimonial/README.md index 9ed3413443..a8cdf8a9fa 100644 --- a/blocks/SimpleTestimonial/README.md +++ b/blocks/SimpleTestimonial/README.md @@ -4,7 +4,7 @@ ![截图](https://img.alicdn.com/tfs/TB1X6osi4rI8KJjy0FpXXb5hVXa-1906-474.png) -## 更多 -* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) -* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) + + + diff --git a/blocks/SortCardList/README.md b/blocks/SortCardList/README.md index 1f1dc12be6..1e41c39729 100644 --- a/blocks/SortCardList/README.md +++ b/blocks/SortCardList/README.md @@ -6,7 +6,7 @@ ![截图](https://gw.alicdn.com/tfs/TB1CmT8jfDH8KJjy1XcXXcpdXXa-2034-830.png) -## 更多 -* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) -* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) + + + diff --git a/blocks/StatisticalCard/README.md b/blocks/StatisticalCard/README.md index f622bf60bc..0c6610d855 100644 --- a/blocks/StatisticalCard/README.md +++ b/blocks/StatisticalCard/README.md @@ -6,7 +6,7 @@ ![截图](https://img.alicdn.com/tfs/TB1MLLbilfH8KJjy1XbXXbLdXXa-1910-210.png) -## 更多 -* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) -* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) + + + diff --git a/blocks/Subscribe/README.md b/blocks/Subscribe/README.md index a971640c5d..a095542f77 100644 --- a/blocks/Subscribe/README.md +++ b/blocks/Subscribe/README.md @@ -6,7 +6,7 @@ ![截图](https://gw.alicdn.com/tfs/TB1HFVejvDH8KJjy1XcXXcpdXXa-1832-382.png) -## 更多 -* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) -* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) + + + diff --git a/blocks/SuccessDetail/README.md b/blocks/SuccessDetail/README.md index 2926684e81..84b23bd2a9 100644 --- a/blocks/SuccessDetail/README.md +++ b/blocks/SuccessDetail/README.md @@ -4,7 +4,7 @@ ![截图](https://gw.alicdn.com/tfs/TB1rmoainnI8KJjy0FfXXcdoVXa-1750-986.png) -## 更多 -* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) -* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) + + + diff --git a/blocks/SuccessDialog/README.md b/blocks/SuccessDialog/README.md index 6eb702a25c..ece46e776d 100644 --- a/blocks/SuccessDialog/README.md +++ b/blocks/SuccessDialog/README.md @@ -4,7 +4,7 @@ ![截图](https://img.alicdn.com/tfs/TB1CMVpi5qAXuNjy1XdXXaYcVXa-1278-540.png) -## 更多 -* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) -* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) + + + diff --git a/blocks/SystemNoticeList/README.md b/blocks/SystemNoticeList/README.md index b0863ec3f5..f0b76ecc8e 100644 --- a/blocks/SystemNoticeList/README.md +++ b/blocks/SystemNoticeList/README.md @@ -4,7 +4,7 @@ ![截图](https://img.alicdn.com/tfs/TB1Xz9cf5qAXuNjy1XdXXaYcVXa-1904-638.png) -## 更多 -* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) -* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) + + + diff --git a/blocks/TabArticle/README.md b/blocks/TabArticle/README.md index 019e8fb3a9..b8a2f97eb2 100644 --- a/blocks/TabArticle/README.md +++ b/blocks/TabArticle/README.md @@ -6,7 +6,7 @@ tab和文章列表组合 ![截图](https://gw.alicdn.com/tfs/TB18xpkivDH8KJjy1XcXXcpdXXa-1706-1516.png) -## 更多 -* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) -* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) + + + diff --git a/blocks/TabDialog/README.md b/blocks/TabDialog/README.md index 4caa8e061b..92afad4101 100644 --- a/blocks/TabDialog/README.md +++ b/blocks/TabDialog/README.md @@ -6,7 +6,7 @@ ![截图](https://img.alicdn.com/tfs/TB19AF4gOqAXuNjy1XdXXaYcVXa-1262-812.png) -## 更多 -* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) -* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) + + + diff --git a/blocks/TagMessageList/README.md b/blocks/TagMessageList/README.md index 0b845d0156..439d621d09 100644 --- a/blocks/TagMessageList/README.md +++ b/blocks/TagMessageList/README.md @@ -6,7 +6,7 @@ ![截图](https://img.alicdn.com/tfs/TB1VfEejlfH8KJjy1XbXXbLdXXa-846-776.png) -## 更多 -* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) -* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) + + + diff --git a/blocks/TeamDisplay/README.md b/blocks/TeamDisplay/README.md index 011c75febc..da27c29e62 100644 --- a/blocks/TeamDisplay/README.md +++ b/blocks/TeamDisplay/README.md @@ -4,7 +4,7 @@ ![截图](https://img.alicdn.com/tfs/TB1P1cBi3DD8KJjy0FdXXcjvXXa-1904-1554.png) -## 更多 -* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) -* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) + + + diff --git a/blocks/TermsInfo/README.md b/blocks/TermsInfo/README.md index b4f30af236..32897c7487 100644 --- a/blocks/TermsInfo/README.md +++ b/blocks/TermsInfo/README.md @@ -4,7 +4,7 @@ ![截图](https://img.alicdn.com/tfs/TB1aL6ZfiqAXuNjy1XdXXaYcVXa-948-735.png) -## 更多 -* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) -* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) + + + diff --git a/blocks/Testimonial/README.md b/blocks/Testimonial/README.md index 43db4d9b8d..0d18a222e3 100644 --- a/blocks/Testimonial/README.md +++ b/blocks/Testimonial/README.md @@ -4,7 +4,7 @@ ![截图](https://img.alicdn.com/tfs/TB1N4oni8fH8KJjy1XbXXbLdXXa-2692-1250.png) -## 更多 -* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) -* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) + + + diff --git a/blocks/TestimonialCard/README.md b/blocks/TestimonialCard/README.md index 8a592fa1f0..115e60dced 100644 --- a/blocks/TestimonialCard/README.md +++ b/blocks/TestimonialCard/README.md @@ -4,7 +4,7 @@ ![截图](https://img.alicdn.com/tfs/TB14w4EjBfH8KJjy1XbXXbLdXXa-2824-1110.png) -## 更多 -* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) -* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) + + + diff --git a/blocks/TextCard/README.md b/blocks/TextCard/README.md index 2a77216cbb..f6a5b8c642 100644 --- a/blocks/TextCard/README.md +++ b/blocks/TextCard/README.md @@ -6,7 +6,7 @@ ![截图](https://img.alicdn.com/tfs/TB14dP0h8fH8KJjy1XbXXbLdXXa-1896-238.png) -## 更多 -* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) -* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) + + + diff --git a/blocks/TextSearchList/README.md b/blocks/TextSearchList/README.md index 51afbca87f..f47302ff5d 100644 --- a/blocks/TextSearchList/README.md +++ b/blocks/TextSearchList/README.md @@ -6,7 +6,7 @@ ![截图](https://gw.alicdn.com/tfs/TB1bcxnir_I8KJjy1XaXXbsxpXa-1906-1536.png) -## 更多 -* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) -* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) + + + diff --git a/blocks/TimeFilterTable/README.md b/blocks/TimeFilterTable/README.md index 9c2f36b84e..edd22fd8b9 100644 --- a/blocks/TimeFilterTable/README.md +++ b/blocks/TimeFilterTable/README.md @@ -6,7 +6,7 @@ ![截图](https://img.alicdn.com/tfs/TB1.dqQi5qAXuNjy1XdXXaYcVXa-1902-1004.png) -## 更多 -* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) -* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) + + + diff --git a/blocks/TopicCard/README.md b/blocks/TopicCard/README.md index 20077445f6..d32f71e4a5 100644 --- a/blocks/TopicCard/README.md +++ b/blocks/TopicCard/README.md @@ -4,7 +4,7 @@ ![截图](https://img.alicdn.com/tfs/TB1xH9df5qAXuNjy1XdXXaYcVXa-1796-290.png) -## 更多 -* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) -* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) + + + diff --git a/blocks/TreeCardList/README.md b/blocks/TreeCardList/README.md index 5b7c9ee185..2339b4600b 100644 --- a/blocks/TreeCardList/README.md +++ b/blocks/TreeCardList/README.md @@ -6,7 +6,7 @@ ![截图](https://img.alicdn.com/tfs/TB1lJIelhTI8KJjSspiXXbM4FXa-1014-780.png) -## 更多 -* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) -* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) + + + diff --git a/layouts/AsideLayout/README.md b/layouts/AsideLayout/README.md index 0435d7659a..95751505d8 100644 --- a/layouts/AsideLayout/README.md +++ b/layouts/AsideLayout/README.md @@ -3,8 +3,3 @@ 简介:附带侧边栏的 Layout ![截图](https://img.alicdn.com/tfs/TB1i0lfivDH8KJjy1XcXXcpdXXa-2606-1286.png) - -## 更多 - -* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) -* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) diff --git a/layouts/BasicLayout/README.md b/layouts/BasicLayout/README.md index 80d87b82e7..c6801fa2ae 100644 --- a/layouts/BasicLayout/README.md +++ b/layouts/BasicLayout/README.md @@ -3,8 +3,3 @@ 简介:基础 layout ![截图](https://img.alicdn.com/tfs/TB1Qh4rir_I8KJjy1XaXXbsxpXa-2536-1246.png) - -## 更多 - -* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) -* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) diff --git a/layouts/LandingLayout/README.md b/layouts/LandingLayout/README.md index 28cf3c28b6..14b9f97619 100644 --- a/layouts/LandingLayout/README.md +++ b/layouts/LandingLayout/README.md @@ -3,8 +3,3 @@ 简介:登录页面 Layout ![截图](https://img.alicdn.com/tfs/TB1mH8kirYI8KJjy0FaXXbAiVXa-2614-1298.png) - -## 更多 - -* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) -* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) diff --git a/layouts/ScalableAsideLayout/README.md b/layouts/ScalableAsideLayout/README.md index f190d668b6..956b60c457 100644 --- a/layouts/ScalableAsideLayout/README.md +++ b/layouts/ScalableAsideLayout/README.md @@ -3,8 +3,3 @@ 简介:侧边栏可伸缩 Layout ![截图](https://img.alicdn.com/tfs/TB1.yERim_I8KJjy0FoXXaFnVXa-2820-1284.png) - -## 更多 - -* [使用说明](http://gitlab.alibaba-inc.com/ice/notes/issues/830) -* [开发规范](http://gitlab.alibaba-inc.com/ice/notes/issues/830) From a328e1643abb691299dfdc9d1e689f6c3218dcd9 Mon Sep 17 00:00:00 2001 From: wssgcg1213 Date: Thu, 4 Jan 2018 23:11:55 +0800 Subject: [PATCH 0021/1028] del: remove DynamicBanner --- blocks/DynamicBanner/README.md | 10 -- blocks/DynamicBanner/demo/index.html | 19 ---- blocks/DynamicBanner/demo/index.js | 19 ---- blocks/DynamicBanner/mock/api.json | 4 - blocks/DynamicBanner/package.json | 44 -------- blocks/DynamicBanner/src/DynamicBanner.jsx | 110 -------------------- blocks/DynamicBanner/src/DynamicBanner.scss | 10 -- blocks/DynamicBanner/src/index.js | 3 - 8 files changed, 219 deletions(-) delete mode 100644 blocks/DynamicBanner/README.md delete mode 100644 blocks/DynamicBanner/demo/index.html delete mode 100644 blocks/DynamicBanner/demo/index.js delete mode 100644 blocks/DynamicBanner/mock/api.json delete mode 100644 blocks/DynamicBanner/package.json delete mode 100644 blocks/DynamicBanner/src/DynamicBanner.jsx delete mode 100644 blocks/DynamicBanner/src/DynamicBanner.scss delete mode 100644 blocks/DynamicBanner/src/index.js diff --git a/blocks/DynamicBanner/README.md b/blocks/DynamicBanner/README.md deleted file mode 100644 index fa6008f1ed..0000000000 --- a/blocks/DynamicBanner/README.md +++ /dev/null @@ -1,10 +0,0 @@ -# dynamic-banner - -简介:视差滚动的 Banner - -![截图](https://img.alicdn.com/tfs/TB1fZEIifDH8KJjy1XcXXcpdXXa-1276-672.png) - - - - - diff --git a/blocks/DynamicBanner/demo/index.html b/blocks/DynamicBanner/demo/index.html deleted file mode 100644 index 9d2d3a663d..0000000000 --- a/blocks/DynamicBanner/demo/index.html +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - Document - - - - -
    - - - - - - diff --git a/blocks/DynamicBanner/demo/index.js b/blocks/DynamicBanner/demo/index.js deleted file mode 100644 index 4d6acd389a..0000000000 --- a/blocks/DynamicBanner/demo/index.js +++ /dev/null @@ -1,19 +0,0 @@ -import React, { Component } from 'react'; -import { render } from 'react-dom'; - -// 载入默认全局样式 normalize 、.clearfix 和一些 mixin 方法等 -import '@icedesign/base/lib/_components/@alife/next-core/lib/index.scss'; - -import DemoLayout from '@icedesign/demo-layout'; -import Block from '../src'; - -const props = { - // ... -}; - -render( - - - , - document.querySelector('#mountNode') -); diff --git a/blocks/DynamicBanner/mock/api.json b/blocks/DynamicBanner/mock/api.json deleted file mode 100644 index e706430232..0000000000 --- a/blocks/DynamicBanner/mock/api.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "status": "success", - "data": {} -} diff --git a/blocks/DynamicBanner/package.json b/blocks/DynamicBanner/package.json deleted file mode 100644 index d4f19dbc44..0000000000 --- a/blocks/DynamicBanner/package.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "name": "@icedesign/dynamic-banner-block", - "version": "0.1.0", - "description": "", - "main": "lib/index.js", - "files": [ - "src/", - "demo/", - "lib/", - "mock/" - ], - "author": { - "name": "ICE Team", - "email": "ice-admin@alibaba-inc.com" - }, - "repository": { - "type": "git", - "url": "https://github.com/alibaba/ice" - }, - "license": "MIT", - "keywords": [ - "ice", - "ice-block" - ], - "dependencies": { - "prop-types": "^15.5.8", - "@icedesign/base": "^0.1.0" - }, - "devDependencies": { - "eslint-plugin-react": "^7.5.1", - "@icedesign/demo-layout": "^0.1.0", - "@icedesign/skin": "^0.1.2" - }, - "blockConfig": { - "name": "dynamic-banner", - "description": "视差滚动的 Banner", - "chinese": "视差滚动的 Banner", - "category": "info-display", - "snapshot": "https://img.alicdn.com/tfs/TB1fZEIifDH8KJjy1XcXXcpdXXa-1276-672.png", - "sketchURL": "", - "icelandURL": "", - "themePackage": "@icedesign/skin" - } -} diff --git a/blocks/DynamicBanner/src/DynamicBanner.jsx b/blocks/DynamicBanner/src/DynamicBanner.jsx deleted file mode 100644 index 209cc364da..0000000000 --- a/blocks/DynamicBanner/src/DynamicBanner.jsx +++ /dev/null @@ -1,110 +0,0 @@ -'use strict'; - -import React, { Component } from 'react'; -import './DynamicBanner.scss'; - -export default class DynamicBanner extends Component { - static displayName = 'DynamicBanner'; - - handleMouseEnter = () => { - const ele = document.getElementById('bannerBox'); - const thisPX = ele.offsetLeft; - const thisPY = ele.offsetTop; - const boxWidth = ele.offsetWidth; - const boxHeight = ele.offsetHeight; - - ele.addEventListener('mousemove', function(event) { - const mouseX = event.pageX - thisPX; - const mouseY = event.pageY - thisPY; - let X; - let Y; - if (mouseX > boxWidth / 2) { - X = mouseX - boxWidth / 2; - } else { - X = mouseX - boxWidth / 2; - } - if (mouseY > boxHeight / 2) { - Y = boxHeight / 2 - mouseY; - } else { - Y = boxHeight / 2 - mouseY; - } - - ele.style.transform = `rotateY(${X / 50}deg) rotateX(${Y / 50}deg)`; - }); - }; - - handleMouseLeave = () => { - const ele = document.getElementById('bannerBox'); - ele.style.transform = 'rotateY(0deg) rotateX(0deg)'; - }; - - render() { - return ( -
    -
    - - - 更快,更优,更 Cool - - - 企业级泛后台应用解决方案 - -
    -
    - ); - } -} - -const styles = { - dynamicBanner: { perspective: '800px' }, - bannerBox: { - position: 'relative', - width: '600px', - height: '300px', - margin: '100px auto', - background: - "url('http://static.smartisanos.cn/index/img/store/home/banner-3d-item-1-box-1_61bdc2f4f9.png') center no-repeat", - backgroundSize: '100% 100%', - borderRadius: '10px', - transformStyle: 'preserve-3d', - transformOrigin: '50% 50%', - transform: 'rotateY(0deg) rotateX(0deg)' - }, - image: { - position: 'absolute', - width: '100%', - height: '100%', - bottom: '8px', - left: '0', - background: - 'url("http://static.smartisanos.cn/index/img/store/home/banner-3d-item-1-box-3_8fa7866d59.png") center no-repeat', - backgroundSize: '95% 100%', - transform: 'translateZ(40px)' - }, - slogan: { - position: 'absolute', - top: '20%', - right: '10%', - fontSize: '30px', - color: '#fff', - textAlign: 'right', - fontWeight: 'lighter', - transform: 'translateZ(20px)' - }, - copyright: { - position: 'absolute', - bottom: '10%', - right: '10%', - fontSize: '10px', - color: '#fff', - textAlign: 'right', - fontWeight: 'lighter', - transform: 'translateZ(0px)' - } -}; diff --git a/blocks/DynamicBanner/src/DynamicBanner.scss b/blocks/DynamicBanner/src/DynamicBanner.scss deleted file mode 100644 index fda36f85cf..0000000000 --- a/blocks/DynamicBanner/src/DynamicBanner.scss +++ /dev/null @@ -1,10 +0,0 @@ -@charset "UTF-8"; - -.dynamic-banner { - & * { - transition: all 0.3s; - -webkit-transition: all 0.3s; - transition-timing-function: linear; - -webkit-transition-timing-function: linear; - } -} diff --git a/blocks/DynamicBanner/src/index.js b/blocks/DynamicBanner/src/index.js deleted file mode 100644 index f137fa2e5b..0000000000 --- a/blocks/DynamicBanner/src/index.js +++ /dev/null @@ -1,3 +0,0 @@ -import DynamicBanner from './DynamicBanner'; - -export default DynamicBanner; From 48bf9dfdf4e30160302b1d933f87848edaef5b4b Mon Sep 17 00:00:00 2001 From: noyobo Date: Fri, 5 Jan 2018 14:56:12 +0800 Subject: [PATCH 0022/1028] chore: update layout description & chinese title & snapshot --- layouts/AsideLayout/package.json | 6 +++--- layouts/AsideLayout/src/__components_Header__.jsx | 2 +- layouts/BasicLayout/package.json | 6 +++--- layouts/LandingLayout/package.json | 6 +++--- layouts/ScalableAsideLayout/package.json | 6 +++--- 5 files changed, 13 insertions(+), 13 deletions(-) diff --git a/layouts/AsideLayout/package.json b/layouts/AsideLayout/package.json index db2191ca1c..dea2158309 100644 --- a/layouts/AsideLayout/package.json +++ b/layouts/AsideLayout/package.json @@ -37,10 +37,10 @@ }, "blockConfig": { "name": "aside-layout", - "description": "附带侧边栏的 Layout", - "chinese": "附带侧边栏的 Layout", + "description": "侧边栏导航 + 内容居中布局", + "chinese": "侧边布局", "category": "layout", - "snapshot": "https://img.alicdn.com/tfs/TB130YAkr_I8KJjy1XaXXbsxpXa-640-400.png", + "snapshot": "https://img.alicdn.com/tfs/TB1ufavdC_I8KJjy0FoXXaFnVXa-78-78.png", "sketchURL": "", "icelandURL": "", "themePackage": "@icedesign/skin" diff --git a/layouts/AsideLayout/src/__components_Header__.jsx b/layouts/AsideLayout/src/__components_Header__.jsx index 2ef83412bf..2dfca53b8e 100644 --- a/layouts/AsideLayout/src/__components_Header__.jsx +++ b/layouts/AsideLayout/src/__components_Header__.jsx @@ -57,7 +57,7 @@ export default ({ width }) => { 淘小宝 diff --git a/layouts/BasicLayout/package.json b/layouts/BasicLayout/package.json index fe16a436cb..5e45db4091 100644 --- a/layouts/BasicLayout/package.json +++ b/layouts/BasicLayout/package.json @@ -37,10 +37,10 @@ }, "blockConfig": { "name": "basic-layout", - "description": "基础 layout", - "chinese": "基础 layout", + "description": "内容居中布局", + "chinese": "居中布局", "category": "layout", - "snapshot": "https://img.alicdn.com/tfs/TB13JYAkr_I8KJjy1XaXXbsxpXa-640-400.png", + "snapshot": "https://img.alicdn.com/tfs/TB1jLavdC_I8KJjy0FoXXaFnVXa-78-78.png", "sketchURL": "", "icelandURL": "", "themePackage": "@icedesign/skin" diff --git a/layouts/LandingLayout/package.json b/layouts/LandingLayout/package.json index 78b324ccf3..041581b914 100644 --- a/layouts/LandingLayout/package.json +++ b/layouts/LandingLayout/package.json @@ -37,10 +37,10 @@ }, "blockConfig": { "name": "landing-layout", - "description": "登录页面 Layout", - "chinese": "登录页面 Layout", + "description": "通栏 + 导航悬浮布局", + "chinese": "通栏布局", "category": "layout", - "snapshot": "https://img.alicdn.com/tfs/TB1VoV7kBfH8KJjy1XbXXbLdXXa-640-400.png", + "snapshot": "https://img.alicdn.com/tfs/TB1l2avdC_I8KJjy0FoXXaFnVXa-76-78.png", "sketchURL": "", "icelandURL": "", "themePackage": "@icedesign/skin" diff --git a/layouts/ScalableAsideLayout/package.json b/layouts/ScalableAsideLayout/package.json index f1c982d7f7..9b06c4782b 100644 --- a/layouts/ScalableAsideLayout/package.json +++ b/layouts/ScalableAsideLayout/package.json @@ -37,10 +37,10 @@ }, "blockConfig": { "name": "scalable-aside-layout", - "description": "侧边栏可伸缩 Layout", - "chinese": "侧边栏可伸缩 Layout", + "description": "通栏 + 侧边布局布局", + "chinese": "通栏侧边布局", "category": "layout", - "snapshot": "https://img.alicdn.com/tfs/TB120YAkr_I8KJjy1XaXXbsxpXa-640-400.png", + "snapshot": "https://img.alicdn.com/tfs/TB1uLavdC_I8KJjy0FoXXaFnVXa-76-78.png", "sketchURL": "", "icelandURL": "", "themePackage": "@icedesign/skin" From 154898a666ab66b81cd9c1de009d0c6a048336aa Mon Sep 17 00:00:00 2001 From: noyobo Date: Fri, 5 Jan 2018 15:05:22 +0800 Subject: [PATCH 0023/1028] chore: publish layouts 0.1.3 --- layouts/AsideLayout/package.json | 2 +- layouts/BasicLayout/package.json | 4 ++-- layouts/LandingLayout/package.json | 4 ++-- layouts/ScalableAsideLayout/package.json | 6 +++--- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/layouts/AsideLayout/package.json b/layouts/AsideLayout/package.json index dea2158309..4cc01b233d 100644 --- a/layouts/AsideLayout/package.json +++ b/layouts/AsideLayout/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/aside-layout", - "version": "0.1.2", + "version": "0.1.3", "description": "basic layout", "files": [ "src/", diff --git a/layouts/BasicLayout/package.json b/layouts/BasicLayout/package.json index 5e45db4091..8ac3baf973 100644 --- a/layouts/BasicLayout/package.json +++ b/layouts/BasicLayout/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/basic-layout", - "version": "0.1.2", + "version": "0.1.3", "description": "basic layout", "files": [ "src/", @@ -22,10 +22,10 @@ "ice-block" ], "dependencies": { + "@icedesign/base": "^0.1.0", "@icedesign/img": "^0.1.0", "@icedesign/layout": "^0.1.0", "@icedesign/menu": "^0.1.0", - "@icedesign/base": "^0.1.0", "classnames": "^2.2.5", "prop-types": "^15.5.8", "react-document-title": "^2.0.3", diff --git a/layouts/LandingLayout/package.json b/layouts/LandingLayout/package.json index 041581b914..6a19b4db48 100644 --- a/layouts/LandingLayout/package.json +++ b/layouts/LandingLayout/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/landing-layout", - "version": "0.1.2", + "version": "0.1.3", "description": "landing layout", "files": [ "src/", @@ -22,10 +22,10 @@ "ice-block" ], "dependencies": { + "@icedesign/base": "^0.1.0", "@icedesign/img": "^0.1.0", "@icedesign/layout": "^0.1.0", "@icedesign/menu": "^0.1.0", - "@icedesign/base": "^0.1.0", "classnames": "^2.2.5", "prop-types": "^15.5.8", "react-document-title": "^2.0.3", diff --git a/layouts/ScalableAsideLayout/package.json b/layouts/ScalableAsideLayout/package.json index 9b06c4782b..1a8ec93832 100644 --- a/layouts/ScalableAsideLayout/package.json +++ b/layouts/ScalableAsideLayout/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/scalable-aside-layout", - "version": "0.1.2", + "version": "0.1.3", "description": "", "files": [ "lib/", @@ -22,14 +22,14 @@ "ice-component" ], "dependencies": { + "@icedesign/base": "^0.1.0", "@icedesign/img": "^0.1.0", "@icedesign/layout": "^0.1.0", "@icedesign/menu": "^0.1.0", "classnames": "^2.2.5", "prop-types": "^15.5.8", "react-document-title": "^2.0.3", - "react-router": "^3.2.0", - "@icedesign/base": "^0.1.0" + "react-router": "^3.2.0" }, "devDependencies": { "@icedesign/skin": "^0.1.0", From dc8350f36c9377b3c094a72175e55cf8f5153408 Mon Sep 17 00:00:00 2001 From: wssgcg1213 Date: Fri, 5 Jan 2018 18:03:55 +0800 Subject: [PATCH 0024/1028] chore: publish layouts 0.1.4, update snapshots --- layouts/AsideLayout/package.json | 4 ++-- layouts/BasicLayout/package.json | 4 ++-- layouts/LandingLayout/package.json | 4 ++-- layouts/ScalableAsideLayout/package.json | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/layouts/AsideLayout/package.json b/layouts/AsideLayout/package.json index 4cc01b233d..70c23eca2a 100644 --- a/layouts/AsideLayout/package.json +++ b/layouts/AsideLayout/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/aside-layout", - "version": "0.1.3", + "version": "0.1.4", "description": "basic layout", "files": [ "src/", @@ -40,7 +40,7 @@ "description": "侧边栏导航 + 内容居中布局", "chinese": "侧边布局", "category": "layout", - "snapshot": "https://img.alicdn.com/tfs/TB1ufavdC_I8KJjy0FoXXaFnVXa-78-78.png", + "snapshot": "https://gw.alicdn.com/tfs/TB172QmlsLJ8KJjy0FnXXcFDpXa-976-974.png", "sketchURL": "", "icelandURL": "", "themePackage": "@icedesign/skin" diff --git a/layouts/BasicLayout/package.json b/layouts/BasicLayout/package.json index 8ac3baf973..9e2eadb927 100644 --- a/layouts/BasicLayout/package.json +++ b/layouts/BasicLayout/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/basic-layout", - "version": "0.1.3", + "version": "0.1.4", "description": "basic layout", "files": [ "src/", @@ -40,7 +40,7 @@ "description": "内容居中布局", "chinese": "居中布局", "category": "layout", - "snapshot": "https://img.alicdn.com/tfs/TB1jLavdC_I8KJjy0FoXXaFnVXa-78-78.png", + "snapshot": "https://gw.alicdn.com/tfs/TB1R2QmlsLJ8KJjy0FnXXcFDpXa-976-974.png", "sketchURL": "", "icelandURL": "", "themePackage": "@icedesign/skin" diff --git a/layouts/LandingLayout/package.json b/layouts/LandingLayout/package.json index 6a19b4db48..97984fcc03 100644 --- a/layouts/LandingLayout/package.json +++ b/layouts/LandingLayout/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/landing-layout", - "version": "0.1.3", + "version": "0.1.4", "description": "landing layout", "files": [ "src/", @@ -40,7 +40,7 @@ "description": "通栏 + 导航悬浮布局", "chinese": "通栏布局", "category": "layout", - "snapshot": "https://img.alicdn.com/tfs/TB1l2avdC_I8KJjy0FoXXaFnVXa-76-78.png", + "snapshot": "https://gw.alicdn.com/tfs/TB1SvQmlsLJ8KJjy0FnXXcFDpXa-976-974.png", "sketchURL": "", "icelandURL": "", "themePackage": "@icedesign/skin" diff --git a/layouts/ScalableAsideLayout/package.json b/layouts/ScalableAsideLayout/package.json index 1a8ec93832..25fe8788da 100644 --- a/layouts/ScalableAsideLayout/package.json +++ b/layouts/ScalableAsideLayout/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/scalable-aside-layout", - "version": "0.1.3", + "version": "0.1.4", "description": "", "files": [ "lib/", @@ -40,7 +40,7 @@ "description": "通栏 + 侧边布局布局", "chinese": "通栏侧边布局", "category": "layout", - "snapshot": "https://img.alicdn.com/tfs/TB1uLavdC_I8KJjy0FoXXaFnVXa-76-78.png", + "snapshot": "https://gw.alicdn.com/tfs/TB1dC19lC_I8KJjy0FoXXaFnVXa-976-974.png", "sketchURL": "", "icelandURL": "", "themePackage": "@icedesign/skin" From 122d1f97c14f96632eb426b97e64a9bcc2d0ae24 Mon Sep 17 00:00:00 2001 From: wssgcg1213 Date: Fri, 5 Jan 2018 19:35:29 +0800 Subject: [PATCH 0025/1028] chore: add MIT LICENSE --- LICENSE | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 LICENSE diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000000..342f6f1ffd --- /dev/null +++ b/LICENSE @@ -0,0 +1,22 @@ +MIT LICENSE + +Copyright (c) 2018-present Alibaba.com, https://www.alibaba.com/ + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. From 940167aa90b5ffcee06cd13bacb4d2f5884ba11b Mon Sep 17 00:00:00 2001 From: wssgcg1213 Date: Fri, 5 Jan 2018 19:38:17 +0800 Subject: [PATCH 0026/1028] chore: LICENSE alibaba --- LICENSE | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LICENSE b/LICENSE index 342f6f1ffd..9f4a345a5f 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT LICENSE -Copyright (c) 2018-present Alibaba.com, https://www.alibaba.com/ +Copyright (c) 2018-present Alibaba Inc. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the From 4cbfb181290abf83d362d8e6d0cf3ab8ecc35f5e Mon Sep 17 00:00:00 2001 From: wssgcg1213 Date: Fri, 5 Jan 2018 20:02:07 +0800 Subject: [PATCH 0027/1028] Publish - @icedesign/application-progress-block@0.1.0 - @icedesign/area-stack-chart-block@0.1.0 - @icedesign/article-list-block@0.1.0 - @icedesign/basic-detail-info-block@0.1.0 - @icedesign/basic-exception-block@0.1.1 - @icedesign/basic-not-found-block@0.1.1 - @icedesign/basic-tab-block@0.1.1 - @icedesign/brand-display-block@0.1.1 - @icedesign/brand-show-case-block@0.1.1 - @icedesign/chart-area-block@0.1.1 - @icedesign/chart-bar-block@0.1.1 - @icedesign/chart-box-block@0.1.1 - @icedesign/chart-bubble-image-block@0.1.1 - @icedesign/chart-facet-block@0.1.1 - @icedesign/chart-funnel-block@0.1.1 - @icedesign/chart-gauge-block@0.1.1 - @icedesign/chart-heat-map-block@0.1.1 - @icedesign/chart-pie-block@0.1.1 - @icedesign/chart-point-block@0.1.1 - @icedesign/chart-radar-block@0.1.1 - @icedesign/chart-relation-block@0.1.1 - @icedesign/chart-stock-block@0.1.1 - @icedesign/chart-type-line-block@0.1.1 - @icedesign/collapse-card-block@0.1.1 - @icedesign/complex-dialog-block@0.1.1 - @icedesign/complex-filter-block@0.1.4 - @icedesign/complex-progress-table-block@0.1.1 - @icedesign/complex-tab-table-block@0.1.1 - @icedesign/composite-filter-block@0.1.1 - @icedesign/confirm-dialog-block@0.1.1 - @icedesign/data-display-block@0.1.1 - @icedesign/detail-table-block@0.1.1 - @icedesign/display-card-block@0.1.1 - @icedesign/download-card-block@0.1.1 - @icedesign/editable-table-block@0.1.1 - @icedesign/empty-content-block@0.1.2 - @icedesign/enhance-table-block@0.1.1 - @icedesign/entry-card-block@0.1.1 - @icedesign/failure-detail-block@0.1.1 - @icedesign/feature-display-block@0.1.1 - @icedesign/feed-list-block@0.1.1 - @icedesign/filter-list-block@0.1.1 - @icedesign/filter-table-block@0.1.1 - @icedesign/filter-with-search-block@0.1.1 - @icedesign/footer-block@0.1.1 - @icedesign/footer-info-block@0.1.1 - @icedesign/forget-password-form-block@0.1.2 - @icedesign/info-display-tab-block@0.1.1 - @icedesign/info-display-table-block@0.1.1 - @icedesign/join-us-block-block@0.1.1 - @icedesign/landing-intro-banner-block@0.1.2 - @icedesign/left-content-display-block@0.1.1 - @icedesign/lite-table-block@0.1.1 - @icedesign/message-list-block@0.1.2 - @icedesign/monaco-editor-block@0.1.1 - @icedesign/not-permission-block@0.1.1 - @icedesign/operation-table-block@0.1.1 - @icedesign/order-list-block@0.1.1 - @icedesign/our-team-block@0.1.1 - @icedesign/picture-text-list-block@0.1.1 - @icedesign/pie-doughnut-chart-block@0.1.1 - @icedesign/price-card-block@0.1.1 - @icedesign/price-info-block@0.1.1 - @icedesign/private-message-form-block@0.1.2 - @icedesign/product-info-block@0.1.1 - @icedesign/progress-table-block@0.1.1 - @icedesign/register-form-block@0.1.1 - @icedesign/right-content-display-block@0.1.1 - @icedesign/selectable-table-block@0.1.1 - @icedesign/signup-form-block-block@0.1.1 - @icedesign/simple-fluency-form-block@0.1.1 - @icedesign/simple-form-dialog-block@0.1.1 - @icedesign/simple-table-block@0.1.1 - @icedesign/simple-testimonial-block@0.1.1 - @icedesign/sort-card-list-block@0.1.1 - @icedesign/statistical-card-block@0.1.1 - @icedesign/subscribe-block@0.1.1 - @icedesign/success-detail-block@0.1.1 - @icedesign/success-dialog-block@0.1.2 - @icedesign/system-notice-list-block@0.1.1 - @icedesign/tab-article-block@0.1.1 - @icedesign/tab-dialog-block@0.1.1 - @icedesign/tag-message-list-block@0.1.1 - @icedesign/team-display-block@0.1.1 - @icedesign/terms-info-block@0.1.1 - @icedesign/testimonial-block@0.1.1 - @icedesign/testimonial-card-block@0.1.1 - @icedesign/text-card-block@0.1.1 - @icedesign/text-search-list-block@0.1.1 - @icedesign/time-filter-table-block@0.1.1 - @icedesign/topic-card-block-block@0.1.1 - @icedesign/tree-card-list-block@0.1.2 - @icedesign/aside-layout@0.1.5 - @icedesign/basic-layout@0.1.5 - @icedesign/landing-layout@0.1.5 - @icedesign/scalable-aside-layout@0.1.5 --- blocks/ApplicationProgress/package.json | 8 ++++---- blocks/ArticleList/package.json | 8 ++++---- blocks/BasicDetailInfo/package.json | 8 ++++---- blocks/BasicException/package.json | 12 ++++++------ blocks/BasicNotFound/package.json | 2 +- blocks/BasicTab/package.json | 10 +++++----- blocks/BrandDisplay/package.json | 10 +++++----- blocks/BrandShowCase/package.json | 10 +++++----- blocks/ChartArea/package.json | 12 ++++++------ blocks/ChartBar/package.json | 12 ++++++------ blocks/ChartBox/package.json | 12 ++++++------ blocks/ChartBubbleImage/package.json | 12 ++++++------ blocks/ChartFacet/package.json | 12 ++++++------ blocks/ChartFunnel/package.json | 12 ++++++------ blocks/ChartGauge/package.json | 12 ++++++------ blocks/ChartHeatMap/package.json | 12 ++++++------ blocks/ChartPie/package.json | 12 ++++++------ blocks/ChartPoint/package.json | 12 ++++++------ blocks/ChartRadar/package.json | 12 ++++++------ blocks/ChartRelation/package.json | 12 ++++++------ blocks/ChartStock/package.json | 12 ++++++------ blocks/ChartTypeLine/package.json | 12 ++++++------ blocks/CollapseCard/package.json | 12 ++++++------ blocks/ComplexDialog/package.json | 10 +++++----- blocks/ComplexFilter/package.json | 10 +++++----- blocks/ComplexProgressTable/package.json | 10 +++++----- blocks/ComplexTabTable/package.json | 6 +++--- blocks/CompositeFilter/package.json | 10 +++++----- blocks/ConfirmDialog/package.json | 10 +++++----- blocks/DataDisplay/package.json | 10 +++++----- blocks/DetailTable/package.json | 10 +++++----- blocks/DisplayCard/package.json | 10 +++++----- blocks/DownloadCard/package.json | 12 ++++++------ blocks/EditableTable/package.json | 10 +++++----- blocks/EmptyContent/package.json | 10 +++++----- blocks/EnhanceTable/package.json | 10 +++++----- blocks/EntryCard/package.json | 2 +- blocks/FailureDetail/package.json | 10 +++++----- blocks/FeatureDisplay/package.json | 10 +++++----- blocks/FeedList/package.json | 10 +++++----- blocks/FilterList/package.json | 10 +++++----- blocks/FilterTable/package.json | 10 +++++----- blocks/FilterWithSearch/package.json | 10 +++++----- blocks/Footer/package.json | 10 +++++----- blocks/FooterInfo/package.json | 10 +++++----- blocks/ForgetPasswordForm/package.json | 10 +++++----- blocks/InfoDisplayTab/package.json | 12 ++++++------ blocks/InfoDisplayTable/package.json | 10 +++++----- blocks/JoinUs/package.json | 10 +++++----- blocks/LandingIntroBanner/package.json | 10 +++++----- blocks/LeftContentDisplay/package.json | 10 +++++----- blocks/LiteTable/package.json | 10 +++++----- blocks/MessageList/package.json | 10 +++++----- blocks/MonacoEditor/package.json | 2 +- blocks/NotPermission/package.json | 10 +++++----- blocks/OperationTable/package.json | 10 +++++----- blocks/OrderList/package.json | 12 ++++++------ blocks/OurTeam/package.json | 10 +++++----- blocks/PictureTextList/package.json | 2 +- blocks/PieDoughnutChart/package.json | 6 +++--- blocks/PriceCard/package.json | 10 +++++----- blocks/PriceInfo/package.json | 10 +++++----- blocks/PrivateMessageForm/package.json | 10 +++++----- blocks/ProductInfo/package.json | 10 +++++----- blocks/ProgressTable/package.json | 10 +++++----- blocks/RegisterForm/package.json | 6 +++--- blocks/RightContentDisplay/package.json | 10 +++++----- blocks/SelectableTable/package.json | 10 +++++----- blocks/SignupForm/package.json | 10 +++++----- blocks/SimpleFluencyForm/package.json | 10 +++++----- blocks/SimpleFormDialog/package.json | 10 +++++----- blocks/SimpleTable/package.json | 6 +++--- blocks/SimpleTestimonial/package.json | 10 +++++----- blocks/SortCardList/package.json | 10 +++++----- blocks/StatisticalCard/package.json | 10 +++++----- blocks/Subscribe/package.json | 10 +++++----- blocks/SuccessDetail/package.json | 10 +++++----- blocks/SuccessDialog/package.json | 10 +++++----- blocks/SystemNoticeList/package.json | 10 +++++----- blocks/TabArticle/package.json | 10 +++++----- blocks/TabDialog/package.json | 10 +++++----- blocks/TagMessageList/package.json | 10 +++++----- blocks/TeamDisplay/package.json | 10 +++++----- blocks/TermsInfo/package.json | 10 +++++----- blocks/Testimonial/package.json | 10 +++++----- blocks/TestimonialCard/package.json | 12 ++++++------ blocks/TextCard/package.json | 10 +++++----- blocks/TextSearchList/package.json | 10 +++++----- blocks/TimeFilterTable/package.json | 10 +++++----- blocks/TopicCard/package.json | 6 +++--- blocks/TreeCardList/package.json | 2 +- layouts/AsideLayout/package.json | 2 +- layouts/BasicLayout/package.json | 2 +- layouts/LandingLayout/package.json | 2 +- layouts/ScalableAsideLayout/package.json | 2 +- 95 files changed, 446 insertions(+), 446 deletions(-) diff --git a/blocks/ApplicationProgress/package.json b/blocks/ApplicationProgress/package.json index 33278095a3..f79bda43eb 100644 --- a/blocks/ApplicationProgress/package.json +++ b/blocks/ApplicationProgress/package.json @@ -22,14 +22,14 @@ "ice-block" ], "dependencies": { - "prop-types": "^15.5.8", "@icedesign/base": "^0.1.0", - "@icedesign/card": "^0.1.0" + "@icedesign/card": "^0.1.0", + "prop-types": "^15.5.8" }, "devDependencies": { - "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "@icedesign/skin": "^0.1.2" + "@icedesign/skin": "^0.1.2", + "eslint-plugin-react": "^7.5.1" }, "blockConfig": { "name": "application-progress", diff --git a/blocks/ArticleList/package.json b/blocks/ArticleList/package.json index 65593a5017..ab7b3e2e98 100644 --- a/blocks/ArticleList/package.json +++ b/blocks/ArticleList/package.json @@ -24,14 +24,14 @@ ], "dependencies": { "@alife/dpl-ice-design": "^1.0.1", - "prop-types": "^15.5.8", "@icedesign/base": "^0.1.0", - "@icedesign/card": "^0.1.0" + "@icedesign/card": "^0.1.0", + "prop-types": "^15.5.8" }, "devDependencies": { - "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "@icedesign/skin": "^0.1.2" + "@icedesign/skin": "^0.1.2", + "eslint-plugin-react": "^7.5.1" }, "blockConfig": { "name": "article-list", diff --git a/blocks/BasicDetailInfo/package.json b/blocks/BasicDetailInfo/package.json index dbb75663c0..240d5e3860 100644 --- a/blocks/BasicDetailInfo/package.json +++ b/blocks/BasicDetailInfo/package.json @@ -22,14 +22,14 @@ "ice-block" ], "dependencies": { - "prop-types": "^15.5.8", "@icedesign/base": "^0.1.0", - "@icedesign/card": "^0.1.0" + "@icedesign/card": "^0.1.0", + "prop-types": "^15.5.8" }, "devDependencies": { - "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "@icedesign/skin": "^0.1.2" + "@icedesign/skin": "^0.1.2", + "eslint-plugin-react": "^7.5.1" }, "blockConfig": { "name": "basic-detail-info", diff --git a/blocks/BasicException/package.json b/blocks/BasicException/package.json index d1aedc62ab..cf083689b7 100644 --- a/blocks/BasicException/package.json +++ b/blocks/BasicException/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/basic-exception-block", - "version": "0.1.0", + "version": "0.1.1", "description": "", "main": "lib/index.js", "files": [ @@ -23,15 +23,15 @@ "ice-block" ], "dependencies": { - "prop-types": "^15.5.8", - "react-router": "^3.2.0", "@icedesign/base": "^0.1.0", - "@icedesign/card": "^0.1.0" + "@icedesign/card": "^0.1.0", + "prop-types": "^15.5.8", + "react-router": "^3.2.0" }, "devDependencies": { - "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "@icedesign/skin": "^0.1.2" + "@icedesign/skin": "^0.1.2", + "eslint-plugin-react": "^7.5.1" }, "blockConfig": { "name": "basic-exception", diff --git a/blocks/BasicNotFound/package.json b/blocks/BasicNotFound/package.json index 924fbd0230..9f5b593a62 100644 --- a/blocks/BasicNotFound/package.json +++ b/blocks/BasicNotFound/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/basic-not-found-block", - "version": "0.1.0", + "version": "0.1.1", "description": "", "main": "lib/index.js", "files": [ diff --git a/blocks/BasicTab/package.json b/blocks/BasicTab/package.json index d2e90c188a..597e2832a4 100644 --- a/blocks/BasicTab/package.json +++ b/blocks/BasicTab/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/basic-tab-block", - "version": "0.1.0", + "version": "0.1.1", "description": "", "main": "lib/index.js", "files": [ @@ -23,14 +23,14 @@ "ice-block" ], "dependencies": { - "prop-types": "^15.5.8", "@icedesign/base": "^0.1.0", - "@icedesign/card": "^0.1.0" + "@icedesign/card": "^0.1.0", + "prop-types": "^15.5.8" }, "devDependencies": { - "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "@icedesign/skin": "^0.1.3" + "@icedesign/skin": "^0.1.3", + "eslint-plugin-react": "^7.5.1" }, "blockConfig": { "name": "basic-tab", diff --git a/blocks/BrandDisplay/package.json b/blocks/BrandDisplay/package.json index 0403bdcf21..39ac81035f 100644 --- a/blocks/BrandDisplay/package.json +++ b/blocks/BrandDisplay/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/brand-display-block", - "version": "0.1.0", + "version": "0.1.1", "description": "", "main": "lib/index.js", "files": [ @@ -23,14 +23,14 @@ "ice-block" ], "dependencies": { - "prop-types": "^15.5.8", "@icedesign/base": "^0.1.0", - "@icedesign/img": "^0.1.0" + "@icedesign/img": "^0.1.0", + "prop-types": "^15.5.8" }, "devDependencies": { - "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "@icedesign/skin": "^0.1.2" + "@icedesign/skin": "^0.1.2", + "eslint-plugin-react": "^7.5.1" }, "blockConfig": { "name": "brand-display", diff --git a/blocks/BrandShowCase/package.json b/blocks/BrandShowCase/package.json index f522da2de5..5547949d50 100644 --- a/blocks/BrandShowCase/package.json +++ b/blocks/BrandShowCase/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/brand-show-case-block", - "version": "0.1.0", + "version": "0.1.1", "description": "", "files": [ "src/", @@ -23,16 +23,16 @@ ], "dependencies": { "@icedesign/base": "^0.1.0", - "prop-types": "^15.5.8", - "@icedesign/card": "^0.1.0" + "@icedesign/card": "^0.1.0", + "prop-types": "^15.5.8" }, "devDependencies": { + "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.2", "eslint-plugin-react": "^7.5.1", "react": "15.x", "react-copy-to-clipboard": "^4.2.3", - "react-dom": "15.x", - "@icedesign/demo-layout": "^0.1.0" + "react-dom": "15.x" }, "blockConfig": { "name": "brand-show-case", diff --git a/blocks/ChartArea/package.json b/blocks/ChartArea/package.json index b909504bea..08399e46d4 100644 --- a/blocks/ChartArea/package.json +++ b/blocks/ChartArea/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/chart-area-block", - "version": "0.1.0", + "version": "0.1.1", "description": "", "files": [ "src/", @@ -23,15 +23,15 @@ ], "dependencies": { "@antv/data-set": "^0.8.0", - "bizcharts": "^3.0.5", - "prop-types": "^15.5.8", "@icedesign/base": "^0.1.0", - "@icedesign/card": "^0.1.0" + "@icedesign/card": "^0.1.0", + "bizcharts": "^3.0.5", + "prop-types": "^15.5.8" }, "devDependencies": { - "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "@icedesign/skin": "^0.1.2" + "@icedesign/skin": "^0.1.2", + "eslint-plugin-react": "^7.5.1" }, "blockConfig": { "name": "chart-area", diff --git a/blocks/ChartBar/package.json b/blocks/ChartBar/package.json index 557c82adfc..068930a2a3 100644 --- a/blocks/ChartBar/package.json +++ b/blocks/ChartBar/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/chart-bar-block", - "version": "0.1.0", + "version": "0.1.1", "description": "", "files": [ "src/", @@ -23,15 +23,15 @@ ], "dependencies": { "@antv/data-set": "^0.8.0", - "bizcharts": "^3.0.5", - "prop-types": "^15.5.8", "@icedesign/base": "^0.1.0", - "@icedesign/card": "^0.1.0" + "@icedesign/card": "^0.1.0", + "bizcharts": "^3.0.5", + "prop-types": "^15.5.8" }, "devDependencies": { - "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "@icedesign/skin": "^0.1.2" + "@icedesign/skin": "^0.1.2", + "eslint-plugin-react": "^7.5.1" }, "blockConfig": { "name": "chart-bar", diff --git a/blocks/ChartBox/package.json b/blocks/ChartBox/package.json index 7c3e6fb9f3..1dbc5bc88f 100644 --- a/blocks/ChartBox/package.json +++ b/blocks/ChartBox/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/chart-box-block", - "version": "0.1.0", + "version": "0.1.1", "description": "", "files": [ "src/", @@ -23,15 +23,15 @@ ], "dependencies": { "@antv/data-set": "^0.8.0", - "bizcharts": "^3.0.5", - "prop-types": "^15.5.8", "@icedesign/base": "^0.1.0", - "@icedesign/card": "^0.1.0" + "@icedesign/card": "^0.1.0", + "bizcharts": "^3.0.5", + "prop-types": "^15.5.8" }, "devDependencies": { - "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "@icedesign/skin": "^0.1.2" + "@icedesign/skin": "^0.1.2", + "eslint-plugin-react": "^7.5.1" }, "blockConfig": { "name": "chart-box", diff --git a/blocks/ChartBubbleImage/package.json b/blocks/ChartBubbleImage/package.json index 1f3af9f36d..34616d85df 100644 --- a/blocks/ChartBubbleImage/package.json +++ b/blocks/ChartBubbleImage/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/chart-bubble-image-block", - "version": "0.1.0", + "version": "0.1.1", "description": "", "files": [ "src/", @@ -23,15 +23,15 @@ ], "dependencies": { "@antv/data-set": "^0.8.0", - "bizcharts": "^3.0.5", - "prop-types": "^15.5.8", "@icedesign/base": "^0.1.0", - "@icedesign/card": "^0.1.0" + "@icedesign/card": "^0.1.0", + "bizcharts": "^3.0.5", + "prop-types": "^15.5.8" }, "devDependencies": { - "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "@icedesign/skin": "^0.1.2" + "@icedesign/skin": "^0.1.2", + "eslint-plugin-react": "^7.5.1" }, "blockConfig": { "name": "chart-bubble-image", diff --git a/blocks/ChartFacet/package.json b/blocks/ChartFacet/package.json index 1d9f12c689..9f5d47638d 100644 --- a/blocks/ChartFacet/package.json +++ b/blocks/ChartFacet/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/chart-facet-block", - "version": "0.1.0", + "version": "0.1.1", "description": "", "files": [ "src/", @@ -23,15 +23,15 @@ ], "dependencies": { "@antv/data-set": "^0.8.0", - "bizcharts": "^3.0.5", - "prop-types": "^15.5.8", "@icedesign/base": "^0.1.0", - "@icedesign/card": "^0.1.0" + "@icedesign/card": "^0.1.0", + "bizcharts": "^3.0.5", + "prop-types": "^15.5.8" }, "devDependencies": { - "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "@icedesign/skin": "^0.1.2" + "@icedesign/skin": "^0.1.2", + "eslint-plugin-react": "^7.5.1" }, "blockConfig": { "name": "chart-facet", diff --git a/blocks/ChartFunnel/package.json b/blocks/ChartFunnel/package.json index 0a02fcfbd1..b3afcaa08d 100644 --- a/blocks/ChartFunnel/package.json +++ b/blocks/ChartFunnel/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/chart-funnel-block", - "version": "0.1.0", + "version": "0.1.1", "description": "", "files": [ "src/", @@ -23,15 +23,15 @@ ], "dependencies": { "@antv/data-set": "^0.8.0", - "bizcharts": "^3.0.5", - "prop-types": "^15.5.8", "@icedesign/base": "^0.1.0", - "@icedesign/card": "^0.1.0" + "@icedesign/card": "^0.1.0", + "bizcharts": "^3.0.5", + "prop-types": "^15.5.8" }, "devDependencies": { - "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "@icedesign/skin": "^0.1.2" + "@icedesign/skin": "^0.1.2", + "eslint-plugin-react": "^7.5.1" }, "blockConfig": { "name": "chart-funnel", diff --git a/blocks/ChartGauge/package.json b/blocks/ChartGauge/package.json index 21062c22dd..67aece1f9e 100644 --- a/blocks/ChartGauge/package.json +++ b/blocks/ChartGauge/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/chart-gauge-block", - "version": "0.1.0", + "version": "0.1.1", "description": "", "files": [ "src/", @@ -23,15 +23,15 @@ ], "dependencies": { "@antv/data-set": "^0.8.0", - "bizcharts": "^3.0.5", - "prop-types": "^15.5.8", "@icedesign/base": "^0.1.0", - "@icedesign/card": "^0.1.0" + "@icedesign/card": "^0.1.0", + "bizcharts": "^3.0.5", + "prop-types": "^15.5.8" }, "devDependencies": { - "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "@icedesign/skin": "^0.1.2" + "@icedesign/skin": "^0.1.2", + "eslint-plugin-react": "^7.5.1" }, "blockConfig": { "name": "chart-gauge", diff --git a/blocks/ChartHeatMap/package.json b/blocks/ChartHeatMap/package.json index 08d9f5484e..855d152b09 100644 --- a/blocks/ChartHeatMap/package.json +++ b/blocks/ChartHeatMap/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/chart-heat-map-block", - "version": "0.1.0", + "version": "0.1.1", "description": "", "files": [ "src/", @@ -23,15 +23,15 @@ ], "dependencies": { "@antv/data-set": "^0.8.0", - "bizcharts": "^3.0.5", - "prop-types": "^15.5.8", "@icedesign/base": "^0.1.0", - "@icedesign/card": "^0.1.0" + "@icedesign/card": "^0.1.0", + "bizcharts": "^3.0.5", + "prop-types": "^15.5.8" }, "devDependencies": { - "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "@icedesign/skin": "^0.1.2" + "@icedesign/skin": "^0.1.2", + "eslint-plugin-react": "^7.5.1" }, "blockConfig": { "name": "chart-heat-map", diff --git a/blocks/ChartPie/package.json b/blocks/ChartPie/package.json index dab3f6214d..16be7fd71d 100644 --- a/blocks/ChartPie/package.json +++ b/blocks/ChartPie/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/chart-pie-block", - "version": "0.1.0", + "version": "0.1.1", "description": "", "files": [ "src/", @@ -23,15 +23,15 @@ ], "dependencies": { "@antv/data-set": "^0.8.0", - "bizcharts": "^3.0.5", - "prop-types": "^15.5.8", "@icedesign/base": "^0.1.0", - "@icedesign/card": "^0.1.0" + "@icedesign/card": "^0.1.0", + "bizcharts": "^3.0.5", + "prop-types": "^15.5.8" }, "devDependencies": { - "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "@icedesign/skin": "^0.1.2" + "@icedesign/skin": "^0.1.2", + "eslint-plugin-react": "^7.5.1" }, "blockConfig": { "name": "chart-pie", diff --git a/blocks/ChartPoint/package.json b/blocks/ChartPoint/package.json index 339f8c6f6d..941358c36d 100644 --- a/blocks/ChartPoint/package.json +++ b/blocks/ChartPoint/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/chart-point-block", - "version": "0.1.0", + "version": "0.1.1", "description": "", "files": [ "src/", @@ -23,16 +23,16 @@ ], "dependencies": { "@antv/data-set": "^0.8.0", + "@icedesign/base": "^0.1.0", + "@icedesign/card": "^0.1.0", "axios": "^0.17.1", "bizcharts": "^3.0.5", - "prop-types": "^15.5.8", - "@icedesign/base": "^0.1.0", - "@icedesign/card": "^0.1.0" + "prop-types": "^15.5.8" }, "devDependencies": { - "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "@icedesign/skin": "^0.1.2" + "@icedesign/skin": "^0.1.2", + "eslint-plugin-react": "^7.5.1" }, "blockConfig": { "name": "chart-point", diff --git a/blocks/ChartRadar/package.json b/blocks/ChartRadar/package.json index 867c30fc8b..73f4bce25b 100644 --- a/blocks/ChartRadar/package.json +++ b/blocks/ChartRadar/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/chart-radar-block", - "version": "0.1.0", + "version": "0.1.1", "description": "", "files": [ "src/", @@ -23,15 +23,15 @@ ], "dependencies": { "@antv/data-set": "^0.8.0", - "bizcharts": "^3.0.5", - "prop-types": "^15.5.8", "@icedesign/base": "^0.1.0", - "@icedesign/card": "^0.1.0" + "@icedesign/card": "^0.1.0", + "bizcharts": "^3.0.5", + "prop-types": "^15.5.8" }, "devDependencies": { - "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "@icedesign/skin": "^0.1.2" + "@icedesign/skin": "^0.1.2", + "eslint-plugin-react": "^7.5.1" }, "blockConfig": { "name": "chart-radar", diff --git a/blocks/ChartRelation/package.json b/blocks/ChartRelation/package.json index a50916bfa2..a8550d13f1 100644 --- a/blocks/ChartRelation/package.json +++ b/blocks/ChartRelation/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/chart-relation-block", - "version": "0.1.0", + "version": "0.1.1", "description": "", "files": [ "src/", @@ -23,15 +23,15 @@ ], "dependencies": { "@antv/data-set": "^0.8.0", - "bizcharts": "^3.0.5", - "prop-types": "^15.5.8", "@icedesign/base": "^0.1.0", - "@icedesign/card": "^0.1.0" + "@icedesign/card": "^0.1.0", + "bizcharts": "^3.0.5", + "prop-types": "^15.5.8" }, "devDependencies": { - "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "@icedesign/skin": "^0.1.2" + "@icedesign/skin": "^0.1.2", + "eslint-plugin-react": "^7.5.1" }, "blockConfig": { "name": "chart-relation", diff --git a/blocks/ChartStock/package.json b/blocks/ChartStock/package.json index 434ede55ee..af0feb96ab 100644 --- a/blocks/ChartStock/package.json +++ b/blocks/ChartStock/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/chart-stock-block", - "version": "0.1.0", + "version": "0.1.1", "description": "", "files": [ "src/", @@ -23,16 +23,16 @@ ], "dependencies": { "@antv/data-set": "^0.8.0", + "@icedesign/base": "^0.1.0", + "@icedesign/card": "^0.1.0", "axios": "^0.17.1", "bizcharts": "^3.0.5", - "prop-types": "^15.5.8", - "@icedesign/base": "^0.1.0", - "@icedesign/card": "^0.1.0" + "prop-types": "^15.5.8" }, "devDependencies": { - "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "@icedesign/skin": "^0.1.2" + "@icedesign/skin": "^0.1.2", + "eslint-plugin-react": "^7.5.1" }, "blockConfig": { "name": "chart-stock", diff --git a/blocks/ChartTypeLine/package.json b/blocks/ChartTypeLine/package.json index 4e5c115761..45847ec81c 100644 --- a/blocks/ChartTypeLine/package.json +++ b/blocks/ChartTypeLine/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/chart-type-line-block", - "version": "0.1.0", + "version": "0.1.1", "description": "", "files": [ "src/", @@ -23,15 +23,15 @@ ], "dependencies": { "@antv/data-set": "^0.8.0", - "bizcharts": "^3.0.5", - "prop-types": "^15.5.8", "@icedesign/base": "^0.1.0", - "@icedesign/card": "^0.1.0" + "@icedesign/card": "^0.1.0", + "bizcharts": "^3.0.5", + "prop-types": "^15.5.8" }, "devDependencies": { - "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "@icedesign/skin": "^0.1.2" + "@icedesign/skin": "^0.1.2", + "eslint-plugin-react": "^7.5.1" }, "blockConfig": { "name": "chart-type-line", diff --git a/blocks/CollapseCard/package.json b/blocks/CollapseCard/package.json index b934f0d0b7..7817f9df28 100644 --- a/blocks/CollapseCard/package.json +++ b/blocks/CollapseCard/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/collapse-card-block", - "version": "0.1.0", + "version": "0.1.1", "description": "", "files": [ "src/", @@ -22,15 +22,15 @@ "ice-block" ], "dependencies": { - "classnames": "^2.2.5", - "prop-types": "^15.5.8", "@icedesign/base": "^0.1.0", - "@icedesign/card": "^0.1.0" + "@icedesign/card": "^0.1.0", + "classnames": "^2.2.5", + "prop-types": "^15.5.8" }, "devDependencies": { - "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "@icedesign/skin": "^0.1.2" + "@icedesign/skin": "^0.1.2", + "eslint-plugin-react": "^7.5.1" }, "blockConfig": { "name": "collapse-card", diff --git a/blocks/ComplexDialog/package.json b/blocks/ComplexDialog/package.json index 34c4c51f4d..887173fc0f 100644 --- a/blocks/ComplexDialog/package.json +++ b/blocks/ComplexDialog/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/complex-dialog-block", - "version": "0.1.0", + "version": "0.1.1", "description": "复杂信息和自定义底部按钮的弹窗", "files": [ "src/", @@ -22,14 +22,14 @@ "ice-block" ], "dependencies": { - "prop-types": "^15.5.8", "@icedesign/base": "^0.1.0", - "@icedesign/card": "^0.1.0" + "@icedesign/card": "^0.1.0", + "prop-types": "^15.5.8" }, "devDependencies": { - "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "@icedesign/skin": "^0.1.2" + "@icedesign/skin": "^0.1.2", + "eslint-plugin-react": "^7.5.1" }, "blockConfig": { "name": "complex-dialog", diff --git a/blocks/ComplexFilter/package.json b/blocks/ComplexFilter/package.json index 0d0a47c015..f7df148b00 100644 --- a/blocks/ComplexFilter/package.json +++ b/blocks/ComplexFilter/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/complex-filter-block", - "version": "0.1.3", + "version": "0.1.4", "description": "复杂筛选", "files": [ "src/", @@ -22,14 +22,14 @@ "ice-block" ], "dependencies": { - "prop-types": "^15.5.8", "@icedesign/base": "^0.1.0", - "@icedesign/card": "^0.1.0" + "@icedesign/card": "^0.1.0", + "prop-types": "^15.5.8" }, "devDependencies": { - "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "@icedesign/skin": "^0.1.2" + "@icedesign/skin": "^0.1.2", + "eslint-plugin-react": "^7.5.1" }, "blockConfig": { "name": "complex-filter", diff --git a/blocks/ComplexProgressTable/package.json b/blocks/ComplexProgressTable/package.json index 56f36e089f..a4a3b50d95 100644 --- a/blocks/ComplexProgressTable/package.json +++ b/blocks/ComplexProgressTable/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/complex-progress-table-block", - "version": "0.1.0", + "version": "0.1.1", "description": "进度管理表格", "files": [ "src/", @@ -23,20 +23,20 @@ ], "dependencies": { "@icedesign/base": "^0.1.0", - "prop-types": "^15.5.8", "@icedesign/card": "^0.1.0", "@icedesign/data-binder": "^0.1.0", "@icedesign/form-binder": "^0.1.0", - "@icedesign/img": "^0.1.0" + "@icedesign/img": "^0.1.0", + "prop-types": "^15.5.8" }, "devDependencies": { + "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.2", "babel-plugin-transform-decorators-legacy": "^1.3.4", "eslint-plugin-react": "^7.5.1", "react": "15.x", "react-copy-to-clipboard": "^4.2.3", - "react-dom": "15.x", - "@icedesign/demo-layout": "^0.1.0" + "react-dom": "15.x" }, "blockConfig": { "name": "complex-progress-table", diff --git a/blocks/ComplexTabTable/package.json b/blocks/ComplexTabTable/package.json index 2a2d8e5043..46bbb84147 100644 --- a/blocks/ComplexTabTable/package.json +++ b/blocks/ComplexTabTable/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/complex-tab-table-block", - "version": "0.1.0", + "version": "0.1.1", "description": "附带复杂的 Tab 多级筛选项的表格", "files": [ "src/", @@ -31,9 +31,9 @@ "prop-types": "^15.5.8" }, "devDependencies": { - "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "@icedesign/skin": "^0.1.2" + "@icedesign/skin": "^0.1.2", + "eslint-plugin-react": "^7.5.1" }, "blockConfig": { "name": "complex-tab-table", diff --git a/blocks/CompositeFilter/package.json b/blocks/CompositeFilter/package.json index d180f4435b..6bd3d5ab60 100644 --- a/blocks/CompositeFilter/package.json +++ b/blocks/CompositeFilter/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/composite-filter-block", - "version": "0.1.0", + "version": "0.1.1", "description": "", "main": "lib/index.js", "files": [ @@ -23,14 +23,14 @@ "ice-block" ], "dependencies": { - "prop-types": "^15.5.8", "@icedesign/base": "^0.1.0", - "@icedesign/card": "^0.1.0" + "@icedesign/card": "^0.1.0", + "prop-types": "^15.5.8" }, "devDependencies": { - "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "@icedesign/skin": "^0.1.2" + "@icedesign/skin": "^0.1.2", + "eslint-plugin-react": "^7.5.1" }, "blockConfig": { "name": "composite-filter", diff --git a/blocks/ConfirmDialog/package.json b/blocks/ConfirmDialog/package.json index 75ea6552ba..793488c494 100644 --- a/blocks/ConfirmDialog/package.json +++ b/blocks/ConfirmDialog/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/confirm-dialog-block", - "version": "0.1.0", + "version": "0.1.1", "description": "", "main": "lib/index.js", "files": [ @@ -23,13 +23,13 @@ "ice-block" ], "dependencies": { - "prop-types": "^15.5.8", - "@icedesign/base": "^0.1.0" + "@icedesign/base": "^0.1.0", + "prop-types": "^15.5.8" }, "devDependencies": { - "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "@icedesign/skin": "^0.1.2" + "@icedesign/skin": "^0.1.2", + "eslint-plugin-react": "^7.5.1" }, "blockConfig": { "name": "confirm-dialog", diff --git a/blocks/DataDisplay/package.json b/blocks/DataDisplay/package.json index 00da446a46..508ff3f8bc 100644 --- a/blocks/DataDisplay/package.json +++ b/blocks/DataDisplay/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/data-display-block", - "version": "0.1.0", + "version": "0.1.1", "description": "", "files": [ "src/", @@ -23,16 +23,16 @@ ], "dependencies": { "@icedesign/base": "^0.1.0", - "prop-types": "^15.5.8", - "@icedesign/card": "^0.1.0" + "@icedesign/card": "^0.1.0", + "prop-types": "^15.5.8" }, "devDependencies": { + "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.2", "eslint-plugin-react": "^7.5.1", "react": "15.x", "react-copy-to-clipboard": "^4.2.3", - "react-dom": "15.x", - "@icedesign/demo-layout": "^0.1.0" + "react-dom": "15.x" }, "blockConfig": { "name": "data-display", diff --git a/blocks/DetailTable/package.json b/blocks/DetailTable/package.json index 6c545b00d5..2d1f1ca275 100644 --- a/blocks/DetailTable/package.json +++ b/blocks/DetailTable/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/detail-table-block", - "version": "0.1.0", + "version": "0.1.1", "description": "展示详情信息的表格", "files": [ "src/", @@ -23,16 +23,16 @@ ], "dependencies": { "@icedesign/base": "^0.1.0", - "prop-types": "^15.5.8", - "@icedesign/card": "^0.1.0" + "@icedesign/card": "^0.1.0", + "prop-types": "^15.5.8" }, "devDependencies": { + "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.2", "eslint-plugin-react": "^7.5.1", "react": "15.x", "react-copy-to-clipboard": "^4.2.3", - "react-dom": "15.x", - "@icedesign/demo-layout": "^0.1.0" + "react-dom": "15.x" }, "blockConfig": { "name": "detail-table", diff --git a/blocks/DisplayCard/package.json b/blocks/DisplayCard/package.json index e28ce59540..6378a7d475 100644 --- a/blocks/DisplayCard/package.json +++ b/blocks/DisplayCard/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/display-card-block", - "version": "0.1.0", + "version": "0.1.1", "description": "展示型卡片", "files": [ "src/", @@ -22,14 +22,14 @@ "ice-block" ], "dependencies": { - "prop-types": "^15.5.8", "@icedesign/base": "^0.1.0", - "@icedesign/card": "^0.1.0" + "@icedesign/card": "^0.1.0", + "prop-types": "^15.5.8" }, "devDependencies": { - "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "@icedesign/skin": "^0.1.2" + "@icedesign/skin": "^0.1.2", + "eslint-plugin-react": "^7.5.1" }, "blockConfig": { "name": "display-card", diff --git a/blocks/DownloadCard/package.json b/blocks/DownloadCard/package.json index 53126d9535..40755a6a1f 100644 --- a/blocks/DownloadCard/package.json +++ b/blocks/DownloadCard/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/download-card-block", - "version": "0.1.0", + "version": "0.1.1", "description": "", "main": "lib/index.js", "files": [ @@ -23,15 +23,15 @@ "ice-block" ], "dependencies": { - "axios": "^0.17.1", - "prop-types": "^15.5.8", "@icedesign/base": "^0.1.0", - "@icedesign/card": "^0.1.0" + "@icedesign/card": "^0.1.0", + "axios": "^0.17.1", + "prop-types": "^15.5.8" }, "devDependencies": { - "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "@icedesign/skin": "^0.1.2" + "@icedesign/skin": "^0.1.2", + "eslint-plugin-react": "^7.5.1" }, "blockConfig": { "name": "download-card", diff --git a/blocks/EditableTable/package.json b/blocks/EditableTable/package.json index bcda2789d2..243ca82f55 100644 --- a/blocks/EditableTable/package.json +++ b/blocks/EditableTable/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/editable-table-block", - "version": "0.1.0", + "version": "0.1.1", "description": "可编辑内容的表格", "files": [ "src/", @@ -22,14 +22,14 @@ "ice-block" ], "dependencies": { - "prop-types": "^15.5.8", "@icedesign/base": "^0.1.0", - "@icedesign/card": "^0.1.0" + "@icedesign/card": "^0.1.0", + "prop-types": "^15.5.8" }, "devDependencies": { - "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "@icedesign/skin": "^0.1.2" + "@icedesign/skin": "^0.1.2", + "eslint-plugin-react": "^7.5.1" }, "blockConfig": { "name": "editable-table", diff --git a/blocks/EmptyContent/package.json b/blocks/EmptyContent/package.json index 57cce071d6..adaf8e3627 100644 --- a/blocks/EmptyContent/package.json +++ b/blocks/EmptyContent/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/empty-content-block", - "version": "0.1.1", + "version": "0.1.2", "description": "", "files": [ "src/", @@ -23,16 +23,16 @@ ], "dependencies": { "@icedesign/base": "^0.1.0", - "prop-types": "^15.5.8", - "@icedesign/card": "^0.1.0" + "@icedesign/card": "^0.1.0", + "prop-types": "^15.5.8" }, "devDependencies": { + "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.2", "eslint-plugin-react": "^7.5.1", "react": "15.x", "react-copy-to-clipboard": "^4.2.3", - "react-dom": "15.x", - "@icedesign/demo-layout": "^0.1.0" + "react-dom": "15.x" }, "blockConfig": { "name": "empty-content", diff --git a/blocks/EnhanceTable/package.json b/blocks/EnhanceTable/package.json index b0b4ad82ad..05714fbbe1 100644 --- a/blocks/EnhanceTable/package.json +++ b/blocks/EnhanceTable/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/enhance-table-block", - "version": "0.1.0", + "version": "0.1.1", "description": "附带简单表单筛选功能的增强筛选表单", "main": "lib/index.js", "files": [ @@ -23,17 +23,17 @@ "ice-block" ], "dependencies": { - "prop-types": "^15.5.8", "@icedesign/base": "^0.1.0", "@icedesign/card": "^0.1.0", "@icedesign/data-binder": "^0.1.0", "@icedesign/img": "^0.1.0", - "@icedesign/label": "^0.1.0" + "@icedesign/label": "^0.1.0", + "prop-types": "^15.5.8" }, "devDependencies": { - "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "@icedesign/skin": "^0.1.2" + "@icedesign/skin": "^0.1.2", + "eslint-plugin-react": "^7.5.1" }, "blockConfig": { "name": "enhance-table", diff --git a/blocks/EntryCard/package.json b/blocks/EntryCard/package.json index 0b6e138268..68daaf5516 100644 --- a/blocks/EntryCard/package.json +++ b/blocks/EntryCard/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/entry-card-block", - "version": "0.1.0", + "version": "0.1.1", "description": "", "main": "lib/index.js", "files": [ diff --git a/blocks/FailureDetail/package.json b/blocks/FailureDetail/package.json index 4ec91d84ef..07736f124b 100644 --- a/blocks/FailureDetail/package.json +++ b/blocks/FailureDetail/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/failure-detail-block", - "version": "0.1.0", + "version": "0.1.1", "description": "", "files": [ "src/", @@ -22,14 +22,14 @@ "ice-block" ], "dependencies": { - "prop-types": "^15.5.8", "@icedesign/base": "^0.1.0", - "@icedesign/card": "^0.1.0" + "@icedesign/card": "^0.1.0", + "prop-types": "^15.5.8" }, "devDependencies": { - "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "@icedesign/skin": "^0.1.2" + "@icedesign/skin": "^0.1.2", + "eslint-plugin-react": "^7.5.1" }, "blockConfig": { "name": "failure-detail", diff --git a/blocks/FeatureDisplay/package.json b/blocks/FeatureDisplay/package.json index 39aa2a7e3a..b36acdc3fb 100644 --- a/blocks/FeatureDisplay/package.json +++ b/blocks/FeatureDisplay/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/feature-display-block", - "version": "0.1.0", + "version": "0.1.1", "description": "", "files": [ "src/", @@ -22,14 +22,14 @@ "ice-block" ], "dependencies": { - "prop-types": "^15.5.8", "@icedesign/base": "^0.1.0", - "@icedesign/card": "^0.1.0" + "@icedesign/card": "^0.1.0", + "prop-types": "^15.5.8" }, "devDependencies": { - "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "@icedesign/skin": "^0.1.2" + "@icedesign/skin": "^0.1.2", + "eslint-plugin-react": "^7.5.1" }, "blockConfig": { "name": "feature-display", diff --git a/blocks/FeedList/package.json b/blocks/FeedList/package.json index 8693fc6da6..9b41613894 100644 --- a/blocks/FeedList/package.json +++ b/blocks/FeedList/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/feed-list-block", - "version": "0.1.0", + "version": "0.1.1", "description": " Feed 消息列表", "files": [ "src/", @@ -23,16 +23,16 @@ ], "dependencies": { "@icedesign/base": "^0.1.0", - "prop-types": "^15.5.8", - "@icedesign/card": "^0.1.0" + "@icedesign/card": "^0.1.0", + "prop-types": "^15.5.8" }, "devDependencies": { + "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.2", "eslint-plugin-react": "^7.5.1", "react": "15.x", "react-copy-to-clipboard": "^4.2.3", - "react-dom": "15.x", - "@icedesign/demo-layout": "^0.1.0" + "react-dom": "15.x" }, "blockConfig": { "name": "feed-list", diff --git a/blocks/FilterList/package.json b/blocks/FilterList/package.json index b59e9eebd3..0b965a4fce 100644 --- a/blocks/FilterList/package.json +++ b/blocks/FilterList/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/filter-list-block", - "version": "0.1.0", + "version": "0.1.1", "description": "", "main": "lib/index.js", "files": [ @@ -24,14 +24,14 @@ ], "dependencies": { "@alife/dpl-ice-design": "^1.0.1", - "prop-types": "^15.5.8", "@icedesign/base": "^0.1.0", - "@icedesign/card": "^0.1.0" + "@icedesign/card": "^0.1.0", + "prop-types": "^15.5.8" }, "devDependencies": { - "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "@icedesign/skin": "^0.1.2" + "@icedesign/skin": "^0.1.2", + "eslint-plugin-react": "^7.5.1" }, "blockConfig": { "name": "filter-list", diff --git a/blocks/FilterTable/package.json b/blocks/FilterTable/package.json index 8884aba8a3..890930e03a 100644 --- a/blocks/FilterTable/package.json +++ b/blocks/FilterTable/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/filter-table-block", - "version": "0.1.0", + "version": "0.1.1", "description": "附带筛选工具条的表格", "files": [ "src/", @@ -22,18 +22,18 @@ "ice-block" ], "dependencies": { - "prop-types": "^15.5.8", "@icedesign/base": "^0.1.0", "@icedesign/card": "^0.1.0", "@icedesign/data-binder": "^0.1.0", "@icedesign/form-binder": "^0.1.0", "@icedesign/img": "^0.1.0", - "@icedesign/label": "^0.1.0" + "@icedesign/label": "^0.1.0", + "prop-types": "^15.5.8" }, "devDependencies": { - "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "@icedesign/skin": "^0.1.2" + "@icedesign/skin": "^0.1.2", + "eslint-plugin-react": "^7.5.1" }, "blockConfig": { "name": "filter-table", diff --git a/blocks/FilterWithSearch/package.json b/blocks/FilterWithSearch/package.json index 00cd669d12..f2cc54b812 100644 --- a/blocks/FilterWithSearch/package.json +++ b/blocks/FilterWithSearch/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/filter-with-search-block", - "version": "0.1.0", + "version": "0.1.1", "description": " 含搜索筛选", "files": [ "src/", @@ -22,14 +22,14 @@ "ice-block" ], "dependencies": { - "prop-types": "^15.5.8", "@icedesign/base": "^0.1.0", - "@icedesign/card": "^0.1.0" + "@icedesign/card": "^0.1.0", + "prop-types": "^15.5.8" }, "devDependencies": { - "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "@icedesign/skin": "^0.1.2" + "@icedesign/skin": "^0.1.2", + "eslint-plugin-react": "^7.5.1" }, "blockConfig": { "name": "filter-with-search", diff --git a/blocks/Footer/package.json b/blocks/Footer/package.json index c2a9202acd..fadd764416 100644 --- a/blocks/Footer/package.json +++ b/blocks/Footer/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/footer-block", - "version": "0.1.0", + "version": "0.1.1", "description": "", "files": [ "src/", @@ -23,16 +23,16 @@ ], "dependencies": { "@icedesign/base": "^0.1.0", - "prop-types": "^15.5.8", - "@icedesign/card": "^0.1.0" + "@icedesign/card": "^0.1.0", + "prop-types": "^15.5.8" }, "devDependencies": { + "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.2", "eslint-plugin-react": "^7.5.1", "react": "15.x", "react-copy-to-clipboard": "^4.2.3", - "react-dom": "15.x", - "@icedesign/demo-layout": "^0.1.0" + "react-dom": "15.x" }, "blockConfig": { "name": "footer", diff --git a/blocks/FooterInfo/package.json b/blocks/FooterInfo/package.json index 70accc0ab9..88ec674265 100644 --- a/blocks/FooterInfo/package.json +++ b/blocks/FooterInfo/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/footer-info-block", - "version": "0.1.0", + "version": "0.1.1", "description": "", "files": [ "src/", @@ -23,16 +23,16 @@ ], "dependencies": { "@icedesign/base": "^0.1.0", - "prop-types": "^15.5.8", - "@icedesign/card": "^0.1.0" + "@icedesign/card": "^0.1.0", + "prop-types": "^15.5.8" }, "devDependencies": { + "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.2", "eslint-plugin-react": "^7.5.1", "react": "15.x", "react-copy-to-clipboard": "^4.2.3", - "react-dom": "15.x", - "@icedesign/demo-layout": "^0.1.0" + "react-dom": "15.x" }, "blockConfig": { "name": "footer-info", diff --git a/blocks/ForgetPasswordForm/package.json b/blocks/ForgetPasswordForm/package.json index ae6d0508bc..b37d5e68ca 100644 --- a/blocks/ForgetPasswordForm/package.json +++ b/blocks/ForgetPasswordForm/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/forget-password-form-block", - "version": "0.1.1", + "version": "0.1.2", "description": "忘记密码", "files": [ "src/", @@ -23,17 +23,17 @@ ], "dependencies": { "@icedesign/base": "^0.1.0", - "prop-types": "^15.5.8", "@icedesign/card": "^0.1.0", - "@icedesign/form-binder": "^0.1.0" + "@icedesign/form-binder": "^0.1.0", + "prop-types": "^15.5.8" }, "devDependencies": { + "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.2", "eslint-plugin-react": "^7.5.1", "react": "15.x", "react-copy-to-clipboard": "^4.2.3", - "react-dom": "15.x", - "@icedesign/demo-layout": "^0.1.0" + "react-dom": "15.x" }, "blockConfig": { "name": "forget-password-form", diff --git a/blocks/InfoDisplayTab/package.json b/blocks/InfoDisplayTab/package.json index 0dbdcdf154..45df60e56f 100644 --- a/blocks/InfoDisplayTab/package.json +++ b/blocks/InfoDisplayTab/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/info-display-tab-block", - "version": "0.1.0", + "version": "0.1.1", "description": "", "main": "lib/index.js", "files": [ @@ -23,16 +23,16 @@ "ice-block" ], "dependencies": { - "axios": "^0.17.1", - "prop-types": "^15.5.8", "@icedesign/base": "^0.1.0", "@icedesign/card": "^0.1.0", - "@icedesign/ellipsis": "^0.1.0" + "@icedesign/ellipsis": "^0.1.0", + "axios": "^0.17.1", + "prop-types": "^15.5.8" }, "devDependencies": { - "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "@icedesign/skin": "^0.1.2" + "@icedesign/skin": "^0.1.2", + "eslint-plugin-react": "^7.5.1" }, "blockConfig": { "name": "info-display-tab", diff --git a/blocks/InfoDisplayTable/package.json b/blocks/InfoDisplayTable/package.json index 4e26078e3f..98b61ccdd8 100644 --- a/blocks/InfoDisplayTable/package.json +++ b/blocks/InfoDisplayTable/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/info-display-table-block", - "version": "0.1.0", + "version": "0.1.1", "description": "", "main": "lib/index.js", "files": [ @@ -23,14 +23,14 @@ "ice-block" ], "dependencies": { - "prop-types": "^15.5.8", "@icedesign/base": "^0.1.0", - "@icedesign/card": "^0.1.0" + "@icedesign/card": "^0.1.0", + "prop-types": "^15.5.8" }, "devDependencies": { - "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "@icedesign/skin": "^0.1.2" + "@icedesign/skin": "^0.1.2", + "eslint-plugin-react": "^7.5.1" }, "blockConfig": { "name": "info-display-table", diff --git a/blocks/JoinUs/package.json b/blocks/JoinUs/package.json index c813e6ab5d..ae877390a8 100644 --- a/blocks/JoinUs/package.json +++ b/blocks/JoinUs/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/join-us-block-block", - "version": "0.1.0", + "version": "0.1.1", "description": "", "files": [ "src/", @@ -23,17 +23,17 @@ ], "dependencies": { "@icedesign/base": "^0.1.0", - "prop-types": "^15.5.8", "@icedesign/card": "^0.1.0", - "@icedesign/form-binder": "^0.1.0" + "@icedesign/form-binder": "^0.1.0", + "prop-types": "^15.5.8" }, "devDependencies": { + "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.2", "eslint-plugin-react": "^7.5.1", "react": "15.x", "react-copy-to-clipboard": "^4.2.3", - "react-dom": "15.x", - "@icedesign/demo-layout": "^0.1.0" + "react-dom": "15.x" }, "blockConfig": { "name": "join-us", diff --git a/blocks/LandingIntroBanner/package.json b/blocks/LandingIntroBanner/package.json index c0157ddf93..67ab910cd7 100644 --- a/blocks/LandingIntroBanner/package.json +++ b/blocks/LandingIntroBanner/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/landing-intro-banner-block", - "version": "0.1.1", + "version": "0.1.2", "description": "首页介绍 Banner", "main": "lib/index.js", "files": [ @@ -22,14 +22,14 @@ "ice-block" ], "dependencies": { + "@icedesign/base": "^0.1.0", "prop-types": "^15.5.8", - "react-router": "^3.0.5", - "@icedesign/base": "^0.1.0" + "react-router": "^3.0.5" }, "devDependencies": { - "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "@icedesign/skin": "^0.1.3" + "@icedesign/skin": "^0.1.3", + "eslint-plugin-react": "^7.5.1" }, "blockConfig": { "name": "landing-intro-banner", diff --git a/blocks/LeftContentDisplay/package.json b/blocks/LeftContentDisplay/package.json index 94a8ef7c67..bcaff725d2 100644 --- a/blocks/LeftContentDisplay/package.json +++ b/blocks/LeftContentDisplay/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/left-content-display-block", - "version": "0.1.0", + "version": "0.1.1", "description": "", "files": [ "src/", @@ -23,16 +23,16 @@ ], "dependencies": { "@icedesign/base": "^0.1.0", - "prop-types": "^15.5.8", - "@icedesign/card": "^0.1.0" + "@icedesign/card": "^0.1.0", + "prop-types": "^15.5.8" }, "devDependencies": { + "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.2", "eslint-plugin-react": "^7.5.1", "react": "15.x", "react-copy-to-clipboard": "^4.2.3", - "react-dom": "15.x", - "@icedesign/demo-layout": "^0.1.0" + "react-dom": "15.x" }, "blockConfig": { "name": "left-content-display", diff --git a/blocks/LiteTable/package.json b/blocks/LiteTable/package.json index be123d5b81..81f565f033 100644 --- a/blocks/LiteTable/package.json +++ b/blocks/LiteTable/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/lite-table-block", - "version": "0.1.0", + "version": "0.1.1", "description": "简单的附带状态的表格", "files": [ "src/", @@ -23,16 +23,16 @@ ], "dependencies": { "@icedesign/base": "^0.1.0", - "prop-types": "^15.5.8", - "@icedesign/card": "^0.1.0" + "@icedesign/card": "^0.1.0", + "prop-types": "^15.5.8" }, "devDependencies": { + "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.2", "eslint-plugin-react": "^7.5.1", "react": "15.x", "react-copy-to-clipboard": "^4.2.3", - "react-dom": "15.x", - "@icedesign/demo-layout": "^0.1.0" + "react-dom": "15.x" }, "blockConfig": { "name": "lite-table", diff --git a/blocks/MessageList/package.json b/blocks/MessageList/package.json index 09d2f293cb..18fa661757 100644 --- a/blocks/MessageList/package.json +++ b/blocks/MessageList/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/message-list-block", - "version": "0.1.1", + "version": "0.1.2", "description": "消息列表", "files": [ "src/", @@ -22,14 +22,14 @@ "ice-block" ], "dependencies": { - "prop-types": "^15.5.8", "@icedesign/base": "^0.1.0", - "@icedesign/card": "^0.1.0" + "@icedesign/card": "^0.1.0", + "prop-types": "^15.5.8" }, "devDependencies": { - "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "@icedesign/skin": "^0.1.2" + "@icedesign/skin": "^0.1.2", + "eslint-plugin-react": "^7.5.1" }, "blockConfig": { "name": "message-list", diff --git a/blocks/MonacoEditor/package.json b/blocks/MonacoEditor/package.json index e75c18ce3e..a2fc6cf19a 100644 --- a/blocks/MonacoEditor/package.json +++ b/blocks/MonacoEditor/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/monaco-editor-block", - "version": "0.1.0", + "version": "0.1.1", "description": "Monaco 代码编辑器", "files": [ "src/", diff --git a/blocks/NotPermission/package.json b/blocks/NotPermission/package.json index 2787dcb966..ebdd5737d0 100644 --- a/blocks/NotPermission/package.json +++ b/blocks/NotPermission/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/not-permission-block", - "version": "0.1.0", + "version": "0.1.1", "description": "", "files": [ "src/", @@ -23,16 +23,16 @@ ], "dependencies": { "@icedesign/base": "^0.1.0", - "prop-types": "^15.5.8", - "@icedesign/card": "^0.1.0" + "@icedesign/card": "^0.1.0", + "prop-types": "^15.5.8" }, "devDependencies": { + "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.2", "eslint-plugin-react": "^7.5.1", "react": "15.x", "react-copy-to-clipboard": "^4.2.3", - "react-dom": "15.x", - "@icedesign/demo-layout": "^0.1.0" + "react-dom": "15.x" }, "blockConfig": { "name": "not-permission", diff --git a/blocks/OperationTable/package.json b/blocks/OperationTable/package.json index c021e40f20..6bc78333f9 100644 --- a/blocks/OperationTable/package.json +++ b/blocks/OperationTable/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/operation-table-block", - "version": "0.1.0", + "version": "0.1.1", "description": "附带操作按钮的表格", "main": "lib/index.js", "files": [ @@ -23,18 +23,18 @@ "ice-block" ], "dependencies": { - "prop-types": "^15.5.8", "@icedesign/base": "^0.1.0", "@icedesign/card": "^0.1.0", "@icedesign/data-binder": "^0.1.0", "@icedesign/form-binder": "^0.1.0", "@icedesign/img": "^0.1.0", - "@icedesign/label": "^0.1.0" + "@icedesign/label": "^0.1.0", + "prop-types": "^15.5.8" }, "devDependencies": { - "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "@icedesign/skin": "^0.1.2" + "@icedesign/skin": "^0.1.2", + "eslint-plugin-react": "^7.5.1" }, "blockConfig": { "name": "operation-table", diff --git a/blocks/OrderList/package.json b/blocks/OrderList/package.json index 1751a08e9e..8a54ff881c 100644 --- a/blocks/OrderList/package.json +++ b/blocks/OrderList/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/order-list-block", - "version": "0.1.0", + "version": "0.1.1", "description": "", "main": "lib/index.js", "files": [ @@ -23,15 +23,15 @@ "ice-block" ], "dependencies": { - "axios": "^0.17.1", - "prop-types": "^15.5.8", "@icedesign/base": "^0.1.0", - "@icedesign/card": "^0.1.0" + "@icedesign/card": "^0.1.0", + "axios": "^0.17.1", + "prop-types": "^15.5.8" }, "devDependencies": { - "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "@icedesign/skin": "^0.1.2" + "@icedesign/skin": "^0.1.2", + "eslint-plugin-react": "^7.5.1" }, "blockConfig": { "name": "order-list", diff --git a/blocks/OurTeam/package.json b/blocks/OurTeam/package.json index 3a1390756f..d2b119f625 100644 --- a/blocks/OurTeam/package.json +++ b/blocks/OurTeam/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/our-team-block", - "version": "0.1.0", + "version": "0.1.1", "description": "", "files": [ "src/", @@ -22,14 +22,14 @@ "ice-block" ], "dependencies": { - "prop-types": "^15.5.8", "@icedesign/base": "^0.1.0", - "@icedesign/card": "^0.1.0" + "@icedesign/card": "^0.1.0", + "prop-types": "^15.5.8" }, "devDependencies": { - "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "@icedesign/skin": "^0.1.2" + "@icedesign/skin": "^0.1.2", + "eslint-plugin-react": "^7.5.1" }, "blockConfig": { "name": "our-team", diff --git a/blocks/PictureTextList/package.json b/blocks/PictureTextList/package.json index 946bfe9f10..99202b0dbd 100644 --- a/blocks/PictureTextList/package.json +++ b/blocks/PictureTextList/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/picture-text-list-block", - "version": "0.1.0", + "version": "0.1.1", "description": "图文列表", "files": [ "src/", diff --git a/blocks/PieDoughnutChart/package.json b/blocks/PieDoughnutChart/package.json index e85a0b08f7..35ee789e02 100644 --- a/blocks/PieDoughnutChart/package.json +++ b/blocks/PieDoughnutChart/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/pie-doughnut-chart-block", - "version": "0.1.0", + "version": "0.1.1", "description": "", "main": "lib/index.js", "files": [ @@ -30,9 +30,9 @@ "prop-types": "^15.5.8" }, "devDependencies": { - "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "@icedesign/skin": "^0.1.2" + "@icedesign/skin": "^0.1.2", + "eslint-plugin-react": "^7.5.1" }, "blockConfig": { "name": "pie-doughnut-chart", diff --git a/blocks/PriceCard/package.json b/blocks/PriceCard/package.json index 974606fb2b..5eec2bfed2 100644 --- a/blocks/PriceCard/package.json +++ b/blocks/PriceCard/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/price-card-block", - "version": "0.1.0", + "version": "0.1.1", "description": "", "files": [ "src/", @@ -23,16 +23,16 @@ ], "dependencies": { "@icedesign/base": "^0.1.0", - "prop-types": "^15.5.8", - "@icedesign/card": "^0.1.0" + "@icedesign/card": "^0.1.0", + "prop-types": "^15.5.8" }, "devDependencies": { + "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.2", "eslint-plugin-react": "^7.5.1", "react": "15.x", "react-copy-to-clipboard": "^4.2.3", - "react-dom": "15.x", - "@icedesign/demo-layout": "^0.1.0" + "react-dom": "15.x" }, "blockConfig": { "name": "price-card", diff --git a/blocks/PriceInfo/package.json b/blocks/PriceInfo/package.json index efe7ab939a..467e3d78e9 100644 --- a/blocks/PriceInfo/package.json +++ b/blocks/PriceInfo/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/price-info-block", - "version": "0.1.0", + "version": "0.1.1", "description": "", "files": [ "src/", @@ -22,14 +22,14 @@ "ice-block" ], "dependencies": { - "prop-types": "^15.5.8", "@icedesign/base": "^0.1.0", - "@icedesign/card": "^0.1.0" + "@icedesign/card": "^0.1.0", + "prop-types": "^15.5.8" }, "devDependencies": { - "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "@icedesign/skin": "^0.1.2" + "@icedesign/skin": "^0.1.2", + "eslint-plugin-react": "^7.5.1" }, "blockConfig": { "name": "price-info", diff --git a/blocks/PrivateMessageForm/package.json b/blocks/PrivateMessageForm/package.json index a6746442a7..e442af090c 100644 --- a/blocks/PrivateMessageForm/package.json +++ b/blocks/PrivateMessageForm/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/private-message-form-block", - "version": "0.1.1", + "version": "0.1.2", "description": "私有消息表单", "files": [ "src/", @@ -23,16 +23,16 @@ ], "dependencies": { "@icedesign/base": "^0.1.0", - "prop-types": "^15.5.8", - "@icedesign/card": "^0.1.0" + "@icedesign/card": "^0.1.0", + "prop-types": "^15.5.8" }, "devDependencies": { + "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.2", "eslint-plugin-react": "^7.5.1", "react": "15.x", "react-copy-to-clipboard": "^4.2.3", - "react-dom": "15.x", - "@icedesign/demo-layout": "^0.1.0" + "react-dom": "15.x" }, "blockConfig": { "name": "private-message-form", diff --git a/blocks/ProductInfo/package.json b/blocks/ProductInfo/package.json index a3cf9ba051..f9ffac256e 100644 --- a/blocks/ProductInfo/package.json +++ b/blocks/ProductInfo/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/product-info-block", - "version": "0.1.0", + "version": "0.1.1", "description": "", "files": [ "src/", @@ -22,14 +22,14 @@ "ice-block" ], "dependencies": { - "prop-types": "^15.5.8", "@icedesign/base": "^0.1.0", - "@icedesign/card": "^0.1.0" + "@icedesign/card": "^0.1.0", + "prop-types": "^15.5.8" }, "devDependencies": { - "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "@icedesign/skin": "^0.1.2" + "@icedesign/skin": "^0.1.2", + "eslint-plugin-react": "^7.5.1" }, "blockConfig": { "name": "product-info", diff --git a/blocks/ProgressTable/package.json b/blocks/ProgressTable/package.json index 4d09d8ff6b..560efae546 100644 --- a/blocks/ProgressTable/package.json +++ b/blocks/ProgressTable/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/progress-table-block", - "version": "0.1.0", + "version": "0.1.1", "description": "", "main": "lib/index.js", "files": [ @@ -22,14 +22,14 @@ "ice-block" ], "dependencies": { - "prop-types": "^0.1.0", "@icedesign/base": "^0.1.0", - "@icedesign/card": "^0.1.0" + "@icedesign/card": "^0.1.0", + "prop-types": "^0.1.0" }, "devDependencies": { - "eslint-plugin-react": "^7.5.1", + "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.3", - "@icedesign/demo-layout": "^0.1.0" + "eslint-plugin-react": "^7.5.1" }, "blockConfig": { "name": "progress-table", diff --git a/blocks/RegisterForm/package.json b/blocks/RegisterForm/package.json index c77a8eccfb..aff196ac9b 100644 --- a/blocks/RegisterForm/package.json +++ b/blocks/RegisterForm/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/register-form-block", - "version": "0.1.0", + "version": "0.1.1", "description": "", "main": "lib/index.js", "files": [ @@ -23,9 +23,9 @@ "ice-block" ], "dependencies": { - "prop-types": "^15.5.8", "@icedesign/base": "^0.1.0", - "@icedesign/icon": "^0.1.0" + "@icedesign/icon": "^0.1.0", + "prop-types": "^15.5.8" }, "devDependencies": { "@icedesign/demo-layout": "^0.1.2", diff --git a/blocks/RightContentDisplay/package.json b/blocks/RightContentDisplay/package.json index 00fc177cf2..d5ac20fedd 100644 --- a/blocks/RightContentDisplay/package.json +++ b/blocks/RightContentDisplay/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/right-content-display-block", - "version": "0.1.0", + "version": "0.1.1", "description": "", "files": [ "src/", @@ -23,16 +23,16 @@ ], "dependencies": { "@icedesign/base": "^0.1.0", - "prop-types": "^15.5.8", - "@icedesign/card": "^0.1.0" + "@icedesign/card": "^0.1.0", + "prop-types": "^15.5.8" }, "devDependencies": { + "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.2", "eslint-plugin-react": "^7.5.1", "react": "15.x", "react-copy-to-clipboard": "^4.2.3", - "react-dom": "15.x", - "@icedesign/demo-layout": "^0.1.0" + "react-dom": "15.x" }, "blockConfig": { "name": "right-content-display", diff --git a/blocks/SelectableTable/package.json b/blocks/SelectableTable/package.json index 0aa9f17370..08a6c20eb3 100644 --- a/blocks/SelectableTable/package.json +++ b/blocks/SelectableTable/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/selectable-table-block", - "version": "0.1.0", + "version": "0.1.1", "description": "", "main": "lib/index.js", "files": [ @@ -23,14 +23,14 @@ "ice-block" ], "dependencies": { - "prop-types": "^15.5.8", "@icedesign/base": "^0.1.0", - "@icedesign/card": "^0.1.0" + "@icedesign/card": "^0.1.0", + "prop-types": "^15.5.8" }, "devDependencies": { - "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "@icedesign/skin": "^0.1.2" + "@icedesign/skin": "^0.1.2", + "eslint-plugin-react": "^7.5.1" }, "blockConfig": { "name": "selectable-table", diff --git a/blocks/SignupForm/package.json b/blocks/SignupForm/package.json index 465f63a9d5..5f13892e2d 100644 --- a/blocks/SignupForm/package.json +++ b/blocks/SignupForm/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/signup-form-block-block", - "version": "0.1.0", + "version": "0.1.1", "description": "", "main": "lib/index.js", "files": [ @@ -23,14 +23,14 @@ "ice-block" ], "dependencies": { - "prop-types": "^15.5.8", "@icedesign/base": "^0.1.0", - "@icedesign/icon": "^0.1.0" + "@icedesign/icon": "^0.1.0", + "prop-types": "^15.5.8" }, "devDependencies": { - "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "@icedesign/skin": "^0.1.2" + "@icedesign/skin": "^0.1.2", + "eslint-plugin-react": "^7.5.1" }, "blockConfig": { "name": "signup-form", diff --git a/blocks/SimpleFluencyForm/package.json b/blocks/SimpleFluencyForm/package.json index 7ea31cd94d..144c2257c9 100644 --- a/blocks/SimpleFluencyForm/package.json +++ b/blocks/SimpleFluencyForm/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/simple-fluency-form-block", - "version": "0.1.0", + "version": "0.1.1", "description": "SimpleFluencyForm", "files": [ "src/", @@ -23,17 +23,17 @@ ], "dependencies": { "@icedesign/base": "^0.1.0", - "prop-types": "^15.5.8", "@icedesign/card": "^0.1.0", - "@icedesign/form-binder": "^0.1.0" + "@icedesign/form-binder": "^0.1.0", + "prop-types": "^15.5.8" }, "devDependencies": { + "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.2", "eslint-plugin-react": "^7.5.1", "react": "15.x", "react-copy-to-clipboard": "^4.2.3", - "react-dom": "15.x", - "@icedesign/demo-layout": "^0.1.0" + "react-dom": "15.x" }, "blockConfig": { "name": "simple-fluency-form", diff --git a/blocks/SimpleFormDialog/package.json b/blocks/SimpleFormDialog/package.json index 727a1dd240..36efa882f6 100644 --- a/blocks/SimpleFormDialog/package.json +++ b/blocks/SimpleFormDialog/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/simple-form-dialog-block", - "version": "0.1.0", + "version": "0.1.1", "description": "简单的表单弹窗", "files": [ "src/", @@ -23,14 +23,14 @@ ], "dependencies": { "@icedesign/base": "^0.1.0", - "prop-types": "^15.5.8", "@icedesign/card": "^0.1.0", - "@icedesign/form-binder": "^0.1.0" + "@icedesign/form-binder": "^0.1.0", + "prop-types": "^15.5.8" }, "devDependencies": { - "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "@icedesign/skin": "^0.1.2" + "@icedesign/skin": "^0.1.2", + "eslint-plugin-react": "^7.5.1" }, "blockConfig": { "name": "simple-form-dialog", diff --git a/blocks/SimpleTable/package.json b/blocks/SimpleTable/package.json index d67e26b1ce..2666f96dfb 100644 --- a/blocks/SimpleTable/package.json +++ b/blocks/SimpleTable/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/simple-table-block", - "version": "0.1.0", + "version": "0.1.1", "description": "基础的表格", "main": "lib/index.js", "files": [ @@ -31,8 +31,8 @@ }, "devDependencies": { "@icedesign/demo-layout": "latest", - "eslint-plugin-react": "^7.5.1", - "@icedesign/skin": "^0.1.3" + "@icedesign/skin": "^0.1.3", + "eslint-plugin-react": "^7.5.1" }, "blockConfig": { "name": "simple-table", diff --git a/blocks/SimpleTestimonial/package.json b/blocks/SimpleTestimonial/package.json index 95d38a614b..f327e02c27 100644 --- a/blocks/SimpleTestimonial/package.json +++ b/blocks/SimpleTestimonial/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/simple-testimonial-block", - "version": "0.1.0", + "version": "0.1.1", "description": "", "files": [ "src/", @@ -22,14 +22,14 @@ "ice-block" ], "dependencies": { - "prop-types": "^15.5.8", "@icedesign/base": "^0.1.0", - "@icedesign/card": "^0.1.0" + "@icedesign/card": "^0.1.0", + "prop-types": "^15.5.8" }, "devDependencies": { - "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "@icedesign/skin": "^0.1.2" + "@icedesign/skin": "^0.1.2", + "eslint-plugin-react": "^7.5.1" }, "blockConfig": { "name": "simple-testimonial", diff --git a/blocks/SortCardList/package.json b/blocks/SortCardList/package.json index aeff72e493..0452a31d90 100644 --- a/blocks/SortCardList/package.json +++ b/blocks/SortCardList/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/sort-card-list-block", - "version": "0.1.0", + "version": "0.1.1", "description": "拖拽排序卡片列表", "files": [ "src/", @@ -23,16 +23,16 @@ ], "dependencies": { "@icedesign/base": "^0.1.0", - "prop-types": "^15.5.8", - "@icedesign/card": "^0.1.0" + "@icedesign/card": "^0.1.0", + "prop-types": "^15.5.8" }, "devDependencies": { + "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.2", "eslint-plugin-react": "^7.5.1", "react": "15.x", "react-copy-to-clipboard": "^4.2.3", - "react-dom": "15.x", - "@icedesign/demo-layout": "^0.1.0" + "react-dom": "15.x" }, "blockConfig": { "name": "sort-card-list", diff --git a/blocks/StatisticalCard/package.json b/blocks/StatisticalCard/package.json index d78e26d259..519decdada 100644 --- a/blocks/StatisticalCard/package.json +++ b/blocks/StatisticalCard/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/statistical-card-block", - "version": "0.1.0", + "version": "0.1.1", "description": "统计型卡片", "files": [ "src/", @@ -22,14 +22,14 @@ "ice-block" ], "dependencies": { - "prop-types": "^15.5.8", "@icedesign/base": "^0.1.0", - "@icedesign/card": "^0.1.0" + "@icedesign/card": "^0.1.0", + "prop-types": "^15.5.8" }, "devDependencies": { - "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "@icedesign/skin": "^0.1.2" + "@icedesign/skin": "^0.1.2", + "eslint-plugin-react": "^7.5.1" }, "blockConfig": { "name": "statistical-card", diff --git a/blocks/Subscribe/package.json b/blocks/Subscribe/package.json index 01d490f89c..3b045bc60f 100644 --- a/blocks/Subscribe/package.json +++ b/blocks/Subscribe/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/subscribe-block", - "version": "0.1.0", + "version": "0.1.1", "description": "订阅", "files": [ "src/", @@ -23,17 +23,17 @@ ], "dependencies": { "@icedesign/base": "^0.1.0", - "prop-types": "^15.5.8", "@icedesign/card": "^0.1.0", - "@icedesign/form-binder": "^0.1.0" + "@icedesign/form-binder": "^0.1.0", + "prop-types": "^15.5.8" }, "devDependencies": { + "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.2", "eslint-plugin-react": "^7.5.1", "react": "15.x", "react-copy-to-clipboard": "^4.2.3", - "react-dom": "15.x", - "@icedesign/demo-layout": "^0.1.0" + "react-dom": "15.x" }, "blockConfig": { "name": "subscribe", diff --git a/blocks/SuccessDetail/package.json b/blocks/SuccessDetail/package.json index 16ecbfe2e9..d4e3751622 100644 --- a/blocks/SuccessDetail/package.json +++ b/blocks/SuccessDetail/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/success-detail-block", - "version": "0.1.0", + "version": "0.1.1", "description": "", "files": [ "src/", @@ -22,14 +22,14 @@ "ice-block" ], "dependencies": { - "prop-types": "^15.5.8", "@icedesign/base": "^0.1.0", - "@icedesign/card": "^0.1.0" + "@icedesign/card": "^0.1.0", + "prop-types": "^15.5.8" }, "devDependencies": { - "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "@icedesign/skin": "^0.1.2" + "@icedesign/skin": "^0.1.2", + "eslint-plugin-react": "^7.5.1" }, "blockConfig": { "name": "success-detail", diff --git a/blocks/SuccessDialog/package.json b/blocks/SuccessDialog/package.json index 73b2937396..7cb1e8d53c 100644 --- a/blocks/SuccessDialog/package.json +++ b/blocks/SuccessDialog/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/success-dialog-block", - "version": "0.1.1", + "version": "0.1.2", "description": "", "main": "lib/index.js", "files": [ @@ -23,13 +23,13 @@ "ice-block" ], "dependencies": { - "prop-types": "^15.5.8", - "@icedesign/base": "^0.1.0" + "@icedesign/base": "^0.1.0", + "prop-types": "^15.5.8" }, "devDependencies": { - "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "@icedesign/skin": "^0.1.2" + "@icedesign/skin": "^0.1.2", + "eslint-plugin-react": "^7.5.1" }, "blockConfig": { "name": "success-dialog", diff --git a/blocks/SystemNoticeList/package.json b/blocks/SystemNoticeList/package.json index df586d9359..b26cf234b0 100644 --- a/blocks/SystemNoticeList/package.json +++ b/blocks/SystemNoticeList/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/system-notice-list-block", - "version": "0.1.0", + "version": "0.1.1", "description": "", "main": "lib/index.js", "files": [ @@ -23,14 +23,14 @@ "ice-block" ], "dependencies": { - "prop-types": "^15.5.8", "@icedesign/base": "^0.1.0", - "@icedesign/card": "^0.1.0" + "@icedesign/card": "^0.1.0", + "prop-types": "^15.5.8" }, "devDependencies": { - "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "@icedesign/skin": "^0.1.2" + "@icedesign/skin": "^0.1.2", + "eslint-plugin-react": "^7.5.1" }, "blockConfig": { "name": "system-notice-list", diff --git a/blocks/TabArticle/package.json b/blocks/TabArticle/package.json index 8172f43a91..f9b55407c9 100644 --- a/blocks/TabArticle/package.json +++ b/blocks/TabArticle/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/tab-article-block", - "version": "0.1.0", + "version": "0.1.1", "description": "tab和文章列表组合", "files": [ "src/", @@ -22,14 +22,14 @@ "ice-block" ], "dependencies": { - "prop-types": "^15.5.8", "@icedesign/base": "^0.1.0", - "@icedesign/card": "^0.1.0" + "@icedesign/card": "^0.1.0", + "prop-types": "^15.5.8" }, "devDependencies": { - "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "@icedesign/skin": "^0.1.2" + "@icedesign/skin": "^0.1.2", + "eslint-plugin-react": "^7.5.1" }, "blockConfig": { "name": "tab-article", diff --git a/blocks/TabDialog/package.json b/blocks/TabDialog/package.json index 4e2e58660e..1f41154e58 100644 --- a/blocks/TabDialog/package.json +++ b/blocks/TabDialog/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/tab-dialog-block", - "version": "0.1.0", + "version": "0.1.1", "description": "标签内容弹窗", "files": [ "src/", @@ -22,14 +22,14 @@ "ice-block" ], "dependencies": { - "prop-types": "^15.5.8", "@icedesign/base": "^0.1.0", - "@icedesign/card": "^0.1.0" + "@icedesign/card": "^0.1.0", + "prop-types": "^15.5.8" }, "devDependencies": { - "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "@icedesign/skin": "^0.1.2" + "@icedesign/skin": "^0.1.2", + "eslint-plugin-react": "^7.5.1" }, "blockConfig": { "name": "tab-dialog", diff --git a/blocks/TagMessageList/package.json b/blocks/TagMessageList/package.json index e92afba878..2d89bd261b 100644 --- a/blocks/TagMessageList/package.json +++ b/blocks/TagMessageList/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/tag-message-list-block", - "version": "0.1.0", + "version": "0.1.1", "description": "标签消息列表", "files": [ "src/", @@ -23,16 +23,16 @@ ], "dependencies": { "@icedesign/base": "^0.1.0", - "prop-types": "^15.5.8", - "@icedesign/card": "^0.1.0" + "@icedesign/card": "^0.1.0", + "prop-types": "^15.5.8" }, "devDependencies": { + "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.2", "eslint-plugin-react": "^7.5.1", "react": "15.x", "react-copy-to-clipboard": "^4.2.3", - "react-dom": "15.x", - "@icedesign/demo-layout": "^0.1.0" + "react-dom": "15.x" }, "blockConfig": { "name": "tag-message-list", diff --git a/blocks/TeamDisplay/package.json b/blocks/TeamDisplay/package.json index d0081607cd..f64a19d25b 100644 --- a/blocks/TeamDisplay/package.json +++ b/blocks/TeamDisplay/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/team-display-block", - "version": "0.1.0", + "version": "0.1.1", "description": "", "files": [ "src/", @@ -22,14 +22,14 @@ "ice-block" ], "dependencies": { - "prop-types": "^15.5.8", "@icedesign/base": "^0.1.0", - "@icedesign/card": "^0.1.0" + "@icedesign/card": "^0.1.0", + "prop-types": "^15.5.8" }, "devDependencies": { - "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "@icedesign/skin": "^0.1.2" + "@icedesign/skin": "^0.1.2", + "eslint-plugin-react": "^7.5.1" }, "blockConfig": { "name": "team-display", diff --git a/blocks/TermsInfo/package.json b/blocks/TermsInfo/package.json index 55a91ac7d3..db070bc75f 100644 --- a/blocks/TermsInfo/package.json +++ b/blocks/TermsInfo/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/terms-info-block", - "version": "0.1.0", + "version": "0.1.1", "description": "", "main": "lib/index.js", "files": [ @@ -23,14 +23,14 @@ "ice-block" ], "dependencies": { - "prop-types": "^15.5.8", "@icedesign/base": "^0.1.0", - "@icedesign/card": "^0.1.0" + "@icedesign/card": "^0.1.0", + "prop-types": "^15.5.8" }, "devDependencies": { - "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "@icedesign/skin": "^0.1.2" + "@icedesign/skin": "^0.1.2", + "eslint-plugin-react": "^7.5.1" }, "blockConfig": { "name": "terms-info", diff --git a/blocks/Testimonial/package.json b/blocks/Testimonial/package.json index 5a2002d4eb..9e2282f61a 100644 --- a/blocks/Testimonial/package.json +++ b/blocks/Testimonial/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/testimonial-block", - "version": "0.1.0", + "version": "0.1.1", "description": "", "files": [ "src/", @@ -22,14 +22,14 @@ "ice-block" ], "dependencies": { - "prop-types": "^15.5.8", "@icedesign/base": "^0.1.0", - "@icedesign/card": "^0.1.0" + "@icedesign/card": "^0.1.0", + "prop-types": "^15.5.8" }, "devDependencies": { - "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "@icedesign/skin": "^0.1.2" + "@icedesign/skin": "^0.1.2", + "eslint-plugin-react": "^7.5.1" }, "blockConfig": { "name": "testimonial", diff --git a/blocks/TestimonialCard/package.json b/blocks/TestimonialCard/package.json index c0411fc6ef..df27f248d1 100644 --- a/blocks/TestimonialCard/package.json +++ b/blocks/TestimonialCard/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/testimonial-card-block", - "version": "0.1.0", + "version": "0.1.1", "description": "", "files": [ "src/", @@ -22,15 +22,15 @@ "ice-block" ], "dependencies": { - "classnames": "^2.2.5", - "prop-types": "^15.5.8", "@icedesign/base": "^0.1.0", - "@icedesign/card": "^0.1.0" + "@icedesign/card": "^0.1.0", + "classnames": "^2.2.5", + "prop-types": "^15.5.8" }, "devDependencies": { - "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "@icedesign/skin": "^0.1.2" + "@icedesign/skin": "^0.1.2", + "eslint-plugin-react": "^7.5.1" }, "blockConfig": { "name": "testimonial-card", diff --git a/blocks/TextCard/package.json b/blocks/TextCard/package.json index 1dc4ac42c3..153a86fa43 100644 --- a/blocks/TextCard/package.json +++ b/blocks/TextCard/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/text-card-block", - "version": "0.1.0", + "version": "0.1.1", "description": "纯文字展示型卡片", "files": [ "src/", @@ -22,14 +22,14 @@ "ice-block" ], "dependencies": { - "prop-types": "^15.5.8", "@icedesign/base": "^0.1.0", - "@icedesign/card": "^0.1.0" + "@icedesign/card": "^0.1.0", + "prop-types": "^15.5.8" }, "devDependencies": { - "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "@icedesign/skin": "^0.1.2" + "@icedesign/skin": "^0.1.2", + "eslint-plugin-react": "^7.5.1" }, "blockConfig": { "name": "text-card", diff --git a/blocks/TextSearchList/package.json b/blocks/TextSearchList/package.json index bc116f6482..927ce9dab1 100644 --- a/blocks/TextSearchList/package.json +++ b/blocks/TextSearchList/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/text-search-list-block", - "version": "0.1.0", + "version": "0.1.1", "description": "文字搜索列表", "files": [ "src/", @@ -22,14 +22,14 @@ "ice-block" ], "dependencies": { - "prop-types": "^15.5.8", "@icedesign/base": "^0.1.0", - "@icedesign/card": "^0.1.0" + "@icedesign/card": "^0.1.0", + "prop-types": "^15.5.8" }, "devDependencies": { - "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "@icedesign/skin": "^0.1.2" + "@icedesign/skin": "^0.1.2", + "eslint-plugin-react": "^7.5.1" }, "blockConfig": { "name": "text-search-list", diff --git a/blocks/TimeFilterTable/package.json b/blocks/TimeFilterTable/package.json index 803045343b..4301890078 100644 --- a/blocks/TimeFilterTable/package.json +++ b/blocks/TimeFilterTable/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/time-filter-table-block", - "version": "0.1.0", + "version": "0.1.1", "description": "支持时间筛选的表格", "files": [ "src/", @@ -22,16 +22,16 @@ "ice-block" ], "dependencies": { - "prop-types": "^15.5.8", "@icedesign/base": "^0.1.0", "@icedesign/card": "^0.1.0", "@icedesign/data-binder": "^0.1.0", - "@icedesign/label": "^0.1.0" + "@icedesign/label": "^0.1.0", + "prop-types": "^15.5.8" }, "devDependencies": { - "eslint-plugin-react": "^7.5.1", "@icedesign/demo-layout": "^0.1.0", - "@icedesign/skin": "^0.1.4" + "@icedesign/skin": "^0.1.4", + "eslint-plugin-react": "^7.5.1" }, "blockConfig": { "name": "time-filter-table", diff --git a/blocks/TopicCard/package.json b/blocks/TopicCard/package.json index 96f8247631..3335e4b72b 100644 --- a/blocks/TopicCard/package.json +++ b/blocks/TopicCard/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/topic-card-block-block", - "version": "0.1.0", + "version": "0.1.1", "description": "", "main": "lib/index.js", "files": [ @@ -30,8 +30,8 @@ "devDependencies": { "@icedesign/demo-layout": "^0.1.2", "@icedesign/layout": "^0.1.0", - "eslint-plugin-react": "^7.5.1", - "@icedesign/skin": "^0.1.2" + "@icedesign/skin": "^0.1.2", + "eslint-plugin-react": "^7.5.1" }, "blockConfig": { "name": "topic-card", diff --git a/blocks/TreeCardList/package.json b/blocks/TreeCardList/package.json index d54f9990a6..e305dfd0c7 100644 --- a/blocks/TreeCardList/package.json +++ b/blocks/TreeCardList/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/tree-card-list-block", - "version": "0.1.1", + "version": "0.1.2", "description": "树形卡片列表", "files": [ "src/", diff --git a/layouts/AsideLayout/package.json b/layouts/AsideLayout/package.json index 70c23eca2a..d8205a8690 100644 --- a/layouts/AsideLayout/package.json +++ b/layouts/AsideLayout/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/aside-layout", - "version": "0.1.4", + "version": "0.1.5", "description": "basic layout", "files": [ "src/", diff --git a/layouts/BasicLayout/package.json b/layouts/BasicLayout/package.json index 9e2eadb927..299e0e18eb 100644 --- a/layouts/BasicLayout/package.json +++ b/layouts/BasicLayout/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/basic-layout", - "version": "0.1.4", + "version": "0.1.5", "description": "basic layout", "files": [ "src/", diff --git a/layouts/LandingLayout/package.json b/layouts/LandingLayout/package.json index 97984fcc03..7f86f742da 100644 --- a/layouts/LandingLayout/package.json +++ b/layouts/LandingLayout/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/landing-layout", - "version": "0.1.4", + "version": "0.1.5", "description": "landing layout", "files": [ "src/", diff --git a/layouts/ScalableAsideLayout/package.json b/layouts/ScalableAsideLayout/package.json index 25fe8788da..6ef1ee9cc1 100644 --- a/layouts/ScalableAsideLayout/package.json +++ b/layouts/ScalableAsideLayout/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/scalable-aside-layout", - "version": "0.1.4", + "version": "0.1.5", "description": "", "files": [ "lib/", From 3b9da3bcfa7ca75ed38c9e2d7d8ade3a82492cec Mon Sep 17 00:00:00 2001 From: wssgcg1213 Date: Fri, 5 Jan 2018 20:21:52 +0800 Subject: [PATCH 0028/1028] chore: publish blocks --- blocks/SignupForm/package.json | 2 +- blocks/Testimonial/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/blocks/SignupForm/package.json b/blocks/SignupForm/package.json index 5f13892e2d..61d05475d9 100644 --- a/blocks/SignupForm/package.json +++ b/blocks/SignupForm/package.json @@ -1,5 +1,5 @@ { - "name": "@icedesign/signup-form-block-block", + "name": "@icedesign/signup-form-block", "version": "0.1.1", "description": "", "main": "lib/index.js", diff --git a/blocks/Testimonial/package.json b/blocks/Testimonial/package.json index 9e2282f61a..91dd44ae0d 100644 --- a/blocks/Testimonial/package.json +++ b/blocks/Testimonial/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/testimonial-block", - "version": "0.1.1", + "version": "0.1.2", "description": "", "files": [ "src/", From fda8a10866b496f1622a0497ce12f6e6819d9de6 Mon Sep 17 00:00:00 2001 From: wssgcg1213 Date: Sat, 6 Jan 2018 14:47:33 +0800 Subject: [PATCH 0029/1028] chore: remove dpl-ice-design --- blocks/ArticleList/package.json | 1 - 1 file changed, 1 deletion(-) diff --git a/blocks/ArticleList/package.json b/blocks/ArticleList/package.json index ab7b3e2e98..3759f84dcc 100644 --- a/blocks/ArticleList/package.json +++ b/blocks/ArticleList/package.json @@ -23,7 +23,6 @@ "ice-block" ], "dependencies": { - "@alife/dpl-ice-design": "^1.0.1", "@icedesign/base": "^0.1.0", "@icedesign/card": "^0.1.0", "prop-types": "^15.5.8" From eca04d0815537fa9f8fe9ec1e6e248c1ba072f92 Mon Sep 17 00:00:00 2001 From: wssgcg1213 Date: Sat, 6 Jan 2018 14:47:50 +0800 Subject: [PATCH 0030/1028] chore: remove dpl-ice-design --- blocks/FilterList/package.json | 1 - 1 file changed, 1 deletion(-) diff --git a/blocks/FilterList/package.json b/blocks/FilterList/package.json index 0b965a4fce..2f653fa141 100644 --- a/blocks/FilterList/package.json +++ b/blocks/FilterList/package.json @@ -23,7 +23,6 @@ "ice-block" ], "dependencies": { - "@alife/dpl-ice-design": "^1.0.1", "@icedesign/base": "^0.1.0", "@icedesign/card": "^0.1.0", "prop-types": "^15.5.8" From 7fa4cd456e83052f3829cbe7fd755bffcbeaaba3 Mon Sep 17 00:00:00 2001 From: wssgcg1213 Date: Mon, 8 Jan 2018 10:40:29 +0800 Subject: [PATCH 0031/1028] feat: no more hoc for dialog --- blocks/ComplexDialog/demo/index.html | 3 +- blocks/ComplexDialog/demo/index.js | 16 +------ .../mock/{api.json => complex-dialog.json} | 0 blocks/ComplexDialog/src/ComplexDialog.jsx | 6 +-- blocks/ComplexDialog/src/CreateFuncDialog.js | 46 ------------------- blocks/ConfirmDialog/demo/index.html | 3 +- blocks/ConfirmDialog/demo/index.js | 15 ++---- blocks/ConfirmDialog/mock/api.json | 4 -- blocks/ConfirmDialog/mock/confirm-dialog.json | 4 ++ blocks/ConfirmDialog/src/ConfirmDialog.jsx | 6 +-- blocks/ConfirmDialog/src/CreateFuncDialog.js | 46 ------------------- blocks/SimpleFormDialog/demo/index.html | 3 +- blocks/SimpleFormDialog/demo/index.js | 19 ++------ .../SimpleFormDialog/src/CreateFuncDialog.js | 43 ----------------- .../SimpleFormDialog/src/SimpleFormDialog.jsx | 36 ++++----------- blocks/SuccessDialog/demo/index.html | 3 +- blocks/SuccessDialog/demo/index.js | 15 ++---- blocks/SuccessDialog/src/CreateFuncDialog.js | 46 ------------------- blocks/SuccessDialog/src/SuccessDialog.jsx | 23 ++++++++-- blocks/TabDialog/demo/index.html | 3 +- blocks/TabDialog/demo/index.js | 18 ++------ blocks/TabDialog/mock/api.json | 4 -- blocks/TabDialog/mock/tab-dialog.json | 4 ++ blocks/TabDialog/src/CreateFuncDialog.js | 46 ------------------- blocks/TabDialog/src/TabDialog.jsx | 22 +-------- 25 files changed, 59 insertions(+), 375 deletions(-) rename blocks/ComplexDialog/mock/{api.json => complex-dialog.json} (100%) delete mode 100644 blocks/ComplexDialog/src/CreateFuncDialog.js delete mode 100644 blocks/ConfirmDialog/mock/api.json create mode 100644 blocks/ConfirmDialog/mock/confirm-dialog.json delete mode 100644 blocks/ConfirmDialog/src/CreateFuncDialog.js delete mode 100644 blocks/SimpleFormDialog/src/CreateFuncDialog.js delete mode 100644 blocks/SuccessDialog/src/CreateFuncDialog.js delete mode 100644 blocks/TabDialog/mock/api.json create mode 100644 blocks/TabDialog/mock/tab-dialog.json delete mode 100644 blocks/TabDialog/src/CreateFuncDialog.js diff --git a/blocks/ComplexDialog/demo/index.html b/blocks/ComplexDialog/demo/index.html index 9d2d3a663d..cb0422f8d9 100644 --- a/blocks/ComplexDialog/demo/index.html +++ b/blocks/ComplexDialog/demo/index.html @@ -11,8 +11,7 @@
    - - + diff --git a/blocks/ComplexDialog/demo/index.js b/blocks/ComplexDialog/demo/index.js index 0412958095..cc36650b31 100644 --- a/blocks/ComplexDialog/demo/index.js +++ b/blocks/ComplexDialog/demo/index.js @@ -7,23 +7,9 @@ import '@icedesign/base/lib/_components/@alife/next-core/lib/index.scss'; import DemoLayout from '@icedesign/demo-layout'; import Block from '../src'; -Block.show({ - onClose: () => { - Block.hide(); - }, - onCancel: () => { - Block.hide(); - }, - text: '是否要删除当前文章?' -}); - -const props = { - // ... -}; - render( -
    + , document.querySelector('#mountNode') ); diff --git a/blocks/ComplexDialog/mock/api.json b/blocks/ComplexDialog/mock/complex-dialog.json similarity index 100% rename from blocks/ComplexDialog/mock/api.json rename to blocks/ComplexDialog/mock/complex-dialog.json diff --git a/blocks/ComplexDialog/src/ComplexDialog.jsx b/blocks/ComplexDialog/src/ComplexDialog.jsx index cfddfa9140..21ba3b0893 100644 --- a/blocks/ComplexDialog/src/ComplexDialog.jsx +++ b/blocks/ComplexDialog/src/ComplexDialog.jsx @@ -5,9 +5,7 @@ import PropTypes from 'prop-types'; import { Dialog, Button, Icon } from '@icedesign/base'; import './ComplexDialog.scss'; -import CreateFuncDialog from './CreateFuncDialog'; - -class ComplexDialog extends Component { +export default class ComplexDialog extends Component { static displayName = 'ComplexDialog'; constructor(props) { @@ -89,5 +87,3 @@ const styles = { authItemIcon: { color: '#2ECA9C' }, footer: { marginTop: '10px', marginBottom: '10px', textAlign: 'center' } }; - -export default CreateFuncDialog(ComplexDialog); diff --git a/blocks/ComplexDialog/src/CreateFuncDialog.js b/blocks/ComplexDialog/src/CreateFuncDialog.js deleted file mode 100644 index b009df541d..0000000000 --- a/blocks/ComplexDialog/src/CreateFuncDialog.js +++ /dev/null @@ -1,46 +0,0 @@ -'use strict'; - -import React from 'react'; -import ReactDOM from 'react-dom'; - -// 包装 Dialog 类组件,使其支持 show、hide 这种命令式调用 -const CreateFuncDialog = WrapperElement => { - let instance = null; - let container = null; - - return { - // 创建并打开一个弹窗,并传入初始化的 props - show: props => { - // 如果已经有实例打开了,则不会继续打开 - if (instance) { - return; - } - - container = document.createElement('div'); - document.body.appendChild(container); - instance = ReactDOM.render( - , - container - ); - }, - // 隐藏并销毁弹窗 - hide: () => { - if (instance) { - instance.setState( - { - visible: false - }, - () => { - setTimeout(() => { - ReactDOM.unmountComponentAtNode(container); - instance = null; - container.parentNode.removeChild(container); - }, 1000); - } - ); - } - } - }; -}; - -export default CreateFuncDialog; diff --git a/blocks/ConfirmDialog/demo/index.html b/blocks/ConfirmDialog/demo/index.html index 9d2d3a663d..cb0422f8d9 100644 --- a/blocks/ConfirmDialog/demo/index.html +++ b/blocks/ConfirmDialog/demo/index.html @@ -11,8 +11,7 @@
    - - + diff --git a/blocks/ConfirmDialog/demo/index.js b/blocks/ConfirmDialog/demo/index.js index 04788142cb..4e2aab8cc9 100644 --- a/blocks/ConfirmDialog/demo/index.js +++ b/blocks/ConfirmDialog/demo/index.js @@ -3,23 +3,14 @@ import { render } from 'react-dom'; import DemoLayout from '@icedesign/demo-layout'; import Block from '../src'; -Block.show({ - onClose: () => { - Block.hide(); - }, - onCancel: () => { - Block.hide(); - }, - text: '是否要删除当前文章?' -}); - const props = { - // ... + text: '是否要删除当前文章?', + visible: true, }; render( -
    + , document.querySelector('#mountNode') ); diff --git a/blocks/ConfirmDialog/mock/api.json b/blocks/ConfirmDialog/mock/api.json deleted file mode 100644 index e706430232..0000000000 --- a/blocks/ConfirmDialog/mock/api.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "status": "success", - "data": {} -} diff --git a/blocks/ConfirmDialog/mock/confirm-dialog.json b/blocks/ConfirmDialog/mock/confirm-dialog.json new file mode 100644 index 0000000000..eee2984fbe --- /dev/null +++ b/blocks/ConfirmDialog/mock/confirm-dialog.json @@ -0,0 +1,4 @@ +{ + "status": "SUCCESS", + "data": {} +} diff --git a/blocks/ConfirmDialog/src/ConfirmDialog.jsx b/blocks/ConfirmDialog/src/ConfirmDialog.jsx index e27676c9a2..8a255cbf0c 100644 --- a/blocks/ConfirmDialog/src/ConfirmDialog.jsx +++ b/blocks/ConfirmDialog/src/ConfirmDialog.jsx @@ -4,9 +4,7 @@ import React, { Component } from 'react'; import { Dialog } from '@icedesign/base'; import './ConfirmDialog.scss'; -import CreateFuncDialog from './CreateFuncDialog'; - -class ConfirmDialog extends Component { +export default class ConfirmDialog extends Component { static displayName = 'ConfirmDialog'; constructor(props) { @@ -58,5 +56,3 @@ const styles = { }, text: { fontSize: '16px;' } }; - -export default CreateFuncDialog(ConfirmDialog); diff --git a/blocks/ConfirmDialog/src/CreateFuncDialog.js b/blocks/ConfirmDialog/src/CreateFuncDialog.js deleted file mode 100644 index b009df541d..0000000000 --- a/blocks/ConfirmDialog/src/CreateFuncDialog.js +++ /dev/null @@ -1,46 +0,0 @@ -'use strict'; - -import React from 'react'; -import ReactDOM from 'react-dom'; - -// 包装 Dialog 类组件,使其支持 show、hide 这种命令式调用 -const CreateFuncDialog = WrapperElement => { - let instance = null; - let container = null; - - return { - // 创建并打开一个弹窗,并传入初始化的 props - show: props => { - // 如果已经有实例打开了,则不会继续打开 - if (instance) { - return; - } - - container = document.createElement('div'); - document.body.appendChild(container); - instance = ReactDOM.render( - , - container - ); - }, - // 隐藏并销毁弹窗 - hide: () => { - if (instance) { - instance.setState( - { - visible: false - }, - () => { - setTimeout(() => { - ReactDOM.unmountComponentAtNode(container); - instance = null; - container.parentNode.removeChild(container); - }, 1000); - } - ); - } - } - }; -}; - -export default CreateFuncDialog; diff --git a/blocks/SimpleFormDialog/demo/index.html b/blocks/SimpleFormDialog/demo/index.html index 9d2d3a663d..cb0422f8d9 100644 --- a/blocks/SimpleFormDialog/demo/index.html +++ b/blocks/SimpleFormDialog/demo/index.html @@ -11,8 +11,7 @@
    - - + diff --git a/blocks/SimpleFormDialog/demo/index.js b/blocks/SimpleFormDialog/demo/index.js index 38fa37bd4c..2dff2080ff 100644 --- a/blocks/SimpleFormDialog/demo/index.js +++ b/blocks/SimpleFormDialog/demo/index.js @@ -7,28 +7,19 @@ import '@icedesign/base/lib/_components/@alife/next-core/lib/index.scss'; import DemoLayout from '@icedesign/demo-layout'; import Block from '../src'; -Block.show({ - onClose: () => { - Block.hide(); - }, - onCancel: () => { - Block.hide(); +const props = { + value: { + type: 'video' }, + visible: true, onOk: value => { console.log('value', value); }, - value: { - type: 'video' - } -}); - -const props = { - // ... }; render( -
    + , document.querySelector('#mountNode') ); diff --git a/blocks/SimpleFormDialog/src/CreateFuncDialog.js b/blocks/SimpleFormDialog/src/CreateFuncDialog.js deleted file mode 100644 index b7a2688da5..0000000000 --- a/blocks/SimpleFormDialog/src/CreateFuncDialog.js +++ /dev/null @@ -1,43 +0,0 @@ - - -import React from 'react'; -import ReactDOM from 'react-dom'; - -// 包装 Dialog 类组件,使其支持 show、hide 这种命令式调用 -const CreateFuncDialog = (WrapperElement) => { - let instance = null; - const container = document.createElement('div'); - document.body.appendChild(container); - - return { - // 创建并打开一个弹窗,并传入初始化的 props - show: (props) => { - // 如果已经有实例打开了,则不会继续打开 - if (instance) { - return; - } - instance = ReactDOM.render( - , - container - ); - }, - // 隐藏并销毁弹窗 - hide: () => { - if (instance) { - instance.setState( - { - visible: false, - }, - () => { - setTimeout(() => { - ReactDOM.unmountComponentAtNode(container); - instance = null; - }, 1000); - } - ); - } - }, - }; -}; - -export default CreateFuncDialog; diff --git a/blocks/SimpleFormDialog/src/SimpleFormDialog.jsx b/blocks/SimpleFormDialog/src/SimpleFormDialog.jsx index 00c0bf7b5b..31f5ad42cc 100644 --- a/blocks/SimpleFormDialog/src/SimpleFormDialog.jsx +++ b/blocks/SimpleFormDialog/src/SimpleFormDialog.jsx @@ -1,25 +1,3 @@ - - -// 用法: -// import SimpleFormDialog from '...'; -// -// SimpleFormDialog.show({ -// onClose: () => { -// SimpleFormDialog.hide(); -// }, -// onCancel: () => { -// SimpleFormDialog.hide(); -// }, -// // 点击确认按钮之后,拿到表单数据 -// onOk: value => { -// console.log('value', value); -// }, -// // 回填数据 -// value: { -// type: 'video' -// } -// }); - import React, { Component } from 'react'; import { Dialog, Grid, Input, Radio } from '@icedesign/base'; import { @@ -27,7 +5,6 @@ import { FormBinder as IceFormBinder, FormError as IceFormError, } from '@icedesign/form-binder'; -import CreateFuncDialog from './CreateFuncDialog'; import './SimpleFormDialog.scss'; const { Row, Col } = Grid; @@ -39,7 +16,7 @@ const defaultValue = { content: '', }; -class SimpleFormDialog extends Component { +export default class SimpleFormDialog extends Component { static displayName = 'SimpleFormDialog'; constructor(props) { @@ -164,6 +141,11 @@ class SimpleFormDialog extends Component { } } -const styles = { dialog: { width: '640px' }, dialogContent: {}, formRow: { marginTop: 20 }, input: { width: '100%' }, formLabel: { lineHeight: '26px' }, simpleFormDialog: {} }; - -export default CreateFuncDialog(SimpleFormDialog); +const styles = { + dialog: { width: '640px' }, + dialogContent: {}, + formRow: { marginTop: 20 }, + input: { width: '100%' }, + formLabel: { lineHeight: '26px' }, + simpleFormDialog: {}, +}; diff --git a/blocks/SuccessDialog/demo/index.html b/blocks/SuccessDialog/demo/index.html index 9d2d3a663d..cb0422f8d9 100644 --- a/blocks/SuccessDialog/demo/index.html +++ b/blocks/SuccessDialog/demo/index.html @@ -11,8 +11,7 @@
    - - + diff --git a/blocks/SuccessDialog/demo/index.js b/blocks/SuccessDialog/demo/index.js index 04788142cb..4e2aab8cc9 100644 --- a/blocks/SuccessDialog/demo/index.js +++ b/blocks/SuccessDialog/demo/index.js @@ -3,23 +3,14 @@ import { render } from 'react-dom'; import DemoLayout from '@icedesign/demo-layout'; import Block from '../src'; -Block.show({ - onClose: () => { - Block.hide(); - }, - onCancel: () => { - Block.hide(); - }, - text: '是否要删除当前文章?' -}); - const props = { - // ... + text: '是否要删除当前文章?', + visible: true, }; render( -
    + , document.querySelector('#mountNode') ); diff --git a/blocks/SuccessDialog/src/CreateFuncDialog.js b/blocks/SuccessDialog/src/CreateFuncDialog.js deleted file mode 100644 index b009df541d..0000000000 --- a/blocks/SuccessDialog/src/CreateFuncDialog.js +++ /dev/null @@ -1,46 +0,0 @@ -'use strict'; - -import React from 'react'; -import ReactDOM from 'react-dom'; - -// 包装 Dialog 类组件,使其支持 show、hide 这种命令式调用 -const CreateFuncDialog = WrapperElement => { - let instance = null; - let container = null; - - return { - // 创建并打开一个弹窗,并传入初始化的 props - show: props => { - // 如果已经有实例打开了,则不会继续打开 - if (instance) { - return; - } - - container = document.createElement('div'); - document.body.appendChild(container); - instance = ReactDOM.render( - , - container - ); - }, - // 隐藏并销毁弹窗 - hide: () => { - if (instance) { - instance.setState( - { - visible: false - }, - () => { - setTimeout(() => { - ReactDOM.unmountComponentAtNode(container); - instance = null; - container.parentNode.removeChild(container); - }, 1000); - } - ); - } - } - }; -}; - -export default CreateFuncDialog; diff --git a/blocks/SuccessDialog/src/SuccessDialog.jsx b/blocks/SuccessDialog/src/SuccessDialog.jsx index a4299ff2e9..c555ba790c 100644 --- a/blocks/SuccessDialog/src/SuccessDialog.jsx +++ b/blocks/SuccessDialog/src/SuccessDialog.jsx @@ -5,9 +5,7 @@ import PropTypes from 'prop-types'; import { Dialog } from '@icedesign/base'; import './SuccessDialog.scss'; -import CreateFuncDialog from './CreateFuncDialog'; - -class SuccessDialog extends Component { +export default class SuccessDialog extends Component { static displayName = 'SuccessDialog'; constructor(props) { @@ -41,6 +39,21 @@ class SuccessDialog extends Component { } } -const styles = {"dialog":{"width":"640px"},"dialogContent":{"height":"200px","display":"flex","flexDirection":"column","alignItems":"center"},"icon":{"width":"52px","height":"52px","marginTop":"46px","marginBottom":"10px"},"text":{"fontSize":"16px;"},"successDialog":{}} +const styles = { + dialog: { width: "640px" }, + dialogContent: { + height: "200px", + display: "flex", + flexDirection: "column", + alignItems: "center" + }, + icon: { + width: "52px", + height: "52px", + marginTop: "46px", + marginBottom: "10px" + }, + text: { fontSize: "16px" }, + successDialog: {}, +}; -export default CreateFuncDialog(SuccessDialog); diff --git a/blocks/TabDialog/demo/index.html b/blocks/TabDialog/demo/index.html index 9d2d3a663d..cb0422f8d9 100644 --- a/blocks/TabDialog/demo/index.html +++ b/blocks/TabDialog/demo/index.html @@ -11,8 +11,7 @@
    - - + diff --git a/blocks/TabDialog/demo/index.js b/blocks/TabDialog/demo/index.js index 14a162dccd..87ab38b7f9 100644 --- a/blocks/TabDialog/demo/index.js +++ b/blocks/TabDialog/demo/index.js @@ -7,27 +7,17 @@ import '@icedesign/base/lib/_components/@alife/next-core/lib/index.scss'; import DemoLayout from '@icedesign/demo-layout'; import Block from '../src'; -Block.show({ - onClose: () => { - Block.hide(); - }, - onCancel: () => { - Block.hide(); - }, +const props = { onOk: selectedItems => { console.log('selectedItems', selectedItems); - Block.hide(); }, - selectedItems: ['231'] -}); - -const props = { - // ... + selectedItems: ['231'], + visible: true, }; render( -
    + , document.querySelector('#mountNode') ); diff --git a/blocks/TabDialog/mock/api.json b/blocks/TabDialog/mock/api.json deleted file mode 100644 index e706430232..0000000000 --- a/blocks/TabDialog/mock/api.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "status": "success", - "data": {} -} diff --git a/blocks/TabDialog/mock/tab-dialog.json b/blocks/TabDialog/mock/tab-dialog.json new file mode 100644 index 0000000000..eee2984fbe --- /dev/null +++ b/blocks/TabDialog/mock/tab-dialog.json @@ -0,0 +1,4 @@ +{ + "status": "SUCCESS", + "data": {} +} diff --git a/blocks/TabDialog/src/CreateFuncDialog.js b/blocks/TabDialog/src/CreateFuncDialog.js deleted file mode 100644 index f091d06e3f..0000000000 --- a/blocks/TabDialog/src/CreateFuncDialog.js +++ /dev/null @@ -1,46 +0,0 @@ - - -import React from 'react'; -import ReactDOM from 'react-dom'; - -// 包装 Dialog 类组件,使其支持 show、hide 这种命令式调用 -const CreateFuncDialog = (WrapperElement) => { - let instance = null; - let container = null; - - return { - // 创建并打开一个弹窗,并传入初始化的 props - show: (props) => { - // 如果已经有实例打开了,则不会继续打开 - if (instance) { - return; - } - - container = document.createElement('div'); - document.body.appendChild(container); - instance = ReactDOM.render( - , - container - ); - }, - // 隐藏并销毁弹窗 - hide: () => { - if (instance) { - instance.setState( - { - visible: false, - }, - () => { - setTimeout(() => { - ReactDOM.unmountComponentAtNode(container); - instance = null; - container.parentNode.removeChild(container); - }, 1000); - } - ); - } - }, - }; -}; - -export default CreateFuncDialog; diff --git a/blocks/TabDialog/src/TabDialog.jsx b/blocks/TabDialog/src/TabDialog.jsx index ad545aac85..5a55985305 100644 --- a/blocks/TabDialog/src/TabDialog.jsx +++ b/blocks/TabDialog/src/TabDialog.jsx @@ -2,25 +2,6 @@ import React, { Component } from 'react'; import { Dialog, Tab, Table } from '@icedesign/base'; import './TabDialog.scss'; -import CreateFuncDialog from './CreateFuncDialog'; - -// 使用方法: -// import TabDialog from '...'; -// TabDialog.show({ -// onClose: () => { -// TabDialog.hide(); -// }, -// onCancel: () => { -// TabDialog.hide(); -// }, -// // 点击确定按钮,可以拿到被选中的值 -// onOk: selectedItems => { -// console.log('selectedItems', selectedItems); -// TabDialog.hide(); -// }, -// // 默认传递 selectedItems 可以回填数据 -// selectedItems: ['231'] -// }); const TabPane = Tab.TabPane; @@ -43,7 +24,7 @@ const mockData = [ }, ]; -class TabDialog extends Component { +export default class TabDialog extends Component { static displayName = 'TabDialog'; constructor(props) { @@ -137,4 +118,3 @@ const styles = { }, }; -export default CreateFuncDialog(TabDialog); From adeb2fefe095fc2d4c9d5667df95a62afccbd143 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=85=83=E5=BD=A6?= Date: Mon, 8 Jan 2018 10:52:44 +0800 Subject: [PATCH 0032/1028] docs: add desc --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 6480fd7415..ef6b39ddf6 100644 --- a/README.md +++ b/README.md @@ -1 +1,4 @@ # ICE +> 极速构建中后台应用 + + From 5cbcaa7fb7bf525affb8bc2e4399adf3bff0ddf7 Mon Sep 17 00:00:00 2001 From: wssgcg1213 Date: Mon, 8 Jan 2018 18:15:31 +0800 Subject: [PATCH 0033/1028] chore: pub --- blocks/ComplexDialog/package.json | 2 +- blocks/TabDialog/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/blocks/ComplexDialog/package.json b/blocks/ComplexDialog/package.json index 887173fc0f..3155eef0a8 100644 --- a/blocks/ComplexDialog/package.json +++ b/blocks/ComplexDialog/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/complex-dialog-block", - "version": "0.1.1", + "version": "0.1.2", "description": "复杂信息和自定义底部按钮的弹窗", "files": [ "src/", diff --git a/blocks/TabDialog/package.json b/blocks/TabDialog/package.json index 1f41154e58..97f648bf02 100644 --- a/blocks/TabDialog/package.json +++ b/blocks/TabDialog/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/tab-dialog-block", - "version": "0.1.1", + "version": "0.1.2", "description": "标签内容弹窗", "files": [ "src/", From c1ed15d15d2f25475c54e9596a80793ff7daa94d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=80=9D=E5=BF=A0?= Date: Tue, 9 Jan 2018 00:32:59 +0800 Subject: [PATCH 0034/1028] feat: add UserInfoCard --- blocks/UserInfoCard/README.md | 5 + blocks/UserInfoCard/demo/index.html | 19 ++++ blocks/UserInfoCard/demo/index.js | 19 ++++ blocks/UserInfoCard/mock/api.json | 4 + blocks/UserInfoCard/package.json | 41 ++++++++ blocks/UserInfoCard/src/UserInfoCard.jsx | 114 ++++++++++++++++++++++ blocks/UserInfoCard/src/UserInfoCard.scss | 5 + blocks/UserInfoCard/src/index.js | 3 + 8 files changed, 210 insertions(+) create mode 100644 blocks/UserInfoCard/README.md create mode 100644 blocks/UserInfoCard/demo/index.html create mode 100644 blocks/UserInfoCard/demo/index.js create mode 100644 blocks/UserInfoCard/mock/api.json create mode 100644 blocks/UserInfoCard/package.json create mode 100644 blocks/UserInfoCard/src/UserInfoCard.jsx create mode 100644 blocks/UserInfoCard/src/UserInfoCard.scss create mode 100644 blocks/UserInfoCard/src/index.js diff --git a/blocks/UserInfoCard/README.md b/blocks/UserInfoCard/README.md new file mode 100644 index 0000000000..47af6b37b1 --- /dev/null +++ b/blocks/UserInfoCard/README.md @@ -0,0 +1,5 @@ +# user-info-card + +简介:用户信息展示 + +![截图](https://img.alicdn.com/tfs/TB1.BZ1jyqAXuNjy1XdXXaYcVXa-708-582.png) diff --git a/blocks/UserInfoCard/demo/index.html b/blocks/UserInfoCard/demo/index.html new file mode 100644 index 0000000000..9d2d3a663d --- /dev/null +++ b/blocks/UserInfoCard/demo/index.html @@ -0,0 +1,19 @@ + + + + + + + + Document + + + + +
    + + + + + + diff --git a/blocks/UserInfoCard/demo/index.js b/blocks/UserInfoCard/demo/index.js new file mode 100644 index 0000000000..4d6acd389a --- /dev/null +++ b/blocks/UserInfoCard/demo/index.js @@ -0,0 +1,19 @@ +import React, { Component } from 'react'; +import { render } from 'react-dom'; + +// 载入默认全局样式 normalize 、.clearfix 和一些 mixin 方法等 +import '@icedesign/base/lib/_components/@alife/next-core/lib/index.scss'; + +import DemoLayout from '@icedesign/demo-layout'; +import Block from '../src'; + +const props = { + // ... +}; + +render( + + + , + document.querySelector('#mountNode') +); diff --git a/blocks/UserInfoCard/mock/api.json b/blocks/UserInfoCard/mock/api.json new file mode 100644 index 0000000000..eee2984fbe --- /dev/null +++ b/blocks/UserInfoCard/mock/api.json @@ -0,0 +1,4 @@ +{ + "status": "SUCCESS", + "data": {} +} diff --git a/blocks/UserInfoCard/package.json b/blocks/UserInfoCard/package.json new file mode 100644 index 0000000000..9bad7de03b --- /dev/null +++ b/blocks/UserInfoCard/package.json @@ -0,0 +1,41 @@ +{ + "name": "@icedesign/user-info-card", + "version": "0.1.0", + "description": "", + "files": ["src/", "demo/", "lib/", "mock/"], + "author": { + "name": "ICE Team", + "email": "ice-admin@alibaba-inc.com" + }, + "repository": { + "type": "git", + "url": "https://github.com/alibaba/ice" + }, + "license": "MIT", + "keywords": ["ice", "ice-block"], + "dependencies": { + "@icedesign/base": "^0.1.0", + "@icedesign/card": "^0.1.1", + "@icedesign/demo-layout": "^0.1.2", + "prop-types": "^15.5.8" + }, + "devDependencies": { + "@icedesign/skin": "latest", + "babel-eslint": "^8.0.3", + "eslint-plugin-react": "^7.5.1", + "react": "15.x", + "react-copy-to-clipboard": "^4.2.3", + "react-dom": "15.x" + }, + "blockConfig": { + "name": "user-info-card", + "description": "", + "chinese": "用户信息展示", + "category": "info-display", + "snapshot": + "https://img.alicdn.com/tfs/TB1.BZ1jyqAXuNjy1XdXXaYcVXa-708-582.png", + "sketchURL": "", + "icelandURL": "", + "themePackage": "@icedesign/skin" + } +} diff --git a/blocks/UserInfoCard/src/UserInfoCard.jsx b/blocks/UserInfoCard/src/UserInfoCard.jsx new file mode 100644 index 0000000000..0241306e37 --- /dev/null +++ b/blocks/UserInfoCard/src/UserInfoCard.jsx @@ -0,0 +1,114 @@ +import React, { Component } from 'react'; +import PropTypes from 'prop-types'; +import IceCard from '@icedesign/card'; +import { Button, Balloon, Icon } from '@icedesign/base'; +import './UserInfoCard.scss'; + +export default class UserInfoCard extends Component { + static displayName = 'UserInfoCard'; + + static propTypes = {}; + + static defaultProps = {}; + + constructor(props) { + super(props); + this.state = {}; + } + + render() { + return ( +
    + 更多信息} + closable={false} + visible={true} + > +
    +
    + +
    +
    张三
    +

    + 搜索事业部-工程效率-技术质量-质量系统平台 +

    +
    +
    +
      +
    • + 杭州 +
    • +
    • + + 算法专家 +
    • +
    • + + 871066160 +
    • +
    • + + 13867894321 +
    • +
    • + + ice-admin@alibaba-inc.com +
    • +
    • + + 主管:李四 +
    • +
    +
    +
    +
    + ); + } +} + +const styles = { + container: { + marginTop: '100px', + textAlign: 'center' + }, + content: { + display: 'flex', + flexDirection: 'column' + }, + head: { + display: 'flex', + paddingBottom: '10px', + borderBottom: '1px dotted #eee' + }, + avatar: { + width: '60px', + height: '60px', + borderRadius: '50px' + }, + name: { + padding: '0 10px', + margin: '0' + }, + deptName: { + padding: '0 10px', + margin: '0', + fontSize: '12px' + }, + body: { + display: 'flex', + flexWrap: 'wrap', + paddingTop: '10px' + }, + profileItem: { + width: '50%', + lineHeight: '26px', + fontSize: '13px' + }, + itemIcon: { + color: '#8a9099', + marginRight: '5px' + } +}; diff --git a/blocks/UserInfoCard/src/UserInfoCard.scss b/blocks/UserInfoCard/src/UserInfoCard.scss new file mode 100644 index 0000000000..5eebfd5856 --- /dev/null +++ b/blocks/UserInfoCard/src/UserInfoCard.scss @@ -0,0 +1,5 @@ +@charset "UTF-8"; + +.user-info-card { + +} diff --git a/blocks/UserInfoCard/src/index.js b/blocks/UserInfoCard/src/index.js new file mode 100644 index 0000000000..054dd29521 --- /dev/null +++ b/blocks/UserInfoCard/src/index.js @@ -0,0 +1,3 @@ +import UserInfoCard from './UserInfoCard'; + +export default UserInfoCard; From ef84b12d44f6bf6325eb1ae40b8c0f4188e3a77e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=80=9D=E5=BF=A0?= Date: Tue, 9 Jan 2018 10:02:18 +0800 Subject: [PATCH 0035/1028] chore: update snapshot --- blocks/UserInfoCard/README.md | 2 +- blocks/UserInfoCard/package.json | 2 +- blocks/UserInfoCard/src/UserInfoCard.jsx | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/blocks/UserInfoCard/README.md b/blocks/UserInfoCard/README.md index 47af6b37b1..a486502c3c 100644 --- a/blocks/UserInfoCard/README.md +++ b/blocks/UserInfoCard/README.md @@ -2,4 +2,4 @@ 简介:用户信息展示 -![截图](https://img.alicdn.com/tfs/TB1.BZ1jyqAXuNjy1XdXXaYcVXa-708-582.png) +![截图](https://img.alicdn.com/tfs/TB1b45Cl8fH8KJjy1XbXXbLdXXa-1028-682.png) diff --git a/blocks/UserInfoCard/package.json b/blocks/UserInfoCard/package.json index 9bad7de03b..2fd4eb4975 100644 --- a/blocks/UserInfoCard/package.json +++ b/blocks/UserInfoCard/package.json @@ -33,7 +33,7 @@ "chinese": "用户信息展示", "category": "info-display", "snapshot": - "https://img.alicdn.com/tfs/TB1.BZ1jyqAXuNjy1XdXXaYcVXa-708-582.png", + "https://img.alicdn.com/tfs/TB1b45Cl8fH8KJjy1XbXXbLdXXa-1028-682.png", "sketchURL": "", "icelandURL": "", "themePackage": "@icedesign/skin" diff --git a/blocks/UserInfoCard/src/UserInfoCard.jsx b/blocks/UserInfoCard/src/UserInfoCard.jsx index 0241306e37..e15145a7df 100644 --- a/blocks/UserInfoCard/src/UserInfoCard.jsx +++ b/blocks/UserInfoCard/src/UserInfoCard.jsx @@ -86,7 +86,8 @@ const styles = { avatar: { width: '60px', height: '60px', - borderRadius: '50px' + borderRadius: '50px', + border: '1px solid #eee' }, name: { padding: '0 10px', @@ -104,8 +105,7 @@ const styles = { }, profileItem: { width: '50%', - lineHeight: '26px', - fontSize: '13px' + lineHeight: '26px' }, itemIcon: { color: '#8a9099', From 7e4bcab4c277f5e3137008fed67c5b9ee0a9bdc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=80=9D=E5=BF=A0?= Date: Tue, 9 Jan 2018 12:58:44 +0800 Subject: [PATCH 0036/1028] chore: replace the resources --- blocks/UserInfoCard/README.md | 2 +- blocks/UserInfoCard/demo/index.html | 3 +-- blocks/UserInfoCard/package.json | 2 +- blocks/UserInfoCard/src/UserInfoCard.jsx | 19 ++++++++++++------- 4 files changed, 15 insertions(+), 11 deletions(-) diff --git a/blocks/UserInfoCard/README.md b/blocks/UserInfoCard/README.md index a486502c3c..6feae1e083 100644 --- a/blocks/UserInfoCard/README.md +++ b/blocks/UserInfoCard/README.md @@ -2,4 +2,4 @@ 简介:用户信息展示 -![截图](https://img.alicdn.com/tfs/TB1b45Cl8fH8KJjy1XbXXbLdXXa-1028-682.png) +![截图](https://img.alicdn.com/tfs/TB1NxO4l8fH8KJjy1XbXXbLdXXa-978-668.png) diff --git a/blocks/UserInfoCard/demo/index.html b/blocks/UserInfoCard/demo/index.html index 9d2d3a663d..cb0422f8d9 100644 --- a/blocks/UserInfoCard/demo/index.html +++ b/blocks/UserInfoCard/demo/index.html @@ -11,8 +11,7 @@
    - - + diff --git a/blocks/UserInfoCard/package.json b/blocks/UserInfoCard/package.json index 2fd4eb4975..3fa2b5e5a8 100644 --- a/blocks/UserInfoCard/package.json +++ b/blocks/UserInfoCard/package.json @@ -33,7 +33,7 @@ "chinese": "用户信息展示", "category": "info-display", "snapshot": - "https://img.alicdn.com/tfs/TB1b45Cl8fH8KJjy1XbXXbLdXXa-1028-682.png", + "https://img.alicdn.com/tfs/TB1NxO4l8fH8KJjy1XbXXbLdXXa-978-668.png", "sketchURL": "", "icelandURL": "", "themePackage": "@icedesign/skin" diff --git a/blocks/UserInfoCard/src/UserInfoCard.jsx b/blocks/UserInfoCard/src/UserInfoCard.jsx index e15145a7df..5c0ee77433 100644 --- a/blocks/UserInfoCard/src/UserInfoCard.jsx +++ b/blocks/UserInfoCard/src/UserInfoCard.jsx @@ -20,7 +20,7 @@ export default class UserInfoCard extends Component { return (
    更多信息} + trigger={更多信息} closable={false} visible={true} > @@ -32,9 +32,7 @@ export default class UserInfoCard extends Component { />
    张三
    -

    - 搜索事业部-工程效率-技术质量-质量系统平台 -

    +

    销售部 - 内销平台 - 售后服务

      @@ -43,7 +41,7 @@ export default class UserInfoCard extends Component {
    • - 算法专家 + 销售专家
    • @@ -54,8 +52,10 @@ export default class UserInfoCard extends Component { 13867894321
    • - - ice-admin@alibaba-inc.com + + + ice-admin@alibaba-inc.com +
    • @@ -110,5 +110,10 @@ const styles = { itemIcon: { color: '#8a9099', marginRight: '5px' + }, + triggerText: { + color: '#108ee9', + borderBottom: '1px dashed #108ee9', + cursor: 'pointer' } }; From e45a99dc602e5528250c018ef6c61df14ab87fde Mon Sep 17 00:00:00 2001 From: wssgcg1213 Date: Tue, 9 Jan 2018 16:56:51 +0800 Subject: [PATCH 0037/1028] feat: add scafford lite --- scaffords/ice-design-lite/.editorconfig | 12 ++ scaffords/ice-design-lite/.eslintignore | 11 ++ scaffords/ice-design-lite/.eslintrc | 60 ++++++ scaffords/ice-design-lite/.gitignore | 8 + scaffords/ice-design-lite/README.md | 12 ++ scaffords/ice-design-lite/generator.json | 43 +++++ scaffords/ice-design-lite/package.json | 30 +++ .../ice-design-lite/public/images/logo.png | Bin 0 -> 2189 bytes scaffords/ice-design-lite/public/index.html | 17 ++ .../ice-design-lite/src/config/navs.json | 42 +++++ scaffords/ice-design-lite/src/global.scss | 173 ++++++++++++++++++ scaffords/ice-design-lite/src/index.html | 16 ++ scaffords/ice-design-lite/src/index.js | 13 ++ scaffords/ice-design-lite/src/routes.jsx | 25 +++ scaffords/ice-design-lite/src/utils/getEnv.js | 16 ++ scaffords/ice-design-lite/tests/index.js | 0 16 files changed, 478 insertions(+) create mode 100644 scaffords/ice-design-lite/.editorconfig create mode 100644 scaffords/ice-design-lite/.eslintignore create mode 100644 scaffords/ice-design-lite/.eslintrc create mode 100644 scaffords/ice-design-lite/.gitignore create mode 100644 scaffords/ice-design-lite/README.md create mode 100644 scaffords/ice-design-lite/generator.json create mode 100644 scaffords/ice-design-lite/package.json create mode 100644 scaffords/ice-design-lite/public/images/logo.png create mode 100644 scaffords/ice-design-lite/public/index.html create mode 100644 scaffords/ice-design-lite/src/config/navs.json create mode 100644 scaffords/ice-design-lite/src/global.scss create mode 100644 scaffords/ice-design-lite/src/index.html create mode 100644 scaffords/ice-design-lite/src/index.js create mode 100644 scaffords/ice-design-lite/src/routes.jsx create mode 100644 scaffords/ice-design-lite/src/utils/getEnv.js create mode 100644 scaffords/ice-design-lite/tests/index.js diff --git a/scaffords/ice-design-lite/.editorconfig b/scaffords/ice-design-lite/.editorconfig new file mode 100644 index 0000000000..5760be5836 --- /dev/null +++ b/scaffords/ice-design-lite/.editorconfig @@ -0,0 +1,12 @@ +# http://editorconfig.org +root = true + +[*] +indent_style = space +indent_size = 2 +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false diff --git a/scaffords/ice-design-lite/.eslintignore b/scaffords/ice-design-lite/.eslintignore new file mode 100644 index 0000000000..3b437e6141 --- /dev/null +++ b/scaffords/ice-design-lite/.eslintignore @@ -0,0 +1,11 @@ +# 忽略目录 +build/ +tests/ +demo/ + +# node 覆盖率文件 +coverage/ + +# 忽略文件 +**/*-min.js +**/*.min.js diff --git a/scaffords/ice-design-lite/.eslintrc b/scaffords/ice-design-lite/.eslintrc new file mode 100644 index 0000000000..4dafa92280 --- /dev/null +++ b/scaffords/ice-design-lite/.eslintrc @@ -0,0 +1,60 @@ +{ + "root": true, + "parser": "babel-eslint", + "extends": "eslint-config-airbnb", + "parserOptions": { + "ecmaVersion": 6, + "ecmaFeatures": { + "jsx": true, + "experimentalObjectRestSpread": true + } + }, + "env": { + "browser": true + }, + "plugins": [ + "react", + "babel" + ], + "rules": { + "jsx-a11y/label-has-for": 0, + "jsx-a11y/no-static-element-interactions": 0, + "jsx-a11y/anchor-has-content": 0, + "jsx-a11y/click-events-have-key-events": 0, + "jsx-a11y/anchor-is-valid": 0, + "react/no-array-index-key": 0, + "func-names": 0, + "arrow-body-style": 0, + "no-use-before-define": 1, + "react/sort-comp": 0, + "react/prop-types": 0, + "react/jsx-first-prop-new-line": 0, + "react/jsx-filename-extension": [ + 1, + { + "extensions": [ + ".js", + ".jsx" + ] + } + ], + "import/extensions": 0, + "import/no-unresolved": 0, + "import/no-extraneous-dependencies": 0, + "prefer-destructuring": 0, + "no-param-reassign": 0, + "no-return-assign": 0, + "max-len": 0, + "consistent-return": 0, + "no-redeclare": 0, + "react/require-extension": 0, + "react/no-danger": 0, + "comma-dangle": [ + "error", + "always-multiline" + ], + "function-paren-newline": 0, + "object-curly-newline": 0, + "no-restricted-globals": 0 + } +} diff --git a/scaffords/ice-design-lite/.gitignore b/scaffords/ice-design-lite/.gitignore new file mode 100644 index 0000000000..d210438d21 --- /dev/null +++ b/scaffords/ice-design-lite/.gitignore @@ -0,0 +1,8 @@ +node_modules/ +build/ +.idea/ +.DS_Store +.happypack +npm-debug.log +yarn-error.log +dist/ diff --git a/scaffords/ice-design-lite/README.md b/scaffords/ice-design-lite/README.md new file mode 100644 index 0000000000..3d533ce67b --- /dev/null +++ b/scaffords/ice-design-lite/README.md @@ -0,0 +1,12 @@ +# ice-scafford-lite + +> 使用文档 + +基础设施: + +- react-router @3.x 默认采用 hashHistory 的单页应用 +- 入口文件: `src/index.js` +- 路由配置: `src/routes.jsx` +- 页面文件: `src/pages` +- 组件: `src/components` + diff --git a/scaffords/ice-design-lite/generator.json b/scaffords/ice-design-lite/generator.json new file mode 100644 index 0000000000..c42c711c6f --- /dev/null +++ b/scaffords/ice-design-lite/generator.json @@ -0,0 +1,43 @@ +{ + "layouts": [ + { + "source": "@icedesign/basic-layout", + "alias": "BasicLayout", + "title": "居中布局" + }, + { + "source": "@icedesign/aside-layout", + "alias": "AsideLayout", + "title": "侧边布局" + }, + { + "source": "@icedesign/scalable-aside-layout", + "alias": "ScalableAsideLayout", + "title": "通栏侧边布局" + }, + { + "source": "@icedesign/landing-layout", + "alias": "LandingLayout", + "title": "通栏布局" + } + ], + "components": [], + "routes": [ + { + "page": "Home", + "path": "/", + "layout": "AsideLayout" + }, + { + "page": "NotFound", + "path": "*", + "blocks": [ + { + "npm": "", + "version": "latest" + } + ], + "layout": "BasicLayout" + } + ] +} diff --git a/scaffords/ice-design-lite/package.json b/scaffords/ice-design-lite/package.json new file mode 100644 index 0000000000..ca64c9ae31 --- /dev/null +++ b/scaffords/ice-design-lite/package.json @@ -0,0 +1,30 @@ +{ + "name": "@icedesign/scafford-lite", + "version": "0.1.4", + "dependencies": { + "@icedesign/base": "^0.1.0", + "@icedesign/skin": "^0.1.0", + "bizcharts": "latest", + "prop-types": "^15.5.8", + "react-router": "^3.2.0" + }, + "devDependencies": { + "babel-eslint": "^8.0.3", + "eslint": "^4.13.1", + "eslint-config-airbnb": "^16.1.0", + "eslint-plugin-babel": "^4.1.1", + "eslint-plugin-import": "^2.8.0", + "eslint-plugin-jsx-a11y": "^6.0.3", + "eslint-plugin-react": "^7.5.1" + }, + "scripts": { + "lint": "eslint . --ext '.js,.jsx' --fix" + }, + "ice": { + "type": "project", + "projectType": "spa", + "entry": "src/index.js", + "themePackage": "@icedesign/skin", + "uuid": "" + } +} diff --git a/scaffords/ice-design-lite/public/images/logo.png b/scaffords/ice-design-lite/public/images/logo.png new file mode 100644 index 0000000000000000000000000000000000000000..64548c35f094bb023a853b060431210f45b0dca5 GIT binary patch literal 2189 zcmX|Cdpy(YAK!Pr)8-_*Bw=N$>L#92U7YWN+QUi3SyWFfbHA2gZg47 zN2`7+047lQxm+1K2WTLG4gKhOpl@z&t{CpKu62VQgQy>%!_e6&WU3e9T5mrzAcOC7}5EqYuc^FdHD;uT4}wxa4DzR z3yE-11qyDfA(utsi6{*T{)NRHe+$){< zFkfg)O#EDY`+lwd{+Rf@)TAt{>a%B0&DXj%Yce`?gQD|x86}p#`XvkB(rt!;vDR=a!nEVdvLBw$R`mm~r@4QX7g7??A#}l@6~`xOTAi z2q+AuAcJHp38=XYX+p^e9AqaV3bPFY>4r!mLMV9qYv0Hwqv}I8_$wRHX~wNEA@y*B_6lH z%{An|x=D_(l(bA(q2R$Mg(>lj7xv#w;g3sBPd0W|;fd=n4j=JEXVd-Ab{<-?ku~wMVlWn-FW?$24x)T;BP^xvSU5C9yqS6p43vN-oTesh{ zKIy8O$LYZu9pRWQ1KEee68Q42bxre0W4&`i$$zEa`pN>3NSSv#l?2Jr=P@g08wzew z&hNn3Ff5T?NXhuEKavIZ)%TsTO84E!W+37{aZD2udg5OjLcL&slhp6PA?3uGrwM}L z8u;<)*oNCwsV#{l#idfDqo;`9!3)_ienonT{13;ToZ=FCs3hU>_$WXQPLp>w)GYLa z+shuO^`QMy*D-T0%C}z2#{}b3rTty5Yga*Apz@?7=ZBmFf(!w?StC7Ja0L+}j|p27 z0v^;(^8U`hRF3k-$kRQ$XOjKT5LmA|-sC4BEF%qB(u^x{^|{HU%^Abq2O7>jjZ|M* zc#th13zt{>UbRM=lx-_|KLSZh-o^{Q)}gUSzeq6>ntqr2@wPlvc+98tdW&nkp0eL* z8X~ig8w1tbj;(QV9=De2wfvc1^bZ<-RFwagX%yB^L7d%Cb5nxr{$BhmcOT;Mku?RE zKC391_JKd9Ho()_@snAbl(hcj0+N*25b$y7vwavzx|u=3(vA8*jI zk#%)9+j^l|xcz*s&b@}W#hxbRtnbqL7sQ3k8X$E^8(|&6ofAH&Sa&PD9>%lsoQ5ZW@6&pCw3Tj zCMIgRhg{Vod;RjQ`Z_kqwTxyg2xX_n?W!OQ9qJwP#87#i=iIzd^{r@Xc*>GSwr^d~ z6BBhYd+(FGokn8o&u*RSqbbk)FIDi1`p4^R + + + + + + + ICE Design Lite + + + +
      + + + + + diff --git a/scaffords/ice-design-lite/src/config/navs.json b/scaffords/ice-design-lite/src/config/navs.json new file mode 100644 index 0000000000..70ddf713f5 --- /dev/null +++ b/scaffords/ice-design-lite/src/config/navs.json @@ -0,0 +1,42 @@ +{ + "headerNavs": [ + { + "text": "首页", + "to": "/" + }, + { + "text": "反馈", + "to": "https://github.com/alibaba/ice", + "external": true, + "newWindow": true + }, + { + "text": "帮助", + "to": "https://alibaba.github.io/ice", + "external": true, + "newWindow": true + } + ], + "asideNavs": [ + { + "text": "一级目录示例", + "to": "/example1", + "icon": "nav-list" + }, + { + "text": "二级目录示例", + "to": "/example2", + "icon": "compass", + "children": [ + { + "text": "二级子目录1", + "to": "/example21" + }, + { + "text": "二级子目录2", + "to": "/example22" + } + ] + } + ] +} diff --git a/scaffords/ice-design-lite/src/global.scss b/scaffords/ice-design-lite/src/global.scss new file mode 100644 index 0000000000..b014d7bb35 --- /dev/null +++ b/scaffords/ice-design-lite/src/global.scss @@ -0,0 +1,173 @@ +// 全局样式 +html, +body { + background-color: #fff; + -webkit-font-smoothing: antialiased; +} + +// 覆盖基础组件样式专用 +// 覆盖组件名用注释标记 +// Layout +.ice-layout-theme-light.ice-layout-aside, +.ice-layout-theme-light.ice-layout-aside .ice-menu { + background: transparent; +} + +// 顶部导航 +.ice-layout-theme-light.ice-layout-header { + box-shadow: none; + background: transparent; + .ice-menu-item, + .ice-menu-item > a { + color: #666; + text-decoration: none; + } + .ice-menu-item-selected, + .ice-menu-item-selected > a { + color: #fff; + } +} + +// 侧边导航 +.ice-layout .ice-admin-aside-menu, +.ice-layout .ice-layout-aside { + color: #666; + .ice-menu:not(.ice-menu-horizontal) .ice-menu-item-selected { + background-image: linear-gradient(90deg, #1861D5 0%, #3080FE 100%); + border-radius: 6px; + box-shadow: 0 0 0 rgba(0,0,0,0.1); + color: #fff; + &.ice-menu-item-selected:before { + width: 0; + } + } + .ice-menu-collapse { + .ice-menu-submenu-vertical { + .ice-menu-sub { + background: #fff; + } + } + } + .ice-menu-sub .ice-menu-item:hover:before { + width: 0; + } + .ice-menu-item:hover { + color: #3080FE; + background: transparent; + } + .ice-menu-item, + .ice-menu-item>a { + text-decoration: none; + } + .ice-menu-item-selected, + .ice-menu-item-selected>a { + color: #fff; + } + .ice-menu-submenu-title, + .ice-menu-submenu-title, i::before { + font-weight: bold; + } + + // 侧边导航折叠 + .ice-menu .ice-menu-submenu.ice-menu-submenu-active > .ice-menu-submenu-title { + background: transparent; + color: #3080fe; + &:hover:before { + width: 0; + } + } + + .ice-menu.ice-menu-collapse > .ice-menu-submenu-active > .ice-menu-submenu-title:before, + .ice-menu.ice-menu-collapse > .ice-menu-submenu-selected > .ice-menu-submenu-title:before, + .ice-menu.ice-menu-collapse .ice-menu-item:hover:before { + width: 0; + } + + .ice-menu.ice-menu-collapse .ice-menu:not(.ice-menu-horizontal) .ice-menu-item-selected { + background: transparent; + a { + color: #3080fe; + } + } + + .ice-menu.ice-menu-collapse > .ice-menu-submenu-selected > .ice-menu-submenu-title { + background-image: linear-gradient(90deg, #1861D5 0%, #3080FE 100%); + border-radius: 6px; + color: #fff; + &:before { + width: 0; + } + } +} + +// Footer +.ice-admin-layout-footer { + a:link, + a:visited { + color: #999; + } + a:hover { + color: #2089d9; + } +} + +.ice-layout-main { + color: #666; +} + +// BreadCrumb +.ice-layout-main { + padding: 20px; + + .next-breadcrumb { + margin: 0 20px 20px 20px; + } + .next-breadcrumb .next-breadcrumb-text a { + color: #c4c4c4; + } + .next-breadcrumb .next-breadcrumb-text.activated a { + color: #fff; + } +} + +// Tab +.tab-card { + .next-tabs-tab-inner { + margin-bottom: 13px; + } + .next-tabs-bar { + border-bottom-color: transparent; + } +} + +// ice-card +div.card-block { + box-shadow: 0 0 0 rgba(0,0,0,0.1); +} + +// table +.next-table { + color: #666; + + td { + border: none; + } + + .next-table-row { + &.selected { + background: none; + } + } + + .next-table-cell { + &.first { + border-top-left-radius: 6px; + border-bottom-left-radius: 6px; + } + &.last { + border-top-right-radius: 6px; + border-bottom-right-radius: 6px; + } + } +} + diff --git a/scaffords/ice-design-lite/src/index.html b/scaffords/ice-design-lite/src/index.html new file mode 100644 index 0000000000..5ccffc65df --- /dev/null +++ b/scaffords/ice-design-lite/src/index.html @@ -0,0 +1,16 @@ + + + + + + + ICE Design Lite + + + +
      + + + + diff --git a/scaffords/ice-design-lite/src/index.js b/scaffords/ice-design-lite/src/index.js new file mode 100644 index 0000000000..5cfd1334fe --- /dev/null +++ b/scaffords/ice-design-lite/src/index.js @@ -0,0 +1,13 @@ +import ReactDOM from 'react-dom'; +// 载入默认全局样式 normalize 、.clearfix 和一些 mixin 方法等 +import '@icedesign/base/lib/_components/@alife/next-core/lib/index.scss'; +import routes from './routes'; + +// 以下代码 ICE 自动生成, 请勿修改 +const ICE_CONTAINER = document.getElementById('ice_container'); + +if (!ICE_CONTAINER) { + throw new Error('当前页面不存在
      节点.'); +} + +ReactDOM.render(routes, ICE_CONTAINER); diff --git a/scaffords/ice-design-lite/src/routes.jsx b/scaffords/ice-design-lite/src/routes.jsx new file mode 100644 index 0000000000..6ede96a131 --- /dev/null +++ b/scaffords/ice-design-lite/src/routes.jsx @@ -0,0 +1,25 @@ +/** + * 定义应用路由 + */ +import React from 'react'; +import { + Router, + // browserHistory, + hashHistory, +} from 'react-router'; + +// 路由配置规则参考: https://github.com/ReactTraining/react-router/blob/v3/docs/guides/RouteConfiguration.md#configuration-with-plain-routes +// 一下部分是由 ICE 相关工具自动生成的路由,请勿随意改变,否则可能会出现一些异常情况 +// ---auto generated routes start--- +const autoGeneratedRoutes = []; +// ---auto generated routes end--- + +// 自定义路由,如果 path 相同则会覆盖自动生成部分的路由配置 +const customRoutes = []; + +export default ( + +); diff --git a/scaffords/ice-design-lite/src/utils/getEnv.js b/scaffords/ice-design-lite/src/utils/getEnv.js new file mode 100644 index 0000000000..db4407e1ec --- /dev/null +++ b/scaffords/ice-design-lite/src/utils/getEnv.js @@ -0,0 +1,16 @@ +/** + * 根据域名判断并返回四套环境的方法 + * import env from './utils/env'; + * console.log(env); // -> local or daily or prepub or production + */ +export default (function () { + const location = window.location; + if (/\d+\.\d+\.\d+|localhost/.test(location.host)) { + return 'local'; + } else if (/daily\.taobao\.net/.test(location.host)) { + return 'daily'; + } else if (/pre[.-](\w+)\.taobao\.com/.test(location.host)) { + return 'prepub'; + } + return 'production'; +}()); diff --git a/scaffords/ice-design-lite/tests/index.js b/scaffords/ice-design-lite/tests/index.js new file mode 100644 index 0000000000..e69de29bb2 From 628d9e3a8cd95dae647ddee80705126f2384f5b2 Mon Sep 17 00:00:00 2001 From: wssgcg1213 Date: Tue, 9 Jan 2018 17:13:44 +0800 Subject: [PATCH 0038/1028] feat: change schema --- blocks/ApplicationProgress/package.json | 16 ++++++++-------- blocks/AreaStackChart/package.json | 16 ++++++++-------- blocks/ArticleList/package.json | 16 ++++++++-------- blocks/BasicDetailInfo/package.json | 16 ++++++++-------- blocks/BasicException/package.json | 16 ++++++++-------- blocks/BasicNotFound/package.json | 16 ++++++++-------- blocks/BasicTab/package.json | 16 ++++++++-------- blocks/BrandDisplay/package.json | 16 ++++++++-------- blocks/BrandShowCase/package.json | 16 +++++++--------- blocks/ChartArea/package.json | 14 +++++++------- blocks/ChartBar/package.json | 14 +++++++------- blocks/ChartBox/package.json | 14 +++++++------- blocks/ChartBubbleImage/package.json | 14 +++++++------- blocks/ChartFacet/package.json | 14 +++++++------- blocks/ChartFunnel/package.json | 14 +++++++------- blocks/ChartGauge/package.json | 14 +++++++------- blocks/ChartHeatMap/package.json | 14 +++++++------- blocks/ChartPie/package.json | 14 +++++++------- blocks/ChartPoint/package.json | 14 +++++++------- blocks/ChartRadar/package.json | 16 ++++++++-------- blocks/ChartRelation/package.json | 16 ++++++++-------- blocks/ChartStock/package.json | 16 ++++++++-------- blocks/ChartTypeLine/package.json | 14 +++++++------- blocks/CollapseCard/package.json | 16 ++++++++-------- blocks/ComplexDialog/package.json | 14 +++++++------- blocks/ComplexFilter/package.json | 14 +++++++------- blocks/ComplexProgressTable/package.json | 16 +++++++--------- blocks/ComplexTabTable/package.json | 14 +++++++------- blocks/CompositeFilter/package.json | 16 ++++++++-------- blocks/ConfirmDialog/package.json | 16 ++++++++-------- blocks/DataDisplay/package.json | 16 +++++++--------- blocks/DetailTable/package.json | 16 +++++++--------- blocks/DisplayCard/package.json | 14 +++++++------- blocks/DownloadCard/package.json | 17 +++++++++-------- blocks/EditableTable/package.json | 14 +++++++------- blocks/EmptyContent/package.json | 16 +++++++--------- blocks/EnhanceTable/package.json | 14 +++++++------- blocks/EntryCard/package.json | 16 ++++++++-------- blocks/FailureDetail/package.json | 16 ++++++++-------- blocks/FeatureDisplay/package.json | 14 +++++++------- blocks/FeedList/package.json | 16 +++++++--------- blocks/FilterList/package.json | 16 ++++++++-------- blocks/FilterTable/package.json | 14 +++++++------- blocks/FilterWithSearch/package.json | 14 +++++++------- blocks/Footer/package.json | 16 +++++++--------- blocks/FooterInfo/package.json | 16 +++++++--------- blocks/ForgetPasswordForm/package.json | 16 +++++++--------- blocks/InfoDisplayTab/package.json | 16 ++++++++-------- blocks/InfoDisplayTable/package.json | 16 ++++++++-------- blocks/JoinUs/package.json | 16 +++++++--------- blocks/LandingIntroBanner/package.json | 14 +++++++------- blocks/LeftContentDisplay/package.json | 16 +++++++--------- blocks/LiteTable/package.json | 16 +++++++--------- blocks/MessageList/package.json | 14 +++++++------- blocks/MonacoEditor/package.json | 16 +++++++--------- blocks/NotPermission/package.json | 16 +++++++--------- blocks/OperationTable/package.json | 14 +++++++------- blocks/OrderList/package.json | 16 ++++++++-------- blocks/OurTeam/package.json | 14 +++++++------- blocks/PictureTextList/package.json | 14 +++++++------- blocks/PieDoughnutChart/package.json | 16 ++++++++-------- blocks/PriceCard/package.json | 16 +++++++--------- blocks/PriceInfo/package.json | 14 +++++++------- blocks/PrivateMessageForm/package.json | 16 +++++++--------- blocks/ProductInfo/package.json | 16 ++++++++-------- blocks/ProgressTable/package.json | 16 ++++++++-------- blocks/RegisterForm/package.json | 16 ++++++++-------- blocks/RightContentDisplay/package.json | 16 +++++++--------- blocks/SelectableTable/package.json | 16 ++++++++-------- blocks/SignupForm/package.json | 16 ++++++++-------- blocks/SimpleFluencyForm/package.json | 16 +++++++--------- blocks/SimpleFormDialog/package.json | 14 +++++++------- blocks/SimpleTable/package.json | 14 +++++++------- blocks/SimpleTestimonial/package.json | 14 +++++++------- blocks/SortCardList/package.json | 16 +++++++--------- blocks/StatisticalCard/package.json | 14 +++++++------- blocks/Subscribe/package.json | 16 +++++++--------- blocks/SuccessDetail/package.json | 16 ++++++++-------- blocks/SuccessDialog/package.json | 14 +++++++------- blocks/SystemNoticeList/package.json | 16 ++++++++-------- blocks/TabArticle/package.json | 14 +++++++------- blocks/TabDialog/package.json | 14 +++++++------- blocks/TagMessageList/package.json | 16 +++++++--------- blocks/TeamDisplay/package.json | 14 +++++++------- blocks/TermsInfo/package.json | 16 ++++++++-------- blocks/Testimonial/package.json | 14 +++++++------- blocks/TestimonialCard/package.json | 14 +++++++------- blocks/TextCard/package.json | 14 +++++++------- blocks/TextSearchList/package.json | 14 +++++++------- blocks/TimeFilterTable/package.json | 14 +++++++------- blocks/TopicCard/package.json | 16 ++++++++-------- blocks/TreeCardList/package.json | 16 +++++++--------- 92 files changed, 676 insertions(+), 719 deletions(-) diff --git a/blocks/ApplicationProgress/package.json b/blocks/ApplicationProgress/package.json index f79bda43eb..6b6e83e859 100644 --- a/blocks/ApplicationProgress/package.json +++ b/blocks/ApplicationProgress/package.json @@ -1,7 +1,7 @@ { "name": "@icedesign/application-progress-block", "version": "0.1.0", - "description": "", + "description": "申请进度信息展示", "files": [ "src/", "demo/", @@ -29,16 +29,16 @@ "devDependencies": { "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.2", - "eslint-plugin-react": "^7.5.1" + "react": "*", + "react-dom": "*" }, "blockConfig": { "name": "application-progress", - "description": "申请进度信息展示", - "chinese": "申请进度信息展示", - "category": "info-display", "snapshot": "https://img.alicdn.com/tfs/TB1I67ih3vD8KJjy0FlXXagBFXa-947-929.png", - "sketchURL": "", - "icelandURL": "", - "themePackage": "@icedesign/skin" + "themePackage": "@icedesign/skin", + "title": "申请进度信息展示", + "categories": [ + "info-display" + ] } } diff --git a/blocks/AreaStackChart/package.json b/blocks/AreaStackChart/package.json index 4e4d5dc68e..cd2d4a1c73 100644 --- a/blocks/AreaStackChart/package.json +++ b/blocks/AreaStackChart/package.json @@ -1,7 +1,7 @@ { "name": "@icedesign/area-stack-chart-block", "version": "0.1.0", - "description": "", + "description": "叠加面积图", "main": "src/index.js", "files": [ "src/", @@ -32,16 +32,16 @@ "devDependencies": { "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.3", - "eslint-plugin-react": "^7.5.1" + "react": "*", + "react-dom": "*" }, "blockConfig": { "name": "area-stack-chart", - "description": "叠加面积图", - "chinese": "叠加面积图", - "category": "chart", "snapshot": "https://img.alicdn.com/tfs/TB13crWidfJ8KJjy0FeXXXKEXXa-1754-994.png", - "sketchURL": "", - "icelandURL": "", - "themePackage": "@icedesign/skin" + "themePackage": "@icedesign/skin", + "title": "叠加面积图", + "categories": [ + "chart" + ] } } diff --git a/blocks/ArticleList/package.json b/blocks/ArticleList/package.json index 3759f84dcc..216e541bad 100644 --- a/blocks/ArticleList/package.json +++ b/blocks/ArticleList/package.json @@ -1,7 +1,7 @@ { "name": "@icedesign/article-list-block", "version": "0.1.0", - "description": "", + "description": "文章列表", "main": "lib/index.js", "files": [ "src/", @@ -30,16 +30,16 @@ "devDependencies": { "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.2", - "eslint-plugin-react": "^7.5.1" + "react": "*", + "react-dom": "*" }, "blockConfig": { "name": "article-list", - "description": "文章列表", - "chinese": "文章列表", - "category": "info-display", "snapshot": "https://img.alicdn.com/tfs/TB1PXQAifDH8KJjy1XcXXcpdXXa-1906-996.png", - "sketchURL": "", - "icelandURL": "", - "themePackage": "@icedesign/skin" + "themePackage": "@icedesign/skin", + "title": "文章列表", + "categories": [ + "info-display" + ] } } diff --git a/blocks/BasicDetailInfo/package.json b/blocks/BasicDetailInfo/package.json index 240d5e3860..7fb198cc8f 100644 --- a/blocks/BasicDetailInfo/package.json +++ b/blocks/BasicDetailInfo/package.json @@ -1,7 +1,7 @@ { "name": "@icedesign/basic-detail-info-block", "version": "0.1.0", - "description": "", + "description": "基础详情信息展示", "files": [ "src/", "demo/", @@ -29,16 +29,16 @@ "devDependencies": { "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.2", - "eslint-plugin-react": "^7.5.1" + "react": "*", + "react-dom": "*" }, "blockConfig": { "name": "basic-detail-info", - "description": "基础详情信息展示", - "chinese": "基础详情信息展示", - "category": "info-display", "snapshot": "https://gw.alicdn.com/tfs/TB1JD2VifDH8KJjy1XcXXcpdXXa-1880-1004.png", - "sketchURL": "", - "icelandURL": "", - "themePackage": "@icedesign/skin" + "themePackage": "@icedesign/skin", + "title": "基础详情信息展示", + "categories": [ + "info-display" + ] } } diff --git a/blocks/BasicException/package.json b/blocks/BasicException/package.json index cf083689b7..77208b0967 100644 --- a/blocks/BasicException/package.json +++ b/blocks/BasicException/package.json @@ -1,7 +1,7 @@ { "name": "@icedesign/basic-exception-block", "version": "0.1.1", - "description": "", + "description": "基础异常报错", "main": "lib/index.js", "files": [ "src/", @@ -31,16 +31,16 @@ "devDependencies": { "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.2", - "eslint-plugin-react": "^7.5.1" + "react": "*", + "react-dom": "*" }, "blockConfig": { "name": "basic-exception", - "description": "基础异常报错", - "chinese": "基础异常报错", - "category": "exception", "snapshot": "https://img.alicdn.com/tfs/TB197z8if2H8KJjy0FcXXaDlFXa-1786-914.png", - "sketchURL": "", - "icelandURL": "", - "themePackage": "@icedesign/skin" + "themePackage": "@icedesign/skin", + "title": "基础异常报错", + "categories": [ + "exception" + ] } } diff --git a/blocks/BasicNotFound/package.json b/blocks/BasicNotFound/package.json index 9f5b593a62..d83886c140 100644 --- a/blocks/BasicNotFound/package.json +++ b/blocks/BasicNotFound/package.json @@ -1,7 +1,7 @@ { "name": "@icedesign/basic-not-found-block", "version": "0.1.1", - "description": "", + "description": "404 报错提示", "main": "lib/index.js", "files": [ "src/", @@ -31,16 +31,16 @@ "devDependencies": { "@icedesign/demo-layout": "^0.1.2", "@icedesign/skin": "^0.1.2", - "eslint-plugin-react": "^7.5.1" + "react": "*", + "react-dom": "*" }, "blockConfig": { "name": "basic-not-found", - "description": "404 报错提示", - "chinese": "404 报错提示", - "category": "exception", "snapshot": "https://img.alicdn.com/tfs/TB1.HyVgyqAXuNjy1XdXXaYcVXa-1914-1066.png", - "sketchURL": "", - "icelandURL": "", - "themePackage": "@icedesign/skin" + "themePackage": "@icedesign/skin", + "title": "404 报错提示", + "categories": [ + "exception" + ] } } diff --git a/blocks/BasicTab/package.json b/blocks/BasicTab/package.json index 597e2832a4..470144c800 100644 --- a/blocks/BasicTab/package.json +++ b/blocks/BasicTab/package.json @@ -1,7 +1,7 @@ { "name": "@icedesign/basic-tab-block", "version": "0.1.1", - "description": "", + "description": "基础 Tab 组件", "main": "lib/index.js", "files": [ "src/", @@ -30,16 +30,16 @@ "devDependencies": { "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.3", - "eslint-plugin-react": "^7.5.1" + "react": "*", + "react-dom": "*" }, "blockConfig": { "name": "basic-tab", - "description": "基础 Tab 组件", - "chinese": "基础 Tab 组件", - "category": "info-display", "snapshot": "https://img.alicdn.com/tfs/TB1lrQXif2H8KJjy0FcXXaDlFXa-1144-112.png", - "sketchURL": "", - "icelandURL": "", - "themePackage": "@icedesign/skin" + "themePackage": "@icedesign/skin", + "title": "基础 Tab 组件", + "categories": [ + "info-display" + ] } } diff --git a/blocks/BrandDisplay/package.json b/blocks/BrandDisplay/package.json index 39ac81035f..f537b081c1 100644 --- a/blocks/BrandDisplay/package.json +++ b/blocks/BrandDisplay/package.json @@ -1,7 +1,7 @@ { "name": "@icedesign/brand-display-block", "version": "0.1.1", - "description": "", + "description": "品牌列表展示", "main": "lib/index.js", "files": [ "src/", @@ -30,16 +30,16 @@ "devDependencies": { "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.2", - "eslint-plugin-react": "^7.5.1" + "react": "*", + "react-dom": "*" }, "blockConfig": { "name": "brand-display", - "description": "品牌列表展示", - "chinese": "品牌列表展示", - "category": "info-display", "snapshot": "https://img.alicdn.com/tfs/TB1XIooihrI8KJjy0FpXXb5hVXa-1802-874.png", - "sketchURL": "", - "icelandURL": "", - "themePackage": "@icedesign/skin" + "themePackage": "@icedesign/skin", + "title": "品牌列表展示", + "categories": [ + "info-display" + ] } } diff --git a/blocks/BrandShowCase/package.json b/blocks/BrandShowCase/package.json index 5547949d50..a1d2644e66 100644 --- a/blocks/BrandShowCase/package.json +++ b/blocks/BrandShowCase/package.json @@ -29,19 +29,17 @@ "devDependencies": { "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.2", - "eslint-plugin-react": "^7.5.1", - "react": "15.x", + "react": "*", "react-copy-to-clipboard": "^4.2.3", - "react-dom": "15.x" + "react-dom": "*" }, "blockConfig": { "name": "brand-show-case", - "description": "", - "chinese": "品牌展示", - "category": "info-display", "snapshot": "https://img.alicdn.com/tfs/TB1DGFejr_I8KJjy1XaXXbsxpXa-1910-860.png", - "sketchURL": "", - "icelandURL": "", - "themePackage": "@icedesign/skin" + "themePackage": "@icedesign/skin", + "title": "品牌展示", + "categories": [ + "info-display" + ] } } diff --git a/blocks/ChartArea/package.json b/blocks/ChartArea/package.json index 08399e46d4..a6e7ee0743 100644 --- a/blocks/ChartArea/package.json +++ b/blocks/ChartArea/package.json @@ -31,16 +31,16 @@ "devDependencies": { "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.2", - "eslint-plugin-react": "^7.5.1" + "react": "*", + "react-dom": "*" }, "blockConfig": { "name": "chart-area", - "description": "", - "chinese": "面积图", - "category": "chart", "snapshot": "https://img.alicdn.com/tfs/TB1tF0DivDH8KJjy1XcXXcpdXXa-1910-1040.png", - "sketchURL": "", - "icelandURL": "", - "themePackage": "@icedesign/skin" + "themePackage": "@icedesign/skin", + "title": "面积图", + "categories": [ + "chart" + ] } } diff --git a/blocks/ChartBar/package.json b/blocks/ChartBar/package.json index 068930a2a3..b49ee9ec48 100644 --- a/blocks/ChartBar/package.json +++ b/blocks/ChartBar/package.json @@ -31,16 +31,16 @@ "devDependencies": { "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.2", - "eslint-plugin-react": "^7.5.1" + "react": "*", + "react-dom": "*" }, "blockConfig": { "name": "chart-bar", - "description": "", - "chinese": "柱状图", - "category": "chart", "snapshot": "https://img.alicdn.com/tfs/TB1IdeWf5qAXuNjy1XdXXaYcVXa-1900-1042.png", - "sketchURL": "", - "icelandURL": "", - "themePackage": "@icedesign/skin" + "themePackage": "@icedesign/skin", + "title": "柱状图", + "categories": [ + "chart" + ] } } diff --git a/blocks/ChartBox/package.json b/blocks/ChartBox/package.json index 1dbc5bc88f..2fe75eb481 100644 --- a/blocks/ChartBox/package.json +++ b/blocks/ChartBox/package.json @@ -31,16 +31,16 @@ "devDependencies": { "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.2", - "eslint-plugin-react": "^7.5.1" + "react": "*", + "react-dom": "*" }, "blockConfig": { "name": "chart-box", - "description": "", - "chinese": "箱型图", - "category": "chart", "snapshot": "https://img.alicdn.com/tfs/TB1nR5Wf5qAXuNjy1XdXXaYcVXa-1902-1036.png", - "sketchURL": "", - "icelandURL": "", - "themePackage": "@icedesign/skin" + "themePackage": "@icedesign/skin", + "title": "箱型图", + "categories": [ + "chart" + ] } } diff --git a/blocks/ChartBubbleImage/package.json b/blocks/ChartBubbleImage/package.json index 34616d85df..797fc0625f 100644 --- a/blocks/ChartBubbleImage/package.json +++ b/blocks/ChartBubbleImage/package.json @@ -31,16 +31,16 @@ "devDependencies": { "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.2", - "eslint-plugin-react": "^7.5.1" + "react": "*", + "react-dom": "*" }, "blockConfig": { "name": "chart-bubble-image", - "description": "", - "chinese": "自定义气泡图", - "category": "chart", "snapshot": "https://img.alicdn.com/tfs/TB11w4FivDH8KJjy1XcXXcpdXXa-1902-1032.png", - "sketchURL": "", - "icelandURL": "", - "themePackage": "@icedesign/skin" + "themePackage": "@icedesign/skin", + "title": "自定义气泡图", + "categories": [ + "chart" + ] } } diff --git a/blocks/ChartFacet/package.json b/blocks/ChartFacet/package.json index 9f5d47638d..f622218082 100644 --- a/blocks/ChartFacet/package.json +++ b/blocks/ChartFacet/package.json @@ -31,16 +31,16 @@ "devDependencies": { "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.2", - "eslint-plugin-react": "^7.5.1" + "react": "*", + "react-dom": "*" }, "blockConfig": { "name": "chart-facet", - "description": "", - "chinese": "分面图", - "category": "chart", "snapshot": "https://img.alicdn.com/tfs/TB1D80FivDH8KJjy1XcXXcpdXXa-1988-1236.png", - "sketchURL": "", - "icelandURL": "", - "themePackage": "@icedesign/skin" + "themePackage": "@icedesign/skin", + "title": "分面图", + "categories": [ + "chart" + ] } } diff --git a/blocks/ChartFunnel/package.json b/blocks/ChartFunnel/package.json index b3afcaa08d..c50e23f052 100644 --- a/blocks/ChartFunnel/package.json +++ b/blocks/ChartFunnel/package.json @@ -31,16 +31,16 @@ "devDependencies": { "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.2", - "eslint-plugin-react": "^7.5.1" + "react": "*", + "react-dom": "*" }, "blockConfig": { "name": "chart-funnel", - "description": "", - "chinese": "漏斗图", - "category": "chart", "snapshot": "https://img.alicdn.com/tfs/TB14y8xiv6H8KJjy0FjXXaXepXa-1888-1038.png", - "sketchURL": "", - "icelandURL": "", - "themePackage": "@icedesign/skin" + "themePackage": "@icedesign/skin", + "title": "漏斗图", + "categories": [ + "chart" + ] } } diff --git a/blocks/ChartGauge/package.json b/blocks/ChartGauge/package.json index 67aece1f9e..042b82388d 100644 --- a/blocks/ChartGauge/package.json +++ b/blocks/ChartGauge/package.json @@ -31,16 +31,16 @@ "devDependencies": { "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.2", - "eslint-plugin-react": "^7.5.1" + "react": "*", + "react-dom": "*" }, "blockConfig": { "name": "chart-gauge", - "description": "", - "chinese": "仪表图", - "category": "chart", "snapshot": "https://img.alicdn.com/tfs/TB1KXNyiv6H8KJjy0FjXXaXepXa-1908-1040.png", - "sketchURL": "", - "icelandURL": "", - "themePackage": "@icedesign/skin" + "themePackage": "@icedesign/skin", + "title": "仪表图", + "categories": [ + "chart" + ] } } diff --git a/blocks/ChartHeatMap/package.json b/blocks/ChartHeatMap/package.json index 855d152b09..a66a5c522b 100644 --- a/blocks/ChartHeatMap/package.json +++ b/blocks/ChartHeatMap/package.json @@ -31,16 +31,16 @@ "devDependencies": { "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.2", - "eslint-plugin-react": "^7.5.1" + "react": "*", + "react-dom": "*" }, "blockConfig": { "name": "chart-heat-map", - "description": "", - "chinese": "色块图", - "category": "chart", "snapshot": "https://img.alicdn.com/tfs/TB1W_FoixrI8KJjy0FpXXb5hVXa-1906-1222.png", - "sketchURL": "", - "icelandURL": "", - "themePackage": "@icedesign/skin" + "themePackage": "@icedesign/skin", + "title": "色块图", + "categories": [ + "chart" + ] } } diff --git a/blocks/ChartPie/package.json b/blocks/ChartPie/package.json index 16be7fd71d..8f779bae03 100644 --- a/blocks/ChartPie/package.json +++ b/blocks/ChartPie/package.json @@ -31,16 +31,16 @@ "devDependencies": { "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.2", - "eslint-plugin-react": "^7.5.1" + "react": "*", + "react-dom": "*" }, "blockConfig": { "name": "chart-pie", - "description": "", - "chinese": "饼图", - "category": "chart", "snapshot": "https://img.alicdn.com/tfs/TB1rfJHivDH8KJjy1XcXXcpdXXa-1910-1022.png", - "sketchURL": "", - "icelandURL": "", - "themePackage": "@icedesign/skin" + "themePackage": "@icedesign/skin", + "title": "饼图", + "categories": [ + "chart" + ] } } diff --git a/blocks/ChartPoint/package.json b/blocks/ChartPoint/package.json index 941358c36d..adaaba52c2 100644 --- a/blocks/ChartPoint/package.json +++ b/blocks/ChartPoint/package.json @@ -32,16 +32,16 @@ "devDependencies": { "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.2", - "eslint-plugin-react": "^7.5.1" + "react": "*", + "react-dom": "*" }, "blockConfig": { "name": "chart-point", - "description": "", - "chinese": "点图", - "category": "chart", "snapshot": "https://img.alicdn.com/tfs/TB1E1y0f5qAXuNjy1XdXXaYcVXa-1916-1044.png", - "sketchURL": "", - "icelandURL": "", - "themePackage": "@icedesign/skin" + "themePackage": "@icedesign/skin", + "title": "点图", + "categories": [ + "chart" + ] } } diff --git a/blocks/ChartRadar/package.json b/blocks/ChartRadar/package.json index 73f4bce25b..f17ccc6656 100644 --- a/blocks/ChartRadar/package.json +++ b/blocks/ChartRadar/package.json @@ -1,7 +1,7 @@ { "name": "@icedesign/chart-radar-block", "version": "0.1.1", - "description": "", + "description": "雷达图", "files": [ "src/", "demo/", @@ -31,16 +31,16 @@ "devDependencies": { "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.2", - "eslint-plugin-react": "^7.5.1" + "react": "*", + "react-dom": "*" }, "blockConfig": { "name": "chart-radar", - "description": "雷达图", - "chinese": "雷达图", - "category": "chart", "snapshot": "https://img.alicdn.com/tfs/TB1wNkNilfH8KJjy1XbXXbLdXXa-1876-958.png", - "sketchURL": "", - "icelandURL": "", - "themePackage": "@icedesign/skin" + "themePackage": "@icedesign/skin", + "title": "雷达图", + "categories": [ + "chart" + ] } } diff --git a/blocks/ChartRelation/package.json b/blocks/ChartRelation/package.json index a8550d13f1..f1cd4797e6 100644 --- a/blocks/ChartRelation/package.json +++ b/blocks/ChartRelation/package.json @@ -1,7 +1,7 @@ { "name": "@icedesign/chart-relation-block", "version": "0.1.1", - "description": "", + "description": "关系图", "files": [ "src/", "demo/", @@ -31,16 +31,16 @@ "devDependencies": { "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.2", - "eslint-plugin-react": "^7.5.1" + "react": "*", + "react-dom": "*" }, "blockConfig": { "name": "chart-relation", - "description": "关系图", - "chinese": "关系图", - "category": "chart", "snapshot": "https://img.alicdn.com/tfs/TB1My.6idfJ8KJjy0FeXXXKEXXa-1874-922.png", - "sketchURL": "", - "icelandURL": "", - "themePackage": "@icedesign/skin" + "themePackage": "@icedesign/skin", + "title": "关系图", + "categories": [ + "chart" + ] } } diff --git a/blocks/ChartStock/package.json b/blocks/ChartStock/package.json index af0feb96ab..ed131ec111 100644 --- a/blocks/ChartStock/package.json +++ b/blocks/ChartStock/package.json @@ -1,7 +1,7 @@ { "name": "@icedesign/chart-stock-block", "version": "0.1.1", - "description": "", + "description": "股票图", "files": [ "src/", "demo/", @@ -32,16 +32,16 @@ "devDependencies": { "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.2", - "eslint-plugin-react": "^7.5.1" + "react": "*", + "react-dom": "*" }, "blockConfig": { "name": "chart-stock", - "description": "股票图", - "chinese": "股票图", - "category": "chart", "snapshot": "https://img.alicdn.com/tfs/TB1ZYAYigvD8KJjSsplXXaIEFXa-1886-974.png", - "sketchURL": "", - "icelandURL": "", - "themePackage": "@icedesign/skin" + "themePackage": "@icedesign/skin", + "title": "股票图", + "categories": [ + "chart" + ] } } diff --git a/blocks/ChartTypeLine/package.json b/blocks/ChartTypeLine/package.json index 45847ec81c..199105892f 100644 --- a/blocks/ChartTypeLine/package.json +++ b/blocks/ChartTypeLine/package.json @@ -31,16 +31,16 @@ "devDependencies": { "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.2", - "eslint-plugin-react": "^7.5.1" + "react": "*", + "react-dom": "*" }, "blockConfig": { "name": "chart-type-line", - "description": "", - "chinese": "折线图", - "category": "chart", "snapshot": "https://img.alicdn.com/tfs/TB1Of87isLJ8KJjy0FnXXcFDpXa-1906-1044.png", - "sketchURL": "", - "icelandURL": "", - "themePackage": "@icedesign/skin" + "themePackage": "@icedesign/skin", + "title": "折线图", + "categories": [ + "chart" + ] } } diff --git a/blocks/CollapseCard/package.json b/blocks/CollapseCard/package.json index 7817f9df28..0be4d7defc 100644 --- a/blocks/CollapseCard/package.json +++ b/blocks/CollapseCard/package.json @@ -1,7 +1,7 @@ { "name": "@icedesign/collapse-card-block", "version": "0.1.1", - "description": "", + "description": "折叠型卡片的信息展示", "files": [ "src/", "demo/", @@ -30,16 +30,16 @@ "devDependencies": { "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.2", - "eslint-plugin-react": "^7.5.1" + "react": "*", + "react-dom": "*" }, "blockConfig": { "name": "collapse-card", - "description": "折叠型卡片的信息展示", - "chinese": "折叠型卡片的信息展示", - "category": "info-display", "snapshot": "https://img.alicdn.com/tfs/TB1NXIUh2DH8KJjy1XcXXcpdXXa-956-270.png", - "sketchURL": "", - "icelandURL": "", - "themePackage": "@icedesign/skin" + "themePackage": "@icedesign/skin", + "title": "折叠型卡片的信息展示", + "categories": [ + "info-display" + ] } } diff --git a/blocks/ComplexDialog/package.json b/blocks/ComplexDialog/package.json index 887173fc0f..b0836d47ac 100644 --- a/blocks/ComplexDialog/package.json +++ b/blocks/ComplexDialog/package.json @@ -29,16 +29,16 @@ "devDependencies": { "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.2", - "eslint-plugin-react": "^7.5.1" + "react": "*", + "react-dom": "*" }, "blockConfig": { "name": "complex-dialog", - "description": "复杂信息和自定义底部按钮的弹窗", - "chinese": "复杂信息弹窗", - "category": "modal", "snapshot": "https://img.alicdn.com/tfs/TB1Un_filfH8KJjy1XbXXbLdXXa-1270-650.png", - "sketchURL": "", - "icelandURL": "", - "themePackage": "@icedesign/skin" + "themePackage": "@icedesign/skin", + "title": "复杂信息弹窗", + "categories": [ + "modal" + ] } } diff --git a/blocks/ComplexFilter/package.json b/blocks/ComplexFilter/package.json index f7df148b00..91cb12195c 100644 --- a/blocks/ComplexFilter/package.json +++ b/blocks/ComplexFilter/package.json @@ -29,16 +29,16 @@ "devDependencies": { "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.2", - "eslint-plugin-react": "^7.5.1" + "react": "*", + "react-dom": "*" }, "blockConfig": { "name": "complex-filter", - "description": "复杂筛选", - "chinese": "复杂筛选", - "category": "filter", "snapshot": "https://img.alicdn.com/tfs/TB1y4M2lgvD8KJjy0FlXXagBFXa-1908-232.png", - "sketchURL": "", - "icelandURL": "", - "themePackage": "@icedesign/skin" + "themePackage": "@icedesign/skin", + "title": "复杂筛选", + "categories": [ + "filter" + ] } } diff --git a/blocks/ComplexProgressTable/package.json b/blocks/ComplexProgressTable/package.json index a4a3b50d95..d0d5e53620 100644 --- a/blocks/ComplexProgressTable/package.json +++ b/blocks/ComplexProgressTable/package.json @@ -33,19 +33,17 @@ "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.2", "babel-plugin-transform-decorators-legacy": "^1.3.4", - "eslint-plugin-react": "^7.5.1", - "react": "15.x", + "react": "*", "react-copy-to-clipboard": "^4.2.3", - "react-dom": "15.x" + "react-dom": "*" }, "blockConfig": { "name": "complex-progress-table", - "description": "进度管理表格", - "chinese": "进度管理表格", - "category": "table", "snapshot": "https://img.alicdn.com/tfs/TB1tcvSg5qAXuNjy1XdXXaYcVXa-1894-1312.png", - "sketchURL": "", - "icelandURL": "", - "themePackage": "@icedesign/skin" + "themePackage": "@icedesign/skin", + "title": "进度管理表格", + "categories": [ + "table" + ] } } diff --git a/blocks/ComplexTabTable/package.json b/blocks/ComplexTabTable/package.json index 46bbb84147..a8ee042feb 100644 --- a/blocks/ComplexTabTable/package.json +++ b/blocks/ComplexTabTable/package.json @@ -33,16 +33,16 @@ "devDependencies": { "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.2", - "eslint-plugin-react": "^7.5.1" + "react": "*", + "react-dom": "*" }, "blockConfig": { "name": "complex-tab-table", - "description": "附带复杂的 Tab 多级筛选项的表格", - "chinese": "复杂 Tab 筛选表格", - "category": "table", "snapshot": "https://img.alicdn.com/tfs/TB1IZMeifDH8KJjy1XcXXcpdXXa-1892-1462.png", - "sketchURL": "", - "icelandURL": "", - "themePackage": "@icedesign/skin" + "themePackage": "@icedesign/skin", + "title": "复杂 Tab 筛选表格", + "categories": [ + "table" + ] } } diff --git a/blocks/CompositeFilter/package.json b/blocks/CompositeFilter/package.json index 6bd3d5ab60..c69542784c 100644 --- a/blocks/CompositeFilter/package.json +++ b/blocks/CompositeFilter/package.json @@ -1,7 +1,7 @@ { "name": "@icedesign/composite-filter-block", "version": "0.1.1", - "description": "", + "description": "复杂的筛选", "main": "lib/index.js", "files": [ "src/", @@ -30,16 +30,16 @@ "devDependencies": { "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.2", - "eslint-plugin-react": "^7.5.1" + "react": "*", + "react-dom": "*" }, "blockConfig": { "name": "composite-filter", - "description": "复杂的筛选", - "chinese": "复杂的筛选", - "category": "filter", "snapshot": "https://img.alicdn.com/tfs/TB1mfclilTH8KJjy0FiXXcRsXXa-1896-246.png", - "sketchURL": "", - "icelandURL": "", - "themePackage": "@icedesign/skin" + "themePackage": "@icedesign/skin", + "title": "复杂的筛选", + "categories": [ + "filter" + ] } } diff --git a/blocks/ConfirmDialog/package.json b/blocks/ConfirmDialog/package.json index 793488c494..ab9ea83e11 100644 --- a/blocks/ConfirmDialog/package.json +++ b/blocks/ConfirmDialog/package.json @@ -1,7 +1,7 @@ { "name": "@icedesign/confirm-dialog-block", "version": "0.1.1", - "description": "", + "description": "确认类型的提示框", "main": "lib/index.js", "files": [ "src/", @@ -29,16 +29,16 @@ "devDependencies": { "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.2", - "eslint-plugin-react": "^7.5.1" + "react": "*", + "react-dom": "*" }, "blockConfig": { "name": "confirm-dialog", - "description": "确认类型的提示框", - "chinese": "确认类型的提示框", - "category": "modal", "snapshot": "https://img.alicdn.com/tfs/TB1Zr3xigvD8KJjy0FlXXagBFXa-1272-620.png", - "sketchURL": "", - "icelandURL": "", - "themePackage": "@icedesign/skin" + "themePackage": "@icedesign/skin", + "title": "确认类型的提示框", + "categories": [ + "modal" + ] } } diff --git a/blocks/DataDisplay/package.json b/blocks/DataDisplay/package.json index 508ff3f8bc..4a88390302 100644 --- a/blocks/DataDisplay/package.json +++ b/blocks/DataDisplay/package.json @@ -29,19 +29,17 @@ "devDependencies": { "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.2", - "eslint-plugin-react": "^7.5.1", - "react": "15.x", + "react": "*", "react-copy-to-clipboard": "^4.2.3", - "react-dom": "15.x" + "react-dom": "*" }, "blockConfig": { "name": "data-display", - "description": "", - "chinese": "数据展示", - "category": "data-display", "snapshot": "https://img.alicdn.com/tfs/TB1IKT9jfDH8KJjy1XcXXcpdXXa-1892-324.png", - "sketchURL": "", - "icelandURL": "", - "themePackage": "@icedesign/skin" + "themePackage": "@icedesign/skin", + "title": "数据展示", + "categories": [ + "data-display" + ] } } diff --git a/blocks/DetailTable/package.json b/blocks/DetailTable/package.json index 2d1f1ca275..f4c8ab9479 100644 --- a/blocks/DetailTable/package.json +++ b/blocks/DetailTable/package.json @@ -29,19 +29,17 @@ "devDependencies": { "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.2", - "eslint-plugin-react": "^7.5.1", - "react": "15.x", + "react": "*", "react-copy-to-clipboard": "^4.2.3", - "react-dom": "15.x" + "react-dom": "*" }, "blockConfig": { "name": "detail-table", - "description": "展示详情信息的表格", - "chinese": "详情信息表格", - "category": "table", "snapshot": "https://img.alicdn.com/tfs/TB1hplfjr_I8KJjy1XaXXbsxpXa-1886-700.png", - "sketchURL": "", - "icelandURL": "", - "themePackage": "@icedesign/skin" + "themePackage": "@icedesign/skin", + "title": "详情信息表格", + "categories": [ + "table" + ] } } diff --git a/blocks/DisplayCard/package.json b/blocks/DisplayCard/package.json index 6378a7d475..7b1a59e208 100644 --- a/blocks/DisplayCard/package.json +++ b/blocks/DisplayCard/package.json @@ -29,16 +29,16 @@ "devDependencies": { "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.2", - "eslint-plugin-react": "^7.5.1" + "react": "*", + "react-dom": "*" }, "blockConfig": { "name": "display-card", - "description": "展示型卡片", - "chinese": "展示型卡片", - "category": "data-display", "snapshot": "https://img.alicdn.com/tfs/TB1zRDFim_I8KJjy0FoXXaFnVXa-1908-292.png", - "sketchURL": "", - "icelandURL": "", - "themePackage": "@icedesign/skin" + "themePackage": "@icedesign/skin", + "title": "展示型卡片", + "categories": [ + "data-display" + ] } } diff --git a/blocks/DownloadCard/package.json b/blocks/DownloadCard/package.json index 40755a6a1f..943c6b4586 100644 --- a/blocks/DownloadCard/package.json +++ b/blocks/DownloadCard/package.json @@ -1,7 +1,7 @@ { "name": "@icedesign/download-card-block", "version": "0.1.1", - "description": "", + "description": "下载型信息卡片", "main": "lib/index.js", "files": [ "src/", @@ -31,16 +31,17 @@ "devDependencies": { "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.2", - "eslint-plugin-react": "^7.5.1" + "react": "*", + "react-dom": "*" }, "blockConfig": { "name": "download-card", - "description": "下载型信息卡片", - "chinese": "下载型信息卡片", - "category": "info-display,list", "snapshot": "https://img.alicdn.com/tfs/TB1HLu1hLDH8KJjy1XcXXcpdXXa-938-688.png", - "sketchURL": "", - "icelandURL": "", - "themePackage": "@icedesign/skin" + "themePackage": "@icedesign/skin", + "title": "下载型信息卡片", + "categories": [ + "info-display", + "list" + ] } } diff --git a/blocks/EditableTable/package.json b/blocks/EditableTable/package.json index 243ca82f55..67056bbfdf 100644 --- a/blocks/EditableTable/package.json +++ b/blocks/EditableTable/package.json @@ -29,16 +29,16 @@ "devDependencies": { "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.2", - "eslint-plugin-react": "^7.5.1" + "react": "*", + "react-dom": "*" }, "blockConfig": { "name": "editable-table", - "description": "可编辑内容的表格", - "chinese": "可编辑表格", - "category": "table", "snapshot": "https://img.alicdn.com/tfs/TB1BBhujfDH8KJjy1XcXXcpdXXa-1896-712.png", - "sketchURL": "", - "icelandURL": "", - "themePackage": "@icedesign/skin" + "themePackage": "@icedesign/skin", + "title": "可编辑表格", + "categories": [ + "table" + ] } } diff --git a/blocks/EmptyContent/package.json b/blocks/EmptyContent/package.json index adaf8e3627..788e127a3a 100644 --- a/blocks/EmptyContent/package.json +++ b/blocks/EmptyContent/package.json @@ -29,19 +29,17 @@ "devDependencies": { "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.2", - "eslint-plugin-react": "^7.5.1", - "react": "15.x", + "react": "*", "react-copy-to-clipboard": "^4.2.3", - "react-dom": "15.x" + "react-dom": "*" }, "blockConfig": { "name": "empty-content", - "description": "", - "chinese": "空内容提示", - "category": "exception", "snapshot": "https://img.alicdn.com/tfs/TB1unfJiOqAXuNjy1XdXXaYcVXa-1862-1024.png", - "sketchURL": "", - "icelandURL": "", - "themePackage": "@icedesign/skin" + "themePackage": "@icedesign/skin", + "title": "空内容提示", + "categories": [ + "exception" + ] } } diff --git a/blocks/EnhanceTable/package.json b/blocks/EnhanceTable/package.json index 05714fbbe1..6fd6faff8a 100644 --- a/blocks/EnhanceTable/package.json +++ b/blocks/EnhanceTable/package.json @@ -33,16 +33,16 @@ "devDependencies": { "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.2", - "eslint-plugin-react": "^7.5.1" + "react": "*", + "react-dom": "*" }, "blockConfig": { "name": "enhance-table", - "description": "附带简单表单筛选功能的增强筛选表单", - "chinese": "增强筛选表单", - "category": "table", "snapshot": "https://img.alicdn.com/tfs/TB1viRoixrI8KJjy0FpXXb5hVXa-1896-1134.png", - "sketchURL": "", - "icelandURL": "", - "themePackage": "@icedesign/skin" + "themePackage": "@icedesign/skin", + "title": "增强筛选表单", + "categories": [ + "table" + ] } } diff --git a/blocks/EntryCard/package.json b/blocks/EntryCard/package.json index 68daaf5516..f12860f85a 100644 --- a/blocks/EntryCard/package.json +++ b/blocks/EntryCard/package.json @@ -1,7 +1,7 @@ { "name": "@icedesign/entry-card-block", "version": "0.1.1", - "description": "", + "description": "入口列表卡片", "main": "lib/index.js", "files": [ "src/", @@ -30,16 +30,16 @@ "devDependencies": { "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.2", - "eslint-plugin-react": "^7.5.1" + "react": "*", + "react-dom": "*" }, "blockConfig": { "name": "entry-card", - "description": "入口列表卡片", - "chinese": "入口列表卡片", - "category": "list", "snapshot": "https://img.alicdn.com/tfs/TB1RSAIif6H8KJjy0FjXXaXepXa-1102-262.png", - "sketchURL": "", - "icelandURL": "", - "themePackage": "@icedesign/skin" + "themePackage": "@icedesign/skin", + "title": "入口列表卡片", + "categories": [ + "list" + ] } } diff --git a/blocks/FailureDetail/package.json b/blocks/FailureDetail/package.json index 07736f124b..9d1bf726af 100644 --- a/blocks/FailureDetail/package.json +++ b/blocks/FailureDetail/package.json @@ -1,7 +1,7 @@ { "name": "@icedesign/failure-detail-block", "version": "0.1.1", - "description": "", + "description": "提交失败详情展示", "files": [ "src/", "demo/", @@ -29,16 +29,16 @@ "devDependencies": { "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.2", - "eslint-plugin-react": "^7.5.1" + "react": "*", + "react-dom": "*" }, "blockConfig": { "name": "failure-detail", - "description": "提交失败详情展示", - "chinese": "提交失败详情展示", - "category": "info-display", "snapshot": "https://gw.alicdn.com/tfs/TB15u0eisLJ8KJjy0FnXXcFDpXa-1326-824.png", - "sketchURL": "", - "icelandURL": "", - "themePackage": "@icedesign/skin" + "themePackage": "@icedesign/skin", + "title": "提交失败详情展示", + "categories": [ + "info-display" + ] } } diff --git a/blocks/FeatureDisplay/package.json b/blocks/FeatureDisplay/package.json index b36acdc3fb..5e80ecf817 100644 --- a/blocks/FeatureDisplay/package.json +++ b/blocks/FeatureDisplay/package.json @@ -29,16 +29,16 @@ "devDependencies": { "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.2", - "eslint-plugin-react": "^7.5.1" + "react": "*", + "react-dom": "*" }, "blockConfig": { "name": "feature-display", - "description": "", - "chinese": "功能特点展示", - "category": "info-display", "snapshot": "https://img.alicdn.com/tfs/TB1W3vQi3vD8KJjy0FlXXagBFXa-1914-1522.png", - "sketchURL": "", - "icelandURL": "", - "themePackage": "@icedesign/skin" + "themePackage": "@icedesign/skin", + "title": "功能特点展示", + "categories": [ + "info-display" + ] } } diff --git a/blocks/FeedList/package.json b/blocks/FeedList/package.json index 9b41613894..14ae5e8d72 100644 --- a/blocks/FeedList/package.json +++ b/blocks/FeedList/package.json @@ -29,19 +29,17 @@ "devDependencies": { "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.2", - "eslint-plugin-react": "^7.5.1", - "react": "15.x", + "react": "*", "react-copy-to-clipboard": "^4.2.3", - "react-dom": "15.x" + "react-dom": "*" }, "blockConfig": { "name": "feed-list", - "description": " Feed 消息列表", - "chinese": "Feed 消息列表", - "category": "list", "snapshot": "https://img.alicdn.com/tfs/TB1jqXwjx6I8KJjy0FgXXXXzVXa-852-1098.png", - "sketchURL": "", - "icelandURL": "", - "themePackage": "@icedesign/skin" + "themePackage": "@icedesign/skin", + "title": "Feed 消息列表", + "categories": [ + "list" + ] } } diff --git a/blocks/FilterList/package.json b/blocks/FilterList/package.json index 2f653fa141..4834474149 100644 --- a/blocks/FilterList/package.json +++ b/blocks/FilterList/package.json @@ -1,7 +1,7 @@ { "name": "@icedesign/filter-list-block", "version": "0.1.1", - "description": "", + "description": "支持过滤的列表", "main": "lib/index.js", "files": [ "src/", @@ -30,16 +30,16 @@ "devDependencies": { "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.2", - "eslint-plugin-react": "^7.5.1" + "react": "*", + "react-dom": "*" }, "blockConfig": { "name": "filter-list", - "description": "支持过滤的列表", - "chinese": "支持过滤的列表", - "category": "list", "snapshot": "https://img.alicdn.com/tfs/TB1iUbYilfH8KJjy1XbXXbLdXXa-2000-1154.png", - "sketchURL": "", - "icelandURL": "", - "themePackage": "@icedesign/skin" + "themePackage": "@icedesign/skin", + "title": "支持过滤的列表", + "categories": [ + "list" + ] } } diff --git a/blocks/FilterTable/package.json b/blocks/FilterTable/package.json index 890930e03a..20ce1b00aa 100644 --- a/blocks/FilterTable/package.json +++ b/blocks/FilterTable/package.json @@ -33,16 +33,16 @@ "devDependencies": { "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.2", - "eslint-plugin-react": "^7.5.1" + "react": "*", + "react-dom": "*" }, "blockConfig": { "name": "filter-table", - "description": "附带筛选工具条的表格", - "chinese": "支持筛选的表格", - "category": "table", "snapshot": "https://img.alicdn.com/tfs/TB1kD3JinvI8KJjSspjXXcgjXXa-1926-1536.png", - "sketchURL": "", - "icelandURL": "", - "themePackage": "@icedesign/skin" + "themePackage": "@icedesign/skin", + "title": "支持筛选的表格", + "categories": [ + "table" + ] } } diff --git a/blocks/FilterWithSearch/package.json b/blocks/FilterWithSearch/package.json index f2cc54b812..b42bb0579a 100644 --- a/blocks/FilterWithSearch/package.json +++ b/blocks/FilterWithSearch/package.json @@ -29,16 +29,16 @@ "devDependencies": { "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.2", - "eslint-plugin-react": "^7.5.1" + "react": "*", + "react-dom": "*" }, "blockConfig": { "name": "filter-with-search", - "description": " 含搜索筛选", - "chinese": " 含搜索筛选", - "category": "filter", "snapshot": "https://img.alicdn.com/tfs/TB1vqnmihTI8KJjSspiXXbM4FXa-1906-136.png", - "sketchURL": "", - "icelandURL": "", - "themePackage": "@icedesign/skin" + "themePackage": "@icedesign/skin", + "title": " 含搜索筛选", + "categories": [ + "filter" + ] } } diff --git a/blocks/Footer/package.json b/blocks/Footer/package.json index fadd764416..a38d4fff6f 100644 --- a/blocks/Footer/package.json +++ b/blocks/Footer/package.json @@ -29,19 +29,17 @@ "devDependencies": { "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.2", - "eslint-plugin-react": "^7.5.1", - "react": "15.x", + "react": "*", "react-copy-to-clipboard": "^4.2.3", - "react-dom": "15.x" + "react-dom": "*" }, "blockConfig": { "name": "footer", - "description": "", - "chinese": "页脚", - "category": "info-display", "snapshot": "https://img.alicdn.com/tfs/TB1if0vg5qAXuNjy1XdXXaYcVXa-2516-356.png", - "sketchURL": "", - "icelandURL": "", - "themePackage": "@icedesign/skin" + "themePackage": "@icedesign/skin", + "title": "页脚", + "categories": [ + "info-display" + ] } } diff --git a/blocks/FooterInfo/package.json b/blocks/FooterInfo/package.json index 88ec674265..bbae9b358e 100644 --- a/blocks/FooterInfo/package.json +++ b/blocks/FooterInfo/package.json @@ -29,19 +29,17 @@ "devDependencies": { "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.2", - "eslint-plugin-react": "^7.5.1", - "react": "15.x", + "react": "*", "react-copy-to-clipboard": "^4.2.3", - "react-dom": "15.x" + "react-dom": "*" }, "blockConfig": { "name": "footer-info", - "description": "", - "chinese": "页脚信息展示", - "category": "info-display", "snapshot": "https://img.alicdn.com/tfs/TB14GfWjhrI8KJjy0FpXXb5hVXa-2566-806.png", - "sketchURL": "", - "icelandURL": "", - "themePackage": "@icedesign/skin" + "themePackage": "@icedesign/skin", + "title": "页脚信息展示", + "categories": [ + "info-display" + ] } } diff --git a/blocks/ForgetPasswordForm/package.json b/blocks/ForgetPasswordForm/package.json index b37d5e68ca..ad9847c6f4 100644 --- a/blocks/ForgetPasswordForm/package.json +++ b/blocks/ForgetPasswordForm/package.json @@ -30,19 +30,17 @@ "devDependencies": { "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.2", - "eslint-plugin-react": "^7.5.1", - "react": "15.x", + "react": "*", "react-copy-to-clipboard": "^4.2.3", - "react-dom": "15.x" + "react-dom": "*" }, "blockConfig": { "name": "forget-password-form", - "description": "忘记密码", - "chinese": "忘记密码", - "category": "form", "snapshot": "https://img.alicdn.com/tfs/TB1TjBilvDH8KJjy1XcXXcpdXXa-1102-554.png", - "sketchURL": "", - "icelandURL": "", - "themePackage": "@icedesign/skin" + "themePackage": "@icedesign/skin", + "title": "忘记密码", + "categories": [ + "form" + ] } } diff --git a/blocks/InfoDisplayTab/package.json b/blocks/InfoDisplayTab/package.json index 45df60e56f..48f25830a3 100644 --- a/blocks/InfoDisplayTab/package.json +++ b/blocks/InfoDisplayTab/package.json @@ -1,7 +1,7 @@ { "name": "@icedesign/info-display-tab-block", "version": "0.1.1", - "description": "", + "description": "标签页信息展示", "main": "lib/index.js", "files": [ "src/", @@ -32,16 +32,16 @@ "devDependencies": { "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.2", - "eslint-plugin-react": "^7.5.1" + "react": "*", + "react-dom": "*" }, "blockConfig": { "name": "info-display-tab", - "description": "标签页信息展示", - "chinese": "标签页信息展示", - "category": "info-display", "snapshot": "https://img.alicdn.com/tfs/TB1eHD0fiqAXuNjy1XdXXaYcVXa-914-700.png", - "sketchURL": "", - "icelandURL": "", - "themePackage": "@icedesign/skin" + "themePackage": "@icedesign/skin", + "title": "标签页信息展示", + "categories": [ + "info-display" + ] } } diff --git a/blocks/InfoDisplayTable/package.json b/blocks/InfoDisplayTable/package.json index 98b61ccdd8..59be29e1b8 100644 --- a/blocks/InfoDisplayTable/package.json +++ b/blocks/InfoDisplayTable/package.json @@ -1,7 +1,7 @@ { "name": "@icedesign/info-display-table-block", "version": "0.1.1", - "description": "", + "description": "两栏信息展示型表格", "main": "lib/index.js", "files": [ "src/", @@ -30,16 +30,16 @@ "devDependencies": { "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.2", - "eslint-plugin-react": "^7.5.1" + "react": "*", + "react-dom": "*" }, "blockConfig": { "name": "info-display-table", - "description": "两栏信息展示型表格", - "chinese": "两栏信息展示型表格", - "category": "table", "snapshot": "https://img.alicdn.com/tfs/TB1niC_fiqAXuNjy1XdXXaYcVXa-959-294.png", - "sketchURL": "", - "icelandURL": "", - "themePackage": "@icedesign/skin" + "themePackage": "@icedesign/skin", + "title": "两栏信息展示型表格", + "categories": [ + "table" + ] } } diff --git a/blocks/JoinUs/package.json b/blocks/JoinUs/package.json index ae877390a8..7fa24f6b7c 100644 --- a/blocks/JoinUs/package.json +++ b/blocks/JoinUs/package.json @@ -30,19 +30,17 @@ "devDependencies": { "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.2", - "eslint-plugin-react": "^7.5.1", - "react": "15.x", + "react": "*", "react-copy-to-clipboard": "^4.2.3", - "react-dom": "15.x" + "react-dom": "*" }, "blockConfig": { "name": "join-us", - "description": "", - "chinese": "加入我们", - "category": "form", "snapshot": "https://img.alicdn.com/tfs/TB1L1SQjr_I8KJjy1XaXXbsxpXa-2650-1126.png", - "sketchURL": "", - "icelandURL": "", - "themePackage": "@icedesign/skin" + "themePackage": "@icedesign/skin", + "title": "加入我们", + "categories": [ + "form" + ] } } diff --git a/blocks/LandingIntroBanner/package.json b/blocks/LandingIntroBanner/package.json index 67ab910cd7..c9bf0f3a71 100644 --- a/blocks/LandingIntroBanner/package.json +++ b/blocks/LandingIntroBanner/package.json @@ -29,16 +29,16 @@ "devDependencies": { "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.3", - "eslint-plugin-react": "^7.5.1" + "react": "*", + "react-dom": "*" }, "blockConfig": { "name": "landing-intro-banner", - "description": "首页介绍 Banner", - "chinese": "首页介绍 Banner", - "category": "info-display", "snapshot": "https://img.alicdn.com/tfs/TB1zP8Flx6I8KJjy0FgXXXXzVXa-2524-1154.png", - "sketchURL": "", - "icelandURL": "", - "themePackage": "@icedesign/skin" + "themePackage": "@icedesign/skin", + "title": "首页介绍 Banner", + "categories": [ + "info-display" + ] } } diff --git a/blocks/LeftContentDisplay/package.json b/blocks/LeftContentDisplay/package.json index bcaff725d2..5b4975169a 100644 --- a/blocks/LeftContentDisplay/package.json +++ b/blocks/LeftContentDisplay/package.json @@ -29,19 +29,17 @@ "devDependencies": { "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.2", - "eslint-plugin-react": "^7.5.1", - "react": "15.x", + "react": "*", "react-copy-to-clipboard": "^4.2.3", - "react-dom": "15.x" + "react-dom": "*" }, "blockConfig": { "name": "left-content-display", - "description": "", - "chinese": "功能描述-右图左文", - "category": "info-display", "snapshot": "https://img.alicdn.com/tfs/TB1g58VjxrI8KJjy0FpXXb5hVXa-2368-1192.png", - "sketchURL": "", - "icelandURL": "", - "themePackage": "@icedesign/skin" + "themePackage": "@icedesign/skin", + "title": "功能描述-右图左文", + "categories": [ + "info-display" + ] } } diff --git a/blocks/LiteTable/package.json b/blocks/LiteTable/package.json index 81f565f033..f6af661638 100644 --- a/blocks/LiteTable/package.json +++ b/blocks/LiteTable/package.json @@ -29,19 +29,17 @@ "devDependencies": { "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.2", - "eslint-plugin-react": "^7.5.1", - "react": "15.x", + "react": "*", "react-copy-to-clipboard": "^4.2.3", - "react-dom": "15.x" + "react-dom": "*" }, "blockConfig": { "name": "lite-table", - "description": "简单的附带状态的表格", - "chinese": "简单带状态表格", - "category": "table", "snapshot": "https://img.alicdn.com/tfs/TB1_Oy4jcrI8KJjy0FhXXbfnpXa-840-956.png", - "sketchURL": "", - "icelandURL": "", - "themePackage": "@icedesign/skin" + "themePackage": "@icedesign/skin", + "title": "简单带状态表格", + "categories": [ + "table" + ] } } diff --git a/blocks/MessageList/package.json b/blocks/MessageList/package.json index 18fa661757..eeacd66eee 100644 --- a/blocks/MessageList/package.json +++ b/blocks/MessageList/package.json @@ -29,16 +29,16 @@ "devDependencies": { "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.2", - "eslint-plugin-react": "^7.5.1" + "react": "*", + "react-dom": "*" }, "blockConfig": { "name": "message-list", - "description": "消息列表", - "chinese": "消息列表", - "category": "list", "snapshot": "https://img.alicdn.com/tfs/TB1hbVYlsLJ8KJjy0FnXXcFDpXa-1900-1180.png", - "sketchURL": "", - "icelandURL": "", - "themePackage": "@icedesign/skin" + "themePackage": "@icedesign/skin", + "title": "消息列表", + "categories": [ + "list" + ] } } diff --git a/blocks/MonacoEditor/package.json b/blocks/MonacoEditor/package.json index a2fc6cf19a..b448b86be8 100644 --- a/blocks/MonacoEditor/package.json +++ b/blocks/MonacoEditor/package.json @@ -31,19 +31,17 @@ "devDependencies": { "@icedesign/demo-layout": "^0.1.2", "@icedesign/skin": "^0.1.2", - "eslint-plugin-react": "^7.5.1", - "react": "15.x", + "react": "*", "react-copy-to-clipboard": "^4.2.3", - "react-dom": "15.x" + "react-dom": "*" }, "blockConfig": { "name": "monaco-editor", - "description": "Monaco 代码编辑器", - "chinese": "Monaco 代码编辑器", - "category": "form", "snapshot": "https://gw.alicdn.com/tfs/TB1bOKfjvDH8KJjy1XcXXcpdXXa-1886-1236.png", - "sketchURL": "", - "icelandURL": "", - "themePackage": "@icedesign/skin" + "themePackage": "@icedesign/skin", + "title": "Monaco 代码编辑器", + "categories": [ + "form" + ] } } diff --git a/blocks/NotPermission/package.json b/blocks/NotPermission/package.json index ebdd5737d0..31452be8c4 100644 --- a/blocks/NotPermission/package.json +++ b/blocks/NotPermission/package.json @@ -29,19 +29,17 @@ "devDependencies": { "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.2", - "eslint-plugin-react": "^7.5.1", - "react": "15.x", + "react": "*", "react-copy-to-clipboard": "^4.2.3", - "react-dom": "15.x" + "react-dom": "*" }, "blockConfig": { "name": "not-permission", - "description": "", - "chinese": "无权限提示", - "category": "exception", "snapshot": "https://img.alicdn.com/tfs/TB1XvlnjtfJ8KJjy0FeXXXKEXXa-1900-1072.png", - "sketchURL": "", - "icelandURL": "", - "themePackage": "@icedesign/skin" + "themePackage": "@icedesign/skin", + "title": "无权限提示", + "categories": [ + "exception" + ] } } diff --git a/blocks/OperationTable/package.json b/blocks/OperationTable/package.json index 6bc78333f9..8b84268607 100644 --- a/blocks/OperationTable/package.json +++ b/blocks/OperationTable/package.json @@ -34,16 +34,16 @@ "devDependencies": { "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.2", - "eslint-plugin-react": "^7.5.1" + "react": "*", + "react-dom": "*" }, "blockConfig": { "name": "operation-table", - "description": "附带操作按钮的表格", - "chinese": "附带操作的表格", - "category": "table", "snapshot": "https://img.alicdn.com/tfs/TB17r2OilfH8KJjy1XbXXbLdXXa-1908-1482.png", - "sketchURL": "", - "icelandURL": "", - "themePackage": "@icedesign/skin" + "themePackage": "@icedesign/skin", + "title": "附带操作的表格", + "categories": [ + "table" + ] } } diff --git a/blocks/OrderList/package.json b/blocks/OrderList/package.json index 8a54ff881c..23e7626835 100644 --- a/blocks/OrderList/package.json +++ b/blocks/OrderList/package.json @@ -1,7 +1,7 @@ { "name": "@icedesign/order-list-block", "version": "0.1.1", - "description": "", + "description": "订单型列表", "main": "lib/index.js", "files": [ "src/", @@ -31,16 +31,16 @@ "devDependencies": { "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.2", - "eslint-plugin-react": "^7.5.1" + "react": "*", + "react-dom": "*" }, "blockConfig": { "name": "order-list", - "description": "订单型列表", - "chinese": "订单型列表", - "category": "list", "snapshot": "https://img.alicdn.com/tfs/TB1QQY0fiqAXuNjy1XdXXaYcVXa-960-646.png", - "sketchURL": "", - "icelandURL": "", - "themePackage": "@icedesign/skin" + "themePackage": "@icedesign/skin", + "title": "订单型列表", + "categories": [ + "list" + ] } } diff --git a/blocks/OurTeam/package.json b/blocks/OurTeam/package.json index d2b119f625..1ba39c8062 100644 --- a/blocks/OurTeam/package.json +++ b/blocks/OurTeam/package.json @@ -29,16 +29,16 @@ "devDependencies": { "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.2", - "eslint-plugin-react": "^7.5.1" + "react": "*", + "react-dom": "*" }, "blockConfig": { "name": "our-team", - "description": "", - "chinese": "我们的团队", - "category": "info-display", "snapshot": "https://img.alicdn.com/tfs/TB1YabDi8fH8KJjy1XbXXbLdXXa-1906-1210.png", - "sketchURL": "", - "icelandURL": "", - "themePackage": "@icedesign/skin" + "themePackage": "@icedesign/skin", + "title": "我们的团队", + "categories": [ + "info-display" + ] } } diff --git a/blocks/PictureTextList/package.json b/blocks/PictureTextList/package.json index 99202b0dbd..d3ba4fa005 100644 --- a/blocks/PictureTextList/package.json +++ b/blocks/PictureTextList/package.json @@ -29,16 +29,16 @@ "devDependencies": { "@icedesign/demo-layout": "^0.1.2", "@icedesign/skin": "^0.1.2", - "eslint-plugin-react": "^7.5.1" + "react": "*", + "react-dom": "*" }, "blockConfig": { "name": "picture-text-list", - "description": "图文列表", - "chinese": "图文列表", - "category": "list", "snapshot": "https://gw.alicdn.com/tfs/TB1ZbgJilTH8KJjy0FiXXcRsXXa-2026-1556.png", - "sketchURL": "", - "icelandURL": "", - "themePackage": "@icedesign/skin" + "themePackage": "@icedesign/skin", + "title": "图文列表", + "categories": [ + "list" + ] } } diff --git a/blocks/PieDoughnutChart/package.json b/blocks/PieDoughnutChart/package.json index 35ee789e02..e610fd877d 100644 --- a/blocks/PieDoughnutChart/package.json +++ b/blocks/PieDoughnutChart/package.json @@ -1,7 +1,7 @@ { "name": "@icedesign/pie-doughnut-chart-block", "version": "0.1.1", - "description": "", + "description": "饼图", "main": "lib/index.js", "files": [ "src/", @@ -32,16 +32,16 @@ "devDependencies": { "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.2", - "eslint-plugin-react": "^7.5.1" + "react": "*", + "react-dom": "*" }, "blockConfig": { "name": "pie-doughnut-chart", - "description": "饼图", - "chinese": "饼图", - "category": "chart", "snapshot": "https://img.alicdn.com/tfs/TB1T_M6ih6I8KJjy0FgXXXXzVXa-1894-708.png", - "sketchURL": "", - "icelandURL": "", - "themePackage": "@icedesign/skin" + "themePackage": "@icedesign/skin", + "title": "饼图", + "categories": [ + "chart" + ] } } diff --git a/blocks/PriceCard/package.json b/blocks/PriceCard/package.json index 5eec2bfed2..69c7766879 100644 --- a/blocks/PriceCard/package.json +++ b/blocks/PriceCard/package.json @@ -29,19 +29,17 @@ "devDependencies": { "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.2", - "eslint-plugin-react": "^7.5.1", - "react": "15.x", + "react": "*", "react-copy-to-clipboard": "^4.2.3", - "react-dom": "15.x" + "react-dom": "*" }, "blockConfig": { "name": "price-card", - "description": "", - "chinese": "价格展示", - "category": "info-display", "snapshot": "https://img.alicdn.com/tfs/TB1_5jHjgvD8KJjy0FlXXagBFXa-2810-1074.png", - "sketchURL": "", - "icelandURL": "", - "themePackage": "@icedesign/skin" + "themePackage": "@icedesign/skin", + "title": "价格展示", + "categories": [ + "info-display" + ] } } diff --git a/blocks/PriceInfo/package.json b/blocks/PriceInfo/package.json index 467e3d78e9..09173e7b3a 100644 --- a/blocks/PriceInfo/package.json +++ b/blocks/PriceInfo/package.json @@ -29,16 +29,16 @@ "devDependencies": { "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.2", - "eslint-plugin-react": "^7.5.1" + "react": "*", + "react-dom": "*" }, "blockConfig": { "name": "price-info", - "description": "", - "chinese": "价格信息展示", - "category": "info-display", "snapshot": "https://img.alicdn.com/tfs/TB1Z6GPgOqAXuNjy1XdXXaYcVXa-2632-1226.png", - "sketchURL": "", - "icelandURL": "", - "themePackage": "@icedesign/skin" + "themePackage": "@icedesign/skin", + "title": "价格信息展示", + "categories": [ + "info-display" + ] } } diff --git a/blocks/PrivateMessageForm/package.json b/blocks/PrivateMessageForm/package.json index e442af090c..482d7ab2fd 100644 --- a/blocks/PrivateMessageForm/package.json +++ b/blocks/PrivateMessageForm/package.json @@ -29,19 +29,17 @@ "devDependencies": { "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.2", - "eslint-plugin-react": "^7.5.1", - "react": "15.x", + "react": "*", "react-copy-to-clipboard": "^4.2.3", - "react-dom": "15.x" + "react-dom": "*" }, "blockConfig": { "name": "private-message-form", - "description": "私有消息表单", - "chinese": "私有消息表单", - "category": "form", "snapshot": "https://img.alicdn.com/tfs/TB1H5Q1lhrI8KJjy0FpXXb5hVXa-1234-784.png", - "sketchURL": "", - "icelandURL": "", - "themePackage": "@icedesign/skin" + "themePackage": "@icedesign/skin", + "title": "私有消息表单", + "categories": [ + "form" + ] } } diff --git a/blocks/ProductInfo/package.json b/blocks/ProductInfo/package.json index f9ffac256e..7ffd510ac8 100644 --- a/blocks/ProductInfo/package.json +++ b/blocks/ProductInfo/package.json @@ -1,7 +1,7 @@ { "name": "@icedesign/product-info-block", "version": "0.1.1", - "description": "", + "description": "产品信息展示", "files": [ "src/", "demo/", @@ -29,16 +29,16 @@ "devDependencies": { "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.2", - "eslint-plugin-react": "^7.5.1" + "react": "*", + "react-dom": "*" }, "blockConfig": { "name": "product-info", - "description": "产品信息展示", - "chinese": "产品信息展示", - "category": "info-display", "snapshot": "https://img.alicdn.com/tfs/TB1IQ9Fif6H8KJjy0FjXXaXepXa-955-528.png", - "sketchURL": "", - "icelandURL": "", - "themePackage": "@icedesign/skin" + "themePackage": "@icedesign/skin", + "title": "产品信息展示", + "categories": [ + "info-display" + ] } } diff --git a/blocks/ProgressTable/package.json b/blocks/ProgressTable/package.json index 560efae546..2914cc968d 100644 --- a/blocks/ProgressTable/package.json +++ b/blocks/ProgressTable/package.json @@ -1,7 +1,7 @@ { "name": "@icedesign/progress-table-block", "version": "0.1.1", - "description": "", + "description": "进度条表格", "main": "lib/index.js", "files": [ "src/", @@ -29,16 +29,16 @@ "devDependencies": { "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.3", - "eslint-plugin-react": "^7.5.1" + "react": "*", + "react-dom": "*" }, "blockConfig": { "name": "progress-table", - "description": "进度条表格", - "chinese": "进度条表格", - "category": "table", "snapshot": "https://img.alicdn.com/tfs/TB1MSwOih6I8KJjy0FgXXXXzVXa-1828-1206.png", - "sketchURL": "", - "icelandURL": "", - "themePackage": "@icedesign/skin" + "themePackage": "@icedesign/skin", + "title": "进度条表格", + "categories": [ + "table" + ] } } diff --git a/blocks/RegisterForm/package.json b/blocks/RegisterForm/package.json index aff196ac9b..b4a42b771c 100644 --- a/blocks/RegisterForm/package.json +++ b/blocks/RegisterForm/package.json @@ -1,7 +1,7 @@ { "name": "@icedesign/register-form-block", "version": "0.1.1", - "description": "", + "description": "注册表单", "main": "lib/index.js", "files": [ "src/", @@ -30,16 +30,16 @@ "devDependencies": { "@icedesign/demo-layout": "^0.1.2", "@icedesign/skin": "^0.1.2", - "eslint-plugin-react": "^7.5.1" + "react": "*", + "react-dom": "*" }, "blockConfig": { "name": "register-form", - "description": "注册表单", - "chinese": "注册表单", - "category": "form", "snapshot": "https://img.alicdn.com/tfs/TB1hLZ7ih6I8KJjy0FgXXXXzVXa-574-772.png", - "sketchURL": "", - "icelandURL": "", - "themePackage": "@icedesign/skin" + "themePackage": "@icedesign/skin", + "title": "注册表单", + "categories": [ + "form" + ] } } diff --git a/blocks/RightContentDisplay/package.json b/blocks/RightContentDisplay/package.json index d5ac20fedd..35abef4913 100644 --- a/blocks/RightContentDisplay/package.json +++ b/blocks/RightContentDisplay/package.json @@ -29,19 +29,17 @@ "devDependencies": { "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.2", - "eslint-plugin-react": "^7.5.1", - "react": "15.x", + "react": "*", "react-copy-to-clipboard": "^4.2.3", - "react-dom": "15.x" + "react-dom": "*" }, "blockConfig": { "name": "right-content-display", - "description": "", - "chinese": "功能描述-左图右文", - "category": "info-display", "snapshot": "https://img.alicdn.com/tfs/TB1O.0KjC_I8KJjy0FoXXaFnVXa-2344-1184.png", - "sketchURL": "", - "icelandURL": "", - "themePackage": "@icedesign/skin" + "themePackage": "@icedesign/skin", + "title": "功能描述-左图右文", + "categories": [ + "info-display" + ] } } diff --git a/blocks/SelectableTable/package.json b/blocks/SelectableTable/package.json index 08a6c20eb3..4713882073 100644 --- a/blocks/SelectableTable/package.json +++ b/blocks/SelectableTable/package.json @@ -1,7 +1,7 @@ { "name": "@icedesign/selectable-table-block", "version": "0.1.1", - "description": "", + "description": "可批量操作的表格", "main": "lib/index.js", "files": [ "src/", @@ -30,16 +30,16 @@ "devDependencies": { "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.2", - "eslint-plugin-react": "^7.5.1" + "react": "*", + "react-dom": "*" }, "blockConfig": { "name": "selectable-table", - "description": "可批量操作的表格", - "chinese": "可批量操作的表格", - "category": "table", "snapshot": "https://img.alicdn.com/tfs/TB19Y4Ff5qAXuNjy1XdXXaYcVXa-1017-655.png", - "sketchURL": "", - "icelandURL": "", - "themePackage": "@icedesign/skin" + "themePackage": "@icedesign/skin", + "title": "可批量操作的表格", + "categories": [ + "table" + ] } } diff --git a/blocks/SignupForm/package.json b/blocks/SignupForm/package.json index 61d05475d9..551d73e32c 100644 --- a/blocks/SignupForm/package.json +++ b/blocks/SignupForm/package.json @@ -1,7 +1,7 @@ { "name": "@icedesign/signup-form-block", "version": "0.1.1", - "description": "", + "description": "登录表单", "main": "lib/index.js", "files": [ "src/", @@ -30,16 +30,16 @@ "devDependencies": { "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.2", - "eslint-plugin-react": "^7.5.1" + "react": "*", + "react-dom": "*" }, "blockConfig": { "name": "signup-form", - "description": "登录表单", - "chinese": "登录表单", - "category": "form", "snapshot": "https://img.alicdn.com/tfs/TB1wHA9ib_I8KJjy1XaXXbsxpXa-616-612.png", - "sketchURL": "", - "icelandURL": "", - "themePackage": "@icedesign/skin" + "themePackage": "@icedesign/skin", + "title": "登录表单", + "categories": [ + "form" + ] } } diff --git a/blocks/SimpleFluencyForm/package.json b/blocks/SimpleFluencyForm/package.json index 144c2257c9..65f5242408 100644 --- a/blocks/SimpleFluencyForm/package.json +++ b/blocks/SimpleFluencyForm/package.json @@ -30,19 +30,17 @@ "devDependencies": { "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.2", - "eslint-plugin-react": "^7.5.1", - "react": "15.x", + "react": "*", "react-copy-to-clipboard": "^4.2.3", - "react-dom": "15.x" + "react-dom": "*" }, "blockConfig": { "name": "simple-fluency-form", - "description": "SimpleFluencyForm", - "chinese": "简单流畅型表单", - "category": "form", "snapshot": "https://gw.alicdn.com/tfs/TB1emXIjDnI8KJjy0FfXXcdoVXa-1776-902.png", - "sketchURL": "", - "icelandURL": "", - "themePackage": "@icedesign/skin" + "themePackage": "@icedesign/skin", + "title": "简单流畅型表单", + "categories": [ + "form" + ] } } diff --git a/blocks/SimpleFormDialog/package.json b/blocks/SimpleFormDialog/package.json index 36efa882f6..7d9968ee17 100644 --- a/blocks/SimpleFormDialog/package.json +++ b/blocks/SimpleFormDialog/package.json @@ -30,16 +30,16 @@ "devDependencies": { "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.2", - "eslint-plugin-react": "^7.5.1" + "react": "*", + "react-dom": "*" }, "blockConfig": { "name": "simple-form-dialog", - "description": "简单的表单弹窗", - "chinese": "简单表单弹窗", - "category": "modal", "snapshot": "https://img.alicdn.com/tfs/TB1.65ri9_I8KJjy0FoXXaFnVXa-1270-628.png", - "sketchURL": "", - "icelandURL": "", - "themePackage": "@icedesign/skin" + "themePackage": "@icedesign/skin", + "title": "简单表单弹窗", + "categories": [ + "modal" + ] } } diff --git a/blocks/SimpleTable/package.json b/blocks/SimpleTable/package.json index 2666f96dfb..3480297478 100644 --- a/blocks/SimpleTable/package.json +++ b/blocks/SimpleTable/package.json @@ -32,16 +32,16 @@ "devDependencies": { "@icedesign/demo-layout": "latest", "@icedesign/skin": "^0.1.3", - "eslint-plugin-react": "^7.5.1" + "react": "*", + "react-dom": "*" }, "blockConfig": { "name": "simple-table", - "description": "基础的表格", - "chinese": "基础表格", - "category": "table", "snapshot": "https://img.alicdn.com/tfs/TB1dnoMib_I8KJjy1XaXXbsxpXa-1908-1496.png", - "sketchURL": "", - "icelandURL": "", - "themePackage": "@icedesign/skin" + "themePackage": "@icedesign/skin", + "title": "基础表格", + "categories": [ + "table" + ] } } diff --git a/blocks/SimpleTestimonial/package.json b/blocks/SimpleTestimonial/package.json index f327e02c27..c94fcca6a6 100644 --- a/blocks/SimpleTestimonial/package.json +++ b/blocks/SimpleTestimonial/package.json @@ -29,16 +29,16 @@ "devDependencies": { "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.2", - "eslint-plugin-react": "^7.5.1" + "react": "*", + "react-dom": "*" }, "blockConfig": { "name": "simple-testimonial", - "description": "", - "chinese": "简单的客户评价", - "category": "info-display", "snapshot": "https://img.alicdn.com/tfs/TB1X6osi4rI8KJjy0FpXXb5hVXa-1906-474.png", - "sketchURL": "", - "icelandURL": "", - "themePackage": "@icedesign/skin" + "themePackage": "@icedesign/skin", + "title": "简单的客户评价", + "categories": [ + "info-display" + ] } } diff --git a/blocks/SortCardList/package.json b/blocks/SortCardList/package.json index 0452a31d90..8b44b40790 100644 --- a/blocks/SortCardList/package.json +++ b/blocks/SortCardList/package.json @@ -29,19 +29,17 @@ "devDependencies": { "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.2", - "eslint-plugin-react": "^7.5.1", - "react": "15.x", + "react": "*", "react-copy-to-clipboard": "^4.2.3", - "react-dom": "15.x" + "react-dom": "*" }, "blockConfig": { "name": "sort-card-list", - "description": "拖拽排序卡片列表", - "chinese": "拖拽排序卡片列表", - "category": "list", "snapshot": "https://gw.alicdn.com/tfs/TB1CmT8jfDH8KJjy1XcXXcpdXXa-2034-830.png", - "sketchURL": "", - "icelandURL": "", - "themePackage": "@icedesign/skin" + "themePackage": "@icedesign/skin", + "title": "拖拽排序卡片列表", + "categories": [ + "list" + ] } } diff --git a/blocks/StatisticalCard/package.json b/blocks/StatisticalCard/package.json index 519decdada..298bce08ea 100644 --- a/blocks/StatisticalCard/package.json +++ b/blocks/StatisticalCard/package.json @@ -29,16 +29,16 @@ "devDependencies": { "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.2", - "eslint-plugin-react": "^7.5.1" + "react": "*", + "react-dom": "*" }, "blockConfig": { "name": "statistical-card", - "description": "统计型卡片", - "chinese": "统计型卡片", - "category": "data-display", "snapshot": "https://img.alicdn.com/tfs/TB1MLLbilfH8KJjy1XbXXbLdXXa-1910-210.png", - "sketchURL": "", - "icelandURL": "", - "themePackage": "@icedesign/skin" + "themePackage": "@icedesign/skin", + "title": "统计型卡片", + "categories": [ + "data-display" + ] } } diff --git a/blocks/Subscribe/package.json b/blocks/Subscribe/package.json index 3b045bc60f..217d99b6be 100644 --- a/blocks/Subscribe/package.json +++ b/blocks/Subscribe/package.json @@ -30,19 +30,17 @@ "devDependencies": { "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.2", - "eslint-plugin-react": "^7.5.1", - "react": "15.x", + "react": "*", "react-copy-to-clipboard": "^4.2.3", - "react-dom": "15.x" + "react-dom": "*" }, "blockConfig": { "name": "subscribe", - "description": "订阅", - "chinese": "订阅", - "category": "form", "snapshot": "https://gw.alicdn.com/tfs/TB1HFVejvDH8KJjy1XcXXcpdXXa-1832-382.png", - "sketchURL": "", - "icelandURL": "", - "themePackage": "@icedesign/skin" + "themePackage": "@icedesign/skin", + "title": "订阅", + "categories": [ + "form" + ] } } diff --git a/blocks/SuccessDetail/package.json b/blocks/SuccessDetail/package.json index d4e3751622..0d534a7d93 100644 --- a/blocks/SuccessDetail/package.json +++ b/blocks/SuccessDetail/package.json @@ -1,7 +1,7 @@ { "name": "@icedesign/success-detail-block", "version": "0.1.1", - "description": "", + "description": "成功详情信息展示", "files": [ "src/", "demo/", @@ -29,16 +29,16 @@ "devDependencies": { "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.2", - "eslint-plugin-react": "^7.5.1" + "react": "*", + "react-dom": "*" }, "blockConfig": { "name": "success-detail", - "description": "成功详情信息展示", - "chinese": "成功详情信息展示", - "category": "info-display", "snapshot": "https://gw.alicdn.com/tfs/TB1rmoainnI8KJjy0FfXXcdoVXa-1750-986.png", - "sketchURL": "", - "icelandURL": "", - "themePackage": "@icedesign/skin" + "themePackage": "@icedesign/skin", + "title": "成功详情信息展示", + "categories": [ + "info-display" + ] } } diff --git a/blocks/SuccessDialog/package.json b/blocks/SuccessDialog/package.json index 7cb1e8d53c..186aaa889b 100644 --- a/blocks/SuccessDialog/package.json +++ b/blocks/SuccessDialog/package.json @@ -29,16 +29,16 @@ "devDependencies": { "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.2", - "eslint-plugin-react": "^7.5.1" + "react": "*", + "react-dom": "*" }, "blockConfig": { "name": "success-dialog", - "description": "", - "chinese": "提示框-成功", - "category": "modal", "snapshot": "https://img.alicdn.com/tfs/TB1CMVpi5qAXuNjy1XdXXaYcVXa-1278-540.png", - "sketchURL": "", - "icelandURL": "", - "themePackage": "@icedesign/skin" + "themePackage": "@icedesign/skin", + "title": "提示框-成功", + "categories": [ + "modal" + ] } } diff --git a/blocks/SystemNoticeList/package.json b/blocks/SystemNoticeList/package.json index b26cf234b0..b4612516e1 100644 --- a/blocks/SystemNoticeList/package.json +++ b/blocks/SystemNoticeList/package.json @@ -1,7 +1,7 @@ { "name": "@icedesign/system-notice-list-block", "version": "0.1.1", - "description": "", + "description": "系统消息列表", "main": "lib/index.js", "files": [ "src/", @@ -30,16 +30,16 @@ "devDependencies": { "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.2", - "eslint-plugin-react": "^7.5.1" + "react": "*", + "react-dom": "*" }, "blockConfig": { "name": "system-notice-list", - "description": "系统消息列表", - "chinese": "系统消息列表", - "category": "list", "snapshot": "https://img.alicdn.com/tfs/TB1Xz9cf5qAXuNjy1XdXXaYcVXa-1904-638.png", - "sketchURL": "", - "icelandURL": "", - "themePackage": "@icedesign/skin" + "themePackage": "@icedesign/skin", + "title": "系统消息列表", + "categories": [ + "list" + ] } } diff --git a/blocks/TabArticle/package.json b/blocks/TabArticle/package.json index f9b55407c9..f9fb7f26e9 100644 --- a/blocks/TabArticle/package.json +++ b/blocks/TabArticle/package.json @@ -29,16 +29,16 @@ "devDependencies": { "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.2", - "eslint-plugin-react": "^7.5.1" + "react": "*", + "react-dom": "*" }, "blockConfig": { "name": "tab-article", - "description": "tab和文章列表组合", - "chinese": "tab和文章列表组合", - "category": "list", "snapshot": "https://gw.alicdn.com/tfs/TB18xpkivDH8KJjy1XcXXcpdXXa-1706-1516.png", - "sketchURL": "", - "icelandURL": "", - "themePackage": "@icedesign/skin" + "themePackage": "@icedesign/skin", + "title": "tab和文章列表组合", + "categories": [ + "list" + ] } } diff --git a/blocks/TabDialog/package.json b/blocks/TabDialog/package.json index 1f41154e58..d871ea9aea 100644 --- a/blocks/TabDialog/package.json +++ b/blocks/TabDialog/package.json @@ -29,16 +29,16 @@ "devDependencies": { "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.2", - "eslint-plugin-react": "^7.5.1" + "react": "*", + "react-dom": "*" }, "blockConfig": { "name": "tab-dialog", - "description": "标签内容弹窗", - "chinese": "标签内容弹窗", - "category": "modal", "snapshot": "https://img.alicdn.com/tfs/TB19AF4gOqAXuNjy1XdXXaYcVXa-1262-812.png", - "sketchURL": "", - "icelandURL": "", - "themePackage": "@icedesign/skin" + "themePackage": "@icedesign/skin", + "title": "标签内容弹窗", + "categories": [ + "modal" + ] } } diff --git a/blocks/TagMessageList/package.json b/blocks/TagMessageList/package.json index 2d89bd261b..5bcc38ac78 100644 --- a/blocks/TagMessageList/package.json +++ b/blocks/TagMessageList/package.json @@ -29,19 +29,17 @@ "devDependencies": { "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.2", - "eslint-plugin-react": "^7.5.1", - "react": "15.x", + "react": "*", "react-copy-to-clipboard": "^4.2.3", - "react-dom": "15.x" + "react-dom": "*" }, "blockConfig": { "name": "tag-message-list", - "description": "标签消息列表", - "chinese": "标签消息列表", - "category": "list", "snapshot": "https://img.alicdn.com/tfs/TB1VfEejlfH8KJjy1XbXXbLdXXa-846-776.png", - "sketchURL": "", - "icelandURL": "", - "themePackage": "@icedesign/skin" + "themePackage": "@icedesign/skin", + "title": "标签消息列表", + "categories": [ + "list" + ] } } diff --git a/blocks/TeamDisplay/package.json b/blocks/TeamDisplay/package.json index f64a19d25b..6302eb80a1 100644 --- a/blocks/TeamDisplay/package.json +++ b/blocks/TeamDisplay/package.json @@ -29,16 +29,16 @@ "devDependencies": { "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.2", - "eslint-plugin-react": "^7.5.1" + "react": "*", + "react-dom": "*" }, "blockConfig": { "name": "team-display", - "description": "", - "chinese": "团队展示", - "category": "info-display", "snapshot": "https://img.alicdn.com/tfs/TB1P1cBi3DD8KJjy0FdXXcjvXXa-1904-1554.png", - "sketchURL": "", - "icelandURL": "", - "themePackage": "@icedesign/skin" + "themePackage": "@icedesign/skin", + "title": "团队展示", + "categories": [ + "info-display" + ] } } diff --git a/blocks/TermsInfo/package.json b/blocks/TermsInfo/package.json index db070bc75f..7cf0f56b9a 100644 --- a/blocks/TermsInfo/package.json +++ b/blocks/TermsInfo/package.json @@ -1,7 +1,7 @@ { "name": "@icedesign/terms-info-block", "version": "0.1.1", - "description": "", + "description": "协议信息展示", "main": "lib/index.js", "files": [ "src/", @@ -30,16 +30,16 @@ "devDependencies": { "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.2", - "eslint-plugin-react": "^7.5.1" + "react": "*", + "react-dom": "*" }, "blockConfig": { "name": "terms-info", - "description": "协议信息展示", - "chinese": "协议信息展示", - "category": "info-display", "snapshot": "https://img.alicdn.com/tfs/TB1aL6ZfiqAXuNjy1XdXXaYcVXa-948-735.png", - "sketchURL": "", - "icelandURL": "", - "themePackage": "@icedesign/skin" + "themePackage": "@icedesign/skin", + "title": "协议信息展示", + "categories": [ + "info-display" + ] } } diff --git a/blocks/Testimonial/package.json b/blocks/Testimonial/package.json index 91dd44ae0d..372d4b314a 100644 --- a/blocks/Testimonial/package.json +++ b/blocks/Testimonial/package.json @@ -29,16 +29,16 @@ "devDependencies": { "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.2", - "eslint-plugin-react": "^7.5.1" + "react": "*", + "react-dom": "*" }, "blockConfig": { "name": "testimonial", - "description": "", - "chinese": "客户评价展示", - "category": "info-display", "snapshot": "https://img.alicdn.com/tfs/TB1N4oni8fH8KJjy1XbXXbLdXXa-2692-1250.png", - "sketchURL": "", - "icelandURL": "", - "themePackage": "@icedesign/skin" + "themePackage": "@icedesign/skin", + "title": "客户评价展示", + "categories": [ + "info-display" + ] } } diff --git a/blocks/TestimonialCard/package.json b/blocks/TestimonialCard/package.json index df27f248d1..3fa0e99238 100644 --- a/blocks/TestimonialCard/package.json +++ b/blocks/TestimonialCard/package.json @@ -30,16 +30,16 @@ "devDependencies": { "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.2", - "eslint-plugin-react": "^7.5.1" + "react": "*", + "react-dom": "*" }, "blockConfig": { "name": "testimonial-card", - "description": "", - "chinese": "客户评论卡片", - "category": "info-display", "snapshot": "https://img.alicdn.com/tfs/TB14w4EjBfH8KJjy1XbXXbLdXXa-2824-1110.png", - "sketchURL": "", - "icelandURL": "", - "themePackage": "@icedesign/skin" + "themePackage": "@icedesign/skin", + "title": "客户评论卡片", + "categories": [ + "info-display" + ] } } diff --git a/blocks/TextCard/package.json b/blocks/TextCard/package.json index 153a86fa43..cf6cec8062 100644 --- a/blocks/TextCard/package.json +++ b/blocks/TextCard/package.json @@ -29,16 +29,16 @@ "devDependencies": { "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.2", - "eslint-plugin-react": "^7.5.1" + "react": "*", + "react-dom": "*" }, "blockConfig": { "name": "text-card", - "description": "纯文字展示型卡片", - "chinese": "纯文字展示型卡片", - "category": "data-display", "snapshot": "https://img.alicdn.com/tfs/TB14dP0h8fH8KJjy1XbXXbLdXXa-1896-238.png", - "sketchURL": "", - "icelandURL": "", - "themePackage": "@icedesign/skin" + "themePackage": "@icedesign/skin", + "title": "纯文字展示型卡片", + "categories": [ + "data-display" + ] } } diff --git a/blocks/TextSearchList/package.json b/blocks/TextSearchList/package.json index 927ce9dab1..6222538a41 100644 --- a/blocks/TextSearchList/package.json +++ b/blocks/TextSearchList/package.json @@ -29,16 +29,16 @@ "devDependencies": { "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.2", - "eslint-plugin-react": "^7.5.1" + "react": "*", + "react-dom": "*" }, "blockConfig": { "name": "text-search-list", - "description": "文字搜索列表", - "chinese": "文字搜索列表", - "category": "list", "snapshot": "https://gw.alicdn.com/tfs/TB1bcxnir_I8KJjy1XaXXbsxpXa-1906-1536.png", - "sketchURL": "", - "icelandURL": "", - "themePackage": "@icedesign/skin" + "themePackage": "@icedesign/skin", + "title": "文字搜索列表", + "categories": [ + "list" + ] } } diff --git a/blocks/TimeFilterTable/package.json b/blocks/TimeFilterTable/package.json index 4301890078..f178f0bacf 100644 --- a/blocks/TimeFilterTable/package.json +++ b/blocks/TimeFilterTable/package.json @@ -31,16 +31,16 @@ "devDependencies": { "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.4", - "eslint-plugin-react": "^7.5.1" + "react": "*", + "react-dom": "*" }, "blockConfig": { "name": "time-filter-table", - "description": "支持时间筛选的表格", - "chinese": "时间筛选表格", - "category": "table", "snapshot": "https://img.alicdn.com/tfs/TB1.dqQi5qAXuNjy1XdXXaYcVXa-1902-1004.png", - "sketchURL": "", - "icelandURL": "", - "themePackage": "@icedesign/skin" + "themePackage": "@icedesign/skin", + "title": "时间筛选表格", + "categories": [ + "table" + ] } } diff --git a/blocks/TopicCard/package.json b/blocks/TopicCard/package.json index 3335e4b72b..a5f67af0d6 100644 --- a/blocks/TopicCard/package.json +++ b/blocks/TopicCard/package.json @@ -1,7 +1,7 @@ { "name": "@icedesign/topic-card-block-block", "version": "0.1.1", - "description": "", + "description": "核心数据", "main": "lib/index.js", "files": [ "src/", @@ -31,16 +31,16 @@ "@icedesign/demo-layout": "^0.1.2", "@icedesign/layout": "^0.1.0", "@icedesign/skin": "^0.1.2", - "eslint-plugin-react": "^7.5.1" + "react": "*", + "react-dom": "*" }, "blockConfig": { "name": "topic-card", - "description": "核心数据", - "chinese": "核心数据", - "category": "data-display", "snapshot": "https://img.alicdn.com/tfs/TB1xH9df5qAXuNjy1XdXXaYcVXa-1796-290.png", - "sketchURL": "", - "icelandURL": "", - "themePackage": "@icedesign/skin" + "themePackage": "@icedesign/skin", + "title": "核心数据", + "categories": [ + "data-display" + ] } } diff --git a/blocks/TreeCardList/package.json b/blocks/TreeCardList/package.json index e305dfd0c7..66ea07af4c 100644 --- a/blocks/TreeCardList/package.json +++ b/blocks/TreeCardList/package.json @@ -29,19 +29,17 @@ "devDependencies": { "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.3", - "eslint-plugin-react": "^7.5.1", - "react": "15.x", + "react": "*", "react-copy-to-clipboard": "^4.2.3", - "react-dom": "15.x" + "react-dom": "*" }, "blockConfig": { "name": "tree-card-list", - "description": "树形卡片列表", - "chinese": "树形卡片列表", - "category": "list", "snapshot": "https://img.alicdn.com/tfs/TB1lJIelhTI8KJjSspiXXbM4FXa-1014-780.png", - "sketchURL": "", - "icelandURL": "", - "themePackage": "@icedesign/skin" + "themePackage": "@icedesign/skin", + "title": "树形卡片列表", + "categories": [ + "list" + ] } } From 5289745846e03077f0d9b194255400dae0446e28 Mon Sep 17 00:00:00 2001 From: wssgcg1213 Date: Tue, 9 Jan 2018 22:38:59 +0800 Subject: [PATCH 0039/1028] feat: add close and open feature for dialogs --- blocks/ComplexDialog/demo/index.js | 2 +- blocks/ComplexDialog/src/ComplexDialog.jsx | 94 +++++---- blocks/ConfirmDialog/demo/index.js | 7 +- blocks/ConfirmDialog/package.json | 1 + blocks/ConfirmDialog/src/ConfirmDialog.jsx | 62 ++++-- blocks/SimpleFormDialog/demo/index.js | 8 +- .../SimpleFormDialog/src/SimpleFormDialog.jsx | 199 +++++++++--------- blocks/SuccessDialog/demo/index.js | 3 +- blocks/SuccessDialog/package.json | 1 + blocks/SuccessDialog/src/SuccessDialog.jsx | 58 +++-- blocks/TabDialog/demo/index.js | 5 - blocks/TabDialog/package.json | 2 +- blocks/TabDialog/src/TabDialog.jsx | 118 ++++++----- 13 files changed, 309 insertions(+), 251 deletions(-) diff --git a/blocks/ComplexDialog/demo/index.js b/blocks/ComplexDialog/demo/index.js index cc36650b31..917b2433e3 100644 --- a/blocks/ComplexDialog/demo/index.js +++ b/blocks/ComplexDialog/demo/index.js @@ -9,7 +9,7 @@ import Block from '../src'; render( - + , document.querySelector('#mountNode') ); diff --git a/blocks/ComplexDialog/src/ComplexDialog.jsx b/blocks/ComplexDialog/src/ComplexDialog.jsx index 21ba3b0893..844aec42f6 100644 --- a/blocks/ComplexDialog/src/ComplexDialog.jsx +++ b/blocks/ComplexDialog/src/ComplexDialog.jsx @@ -2,6 +2,7 @@ import React, { Component } from 'react'; import PropTypes from 'prop-types'; +import IceCard from '@icedesign/card'; import { Dialog, Button, Icon } from '@icedesign/base'; import './ComplexDialog.scss'; @@ -11,15 +12,26 @@ export default class ComplexDialog extends Component { constructor(props) { super(props); this.state = { - visible: props.visible + visible: false, }; } + showDialog = () => { + this.setState({ + visible: true, + }); + }; + hideDialog = () => { + this.setState({ + visible: false, + }); + }; + renderFooter = () => { return (
      - - +
      @@ -28,53 +40,57 @@ export default class ComplexDialog extends Component { render() { return ( - -
      - -
      - 恭喜您成功创作平台
      现在可以认证符合自己的角色啦 -
      -
      - 角色是淘宝中对达人的XXX,通过角色您将获得特权 -
      -
      -
      - V - 标头像 + + +
      + +
      + 恭喜您成功创作平台
      现在可以认证符合自己的角色啦
      -
      - {' '} - 角色标志 +
      + 角色是淘宝中对达人的XXX,通过角色您将获得特权
      -
      - {' '} - 优先发表 +
      +
      + V + 标头像 +
      +
      + {' '} + 角色标志 +
      +
      + {' '} + 优先发表 +
      -
      -
      +
      + + + ); } } const styles = { - dialog: { width: '640px' }, icon: { width: '52px', height: '52px' }, dialogContent: { + width: '640px', height: '200px', display: 'flex', flexDirection: 'column', diff --git a/blocks/ConfirmDialog/demo/index.js b/blocks/ConfirmDialog/demo/index.js index 4e2aab8cc9..39f59bd3fb 100644 --- a/blocks/ConfirmDialog/demo/index.js +++ b/blocks/ConfirmDialog/demo/index.js @@ -3,14 +3,9 @@ import { render } from 'react-dom'; import DemoLayout from '@icedesign/demo-layout'; import Block from '../src'; -const props = { - text: '是否要删除当前文章?', - visible: true, -}; - render( - + , document.querySelector('#mountNode') ); diff --git a/blocks/ConfirmDialog/package.json b/blocks/ConfirmDialog/package.json index 793488c494..15b57bd6df 100644 --- a/blocks/ConfirmDialog/package.json +++ b/blocks/ConfirmDialog/package.json @@ -24,6 +24,7 @@ ], "dependencies": { "@icedesign/base": "^0.1.0", + "@icedesign/card": "^0.1.1", "prop-types": "^15.5.8" }, "devDependencies": { diff --git a/blocks/ConfirmDialog/src/ConfirmDialog.jsx b/blocks/ConfirmDialog/src/ConfirmDialog.jsx index 8a255cbf0c..d31123eacf 100644 --- a/blocks/ConfirmDialog/src/ConfirmDialog.jsx +++ b/blocks/ConfirmDialog/src/ConfirmDialog.jsx @@ -1,7 +1,8 @@ 'use strict'; import React, { Component } from 'react'; -import { Dialog } from '@icedesign/base'; +import { Dialog, Button } from '@icedesign/base'; +import IceCard from '@icedesign/card'; import './ConfirmDialog.scss'; export default class ConfirmDialog extends Component { @@ -10,32 +11,49 @@ export default class ConfirmDialog extends Component { constructor(props) { super(props); this.state = { - visible: props.visible + visible: false, }; } + showDialog = () => { + this.setState({ + visible: true, + }); + }; + hideDialog = () => { + this.setState({ + visible: false, + }); + }; + render() { return ( - -
      - -

      - {this.props.text ? this.props.text : '你确定要删除此条内容吗?'} -

      -
      -
      + + +
      + +

      + {this.props.text ? this.props.text : '你确定要删除此条内容吗?'} +

      +
      +
      + +
      ); } } diff --git a/blocks/SimpleFormDialog/demo/index.js b/blocks/SimpleFormDialog/demo/index.js index 2dff2080ff..2f93846518 100644 --- a/blocks/SimpleFormDialog/demo/index.js +++ b/blocks/SimpleFormDialog/demo/index.js @@ -8,13 +8,7 @@ import DemoLayout from '@icedesign/demo-layout'; import Block from '../src'; const props = { - value: { - type: 'video' - }, - visible: true, - onOk: value => { - console.log('value', value); - }, + }; render( diff --git a/blocks/SimpleFormDialog/src/SimpleFormDialog.jsx b/blocks/SimpleFormDialog/src/SimpleFormDialog.jsx index 31f5ad42cc..dc0e95c412 100644 --- a/blocks/SimpleFormDialog/src/SimpleFormDialog.jsx +++ b/blocks/SimpleFormDialog/src/SimpleFormDialog.jsx @@ -1,5 +1,6 @@ import React, { Component } from 'react'; -import { Dialog, Grid, Input, Radio } from '@icedesign/base'; +import { Dialog, Grid, Input, Radio, Button } from '@icedesign/base'; +import IceCard from '@icedesign/card'; import { FormBinderWrapper as IceFormBinderWrapper, FormBinder as IceFormBinder, @@ -22,33 +23,32 @@ export default class SimpleFormDialog extends Component { constructor(props) { super(props); this.state = { - visible: props.visible, - value: props.value || defaultValue, + visible: false, + value: defaultValue, }; } - // ICE: React Component 的生命周期 - // http://ice.alibaba-inc.com/docs/guide/intro-react#React-组件的生命周期 - componentWillMount() { } - - componentDidMount() { } - - componentWillReceiveProps() { } - - shouldComponentUpdate() { - return true; - } + showDialog = () => { + this.setState({ + visible: true, + }); + }; - componentWillUnmount() { } + hideDialog = () => { + this.setState({ + visible: false, + }); + }; onOk = () => { - this.refForm.validateAll((errors, values) => { - if (errors) { + this.refForm.validateAll((error, value) => { + if (error) { + // show validate error return; } - if (typeof this.props.onOk === 'function') { - this.props.onOk(values); - } + // deal with value + + this.hideDialog(); }); }; @@ -60,92 +60,95 @@ export default class SimpleFormDialog extends Component { render() { return ( - - { this.refForm = ref; }} - value={this.state.value} - onChange={this.onFormChange} + + -
      - - - - - - - - - - - - - - - - - - - - - - - - - -
      -
      -
      + { this.refForm = ref; }} + value={this.state.value} + onChange={this.onFormChange} + > +
      + + + + + + + + + + + + + + + + + + + + + + + + + +
      +
      + + + ); } } const styles = { - dialog: { width: '640px' }, + simpleFormDialog: { width: '640px' }, dialogContent: {}, formRow: { marginTop: 20 }, input: { width: '100%' }, formLabel: { lineHeight: '26px' }, - simpleFormDialog: {}, }; diff --git a/blocks/SuccessDialog/demo/index.js b/blocks/SuccessDialog/demo/index.js index 4e2aab8cc9..0b2f7d1ac3 100644 --- a/blocks/SuccessDialog/demo/index.js +++ b/blocks/SuccessDialog/demo/index.js @@ -4,8 +4,7 @@ import DemoLayout from '@icedesign/demo-layout'; import Block from '../src'; const props = { - text: '是否要删除当前文章?', - visible: true, + }; render( diff --git a/blocks/SuccessDialog/package.json b/blocks/SuccessDialog/package.json index 7cb1e8d53c..07c2e5e64b 100644 --- a/blocks/SuccessDialog/package.json +++ b/blocks/SuccessDialog/package.json @@ -24,6 +24,7 @@ ], "dependencies": { "@icedesign/base": "^0.1.0", + "@icedesign/card": "^0.1.1", "prop-types": "^15.5.8" }, "devDependencies": { diff --git a/blocks/SuccessDialog/src/SuccessDialog.jsx b/blocks/SuccessDialog/src/SuccessDialog.jsx index c555ba790c..1880be90fc 100644 --- a/blocks/SuccessDialog/src/SuccessDialog.jsx +++ b/blocks/SuccessDialog/src/SuccessDialog.jsx @@ -2,7 +2,8 @@ import React, { Component } from 'react'; import PropTypes from 'prop-types'; -import { Dialog } from '@icedesign/base'; +import { Dialog, Button } from '@icedesign/base'; +import IceCard from '@icedesign/card'; import './SuccessDialog.scss'; export default class SuccessDialog extends Component { @@ -11,30 +12,46 @@ export default class SuccessDialog extends Component { constructor(props) { super(props); this.state = { - visible: props.visible + visible: false, }; } + showDialog = () => { + this.setState({ + visible: true, + }); + }; + + hideDialog = () => { + this.setState({ + visible: false, + }); + }; + render() { return ( - -
      - -

      我们将在5-7个工作日内完成审核,请耐心等待

      -
      -
      + + +
      + +

      我们将在5-7个工作日内完成审核,请耐心等待

      +
      +
      + +
      ); } } @@ -54,6 +71,5 @@ const styles = { marginBottom: "10px" }, text: { fontSize: "16px" }, - successDialog: {}, }; diff --git a/blocks/TabDialog/demo/index.js b/blocks/TabDialog/demo/index.js index 87ab38b7f9..df9792db49 100644 --- a/blocks/TabDialog/demo/index.js +++ b/blocks/TabDialog/demo/index.js @@ -8,11 +8,6 @@ import DemoLayout from '@icedesign/demo-layout'; import Block from '../src'; const props = { - onOk: selectedItems => { - console.log('selectedItems', selectedItems); - }, - selectedItems: ['231'], - visible: true, }; render( diff --git a/blocks/TabDialog/package.json b/blocks/TabDialog/package.json index 97f648bf02..052300ad9a 100644 --- a/blocks/TabDialog/package.json +++ b/blocks/TabDialog/package.json @@ -23,7 +23,7 @@ ], "dependencies": { "@icedesign/base": "^0.1.0", - "@icedesign/card": "^0.1.0", + "@icedesign/card": "^0.1.1", "prop-types": "^15.5.8" }, "devDependencies": { diff --git a/blocks/TabDialog/src/TabDialog.jsx b/blocks/TabDialog/src/TabDialog.jsx index 5a55985305..e7f94fb20f 100644 --- a/blocks/TabDialog/src/TabDialog.jsx +++ b/blocks/TabDialog/src/TabDialog.jsx @@ -1,6 +1,7 @@ /* eslint no-unused-expressions: 0 */ import React, { Component } from 'react'; -import { Dialog, Tab, Table } from '@icedesign/base'; +import { Dialog, Tab, Table, Button } from '@icedesign/base'; +import IceCard from '@icedesign/card'; import './TabDialog.scss'; const TabPane = Tab.TabPane; @@ -30,8 +31,8 @@ export default class TabDialog extends Component { constructor(props) { super(props); this.state = { - visible: props.visible, - selectedItems: props.selectedItems || [], + visible: false, + selectedItems: [], }; } @@ -49,56 +50,75 @@ export default class TabDialog extends Component { }; onDialogOk = () => { - this.props.onOk && this.props.onOk(this.state.selectedItems); + console.log(this.state.selectedItems); + this.hideDialog(); + }; + + showDialog = () => { + this.setState({ + visible: true, + }); + }; + + hideDialog = () => { + this.setState({ + selectedItems: [], + visible: false, + }); }; render() { return ( - -
      - - -
      - - -
      -
      -
      - -
      - - -
      -
      -
      -
      -
      -
      + + +
      + + +
      + + +
      +
      +
      + +
      + + +
      +
      +
      +
      +
      +
      + +
      ); } } From b9a1bfda7d38a3fcba75b012e10fe139a1e01a66 Mon Sep 17 00:00:00 2001 From: wssgcg1213 Date: Tue, 9 Jan 2018 22:44:19 +0800 Subject: [PATCH 0040/1028] fix: del inneed space --- blocks/ComplexDialog/src/ComplexDialog.jsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/blocks/ComplexDialog/src/ComplexDialog.jsx b/blocks/ComplexDialog/src/ComplexDialog.jsx index 844aec42f6..03b83dab04 100644 --- a/blocks/ComplexDialog/src/ComplexDialog.jsx +++ b/blocks/ComplexDialog/src/ComplexDialog.jsx @@ -66,15 +66,15 @@ export default class ComplexDialog extends Component {
    - V - 标头像 + + V 标头像
    - {' '} + 角色标志
    - {' '} + 优先发表
    @@ -100,6 +100,6 @@ const styles = { extraInfo: { marginTop: '12px', fontSize: '12px', color: '#999999' }, authList: { marginTop: '10px', fontSize: '12px', color: '#999999' }, authItem: { marginTop: '5px' }, - authItemIcon: { color: '#2ECA9C' }, + authItemIcon: { color: '#2ECA9C', marginRight: '5px', }, footer: { marginTop: '10px', marginBottom: '10px', textAlign: 'center' } }; From fa362f6cf1e6ffa7d86f8b20d81371edd98927e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=80=9D=E5=BF=A0?= Date: Tue, 9 Jan 2018 23:03:41 +0800 Subject: [PATCH 0041/1028] =?UTF-8?q?fix=EF=BC=9Afix=20deps?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mock/{api.json => user-info-card.json} | 0 blocks/UserInfoCard/package.json | 20 ++-- blocks/UserInfoCard/src/UserInfoCard.jsx | 93 ++++++++++--------- 3 files changed, 54 insertions(+), 59 deletions(-) rename blocks/UserInfoCard/mock/{api.json => user-info-card.json} (100%) diff --git a/blocks/UserInfoCard/mock/api.json b/blocks/UserInfoCard/mock/user-info-card.json similarity index 100% rename from blocks/UserInfoCard/mock/api.json rename to blocks/UserInfoCard/mock/user-info-card.json diff --git a/blocks/UserInfoCard/package.json b/blocks/UserInfoCard/package.json index 3fa2b5e5a8..2e7960b782 100644 --- a/blocks/UserInfoCard/package.json +++ b/blocks/UserInfoCard/package.json @@ -1,5 +1,5 @@ { - "name": "@icedesign/user-info-card", + "name": "@icedesign/user-info-card-block", "version": "0.1.0", "description": "", "files": ["src/", "demo/", "lib/", "mock/"], @@ -16,26 +16,20 @@ "dependencies": { "@icedesign/base": "^0.1.0", "@icedesign/card": "^0.1.1", - "@icedesign/demo-layout": "^0.1.2", "prop-types": "^15.5.8" }, "devDependencies": { + "@icedesign/demo-layout": "^0.1.2", "@icedesign/skin": "latest", - "babel-eslint": "^8.0.3", - "eslint-plugin-react": "^7.5.1", - "react": "15.x", - "react-copy-to-clipboard": "^4.2.3", - "react-dom": "15.x" + "react": "*", + "react-dom": "*" }, "blockConfig": { "name": "user-info-card", - "description": "", - "chinese": "用户信息展示", - "category": "info-display", "snapshot": "https://img.alicdn.com/tfs/TB1NxO4l8fH8KJjy1XbXXbLdXXa-978-668.png", - "sketchURL": "", - "icelandURL": "", - "themePackage": "@icedesign/skin" + "themePackage": "@icedesign/skin", + "title": "用户信息展示", + "categories": ["info-display"] } } diff --git a/blocks/UserInfoCard/src/UserInfoCard.jsx b/blocks/UserInfoCard/src/UserInfoCard.jsx index 5c0ee77433..229edba1b6 100644 --- a/blocks/UserInfoCard/src/UserInfoCard.jsx +++ b/blocks/UserInfoCard/src/UserInfoCard.jsx @@ -18,60 +18,61 @@ export default class UserInfoCard extends Component { render() { return ( -
    - 更多信息} - closable={false} - visible={true} - > -
    -
    - -
    -
    张三
    -

    销售部 - 内销平台 - 售后服务

    + +
    + 张三} + closable={false} + > +
    +
    + +
    +
    张三
    +

    销售部 - 内销平台 - 售后服务

    +
    +
    - -
    - -
    + +
    + ); } } const styles = { container: { - marginTop: '100px', + padding: '20px 0', textAlign: 'center' }, content: { From f77ed70cbc49a1a1afd102d3c51234b78e9d6d0c Mon Sep 17 00:00:00 2001 From: chenbin92 Date: Wed, 10 Jan 2018 22:36:47 +0800 Subject: [PATCH 0042/1028] feat: add TabChart block --- blocks/TabChart/README.md | 5 ++ blocks/TabChart/demo/index.html | 18 +++++++ blocks/TabChart/demo/index.js | 19 +++++++ blocks/TabChart/mock/tab-chart.json | 4 ++ blocks/TabChart/package.json | 37 +++++++++++++ blocks/TabChart/src/BasicLine.jsx | 61 +++++++++++++++++++++ blocks/TabChart/src/SeriesLine.jsx | 84 +++++++++++++++++++++++++++++ blocks/TabChart/src/TabChart.jsx | 47 ++++++++++++++++ blocks/TabChart/src/TabChart.scss | 5 ++ blocks/TabChart/src/index.js | 3 ++ 10 files changed, 283 insertions(+) create mode 100644 blocks/TabChart/README.md create mode 100644 blocks/TabChart/demo/index.html create mode 100644 blocks/TabChart/demo/index.js create mode 100644 blocks/TabChart/mock/tab-chart.json create mode 100644 blocks/TabChart/package.json create mode 100644 blocks/TabChart/src/BasicLine.jsx create mode 100644 blocks/TabChart/src/SeriesLine.jsx create mode 100644 blocks/TabChart/src/TabChart.jsx create mode 100644 blocks/TabChart/src/TabChart.scss create mode 100644 blocks/TabChart/src/index.js diff --git a/blocks/TabChart/README.md b/blocks/TabChart/README.md new file mode 100644 index 0000000000..b6dfb4dcde --- /dev/null +++ b/blocks/TabChart/README.md @@ -0,0 +1,5 @@ +# tab-chart + +简介:标签页图表组合 + +![截图](https://img.alicdn.com/tfs/TB1OVMBmb_I8KJjy1XaXXbsxpXa-1920-764.png) diff --git a/blocks/TabChart/demo/index.html b/blocks/TabChart/demo/index.html new file mode 100644 index 0000000000..cb0422f8d9 --- /dev/null +++ b/blocks/TabChart/demo/index.html @@ -0,0 +1,18 @@ + + + + + + + + Document + + + + +
    + + + + + diff --git a/blocks/TabChart/demo/index.js b/blocks/TabChart/demo/index.js new file mode 100644 index 0000000000..4d6acd389a --- /dev/null +++ b/blocks/TabChart/demo/index.js @@ -0,0 +1,19 @@ +import React, { Component } from 'react'; +import { render } from 'react-dom'; + +// 载入默认全局样式 normalize 、.clearfix 和一些 mixin 方法等 +import '@icedesign/base/lib/_components/@alife/next-core/lib/index.scss'; + +import DemoLayout from '@icedesign/demo-layout'; +import Block from '../src'; + +const props = { + // ... +}; + +render( + + + , + document.querySelector('#mountNode') +); diff --git a/blocks/TabChart/mock/tab-chart.json b/blocks/TabChart/mock/tab-chart.json new file mode 100644 index 0000000000..eee2984fbe --- /dev/null +++ b/blocks/TabChart/mock/tab-chart.json @@ -0,0 +1,4 @@ +{ + "status": "SUCCESS", + "data": {} +} diff --git a/blocks/TabChart/package.json b/blocks/TabChart/package.json new file mode 100644 index 0000000000..499e48105c --- /dev/null +++ b/blocks/TabChart/package.json @@ -0,0 +1,37 @@ +{ + "name": "@icedesign/tab-chart-block", + "version": "0.1.0", + "description": "", + "files": ["src/", "demo/", "lib/", "mock/"], + "author": { + "name": "ICE Team", + "email": "ice-admin@alibaba-inc.com" + }, + "repository": { + "type": "git", + "url": "https://github.com/alibaba/ice" + }, + "license": "MIT", + "keywords": ["ice", "ice-block"], + "dependencies": { + "@antv/data-set": "^0.8.3", + "@icedesign/base": "^0.1.0", + "@icedesign/card": "^0.1.1", + "bizcharts": "^3.1.0", + "prop-types": "^15.5.8" + }, + "devDependencies": { + "@icedesign/demo-layout": "^0.1.2", + "@icedesign/skin": "latest", + "react": "*", + "react-dom": "*" + }, + "blockConfig": { + "name": "tab-chart", + "snapshot": + "https://img.alicdn.com/tfs/TB1OVMBmb_I8KJjy1XaXXbsxpXa-1920-764.png", + "title": "标签页图表组合", + "categories": ["chart", "data-display"], + "themePackage": "@icedesign/skin" + } +} diff --git a/blocks/TabChart/src/BasicLine.jsx b/blocks/TabChart/src/BasicLine.jsx new file mode 100644 index 0000000000..3a64f58edd --- /dev/null +++ b/blocks/TabChart/src/BasicLine.jsx @@ -0,0 +1,61 @@ +import React, { Component } from 'react'; +import { Chart, Axis, Geom, Tooltip } from 'bizcharts'; +import IceCard from '@icedesign/card'; + +export default class BasicLine extends Component { + static displayName = 'BasicLine'; + + static propTypes = {}; + + static defaultProps = {}; + + constructor(props) { + super(props); + this.state = {}; + } + + render() { + // 参考:https://alibaba.github.io/BizCharts/ + // 数据源 + const data = [ + { year: '2011', value: 30 }, + { year: '2012', value: 40 }, + { year: '2013', value: 35 }, + { year: '2014', value: 50 }, + { year: '2015', value: 49 }, + { year: '2016', value: 60 }, + { year: '2017', value: 70 }, + { year: '2018', value: 90 }, + { year: '2019', value: 100 } + ]; + + const cols = { + value: { min: 0 }, + year: { range: [0, 1] } + }; + + return ( +
    + + + + + + + +
    + ); + } +} diff --git a/blocks/TabChart/src/SeriesLine.jsx b/blocks/TabChart/src/SeriesLine.jsx new file mode 100644 index 0000000000..a541123216 --- /dev/null +++ b/blocks/TabChart/src/SeriesLine.jsx @@ -0,0 +1,84 @@ +import React, { Component } from 'react'; +import { Chart, Axis, Geom, Tooltip } from 'bizcharts'; +import { DataSet } from '@antv/data-set'; +import IceCard from '@icedesign/card'; + +export default class SeriesLine extends Component { + static displayName = 'SeriesLine'; + + static propTypes = {}; + + static defaultProps = {}; + + constructor(props) { + super(props); + this.state = {}; + } + + render() { + // 参考:https://alibaba.github.io/BizCharts/ + // 数据源 + const data = [ + { month: 'Jan', Tokyo: 7.0, London: 20 }, + { month: 'Feb', Tokyo: 6.9, London: 22 }, + { month: 'Mar', Tokyo: 9.5, London: 24 }, + { month: 'Apr', Tokyo: 14.5, London: 30 }, + { month: 'May', Tokyo: 18.4, London: 50 }, + { month: 'Jun', Tokyo: 21.5, London: 65 }, + { month: 'Jul', Tokyo: 25.2, London: 70 }, + { month: 'Aug', Tokyo: 26.5, London: 80 }, + { month: 'Sep', Tokyo: 23.3, London: 85 }, + { month: 'Oct', Tokyo: 18.3, London: 90 }, + { month: 'Nov', Tokyo: 13.9, London: 80 }, + { month: 'Dec', Tokyo: 9.6, London: 70 } + ]; + + // DataSet https://github.com/alibaba/BizCharts/blob/master/doc/tutorial/dataset.md#dataset + const ds = new DataSet(); + const dv = ds.createView().source(data); + dv.transform({ + type: 'fold', + fields: ['Tokyo', 'London'], + key: 'city', + value: 'temperature' + }); + + // 定义度量 + const cols = { + month: { + range: [0, 1] + } + }; + + return ( +
    + + + `${val}` }} /> + + + + +
    + ); + } +} diff --git a/blocks/TabChart/src/TabChart.jsx b/blocks/TabChart/src/TabChart.jsx new file mode 100644 index 0000000000..191b01c37f --- /dev/null +++ b/blocks/TabChart/src/TabChart.jsx @@ -0,0 +1,47 @@ +'use strict'; + +import React, { Component } from 'react'; +import PropTypes from 'prop-types'; +import IceCard from '@icedesign/card'; +import { Tab } from '@icedesign/base'; +import SeriesLine from './SeriesLine'; +import BasicLine from './BasicLine'; +import './TabChart.scss'; + +export default class TabChart extends Component { + static displayName = 'TabChart'; + + static propTypes = {}; + + static defaultProps = {}; + + constructor(props) { + super(props); + this.state = {}; + } + + handleChange = key => { + console.log('change', key); + }; + + render() { + const TabPane = Tab.TabPane; + + return ( +
    + + + + + + + + + + +
    + ); + } +} + +const styles = {}; diff --git a/blocks/TabChart/src/TabChart.scss b/blocks/TabChart/src/TabChart.scss new file mode 100644 index 0000000000..00cec0581d --- /dev/null +++ b/blocks/TabChart/src/TabChart.scss @@ -0,0 +1,5 @@ +@charset "UTF-8"; + +.tab-chart { + +} diff --git a/blocks/TabChart/src/index.js b/blocks/TabChart/src/index.js new file mode 100644 index 0000000000..218126274f --- /dev/null +++ b/blocks/TabChart/src/index.js @@ -0,0 +1,3 @@ +import TabChart from './TabChart'; + +export default TabChart; From db6c713f1b201f36f923846403684338a65fd4e8 Mon Sep 17 00:00:00 2001 From: wssgcg1213 Date: Thu, 11 Jan 2018 12:38:43 +0800 Subject: [PATCH 0043/1028] feat: rename layout --- layouts/AsideLayout/README.md | 5 --- .../README.md | 4 +- .../demo/index.html | 0 .../demo/index.js | 13 ++---- ...ixed-header-footer-responsive-layout.json} | 0 .../package.json | 15 +++---- .../src/Layout.jsx | 45 +++++++++++++++++++ .../src/Layout.scss | 6 +-- .../src/__components_Footer__.jsx | 0 .../src/__components_Header__.jsx | 2 +- .../src/__components_Logo__.jsx | 0 .../src/__config_navs__.json | 0 .../src/index.js | 0 layouts/HeaderAsideFooterLayout/README.md | 5 +++ .../demo/index.html | 0 .../demo/index.js | 7 ++- .../mock/header-aside-footer-layout.json} | 0 .../package.json | 15 +++---- .../src/Layout.jsx | 4 +- .../src/Layout.scss | 4 +- .../src/__components_Footer__.jsx | 0 .../src/__components_Header__.jsx | 2 +- .../src/__components_Logo__.jsx | 0 .../src/__config_navs__.json | 0 .../src/index.js | 0 .../README.md | 5 +++ .../demo/index.html | 0 .../demo/index.js | 7 ++- ...eader-aside-footer-responsive-layout.json} | 0 .../package.json | 15 +++---- .../src/Layout.jsx | 4 +- .../src/Layout.scss | 2 +- .../src/__components_Footer__.jsx | 0 .../src/__components_Header__.jsx | 2 +- .../src/__components_Logo__.jsx | 0 .../src/__config_navs__.json | 0 .../src/index.js | 0 .../README.md | 4 +- .../demo/index.html | 0 .../demo/index.js | 7 ++- .../mock/header-footer-layout.json} | 0 .../package.json | 15 +++---- .../src/Layout.jsx | 2 +- .../src/Layout.scss | 2 +- .../src/__components_Footer__.jsx | 4 +- .../src/__components_Header__.jsx | 2 +- .../src/__components_Logo__.jsx | 0 .../src/__config_navs__.json | 0 .../src/index.js | 0 layouts/LandingLayout/src/Layout.jsx | 22 --------- layouts/ScalableAsideLayout/README.md | 5 --- 51 files changed, 118 insertions(+), 107 deletions(-) delete mode 100644 layouts/AsideLayout/README.md rename layouts/{LandingLayout => FixedHeaderFooterResponsiveLayout}/README.md (50%) rename layouts/{AsideLayout => FixedHeaderFooterResponsiveLayout}/demo/index.html (100%) rename layouts/{LandingLayout => FixedHeaderFooterResponsiveLayout}/demo/index.js (53%) rename layouts/{AsideLayout/mock/api.json => FixedHeaderFooterResponsiveLayout/mock/fixed-header-footer-responsive-layout.json} (100%) rename layouts/{LandingLayout => FixedHeaderFooterResponsiveLayout}/package.json (71%) create mode 100644 layouts/FixedHeaderFooterResponsiveLayout/src/Layout.jsx rename layouts/{LandingLayout => FixedHeaderFooterResponsiveLayout}/src/Layout.scss (81%) rename layouts/{AsideLayout => FixedHeaderFooterResponsiveLayout}/src/__components_Footer__.jsx (100%) rename layouts/{BasicLayout => FixedHeaderFooterResponsiveLayout}/src/__components_Header__.jsx (96%) rename layouts/{AsideLayout => FixedHeaderFooterResponsiveLayout}/src/__components_Logo__.jsx (100%) rename layouts/{AsideLayout => FixedHeaderFooterResponsiveLayout}/src/__config_navs__.json (100%) rename layouts/{AsideLayout => FixedHeaderFooterResponsiveLayout}/src/index.js (100%) create mode 100644 layouts/HeaderAsideFooterLayout/README.md rename layouts/{BasicLayout => HeaderAsideFooterLayout}/demo/index.html (100%) rename layouts/{BasicLayout => HeaderAsideFooterLayout}/demo/index.js (74%) rename layouts/{BasicLayout/mock/api.json => HeaderAsideFooterLayout/mock/header-aside-footer-layout.json} (100%) rename layouts/{AsideLayout => HeaderAsideFooterLayout}/package.json (74%) rename layouts/{AsideLayout => HeaderAsideFooterLayout}/src/Layout.jsx (97%) rename layouts/{AsideLayout => HeaderAsideFooterLayout}/src/Layout.scss (88%) rename layouts/{BasicLayout => HeaderAsideFooterLayout}/src/__components_Footer__.jsx (100%) rename layouts/{LandingLayout => HeaderAsideFooterLayout}/src/__components_Header__.jsx (96%) rename layouts/{BasicLayout => HeaderAsideFooterLayout}/src/__components_Logo__.jsx (100%) rename layouts/{BasicLayout => HeaderAsideFooterLayout}/src/__config_navs__.json (100%) rename layouts/{BasicLayout => HeaderAsideFooterLayout}/src/index.js (100%) create mode 100644 layouts/HeaderAsideFooterResponsiveLayout/README.md rename layouts/{LandingLayout => HeaderAsideFooterResponsiveLayout}/demo/index.html (100%) rename layouts/{AsideLayout => HeaderAsideFooterResponsiveLayout}/demo/index.js (74%) rename layouts/{ScalableAsideLayout/mock/api.json => HeaderAsideFooterResponsiveLayout/mock/header-aside-footer-responsive-layout.json} (100%) rename layouts/{ScalableAsideLayout => HeaderAsideFooterResponsiveLayout}/package.json (72%) rename layouts/{ScalableAsideLayout => HeaderAsideFooterResponsiveLayout}/src/Layout.jsx (97%) rename layouts/{ScalableAsideLayout => HeaderAsideFooterResponsiveLayout}/src/Layout.scss (93%) rename layouts/{LandingLayout => HeaderAsideFooterResponsiveLayout}/src/__components_Footer__.jsx (100%) rename layouts/{ScalableAsideLayout => HeaderAsideFooterResponsiveLayout}/src/__components_Header__.jsx (96%) rename layouts/{LandingLayout => HeaderAsideFooterResponsiveLayout}/src/__components_Logo__.jsx (100%) rename layouts/{LandingLayout => HeaderAsideFooterResponsiveLayout}/src/__config_navs__.json (100%) rename layouts/{LandingLayout => HeaderAsideFooterResponsiveLayout}/src/index.js (100%) rename layouts/{BasicLayout => HeaderFooterLayout}/README.md (55%) rename layouts/{ScalableAsideLayout => HeaderFooterLayout}/demo/index.html (100%) rename layouts/{ScalableAsideLayout => HeaderFooterLayout}/demo/index.js (74%) rename layouts/{LandingLayout/mock/api.json => HeaderFooterLayout/mock/header-footer-layout.json} (100%) rename layouts/{BasicLayout => HeaderFooterLayout}/package.json (74%) rename layouts/{BasicLayout => HeaderFooterLayout}/src/Layout.jsx (92%) rename layouts/{BasicLayout => HeaderFooterLayout}/src/Layout.scss (96%) rename layouts/{ScalableAsideLayout => HeaderFooterLayout}/src/__components_Footer__.jsx (91%) rename layouts/{AsideLayout => HeaderFooterLayout}/src/__components_Header__.jsx (96%) rename layouts/{ScalableAsideLayout => HeaderFooterLayout}/src/__components_Logo__.jsx (100%) rename layouts/{ScalableAsideLayout => HeaderFooterLayout}/src/__config_navs__.json (100%) rename layouts/{ScalableAsideLayout => HeaderFooterLayout}/src/index.js (100%) delete mode 100644 layouts/LandingLayout/src/Layout.jsx delete mode 100644 layouts/ScalableAsideLayout/README.md diff --git a/layouts/AsideLayout/README.md b/layouts/AsideLayout/README.md deleted file mode 100644 index 95751505d8..0000000000 --- a/layouts/AsideLayout/README.md +++ /dev/null @@ -1,5 +0,0 @@ -# aside-layout - -简介:附带侧边栏的 Layout - -![截图](https://img.alicdn.com/tfs/TB1i0lfivDH8KJjy1XcXXcpdXXa-2606-1286.png) diff --git a/layouts/LandingLayout/README.md b/layouts/FixedHeaderFooterResponsiveLayout/README.md similarity index 50% rename from layouts/LandingLayout/README.md rename to layouts/FixedHeaderFooterResponsiveLayout/README.md index 14b9f97619..de7514fbf4 100644 --- a/layouts/LandingLayout/README.md +++ b/layouts/FixedHeaderFooterResponsiveLayout/README.md @@ -1,5 +1,5 @@ -# landing-layout +# FixedHeaderFooterResponsiveLayout -简介:登录页面 Layout +简介:固定顶栏-底栏响应式布局 ![截图](https://img.alicdn.com/tfs/TB1mH8kirYI8KJjy0FaXXbAiVXa-2614-1298.png) diff --git a/layouts/AsideLayout/demo/index.html b/layouts/FixedHeaderFooterResponsiveLayout/demo/index.html similarity index 100% rename from layouts/AsideLayout/demo/index.html rename to layouts/FixedHeaderFooterResponsiveLayout/demo/index.html diff --git a/layouts/LandingLayout/demo/index.js b/layouts/FixedHeaderFooterResponsiveLayout/demo/index.js similarity index 53% rename from layouts/LandingLayout/demo/index.js rename to layouts/FixedHeaderFooterResponsiveLayout/demo/index.js index ebd7bf741e..57621d9b24 100644 --- a/layouts/LandingLayout/demo/index.js +++ b/layouts/FixedHeaderFooterResponsiveLayout/demo/index.js @@ -1,7 +1,7 @@ -import React, { Component } from 'react'; +import React from 'react'; import { render } from 'react-dom'; -import Layout from '../src'; import '@icedesign/base/lib/_components/@alife/next-core/lib/index.scss'; +import Layout from '../src'; const props = { // ... @@ -9,13 +9,8 @@ const props = { render( -
    + sdfdsfsfd + sdffsfsd , document.querySelector('#mountNode') ); diff --git a/layouts/AsideLayout/mock/api.json b/layouts/FixedHeaderFooterResponsiveLayout/mock/fixed-header-footer-responsive-layout.json similarity index 100% rename from layouts/AsideLayout/mock/api.json rename to layouts/FixedHeaderFooterResponsiveLayout/mock/fixed-header-footer-responsive-layout.json diff --git a/layouts/LandingLayout/package.json b/layouts/FixedHeaderFooterResponsiveLayout/package.json similarity index 71% rename from layouts/LandingLayout/package.json rename to layouts/FixedHeaderFooterResponsiveLayout/package.json index 7f86f742da..f0d9aacff1 100644 --- a/layouts/LandingLayout/package.json +++ b/layouts/FixedHeaderFooterResponsiveLayout/package.json @@ -1,7 +1,7 @@ { - "name": "@icedesign/landing-layout", + "name": "@icedesign/fixed-header-footer-responsive-layout", "version": "0.1.5", - "description": "landing layout", + "description": "固定的顶部导航 + 底部栏 + 自适应宽度内容区的布局, 通常用于项目介绍页, 首页。", "files": [ "src/", "lib/", @@ -36,13 +36,12 @@ "eslint-plugin-react": "^7.5.1" }, "blockConfig": { - "name": "landing-layout", - "description": "通栏 + 导航悬浮布局", - "chinese": "通栏布局", - "category": "layout", + "name": "fixed-header-footer-responsive-layout", + "title": "固定顶栏-底栏响应式布局", + "categories": [ + "layout" + ], "snapshot": "https://gw.alicdn.com/tfs/TB1SvQmlsLJ8KJjy0FnXXcFDpXa-976-974.png", - "sketchURL": "", - "icelandURL": "", "themePackage": "@icedesign/skin" } } diff --git a/layouts/FixedHeaderFooterResponsiveLayout/src/Layout.jsx b/layouts/FixedHeaderFooterResponsiveLayout/src/Layout.jsx new file mode 100644 index 0000000000..42ccf17ff0 --- /dev/null +++ b/layouts/FixedHeaderFooterResponsiveLayout/src/Layout.jsx @@ -0,0 +1,45 @@ +import React, { PureComponent } from 'react'; +import Header from './__components_Header__'; +import Footer from './__components_Footer__'; +import './Layout.scss'; + +// 自定义背景图 +const backgroundImage = 'https://img.alicdn.com/tfs/TB1j9kWgvDH8KJjy1XcXXcpdXXa-1680-870.jpg'; + +export default class LandingLayout extends PureComponent { + static propTypes = {}; + + static defaultProps = {}; + + render() { + return ( +
    +
    +
    +
    +
    +
    + {this.props.children} +
    +
    +
    + ); + } +} + +const styles = { + main: { + position: 'relative', + minHeight: '100vh', + }, + introPicture: { + position: 'absolute', + top: 0, + left: 0, + minHeight: '100vh', + width: '100%', + backgroundImage: `url('http://github.com/$%7BbackgroundImage%7D')`, + backgroundRepeat: 'no-repeat', + backgroundSize: 'cover', + }, +}; diff --git a/layouts/LandingLayout/src/Layout.scss b/layouts/FixedHeaderFooterResponsiveLayout/src/Layout.scss similarity index 81% rename from layouts/LandingLayout/src/Layout.scss rename to layouts/FixedHeaderFooterResponsiveLayout/src/Layout.scss index cf22f8e6ea..7e2dc7cca0 100644 --- a/layouts/LandingLayout/src/Layout.scss +++ b/layouts/FixedHeaderFooterResponsiveLayout/src/Layout.scss @@ -1,5 +1,5 @@ -.landing-layout { - .landing-layout-header { +.fixed-header-footer-responsive-layout { + .fixed-header-footer-responsive-layout-header { position: absolute; z-index: 11; left: 0; @@ -9,7 +9,7 @@ width: 1200px; margin: 20px auto; display: flex; - justify-content: space-between; // flex-start|flex-end|center|space-between|space-around; + justify-content: space-between; align-items: center; .ice-menu { background: transparent; diff --git a/layouts/AsideLayout/src/__components_Footer__.jsx b/layouts/FixedHeaderFooterResponsiveLayout/src/__components_Footer__.jsx similarity index 100% rename from layouts/AsideLayout/src/__components_Footer__.jsx rename to layouts/FixedHeaderFooterResponsiveLayout/src/__components_Footer__.jsx diff --git a/layouts/BasicLayout/src/__components_Header__.jsx b/layouts/FixedHeaderFooterResponsiveLayout/src/__components_Header__.jsx similarity index 96% rename from layouts/BasicLayout/src/__components_Header__.jsx rename to layouts/FixedHeaderFooterResponsiveLayout/src/__components_Header__.jsx index 2ef83412bf..b9347c984d 100644 --- a/layouts/BasicLayout/src/__components_Header__.jsx +++ b/layouts/FixedHeaderFooterResponsiveLayout/src/__components_Header__.jsx @@ -57,7 +57,7 @@ export default ({ width }) => { 淘小宝 diff --git a/layouts/AsideLayout/src/__components_Logo__.jsx b/layouts/FixedHeaderFooterResponsiveLayout/src/__components_Logo__.jsx similarity index 100% rename from layouts/AsideLayout/src/__components_Logo__.jsx rename to layouts/FixedHeaderFooterResponsiveLayout/src/__components_Logo__.jsx diff --git a/layouts/AsideLayout/src/__config_navs__.json b/layouts/FixedHeaderFooterResponsiveLayout/src/__config_navs__.json similarity index 100% rename from layouts/AsideLayout/src/__config_navs__.json rename to layouts/FixedHeaderFooterResponsiveLayout/src/__config_navs__.json diff --git a/layouts/AsideLayout/src/index.js b/layouts/FixedHeaderFooterResponsiveLayout/src/index.js similarity index 100% rename from layouts/AsideLayout/src/index.js rename to layouts/FixedHeaderFooterResponsiveLayout/src/index.js diff --git a/layouts/HeaderAsideFooterLayout/README.md b/layouts/HeaderAsideFooterLayout/README.md new file mode 100644 index 0000000000..e6e7296283 --- /dev/null +++ b/layouts/HeaderAsideFooterLayout/README.md @@ -0,0 +1,5 @@ +# HeaderAsideFooterLayout + +简介:固定宽度的内容区域, 顶栏 + 侧栏 + 底栏, 通常用于中后台站点正文内容 + +![截图](https://img.alicdn.com/tfs/TB1i0lfivDH8KJjy1XcXXcpdXXa-2606-1286.png) diff --git a/layouts/BasicLayout/demo/index.html b/layouts/HeaderAsideFooterLayout/demo/index.html similarity index 100% rename from layouts/BasicLayout/demo/index.html rename to layouts/HeaderAsideFooterLayout/demo/index.html diff --git a/layouts/BasicLayout/demo/index.js b/layouts/HeaderAsideFooterLayout/demo/index.js similarity index 74% rename from layouts/BasicLayout/demo/index.js rename to layouts/HeaderAsideFooterLayout/demo/index.js index 905e7283b2..63e5f1190b 100644 --- a/layouts/BasicLayout/demo/index.js +++ b/layouts/HeaderAsideFooterLayout/demo/index.js @@ -1,13 +1,12 @@ -import React, { Component } from 'react'; +import React from 'react'; import { render } from 'react-dom'; -import Layout from '../src'; import '@icedesign/base/lib/_components/@alife/next-core/lib/index.scss'; +import Layout from '../src'; const props = { // ... }; render(( - - + ), document.querySelector('#mountNode')); diff --git a/layouts/BasicLayout/mock/api.json b/layouts/HeaderAsideFooterLayout/mock/header-aside-footer-layout.json similarity index 100% rename from layouts/BasicLayout/mock/api.json rename to layouts/HeaderAsideFooterLayout/mock/header-aside-footer-layout.json diff --git a/layouts/AsideLayout/package.json b/layouts/HeaderAsideFooterLayout/package.json similarity index 74% rename from layouts/AsideLayout/package.json rename to layouts/HeaderAsideFooterLayout/package.json index d8205a8690..893f23e9c6 100644 --- a/layouts/AsideLayout/package.json +++ b/layouts/HeaderAsideFooterLayout/package.json @@ -1,7 +1,7 @@ { - "name": "@icedesign/aside-layout", + "name": "@icedesign/header-aside-footer-layout", "version": "0.1.5", - "description": "basic layout", + "description": "固定宽度的内容区域, 顶栏 + 侧栏 + 底栏, 通常用于中后台站点正文内容", "files": [ "src/", "lib/", @@ -36,13 +36,12 @@ "eslint-plugin-react": "^7.5.1" }, "blockConfig": { - "name": "aside-layout", - "description": "侧边栏导航 + 内容居中布局", - "chinese": "侧边布局", - "category": "layout", + "name": "header-aside-footer-layout", + "title": "顶栏-侧栏-底栏-布局", + "categories": [ + "layout" + ], "snapshot": "https://gw.alicdn.com/tfs/TB172QmlsLJ8KJjy0FnXXcFDpXa-976-974.png", - "sketchURL": "", - "icelandURL": "", "themePackage": "@icedesign/skin" } } diff --git a/layouts/AsideLayout/src/Layout.jsx b/layouts/HeaderAsideFooterLayout/src/Layout.jsx similarity index 97% rename from layouts/AsideLayout/src/Layout.jsx rename to layouts/HeaderAsideFooterLayout/src/Layout.jsx index 151f83fa53..662f963dad 100644 --- a/layouts/AsideLayout/src/Layout.jsx +++ b/layouts/HeaderAsideFooterLayout/src/Layout.jsx @@ -9,7 +9,7 @@ import Footer from './__components_Footer__'; import { asideNavs } from './__config_navs__'; import './Layout.scss'; -export default class AsideLayout extends Component { +export default class HeaderAsideFooterLayout extends Component { static propTypes = {}; static defaultProps = {}; @@ -45,7 +45,7 @@ export default class AsideLayout extends Component { style={{ minHeight: '100vh' }} className={cx({ 'ice-admin-layout': true, - 'ice-admin-aside-layout': true, + 'ice-admin-header-aside-footer-layout': true, })} >
    diff --git a/layouts/AsideLayout/src/Layout.scss b/layouts/HeaderAsideFooterLayout/src/Layout.scss similarity index 88% rename from layouts/AsideLayout/src/Layout.scss rename to layouts/HeaderAsideFooterLayout/src/Layout.scss index 0995dca946..9e1ccaaefb 100644 --- a/layouts/AsideLayout/src/Layout.scss +++ b/layouts/HeaderAsideFooterLayout/src/Layout.scss @@ -1,4 +1,4 @@ -.ice-admin-aside-layout { +.ice-admin-header-aside-footer-layout { background-color: #fafafa; background-image: url(https://img.alicdn.com/tfs/TB1GsHCd8fH8KJjy1XbXXbLdXXa-1680-370.png); background-size: 100%; @@ -9,7 +9,7 @@ width: 1200px; margin: 20px auto; display: flex; - justify-content: space-between; // flex-start|flex-end|center|space-between|space-around; + justify-content: space-between; align-items: center; } diff --git a/layouts/BasicLayout/src/__components_Footer__.jsx b/layouts/HeaderAsideFooterLayout/src/__components_Footer__.jsx similarity index 100% rename from layouts/BasicLayout/src/__components_Footer__.jsx rename to layouts/HeaderAsideFooterLayout/src/__components_Footer__.jsx diff --git a/layouts/LandingLayout/src/__components_Header__.jsx b/layouts/HeaderAsideFooterLayout/src/__components_Header__.jsx similarity index 96% rename from layouts/LandingLayout/src/__components_Header__.jsx rename to layouts/HeaderAsideFooterLayout/src/__components_Header__.jsx index 2ef83412bf..b9347c984d 100644 --- a/layouts/LandingLayout/src/__components_Header__.jsx +++ b/layouts/HeaderAsideFooterLayout/src/__components_Header__.jsx @@ -57,7 +57,7 @@ export default ({ width }) => { 淘小宝 diff --git a/layouts/BasicLayout/src/__components_Logo__.jsx b/layouts/HeaderAsideFooterLayout/src/__components_Logo__.jsx similarity index 100% rename from layouts/BasicLayout/src/__components_Logo__.jsx rename to layouts/HeaderAsideFooterLayout/src/__components_Logo__.jsx diff --git a/layouts/BasicLayout/src/__config_navs__.json b/layouts/HeaderAsideFooterLayout/src/__config_navs__.json similarity index 100% rename from layouts/BasicLayout/src/__config_navs__.json rename to layouts/HeaderAsideFooterLayout/src/__config_navs__.json diff --git a/layouts/BasicLayout/src/index.js b/layouts/HeaderAsideFooterLayout/src/index.js similarity index 100% rename from layouts/BasicLayout/src/index.js rename to layouts/HeaderAsideFooterLayout/src/index.js diff --git a/layouts/HeaderAsideFooterResponsiveLayout/README.md b/layouts/HeaderAsideFooterResponsiveLayout/README.md new file mode 100644 index 0000000000..d3865a6a5d --- /dev/null +++ b/layouts/HeaderAsideFooterResponsiveLayout/README.md @@ -0,0 +1,5 @@ +# HeaderAsideFooterResponsiveLayout + +简介:顶部导航 + 边栏 + 底栏 + 响应式内容区的布局, 通常用于站点正文。 + +![截图](https://img.alicdn.com/tfs/TB1.yERim_I8KJjy0FoXXaFnVXa-2820-1284.png) diff --git a/layouts/LandingLayout/demo/index.html b/layouts/HeaderAsideFooterResponsiveLayout/demo/index.html similarity index 100% rename from layouts/LandingLayout/demo/index.html rename to layouts/HeaderAsideFooterResponsiveLayout/demo/index.html diff --git a/layouts/AsideLayout/demo/index.js b/layouts/HeaderAsideFooterResponsiveLayout/demo/index.js similarity index 74% rename from layouts/AsideLayout/demo/index.js rename to layouts/HeaderAsideFooterResponsiveLayout/demo/index.js index 905e7283b2..63e5f1190b 100644 --- a/layouts/AsideLayout/demo/index.js +++ b/layouts/HeaderAsideFooterResponsiveLayout/demo/index.js @@ -1,13 +1,12 @@ -import React, { Component } from 'react'; +import React from 'react'; import { render } from 'react-dom'; -import Layout from '../src'; import '@icedesign/base/lib/_components/@alife/next-core/lib/index.scss'; +import Layout from '../src'; const props = { // ... }; render(( - - + ), document.querySelector('#mountNode')); diff --git a/layouts/ScalableAsideLayout/mock/api.json b/layouts/HeaderAsideFooterResponsiveLayout/mock/header-aside-footer-responsive-layout.json similarity index 100% rename from layouts/ScalableAsideLayout/mock/api.json rename to layouts/HeaderAsideFooterResponsiveLayout/mock/header-aside-footer-responsive-layout.json diff --git a/layouts/ScalableAsideLayout/package.json b/layouts/HeaderAsideFooterResponsiveLayout/package.json similarity index 72% rename from layouts/ScalableAsideLayout/package.json rename to layouts/HeaderAsideFooterResponsiveLayout/package.json index 6ef1ee9cc1..86f54378e1 100644 --- a/layouts/ScalableAsideLayout/package.json +++ b/layouts/HeaderAsideFooterResponsiveLayout/package.json @@ -1,7 +1,7 @@ { - "name": "@icedesign/scalable-aside-layout", + "name": "@icedesign/header-aside-footer-responsive-layout", "version": "0.1.5", - "description": "", + "description": "顶部导航 + 边栏 + 底栏 + 响应式内容区的布局, 通常用于站点正文。", "files": [ "lib/", "src/", @@ -36,13 +36,12 @@ "eslint-plugin-react": "^7.5.1" }, "blockConfig": { - "name": "scalable-aside-layout", - "description": "通栏 + 侧边布局布局", - "chinese": "通栏侧边布局", - "category": "layout", + "name": "header-aside-footer-responsive-layout", + "chinese": "顶栏-侧栏-底栏-响应式布局", + "categories": [ + "layout" + ], "snapshot": "https://gw.alicdn.com/tfs/TB1dC19lC_I8KJjy0FoXXaFnVXa-976-974.png", - "sketchURL": "", - "icelandURL": "", "themePackage": "@icedesign/skin" } } diff --git a/layouts/ScalableAsideLayout/src/Layout.jsx b/layouts/HeaderAsideFooterResponsiveLayout/src/Layout.jsx similarity index 97% rename from layouts/ScalableAsideLayout/src/Layout.jsx rename to layouts/HeaderAsideFooterResponsiveLayout/src/Layout.jsx index 81f654de2c..7215c7cc86 100644 --- a/layouts/ScalableAsideLayout/src/Layout.jsx +++ b/layouts/HeaderAsideFooterResponsiveLayout/src/Layout.jsx @@ -10,7 +10,7 @@ import { asideNavs } from './__config_navs__'; import './Layout.scss'; -export default class ScalableAsideLayout extends Component { +export default class HeaderAsideFooterResponsiveLayout extends Component { static propTypes = {}; static defaultProps = {}; @@ -55,7 +55,7 @@ export default class ScalableAsideLayout extends Component { style={{ minHeight: '100vh' }} className={cx({ 'ice-admin-layout': true, - 'ice-admin-scalable-aside-layout': true, + 'ice-admin-header-aside-footer-responsive-layout': true, })} >
    diff --git a/layouts/ScalableAsideLayout/src/Layout.scss b/layouts/HeaderAsideFooterResponsiveLayout/src/Layout.scss similarity index 93% rename from layouts/ScalableAsideLayout/src/Layout.scss rename to layouts/HeaderAsideFooterResponsiveLayout/src/Layout.scss index 5a570bf0c2..45eab75b22 100644 --- a/layouts/ScalableAsideLayout/src/Layout.scss +++ b/layouts/HeaderAsideFooterResponsiveLayout/src/Layout.scss @@ -1,4 +1,4 @@ -.ice-admin-scalable-aside-layout { +.ice-admin-header-aside-footer-responsive-layout { width: 100%; padding: 0 20px; background-color: #fafafa; diff --git a/layouts/LandingLayout/src/__components_Footer__.jsx b/layouts/HeaderAsideFooterResponsiveLayout/src/__components_Footer__.jsx similarity index 100% rename from layouts/LandingLayout/src/__components_Footer__.jsx rename to layouts/HeaderAsideFooterResponsiveLayout/src/__components_Footer__.jsx diff --git a/layouts/ScalableAsideLayout/src/__components_Header__.jsx b/layouts/HeaderAsideFooterResponsiveLayout/src/__components_Header__.jsx similarity index 96% rename from layouts/ScalableAsideLayout/src/__components_Header__.jsx rename to layouts/HeaderAsideFooterResponsiveLayout/src/__components_Header__.jsx index 2ef83412bf..b9347c984d 100644 --- a/layouts/ScalableAsideLayout/src/__components_Header__.jsx +++ b/layouts/HeaderAsideFooterResponsiveLayout/src/__components_Header__.jsx @@ -57,7 +57,7 @@ export default ({ width }) => { 淘小宝 diff --git a/layouts/LandingLayout/src/__components_Logo__.jsx b/layouts/HeaderAsideFooterResponsiveLayout/src/__components_Logo__.jsx similarity index 100% rename from layouts/LandingLayout/src/__components_Logo__.jsx rename to layouts/HeaderAsideFooterResponsiveLayout/src/__components_Logo__.jsx diff --git a/layouts/LandingLayout/src/__config_navs__.json b/layouts/HeaderAsideFooterResponsiveLayout/src/__config_navs__.json similarity index 100% rename from layouts/LandingLayout/src/__config_navs__.json rename to layouts/HeaderAsideFooterResponsiveLayout/src/__config_navs__.json diff --git a/layouts/LandingLayout/src/index.js b/layouts/HeaderAsideFooterResponsiveLayout/src/index.js similarity index 100% rename from layouts/LandingLayout/src/index.js rename to layouts/HeaderAsideFooterResponsiveLayout/src/index.js diff --git a/layouts/BasicLayout/README.md b/layouts/HeaderFooterLayout/README.md similarity index 55% rename from layouts/BasicLayout/README.md rename to layouts/HeaderFooterLayout/README.md index c6801fa2ae..d237990cae 100644 --- a/layouts/BasicLayout/README.md +++ b/layouts/HeaderFooterLayout/README.md @@ -1,5 +1,5 @@ -# basic-layout +# HeaderFooterLayout -简介:基础 layout +简介:基础 layout, 顶栏-底栏-布局 ![截图](https://img.alicdn.com/tfs/TB1Qh4rir_I8KJjy1XaXXbsxpXa-2536-1246.png) diff --git a/layouts/ScalableAsideLayout/demo/index.html b/layouts/HeaderFooterLayout/demo/index.html similarity index 100% rename from layouts/ScalableAsideLayout/demo/index.html rename to layouts/HeaderFooterLayout/demo/index.html diff --git a/layouts/ScalableAsideLayout/demo/index.js b/layouts/HeaderFooterLayout/demo/index.js similarity index 74% rename from layouts/ScalableAsideLayout/demo/index.js rename to layouts/HeaderFooterLayout/demo/index.js index 905e7283b2..63e5f1190b 100644 --- a/layouts/ScalableAsideLayout/demo/index.js +++ b/layouts/HeaderFooterLayout/demo/index.js @@ -1,13 +1,12 @@ -import React, { Component } from 'react'; +import React from 'react'; import { render } from 'react-dom'; -import Layout from '../src'; import '@icedesign/base/lib/_components/@alife/next-core/lib/index.scss'; +import Layout from '../src'; const props = { // ... }; render(( - - + ), document.querySelector('#mountNode')); diff --git a/layouts/LandingLayout/mock/api.json b/layouts/HeaderFooterLayout/mock/header-footer-layout.json similarity index 100% rename from layouts/LandingLayout/mock/api.json rename to layouts/HeaderFooterLayout/mock/header-footer-layout.json diff --git a/layouts/BasicLayout/package.json b/layouts/HeaderFooterLayout/package.json similarity index 74% rename from layouts/BasicLayout/package.json rename to layouts/HeaderFooterLayout/package.json index 299e0e18eb..bcff53cb8b 100644 --- a/layouts/BasicLayout/package.json +++ b/layouts/HeaderFooterLayout/package.json @@ -1,7 +1,7 @@ { - "name": "@icedesign/basic-layout", + "name": "@icedesign/header-footer-layout", "version": "0.1.5", - "description": "basic layout", + "description": "基础布局, 头部导航 + 底部栏 + 固定宽度内容区, 通常用于站点首页或者通用辅助页面。", "files": [ "src/", "lib/", @@ -36,13 +36,12 @@ "eslint-plugin-react": "^7.5.1" }, "blockConfig": { - "name": "basic-layout", - "description": "内容居中布局", - "chinese": "居中布局", - "category": "layout", + "name": "header-footer-layout", + "title": "顶栏-底栏布局", + "categories": [ + "layout" + ], "snapshot": "https://gw.alicdn.com/tfs/TB1R2QmlsLJ8KJjy0FnXXcFDpXa-976-974.png", - "sketchURL": "", - "icelandURL": "", "themePackage": "@icedesign/skin" } } diff --git a/layouts/BasicLayout/src/Layout.jsx b/layouts/HeaderFooterLayout/src/Layout.jsx similarity index 92% rename from layouts/BasicLayout/src/Layout.jsx rename to layouts/HeaderFooterLayout/src/Layout.jsx index 7ce69eb8f4..103cffe6bb 100644 --- a/layouts/BasicLayout/src/Layout.jsx +++ b/layouts/HeaderFooterLayout/src/Layout.jsx @@ -16,7 +16,7 @@ export default class BasicLayout extends PureComponent { style={{ minHeight: '100vh' }} className={cx({ 'ice-admin-layout': true, - 'ice-admin-basic-layout': true, + 'ice-admin-header-footer-layout': true, })} >
    diff --git a/layouts/BasicLayout/src/Layout.scss b/layouts/HeaderFooterLayout/src/Layout.scss similarity index 96% rename from layouts/BasicLayout/src/Layout.scss rename to layouts/HeaderFooterLayout/src/Layout.scss index 946427a2ec..e232a8353f 100644 --- a/layouts/BasicLayout/src/Layout.scss +++ b/layouts/HeaderFooterLayout/src/Layout.scss @@ -1,4 +1,4 @@ -.ice-admin-basic-layout { +.ice-admin-header-footer-layout { background-color: #fafafa; background-image: url(https://img.alicdn.com/tfs/TB1GsHCd8fH8KJjy1XbXXbLdXXa-1680-370.png); background-size: 100%; diff --git a/layouts/ScalableAsideLayout/src/__components_Footer__.jsx b/layouts/HeaderFooterLayout/src/__components_Footer__.jsx similarity index 91% rename from layouts/ScalableAsideLayout/src/__components_Footer__.jsx rename to layouts/HeaderFooterLayout/src/__components_Footer__.jsx index 399853f2dc..7065989f85 100644 --- a/layouts/ScalableAsideLayout/src/__components_Footer__.jsx +++ b/layouts/HeaderFooterLayout/src/__components_Footer__.jsx @@ -8,7 +8,7 @@ export default () => { className="ice-admin-layout-footer" style={{ textAlign: 'center', - lineHeight: '36px' + lineHeight: '36px', }} >
    @@ -20,7 +20,7 @@ export default () => { color: '#999', lineHeight: 1.5, fontSize: 12, - textAlign: 'right' + textAlign: 'right', }} > 阿里巴巴集团 diff --git a/layouts/AsideLayout/src/__components_Header__.jsx b/layouts/HeaderFooterLayout/src/__components_Header__.jsx similarity index 96% rename from layouts/AsideLayout/src/__components_Header__.jsx rename to layouts/HeaderFooterLayout/src/__components_Header__.jsx index 2dfca53b8e..b9347c984d 100644 --- a/layouts/AsideLayout/src/__components_Header__.jsx +++ b/layouts/HeaderFooterLayout/src/__components_Header__.jsx @@ -57,7 +57,7 @@ export default ({ width }) => { 淘小宝 diff --git a/layouts/ScalableAsideLayout/src/__components_Logo__.jsx b/layouts/HeaderFooterLayout/src/__components_Logo__.jsx similarity index 100% rename from layouts/ScalableAsideLayout/src/__components_Logo__.jsx rename to layouts/HeaderFooterLayout/src/__components_Logo__.jsx diff --git a/layouts/ScalableAsideLayout/src/__config_navs__.json b/layouts/HeaderFooterLayout/src/__config_navs__.json similarity index 100% rename from layouts/ScalableAsideLayout/src/__config_navs__.json rename to layouts/HeaderFooterLayout/src/__config_navs__.json diff --git a/layouts/ScalableAsideLayout/src/index.js b/layouts/HeaderFooterLayout/src/index.js similarity index 100% rename from layouts/ScalableAsideLayout/src/index.js rename to layouts/HeaderFooterLayout/src/index.js diff --git a/layouts/LandingLayout/src/Layout.jsx b/layouts/LandingLayout/src/Layout.jsx deleted file mode 100644 index be3cfceb4a..0000000000 --- a/layouts/LandingLayout/src/Layout.jsx +++ /dev/null @@ -1,22 +0,0 @@ -import React, { PureComponent } from 'react'; -import Header from './__components_Header__'; -import Footer from './__components_Footer__'; -import './Layout.scss'; - -export default class LandingLayout extends PureComponent { - static propTypes = {}; - - static defaultProps = {}; - - render() { - return ( -
    -
    -
    -
    -
    {this.props.children}
    -
    -
    - ); - } -} diff --git a/layouts/ScalableAsideLayout/README.md b/layouts/ScalableAsideLayout/README.md deleted file mode 100644 index 956b60c457..0000000000 --- a/layouts/ScalableAsideLayout/README.md +++ /dev/null @@ -1,5 +0,0 @@ -# scalable-aside-layout - -简介:侧边栏可伸缩 Layout - -![截图](https://img.alicdn.com/tfs/TB1.yERim_I8KJjy0FoXXaFnVXa-2820-1284.png) From 26b569fa53a3ae3fea83c927807b14b3e520ae9c Mon Sep 17 00:00:00 2001 From: wssgcg1213 Date: Thu, 11 Jan 2018 12:41:15 +0800 Subject: [PATCH 0044/1028] feat: pass lint layout --- .../src/__components_Footer__.jsx | 4 ++-- layouts/HeaderAsideFooterLayout/src/Layout.jsx | 1 + layouts/HeaderAsideFooterLayout/src/__components_Footer__.jsx | 4 ++-- .../src/__components_Footer__.jsx | 4 ++-- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/layouts/FixedHeaderFooterResponsiveLayout/src/__components_Footer__.jsx b/layouts/FixedHeaderFooterResponsiveLayout/src/__components_Footer__.jsx index 399853f2dc..7065989f85 100644 --- a/layouts/FixedHeaderFooterResponsiveLayout/src/__components_Footer__.jsx +++ b/layouts/FixedHeaderFooterResponsiveLayout/src/__components_Footer__.jsx @@ -8,7 +8,7 @@ export default () => { className="ice-admin-layout-footer" style={{ textAlign: 'center', - lineHeight: '36px' + lineHeight: '36px', }} >
    @@ -20,7 +20,7 @@ export default () => { color: '#999', lineHeight: 1.5, fontSize: 12, - textAlign: 'right' + textAlign: 'right', }} > 阿里巴巴集团 diff --git a/layouts/HeaderAsideFooterLayout/src/Layout.jsx b/layouts/HeaderAsideFooterLayout/src/Layout.jsx index 662f963dad..3ada862956 100644 --- a/layouts/HeaderAsideFooterLayout/src/Layout.jsx +++ b/layouts/HeaderAsideFooterLayout/src/Layout.jsx @@ -16,6 +16,7 @@ export default class HeaderAsideFooterLayout extends Component { // 当前点击的菜单项 handleClick = (selectedKeys) => { + // eslint-disable-next-line console.log('selectedKeys:', selectedKeys); }; diff --git a/layouts/HeaderAsideFooterLayout/src/__components_Footer__.jsx b/layouts/HeaderAsideFooterLayout/src/__components_Footer__.jsx index 399853f2dc..7065989f85 100644 --- a/layouts/HeaderAsideFooterLayout/src/__components_Footer__.jsx +++ b/layouts/HeaderAsideFooterLayout/src/__components_Footer__.jsx @@ -8,7 +8,7 @@ export default () => { className="ice-admin-layout-footer" style={{ textAlign: 'center', - lineHeight: '36px' + lineHeight: '36px', }} >
    @@ -20,7 +20,7 @@ export default () => { color: '#999', lineHeight: 1.5, fontSize: 12, - textAlign: 'right' + textAlign: 'right', }} > 阿里巴巴集团 diff --git a/layouts/HeaderAsideFooterResponsiveLayout/src/__components_Footer__.jsx b/layouts/HeaderAsideFooterResponsiveLayout/src/__components_Footer__.jsx index 399853f2dc..7065989f85 100644 --- a/layouts/HeaderAsideFooterResponsiveLayout/src/__components_Footer__.jsx +++ b/layouts/HeaderAsideFooterResponsiveLayout/src/__components_Footer__.jsx @@ -8,7 +8,7 @@ export default () => { className="ice-admin-layout-footer" style={{ textAlign: 'center', - lineHeight: '36px' + lineHeight: '36px', }} >
    @@ -20,7 +20,7 @@ export default () => { color: '#999', lineHeight: 1.5, fontSize: 12, - textAlign: 'right' + textAlign: 'right', }} > 阿里巴巴集团 From 251263d0183349e0fadb8063d03e887145783c7d Mon Sep 17 00:00:00 2001 From: wssgcg1213 Date: Thu, 11 Jan 2018 12:41:59 +0800 Subject: [PATCH 0045/1028] fix: typo --- layouts/FixedHeaderFooterResponsiveLayout/demo/index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/layouts/FixedHeaderFooterResponsiveLayout/demo/index.js b/layouts/FixedHeaderFooterResponsiveLayout/demo/index.js index 57621d9b24..63d2ecd83c 100644 --- a/layouts/FixedHeaderFooterResponsiveLayout/demo/index.js +++ b/layouts/FixedHeaderFooterResponsiveLayout/demo/index.js @@ -9,8 +9,7 @@ const props = { render( - sdfdsfsfd - sdffsfsd + Hello World , document.querySelector('#mountNode') ); From 013026dc7f6a39867b3b44d3f5cd42b3b83940c6 Mon Sep 17 00:00:00 2001 From: wssgcg1213 Date: Thu, 11 Jan 2018 12:51:47 +0800 Subject: [PATCH 0046/1028] fix: review --- blocks/ComplexDialog/package.json | 12 ++++++------ blocks/ConfirmDialog/package.json | 14 +++++++------- blocks/SimpleFormDialog/package.json | 12 ++++++------ blocks/SuccessDialog/package.json | 14 +++++++------- blocks/TabDialog/package.json | 12 ++++++------ 5 files changed, 32 insertions(+), 32 deletions(-) diff --git a/blocks/ComplexDialog/package.json b/blocks/ComplexDialog/package.json index 3155eef0a8..c9f94609e0 100644 --- a/blocks/ComplexDialog/package.json +++ b/blocks/ComplexDialog/package.json @@ -29,16 +29,16 @@ "devDependencies": { "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.2", - "eslint-plugin-react": "^7.5.1" + "react": "*", + "react-dom": "*" }, "blockConfig": { "name": "complex-dialog", - "description": "复杂信息和自定义底部按钮的弹窗", - "chinese": "复杂信息弹窗", - "category": "modal", + "title": "复杂信息弹窗", + "categories": [ + "modal" + ], "snapshot": "https://img.alicdn.com/tfs/TB1Un_filfH8KJjy1XbXXbLdXXa-1270-650.png", - "sketchURL": "", - "icelandURL": "", "themePackage": "@icedesign/skin" } } diff --git a/blocks/ConfirmDialog/package.json b/blocks/ConfirmDialog/package.json index 15b57bd6df..d7c349bc13 100644 --- a/blocks/ConfirmDialog/package.json +++ b/blocks/ConfirmDialog/package.json @@ -1,7 +1,7 @@ { "name": "@icedesign/confirm-dialog-block", "version": "0.1.1", - "description": "", + "description": "确认类型的提示框", "main": "lib/index.js", "files": [ "src/", @@ -30,16 +30,16 @@ "devDependencies": { "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.2", - "eslint-plugin-react": "^7.5.1" + "react": "*", + "react-dom": "*" }, "blockConfig": { "name": "confirm-dialog", - "description": "确认类型的提示框", - "chinese": "确认类型的提示框", - "category": "modal", + "title": "确认类型的提示框", + "categories": [ + "modal" + ], "snapshot": "https://img.alicdn.com/tfs/TB1Zr3xigvD8KJjy0FlXXagBFXa-1272-620.png", - "sketchURL": "", - "icelandURL": "", "themePackage": "@icedesign/skin" } } diff --git a/blocks/SimpleFormDialog/package.json b/blocks/SimpleFormDialog/package.json index 36efa882f6..bc7783117c 100644 --- a/blocks/SimpleFormDialog/package.json +++ b/blocks/SimpleFormDialog/package.json @@ -30,16 +30,16 @@ "devDependencies": { "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.2", - "eslint-plugin-react": "^7.5.1" + "react": "*", + "react-dom": "*" }, "blockConfig": { "name": "simple-form-dialog", - "description": "简单的表单弹窗", - "chinese": "简单表单弹窗", - "category": "modal", + "title": "简单表单弹窗", + "categories": [ + "modal" + ], "snapshot": "https://img.alicdn.com/tfs/TB1.65ri9_I8KJjy0FoXXaFnVXa-1270-628.png", - "sketchURL": "", - "icelandURL": "", "themePackage": "@icedesign/skin" } } diff --git a/blocks/SuccessDialog/package.json b/blocks/SuccessDialog/package.json index 07c2e5e64b..2b67e8872b 100644 --- a/blocks/SuccessDialog/package.json +++ b/blocks/SuccessDialog/package.json @@ -1,7 +1,7 @@ { "name": "@icedesign/success-dialog-block", "version": "0.1.2", - "description": "", + "description": "提示框-成功", "main": "lib/index.js", "files": [ "src/", @@ -30,16 +30,16 @@ "devDependencies": { "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.2", - "eslint-plugin-react": "^7.5.1" + "react": "*", + "react-dom": "*" }, "blockConfig": { "name": "success-dialog", - "description": "", - "chinese": "提示框-成功", - "category": "modal", + "title": "成功提示框", + "categories": [ + "modal" + ], "snapshot": "https://img.alicdn.com/tfs/TB1CMVpi5qAXuNjy1XdXXaYcVXa-1278-540.png", - "sketchURL": "", - "icelandURL": "", "themePackage": "@icedesign/skin" } } diff --git a/blocks/TabDialog/package.json b/blocks/TabDialog/package.json index 052300ad9a..f97b483b1e 100644 --- a/blocks/TabDialog/package.json +++ b/blocks/TabDialog/package.json @@ -29,16 +29,16 @@ "devDependencies": { "@icedesign/demo-layout": "^0.1.0", "@icedesign/skin": "^0.1.2", - "eslint-plugin-react": "^7.5.1" + "react": "*", + "react-dom": "*" }, "blockConfig": { "name": "tab-dialog", - "description": "标签内容弹窗", - "chinese": "标签内容弹窗", - "category": "modal", + "title": "标签内容弹窗", + "categories": [ + "modal" + ], "snapshot": "https://img.alicdn.com/tfs/TB19AF4gOqAXuNjy1XdXXaYcVXa-1262-812.png", - "sketchURL": "", - "icelandURL": "", "themePackage": "@icedesign/skin" } } From 3b26f97c0a1ab232974daa5a80bf5356ed5d0ded Mon Sep 17 00:00:00 2001 From: wssgcg1213 Date: Thu, 11 Jan 2018 13:25:18 +0800 Subject: [PATCH 0047/1028] fix: mock --- blocks/ApplicationProgress/mock/api.json | 4 - .../mock/application-progress.json} | 0 .../src/ApplicationProgress.jsx | 12 +- blocks/AreaStackChart/mock/api.json | 4 - .../mock/area-stack-chart.json} | 0 blocks/ArticleList/mock/api.json | 4 - .../mock/article-list.json} | 0 blocks/BasicDetailInfo/mock/api.json | 4 - .../mock/basic-detail-info.json} | 0 blocks/BasicException/mock/api.json | 4 - .../mock/basic-exception.json} | 0 blocks/BasicNotFound/mock/api.json | 4 - .../mock/basic-not-found.json} | 0 blocks/BasicTab/mock/api.json | 4 - blocks/BasicTab/mock/basic-tab.json | 4 + blocks/BrandDisplay/mock/api.json | 4 - blocks/BrandDisplay/mock/brand-display.json | 4 + blocks/BrandShowCase/mock/api.json | 4 - .../BrandShowCase/mock/brand-show-case.json | 4 + blocks/ChartArea/mock/api.json | 4 - blocks/ChartArea/mock/chart-area.json | 4 + blocks/ChartBar/mock/api.json | 4 - blocks/ChartBar/mock/chart-bar.json | 4 + blocks/ChartBox/mock/api.json | 4 - blocks/ChartBox/mock/chart-box.json | 4 + blocks/ChartBubbleImage/mock/api.json | 4 - .../mock/chart-bubble-image.json | 4 + blocks/ChartFacet/mock/api.json | 4 - blocks/ChartFacet/mock/chart-facet.json | 4 + blocks/ChartFunnel/mock/api.json | 4 - blocks/ChartFunnel/mock/chart-funnel.json | 4 + blocks/ChartGauge/mock/api.json | 4 - blocks/ChartGauge/mock/chart-gauge.json | 4 + blocks/ChartHeatMap/mock/api.json | 4 - blocks/ChartHeatMap/mock/chart-heat-map.json | 4 + blocks/ChartPie/mock/api.json | 4 - blocks/ChartPie/mock/chart-pie.json | 4 + blocks/ChartPoint/mock/chart-point.json | 2 +- blocks/ChartRadar/mock/api.json | 4 - blocks/ChartRadar/mock/chart-radar.json | 4 + blocks/ChartRelation/mock/api.json | 4 - blocks/ChartRelation/mock/chart-relation.json | 4 + blocks/ChartStock/mock/chart-stock.json | 307 ++++++++++++++---- blocks/ChartTypeLine/mock/api.json | 4 - .../ChartTypeLine/mock/chart-type-line.json | 4 + blocks/CollapseCard/mock/api.json | 4 - blocks/CollapseCard/mock/collapse-card.json | 4 + blocks/ComplexDialog/mock/api.json | 2 +- blocks/ComplexFilter/mock/api.json | 4 - blocks/ComplexFilter/mock/complex-filter.json | 4 + .../src/ComplexProgressTable.jsx | 18 +- blocks/CompositeFilter/mock/api.json | 4 - .../mock/composite-filter.json | 4 + blocks/ConfirmDialog/mock/api.json | 2 +- blocks/DataDisplay/mock/api.json | 4 - blocks/DataDisplay/mock/data-display.json | 4 + blocks/DetailTable/mock/api.json | 4 - blocks/DetailTable/mock/detail-table.json | 4 + blocks/DisplayCard/mock/api.json | 4 - blocks/DisplayCard/mock/display-card.json | 4 + blocks/DownloadCard/mock/api.json | 4 - blocks/DownloadCard/mock/download-card.json | 141 +------- blocks/EditableTable/mock/api.json | 4 - blocks/EditableTable/mock/editable-table.json | 4 + blocks/EmptyContent/mock/empty-content.json | 4 + blocks/EntryCard/mock/api.json | 4 - blocks/EntryCard/mock/entry-card.json | 4 + blocks/FailureDetail/mock/api.json | 4 - blocks/FailureDetail/mock/failure-detail.json | 4 + blocks/FeatureDisplay/mock/api.json | 4 - .../FeatureDisplay/mock/feature-display.json | 4 + blocks/FeedList/mock/api.json | 4 - blocks/FeedList/mock/feed-list.json | 4 + blocks/FilterList/mock/api.json | 4 - blocks/FilterList/mock/filter-list.json | 4 + blocks/FilterWithSearch/mock/api.json | 4 - .../mock/filter-with-search.json | 4 + blocks/Footer/mock/api.json | 4 - blocks/Footer/mock/footer.json | 4 + blocks/FooterInfo/mock/api.json | 4 - blocks/FooterInfo/mock/footer-info.json | 4 + blocks/ForgetPasswordForm/mock/api.json | 4 - .../mock/forget-password-form.json | 4 + .../InfoDisplayTab/mock/info-display-tab.json | 2 +- blocks/InfoDisplayTable/mock/api.json | 4 - .../mock/info-display-table.json | 4 + blocks/JoinUs/mock/join-us.json | 4 + blocks/LandingIntroBanner/mock/api.json | 4 - .../mock/landing-intro-banner.json | 4 + .../mock/left-content-display.json | 4 + blocks/LiteTable/mock/api.json | 4 - blocks/LiteTable/mock/lite-table.json | 4 + blocks/MessageList/mock/api.json | 4 - blocks/MessageList/mock/message-list.json | 4 + blocks/MonacoEditor/mock/monaco-editor.json | 4 + blocks/NotPermission/mock/not-permission.json | 4 + blocks/OrderList/mock/order-list.json | 89 ++--- blocks/OurTeam/mock/api.json | 4 - blocks/OurTeam/mock/our-team.json | 4 + blocks/PictureTextList/mock/api.json | 4 - .../mock/picture-text-list.json | 4 + blocks/PieDoughnutChart/mock/api.json | 4 - .../mock/pie-doughnut-chart.json | 4 + blocks/PriceCard/mock/api.json | 4 - blocks/PriceCard/mock/price-card.json | 4 + blocks/PriceInfo/mock/api.json | 4 - blocks/PriceInfo/mock/price-info.json | 4 + blocks/PrivateMessageForm/mock/api.json | 4 - .../mock/private-message-form.json | 4 + blocks/ProductInfo/mock/api.json | 4 - blocks/ProductInfo/mock/product-info.json | 4 + blocks/ProgressTable/mock/api.json | 4 - blocks/ProgressTable/mock/progress-table.json | 4 + blocks/RegisterForm/mock/api.json | 4 - blocks/RegisterForm/mock/register-form.json | 4 + .../mock/right-content-display.json | 4 + blocks/SelectableTable/mock/api.json | 4 - .../mock/selectable-table.json | 4 + blocks/SignupForm/mock/api.json | 4 - blocks/SignupForm/mock/signup-form.json | 4 + blocks/SimpleFluencyForm/mock/api.json | 4 - .../mock/simple-fluency-form.json | 4 + blocks/SimpleFormDialog/mock/api.json | 4 - .../mock/simple-form-dialog.json | 4 + blocks/SimpleTestimonial/mock/api.json | 4 - .../mock/simple-testimonial.json | 4 + blocks/SortCardList/mock/api.json | 4 - blocks/SortCardList/mock/sort-card-list.json | 4 + blocks/StatisticalCard/mock/api.json | 4 - .../mock/statistical-card.json | 4 + blocks/Subscribe/mock/api.json | 4 - blocks/Subscribe/mock/subscribe.json | 4 + blocks/SuccessDetail/mock/api.json | 4 - blocks/SuccessDetail/mock/success-detail.json | 4 + blocks/SuccessDialog/mock/api.json | 4 - blocks/SuccessDialog/mock/success-dialog.json | 4 + blocks/SystemNoticeList/mock/api.json | 4 - .../mock/system-notice-list.json | 4 + blocks/TabArticle/mock/api.json | 4 - blocks/TabArticle/mock/tab-article.json | 4 + blocks/TabDialog/mock/api.json | 2 +- blocks/TagMessageList/mock/api.json | 4 - .../TagMessageList/mock/tag-message-list.json | 4 + blocks/TeamDisplay/mock/api.json | 4 - blocks/TeamDisplay/mock/team-display.json | 4 + blocks/TermsInfo/mock/api.json | 4 - blocks/TermsInfo/mock/terms-info.json | 4 + blocks/Testimonial/mock/api.json | 4 - blocks/Testimonial/mock/testimonial.json | 4 + blocks/TestimonialCard/mock/api.json | 4 - .../mock/testimonial-card.json | 4 + blocks/TextCard/mock/api.json | 4 - blocks/TextCard/mock/text-card.json | 4 + blocks/TextSearchList/mock/api.json | 4 - .../TextSearchList/mock/text-search-list.json | 4 + blocks/TopicCard/mock/api.json | 4 - blocks/TopicCard/mock/topic-card.json | 4 + blocks/TreeCardList/mock/api.json | 4 - blocks/TreeCardList/mock/tree-card-list.json | 4 + 159 files changed, 601 insertions(+), 548 deletions(-) delete mode 100644 blocks/ApplicationProgress/mock/api.json rename blocks/{EmptyContent/mock/api.json => ApplicationProgress/mock/application-progress.json} (100%) delete mode 100644 blocks/AreaStackChart/mock/api.json rename blocks/{JoinUs/mock/api.json => AreaStackChart/mock/area-stack-chart.json} (100%) delete mode 100644 blocks/ArticleList/mock/api.json rename blocks/{LeftContentDisplay/mock/api.json => ArticleList/mock/article-list.json} (100%) delete mode 100644 blocks/BasicDetailInfo/mock/api.json rename blocks/{MonacoEditor/mock/api.json => BasicDetailInfo/mock/basic-detail-info.json} (100%) delete mode 100644 blocks/BasicException/mock/api.json rename blocks/{NotPermission/mock/api.json => BasicException/mock/basic-exception.json} (100%) delete mode 100644 blocks/BasicNotFound/mock/api.json rename blocks/{RightContentDisplay/mock/api.json => BasicNotFound/mock/basic-not-found.json} (100%) delete mode 100644 blocks/BasicTab/mock/api.json create mode 100644 blocks/BasicTab/mock/basic-tab.json delete mode 100644 blocks/BrandDisplay/mock/api.json create mode 100644 blocks/BrandDisplay/mock/brand-display.json delete mode 100644 blocks/BrandShowCase/mock/api.json create mode 100644 blocks/BrandShowCase/mock/brand-show-case.json delete mode 100644 blocks/ChartArea/mock/api.json create mode 100644 blocks/ChartArea/mock/chart-area.json delete mode 100644 blocks/ChartBar/mock/api.json create mode 100644 blocks/ChartBar/mock/chart-bar.json delete mode 100644 blocks/ChartBox/mock/api.json create mode 100644 blocks/ChartBox/mock/chart-box.json delete mode 100644 blocks/ChartBubbleImage/mock/api.json create mode 100644 blocks/ChartBubbleImage/mock/chart-bubble-image.json delete mode 100644 blocks/ChartFacet/mock/api.json create mode 100644 blocks/ChartFacet/mock/chart-facet.json delete mode 100644 blocks/ChartFunnel/mock/api.json create mode 100644 blocks/ChartFunnel/mock/chart-funnel.json delete mode 100644 blocks/ChartGauge/mock/api.json create mode 100644 blocks/ChartGauge/mock/chart-gauge.json delete mode 100644 blocks/ChartHeatMap/mock/api.json create mode 100644 blocks/ChartHeatMap/mock/chart-heat-map.json delete mode 100644 blocks/ChartPie/mock/api.json create mode 100644 blocks/ChartPie/mock/chart-pie.json delete mode 100644 blocks/ChartRadar/mock/api.json create mode 100644 blocks/ChartRadar/mock/chart-radar.json delete mode 100644 blocks/ChartRelation/mock/api.json create mode 100644 blocks/ChartRelation/mock/chart-relation.json delete mode 100644 blocks/ChartTypeLine/mock/api.json create mode 100644 blocks/ChartTypeLine/mock/chart-type-line.json delete mode 100644 blocks/CollapseCard/mock/api.json create mode 100644 blocks/CollapseCard/mock/collapse-card.json delete mode 100644 blocks/ComplexFilter/mock/api.json create mode 100644 blocks/ComplexFilter/mock/complex-filter.json delete mode 100644 blocks/CompositeFilter/mock/api.json create mode 100644 blocks/CompositeFilter/mock/composite-filter.json delete mode 100644 blocks/DataDisplay/mock/api.json create mode 100644 blocks/DataDisplay/mock/data-display.json delete mode 100644 blocks/DetailTable/mock/api.json create mode 100644 blocks/DetailTable/mock/detail-table.json delete mode 100644 blocks/DisplayCard/mock/api.json create mode 100644 blocks/DisplayCard/mock/display-card.json delete mode 100644 blocks/DownloadCard/mock/api.json delete mode 100644 blocks/EditableTable/mock/api.json create mode 100644 blocks/EditableTable/mock/editable-table.json create mode 100644 blocks/EmptyContent/mock/empty-content.json delete mode 100644 blocks/EntryCard/mock/api.json create mode 100644 blocks/EntryCard/mock/entry-card.json delete mode 100644 blocks/FailureDetail/mock/api.json create mode 100644 blocks/FailureDetail/mock/failure-detail.json delete mode 100644 blocks/FeatureDisplay/mock/api.json create mode 100644 blocks/FeatureDisplay/mock/feature-display.json delete mode 100644 blocks/FeedList/mock/api.json create mode 100644 blocks/FeedList/mock/feed-list.json delete mode 100644 blocks/FilterList/mock/api.json create mode 100644 blocks/FilterList/mock/filter-list.json delete mode 100644 blocks/FilterWithSearch/mock/api.json create mode 100644 blocks/FilterWithSearch/mock/filter-with-search.json delete mode 100644 blocks/Footer/mock/api.json create mode 100644 blocks/Footer/mock/footer.json delete mode 100644 blocks/FooterInfo/mock/api.json create mode 100644 blocks/FooterInfo/mock/footer-info.json delete mode 100644 blocks/ForgetPasswordForm/mock/api.json create mode 100644 blocks/ForgetPasswordForm/mock/forget-password-form.json delete mode 100644 blocks/InfoDisplayTable/mock/api.json create mode 100644 blocks/InfoDisplayTable/mock/info-display-table.json create mode 100644 blocks/JoinUs/mock/join-us.json delete mode 100644 blocks/LandingIntroBanner/mock/api.json create mode 100644 blocks/LandingIntroBanner/mock/landing-intro-banner.json create mode 100644 blocks/LeftContentDisplay/mock/left-content-display.json delete mode 100644 blocks/LiteTable/mock/api.json create mode 100644 blocks/LiteTable/mock/lite-table.json delete mode 100644 blocks/MessageList/mock/api.json create mode 100644 blocks/MessageList/mock/message-list.json create mode 100644 blocks/MonacoEditor/mock/monaco-editor.json create mode 100644 blocks/NotPermission/mock/not-permission.json delete mode 100644 blocks/OurTeam/mock/api.json create mode 100644 blocks/OurTeam/mock/our-team.json delete mode 100644 blocks/PictureTextList/mock/api.json create mode 100644 blocks/PictureTextList/mock/picture-text-list.json delete mode 100644 blocks/PieDoughnutChart/mock/api.json create mode 100644 blocks/PieDoughnutChart/mock/pie-doughnut-chart.json delete mode 100644 blocks/PriceCard/mock/api.json create mode 100644 blocks/PriceCard/mock/price-card.json delete mode 100644 blocks/PriceInfo/mock/api.json create mode 100644 blocks/PriceInfo/mock/price-info.json delete mode 100644 blocks/PrivateMessageForm/mock/api.json create mode 100644 blocks/PrivateMessageForm/mock/private-message-form.json delete mode 100644 blocks/ProductInfo/mock/api.json create mode 100644 blocks/ProductInfo/mock/product-info.json delete mode 100644 blocks/ProgressTable/mock/api.json create mode 100644 blocks/ProgressTable/mock/progress-table.json delete mode 100644 blocks/RegisterForm/mock/api.json create mode 100644 blocks/RegisterForm/mock/register-form.json create mode 100644 blocks/RightContentDisplay/mock/right-content-display.json delete mode 100644 blocks/SelectableTable/mock/api.json create mode 100644 blocks/SelectableTable/mock/selectable-table.json delete mode 100644 blocks/SignupForm/mock/api.json create mode 100644 blocks/SignupForm/mock/signup-form.json delete mode 100644 blocks/SimpleFluencyForm/mock/api.json create mode 100644 blocks/SimpleFluencyForm/mock/simple-fluency-form.json delete mode 100644 blocks/SimpleFormDialog/mock/api.json create mode 100644 blocks/SimpleFormDialog/mock/simple-form-dialog.json delete mode 100644 blocks/SimpleTestimonial/mock/api.json create mode 100644 blocks/SimpleTestimonial/mock/simple-testimonial.json delete mode 100644 blocks/SortCardList/mock/api.json create mode 100644 blocks/SortCardList/mock/sort-card-list.json delete mode 100644 blocks/StatisticalCard/mock/api.json create mode 100644 blocks/StatisticalCard/mock/statistical-card.json delete mode 100644 blocks/Subscribe/mock/api.json create mode 100644 blocks/Subscribe/mock/subscribe.json delete mode 100644 blocks/SuccessDetail/mock/api.json create mode 100644 blocks/SuccessDetail/mock/success-detail.json delete mode 100644 blocks/SuccessDialog/mock/api.json create mode 100644 blocks/SuccessDialog/mock/success-dialog.json delete mode 100644 blocks/SystemNoticeList/mock/api.json create mode 100644 blocks/SystemNoticeList/mock/system-notice-list.json delete mode 100644 blocks/TabArticle/mock/api.json create mode 100644 blocks/TabArticle/mock/tab-article.json delete mode 100644 blocks/TagMessageList/mock/api.json create mode 100644 blocks/TagMessageList/mock/tag-message-list.json delete mode 100644 blocks/TeamDisplay/mock/api.json create mode 100644 blocks/TeamDisplay/mock/team-display.json delete mode 100644 blocks/TermsInfo/mock/api.json create mode 100644 blocks/TermsInfo/mock/terms-info.json delete mode 100644 blocks/Testimonial/mock/api.json create mode 100644 blocks/Testimonial/mock/testimonial.json delete mode 100644 blocks/TestimonialCard/mock/api.json create mode 100644 blocks/TestimonialCard/mock/testimonial-card.json delete mode 100644 blocks/TextCard/mock/api.json create mode 100644 blocks/TextCard/mock/text-card.json delete mode 100644 blocks/TextSearchList/mock/api.json create mode 100644 blocks/TextSearchList/mock/text-search-list.json delete mode 100644 blocks/TopicCard/mock/api.json create mode 100644 blocks/TopicCard/mock/topic-card.json delete mode 100644 blocks/TreeCardList/mock/api.json create mode 100644 blocks/TreeCardList/mock/tree-card-list.json diff --git a/blocks/ApplicationProgress/mock/api.json b/blocks/ApplicationProgress/mock/api.json deleted file mode 100644 index e706430232..0000000000 --- a/blocks/ApplicationProgress/mock/api.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "status": "success", - "data": {} -} diff --git a/blocks/EmptyContent/mock/api.json b/blocks/ApplicationProgress/mock/application-progress.json similarity index 100% rename from blocks/EmptyContent/mock/api.json rename to blocks/ApplicationProgress/mock/application-progress.json diff --git a/blocks/ApplicationProgress/src/ApplicationProgress.jsx b/blocks/ApplicationProgress/src/ApplicationProgress.jsx index e08efe6661..efa71e9727 100644 --- a/blocks/ApplicationProgress/src/ApplicationProgress.jsx +++ b/blocks/ApplicationProgress/src/ApplicationProgress.jsx @@ -1,5 +1,3 @@ -'use strict'; - import React, { Component } from 'react'; import { Button, Step, Grid, Icon } from '@icedesign/base'; import IceCard from '@icedesign/card'; @@ -66,17 +64,17 @@ export default class ApplicationProgress extends Component { // ICE: React Component 的生命周期 // http://ice.alibaba-inc.com/docs/guide/intro-react#React-组件的生命周期 - componentWillMount() {} + componentWillMount() { } - componentDidMount() {} + componentDidMount() { } - componentWillReceiveProps(nextProps, nextContext) {} + componentWillReceiveProps(nextProps, nextContext) { } shouldComponentUpdate(nextProps, nextState) { return true; } - componentWillUnmount() {} + componentWillUnmount() { } render() { const data = dataSource(); @@ -96,7 +94,7 @@ export default class ApplicationProgress extends Component {
    - + condition
    {item.condition}
    diff --git a/blocks/AreaStackChart/mock/api.json b/blocks/AreaStackChart/mock/api.json deleted file mode 100644 index e706430232..0000000000 --- a/blocks/AreaStackChart/mock/api.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "status": "success", - "data": {} -} diff --git a/blocks/JoinUs/mock/api.json b/blocks/AreaStackChart/mock/area-stack-chart.json similarity index 100% rename from blocks/JoinUs/mock/api.json rename to blocks/AreaStackChart/mock/area-stack-chart.json diff --git a/blocks/ArticleList/mock/api.json b/blocks/ArticleList/mock/api.json deleted file mode 100644 index e706430232..0000000000 --- a/blocks/ArticleList/mock/api.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "status": "success", - "data": {} -} diff --git a/blocks/LeftContentDisplay/mock/api.json b/blocks/ArticleList/mock/article-list.json similarity index 100% rename from blocks/LeftContentDisplay/mock/api.json rename to blocks/ArticleList/mock/article-list.json diff --git a/blocks/BasicDetailInfo/mock/api.json b/blocks/BasicDetailInfo/mock/api.json deleted file mode 100644 index e706430232..0000000000 --- a/blocks/BasicDetailInfo/mock/api.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "status": "success", - "data": {} -} diff --git a/blocks/MonacoEditor/mock/api.json b/blocks/BasicDetailInfo/mock/basic-detail-info.json similarity index 100% rename from blocks/MonacoEditor/mock/api.json rename to blocks/BasicDetailInfo/mock/basic-detail-info.json diff --git a/blocks/BasicException/mock/api.json b/blocks/BasicException/mock/api.json deleted file mode 100644 index e706430232..0000000000 --- a/blocks/BasicException/mock/api.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "status": "success", - "data": {} -} diff --git a/blocks/NotPermission/mock/api.json b/blocks/BasicException/mock/basic-exception.json similarity index 100% rename from blocks/NotPermission/mock/api.json rename to blocks/BasicException/mock/basic-exception.json diff --git a/blocks/BasicNotFound/mock/api.json b/blocks/BasicNotFound/mock/api.json deleted file mode 100644 index e706430232..0000000000 --- a/blocks/BasicNotFound/mock/api.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "status": "success", - "data": {} -} diff --git a/blocks/RightContentDisplay/mock/api.json b/blocks/BasicNotFound/mock/basic-not-found.json similarity index 100% rename from blocks/RightContentDisplay/mock/api.json rename to blocks/BasicNotFound/mock/basic-not-found.json diff --git a/blocks/BasicTab/mock/api.json b/blocks/BasicTab/mock/api.json deleted file mode 100644 index e706430232..0000000000 --- a/blocks/BasicTab/mock/api.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "status": "success", - "data": {} -} diff --git a/blocks/BasicTab/mock/basic-tab.json b/blocks/BasicTab/mock/basic-tab.json new file mode 100644 index 0000000000..eee2984fbe --- /dev/null +++ b/blocks/BasicTab/mock/basic-tab.json @@ -0,0 +1,4 @@ +{ + "status": "SUCCESS", + "data": {} +} diff --git a/blocks/BrandDisplay/mock/api.json b/blocks/BrandDisplay/mock/api.json deleted file mode 100644 index e706430232..0000000000 --- a/blocks/BrandDisplay/mock/api.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "status": "success", - "data": {} -} diff --git a/blocks/BrandDisplay/mock/brand-display.json b/blocks/BrandDisplay/mock/brand-display.json new file mode 100644 index 0000000000..eee2984fbe --- /dev/null +++ b/blocks/BrandDisplay/mock/brand-display.json @@ -0,0 +1,4 @@ +{ + "status": "SUCCESS", + "data": {} +} diff --git a/blocks/BrandShowCase/mock/api.json b/blocks/BrandShowCase/mock/api.json deleted file mode 100644 index e706430232..0000000000 --- a/blocks/BrandShowCase/mock/api.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "status": "success", - "data": {} -} diff --git a/blocks/BrandShowCase/mock/brand-show-case.json b/blocks/BrandShowCase/mock/brand-show-case.json new file mode 100644 index 0000000000..eee2984fbe --- /dev/null +++ b/blocks/BrandShowCase/mock/brand-show-case.json @@ -0,0 +1,4 @@ +{ + "status": "SUCCESS", + "data": {} +} diff --git a/blocks/ChartArea/mock/api.json b/blocks/ChartArea/mock/api.json deleted file mode 100644 index e706430232..0000000000 --- a/blocks/ChartArea/mock/api.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "status": "success", - "data": {} -} diff --git a/blocks/ChartArea/mock/chart-area.json b/blocks/ChartArea/mock/chart-area.json new file mode 100644 index 0000000000..eee2984fbe --- /dev/null +++ b/blocks/ChartArea/mock/chart-area.json @@ -0,0 +1,4 @@ +{ + "status": "SUCCESS", + "data": {} +} diff --git a/blocks/ChartBar/mock/api.json b/blocks/ChartBar/mock/api.json deleted file mode 100644 index e706430232..0000000000 --- a/blocks/ChartBar/mock/api.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "status": "success", - "data": {} -} diff --git a/blocks/ChartBar/mock/chart-bar.json b/blocks/ChartBar/mock/chart-bar.json new file mode 100644 index 0000000000..eee2984fbe --- /dev/null +++ b/blocks/ChartBar/mock/chart-bar.json @@ -0,0 +1,4 @@ +{ + "status": "SUCCESS", + "data": {} +} diff --git a/blocks/ChartBox/mock/api.json b/blocks/ChartBox/mock/api.json deleted file mode 100644 index e706430232..0000000000 --- a/blocks/ChartBox/mock/api.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "status": "success", - "data": {} -} diff --git a/blocks/ChartBox/mock/chart-box.json b/blocks/ChartBox/mock/chart-box.json new file mode 100644 index 0000000000..eee2984fbe --- /dev/null +++ b/blocks/ChartBox/mock/chart-box.json @@ -0,0 +1,4 @@ +{ + "status": "SUCCESS", + "data": {} +} diff --git a/blocks/ChartBubbleImage/mock/api.json b/blocks/ChartBubbleImage/mock/api.json deleted file mode 100644 index e706430232..0000000000 --- a/blocks/ChartBubbleImage/mock/api.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "status": "success", - "data": {} -} diff --git a/blocks/ChartBubbleImage/mock/chart-bubble-image.json b/blocks/ChartBubbleImage/mock/chart-bubble-image.json new file mode 100644 index 0000000000..eee2984fbe --- /dev/null +++ b/blocks/ChartBubbleImage/mock/chart-bubble-image.json @@ -0,0 +1,4 @@ +{ + "status": "SUCCESS", + "data": {} +} diff --git a/blocks/ChartFacet/mock/api.json b/blocks/ChartFacet/mock/api.json deleted file mode 100644 index e706430232..0000000000 --- a/blocks/ChartFacet/mock/api.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "status": "success", - "data": {} -} diff --git a/blocks/ChartFacet/mock/chart-facet.json b/blocks/ChartFacet/mock/chart-facet.json new file mode 100644 index 0000000000..eee2984fbe --- /dev/null +++ b/blocks/ChartFacet/mock/chart-facet.json @@ -0,0 +1,4 @@ +{ + "status": "SUCCESS", + "data": {} +} diff --git a/blocks/ChartFunnel/mock/api.json b/blocks/ChartFunnel/mock/api.json deleted file mode 100644 index e706430232..0000000000 --- a/blocks/ChartFunnel/mock/api.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "status": "success", - "data": {} -} diff --git a/blocks/ChartFunnel/mock/chart-funnel.json b/blocks/ChartFunnel/mock/chart-funnel.json new file mode 100644 index 0000000000..eee2984fbe --- /dev/null +++ b/blocks/ChartFunnel/mock/chart-funnel.json @@ -0,0 +1,4 @@ +{ + "status": "SUCCESS", + "data": {} +} diff --git a/blocks/ChartGauge/mock/api.json b/blocks/ChartGauge/mock/api.json deleted file mode 100644 index e706430232..0000000000 --- a/blocks/ChartGauge/mock/api.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "status": "success", - "data": {} -} diff --git a/blocks/ChartGauge/mock/chart-gauge.json b/blocks/ChartGauge/mock/chart-gauge.json new file mode 100644 index 0000000000..eee2984fbe --- /dev/null +++ b/blocks/ChartGauge/mock/chart-gauge.json @@ -0,0 +1,4 @@ +{ + "status": "SUCCESS", + "data": {} +} diff --git a/blocks/ChartHeatMap/mock/api.json b/blocks/ChartHeatMap/mock/api.json deleted file mode 100644 index e706430232..0000000000 --- a/blocks/ChartHeatMap/mock/api.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "status": "success", - "data": {} -} diff --git a/blocks/ChartHeatMap/mock/chart-heat-map.json b/blocks/ChartHeatMap/mock/chart-heat-map.json new file mode 100644 index 0000000000..eee2984fbe --- /dev/null +++ b/blocks/ChartHeatMap/mock/chart-heat-map.json @@ -0,0 +1,4 @@ +{ + "status": "SUCCESS", + "data": {} +} diff --git a/blocks/ChartPie/mock/api.json b/blocks/ChartPie/mock/api.json deleted file mode 100644 index e706430232..0000000000 --- a/blocks/ChartPie/mock/api.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "status": "success", - "data": {} -} diff --git a/blocks/ChartPie/mock/chart-pie.json b/blocks/ChartPie/mock/chart-pie.json new file mode 100644 index 0000000000..eee2984fbe --- /dev/null +++ b/blocks/ChartPie/mock/chart-pie.json @@ -0,0 +1,4 @@ +{ + "status": "SUCCESS", + "data": {} +} diff --git a/blocks/ChartPoint/mock/chart-point.json b/blocks/ChartPoint/mock/chart-point.json index 88a1ca050e..7d8f1b8fb9 100644 --- a/blocks/ChartPoint/mock/chart-point.json +++ b/blocks/ChartPoint/mock/chart-point.json @@ -1,5 +1,5 @@ { - "status": "success", + "status": "SUCCESS", "data": [ { "gender": "female", diff --git a/blocks/ChartRadar/mock/api.json b/blocks/ChartRadar/mock/api.json deleted file mode 100644 index e706430232..0000000000 --- a/blocks/ChartRadar/mock/api.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "status": "success", - "data": {} -} diff --git a/blocks/ChartRadar/mock/chart-radar.json b/blocks/ChartRadar/mock/chart-radar.json new file mode 100644 index 0000000000..eee2984fbe --- /dev/null +++ b/blocks/ChartRadar/mock/chart-radar.json @@ -0,0 +1,4 @@ +{ + "status": "SUCCESS", + "data": {} +} diff --git a/blocks/ChartRelation/mock/api.json b/blocks/ChartRelation/mock/api.json deleted file mode 100644 index e706430232..0000000000 --- a/blocks/ChartRelation/mock/api.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "status": "success", - "data": {} -} diff --git a/blocks/ChartRelation/mock/chart-relation.json b/blocks/ChartRelation/mock/chart-relation.json new file mode 100644 index 0000000000..eee2984fbe --- /dev/null +++ b/blocks/ChartRelation/mock/chart-relation.json @@ -0,0 +1,4 @@ +{ + "status": "SUCCESS", + "data": {} +} diff --git a/blocks/ChartStock/mock/chart-stock.json b/blocks/ChartStock/mock/chart-stock.json index 9373eb9b99..8bec6e1a25 100644 --- a/blocks/ChartStock/mock/chart-stock.json +++ b/blocks/ChartStock/mock/chart-stock.json @@ -1,9 +1,12 @@ { - "status": "success", + "status": "SUCCESS", "data": [ { "date": 1186444800000, - "range": [22.258032033902, 25.4889359321959], + "range": [ + 22.258032033902, + 25.4889359321959 + ], "start": 22.75, "end": 23.44, "lowest": 22.69, @@ -13,7 +16,10 @@ }, { "date": 1186358400000, - "range": [22.2381666799343, 25.3786666401314], + "range": [ + 22.2381666799343, + 25.3786666401314 + ], "start": 23.03, "end": 22.97, "lowest": 22.44, @@ -23,7 +29,10 @@ }, { "date": 1186099200000, - "range": [22.2646752576289, 25.3541494847422], + "range": [ + 22.2646752576289, + 25.3541494847422 + ], "start": 23.2, "end": 22.92, "lowest": 22.87, @@ -33,7 +42,10 @@ }, { "date": 1186012800000, - "range": [22.351151387828, 25.293697224344], + "range": [ + 22.351151387828, + 25.293697224344 + ], "start": 22.65, "end": 23.36, "lowest": 22.65, @@ -43,7 +55,10 @@ }, { "date": 1185926400000, - "range": [22.4525580936985, 25.195883812603], + "range": [ + 22.4525580936985, + 25.195883812603 + ], "start": 23.17, "end": 23.25, "lowest": 22.85, @@ -53,7 +68,10 @@ }, { "date": 1185840000000, - "range": [22.5727587647169, 25.0649824705663], + "range": [ + 22.5727587647169, + 25.0649824705663 + ], "start": 23.88, "end": 23.25, "lowest": 23.24, @@ -63,7 +81,10 @@ }, { "date": 1185753600000, - "range": [22.615611475491, 25.0677770490181], + "range": [ + 22.615611475491, + 25.0677770490181 + ], "start": 23.55, "end": 23.62, "lowest": 23.38, @@ -73,7 +94,10 @@ }, { "date": 1185494400000, - "range": [22.6132951454669, 25.0574097090663], + "range": [ + 22.6132951454669, + 25.0574097090663 + ], "start": 23.98, "end": 23.49, "lowest": 23.47, @@ -83,7 +107,10 @@ }, { "date": 1185408000000, - "range": [22.6301690560976, 25.1586618878048], + "range": [ + 22.6301690560976, + 25.1586618878048 + ], "start": 24.4, "end": 24.03, "lowest": 23.62, @@ -93,7 +120,10 @@ }, { "date": 1185321600000, - "range": [22.5611733265837, 25.5141533468326], + "range": [ + 22.5611733265837, + 25.5141533468326 + ], "start": 25.01, "end": 24.68, "lowest": 24.59, @@ -103,7 +133,10 @@ }, { "date": 1185235200000, - "range": [22.5307199313896, 25.8450601372208], + "range": [ + 22.5307199313896, + 25.8450601372208 + ], "start": 24.8, "end": 24.84, "lowest": 24.73, @@ -113,7 +146,10 @@ }, { "date": 1185148800000, - "range": [22.4759114363302, 26.2021771273396], + "range": [ + 22.4759114363302, + 26.2021771273396 + ], "start": 25.43, "end": 24.99, "lowest": 24.98, @@ -123,7 +159,10 @@ }, { "date": 1184889600000, - "range": [22.3814852838885, 26.6625294322229], + "range": [ + 22.3814852838885, + 26.6625294322229 + ], "start": 25.7, "end": 25.35, "lowest": 25.2, @@ -133,7 +172,10 @@ }, { "date": 1184803200000, - "range": [22.329872112167, 27.2562557756661], + "range": [ + 22.329872112167, + 27.2562557756661 + ], "start": 26.32, "end": 26.03, "lowest": 25.92, @@ -143,7 +185,10 @@ }, { "date": 1184716800000, - "range": [22.2394563687459, 27.8690872625082], + "range": [ + 22.2394563687459, + 27.8690872625082 + ], "start": 26.07, "end": 26.2, "lowest": 26.02, @@ -153,7 +198,10 @@ }, { "date": 1184630400000, - "range": [21.9240703578069, 29.0713592843861], + "range": [ + 21.9240703578069, + 29.0713592843861 + ], "start": 26.74, "end": 27.53, "lowest": 26.7, @@ -163,7 +211,10 @@ }, { "date": 1184544000000, - "range": [21.812522351567, 29.613955296866], + "range": [ + 21.812522351567, + 29.613955296866 + ], "start": 26.48, "end": 26.7, "lowest": 26.13, @@ -173,7 +224,10 @@ }, { "date": 1184284800000, - "range": [21.7905091214527, 30.0539817570947], + "range": [ + 21.7905091214527, + 30.0539817570947 + ], "start": 26.87, "end": 26.58, "lowest": 26.5, @@ -183,7 +237,10 @@ }, { "date": 1184198400000, - "range": [21.7801924456099, 30.5486151087802], + "range": [ + 21.7801924456099, + 30.5486151087802 + ], "start": 26.7, "end": 26.96, "lowest": 26.34, @@ -193,7 +250,10 @@ }, { "date": 1184112000000, - "range": [21.8250372642247, 30.8819254715507], + "range": [ + 21.8250372642247, + 30.8819254715507 + ], "start": 27.03, "end": 26.69, "lowest": 26.55, @@ -203,7 +263,10 @@ }, { "date": 1184025600000, - "range": [21.9384132069328, 31.1846735861345], + "range": [ + 21.9384132069328, + 31.1846735861345 + ], "start": 27.09, "end": 26.97, "lowest": 26.96, @@ -213,7 +276,10 @@ }, { "date": 1183939200000, - "range": [22.161256767491, 31.3734864650181], + "range": [ + 22.161256767491, + 31.3734864650181 + ], "start": 26.92, "end": 27.2, "lowest": 26.82, @@ -223,7 +289,10 @@ }, { "date": 1183680000000, - "range": [22.4604705168376, 31.4020589663248], + "range": [ + 22.4604705168376, + 31.4020589663248 + ], "start": 27.01, "end": 27.1, "lowest": 26.93, @@ -233,7 +302,10 @@ }, { "date": 1183593600000, - "range": [22.7301730821014, 31.4071538357971], + "range": [ + 22.7301730821014, + 31.4071538357971 + ], "start": 26.92, "end": 26.99, "lowest": 26.9, @@ -243,7 +315,10 @@ }, { "date": 1183420800000, - "range": [23.075282464312, 31.279435071376], + "range": [ + 23.075282464312, + 31.279435071376 + ], "start": 26.95, "end": 27, "lowest": 26.9, @@ -253,7 +328,10 @@ }, { "date": 1183334400000, - "range": [23.4888727296016, 30.9937545407968], + "range": [ + 23.4888727296016, + 30.9937545407968 + ], "start": 27.19, "end": 26.86, "lowest": 26.76, @@ -263,7 +341,10 @@ }, { "date": 1183075200000, - "range": [23.8701829341171, 30.7576341317659], + "range": [ + 23.8701829341171, + 30.7576341317659 + ], "start": 27.21, "end": 27.13, "lowest": 26.93, @@ -273,7 +354,10 @@ }, { "date": 1182988800000, - "range": [24.37101840654, 30.3199631869199], + "range": [ + 24.37101840654, + 30.3199631869199 + ], "start": 27.44, "end": 27.25, "lowest": 27.12, @@ -283,7 +367,10 @@ }, { "date": 1182902400000, - "range": [24.791784218615, 30.01093156277], + "range": [ + 24.791784218615, + 30.01093156277 + ], "start": 27.51, "end": 27.58, "lowest": 27.4, @@ -293,7 +380,10 @@ }, { "date": 1182816000000, - "range": [25.0933572728443, 29.8622854543115], + "range": [ + 25.0933572728443, + 29.8622854543115 + ], "start": 27.73, "end": 27.71, "lowest": 27.36, @@ -303,7 +393,10 @@ }, { "date": 1182729600000, - "range": [25.425715490675, 29.61756901865], + "range": [ + 25.425715490675, + 29.61756901865 + ], "start": 27.6, "end": 27.64, "lowest": 27.34, @@ -313,7 +406,10 @@ }, { "date": 1182470400000, - "range": [25.8087650221504, 29.2099699556992], + "range": [ + 25.8087650221504, + 29.2099699556992 + ], "start": 27.68, "end": 27.38, "lowest": 27.31, @@ -323,7 +419,10 @@ }, { "date": 1182384000000, - "range": [26.1473627984766, 28.8807744030469], + "range": [ + 26.1473627984766, + 28.8807744030469 + ], "start": 27.69, "end": 27.67, "lowest": 27.55, @@ -333,7 +432,10 @@ }, { "date": 1182297600000, - "range": [26.3248926451067, 28.7702147097866], + "range": [ + 26.3248926451067, + 28.7702147097866 + ], "start": 27.89, "end": 27.66, "lowest": 27.66, @@ -343,7 +445,10 @@ }, { "date": 1182211200000, - "range": [26.4936901365961, 28.6471197268079], + "range": [ + 26.4936901365961, + 28.6471197268079 + ], "start": 29.4, "end": 27.63, "lowest": 27.54, @@ -353,7 +458,10 @@ }, { "date": 1182124800000, - "range": [26.4307185674103, 28.8615628651793], + "range": [ + 26.4307185674103, + 28.8615628651793 + ], "start": 27.72, "end": 28.12, "lowest": 27.5, @@ -363,7 +471,10 @@ }, { "date": 1181865600000, - "range": [26.4999748869929, 28.8145502260142], + "range": [ + 26.4999748869929, + 28.8145502260142 + ], "start": 27.49, "end": 27.31, "lowest": 27.19, @@ -373,7 +484,10 @@ }, { "date": 1181779200000, - "range": [26.6042255158895, 28.7140489682209], + "range": [ + 26.6042255158895, + 28.7140489682209 + ], "start": 27.38, "end": 27.3, "lowest": 27.15, @@ -383,7 +497,10 @@ }, { "date": 1181692800000, - "range": [26.6431307564529, 28.6992384870942], + "range": [ + 26.6431307564529, + 28.6992384870942 + ], "start": 27.12, "end": 27.38, "lowest": 26.61, @@ -393,7 +510,10 @@ }, { "date": 1181606400000, - "range": [26.7121412686811, 28.6152174626379], + "range": [ + 26.7121412686811, + 28.6152174626379 + ], "start": 27.3, "end": 27.05, "lowest": 26.98, @@ -403,7 +523,10 @@ }, { "date": 1181520000000, - "range": [26.7550747383997, 28.5863505232005], + "range": [ + 26.7550747383997, + 28.5863505232005 + ], "start": 27.27, "end": 27.35, "lowest": 27.15, @@ -413,7 +536,10 @@ }, { "date": 1181260800000, - "range": [26.7692772911645, 28.5864454176711], + "range": [ + 26.7692772911645, + 28.5864454176711 + ], "start": 27.02, "end": 27.39, "lowest": 26.96, @@ -423,7 +549,10 @@ }, { "date": 1181174400000, - "range": [26.7502625758866, 28.6064748482268], + "range": [ + 26.7502625758866, + 28.6064748482268 + ], "start": 27.34, "end": 26.98, "lowest": 26.98, @@ -433,7 +562,10 @@ }, { "date": 1181088000000, - "range": [26.7972853923045, 28.5799292153909], + "range": [ + 26.7972853923045, + 28.5799292153909 + ], "start": 28.05, "end": 27.44, "lowest": 27.3, @@ -443,7 +575,10 @@ }, { "date": 1181001600000, - "range": [26.783728754541, 28.791542490918], + "range": [ + 26.783728754541, + 28.791542490918 + ], "start": 28.4, "end": 28.23, "lowest": 28.1, @@ -453,7 +588,10 @@ }, { "date": 1180915200000, - "range": [26.7608993321351, 29.0967013357298], + "range": [ + 26.7608993321351, + 29.0967013357298 + ], "start": 28.6, "end": 28.59, "lowest": 28.4, @@ -463,7 +601,10 @@ }, { "date": 1180656000000, - "range": [26.6982987495954, 29.4694025008091], + "range": [ + 26.6982987495954, + 29.4694025008091 + ], "start": 28.9, "end": 28.78, "lowest": 28.61, @@ -473,7 +614,10 @@ }, { "date": 1180569600000, - "range": [26.6761979819332, 29.7311040361336], + "range": [ + 26.6761979819332, + 29.7311040361336 + ], "start": 28.76, "end": 28.7, "lowest": 28.49, @@ -483,7 +627,10 @@ }, { "date": 1180483200000, - "range": [26.6753026623903, 29.8528946752193], + "range": [ + 26.6753026623903, + 29.8528946752193 + ], "start": 28.19, "end": 28, "lowest": 28, @@ -493,7 +640,10 @@ }, { "date": 1180396800000, - "range": [26.6710036429932, 29.9649927140135], + "range": [ + 26.6710036429932, + 29.9649927140135 + ], "start": 28.36, "end": 28.4, "lowest": 28.2, @@ -503,7 +653,10 @@ }, { "date": 1180051200000, - "range": [26.6649239816591, 30.1181520366818], + "range": [ + 26.6649239816591, + 30.1181520366818 + ], "start": 28.44, "end": 28.58, "lowest": 28.34, @@ -513,7 +666,10 @@ }, { "date": 1179964800000, - "range": [26.7069333280674, 30.1886333438653], + "range": [ + 26.7069333280674, + 30.1886333438653 + ], "start": 28.65, "end": 28.41, "lowest": 28.25, @@ -523,7 +679,10 @@ }, { "date": 1179878400000, - "range": [26.7142754376783, 30.3149491246434], + "range": [ + 26.7142754376783, + 30.3149491246434 + ], "start": 29.1, "end": 28.61, "lowest": 28.53, @@ -533,7 +692,10 @@ }, { "date": 1179792000000, - "range": [26.7071004565491, 30.5182990869018], + "range": [ + 26.7071004565491, + 30.5182990869018 + ], "start": 29.33, "end": 28.92, "lowest": 28.78, @@ -543,7 +705,10 @@ }, { "date": 1179705600000, - "range": [26.6717633151346, 30.8469733697308], + "range": [ + 26.6717633151346, + 30.8469733697308 + ], "start": 29.62, "end": 29.35, "lowest": 29.32, @@ -553,7 +718,10 @@ }, { "date": 1179446400000, - "range": [26.5706493402039, 31.2937013195923], + "range": [ + 26.5706493402039, + 31.2937013195923 + ], "start": 28.9, "end": 29.75, "lowest": 28.78, @@ -563,7 +731,10 @@ }, { "date": 1179360000000, - "range": [26.671971354434, 31.2800572911321], + "range": [ + 26.671971354434, + 31.2800572911321 + ], "start": 28.99, "end": 28.57, "lowest": 28.49, @@ -573,7 +744,10 @@ }, { "date": 1179273600000, - "range": [26.7676578857188, 31.3751842285624], + "range": [ + 26.7676578857188, + 31.3751842285624 + ], "start": 28.89, "end": 29.21, "lowest": 28.25, @@ -583,7 +757,10 @@ }, { "date": 1179187200000, - "range": [26.885335608266, 31.354328783468], + "range": [ + 26.885335608266, + 31.354328783468 + ], "start": 29.16, "end": 28.81, "lowest": 28.75, @@ -593,7 +770,10 @@ }, { "date": 1179100800000, - "range": [27.0767083929953, 31.3105832140094], + "range": [ + 27.0767083929953, + 31.3105832140094 + ], "start": 29.79, "end": 29.5, "lowest": 29.08, @@ -603,7 +783,10 @@ }, { "date": 1178841600000, - "range": [27.1574611912334, 31.5540776175331], + "range": [ + 27.1574611912334, + 31.5540776175331 + ], "start": 29.62, "end": 30.05, "lowest": 29.53, diff --git a/blocks/ChartTypeLine/mock/api.json b/blocks/ChartTypeLine/mock/api.json deleted file mode 100644 index e706430232..0000000000 --- a/blocks/ChartTypeLine/mock/api.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "status": "success", - "data": {} -} diff --git a/blocks/ChartTypeLine/mock/chart-type-line.json b/blocks/ChartTypeLine/mock/chart-type-line.json new file mode 100644 index 0000000000..eee2984fbe --- /dev/null +++ b/blocks/ChartTypeLine/mock/chart-type-line.json @@ -0,0 +1,4 @@ +{ + "status": "SUCCESS", + "data": {} +} diff --git a/blocks/CollapseCard/mock/api.json b/blocks/CollapseCard/mock/api.json deleted file mode 100644 index e706430232..0000000000 --- a/blocks/CollapseCard/mock/api.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "status": "success", - "data": {} -} diff --git a/blocks/CollapseCard/mock/collapse-card.json b/blocks/CollapseCard/mock/collapse-card.json new file mode 100644 index 0000000000..eee2984fbe --- /dev/null +++ b/blocks/CollapseCard/mock/collapse-card.json @@ -0,0 +1,4 @@ +{ + "status": "SUCCESS", + "data": {} +} diff --git a/blocks/ComplexDialog/mock/api.json b/blocks/ComplexDialog/mock/api.json index e706430232..eee2984fbe 100644 --- a/blocks/ComplexDialog/mock/api.json +++ b/blocks/ComplexDialog/mock/api.json @@ -1,4 +1,4 @@ { - "status": "success", + "status": "SUCCESS", "data": {} } diff --git a/blocks/ComplexFilter/mock/api.json b/blocks/ComplexFilter/mock/api.json deleted file mode 100644 index e706430232..0000000000 --- a/blocks/ComplexFilter/mock/api.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "status": "success", - "data": {} -} diff --git a/blocks/ComplexFilter/mock/complex-filter.json b/blocks/ComplexFilter/mock/complex-filter.json new file mode 100644 index 0000000000..eee2984fbe --- /dev/null +++ b/blocks/ComplexFilter/mock/complex-filter.json @@ -0,0 +1,4 @@ +{ + "status": "SUCCESS", + "data": {} +} diff --git a/blocks/ComplexProgressTable/src/ComplexProgressTable.jsx b/blocks/ComplexProgressTable/src/ComplexProgressTable.jsx index 4785fc9eeb..1bb35808e3 100644 --- a/blocks/ComplexProgressTable/src/ComplexProgressTable.jsx +++ b/blocks/ComplexProgressTable/src/ComplexProgressTable.jsx @@ -12,18 +12,18 @@ import EditDialog from './EditDialog'; // 详细请求配置请参见 https://github.com/axios/axios url: '/mock/complex-progress-table.json', params: { - page: 1 + page: 1, }, defaultBindingData: { list: [], total: 100, pageSize: 10, - currentPage: 1 - } + currentPage: 1, + }, }, updateRow: { - url: '/your-update-api.json' - } + url: '/your-update-api.json', + }, }) export default class ComplexProgressTable extends Component { static displayName = 'ComplexProgressTable'; @@ -42,7 +42,7 @@ export default class ComplexProgressTable extends Component { // ICE: React Component 的生命周期 // http://ice.alibaba-inc.com/docs/guide/intro-react#React-组件的生命周期 - componentWillMount() {} + componentWillMount() { } componentDidMount() { this.queryCache.page = 1; @@ -51,7 +51,7 @@ export default class ComplexProgressTable extends Component { fetchData = () => { this.props.updateBindingData('tableData', { - data: this.queryCache + data: this.queryCache, }); }; @@ -90,7 +90,7 @@ export default class ComplexProgressTable extends Component { console.log('value', value); EditDialog.hide(); }, - value: record + value: record, }); }; @@ -175,5 +175,5 @@ const styles = { priority: { width: '70px', textAlign: 'center' }, complexProgressTable: {}, operations: { lineHeight: '28px' }, - pagination: { textAlign: 'right', paddingTop: '26px' } + pagination: { textAlign: 'right', paddingTop: '26px' }, }; diff --git a/blocks/CompositeFilter/mock/api.json b/blocks/CompositeFilter/mock/api.json deleted file mode 100644 index e706430232..0000000000 --- a/blocks/CompositeFilter/mock/api.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "status": "success", - "data": {} -} diff --git a/blocks/CompositeFilter/mock/composite-filter.json b/blocks/CompositeFilter/mock/composite-filter.json new file mode 100644 index 0000000000..eee2984fbe --- /dev/null +++ b/blocks/CompositeFilter/mock/composite-filter.json @@ -0,0 +1,4 @@ +{ + "status": "SUCCESS", + "data": {} +} diff --git a/blocks/ConfirmDialog/mock/api.json b/blocks/ConfirmDialog/mock/api.json index e706430232..eee2984fbe 100644 --- a/blocks/ConfirmDialog/mock/api.json +++ b/blocks/ConfirmDialog/mock/api.json @@ -1,4 +1,4 @@ { - "status": "success", + "status": "SUCCESS", "data": {} } diff --git a/blocks/DataDisplay/mock/api.json b/blocks/DataDisplay/mock/api.json deleted file mode 100644 index e706430232..0000000000 --- a/blocks/DataDisplay/mock/api.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "status": "success", - "data": {} -} diff --git a/blocks/DataDisplay/mock/data-display.json b/blocks/DataDisplay/mock/data-display.json new file mode 100644 index 0000000000..eee2984fbe --- /dev/null +++ b/blocks/DataDisplay/mock/data-display.json @@ -0,0 +1,4 @@ +{ + "status": "SUCCESS", + "data": {} +} diff --git a/blocks/DetailTable/mock/api.json b/blocks/DetailTable/mock/api.json deleted file mode 100644 index e706430232..0000000000 --- a/blocks/DetailTable/mock/api.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "status": "success", - "data": {} -} diff --git a/blocks/DetailTable/mock/detail-table.json b/blocks/DetailTable/mock/detail-table.json new file mode 100644 index 0000000000..eee2984fbe --- /dev/null +++ b/blocks/DetailTable/mock/detail-table.json @@ -0,0 +1,4 @@ +{ + "status": "SUCCESS", + "data": {} +} diff --git a/blocks/DisplayCard/mock/api.json b/blocks/DisplayCard/mock/api.json deleted file mode 100644 index e706430232..0000000000 --- a/blocks/DisplayCard/mock/api.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "status": "success", - "data": {} -} diff --git a/blocks/DisplayCard/mock/display-card.json b/blocks/DisplayCard/mock/display-card.json new file mode 100644 index 0000000000..eee2984fbe --- /dev/null +++ b/blocks/DisplayCard/mock/display-card.json @@ -0,0 +1,4 @@ +{ + "status": "SUCCESS", + "data": {} +} diff --git a/blocks/DownloadCard/mock/api.json b/blocks/DownloadCard/mock/api.json deleted file mode 100644 index e706430232..0000000000 --- a/blocks/DownloadCard/mock/api.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "status": "success", - "data": {} -} diff --git a/blocks/DownloadCard/mock/download-card.json b/blocks/DownloadCard/mock/download-card.json index 48f4ccf15f..eee2984fbe 100644 --- a/blocks/DownloadCard/mock/download-card.json +++ b/blocks/DownloadCard/mock/download-card.json @@ -1,141 +1,4 @@ { - "status": "success", - "data": { - "clientSDK": [ - { - "img": "//img.alicdn.com/tfs/TB1gX6WNFXXXXb6XXXXXXXXXXXX-130-108.png", - "title": "淘宝交易", - "desc": "快速搭建交易闭环", - "androidSDK": "https://www.taobao.com/", - "iosSDK": "https://www.taobao.com/", - "version": "", - "docs": "", - "guide": "", - "faq": "" - }, - { - "img": "//img.alicdn.com/tfs/TB17ITyNFXXXXaGXVXXXXXXXXXX-114-102.png", - "title": "淘宝交易", - "desc": "快速搭建交易闭环", - "androidSDK": "https://www.taobao.com/", - "iosSDK": "https://www.taobao.com/", - "version": "", - "docs": "", - "guide": "", - "faq": "" - }, - { - "img": "//img.alicdn.com/tfs/TB1EA2FNFXXXXX2XFXXXXXXXXXX-96-126.png", - "title": "淘宝交易", - "desc": "快速搭建交易闭环", - "androidSDK": "https://www.taobao.com/", - "iosSDK": "https://www.taobao.com/", - "version": "", - "docs": "", - "guide": "", - "faq": "" - }, - { - "img": "//img.alicdn.com/tfs/TB1gX6WNFXXXXb6XXXXXXXXXXXX-130-108.png", - "title": "淘宝交易", - "desc": "快速搭建交易闭环", - "androidSDK": "https://www.taobao.com/", - "iosSDK": "https://www.taobao.com/", - "version": "", - "docs": "", - "guide": "", - "faq": "" - }, - { - "img": "//img.alicdn.com/tfs/TB17ITyNFXXXXaGXVXXXXXXXXXX-114-102.png", - "title": "淘宝交易", - "desc": "快速搭建交易闭环", - "androidSDK": "https://www.taobao.com/", - "iosSDK": "https://www.taobao.com/", - "version": "", - "docs": "", - "guide": "", - "faq": "" - }, - { - "img": "//img.alicdn.com/tfs/TB1EA2FNFXXXXX2XFXXXXXXXXXX-96-126.png", - "title": "淘宝交易", - "desc": "快速搭建交易闭环", - "androidSDK": "https://www.taobao.com/", - "iosSDK": "https://www.taobao.com/", - "version": "", - "docs": "", - "guide": "", - "faq": "" - } - ], - "serverSDK": [ - { - "img": "//img.alicdn.com/tfs/TB1gX6WNFXXXXb6XXXXXXXXXXXX-130-108.png", - "title": "天猫交易", - "desc": "快速搭建交易闭环", - "androidSDK": "https://www.taobao.com/", - "iosSDK": "https://www.taobao.com/", - "version": "", - "docs": "", - "guide": "", - "faq": "" - }, - { - "img": "//img.alicdn.com/tfs/TB17ITyNFXXXXaGXVXXXXXXXXXX-114-102.png", - "title": "天猫交易", - "desc": "快速搭建交易闭环", - "androidSDK": "https://www.taobao.com/", - "iosSDK": "https://www.taobao.com/", - "version": "", - "docs": "", - "guide": "", - "faq": "" - }, - { - "img": "//img.alicdn.com/tfs/TB1EA2FNFXXXXX2XFXXXXXXXXXX-96-126.png", - "title": "天猫交易", - "desc": "快速搭建交易闭环", - "androidSDK": "https://www.taobao.com/", - "iosSDK": "https://www.taobao.com/", - "version": "", - "docs": "", - "guide": "", - "faq": "" - }, - { - "img": "//img.alicdn.com/tfs/TB1gX6WNFXXXXb6XXXXXXXXXXXX-130-108.png", - "title": "天猫交易", - "desc": "快速搭建交易闭环", - "androidSDK": "https://www.taobao.com/", - "iosSDK": "https://www.taobao.com/", - "version": "", - "docs": "", - "guide": "", - "faq": "" - }, - { - "img": "//img.alicdn.com/tfs/TB17ITyNFXXXXaGXVXXXXXXXXXX-114-102.png", - "title": "天猫交易", - "desc": "快速搭建交易闭环", - "androidSDK": "https://www.taobao.com/", - "iosSDK": "https://www.taobao.com/", - "version": "", - "docs": "", - "guide": "", - "faq": "" - }, - { - "img": "//img.alicdn.com/tfs/TB1EA2FNFXXXXX2XFXXXXXXXXXX-96-126.png", - "title": "天猫交易", - "desc": "快速搭建交易闭环", - "androidSDK": "https://www.taobao.com/", - "iosSDK": "https://www.taobao.com/", - "version": "", - "docs": "", - "guide": "", - "faq": "" - } - ] - } + "status": "SUCCESS", + "data": {} } diff --git a/blocks/EditableTable/mock/api.json b/blocks/EditableTable/mock/api.json deleted file mode 100644 index e706430232..0000000000 --- a/blocks/EditableTable/mock/api.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "status": "success", - "data": {} -} diff --git a/blocks/EditableTable/mock/editable-table.json b/blocks/EditableTable/mock/editable-table.json new file mode 100644 index 0000000000..eee2984fbe --- /dev/null +++ b/blocks/EditableTable/mock/editable-table.json @@ -0,0 +1,4 @@ +{ + "status": "SUCCESS", + "data": {} +} diff --git a/blocks/EmptyContent/mock/empty-content.json b/blocks/EmptyContent/mock/empty-content.json new file mode 100644 index 0000000000..eee2984fbe --- /dev/null +++ b/blocks/EmptyContent/mock/empty-content.json @@ -0,0 +1,4 @@ +{ + "status": "SUCCESS", + "data": {} +} diff --git a/blocks/EntryCard/mock/api.json b/blocks/EntryCard/mock/api.json deleted file mode 100644 index e706430232..0000000000 --- a/blocks/EntryCard/mock/api.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "status": "success", - "data": {} -} diff --git a/blocks/EntryCard/mock/entry-card.json b/blocks/EntryCard/mock/entry-card.json new file mode 100644 index 0000000000..eee2984fbe --- /dev/null +++ b/blocks/EntryCard/mock/entry-card.json @@ -0,0 +1,4 @@ +{ + "status": "SUCCESS", + "data": {} +} diff --git a/blocks/FailureDetail/mock/api.json b/blocks/FailureDetail/mock/api.json deleted file mode 100644 index e706430232..0000000000 --- a/blocks/FailureDetail/mock/api.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "status": "success", - "data": {} -} diff --git a/blocks/FailureDetail/mock/failure-detail.json b/blocks/FailureDetail/mock/failure-detail.json new file mode 100644 index 0000000000..eee2984fbe --- /dev/null +++ b/blocks/FailureDetail/mock/failure-detail.json @@ -0,0 +1,4 @@ +{ + "status": "SUCCESS", + "data": {} +} diff --git a/blocks/FeatureDisplay/mock/api.json b/blocks/FeatureDisplay/mock/api.json deleted file mode 100644 index e706430232..0000000000 --- a/blocks/FeatureDisplay/mock/api.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "status": "success", - "data": {} -} diff --git a/blocks/FeatureDisplay/mock/feature-display.json b/blocks/FeatureDisplay/mock/feature-display.json new file mode 100644 index 0000000000..eee2984fbe --- /dev/null +++ b/blocks/FeatureDisplay/mock/feature-display.json @@ -0,0 +1,4 @@ +{ + "status": "SUCCESS", + "data": {} +} diff --git a/blocks/FeedList/mock/api.json b/blocks/FeedList/mock/api.json deleted file mode 100644 index e706430232..0000000000 --- a/blocks/FeedList/mock/api.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "status": "success", - "data": {} -} diff --git a/blocks/FeedList/mock/feed-list.json b/blocks/FeedList/mock/feed-list.json new file mode 100644 index 0000000000..eee2984fbe --- /dev/null +++ b/blocks/FeedList/mock/feed-list.json @@ -0,0 +1,4 @@ +{ + "status": "SUCCESS", + "data": {} +} diff --git a/blocks/FilterList/mock/api.json b/blocks/FilterList/mock/api.json deleted file mode 100644 index e706430232..0000000000 --- a/blocks/FilterList/mock/api.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "status": "success", - "data": {} -} diff --git a/blocks/FilterList/mock/filter-list.json b/blocks/FilterList/mock/filter-list.json new file mode 100644 index 0000000000..eee2984fbe --- /dev/null +++ b/blocks/FilterList/mock/filter-list.json @@ -0,0 +1,4 @@ +{ + "status": "SUCCESS", + "data": {} +} diff --git a/blocks/FilterWithSearch/mock/api.json b/blocks/FilterWithSearch/mock/api.json deleted file mode 100644 index e706430232..0000000000 --- a/blocks/FilterWithSearch/mock/api.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "status": "success", - "data": {} -} diff --git a/blocks/FilterWithSearch/mock/filter-with-search.json b/blocks/FilterWithSearch/mock/filter-with-search.json new file mode 100644 index 0000000000..eee2984fbe --- /dev/null +++ b/blocks/FilterWithSearch/mock/filter-with-search.json @@ -0,0 +1,4 @@ +{ + "status": "SUCCESS", + "data": {} +} diff --git a/blocks/Footer/mock/api.json b/blocks/Footer/mock/api.json deleted file mode 100644 index e706430232..0000000000 --- a/blocks/Footer/mock/api.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "status": "success", - "data": {} -} diff --git a/blocks/Footer/mock/footer.json b/blocks/Footer/mock/footer.json new file mode 100644 index 0000000000..eee2984fbe --- /dev/null +++ b/blocks/Footer/mock/footer.json @@ -0,0 +1,4 @@ +{ + "status": "SUCCESS", + "data": {} +} diff --git a/blocks/FooterInfo/mock/api.json b/blocks/FooterInfo/mock/api.json deleted file mode 100644 index e706430232..0000000000 --- a/blocks/FooterInfo/mock/api.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "status": "success", - "data": {} -} diff --git a/blocks/FooterInfo/mock/footer-info.json b/blocks/FooterInfo/mock/footer-info.json new file mode 100644 index 0000000000..eee2984fbe --- /dev/null +++ b/blocks/FooterInfo/mock/footer-info.json @@ -0,0 +1,4 @@ +{ + "status": "SUCCESS", + "data": {} +} diff --git a/blocks/ForgetPasswordForm/mock/api.json b/blocks/ForgetPasswordForm/mock/api.json deleted file mode 100644 index e706430232..0000000000 --- a/blocks/ForgetPasswordForm/mock/api.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "status": "success", - "data": {} -} diff --git a/blocks/ForgetPasswordForm/mock/forget-password-form.json b/blocks/ForgetPasswordForm/mock/forget-password-form.json new file mode 100644 index 0000000000..eee2984fbe --- /dev/null +++ b/blocks/ForgetPasswordForm/mock/forget-password-form.json @@ -0,0 +1,4 @@ +{ + "status": "SUCCESS", + "data": {} +} diff --git a/blocks/InfoDisplayTab/mock/info-display-tab.json b/blocks/InfoDisplayTab/mock/info-display-tab.json index f062a3979b..3a288bcc21 100644 --- a/blocks/InfoDisplayTab/mock/info-display-tab.json +++ b/blocks/InfoDisplayTab/mock/info-display-tab.json @@ -1,5 +1,5 @@ { - "status": "success", + "status": "SUCCESS", "data": { "all": [ { diff --git a/blocks/InfoDisplayTable/mock/api.json b/blocks/InfoDisplayTable/mock/api.json deleted file mode 100644 index e706430232..0000000000 --- a/blocks/InfoDisplayTable/mock/api.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "status": "success", - "data": {} -} diff --git a/blocks/InfoDisplayTable/mock/info-display-table.json b/blocks/InfoDisplayTable/mock/info-display-table.json new file mode 100644 index 0000000000..eee2984fbe --- /dev/null +++ b/blocks/InfoDisplayTable/mock/info-display-table.json @@ -0,0 +1,4 @@ +{ + "status": "SUCCESS", + "data": {} +} diff --git a/blocks/JoinUs/mock/join-us.json b/blocks/JoinUs/mock/join-us.json new file mode 100644 index 0000000000..eee2984fbe --- /dev/null +++ b/blocks/JoinUs/mock/join-us.json @@ -0,0 +1,4 @@ +{ + "status": "SUCCESS", + "data": {} +} diff --git a/blocks/LandingIntroBanner/mock/api.json b/blocks/LandingIntroBanner/mock/api.json deleted file mode 100644 index e706430232..0000000000 --- a/blocks/LandingIntroBanner/mock/api.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "status": "success", - "data": {} -} diff --git a/blocks/LandingIntroBanner/mock/landing-intro-banner.json b/blocks/LandingIntroBanner/mock/landing-intro-banner.json new file mode 100644 index 0000000000..eee2984fbe --- /dev/null +++ b/blocks/LandingIntroBanner/mock/landing-intro-banner.json @@ -0,0 +1,4 @@ +{ + "status": "SUCCESS", + "data": {} +} diff --git a/blocks/LeftContentDisplay/mock/left-content-display.json b/blocks/LeftContentDisplay/mock/left-content-display.json new file mode 100644 index 0000000000..eee2984fbe --- /dev/null +++ b/blocks/LeftContentDisplay/mock/left-content-display.json @@ -0,0 +1,4 @@ +{ + "status": "SUCCESS", + "data": {} +} diff --git a/blocks/LiteTable/mock/api.json b/blocks/LiteTable/mock/api.json deleted file mode 100644 index e706430232..0000000000 --- a/blocks/LiteTable/mock/api.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "status": "success", - "data": {} -} diff --git a/blocks/LiteTable/mock/lite-table.json b/blocks/LiteTable/mock/lite-table.json new file mode 100644 index 0000000000..eee2984fbe --- /dev/null +++ b/blocks/LiteTable/mock/lite-table.json @@ -0,0 +1,4 @@ +{ + "status": "SUCCESS", + "data": {} +} diff --git a/blocks/MessageList/mock/api.json b/blocks/MessageList/mock/api.json deleted file mode 100644 index e706430232..0000000000 --- a/blocks/MessageList/mock/api.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "status": "success", - "data": {} -} diff --git a/blocks/MessageList/mock/message-list.json b/blocks/MessageList/mock/message-list.json new file mode 100644 index 0000000000..eee2984fbe --- /dev/null +++ b/blocks/MessageList/mock/message-list.json @@ -0,0 +1,4 @@ +{ + "status": "SUCCESS", + "data": {} +} diff --git a/blocks/MonacoEditor/mock/monaco-editor.json b/blocks/MonacoEditor/mock/monaco-editor.json new file mode 100644 index 0000000000..eee2984fbe --- /dev/null +++ b/blocks/MonacoEditor/mock/monaco-editor.json @@ -0,0 +1,4 @@ +{ + "status": "SUCCESS", + "data": {} +} diff --git a/blocks/NotPermission/mock/not-permission.json b/blocks/NotPermission/mock/not-permission.json new file mode 100644 index 0000000000..eee2984fbe --- /dev/null +++ b/blocks/NotPermission/mock/not-permission.json @@ -0,0 +1,4 @@ +{ + "status": "SUCCESS", + "data": {} +} diff --git a/blocks/OrderList/mock/order-list.json b/blocks/OrderList/mock/order-list.json index 2045146995..8729b9532f 100644 --- a/blocks/OrderList/mock/order-list.json +++ b/blocks/OrderList/mock/order-list.json @@ -1,40 +1,53 @@ { - "status": "success", - "data": [{ - "price": "US $2.45", - "status": "0", - "id": 1, - "product": [{ - "description": "2017秋新款女韩版宽松一字领长袖打底衫套头针织薄款上衣", - "title": "单号:234253124122414", - "avatar": "https://img.alicdn.com/bao/uploaded/TB2WM89ai0TMKJjSZFNXXa_1FXa_!!240575018.jpg_80x80.jpg" - }] - }, { - "price": "US $2.5", - "status": 1, - "id": 2, - "product": [{ - "description": "冬季美翻天90白鹅绒保暖连帽狐狸毛羽绒服外套", - "title": "单号:1567562412414", - "avatar": "https://gd3.alicdn.com/imgextra/i3/201512228/TB2cbZ2cdHO8KJjSZFLXXaTqVXa_!!201512228.jpg_50x50.jpg_.webp" - }] - }, { - "price": "US $2.5", - "status": 1, - "id": 3, - "product": [{ - "description": "柒柒家2017冬新款韩国时尚刺绣加厚超大毛领羽绒服女中长款过膝潮", - "title": "单号:145425342414", - "avatar": "https://img.alicdn.com/bao/uploaded/TB2a.63XiqAXuNjy1XdXXaYcVXa_!!240575018.jpg_80x80.jpg" - }] - }, { - "price": "US $2.5", - "status": 1, - "id": 4, - "product": [{ - "description": "宽松大码长袖镂空打底衫", - "title": "单号:12312412412414", - "avatar": "https://img.alicdn.com/bao/uploaded/TB2tpUBelyN.eBjSZFkXXb8YFXa_!!240575018.jpg_80x80.jpg" - }] - }] + "status": "SUCCESS", + "data": [ + { + "price": "US $2.45", + "status": "0", + "id": 1, + "product": [ + { + "description": "2017秋新款女韩版宽松一字领长袖打底衫套头针织薄款上衣", + "title": "单号:234253124122414", + "avatar": "https://img.alicdn.com/bao/uploaded/TB2WM89ai0TMKJjSZFNXXa_1FXa_!!240575018.jpg_80x80.jpg" + } + ] + }, + { + "price": "US $2.5", + "status": 1, + "id": 2, + "product": [ + { + "description": "冬季美翻天90白鹅绒保暖连帽狐狸毛羽绒服外套", + "title": "单号:1567562412414", + "avatar": "https://gd3.alicdn.com/imgextra/i3/201512228/TB2cbZ2cdHO8KJjSZFLXXaTqVXa_!!201512228.jpg_50x50.jpg_.webp" + } + ] + }, + { + "price": "US $2.5", + "status": 1, + "id": 3, + "product": [ + { + "description": "柒柒家2017冬新款韩国时尚刺绣加厚超大毛领羽绒服女中长款过膝潮", + "title": "单号:145425342414", + "avatar": "https://img.alicdn.com/bao/uploaded/TB2a.63XiqAXuNjy1XdXXaYcVXa_!!240575018.jpg_80x80.jpg" + } + ] + }, + { + "price": "US $2.5", + "status": 1, + "id": 4, + "product": [ + { + "description": "宽松大码长袖镂空打底衫", + "title": "单号:12312412412414", + "avatar": "https://img.alicdn.com/bao/uploaded/TB2tpUBelyN.eBjSZFkXXb8YFXa_!!240575018.jpg_80x80.jpg" + } + ] + } + ] } diff --git a/blocks/OurTeam/mock/api.json b/blocks/OurTeam/mock/api.json deleted file mode 100644 index e706430232..0000000000 --- a/blocks/OurTeam/mock/api.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "status": "success", - "data": {} -} diff --git a/blocks/OurTeam/mock/our-team.json b/blocks/OurTeam/mock/our-team.json new file mode 100644 index 0000000000..eee2984fbe --- /dev/null +++ b/blocks/OurTeam/mock/our-team.json @@ -0,0 +1,4 @@ +{ + "status": "SUCCESS", + "data": {} +} diff --git a/blocks/PictureTextList/mock/api.json b/blocks/PictureTextList/mock/api.json deleted file mode 100644 index e706430232..0000000000 --- a/blocks/PictureTextList/mock/api.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "status": "success", - "data": {} -} diff --git a/blocks/PictureTextList/mock/picture-text-list.json b/blocks/PictureTextList/mock/picture-text-list.json new file mode 100644 index 0000000000..eee2984fbe --- /dev/null +++ b/blocks/PictureTextList/mock/picture-text-list.json @@ -0,0 +1,4 @@ +{ + "status": "SUCCESS", + "data": {} +} diff --git a/blocks/PieDoughnutChart/mock/api.json b/blocks/PieDoughnutChart/mock/api.json deleted file mode 100644 index e706430232..0000000000 --- a/blocks/PieDoughnutChart/mock/api.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "status": "success", - "data": {} -} diff --git a/blocks/PieDoughnutChart/mock/pie-doughnut-chart.json b/blocks/PieDoughnutChart/mock/pie-doughnut-chart.json new file mode 100644 index 0000000000..eee2984fbe --- /dev/null +++ b/blocks/PieDoughnutChart/mock/pie-doughnut-chart.json @@ -0,0 +1,4 @@ +{ + "status": "SUCCESS", + "data": {} +} diff --git a/blocks/PriceCard/mock/api.json b/blocks/PriceCard/mock/api.json deleted file mode 100644 index e706430232..0000000000 --- a/blocks/PriceCard/mock/api.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "status": "success", - "data": {} -} diff --git a/blocks/PriceCard/mock/price-card.json b/blocks/PriceCard/mock/price-card.json new file mode 100644 index 0000000000..eee2984fbe --- /dev/null +++ b/blocks/PriceCard/mock/price-card.json @@ -0,0 +1,4 @@ +{ + "status": "SUCCESS", + "data": {} +} diff --git a/blocks/PriceInfo/mock/api.json b/blocks/PriceInfo/mock/api.json deleted file mode 100644 index e706430232..0000000000 --- a/blocks/PriceInfo/mock/api.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "status": "success", - "data": {} -} diff --git a/blocks/PriceInfo/mock/price-info.json b/blocks/PriceInfo/mock/price-info.json new file mode 100644 index 0000000000..eee2984fbe --- /dev/null +++ b/blocks/PriceInfo/mock/price-info.json @@ -0,0 +1,4 @@ +{ + "status": "SUCCESS", + "data": {} +} diff --git a/blocks/PrivateMessageForm/mock/api.json b/blocks/PrivateMessageForm/mock/api.json deleted file mode 100644 index e706430232..0000000000 --- a/blocks/PrivateMessageForm/mock/api.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "status": "success", - "data": {} -} diff --git a/blocks/PrivateMessageForm/mock/private-message-form.json b/blocks/PrivateMessageForm/mock/private-message-form.json new file mode 100644 index 0000000000..eee2984fbe --- /dev/null +++ b/blocks/PrivateMessageForm/mock/private-message-form.json @@ -0,0 +1,4 @@ +{ + "status": "SUCCESS", + "data": {} +} diff --git a/blocks/ProductInfo/mock/api.json b/blocks/ProductInfo/mock/api.json deleted file mode 100644 index e706430232..0000000000 --- a/blocks/ProductInfo/mock/api.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "status": "success", - "data": {} -} diff --git a/blocks/ProductInfo/mock/product-info.json b/blocks/ProductInfo/mock/product-info.json new file mode 100644 index 0000000000..eee2984fbe --- /dev/null +++ b/blocks/ProductInfo/mock/product-info.json @@ -0,0 +1,4 @@ +{ + "status": "SUCCESS", + "data": {} +} diff --git a/blocks/ProgressTable/mock/api.json b/blocks/ProgressTable/mock/api.json deleted file mode 100644 index e706430232..0000000000 --- a/blocks/ProgressTable/mock/api.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "status": "success", - "data": {} -} diff --git a/blocks/ProgressTable/mock/progress-table.json b/blocks/ProgressTable/mock/progress-table.json new file mode 100644 index 0000000000..eee2984fbe --- /dev/null +++ b/blocks/ProgressTable/mock/progress-table.json @@ -0,0 +1,4 @@ +{ + "status": "SUCCESS", + "data": {} +} diff --git a/blocks/RegisterForm/mock/api.json b/blocks/RegisterForm/mock/api.json deleted file mode 100644 index e706430232..0000000000 --- a/blocks/RegisterForm/mock/api.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "status": "success", - "data": {} -} diff --git a/blocks/RegisterForm/mock/register-form.json b/blocks/RegisterForm/mock/register-form.json new file mode 100644 index 0000000000..eee2984fbe --- /dev/null +++ b/blocks/RegisterForm/mock/register-form.json @@ -0,0 +1,4 @@ +{ + "status": "SUCCESS", + "data": {} +} diff --git a/blocks/RightContentDisplay/mock/right-content-display.json b/blocks/RightContentDisplay/mock/right-content-display.json new file mode 100644 index 0000000000..eee2984fbe --- /dev/null +++ b/blocks/RightContentDisplay/mock/right-content-display.json @@ -0,0 +1,4 @@ +{ + "status": "SUCCESS", + "data": {} +} diff --git a/blocks/SelectableTable/mock/api.json b/blocks/SelectableTable/mock/api.json deleted file mode 100644 index e706430232..0000000000 --- a/blocks/SelectableTable/mock/api.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "status": "success", - "data": {} -} diff --git a/blocks/SelectableTable/mock/selectable-table.json b/blocks/SelectableTable/mock/selectable-table.json new file mode 100644 index 0000000000..eee2984fbe --- /dev/null +++ b/blocks/SelectableTable/mock/selectable-table.json @@ -0,0 +1,4 @@ +{ + "status": "SUCCESS", + "data": {} +} diff --git a/blocks/SignupForm/mock/api.json b/blocks/SignupForm/mock/api.json deleted file mode 100644 index e706430232..0000000000 --- a/blocks/SignupForm/mock/api.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "status": "success", - "data": {} -} diff --git a/blocks/SignupForm/mock/signup-form.json b/blocks/SignupForm/mock/signup-form.json new file mode 100644 index 0000000000..eee2984fbe --- /dev/null +++ b/blocks/SignupForm/mock/signup-form.json @@ -0,0 +1,4 @@ +{ + "status": "SUCCESS", + "data": {} +} diff --git a/blocks/SimpleFluencyForm/mock/api.json b/blocks/SimpleFluencyForm/mock/api.json deleted file mode 100644 index e706430232..0000000000 --- a/blocks/SimpleFluencyForm/mock/api.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "status": "success", - "data": {} -} diff --git a/blocks/SimpleFluencyForm/mock/simple-fluency-form.json b/blocks/SimpleFluencyForm/mock/simple-fluency-form.json new file mode 100644 index 0000000000..eee2984fbe --- /dev/null +++ b/blocks/SimpleFluencyForm/mock/simple-fluency-form.json @@ -0,0 +1,4 @@ +{ + "status": "SUCCESS", + "data": {} +} diff --git a/blocks/SimpleFormDialog/mock/api.json b/blocks/SimpleFormDialog/mock/api.json deleted file mode 100644 index e706430232..0000000000 --- a/blocks/SimpleFormDialog/mock/api.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "status": "success", - "data": {} -} diff --git a/blocks/SimpleFormDialog/mock/simple-form-dialog.json b/blocks/SimpleFormDialog/mock/simple-form-dialog.json new file mode 100644 index 0000000000..eee2984fbe --- /dev/null +++ b/blocks/SimpleFormDialog/mock/simple-form-dialog.json @@ -0,0 +1,4 @@ +{ + "status": "SUCCESS", + "data": {} +} diff --git a/blocks/SimpleTestimonial/mock/api.json b/blocks/SimpleTestimonial/mock/api.json deleted file mode 100644 index e706430232..0000000000 --- a/blocks/SimpleTestimonial/mock/api.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "status": "success", - "data": {} -} diff --git a/blocks/SimpleTestimonial/mock/simple-testimonial.json b/blocks/SimpleTestimonial/mock/simple-testimonial.json new file mode 100644 index 0000000000..eee2984fbe --- /dev/null +++ b/blocks/SimpleTestimonial/mock/simple-testimonial.json @@ -0,0 +1,4 @@ +{ + "status": "SUCCESS", + "data": {} +} diff --git a/blocks/SortCardList/mock/api.json b/blocks/SortCardList/mock/api.json deleted file mode 100644 index e706430232..0000000000 --- a/blocks/SortCardList/mock/api.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "status": "success", - "data": {} -} diff --git a/blocks/SortCardList/mock/sort-card-list.json b/blocks/SortCardList/mock/sort-card-list.json new file mode 100644 index 0000000000..eee2984fbe --- /dev/null +++ b/blocks/SortCardList/mock/sort-card-list.json @@ -0,0 +1,4 @@ +{ + "status": "SUCCESS", + "data": {} +} diff --git a/blocks/StatisticalCard/mock/api.json b/blocks/StatisticalCard/mock/api.json deleted file mode 100644 index e706430232..0000000000 --- a/blocks/StatisticalCard/mock/api.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "status": "success", - "data": {} -} diff --git a/blocks/StatisticalCard/mock/statistical-card.json b/blocks/StatisticalCard/mock/statistical-card.json new file mode 100644 index 0000000000..eee2984fbe --- /dev/null +++ b/blocks/StatisticalCard/mock/statistical-card.json @@ -0,0 +1,4 @@ +{ + "status": "SUCCESS", + "data": {} +} diff --git a/blocks/Subscribe/mock/api.json b/blocks/Subscribe/mock/api.json deleted file mode 100644 index e706430232..0000000000 --- a/blocks/Subscribe/mock/api.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "status": "success", - "data": {} -} diff --git a/blocks/Subscribe/mock/subscribe.json b/blocks/Subscribe/mock/subscribe.json new file mode 100644 index 0000000000..eee2984fbe --- /dev/null +++ b/blocks/Subscribe/mock/subscribe.json @@ -0,0 +1,4 @@ +{ + "status": "SUCCESS", + "data": {} +} diff --git a/blocks/SuccessDetail/mock/api.json b/blocks/SuccessDetail/mock/api.json deleted file mode 100644 index e706430232..0000000000 --- a/blocks/SuccessDetail/mock/api.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "status": "success", - "data": {} -} diff --git a/blocks/SuccessDetail/mock/success-detail.json b/blocks/SuccessDetail/mock/success-detail.json new file mode 100644 index 0000000000..eee2984fbe --- /dev/null +++ b/blocks/SuccessDetail/mock/success-detail.json @@ -0,0 +1,4 @@ +{ + "status": "SUCCESS", + "data": {} +} diff --git a/blocks/SuccessDialog/mock/api.json b/blocks/SuccessDialog/mock/api.json deleted file mode 100644 index e706430232..0000000000 --- a/blocks/SuccessDialog/mock/api.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "status": "success", - "data": {} -} diff --git a/blocks/SuccessDialog/mock/success-dialog.json b/blocks/SuccessDialog/mock/success-dialog.json new file mode 100644 index 0000000000..eee2984fbe --- /dev/null +++ b/blocks/SuccessDialog/mock/success-dialog.json @@ -0,0 +1,4 @@ +{ + "status": "SUCCESS", + "data": {} +} diff --git a/blocks/SystemNoticeList/mock/api.json b/blocks/SystemNoticeList/mock/api.json deleted file mode 100644 index e706430232..0000000000 --- a/blocks/SystemNoticeList/mock/api.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "status": "success", - "data": {} -} diff --git a/blocks/SystemNoticeList/mock/system-notice-list.json b/blocks/SystemNoticeList/mock/system-notice-list.json new file mode 100644 index 0000000000..eee2984fbe --- /dev/null +++ b/blocks/SystemNoticeList/mock/system-notice-list.json @@ -0,0 +1,4 @@ +{ + "status": "SUCCESS", + "data": {} +} diff --git a/blocks/TabArticle/mock/api.json b/blocks/TabArticle/mock/api.json deleted file mode 100644 index e706430232..0000000000 --- a/blocks/TabArticle/mock/api.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "status": "success", - "data": {} -} diff --git a/blocks/TabArticle/mock/tab-article.json b/blocks/TabArticle/mock/tab-article.json new file mode 100644 index 0000000000..eee2984fbe --- /dev/null +++ b/blocks/TabArticle/mock/tab-article.json @@ -0,0 +1,4 @@ +{ + "status": "SUCCESS", + "data": {} +} diff --git a/blocks/TabDialog/mock/api.json b/blocks/TabDialog/mock/api.json index e706430232..eee2984fbe 100644 --- a/blocks/TabDialog/mock/api.json +++ b/blocks/TabDialog/mock/api.json @@ -1,4 +1,4 @@ { - "status": "success", + "status": "SUCCESS", "data": {} } diff --git a/blocks/TagMessageList/mock/api.json b/blocks/TagMessageList/mock/api.json deleted file mode 100644 index e706430232..0000000000 --- a/blocks/TagMessageList/mock/api.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "status": "success", - "data": {} -} diff --git a/blocks/TagMessageList/mock/tag-message-list.json b/blocks/TagMessageList/mock/tag-message-list.json new file mode 100644 index 0000000000..eee2984fbe --- /dev/null +++ b/blocks/TagMessageList/mock/tag-message-list.json @@ -0,0 +1,4 @@ +{ + "status": "SUCCESS", + "data": {} +} diff --git a/blocks/TeamDisplay/mock/api.json b/blocks/TeamDisplay/mock/api.json deleted file mode 100644 index e706430232..0000000000 --- a/blocks/TeamDisplay/mock/api.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "status": "success", - "data": {} -} diff --git a/blocks/TeamDisplay/mock/team-display.json b/blocks/TeamDisplay/mock/team-display.json new file mode 100644 index 0000000000..eee2984fbe --- /dev/null +++ b/blocks/TeamDisplay/mock/team-display.json @@ -0,0 +1,4 @@ +{ + "status": "SUCCESS", + "data": {} +} diff --git a/blocks/TermsInfo/mock/api.json b/blocks/TermsInfo/mock/api.json deleted file mode 100644 index e706430232..0000000000 --- a/blocks/TermsInfo/mock/api.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "status": "success", - "data": {} -} diff --git a/blocks/TermsInfo/mock/terms-info.json b/blocks/TermsInfo/mock/terms-info.json new file mode 100644 index 0000000000..eee2984fbe --- /dev/null +++ b/blocks/TermsInfo/mock/terms-info.json @@ -0,0 +1,4 @@ +{ + "status": "SUCCESS", + "data": {} +} diff --git a/blocks/Testimonial/mock/api.json b/blocks/Testimonial/mock/api.json deleted file mode 100644 index e706430232..0000000000 --- a/blocks/Testimonial/mock/api.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "status": "success", - "data": {} -} diff --git a/blocks/Testimonial/mock/testimonial.json b/blocks/Testimonial/mock/testimonial.json new file mode 100644 index 0000000000..eee2984fbe --- /dev/null +++ b/blocks/Testimonial/mock/testimonial.json @@ -0,0 +1,4 @@ +{ + "status": "SUCCESS", + "data": {} +} diff --git a/blocks/TestimonialCard/mock/api.json b/blocks/TestimonialCard/mock/api.json deleted file mode 100644 index e706430232..0000000000 --- a/blocks/TestimonialCard/mock/api.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "status": "success", - "data": {} -} diff --git a/blocks/TestimonialCard/mock/testimonial-card.json b/blocks/TestimonialCard/mock/testimonial-card.json new file mode 100644 index 0000000000..eee2984fbe --- /dev/null +++ b/blocks/TestimonialCard/mock/testimonial-card.json @@ -0,0 +1,4 @@ +{ + "status": "SUCCESS", + "data": {} +} diff --git a/blocks/TextCard/mock/api.json b/blocks/TextCard/mock/api.json deleted file mode 100644 index e706430232..0000000000 --- a/blocks/TextCard/mock/api.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "status": "success", - "data": {} -} diff --git a/blocks/TextCard/mock/text-card.json b/blocks/TextCard/mock/text-card.json new file mode 100644 index 0000000000..eee2984fbe --- /dev/null +++ b/blocks/TextCard/mock/text-card.json @@ -0,0 +1,4 @@ +{ + "status": "SUCCESS", + "data": {} +} diff --git a/blocks/TextSearchList/mock/api.json b/blocks/TextSearchList/mock/api.json deleted file mode 100644 index e706430232..0000000000 --- a/blocks/TextSearchList/mock/api.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "status": "success", - "data": {} -} diff --git a/blocks/TextSearchList/mock/text-search-list.json b/blocks/TextSearchList/mock/text-search-list.json new file mode 100644 index 0000000000..eee2984fbe --- /dev/null +++ b/blocks/TextSearchList/mock/text-search-list.json @@ -0,0 +1,4 @@ +{ + "status": "SUCCESS", + "data": {} +} diff --git a/blocks/TopicCard/mock/api.json b/blocks/TopicCard/mock/api.json deleted file mode 100644 index e706430232..0000000000 --- a/blocks/TopicCard/mock/api.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "status": "success", - "data": {} -} diff --git a/blocks/TopicCard/mock/topic-card.json b/blocks/TopicCard/mock/topic-card.json new file mode 100644 index 0000000000..eee2984fbe --- /dev/null +++ b/blocks/TopicCard/mock/topic-card.json @@ -0,0 +1,4 @@ +{ + "status": "SUCCESS", + "data": {} +} diff --git a/blocks/TreeCardList/mock/api.json b/blocks/TreeCardList/mock/api.json deleted file mode 100644 index e706430232..0000000000 --- a/blocks/TreeCardList/mock/api.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "status": "success", - "data": {} -} diff --git a/blocks/TreeCardList/mock/tree-card-list.json b/blocks/TreeCardList/mock/tree-card-list.json new file mode 100644 index 0000000000..eee2984fbe --- /dev/null +++ b/blocks/TreeCardList/mock/tree-card-list.json @@ -0,0 +1,4 @@ +{ + "status": "SUCCESS", + "data": {} +} From 43a6bcb06efe66178f4a77b0cd26f8d37cf41d8b Mon Sep 17 00:00:00 2001 From: wssgcg1213 Date: Thu, 11 Jan 2018 13:26:21 +0800 Subject: [PATCH 0048/1028] fix: mock --- layouts/ScalableAsideLayout/mock/api.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/ScalableAsideLayout/mock/api.json b/layouts/ScalableAsideLayout/mock/api.json index e706430232..eee2984fbe 100644 --- a/layouts/ScalableAsideLayout/mock/api.json +++ b/layouts/ScalableAsideLayout/mock/api.json @@ -1,4 +1,4 @@ { - "status": "success", + "status": "SUCCESS", "data": {} } From 457a07c8e8195b1ce71c2f4c50de31d5f9a018d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B5=A9=E7=9D=BF?= Date: Thu, 11 Jan 2018 15:05:58 +0800 Subject: [PATCH 0049/1028] chore: remove useless url --- layouts/AsideLayout/src/__config_navs__.json | 3 +-- layouts/BasicLayout/src/__config_navs__.json | 3 +-- layouts/LandingLayout/src/__config_navs__.json | 3 +-- layouts/ScalableAsideLayout/src/__config_navs__.json | 3 +-- 4 files changed, 4 insertions(+), 8 deletions(-) diff --git a/layouts/AsideLayout/src/__config_navs__.json b/layouts/AsideLayout/src/__config_navs__.json index f92cf3eb6b..7f48638947 100644 --- a/layouts/AsideLayout/src/__config_navs__.json +++ b/layouts/AsideLayout/src/__config_navs__.json @@ -6,8 +6,7 @@ }, { "text": "反馈", - "to": - "//aone.alibaba-inc.com/project/478546/issue/new?akProjectId=478546&", + "to": "//ice.alibaba-inc.com/feedback", "newWindow": true }, { diff --git a/layouts/BasicLayout/src/__config_navs__.json b/layouts/BasicLayout/src/__config_navs__.json index f92cf3eb6b..7f48638947 100644 --- a/layouts/BasicLayout/src/__config_navs__.json +++ b/layouts/BasicLayout/src/__config_navs__.json @@ -6,8 +6,7 @@ }, { "text": "反馈", - "to": - "//aone.alibaba-inc.com/project/478546/issue/new?akProjectId=478546&", + "to": "//ice.alibaba-inc.com/feedback", "newWindow": true }, { diff --git a/layouts/LandingLayout/src/__config_navs__.json b/layouts/LandingLayout/src/__config_navs__.json index f92cf3eb6b..7f48638947 100644 --- a/layouts/LandingLayout/src/__config_navs__.json +++ b/layouts/LandingLayout/src/__config_navs__.json @@ -6,8 +6,7 @@ }, { "text": "反馈", - "to": - "//aone.alibaba-inc.com/project/478546/issue/new?akProjectId=478546&", + "to": "//ice.alibaba-inc.com/feedback", "newWindow": true }, { diff --git a/layouts/ScalableAsideLayout/src/__config_navs__.json b/layouts/ScalableAsideLayout/src/__config_navs__.json index f92cf3eb6b..7f48638947 100644 --- a/layouts/ScalableAsideLayout/src/__config_navs__.json +++ b/layouts/ScalableAsideLayout/src/__config_navs__.json @@ -6,8 +6,7 @@ }, { "text": "反馈", - "to": - "//aone.alibaba-inc.com/project/478546/issue/new?akProjectId=478546&", + "to": "//ice.alibaba-inc.com/feedback", "newWindow": true }, { From 2abea9f6e94f1eebc84d28a1079b16d25bfb2124 Mon Sep 17 00:00:00 2001 From: wssgcg1213 Date: Thu, 11 Jan 2018 15:18:23 +0800 Subject: [PATCH 0050/1028] fix: remove url --- .../src/ApplicationProgress.jsx | 2 +- blocks/BrandShowCase/src/BrandShowCase.jsx | 10 +-- blocks/CollapseCard/src/CollapseCard.jsx | 10 +-- blocks/ComplexFilter/src/ComplexFilter.jsx | 14 ++--- .../src/ComplexProgressTable.jsx | 2 +- .../ComplexProgressTable/src/EditDialog.jsx | 10 +-- .../ComplexTabTable/src/ComplexTabTable.jsx | 62 +++++++++---------- blocks/DataDisplay/src/DataDisplay.jsx | 10 +-- blocks/DetailTable/src/DetailTable.jsx | 10 +-- blocks/DisplayCard/src/DisplayCard.jsx | 10 +-- blocks/EditableTable/src/EditableTable.jsx | 10 +-- blocks/EnhanceTable/src/EnhanceTable.jsx | 8 +-- blocks/FailureDetail/src/FailureDetail.jsx | 10 +-- blocks/FeatureDisplay/src/FeatureDisplay.jsx | 10 +-- blocks/FeedList/src/FeedList.jsx | 8 +-- blocks/FilterTable/src/FilterTable.jsx | 8 +-- .../FilterWithSearch/src/FilterWithSearch.jsx | 10 +-- blocks/Footer/src/Footer.jsx | 10 +-- blocks/FooterInfo/src/FooterInfo.jsx | 10 +-- .../src/ForgetPasswordForm.jsx | 8 +-- .../InfoDisplayTable/src/InfoDisplayTable.jsx | 4 +- blocks/LiteTable/src/LiteTable.jsx | 2 +- blocks/MessageList/src/MessageList.jsx | 10 +-- blocks/MonacoEditor/src/MonacoEditor.jsx | 2 +- blocks/OperationTable/src/OperationTable.jsx | 9 ++- blocks/OurTeam/src/OurTeam.jsx | 2 +- blocks/PriceCard/src/PriceCard.jsx | 12 ++-- blocks/PriceInfo/src/PriceInfo.jsx | 10 +-- .../src/PrivateMessageForm.jsx | 2 +- blocks/ProductInfo/src/ProductInfo.jsx | 10 +-- .../src/SimpleFluencyForm.jsx | 2 +- .../SimpleFormDialog/src/SimpleFormDialog.jsx | 2 +- blocks/SimpleTable/src/SimpleTable.jsx | 1 - .../src/SimpleTestimonial.jsx | 10 +-- blocks/SortCardList/src/SortCardList.jsx | 2 +- blocks/TextCard/src/TextCard.jsx | 10 +-- .../TimeFilterTable/src/TimeFilterTable.jsx | 3 +- blocks/TreeCardList/src/TreeCardList.jsx | 2 +- 38 files changed, 162 insertions(+), 165 deletions(-) diff --git a/blocks/ApplicationProgress/src/ApplicationProgress.jsx b/blocks/ApplicationProgress/src/ApplicationProgress.jsx index efa71e9727..91a4e21641 100644 --- a/blocks/ApplicationProgress/src/ApplicationProgress.jsx +++ b/blocks/ApplicationProgress/src/ApplicationProgress.jsx @@ -63,7 +63,7 @@ export default class ApplicationProgress extends Component { } // ICE: React Component 的生命周期 - // http://ice.alibaba-inc.com/docs/guide/intro-react#React-组件的生命周期 + componentWillMount() { } componentDidMount() { } diff --git a/blocks/BrandShowCase/src/BrandShowCase.jsx b/blocks/BrandShowCase/src/BrandShowCase.jsx index 377a18070c..f3fcb5b285 100644 --- a/blocks/BrandShowCase/src/BrandShowCase.jsx +++ b/blocks/BrandShowCase/src/BrandShowCase.jsx @@ -25,18 +25,18 @@ export default class BrandShowCase extends Component { } // ICE: React Component 的生命周期 - // http://ice.alibaba-inc.com/docs/guide/intro-react#React-组件的生命周期 - componentWillMount() {} - componentDidMount() {} + componentWillMount() { } - componentWillReceiveProps(nextProps, nextContext) {} + componentDidMount() { } + + componentWillReceiveProps(nextProps, nextContext) { } shouldComponentUpdate(nextProps, nextState) { return true; } - componentWillUnmount() {} + componentWillUnmount() { } render() { const data = generatorData(12); diff --git a/blocks/CollapseCard/src/CollapseCard.jsx b/blocks/CollapseCard/src/CollapseCard.jsx index 4016cd6da8..4970e3aa09 100644 --- a/blocks/CollapseCard/src/CollapseCard.jsx +++ b/blocks/CollapseCard/src/CollapseCard.jsx @@ -21,18 +21,18 @@ export default class CollapseCard extends Component { } // ICE: React Component 的生命周期 - // http://ice.alibaba-inc.com/docs/guide/intro-react#React-组件的生命周期 - componentWillMount() {} - componentDidMount() {} + componentWillMount() { } - componentWillReceiveProps(nextProps, nextContext) {} + componentDidMount() { } + + componentWillReceiveProps(nextProps, nextContext) { } shouldComponentUpdate(nextProps, nextState) { return true; } - componentWillUnmount() {} + componentWillUnmount() { } toggleCollapse = () => { const { collapse } = this.state; diff --git a/blocks/ComplexFilter/src/ComplexFilter.jsx b/blocks/ComplexFilter/src/ComplexFilter.jsx index 7fcf1863cd..7ef84ec57e 100644 --- a/blocks/ComplexFilter/src/ComplexFilter.jsx +++ b/blocks/ComplexFilter/src/ComplexFilter.jsx @@ -27,18 +27,18 @@ export default class ComplexFilter extends Component { } // ICE: React Component 的生命周期 - // http://ice.alibaba-inc.com/docs/guide/intro-react#React-组件的生命周期 - componentWillMount() {} - componentDidMount() {} + componentWillMount() { } - componentWillReceiveProps(nextProps, nextContext) {} + componentDidMount() { } + + componentWillReceiveProps(nextProps, nextContext) { } shouldComponentUpdate(nextProps, nextState) { return true; } - componentWillUnmount() {} + componentWillUnmount() { } render() { const { currentFilterType, categories } = this.state; @@ -63,7 +63,7 @@ export default class ComplexFilter extends Component { key={idx} className={`tab-filter-item ${ currentFilterType === item.type ? 'active' : '' - }`} + }`} onClick={() => { this.setState({ currentFilterType: item.type @@ -82,7 +82,7 @@ export default class ComplexFilter extends Component { -1 ? 'active' : '' - }`} + }`} onClick={() => { const isInCategory = categories.indexOf(cat.type) > -1; if (isInCategory) { diff --git a/blocks/ComplexProgressTable/src/ComplexProgressTable.jsx b/blocks/ComplexProgressTable/src/ComplexProgressTable.jsx index 1bb35808e3..26466681a3 100644 --- a/blocks/ComplexProgressTable/src/ComplexProgressTable.jsx +++ b/blocks/ComplexProgressTable/src/ComplexProgressTable.jsx @@ -41,7 +41,7 @@ export default class ComplexProgressTable extends Component { } // ICE: React Component 的生命周期 - // http://ice.alibaba-inc.com/docs/guide/intro-react#React-组件的生命周期 + componentWillMount() { } componentDidMount() { diff --git a/blocks/ComplexProgressTable/src/EditDialog.jsx b/blocks/ComplexProgressTable/src/EditDialog.jsx index 50f99291ea..3740b204db 100644 --- a/blocks/ComplexProgressTable/src/EditDialog.jsx +++ b/blocks/ComplexProgressTable/src/EditDialog.jsx @@ -22,18 +22,18 @@ class EditDialog extends Component { } // ICE: React Component 的生命周期 - // http://ice.alibaba-inc.com/docs/guide/intro-react#React-组件的生命周期 - componentWillMount() {} - componentDidMount() {} + componentWillMount() { } - componentWillReceiveProps() {} + componentDidMount() { } + + componentWillReceiveProps() { } shouldComponentUpdate() { return true; } - componentWillUnmount() {} + componentWillUnmount() { } onOk = () => { this.refForm.validateAll((errors, values) => { diff --git a/blocks/ComplexTabTable/src/ComplexTabTable.jsx b/blocks/ComplexTabTable/src/ComplexTabTable.jsx index 2eeaef3954..2d4452a165 100644 --- a/blocks/ComplexTabTable/src/ComplexTabTable.jsx +++ b/blocks/ComplexTabTable/src/ComplexTabTable.jsx @@ -117,21 +117,21 @@ export default class ComplexTabTable extends Component { } // ICE: React Component 的生命周期 - // http://ice.alibaba-inc.com/docs/guide/intro-react#React-组件的生命周期 - componentWillMount() {} + + componentWillMount() { } componentDidMount() { this.queryCache.page = 1; this.fetchData(); } - componentWillReceiveProps(nextProps, nextContext) {} + componentWillReceiveProps(nextProps, nextContext) { } shouldComponentUpdate(nextProps, nextState) { return true; } - componentWillUnmount() {} + componentWillUnmount() { } fetchData = () => { this.props.updateBindingData('tableData', { @@ -250,33 +250,33 @@ export default class ComplexTabTable extends Component { > {tabList && tabList.length > 0 ? tabList.map((tab, idx) => { - return ( - - {tab.text}{' '} - {tab.count} - - } - > - {tab.subCategories && tab.subCategories.length > 0 - ? tab.subCategories.map((catItem, index) => { - return ( - - ); - }) - : null} - - ); - }) + return ( + + {tab.text}{' '} + {tab.count} + + } + > + {tab.subCategories && tab.subCategories.length > 0 + ? tab.subCategories.map((catItem, index) => { + return ( + + ); + }) + : null} + + ); + }) : null} diff --git a/blocks/DataDisplay/src/DataDisplay.jsx b/blocks/DataDisplay/src/DataDisplay.jsx index e8fcea001c..40710f6aa1 100644 --- a/blocks/DataDisplay/src/DataDisplay.jsx +++ b/blocks/DataDisplay/src/DataDisplay.jsx @@ -31,18 +31,18 @@ export default class DataDisplay extends Component { } // ICE: React Component 的生命周期 - // http://ice.alibaba-inc.com/docs/guide/intro-react#React-组件的生命周期 - componentWillMount() {} - componentDidMount() {} + componentWillMount() { } - componentWillReceiveProps(nextProps, nextContext) {} + componentDidMount() { } + + componentWillReceiveProps(nextProps, nextContext) { } shouldComponentUpdate(nextProps, nextState) { return true; } - componentWillUnmount() {} + componentWillUnmount() { } render() { return ( diff --git a/blocks/DetailTable/src/DetailTable.jsx b/blocks/DetailTable/src/DetailTable.jsx index 5af724cd36..6d0f3e2cd4 100644 --- a/blocks/DetailTable/src/DetailTable.jsx +++ b/blocks/DetailTable/src/DetailTable.jsx @@ -16,18 +16,18 @@ export default class DetailTable extends Component { } // ICE: React Component 的生命周期 - // http://ice.alibaba-inc.com/docs/guide/intro-react#React-组件的生命周期 - componentWillMount() {} - componentDidMount() {} + componentWillMount() { } - componentWillReceiveProps(nextProps, nextContext) {} + componentDidMount() { } + + componentWillReceiveProps(nextProps, nextContext) { } shouldComponentUpdate(nextProps, nextState) { return true; } - componentWillUnmount() {} + componentWillUnmount() { } render() { return ( diff --git a/blocks/DisplayCard/src/DisplayCard.jsx b/blocks/DisplayCard/src/DisplayCard.jsx index 28fe77a9aa..b95148a550 100644 --- a/blocks/DisplayCard/src/DisplayCard.jsx +++ b/blocks/DisplayCard/src/DisplayCard.jsx @@ -17,18 +17,18 @@ export default class DisplayCard extends Component { } // ICE: React Component 的生命周期 - // http://ice.alibaba-inc.com/docs/guide/intro-react#React-组件的生命周期 - componentWillMount() {} - componentDidMount() {} + componentWillMount() { } - componentWillReceiveProps(nextProps, nextContext) {} + componentDidMount() { } + + componentWillReceiveProps(nextProps, nextContext) { } shouldComponentUpdate(nextProps, nextState) { return true; } - componentWillUnmount() {} + componentWillUnmount() { } renderItem = (data, idx) => { return
    111
    ; diff --git a/blocks/EditableTable/src/EditableTable.jsx b/blocks/EditableTable/src/EditableTable.jsx index a89d0566fc..fa74a974d0 100644 --- a/blocks/EditableTable/src/EditableTable.jsx +++ b/blocks/EditableTable/src/EditableTable.jsx @@ -32,18 +32,18 @@ export default class EditableTable extends Component { } // ICE: React Component 的生命周期 - // http://ice.alibaba-inc.com/docs/guide/intro-react#React-组件的生命周期 - componentWillMount() {} - componentDidMount() {} + componentWillMount() { } - componentWillReceiveProps(nextProps, nextContext) {} + componentDidMount() { } + + componentWillReceiveProps(nextProps, nextContext) { } shouldComponentUpdate(nextProps, nextState) { return true; } - componentWillUnmount() {} + componentWillUnmount() { } renderOrder = (value, index, record) => { return {index}; diff --git a/blocks/EnhanceTable/src/EnhanceTable.jsx b/blocks/EnhanceTable/src/EnhanceTable.jsx index d5c08abca7..25f262818a 100644 --- a/blocks/EnhanceTable/src/EnhanceTable.jsx +++ b/blocks/EnhanceTable/src/EnhanceTable.jsx @@ -47,21 +47,21 @@ export default class EnhanceTable extends Component { } // ICE: React Component 的生命周期 - // http://ice.alibaba-inc.com/docs/guide/intro-react#React-组件的生命周期 - componentWillMount() {} + + componentWillMount() { } componentDidMount() { this.queryCache.page = 1; this.fetchData(); } - componentWillReceiveProps(nextProps, nextContext) {} + componentWillReceiveProps(nextProps, nextContext) { } shouldComponentUpdate(nextProps, nextState) { return true; } - componentWillUnmount() {} + componentWillUnmount() { } fetchData = () => { this.props.updateBindingData('tableData', { diff --git a/blocks/FailureDetail/src/FailureDetail.jsx b/blocks/FailureDetail/src/FailureDetail.jsx index c670ef3d7b..2188a0b101 100644 --- a/blocks/FailureDetail/src/FailureDetail.jsx +++ b/blocks/FailureDetail/src/FailureDetail.jsx @@ -18,18 +18,18 @@ export default class FailureDetail extends Component { } // ICE: React Component 的生命周期 - // http://ice.alibaba-inc.com/docs/guide/intro-react#React-组件的生命周期 - componentWillMount() {} - componentDidMount() {} + componentWillMount() { } - componentWillReceiveProps(nextProps, nextContext) {} + componentDidMount() { } + + componentWillReceiveProps(nextProps, nextContext) { } shouldComponentUpdate(nextProps, nextState) { return true; } - componentWillUnmount() {} + componentWillUnmount() { } render() { return ( diff --git a/blocks/FeatureDisplay/src/FeatureDisplay.jsx b/blocks/FeatureDisplay/src/FeatureDisplay.jsx index c85af026d4..34f55ec97c 100644 --- a/blocks/FeatureDisplay/src/FeatureDisplay.jsx +++ b/blocks/FeatureDisplay/src/FeatureDisplay.jsx @@ -57,18 +57,18 @@ export default class FeatureDisplay extends Component { } // ICE: React Component 的生命周期 - // http://ice.alibaba-inc.com/docs/guide/intro-react#React-组件的生命周期 - componentWillMount() {} - componentDidMount() {} + componentWillMount() { } - componentWillReceiveProps(nextProps, nextContext) {} + componentDidMount() { } + + componentWillReceiveProps(nextProps, nextContext) { } shouldComponentUpdate(nextProps, nextState) { return true; } - componentWillUnmount() {} + componentWillUnmount() { } render() { return ( diff --git a/blocks/FeedList/src/FeedList.jsx b/blocks/FeedList/src/FeedList.jsx index 319f9b340b..eb541c603b 100644 --- a/blocks/FeedList/src/FeedList.jsx +++ b/blocks/FeedList/src/FeedList.jsx @@ -50,12 +50,12 @@ export default class FeedList extends Component { } // ICE: React Component 的生命周期 - // http://ice.alibaba-inc.com/docs/guide/intro-react#React-组件的生命周期 - componentWillMount() {} - componentDidMount() {} + componentWillMount() { } - componentWillUnmount() {} + componentDidMount() { } + + componentWillUnmount() { } renderItem = (item, idx) => { return (
    diff --git a/blocks/FilterTable/src/FilterTable.jsx b/blocks/FilterTable/src/FilterTable.jsx index b0478bbffc..e7e1efa379 100644 --- a/blocks/FilterTable/src/FilterTable.jsx +++ b/blocks/FilterTable/src/FilterTable.jsx @@ -49,21 +49,21 @@ export default class EnhanceTable extends Component { } // ICE: React Component 的生命周期 - // http://ice.alibaba-inc.com/docs/guide/intro-react#React-组件的生命周期 - componentWillMount() {} + + componentWillMount() { } componentDidMount() { this.queryCache.page = 1; this.fetchData(); } - componentWillReceiveProps(nextProps, nextContext) {} + componentWillReceiveProps(nextProps, nextContext) { } shouldComponentUpdate(nextProps, nextState) { return true; } - componentWillUnmount() {} + componentWillUnmount() { } fetchData = () => { this.props.updateBindingData('tableData', { diff --git a/blocks/FilterWithSearch/src/FilterWithSearch.jsx b/blocks/FilterWithSearch/src/FilterWithSearch.jsx index d8e0b280f1..3883fbab88 100644 --- a/blocks/FilterWithSearch/src/FilterWithSearch.jsx +++ b/blocks/FilterWithSearch/src/FilterWithSearch.jsx @@ -18,18 +18,18 @@ export default class FilterWithSearch extends Component { } // ICE: React Component 的生命周期 - // http://ice.alibaba-inc.com/docs/guide/intro-react#React-组件的生命周期 - componentWillMount() {} - componentDidMount() {} + componentWillMount() { } - componentWillReceiveProps(nextProps, nextContext) {} + componentDidMount() { } + + componentWillReceiveProps(nextProps, nextContext) { } shouldComponentUpdate(nextProps, nextState) { return true; } - componentWillUnmount() {} + componentWillUnmount() { } selectFilter = type => { // type can be 'all', 'process', 'pending' diff --git a/blocks/Footer/src/Footer.jsx b/blocks/Footer/src/Footer.jsx index 0d0d403a76..6e750d95ad 100644 --- a/blocks/Footer/src/Footer.jsx +++ b/blocks/Footer/src/Footer.jsx @@ -14,18 +14,18 @@ export default class Footer extends Component { } // ICE: React Component 的生命周期 - // http://ice.alibaba-inc.com/docs/guide/intro-react#React-组件的生命周期 - componentWillMount() {} - componentDidMount() {} + componentWillMount() { } - componentWillReceiveProps(nextProps, nextContext) {} + componentDidMount() { } + + componentWillReceiveProps(nextProps, nextContext) { } shouldComponentUpdate(nextProps, nextState) { return true; } - componentWillUnmount() {} + componentWillUnmount() { } render() { return ( diff --git a/blocks/FooterInfo/src/FooterInfo.jsx b/blocks/FooterInfo/src/FooterInfo.jsx index 0a0c578282..965eaabc01 100644 --- a/blocks/FooterInfo/src/FooterInfo.jsx +++ b/blocks/FooterInfo/src/FooterInfo.jsx @@ -13,18 +13,18 @@ export default class FooterInfo extends Component { } // ICE: React Component 的生命周期 - // http://ice.alibaba-inc.com/docs/guide/intro-react#React-组件的生命周期 - componentWillMount() {} - componentDidMount() {} + componentWillMount() { } - componentWillReceiveProps(nextProps, nextContext) {} + componentDidMount() { } + + componentWillReceiveProps(nextProps, nextContext) { } shouldComponentUpdate(nextProps, nextState) { return true; } - componentWillUnmount() {} + componentWillUnmount() { } render() { return ( diff --git a/blocks/ForgetPasswordForm/src/ForgetPasswordForm.jsx b/blocks/ForgetPasswordForm/src/ForgetPasswordForm.jsx index 48f64e07f0..239ab3eb63 100644 --- a/blocks/ForgetPasswordForm/src/ForgetPasswordForm.jsx +++ b/blocks/ForgetPasswordForm/src/ForgetPasswordForm.jsx @@ -22,12 +22,12 @@ export default class ForgetPasswordForm extends Component { } // ICE: React Component 的生命周期 - // http://ice.alibaba-inc.com/docs/guide/intro-react#React-组件的生命周期 - componentWillMount() {} - componentDidMount() {} + componentWillMount() { } - componentWillUnmount() {} + componentDidMount() { } + + componentWillUnmount() { } emailChange = newValue => { this.setState(newValue); diff --git a/blocks/InfoDisplayTable/src/InfoDisplayTable.jsx b/blocks/InfoDisplayTable/src/InfoDisplayTable.jsx index 4a9aa5bc40..5dce49375e 100644 --- a/blocks/InfoDisplayTable/src/InfoDisplayTable.jsx +++ b/blocks/InfoDisplayTable/src/InfoDisplayTable.jsx @@ -51,7 +51,7 @@ export default class InfoDisplayTable extends Component { } // ICE: React Component 的生命周期 - // http://ice.alibaba-inc.com/docs/guide/intro-react#React-组件的生命周期 + componentWillMount() { } @@ -86,4 +86,4 @@ export default class InfoDisplayTable extends Component { } } -const styles = {"infoDisplayTable":{}} \ No newline at end of file +const styles = { "infoDisplayTable": {} } \ No newline at end of file diff --git a/blocks/LiteTable/src/LiteTable.jsx b/blocks/LiteTable/src/LiteTable.jsx index 12edcfbcc2..3472ff71c1 100644 --- a/blocks/LiteTable/src/LiteTable.jsx +++ b/blocks/LiteTable/src/LiteTable.jsx @@ -57,7 +57,7 @@ export default class LiteTable extends Component { } // ICE: React Component 的生命周期 - // http://ice.alibaba-inc.com/docs/guide/intro-react#React-组件的生命周期 + componentWillMount() { } componentDidMount() { } diff --git a/blocks/MessageList/src/MessageList.jsx b/blocks/MessageList/src/MessageList.jsx index e1c6fff358..b50a79878e 100644 --- a/blocks/MessageList/src/MessageList.jsx +++ b/blocks/MessageList/src/MessageList.jsx @@ -43,18 +43,18 @@ export default class MessageList extends Component { } // ICE: React Component 的生命周期 - // http://ice.alibaba-inc.com/docs/guide/intro-react#React-组件的生命周期 - componentWillMount() {} - componentDidMount() {} + componentWillMount() { } - componentWillReceiveProps(nextProps, nextContext) {} + componentDidMount() { } + + componentWillReceiveProps(nextProps, nextContext) { } shouldComponentUpdate(nextProps, nextState) { return true; } - componentWillUnmount() {} + componentWillUnmount() { } renderItem = (item, idx) => { return ( diff --git a/blocks/MonacoEditor/src/MonacoEditor.jsx b/blocks/MonacoEditor/src/MonacoEditor.jsx index 43e603eaa9..2443a6fa99 100644 --- a/blocks/MonacoEditor/src/MonacoEditor.jsx +++ b/blocks/MonacoEditor/src/MonacoEditor.jsx @@ -40,7 +40,7 @@ export default class MonacoEditor extends Component { } // ICE: React Component 的生命周期 - // http://ice.alibaba-inc.com/docs/guide/intro-react#React-组件的生命周期 + async componentWillMount() { const vsBasePath = '//unpkg.com/monaco-editor@0.10.1/min/vs'; diff --git a/blocks/OperationTable/src/OperationTable.jsx b/blocks/OperationTable/src/OperationTable.jsx index 25c70d57c7..0dbd1cfcba 100644 --- a/blocks/OperationTable/src/OperationTable.jsx +++ b/blocks/OperationTable/src/OperationTable.jsx @@ -13,7 +13,6 @@ import IceLabel from '@icedesign/label'; import EditorInfoDialog from './EditorInfoDialog'; -// 详细用法请参见 http://ice.alibaba-inc.com/modules/ice-data-binder @DataBinder({ tableData: { // 详细请求配置请参见 https://github.com/axios/axios @@ -48,8 +47,8 @@ export default class OperationTable extends Component { } // ICE: React Component 的生命周期 - // http://ice.alibaba-inc.com/docs/guide/intro-react#React-组件的生命周期 - componentWillMount() {} + + componentWillMount() { } componentDidMount() { this.fetchData({ @@ -57,13 +56,13 @@ export default class OperationTable extends Component { }); } - componentWillReceiveProps(nextProps, nextContext) {} + componentWillReceiveProps(nextProps, nextContext) { } shouldComponentUpdate(nextProps, nextState) { return true; } - componentWillUnmount() {} + componentWillUnmount() { } fetchData = ({ page }) => { this.props.updateBindingData('tableData', { diff --git a/blocks/OurTeam/src/OurTeam.jsx b/blocks/OurTeam/src/OurTeam.jsx index b4ed60b63d..ddd4be876b 100644 --- a/blocks/OurTeam/src/OurTeam.jsx +++ b/blocks/OurTeam/src/OurTeam.jsx @@ -29,7 +29,7 @@ export default class OurTeam extends Component { } // ICE: React Component 的生命周期 - // http://ice.alibaba-inc.com/docs/guide/intro-react#React-组件的生命周期 + componentWillMount() { } componentDidMount() { } diff --git a/blocks/PriceCard/src/PriceCard.jsx b/blocks/PriceCard/src/PriceCard.jsx index 6c805f7d6f..391c7a24fb 100644 --- a/blocks/PriceCard/src/PriceCard.jsx +++ b/blocks/PriceCard/src/PriceCard.jsx @@ -39,18 +39,18 @@ export default class PriceCard extends Component { } // ICE: React Component 的生命周期 - // http://ice.alibaba-inc.com/docs/guide/intro-react#React-组件的生命周期 - componentWillMount() {} - componentDidMount() {} + componentWillMount() { } - componentWillReceiveProps(nextProps, nextContext) {} + componentDidMount() { } + + componentWillReceiveProps(nextProps, nextContext) { } shouldComponentUpdate(nextProps, nextState) { return true; } - componentWillUnmount() {} + componentWillUnmount() { } render() { return ( @@ -88,4 +88,4 @@ export default class PriceCard extends Component { } } -const styles = {"container":{"background":"url(https://img.alicdn.com/tfs/TB1JGoDi3vD8KJjy0FlXXagBFXa-5040-2811.png)","backgroundSize":"cover"},"items":{"display":"flex","flexWrap":"wrap","padding":"120px 0","width":"1080px","margin":"0 auto"},"item":{"width":"28%","marginRight":"8%","background":"#FAFAFA","borderRadius":"6px","paddingBottom":"50px"},"rowLastItem":{"marginRight":0},"head":{"padding":"30px 0","textAlign":"center","borderRadius":"6px 6px 0 0"},"title":{"margin":"0 0 5px","fontWeight":"bold","fontSize":"20px"},"price":{"margin":"0","fontWeight":"bold","fontSize":"22px"},"info":{"display":"flex","flexDirection":"column","alignItems":"center"},"description":{"margin":"20px auto","lineHeight":"22px","textAlign":"center","width":"60%","color":"#999"},"buyBtn":{"display":"flex","justifyContent":"center","marginTop":"20px"},"link":{"padding":"4px 15px","background":"#3080FE","borderRadius":"12px","color":"#fff"},"priceCard":{}} +const styles = { "container": { "background": "url(https://img.alicdn.com/tfs/TB1JGoDi3vD8KJjy0FlXXagBFXa-5040-2811.png)", "backgroundSize": "cover" }, "items": { "display": "flex", "flexWrap": "wrap", "padding": "120px 0", "width": "1080px", "margin": "0 auto" }, "item": { "width": "28%", "marginRight": "8%", "background": "#FAFAFA", "borderRadius": "6px", "paddingBottom": "50px" }, "rowLastItem": { "marginRight": 0 }, "head": { "padding": "30px 0", "textAlign": "center", "borderRadius": "6px 6px 0 0" }, "title": { "margin": "0 0 5px", "fontWeight": "bold", "fontSize": "20px" }, "price": { "margin": "0", "fontWeight": "bold", "fontSize": "22px" }, "info": { "display": "flex", "flexDirection": "column", "alignItems": "center" }, "description": { "margin": "20px auto", "lineHeight": "22px", "textAlign": "center", "width": "60%", "color": "#999" }, "buyBtn": { "display": "flex", "justifyContent": "center", "marginTop": "20px" }, "link": { "padding": "4px 15px", "background": "#3080FE", "borderRadius": "12px", "color": "#fff" }, "priceCard": {} } diff --git a/blocks/PriceInfo/src/PriceInfo.jsx b/blocks/PriceInfo/src/PriceInfo.jsx index 62fb6bc36f..0cf0a956c7 100644 --- a/blocks/PriceInfo/src/PriceInfo.jsx +++ b/blocks/PriceInfo/src/PriceInfo.jsx @@ -45,18 +45,18 @@ export default class PriceInfo extends Component { } // ICE: React Component 的生命周期 - // http://ice.alibaba-inc.com/docs/guide/intro-react#React-组件的生命周期 - componentWillMount() {} - componentDidMount() {} + componentWillMount() { } - componentWillReceiveProps(nextProps, nextContext) {} + componentDidMount() { } + + componentWillReceiveProps(nextProps, nextContext) { } shouldComponentUpdate(nextProps, nextState) { return true; } - componentWillUnmount() {} + componentWillUnmount() { } render() { return ( diff --git a/blocks/PrivateMessageForm/src/PrivateMessageForm.jsx b/blocks/PrivateMessageForm/src/PrivateMessageForm.jsx index 9d743c0409..63f9ad92ea 100644 --- a/blocks/PrivateMessageForm/src/PrivateMessageForm.jsx +++ b/blocks/PrivateMessageForm/src/PrivateMessageForm.jsx @@ -23,7 +23,7 @@ export default class PrivateMessageForm extends Component { } // ICE: React Component 的生命周期 - // http://ice.alibaba-inc.com/docs/guide/intro-react#React-组件的生命周期 + componentWillMount() { } diff --git a/blocks/ProductInfo/src/ProductInfo.jsx b/blocks/ProductInfo/src/ProductInfo.jsx index fb94bf45c4..c5d5528834 100644 --- a/blocks/ProductInfo/src/ProductInfo.jsx +++ b/blocks/ProductInfo/src/ProductInfo.jsx @@ -54,18 +54,18 @@ export default class ProductInfo extends Component { } // ICE: React Component 的生命周期 - // http://ice.alibaba-inc.com/docs/guide/intro-react#React-组件的生命周期 - componentWillMount() {} - componentDidMount() {} + componentWillMount() { } - componentWillReceiveProps(nextProps, nextContext) {} + componentDidMount() { } + + componentWillReceiveProps(nextProps, nextContext) { } shouldComponentUpdate(nextProps, nextState) { return true; } - componentWillUnmount() {} + componentWillUnmount() { } render() { return ( diff --git a/blocks/SimpleFluencyForm/src/SimpleFluencyForm.jsx b/blocks/SimpleFluencyForm/src/SimpleFluencyForm.jsx index b458a862e4..55c178dc84 100644 --- a/blocks/SimpleFluencyForm/src/SimpleFluencyForm.jsx +++ b/blocks/SimpleFluencyForm/src/SimpleFluencyForm.jsx @@ -32,7 +32,7 @@ export default class SimpleFluencyForm extends Component { } // ICE: React Component 的生命周期 - // http://ice.alibaba-inc.com/docs/guide/intro-react#React-组件的生命周期 + componentWillMount() { } diff --git a/blocks/SimpleFormDialog/src/SimpleFormDialog.jsx b/blocks/SimpleFormDialog/src/SimpleFormDialog.jsx index 00c0bf7b5b..e3159c24b7 100644 --- a/blocks/SimpleFormDialog/src/SimpleFormDialog.jsx +++ b/blocks/SimpleFormDialog/src/SimpleFormDialog.jsx @@ -51,7 +51,7 @@ class SimpleFormDialog extends Component { } // ICE: React Component 的生命周期 - // http://ice.alibaba-inc.com/docs/guide/intro-react#React-组件的生命周期 + componentWillMount() { } componentDidMount() { } diff --git a/blocks/SimpleTable/src/SimpleTable.jsx b/blocks/SimpleTable/src/SimpleTable.jsx index 67939c37f7..9ea74b2b5c 100644 --- a/blocks/SimpleTable/src/SimpleTable.jsx +++ b/blocks/SimpleTable/src/SimpleTable.jsx @@ -6,7 +6,6 @@ import DataBinder from '@icedesign/data-binder'; import IceLabel from '@icedesign/label'; import './SimpleTable.scss'; -// 详细用法请参见 http://ice.alibaba-inc.com/modules/ice-data-binder @DataBinder({ tableData: { // 详细请求配置请参见 https://github.com/axios/axios diff --git a/blocks/SimpleTestimonial/src/SimpleTestimonial.jsx b/blocks/SimpleTestimonial/src/SimpleTestimonial.jsx index 612a6bba3d..d3f3a1d463 100644 --- a/blocks/SimpleTestimonial/src/SimpleTestimonial.jsx +++ b/blocks/SimpleTestimonial/src/SimpleTestimonial.jsx @@ -18,18 +18,18 @@ export default class SimpleTestimonial extends Component { } // ICE: React Component 的生命周期 - // http://ice.alibaba-inc.com/docs/guide/intro-react#React-组件的生命周期 - componentWillMount() {} - componentDidMount() {} + componentWillMount() { } - componentWillReceiveProps(nextProps, nextContext) {} + componentDidMount() { } + + componentWillReceiveProps(nextProps, nextContext) { } shouldComponentUpdate(nextProps, nextState) { return true; } - componentWillUnmount() {} + componentWillUnmount() { } render() { return ( diff --git a/blocks/SortCardList/src/SortCardList.jsx b/blocks/SortCardList/src/SortCardList.jsx index 8e7bba7221..ca37129e7d 100644 --- a/blocks/SortCardList/src/SortCardList.jsx +++ b/blocks/SortCardList/src/SortCardList.jsx @@ -86,7 +86,7 @@ export default class SortCardList extends Component { } // ICE: React Component 的生命周期 - // http://ice.alibaba-inc.com/docs/guide/intro-react#React-组件的生命周期 + componentWillMount() { } diff --git a/blocks/TextCard/src/TextCard.jsx b/blocks/TextCard/src/TextCard.jsx index b5b28612f3..c2bbd259a8 100644 --- a/blocks/TextCard/src/TextCard.jsx +++ b/blocks/TextCard/src/TextCard.jsx @@ -13,18 +13,18 @@ export default class TextCard extends Component { } // ICE: React Component 的生命周期 - // http://ice.alibaba-inc.com/docs/guide/intro-react#React-组件的生命周期 - componentWillMount() {} - componentDidMount() {} + componentWillMount() { } - componentWillReceiveProps(nextProps, nextContext) {} + componentDidMount() { } + + componentWillReceiveProps(nextProps, nextContext) { } shouldComponentUpdate(nextProps, nextState) { return true; } - componentWillUnmount() {} + componentWillUnmount() { } render() { return ( diff --git a/blocks/TimeFilterTable/src/TimeFilterTable.jsx b/blocks/TimeFilterTable/src/TimeFilterTable.jsx index d0c16cf12d..7f87bee766 100644 --- a/blocks/TimeFilterTable/src/TimeFilterTable.jsx +++ b/blocks/TimeFilterTable/src/TimeFilterTable.jsx @@ -10,7 +10,6 @@ import IceLabel from '@icedesign/label'; const { Group: RadioGroup } = Radio; -// 详细用法请参见 http://ice.alibaba-inc.com/modules/ice-data-binder @DataBinder({ tableData: { // 详细请求配置请参见 https://github.com/axios/axios @@ -43,7 +42,7 @@ export default class TimeFilterTable extends Component { } // ICE: React Component 的生命周期 - // http://ice.alibaba-inc.com/docs/guide/intro-react#React-组件的生命周期 + componentWillMount() { } componentDidMount() { diff --git a/blocks/TreeCardList/src/TreeCardList.jsx b/blocks/TreeCardList/src/TreeCardList.jsx index 3c95563e6b..970f2db8e7 100644 --- a/blocks/TreeCardList/src/TreeCardList.jsx +++ b/blocks/TreeCardList/src/TreeCardList.jsx @@ -28,7 +28,7 @@ export default class TreeCardList extends Component { } // ICE: React Component 的生命周期 - // http://ice.alibaba-inc.com/docs/guide/intro-react#React-组件的生命周期 + componentWillMount() {} componentDidMount() {} From a6b30b64f2c5916c6ff76904551f6a7a01ede987 Mon Sep 17 00:00:00 2001 From: wssgcg1213 Date: Thu, 11 Jan 2018 15:41:08 +0800 Subject: [PATCH 0051/1028] fix: remove url --- blocks/ComplexProgressTable/src/ComplexProgressTable.jsx | 1 - blocks/ComplexTabTable/src/ComplexTabTable.jsx | 1 - blocks/EnhanceTable/src/EnhanceTable.jsx | 1 - blocks/FilterTable/src/FilterTable.jsx | 1 - .../src/__config_navs__.json | 6 +++--- layouts/HeaderAsideFooterLayout/src/__config_navs__.json | 6 +++--- .../src/__config_navs__.json | 6 +++--- layouts/HeaderFooterLayout/src/__config_navs__.json | 6 +++--- 8 files changed, 12 insertions(+), 16 deletions(-) diff --git a/blocks/ComplexProgressTable/src/ComplexProgressTable.jsx b/blocks/ComplexProgressTable/src/ComplexProgressTable.jsx index 26466681a3..dfed1efba8 100644 --- a/blocks/ComplexProgressTable/src/ComplexProgressTable.jsx +++ b/blocks/ComplexProgressTable/src/ComplexProgressTable.jsx @@ -6,7 +6,6 @@ import DataBinder from '@icedesign/data-binder'; import './ComplexProgressTable.scss'; import EditDialog from './EditDialog'; -// 详细用法请参见 http://ice.alibaba-inc.com/modules/ice-data-binder @DataBinder({ tableData: { // 详细请求配置请参见 https://github.com/axios/axios diff --git a/blocks/ComplexTabTable/src/ComplexTabTable.jsx b/blocks/ComplexTabTable/src/ComplexTabTable.jsx index 2d4452a165..5fb2451071 100644 --- a/blocks/ComplexTabTable/src/ComplexTabTable.jsx +++ b/blocks/ComplexTabTable/src/ComplexTabTable.jsx @@ -13,7 +13,6 @@ import IceLabel from '@icedesign/label'; import SubCategoryItem from './SubCategoryItem'; -// 详细用法请参见 http://ice.alibaba-inc.com/modules/ice-data-binder @DataBinder({ tableData: { // 详细请求配置请参见 https://github.com/axios/axios diff --git a/blocks/EnhanceTable/src/EnhanceTable.jsx b/blocks/EnhanceTable/src/EnhanceTable.jsx index 25f262818a..9625c7c2d2 100644 --- a/blocks/EnhanceTable/src/EnhanceTable.jsx +++ b/blocks/EnhanceTable/src/EnhanceTable.jsx @@ -11,7 +11,6 @@ import IceImg from '@icedesign/img'; import DataBinder from '@icedesign/data-binder'; import IceLabel from '@icedesign/label'; -// 详细用法请参见 http://ice.alibaba-inc.com/modules/ice-data-binder @DataBinder({ tableData: { // 详细请求配置请参见 https://github.com/axios/axios diff --git a/blocks/FilterTable/src/FilterTable.jsx b/blocks/FilterTable/src/FilterTable.jsx index e7e1efa379..d4d4b585c8 100644 --- a/blocks/FilterTable/src/FilterTable.jsx +++ b/blocks/FilterTable/src/FilterTable.jsx @@ -12,7 +12,6 @@ import IceLabel from '@icedesign/label'; import FilterForm from './Filter'; -// 详细用法请参见 http://ice.alibaba-inc.com/modules/ice-data-binder @DataBinder({ tableData: { // 详细请求配置请参见 https://github.com/axios/axios diff --git a/layouts/FixedHeaderFooterResponsiveLayout/src/__config_navs__.json b/layouts/FixedHeaderFooterResponsiveLayout/src/__config_navs__.json index 7f48638947..c92d58d40b 100644 --- a/layouts/FixedHeaderFooterResponsiveLayout/src/__config_navs__.json +++ b/layouts/FixedHeaderFooterResponsiveLayout/src/__config_navs__.json @@ -6,12 +6,12 @@ }, { "text": "反馈", - "to": "//ice.alibaba-inc.com/feedback", + "to": "https://github.com/alibaba/ice/issues/new", "newWindow": true }, { "text": "帮助", - "to": "//ice.alibaba-inc.com/docs/about", + "to": "https://alibaba.github.io/ice/", "newWindow": true } ], @@ -82,7 +82,7 @@ }, { "text": "查看更多模块", - "to": "//ice.alibaba-inc.com/blocks", + "to": "https://alibaba.github.io/ice/#/template/block", "newWindow": true, "icon": "folder" } diff --git a/layouts/HeaderAsideFooterLayout/src/__config_navs__.json b/layouts/HeaderAsideFooterLayout/src/__config_navs__.json index 7f48638947..84a82b3099 100644 --- a/layouts/HeaderAsideFooterLayout/src/__config_navs__.json +++ b/layouts/HeaderAsideFooterLayout/src/__config_navs__.json @@ -6,12 +6,12 @@ }, { "text": "反馈", - "to": "//ice.alibaba-inc.com/feedback", + "to": "https://github.com/alibaba/ice/issues/new", "newWindow": true }, { "text": "帮助", - "to": "//ice.alibaba-inc.com/docs/about", + "to": "https://alibaba.github.io/ice", "newWindow": true } ], @@ -82,7 +82,7 @@ }, { "text": "查看更多模块", - "to": "//ice.alibaba-inc.com/blocks", + "to": "https://alibaba.github.io/ice/#/template/block", "newWindow": true, "icon": "folder" } diff --git a/layouts/HeaderAsideFooterResponsiveLayout/src/__config_navs__.json b/layouts/HeaderAsideFooterResponsiveLayout/src/__config_navs__.json index 7f48638947..84a82b3099 100644 --- a/layouts/HeaderAsideFooterResponsiveLayout/src/__config_navs__.json +++ b/layouts/HeaderAsideFooterResponsiveLayout/src/__config_navs__.json @@ -6,12 +6,12 @@ }, { "text": "反馈", - "to": "//ice.alibaba-inc.com/feedback", + "to": "https://github.com/alibaba/ice/issues/new", "newWindow": true }, { "text": "帮助", - "to": "//ice.alibaba-inc.com/docs/about", + "to": "https://alibaba.github.io/ice", "newWindow": true } ], @@ -82,7 +82,7 @@ }, { "text": "查看更多模块", - "to": "//ice.alibaba-inc.com/blocks", + "to": "https://alibaba.github.io/ice/#/template/block", "newWindow": true, "icon": "folder" } diff --git a/layouts/HeaderFooterLayout/src/__config_navs__.json b/layouts/HeaderFooterLayout/src/__config_navs__.json index 7f48638947..84a82b3099 100644 --- a/layouts/HeaderFooterLayout/src/__config_navs__.json +++ b/layouts/HeaderFooterLayout/src/__config_navs__.json @@ -6,12 +6,12 @@ }, { "text": "反馈", - "to": "//ice.alibaba-inc.com/feedback", + "to": "https://github.com/alibaba/ice/issues/new", "newWindow": true }, { "text": "帮助", - "to": "//ice.alibaba-inc.com/docs/about", + "to": "https://alibaba.github.io/ice", "newWindow": true } ], @@ -82,7 +82,7 @@ }, { "text": "查看更多模块", - "to": "//ice.alibaba-inc.com/blocks", + "to": "https://alibaba.github.io/ice/#/template/block", "newWindow": true, "icon": "folder" } From 314f92ecd7c56a3ee94e8f8929d5cc51af375267 Mon Sep 17 00:00:00 2001 From: chenbin92 Date: Thu, 11 Jan 2018 21:37:50 +0800 Subject: [PATCH 0052/1028] refactor: code optim --- blocks/TabChart/package.json | 2 +- blocks/TabChart/src/BasicLine.jsx | 9 ++++++++- blocks/TabChart/src/SeriesLine.jsx | 9 ++++++++- blocks/TabChart/src/TabChart.jsx | 13 +++++++++---- 4 files changed, 26 insertions(+), 7 deletions(-) diff --git a/blocks/TabChart/package.json b/blocks/TabChart/package.json index 499e48105c..a05e955d4e 100644 --- a/blocks/TabChart/package.json +++ b/blocks/TabChart/package.json @@ -1,7 +1,7 @@ { "name": "@icedesign/tab-chart-block", "version": "0.1.0", - "description": "", + "description": "标签页和图表组合使用", "files": ["src/", "demo/", "lib/", "mock/"], "author": { "name": "ICE Team", diff --git a/blocks/TabChart/src/BasicLine.jsx b/blocks/TabChart/src/BasicLine.jsx index 3a64f58edd..590057ede8 100644 --- a/blocks/TabChart/src/BasicLine.jsx +++ b/blocks/TabChart/src/BasicLine.jsx @@ -52,10 +52,17 @@ export default class BasicLine extends Component { position="year*value" size={4} shape={'circle'} - style={{ stroke: '#fff', lineWidth: 1 }} + style={styles.point} />
    ); } } + +const styles = { + point: { + stroke: '#fff', + lineWidth: 1 + } +}; diff --git a/blocks/TabChart/src/SeriesLine.jsx b/blocks/TabChart/src/SeriesLine.jsx index a541123216..feeb3d461e 100644 --- a/blocks/TabChart/src/SeriesLine.jsx +++ b/blocks/TabChart/src/SeriesLine.jsx @@ -75,10 +75,17 @@ export default class SeriesLine extends Component { size={4} shape="circle" color="city" - style={{ stroke: '#fff', lineWidth: 1 }} + style={styles.point} />
    ); } } + +const styles = { + point: { + stroke: '#fff', + lineWidth: 1 + } +}; diff --git a/blocks/TabChart/src/TabChart.jsx b/blocks/TabChart/src/TabChart.jsx index 191b01c37f..a1bbfd0cc2 100644 --- a/blocks/TabChart/src/TabChart.jsx +++ b/blocks/TabChart/src/TabChart.jsx @@ -8,6 +8,8 @@ import SeriesLine from './SeriesLine'; import BasicLine from './BasicLine'; import './TabChart.scss'; +const TabPane = Tab.TabPane; + export default class TabChart extends Component { static displayName = 'TabChart'; @@ -25,11 +27,9 @@ export default class TabChart extends Component { }; render() { - const TabPane = Tab.TabPane; - return (
    - + @@ -44,4 +44,9 @@ export default class TabChart extends Component { } } -const styles = {}; +const styles = { + card: { + marginBottom: '0', + padding: '0 20px' + } +}; From 42f96e518b143e1e9a1a927d69dddc0601d9e6b6 Mon Sep 17 00:00:00 2001 From: wssgcg1213 Date: Thu, 11 Jan 2018 22:12:55 +0800 Subject: [PATCH 0053/1028] feat: add asset-info-display block --- blocks/AssetInfoDisplay/README.md | 7 + blocks/AssetInfoDisplay/demo/index.html | 18 ++ blocks/AssetInfoDisplay/demo/index.js | 19 ++ .../mock/asset-info-display.json | 4 + blocks/AssetInfoDisplay/package.json | 44 +++++ .../AssetInfoDisplay/src/AssetInfoDisplay.jsx | 168 ++++++++++++++++++ .../src/AssetInfoDisplay.scss | 5 + blocks/AssetInfoDisplay/src/index.js | 3 + 8 files changed, 268 insertions(+) create mode 100644 blocks/AssetInfoDisplay/README.md create mode 100644 blocks/AssetInfoDisplay/demo/index.html create mode 100644 blocks/AssetInfoDisplay/demo/index.js create mode 100644 blocks/AssetInfoDisplay/mock/asset-info-display.json create mode 100644 blocks/AssetInfoDisplay/package.json create mode 100644 blocks/AssetInfoDisplay/src/AssetInfoDisplay.jsx create mode 100644 blocks/AssetInfoDisplay/src/AssetInfoDisplay.scss create mode 100644 blocks/AssetInfoDisplay/src/index.js diff --git a/blocks/AssetInfoDisplay/README.md b/blocks/AssetInfoDisplay/README.md new file mode 100644 index 0000000000..7fd7095458 --- /dev/null +++ b/blocks/AssetInfoDisplay/README.md @@ -0,0 +1,7 @@ +# asset-info-display + +简介:资产信息展示 + +资产信息展示, 卡片类型的 UI 数据展示, 常用于额度, 余额等页面 + +![截图]() diff --git a/blocks/AssetInfoDisplay/demo/index.html b/blocks/AssetInfoDisplay/demo/index.html new file mode 100644 index 0000000000..cb0422f8d9 --- /dev/null +++ b/blocks/AssetInfoDisplay/demo/index.html @@ -0,0 +1,18 @@ + + + + + + + + Document + + + + +
    + + + + + diff --git a/blocks/AssetInfoDisplay/demo/index.js b/blocks/AssetInfoDisplay/demo/index.js new file mode 100644 index 0000000000..4d6acd389a --- /dev/null +++ b/blocks/AssetInfoDisplay/demo/index.js @@ -0,0 +1,19 @@ +import React, { Component } from 'react'; +import { render } from 'react-dom'; + +// 载入默认全局样式 normalize 、.clearfix 和一些 mixin 方法等 +import '@icedesign/base/lib/_components/@alife/next-core/lib/index.scss'; + +import DemoLayout from '@icedesign/demo-layout'; +import Block from '../src'; + +const props = { + // ... +}; + +render( + + + , + document.querySelector('#mountNode') +); diff --git a/blocks/AssetInfoDisplay/mock/asset-info-display.json b/blocks/AssetInfoDisplay/mock/asset-info-display.json new file mode 100644 index 0000000000..eee2984fbe --- /dev/null +++ b/blocks/AssetInfoDisplay/mock/asset-info-display.json @@ -0,0 +1,4 @@ +{ + "status": "SUCCESS", + "data": {} +} diff --git a/blocks/AssetInfoDisplay/package.json b/blocks/AssetInfoDisplay/package.json new file mode 100644 index 0000000000..503571dcb5 --- /dev/null +++ b/blocks/AssetInfoDisplay/package.json @@ -0,0 +1,44 @@ +{ + "name": "@icedesign/asset-info-display-block", + "version": "0.1.0", + "description": "资产信息展示, 卡片类型的 UI 数据展示, 常用于额度, 余额等页面", + "files": [ + "src/", + "demo/", + "lib/", + "mock/" + ], + "author": { + "name": "ICE Team", + "email": "ice-admin@alibaba-inc.com" + }, + "repository": { + "type": "git", + "url": "https://github.com/alibaba/ice" + }, + "license": "MIT", + "keywords": [ + "ice", + "ice-block" + ], + "dependencies": { + "@icedesign/base": "^0.1.0", + "@icedesign/card": "^0.1.1", + "prop-types": "^15.5.8" + }, + "devDependencies": { + "@icedesign/demo-layout": "^0.1.2", + "@icedesign/skin": "latest", + "react": "*", + "react-dom": "*" + }, + "blockConfig": { + "name": "asset-info-display", + "snapshot": "https://gw.alicdn.com/tfs/TB1eyr.j5qAXuNjy1XdXXaYcVXa-1882-548.png", + "title": "资产信息展示", + "categories": [ + "info-display" + ], + "themePackage": "@icedesign/skin" + } +} diff --git a/blocks/AssetInfoDisplay/src/AssetInfoDisplay.jsx b/blocks/AssetInfoDisplay/src/AssetInfoDisplay.jsx new file mode 100644 index 0000000000..c85db97f45 --- /dev/null +++ b/blocks/AssetInfoDisplay/src/AssetInfoDisplay.jsx @@ -0,0 +1,168 @@ +import React, { Component } from 'react'; +import IceCard from '@icedesign/card'; +import './AssetInfoDisplay.scss'; + +export default class AssetInfoDisplay extends Component { + static displayName = 'AssetInfoDisplay'; + + static propTypes = { + }; + + static defaultProps = { + }; + + constructor(props) { + super(props); + this.state = { + + }; + } + + render() { + return ( +
    + +
    资产展示
    +
    +
    +
    $46.24
    +
    可用额度 $32.24
    +
    +
    +
    $46.24
    +
    可用额度 $32.24
    +
    +
    +
    $46.24
    +
    可用额度 $32.24
    +
    +
    +
    +

    优惠卡券

    +
    +
    +
    $100
    +
    储值卡
    +
    +
    +
    $0
    +
    优惠券
    +
    +
    +
    $3000
    +
    代金券
    +
    +
    +
    +
    +
    + +
    合同发票
    + + +
    +
    + ); + } +} + +const styles = { + container: { + display: 'flex', + flexDirection: 'row', + }, + gap: { + flex: '0 0 20px', + }, + card: { + flex: 1, + padding: 0, + }, + title: { + minHeight: '80px', + color: '#6ca1ee', + fontSize: '16px', + padding: '20px', + borderBottom: '1px solid #ddd', + }, + subTitle: { + color: '#666', + borderLeft: '4px solid #6ca1ee', + fontSize: '16px', + lineHeight: '1.5em', + paddingLeft: '5px', + }, + assets: { + backgroundColor: '#eee', + height: '105px', + borderBottom: '1px solid #ddd', + display: 'flex', + flexDirection: 'row', + justifyContent: 'center', + alignItems: 'center', + }, + cardItem: { + height: '100px', + padding: '5px 20px', + }, + assetsGroup: { + display: 'flex', + flexDirection: 'row', + }, + assetItem: { + flex: 1, + borderRight: '1px solid #ddd', + textAlign: 'center', + color: '#666', + }, + price: { + fontSize: '20px', + marginBottom: '10px', + color: '#fbb848', + }, +}; diff --git a/blocks/AssetInfoDisplay/src/AssetInfoDisplay.scss b/blocks/AssetInfoDisplay/src/AssetInfoDisplay.scss new file mode 100644 index 0000000000..7858877b55 --- /dev/null +++ b/blocks/AssetInfoDisplay/src/AssetInfoDisplay.scss @@ -0,0 +1,5 @@ +@charset "UTF-8"; + +.asset-info-display { + +} diff --git a/blocks/AssetInfoDisplay/src/index.js b/blocks/AssetInfoDisplay/src/index.js new file mode 100644 index 0000000000..425620a01c --- /dev/null +++ b/blocks/AssetInfoDisplay/src/index.js @@ -0,0 +1,3 @@ +import AssetInfoDisplay from './AssetInfoDisplay'; + +export default AssetInfoDisplay; From 768db6e7fcd703775c456a22d57ab4c982b2a81e Mon Sep 17 00:00:00 2001 From: wssgcg1213 Date: Fri, 12 Jan 2018 15:58:12 +0800 Subject: [PATCH 0054/1028] fix: layouts --- layouts/HeaderAsideFooterLayout/src/Layout.scss | 1 - layouts/HeaderAsideFooterResponsiveLayout/src/Layout.scss | 1 - layouts/HeaderFooterLayout/src/Layout.scss | 1 - 3 files changed, 3 deletions(-) diff --git a/layouts/HeaderAsideFooterLayout/src/Layout.scss b/layouts/HeaderAsideFooterLayout/src/Layout.scss index 9e1ccaaefb..f7a97075b5 100644 --- a/layouts/HeaderAsideFooterLayout/src/Layout.scss +++ b/layouts/HeaderAsideFooterLayout/src/Layout.scss @@ -3,7 +3,6 @@ background-image: url(https://img.alicdn.com/tfs/TB1GsHCd8fH8KJjy1XbXXbLdXXa-1680-370.png); background-size: 100%; background-repeat: no-repeat; - background-origin: center; min-width: 1200px; .ice-admin-layout-header { width: 1200px; diff --git a/layouts/HeaderAsideFooterResponsiveLayout/src/Layout.scss b/layouts/HeaderAsideFooterResponsiveLayout/src/Layout.scss index 45eab75b22..59462391c2 100644 --- a/layouts/HeaderAsideFooterResponsiveLayout/src/Layout.scss +++ b/layouts/HeaderAsideFooterResponsiveLayout/src/Layout.scss @@ -5,7 +5,6 @@ background-image: url(https://img.alicdn.com/tfs/TB1GsHCd8fH8KJjy1XbXXbLdXXa-1680-370.png); background-size: 100%; background-repeat: no-repeat; - background-origin: center; .ice-admin-layout-header { width: 100%; margin: 20px auto; diff --git a/layouts/HeaderFooterLayout/src/Layout.scss b/layouts/HeaderFooterLayout/src/Layout.scss index e232a8353f..8db4752b7e 100644 --- a/layouts/HeaderFooterLayout/src/Layout.scss +++ b/layouts/HeaderFooterLayout/src/Layout.scss @@ -3,7 +3,6 @@ background-image: url(https://img.alicdn.com/tfs/TB1GsHCd8fH8KJjy1XbXXbLdXXa-1680-370.png); background-size: 100%; background-repeat: no-repeat; - background-origin: center; min-width: 1200px; .ice-admin-layout-header { width: 1200px; From c3a9168c951877ce553ca8e4fc1392b9221ecf98 Mon Sep 17 00:00:00 2001 From: wssgcg1213 Date: Mon, 15 Jan 2018 10:36:41 +0800 Subject: [PATCH 0055/1028] fix: remove inneed file --- blocks/TabDialog/mock/api.json | 4 ---- 1 file changed, 4 deletions(-) delete mode 100644 blocks/TabDialog/mock/api.json diff --git a/blocks/TabDialog/mock/api.json b/blocks/TabDialog/mock/api.json deleted file mode 100644 index eee2984fbe..0000000000 --- a/blocks/TabDialog/mock/api.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "status": "SUCCESS", - "data": {} -} From 585fd692f0d253debb2c08a5bf433a4b640a4e30 Mon Sep 17 00:00:00 2001 From: chenbin92 Date: Tue, 16 Jan 2018 17:04:34 +0800 Subject: [PATCH 0056/1028] fix: fix style --- blocks/ProgressTable/src/ProgressTable.jsx | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/blocks/ProgressTable/src/ProgressTable.jsx b/blocks/ProgressTable/src/ProgressTable.jsx index 6a7cc445c2..86d07536c4 100644 --- a/blocks/ProgressTable/src/ProgressTable.jsx +++ b/blocks/ProgressTable/src/ProgressTable.jsx @@ -9,7 +9,7 @@ const getTableData = () => { name: 'A旗舰店', total: Math.ceil(Math.random() * 1000000), count: 300 - index * 10, - progress: Math.ceil(Math.random() * 100), + progress: Math.ceil(Math.random() * 100) }; }); }; @@ -22,7 +22,7 @@ export default class ProgressTable extends Component { this.state = { dataSource: getTableData(), - current: 1, + current: 1 }; } @@ -30,22 +30,16 @@ export default class ProgressTable extends Component { ); - onPageChange = (pageNo) => { + onPageChange = pageNo => { this.setState({ - current: pageNo, + current: pageNo }); }; render() { return (
    - + { @@ -79,6 +73,6 @@ const styles = { paginationWrapper: { display: 'flex', padding: '20px 0 0 0', - flexDirection: 'row-reverse', - }, + flexDirection: 'row-reverse' + } }; From dfa83d5c41ff4b666cd9789d6d048396e18305c5 Mon Sep 17 00:00:00 2001 From: chenbin92 Date: Tue, 16 Jan 2018 19:27:35 +0800 Subject: [PATCH 0057/1028] fix: fix lint --- .eslintrc | 19 +-- .../src/ApplicationProgress.jsx | 36 ++--- blocks/ArticleList/src/ArticleList.jsx | 22 +-- .../BasicDetailInfo/src/BasicDetailInfo.jsx | 17 ++- blocks/BrandDisplay/src/BrandDisplay.jsx | 44 +++--- blocks/BrandShowCase/src/BrandShowCase.jsx | 23 +-- blocks/CollapseCard/src/CollapseCard.jsx | 51 +++---- blocks/ComplexDialog/src/ComplexDialog.jsx | 52 +++++-- blocks/ComplexFilter/src/ComplexFilter.jsx | 61 +++----- .../ComplexTabTable/src/ComplexTabTable.jsx | 140 ++++++++---------- .../ComplexTabTable/src/SubCategoryItem.jsx | 13 +- .../CompositeFilter/src/CompositeFilter.jsx | 30 ++-- blocks/ConfirmDialog/src/ConfirmDialog.jsx | 19 ++- blocks/DataDisplay/src/DataDisplay.jsx | 44 +++--- blocks/DetailTable/src/DetailTable.jsx | 21 +-- blocks/DisplayCard/src/DisplayCard.jsx | 59 ++++---- blocks/DownloadCard/src/DownloadCard.jsx | 26 ++-- blocks/EditableTable/src/CellEditor.jsx | 54 ++++--- blocks/EditableTable/src/EditableTable.jsx | 45 ++---- blocks/EmptyContent/src/EmptyContent.jsx | 4 +- blocks/EnhanceTable/src/EnhanceTable.jsx | 79 +++++----- blocks/FailureDetail/src/FailureDetail.jsx | 28 +--- blocks/FeatureDisplay/src/FeatureDisplay.jsx | 37 ++--- blocks/FeedList/src/FeedList.jsx | 26 ++-- blocks/FilterList/src/FilterList.jsx | 28 ++-- .../FilterList/src/SingleItem/SingleItem.jsx | 10 +- blocks/FilterTable/src/Filter/Filter.jsx | 17 ++- blocks/FilterTable/src/FilterTable.jsx | 64 ++++---- .../FilterWithSearch/src/FilterWithSearch.jsx | 25 +--- blocks/Footer/src/Footer.jsx | 24 +-- blocks/FooterInfo/src/FooterInfo.jsx | 27 +--- .../src/ForgetPasswordForm.jsx | 14 +- blocks/InfoDisplayTab/src/InfoDisplayTab.jsx | 59 +++++--- .../InfoDisplayTable/src/InfoDisplayTable.jsx | 45 +----- .../src/LeftContentDisplay.jsx | 32 +++- blocks/MessageList/src/MessageList.jsx | 37 ++--- .../OperationTable/src/EditorInfoDialog.jsx | 7 +- blocks/OperationTable/src/OperationTable.jsx | 82 +++++----- blocks/OrderList/src/OrderList.jsx | 95 +++++++----- blocks/OurTeam/src/OurTeam.jsx | 26 +--- blocks/PriceCard/src/PriceCard.jsx | 86 ++++++++--- blocks/PriceInfo/src/PriceInfo.jsx | 71 ++++++--- blocks/ProductInfo/src/ProductInfo.jsx | 48 +++--- blocks/ProgressTable/src/ProgressTable.jsx | 1 + blocks/RegisterForm/src/RegisterForm.jsx | 74 +++++---- .../src/RightContentDisplay.jsx | 32 +++- .../SelectableTable/src/SelectableTable.jsx | 41 +++-- blocks/SignupForm/src/SignupForm.jsx | 57 ++++--- .../SimpleFormDialog/src/SimpleFormDialog.jsx | 18 ++- .../src/SimpleTestimonial.jsx | 34 ++--- blocks/Subscribe/src/Subscribe.jsx | 24 +-- blocks/SuccessDetail/src/SuccessDetail.jsx | 26 ++-- blocks/SuccessDialog/src/SuccessDialog.jsx | 29 ++-- .../SystemNoticeList/src/SystemNoticeList.jsx | 34 ++--- blocks/TabChart/src/BasicLine.jsx | 11 +- blocks/TabChart/src/SeriesLine.jsx | 13 +- blocks/TabChart/src/TabChart.jsx | 9 +- blocks/TermsInfo/src/TermsInfo.jsx | 12 +- blocks/TextCard/src/TextCard.jsx | 41 +++-- .../TimeFilterTable/src/TimeFilterTable.jsx | 29 +--- blocks/TreeCardList/src/TreeCardList.jsx | 10 +- blocks/UserInfoCard/src/UserInfoCard.jsx | 26 ++-- 62 files changed, 1097 insertions(+), 1171 deletions(-) diff --git a/.eslintrc b/.eslintrc index 7a4e5bac48..db79be4467 100644 --- a/.eslintrc +++ b/.eslintrc @@ -12,10 +12,7 @@ "env": { "browser": true }, - "plugins": [ - "react", - "babel" - ], + "plugins": ["react", "babel"], "rules": { "react/forbid-prop-types": 0, "jsx-a11y/label-has-for": 0, @@ -33,10 +30,7 @@ "react/jsx-filename-extension": [ 1, { - "extensions": [ - ".js", - ".jsx" - ] + "extensions": [".js", ".jsx"] } ], "import/extensions": 0, @@ -50,13 +44,12 @@ "no-redeclare": 0, "react/require-extension": 0, "react/no-danger": 0, - "comma-dangle": [ - "error", - "always-multiline" - ], + "comma-dangle": ["error", "always-multiline"], "function-paren-newline": 0, "object-curly-newline": 0, "no-restricted-globals": 0, - "react/prefer-stateless-function": 0 + "react/prefer-stateless-function": 0, + "react/jsx-no-bind": 0, + "no-plusplus": 0 } } diff --git a/blocks/ApplicationProgress/src/ApplicationProgress.jsx b/blocks/ApplicationProgress/src/ApplicationProgress.jsx index 91a4e21641..d8ff990b84 100644 --- a/blocks/ApplicationProgress/src/ApplicationProgress.jsx +++ b/blocks/ApplicationProgress/src/ApplicationProgress.jsx @@ -11,7 +11,7 @@ const dataSource = () => { url: 'https://img.alicdn.com/tps/TB18NwoNFXXXXXoXXXXXXXXXXXX-132-132.png', operation: '查看', description: - '说明以及解决方案说明以及解决方案说明以及解决方案说明以及解决方案说明以及解决方案' + '说明以及解决方案说明以及解决方案说明以及解决方案说明以及解决方案说明以及解决方案', }, { condition: '校验条件', @@ -19,7 +19,7 @@ const dataSource = () => { url: 'https://img.alicdn.com/tps/TB1VyMkNFXXXXc8XXXXXXXXXXXX-134-134.png', operation: '解决方式链接', description: - '说明以及解决方案说明以及解决方案说明以及解决方案说明以及解决方案说明以及解决方案' + '说明以及解决方案说明以及解决方案说明以及解决方案说明以及解决方案说明以及解决方案', }, { condition: '身份认证', @@ -27,7 +27,7 @@ const dataSource = () => { url: 'https://img.alicdn.com/tps/TB1QCMfNFXXXXaOXpXXXXXXXXXX-136-136.png', operation: '查看', description: - '说明以及解决方案说明以及解决方案说明以及解决方案说明以及解决方案说明以及解决方案' + '说明以及解决方案说明以及解决方案说明以及解决方案说明以及解决方案说明以及解决方案', }, { condition: '非卖家', @@ -35,7 +35,7 @@ const dataSource = () => { url: 'https://img.alicdn.com/tps/TB1mGnSNFXXXXbMaXXXXXXXXXXX-134-136.png', operation: '解决方式链接', description: - '说明以及解决方案说明以及解决方案说明以及解决方案说明以及解决方案说明以及解决方案' + '说明以及解决方案说明以及解决方案说明以及解决方案说明以及解决方案说明以及解决方案', }, { condition: '18岁以上', @@ -43,8 +43,8 @@ const dataSource = () => { url: 'https://img.alicdn.com/tps/TB1xwQiNFXXXXcfXXXXXXXXXXXX-136-134.png', operation: '解决方式链接', description: - '说明以及解决方案说明以及解决方案说明以及解决方案说明以及解决方案说明以及解决方案' - } + '说明以及解决方案说明以及解决方案说明以及解决方案说明以及解决方案说明以及解决方案', + }, ]; }; @@ -62,20 +62,6 @@ export default class ApplicationProgress extends Component { this.state = {}; } - // ICE: React Component 的生命周期 - - componentWillMount() { } - - componentDidMount() { } - - componentWillReceiveProps(nextProps, nextContext) { } - - shouldComponentUpdate(nextProps, nextState) { - return true; - } - - componentWillUnmount() { } - render() { const data = dataSource(); return ( @@ -94,7 +80,11 @@ export default class ApplicationProgress extends Component {
    - condition + condition
    {item.condition}
    @@ -139,7 +129,7 @@ const styles = { width: '64px', height: '64px', borderRadius: '50', - marginBottom: '12px' + marginBottom: '12px', }, itemBody: { padding: '10px 50px 0' }, itemDescription: { color: '#666', marginTop: '20px', width: '309px' }, @@ -148,5 +138,5 @@ const styles = { itemFooter: { textAlign: 'center', color: '#666', marginTop: '40px' }, nextBtn: { marginTop: '40px' }, itemStatus: { color: '#f33', fontSize: '16px' }, - itemStatusText: { marginLeft: '10px' } + itemStatusText: { marginLeft: '10px' }, }; diff --git a/blocks/ArticleList/src/ArticleList.jsx b/blocks/ArticleList/src/ArticleList.jsx index c224fa45ab..4813a713cc 100644 --- a/blocks/ArticleList/src/ArticleList.jsx +++ b/blocks/ArticleList/src/ArticleList.jsx @@ -1,7 +1,4 @@ -'use strict'; - import React, { Component } from 'react'; -import PropTypes from 'prop-types'; import IceCard from '@icedesign/card'; import { Icon } from '@icedesign/base'; import './ArticleList.scss'; @@ -15,7 +12,7 @@ const generatorData = () => { tags: ['直播', '大促活动', '讲解'], like: 123, favor: 245, - comment: 546 + comment: 546, }; }); }; @@ -23,13 +20,6 @@ const generatorData = () => { export default class ArticleList extends Component { static displayName = 'ArticleList'; - static propTypes = { - style: PropTypes.object, - className: PropTypes.string - }; - - static defaultProps = {}; - constructor(props) { super(props); this.state = {}; @@ -110,12 +100,12 @@ const styles = { articleSort: { margin: '0', padding: '0', - display: 'flex' + display: 'flex', }, articleItem: { marginBottom: '30px', paddingBottom: '30px', - borderBottom: '1px solid #f5f5f5' + borderBottom: '1px solid #f5f5f5', }, title: { fontSize: '16px', color: '#333', textDecoration: 'none' }, desc: { lineHeight: '24px', fontSize: '14px', color: '#999' }, @@ -126,11 +116,11 @@ const styles = { color: '#999', padding: '4px 15px', borderRadius: '20px', - marginRight: '20px' + marginRight: '20px', }, articleItemMeta: { position: 'absolute', right: '0', - top: '0' - } + top: '0', + }, }; diff --git a/blocks/BasicDetailInfo/src/BasicDetailInfo.jsx b/blocks/BasicDetailInfo/src/BasicDetailInfo.jsx index 561ee5b208..7111050d78 100644 --- a/blocks/BasicDetailInfo/src/BasicDetailInfo.jsx +++ b/blocks/BasicDetailInfo/src/BasicDetailInfo.jsx @@ -1,5 +1,3 @@ -'use strict'; - import React, { Component } from 'react'; import IceCard from '@icedesign/card'; import './BasicDetailInfo.scss'; @@ -22,8 +20,8 @@ const dataSoruce = { 'https://img.alicdn.com/imgextra/i3/672246894/TB2ziLDdbsTMeJjSszdXXcEupXa_!!672246894-0-beehive-scenes.jpg_180x180xzq90.jpg_.webp', 'https://img.alicdn.com/imgextra/i1/2645911918/TB2qQA9fk.HL1JjSZFuXXX8dXXa_!!2645911918-0-beehive-scenes.jpg_180x180xzq90.jpg_.webp', 'https://img.alicdn.com/bao/uploaded/TB2obaBXeLyQeBjy1XaXXcexFXa_!!0-dgshop.jpg_180x180xzq90.jpg_.webp', - 'https://img.alicdn.com/tps/i1/99136475/TB2Cc7saE1HTKJjSZFmXXXeYFXa_!!0-juitemmedia.jpg_180x180q90.jpg_.webp' - ] + 'https://img.alicdn.com/tps/i1/99136475/TB2Cc7saE1HTKJjSZFmXXXeYFXa_!!0-juitemmedia.jpg_180x180q90.jpg_.webp', + ], }; export default class BasicDetailInfo extends Component { @@ -98,7 +96,12 @@ export default class BasicDetailInfo extends Component { dataSoruce.pics.length && dataSoruce.pics.map((pic, index) => { return ( - + 图片 ); })} @@ -120,6 +123,6 @@ const styles = { width: '80px', height: '80px', border: '1px solid #eee', - marginRight: '10px' - } + marginRight: '10px', + }, }; diff --git a/blocks/BrandDisplay/src/BrandDisplay.jsx b/blocks/BrandDisplay/src/BrandDisplay.jsx index a4bc96c9c9..4ab0d6c5aa 100644 --- a/blocks/BrandDisplay/src/BrandDisplay.jsx +++ b/blocks/BrandDisplay/src/BrandDisplay.jsx @@ -1,7 +1,4 @@ -'use strict'; - import React, { Component } from 'react'; -import PropTypes from 'prop-types'; import Img from '@icedesign/img'; import './BrandDisplay.scss'; @@ -13,7 +10,7 @@ const dataSource = [ headPic: 'https://img.alicdn.com/tfs/TB1QMwlSXXXXXaUXXXXXXXXXXXX-122-122.png', pic: 'https://img.alicdn.com/tfs/TB1n6H_SXXXXXc3XpXXXXXXXXXX-616-348.png', - url: 'https://v.taobao.com/v/mission/case-detail?userId=38587850' + url: 'https://v.taobao.com/v/mission/case-detail?userId=38587850', }, { title: '万家乐', @@ -21,7 +18,7 @@ const dataSource = [ '策划『生活改造家』主题全案,联合一线大咖制作图文、直播、短视频全域引流,助力品牌升级和高端人群种草,结合行业活动割草。', headPic: 'https://img.alicdn.com/tfs/TB1Z4CLSXXXXXcHXVXXXXXXXXXX-61-61.png', pic: 'https://img.alicdn.com/tfs/TB1bHO6SXXXXXaiXFXXXXXXXXXX-308-174.png', - url: 'https://v.taobao.com/v/mission/case-detail?userId=2738062192' + url: 'https://v.taobao.com/v/mission/case-detail?userId=2738062192', }, { title: '职场游乐园', @@ -29,7 +26,7 @@ const dataSource = [ headPic: 'https://img.alicdn.com/tfs/TB1kX62SXXXXXXJXVXXXXXXXXXX-122-122.png', pic: 'https://img.alicdn.com/tfs/TB17bzrSXXXXXbpaFXXXXXXXXXX-616-348.png', - url: 'https://v.taobao.com/v/mission/case-detail?userId=2894350953' + url: 'https://v.taobao.com/v/mission/case-detail?userId=2894350953', }, { title: '品味百味人生', @@ -38,20 +35,13 @@ const dataSource = [ headPic: 'https://img.alicdn.com/tfs/TB19C_9SXXXXXc1XpXXXXXXXXXX-122-122.png', pic: 'https://img.alicdn.com/tfs/TB1IkEjSXXXXXb1XXXXXXXXXXXX-616-348.png', - url: 'https://v.taobao.com/v/mission/case-detail?userId=2149813109' - } + url: 'https://v.taobao.com/v/mission/case-detail?userId=2149813109', + }, ]; export default class BrandDisplay extends Component { static displayName = 'BrandDisplay'; - static propTypes = { - style: PropTypes.object, - className: PropTypes.string - }; - - static defaultProps = {}; - render() { return (
    @@ -64,10 +54,20 @@ export default class BrandDisplay extends Component { return (
  • - + 图片
    - + 图片 {item.title}

    {item.subject}

    @@ -93,12 +93,12 @@ const styles = { verticalAlign: 'top', marginBottom: '30px', marginLeft: '15px', - overflow: 'hidden' + overflow: 'hidden', }, caseContent: { width: '250px', display: 'inline-block', - verticalAlign: 'top' + verticalAlign: 'top', }, caseSubject: { margin: '20px 10px 0', lineHeight: '60px', height: '60px' }, subjectImage: { width: '60px', height: '60px', borderRadius: '50%' }, @@ -107,12 +107,12 @@ const styles = { color: '#333333', height: '60px', verticalAlign: 'top', - marginLeft: '12px' + marginLeft: '12px', }, caseDetail: { fontSize: '12px', color: '#666666', padding: '0 16px', - textAlign: 'left' - } + textAlign: 'left', + }, }; diff --git a/blocks/BrandShowCase/src/BrandShowCase.jsx b/blocks/BrandShowCase/src/BrandShowCase.jsx index f3fcb5b285..ba690fa48b 100644 --- a/blocks/BrandShowCase/src/BrandShowCase.jsx +++ b/blocks/BrandShowCase/src/BrandShowCase.jsx @@ -1,13 +1,12 @@ import React, { Component } from 'react'; -import PropTypes from 'prop-types'; import IceCard from '@icedesign/card'; import './BrandShowCase.scss'; const generatorData = (count) => { - return Array.from({ length: count }).map((item, index) => { + return Array.from({ length: count }).map(() => { return { imgUrl: - 'https://img.alicdn.com/tfs/TB1rnNcjr_I8KJjy1XaXXbsxpXa-603-474.png' + 'https://img.alicdn.com/tfs/TB1rnNcjr_I8KJjy1XaXXbsxpXa-603-474.png', }; }); }; @@ -24,20 +23,6 @@ export default class BrandShowCase extends Component { this.state = {}; } - // ICE: React Component 的生命周期 - - componentWillMount() { } - - componentDidMount() { } - - componentWillReceiveProps(nextProps, nextContext) { } - - shouldComponentUpdate(nextProps, nextState) { - return true; - } - - componentWillUnmount() { } - render() { const data = generatorData(12); return ( @@ -53,7 +38,7 @@ export default class BrandShowCase extends Component { {data.map((item, index) => { return (
    - +
    ); })} @@ -70,5 +55,5 @@ const styles = { intro: { textAlign: 'center', color: '#999' }, items: { display: 'flex', flexWrap: 'wrap', margin: '30px 0' }, item: { width: '16.66%', margin: '10px 0', textAlign: 'center' }, - image: { width: '100px', height: '80px' } + image: { width: '100px', height: '80px' }, }; diff --git a/blocks/CollapseCard/src/CollapseCard.jsx b/blocks/CollapseCard/src/CollapseCard.jsx index 4970e3aa09..089bffe919 100644 --- a/blocks/CollapseCard/src/CollapseCard.jsx +++ b/blocks/CollapseCard/src/CollapseCard.jsx @@ -1,5 +1,3 @@ -'use strict'; - import React, { Component } from 'react'; import IceCard from '@icedesign/card'; import { Icon } from '@icedesign/base'; @@ -16,34 +14,20 @@ export default class CollapseCard extends Component { constructor(props) { super(props); this.state = { - collapse: false + collapse: false, }; } - // ICE: React Component 的生命周期 - - componentWillMount() { } - - componentDidMount() { } - - componentWillReceiveProps(nextProps, nextContext) { } - - shouldComponentUpdate(nextProps, nextState) { - return true; - } - - componentWillUnmount() { } - toggleCollapse = () => { const { collapse } = this.state; this.setState({ - collapse: collapse ? false : true + collapse: !collapse, }); }; render() { const { collapse } = this.state; - const cls = classnames('base-info', { collapse: collapse }); + const cls = classnames('base-info', { collapse }); return (
    @@ -51,6 +35,7 @@ export default class CollapseCard extends Component { logo

    戴森

    @@ -79,7 +64,6 @@ export default class CollapseCard extends Component {
    恭喜您成功创作平台
    现在可以认证符合自己的角色啦 @@ -66,7 +64,7 @@ export default class ComplexDialog extends Component {
    - + V 标头像
    @@ -81,25 +79,51 @@ export default class ComplexDialog extends Component {
    - + ); } } const styles = { - icon: { width: '52px', height: '52px' }, + icon: { + width: '52px', + height: '52px', + }, dialogContent: { width: '640px', height: '200px', display: 'flex', flexDirection: 'column', - alignItems: 'center' + alignItems: 'center', + }, + info: { + marginTop: '10px', + fontSize: '16px', + textAlign: 'center', + }, + extraInfo: { + marginTop: '12px', + fontSize: '12px', + color: '#999999', + }, + authList: { + marginTop: '10px', + fontSize: '12px', + color: '#999999', + }, + authItem: { + marginTop: '5px', + }, + authItemIcon: { + color: '#2ECA9C', + marginRight: '5px', + }, + footer: { + marginTop: '10px', + marginBottom: '10px', + textAlign: 'center', }, - info: { marginTop: '10px', fontSize: '16px', textAlign: 'center' }, - extraInfo: { marginTop: '12px', fontSize: '12px', color: '#999999' }, - authList: { marginTop: '10px', fontSize: '12px', color: '#999999' }, - authItem: { marginTop: '5px' }, - authItemIcon: { color: '#2ECA9C', marginRight: '5px', }, - footer: { marginTop: '10px', marginBottom: '10px', textAlign: 'center' } }; diff --git a/blocks/ComplexFilter/src/ComplexFilter.jsx b/blocks/ComplexFilter/src/ComplexFilter.jsx index 7ef84ec57e..ad0086ac48 100644 --- a/blocks/ComplexFilter/src/ComplexFilter.jsx +++ b/blocks/ComplexFilter/src/ComplexFilter.jsx @@ -1,51 +1,29 @@ -'use strict'; - import React, { Component } from 'react'; -import PropTypes from 'prop-types'; import IceCard from '@icedesign/card'; import { Select } from '@icedesign/base'; import './ComplexFilter.scss'; const { Combobox } = Select; - +const { Option } = Select; export default class ComplexFilter extends Component { static displayName = 'ComplexFilter'; - static propTypes = { - style: PropTypes.object, - className: PropTypes.string - }; - static defaultProps = {}; constructor(props) { super(props); this.state = { currentFilterType: 'article', - categories: ['type1', 'type3'] + categories: ['type1', 'type3'], }; } - // ICE: React Component 的生命周期 - - componentWillMount() { } - - componentDidMount() { } - - componentWillReceiveProps(nextProps, nextContext) { } - - shouldComponentUpdate(nextProps, nextState) { - return true; - } - - componentWillUnmount() { } - render() { const { currentFilterType, categories } = this.state; const FILTERS = [ { type: 'article', text: '文章' }, { type: 'app', text: '应用' }, - { type: 'other', text: '其他' } + { type: 'other', text: '其他' }, ]; const CATEGORIES = [ @@ -53,7 +31,7 @@ export default class ComplexFilter extends Component { { type: 'type1', text: '类目一' }, { type: 'type2', text: '类目二' }, { type: 'type3', text: '类目三' }, - { type: 'type4', text: '类目四' } + { type: 'type4', text: '类目四' }, ]; return (
    @@ -63,10 +41,10 @@ export default class ComplexFilter extends Component { key={idx} className={`tab-filter-item ${ currentFilterType === item.type ? 'active' : '' - }`} + }`} onClick={() => { this.setState({ - currentFilterType: item.type + currentFilterType: item.type, }); }} > @@ -82,16 +60,16 @@ export default class ComplexFilter extends Component { -1 ? 'active' : '' - }`} + }`} onClick={() => { const isInCategory = categories.indexOf(cat.type) > -1; if (isInCategory) { this.setState({ - categories: categories.filter((item) => item !== cat.type) + categories: categories.filter(item => item !== cat.type), }); } else { this.setState({ - categories: [...categories, cat.type] + categories: [...categories, cat.type], }); } }} @@ -103,15 +81,17 @@ export default class ComplexFilter extends Component {
    - 所有者: console.log('blur')} /> - 活跃用户: @@ -120,7 +100,8 @@ export default class ComplexFilter extends Component { Disabled - 好评度: @@ -140,20 +121,20 @@ const styles = { tabFilterContainer: { display: 'flex', flexDirection: 'row', - paddingBottom: 0 + paddingBottom: 0, }, filterBelonging: { paddingBottom: '10px', borderBottom: '1px solid #F4F4F4' }, filterBelongingLabel: { fontSize: '14px', color: '#333', - marginRight: '19px' + marginRight: '19px', }, filterForm: { marginTop: '20px', display: 'flex', flexDirection: 'row', - alignItems: 'center' + alignItems: 'center', }, combobox: { width: '200px', marginRight: '25px' }, - select: { width: '50px', marginRight: '25px' } + select: { width: '50px', marginRight: '25px' }, }; diff --git a/blocks/ComplexTabTable/src/ComplexTabTable.jsx b/blocks/ComplexTabTable/src/ComplexTabTable.jsx index 5fb2451071..9a134fbae0 100644 --- a/blocks/ComplexTabTable/src/ComplexTabTable.jsx +++ b/blocks/ComplexTabTable/src/ComplexTabTable.jsx @@ -1,41 +1,31 @@ -'use strict'; - +/* eslint no-underscore-dangle:0 */ import React, { Component } from 'react'; -import PropTypes from 'prop-types'; -import './ComplexTabTable.scss'; - import { Table, Pagination, Tab, DatePicker, Search } from '@icedesign/base'; - import IceCard from '@icedesign/card'; import IceImg from '@icedesign/img'; import DataBinder from '@icedesign/data-binder'; import IceLabel from '@icedesign/label'; - import SubCategoryItem from './SubCategoryItem'; +import './ComplexTabTable.scss'; @DataBinder({ tableData: { // 详细请求配置请参见 https://github.com/axios/axios url: '/mock/complex-tab-table-list.json', params: { - page: 1 + page: 1, }, defaultBindingData: { list: [], total: 100, pageSize: 10, - currentPage: 1 - } - } + currentPage: 1, + }, + }, }) export default class ComplexTabTable extends Component { static displayName = 'ComplexTabTable'; - static propTypes = { - style: PropTypes.object, - className: PropTypes.string - }; - static defaultProps = {}; constructor(props) { @@ -53,29 +43,29 @@ export default class ComplexTabTable extends Component { subCategories: [ { text: '申请账号失败', - id: '1' + id: '1', }, { text: '粉丝数为0', - id: '2' + id: '2', }, { text: '空间不足', - id: '3' + id: '3', }, { text: '系统报错', - id: '4' + id: '4', }, { text: '网络异常', - id: '5' + id: '5', }, { text: '不在范围', - id: '6' - } - ] + id: '6', + }, + ], }, { text: '待解决', @@ -84,13 +74,13 @@ export default class ComplexTabTable extends Component { subCategories: [ { text: '网络异常', - id: '21' + id: '21', }, { text: '空间不足', - id: '22' - } - ] + id: '22', + }, + ], }, { text: '待验证', @@ -99,42 +89,30 @@ export default class ComplexTabTable extends Component { subCategories: [ { text: '系统报错', - id: '34' + id: '34', }, { text: '网络异常', - id: '35' + id: '35', }, { text: '不在范围', - id: '36' - } - ] - } - ] + id: '36', + }, + ], + }, + ], }; } - // ICE: React Component 的生命周期 - - componentWillMount() { } - componentDidMount() { this.queryCache.page = 1; this.fetchData(); } - componentWillReceiveProps(nextProps, nextContext) { } - - shouldComponentUpdate(nextProps, nextState) { - return true; - } - - componentWillUnmount() { } - fetchData = () => { this.props.updateBindingData('tableData', { - data: this.queryCache + data: this.queryCache, }); }; @@ -173,7 +151,7 @@ export default class ComplexTabTable extends Component { ); }; - renderStatus = (value, index, record) => { + renderStatus = (value) => { return ( {value} @@ -194,7 +172,7 @@ export default class ComplexTabTable extends Component { this.setState({ currentTab: tabKey, - currentCategory: firstTabCatId + currentCategory: firstTabCatId, }); this.queryCache.catId = firstTabCatId; this.fetchData(); @@ -212,7 +190,7 @@ export default class ComplexTabTable extends Component { onSubCategoryClick = (catId) => { this.setState({ - currentCategory: catId + currentCategory: catId, }); this.queryCache.catId = catId; this.fetchData(); @@ -231,7 +209,7 @@ export default class ComplexTabTable extends Component { type="bar" currentTab={this.state.currentTab} contentStyle={{ - padding: '4px 0 0 0' + padding: '4px 0 0 0', }} tabBarExtraContent={
    @@ -248,34 +226,34 @@ export default class ComplexTabTable extends Component { } > {tabList && tabList.length > 0 - ? tabList.map((tab, idx) => { - return ( - - {tab.text}{' '} - {tab.count} - - } - > - {tab.subCategories && tab.subCategories.length > 0 - ? tab.subCategories.map((catItem, index) => { - return ( - - ); - }) - : null} - - ); - }) + ? tabList.map((tab) => { + return ( + + {tab.text}{' '} + {tab.count} + + } + > + {tab.subCategories && tab.subCategories.length > 0 + ? tab.subCategories.map((catItem, index) => { + return ( + + ); + }) + : null} + + ); + }) : null} @@ -332,5 +310,5 @@ const styles = { tabExtra: { display: 'flex', alignItems: 'center' }, search: { marginLeft: 10 }, tabCount: { color: '#3080FE' }, - pagination: { textAlign: 'right', paddingTop: '26px' } + pagination: { textAlign: 'right', paddingTop: '26px' }, }; diff --git a/blocks/ComplexTabTable/src/SubCategoryItem.jsx b/blocks/ComplexTabTable/src/SubCategoryItem.jsx index 9697f0a101..433a441862 100644 --- a/blocks/ComplexTabTable/src/SubCategoryItem.jsx +++ b/blocks/ComplexTabTable/src/SubCategoryItem.jsx @@ -1,7 +1,5 @@ -'use strict'; - -import React, { Component } from 'react'; -import PropTypes from 'prop-types'; +/* eslint no-unused-expressions: 0 */ +import React from 'react'; const categoryStyle = { display: 'inline-block', @@ -13,17 +11,16 @@ const categoryStyle = { borderRadius: '100px', cursor: 'pointer', fontSize: '12px', - marginTop: '12px' + marginTop: '12px', }; export default (props) => { - return ( { props.onItemClick && props.onItemClick(props.id); @@ -32,4 +29,4 @@ export default (props) => { {props.text} ); -} \ No newline at end of file +}; diff --git a/blocks/CompositeFilter/src/CompositeFilter.jsx b/blocks/CompositeFilter/src/CompositeFilter.jsx index a847c5ac47..32d2088a60 100644 --- a/blocks/CompositeFilter/src/CompositeFilter.jsx +++ b/blocks/CompositeFilter/src/CompositeFilter.jsx @@ -1,7 +1,4 @@ -'use strict'; - import React, { Component } from 'react'; -import PropTypes from 'prop-types'; import { Search, Tab, Tag, DatePicker } from '@icedesign/base'; import IceCard from '@icedesign/card'; import './CompositeFilter.scss'; @@ -12,33 +9,30 @@ const TabPane = Tab.TabPane; const tagList = [ { key: 'all', - name: '全部商品' + name: '全部商品', }, { key: 'unclassified', - name: '未分类' + name: '未分类', }, { key: 'invalid', - name: '已失效' + name: '已失效', }, { key: 'haohuo', - name: '有好货专用' + name: '有好货专用', }, { key: 'bimai', - name: '必买清单' - } + name: '必买清单', + }, ]; export default class CompositeFilter extends Component { static displayName = 'CompositeFilter'; - static propTypes = { - style: PropTypes.object, - className: PropTypes.string - }; + static propTypes = {}; static defaultProps = {}; @@ -48,13 +42,11 @@ export default class CompositeFilter extends Component { } onTabChange = (key) => { - console.log('select tab is: ' + key); + console.log(`select tab is: ${key}`); }; onTagChange = (key, selected) => { - console.log( - 'Tag: ' + key + ' is ' + (selected ? 'selected' : 'unselected') - ); + console.log(`Tag: ${key} is ${selected ? 'selected' : 'unselected'}`); }; onDateChange = (value) => { @@ -122,7 +114,7 @@ const styles = { extraFilter: { marginTop: '8px', display: 'flex', - flexDirection: 'row' + flexDirection: 'row', }, - search: { marginLeft: '12px' } + search: { marginLeft: '12px' }, }; diff --git a/blocks/ConfirmDialog/src/ConfirmDialog.jsx b/blocks/ConfirmDialog/src/ConfirmDialog.jsx index d31123eacf..931c5a6020 100644 --- a/blocks/ConfirmDialog/src/ConfirmDialog.jsx +++ b/blocks/ConfirmDialog/src/ConfirmDialog.jsx @@ -1,5 +1,3 @@ -'use strict'; - import React, { Component } from 'react'; import { Dialog, Button } from '@icedesign/base'; import IceCard from '@icedesign/card'; @@ -46,31 +44,38 @@ export default class ConfirmDialog extends Component { style={styles.icon} src="http://img.alicdn.com/tfs/TB1PTrfb_nI8KJjy0FfXXcdoVXa-52-52.png" srcSet="//img.alicdn.com/tfs/TB1c5feb46I8KJjy0FgXXXXzVXa-104-104.png" + alt="" />

    {this.props.text ? this.props.text : '你确定要删除此条内容吗?'}

    - + ); } } const styles = { - dialog: { width: '640px' }, + dialog: { + width: '640px', + }, icon: { width: '52px', height: '52px', marginTop: '26px', - marginBottom: '10px' + marginBottom: '10px', }, dialogContent: { height: '160px', display: 'flex', flexDirection: 'column', - alignItems: 'center' + alignItems: 'center', + }, + text: { + fontSize: '16px;', }, - text: { fontSize: '16px;' } }; diff --git a/blocks/DataDisplay/src/DataDisplay.jsx b/blocks/DataDisplay/src/DataDisplay.jsx index 40710f6aa1..6db79d3f3f 100644 --- a/blocks/DataDisplay/src/DataDisplay.jsx +++ b/blocks/DataDisplay/src/DataDisplay.jsx @@ -1,21 +1,20 @@ import React, { Component } from 'react'; -import PropTypes from 'prop-types'; import IceCard from '@icedesign/card'; import './DataDisplay.scss'; const data = [ { count: 100, - title: '日活跃数' + title: '日活跃数', }, { count: '3,000', - title: '月活跃数' + title: '月活跃数', }, { count: '20,000', - title: '年活跃数' - } + title: '年活跃数', + }, ]; export default class DataDisplay extends Component { @@ -30,20 +29,6 @@ export default class DataDisplay extends Component { this.state = {}; } - // ICE: React Component 的生命周期 - - componentWillMount() { } - - componentDidMount() { } - - componentWillReceiveProps(nextProps, nextContext) { } - - shouldComponentUpdate(nextProps, nextState) { - return true; - } - - componentWillUnmount() { } - render() { return (
    @@ -66,20 +51,29 @@ export default class DataDisplay extends Component { } const styles = { - items: { display: 'flex', flexWrap: 'wrap' }, - item: { width: '33%', margin: '20px 0', textAlign: 'center' }, + items: { + display: 'flex', + flexWrap: 'wrap', + }, + item: { + width: '33%', + margin: '20px 0', + textAlign: 'center', + }, count: { margin: '12px 0', fontWeight: 'bold', fontSize: '32px', - color: '#15A0FF' + color: '#15A0FF', + }, + title: { + color: '#999', }, - title: { color: '#999' }, splitLine: { display: 'block', margin: '0 auto', width: '24px', height: '1px', - background: '#9B9B9B' - } + background: '#9B9B9B', + }, }; diff --git a/blocks/DetailTable/src/DetailTable.jsx b/blocks/DetailTable/src/DetailTable.jsx index 6d0f3e2cd4..023fc0b0a2 100644 --- a/blocks/DetailTable/src/DetailTable.jsx +++ b/blocks/DetailTable/src/DetailTable.jsx @@ -1,5 +1,4 @@ import React, { Component } from 'react'; -import PropTypes from 'prop-types'; import IceCard from '@icedesign/card'; import './DetailTable.scss'; @@ -15,20 +14,6 @@ export default class DetailTable extends Component { this.state = {}; } - // ICE: React Component 的生命周期 - - componentWillMount() { } - - componentDidMount() { } - - componentWillReceiveProps(nextProps, nextContext) { } - - shouldComponentUpdate(nextProps, nextState) { - return true; - } - - componentWillUnmount() { } - render() { return (
    @@ -73,14 +58,14 @@ const styles = { detailItem: { padding: '15px 0px', display: 'flex', - borderTop: '1px solid #EEEFF3' + borderTop: '1px solid #EEEFF3', }, detailTitle: { marginRight: '30px', textAlign: 'right', width: '120px', - color: '#999999' + color: '#999999', }, detailBody: { flex: 1 }, - statusProcessing: { color: '#64D874' } + statusProcessing: { color: '#64D874' }, }; diff --git a/blocks/DisplayCard/src/DisplayCard.jsx b/blocks/DisplayCard/src/DisplayCard.jsx index b95148a550..6ba73388e9 100644 --- a/blocks/DisplayCard/src/DisplayCard.jsx +++ b/blocks/DisplayCard/src/DisplayCard.jsx @@ -1,5 +1,4 @@ -'use strict'; - +/* eslint react/jsx-no-target-blank: 0 */ import React, { Component } from 'react'; import IceCard from '@icedesign/card'; import './DisplayCard.scss'; @@ -16,20 +15,6 @@ export default class DisplayCard extends Component { this.state = {}; } - // ICE: React Component 的生命周期 - - componentWillMount() { } - - componentDidMount() { } - - componentWillReceiveProps(nextProps, nextContext) { } - - shouldComponentUpdate(nextProps, nextState) { - return true; - } - - componentWillUnmount() { } - renderItem = (data, idx) => { return
    111
    ; }; @@ -39,12 +24,14 @@ export default class DisplayCard extends Component { ); const up = ( ); return ( @@ -55,12 +42,16 @@ export default class DisplayCard extends Component { >
    46,657
    @@ -74,12 +65,16 @@ export default class DisplayCard extends Component {
    - 昨日账号主页浏览人数 - +
    533
    @@ -93,12 +88,16 @@ export default class DisplayCard extends Component {
    - 昨日活跃粉丝数 - +
    2233
    @@ -112,12 +111,16 @@ export default class DisplayCard extends Component {
    - 昨日粉丝数 - +
    23,333
    @@ -144,14 +147,14 @@ const styles = { backgroundPosition: 'center center', display: 'flex', flexDirection: 'row', - justifyContent: 'space-between' + justifyContent: 'space-between', }, displayCardItem: { display: 'flex', height: '150px', width: '169', flexDirection: 'column', - justifyContent: 'center' + justifyContent: 'center', }, displayCardText: { color: '#BEBEBE', fontSize: '12px', marginBottom: '5px' }, helpLink: { marginLeft: '5px' }, @@ -159,9 +162,9 @@ const styles = { color: '#fff', fontSize: '24px', fontWeight: 'bold', - marginBottom: '3px' + marginBottom: '3px', }, displayCardDesc: { color: '#BEBEBE', fontSize: '12px' }, down: { width: '6px', height: '9px' }, - up: { width: '6px', height: '9px' } + up: { width: '6px', height: '9px' }, }; diff --git a/blocks/DownloadCard/src/DownloadCard.jsx b/blocks/DownloadCard/src/DownloadCard.jsx index a8c11bdc28..8bd1ed2e23 100644 --- a/blocks/DownloadCard/src/DownloadCard.jsx +++ b/blocks/DownloadCard/src/DownloadCard.jsx @@ -1,7 +1,4 @@ -'use strict'; - import React, { Component } from 'react'; -import PropTypes from 'prop-types'; import IceCard from '@icedesign/card'; import axios from 'axios'; import { Tab, Button, Icon } from '@icedesign/base'; @@ -12,17 +9,14 @@ const { TabPane } = Tab; export default class DownloadCard extends Component { static displayName = 'DownloadCard'; - static propTypes = { - style: PropTypes.object, - className: PropTypes.string - }; + static propTypes = {}; static defaultProps = {}; constructor(props) { super(props); this.state = { - tabData: {} + tabData: {}, }; } @@ -34,7 +28,7 @@ export default class DownloadCard extends Component { .get('/mock/download-card.json') .then((response) => { this.setState({ - tabData: response.data.data || {} + tabData: response.data.data || {}, }); }) .catch((error) => { @@ -56,7 +50,7 @@ export default class DownloadCard extends Component { >
    - + 头像

    {item.title}

    {item.desc}

    @@ -135,19 +129,19 @@ const styles = { overflow: 'hidden', boxShadow: '0px 0px 2px 0px rgba(0, 0, 0, 0.1),0px 2px 2px 0px rgba(0, 0, 0, 0.1)', - background: '#fff' + background: '#fff', }, cardBody: { textAlign: 'center', padding: '20px 0', marginBottom: '15px', - borderBottom: '1px solid #dedede' + borderBottom: '1px solid #dedede', }, avatarWrapper: { width: '50px', height: '50px', overflow: 'hidden', - margin: '0 auto' + margin: '0 auto', }, title: { fontSize: '20px', margin: '10px' }, desc: { fontSize: '15px', color: '#999' }, @@ -160,14 +154,14 @@ const styles = { position: 'absolute', bottom: '0px', left: '0px', - right: '0px' + right: '0px', }, bottomText: { marginLeft: '15px', fontSize: '13px', color: '#666', - textDecoration: 'none' + textDecoration: 'none', }, downloadCard: {}, - img: { width: '100%' } + img: { width: '100%' }, }; diff --git a/blocks/EditableTable/src/CellEditor.jsx b/blocks/EditableTable/src/CellEditor.jsx index 9e89f36048..f6d1e872ab 100644 --- a/blocks/EditableTable/src/CellEditor.jsx +++ b/blocks/EditableTable/src/CellEditor.jsx @@ -1,9 +1,6 @@ -'use strict'; - +/* eslint no-unused-expressions: 0 */ import React, { Component } from 'react'; -import PropTypes from 'prop-types'; - -import { Table, Icon, Button, Input } from '@icedesign/base'; +import { Icon, Input } from '@icedesign/base'; export default class CellEditor extends Component { static displayName = 'CellEditor'; @@ -14,14 +11,14 @@ export default class CellEditor extends Component { this.tempValue = ''; this.state = { editMode: false, - value: props.value || '' + value: props.value || '', }; } componentWillReceiveProps(nextProps) { if ('value' in nextProps) { this.setState({ - value: nextProps.value + value: nextProps.value, }); } } @@ -30,19 +27,19 @@ export default class CellEditor extends Component { // 缓存数据以便回滚 this.tempValue = this.state.value; this.setState({ - editMode: true + editMode: true, }); }; - onValueChange = value => { + onValueChange = (value) => { this.setState({ - value + value, }); }; updateValue = () => { this.setState({ - editMode: false + editMode: false, }); const { index, valueKey } = this.props; const { value } = this.state; @@ -52,7 +49,7 @@ export default class CellEditor extends Component { rollBackThisCell = () => { this.setState({ value: this.tempValue, - editMode: false + editMode: false, }); this.tempValue = ''; }; @@ -84,31 +81,30 @@ export default class CellEditor extends Component {
    ); - } else { - return ( -
    - {value} - - - -
    - ); } + return ( +
    + {value} + + + +
    + ); } } const styles = { cellInput: { - width: 'calc(100% - 44px)' + width: 'calc(100% - 44px)', }, operationIcon: { marginLeft: '10px', color: '#999', - cursor: 'pointer' - } + cursor: 'pointer', + }, }; diff --git a/blocks/EditableTable/src/EditableTable.jsx b/blocks/EditableTable/src/EditableTable.jsx index fa74a974d0..5afb80756c 100644 --- a/blocks/EditableTable/src/EditableTable.jsx +++ b/blocks/EditableTable/src/EditableTable.jsx @@ -1,18 +1,15 @@ -'use strict'; - import React, { Component } from 'react'; -import PropTypes from 'prop-types'; import IceCard from '@icedesign/card'; -import './EditableTable.scss'; -import { Table, Icon, Button, Input } from '@icedesign/base'; +import { Table, Button } from '@icedesign/base'; import CellEditor from './CellEditor'; +import './EditableTable.scss'; const generatorData = () => { return Array.from({ length: 5 }).map((item, index) => { return { - todo: '待办事项 ' + index, - memo: '备注说明文案 ' + index, - validity: '2017-12-12' + todo: `待办事项 ${index}`, + memo: `备注说明文案 ${index}`, + validity: '2017-12-12', }; }); }; @@ -27,36 +24,22 @@ export default class EditableTable extends Component { constructor(props) { super(props); this.state = { - dataSource: generatorData() + dataSource: generatorData(), }; } - // ICE: React Component 的生命周期 - - componentWillMount() { } - - componentDidMount() { } - - componentWillReceiveProps(nextProps, nextContext) { } - - shouldComponentUpdate(nextProps, nextState) { - return true; - } - - componentWillUnmount() { } - - renderOrder = (value, index, record) => { + renderOrder = (value, index) => { return {index}; }; deleteItem = (index) => { this.state.dataSource.splice(index, 1); this.setState({ - dataSource: this.state.dataSource + dataSource: this.state.dataSource, }); }; - renderOperation = (value, index, record) => { + renderOperation = (value, index) => { return (
  • - @@ -108,7 +111,7 @@ export default class Filter extends Component {
    {item.title} + + {item.title} + - +
    - +
    -
    +
    { - axios.get('/mock/order-list.json') - .then(response => { + axios + .get('/mock/order-list.json') + .then((response) => { this.setState({ - tableData: response.data.data + tableData: response.data.data, }); }) - .catch(error => { + .catch((error) => { console.log(error); }); - } + }; /** * 渲染订单信息 @@ -50,43 +44,52 @@ export default class OrderList extends Component { renderOrderInfo = (product) => { return (
    - -
    {product[0].description}
    + 头像 +
    + {product[0].description} +
    ); }; - /** * 渲染订单价格 */ renderOrderPrice = (price) => { return {price}; - } + }; /** * 渲染订单单号 */ renderOrderNumber = (record) => { return
    {record.product[0].title}
    ; - } - + }; /** * 设置每一行的样式名称 */ getRowClassName = (record) => { - if (record.status == 0) { + if (record.status === 0) { return 'highlight-row'; } - } + }; /** * 渲染操作行 */ renderOperation = () => { - return 查看; - } + return ( + + 查看 + + ); + }; /** * 选中当前行的回调 @@ -94,12 +97,12 @@ export default class OrderList extends Component { handleRowSelection = (selectedRowKeys, records) => { console.log('selectedRowKeys:', selectedRowKeys); console.log('records:', records); - } + }; render() { const rowSelection = { onChange: this.handleRowSelection, - mode: 'single' + mode: 'single', }; const { tableData } = this.state; @@ -107,15 +110,31 @@ export default class OrderList extends Component { return (
    -
    订单列表
    - + 订单列表 + +
    - - - + + +
    @@ -123,4 +142,14 @@ export default class OrderList extends Component { } } -const styles = {"orderImg":{"width":"60px","height":"60px","float":"left","marginRight":"10px"},"orderDetailLink":{"textDecoration":"none"},"orderList":{},"orderListHead":{"marginBottom":"20px","color":"#666"}} \ No newline at end of file +const styles = { + orderImg: { + width: '60px', + height: '60px', + float: 'left', + marginRight: '10px', + }, + orderDetailLink: { textDecoration: 'none' }, + orderList: {}, + orderListHead: { marginBottom: '20px', color: '#666' }, +}; diff --git a/blocks/OurTeam/src/OurTeam.jsx b/blocks/OurTeam/src/OurTeam.jsx index ddd4be876b..e707a824e9 100644 --- a/blocks/OurTeam/src/OurTeam.jsx +++ b/blocks/OurTeam/src/OurTeam.jsx @@ -1,7 +1,4 @@ - - import React, { Component } from 'react'; -import PropTypes from 'prop-types'; import IceCard from '@icedesign/card'; import './OurTeam.scss'; @@ -28,20 +25,6 @@ export default class OurTeam extends Component { this.state = {}; } - // ICE: React Component 的生命周期 - - componentWillMount() { } - - componentDidMount() { } - - componentWillReceiveProps(nextProps, nextContext) { } - - shouldComponentUpdate(nextProps, nextState) { - return true; - } - - componentWillUnmount() { } - render() { const data = generatorData(4); return ( @@ -57,7 +40,7 @@ export default class OurTeam extends Component { {data.map((item, index) => { return (
    - +
    {item.name}

    {item.description}

    @@ -78,7 +61,12 @@ const styles = { intro: { textAlign: 'center' }, items: { display: 'flex', flexWrap: 'wrap' }, item: { display: 'flex', width: '50%', padding: '0 40px', margin: '40px 0' }, - baseInfo: { display: 'flex', flexDirection: 'column', justifyContent: 'center', paddingLeft: '25px' }, + baseInfo: { + display: 'flex', + flexDirection: 'column', + justifyContent: 'center', + paddingLeft: '25px', + }, name: { fontWeight: 'bold', margin: '0 0 10px', diff --git a/blocks/PriceCard/src/PriceCard.jsx b/blocks/PriceCard/src/PriceCard.jsx index 391c7a24fb..fd9ed56b1d 100644 --- a/blocks/PriceCard/src/PriceCard.jsx +++ b/blocks/PriceCard/src/PriceCard.jsx @@ -1,8 +1,4 @@ - - import React, { Component } from 'react'; -import PropTypes from 'prop-types'; -import IceCard from '@icedesign/card'; import './PriceCard.scss'; const data = [ @@ -29,8 +25,6 @@ const data = [ export default class PriceCard extends Component { static displayName = 'PriceCard'; - static propTypes = {}; - static defaultProps = {}; constructor(props) { @@ -38,20 +32,6 @@ export default class PriceCard extends Component { this.state = {}; } - // ICE: React Component 的生命周期 - - componentWillMount() { } - - componentDidMount() { } - - componentWillReceiveProps(nextProps, nextContext) { } - - shouldComponentUpdate(nextProps, nextState) { - return true; - } - - componentWillUnmount() { } - render() { return (
    @@ -64,7 +44,7 @@ export default class PriceCard extends Component {

    {item.title}

    @@ -88,4 +68,66 @@ export default class PriceCard extends Component { } } -const styles = { "container": { "background": "url(https://img.alicdn.com/tfs/TB1JGoDi3vD8KJjy0FlXXagBFXa-5040-2811.png)", "backgroundSize": "cover" }, "items": { "display": "flex", "flexWrap": "wrap", "padding": "120px 0", "width": "1080px", "margin": "0 auto" }, "item": { "width": "28%", "marginRight": "8%", "background": "#FAFAFA", "borderRadius": "6px", "paddingBottom": "50px" }, "rowLastItem": { "marginRight": 0 }, "head": { "padding": "30px 0", "textAlign": "center", "borderRadius": "6px 6px 0 0" }, "title": { "margin": "0 0 5px", "fontWeight": "bold", "fontSize": "20px" }, "price": { "margin": "0", "fontWeight": "bold", "fontSize": "22px" }, "info": { "display": "flex", "flexDirection": "column", "alignItems": "center" }, "description": { "margin": "20px auto", "lineHeight": "22px", "textAlign": "center", "width": "60%", "color": "#999" }, "buyBtn": { "display": "flex", "justifyContent": "center", "marginTop": "20px" }, "link": { "padding": "4px 15px", "background": "#3080FE", "borderRadius": "12px", "color": "#fff" }, "priceCard": {} } +const styles = { + container: { + background: + 'url(https://img.alicdn.com/tfs/TB1JGoDi3vD8KJjy0FlXXagBFXa-5040-2811.png)', + backgroundSize: 'cover', + }, + items: { + display: 'flex', + flexWrap: 'wrap', + padding: '120px 0', + width: '1080px', + margin: '0 auto', + }, + item: { + width: '28%', + marginRight: '8%', + background: '#FAFAFA', + borderRadius: '6px', + paddingBottom: '50px', + }, + rowLastItem: { + marginRight: 0, + }, + head: { + padding: '30px 0', + textAlign: 'center', + borderRadius: '6px 6px 0 0', + }, + title: { + margin: '0 0 5px', + fontWeight: 'bold', + fontSize: '20px', + }, + price: { + margin: '0', + fontWeight: 'bold', + fontSize: '22px', + }, + info: { + display: 'flex', + flexDirection: 'column', + alignItems: 'center', + }, + description: { + margin: '20px auto', + lineHeight: '22px', + textAlign: 'center', + width: '60%', + color: '#999', + }, + buyBtn: { + display: 'flex', + justifyContent: 'center', + marginTop: '20px', + }, + link: { + padding: '4px 15px', + background: '#3080FE', + borderRadius: '12px', + color: '#fff', + }, + priceCard: {}, +}; diff --git a/blocks/PriceInfo/src/PriceInfo.jsx b/blocks/PriceInfo/src/PriceInfo.jsx index 0cf0a956c7..e88dee0a99 100644 --- a/blocks/PriceInfo/src/PriceInfo.jsx +++ b/blocks/PriceInfo/src/PriceInfo.jsx @@ -1,8 +1,4 @@ - - import React, { Component } from 'react'; -import PropTypes from 'prop-types'; -import IceCard from '@icedesign/card'; import './PriceInfo.scss'; const data = [ @@ -44,20 +40,6 @@ export default class PriceInfo extends Component { this.state = {}; } - // ICE: React Component 的生命周期 - - componentWillMount() { } - - componentDidMount() { } - - componentWillReceiveProps(nextProps, nextContext) { } - - shouldComponentUpdate(nextProps, nextState) { - return true; - } - - componentWillUnmount() { } - render() { return (
    @@ -69,14 +51,13 @@ export default class PriceInfo extends Component { key={index} style={{ ...styles.item, ...rowLastItem }} className="item" - style={styles.item} >

    {item.title}

    ¥{item.price}

    - +
    {item.type}

    {item.description}

    @@ -94,4 +75,52 @@ export default class PriceInfo extends Component { } } -const styles = { items: { display: 'flex', flexWrap: 'wrap', padding: '80px 0', width: '1080px', margin: '0 auto' }, item: { width: '28%', marginRight: '8%', background: '#FAFAFA', borderRadius: '6px', paddingBottom: '50px' }, rowLastItem: { marginRight: 0 }, head: { padding: '30px 0', background: '#3080FE', textAlign: 'center', color: '#fff', borderRadius: '6px 6px 0 0' }, title: { margin: '0 0 5px', fontWeight: 'bold', fontSize: '20px' }, price: { margin: '0', fontWeight: 'bold', fontSize: '18px' }, info: { display: 'flex', flexDirection: 'column', alignItems: 'center', marginTop: '40px' }, image: { width: '52px', height: '52px' }, type: { margin: 0, fontSize: '15px', fontWeight: 'bold', marginTop: '10px' }, description: { margin: '20px 0', lineHeight: '22px', textAlign: 'center', width: '60%', color: '#999' }, buyBtn: { display: 'flex', justifyContent: 'center', marginTop: '20px' }, link: { padding: '4px 15px', background: '#3080FE', borderRadius: '12px', color: '#fff' }, priceInfo: {} }; +const styles = { + items: { + display: 'flex', + flexWrap: 'wrap', + padding: '80px 0', + width: '1080px', + margin: '0 auto', + }, + item: { + width: '28%', + marginRight: '8%', + background: '#FAFAFA', + borderRadius: '6px', + paddingBottom: '50px', + }, + rowLastItem: { marginRight: 0 }, + head: { + padding: '30px 0', + background: '#3080FE', + textAlign: 'center', + color: '#fff', + borderRadius: '6px 6px 0 0', + }, + title: { margin: '0 0 5px', fontWeight: 'bold', fontSize: '20px' }, + price: { margin: '0', fontWeight: 'bold', fontSize: '18px' }, + info: { + display: 'flex', + flexDirection: 'column', + alignItems: 'center', + marginTop: '40px', + }, + image: { width: '52px', height: '52px' }, + type: { margin: 0, fontSize: '15px', fontWeight: 'bold', marginTop: '10px' }, + description: { + margin: '20px 0', + lineHeight: '22px', + textAlign: 'center', + width: '60%', + color: '#999', + }, + buyBtn: { display: 'flex', justifyContent: 'center', marginTop: '20px' }, + link: { + padding: '4px 15px', + background: '#3080FE', + borderRadius: '12px', + color: '#fff', + }, + priceInfo: {}, +}; diff --git a/blocks/ProductInfo/src/ProductInfo.jsx b/blocks/ProductInfo/src/ProductInfo.jsx index c5d5528834..7e8f4e7b3d 100644 --- a/blocks/ProductInfo/src/ProductInfo.jsx +++ b/blocks/ProductInfo/src/ProductInfo.jsx @@ -1,7 +1,4 @@ - - import React, { Component } from 'react'; -import PropTypes from 'prop-types'; import IceCard from '@icedesign/card'; import './ProductInfo.scss'; @@ -41,10 +38,7 @@ const dataSource = [ export default class ProductInfo extends Component { static displayName = 'ProductInfo'; - static propTypes = { - style: PropTypes.object, - className: PropTypes.string, - }; + static propTypes = {}; static defaultProps = {}; @@ -53,20 +47,6 @@ export default class ProductInfo extends Component { this.state = {}; } - // ICE: React Component 的生命周期 - - componentWillMount() { } - - componentDidMount() { } - - componentWillReceiveProps(nextProps, nextContext) { } - - shouldComponentUpdate(nextProps, nextState) { - return true; - } - - componentWillUnmount() { } - render() { return (
    @@ -75,7 +55,7 @@ export default class ProductInfo extends Component { {dataSource.map((item, index) => { return (
    - +

    {item.title}

    {item.desc}

    @@ -88,4 +68,26 @@ export default class ProductInfo extends Component { } } -const styles = { items: { display: 'flex', flexWrap: 'wrap' }, item: { width: '33.3333%', textAlign: 'center', padding: '10px 22px', marginBottom: '20px' }, pic: { width: 100, height: 100 }, title: { fontWeight: 'bold' }, desc: { lineHeight: '22px' }, productInfo: {} }; +const styles = { + items: { + display: 'flex', + flexWrap: 'wrap', + }, + item: { + width: '33.3333%', + textAlign: 'center', + padding: '10px 22px', + marginBottom: '20px', + }, + pic: { + width: 100, + height: 100, + }, + title: { + fontWeight: 'bold', + }, + desc: { + lineHeight: '22px', + }, + productInfo: {}, +}; diff --git a/blocks/ProgressTable/src/ProgressTable.jsx b/blocks/ProgressTable/src/ProgressTable.jsx index 6a7cc445c2..2373411d61 100644 --- a/blocks/ProgressTable/src/ProgressTable.jsx +++ b/blocks/ProgressTable/src/ProgressTable.jsx @@ -1,3 +1,4 @@ +/* eslint no-mixed-operators:0 */ import React, { Component } from 'react'; import { Table, Progress, Pagination } from '@icedesign/base'; import IceCard from '@icedesign/card'; diff --git a/blocks/RegisterForm/src/RegisterForm.jsx b/blocks/RegisterForm/src/RegisterForm.jsx index f19f164bcc..16919a2d64 100644 --- a/blocks/RegisterForm/src/RegisterForm.jsx +++ b/blocks/RegisterForm/src/RegisterForm.jsx @@ -1,7 +1,4 @@ -'use strict'; - import React, { Component } from 'react'; -import PropTypes from 'prop-types'; import { Form, Input, Button, Checkbox, Field } from '@icedesign/base'; import IceIcon from '@icedesign/icon'; import './RegisterForm.scss'; @@ -11,13 +8,9 @@ const FormItem = Form.Item; export default class RegisterForm extends Component { static displayName = 'RegisterForm'; - static propTypes = { - style: PropTypes.object, - className: PropTypes.string, - }; + static propTypes = {}; - static defaultProps = { - }; + static defaultProps = {}; constructor(props) { super(props); @@ -59,58 +52,79 @@ export default class RegisterForm extends Component {

    注册

    -
    + - - - - - + - 同意注册条款 + 同意注册条款 - +
    登 录 diff --git a/blocks/RightContentDisplay/src/RightContentDisplay.jsx b/blocks/RightContentDisplay/src/RightContentDisplay.jsx index 39e74f07d5..3f0ef71d7d 100644 --- a/blocks/RightContentDisplay/src/RightContentDisplay.jsx +++ b/blocks/RightContentDisplay/src/RightContentDisplay.jsx @@ -11,7 +11,7 @@ export default class RightContentDisplay extends Component { render() { return ( -
    +
    { + onChange: (ids) => { console.log('ids', ids); this.setState({ selectedRowKeys: ids, @@ -90,11 +88,10 @@ export default class SelectableTable extends Component { renderOperator = (value, index, record) => { return (
    - 编辑 + 编辑 删除 @@ -105,9 +102,7 @@ export default class SelectableTable extends Component { render() { return (
    - +
    - +
    -
    +
    @@ -176,4 +169,24 @@ export default class SelectableTable extends Component { } } -const styles = { selectableTable: {}, batchBtn: { marginRight: '10px' }, todo0: { marginLeft: 10 }, todo1: { marginBottom: '20px', minHeight: 'auto', display: 'flex', justifyContent: 'space-between' }, todo2: { width: '1026px' }, todo3: { textAlign: 'right', paddingTop: '26px' } }; +const styles = { + selectableTable: { + width: '960px', + }, + batchBtn: { + marginRight: '10px', + }, + iceCard: { + marginBottom: '20px', + minHeight: 'auto', + display: 'flex', + justifyContent: 'space-between', + }, + removeBtn: { + marginLeft: 10, + }, + pagination: { + textAlign: 'right', + paddingTop: '26px', + }, +}; diff --git a/blocks/SignupForm/src/SignupForm.jsx b/blocks/SignupForm/src/SignupForm.jsx index dab844e181..6da10270a0 100644 --- a/blocks/SignupForm/src/SignupForm.jsx +++ b/blocks/SignupForm/src/SignupForm.jsx @@ -1,7 +1,4 @@ -'use strict'; - import React, { Component } from 'react'; -import PropTypes from 'prop-types'; import { Form, Input, Button, Checkbox, Field } from '@icedesign/base'; import IceIcon from '@icedesign/icon'; import './SignupForm.scss'; @@ -11,28 +8,22 @@ const FormItem = Form.Item; export default class SignupForm extends Component { static displayName = 'SignupForm'; - static propTypes = { - style: PropTypes.object, - className: PropTypes.string, - }; - - static defaultProps = { - }; + static defaultProps = {}; constructor(props) { super(props); this.field = new Field(this); } - checkPassword(rule, value, callback) { + checkPassword = (rule, value, callback) => { const { validate } = this.field; if (value) { validate(['rePasswd']); } callback(); - } + }; - handleSubmit(e) { + handleSubmit = (e) => { e.preventDefault(); this.field.validate((errors, values) => { if (errors) { @@ -41,7 +32,7 @@ export default class SignupForm extends Component { } console.log(values); }); - } + }; render() { const { init } = this.field; @@ -50,33 +41,44 @@ export default class SignupForm extends Component {

    登录

    - + - - - 记住账号 + 记住账号 - +
    立即注册 @@ -90,4 +92,13 @@ export default class SignupForm extends Component { } } -const styles = {"signupForm":{"display":"flex","justifyContent":"center"},"form":{"display":"flex","justifyContent":"center"},"tips":{"textAlign":"center","a {Color":"#999","textDecoration":"none","fontSize":"13px"}} \ No newline at end of file +const styles = { + signupForm: { display: 'flex', justifyContent: 'center' }, + form: { display: 'flex', justifyContent: 'center' }, + tips: { + textAlign: 'center', + 'a {Color': '#999', + textDecoration: 'none', + fontSize: '13px', + }, +}; diff --git a/blocks/SimpleFormDialog/src/SimpleFormDialog.jsx b/blocks/SimpleFormDialog/src/SimpleFormDialog.jsx index dc0e95c412..7df528e142 100644 --- a/blocks/SimpleFormDialog/src/SimpleFormDialog.jsx +++ b/blocks/SimpleFormDialog/src/SimpleFormDialog.jsx @@ -41,7 +41,7 @@ export default class SimpleFormDialog extends Component { }; onOk = () => { - this.refForm.validateAll((error, value) => { + this.refForm.validateAll((error) => { if (error) { // show validate error return; @@ -75,7 +75,9 @@ export default class SimpleFormDialog extends Component { visible={this.state.visible} > { this.refForm = ref; }} + ref={(ref) => { + this.refForm = ref; + }} value={this.state.value} onChange={this.onFormChange} > @@ -139,16 +141,18 @@ export default class SimpleFormDialog extends Component {
    - + ); } } -const styles = { +const styles = { simpleFormDialog: { width: '640px' }, dialogContent: {}, - formRow: { marginTop: 20 }, - input: { width: '100%' }, - formLabel: { lineHeight: '26px' }, + formRow: { marginTop: 20 }, + input: { width: '100%' }, + formLabel: { lineHeight: '26px' }, }; diff --git a/blocks/SimpleTestimonial/src/SimpleTestimonial.jsx b/blocks/SimpleTestimonial/src/SimpleTestimonial.jsx index d3f3a1d463..aed30c85c6 100644 --- a/blocks/SimpleTestimonial/src/SimpleTestimonial.jsx +++ b/blocks/SimpleTestimonial/src/SimpleTestimonial.jsx @@ -1,7 +1,4 @@ - - import React, { Component } from 'react'; -import PropTypes from 'prop-types'; import IceCard from '@icedesign/card'; import './SimpleTestimonial.scss'; @@ -17,20 +14,6 @@ export default class SimpleTestimonial extends Component { this.state = {}; } - // ICE: React Component 的生命周期 - - componentWillMount() { } - - componentDidMount() { } - - componentWillReceiveProps(nextProps, nextContext) { } - - shouldComponentUpdate(nextProps, nextState) { - return true; - } - - componentWillUnmount() { } - render() { return (
    @@ -48,6 +31,7 @@ export default class SimpleTestimonial extends Component { 图像
    人物名

    就职公司/职务

    @@ -59,4 +43,18 @@ export default class SimpleTestimonial extends Component { } } -const styles = { item: { width: '80%', margin: '0 auto', textAlign: 'center' }, description: { lineHeight: '28px' }, infoBox: { display: 'flex', textAlign: 'center', justifyContent: 'center', alignItems: 'center', marginTop: '40px' }, avatar: { width: '64px', height: '64px' }, name: { margin: '0 15px', fontSize: '15px', fontWeight: 'bold' }, company: { margin: 0 }, simpleTestimonial: {} }; +const styles = { + item: { width: '80%', margin: '0 auto', textAlign: 'center' }, + description: { lineHeight: '28px' }, + infoBox: { + display: 'flex', + textAlign: 'center', + justifyContent: 'center', + alignItems: 'center', + marginTop: '40px', + }, + avatar: { width: '64px', height: '64px' }, + name: { margin: '0 15px', fontSize: '15px', fontWeight: 'bold' }, + company: { margin: 0 }, + simpleTestimonial: {}, +}; diff --git a/blocks/Subscribe/src/Subscribe.jsx b/blocks/Subscribe/src/Subscribe.jsx index f6f7e20473..fb7cb49a9d 100644 --- a/blocks/Subscribe/src/Subscribe.jsx +++ b/blocks/Subscribe/src/Subscribe.jsx @@ -4,7 +4,7 @@ import { Input, Button } from '@icedesign/base'; import { FormBinderWrapper, FormBinder, - FormError + FormError, } from '@icedesign/form-binder'; import './Subscribe.scss'; @@ -20,14 +20,14 @@ export default class Subscribe extends Component { super(props); this.state = { formValue: { - email: '' - } + email: '', + }, }; } - formChange = newValue => { + formChange = (newValue) => { this.setState({ - formValue: newValue + formValue: newValue, }); }; @@ -43,7 +43,7 @@ export default class Subscribe extends Component {

    订阅

    { + ref={(form) => { this.form = form; }} value={this.state.formValue} @@ -76,27 +76,27 @@ export default class Subscribe extends Component { const styles = { container: { - padding: '48px 0' + padding: '48px 0', }, title: { fontSize: '26px', color: '#000', textAlign: 'center', - margin: '0' + margin: '0', }, input: { width: '400px', - marginRight: '15px' + marginRight: '15px', }, center: { display: 'flex', flexDirection: 'row', justifyContent: 'center', - marginTop: '20px' + marginTop: '20px', }, error: { paddingLeft: '240px', - marginTop: '5px' + marginTop: '5px', }, - subscribe: {} + subscribe: {}, }; diff --git a/blocks/SuccessDetail/src/SuccessDetail.jsx b/blocks/SuccessDetail/src/SuccessDetail.jsx index 505565a804..6b0e552073 100644 --- a/blocks/SuccessDetail/src/SuccessDetail.jsx +++ b/blocks/SuccessDetail/src/SuccessDetail.jsx @@ -1,5 +1,3 @@ -'use strict'; - import React, { Component } from 'react'; import IceCard from '@icedesign/card'; import { Button, Step } from '@icedesign/base'; @@ -17,7 +15,7 @@ export default class SuccessDetail extends Component { this.state = { value: ['填写信息', '申请审核', '开通账号', '完成'], // 步骤条信息 current: 1, // 当前步骤 - type: 'dot' // 步骤的类型,可选值: 'circle', 'arrow', 'dot' + type: 'dot', // 步骤的类型,可选值: 'circle', 'arrow', 'dot' }; } @@ -30,6 +28,7 @@ export default class SuccessDetail extends Component {

    提交成功 @@ -60,33 +59,30 @@ export default class SuccessDetail extends Component { const styles = { container: { - padding: '80px 40px' + padding: '80px 40px', }, btn: { - marginRight: '6px' + marginRight: '6px', }, successDetail: { - textAlign: 'center' + textAlign: 'center', }, successDetailHead: { - position: 'relative' + position: 'relative', }, img: { Width: '40px', - height: '40px' + height: '40px', }, title: { - margin: '0' + margin: '0', }, summary: { marginBottom: '40px', fontSize: '14px', - color: '#666' - }, - summary: { - marginBottom: '40px' + color: '#666', }, nextStep: { - margin: '80px 0' - } + margin: '80px 0', + }, }; diff --git a/blocks/SuccessDialog/src/SuccessDialog.jsx b/blocks/SuccessDialog/src/SuccessDialog.jsx index 1880be90fc..6457662a6e 100644 --- a/blocks/SuccessDialog/src/SuccessDialog.jsx +++ b/blocks/SuccessDialog/src/SuccessDialog.jsx @@ -1,7 +1,4 @@ -'use strict'; - import React, { Component } from 'react'; -import PropTypes from 'prop-types'; import { Dialog, Button } from '@icedesign/base'; import IceCard from '@icedesign/card'; import './SuccessDialog.scss'; @@ -46,30 +43,32 @@ export default class SuccessDialog extends Component { style={styles.icon} src="http://img.alicdn.com/tfs/TB1GOHLXyqAXuNjy1XdXXaYcVXa-52-52.png" srcSet="//img.alicdn.com/tfs/TB1h_K_b4rI8KJjy0FpXXb5hVXa-104-104.png" + alt="提示图标" />

    我们将在5-7个工作日内完成审核,请耐心等待

    - + ); } } const styles = { - dialog: { width: "640px" }, + dialog: { width: '640px' }, dialogContent: { - height: "200px", - display: "flex", - flexDirection: "column", - alignItems: "center" + height: '200px', + display: 'flex', + flexDirection: 'column', + alignItems: 'center', }, icon: { - width: "52px", - height: "52px", - marginTop: "46px", - marginBottom: "10px" + width: '52px', + height: '52px', + marginTop: '46px', + marginBottom: '10px', }, - text: { fontSize: "16px" }, + text: { fontSize: '16px' }, }; - diff --git a/blocks/SystemNoticeList/src/SystemNoticeList.jsx b/blocks/SystemNoticeList/src/SystemNoticeList.jsx index 739cdf473a..e412607a75 100644 --- a/blocks/SystemNoticeList/src/SystemNoticeList.jsx +++ b/blocks/SystemNoticeList/src/SystemNoticeList.jsx @@ -1,4 +1,4 @@ -'use strict'; + import React, { Component } from 'react'; import IceCard from '@icedesign/card'; @@ -10,38 +10,38 @@ const dataSource = [ title: '关于淘宝网存储设备商品发布规范的公告', tag: 'up', href: '', - time: '2017-11-29' + time: '2017-11-29', }, { title: '加强淘宝网电动四轮车类目准入的公告', tag: 'new', href: '', - time: '2017-10-29' + time: '2017-10-29', }, { title: '淘宝网VR头盔商品发布规范的公告', tag: 'hot', href: '', - time: '2017-03-11' + time: '2017-03-11', }, { title: '加强淘宝网农药类目准入的公告', tag: '', href: '', - time: '2017-02-16' + time: '2017-02-16', }, { title: '淘宝网2017年春节发货时间及交易超时调整公告', tag: '', href: '', - time: '2017-11-23' - } + time: '2017-11-23', + }, ]; const dict = { up: '置顶', hot: '新', - new: '热' + new: '热', }; export default class SystemNoticeList extends Component { @@ -50,11 +50,11 @@ export default class SystemNoticeList extends Component { constructor(props) { super(props); this.state = { - current: 2 + current: 2, }; } - handleChange = current => { + handleChange = (current) => { console.log('current:', current); this.setState({ current }); }; @@ -99,34 +99,34 @@ export default class SystemNoticeList extends Component { const styles = { title: { margin: '0', - fontSize: '16px' + fontSize: '16px', }, noticeList: { margin: 0, - padding: 0 + padding: 0, }, noticeItem: { position: 'relative', padding: '12px 0', listStyle: 'none', - borderBottom: '1px solid #F4F4F4' + borderBottom: '1px solid #F4F4F4', }, noticeTitle: { fontSize: '14px', color: '#333', - textDecoration: 'none' + textDecoration: 'none', }, noticeTag: { fontSize: '12px', padding: '2px 6px', borderRadius: '8px', - marginLeft: '5px' + marginLeft: '5px', }, noticeTime: { position: 'absolute', right: '0', top: '15px', fontSize: '12px', - color: '#999' - } + color: '#999', + }, }; diff --git a/blocks/TabChart/src/BasicLine.jsx b/blocks/TabChart/src/BasicLine.jsx index 590057ede8..c14d9df6f0 100644 --- a/blocks/TabChart/src/BasicLine.jsx +++ b/blocks/TabChart/src/BasicLine.jsx @@ -1,6 +1,5 @@ import React, { Component } from 'react'; import { Chart, Axis, Geom, Tooltip } from 'bizcharts'; -import IceCard from '@icedesign/card'; export default class BasicLine extends Component { static displayName = 'BasicLine'; @@ -26,12 +25,12 @@ export default class BasicLine extends Component { { year: '2016', value: 60 }, { year: '2017', value: 70 }, { year: '2018', value: 90 }, - { year: '2019', value: 100 } + { year: '2019', value: 100 }, ]; const cols = { value: { min: 0 }, - year: { range: [0, 1] } + year: { range: [0, 1] }, }; return ( @@ -51,7 +50,7 @@ export default class BasicLine extends Component { type="point" position="year*value" size={4} - shape={'circle'} + shape="circle" style={styles.point} /> @@ -63,6 +62,6 @@ export default class BasicLine extends Component { const styles = { point: { stroke: '#fff', - lineWidth: 1 - } + lineWidth: 1, + }, }; diff --git a/blocks/TabChart/src/SeriesLine.jsx b/blocks/TabChart/src/SeriesLine.jsx index feeb3d461e..701b389b49 100644 --- a/blocks/TabChart/src/SeriesLine.jsx +++ b/blocks/TabChart/src/SeriesLine.jsx @@ -1,7 +1,6 @@ import React, { Component } from 'react'; import { Chart, Axis, Geom, Tooltip } from 'bizcharts'; import { DataSet } from '@antv/data-set'; -import IceCard from '@icedesign/card'; export default class SeriesLine extends Component { static displayName = 'SeriesLine'; @@ -30,7 +29,7 @@ export default class SeriesLine extends Component { { month: 'Sep', Tokyo: 23.3, London: 85 }, { month: 'Oct', Tokyo: 18.3, London: 90 }, { month: 'Nov', Tokyo: 13.9, London: 80 }, - { month: 'Dec', Tokyo: 9.6, London: 70 } + { month: 'Dec', Tokyo: 9.6, London: 70 }, ]; // DataSet https://github.com/alibaba/BizCharts/blob/master/doc/tutorial/dataset.md#dataset @@ -40,14 +39,14 @@ export default class SeriesLine extends Component { type: 'fold', fields: ['Tokyo', 'London'], key: 'city', - value: 'temperature' + value: 'temperature', }); // 定义度量 const cols = { month: { - range: [0, 1] - } + range: [0, 1], + }, }; return ( @@ -86,6 +85,6 @@ export default class SeriesLine extends Component { const styles = { point: { stroke: '#fff', - lineWidth: 1 - } + lineWidth: 1, + }, }; diff --git a/blocks/TabChart/src/TabChart.jsx b/blocks/TabChart/src/TabChart.jsx index a1bbfd0cc2..e4840b560a 100644 --- a/blocks/TabChart/src/TabChart.jsx +++ b/blocks/TabChart/src/TabChart.jsx @@ -1,7 +1,4 @@ -'use strict'; - import React, { Component } from 'react'; -import PropTypes from 'prop-types'; import IceCard from '@icedesign/card'; import { Tab } from '@icedesign/base'; import SeriesLine from './SeriesLine'; @@ -22,7 +19,7 @@ export default class TabChart extends Component { this.state = {}; } - handleChange = key => { + handleChange = (key) => { console.log('change', key); }; @@ -47,6 +44,6 @@ export default class TabChart extends Component { const styles = { card: { marginBottom: '0', - padding: '0 20px' - } + padding: '0 20px', + }, }; diff --git a/blocks/TermsInfo/src/TermsInfo.jsx b/blocks/TermsInfo/src/TermsInfo.jsx index 7c4a2ee6e3..b8b6ad6e5c 100644 --- a/blocks/TermsInfo/src/TermsInfo.jsx +++ b/blocks/TermsInfo/src/TermsInfo.jsx @@ -1,4 +1,4 @@ -'use strict'; + import React, { Component } from 'react'; import IceCard from '@icedesign/card'; @@ -64,24 +64,24 @@ export default class TermsInfo extends Component { const styles = { termsInfo: { padding: '30px', - backgroundColor: '#fff' + backgroundColor: '#fff', }, desc: { fontSize: '13px', - lineHeight: '28px' + lineHeight: '28px', }, title: { textAlign: 'center', margin: '0', paddingBottom: '20px', fontSize: '20px', - borderBottom: '1px solid #dedede' + borderBottom: '1px solid #dedede', }, content: { color: '#666', fontSize: '16px', padding: '20px 0', - borderBottom: '1px solid #dedede' + borderBottom: '1px solid #dedede', }, - btn: { textAlign: 'center' } + btn: { textAlign: 'center' }, }; diff --git a/blocks/TextCard/src/TextCard.jsx b/blocks/TextCard/src/TextCard.jsx index c2bbd259a8..177a3681e2 100644 --- a/blocks/TextCard/src/TextCard.jsx +++ b/blocks/TextCard/src/TextCard.jsx @@ -1,5 +1,3 @@ -'use strict'; - import React, { Component } from 'react'; import IceCard from '@icedesign/card'; import './TextCard.scss'; @@ -12,20 +10,6 @@ export default class TextCard extends Component { this.state = {}; } - // ICE: React Component 的生命周期 - - componentWillMount() { } - - componentDidMount() { } - - componentWillReceiveProps(nextProps, nextContext) { } - - shouldComponentUpdate(nextProps, nextState) { - return true; - } - - componentWillUnmount() { } - render() { return (
    @@ -69,8 +53,13 @@ export default class TextCard extends Component { } const styles = { - textCard: { color: '#333' }, - textCardList: { display: 'flex', flexDirection: 'row' }, + textCard: { + color: '#333', + }, + textCardList: { + display: 'flex', + flexDirection: 'row', + }, textCardItem: { flex: '1', borderRight: '1px solid #F0F0F0', @@ -79,9 +68,17 @@ const styles = { display: 'flex', flexDirection: 'column', justifyContent: 'center', - alignItems: 'center' + alignItems: 'center', + }, + textCardSubtitle: { + fontSize: '12px', + marginBottom: '10px', + }, + textCardTitle: { + fontSize: '16px', + }, + textCardNumber: { + fontSize: '24px', + fontWeight: 'bold', }, - textCardSubtitle: { fontSize: '12px', marginBottom: '10px' }, - textCardTitle: { fontSize: '16px' }, - textCardNumber: { fontSize: '24px', fontWeight: 'bold' } }; diff --git a/blocks/TimeFilterTable/src/TimeFilterTable.jsx b/blocks/TimeFilterTable/src/TimeFilterTable.jsx index 7f87bee766..9f1f05e33c 100644 --- a/blocks/TimeFilterTable/src/TimeFilterTable.jsx +++ b/blocks/TimeFilterTable/src/TimeFilterTable.jsx @@ -1,12 +1,9 @@ - - +/* eslint no-underscore-dangle:0 */ import React, { Component } from 'react'; -import PropTypes from 'prop-types'; import IceCard from '@icedesign/card'; -import './TimeFilterTable.scss'; -import { Table, Pagination, Tab, Radio, Search } from '@icedesign/base'; +import { Table, Pagination, Radio, Search } from '@icedesign/base'; import DataBinder from '@icedesign/data-binder'; -import IceLabel from '@icedesign/label'; +import './TimeFilterTable.scss'; const { Group: RadioGroup } = Radio; @@ -41,23 +38,11 @@ export default class TimeFilterTable extends Component { }; } - // ICE: React Component 的生命周期 - - componentWillMount() { } - componentDidMount() { this.queryCache.page = 1; this.fetchData(); } - componentWillReceiveProps(nextProps, nextContext) { } - - shouldComponentUpdate(nextProps, nextState) { - return true; - } - - componentWillUnmount() { } - fetchData = () => { this.props.updateBindingData('tableData', { params: this.queryCache, @@ -82,7 +67,7 @@ export default class TimeFilterTable extends Component { this.fetchData(); }; - renderOrder = (value, index, record) => { + renderOrder = (value, index) => { return {index + 1}; }; @@ -115,11 +100,7 @@ export default class TimeFilterTable extends Component {
    >>>>>> 6f8bbd33e4db62185bbe64c9db0ee6effd3c292f type="normal" inputWidth={150} placeholder="搜索" @@ -166,7 +147,7 @@ const styles = { paddingBottom: '10px', }, tableCard: { - padding: '10px' + padding: '10px', }, timeFilterTable: {}, todo0: { marginLeft: '10px' }, diff --git a/blocks/TreeCardList/src/TreeCardList.jsx b/blocks/TreeCardList/src/TreeCardList.jsx index 970f2db8e7..00394794bb 100644 --- a/blocks/TreeCardList/src/TreeCardList.jsx +++ b/blocks/TreeCardList/src/TreeCardList.jsx @@ -12,7 +12,7 @@ const dataSource = [ { tab: '下单页', url: '##', subTitle: '10W' }, { tab: '猜你喜欢', url: '##', subTitle: '40W' }, { tab: '欢迎页面', url: '##', subTitle: '10W' }, - { tab: '项目管理页', url: '##', subTitle: '20W' } + { tab: '项目管理页', url: '##', subTitle: '20W' }, ]; export default class TreeCardList extends Component { @@ -28,7 +28,7 @@ export default class TreeCardList extends Component { } // ICE: React Component 的生命周期 - + componentWillMount() {} componentDidMount() {} @@ -74,7 +74,7 @@ const styles = { display: 'flex', flexDirection: 'row', justifyContent: 'space-between', - marginBottom: '10px' + marginBottom: '10px', }, treeCardItem: { display: 'flex', @@ -87,7 +87,7 @@ const styles = { color: '#000', cursor: 'pointer', padding: '0 10px', - textDecoration: 'none' + textDecoration: 'none', }, - treeCardList: { width: '240px' } + treeCardList: { width: '240px' }, }; diff --git a/blocks/UserInfoCard/src/UserInfoCard.jsx b/blocks/UserInfoCard/src/UserInfoCard.jsx index 229edba1b6..8ccf8d5d03 100644 --- a/blocks/UserInfoCard/src/UserInfoCard.jsx +++ b/blocks/UserInfoCard/src/UserInfoCard.jsx @@ -1,7 +1,6 @@ import React, { Component } from 'react'; -import PropTypes from 'prop-types'; import IceCard from '@icedesign/card'; -import { Button, Balloon, Icon } from '@icedesign/base'; +import { Balloon, Icon } from '@icedesign/base'; import './UserInfoCard.scss'; export default class UserInfoCard extends Component { @@ -29,6 +28,7 @@ export default class UserInfoCard extends Component { 头像
    张三
    @@ -73,48 +73,48 @@ export default class UserInfoCard extends Component { const styles = { container: { padding: '20px 0', - textAlign: 'center' + textAlign: 'center', }, content: { display: 'flex', - flexDirection: 'column' + flexDirection: 'column', }, head: { display: 'flex', paddingBottom: '10px', - borderBottom: '1px dotted #eee' + borderBottom: '1px dotted #eee', }, avatar: { width: '60px', height: '60px', borderRadius: '50px', - border: '1px solid #eee' + border: '1px solid #eee', }, name: { padding: '0 10px', - margin: '0' + margin: '0', }, deptName: { padding: '0 10px', margin: '0', - fontSize: '12px' + fontSize: '12px', }, body: { display: 'flex', flexWrap: 'wrap', - paddingTop: '10px' + paddingTop: '10px', }, profileItem: { width: '50%', - lineHeight: '26px' + lineHeight: '26px', }, itemIcon: { color: '#8a9099', - marginRight: '5px' + marginRight: '5px', }, triggerText: { color: '#108ee9', borderBottom: '1px dashed #108ee9', - cursor: 'pointer' - } + cursor: 'pointer', + }, }; From 517182c7ef1217afc6c27b807177733d2c338b62 Mon Sep 17 00:00:00 2001 From: wssgcg1213 Date: Tue, 16 Jan 2018 22:12:47 +0800 Subject: [PATCH 0058/1028] Publish - @icedesign/application-progress-block@0.1.1 - @icedesign/area-stack-chart-block@0.1.1 - @icedesign/article-list-block@0.1.1 - @icedesign/basic-detail-info-block@0.1.1 - @icedesign/basic-exception-block@0.1.2 - @icedesign/basic-not-found-block@0.1.2 - @icedesign/basic-tab-block@0.1.2 - @icedesign/brand-display-block@0.1.2 - @icedesign/brand-show-case-block@0.1.2 - @icedesign/chart-area-block@0.1.2 - @icedesign/chart-bar-block@0.1.2 - @icedesign/chart-box-block@0.1.2 - @icedesign/chart-bubble-image-block@0.1.2 - @icedesign/chart-facet-block@0.1.2 - @icedesign/chart-funnel-block@0.1.2 - @icedesign/chart-gauge-block@0.1.2 - @icedesign/chart-heat-map-block@0.1.2 - @icedesign/chart-pie-block@0.1.2 - @icedesign/chart-point-block@0.1.2 - @icedesign/chart-radar-block@0.1.2 - @icedesign/chart-relation-block@0.1.2 - @icedesign/chart-stock-block@0.1.2 - @icedesign/chart-type-line-block@0.1.2 - @icedesign/collapse-card-block@0.1.2 - @icedesign/complex-dialog-block@0.1.3 - @icedesign/complex-filter-block@0.1.5 - @icedesign/complex-progress-table-block@0.1.2 - @icedesign/complex-tab-table-block@0.1.2 - @icedesign/composite-filter-block@0.1.2 - @icedesign/confirm-dialog-block@0.1.2 - @icedesign/data-display-block@0.1.2 - @icedesign/detail-table-block@0.1.2 - @icedesign/display-card-block@0.1.2 - @icedesign/download-card-block@0.1.2 - @icedesign/editable-table-block@0.1.2 - @icedesign/empty-content-block@0.1.3 - @icedesign/enhance-table-block@0.1.2 - @icedesign/entry-card-block@0.1.2 - @icedesign/failure-detail-block@0.1.2 - @icedesign/feature-display-block@0.1.2 - @icedesign/feed-list-block@0.1.2 - @icedesign/filter-list-block@0.1.2 - @icedesign/filter-table-block@0.1.2 - @icedesign/filter-with-search-block@0.1.2 - @icedesign/footer-block@0.1.2 - @icedesign/footer-info-block@0.1.2 - @icedesign/forget-password-form-block@0.1.3 - @icedesign/info-display-tab-block@0.1.2 - @icedesign/info-display-table-block@0.1.2 - @icedesign/join-us-block-block@0.1.2 - @icedesign/landing-intro-banner-block@0.1.3 - @icedesign/left-content-display-block@0.1.2 - @icedesign/lite-table-block@0.1.2 - @icedesign/message-list-block@0.1.3 - @icedesign/monaco-editor-block@0.1.2 - @icedesign/not-permission-block@0.1.2 - @icedesign/operation-table-block@0.1.2 - @icedesign/order-list-block@0.1.2 - @icedesign/our-team-block@0.1.2 - @icedesign/picture-text-list-block@0.1.2 - @icedesign/pie-doughnut-chart-block@0.1.2 - @icedesign/price-card-block@0.1.2 - @icedesign/price-info-block@0.1.2 - @icedesign/private-message-form-block@0.1.3 - @icedesign/product-info-block@0.1.2 - @icedesign/progress-table-block@0.1.2 - @icedesign/register-form-block@0.1.2 - @icedesign/right-content-display-block@0.1.2 - @icedesign/selectable-table-block@0.1.2 - @icedesign/signup-form-block@0.1.2 - @icedesign/simple-fluency-form-block@0.1.2 - @icedesign/simple-form-dialog-block@0.1.2 - @icedesign/simple-table-block@0.1.2 - @icedesign/simple-testimonial-block@0.1.2 - @icedesign/sort-card-list-block@0.1.2 - @icedesign/statistical-card-block@0.1.2 - @icedesign/subscribe-block@0.1.2 - @icedesign/success-detail-block@0.1.2 - @icedesign/success-dialog-block@0.1.3 - @icedesign/system-notice-list-block@0.1.2 - @icedesign/tab-article-block@0.1.2 - @icedesign/tab-chart-block@0.1.1 - @icedesign/tab-dialog-block@0.1.3 - @icedesign/tag-message-list-block@0.1.2 - @icedesign/team-display-block@0.1.2 - @icedesign/terms-info-block@0.1.2 - @icedesign/testimonial-block@0.1.3 - @icedesign/testimonial-card-block@0.1.2 - @icedesign/text-card-block@0.1.2 - @icedesign/text-search-list-block@0.1.2 - @icedesign/time-filter-table-block@0.1.2 - @icedesign/topic-card-block-block@0.1.2 - @icedesign/tree-card-list-block@0.1.3 - @icedesign/user-info-card-block@0.1.1 - @icedesign/fixed-header-footer-responsive-layout@0.1.6 - @icedesign/header-aside-footer-layout@0.1.6 - @icedesign/header-aside-footer-responsive-layout@0.1.6 - @icedesign/header-footer-layout@0.1.6 --- blocks/ApplicationProgress/package.json | 10 ++++++- blocks/AreaStackChart/package.json | 10 ++++++- blocks/ArticleList/package.json | 10 ++++++- blocks/BasicDetailInfo/package.json | 10 ++++++- blocks/BasicException/package.json | 10 ++++++- blocks/BasicNotFound/package.json | 10 ++++++- blocks/BasicTab/package.json | 10 ++++++- blocks/BrandDisplay/package.json | 10 ++++++- blocks/BrandShowCase/package.json | 10 ++++++- blocks/ChartArea/package.json | 10 ++++++- blocks/ChartBar/package.json | 10 ++++++- blocks/ChartBox/package.json | 10 ++++++- blocks/ChartBubbleImage/package.json | 10 ++++++- blocks/ChartFacet/package.json | 10 ++++++- blocks/ChartFunnel/package.json | 10 ++++++- blocks/ChartGauge/package.json | 10 ++++++- blocks/ChartHeatMap/package.json | 10 ++++++- blocks/ChartPie/package.json | 10 ++++++- blocks/ChartPoint/package.json | 10 ++++++- blocks/ChartRadar/package.json | 10 ++++++- blocks/ChartRelation/package.json | 10 ++++++- blocks/ChartStock/package.json | 10 ++++++- blocks/ChartTypeLine/package.json | 10 ++++++- blocks/CollapseCard/package.json | 10 ++++++- blocks/ComplexDialog/package.json | 10 ++++++- blocks/ComplexFilter/package.json | 10 ++++++- blocks/ComplexProgressTable/package.json | 10 ++++++- blocks/ComplexTabTable/package.json | 10 ++++++- blocks/CompositeFilter/package.json | 10 ++++++- blocks/ConfirmDialog/package.json | 10 ++++++- blocks/DataDisplay/package.json | 10 ++++++- blocks/DetailTable/package.json | 10 ++++++- blocks/DisplayCard/package.json | 10 ++++++- blocks/DownloadCard/package.json | 10 ++++++- blocks/EditableTable/package.json | 10 ++++++- blocks/EmptyContent/package.json | 10 ++++++- blocks/EnhanceTable/package.json | 10 ++++++- blocks/EntryCard/package.json | 10 ++++++- blocks/FailureDetail/package.json | 10 ++++++- blocks/FeatureDisplay/package.json | 10 ++++++- blocks/FeedList/package.json | 10 ++++++- blocks/FilterList/package.json | 10 ++++++- blocks/FilterTable/package.json | 10 ++++++- blocks/FilterWithSearch/package.json | 10 ++++++- blocks/Footer/package.json | 10 ++++++- blocks/FooterInfo/package.json | 10 ++++++- blocks/ForgetPasswordForm/package.json | 10 ++++++- blocks/InfoDisplayTab/package.json | 10 ++++++- blocks/InfoDisplayTable/package.json | 10 ++++++- blocks/JoinUs/package.json | 10 ++++++- blocks/LandingIntroBanner/package.json | 10 ++++++- blocks/LeftContentDisplay/package.json | 10 ++++++- blocks/LiteTable/package.json | 10 ++++++- blocks/MessageList/package.json | 10 ++++++- blocks/MonacoEditor/package.json | 10 ++++++- blocks/NotPermission/package.json | 10 ++++++- blocks/OperationTable/package.json | 10 ++++++- blocks/OrderList/package.json | 10 ++++++- blocks/OurTeam/package.json | 10 ++++++- blocks/PictureTextList/package.json | 10 ++++++- blocks/PieDoughnutChart/package.json | 10 ++++++- blocks/PriceCard/package.json | 10 ++++++- blocks/PriceInfo/package.json | 10 ++++++- blocks/PrivateMessageForm/package.json | 10 ++++++- blocks/ProductInfo/package.json | 10 ++++++- blocks/ProgressTable/package.json | 10 ++++++- blocks/RegisterForm/package.json | 10 ++++++- blocks/RightContentDisplay/package.json | 10 ++++++- blocks/SelectableTable/package.json | 10 ++++++- blocks/SignupForm/package.json | 10 ++++++- blocks/SimpleFluencyForm/package.json | 10 ++++++- blocks/SimpleFormDialog/package.json | 10 ++++++- blocks/SimpleTable/package.json | 10 ++++++- blocks/SimpleTestimonial/package.json | 10 ++++++- blocks/SortCardList/package.json | 10 ++++++- blocks/StatisticalCard/package.json | 10 ++++++- blocks/Subscribe/package.json | 10 ++++++- blocks/SuccessDetail/package.json | 10 ++++++- blocks/SuccessDialog/package.json | 10 ++++++- blocks/SystemNoticeList/package.json | 10 ++++++- blocks/TabArticle/package.json | 10 ++++++- blocks/TabChart/package.json | 30 +++++++++++++++---- blocks/TabDialog/package.json | 10 ++++++- blocks/TagMessageList/package.json | 10 ++++++- blocks/TeamDisplay/package.json | 10 ++++++- blocks/TermsInfo/package.json | 10 ++++++- blocks/Testimonial/package.json | 10 ++++++- blocks/TestimonialCard/package.json | 10 ++++++- blocks/TextCard/package.json | 10 ++++++- blocks/TextSearchList/package.json | 10 ++++++- blocks/TimeFilterTable/package.json | 10 ++++++- blocks/TopicCard/package.json | 10 ++++++- blocks/TreeCardList/package.json | 10 ++++++- blocks/UserInfoCard/package.json | 29 ++++++++++++++---- .../package.json | 9 +++++- layouts/HeaderAsideFooterLayout/package.json | 9 +++++- .../package.json | 9 +++++- layouts/HeaderFooterLayout/package.json | 9 +++++- 98 files changed, 907 insertions(+), 108 deletions(-) diff --git a/blocks/ApplicationProgress/package.json b/blocks/ApplicationProgress/package.json index 6b6e83e859..6e371a60cb 100644 --- a/blocks/ApplicationProgress/package.json +++ b/blocks/ApplicationProgress/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/application-progress-block", - "version": "0.1.0", + "version": "0.1.1", "description": "申请进度信息展示", "files": [ "src/", @@ -28,6 +28,7 @@ }, "devDependencies": { "@icedesign/demo-layout": "^0.1.0", + "@icedesign/scripts": "^0.1.9", "@icedesign/skin": "^0.1.2", "react": "*", "react-dom": "*" @@ -40,5 +41,12 @@ "categories": [ "info-display" ] + }, + "scripts": { + "prepublish": "ice block build" + }, + "publishConfig": { + "access": "public", + "registry": "http://registry.npmjs.com/" } } diff --git a/blocks/AreaStackChart/package.json b/blocks/AreaStackChart/package.json index cd2d4a1c73..49ecb269a5 100644 --- a/blocks/AreaStackChart/package.json +++ b/blocks/AreaStackChart/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/area-stack-chart-block", - "version": "0.1.0", + "version": "0.1.1", "description": "叠加面积图", "main": "src/index.js", "files": [ @@ -31,6 +31,7 @@ }, "devDependencies": { "@icedesign/demo-layout": "^0.1.0", + "@icedesign/scripts": "^0.1.9", "@icedesign/skin": "^0.1.3", "react": "*", "react-dom": "*" @@ -43,5 +44,12 @@ "categories": [ "chart" ] + }, + "scripts": { + "prepublish": "ice block build" + }, + "publishConfig": { + "access": "public", + "registry": "http://registry.npmjs.com/" } } diff --git a/blocks/ArticleList/package.json b/blocks/ArticleList/package.json index 216e541bad..5971340525 100644 --- a/blocks/ArticleList/package.json +++ b/blocks/ArticleList/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/article-list-block", - "version": "0.1.0", + "version": "0.1.1", "description": "文章列表", "main": "lib/index.js", "files": [ @@ -29,6 +29,7 @@ }, "devDependencies": { "@icedesign/demo-layout": "^0.1.0", + "@icedesign/scripts": "^0.1.9", "@icedesign/skin": "^0.1.2", "react": "*", "react-dom": "*" @@ -41,5 +42,12 @@ "categories": [ "info-display" ] + }, + "scripts": { + "prepublish": "ice block build" + }, + "publishConfig": { + "access": "public", + "registry": "http://registry.npmjs.com/" } } diff --git a/blocks/BasicDetailInfo/package.json b/blocks/BasicDetailInfo/package.json index 7fb198cc8f..d90b2add9a 100644 --- a/blocks/BasicDetailInfo/package.json +++ b/blocks/BasicDetailInfo/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/basic-detail-info-block", - "version": "0.1.0", + "version": "0.1.1", "description": "基础详情信息展示", "files": [ "src/", @@ -28,6 +28,7 @@ }, "devDependencies": { "@icedesign/demo-layout": "^0.1.0", + "@icedesign/scripts": "^0.1.9", "@icedesign/skin": "^0.1.2", "react": "*", "react-dom": "*" @@ -40,5 +41,12 @@ "categories": [ "info-display" ] + }, + "scripts": { + "prepublish": "ice block build" + }, + "publishConfig": { + "access": "public", + "registry": "http://registry.npmjs.com/" } } diff --git a/blocks/BasicException/package.json b/blocks/BasicException/package.json index 77208b0967..87b8b39a57 100644 --- a/blocks/BasicException/package.json +++ b/blocks/BasicException/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/basic-exception-block", - "version": "0.1.1", + "version": "0.1.2", "description": "基础异常报错", "main": "lib/index.js", "files": [ @@ -30,6 +30,7 @@ }, "devDependencies": { "@icedesign/demo-layout": "^0.1.0", + "@icedesign/scripts": "^0.1.9", "@icedesign/skin": "^0.1.2", "react": "*", "react-dom": "*" @@ -42,5 +43,12 @@ "categories": [ "exception" ] + }, + "scripts": { + "prepublish": "ice block build" + }, + "publishConfig": { + "access": "public", + "registry": "http://registry.npmjs.com/" } } diff --git a/blocks/BasicNotFound/package.json b/blocks/BasicNotFound/package.json index d83886c140..61ebc2c9ac 100644 --- a/blocks/BasicNotFound/package.json +++ b/blocks/BasicNotFound/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/basic-not-found-block", - "version": "0.1.1", + "version": "0.1.2", "description": "404 报错提示", "main": "lib/index.js", "files": [ @@ -30,6 +30,7 @@ }, "devDependencies": { "@icedesign/demo-layout": "^0.1.2", + "@icedesign/scripts": "^0.1.9", "@icedesign/skin": "^0.1.2", "react": "*", "react-dom": "*" @@ -42,5 +43,12 @@ "categories": [ "exception" ] + }, + "scripts": { + "prepublish": "ice block build" + }, + "publishConfig": { + "access": "public", + "registry": "http://registry.npmjs.com/" } } diff --git a/blocks/BasicTab/package.json b/blocks/BasicTab/package.json index 470144c800..ef2ac98950 100644 --- a/blocks/BasicTab/package.json +++ b/blocks/BasicTab/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/basic-tab-block", - "version": "0.1.1", + "version": "0.1.2", "description": "基础 Tab 组件", "main": "lib/index.js", "files": [ @@ -29,6 +29,7 @@ }, "devDependencies": { "@icedesign/demo-layout": "^0.1.0", + "@icedesign/scripts": "^0.1.9", "@icedesign/skin": "^0.1.3", "react": "*", "react-dom": "*" @@ -41,5 +42,12 @@ "categories": [ "info-display" ] + }, + "scripts": { + "prepublish": "ice block build" + }, + "publishConfig": { + "access": "public", + "registry": "http://registry.npmjs.com/" } } diff --git a/blocks/BrandDisplay/package.json b/blocks/BrandDisplay/package.json index f537b081c1..2caede68ec 100644 --- a/blocks/BrandDisplay/package.json +++ b/blocks/BrandDisplay/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/brand-display-block", - "version": "0.1.1", + "version": "0.1.2", "description": "品牌列表展示", "main": "lib/index.js", "files": [ @@ -29,6 +29,7 @@ }, "devDependencies": { "@icedesign/demo-layout": "^0.1.0", + "@icedesign/scripts": "^0.1.9", "@icedesign/skin": "^0.1.2", "react": "*", "react-dom": "*" @@ -41,5 +42,12 @@ "categories": [ "info-display" ] + }, + "scripts": { + "prepublish": "ice block build" + }, + "publishConfig": { + "access": "public", + "registry": "http://registry.npmjs.com/" } } diff --git a/blocks/BrandShowCase/package.json b/blocks/BrandShowCase/package.json index a1d2644e66..2b87032489 100644 --- a/blocks/BrandShowCase/package.json +++ b/blocks/BrandShowCase/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/brand-show-case-block", - "version": "0.1.1", + "version": "0.1.2", "description": "", "files": [ "src/", @@ -28,6 +28,7 @@ }, "devDependencies": { "@icedesign/demo-layout": "^0.1.0", + "@icedesign/scripts": "^0.1.9", "@icedesign/skin": "^0.1.2", "react": "*", "react-copy-to-clipboard": "^4.2.3", @@ -41,5 +42,12 @@ "categories": [ "info-display" ] + }, + "scripts": { + "prepublish": "ice block build" + }, + "publishConfig": { + "access": "public", + "registry": "http://registry.npmjs.com/" } } diff --git a/blocks/ChartArea/package.json b/blocks/ChartArea/package.json index a6e7ee0743..bbd2c18c52 100644 --- a/blocks/ChartArea/package.json +++ b/blocks/ChartArea/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/chart-area-block", - "version": "0.1.1", + "version": "0.1.2", "description": "", "files": [ "src/", @@ -30,6 +30,7 @@ }, "devDependencies": { "@icedesign/demo-layout": "^0.1.0", + "@icedesign/scripts": "^0.1.9", "@icedesign/skin": "^0.1.2", "react": "*", "react-dom": "*" @@ -42,5 +43,12 @@ "categories": [ "chart" ] + }, + "scripts": { + "prepublish": "ice block build" + }, + "publishConfig": { + "access": "public", + "registry": "http://registry.npmjs.com/" } } diff --git a/blocks/ChartBar/package.json b/blocks/ChartBar/package.json index b49ee9ec48..c9db20521e 100644 --- a/blocks/ChartBar/package.json +++ b/blocks/ChartBar/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/chart-bar-block", - "version": "0.1.1", + "version": "0.1.2", "description": "", "files": [ "src/", @@ -30,6 +30,7 @@ }, "devDependencies": { "@icedesign/demo-layout": "^0.1.0", + "@icedesign/scripts": "^0.1.9", "@icedesign/skin": "^0.1.2", "react": "*", "react-dom": "*" @@ -42,5 +43,12 @@ "categories": [ "chart" ] + }, + "scripts": { + "prepublish": "ice block build" + }, + "publishConfig": { + "access": "public", + "registry": "http://registry.npmjs.com/" } } diff --git a/blocks/ChartBox/package.json b/blocks/ChartBox/package.json index 2fe75eb481..abff4c7742 100644 --- a/blocks/ChartBox/package.json +++ b/blocks/ChartBox/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/chart-box-block", - "version": "0.1.1", + "version": "0.1.2", "description": "", "files": [ "src/", @@ -30,6 +30,7 @@ }, "devDependencies": { "@icedesign/demo-layout": "^0.1.0", + "@icedesign/scripts": "^0.1.9", "@icedesign/skin": "^0.1.2", "react": "*", "react-dom": "*" @@ -42,5 +43,12 @@ "categories": [ "chart" ] + }, + "scripts": { + "prepublish": "ice block build" + }, + "publishConfig": { + "access": "public", + "registry": "http://registry.npmjs.com/" } } diff --git a/blocks/ChartBubbleImage/package.json b/blocks/ChartBubbleImage/package.json index 797fc0625f..49c253285f 100644 --- a/blocks/ChartBubbleImage/package.json +++ b/blocks/ChartBubbleImage/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/chart-bubble-image-block", - "version": "0.1.1", + "version": "0.1.2", "description": "", "files": [ "src/", @@ -30,6 +30,7 @@ }, "devDependencies": { "@icedesign/demo-layout": "^0.1.0", + "@icedesign/scripts": "^0.1.9", "@icedesign/skin": "^0.1.2", "react": "*", "react-dom": "*" @@ -42,5 +43,12 @@ "categories": [ "chart" ] + }, + "scripts": { + "prepublish": "ice block build" + }, + "publishConfig": { + "access": "public", + "registry": "http://registry.npmjs.com/" } } diff --git a/blocks/ChartFacet/package.json b/blocks/ChartFacet/package.json index f622218082..d3293fae1d 100644 --- a/blocks/ChartFacet/package.json +++ b/blocks/ChartFacet/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/chart-facet-block", - "version": "0.1.1", + "version": "0.1.2", "description": "", "files": [ "src/", @@ -30,6 +30,7 @@ }, "devDependencies": { "@icedesign/demo-layout": "^0.1.0", + "@icedesign/scripts": "^0.1.9", "@icedesign/skin": "^0.1.2", "react": "*", "react-dom": "*" @@ -42,5 +43,12 @@ "categories": [ "chart" ] + }, + "scripts": { + "prepublish": "ice block build" + }, + "publishConfig": { + "access": "public", + "registry": "http://registry.npmjs.com/" } } diff --git a/blocks/ChartFunnel/package.json b/blocks/ChartFunnel/package.json index c50e23f052..2bd4f26c0c 100644 --- a/blocks/ChartFunnel/package.json +++ b/blocks/ChartFunnel/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/chart-funnel-block", - "version": "0.1.1", + "version": "0.1.2", "description": "", "files": [ "src/", @@ -30,6 +30,7 @@ }, "devDependencies": { "@icedesign/demo-layout": "^0.1.0", + "@icedesign/scripts": "^0.1.9", "@icedesign/skin": "^0.1.2", "react": "*", "react-dom": "*" @@ -42,5 +43,12 @@ "categories": [ "chart" ] + }, + "scripts": { + "prepublish": "ice block build" + }, + "publishConfig": { + "access": "public", + "registry": "http://registry.npmjs.com/" } } diff --git a/blocks/ChartGauge/package.json b/blocks/ChartGauge/package.json index 042b82388d..8eca3ac96d 100644 --- a/blocks/ChartGauge/package.json +++ b/blocks/ChartGauge/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/chart-gauge-block", - "version": "0.1.1", + "version": "0.1.2", "description": "", "files": [ "src/", @@ -30,6 +30,7 @@ }, "devDependencies": { "@icedesign/demo-layout": "^0.1.0", + "@icedesign/scripts": "^0.1.9", "@icedesign/skin": "^0.1.2", "react": "*", "react-dom": "*" @@ -42,5 +43,12 @@ "categories": [ "chart" ] + }, + "scripts": { + "prepublish": "ice block build" + }, + "publishConfig": { + "access": "public", + "registry": "http://registry.npmjs.com/" } } diff --git a/blocks/ChartHeatMap/package.json b/blocks/ChartHeatMap/package.json index a66a5c522b..293f2b8869 100644 --- a/blocks/ChartHeatMap/package.json +++ b/blocks/ChartHeatMap/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/chart-heat-map-block", - "version": "0.1.1", + "version": "0.1.2", "description": "", "files": [ "src/", @@ -30,6 +30,7 @@ }, "devDependencies": { "@icedesign/demo-layout": "^0.1.0", + "@icedesign/scripts": "^0.1.9", "@icedesign/skin": "^0.1.2", "react": "*", "react-dom": "*" @@ -42,5 +43,12 @@ "categories": [ "chart" ] + }, + "scripts": { + "prepublish": "ice block build" + }, + "publishConfig": { + "access": "public", + "registry": "http://registry.npmjs.com/" } } diff --git a/blocks/ChartPie/package.json b/blocks/ChartPie/package.json index 8f779bae03..6431a96ac1 100644 --- a/blocks/ChartPie/package.json +++ b/blocks/ChartPie/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/chart-pie-block", - "version": "0.1.1", + "version": "0.1.2", "description": "", "files": [ "src/", @@ -30,6 +30,7 @@ }, "devDependencies": { "@icedesign/demo-layout": "^0.1.0", + "@icedesign/scripts": "^0.1.9", "@icedesign/skin": "^0.1.2", "react": "*", "react-dom": "*" @@ -42,5 +43,12 @@ "categories": [ "chart" ] + }, + "scripts": { + "prepublish": "ice block build" + }, + "publishConfig": { + "access": "public", + "registry": "http://registry.npmjs.com/" } } diff --git a/blocks/ChartPoint/package.json b/blocks/ChartPoint/package.json index adaaba52c2..ebeaa1f5b7 100644 --- a/blocks/ChartPoint/package.json +++ b/blocks/ChartPoint/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/chart-point-block", - "version": "0.1.1", + "version": "0.1.2", "description": "", "files": [ "src/", @@ -31,6 +31,7 @@ }, "devDependencies": { "@icedesign/demo-layout": "^0.1.0", + "@icedesign/scripts": "^0.1.9", "@icedesign/skin": "^0.1.2", "react": "*", "react-dom": "*" @@ -43,5 +44,12 @@ "categories": [ "chart" ] + }, + "scripts": { + "prepublish": "ice block build" + }, + "publishConfig": { + "access": "public", + "registry": "http://registry.npmjs.com/" } } diff --git a/blocks/ChartRadar/package.json b/blocks/ChartRadar/package.json index f17ccc6656..40b140a3f6 100644 --- a/blocks/ChartRadar/package.json +++ b/blocks/ChartRadar/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/chart-radar-block", - "version": "0.1.1", + "version": "0.1.2", "description": "雷达图", "files": [ "src/", @@ -30,6 +30,7 @@ }, "devDependencies": { "@icedesign/demo-layout": "^0.1.0", + "@icedesign/scripts": "^0.1.9", "@icedesign/skin": "^0.1.2", "react": "*", "react-dom": "*" @@ -42,5 +43,12 @@ "categories": [ "chart" ] + }, + "scripts": { + "prepublish": "ice block build" + }, + "publishConfig": { + "access": "public", + "registry": "http://registry.npmjs.com/" } } diff --git a/blocks/ChartRelation/package.json b/blocks/ChartRelation/package.json index f1cd4797e6..d03b45a7fc 100644 --- a/blocks/ChartRelation/package.json +++ b/blocks/ChartRelation/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/chart-relation-block", - "version": "0.1.1", + "version": "0.1.2", "description": "关系图", "files": [ "src/", @@ -30,6 +30,7 @@ }, "devDependencies": { "@icedesign/demo-layout": "^0.1.0", + "@icedesign/scripts": "^0.1.9", "@icedesign/skin": "^0.1.2", "react": "*", "react-dom": "*" @@ -42,5 +43,12 @@ "categories": [ "chart" ] + }, + "scripts": { + "prepublish": "ice block build" + }, + "publishConfig": { + "access": "public", + "registry": "http://registry.npmjs.com/" } } diff --git a/blocks/ChartStock/package.json b/blocks/ChartStock/package.json index ed131ec111..f5ed6d55c8 100644 --- a/blocks/ChartStock/package.json +++ b/blocks/ChartStock/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/chart-stock-block", - "version": "0.1.1", + "version": "0.1.2", "description": "股票图", "files": [ "src/", @@ -31,6 +31,7 @@ }, "devDependencies": { "@icedesign/demo-layout": "^0.1.0", + "@icedesign/scripts": "^0.1.9", "@icedesign/skin": "^0.1.2", "react": "*", "react-dom": "*" @@ -43,5 +44,12 @@ "categories": [ "chart" ] + }, + "scripts": { + "prepublish": "ice block build" + }, + "publishConfig": { + "access": "public", + "registry": "http://registry.npmjs.com/" } } diff --git a/blocks/ChartTypeLine/package.json b/blocks/ChartTypeLine/package.json index 199105892f..fbd18869bb 100644 --- a/blocks/ChartTypeLine/package.json +++ b/blocks/ChartTypeLine/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/chart-type-line-block", - "version": "0.1.1", + "version": "0.1.2", "description": "", "files": [ "src/", @@ -30,6 +30,7 @@ }, "devDependencies": { "@icedesign/demo-layout": "^0.1.0", + "@icedesign/scripts": "^0.1.9", "@icedesign/skin": "^0.1.2", "react": "*", "react-dom": "*" @@ -42,5 +43,12 @@ "categories": [ "chart" ] + }, + "scripts": { + "prepublish": "ice block build" + }, + "publishConfig": { + "access": "public", + "registry": "http://registry.npmjs.com/" } } diff --git a/blocks/CollapseCard/package.json b/blocks/CollapseCard/package.json index 0be4d7defc..0c0625c048 100644 --- a/blocks/CollapseCard/package.json +++ b/blocks/CollapseCard/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/collapse-card-block", - "version": "0.1.1", + "version": "0.1.2", "description": "折叠型卡片的信息展示", "files": [ "src/", @@ -29,6 +29,7 @@ }, "devDependencies": { "@icedesign/demo-layout": "^0.1.0", + "@icedesign/scripts": "^0.1.9", "@icedesign/skin": "^0.1.2", "react": "*", "react-dom": "*" @@ -41,5 +42,12 @@ "categories": [ "info-display" ] + }, + "scripts": { + "prepublish": "ice block build" + }, + "publishConfig": { + "access": "public", + "registry": "http://registry.npmjs.com/" } } diff --git a/blocks/ComplexDialog/package.json b/blocks/ComplexDialog/package.json index c9f94609e0..39f02c4e00 100644 --- a/blocks/ComplexDialog/package.json +++ b/blocks/ComplexDialog/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/complex-dialog-block", - "version": "0.1.2", + "version": "0.1.3", "description": "复杂信息和自定义底部按钮的弹窗", "files": [ "src/", @@ -28,6 +28,7 @@ }, "devDependencies": { "@icedesign/demo-layout": "^0.1.0", + "@icedesign/scripts": "^0.1.9", "@icedesign/skin": "^0.1.2", "react": "*", "react-dom": "*" @@ -40,5 +41,12 @@ ], "snapshot": "https://img.alicdn.com/tfs/TB1Un_filfH8KJjy1XbXXbLdXXa-1270-650.png", "themePackage": "@icedesign/skin" + }, + "scripts": { + "prepublish": "ice block build" + }, + "publishConfig": { + "access": "public", + "registry": "http://registry.npmjs.com/" } } diff --git a/blocks/ComplexFilter/package.json b/blocks/ComplexFilter/package.json index 91cb12195c..47864b3c22 100644 --- a/blocks/ComplexFilter/package.json +++ b/blocks/ComplexFilter/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/complex-filter-block", - "version": "0.1.4", + "version": "0.1.5", "description": "复杂筛选", "files": [ "src/", @@ -28,6 +28,7 @@ }, "devDependencies": { "@icedesign/demo-layout": "^0.1.0", + "@icedesign/scripts": "^0.1.9", "@icedesign/skin": "^0.1.2", "react": "*", "react-dom": "*" @@ -40,5 +41,12 @@ "categories": [ "filter" ] + }, + "scripts": { + "prepublish": "ice block build" + }, + "publishConfig": { + "access": "public", + "registry": "http://registry.npmjs.com/" } } diff --git a/blocks/ComplexProgressTable/package.json b/blocks/ComplexProgressTable/package.json index d0d5e53620..e4e6c096a7 100644 --- a/blocks/ComplexProgressTable/package.json +++ b/blocks/ComplexProgressTable/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/complex-progress-table-block", - "version": "0.1.1", + "version": "0.1.2", "description": "进度管理表格", "files": [ "src/", @@ -31,6 +31,7 @@ }, "devDependencies": { "@icedesign/demo-layout": "^0.1.0", + "@icedesign/scripts": "^0.1.9", "@icedesign/skin": "^0.1.2", "babel-plugin-transform-decorators-legacy": "^1.3.4", "react": "*", @@ -45,5 +46,12 @@ "categories": [ "table" ] + }, + "scripts": { + "prepublish": "ice block build" + }, + "publishConfig": { + "access": "public", + "registry": "http://registry.npmjs.com/" } } diff --git a/blocks/ComplexTabTable/package.json b/blocks/ComplexTabTable/package.json index a8ee042feb..3cad59ac01 100644 --- a/blocks/ComplexTabTable/package.json +++ b/blocks/ComplexTabTable/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/complex-tab-table-block", - "version": "0.1.1", + "version": "0.1.2", "description": "附带复杂的 Tab 多级筛选项的表格", "files": [ "src/", @@ -32,6 +32,7 @@ }, "devDependencies": { "@icedesign/demo-layout": "^0.1.0", + "@icedesign/scripts": "^0.1.9", "@icedesign/skin": "^0.1.2", "react": "*", "react-dom": "*" @@ -44,5 +45,12 @@ "categories": [ "table" ] + }, + "scripts": { + "prepublish": "ice block build" + }, + "publishConfig": { + "access": "public", + "registry": "http://registry.npmjs.com/" } } diff --git a/blocks/CompositeFilter/package.json b/blocks/CompositeFilter/package.json index c69542784c..1c20454554 100644 --- a/blocks/CompositeFilter/package.json +++ b/blocks/CompositeFilter/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/composite-filter-block", - "version": "0.1.1", + "version": "0.1.2", "description": "复杂的筛选", "main": "lib/index.js", "files": [ @@ -29,6 +29,7 @@ }, "devDependencies": { "@icedesign/demo-layout": "^0.1.0", + "@icedesign/scripts": "^0.1.9", "@icedesign/skin": "^0.1.2", "react": "*", "react-dom": "*" @@ -41,5 +42,12 @@ "categories": [ "filter" ] + }, + "scripts": { + "prepublish": "ice block build" + }, + "publishConfig": { + "access": "public", + "registry": "http://registry.npmjs.com/" } } diff --git a/blocks/ConfirmDialog/package.json b/blocks/ConfirmDialog/package.json index d7c349bc13..100df4e8dc 100644 --- a/blocks/ConfirmDialog/package.json +++ b/blocks/ConfirmDialog/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/confirm-dialog-block", - "version": "0.1.1", + "version": "0.1.2", "description": "确认类型的提示框", "main": "lib/index.js", "files": [ @@ -29,6 +29,7 @@ }, "devDependencies": { "@icedesign/demo-layout": "^0.1.0", + "@icedesign/scripts": "^0.1.9", "@icedesign/skin": "^0.1.2", "react": "*", "react-dom": "*" @@ -41,5 +42,12 @@ ], "snapshot": "https://img.alicdn.com/tfs/TB1Zr3xigvD8KJjy0FlXXagBFXa-1272-620.png", "themePackage": "@icedesign/skin" + }, + "scripts": { + "prepublish": "ice block build" + }, + "publishConfig": { + "access": "public", + "registry": "http://registry.npmjs.com/" } } diff --git a/blocks/DataDisplay/package.json b/blocks/DataDisplay/package.json index 4a88390302..f9d81f0c8e 100644 --- a/blocks/DataDisplay/package.json +++ b/blocks/DataDisplay/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/data-display-block", - "version": "0.1.1", + "version": "0.1.2", "description": "", "files": [ "src/", @@ -28,6 +28,7 @@ }, "devDependencies": { "@icedesign/demo-layout": "^0.1.0", + "@icedesign/scripts": "^0.1.9", "@icedesign/skin": "^0.1.2", "react": "*", "react-copy-to-clipboard": "^4.2.3", @@ -41,5 +42,12 @@ "categories": [ "data-display" ] + }, + "scripts": { + "prepublish": "ice block build" + }, + "publishConfig": { + "access": "public", + "registry": "http://registry.npmjs.com/" } } diff --git a/blocks/DetailTable/package.json b/blocks/DetailTable/package.json index f4c8ab9479..ce2faee89d 100644 --- a/blocks/DetailTable/package.json +++ b/blocks/DetailTable/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/detail-table-block", - "version": "0.1.1", + "version": "0.1.2", "description": "展示详情信息的表格", "files": [ "src/", @@ -28,6 +28,7 @@ }, "devDependencies": { "@icedesign/demo-layout": "^0.1.0", + "@icedesign/scripts": "^0.1.9", "@icedesign/skin": "^0.1.2", "react": "*", "react-copy-to-clipboard": "^4.2.3", @@ -41,5 +42,12 @@ "categories": [ "table" ] + }, + "scripts": { + "prepublish": "ice block build" + }, + "publishConfig": { + "access": "public", + "registry": "http://registry.npmjs.com/" } } diff --git a/blocks/DisplayCard/package.json b/blocks/DisplayCard/package.json index 7b1a59e208..22abc91e1e 100644 --- a/blocks/DisplayCard/package.json +++ b/blocks/DisplayCard/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/display-card-block", - "version": "0.1.1", + "version": "0.1.2", "description": "展示型卡片", "files": [ "src/", @@ -28,6 +28,7 @@ }, "devDependencies": { "@icedesign/demo-layout": "^0.1.0", + "@icedesign/scripts": "^0.1.9", "@icedesign/skin": "^0.1.2", "react": "*", "react-dom": "*" @@ -40,5 +41,12 @@ "categories": [ "data-display" ] + }, + "scripts": { + "prepublish": "ice block build" + }, + "publishConfig": { + "access": "public", + "registry": "http://registry.npmjs.com/" } } diff --git a/blocks/DownloadCard/package.json b/blocks/DownloadCard/package.json index 943c6b4586..8da19e5e73 100644 --- a/blocks/DownloadCard/package.json +++ b/blocks/DownloadCard/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/download-card-block", - "version": "0.1.1", + "version": "0.1.2", "description": "下载型信息卡片", "main": "lib/index.js", "files": [ @@ -30,6 +30,7 @@ }, "devDependencies": { "@icedesign/demo-layout": "^0.1.0", + "@icedesign/scripts": "^0.1.9", "@icedesign/skin": "^0.1.2", "react": "*", "react-dom": "*" @@ -43,5 +44,12 @@ "info-display", "list" ] + }, + "scripts": { + "prepublish": "ice block build" + }, + "publishConfig": { + "access": "public", + "registry": "http://registry.npmjs.com/" } } diff --git a/blocks/EditableTable/package.json b/blocks/EditableTable/package.json index 67056bbfdf..a07e22cca7 100644 --- a/blocks/EditableTable/package.json +++ b/blocks/EditableTable/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/editable-table-block", - "version": "0.1.1", + "version": "0.1.2", "description": "可编辑内容的表格", "files": [ "src/", @@ -28,6 +28,7 @@ }, "devDependencies": { "@icedesign/demo-layout": "^0.1.0", + "@icedesign/scripts": "^0.1.9", "@icedesign/skin": "^0.1.2", "react": "*", "react-dom": "*" @@ -40,5 +41,12 @@ "categories": [ "table" ] + }, + "scripts": { + "prepublish": "ice block build" + }, + "publishConfig": { + "access": "public", + "registry": "http://registry.npmjs.com/" } } diff --git a/blocks/EmptyContent/package.json b/blocks/EmptyContent/package.json index 788e127a3a..7c181e3f89 100644 --- a/blocks/EmptyContent/package.json +++ b/blocks/EmptyContent/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/empty-content-block", - "version": "0.1.2", + "version": "0.1.3", "description": "", "files": [ "src/", @@ -28,6 +28,7 @@ }, "devDependencies": { "@icedesign/demo-layout": "^0.1.0", + "@icedesign/scripts": "^0.1.9", "@icedesign/skin": "^0.1.2", "react": "*", "react-copy-to-clipboard": "^4.2.3", @@ -41,5 +42,12 @@ "categories": [ "exception" ] + }, + "scripts": { + "prepublish": "ice block build" + }, + "publishConfig": { + "access": "public", + "registry": "http://registry.npmjs.com/" } } diff --git a/blocks/EnhanceTable/package.json b/blocks/EnhanceTable/package.json index 6fd6faff8a..8eb382269b 100644 --- a/blocks/EnhanceTable/package.json +++ b/blocks/EnhanceTable/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/enhance-table-block", - "version": "0.1.1", + "version": "0.1.2", "description": "附带简单表单筛选功能的增强筛选表单", "main": "lib/index.js", "files": [ @@ -32,6 +32,7 @@ }, "devDependencies": { "@icedesign/demo-layout": "^0.1.0", + "@icedesign/scripts": "^0.1.9", "@icedesign/skin": "^0.1.2", "react": "*", "react-dom": "*" @@ -44,5 +45,12 @@ "categories": [ "table" ] + }, + "scripts": { + "prepublish": "ice block build" + }, + "publishConfig": { + "access": "public", + "registry": "http://registry.npmjs.com/" } } diff --git a/blocks/EntryCard/package.json b/blocks/EntryCard/package.json index f12860f85a..e51900b614 100644 --- a/blocks/EntryCard/package.json +++ b/blocks/EntryCard/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/entry-card-block", - "version": "0.1.1", + "version": "0.1.2", "description": "入口列表卡片", "main": "lib/index.js", "files": [ @@ -29,6 +29,7 @@ }, "devDependencies": { "@icedesign/demo-layout": "^0.1.0", + "@icedesign/scripts": "^0.1.9", "@icedesign/skin": "^0.1.2", "react": "*", "react-dom": "*" @@ -41,5 +42,12 @@ "categories": [ "list" ] + }, + "scripts": { + "prepublish": "ice block build" + }, + "publishConfig": { + "access": "public", + "registry": "http://registry.npmjs.com/" } } diff --git a/blocks/FailureDetail/package.json b/blocks/FailureDetail/package.json index 9d1bf726af..428c918f73 100644 --- a/blocks/FailureDetail/package.json +++ b/blocks/FailureDetail/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/failure-detail-block", - "version": "0.1.1", + "version": "0.1.2", "description": "提交失败详情展示", "files": [ "src/", @@ -28,6 +28,7 @@ }, "devDependencies": { "@icedesign/demo-layout": "^0.1.0", + "@icedesign/scripts": "^0.1.9", "@icedesign/skin": "^0.1.2", "react": "*", "react-dom": "*" @@ -40,5 +41,12 @@ "categories": [ "info-display" ] + }, + "scripts": { + "prepublish": "ice block build" + }, + "publishConfig": { + "access": "public", + "registry": "http://registry.npmjs.com/" } } diff --git a/blocks/FeatureDisplay/package.json b/blocks/FeatureDisplay/package.json index 5e80ecf817..d513ce2c38 100644 --- a/blocks/FeatureDisplay/package.json +++ b/blocks/FeatureDisplay/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/feature-display-block", - "version": "0.1.1", + "version": "0.1.2", "description": "", "files": [ "src/", @@ -28,6 +28,7 @@ }, "devDependencies": { "@icedesign/demo-layout": "^0.1.0", + "@icedesign/scripts": "^0.1.9", "@icedesign/skin": "^0.1.2", "react": "*", "react-dom": "*" @@ -40,5 +41,12 @@ "categories": [ "info-display" ] + }, + "scripts": { + "prepublish": "ice block build" + }, + "publishConfig": { + "access": "public", + "registry": "http://registry.npmjs.com/" } } diff --git a/blocks/FeedList/package.json b/blocks/FeedList/package.json index 14ae5e8d72..c23c5b8d03 100644 --- a/blocks/FeedList/package.json +++ b/blocks/FeedList/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/feed-list-block", - "version": "0.1.1", + "version": "0.1.2", "description": " Feed 消息列表", "files": [ "src/", @@ -28,6 +28,7 @@ }, "devDependencies": { "@icedesign/demo-layout": "^0.1.0", + "@icedesign/scripts": "^0.1.9", "@icedesign/skin": "^0.1.2", "react": "*", "react-copy-to-clipboard": "^4.2.3", @@ -41,5 +42,12 @@ "categories": [ "list" ] + }, + "scripts": { + "prepublish": "ice block build" + }, + "publishConfig": { + "access": "public", + "registry": "http://registry.npmjs.com/" } } diff --git a/blocks/FilterList/package.json b/blocks/FilterList/package.json index 4834474149..06c15bb12e 100644 --- a/blocks/FilterList/package.json +++ b/blocks/FilterList/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/filter-list-block", - "version": "0.1.1", + "version": "0.1.2", "description": "支持过滤的列表", "main": "lib/index.js", "files": [ @@ -29,6 +29,7 @@ }, "devDependencies": { "@icedesign/demo-layout": "^0.1.0", + "@icedesign/scripts": "^0.1.9", "@icedesign/skin": "^0.1.2", "react": "*", "react-dom": "*" @@ -41,5 +42,12 @@ "categories": [ "list" ] + }, + "scripts": { + "prepublish": "ice block build" + }, + "publishConfig": { + "access": "public", + "registry": "http://registry.npmjs.com/" } } diff --git a/blocks/FilterTable/package.json b/blocks/FilterTable/package.json index 20ce1b00aa..b7a7d96acd 100644 --- a/blocks/FilterTable/package.json +++ b/blocks/FilterTable/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/filter-table-block", - "version": "0.1.1", + "version": "0.1.2", "description": "附带筛选工具条的表格", "files": [ "src/", @@ -32,6 +32,7 @@ }, "devDependencies": { "@icedesign/demo-layout": "^0.1.0", + "@icedesign/scripts": "^0.1.9", "@icedesign/skin": "^0.1.2", "react": "*", "react-dom": "*" @@ -44,5 +45,12 @@ "categories": [ "table" ] + }, + "scripts": { + "prepublish": "ice block build" + }, + "publishConfig": { + "access": "public", + "registry": "http://registry.npmjs.com/" } } diff --git a/blocks/FilterWithSearch/package.json b/blocks/FilterWithSearch/package.json index b42bb0579a..ec561b28de 100644 --- a/blocks/FilterWithSearch/package.json +++ b/blocks/FilterWithSearch/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/filter-with-search-block", - "version": "0.1.1", + "version": "0.1.2", "description": " 含搜索筛选", "files": [ "src/", @@ -28,6 +28,7 @@ }, "devDependencies": { "@icedesign/demo-layout": "^0.1.0", + "@icedesign/scripts": "^0.1.9", "@icedesign/skin": "^0.1.2", "react": "*", "react-dom": "*" @@ -40,5 +41,12 @@ "categories": [ "filter" ] + }, + "scripts": { + "prepublish": "ice block build" + }, + "publishConfig": { + "access": "public", + "registry": "http://registry.npmjs.com/" } } diff --git a/blocks/Footer/package.json b/blocks/Footer/package.json index a38d4fff6f..0be06c33f0 100644 --- a/blocks/Footer/package.json +++ b/blocks/Footer/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/footer-block", - "version": "0.1.1", + "version": "0.1.2", "description": "", "files": [ "src/", @@ -28,6 +28,7 @@ }, "devDependencies": { "@icedesign/demo-layout": "^0.1.0", + "@icedesign/scripts": "^0.1.9", "@icedesign/skin": "^0.1.2", "react": "*", "react-copy-to-clipboard": "^4.2.3", @@ -41,5 +42,12 @@ "categories": [ "info-display" ] + }, + "scripts": { + "prepublish": "ice block build" + }, + "publishConfig": { + "access": "public", + "registry": "http://registry.npmjs.com/" } } diff --git a/blocks/FooterInfo/package.json b/blocks/FooterInfo/package.json index bbae9b358e..34b6fde8ef 100644 --- a/blocks/FooterInfo/package.json +++ b/blocks/FooterInfo/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/footer-info-block", - "version": "0.1.1", + "version": "0.1.2", "description": "", "files": [ "src/", @@ -28,6 +28,7 @@ }, "devDependencies": { "@icedesign/demo-layout": "^0.1.0", + "@icedesign/scripts": "^0.1.9", "@icedesign/skin": "^0.1.2", "react": "*", "react-copy-to-clipboard": "^4.2.3", @@ -41,5 +42,12 @@ "categories": [ "info-display" ] + }, + "scripts": { + "prepublish": "ice block build" + }, + "publishConfig": { + "access": "public", + "registry": "http://registry.npmjs.com/" } } diff --git a/blocks/ForgetPasswordForm/package.json b/blocks/ForgetPasswordForm/package.json index ad9847c6f4..6a77933416 100644 --- a/blocks/ForgetPasswordForm/package.json +++ b/blocks/ForgetPasswordForm/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/forget-password-form-block", - "version": "0.1.2", + "version": "0.1.3", "description": "忘记密码", "files": [ "src/", @@ -29,6 +29,7 @@ }, "devDependencies": { "@icedesign/demo-layout": "^0.1.0", + "@icedesign/scripts": "^0.1.9", "@icedesign/skin": "^0.1.2", "react": "*", "react-copy-to-clipboard": "^4.2.3", @@ -42,5 +43,12 @@ "categories": [ "form" ] + }, + "scripts": { + "prepublish": "ice block build" + }, + "publishConfig": { + "access": "public", + "registry": "http://registry.npmjs.com/" } } diff --git a/blocks/InfoDisplayTab/package.json b/blocks/InfoDisplayTab/package.json index 48f25830a3..fd9f0d96eb 100644 --- a/blocks/InfoDisplayTab/package.json +++ b/blocks/InfoDisplayTab/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/info-display-tab-block", - "version": "0.1.1", + "version": "0.1.2", "description": "标签页信息展示", "main": "lib/index.js", "files": [ @@ -31,6 +31,7 @@ }, "devDependencies": { "@icedesign/demo-layout": "^0.1.0", + "@icedesign/scripts": "^0.1.9", "@icedesign/skin": "^0.1.2", "react": "*", "react-dom": "*" @@ -43,5 +44,12 @@ "categories": [ "info-display" ] + }, + "scripts": { + "prepublish": "ice block build" + }, + "publishConfig": { + "access": "public", + "registry": "http://registry.npmjs.com/" } } diff --git a/blocks/InfoDisplayTable/package.json b/blocks/InfoDisplayTable/package.json index 59be29e1b8..4b8913e2d6 100644 --- a/blocks/InfoDisplayTable/package.json +++ b/blocks/InfoDisplayTable/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/info-display-table-block", - "version": "0.1.1", + "version": "0.1.2", "description": "两栏信息展示型表格", "main": "lib/index.js", "files": [ @@ -29,6 +29,7 @@ }, "devDependencies": { "@icedesign/demo-layout": "^0.1.0", + "@icedesign/scripts": "^0.1.9", "@icedesign/skin": "^0.1.2", "react": "*", "react-dom": "*" @@ -41,5 +42,12 @@ "categories": [ "table" ] + }, + "scripts": { + "prepublish": "ice block build" + }, + "publishConfig": { + "access": "public", + "registry": "http://registry.npmjs.com/" } } diff --git a/blocks/JoinUs/package.json b/blocks/JoinUs/package.json index 7fa24f6b7c..95a2262794 100644 --- a/blocks/JoinUs/package.json +++ b/blocks/JoinUs/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/join-us-block-block", - "version": "0.1.1", + "version": "0.1.2", "description": "", "files": [ "src/", @@ -29,6 +29,7 @@ }, "devDependencies": { "@icedesign/demo-layout": "^0.1.0", + "@icedesign/scripts": "^0.1.9", "@icedesign/skin": "^0.1.2", "react": "*", "react-copy-to-clipboard": "^4.2.3", @@ -42,5 +43,12 @@ "categories": [ "form" ] + }, + "scripts": { + "prepublish": "ice block build" + }, + "publishConfig": { + "access": "public", + "registry": "http://registry.npmjs.com/" } } diff --git a/blocks/LandingIntroBanner/package.json b/blocks/LandingIntroBanner/package.json index c9bf0f3a71..c08d1edbb7 100644 --- a/blocks/LandingIntroBanner/package.json +++ b/blocks/LandingIntroBanner/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/landing-intro-banner-block", - "version": "0.1.2", + "version": "0.1.3", "description": "首页介绍 Banner", "main": "lib/index.js", "files": [ @@ -28,6 +28,7 @@ }, "devDependencies": { "@icedesign/demo-layout": "^0.1.0", + "@icedesign/scripts": "^0.1.9", "@icedesign/skin": "^0.1.3", "react": "*", "react-dom": "*" @@ -40,5 +41,12 @@ "categories": [ "info-display" ] + }, + "scripts": { + "prepublish": "ice block build" + }, + "publishConfig": { + "access": "public", + "registry": "http://registry.npmjs.com/" } } diff --git a/blocks/LeftContentDisplay/package.json b/blocks/LeftContentDisplay/package.json index 5b4975169a..0cd26097fd 100644 --- a/blocks/LeftContentDisplay/package.json +++ b/blocks/LeftContentDisplay/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/left-content-display-block", - "version": "0.1.1", + "version": "0.1.2", "description": "", "files": [ "src/", @@ -28,6 +28,7 @@ }, "devDependencies": { "@icedesign/demo-layout": "^0.1.0", + "@icedesign/scripts": "^0.1.9", "@icedesign/skin": "^0.1.2", "react": "*", "react-copy-to-clipboard": "^4.2.3", @@ -41,5 +42,12 @@ "categories": [ "info-display" ] + }, + "scripts": { + "prepublish": "ice block build" + }, + "publishConfig": { + "access": "public", + "registry": "http://registry.npmjs.com/" } } diff --git a/blocks/LiteTable/package.json b/blocks/LiteTable/package.json index f6af661638..f73a2ac306 100644 --- a/blocks/LiteTable/package.json +++ b/blocks/LiteTable/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/lite-table-block", - "version": "0.1.1", + "version": "0.1.2", "description": "简单的附带状态的表格", "files": [ "src/", @@ -28,6 +28,7 @@ }, "devDependencies": { "@icedesign/demo-layout": "^0.1.0", + "@icedesign/scripts": "^0.1.9", "@icedesign/skin": "^0.1.2", "react": "*", "react-copy-to-clipboard": "^4.2.3", @@ -41,5 +42,12 @@ "categories": [ "table" ] + }, + "scripts": { + "prepublish": "ice block build" + }, + "publishConfig": { + "access": "public", + "registry": "http://registry.npmjs.com/" } } diff --git a/blocks/MessageList/package.json b/blocks/MessageList/package.json index eeacd66eee..93269478ac 100644 --- a/blocks/MessageList/package.json +++ b/blocks/MessageList/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/message-list-block", - "version": "0.1.2", + "version": "0.1.3", "description": "消息列表", "files": [ "src/", @@ -28,6 +28,7 @@ }, "devDependencies": { "@icedesign/demo-layout": "^0.1.0", + "@icedesign/scripts": "^0.1.9", "@icedesign/skin": "^0.1.2", "react": "*", "react-dom": "*" @@ -40,5 +41,12 @@ "categories": [ "list" ] + }, + "scripts": { + "prepublish": "ice block build" + }, + "publishConfig": { + "access": "public", + "registry": "http://registry.npmjs.com/" } } diff --git a/blocks/MonacoEditor/package.json b/blocks/MonacoEditor/package.json index b448b86be8..e47e032b11 100644 --- a/blocks/MonacoEditor/package.json +++ b/blocks/MonacoEditor/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/monaco-editor-block", - "version": "0.1.1", + "version": "0.1.2", "description": "Monaco 代码编辑器", "files": [ "src/", @@ -30,6 +30,7 @@ }, "devDependencies": { "@icedesign/demo-layout": "^0.1.2", + "@icedesign/scripts": "^0.1.9", "@icedesign/skin": "^0.1.2", "react": "*", "react-copy-to-clipboard": "^4.2.3", @@ -43,5 +44,12 @@ "categories": [ "form" ] + }, + "scripts": { + "prepublish": "ice block build" + }, + "publishConfig": { + "access": "public", + "registry": "http://registry.npmjs.com/" } } diff --git a/blocks/NotPermission/package.json b/blocks/NotPermission/package.json index 31452be8c4..30b9e1c1d7 100644 --- a/blocks/NotPermission/package.json +++ b/blocks/NotPermission/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/not-permission-block", - "version": "0.1.1", + "version": "0.1.2", "description": "", "files": [ "src/", @@ -28,6 +28,7 @@ }, "devDependencies": { "@icedesign/demo-layout": "^0.1.0", + "@icedesign/scripts": "^0.1.9", "@icedesign/skin": "^0.1.2", "react": "*", "react-copy-to-clipboard": "^4.2.3", @@ -41,5 +42,12 @@ "categories": [ "exception" ] + }, + "scripts": { + "prepublish": "ice block build" + }, + "publishConfig": { + "access": "public", + "registry": "http://registry.npmjs.com/" } } diff --git a/blocks/OperationTable/package.json b/blocks/OperationTable/package.json index 8b84268607..62ca10b871 100644 --- a/blocks/OperationTable/package.json +++ b/blocks/OperationTable/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/operation-table-block", - "version": "0.1.1", + "version": "0.1.2", "description": "附带操作按钮的表格", "main": "lib/index.js", "files": [ @@ -33,6 +33,7 @@ }, "devDependencies": { "@icedesign/demo-layout": "^0.1.0", + "@icedesign/scripts": "^0.1.9", "@icedesign/skin": "^0.1.2", "react": "*", "react-dom": "*" @@ -45,5 +46,12 @@ "categories": [ "table" ] + }, + "scripts": { + "prepublish": "ice block build" + }, + "publishConfig": { + "access": "public", + "registry": "http://registry.npmjs.com/" } } diff --git a/blocks/OrderList/package.json b/blocks/OrderList/package.json index 23e7626835..d1cc10ac7f 100644 --- a/blocks/OrderList/package.json +++ b/blocks/OrderList/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/order-list-block", - "version": "0.1.1", + "version": "0.1.2", "description": "订单型列表", "main": "lib/index.js", "files": [ @@ -30,6 +30,7 @@ }, "devDependencies": { "@icedesign/demo-layout": "^0.1.0", + "@icedesign/scripts": "^0.1.9", "@icedesign/skin": "^0.1.2", "react": "*", "react-dom": "*" @@ -42,5 +43,12 @@ "categories": [ "list" ] + }, + "scripts": { + "prepublish": "ice block build" + }, + "publishConfig": { + "access": "public", + "registry": "http://registry.npmjs.com/" } } diff --git a/blocks/OurTeam/package.json b/blocks/OurTeam/package.json index 1ba39c8062..2ee436984b 100644 --- a/blocks/OurTeam/package.json +++ b/blocks/OurTeam/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/our-team-block", - "version": "0.1.1", + "version": "0.1.2", "description": "", "files": [ "src/", @@ -28,6 +28,7 @@ }, "devDependencies": { "@icedesign/demo-layout": "^0.1.0", + "@icedesign/scripts": "^0.1.9", "@icedesign/skin": "^0.1.2", "react": "*", "react-dom": "*" @@ -40,5 +41,12 @@ "categories": [ "info-display" ] + }, + "scripts": { + "prepublish": "ice block build" + }, + "publishConfig": { + "access": "public", + "registry": "http://registry.npmjs.com/" } } diff --git a/blocks/PictureTextList/package.json b/blocks/PictureTextList/package.json index d3ba4fa005..1421650977 100644 --- a/blocks/PictureTextList/package.json +++ b/blocks/PictureTextList/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/picture-text-list-block", - "version": "0.1.1", + "version": "0.1.2", "description": "图文列表", "files": [ "src/", @@ -28,6 +28,7 @@ }, "devDependencies": { "@icedesign/demo-layout": "^0.1.2", + "@icedesign/scripts": "^0.1.9", "@icedesign/skin": "^0.1.2", "react": "*", "react-dom": "*" @@ -40,5 +41,12 @@ "categories": [ "list" ] + }, + "scripts": { + "prepublish": "ice block build" + }, + "publishConfig": { + "access": "public", + "registry": "http://registry.npmjs.com/" } } diff --git a/blocks/PieDoughnutChart/package.json b/blocks/PieDoughnutChart/package.json index e610fd877d..9a5b974df8 100644 --- a/blocks/PieDoughnutChart/package.json +++ b/blocks/PieDoughnutChart/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/pie-doughnut-chart-block", - "version": "0.1.1", + "version": "0.1.2", "description": "饼图", "main": "lib/index.js", "files": [ @@ -31,6 +31,7 @@ }, "devDependencies": { "@icedesign/demo-layout": "^0.1.0", + "@icedesign/scripts": "^0.1.9", "@icedesign/skin": "^0.1.2", "react": "*", "react-dom": "*" @@ -43,5 +44,12 @@ "categories": [ "chart" ] + }, + "scripts": { + "prepublish": "ice block build" + }, + "publishConfig": { + "access": "public", + "registry": "http://registry.npmjs.com/" } } diff --git a/blocks/PriceCard/package.json b/blocks/PriceCard/package.json index 69c7766879..38a3e8882d 100644 --- a/blocks/PriceCard/package.json +++ b/blocks/PriceCard/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/price-card-block", - "version": "0.1.1", + "version": "0.1.2", "description": "", "files": [ "src/", @@ -28,6 +28,7 @@ }, "devDependencies": { "@icedesign/demo-layout": "^0.1.0", + "@icedesign/scripts": "^0.1.9", "@icedesign/skin": "^0.1.2", "react": "*", "react-copy-to-clipboard": "^4.2.3", @@ -41,5 +42,12 @@ "categories": [ "info-display" ] + }, + "scripts": { + "prepublish": "ice block build" + }, + "publishConfig": { + "access": "public", + "registry": "http://registry.npmjs.com/" } } diff --git a/blocks/PriceInfo/package.json b/blocks/PriceInfo/package.json index 09173e7b3a..74c28cd37b 100644 --- a/blocks/PriceInfo/package.json +++ b/blocks/PriceInfo/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/price-info-block", - "version": "0.1.1", + "version": "0.1.2", "description": "", "files": [ "src/", @@ -28,6 +28,7 @@ }, "devDependencies": { "@icedesign/demo-layout": "^0.1.0", + "@icedesign/scripts": "^0.1.9", "@icedesign/skin": "^0.1.2", "react": "*", "react-dom": "*" @@ -40,5 +41,12 @@ "categories": [ "info-display" ] + }, + "scripts": { + "prepublish": "ice block build" + }, + "publishConfig": { + "access": "public", + "registry": "http://registry.npmjs.com/" } } diff --git a/blocks/PrivateMessageForm/package.json b/blocks/PrivateMessageForm/package.json index 482d7ab2fd..2891c37794 100644 --- a/blocks/PrivateMessageForm/package.json +++ b/blocks/PrivateMessageForm/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/private-message-form-block", - "version": "0.1.2", + "version": "0.1.3", "description": "私有消息表单", "files": [ "src/", @@ -28,6 +28,7 @@ }, "devDependencies": { "@icedesign/demo-layout": "^0.1.0", + "@icedesign/scripts": "^0.1.9", "@icedesign/skin": "^0.1.2", "react": "*", "react-copy-to-clipboard": "^4.2.3", @@ -41,5 +42,12 @@ "categories": [ "form" ] + }, + "scripts": { + "prepublish": "ice block build" + }, + "publishConfig": { + "access": "public", + "registry": "http://registry.npmjs.com/" } } diff --git a/blocks/ProductInfo/package.json b/blocks/ProductInfo/package.json index 7ffd510ac8..aec989af68 100644 --- a/blocks/ProductInfo/package.json +++ b/blocks/ProductInfo/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/product-info-block", - "version": "0.1.1", + "version": "0.1.2", "description": "产品信息展示", "files": [ "src/", @@ -28,6 +28,7 @@ }, "devDependencies": { "@icedesign/demo-layout": "^0.1.0", + "@icedesign/scripts": "^0.1.9", "@icedesign/skin": "^0.1.2", "react": "*", "react-dom": "*" @@ -40,5 +41,12 @@ "categories": [ "info-display" ] + }, + "scripts": { + "prepublish": "ice block build" + }, + "publishConfig": { + "access": "public", + "registry": "http://registry.npmjs.com/" } } diff --git a/blocks/ProgressTable/package.json b/blocks/ProgressTable/package.json index 2914cc968d..dae9a3540d 100644 --- a/blocks/ProgressTable/package.json +++ b/blocks/ProgressTable/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/progress-table-block", - "version": "0.1.1", + "version": "0.1.2", "description": "进度条表格", "main": "lib/index.js", "files": [ @@ -28,6 +28,7 @@ }, "devDependencies": { "@icedesign/demo-layout": "^0.1.0", + "@icedesign/scripts": "^0.1.9", "@icedesign/skin": "^0.1.3", "react": "*", "react-dom": "*" @@ -40,5 +41,12 @@ "categories": [ "table" ] + }, + "scripts": { + "prepublish": "ice block build" + }, + "publishConfig": { + "access": "public", + "registry": "http://registry.npmjs.com/" } } diff --git a/blocks/RegisterForm/package.json b/blocks/RegisterForm/package.json index b4a42b771c..2a88e52446 100644 --- a/blocks/RegisterForm/package.json +++ b/blocks/RegisterForm/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/register-form-block", - "version": "0.1.1", + "version": "0.1.2", "description": "注册表单", "main": "lib/index.js", "files": [ @@ -29,6 +29,7 @@ }, "devDependencies": { "@icedesign/demo-layout": "^0.1.2", + "@icedesign/scripts": "^0.1.9", "@icedesign/skin": "^0.1.2", "react": "*", "react-dom": "*" @@ -41,5 +42,12 @@ "categories": [ "form" ] + }, + "scripts": { + "prepublish": "ice block build" + }, + "publishConfig": { + "access": "public", + "registry": "http://registry.npmjs.com/" } } diff --git a/blocks/RightContentDisplay/package.json b/blocks/RightContentDisplay/package.json index 35abef4913..03e4660c25 100644 --- a/blocks/RightContentDisplay/package.json +++ b/blocks/RightContentDisplay/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/right-content-display-block", - "version": "0.1.1", + "version": "0.1.2", "description": "", "files": [ "src/", @@ -28,6 +28,7 @@ }, "devDependencies": { "@icedesign/demo-layout": "^0.1.0", + "@icedesign/scripts": "^0.1.9", "@icedesign/skin": "^0.1.2", "react": "*", "react-copy-to-clipboard": "^4.2.3", @@ -41,5 +42,12 @@ "categories": [ "info-display" ] + }, + "scripts": { + "prepublish": "ice block build" + }, + "publishConfig": { + "access": "public", + "registry": "http://registry.npmjs.com/" } } diff --git a/blocks/SelectableTable/package.json b/blocks/SelectableTable/package.json index 4713882073..5f798e3fa8 100644 --- a/blocks/SelectableTable/package.json +++ b/blocks/SelectableTable/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/selectable-table-block", - "version": "0.1.1", + "version": "0.1.2", "description": "可批量操作的表格", "main": "lib/index.js", "files": [ @@ -29,6 +29,7 @@ }, "devDependencies": { "@icedesign/demo-layout": "^0.1.0", + "@icedesign/scripts": "^0.1.9", "@icedesign/skin": "^0.1.2", "react": "*", "react-dom": "*" @@ -41,5 +42,12 @@ "categories": [ "table" ] + }, + "scripts": { + "prepublish": "ice block build" + }, + "publishConfig": { + "access": "public", + "registry": "http://registry.npmjs.com/" } } diff --git a/blocks/SignupForm/package.json b/blocks/SignupForm/package.json index 551d73e32c..b492075466 100644 --- a/blocks/SignupForm/package.json +++ b/blocks/SignupForm/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/signup-form-block", - "version": "0.1.1", + "version": "0.1.2", "description": "登录表单", "main": "lib/index.js", "files": [ @@ -29,6 +29,7 @@ }, "devDependencies": { "@icedesign/demo-layout": "^0.1.0", + "@icedesign/scripts": "^0.1.9", "@icedesign/skin": "^0.1.2", "react": "*", "react-dom": "*" @@ -41,5 +42,12 @@ "categories": [ "form" ] + }, + "scripts": { + "prepublish": "ice block build" + }, + "publishConfig": { + "access": "public", + "registry": "http://registry.npmjs.com/" } } diff --git a/blocks/SimpleFluencyForm/package.json b/blocks/SimpleFluencyForm/package.json index 65f5242408..2cde5070f1 100644 --- a/blocks/SimpleFluencyForm/package.json +++ b/blocks/SimpleFluencyForm/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/simple-fluency-form-block", - "version": "0.1.1", + "version": "0.1.2", "description": "SimpleFluencyForm", "files": [ "src/", @@ -29,6 +29,7 @@ }, "devDependencies": { "@icedesign/demo-layout": "^0.1.0", + "@icedesign/scripts": "^0.1.9", "@icedesign/skin": "^0.1.2", "react": "*", "react-copy-to-clipboard": "^4.2.3", @@ -42,5 +43,12 @@ "categories": [ "form" ] + }, + "scripts": { + "prepublish": "ice block build" + }, + "publishConfig": { + "access": "public", + "registry": "http://registry.npmjs.com/" } } diff --git a/blocks/SimpleFormDialog/package.json b/blocks/SimpleFormDialog/package.json index bc7783117c..8b9d68a153 100644 --- a/blocks/SimpleFormDialog/package.json +++ b/blocks/SimpleFormDialog/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/simple-form-dialog-block", - "version": "0.1.1", + "version": "0.1.2", "description": "简单的表单弹窗", "files": [ "src/", @@ -29,6 +29,7 @@ }, "devDependencies": { "@icedesign/demo-layout": "^0.1.0", + "@icedesign/scripts": "^0.1.9", "@icedesign/skin": "^0.1.2", "react": "*", "react-dom": "*" @@ -41,5 +42,12 @@ ], "snapshot": "https://img.alicdn.com/tfs/TB1.65ri9_I8KJjy0FoXXaFnVXa-1270-628.png", "themePackage": "@icedesign/skin" + }, + "scripts": { + "prepublish": "ice block build" + }, + "publishConfig": { + "access": "public", + "registry": "http://registry.npmjs.com/" } } diff --git a/blocks/SimpleTable/package.json b/blocks/SimpleTable/package.json index 3480297478..3b11f637f0 100644 --- a/blocks/SimpleTable/package.json +++ b/blocks/SimpleTable/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/simple-table-block", - "version": "0.1.1", + "version": "0.1.2", "description": "基础的表格", "main": "lib/index.js", "files": [ @@ -31,6 +31,7 @@ }, "devDependencies": { "@icedesign/demo-layout": "latest", + "@icedesign/scripts": "^0.1.9", "@icedesign/skin": "^0.1.3", "react": "*", "react-dom": "*" @@ -43,5 +44,12 @@ "categories": [ "table" ] + }, + "scripts": { + "prepublish": "ice block build" + }, + "publishConfig": { + "access": "public", + "registry": "http://registry.npmjs.com/" } } diff --git a/blocks/SimpleTestimonial/package.json b/blocks/SimpleTestimonial/package.json index c94fcca6a6..68ee8d6ff9 100644 --- a/blocks/SimpleTestimonial/package.json +++ b/blocks/SimpleTestimonial/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/simple-testimonial-block", - "version": "0.1.1", + "version": "0.1.2", "description": "", "files": [ "src/", @@ -28,6 +28,7 @@ }, "devDependencies": { "@icedesign/demo-layout": "^0.1.0", + "@icedesign/scripts": "^0.1.9", "@icedesign/skin": "^0.1.2", "react": "*", "react-dom": "*" @@ -40,5 +41,12 @@ "categories": [ "info-display" ] + }, + "scripts": { + "prepublish": "ice block build" + }, + "publishConfig": { + "access": "public", + "registry": "http://registry.npmjs.com/" } } diff --git a/blocks/SortCardList/package.json b/blocks/SortCardList/package.json index 8b44b40790..e254e4b790 100644 --- a/blocks/SortCardList/package.json +++ b/blocks/SortCardList/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/sort-card-list-block", - "version": "0.1.1", + "version": "0.1.2", "description": "拖拽排序卡片列表", "files": [ "src/", @@ -28,6 +28,7 @@ }, "devDependencies": { "@icedesign/demo-layout": "^0.1.0", + "@icedesign/scripts": "^0.1.9", "@icedesign/skin": "^0.1.2", "react": "*", "react-copy-to-clipboard": "^4.2.3", @@ -41,5 +42,12 @@ "categories": [ "list" ] + }, + "scripts": { + "prepublish": "ice block build" + }, + "publishConfig": { + "access": "public", + "registry": "http://registry.npmjs.com/" } } diff --git a/blocks/StatisticalCard/package.json b/blocks/StatisticalCard/package.json index 298bce08ea..73426c6b7a 100644 --- a/blocks/StatisticalCard/package.json +++ b/blocks/StatisticalCard/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/statistical-card-block", - "version": "0.1.1", + "version": "0.1.2", "description": "统计型卡片", "files": [ "src/", @@ -28,6 +28,7 @@ }, "devDependencies": { "@icedesign/demo-layout": "^0.1.0", + "@icedesign/scripts": "^0.1.9", "@icedesign/skin": "^0.1.2", "react": "*", "react-dom": "*" @@ -40,5 +41,12 @@ "categories": [ "data-display" ] + }, + "scripts": { + "prepublish": "ice block build" + }, + "publishConfig": { + "access": "public", + "registry": "http://registry.npmjs.com/" } } diff --git a/blocks/Subscribe/package.json b/blocks/Subscribe/package.json index 217d99b6be..5041fd2d80 100644 --- a/blocks/Subscribe/package.json +++ b/blocks/Subscribe/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/subscribe-block", - "version": "0.1.1", + "version": "0.1.2", "description": "订阅", "files": [ "src/", @@ -29,6 +29,7 @@ }, "devDependencies": { "@icedesign/demo-layout": "^0.1.0", + "@icedesign/scripts": "^0.1.9", "@icedesign/skin": "^0.1.2", "react": "*", "react-copy-to-clipboard": "^4.2.3", @@ -42,5 +43,12 @@ "categories": [ "form" ] + }, + "scripts": { + "prepublish": "ice block build" + }, + "publishConfig": { + "access": "public", + "registry": "http://registry.npmjs.com/" } } diff --git a/blocks/SuccessDetail/package.json b/blocks/SuccessDetail/package.json index 0d534a7d93..25ff24c769 100644 --- a/blocks/SuccessDetail/package.json +++ b/blocks/SuccessDetail/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/success-detail-block", - "version": "0.1.1", + "version": "0.1.2", "description": "成功详情信息展示", "files": [ "src/", @@ -28,6 +28,7 @@ }, "devDependencies": { "@icedesign/demo-layout": "^0.1.0", + "@icedesign/scripts": "^0.1.9", "@icedesign/skin": "^0.1.2", "react": "*", "react-dom": "*" @@ -40,5 +41,12 @@ "categories": [ "info-display" ] + }, + "scripts": { + "prepublish": "ice block build" + }, + "publishConfig": { + "access": "public", + "registry": "http://registry.npmjs.com/" } } diff --git a/blocks/SuccessDialog/package.json b/blocks/SuccessDialog/package.json index 2b67e8872b..41ecf6287f 100644 --- a/blocks/SuccessDialog/package.json +++ b/blocks/SuccessDialog/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/success-dialog-block", - "version": "0.1.2", + "version": "0.1.3", "description": "提示框-成功", "main": "lib/index.js", "files": [ @@ -29,6 +29,7 @@ }, "devDependencies": { "@icedesign/demo-layout": "^0.1.0", + "@icedesign/scripts": "^0.1.9", "@icedesign/skin": "^0.1.2", "react": "*", "react-dom": "*" @@ -41,5 +42,12 @@ ], "snapshot": "https://img.alicdn.com/tfs/TB1CMVpi5qAXuNjy1XdXXaYcVXa-1278-540.png", "themePackage": "@icedesign/skin" + }, + "scripts": { + "prepublish": "ice block build" + }, + "publishConfig": { + "access": "public", + "registry": "http://registry.npmjs.com/" } } diff --git a/blocks/SystemNoticeList/package.json b/blocks/SystemNoticeList/package.json index b4612516e1..fb29115640 100644 --- a/blocks/SystemNoticeList/package.json +++ b/blocks/SystemNoticeList/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/system-notice-list-block", - "version": "0.1.1", + "version": "0.1.2", "description": "系统消息列表", "main": "lib/index.js", "files": [ @@ -29,6 +29,7 @@ }, "devDependencies": { "@icedesign/demo-layout": "^0.1.0", + "@icedesign/scripts": "^0.1.9", "@icedesign/skin": "^0.1.2", "react": "*", "react-dom": "*" @@ -41,5 +42,12 @@ "categories": [ "list" ] + }, + "scripts": { + "prepublish": "ice block build" + }, + "publishConfig": { + "access": "public", + "registry": "http://registry.npmjs.com/" } } diff --git a/blocks/TabArticle/package.json b/blocks/TabArticle/package.json index f9fb7f26e9..6c4f30a2dd 100644 --- a/blocks/TabArticle/package.json +++ b/blocks/TabArticle/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/tab-article-block", - "version": "0.1.1", + "version": "0.1.2", "description": "tab和文章列表组合", "files": [ "src/", @@ -28,6 +28,7 @@ }, "devDependencies": { "@icedesign/demo-layout": "^0.1.0", + "@icedesign/scripts": "^0.1.9", "@icedesign/skin": "^0.1.2", "react": "*", "react-dom": "*" @@ -40,5 +41,12 @@ "categories": [ "list" ] + }, + "scripts": { + "prepublish": "ice block build" + }, + "publishConfig": { + "access": "public", + "registry": "http://registry.npmjs.com/" } } diff --git a/blocks/TabChart/package.json b/blocks/TabChart/package.json index a05e955d4e..ba97c33b48 100644 --- a/blocks/TabChart/package.json +++ b/blocks/TabChart/package.json @@ -1,8 +1,13 @@ { "name": "@icedesign/tab-chart-block", - "version": "0.1.0", + "version": "0.1.1", "description": "标签页和图表组合使用", - "files": ["src/", "demo/", "lib/", "mock/"], + "files": [ + "src/", + "demo/", + "lib/", + "mock/" + ], "author": { "name": "ICE Team", "email": "ice-admin@alibaba-inc.com" @@ -12,7 +17,10 @@ "url": "https://github.com/alibaba/ice" }, "license": "MIT", - "keywords": ["ice", "ice-block"], + "keywords": [ + "ice", + "ice-block" + ], "dependencies": { "@antv/data-set": "^0.8.3", "@icedesign/base": "^0.1.0", @@ -22,16 +30,26 @@ }, "devDependencies": { "@icedesign/demo-layout": "^0.1.2", + "@icedesign/scripts": "^0.1.9", "@icedesign/skin": "latest", "react": "*", "react-dom": "*" }, "blockConfig": { "name": "tab-chart", - "snapshot": - "https://img.alicdn.com/tfs/TB1OVMBmb_I8KJjy1XaXXbsxpXa-1920-764.png", + "snapshot": "https://img.alicdn.com/tfs/TB1OVMBmb_I8KJjy1XaXXbsxpXa-1920-764.png", "title": "标签页图表组合", - "categories": ["chart", "data-display"], + "categories": [ + "chart", + "data-display" + ], "themePackage": "@icedesign/skin" + }, + "scripts": { + "prepublish": "ice block build" + }, + "publishConfig": { + "access": "public", + "registry": "http://registry.npmjs.com/" } } diff --git a/blocks/TabDialog/package.json b/blocks/TabDialog/package.json index f97b483b1e..b0c14982bb 100644 --- a/blocks/TabDialog/package.json +++ b/blocks/TabDialog/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/tab-dialog-block", - "version": "0.1.2", + "version": "0.1.3", "description": "标签内容弹窗", "files": [ "src/", @@ -28,6 +28,7 @@ }, "devDependencies": { "@icedesign/demo-layout": "^0.1.0", + "@icedesign/scripts": "^0.1.9", "@icedesign/skin": "^0.1.2", "react": "*", "react-dom": "*" @@ -40,5 +41,12 @@ ], "snapshot": "https://img.alicdn.com/tfs/TB19AF4gOqAXuNjy1XdXXaYcVXa-1262-812.png", "themePackage": "@icedesign/skin" + }, + "scripts": { + "prepublish": "ice block build" + }, + "publishConfig": { + "access": "public", + "registry": "http://registry.npmjs.com/" } } diff --git a/blocks/TagMessageList/package.json b/blocks/TagMessageList/package.json index 5bcc38ac78..479f99ce34 100644 --- a/blocks/TagMessageList/package.json +++ b/blocks/TagMessageList/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/tag-message-list-block", - "version": "0.1.1", + "version": "0.1.2", "description": "标签消息列表", "files": [ "src/", @@ -28,6 +28,7 @@ }, "devDependencies": { "@icedesign/demo-layout": "^0.1.0", + "@icedesign/scripts": "^0.1.9", "@icedesign/skin": "^0.1.2", "react": "*", "react-copy-to-clipboard": "^4.2.3", @@ -41,5 +42,12 @@ "categories": [ "list" ] + }, + "scripts": { + "prepublish": "ice block build" + }, + "publishConfig": { + "access": "public", + "registry": "http://registry.npmjs.com/" } } diff --git a/blocks/TeamDisplay/package.json b/blocks/TeamDisplay/package.json index 6302eb80a1..13cc33f57e 100644 --- a/blocks/TeamDisplay/package.json +++ b/blocks/TeamDisplay/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/team-display-block", - "version": "0.1.1", + "version": "0.1.2", "description": "", "files": [ "src/", @@ -28,6 +28,7 @@ }, "devDependencies": { "@icedesign/demo-layout": "^0.1.0", + "@icedesign/scripts": "^0.1.9", "@icedesign/skin": "^0.1.2", "react": "*", "react-dom": "*" @@ -40,5 +41,12 @@ "categories": [ "info-display" ] + }, + "scripts": { + "prepublish": "ice block build" + }, + "publishConfig": { + "access": "public", + "registry": "http://registry.npmjs.com/" } } diff --git a/blocks/TermsInfo/package.json b/blocks/TermsInfo/package.json index 7cf0f56b9a..eea4091eef 100644 --- a/blocks/TermsInfo/package.json +++ b/blocks/TermsInfo/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/terms-info-block", - "version": "0.1.1", + "version": "0.1.2", "description": "协议信息展示", "main": "lib/index.js", "files": [ @@ -29,6 +29,7 @@ }, "devDependencies": { "@icedesign/demo-layout": "^0.1.0", + "@icedesign/scripts": "^0.1.9", "@icedesign/skin": "^0.1.2", "react": "*", "react-dom": "*" @@ -41,5 +42,12 @@ "categories": [ "info-display" ] + }, + "scripts": { + "prepublish": "ice block build" + }, + "publishConfig": { + "access": "public", + "registry": "http://registry.npmjs.com/" } } diff --git a/blocks/Testimonial/package.json b/blocks/Testimonial/package.json index 372d4b314a..3c149a3256 100644 --- a/blocks/Testimonial/package.json +++ b/blocks/Testimonial/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/testimonial-block", - "version": "0.1.2", + "version": "0.1.3", "description": "", "files": [ "src/", @@ -28,6 +28,7 @@ }, "devDependencies": { "@icedesign/demo-layout": "^0.1.0", + "@icedesign/scripts": "^0.1.9", "@icedesign/skin": "^0.1.2", "react": "*", "react-dom": "*" @@ -40,5 +41,12 @@ "categories": [ "info-display" ] + }, + "scripts": { + "prepublish": "ice block build" + }, + "publishConfig": { + "access": "public", + "registry": "http://registry.npmjs.com/" } } diff --git a/blocks/TestimonialCard/package.json b/blocks/TestimonialCard/package.json index 3fa0e99238..a4e8a24844 100644 --- a/blocks/TestimonialCard/package.json +++ b/blocks/TestimonialCard/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/testimonial-card-block", - "version": "0.1.1", + "version": "0.1.2", "description": "", "files": [ "src/", @@ -29,6 +29,7 @@ }, "devDependencies": { "@icedesign/demo-layout": "^0.1.0", + "@icedesign/scripts": "^0.1.9", "@icedesign/skin": "^0.1.2", "react": "*", "react-dom": "*" @@ -41,5 +42,12 @@ "categories": [ "info-display" ] + }, + "scripts": { + "prepublish": "ice block build" + }, + "publishConfig": { + "access": "public", + "registry": "http://registry.npmjs.com/" } } diff --git a/blocks/TextCard/package.json b/blocks/TextCard/package.json index cf6cec8062..f6a42f140c 100644 --- a/blocks/TextCard/package.json +++ b/blocks/TextCard/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/text-card-block", - "version": "0.1.1", + "version": "0.1.2", "description": "纯文字展示型卡片", "files": [ "src/", @@ -28,6 +28,7 @@ }, "devDependencies": { "@icedesign/demo-layout": "^0.1.0", + "@icedesign/scripts": "^0.1.9", "@icedesign/skin": "^0.1.2", "react": "*", "react-dom": "*" @@ -40,5 +41,12 @@ "categories": [ "data-display" ] + }, + "scripts": { + "prepublish": "ice block build" + }, + "publishConfig": { + "access": "public", + "registry": "http://registry.npmjs.com/" } } diff --git a/blocks/TextSearchList/package.json b/blocks/TextSearchList/package.json index 6222538a41..8508a36e5f 100644 --- a/blocks/TextSearchList/package.json +++ b/blocks/TextSearchList/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/text-search-list-block", - "version": "0.1.1", + "version": "0.1.2", "description": "文字搜索列表", "files": [ "src/", @@ -28,6 +28,7 @@ }, "devDependencies": { "@icedesign/demo-layout": "^0.1.0", + "@icedesign/scripts": "^0.1.9", "@icedesign/skin": "^0.1.2", "react": "*", "react-dom": "*" @@ -40,5 +41,12 @@ "categories": [ "list" ] + }, + "scripts": { + "prepublish": "ice block build" + }, + "publishConfig": { + "access": "public", + "registry": "http://registry.npmjs.com/" } } diff --git a/blocks/TimeFilterTable/package.json b/blocks/TimeFilterTable/package.json index f178f0bacf..e5b50afcdd 100644 --- a/blocks/TimeFilterTable/package.json +++ b/blocks/TimeFilterTable/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/time-filter-table-block", - "version": "0.1.1", + "version": "0.1.2", "description": "支持时间筛选的表格", "files": [ "src/", @@ -30,6 +30,7 @@ }, "devDependencies": { "@icedesign/demo-layout": "^0.1.0", + "@icedesign/scripts": "^0.1.9", "@icedesign/skin": "^0.1.4", "react": "*", "react-dom": "*" @@ -42,5 +43,12 @@ "categories": [ "table" ] + }, + "scripts": { + "prepublish": "ice block build" + }, + "publishConfig": { + "access": "public", + "registry": "http://registry.npmjs.com/" } } diff --git a/blocks/TopicCard/package.json b/blocks/TopicCard/package.json index a5f67af0d6..a9821373e8 100644 --- a/blocks/TopicCard/package.json +++ b/blocks/TopicCard/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/topic-card-block-block", - "version": "0.1.1", + "version": "0.1.2", "description": "核心数据", "main": "lib/index.js", "files": [ @@ -30,6 +30,7 @@ "devDependencies": { "@icedesign/demo-layout": "^0.1.2", "@icedesign/layout": "^0.1.0", + "@icedesign/scripts": "^0.1.9", "@icedesign/skin": "^0.1.2", "react": "*", "react-dom": "*" @@ -42,5 +43,12 @@ "categories": [ "data-display" ] + }, + "scripts": { + "prepublish": "ice block build" + }, + "publishConfig": { + "access": "public", + "registry": "http://registry.npmjs.com/" } } diff --git a/blocks/TreeCardList/package.json b/blocks/TreeCardList/package.json index 66ea07af4c..52fed958bf 100644 --- a/blocks/TreeCardList/package.json +++ b/blocks/TreeCardList/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/tree-card-list-block", - "version": "0.1.2", + "version": "0.1.3", "description": "树形卡片列表", "files": [ "src/", @@ -28,6 +28,7 @@ }, "devDependencies": { "@icedesign/demo-layout": "^0.1.0", + "@icedesign/scripts": "^0.1.9", "@icedesign/skin": "^0.1.3", "react": "*", "react-copy-to-clipboard": "^4.2.3", @@ -41,5 +42,12 @@ "categories": [ "list" ] + }, + "scripts": { + "prepublish": "ice block build" + }, + "publishConfig": { + "access": "public", + "registry": "http://registry.npmjs.com/" } } diff --git a/blocks/UserInfoCard/package.json b/blocks/UserInfoCard/package.json index 2e7960b782..5727aa548c 100644 --- a/blocks/UserInfoCard/package.json +++ b/blocks/UserInfoCard/package.json @@ -1,8 +1,13 @@ { "name": "@icedesign/user-info-card-block", - "version": "0.1.0", + "version": "0.1.1", "description": "", - "files": ["src/", "demo/", "lib/", "mock/"], + "files": [ + "src/", + "demo/", + "lib/", + "mock/" + ], "author": { "name": "ICE Team", "email": "ice-admin@alibaba-inc.com" @@ -12,7 +17,10 @@ "url": "https://github.com/alibaba/ice" }, "license": "MIT", - "keywords": ["ice", "ice-block"], + "keywords": [ + "ice", + "ice-block" + ], "dependencies": { "@icedesign/base": "^0.1.0", "@icedesign/card": "^0.1.1", @@ -20,16 +28,25 @@ }, "devDependencies": { "@icedesign/demo-layout": "^0.1.2", + "@icedesign/scripts": "^0.1.9", "@icedesign/skin": "latest", "react": "*", "react-dom": "*" }, "blockConfig": { "name": "user-info-card", - "snapshot": - "https://img.alicdn.com/tfs/TB1NxO4l8fH8KJjy1XbXXbLdXXa-978-668.png", + "snapshot": "https://img.alicdn.com/tfs/TB1NxO4l8fH8KJjy1XbXXbLdXXa-978-668.png", "themePackage": "@icedesign/skin", "title": "用户信息展示", - "categories": ["info-display"] + "categories": [ + "info-display" + ] + }, + "scripts": { + "prepublish": "ice block build" + }, + "publishConfig": { + "access": "public", + "registry": "http://registry.npmjs.com/" } } diff --git a/layouts/FixedHeaderFooterResponsiveLayout/package.json b/layouts/FixedHeaderFooterResponsiveLayout/package.json index f0d9aacff1..f505b52567 100644 --- a/layouts/FixedHeaderFooterResponsiveLayout/package.json +++ b/layouts/FixedHeaderFooterResponsiveLayout/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/fixed-header-footer-responsive-layout", - "version": "0.1.5", + "version": "0.1.6", "description": "固定的顶部导航 + 底部栏 + 自适应宽度内容区的布局, 通常用于项目介绍页, 首页。", "files": [ "src/", @@ -32,9 +32,16 @@ "react-router": "^3.2.0" }, "devDependencies": { + "@icedesign/scripts": "^0.1.7", "@icedesign/skin": "latest", "eslint-plugin-react": "^7.5.1" }, + "scripts": { + "prepublish": "ice block build" + }, + "publishConfig": { + "access": "public" + }, "blockConfig": { "name": "fixed-header-footer-responsive-layout", "title": "固定顶栏-底栏响应式布局", diff --git a/layouts/HeaderAsideFooterLayout/package.json b/layouts/HeaderAsideFooterLayout/package.json index 893f23e9c6..dc4333a341 100644 --- a/layouts/HeaderAsideFooterLayout/package.json +++ b/layouts/HeaderAsideFooterLayout/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/header-aside-footer-layout", - "version": "0.1.5", + "version": "0.1.6", "description": "固定宽度的内容区域, 顶栏 + 侧栏 + 底栏, 通常用于中后台站点正文内容", "files": [ "src/", @@ -32,9 +32,16 @@ "react-router": "^3.2.0" }, "devDependencies": { + "@icedesign/scripts": "^0.1.7", "@icedesign/skin": "latest", "eslint-plugin-react": "^7.5.1" }, + "scripts": { + "prepublish": "ice block build" + }, + "publishConfig": { + "access": "public" + }, "blockConfig": { "name": "header-aside-footer-layout", "title": "顶栏-侧栏-底栏-布局", diff --git a/layouts/HeaderAsideFooterResponsiveLayout/package.json b/layouts/HeaderAsideFooterResponsiveLayout/package.json index 86f54378e1..70d60ca464 100644 --- a/layouts/HeaderAsideFooterResponsiveLayout/package.json +++ b/layouts/HeaderAsideFooterResponsiveLayout/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/header-aside-footer-responsive-layout", - "version": "0.1.5", + "version": "0.1.6", "description": "顶部导航 + 边栏 + 底栏 + 响应式内容区的布局, 通常用于站点正文。", "files": [ "lib/", @@ -32,9 +32,16 @@ "react-router": "^3.2.0" }, "devDependencies": { + "@icedesign/scripts": "^0.1.7", "@icedesign/skin": "^0.1.0", "eslint-plugin-react": "^7.5.1" }, + "scripts": { + "prepublish": "ice block build" + }, + "publishConfig": { + "access": "public" + }, "blockConfig": { "name": "header-aside-footer-responsive-layout", "chinese": "顶栏-侧栏-底栏-响应式布局", diff --git a/layouts/HeaderFooterLayout/package.json b/layouts/HeaderFooterLayout/package.json index bcff53cb8b..55a00c1e85 100644 --- a/layouts/HeaderFooterLayout/package.json +++ b/layouts/HeaderFooterLayout/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/header-footer-layout", - "version": "0.1.5", + "version": "0.1.6", "description": "基础布局, 头部导航 + 底部栏 + 固定宽度内容区, 通常用于站点首页或者通用辅助页面。", "files": [ "src/", @@ -32,9 +32,16 @@ "react-router": "^3.2.0" }, "devDependencies": { + "@icedesign/scripts": "^0.1.7", "@icedesign/skin": "latest", "eslint-plugin-react": "^7.5.1" }, + "scripts": { + "prepublish": "ice block build" + }, + "publishConfig": { + "access": "public" + }, "blockConfig": { "name": "header-footer-layout", "title": "顶栏-底栏布局", From da1024ba2a230e4ad1705ea8a3c66a975951b334 Mon Sep 17 00:00:00 2001 From: wssgcg1213 Date: Tue, 16 Jan 2018 22:16:40 +0800 Subject: [PATCH 0059/1028] feat: add lerna publish --- blocks/ConfirmDialog/mock/api.json | 4 ---- lerna.json | 4 +++- 2 files changed, 3 insertions(+), 5 deletions(-) delete mode 100644 blocks/ConfirmDialog/mock/api.json diff --git a/blocks/ConfirmDialog/mock/api.json b/blocks/ConfirmDialog/mock/api.json deleted file mode 100644 index eee2984fbe..0000000000 --- a/blocks/ConfirmDialog/mock/api.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "status": "SUCCESS", - "data": {} -} diff --git a/lerna.json b/lerna.json index ee14cc696b..1320975d52 100644 --- a/lerna.json +++ b/lerna.json @@ -5,5 +5,7 @@ "blocks/*", "layouts/*" ], - "version": "independent" + "version": "independent", + "npmClient": "cnpm", + "registry": "http://registry.npm.taobao.org/" } From 869a9bbc6c4532e19ad4e90be8ff1b05f7412832 Mon Sep 17 00:00:00 2001 From: wssgcg1213 Date: Tue, 16 Jan 2018 22:19:29 +0800 Subject: [PATCH 0060/1028] chore: add registry for layouts --- layouts/FixedHeaderFooterResponsiveLayout/package.json | 3 ++- layouts/HeaderAsideFooterLayout/package.json | 3 ++- layouts/HeaderAsideFooterResponsiveLayout/package.json | 3 ++- layouts/HeaderFooterLayout/package.json | 3 ++- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/layouts/FixedHeaderFooterResponsiveLayout/package.json b/layouts/FixedHeaderFooterResponsiveLayout/package.json index f505b52567..f32e43eaaf 100644 --- a/layouts/FixedHeaderFooterResponsiveLayout/package.json +++ b/layouts/FixedHeaderFooterResponsiveLayout/package.json @@ -40,7 +40,8 @@ "prepublish": "ice block build" }, "publishConfig": { - "access": "public" + "access": "public", + "registry": "http://registry.npmjs.com/" }, "blockConfig": { "name": "fixed-header-footer-responsive-layout", diff --git a/layouts/HeaderAsideFooterLayout/package.json b/layouts/HeaderAsideFooterLayout/package.json index dc4333a341..b475bd4c0f 100644 --- a/layouts/HeaderAsideFooterLayout/package.json +++ b/layouts/HeaderAsideFooterLayout/package.json @@ -40,7 +40,8 @@ "prepublish": "ice block build" }, "publishConfig": { - "access": "public" + "access": "public", + "registry": "http://registry.npmjs.com/" }, "blockConfig": { "name": "header-aside-footer-layout", diff --git a/layouts/HeaderAsideFooterResponsiveLayout/package.json b/layouts/HeaderAsideFooterResponsiveLayout/package.json index 70d60ca464..af89146f6a 100644 --- a/layouts/HeaderAsideFooterResponsiveLayout/package.json +++ b/layouts/HeaderAsideFooterResponsiveLayout/package.json @@ -37,7 +37,8 @@ "eslint-plugin-react": "^7.5.1" }, "scripts": { - "prepublish": "ice block build" + "prepublish": "ice block build", + "registry": "http://registry.npmjs.com/" }, "publishConfig": { "access": "public" diff --git a/layouts/HeaderFooterLayout/package.json b/layouts/HeaderFooterLayout/package.json index 55a00c1e85..2366d8479a 100644 --- a/layouts/HeaderFooterLayout/package.json +++ b/layouts/HeaderFooterLayout/package.json @@ -37,7 +37,8 @@ "eslint-plugin-react": "^7.5.1" }, "scripts": { - "prepublish": "ice block build" + "prepublish": "ice block build", + "registry": "http://registry.npmjs.com/" }, "publishConfig": { "access": "public" From cae16d8258ed1030f663c976db6f973a69efc69d Mon Sep 17 00:00:00 2001 From: wssgcg1213 Date: Tue, 16 Jan 2018 22:23:39 +0800 Subject: [PATCH 0061/1028] Publish - @icedesign/application-progress-block@0.1.2 - @icedesign/article-list-block@0.1.2 - @icedesign/basic-detail-info-block@0.1.2 - @icedesign/brand-display-block@0.1.3 - @icedesign/brand-show-case-block@0.1.3 - @icedesign/collapse-card-block@0.1.3 - @icedesign/complex-dialog-block@0.1.4 - @icedesign/complex-filter-block@0.1.6 - @icedesign/complex-tab-table-block@0.1.3 - @icedesign/composite-filter-block@0.1.3 - @icedesign/confirm-dialog-block@0.1.3 - @icedesign/data-display-block@0.1.3 - @icedesign/detail-table-block@0.1.3 - @icedesign/display-card-block@0.1.3 - @icedesign/download-card-block@0.1.3 - @icedesign/editable-table-block@0.1.3 - @icedesign/empty-content-block@0.1.4 - @icedesign/enhance-table-block@0.1.3 - @icedesign/failure-detail-block@0.1.3 - @icedesign/feature-display-block@0.1.3 - @icedesign/feed-list-block@0.1.3 - @icedesign/filter-list-block@0.1.3 - @icedesign/filter-table-block@0.1.3 - @icedesign/filter-with-search-block@0.1.3 - @icedesign/footer-block@0.1.3 - @icedesign/footer-info-block@0.1.3 - @icedesign/forget-password-form-block@0.1.4 - @icedesign/info-display-tab-block@0.1.3 - @icedesign/info-display-table-block@0.1.3 - @icedesign/left-content-display-block@0.1.3 - @icedesign/message-list-block@0.1.4 - @icedesign/operation-table-block@0.1.3 - @icedesign/order-list-block@0.1.3 - @icedesign/our-team-block@0.1.3 - @icedesign/price-card-block@0.1.3 - @icedesign/price-info-block@0.1.3 - @icedesign/product-info-block@0.1.3 - @icedesign/progress-table-block@0.1.3 - @icedesign/register-form-block@0.1.3 - @icedesign/right-content-display-block@0.1.3 - @icedesign/selectable-table-block@0.1.3 - @icedesign/signup-form-block@0.1.3 - @icedesign/simple-form-dialog-block@0.1.3 - @icedesign/simple-testimonial-block@0.1.3 - @icedesign/subscribe-block@0.1.3 - @icedesign/success-detail-block@0.1.3 - @icedesign/success-dialog-block@0.1.4 - @icedesign/system-notice-list-block@0.1.3 - @icedesign/tab-chart-block@0.1.2 - @icedesign/terms-info-block@0.1.3 - @icedesign/text-card-block@0.1.3 - @icedesign/time-filter-table-block@0.1.3 - @icedesign/tree-card-list-block@0.1.4 - @icedesign/user-info-card-block@0.1.2 - @icedesign/fixed-header-footer-responsive-layout@0.1.7 - @icedesign/header-aside-footer-layout@0.1.7 - @icedesign/header-aside-footer-responsive-layout@0.1.7 - @icedesign/header-footer-layout@0.1.7 --- blocks/ApplicationProgress/package.json | 2 +- blocks/ArticleList/package.json | 2 +- blocks/BasicDetailInfo/package.json | 2 +- blocks/BrandDisplay/package.json | 2 +- blocks/BrandShowCase/package.json | 2 +- blocks/CollapseCard/package.json | 2 +- blocks/ComplexDialog/package.json | 2 +- blocks/ComplexFilter/package.json | 2 +- blocks/ComplexTabTable/package.json | 2 +- blocks/CompositeFilter/package.json | 2 +- blocks/ConfirmDialog/package.json | 2 +- blocks/DataDisplay/package.json | 2 +- blocks/DetailTable/package.json | 2 +- blocks/DisplayCard/package.json | 2 +- blocks/DownloadCard/package.json | 2 +- blocks/EditableTable/package.json | 2 +- blocks/EmptyContent/package.json | 2 +- blocks/EnhanceTable/package.json | 2 +- blocks/FailureDetail/package.json | 2 +- blocks/FeatureDisplay/package.json | 2 +- blocks/FeedList/package.json | 2 +- blocks/FilterList/package.json | 2 +- blocks/FilterTable/package.json | 2 +- blocks/FilterWithSearch/package.json | 2 +- blocks/Footer/package.json | 2 +- blocks/FooterInfo/package.json | 2 +- blocks/ForgetPasswordForm/package.json | 2 +- blocks/InfoDisplayTab/package.json | 2 +- blocks/InfoDisplayTable/package.json | 2 +- blocks/LeftContentDisplay/package.json | 2 +- blocks/MessageList/package.json | 2 +- blocks/OperationTable/package.json | 2 +- blocks/OrderList/package.json | 2 +- blocks/OurTeam/package.json | 2 +- blocks/PriceCard/package.json | 2 +- blocks/PriceInfo/package.json | 2 +- blocks/ProductInfo/package.json | 2 +- blocks/ProgressTable/package.json | 2 +- blocks/RegisterForm/package.json | 2 +- blocks/RightContentDisplay/package.json | 2 +- blocks/SelectableTable/package.json | 2 +- blocks/SignupForm/package.json | 2 +- blocks/SimpleFormDialog/package.json | 2 +- blocks/SimpleTestimonial/package.json | 2 +- blocks/Subscribe/package.json | 2 +- blocks/SuccessDetail/package.json | 2 +- blocks/SuccessDialog/package.json | 2 +- blocks/SystemNoticeList/package.json | 2 +- blocks/TabChart/package.json | 2 +- blocks/TermsInfo/package.json | 2 +- blocks/TextCard/package.json | 2 +- blocks/TimeFilterTable/package.json | 2 +- blocks/TreeCardList/package.json | 2 +- blocks/UserInfoCard/package.json | 2 +- layouts/FixedHeaderFooterResponsiveLayout/package.json | 2 +- layouts/HeaderAsideFooterLayout/package.json | 2 +- layouts/HeaderAsideFooterResponsiveLayout/package.json | 2 +- layouts/HeaderFooterLayout/package.json | 2 +- 58 files changed, 58 insertions(+), 58 deletions(-) diff --git a/blocks/ApplicationProgress/package.json b/blocks/ApplicationProgress/package.json index 6e371a60cb..cff993ff57 100644 --- a/blocks/ApplicationProgress/package.json +++ b/blocks/ApplicationProgress/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/application-progress-block", - "version": "0.1.1", + "version": "0.1.2", "description": "申请进度信息展示", "files": [ "src/", diff --git a/blocks/ArticleList/package.json b/blocks/ArticleList/package.json index 5971340525..3721337113 100644 --- a/blocks/ArticleList/package.json +++ b/blocks/ArticleList/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/article-list-block", - "version": "0.1.1", + "version": "0.1.2", "description": "文章列表", "main": "lib/index.js", "files": [ diff --git a/blocks/BasicDetailInfo/package.json b/blocks/BasicDetailInfo/package.json index d90b2add9a..d8519ebeee 100644 --- a/blocks/BasicDetailInfo/package.json +++ b/blocks/BasicDetailInfo/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/basic-detail-info-block", - "version": "0.1.1", + "version": "0.1.2", "description": "基础详情信息展示", "files": [ "src/", diff --git a/blocks/BrandDisplay/package.json b/blocks/BrandDisplay/package.json index 2caede68ec..77fdd4474d 100644 --- a/blocks/BrandDisplay/package.json +++ b/blocks/BrandDisplay/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/brand-display-block", - "version": "0.1.2", + "version": "0.1.3", "description": "品牌列表展示", "main": "lib/index.js", "files": [ diff --git a/blocks/BrandShowCase/package.json b/blocks/BrandShowCase/package.json index 2b87032489..cf07f04686 100644 --- a/blocks/BrandShowCase/package.json +++ b/blocks/BrandShowCase/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/brand-show-case-block", - "version": "0.1.2", + "version": "0.1.3", "description": "", "files": [ "src/", diff --git a/blocks/CollapseCard/package.json b/blocks/CollapseCard/package.json index 0c0625c048..e71a52d9c4 100644 --- a/blocks/CollapseCard/package.json +++ b/blocks/CollapseCard/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/collapse-card-block", - "version": "0.1.2", + "version": "0.1.3", "description": "折叠型卡片的信息展示", "files": [ "src/", diff --git a/blocks/ComplexDialog/package.json b/blocks/ComplexDialog/package.json index 39f02c4e00..10a81e523f 100644 --- a/blocks/ComplexDialog/package.json +++ b/blocks/ComplexDialog/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/complex-dialog-block", - "version": "0.1.3", + "version": "0.1.4", "description": "复杂信息和自定义底部按钮的弹窗", "files": [ "src/", diff --git a/blocks/ComplexFilter/package.json b/blocks/ComplexFilter/package.json index 47864b3c22..7d1a4ff7c5 100644 --- a/blocks/ComplexFilter/package.json +++ b/blocks/ComplexFilter/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/complex-filter-block", - "version": "0.1.5", + "version": "0.1.6", "description": "复杂筛选", "files": [ "src/", diff --git a/blocks/ComplexTabTable/package.json b/blocks/ComplexTabTable/package.json index 3cad59ac01..83c323f79c 100644 --- a/blocks/ComplexTabTable/package.json +++ b/blocks/ComplexTabTable/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/complex-tab-table-block", - "version": "0.1.2", + "version": "0.1.3", "description": "附带复杂的 Tab 多级筛选项的表格", "files": [ "src/", diff --git a/blocks/CompositeFilter/package.json b/blocks/CompositeFilter/package.json index 1c20454554..2e71be51b1 100644 --- a/blocks/CompositeFilter/package.json +++ b/blocks/CompositeFilter/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/composite-filter-block", - "version": "0.1.2", + "version": "0.1.3", "description": "复杂的筛选", "main": "lib/index.js", "files": [ diff --git a/blocks/ConfirmDialog/package.json b/blocks/ConfirmDialog/package.json index 100df4e8dc..b4dbacbac8 100644 --- a/blocks/ConfirmDialog/package.json +++ b/blocks/ConfirmDialog/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/confirm-dialog-block", - "version": "0.1.2", + "version": "0.1.3", "description": "确认类型的提示框", "main": "lib/index.js", "files": [ diff --git a/blocks/DataDisplay/package.json b/blocks/DataDisplay/package.json index f9d81f0c8e..5e1d1f05d8 100644 --- a/blocks/DataDisplay/package.json +++ b/blocks/DataDisplay/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/data-display-block", - "version": "0.1.2", + "version": "0.1.3", "description": "", "files": [ "src/", diff --git a/blocks/DetailTable/package.json b/blocks/DetailTable/package.json index ce2faee89d..bf63733fed 100644 --- a/blocks/DetailTable/package.json +++ b/blocks/DetailTable/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/detail-table-block", - "version": "0.1.2", + "version": "0.1.3", "description": "展示详情信息的表格", "files": [ "src/", diff --git a/blocks/DisplayCard/package.json b/blocks/DisplayCard/package.json index 22abc91e1e..6379e26f30 100644 --- a/blocks/DisplayCard/package.json +++ b/blocks/DisplayCard/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/display-card-block", - "version": "0.1.2", + "version": "0.1.3", "description": "展示型卡片", "files": [ "src/", diff --git a/blocks/DownloadCard/package.json b/blocks/DownloadCard/package.json index 8da19e5e73..acfbdb0a4c 100644 --- a/blocks/DownloadCard/package.json +++ b/blocks/DownloadCard/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/download-card-block", - "version": "0.1.2", + "version": "0.1.3", "description": "下载型信息卡片", "main": "lib/index.js", "files": [ diff --git a/blocks/EditableTable/package.json b/blocks/EditableTable/package.json index a07e22cca7..d058796e37 100644 --- a/blocks/EditableTable/package.json +++ b/blocks/EditableTable/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/editable-table-block", - "version": "0.1.2", + "version": "0.1.3", "description": "可编辑内容的表格", "files": [ "src/", diff --git a/blocks/EmptyContent/package.json b/blocks/EmptyContent/package.json index 7c181e3f89..16aca9febc 100644 --- a/blocks/EmptyContent/package.json +++ b/blocks/EmptyContent/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/empty-content-block", - "version": "0.1.3", + "version": "0.1.4", "description": "", "files": [ "src/", diff --git a/blocks/EnhanceTable/package.json b/blocks/EnhanceTable/package.json index 8eb382269b..b91305e912 100644 --- a/blocks/EnhanceTable/package.json +++ b/blocks/EnhanceTable/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/enhance-table-block", - "version": "0.1.2", + "version": "0.1.3", "description": "附带简单表单筛选功能的增强筛选表单", "main": "lib/index.js", "files": [ diff --git a/blocks/FailureDetail/package.json b/blocks/FailureDetail/package.json index 428c918f73..138b61c9e9 100644 --- a/blocks/FailureDetail/package.json +++ b/blocks/FailureDetail/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/failure-detail-block", - "version": "0.1.2", + "version": "0.1.3", "description": "提交失败详情展示", "files": [ "src/", diff --git a/blocks/FeatureDisplay/package.json b/blocks/FeatureDisplay/package.json index d513ce2c38..1798dae718 100644 --- a/blocks/FeatureDisplay/package.json +++ b/blocks/FeatureDisplay/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/feature-display-block", - "version": "0.1.2", + "version": "0.1.3", "description": "", "files": [ "src/", diff --git a/blocks/FeedList/package.json b/blocks/FeedList/package.json index c23c5b8d03..f2cb8fc476 100644 --- a/blocks/FeedList/package.json +++ b/blocks/FeedList/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/feed-list-block", - "version": "0.1.2", + "version": "0.1.3", "description": " Feed 消息列表", "files": [ "src/", diff --git a/blocks/FilterList/package.json b/blocks/FilterList/package.json index 06c15bb12e..e6425314cf 100644 --- a/blocks/FilterList/package.json +++ b/blocks/FilterList/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/filter-list-block", - "version": "0.1.2", + "version": "0.1.3", "description": "支持过滤的列表", "main": "lib/index.js", "files": [ diff --git a/blocks/FilterTable/package.json b/blocks/FilterTable/package.json index b7a7d96acd..3ebf60df08 100644 --- a/blocks/FilterTable/package.json +++ b/blocks/FilterTable/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/filter-table-block", - "version": "0.1.2", + "version": "0.1.3", "description": "附带筛选工具条的表格", "files": [ "src/", diff --git a/blocks/FilterWithSearch/package.json b/blocks/FilterWithSearch/package.json index ec561b28de..64339da84c 100644 --- a/blocks/FilterWithSearch/package.json +++ b/blocks/FilterWithSearch/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/filter-with-search-block", - "version": "0.1.2", + "version": "0.1.3", "description": " 含搜索筛选", "files": [ "src/", diff --git a/blocks/Footer/package.json b/blocks/Footer/package.json index 0be06c33f0..61db8399f8 100644 --- a/blocks/Footer/package.json +++ b/blocks/Footer/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/footer-block", - "version": "0.1.2", + "version": "0.1.3", "description": "", "files": [ "src/", diff --git a/blocks/FooterInfo/package.json b/blocks/FooterInfo/package.json index 34b6fde8ef..a99e951756 100644 --- a/blocks/FooterInfo/package.json +++ b/blocks/FooterInfo/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/footer-info-block", - "version": "0.1.2", + "version": "0.1.3", "description": "", "files": [ "src/", diff --git a/blocks/ForgetPasswordForm/package.json b/blocks/ForgetPasswordForm/package.json index 6a77933416..69d06f4194 100644 --- a/blocks/ForgetPasswordForm/package.json +++ b/blocks/ForgetPasswordForm/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/forget-password-form-block", - "version": "0.1.3", + "version": "0.1.4", "description": "忘记密码", "files": [ "src/", diff --git a/blocks/InfoDisplayTab/package.json b/blocks/InfoDisplayTab/package.json index fd9f0d96eb..99659a12bb 100644 --- a/blocks/InfoDisplayTab/package.json +++ b/blocks/InfoDisplayTab/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/info-display-tab-block", - "version": "0.1.2", + "version": "0.1.3", "description": "标签页信息展示", "main": "lib/index.js", "files": [ diff --git a/blocks/InfoDisplayTable/package.json b/blocks/InfoDisplayTable/package.json index 4b8913e2d6..915ee79d7f 100644 --- a/blocks/InfoDisplayTable/package.json +++ b/blocks/InfoDisplayTable/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/info-display-table-block", - "version": "0.1.2", + "version": "0.1.3", "description": "两栏信息展示型表格", "main": "lib/index.js", "files": [ diff --git a/blocks/LeftContentDisplay/package.json b/blocks/LeftContentDisplay/package.json index 0cd26097fd..7d6200b4b3 100644 --- a/blocks/LeftContentDisplay/package.json +++ b/blocks/LeftContentDisplay/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/left-content-display-block", - "version": "0.1.2", + "version": "0.1.3", "description": "", "files": [ "src/", diff --git a/blocks/MessageList/package.json b/blocks/MessageList/package.json index 93269478ac..c6dc4b81af 100644 --- a/blocks/MessageList/package.json +++ b/blocks/MessageList/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/message-list-block", - "version": "0.1.3", + "version": "0.1.4", "description": "消息列表", "files": [ "src/", diff --git a/blocks/OperationTable/package.json b/blocks/OperationTable/package.json index 62ca10b871..a3f2528608 100644 --- a/blocks/OperationTable/package.json +++ b/blocks/OperationTable/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/operation-table-block", - "version": "0.1.2", + "version": "0.1.3", "description": "附带操作按钮的表格", "main": "lib/index.js", "files": [ diff --git a/blocks/OrderList/package.json b/blocks/OrderList/package.json index d1cc10ac7f..4aa907c5dd 100644 --- a/blocks/OrderList/package.json +++ b/blocks/OrderList/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/order-list-block", - "version": "0.1.2", + "version": "0.1.3", "description": "订单型列表", "main": "lib/index.js", "files": [ diff --git a/blocks/OurTeam/package.json b/blocks/OurTeam/package.json index 2ee436984b..0a9841fc97 100644 --- a/blocks/OurTeam/package.json +++ b/blocks/OurTeam/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/our-team-block", - "version": "0.1.2", + "version": "0.1.3", "description": "", "files": [ "src/", diff --git a/blocks/PriceCard/package.json b/blocks/PriceCard/package.json index 38a3e8882d..6bbec21774 100644 --- a/blocks/PriceCard/package.json +++ b/blocks/PriceCard/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/price-card-block", - "version": "0.1.2", + "version": "0.1.3", "description": "", "files": [ "src/", diff --git a/blocks/PriceInfo/package.json b/blocks/PriceInfo/package.json index 74c28cd37b..8bc13d137f 100644 --- a/blocks/PriceInfo/package.json +++ b/blocks/PriceInfo/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/price-info-block", - "version": "0.1.2", + "version": "0.1.3", "description": "", "files": [ "src/", diff --git a/blocks/ProductInfo/package.json b/blocks/ProductInfo/package.json index aec989af68..0733a76756 100644 --- a/blocks/ProductInfo/package.json +++ b/blocks/ProductInfo/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/product-info-block", - "version": "0.1.2", + "version": "0.1.3", "description": "产品信息展示", "files": [ "src/", diff --git a/blocks/ProgressTable/package.json b/blocks/ProgressTable/package.json index dae9a3540d..4470b3ade9 100644 --- a/blocks/ProgressTable/package.json +++ b/blocks/ProgressTable/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/progress-table-block", - "version": "0.1.2", + "version": "0.1.3", "description": "进度条表格", "main": "lib/index.js", "files": [ diff --git a/blocks/RegisterForm/package.json b/blocks/RegisterForm/package.json index 2a88e52446..2ed0211c7f 100644 --- a/blocks/RegisterForm/package.json +++ b/blocks/RegisterForm/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/register-form-block", - "version": "0.1.2", + "version": "0.1.3", "description": "注册表单", "main": "lib/index.js", "files": [ diff --git a/blocks/RightContentDisplay/package.json b/blocks/RightContentDisplay/package.json index 03e4660c25..976d7e767a 100644 --- a/blocks/RightContentDisplay/package.json +++ b/blocks/RightContentDisplay/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/right-content-display-block", - "version": "0.1.2", + "version": "0.1.3", "description": "", "files": [ "src/", diff --git a/blocks/SelectableTable/package.json b/blocks/SelectableTable/package.json index 5f798e3fa8..3b773784bf 100644 --- a/blocks/SelectableTable/package.json +++ b/blocks/SelectableTable/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/selectable-table-block", - "version": "0.1.2", + "version": "0.1.3", "description": "可批量操作的表格", "main": "lib/index.js", "files": [ diff --git a/blocks/SignupForm/package.json b/blocks/SignupForm/package.json index b492075466..e07b03261c 100644 --- a/blocks/SignupForm/package.json +++ b/blocks/SignupForm/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/signup-form-block", - "version": "0.1.2", + "version": "0.1.3", "description": "登录表单", "main": "lib/index.js", "files": [ diff --git a/blocks/SimpleFormDialog/package.json b/blocks/SimpleFormDialog/package.json index 8b9d68a153..c7e82d45be 100644 --- a/blocks/SimpleFormDialog/package.json +++ b/blocks/SimpleFormDialog/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/simple-form-dialog-block", - "version": "0.1.2", + "version": "0.1.3", "description": "简单的表单弹窗", "files": [ "src/", diff --git a/blocks/SimpleTestimonial/package.json b/blocks/SimpleTestimonial/package.json index 68ee8d6ff9..a85aec040a 100644 --- a/blocks/SimpleTestimonial/package.json +++ b/blocks/SimpleTestimonial/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/simple-testimonial-block", - "version": "0.1.2", + "version": "0.1.3", "description": "", "files": [ "src/", diff --git a/blocks/Subscribe/package.json b/blocks/Subscribe/package.json index 5041fd2d80..c06d839d16 100644 --- a/blocks/Subscribe/package.json +++ b/blocks/Subscribe/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/subscribe-block", - "version": "0.1.2", + "version": "0.1.3", "description": "订阅", "files": [ "src/", diff --git a/blocks/SuccessDetail/package.json b/blocks/SuccessDetail/package.json index 25ff24c769..3c63f4b2b1 100644 --- a/blocks/SuccessDetail/package.json +++ b/blocks/SuccessDetail/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/success-detail-block", - "version": "0.1.2", + "version": "0.1.3", "description": "成功详情信息展示", "files": [ "src/", diff --git a/blocks/SuccessDialog/package.json b/blocks/SuccessDialog/package.json index 41ecf6287f..6ee83391c4 100644 --- a/blocks/SuccessDialog/package.json +++ b/blocks/SuccessDialog/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/success-dialog-block", - "version": "0.1.3", + "version": "0.1.4", "description": "提示框-成功", "main": "lib/index.js", "files": [ diff --git a/blocks/SystemNoticeList/package.json b/blocks/SystemNoticeList/package.json index fb29115640..db93a8ca1b 100644 --- a/blocks/SystemNoticeList/package.json +++ b/blocks/SystemNoticeList/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/system-notice-list-block", - "version": "0.1.2", + "version": "0.1.3", "description": "系统消息列表", "main": "lib/index.js", "files": [ diff --git a/blocks/TabChart/package.json b/blocks/TabChart/package.json index ba97c33b48..7566a6d6e1 100644 --- a/blocks/TabChart/package.json +++ b/blocks/TabChart/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/tab-chart-block", - "version": "0.1.1", + "version": "0.1.2", "description": "标签页和图表组合使用", "files": [ "src/", diff --git a/blocks/TermsInfo/package.json b/blocks/TermsInfo/package.json index eea4091eef..47e841c4ad 100644 --- a/blocks/TermsInfo/package.json +++ b/blocks/TermsInfo/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/terms-info-block", - "version": "0.1.2", + "version": "0.1.3", "description": "协议信息展示", "main": "lib/index.js", "files": [ diff --git a/blocks/TextCard/package.json b/blocks/TextCard/package.json index f6a42f140c..c3fa85f05d 100644 --- a/blocks/TextCard/package.json +++ b/blocks/TextCard/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/text-card-block", - "version": "0.1.2", + "version": "0.1.3", "description": "纯文字展示型卡片", "files": [ "src/", diff --git a/blocks/TimeFilterTable/package.json b/blocks/TimeFilterTable/package.json index e5b50afcdd..7a9690aaa9 100644 --- a/blocks/TimeFilterTable/package.json +++ b/blocks/TimeFilterTable/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/time-filter-table-block", - "version": "0.1.2", + "version": "0.1.3", "description": "支持时间筛选的表格", "files": [ "src/", diff --git a/blocks/TreeCardList/package.json b/blocks/TreeCardList/package.json index 52fed958bf..d803b9d7ba 100644 --- a/blocks/TreeCardList/package.json +++ b/blocks/TreeCardList/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/tree-card-list-block", - "version": "0.1.3", + "version": "0.1.4", "description": "树形卡片列表", "files": [ "src/", diff --git a/blocks/UserInfoCard/package.json b/blocks/UserInfoCard/package.json index 5727aa548c..c712f3e8a5 100644 --- a/blocks/UserInfoCard/package.json +++ b/blocks/UserInfoCard/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/user-info-card-block", - "version": "0.1.1", + "version": "0.1.2", "description": "", "files": [ "src/", diff --git a/layouts/FixedHeaderFooterResponsiveLayout/package.json b/layouts/FixedHeaderFooterResponsiveLayout/package.json index f32e43eaaf..a9467a9e09 100644 --- a/layouts/FixedHeaderFooterResponsiveLayout/package.json +++ b/layouts/FixedHeaderFooterResponsiveLayout/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/fixed-header-footer-responsive-layout", - "version": "0.1.6", + "version": "0.1.7", "description": "固定的顶部导航 + 底部栏 + 自适应宽度内容区的布局, 通常用于项目介绍页, 首页。", "files": [ "src/", diff --git a/layouts/HeaderAsideFooterLayout/package.json b/layouts/HeaderAsideFooterLayout/package.json index b475bd4c0f..455d1829f4 100644 --- a/layouts/HeaderAsideFooterLayout/package.json +++ b/layouts/HeaderAsideFooterLayout/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/header-aside-footer-layout", - "version": "0.1.6", + "version": "0.1.7", "description": "固定宽度的内容区域, 顶栏 + 侧栏 + 底栏, 通常用于中后台站点正文内容", "files": [ "src/", diff --git a/layouts/HeaderAsideFooterResponsiveLayout/package.json b/layouts/HeaderAsideFooterResponsiveLayout/package.json index af89146f6a..7909bf6550 100644 --- a/layouts/HeaderAsideFooterResponsiveLayout/package.json +++ b/layouts/HeaderAsideFooterResponsiveLayout/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/header-aside-footer-responsive-layout", - "version": "0.1.6", + "version": "0.1.7", "description": "顶部导航 + 边栏 + 底栏 + 响应式内容区的布局, 通常用于站点正文。", "files": [ "lib/", diff --git a/layouts/HeaderFooterLayout/package.json b/layouts/HeaderFooterLayout/package.json index 2366d8479a..e6a85eb48b 100644 --- a/layouts/HeaderFooterLayout/package.json +++ b/layouts/HeaderFooterLayout/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/header-footer-layout", - "version": "0.1.6", + "version": "0.1.7", "description": "基础布局, 头部导航 + 底部栏 + 固定宽度内容区, 通常用于站点首页或者通用辅助页面。", "files": [ "src/", From c6ab0205900d2606cb36a6aabe6e4e0ace340862 Mon Sep 17 00:00:00 2001 From: wssgcg1213 Date: Tue, 16 Jan 2018 22:27:48 +0800 Subject: [PATCH 0062/1028] Publish - @icedesign/fixed-header-footer-responsive-layout@0.1.8 --- layouts/FixedHeaderFooterResponsiveLayout/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/FixedHeaderFooterResponsiveLayout/package.json b/layouts/FixedHeaderFooterResponsiveLayout/package.json index a9467a9e09..410f2ef543 100644 --- a/layouts/FixedHeaderFooterResponsiveLayout/package.json +++ b/layouts/FixedHeaderFooterResponsiveLayout/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/fixed-header-footer-responsive-layout", - "version": "0.1.7", + "version": "0.1.8", "description": "固定的顶部导航 + 底部栏 + 自适应宽度内容区的布局, 通常用于项目介绍页, 首页。", "files": [ "src/", From 6440c21d99fc9d99b05e5b3a1ee9e7b466f242cc Mon Sep 17 00:00:00 2001 From: wssgcg1213 Date: Tue, 16 Jan 2018 22:29:48 +0800 Subject: [PATCH 0063/1028] fix: registry scope --- layouts/HeaderAsideFooterResponsiveLayout/package.json | 6 +++--- layouts/HeaderFooterLayout/package.json | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/layouts/HeaderAsideFooterResponsiveLayout/package.json b/layouts/HeaderAsideFooterResponsiveLayout/package.json index 7909bf6550..d0da222150 100644 --- a/layouts/HeaderAsideFooterResponsiveLayout/package.json +++ b/layouts/HeaderAsideFooterResponsiveLayout/package.json @@ -37,11 +37,11 @@ "eslint-plugin-react": "^7.5.1" }, "scripts": { - "prepublish": "ice block build", - "registry": "http://registry.npmjs.com/" + "prepublish": "ice block build" }, "publishConfig": { - "access": "public" + "access": "public", + "registry": "http://registry.npmjs.com/" }, "blockConfig": { "name": "header-aside-footer-responsive-layout", diff --git a/layouts/HeaderFooterLayout/package.json b/layouts/HeaderFooterLayout/package.json index e6a85eb48b..5af3dd638c 100644 --- a/layouts/HeaderFooterLayout/package.json +++ b/layouts/HeaderFooterLayout/package.json @@ -37,11 +37,11 @@ "eslint-plugin-react": "^7.5.1" }, "scripts": { - "prepublish": "ice block build", - "registry": "http://registry.npmjs.com/" + "prepublish": "ice block build" }, "publishConfig": { - "access": "public" + "access": "public", + "registry": "http://registry.npmjs.com/" }, "blockConfig": { "name": "header-footer-layout", From 1efed187a42a6c7fb539225bcbec2bbabf5e6282 Mon Sep 17 00:00:00 2001 From: wssgcg1213 Date: Tue, 16 Jan 2018 22:31:03 +0800 Subject: [PATCH 0064/1028] Publish - @icedesign/header-aside-footer-layout@0.1.8 - @icedesign/header-aside-footer-responsive-layout@0.1.8 - @icedesign/header-footer-layout@0.1.8 --- layouts/HeaderAsideFooterLayout/package.json | 2 +- layouts/HeaderAsideFooterResponsiveLayout/package.json | 2 +- layouts/HeaderFooterLayout/package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/layouts/HeaderAsideFooterLayout/package.json b/layouts/HeaderAsideFooterLayout/package.json index 455d1829f4..853e024d98 100644 --- a/layouts/HeaderAsideFooterLayout/package.json +++ b/layouts/HeaderAsideFooterLayout/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/header-aside-footer-layout", - "version": "0.1.7", + "version": "0.1.8", "description": "固定宽度的内容区域, 顶栏 + 侧栏 + 底栏, 通常用于中后台站点正文内容", "files": [ "src/", diff --git a/layouts/HeaderAsideFooterResponsiveLayout/package.json b/layouts/HeaderAsideFooterResponsiveLayout/package.json index d0da222150..629eec6657 100644 --- a/layouts/HeaderAsideFooterResponsiveLayout/package.json +++ b/layouts/HeaderAsideFooterResponsiveLayout/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/header-aside-footer-responsive-layout", - "version": "0.1.7", + "version": "0.1.8", "description": "顶部导航 + 边栏 + 底栏 + 响应式内容区的布局, 通常用于站点正文。", "files": [ "lib/", diff --git a/layouts/HeaderFooterLayout/package.json b/layouts/HeaderFooterLayout/package.json index 5af3dd638c..ff6d1c5c75 100644 --- a/layouts/HeaderFooterLayout/package.json +++ b/layouts/HeaderFooterLayout/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/header-footer-layout", - "version": "0.1.7", + "version": "0.1.8", "description": "基础布局, 头部导航 + 底部栏 + 固定宽度内容区, 通常用于站点首页或者通用辅助页面。", "files": [ "src/", From 0cef99eb4b12a75d7ce902a756f65556d73fd145 Mon Sep 17 00:00:00 2001 From: ZeroLing Date: Wed, 17 Jan 2018 10:21:37 +0800 Subject: [PATCH 0065/1028] Update README.md feat: add snapshot --- blocks/AssetInfoDisplay/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blocks/AssetInfoDisplay/README.md b/blocks/AssetInfoDisplay/README.md index 7fd7095458..958db6b26b 100644 --- a/blocks/AssetInfoDisplay/README.md +++ b/blocks/AssetInfoDisplay/README.md @@ -4,4 +4,4 @@ 资产信息展示, 卡片类型的 UI 数据展示, 常用于额度, 余额等页面 -![截图]() +![截图](https://gw.alicdn.com/tfs/TB1eyr.j5qAXuNjy1XdXXaYcVXa-1882-548.png) From ce6125d1446cbff6c886012afa1a20d0001d7687 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=85=83=E5=BD=A6?= Date: Wed, 17 Jan 2018 11:03:20 +0800 Subject: [PATCH 0066/1028] docs: update desc --- README.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/README.md b/README.md index ef6b39ddf6..d23f1ff871 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,2 @@ # ICE -> 极速构建中后台应用 - - +> 赋能企业中后台建设 From da8ea6340ce277be52cc43600706b5be44036a29 Mon Sep 17 00:00:00 2001 From: wssgcg1213 Date: Wed, 17 Jan 2018 11:04:45 +0800 Subject: [PATCH 0067/1028] chore: scripts update --- blocks/AssetInfoDisplay/package.json | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/blocks/AssetInfoDisplay/package.json b/blocks/AssetInfoDisplay/package.json index 503571dcb5..49b8a69b87 100644 --- a/blocks/AssetInfoDisplay/package.json +++ b/blocks/AssetInfoDisplay/package.json @@ -21,6 +21,14 @@ "ice", "ice-block" ], + "scripts": { + "start": "ice block dev", + "prepublish": "ice block build" + }, + "publishConfig": { + "access": "public", + "registry": "http://registry.npmjs.com/" + }, "dependencies": { "@icedesign/base": "^0.1.0", "@icedesign/card": "^0.1.1", @@ -28,6 +36,7 @@ }, "devDependencies": { "@icedesign/demo-layout": "^0.1.2", + "@icedesign/scripts": "^0.1.8", "@icedesign/skin": "latest", "react": "*", "react-dom": "*" From c0ed4e07fcd60d923cd183f63fecb7c627f9eadc Mon Sep 17 00:00:00 2001 From: wssgcg1213 Date: Wed, 17 Jan 2018 11:30:40 +0800 Subject: [PATCH 0068/1028] =?UTF-8?q?fix:=20style=20=E7=BE=8E=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- blocks/AssetInfoDisplay/README.md | 2 +- blocks/AssetInfoDisplay/package.json | 2 +- .../AssetInfoDisplay/src/AssetInfoDisplay.jsx | 58 +++++++++++-------- 3 files changed, 36 insertions(+), 26 deletions(-) diff --git a/blocks/AssetInfoDisplay/README.md b/blocks/AssetInfoDisplay/README.md index 958db6b26b..020e1c2330 100644 --- a/blocks/AssetInfoDisplay/README.md +++ b/blocks/AssetInfoDisplay/README.md @@ -4,4 +4,4 @@ 资产信息展示, 卡片类型的 UI 数据展示, 常用于额度, 余额等页面 -![截图](https://gw.alicdn.com/tfs/TB1eyr.j5qAXuNjy1XdXXaYcVXa-1882-548.png) +![截图](https://gw.alicdn.com/tfs/TB1QvhInhTI8KJjSspiXXbM4FXa-1910-570.png) diff --git a/blocks/AssetInfoDisplay/package.json b/blocks/AssetInfoDisplay/package.json index 49b8a69b87..01e1afbae4 100644 --- a/blocks/AssetInfoDisplay/package.json +++ b/blocks/AssetInfoDisplay/package.json @@ -43,7 +43,7 @@ }, "blockConfig": { "name": "asset-info-display", - "snapshot": "https://gw.alicdn.com/tfs/TB1eyr.j5qAXuNjy1XdXXaYcVXa-1882-548.png", + "snapshot": "https://gw.alicdn.com/tfs/TB1QvhInhTI8KJjSspiXXbM4FXa-1910-570.png", "title": "资产信息展示", "categories": [ "info-display" diff --git a/blocks/AssetInfoDisplay/src/AssetInfoDisplay.jsx b/blocks/AssetInfoDisplay/src/AssetInfoDisplay.jsx index c85db97f45..4d3da2dbdc 100644 --- a/blocks/AssetInfoDisplay/src/AssetInfoDisplay.jsx +++ b/blocks/AssetInfoDisplay/src/AssetInfoDisplay.jsx @@ -1,5 +1,6 @@ import React, { Component } from 'react'; import IceCard from '@icedesign/card'; +import { Icon } from '@icedesign/base'; import './AssetInfoDisplay.scss'; export default class AssetInfoDisplay extends Component { @@ -26,37 +27,37 @@ export default class AssetInfoDisplay extends Component {
    $46.24
    -
    可用额度 $32.24
    + 可用额度
    $46.24
    -
    可用额度 $32.24
    + 现金余额
    $46.24
    -
    可用额度 $32.24
    + 信用额度

    优惠卡券

    -
    $100
    -
    储值卡
    +
    $100
    +
    储值卡
    -
    $0
    -
    优惠券
    +
    $0
    +
    优惠券
    -
    $3000
    -
    代金券
    +
    $3000
    +
    代金券
    @@ -71,8 +72,8 @@ export default class AssetInfoDisplay extends Component {

    合同

    @@ -90,8 +91,8 @@ export default class AssetInfoDisplay extends Component {

    发票

    @@ -124,30 +125,30 @@ const styles = { padding: 0, }, title: { - minHeight: '80px', color: '#6ca1ee', fontSize: '16px', padding: '20px', - borderBottom: '1px solid #ddd', + borderBottom: '1px solid #eee', }, subTitle: { color: '#666', + fontWeight: '400', borderLeft: '4px solid #6ca1ee', fontSize: '16px', - lineHeight: '1.5em', + lineHeight: '1.4em', paddingLeft: '5px', + marginBottom: '12px', }, assets: { - backgroundColor: '#eee', - height: '105px', - borderBottom: '1px solid #ddd', + height: '116px', + borderBottom: '1px solid #eee', display: 'flex', flexDirection: 'row', justifyContent: 'center', alignItems: 'center', }, cardItem: { - height: '100px', + // height: '100px', padding: '5px 20px', }, assetsGroup: { @@ -165,4 +166,13 @@ const styles = { marginBottom: '10px', color: '#fbb848', }, + item: { + marginBottom: '10px', + fontWeight: '800', + fontSize: '16px', + }, + subItem: { + color: '#999', + marginBottom: '12px', + }, }; From 248011febca9fea59f5145271a75298115e7b172 Mon Sep 17 00:00:00 2001 From: wssgcg1213 Date: Wed, 17 Jan 2018 13:59:11 +0800 Subject: [PATCH 0069/1028] chore: add readme --- .github/CONTRIBUTING.md | 46 +++++++++++++++++++++++++++++++ .github/GIT_COMMIT_SPECIFIC.md | 43 +++++++++++++++++++++++++++++ README.md | 49 ++++++++++++++++++++++++++++++++-- 3 files changed, 136 insertions(+), 2 deletions(-) create mode 100644 .github/CONTRIBUTING.md create mode 100644 .github/GIT_COMMIT_SPECIFIC.md diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md new file mode 100644 index 0000000000..f4aeec3109 --- /dev/null +++ b/.github/CONTRIBUTING.md @@ -0,0 +1,46 @@ +# Contributing Guide + +Hi! I’m really excited that you are interested in contributing to ICE. Before submitting your contribution though, please make sure to take a moment and read through the following guidelines. + +- [Issue Reporting Guidelines](#issue-reporting-guidelines) +- [Pull Request Guidelines](#pull-request-guidelines) +- [Git Commit Specific](./GIT_COMMIT_SPECIFIC.md) + + +## Issue Reporting Guidelines + +- The issue list of this repo is **exclusively** for bug reports and feature requests. Non-conforming issues will be closed immediately. + + - For simple beginner questions, you can get quick answers from + + - For more complicated questions, you can use Google or StackOverflow. Make sure to provide enough information when asking your questions - this makes it easier for others to help you! + +- Try to search for your issue, it may have already been answered or even fixed in the development branch. + +- It is **required** that you clearly describe the steps necessary to reproduce the issue you are running into. Issues with no clear repro steps will not be triaged. If an issue labeled "need repro" receives no further input from the issue author for more than 5 days, it will be closed. + +- For bugs that involves build setups, you can create a reproduction repository with steps in the README. + +- If your issue is resolved but still open, don’t hesitate to close it. In case you found a solution by yourself, it could be helpful to explain how you fixed it. + +## Pull Request Guidelines + +- Only code that's ready for release should be committed to the master branch. All development should be done in dedicated branches. +- Checkout a **new** topic branch from master branch, and merge back against master branch. +- Work in the `src` folder and **DO NOT** checkin `lib` or `dist` in the commits. +- Make sure `npm test` passes. +- If adding new feature: + - Add accompanying test case. + - Provide convincing reason to add this feature. Ideally you should open a suggestion issue first and have it greenlighted before working on it. +- If fixing a bug: + - If you are resolving a special issue, add `(fix #xxxx[,#xxx])` (#xxxx is the issue id) in your PR title for a better release log, e.g. `update entities encoding/decoding (fix #3899)`. + - Provide detailed description of the bug in the PR. Live demo preferred. + - Add appropriate test coverage if applicable. + + +## Git Commit Specific + +- Your commits message must follow our [git commit specific](./GIT_COMMIT_SPECIFIC.md). +- We will check your commit message, if it does not conform to the specification, the commit will be automatically refused, make sure you have read the specification above. +- You could use `git cz` with a CLI interface to replace `git commit` command, it will help you to build a proper commit-message, see [commitizen](https://github.com/commitizen/cz-cli). +- It's OK to have multiple small commits as you work on your branch - we will let GitHub automatically squash it before merging. diff --git a/.github/GIT_COMMIT_SPECIFIC.md b/.github/GIT_COMMIT_SPECIFIC.md new file mode 100644 index 0000000000..ae2b9398fe --- /dev/null +++ b/.github/GIT_COMMIT_SPECIFIC.md @@ -0,0 +1,43 @@ +# GIT COMMIT MESSAGE CHEAT SHEET + +**Proposed format of the commit message** + +``` +(): + + +``` + +All lines are wrapped at 100 characters ! + + +**Allowed ``** + +- feat (A new feature) +- fix (A bug fix) +- docs (Documentation only changes) +- style (Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)) +- perf (A code change that improves performance) +- refactor (A code change that neither fixes a bug nor adds a feature) +- test (Adding missing tests or correcting existing tests) +- build (Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)) +- ci (Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)) +- chore (Other changes that don't modify src or test files) +- revert (Reverts a previous commit) + +**Allowed ``** +Scope could be anything specifying place of the commit change. + +For example $location, $browser, compiler, scope, ng:href, etc... + + +**Breaking changes** +All breaking changes have to be mentioned in message body, on separated line: +​ _Breaks removed $browser.setUrl() method (use $browser.url(http://github.com/newUrl))_ +​ _Breaks ng: repeat option is no longer supported on selects (use ng:options)_ + + +**Message body** + +- uses the imperative, present tense: “change” not “changed” nor “changes” +- includes motivation for the change and contrasts with previous behavior diff --git a/README.md b/README.md index d23f1ff871..78eadf2143 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,47 @@ -# ICE -> 赋能企业中后台建设 +

    + + ICE + +

    +

    赋能企业中后台建设

    + +

    + +

    + +--- + +

    +Community +

    + +*
    + 钉钉群 + Join the chat at dingtalk +
    + +--- + +ICE 是一套通过沉淀海量高质量可复用物料,借助 GUI 工具快速赋能企业中后台建设的解决方案。 + +:art: **ICE Design 设计语言:** 淘宝中后台通用的 [设计语言](https://alibaba.github.io/ice/design.html) + +:zap: **海量高质量物料:** 区块 + 模板满足你开发之所需,所见即所得 + +:dart: **GUI 工具** 人类友好的交互界面,零配置的工程整合,物料一键复用,颠覆前端开发体验 [点击下载](https://alibaba.github.io/ice/#/iceworks) + +## 快速开始 + +请从下载并安装 [iceworks](https://alibaba.github.io/ice/#/iceworks) 开始,[入门教程](https://alibaba.github.io/ice/#/iceworks/start),点击查阅 [区块列表](https://alibaba.github.io/ice/#/blocks)。 + +## 贡献 + +我们欢迎开源社区参与到项目的建设中来,在开始前,请先查阅本项目的 [贡献指南](/alibaba/ice/blob/master/.github/CONTRIBUTING.md) + +### 发布流程 + +- `npm run bootstrap` 本地仓库链接 +- `npm run publish` 代码发布 + +- `npm run lint` 代码 Lint 风格检查 + From d41412bfa5cfdf2b8b00f61a3d30d36541073958 Mon Sep 17 00:00:00 2001 From: wssgcg1213 Date: Wed, 17 Jan 2018 14:26:11 +0800 Subject: [PATCH 0070/1028] chore: update readme --- README.md | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 78eadf2143..cb3efdb15a 100644 --- a/README.md +++ b/README.md @@ -11,17 +11,6 @@ --- -

    -Community -

    - -*
    - 钉钉群 - Join the chat at dingtalk -
    - ---- - ICE 是一套通过沉淀海量高质量可复用物料,借助 GUI 工具快速赋能企业中后台建设的解决方案。 :art: **ICE Design 设计语言:** 淘宝中后台通用的 [设计语言](https://alibaba.github.io/ice/design.html) @@ -38,10 +27,16 @@ ICE 是一套通过沉淀海量高质量可复用物料,借助 GUI 工具快 我们欢迎开源社区参与到项目的建设中来,在开始前,请先查阅本项目的 [贡献指南](/alibaba/ice/blob/master/.github/CONTRIBUTING.md) -### 发布流程 +### 开发及发布流程 - `npm run bootstrap` 本地仓库链接 +- `npm start` 启动调试服务器 +- `npm run lint` 代码 Lint 风格检查 - `npm run publish` 代码发布 -- `npm run lint` 代码 Lint 风格检查 +## 联系 +*
    + 钉钉群 + Join the chat at dingtalk +
    From 7bb2e450081aa97bd688e34f8be87f5d6149617c Mon Sep 17 00:00:00 2001 From: chenbin92 Date: Wed, 17 Jan 2018 15:39:27 +0800 Subject: [PATCH 0071/1028] fix: update block style --- .../AssetInfoDisplay/src/AssetInfoDisplay.jsx | 9 +- blocks/BrandDisplay/demo/index.js | 7 +- blocks/BrandDisplay/src/BrandDisplay.jsx | 114 ++++++++++-------- blocks/BrandShowCase/demo/index.js | 11 +- blocks/BrandShowCase/src/BrandShowCase.jsx | 76 +++++++----- blocks/FeatureDisplay/demo/index.js | 11 +- blocks/FeatureDisplay/src/FeatureDisplay.jsx | 53 +++++--- .../src/LeftContentDisplay.jsx | 3 +- blocks/OurTeam/demo/index.js | 7 +- blocks/OurTeam/src/OurTeam.jsx | 92 ++++++++------ blocks/PriceInfo/src/PriceInfo.jsx | 89 ++++++++------ blocks/ProductInfo/demo/index.js | 11 +- blocks/ProductInfo/src/ProductInfo.jsx | 43 +++---- blocks/ProgressTable/src/ProgressTable.jsx | 12 +- .../src/RightContentDisplay.jsx | 3 +- blocks/TeamDisplay/demo/index.js | 11 +- blocks/TeamDisplay/src/TeamDisplay.jsx | 40 +++--- .../TestimonialCard/src/TestimonialCard.jsx | 2 +- 18 files changed, 330 insertions(+), 264 deletions(-) diff --git a/blocks/AssetInfoDisplay/src/AssetInfoDisplay.jsx b/blocks/AssetInfoDisplay/src/AssetInfoDisplay.jsx index 4d3da2dbdc..c162bc02a9 100644 --- a/blocks/AssetInfoDisplay/src/AssetInfoDisplay.jsx +++ b/blocks/AssetInfoDisplay/src/AssetInfoDisplay.jsx @@ -36,7 +36,8 @@ export default class AssetInfoDisplay extends Component {
    + }} + >
    $46.24
    信用额度
    @@ -55,7 +56,8 @@ export default class AssetInfoDisplay extends Component {
    + }} + >
    $3000
    代金券
    @@ -68,7 +70,8 @@ export default class AssetInfoDisplay extends Component {
    + }} + >

    合同

    diff --git a/blocks/BrandDisplay/demo/index.js b/blocks/BrandDisplay/demo/index.js index 4d6acd389a..f80b542308 100644 --- a/blocks/BrandDisplay/demo/index.js +++ b/blocks/BrandDisplay/demo/index.js @@ -11,9 +11,4 @@ const props = { // ... }; -render( - - - , - document.querySelector('#mountNode') -); +render(, document.querySelector('#mountNode')); diff --git a/blocks/BrandDisplay/src/BrandDisplay.jsx b/blocks/BrandDisplay/src/BrandDisplay.jsx index 4ab0d6c5aa..80e8193f07 100644 --- a/blocks/BrandDisplay/src/BrandDisplay.jsx +++ b/blocks/BrandDisplay/src/BrandDisplay.jsx @@ -10,7 +10,7 @@ const dataSource = [ headPic: 'https://img.alicdn.com/tfs/TB1QMwlSXXXXXaUXXXXXXXXXXXX-122-122.png', pic: 'https://img.alicdn.com/tfs/TB1n6H_SXXXXXc3XpXXXXXXXXXX-616-348.png', - url: 'https://v.taobao.com/v/mission/case-detail?userId=38587850', + url: 'https://v.taobao.com/v/mission/case-detail?userId=38587850' }, { title: '万家乐', @@ -18,7 +18,7 @@ const dataSource = [ '策划『生活改造家』主题全案,联合一线大咖制作图文、直播、短视频全域引流,助力品牌升级和高端人群种草,结合行业活动割草。', headPic: 'https://img.alicdn.com/tfs/TB1Z4CLSXXXXXcHXVXXXXXXXXXX-61-61.png', pic: 'https://img.alicdn.com/tfs/TB1bHO6SXXXXXaiXFXXXXXXXXXX-308-174.png', - url: 'https://v.taobao.com/v/mission/case-detail?userId=2738062192', + url: 'https://v.taobao.com/v/mission/case-detail?userId=2738062192' }, { title: '职场游乐园', @@ -26,7 +26,7 @@ const dataSource = [ headPic: 'https://img.alicdn.com/tfs/TB1kX62SXXXXXXJXVXXXXXXXXXX-122-122.png', pic: 'https://img.alicdn.com/tfs/TB17bzrSXXXXXbpaFXXXXXXXXXX-616-348.png', - url: 'https://v.taobao.com/v/mission/case-detail?userId=2894350953', + url: 'https://v.taobao.com/v/mission/case-detail?userId=2894350953' }, { title: '品味百味人生', @@ -35,8 +35,8 @@ const dataSource = [ headPic: 'https://img.alicdn.com/tfs/TB19C_9SXXXXXc1XpXXXXXXXXXX-122-122.png', pic: 'https://img.alicdn.com/tfs/TB1IkEjSXXXXXb1XXXXXXXXXXXX-616-348.png', - url: 'https://v.taobao.com/v/mission/case-detail?userId=2149813109', - }, + url: 'https://v.taobao.com/v/mission/case-detail?userId=2149813109' + } ]; export default class BrandDisplay extends Component { @@ -44,75 +44,93 @@ export default class BrandDisplay extends Component { render() { return ( -
    -
    -
    -
    品牌展示
    -
    -
    +
    +
    +
    品牌展示
    +
    ); } } const styles = { - brandHeader: { position: 'relative', textAlign: 'center' }, - brandTitle: { marginBottom: '20px', fontSize: '20px', color: '#333333' }, + container: { + width: '1080px', + margin: '0 auto', + padding: '80px 0' + }, + brandHeader: { + position: 'relative', + textAlign: 'center' + }, + brandTitle: { + marginBottom: '40px', + fontSize: '20px', + color: '#333333' + }, brandItem: { + width: '50%', height: '175px', background: '#fff', display: 'inline-block', verticalAlign: 'top', marginBottom: '30px', - marginLeft: '15px', - overflow: 'hidden', + overflow: 'hidden' }, caseContent: { width: '250px', display: 'inline-block', - verticalAlign: 'top', + verticalAlign: 'top' + }, + caseSubject: { + margin: '20px 10px 0', + lineHeight: '60px', + height: '60px' + }, + subjectImage: { + width: '60px', + height: '60px', + borderRadius: '50%' }, - caseSubject: { margin: '20px 10px 0', lineHeight: '60px', height: '60px' }, - subjectImage: { width: '60px', height: '60px', borderRadius: '50%' }, subjectDesc: { fontSize: '16px', color: '#333333', height: '60px', verticalAlign: 'top', - marginLeft: '12px', + marginLeft: '12px' }, caseDetail: { fontSize: '12px', color: '#666666', padding: '0 16px', - textAlign: 'left', - }, + textAlign: 'left' + } }; diff --git a/blocks/BrandShowCase/demo/index.js b/blocks/BrandShowCase/demo/index.js index 178a766115..f80b542308 100644 --- a/blocks/BrandShowCase/demo/index.js +++ b/blocks/BrandShowCase/demo/index.js @@ -1,5 +1,5 @@ -import React, {Component} from 'react'; -import {render} from 'react-dom'; +import React, { Component } from 'react'; +import { render } from 'react-dom'; // 载入默认全局样式 normalize 、.clearfix 和一些 mixin 方法等 import '@icedesign/base/lib/_components/@alife/next-core/lib/index.scss'; @@ -11,9 +11,4 @@ const props = { // ... }; -render( - - - , - document.querySelector('#mountNode') -); +render(, document.querySelector('#mountNode')); diff --git a/blocks/BrandShowCase/src/BrandShowCase.jsx b/blocks/BrandShowCase/src/BrandShowCase.jsx index ba690fa48b..affc7b6037 100644 --- a/blocks/BrandShowCase/src/BrandShowCase.jsx +++ b/blocks/BrandShowCase/src/BrandShowCase.jsx @@ -1,12 +1,11 @@ import React, { Component } from 'react'; -import IceCard from '@icedesign/card'; import './BrandShowCase.scss'; -const generatorData = (count) => { +const generatorData = count => { return Array.from({ length: count }).map(() => { return { imgUrl: - 'https://img.alicdn.com/tfs/TB1rnNcjr_I8KJjy1XaXXbsxpXa-603-474.png', + 'https://img.alicdn.com/tfs/TB1rnNcjr_I8KJjy1XaXXbsxpXa-603-474.png' }; }); }; @@ -26,34 +25,57 @@ export default class BrandShowCase extends Component { render() { const data = generatorData(12); return ( -
    - -
    -

    品牌展示

    -

    - 广义的“品牌”是具有经济价值的无形资产,用抽象化的、特有的、能识别的心智概念来表现其差异性,从而在人们的意识当中占据一定位置的综合反映。品牌建设具有长期性 -

    -
    -
    - {data.map((item, index) => { - return ( -
    - -
    - ); - })} -
    -
    +
    +
    +

    品牌展示

    +

    + 广义的“品牌”是具有经济价值的无形资产,用抽象化的、特有的、能识别的心智概念来表现其差异性,从而在人们的意识当中占据一定位置的综合反映。品牌建设具有长期性 +

    +
    +
    + {data.map((item, index) => { + return ( +
    + +
    + ); + })} +
    ); } } const styles = { - head: { width: '50%', margin: '0 auto' }, - title: { textAlign: 'center', fontSize: '28px' }, - intro: { textAlign: 'center', color: '#999' }, - items: { display: 'flex', flexWrap: 'wrap', margin: '30px 0' }, - item: { width: '16.66%', margin: '10px 0', textAlign: 'center' }, - image: { width: '100px', height: '80px' }, + container: { + width: '1080px', + margin: '0 auto', + padding: '80px 0' + }, + head: { + width: '50%', + margin: '0 auto' + }, + title: { + textAlign: 'center', + fontSize: '28px' + }, + intro: { + textAlign: 'center', + color: '#999' + }, + items: { + display: 'flex', + flexWrap: 'wrap', + margin: '30px 0' + }, + item: { + width: '16.66%', + margin: '10px 0', + textAlign: 'center' + }, + image: { + width: '100px', + height: '80px' + } }; diff --git a/blocks/FeatureDisplay/demo/index.js b/blocks/FeatureDisplay/demo/index.js index 178a766115..f80b542308 100644 --- a/blocks/FeatureDisplay/demo/index.js +++ b/blocks/FeatureDisplay/demo/index.js @@ -1,5 +1,5 @@ -import React, {Component} from 'react'; -import {render} from 'react-dom'; +import React, { Component } from 'react'; +import { render } from 'react-dom'; // 载入默认全局样式 normalize 、.clearfix 和一些 mixin 方法等 import '@icedesign/base/lib/_components/@alife/next-core/lib/index.scss'; @@ -11,9 +11,4 @@ const props = { // ... }; -render( - - - , - document.querySelector('#mountNode') -); +render(, document.querySelector('#mountNode')); diff --git a/blocks/FeatureDisplay/src/FeatureDisplay.jsx b/blocks/FeatureDisplay/src/FeatureDisplay.jsx index ab636de467..2bde2bd112 100644 --- a/blocks/FeatureDisplay/src/FeatureDisplay.jsx +++ b/blocks/FeatureDisplay/src/FeatureDisplay.jsx @@ -1,5 +1,4 @@ import React, { Component } from 'react'; -import IceCard from '@icedesign/card'; import './FeatureDisplay.scss'; const data = [ @@ -55,34 +54,50 @@ export default class FeatureDisplay extends Component { render() { return ( -
    - -
    - {data.map((item, index) => { - return ( -
    - -

    {item.title}

    -

    {item.description}

    -
    - ); - })} -
    -
    +
    +
    + {data.map((item, index) => { + return ( +
    + +

    {item.title}

    +

    {item.description}

    +
    + ); + })} +
    ); } } const styles = { - items: { display: 'flex', flexWrap: 'wrap' }, + container: { + width: '1080px', + margin: '0 auto', + padding: '0 80px', + }, + items: { + display: 'flex', + flexWrap: 'wrap', + }, item: { width: '33%', textAlign: 'center', padding: '0 30px', margin: '40px 0', }, - title: { fontWeight: 'bold', fontSize: '20px' }, - image: { width: '150px', height: '150px', borderRadius: '50%' }, - description: { fontSize: '13px', lineHeight: '22px' }, + title: { + fontWeight: 'bold', + fontSize: '20px', + }, + image: { + width: '150px', + height: '150px', + borderRadius: '50%', + }, + description: { + fontSize: '13px', + lineHeight: '22px', + }, }; diff --git a/blocks/LeftContentDisplay/src/LeftContentDisplay.jsx b/blocks/LeftContentDisplay/src/LeftContentDisplay.jsx index 0da2a043e5..0e33fc68d9 100644 --- a/blocks/LeftContentDisplay/src/LeftContentDisplay.jsx +++ b/blocks/LeftContentDisplay/src/LeftContentDisplay.jsx @@ -34,8 +34,9 @@ export default class LeftContentDisplay extends Component { const styles = { container: { - margin: '0 auto', width: '1080px', + margin: '0 auto', + padding: '80px 0', }, content: { display: 'flex', diff --git a/blocks/OurTeam/demo/index.js b/blocks/OurTeam/demo/index.js index 4d6acd389a..f80b542308 100644 --- a/blocks/OurTeam/demo/index.js +++ b/blocks/OurTeam/demo/index.js @@ -11,9 +11,4 @@ const props = { // ... }; -render( - - - , - document.querySelector('#mountNode') -); +render(, document.querySelector('#mountNode')); diff --git a/blocks/OurTeam/src/OurTeam.jsx b/blocks/OurTeam/src/OurTeam.jsx index e707a824e9..4112417627 100644 --- a/blocks/OurTeam/src/OurTeam.jsx +++ b/blocks/OurTeam/src/OurTeam.jsx @@ -1,14 +1,13 @@ import React, { Component } from 'react'; -import IceCard from '@icedesign/card'; import './OurTeam.scss'; -const generatorData = (count) => { +const generatorData = count => { return Array.from({ length: count }).map((item, index) => { return { name: `成员${index + 1}`, - description: '描述文案描述文案描述文案描述文案描述文案', + description: '成员的相关简介和描述', imgUrl: - 'https://img.alicdn.com/tfs/TB1cUfViZrI8KJjy0FhXXbfnpXa-450-456.png', + 'https://img.alicdn.com/tfs/TB1cUfViZrI8KJjy0FhXXbfnpXa-450-456.png' }; }); }; @@ -28,51 +27,74 @@ export default class OurTeam extends Component { render() { const data = generatorData(4); return ( -
    - -
    -

    我们的团队

    -

    - 我们是一支充满激情、志向远大、怀揣梦想的团队,也是一个思维活跃、朝气蓬勃、团结互助的大家庭。 -

    -
    -
    - {data.map((item, index) => { - return ( -
    - -
    -
    {item.name}
    -

    {item.description}

    -
    +
    +
    +

    我们的团队

    +

    + 我们是一支充满激情、志向远大、怀揣梦想
    的团队,也是一个思维活跃、朝气蓬勃、团结互助的大家庭。 +

    +
    +
    + {data.map((item, index) => { + return ( +
    + +
    +
    {item.name}
    +

    {item.description}

    - ); - })} -
    - +
    + ); + })} +
    ); } } const styles = { - head: { width: '50%', margin: '0 auto' }, - title: { textAlign: 'center', fontSize: '28px' }, - intro: { textAlign: 'center' }, - items: { display: 'flex', flexWrap: 'wrap' }, - item: { display: 'flex', width: '50%', padding: '0 40px', margin: '40px 0' }, + container: { + width: '1080px', + margin: '0 auto', + padding: '80px 0' + }, + head: { + width: '50%', + margin: '0 auto' + }, + title: { + textAlign: 'center', + fontSize: '28px' + }, + intro: { + textAlign: 'center' + }, + items: { + display: 'flex', + flexWrap: 'wrap' + }, + item: { + display: 'flex', + width: '50%', + padding: '0 40px', + margin: '40px 0' + }, baseInfo: { display: 'flex', flexDirection: 'column', justifyContent: 'center', - paddingLeft: '25px', + paddingLeft: '25px' }, name: { fontWeight: 'bold', margin: '0 0 10px', - fontSize: '15px', + fontSize: '15px' }, - description: { margin: 0 }, - avatar: { width: '150px', height: '150px' }, - ourTeam: {}, + description: { + margin: 0 + }, + avatar: { + width: '150px', + height: '150px' + } }; diff --git a/blocks/PriceInfo/src/PriceInfo.jsx b/blocks/PriceInfo/src/PriceInfo.jsx index e88dee0a99..c5e573ff72 100644 --- a/blocks/PriceInfo/src/PriceInfo.jsx +++ b/blocks/PriceInfo/src/PriceInfo.jsx @@ -42,41 +42,39 @@ export default class PriceInfo extends Component { render() { return ( -
    -
    - {data.map((item, index) => { - const rowLastItem = (index + 1) % 3 === 0 ? styles.rowLastItem : {}; - return ( -
    -
    -

    {item.title}

    -

    ¥{item.price}

    -
    -
    - -
    {item.type}
    -

    {item.description}

    -
    - +
    + {data.map((item, index) => { + const rowLastItem = (index + 1) % 3 === 0 ? styles.rowLastItem : {}; + return ( +
    +
    +

    {item.title}

    +

    ¥{item.price}

    - ); - })} -
    +
    + +
    {item.type}
    +

    {item.description}

    +
    + +
    + ); + })}
    ); } } const styles = { - items: { + container: { display: 'flex', flexWrap: 'wrap', padding: '80px 0', @@ -90,7 +88,9 @@ const styles = { borderRadius: '6px', paddingBottom: '50px', }, - rowLastItem: { marginRight: 0 }, + rowLastItem: { + marginRight: 0, + }, head: { padding: '30px 0', background: '#3080FE', @@ -98,16 +98,32 @@ const styles = { color: '#fff', borderRadius: '6px 6px 0 0', }, - title: { margin: '0 0 5px', fontWeight: 'bold', fontSize: '20px' }, - price: { margin: '0', fontWeight: 'bold', fontSize: '18px' }, + title: { + margin: '0 0 5px', + fontWeight: 'bold', + fontSize: '20px', + }, + price: { + margin: '0', + fontWeight: 'bold', + fontSize: '18px', + }, info: { display: 'flex', flexDirection: 'column', alignItems: 'center', marginTop: '40px', }, - image: { width: '52px', height: '52px' }, - type: { margin: 0, fontSize: '15px', fontWeight: 'bold', marginTop: '10px' }, + image: { + width: '52px', + height: '52px', + }, + type: { + margin: 0, + fontSize: '15px', + fontWeight: 'bold', + marginTop: '10px', + }, description: { margin: '20px 0', lineHeight: '22px', @@ -115,12 +131,15 @@ const styles = { width: '60%', color: '#999', }, - buyBtn: { display: 'flex', justifyContent: 'center', marginTop: '20px' }, + buyBtn: { + display: 'flex', + justifyContent: 'center', + marginTop: '20px', + }, link: { padding: '4px 15px', background: '#3080FE', borderRadius: '12px', color: '#fff', }, - priceInfo: {}, }; diff --git a/blocks/ProductInfo/demo/index.js b/blocks/ProductInfo/demo/index.js index 178a766115..f80b542308 100644 --- a/blocks/ProductInfo/demo/index.js +++ b/blocks/ProductInfo/demo/index.js @@ -1,5 +1,5 @@ -import React, {Component} from 'react'; -import {render} from 'react-dom'; +import React, { Component } from 'react'; +import { render } from 'react-dom'; // 载入默认全局样式 normalize 、.clearfix 和一些 mixin 方法等 import '@icedesign/base/lib/_components/@alife/next-core/lib/index.scss'; @@ -11,9 +11,4 @@ const props = { // ... }; -render( - - - , - document.querySelector('#mountNode') -); +render(, document.querySelector('#mountNode')); diff --git a/blocks/ProductInfo/src/ProductInfo.jsx b/blocks/ProductInfo/src/ProductInfo.jsx index 7e8f4e7b3d..8c5ac0a7d8 100644 --- a/blocks/ProductInfo/src/ProductInfo.jsx +++ b/blocks/ProductInfo/src/ProductInfo.jsx @@ -1,37 +1,36 @@ import React, { Component } from 'react'; -import IceCard from '@icedesign/card'; import './ProductInfo.scss'; const dataSource = [ { title: '主页背书', pic: 'https://img.alicdn.com/tfs/TB1i7OMif6H8KJjSspmXXb2WXXa-210-210.png', - desc: '这里填写具体的细节描述,如果文字很长可以', + desc: '这里填写具体的细节描述', }, { title: '频道入驻', pic: 'https://img.alicdn.com/tfs/TB1wA5KinvI8KJjSspjXXcgjXXa-210-210.png', - desc: '这里填写具体的细节描述,如果文字很长可以', + desc: '这里填写具体的细节描述', }, { title: '商业扶持', pic: 'https://img.alicdn.com/tfs/TB1laelicjI8KJjSsppXXXbyVXa-210-210.png', - desc: '这里填写具体的细节描述,如果文字很长可以', + desc: '这里填写具体的细节描述', }, { title: '专属管家', pic: 'https://img.alicdn.com/tfs/TB1EfLYfOqAXuNjy1XdXXaYcVXa-207-210.png', - desc: '这里填写具体的细节描述,如果文字很长可以', + desc: '这里填写具体的细节描述', }, { title: '资源优选', pic: 'https://img.alicdn.com/tfs/TB1a31mignH8KJjSspcXXb3QFXa-210-210.png', - desc: '这里填写具体的细节描述,如果文字很长可以', + desc: '这里填写具体的细节描述', }, { title: '快捷搜索', pic: 'https://img.alicdn.com/tfs/TB1ALecicrI8KJjy0FhXXbfnpXa-210-210.png', - desc: '这里填写具体的细节描述,如果文字很长可以', + desc: '这里填写具体的细节描述', }, ]; @@ -49,29 +48,28 @@ export default class ProductInfo extends Component { render() { return ( -
    - -
    - {dataSource.map((item, index) => { - return ( -
    - -

    {item.title}

    -

    {item.desc}

    -
    - ); - })} -
    -
    +
    + {dataSource.map((item, index) => { + return ( +
    + +

    {item.title}

    +

    {item.desc}

    +
    + ); + })}
    ); } } const styles = { - items: { + container: { display: 'flex', flexWrap: 'wrap', + width: '1080px', + margin: '0 auto', + padding: '80px 0', }, item: { width: '33.3333%', @@ -89,5 +87,4 @@ const styles = { desc: { lineHeight: '22px', }, - productInfo: {}, }; diff --git a/blocks/ProgressTable/src/ProgressTable.jsx b/blocks/ProgressTable/src/ProgressTable.jsx index fbf28f0e97..852503fb11 100644 --- a/blocks/ProgressTable/src/ProgressTable.jsx +++ b/blocks/ProgressTable/src/ProgressTable.jsx @@ -10,7 +10,7 @@ const getTableData = () => { name: 'A旗舰店', total: Math.ceil(Math.random() * 1000000), count: 300 - index * 10, - progress: Math.ceil(Math.random() * 100) + progress: Math.ceil(Math.random() * 100), }; }); }; @@ -23,7 +23,7 @@ export default class ProgressTable extends Component { this.state = { dataSource: getTableData(), - current: 1 + current: 1, }; } @@ -31,9 +31,9 @@ export default class ProgressTable extends Component { ); - onPageChange = pageNo => { + onPageChange = (pageNo) => { this.setState({ - current: pageNo + current: pageNo, }); }; @@ -74,6 +74,6 @@ const styles = { paginationWrapper: { display: 'flex', padding: '20px 0 0 0', - flexDirection: 'row-reverse' - } + flexDirection: 'row-reverse', + }, }; diff --git a/blocks/RightContentDisplay/src/RightContentDisplay.jsx b/blocks/RightContentDisplay/src/RightContentDisplay.jsx index 3f0ef71d7d..d726f3377a 100644 --- a/blocks/RightContentDisplay/src/RightContentDisplay.jsx +++ b/blocks/RightContentDisplay/src/RightContentDisplay.jsx @@ -34,8 +34,9 @@ export default class RightContentDisplay extends Component { const styles = { container: { - margin: '0 auto', width: '1080px', + margin: '0 auto', + padding: '80px 0', }, content: { display: 'flex', diff --git a/blocks/TeamDisplay/demo/index.js b/blocks/TeamDisplay/demo/index.js index 178a766115..f80b542308 100644 --- a/blocks/TeamDisplay/demo/index.js +++ b/blocks/TeamDisplay/demo/index.js @@ -1,5 +1,5 @@ -import React, {Component} from 'react'; -import {render} from 'react-dom'; +import React, { Component } from 'react'; +import { render } from 'react-dom'; // 载入默认全局样式 normalize 、.clearfix 和一些 mixin 方法等 import '@icedesign/base/lib/_components/@alife/next-core/lib/index.scss'; @@ -11,9 +11,4 @@ const props = { // ... }; -render( - - - , - document.querySelector('#mountNode') -); +render(, document.querySelector('#mountNode')); diff --git a/blocks/TeamDisplay/src/TeamDisplay.jsx b/blocks/TeamDisplay/src/TeamDisplay.jsx index 985ce4a287..aea3c1d2b5 100644 --- a/blocks/TeamDisplay/src/TeamDisplay.jsx +++ b/blocks/TeamDisplay/src/TeamDisplay.jsx @@ -1,12 +1,11 @@ import React, { Component } from 'react'; -import IceCard from '@icedesign/card'; import './TeamDisplay.scss'; const generatorData = (count) => { return Array.from({ length: count }).map((item, index) => { return { name: `成员${index + 1}`, - description: '描述文案描述文案描述文案描述文案描述文案', + description: '成员的相关描述', imgUrl: 'https://img.alicdn.com/tfs/TB1cUfViZrI8KJjy0FhXXbfnpXa-450-456.png', }; @@ -24,31 +23,30 @@ export default class TeamDisplay extends Component { render() { const data = generatorData(6); return ( -
    - -

    我们的团队

    -
    - {data.map((item, index) => { - return ( -
    - {item.name} -
    {item.name}
    -

    {item.description}

    -
    - ); - })} -
    -
    +
    +

    我们的团队

    +
    + {data.map((item, index) => { + return ( +
    + {item.name} +
    {item.name}
    +

    {item.description}

    +
    + ); + })} +
    ); } } const styles = { + container: { + width: '1080px', + margin: '0 auto', + padding: '80px 0', + }, title: { textAlign: 'center', fontSize: '28px', diff --git a/blocks/TestimonialCard/src/TestimonialCard.jsx b/blocks/TestimonialCard/src/TestimonialCard.jsx index d1ad7bc4b1..9a4c75a194 100644 --- a/blocks/TestimonialCard/src/TestimonialCard.jsx +++ b/blocks/TestimonialCard/src/TestimonialCard.jsx @@ -74,7 +74,7 @@ const styles = { display: 'flex', flexWrap: 'wrap', padding: '80px 0', - width: '80%', + width: '1080px', margin: '0 auto', }, item: { From e60a2a81c88d797ba5385041f5ca1f493ddaf37c Mon Sep 17 00:00:00 2001 From: chenbin92 Date: Wed, 17 Jan 2018 16:28:21 +0800 Subject: [PATCH 0072/1028] chore: change url --- blocks/BrandDisplay/src/BrandDisplay.jsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/blocks/BrandDisplay/src/BrandDisplay.jsx b/blocks/BrandDisplay/src/BrandDisplay.jsx index 80e8193f07..b779ad77d6 100644 --- a/blocks/BrandDisplay/src/BrandDisplay.jsx +++ b/blocks/BrandDisplay/src/BrandDisplay.jsx @@ -10,7 +10,7 @@ const dataSource = [ headPic: 'https://img.alicdn.com/tfs/TB1QMwlSXXXXXaUXXXXXXXXXXXX-122-122.png', pic: 'https://img.alicdn.com/tfs/TB1n6H_SXXXXXc3XpXXXXXXXXXX-616-348.png', - url: 'https://v.taobao.com/v/mission/case-detail?userId=38587850' + url: 'https://alibaba.github.io/ice' }, { title: '万家乐', @@ -18,7 +18,7 @@ const dataSource = [ '策划『生活改造家』主题全案,联合一线大咖制作图文、直播、短视频全域引流,助力品牌升级和高端人群种草,结合行业活动割草。', headPic: 'https://img.alicdn.com/tfs/TB1Z4CLSXXXXXcHXVXXXXXXXXXX-61-61.png', pic: 'https://img.alicdn.com/tfs/TB1bHO6SXXXXXaiXFXXXXXXXXXX-308-174.png', - url: 'https://v.taobao.com/v/mission/case-detail?userId=2738062192' + url: 'https://alibaba.github.io/ice' }, { title: '职场游乐园', @@ -26,7 +26,7 @@ const dataSource = [ headPic: 'https://img.alicdn.com/tfs/TB1kX62SXXXXXXJXVXXXXXXXXXX-122-122.png', pic: 'https://img.alicdn.com/tfs/TB17bzrSXXXXXbpaFXXXXXXXXXX-616-348.png', - url: 'https://v.taobao.com/v/mission/case-detail?userId=2894350953' + url: 'https://alibaba.github.io/ice' }, { title: '品味百味人生', @@ -35,7 +35,7 @@ const dataSource = [ headPic: 'https://img.alicdn.com/tfs/TB19C_9SXXXXXc1XpXXXXXXXXXX-122-122.png', pic: 'https://img.alicdn.com/tfs/TB1IkEjSXXXXXb1XXXXXXXXXXXX-616-348.png', - url: 'https://v.taobao.com/v/mission/case-detail?userId=2149813109' + url: 'https://alibaba.github.io/ice' } ]; From 1ae0ee5861bc86bd1005851577448ed4e9c160aa Mon Sep 17 00:00:00 2001 From: wssgcg1213 Date: Wed, 17 Jan 2018 16:36:13 +0800 Subject: [PATCH 0073/1028] feat: update scafford --- scaffords/ice-design-lite/generator.json | 33 ++-- scaffords/ice-design-lite/package.json | 7 +- .../ice-design-lite/src/config/navs.json | 5 + scaffords/ice-design-lite/src/global.scss | 173 ------------------ scaffords/ice-design-lite/src/index.html | 16 -- scaffords/ice-design-lite/tests/index.js | 1 + 6 files changed, 28 insertions(+), 207 deletions(-) delete mode 100644 scaffords/ice-design-lite/src/global.scss delete mode 100644 scaffords/ice-design-lite/src/index.html diff --git a/scaffords/ice-design-lite/generator.json b/scaffords/ice-design-lite/generator.json index c42c711c6f..a479f3962d 100644 --- a/scaffords/ice-design-lite/generator.json +++ b/scaffords/ice-design-lite/generator.json @@ -1,24 +1,24 @@ { "layouts": [ { - "source": "@icedesign/basic-layout", - "alias": "BasicLayout", - "title": "居中布局" + "source": "@icedesign/header-footer-layout", + "alias": "HeaderFooterLayout", + "title": "顶栏-底栏布局" }, { - "source": "@icedesign/aside-layout", - "alias": "AsideLayout", - "title": "侧边布局" + "source": "@icedesign/header-aside-footer-layout", + "alias": "HeaderAsideFooterLayout", + "title": "顶栏-侧栏-底栏-布局" }, { - "source": "@icedesign/scalable-aside-layout", - "alias": "ScalableAsideLayout", - "title": "通栏侧边布局" + "source": "@icedesign/fixed-header-footer-responsive-layout", + "alias": "FixedHeaderFooterResponsiveLayout", + "title": "固定顶栏-底栏响应式布局" }, { - "source": "@icedesign/landing-layout", - "alias": "LandingLayout", - "title": "通栏布局" + "source": "@icedesign/fixed-header-footer-responsive-layout", + "alias": "FixedHeaderFooterResponsiveLayout", + "title": "固定顶栏-底栏响应式布局" } ], "components": [], @@ -26,18 +26,19 @@ { "page": "Home", "path": "/", - "layout": "AsideLayout" + "layout": "HeaderAsideFooterLayout" }, { "page": "NotFound", "path": "*", "blocks": [ { - "npm": "", - "version": "latest" + "npm": "@icedesign/basic-not-found-block", + "version": "latest", + "title": "404 报错提示" } ], - "layout": "BasicLayout" + "layout": "HeaderFooterLayout" } ] } diff --git a/scaffords/ice-design-lite/package.json b/scaffords/ice-design-lite/package.json index ca64c9ae31..91cb021577 100644 --- a/scaffords/ice-design-lite/package.json +++ b/scaffords/ice-design-lite/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/scafford-lite", - "version": "0.1.4", + "version": "0.1.4-0", "dependencies": { "@icedesign/base": "^0.1.0", "@icedesign/skin": "^0.1.0", @@ -15,9 +15,12 @@ "eslint-plugin-babel": "^4.1.1", "eslint-plugin-import": "^2.8.0", "eslint-plugin-jsx-a11y": "^6.0.3", - "eslint-plugin-react": "^7.5.1" + "eslint-plugin-react": "^7.5.1", + "@icedesign/scripts": "^0.1.8" }, "scripts": { + "start": "ice dev", + "build": "ice build", "lint": "eslint . --ext '.js,.jsx' --fix" }, "ice": { diff --git a/scaffords/ice-design-lite/src/config/navs.json b/scaffords/ice-design-lite/src/config/navs.json index 70ddf713f5..aedd9af884 100644 --- a/scaffords/ice-design-lite/src/config/navs.json +++ b/scaffords/ice-design-lite/src/config/navs.json @@ -18,6 +18,11 @@ } ], "asideNavs": [ + { + "text": "首页", + "to": "/", + "icon": "store" + }, { "text": "一级目录示例", "to": "/example1", diff --git a/scaffords/ice-design-lite/src/global.scss b/scaffords/ice-design-lite/src/global.scss deleted file mode 100644 index b014d7bb35..0000000000 --- a/scaffords/ice-design-lite/src/global.scss +++ /dev/null @@ -1,173 +0,0 @@ -// 全局样式 -html, -body { - background-color: #fff; - -webkit-font-smoothing: antialiased; -} - -// 覆盖基础组件样式专用 -// 覆盖组件名用注释标记 -// Layout -.ice-layout-theme-light.ice-layout-aside, -.ice-layout-theme-light.ice-layout-aside .ice-menu { - background: transparent; -} - -// 顶部导航 -.ice-layout-theme-light.ice-layout-header { - box-shadow: none; - background: transparent; - .ice-menu-item, - .ice-menu-item > a { - color: #666; - text-decoration: none; - } - .ice-menu-item-selected, - .ice-menu-item-selected > a { - color: #fff; - } -} - -// 侧边导航 -.ice-layout .ice-admin-aside-menu, -.ice-layout .ice-layout-aside { - color: #666; - .ice-menu:not(.ice-menu-horizontal) .ice-menu-item-selected { - background-image: linear-gradient(90deg, #1861D5 0%, #3080FE 100%); - border-radius: 6px; - box-shadow: 0 0 0 rgba(0,0,0,0.1); - color: #fff; - &.ice-menu-item-selected:before { - width: 0; - } - } - .ice-menu-collapse { - .ice-menu-submenu-vertical { - .ice-menu-sub { - background: #fff; - } - } - } - .ice-menu-sub .ice-menu-item:hover:before { - width: 0; - } - .ice-menu-item:hover { - color: #3080FE; - background: transparent; - } - .ice-menu-item, - .ice-menu-item>a { - text-decoration: none; - } - .ice-menu-item-selected, - .ice-menu-item-selected>a { - color: #fff; - } - .ice-menu-submenu-title, - .ice-menu-submenu-title, i::before { - font-weight: bold; - } - - // 侧边导航折叠 - .ice-menu .ice-menu-submenu.ice-menu-submenu-active > .ice-menu-submenu-title { - background: transparent; - color: #3080fe; - &:hover:before { - width: 0; - } - } - - .ice-menu.ice-menu-collapse > .ice-menu-submenu-active > .ice-menu-submenu-title:before, - .ice-menu.ice-menu-collapse > .ice-menu-submenu-selected > .ice-menu-submenu-title:before, - .ice-menu.ice-menu-collapse .ice-menu-item:hover:before { - width: 0; - } - - .ice-menu.ice-menu-collapse .ice-menu:not(.ice-menu-horizontal) .ice-menu-item-selected { - background: transparent; - a { - color: #3080fe; - } - } - - .ice-menu.ice-menu-collapse > .ice-menu-submenu-selected > .ice-menu-submenu-title { - background-image: linear-gradient(90deg, #1861D5 0%, #3080FE 100%); - border-radius: 6px; - color: #fff; - &:before { - width: 0; - } - } -} - -// Footer -.ice-admin-layout-footer { - a:link, - a:visited { - color: #999; - } - a:hover { - color: #2089d9; - } -} - -.ice-layout-main { - color: #666; -} - -// BreadCrumb -.ice-layout-main { - padding: 20px; - - .next-breadcrumb { - margin: 0 20px 20px 20px; - } - .next-breadcrumb .next-breadcrumb-text a { - color: #c4c4c4; - } - .next-breadcrumb .next-breadcrumb-text.activated a { - color: #fff; - } -} - -// Tab -.tab-card { - .next-tabs-tab-inner { - margin-bottom: 13px; - } - .next-tabs-bar { - border-bottom-color: transparent; - } -} - -// ice-card -div.card-block { - box-shadow: 0 0 0 rgba(0,0,0,0.1); -} - -// table -.next-table { - color: #666; - - td { - border: none; - } - - .next-table-row { - &.selected { - background: none; - } - } - - .next-table-cell { - &.first { - border-top-left-radius: 6px; - border-bottom-left-radius: 6px; - } - &.last { - border-top-right-radius: 6px; - border-bottom-right-radius: 6px; - } - } -} - diff --git a/scaffords/ice-design-lite/src/index.html b/scaffords/ice-design-lite/src/index.html deleted file mode 100644 index 5ccffc65df..0000000000 --- a/scaffords/ice-design-lite/src/index.html +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - ICE Design Lite - - - -
    - - - - diff --git a/scaffords/ice-design-lite/tests/index.js b/scaffords/ice-design-lite/tests/index.js index e69de29bb2..346e384d2b 100644 --- a/scaffords/ice-design-lite/tests/index.js +++ b/scaffords/ice-design-lite/tests/index.js @@ -0,0 +1 @@ +// test file From 29c589edb94565554ebc345eba354b4f53c03ec1 Mon Sep 17 00:00:00 2001 From: wssgcg1213 Date: Wed, 17 Jan 2018 17:43:17 +0800 Subject: [PATCH 0074/1028] chore: update scafford-lite --- scaffords/ice-design-lite/generator.json | 1 + scaffords/ice-design-lite/package.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/scaffords/ice-design-lite/generator.json b/scaffords/ice-design-lite/generator.json index a479f3962d..3672523f8e 100644 --- a/scaffords/ice-design-lite/generator.json +++ b/scaffords/ice-design-lite/generator.json @@ -34,6 +34,7 @@ "blocks": [ { "npm": "@icedesign/basic-not-found-block", + "name": "BasicNotFound", "version": "latest", "title": "404 报错提示" } diff --git a/scaffords/ice-design-lite/package.json b/scaffords/ice-design-lite/package.json index 91cb021577..1580a31a12 100644 --- a/scaffords/ice-design-lite/package.json +++ b/scaffords/ice-design-lite/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/scafford-lite", - "version": "0.1.4-0", + "version": "0.1.5", "dependencies": { "@icedesign/base": "^0.1.0", "@icedesign/skin": "^0.1.0", From 4d6af1d1a7582a6ce430b1363838ddbccf2ee3aa Mon Sep 17 00:00:00 2001 From: wssgcg1213 Date: Wed, 17 Jan 2018 17:57:03 +0800 Subject: [PATCH 0075/1028] Publish - @icedesign/asset-info-display-block@0.1.1 - @icedesign/brand-display-block@0.1.4 - @icedesign/brand-show-case-block@0.1.4 - @icedesign/feature-display-block@0.1.4 - @icedesign/left-content-display-block@0.1.4 - @icedesign/our-team-block@0.1.4 - @icedesign/price-info-block@0.1.4 - @icedesign/product-info-block@0.1.4 - @icedesign/progress-table-block@0.1.4 - @icedesign/right-content-display-block@0.1.4 - @icedesign/team-display-block@0.1.3 - @icedesign/testimonial-card-block@0.1.3 --- blocks/AssetInfoDisplay/package.json | 2 +- blocks/BrandDisplay/package.json | 2 +- blocks/BrandShowCase/package.json | 2 +- blocks/FeatureDisplay/package.json | 2 +- blocks/LeftContentDisplay/package.json | 2 +- blocks/OurTeam/package.json | 2 +- blocks/PriceInfo/package.json | 2 +- blocks/ProductInfo/package.json | 2 +- blocks/ProgressTable/package.json | 2 +- blocks/RightContentDisplay/package.json | 2 +- blocks/TeamDisplay/package.json | 2 +- blocks/TestimonialCard/package.json | 2 +- 12 files changed, 12 insertions(+), 12 deletions(-) diff --git a/blocks/AssetInfoDisplay/package.json b/blocks/AssetInfoDisplay/package.json index 01e1afbae4..5564fb0a79 100644 --- a/blocks/AssetInfoDisplay/package.json +++ b/blocks/AssetInfoDisplay/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/asset-info-display-block", - "version": "0.1.0", + "version": "0.1.1", "description": "资产信息展示, 卡片类型的 UI 数据展示, 常用于额度, 余额等页面", "files": [ "src/", diff --git a/blocks/BrandDisplay/package.json b/blocks/BrandDisplay/package.json index 77fdd4474d..52ca670464 100644 --- a/blocks/BrandDisplay/package.json +++ b/blocks/BrandDisplay/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/brand-display-block", - "version": "0.1.3", + "version": "0.1.4", "description": "品牌列表展示", "main": "lib/index.js", "files": [ diff --git a/blocks/BrandShowCase/package.json b/blocks/BrandShowCase/package.json index cf07f04686..5359808a9d 100644 --- a/blocks/BrandShowCase/package.json +++ b/blocks/BrandShowCase/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/brand-show-case-block", - "version": "0.1.3", + "version": "0.1.4", "description": "", "files": [ "src/", diff --git a/blocks/FeatureDisplay/package.json b/blocks/FeatureDisplay/package.json index 1798dae718..c391e992a6 100644 --- a/blocks/FeatureDisplay/package.json +++ b/blocks/FeatureDisplay/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/feature-display-block", - "version": "0.1.3", + "version": "0.1.4", "description": "", "files": [ "src/", diff --git a/blocks/LeftContentDisplay/package.json b/blocks/LeftContentDisplay/package.json index 7d6200b4b3..9e176fd4b2 100644 --- a/blocks/LeftContentDisplay/package.json +++ b/blocks/LeftContentDisplay/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/left-content-display-block", - "version": "0.1.3", + "version": "0.1.4", "description": "", "files": [ "src/", diff --git a/blocks/OurTeam/package.json b/blocks/OurTeam/package.json index 0a9841fc97..ac67a0668e 100644 --- a/blocks/OurTeam/package.json +++ b/blocks/OurTeam/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/our-team-block", - "version": "0.1.3", + "version": "0.1.4", "description": "", "files": [ "src/", diff --git a/blocks/PriceInfo/package.json b/blocks/PriceInfo/package.json index 8bc13d137f..6e0005a82b 100644 --- a/blocks/PriceInfo/package.json +++ b/blocks/PriceInfo/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/price-info-block", - "version": "0.1.3", + "version": "0.1.4", "description": "", "files": [ "src/", diff --git a/blocks/ProductInfo/package.json b/blocks/ProductInfo/package.json index 0733a76756..9d7d247653 100644 --- a/blocks/ProductInfo/package.json +++ b/blocks/ProductInfo/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/product-info-block", - "version": "0.1.3", + "version": "0.1.4", "description": "产品信息展示", "files": [ "src/", diff --git a/blocks/ProgressTable/package.json b/blocks/ProgressTable/package.json index 4470b3ade9..5e1c207727 100644 --- a/blocks/ProgressTable/package.json +++ b/blocks/ProgressTable/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/progress-table-block", - "version": "0.1.3", + "version": "0.1.4", "description": "进度条表格", "main": "lib/index.js", "files": [ diff --git a/blocks/RightContentDisplay/package.json b/blocks/RightContentDisplay/package.json index 976d7e767a..08e9e7510a 100644 --- a/blocks/RightContentDisplay/package.json +++ b/blocks/RightContentDisplay/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/right-content-display-block", - "version": "0.1.3", + "version": "0.1.4", "description": "", "files": [ "src/", diff --git a/blocks/TeamDisplay/package.json b/blocks/TeamDisplay/package.json index 13cc33f57e..bd9a54754a 100644 --- a/blocks/TeamDisplay/package.json +++ b/blocks/TeamDisplay/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/team-display-block", - "version": "0.1.2", + "version": "0.1.3", "description": "", "files": [ "src/", diff --git a/blocks/TestimonialCard/package.json b/blocks/TestimonialCard/package.json index a4e8a24844..0f02154f3e 100644 --- a/blocks/TestimonialCard/package.json +++ b/blocks/TestimonialCard/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/testimonial-card-block", - "version": "0.1.2", + "version": "0.1.3", "description": "", "files": [ "src/", From 0af59be92ec72249a726f72c74ed30c22d251fa0 Mon Sep 17 00:00:00 2001 From: wssgcg1213 Date: Wed, 17 Jan 2018 18:10:44 +0800 Subject: [PATCH 0076/1028] chore: lerna add scaffords folder --- lerna.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lerna.json b/lerna.json index ee14cc696b..e410bed0ce 100644 --- a/lerna.json +++ b/lerna.json @@ -3,7 +3,8 @@ "packages": [ "packages/*", "blocks/*", - "layouts/*" + "layouts/*", + "scaffords/*" ], "version": "independent" } From cbc5de301c89967ef544babedf85661ff601b09c Mon Sep 17 00:00:00 2001 From: wssgcg1213 Date: Wed, 17 Jan 2018 18:12:33 +0800 Subject: [PATCH 0077/1028] fix: lint --- blocks/BrandDisplay/src/BrandDisplay.jsx | 30 +++++++++++----------- blocks/BrandShowCase/src/BrandShowCase.jsx | 20 +++++++-------- blocks/OurTeam/src/OurTeam.jsx | 26 +++++++++---------- 3 files changed, 38 insertions(+), 38 deletions(-) diff --git a/blocks/BrandDisplay/src/BrandDisplay.jsx b/blocks/BrandDisplay/src/BrandDisplay.jsx index b779ad77d6..467b91cb19 100644 --- a/blocks/BrandDisplay/src/BrandDisplay.jsx +++ b/blocks/BrandDisplay/src/BrandDisplay.jsx @@ -10,7 +10,7 @@ const dataSource = [ headPic: 'https://img.alicdn.com/tfs/TB1QMwlSXXXXXaUXXXXXXXXXXXX-122-122.png', pic: 'https://img.alicdn.com/tfs/TB1n6H_SXXXXXc3XpXXXXXXXXXX-616-348.png', - url: 'https://alibaba.github.io/ice' + url: 'https://alibaba.github.io/ice', }, { title: '万家乐', @@ -18,7 +18,7 @@ const dataSource = [ '策划『生活改造家』主题全案,联合一线大咖制作图文、直播、短视频全域引流,助力品牌升级和高端人群种草,结合行业活动割草。', headPic: 'https://img.alicdn.com/tfs/TB1Z4CLSXXXXXcHXVXXXXXXXXXX-61-61.png', pic: 'https://img.alicdn.com/tfs/TB1bHO6SXXXXXaiXFXXXXXXXXXX-308-174.png', - url: 'https://alibaba.github.io/ice' + url: 'https://alibaba.github.io/ice', }, { title: '职场游乐园', @@ -26,7 +26,7 @@ const dataSource = [ headPic: 'https://img.alicdn.com/tfs/TB1kX62SXXXXXXJXVXXXXXXXXXX-122-122.png', pic: 'https://img.alicdn.com/tfs/TB17bzrSXXXXXbpaFXXXXXXXXXX-616-348.png', - url: 'https://alibaba.github.io/ice' + url: 'https://alibaba.github.io/ice', }, { title: '品味百味人生', @@ -35,8 +35,8 @@ const dataSource = [ headPic: 'https://img.alicdn.com/tfs/TB19C_9SXXXXXc1XpXXXXXXXXXX-122-122.png', pic: 'https://img.alicdn.com/tfs/TB1IkEjSXXXXXb1XXXXXXXXXXXX-616-348.png', - url: 'https://alibaba.github.io/ice' - } + url: 'https://alibaba.github.io/ice', + }, ]; export default class BrandDisplay extends Component { @@ -85,16 +85,16 @@ const styles = { container: { width: '1080px', margin: '0 auto', - padding: '80px 0' + padding: '80px 0', }, brandHeader: { position: 'relative', - textAlign: 'center' + textAlign: 'center', }, brandTitle: { marginBottom: '40px', fontSize: '20px', - color: '#333333' + color: '#333333', }, brandItem: { width: '50%', @@ -103,34 +103,34 @@ const styles = { display: 'inline-block', verticalAlign: 'top', marginBottom: '30px', - overflow: 'hidden' + overflow: 'hidden', }, caseContent: { width: '250px', display: 'inline-block', - verticalAlign: 'top' + verticalAlign: 'top', }, caseSubject: { margin: '20px 10px 0', lineHeight: '60px', - height: '60px' + height: '60px', }, subjectImage: { width: '60px', height: '60px', - borderRadius: '50%' + borderRadius: '50%', }, subjectDesc: { fontSize: '16px', color: '#333333', height: '60px', verticalAlign: 'top', - marginLeft: '12px' + marginLeft: '12px', }, caseDetail: { fontSize: '12px', color: '#666666', padding: '0 16px', - textAlign: 'left' - } + textAlign: 'left', + }, }; diff --git a/blocks/BrandShowCase/src/BrandShowCase.jsx b/blocks/BrandShowCase/src/BrandShowCase.jsx index affc7b6037..ba7de477bd 100644 --- a/blocks/BrandShowCase/src/BrandShowCase.jsx +++ b/blocks/BrandShowCase/src/BrandShowCase.jsx @@ -1,11 +1,11 @@ import React, { Component } from 'react'; import './BrandShowCase.scss'; -const generatorData = count => { +const generatorData = (count) => { return Array.from({ length: count }).map(() => { return { imgUrl: - 'https://img.alicdn.com/tfs/TB1rnNcjr_I8KJjy1XaXXbsxpXa-603-474.png' + 'https://img.alicdn.com/tfs/TB1rnNcjr_I8KJjy1XaXXbsxpXa-603-474.png', }; }); }; @@ -50,32 +50,32 @@ const styles = { container: { width: '1080px', margin: '0 auto', - padding: '80px 0' + padding: '80px 0', }, head: { width: '50%', - margin: '0 auto' + margin: '0 auto', }, title: { textAlign: 'center', - fontSize: '28px' + fontSize: '28px', }, intro: { textAlign: 'center', - color: '#999' + color: '#999', }, items: { display: 'flex', flexWrap: 'wrap', - margin: '30px 0' + margin: '30px 0', }, item: { width: '16.66%', margin: '10px 0', - textAlign: 'center' + textAlign: 'center', }, image: { width: '100px', - height: '80px' - } + height: '80px', + }, }; diff --git a/blocks/OurTeam/src/OurTeam.jsx b/blocks/OurTeam/src/OurTeam.jsx index 4112417627..de06312389 100644 --- a/blocks/OurTeam/src/OurTeam.jsx +++ b/blocks/OurTeam/src/OurTeam.jsx @@ -1,13 +1,13 @@ import React, { Component } from 'react'; import './OurTeam.scss'; -const generatorData = count => { +const generatorData = (count) => { return Array.from({ length: count }).map((item, index) => { return { name: `成员${index + 1}`, description: '成员的相关简介和描述', imgUrl: - 'https://img.alicdn.com/tfs/TB1cUfViZrI8KJjy0FhXXbfnpXa-450-456.png' + 'https://img.alicdn.com/tfs/TB1cUfViZrI8KJjy0FhXXbfnpXa-450-456.png', }; }); }; @@ -56,45 +56,45 @@ const styles = { container: { width: '1080px', margin: '0 auto', - padding: '80px 0' + padding: '80px 0', }, head: { width: '50%', - margin: '0 auto' + margin: '0 auto', }, title: { textAlign: 'center', - fontSize: '28px' + fontSize: '28px', }, intro: { - textAlign: 'center' + textAlign: 'center', }, items: { display: 'flex', - flexWrap: 'wrap' + flexWrap: 'wrap', }, item: { display: 'flex', width: '50%', padding: '0 40px', - margin: '40px 0' + margin: '40px 0', }, baseInfo: { display: 'flex', flexDirection: 'column', justifyContent: 'center', - paddingLeft: '25px' + paddingLeft: '25px', }, name: { fontWeight: 'bold', margin: '0 0 10px', - fontSize: '15px' + fontSize: '15px', }, description: { - margin: 0 + margin: 0, }, avatar: { width: '150px', - height: '150px' - } + height: '150px', + }, }; From 471e8498ef58c3c5011ab9be0db428d5efb7d167 Mon Sep 17 00:00:00 2001 From: chenbin92 Date: Wed, 17 Jan 2018 18:25:00 +0800 Subject: [PATCH 0078/1028] block: add ChartCard block --- blocks/ChartCard/README.md | 5 + blocks/ChartCard/demo/index.html | 18 +++ blocks/ChartCard/demo/index.js | 19 ++++ blocks/ChartCard/mock/chart-card.json | 4 + blocks/ChartCard/package.json | 38 +++++++ blocks/ChartCard/src/ChartCard.jsx | 155 ++++++++++++++++++++++++++ blocks/ChartCard/src/ChartCard.scss | 5 + blocks/ChartCard/src/index.js | 3 + 8 files changed, 247 insertions(+) create mode 100644 blocks/ChartCard/README.md create mode 100644 blocks/ChartCard/demo/index.html create mode 100644 blocks/ChartCard/demo/index.js create mode 100644 blocks/ChartCard/mock/chart-card.json create mode 100644 blocks/ChartCard/package.json create mode 100644 blocks/ChartCard/src/ChartCard.jsx create mode 100644 blocks/ChartCard/src/ChartCard.scss create mode 100644 blocks/ChartCard/src/index.js diff --git a/blocks/ChartCard/README.md b/blocks/ChartCard/README.md new file mode 100644 index 0000000000..af198d4353 --- /dev/null +++ b/blocks/ChartCard/README.md @@ -0,0 +1,5 @@ +# chart-card + +简介:图表卡片 + +![截图](https://img.alicdn.com/tfs/TB1K03rnb_I8KJjy1XaXXbsxpXa-961-179.png) diff --git a/blocks/ChartCard/demo/index.html b/blocks/ChartCard/demo/index.html new file mode 100644 index 0000000000..cb0422f8d9 --- /dev/null +++ b/blocks/ChartCard/demo/index.html @@ -0,0 +1,18 @@ + + + + + + + + Document + + + + +
    + + + + + diff --git a/blocks/ChartCard/demo/index.js b/blocks/ChartCard/demo/index.js new file mode 100644 index 0000000000..4d6acd389a --- /dev/null +++ b/blocks/ChartCard/demo/index.js @@ -0,0 +1,19 @@ +import React, { Component } from 'react'; +import { render } from 'react-dom'; + +// 载入默认全局样式 normalize 、.clearfix 和一些 mixin 方法等 +import '@icedesign/base/lib/_components/@alife/next-core/lib/index.scss'; + +import DemoLayout from '@icedesign/demo-layout'; +import Block from '../src'; + +const props = { + // ... +}; + +render( + + + , + document.querySelector('#mountNode') +); diff --git a/blocks/ChartCard/mock/chart-card.json b/blocks/ChartCard/mock/chart-card.json new file mode 100644 index 0000000000..eee2984fbe --- /dev/null +++ b/blocks/ChartCard/mock/chart-card.json @@ -0,0 +1,4 @@ +{ + "status": "SUCCESS", + "data": {} +} diff --git a/blocks/ChartCard/package.json b/blocks/ChartCard/package.json new file mode 100644 index 0000000000..22ea77dd06 --- /dev/null +++ b/blocks/ChartCard/package.json @@ -0,0 +1,38 @@ +{ + "name": "@icedesign/chart-card-block", + "version": "0.1.0", + "description": "", + "files": ["src/", "demo/", "lib/", "mock/"], + "author": { + "name": "ICE Team", + "email": "ice-admin@alibaba-inc.com" + }, + "repository": { + "type": "git", + "url": "https://github.com/alibaba/ice" + }, + "license": "MIT", + "keywords": ["ice", "ice-block"], + "dependencies": { + "@icedesign/base": "^0.1.0", + "ant-design-pro": "^1.0.1", + "antd": "^3.1.3", + "moment": "^2.20.1", + "numeral": "^2.0.6", + "prop-types": "^15.5.8" + }, + "devDependencies": { + "@icedesign/demo-layout": "^0.1.2", + "@icedesign/skin": "latest", + "react": "*", + "react-dom": "*" + }, + "blockConfig": { + "name": "chart-card", + "snapshot": + "https://img.alicdn.com/tfs/TB1K03rnb_I8KJjy1XaXXbsxpXa-961-179.png", + "title": "图表卡片", + "categories": ["chart"], + "themePackage": "@icedesign/skin" + } +} diff --git a/blocks/ChartCard/src/ChartCard.jsx b/blocks/ChartCard/src/ChartCard.jsx new file mode 100644 index 0000000000..27719112ad --- /dev/null +++ b/blocks/ChartCard/src/ChartCard.jsx @@ -0,0 +1,155 @@ +'use strict'; + +import React, { Component } from 'react'; +import PropTypes from 'prop-types'; +import moment from 'moment'; + +import { + ChartCard, + yuan, + Field, + MiniArea, + MiniBar, + MiniProgress +} from 'ant-design-pro/lib/Charts'; +import Trend from 'ant-design-pro/lib/Trend'; +import { Row, Col, Icon, Tooltip } from 'antd'; +import numeral from 'numeral'; +import 'ant-design-pro/dist/ant-design-pro.css'; + +import './ChartCard.scss'; + +export default class CustomChartCard extends Component { + static displayName = 'CustomChartCard'; + + static propTypes = {}; + + static defaultProps = {}; + + constructor(props) { + super(props); + this.state = {}; + } + + render() { + const topColResponsiveProps = { + xs: 24, + sm: 12, + md: 12, + lg: 12, + xl: 6, + style: { marginBottom: 24 } + }; + + const visitData = []; + const beginDay = new Date().getTime(); + + const fakeY = [7, 5, 4, 2, 4, 7, 5, 6, 5, 9, 6, 3, 1, 5, 3, 6, 5]; + for (let i = 0; i < fakeY.length; i += 1) { + visitData.push({ + x: moment(new Date(beginDay + 1000 * 60 * 60 * 24 * i)).format( + 'YYYY-MM-DD' + ), + y: fakeY[i] + }); + } + return ( +
    + + + + + + } + total={yuan(126560)} + footer={ + + } + contentHeight={46} + > + + 周同比12% + + + 日环比11% + + + + + + + + } + total={numeral(8846).format('0,0')} + footer={ + + } + contentHeight={46} + > + + + + + + + + } + total={numeral(6560).format('0,0')} + footer={} + contentHeight={46} + > + + + + + + + + } + total="78%" + footer={ +
    + + 周同比12% + + + 日环比11% + +
    + } + contentHeight={46} + > + +
    + +
    +
    + ); + } +} + +const styles = {}; diff --git a/blocks/ChartCard/src/ChartCard.scss b/blocks/ChartCard/src/ChartCard.scss new file mode 100644 index 0000000000..e7a03f222b --- /dev/null +++ b/blocks/ChartCard/src/ChartCard.scss @@ -0,0 +1,5 @@ +@charset "UTF-8"; + +.chart-card { + +} diff --git a/blocks/ChartCard/src/index.js b/blocks/ChartCard/src/index.js new file mode 100644 index 0000000000..f14ffd6d4a --- /dev/null +++ b/blocks/ChartCard/src/index.js @@ -0,0 +1,3 @@ +import ChartCard from './ChartCard'; + +export default ChartCard; From 56d14e063d9c9eea73c3e6c205f39a36377fec79 Mon Sep 17 00:00:00 2001 From: wssgcg1213 Date: Wed, 17 Jan 2018 20:49:21 +0800 Subject: [PATCH 0079/1028] chore: review readme --- README.md | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index cb3efdb15a..f8709381b9 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ ICE

    -

    赋能企业中后台建设

    +

    基于 React 的海量可复用区块,通过 GUI 工具极速构建中后台应用

    @@ -11,26 +11,14 @@ --- -ICE 是一套通过沉淀海量高质量可复用物料,借助 GUI 工具快速赋能企业中后台建设的解决方案。 - :art: **ICE Design 设计语言:** 淘宝中后台通用的 [设计语言](https://alibaba.github.io/ice/design.html) - :zap: **海量高质量物料:** 区块 + 模板满足你开发之所需,所见即所得 - :dart: **GUI 工具** 人类友好的交互界面,零配置的工程整合,物料一键复用,颠覆前端开发体验 [点击下载](https://alibaba.github.io/ice/#/iceworks) -## 快速开始 - -请从下载并安装 [iceworks](https://alibaba.github.io/ice/#/iceworks) 开始,[入门教程](https://alibaba.github.io/ice/#/iceworks/start),点击查阅 [区块列表](https://alibaba.github.io/ice/#/blocks)。 - -## 贡献 - -我们欢迎开源社区参与到项目的建设中来,在开始前,请先查阅本项目的 [贡献指南](/alibaba/ice/blob/master/.github/CONTRIBUTING.md) -### 开发及发布流程 +## 开发及发布流程 -- `npm run bootstrap` 本地仓库链接 -- `npm start` 启动调试服务器 +- `npm run bootstrap` 初始化 Lerna - `npm run lint` 代码 Lint 风格检查 - `npm run publish` 代码发布 From 7093565255806ada83e3fce8ac4e14134d1cceb5 Mon Sep 17 00:00:00 2001 From: wssgcg1213 Date: Wed, 17 Jan 2018 21:31:49 +0800 Subject: [PATCH 0080/1028] fix: layout title field --- layouts/HeaderAsideFooterResponsiveLayout/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/HeaderAsideFooterResponsiveLayout/package.json b/layouts/HeaderAsideFooterResponsiveLayout/package.json index 629eec6657..3546c665df 100644 --- a/layouts/HeaderAsideFooterResponsiveLayout/package.json +++ b/layouts/HeaderAsideFooterResponsiveLayout/package.json @@ -45,7 +45,7 @@ }, "blockConfig": { "name": "header-aside-footer-responsive-layout", - "chinese": "顶栏-侧栏-底栏-响应式布局", + "title": "顶栏-侧栏-底栏-响应式布局", "categories": [ "layout" ], From 1461aa74f12c1ef78b628481a7292c7a56a58660 Mon Sep 17 00:00:00 2001 From: wssgcg1213 Date: Wed, 17 Jan 2018 21:32:21 +0800 Subject: [PATCH 0081/1028] Publish - @icedesign/brand-display-block@0.1.5 - @icedesign/brand-show-case-block@0.1.5 - @icedesign/our-team-block@0.1.5 - @icedesign/header-aside-footer-responsive-layout@0.1.9 - @icedesign/scafford-lite@0.1.6 --- blocks/BrandDisplay/package.json | 2 +- blocks/BrandShowCase/package.json | 2 +- blocks/OurTeam/package.json | 2 +- layouts/HeaderAsideFooterResponsiveLayout/package.json | 2 +- scaffords/ice-design-lite/package.json | 6 +++--- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/blocks/BrandDisplay/package.json b/blocks/BrandDisplay/package.json index 52ca670464..bcdda4e391 100644 --- a/blocks/BrandDisplay/package.json +++ b/blocks/BrandDisplay/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/brand-display-block", - "version": "0.1.4", + "version": "0.1.5", "description": "品牌列表展示", "main": "lib/index.js", "files": [ diff --git a/blocks/BrandShowCase/package.json b/blocks/BrandShowCase/package.json index 5359808a9d..c9441bf3c7 100644 --- a/blocks/BrandShowCase/package.json +++ b/blocks/BrandShowCase/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/brand-show-case-block", - "version": "0.1.4", + "version": "0.1.5", "description": "", "files": [ "src/", diff --git a/blocks/OurTeam/package.json b/blocks/OurTeam/package.json index ac67a0668e..e18dbeebb1 100644 --- a/blocks/OurTeam/package.json +++ b/blocks/OurTeam/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/our-team-block", - "version": "0.1.4", + "version": "0.1.5", "description": "", "files": [ "src/", diff --git a/layouts/HeaderAsideFooterResponsiveLayout/package.json b/layouts/HeaderAsideFooterResponsiveLayout/package.json index 3546c665df..d6293421d5 100644 --- a/layouts/HeaderAsideFooterResponsiveLayout/package.json +++ b/layouts/HeaderAsideFooterResponsiveLayout/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/header-aside-footer-responsive-layout", - "version": "0.1.8", + "version": "0.1.9", "description": "顶部导航 + 边栏 + 底栏 + 响应式内容区的布局, 通常用于站点正文。", "files": [ "lib/", diff --git a/scaffords/ice-design-lite/package.json b/scaffords/ice-design-lite/package.json index 1580a31a12..10a9fc3da9 100644 --- a/scaffords/ice-design-lite/package.json +++ b/scaffords/ice-design-lite/package.json @@ -1,6 +1,6 @@ { "name": "@icedesign/scafford-lite", - "version": "0.1.5", + "version": "0.1.6", "dependencies": { "@icedesign/base": "^0.1.0", "@icedesign/skin": "^0.1.0", @@ -9,14 +9,14 @@ "react-router": "^3.2.0" }, "devDependencies": { + "@icedesign/scripts": "^0.1.8", "babel-eslint": "^8.0.3", "eslint": "^4.13.1", "eslint-config-airbnb": "^16.1.0", "eslint-plugin-babel": "^4.1.1", "eslint-plugin-import": "^2.8.0", "eslint-plugin-jsx-a11y": "^6.0.3", - "eslint-plugin-react": "^7.5.1", - "@icedesign/scripts": "^0.1.8" + "eslint-plugin-react": "^7.5.1" }, "scripts": { "start": "ice dev", From 1c83ed437e7f90ae437d8902ecd08ad5519f5726 Mon Sep 17 00:00:00 2001 From: chenbin92 Date: Thu, 18 Jan 2018 10:10:12 +0800 Subject: [PATCH 0082/1028] feat: add ice-design-pro --- scaffords/ice-design-lite/generator.json | 4 +- scaffords/ice-design-pro/.editorconfig | 12 + scaffords/ice-design-pro/.eslintignore | 11 + scaffords/ice-design-pro/.eslintrc | 60 ++++ scaffords/ice-design-pro/README.md | 19 + scaffords/ice-design-pro/generator.json | 73 ++++ .../mock/complex-tab-table-list.json | 114 ++++++ .../ice-design-pro/mock/detail-table.json | 4 + .../ice-design-pro/mock/feature-display.json | 4 + .../mock/filter-table-list.json | 122 +++++++ .../mock/landing-intro-banner.json | 4 + scaffords/ice-design-pro/mock/price-info.json | 4 + .../mock/simple-testimonial.json | 4 + scaffords/ice-design-pro/mock/tab-chart.json | 4 + .../ice-design-pro/mock/testimonial-card.json | 4 + .../ice-design-pro/mock/testimonial.json | 4 + scaffords/ice-design-pro/package.json | 45 +++ .../ice-design-pro/public/images/logo.png | Bin 0 -> 2189 bytes scaffords/ice-design-pro/public/index.html | 17 + .../src/config/components/Footer.jsx | 33 ++ .../src/config/components/Header.jsx | 69 ++++ .../src/config/components/Logo.jsx | 45 +++ scaffords/ice-design-pro/src/config/navs.json | 67 ++++ scaffords/ice-design-pro/src/index.js | 13 + .../Layout.jsx | 45 +++ .../Layout.scss | 35 ++ .../index.js | 1 + .../HeaderAsideFooterLayout/Layout.jsx | 132 +++++++ .../HeaderAsideFooterLayout/Layout.scss | 50 +++ .../layouts/HeaderAsideFooterLayout/index.js | 1 + .../src/layouts/HeaderFooterLayout/Layout.jsx | 30 ++ .../layouts/HeaderFooterLayout/Layout.scss | 45 +++ .../src/layouts/HeaderFooterLayout/index.js | 1 + .../src/pages/Charts/Charts.jsx | 50 +++ .../src/pages/Charts/Charts.scss | 3 + .../components/chart-area/ChartArea.jsx | 91 +++++ .../components/chart-area/ChartArea.scss | 5 + .../Charts/components/chart-area/index.js | 3 + .../Charts/components/chart-bar/ChartBar.jsx | 84 +++++ .../Charts/components/chart-bar/ChartBar.scss | 5 + .../Charts/components/chart-bar/index.js | 3 + .../Charts/components/chart-box/ChartBox.jsx | 186 ++++++++++ .../Charts/components/chart-box/ChartBox.scss | 5 + .../Charts/components/chart-box/index.js | 3 + .../chart-bubble-image/ChartBubbleImage.jsx | 136 +++++++ .../chart-bubble-image/ChartBubbleImage.scss | 5 + .../components/chart-bubble-image/index.js | 3 + .../components/chart-radar/ChartRadar.jsx | 115 ++++++ .../components/chart-radar/ChartRadar.scss | 5 + .../Charts/components/chart-radar/index.js | 3 + .../chart-type-line/ChartTypeLine.jsx | 92 +++++ .../chart-type-line/ChartTypeLine.scss | 5 + .../components/chart-type-line/index.js | 3 + .../pie-doughnut-chart/PieDoughnutChart.jsx | 102 ++++++ .../pie-doughnut-chart/PieDoughnutChart.scss | 5 + .../components/pie-doughnut-chart/index.js | 3 + .../ice-design-pro/src/pages/Charts/index.js | 1 + .../src/pages/Dashboard/Dashboard.jsx | 42 +++ .../src/pages/Dashboard/Dashboard.scss | 3 + .../components/basic-tab/BasicTab.jsx | 35 ++ .../components/basic-tab/BasicTab.scss | 4 + .../Dashboard/components/basic-tab/index.js | 3 + .../components/chart-bar/ChartBar.jsx | 84 +++++ .../components/chart-bar/ChartBar.scss | 5 + .../Dashboard/components/chart-bar/index.js | 3 + .../components/data-display/DataDisplay.jsx | 85 +++++ .../components/data-display/DataDisplay.scss | 5 + .../components/data-display/index.js | 3 + .../pie-doughnut-chart/PieDoughnutChart.jsx | 102 ++++++ .../pie-doughnut-chart/PieDoughnutChart.scss | 5 + .../components/pie-doughnut-chart/index.js | 3 + .../progress-table/ProgressTable.jsx | 78 ++++ .../progress-table/ProgressTable.scss | 8 + .../components/progress-table/index.js | 3 + .../src/pages/Dashboard/index.js | 1 + .../ice-design-pro/src/pages/Fail/Fail.jsx | 26 ++ .../ice-design-pro/src/pages/Fail/Fail.scss | 3 + .../failure-detail/FailureDetail.jsx | 86 +++++ .../failure-detail/FailureDetail.scss | 4 + .../Fail/components/failure-detail/index.js | 3 + .../ice-design-pro/src/pages/Fail/index.js | 1 + .../ice-design-pro/src/pages/Home/Home.jsx | 22 ++ .../ice-design-pro/src/pages/Home/Home.scss | 3 + .../ice-design-pro/src/pages/Home/index.js | 1 + .../src/pages/Landing/Landing.jsx | 26 ++ .../src/pages/Landing/Landing.scss | 3 + .../LandingIntroBanner.jsx | 101 ++++++ .../LandingIntroBanner.scss | 9 + .../components/landing-intro-banner/index.js | 3 + .../ice-design-pro/src/pages/Landing/index.js | 1 + .../ice-design-pro/src/pages/List/List.jsx | 26 ++ .../ice-design-pro/src/pages/List/List.scss | 3 + .../ArticleList/ArticleList.jsx | 107 ++++++ .../ArticleList/ArticleList.scss | 5 + .../text-search-list/ArticleList/index.js | 3 + .../text-search-list/Filter/Filter.jsx | 46 +++ .../text-search-list/Filter/index.js | 3 + .../text-search-list/TextSearchList.jsx | 89 +++++ .../text-search-list/TextSearchList.scss | 5 + .../List/components/text-search-list/index.js | 3 + .../ice-design-pro/src/pages/List/index.js | 1 + .../src/pages/Portlets/Portlets.jsx | 34 ++ .../src/pages/Portlets/Portlets.scss | 3 + .../basic-detail-info/BasicDetailInfo.jsx | 125 +++++++ .../basic-detail-info/BasicDetailInfo.scss | 32 ++ .../components/basic-detail-info/index.js | 3 + .../components/collapse-card/CollapseCard.jsx | 109 ++++++ .../collapse-card/CollapseCard.scss | 30 ++ .../components/collapse-card/index.js | 3 + .../components/detail-table/DetailTable.jsx | 86 +++++ .../components/detail-table/DetailTable.scss | 5 + .../Portlets/components/detail-table/index.js | 3 + .../src/pages/Portlets/index.js | 1 + .../src/pages/Result/Result.jsx | 26 ++ .../src/pages/Result/Result.scss | 3 + .../success-detail/SuccessDetail.jsx | 92 +++++ .../success-detail/SuccessDetail.scss | 4 + .../Result/components/success-detail/index.js | 3 + .../ice-design-pro/src/pages/Result/index.js | 1 + .../ice-design-pro/src/pages/Table/Table.jsx | 26 ++ .../ice-design-pro/src/pages/Table/Table.scss | 3 + .../complex-tab-table/ComplexTabTable.jsx | 337 ++++++++++++++++++ .../complex-tab-table/ComplexTabTable.scss | 14 + .../complex-tab-table/SubCategoryItem.jsx | 35 ++ .../components/complex-tab-table/index.js | 3 + .../ice-design-pro/src/pages/Table/index.js | 1 + scaffords/ice-design-pro/src/routes.jsx | 74 ++++ scaffords/ice-design-pro/src/utils/getEnv.js | 16 + 128 files changed, 4117 insertions(+), 2 deletions(-) create mode 100644 scaffords/ice-design-pro/.editorconfig create mode 100644 scaffords/ice-design-pro/.eslintignore create mode 100644 scaffords/ice-design-pro/.eslintrc create mode 100644 scaffords/ice-design-pro/README.md create mode 100644 scaffords/ice-design-pro/generator.json create mode 100644 scaffords/ice-design-pro/mock/complex-tab-table-list.json create mode 100644 scaffords/ice-design-pro/mock/detail-table.json create mode 100644 scaffords/ice-design-pro/mock/feature-display.json create mode 100644 scaffords/ice-design-pro/mock/filter-table-list.json create mode 100644 scaffords/ice-design-pro/mock/landing-intro-banner.json create mode 100644 scaffords/ice-design-pro/mock/price-info.json create mode 100644 scaffords/ice-design-pro/mock/simple-testimonial.json create mode 100644 scaffords/ice-design-pro/mock/tab-chart.json create mode 100644 scaffords/ice-design-pro/mock/testimonial-card.json create mode 100644 scaffords/ice-design-pro/mock/testimonial.json create mode 100644 scaffords/ice-design-pro/package.json create mode 100644 scaffords/ice-design-pro/public/images/logo.png create mode 100644 scaffords/ice-design-pro/public/index.html create mode 100644 scaffords/ice-design-pro/src/config/components/Footer.jsx create mode 100644 scaffords/ice-design-pro/src/config/components/Header.jsx create mode 100644 scaffords/ice-design-pro/src/config/components/Logo.jsx create mode 100644 scaffords/ice-design-pro/src/config/navs.json create mode 100644 scaffords/ice-design-pro/src/index.js create mode 100644 scaffords/ice-design-pro/src/layouts/FixedHeaderFooterResponsiveLayout/Layout.jsx create mode 100644 scaffords/ice-design-pro/src/layouts/FixedHeaderFooterResponsiveLayout/Layout.scss create mode 100644 scaffords/ice-design-pro/src/layouts/FixedHeaderFooterResponsiveLayout/index.js create mode 100644 scaffords/ice-design-pro/src/layouts/HeaderAsideFooterLayout/Layout.jsx create mode 100644 scaffords/ice-design-pro/src/layouts/HeaderAsideFooterLayout/Layout.scss create mode 100644 scaffords/ice-design-pro/src/layouts/HeaderAsideFooterLayout/index.js create mode 100644 scaffords/ice-design-pro/src/layouts/HeaderFooterLayout/Layout.jsx create mode 100644 scaffords/ice-design-pro/src/layouts/HeaderFooterLayout/Layout.scss create mode 100644 scaffords/ice-design-pro/src/layouts/HeaderFooterLayout/index.js create mode 100644 scaffords/ice-design-pro/src/pages/Charts/Charts.jsx create mode 100644 scaffords/ice-design-pro/src/pages/Charts/Charts.scss create mode 100644 scaffords/ice-design-pro/src/pages/Charts/components/chart-area/ChartArea.jsx create mode 100644 scaffords/ice-design-pro/src/pages/Charts/components/chart-area/ChartArea.scss create mode 100644 scaffords/ice-design-pro/src/pages/Charts/components/chart-area/index.js create mode 100644 scaffords/ice-design-pro/src/pages/Charts/components/chart-bar/ChartBar.jsx create mode 100644 scaffords/ice-design-pro/src/pages/Charts/components/chart-bar/ChartBar.scss create mode 100644 scaffords/ice-design-pro/src/pages/Charts/components/chart-bar/index.js create mode 100644 scaffords/ice-design-pro/src/pages/Charts/components/chart-box/ChartBox.jsx create mode 100644 scaffords/ice-design-pro/src/pages/Charts/components/chart-box/ChartBox.scss create mode 100644 scaffords/ice-design-pro/src/pages/Charts/components/chart-box/index.js create mode 100644 scaffords/ice-design-pro/src/pages/Charts/components/chart-bubble-image/ChartBubbleImage.jsx create mode 100644 scaffords/ice-design-pro/src/pages/Charts/components/chart-bubble-image/ChartBubbleImage.scss create mode 100644 scaffords/ice-design-pro/src/pages/Charts/components/chart-bubble-image/index.js create mode 100644 scaffords/ice-design-pro/src/pages/Charts/components/chart-radar/ChartRadar.jsx create mode 100644 scaffords/ice-design-pro/src/pages/Charts/components/chart-radar/ChartRadar.scss create mode 100644 scaffords/ice-design-pro/src/pages/Charts/components/chart-radar/index.js create mode 100644 scaffords/ice-design-pro/src/pages/Charts/components/chart-type-line/ChartTypeLine.jsx create mode 100644 scaffords/ice-design-pro/src/pages/Charts/components/chart-type-line/ChartTypeLine.scss create mode 100644 scaffords/ice-design-pro/src/pages/Charts/components/chart-type-line/index.js create mode 100644 scaffords/ice-design-pro/src/pages/Charts/components/pie-doughnut-chart/PieDoughnutChart.jsx create mode 100644 scaffords/ice-design-pro/src/pages/Charts/components/pie-doughnut-chart/PieDoughnutChart.scss create mode 100644 scaffords/ice-design-pro/src/pages/Charts/components/pie-doughnut-chart/index.js create mode 100644 scaffords/ice-design-pro/src/pages/Charts/index.js create mode 100644 scaffords/ice-design-pro/src/pages/Dashboard/Dashboard.jsx create mode 100644 scaffords/ice-design-pro/src/pages/Dashboard/Dashboard.scss create mode 100644 scaffords/ice-design-pro/src/pages/Dashboard/components/basic-tab/BasicTab.jsx create mode 100644 scaffords/ice-design-pro/src/pages/Dashboard/components/basic-tab/BasicTab.scss create mode 100644 scaffords/ice-design-pro/src/pages/Dashboard/components/basic-tab/index.js create mode 100644 scaffords/ice-design-pro/src/pages/Dashboard/components/chart-bar/ChartBar.jsx create mode 100644 scaffords/ice-design-pro/src/pages/Dashboard/components/chart-bar/ChartBar.scss create mode 100644 scaffords/ice-design-pro/src/pages/Dashboard/components/chart-bar/index.js create mode 100644 scaffords/ice-design-pro/src/pages/Dashboard/components/data-display/DataDisplay.jsx create mode 100644 scaffords/ice-design-pro/src/pages/Dashboard/components/data-display/DataDisplay.scss create mode 100644 scaffords/ice-design-pro/src/pages/Dashboard/components/data-display/index.js create mode 100644 scaffords/ice-design-pro/src/pages/Dashboard/components/pie-doughnut-chart/PieDoughnutChart.jsx create mode 100644 scaffords/ice-design-pro/src/pages/Dashboard/components/pie-doughnut-chart/PieDoughnutChart.scss create mode 100644 scaffords/ice-design-pro/src/pages/Dashboard/components/pie-doughnut-chart/index.js create mode 100644 scaffords/ice-design-pro/src/pages/Dashboard/components/progress-table/ProgressTable.jsx create mode 100644 scaffords/ice-design-pro/src/pages/Dashboard/components/progress-table/ProgressTable.scss create mode 100644 scaffords/ice-design-pro/src/pages/Dashboard/components/progress-table/index.js create mode 100644 scaffords/ice-design-pro/src/pages/Dashboard/index.js create mode 100644 scaffords/ice-design-pro/src/pages/Fail/Fail.jsx create mode 100644 scaffords/ice-design-pro/src/pages/Fail/Fail.scss create mode 100644 scaffords/ice-design-pro/src/pages/Fail/components/failure-detail/FailureDetail.jsx create mode 100644 scaffords/ice-design-pro/src/pages/Fail/components/failure-detail/FailureDetail.scss create mode 100644 scaffords/ice-design-pro/src/pages/Fail/components/failure-detail/index.js create mode 100644 scaffords/ice-design-pro/src/pages/Fail/index.js create mode 100644 scaffords/ice-design-pro/src/pages/Home/Home.jsx create mode 100644 scaffords/ice-design-pro/src/pages/Home/Home.scss create mode 100644 scaffords/ice-design-pro/src/pages/Home/index.js create mode 100644 scaffords/ice-design-pro/src/pages/Landing/Landing.jsx create mode 100644 scaffords/ice-design-pro/src/pages/Landing/Landing.scss create mode 100644 scaffords/ice-design-pro/src/pages/Landing/components/landing-intro-banner/LandingIntroBanner.jsx create mode 100644 scaffords/ice-design-pro/src/pages/Landing/components/landing-intro-banner/LandingIntroBanner.scss create mode 100644 scaffords/ice-design-pro/src/pages/Landing/components/landing-intro-banner/index.js create mode 100644 scaffords/ice-design-pro/src/pages/Landing/index.js create mode 100644 scaffords/ice-design-pro/src/pages/List/List.jsx create mode 100644 scaffords/ice-design-pro/src/pages/List/List.scss create mode 100644 scaffords/ice-design-pro/src/pages/List/components/text-search-list/ArticleList/ArticleList.jsx create mode 100644 scaffords/ice-design-pro/src/pages/List/components/text-search-list/ArticleList/ArticleList.scss create mode 100644 scaffords/ice-design-pro/src/pages/List/components/text-search-list/ArticleList/index.js create mode 100644 scaffords/ice-design-pro/src/pages/List/components/text-search-list/Filter/Filter.jsx create mode 100644 scaffords/ice-design-pro/src/pages/List/components/text-search-list/Filter/index.js create mode 100644 scaffords/ice-design-pro/src/pages/List/components/text-search-list/TextSearchList.jsx create mode 100644 scaffords/ice-design-pro/src/pages/List/components/text-search-list/TextSearchList.scss create mode 100644 scaffords/ice-design-pro/src/pages/List/components/text-search-list/index.js create mode 100644 scaffords/ice-design-pro/src/pages/List/index.js create mode 100644 scaffords/ice-design-pro/src/pages/Portlets/Portlets.jsx create mode 100644 scaffords/ice-design-pro/src/pages/Portlets/Portlets.scss create mode 100644 scaffords/ice-design-pro/src/pages/Portlets/components/basic-detail-info/BasicDetailInfo.jsx create mode 100644 scaffords/ice-design-pro/src/pages/Portlets/components/basic-detail-info/BasicDetailInfo.scss create mode 100644 scaffords/ice-design-pro/src/pages/Portlets/components/basic-detail-info/index.js create mode 100644 scaffords/ice-design-pro/src/pages/Portlets/components/collapse-card/CollapseCard.jsx create mode 100644 scaffords/ice-design-pro/src/pages/Portlets/components/collapse-card/CollapseCard.scss create mode 100644 scaffords/ice-design-pro/src/pages/Portlets/components/collapse-card/index.js create mode 100644 scaffords/ice-design-pro/src/pages/Portlets/components/detail-table/DetailTable.jsx create mode 100644 scaffords/ice-design-pro/src/pages/Portlets/components/detail-table/DetailTable.scss create mode 100644 scaffords/ice-design-pro/src/pages/Portlets/components/detail-table/index.js create mode 100644 scaffords/ice-design-pro/src/pages/Portlets/index.js create mode 100644 scaffords/ice-design-pro/src/pages/Result/Result.jsx create mode 100644 scaffords/ice-design-pro/src/pages/Result/Result.scss create mode 100644 scaffords/ice-design-pro/src/pages/Result/components/success-detail/SuccessDetail.jsx create mode 100644 scaffords/ice-design-pro/src/pages/Result/components/success-detail/SuccessDetail.scss create mode 100644 scaffords/ice-design-pro/src/pages/Result/components/success-detail/index.js create mode 100644 scaffords/ice-design-pro/src/pages/Result/index.js create mode 100644 scaffords/ice-design-pro/src/pages/Table/Table.jsx create mode 100644 scaffords/ice-design-pro/src/pages/Table/Table.scss create mode 100644 scaffords/ice-design-pro/src/pages/Table/components/complex-tab-table/ComplexTabTable.jsx create mode 100644 scaffords/ice-design-pro/src/pages/Table/components/complex-tab-table/ComplexTabTable.scss create mode 100644 scaffords/ice-design-pro/src/pages/Table/components/complex-tab-table/SubCategoryItem.jsx create mode 100644 scaffords/ice-design-pro/src/pages/Table/components/complex-tab-table/index.js create mode 100644 scaffords/ice-design-pro/src/pages/Table/index.js create mode 100644 scaffords/ice-design-pro/src/routes.jsx create mode 100644 scaffords/ice-design-pro/src/utils/getEnv.js diff --git a/scaffords/ice-design-lite/generator.json b/scaffords/ice-design-lite/generator.json index 3672523f8e..8d34a2d7c8 100644 --- a/scaffords/ice-design-lite/generator.json +++ b/scaffords/ice-design-lite/generator.json @@ -12,8 +12,8 @@ }, { "source": "@icedesign/fixed-header-footer-responsive-layout", - "alias": "FixedHeaderFooterResponsiveLayout", - "title": "固定顶栏-底栏响应式布局" + "alias": "HeaderAsideFooterResponsiveLayout", + "title": "顶栏-侧栏-底栏-布局" }, { "source": "@icedesign/fixed-header-footer-responsive-layout", diff --git a/scaffords/ice-design-pro/.editorconfig b/scaffords/ice-design-pro/.editorconfig new file mode 100644 index 0000000000..5760be5836 --- /dev/null +++ b/scaffords/ice-design-pro/.editorconfig @@ -0,0 +1,12 @@ +# http://editorconfig.org +root = true + +[*] +indent_style = space +indent_size = 2 +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false diff --git a/scaffords/ice-design-pro/.eslintignore b/scaffords/ice-design-pro/.eslintignore new file mode 100644 index 0000000000..3b437e6141 --- /dev/null +++ b/scaffords/ice-design-pro/.eslintignore @@ -0,0 +1,11 @@ +# 忽略目录 +build/ +tests/ +demo/ + +# node 覆盖率文件 +coverage/ + +# 忽略文件 +**/*-min.js +**/*.min.js diff --git a/scaffords/ice-design-pro/.eslintrc b/scaffords/ice-design-pro/.eslintrc new file mode 100644 index 0000000000..4dafa92280 --- /dev/null +++ b/scaffords/ice-design-pro/.eslintrc @@ -0,0 +1,60 @@ +{ + "root": true, + "parser": "babel-eslint", + "extends": "eslint-config-airbnb", + "parserOptions": { + "ecmaVersion": 6, + "ecmaFeatures": { + "jsx": true, + "experimentalObjectRestSpread": true + } + }, + "env": { + "browser": true + }, + "plugins": [ + "react", + "babel" + ], + "rules": { + "jsx-a11y/label-has-for": 0, + "jsx-a11y/no-static-element-interactions": 0, + "jsx-a11y/anchor-has-content": 0, + "jsx-a11y/click-events-have-key-events": 0, + "jsx-a11y/anchor-is-valid": 0, + "react/no-array-index-key": 0, + "func-names": 0, + "arrow-body-style": 0, + "no-use-before-define": 1, + "react/sort-comp": 0, + "react/prop-types": 0, + "react/jsx-first-prop-new-line": 0, + "react/jsx-filename-extension": [ + 1, + { + "extensions": [ + ".js", + ".jsx" + ] + } + ], + "import/extensions": 0, + "import/no-unresolved": 0, + "import/no-extraneous-dependencies": 0, + "prefer-destructuring": 0, + "no-param-reassign": 0, + "no-return-assign": 0, + "max-len": 0, + "consistent-return": 0, + "no-redeclare": 0, + "react/require-extension": 0, + "react/no-danger": 0, + "comma-dangle": [ + "error", + "always-multiline" + ], + "function-paren-newline": 0, + "object-curly-newline": 0, + "no-restricted-globals": 0 + } +} diff --git a/scaffords/ice-design-pro/README.md b/scaffords/ice-design-pro/README.md new file mode 100644 index 0000000000..417c70c76e --- /dev/null +++ b/scaffords/ice-design-pro/README.md @@ -0,0 +1,19 @@ +# ice-scafford-pro + +> 使用文档 + +## ice-design-pro + +通过组合 block 组成的一个展示案例 + +## 基础设施: + +* react-router @3.x 默认采用 hashHistory 的单页应用 +* 入口文件: `src/index.js` +* 路由配置: `src/routes.jsx` +* 页面文件: `src/pages` +* 组件: `src/components` + +## 功能 + +按照 Dashboard 综合页和 Block 分类进行展示 diff --git a/scaffords/ice-design-pro/generator.json b/scaffords/ice-design-pro/generator.json new file mode 100644 index 0000000000..7ffa7b7627 --- /dev/null +++ b/scaffords/ice-design-pro/generator.json @@ -0,0 +1,73 @@ +{ + "layouts": [ + { + "source": "@icedesign/header-footer-layout", + "alias": "HeaderFooterLayout", + "title": "顶栏-底栏布局" + }, + { + "source": "@icedesign/header-aside-footer-layout", + "alias": "HeaderAsideFooterLayout", + "title": "顶栏-侧栏-底栏-布局" + }, + { + "source": "@icedesign/fixed-header-footer-responsive-layout", + "alias": "FixedHeaderFooterResponsiveLayout", + "title": "固定顶栏-底栏响应式布局" + }, + { + "source": "@icedesign/fixed-header-footer-responsive-layout", + "alias": "FixedHeaderFooterResponsiveLayout", + "title": "固定顶栏-底栏响应式布局" + } + ], + "components": [], + "routes": [ + { + "page": "Home", + "path": "/", + "layout": "HeaderAsideFooterLayout" + }, + { + "page": "Dashboard", + "path": "dashboard", + "layout": "HeaderAsideFooterLayout" + }, + { + "page": "Charts", + "path": "charts", + "layout": "HeaderAsideFooterLayout" + }, + { + "page": "Table", + "path": "complex", + "layout": "HeaderAsideFooterLayout", + "builtIn": true + }, + { + "page": "List", + "path": "list", + "layout": "HeaderAsideFooterLayout" + }, + { + "page": "Portlets", + "path": "portlets", + "layout": "HeaderAsideFooterLayout" + }, + { + "page": "Result", + "path": "result/success", + "layout": "HeaderAsideFooterLayout" + }, + { + "page": "Fail", + "path": "result/fail", + "layout": "HeaderAsideFooterLayout" + }, + { + "page": "Landing", + "path": "landing", + "layout": "FixedHeaderFooterResponsiveLayout" + } + ] +} diff --git a/scaffords/ice-design-pro/mock/complex-tab-table-list.json b/scaffords/ice-design-pro/mock/complex-tab-table-list.json new file mode 100644 index 0000000000..d6fa80d115 --- /dev/null +++ b/scaffords/ice-design-pro/mock/complex-tab-table-list.json @@ -0,0 +1,114 @@ +{ + "status": "SUCCESS", + "data": { + "total": 100, + "pageSize": 10, + "currentPage": 1, + "list": [ + { + "id": 1, + "cover": "//img.alicdn.com/bao/uploaded/i3/120976213/TB2O4nSnblmpuFjSZFlXXbdQXXa_!!120976213.jpg_240x240.jpg", + "title": "于momo2017秋冬新款背带裙复古格子连衣裙清新背心裙a字裙短裙子", + "url": "https://item.taobao.com/item.htm?id=558559528377", + "type": "清单", + "publishTime": "17-04-28 20:29:20", + "publishStatus": "已发布", + "pushStatus": "已推送至订阅号", + "operation": { + "edit": true + } + }, + { + "id": 2, + "cover": "//img.alicdn.com/bao/uploaded/i4/TB1GiPSinJ_SKJjSZPiYXH3LpXa_M2.SS2_100x100.jpg", + "title": "SOTHEA 2017秋冬新款 高质感特定纱线欧美宽松马海毛羊毛毛衣", + "url": "https://item.taobao.com/item.htm?id=558559528377", + "type": "清单", + "publishTime": "17-04-28 20:29:20", + "publishStatus": "已发布", + "pushStatus": "已推送至订阅号", + "operation": { + "edit": true + } + }, + { + "id": 3, + "cover": "//img.alicdn.com/bao/uploaded/i3/120976213/TB2O4nSnblmpuFjSZFlXXbdQXXa_!!120976213.jpg_240x240.jpg", + "title": "川岛屋 日式天然玉米皮草编碗垫锅垫隔热垫茶垫加厚餐垫GD-29", + "url": "https://item.taobao.com/item.htm?id=558559528377", + "type": "清单", + "publishTime": "17-04-28 20:29:20", + "publishStatus": "已发布", + "pushStatus": "已推送至订阅号", + "operation": { + "edit": true + } + }, + { + "id": 4, + "cover": "//img.alicdn.com/bao/uploaded/i7/TB1QpMvk3n.PuJjSZFkYXI_lpXa_M2.SS2_100x100.jpg", + "title": "SOTHEA 2017秋冬新款 绑带腰封设计感超顺滑质感落肩铜氨丝连衣裙", + "url": "https://item.taobao.com/item.htm?id=558559528377", + "type": "清单", + "publishTime": "17-04-28 20:29:20", + "publishStatus": "已发布", + "pushStatus": "已推送至订阅号", + "operation": { + "edit": true + } + }, + { + "id": 5, + "cover": "//img.alicdn.com/bao/uploaded/i4/120976213/TB2GiVsdS0mpuFjSZPiXXbssVXa_!!120976213.jpg_240x240.jpg", + "title": "川岛屋 日式糖果色陶瓷柄不锈钢餐具西餐牛扒刀叉勺子咖啡勺S-27", + "url": "https://item.taobao.com/item.htm?id=558559528377", + "type": "清单", + "publishTime": "17-04-28 20:29:20", + "publishStatus": "已发布", + "pushStatus": "已推送至订阅号", + "operation": { + "edit": true + } + }, + { + "id": 6, + "cover": "//img.alicdn.com/bao/uploaded/i3/120976213/TB2bxHGtpXXXXXVXXXXXXXXXXXX_!!120976213.jpg_240x240.jpg", + "title": "日式和风深蓝素色文艺餐巾餐垫围裙锅垫隔热手套厨房桌布GD-11", + "url": "https://item.taobao.com/item.htm?id=558559528377", + "type": "清单", + "publishTime": "17-04-28 20:29:20", + "publishStatus": "已发布", + "pushStatus": "已推送至订阅号", + "operation": { + "edit": true + } + }, + { + "id": 7, + "cover": "https://img.alicdn.com/bao/uploaded/i4/120976213/TB2bEcHnXXXXXbgXXXXXXXXXXXX_!!120976213.jpg_100x100.jpg", + "title": "川岛屋 日式雪点樱花手绘陶瓷餐具米饭碗拉面碗寿司盘子汤碗PZ-36", + "url": "https://item.taobao.com/item.htm?id=558559528377", + "type": "清单", + "publishTime": "17-04-28 20:29:20", + "publishStatus": "已发布", + "pushStatus": "已推送至订阅号", + "operation": { + "edit": true + } + }, + { + "id": 8, + "cover": "//img.alicdn.com/bao/uploaded/i2/TB11DjAIFXXXXaTXFXXXXXXXXXX_!!0-item_pic.jpg_100x100.jpg", + "title": "川岛屋 釉下彩复古日式陶瓷盘子菜盘圆盘调味碟 米饭碗日式餐具", + "url": "https://item.taobao.com/item.htm?id=558559528377", + "type": "清单", + "publishTime": "17-04-28 20:29:20", + "publishStatus": "已发布", + "pushStatus": "已推送至订阅号", + "operation": { + "edit": true + } + } + ] + } +} \ No newline at end of file diff --git a/scaffords/ice-design-pro/mock/detail-table.json b/scaffords/ice-design-pro/mock/detail-table.json new file mode 100644 index 0000000000..eee2984fbe --- /dev/null +++ b/scaffords/ice-design-pro/mock/detail-table.json @@ -0,0 +1,4 @@ +{ + "status": "SUCCESS", + "data": {} +} diff --git a/scaffords/ice-design-pro/mock/feature-display.json b/scaffords/ice-design-pro/mock/feature-display.json new file mode 100644 index 0000000000..eee2984fbe --- /dev/null +++ b/scaffords/ice-design-pro/mock/feature-display.json @@ -0,0 +1,4 @@ +{ + "status": "SUCCESS", + "data": {} +} diff --git a/scaffords/ice-design-pro/mock/filter-table-list.json b/scaffords/ice-design-pro/mock/filter-table-list.json new file mode 100644 index 0000000000..5347bea249 --- /dev/null +++ b/scaffords/ice-design-pro/mock/filter-table-list.json @@ -0,0 +1,122 @@ +{ + "status": "SUCCESS", + "data": { + "total": 100, + "pageSize": 10, + "currentPage": 1, + "list": [ + { + "id": 1, + "cover": + "//img.alicdn.com/bao/uploaded/i3/120976213/TB2O4nSnblmpuFjSZFlXXbdQXXa_!!120976213.jpg_240x240.jpg", + "title": "于momo2017秋冬新款背带裙复古格子连衣裙清新背心裙a字裙短裙子", + "url": "https://item.taobao.com/item.htm?id=558559528377", + "type": "清单", + "publishTime": "17-04-28 20:29:20", + "publishStatus": "已发布", + "pushStatus": "已推送至订阅号", + "operation": { + "edit": true + } + }, + { + "id": 2, + "cover": + "//img.alicdn.com/bao/uploaded/i4/TB1GiPSinJ_SKJjSZPiYXH3LpXa_M2.SS2_100x100.jpg", + "title": "SOTHEA 2017秋冬新款 高质感特定纱线欧美宽松马海毛羊毛毛衣", + "url": "https://item.taobao.com/item.htm?id=558559528377", + "type": "清单", + "publishTime": "17-04-28 20:29:20", + "publishStatus": "已发布", + "pushStatus": "已推送至订阅号", + "operation": { + "edit": true + } + }, + { + "id": 3, + "cover": + "//img.alicdn.com/bao/uploaded/i3/120976213/TB2O4nSnblmpuFjSZFlXXbdQXXa_!!120976213.jpg_240x240.jpg", + "title": "川岛屋 日式天然玉米皮草编碗垫锅垫隔热垫茶垫加厚餐垫GD-29", + "url": "https://item.taobao.com/item.htm?id=558559528377", + "type": "清单", + "publishTime": "17-04-28 20:29:20", + "publishStatus": "已发布", + "pushStatus": "已推送至订阅号", + "operation": { + "edit": true + } + }, + { + "id": 4, + "cover": + "//img.alicdn.com/bao/uploaded/i7/TB1QpMvk3n.PuJjSZFkYXI_lpXa_M2.SS2_100x100.jpg", + "title": "SOTHEA 2017秋冬新款 绑带腰封设计感超顺滑质感落肩铜氨丝连衣裙", + "url": "https://item.taobao.com/item.htm?id=558559528377", + "type": "清单", + "publishTime": "17-04-28 20:29:20", + "publishStatus": "已发布", + "pushStatus": "已推送至订阅号", + "operation": { + "edit": true + } + }, + { + "id": 5, + "cover": + "//img.alicdn.com/bao/uploaded/i4/120976213/TB2GiVsdS0mpuFjSZPiXXbssVXa_!!120976213.jpg_240x240.jpg", + "title": "川岛屋 日式糖果色陶瓷柄不锈钢餐具西餐牛扒刀叉勺子咖啡勺S-27", + "url": "https://item.taobao.com/item.htm?id=558559528377", + "type": "清单", + "publishTime": "17-04-28 20:29:20", + "publishStatus": "已发布", + "pushStatus": "已推送至订阅号", + "operation": { + "edit": true + } + }, + { + "id": 6, + "cover": + "//img.alicdn.com/bao/uploaded/i3/120976213/TB2bxHGtpXXXXXVXXXXXXXXXXXX_!!120976213.jpg_240x240.jpg", + "title": "日式和风深蓝素色文艺餐巾餐垫围裙锅垫隔热手套厨房桌布GD-11", + "url": "https://item.taobao.com/item.htm?id=558559528377", + "type": "清单", + "publishTime": "17-04-28 20:29:20", + "publishStatus": "已发布", + "pushStatus": "已推送至订阅号", + "operation": { + "edit": true + } + }, + { + "id": 7, + "cover": + "https://img.alicdn.com/bao/uploaded/i4/120976213/TB2bEcHnXXXXXbgXXXXXXXXXXXX_!!120976213.jpg_100x100.jpg", + "title": "川岛屋 日式雪点樱花手绘陶瓷餐具米饭碗拉面碗寿司盘子汤碗PZ-36", + "url": "https://item.taobao.com/item.htm?id=558559528377", + "type": "清单", + "publishTime": "17-04-28 20:29:20", + "publishStatus": "已发布", + "pushStatus": "已推送至订阅号", + "operation": { + "edit": true + } + }, + { + "id": 8, + "cover": + "//img.alicdn.com/bao/uploaded/i2/TB11DjAIFXXXXaTXFXXXXXXXXXX_!!0-item_pic.jpg_100x100.jpg", + "title": "川岛屋 釉下彩复古日式陶瓷盘子菜盘圆盘调味碟 米饭碗日式餐具", + "url": "https://item.taobao.com/item.htm?id=558559528377", + "type": "清单", + "publishTime": "17-04-28 20:29:20", + "publishStatus": "已发布", + "pushStatus": "已推送至订阅号", + "operation": { + "edit": true + } + } + ] + } +} diff --git a/scaffords/ice-design-pro/mock/landing-intro-banner.json b/scaffords/ice-design-pro/mock/landing-intro-banner.json new file mode 100644 index 0000000000..eee2984fbe --- /dev/null +++ b/scaffords/ice-design-pro/mock/landing-intro-banner.json @@ -0,0 +1,4 @@ +{ + "status": "SUCCESS", + "data": {} +} diff --git a/scaffords/ice-design-pro/mock/price-info.json b/scaffords/ice-design-pro/mock/price-info.json new file mode 100644 index 0000000000..eee2984fbe --- /dev/null +++ b/scaffords/ice-design-pro/mock/price-info.json @@ -0,0 +1,4 @@ +{ + "status": "SUCCESS", + "data": {} +} diff --git a/scaffords/ice-design-pro/mock/simple-testimonial.json b/scaffords/ice-design-pro/mock/simple-testimonial.json new file mode 100644 index 0000000000..eee2984fbe --- /dev/null +++ b/scaffords/ice-design-pro/mock/simple-testimonial.json @@ -0,0 +1,4 @@ +{ + "status": "SUCCESS", + "data": {} +} diff --git a/scaffords/ice-design-pro/mock/tab-chart.json b/scaffords/ice-design-pro/mock/tab-chart.json new file mode 100644 index 0000000000..eee2984fbe --- /dev/null +++ b/scaffords/ice-design-pro/mock/tab-chart.json @@ -0,0 +1,4 @@ +{ + "status": "SUCCESS", + "data": {} +} diff --git a/scaffords/ice-design-pro/mock/testimonial-card.json b/scaffords/ice-design-pro/mock/testimonial-card.json new file mode 100644 index 0000000000..eee2984fbe --- /dev/null +++ b/scaffords/ice-design-pro/mock/testimonial-card.json @@ -0,0 +1,4 @@ +{ + "status": "SUCCESS", + "data": {} +} diff --git a/scaffords/ice-design-pro/mock/testimonial.json b/scaffords/ice-design-pro/mock/testimonial.json new file mode 100644 index 0000000000..eee2984fbe --- /dev/null +++ b/scaffords/ice-design-pro/mock/testimonial.json @@ -0,0 +1,4 @@ +{ + "status": "SUCCESS", + "data": {} +} diff --git a/scaffords/ice-design-pro/package.json b/scaffords/ice-design-pro/package.json new file mode 100644 index 0000000000..bf98431511 --- /dev/null +++ b/scaffords/ice-design-pro/package.json @@ -0,0 +1,45 @@ +{ + "name": "@icedesign/scafford-pro", + "version": "0.1.0-0", + "dependencies": { + "@antv/data-set": "^0.8.5", + "@icedesign/base": "^0.1.0", + "@icedesign/card": "^0.1.1", + "@icedesign/data-binder": "^0.1.1", + "@icedesign/form-binder": "^0.1.2", + "@icedesign/img": "^0.1.1", + "@icedesign/label": "^0.1.1", + "@icedesign/layout": "^0.1.1", + "@icedesign/menu": "^0.1.1", + "@icedesign/skin": "^0.1.0", + "bizcharts": "latest", + "classnames": "^2.2.5", + "prop-types": "^15.5.8", + "react-document-title": "^2.0.3", + "react-router": "^3.2.0" + }, + "devDependencies": { + "babel-eslint": "^8.0.3", + "eslint": "^4.13.1", + "eslint-config-airbnb": "^16.1.0", + "eslint-plugin-babel": "^4.1.1", + "eslint-plugin-import": "^2.8.0", + "eslint-plugin-jsx-a11y": "^6.0.3", + "eslint-plugin-react": "^7.5.1" + }, + "scripts": { + "lint": "eslint . --ext '.js,.jsx' --fix" + }, + "publishConfig": { + "registry": "http://registry.npmjs.com/", + "access": "public" + }, + "ice": { + "type": "project", + "projectType": "spa", + "entry": "src/index.js", + "themePackage": "@icedesign/skin", + "uuid": "", + "projectName": "ice_design_pro" + } +} diff --git a/scaffords/ice-design-pro/public/images/logo.png b/scaffords/ice-design-pro/public/images/logo.png new file mode 100644 index 0000000000000000000000000000000000000000..64548c35f094bb023a853b060431210f45b0dca5 GIT binary patch literal 2189 zcmX|Cdpy(YAK!Pr)8-_*Bw=N$>L#92U7YWN+QUi3SyWFfbHA2gZg47 zN2`7+047lQxm+1K2WTLG4gKhOpl@z&t{CpKu62VQgQy>%!_e6&WU3e9T5mrzAcOC7}5EqYuc^FdHD;uT4}wxa4DzR z3yE-11qyDfA(utsi6{*T{)NRHe+$){< zFkfg)O#EDY`+lwd{+Rf@)TAt{>a%B0&DXj%Yce`?gQD|x86}p#`XvkB(rt!;vDR=a!nEVdvLBw$R`mm~r@4QX7g7??A#}l@6~`xOTAi z2q+AuAcJHp38=XYX+p^e9AqaV3bPFY>4r!mLMV9qYv0Hwqv}I8_$wRHX~wNEA@y*B_6lH z%{An|x=D_(l(bA(q2R$Mg(>lj7xv#w;g3sBPd0W|;fd=n4j=JEXVd-Ab{<-?ku~wMVlWn-FW?$24x)T;BP^xvSU5C9yqS6p43vN-oTesh{ zKIy8O$LYZu9pRWQ1KEee68Q42bxre0W4&`i$$zEa`pN>3NSSv#l?2Jr=P@g08wzew z&hNn3Ff5T?NXhuEKavIZ)%TsTO84E!W+37{aZD2udg5OjLcL&slhp6PA?3uGrwM}L z8u;<)*oNCwsV#{l#idfDqo;`9!3)_ienonT{13;ToZ=FCs3hU>_$WXQPLp>w)GYLa z+shuO^`QMy*D-T0%C}z2#{}b3rTty5Yga*Apz@?7=ZBmFf(!w?StC7Ja0L+}j|p27 z0v^;(^8U`hRF3k-$kRQ$XOjKT5LmA|-sC4BEF%qB(u^x{^|{HU%^Abq2O7>jjZ|M* zc#th13zt{>UbRM=lx-_|KLSZh-o^{Q)}gUSzeq6>ntqr2@wPlvc+98tdW&nkp0eL* z8X~ig8w1tbj;(QV9=De2wfvc1^bZ<-RFwagX%yB^L7d%Cb5nxr{$BhmcOT;Mku?RE zKC391_JKd9Ho()_@snAbl(hcj0+N*25b$y7vwavzx|u=3(vA8*jI zk#%)9+j^l|xcz*s&b@}W#hxbRtnbqL7sQ3k8X$E^8(|&6ofAH&Sa&PD9>%lsoQ5ZW@6&pCw3Tj zCMIgRhg{Vod;RjQ`Z_kqwTxyg2xX_n?W!OQ9qJwP#87#i=iIzd^{r@Xc*>GSwr^d~ z6BBhYd+(FGokn8o&u*RSqbbk)FIDi1`p4^R + + + + + + + ICE Design Lite + + + +

    + + + + + diff --git a/scaffords/ice-design-pro/src/config/components/Footer.jsx b/scaffords/ice-design-pro/src/config/components/Footer.jsx new file mode 100644 index 0000000000..07481165b2 --- /dev/null +++ b/scaffords/ice-design-pro/src/config/components/Footer.jsx @@ -0,0 +1,33 @@ +import React from 'react'; +import Layout from '@icedesign/layout'; +import Logo from './Logo'; + +export default () => { + return ( + +
    +
    + +
    +
    + 阿里巴巴集团 +
    + © 2018 版权所有 +
    +
    +
    + ); +}; diff --git a/scaffords/ice-design-pro/src/config/components/Header.jsx b/scaffords/ice-design-pro/src/config/components/Header.jsx new file mode 100644 index 0000000000..b1713fd75a --- /dev/null +++ b/scaffords/ice-design-pro/src/config/components/Header.jsx @@ -0,0 +1,69 @@ +import React from 'react'; +import IceImg from '@icedesign/img'; +import Layout from '@icedesign/layout'; +import Menu from '@icedesign/menu'; +import { Icon } from '@icedesign/base'; +import { Link } from 'react-router'; +import { headerNavs } from './../config/navs'; +import Logo from './Logo'; + +export default ({ width }) => { + return ( + +
    + +
    + {/* Header 菜单项 begin */} + {headerNavs && headerNavs.length > 0 ? ( + + {headerNavs.map((nav, idx) => { + const linkProps = {}; + if (nav.newWindow) { + linkProps.href = nav.to; + linkProps.target = '_blank'; + } else if (nav.external) { + linkProps.href = nav.to; + } else { + linkProps.to = nav.to; + } + return ( + + + {nav.icon ? : null} + {nav.text} + + + ); + })} + + ) : null} + {/* Header 菜单项 end */} + + {/* Header 右侧内容块 */} + + + 淘小宝 + +
    +
    +
    + ); +}; diff --git a/scaffords/ice-design-pro/src/config/components/Logo.jsx b/scaffords/ice-design-pro/src/config/components/Logo.jsx new file mode 100644 index 0000000000..54ce333d1e --- /dev/null +++ b/scaffords/ice-design-pro/src/config/components/Logo.jsx @@ -0,0 +1,45 @@ +import React, { PureComponent } from 'react'; +import { Link } from 'react-router'; + +export default class Logo extends PureComponent { + render() { + const { style } = this.props; + return ( +
    + + + ICE + +
    + ICE +
    + Design +
    + +
    + ); + } +} diff --git a/scaffords/ice-design-pro/src/config/navs.json b/scaffords/ice-design-pro/src/config/navs.json new file mode 100644 index 0000000000..6610c390f8 --- /dev/null +++ b/scaffords/ice-design-pro/src/config/navs.json @@ -0,0 +1,67 @@ +{ + "headerNavs": [ + { + "text": "首页", + "to": "/" + }, + { + "text": "反馈", + "to": "https://github.com/alibaba/ice", + "external": true, + "newWindow": true + }, + { + "text": "帮助", + "to": "https://alibaba.github.io/ice", + "external": true, + "newWindow": true + } + ], + "asideNavs": [ + { + "text": "Dashboard", + "to": "/dashboard", + "icon": "nav-list" + }, + { + "text": "图表页", + "to": "/charts", + "icon": "nav-list" + }, + { + "text": "表格页", + "to": "/complex", + "icon": "nav-list" + }, + { + "text": "列表页", + "to": "/list", + "icon": "nav-list" + }, + { + "text": "内容页", + "to": "/portlets", + "icon": "nav-list" + }, + { + "text": "结果页", + "to": "/result", + "icon": "nav-list", + "children": [ + { + "text": "成功", + "to": "/result/success" + }, + { + "text": "失败", + "to": "/result/fail" + } + ] + }, + { + "text": "landing", + "to": "/landing", + "icon": "nav-list" + } + ] +} diff --git a/scaffords/ice-design-pro/src/index.js b/scaffords/ice-design-pro/src/index.js new file mode 100644 index 0000000000..5cfd1334fe --- /dev/null +++ b/scaffords/ice-design-pro/src/index.js @@ -0,0 +1,13 @@ +import ReactDOM from 'react-dom'; +// 载入默认全局样式 normalize 、.clearfix 和一些 mixin 方法等 +import '@icedesign/base/lib/_components/@alife/next-core/lib/index.scss'; +import routes from './routes'; + +// 以下代码 ICE 自动生成, 请勿修改 +const ICE_CONTAINER = document.getElementById('ice_container'); + +if (!ICE_CONTAINER) { + throw new Error('当前页面不存在
    节点.'); +} + +ReactDOM.render(routes, ICE_CONTAINER); diff --git a/scaffords/ice-design-pro/src/layouts/FixedHeaderFooterResponsiveLayout/Layout.jsx b/scaffords/ice-design-pro/src/layouts/FixedHeaderFooterResponsiveLayout/Layout.jsx new file mode 100644 index 0000000000..9bd0b65b9b --- /dev/null +++ b/scaffords/ice-design-pro/src/layouts/FixedHeaderFooterResponsiveLayout/Layout.jsx @@ -0,0 +1,45 @@ +import React, { PureComponent } from 'react'; +import Header from './../../components/Header'; +import Footer from './../../components/Footer'; +import './Layout.scss'; + +// 自定义背景图 +const backgroundImage = 'https://img.alicdn.com/tfs/TB1j9kWgvDH8KJjy1XcXXcpdXXa-1680-870.jpg'; + +export default class LandingLayout extends PureComponent { + static propTypes = {}; + + static defaultProps = {}; + + render() { + return ( +
    +
    +
    +
    +
    +
    + {this.props.children} +
    +
    +
    + ); + } +} + +const styles = { + main: { + position: 'relative', + minHeight: '100vh', + }, + introPicture: { + position: 'absolute', + top: 0, + left: 0, + minHeight: '100vh', + width: '100%', + backgroundImage: `url('http://github.com/$%7BbackgroundImage%7D')`, + backgroundRepeat: 'no-repeat', + backgroundSize: 'cover', + }, +}; diff --git a/scaffords/ice-design-pro/src/layouts/FixedHeaderFooterResponsiveLayout/Layout.scss b/scaffords/ice-design-pro/src/layouts/FixedHeaderFooterResponsiveLayout/Layout.scss new file mode 100644 index 0000000000..7e2dc7cca0 --- /dev/null +++ b/scaffords/ice-design-pro/src/layouts/FixedHeaderFooterResponsiveLayout/Layout.scss @@ -0,0 +1,35 @@ +.fixed-header-footer-responsive-layout { + .fixed-header-footer-responsive-layout-header { + position: absolute; + z-index: 11; + left: 0; + right: 0; + } + .ice-admin-layout-header { + width: 1200px; + margin: 20px auto; + display: flex; + justify-content: space-between; + align-items: center; + .ice-menu { + background: transparent; + } + } + + .ice-admin-layout-footer-body { + width: 1200px; + margin: 45px auto; + display: flex; + justify-content: space-between; + align-items: center; + } + + .ice-admin-layout-header-username { + color: #fff; + } + + .ice-layout-theme-light.ice-layout-header .ice-menu-item, + .ice-layout-theme-light.ice-layout-header .ice-menu-item > a { + color: #fff; + } +} diff --git a/scaffords/ice-design-pro/src/layouts/FixedHeaderFooterResponsiveLayout/index.js b/scaffords/ice-design-pro/src/layouts/FixedHeaderFooterResponsiveLayout/index.js new file mode 100644 index 0000000000..0720a9d6f4 --- /dev/null +++ b/scaffords/ice-design-pro/src/layouts/FixedHeaderFooterResponsiveLayout/index.js @@ -0,0 +1 @@ +export default from './Layout'; diff --git a/scaffords/ice-design-pro/src/layouts/HeaderAsideFooterLayout/Layout.jsx b/scaffords/ice-design-pro/src/layouts/HeaderAsideFooterLayout/Layout.jsx new file mode 100644 index 0000000000..8c44ca2305 --- /dev/null +++ b/scaffords/ice-design-pro/src/layouts/HeaderAsideFooterLayout/Layout.jsx @@ -0,0 +1,132 @@ +import React, { Component } from 'react'; +import cx from 'classnames'; +import Layout from '@icedesign/layout'; +import { Icon } from '@icedesign/base'; +import Menu, { SubMenu, Item as MenuItem } from '@icedesign/menu'; +import { Link } from 'react-router'; +import Header from './../../components/Header'; +import Footer from './../../components/Footer'; +import { asideNavs } from './../../config/navs'; +import './Layout.scss'; + +export default class HeaderAsideFooterLayout extends Component { + static propTypes = {}; + + static defaultProps = {}; + + // 当前点击的菜单项 + handleClick = (selectedKeys) => { + // eslint-disable-next-line + console.log('selectedKeys:', selectedKeys); + }; + + // 当前打开的菜单项 + getOpenKeys = () => { + const { routes = [{}] } = this.props; + const matched = routes[0].path; + let openKeys = ''; + + if (asideNavs && asideNavs.length > 0) { + asideNavs.forEach((item, index) => { + if (item.to === matched) { + openKeys = index; + } + }); + } + + return openKeys; + }; + + render() { + const { location = {} } = this.props; + const { pathname } = location; + + return ( + +
    + + + + {asideNavs && + asideNavs.length > 0 && + asideNavs.map((nav, index) => { + if (nav.children && nav.children.length > 0) { + return ( + + {nav.icon ? ( + + ) : null} + {nav.text} + + } + > + {nav.children.map((item) => { + const linkProps = {}; + if (item.newWindow) { + linkProps.href = item.to; + linkProps.target = '_blank'; + } else if (item.external) { + linkProps.href = item.to; + } else { + linkProps.to = item.to; + } + + return ( + + {item.text} + + ); + })} + + ); + } + + const linkProps = {}; + if (nav.newWindow) { + linkProps.href = nav.to; + linkProps.target = '_blank'; + } else if (nav.external) { + linkProps.href = nav.to; + } else { + linkProps.to = nav.to; + } + + return ( + + + + {nav.icon ? : null} + {nav.text} + + + + ); + })} + + + + {this.props.children} + + +