Skip to content

Commit b661e4f

Browse files
committed
lambda: add .nvmrc
1 parent 37d0301 commit b661e4f

File tree

28 files changed

+385
-6986
lines changed

28 files changed

+385
-6986
lines changed

packages/lambda/.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
14.15.0

packages/lambda/package-lock.json

Lines changed: 361 additions & 6690 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/lambda/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"private": true,
66
"license": "MIT",
77
"engines": {
8-
"node": "14"
8+
"node": "14.x"
99
},
1010
"scripts": {
1111
"build": "npx tsc",

packages/web/public/index.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
window.dataLayer = window.dataLayer || [];
1313
function gtag() { dataLayer.push(arguments); }
1414
gtag('js', new Date());
15-
1615
gtag('config', 'UA-172363386-2');
1716
</script>
1817

packages/web/public/prism-dark.css

Lines changed: 0 additions & 130 deletions
This file was deleted.

packages/web/public/prism-light.css

Lines changed: 0 additions & 143 deletions
This file was deleted.

packages/web/src/components/app/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ import { toast, Toaster } from 'react-hot-toast'
33
import { ThemeProvider } from 'styled-components'
44
import { DEFAULT_THEME_TYPE } from '../../config/consts'
55
import GlobalStyle from '../../styles/global'
6-
import { default as theme, default as themes } from '../../styles/themes'
7-
import { FunctionData, Language, ThemeType, TreeViewerData } from '../../types'
6+
import { default as theme, default as themes, ThemeType } from '../../styles/themes'
7+
import { FunctionData, Language, TreeViewerData } from '../../types'
88
import FunctionForm from '../function-form'
9-
import TreeViewer from '../graph-viewer'
9+
import TreeViewer from '../tree-viewer'
1010
import { fetchTreeViewerData } from './../../config/api'
1111
import Footer from './footer'
1212
import * as s from './styles'

packages/web/src/components/function-form/code-editor/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@ import type { PrismTheme } from 'prism-react-renderer'
44
import { Highlight, themes } from 'prism-react-renderer'
55

66
import { ThemeContext } from 'styled-components'
7-
import { Language, ThemeType } from '../../../types'
7+
import { Language } from '../../../types'
88
import * as s from './styles'
99
import { LanguageHandler } from '../../../logic/language-handler'
10+
import { ThemeType } from '../../../styles/themes'
1011

1112
type Props = {
1213
lang: Language

packages/web/src/components/function-form/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ import {
1313
GlobalVar,
1414
Language,
1515
Template,
16-
ThemeType,
1716
} from '../../types'
1817
import './carbon-ads.css'
1918
import CodeEditor from './code-editor'
2019
import * as s from './styles'
20+
import { ThemeType } from '../../styles/themes'
2121

2222
const DEFAULT_LANGUAGE: Language = 'python'
2323

packages/web/src/components/graph-viewer/progress-bar/index.tsx renamed to packages/web/src/components/tree-viewer/progress-bar/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import React from 'react'
22

33
import { Container, Button, WrapperBar, Bar } from './styles'
4-
import { FirstIcon } from './../../../icons/first'
5-
import { LastIcon } from './../../../icons/last'
4+
import { FirstIcon } from '../../../icons/first'
5+
import { LastIcon } from '../../../icons/last'
66
import { NextIcon } from '../../../icons/next'
7-
import { PreviousIcon } from './../../../icons/previous'
7+
import { PreviousIcon } from '../../../icons/previous'
88

99
type Props = {
1010
value: number

packages/web/src/components/graph-viewer/styles.ts renamed to packages/web/src/components/tree-viewer/styles.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import styled from 'styled-components'
2-
import { LogoIcon as LogoIconBase } from './../../icons/logo'
2+
import { LogoIcon as LogoIconBase } from '../../icons/logo'
33

44
export const Container = styled.div`
55
flex-grow: 1;

packages/web/src/config/consts.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { Language, ThemeType } from '../types'
1+
import { ThemeType } from '../styles/themes'
2+
import { Language } from '../types'
23

34
export const DEFAULT_THEME_TYPE: ThemeType = 'light'
45

packages/web/src/styles/themes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ThemeType as ThemeType } from '../types'
1+
export type ThemeType = 'light' | 'dark'
22

33
const common = {
44
fonts: {

packages/web/src/types.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ export type UnparsedFunctionData = {
77
fnGlobalVars: GlobalVar[]
88
}
99

10-
export type ThemeType = 'light' | 'dark'
1110
export type Language = 'node' | 'python' | 'golang'
1211
export type Template =
1312
| 'custom'

0 commit comments

Comments
 (0)