added Magento support

fixes #48
This commit is contained in:
Szekeres Bálint
2018-12-02 20:28:18 +01:00
parent 0f091d1968
commit 6db2cf48d5
6 changed files with 125 additions and 3 deletions

View File

@@ -52,6 +52,7 @@
php_server_backup: '',
wordpress: false,
drupal: false,
magento: false,
file_structure: 'modularized',
symlink: true,
@@ -379,6 +380,7 @@
$scope.data.php = $scope.defaultData.php;
$scope.data.wordpress = $scope.defaultData.wordpress;
$scope.data.drupal = $scope.defaultData.drupal;
$scope.data.magento = $scope.defaultData.magento;
$scope.data.proxy = $scope.defaultData.proxy;
$scope.data.index = $scope.defaultData.index;
$scope.data.fallback_html = $scope.defaultData.fallback_html;
@@ -402,6 +404,9 @@
case 'drupal':
$scope.data.drupal = true;
break;
case 'magento':
$scope.data.magento = true;
break;
case 'nodejs':
$scope.data.php = false;
$scope.data.proxy = true;
@@ -538,6 +543,10 @@
return $scope.isPHP() && $scope.data.drupal;
};
$scope.isMagento = function() {
return $scope.isPHP() && $scope.data.magento;
};
$scope.isCSP = function() {
return !!$scope.data.content_security_policy;
};