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 | |
| @if(old('uid_tag')) | |
| @foreach(old('uid_tag') as $product) | |
| <input type="text" name="uid_tag[]" value="{{ old('uid_tag')[$loop->index] }}" size="30" /> | |
| <textarea | |
| placeholder="Include weight or count" | |
| name="product_description[]" | |
| cols="45" | |
| rows="1" | |
| value="{{ old('product_description')[$loop->index] }}" |
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
| <IfModule mod_rewrite.c> | |
| RewriteEngine On | |
| RewriteBase / | |
| RewriteRule ^index\.html$ - [L] | |
| RewriteCond %{REQUEST_FILENAME} !-f | |
| RewriteCond %{REQUEST_FILENAME} !-d | |
| RewriteRule . /index.html [L] | |
| </IfModule> |
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
| // Generate unique IDs for use as pseudo-private/protected names. | |
| // Similar in concept to | |
| // <http://wiki.ecmascript.org/doku.php?id=strawman:names>. | |
| // | |
| // The goals of this function are twofold: | |
| // | |
| // * Provide a way to generate a string guaranteed to be unique when compared | |
| // to other strings generated by this function. | |
| // * Make the string complex enough that it is highly unlikely to be | |
| // accidentally duplicated by hand (this is key if you're using `ID` |
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
| /* Use case: returning pdf as blob from XHR request, | |
| for example when the endpoint is secure and needs an Authorization header | |
| NB: responseType on fetch for blobData has to be "blob". | |
| PDF files are not UTF-8, they are binary, so otherwise fonts won't appear properly | |
| */ | |
| const showFile = (blobData, reportName) => { | |
| // Adapted from: https://blog.jayway.com/2017/07/13/open-pdf-downloaded-api-javascript/ | |
| const fileName = reportName && `${ reportName }.pdf` || 'myreport.pdf'; |
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
| <ifModule mod_rewrite.c> | |
| RewriteEngine On | |
| RewriteBase / | |
| RewriteCond %{REQUEST_FILENAME} !-f | |
| RewriteCond %{REQUEST_FILENAME} !-d | |
| RewriteRule (.*) /index.html [QSA,L] | |
| </ifModule> |