Skip to content
This repository has been archived by the owner on Sep 1, 2020. It is now read-only.

Simple script to accept dropped files and upload to Crmery

License

Notifications You must be signed in to change notification settings

jameskraus/CrmeryDragAndDrop

Repository files navigation

CrmeryDragAndDrop

A simple script to accept dropped files on a Crmery page and upload them.

Build Status Coverage Status FOSSA Status

Preview

Example of Dragging and Dropping

Installation

Run yarn install

Building

Run yarn run webpack

Usage

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>

Testing

Run yarn test

Linting, Typechecking, Formatting

Run yarn check-commit to run testing, linting, typechecking (by flow) and prettier.

License

MIT Licensed. Enjoy.

About

Simple script to accept dropped files and upload to Crmery

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published