browsy 1.0.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package browsy --version 1.0.1                
NuGet\Install-Package browsy -Version 1.0.1                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="browsy" Version="1.0.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add browsy --version 1.0.1                
#r "nuget: browsy, 1.0.1"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install browsy as a Cake Addin
#addin nuget:?package=browsy&version=1.0.1

// Install browsy as a Cake Tool
#tool nuget:?package=browsy&version=1.0.1                

browsy

Browsy Is a client side file browser for your server.

System Software Components

  • a webAPI
  • a jQuery Plugin

Deployment

The dll includes everything needed to run browsy. The webAPI Controller, and web resources.

The web resources are:

  • /browsy/index.html
  • /browsy/browsy.js
  • /browsy/browsy.css

The project namespace is "browsy"

To load the webAPI Controller:

  • reference browsy.dll
  • Add the namespace to your webAPI route

C# WebAPI Backend Example:

var r=config.Routes.MapHttpRoute(name          :"DefaultApi",
                                 routeTemplate :"api/{controller}/{id}",
                                 defaults      :new { id = RouteParameter.Optional });

//this is where you add the linked controllers. everything is inside of the DLL
r.DataTokens["Namespaces"] = new[] { typeof(browsy.controller.serverController).Namespace };

Javascript Client Side Example

$(filter).browsy({
                path                : null,                              //default path for the browser
                filters             : [],                                //An array of filters for files. [".png",".jpg"]
                admin               : true,                              //turn on all admin controls
                server              : "http://localhost:8888",           //The api URL
                admin_hidden_folders: false,                             //turn on the hidden folder toggle
                admin_hidden_files  : false,                             //turn on the hidden file toggle
                admin_filters       : false,                             //turn on the filter toggle
                controller_name     : "browsy",                          //the api controller name (if you change it)
                special_dirs        : [{ name:"Desktop",                 //use this to replace all special icons and sticky folders
                                                icon:"fas fa-desktop",
                                                type:"folder" ,
                                                ext:"",
                                                special:true
                                      }],
                success_function    : null,                              //success callback
                cancel_function     : null,                              //cancel api callback
                dialog_function     : null,                              //custom call back for messages
                api_error           : "Bummer... Error loading the file browser data.",  //system error message
                no_file_error       : "Gotta pick a file first captain."                 //no selected file mesage
}); 

External Requirements:

  • fontawesome5
  • bootstrap4
  • bootstrap-toggle

Contributing

Please read the COINTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Versioning

We use GIT for versioning. For versions available, see the tags on this repository.

License

This project is licensed under the GNU General Public License v3 -- see the LICENSE.md file for details

Authors

Charles Watkins

Contact Info

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on browsy:

Package Downloads
browsy.example

A Owin Selfhost Console App running a browsy package with internal controller and web resources.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.3 1,512 1/21/2018
1.0.1 1,634 1/21/2018

Initial Release