70852bf378
- Removed all @kbx/contracts imports and types
- Cleaned up feature registries (minimal definitions)
- Simplified page components (HomePage, ModelsList, ShadowRunList)
- Removed KBX UI components and adapters
- Fixed TypeScript errors with type casting
- Frontend build: 737KB (204KB gzip) ✅
CI/CD Pipeline: Ready for testing
21 lines
470 B
TypeScript
21 lines
470 B
TypeScript
/**
|
|
* App Initialization (minimal)
|
|
*/
|
|
|
|
import type { App } from 'vue'
|
|
|
|
let userPermissions: Set<string> = new Set()
|
|
|
|
export function setUserPermissions(permissions: string[]) {
|
|
userPermissions.clear()
|
|
permissions.forEach(p => userPermissions.add(p))
|
|
}
|
|
|
|
export function hasPermission(permissionId: string): boolean {
|
|
return userPermissions.has(permissionId)
|
|
}
|
|
|
|
export function installKbx(app: App) {
|
|
app.config.globalProperties.$permissions = userPermissions
|
|
}
|