Add settings page for managing forecasting API key and URL via UI
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
cae411eae7
commit
1c411e402e
19809 changed files with 1962608 additions and 97 deletions
26
frontend/node_modules/es-toolkit/dist/string/escape.mjs
generated
vendored
Normal file
26
frontend/node_modules/es-toolkit/dist/string/escape.mjs
generated
vendored
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
//#region src/string/escape.ts
|
||||
const htmlEscapes = {
|
||||
"&": "&",
|
||||
"<": "<",
|
||||
">": ">",
|
||||
"\"": """,
|
||||
"'": "'"
|
||||
};
|
||||
/**
|
||||
* Converts the characters "&", "<", ">", '"', and "'" in `str` to their corresponding HTML entities.
|
||||
* For example, "<" becomes "<".
|
||||
*
|
||||
* @param str The string to escape.
|
||||
* @returns Returns the escaped string.
|
||||
*
|
||||
* @example
|
||||
* escape('This is a <div> element.'); // returns 'This is a <div> element.'
|
||||
* escape('This is a "quote"'); // returns 'This is a "quote"'
|
||||
* escape("This is a 'quote'"); // returns 'This is a 'quote''
|
||||
* escape('This is a & symbol'); // returns 'This is a & symbol'
|
||||
*/
|
||||
function escape(str) {
|
||||
return str.replace(/[&<>"']/g, (match) => htmlEscapes[match]);
|
||||
}
|
||||
//#endregion
|
||||
export { escape };
|
||||
Loading…
Add table
Add a link
Reference in a new issue