Spaces:
Sleeping
Sleeping
Download client/src/utils/settings.js from lemachinarbo/lucas-dev: direct link, hf CLI and curl.
- Browser
- Download file 426 Bytes
-
https://huggingface.co/spaces/lemachinarbo/lucas-dev/resolve/main/client/src/utils/settings.js
- Command line
-
hf download hf://spaces/lemachinarbo/lucas-dev/client/src/utils/settings.js
-
curl -L -o settings.js https://huggingface.co/spaces/lemachinarbo/lucas-dev/resolve/main/client/src/utils/settings.js
426 Bytes
| /** | |
| * Restores the default prompt from local storage. | |
| * | |
| * This function retrieves the `defaultPrompt` stored in local storage | |
| * and sets it as the `userPrompt` in both the app state and local storage. | |
| * | |
| * @param {Object} app - The Alpine component instance. | |
| */ | |
| export function restoreDefaultPrompt(app) { | |
| app.userPrompt = localStorage.getItem("defaultPrompt"); | |
| localStorage.setItem("userPrompt", app.userPrompt); | |
| } | |