From 5229ad12c969169be752bfdd2ef341cd2d52fa6e Mon Sep 17 00:00:00 2001 From: Nick Kosarev Date: Mon, 1 Jul 2024 15:36:22 +0200 Subject: [PATCH] feat: new profile level system (#189) * chore: more localizations * feat: new profile level system * chore: coupons counter on profile page --- package.json | 2 +- src/lib/components/Footer.svelte | 9 +- src/lib/components/Locale.svelte | 1 - src/lib/components/Profile.svelte | 11 +- src/lib/styles/styles.css | 16 ++- src/lib/translations/en.ts | 12 +- src/lib/translations/ru.ts | 12 +- .../[lang]/(website)/coupon/+page.svelte | 24 +--- .../(website)/p/[userName]/+page.server.ts | 2 +- .../(website)/p/[userName]/+page.svelte | 125 +++++++++++++++++- yarn.lock | 8 +- 11 files changed, 178 insertions(+), 44 deletions(-) diff --git a/package.json b/package.json index fc43f0b5..b0cda40b 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,7 @@ "prepare": "husky" }, "dependencies": { - "@hmbanan666/chat-game-api": "^0.1.10", + "@hmbanan666/chat-game-api": "^0.1.11", "@paralleldrive/cuid2": "^2.2.2", "@radix-ui/colors": "^3.0.0", "@twurple/api": "^7.1.0", diff --git a/src/lib/components/Footer.svelte b/src/lib/components/Footer.svelte index 41dba172..b890c7cf 100644 --- a/src/lib/components/Footer.svelte +++ b/src/lib/components/Footer.svelte @@ -1,11 +1,14 @@ diff --git a/yarn.lock b/yarn.lock index 97c7f3f1..d9fa2a0a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -528,10 +528,10 @@ resolved "https://registry.yarnpkg.com/@eslint/object-schema/-/object-schema-2.1.4.tgz#9e69f8bb4031e11df79e03db09f9dbbae1740843" integrity sha512-BsWiH1yFGjXXS2yvrf5LyuoSIIbPrGUWob917o+BTKuZ7qJdxX8aJLRxs1fS9n6r7vESrq1OUqb68dANcFXuQQ== -"@hmbanan666/chat-game-api@^0.1.10": - version "0.1.10" - resolved "https://registry.yarnpkg.com/@hmbanan666/chat-game-api/-/chat-game-api-0.1.10.tgz#e705817c6f2b05d69eba60b8a421cabb01acbde6" - integrity sha512-NzC1SdBKQ2EZwQtlWPTdTaZR7ouJza8O1uGbQ2xAytWrFVObAYVWmjsi8vUGmURV/qnRJMukjvUN5z3uvvYcCw== +"@hmbanan666/chat-game-api@^0.1.11": + version "0.1.11" + resolved "https://registry.yarnpkg.com/@hmbanan666/chat-game-api/-/chat-game-api-0.1.11.tgz#d36688183ad7a5eed608207b25f7d9dba3e394bb" + integrity sha512-UM62ByzVA86Tz/qApoAV9+sGWyXym4xNz/h2zdC310Gk+r8gi8eT2DeFCT3fi96zbpzXMGID4/n4xhEalHnfNw== "@humanwhocodes/module-importer@^1.0.1": version "1.0.1"