-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Manage tab to Digital Twins page preview (#957)
Adds manage tab to digital twins preview page. The manage tabs enables reconfiguration and deletion of digital twins. --------- Co-authored-by: vanessa <[email protected]>
- Loading branch information
1 parent
bfa34e0
commit 54f6dbe
Showing
65 changed files
with
3,542 additions
and
339 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "@into-cps-association/dtaas-web", | ||
"version": "0.5.0", | ||
"version": "0.6.0", | ||
"description": "Web client for Digital Twin as a Service (DTaaS)", | ||
"main": "index.tsx", | ||
"author": "prasadtalasila <[email protected]> (http://prasad.talasila.in/)", | ||
|
@@ -24,8 +24,6 @@ | |
"config:test": "npx shx cp config/test.js public/env.js && npx shx cp config/test.js build/env.js", | ||
"develop": "npx react-scripts start", | ||
"format": "prettier --ignore-path ../.gitignore --write \"**/*.{ts,tsx,css,scss}\"", | ||
"gitlab:compile": "npx tsc --project tsconfig.gitlab.json", | ||
"gitlab:run": "node dist/src/preview/util/gitlabDriver.js", | ||
"graph": "npx madge --image src.svg src && npx madge --image test.svg test", | ||
"start": "serve -s build -l 4000", | ||
"stop": "npx kill-port 4000", | ||
|
@@ -51,9 +49,13 @@ | |
"@emotion/styled": "^11.11.0", | ||
"@fontsource/roboto": "^5.0.8", | ||
"@gitbeaker/rest": "^40.1.2", | ||
"@monaco-editor/react": "^4.6.0", | ||
"@mui/icons-material": "^5.14.8", | ||
"@mui/material": "^5.14.8", | ||
"@mui/x-tree-view": "^7.19.0", | ||
"@reduxjs/toolkit": "^1.9.7", | ||
"@types/react-syntax-highlighter": "^15.5.13", | ||
"@types/remarkable": "^2.0.8", | ||
"@types/styled-components": "^5.1.32", | ||
"@typescript-eslint/eslint-plugin": "^6.12.0", | ||
"@typescript-eslint/parser": "^6.12.0", | ||
|
@@ -66,6 +68,8 @@ | |
"eslint-plugin-jest": "^27.6.0", | ||
"eslint-plugin-jsx-a11y": "^6.8.0", | ||
"eslint-plugin-react": "^7.33.2", | ||
"katex": "^0.16.11", | ||
"markdown-it-katex": "^2.0.3", | ||
"oidc-client-ts": "^2.2.2", | ||
"prop-types": "^15.8.1", | ||
"react": "^18.2.0", | ||
|
@@ -76,8 +80,11 @@ | |
"react-redux": "^8.1.3", | ||
"react-router-dom": "^6.20.0", | ||
"react-scripts": "^5.0.1", | ||
"react-syntax-highlighter": "^15.5.0", | ||
"react-tabs": "^6.0.2", | ||
"redux": "^4.2.1", | ||
"remarkable": "^2.0.1", | ||
"remarkable-katex": "^1.2.1", | ||
"resize-observer-polyfill": "^1.5.1", | ||
"serve": "^14.2.1", | ||
"styled-components": "^6.1.1", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
export interface Asset { | ||
name: string; | ||
description?: string; | ||
path: string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import * as React from 'react'; | ||
import { Dispatch, SetStateAction } from 'react'; | ||
import { Button } from '@mui/material'; | ||
|
||
interface DeleteButtonProps { | ||
setShowDelete: Dispatch<React.SetStateAction<boolean>>; | ||
} | ||
|
||
const handleToggleDeleteDialog = ( | ||
setShowDelete: Dispatch<SetStateAction<boolean>>, | ||
) => { | ||
setShowDelete(true); | ||
}; | ||
|
||
function DeleteButton({ setShowDelete }: DeleteButtonProps) { | ||
return ( | ||
<Button | ||
variant="contained" | ||
size="small" | ||
color="primary" | ||
onClick={() => handleToggleDeleteDialog(setShowDelete)} | ||
> | ||
Delete | ||
</Button> | ||
); | ||
} | ||
|
||
export default DeleteButton; |
Oops, something went wrong.