jfcherng-roundcube / plugin-show-folder-size

A Roundcube plugin which shows folder size.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Roundcube Plugin: Show Folder Size

GitHub Workflow Status (branch) GitHub Workflow Status (branch) Packagist Packagist Version Project license GitHub stars Donate to this project using Paypal

A Roundcube plugin which shows folder size.

Requirements

I only test this plugin with following environments. Other setup may work with luck.

  • PHP: >= 7.1.3
  • Roundcube: 1.3.9, 1.4.0
  • Supported skins: Classic, Larry, Elastic

If you need support for PHP 5.4 ~ 7.0, go to the php5 branch or just let Composer decide the version to be installed. But note that I am not meant to maintain the php5 branch because even PHP 5.6 is quite outdated nowadays.

Demo

demo

How to install this plugin in Roundcube

Install via Composer (Recommended)

This plugin has been published on Packagist by the name of jfcherng-roundcube/show-folder-size.

  1. Go to your ROUNDCUBE_HOME (i.e., the root directory of your Roundcube).
  2. Run composer require jfcherng-roundcube/show-folder-size.
  3. If you want to do plugin configuration, copy config.inc.php.dist to config.inc.php and then edit config.inc.php.

Install manually

  1. Create folder show_folder_size in ROUNDCUBE_HOME/plugins if it does not exist.
  2. Copy all plugin files there.
  3. If you want to do plugin configuration, copy config.inc.php.dist to config.inc.php and then edit config.inc.php. (You can skip this step since there is no configuration for this plugin at this moment.)
  4. Edit your Roundcube's config file (ROUNDCUBE_HOME/config/config.inc.php or maybe /etc/roundcube/config.inc.php), locate $config['plugins'] and add 'show_folder_size',.
<?php

// some other codes...

$config['plugins'] = [
    // some other plugins...
    'show_folder_size', // <-- add this line
];

For Developers

Compile Frontend Assets

  • You will need to have Node.js installed.
  • Install dependencies via npm install (or yarn if you prefer)
  • Compile assets with ./compile.sh

About

A Roundcube plugin which shows folder size.

License:MIT License


Languages

Language:PHP 76.1%Language:JavaScript 10.2%Language:Shell 7.7%Language:CSS 3.3%Language:Less 2.5%