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
return config
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 * as React from 'react'
2-
import Markdown from '../../Markdown'
2+
import Markdown from 'components/Markdown'
33

44
const styles = {
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 * as T from 'typings/graphql'
55

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

1111
interface Props {
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 * as T from 'typings/graphql'
44

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

1111
interface Props {
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 * as T from 'typings/graphql'
44

5-
import ErrorView from '../../../components/Error'
6-
import Level from '../../../components/Level'
5+
import ErrorView from 'components/Error'
6+
import Level from 'components/Level'
77
import queryLevel from './queryLevel'
88

99
interface LevelProps {

‎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 * as T from 'typings/graphql'
44

5-
import Stage from '../../../components/Stage'
6-
import ErrorView from '../../../components/Error'
5+
import Stage from 'components/Stage'
6+
import ErrorView from 'components/Error'
77
import queryStage from './queryStage'
88

99
interface PageProps {

‎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 * as React from 'react'
2-
import DataContext from '../../utils/DataContext'
3-
import Summary from '../../components/Summary'
2+
import DataContext from 'utils/DataContext'
3+
import Summary from 'components/Summary'
44

55
interface PageProps {
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 * as React from 'react'
2-
import { send } from '../../utils/vscode'
2+
import { send } from 'utils/vscode'
33

4-
import Router from '../../components/Router'
4+
import Router from 'components/Router'
55
import LoadingPage from '../LoadingPage'
66
import SummaryPage from './SummaryPage'
77
import LevelSummaryPage from './LevelSummaryPage'
8-
importStagePage from './StagePage'
8+
importStageSummaryPage from './StageSummaryPage'
99
import CompletedPage from './CompletedPage'
1010

1111
const { Route } = Router
@@ -27,7 +27,7 @@ const Tutorial = (props: Props) => {
2727
<LevelSummaryPage send={send} />
2828
</Route>
2929
<Route path="Tutorial.Stage">
30-
<StagePage send={send} />
30+
<StageSummaryPage send={send} />
3131
</Route>
3232
<Route path="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