X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=public%2Fjavascripts%2Fcomponents%2FmoveList.js;h=48a8e05c4ba1edd521e1b38b1b947d9ef9ecfd7d;hp=ded7d86d9dbf10b6148e38e2b60b2abd9f527154;hb=a3ab5fdb6e9d614f55bb7ecef5887ddb7875df4b;hpb=d337a94cd6d38bb743a8935017d03fe21d4ad324 diff --git a/public/javascripts/components/moveList.js b/public/javascripts/components/moveList.js index ded7d86d..48a8e05c 100644 --- a/public/javascripts/components/moveList.js +++ b/public/javascripts/components/moveList.js @@ -1,15 +1,14 @@ -//TODO: component for moves list on the right -// TODO: generic "getPGN" in the same way (following move.color) +// Component for moves list on the right Vue.component('my-move-list', { props: ["moves","cursor"], //TODO: other props for e.g. players names + connected indicator // --> we could also add turn indicator here - // + missing "cursor" prop data: function() { return { - something: "", //TODO + something: "", //TODO? }; }, // TODO: extend rendering for more than 2 colors: would be a parameter + // in that case some moves for some colors could be just skipped (if a player lost) render(h) { if (this.moves.length == 0) return;