A simple script to accept dropped files on a Crmery page and upload them.
Run yarn install
Run yarn run webpack
To use the generated bundle.js, you must include it at the bottom of the page.
If you want to include it at the top of the page, you'll have to customize it to
run after the document is loaded. Personally, I just added this script to the
bottom of view/companies/tmpl/company.php
and view/people/tmpl/person.php
:
<!-- Drag and Drop Script -->
<script src="/components/com_crmery/media/js/drag-and-drop.js" async defer type="text/javascript"></script>
Run yarn test
Run yarn check-commit
to run testing, linting, typechecking (by flow) and
prettier.
MIT Licensed. Enjoy.