mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-21 20:00:02 +00:00
refactor(editor): Move editor-ui and design-system to frontend dir (no-changelog) (#13564)
This commit is contained in:
53
packages/frontend/editor-ui/src/shims-vue.d.ts
vendored
Normal file
53
packages/frontend/editor-ui/src/shims-vue.d.ts
vendored
Normal file
@@ -0,0 +1,53 @@
|
||||
import 'vue-router';
|
||||
import type { I18nClass } from '@/plugins/i18n';
|
||||
import type { Route, Router, RouteLocation } from 'vue-router';
|
||||
import type { Telemetry } from '@/plugins/telemetry';
|
||||
import type { VIEWS } from '@/constants';
|
||||
import type { IPermissions } from '@/Interface';
|
||||
import type { MiddlewareOptions, RouterMiddlewareType } from '@/types/router';
|
||||
|
||||
export {};
|
||||
|
||||
/**
|
||||
* @docs https://vuejs.org/guide/typescript/options-api.html#augmenting-global-properties
|
||||
*/
|
||||
|
||||
declare module '@vue/runtime-core' {
|
||||
interface ComponentCustomOptions {
|
||||
beforeRouteEnter?(to: Route, from: Route, next: () => void): void;
|
||||
beforeRouteLeave?(to: Route, from: Route, next: () => void): void;
|
||||
beforeRouteUpdate?(to: Route, from: Route, next: () => void): void;
|
||||
}
|
||||
|
||||
interface ComponentCustomProperties {
|
||||
$style: Record<string, string>;
|
||||
$telemetry: Telemetry;
|
||||
$route: RouteLocation;
|
||||
$router: Router;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @docs https://router.vuejs.org/guide/advanced/meta
|
||||
*/
|
||||
|
||||
declare module 'vue-router' {
|
||||
interface RouteMeta {
|
||||
nodeView?: boolean;
|
||||
templatesEnabled?: boolean;
|
||||
getRedirect?:
|
||||
| (() => { name: string } | false)
|
||||
| ((defaultRedirect: VIEWS[keyof VIEWS]) => { name: string } | false);
|
||||
permissions?: IPermissions;
|
||||
middleware?: RouterMiddlewareType[];
|
||||
middlewareOptions?: Partial<MiddlewareOptions>;
|
||||
telemetry?: {
|
||||
disabled?: true;
|
||||
pageCategory?: string;
|
||||
getProperties?: (route: RouteLocation) => Record<string, unknown>;
|
||||
};
|
||||
scrollOffset?: number;
|
||||
setScrollPosition?: (position: number) => void;
|
||||
readOnlyCanvas?: boolean;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user