This repository has been archived by the owner on Dec 7, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
72 changed files
with
8,162 additions
and
5,859 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 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,15 +1,15 @@ | ||
{ | ||
"name": "@metamask/template-snap-monorepo", | ||
"name": "@tuum-tech/hedera-pulse-monorepo", | ||
"version": "0.1.0", | ||
"private": true, | ||
"description": "", | ||
"homepage": "https://github.com/MetaMask/template-snap-monorepo#readme", | ||
"homepage": "https://github.com/tuum-tech/hedera-pulse#readme", | ||
"bugs": { | ||
"url": "https://github.com/MetaMask/template-snap-monorepo/issues" | ||
"url": "https://github.com/tuum-tech/hedera-pulse/issues" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/MetaMask/template-snap-monorepo.git" | ||
"url": "git+https://github.com/tuum-tech/hedera-pulse.git" | ||
}, | ||
"license": "(MIT-0 OR Apache-2.0)", | ||
"author": "", | ||
|
@@ -18,34 +18,34 @@ | |
], | ||
"scripts": { | ||
"build": "yarn workspaces foreach --parallel --topological --verbose run build", | ||
"install-chrome": "./scripts/install-chrome.sh", | ||
"clean": "yarn workspaces foreach --parallel --interlaced --verbose run clean", | ||
"lint": "yarn lint:eslint && yarn lint:misc --check", | ||
"lint:eslint": "eslint . --cache --ext js,ts", | ||
"lint:fix": "yarn lint:eslint --fix && yarn lint:misc --write", | ||
"lint:misc": "prettier '**/*.json' '**/*.md' '!**/CHANGELOG.md' '**/*.yml' --ignore-path .gitignore", | ||
"start": "yarn workspaces foreach --parallel --interlaced --verbose run start", | ||
"test": "echo \"TODO\"" | ||
"test": "yarn workspaces foreach --parallel --interlaced --verbose run test" | ||
}, | ||
"devDependencies": { | ||
"@metamask/eslint-config": "^10.0.0", | ||
"@metamask/eslint-config-jest": "^10.0.0", | ||
"@metamask/eslint-config-nodejs": "^10.0.0", | ||
"@metamask/eslint-config-typescript": "^10.0.0", | ||
"@typescript-eslint/eslint-plugin": "^5.33.0", | ||
"@typescript-eslint/parser": "^5.33.0", | ||
"eslint": "^8.21.0", | ||
"eslint-config-prettier": "^8.1.0", | ||
"eslint-plugin-import": "^2.26.0", | ||
"eslint-plugin-jest": "^26.8.2", | ||
"eslint-plugin-jsdoc": "^39.2.9", | ||
"@metamask/eslint-config": "^11.1.0", | ||
"@metamask/eslint-config-jest": "^11.1.0", | ||
"@metamask/eslint-config-nodejs": "^11.1.0", | ||
"@metamask/eslint-config-typescript": "^11.1.0", | ||
"@typescript-eslint/eslint-plugin": "^5.57.1", | ||
"@typescript-eslint/parser": "^5.57.1", | ||
"eslint": "^8.38.0", | ||
"eslint-config-prettier": "^9.0.0", | ||
"eslint-plugin-import": "^2.28.1", | ||
"eslint-plugin-jest": "^27.4.0", | ||
"eslint-plugin-jsdoc": "^46.8.1", | ||
"eslint-plugin-node": "^11.1.0", | ||
"eslint-plugin-prettier": "^4.2.1", | ||
"prettier": "^2.2.1", | ||
"prettier-plugin-packagejson": "^2.2.18", | ||
"typescript": "^4.7.4" | ||
"prettier": "^3.0.3", | ||
"prettier-plugin-packagejson": "^2.4.5", | ||
"typescript": "^5.2.2" | ||
}, | ||
"packageManager": "[email protected]", | ||
"engines": { | ||
"node": ">=16.0.0" | ||
"node": ">=18.13.0" | ||
} | ||
} |
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
2 changes: 1 addition & 1 deletion
2
packages/site/src/components/Footer.tsx → packages/site/src/components/base/Footer.tsx
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
File renamed without changes.
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,37 @@ | ||
import { useCallback, useContext, useMemo } from 'react'; | ||
import Button from 'react-bootstrap/Button'; | ||
import Modal from 'react-bootstrap/Modal'; | ||
import { ModalContext } from '../../contexts/ModalContext'; | ||
|
||
const CustomModal = () => { | ||
const { show, setShow, modalData } = useContext(ModalContext); | ||
|
||
const handleClose = useCallback(() => setShow(false), [setShow]); | ||
|
||
const content = useMemo(() => { | ||
try { | ||
const data = JSON.parse(modalData?.content || ''); | ||
return JSON.stringify(data, undefined, 2); | ||
} catch (e) { | ||
return modalData?.content; | ||
} | ||
}, [modalData]); | ||
|
||
return ( | ||
<Modal show={show} onHide={handleClose} animation={false}> | ||
<Modal.Header closeButton> | ||
<Modal.Title>{modalData?.title}</Modal.Title> | ||
</Modal.Header> | ||
<Modal.Body> | ||
<pre>{content}</pre> | ||
</Modal.Body> | ||
<Modal.Footer> | ||
<Button variant="secondary" onClick={handleClose}> | ||
Close | ||
</Button> | ||
</Modal.Footer> | ||
</Modal> | ||
); | ||
}; | ||
|
||
export { CustomModal as Modal }; |
File renamed without changes.
File renamed without changes.
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,7 @@ | ||
import styled from 'styled-components'; | ||
|
||
export const TextInput = styled.textarea<{ | ||
fullWidth?: boolean; | ||
}>` | ||
width: ${({ fullWidth }) => (fullWidth ? '100%' : 'auto')}; | ||
`; |
File renamed without changes.
Oops, something went wrong.