-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #57 from ResilientApp/SCM-22
Send Trans Func
- Loading branch information
Showing
20 changed files
with
184 additions
and
42 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png"><link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png"><link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png"><link rel="manifest" href="/site.webmanifest"><meta name="msapplication-TileColor" content="#da532c"><meta name="theme-color" content="#ffffff"><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Visualizer for the ResilientDB Blockchain fabric"/><meta name="author" description="aunshx"/><link rel="stylesheet" href="https://unpkg.com/aos@next/dist/aos.css"/><title>ResView</title><script defer="defer" src="/static/js/main.769ac484.js"></script><link href="/static/css/main.ca6147c6.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script src="https://unpkg.com/aos@next/dist/aos.js"></script><script>AOS.init({delay:0,duration:600,offset:10})</script></body></html> | ||
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png"><link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png"><link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png"><link rel="manifest" href="/site.webmanifest"><meta name="msapplication-TileColor" content="#da532c"><meta name="theme-color" content="#ffffff"><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Visualizer for the ResilientDB Blockchain fabric"/><meta name="author" description="aunshx"/><link rel="stylesheet" href="https://unpkg.com/aos@next/dist/aos.css"/><title>ResView</title><script defer="defer" src="/static/js/main.ebbcce2f.js"></script><link href="/static/css/main.19935419.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script src="https://unpkg.com/aos@next/dist/aos.js"></script><script>AOS.init({delay:0,duration:600,offset:10})</script></body></html> |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
6 changes: 3 additions & 3 deletions
6
build/static/js/main.769ac484.js → build/static/js/main.ebbcce2f.js
Large diffs are not rendered by default.
Oops, something went wrong.
File renamed without changes.
Large diffs are not rendered by default.
Oops, something went wrong.
94 changes: 94 additions & 0 deletions
94
src/Components/Pages/Visualizer/Graphs/MVT/Components/Form.js
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,94 @@ | ||
import React, { useContext, useState } from 'react'; | ||
import { FontVarTitle } from '../../../../../Shared/Title'; | ||
import { Icon } from '../../../../../Shared/Icon'; | ||
import { transactionsIcon } from '../../../../../../Resources/Icons'; | ||
import { ThemeContext } from '../../../../../../Context/theme'; | ||
import { ReplicaButton } from '../../../../../Shared/Buttons'; | ||
|
||
const Form = () => { | ||
const { theme } = useContext(ThemeContext); | ||
|
||
const [formData, setFormData] = useState({ | ||
formKey: '', | ||
value: '' | ||
}); | ||
|
||
const handleChange = (e) => { | ||
setFormData({ | ||
...formData, | ||
[e.target.name]: e.target.value | ||
}); | ||
}; | ||
|
||
const submitGet = () => { | ||
// ! CALL GET API HERE | ||
console.log('GET', formData.formKey); | ||
setFormData({ | ||
formKey: '', | ||
value: '' | ||
}); | ||
}; | ||
|
||
const submitCommit = () => { | ||
// ! CALL COMMIT API HERE | ||
console.log('COMMIT', formData); | ||
setFormData({ | ||
formKey: '', | ||
value: '' | ||
}); | ||
}; | ||
|
||
return ( | ||
<div className='mt-2 rounded-md w-550p py-4 px-2 border-3p border-solid border-gray-700 dark:border-gray-50 flex flex-col items-center justify-center gap-y-6 bg-blue-10 dark:bg-blue-450 h-320p'> | ||
<div className="flex items-center justify-center gap-x-2 w-full"> | ||
<Icon | ||
fill={theme ? "rgb(209,213,219)" : "black"} | ||
height={'1em'} | ||
path={transactionsIcon} | ||
viewBox={'0 0 448 512'} | ||
/> | ||
<FontVarTitle title={'Send Transaction'} /> | ||
</div> | ||
<div className="flex flex-col gap-y-2 w-full"> | ||
<FontVarTitle title={'Key'} fontClass={'text-15p'} /> | ||
<div className='px-8'> | ||
<input | ||
type="text" | ||
id="formKey-input" | ||
className="block w-full p-2 text-gray-900 border border-gray-300 rounded-lg bg-gray-50 text-xs focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500" | ||
value={formData.formKey} | ||
name='formKey' | ||
onChange={handleChange} | ||
/> | ||
</div> | ||
</div> | ||
<div className="flex flex-col gap-y-2 w-full"> | ||
<FontVarTitle title={'Value'} fontClass={'text-15p'} /> | ||
<div className='px-8'> | ||
<input | ||
type="text" | ||
id="value-input" | ||
className="block w-full p-2 text-gray-900 border border-gray-300 rounded-lg bg-gray-50 text-xs focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500" | ||
value={formData.value} | ||
name='value' | ||
onChange={handleChange} | ||
/> | ||
</div> | ||
</div> | ||
<div className="flex items-center justify-center gap-x-8 my-1 w-full"> | ||
<ReplicaButton | ||
title={'Get'} | ||
onClick={submitGet} | ||
faulty={false} | ||
/> | ||
<ReplicaButton | ||
title={'Commit'} | ||
onClick={submitCommit} | ||
faulty={false} | ||
/> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Form; |
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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