* @param {string} filePath * @return {string}
(filePath)
| 1540 | * @return {string} |
| 1541 | */ |
| 1542 | function generateInfo(filePath) { |
| 1543 | const mode = SERVE_MODE; |
| 1544 | filePath = filePath.substr(0, filePath.length - 9) + '.html'; |
| 1545 | |
| 1546 | return ( |
| 1547 | '<h2>Please note that .min/.max is no longer supported</h2>' + |
| 1548 | '<h3>Current serving mode is ' + |
| 1549 | mode + |
| 1550 | '</h3>' + |
| 1551 | '<h3>Please go to <a href= ' + |
| 1552 | filePath + |
| 1553 | '>Unversioned Link</a> to view the page<h3>' + |
| 1554 | '<h3></h3>' + |
| 1555 | '<h3><a href = /serve_mode=default>' + |
| 1556 | 'Change to DEFAULT mode (unminified JS)</a></h3>' + |
| 1557 | '<h3><a href = /serve_mode=minified>' + |
| 1558 | 'Change to COMPILED mode (minified JS)</a></h3>' + |
| 1559 | '<h3><a href = /serve_mode=cdn>' + |
| 1560 | 'Change to CDN mode (prod JS)</a></h3>' |
| 1561 | ); |
| 1562 | } |
| 1563 | |
| 1564 | /** |
| 1565 | * @param {string} encryptedDocumentKey |