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

Plugin config #80

Merged
merged 20 commits into from
Nov 2, 2021
Merged

Plugin config #80

merged 20 commits into from
Nov 2, 2021

Conversation

alexanderson1993
Copy link
Member

@alexanderson1993 alexanderson1993 commented Oct 30, 2021

Description

Depends on #71, #76, #72. Don't merge until those are merged.

Begin storing data as YAML, to make it easier to edit by hand.

Refactor the db-fs package to use class inheritance rather than wrapping objects.
This provides a neater experience, with fewer hacks for the end user,
although the implementation itself is full of hacks ;)

Created a function that can check existing names to make sure names
aren't being duplicated. This makes it possible to use names as IDs
while still keeping them unique.

Add a Snapshot button to the development version of the app. This
serves as the save button, which makes it so you can restart the server
to get it back to an expected state, but click the button to save the
state again.

Started writing plugins to the file system. Yay!

Related Issue

Refs #57

How Has This Been Tested?

Manual tests only, for now.

Types of changes

  • Docs Change (changes were only made to documentation)
  • Refactor (non-breaking change which improves code)
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to
    change)

Checklist:

  • I have read the CONTRIBUTING document.
  • My code follows the code style of this project.
  • My change requires a change to the built-in project documentation.
  • My change adds dependencies to this project.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

This makes it possible to have clients request any data
using parameters. It's basically a glorified real-time live data
REST API over websockets, really.

The cool thing about it is that it's implemented with React Suspense
so to the developer, it behaves as if you were just calling a function.

Closes #59
Replaced the WebSocket netsend API with HTTP,
since it makes it easier to include the uploaded files
inline.

Todo: Create a utility function for moving files
wherever you want, most likely placing them inside the
assets folder. The good news is that the input function
is able to decide whatever they want to do with the file,
which is nice.
Begin storing data as YAML, to make it easier to edit by hand.

Refactor the db-fs package to use class inheritance rather than wrapping objects.
This provides a neater experience, with fewer hacks for the end user,
although the implementation itself is full of hacks ;)

Created a function that can check existing names to make sure names
aren't being duplicated. This makes it possible to use names as IDs
while still keeping them unique.

Add a Snapshot button to the development version of the app. This
serves as the save button, which makes it so you can restart the server
to get it back to an expected state, but click the button to save the
state again.

Started writing plugins to the file system. Yay!
@alexanderson1993 alexanderson1993 marked this pull request as draft October 30, 2021 12:13
@alexanderson1993 alexanderson1993 marked this pull request as ready for review November 2, 2021 12:09
@alexanderson1993 alexanderson1993 merged commit c0abe50 into develop Nov 2, 2021
@alexanderson1993 alexanderson1993 deleted the Plugin-Config branch November 2, 2021 12:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant