Skip to content

Commit 3b47f31

Browse files
committed
cleanup build warnings
Signed-off-by: shmck <shawn.j.mckay@gmail.com>
1 parent fbf4745 commit 3b47f31

File tree

8 files changed

+71
-912
lines changed

8 files changed

+71
-912
lines changed

web-app/package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,6 @@
5252
"@storybook/preset-create-react-app": "3.2.0",
5353
"@storybook/react": "6.4.0",
5454
"@types/git-url-parse": "9.0.1",
55-
"@types/graphql": "14.5.0",
56-
"@types/highlight.js": "10.1.0",
5755
"@types/jest": "26.0.23",
5856
"@types/js-yaml": "4.0.5",
5957
"@types/markdown-it": "12.2.3",

web-app/src/components/Markdown/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import MarkdownIt from 'markdown-it'
22
import Prism from 'prismjs'
3-
import { css, jsx, InterpolationWithTheme } from '@emotion/core'
3+
import { css, jsx } from '@emotion/core'
44
// @ts-ignore no types for package
55
import markdownEmoji from 'markdown-it-emoji'
66
import * as React from 'react'

web-app/src/containers/SelectTutorial/forms/TutorialUrl.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ interface Props {
99
onTutorialLoad(url: string): void
1010
}
1111

12-
const urlRegex = /[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_\+.~#?&//=]*)\.json/
12+
const urlRegex = /[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_+.~#?&//=]*)\.json/
1313

1414
const TutorialUrl = (props: Props) => {
1515
const [url, setUrl] = React.useState(props.defaultUrl)
Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
1-
import ReactDOM from 'react-dom'
2-
31
// document listeners
4-
52
document.addEventListener('securitypolicyviolation', () => {
63
// TODO: add error handling
7-
console.log('Security warning for resource')
4+
console.warn('CodeRoad security warning for resource')
85
})

web-app/src/services/state/actions/command.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as T from 'typings'
22
import { assign } from 'xstate'
33

4-
export default {
4+
const commands = {
55
commandStart: assign({
66
processes: (context: T.MachineContext, event: T.MachineEvent): any => {
77
let processes: T.ProcessEvent[] = context.processes
@@ -28,3 +28,5 @@ export default {
2828
},
2929
}),
3030
}
31+
32+
export default commands

web-app/src/services/state/actions/editor.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import * as TT from 'typings/tutorial'
33
import { assign } from 'xstate'
44
import * as selectors from '../../selectors'
55

6-
export default (editorSend: any) => ({
6+
const editorActions = (editorSend: any) => ({
77
startup(): void {
88
editorSend({
99
type: 'EDITOR_STARTUP',
@@ -161,3 +161,5 @@ export default (editorSend: any) => ({
161161
})
162162
},
163163
})
164+
165+
export default editorActions

web-app/src/services/state/actions/utils/stepNext.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import * as T from 'typings'
22
import * as TT from 'typings/tutorial'
3-
import logger from '../../../../services/logger'
43

54
const getStepNext = (position: T.Position, level: TT.Level): T.Action => {
65
const { steps } = level

0 commit comments

Comments
 (0)