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

Show Bedrock IP button on welcome page #399

Closed
wants to merge 1 commit into from

Conversation

Xinecraft
Copy link
Member

@Xinecraft Xinecraft commented Oct 26, 2024

Fixes #398

Add a button to display and copy the Bedrock IP:Port on the welcome page.

  • Add a new nullable string property bedrock_ip_port to the GeneralSettings class in app/Settings/GeneralSettings.php.
  • Update the home method in app/Http/Controllers/HomeController.php to include bedrock_ip_port in the data passed to the view.
  • Modify resources/default/js/Pages/Welcome.vue to include a button for Bedrock IP:Port and a method to copy it to the clipboard.
  • Update resources/default/js/Shared/WelcomeBox.vue to display the Bedrock IP:Port button if bedrock_ip_port is set and add a method to copy it to the clipboard.

For more details, open the Copilot Workspace session.

Fixes #398

Add a button to display and copy the Bedrock IP:Port on the welcome page.

* Add a new nullable string property `bedrock_ip_port` to the `GeneralSettings` class in `app/Settings/GeneralSettings.php`.
* Update the `home` method in `app/Http/Controllers/HomeController.php` to include `bedrock_ip_port` in the data passed to the view.
* Modify `resources/default/js/Pages/Welcome.vue` to include a button for Bedrock IP:Port and a method to copy it to the clipboard.
* Update `resources/default/js/Shared/WelcomeBox.vue` to display the Bedrock IP:Port button if `bedrock_ip_port` is set and add a method to copy it to the clipboard.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/MineTrax/minetrax/issues/398?shareId=XXXX-XXXX-XXXX-XXXX).
Copy link

what-the-diff bot commented Oct 26, 2024

PR Summary

  • Updated GeneralSettings for new property
    A new feature has been added to the GeneralSettings section with the property name 'bedrock_ip_port'. This allows for additional functionality and customization in the settings area.

  • HomeController updated with bedrockIpPort feature
    The home method in the HomeController has been updated to include 'bedrockIpPort' in the response. This means when you land on the home section, the 'bedrockIpPort' details are now included.

  • New section in Welcome.vue for bedrockIpPort
    There's a new section in the Welcome.vue page to display 'bedrockIpPort'. This section also features a copy-to-clipboard button for ease of use and quick access to these details.

  • New feature in WelcomeBox.vue for bedrockIpPort
    The WelcomeBox.vue section now includes a button that allows you to copy the 'bedrockIpPort' information. This provides another access point for this detail from within this component.

@Xinecraft Xinecraft closed this Oct 26, 2024
@Xinecraft Xinecraft deleted the Xinecraft/add-bedrock-ip-button-ai-testing branch October 26, 2024 12:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Show Bedrock IP too in join server sections
1 participant