npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@azerafati/angularjs-filemanager

v2.1.3

Published

A very smart filemanager to manage your files in the browser.

Downloads

17

Readme

AngularJS File Manager

Build Status Codacy Badge npm version GitHub issues Dependency Status Coverage Status npm GitHub license

This is a minimal and light-weight file manager to explore your files on the server developed in AngularJS using Bootstrap 4

This project is based on excellent work of Jonas Sciangula Street, but since he's not planning to maintain it I'm moving forward with my own fork.

There are example backend connectors in (e.g. PHP, PHP-FTP, Python, Java) or you can create your own backend connector following the connector API.

Try the DEMO

Install

1) Run npm i @azerafati/angularjs-filemanager --save

2) Install dependencies

3) Include the dependencies in your project

<!-- third party -->
  <script src="/node_modules/jquery/dist/jquery.min.js"></script>
  <script src="/node_modules/angular/angular.min.js"></script>
  <script src="/node_modules/angular-translate/dist/angular-translate.min.js"></script>
  <script src="/node_modules/ng-file-upload/dist/ng-file-upload.min.js"></script>
  <script src="/node_modules/bootstrap/dist/js/bootstrap.min.js"></script>

<!-- angularjs-filemanager -->
  <link rel="stylesheet" href="/node_modules/@azerafati/angularjs-filemanager/dist/angular-filemanager.css">
  <script src="node_modules/@azerafati/angularjs-filemanager/dist/angular-filemanager.js"></script>

4) Use the angular directive in your HTML

<angularjs-filemanager></angularjs-filemanager>
angular.module('AngularJS-FileManager').config(['fileManagerConfigProvider', function (config) {
  var defaults = config.$get();
  config.setBridge('/bridges/php-local/index.php');
  config.set({
    appName: 'AngularJS File Manager',
    pickCallback: function(item) {
      var msg = 'Picked %s "%s" for external use'
        .replace('%s', item.type)
        .replace('%s', item.fullPath());
      window.alert(msg);
    },

    allowedActions: angular.extend(defaults.allowedActions, {
      pickFiles: true,
      pickFolders: false,
    }),
  });
}]);

Features

  • Multiple file support
  • Multilanguage
  • List and Icon view
  • Multiple file upload
  • Pick files callback for third parties apps
  • Search files
  • Directory tree navigation
  • Copy, Move, Rename (Interactive UX)
  • Delete, Edit, Preview, Download
  • File permissions (Unix chmod style)
  • Mobile support

TODO

  • Drag and drop
  • Dropbox and Google Drive connectors
  • Remove usage of jQuery

Backend API

Read the docs


Create a new build with your changes

  gulp build || node node_modules/gulp/bin/gulp.js build

You can do many things by extending the configuration. Like hide the sidebar or the search button. See the list of default configurations.


Contribute

To contribute to the project you can simply fork this repo. To build a minified version, you can simply run the Gulp task gulp build. The minified/uglified files are created in the dist folder.

Versioning

For transparency into our release cycle and in striving to maintain backward compatibility, angular-filemanager is maintained under the Semantic Versioning guidelines.

Copyright and license

Code and documentation released under the MIT license.