Remove unused blade settings pages not linked from UI Convert remaining frontend pages to SPA actions Convert settings user_settings and general to SPA actions Convert settings profile pages to SPA actions Convert contacts and projects add/edit pages to SPA actions Convert clients add/edit page to SPA action with loading pattern Refactor component scoped IDs from $id to $sid Fix jqhtml comment syntax and implement universal error component system Update all application code to use new unified error system Remove all backwards compatibility - unified error system complete Phase 5: Remove old response classes Phase 3-4: Ajax response handler sends new format, old helpers deprecated Phase 2: Add client-side unified error foundation Phase 1: Add server-side unified error foundation Add unified Ajax error response system with constants 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
59 lines
1.9 KiB
TypeScript
59 lines
1.9 KiB
TypeScript
/**
|
|
* Base class for route components in JQHTML Router v2
|
|
*/
|
|
import { Jqhtml_Component } from '@jqhtml/core';
|
|
import type { RouteMeta } from './types.js';
|
|
declare module '@jqhtml/core' {
|
|
interface Jqhtml_Component {
|
|
_is_route?: boolean;
|
|
}
|
|
}
|
|
export declare class Jqhtml_Route extends Jqhtml_Component {
|
|
static routes: string[];
|
|
static layout: string;
|
|
static meta: RouteMeta;
|
|
_is_route: boolean;
|
|
args: Record<string, any>;
|
|
constructor(options?: any);
|
|
/**
|
|
* Called during app initialization to register routes
|
|
* This is where routes call register_route for each path they handle
|
|
*/
|
|
static init(): void;
|
|
/**
|
|
* Generate URL for this route with given parameters
|
|
* Static version for generating URLs without an instance
|
|
*/
|
|
static url(params?: Record<string, any>): string;
|
|
/**
|
|
* Generate URL for this route with current args merged with new params
|
|
* Instance method that includes current route parameters
|
|
*/
|
|
url(params?: Record<string, any>): string;
|
|
/**
|
|
* Navigate to this route with given parameters
|
|
* Static version for programmatic navigation
|
|
*/
|
|
static dispatch(params?: Record<string, any>): void;
|
|
/**
|
|
* Navigate to this route with current args merged with new params
|
|
* Instance method for navigation from within a route
|
|
*/
|
|
dispatch(params?: Record<string, any>): void;
|
|
/**
|
|
* Called before this route is activated
|
|
* Can be used for route-specific guards
|
|
*/
|
|
pre_dispatch(): Promise<boolean | string>;
|
|
/**
|
|
* Called after this route has fully loaded
|
|
* Can be used for analytics, etc.
|
|
*/
|
|
post_dispatch(): Promise<void>;
|
|
/**
|
|
* Override on_render for custom route rendering
|
|
* By default does nothing - routes should override this or use templates
|
|
*/
|
|
on_render(): Promise<void>;
|
|
}
|
|
//# sourceMappingURL=route.d.ts.map
|