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
27
frontend/node_modules/es-toolkit/dist/string/camelCase.mjs
generated
vendored
Normal file
27
frontend/node_modules/es-toolkit/dist/string/camelCase.mjs
generated
vendored
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
import { capitalize } from "./capitalize.mjs";
|
||||
import { words } from "./words.mjs";
|
||||
//#region src/string/camelCase.ts
|
||||
/**
|
||||
* Converts a string to camel case.
|
||||
*
|
||||
* Camel case is the naming convention in which the first word is written in lowercase and
|
||||
* each subsequent word begins with a capital letter, concatenated without any separator characters.
|
||||
*
|
||||
* @param str - The string that is to be changed to camel case.
|
||||
* @returns The converted string to camel case.
|
||||
*
|
||||
* @example
|
||||
* const convertedStr1 = camelCase('camelCase') // returns 'camelCase'
|
||||
* const convertedStr2 = camelCase('some whitespace') // returns 'someWhitespace'
|
||||
* const convertedStr3 = camelCase('hyphen-text') // returns 'hyphenText'
|
||||
* const convertedStr4 = camelCase('HTTPRequest') // returns 'httpRequest'
|
||||
* const convertedStr5 = camelCase('Keep unicode 😅') // returns 'keepUnicode😅'
|
||||
*/
|
||||
function camelCase(str) {
|
||||
const words$1 = words(str);
|
||||
if (words$1.length === 0) return "";
|
||||
const [first, ...rest] = words$1;
|
||||
return `${first.toLowerCase()}${rest.map((word) => capitalize(word)).join("")}`;
|
||||
}
|
||||
//#endregion
|
||||
export { camelCase };
|
||||
Loading…
Add table
Add a link
Reference in a new issue