├── .eslintignore ├── config ├── prod.env.js ├── test.env.js ├── dev.env.js └── index.js ├── docs ├── favicon.ico ├── images │ ├── logo.png │ ├── board │ │ ├── red.png │ │ ├── blue2.jpg │ │ ├── blue3.jpg │ │ ├── grey.jpg │ │ ├── maple.jpg │ │ ├── olive.jpg │ │ ├── wood2.jpg │ │ ├── wood3.jpg │ │ ├── canvas2.jpg │ │ ├── gray-hi.png │ │ ├── marble.jpg │ │ ├── 3d │ │ │ ├── Light-Wood.png │ │ │ └── woodi.1024.png │ │ ├── brown.svg │ │ ├── green.svg │ │ ├── purple.svg │ │ └── blue.svg │ └── pieces │ │ ├── staunton │ │ └── basic │ │ │ ├── Black-Bishop.png │ │ │ ├── Black-King.png │ │ │ ├── Black-Knight.png │ │ │ ├── Black-Pawn.png │ │ │ ├── Black-Queen.png │ │ │ ├── Black-Rook.png │ │ │ ├── White-Bishop.png │ │ │ ├── White-King.png │ │ │ ├── White-Knight.png │ │ │ ├── White-Pawn.png │ │ │ ├── White-Queen.png │ │ │ ├── White-Rook.png │ │ │ ├── Black-Bishop-Flipped.png │ │ │ ├── Black-Knight-Flipped.png │ │ │ ├── White-Bishop-Flipped.png │ │ │ └── White-Knight-Flipped.png │ │ ├── alpha │ │ ├── bP.svg │ │ ├── bR.svg │ │ ├── wR.svg │ │ ├── bB.svg │ │ ├── bN.svg │ │ ├── bQ.svg │ │ └── wP.svg │ │ ├── cburnett │ │ ├── bP.svg │ │ ├── wP.svg │ │ ├── wR.svg │ │ ├── bR.svg │ │ ├── wK.svg │ │ ├── wN.svg │ │ ├── wK-full.svg │ │ ├── wB.svg │ │ ├── bB.svg │ │ ├── bK.svg │ │ ├── bK-full.svg │ │ ├── bN.svg │ │ ├── wQ.svg │ │ ├── bQ.svg │ │ └── wbK.svg │ │ ├── chessnut │ │ ├── wP.svg │ │ ├── bP.svg │ │ ├── wN.svg │ │ └── bN.svg │ │ ├── pirouetti │ │ ├── bR.svg │ │ ├── wR.svg │ │ ├── invert │ │ │ ├── bR.svg │ │ │ ├── wR.svg │ │ │ ├── bP.svg │ │ │ ├── wP.svg │ │ │ ├── bB.svg │ │ │ ├── wB.svg │ │ │ ├── bQ.svg │ │ │ ├── wQ.svg │ │ │ ├── bN.svg │ │ │ ├── wN.svg │ │ │ ├── bK.svg │ │ │ └── wK.svg │ │ ├── bP.svg │ │ ├── wP.svg │ │ ├── wB.svg │ │ ├── bQ.svg │ │ ├── wQ.svg │ │ ├── bB.svg │ │ ├── bN.svg │ │ ├── wN.svg │ │ ├── bK.svg │ │ └── wK.svg │ │ ├── spatial │ │ ├── wP.svg │ │ ├── bP.svg │ │ ├── wN.svg │ │ ├── bN.svg │ │ ├── bR.svg │ │ ├── wR.svg │ │ ├── bQ.svg │ │ ├── wQ.svg │ │ ├── bK.svg │ │ └── wK.svg │ │ ├── merida │ │ ├── wR.svg │ │ ├── bP.svg │ │ ├── bR.svg │ │ └── wP.svg │ │ └── fantasy │ │ ├── bP.svg │ │ └── wP.svg ├── sound │ ├── move.mp3 │ ├── capture.mp3 │ └── victory.mp3 ├── img │ └── icons │ │ ├── favicon.ico │ │ ├── favicon-16x16.png │ │ ├── favicon-32x32.png │ │ ├── apple-touch-icon.png │ │ ├── mstile-150x150.png │ │ ├── android-chrome-192x192.png │ │ ├── android-chrome-512x512.png │ │ ├── apple-touch-icon-60x60.png │ │ ├── apple-touch-icon-76x76.png │ │ ├── apple-touch-icon-120x120.png │ │ ├── apple-touch-icon-152x152.png │ │ ├── apple-touch-icon-180x180.png │ │ └── msapplication-icon-144x144.png ├── static │ └── media │ │ ├── ChessSansUsual.e305c528.woff │ │ ├── wR.57350123.svg │ │ ├── bP.344e161b.svg │ │ ├── bR.027332a0.svg │ │ └── wP.4ff1ce7c.svg ├── manifest.json ├── iframe.html └── index.html ├── src ├── assets │ └── logo.png ├── components │ ├── chessboard │ │ └── assets │ │ │ └── css │ │ │ ├── fonts │ │ │ ├── ChessSansUscf.woff │ │ │ ├── ChessSansUsual.woff │ │ │ └── ChessSansPiratf.woff │ │ │ ├── styleBoard.css │ │ │ ├── images │ │ │ └── pieces │ │ │ │ └── merida │ │ │ │ ├── wR.svg │ │ │ │ ├── bP.svg │ │ │ │ └── bR.svg │ │ │ └── pieces.css │ ├── .stories │ │ ├── index.js │ │ └── hello.js │ ├── scrollStaticDirection │ │ └── storie.js │ ├── boardTimer │ │ ├── storie.js │ │ └── timeWorker.js │ └── Welcome.vue ├── main.js └── App.vue ├── static ├── images │ ├── logo.png │ ├── board │ │ ├── red.png │ │ ├── blue2.jpg │ │ ├── blue3.jpg │ │ ├── grey.jpg │ │ ├── maple.jpg │ │ ├── marble.jpg │ │ ├── olive.jpg │ │ ├── wood2.jpg │ │ ├── wood3.jpg │ │ ├── canvas2.jpg │ │ ├── gray-hi.png │ │ ├── 3d │ │ │ ├── Light-Wood.png │ │ │ └── woodi.1024.png │ │ ├── brown.svg │ │ ├── green.svg │ │ ├── purple.svg │ │ └── blue.svg │ └── pieces │ │ ├── staunton │ │ └── basic │ │ │ ├── Black-King.png │ │ │ ├── Black-Pawn.png │ │ │ ├── Black-Rook.png │ │ │ ├── White-King.png │ │ │ ├── White-Pawn.png │ │ │ ├── White-Rook.png │ │ │ ├── Black-Bishop.png │ │ │ ├── Black-Knight.png │ │ │ ├── Black-Queen.png │ │ │ ├── White-Bishop.png │ │ │ ├── White-Knight.png │ │ │ ├── White-Queen.png │ │ │ ├── Black-Bishop-Flipped.png │ │ │ ├── Black-Knight-Flipped.png │ │ │ ├── White-Bishop-Flipped.png │ │ │ └── White-Knight-Flipped.png │ │ ├── alpha │ │ ├── bP.svg │ │ ├── bR.svg │ │ ├── wR.svg │ │ ├── bB.svg │ │ ├── bN.svg │ │ ├── bQ.svg │ │ └── wP.svg │ │ ├── cburnett │ │ ├── bP.svg │ │ ├── wP.svg │ │ ├── wR.svg │ │ ├── bR.svg │ │ ├── wK.svg │ │ ├── wN.svg │ │ ├── wK-full.svg │ │ ├── wB.svg │ │ ├── bB.svg │ │ ├── bK.svg │ │ ├── bK-full.svg │ │ ├── bN.svg │ │ ├── wQ.svg │ │ ├── bQ.svg │ │ └── wbK.svg │ │ ├── chessnut │ │ ├── wP.svg │ │ ├── bP.svg │ │ ├── wN.svg │ │ └── bN.svg │ │ ├── pirouetti │ │ ├── bR.svg │ │ ├── wR.svg │ │ ├── invert │ │ │ ├── bR.svg │ │ │ ├── wR.svg │ │ │ ├── bP.svg │ │ │ ├── wP.svg │ │ │ ├── bB.svg │ │ │ ├── wB.svg │ │ │ ├── bQ.svg │ │ │ ├── wQ.svg │ │ │ ├── bN.svg │ │ │ ├── wN.svg │ │ │ ├── bK.svg │ │ │ └── wK.svg │ │ ├── bP.svg │ │ ├── wP.svg │ │ ├── wB.svg │ │ ├── bQ.svg │ │ ├── wQ.svg │ │ ├── bB.svg │ │ ├── bN.svg │ │ ├── wN.svg │ │ ├── bK.svg │ │ └── wK.svg │ │ ├── spatial │ │ ├── wP.svg │ │ ├── bP.svg │ │ ├── wN.svg │ │ ├── bN.svg │ │ ├── bR.svg │ │ ├── wR.svg │ │ ├── bQ.svg │ │ ├── wQ.svg │ │ ├── bK.svg │ │ └── wK.svg │ │ ├── merida │ │ ├── wR.svg │ │ ├── bP.svg │ │ ├── bR.svg │ │ └── wP.svg │ │ └── fantasy │ │ ├── bP.svg │ │ └── wP.svg ├── sound │ ├── move.mp3 │ ├── capture.mp3 │ └── victory.mp3 ├── img │ └── icons │ │ ├── favicon.ico │ │ ├── favicon-16x16.png │ │ ├── favicon-32x32.png │ │ ├── mstile-150x150.png │ │ ├── apple-touch-icon.png │ │ ├── android-chrome-192x192.png │ │ ├── android-chrome-512x512.png │ │ ├── apple-touch-icon-120x120.png │ │ ├── apple-touch-icon-152x152.png │ │ ├── apple-touch-icon-180x180.png │ │ ├── apple-touch-icon-60x60.png │ │ ├── apple-touch-icon-76x76.png │ │ └── msapplication-icon-144x144.png └── manifest.json ├── images └── chessStorybook.png ├── .editorconfig ├── .storybook ├── addons.js └── config.js ├── .postcssrc.js ├── .gitignore ├── README.md ├── .babelrc ├── test └── e2e │ ├── specs │ └── test.js │ ├── custom-assertions │ └── elementCount.js │ ├── runner.js │ └── nightwatch.conf.js ├── .eslintrc.js └── webpack.config.js /.eslintignore: -------------------------------------------------------------------------------- 1 | build/*.js 2 | config/*.js 3 | -------------------------------------------------------------------------------- /config/prod.env.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | NODE_ENV: '"production"' 3 | } 4 | -------------------------------------------------------------------------------- /docs/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustaYo/vue-chess-storybook/HEAD/docs/favicon.ico -------------------------------------------------------------------------------- /docs/images/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustaYo/vue-chess-storybook/HEAD/docs/images/logo.png -------------------------------------------------------------------------------- /docs/sound/move.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustaYo/vue-chess-storybook/HEAD/docs/sound/move.mp3 -------------------------------------------------------------------------------- /src/assets/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustaYo/vue-chess-storybook/HEAD/src/assets/logo.png -------------------------------------------------------------------------------- /docs/sound/capture.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustaYo/vue-chess-storybook/HEAD/docs/sound/capture.mp3 -------------------------------------------------------------------------------- /docs/sound/victory.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustaYo/vue-chess-storybook/HEAD/docs/sound/victory.mp3 -------------------------------------------------------------------------------- /static/images/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustaYo/vue-chess-storybook/HEAD/static/images/logo.png -------------------------------------------------------------------------------- /static/sound/move.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustaYo/vue-chess-storybook/HEAD/static/sound/move.mp3 -------------------------------------------------------------------------------- /docs/images/board/red.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustaYo/vue-chess-storybook/HEAD/docs/images/board/red.png -------------------------------------------------------------------------------- /images/chessStorybook.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustaYo/vue-chess-storybook/HEAD/images/chessStorybook.png -------------------------------------------------------------------------------- /static/sound/capture.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustaYo/vue-chess-storybook/HEAD/static/sound/capture.mp3 -------------------------------------------------------------------------------- /static/sound/victory.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustaYo/vue-chess-storybook/HEAD/static/sound/victory.mp3 -------------------------------------------------------------------------------- /docs/images/board/blue2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustaYo/vue-chess-storybook/HEAD/docs/images/board/blue2.jpg -------------------------------------------------------------------------------- /docs/images/board/blue3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustaYo/vue-chess-storybook/HEAD/docs/images/board/blue3.jpg -------------------------------------------------------------------------------- /docs/images/board/grey.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustaYo/vue-chess-storybook/HEAD/docs/images/board/grey.jpg -------------------------------------------------------------------------------- /docs/images/board/maple.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustaYo/vue-chess-storybook/HEAD/docs/images/board/maple.jpg -------------------------------------------------------------------------------- /docs/images/board/olive.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustaYo/vue-chess-storybook/HEAD/docs/images/board/olive.jpg -------------------------------------------------------------------------------- /docs/images/board/wood2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustaYo/vue-chess-storybook/HEAD/docs/images/board/wood2.jpg -------------------------------------------------------------------------------- /docs/images/board/wood3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustaYo/vue-chess-storybook/HEAD/docs/images/board/wood3.jpg -------------------------------------------------------------------------------- /docs/img/icons/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustaYo/vue-chess-storybook/HEAD/docs/img/icons/favicon.ico -------------------------------------------------------------------------------- /static/images/board/red.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustaYo/vue-chess-storybook/HEAD/static/images/board/red.png -------------------------------------------------------------------------------- /docs/images/board/canvas2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustaYo/vue-chess-storybook/HEAD/docs/images/board/canvas2.jpg -------------------------------------------------------------------------------- /docs/images/board/gray-hi.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustaYo/vue-chess-storybook/HEAD/docs/images/board/gray-hi.png -------------------------------------------------------------------------------- /docs/images/board/marble.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustaYo/vue-chess-storybook/HEAD/docs/images/board/marble.jpg -------------------------------------------------------------------------------- /static/images/board/blue2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustaYo/vue-chess-storybook/HEAD/static/images/board/blue2.jpg -------------------------------------------------------------------------------- /static/images/board/blue3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustaYo/vue-chess-storybook/HEAD/static/images/board/blue3.jpg -------------------------------------------------------------------------------- /static/images/board/grey.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustaYo/vue-chess-storybook/HEAD/static/images/board/grey.jpg -------------------------------------------------------------------------------- /static/images/board/maple.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustaYo/vue-chess-storybook/HEAD/static/images/board/maple.jpg -------------------------------------------------------------------------------- /static/images/board/marble.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustaYo/vue-chess-storybook/HEAD/static/images/board/marble.jpg -------------------------------------------------------------------------------- /static/images/board/olive.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustaYo/vue-chess-storybook/HEAD/static/images/board/olive.jpg -------------------------------------------------------------------------------- /static/images/board/wood2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustaYo/vue-chess-storybook/HEAD/static/images/board/wood2.jpg -------------------------------------------------------------------------------- /static/images/board/wood3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustaYo/vue-chess-storybook/HEAD/static/images/board/wood3.jpg -------------------------------------------------------------------------------- /static/img/icons/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustaYo/vue-chess-storybook/HEAD/static/img/icons/favicon.ico -------------------------------------------------------------------------------- /docs/img/icons/favicon-16x16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustaYo/vue-chess-storybook/HEAD/docs/img/icons/favicon-16x16.png -------------------------------------------------------------------------------- /docs/img/icons/favicon-32x32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustaYo/vue-chess-storybook/HEAD/docs/img/icons/favicon-32x32.png -------------------------------------------------------------------------------- /static/images/board/canvas2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustaYo/vue-chess-storybook/HEAD/static/images/board/canvas2.jpg -------------------------------------------------------------------------------- /static/images/board/gray-hi.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustaYo/vue-chess-storybook/HEAD/static/images/board/gray-hi.png -------------------------------------------------------------------------------- /docs/images/board/3d/Light-Wood.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustaYo/vue-chess-storybook/HEAD/docs/images/board/3d/Light-Wood.png -------------------------------------------------------------------------------- /docs/images/board/3d/woodi.1024.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustaYo/vue-chess-storybook/HEAD/docs/images/board/3d/woodi.1024.png -------------------------------------------------------------------------------- /docs/img/icons/apple-touch-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustaYo/vue-chess-storybook/HEAD/docs/img/icons/apple-touch-icon.png -------------------------------------------------------------------------------- /docs/img/icons/mstile-150x150.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustaYo/vue-chess-storybook/HEAD/docs/img/icons/mstile-150x150.png -------------------------------------------------------------------------------- /static/img/icons/favicon-16x16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustaYo/vue-chess-storybook/HEAD/static/img/icons/favicon-16x16.png -------------------------------------------------------------------------------- /static/img/icons/favicon-32x32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustaYo/vue-chess-storybook/HEAD/static/img/icons/favicon-32x32.png -------------------------------------------------------------------------------- /static/img/icons/mstile-150x150.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustaYo/vue-chess-storybook/HEAD/static/img/icons/mstile-150x150.png -------------------------------------------------------------------------------- /static/images/board/3d/Light-Wood.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustaYo/vue-chess-storybook/HEAD/static/images/board/3d/Light-Wood.png -------------------------------------------------------------------------------- /static/images/board/3d/woodi.1024.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustaYo/vue-chess-storybook/HEAD/static/images/board/3d/woodi.1024.png -------------------------------------------------------------------------------- /static/img/icons/apple-touch-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustaYo/vue-chess-storybook/HEAD/static/img/icons/apple-touch-icon.png -------------------------------------------------------------------------------- /docs/img/icons/android-chrome-192x192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustaYo/vue-chess-storybook/HEAD/docs/img/icons/android-chrome-192x192.png -------------------------------------------------------------------------------- /docs/img/icons/android-chrome-512x512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustaYo/vue-chess-storybook/HEAD/docs/img/icons/android-chrome-512x512.png -------------------------------------------------------------------------------- /docs/img/icons/apple-touch-icon-60x60.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustaYo/vue-chess-storybook/HEAD/docs/img/icons/apple-touch-icon-60x60.png -------------------------------------------------------------------------------- /docs/img/icons/apple-touch-icon-76x76.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustaYo/vue-chess-storybook/HEAD/docs/img/icons/apple-touch-icon-76x76.png -------------------------------------------------------------------------------- /docs/img/icons/apple-touch-icon-120x120.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustaYo/vue-chess-storybook/HEAD/docs/img/icons/apple-touch-icon-120x120.png -------------------------------------------------------------------------------- /docs/img/icons/apple-touch-icon-152x152.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustaYo/vue-chess-storybook/HEAD/docs/img/icons/apple-touch-icon-152x152.png -------------------------------------------------------------------------------- /docs/img/icons/apple-touch-icon-180x180.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustaYo/vue-chess-storybook/HEAD/docs/img/icons/apple-touch-icon-180x180.png -------------------------------------------------------------------------------- /docs/img/icons/msapplication-icon-144x144.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustaYo/vue-chess-storybook/HEAD/docs/img/icons/msapplication-icon-144x144.png -------------------------------------------------------------------------------- /static/img/icons/android-chrome-192x192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustaYo/vue-chess-storybook/HEAD/static/img/icons/android-chrome-192x192.png -------------------------------------------------------------------------------- /static/img/icons/android-chrome-512x512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustaYo/vue-chess-storybook/HEAD/static/img/icons/android-chrome-512x512.png -------------------------------------------------------------------------------- /static/img/icons/apple-touch-icon-120x120.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustaYo/vue-chess-storybook/HEAD/static/img/icons/apple-touch-icon-120x120.png -------------------------------------------------------------------------------- /static/img/icons/apple-touch-icon-152x152.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustaYo/vue-chess-storybook/HEAD/static/img/icons/apple-touch-icon-152x152.png -------------------------------------------------------------------------------- /static/img/icons/apple-touch-icon-180x180.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustaYo/vue-chess-storybook/HEAD/static/img/icons/apple-touch-icon-180x180.png -------------------------------------------------------------------------------- /static/img/icons/apple-touch-icon-60x60.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustaYo/vue-chess-storybook/HEAD/static/img/icons/apple-touch-icon-60x60.png -------------------------------------------------------------------------------- /static/img/icons/apple-touch-icon-76x76.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustaYo/vue-chess-storybook/HEAD/static/img/icons/apple-touch-icon-76x76.png -------------------------------------------------------------------------------- /docs/static/media/ChessSansUsual.e305c528.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustaYo/vue-chess-storybook/HEAD/docs/static/media/ChessSansUsual.e305c528.woff -------------------------------------------------------------------------------- /static/img/icons/msapplication-icon-144x144.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustaYo/vue-chess-storybook/HEAD/static/img/icons/msapplication-icon-144x144.png -------------------------------------------------------------------------------- /docs/images/pieces/staunton/basic/Black-Bishop.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustaYo/vue-chess-storybook/HEAD/docs/images/pieces/staunton/basic/Black-Bishop.png -------------------------------------------------------------------------------- /docs/images/pieces/staunton/basic/Black-King.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustaYo/vue-chess-storybook/HEAD/docs/images/pieces/staunton/basic/Black-King.png -------------------------------------------------------------------------------- /docs/images/pieces/staunton/basic/Black-Knight.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustaYo/vue-chess-storybook/HEAD/docs/images/pieces/staunton/basic/Black-Knight.png -------------------------------------------------------------------------------- /docs/images/pieces/staunton/basic/Black-Pawn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustaYo/vue-chess-storybook/HEAD/docs/images/pieces/staunton/basic/Black-Pawn.png -------------------------------------------------------------------------------- /docs/images/pieces/staunton/basic/Black-Queen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustaYo/vue-chess-storybook/HEAD/docs/images/pieces/staunton/basic/Black-Queen.png -------------------------------------------------------------------------------- /docs/images/pieces/staunton/basic/Black-Rook.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustaYo/vue-chess-storybook/HEAD/docs/images/pieces/staunton/basic/Black-Rook.png -------------------------------------------------------------------------------- /docs/images/pieces/staunton/basic/White-Bishop.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustaYo/vue-chess-storybook/HEAD/docs/images/pieces/staunton/basic/White-Bishop.png -------------------------------------------------------------------------------- /docs/images/pieces/staunton/basic/White-King.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustaYo/vue-chess-storybook/HEAD/docs/images/pieces/staunton/basic/White-King.png -------------------------------------------------------------------------------- /docs/images/pieces/staunton/basic/White-Knight.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustaYo/vue-chess-storybook/HEAD/docs/images/pieces/staunton/basic/White-Knight.png -------------------------------------------------------------------------------- /docs/images/pieces/staunton/basic/White-Pawn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustaYo/vue-chess-storybook/HEAD/docs/images/pieces/staunton/basic/White-Pawn.png -------------------------------------------------------------------------------- /docs/images/pieces/staunton/basic/White-Queen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustaYo/vue-chess-storybook/HEAD/docs/images/pieces/staunton/basic/White-Queen.png -------------------------------------------------------------------------------- /docs/images/pieces/staunton/basic/White-Rook.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustaYo/vue-chess-storybook/HEAD/docs/images/pieces/staunton/basic/White-Rook.png -------------------------------------------------------------------------------- /static/images/pieces/staunton/basic/Black-King.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustaYo/vue-chess-storybook/HEAD/static/images/pieces/staunton/basic/Black-King.png -------------------------------------------------------------------------------- /static/images/pieces/staunton/basic/Black-Pawn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustaYo/vue-chess-storybook/HEAD/static/images/pieces/staunton/basic/Black-Pawn.png -------------------------------------------------------------------------------- /static/images/pieces/staunton/basic/Black-Rook.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustaYo/vue-chess-storybook/HEAD/static/images/pieces/staunton/basic/Black-Rook.png -------------------------------------------------------------------------------- /static/images/pieces/staunton/basic/White-King.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustaYo/vue-chess-storybook/HEAD/static/images/pieces/staunton/basic/White-King.png -------------------------------------------------------------------------------- /static/images/pieces/staunton/basic/White-Pawn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustaYo/vue-chess-storybook/HEAD/static/images/pieces/staunton/basic/White-Pawn.png -------------------------------------------------------------------------------- /static/images/pieces/staunton/basic/White-Rook.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustaYo/vue-chess-storybook/HEAD/static/images/pieces/staunton/basic/White-Rook.png -------------------------------------------------------------------------------- /static/images/pieces/staunton/basic/Black-Bishop.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustaYo/vue-chess-storybook/HEAD/static/images/pieces/staunton/basic/Black-Bishop.png -------------------------------------------------------------------------------- /static/images/pieces/staunton/basic/Black-Knight.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustaYo/vue-chess-storybook/HEAD/static/images/pieces/staunton/basic/Black-Knight.png -------------------------------------------------------------------------------- /static/images/pieces/staunton/basic/Black-Queen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustaYo/vue-chess-storybook/HEAD/static/images/pieces/staunton/basic/Black-Queen.png -------------------------------------------------------------------------------- /static/images/pieces/staunton/basic/White-Bishop.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustaYo/vue-chess-storybook/HEAD/static/images/pieces/staunton/basic/White-Bishop.png -------------------------------------------------------------------------------- /static/images/pieces/staunton/basic/White-Knight.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustaYo/vue-chess-storybook/HEAD/static/images/pieces/staunton/basic/White-Knight.png -------------------------------------------------------------------------------- /static/images/pieces/staunton/basic/White-Queen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustaYo/vue-chess-storybook/HEAD/static/images/pieces/staunton/basic/White-Queen.png -------------------------------------------------------------------------------- /config/test.env.js: -------------------------------------------------------------------------------- 1 | var merge = require('webpack-merge') 2 | var devEnv = require('./dev.env') 3 | 4 | module.exports = merge(devEnv, { 5 | NODE_ENV: '"testing"' 6 | }) 7 | -------------------------------------------------------------------------------- /config/dev.env.js: -------------------------------------------------------------------------------- 1 | var merge = require('webpack-merge') 2 | var prodEnv = require('./prod.env') 3 | 4 | module.exports = merge(prodEnv, { 5 | NODE_ENV: '"development"' 6 | }) 7 | -------------------------------------------------------------------------------- /docs/images/pieces/staunton/basic/Black-Bishop-Flipped.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustaYo/vue-chess-storybook/HEAD/docs/images/pieces/staunton/basic/Black-Bishop-Flipped.png -------------------------------------------------------------------------------- /docs/images/pieces/staunton/basic/Black-Knight-Flipped.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustaYo/vue-chess-storybook/HEAD/docs/images/pieces/staunton/basic/Black-Knight-Flipped.png -------------------------------------------------------------------------------- /docs/images/pieces/staunton/basic/White-Bishop-Flipped.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustaYo/vue-chess-storybook/HEAD/docs/images/pieces/staunton/basic/White-Bishop-Flipped.png -------------------------------------------------------------------------------- /docs/images/pieces/staunton/basic/White-Knight-Flipped.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustaYo/vue-chess-storybook/HEAD/docs/images/pieces/staunton/basic/White-Knight-Flipped.png -------------------------------------------------------------------------------- /static/images/pieces/staunton/basic/Black-Bishop-Flipped.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustaYo/vue-chess-storybook/HEAD/static/images/pieces/staunton/basic/Black-Bishop-Flipped.png -------------------------------------------------------------------------------- /static/images/pieces/staunton/basic/Black-Knight-Flipped.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustaYo/vue-chess-storybook/HEAD/static/images/pieces/staunton/basic/Black-Knight-Flipped.png -------------------------------------------------------------------------------- /static/images/pieces/staunton/basic/White-Bishop-Flipped.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustaYo/vue-chess-storybook/HEAD/static/images/pieces/staunton/basic/White-Bishop-Flipped.png -------------------------------------------------------------------------------- /static/images/pieces/staunton/basic/White-Knight-Flipped.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustaYo/vue-chess-storybook/HEAD/static/images/pieces/staunton/basic/White-Knight-Flipped.png -------------------------------------------------------------------------------- /src/components/chessboard/assets/css/fonts/ChessSansUscf.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustaYo/vue-chess-storybook/HEAD/src/components/chessboard/assets/css/fonts/ChessSansUscf.woff -------------------------------------------------------------------------------- /src/components/chessboard/assets/css/fonts/ChessSansUsual.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustaYo/vue-chess-storybook/HEAD/src/components/chessboard/assets/css/fonts/ChessSansUsual.woff -------------------------------------------------------------------------------- /src/components/chessboard/assets/css/fonts/ChessSansPiratf.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustaYo/vue-chess-storybook/HEAD/src/components/chessboard/assets/css/fonts/ChessSansPiratf.woff -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | charset = utf-8 5 | indent_style = space 6 | indent_size = 2 7 | end_of_line = lf 8 | insert_final_newline = true 9 | trim_trailing_whitespace = true 10 | -------------------------------------------------------------------------------- /.storybook/addons.js: -------------------------------------------------------------------------------- 1 | import '@storybook/addon-actions/register'; 2 | import '@storybook/addon-links/register'; 3 | import '@storybook/addon-notes/register'; 4 | import '@storybook/addon-knobs/register'; 5 | -------------------------------------------------------------------------------- /.postcssrc.js: -------------------------------------------------------------------------------- 1 | // https://github.com/michael-ciniawsky/postcss-load-config 2 | 3 | module.exports = { 4 | "plugins": { 5 | // to edit target browsers: use "browserlist" field in package.json 6 | "autoprefixer": {} 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /.storybook/config.js: -------------------------------------------------------------------------------- 1 | import { configure, setAddon } from '@storybook/vue'; 2 | import Vue from 'vue' 3 | import Vuex from 'vuex' 4 | Vue.use(Vuex) 5 | function loadStories() { 6 | require('../src/components/.stories'); 7 | } 8 | configure(loadStories, module); 9 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | node_modules/ 3 | dist/ 4 | npm-debug.log* 5 | yarn-debug.log* 6 | yarn-error.log* 7 | test/e2e/reports 8 | selenium-debug.log 9 | storybook-static/ 10 | 11 | # Editor directories and files 12 | .idea 13 | *.suo 14 | *.ntvs* 15 | *.njsproj 16 | *.sln 17 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Storybook VueChess Demo 2 | 3 | Rewriting components in vue2. 4 | 5 | Example 6 | ------ 7 | 8 | ![example](images/chessStorybook.png "example") 9 | 10 | 1. `git clone ...` 11 | 2. `yarn install` 12 | 3. Run the dev storybook server (`yarn storybook`) 13 | 14 | 15 | -------------------------------------------------------------------------------- /docs/images/pieces/alpha/bP.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/images/pieces/alpha/bP.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/components/.stories/index.js: -------------------------------------------------------------------------------- 1 | import Vuex from 'vuex'; 2 | import { storiesOf } from '@storybook/vue'; 3 | 4 | require('./hello.js'); 5 | require('../boardHistory/storie.js'); 6 | require('../boardTimer/storie.js'); 7 | require('../chessboard/storie.js'); 8 | require('../puzzle/storie.js'); 9 | require('../scrollStaticDirection/storie.js'); 10 | 11 | -------------------------------------------------------------------------------- /src/main.js: -------------------------------------------------------------------------------- 1 | // The Vue build version to load with the `import` command 2 | // (runtime-only or standalone) has been set in webpack.base.conf with an alias. 3 | import Vue from 'vue' 4 | import App from './App' 5 | 6 | Vue.config.productionTip = false 7 | 8 | /* eslint-disable no-new */ 9 | new Vue({ 10 | el: '#app', 11 | template: '', 12 | components: { App } 13 | }) 14 | -------------------------------------------------------------------------------- /.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": [ 3 | ["env", { 4 | "modules": false, 5 | "targets": { 6 | "browsers": ["> 1%", "last 2 versions", "not ie <= 8"] 7 | } 8 | }], 9 | "stage-2" 10 | ], 11 | "plugins": ["transform-runtime"], 12 | "env": { 13 | "test": { 14 | "presets": ["env", "stage-2"], 15 | "plugins": [ "istanbul" ] 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /docs/images/pieces/cburnett/bP.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/images/pieces/cburnett/bP.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs/images/pieces/cburnett/wP.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/images/pieces/cburnett/wP.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/components/chessboard/assets/css/styleBoard.css: -------------------------------------------------------------------------------- 1 | .cg-board-wrap { 2 | position: relative; 3 | background-image: url('images/board/gray.svg'); 4 | background-size: cover; 5 | } 6 | 7 | @font-face { 8 | font-family: 'ChessSansUsual'; 9 | src: url('./fonts/ChessSansUsual.woff'); 10 | } 11 | label.move { 12 | flex: 0 0 42.5%; 13 | max-width: 42.5%; 14 | box-sizing: border-box; font-family: 15 | "ChessSansUsual",sans-serif; 16 | font-size: 1.3em; 17 | padding-left: 0px; 18 | } -------------------------------------------------------------------------------- /src/components/.stories/hello.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import Vuex from 'vuex'; 3 | import { storiesOf } from '@storybook/vue'; 4 | 5 | 6 | import Welcome from '../Welcome.vue'; 7 | import AppExample from '../../Example.vue'; 8 | 9 | storiesOf('Example', module) 10 | .add('Example', () => ({ 11 | render(h) { 12 | return h(AppExample); 13 | }, 14 | })) 15 | 16 | 17 | storiesOf('Welcome', module) 18 | .add('HelloHelloHello', () => ({ 19 | render(h) { 20 | return h(Welcome); 21 | }, 22 | })) 23 | -------------------------------------------------------------------------------- /docs/images/pieces/alpha/bR.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/images/pieces/alpha/bR.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "vue-chess-storybook", 3 | "short_name": "vuechess", 4 | "icons": [ 5 | { 6 | "src": "/static/img/icons/android-chrome-192x192.png", 7 | "sizes": "192x192", 8 | "type": "image/png" 9 | }, 10 | { 11 | "src": "/static/img/icons/android-chrome-512x512.png", 12 | "sizes": "512x512", 13 | "type": "image/png" 14 | } 15 | ], 16 | "start_url": "/index.html", 17 | "display": "standalone", 18 | "background_color": "#000000", 19 | "theme_color": "#4DBA87" 20 | } 21 | -------------------------------------------------------------------------------- /static/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "vue-chess-storybook", 3 | "short_name": "vuechess", 4 | "icons": [ 5 | { 6 | "src": "/static/img/icons/android-chrome-192x192.png", 7 | "sizes": "192x192", 8 | "type": "image/png" 9 | }, 10 | { 11 | "src": "/static/img/icons/android-chrome-512x512.png", 12 | "sizes": "512x512", 13 | "type": "image/png" 14 | } 15 | ], 16 | "start_url": "/index.html", 17 | "display": "standalone", 18 | "background_color": "#000000", 19 | "theme_color": "#4DBA87" 20 | } 21 | -------------------------------------------------------------------------------- /docs/images/pieces/cburnett/wR.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/images/pieces/cburnett/wR.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs/images/board/brown.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /docs/images/board/green.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /docs/images/board/purple.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /static/images/board/brown.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /static/images/board/green.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /docs/images/pieces/cburnett/bR.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs/images/pieces/cburnett/wK.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/images/board/purple.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /static/images/pieces/cburnett/bR.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/e2e/specs/test.js: -------------------------------------------------------------------------------- 1 | // For authoring Nightwatch tests, see 2 | // http://nightwatchjs.org/guide#usage 3 | 4 | module.exports = { 5 | 'default e2e tests': function (browser) { 6 | // automatically uses dev Server port from /config.index.js 7 | // default: http://localhost:8080 8 | // see nightwatch.conf.js 9 | const devServer = browser.globals.devServerURL 10 | 11 | browser 12 | .url(devServer) 13 | .waitForElementVisible('#app', 5000) 14 | .assert.elementPresent('.hello') 15 | .assert.containsText('h1', 'Welcome to Your Vue.js PWA') 16 | .assert.elementCount('img', 1) 17 | .end() 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /docs/images/pieces/chessnut/wP.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/images/pieces/cburnett/wK.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/images/pieces/chessnut/wP.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs/images/pieces/cburnett/wN.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/components/scrollStaticDirection/storie.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import Vuex from 'vuex'; 3 | import { storiesOf } from '@storybook/vue'; 4 | 5 | import { action } from '@storybook/addon-actions'; 6 | 7 | import scrollDirection from './index.vue'; 8 | 9 | storiesOf('ScrollDirection', module) 10 | .add('Example', () => ({ 11 | components: { scrollDirection }, 12 | template: '
', 13 | methods: { 14 | eventScrollDirection (dir) { 15 | action('scrollDir')(dir); 16 | } 17 | } 18 | })) -------------------------------------------------------------------------------- /static/images/pieces/cburnett/wN.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs/images/pieces/cburnett/wK-full.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/images/pieces/cburnett/wK-full.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs/images/pieces/cburnett/wB.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/images/pieces/cburnett/wB.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs/images/pieces/cburnett/bB.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/images/pieces/cburnett/bB.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs/iframe.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 13 | Storybook 14 | 15 | 16 | 17 | 18 |
19 |
20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /docs/images/pieces/pirouetti/bR.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs/images/pieces/pirouetti/wR.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/images/pieces/pirouetti/bR.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/images/pieces/pirouetti/wR.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- 1 | // http://eslint.org/docs/user-guide/configuring 2 | 3 | module.exports = { 4 | root: true, 5 | parser: 'babel-eslint', 6 | parserOptions: { 7 | sourceType: 'module' 8 | }, 9 | env: { 10 | browser: true, 11 | }, 12 | // https://github.com/feross/standard/blob/master/RULES.md#javascript-standard-style 13 | extends: 'standard', 14 | // required to lint *.vue files 15 | plugins: [ 16 | 'html' 17 | ], 18 | // add your custom rules here 19 | 'rules': { 20 | // allow paren-less arrow functions 21 | 'arrow-parens': 0, 22 | // allow async-await 23 | 'generator-star-spacing': 0, 24 | // allow debugger during development 25 | 'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /docs/images/pieces/pirouetti/invert/bR.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs/images/pieces/pirouetti/invert/wR.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs/images/pieces/chessnut/bP.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/images/pieces/chessnut/bP.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/images/pieces/pirouetti/invert/bR.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/images/pieces/pirouetti/invert/wR.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs/images/pieces/spatial/wP.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/images/pieces/spatial/wP.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs/images/pieces/spatial/bP.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/images/pieces/spatial/bP.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs/images/pieces/cburnett/bK.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/images/pieces/cburnett/bK.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs/images/pieces/cburnett/bK-full.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs/images/board/blue.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /static/images/board/blue.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /static/images/pieces/cburnett/bK-full.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs/images/pieces/cburnett/bN.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/images/pieces/cburnett/bN.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/e2e/custom-assertions/elementCount.js: -------------------------------------------------------------------------------- 1 | // A custom Nightwatch assertion. 2 | // the name of the method is the filename. 3 | // can be used in tests like this: 4 | // 5 | // browser.assert.elementCount(selector, count) 6 | // 7 | // for how to write custom assertions see 8 | // http://nightwatchjs.org/guide#writing-custom-assertions 9 | exports.assertion = function (selector, count) { 10 | this.message = 'Testing if element <' + selector + '> has count: ' + count 11 | this.expected = count 12 | this.pass = function (val) { 13 | return val === this.expected 14 | } 15 | this.value = function (res) { 16 | return res.value 17 | } 18 | this.command = function (cb) { 19 | var self = this 20 | return this.api.execute(function (selector) { 21 | return document.querySelectorAll(selector).length 22 | }, [selector], function (res) { 23 | cb.call(self, res) 24 | }) 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /docs/images/pieces/chessnut/wN.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/images/pieces/chessnut/wN.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs/images/pieces/merida/wR.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs/static/media/wR.57350123.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs/images/pieces/chessnut/bN.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/images/pieces/chessnut/bN.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/images/pieces/merida/wR.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs/images/pieces/merida/bP.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs/static/media/bP.344e161b.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/images/pieces/merida/bP.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs/images/pieces/cburnett/wQ.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs/images/pieces/merida/bR.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs/static/media/bR.027332a0.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/images/pieces/cburnett/wQ.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs/images/pieces/pirouetti/bP.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs/images/pieces/pirouetti/wP.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/components/chessboard/assets/css/images/pieces/merida/wR.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/images/pieces/merida/bR.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/images/pieces/pirouetti/bP.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/images/pieces/pirouetti/wP.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs/images/pieces/cburnett/bQ.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/components/chessboard/assets/css/images/pieces/merida/bP.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs/images/pieces/pirouetti/invert/bP.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs/images/pieces/pirouetti/invert/wP.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/images/pieces/cburnett/bQ.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/images/pieces/pirouetti/invert/bP.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/images/pieces/pirouetti/invert/wP.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/components/boardTimer/storie.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import { storiesOf } from '@storybook/vue'; 3 | import { action } from '@storybook/addon-actions'; 4 | import { 5 | addonKnobs, 6 | number, 7 | } from '@storybook/addon-knobs'; 8 | 9 | import BoardTimer from './index.vue'; 10 | import ManagerTimer from './managerTimes.vue'; 11 | 12 | import {store} from './store' 13 | 14 | storiesOf('BoardTimer', module) 15 | .add('Default', () => ({ 16 | components: { BoardTimer }, 17 | store: store, 18 | template: '', 19 | })) 20 | .add('Default start', () => ({ 21 | components: { BoardTimer }, 22 | store: store, 23 | template: '', 24 | data () { 25 | return { 26 | idBoard: 'defaultStart', 27 | active: true 28 | } 29 | } 30 | })) 31 | .add('Many times', () => ({ 32 | render(h) { 33 | return h(ManagerTimer); 34 | }, 35 | })) 36 | 37 | -------------------------------------------------------------------------------- /src/components/chessboard/assets/css/images/pieces/merida/bR.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs/images/pieces/pirouetti/wB.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/images/pieces/pirouetti/wB.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs/images/pieces/pirouetti/invert/bB.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs/images/pieces/pirouetti/invert/wB.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/images/pieces/pirouetti/invert/bB.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/images/pieces/pirouetti/invert/wB.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs/images/pieces/pirouetti/bQ.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs/images/pieces/pirouetti/wQ.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/images/pieces/pirouetti/bQ.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/images/pieces/pirouetti/wQ.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs/images/pieces/pirouetti/bB.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/images/pieces/pirouetti/bB.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs/images/pieces/pirouetti/invert/bQ.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs/images/pieces/pirouetti/invert/wQ.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/images/pieces/pirouetti/invert/bQ.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/images/pieces/pirouetti/invert/wQ.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs/images/pieces/pirouetti/bN.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs/images/pieces/pirouetti/wN.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/components/Welcome.vue: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 13 | 53 | -------------------------------------------------------------------------------- /static/images/pieces/pirouetti/bN.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/images/pieces/pirouetti/wN.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs/images/pieces/pirouetti/invert/bN.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs/images/pieces/pirouetti/invert/wN.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/images/pieces/pirouetti/invert/bN.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/images/pieces/pirouetti/invert/wN.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs/images/pieces/alpha/wR.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/images/pieces/alpha/wR.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs/images/pieces/alpha/bB.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/images/pieces/alpha/bB.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/App.vue: -------------------------------------------------------------------------------- 1 | 12 | 13 | 23 | 24 | 60 | -------------------------------------------------------------------------------- /docs/images/pieces/spatial/wN.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/images/pieces/spatial/wN.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs/images/pieces/spatial/bN.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/images/pieces/spatial/bN.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/e2e/runner.js: -------------------------------------------------------------------------------- 1 | // 1. start the dev server using production config 2 | process.env.NODE_ENV = 'testing' 3 | var server = require('../../build/dev-server.js') 4 | 5 | server.ready.then(() => { 6 | // 2. run the nightwatch test suite against it 7 | // to run in additional browsers: 8 | // 1. add an entry in test/e2e/nightwatch.conf.json under "test_settings" 9 | // 2. add it to the --env flag below 10 | // or override the environment flag, for example: `npm run e2e -- --env chrome,firefox` 11 | // For more information on Nightwatch's config file, see 12 | // http://nightwatchjs.org/guide#settings-file 13 | var opts = process.argv.slice(2) 14 | if (opts.indexOf('--config') === -1) { 15 | opts = opts.concat(['--config', 'test/e2e/nightwatch.conf.js']) 16 | } 17 | if (opts.indexOf('--env') === -1) { 18 | opts = opts.concat(['--env', 'chrome']) 19 | } 20 | 21 | var spawn = require('cross-spawn') 22 | var runner = spawn('./node_modules/.bin/nightwatch', opts, { stdio: 'inherit' }) 23 | 24 | runner.on('exit', function (code) { 25 | server.close() 26 | process.exit(code) 27 | }) 28 | 29 | runner.on('error', function (err) { 30 | server.close() 31 | throw err 32 | }) 33 | }) 34 | -------------------------------------------------------------------------------- /src/components/chessboard/assets/css/pieces.css: -------------------------------------------------------------------------------- 1 | 2 | .cg-board piece.pawn.white { 3 | background-image: url('images/pieces/merida/wP.svg'); 4 | } 5 | .cg-board piece.bishop.white { 6 | background-image: url('images/pieces/merida/wB.svg'); 7 | } 8 | .cg-board piece.knight.white { 9 | background-image: url('images/pieces/merida/wN.svg'); 10 | } 11 | .cg-board piece.rook.white { 12 | background-image: url('images/pieces/merida/wR.svg'); 13 | } 14 | .cg-board piece.queen.white { 15 | background-image: url('images/pieces/merida/wQ.svg'); 16 | } 17 | .cg-board piece.king.white { 18 | background-image: url('images/pieces/merida/wK.svg'); 19 | } 20 | .cg-board piece.pawn.black { 21 | background-image: url('images/pieces/merida/bP.svg'); 22 | } 23 | .cg-board piece.bishop.black { 24 | background-image: url('images/pieces/merida/bB.svg'); 25 | } 26 | .cg-board piece.knight.black { 27 | background-image: url('images/pieces/merida/bN.svg'); 28 | } 29 | .cg-board piece.rook.black { 30 | background-image: url('images/pieces/merida/bR.svg'); 31 | } 32 | .cg-board piece.queen.black { 33 | background-image: url('images/pieces/merida/bQ.svg'); 34 | } 35 | .cg-board piece.king.black { 36 | background-image: url('images/pieces/merida/bK.svg'); 37 | } 38 | -------------------------------------------------------------------------------- /test/e2e/nightwatch.conf.js: -------------------------------------------------------------------------------- 1 | require('babel-register') 2 | var config = require('../../config') 3 | 4 | // http://nightwatchjs.org/gettingstarted#settings-file 5 | module.exports = { 6 | src_folders: ['test/e2e/specs'], 7 | output_folder: 'test/e2e/reports', 8 | custom_assertions_path: ['test/e2e/custom-assertions'], 9 | 10 | selenium: { 11 | start_process: true, 12 | server_path: require('selenium-server').path, 13 | host: '127.0.0.1', 14 | port: 4444, 15 | cli_args: { 16 | 'webdriver.chrome.driver': require('chromedriver').path 17 | } 18 | }, 19 | 20 | test_settings: { 21 | default: { 22 | selenium_port: 4444, 23 | selenium_host: 'localhost', 24 | silent: true, 25 | globals: { 26 | devServerURL: 'http://localhost:' + (process.env.PORT || config.dev.port) 27 | } 28 | }, 29 | 30 | chrome: { 31 | desiredCapabilities: { 32 | browserName: 'chrome', 33 | javascriptEnabled: true, 34 | acceptSslCerts: true 35 | } 36 | }, 37 | 38 | firefox: { 39 | desiredCapabilities: { 40 | browserName: 'firefox', 41 | javascriptEnabled: true, 42 | acceptSslCerts: true 43 | } 44 | } 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /docs/images/pieces/alpha/bN.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/images/pieces/alpha/bN.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs/images/pieces/fantasy/bP.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/images/pieces/fantasy/bP.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs/images/pieces/fantasy/wP.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/images/pieces/fantasy/wP.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | Storybook 10 | 39 | 40 | 41 | 42 |
43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /docs/images/pieces/pirouetti/bK.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/images/pieces/pirouetti/bK.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /config/index.js: -------------------------------------------------------------------------------- 1 | // see http://vuejs-templates.github.io/webpack for documentation. 2 | var path = require('path') 3 | 4 | module.exports = { 5 | build: { 6 | env: require('./prod.env'), 7 | index: path.resolve(__dirname, '../dist/index.html'), 8 | assetsRoot: path.resolve(__dirname, '../dist'), 9 | assetsSubDirectory: 'static', 10 | assetsPublicPath: '/', 11 | productionSourceMap: true, 12 | // Gzip off by default as many popular static hosts such as 13 | // Surge or Netlify already gzip all static assets for you. 14 | // Before setting to `true`, make sure to: 15 | // npm install --save-dev compression-webpack-plugin 16 | productionGzip: false, 17 | productionGzipExtensions: ['js', 'css'], 18 | // Run the build command with an extra argument to 19 | // View the bundle analyzer report after build finishes: 20 | // `npm run build --report` 21 | // Set to `true` or `false` to always turn it on or off 22 | bundleAnalyzerReport: process.env.npm_config_report 23 | }, 24 | dev: { 25 | env: require('./dev.env'), 26 | port: 8080, 27 | autoOpenBrowser: true, 28 | assetsSubDirectory: 'static', 29 | assetsPublicPath: '/', 30 | proxyTable: {}, 31 | // CSS Sourcemaps off by default because relative paths are "buggy" 32 | // with this option, according to the CSS-Loader README 33 | // (https://github.com/webpack/css-loader#sourcemaps) 34 | // In our experience, they generally work as expected, 35 | // just be aware of this issue when enabling this option. 36 | cssSourceMap: false 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /docs/images/pieces/pirouetti/invert/bK.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs/images/pieces/pirouetti/wK.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/images/pieces/pirouetti/invert/bK.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/images/pieces/pirouetti/wK.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs/images/pieces/pirouetti/invert/wK.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/images/pieces/pirouetti/invert/wK.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/components/boardTimer/timeWorker.js: -------------------------------------------------------------------------------- 1 | 2 | var times = { 3 | w: 60*1*1000, 4 | b: 60*1*1000 5 | } 6 | var timeLoop = { 7 | b: 2, 8 | w: 1, 9 | } 10 | var colorActive = 'w' 11 | 12 | const sendMensaje = (men) => { 13 | postMessage(JSON.stringify(men)) 14 | } 15 | clearInterval(timeLoop['b']) 16 | clearInterval(timeLoop['w']) 17 | const start = () => { 18 | clearInterval(timeLoop[colorActive]) 19 | timeLoop[colorActive] = setInterval(() =>{ 20 | times[colorActive] = times[colorActive] - 10 21 | if (times[colorActive] > 0) { 22 | const s = times[colorActive]/1000 23 | const seg = s % 60 24 | if (parseInt(seg) === seg) { 25 | sendMensaje({time: times[colorActive], c: colorActive}); 26 | } 27 | }else{ 28 | clearInterval(timeLoop[colorActive]) 29 | times[colorActive] = 0 30 | sendMensaje({time: times[colorActive], c: colorActive}); 31 | } 32 | },10) 33 | 34 | } 35 | 36 | const methods = { 37 | start: (color) => { 38 | clearInterval(timeLoop[colorActive]) 39 | setTimeout(()=>{ 40 | colorActive = color || colorActive 41 | clearInterval(timeLoop[colorActive]) 42 | start() 43 | },2) 44 | }, 45 | stop: (color) => { 46 | clearInterval(timeLoop[colorActive]) 47 | clearInterval(timeLoop[color]) 48 | }, 49 | toogleColor: () => { 50 | clearInterval(timeLoop[colorActive]) 51 | colorActive = colorActive === 'w' ? 'b' : 'w' 52 | start() 53 | }, 54 | setTime: (newTime) => { 55 | Object.assign(times,newTime) 56 | } 57 | } 58 | self.onmessage = (e) => { 59 | const data = JSON.parse(e.data) 60 | const fnc = data.fun 61 | const arg = data.arg || {} 62 | methods[fnc].call(this,arg) 63 | } -------------------------------------------------------------------------------- /docs/images/pieces/spatial/bR.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs/images/pieces/spatial/wR.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/images/pieces/spatial/bR.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/images/pieces/spatial/wR.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs/images/pieces/spatial/bQ.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/images/pieces/spatial/bQ.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs/images/pieces/spatial/wQ.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/images/pieces/spatial/wQ.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs/images/pieces/cburnett/wbK.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs/images/pieces/spatial/bK.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/images/pieces/cburnett/wbK.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/images/pieces/spatial/bK.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /webpack.config.js: -------------------------------------------------------------------------------- 1 | const path = require('path'); 2 | const webpack = require('webpack'); 3 | 4 | module.exports = { 5 | entry: './src/index.js', 6 | output: { 7 | path: path.resolve(__dirname, './dist'), 8 | publicPath: '/dist/', 9 | filename: 'build.js', 10 | }, 11 | module: { 12 | 13 | rules: [ 14 | { 15 | test: /\.vue$/, 16 | loader: 'vue-loader', 17 | options: { 18 | loaders: {}, 19 | // other vue-loader options go here 20 | }, 21 | }, 22 | { 23 | test: /\.js$/, 24 | loader: 'babel-loader', 25 | exclude: /node_modules/, 26 | }, 27 | { 28 | test: /\.(png|jpg|gif|svg)$/, 29 | loader: 'file-loader', 30 | options: { 31 | name: '[name].[ext]?[hash]', 32 | }, 33 | }, 34 | { 35 | test: /worker\.js$/, 36 | loader: 'worker' 37 | } 38 | ], 39 | }, 40 | resolve: { 41 | alias: { 42 | vue$: 'vue/dist/vue.esm.js', 43 | }, 44 | }, 45 | devServer: { 46 | historyApiFallback: true, 47 | noInfo: true, 48 | }, 49 | performance: { 50 | hints: false, 51 | }, 52 | devtool: '#eval-source-map', 53 | }; 54 | 55 | if (process.env.NODE_ENV === 'production') { 56 | module.exports.devtool = '#source-map'; 57 | // http://vue-loader.vuejs.org/en/workflow/production.html 58 | module.exports.plugins = (module.exports.plugins || []).concat([ 59 | new webpack.DefinePlugin({ 60 | 'process.env': { 61 | NODE_ENV: '"production"', 62 | }, 63 | }), 64 | new webpack.optimize.UglifyJsPlugin({ 65 | sourceMap: true, 66 | compress: { 67 | warnings: false, 68 | }, 69 | }), 70 | new webpack.LoaderOptionsPlugin({ 71 | minimize: true, 72 | }), 73 | ]); 74 | } 75 | -------------------------------------------------------------------------------- /docs/images/pieces/spatial/wK.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs/images/pieces/alpha/bQ.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/images/pieces/spatial/wK.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/images/pieces/alpha/bQ.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs/images/pieces/alpha/wP.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/images/pieces/alpha/wP.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs/images/pieces/merida/wP.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs/static/media/wP.4ff1ce7c.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/images/pieces/merida/wP.svg: -------------------------------------------------------------------------------- 1 | --------------------------------------------------------------------------------