2017 © Pedro Peláez
 

symfony-bundle file-bundle

File and image manager for Symfony 3 projects

image

tweedegolf/file-bundle

File and image manager for Symfony 3 projects

  • Wednesday, April 25, 2018
  • by tweedegolf
  • Repository
  • 7 Watchers
  • 1 Stars
  • 897 Installations
  • JavaScript
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 2 Open issues
  • 36 Versions
  • 8 % Grown

The README.md

TweedeGolf File Bundle

Add a compact, modern and full-featured file browser to your Symfony 3 projects, (*1)

Asset requirements

The following nodejs libraries are required., (*2)

  • react
  • react-dom
  • lodash
  • superagent

The SCSS stylesheet that is provided words as an extension of the Bootstrap 3 framework. The Bootstrap javascript components are not required., (*3)

Architecture

The gross of the code in this bundle resides in Resources/js/file-bundle ans is written in ECMAscript 6 / JSX. The diagram below depicts the architecture of the react components in place., (*4)

+------------------------------+   +-----------------+
|Browser                       |   |                 |
|                              |   | Cache           |
| +-------------------------+  +<->+                 |
| |Selected files           |  |   |                 |
| +-------------------------+  |   |                 |
|                              |   +-------+---------+
| +--------------------------+ |           ^
| |                          | |           |
| | +---------------------+  | |           v
| | |Toolbar / Errors     |  | |   +-------+---------+
| | +---------------------+  | |   |                 |
| |                          | |   | Api             |
| | +---------------------+  | |   |                 |
| | |List                 |  | |   |                 |
| | |                     |  | |   +-----------------+
| | | +----------------+  |  | |
| | | |File / Folder   |  |  | |
| | | +----------------+  |  | |
| | +---------------------+  | |
| |                          | |
| +--------------------------+ |
|                              |
+------------------------------+

De browser react component contains all state en propagates this state to the subcomponents. The file and directory information is stored in the cache module - which will query the php backend when new folders are opened., (*5)

The selected files component is used when this plugin is used iin a form, than the files can be selected. When the browser operated as a separate file manager clicking on a file means selecting it to, for example, put it on the pasteboard., (*6)

The table of files can be sorted by clicking on the table headers., (*7)

Compilation

sass -t compressed Resources/scss/file-bundle.scss Resources/public/file-bundle.css
babel Resources/js/file-bundle/ --out-file Resources/public/file-bundle.js --presets=es2015,react --minified

The Versions

09/09 2016

dev-local-recycle-bin_buffered-user-actions

dev-local-recycle-bin_buffered-user-actions

File and image manager for Symfony 3 projects

  Sources   Download

MIT

The Requires

 

by Marlon Baeten