This file contains hidden or 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 | |
| date_default_timezone_set('Europe/London'); // Set this to your local timezone - http://www.php.net/manual/en/timezones.php | |
| /** | |
| * The root directory where the repos live. | |
| * | |
| * @var string | |
| */ | |
| $root_dir = '/your/root/dir/'; |
This file contains hidden or 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
| const Footer = (props) => { | |
| return ( | |
| <div>Footer Info</div> | |
| <div>© 2004 - {props.year}</div> | |
| ) | |
| }; |
This file contains hidden or 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
| const Output = ({ loading, images, counter, }) => ( | |
| !loading ? ( | |
| <div> | |
| <Table responsive> | |
| <thead> | |
| <tr> | |
| <th /> | |
| <th>Image</th> | |
| <th>File Name</th> | |
| <th>Size</th> |
This file contains hidden or 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
| const Output = ({ loading, images, counter, }) => {} |
This file contains hidden or 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
| function Output(loading, images, counter) {} |
This file contains hidden or 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
| imageObject1 = { | |
| _id: 01, | |
| fileName: 'MyImage.jpg', | |
| size: 168, | |
| src: 'http://example.com/images/', | |
| } | |
| imageObject2 = { | |
| _id: 02, | |
| fileName: 'AnotherImage.png', |
This file contains hidden or 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
| // database call which returns the `images` object which contains an array of objects | |
| images: ImagesCollection.find().fetch() |
This file contains hidden or 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
| images = [ | |
| { _id: 01, fileName: 'MyImage.jpg', size: 168, src: 'http://example.com/images',} | |
| { _id: 02, filename: 'AnotherImage.png', size: 1450, src: 'http://imgfiles.net/',} | |
| ]; |
This file contains hidden or 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
| let imageName1 = images[0].fileName; | |
| let imageName2 = images[1].fileName; |
This file contains hidden or 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
| !loading ? ( |
OlderNewer