UNPKG

spyne

Version:

Reactive Real-DOM Framework for Advanced Javascript applications

254 lines (246 loc) 4.89 kB
const DeepLinkData = { route: { routedParamsArr: [ 'pageId' ], routedParam: 'pageId', params: { pageId: 'page-one' }, routeValue: '/page-one', routeCount: 0, isDeepLink: true }, location: { href: 'http://10.0.1.10:8080/page-one', origin: 'http://10.0.1.10:8080', protocol: 'http:', host: '10.0.1.10:8080', hostname: '10.0.1.10', port: '8080', pathname: '/page-one', search: '', hash: '' }, action: 'CHANNEL_ROUTE_CHANGE_EVENT' } const ChannelPayloadUIData = { data: { params: { val: 6, bool : true, pageId: 'page-one' }, channel: 'UI', vsid: 'vsid-1703768', viewName: 'AppView', event: 'click', el: 'h6.nav-btn' }, mouse: { altKey: false, bubbles: true, cancelBubble: false, cancelable: true, clientX: 133, clientY: 24, composed: true, ctrlKey: false, currentTarget: null, defaultPrevented: false, detail: 1, eventPhase: 0, fromElement: null, isTrusted: true, layerX: 68, layerY: 18, metaKey: false, movementX: 0, movementY: 0, offsetX: 69, offsetY: 19, pageX: 133, pageY: 24, path: '', relatedTarget: null, returnValue: true, screenX: 697, screenY: 258, shiftKey: false, sourceCapabilities: '', srcElement: '', target: '', timeStamp: 6963.200000114739, toElement: '', type: 'click', view: '', which: 1, x: 133, y: 24 } } const ChannelPayloadRouteData = { payload: { routeVal: 'page-one', pageId: 'page-one', val : 6 }, channel: 'ROUTE', vsid: 'vsid-1703768', viewName: 'AppView', event: 'click', el: 'h6.nav-btn', event: { altKey: false, bubbles: true, cancelBubble: false, cancelable: true, clientX: 133, clientY: 24, composed: true, ctrlKey: false, currentTarget: null, defaultPrevented: false, detail: 1, eventPhase: 0, fromElement: null, isTrusted: true, layerX: 68, layerY: 18, metaKey: false, movementX: 0, movementY: 0, offsetX: 69, offsetY: 19, pageX: 133, pageY: 24, path: '', relatedTarget: null, returnValue: true, screenX: 697, screenY: 258, shiftKey: false, sourceCapabilities: '', srcElement: '', target: '', timeStamp: 6963.200000114739, toElement: '', type: 'click', view: '', which: 1, x: 133, y: 24 } } const ChannelPayloadRouteDataRegexOverride = { isDeepLink: false, routeCount: 1, pathInnermost: 'pageId', paths: [ 'pageId' ], routeData: { pageId: 'home', pageIdValue: '', section: '', menuItem: '' }, routeValue: '^$|index.html', isHash: false, isHidden: false, routeType: 'slash', pathsAdded: [], pathsRemoved: [], pathsChanged: [ 'pageId' ] } const ChannelPayloadToTestFilters = { channelName: 'CHANNEL_ROUTE', action: 'CHANNEL_ROUTE_CHANGE_EVENT', pageId: 'menu-3', topicId: 'sub-menu-4', eventPreventDefault: 'true', navLevel: '2', payload: { isDeepLink: false, routeCount: 2, pathInnermost: 'topicId', paths: [ 'pageId', 'topicId' ], routeData: { pageId: 'menu-3', topicId: 'sub-menu-4', eventPreventDefault: 'true', navLevel: '2' }, routeValue: 'menu-3/sub-menu-4', isHash: false, isHidden: false, routeType: 'slash', pathsAdded: [ 'topicId' ], pathsRemoved: [], pathsChanged: [ 'topicId' ] }, srcElement: { id: 'xqdlqmr', vsid: 'xqdlqmr', isLocalEvent: false, srcEvent: 'click', el: {} }, event: { altKey: false, bubbles: true, cancelBubble: false, cancelable: true, clientX: 258.15234375, clientY: 31.73046875, composed: true, ctrlKey: false, currentTarget: null, defaultPrevented: true, detail: 1, eventPhase: 0, fromElement: null, isTrusted: true, layerX: 9, layerY: 31, metaKey: false, movementX: 0, movementY: 0, offsetX: 9.71484375, offsetY: 31.73046875, pageX: 258.15234375, pageY: 31.73046875, relatedTarget: null, returnValue: false, screenX: 1108.15234375, screenY: 236.73046875, shiftKey: false, timeStamp: 6506.570000201464, toElement: null, type: 'click', which: 1, x: 258.15234375, y: 31.73046875 }, location: { href: 'http://localhost:8080/menu-3/sub-menu-4', origin: 'http://localhost:8080', protocol: 'http:', host: 'localhost:8080', hostname: 'localhost', port: '8080', pathname: '/menu-3/sub-menu-4', search: '', hash: '' } } export { ChannelPayloadUIData, ChannelPayloadToTestFilters, ChannelPayloadRouteData, DeepLinkData, ChannelPayloadRouteDataRegexOverride }