fix: use maxun-core
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
import { WhereWhatPair, WorkflowFile } from "@wbr-project/wbr-interpret";
|
import { WhereWhatPair, WorkflowFile } from "maxun-core";
|
||||||
import { emptyWorkflow } from "../shared/constants";
|
import { emptyWorkflow } from "../shared/constants";
|
||||||
|
|
||||||
const axios = require('axios').default;
|
const axios = require('axios').default;
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import React, { FC } from 'react';
|
import React, { FC } from 'react';
|
||||||
import Typography from '@mui/material/Typography';
|
import Typography from '@mui/material/Typography';
|
||||||
import { WhereWhatPair } from "@wbr-project/wbr-interpret";
|
import { WhereWhatPair } from "maxun-core";
|
||||||
import styled from "styled-components";
|
import styled from "styled-components";
|
||||||
|
|
||||||
interface PairDisplayDivProps {
|
interface PairDisplayDivProps {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { WhereWhatPair } from "@wbr-project/wbr-interpret";
|
import { WhereWhatPair } from "maxun-core";
|
||||||
import { GenericModal } from "../atoms/GenericModal";
|
import { GenericModal } from "../atoms/GenericModal";
|
||||||
import { modalStyle } from "./AddWhereCondModal";
|
import { modalStyle } from "./AddWhereCondModal";
|
||||||
import { Button, MenuItem, TextField, Typography } from "@mui/material";
|
import { Button, MenuItem, TextField, Typography } from "@mui/material";
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import {
|
|||||||
} from "@mui/material";
|
} from "@mui/material";
|
||||||
import React, { useRef } from "react";
|
import React, { useRef } from "react";
|
||||||
import { GenericModal } from "../atoms/GenericModal";
|
import { GenericModal } from "../atoms/GenericModal";
|
||||||
import { WhereWhatPair } from "@wbr-project/wbr-interpret";
|
import { WhereWhatPair } from "maxun-core";
|
||||||
import { SelectChangeEvent } from "@mui/material/Select/Select";
|
import { SelectChangeEvent } from "@mui/material/Select/Select";
|
||||||
import { DisplayConditionSettings } from "./DisplayWhereConditionSettings";
|
import { DisplayConditionSettings } from "./DisplayWhereConditionSettings";
|
||||||
import { useSocketStore } from "../../context/socket";
|
import { useSocketStore } from "../../context/socket";
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import { interpretCurrentRecording, stopCurrentInterpretation } from "../../api/
|
|||||||
import { useSocketStore } from "../../context/socket";
|
import { useSocketStore } from "../../context/socket";
|
||||||
import { useGlobalInfoStore } from "../../context/globalInfo";
|
import { useGlobalInfoStore } from "../../context/globalInfo";
|
||||||
import { GenericModal } from "../atoms/GenericModal";
|
import { GenericModal } from "../atoms/GenericModal";
|
||||||
import { WhereWhatPair } from "@wbr-project/wbr-interpret";
|
import { WhereWhatPair } from "maxun-core";
|
||||||
import HelpIcon from '@mui/icons-material/Help';
|
import HelpIcon from '@mui/icons-material/Help';
|
||||||
|
|
||||||
interface InterpretationButtonsProps {
|
interface InterpretationButtonsProps {
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import React, { useCallback, useEffect, useState } from 'react';
|
import React, { useCallback, useEffect, useState } from 'react';
|
||||||
import Box from "@mui/material/Box";
|
import Box from "@mui/material/Box";
|
||||||
import { Pair } from "./Pair";
|
import { Pair } from "./Pair";
|
||||||
import { WhereWhatPair, WorkflowFile } from "@wbr-project/wbr-interpret";
|
import { WhereWhatPair, WorkflowFile } from "maxun-core";
|
||||||
import { useSocketStore } from "../../context/socket";
|
import { useSocketStore } from "../../context/socket";
|
||||||
import { Add } from "@mui/icons-material";
|
import { Add } from "@mui/icons-material";
|
||||||
import { Socket } from "socket.io-client";
|
import { Socket } from "socket.io-client";
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import React, { FC, useState } from 'react';
|
import React, { FC, useState } from 'react';
|
||||||
import { Stack, Button, IconButton, Tooltip, Chip, Badge } from "@mui/material";
|
import { Stack, Button, IconButton, Tooltip, Chip, Badge } from "@mui/material";
|
||||||
import { AddPair, deletePair, UpdatePair } from "../../api/workflow";
|
import { AddPair, deletePair, UpdatePair } from "../../api/workflow";
|
||||||
import { WorkflowFile } from "@wbr-project/wbr-interpret";
|
import { WorkflowFile } from "maxun-core";
|
||||||
import { ClearButton } from "../atoms/buttons/ClearButton";
|
import { ClearButton } from "../atoms/buttons/ClearButton";
|
||||||
import { GenericModal } from "../atoms/GenericModal";
|
import { GenericModal } from "../atoms/GenericModal";
|
||||||
import { PairEditForm } from "./PairEditForm";
|
import { PairEditForm } from "./PairEditForm";
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import React, { useLayoutEffect, useRef, useState } from 'react';
|
import React, { useLayoutEffect, useRef, useState } from 'react';
|
||||||
import { WhereWhatPair } from "@wbr-project/wbr-interpret";
|
import { WhereWhatPair } from "maxun-core";
|
||||||
import { Box, Button, IconButton, MenuItem, Stack, TextField, Tooltip, Typography } from "@mui/material";
|
import { Box, Button, IconButton, MenuItem, Stack, TextField, Tooltip, Typography } from "@mui/material";
|
||||||
import { Close, KeyboardArrowDown, KeyboardArrowUp } from "@mui/icons-material";
|
import { Close, KeyboardArrowDown, KeyboardArrowUp } from "@mui/icons-material";
|
||||||
import TreeView from '@mui/lab/TreeView';
|
import TreeView from '@mui/lab/TreeView';
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { Button, TextField, Typography } from "@mui/material";
|
import { Button, TextField, Typography } from "@mui/material";
|
||||||
import React, { FC } from "react";
|
import React, { FC } from "react";
|
||||||
import { Preprocessor, WhereWhatPair } from "@wbr-project/wbr-interpret";
|
import { Preprocessor, WhereWhatPair } from "maxun-core";
|
||||||
|
|
||||||
interface PairProps {
|
interface PairProps {
|
||||||
index: string;
|
index: string;
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import TableHead from '@mui/material/TableHead';
|
|||||||
import TablePagination from '@mui/material/TablePagination';
|
import TablePagination from '@mui/material/TablePagination';
|
||||||
import TableRow from '@mui/material/TableRow';
|
import TableRow from '@mui/material/TableRow';
|
||||||
import { useEffect } from "react";
|
import { useEffect } from "react";
|
||||||
import { WorkflowFile } from "@wbr-project/wbr-interpret";
|
import { WorkflowFile } from "maxun-core";
|
||||||
import { IconButton } from "@mui/material";
|
import { IconButton } from "@mui/material";
|
||||||
import { Assignment, DeleteForever, Edit, PlayCircle } from "@mui/icons-material";
|
import { Assignment, DeleteForever, Edit, PlayCircle } from "@mui/icons-material";
|
||||||
import { useGlobalInfoStore } from "../../context/globalInfo";
|
import { useGlobalInfoStore } from "../../context/globalInfo";
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import { InterpretationButtons } from "./InterpretationButtons";
|
|||||||
import { AddButton } from "../atoms/buttons/AddButton";
|
import { AddButton } from "../atoms/buttons/AddButton";
|
||||||
import { GenericModal } from "../atoms/GenericModal";
|
import { GenericModal } from "../atoms/GenericModal";
|
||||||
import { PairEditForm } from "./PairEditForm";
|
import { PairEditForm } from "./PairEditForm";
|
||||||
import { WhereWhatPair, WorkflowFile } from "@wbr-project/wbr-interpret";
|
import { WhereWhatPair, WorkflowFile } from "maxun-core";
|
||||||
import { AddPair } from "../../api/workflow";
|
import { AddPair } from "../../api/workflow";
|
||||||
import { Button, Stack } from "@mui/material";
|
import { Button, Stack } from "@mui/material";
|
||||||
import { FastForward } from "@mui/icons-material";
|
import { FastForward } from "@mui/icons-material";
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import { Box, Paper, Tab, Tabs } from "@mui/material";
|
|||||||
import React, { useCallback, useEffect, useState } from "react";
|
import React, { useCallback, useEffect, useState } from "react";
|
||||||
import { getActiveWorkflow, getParamsOfActiveWorkflow } from "../../api/workflow";
|
import { getActiveWorkflow, getParamsOfActiveWorkflow } from "../../api/workflow";
|
||||||
import { useSocketStore } from '../../context/socket';
|
import { useSocketStore } from '../../context/socket';
|
||||||
import { WhereWhatPair, WorkflowFile } from "@wbr-project/wbr-interpret";
|
import { WhereWhatPair, WorkflowFile } from "maxun-core";
|
||||||
import { SidePanelHeader } from "../molecules/SidePanelHeader";
|
import { SidePanelHeader } from "../molecules/SidePanelHeader";
|
||||||
import { emptyWorkflow } from "../../shared/constants";
|
import { emptyWorkflow } from "../../shared/constants";
|
||||||
import { LeftSidePanelContent } from "../molecules/LeftSidePanelContent";
|
import { LeftSidePanelContent } from "../molecules/LeftSidePanelContent";
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ import { ActionProvider } from "../context/browserActions"
|
|||||||
import { BrowserStepsProvider } from '../context/browserSteps';
|
import { BrowserStepsProvider } from '../context/browserSteps';
|
||||||
import { useGlobalInfoStore } from "../context/globalInfo";
|
import { useGlobalInfoStore } from "../context/globalInfo";
|
||||||
import { editRecordingFromStorage } from "../api/storage";
|
import { editRecordingFromStorage } from "../api/storage";
|
||||||
import { WhereWhatPair } from "@wbr-project/wbr-interpret";
|
import { WhereWhatPair } from "maxun-core";
|
||||||
import styled from "styled-components";
|
import styled from "styled-components";
|
||||||
|
|
||||||
interface RecordingPageProps {
|
interface RecordingPageProps {
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
import { WorkflowFile } from "@wbr-project/wbr-interpret";
|
import { WorkflowFile } from "maxun-core";
|
||||||
|
|
||||||
export const emptyWorkflow: WorkflowFile = { workflow: [] };
|
export const emptyWorkflow: WorkflowFile = { workflow: [] };
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { WorkflowFile } from "@wbr-project/wbr-interpret";
|
import { WorkflowFile } from "maxun-core";
|
||||||
import { Locator } from "playwright";
|
import { Locator } from "playwright";
|
||||||
|
|
||||||
export type Workflow = WorkflowFile["workflow"];
|
export type Workflow = WorkflowFile["workflow"];
|
||||||
@@ -15,7 +15,7 @@ export interface ScreenshotSettings {
|
|||||||
fullPage?: boolean;
|
fullPage?: boolean;
|
||||||
mask?: Locator[];
|
mask?: Locator[];
|
||||||
omitBackground?: boolean;
|
omitBackground?: boolean;
|
||||||
// is this still needed? - @wbr-project/wbr-interpret outputs to a binary output
|
// is this still needed? - maxun-core outputs to a binary output
|
||||||
path?: string;
|
path?: string;
|
||||||
quality?: number;
|
quality?: number;
|
||||||
scale?: "css" | "device";
|
scale?: "css" | "device";
|
||||||
|
|||||||
Reference in New Issue
Block a user