52 Commits (71f00ffdfd4921cc84c65bca6c27cc3cf1324d02)

Author SHA1 Message Date
veypi 71f00ffdfd feat(ui): Support @ prefix in URL routing
- Add handling for URLs starting with `@` character
    - Strip `@` prefix to allow direct URL access bypassing urlprefix
1 day ago
veypi bd5604a425 chore: bump version to v1.1.1 7 days ago
veypi 458233f425 refactor(ui): Simplify token storage keys in VBase
- Rename `tokenKey` from `vbase_token` to `token`
    - Rename `refreshTokenKey` from `vbase_refresh_token` to `refresh_token`
2 weeks ago
veypi 03a0afc727 feat(ui): Add user cache and batch fetch in VBase
- Add shared users cache object to VBase constructor
    - Add User(id) API for reactive user info lookup
    - Implement _flushUserRequests for batch POST /api/auth/users
    - Cache and sync current user into shared users cache
    - Clear users cache on logout
2 weeks ago
veypi aabea8ef4a refactor(ui): Update auth and profile pages to use $mod context
- Replace $env.$vbase with $mod.$vbase in callback.html OAuth handlers
    - Update login.html to use $mod.$vbase for login/register API calls
    - Update profile.html to use $mod.$vbase for user data and logout
    - Fix OAuth providers page to reference $mod.$vbase correctly
4 weeks ago
veypi 6552ebf832 refactor(ui): Migrate router guard from env.js to routes.js
- Move beforeEnter router guard logic from env.js to routes.js export function
    - Update $env references to $mod in env.js, ico.html, and layout/default.html
    - Export routes as function that receives $mod context for dependency injection
    - Remove router guard from env.js initialization module
4 weeks ago
veypi d987ac2fac chore(ui): Remove unused vhtml.min.js asset file
- Delete ui/assets/vhtml.min.js (no longer needed)
4 weeks ago
veypi da20940c13 feat(ui): Add role detail modal with permission and user management
- Add role detail dialog with tabs for permissions and users
    - Implement permission selector with level badges (create/read/write/admin)
    - Add user management with avatar display and search functionality
    - Add i18n translations for new role management features
    - Update default DB charset from utf8 to utf8mb4
2 months ago
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 months 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)
2 months 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
2 months 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
2 months ago
veypi 627439bc4d feat(ui): Add system settings and OAuth providers management pages
- Add new settings page with application, auth, security, email, SMS configuration
    - Add OAuth identity providers management page with CRUD operations
    - Update login page to support dynamic OAuth providers and verification code login
    - Add navigation menu items for settings and OAuth providers
    - Add i18n translations for settings and OAuth provider management
    - Add routes for /settings and /oauth/providers pages
2 months ago
veypi be6e07404c feat(ui): Redesign login page with integrated register
- Merge login and register into single page with sliding animation
    - Add dual login modes: username/password and verification code
    - Add OAuth buttons for GitHub, WeChat, Google (placeholder)
    - Add animated bubble background effect
    - Implement responsive design for mobile devices
    - Add comprehensive i18n translations for auth flows
    - Remove separate register.html page
    - Update routes to use new unified auth page
2 months 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
2 months 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
2 months 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
2 months 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
2 months ago
veypi 37acea3420 feat: 实现组织成员角色管理功能 2 months ago
veypi 691f1df75b feat: 添加角色管理模块(API + UI) 2 months ago
veypi 4101daeed3 refactor: 重构用户/组织/OAuth页面UI 2 months ago
veypi d85cb6ae84 i18n: 添加多语言翻译词条 2 months ago
veypi dce36cb65f feat: 优化组织管理页面交互 2 months ago
veypi 800d7fd4fd feat: 重构组织详情页UI和权限控制 2 months ago
veypi 178fa755d4 refactor: 重构认证模型和数据库结构 2 months ago
veypi 983a5651a3 fix: 修复路由和页面加载问题 2 months ago
veypi e5308f9471 feat: 全新UI框架升级和页面重构 2 months ago
veypi 5654a7cd37 remove old 2 months ago
veypi f81ac78f60 remove html 3 months ago
veypi 70da692d9a update 3 months ago
veypi 89a2ea17e2 fix upgrade bug 3 months ago
veypi 6d0ec8e6ba rename to vbase 3 months ago
veypi 4e48cd187d update login 3 months ago
veypi 271131a5e1 update ui 3 months ago
veypi a74ccb104f update to new vigo version 3 months ago
veypi 1880a6ce0f update router params 3 months ago
veypi 67b92662d1 add sms enable option 4 months ago
veypi 95eccc2cde update 8 months ago
veypi 69b4b7c504 change vyes-ai 9 months ago
veypi 134ab38751 fix: fix login bug 9 months ago
veypi cbf9f7a6e6 update login v:bind 9 months ago
veypi f188882c0c update profile 9 months ago
veypi ada216cfd5 feat: change auth check 9 months ago
veypi 96acf05fb6 profile 9 months ago
veypi 1a29442c1c im dead 9 months ago
veypi e83f2da265 update crud and env.js 9 months ago
veypi ae463e0723 update 9 months ago
veypi 959e390126 feat: change to vigo 10 months ago
veypi 3b9cbe1c1b feat: change axios and add auth refresh 10 months ago
veypi d472464d8a update 12 months ago