Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modal popup design for Training > Endgame Skills #19

Closed
programarivm opened this issue Feb 20, 2024 · 6 comments · Fixed by #251
Closed

Modal popup design for Training > Endgame Skills #19

programarivm opened this issue Feb 20, 2024 · 6 comments · Fixed by #251
Assignees
Labels
good first issue Good for newcomers

Comments

@programarivm
Copy link
Member

programarivm commented Feb 20, 2024

A modal popup needs to open by clicking on Training > Endgame Skills similar to the SPA version.

figure_01
Figure 1. Click on Training > Endgame Skills.

figure_02
Figure 2. Click on the Endgame field.

This modal is to be implemented using Bootstrap's JavaScript modal plugin. No additional programming is required to close this issue — just display the modal popup, it's a really good first issue to get familiar with the codebase!

Keep it up, and happy coding.

@programarivm programarivm added the good first issue Good for newcomers label Feb 20, 2024
@programarivm programarivm closed this as not planned Won't fix, can't repro, duplicate, stale Feb 29, 2024
@programarivm programarivm reopened this Mar 6, 2024
@replyre
Copy link

replyre commented Apr 24, 2024

hello :) is this issue still open ?

@programarivm
Copy link
Member Author

programarivm commented Apr 24, 2024

@replyre, welcome to ChesslaBlab.

Thank you for joining the community.

Please make sure to read the Contributing Guidelines.

I can't wait to see what you come up with!

@replyre
Copy link

replyre commented Apr 24, 2024

Sure!

@programarivm programarivm pinned this issue Apr 24, 2024
@programarivm programarivm unpinned this issue May 2, 2024
@programarivm
Copy link
Member Author

👋 Hey @replyre, how are things going? Could you set up the website on your localhost?

@replyre
Copy link

replyre commented May 7, 2024

hello @programarivm, I downloaded and set everything up and launched the localhost using the php server command :

php -S localhost:8000 -t public

but I getting a websocket error :

image

would appreciate any help.

@programarivm
Copy link
Member Author

programarivm commented May 8, 2024

Well, if I had to guess, I would say that the chess server probably is not up and running because the SSL certificate has not been installed yet.

php cli/workerman/wss.php start
Welcome to PHP Chess Server
Commands available:
/accept {"jwt":"<string>"} Accepts an invitation to play online with an opponent.
/draw {"action":["accept","decline","propose"]} Allows to offer a draw.
/heuristics {"fen":"<string>","variant":"<string>"} Returns the heuristics of a chess position.
/leave {"action":["accept"]} Allows to leave a game.
/legal {"position":"<string>"} Returns the legal FEN positions of a piece.
/online_games Returns the online games waiting to be accepted.
/play_lan {"color":"<string>","lan":"<string>"} Plays a chess move in long algebraic notation.
/randomizer {"turn":"<string>","items":"<string>"} Starts a random position.
/rematch {"action":["accept","decline","propose"]} Allows to offer a rematch.
/resign {"action":["accept"]} Allows to resign a game.
/restart {"hash":"<string>"} Restarts a game.
/start {"variant":["960","capablanca","capablanca-fischer","classical"],"mode":["fen","san","play","stockfish"],"settings":{"color":["w","b"],"fen":"<string>","movetext":"<string>","settings":"<string>","startPos":"<string>"}} Starts a new game.
/stockfish {"options":{"Skill Level":"int"},"params":{"depth":"int"}} Returns Stockfish's response to the current position.
/takeback {"action":["accept","decline","propose"]} Allows to takeback a move.
/tutor_fen {"fen":"<string>","variant":"<string>"} Explains a FEN position in terms of chess concepts.
/undo Undoes the last move.

Listening to commands...
Workerman[cli/workerman/wss.php] start in DEBUG mode
-------------------------------------------------------------- WORKERMAN --------------------------------------------------------------
Workerman version:4.1.15          PHP version:8.3.2-1+0~20240120.16+debian11~1.gbpb43448           Event-Loop:\Workerman\Events\Select
--------------------------------------------------------------- WORKERS ---------------------------------------------------------------
proto   user            worker          listen                      processes    status           
ssl     standard        none            websocket://0.0.0.0:8443    1             [OK]            
---------------------------------------------------------------------------------------------------------------------------------------
Press Ctrl+C to stop. Start success.

I created the SSL certificate using DNS validation on an Ubuntu AWS instance with Certbot. By the way, some Certbot documentation recommends to have a working web site that can already be accessed using HTTP on port 80 for the certificates to be issued. Alternatively a self-signed SSL certificate can be created for development purposes using OpenSSL.

See #20

Keep it up,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants