11 Commits (da20940c1346e4f54826afdb64bf1b227aa50fe1)

Author SHA1 Message Date
veypi a913e7dea2 fix(ui): Improve token refresh error handling
- Return false instead of throwing error when no refresh token exists
    - Prevent logout on refresh error, just log warning and return false
    - Avoid throwing errors that could break the application flow
2 weeks ago
veypi 92156dcd53 feat(auth): Improve permission system and role management
- Add Scope and Level fields to UserPermissionInfo response
    - Include role-based permissions in /auth/me endpoint
    - Implement diff-based permission sync for role initialization
    - Remove Scope field from Role model queries (create, patch, grant)
    - Add permission-based route guards in UI (perm: '*')
    - Fix register to return error on default role assignment failure
    - Fix token refresh to only fetch user when token exists
    - Fix code formatting in api/init.go (remove extra spaces)
3 weeks ago
veypi d715445cc0 feat(ui): Redesign user profile page with editable fields
- Add profile editing with avatar, nickname, email, phone fields
    - Add identity providers section for OAuth account binding
    - Add account security section with password change
    - Add new i18n translations for profile and auth pages
    - Update vbase.js with improved error handling and user info refresh
    - Include ico component in default layout
3 weeks ago
veypi e627ab0726 feat(ui): Add OAuth callback page and improve auth flow
- Add new OAuth callback page with loading states and error handling
    - Create reusable icon component (ico.html) for SVG icons
    - Remove deprecated public.html layout, merge into default
    - Update login page with improved third-party auth integration
    - Add i18n translations for OAuth-related messages
    - Update routes to include callback page and handle auth redirects
    - Enhance vbase.js with OAuth utilities and token management
3 weeks ago
veypi 5460289957 refactor(ui): Update vbase.js to match new Scoped RBAC permission system
- Replace old permission check methods with new Perm/PermCreate/PermRead/PermWrite/PermAdmin
    - Add Level constants export (None, Create, Read, Write, ReadWrite, Admin)
    - Remove role-based permission checks (hasRole, checkPermAny, checkPermAll)
    - Update core permission checking logic to match backend checkPermissionLevel
    - Remove _isAdmin helper, use Level.Admin check instead
    - Simplify localStorage keys (remove scope prefix from keys)
    - Clean up console.log in env.js
3 weeks ago
veypi b378c3c5c4 refactor(ui): Remove organization management pages and related i18n
- Delete ui/page/sys/org/ directory (org management UI)
    - Remove org-related navigation from routes.js and layout
    - Remove org translations from langs.json
    - Update dashboard to remove org references
3 weeks ago
veypi df0f7f047a refactor: Rename Config to Global and simplify app initialization
- Rename cfg.Config to cfg.Global for consistency
    - Simplify cli/main.go to use vbase.App.Run() pattern
    - Update init.go to create app with vigo.New and Init function
    - Update all references from cfg.Config to cfg.Global across api, libs, models, and tests
    - Fix VBase constructor parameter order in ui/vbase.js
    - Update ui/env.js to use new VBase('vb', '/') initialization
4 weeks ago
veypi b2b24df82e refactor(ui): Rebuild permission system in vbase.js with scope support
- Add scope parameter to VBase constructor for multi-tenant support
    - Replace hasPermission with checkPerm, checkPermOnResource, checkPermAny, checkPermAll
    - Implement _isAdmin check for global wildcard permissions (*:*)
    - Add _matchPermission with wildcard support (resource:*, *:*)
    - Remove default 404 page from vrouter in root.html
1 month ago
veypi dce36cb65f feat: 优化组织管理页面交互 1 month ago
veypi 983a5651a3 fix: 修复路由和页面加载问题 1 month ago
veypi e5308f9471 feat: 全新UI框架升级和页面重构 1 month ago