-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1700 from igarashitm/merge-datamapper
Merge DataMapper
- Loading branch information
Showing
344 changed files
with
42,449 additions
and
1,485 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
packages/ui-tests/stories/datamapper/DataMapperDebugger.stories.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { DataMapperDebugger } from '@kaoto/kaoto/testing'; | ||
import { Meta, StoryFn } from '@storybook/react'; | ||
import { fn } from '@storybook/test'; | ||
|
||
export default { | ||
title: 'DataMapper/Debugger', | ||
component: DataMapperDebugger, | ||
} as Meta<typeof DataMapperDebugger>; | ||
|
||
const Template: StoryFn<typeof DataMapperDebugger> = (args) => { | ||
return <DataMapperDebugger {...args} />; | ||
}; | ||
|
||
export const Debugger = Template.bind({}); | ||
Debugger.args = { | ||
onUpdateDocument: fn(), | ||
onUpdateMappings: fn(), | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
{ | ||
"kaoto-datamapper" : { | ||
"model" : { | ||
"kind" : "model", | ||
"name" : "kaoto-datamapper", | ||
"title" : "Kaoto DataMapper", | ||
"description" : "The Kaoto DataMapper maps and transforms data using a set of Camel processors", | ||
"deprecated" : false, | ||
"label" : "transformation", | ||
"javaType" : "org.apache.camel.model.StepDefinition", | ||
"supportLevel" : "Stable", | ||
"abstract" : false, | ||
"input" : true, | ||
"output" : true | ||
}, | ||
"properties" : { | ||
"description" : { | ||
"index" : 0, | ||
"kind" : "attribute", | ||
"displayName" : "Description", | ||
"group" : "common", | ||
"required" : false, | ||
"type" : "string", | ||
"javaType" : "java.lang.String", | ||
"deprecated" : false, | ||
"autowired" : false, | ||
"secret" : false, | ||
"description" : "Sets the description of this node" | ||
}, | ||
"disabled" : { | ||
"index" : 1, | ||
"kind" : "attribute", | ||
"displayName" : "Disabled", | ||
"group" : "advanced", | ||
"label" : "advanced", | ||
"required" : false, | ||
"type" : "boolean", | ||
"javaType" : "java.lang.Boolean", | ||
"deprecated" : false, | ||
"autowired" : false, | ||
"secret" : false, | ||
"defaultValue" : false, | ||
"description" : "Whether to disable this EIP from the route during build time. Once an EIP has been disabled then it cannot be enabled later at runtime." | ||
}, | ||
"outputs" : { | ||
"index" : 2, | ||
"kind" : "element", | ||
"displayName" : "Outputs", | ||
"group" : "common", | ||
"required" : true, | ||
"type" : "array", | ||
"javaType" : "java.util.List", | ||
"oneOf" : [ "aggregate", "bean", "choice", "circuitBreaker", "claimCheck", "convertBodyTo", "convertHeaderTo", "convertVariableTo", "delay", "doCatch", "doFinally", "doTry", "dynamicRouter", "enrich", "filter", "idempotentConsumer", "intercept", "interceptFrom", "interceptSendToEndpoint", "kamelet", "loadBalance", "log", "loop", "marshal", "multicast", "onCompletion", "onException", "onFallback", "otherwise", "pausable", "pipeline", "policy", "pollEnrich", "process", "recipientList", "removeHeader", "removeHeaders", "removeProperties", "removeProperty", "removeVariable", "resequence", "resumable", "rollback", "routingSlip", "saga", "sample", "script", "serviceCall", "setBody", "setExchangePattern", "setHeader", "setHeaders", "setProperty", "setVariable", "setVariables", "sort", "split", "step", "stop", "threads", "throttle", "throwException", "to", "toD", "transacted", "transform", "unmarshal", "validate", "when", "whenSkipSendToEndpoint", "wireTap" ], | ||
"deprecated" : false, | ||
"autowired" : false, | ||
"secret" : false | ||
} | ||
}, | ||
"exchangeProperties" : { | ||
"CamelStepId" : { | ||
"index" : 0, | ||
"kind" : "exchangeProperty", | ||
"displayName" : "Step Id", | ||
"label" : "producer", | ||
"required" : false, | ||
"javaType" : "String", | ||
"deprecated" : false, | ||
"autowired" : false, | ||
"secret" : false, | ||
"description" : "The id of the Step EIP" | ||
} | ||
}, | ||
"propertiesSchema" : { | ||
"title" : "Kaoto DataMapper", | ||
"description" : "The Kaoto DataMapper maps and transforms data using a set of Camel processors", | ||
"type" : "object", | ||
"additionalProperties" : false, | ||
"properties" : { | ||
"description" : { | ||
"type" : "string", | ||
"title" : "Description", | ||
"description" : "Sets the description of this node", | ||
"group" : "common" | ||
}, | ||
"disabled" : { | ||
"type" : "boolean", | ||
"title" : "Disabled", | ||
"description" : "Whether to disable this EIP from the route during build time. Once an EIP has been disabled then it cannot be enabled later at runtime.", | ||
"group" : "advanced" | ||
} | ||
}, | ||
"$comment" : "steps", | ||
"$schema" : "http://json-schema.org/draft-07/schema#", | ||
"required" : [ ] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,14 @@ | ||
const getCryptoObj = () => { | ||
return window.crypto || (window as Window & { msCrypto?: Crypto }).msCrypto; | ||
}; | ||
|
||
export const getCamelRandomId = (kind: string, length = 4): string => { | ||
const cryptoObj = window.crypto || (window as Window & { msCrypto?: Crypto }).msCrypto; | ||
const randomNumber = Math.floor(cryptoObj?.getRandomValues(new Uint32Array(1))[0] ?? Date.now()); | ||
const randomNumber = Math.floor(getCryptoObj()?.getRandomValues(new Uint32Array(1))[0] ?? Date.now()); | ||
|
||
return `${kind}-${randomNumber.toString(10).slice(0, length)}`; | ||
}; | ||
|
||
export const getHexaDecimalRandomId = (prefix: string) => { | ||
const randomNumber = getCryptoObj()?.getRandomValues(new Uint32Array(1))[0] ?? Date.now(); | ||
return `${prefix}-${randomNumber.toString(16)}`; | ||
}; |
Oops, something went wrong.