feat: add settings page for managing application configuration, deployment servers, and Git servers.
This commit is contained in:
parent
8486604fdd
commit
f50b6193a4
@ -19,7 +19,7 @@ export default function SettingsPage() {
|
||||
setMessage('');
|
||||
try {
|
||||
await api.updateConfig({
|
||||
OPENCLAW_WORKSPACE: config.OPENCLAW_WORKSPACE,
|
||||
FOXY_WORKSPACE: config.FOXY_WORKSPACE,
|
||||
GITEA_SERVER: config.GITEA_SERVER,
|
||||
DEPLOYMENT_SERVER: config.DEPLOYMENT_SERVER,
|
||||
DEPLOYMENT_USER: config.DEPLOYMENT_USER,
|
||||
@ -37,7 +37,7 @@ export default function SettingsPage() {
|
||||
}
|
||||
|
||||
const fields: { key: keyof AppConfig; label: string; icon: string; editable: boolean; secret?: boolean }[] = [
|
||||
{ key: 'OPENCLAW_WORKSPACE', label: 'Workspace OpenClaw', icon: '📁', editable: true },
|
||||
{ key: 'FOXY_WORKSPACE', label: 'Workspace Foxy (Conteneur)', icon: '📁', editable: true },
|
||||
{ key: 'GITEA_SERVER', label: 'Serveur Gitea', icon: '🌐', editable: true },
|
||||
{ key: 'GITEA_OPENCLAW_TOKEN', label: 'Token Gitea', icon: '🔑', editable: false, secret: true },
|
||||
{ key: 'DEPLOYMENT_SERVER', label: 'Serveur de déploiement', icon: '🖥️', editable: true },
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user