jfcherng-roundcube / cloudview
一个Roundcube插件,允许您使用云查看器查看文档。
0.6.19
2023-11-15 18:14 UTC
Requires
- php: >=7.1.3
- roundcube/plugin-installer: ~0.1
Requires (Dev)
- dev-master
- 0.6.19
- 0.6.18
- 0.6.17
- 0.6.16
- 0.6.15
- 0.6.14
- 0.6.13
- 0.6.12
- 0.6.11
- 0.6.10
- 0.6.9
- 0.6.8
- 0.6.7
- 0.6.6
- 0.6.5
- 0.6.4
- 0.6.3
- 0.6.2
- 0.6.1
- 0.6.0
- 0.5.4
- 0.5.3
- 0.5.2
- 0.5.1
- 0.5.0
- 0.4.5
- 0.4.4
- 0.4.3
- 0.4.2
- 0.4.1
- 0.4.0
- 0.3.2
- 0.3.1
- 0.3.0
- 0.2.3
- 0.2.2
- 0.2.1
- 0.2.0
- 0.1.1
- 0.1.0
- dev-dependabot/npm_and_yarn/elliptic-6.5.7
- dev-dependabot/npm_and_yarn/micromatch-4.0.8
- dev-dependabot/npm_and_yarn/braces-3.0.3
This package is auto-updated.
Last update: 2024-09-01 09:55:23 UTC
README
一个Roundcube插件,允许您直接使用Google Docs或Microsoft Office Web等云查看器在浏览器中查看邮件附件。
查看器与支持的格式
第三方查看器
自托管查看器
要求
此插件已在以下环境中进行了测试。
- Roundcube:
1.4.0
,1.6.0
- PHP:
7.1.3
(最小要求),8.1
- 皮肤:
Classic
,Larry
,Elastic
不同的环境可能也能正常工作,但不保证。
如何在Roundcube中安装此插件
通过Composer安装(推荐)
此插件以 Packagist 上的 jfcherng-roundcube/cloudview 名称发布。
- 转到您的
ROUNDCUBE_HOME
(即Roundcube的根目录)。 - 运行
composer require jfcherng-roundcube/cloudview
。 - 将
config.inc.php.dist
复制到config.inc.php
并编辑config.inc.php
,如果您想的话。
手动安装
- 如果不存在,在
ROUNDCUBE_HOME/plugins
中创建cloudview
文件夹。 - 将所有插件文件复制到那里。
- 将
config.inc.php.dist
复制到config.inc.php
并编辑config.inc.php
,如果您想的话。 - 编辑
ROUNDCUBE_HOME/conf/config.inc.php
,定位到$config['plugins']
并添加'cloudview',
。
<?php // some other codes... $config['plugins'] = array( // some other plugins... 'cloudview', // <-- add this );
先决条件
此插件将附件从消息中提取到 plugins/cloudview/temp/
,以便远程云查看器可以公开访问它们。
- 在
plugins/cloudview/temp/
下的temp/
目录应该是公开可访问的。 - 确保运行RoundCube服务器的用户对
temp/
目录有“写入”权限。 - 您的RoundCube安装应该是公开可访问的。也就是说,不在内部服务器下。
临时文件
在 plugins/cloudview/temp/
下的这些临时文件将不会自动删除。您需要设置一个cron作业来定期删除它们。
例如,执行 crontab -e
并添加以下作业
# delete temporary files on 03:00 AM every day
0 3 * * * rm -rf PATH_TO_ROUNDCUBE/plugins/cloudview/temp/*/
对于开发者
编译前端资源
- 您需要安装 Node.js。
- 使用
npm install
(或如果您更喜欢,使用yarn
)安装依赖项。 - 使用
./compile.sh
编译资源。
致谢
- 基本想法来自 https://github.com/brestows/cloudview-roundcube
- 此插件最初由 @Galandrix 赞助。