Skip to content

Commit

Permalink
final touches
Browse files Browse the repository at this point in the history
  • Loading branch information
seriouscatsoserious committed Feb 1, 2025
1 parent 7fa2afe commit 8f45229
Show file tree
Hide file tree
Showing 6 changed files with 69 additions and 11 deletions.
18 changes: 18 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"@fortawesome/react-fontawesome": "^0.2.2",
"@grpc/grpc-js": "^1.12.5",
"@grpc/proto-loader": "^0.7.13",
"@primer/octicons-react": "^19.14.0",
"@reduxjs/toolkit": "^2.2.6",
"@testing-library/jest-dom": "^5.17.0",
"@testing-library/react": "^13.4.0",
Expand Down Expand Up @@ -104,7 +105,9 @@
"target": [
{
"target": "tar.gz",
"arch": ["x64"]
"arch": [
"x64"
]
}
],
"category": "Development",
Expand Down
12 changes: 6 additions & 6 deletions public/chain_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
"id": "bitcoin",
"enabled": true,
"version": "",
"display_name": "Bitcoin (Patched)",
"description": "Bitcoin Core modified with Drivechain functionality for sidechain support. Enables secure two-way pegging and communication between Bitcoin and its layer-2 sidechains.",
"repo_url": "https://github.com/LayerTwo-Labs/bitcoin",
"display_name": "Bitcoin Core 28.1",
"description": "The latest version of Bitcoin Core. (Run in signet mode — \"play money\".)",
"repo_url": "https://github.com/bitcoin/bitcoin",
"released": "yes",
"directories": {
"base": {
Expand Down Expand Up @@ -55,8 +55,8 @@
"enabled": true,
"version": "",
"display_name": "BIP 300/301 Enforcer",
"description": "A critical component that enforces BIP 300/301 sidechain protocols on the Bitcoin mainchain. Ensures secure two-way pegging between Bitcoin and its sidechains.",
"repo_url": "https://github.com/LayerTwo-Labs/mainchain",
"description": "Activates Bip300, without changing Bitcoin's code.",
"repo_url": "https://github.com/LayerTwo-Labs/bip300301_enforcer",
"released": "yes",
"directories": {
"base": {
Expand Down Expand Up @@ -104,7 +104,7 @@
"enabled": true,
"version": "",
"display_name": "BitWindow",
"description": "A desktop interface for managing and interacting with Bitcoin sidechains. BitWindow enables users to create, monitor, and activate sidechains.",
"description": "A GUI for interacting with Bitcoin. Run this!",
"repo_url": "https://github.com/LayerTwo-Labs/bitwindow",
"released": "yes",
"directories": {
Expand Down
19 changes: 15 additions & 4 deletions src/components/Card.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { useTheme } from '../contexts/ThemeContext';
import ChainSettingsModal from './ChainSettingsModal';
import ForceStopModal from './ForceStopModal';
import SettingsIcon from './SettingsIcon';
import GitHubIcon from './GitHubIcon';
import Tooltip from './Tooltip';
import './StatusLight.css';

Expand Down Expand Up @@ -338,9 +339,20 @@ const Card = ({
>
{getButtonText()}
</button>
<button className="settings-icon-button" onClick={handleOpenSettings} aria-label="Chain Settings">
<SettingsIcon />
</button>
<div style={{ display: 'flex', gap: '8px' }}>
<a
href={chain.repo_url}
target="_blank"
rel="noopener noreferrer"
className="settings-icon-button"
aria-label="View GitHub Repository"
>
<GitHubIcon />
</a>
<button className="settings-icon-button" onClick={handleOpenSettings} aria-label="Chain Settings">
<SettingsIcon />
</button>
</div>
</div>
<Tooltip
text={getTooltipText()}
Expand Down Expand Up @@ -374,4 +386,3 @@ const Card = ({
};

export default Card;

13 changes: 13 additions & 0 deletions src/components/GitHubIcon.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import React from 'react';
import { MarkGithubIcon } from '@primer/octicons-react';
import styles from './GitHubIcon.module.css';

const GitHubIcon = () => {
return (
<div className={styles.icon}>
<MarkGithubIcon size={20} fill="currentColor" />
</div>
);
};

export default GitHubIcon;
13 changes: 13 additions & 0 deletions src/components/GitHubIcon.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
.icon {
opacity: 0.6;
transition: opacity 0.2s;
color: #333;
}

:global(.dark) .icon {
color: #fff;
}

.icon:hover {
opacity: 1;
}

0 comments on commit 8f45229

Please sign in to comment.