X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fcomponents%2FBoard.vue;h=c36ea8ae5894e6ffa8a086889d94326ddbfa4c45;hb=50aed5a15e214d31b63f6320209ac14fe5c052cb;hp=32738829f6763eb0692c50e9ac1cc953012c09e7;hpb=e27329232b83700d63c8fb52af6f4c2eec9a569c;p=vchess.git diff --git a/client/src/components/Board.vue b/client/src/components/Board.vue index 32738829..c36ea8ae 100644 --- a/client/src/components/Board.vue +++ b/client/src/components/Board.vue @@ -111,7 +111,7 @@ export default { && this.selectedPiece.parentNode.id == "sq-"+ci+"-"+cj, }, attrs: { - src: "@/assets/images/pieces/" + + src: "/images/pieces/" + V.getPpath(this.vr.board[ci][cj]) + ".svg", }, } @@ -239,11 +239,11 @@ export default { 'div', { 'class': { - "col-sm-12":true, - "col-md-10":true, - "col-md-offset-1":true, - "col-lg-8":true, - "col-lg-offset-2":true, + "col-sm-12": true, + "col-md-10": true, + "col-md-offset-1": true, + "col-lg-8": true, + "col-lg-offset-2": true, }, // NOTE: click = mousedown + mouseup on: { @@ -362,3 +362,104 @@ export default { }, }; + +