Skip to content

yaohui-wyh/SchulteGrid_ReactDemo

Repository files navigation

Description

Live Demo: http://alex-yh99.github.io/SchulteGrid_ReactDemo/

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.

Development

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)
    • headerTitle + Score,见原型图)
    • footer
    • container(整体容器组件)
    • control-panelStart 按钮控件 + 提示文本:如果方格内是文本而非数字,此处显示正确顺序的文本)
    • board(中央方格容器)
    • cell(单元格,响应点击逻辑)
  • 数据模型(models)
    • grid:代表方格内数据集,提供随机排序、查找当前格子后继的方法等
  • 单元测试(tests)
    • 主要对于Grid类中的数据集构造和洗牌算法写用例

About

React JavaScript Project for SchulteGrid

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published