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

Embedded javascript plugins #1393

Merged
merged 9 commits into from
May 26, 2021
Merged

Conversation

WithoutPants
Copy link
Collaborator

Adds support for javascript plugins via otto.

A plugin is marked as javascript by setting the interface field to js.

Javascript plugins are executed completely within the app, meaning that we don't need to use external binaries etc.

A rudimentary starter API is provided:

  • gql provides Do to make graphql queries/mutations
  • log provides methods to log and communicate progress
  • util provides Sleep which sleeps for the provided number of milliseconds

An example implementation of the Hawwwwt plugin is provided.

@WithoutPants WithoutPants added the feature Pull requests that add a new feature label May 16, 2021
@WithoutPants WithoutPants added this to the Version 0.8.0 milestone May 16, 2021
@WithoutPants WithoutPants merged commit 9b57fbb into stashapp:develop May 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Pull requests that add a new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants