Skip to content

Commit

Permalink
docs: plugin system docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Novout committed Nov 8, 2022
1 parent ef0cbaa commit b24823d
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
Binary file added .github/callspluginsystem.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .github/plugincontext.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions PLUGIN_SYSTEM.md
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.

0 comments on commit b24823d

Please sign in to comment.