diamante / front-bundle
DiamanteDesk 前端组件包
2.0.3
2017-02-09 19:15 UTC
Requires
- php: >=5.4.4
- diamante/api-bundle: 2.0.3
- diamante/desk-bundle: 2.0.3
- oro/platform: 1.8.*
Requires (Dev)
This package is not auto-updated.
Last update: 2024-09-14 16:50:19 UTC
README
DiamanteDeskFrontBundle 是 DiamanteDesk 系统的一部分。此软件扩展了其基本功能,为用户提供前端 UI,使他们可以通过网页提交和监控工单的状态。
安装
在 composer 中添加依赖
composer require diamante/front-bundle
使用以下命令通过 Symfony 安装资源
php app/console assets:install
配置
前端可以通过此 URL 访问 此 URL。此 URL 不应受标准 Oro 平台身份验证的保护。您应该在 app/config/security.yml
中的防火墙部分添加额外的配置
front_diamante: pattern: ^/portal provider: chain_provider anonymous: true
要重置和更新密码 URL,您应该使用匿名用户。在上述同一部分添加以下规则
front_diamante_reset_password: pattern: ^/portal/password/* provider: chain_provider anonymous: true
开发
开发要求
DiamanteDesk Front Bundle 开发需要安装以下软件
- Node.JS
- NPM
- Grunt(全局安装)
- Bower(全局安装)
源代码位于 @DiamanteFrontBundle/Resources/front
文件夹中。此文件夹具有以下结构
@DiamanteFrontBundle
+-- Resources
| +-- assets
| | +-- img
| | +-- js
| | +-- less
+-- .bowerrc
+-- bower.json
+-- Grungfile.js
应用程序使用 Bower 管理所有资产依赖项,这些依赖项将安装在 assets/js/vendor
。
在更改源代码后,运行 Grunt 或执行以下命令
php app/console diamante:front:build
NPM 依赖项
所有开发所需依赖项均指定在 @DiamanteFrontBundle/packages.json
文件中,可以使用以下命令安装
npm install
要更新依赖项,请执行以下命令
npm update
贡献
我们感谢任何使 DiamanteDesk 功能更好的努力;因此,我们欢迎各种形式的贡献,包括错误报告、补丁提交、功能请求或文档改进。如果您想成为项目的一部分,请参阅 DiamanteDesk 贡献指南。