Add custom composer for polling feature #38
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add the nodebb-plugin-composer-custom directory, which is a replication of the original built-in nodebb-plugin-composer-default, but with changes for polling and previewing polls while maintaining all previous functionalities of the default composer.
This includes writing nodebb-plugin-composer-custom/static/templates/partials/poll-modal.tpl, which generates a modal asking user for poll title, poll options. Changes in the nodebb-plugin-composer-custom/static/lib/client.js file allow for the adding and deleting of options, as well as saving the poll into the default modal. Preview and edit all work as it would in the default composer.
To test changes, one must un-link from the default composer and switch to the custom composer. Changes would include
"nodebb-plugin-composer-custom": "file:nodebb-plugin-composer-custom",
For easier demonstration of the functionality, see this demo video:
https://drive.google.com/file/d/1VxbekzTjQcDLr4_fYX84Mjl-UPuUhHAf/view?usp=sharing