fix: use maxun-core

This commit is contained in:
karishmas6
2024-07-31 22:46:38 +05:30
parent 19ca0fa517
commit 7d57e5adc0
15 changed files with 16 additions and 16 deletions

View File

@@ -1,4 +1,4 @@
import { WhereWhatPair, WorkflowFile } from "@wbr-project/wbr-interpret";
import { WhereWhatPair, WorkflowFile } from "maxun-core";
import { emptyWorkflow } from "../shared/constants";
const axios = require('axios').default;

View File

@@ -1,6 +1,6 @@
import React, { FC } from 'react';
import Typography from '@mui/material/Typography';
import { WhereWhatPair } from "@wbr-project/wbr-interpret";
import { WhereWhatPair } from "maxun-core";
import styled from "styled-components";
interface PairDisplayDivProps {

View File

@@ -1,4 +1,4 @@
import { WhereWhatPair } from "@wbr-project/wbr-interpret";
import { WhereWhatPair } from "maxun-core";
import { GenericModal } from "../atoms/GenericModal";
import { modalStyle } from "./AddWhereCondModal";
import { Button, MenuItem, TextField, Typography } from "@mui/material";

View File

@@ -6,7 +6,7 @@ import {
} from "@mui/material";
import React, { useRef } from "react";
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 { DisplayConditionSettings } from "./DisplayWhereConditionSettings";
import { useSocketStore } from "../../context/socket";

View File

@@ -5,7 +5,7 @@ import { interpretCurrentRecording, stopCurrentInterpretation } from "../../api/
import { useSocketStore } from "../../context/socket";
import { useGlobalInfoStore } from "../../context/globalInfo";
import { GenericModal } from "../atoms/GenericModal";
import { WhereWhatPair } from "@wbr-project/wbr-interpret";
import { WhereWhatPair } from "maxun-core";
import HelpIcon from '@mui/icons-material/Help';
interface InterpretationButtonsProps {

View File

@@ -1,7 +1,7 @@
import React, { useCallback, useEffect, useState } from 'react';
import Box from "@mui/material/Box";
import { Pair } from "./Pair";
import { WhereWhatPair, WorkflowFile } from "@wbr-project/wbr-interpret";
import { WhereWhatPair, WorkflowFile } from "maxun-core";
import { useSocketStore } from "../../context/socket";
import { Add } from "@mui/icons-material";
import { Socket } from "socket.io-client";

View File

@@ -1,7 +1,7 @@
import React, { FC, useState } from 'react';
import { Stack, Button, IconButton, Tooltip, Chip, Badge } from "@mui/material";
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 { GenericModal } from "../atoms/GenericModal";
import { PairEditForm } from "./PairEditForm";

View File

@@ -1,5 +1,5 @@
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 { Close, KeyboardArrowDown, KeyboardArrowUp } from "@mui/icons-material";
import TreeView from '@mui/lab/TreeView';

View File

@@ -1,6 +1,6 @@
import { Button, TextField, Typography } from "@mui/material";
import React, { FC } from "react";
import { Preprocessor, WhereWhatPair } from "@wbr-project/wbr-interpret";
import { Preprocessor, WhereWhatPair } from "maxun-core";
interface PairProps {
index: string;

View File

@@ -8,7 +8,7 @@ import TableHead from '@mui/material/TableHead';
import TablePagination from '@mui/material/TablePagination';
import TableRow from '@mui/material/TableRow';
import { useEffect } from "react";
import { WorkflowFile } from "@wbr-project/wbr-interpret";
import { WorkflowFile } from "maxun-core";
import { IconButton } from "@mui/material";
import { Assignment, DeleteForever, Edit, PlayCircle } from "@mui/icons-material";
import { useGlobalInfoStore } from "../../context/globalInfo";

View File

@@ -3,7 +3,7 @@ import { InterpretationButtons } from "./InterpretationButtons";
import { AddButton } from "../atoms/buttons/AddButton";
import { GenericModal } from "../atoms/GenericModal";
import { PairEditForm } from "./PairEditForm";
import { WhereWhatPair, WorkflowFile } from "@wbr-project/wbr-interpret";
import { WhereWhatPair, WorkflowFile } from "maxun-core";
import { AddPair } from "../../api/workflow";
import { Button, Stack } from "@mui/material";
import { FastForward } from "@mui/icons-material";

View File

@@ -2,7 +2,7 @@ import { Box, Paper, Tab, Tabs } from "@mui/material";
import React, { useCallback, useEffect, useState } from "react";
import { getActiveWorkflow, getParamsOfActiveWorkflow } from "../../api/workflow";
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 { emptyWorkflow } from "../../shared/constants";
import { LeftSidePanelContent } from "../molecules/LeftSidePanelContent";

View File

@@ -11,7 +11,7 @@ import { ActionProvider } from "../context/browserActions"
import { BrowserStepsProvider } from '../context/browserSteps';
import { useGlobalInfoStore } from "../context/globalInfo";
import { editRecordingFromStorage } from "../api/storage";
import { WhereWhatPair } from "@wbr-project/wbr-interpret";
import { WhereWhatPair } from "maxun-core";
import styled from "styled-components";
interface RecordingPageProps {

View File

@@ -1,3 +1,3 @@
import { WorkflowFile } from "@wbr-project/wbr-interpret";
import { WorkflowFile } from "maxun-core";
export const emptyWorkflow: WorkflowFile = { workflow: [] };

View File

@@ -1,4 +1,4 @@
import { WorkflowFile } from "@wbr-project/wbr-interpret";
import { WorkflowFile } from "maxun-core";
import { Locator } from "playwright";
export type Workflow = WorkflowFile["workflow"];
@@ -15,7 +15,7 @@ export interface ScreenshotSettings {
fullPage?: boolean;
mask?: Locator[];
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;
quality?: number;
scale?: "css" | "device";