tweedegolf / file-bundle
File and image manager for Symfony 3 projects
Installs: 1 524
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 12
Forks: 0
Open Issues: 6
Language:JavaScript
Type:symfony-bundle
Requires
- php: >=5.6.0
- doctrine/doctrine-bundle: ^1.6
- doctrine/orm: ^2.5
- liip/imagine-bundle: ^1.5
- oneup/flysystem-bundle: ^1.2|^2.0
- sensio/framework-extra-bundle: ^3.0|^4.0|^5.0
- stof/doctrine-extensions-bundle: ^1.2
- symfony/form: ^3.0
- symfony/symfony: ^3.0
- vich/uploader-bundle: ^1.0
- dev-master
- v1.0.1
- v1.0.0
- v0.8.9
- v0.8.8
- v0.8.7
- v0.8.6
- v0.8.5
- v0.8.4
- v0.8.3
- v0.8.2
- v0.8.1
- v0.8.0
- v0.7.5
- v0.7.4
- v0.7.3
- v0.7.2
- v0.7.1
- v0.7.0
- v0.6.0
- v0.5.2
- v0.5.0
- v0.4.0
- v0.3.4
- v0.3.3
- v0.3.2
- v0.3.1
- v0.3.0
- v0.2.2
- v0.2.1
- v0.2.0
- v0.1.1
- v0.1.0
- dev-dependabot/npm_and_yarn/qs-6.5.3
- dev-dependabot/npm_and_yarn/loader-utils-1.4.2
- dev-dependabot/npm_and_yarn/node-sass-7.0.0
- dev-dependabot/npm_and_yarn/lodash-4.17.21
- dev-upload-mp3
- dev-stable
- dev-npm
- dev-en
This package is auto-updated.
Last update: 2023-02-06 15:28:34 UTC
README
Add a compact, modern and full-featured file browser to your Symfony 3 projects
Asset requirements
The following nodejs libraries are required.
- 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.
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.
+------------------------------+ +-----------------+
|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.
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.
The table of files can be sorted by clicking on the table headers.
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