Complete rebranding of all components: - Core miner: xmrig -> miner (binary, version.h, CMakeLists.txt) - Proxy: xmrig-proxy -> miner-proxy - CUDA plugin: xmrig-cuda -> miner-cuda - Heatmap: xmrig-nonces-heatmap -> miner-nonces-heatmap - Go CLI wrapper: miner-cli -> miner-ctrl Vendored XMRig ecosystem into miner/ directory: - miner/core - XMRig CPU/GPU miner - miner/proxy - Stratum proxy - miner/cuda - NVIDIA CUDA plugin - miner/heatmap - Nonce visualization tool - miner/config - Configuration UI - miner/deps - Pre-built dependencies Updated dev fee to use project wallet with opt-out (kMinimumDonateLevel=0) Updated branding to Lethean (domain, copyright, version 0.1.0) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
42 lines
1.2 KiB
JavaScript
42 lines
1.2 KiB
JavaScript
'use strict';
|
|
|
|
import React from 'react';
|
|
import Icon from '@fortawesome/react-fontawesome';
|
|
import ClipboardButton from 'react-clipboard.js';
|
|
import AsyncModal from './AsyncModal';
|
|
import { Modal, Header, Title, Body, Footer, Cancel } from './Modal';
|
|
import {MODAL_SHARE_PRESET} from "../../constants/ModalTypes";
|
|
import {showAsync} from "../../actions/modals";
|
|
import {dismiss, showSuccess} from "../../actions/notification";
|
|
|
|
|
|
export default class SharePresetModal extends AsyncModal {
|
|
static show(dispatch) {
|
|
showAsync(MODAL_SHARE_PRESET, {}, dispatch)
|
|
.then(data => {})
|
|
.catch(err => null);
|
|
}
|
|
|
|
|
|
render() {
|
|
return (
|
|
<Modal>
|
|
<Header dismiss={this.props.dismiss}>
|
|
<Title><Icon icon="share-alt" /> Share preset url</Title>
|
|
</Header>
|
|
<Body>
|
|
<pre id="url">{window.location.href}</pre>
|
|
</Body>
|
|
<Footer>
|
|
<ClipboardButton button-title="Copy" className="btn btn-success" data-clipboard-target="#url" onSuccess={this.onCopied}><span><Icon icon="copy" /> Copy & Close</span></ClipboardButton>
|
|
<Cancel dismiss={this.props.dismiss} />
|
|
</Footer>
|
|
</Modal>
|
|
);
|
|
}
|
|
|
|
|
|
onCopied = () => {
|
|
this.resolve();
|
|
};
|
|
}
|