Skip to content

Update yarn, Node 16.x & deps #555

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
cleanup build warnings
Signed-off-by: shmck <shawn.j.mckay@gmail.com>
  • Loading branch information
ShMcK committed Dec 31, 2021
commit 3b47f314bc97dd7be8ec29a849f8da561801069e
2 changes: 0 additions & 2 deletions web-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,6 @@
"@storybook/preset-create-react-app": "3.2.0",
"@storybook/react": "6.4.0",
"@types/git-url-parse": "9.0.1",
"@types/graphql": "14.5.0",
"@types/highlight.js": "10.1.0",
"@types/jest": "26.0.23",
"@types/js-yaml": "4.0.5",
"@types/markdown-it": "12.2.3",
Expand Down
2 changes: 1 addition & 1 deletion web-app/src/components/Markdown/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import MarkdownIt from 'markdown-it'
import Prism from 'prismjs'
import { css, jsx, InterpolationWithTheme } from '@emotion/core'
import { css, jsx } from '@emotion/core'
// @ts-ignore no types for package
import markdownEmoji from 'markdown-it-emoji'
import * as React from 'react'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ interface Props {
onTutorialLoad(url: string): void
}

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

const TutorialUrl = (props: Props) => {
const [url, setUrl] = React.useState(props.defaultUrl)
Expand Down
5 changes: 1 addition & 4 deletions web-app/src/services/listeners/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
import ReactDOM from 'react-dom'

// document listeners

document.addEventListener('securitypolicyviolation', () => {
// TODO: add error handling
console.log('Security warning for resource')
console.warn('CodeRoad security warning for resource')
})
4 changes: 3 additions & 1 deletion web-app/src/services/state/actions/command.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as T from 'typings'
import { assign } from 'xstate'

export default {
const commands = {
commandStart: assign({
processes: (context: T.MachineContext, event: T.MachineEvent): any => {
let processes: T.ProcessEvent[] = context.processes
Expand All @@ -28,3 +28,5 @@ export default {
},
}),
}

export default commands
4 changes: 3 additions & 1 deletion web-app/src/services/state/actions/editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import * as TT from 'typings/tutorial'
import { assign } from 'xstate'
import * as selectors from '../../selectors'

export default (editorSend: any) => ({
const editorActions = (editorSend: any) => ({
startup(): void {
editorSend({
type: 'EDITOR_STARTUP',
Expand Down Expand Up @@ -161,3 +161,5 @@ export default (editorSend: any) => ({
})
},
})

export default editorActions
1 change: 0 additions & 1 deletion web-app/src/services/state/actions/utils/stepNext.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import * as T from 'typings'
import * as TT from 'typings/tutorial'
import logger from '../../../../services/logger'

const getStepNext = (position: T.Position, level: TT.Level): T.Action => {
const { steps } = level
Expand Down
Loading