24 Commits

Author SHA1 Message Date
21cbd1b2fb fix: use {{entire_url()}} for all Menu url paths in index.ui and login.ui
- Menu items now use {{entire_url('/module')}} instead of hardcoded paths
- Iframe src also uses {{entire_url()}}
- Register button in login.ui uses {{entire_url('/rbac/user/register.ui')}}
- Removed unnecessary binds for Menu widget (Menu handles click internally)
2026-05-05 16:15:34 +08:00
e7c6ec548d bugfix 2026-05-05 15:21:05 +08:00
010ab6e354 remove app/init_permissions.py, keep only root init_permissions.py 2026-05-05 14:17:02 +08:00
b4785d49ab fix: APP_ROOT handles both root/ and app/ script locations 2026-05-05 14:15:59 +08:00
77cdacf878 fix: correct APP_ROOT to single dirname since script is in project root 2026-05-05 14:15:32 +08:00
bec9cb956b fix: use raw SQL for user password update to avoid sor.U() generating wrong WHERE clause 2026-05-05 14:13:03 +08:00
1fc2be73c0 fix: init_permissions.py - use config.json databases for DBPools, add id for rolepermission insert
1. Replace manual DB_CONFIG with getConfig('.').databases for DBPools init
2. Add id=getID() when inserting into rolepermission table (id has no default value)
3. Sync app/ and root copies
2026-05-05 14:08:49 +08:00
6255feaf5b fix: remove all /main prefix from perm_config.py paths 2026-05-05 13:46:29 +08:00
1ed4ce0935 fix: RBAC permission init - remove /main prefix, include js/css files, use * wildcard
- perm_config.py: all paths no longer use /main prefix
- init_permissions.py:
  1. scan wwwroot including symlinks for .ui/.dspy/.js/.css
  2. register paths without /main prefix
  3. create admin_superuser user (super/Kyy@123456)
  4. use orgtypeid='*' for role wildcard matching
- sync app/ and root copies
2026-05-05 13:44:55 +08:00
f932bfb088 bugfix 2026-05-03 14:26:27 +08:00
de8ce23fcb fix: add bricks_for_python to core dependencies 2026-04-29 17:29:44 +08:00
c967cfffda fix: ensure permission.permtype column is VARCHAR(255) after schema import 2026-04-29 15:29:25 +08:00
d5c0fcb1cd fix: filter Exception output from DDL generation to prevent corrupting schema SQL 2026-04-29 14:34:51 +08:00
b0de930324 docs: update DEPLOY.md for automated one-step build process 2026-04-29 13:28:03 +08:00
f83dde78f9 refactor: automate build.sh to clone modules, configure DB and init permissions
- Clone all reference and business modules to pkgs/
- Interactive DB config (host, port, user, password)
- Auto-create database, import schema, encrypt password in config.json
- Auto-run permission initialization
- Generate start.sh/stop.sh
2026-04-29 13:26:34 +08:00
2134a83738 docs: add deployment guide (DEPLOY.md) 2026-04-29 13:03:38 +08:00
4c5b2a5716 feat: add permission config and initialization for single-owner CRM
- perm_config.py: role definitions and permission matrix (underscore-based role IDs)
- init_permissions.py: permission initialization script
- .gitignore: add build artifacts exclusions
- Remove multi-org type design, single owner org only
2026-04-29 12:57:14 +08:00
2b921a209d sync: local modifications to integrated_crm_app
- Updated app/integrated_crm_app.py, build.sh, conf/config.json
- Added config.ini, schema.sql, send_email.py, test_db_conn.py
- Added full wwwroot/ with bricks framework, all module frontends, login/main UI
2026-04-28 18:54:07 +08:00
7aa37245ee bugfix 2026-04-17 11:18:27 +08:00
1026edc822 bugfix 2026-04-16 15:19:08 +08:00
1518acf709 bugfix 2026-04-16 15:15:52 +08:00
fa8df43a5f bugfix 2026-04-16 15:07:08 +08:00
b6ff13734c feat(crm): 集成商机管理模块并更新构建脚本
- 添加商机管理模块到集成CRM应用
- 更新构建脚本以包含商机管理模块
- 生成完整的数据库模式文件 integrated_crm_app_schema.sql
- 更新模块初始化逻辑
2026-04-16 14:32:41 +08:00
7b261b4f48 bugfix 2026-04-16 13:41:15 +08:00