]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
webui : Replace alert and confirm with custom modals. (#13711)
authorigardev <redacted>
Sat, 31 May 2025 09:56:08 +0000 (12:56 +0300)
committerGitHub <redacted>
Sat, 31 May 2025 09:56:08 +0000 (11:56 +0200)
commitc7e0a2054b908c28bf93bb18d4b63ccbff2c4127
tree3993d4809b9b8b7cd59624fed4619df9dc405433
parent3f55f781f1da9241f209648636fa0426fe62a495
webui : Replace alert and confirm with custom modals. (#13711)

* Replace alert and confirm with custom modals. This is needed as Webview in VS Code doesn't permit alert and confirm for security reasons.

* use Modal Provider to simplify the use of confirm and alert modals.

* Increase the z index of the modal dialogs.

* Update index.html.gz

* also add showPrompt

* rebuild

---------

Co-authored-by: igardev <redacted>
Co-authored-by: Xuan Son Nguyen <redacted>
tools/server/public/index.html.gz
tools/server/webui/src/App.tsx
tools/server/webui/src/components/ModalProvider.tsx [new file with mode: 0644]
tools/server/webui/src/components/SettingDialog.tsx
tools/server/webui/src/components/Sidebar.tsx