forked from microsoft/BotFramework-Composer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Visual Editor]rename js to ts (microsoft#423)
* rename * resolve error caused by convert * resolve test case error * test * refactor
- Loading branch information
1 parent
ae15984
commit 4887231
Showing
73 changed files
with
227 additions
and
221 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -392,4 +392,7 @@ SampleBots/__Test* | |
SampleBots/*/generated/ | ||
|
||
#tmp.zip | ||
*.zip | ||
*.zip | ||
|
||
# VsCode | ||
Composer/.vscode/ |
File renamed without changes.
File renamed without changes.
22 changes: 16 additions & 6 deletions
22
Composer/packages/extensions/visual-designer/jest.config.js
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,11 +1,21 @@ | ||
module.exports = { | ||
testPathIgnorePatterns: ['/node_modules/', '/jestMocks/', '__tests__/setup.js'], | ||
transform: { | ||
'^.+\\.(j|t)sx?$': 'babel-jest', | ||
}, | ||
preset: 'ts-jest/presets/js-with-babel', | ||
testPathIgnorePatterns: [ | ||
'"/node_modules/(?!office-ui-fabric-react).+\\.js$"', | ||
'/node_modules/', | ||
'/jestMocks/', | ||
'__tests__/index.test.tsx', | ||
], | ||
moduleNameMapper: { | ||
// Any imports of .scss / .css files will instead import styleMock.js which is an empty object | ||
'\\.(s)?css$': '<rootDir>/__tests__/jestMocks/styleMock.js', | ||
'\\.(s)?css$': '<rootDir>/__tests__/jestMocks/styleMock.ts', | ||
}, | ||
globals: { | ||
'ts-jest': { | ||
tsConfig: './tsconfig.json', | ||
diagnostics: { | ||
warnOnly: true, | ||
}, | ||
}, | ||
}, | ||
transformIgnorePatterns: ['"/node_modules/(?!office-ui-fabric-react).+\\.js$"'], | ||
}; |
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
File renamed without changes.
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
13 changes: 0 additions & 13 deletions
13
Composer/packages/extensions/visual-designer/src/components/nodes/EventRule.js
This file was deleted.
Oops, something went wrong.
12 changes: 12 additions & 0 deletions
12
Composer/packages/extensions/visual-designer/src/components/nodes/EventRule.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,12 @@ | ||
// eslint-disable-next-line no-unused-vars | ||
import React, { FunctionComponent } from 'react'; | ||
|
||
// eslint-disable-next-line no-unused-vars | ||
import { NodeProps, defaultNodeProps } from '../shared/sharedProps'; | ||
|
||
import { RuleCard } from './templates/RuleCard'; | ||
|
||
export const EventRule: FunctionComponent<NodeProps> = ({ id, data, focusedId, onEvent }) => { | ||
return <RuleCard id={id} data={data} label={data.events} focusedId={focusedId} onEvent={onEvent} />; | ||
}; | ||
EventRule.defaultProps = defaultNodeProps; |
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
14 changes: 0 additions & 14 deletions
14
Composer/packages/extensions/visual-designer/src/components/nodes/IntentRule.js
This file was deleted.
Oops, something went wrong.
13 changes: 13 additions & 0 deletions
13
Composer/packages/extensions/visual-designer/src/components/nodes/IntentRule.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,13 @@ | ||
// eslint-disable-next-line no-unused-vars | ||
import React, { FunctionComponent } from 'react'; | ||
|
||
// eslint-disable-next-line no-unused-vars | ||
import { NodeProps, defaultNodeProps } from '../shared/sharedProps'; | ||
|
||
import { RuleCard } from './templates/RuleCard'; | ||
|
||
export const IntentRule: FunctionComponent<NodeProps> = ({ id, data, focusedId, onEvent }) => { | ||
return <RuleCard id={id} data={data} label={data.intent} focusedId={focusedId} onEvent={onEvent} />; | ||
}; | ||
|
||
IntentRule.defaultProps = defaultNodeProps; |
Oops, something went wrong.