Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitdf11100

Browse files
committed
fix typing paths for storybook
1 parent44613b6 commitdf11100

File tree

10 files changed

+28
-19
lines changed

10 files changed

+28
-19
lines changed

‎tslint.json‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,11 @@
1313
"semicolon": [true,"never"],
1414
"triple-equals":true,
1515
"forin":false,
16-
"no-console":false
16+
"no-console":false,
17+
"no-submodule-imports":false
1718
},
1819
"defaultSeverity":"warning",
19-
"no-submodule-imports":false,
20+
2021
"linterOptions": {
2122
"exclude": ["node_modules/**"]
2223
}

‎web-app/.storybook/webpack.config.js‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,8 @@ module.exports = ({ config }) => {
1616
},
1717
})
1818
config.resolve.extensions.push('.ts','.tsx')
19+
20+
config.resolve.modules=['node_modules',path.resolve(__dirname,'../src')]
21+
1922
returnconfig
2023
}

‎web-app/src/components/Stage/StepDescription/index.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import*asReactfrom'react'
2-
importMarkdownfrom'../../Markdown'
2+
importMarkdownfrom'components/Markdown'
33

44
conststyles={
55
// active: {

‎web-app/src/containers/Continue/index.tsx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ import { useQuery } from '@apollo/react-hooks'
33
import{Button,Card}from'@alifd/next'
44
import*asTfrom'typings/graphql'
55

6-
import{send}from'../../utils/vscode'
6+
import{send}from'utils/vscode'
77
importLoadingPagefrom'../LoadingPage'
88
importqueryTutorialfrom'./queryTutorial'
9-
importErrorViewfrom'../../components/Error'
9+
importErrorViewfrom'components/Error'
1010

1111
interfaceProps{
1212
tutorial:T.Tutorial

‎web-app/src/containers/New/index.tsx‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ import { useQuery } from '@apollo/react-hooks'
33
import*asTfrom'typings/graphql'
44

55
importqueryTutorialsfrom'./queryTutorials'
6-
import{send}from'../../utils/vscode'
6+
import{send}from'utils/vscode'
77
importLoadingPagefrom'../LoadingPage'
8-
importErrorViewfrom'../../components/Error'
9-
importTutorialListfrom'../../components/TutorialList'
8+
importErrorViewfrom'components/Error'
9+
importTutorialListfrom'components/TutorialList'
1010

1111
interfaceProps{
1212
tutorialList:T.Tutorial[]

‎web-app/src/containers/Tutorial/LevelSummaryPage/index.tsx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import * as React from 'react'
22
import{useQuery}from'@apollo/react-hooks'
33
import*asTfrom'typings/graphql'
44

5-
importErrorViewfrom'../../../components/Error'
6-
importLevelfrom'../../../components/Level'
5+
importErrorViewfrom'components/Error'
6+
importLevelfrom'components/Level'
77
importqueryLevelfrom'./queryLevel'
88

99
interfaceLevelProps{

‎web-app/src/containers/Tutorial/StageSummaryPage/index.tsx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import * as React from 'react'
22
import{useQuery}from'@apollo/react-hooks'
33
import*asTfrom'typings/graphql'
44

5-
importStagefrom'../../../components/Stage'
6-
importErrorViewfrom'../../../components/Error'
5+
importStagefrom'components/Stage'
6+
importErrorViewfrom'components/Error'
77
importqueryStagefrom'./queryStage'
88

99
interfacePageProps{

‎web-app/src/containers/Tutorial/SummaryPage.tsx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import*asReactfrom'react'
2-
importDataContextfrom'../../utils/DataContext'
3-
importSummaryfrom'../../components/Summary'
2+
importDataContextfrom'utils/DataContext'
3+
importSummaryfrom'components/Summary'
44

55
interfacePageProps{
66
send(action:string):void

‎web-app/src/containers/Tutorial/index.tsx‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import*asReactfrom'react'
2-
import{send}from'../../utils/vscode'
2+
import{send}from'utils/vscode'
33

4-
importRouterfrom'../../components/Router'
4+
importRouterfrom'components/Router'
55
importLoadingPagefrom'../LoadingPage'
66
importSummaryPagefrom'./SummaryPage'
77
importLevelSummaryPagefrom'./LevelSummaryPage'
8-
importStagePagefrom'./StagePage'
8+
importStageSummaryPagefrom'./StageSummaryPage'
99
importCompletedPagefrom'./CompletedPage'
1010

1111
const{ Route}=Router
@@ -27,7 +27,7 @@ const Tutorial = (props: Props) => {
2727
<LevelSummaryPagesend={send}/>
2828
</Route>
2929
<Routepath="Tutorial.Stage">
30-
<StagePagesend={send}/>
30+
<StageSummaryPagesend={send}/>
3131
</Route>
3232
<Routepath="Tutorial.Completed">
3333
<CompletedPage/>

‎web-app/tsconfig.paths.json‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,13 @@
33
"baseUrl":"src",
44
"rootDirs": ["src","stories"],
55
"paths": {
6+
"components/*": ["./components/*"],
7+
"containers/*": ["./containers/*"],
8+
"services/*": ["./services/*"],
9+
"styles/*": ["./styles/*"],
610
"typings": ["../../typings/index.d.ts"],
7-
"typings/graphql": ["../../typings/graphql.d.ts"]
11+
"typings/graphql": ["../../typings/graphql.d.ts"],
12+
"utils/*": ["./utils/*"]
813
},
914
"allowSyntheticDefaultImports":true
1015
},

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp