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/startCase.mjs
generated
vendored
Normal file
27
frontend/node_modules/es-toolkit/dist/string/startCase.mjs
generated
vendored
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
import { words } from "./words.mjs";
|
||||
//#region src/string/startCase.ts
|
||||
/**
|
||||
* Converts the first character of each word in a string to uppercase and the remaining characters to lowercase.
|
||||
*
|
||||
* Start case is the naming convention in which each word is written with an initial capital letter.
|
||||
* @param str - The string to convert.
|
||||
* @returns The converted string.
|
||||
*
|
||||
* @example
|
||||
* const result1 = startCase('hello world'); // result will be 'Hello World'
|
||||
* const result2 = startCase('HELLO WORLD'); // result will be 'Hello World'
|
||||
* const result3 = startCase('hello-world'); // result will be 'Hello World'
|
||||
* const result4 = startCase('hello_world'); // result will be 'Hello World'
|
||||
*/
|
||||
function startCase(str) {
|
||||
const words$1 = words(str.trim());
|
||||
let result = "";
|
||||
for (let i = 0; i < words$1.length; i++) {
|
||||
const word = words$1[i];
|
||||
if (result) result += " ";
|
||||
result += word[0].toUpperCase() + word.slice(1).toLowerCase();
|
||||
}
|
||||
return result;
|
||||
}
|
||||
//#endregion
|
||||
export { startCase };
|
||||
Loading…
Add table
Add a link
Reference in a new issue