From 6de540b3740a27976c6689ec257d7ae70cd71995 Mon Sep 17 00:00:00 2001 From: JuanMarchetto Date: Fri, 9 Jun 2023 16:21:43 -0300 Subject: [PATCH 1/2] fix --- ui/pages/egg.tsx | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/ui/pages/egg.tsx b/ui/pages/egg.tsx index be433fc..3eccf81 100644 --- a/ui/pages/egg.tsx +++ b/ui/pages/egg.tsx @@ -20,10 +20,10 @@ export default function Egg() { ...bubbles.map((bubble) => { return { ...bubble, - y: bubble.y - Math.random() * Math.sqrt(count ? count * 2 : 2), + y: bubble.y - Math.random() * Math.log(Math.max(count, 20)), }; }), - ...(Math.sqrt(count ? count : 2) > Math.random() * 10 + ...(Math.random() * Math.log(Math.max(count, 15)) > 2 ? [ { x: Math.random() * 100, @@ -42,13 +42,9 @@ export default function Egg() {

{count}

@@ -56,16 +52,14 @@ export default function Egg() { bubbles?.map((bubble) => (
{ setBubbles( - bubbles.filter((b) => { - return b.timestamp !== bubble.timestamp; - }) + bubbles.filter((b) => b.timestamp !== bubble.timestamp) ); setCount(count + 1); }} From d11e75247a6457b4a61abd5dbfc419c41a7bcfd2 Mon Sep 17 00:00:00 2001 From: Marche Date: Sun, 11 Jun 2023 07:26:22 -0300 Subject: [PATCH 2/2] Update tauri.conf.json --- ui/src-tauri/tauri.conf.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/src-tauri/tauri.conf.json b/ui/src-tauri/tauri.conf.json index b9d0d34..611a1bb 100644 --- a/ui/src-tauri/tauri.conf.json +++ b/ui/src-tauri/tauri.conf.json @@ -7,7 +7,7 @@ }, "package": { "productName": "soda", - "version": "0.0.4" + "version": "0.0.5" }, "tauri": { "allowlist": { @@ -82,4 +82,4 @@ } ] } -} \ No newline at end of file +}