This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Copyright 2016 SugarCRM Inc. Licensed by SugarCRM under the Apache 2.0 license. | |
*/ | |
(function (app) { | |
app.events.on('app:init', function () { | |
/** | |
* This plugin allows components to dynamically load CSS files. | |
* | |
* <pre><code> | |
* // Sample component: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Copyright 2016 SugarCRM Inc. Licensed by SugarCRM under the Apache 2.0 license. | |
*/ | |
(function (app) { | |
/** | |
* Allow jquery and moment.js to be used in requirejs modules. | |
*/ | |
var bootstrapScriptLoader = function() { | |
define('jquery', [], function() { | |
return jQuery; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Add phpinfo to web dir as a convenience | |
echo "<?php phpinfo();" > /var/www/phpinfo.php | |
# We will have Apache run as Vagrant user because this will help prevent permissions issues on a dev setup | |
sed -i "s/export APACHE_RUN_USER=www-data/export APACHE_RUN_USER=vagrant/" /etc/apache2/envvars | |
chown -R vagrant /var/www/ | |
usermod -a -G www-data vagrant |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Setup the the box. This runs as root | |
apt-get -y update | |
# MySQL default username and password is "root" | |
echo "mysql-server-5.5 mysql-server/root_password password root" | debconf-set-selections | |
echo "mysql-server-5.5 mysql-server/root_password_again password root" | debconf-set-selections |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
({ | |
/** | |
* Copyright 2015 SugarCRM Inc. Licensed by SugarCRM under the Apache 2.0 license. | |
*/ | |
plugins: ['Dashlet'], | |
/** | |
* Record ID that is in context | |
*/ | |
record: undefined, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Copyright 2015 SugarCRM Inc. Licensed by SugarCRM under the Apache 2.0 license. | |
*/ | |
$viewdefs['base']['view']['xyz_contextual-iframe'] = array( | |
//Dashlet metadata | |
'dashlets' => array( | |
array( | |
'label' => 'LBL_XYZ_IFRAME_DASHLET_LABEL', | |
'description' => 'LBL_XYZ_IFRAME_DASHLET_DESCRIPTION', |
NewerOlder