-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
21 additions
and
0 deletions.
There are no files selected for viewing
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Plugin System | ||
|
||
The plugin system was built to suit the project's monorepo structure, allowing other packages to interact with the main application context (better-write-app). | ||
|
||
The system consists of: | ||
|
||
- Two vue hooks that are part of the global configuration of the vue context; | ||
|
||
- Two own hooks to provide access to the main instance, internal hooks and reactive stores; | ||
|
||
- Call system for packages derived from the plugin to have access to interactions (not only from the application, but also from the user) and create their own context in order to improve the intermediation of packages; | ||
|
||
- Listening system to perform a specific action or provide a direct interaction between packets (used mainly for emitting button events). | ||
|
||
![Plugin System](./.github/plugincontext.png) | ||
|
||
![Calls System](./.github/callspluginsystem.png) | ||
|
||
> For convenience, packages that depend on the plugin system are defined with prefix `better-write-plugin` | ||
> The plugin system is not designed to build plugins outside of the repository. |