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

Large diffs are not rendered by default.

265 changes: 0 additions & 265 deletions Apps/Web/AI_Recorder_2/dist/assets/index-DLSinZ59.js

This file was deleted.

1 change: 0 additions & 1 deletion Apps/Web/AI_Recorder_2/dist/assets/index-DLSinZ59.js.map

This file was deleted.

222 changes: 222 additions & 0 deletions Apps/Web/AI_Recorder_2/dist/assets/index-ZxKYERgc.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions Apps/Web/AI_Recorder_2/dist/assets/index-ZxKYERgc.js.map

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion Apps/Web/AI_Recorder_2/dist/background/back_reocrder.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,8 @@ async function record_action(id, command, xpath, value, url, tagName, document,
browserAppData.runtime.sendMessage({
action: 'record-start',
data: {
id:id
id: id,
action: action_name_convert[command]
},
})
if (Object.keys(action_name_convert).includes(command)) command = action_name_convert[command];
Expand Down
4 changes: 2 additions & 2 deletions Apps/Web/AI_Recorder_2/dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
<!-- <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous"> -->
<!-- <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM" crossorigin="anonymous"></script> -->

<script type="module" crossorigin src="/assets/index-DLSinZ59.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-BlYQBfWo.css">
<script type="module" crossorigin src="/assets/index-ZxKYERgc.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-CrwDEiCX.css">
</head>
<body>
<div id="root"></div>
Expand Down
3 changes: 2 additions & 1 deletion Apps/Web/AI_Recorder_2/public/background/back_reocrder.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,8 @@ async function record_action(id, command, xpath, value, url, tagName, document,
browserAppData.runtime.sendMessage({
action: 'record-start',
data: {
id:id
id: id,
action: action_name_convert[command]
},
})
if (Object.keys(action_name_convert).includes(command)) command = action_name_convert[command];
Expand Down
40 changes: 21 additions & 19 deletions Apps/Web/AI_Recorder_2/src/Action.tsx
Original file line number Diff line number Diff line change
@@ -1,34 +1,36 @@
// import {Helmet} from "react-helmet";
import {DeleteOutlined} from '@ant-design/icons'
import type {actionType} from './common'
interface actionInterface{
import { DeleteOutlined } from '@ant-design/icons'
import type { actionType } from './common'
interface actionInterface {
action: actionType
idx: number
removeAction: (index:number[], animate:Boolean) => void
animationRemove: (index:number) => void
removeAction: (index: number[], animate: Boolean) => void
animationRemove: (index: number) => void
}

export function Action({action, idx, removeAction, animationRemove}: actionInterface) {
const handeOnRemove = ()=>{
export function Action({ action, idx, removeAction, animationRemove }: actionInterface) {
const handeOnRemove = () => {
removeAction([idx], false)
}
const handeAnimationEnd = ()=>{
const handeAnimationEnd = () => {
animationRemove(idx)
}
return (
action.stillRecording ? <></> : (
<>
<div className={"action py-3 pl-3 mb-1 d-flex align-item-center" + (action.animateRomove? ' animExit' : '')}>
{/* <div><img className="d-inline-block zeuz-icon" src="../small_logo.png" alt=""/></div> */}
<div className="d-inline-block pl-2 pr-4">{idx+1}</div>
<div className={"action-text "+ (action.typeWrite ? "typing-demo" : "")} onAnimationEnd={handeAnimationEnd} >{(action==undefined) ? 'Loading...' : action.name}</div>
<div className="del-button py-0 ml-auto mr-3" onClick={handeOnRemove}>
{/* <img src="trash.svg" alt="" height={14} width={14} className="trash-icon"/>
<span className="visually-hidden">Button</span> */}
<DeleteOutlined />
<>
<div className={"action py-2 pl-3 mb-1 d-flex align-item-center" + (action.animateRomove ? ' animExit' : '')}>
{/* <div><img className="d-inline-block zeuz-icon" src="../small_logo.png" alt=""/></div> */}
<div className="action-no d-inline-block pl-2 pr-4">{idx + 1}</div>
<div className={"action-text " + (action.typeWrite ? "typing-demo" : "")} onAnimationEnd={handeAnimationEnd} >{(action == undefined) ? 'Loading...' : action.name}</div>
<div className="del-button-container py-0 ml-auto">
<div className="del-button" onClick={handeOnRemove}>
{/* <img src="trash.svg" alt="" height={14} width={14} className="trash-icon"/>
<span className="visually-hidden">Button</span> */}
<DeleteOutlined />
</div>
</div>
</div>
</div>
</>)
</>)
)
}

Loading