aiceflower opened a new pull request, #5400:
URL: https://github.com/apache/linkis/pull/5400
## Summary
This PR adds build-time feature toggles and bug fixes for linkis-web module:
### New Features
1. **Python Module feature toggle** - Add compile-time parameter to
enable/disable Python Module
- Default: enabled
- Use `PYTHON_MODULE=false npm run build` to disable
2. **Disallow system user login toggle** - Add compile-time parameter to
control system user login prohibition
- Default: enabled (hadoop, hduser, shduser users cannot login)
- Use `DISALLOW_LOGIN=false npm run build` to disable
### Bug Fixes
- Fix i18n key for "Add" button in datasourceAccess module (changed from
`basedata.add` to `basedataManagement.add`)
### Technical Details
- Use Webpack VirtualModulesPlugin to create virtual config modules
- Avoid circular dependency issues by separating config modules
- Maintain consistency with existing module patterns
## Test plan
- [x] Build with `PYTHON_MODULE=false` and verify Python Module menu is
hidden
- [x] Build with default settings and verify Python Module menu is visible
- [x] Build with `DISALLOW_LOGIN=false` and verify system users can login
- [x] Build with default settings and verify system users cannot login
- [x] Verify i18n key fix in datasourceAccess module displays Chinese "新增"
🤖 Generated with [Claude Code](https://claude.com/claude-code)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]