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
{"userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36","environment":{"networkUserAgent":"Mozilla/5.0 (Linux; Android 6.0.1; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3694.0 Mobile Safari/537.36 Chrome-Lighthouse","hostUserAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36","benchmarkIndex":760},"lighthouseVersion":"4.2.0","fetchTime":"2019-06-12T20:13:00.513Z","requestedUrl":"https://react-app-typescript-boilerplate.netlify.com/","finalUrl":"https://react-app-typescript-boilerplate.netlify.com/","runWarnings":[],"audits":{"is-on-https":{"id":"is-on-https","title":"Uses HTTPS","description":"All sites should be protected with HTTPS, even ones that don't handle sensitive data. HTTPS prevents intruders from tampering with or passively listening in on the communications between your app and your users, and is a prerequisite for HTTP/2 |
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 | |
# Create a token in https://github.com/settings/tokens with "public_repo" permission | |
# Generate a secure token : "travis encrypt -r username/reponame GH_TOKEN=xxx --add;" (https://docs.travis-ci.com/user/encryption-keys/) | |
# Put the result in the ".travis.yml" file : | |
# env: | |
# global: | |
# - secure: ... | |
set -e # Exit with nonzero exit code if anything fails |
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 | |
namespace Test\Form\View\Helper; | |
class TestTwbBundleFormElement extends \TwbBundle\Form\View\Helper\TwbBundleFormElement | |
{ | |
/** | |
* Render an element | |
* @param \Zend\Form\ElementInterface $oElement | |
* @return string | |
*/ |
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 | |
/** | |
* This class ovveride FormRow view helper | |
* The file should be in "module/Application/src/Application/Form/View/Helper" directory | |
*/ | |
namespace Application\Form\View\Helper; | |
class ExempleFormRow extends \TwbBundle\Form\View\Helper\TwbBundleFormRow{ | |
public function render(\Zend\Form\ElementInterface $oElement){ | |
if($oElement->getAttribute('required') === true){ | |
$aLabelAttributes = $oElement->getLabelAttributes()?:$this->labelAttributes; |
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
$form = new \Zend\Form\Form(); | |
$form->add(array( | |
'name' => 'test_file_input', | |
'type' => 'Zend\Form\Element\File' | |
)); | |
$inputFilter = new \Zend\InputFilter\InputFilter(); | |
$inputFilter->add(array( | |
'name' => 'test_file_input', | |
'required' => true, |