From e2cfd0683c9666485f7d3565700c50cfffa88235 Mon Sep 17 00:00:00 2001 From: rahul shukla Date: Fri, 18 Jan 2019 12:05:53 +0530 Subject: [PATCH] installer changes for windows --- .../views/configuration/field-type.blade.php | 50 ++++++++++++------- public/installer/Classes/Requirement.php | 24 ++++----- .../Classes/vendor/bin/composer/.htaccess | 1 - .../vendor/bin/composer/cache/.htaccess | 1 - public/installer/Views/requirements.blade.php | 14 +----- .../installer/vendor/bin/composer/.htaccess | 1 - .../vendor/bin/composer/cache/.htaccess | 1 - 7 files changed, 45 insertions(+), 47 deletions(-) delete mode 100644 public/installer/Classes/vendor/bin/composer/.htaccess delete mode 100644 public/installer/Classes/vendor/bin/composer/cache/.htaccess delete mode 100644 public/installer/vendor/bin/composer/.htaccess delete mode 100644 public/installer/vendor/bin/composer/cache/.htaccess diff --git a/packages/Webkul/Admin/src/Resources/views/configuration/field-type.blade.php b/packages/Webkul/Admin/src/Resources/views/configuration/field-type.blade.php index ce469e102..7c88319c4 100755 --- a/packages/Webkul/Admin/src/Resources/views/configuration/field-type.blade.php +++ b/packages/Webkul/Admin/src/Resources/views/configuration/field-type.blade.php @@ -59,11 +59,17 @@ - @foreach ($field['options'] as $option) + getConfigData($name) ?? ''; + ?> - $option) - $selectedOption = core()->getConfigData($name) ?? ''; - ?> + - + @endforeach + @else + @foreach ($field['options'] as $option) + - @endforeach + + @endforeach + @endif diff --git a/public/installer/Classes/Requirement.php b/public/installer/Classes/Requirement.php index a635936e4..4c7327667 100755 --- a/public/installer/Classes/Requirement.php +++ b/public/installer/Classes/Requirement.php @@ -124,23 +124,23 @@ class Requirement { private static function composerInstall() { putenv('COMPOSER_HOME=' . __DIR__ . '/vendor/bin/composer'); - $command = 'composer -v 2>&1'; + $command = 'composer --version 2>&1'; exec($command, $data['composer'], $data['composer_install']); return $data['composer_install']; } - /** - * check installation for composer - * @return boolean - */ - private static function nodeInstall() - { - $command = 'npm -v 2>&1'; - exec($command, $data['npm'], $data['npm_install']); + // /** + // * check installation for composer + // * @return boolean + // */ + // private static function nodeInstall() + // { + // $command = 'npm -v 2>&1'; + // exec($command, $data['npm'], $data['npm_install']); - return $data['npm_install']; - } + // return $data['npm_install']; + // } /** * Render view for class. @@ -154,7 +154,7 @@ class Requirement { $composerInstall = $this->composerInstall(); - $nodeInstall = $this->nodeInstall(); + // $nodeInstall = $this->nodeInstall(); ob_start(); diff --git a/public/installer/Classes/vendor/bin/composer/.htaccess b/public/installer/Classes/vendor/bin/composer/.htaccess deleted file mode 100644 index 14249c50b..000000000 --- a/public/installer/Classes/vendor/bin/composer/.htaccess +++ /dev/null @@ -1 +0,0 @@ -Deny from all \ No newline at end of file diff --git a/public/installer/Classes/vendor/bin/composer/cache/.htaccess b/public/installer/Classes/vendor/bin/composer/cache/.htaccess deleted file mode 100644 index 14249c50b..000000000 --- a/public/installer/Classes/vendor/bin/composer/cache/.htaccess +++ /dev/null @@ -1 +0,0 @@ -Deny from all \ No newline at end of file diff --git a/public/installer/Views/requirements.blade.php b/public/installer/Views/requirements.blade.php index 24ffa5ead..875b3e6b8 100755 --- a/public/installer/Views/requirements.blade.php +++ b/public/installer/Views/requirements.blade.php @@ -47,7 +47,7 @@ Composer - (1.6.5 or higher) +
@@ -56,18 +56,6 @@
-
- - - - Node - (8.11.3 LTS or higher) -
-
- - https://nodejs.org/en/ - -
diff --git a/public/installer/vendor/bin/composer/.htaccess b/public/installer/vendor/bin/composer/.htaccess deleted file mode 100644 index 14249c50b..000000000 --- a/public/installer/vendor/bin/composer/.htaccess +++ /dev/null @@ -1 +0,0 @@ -Deny from all \ No newline at end of file diff --git a/public/installer/vendor/bin/composer/cache/.htaccess b/public/installer/vendor/bin/composer/cache/.htaccess deleted file mode 100644 index 14249c50b..000000000 --- a/public/installer/vendor/bin/composer/cache/.htaccess +++ /dev/null @@ -1 +0,0 @@ -Deny from all \ No newline at end of file