jfcherng-roundcube/show-folder-size

一个显示文件夹大小的Roundcube插件。

0.7.20 2024-07-06 19:46 UTC

README

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

一个显示文件夹大小的Roundcube插件。

需求

我只测试了以下环境下的此插件。其他配置可能也有机会工作。

  • PHP: >= 7.1.3
  • Roundcube: 1.3.9, 1.4.0
  • 支持的皮肤:Classic, Larry, Elastic

如果你需要支持PHP 5.4 ~ 7.0,请访问php5分支,或者让Composer决定安装的版本。但请注意,我并不打算维护php5分支,因为即使PHP 5.6现在也已经相当过时了。

演示

demo

如何在Roundcube中安装此插件

通过Composer安装(推荐)

此插件已通过名为Packagistjfcherng-roundcube/show-folder-size发布。

  1. 前往你的ROUNDCUBE_HOME(即你的Roundcube的根目录)。
  2. 运行composer require jfcherng-roundcube/show-folder-size
  3. 如果你想进行插件配置,将config.inc.php.dist复制到config.inc.php,然后编辑config.inc.php

手动安装

  1. ROUNDCUBE_HOME/plugins中创建show_folder_size文件夹(如果不存在的话)。
  2. 将所有插件文件复制到那里。
  3. 如果你想进行插件配置,将config.inc.php.dist复制到config.inc.php,然后编辑config.inc.php。(由于目前此插件没有配置,你可以跳过此步骤。)
  4. 编辑你的Roundcube配置文件(ROUNDCUBE_HOME/config/config.inc.php或可能是/etc/roundcube/config.inc.php),找到$config['plugins']并添加'show_folder_size',
<?php

// some other codes...

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

开发者

编译前端资源

  • 你需要安装Node.js
  • 通过npm install(或如果你更喜欢的话,使用yarn)安装依赖项
  • 使用./compile.sh编译资源