Skip to content

Conversation

RSamaium
Copy link
Owner

@RSamaium RSamaium commented Jul 3, 2025

Introduce @rpgjs/vue package to enable Vue.js GUI components with full engine service injection, separating them from CanvasEngine components.

This PR formalizes the separation of GUI frameworks within RPGJS. The main RpgGui now exclusively handles CanvasEngine components, while @rpgjs/vue provides a dedicated, fully integrated solution for Vue.js, including a robust dependency injection system for all core RPGJS services, making it easier to build complex and reactive UIs.

cursoragent and others added 7 commits July 3, 2025 06:56
- Added `rxjs` as a dependency in the Vue package.
- Updated the `packages/vue/package.json` to include new dependencies.
- Removed outdated example files related to Vue integration.
- Enhanced the configuration for Vue components in the RPGJS framework.
- Improved the overall structure of the Vue integration for better maintainability.
- Updated the `RpgClient` interface to allow for a more flexible `gui` property, supporting both structured and any type.
- Refactored `RpgClientEngine` to streamline hook subscriptions during initialization.
- Improved the `provideVueGui` function to utilize a module creation pattern for better organization.
- Added a `mount` method in `VueGui` for improved component lifecycle management.
- Updated sample configurations to reflect the new Vue integration structure.
- Deleted `vue-injections-summary.md`, `vue-package-di-summary.md`, and `vue-package-summary.md` as part of the cleanup process.
- These files contained detailed documentation on Vue injections and package structure, which are no longer needed.
- This change helps streamline the documentation and focuses on the essential components of the project.
- Added functionality to assign the GUI instance to the component in RpgGui, improving component management.
- Updated the example Vue component to use a more descriptive name for the rpgGuiClose method, enhancing clarity in the code.
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.

2 participants