chessh/front/public/chessh.svg
Logan Hunt 4666d7871a
Web Client (#11)
* Github Oauth

* A simple frontend

* Add middleware proxy on dev

* Forward proxy and rewrite path, add oauth to frontend, increase jwt expiry time to 12 hours

* Some simple style changes

* Add keys as user

* Checkpoint - auth is broken

* Fix auth and use player model, unrelated to this pr: flip board if dark

* Close player session when password or key deleted or put

* Add build script - this branch is quickly becoming cringe

* Docker v2 - add migration and scripts, fix local storage and index that caused build issues

* Ignore keys, proxy api correctly nginx

* Finally nginx is resolved jesus christ

* Remove max screen dimension limits cuz cringe

* Cursor highlight

* Add password form, some minor frontend changes as well

* Remove cringe on home page

* Move to 127.0.0.1 loopback in env

* Add github id in player structs for tests
2023-01-19 14:04:10 -07:00

1 line
15 KiB
XML

<svg version="1.1" viewBox="0.0 0.0 960.0 960.0" fill="none" stroke="none" stroke-linecap="square" stroke-miterlimit="10" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg"><clipPath id="p.0"><path d="m0 0l960.0 0l0 960.0l-960.0 0l0 -960.0z" clip-rule="nonzero"/></clipPath><g clip-path="url(#p.0)"><path fill="#000000" fill-opacity="0.0" d="m0 0l960.0 0l0 960.0l-960.0 0z" fill-rule="evenodd"/><defs><linearGradient id="p.1" gradientUnits="userSpaceOnUse" gradientTransform="matrix(0.0 30.983922361253416 -30.983922361253416 0.0 0.0 0.0)" spreadMethod="pad" x1="0.06412605277195675" y1="-30.95757731162891" x2="0.06401389269320752" y2="0.02634504942150403"><stop offset="0.0" stop-color="#ffffff"/><stop offset="1.0" stop-color="#b3b3b3"/></linearGradient></defs><path fill="url(#p.1)" d="m479.18372 1.9868766l0 0c265.09668 0 480.0 214.0925 480.0 478.18896l0 0c0 126.82361 -50.57129 248.45282 -140.58875 338.13068c-90.017456 89.67786 -212.1073 140.05829 -339.41125 140.05829l0 0c-265.09668 0 -480.0 -214.09247 -480.0 -478.18896l0 0c0 -264.09647 214.90332 -478.18896 480.0 -478.18896z" fill-rule="evenodd"/><path fill="#000000" fill-opacity="0.0" d="m236.03412 1.703412l511.5276 0l0 956.9449l-511.5276 0z" fill-rule="evenodd"/><path fill="#351c75" d="m266.31537 289.199l89.125 -239.37498l33.109375 0l-89.125 239.37498l-33.109375 0zm208.55942 -192.26561l-29.53125 -35.656254l35.140625 0l27.25 35.656254l-32.859375 0zm111.02817 194.81248l0 -32.09375q15.28125 -3.5625 26.234375 -12.85936q10.953125 -9.296875 16.796875 -23.171875q5.859375 -13.875 5.859375 -30.9375l0 -46.09375q0 -17.578125 -5.859375 -31.578125q-5.84375 -14.0 -16.796875 -23.421875q-10.953125 -9.421875 -26.234375 -13.0l0 -31.312504q25.21875 6.609375 43.296875 20.750004q18.078125 14.140625 27.875 34.125q9.8125 19.984375 9.8125 44.4375l0 46.09375q0 37.171875 -21.140625 63.03125q-21.125 25.843735 -59.84375 36.031235z" fill-rule="nonzero"/><path fill="#351c75" d="m480.21854 569.33026q-27.234375 0 -42.65625 -14.890625q-15.40625 -14.90625 -15.40625 -40.625l0 -132.93753l32.09375 0l0 132.68753q0 13.234375 6.625 20.625q6.625 7.375 19.34375 7.375q12.484375 0 19.234375 -7.375q6.75 -7.390625 6.75 -20.625l0 -132.68753l32.078156 0l0 132.93753q0 25.71875 -15.28125 40.625q-15.2656555 14.890625 -42.78128 14.890625z" fill-rule="nonzero"/><path fill="#351c75" d="m298.1435 900.399l0 -239.375l71.3125 0l0 29.28125l-39.484375 0l0 180.8125l39.484375 0l0 29.28125l-71.3125 0zm182.07504 -25.46875q-10.9375 0 -17.4375 -6.359375q-6.5 -6.375 -6.5 -17.328125q0 -10.953125 6.5 -17.4375q6.5 -6.5 17.4375 -6.5q10.953125 0 17.4375 6.5q6.5 6.484375 6.5 17.4375q0 10.953125 -6.5 17.328125q-6.484375 6.359375 -17.4375 6.359375zm110.77817 25.46875l0 -29.28125l39.46875 0l0 -180.8125l-39.46875 0l0 -29.28125l71.3125 0l0 239.375l-71.3125 0z" fill-rule="nonzero"/><path fill="#000000" fill-opacity="0.0" d="m983.22437 552.2332l641.1338 0l0 141.35431l-641.1338 0z" fill-rule="evenodd"/><path fill="#45818e" d="m1020.89624 659.3257q-5.671875 0 -9.875 -1.765625q-4.203125 -1.78125 -6.6875 -5.015625q-2.484375 -3.25 -2.984375 -7.703125l9.109375 0q0.609375 2.9375 3.296875 4.65625q2.6875 1.71875 7.140625 1.71875l4.265625 0q5.359375 0 8.0 -2.171875q2.640625 -2.1875 2.640625 -5.828125q0 -3.546875 -2.390625 -5.625q-2.375 -2.078125 -7.046875 -2.78125l-7.484375 -1.21875q-8.21875 -1.421875 -12.21875 -5.125q-4.0 -3.703125 -4.0 -10.78125q0 -7.5 4.765625 -11.609375q4.765625 -4.109375 14.28125 -4.109375l3.859375 0q8.0 0 12.859375 3.75q4.859375 3.75 5.875 10.140625l-9.109375 0q-0.609375 -2.640625 -3.046875 -4.203125q-2.4375 -1.578125 -6.578125 -1.578125l-3.859375 0q-5.171875 0 -7.546875 1.9375q-2.375 1.921875 -2.375 5.765625q0 3.453125 2.015625 5.078125q2.03125 1.609375 6.390625 2.3125l7.5 1.21875q9.015625 1.421875 13.109375 5.28125q4.109375 3.84375 4.109375 11.140625q0 7.703125 -4.921875 12.109375q-4.90625 4.40625 -14.828125 4.40625l-4.265625 0zm40.734375 -0.8125l0 -8.3125l19.765625 0l0 -39.109375l-17.234375 0l0 -8.3125l26.34375 0l0 47.421875l18.75 0l0 8.3125l-47.625 0zm23.3125 -65.765625q-3.359375 0 -5.28125 -1.71875q-1.921875 -1.71875 -1.921875 -4.65625q0 -3.046875 1.921875 -4.8125q1.921875 -1.78125 5.28125 -1.78125q3.34375 0 5.265625 1.78125q1.921875 1.765625 1.921875 4.8125q0 2.9375 -1.921875 4.65625q-1.921875 1.71875 -5.265625 1.71875zm35.5625 65.765625l0 -55.734375l8.0 0l0 6.6875l1.828125 0l-1.421875 2.4375q0 -4.65625 2.484375 -7.390625q2.484375 -2.75 6.734375 -2.75q4.671875 0 7.203125 3.453125q2.53125 3.4375 2.53125 9.71875l-2.734375 -5.46875l4.25 0l-1.921875 2.4375q0 -4.65625 2.578125 -7.390625q2.59375 -2.75 6.84375 -2.75q5.265625 0 8.15625 3.953125q2.890625 3.953125 2.890625 10.4375l0 42.359375l-8.40625 0l0 -42.453125q0 -3.453125 -1.46875 -5.375q-1.46875 -1.921875 -4.3125 -1.921875q-2.734375 0 -4.3125 1.875q-1.5625 1.875 -1.5625 5.3125l0 42.5625l-7.296875 0l0 -42.453125q0 -3.546875 -1.578125 -5.421875q-1.5625 -1.875 -4.40625 -1.875q-2.828125 0 -4.25 1.875q-1.421875 1.875 -1.421875 5.3125l0 42.5625l-8.40625 0zm63.4375 18.234375l0 -73.96875l9.109375 0l0 10.640625l1.828125 0l-1.828125 2.125q0 -6.375 4.203125 -10.078125q4.21875 -3.703125 11.109375 -3.703125q8.40625 0 13.421875 5.53125q5.015625 5.515625 5.015625 15.140625l0 16.3125q0 6.390625 -2.28125 11.0625q-2.28125 4.65625 -6.390625 7.1875q-4.09375 2.53125 -9.765625 2.53125q-6.796875 0 -11.0625 -3.75q-4.25 -3.75 -4.25 -10.03125l1.828125 2.125l-2.03125 0l0.203125 12.671875l0 16.203125l-9.109375 0zm21.375 -25.125q5.78125 0 9.0625 -3.4375q3.296875 -3.453125 3.296875 -9.9375l0 -15.203125q0 -6.484375 -3.296875 -9.921875q-3.28125 -3.453125 -9.0625 -3.453125q-5.578125 0 -8.921875 3.546875q-3.34375 3.546875 -3.34375 9.828125l0 15.203125q0 6.28125 3.34375 9.828125q3.34375 3.546875 8.921875 3.546875zm60.5 7.703125q-6.703125 0 -11.5625 -2.53125q-4.859375 -2.53125 -7.546875 -7.34375q-2.6875 -4.8125 -2.6875 -11.40625l0 -14.796875q0 -6.6875 2.6875 -11.4375q2.6875 -4.765625 7.546875 -7.296875q4.859375 -2.546875 11.5625 -2.546875q6.6875 0 11.546875 2.546875q4.859375 2.53125 7.546875 7.296875q2.6875 4.75 2.6875 11.34375l0 14.890625q0 6.59375 -2.6875 11.40625q-2.6875 4.8125 -7.546875 7.34375q-4.859375 2.53125 -11.546875 2.53125zm0 -8.109375q5.96875 0 9.3125 -3.34375q3.34375 -3.34375 3.34375 -9.828125l0 -14.796875q0 -6.484375 -3.34375 -9.828125q-3.34375 -3.34375 -9.3125 -3.34375q-5.890625 0 -9.28125 3.34375q-3.390625 3.34375 -3.390625 9.828125l0 14.796875q0 6.484375 3.390625 9.828125q3.390625 3.34375 9.28125 3.34375zm39.71875 7.296875l0 -55.734375l9.109375 0l0 10.640625l1.921875 0l-1.921875 2.125q0 -6.578125 3.953125 -10.171875q3.953125 -3.609375 10.953125 -3.609375q8.40625 0 13.359375 5.171875q4.96875 5.171875 4.96875 14.09375l0 37.484375l-9.109375 0l0 -36.484375q0 -5.96875 -3.203125 -9.15625q-3.1875 -3.203125 -8.65625 -3.203125q-5.671875 0 -8.96875 3.453125q-3.296875 3.4375 -3.296875 9.921875l0 35.46875l-9.109375 0zm60.078125 0l0 -8.3125l19.765625 0l0 -39.109375l-17.234375 0l0 -8.3125l26.34375 0l0 47.421875l18.75 0l0 8.3125l-47.625 0zm23.3125 -65.765625q-3.359375 0 -5.28125 -1.71875q-1.921875 -1.71875 -1.921875 -4.65625q0 -3.046875 1.921875 -4.8125q1.921875 -1.78125 5.28125 -1.78125q3.34375 0 5.265625 1.78125q1.921875 1.765625 1.921875 4.8125q0 2.9375 -1.921875 4.65625q-1.921875 1.71875 -5.265625 1.71875zm59.671875 66.78125q-6.6875 0 -11.703125 -2.53125q-5.015625 -2.53125 -7.75 -7.34375q-2.734375 -4.8125 -2.734375 -11.40625l0 -15.203125q0 -6.6875 2.734375 -11.4375q2.734375 -4.765625 7.75 -7.296875q5.015625 -2.546875 11.703125 -2.546875q9.640625 0 15.515625 5.171875q5.875 5.171875 6.171875 14.09375l-9.109375 0q-0.3125 -5.375 -3.609375 -8.265625q-3.28125 -2.890625 -8.96875 -2.890625q-5.96875 0 -9.515625 3.40625q-3.546875 3.390625 -3.546875 9.671875l0 15.296875q0 6.28125 3.546875 9.734375q3.546875 3.4375 9.515625 3.4375q5.6875 0 8.96875 -2.9375q3.296875 -2.9375 3.609375 -8.203125l9.109375 0q-0.296875 8.90625 -6.171875 14.078125q-5.875 5.171875 -15.515625 5.171875zm46.21875 -48.125l8.109375 -31.515625l13.171875 0l-13.171875 31.515625l-8.109375 0zm73.25 47.921875q-5.671875 0 -9.875 -1.765625q-4.203125 -1.78125 -6.6875 -5.015625q-2.484375 -3.25 -2.984375 -7.703125l9.109375 0q0.609375 2.9375 3.296875 4.65625q2.6875 1.71875 7.140625 1.71875l4.265625 0q5.359375 0 8.0 -2.171875q2.640625 -2.1875 2.640625 -5.828125q0 -3.546875 -2.390625 -5.625q-2.375 -2.078125 -7.046875 -2.78125l-7.484375 -1.21875q-8.21875 -1.421875 -12.21875 -5.125q-4.0 -3.703125 -4.0 -10.78125q0 -7.5 4.765625 -11.609375q4.765625 -4.109375 14.28125 -4.109375l3.859375 0q8.0 0 12.859375 3.75q4.859375 3.75 5.875 10.140625l-9.109375 0q-0.609375 -2.640625 -3.046875 -4.203125q-2.4375 -1.578125 -6.578125 -1.578125l-3.859375 0q-5.171875 0 -7.546875 1.9375q-2.375 1.921875 -2.375 5.765625q0 3.453125 2.015625 5.078125q2.03125 1.609375 6.390625 2.3125l7.5 1.21875q9.015625 1.421875 13.109375 5.28125q4.109375 3.84375 4.109375 11.140625q0 7.703125 -4.921875 12.109375q-4.90625 4.40625 -14.828125 4.40625l-4.265625 0z" fill-rule="nonzero"/><path fill="#000000" fill-opacity="0.0" d="m1038.4374 695.1458l530.8661 0l0 141.35437l-530.8661 0z" fill-rule="evenodd"/><path fill="#00ff00" d="m1056.0468 794.8321l0 -8.8125l31.421875 -15.390625q1.921875 -0.921875 3.59375 -1.578125q1.671875 -0.65625 2.484375 -0.859375q-0.921875 -0.203125 -2.640625 -0.859375q-1.71875 -0.65625 -3.4375 -1.578125l-31.421875 -15.5l0 -9.125l43.578125 21.796875l0 10.125l-43.578125 21.78125z" fill-rule="nonzero"/><path fill="#93c47d" d="m1199.828 802.44147q-6.6875 0 -11.609375 -2.53125q-4.90625 -2.53125 -7.59375 -7.34375q-2.671875 -4.8125 -2.671875 -11.40625l0 -33.4375q0 -6.6875 2.671875 -11.453125q2.6875 -4.765625 7.59375 -7.296875q4.921875 -2.53125 11.609375 -2.53125q6.6875 0 11.546875 2.59375q4.875 2.578125 7.5 7.34375q2.640625 4.75 2.640625 11.34375l-9.109375 0q0 -6.28125 -3.296875 -9.671875q-3.296875 -3.40625 -9.28125 -3.40625q-5.96875 0 -9.375 3.34375q-3.390625 3.34375 -3.390625 9.625l0 33.546875q0 6.28125 3.390625 9.6875q3.40625 3.390625 9.375 3.390625q5.984375 0 9.28125 -3.390625q3.296875 -3.40625 3.296875 -9.6875l9.109375 0q0 6.484375 -2.640625 11.296875q-2.625 4.8125 -7.5 7.40625q-4.859375 2.578125 -11.546875 2.578125zm39.328125 -1.015625l0 -73.96875l9.109375 0l0 18.234375l0 10.640625l1.921875 0l-1.921875 2.125q0 -6.578125 3.953125 -10.171875q3.953125 -3.609375 10.953125 -3.609375q8.40625 0 13.359375 5.171875q4.96875 5.171875 4.96875 14.09375l0 37.484375l-9.109375 0l0 -36.484375q0 -5.96875 -3.203125 -9.265625q-3.1875 -3.296875 -8.65625 -3.296875q-5.671875 0 -8.96875 3.546875q-3.296875 3.546875 -3.296875 10.03125l0 35.46875l-9.109375 0zm81.875 1.015625q-6.59375 0 -11.515625 -2.625q-4.90625 -2.640625 -7.59375 -7.453125q-2.6875 -4.8125 -2.6875 -11.203125l0 -15.203125q0 -6.484375 2.6875 -11.234375q2.6875 -4.765625 7.59375 -7.40625q4.921875 -2.640625 11.515625 -2.640625q6.578125 0 11.484375 2.640625q4.921875 2.640625 7.609375 7.40625q2.6875 4.75 2.6875 11.234375l0 9.828125l-34.65625 0l0 5.375q0 6.59375 3.34375 10.09375q3.34375 3.484375 9.53125 3.484375q5.265625 0 8.5 -1.875q3.25 -1.875 3.953125 -5.625l9.125 0q-0.921875 7.0 -6.84375 11.109375q-5.921875 4.09375 -14.734375 4.09375zm12.859375 -32.734375l0 -3.75q0 -6.578125 -3.296875 -10.125q-3.28125 -3.546875 -9.5625 -3.546875q-6.1875 0 -9.53125 3.546875q-3.34375 3.546875 -3.34375 10.125l0 2.9375l26.4375 0l-0.703125 0.8125zm48.328125 32.734375q-7.28125 0 -12.5 -2.421875q-5.21875 -2.4375 -8.0625 -7.0q-2.84375 -4.5625 -2.9375 -10.84375l9.125 0q0 5.578125 3.796875 8.828125q3.796875 3.234375 10.578125 3.234375q6.390625 0 9.984375 -3.140625q3.59375 -3.15625 3.59375 -8.71875q0 -4.46875 -2.375 -7.8125q-2.375 -3.34375 -6.84375 -4.65625l-10.03125 -3.140625q-7.59375 -2.328125 -11.703125 -7.796875q-4.09375 -5.46875 -4.09375 -12.875q0 -5.96875 2.671875 -10.375q2.6875 -4.421875 7.546875 -6.890625q4.875 -2.484375 11.453125 -2.484375q9.734375 0 15.609375 5.421875q5.875 5.421875 5.984375 14.4375l-9.125 0q0 -5.484375 -3.296875 -8.5625q-3.28125 -3.09375 -9.265625 -3.09375q-5.875 0 -9.171875 2.84375q-3.296875 2.828125 -3.296875 7.890625q0 4.5625 2.4375 7.90625q2.4375 3.34375 6.984375 4.765625l10.140625 3.234375q7.390625 2.34375 11.4375 7.921875q4.0625 5.5625 4.0625 13.0625q0 6.078125 -2.84375 10.640625q-2.828125 4.5625 -7.953125 7.09375q-5.109375 2.53125 -11.90625 2.53125zm60.796875 0q-7.28125 0 -12.5 -2.421875q-5.21875 -2.4375 -8.0625 -7.0q-2.84375 -4.5625 -2.9375 -10.84375l9.125 0q0 5.578125 3.796875 8.828125q3.796875 3.234375 10.578125 3.234375q6.390625 0 9.984375 -3.140625q3.59375 -3.15625 3.59375 -8.71875q0 -4.46875 -2.375 -7.8125q-2.375 -3.34375 -6.84375 -4.65625l-10.03125 -3.140625q-7.59375 -2.328125 -11.703125 -7.796875q-4.09375 -5.46875 -4.09375 -12.875q0 -5.96875 2.671875 -10.375q2.6875 -4.421875 7.546875 -6.890625q4.875 -2.484375 11.453125 -2.484375q9.734375 0 15.609375 5.421875q5.875 5.421875 5.984375 14.4375l-9.125 0q0 -5.484375 -3.296875 -8.5625q-3.28125 -3.09375 -9.265625 -3.09375q-5.875 0 -9.171875 2.84375q-3.296875 2.828125 -3.296875 7.890625q0 4.5625 2.4375 7.90625q2.4375 3.34375 6.984375 4.765625l10.140625 3.234375q7.390625 2.34375 11.4375 7.921875q4.0625 5.5625 4.0625 13.0625q0 6.078125 -2.84375 10.640625q-2.828125 4.5625 -7.953125 7.09375q-5.109375 2.53125 -11.90625 2.53125zm39.421875 -1.015625l0 -73.96875l9.125 0l0 31.609375l23.703125 0l0 -31.609375l9.125 0l0 73.96875l-9.125 0l0 -34.046875l-23.703125 0l0 34.046875l-9.125 0z" fill-rule="nonzero"/><path fill="#000000" fill-opacity="0.0" d="m1419.4984 160.73735l204.85046 0l0 386.96063l-204.85046 0z" fill-rule="evenodd"/><path fill="#e06666" d="m1440.1547 267.01736l0 -73.968765l9.109375 0l0 65.656265l33.4375 0l0 8.3125l-42.546875 0zm55.21875 10.140625l0 -7.609375l48.640625 0l0 7.609375l-48.640625 0zm80.5625 1.0l0 -95.250015l9.109375 0l0 95.250015l-9.109375 0z" fill-rule="nonzero"/><path fill="#e06666" d="m1519.7015 389.633q-10.34375 0 -15.8125 -5.71875q-5.46875 -5.734375 -5.46875 -15.5625l0 -53.703125l9.109375 0l0 53.703125q0 6.078125 2.984375 9.625q3.0 3.546875 9.1875 3.546875q6.078125 0 9.109375 -3.546875q3.046875 -3.546875 3.046875 -9.625l0 -53.703125l9.109375 0l0 53.703125q0 9.9375 -5.421875 15.609375q-5.421875 5.671875 -15.84375 5.671875z" fill-rule="nonzero"/><path fill="#e06666" d="m1449.264 521.358l0 -95.24997l24.828125 0l0 8.109375l-15.703125 0l0 79.046844l15.703125 0l0 8.09375l-24.828125 0zm48.4375 -11.1405945l3.75 -20.265625l-8.609375 0l0 -6.59375l9.828125 0l3.640625 -20.265625l-9.921875 0l0 -6.578125l11.140625 0l3.75 -20.265625l7.09375 0l-3.75 20.265625l16.21875 0l3.75 -20.265625l7.09375 0l-3.75 20.265625l8.609375 0l0 6.578125l-9.828125 0l-3.640625 20.265625l9.921875 0l0 6.59375l-11.140625 0l-3.75 20.265625l-7.09375 0l3.75 -20.265625l-16.21875 0l-3.75 20.265625l-7.09375 0zm12.0625 -26.859375l16.21875 0l3.640625 -20.265625l-16.21875 0l-3.640625 20.265625zm55.53125 37.99997l0 -8.09375l15.703125 0l0 -79.046844l-15.703125 0l0 -8.109375l24.828125 0l0 95.24997l-24.828125 0z" fill-rule="nonzero"/></g></svg>