(config: UrlConfig)
| 51 | const BASE_URL = 'https://embed.learnprompting.org'; // Replace this with your actual base URL |
| 52 | |
| 53 | const createEmbedCode = (config: UrlConfig): string => { |
| 54 | const query = encodeUrlConfig(config) |
| 55 | const url = `${BASE_URL}/embed?config=${query}` |
| 56 | const height = config.boxRows ? `${50 * config.boxRows}px` : '500px'; |
| 57 | return JSX_TEMPLATE.replace("%URL%", url).replace("%HEIGHT%", height); |
| 58 | } |
| 59 | |
| 60 | // Function to recursively iterate through all files in a given path |
| 61 | function processDirectory(directory: string) { |
no test coverage detected