Commit Graph

66 Commits

Author SHA1 Message Date
Gordon Goldbach 5537c40628 Migrate from framer-motion to motion
Migrate from `framer-motion` to `motion` as the animation library.

* **BounceImg Component**
  - Replace `framer-motion` import with `motion` from `motion` library.
  - Update `motion.img` usage to use `motion` from `motion` library.

* **Feed Component**
  - Replace `framer-motion` import with `motion` from `motion` library.
  - Update `motion.div` and `AnimatePresence` usage to use `motion` from `motion` library.

* **FeedItem Component**
  - Replace `framer-motion` import with `motion` from `motion` library.

* **Main File**
  - Replace `framer-motion` import with `motion` from `motion` library.
  - Update `AnimatePresence` usage to use `motion` from `motion` library.

* **Shell Component**
  - Replace `framer-motion` import with `motion` from `motion` library.
  - Update `motion.div` usage to use `motion` from `motion` library.

* **Home Component**
  - Replace `framer-motion` import with `motion` from `motion` library.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/MasterGordon/minesweeper?shareId=XXXX-XXXX-XXXX-XXXX).
2024-11-17 02:10:23 +01:00
MasterGordon b095512249 fixed settings toggles 2024-10-27 19:19:07 +01:00
MasterGordon 6bd39ccd2d added animation toggle 2024-10-27 19:13:41 +01:00
MasterGordon 9a5ee93c4b updated game performance 2024-10-27 19:02:07 +01:00
MasterGordon bd9d63958c added helloween lootbox 2024-10-19 23:39:42 +02:00
CutieCat2804 66ebbbb2de add halloween lootbox / fix thresh theme 2024-10-19 18:54:49 +02:00
CutieCat2804 d1dae6aba9 Merge branch 'main' of https://github.com/MasterGordon/minesweeper into main 2024-10-19 17:25:01 +02:00
CutieCat2804 6c52725272 fix special tiles / wip add halloween themes 2024-10-19 17:24:38 +02:00
MasterGordon ea3a3dd46f improved rng 2024-10-18 18:17:30 +02:00
MasterGordon d1c7d4d0da fixed rng 2024-10-18 18:12:02 +02:00
CutieCat2804 42ad2204f7 add special tiles 2024-10-18 18:03:47 +02:00
MasterGordon da17a58998 Merge branch 'main' of github.com:MasterGordon/minesweeper 2024-10-18 17:32:32 +02:00
MasterGordon 516e4f64f0 fixed build 2024-10-18 17:32:28 +02:00
CutieCat2804 6e638b727f 2 with hat 2024-10-18 17:29:32 +02:00
CutieCat2804 a5f9ba865d Merge branch 'main' of https://github.com/MasterGordon/minesweeper into main 2024-10-18 17:21:50 +02:00
CutieCat2804 6bc55a3ae7 2 2024-10-18 17:21:48 +02:00
MasterGordon d26f08cd21 added type imports 2024-10-18 17:16:52 +02:00
MasterGordon 2d7e06305c Merge branch 'main' of github.com:MasterGordon/minesweeper 2024-10-18 17:13:42 +02:00
MasterGordon 87e9238923 added helpers 2024-10-18 17:13:36 +02:00
CutieCat2804 2efb88787f Merge branch 'main' of https://github.com/MasterGordon/minesweeper into main 2024-10-18 17:09:56 +02:00
CutieCat2804 ff649e8e0f fix league numbers 2024-10-18 17:09:55 +02:00
MasterGordon 1296848339 added theme weights 2024-10-18 17:09:41 +02:00
Gordon Goldbach b15a32037f Add websocket reconnection and re-authentication
Add auto reconnection and re-authentication logic to `wsClient`.

* **WebSocket Connection and Reconnection:**
  - Modify `createWSClient` to include reconnection logic.
  - Add `connect` function to handle WebSocket connection and reconnection attempts.
  - Set `reconnectAttempts` and `maxReconnectAttempts` to manage reconnection attempts.
  - Implement exponential backoff for reconnection attempts.
  - Log error when maximum reconnection attempts are reached.

* **Authentication:**
  - Add logic to re-authenticate using a token stored in `localStorage` upon WebSocket connection.
  - Set `isAuthenticated` flag based on re-authentication success.
  - Log error if re-authentication fails.

* **Error Handling:**
  - Add `onerror` event handler to log WebSocket errors and close the connection.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/MasterGordon/minesweeper/tree/v2?shareId=XXXX-XXXX-XXXX-XXXX).
2024-10-17 20:02:26 +02:00
MasterGordon bc768274dc added bouncy image 2024-10-17 19:58:10 +02:00
MasterGordon 8f9a71c636 fixed theme preview 2024-10-17 00:43:43 +02:00
CutieCat2804 4c3bbc4697 add stage and bombs to window mode 2024-10-16 20:23:07 +02:00
CutieCat2804 2d7a6fc848 add restart button to window mode 2024-10-16 20:11:08 +02:00
MasterGordon 5f9bf142b2 updated math 2024-10-16 00:06:12 +02:00
MasterGordon 72150b070d adjusted gem rewards 2024-10-15 23:58:10 +02:00
MasterGordon 10c64268c8 fixed limit 2024-10-15 22:20:58 +02:00
MasterGordon 157e4768f3 added cases 2024-10-15 21:06:36 +02:00
MasterGordon 5e30cee6ca added store route 2024-10-13 23:40:26 +02:00
MasterGordon 3a14766563 fixed build 2024-10-13 21:37:40 +02:00
MasterGordon ebbc8d0f29 updated themes, added gem gain, added feed 2024-10-13 21:23:31 +02:00
CutieCat2804 d9ff1a9ffc add tags / fix them name 2024-10-13 15:05:44 +02:00
CutieCat2804 ec0025b71d theme fixes 2024-10-13 14:53:23 +02:00
CutieCat2804 e134ad967f add color palette themes 2024-10-13 12:07:11 +02:00
CutieCat2804 aab7e7de4e add themes to collection 2024-10-12 14:45:08 +02:00
MasterGordon 3e0ace5230 added collection 2024-10-12 14:17:05 +02:00
MasterGordon 538750b691 allow showing past game 2024-10-12 01:23:15 +02:00
MasterGordon ac9543267a Merge branch 'v2' of github.com:MasterGordon/minesweeper into v2 2024-10-12 00:52:25 +02:00
MasterGordon 5e259d73e8 added match history and improved stats 2024-10-12 00:52:20 +02:00
MasterGordon a2d2cf1710 added stage display 2024-10-11 01:10:50 +02:00
CutieCat2804 eee1ddba72 add underwater/insect/MLG themes 2024-10-10 20:52:32 +02:00
CutieCat2804 d035775a54 add color/poop theme package 2024-10-07 18:45:20 +02:00
CutieCat2804 323c44ee00 add farm theme 2024-10-06 12:56:34 +02:00
CutieCat2804 881d40a642 add theme package 3 2024-10-05 15:06:12 +02:00
CutieCat2804 00ab56ac92 add theme package two 2024-10-03 16:19:54 +02:00
CutieCat2804 184104b440 add theme package one 2024-10-03 13:50:04 +02:00
MasterGordon 576416e905 fixed login 2024-09-30 22:13:47 +02:00