**Motivations:** - Complete documentation for dashboard, domains, ports and environment configuration - Add new services (ClamAV API, Watermark API) to the infrastructure - Enhance dashboard with new pages and improved functionality - Improve deployment scripts and service configurations **Root causes:** - Missing comprehensive documentation for infrastructure setup - Need for antivirus scanning service integration - Need for watermark service integration - Dashboard required additional pages and features **Correctifs:** - Added comprehensive documentation in docs/ (DASHBOARD.md, DOMAINS_AND_PORTS.md, ENVIRONMENT.md) - Updated systemd service files with proper environment variables - Enhanced nginx proxy configuration script - Updated maintenance documentation **Evolutions:** - Added new ClamAV API service (api-clamav) for file scanning - Added new Watermark API service (api-filigrane) for document watermarking - Enhanced signet-dashboard with new learn.html page - Improved dashboard UI with better styles and navigation - Enhanced app.js with new functionality and better error handling - Updated API documentation page with complete endpoint descriptions - Added deployment scripts for watermark and nginx configuration - Updated hash and UTXO lists with latest data - Enhanced server.js with new routes and improved Bitcoin RPC integration **Pages affectées:** - docs/DASHBOARD.md: New comprehensive dashboard documentation - docs/DOMAINS_AND_PORTS.md: New infrastructure domains and ports documentation - docs/ENVIRONMENT.md: New environment variables documentation - docs/MAINTENANCE.md: Updated maintenance procedures - docs/README.md: Updated main documentation - signet-dashboard/public/app.js: Enhanced with new features - signet-dashboard/public/styles.css: Improved styling - signet-dashboard/public/index.html: Enhanced main page - signet-dashboard/public/learn.html: New educational page - signet-dashboard/public/api-docs.html: Enhanced API documentation - signet-dashboard/public/hash-list.html: Updated hash list page - signet-dashboard/public/utxo-list.html: Updated UTXO list page - signet-dashboard/public/join-signet.html: Updated join signet page - signet-dashboard/src/server.js: Enhanced server with new routes - signet-dashboard/start.sh: Updated startup script - signet-dashboard/signet-dashboard.service: Updated systemd service - api-anchorage/anchorage-api.service: Updated systemd service - api-faucet/faucet-api.service: Updated systemd service - configure-nginx-proxy.sh: Enhanced nginx configuration script - add-watermark-certificate.sh: New watermark certificate script - deploy-watermark-nginx.sh: New deployment script - api-clamav/: New ClamAV API service - api-filigrane/: New Watermark API service - hash_list.txt, utxo_list.txt: Updated with latest data - anchor_count.txt: Updated anchor count
382 lines
6.6 KiB
CSS
382 lines
6.6 KiB
CSS
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
:root {
|
|
--primary-color: #f7931a;
|
|
--secondary-color: #1a1a1a;
|
|
--background-color: #f5f5f5;
|
|
--card-background: #ffffff;
|
|
--text-color: #333333;
|
|
--border-color: #e0e0e0;
|
|
--success-color: #28a745;
|
|
--error-color: #dc3545;
|
|
--warning-color: #ffc107;
|
|
}
|
|
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
|
|
background-color: var(--background-color);
|
|
color: var(--text-color);
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.container {
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
padding: 20px;
|
|
}
|
|
|
|
header {
|
|
text-align: center;
|
|
margin-bottom: 40px;
|
|
padding: 30px 0;
|
|
background: linear-gradient(135deg, var(--primary-color), #ff6b35);
|
|
color: white;
|
|
border-radius: 10px;
|
|
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
header h1 {
|
|
font-size: 2.5em;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.subtitle {
|
|
font-size: 1.2em;
|
|
opacity: 0.9;
|
|
}
|
|
|
|
.external-links {
|
|
margin-top: 15px;
|
|
}
|
|
|
|
.external-link {
|
|
display: inline-block;
|
|
padding: 10px 20px;
|
|
background-color: rgba(255, 255, 255, 0.2);
|
|
color: white;
|
|
text-decoration: none;
|
|
border-radius: 5px;
|
|
font-size: 1em;
|
|
transition: background-color 0.3s, transform 0.2s;
|
|
border: 1px solid rgba(255, 255, 255, 0.3);
|
|
}
|
|
|
|
.external-link:hover {
|
|
background-color: rgba(255, 255, 255, 0.3);
|
|
transform: translateY(-2px);
|
|
text-decoration: none;
|
|
}
|
|
|
|
main {
|
|
margin-bottom: 40px;
|
|
}
|
|
|
|
section {
|
|
margin-bottom: 40px;
|
|
}
|
|
|
|
section h2 {
|
|
font-size: 1.8em;
|
|
margin-bottom: 20px;
|
|
color: var(--secondary-color);
|
|
border-bottom: 3px solid var(--primary-color);
|
|
padding-bottom: 10px;
|
|
}
|
|
|
|
.grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
|
gap: 20px;
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
.card {
|
|
background: var(--card-background);
|
|
border-radius: 10px;
|
|
padding: 25px;
|
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
|
transition: transform 0.2s, box-shadow 0.2s;
|
|
}
|
|
|
|
.card:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
|
|
}
|
|
|
|
.card h3 {
|
|
font-size: 1.1em;
|
|
margin-bottom: 15px;
|
|
color: var(--secondary-color);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.value {
|
|
font-size: 2em;
|
|
font-weight: bold;
|
|
color: var(--primary-color);
|
|
word-break: break-all;
|
|
}
|
|
|
|
.tabs {
|
|
display: flex;
|
|
gap: 10px;
|
|
margin-bottom: 20px;
|
|
border-bottom: 2px solid var(--border-color);
|
|
}
|
|
|
|
.tab-button {
|
|
padding: 10px 20px;
|
|
background: none;
|
|
border: none;
|
|
cursor: pointer;
|
|
font-size: 1em;
|
|
color: var(--text-color);
|
|
border-bottom: 3px solid transparent;
|
|
transition: all 0.3s;
|
|
}
|
|
|
|
.tab-button:hover {
|
|
color: var(--primary-color);
|
|
}
|
|
|
|
.tab-button.active {
|
|
color: var(--primary-color);
|
|
border-bottom-color: var(--primary-color);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.tab-content {
|
|
display: none;
|
|
}
|
|
|
|
.tab-content.active {
|
|
display: block;
|
|
}
|
|
|
|
label {
|
|
display: block;
|
|
margin-bottom: 8px;
|
|
font-weight: 600;
|
|
color: var(--secondary-color);
|
|
}
|
|
|
|
input[type="text"],
|
|
input[type="file"],
|
|
textarea {
|
|
width: 100%;
|
|
padding: 12px;
|
|
border: 2px solid var(--border-color);
|
|
border-radius: 5px;
|
|
font-size: 1em;
|
|
margin-bottom: 15px;
|
|
transition: border-color 0.3s;
|
|
}
|
|
|
|
input[type="text"]:focus,
|
|
textarea:focus {
|
|
outline: none;
|
|
border-color: var(--primary-color);
|
|
}
|
|
|
|
textarea {
|
|
resize: vertical;
|
|
min-height: 100px;
|
|
font-family: monospace;
|
|
}
|
|
|
|
button {
|
|
background-color: var(--primary-color);
|
|
color: white;
|
|
border: none;
|
|
padding: 12px 24px;
|
|
border-radius: 5px;
|
|
font-size: 1em;
|
|
cursor: pointer;
|
|
transition: background-color 0.3s;
|
|
font-weight: 600;
|
|
}
|
|
|
|
button:hover {
|
|
background-color: #e8840a;
|
|
}
|
|
|
|
button:disabled {
|
|
background-color: #ccc;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.hash-buttons {
|
|
display: flex;
|
|
gap: 10px;
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.hash-buttons button {
|
|
flex: 1;
|
|
}
|
|
|
|
.spinner {
|
|
margin-left: 10px;
|
|
animation: spin 1s linear infinite;
|
|
}
|
|
|
|
@keyframes spin {
|
|
from { transform: rotate(0deg); }
|
|
to { transform: rotate(360deg); }
|
|
}
|
|
|
|
.hash-section {
|
|
margin-top: 20px;
|
|
padding-top: 20px;
|
|
border-top: 2px solid var(--border-color);
|
|
}
|
|
|
|
.file-info {
|
|
margin: 15px 0;
|
|
padding: 10px;
|
|
background-color: var(--background-color);
|
|
border-radius: 5px;
|
|
font-size: 0.9em;
|
|
}
|
|
|
|
.result {
|
|
margin-top: 20px;
|
|
padding: 15px;
|
|
border-radius: 5px;
|
|
display: none;
|
|
}
|
|
|
|
.result.success {
|
|
background-color: #d4edda;
|
|
color: #155724;
|
|
border: 1px solid #c3e6cb;
|
|
display: block;
|
|
}
|
|
|
|
.result.error {
|
|
background-color: #f8d7da;
|
|
color: #721c24;
|
|
border: 1px solid #f5c6cb;
|
|
display: block;
|
|
}
|
|
|
|
.result.info {
|
|
background-color: #d1ecf1;
|
|
color: #0c5460;
|
|
border: 1px solid #bee5eb;
|
|
display: block;
|
|
}
|
|
|
|
footer {
|
|
text-align: center;
|
|
padding: 20px;
|
|
background-color: var(--card-background);
|
|
border-radius: 10px;
|
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
|
color: #666;
|
|
}
|
|
|
|
footer .git-link {
|
|
display: inline-block;
|
|
margin-top: 15px;
|
|
text-decoration: none;
|
|
color: #666;
|
|
transition: color 0.3s, transform 0.2s;
|
|
}
|
|
|
|
footer .git-link:hover {
|
|
color: var(--primary-color);
|
|
transform: scale(1.1);
|
|
}
|
|
|
|
footer .git-icon {
|
|
width: 24px;
|
|
height: 24px;
|
|
vertical-align: middle;
|
|
margin-right: 5px;
|
|
fill: currentColor;
|
|
}
|
|
|
|
.watermark-section {
|
|
margin-top: 20px;
|
|
padding-top: 20px;
|
|
border-top: 2px solid var(--border-color);
|
|
}
|
|
|
|
.watermark-checkbox {
|
|
display: flex;
|
|
align-items: center;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.watermark-checkbox input[type="checkbox"] {
|
|
width: 20px;
|
|
height: 20px;
|
|
margin-right: 10px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.watermark-checkbox label {
|
|
cursor: pointer;
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.watermark-checkboxes {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
}
|
|
|
|
.security-warning {
|
|
background-color: #fff3cd;
|
|
border: 2px solid #ffc107;
|
|
border-radius: 5px;
|
|
padding: 15px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.security-warning strong {
|
|
color: #856404;
|
|
display: block;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.security-warning p {
|
|
margin: 0;
|
|
color: #856404;
|
|
font-size: 0.9em;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.loading {
|
|
display: inline-block;
|
|
width: 20px;
|
|
height: 20px;
|
|
border: 3px solid rgba(255, 255, 255, 0.3);
|
|
border-radius: 50%;
|
|
border-top-color: white;
|
|
animation: spin 1s ease-in-out infinite;
|
|
}
|
|
|
|
@keyframes spin {
|
|
to { transform: rotate(360deg); }
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
header h1 {
|
|
font-size: 2em;
|
|
}
|
|
|
|
.container {
|
|
padding: 10px;
|
|
}
|
|
}
|