Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,352 changes: 679 additions & 673 deletions .pnp.cjs

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
26 changes: 26 additions & 0 deletions packages/web-console/.babelrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"plugins": [
[
"styled-components",
{
"displayName": true,
"minify": false,
"pure": true,
"ssr": false
}
]
],
"presets": [
[
"@babel/env",
{
"corejs": "3.22",
"modules": false,
"shippedProposals": true,
"useBuiltIns": "entry"
}
],
"@babel/react",
"@babel/typescript"
]
}
95 changes: 0 additions & 95 deletions packages/web-console/babel.config.js

This file was deleted.

24 changes: 12 additions & 12 deletions packages/web-console/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
"start:prod": "cross-env NODE_ENV=production webpack-dev-server --progress"
},
"dependencies": {
"@babel/runtime-corejs3": "7.10.2",
"@fortawesome/fontawesome-free": "5.13.0",
"@monaco-editor/react": "^4.3.1",
"@popperjs/core": "2.4.2",
Expand All @@ -34,18 +33,20 @@
"animate.css": "3.7.2",
"bootstrap-sass": "3.4.1",
"clipboard": "2.0.6",
"core-js": "3.6.5",
"core-js": "^3.22.8",
"date-fns": "2.14.0",
"docsearch.js": "2.6.3",
"dotenv": "^10.0.0",
"echarts": "^5.2.2",
"glyphicons-halflings": "1.9.1",
"jquery": "3.5.1",
"monaco-editor": "^0.30.1",
"prop-types": "^15.8.1",
"ramda": "0.27.1",
"react": "16.13.1",
"react-contextmenu": "2.14.0",
"react-dom": "16.13.1",
"react-is": "^18.1.0",
"react-popper": "2.2.3",
"react-redux": "7.2.0",
"react-transition-group": "4.4.1",
Expand All @@ -61,17 +62,16 @@
"throttle-debounce": "2.2.1"
},
"devDependencies": {
"@babel/cli": "^7.15.7",
"@babel/core": "7.10.2",
"@babel/plugin-transform-react-jsx-source": "7.10.1",
"@babel/plugin-transform-runtime": "7.10.1",
"@babel/preset-env": "7.10.2",
"@babel/preset-react": "7.10.1",
"@babel/preset-typescript": "7.10.1",
"@babel/cli": "^7.17.10",
"@babel/core": "^7.18.2",
"@babel/preset-env": "^7.18.2",
"@babel/preset-react": "^7.17.12",
"@babel/preset-typescript": "^7.17.12",
"@types/node": "^17.0.41",
"@typescript-eslint/eslint-plugin": "^5.0.0",
"@typescript-eslint/parser": "^5.0.0",
"babel-loader": "8.1.0",
"babel-plugin-styled-components": "1.10.7",
"babel-loader": "^8.2.5",
"babel-plugin-styled-components": "^2.0.7",
"clean-webpack-plugin": "3.0.0",
"copy-webpack-plugin": "^11.0.0",
"cross-env": "7.0.2",
Expand All @@ -91,7 +91,7 @@
"fork-ts-checker-webpack-plugin": "6.1.0",
"handlebars": "4.7.7",
"handlebars-loader": "1.7.1",
"html-webpack-plugin": "4.3.0",
"html-webpack-plugin": "^5.5.0",
"mini-css-extract-plugin": "^2.6.0",
"prettier": "^2.5.1",
"rimraf": "3.0.2",
Expand Down
4 changes: 2 additions & 2 deletions packages/web-console/src/components/Button/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
import React, { forwardRef, MouseEvent, ReactNode, Ref } from "react"
import styled, { css } from "styled-components"

import type { Color, FontSize } from "types"
import { color } from "utils"
import type { Color, FontSize } from "../../types"
import { color } from "../../utils"

import { bezierTransition } from "../Transition"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import {
ContextMenu as ReactContextMenu,
ContextMenuProps,
} from "react-contextmenu"
import { color } from "utils"
import { color } from "../../utils"

const StyledContextMenu = styled(ReactContextMenu)`
z-index: 100;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
import React, { PropsWithChildren } from "react"
import styled from "styled-components"
import { MenuItem as ReactMenuItem, MenuItemProps } from "react-contextmenu"
import { color } from "utils"
import { color } from "../../utils"

const StyledMenuItem = styled(ReactMenuItem)`
color: ${color("draculaForeground")};
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { ReactNode } from "react"
import { PopperHover, Tooltip, Placement } from "components"
import { PopperHover, Tooltip, Placement } from "../"

type Props = {
icon: ReactNode
Expand Down
4 changes: 2 additions & 2 deletions packages/web-console/src/components/Input/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
import React, { ComponentProps, forwardRef, Ref } from "react"
import styled from "styled-components"

import { ButtonProps, getButtonSize } from "components"
import { color } from "utils"
import { ButtonProps, getButtonSize } from "../"
import { color } from "../../utils"

type Type = "text" | "number"

Expand Down
4 changes: 2 additions & 2 deletions packages/web-console/src/components/Link/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
import React from "react"
import styled from "styled-components"

import type { Color } from "types"
import { color } from "utils"
import type { Color } from "../../types"
import { color } from "../../utils"

import { Text, textStyles, TextProps } from "../Text"

Expand Down
2 changes: 1 addition & 1 deletion packages/web-console/src/components/PaneContent/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
import { ReactNode } from "react"
import styled from "styled-components"

import { color } from "utils"
import { color } from "../../utils"

type Props = Readonly<{
children: ReactNode
Expand Down
2 changes: 1 addition & 1 deletion packages/web-console/src/components/PaneMenu/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

import styled from "styled-components"

import { color } from "utils"
import { color } from "../../utils"

export const PaneMenu = styled.div`
position: relative;
Expand Down
9 changes: 4 additions & 5 deletions packages/web-console/src/components/Splitter/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ import React, {
useState,
} from "react"
import styled, { createGlobalStyle, css } from "styled-components"
import { DragIndicator } from "@styled-icons/material/DragIndicator"
import { DragIndicator } from "styled-icons/material"

import { color } from "utils"
import { color } from "../../utils"

const PreventUserSelectionHorizontal = createGlobalStyle`
html {
Expand Down Expand Up @@ -192,9 +192,8 @@ export const Splitter = ({
const clientPosition =
direction === "horizontal" ? "clientX" : "clientY"
const coordinate = direction === "horizontal" ? "x" : "y"
const offset = splitter.current.parentElement.getBoundingClientRect()[
coordinate
]
const offset =
splitter.current.parentElement.getBoundingClientRect()[coordinate]
let position = 0

if (window.TouchEvent && event.nativeEvent instanceof TouchEvent) {
Expand Down
2 changes: 1 addition & 1 deletion packages/web-console/src/components/SwitchButton/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

import React, { useCallback } from "react"
import styled from "styled-components"
import { PrimaryButton, SecondaryButton } from "components"
import { PrimaryButton, SecondaryButton } from "../"

type ItemValue = string

Expand Down
2 changes: 1 addition & 1 deletion packages/web-console/src/components/Text/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import React, { ReactNode } from "react"
import styled, { css } from "styled-components"

import type { Color, FontSize } from "types"
import { color } from "utils"
import { color } from "../../utils"

type FontStyle = "normal" | "italic"
type Transform = "capitalize" | "lowercase" | "uppercase"
Expand Down
4 changes: 2 additions & 2 deletions packages/web-console/src/components/Toast/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@

import styled from "styled-components"

import { Color } from "types"
import { color } from "utils"
import { Color } from "../../types"
import { color } from "../../utils"

export const Toast = styled.div<{ borderColor: Color }>`
position: relative;
Expand Down
4 changes: 2 additions & 2 deletions packages/web-console/src/components/ToggleButton/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
import React, { forwardRef, Ref } from "react"
import styled, { css } from "styled-components"

import type { Color, FontSize } from "types"
import { color } from "utils"
import type { Color, FontSize } from "../../types"
import { color } from "../../utils"

import { ButtonProps, getButtonSize } from "../Button"
import { bezierTransition } from "../Transition"
Expand Down
4 changes: 2 additions & 2 deletions packages/web-console/src/components/Tooltip/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
import React, { ReactNode, Ref } from "react"
import styled, { css } from "styled-components"

import { Text } from "components"
import { color } from "utils"
import { Text } from "../"
import { color } from "../../utils"

type Props = Readonly<{
arrow?: {
Expand Down
2 changes: 1 addition & 1 deletion packages/web-console/src/components/Tree/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
import React, { useState, useCallback, useEffect, useRef } from "react"
import Row from "../../scenes/Schema/Row"
import styled from "styled-components"
import { WrapWithIf } from "components"
import { WrapWithIf } from "../"

export type TreeNodeKind = "column" | "table" | "folder"

Expand Down
2 changes: 1 addition & 1 deletion packages/web-console/src/components/VirtualList/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from "react"
import { Virtuoso, VirtuosoProps } from "react-virtuoso"

export const VirtualList = ({ height, ...rest }: VirtuosoProps<any>) => {
export const VirtualList = ({ height, ...rest }: VirtuosoProps<any, any>) => {
return <Virtuoso style={height ? { height } : {}} {...rest} />
}
6 changes: 3 additions & 3 deletions packages/web-console/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ import {
createGlobalFadeTransition,
ScreenSizeProvider,
TransitionDuration,
} from "components"
import { actions, rootEpic, rootReducer } from "store"
import { StoreAction, StoreShape } from "types"
} from "./components"
import { actions, rootEpic, rootReducer } from "./store"
import { StoreAction, StoreShape } from "./types"

import Layout from "./scenes/Layout"
import { theme } from "./theme"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ import React, {
useState,
useContext,
} from "react"
import { getValue, setValue } from "utils/localStorage"
import { StoreKey } from "utils/localStorage/types"
import { getValue, setValue } from "../../utils/localStorage"
import { StoreKey } from "../../utils/localStorage/types"
import { parseBoolean, parseInteger } from "./utils"
import { LocalConfig, SettingsType } from "./types"

Expand Down
2 changes: 1 addition & 1 deletion packages/web-console/src/providers/QuestProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
******************************************************************************/

import React, { createContext, PropsWithChildren } from "react"
import * as QuestDB from "utils/questdb"
import * as QuestDB from "../utils/questdb"

const questClient = new QuestDB.Client()

Expand Down
4 changes: 2 additions & 2 deletions packages/web-console/src/scenes/Editor/Loader/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ import React, { useEffect, useRef, useState } from "react"
import { CSSTransition } from "react-transition-group"
import styled, { keyframes } from "styled-components"

import { TransitionDuration } from "components"
import { color } from "utils"
import { TransitionDuration } from "../../../components"
import { color } from "../../../utils"

type Props = Readonly<{
show: boolean
Expand Down
Loading