From 434a288e56a9f7873109823d9944b157e767bc1f Mon Sep 17 00:00:00 2001 From: WalidMoovin Date: Wed, 15 Feb 2023 19:54:41 +0100 Subject: [PATCH] play done, some code clearing --- package-lock.json | 77 +++++++++++++++++++++++++- package.json | 3 +- public/img/pong.png | Bin 0 -> 1434 bytes src/App.svelte | 2 + src/components/Friends.svelte | 2 +- src/components/MatchHistory.svelte | 2 +- src/components/NavBar.svelte | 85 ++++++++++++++--------------- src/components/Play.svelte | 37 +++++++++++++ src/components/Profile.svelte | 2 +- src/components/Spectate.svelte | 2 +- 10 files changed, 162 insertions(+), 50 deletions(-) create mode 100644 public/img/pong.png create mode 100644 src/components/Play.svelte diff --git a/package-lock.json b/package-lock.json index 4f7bb91..a9613de 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,7 +8,8 @@ "name": "svelte-app", "version": "1.0.0", "dependencies": { - "sirv-cli": "^2.0.0" + "sirv-cli": "^2.0.0", + "svelte-routing": "^1.6.0" }, "devDependencies": { "@rollup/plugin-commonjs": "^17.0.0", @@ -385,6 +386,11 @@ "node": ">=4" } }, + "node_modules/dedent-js": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/dedent-js/-/dedent-js-1.0.1.tgz", + "integrity": "sha512-OUepMozQULMLUmhxS95Vudo0jb0UchLimi3+pQ2plj61Fcy8axbP9hbiD4Sz6DPqn6XG3kfmziVfQ1rSys5AJQ==" + }, "node_modules/deepmerge": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.0.tgz", @@ -674,6 +680,14 @@ "node": ">=6" } }, + "node_modules/lower-case": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/lower-case/-/lower-case-2.0.2.tgz", + "integrity": "sha512-7fm3l3NAF9WfN6W3JOmf5drwpVqX78JtoGJ3A6W0a6ZnldM41w2fV5D490psKFTpMds8TJse/eHLFFsNHHjHgg==", + "dependencies": { + "tslib": "^2.0.3" + } + }, "node_modules/magic-string": { "version": "0.25.9", "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.25.9.tgz", @@ -717,6 +731,15 @@ "node": ">=10" } }, + "node_modules/no-case": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/no-case/-/no-case-3.0.4.tgz", + "integrity": "sha512-fgAN3jGAh+RoxUGZHTSOLJIqUc2wmoBwGR4tbpNAKmmovFoWq0OdRkb0VkldReO2a2iBT/OEulG9XSUc10r3zg==", + "dependencies": { + "lower-case": "^2.0.2", + "tslib": "^2.0.3" + } + }, "node_modules/normalize-path": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", @@ -741,6 +764,15 @@ "integrity": "sha512-k41FwbcLnlgnFh69f4qdUfvDQ+5vaSDnVPFI/y5XuhKRq97EnVVneO9F1ESVCdiVu4fCS2L8usX3mU331hB7pg==", "dev": true }, + "node_modules/pascal-case": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/pascal-case/-/pascal-case-3.1.2.tgz", + "integrity": "sha512-uWlGT3YSnK9x3BQJaOdcZwrnV6hPpd8jFH1/ucpiLRPh/2zCVJKS19E4GvYHvaCcACn3foXZ0cLB9Wrx1KGe5g==", + "dependencies": { + "no-case": "^3.0.4", + "tslib": "^2.0.3" + } + }, "node_modules/path-is-absolute": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", @@ -1042,11 +1074,34 @@ "version": "3.55.1", "resolved": "https://registry.npmjs.org/svelte/-/svelte-3.55.1.tgz", "integrity": "sha512-S+87/P0Ve67HxKkEV23iCdAh/SX1xiSfjF1HOglno/YTbSTW7RniICMCofWGdJJbdjw3S+0PfFb1JtGfTXE0oQ==", - "dev": true, "engines": { "node": ">= 8" } }, + "node_modules/svelte-routing": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/svelte-routing/-/svelte-routing-1.6.0.tgz", + "integrity": "sha512-+DbrSGttLA6lan7oWFz1MjyGabdn3tPRqn8Osyc471ut2UgCrzM5x1qViNMc2gahOP6fKbKK1aNtZMJEQP2vHQ==", + "dependencies": { + "svelte2tsx": "^0.1.157" + }, + "peerDependencies": { + "svelte": "^3.20.x" + } + }, + "node_modules/svelte2tsx": { + "version": "0.1.193", + "resolved": "https://registry.npmjs.org/svelte2tsx/-/svelte2tsx-0.1.193.tgz", + "integrity": "sha512-vzy4YQNYDnoqp2iZPnJy7kpPAY6y121L0HKrSBjU/IWW7DQ6T7RMJed2VVHFmVYm0zAGYMDl9urPc6R4DDUyhg==", + "dependencies": { + "dedent-js": "^1.0.1", + "pascal-case": "^3.1.1" + }, + "peerDependencies": { + "svelte": "^3.24", + "typescript": "^4.1.2" + } + }, "node_modules/terser": { "version": "5.16.3", "resolved": "https://registry.npmjs.org/terser/-/terser-5.16.3.tgz", @@ -1093,6 +1148,24 @@ "node": ">=6" } }, + "node_modules/tslib": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.0.tgz", + "integrity": "sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg==" + }, + "node_modules/typescript": { + "version": "4.9.5", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.5.tgz", + "integrity": "sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==", + "peer": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=4.2.0" + } + }, "node_modules/wrappy": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", diff --git a/package.json b/package.json index 490c9d0..e6549c7 100644 --- a/package.json +++ b/package.json @@ -19,6 +19,7 @@ "svelte": "^3.0.0" }, "dependencies": { - "sirv-cli": "^2.0.0" + "sirv-cli": "^2.0.0", + "svelte-routing": "^1.6.0" } } diff --git a/public/img/pong.png b/public/img/pong.png new file mode 100644 index 0000000000000000000000000000000000000000..72657d30758e979c333b75f07c425c8d50ba4798 GIT binary patch literal 1434 zcmaKscTm%J7{3zMiZcnBR~x^fS86T8kX!KA`n2v2{-}> zs6b>y2!uwEOBD?uB0-TM5sjFlGGxd|SP5x**WUFHuXpeJJa_Ni`}ymA-W(4%M@0n< z1pt7evy=UCnG61INKU5mVMr&LaXnl;9b_(*l~mf*)y3!Y#bPmuMCut=?tQO80-&<8 z@;v}J9BxY@?cxLB`pBkuZb8U?Jr(mx1`s$L0pKwJi2y_cPyoOZ0CoVB01y@y<_EwU z0PO%cIy%zn^!fRDBobLxR^|o(7K^pCw0r{qlgaGw@4qNR0T2}x6$Ai}$CF4z?`Mm& z0Wbjo4nSaF;1|&|(K>(VBLN136%-V_nYq*e02zR}6($M*6bkj^o$2UgQjJTW7699F zobAz`3FUMA6uTQ9YCY#1Xfzi7ZX@-`y%s&4qycUt{G|TSgq){Y z@gg$4=KA6L#bsNSge5vtFI0^_dDN}K=X*sz-e;P1QI_R{_GWXZWQ_xgNjO5r#IEw; zGZ4Xe&Y3l`M5(zhLX5Sz`b^~yYTNto>)8VvylF?=4)yNPl^|$3l$DIa3;C1|ngNQY zd{}jCDcXJ6S3a-%xAuT?y_AyDFLA2G%7fyR_|;8eE7xZYuf9quW=1x(w9D%X{@qs@ zRK{$eoou1$|3JS!%!-Rv9X78x+(XtE#M;!gJ};fPcO}x+BcU$(Qv!Og2Bp;LYT;{Z z>}GA#u{p753S>I}!N}aJWrkM2Ib-7cVocQ=oYTA_NVz(T;_=Gm{k&m^G zw$!RT2HE7@$i4<=$;G$bS^G0BZ+X2;itr2^I&WyT^DRHtig2wbTm|zqsLm3r0t;VH zrWOm?wG%%rk8Z_|8~D4iS6jaDIvP@@8M~$0X>7L5ke+8iqREP#D}xs^8#eO{)14xz z|0DaM#qnJJy(99rN%?BXw@YS;r(<-jmQ0LuH1k&5P6})&%ZLD;E=2_cRYo8n1N8l7 zJ7_m7E1>w$uH3E($jg=T_-BZZSV{L_nQ_FWwoH=1Z)ZBEut@2{_C*SPFzMzmG*$Xd zYyi6Cm3q)NUCJ4#t!e=UmuzMmY`O2jjI5v1)pecU%vRnJE`g3|#orDQ;JWAMCAY>_ zTg8i8adBD$uiLVp%8@qqu;`i@qmJW2g-E0PMU5XJoFd1GXz5OQ_Mlc0iZPE9X7ZH(x!uMCHQKUzqYA>R3Lt>y`Xr|Dc-$+8i#}2gi3^3k= zlM%tmPl9d{LxOlB|Eg$x9}I?lqDkMSi??t8qAC({Ly&-wkh(dhwCB z;k$w7z6qNa)6}K`-nxIi=a$XJmX6XX`r>u&?2Vc+bs8#)OU(>2H#2`Yzm^&870W(K z-ZaWABEq~3`G@4|J|NW4C4zsX_w;!NXWdKFUC=&kn0e60u&OZf>nHwyVYt {/if} + \ No newline at end of file diff --git a/src/components/Profile.svelte b/src/components/Profile.svelte index f15e2ba..4d11c61 100644 --- a/src/components/Profile.svelte +++ b/src/components/Profile.svelte @@ -11,7 +11,7 @@
-
+
Profile Icon

{username}

diff --git a/src/components/Spectate.svelte b/src/components/Spectate.svelte index 5094dde..072c25c 100644 --- a/src/components/Spectate.svelte +++ b/src/components/Spectate.svelte @@ -4,7 +4,7 @@
-
+
{#if spectate.length > 0} {#each spectate.slice(0, 10) as spectate}