feat: add show/hide and copy for API keys on dev page

- Display client key and server key on Settings app cards with toggle
  visibility and copy button
- Hide API keys table in Desa Mandiri Keys tab behind toggle + copy
- Add eye toggle to password inputs in Add App and Edit API Config
  modals
- Backend now returns apiKey and clientApiKey in apps list endpoint
This commit is contained in:
2026-05-22 17:10:36 +08:00
parent 4464f42da3
commit 7d879d1901
2 changed files with 152 additions and 18 deletions

View File

@@ -370,6 +370,8 @@ export function createApp() {
errors: app.bugs.length,
active: app.active,
urlApi: app.urlApi,
apiKey: app.apiKey ?? '',
clientApiKey: app.clientApiKey ?? '',
hasClientApiKey: !!app.clientApiKey,
}))
}, {