From 4d4601ecb516b547e58419ddd7d5d3eaad3552c6 Mon Sep 17 00:00:00 2001 From: glpshchn <464976@niuitmo.ru> Date: Tue, 4 Nov 2025 01:19:27 +0300 Subject: [PATCH] Update files --- frontend/src/pages/Search.jsx | 66 ++++++++++++++++++----------------- πŸ”§_SYNTAX_FIX.txt | 35 +++++++++++++++++++ 2 files changed, 69 insertions(+), 32 deletions(-) create mode 100644 πŸ”§_SYNTAX_FIX.txt diff --git a/frontend/src/pages/Search.jsx b/frontend/src/pages/Search.jsx index 9bf7876..ef42aa4 100644 --- a/frontend/src/pages/Search.jsx +++ b/frontend/src/pages/Search.jsx @@ -371,40 +371,42 @@ export default function Search({ user }) { Π˜ΡΠΏΠΎΠ»ΡŒΠ·ΡƒΠΉΡ‚Π΅ e621 ΠΈ gelbooru ) : ( -
- {results.map((item, index) => { - const imageId = `${item.source}-${item.id}` - const isSelected = selectedImages.includes(imageId) - - return ( -
openViewer(index)} - > - {`Result -
- {item.source} - {item.rating} -
- {selectionMode && ( -
- {isSelected && βœ“} + <> +
+ {results.map((item, index) => { + const imageId = `${item.source}-${item.id}` + const isSelected = selectedImages.includes(imageId) + + return ( +
openViewer(index)} + > + {`Result +
+ {item.source} + {item.rating}
- )} -
- ) - })} -
- - {/* Кнопка ΠΎΡ‚ΠΏΡ€Π°Π²ΠΊΠΈ Π²Ρ‹Π±Ρ€Π°Π½Π½Ρ‹Ρ… */} - {selectionMode && selectedImages.length > 0 && ( -
- + {selectionMode && ( +
+ {isSelected && βœ“} +
+ )} +
+ ) + })}
- )} + + {/* Кнопка ΠΎΡ‚ΠΏΡ€Π°Π²ΠΊΠΈ Π²Ρ‹Π±Ρ€Π°Π½Π½Ρ‹Ρ… */} + {selectionMode && selectedImages.length > 0 && ( +
+ +
+ )} + )}
diff --git a/πŸ”§_SYNTAX_FIX.txt b/πŸ”§_SYNTAX_FIX.txt new file mode 100644 index 0000000..cf4e9c0 --- /dev/null +++ b/πŸ”§_SYNTAX_FIX.txt @@ -0,0 +1,35 @@ +╔═══════════════════════════════════════════════════════════════════════╗ +β•‘ β•‘ +β•‘ πŸ”§ Π˜Π‘ΠŸΠ ΠΠ’Π›Π•ΠΠ Π‘Π˜ΠΠ’ΠΠšΠ‘Π˜Π§Π•Π‘ΠšΠΠ― ΠžΠ¨Π˜Π‘ΠšΠ πŸ”§ β•‘ +β•‘ β•‘ +β•šβ•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β• + + +ΠŸΠ ΠžΠ‘Π›Π•ΠœΠ: +━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ + +Expected ")" but found "{" +β†’ НС Ρ…Π²Π°Ρ‚Π°Π»ΠΎ React Fragment (<>) для Π½Π΅ΡΠΊΠΎΠ»ΡŒΠΊΠΈΡ… элСмСнтов + + +Π˜Π‘ΠŸΠ ΠΠ’Π›Π•ΠΠž: +━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ + +ΠžΠ±Π΅Ρ€Π½ΡƒΠ» Π² <> ... Π΄Π²Π° элСмСнта: + β€’ results-grid + β€’ send-selected-bar + + +ΠžΠ‘ΠΠžΠ’Π˜Π’Π¬ (1 Ρ„Π°ΠΉΠ»): +━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ + +cd /Users/glpshchn/Desktop/nakama + +scp frontend/src/pages/Search.jsx root@ваш_IP:/var/www/nakama/frontend/src/pages/ + + +ssh root@ваш_IP "cd /var/www/nakama/frontend && npm run build" + + +30 сСкунд +