mirror of
https://github.com/Moepchi/webspeak3.git
synced 2026-12-01 00:42:49 +08:00
Wires up the previously-disabled "ServerQuery Login" Extras menu item with a username/password form. Sends the raw TS3 "login" command (client_login_name/client_login_password) over the existing connection - no typed builder exists for it upstream, same situation as the other raw-command features this session. Credentials are base64-encoded over the connector's stdin protocol (rather than naive space-splitting) so passwords with spaces or special characters survive the trip intact. Fire-and-forget like kick/ban: the dialog closes on submit and relies on the existing generic error/permission-error event path for feedback. Verified against the real server end-to-end - bogus credentials round-tripped through connector -> gateway -> frontend and surfaced as a clean error event (this particular server responds "NotImplemented" to post-connect query login, which is itself proof the command reached the server and got a real protocol-level reply). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
React + TypeScript + Vite
This template provides a minimal setup to get React working in Vite with HMR and some Oxlint rules.
Currently, two official plugins are available:
- @vitejs/plugin-react uses Oxc
- @vitejs/plugin-react-swc uses SWC
React Compiler
The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see this documentation.
Expanding the Oxlint configuration
If you are developing a production application, we recommend enabling type-aware lint rules by installing oxlint-tsgolint and editing .oxlintrc.json:
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": ["react", "typescript", "oxc"],
"options": {
"typeAware": true
},
"rules": {
"react/rules-of-hooks": "error",
"react/only-export-components": ["warn", { "allowConstantExport": true }]
}
}
See the Oxlint rules documentation for the full list of rules and categories.