Live Demo: http://alex-yh99.github.io/SchulteGrid_ReactDemo/
About SchulteGrid:
A Schulte table is a grid with randomly distributed numbers or letters used for development of speed reading, peripheral vision, attention and visual perception (wikipedia)
About EyeMon (http://eye.qq.com/)
EyeMon is a startup project inside Tencent MIG.
npm install webpack -g
npm install
# Test
npm run test
# Dev
npm run dev
# Deploy
npm run deploy
App will be launched at: http://localhost:8080/webpack-dev-server/index-dev.html
Webpack-dev-server will watch for file changes and automatically updates the browser page.
Test Report will be generated at mochawesome-reports/mochawesome.html
- 容器组件(components)
header
(Title + Score,见原型图)footer
container
(整体容器组件)control-panel
(Start 按钮控件 + 提示文本:如果方格内是文本而非数字,此处显示正确顺序的文本)board
(中央方格容器)cell
(单元格,响应点击逻辑)
- 数据模型(models)
grid
:代表方格内数据集,提供随机排序、查找当前格子后继的方法等
- 单元测试(tests)
- 主要对于Grid类中的数据集构造和洗牌算法写用例