mirror of
https://github.com/Moepchi/webspeak3.git
synced 2026-12-01 00:42:49 +08:00
Fills out the last two disabled entries in the client right-click menu (#72): "Channel-Gruppe zuweisen" and "Server-Gruppe zuweisen". - Connector: exposes each client's database_id, channel_group, and server_groups (already present in tsclientlib's bookkeeping Client struct, just not threaded through before) on the "channels" snapshot. Adds raw commands for channelgrouplist/servergrouplist (list requests, same InMessage pattern as banlist/complainlist) and setclientchannelgroup/servergroupaddclient/servergroupdelclient (assignment, fire-and-forget like kick/ban). - Gateway: typed passthrough for the new client fields and five new message types (getChannelGroupList, getServerGroupList, setChannelGroup, addServerGroup, removeServerGroup). - Frontend: new GroupAssignDialog reused for both channel groups (single-select, closes after assigning) and server groups (multi-select, checkmarked entries toggle add/remove and the dialog stays open). Demo mode simulates real group membership changes, including live re-render after assignment. Verified against the real server: the client's own database_id/ channel_group/server_groups now flow correctly end-to-end (confirmed via a throwaway gateway test script). The list-request commands are permission-gated for the guest test account and decline silently, same as serverlog/serverconninfo before them - the dialog's existing 6s "unavailable" timeout already covers this. 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.