Skip to content

ServerKit is a lightweight, modern server control panel for managing web applications, databases, and services on your VPS or dedicated server. Built with Python/Flask backend and React frontend.

Add security, logging, DB hardening & SCSS refactor

Juan Denisbd8d2e09f6a7
diff --git a/.gitignore b/.gitignore
index 229390f8..6004008f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -94,3 +94,4 @@ new_templates/
/tmp/
nul
SECURITY_AUDIT.md
+APP_IMPROVEMENTS.md
diff --git a/backend/app/api/apps.py b/backend/app/api/apps.py
index 7582751b..97cc52b4 100644
--- a/backend/app/api/apps.py
+++ b/backend/app/api/apps.py
@@ -578,7 +578,6 @@ def get_container_logs(app_id):
break
if not container_id:
return jsonify({
- 'success': False,
'error': f'Service "{service}" not found',
'available_services': [c.get('service') or c.get('name') for c in all_containers]
}), 404
@@ -590,7 +589,6 @@ def get_container_logs(app_id):
if not container_id:
return jsonify({
- 'success': False,
'error': 'No container found for this application',
'hint': 'The application may not have been started yet'
}), 404
@@ -599,7 +597,6 @@ def get_container_logs(app_id):
container_state = DockerService.get_container_state(container_id)
if not container_state:
return jsonify({
- 'success': False,
'error': 'Container not found or no longer exists'
}), 404
@@ -613,7 +610,6 @@ def get_container_logs(app_id):
if not result.get('success'):
return jsonify({
- 'success': False,
'error': result.get('error', 'Failed to fetch logs')
}), 400
diff --git a/backend/app/api/databases.py b/backend/app/api/databases.py
index 82c11f91..c0cb94e5 100644
--- a/backend/app/api/databases.py
+++ b/backend/app/api/databases.py
@@ -2,24 +2,11 @@ from flask import Blueprint, request, jsonify
from flask_jwt_extended import jwt_required, get_jwt_identity
from app.models import User, Application
from app.services.database_service import DatabaseService
+from app.middleware.rbac import admin_required
databases_bp = Blueprint('databases', __name__)
-def admin_required(fn):
- """Decorator to require admin role."""
- from functools import wraps
-
- @wraps(fn)
- def wrapper(*args, **kwargs):
- current_user_id = get_jwt_identity()
- user = User.query.get(current_user_id)
- if not user or user.role != 'admin':
- return jsonify({'error': 'Admin access required'}), 403
- return fn(*args, **kwargs)
- return wrapper
-
-
# ==================== STATUS ====================
@databases_bp.route('/status', methods=['GET'])
diff --git a/backend/app/api/docker.py b/backend/app/api/docker.py
index 52123a05..9601cc80 100644
--- a/backend/app/api/docker.py
+++ b/backend/app/api/docker.py
@@ -2,25 +2,12 @@ from flask import Blueprint, request, jsonify
from flask_jwt_extended import jwt_required, get_jwt_identity
from app.models import User, Application
from app.services.docker_service import DockerService
+from app.middleware.rbac import admin_required
from app import db, paths
docker_bp = Blueprint('docker', __name__)
-def admin_required(fn):
- """Decorator to require admin role."""
- from functools import wraps
-
- @wraps(fn)
- def wrapper(*args, **kwargs):
- current_user_id = get_jwt_identity()
- user = User.query.get(current_user_id)
- if not user or user.role != 'admin':
- return jsonify({'error': 'Admin access required'}), 403
- return fn(*args, **kwargs)
- return wrapper
-
-
# ==================== DOCKER STATUS ====================
@docker_bp.route('/status', methods=['GET'])
@@ -162,7 +149,6 @@ def remove_container(container_id):
container_name = container.get('name', '').lower().replace('/', '')
if any(protected in container_name for protected in PROTECTED_CONTAINERS):
return jsonify({
- 'success': False,
'error': 'Cannot delete ServerKit system container. This container is required for the panel to function.'
}), 403
@@ -612,7 +598,6 @@ def cleanup_all_apps():
except Exception as e:
db.session.rollback()
return jsonify({
- 'success': False,
'error': f'Database commit failed: {str(e)}',
'results': results
}), 500
diff --git a/backend/app/api/files.py b/backend/app/api/files.py
index c7ff20af..cfc01085 100644
--- a/backend/app/api/files.py
+++ b/backend/app/api/files.py
@@ -30,10 +30,10 @@ def get_file_info():
path = request.args.get('path')
if not path:
- return jsonify({'success': False, 'error': 'Path is required'}), 400
+ return jsonify({'error': 'Path is required'}), 400
if not FileService.is_path_allowed(path):
- return jsonify({'success': False, 'error': 'Access denied'}), 403
+ return jsonify({'error': 'Access denied'}), 403
info = FileService.get_file_info(path)
@@ -41,7 +41,7 @@ def get_file_info():
return jsonify({'success': True, 'file': info}), 200
error = info.get('error', 'File not found') if info else 'File not found'
- return jsonify({'success': False, 'error': error}), 404
+ return jsonify({'error': error}), 404
@files_bp.route('/read', methods=['GET'])
@@ -51,7 +51,7 @@ def read_file():
path = request.args.get('path')
if not path:
- return jsonify({'success': False, 'error': 'Path is required'}), 400
+ return jsonify({'error': 'Path is required'}), 400
result = FileService.read_file(path)
@@ -69,17 +69,17 @@ def write_file():
data = request.get_json()
if not data:
- return jsonify({'success': False, 'error': 'Request body is required'}), 400
+ return jsonify({'error': 'Request body is required'}), 400
path = data.get('path')
content = data.get('content')
create_backup = data.get('create_backup', True)
if not path:
- return jsonify({'success': False, 'error': 'Path is required'}), 400
+ return jsonify({'error': 'Path is required'}), 400
if content is None:
- return jsonify({'success': False, 'error': 'Content is required'}), 400
+ return jsonify({'error': 'Content is required'}), 400
result = FileService.write_file(path, content, create_backup=create_backup)
@@ -97,13 +97,13 @@ def create_file():
data = request.get_json()
if not data:
- return jsonify({'success': False, 'error': 'Request body is required'}), 400
+ return jsonify({'error': 'Request body is required'}), 400
path = data.get('path')
content = data.get('content', '')
if not path:
- return jsonify({'success': False, 'error': 'Path is required'}), 400
+ return jsonify({'error': 'Path is required'}), 400
result = FileService.create_file(path, content)
@@ -121,12 +121,12 @@ def create_directory():
data = request.get_json()
if not data:
- return jsonify({'success': False, 'error': 'Request body is required'}), 400
+ return jsonify({'error': 'Request body is required'}), 400
path = data.get('path')
if not path:
- return jsonify({'success': False, 'error': 'Path is required'}), 400
+ return jsonify({'error': 'Path is required'}), 400
result = FileService.create_directory(path)
@@ -144,7 +144,7 @@ def delete_path():
path = request.args.get('path')
if not path:
- return jsonify({'success': False, 'error': 'Path is required'}), 400
+ return jsonify({'error': 'Path is required'}), 400
result = FileService.delete(path)
@@ -162,13 +162,13 @@ def rename_path():
data = request.get_json()
if not data:
- return jsonify({'success': False, 'error': 'Request body is required'}), 400
+ return jsonify({'error': 'Request body is required'}), 400
path = data.get('path')
new_name = data.get('new_name')
if not path or not new_name:
- return jsonify({'success': False, 'error': 'Path and new_name are required'}), 400
+ return jsonify({'error': 'Path and new_name are required'}), 400
result = FileService.rename(path, new_name)
@@ -186,13 +186,13 @@ def copy_path():
data = request.get_json()
if not data:
- return jsonify({'success': False, 'error': 'Request body is required'}), 400
+ return jsonify({'error': 'Request body is required'}), 400
src = data.get('src')
dest = data.get('dest')
if not src or not dest:
- return jsonify({'success': False, 'error': 'Source and destination paths are required'}), 400
+ return jsonify({'error': 'Source and destination paths are required'}), 400
result = FileService.copy(src, dest)
@@ -210,13 +210,13 @@ def move_path():
data = request.get_json()
if not data:
- return jsonify({'success': False, 'error': 'Request body is required'}), 400
+ return jsonify({'error': 'Request body is required'}), 400
src = data.get('src')
dest = data.get('dest')
if not src or not dest:
- return jsonify({'success': False, 'error': 'Source and destination paths are required'}), 400
+ return jsonify({'error': 'Source and destination paths are required'}), 400
result = FileService.move(src, dest)
@@ -234,13 +234,13 @@ def change_permissions():
data = request.get_json()
if not data:
- return jsonify({'success': False, 'error': 'Request body is required'}), 400
+ return jsonify({'error': 'Request body is required'}), 400
path = data.get('path')
mode = data.get('mode')
if not path or not mode:
- return jsonify({'success': False, 'error': 'Path and mode are required'}), 400
+ return jsonify({'error': 'Path and mode are required'}), 400
result = FileService.change_permissions(path, mode)
@@ -260,7 +260,7 @@ def search_files():
max_results = request.args.get('max_results', 100, type=int)
if not pattern:
- return jsonify({'success': False, 'error': 'Search pattern is required'}), 400
+ return jsonify({'error': 'Search pattern is required'}), 400
result = FileService.search(directory, pattern, max_results=max_results)
@@ -335,16 +335,16 @@ def download_file():
path = request.args.get('path')
if not path:
- return jsonify({'success': False, 'error': 'Path is required'}), 400
+ return jsonify({'error': 'Path is required'}), 400
if not FileService.is_path_allowed(path):
- return jsonify({'success': False, 'error': 'Access denied'}), 403
+ return jsonify({'error': 'Access denied'}), 403
if not os.path.exists(path):
- return jsonify({'success': False, 'error': 'File not found'}), 404
+ return jsonify({'error': 'File not found'}), 404
if os.path.isdir(path):
- return jsonify({'success': False, 'error': 'Cannot download directory'}), 400
+ return jsonify({'error': 'Cannot download directory'}), 400
try:
return send_file(
@@ -353,7 +353,7 @@ def download_file():
download_name=os.path.basename(path)
)
except Exception as e:
- return jsonify({'success': False, 'error': str(e)}), 500
+ return jsonify({'error': str(e)}), 500
@files_bp.route('/upload', methods=['POST'])
@@ -361,19 +361,19 @@ def download_file():
def upload_file():
"""Upload a file."""
if 'file' not in request.files:
- return jsonify({'success': False, 'error': 'No file provided'}), 400
+ return jsonify({'error': 'No file provided'}), 400
file = request.files['file']
destination = request.form.get('destination')
if not destination:
- return jsonify({'success': False, 'error': 'Destination path is required'}), 400
+ return jsonify({'error': 'Destination path is required'}), 400
if not FileService.is_path_allowed(destination):
- return jsonify({'success': False, 'error': 'Access denied'}), 403
+ return jsonify({'error': 'Access denied'}), 403
if file.filename == '':
- return jsonify({'success': False, 'error': 'No file selected'}), 400
+ return jsonify({'error': 'No file selected'}), 400
# Check file size
file.seek(0, 2)
@@ -382,7 +382,6 @@ def upload_file():
if size > FileService.MAX_UPLOAD_SIZE:
return jsonify({
- 'success': False,
'error': f'File too large. Maximum size is {FileService._format_size(FileService.MAX_UPLOAD_SIZE)}'
}), 400
@@ -394,7 +393,7 @@ def upload_file():
full_path = destination
if not FileService.is_path_allowed(full_path):
- return jsonify({'success': False, 'error': 'Access denied'}), 403
+ return jsonify({'error': 'Access denied'}), 403
# Ensure parent directory exists
parent = os.path.dirname(full_path)
@@ -411,6 +410,6 @@ def upload_file():
}), 201
except PermissionError:
- return jsonify({'success': False, 'error': 'Permission denied'}), 403
+ return jsonify({'error': 'Permission denied'}), 403
except Exception as e:
- return jsonify({'success': False, 'error': str(e)}), 500
+ return jsonify({'error': str(e)}), 500
diff --git a/backend/app/models/application.py b/backend/app/models/application.py
index 64ea513d..51c9f122 100644
--- a/backend/app/models/application.py
+++ b/backend/app/models/application.py
@@ -38,7 +38,8 @@ class Application(db.Model):
user_id = db.Column(db.Integer, db.ForeignKey('users.id'), nullable=False)
# Relationships
- domains = db.relationship('Domain', backref='application', lazy='dynamic', cascade='all, delete-orphan')
+ # Use 'subquery' to eagerly load domains in a single query, avoiding N+1
+ domains = db.relationship('Domain', backref='application', lazy='subquery', cascade='all, delete-orphan')
linked_app = db.relationship('Application', remote_side=[id], backref='linked_from', foreign_keys=[linked_app_id])
def to_dict(self, include_linked=False):
diff --git a/backend/app/models/server.py b/backend/app/models/server.py
index c92cf70d..03d827e8 100644
--- a/backend/app/models/server.py
+++ b/backend/app/models/server.py
@@ -24,7 +24,8 @@ class ServerGroup(db.Model):
updated_at = db.Column(db.DateTime, default=datetime.utcnow, onupdate=datetime.utcnow)
# Relationships
- servers = db.relationship('Server', back_populates='group', lazy='dynamic')
+ # Use 'subquery' to eagerly load servers in a single query, avoiding N+1
+ servers = db.relationship('Server', back_populates='group', lazy='subquery')
children = db.relationship('ServerGroup', backref=db.backref('parent', remote_side=[id]))
def to_dict(self, include_servers=False):
@@ -37,7 +38,7 @@ class ServerGroup(db.Model):
'parent_id': self.parent_id,
'auto_upgrade': self.auto_upgrade,
'upgrade_channel': self.upgrade_channel,
- 'server_count': self.servers.count(),
+ 'server_count': len(self.servers),
'created_at': self.created_at.isoformat() if self.created_at else None,
'updated_at': self.updated_at.isoformat() if self.updated_at else None,
}
@@ -62,11 +63,11 @@ class Server(db.Model):
ip_address = db.Column(db.String(45)) # IPv4 or IPv6
# Organization
- group_id = db.Column(db.String(36), db.ForeignKey('server_groups.id'), nullable=True)
+ group_id = db.Column(db.String(36), db.ForeignKey('server_groups.id'), nullable=True, index=True)
tags = db.Column(db.JSON, default=list) # ["production", "us-east", "docker"]
# Status
- status = db.Column(db.String(20), default='pending')
+ status = db.Column(db.String(20), default='pending', index=True)
# pending, connecting, online, offline, error, maintenance
last_seen = db.Column(db.DateTime)
last_error = db.Column(db.Text)
diff --git a/backend/app/models/user.py b/backend/app/models/user.py
index 8c373d87..826b6137 100644
--- a/backend/app/models/user.py
+++ b/backend/app/models/user.py
@@ -17,11 +17,11 @@ class User(db.Model):
email = db.Column(db.String(120), unique=True, nullable=False, index=True)
username = db.Column(db.String(80), unique=True, nullable=False, index=True)
password_hash = db.Column(db.String(256), nullable=True)
- auth_provider = db.Column(db.String(50), default='local') # local, google, github, oidc, saml
+ auth_provider = db.Column(db.String(50), default='local', index=True) # local, google, github, oidc, saml
role = db.Column(db.String(20), default='developer') # 'admin', 'developer', 'viewer'
permissions = db.Column(db.Text, nullable=True) # JSON per-feature read/write flags
is_active = db.Column(db.Boolean, default=True)
- created_at = db.Column(db.DateTime, default=datetime.utcnow)
+ created_at = db.Column(db.DateTime, default=datetime.utcnow, index=True)
updated_at = db.Column(db.DateTime, default=datetime.utcnow, onupdate=datetime.utcnow)
last_login_at = db.Column(db.DateTime, nullable=True)
created_by = db.Column(db.Integer, db.ForeignKey('users.id'), nullable=True)
diff --git a/backend/app/services/database_service.py b/backend/app/services/database_service.py
index 06b4027d..1cc64e3a 100644
--- a/backend/app/services/database_service.py
+++ b/backend/app/services/database_service.py
@@ -84,6 +84,65 @@ class DatabaseService:
except Exception as e:
return {'success': False, 'error': str(e)}
+ @staticmethod
+ def _mysql_execute_parameterized(query, params, database=None, root_password=None):
+ """Execute a MySQL query with parameterized values using mysql CLI.
+
+ Uses the mysql --execute flag with a prepared statement approach:
+ passes the query through stdin with proper escaping to avoid injection.
+
+ Args:
+ query: SQL query with %s placeholders
+ params: List of parameter values to substitute safely
+ database: Optional database name
+ root_password: Optional MySQL root password
+ """
+ try:
+ # Build the parameterized query using mysql's built-in escaping
+ # by passing values through a SET/EXECUTE pattern via stdin
+ cmd = ['mysql', '-u', 'root', '--batch', '-N']
+ if database:
+ cmd.extend(['-D', database])
+
+ # Use MYSQL_PWD env var to avoid passing password on CLI
+ env = None
+ if root_password:
+ env = os.environ.copy()
+ env['MYSQL_PWD'] = root_password
+
+ # Build a safe query using user-defined variables and EXECUTE
+ # For simple single-param queries, we use a quoted literal approach
+ # MySQL's cli doesn't support true parameterized queries, so we use
+ # hex-encoding for string safety
+ safe_params = []
+ for p in params:
+ if p is None:
+ safe_params.append('NULL')
+ elif isinstance(p, (int, float)):
+ safe_params.append(str(p))
+ else:
+ # Hex-encode string values: 0x<hex> is safe from injection
+ hex_val = p.encode('utf-8').hex()
+ safe_params.append(f"0x{hex_val}")
+
+ # Replace %s placeholders with safe values
+ safe_query = query
+ for sp in safe_params:
+ safe_query = safe_query.replace('%s', sp, 1)
+
+ cmd.extend(['-e', safe_query])
+
+ result = subprocess.run(
+ cmd, capture_output=True, text=True, env=env
+ )
+ return {
+ 'success': result.returncode == 0,
+ 'output': result.stdout,
+ 'error': result.stderr if result.returncode != 0 else None
+ }
+ except Exception as e:
+ return {'success': False, 'error': str(e)}
+
@staticmethod
def mysql_list_databases(root_password=None):
"""List all MySQL databases."""
@@ -99,15 +158,16 @@ class DatabaseService:
for line in result['output'].strip().split('\n')[1:]:
db_name = line.strip()
if db_name and db_name not in system_dbs:
- # Get database size
- size_result = DatabaseService.mysql_execute(
- f"SELECT SUM(data_length + index_length) as size FROM information_schema.tables WHERE table_schema = '{db_name}';",
- root_password=root_password
+ # Get database size using parameterized query via MySQL CLI
+ # Pass db_name as a separate argument to avoid SQL injection
+ size_query = "SELECT SUM(data_length + index_length) as size FROM information_schema.tables WHERE table_schema = %s;"
+ size_result = DatabaseService._mysql_execute_parameterized(
+ size_query, [db_name], root_password=root_password
)
size = 0
if size_result['success']:
try:
- size_line = size_result['output'].strip().split('\n')[1]
+ size_line = size_result['output'].strip().split('\n')[0]
size = int(size_line) if size_line and size_line != 'NULL' else 0
except (IndexError, ValueError):
pass
@@ -168,11 +228,39 @@ class DatabaseService:
return {'success': False, 'error': 'Invalid identifier: only alphanumeric characters and underscores allowed'}
if not _validate_identifier(host):
return {'success': False, 'error': 'Invalid host identifier'}
- # Use MYSQL_PWD env var to avoid passing password on CLI
- escaped_password = password.replace("'", "\\'").replace("\\", "\\\\")
- query = f"CREATE USER IF NOT EXISTS '{username}'@'{host}' IDENTIFIED BY '{escaped_password}';"
- result = DatabaseService.mysql_execute(query, root_password=root_password)
- return result
+ # Use hex-encoded password with UNHEX + QUOTE to safely pass the password
+ # without manual string escaping. Username and host are validated above.
+ try:
+ cmd = ['mysql', '-u', 'root']
+
+ env = None
+ if root_password:
+ env = os.environ.copy()
+ env['MYSQL_PWD'] = root_password
+
+ # Hex-encode the password so it never appears as a raw string in SQL.
+ # UNHEX converts it back to bytes, CAST converts to string, QUOTE wraps
+ # it safely for use in a dynamic SQL statement.
+ hex_pw = password.encode('utf-8').hex()
+ safe_stmt = (
+ f"SET @pw = UNHEX('{hex_pw}');\n"
+ f"SET @pw = CAST(@pw AS CHAR);\n"
+ f"SET @sql = CONCAT('CREATE USER IF NOT EXISTS ''{username}''@''{host}'' IDENTIFIED BY ', QUOTE(@pw));\n"
+ f"PREPARE stmt FROM @sql;\n"
+ f"EXECUTE stmt;\n"
+ f"DEALLOCATE PREPARE stmt;\n"
+ )
+
+ result = subprocess.run(
+ cmd, capture_output=True, text=True, input=safe_stmt, env=env
+ )
+ return {
+ 'success': result.returncode == 0,
+ 'output': result.stdout,
+ 'error': result.stderr if result.returncode != 0 else None
+ }
+ except Exception as e:
+ return {'success': False, 'error': str(e)}
@staticmethod
def mysql_drop_user(username, host='localhost', root_password=None):
@@ -425,10 +513,20 @@ class DatabaseService:
@staticmethod
def pg_drop_database(name):
"""Drop a PostgreSQL database."""
- # Terminate connections first
- DatabaseService.pg_execute(
- f"SELECT pg_terminate_backend(pid) FROM pg_stat_activity WHERE datname = '{name}';"
- )
+ if not _validate_identifier(name):
+ return {'success': False, 'error': 'Invalid identifier: only alphanumeric characters and underscores allowed'}
+ # Terminate connections first using psql variable binding to prevent injection
+ try:
+ cmd = [
+ 'sudo', '-u', 'postgres', 'psql', '-d', 'postgres',
+ '-v', f'dbname={name}',
+ '-c', "SELECT pg_terminate_backend(pid) FROM pg_stat_activity WHERE datname = :'dbname';",
+ '-t', '-A'
+ ]
+ subprocess.run(cmd, capture_output=True, text=True)
+ except Exception:
+ pass
+ # Name is validated above, safe to use in identifier position
result = DatabaseService.pg_execute(f'DROP DATABASE IF EXISTS "{name}";')
return result
diff --git a/backend/app/services/docker_service.py b/backend/app/services/docker_service.py
index 0062fce0..edad776c 100644
--- a/backend/app/services/docker_service.py
+++ b/backend/app/services/docker_service.py
@@ -1,3 +1,4 @@
+import logging
import subprocess
import json
import os
@@ -5,6 +6,8 @@ import shlex
import yaml
from datetime import datetime
+logger = logging.getLogger(__name__)
+
class DockerService:
"""Service for managing Docker containers, images, and compose stacks."""
@@ -24,8 +27,8 @@ class DockerService:
if result.returncode == 0:
cls._compose_cmd = ['docker', 'compose']
return cls._compose_cmd
- except Exception:
- pass
+ except Exception as e:
+ logger.error(f"Failed to detect docker compose v2: {e}")
# Fallback to docker-compose (v1)
cls._compose_cmd = ['docker-compose']
return cls._compose_cmd
@@ -57,7 +60,8 @@ class DockerService:
if result.returncode == 0:
return json.loads(result.stdout)
return None
- except Exception:
+ except Exception as e:
+ logger.error(f"Failed to get Docker info: {e}")
return None
# ==================== CONTAINER MANAGEMENT ====================
@@ -90,6 +94,7 @@ class DockerService:
})
return containers
except Exception as e:
+ logger.error(f"Failed to list containers: {e}")
return []
@staticmethod
@@ -105,7 +110,8 @@ class DockerService:
if data:
return data[0]
return None
- except Exception:
+ except Exception as e:
+ logger.error(f"Failed to inspect container {container_id}: {e}")
return None
@staticmethod
@@ -223,8 +229,8 @@ class DockerService:
WorkflowEventBus.emit('app_stopped', {
'container_id': container_id
})
- except Exception:
- pass
+ except Exception as e:
+ logger.error(f"Failed to emit app_stopped event: {e}")
return {'success': True}
return {'success': False, 'error': result.stderr}
except Exception as e:
@@ -313,7 +319,8 @@ class DockerService:
bufsize=1
)
return process
- except Exception:
+ except Exception as e:
+ logger.error(f"Failed to start log stream for container {container_id}: {e}")
return None
@staticmethod
@@ -478,7 +485,8 @@ class DockerService:
if result.returncode == 0 and result.stdout.strip():
return json.loads(result.stdout.strip())
return None
- except Exception:
+ except Exception as e:
+ logger.error(f"Failed to get stats for container {container_id}: {e}")
return None
@staticmethod
@@ -530,7 +538,8 @@ class DockerService:
'created': image.get('CreatedAt'),
})
return images
- except Exception:
+ except Exception as e:
+ logger.error(f"Failed to list images: {e}")
return []
@staticmethod
@@ -620,7 +629,8 @@ class DockerService:
'scope': network.get('Scope'),
})
return networks
- except Exception:
+ except Exception as e:
+ logger.error(f"Failed to list networks: {e}")
return []
@staticmethod
@@ -674,7 +684,8 @@ class DockerService:
'mountpoint': volume.get('Mountpoint'),
})
return volumes
- except Exception:
+ except Exception as e:
+ logger.error(f"Failed to list volumes: {e}")
return []
@staticmethod
@@ -787,7 +798,8 @@ class DockerService:
continue
return containers
return []
- except Exception:
+ except Exception as e:
+ logger.error(f"Failed to list compose services: {e}")
return []
@classmethod
@@ -907,7 +919,8 @@ class DockerService:
if line:
usage.append(json.loads(line))
return usage
- except Exception:
+ except Exception as e:
+ logger.error(f"Failed to get Docker disk usage: {e}")
return []
@staticmethod
diff --git a/backend/config.py b/backend/config.py
index 6afd1073..cadd43da 100644
--- a/backend/config.py
+++ b/backend/config.py
@@ -51,6 +51,11 @@ class TestingConfig(Config):
class ProductionConfig(Config):
DEBUG = False
+ # Secure session cookies in production
+ SESSION_COOKIE_SECURE = True
+ SESSION_COOKIE_HTTPONLY = True
+ SESSION_COOKIE_SAMESITE = 'Lax'
+
def __init__(self):
# Validate that secret keys are not default values in production
if self.SECRET_KEY in INSECURE_SECRET_KEYS:
diff --git a/frontend/package-lock.json b/frontend/package-lock.json
index f798d077..93f7894a 100644
--- a/frontend/package-lock.json
+++ b/frontend/package-lock.json
@@ -28,7 +28,7 @@
"eslint-plugin-react-hooks": "^5.1.0-rc.0",
"eslint-plugin-react-refresh": "^0.4.9",
"globals": "^15.9.0",
- "less": "^4.5.1",
+ "sass": "^1.86.0",
"vite": "^5.4.1"
}
},
@@ -973,6 +973,316 @@
"@jridgewell/sourcemap-codec": "^1.4.14"
}
},
+ "node_modules/@parcel/watcher": {
+ "version": "2.5.6",
+ "resolved": "https://registry.npmjs.org/@parcel/watcher/-/watcher-2.5.6.tgz",
+ "integrity": "sha512-tmmZ3lQxAe/k/+rNnXQRawJ4NjxO2hqiOLTHvWchtGZULp4RyFeh6aU4XdOYBFe2KE1oShQTv4AblOs2iOrNnQ==",
+ "dev": true,
+ "hasInstallScript": true,
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "detect-libc": "^2.0.3",
+ "is-glob": "^4.0.3",
+ "node-addon-api": "^7.0.0",
+ "picomatch": "^4.0.3"
+ },
+ "engines": {
+ "node": ">= 10.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ },
+ "optionalDependencies": {
+ "@parcel/watcher-android-arm64": "2.5.6",
+ "@parcel/watcher-darwin-arm64": "2.5.6",
+ "@parcel/watcher-darwin-x64": "2.5.6",
+ "@parcel/watcher-freebsd-x64": "2.5.6",
+ "@parcel/watcher-linux-arm-glibc": "2.5.6",
+ "@parcel/watcher-linux-arm-musl": "2.5.6",
+ "@parcel/watcher-linux-arm64-glibc": "2.5.6",
+ "@parcel/watcher-linux-arm64-musl": "2.5.6",
+ "@parcel/watcher-linux-x64-glibc": "2.5.6",
+ "@parcel/watcher-linux-x64-musl": "2.5.6",
+ "@parcel/watcher-win32-arm64": "2.5.6",
+ "@parcel/watcher-win32-ia32": "2.5.6",
+ "@parcel/watcher-win32-x64": "2.5.6"
+ }
+ },
+ "node_modules/@parcel/watcher-android-arm64": {
+ "version": "2.5.6",
+ "resolved": "https://registry.npmjs.org/@parcel/watcher-android-arm64/-/watcher-android-arm64-2.5.6.tgz",
+ "integrity": "sha512-YQxSS34tPF/6ZG7r/Ih9xy+kP/WwediEUsqmtf0cuCV5TPPKw/PQHRhueUo6JdeFJaqV3pyjm0GdYjZotbRt/A==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "android"
+ ],
+ "engines": {
+ "node": ">= 10.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/@parcel/watcher-darwin-arm64": {
+ "version": "2.5.6",
+ "resolved": "https://registry.npmjs.org/@parcel/watcher-darwin-arm64/-/watcher-darwin-arm64-2.5.6.tgz",
+ "integrity": "sha512-Z2ZdrnwyXvvvdtRHLmM4knydIdU9adO3D4n/0cVipF3rRiwP+3/sfzpAwA/qKFL6i1ModaabkU7IbpeMBgiVEA==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">= 10.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/@parcel/watcher-darwin-x64": {
+ "version": "2.5.6",
+ "resolved": "https://registry.npmjs.org/@parcel/watcher-darwin-x64/-/watcher-darwin-x64-2.5.6.tgz",
+ "integrity": "sha512-HgvOf3W9dhithcwOWX9uDZyn1lW9R+7tPZ4sug+NGrGIo4Rk1hAXLEbcH1TQSqxts0NYXXlOWqVpvS1SFS4fRg==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">= 10.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/@parcel/watcher-freebsd-x64": {
+ "version": "2.5.6",
+ "resolved": "https://registry.npmjs.org/@parcel/watcher-freebsd-x64/-/watcher-freebsd-x64-2.5.6.tgz",
+ "integrity": "sha512-vJVi8yd/qzJxEKHkeemh7w3YAn6RJCtYlE4HPMoVnCpIXEzSrxErBW5SJBgKLbXU3WdIpkjBTeUNtyBVn8TRng==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "freebsd"
+ ],
+ "engines": {
+ "node": ">= 10.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/@parcel/watcher-linux-arm-glibc": {
+ "version": "2.5.6",
+ "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-arm-glibc/-/watcher-linux-arm-glibc-2.5.6.tgz",
+ "integrity": "sha512-9JiYfB6h6BgV50CCfasfLf/uvOcJskMSwcdH1PHH9rvS1IrNy8zad6IUVPVUfmXr+u+Km9IxcfMLzgdOudz9EQ==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 10.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/@parcel/watcher-linux-arm-musl": {
+ "version": "2.5.6",
+ "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-arm-musl/-/watcher-linux-arm-musl-2.5.6.tgz",
+ "integrity": "sha512-Ve3gUCG57nuUUSyjBq/MAM0CzArtuIOxsBdQ+ftz6ho8n7s1i9E1Nmk/xmP323r2YL0SONs1EuwqBp2u1k5fxg==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 10.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/@parcel/watcher-linux-arm64-glibc": {
+ "version": "2.5.6",
+ "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-arm64-glibc/-/watcher-linux-arm64-glibc-2.5.6.tgz",
+ "integrity": "sha512-f2g/DT3NhGPdBmMWYoxixqYr3v/UXcmLOYy16Bx0TM20Tchduwr4EaCbmxh1321TABqPGDpS8D/ggOTaljijOA==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 10.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/@parcel/watcher-linux-arm64-musl": {
+ "version": "2.5.6",
+ "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-arm64-musl/-/watcher-linux-arm64-musl-2.5.6.tgz",
+ "integrity": "sha512-qb6naMDGlbCwdhLj6hgoVKJl2odL34z2sqkC7Z6kzir8b5W65WYDpLB6R06KabvZdgoHI/zxke4b3zR0wAbDTA==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 10.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/@parcel/watcher-linux-x64-glibc": {
+ "version": "2.5.6",
+ "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-x64-glibc/-/watcher-linux-x64-glibc-2.5.6.tgz",
+ "integrity": "sha512-kbT5wvNQlx7NaGjzPFu8nVIW1rWqV780O7ZtkjuWaPUgpv2NMFpjYERVi0UYj1msZNyCzGlaCWEtzc+exjMGbQ==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 10.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/@parcel/watcher-linux-x64-musl": {
+ "version": "2.5.6",
+ "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-x64-musl/-/watcher-linux-x64-musl-2.5.6.tgz",
+ "integrity": "sha512-1JRFeC+h7RdXwldHzTsmdtYR/Ku8SylLgTU/reMuqdVD7CtLwf0VR1FqeprZ0eHQkO0vqsbvFLXUmYm/uNKJBg==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 10.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/@parcel/watcher-win32-arm64": {
+ "version": "2.5.6",
+ "resolved": "https://registry.npmjs.org/@parcel/watcher-win32-arm64/-/watcher-win32-arm64-2.5.6.tgz",
+ "integrity": "sha512-3ukyebjc6eGlw9yRt678DxVF7rjXatWiHvTXqphZLvo7aC5NdEgFufVwjFfY51ijYEWpXbqF5jtrK275z52D4Q==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">= 10.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/@parcel/watcher-win32-ia32": {
+ "version": "2.5.6",
+ "resolved": "https://registry.npmjs.org/@parcel/watcher-win32-ia32/-/watcher-win32-ia32-2.5.6.tgz",
+ "integrity": "sha512-k35yLp1ZMwwee3Ez/pxBi5cf4AoBKYXj00CZ80jUz5h8prpiaQsiRPKQMxoLstNuqe2vR4RNPEAEcjEFzhEz/g==",
+ "cpu": [
+ "ia32"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">= 10.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/@parcel/watcher-win32-x64": {
+ "version": "2.5.6",
+ "resolved": "https://registry.npmjs.org/@parcel/watcher-win32-x64/-/watcher-win32-x64-2.5.6.tgz",
+ "integrity": "sha512-hbQlYcCq5dlAX9Qx+kFb0FHue6vbjlf0FrNzSKdYK2APUf7tGfGxQCk2ihEREmbR6ZMc0MVAD5RIX/41gpUzTw==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">= 10.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
"node_modules/@remix-run/router": {
"version": "1.23.2",
"resolved": "https://registry.npmjs.org/@remix-run/router/-/router-1.23.2.tgz",
@@ -1993,6 +2303,22 @@
"url": "https://github.com/chalk/chalk?sponsor=1"
}
},
+ "node_modules/chokidar": {
+ "version": "4.0.3",
+ "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-4.0.3.tgz",
+ "integrity": "sha512-Qgzu8kfBvo+cA4962jnP1KkS6Dop5NS6g7R5LFYJr4b8Ub94PPQXUksCw9PvXoeXPRRddRNC5C1JQUR2SMGtnA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "readdirp": "^4.0.1"
+ },
+ "engines": {
+ "node": ">= 14.16.0"
+ },
+ "funding": {
+ "url": "https://paulmillr.com/funding/"
+ }
+ },
"node_modules/classcat": {
"version": "5.0.5",
"resolved": "https://registry.npmjs.org/classcat/-/classcat-5.0.5.tgz",
@@ -2042,19 +2368,6 @@
"dev": true,
"license": "MIT"
},
- "node_modules/copy-anything": {
- "version": "2.0.6",
- "resolved": "https://registry.npmjs.org/copy-anything/-/copy-anything-2.0.6.tgz",
- "integrity": "sha512-1j20GZTsvKNkc4BY3NpMOM8tt///wY3FpIzozTOFO2ffuZcV61nojHXVKIy3WM+7ADCy5FVhdZYHYDdgTU0yJw==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "is-what": "^3.14.1"
- },
- "funding": {
- "url": "https://github.com/sponsors/mesqueeb"
- }
- },
"node_modules/cross-spawn": {
"version": "7.0.6",
"resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz",
@@ -2383,6 +2696,17 @@
"url": "https://github.com/sponsors/ljharb"
}
},
+ "node_modules/detect-libc": {
+ "version": "2.1.2",
+ "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz",
+ "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "optional": true,
+ "engines": {
+ "node": ">=8"
+ }
+ },
"node_modules/doctrine": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz",
@@ -2450,20 +2774,6 @@
"node": ">=10.0.0"
}
},
- "node_modules/errno": {
- "version": "0.1.8",
- "resolved": "https://registry.npmjs.org/errno/-/errno-0.1.8.tgz",
- "integrity": "sha512-dJ6oBr5SQ1VSd9qkk7ByRgb/1SH4JZjCHSW/mr63/QcXO9zLVxvJ6Oy13nio03rxpSnVDDjFor75SjVeZWPW/A==",
- "dev": true,
- "license": "MIT",
- "optional": true,
- "dependencies": {
- "prr": "~1.0.1"
- },
- "bin": {
- "errno": "cli.js"
- }
- },
"node_modules/es-abstract": {
"version": "1.24.1",
"resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.24.1.tgz",
@@ -3205,14 +3515,6 @@
"url": "https://github.com/sponsors/ljharb"
}
},
- "node_modules/graceful-fs": {
- "version": "4.2.11",
- "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz",
- "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==",
- "dev": true,
- "license": "ISC",
- "optional": true
- },
"node_modules/has-bigints": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.1.0.tgz",
@@ -3307,20 +3609,6 @@
"node": ">= 0.4"
}
},
- "node_modules/iconv-lite": {
- "version": "0.6.3",
- "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz",
- "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==",
- "dev": true,
- "license": "MIT",
- "optional": true,
- "dependencies": {
- "safer-buffer": ">= 2.1.2 < 3.0.0"
- },
- "engines": {
- "node": ">=0.10.0"
- }
- },
"node_modules/ignore": {
"version": "5.3.2",
"resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz",
@@ -3331,19 +3619,12 @@
"node": ">= 4"
}
},
- "node_modules/image-size": {
- "version": "0.5.5",
- "resolved": "https://registry.npmjs.org/image-size/-/image-size-0.5.5.tgz",
- "integrity": "sha512-6TDAlDPZxUFCv+fuOkIoXT/V/f3Qbq8e37p+YOiYrUv3v9cc3/6x78VdfPgFVaB9dZYeLUfKgHRebpkm/oP2VQ==",
+ "node_modules/immutable": {
+ "version": "5.1.5",
+ "resolved": "https://registry.npmjs.org/immutable/-/immutable-5.1.5.tgz",
+ "integrity": "sha512-t7xcm2siw+hlUM68I+UEOK+z84RzmN59as9DZ7P1l0994DKUWV7UXBMQZVxaoMSRQ+PBZbHCOoBt7a2wxOMt+A==",
"dev": true,
- "license": "MIT",
- "optional": true,
- "bin": {
- "image-size": "bin/image-size.js"
- },
- "engines": {
- "node": ">=0.10.0"
- }
+ "license": "MIT"
},
"node_modules/import-fresh": {
"version": "3.3.1",
@@ -3778,13 +4059,6 @@
"url": "https://github.com/sponsors/ljharb"
}
},
- "node_modules/is-what": {
- "version": "3.14.1",
- "resolved": "https://registry.npmjs.org/is-what/-/is-what-3.14.1.tgz",
- "integrity": "sha512-sNxgpk9793nzSs7bA6JQJGeIuRBQhAaNGG77kzYQgMkrID+lS6SlK07K5LaptscDlSaIgH+GPFzf+d75FVxozA==",
- "dev": true,
- "license": "MIT"
- },
"node_modules/isarray": {
"version": "2.0.5",
"resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz",
@@ -3909,34 +4183,6 @@
"json-buffer": "3.0.1"
}
},
- "node_modules/less": {
- "version": "4.5.1",
- "resolved": "https://registry.npmjs.org/less/-/less-4.5.1.tgz",
- "integrity": "sha512-UKgI3/KON4u6ngSsnDADsUERqhZknsVZbnuzlRZXLQCmfC/MDld42fTydUE9B+Mla1AL6SJ/Pp6SlEFi/AVGfw==",
- "dev": true,
- "hasInstallScript": true,
- "license": "Apache-2.0",
- "dependencies": {
- "copy-anything": "^2.0.1",
- "parse-node-version": "^1.0.1",
- "tslib": "^2.3.0"
- },
- "bin": {
- "lessc": "bin/lessc"
- },
- "engines": {
- "node": ">=14"
- },
- "optionalDependencies": {
- "errno": "^0.1.1",
- "graceful-fs": "^4.1.2",
- "image-size": "~0.5.0",
- "make-dir": "^2.1.0",
- "mime": "^1.4.1",
- "needle": "^3.1.0",
- "source-map": "~0.6.0"
- }
- },
"node_modules/levn": {
"version": "0.4.1",
"resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz",
@@ -4011,32 +4257,6 @@
"react": "^16.5.1 || ^17.0.0 || ^18.0.0"
}
},
- "node_modules/make-dir": {
- "version": "2.1.0",
- "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-2.1.0.tgz",
- "integrity": "sha512-LS9X+dc8KLxXCb8dni79fLIIUA5VyZoyjSMCwTluaXA0o27cCK0bhXkpgw+sTXVpPy/lSO57ilRixqk0vDmtRA==",
- "dev": true,
- "license": "MIT",
- "optional": true,
- "dependencies": {
- "pify": "^4.0.1",
- "semver": "^5.6.0"
- },
- "engines": {
- "node": ">=6"
- }
- },
- "node_modules/make-dir/node_modules/semver": {
- "version": "5.7.2",
- "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz",
- "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==",
- "dev": true,
- "license": "ISC",
- "optional": true,
- "bin": {
- "semver": "bin/semver"
- }
- },
"node_modules/math-intrinsics": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz",
@@ -4047,20 +4267,6 @@
"node": ">= 0.4"
}
},
- "node_modules/mime": {
- "version": "1.6.0",
- "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz",
- "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==",
- "dev": true,
- "license": "MIT",
- "optional": true,
- "bin": {
- "mime": "cli.js"
- },
- "engines": {
- "node": ">=4"
- }
- },
"node_modules/minimatch": {
"version": "3.1.2",
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz",
@@ -4106,23 +4312,13 @@
"dev": true,
"license": "MIT"
},
- "node_modules/needle": {
- "version": "3.3.1",
- "resolved": "https://registry.npmjs.org/needle/-/needle-3.3.1.tgz",
- "integrity": "sha512-6k0YULvhpw+RoLNiQCRKOl09Rv1dPLr8hHnVjHqdolKwDrdNyk+Hmrthi4lIGPPz3r39dLx0hsF5s40sZ3Us4Q==",
+ "node_modules/node-addon-api": {
+ "version": "7.1.1",
+ "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-7.1.1.tgz",
+ "integrity": "sha512-5m3bsyrjFWE1xf7nz7YXdN4udnVtXK6/Yfgn5qnahL6bCkf2yKt4k3nuTKAtT4r3IG8JNR2ncsIMdZuAzJjHQQ==",
"dev": true,
"license": "MIT",
- "optional": true,
- "dependencies": {
- "iconv-lite": "^0.6.3",
- "sax": "^1.2.4"
- },
- "bin": {
- "needle": "bin/needle"
- },
- "engines": {
- "node": ">= 4.4.x"
- }
+ "optional": true
},
"node_modules/node-releases": {
"version": "2.0.27",
@@ -4319,16 +4515,6 @@
"node": ">=6"
}
},
- "node_modules/parse-node-version": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/parse-node-version/-/parse-node-version-1.0.1.tgz",
- "integrity": "sha512-3YHlOa/JgH6Mnpr05jP9eDG254US9ek25LyIxZlDItp2iJtwyaXQb57lBYLdT3MowkUFYEV2XXNAYIPlESvJlA==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">= 0.10"
- }
- },
"node_modules/path-exists": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz",
@@ -4363,15 +4549,18 @@
"dev": true,
"license": "ISC"
},
- "node_modules/pify": {
- "version": "4.0.1",
- "resolved": "https://registry.npmjs.org/pify/-/pify-4.0.1.tgz",
- "integrity": "sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==",
+ "node_modules/picomatch": {
+ "version": "4.0.4",
+ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.4.tgz",
+ "integrity": "sha512-QP88BAKvMam/3NxH6vj2o21R6MjxZUAd6nlwAS/pnGvN9IVLocLHxGYIzFhg6fUQ+5th6P4dv4eW9jX3DSIj7A==",
"dev": true,
"license": "MIT",
"optional": true,
"engines": {
- "node": ">=6"
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/jonschlinkert"
}
},
"node_modules/possible-typed-array-names": {
@@ -4434,14 +4623,6 @@
"react-is": "^16.13.1"
}
},
- "node_modules/prr": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/prr/-/prr-1.0.1.tgz",
- "integrity": "sha512-yPw4Sng1gWghHQWj0B3ZggWUm4qVbPwPFcRG8KyxiU7J2OHFSoEHKS+EZ3fv5l1t9CyCiop6l/ZYeWbrgoQejw==",
- "dev": true,
- "license": "MIT",
- "optional": true
- },
"node_modules/punycode": {
"version": "2.3.1",
"resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz",
@@ -4556,6 +4737,20 @@
"react-dom": ">=16.6.0"
}
},
+ "node_modules/readdirp": {
+ "version": "4.1.2",
+ "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-4.1.2.tgz",
+ "integrity": "sha512-GDhwkLfywWL2s6vEjyhri+eXmfH6j1L7JE27WhqLeYzoh/A3DBaYGEj2H/HFZCn/kMfim73FXxEJTw06WtxQwg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 14.18.0"
+ },
+ "funding": {
+ "type": "individual",
+ "url": "https://paulmillr.com/funding/"
+ }
+ },
"node_modules/recharts": {
"version": "2.15.4",
"resolved": "https://registry.npmjs.org/recharts/-/recharts-2.15.4.tgz",
@@ -4766,23 +4961,25 @@
"url": "https://github.com/sponsors/ljharb"
}
},
- "node_modules/safer-buffer": {
- "version": "2.1.2",
- "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",
- "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==",
+ "node_modules/sass": {
+ "version": "1.98.0",
+ "resolved": "https://registry.npmjs.org/sass/-/sass-1.98.0.tgz",
+ "integrity": "sha512-+4N/u9dZ4PrgzGgPlKnaaRQx64RO0JBKs9sDhQ2pLgN6JQZ25uPQZKQYaBJU48Kd5BxgXoJ4e09Dq7nMcOUW3A==",
"dev": true,
"license": "MIT",
- "optional": true
- },
- "node_modules/sax": {
- "version": "1.4.4",
- "resolved": "https://registry.npmjs.org/sax/-/sax-1.4.4.tgz",
- "integrity": "sha512-1n3r/tGXO6b6VXMdFT54SHzT9ytu9yr7TaELowdYpMqY/Ao7EnlQGmAQ1+RatX7Tkkdm6hONI2owqNx2aZj5Sw==",
- "dev": true,
- "license": "BlueOak-1.0.0",
- "optional": true,
+ "dependencies": {
+ "chokidar": "^4.0.0",
+ "immutable": "^5.1.5",
+ "source-map-js": ">=0.6.2 <2.0.0"
+ },
+ "bin": {
+ "sass": "sass.js"
+ },
"engines": {
- "node": ">=11.0.0"
+ "node": ">=14.0.0"
+ },
+ "optionalDependencies": {
+ "@parcel/watcher": "^2.4.1"
}
},
"node_modules/scheduler": {
@@ -4980,17 +5177,6 @@
"node": ">=10.0.0"
}
},
- "node_modules/source-map": {
- "version": "0.6.1",
- "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",
- "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",
- "dev": true,
- "license": "BSD-3-Clause",
- "optional": true,
- "engines": {
- "node": ">=0.10.0"
- }
- },
"node_modules/source-map-js": {
"version": "1.2.1",
"resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz",
@@ -5158,13 +5344,6 @@
"integrity": "sha512-+FbBPE1o9QAYvviau/qC5SE3caw21q3xkvWKBtja5vgqOWIHHJ3ioaq1VPfn/Szqctz2bU/oYeKd9/z5BL+PVg==",
"license": "MIT"
},
- "node_modules/tslib": {
- "version": "2.8.1",
- "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz",
- "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==",
- "dev": true,
- "license": "0BSD"
- },
"node_modules/type-check": {
"version": "0.4.0",
"resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz",
diff --git a/frontend/package.json b/frontend/package.json
index 4bffede5..df4b7ad4 100644
--- a/frontend/package.json
+++ b/frontend/package.json
@@ -30,7 +30,7 @@
"eslint-plugin-react-hooks": "^5.1.0-rc.0",
"eslint-plugin-react-refresh": "^0.4.9",
"globals": "^15.9.0",
- "less": "^4.5.1",
+ "sass": "^1.86.0",
"vite": "^5.4.1"
}
}
diff --git a/frontend/src/components/security/AuditTab.jsx b/frontend/src/components/security/AuditTab.jsx
new file mode 100644
index 00000000..34c10293
--- /dev/null
+++ b/frontend/src/components/security/AuditTab.jsx
@@ -0,0 +1,112 @@
+import React, { useState } from 'react';
+import api from '../../services/api';
+
+const AuditTab = () => {
+ const [audit, setAudit] = useState(null);
+ const [loading, setLoading] = useState(false);
+ const [error, setError] = useState(null);
+
+ const runAudit = async () => {
+ setLoading(true);
+ setError(null);
+ try {
+ const data = await api.generateSecurityAudit();
+ setAudit(data.audit);
+ } catch (err) {
+ setError(err.message);
+ } finally {
+ setLoading(false);
+ }
+ };
+
+ const getSeverityClass = (severity) => {
+ switch (severity) {
+ case 'pass': return 'badge-success';
+ case 'critical': return 'badge-danger';
+ case 'warning': return 'badge-warning';
+ case 'info': return 'badge-info';
+ default: return 'badge-secondary';
+ }
+ };
+
+ const getScoreClass = (score) => {
+ if (score >= 80) return 'score-excellent';
+ if (score >= 60) return 'score-good';
+ if (score >= 40) return 'score-fair';
+ return 'score-poor';
+ };
+
+ return (
+ <div className="audit-tab">
+ <div className="card">
+ <div className="card-header">
+ <h3>Security Audit</h3>
+ <button className="btn btn-primary" onClick={runAudit} disabled={loading}>
+ {loading ? 'Running Audit...' : 'Run Audit'}
+ </button>
+ </div>
+ <div className="card-body">
+ {error && <div className="alert alert-danger">{error}</div>}
+
+ {!audit && !loading && (
+ <div className="empty-state">
+ <svg viewBox="0 0 24 24" width="48" height="48" stroke="currentColor" fill="none" strokeWidth="1">
+ <path d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"/>
+ </svg>
+ <p>Run a security audit to check your server's configuration.</p>
+ </div>
+ )}
+
+ {loading && (
+ <div className="loading-state">
+ <div className="spinner"></div>
+ <p>Running security audit...</p>
+ </div>
+ )}
+
+ {audit && !loading && (
+ <div className="audit-results">
+ <div className={`audit-score ${getScoreClass(audit.score)}`}>
+ <span className="score-value">{audit.score}</span>
+ <span className="score-label">Security Score</span>
+ </div>
+
+ <div className="audit-timestamp">
+ Generated: {new Date(audit.generated_at).toLocaleString()}
+ </div>
+
+ {Object.entries(audit.services || {}).map(([service, data]) => (
+ <div key={service} className="audit-section">
+ <h4>{service.toUpperCase()}</h4>
+ <div className="findings-list">
+ {data.findings?.map((finding, idx) => (
+ <div key={idx} className="finding-item">
+ <span className={`badge ${getSeverityClass(finding.severity)}`}>
+ {finding.severity}
+ </span>
+ <span className="finding-message">{finding.message}</span>
+ </div>
+ ))}
+ </div>
+ </div>
+ ))}
+
+ {audit.recommendations?.length > 0 && (
+ <div className="audit-section recommendations">
+ <h4>Recommendations</h4>
+ <ul>
+ {audit.recommendations.map((rec, idx) => (
+ <li key={idx}>{rec}</li>
+ ))}
+ </ul>
+ </div>
+ )}
+ </div>
+ )}
+ </div>
+ </div>
+ </div>
+ );
+};
+
+export default AuditTab;
diff --git a/frontend/src/components/security/AutoUpdatesTab.jsx b/frontend/src/components/security/AutoUpdatesTab.jsx
new file mode 100644
index 00000000..3a5fb2d9
--- /dev/null
+++ b/frontend/src/components/security/AutoUpdatesTab.jsx
@@ -0,0 +1,140 @@
+import React, { useState, useEffect } from 'react';
+import api from '../../services/api';
+import { useToast } from '../../contexts/ToastContext';
+
+const AutoUpdatesTab = () => {
+ const [status, setStatus] = useState(null);
+ const [loading, setLoading] = useState(true);
+ const [actionLoading, setActionLoading] = useState(false);
+ const toast = useToast();
+
+ useEffect(() => {
+ loadStatus();
+ }, []);
+
+ const loadStatus = async () => {
+ setLoading(true);
+ try {
+ const data = await api.getAutoUpdatesStatus();
+ setStatus(data);
+ } catch (error) {
+ console.error('Failed to load auto-updates status:', error);
+ } finally {
+ setLoading(false);
+ }
+ };
+
+ const handleInstall = async () => {
+ setActionLoading(true);
+ try {
+ await api.installAutoUpdates();
+ toast.success('Auto-updates package installed');
+ await loadStatus();
+ } catch (error) {
+ toast.error(`Failed to install: ${error.message}`);
+ } finally {
+ setActionLoading(false);
+ }
+ };
+
+ const handleEnable = async () => {
+ setActionLoading(true);
+ try {
+ await api.enableAutoUpdates();
+ toast.success('Automatic updates enabled');
+ await loadStatus();
+ } catch (error) {
+ toast.error(`Failed to enable: ${error.message}`);
+ } finally {
+ setActionLoading(false);
+ }
+ };
+
+ const handleDisable = async () => {
+ setActionLoading(true);
+ try {
+ await api.disableAutoUpdates();
+ toast.success('Automatic updates disabled');
+ await loadStatus();
+ } catch (error) {
+ toast.error(`Failed to disable: ${error.message}`);
+ } finally {
+ setActionLoading(false);
+ }
+ };
+
+ if (loading) {
+ return <div className="loading-sm">Loading auto-updates status...</div>;
+ }
+
+ if (!status?.supported) {
+ return (
+ <div className="auto-updates-tab">
+ <div className="empty-state">
+ <svg viewBox="0 0 24 24" width="48" height="48" stroke="currentColor" fill="none" strokeWidth="1">
+ <path d="M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"/>
+ </svg>
+ <h3>Not Supported</h3>
+ <p>Automatic security updates are not supported on this system.</p>
+ </div>
+ </div>
+ );
+ }
+
+ return (
+ <div className="auto-updates-tab">
+ <div className="card">
+ <div className="card-header">
+ <h3>Automatic Security Updates</h3>
+ <button className="btn btn-sm btn-secondary" onClick={loadStatus}>Refresh</button>
+ </div>
+ <div className="card-body">
+ <div className="info-list">
+ <div className="info-item">
+ <span className="info-label">Package</span>
+ <span className="info-value">{status.package}</span>
+ </div>
+ <div className="info-item">
+ <span className="info-label">Installed</span>
+ <span className={`badge ${status.installed ? 'badge-success' : 'badge-warning'}`}>
+ {status.installed ? 'Yes' : 'No'}
+ </span>
+ </div>
+ <div className="info-item">
+ <span className="info-label">Status</span>
+ <span className={`badge ${status.enabled ? 'badge-success' : 'badge-secondary'}`}>
+ {status.enabled ? 'Enabled' : 'Disabled'}
+ </span>
+ </div>
+ </div>
+
+ <div className="auto-updates-actions" style={{ marginTop: '1.5rem' }}>
+ {!status.installed ? (
+ <button className="btn btn-primary" onClick={handleInstall} disabled={actionLoading}>
+ {actionLoading ? 'Installing...' : 'Install Auto-Updates'}
+ </button>
+ ) : status.enabled ? (
+ <button className="btn btn-warning" onClick={handleDisable} disabled={actionLoading}>
+ {actionLoading ? 'Disabling...' : 'Disable Auto-Updates'}
+ </button>
+ ) : (
+ <button className="btn btn-success" onClick={handleEnable} disabled={actionLoading}>
+ {actionLoading ? 'Enabling...' : 'Enable Auto-Updates'}
+ </button>
+ )}
+ </div>
+
+ <div className="help-text" style={{ marginTop: '1.5rem' }}>
+ <p>
+ <strong>What are automatic security updates?</strong><br/>
+ When enabled, your server will automatically download and install security updates,
+ helping protect against known vulnerabilities without manual intervention.
+ </p>
+ </div>
+ </div>
+ </div>
+ </div>
+ );
+};
+
+export default AutoUpdatesTab;
diff --git a/frontend/src/components/security/EventsTab.jsx b/frontend/src/components/security/EventsTab.jsx
new file mode 100644
index 00000000..ded62ed3
--- /dev/null
+++ b/frontend/src/components/security/EventsTab.jsx
@@ -0,0 +1,98 @@
+import React, { useState, useEffect } from 'react';
+import api from '../../services/api';
+
+const EventsTab = () => {
+ const [events, setEvents] = useState([]);
+ const [failedLogins, setFailedLogins] = useState(null);
+ const [loading, setLoading] = useState(true);
+
+ useEffect(() => {
+ loadEvents();
+ loadFailedLogins();
+ }, []);
+
+ async function loadEvents() {
+ try {
+ const data = await api.getSecurityEvents(50);
+ setEvents(data.events || []);
+ } catch (err) {
+ console.error('Failed to load security events:', err);
+ } finally {
+ setLoading(false);
+ }
+ }
+
+ async function loadFailedLogins() {
+ try {
+ const data = await api.getFailedLogins(24);
+ setFailedLogins(data);
+ } catch (err) {
+ console.error('Failed to load failed logins:', err);
+ }
+ }
+
+ function getEventIcon(type) {
+ if (type.includes('malware')) {
+ return <svg viewBox="0 0 24 24" width="16" height="16" stroke="currentColor" fill="none" strokeWidth="2"><path d="M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"/></svg>;
+ }
+ if (type.includes('integrity')) {
+ return <svg viewBox="0 0 24 24" width="16" height="16" stroke="currentColor" fill="none" strokeWidth="2"><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"/><polyline points="14 2 14 8 20 8"/></svg>;
+ }
+ return <svg viewBox="0 0 24 24" width="16" height="16" stroke="currentColor" fill="none" strokeWidth="2"><path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"/></svg>;
+ }
+
+ return (
+ <div className="events-tab">
+ {failedLogins && (
+ <div className={`card ${failedLogins.alert_triggered ? 'card-warning' : ''}`}>
+ <div className="card-header">
+ <h3>Failed Login Attempts (24h)</h3>
+ <button className="btn btn-sm btn-secondary" onClick={loadFailedLogins}>Refresh</button>
+ </div>
+ <div className="card-body">
+ <div className="failed-login-summary">
+ <span className={`count ${failedLogins.alert_triggered ? 'danger' : ''}`}>
+ {failedLogins.failed_attempts}
+ </span>
+ <span className="label">failed attempts (threshold: {failedLogins.threshold})</span>
+ </div>
+ {failedLogins.recent_failures?.length > 0 && (
+ <details className="recent-failures">
+ <summary>View recent failures</summary>
+ <pre>{failedLogins.recent_failures.join('\n')}</pre>
+ </details>
+ )}
+ </div>
+ </div>
+ )}
+
+ <div className="card">
+ <div className="card-header">
+ <h3>Security Events</h3>
+ <button className="btn btn-sm btn-secondary" onClick={loadEvents}>Refresh</button>
+ </div>
+ <div className="card-body">
+ {loading ? (
+ <div className="loading-sm">Loading...</div>
+ ) : events.length === 0 ? (
+ <p className="text-muted">No security events recorded.</p>
+ ) : (
+ <div className="events-list">
+ {events.map((event, index) => (
+ <div key={index} className={`event-item ${event.type}`}>
+ <div className="event-icon">{getEventIcon(event.type)}</div>
+ <div className="event-content">
+ <span className="event-message">{event.message}</span>
+ <span className="event-time">{new Date(event.timestamp).toLocaleString()}</span>
+ </div>
+ </div>
+ ))}
+ </div>
+ )}
+ </div>
+ </div>
+ </div>
+ );
+};
+
+export default EventsTab;
diff --git a/frontend/src/components/security/Fail2banTab.jsx b/frontend/src/components/security/Fail2banTab.jsx
new file mode 100644
index 00000000..01083600
--- /dev/null
+++ b/frontend/src/components/security/Fail2banTab.jsx
@@ -0,0 +1,227 @@
+import React, { useState, useEffect } from 'react';
+import api from '../../services/api';
+import ConfirmDialog from '../ConfirmDialog';
+import { useToast } from '../../contexts/ToastContext';
+
+const Fail2banTab = () => {
+ const [status, setStatus] = useState(null);
+ const [bans, setBans] = useState([]);
+ const [loading, setLoading] = useState(true);
+ const [actionLoading, setActionLoading] = useState(false);
+ const [showBanModal, setShowBanModal] = useState(false);
+ const [banIP, setBanIP] = useState('');
+ const [banJail, setBanJail] = useState('sshd');
+ const [confirmDialog, setConfirmDialog] = useState(null);
+ const toast = useToast();
+
+ useEffect(() => {
+ loadData();
+ }, []);
+
+ const loadData = async () => {
+ setLoading(true);
+ try {
+ const [statusData, bansData] = await Promise.all([
+ api.getFail2banStatus(),
+ api.getAllFail2banBans().catch(() => ({ banned_ips: [] }))
+ ]);
+ setStatus(statusData);
+ setBans(bansData.banned_ips || []);
+ } catch (error) {
+ console.error('Failed to load Fail2ban data:', error);
+ } finally {
+ setLoading(false);
+ }
+ };
+
+ const handleInstall = async () => {
+ setActionLoading(true);
+ try {
+ await api.installFail2ban();
+ toast.success('Fail2ban installed successfully');
+ await loadData();
+ } catch (error) {
+ toast.error(`Failed to install: ${error.message}`);
+ } finally {
+ setActionLoading(false);
+ }
+ };
+
+ const handleBan = async () => {
+ if (!banIP.trim()) return;
+ setActionLoading(true);
+ try {
+ await api.fail2banBan(banIP, banJail);
+ toast.success(`IP ${banIP} banned in ${banJail}`);
+ setShowBanModal(false);
+ setBanIP('');
+ await loadData();
+ } catch (error) {
+ toast.error(`Failed to ban IP: ${error.message}`);
+ } finally {
+ setActionLoading(false);
+ }
+ };
+
+ const handleUnban = async (ip, jail) => {
+ setConfirmDialog({
+ title: 'Unban IP',
+ message: `Are you sure you want to unban ${ip} from ${jail}?`,
+ confirmText: 'Unban',
+ variant: 'warning',
+ onConfirm: async () => {
+ try {
+ await api.fail2banUnban(ip, jail);
+ toast.success(`IP ${ip} unbanned`);
+ await loadData();
+ } catch (error) {
+ toast.error(`Failed to unban: ${error.message}`);
+ }
+ setConfirmDialog(null);
+ },
+ onCancel: () => setConfirmDialog(null)
+ });
+ };
+
+ if (loading) {
+ return <div className="loading-sm">Loading Fail2ban status...</div>;
+ }
+
+ return (
+ <div className="fail2ban-tab">
+ {!status?.installed ? (
+ <div className="empty-state">
+ <svg viewBox="0 0 24 24" width="48" height="48" stroke="currentColor" fill="none" strokeWidth="1">
+ <path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"/>
+ </svg>
+ <h3>Fail2ban Not Installed</h3>
+ <p>Install Fail2ban to protect against brute force attacks.</p>
+ <button className="btn btn-primary" onClick={handleInstall} disabled={actionLoading}>
+ {actionLoading ? 'Installing...' : 'Install Fail2ban'}
+ </button>
+ </div>
+ ) : (
+ <>
+ <div className="card">
+ <div className="card-header">
+ <h3>Fail2ban Status</h3>
+ <div className="card-actions">
+ <button className="btn btn-sm btn-primary" onClick={() => setShowBanModal(true)}>
+ Ban IP
+ </button>
+ <button className="btn btn-sm btn-secondary" onClick={loadData}>
+ Refresh
+ </button>
+ </div>
+ </div>
+ <div className="card-body">
+ <div className="info-list">
+ <div className="info-item">
+ <span className="info-label">Service</span>
+ <span className={`badge ${status.service_running ? 'badge-success' : 'badge-danger'}`}>
+ {status.service_running ? 'Running' : 'Stopped'}
+ </span>
+ </div>
+ <div className="info-item">
+ <span className="info-label">Version</span>
+ <span className="info-value">{status.version || 'Unknown'}</span>
+ </div>
+ <div className="info-item">
+ <span className="info-label">Active Jails</span>
+ <span className="info-value">{status.jails?.join(', ') || 'None'}</span>
+ </div>
+ <div className="info-item">
+ <span className="info-label">Total Banned IPs</span>
+ <span className="info-value">{bans.length}</span>
+ </div>
+ </div>
+ </div>
+ </div>
+
+ <div className="card">
+ <div className="card-header">
+ <h3>Banned IPs</h3>
+ </div>
+ <div className="card-body">
+ {bans.length === 0 ? (
+ <p className="text-muted">No IPs are currently banned.</p>
+ ) : (
+ <table className="table">
+ <thead>
+ <tr>
+ <th>IP Address</th>
+ <th>Jail</th>
+ <th>Actions</th>
+ </tr>
+ </thead>
+ <tbody>
+ {bans.map((ban, index) => (
+ <tr key={index}>
+ <td><code>{ban.ip}</code></td>
+ <td><span className="badge badge-info">{ban.jail}</span></td>
+ <td>
+ <button className="btn btn-sm btn-warning" onClick={() => handleUnban(ban.ip, ban.jail)}>
+ Unban
+ </button>
+ </td>
+ </tr>
+ ))}
+ </tbody>
+ </table>
+ )}
+ </div>
+ </div>
+ </>
+ )}
+
+ {showBanModal && (
+ <div className="modal-overlay" onClick={() => setShowBanModal(false)}>
+ <div className="modal" onClick={(e) => e.stopPropagation()}>
+ <div className="modal-header">
+ <h2>Ban IP Address</h2>
+ <button className="btn btn-icon" onClick={() => setShowBanModal(false)}>×</button>
+ </div>
+ <div className="modal-body">
+ <div className="form-group">
+ <label>IP Address</label>
+ <input
+ type="text"
+ value={banIP}
+ onChange={(e) => setBanIP(e.target.value)}
+ placeholder="192.168.1.100"
+ />
+ </div>
+ <div className="form-group">
+ <label>Jail</label>
+ <select value={banJail} onChange={(e) => setBanJail(e.target.value)}>
+ {status?.jails?.map(jail => (
+ <option key={jail} value={jail}>{jail}</option>
+ ))}
+ </select>
+ </div>
+ </div>
+ <div className="modal-footer">
+ <button className="btn btn-secondary" onClick={() => setShowBanModal(false)}>Cancel</button>
+ <button className="btn btn-danger" onClick={handleBan} disabled={actionLoading || !banIP.trim()}>
+ {actionLoading ? 'Banning...' : 'Ban IP'}
+ </button>
+ </div>
+ </div>
+ </div>
+ )}
+
+ {confirmDialog && (
+ <ConfirmDialog
+ title={confirmDialog.title}
+ message={confirmDialog.message}
+ confirmText={confirmDialog.confirmText}
+ variant={confirmDialog.variant}
+ onConfirm={confirmDialog.onConfirm}
+ onCancel={confirmDialog.onCancel}
+ />
+ )}
+ </div>
+ );
+};
+
+export default Fail2banTab;
diff --git a/frontend/src/components/security/FirewallTab.jsx b/frontend/src/components/security/FirewallTab.jsx
new file mode 100644
index 00000000..64b46ef4
--- /dev/null
+++ b/frontend/src/components/security/FirewallTab.jsx
@@ -0,0 +1,552 @@
+import React, { useState, useEffect } from 'react';
+import api from '../../services/api';
+import ConfirmDialog from '../ConfirmDialog';
+import { useToast } from '../../contexts/ToastContext';
+
+const FirewallTab = () => {
+ const [status, setStatus] = useState(null);
+ const [rules, setRules] = useState([]);
+ const [blockedIPs, setBlockedIPs] = useState([]);
+ const [loading, setLoading] = useState(true);
+ const [activeSubTab, setActiveSubTab] = useState('status');
+ const [showBlockIPModal, setShowBlockIPModal] = useState(false);
+ const [showPortModal, setShowPortModal] = useState(false);
+ const [showInstallModal, setShowInstallModal] = useState(false);
+ const [blockIP, setBlockIP] = useState('');
+ const [newPort, setNewPort] = useState({ port: '', protocol: 'tcp' });
+ const [selectedFirewall, setSelectedFirewall] = useState('ufw');
+ const [actionLoading, setActionLoading] = useState(false);
+ const [confirmDialog, setConfirmDialog] = useState(null);
+ const toast = useToast();
+
+ const commonPorts = [
+ { port: 22, name: 'SSH', protocol: 'tcp' },
+ { port: 80, name: 'HTTP', protocol: 'tcp' },
+ { port: 443, name: 'HTTPS', protocol: 'tcp' },
+ { port: 21, name: 'FTP', protocol: 'tcp' },
+ { port: 25, name: 'SMTP', protocol: 'tcp' },
+ { port: 3306, name: 'MySQL', protocol: 'tcp' },
+ { port: 5432, name: 'PostgreSQL', protocol: 'tcp' },
+ { port: 6379, name: 'Redis', protocol: 'tcp' },
+ { port: 27017, name: 'MongoDB', protocol: 'tcp' },
+ ];
+
+ useEffect(() => {
+ loadData();
+ }, []);
+
+ const loadData = async () => {
+ setLoading(true);
+ try {
+ await Promise.all([loadStatus(), loadRules(), loadBlockedIPs()]);
+ } catch (error) {
+ console.error('Failed to load firewall data:', error);
+ } finally {
+ setLoading(false);
+ }
+ };
+
+ const loadStatus = async () => {
+ try {
+ const data = await api.getFirewallStatus();
+ setStatus(data);
+ } catch (error) {
+ console.error('Failed to load status:', error);
+ }
+ };
+
+ const loadRules = async () => {
+ try {
+ const data = await api.getFirewallRules();
+ setRules(data.rules || []);
+ } catch (error) {
+ console.error('Failed to load rules:', error);
+ }
+ };
+
+ const loadBlockedIPs = async () => {
+ try {
+ const data = await api.getBlockedIPs();
+ setBlockedIPs(data.blocked_ips || []);
+ } catch (error) {
+ console.error('Failed to load blocked IPs:', error);
+ }
+ };
+
+ const handleEnable = async () => {
+ setActionLoading(true);
+ try {
+ await api.enableFirewall();
+ toast.success('Firewall enabled');
+ await loadStatus();
+ } catch (error) {
+ toast.error(`Failed to enable firewall: ${error.message}`);
+ } finally {
+ setActionLoading(false);
+ }
+ };
+
+ const handleDisable = async () => {
+ setConfirmDialog({
+ title: 'Disable Firewall',
+ message: 'Are you sure you want to disable the firewall? This will leave your server unprotected.',
+ confirmText: 'Disable',
+ variant: 'danger',
+ onConfirm: async () => {
+ setActionLoading(true);
+ try {
+ await api.disableFirewall();
+ toast.success('Firewall disabled');
+ await loadStatus();
+ } catch (error) {
+ toast.error(`Failed to disable firewall: ${error.message}`);
+ } finally {
+ setActionLoading(false);
+ setConfirmDialog(null);
+ }
+ },
+ onCancel: () => setConfirmDialog(null)
+ });
+ };
+
+ const handleBlockIP = async () => {
+ if (!blockIP.trim()) return;
+ setActionLoading(true);
+ try {
+ await api.blockIP(blockIP);
+ toast.success(`IP ${blockIP} blocked`);
+ setShowBlockIPModal(false);
+ setBlockIP('');
+ await loadBlockedIPs();
+ await loadRules();
+ } catch (error) {
+ toast.error(`Failed to block IP: ${error.message}`);
+ } finally {
+ setActionLoading(false);
+ }
+ };
+
+ const handleUnblockIP = async (ip) => {
+ setConfirmDialog({
+ title: 'Unblock IP',
+ message: `Are you sure you want to unblock ${ip}?`,
+ confirmText: 'Unblock',
+ variant: 'warning',
+ onConfirm: async () => {
+ try {
+ await api.unblockIP(ip);
+ toast.success(`IP ${ip} unblocked`);
+ await loadBlockedIPs();
+ await loadRules();
+ } catch (error) {
+ toast.error(`Failed to unblock IP: ${error.message}`);
+ }
+ setConfirmDialog(null);
+ },
+ onCancel: () => setConfirmDialog(null)
+ });
+ };
+
+ const handleAllowPort = async () => {
+ if (!newPort.port) return;
+ setActionLoading(true);
+ try {
+ await api.allowPort(parseInt(newPort.port), newPort.protocol);
+ toast.success(`Port ${newPort.port}/${newPort.protocol} allowed`);
+ setShowPortModal(false);
+ setNewPort({ port: '', protocol: 'tcp' });
+ await loadRules();
+ } catch (error) {
+ toast.error(`Failed to allow port: ${error.message}`);
+ } finally {
+ setActionLoading(false);
+ }
+ };
+
+ const handleQuickAllowPort = async (port, protocol) => {
+ setActionLoading(true);
+ try {
+ await api.allowPort(port, protocol);
+ toast.success(`Port ${port}/${protocol} allowed`);
+ await loadRules();
+ } catch (error) {
+ toast.error(`Failed to allow port: ${error.message}`);
+ } finally {
+ setActionLoading(false);
+ }
+ };
+
+ const handleRemovePort = async (port, protocol) => {
+ setConfirmDialog({
+ title: 'Remove Port Rule',
+ message: `Are you sure you want to remove the rule for port ${port}/${protocol}?`,
+ confirmText: 'Remove',
+ variant: 'danger',
+ onConfirm: async () => {
+ try {
+ await api.denyPort(parseInt(port), protocol);
+ toast.success(`Port ${port}/${protocol} rule removed`);
+ await loadRules();
+ } catch (error) {
+ toast.error(`Failed to remove port: ${error.message}`);
+ }
+ setConfirmDialog(null);
+ },
+ onCancel: () => setConfirmDialog(null)
+ });
+ };
+
+ const handleInstall = async () => {
+ setActionLoading(true);
+ try {
+ await api.installFirewall(selectedFirewall);
+ toast.success(`${selectedFirewall.toUpperCase()} installed successfully`);
+ setShowInstallModal(false);
+ await loadData();
+ } catch (error) {
+ toast.error(`Failed to install firewall: ${error.message}`);
+ } finally {
+ setActionLoading(false);
+ }
+ };
+
+ const isActive = status?.any_active;
+ const activeFirewall = status?.active_firewall;
+
+ if (loading) {
+ return <div className="loading-sm">Loading firewall status...</div>;
+ }
+
+ return (
+ <div className="firewall-tab">
+ {!status?.any_installed ? (
+ <div className="empty-state">
+ <svg viewBox="0 0 24 24" width="48" height="48" stroke="currentColor" fill="none" strokeWidth="1">
+ <path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"/>
+ </svg>
+ <h3>No Firewall Installed</h3>
+ <p>Install a firewall to protect your server from unauthorized access.</p>
+ <button className="btn btn-primary" onClick={() => setShowInstallModal(true)}>
+ Install Firewall
+ </button>
+ </div>
+ ) : (
+ <>
+ <div className="firewall-header">
+ <div className="firewall-status-row">
+ <div className={`status-indicator ${isActive ? 'active' : 'inactive'}`}>
+ <svg viewBox="0 0 24 24" width="20" height="20" stroke="currentColor" fill="none" strokeWidth="2">
+ <path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"/>
+ </svg>
+ <span>{isActive ? 'Firewall Active' : 'Firewall Inactive'}</span>
+ <span className="firewall-type">({activeFirewall?.toUpperCase()})</span>
+ </div>
+ <div className="firewall-actions">
+ <button className="btn btn-sm btn-secondary" onClick={() => setShowBlockIPModal(true)}>
+ Block IP
+ </button>
+ <button className="btn btn-sm btn-secondary" onClick={() => setShowPortModal(true)}>
+ Allow Port
+ </button>
+ {isActive ? (
+ <button className="btn btn-sm btn-danger" onClick={handleDisable} disabled={actionLoading}>
+ Disable
+ </button>
+ ) : (
+ <button className="btn btn-sm btn-success" onClick={handleEnable} disabled={actionLoading}>
+ Enable
+ </button>
+ )}
+ </div>
+ </div>
+ </div>
+
+ <div className="firewall-stats">
+ <div className="stat-mini">
+ <span className="stat-value">{rules.length}</span>
+ <span className="stat-label">Rules</span>
+ </div>
+ <div className="stat-mini">
+ <span className="stat-value">{blockedIPs.length}</span>
+ <span className="stat-label">Blocked IPs</span>
+ </div>
+ <div className="stat-mini">
+ <span className="stat-value">{rules.filter(r => r.type === 'port' || r.port).length}</span>
+ <span className="stat-label">Ports Open</span>
+ </div>
+ </div>
+
+ <div className="subtabs">
+ <button className={`subtab ${activeSubTab === 'status' ? 'active' : ''}`} onClick={() => setActiveSubTab('status')}>
+ Status
+ </button>
+ <button className={`subtab ${activeSubTab === 'rules' ? 'active' : ''}`} onClick={() => setActiveSubTab('rules')}>
+ Rules
+ </button>
+ <button className={`subtab ${activeSubTab === 'blocked' ? 'active' : ''}`} onClick={() => setActiveSubTab('blocked')}>
+ Blocked IPs
+ </button>
+ <button className={`subtab ${activeSubTab === 'quick' ? 'active' : ''}`} onClick={() => setActiveSubTab('quick')}>
+ Quick Ports
+ </button>
+ </div>
+
+ {activeSubTab === 'status' && (
+ <div className="card">
+ <div className="card-header">
+ <h3>Firewall Information</h3>
+ <button className="btn btn-sm btn-secondary" onClick={loadData}>Refresh</button>
+ </div>
+ <div className="card-body">
+ <div className="info-list">
+ <div className="info-item">
+ <span className="info-label">Type</span>
+ <span className="info-value">{activeFirewall?.toUpperCase()}</span>
+ </div>
+ <div className="info-item">
+ <span className="info-label">Status</span>
+ <span className={`badge ${isActive ? 'badge-success' : 'badge-danger'}`}>
+ {isActive ? 'Active' : 'Inactive'}
+ </span>
+ </div>
+ {activeFirewall === 'firewalld' && status?.firewalld?.default_zone && (
+ <div className="info-item">
+ <span className="info-label">Default Zone</span>
+ <span className="info-value">{status.firewalld.default_zone}</span>
+ </div>
+ )}
+ </div>
+ </div>
+ </div>
+ )}
+
+ {activeSubTab === 'rules' && (
+ <div className="card">
+ <div className="card-header">
+ <h3>Firewall Rules</h3>
+ <button className="btn btn-sm btn-primary" onClick={() => setShowPortModal(true)}>Add Rule</button>
+ </div>
+ <div className="card-body">
+ {rules.length === 0 ? (
+ <p className="text-muted">No rules configured</p>
+ ) : (
+ <table className="table">
+ <thead>
+ <tr>
+ <th>Type</th>
+ <th>Target</th>
+ <th>Protocol</th>
+ <th>Actions</th>
+ </tr>
+ </thead>
+ <tbody>
+ {rules.map((rule, index) => (
+ <tr key={index}>
+ <td><span className="badge badge-info">{rule.type}</span></td>
+ <td>
+ {rule.type === 'service' && rule.service}
+ {rule.type === 'port' && rule.port}
+ {rule.type === 'rich' && <code>{rule.rule}</code>}
+ </td>
+ <td>{rule.protocol || '-'}</td>
+ <td>
+ {rule.type === 'port' && (
+ <button className="btn btn-sm btn-danger" onClick={() => handleRemovePort(rule.port, rule.protocol)}>
+ Remove
+ </button>
+ )}
+ </td>
+ </tr>
+ ))}
+ </tbody>
+ </table>
+ )}
+ </div>
+ </div>
+ )}
+
+ {activeSubTab === 'blocked' && (
+ <div className="card">
+ <div className="card-header">
+ <h3>Blocked IP Addresses</h3>
+ <button className="btn btn-sm btn-primary" onClick={() => setShowBlockIPModal(true)}>Block IP</button>
+ </div>
+ <div className="card-body">
+ {blockedIPs.length === 0 ? (
+ <div className="empty-state-sm">
+ <p>No blocked IPs</p>
+ </div>
+ ) : (
+ <div className="blocked-list">
+ {blockedIPs.map((item, index) => (
+ <div key={index} className="blocked-item">
+ <div className="blocked-info">
+ <span className="blocked-ip">{item.ip}</span>
+ </div>
+ <button className="btn btn-sm btn-warning" onClick={() => handleUnblockIP(item.ip)}>
+ Unblock
+ </button>
+ </div>
+ ))}
+ </div>
+ )}
+ </div>
+ </div>
+ )}
+
+ {activeSubTab === 'quick' && (
+ <div className="card">
+ <div className="card-header">
+ <h3>Quick Port Access</h3>
+ </div>
+ <div className="card-body">
+ <p className="text-muted" style={{ marginBottom: '1rem' }}>One-click enable/disable common service ports</p>
+ <div className="quick-ports-grid">
+ {commonPorts.map(({ port, name, protocol }) => {
+ const isAllowed = rules.some(r =>
+ (r.port === String(port) || r.port === port) && r.protocol === protocol
+ );
+ return (
+ <div key={port} className="quick-port-card">
+ <div className="port-info">
+ <span className="port-name">{name}</span>
+ <span className="port-number">{port}/{protocol}</span>
+ </div>
+ {isAllowed ? (
+ <button className="btn btn-sm btn-danger" onClick={() => handleRemovePort(port, protocol)} disabled={actionLoading}>
+ Block
+ </button>
+ ) : (
+ <button className="btn btn-sm btn-success" onClick={() => handleQuickAllowPort(port, protocol)} disabled={actionLoading}>
+ Allow
+ </button>
+ )}
+ </div>
+ );
+ })}
+ </div>
+ </div>
+ </div>
+ )}
+ </>
+ )}
+
+ {/* Block IP Modal */}
+ {showBlockIPModal && (
+ <div className="modal-overlay" onClick={() => setShowBlockIPModal(false)}>
+ <div className="modal" onClick={(e) => e.stopPropagation()}>
+ <div className="modal-header">
+ <h2>Block IP Address</h2>
+ <button className="btn btn-icon" onClick={() => setShowBlockIPModal(false)}>×</button>
+ </div>
+ <div className="modal-body">
+ <div className="form-group">
+ <label>IP Address</label>
+ <input
+ type="text"
+ value={blockIP}
+ onChange={(e) => setBlockIP(e.target.value)}
+ placeholder="192.168.1.100 or 10.0.0.0/24"
+ />
+ </div>
+ <p className="text-muted">You can block a single IP or a range using CIDR notation.</p>
+ </div>
+ <div className="modal-footer">
+ <button className="btn btn-secondary" onClick={() => setShowBlockIPModal(false)}>Cancel</button>
+ <button className="btn btn-danger" onClick={handleBlockIP} disabled={actionLoading || !blockIP.trim()}>
+ {actionLoading ? 'Blocking...' : 'Block IP'}
+ </button>
+ </div>
+ </div>
+ </div>
+ )}
+
+ {/* Allow Port Modal */}
+ {showPortModal && (
+ <div className="modal-overlay" onClick={() => setShowPortModal(false)}>
+ <div className="modal" onClick={(e) => e.stopPropagation()}>
+ <div className="modal-header">
+ <h2>Allow Port</h2>
+ <button className="btn btn-icon" onClick={() => setShowPortModal(false)}>×</button>
+ </div>
+ <div className="modal-body">
+ <div className="form-row">
+ <div className="form-group">
+ <label>Port Number</label>
+ <input
+ type="number"
+ value={newPort.port}
+ onChange={(e) => setNewPort({ ...newPort, port: e.target.value })}
+ placeholder="8080"
+ min="1"
+ max="65535"
+ />
+ </div>
+ <div className="form-group">
+ <label>Protocol</label>
+ <select value={newPort.protocol} onChange={(e) => setNewPort({ ...newPort, protocol: e.target.value })}>
+ <option value="tcp">TCP</option>
+ <option value="udp">UDP</option>
+ </select>
+ </div>
+ </div>
+ </div>
+ <div className="modal-footer">
+ <button className="btn btn-secondary" onClick={() => setShowPortModal(false)}>Cancel</button>
+ <button className="btn btn-primary" onClick={handleAllowPort} disabled={actionLoading || !newPort.port}>
+ {actionLoading ? 'Adding...' : 'Allow Port'}
+ </button>
+ </div>
+ </div>
+ </div>
+ )}
+
+ {/* Install Firewall Modal */}
+ {showInstallModal && (
+ <div className="modal-overlay" onClick={() => setShowInstallModal(false)}>
+ <div className="modal" onClick={(e) => e.stopPropagation()}>
+ <div className="modal-header">
+ <h2>Install Firewall</h2>
+ <button className="btn btn-icon" onClick={() => setShowInstallModal(false)}>×</button>
+ </div>
+ <div className="modal-body">
+ <div className="form-group">
+ <label>Select Firewall</label>
+ <select value={selectedFirewall} onChange={(e) => setSelectedFirewall(e.target.value)}>
+ <option value="ufw">UFW (Recommended for Ubuntu)</option>
+ <option value="firewalld">firewalld (CentOS/RHEL)</option>
+ </select>
+ </div>
+ <div className="install-info">
+ {selectedFirewall === 'ufw' ? (
+ <p><strong>UFW (Uncomplicated Firewall)</strong> is simple and easy to use for Ubuntu/Debian systems.</p>
+ ) : (
+ <p><strong>firewalld</strong> is a dynamically managed firewall with zone-based configuration for CentOS/RHEL.</p>
+ )}
+ </div>
+ </div>
+ <div className="modal-footer">
+ <button className="btn btn-secondary" onClick={() => setShowInstallModal(false)}>Cancel</button>
+ <button className="btn btn-primary" onClick={handleInstall} disabled={actionLoading}>
+ {actionLoading ? 'Installing...' : 'Install'}
+ </button>
+ </div>
+ </div>
+ </div>
+ )}
+
+ {confirmDialog && (
+ <ConfirmDialog
+ title={confirmDialog.title}
+ message={confirmDialog.message}
+ confirmText={confirmDialog.confirmText}
+ variant={confirmDialog.variant}
+ onConfirm={confirmDialog.onConfirm}
+ onCancel={confirmDialog.onCancel}
+ />
+ )}
+ </div>
+ );
+};
+
+export default FirewallTab;
diff --git a/frontend/src/components/security/IPListsTab.jsx b/frontend/src/components/security/IPListsTab.jsx
new file mode 100644
index 00000000..44f35ac7
--- /dev/null
+++ b/frontend/src/components/security/IPListsTab.jsx
@@ -0,0 +1,165 @@
+import React, { useState, useEffect } from 'react';
+import api from '../../services/api';
+import ConfirmDialog from '../ConfirmDialog';
+import { useToast } from '../../contexts/ToastContext';
+
+const IPListsTab = () => {
+ const [lists, setLists] = useState({ allowlist: [], blocklist: [] });
+ const [loading, setLoading] = useState(true);
+ const [showAddModal, setShowAddModal] = useState(null);
+ const [newIP, setNewIP] = useState('');
+ const [newComment, setNewComment] = useState('');
+ const [actionLoading, setActionLoading] = useState(false);
+ const [confirmDialog, setConfirmDialog] = useState(null);
+ const toast = useToast();
+
+ useEffect(() => {
+ loadLists();
+ }, []);
+
+ const loadLists = async () => {
+ setLoading(true);
+ try {
+ const data = await api.getIPLists();
+ setLists({
+ allowlist: data.allowlist || [],
+ blocklist: data.blocklist || []
+ });
+ } catch (error) {
+ console.error('Failed to load IP lists:', error);
+ } finally {
+ setLoading(false);
+ }
+ };
+
+ const handleAdd = async () => {
+ if (!newIP.trim()) return;
+ setActionLoading(true);
+ try {
+ await api.addToIPList(newIP, showAddModal, newComment);
+ toast.success(`IP added to ${showAddModal}`);
+ setShowAddModal(null);
+ setNewIP('');
+ setNewComment('');
+ await loadLists();
+ } catch (error) {
+ toast.error(`Failed to add IP: ${error.message}`);
+ } finally {
+ setActionLoading(false);
+ }
+ };
+
+ const handleRemove = async (ip, listType) => {
+ setConfirmDialog({
+ title: `Remove from ${listType}`,
+ message: `Are you sure you want to remove ${ip} from the ${listType}?`,
+ confirmText: 'Remove',
+ variant: 'warning',
+ onConfirm: async () => {
+ try {
+ await api.removeFromIPList(ip, listType);
+ toast.success(`IP removed from ${listType}`);
+ await loadLists();
+ } catch (error) {
+ toast.error(`Failed to remove IP: ${error.message}`);
+ }
+ setConfirmDialog(null);
+ },
+ onCancel: () => setConfirmDialog(null)
+ });
+ };
+
+ const renderList = (title, listType, items, badgeClass) => (
+ <div className="card">
+ <div className="card-header">
+ <h3>{title}</h3>
+ <button className="btn btn-sm btn-primary" onClick={() => setShowAddModal(listType)}>
+ Add IP
+ </button>
+ </div>
+ <div className="card-body">
+ {items.length === 0 ? (
+ <p className="text-muted">No IPs in {listType}.</p>
+ ) : (
+ <div className="ip-list">
+ {items.map((item, index) => (
+ <div key={index} className="ip-list-item">
+ <div className="ip-info">
+ <code className={badgeClass}>{item.ip}</code>
+ {item.comment && <span className="ip-comment">{item.comment}</span>}
+ <span className="ip-date">{new Date(item.added_at).toLocaleDateString()}</span>
+ </div>
+ <button className="btn btn-sm btn-danger" onClick={() => handleRemove(item.ip, listType)}>
+ Remove
+ </button>
+ </div>
+ ))}
+ </div>
+ )}
+ </div>
+ </div>
+ );
+
+ if (loading) {
+ return <div className="loading-sm">Loading IP lists...</div>;
+ }
+
+ return (
+ <div className="ip-lists-tab">
+ <div className="ip-lists-grid">
+ {renderList('Allowlist', 'allowlist', lists.allowlist, 'ip-allowed')}
+ {renderList('Blocklist', 'blocklist', lists.blocklist, 'ip-blocked')}
+ </div>
+
+ {showAddModal && (
+ <div className="modal-overlay" onClick={() => setShowAddModal(null)}>
+ <div className="modal" onClick={(e) => e.stopPropagation()}>
+ <div className="modal-header">
+ <h2>Add to {showAddModal}</h2>
+ <button className="btn btn-icon" onClick={() => setShowAddModal(null)}>×</button>
+ </div>
+ <div className="modal-body">
+ <div className="form-group">
+ <label>IP Address or CIDR</label>
+ <input
+ type="text"
+ value={newIP}
+ onChange={(e) => setNewIP(e.target.value)}
+ placeholder="192.168.1.100 or 10.0.0.0/24"
+ />
+ </div>
+ <div className="form-group">
+ <label>Comment (optional)</label>
+ <input
+ type="text"
+ value={newComment}
+ onChange={(e) => setNewComment(e.target.value)}
+ placeholder="Office IP, VPN, etc."
+ />
+ </div>
+ </div>
+ <div className="modal-footer">
+ <button className="btn btn-secondary" onClick={() => setShowAddModal(null)}>Cancel</button>
+ <button className="btn btn-primary" onClick={handleAdd} disabled={actionLoading || !newIP.trim()}>
+ {actionLoading ? 'Adding...' : 'Add'}
+ </button>
+ </div>
+ </div>
+ </div>
+ )}
+
+ {confirmDialog && (
+ <ConfirmDialog
+ title={confirmDialog.title}
+ message={confirmDialog.message}
+ confirmText={confirmDialog.confirmText}
+ variant={confirmDialog.variant}
+ onConfirm={confirmDialog.onConfirm}
+ onCancel={confirmDialog.onCancel}
+ />
+ )}
+ </div>
+ );
+};
+
+export default IPListsTab;
diff --git a/frontend/src/components/security/IntegrityTab.jsx b/frontend/src/components/security/IntegrityTab.jsx
new file mode 100644
index 00000000..c9972b12
--- /dev/null
+++ b/frontend/src/components/security/IntegrityTab.jsx
@@ -0,0 +1,138 @@
+import React, { useState } from 'react';
+import api from '../../services/api';
+
+const IntegrityTab = () => {
+ const [checking, setChecking] = useState(false);
+ const [initializing, setInitializing] = useState(false);
+ const [results, setResults] = useState(null);
+ const [message, setMessage] = useState(null);
+
+ async function handleInitialize() {
+ if (!confirm('This will create a new baseline for file integrity monitoring. Continue?')) return;
+
+ setInitializing(true);
+ setMessage(null);
+ try {
+ const result = await api.initializeIntegrityDatabase();
+ setMessage({ type: 'success', text: result.message });
+ } catch (err) {
+ setMessage({ type: 'error', text: err.message });
+ } finally {
+ setInitializing(false);
+ }
+ }
+
+ async function handleCheck() {
+ setChecking(true);
+ setMessage(null);
+ try {
+ const result = await api.checkFileIntegrity();
+ setResults(result);
+ if (result.total_changes === 0) {
+ setMessage({ type: 'success', text: 'No changes detected' });
+ }
+ } catch (err) {
+ setMessage({ type: 'error', text: err.message });
+ } finally {
+ setChecking(false);
+ }
+ }
+
+ return (
+ <div className="integrity-tab">
+ {message && (
+ <div className={`alert alert-${message.type === 'success' ? 'success' : 'danger'}`}>
+ {message.text}
+ </div>
+ )}
+
+ <div className="card">
+ <div className="card-header">
+ <h3>File Integrity Monitoring</h3>
+ </div>
+ <div className="card-body">
+ <p className="description">
+ File integrity monitoring tracks changes to critical system files. Initialize a baseline database,
+ then periodically check for unauthorized modifications.
+ </p>
+
+ <div className="integrity-actions">
+ <button
+ className="btn btn-secondary"
+ onClick={handleInitialize}
+ disabled={initializing}
+ >
+ {initializing ? 'Initializing...' : 'Initialize Baseline'}
+ </button>
+ <button
+ className="btn btn-primary"
+ onClick={handleCheck}
+ disabled={checking}
+ >
+ {checking ? 'Checking...' : 'Check Integrity'}
+ </button>
+ </div>
+ </div>
+ </div>
+
+ {results && results.total_changes > 0 && (
+ <div className="card">
+ <div className="card-header">
+ <h3>Changes Detected</h3>
+ <span className="badge badge-warning">{results.total_changes} changes</span>
+ </div>
+ <div className="card-body">
+ {results.changes.modified?.length > 0 && (
+ <div className="change-section">
+ <h4>Modified Files ({results.changes.modified.length})</h4>
+ <ul className="file-list">
+ {results.changes.modified.map((file, i) => (
+ <li key={i}>{file.path}</li>
+ ))}
+ </ul>
+ </div>
+ )}
+
+ {results.changes.deleted?.length > 0 && (
+ <div className="change-section">
+ <h4>Deleted Files ({results.changes.deleted.length})</h4>
+ <ul className="file-list">
+ {results.changes.deleted.map((file, i) => (
+ <li key={i}>{file}</li>
+ ))}
+ </ul>
+ </div>
+ )}
+
+ {results.changes.new?.length > 0 && (
+ <div className="change-section">
+ <h4>New Files ({results.changes.new.length})</h4>
+ <ul className="file-list">
+ {results.changes.new.slice(0, 50).map((file, i) => (
+ <li key={i}>{file}</li>
+ ))}
+ {results.changes.new.length > 50 && (
+ <li className="text-muted">... and {results.changes.new.length - 50} more</li>
+ )}
+ </ul>
+ </div>
+ )}
+
+ {results.changes.permission_changed?.length > 0 && (
+ <div className="change-section">
+ <h4>Permission Changes ({results.changes.permission_changed.length})</h4>
+ <ul className="file-list">
+ {results.changes.permission_changed.map((file, i) => (
+ <li key={i}>{file.path} ({file.old_mode} → {file.new_mode})</li>
+ ))}
+ </ul>
+ </div>
+ )}
+ </div>
+ </div>
+ )}
+ </div>
+ );
+};
+
+export default IntegrityTab;
diff --git a/frontend/src/components/security/OverviewTab.jsx b/frontend/src/components/security/OverviewTab.jsx
new file mode 100644
index 00000000..0f006086
--- /dev/null
+++ b/frontend/src/components/security/OverviewTab.jsx
@@ -0,0 +1,193 @@
+import React, { useState, useEffect } from 'react';
+import api from '../../services/api';
+
+const InstallClamAVButton = ({ onInstalled }) => {
+ const [installing, setInstalling] = useState(false);
+ const [error, setError] = useState(null);
+
+ async function handleInstall() {
+ setInstalling(true);
+ setError(null);
+ try {
+ await api.installClamAV();
+ onInstalled();
+ } catch (err) {
+ setError(err.message);
+ } finally {
+ setInstalling(false);
+ }
+ }
+
+ return (
+ <div>
+ <button className="btn btn-primary" onClick={handleInstall} disabled={installing}>
+ {installing ? 'Installing...' : 'Install ClamAV'}
+ </button>
+ {error && <p className="error-text" style={{ marginTop: '0.5rem' }}>{error}</p>}
+ </div>
+ );
+};
+
+const OverviewTab = ({ status, onRefresh }) => {
+ const [clamavStatus, setClamavStatus] = useState(null);
+ const [loading, setLoading] = useState(true);
+
+ useEffect(() => {
+ loadClamavStatus();
+ }, []);
+
+ async function loadClamavStatus() {
+ try {
+ const data = await api.getClamAVStatus();
+ setClamavStatus(data);
+ } catch (err) {
+ console.error('Failed to load ClamAV status:', err);
+ } finally {
+ setLoading(false);
+ }
+ }
+
+ const alerts = status?.recent_alerts || {};
+
+ return (
+ <div className="security-overview">
+ <div className="stats-grid">
+ <div className={`stat-card ${alerts.total > 0 ? 'warning' : 'success'}`}>
+ <div className="stat-icon">
+ <svg viewBox="0 0 24 24" width="24" height="24" stroke="currentColor" fill="none" strokeWidth="2">
+ <path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"/>
+ </svg>
+ </div>
+ <div className="stat-content">
+ <span className="stat-value">{alerts.total || 0}</span>
+ <span className="stat-label">Alerts (24h)</span>
+ </div>
+ </div>
+
+ <div className={`stat-card ${alerts.malware_detections > 0 ? 'danger' : 'success'}`}>
+ <div className="stat-icon">
+ <svg viewBox="0 0 24 24" width="24" height="24" stroke="currentColor" fill="none" strokeWidth="2">
+ <path d="M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"/>
+ </svg>
+ </div>
+ <div className="stat-content">
+ <span className="stat-value">{alerts.malware_detections || 0}</span>
+ <span className="stat-label">Malware Detected</span>
+ </div>
+ </div>
+
+ <div className={`stat-card ${clamavStatus?.installed ? 'success' : 'warning'}`}>
+ <div className="stat-icon">
+ <svg viewBox="0 0 24 24" width="24" height="24" stroke="currentColor" fill="none" strokeWidth="2">
+ <circle cx="12" cy="12" r="10"/>
+ {clamavStatus?.installed && <polyline points="9 12 12 15 16 10"/>}
+ {!clamavStatus?.installed && <line x1="15" y1="9" x2="9" y2="15"/>}
+ </svg>
+ </div>
+ <div className="stat-content">
+ <span className="stat-value">{clamavStatus?.installed ? 'Active' : 'Not Installed'}</span>
+ <span className="stat-label">ClamAV Status</span>
+ </div>
+ </div>
+
+ <div className={`stat-card ${status?.scan_status === 'running' ? 'info' : 'default'}`}>
+ <div className="stat-icon">
+ <svg viewBox="0 0 24 24" width="24" height="24" stroke="currentColor" fill="none" strokeWidth="2">
+ <circle cx="11" cy="11" r="8"/>
+ <line x1="21" y1="21" x2="16.65" y2="16.65"/>
+ </svg>
+ </div>
+ <div className="stat-content">
+ <span className="stat-value" style={{ textTransform: 'capitalize' }}>{status?.scan_status || 'Idle'}</span>
+ <span className="stat-label">Scan Status</span>
+ </div>
+ </div>
+ </div>
+
+ <div className="security-grid">
+ <div className="card">
+ <div className="card-header">
+ <h3>ClamAV Antivirus</h3>
+ <button className="btn btn-sm btn-secondary" onClick={loadClamavStatus}>Refresh</button>
+ </div>
+ <div className="card-body">
+ {loading ? (
+ <div className="loading-sm">Loading...</div>
+ ) : clamavStatus?.installed ? (
+ <div className="info-list">
+ <div className="info-item">
+ <span className="info-label">Version</span>
+ <span className="info-value">{clamavStatus.version || 'Unknown'}</span>
+ </div>
+ <div className="info-item">
+ <span className="info-label">Service</span>
+ <span className={`badge ${clamavStatus.service_running ? 'badge-success' : 'badge-warning'}`}>
+ {clamavStatus.service_running ? 'Running' : 'Stopped'}
+ </span>
+ </div>
+ <div className="info-item">
+ <span className="info-label">Last Definition Update</span>
+ <span className="info-value">
+ {clamavStatus.last_update ? new Date(clamavStatus.last_update).toLocaleString() : 'Unknown'}
+ </span>
+ </div>
+ </div>
+ ) : (
+ <div className="not-installed">
+ <p>ClamAV is not installed on this server.</p>
+ <InstallClamAVButton onInstalled={loadClamavStatus} />
+ </div>
+ )}
+ </div>
+ </div>
+
+ <div className="card">
+ <div className="card-header">
+ <h3>File Integrity Monitoring</h3>
+ </div>
+ <div className="card-body">
+ <div className="info-list">
+ <div className="info-item">
+ <span className="info-label">Status</span>
+ <span className={`badge ${status?.file_integrity?.enabled ? 'badge-success' : 'badge-secondary'}`}>
+ {status?.file_integrity?.enabled ? 'Enabled' : 'Disabled'}
+ </span>
+ </div>
+ <div className="info-item">
+ <span className="info-label">Database</span>
+ <span className={`badge ${status?.file_integrity?.database_exists ? 'badge-success' : 'badge-warning'}`}>
+ {status?.file_integrity?.database_exists ? 'Initialized' : 'Not Initialized'}
+ </span>
+ </div>
+ <div className="info-item">
+ <span className="info-label">Changes Detected (24h)</span>
+ <span className="info-value">{alerts.integrity_changes || 0}</span>
+ </div>
+ </div>
+ </div>
+ </div>
+
+ <div className="card">
+ <div className="card-header">
+ <h3>Notifications</h3>
+ </div>
+ <div className="card-body">
+ <div className="info-list">
+ <div className="info-item">
+ <span className="info-label">Security Alerts</span>
+ <span className={`badge ${status?.notifications_enabled ? 'badge-success' : 'badge-secondary'}`}>
+ {status?.notifications_enabled ? 'Enabled' : 'Disabled'}
+ </span>
+ </div>
+ </div>
+ <p className="help-text" style={{ marginTop: '1rem' }}>
+ Configure notification channels in Settings → Notifications to receive security alerts via Discord, Slack, or Telegram.
+ </p>
+ </div>
+ </div>
+ </div>
+ </div>
+ );
+};
+
+export default OverviewTab;
diff --git a/frontend/src/components/security/QuarantineTab.jsx b/frontend/src/components/security/QuarantineTab.jsx
new file mode 100644
index 00000000..30cc4207
--- /dev/null
+++ b/frontend/src/components/security/QuarantineTab.jsx
@@ -0,0 +1,104 @@
+import React, { useState, useEffect } from 'react';
+import api from '../../services/api';
+
+const QuarantineTab = () => {
+ const [files, setFiles] = useState([]);
+ const [loading, setLoading] = useState(true);
+ const [message, setMessage] = useState(null);
+
+ useEffect(() => {
+ loadFiles();
+ }, []);
+
+ async function loadFiles() {
+ try {
+ const data = await api.getQuarantinedFiles();
+ setFiles(data.files || []);
+ } catch (err) {
+ console.error('Failed to load quarantined files:', err);
+ } finally {
+ setLoading(false);
+ }
+ }
+
+ async function handleDelete(filename) {
+ if (!confirm(`Permanently delete ${filename}? This cannot be undone.`)) return;
+
+ try {
+ await api.deleteQuarantinedFile(filename);
+ setMessage({ type: 'success', text: 'File deleted' });
+ loadFiles();
+ } catch (err) {
+ setMessage({ type: 'error', text: err.message });
+ }
+ }
+
+ function formatBytes(bytes) {
+ if (!bytes) return '0 B';
+ const k = 1024;
+ const sizes = ['B', 'KB', 'MB', 'GB'];
+ const i = Math.floor(Math.log(bytes) / Math.log(k));
+ return parseFloat((bytes / Math.pow(k, i)).toFixed(1)) + ' ' + sizes[i];
+ }
+
+ return (
+ <div className="quarantine-tab">
+ {message && (
+ <div className={`alert alert-${message.type === 'success' ? 'success' : 'danger'}`}>
+ {message.text}
+ </div>
+ )}
+
+ <div className="card">
+ <div className="card-header">
+ <h3>Quarantined Files</h3>
+ <button className="btn btn-sm btn-secondary" onClick={loadFiles}>Refresh</button>
+ </div>
+ <div className="card-body">
+ {loading ? (
+ <div className="loading-sm">Loading...</div>
+ ) : files.length === 0 ? (
+ <div className="empty-state">
+ <svg viewBox="0 0 24 24" width="48" height="48" stroke="currentColor" fill="none" strokeWidth="1">
+ <path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"/>
+ <polyline points="9 12 12 15 16 10"/>
+ </svg>
+ <p>No files in quarantine</p>
+ <span className="text-muted">Infected files will appear here when detected</span>
+ </div>
+ ) : (
+ <table className="table">
+ <thead>
+ <tr>
+ <th>Filename</th>
+ <th>Size</th>
+ <th>Quarantined</th>
+ <th>Actions</th>
+ </tr>
+ </thead>
+ <tbody>
+ {files.map((file, index) => (
+ <tr key={index}>
+ <td className="path-cell">{file.name}</td>
+ <td>{formatBytes(file.size)}</td>
+ <td>{new Date(file.quarantined_at).toLocaleString()}</td>
+ <td>
+ <button
+ className="btn btn-sm btn-danger"
+ onClick={() => handleDelete(file.name)}
+ >
+ Delete
+ </button>
+ </td>
+ </tr>
+ ))}
+ </tbody>
+ </table>
+ )}
+ </div>
+ </div>
+ </div>
+ );
+};
+
+export default QuarantineTab;
diff --git a/frontend/src/components/security/SSHKeysTab.jsx b/frontend/src/components/security/SSHKeysTab.jsx
new file mode 100644
index 00000000..09d95f40
--- /dev/null
+++ b/frontend/src/components/security/SSHKeysTab.jsx
@@ -0,0 +1,163 @@
+import React, { useState, useEffect } from 'react';
+import api from '../../services/api';
+import ConfirmDialog from '../ConfirmDialog';
+import { useToast } from '../../contexts/ToastContext';
+
+const SSHKeysTab = () => {
+ const [keys, setKeys] = useState([]);
+ const [loading, setLoading] = useState(true);
+ const [showAddModal, setShowAddModal] = useState(false);
+ const [newKey, setNewKey] = useState('');
+ const [actionLoading, setActionLoading] = useState(false);
+ const [confirmDialog, setConfirmDialog] = useState(null);
+ const toast = useToast();
+
+ useEffect(() => {
+ loadKeys();
+ }, []);
+
+ const loadKeys = async () => {
+ setLoading(true);
+ try {
+ const data = await api.getSSHKeys();
+ setKeys(data.keys || []);
+ } catch (error) {
+ console.error('Failed to load SSH keys:', error);
+ } finally {
+ setLoading(false);
+ }
+ };
+
+ const handleAddKey = async () => {
+ if (!newKey.trim()) return;
+ setActionLoading(true);
+ try {
+ await api.addSSHKey(newKey);
+ toast.success('SSH key added successfully');
+ setShowAddModal(false);
+ setNewKey('');
+ await loadKeys();
+ } catch (error) {
+ toast.error(`Failed to add key: ${error.message}`);
+ } finally {
+ setActionLoading(false);
+ }
+ };
+
+ const handleRemoveKey = async (keyId, comment) => {
+ setConfirmDialog({
+ title: 'Remove SSH Key',
+ message: `Are you sure you want to remove the SSH key${comment ? ` "${comment}"` : ''}? This may lock you out if it's your only key.`,
+ confirmText: 'Remove',
+ variant: 'danger',
+ onConfirm: async () => {
+ try {
+ await api.removeSSHKey(keyId);
+ toast.success('SSH key removed');
+ await loadKeys();
+ } catch (error) {
+ toast.error(`Failed to remove key: ${error.message}`);
+ }
+ setConfirmDialog(null);
+ },
+ onCancel: () => setConfirmDialog(null)
+ });
+ };
+
+ return (
+ <div className="ssh-keys-tab">
+ <div className="card">
+ <div className="card-header">
+ <h3>SSH Authorized Keys</h3>
+ <div className="card-actions">
+ <button className="btn btn-sm btn-primary" onClick={() => setShowAddModal(true)}>
+ Add Key
+ </button>
+ <button className="btn btn-sm btn-secondary" onClick={loadKeys}>
+ Refresh
+ </button>
+ </div>
+ </div>
+ <div className="card-body">
+ {loading ? (
+ <div className="loading-sm">Loading...</div>
+ ) : keys.length === 0 ? (
+ <div className="empty-state-sm">
+ <p>No SSH keys configured for root user.</p>
+ <button className="btn btn-primary" onClick={() => setShowAddModal(true)}>
+ Add SSH Key
+ </button>
+ </div>
+ ) : (
+ <table className="table">
+ <thead>
+ <tr>
+ <th>Type</th>
+ <th>Fingerprint</th>
+ <th>Comment</th>
+ <th>Actions</th>
+ </tr>
+ </thead>
+ <tbody>
+ {keys.map((key) => (
+ <tr key={key.id}>
+ <td><code>{key.type}</code></td>
+ <td><code className="fingerprint">{key.fingerprint}</code></td>
+ <td>{key.comment || '-'}</td>
+ <td>
+ <button className="btn btn-sm btn-danger" onClick={() => handleRemoveKey(key.id, key.comment)}>
+ Remove
+ </button>
+ </td>
+ </tr>
+ ))}
+ </tbody>
+ </table>
+ )}
+ </div>
+ </div>
+
+ {showAddModal && (
+ <div className="modal-overlay" onClick={() => setShowAddModal(false)}>
+ <div className="modal modal-lg" onClick={(e) => e.stopPropagation()}>
+ <div className="modal-header">
+ <h2>Add SSH Public Key</h2>
+ <button className="btn btn-icon" onClick={() => setShowAddModal(false)}>×</button>
+ </div>
+ <div className="modal-body">
+ <div className="form-group">
+ <label>Public Key</label>
+ <textarea
+ value={newKey}
+ onChange={(e) => setNewKey(e.target.value)}
+ placeholder="ssh-rsa AAAA... user@host or ssh-ed25519 AAAA... user@host"
+ rows={4}
+ />
+ <p className="help-text">Paste your SSH public key (typically from ~/.ssh/id_rsa.pub or ~/.ssh/id_ed25519.pub)</p>
+ </div>
+ </div>
+ <div className="modal-footer">
+ <button className="btn btn-secondary" onClick={() => setShowAddModal(false)}>Cancel</button>
+ <button className="btn btn-primary" onClick={handleAddKey} disabled={actionLoading || !newKey.trim()}>
+ {actionLoading ? 'Adding...' : 'Add Key'}
+ </button>
+ </div>
+ </div>
+ </div>
+ )}
+
+ {confirmDialog && (
+ <ConfirmDialog
+ title={confirmDialog.title}
+ message={confirmDialog.message}
+ confirmText={confirmDialog.confirmText}
+ variant={confirmDialog.variant}
+ onConfirm={confirmDialog.onConfirm}
+ onCancel={confirmDialog.onCancel}
+ />
+ )}
+ </div>
+ );
+};
+
+export default SSHKeysTab;
diff --git a/frontend/src/components/security/ScannerTab.jsx b/frontend/src/components/security/ScannerTab.jsx
new file mode 100644
index 00000000..2b5481dc
--- /dev/null
+++ b/frontend/src/components/security/ScannerTab.jsx
@@ -0,0 +1,241 @@
+import React, { useState, useEffect } from 'react';
+import api from '../../services/api';
+
+const ScannerTab = () => {
+ const [scanStatus, setScanStatus] = useState({ status: 'idle' });
+ const [scanPath, setScanPath] = useState('/var/www');
+ const [scanning, setScanning] = useState(false);
+ const [updating, setUpdating] = useState(false);
+ const [history, setHistory] = useState([]);
+ const [message, setMessage] = useState(null);
+
+ useEffect(() => {
+ loadScanStatus();
+ loadHistory();
+ const interval = setInterval(loadScanStatus, 5000);
+ return () => clearInterval(interval);
+ }, []);
+
+ async function loadScanStatus() {
+ try {
+ const data = await api.getScanStatus();
+ setScanStatus(data);
+ } catch (err) {
+ console.error('Failed to load scan status:', err);
+ }
+ }
+
+ async function loadHistory() {
+ try {
+ const data = await api.getScanHistory(20);
+ setHistory(data.scans || []);
+ } catch (err) {
+ console.error('Failed to load scan history:', err);
+ }
+ }
+
+ async function handleStartScan(type) {
+ setScanning(true);
+ setMessage(null);
+ try {
+ let result;
+ if (type === 'quick') {
+ result = await api.runQuickScan();
+ } else if (type === 'full') {
+ result = await api.runFullScan();
+ } else {
+ result = await api.scanDirectory(scanPath);
+ }
+ setMessage({ type: 'success', text: result.message });
+ loadScanStatus();
+ } catch (err) {
+ setMessage({ type: 'error', text: err.message });
+ } finally {
+ setScanning(false);
+ }
+ }
+
+ async function handleUpdateDefinitions() {
+ setUpdating(true);
+ setMessage(null);
+ try {
+ const result = await api.updateVirusDefinitions();
+ setMessage({ type: result.success ? 'success' : 'error', text: result.message || result.error });
+ } catch (err) {
+ setMessage({ type: 'error', text: err.message });
+ } finally {
+ setUpdating(false);
+ }
+ }
+
+ async function handleCancelScan() {
+ try {
+ await api.cancelScan();
+ loadScanStatus();
+ } catch (err) {
+ setMessage({ type: 'error', text: err.message });
+ }
+ }
+
+ const isScanning = scanStatus.status === 'running';
+
+ return (
+ <div className="scanner-tab">
+ {message && (
+ <div className={`alert alert-${message.type === 'success' ? 'success' : 'danger'}`}>
+ {message.text}
+ </div>
+ )}
+
+ <div className="scan-options">
+ <div className="scan-card" onClick={() => !isScanning && !scanning && handleStartScan('quick')}>
+ <div className="scan-card-icon">
+ <svg viewBox="0 0 24 24" width="24" height="24" stroke="currentColor" fill="none" strokeWidth="2">
+ <polygon points="5 3 19 12 5 21 5 3"/>
+ </svg>
+ </div>
+ <h4>Quick Scan</h4>
+ <span className="scan-desc">Scan common web directories</span>
+ <button
+ className="btn btn-primary btn-sm"
+ onClick={(e) => { e.stopPropagation(); handleStartScan('quick'); }}
+ disabled={isScanning || scanning}
+ >
+ Start Scan
+ </button>
+ </div>
+
+ <div className="scan-card" onClick={() => !isScanning && !scanning && handleStartScan('full')}>
+ <div className="scan-card-icon">
+ <svg viewBox="0 0 24 24" width="24" height="24" stroke="currentColor" fill="none" strokeWidth="2">
+ <circle cx="12" cy="12" r="10"/>
+ <circle cx="12" cy="12" r="6"/>
+ <circle cx="12" cy="12" r="2"/>
+ </svg>
+ </div>
+ <h4>Full Scan</h4>
+ <span className="scan-desc">Scan entire system (slow)</span>
+ <button
+ className="btn btn-primary btn-sm"
+ onClick={(e) => { e.stopPropagation(); handleStartScan('full'); }}
+ disabled={isScanning || scanning}
+ >
+ Start Scan
+ </button>
+ </div>
+
+ <div className="scan-card scan-card--custom">
+ <div className="scan-card-icon">
+ <svg viewBox="0 0 24 24" width="24" height="24" stroke="currentColor" fill="none" strokeWidth="2">
+ <path d="M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"/>
+ </svg>
+ </div>
+ <h4>Custom Path</h4>
+ <span className="scan-desc">Scan a specific directory</span>
+ <div className="scan-custom-input">
+ <input
+ type="text"
+ value={scanPath}
+ onChange={(e) => setScanPath(e.target.value)}
+ placeholder="/path/to/scan"
+ disabled={isScanning}
+ onClick={(e) => e.stopPropagation()}
+ />
+ <button
+ className="btn btn-primary btn-sm"
+ onClick={() => handleStartScan('custom')}
+ disabled={isScanning || scanning || !scanPath}
+ >
+ Scan
+ </button>
+ </div>
+ </div>
+ </div>
+
+ <div className="scan-toolbar">
+ <button className="btn btn-sm btn-secondary" onClick={handleUpdateDefinitions} disabled={updating}>
+ <svg viewBox="0 0 24 24" width="14" height="14" stroke="currentColor" fill="none" strokeWidth="2">
+ <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/>
+ <polyline points="7 10 12 15 17 10"/>
+ <line x1="12" y1="15" x2="12" y2="3"/>
+ </svg>
+ {updating ? 'Updating...' : 'Update Definitions'}
+ </button>
+ </div>
+
+ {isScanning && (
+ <div className="card scan-progress">
+ <div className="card-header">
+ <h3>Scan in Progress</h3>
+ <button className="btn btn-sm btn-danger" onClick={handleCancelScan}>
+ Cancel
+ </button>
+ </div>
+ <div className="card-body">
+ <div className="progress-info">
+ <div className="spinner"></div>
+ <div>
+ <p><strong>Scanning:</strong> {scanStatus.directory}</p>
+ <p><strong>Started:</strong> {new Date(scanStatus.started_at).toLocaleString()}</p>
+ {scanStatus.files_scanned > 0 && (
+ <p><strong>Files scanned:</strong> {scanStatus.files_scanned}</p>
+ )}
+ </div>
+ </div>
+ </div>
+ </div>
+ )}
+
+ <div className="card">
+ <div className="card-header">
+ <h3>Scan History</h3>
+ <button className="btn btn-sm btn-secondary" onClick={loadHistory}>Refresh</button>
+ </div>
+ <div className="card-body">
+ {history.length === 0 ? (
+ <div className="empty-state-sm">
+ <svg viewBox="0 0 24 24" width="40" height="40" stroke="currentColor" fill="none" strokeWidth="1.5">
+ <circle cx="11" cy="11" r="8"/>
+ <line x1="21" y1="21" x2="16.65" y2="16.65"/>
+ </svg>
+ <p>No scans have been run yet. Start a scan above to check for threats.</p>
+ </div>
+ ) : (
+ <table className="table">
+ <thead>
+ <tr>
+ <th>Date</th>
+ <th>Directory</th>
+ <th>Status</th>
+ <th>Threats</th>
+ </tr>
+ </thead>
+ <tbody>
+ {history.map((scan, index) => (
+ <tr key={index}>
+ <td>{new Date(scan.started_at).toLocaleString()}</td>
+ <td className="path-cell">{scan.directory}</td>
+ <td>
+ <span className={`badge badge-${scan.status === 'completed' ? 'success' : scan.status === 'error' ? 'danger' : 'warning'}`}>
+ {scan.status}
+ </span>
+ </td>
+ <td>
+ {scan.infected_files?.length > 0 ? (
+ <span className="badge badge-danger">{scan.infected_files.length} found</span>
+ ) : (
+ <span className="badge badge-success">Clean</span>
+ )}
+ </td>
+ </tr>
+ ))}
+ </tbody>
+ </table>
+ )}
+ </div>
+ </div>
+ </div>
+ );
+};
+
+export default ScannerTab;
diff --git a/frontend/src/components/security/SecurityConfigTab.jsx b/frontend/src/components/security/SecurityConfigTab.jsx
new file mode 100644
index 00000000..0976e98f
--- /dev/null
+++ b/frontend/src/components/security/SecurityConfigTab.jsx
@@ -0,0 +1,197 @@
+import React, { useState, useEffect } from 'react';
+import api from '../../services/api';
+
+const SecurityConfigTab = () => {
+ const [config, setConfig] = useState(null);
+ const [loading, setLoading] = useState(true);
+ const [saving, setSaving] = useState(false);
+ const [message, setMessage] = useState(null);
+
+ useEffect(() => {
+ loadConfig();
+ }, []);
+
+ async function loadConfig() {
+ try {
+ const data = await api.getSecurityConfig();
+ setConfig(data);
+ } catch (err) {
+ console.error('Failed to load security config:', err);
+ } finally {
+ setLoading(false);
+ }
+ }
+
+ async function handleSave() {
+ setSaving(true);
+ setMessage(null);
+ try {
+ await api.updateSecurityConfig(config);
+ setMessage({ type: 'success', text: 'Settings saved' });
+ } catch (err) {
+ setMessage({ type: 'error', text: err.message });
+ } finally {
+ setSaving(false);
+ }
+ }
+
+ function updateConfig(section, key, value) {
+ setConfig(prev => ({
+ ...prev,
+ [section]: {
+ ...prev[section],
+ [key]: value
+ }
+ }));
+ }
+
+ if (loading) {
+ return <div className="loading-sm">Loading settings...</div>;
+ }
+
+ return (
+ <div className="settings-tab">
+ {message && (
+ <div className={`alert alert-${message.type === 'success' ? 'success' : 'danger'}`}>
+ {message.text}
+ </div>
+ )}
+
+ <div className="card">
+ <div className="card-header">
+ <h3>ClamAV Settings</h3>
+ </div>
+ <div className="card-body">
+ <div className="form-group">
+ <label className="toggle-switch-label">
+ <span>Enable ClamAV scanning</span>
+ <label className="toggle-switch">
+ <input
+ type="checkbox"
+ checked={config?.clamav?.enabled || false}
+ onChange={(e) => updateConfig('clamav', 'enabled', e.target.checked)}
+ />
+ <span className="toggle-slider"></span>
+ </label>
+ </label>
+ </div>
+
+ <div className="form-group">
+ <label className="toggle-switch-label">
+ <span>Scan files on upload</span>
+ <label className="toggle-switch">
+ <input
+ type="checkbox"
+ checked={config?.clamav?.scan_on_upload || false}
+ onChange={(e) => updateConfig('clamav', 'scan_on_upload', e.target.checked)}
+ />
+ <span className="toggle-slider"></span>
+ </label>
+ </label>
+ </div>
+
+ <div className="form-group">
+ <label>Quarantine Path</label>
+ <input
+ type="text"
+ value={config?.clamav?.quarantine_path || '/var/quarantine'}
+ onChange={(e) => updateConfig('clamav', 'quarantine_path', e.target.value)}
+ />
+ </div>
+ </div>
+ </div>
+
+ <div className="card">
+ <div className="card-header">
+ <h3>File Integrity Settings</h3>
+ </div>
+ <div className="card-body">
+ <div className="form-group">
+ <label className="toggle-switch-label">
+ <span>Enable file integrity monitoring</span>
+ <label className="toggle-switch">
+ <input
+ type="checkbox"
+ checked={config?.file_integrity?.enabled || false}
+ onChange={(e) => updateConfig('file_integrity', 'enabled', e.target.checked)}
+ />
+ <span className="toggle-slider"></span>
+ </label>
+ </label>
+ </div>
+
+ <div className="form-group">
+ <label className="toggle-switch-label">
+ <span>Alert on file changes</span>
+ <label className="toggle-switch">
+ <input
+ type="checkbox"
+ checked={config?.file_integrity?.alert_on_change || false}
+ onChange={(e) => updateConfig('file_integrity', 'alert_on_change', e.target.checked)}
+ />
+ <span className="toggle-slider"></span>
+ </label>
+ </label>
+ </div>
+ </div>
+ </div>
+
+ <div className="card">
+ <div className="card-header">
+ <h3>Notification Settings</h3>
+ </div>
+ <div className="card-body">
+ <div className="form-group">
+ <label className="toggle-switch-label">
+ <span>Notify on malware detection</span>
+ <label className="toggle-switch">
+ <input
+ type="checkbox"
+ checked={config?.notifications?.on_malware_found || false}
+ onChange={(e) => updateConfig('notifications', 'on_malware_found', e.target.checked)}
+ />
+ <span className="toggle-slider"></span>
+ </label>
+ </label>
+ </div>
+
+ <div className="form-group">
+ <label className="toggle-switch-label">
+ <span>Notify on integrity changes</span>
+ <label className="toggle-switch">
+ <input
+ type="checkbox"
+ checked={config?.notifications?.on_integrity_change || false}
+ onChange={(e) => updateConfig('notifications', 'on_integrity_change', e.target.checked)}
+ />
+ <span className="toggle-slider"></span>
+ </label>
+ </label>
+ </div>
+
+ <div className="form-group">
+ <label className="toggle-switch-label">
+ <span>Notify on suspicious activity</span>
+ <label className="toggle-switch">
+ <input
+ type="checkbox"
+ checked={config?.notifications?.on_suspicious_activity || false}
+ onChange={(e) => updateConfig('notifications', 'on_suspicious_activity', e.target.checked)}
+ />
+ <span className="toggle-slider"></span>
+ </label>
+ </label>
+ </div>
+ </div>
+ </div>
+
+ <div className="form-actions">
+ <button className="btn btn-primary" onClick={handleSave} disabled={saving}>
+ {saving ? 'Saving...' : 'Save Settings'}
+ </button>
+ </div>
+ </div>
+ );
+};
+
+export default SecurityConfigTab;
diff --git a/frontend/src/components/security/VulnerabilityTab.jsx b/frontend/src/components/security/VulnerabilityTab.jsx
new file mode 100644
index 00000000..e9c7a37c
--- /dev/null
+++ b/frontend/src/components/security/VulnerabilityTab.jsx
@@ -0,0 +1,185 @@
+import React, { useState, useEffect } from 'react';
+import api from '../../services/api';
+import { useToast } from '../../contexts/ToastContext';
+
+const VulnerabilityTab = () => {
+ const [lynisStatus, setLynisStatus] = useState(null);
+ const [scanStatus, setScanStatus] = useState(null);
+ const [loading, setLoading] = useState(true);
+ const [actionLoading, setActionLoading] = useState(false);
+ const toast = useToast();
+
+ useEffect(() => {
+ loadStatus();
+ }, []);
+
+ useEffect(() => {
+ let interval;
+ if (scanStatus?.status === 'running') {
+ interval = setInterval(loadScanStatus, 5000);
+ }
+ return () => clearInterval(interval);
+ }, [scanStatus?.status]);
+
+ const loadStatus = async () => {
+ setLoading(true);
+ try {
+ const [lynis, scan] = await Promise.all([
+ api.getLynisStatus(),
+ api.getLynisScanStatus()
+ ]);
+ setLynisStatus(lynis);
+ setScanStatus(scan);
+ } catch (error) {
+ console.error('Failed to load Lynis status:', error);
+ } finally {
+ setLoading(false);
+ }
+ };
+
+ const loadScanStatus = async () => {
+ try {
+ const scan = await api.getLynisScanStatus();
+ setScanStatus(scan);
+ } catch (error) {
+ console.error('Failed to load scan status:', error);
+ }
+ };
+
+ const handleInstall = async () => {
+ setActionLoading(true);
+ try {
+ await api.installLynis();
+ toast.success('Lynis installed successfully');
+ await loadStatus();
+ } catch (error) {
+ toast.error(`Failed to install: ${error.message}`);
+ } finally {
+ setActionLoading(false);
+ }
+ };
+
+ const handleStartScan = async () => {
+ setActionLoading(true);
+ try {
+ await api.runLynisScan();
+ toast.success('Vulnerability scan started');
+ await loadScanStatus();
+ } catch (error) {
+ toast.error(`Failed to start scan: ${error.message}`);
+ } finally {
+ setActionLoading(false);
+ }
+ };
+
+ if (loading) {
+ return <div className="loading-sm">Loading vulnerability scanner status...</div>;
+ }
+
+ return (
+ <div className="vulnerability-tab">
+ {!lynisStatus?.installed ? (
+ <div className="empty-state">
+ <svg viewBox="0 0 24 24" width="48" height="48" stroke="currentColor" fill="none" strokeWidth="1">
+ <circle cx="12" cy="12" r="10"/>
+ <circle cx="12" cy="12" r="6"/>
+ <circle cx="12" cy="12" r="2"/>
+ </svg>
+ <h3>Lynis Not Installed</h3>
+ <p>Install Lynis to perform security audits and vulnerability scanning.</p>
+ <button className="btn btn-primary" onClick={handleInstall} disabled={actionLoading}>
+ {actionLoading ? 'Installing...' : 'Install Lynis'}
+ </button>
+ </div>
+ ) : (
+ <>
+ <div className="card">
+ <div className="card-header">
+ <h3>Lynis Vulnerability Scanner</h3>
+ <button
+ className="btn btn-primary"
+ onClick={handleStartScan}
+ disabled={actionLoading || scanStatus?.status === 'running'}
+ >
+ {scanStatus?.status === 'running' ? 'Scanning...' : 'Start Scan'}
+ </button>
+ </div>
+ <div className="card-body">
+ <div className="info-list">
+ <div className="info-item">
+ <span className="info-label">Version</span>
+ <span className="info-value">{lynisStatus.version || 'Unknown'}</span>
+ </div>
+ <div className="info-item">
+ <span className="info-label">Scan Status</span>
+ <span className={`badge badge-${scanStatus?.status === 'completed' ? 'success' : scanStatus?.status === 'running' ? 'info' : 'secondary'}`}>
+ {scanStatus?.status || 'Idle'}
+ </span>
+ </div>
+ </div>
+ </div>
+ </div>
+
+ {scanStatus?.status === 'running' && (
+ <div className="card scan-progress">
+ <div className="card-header">
+ <h3>Scan in Progress</h3>
+ </div>
+ <div className="card-body">
+ <div className="progress-info">
+ <div className="spinner"></div>
+ <p>Scanning system for vulnerabilities...</p>
+ <p className="text-muted">Started: {new Date(scanStatus.started_at).toLocaleString()}</p>
+ </div>
+ </div>
+ </div>
+ )}
+
+ {scanStatus?.status === 'completed' && (
+ <div className="card">
+ <div className="card-header">
+ <h3>Scan Results</h3>
+ {scanStatus.hardening_index && (
+ <span className={`badge badge-${scanStatus.hardening_index >= 70 ? 'success' : scanStatus.hardening_index >= 50 ? 'warning' : 'danger'}`}>
+ Hardening Index: {scanStatus.hardening_index}
+ </span>
+ )}
+ </div>
+ <div className="card-body">
+ {scanStatus.warnings?.length > 0 && (
+ <div className="scan-section">
+ <h4>Warnings ({scanStatus.warnings.length})</h4>
+ <ul className="findings-list compact">
+ {scanStatus.warnings.slice(0, 20).map((warning, idx) => (
+ <li key={idx} className="warning">{warning}</li>
+ ))}
+ {scanStatus.warnings.length > 20 && (
+ <li className="text-muted">...and {scanStatus.warnings.length - 20} more</li>
+ )}
+ </ul>
+ </div>
+ )}
+
+ {scanStatus.suggestions?.length > 0 && (
+ <div className="scan-section">
+ <h4>Suggestions ({scanStatus.suggestions.length})</h4>
+ <ul className="findings-list compact">
+ {scanStatus.suggestions.slice(0, 20).map((suggestion, idx) => (
+ <li key={idx} className="suggestion">{suggestion}</li>
+ ))}
+ {scanStatus.suggestions.length > 20 && (
+ <li className="text-muted">...and {scanStatus.suggestions.length - 20} more</li>
+ )}
+ </ul>
+ </div>
+ )}
+ </div>
+ </div>
+ )}
+ </>
+ )}
+ </div>
+ );
+};
+
+export default VulnerabilityTab;
diff --git a/frontend/src/components/security/index.js b/frontend/src/components/security/index.js
new file mode 100644
index 00000000..47ee9275
--- /dev/null
+++ b/frontend/src/components/security/index.js
@@ -0,0 +1,13 @@
+export { default as OverviewTab } from './OverviewTab';
+export { default as FirewallTab } from './FirewallTab';
+export { default as Fail2banTab } from './Fail2banTab';
+export { default as SSHKeysTab } from './SSHKeysTab';
+export { default as IPListsTab } from './IPListsTab';
+export { default as ScannerTab } from './ScannerTab';
+export { default as QuarantineTab } from './QuarantineTab';
+export { default as IntegrityTab } from './IntegrityTab';
+export { default as AuditTab } from './AuditTab';
+export { default as VulnerabilityTab } from './VulnerabilityTab';
+export { default as AutoUpdatesTab } from './AutoUpdatesTab';
+export { default as EventsTab } from './EventsTab';
+export { default as SecurityConfigTab } from './SecurityConfigTab';
diff --git a/frontend/src/components/settings/ProfileTab.jsx b/frontend/src/components/settings/ProfileTab.jsx
new file mode 100644
index 00000000..3b3c0ea3
--- /dev/null
+++ b/frontend/src/components/settings/ProfileTab.jsx
@@ -0,0 +1,207 @@
+import React, { useState, useEffect } from 'react';
+import { useAuth } from '../../contexts/AuthContext';
+import api from '../../services/api';
+import SSOProviderIcon from '../SSOProviderIcon';
+
+const LinkedAccounts = () => {
+ const { ssoProviders } = useAuth();
+ const [identities, setIdentities] = useState([]);
+ const [loading, setLoading] = useState(true);
+ const [unlinking, setUnlinking] = useState(null);
+ const [linkingProvider, setLinkingProvider] = useState(null);
+ const [error, setError] = useState('');
+
+ useEffect(() => {
+ loadIdentities();
+ }, []);
+
+ async function loadIdentities() {
+ try {
+ const data = await api.getSSOIdentities();
+ setIdentities(data.identities || []);
+ } catch (err) {
+ // SSO may not be configured; silently handle
+ } finally {
+ setLoading(false);
+ }
+ }
+
+ async function handleUnlink(provider) {
+ setUnlinking(provider);
+ setError('');
+ try {
+ await api.unlinkSSOProvider(provider);
+ await loadIdentities();
+ } catch (err) {
+ setError(err.message);
+ } finally {
+ setUnlinking(null);
+ }
+ }
+
+ async function handleLink(provider) {
+ setLinkingProvider(provider);
+ setError('');
+ try {
+ const redirectUri = `${window.location.origin}/login/callback/${provider}`;
+ const { auth_url } = await api.startSSOAuth(provider, redirectUri);
+ window.location.href = auth_url;
+ } catch (err) {
+ setError(err.message);
+ setLinkingProvider(null);
+ }
+ }
+
+ // Only show if SSO is configured
+ if (loading || (!ssoProviders?.length && !identities.length)) {
+ return null;
+ }
+
+ const linkedProviderIds = identities.map(i => i.provider);
+ const availableToLink = (ssoProviders || []).filter(p => !linkedProviderIds.includes(p.id));
+
+ return (
+ <div className="settings-card">
+ <h3>Linked Accounts</h3>
+ <p className="text-secondary">Connect external identity providers to your account</p>
+
+ {error && <div className="alert alert-danger">{error}</div>}
+
+ {identities.length > 0 && (
+ <div className="linked-accounts-list">
+ {identities.map(identity => (
+ <div key={identity.id} className="linked-account">
+ <div className="linked-account__info">
+ <SSOProviderIcon provider={identity.provider} />
+ <div>
+ <span className="linked-account__provider">{identity.provider}</span>
+ <span className="linked-account__email">{identity.provider_email}</span>
+ </div>
+ </div>
+ <button
+ className="btn btn-sm btn-danger"
+ onClick={() => handleUnlink(identity.provider)}
+ disabled={unlinking === identity.provider}
+ >
+ {unlinking === identity.provider ? 'Unlinking...' : 'Unlink'}
+ </button>
+ </div>
+ ))}
+ </div>
+ )}
+
+ {availableToLink.length > 0 && (
+ <div className="linked-accounts-available">
+ {availableToLink.map(p => (
+ <button
+ key={p.id}
+ className="btn btn-secondary btn-sm"
+ onClick={() => handleLink(p.id)}
+ disabled={linkingProvider === p.id}
+ >
+ <SSOProviderIcon provider={p.id} />
+ {linkingProvider === p.id ? 'Redirecting...' : `Link ${p.name}`}
+ </button>
+ ))}
+ </div>
+ )}
+ </div>
+ );
+};
+
+const ProfileTab = () => {
+ const { user, updateUser } = useAuth();
+ const [formData, setFormData] = useState({
+ username: '',
+ email: ''
+ });
+ const [loading, setLoading] = useState(false);
+ const [message, setMessage] = useState(null);
+
+ useEffect(() => {
+ if (user) {
+ setFormData({
+ username: user.username || '',
+ email: user.email || ''
+ });
+ }
+ }, [user]);
+
+ async function handleSubmit(e) {
+ e.preventDefault();
+ setLoading(true);
+ setMessage(null);
+
+ try {
+ await updateUser(formData);
+ setMessage({ type: 'success', text: 'Profile updated successfully' });
+ } catch (err) {
+ setMessage({ type: 'error', text: err.message });
+ } finally {
+ setLoading(false);
+ }
+ }
+
+ return (
+ <div className="settings-section">
+ <div className="section-header">
+ <h2>Profile Settings</h2>
+ <p>Update your personal information</p>
+ </div>
+
+ {message && (
+ <div className={`alert alert-${message.type === 'success' ? 'success' : 'danger'}`}>
+ {message.text}
+ </div>
+ )}
+
+ <form onSubmit={handleSubmit} className="settings-form">
+ <div className="form-group">
+ <label>Username</label>
+ <input
+ type="text"
+ value={formData.username}
+ onChange={(e) => setFormData({ ...formData, username: e.target.value })}
+ required
+ />
+ </div>
+
+ <div className="form-group">
+ <label>Email Address</label>
+ <input
+ type="email"
+ value={formData.email}
+ onChange={(e) => setFormData({ ...formData, email: e.target.value })}
+ required
+ />
+ </div>
+
+ <div className="form-group">
+ <label>Role</label>
+ <input type="text" value={user?.role || 'user'} disabled className="input-disabled" />
+ <span className="form-help">Contact an administrator to change your role</span>
+ </div>
+
+ <div className="form-group">
+ <label>Member Since</label>
+ <input
+ type="text"
+ value={user?.created_at ? new Date(user.created_at).toLocaleDateString() : '-'}
+ disabled
+ className="input-disabled"
+ />
+ </div>
+
+ <div className="form-actions">
+ <button type="submit" className="btn btn-primary" disabled={loading}>
+ {loading ? 'Saving...' : 'Save Changes'}
+ </button>
+ </div>
+ </form>
+
+ <LinkedAccounts />
+ </div>
+ );
+};
+
+export default ProfileTab;
diff --git a/frontend/src/main.jsx b/frontend/src/main.jsx
index 53c9c6da..96a58803 100644
--- a/frontend/src/main.jsx
+++ b/frontend/src/main.jsx
@@ -1,7 +1,7 @@
import React from 'react'
import ReactDOM from 'react-dom/client'
import App from './App.jsx'
-import './styles/main.less'
+import './styles/main.scss'
ReactDOM.createRoot(document.getElementById('root')).render(
<React.StrictMode>
diff --git a/frontend/src/pages/Security.jsx b/frontend/src/pages/Security.jsx
index 2ced3380..ee7c586c 100644
--- a/frontend/src/pages/Security.jsx
+++ b/frontend/src/pages/Security.jsx
@@ -1,9 +1,22 @@
-import React, { useState, useEffect, useCallback } from 'react';
+import React, { useState, useEffect } from 'react';
import { useAuth } from '../contexts/AuthContext';
import useTabParam from '../hooks/useTabParam';
import api from '../services/api';
-import ConfirmDialog from '../components/ConfirmDialog';
-import { useToast } from '../contexts/ToastContext';
+import {
+ OverviewTab,
+ FirewallTab,
+ Fail2banTab,
+ SSHKeysTab,
+ IPListsTab,
+ ScannerTab,
+ QuarantineTab,
+ IntegrityTab,
+ AuditTab,
+ VulnerabilityTab,
+ AutoUpdatesTab,
+ EventsTab,
+ SecurityConfigTab,
+} from '../components/security';
const VALID_TABS = ['overview', 'firewall', 'fail2ban', 'ssh-keys', 'ip-lists', 'scanner', 'quarantine', 'integrity', 'audit', 'vulnerability', 'updates', 'events', 'settings'];
@@ -96,2460 +109,7 @@ const Security = () => {
{activeTab === 'vulnerability' && <VulnerabilityTab />}
{activeTab === 'updates' && <AutoUpdatesTab />}
{activeTab === 'events' && <EventsTab />}
- {activeTab === 'settings' && <SettingsTab />}
- </div>
- </div>
- );
-};
-
-const OverviewTab = ({ status, onRefresh }) => {
- const [clamavStatus, setClamavStatus] = useState(null);
- const [loading, setLoading] = useState(true);
-
- useEffect(() => {
- loadClamavStatus();
- }, []);
-
- async function loadClamavStatus() {
- try {
- const data = await api.getClamAVStatus();
- setClamavStatus(data);
- } catch (err) {
- console.error('Failed to load ClamAV status:', err);
- } finally {
- setLoading(false);
- }
- }
-
- const alerts = status?.recent_alerts || {};
-
- return (
- <div className="security-overview">
- <div className="stats-grid">
- <div className={`stat-card ${alerts.total > 0 ? 'warning' : 'success'}`}>
- <div className="stat-icon">
- <svg viewBox="0 0 24 24" width="24" height="24" stroke="currentColor" fill="none" strokeWidth="2">
- <path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"/>
- </svg>
- </div>
- <div className="stat-content">
- <span className="stat-value">{alerts.total || 0}</span>
- <span className="stat-label">Alerts (24h)</span>
- </div>
- </div>
-
- <div className={`stat-card ${alerts.malware_detections > 0 ? 'danger' : 'success'}`}>
- <div className="stat-icon">
- <svg viewBox="0 0 24 24" width="24" height="24" stroke="currentColor" fill="none" strokeWidth="2">
- <path d="M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"/>
- </svg>
- </div>
- <div className="stat-content">
- <span className="stat-value">{alerts.malware_detections || 0}</span>
- <span className="stat-label">Malware Detected</span>
- </div>
- </div>
-
- <div className={`stat-card ${clamavStatus?.installed ? 'success' : 'warning'}`}>
- <div className="stat-icon">
- <svg viewBox="0 0 24 24" width="24" height="24" stroke="currentColor" fill="none" strokeWidth="2">
- <circle cx="12" cy="12" r="10"/>
- {clamavStatus?.installed && <polyline points="9 12 12 15 16 10"/>}
- {!clamavStatus?.installed && <line x1="15" y1="9" x2="9" y2="15"/>}
- </svg>
- </div>
- <div className="stat-content">
- <span className="stat-value">{clamavStatus?.installed ? 'Active' : 'Not Installed'}</span>
- <span className="stat-label">ClamAV Status</span>
- </div>
- </div>
-
- <div className={`stat-card ${status?.scan_status === 'running' ? 'info' : 'default'}`}>
- <div className="stat-icon">
- <svg viewBox="0 0 24 24" width="24" height="24" stroke="currentColor" fill="none" strokeWidth="2">
- <circle cx="11" cy="11" r="8"/>
- <line x1="21" y1="21" x2="16.65" y2="16.65"/>
- </svg>
- </div>
- <div className="stat-content">
- <span className="stat-value" style={{ textTransform: 'capitalize' }}>{status?.scan_status || 'Idle'}</span>
- <span className="stat-label">Scan Status</span>
- </div>
- </div>
- </div>
-
- <div className="security-grid">
- <div className="card">
- <div className="card-header">
- <h3>ClamAV Antivirus</h3>
- <button className="btn btn-sm btn-secondary" onClick={loadClamavStatus}>Refresh</button>
- </div>
- <div className="card-body">
- {loading ? (
- <div className="loading-sm">Loading...</div>
- ) : clamavStatus?.installed ? (
- <div className="info-list">
- <div className="info-item">
- <span className="info-label">Version</span>
- <span className="info-value">{clamavStatus.version || 'Unknown'}</span>
- </div>
- <div className="info-item">
- <span className="info-label">Service</span>
- <span className={`badge ${clamavStatus.service_running ? 'badge-success' : 'badge-warning'}`}>
- {clamavStatus.service_running ? 'Running' : 'Stopped'}
- </span>
- </div>
- <div className="info-item">
- <span className="info-label">Last Definition Update</span>
- <span className="info-value">
- {clamavStatus.last_update ? new Date(clamavStatus.last_update).toLocaleString() : 'Unknown'}
- </span>
- </div>
- </div>
- ) : (
- <div className="not-installed">
- <p>ClamAV is not installed on this server.</p>
- <InstallClamAVButton onInstalled={loadClamavStatus} />
- </div>
- )}
- </div>
- </div>
-
- <div className="card">
- <div className="card-header">
- <h3>File Integrity Monitoring</h3>
- </div>
- <div className="card-body">
- <div className="info-list">
- <div className="info-item">
- <span className="info-label">Status</span>
- <span className={`badge ${status?.file_integrity?.enabled ? 'badge-success' : 'badge-secondary'}`}>
- {status?.file_integrity?.enabled ? 'Enabled' : 'Disabled'}
- </span>
- </div>
- <div className="info-item">
- <span className="info-label">Database</span>
- <span className={`badge ${status?.file_integrity?.database_exists ? 'badge-success' : 'badge-warning'}`}>
- {status?.file_integrity?.database_exists ? 'Initialized' : 'Not Initialized'}
- </span>
- </div>
- <div className="info-item">
- <span className="info-label">Changes Detected (24h)</span>
- <span className="info-value">{alerts.integrity_changes || 0}</span>
- </div>
- </div>
- </div>
- </div>
-
- <div className="card">
- <div className="card-header">
- <h3>Notifications</h3>
- </div>
- <div className="card-body">
- <div className="info-list">
- <div className="info-item">
- <span className="info-label">Security Alerts</span>
- <span className={`badge ${status?.notifications_enabled ? 'badge-success' : 'badge-secondary'}`}>
- {status?.notifications_enabled ? 'Enabled' : 'Disabled'}
- </span>
- </div>
- </div>
- <p className="help-text" style={{ marginTop: '1rem' }}>
- Configure notification channels in Settings → Notifications to receive security alerts via Discord, Slack, or Telegram.
- </p>
- </div>
- </div>
- </div>
- </div>
- );
-};
-
-const InstallClamAVButton = ({ onInstalled }) => {
- const [installing, setInstalling] = useState(false);
- const [error, setError] = useState(null);
-
- async function handleInstall() {
- setInstalling(true);
- setError(null);
- try {
- await api.installClamAV();
- onInstalled();
- } catch (err) {
- setError(err.message);
- } finally {
- setInstalling(false);
- }
- }
-
- return (
- <div>
- <button className="btn btn-primary" onClick={handleInstall} disabled={installing}>
- {installing ? 'Installing...' : 'Install ClamAV'}
- </button>
- {error && <p className="error-text" style={{ marginTop: '0.5rem' }}>{error}</p>}
- </div>
- );
-};
-
-const FirewallTab = () => {
- const [status, setStatus] = useState(null);
- const [rules, setRules] = useState([]);
- const [blockedIPs, setBlockedIPs] = useState([]);
- const [loading, setLoading] = useState(true);
- const [activeSubTab, setActiveSubTab] = useState('status');
- const [showBlockIPModal, setShowBlockIPModal] = useState(false);
- const [showPortModal, setShowPortModal] = useState(false);
- const [showInstallModal, setShowInstallModal] = useState(false);
- const [blockIP, setBlockIP] = useState('');
- const [newPort, setNewPort] = useState({ port: '', protocol: 'tcp' });
- const [selectedFirewall, setSelectedFirewall] = useState('ufw');
- const [actionLoading, setActionLoading] = useState(false);
- const [confirmDialog, setConfirmDialog] = useState(null);
- const toast = useToast();
-
- const commonPorts = [
- { port: 22, name: 'SSH', protocol: 'tcp' },
- { port: 80, name: 'HTTP', protocol: 'tcp' },
- { port: 443, name: 'HTTPS', protocol: 'tcp' },
- { port: 21, name: 'FTP', protocol: 'tcp' },
- { port: 25, name: 'SMTP', protocol: 'tcp' },
- { port: 3306, name: 'MySQL', protocol: 'tcp' },
- { port: 5432, name: 'PostgreSQL', protocol: 'tcp' },
- { port: 6379, name: 'Redis', protocol: 'tcp' },
- { port: 27017, name: 'MongoDB', protocol: 'tcp' },
- ];
-
- useEffect(() => {
- loadData();
- }, []);
-
- const loadData = async () => {
- setLoading(true);
- try {
- await Promise.all([loadStatus(), loadRules(), loadBlockedIPs()]);
- } catch (error) {
- console.error('Failed to load firewall data:', error);
- } finally {
- setLoading(false);
- }
- };
-
- const loadStatus = async () => {
- try {
- const data = await api.getFirewallStatus();
- setStatus(data);
- } catch (error) {
- console.error('Failed to load status:', error);
- }
- };
-
- const loadRules = async () => {
- try {
- const data = await api.getFirewallRules();
- setRules(data.rules || []);
- } catch (error) {
- console.error('Failed to load rules:', error);
- }
- };
-
- const loadBlockedIPs = async () => {
- try {
- const data = await api.getBlockedIPs();
- setBlockedIPs(data.blocked_ips || []);
- } catch (error) {
- console.error('Failed to load blocked IPs:', error);
- }
- };
-
- const handleEnable = async () => {
- setActionLoading(true);
- try {
- await api.enableFirewall();
- toast.success('Firewall enabled');
- await loadStatus();
- } catch (error) {
- toast.error(`Failed to enable firewall: ${error.message}`);
- } finally {
- setActionLoading(false);
- }
- };
-
- const handleDisable = async () => {
- setConfirmDialog({
- title: 'Disable Firewall',
- message: 'Are you sure you want to disable the firewall? This will leave your server unprotected.',
- confirmText: 'Disable',
- variant: 'danger',
- onConfirm: async () => {
- setActionLoading(true);
- try {
- await api.disableFirewall();
- toast.success('Firewall disabled');
- await loadStatus();
- } catch (error) {
- toast.error(`Failed to disable firewall: ${error.message}`);
- } finally {
- setActionLoading(false);
- setConfirmDialog(null);
- }
- },
- onCancel: () => setConfirmDialog(null)
- });
- };
-
- const handleBlockIP = async () => {
- if (!blockIP.trim()) return;
- setActionLoading(true);
- try {
- await api.blockIP(blockIP);
- toast.success(`IP ${blockIP} blocked`);
- setShowBlockIPModal(false);
- setBlockIP('');
- await loadBlockedIPs();
- await loadRules();
- } catch (error) {
- toast.error(`Failed to block IP: ${error.message}`);
- } finally {
- setActionLoading(false);
- }
- };
-
- const handleUnblockIP = async (ip) => {
- setConfirmDialog({
- title: 'Unblock IP',
- message: `Are you sure you want to unblock ${ip}?`,
- confirmText: 'Unblock',
- variant: 'warning',
- onConfirm: async () => {
- try {
- await api.unblockIP(ip);
- toast.success(`IP ${ip} unblocked`);
- await loadBlockedIPs();
- await loadRules();
- } catch (error) {
- toast.error(`Failed to unblock IP: ${error.message}`);
- }
- setConfirmDialog(null);
- },
- onCancel: () => setConfirmDialog(null)
- });
- };
-
- const handleAllowPort = async () => {
- if (!newPort.port) return;
- setActionLoading(true);
- try {
- await api.allowPort(parseInt(newPort.port), newPort.protocol);
- toast.success(`Port ${newPort.port}/${newPort.protocol} allowed`);
- setShowPortModal(false);
- setNewPort({ port: '', protocol: 'tcp' });
- await loadRules();
- } catch (error) {
- toast.error(`Failed to allow port: ${error.message}`);
- } finally {
- setActionLoading(false);
- }
- };
-
- const handleQuickAllowPort = async (port, protocol) => {
- setActionLoading(true);
- try {
- await api.allowPort(port, protocol);
- toast.success(`Port ${port}/${protocol} allowed`);
- await loadRules();
- } catch (error) {
- toast.error(`Failed to allow port: ${error.message}`);
- } finally {
- setActionLoading(false);
- }
- };
-
- const handleRemovePort = async (port, protocol) => {
- setConfirmDialog({
- title: 'Remove Port Rule',
- message: `Are you sure you want to remove the rule for port ${port}/${protocol}?`,
- confirmText: 'Remove',
- variant: 'danger',
- onConfirm: async () => {
- try {
- await api.denyPort(parseInt(port), protocol);
- toast.success(`Port ${port}/${protocol} rule removed`);
- await loadRules();
- } catch (error) {
- toast.error(`Failed to remove port: ${error.message}`);
- }
- setConfirmDialog(null);
- },
- onCancel: () => setConfirmDialog(null)
- });
- };
-
- const handleInstall = async () => {
- setActionLoading(true);
- try {
- await api.installFirewall(selectedFirewall);
- toast.success(`${selectedFirewall.toUpperCase()} installed successfully`);
- setShowInstallModal(false);
- await loadData();
- } catch (error) {
- toast.error(`Failed to install firewall: ${error.message}`);
- } finally {
- setActionLoading(false);
- }
- };
-
- const isActive = status?.any_active;
- const activeFirewall = status?.active_firewall;
-
- if (loading) {
- return <div className="loading-sm">Loading firewall status...</div>;
- }
-
- return (
- <div className="firewall-tab">
- {!status?.any_installed ? (
- <div className="empty-state">
- <svg viewBox="0 0 24 24" width="48" height="48" stroke="currentColor" fill="none" strokeWidth="1">
- <path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"/>
- </svg>
- <h3>No Firewall Installed</h3>
- <p>Install a firewall to protect your server from unauthorized access.</p>
- <button className="btn btn-primary" onClick={() => setShowInstallModal(true)}>
- Install Firewall
- </button>
- </div>
- ) : (
- <>
- <div className="firewall-header">
- <div className="firewall-status-row">
- <div className={`status-indicator ${isActive ? 'active' : 'inactive'}`}>
- <svg viewBox="0 0 24 24" width="20" height="20" stroke="currentColor" fill="none" strokeWidth="2">
- <path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"/>
- </svg>
- <span>{isActive ? 'Firewall Active' : 'Firewall Inactive'}</span>
- <span className="firewall-type">({activeFirewall?.toUpperCase()})</span>
- </div>
- <div className="firewall-actions">
- <button className="btn btn-sm btn-secondary" onClick={() => setShowBlockIPModal(true)}>
- Block IP
- </button>
- <button className="btn btn-sm btn-secondary" onClick={() => setShowPortModal(true)}>
- Allow Port
- </button>
- {isActive ? (
- <button className="btn btn-sm btn-danger" onClick={handleDisable} disabled={actionLoading}>
- Disable
- </button>
- ) : (
- <button className="btn btn-sm btn-success" onClick={handleEnable} disabled={actionLoading}>
- Enable
- </button>
- )}
- </div>
- </div>
- </div>
-
- <div className="firewall-stats">
- <div className="stat-mini">
- <span className="stat-value">{rules.length}</span>
- <span className="stat-label">Rules</span>
- </div>
- <div className="stat-mini">
- <span className="stat-value">{blockedIPs.length}</span>
- <span className="stat-label">Blocked IPs</span>
- </div>
- <div className="stat-mini">
- <span className="stat-value">{rules.filter(r => r.type === 'port' || r.port).length}</span>
- <span className="stat-label">Ports Open</span>
- </div>
- </div>
-
- <div className="subtabs">
- <button className={`subtab ${activeSubTab === 'status' ? 'active' : ''}`} onClick={() => setActiveSubTab('status')}>
- Status
- </button>
- <button className={`subtab ${activeSubTab === 'rules' ? 'active' : ''}`} onClick={() => setActiveSubTab('rules')}>
- Rules
- </button>
- <button className={`subtab ${activeSubTab === 'blocked' ? 'active' : ''}`} onClick={() => setActiveSubTab('blocked')}>
- Blocked IPs
- </button>
- <button className={`subtab ${activeSubTab === 'quick' ? 'active' : ''}`} onClick={() => setActiveSubTab('quick')}>
- Quick Ports
- </button>
- </div>
-
- {activeSubTab === 'status' && (
- <div className="card">
- <div className="card-header">
- <h3>Firewall Information</h3>
- <button className="btn btn-sm btn-secondary" onClick={loadData}>Refresh</button>
- </div>
- <div className="card-body">
- <div className="info-list">
- <div className="info-item">
- <span className="info-label">Type</span>
- <span className="info-value">{activeFirewall?.toUpperCase()}</span>
- </div>
- <div className="info-item">
- <span className="info-label">Status</span>
- <span className={`badge ${isActive ? 'badge-success' : 'badge-danger'}`}>
- {isActive ? 'Active' : 'Inactive'}
- </span>
- </div>
- {activeFirewall === 'firewalld' && status?.firewalld?.default_zone && (
- <div className="info-item">
- <span className="info-label">Default Zone</span>
- <span className="info-value">{status.firewalld.default_zone}</span>
- </div>
- )}
- </div>
- </div>
- </div>
- )}
-
- {activeSubTab === 'rules' && (
- <div className="card">
- <div className="card-header">
- <h3>Firewall Rules</h3>
- <button className="btn btn-sm btn-primary" onClick={() => setShowPortModal(true)}>Add Rule</button>
- </div>
- <div className="card-body">
- {rules.length === 0 ? (
- <p className="text-muted">No rules configured</p>
- ) : (
- <table className="table">
- <thead>
- <tr>
- <th>Type</th>
- <th>Target</th>
- <th>Protocol</th>
- <th>Actions</th>
- </tr>
- </thead>
- <tbody>
- {rules.map((rule, index) => (
- <tr key={index}>
- <td><span className="badge badge-info">{rule.type}</span></td>
- <td>
- {rule.type === 'service' && rule.service}
- {rule.type === 'port' && rule.port}
- {rule.type === 'rich' && <code>{rule.rule}</code>}
- </td>
- <td>{rule.protocol || '-'}</td>
- <td>
- {rule.type === 'port' && (
- <button className="btn btn-sm btn-danger" onClick={() => handleRemovePort(rule.port, rule.protocol)}>
- Remove
- </button>
- )}
- </td>
- </tr>
- ))}
- </tbody>
- </table>
- )}
- </div>
- </div>
- )}
-
- {activeSubTab === 'blocked' && (
- <div className="card">
- <div className="card-header">
- <h3>Blocked IP Addresses</h3>
- <button className="btn btn-sm btn-primary" onClick={() => setShowBlockIPModal(true)}>Block IP</button>
- </div>
- <div className="card-body">
- {blockedIPs.length === 0 ? (
- <div className="empty-state-sm">
- <p>No blocked IPs</p>
- </div>
- ) : (
- <div className="blocked-list">
- {blockedIPs.map((item, index) => (
- <div key={index} className="blocked-item">
- <div className="blocked-info">
- <span className="blocked-ip">{item.ip}</span>
- </div>
- <button className="btn btn-sm btn-warning" onClick={() => handleUnblockIP(item.ip)}>
- Unblock
- </button>
- </div>
- ))}
- </div>
- )}
- </div>
- </div>
- )}
-
- {activeSubTab === 'quick' && (
- <div className="card">
- <div className="card-header">
- <h3>Quick Port Access</h3>
- </div>
- <div className="card-body">
- <p className="text-muted" style={{ marginBottom: '1rem' }}>One-click enable/disable common service ports</p>
- <div className="quick-ports-grid">
- {commonPorts.map(({ port, name, protocol }) => {
- const isAllowed = rules.some(r =>
- (r.port === String(port) || r.port === port) && r.protocol === protocol
- );
- return (
- <div key={port} className="quick-port-card">
- <div className="port-info">
- <span className="port-name">{name}</span>
- <span className="port-number">{port}/{protocol}</span>
- </div>
- {isAllowed ? (
- <button className="btn btn-sm btn-danger" onClick={() => handleRemovePort(port, protocol)} disabled={actionLoading}>
- Block
- </button>
- ) : (
- <button className="btn btn-sm btn-success" onClick={() => handleQuickAllowPort(port, protocol)} disabled={actionLoading}>
- Allow
- </button>
- )}
- </div>
- );
- })}
- </div>
- </div>
- </div>
- )}
- </>
- )}
-
- {/* Block IP Modal */}
- {showBlockIPModal && (
- <div className="modal-overlay" onClick={() => setShowBlockIPModal(false)}>
- <div className="modal" onClick={(e) => e.stopPropagation()}>
- <div className="modal-header">
- <h2>Block IP Address</h2>
- <button className="btn btn-icon" onClick={() => setShowBlockIPModal(false)}>×</button>
- </div>
- <div className="modal-body">
- <div className="form-group">
- <label>IP Address</label>
- <input
- type="text"
- value={blockIP}
- onChange={(e) => setBlockIP(e.target.value)}
- placeholder="192.168.1.100 or 10.0.0.0/24"
- />
- </div>
- <p className="text-muted">You can block a single IP or a range using CIDR notation.</p>
- </div>
- <div className="modal-footer">
- <button className="btn btn-secondary" onClick={() => setShowBlockIPModal(false)}>Cancel</button>
- <button className="btn btn-danger" onClick={handleBlockIP} disabled={actionLoading || !blockIP.trim()}>
- {actionLoading ? 'Blocking...' : 'Block IP'}
- </button>
- </div>
- </div>
- </div>
- )}
-
- {/* Allow Port Modal */}
- {showPortModal && (
- <div className="modal-overlay" onClick={() => setShowPortModal(false)}>
- <div className="modal" onClick={(e) => e.stopPropagation()}>
- <div className="modal-header">
- <h2>Allow Port</h2>
- <button className="btn btn-icon" onClick={() => setShowPortModal(false)}>×</button>
- </div>
- <div className="modal-body">
- <div className="form-row">
- <div className="form-group">
- <label>Port Number</label>
- <input
- type="number"
- value={newPort.port}
- onChange={(e) => setNewPort({ ...newPort, port: e.target.value })}
- placeholder="8080"
- min="1"
- max="65535"
- />
- </div>
- <div className="form-group">
- <label>Protocol</label>
- <select value={newPort.protocol} onChange={(e) => setNewPort({ ...newPort, protocol: e.target.value })}>
- <option value="tcp">TCP</option>
- <option value="udp">UDP</option>
- </select>
- </div>
- </div>
- </div>
- <div className="modal-footer">
- <button className="btn btn-secondary" onClick={() => setShowPortModal(false)}>Cancel</button>
- <button className="btn btn-primary" onClick={handleAllowPort} disabled={actionLoading || !newPort.port}>
- {actionLoading ? 'Adding...' : 'Allow Port'}
- </button>
- </div>
- </div>
- </div>
- )}
-
- {/* Install Firewall Modal */}
- {showInstallModal && (
- <div className="modal-overlay" onClick={() => setShowInstallModal(false)}>
- <div className="modal" onClick={(e) => e.stopPropagation()}>
- <div className="modal-header">
- <h2>Install Firewall</h2>
- <button className="btn btn-icon" onClick={() => setShowInstallModal(false)}>×</button>
- </div>
- <div className="modal-body">
- <div className="form-group">
- <label>Select Firewall</label>
- <select value={selectedFirewall} onChange={(e) => setSelectedFirewall(e.target.value)}>
- <option value="ufw">UFW (Recommended for Ubuntu)</option>
- <option value="firewalld">firewalld (CentOS/RHEL)</option>
- </select>
- </div>
- <div className="install-info">
- {selectedFirewall === 'ufw' ? (
- <p><strong>UFW (Uncomplicated Firewall)</strong> is simple and easy to use for Ubuntu/Debian systems.</p>
- ) : (
- <p><strong>firewalld</strong> is a dynamically managed firewall with zone-based configuration for CentOS/RHEL.</p>
- )}
- </div>
- </div>
- <div className="modal-footer">
- <button className="btn btn-secondary" onClick={() => setShowInstallModal(false)}>Cancel</button>
- <button className="btn btn-primary" onClick={handleInstall} disabled={actionLoading}>
- {actionLoading ? 'Installing...' : 'Install'}
- </button>
- </div>
- </div>
- </div>
- )}
-
- {confirmDialog && (
- <ConfirmDialog
- title={confirmDialog.title}
- message={confirmDialog.message}
- confirmText={confirmDialog.confirmText}
- variant={confirmDialog.variant}
- onConfirm={confirmDialog.onConfirm}
- onCancel={confirmDialog.onCancel}
- />
- )}
- </div>
- );
-};
-
-const ScannerTab = () => {
- const [scanStatus, setScanStatus] = useState({ status: 'idle' });
- const [scanPath, setScanPath] = useState('/var/www');
- const [scanning, setScanning] = useState(false);
- const [updating, setUpdating] = useState(false);
- const [history, setHistory] = useState([]);
- const [message, setMessage] = useState(null);
-
- useEffect(() => {
- loadScanStatus();
- loadHistory();
- const interval = setInterval(loadScanStatus, 5000);
- return () => clearInterval(interval);
- }, []);
-
- async function loadScanStatus() {
- try {
- const data = await api.getScanStatus();
- setScanStatus(data);
- } catch (err) {
- console.error('Failed to load scan status:', err);
- }
- }
-
- async function loadHistory() {
- try {
- const data = await api.getScanHistory(20);
- setHistory(data.scans || []);
- } catch (err) {
- console.error('Failed to load scan history:', err);
- }
- }
-
- async function handleStartScan(type) {
- setScanning(true);
- setMessage(null);
- try {
- let result;
- if (type === 'quick') {
- result = await api.runQuickScan();
- } else if (type === 'full') {
- result = await api.runFullScan();
- } else {
- result = await api.scanDirectory(scanPath);
- }
- setMessage({ type: 'success', text: result.message });
- loadScanStatus();
- } catch (err) {
- setMessage({ type: 'error', text: err.message });
- } finally {
- setScanning(false);
- }
- }
-
- async function handleUpdateDefinitions() {
- setUpdating(true);
- setMessage(null);
- try {
- const result = await api.updateVirusDefinitions();
- setMessage({ type: result.success ? 'success' : 'error', text: result.message || result.error });
- } catch (err) {
- setMessage({ type: 'error', text: err.message });
- } finally {
- setUpdating(false);
- }
- }
-
- async function handleCancelScan() {
- try {
- await api.cancelScan();
- loadScanStatus();
- } catch (err) {
- setMessage({ type: 'error', text: err.message });
- }
- }
-
- const isScanning = scanStatus.status === 'running';
-
- return (
- <div className="scanner-tab">
- {message && (
- <div className={`alert alert-${message.type === 'success' ? 'success' : 'danger'}`}>
- {message.text}
- </div>
- )}
-
- <div className="scan-options">
- <div className="scan-card" onClick={() => !isScanning && !scanning && handleStartScan('quick')}>
- <div className="scan-card-icon">
- <svg viewBox="0 0 24 24" width="24" height="24" stroke="currentColor" fill="none" strokeWidth="2">
- <polygon points="5 3 19 12 5 21 5 3"/>
- </svg>
- </div>
- <h4>Quick Scan</h4>
- <span className="scan-desc">Scan common web directories</span>
- <button
- className="btn btn-primary btn-sm"
- onClick={(e) => { e.stopPropagation(); handleStartScan('quick'); }}
- disabled={isScanning || scanning}
- >
- Start Scan
- </button>
- </div>
-
- <div className="scan-card" onClick={() => !isScanning && !scanning && handleStartScan('full')}>
- <div className="scan-card-icon">
- <svg viewBox="0 0 24 24" width="24" height="24" stroke="currentColor" fill="none" strokeWidth="2">
- <circle cx="12" cy="12" r="10"/>
- <circle cx="12" cy="12" r="6"/>
- <circle cx="12" cy="12" r="2"/>
- </svg>
- </div>
- <h4>Full Scan</h4>
- <span className="scan-desc">Scan entire system (slow)</span>
- <button
- className="btn btn-primary btn-sm"
- onClick={(e) => { e.stopPropagation(); handleStartScan('full'); }}
- disabled={isScanning || scanning}
- >
- Start Scan
- </button>
- </div>
-
- <div className="scan-card scan-card--custom">
- <div className="scan-card-icon">
- <svg viewBox="0 0 24 24" width="24" height="24" stroke="currentColor" fill="none" strokeWidth="2">
- <path d="M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"/>
- </svg>
- </div>
- <h4>Custom Path</h4>
- <span className="scan-desc">Scan a specific directory</span>
- <div className="scan-custom-input">
- <input
- type="text"
- value={scanPath}
- onChange={(e) => setScanPath(e.target.value)}
- placeholder="/path/to/scan"
- disabled={isScanning}
- onClick={(e) => e.stopPropagation()}
- />
- <button
- className="btn btn-primary btn-sm"
- onClick={() => handleStartScan('custom')}
- disabled={isScanning || scanning || !scanPath}
- >
- Scan
- </button>
- </div>
- </div>
- </div>
-
- <div className="scan-toolbar">
- <button className="btn btn-sm btn-secondary" onClick={handleUpdateDefinitions} disabled={updating}>
- <svg viewBox="0 0 24 24" width="14" height="14" stroke="currentColor" fill="none" strokeWidth="2">
- <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/>
- <polyline points="7 10 12 15 17 10"/>
- <line x1="12" y1="15" x2="12" y2="3"/>
- </svg>
- {updating ? 'Updating...' : 'Update Definitions'}
- </button>
- </div>
-
- {isScanning && (
- <div className="card scan-progress">
- <div className="card-header">
- <h3>Scan in Progress</h3>
- <button className="btn btn-sm btn-danger" onClick={handleCancelScan}>
- Cancel
- </button>
- </div>
- <div className="card-body">
- <div className="progress-info">
- <div className="spinner"></div>
- <div>
- <p><strong>Scanning:</strong> {scanStatus.directory}</p>
- <p><strong>Started:</strong> {new Date(scanStatus.started_at).toLocaleString()}</p>
- {scanStatus.files_scanned > 0 && (
- <p><strong>Files scanned:</strong> {scanStatus.files_scanned}</p>
- )}
- </div>
- </div>
- </div>
- </div>
- )}
-
- <div className="card">
- <div className="card-header">
- <h3>Scan History</h3>
- <button className="btn btn-sm btn-secondary" onClick={loadHistory}>Refresh</button>
- </div>
- <div className="card-body">
- {history.length === 0 ? (
- <div className="empty-state-sm">
- <svg viewBox="0 0 24 24" width="40" height="40" stroke="currentColor" fill="none" strokeWidth="1.5">
- <circle cx="11" cy="11" r="8"/>
- <line x1="21" y1="21" x2="16.65" y2="16.65"/>
- </svg>
- <p>No scans have been run yet. Start a scan above to check for threats.</p>
- </div>
- ) : (
- <table className="table">
- <thead>
- <tr>
- <th>Date</th>
- <th>Directory</th>
- <th>Status</th>
- <th>Threats</th>
- </tr>
- </thead>
- <tbody>
- {history.map((scan, index) => (
- <tr key={index}>
- <td>{new Date(scan.started_at).toLocaleString()}</td>
- <td className="path-cell">{scan.directory}</td>
- <td>
- <span className={`badge badge-${scan.status === 'completed' ? 'success' : scan.status === 'error' ? 'danger' : 'warning'}`}>
- {scan.status}
- </span>
- </td>
- <td>
- {scan.infected_files?.length > 0 ? (
- <span className="badge badge-danger">{scan.infected_files.length} found</span>
- ) : (
- <span className="badge badge-success">Clean</span>
- )}
- </td>
- </tr>
- ))}
- </tbody>
- </table>
- )}
- </div>
- </div>
- </div>
- );
-};
-
-const QuarantineTab = () => {
- const [files, setFiles] = useState([]);
- const [loading, setLoading] = useState(true);
- const [message, setMessage] = useState(null);
-
- useEffect(() => {
- loadFiles();
- }, []);
-
- async function loadFiles() {
- try {
- const data = await api.getQuarantinedFiles();
- setFiles(data.files || []);
- } catch (err) {
- console.error('Failed to load quarantined files:', err);
- } finally {
- setLoading(false);
- }
- }
-
- async function handleDelete(filename) {
- if (!confirm(`Permanently delete ${filename}? This cannot be undone.`)) return;
-
- try {
- await api.deleteQuarantinedFile(filename);
- setMessage({ type: 'success', text: 'File deleted' });
- loadFiles();
- } catch (err) {
- setMessage({ type: 'error', text: err.message });
- }
- }
-
- function formatBytes(bytes) {
- if (!bytes) return '0 B';
- const k = 1024;
- const sizes = ['B', 'KB', 'MB', 'GB'];
- const i = Math.floor(Math.log(bytes) / Math.log(k));
- return parseFloat((bytes / Math.pow(k, i)).toFixed(1)) + ' ' + sizes[i];
- }
-
- return (
- <div className="quarantine-tab">
- {message && (
- <div className={`alert alert-${message.type === 'success' ? 'success' : 'danger'}`}>
- {message.text}
- </div>
- )}
-
- <div className="card">
- <div className="card-header">
- <h3>Quarantined Files</h3>
- <button className="btn btn-sm btn-secondary" onClick={loadFiles}>Refresh</button>
- </div>
- <div className="card-body">
- {loading ? (
- <div className="loading-sm">Loading...</div>
- ) : files.length === 0 ? (
- <div className="empty-state">
- <svg viewBox="0 0 24 24" width="48" height="48" stroke="currentColor" fill="none" strokeWidth="1">
- <path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"/>
- <polyline points="9 12 12 15 16 10"/>
- </svg>
- <p>No files in quarantine</p>
- <span className="text-muted">Infected files will appear here when detected</span>
- </div>
- ) : (
- <table className="table">
- <thead>
- <tr>
- <th>Filename</th>
- <th>Size</th>
- <th>Quarantined</th>
- <th>Actions</th>
- </tr>
- </thead>
- <tbody>
- {files.map((file, index) => (
- <tr key={index}>
- <td className="path-cell">{file.name}</td>
- <td>{formatBytes(file.size)}</td>
- <td>{new Date(file.quarantined_at).toLocaleString()}</td>
- <td>
- <button
- className="btn btn-sm btn-danger"
- onClick={() => handleDelete(file.name)}
- >
- Delete
- </button>
- </td>
- </tr>
- ))}
- </tbody>
- </table>
- )}
- </div>
- </div>
- </div>
- );
-};
-
-const IntegrityTab = () => {
- const [checking, setChecking] = useState(false);
- const [initializing, setInitializing] = useState(false);
- const [results, setResults] = useState(null);
- const [message, setMessage] = useState(null);
-
- async function handleInitialize() {
- if (!confirm('This will create a new baseline for file integrity monitoring. Continue?')) return;
-
- setInitializing(true);
- setMessage(null);
- try {
- const result = await api.initializeIntegrityDatabase();
- setMessage({ type: 'success', text: result.message });
- } catch (err) {
- setMessage({ type: 'error', text: err.message });
- } finally {
- setInitializing(false);
- }
- }
-
- async function handleCheck() {
- setChecking(true);
- setMessage(null);
- try {
- const result = await api.checkFileIntegrity();
- setResults(result);
- if (result.total_changes === 0) {
- setMessage({ type: 'success', text: 'No changes detected' });
- }
- } catch (err) {
- setMessage({ type: 'error', text: err.message });
- } finally {
- setChecking(false);
- }
- }
-
- return (
- <div className="integrity-tab">
- {message && (
- <div className={`alert alert-${message.type === 'success' ? 'success' : 'danger'}`}>
- {message.text}
- </div>
- )}
-
- <div className="card">
- <div className="card-header">
- <h3>File Integrity Monitoring</h3>
- </div>
- <div className="card-body">
- <p className="description">
- File integrity monitoring tracks changes to critical system files. Initialize a baseline database,
- then periodically check for unauthorized modifications.
- </p>
-
- <div className="integrity-actions">
- <button
- className="btn btn-secondary"
- onClick={handleInitialize}
- disabled={initializing}
- >
- {initializing ? 'Initializing...' : 'Initialize Baseline'}
- </button>
- <button
- className="btn btn-primary"
- onClick={handleCheck}
- disabled={checking}
- >
- {checking ? 'Checking...' : 'Check Integrity'}
- </button>
- </div>
- </div>
- </div>
-
- {results && results.total_changes > 0 && (
- <div className="card">
- <div className="card-header">
- <h3>Changes Detected</h3>
- <span className="badge badge-warning">{results.total_changes} changes</span>
- </div>
- <div className="card-body">
- {results.changes.modified?.length > 0 && (
- <div className="change-section">
- <h4>Modified Files ({results.changes.modified.length})</h4>
- <ul className="file-list">
- {results.changes.modified.map((file, i) => (
- <li key={i}>{file.path}</li>
- ))}
- </ul>
- </div>
- )}
-
- {results.changes.deleted?.length > 0 && (
- <div className="change-section">
- <h4>Deleted Files ({results.changes.deleted.length})</h4>
- <ul className="file-list">
- {results.changes.deleted.map((file, i) => (
- <li key={i}>{file}</li>
- ))}
- </ul>
- </div>
- )}
-
- {results.changes.new?.length > 0 && (
- <div className="change-section">
- <h4>New Files ({results.changes.new.length})</h4>
- <ul className="file-list">
- {results.changes.new.slice(0, 50).map((file, i) => (
- <li key={i}>{file}</li>
- ))}
- {results.changes.new.length > 50 && (
- <li className="text-muted">... and {results.changes.new.length - 50} more</li>
- )}
- </ul>
- </div>
- )}
-
- {results.changes.permission_changed?.length > 0 && (
- <div className="change-section">
- <h4>Permission Changes ({results.changes.permission_changed.length})</h4>
- <ul className="file-list">
- {results.changes.permission_changed.map((file, i) => (
- <li key={i}>{file.path} ({file.old_mode} → {file.new_mode})</li>
- ))}
- </ul>
- </div>
- )}
- </div>
- </div>
- )}
- </div>
- );
-};
-
-const EventsTab = () => {
- const [events, setEvents] = useState([]);
- const [failedLogins, setFailedLogins] = useState(null);
- const [loading, setLoading] = useState(true);
-
- useEffect(() => {
- loadEvents();
- loadFailedLogins();
- }, []);
-
- async function loadEvents() {
- try {
- const data = await api.getSecurityEvents(50);
- setEvents(data.events || []);
- } catch (err) {
- console.error('Failed to load security events:', err);
- } finally {
- setLoading(false);
- }
- }
-
- async function loadFailedLogins() {
- try {
- const data = await api.getFailedLogins(24);
- setFailedLogins(data);
- } catch (err) {
- console.error('Failed to load failed logins:', err);
- }
- }
-
- function getEventIcon(type) {
- if (type.includes('malware')) {
- return <svg viewBox="0 0 24 24" width="16" height="16" stroke="currentColor" fill="none" strokeWidth="2"><path d="M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"/></svg>;
- }
- if (type.includes('integrity')) {
- return <svg viewBox="0 0 24 24" width="16" height="16" stroke="currentColor" fill="none" strokeWidth="2"><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"/><polyline points="14 2 14 8 20 8"/></svg>;
- }
- return <svg viewBox="0 0 24 24" width="16" height="16" stroke="currentColor" fill="none" strokeWidth="2"><path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"/></svg>;
- }
-
- return (
- <div className="events-tab">
- {failedLogins && (
- <div className={`card ${failedLogins.alert_triggered ? 'card-warning' : ''}`}>
- <div className="card-header">
- <h3>Failed Login Attempts (24h)</h3>
- <button className="btn btn-sm btn-secondary" onClick={loadFailedLogins}>Refresh</button>
- </div>
- <div className="card-body">
- <div className="failed-login-summary">
- <span className={`count ${failedLogins.alert_triggered ? 'danger' : ''}`}>
- {failedLogins.failed_attempts}
- </span>
- <span className="label">failed attempts (threshold: {failedLogins.threshold})</span>
- </div>
- {failedLogins.recent_failures?.length > 0 && (
- <details className="recent-failures">
- <summary>View recent failures</summary>
- <pre>{failedLogins.recent_failures.join('\n')}</pre>
- </details>
- )}
- </div>
- </div>
- )}
-
- <div className="card">
- <div className="card-header">
- <h3>Security Events</h3>
- <button className="btn btn-sm btn-secondary" onClick={loadEvents}>Refresh</button>
- </div>
- <div className="card-body">
- {loading ? (
- <div className="loading-sm">Loading...</div>
- ) : events.length === 0 ? (
- <p className="text-muted">No security events recorded.</p>
- ) : (
- <div className="events-list">
- {events.map((event, index) => (
- <div key={index} className={`event-item ${event.type}`}>
- <div className="event-icon">{getEventIcon(event.type)}</div>
- <div className="event-content">
- <span className="event-message">{event.message}</span>
- <span className="event-time">{new Date(event.timestamp).toLocaleString()}</span>
- </div>
- </div>
- ))}
- </div>
- )}
- </div>
- </div>
- </div>
- );
-};
-
-const SettingsTab = () => {
- const [config, setConfig] = useState(null);
- const [loading, setLoading] = useState(true);
- const [saving, setSaving] = useState(false);
- const [message, setMessage] = useState(null);
-
- useEffect(() => {
- loadConfig();
- }, []);
-
- async function loadConfig() {
- try {
- const data = await api.getSecurityConfig();
- setConfig(data);
- } catch (err) {
- console.error('Failed to load security config:', err);
- } finally {
- setLoading(false);
- }
- }
-
- async function handleSave() {
- setSaving(true);
- setMessage(null);
- try {
- await api.updateSecurityConfig(config);
- setMessage({ type: 'success', text: 'Settings saved' });
- } catch (err) {
- setMessage({ type: 'error', text: err.message });
- } finally {
- setSaving(false);
- }
- }
-
- function updateConfig(section, key, value) {
- setConfig(prev => ({
- ...prev,
- [section]: {
- ...prev[section],
- [key]: value
- }
- }));
- }
-
- if (loading) {
- return <div className="loading-sm">Loading settings...</div>;
- }
-
- return (
- <div className="settings-tab">
- {message && (
- <div className={`alert alert-${message.type === 'success' ? 'success' : 'danger'}`}>
- {message.text}
- </div>
- )}
-
- <div className="card">
- <div className="card-header">
- <h3>ClamAV Settings</h3>
- </div>
- <div className="card-body">
- <div className="form-group">
- <label className="toggle-switch-label">
- <span>Enable ClamAV scanning</span>
- <label className="toggle-switch">
- <input
- type="checkbox"
- checked={config?.clamav?.enabled || false}
- onChange={(e) => updateConfig('clamav', 'enabled', e.target.checked)}
- />
- <span className="toggle-slider"></span>
- </label>
- </label>
- </div>
-
- <div className="form-group">
- <label className="toggle-switch-label">
- <span>Scan files on upload</span>
- <label className="toggle-switch">
- <input
- type="checkbox"
- checked={config?.clamav?.scan_on_upload || false}
- onChange={(e) => updateConfig('clamav', 'scan_on_upload', e.target.checked)}
- />
- <span className="toggle-slider"></span>
- </label>
- </label>
- </div>
-
- <div className="form-group">
- <label>Quarantine Path</label>
- <input
- type="text"
- value={config?.clamav?.quarantine_path || '/var/quarantine'}
- onChange={(e) => updateConfig('clamav', 'quarantine_path', e.target.value)}
- />
- </div>
- </div>
- </div>
-
- <div className="card">
- <div className="card-header">
- <h3>File Integrity Settings</h3>
- </div>
- <div className="card-body">
- <div className="form-group">
- <label className="toggle-switch-label">
- <span>Enable file integrity monitoring</span>
- <label className="toggle-switch">
- <input
- type="checkbox"
- checked={config?.file_integrity?.enabled || false}
- onChange={(e) => updateConfig('file_integrity', 'enabled', e.target.checked)}
- />
- <span className="toggle-slider"></span>
- </label>
- </label>
- </div>
-
- <div className="form-group">
- <label className="toggle-switch-label">
- <span>Alert on file changes</span>
- <label className="toggle-switch">
- <input
- type="checkbox"
- checked={config?.file_integrity?.alert_on_change || false}
- onChange={(e) => updateConfig('file_integrity', 'alert_on_change', e.target.checked)}
- />
- <span className="toggle-slider"></span>
- </label>
- </label>
- </div>
- </div>
- </div>
-
- <div className="card">
- <div className="card-header">
- <h3>Notification Settings</h3>
- </div>
- <div className="card-body">
- <div className="form-group">
- <label className="toggle-switch-label">
- <span>Notify on malware detection</span>
- <label className="toggle-switch">
- <input
- type="checkbox"
- checked={config?.notifications?.on_malware_found || false}
- onChange={(e) => updateConfig('notifications', 'on_malware_found', e.target.checked)}
- />
- <span className="toggle-slider"></span>
- </label>
- </label>
- </div>
-
- <div className="form-group">
- <label className="toggle-switch-label">
- <span>Notify on integrity changes</span>
- <label className="toggle-switch">
- <input
- type="checkbox"
- checked={config?.notifications?.on_integrity_change || false}
- onChange={(e) => updateConfig('notifications', 'on_integrity_change', e.target.checked)}
- />
- <span className="toggle-slider"></span>
- </label>
- </label>
- </div>
-
- <div className="form-group">
- <label className="toggle-switch-label">
- <span>Notify on suspicious activity</span>
- <label className="toggle-switch">
- <input
- type="checkbox"
- checked={config?.notifications?.on_suspicious_activity || false}
- onChange={(e) => updateConfig('notifications', 'on_suspicious_activity', e.target.checked)}
- />
- <span className="toggle-slider"></span>
- </label>
- </label>
- </div>
- </div>
- </div>
-
- <div className="form-actions">
- <button className="btn btn-primary" onClick={handleSave} disabled={saving}>
- {saving ? 'Saving...' : 'Save Settings'}
- </button>
- </div>
- </div>
- );
-};
-
-const Fail2banTab = () => {
- const [status, setStatus] = useState(null);
- const [bans, setBans] = useState([]);
- const [loading, setLoading] = useState(true);
- const [actionLoading, setActionLoading] = useState(false);
- const [showBanModal, setShowBanModal] = useState(false);
- const [banIP, setBanIP] = useState('');
- const [banJail, setBanJail] = useState('sshd');
- const [confirmDialog, setConfirmDialog] = useState(null);
- const toast = useToast();
-
- useEffect(() => {
- loadData();
- }, []);
-
- const loadData = async () => {
- setLoading(true);
- try {
- const [statusData, bansData] = await Promise.all([
- api.getFail2banStatus(),
- api.getAllFail2banBans().catch(() => ({ banned_ips: [] }))
- ]);
- setStatus(statusData);
- setBans(bansData.banned_ips || []);
- } catch (error) {
- console.error('Failed to load Fail2ban data:', error);
- } finally {
- setLoading(false);
- }
- };
-
- const handleInstall = async () => {
- setActionLoading(true);
- try {
- await api.installFail2ban();
- toast.success('Fail2ban installed successfully');
- await loadData();
- } catch (error) {
- toast.error(`Failed to install: ${error.message}`);
- } finally {
- setActionLoading(false);
- }
- };
-
- const handleBan = async () => {
- if (!banIP.trim()) return;
- setActionLoading(true);
- try {
- await api.fail2banBan(banIP, banJail);
- toast.success(`IP ${banIP} banned in ${banJail}`);
- setShowBanModal(false);
- setBanIP('');
- await loadData();
- } catch (error) {
- toast.error(`Failed to ban IP: ${error.message}`);
- } finally {
- setActionLoading(false);
- }
- };
-
- const handleUnban = async (ip, jail) => {
- setConfirmDialog({
- title: 'Unban IP',
- message: `Are you sure you want to unban ${ip} from ${jail}?`,
- confirmText: 'Unban',
- variant: 'warning',
- onConfirm: async () => {
- try {
- await api.fail2banUnban(ip, jail);
- toast.success(`IP ${ip} unbanned`);
- await loadData();
- } catch (error) {
- toast.error(`Failed to unban: ${error.message}`);
- }
- setConfirmDialog(null);
- },
- onCancel: () => setConfirmDialog(null)
- });
- };
-
- if (loading) {
- return <div className="loading-sm">Loading Fail2ban status...</div>;
- }
-
- return (
- <div className="fail2ban-tab">
- {!status?.installed ? (
- <div className="empty-state">
- <svg viewBox="0 0 24 24" width="48" height="48" stroke="currentColor" fill="none" strokeWidth="1">
- <path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"/>
- </svg>
- <h3>Fail2ban Not Installed</h3>
- <p>Install Fail2ban to protect against brute force attacks.</p>
- <button className="btn btn-primary" onClick={handleInstall} disabled={actionLoading}>
- {actionLoading ? 'Installing...' : 'Install Fail2ban'}
- </button>
- </div>
- ) : (
- <>
- <div className="card">
- <div className="card-header">
- <h3>Fail2ban Status</h3>
- <div className="card-actions">
- <button className="btn btn-sm btn-primary" onClick={() => setShowBanModal(true)}>
- Ban IP
- </button>
- <button className="btn btn-sm btn-secondary" onClick={loadData}>
- Refresh
- </button>
- </div>
- </div>
- <div className="card-body">
- <div className="info-list">
- <div className="info-item">
- <span className="info-label">Service</span>
- <span className={`badge ${status.service_running ? 'badge-success' : 'badge-danger'}`}>
- {status.service_running ? 'Running' : 'Stopped'}
- </span>
- </div>
- <div className="info-item">
- <span className="info-label">Version</span>
- <span className="info-value">{status.version || 'Unknown'}</span>
- </div>
- <div className="info-item">
- <span className="info-label">Active Jails</span>
- <span className="info-value">{status.jails?.join(', ') || 'None'}</span>
- </div>
- <div className="info-item">
- <span className="info-label">Total Banned IPs</span>
- <span className="info-value">{bans.length}</span>
- </div>
- </div>
- </div>
- </div>
-
- <div className="card">
- <div className="card-header">
- <h3>Banned IPs</h3>
- </div>
- <div className="card-body">
- {bans.length === 0 ? (
- <p className="text-muted">No IPs are currently banned.</p>
- ) : (
- <table className="table">
- <thead>
- <tr>
- <th>IP Address</th>
- <th>Jail</th>
- <th>Actions</th>
- </tr>
- </thead>
- <tbody>
- {bans.map((ban, index) => (
- <tr key={index}>
- <td><code>{ban.ip}</code></td>
- <td><span className="badge badge-info">{ban.jail}</span></td>
- <td>
- <button className="btn btn-sm btn-warning" onClick={() => handleUnban(ban.ip, ban.jail)}>
- Unban
- </button>
- </td>
- </tr>
- ))}
- </tbody>
- </table>
- )}
- </div>
- </div>
- </>
- )}
-
- {showBanModal && (
- <div className="modal-overlay" onClick={() => setShowBanModal(false)}>
- <div className="modal" onClick={(e) => e.stopPropagation()}>
- <div className="modal-header">
- <h2>Ban IP Address</h2>
- <button className="btn btn-icon" onClick={() => setShowBanModal(false)}>×</button>
- </div>
- <div className="modal-body">
- <div className="form-group">
- <label>IP Address</label>
- <input
- type="text"
- value={banIP}
- onChange={(e) => setBanIP(e.target.value)}
- placeholder="192.168.1.100"
- />
- </div>
- <div className="form-group">
- <label>Jail</label>
- <select value={banJail} onChange={(e) => setBanJail(e.target.value)}>
- {status?.jails?.map(jail => (
- <option key={jail} value={jail}>{jail}</option>
- ))}
- </select>
- </div>
- </div>
- <div className="modal-footer">
- <button className="btn btn-secondary" onClick={() => setShowBanModal(false)}>Cancel</button>
- <button className="btn btn-danger" onClick={handleBan} disabled={actionLoading || !banIP.trim()}>
- {actionLoading ? 'Banning...' : 'Ban IP'}
- </button>
- </div>
- </div>
- </div>
- )}
-
- {confirmDialog && (
- <ConfirmDialog
- title={confirmDialog.title}
- message={confirmDialog.message}
- confirmText={confirmDialog.confirmText}
- variant={confirmDialog.variant}
- onConfirm={confirmDialog.onConfirm}
- onCancel={confirmDialog.onCancel}
- />
- )}
- </div>
- );
-};
-
-const SSHKeysTab = () => {
- const [keys, setKeys] = useState([]);
- const [loading, setLoading] = useState(true);
- const [showAddModal, setShowAddModal] = useState(false);
- const [newKey, setNewKey] = useState('');
- const [actionLoading, setActionLoading] = useState(false);
- const [confirmDialog, setConfirmDialog] = useState(null);
- const toast = useToast();
-
- useEffect(() => {
- loadKeys();
- }, []);
-
- const loadKeys = async () => {
- setLoading(true);
- try {
- const data = await api.getSSHKeys();
- setKeys(data.keys || []);
- } catch (error) {
- console.error('Failed to load SSH keys:', error);
- } finally {
- setLoading(false);
- }
- };
-
- const handleAddKey = async () => {
- if (!newKey.trim()) return;
- setActionLoading(true);
- try {
- await api.addSSHKey(newKey);
- toast.success('SSH key added successfully');
- setShowAddModal(false);
- setNewKey('');
- await loadKeys();
- } catch (error) {
- toast.error(`Failed to add key: ${error.message}`);
- } finally {
- setActionLoading(false);
- }
- };
-
- const handleRemoveKey = async (keyId, comment) => {
- setConfirmDialog({
- title: 'Remove SSH Key',
- message: `Are you sure you want to remove the SSH key${comment ? ` "${comment}"` : ''}? This may lock you out if it's your only key.`,
- confirmText: 'Remove',
- variant: 'danger',
- onConfirm: async () => {
- try {
- await api.removeSSHKey(keyId);
- toast.success('SSH key removed');
- await loadKeys();
- } catch (error) {
- toast.error(`Failed to remove key: ${error.message}`);
- }
- setConfirmDialog(null);
- },
- onCancel: () => setConfirmDialog(null)
- });
- };
-
- return (
- <div className="ssh-keys-tab">
- <div className="card">
- <div className="card-header">
- <h3>SSH Authorized Keys</h3>
- <div className="card-actions">
- <button className="btn btn-sm btn-primary" onClick={() => setShowAddModal(true)}>
- Add Key
- </button>
- <button className="btn btn-sm btn-secondary" onClick={loadKeys}>
- Refresh
- </button>
- </div>
- </div>
- <div className="card-body">
- {loading ? (
- <div className="loading-sm">Loading...</div>
- ) : keys.length === 0 ? (
- <div className="empty-state-sm">
- <p>No SSH keys configured for root user.</p>
- <button className="btn btn-primary" onClick={() => setShowAddModal(true)}>
- Add SSH Key
- </button>
- </div>
- ) : (
- <table className="table">
- <thead>
- <tr>
- <th>Type</th>
- <th>Fingerprint</th>
- <th>Comment</th>
- <th>Actions</th>
- </tr>
- </thead>
- <tbody>
- {keys.map((key) => (
- <tr key={key.id}>
- <td><code>{key.type}</code></td>
- <td><code className="fingerprint">{key.fingerprint}</code></td>
- <td>{key.comment || '-'}</td>
- <td>
- <button className="btn btn-sm btn-danger" onClick={() => handleRemoveKey(key.id, key.comment)}>
- Remove
- </button>
- </td>
- </tr>
- ))}
- </tbody>
- </table>
- )}
- </div>
- </div>
-
- {showAddModal && (
- <div className="modal-overlay" onClick={() => setShowAddModal(false)}>
- <div className="modal modal-lg" onClick={(e) => e.stopPropagation()}>
- <div className="modal-header">
- <h2>Add SSH Public Key</h2>
- <button className="btn btn-icon" onClick={() => setShowAddModal(false)}>×</button>
- </div>
- <div className="modal-body">
- <div className="form-group">
- <label>Public Key</label>
- <textarea
- value={newKey}
- onChange={(e) => setNewKey(e.target.value)}
- placeholder="ssh-rsa AAAA... user@host or ssh-ed25519 AAAA... user@host"
- rows={4}
- />
- <p className="help-text">Paste your SSH public key (typically from ~/.ssh/id_rsa.pub or ~/.ssh/id_ed25519.pub)</p>
- </div>
- </div>
- <div className="modal-footer">
- <button className="btn btn-secondary" onClick={() => setShowAddModal(false)}>Cancel</button>
- <button className="btn btn-primary" onClick={handleAddKey} disabled={actionLoading || !newKey.trim()}>
- {actionLoading ? 'Adding...' : 'Add Key'}
- </button>
- </div>
- </div>
- </div>
- )}
-
- {confirmDialog && (
- <ConfirmDialog
- title={confirmDialog.title}
- message={confirmDialog.message}
- confirmText={confirmDialog.confirmText}
- variant={confirmDialog.variant}
- onConfirm={confirmDialog.onConfirm}
- onCancel={confirmDialog.onCancel}
- />
- )}
- </div>
- );
-};
-
-const IPListsTab = () => {
- const [lists, setLists] = useState({ allowlist: [], blocklist: [] });
- const [loading, setLoading] = useState(true);
- const [showAddModal, setShowAddModal] = useState(null);
- const [newIP, setNewIP] = useState('');
- const [newComment, setNewComment] = useState('');
- const [actionLoading, setActionLoading] = useState(false);
- const [confirmDialog, setConfirmDialog] = useState(null);
- const toast = useToast();
-
- useEffect(() => {
- loadLists();
- }, []);
-
- const loadLists = async () => {
- setLoading(true);
- try {
- const data = await api.getIPLists();
- setLists({
- allowlist: data.allowlist || [],
- blocklist: data.blocklist || []
- });
- } catch (error) {
- console.error('Failed to load IP lists:', error);
- } finally {
- setLoading(false);
- }
- };
-
- const handleAdd = async () => {
- if (!newIP.trim()) return;
- setActionLoading(true);
- try {
- await api.addToIPList(newIP, showAddModal, newComment);
- toast.success(`IP added to ${showAddModal}`);
- setShowAddModal(null);
- setNewIP('');
- setNewComment('');
- await loadLists();
- } catch (error) {
- toast.error(`Failed to add IP: ${error.message}`);
- } finally {
- setActionLoading(false);
- }
- };
-
- const handleRemove = async (ip, listType) => {
- setConfirmDialog({
- title: `Remove from ${listType}`,
- message: `Are you sure you want to remove ${ip} from the ${listType}?`,
- confirmText: 'Remove',
- variant: 'warning',
- onConfirm: async () => {
- try {
- await api.removeFromIPList(ip, listType);
- toast.success(`IP removed from ${listType}`);
- await loadLists();
- } catch (error) {
- toast.error(`Failed to remove IP: ${error.message}`);
- }
- setConfirmDialog(null);
- },
- onCancel: () => setConfirmDialog(null)
- });
- };
-
- const renderList = (title, listType, items, badgeClass) => (
- <div className="card">
- <div className="card-header">
- <h3>{title}</h3>
- <button className="btn btn-sm btn-primary" onClick={() => setShowAddModal(listType)}>
- Add IP
- </button>
- </div>
- <div className="card-body">
- {items.length === 0 ? (
- <p className="text-muted">No IPs in {listType}.</p>
- ) : (
- <div className="ip-list">
- {items.map((item, index) => (
- <div key={index} className="ip-list-item">
- <div className="ip-info">
- <code className={badgeClass}>{item.ip}</code>
- {item.comment && <span className="ip-comment">{item.comment}</span>}
- <span className="ip-date">{new Date(item.added_at).toLocaleDateString()}</span>
- </div>
- <button className="btn btn-sm btn-danger" onClick={() => handleRemove(item.ip, listType)}>
- Remove
- </button>
- </div>
- ))}
- </div>
- )}
- </div>
- </div>
- );
-
- if (loading) {
- return <div className="loading-sm">Loading IP lists...</div>;
- }
-
- return (
- <div className="ip-lists-tab">
- <div className="ip-lists-grid">
- {renderList('Allowlist', 'allowlist', lists.allowlist, 'ip-allowed')}
- {renderList('Blocklist', 'blocklist', lists.blocklist, 'ip-blocked')}
- </div>
-
- {showAddModal && (
- <div className="modal-overlay" onClick={() => setShowAddModal(null)}>
- <div className="modal" onClick={(e) => e.stopPropagation()}>
- <div className="modal-header">
- <h2>Add to {showAddModal}</h2>
- <button className="btn btn-icon" onClick={() => setShowAddModal(null)}>×</button>
- </div>
- <div className="modal-body">
- <div className="form-group">
- <label>IP Address or CIDR</label>
- <input
- type="text"
- value={newIP}
- onChange={(e) => setNewIP(e.target.value)}
- placeholder="192.168.1.100 or 10.0.0.0/24"
- />
- </div>
- <div className="form-group">
- <label>Comment (optional)</label>
- <input
- type="text"
- value={newComment}
- onChange={(e) => setNewComment(e.target.value)}
- placeholder="Office IP, VPN, etc."
- />
- </div>
- </div>
- <div className="modal-footer">
- <button className="btn btn-secondary" onClick={() => setShowAddModal(null)}>Cancel</button>
- <button className="btn btn-primary" onClick={handleAdd} disabled={actionLoading || !newIP.trim()}>
- {actionLoading ? 'Adding...' : 'Add'}
- </button>
- </div>
- </div>
- </div>
- )}
-
- {confirmDialog && (
- <ConfirmDialog
- title={confirmDialog.title}
- message={confirmDialog.message}
- confirmText={confirmDialog.confirmText}
- variant={confirmDialog.variant}
- onConfirm={confirmDialog.onConfirm}
- onCancel={confirmDialog.onCancel}
- />
- )}
- </div>
- );
-};
-
-const AuditTab = () => {
- const [audit, setAudit] = useState(null);
- const [loading, setLoading] = useState(false);
- const [error, setError] = useState(null);
-
- const runAudit = async () => {
- setLoading(true);
- setError(null);
- try {
- const data = await api.generateSecurityAudit();
- setAudit(data.audit);
- } catch (err) {
- setError(err.message);
- } finally {
- setLoading(false);
- }
- };
-
- const getSeverityClass = (severity) => {
- switch (severity) {
- case 'pass': return 'badge-success';
- case 'critical': return 'badge-danger';
- case 'warning': return 'badge-warning';
- case 'info': return 'badge-info';
- default: return 'badge-secondary';
- }
- };
-
- const getScoreClass = (score) => {
- if (score >= 80) return 'score-excellent';
- if (score >= 60) return 'score-good';
- if (score >= 40) return 'score-fair';
- return 'score-poor';
- };
-
- return (
- <div className="audit-tab">
- <div className="card">
- <div className="card-header">
- <h3>Security Audit</h3>
- <button className="btn btn-primary" onClick={runAudit} disabled={loading}>
- {loading ? 'Running Audit...' : 'Run Audit'}
- </button>
- </div>
- <div className="card-body">
- {error && <div className="alert alert-danger">{error}</div>}
-
- {!audit && !loading && (
- <div className="empty-state">
- <svg viewBox="0 0 24 24" width="48" height="48" stroke="currentColor" fill="none" strokeWidth="1">
- <path d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"/>
- </svg>
- <p>Run a security audit to check your server's configuration.</p>
- </div>
- )}
-
- {loading && (
- <div className="loading-state">
- <div className="spinner"></div>
- <p>Running security audit...</p>
- </div>
- )}
-
- {audit && !loading && (
- <div className="audit-results">
- <div className={`audit-score ${getScoreClass(audit.score)}`}>
- <span className="score-value">{audit.score}</span>
- <span className="score-label">Security Score</span>
- </div>
-
- <div className="audit-timestamp">
- Generated: {new Date(audit.generated_at).toLocaleString()}
- </div>
-
- {Object.entries(audit.services || {}).map(([service, data]) => (
- <div key={service} className="audit-section">
- <h4>{service.toUpperCase()}</h4>
- <div className="findings-list">
- {data.findings?.map((finding, idx) => (
- <div key={idx} className="finding-item">
- <span className={`badge ${getSeverityClass(finding.severity)}`}>
- {finding.severity}
- </span>
- <span className="finding-message">{finding.message}</span>
- </div>
- ))}
- </div>
- </div>
- ))}
-
- {audit.recommendations?.length > 0 && (
- <div className="audit-section recommendations">
- <h4>Recommendations</h4>
- <ul>
- {audit.recommendations.map((rec, idx) => (
- <li key={idx}>{rec}</li>
- ))}
- </ul>
- </div>
- )}
- </div>
- )}
- </div>
- </div>
- </div>
- );
-};
-
-const VulnerabilityTab = () => {
- const [lynisStatus, setLynisStatus] = useState(null);
- const [scanStatus, setScanStatus] = useState(null);
- const [loading, setLoading] = useState(true);
- const [actionLoading, setActionLoading] = useState(false);
- const toast = useToast();
-
- useEffect(() => {
- loadStatus();
- }, []);
-
- useEffect(() => {
- let interval;
- if (scanStatus?.status === 'running') {
- interval = setInterval(loadScanStatus, 5000);
- }
- return () => clearInterval(interval);
- }, [scanStatus?.status]);
-
- const loadStatus = async () => {
- setLoading(true);
- try {
- const [lynis, scan] = await Promise.all([
- api.getLynisStatus(),
- api.getLynisScanStatus()
- ]);
- setLynisStatus(lynis);
- setScanStatus(scan);
- } catch (error) {
- console.error('Failed to load Lynis status:', error);
- } finally {
- setLoading(false);
- }
- };
-
- const loadScanStatus = async () => {
- try {
- const scan = await api.getLynisScanStatus();
- setScanStatus(scan);
- } catch (error) {
- console.error('Failed to load scan status:', error);
- }
- };
-
- const handleInstall = async () => {
- setActionLoading(true);
- try {
- await api.installLynis();
- toast.success('Lynis installed successfully');
- await loadStatus();
- } catch (error) {
- toast.error(`Failed to install: ${error.message}`);
- } finally {
- setActionLoading(false);
- }
- };
-
- const handleStartScan = async () => {
- setActionLoading(true);
- try {
- await api.runLynisScan();
- toast.success('Vulnerability scan started');
- await loadScanStatus();
- } catch (error) {
- toast.error(`Failed to start scan: ${error.message}`);
- } finally {
- setActionLoading(false);
- }
- };
-
- if (loading) {
- return <div className="loading-sm">Loading vulnerability scanner status...</div>;
- }
-
- return (
- <div className="vulnerability-tab">
- {!lynisStatus?.installed ? (
- <div className="empty-state">
- <svg viewBox="0 0 24 24" width="48" height="48" stroke="currentColor" fill="none" strokeWidth="1">
- <circle cx="12" cy="12" r="10"/>
- <circle cx="12" cy="12" r="6"/>
- <circle cx="12" cy="12" r="2"/>
- </svg>
- <h3>Lynis Not Installed</h3>
- <p>Install Lynis to perform security audits and vulnerability scanning.</p>
- <button className="btn btn-primary" onClick={handleInstall} disabled={actionLoading}>
- {actionLoading ? 'Installing...' : 'Install Lynis'}
- </button>
- </div>
- ) : (
- <>
- <div className="card">
- <div className="card-header">
- <h3>Lynis Vulnerability Scanner</h3>
- <button
- className="btn btn-primary"
- onClick={handleStartScan}
- disabled={actionLoading || scanStatus?.status === 'running'}
- >
- {scanStatus?.status === 'running' ? 'Scanning...' : 'Start Scan'}
- </button>
- </div>
- <div className="card-body">
- <div className="info-list">
- <div className="info-item">
- <span className="info-label">Version</span>
- <span className="info-value">{lynisStatus.version || 'Unknown'}</span>
- </div>
- <div className="info-item">
- <span className="info-label">Scan Status</span>
- <span className={`badge badge-${scanStatus?.status === 'completed' ? 'success' : scanStatus?.status === 'running' ? 'info' : 'secondary'}`}>
- {scanStatus?.status || 'Idle'}
- </span>
- </div>
- </div>
- </div>
- </div>
-
- {scanStatus?.status === 'running' && (
- <div className="card scan-progress">
- <div className="card-header">
- <h3>Scan in Progress</h3>
- </div>
- <div className="card-body">
- <div className="progress-info">
- <div className="spinner"></div>
- <p>Scanning system for vulnerabilities...</p>
- <p className="text-muted">Started: {new Date(scanStatus.started_at).toLocaleString()}</p>
- </div>
- </div>
- </div>
- )}
-
- {scanStatus?.status === 'completed' && (
- <div className="card">
- <div className="card-header">
- <h3>Scan Results</h3>
- {scanStatus.hardening_index && (
- <span className={`badge badge-${scanStatus.hardening_index >= 70 ? 'success' : scanStatus.hardening_index >= 50 ? 'warning' : 'danger'}`}>
- Hardening Index: {scanStatus.hardening_index}
- </span>
- )}
- </div>
- <div className="card-body">
- {scanStatus.warnings?.length > 0 && (
- <div className="scan-section">
- <h4>Warnings ({scanStatus.warnings.length})</h4>
- <ul className="findings-list compact">
- {scanStatus.warnings.slice(0, 20).map((warning, idx) => (
- <li key={idx} className="warning">{warning}</li>
- ))}
- {scanStatus.warnings.length > 20 && (
- <li className="text-muted">...and {scanStatus.warnings.length - 20} more</li>
- )}
- </ul>
- </div>
- )}
-
- {scanStatus.suggestions?.length > 0 && (
- <div className="scan-section">
- <h4>Suggestions ({scanStatus.suggestions.length})</h4>
- <ul className="findings-list compact">
- {scanStatus.suggestions.slice(0, 20).map((suggestion, idx) => (
- <li key={idx} className="suggestion">{suggestion}</li>
- ))}
- {scanStatus.suggestions.length > 20 && (
- <li className="text-muted">...and {scanStatus.suggestions.length - 20} more</li>
- )}
- </ul>
- </div>
- )}
- </div>
- </div>
- )}
- </>
- )}
- </div>
- );
-};
-
-const AutoUpdatesTab = () => {
- const [status, setStatus] = useState(null);
- const [loading, setLoading] = useState(true);
- const [actionLoading, setActionLoading] = useState(false);
- const toast = useToast();
-
- useEffect(() => {
- loadStatus();
- }, []);
-
- const loadStatus = async () => {
- setLoading(true);
- try {
- const data = await api.getAutoUpdatesStatus();
- setStatus(data);
- } catch (error) {
- console.error('Failed to load auto-updates status:', error);
- } finally {
- setLoading(false);
- }
- };
-
- const handleInstall = async () => {
- setActionLoading(true);
- try {
- await api.installAutoUpdates();
- toast.success('Auto-updates package installed');
- await loadStatus();
- } catch (error) {
- toast.error(`Failed to install: ${error.message}`);
- } finally {
- setActionLoading(false);
- }
- };
-
- const handleEnable = async () => {
- setActionLoading(true);
- try {
- await api.enableAutoUpdates();
- toast.success('Automatic updates enabled');
- await loadStatus();
- } catch (error) {
- toast.error(`Failed to enable: ${error.message}`);
- } finally {
- setActionLoading(false);
- }
- };
-
- const handleDisable = async () => {
- setActionLoading(true);
- try {
- await api.disableAutoUpdates();
- toast.success('Automatic updates disabled');
- await loadStatus();
- } catch (error) {
- toast.error(`Failed to disable: ${error.message}`);
- } finally {
- setActionLoading(false);
- }
- };
-
- if (loading) {
- return <div className="loading-sm">Loading auto-updates status...</div>;
- }
-
- if (!status?.supported) {
- return (
- <div className="auto-updates-tab">
- <div className="empty-state">
- <svg viewBox="0 0 24 24" width="48" height="48" stroke="currentColor" fill="none" strokeWidth="1">
- <path d="M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"/>
- </svg>
- <h3>Not Supported</h3>
- <p>Automatic security updates are not supported on this system.</p>
- </div>
- </div>
- );
- }
-
- return (
- <div className="auto-updates-tab">
- <div className="card">
- <div className="card-header">
- <h3>Automatic Security Updates</h3>
- <button className="btn btn-sm btn-secondary" onClick={loadStatus}>Refresh</button>
- </div>
- <div className="card-body">
- <div className="info-list">
- <div className="info-item">
- <span className="info-label">Package</span>
- <span className="info-value">{status.package}</span>
- </div>
- <div className="info-item">
- <span className="info-label">Installed</span>
- <span className={`badge ${status.installed ? 'badge-success' : 'badge-warning'}`}>
- {status.installed ? 'Yes' : 'No'}
- </span>
- </div>
- <div className="info-item">
- <span className="info-label">Status</span>
- <span className={`badge ${status.enabled ? 'badge-success' : 'badge-secondary'}`}>
- {status.enabled ? 'Enabled' : 'Disabled'}
- </span>
- </div>
- </div>
-
- <div className="auto-updates-actions" style={{ marginTop: '1.5rem' }}>
- {!status.installed ? (
- <button className="btn btn-primary" onClick={handleInstall} disabled={actionLoading}>
- {actionLoading ? 'Installing...' : 'Install Auto-Updates'}
- </button>
- ) : status.enabled ? (
- <button className="btn btn-warning" onClick={handleDisable} disabled={actionLoading}>
- {actionLoading ? 'Disabling...' : 'Disable Auto-Updates'}
- </button>
- ) : (
- <button className="btn btn-success" onClick={handleEnable} disabled={actionLoading}>
- {actionLoading ? 'Enabling...' : 'Enable Auto-Updates'}
- </button>
- )}
- </div>
-
- <div className="help-text" style={{ marginTop: '1.5rem' }}>
- <p>
- <strong>What are automatic security updates?</strong><br/>
- When enabled, your server will automatically download and install security updates,
- helping protect against known vulnerabilities without manual intervention.
- </p>
- </div>
- </div>
+ {activeTab === 'settings' && <SecurityConfigTab />}
</div>
</div>
);
diff --git a/frontend/src/services/api/apps.js b/frontend/src/services/api/apps.js
new file mode 100644
index 00000000..2bf40f0f
--- /dev/null
+++ b/frontend/src/services/api/apps.js
@@ -0,0 +1,452 @@
+// Applications, app linking, environment variables, private URLs,
+// templates, builds, deployments
+
+// Apps endpoints
+export async function getApps() {
+ return this.request('/apps');
+}
+
+export async function getApp(id) {
+ return this.request(`/apps/${id}`);
+}
+
+export async function createApp(appData) {
+ return this.request('/apps', {
+ method: 'POST',
+ body: appData,
+ });
+}
+
+export async function updateApp(id, appData) {
+ return this.request(`/apps/${id}`, {
+ method: 'PUT',
+ body: appData,
+ });
+}
+
+export async function deleteApp(id) {
+ return this.request(`/apps/${id}`, {
+ method: 'DELETE',
+ });
+}
+
+export async function startApp(id) {
+ return this.request(`/apps/${id}/start`, { method: 'POST' });
+}
+
+export async function stopApp(id) {
+ return this.request(`/apps/${id}/stop`, { method: 'POST' });
+}
+
+export async function restartApp(id) {
+ return this.request(`/apps/${id}/restart`, { method: 'POST' });
+}
+
+// App linking endpoints
+export async function linkApp(appId, targetAppId, asEnvironment, options = {}) {
+ return this.request(`/apps/${appId}/link`, {
+ method: 'POST',
+ body: {
+ target_app_id: targetAppId,
+ as_environment: asEnvironment,
+ propagate_credentials: options.propagateCredentials !== false,
+ table_prefix: options.tablePrefix
+ }
+ });
+}
+
+export async function getLinkedApps(appId) {
+ return this.request(`/apps/${appId}/linked`);
+}
+
+export async function unlinkApp(appId) {
+ return this.request(`/apps/${appId}/link`, {
+ method: 'DELETE'
+ });
+}
+
+export async function updateAppEnvironment(appId, environmentType) {
+ return this.request(`/apps/${appId}/environment`, {
+ method: 'PUT',
+ body: { environment_type: environmentType }
+ });
+}
+
+// Private URL endpoints
+export async function enablePrivateUrl(appId, slug = null) {
+ return this.request(`/apps/${appId}/private-url`, {
+ method: 'POST',
+ body: slug ? { slug } : {}
+ });
+}
+
+export async function getPrivateUrl(appId) {
+ return this.request(`/apps/${appId}/private-url`);
+}
+
+export async function updatePrivateUrl(appId, slug) {
+ return this.request(`/apps/${appId}/private-url`, {
+ method: 'PUT',
+ body: { slug }
+ });
+}
+
+export async function disablePrivateUrl(appId) {
+ return this.request(`/apps/${appId}/private-url`, {
+ method: 'DELETE'
+ });
+}
+
+export async function regeneratePrivateUrl(appId) {
+ return this.request(`/apps/${appId}/private-url/regenerate`, {
+ method: 'POST'
+ });
+}
+
+// Environment Variables endpoints
+export async function getEnvVars(appId, maskSecrets = false) {
+ const params = maskSecrets ? '?mask=true' : '';
+ return this.request(`/apps/${appId}/env${params}`);
+}
+
+export async function getEnvVar(appId, key) {
+ return this.request(`/apps/${appId}/env/${encodeURIComponent(key)}`);
+}
+
+export async function createEnvVar(appId, key, value, isSecret = false, description = null) {
+ return this.request(`/apps/${appId}/env`, {
+ method: 'POST',
+ body: { key, value, is_secret: isSecret, description }
+ });
+}
+
+export async function updateEnvVar(appId, key, data) {
+ return this.request(`/apps/${appId}/env/${encodeURIComponent(key)}`, {
+ method: 'PUT',
+ body: data
+ });
+}
+
+export async function deleteEnvVar(appId, key) {
+ return this.request(`/apps/${appId}/env/${encodeURIComponent(key)}`, {
+ method: 'DELETE'
+ });
+}
+
+export async function bulkSetEnvVars(appId, envVars) {
+ return this.request(`/apps/${appId}/env/bulk`, {
+ method: 'POST',
+ body: { env_vars: envVars }
+ });
+}
+
+export async function importEnvFile(appId, content, overwrite = true) {
+ return this.request(`/apps/${appId}/env/import`, {
+ method: 'POST',
+ body: { content, overwrite }
+ });
+}
+
+export async function exportEnvFile(appId, includeSecrets = true) {
+ const params = includeSecrets ? '' : '?include_secrets=false';
+ return this.request(`/apps/${appId}/env/export${params}`);
+}
+
+export async function getEnvVarHistory(appId, limit = 50) {
+ return this.request(`/apps/${appId}/env/history?limit=${limit}`);
+}
+
+export async function clearEnvVars(appId) {
+ return this.request(`/apps/${appId}/env/clear`, {
+ method: 'DELETE'
+ });
+}
+
+// Docker App Logs and Status
+export async function getDockerAppLogs(appId, lines = 100) {
+ return this.request(`/apps/${appId}/logs?lines=${lines}`);
+}
+
+export async function getDockerAppStatus(appId) {
+ return this.request(`/apps/${appId}/status`);
+}
+
+// Template endpoints
+export async function listTemplates(category = null, search = null) {
+ const params = new URLSearchParams();
+ if (category) params.append('category', category);
+ if (search) params.append('search', search);
+ const query = params.toString();
+ return this.request(`/templates/${query ? '?' + query : ''}`);
+}
+
+export async function getTemplateCategories() {
+ return this.request('/templates/categories');
+}
+
+export async function getTemplate(templateId) {
+ return this.request(`/templates/${templateId}`);
+}
+
+export async function installTemplate(templateId, appName, variables = {}) {
+ return this.request(`/templates/${templateId}/install`, {
+ method: 'POST',
+ body: { app_name: appName, variables }
+ });
+}
+
+export async function validateTemplateInstall(templateId, appName, variables = {}) {
+ return this.request('/templates/validate-install', {
+ method: 'POST',
+ body: { template_id: templateId, app_name: appName, variables }
+ });
+}
+
+export async function testDatabaseConnection(config) {
+ return this.request('/templates/test-db-connection', {
+ method: 'POST',
+ body: config
+ });
+}
+
+export async function checkAppUpdate(appId) {
+ return this.request(`/templates/apps/${appId}/check-update`);
+}
+
+export async function updateAppFromTemplate(appId) {
+ return this.request(`/templates/apps/${appId}/update`, { method: 'POST' });
+}
+
+export async function getAppTemplateInfo(appId) {
+ return this.request(`/templates/apps/${appId}/template-info`);
+}
+
+export async function listTemplateRepos() {
+ return this.request('/templates/repos');
+}
+
+export async function addTemplateRepo(name, url) {
+ return this.request('/templates/repos', {
+ method: 'POST',
+ body: { name, url }
+ });
+}
+
+export async function removeTemplateRepo(url) {
+ return this.request('/templates/repos', {
+ method: 'DELETE',
+ body: { url }
+ });
+}
+
+export async function syncTemplates() {
+ return this.request('/templates/sync', { method: 'POST' });
+}
+
+// Git Deployment endpoints
+export async function getDeployConfig(appId) {
+ return this.request(`/deploy/apps/${appId}/config`);
+}
+
+export async function configureDeployment(appId, repoUrl, branch = 'main', autoDeploy = true, preDeployScript = null, postDeployScript = null) {
+ return this.request(`/deploy/apps/${appId}/config`, {
+ method: 'POST',
+ body: {
+ repo_url: repoUrl,
+ branch,
+ auto_deploy: autoDeploy,
+ pre_deploy_script: preDeployScript,
+ post_deploy_script: postDeployScript
+ }
+ });
+}
+
+export async function removeDeployment(appId) {
+ return this.request(`/deploy/apps/${appId}/config`, { method: 'DELETE' });
+}
+
+export async function triggerAppDeploy(appId, force = false) {
+ return this.request(`/deploy/apps/${appId}/deploy`, {
+ method: 'POST',
+ body: { force }
+ });
+}
+
+export async function pullChanges(appId, branch = null) {
+ return this.request(`/deploy/apps/${appId}/pull`, {
+ method: 'POST',
+ body: branch ? { branch } : {}
+ });
+}
+
+export async function getAppGitStatus(appId) {
+ return this.request(`/deploy/apps/${appId}/git-status`);
+}
+
+export async function getCommitInfo(appId) {
+ return this.request(`/deploy/apps/${appId}/commit`);
+}
+
+export async function getDeploymentHistory(appId = null, limit = 50) {
+ const params = new URLSearchParams({ limit });
+ if (appId) params.append('app_id', appId);
+ return this.request(`/deploy/history?${params}`);
+}
+
+export async function cloneRepository(appPath, repoUrl, branch = 'main') {
+ return this.request('/deploy/clone', {
+ method: 'POST',
+ body: { app_path: appPath, repo_url: repoUrl, branch }
+ });
+}
+
+export async function getAppBranches(appId) {
+ return this.request(`/deploy/apps/${appId}/branches`);
+}
+
+export async function getBranchesFromUrl(repoUrl) {
+ return this.request('/deploy/branches', {
+ method: 'POST',
+ body: { repo_url: repoUrl }
+ });
+}
+
+export async function getWebhookLogs(appId = null, limit = 50) {
+ const params = new URLSearchParams({ limit });
+ if (appId) params.append('app_id', appId);
+ return this.request(`/deploy/webhook-logs?${params}`);
+}
+
+// Build & Deployment endpoints
+export async function getBuildConfig(appId) {
+ return this.request(`/builds/apps/${appId}/build-config`);
+}
+
+export async function configureBuild(appId, config) {
+ return this.request(`/builds/apps/${appId}/build-config`, {
+ method: 'POST',
+ body: config
+ });
+}
+
+export async function removeBuildConfig(appId) {
+ return this.request(`/builds/apps/${appId}/build-config`, { method: 'DELETE' });
+}
+
+export async function detectBuildMethod(appId) {
+ return this.request(`/builds/apps/${appId}/detect`);
+}
+
+export async function getNixpacksPlan(appId) {
+ return this.request(`/builds/apps/${appId}/nixpacks-plan`);
+}
+
+export async function triggerBuild(appId, noCache = false) {
+ return this.request(`/builds/apps/${appId}/build`, {
+ method: 'POST',
+ body: { no_cache: noCache }
+ });
+}
+
+export async function getBuildLogs(appId, limit = 20) {
+ return this.request(`/builds/apps/${appId}/build-logs?limit=${limit}`);
+}
+
+export async function getBuildLogDetail(appId, timestamp) {
+ return this.request(`/builds/apps/${appId}/build-logs/${timestamp}`);
+}
+
+export async function clearBuildCache(appId) {
+ return this.request(`/builds/apps/${appId}/clear-cache`, { method: 'POST' });
+}
+
+export async function deployApp(appId, options = {}) {
+ return this.request(`/builds/apps/${appId}/deploy`, {
+ method: 'POST',
+ body: options
+ });
+}
+
+export async function getDeployments(appId, limit = 20, offset = 0) {
+ return this.request(`/builds/apps/${appId}/deployments?limit=${limit}&offset=${offset}`);
+}
+
+export async function getDeploymentDetail(deploymentId, includeLogs = false) {
+ return this.request(`/builds/deployments/${deploymentId}?include_logs=${includeLogs}`);
+}
+
+export async function getDeploymentDiff(deploymentId) {
+ return this.request(`/builds/deployments/${deploymentId}/diff`);
+}
+
+export async function rollback(appId, targetVersion = null) {
+ return this.request(`/builds/apps/${appId}/rollback`, {
+ method: 'POST',
+ body: targetVersion ? { version: targetVersion } : {}
+ });
+}
+
+export async function getCurrentDeployment(appId) {
+ return this.request(`/builds/apps/${appId}/current-deployment`);
+}
+
+// Workflow endpoints
+export async function getWorkflows() {
+ return this.request('/workflows');
+}
+
+export async function getWorkflow(id) {
+ return this.request(`/workflows/${id}`);
+}
+
+export async function createWorkflow(data) {
+ return this.request('/workflows', {
+ method: 'POST',
+ body: data
+ });
+}
+
+export async function updateWorkflow(id, data) {
+ return this.request(`/workflows/${id}`, {
+ method: 'PUT',
+ body: data
+ });
+}
+
+export async function deleteWorkflow(id) {
+ return this.request(`/workflows/${id}`, {
+ method: 'DELETE'
+ });
+}
+
+export async function deployWorkflow(id) {
+ return this.request(`/workflows/${id}/deploy`, {
+ method: 'POST'
+ });
+}
+
+export async function executeWorkflow(id, context = {}) {
+ return this.request(`/workflows/${id}/execute`, {
+ method: 'POST',
+ body: { context }
+ });
+}
+
+export async function getWorkflowExecutions(id) {
+ return this.request(`/workflows/${id}/executions`);
+}
+
+export async function getWorkflowExecutionDetails(executionId) {
+ return this.request(`/workflows/executions/${executionId}`);
+}
+
+export async function getWorkflowExecutionLogs(executionId) {
+ return this.request(`/workflows/executions/${executionId}/logs`);
+}
+
+export async function validateWorkflow(data) {
+ return this.request('/workflows/validate', {
+ method: 'POST',
+ body: JSON.stringify(data)
+ });
+}
diff --git a/frontend/src/services/api/auth.js b/frontend/src/services/api/auth.js
new file mode 100644
index 00000000..21f51e33
--- /dev/null
+++ b/frontend/src/services/api/auth.js
@@ -0,0 +1,339 @@
+// Authentication, 2FA, SSO, user management, permissions, invitations
+
+// Auth endpoints
+export async function getSetupStatus() {
+ return this.request('/auth/setup-status');
+}
+
+export async function login(email, password) {
+ const data = await this.request('/auth/login', {
+ method: 'POST',
+ body: { email, password },
+ });
+ this.setTokens(data.access_token, data.refresh_token);
+ return data;
+}
+
+export async function register(email, username, password, inviteToken) {
+ const body = { email, username, password };
+ if (inviteToken) body.invite_token = inviteToken;
+ const data = await this.request('/auth/register', {
+ method: 'POST',
+ body,
+ });
+ this.setTokens(data.access_token, data.refresh_token);
+ return data;
+}
+
+export async function completeOnboarding(useCases) {
+ return this.request('/auth/complete-onboarding', {
+ method: 'POST',
+ body: { use_cases: useCases },
+ });
+}
+
+export async function logout() {
+ this.clearTokens();
+}
+
+export async function getCurrentUser() {
+ return this.request('/auth/me');
+}
+
+export async function updateCurrentUser(data) {
+ return this.request('/auth/me', {
+ method: 'PUT',
+ body: data
+ });
+}
+
+// Admin - User Management endpoints
+export async function getUsers() {
+ return this.request('/admin/users');
+}
+
+export async function getUser(userId) {
+ return this.request(`/admin/users/${userId}`);
+}
+
+export async function createUser(userData) {
+ return this.request('/admin/users', {
+ method: 'POST',
+ body: userData
+ });
+}
+
+export async function updateUser(userId, userData) {
+ return this.request(`/admin/users/${userId}`, {
+ method: 'PUT',
+ body: userData
+ });
+}
+
+export async function deleteUser(userId) {
+ return this.request(`/admin/users/${userId}`, {
+ method: 'DELETE'
+ });
+}
+
+// Admin - Audit Log endpoints
+export async function getAuditLogs(params = {}) {
+ const searchParams = new URLSearchParams();
+ if (params.page) searchParams.append('page', params.page);
+ if (params.per_page) searchParams.append('per_page', params.per_page);
+ if (params.action) searchParams.append('action', params.action);
+ if (params.user_id) searchParams.append('user_id', params.user_id);
+ if (params.target_type) searchParams.append('target_type', params.target_type);
+ const query = searchParams.toString();
+ return this.request(`/admin/audit-logs${query ? '?' + query : ''}`);
+}
+
+export async function getAuditLogActions() {
+ return this.request('/admin/audit-logs/actions');
+}
+
+// Admin - Permissions endpoints
+export async function getUserPermissions(userId) {
+ return this.request(`/admin/users/${userId}/permissions`);
+}
+
+export async function updateUserPermissions(userId, permissions) {
+ return this.request(`/admin/users/${userId}/permissions`, {
+ method: 'PUT',
+ body: { permissions }
+ });
+}
+
+export async function resetUserPermissions(userId) {
+ return this.request(`/admin/users/${userId}/permissions/reset`, {
+ method: 'POST'
+ });
+}
+
+export async function getPermissionTemplates() {
+ return this.request('/admin/permissions/templates');
+}
+
+// Admin - Invitations endpoints
+export async function getInvitations(status) {
+ const query = status ? `?status=${status}` : '';
+ return this.request(`/admin/invitations/${query}`);
+}
+
+export async function createInvitation(data) {
+ return this.request('/admin/invitations/', {
+ method: 'POST',
+ body: data
+ });
+}
+
+export async function revokeInvitation(id) {
+ return this.request(`/admin/invitations/${id}`, {
+ method: 'DELETE'
+ });
+}
+
+export async function resendInvitation(id) {
+ return this.request(`/admin/invitations/resend/${id}`, {
+ method: 'POST'
+ });
+}
+
+export async function validateInvitation(token) {
+ return this.request(`/admin/invitations/validate/${token}`);
+}
+
+// Admin - Activity endpoints
+export async function getActivitySummary() {
+ return this.request('/admin/activity/summary');
+}
+
+export async function getActivityFeed(params = {}) {
+ const searchParams = new URLSearchParams();
+ if (params.page) searchParams.append('page', params.page);
+ if (params.per_page) searchParams.append('per_page', params.per_page);
+ if (params.user_id) searchParams.append('user_id', params.user_id);
+ if (params.action) searchParams.append('action', params.action);
+ if (params.start_date) searchParams.append('start_date', params.start_date);
+ if (params.end_date) searchParams.append('end_date', params.end_date);
+ const query = searchParams.toString();
+ return this.request(`/admin/activity/feed${query ? '?' + query : ''}`);
+}
+
+// Two-Factor Authentication endpoints
+export async function get2FAStatus() {
+ return this.request('/auth/2fa/status');
+}
+
+export async function initiate2FASetup() {
+ return this.request('/auth/2fa/setup', { method: 'POST' });
+}
+
+export async function confirm2FASetup(code) {
+ return this.request('/auth/2fa/setup/confirm', {
+ method: 'POST',
+ body: { code }
+ });
+}
+
+export async function disable2FA(code) {
+ return this.request('/auth/2fa/disable', {
+ method: 'POST',
+ body: { code }
+ });
+}
+
+export async function regenerateBackupCodes(code) {
+ return this.request('/auth/2fa/backup-codes/regenerate', {
+ method: 'POST',
+ body: { code }
+ });
+}
+
+export async function verify2FA(tempToken, code) {
+ return this.request('/auth/2fa/verify', {
+ method: 'POST',
+ body: { temp_token: tempToken, code }
+ });
+}
+
+// SSO / OAuth
+export async function getSSOProviders() {
+ return this.request('/sso/providers');
+}
+
+export async function startSSOAuth(provider, redirectUri) {
+ return this.request(`/sso/authorize/${provider}?redirect_uri=${encodeURIComponent(redirectUri)}`);
+}
+
+export async function completeSSOAuth(provider, code, state, redirectUri) {
+ const data = await this.request(`/sso/callback/${provider}`, {
+ method: 'POST',
+ body: { code, state, redirect_uri: redirectUri },
+ });
+ if (data.access_token) {
+ this.setTokens(data.access_token, data.refresh_token);
+ }
+ return data;
+}
+
+export async function getSSOIdentities() {
+ return this.request('/sso/identities');
+}
+
+export async function linkSSOProvider(provider, code, state, redirectUri) {
+ return this.request(`/sso/link/${provider}`, {
+ method: 'POST',
+ body: { code, state, redirect_uri: redirectUri },
+ });
+}
+
+export async function unlinkSSOProvider(provider) {
+ return this.request(`/sso/link/${provider}`, { method: 'DELETE' });
+}
+
+// SSO Admin
+export async function getSSOConfig() {
+ return this.request('/sso/admin/config');
+}
+
+export async function updateSSOProviderConfig(provider, config) {
+ return this.request(`/sso/admin/config/${provider}`, {
+ method: 'PUT',
+ body: config,
+ });
+}
+
+export async function testSSOProvider(provider) {
+ return this.request(`/sso/admin/test/${provider}`, { method: 'POST' });
+}
+
+export async function updateSSOGeneralSettings(settings) {
+ return this.request('/sso/admin/general', {
+ method: 'PUT',
+ body: settings,
+ });
+}
+
+// API Keys
+export async function getApiKeys() {
+ return this.request('/api-keys/');
+}
+
+export async function createApiKey(data) {
+ return this.request('/api-keys/', { method: 'POST', body: data });
+}
+
+export async function getApiKey(id) {
+ return this.request(`/api-keys/${id}`);
+}
+
+export async function updateApiKey(id, data) {
+ return this.request(`/api-keys/${id}`, { method: 'PUT', body: data });
+}
+
+export async function revokeApiKey(id) {
+ return this.request(`/api-keys/${id}`, { method: 'DELETE' });
+}
+
+export async function rotateApiKey(id) {
+ return this.request(`/api-keys/${id}/rotate`, { method: 'POST' });
+}
+
+// Event Subscriptions (Webhooks)
+export async function getEventSubscriptions() {
+ return this.request('/event-subscriptions/');
+}
+
+export async function createEventSubscription(data) {
+ return this.request('/event-subscriptions/', { method: 'POST', body: data });
+}
+
+export async function getAvailableEvents() {
+ return this.request('/event-subscriptions/events');
+}
+
+export async function getEventSubscription(id) {
+ return this.request(`/event-subscriptions/${id}`);
+}
+
+export async function updateEventSubscription(id, data) {
+ return this.request(`/event-subscriptions/${id}`, { method: 'PUT', body: data });
+}
+
+export async function deleteEventSubscription(id) {
+ return this.request(`/event-subscriptions/${id}`, { method: 'DELETE' });
+}
+
+export async function testEventSubscription(id) {
+ return this.request(`/event-subscriptions/${id}/test`, { method: 'POST' });
+}
+
+export async function getEventDeliveries(id, page = 1) {
+ return this.request(`/event-subscriptions/${id}/deliveries?page=${page}`);
+}
+
+export async function retryEventDelivery(subId, deliveryId) {
+ return this.request(`/event-subscriptions/${subId}/deliveries/${deliveryId}/retry`, { method: 'POST' });
+}
+
+// API Analytics
+export async function getApiAnalyticsOverview(period = '24h') {
+ return this.request(`/api-analytics/overview?period=${period}`);
+}
+
+export async function getApiAnalyticsEndpoints(period = '24h', limit = 20) {
+ return this.request(`/api-analytics/endpoints?period=${period}&limit=${limit}`);
+}
+
+export async function getApiAnalyticsErrors(period = '24h') {
+ return this.request(`/api-analytics/errors?period=${period}`);
+}
+
+export async function getApiAnalyticsTimeseries(period = '24h', interval = 'hour') {
+ return this.request(`/api-analytics/timeseries?period=${period}&interval=${interval}`);
+}
+
+export async function getApiKeyUsage(keyId, period = '24h') {
+ return this.request(`/api-analytics/keys/${keyId}/usage?period=${period}`);
+}
diff --git a/frontend/src/services/api/client.js b/frontend/src/services/api/client.js
new file mode 100644
index 00000000..907330c2
--- /dev/null
+++ b/frontend/src/services/api/client.js
@@ -0,0 +1,96 @@
+// Base HTTP client — constructor, token management, core request methods
+const API_BASE_URL = import.meta.env.VITE_API_URL ||
+ (import.meta.env.PROD ? '/api/v1' : 'http://localhost:5000/api/v1');
+
+class ApiClient {
+ constructor() {
+ this.baseUrl = API_BASE_URL;
+ }
+
+ getToken() {
+ return localStorage.getItem('access_token');
+ }
+
+ setTokens(accessToken, refreshToken) {
+ localStorage.setItem('access_token', accessToken);
+ localStorage.setItem('refresh_token', refreshToken);
+ }
+
+ clearTokens() {
+ localStorage.removeItem('access_token');
+ localStorage.removeItem('refresh_token');
+ }
+
+ async request(endpoint, options = {}) {
+ const url = `${this.baseUrl}${endpoint}`;
+ const token = this.getToken();
+
+ const config = {
+ headers: {
+ 'Content-Type': 'application/json',
+ ...(token && { Authorization: `Bearer ${token}` }),
+ ...options.headers,
+ },
+ ...options,
+ };
+
+ if (options.body && typeof options.body === 'object') {
+ config.body = JSON.stringify(options.body);
+ }
+
+ try {
+ const response = await fetch(url, config);
+
+ if (response.status === 401) {
+ const refreshed = await this.refreshToken();
+ if (refreshed) {
+ config.headers.Authorization = `Bearer ${this.getToken()}`;
+ const retryResponse = await fetch(url, config);
+ return this.handleResponse(retryResponse);
+ }
+ this.clearTokens();
+ window.location.href = '/login';
+ throw new Error('Session expired');
+ }
+
+ return this.handleResponse(response);
+ } catch (error) {
+ console.error('API Error:', error);
+ throw error;
+ }
+ }
+
+ async handleResponse(response) {
+ const data = await response.json();
+ if (!response.ok) {
+ throw new Error(data.error || 'Request failed');
+ }
+ return data;
+ }
+
+ async refreshToken() {
+ const refreshToken = localStorage.getItem('refresh_token');
+ if (!refreshToken) return false;
+
+ try {
+ const response = await fetch(`${this.baseUrl}/auth/refresh`, {
+ method: 'POST',
+ headers: {
+ 'Content-Type': 'application/json',
+ Authorization: `Bearer ${refreshToken}`,
+ },
+ });
+
+ if (response.ok) {
+ const data = await response.json();
+ localStorage.setItem('access_token', data.access_token);
+ return true;
+ }
+ return false;
+ } catch {
+ return false;
+ }
+ }
+}
+
+export default ApiClient;
diff --git a/frontend/src/services/api/databases.js b/frontend/src/services/api/databases.js
new file mode 100644
index 00000000..878ec1e8
--- /dev/null
+++ b/frontend/src/services/api/databases.js
@@ -0,0 +1,225 @@
+// Database CRUD, MySQL, PostgreSQL, SQLite, Docker databases, queries
+
+// Database status
+export async function getDatabaseStatus() {
+ return this.request('/databases/status');
+}
+
+// MySQL
+export async function getMySQLDatabases(rootPassword = null) {
+ const params = rootPassword ? `?root_password=${encodeURIComponent(rootPassword)}` : '';
+ return this.request(`/databases/mysql${params}`);
+}
+
+export async function createMySQLDatabase(data) {
+ return this.request('/databases/mysql', {
+ method: 'POST',
+ body: data
+ });
+}
+
+export async function dropMySQLDatabase(name, rootPassword = null) {
+ return this.request(`/databases/mysql/${name}`, {
+ method: 'DELETE',
+ body: { root_password: rootPassword }
+ });
+}
+
+export async function getMySQLTables(database, rootPassword = null) {
+ const params = rootPassword ? `?root_password=${encodeURIComponent(rootPassword)}` : '';
+ return this.request(`/databases/mysql/${database}/tables${params}`);
+}
+
+export async function backupMySQLDatabase(database, rootPassword = null) {
+ return this.request(`/databases/mysql/${database}/backup`, {
+ method: 'POST',
+ body: { root_password: rootPassword }
+ });
+}
+
+export async function restoreMySQLDatabase(database, backupPath, rootPassword = null) {
+ return this.request(`/databases/mysql/${database}/restore`, {
+ method: 'POST',
+ body: { backup_path: backupPath, root_password: rootPassword }
+ });
+}
+
+export async function getMySQLUsers(rootPassword = null) {
+ const params = rootPassword ? `?root_password=${encodeURIComponent(rootPassword)}` : '';
+ return this.request(`/databases/mysql/users${params}`);
+}
+
+export async function createMySQLUser(data) {
+ return this.request('/databases/mysql/users', {
+ method: 'POST',
+ body: data
+ });
+}
+
+export async function dropMySQLUser(username, host = 'localhost', rootPassword = null) {
+ return this.request(`/databases/mysql/users/${username}`, {
+ method: 'DELETE',
+ body: { host, root_password: rootPassword }
+ });
+}
+
+export async function grantMySQLPrivileges(username, database, privileges = 'ALL', host = 'localhost', rootPassword = null) {
+ return this.request(`/databases/mysql/users/${username}/grant`, {
+ method: 'POST',
+ body: { database, privileges, host, root_password: rootPassword }
+ });
+}
+
+// PostgreSQL
+export async function getPostgreSQLDatabases() {
+ return this.request('/databases/postgresql');
+}
+
+export async function createPostgreSQLDatabase(data) {
+ return this.request('/databases/postgresql', {
+ method: 'POST',
+ body: data
+ });
+}
+
+export async function dropPostgreSQLDatabase(name) {
+ return this.request(`/databases/postgresql/${name}`, { method: 'DELETE' });
+}
+
+export async function getPostgreSQLTables(database) {
+ return this.request(`/databases/postgresql/${database}/tables`);
+}
+
+export async function backupPostgreSQLDatabase(database) {
+ return this.request(`/databases/postgresql/${database}/backup`, { method: 'POST' });
+}
+
+export async function restorePostgreSQLDatabase(database, backupPath) {
+ return this.request(`/databases/postgresql/${database}/restore`, {
+ method: 'POST',
+ body: { backup_path: backupPath }
+ });
+}
+
+export async function getPostgreSQLUsers() {
+ return this.request('/databases/postgresql/users');
+}
+
+export async function createPostgreSQLUser(data) {
+ return this.request('/databases/postgresql/users', {
+ method: 'POST',
+ body: data
+ });
+}
+
+export async function dropPostgreSQLUser(username) {
+ return this.request(`/databases/postgresql/users/${username}`, { method: 'DELETE' });
+}
+
+export async function grantPostgreSQLPrivileges(username, database, privileges = 'ALL') {
+ return this.request(`/databases/postgresql/users/${username}/grant`, {
+ method: 'POST',
+ body: { database, privileges }
+ });
+}
+
+// Backups
+export async function getDatabaseBackups(type = null) {
+ const params = type ? `?type=${type}` : '';
+ return this.request(`/databases/backups${params}`);
+}
+
+export async function deleteDatabaseBackup(filename) {
+ return this.request(`/databases/backups/${filename}`, { method: 'DELETE' });
+}
+
+export async function generateDatabasePassword(length = 16) {
+ return this.request(`/databases/generate-password?length=${length}`);
+}
+
+// Query Execution
+export async function executeMySQLQuery(database, query, readonly = true) {
+ return this.request(`/databases/mysql/${database}/query`, {
+ method: 'POST',
+ body: { query, readonly }
+ });
+}
+
+export async function executePostgreSQLQuery(database, query, readonly = true) {
+ return this.request(`/databases/postgresql/${database}/query`, {
+ method: 'POST',
+ body: { query, readonly }
+ });
+}
+
+export async function executeSQLiteQuery(path, query, readonly = true) {
+ return this.request('/databases/sqlite/query', {
+ method: 'POST',
+ body: { path, query, readonly }
+ });
+}
+
+export async function getMySQLTableStructure(database, table) {
+ return this.request(`/databases/mysql/${database}/tables/${table}/structure`);
+}
+
+export async function getPostgreSQLTableStructure(database, table) {
+ return this.request(`/databases/postgresql/${database}/tables/${table}/structure`);
+}
+
+export async function getSQLiteTableStructure(path, table) {
+ return this.request(`/databases/sqlite/tables/${table}/structure?path=${encodeURIComponent(path)}`);
+}
+
+export async function getSQLiteDatabases() {
+ return this.request('/databases/sqlite');
+}
+
+export async function getSQLiteTables(path) {
+ return this.request(`/databases/sqlite/tables?path=${encodeURIComponent(path)}`);
+}
+
+// Docker Container Databases
+export async function getDockerDatabases() {
+ return this.request('/databases/docker');
+}
+
+export async function getAppDatabases(appId) {
+ return this.request(`/databases/docker/app/${appId}`);
+}
+
+export async function getDockerContainerDatabases(container, password = null) {
+ const headers = password ? { 'X-DB-Password': password } : {};
+ return this.request(`/databases/docker/${container}/databases`, { headers });
+}
+
+export async function getDockerDatabaseTables(container, database, password = null) {
+ const headers = password ? { 'X-DB-Password': password } : {};
+ return this.request(`/databases/docker/${container}/${database}/tables`, { headers });
+}
+
+export async function executeDockerQuery(container, database, query, password = null, readonly = true) {
+ const headers = password ? { 'X-DB-Password': password } : {};
+ return this.request(`/databases/docker/${container}/${database}/query`, {
+ method: 'POST',
+ body: { query, readonly, password },
+ headers
+ });
+}
+
+// Database Migrations
+export async function getMigrationStatus() {
+ return this.request('/migrations/status');
+}
+
+export async function createMigrationBackup() {
+ return this.request('/migrations/backup', { method: 'POST' });
+}
+
+export async function applyMigrations() {
+ return this.request('/migrations/apply', { method: 'POST' });
+}
+
+export async function getMigrationHistory() {
+ return this.request('/migrations/history');
+}
diff --git a/frontend/src/services/api/docker.js b/frontend/src/services/api/docker.js
new file mode 100644
index 00000000..40f7e6a9
--- /dev/null
+++ b/frontend/src/services/api/docker.js
@@ -0,0 +1,211 @@
+// Docker containers, images, volumes, networks, compose operations
+
+// Docker status
+export async function getDockerStatus() {
+ return this.request('/docker/status');
+}
+
+export async function getDockerInfo() {
+ return this.request('/docker/info');
+}
+
+export async function getDockerDiskUsage() {
+ return this.request('/docker/disk-usage');
+}
+
+// Containers
+export async function getContainers(all = true) {
+ return this.request(`/docker/containers?all=${all}`);
+}
+
+export async function getContainer(containerId) {
+ return this.request(`/docker/containers/${containerId}`);
+}
+
+export async function createContainer(data) {
+ return this.request('/docker/containers', {
+ method: 'POST',
+ body: data
+ });
+}
+
+export async function runContainer(data) {
+ return this.request('/docker/containers/run', {
+ method: 'POST',
+ body: data
+ });
+}
+
+export async function startContainer(containerId) {
+ return this.request(`/docker/containers/${containerId}/start`, { method: 'POST' });
+}
+
+export async function stopContainer(containerId, timeout = 10) {
+ return this.request(`/docker/containers/${containerId}/stop`, {
+ method: 'POST',
+ body: { timeout }
+ });
+}
+
+export async function restartContainer(containerId, timeout = 10) {
+ return this.request(`/docker/containers/${containerId}/restart`, {
+ method: 'POST',
+ body: { timeout }
+ });
+}
+
+export async function removeContainer(containerId, force = false, volumes = false) {
+ return this.request(`/docker/containers/${containerId}`, {
+ method: 'DELETE',
+ body: { force, volumes }
+ });
+}
+
+export async function getContainerLogs(containerId, tail = 100, since = null) {
+ const params = new URLSearchParams({ tail });
+ if (since) params.append('since', since);
+ return this.request(`/docker/containers/${containerId}/logs?${params}`);
+}
+
+export async function getContainerStats(containerId) {
+ return this.request(`/docker/containers/${containerId}/stats`);
+}
+
+export async function execContainer(containerId, command) {
+ return this.request(`/docker/containers/${containerId}/exec`, {
+ method: 'POST',
+ body: { command }
+ });
+}
+
+// Images
+export async function getImages() {
+ return this.request('/docker/images');
+}
+
+export async function pullImage(image, tag = 'latest') {
+ return this.request('/docker/images/pull', {
+ method: 'POST',
+ body: { image, tag }
+ });
+}
+
+export async function removeImage(imageId, force = false) {
+ return this.request(`/docker/images/${imageId}`, {
+ method: 'DELETE',
+ body: { force }
+ });
+}
+
+export async function buildImage(path, tag, dockerfile = 'Dockerfile', noCache = false) {
+ return this.request('/docker/images/build', {
+ method: 'POST',
+ body: { path, tag, dockerfile, no_cache: noCache }
+ });
+}
+
+// Networks
+export async function getNetworks() {
+ return this.request('/docker/networks');
+}
+
+export async function createNetwork(name, driver = 'bridge') {
+ return this.request('/docker/networks', {
+ method: 'POST',
+ body: { name, driver }
+ });
+}
+
+export async function removeNetwork(networkId) {
+ return this.request(`/docker/networks/${networkId}`, { method: 'DELETE' });
+}
+
+// Volumes
+export async function getVolumes() {
+ return this.request('/docker/volumes');
+}
+
+export async function createVolume(name, driver = 'local') {
+ return this.request('/docker/volumes', {
+ method: 'POST',
+ body: { name, driver }
+ });
+}
+
+export async function removeVolume(volumeName, force = false) {
+ return this.request(`/docker/volumes/${volumeName}`, {
+ method: 'DELETE',
+ body: { force }
+ });
+}
+
+// Docker Compose
+export async function composeUp(path, detach = true, build = false) {
+ return this.request('/docker/compose/up', {
+ method: 'POST',
+ body: { path, detach, build }
+ });
+}
+
+export async function composeDown(path, volumes = false, removeOrphans = true) {
+ return this.request('/docker/compose/down', {
+ method: 'POST',
+ body: { path, volumes, remove_orphans: removeOrphans }
+ });
+}
+
+export async function composePs(path) {
+ return this.request('/docker/compose/ps', {
+ method: 'POST',
+ body: { path }
+ });
+}
+
+export async function composeLogs(path, service = null, tail = 100) {
+ return this.request('/docker/compose/logs', {
+ method: 'POST',
+ body: { path, service, tail }
+ });
+}
+
+export async function composeRestart(path, service = null) {
+ return this.request('/docker/compose/restart', {
+ method: 'POST',
+ body: { path, service }
+ });
+}
+
+export async function composePull(path, service = null) {
+ return this.request('/docker/compose/pull', {
+ method: 'POST',
+ body: { path, service }
+ });
+}
+
+// Docker App
+export async function createDockerApp(data) {
+ return this.request('/docker/apps', {
+ method: 'POST',
+ body: data
+ });
+}
+
+export async function pruneDocker(all = false, volumes = false) {
+ return this.request('/docker/prune', {
+ method: 'POST',
+ body: { all, volumes }
+ });
+}
+
+export async function dockerCleanup(includeVolumes = false) {
+ return this.request('/docker/cleanup', {
+ method: 'POST',
+ body: { volumes: includeVolumes }
+ });
+}
+
+export async function cleanupAllApps() {
+ return this.request('/docker/cleanup/apps', {
+ method: 'POST'
+ });
+}
diff --git a/frontend/src/services/api/files.js b/frontend/src/services/api/files.js
new file mode 100644
index 00000000..63936c88
--- /dev/null
+++ b/frontend/src/services/api/files.js
@@ -0,0 +1,549 @@
+// File manager, FTP, Git server, domains, DNS zones, status pages
+
+// File Manager endpoints
+export async function browseFiles(path = '/home', showHidden = false) {
+ const params = new URLSearchParams({ path, show_hidden: showHidden });
+ return this.request(`/files/browse?${params}`);
+}
+
+export async function getFileInfo(path) {
+ return this.request(`/files/info?path=${encodeURIComponent(path)}`);
+}
+
+export async function readFile(path) {
+ return this.request(`/files/read?path=${encodeURIComponent(path)}`);
+}
+
+export async function writeFile(path, content, createBackup = true) {
+ return this.request('/files/write', {
+ method: 'POST',
+ body: { path, content, create_backup: createBackup }
+ });
+}
+
+export async function createFile(path, content = '') {
+ return this.request('/files/create', {
+ method: 'POST',
+ body: { path, content }
+ });
+}
+
+export async function createDirectory(path) {
+ return this.request('/files/mkdir', {
+ method: 'POST',
+ body: { path }
+ });
+}
+
+export async function deleteFile(path) {
+ return this.request(`/files/delete?path=${encodeURIComponent(path)}`, {
+ method: 'DELETE'
+ });
+}
+
+export async function renameFile(path, newName) {
+ return this.request('/files/rename', {
+ method: 'POST',
+ body: { path, new_name: newName }
+ });
+}
+
+export async function copyFile(src, dest) {
+ return this.request('/files/copy', {
+ method: 'POST',
+ body: { src, dest }
+ });
+}
+
+export async function moveFile(src, dest) {
+ return this.request('/files/move', {
+ method: 'POST',
+ body: { src, dest }
+ });
+}
+
+export async function changeFilePermissions(path, mode) {
+ return this.request('/files/chmod', {
+ method: 'POST',
+ body: { path, mode }
+ });
+}
+
+export async function searchFiles(directory, pattern, maxResults = 100) {
+ const params = new URLSearchParams({ directory, pattern, max_results: maxResults });
+ return this.request(`/files/search?${params}`);
+}
+
+export async function getDiskUsage(path = '/') {
+ return this.request(`/files/disk-usage?path=${encodeURIComponent(path)}`);
+}
+
+export async function getAllDiskMounts() {
+ return this.request('/files/disk-mounts');
+}
+
+export async function analyzeDirectory(path = '/home', depth = 2, limit = 20) {
+ const params = new URLSearchParams({ path, depth, limit });
+ return this.request(`/files/analyze?${params}`);
+}
+
+export async function getFileTypeBreakdown(path = '/home', maxDepth = 3) {
+ const params = new URLSearchParams({ path, max_depth: maxDepth });
+ return this.request(`/files/type-breakdown?${params}`);
+}
+
+export async function downloadFile(path) {
+ const token = this.getToken();
+ const url = `${this.baseUrl}/files/download?path=${encodeURIComponent(path)}`;
+ window.open(`${url}&token=${token}`, '_blank');
+}
+
+export async function uploadFile(destination, file, onProgress = null) {
+ const token = this.getToken();
+ const formData = new FormData();
+ formData.append('file', file);
+ formData.append('destination', destination);
+
+ return new Promise((resolve, reject) => {
+ const xhr = new XMLHttpRequest();
+ xhr.open('POST', `${this.baseUrl}/files/upload`);
+ xhr.setRequestHeader('Authorization', `Bearer ${token}`);
+
+ if (onProgress) {
+ xhr.upload.onprogress = (e) => {
+ if (e.lengthComputable) {
+ onProgress((e.loaded / e.total) * 100);
+ }
+ };
+ }
+
+ xhr.onload = () => {
+ if (xhr.status >= 200 && xhr.status < 300) {
+ resolve(JSON.parse(xhr.responseText));
+ } else {
+ reject(new Error(JSON.parse(xhr.responseText).error || 'Upload failed'));
+ }
+ };
+
+ xhr.onerror = () => reject(new Error('Upload failed'));
+ xhr.send(formData);
+ });
+}
+
+// FTP Server endpoints
+export async function getFTPStatus() {
+ return this.request('/ftp/status');
+}
+
+export async function controlFTPService(action, service = null) {
+ return this.request(`/ftp/service/${action}`, {
+ method: 'POST',
+ body: service ? { service } : {}
+ });
+}
+
+export async function getFTPConfig(service = null) {
+ const params = service ? `?service=${service}` : '';
+ return this.request(`/ftp/config${params}`);
+}
+
+export async function updateFTPConfig(config, service = null) {
+ return this.request('/ftp/config', {
+ method: 'POST',
+ body: { config, service }
+ });
+}
+
+export async function getFTPUsers() {
+ return this.request('/ftp/users');
+}
+
+export async function createFTPUser(username, password = null, homeDir = null) {
+ return this.request('/ftp/users', {
+ method: 'POST',
+ body: { username, password, home_dir: homeDir }
+ });
+}
+
+export async function deleteFTPUser(username, deleteHome = false) {
+ const params = deleteHome ? '?delete_home=true' : '';
+ return this.request(`/ftp/users/${username}${params}`, {
+ method: 'DELETE'
+ });
+}
+
+export async function changeFTPPassword(username, password = null) {
+ return this.request(`/ftp/users/${username}/password`, {
+ method: 'POST',
+ body: password ? { password } : {}
+ });
+}
+
+export async function toggleFTPUser(username, enabled) {
+ return this.request(`/ftp/users/${username}/toggle`, {
+ method: 'POST',
+ body: { enabled }
+ });
+}
+
+export async function getFTPConnections() {
+ return this.request('/ftp/connections');
+}
+
+export async function disconnectFTPSession(pid) {
+ return this.request(`/ftp/connections/${pid}`, {
+ method: 'DELETE'
+ });
+}
+
+export async function getFTPLogs(lines = 100) {
+ return this.request(`/ftp/logs?lines=${lines}`);
+}
+
+export async function installFTPServer(service = 'vsftpd') {
+ return this.request('/ftp/install', {
+ method: 'POST',
+ body: { service }
+ });
+}
+
+export async function testFTPConnection(host = 'localhost', port = 21, username = null, password = null) {
+ return this.request('/ftp/test', {
+ method: 'POST',
+ body: { host, port, username, password }
+ });
+}
+
+// Git Server endpoints
+export async function getGitServerStatus() {
+ return this.request('/git/status');
+}
+
+export async function getGitRequirements() {
+ return this.request('/git/requirements');
+}
+
+export async function installGit(data) {
+ return this.request('/git/install', {
+ method: 'POST',
+ body: data
+ });
+}
+
+export async function uninstallGit(removeData = false) {
+ return this.request('/git/uninstall', {
+ method: 'POST',
+ body: { removeData }
+ });
+}
+
+export async function startGit() {
+ return this.request('/git/start', { method: 'POST' });
+}
+
+export async function stopGit() {
+ return this.request('/git/stop', { method: 'POST' });
+}
+
+export async function restartGit() {
+ return this.request('/git/restart', { method: 'POST' });
+}
+
+// Git Webhooks
+export async function getWebhooks() {
+ return this.request('/git/webhooks');
+}
+
+export async function getWebhook(webhookId) {
+ return this.request(`/git/webhooks/${webhookId}`);
+}
+
+export async function createWebhook(data) {
+ return this.request('/git/webhooks', {
+ method: 'POST',
+ body: data
+ });
+}
+
+export async function updateWebhook(webhookId, data) {
+ return this.request(`/git/webhooks/${webhookId}`, {
+ method: 'PUT',
+ body: data
+ });
+}
+
+export async function deleteWebhook(webhookId) {
+ return this.request(`/git/webhooks/${webhookId}`, { method: 'DELETE' });
+}
+
+export async function toggleWebhook(webhookId) {
+ return this.request(`/git/webhooks/${webhookId}/toggle`, { method: 'POST' });
+}
+
+export async function getGitWebhookLogs(webhookId, limit = 50) {
+ return this.request(`/git/webhooks/${webhookId}/logs?limit=${limit}`);
+}
+
+export async function testWebhook(webhookId) {
+ return this.request(`/git/webhooks/${webhookId}/test`, { method: 'POST' });
+}
+
+// Git Repositories
+export async function getRepositories(limit = 50) {
+ return this.request(`/git/repos?limit=${limit}`);
+}
+
+export async function getRepository(owner, repo) {
+ return this.request(`/git/repos/${owner}/${repo}`);
+}
+
+export async function getRepoStats(owner, repo) {
+ return this.request(`/git/repos/${owner}/${repo}/stats`);
+}
+
+export async function getBranches(owner, repo) {
+ return this.request(`/git/repos/${owner}/${repo}/branches`);
+}
+
+export async function getBranch(owner, repo, branch) {
+ return this.request(`/git/repos/${owner}/${repo}/branches/${branch}`);
+}
+
+export async function getCommits(owner, repo, branch = null, page = 1, limit = 30) {
+ let url = `/git/repos/${owner}/${repo}/commits?page=${page}&limit=${limit}`;
+ if (branch) url += `&branch=${branch}`;
+ return this.request(url);
+}
+
+export async function getCommit(owner, repo, sha) {
+ return this.request(`/git/repos/${owner}/${repo}/commits/${sha}`);
+}
+
+export async function getRepoFiles(owner, repo, ref = 'main', path = '') {
+ let url = `/git/repos/${owner}/${repo}/contents?ref=${ref}`;
+ if (path) url += `&path=${path}`;
+ return this.request(url);
+}
+
+export async function getFileContent(owner, repo, filepath, ref = 'main') {
+ return this.request(`/git/repos/${owner}/${repo}/contents/${filepath}?ref=${ref}`);
+}
+
+export async function getRepoReadme(owner, repo, ref = null) {
+ let url = `/git/repos/${owner}/${repo}/readme`;
+ if (ref) url += `?ref=${ref}`;
+ return this.request(url);
+}
+
+export async function getGiteaVersion() {
+ return this.request('/git/version');
+}
+
+// Git Deployments
+export async function getAppDeployments(appId, limit = 20) {
+ return this.request(`/git/deployments/app/${appId}?limit=${limit}`);
+}
+
+export async function getDeployment(deploymentId, includeLogs = false) {
+ return this.request(`/git/deployments/${deploymentId}?logs=${includeLogs}`);
+}
+
+export async function triggerGitDeploy(appId, branch = null) {
+ return this.request(`/git/deployments/app/${appId}/deploy`, {
+ method: 'POST',
+ body: branch ? { branch } : {}
+ });
+}
+
+export async function rollbackDeployment(appId, targetVersion = null) {
+ return this.request(`/git/deployments/app/${appId}/rollback`, {
+ method: 'POST',
+ body: targetVersion ? { targetVersion } : {}
+ });
+}
+
+export async function getWebhookDeployments(webhookId, limit = 20) {
+ return this.request(`/git/deployments/webhook/${webhookId}?limit=${limit}`);
+}
+
+// Domains endpoints
+export async function getDomains() {
+ return this.request('/domains');
+}
+
+export async function getDomain(id) {
+ return this.request(`/domains/${id}`);
+}
+
+export async function createDomain(domainData) {
+ return this.request('/domains', {
+ method: 'POST',
+ body: domainData,
+ });
+}
+
+export async function updateDomain(id, domainData) {
+ return this.request(`/domains/${id}`, {
+ method: 'PUT',
+ body: domainData,
+ });
+}
+
+export async function deleteDomain(id) {
+ return this.request(`/domains/${id}`, {
+ method: 'DELETE',
+ });
+}
+
+export async function enableSsl(domainId, email) {
+ return this.request(`/domains/${domainId}/ssl/enable`, {
+ method: 'POST',
+ body: { email }
+ });
+}
+
+export async function disableSsl(domainId) {
+ return this.request(`/domains/${domainId}/ssl/disable`, { method: 'POST' });
+}
+
+export async function renewDomainSsl(domainId) {
+ return this.request(`/domains/${domainId}/ssl/renew`, { method: 'POST' });
+}
+
+export async function verifyDomain(domainId) {
+ return this.request(`/domains/${domainId}/verify`);
+}
+
+export async function getDomainsNginxSites() {
+ return this.request('/domains/nginx/sites');
+}
+
+export async function getDomainsSslStatus() {
+ return this.request('/domains/ssl/status');
+}
+
+// DNS Zones endpoints
+export async function getDNSZones() {
+ return this.request('/dns/');
+}
+
+export async function getDNSZone(id) {
+ return this.request(`/dns/${id}`);
+}
+
+export async function createDNSZone(data) {
+ return this.request('/dns/', { method: 'POST', body: data });
+}
+
+export async function deleteDNSZone(id) {
+ return this.request(`/dns/${id}`, { method: 'DELETE' });
+}
+
+export async function getDNSRecords(zoneId) {
+ return this.request(`/dns/${zoneId}/records`);
+}
+
+export async function createDNSRecord(zoneId, data) {
+ return this.request(`/dns/${zoneId}/records`, { method: 'POST', body: data });
+}
+
+export async function updateDNSRecord(recordId, data) {
+ return this.request(`/dns/records/${recordId}`, { method: 'PUT', body: data });
+}
+
+export async function deleteDNSRecord(recordId) {
+ return this.request(`/dns/records/${recordId}`, { method: 'DELETE' });
+}
+
+export async function getDNSPresets() {
+ return this.request('/dns/presets');
+}
+
+export async function applyDNSPreset(zoneId, preset, variables) {
+ return this.request(`/dns/${zoneId}/apply-preset`, {
+ method: 'POST', body: { preset, variables }
+ });
+}
+
+export async function checkDNSPropagation(domain, type = 'A') {
+ return this.request(`/dns/propagation/${domain}?type=${type}`);
+}
+
+export async function exportDNSZone(zoneId) {
+ return this.request(`/dns/${zoneId}/export`);
+}
+
+export async function importDNSZone(zoneId, zoneFile) {
+ return this.request(`/dns/${zoneId}/import`, {
+ method: 'POST', body: { zone_file: zoneFile }
+ });
+}
+
+// Status Pages endpoints
+export async function getStatusPages() {
+ return this.request('/status/');
+}
+
+export async function getStatusPage(id) {
+ return this.request(`/status/${id}`);
+}
+
+export async function createStatusPage(data) {
+ return this.request('/status/', { method: 'POST', body: data });
+}
+
+export async function updateStatusPage(id, data) {
+ return this.request(`/status/${id}`, { method: 'PUT', body: data });
+}
+
+export async function deleteStatusPage(id) {
+ return this.request(`/status/${id}`, { method: 'DELETE' });
+}
+
+export async function getPublicStatusPage(slug) {
+ return this.request(`/status/public/${slug}`);
+}
+
+export async function getStatusPageComponents(pageId) {
+ return this.request(`/status/${pageId}/components`);
+}
+
+export async function createStatusComponent(pageId, data) {
+ return this.request(`/status/${pageId}/components`, { method: 'POST', body: data });
+}
+
+export async function updateStatusComponent(compId, data) {
+ return this.request(`/status/components/${compId}`, { method: 'PUT', body: data });
+}
+
+export async function deleteStatusComponent(compId) {
+ return this.request(`/status/components/${compId}`, { method: 'DELETE' });
+}
+
+export async function runStatusCheck(compId) {
+ return this.request(`/status/components/${compId}/check`, { method: 'POST' });
+}
+
+export async function getStatusCheckHistory(compId, hours = 24) {
+ return this.request(`/status/components/${compId}/history?hours=${hours}`);
+}
+
+export async function getStatusPageIncidents(pageId) {
+ return this.request(`/status/${pageId}/incidents`);
+}
+
+export async function createStatusIncident(pageId, data) {
+ return this.request(`/status/${pageId}/incidents`, { method: 'POST', body: data });
+}
+
+export async function updateStatusIncident(incidentId, data) {
+ return this.request(`/status/incidents/${incidentId}`, { method: 'PUT', body: data });
+}
+
+export async function deleteStatusIncident(incidentId) {
+ return this.request(`/status/incidents/${incidentId}`, { method: 'DELETE' });
+}
+
+export async function getStatusBadge(slug) {
+ return this.request(`/status/badge/${slug}`);
+}
diff --git a/frontend/src/services/api/security.js b/frontend/src/services/api/security.js
new file mode 100644
index 00000000..1528d03b
--- /dev/null
+++ b/frontend/src/services/api/security.js
@@ -0,0 +1,361 @@
+// Firewall, fail2ban, SSL certificates, ClamAV, file integrity,
+// SSH keys, IP lists, security audit, Lynis, auto-updates
+
+// Firewall endpoints
+export async function getFirewallStatus() {
+ return this.request('/firewall/status');
+}
+
+export async function enableFirewall(firewall = null) {
+ return this.request('/firewall/enable', {
+ method: 'POST',
+ body: firewall ? { firewall } : {}
+ });
+}
+
+export async function disableFirewall(firewall = null) {
+ return this.request('/firewall/disable', {
+ method: 'POST',
+ body: firewall ? { firewall } : {}
+ });
+}
+
+export async function getFirewallRules(firewall = null) {
+ const params = firewall ? `?firewall=${firewall}` : '';
+ return this.request(`/firewall/rules${params}`);
+}
+
+export async function addFirewallRule(ruleData) {
+ return this.request('/firewall/rules', {
+ method: 'POST',
+ body: ruleData
+ });
+}
+
+export async function removeFirewallRule(ruleData) {
+ return this.request('/firewall/rules', {
+ method: 'DELETE',
+ body: ruleData
+ });
+}
+
+export async function blockIP(ip, permanent = true) {
+ return this.request('/firewall/block-ip', {
+ method: 'POST',
+ body: { ip, permanent }
+ });
+}
+
+export async function unblockIP(ip, permanent = true) {
+ return this.request('/firewall/unblock-ip', {
+ method: 'POST',
+ body: { ip, permanent }
+ });
+}
+
+export async function getBlockedIPs() {
+ return this.request('/firewall/blocked-ips');
+}
+
+export async function allowPort(port, protocol = 'tcp', permanent = true) {
+ return this.request('/firewall/allow-port', {
+ method: 'POST',
+ body: { port, protocol, permanent }
+ });
+}
+
+export async function denyPort(port, protocol = 'tcp', permanent = true) {
+ return this.request('/firewall/deny-port', {
+ method: 'POST',
+ body: { port, protocol, permanent }
+ });
+}
+
+export async function getFirewallZones() {
+ return this.request('/firewall/zones');
+}
+
+export async function setDefaultZone(zone) {
+ return this.request('/firewall/zones/default', {
+ method: 'POST',
+ body: { zone }
+ });
+}
+
+export async function installFirewall(firewall = 'ufw') {
+ return this.request('/firewall/install', {
+ method: 'POST',
+ body: { firewall }
+ });
+}
+
+// SSL endpoints
+export async function getSSLStatus() {
+ return this.request('/ssl/status');
+}
+
+export async function getCertificates() {
+ return this.request('/ssl/certificates');
+}
+
+export async function obtainCertificate(data) {
+ return this.request('/ssl/certificates', {
+ method: 'POST',
+ body: data
+ });
+}
+
+export async function renewCertificate(domain) {
+ return this.request(`/ssl/certificates/${domain}/renew`, { method: 'POST' });
+}
+
+export async function renewAllCertificates() {
+ return this.request('/ssl/certificates/renew-all', { method: 'POST' });
+}
+
+export async function revokeCertificate(domain) {
+ return this.request(`/ssl/certificates/${domain}`, { method: 'DELETE' });
+}
+
+export async function setupAutoRenewal() {
+ return this.request('/ssl/auto-renewal', { method: 'POST' });
+}
+
+export async function installCertbot() {
+ return this.request('/ssl/install-certbot', { method: 'POST' });
+}
+
+// Advanced SSL endpoints
+export async function getSSLProfiles() {
+ return this.request('/ssl/advanced/profiles');
+}
+
+export async function issueWildcardCert(domain, dnsProvider, credentials) {
+ return this.request('/ssl/advanced/wildcard', {
+ method: 'POST', body: { domain, dns_provider: dnsProvider, credentials }
+ });
+}
+
+export async function issueSANCert(domains) {
+ return this.request('/ssl/advanced/san', {
+ method: 'POST', body: { domains }
+ });
+}
+
+export async function uploadCustomCert(domain, certificate, privateKey, chain) {
+ return this.request('/ssl/advanced/upload', {
+ method: 'POST', body: { domain, certificate, private_key: privateKey, chain }
+ });
+}
+
+export async function getSSLHealth(domain) {
+ return this.request(`/ssl/advanced/health/${domain}`);
+}
+
+export async function getSSLExpiryAlerts(days = 30) {
+ return this.request(`/ssl/advanced/expiry-alerts?days=${days}`);
+}
+
+// Security (ClamAV, File Integrity) endpoints
+export async function getSecurityStatus() {
+ return this.request('/security/status');
+}
+
+export async function getSecurityConfig() {
+ return this.request('/security/config');
+}
+
+export async function updateSecurityConfig(config) {
+ return this.request('/security/config', {
+ method: 'PUT',
+ body: config
+ });
+}
+
+export async function getClamAVStatus() {
+ return this.request('/security/clamav/status');
+}
+
+export async function installClamAV() {
+ return this.request('/security/clamav/install', { method: 'POST' });
+}
+
+export async function updateVirusDefinitions() {
+ return this.request('/security/clamav/update', { method: 'POST' });
+}
+
+export async function scanFile(path) {
+ return this.request('/security/scan/file', {
+ method: 'POST',
+ body: { path }
+ });
+}
+
+export async function scanDirectory(path, recursive = true) {
+ return this.request('/security/scan/directory', {
+ method: 'POST',
+ body: { path, recursive }
+ });
+}
+
+export async function getScanStatus() {
+ return this.request('/security/scan/status');
+}
+
+export async function cancelScan() {
+ return this.request('/security/scan/cancel', { method: 'POST' });
+}
+
+export async function getScanHistory(limit = 50) {
+ return this.request(`/security/scan/history?limit=${limit}`);
+}
+
+export async function runQuickScan() {
+ return this.request('/security/scan/quick', { method: 'POST' });
+}
+
+export async function runFullScan() {
+ return this.request('/security/scan/full', { method: 'POST' });
+}
+
+export async function getQuarantinedFiles() {
+ return this.request('/security/quarantine');
+}
+
+export async function quarantineFile(path) {
+ return this.request('/security/quarantine', {
+ method: 'POST',
+ body: { path }
+ });
+}
+
+export async function deleteQuarantinedFile(filename) {
+ return this.request(`/security/quarantine/${encodeURIComponent(filename)}`, {
+ method: 'DELETE'
+ });
+}
+
+export async function initializeIntegrityDatabase(paths = null) {
+ return this.request('/security/integrity/initialize', {
+ method: 'POST',
+ body: paths ? { paths } : {}
+ });
+}
+
+export async function checkFileIntegrity() {
+ return this.request('/security/integrity/check');
+}
+
+export async function getFailedLogins(hours = 24) {
+ return this.request(`/security/failed-logins?hours=${hours}`);
+}
+
+export async function getSecurityEvents(limit = 100) {
+ return this.request(`/security/events?limit=${limit}`);
+}
+
+// Fail2ban endpoints
+export async function getFail2banStatus() {
+ return this.request('/security/fail2ban/status');
+}
+
+export async function installFail2ban() {
+ return this.request('/security/fail2ban/install', { method: 'POST' });
+}
+
+export async function getFail2banJailStatus(jail) {
+ return this.request(`/security/fail2ban/jails/${jail}`);
+}
+
+export async function getAllFail2banBans() {
+ return this.request('/security/fail2ban/bans');
+}
+
+export async function fail2banUnban(ip, jail = null) {
+ return this.request('/security/fail2ban/unban', {
+ method: 'POST',
+ body: { ip, jail }
+ });
+}
+
+export async function fail2banBan(ip, jail = 'sshd') {
+ return this.request('/security/fail2ban/ban', {
+ method: 'POST',
+ body: { ip, jail }
+ });
+}
+
+// SSH Key endpoints
+export async function getSSHKeys(user = 'root') {
+ return this.request(`/security/ssh-keys?user=${user}`);
+}
+
+export async function addSSHKey(key, user = 'root') {
+ return this.request('/security/ssh-keys', {
+ method: 'POST',
+ body: { key, user }
+ });
+}
+
+export async function removeSSHKey(keyId, user = 'root') {
+ return this.request(`/security/ssh-keys/${keyId}?user=${user}`, {
+ method: 'DELETE'
+ });
+}
+
+// IP Lists endpoints
+export async function getIPLists() {
+ return this.request('/security/ip-lists');
+}
+
+export async function addToIPList(ip, listType, comment = '') {
+ return this.request(`/security/ip-lists/${listType}`, {
+ method: 'POST',
+ body: { ip, comment }
+ });
+}
+
+export async function removeFromIPList(ip, listType) {
+ return this.request(`/security/ip-lists/${listType}/${encodeURIComponent(ip)}`, {
+ method: 'DELETE'
+ });
+}
+
+// Security Audit endpoints
+export async function generateSecurityAudit() {
+ return this.request('/security/audit');
+}
+
+// Lynis (Vulnerability Scanning) endpoints
+export async function getLynisStatus() {
+ return this.request('/security/lynis/status');
+}
+
+export async function installLynis() {
+ return this.request('/security/lynis/install', { method: 'POST' });
+}
+
+export async function runLynisScan() {
+ return this.request('/security/lynis/scan', { method: 'POST' });
+}
+
+export async function getLynisScanStatus() {
+ return this.request('/security/lynis/scan/status');
+}
+
+// Auto Updates endpoints
+export async function getAutoUpdatesStatus() {
+ return this.request('/security/auto-updates/status');
+}
+
+export async function installAutoUpdates() {
+ return this.request('/security/auto-updates/install', { method: 'POST' });
+}
+
+export async function enableAutoUpdates() {
+ return this.request('/security/auto-updates/enable', { method: 'POST' });
+}
+
+export async function disableAutoUpdates() {
+ return this.request('/security/auto-updates/disable', { method: 'POST' });
+}
diff --git a/frontend/src/services/api/servers.js b/frontend/src/services/api/servers.js
new file mode 100644
index 00000000..404560f6
--- /dev/null
+++ b/frontend/src/services/api/servers.js
@@ -0,0 +1,749 @@
+// Server management, remote Docker, fleet management, terminals, cloud provisioning
+
+// Servers (Multi-Server Management) endpoints
+export async function getServers() {
+ return this.request('/servers');
+}
+
+export async function getServer(id) {
+ return this.request(`/servers/${id}`);
+}
+
+export async function createServer(data) {
+ return this.request('/servers', {
+ method: 'POST',
+ body: data
+ });
+}
+
+export async function updateServer(id, data) {
+ return this.request(`/servers/${id}`, {
+ method: 'PUT',
+ body: data
+ });
+}
+
+export async function deleteServer(id) {
+ return this.request(`/servers/${id}`, {
+ method: 'DELETE'
+ });
+}
+
+export async function getServerStatus(id) {
+ return this.request(`/servers/${id}/status`);
+}
+
+export async function getServerMetrics(id) {
+ return this.request(`/servers/${id}/metrics`);
+}
+
+export async function pingServer(id) {
+ return this.request(`/servers/${id}/ping`, {
+ method: 'POST'
+ });
+}
+
+// Server Registration
+export async function generateRegistrationToken(serverId) {
+ return this.request(`/servers/${serverId}/regenerate-token`, {
+ method: 'POST'
+ });
+}
+
+export async function registerServer(registrationData) {
+ return this.request('/servers/register', {
+ method: 'POST',
+ body: registrationData
+ });
+}
+
+// Server Groups
+export async function getServerGroups() {
+ return this.request('/servers/groups');
+}
+
+export async function createServerGroup(data) {
+ return this.request('/servers/groups', {
+ method: 'POST',
+ body: data
+ });
+}
+
+export async function updateServerGroup(id, data) {
+ return this.request(`/servers/groups/${id}`, {
+ method: 'PUT',
+ body: data
+ });
+}
+
+export async function deleteServerGroup(id) {
+ return this.request(`/servers/groups/${id}`, {
+ method: 'DELETE'
+ });
+}
+
+// Remote Docker Operations (via agent)
+export async function getRemoteContainers(serverId, all = false) {
+ return this.request(`/servers/${serverId}/docker/containers?all=${all}`);
+}
+
+export async function getRemoteContainer(serverId, containerId) {
+ return this.request(`/servers/${serverId}/docker/containers/${containerId}`);
+}
+
+export async function startRemoteContainer(serverId, containerId) {
+ return this.request(`/servers/${serverId}/docker/containers/${containerId}/start`, {
+ method: 'POST'
+ });
+}
+
+export async function stopRemoteContainer(serverId, containerId) {
+ return this.request(`/servers/${serverId}/docker/containers/${containerId}/stop`, {
+ method: 'POST'
+ });
+}
+
+export async function restartRemoteContainer(serverId, containerId) {
+ return this.request(`/servers/${serverId}/docker/containers/${containerId}/restart`, {
+ method: 'POST'
+ });
+}
+
+export async function removeRemoteContainer(serverId, containerId, force = false) {
+ return this.request(`/servers/${serverId}/docker/containers/${containerId}?force=${force}`, {
+ method: 'DELETE'
+ });
+}
+
+export async function getRemoteContainerStats(serverId, containerId) {
+ return this.request(`/servers/${serverId}/docker/containers/${containerId}/stats`);
+}
+
+export async function getRemoteContainerLogs(serverId, containerId, tail = 100, since = null) {
+ const params = new URLSearchParams({ tail });
+ if (since) params.append('since', since);
+ return this.request(`/servers/${serverId}/docker/containers/${containerId}/logs?${params}`);
+}
+
+export async function getRemoteImages(serverId) {
+ return this.request(`/servers/${serverId}/docker/images`);
+}
+
+export async function pullRemoteImage(serverId, image) {
+ return this.request(`/servers/${serverId}/docker/images/pull`, {
+ method: 'POST',
+ body: { image }
+ });
+}
+
+export async function removeRemoteImage(serverId, imageId, force = false) {
+ return this.request(`/servers/${serverId}/docker/images/${imageId}?force=${force}`, {
+ method: 'DELETE'
+ });
+}
+
+export async function getRemoteVolumes(serverId) {
+ return this.request(`/servers/${serverId}/docker/volumes`);
+}
+
+export async function getRemoteNetworks(serverId) {
+ return this.request(`/servers/${serverId}/docker/networks`);
+}
+
+export async function getRemoteSystemMetrics(serverId) {
+ return this.request(`/servers/${serverId}/system/metrics`);
+}
+
+export async function getRemoteSystemInfo(serverId) {
+ return this.request(`/servers/${serverId}/system/info`);
+}
+
+// Get available servers for Docker operations
+export async function getAvailableServers() {
+ return this.request('/servers/available');
+}
+
+// Remote Docker Compose Operations
+export async function getRemoteComposeProjects(serverId) {
+ return this.request(`/servers/${serverId}/docker/compose/projects`);
+}
+
+export async function getRemoteComposePs(serverId, projectPath) {
+ return this.request(`/servers/${serverId}/docker/compose/ps`, {
+ method: 'POST',
+ body: { project_path: projectPath }
+ });
+}
+
+export async function remoteComposeUp(serverId, projectPath, options = {}) {
+ return this.request(`/servers/${serverId}/docker/compose/up`, {
+ method: 'POST',
+ body: {
+ project_path: projectPath,
+ detach: options.detach !== false,
+ build: options.build || false
+ }
+ });
+}
+
+export async function remoteComposeDown(serverId, projectPath, options = {}) {
+ return this.request(`/servers/${serverId}/docker/compose/down`, {
+ method: 'POST',
+ body: {
+ project_path: projectPath,
+ volumes: options.volumes || false,
+ remove_orphans: options.removeOrphans !== false
+ }
+ });
+}
+
+export async function remoteComposeLogs(serverId, projectPath, service = null, tail = 100) {
+ return this.request(`/servers/${serverId}/docker/compose/logs`, {
+ method: 'POST',
+ body: {
+ project_path: projectPath,
+ service: service,
+ tail: tail
+ }
+ });
+}
+
+export async function remoteComposeRestart(serverId, projectPath, service = null) {
+ return this.request(`/servers/${serverId}/docker/compose/restart`, {
+ method: 'POST',
+ body: {
+ project_path: projectPath,
+ service: service
+ }
+ });
+}
+
+export async function remoteComposePull(serverId, projectPath, service = null) {
+ return this.request(`/servers/${serverId}/docker/compose/pull`, {
+ method: 'POST',
+ body: {
+ project_path: projectPath,
+ service: service
+ }
+ });
+}
+
+// Server Historical Metrics
+export async function getServerMetricsHistory(serverId, period = '24h') {
+ return this.request(`/servers/${serverId}/metrics/history?period=${period}`);
+}
+
+export async function getServerMetricsAggregated(serverId, period = '24h', aggregation = 'hourly') {
+ return this.request(`/servers/${serverId}/metrics/aggregated?period=${period}&aggregation=${aggregation}`);
+}
+
+export async function compareServerMetrics(serverIds, metric = 'cpu', period = '24h') {
+ const ids = Array.isArray(serverIds) ? serverIds.join(',') : serverIds;
+ return this.request(`/servers/metrics/compare?ids=${ids}&metric=${metric}&period=${period}`);
+}
+
+export async function getMetricsRetentionStats() {
+ return this.request('/servers/metrics/retention');
+}
+
+export async function triggerMetricsCleanup() {
+ return this.request('/servers/metrics/cleanup', { method: 'POST' });
+}
+
+// Remote Terminal
+export async function createTerminalSession(serverId, cols = 80, rows = 24) {
+ return this.request(`/servers/${serverId}/terminal`, {
+ method: 'POST',
+ body: { cols, rows }
+ });
+}
+
+export async function sendTerminalInput(sessionId, data) {
+ return this.request(`/servers/terminal/${sessionId}/input`, {
+ method: 'POST',
+ body: { data }
+ });
+}
+
+export async function resizeTerminal(sessionId, cols, rows) {
+ return this.request(`/servers/terminal/${sessionId}/resize`, {
+ method: 'POST',
+ body: { cols, rows }
+ });
+}
+
+export async function closeTerminalSession(sessionId) {
+ return this.request(`/servers/terminal/${sessionId}`, {
+ method: 'DELETE'
+ });
+}
+
+export async function listTerminalSessions() {
+ return this.request('/servers/terminal/sessions');
+}
+
+// Security Features (per-server)
+export async function getAllowedIPs(serverId) {
+ return this.request(`/servers/${serverId}/allowed-ips`);
+}
+
+export async function updateAllowedIPs(serverId, allowedIPs) {
+ return this.request(`/servers/${serverId}/allowed-ips`, {
+ method: 'PUT',
+ body: { allowed_ips: allowedIPs }
+ });
+}
+
+export async function getConnectionInfo(serverId) {
+ return this.request(`/servers/${serverId}/connection-info`);
+}
+
+export async function rotateAPIKey(serverId) {
+ return this.request(`/servers/${serverId}/rotate-api-key`, {
+ method: 'POST'
+ });
+}
+
+export async function getServerSecurityAlerts(serverId, options = {}) {
+ const params = new URLSearchParams();
+ if (options.status) params.append('status', options.status);
+ if (options.severity) params.append('severity', options.severity);
+ if (options.limit) params.append('limit', options.limit);
+ const query = params.toString() ? `?${params.toString()}` : '';
+ return this.request(`/servers/${serverId}/security/alerts${query}`);
+}
+
+export async function getAllSecurityAlerts(options = {}) {
+ const params = new URLSearchParams();
+ if (options.status) params.append('status', options.status);
+ if (options.severity) params.append('severity', options.severity);
+ if (options.type) params.append('type', options.type);
+ if (options.limit) params.append('limit', options.limit);
+ const query = params.toString() ? `?${params.toString()}` : '';
+ return this.request(`/servers/security/alerts${query}`);
+}
+
+export async function getSecurityAlertCounts(serverId = null) {
+ const query = serverId ? `?server_id=${serverId}` : '';
+ return this.request(`/servers/security/alerts/counts${query}`);
+}
+
+export async function acknowledgeAlert(alertId) {
+ return this.request(`/servers/security/alerts/${alertId}/acknowledge`, {
+ method: 'POST'
+ });
+}
+
+export async function resolveAlert(alertId) {
+ return this.request(`/servers/security/alerts/${alertId}/resolve`, {
+ method: 'POST'
+ });
+}
+
+// Agent Downloads
+export async function getAgentVersion() {
+ return this.request('/servers/agent/version');
+}
+
+export async function getAgentDownloadUrl(os, arch) {
+ const baseUrl = this.baseUrl.replace('/api/v1', '');
+ return `${baseUrl}/api/servers/agent/download/${os}/${arch}`;
+}
+
+// Agent Fleet Management endpoints
+export async function getFleetHealth() {
+ return this.request('/servers/fleet/health');
+}
+
+export async function getAgentVersions() {
+ return this.request('/servers/fleet/versions');
+}
+
+export async function addAgentVersion(data) {
+ return this.request('/servers/fleet/versions', {
+ method: 'POST',
+ body: data
+ });
+}
+
+export async function upgradeFleet(serverIds, versionId) {
+ return this.request('/servers/fleet/upgrade', {
+ method: 'POST',
+ body: { server_ids: serverIds, version_id: versionId }
+ });
+}
+
+export async function startRollout(data) {
+ return this.request('/servers/fleet/rollout', {
+ method: 'POST',
+ body: data
+ });
+}
+
+export async function getRollouts(status) {
+ const query = status ? `?status=${status}` : '';
+ return this.request(`/servers/fleet/rollouts${query}`);
+}
+
+export async function getRollout(rolloutId) {
+ return this.request(`/servers/fleet/rollouts/${rolloutId}`);
+}
+
+export async function cancelRollout(rolloutId) {
+ return this.request(`/servers/fleet/rollouts/${rolloutId}/cancel`, {
+ method: 'POST'
+ });
+}
+
+export async function startDiscovery(duration = 10) {
+ return this.request(`/servers/fleet/discovery?duration=${duration}`, {
+ method: 'POST'
+ });
+}
+
+export async function getDiscoveredAgents() {
+ return this.request('/servers/fleet/discovery');
+}
+
+export async function approveRegistration(serverId) {
+ return this.request(`/servers/fleet/approve/${serverId}`, {
+ method: 'POST'
+ });
+}
+
+export async function rejectRegistration(serverId) {
+ return this.request(`/servers/fleet/reject/${serverId}`, {
+ method: 'POST'
+ });
+}
+
+export async function getQueuedCommands(serverId) {
+ const query = serverId ? `?server_id=${serverId}` : '';
+ return this.request(`/servers/fleet/commands/queued${query}`);
+}
+
+export async function retryCommand(commandId) {
+ return this.request(`/servers/fleet/commands/${commandId}/retry`, {
+ method: 'POST'
+ });
+}
+
+export async function getServerDiagnostics(serverId) {
+ return this.request(`/servers/fleet/diagnostics/${serverId}`);
+}
+
+// Fleet Monitor (Cross-Server Monitoring) endpoints
+export async function getFleetHeatmap(groupId) {
+ const query = groupId ? `?group_id=${groupId}` : '';
+ return this.request(`/fleet-monitor/heatmap${query}`);
+}
+
+export async function getFleetComparison(serverIds, metric, period) {
+ const ids = serverIds.join(',');
+ return this.request(`/fleet-monitor/comparison?ids=${ids}&metric=${metric}&period=${period}`);
+}
+
+export async function getFleetAlerts(params = {}) {
+ const searchParams = new URLSearchParams();
+ if (params.status) searchParams.append('status', params.status);
+ if (params.severity) searchParams.append('severity', params.severity);
+ if (params.server_id) searchParams.append('server_id', params.server_id);
+ if (params.limit) searchParams.append('limit', params.limit);
+ const query = searchParams.toString();
+ return this.request(`/fleet-monitor/alerts${query ? '?' + query : ''}`);
+}
+
+export async function acknowledgeFleetAlert(alertId) {
+ return this.request(`/fleet-monitor/alerts/${alertId}/acknowledge`, { method: 'POST' });
+}
+
+export async function resolveFleetAlert(alertId) {
+ return this.request(`/fleet-monitor/alerts/${alertId}/resolve`, { method: 'POST' });
+}
+
+export async function getFleetThresholds(serverId) {
+ const query = serverId ? `?server_id=${serverId}` : '';
+ return this.request(`/fleet-monitor/thresholds${query}`);
+}
+
+export async function createFleetThreshold(data) {
+ return this.request('/fleet-monitor/thresholds', { method: 'POST', body: data });
+}
+
+export async function deleteFleetThreshold(thresholdId) {
+ return this.request(`/fleet-monitor/thresholds/${thresholdId}`, { method: 'DELETE' });
+}
+
+export async function getFleetAnomalies(serverId) {
+ const query = serverId ? `?server_id=${serverId}` : '';
+ return this.request(`/fleet-monitor/anomalies${query}`);
+}
+
+export async function getCapacityForecast(serverId, metric = 'disk') {
+ return this.request(`/fleet-monitor/forecast/${serverId}?metric=${metric}`);
+}
+
+export async function searchFleet(query, type = 'any') {
+ return this.request(`/fleet-monitor/search?q=${encodeURIComponent(query)}&type=${type}`);
+}
+
+export async function exportFleetCsv(serverIds, metric, period) {
+ const ids = serverIds.join(',');
+ const url = `${this.baseUrl}/fleet-monitor/export/csv?ids=${ids}&metric=${metric}&period=${period}`;
+ const token = this.getToken();
+ const response = await fetch(url, {
+ headers: token ? { Authorization: `Bearer ${token}` } : {}
+ });
+ return response.blob();
+}
+
+// Agent Plugins endpoints
+export async function getAgentPlugins(status) {
+ const query = status ? `?status=${status}` : '';
+ return this.request(`/agent-plugins/${query}`);
+}
+
+export async function getAgentPlugin(id) {
+ return this.request(`/agent-plugins/${id}`);
+}
+
+export async function createAgentPlugin(data) {
+ return this.request('/agent-plugins/', { method: 'POST', body: data });
+}
+
+export async function updateAgentPlugin(id, data) {
+ return this.request(`/agent-plugins/${id}`, { method: 'PUT', body: data });
+}
+
+export async function deleteAgentPlugin(id) {
+ return this.request(`/agent-plugins/${id}`, { method: 'DELETE' });
+}
+
+export async function installAgentPlugin(pluginId, serverId, config) {
+ return this.request(`/agent-plugins/${pluginId}/install`, {
+ method: 'POST', body: { server_id: serverId, config }
+ });
+}
+
+export async function bulkInstallAgentPlugin(pluginId, serverIds, config) {
+ return this.request(`/agent-plugins/${pluginId}/bulk-install`, {
+ method: 'POST', body: { server_ids: serverIds, config }
+ });
+}
+
+export async function getPluginInstallations(pluginId) {
+ return this.request(`/agent-plugins/${pluginId}/installations`);
+}
+
+export async function getServerPlugins(serverId) {
+ return this.request(`/agent-plugins/server/${serverId}`);
+}
+
+export async function enablePluginInstall(installId) {
+ return this.request(`/agent-plugins/installs/${installId}/enable`, { method: 'POST' });
+}
+
+export async function disablePluginInstall(installId) {
+ return this.request(`/agent-plugins/installs/${installId}/disable`, { method: 'POST' });
+}
+
+export async function uninstallPlugin(installId) {
+ return this.request(`/agent-plugins/installs/${installId}`, { method: 'DELETE' });
+}
+
+export async function updatePluginInstallConfig(installId, config) {
+ return this.request(`/agent-plugins/installs/${installId}/config`, {
+ method: 'PUT', body: { config }
+ });
+}
+
+export async function getPluginSpec() {
+ return this.request('/agent-plugins/spec');
+}
+
+// Server Templates endpoints
+export async function getServerTemplates(category) {
+ const query = category ? `?category=${category}` : '';
+ return this.request(`/server-templates/${query}`);
+}
+
+export async function getServerTemplate(id) {
+ return this.request(`/server-templates/${id}`);
+}
+
+export async function getServerTemplateLibrary() {
+ return this.request('/server-templates/library');
+}
+
+export async function createServerTemplateFromLibrary(key) {
+ return this.request(`/server-templates/library/${key}`, { method: 'POST' });
+}
+
+export async function createServerTemplate(data) {
+ return this.request('/server-templates/', { method: 'POST', body: data });
+}
+
+export async function updateServerTemplate(id, data) {
+ return this.request(`/server-templates/${id}`, { method: 'PUT', body: data });
+}
+
+export async function deleteServerTemplate(id) {
+ return this.request(`/server-templates/${id}`, { method: 'DELETE' });
+}
+
+export async function assignServerTemplate(templateId, serverId) {
+ return this.request(`/server-templates/${templateId}/assign`, {
+ method: 'POST', body: { server_id: serverId }
+ });
+}
+
+export async function bulkAssignTemplate(templateId, serverIds) {
+ return this.request(`/server-templates/${templateId}/bulk-assign`, {
+ method: 'POST', body: { server_ids: serverIds }
+ });
+}
+
+export async function getTemplateAssignments(templateId) {
+ return this.request(`/server-templates/${templateId}/assignments`);
+}
+
+export async function unassignTemplate(assignmentId) {
+ return this.request(`/server-templates/assignments/${assignmentId}`, { method: 'DELETE' });
+}
+
+export async function checkTemplateDrift(assignmentId) {
+ return this.request(`/server-templates/assignments/${assignmentId}/check`, { method: 'POST' });
+}
+
+export async function remediateTemplateDrift(assignmentId) {
+ return this.request(`/server-templates/assignments/${assignmentId}/remediate`, { method: 'POST' });
+}
+
+export async function getTemplateCompliance() {
+ return this.request('/server-templates/compliance');
+}
+
+export async function getServerTemplateAssignments(serverId) {
+ return this.request(`/server-templates/server/${serverId}`);
+}
+
+// Workspaces endpoints
+export async function getWorkspaces(params = {}) {
+ const query = new URLSearchParams();
+ if (params.all) query.append('all', 'true');
+ if (params.include_archived) query.append('include_archived', 'true');
+ const qs = query.toString();
+ return this.request(`/workspaces/${qs ? '?' + qs : ''}`);
+}
+
+export async function getWorkspace(id) {
+ return this.request(`/workspaces/${id}`);
+}
+
+export async function createWorkspace(data) {
+ return this.request('/workspaces/', { method: 'POST', body: data });
+}
+
+export async function updateWorkspace(id, data) {
+ return this.request(`/workspaces/${id}`, { method: 'PUT', body: data });
+}
+
+export async function archiveWorkspace(id) {
+ return this.request(`/workspaces/${id}/archive`, { method: 'POST' });
+}
+
+export async function restoreWorkspace(id) {
+ return this.request(`/workspaces/${id}/restore`, { method: 'POST' });
+}
+
+export async function deleteWorkspace(id) {
+ return this.request(`/workspaces/${id}`, { method: 'DELETE' });
+}
+
+export async function getWorkspaceMembers(workspaceId) {
+ return this.request(`/workspaces/${workspaceId}/members`);
+}
+
+export async function addWorkspaceMember(workspaceId, userId, role) {
+ return this.request(`/workspaces/${workspaceId}/members`, {
+ method: 'POST', body: { user_id: userId, role: role || 'member' }
+ });
+}
+
+export async function updateWorkspaceMemberRole(memberId, role) {
+ return this.request(`/workspaces/members/${memberId}/role`, {
+ method: 'PUT', body: { role }
+ });
+}
+
+export async function removeWorkspaceMember(memberId) {
+ return this.request(`/workspaces/members/${memberId}`, { method: 'DELETE' });
+}
+
+export async function getWorkspaceApiKeys(workspaceId) {
+ return this.request(`/workspaces/${workspaceId}/api-keys`);
+}
+
+export async function createWorkspaceApiKey(workspaceId, name, scopes) {
+ return this.request(`/workspaces/${workspaceId}/api-keys`, {
+ method: 'POST', body: { name, scopes }
+ });
+}
+
+export async function revokeWorkspaceApiKey(keyId) {
+ return this.request(`/workspaces/api-keys/${keyId}/revoke`, { method: 'POST' });
+}
+
+// Cloud Provisioning endpoints
+export async function getCloudProviders() {
+ return this.request('/cloud/providers');
+}
+
+export async function createCloudProvider(data) {
+ return this.request('/cloud/providers', { method: 'POST', body: data });
+}
+
+export async function deleteCloudProvider(id) {
+ return this.request(`/cloud/providers/${id}`, { method: 'DELETE' });
+}
+
+export async function getCloudProviderOptions(type) {
+ return this.request(`/cloud/providers/${type}/options`);
+}
+
+export async function getCloudServers(providerId) {
+ const query = providerId ? `?provider_id=${providerId}` : '';
+ return this.request(`/cloud/servers${query}`);
+}
+
+export async function getCloudServer(id) {
+ return this.request(`/cloud/servers/${id}`);
+}
+
+export async function createCloudServer(data) {
+ return this.request('/cloud/servers', { method: 'POST', body: data });
+}
+
+export async function destroyCloudServer(id) {
+ return this.request(`/cloud/servers/${id}`, { method: 'DELETE' });
+}
+
+export async function resizeCloudServer(id, size) {
+ return this.request(`/cloud/servers/${id}/resize`, { method: 'POST', body: { size } });
+}
+
+export async function getCloudSnapshots(serverId) {
+ return this.request(`/cloud/servers/${serverId}/snapshots`);
+}
+
+export async function createCloudSnapshot(serverId, name) {
+ return this.request(`/cloud/servers/${serverId}/snapshots`, { method: 'POST', body: { name } });
+}
+
+export async function deleteCloudSnapshot(id) {
+ return this.request(`/cloud/snapshots/${id}`, { method: 'DELETE' });
+}
+
+export async function getCloudCosts() {
+ return this.request('/cloud/costs');
+}
diff --git a/frontend/src/services/api/system.js b/frontend/src/services/api/system.js
new file mode 100644
index 00000000..e0e43ed6
--- /dev/null
+++ b/frontend/src/services/api/system.js
@@ -0,0 +1,857 @@
+// System info, settings, processes, nginx, PHP, Python, logs, cron,
+// monitoring, backups, uptime, metrics, notifications, email, performance, mobile
+
+// Admin - System Settings endpoints
+export async function getSystemSettings() {
+ const data = await this.request('/admin/settings');
+ const result = {};
+ if (data.settings && Array.isArray(data.settings)) {
+ for (const setting of data.settings) {
+ result[setting.key] = setting.value;
+ }
+ }
+ return result;
+}
+
+export async function updateSystemSettings(settings) {
+ return this.request('/admin/settings', {
+ method: 'PUT',
+ body: settings
+ });
+}
+
+export async function getSystemSetting(key) {
+ return this.request(`/admin/settings/${key}`);
+}
+
+export async function updateSystemSetting(key, value) {
+ return this.request(`/admin/settings/${key}`, {
+ method: 'PUT',
+ body: { value }
+ });
+}
+
+export async function getAdminStats() {
+ return this.request('/admin/stats');
+}
+
+// System endpoints
+export async function getSystemMetrics() {
+ return this.request('/system/metrics');
+}
+
+export async function getSystemInfo() {
+ return this.request('/system/info');
+}
+
+export async function getServerTime() {
+ return this.request('/system/time');
+}
+
+export async function getTimezones() {
+ return this.request('/system/timezones');
+}
+
+export async function setTimezone(timezone) {
+ return this.request('/system/timezone', {
+ method: 'PUT',
+ body: { timezone }
+ });
+}
+
+export async function getVersion() {
+ return this.request('/system/version');
+}
+
+export async function checkUpdate() {
+ return this.request('/system/check-update');
+}
+
+export async function getSystemProcesses() {
+ return this.request('/system/processes');
+}
+
+export async function getServices() {
+ return this.request('/system/services');
+}
+
+export async function healthCheck() {
+ return this.request('/system/health');
+}
+
+// Process endpoints
+export async function getProcesses(limit = 50, sortBy = 'cpu') {
+ return this.request(`/processes?limit=${limit}&sort=${sortBy}`);
+}
+
+export async function getProcess(pid) {
+ return this.request(`/processes/${pid}`);
+}
+
+export async function killProcess(pid, force = false) {
+ return this.request(`/processes/${pid}?force=${force}`, { method: 'DELETE' });
+}
+
+export async function getServicesStatus() {
+ return this.request('/processes/services');
+}
+
+export async function controlService(serviceName, action) {
+ return this.request(`/processes/services/${serviceName}`, {
+ method: 'POST',
+ body: { action }
+ });
+}
+
+// Nginx endpoints
+export async function getNginxStatus() {
+ return this.request('/nginx/status');
+}
+
+export async function testNginxConfig() {
+ return this.request('/nginx/test', { method: 'POST' });
+}
+
+export async function reloadNginx() {
+ return this.request('/nginx/reload', { method: 'POST' });
+}
+
+export async function getNginxSites() {
+ return this.request('/nginx/sites');
+}
+
+export async function createNginxSite(siteData) {
+ return this.request('/nginx/sites', {
+ method: 'POST',
+ body: siteData
+ });
+}
+
+export async function enableNginxSite(name) {
+ return this.request(`/nginx/sites/${name}/enable`, { method: 'POST' });
+}
+
+export async function disableNginxSite(name) {
+ return this.request(`/nginx/sites/${name}/disable`, { method: 'POST' });
+}
+
+export async function deleteNginxSite(name) {
+ return this.request(`/nginx/sites/${name}`, { method: 'DELETE' });
+}
+
+// Nginx Advanced endpoints
+export async function getNginxProxyRules(domain) {
+ return this.request(`/nginx/advanced/proxy/${domain}`);
+}
+
+export async function createNginxProxy(data) {
+ return this.request('/nginx/advanced/proxy', { method: 'POST', body: data });
+}
+
+export async function testAdvancedNginxConfig() {
+ return this.request('/nginx/advanced/test', { method: 'POST' });
+}
+
+export async function reloadAdvancedNginx() {
+ return this.request('/nginx/advanced/reload', { method: 'POST' });
+}
+
+export async function previewNginxDiff(domain, config) {
+ return this.request('/nginx/advanced/diff', {
+ method: 'POST', body: { domain, config }
+ });
+}
+
+export async function getNginxVhostLogs(domain, type = 'access', lines = 100) {
+ return this.request(`/nginx/advanced/logs/${domain}?type=${type}&lines=${lines}`);
+}
+
+export async function getNginxLBMethods() {
+ return this.request('/nginx/advanced/lb-methods');
+}
+
+// Log endpoints
+export async function getLogFiles() {
+ return this.request('/logs');
+}
+
+export async function readLog(filepath, lines = 100) {
+ return this.request(`/logs/read?path=${encodeURIComponent(filepath)}&lines=${lines}`);
+}
+
+export async function searchLog(filepath, pattern, lines = 100) {
+ return this.request(`/logs/search?path=${encodeURIComponent(filepath)}&pattern=${encodeURIComponent(pattern)}&lines=${lines}`);
+}
+
+export async function getAppLogs(appName, type = 'access', lines = 100) {
+ return this.request(`/logs/app/${appName}?type=${type}&lines=${lines}`);
+}
+
+export async function getJournalLogs(unit, lines = 100) {
+ const params = new URLSearchParams({ lines });
+ if (unit) params.append('unit', unit);
+ return this.request(`/logs/journal?${params}`);
+}
+
+export async function clearLog(filepath) {
+ return this.request('/logs/clear', {
+ method: 'POST',
+ body: { path: filepath }
+ });
+}
+
+// PHP endpoints
+export async function getPHPVersions() {
+ return this.request('/php/versions');
+}
+
+export async function installPHPVersion(version) {
+ return this.request(`/php/versions/${version}/install`, { method: 'POST' });
+}
+
+export async function setDefaultPHPVersion(version) {
+ return this.request('/php/versions/default', {
+ method: 'POST',
+ body: { version }
+ });
+}
+
+export async function getPHPExtensions(version) {
+ return this.request(`/php/versions/${version}/extensions`);
+}
+
+export async function installPHPExtension(version, extension) {
+ return this.request(`/php/versions/${version}/extensions`, {
+ method: 'POST',
+ body: { extension }
+ });
+}
+
+export async function getPHPPools(version) {
+ return this.request(`/php/versions/${version}/pools`);
+}
+
+export async function createPHPPool(version, poolData) {
+ return this.request(`/php/versions/${version}/pools`, {
+ method: 'POST',
+ body: poolData
+ });
+}
+
+export async function deletePHPPool(version, poolName) {
+ return this.request(`/php/versions/${version}/pools/${poolName}`, { method: 'DELETE' });
+}
+
+export async function restartPHPFPM(version) {
+ return this.request(`/php/versions/${version}/fpm/restart`, { method: 'POST' });
+}
+
+export async function getPHPFPMStatus(version) {
+ return this.request(`/php/versions/${version}/fpm/status`);
+}
+
+// Python endpoints
+export async function getPythonVersions() {
+ return this.request('/python/versions');
+}
+
+export async function createFlaskApp(data) {
+ return this.request('/python/apps/flask', {
+ method: 'POST',
+ body: data
+ });
+}
+
+export async function createDjangoApp(data) {
+ return this.request('/python/apps/django', {
+ method: 'POST',
+ body: data
+ });
+}
+
+export async function createPythonVenv(appId) {
+ return this.request(`/python/apps/${appId}/venv`, { method: 'POST' });
+}
+
+export async function getPythonPackages(appId) {
+ return this.request(`/python/apps/${appId}/packages`);
+}
+
+export async function installPythonPackages(appId, packages) {
+ return this.request(`/python/apps/${appId}/packages`, {
+ method: 'POST',
+ body: { packages }
+ });
+}
+
+export async function freezePythonRequirements(appId) {
+ return this.request(`/python/apps/${appId}/requirements`, { method: 'POST' });
+}
+
+export async function getPythonEnvVars(appId) {
+ return this.request(`/python/apps/${appId}/env`);
+}
+
+export async function setPythonEnvVars(appId, envVars) {
+ return this.request(`/python/apps/${appId}/env`, {
+ method: 'PUT',
+ body: { env_vars: envVars }
+ });
+}
+
+export async function deletePythonEnvVar(appId, key) {
+ return this.request(`/python/apps/${appId}/env/${key}`, { method: 'DELETE' });
+}
+
+export async function startPythonApp(appId) {
+ return this.request(`/python/apps/${appId}/start`, { method: 'POST' });
+}
+
+export async function stopPythonApp(appId) {
+ return this.request(`/python/apps/${appId}/stop`, { method: 'POST' });
+}
+
+export async function restartPythonApp(appId) {
+ return this.request(`/python/apps/${appId}/restart`, { method: 'POST' });
+}
+
+export async function getPythonAppStatus(appId) {
+ return this.request(`/python/apps/${appId}/status`);
+}
+
+export async function getGunicornConfig(appId) {
+ return this.request(`/python/apps/${appId}/gunicorn`);
+}
+
+export async function updateGunicornConfig(appId, content) {
+ return this.request(`/python/apps/${appId}/gunicorn`, {
+ method: 'PUT',
+ body: { content }
+ });
+}
+
+export async function runPythonMigrations(appId) {
+ return this.request(`/python/apps/${appId}/migrate`, { method: 'POST' });
+}
+
+export async function collectPythonStatic(appId) {
+ return this.request(`/python/apps/${appId}/collectstatic`, { method: 'POST' });
+}
+
+export async function runPythonCommand(appId, command) {
+ return this.request(`/python/apps/${appId}/run`, {
+ method: 'POST',
+ body: { command }
+ });
+}
+
+export async function deletePythonApp(appId, removeFiles = false) {
+ return this.request(`/python/apps/${appId}`, {
+ method: 'DELETE',
+ body: { remove_files: removeFiles }
+ });
+}
+
+// Monitoring & Alerts endpoints
+export async function getMonitoringStatus() {
+ return this.request('/monitoring/status');
+}
+
+export async function getMonitoringMetrics() {
+ return this.request('/monitoring/metrics');
+}
+
+export async function checkAlerts() {
+ return this.request('/monitoring/alerts/check');
+}
+
+export async function getAlertHistory(limit = 100) {
+ return this.request(`/monitoring/alerts/history?limit=${limit}`);
+}
+
+export async function getMonitoringConfig() {
+ return this.request('/monitoring/config');
+}
+
+export async function updateMonitoringConfig(config) {
+ return this.request('/monitoring/config', {
+ method: 'PUT',
+ body: config
+ });
+}
+
+export async function getMonitoringThresholds() {
+ return this.request('/monitoring/thresholds');
+}
+
+export async function updateMonitoringThresholds(thresholds) {
+ return this.request('/monitoring/thresholds', {
+ method: 'PUT',
+ body: thresholds
+ });
+}
+
+export async function startMonitoring() {
+ return this.request('/monitoring/start', { method: 'POST' });
+}
+
+export async function stopMonitoring() {
+ return this.request('/monitoring/stop', { method: 'POST' });
+}
+
+export async function testEmailAlert(email) {
+ return this.request('/monitoring/test/email', {
+ method: 'POST',
+ body: { email }
+ });
+}
+
+export async function testWebhookAlert(webhookUrl) {
+ return this.request('/monitoring/test/webhook', {
+ method: 'POST',
+ body: { webhook_url: webhookUrl }
+ });
+}
+
+// Backup System endpoints
+export async function getBackups(type = null) {
+ const params = type ? `?type=${type}` : '';
+ return this.request(`/backups${params}`);
+}
+
+export async function getBackupStats() {
+ return this.request('/backups/stats');
+}
+
+export async function getBackupConfig() {
+ return this.request('/backups/config');
+}
+
+export async function updateBackupConfig(config) {
+ return this.request('/backups/config', {
+ method: 'PUT',
+ body: config
+ });
+}
+
+export async function backupApplication(applicationId, includeDb = false, dbConfig = null) {
+ return this.request('/backups/application', {
+ method: 'POST',
+ body: {
+ application_id: applicationId,
+ include_db: includeDb,
+ db_config: dbConfig
+ }
+ });
+}
+
+export async function backupDatabase(dbType, dbName, user = null, password = null, host = 'localhost') {
+ return this.request('/backups/database', {
+ method: 'POST',
+ body: { db_type: dbType, db_name: dbName, user, password, host }
+ });
+}
+
+export async function restoreApplication(backupPath, restorePath = null) {
+ return this.request('/backups/restore/application', {
+ method: 'POST',
+ body: { backup_path: backupPath, restore_path: restorePath }
+ });
+}
+
+export async function restoreDatabase(backupPath, dbType, dbName, user = null, password = null, host = 'localhost') {
+ return this.request('/backups/restore/database', {
+ method: 'POST',
+ body: { backup_path: backupPath, db_type: dbType, db_name: dbName, user, password, host }
+ });
+}
+
+export async function deleteBackup(backupPath) {
+ return this.request(`/backups/${encodeURIComponent(backupPath)}`, { method: 'DELETE' });
+}
+
+export async function cleanupBackups(retentionDays = null) {
+ return this.request('/backups/cleanup', {
+ method: 'POST',
+ body: retentionDays ? { retention_days: retentionDays } : {}
+ });
+}
+
+export async function getBackupSchedules() {
+ return this.request('/backups/schedules');
+}
+
+export async function addBackupSchedule(name, backupType, target, scheduleTime, days = null, uploadRemote = false) {
+ return this.request('/backups/schedules', {
+ method: 'POST',
+ body: { name, backup_type: backupType, target, schedule_time: scheduleTime, days, upload_remote: uploadRemote }
+ });
+}
+
+export async function updateBackupSchedule(scheduleId, updates) {
+ return this.request(`/backups/schedules/${scheduleId}`, {
+ method: 'PUT',
+ body: updates
+ });
+}
+
+export async function removeBackupSchedule(scheduleId) {
+ return this.request(`/backups/schedules/${scheduleId}`, { method: 'DELETE' });
+}
+
+export async function backupFiles(filePaths, name = null) {
+ return this.request('/backups/files', {
+ method: 'POST',
+ body: { paths: filePaths, name }
+ });
+}
+
+// Remote Storage
+export async function getStorageConfig() {
+ return this.request('/backups/storage');
+}
+
+export async function updateStorageConfig(config) {
+ return this.request('/backups/storage', {
+ method: 'PUT',
+ body: config
+ });
+}
+
+export async function testStorageConnection(config = null) {
+ return this.request('/backups/storage/test', {
+ method: 'POST',
+ body: config || {}
+ });
+}
+
+export async function uploadBackupToRemote(backupPath) {
+ return this.request('/backups/upload', {
+ method: 'POST',
+ body: { backup_path: backupPath }
+ });
+}
+
+export async function verifyRemoteBackup(remoteKey, localPath) {
+ return this.request('/backups/verify', {
+ method: 'POST',
+ body: { remote_key: remoteKey, local_path: localPath }
+ });
+}
+
+export async function listRemoteBackups(prefix = null) {
+ const params = prefix ? `?prefix=${encodeURIComponent(prefix)}` : '';
+ return this.request(`/backups/remote${params}`);
+}
+
+export async function downloadRemoteBackup(remoteKey, localPath = null) {
+ return this.request('/backups/remote/download', {
+ method: 'POST',
+ body: { remote_key: remoteKey, local_path: localPath }
+ });
+}
+
+// Cron Job endpoints
+export async function getCronStatus() {
+ return this.request('/cron/status');
+}
+
+export async function getCronJobs() {
+ return this.request('/cron/jobs');
+}
+
+export async function createCronJob(data) {
+ return this.request('/cron/jobs', {
+ method: 'POST',
+ body: data
+ });
+}
+
+export async function updateCronJob(jobId, data) {
+ return this.request(`/cron/jobs/${jobId}`, {
+ method: 'PUT',
+ body: data
+ });
+}
+
+export async function deleteCronJob(jobId) {
+ return this.request(`/cron/jobs/${jobId}`, { method: 'DELETE' });
+}
+
+export async function toggleCronJob(jobId, enabled) {
+ return this.request(`/cron/jobs/${jobId}/toggle`, {
+ method: 'POST',
+ body: { enabled }
+ });
+}
+
+export async function runCronJob(jobId) {
+ return this.request(`/cron/jobs/${jobId}/run`, { method: 'POST' });
+}
+
+export async function getCronPresets() {
+ return this.request('/cron/presets');
+}
+
+// Uptime Tracking endpoints
+export async function getCurrentUptime() {
+ return this.request('/uptime/current');
+}
+
+export async function getUptimeStats() {
+ return this.request('/uptime/stats');
+}
+
+export async function getUptimeGraph(period = '24h') {
+ return this.request(`/uptime/graph?period=${period}`);
+}
+
+export async function getUptimeHistory(hours = 24) {
+ return this.request(`/uptime/history?hours=${hours}`);
+}
+
+export async function startUptimeTracking() {
+ return this.request('/uptime/tracking/start', { method: 'POST' });
+}
+
+export async function stopUptimeTracking() {
+ return this.request('/uptime/tracking/stop', { method: 'POST' });
+}
+
+export async function getUptimeTrackingStatus() {
+ return this.request('/uptime/tracking/status');
+}
+
+// Metrics History endpoints
+export async function getMetricsHistory(period = '1h') {
+ return this.request(`/metrics/history?period=${period}`);
+}
+
+export async function getMetricsStats() {
+ return this.request('/metrics/stats');
+}
+
+export async function startMetricsCollection() {
+ return this.request('/metrics/collection/start', { method: 'POST' });
+}
+
+export async function stopMetricsCollection() {
+ return this.request('/metrics/collection/stop', { method: 'POST' });
+}
+
+export async function triggerMetricsAggregation() {
+ return this.request('/metrics/aggregate', { method: 'POST' });
+}
+
+// Notification Webhooks endpoints
+export async function getNotificationsStatus() {
+ return this.request('/notifications/status');
+}
+
+export async function getNotificationsConfig() {
+ return this.request('/notifications/config');
+}
+
+export async function updateNotificationChannel(channel, settings) {
+ return this.request(`/notifications/config/${channel}`, {
+ method: 'PUT',
+ body: settings
+ });
+}
+
+export async function testNotificationChannel(channel) {
+ return this.request(`/notifications/test/${channel}`, {
+ method: 'POST'
+ });
+}
+
+export async function testAllNotifications() {
+ return this.request('/notifications/test', {
+ method: 'POST'
+ });
+}
+
+// User notification preferences
+export async function getUserNotificationPreferences() {
+ return this.request('/notifications/preferences');
+}
+
+export async function updateUserNotificationPreferences(preferences) {
+ return this.request('/notifications/preferences', {
+ method: 'PUT',
+ body: preferences
+ });
+}
+
+export async function testUserNotification() {
+ return this.request('/notifications/preferences/test', {
+ method: 'POST'
+ });
+}
+
+// Email Server
+export async function getEmailStatus() { return this.request('/email/status'); }
+export async function installEmailServer(data = {}) { return this.request('/email/install', { method: 'POST', body: JSON.stringify(data) }); }
+export async function controlEmailService(component, action) { return this.request(`/email/service/${component}/${action}`, { method: 'POST' }); }
+
+// Email Domains
+export async function getEmailDomains() { return this.request('/email/domains'); }
+export async function addEmailDomain(data) { return this.request('/email/domains', { method: 'POST', body: JSON.stringify(data) }); }
+export async function getEmailDomain(domainId) { return this.request(`/email/domains/${domainId}`); }
+export async function deleteEmailDomain(domainId) { return this.request(`/email/domains/${domainId}`, { method: 'DELETE' }); }
+export async function verifyEmailDNS(domainId) { return this.request(`/email/domains/${domainId}/verify-dns`, { method: 'POST' }); }
+export async function deployEmailDNS(domainId) { return this.request(`/email/domains/${domainId}/deploy-dns`, { method: 'POST' }); }
+
+// Email Accounts
+export async function getEmailAccounts(domainId) { return this.request(`/email/domains/${domainId}/accounts`); }
+export async function createEmailAccount(domainId, data) { return this.request(`/email/domains/${domainId}/accounts`, { method: 'POST', body: JSON.stringify(data) }); }
+export async function getEmailAccount(accountId) { return this.request(`/email/accounts/${accountId}`); }
+export async function updateEmailAccount(accountId, data) { return this.request(`/email/accounts/${accountId}`, { method: 'PUT', body: JSON.stringify(data) }); }
+export async function deleteEmailAccount(accountId) { return this.request(`/email/accounts/${accountId}`, { method: 'DELETE' }); }
+export async function changeEmailPassword(accountId, password) { return this.request(`/email/accounts/${accountId}/password`, { method: 'POST', body: JSON.stringify({ password }) }); }
+
+// Email Aliases
+export async function getEmailAliases(domainId) { return this.request(`/email/domains/${domainId}/aliases`); }
+export async function createEmailAlias(domainId, data) { return this.request(`/email/domains/${domainId}/aliases`, { method: 'POST', body: JSON.stringify(data) }); }
+export async function deleteEmailAlias(aliasId) { return this.request(`/email/aliases/${aliasId}`, { method: 'DELETE' }); }
+
+// Email Forwarding
+export async function getEmailForwarding(accountId) { return this.request(`/email/accounts/${accountId}/forwarding`); }
+export async function createEmailForwarding(accountId, data) { return this.request(`/email/accounts/${accountId}/forwarding`, { method: 'POST', body: JSON.stringify(data) }); }
+export async function updateEmailForwarding(ruleId, data) { return this.request(`/email/forwarding/${ruleId}`, { method: 'PUT', body: JSON.stringify(data) }); }
+export async function deleteEmailForwarding(ruleId) { return this.request(`/email/forwarding/${ruleId}`, { method: 'DELETE' }); }
+
+// DNS Providers
+export async function getEmailDNSProviders() { return this.request('/email/dns-providers'); }
+export async function addEmailDNSProvider(data) { return this.request('/email/dns-providers', { method: 'POST', body: JSON.stringify(data) }); }
+export async function deleteEmailDNSProvider(providerId) { return this.request(`/email/dns-providers/${providerId}`, { method: 'DELETE' }); }
+export async function testEmailDNSProvider(providerId) { return this.request(`/email/dns-providers/${providerId}/test`, { method: 'POST' }); }
+export async function getEmailDNSZones(providerId) { return this.request(`/email/dns-providers/${providerId}/zones`); }
+
+// SpamAssassin
+export async function getSpamConfig() { return this.request('/email/spam/config'); }
+export async function updateSpamConfig(data) { return this.request('/email/spam/config', { method: 'PUT', body: JSON.stringify(data) }); }
+export async function updateSpamRules() { return this.request('/email/spam/update-rules', { method: 'POST' }); }
+
+// Roundcube Webmail
+export async function getWebmailStatus() { return this.request('/email/webmail/status'); }
+export async function installWebmail(data = {}) { return this.request('/email/webmail/install', { method: 'POST', body: JSON.stringify(data) }); }
+export async function controlWebmail(action) { return this.request(`/email/webmail/service/${action}`, { method: 'POST' }); }
+export async function configureWebmailProxy(domain) { return this.request('/email/webmail/configure-proxy', { method: 'POST', body: JSON.stringify({ domain }) }); }
+
+// Mail Queue & Logs
+export async function getMailQueue() { return this.request('/email/queue'); }
+export async function flushMailQueue() { return this.request('/email/queue/flush', { method: 'POST' }); }
+export async function deleteMailQueueItem(queueId) { return this.request(`/email/queue/${queueId}`, { method: 'DELETE' }); }
+export async function getMailLogs(lines = 100) { return this.request(`/email/logs?lines=${lines}`); }
+
+// Performance endpoints
+export async function getCacheStats() {
+ return this.request('/performance/cache/stats');
+}
+
+export async function flushCache() {
+ return this.request('/performance/cache/flush', { method: 'POST' });
+}
+
+export async function getBackgroundJobs() {
+ return this.request('/performance/jobs');
+}
+
+export async function getJobStatus(jobId) {
+ return this.request(`/performance/jobs/${jobId}`);
+}
+
+export async function getJobStats() {
+ return this.request('/performance/jobs/stats');
+}
+
+export async function cleanupJobs() {
+ return this.request('/performance/jobs/cleanup', { method: 'POST' });
+}
+
+// Mobile / PWA endpoints
+export async function registerPushDevice(subscription, deviceName) {
+ return this.request('/mobile/push/register', {
+ method: 'POST', body: { subscription, device_name: deviceName }
+ });
+}
+
+export async function unregisterPushDevice(endpoint) {
+ return this.request('/mobile/push/unregister', {
+ method: 'POST', body: { endpoint }
+ });
+}
+
+export async function getQuickActions() {
+ return this.request('/mobile/quick-actions');
+}
+
+export async function executeQuickAction(actionId, params = {}) {
+ return this.request(`/mobile/quick-actions/${actionId}`, {
+ method: 'POST', body: params
+ });
+}
+
+export async function getMobileSummary() {
+ return this.request('/mobile/summary');
+}
+
+export async function getOfflineCache() {
+ return this.request('/mobile/offline-cache');
+}
+
+// Marketplace endpoints
+export async function getMarketplaceExtensions(category, search) {
+ const params = new URLSearchParams();
+ if (category) params.append('category', category);
+ if (search) params.append('search', search);
+ const qs = params.toString();
+ return this.request(`/marketplace/${qs ? '?' + qs : ''}`);
+}
+
+export async function getMarketplaceExtension(id) {
+ return this.request(`/marketplace/${id}`);
+}
+
+export async function createMarketplaceExtension(data) {
+ return this.request('/marketplace/', { method: 'POST', body: data });
+}
+
+export async function updateMarketplaceExtension(id, data) {
+ return this.request(`/marketplace/${id}`, { method: 'PUT', body: data });
+}
+
+export async function publishExtension(id) {
+ return this.request(`/marketplace/${id}/publish`, { method: 'POST' });
+}
+
+export async function deleteMarketplaceExtension(id) {
+ return this.request(`/marketplace/${id}`, { method: 'DELETE' });
+}
+
+export async function installMarketplaceExtension(extId, config) {
+ return this.request(`/marketplace/${extId}/install`, {
+ method: 'POST', body: { config }
+ });
+}
+
+export async function uninstallMarketplaceExtension(installId) {
+ return this.request(`/marketplace/installs/${installId}`, { method: 'DELETE' });
+}
+
+export async function updateMarketplaceExtensionConfig(installId, config) {
+ return this.request(`/marketplace/installs/${installId}/config`, {
+ method: 'PUT', body: { config }
+ });
+}
+
+export async function getMyExtensions() {
+ return this.request('/marketplace/my-extensions');
+}
+
+export async function rateExtension(extId, rating) {
+ return this.request(`/marketplace/${extId}/rate`, {
+ method: 'POST', body: { rating }
+ });
+}
diff --git a/frontend/src/services/api/wordpress.js b/frontend/src/services/api/wordpress.js
new file mode 100644
index 00000000..dde63748
--- /dev/null
+++ b/frontend/src/services/api/wordpress.js
@@ -0,0 +1,35 @@
+// WordPress standalone endpoints (from api.js, NOT the separate wordpress.js service)
+
+export async function getWordPressStatus() {
+ return this.request('/wordpress/standalone/status');
+}
+
+export async function getWordPressRequirements() {
+ return this.request('/wordpress/standalone/requirements');
+}
+
+export async function installWordPress(data) {
+ return this.request('/wordpress/standalone/install', {
+ method: 'POST',
+ body: data
+ });
+}
+
+export async function uninstallWordPress(removeData = false) {
+ return this.request('/wordpress/standalone/uninstall', {
+ method: 'POST',
+ body: { removeData }
+ });
+}
+
+export async function startWordPress() {
+ return this.request('/wordpress/standalone/start', { method: 'POST' });
+}
+
+export async function stopWordPress() {
+ return this.request('/wordpress/standalone/stop', { method: 'POST' });
+}
+
+export async function restartWordPress() {
+ return this.request('/wordpress/standalone/restart', { method: 'POST' });
+}
diff --git a/frontend/src/styles/_mixins.less b/frontend/src/styles/_mixins.scss
similarity index 53%
rename from frontend/src/styles/_mixins.less
rename to frontend/src/styles/_mixins.scss
index 84e97fc2..a9ad165a 100644
--- a/frontend/src/styles/_mixins.less
+++ b/frontend/src/styles/_mixins.scss
@@ -2,42 +2,55 @@
// SERVERKIT DESIGN SYSTEM - MIXINS
// ============================================
+// --------------------------------------------
+// COMPATIBILITY FUNCTION: fade()
+// Compatibility: LESS fade(color, N%) = color at N% opacity
+// --------------------------------------------
+@function fade($color, $amount) {
+ // Strip the % unit and convert to 0-1 range for rgba alpha
+ @if unit($amount) == '%' {
+ @return rgba($color, $amount / 100%);
+ } @else {
+ @return rgba($color, $amount / 100);
+ }
+}
+
// --------------------------------------------
// FLEXBOX
// --------------------------------------------
-.flex-center() {
+@mixin flex-center() {
display: flex;
align-items: center;
justify-content: center;
}
-.flex-between() {
+@mixin flex-between() {
display: flex;
align-items: center;
justify-content: space-between;
}
-.flex-start() {
+@mixin flex-start() {
display: flex;
align-items: center;
justify-content: flex-start;
}
-.flex-column() {
+@mixin flex-column() {
display: flex;
flex-direction: column;
}
-.flex-column-gap(@gap) {
+@mixin flex-column-gap($gap) {
display: flex;
flex-direction: column;
- gap: @gap;
+ gap: $gap;
}
// --------------------------------------------
// TRUNCATE
// --------------------------------------------
-.truncate() {
+@mixin truncate() {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
@@ -46,30 +59,30 @@
// --------------------------------------------
// TRANSITIONS
// --------------------------------------------
-.transition(@property: all) {
- transition: @property @transition-base;
+@mixin transition($property: all) {
+ transition: $property $transition-base;
}
-.transition-fast(@property: all) {
- transition: @property @transition-fast;
+@mixin transition-fast($property: all) {
+ transition: $property $transition-fast;
}
// --------------------------------------------
// CARDS & CONTAINERS
// --------------------------------------------
-.card-base() {
- background-color: @bg-card;
- border: 1px solid @border-subtle;
- border-radius: @radius-xl;
- .transition(border-color);
+@mixin card-base() {
+ background-color: $bg-card;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-xl;
+ @include transition(border-color);
&:hover {
- border-color: @border-active;
+ border-color: $border-active;
}
}
-.card-interactive() {
- .card-base();
+@mixin card-interactive() {
+ @include card-base();
cursor: pointer;
&:hover {
@@ -80,40 +93,40 @@
// --------------------------------------------
// INPUTS
// --------------------------------------------
-.input-base() {
+@mixin input-base() {
width: 100%;
- padding: @space-3 @space-4;
- background: @bg-body;
- border: 1px solid @border-subtle;
- border-radius: @radius-lg;
- color: @text-primary;
- font-size: @font-size-base;
- .transition(border-color);
+ padding: $space-3 $space-4;
+ background: $bg-body;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-lg;
+ color: $text-primary;
+ font-size: $font-size-base;
+ @include transition(border-color);
&:focus {
- border-color: @accent-primary;
+ border-color: $accent-primary;
outline: none;
}
&::placeholder {
- color: @text-tertiary;
+ color: $text-tertiary;
}
}
// --------------------------------------------
// BUTTONS
// --------------------------------------------
-.button-base() {
+@mixin button-base() {
display: inline-flex;
align-items: center;
- gap: @space-2;
- padding: @space-2 @space-5;
- border-radius: @radius-lg;
+ gap: $space-2;
+ padding: $space-2 $space-5;
+ border-radius: $radius-lg;
border: 1px solid transparent;
- font-size: @font-size-sm + 1;
- font-weight: @font-weight-medium;
+ font-size: $font-size-sm + 1;
+ font-weight: $font-weight-medium;
cursor: pointer;
- .transition();
+ @include transition();
background: none;
&:disabled {
@@ -125,63 +138,63 @@
// --------------------------------------------
// ICON CONTAINERS
// --------------------------------------------
-.icon-box(@size: 40px) {
- width: @size;
- height: @size;
- border-radius: @radius-lg;
- .flex-center();
+@mixin icon-box($size: 40px) {
+ width: $size;
+ height: $size;
+ border-radius: $radius-lg;
+ @include flex-center();
flex-shrink: 0;
}
// --------------------------------------------
// STATUS INDICATORS
// --------------------------------------------
-.status-dot(@color) {
+@mixin status-dot($color) {
width: 6px;
height: 6px;
- background: @color;
- border-radius: @radius-full;
+ background: $color;
+ border-radius: $radius-full;
}
// --------------------------------------------
// LIST ITEMS
// --------------------------------------------
-.list-item-base() {
+@mixin list-item-base() {
display: flex;
align-items: center;
- gap: @space-5;
- padding: @space-4 @space-5;
- .card-base();
+ gap: $space-5;
+ padding: $space-4 $space-5;
+ @include card-base();
}
// --------------------------------------------
// RESPONSIVE
// --------------------------------------------
-.respond-to(@breakpoint, @rules) {
- @media (max-width: @breakpoint) {
- @rules();
+@mixin respond-to($breakpoint) {
+ @media (max-width: $breakpoint) {
+ @content;
}
}
// --------------------------------------------
// SCROLLBAR
// --------------------------------------------
-.custom-scrollbar() {
+@mixin custom-scrollbar() {
&::-webkit-scrollbar {
width: 6px;
height: 6px;
}
&::-webkit-scrollbar-track {
- background: @bg-body;
+ background: $bg-body;
}
&::-webkit-scrollbar-thumb {
- background: @border-active;
- border-radius: @radius-sm;
+ background: $border-active;
+ border-radius: $radius-sm;
&:hover {
- background: @text-tertiary;
+ background: $text-tertiary;
}
}
}
@@ -189,9 +202,9 @@
// --------------------------------------------
// FOCUS RING
// --------------------------------------------
-.focus-ring() {
+@mixin focus-ring() {
&:focus-visible {
- outline: 2px solid @accent-primary;
+ outline: 2px solid $accent-primary;
outline-offset: 2px;
}
}
@@ -199,16 +212,16 @@
// --------------------------------------------
// CODE/MONO
// --------------------------------------------
-.mono-text() {
- font-family: @font-mono;
- font-size: @font-size-sm;
+@mixin mono-text() {
+ font-family: $font-mono;
+ font-size: $font-size-sm;
}
-.code-block() {
- background: @bg-body;
- border: 1px solid @border-subtle;
- border-radius: @radius-lg;
- padding: @space-4;
- .mono-text();
- .custom-scrollbar();
+@mixin code-block() {
+ background: $bg-body;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-lg;
+ padding: $space-4;
+ @include mono-text();
+ @include custom-scrollbar();
}
diff --git a/frontend/src/styles/_theme-variables.less b/frontend/src/styles/_theme-variables.scss
similarity index 98%
rename from frontend/src/styles/_theme-variables.less
rename to frontend/src/styles/_theme-variables.scss
index 436ffbf4..bf0a331b 100644
--- a/frontend/src/styles/_theme-variables.less
+++ b/frontend/src/styles/_theme-variables.scss
@@ -2,7 +2,7 @@
// SERVERKIT DESIGN SYSTEM - THEME VARIABLES
// ============================================
// CSS Custom Properties that enable runtime theme switching.
-// Must be imported FIRST before _variables.less
+// Must be imported FIRST before _variables.scss
// ============================================
// --------------------------------------------
diff --git a/frontend/src/styles/_variables.less b/frontend/src/styles/_variables.less
deleted file mode 100644
index 503def86..00000000
--- a/frontend/src/styles/_variables.less
+++ /dev/null
@@ -1,223 +0,0 @@
-// ============================================
-// SERVERKIT DESIGN SYSTEM - VARIABLES
-// ============================================
-// Theme-sensitive colors use CSS custom properties for runtime theming.
-// Raw values (*-raw) are kept for LESS compile-time functions like fade().
-// ============================================
-
-@white: #f4f4f5;
-@black: #09090b;
-
-// --------------------------------------------
-// COLORS - Background (theme-sensitive)
-// --------------------------------------------
-// Raw values for LESS functions (dark theme defaults)
-@bg-body-raw: #09090b;
-@bg-sidebar-raw: #0f0f11;
-@bg-card-raw: #18181b;
-@bg-hover-raw: #27272a;
-@bg-elevated-raw: #1f1f23;
-@bg-secondary-raw: #27272a;
-@bg-tertiary-raw: #3f3f46;
-
-// Themed values using CSS custom properties
-@bg-body: var(--bg-body);
-@bg-sidebar: var(--bg-sidebar);
-@bg-card: var(--bg-card);
-@bg-hover: var(--bg-hover);
-@bg-elevated: var(--bg-elevated);
-@bg-secondary: var(--bg-secondary);
-@bg-tertiary: var(--bg-tertiary);
-
-// --------------------------------------------
-// COLORS - Borders (theme-sensitive)
-// --------------------------------------------
-// Raw values for LESS functions
-@border-default-raw: #27272a;
-@border-subtle-raw: #27272a;
-@border-active-raw: #3f3f46;
-@border-hover-raw: #3f3f46;
-
-// Themed values using CSS custom properties
-@border-default: var(--border-default);
-@border-subtle: var(--border-subtle);
-@border-active: var(--border-active);
-@border-hover: var(--border-hover);
-
-// --------------------------------------------
-// COLORS - Text (theme-sensitive)
-// --------------------------------------------
-// Raw values for LESS functions
-@text-primary-raw: #f4f4f5;
-@text-secondary-raw: #a1a1aa;
-@text-tertiary-raw: #71717a;
-
-// Themed values using CSS custom properties
-@text-primary: var(--text-primary);
-@text-secondary: var(--text-secondary);
-@text-tertiary: var(--text-tertiary);
-
-// --------------------------------------------
-// COLORS - Accent
-// --------------------------------------------
-// Raw values for LESS compile-time functions (fade, darken, etc.)
-@accent-primary-raw: #6366f1;
-@accent-hover-raw: #4f46e5;
-@accent-glow-raw: rgba(99, 102, 241, 0.15);
-@accent-shadow-raw: rgba(99, 102, 241, 0.3);
-
-// Themed values using CSS custom properties (runtime-switchable)
-@accent-primary: var(--accent-primary);
-@accent-hover: var(--accent-hover);
-@accent-glow: var(--accent-glow);
-@accent-shadow: var(--accent-shadow);
-
-// --------------------------------------------
-// COLORS - Semantic
-// --------------------------------------------
-@success: #10b981;
-@success-bg: rgba(16, 185, 129, 0.1);
-@success-border: rgba(16, 185, 129, 0.2);
-
-@warning: #f59e0b;
-@warning-bg: rgba(245, 158, 11, 0.1);
-@warning-border: rgba(245, 158, 11, 0.2);
-
-@danger: #ef4444;
-@danger-hover: #dc2626;
-@danger-bg: rgba(239, 68, 68, 0.1);
-@danger-border: rgba(239, 68, 68, 0.2);
-
-@info: #3b82f6;
-@info-bg: rgba(59, 130, 246, 0.1);
-@info-border: rgba(59, 130, 246, 0.2);
-
-// --------------------------------------------
-// COLORS - Brand (Database/Docker icons)
-// --------------------------------------------
-@color-mysql: #f29111;
-@color-mysql-secondary: #00758f;
-@color-postgresql: #336791;
-@color-postgresql-secondary: #5f9ab8;
-@color-docker: #2496ed;
-@color-php: #777bb4;
-@color-python: #3776ab;
-@color-wordpress: #21759b;
-@color-flask: #000000;
-@color-django: #092e20;
-
-// --------------------------------------------
-// TYPOGRAPHY
-// --------------------------------------------
-@font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
-@font-mono: 'JetBrains Mono', 'Fira Code', 'Monaco', 'Consolas', monospace;
-
-@font-size-xs: 10px;
-@font-size-sm: 12px;
-@font-size-base: 14px;
-@font-size-md: 16px;
-@font-size-lg: 18px;
-@font-size-xl: 20px;
-@font-size-2xl: 24px;
-@font-size-3xl: 30px;
-
-@font-weight-normal: 400;
-@font-weight-medium: 500;
-@font-weight-semibold: 600;
-@font-weight-bold: 700;
-
-@line-height-tight: 1.25;
-@line-height-normal: 1.5;
-@line-height-relaxed: 1.6;
-
-// --------------------------------------------
-// SPACING
-// --------------------------------------------
-@space-1: 4px;
-@space-2: 8px;
-@space-3: 12px;
-@space-4: 16px;
-@space-5: 20px;
-@space-6: 24px;
-@space-8: 32px;
-@space-10: 40px;
-@space-12: 48px;
-@space-16: 64px;
-
-// --------------------------------------------
-// BORDER RADIUS
-// --------------------------------------------
-@radius-sm: 4px;
-@radius-md: 6px;
-@radius-lg: 8px;
-@radius-xl: 12px;
-@radius-2xl: 16px;
-@radius-full: 9999px;
-
-// --------------------------------------------
-// SHADOWS (theme-sensitive)
-// --------------------------------------------
-@shadow-sm: var(--shadow-sm);
-@shadow-md: var(--shadow-md);
-@shadow-lg: var(--shadow-lg);
-@shadow-accent: 0 4px 12px @accent-shadow;
-
-// --------------------------------------------
-// TRANSITIONS
-// --------------------------------------------
-@transition-fast: 0.15s ease;
-@transition-base: 0.2s ease;
-@transition-slow: 0.3s ease;
-
-// --------------------------------------------
-// LAYOUT
-// --------------------------------------------
-@sidebar-width: 280px;
-@header-height: 64px;
-
-// --------------------------------------------
-// Z-INDEX
-// --------------------------------------------
-@z-dropdown: 10;
-@z-sticky: 20;
-@z-fixed: 30;
-@z-modal-backdrop: 40;
-@z-modal: 50;
-@z-tooltip: 60;
-
-// --------------------------------------------
-// BREAKPOINTS
-// --------------------------------------------
-@breakpoint-sm: 640px;
-@breakpoint-md: 768px;
-@breakpoint-lg: 1024px;
-@breakpoint-xl: 1280px;
-
-// --------------------------------------------
-// ALIASES (for consistency across files)
-// --------------------------------------------
-@font-family-mono: @font-mono;
-@color-success: @success;
-@color-warning: @warning;
-@color-danger: @danger;
-@color-info: @info;
-@color-primary: @accent-primary;
-@bg-code: @bg-tertiary;
-@bg-input: @bg-card;
-
-// Spacing aliases (used by newer page stylesheets)
-@spacing-xs: @space-1;
-@spacing-sm: @space-2;
-@spacing-md: @space-4;
-@spacing-lg: @space-6;
-@spacing-xl: @space-8;
-
-// Legacy aliases (used by newer page stylesheets)
-@border-color: @border-default;
-@card-bg: @bg-card;
-@hover-bg: @bg-hover;
-@primary-color: @accent-primary;
-@text-muted: @text-tertiary;
-@success-color: @success;
-@warning-color: @warning;
-@danger-color: @danger;
diff --git a/frontend/src/styles/_variables.scss b/frontend/src/styles/_variables.scss
new file mode 100644
index 00000000..5a80ba91
--- /dev/null
+++ b/frontend/src/styles/_variables.scss
@@ -0,0 +1,229 @@
+// ============================================
+// SERVERKIT DESIGN SYSTEM - VARIABLES
+// ============================================
+// Theme-sensitive colors use CSS custom properties for runtime theming.
+// Raw values (*-raw) are kept for SCSS compile-time functions like fade().
+// ============================================
+
+$white: #f4f4f5;
+$black: #09090b;
+
+// --------------------------------------------
+// COLORS - Background (theme-sensitive)
+// --------------------------------------------
+// Raw values for SCSS functions (dark theme defaults)
+$bg-body-raw: #09090b;
+$bg-sidebar-raw: #0f0f11;
+$bg-card-raw: #18181b;
+$bg-hover-raw: #27272a;
+$bg-elevated-raw: #1f1f23;
+$bg-secondary-raw: #27272a;
+$bg-tertiary-raw: #3f3f46;
+
+// Themed values using CSS custom properties
+$bg-body: var(--bg-body);
+$bg-sidebar: var(--bg-sidebar);
+$bg-card: var(--bg-card);
+$bg-hover: var(--bg-hover);
+$bg-elevated: var(--bg-elevated);
+$bg-secondary: var(--bg-secondary);
+$bg-tertiary: var(--bg-tertiary);
+
+// --------------------------------------------
+// COLORS - Borders (theme-sensitive)
+// --------------------------------------------
+// Raw values for SCSS functions
+$border-default-raw: #27272a;
+$border-subtle-raw: #27272a;
+$border-active-raw: #3f3f46;
+$border-hover-raw: #3f3f46;
+
+// Themed values using CSS custom properties
+$border-default: var(--border-default);
+$border-subtle: var(--border-subtle);
+$border-active: var(--border-active);
+$border-hover: var(--border-hover);
+
+// --------------------------------------------
+// COLORS - Text (theme-sensitive)
+// --------------------------------------------
+// Raw values for SCSS functions
+$text-primary-raw: #f4f4f5;
+$text-secondary-raw: #a1a1aa;
+$text-tertiary-raw: #71717a;
+
+// Themed values using CSS custom properties
+$text-primary: var(--text-primary);
+$text-secondary: var(--text-secondary);
+$text-tertiary: var(--text-tertiary);
+
+// --------------------------------------------
+// COLORS - Accent
+// --------------------------------------------
+// Raw values for SCSS compile-time functions (fade, darken, etc.)
+$accent-primary-raw: #6366f1;
+$accent-hover-raw: #4f46e5;
+$accent-glow-raw: rgba(99, 102, 241, 0.15);
+$accent-shadow-raw: rgba(99, 102, 241, 0.3);
+
+// Themed values using CSS custom properties (runtime-switchable)
+$accent-primary: var(--accent-primary);
+$accent-hover: var(--accent-hover);
+$accent-glow: var(--accent-glow);
+$accent-shadow: var(--accent-shadow);
+
+// --------------------------------------------
+// COLORS - Semantic
+// --------------------------------------------
+$success: #10b981;
+$success-bg: rgba(16, 185, 129, 0.1);
+$success-border: rgba(16, 185, 129, 0.2);
+
+$warning: #f59e0b;
+$warning-bg: rgba(245, 158, 11, 0.1);
+$warning-border: rgba(245, 158, 11, 0.2);
+
+$danger: #ef4444;
+$danger-hover: #dc2626;
+$danger-bg: rgba(239, 68, 68, 0.1);
+$danger-border: rgba(239, 68, 68, 0.2);
+
+$info: #3b82f6;
+$info-bg: rgba(59, 130, 246, 0.1);
+$info-border: rgba(59, 130, 246, 0.2);
+
+// --------------------------------------------
+// COLORS - Brand (Database/Docker icons)
+// --------------------------------------------
+$color-mysql: #f29111;
+$color-mysql-secondary: #00758f;
+$color-postgresql: #336791;
+$color-postgresql-secondary: #5f9ab8;
+$color-docker: #2496ed;
+$color-php: #777bb4;
+$color-python: #3776ab;
+$color-wordpress: #21759b;
+$color-flask: #000000;
+$color-django: #092e20;
+
+// --------------------------------------------
+// COLORS - UI Accents
+// --------------------------------------------
+$color-star: #f59e0b;
+
+// --------------------------------------------
+// TYPOGRAPHY
+// --------------------------------------------
+$font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
+$font-mono: 'JetBrains Mono', 'Fira Code', 'Monaco', 'Consolas', monospace;
+
+$font-size-xs: 10px;
+$font-size-sm: 12px;
+$font-size-base: 14px;
+$font-size-md: 16px;
+$font-size-lg: 18px;
+$font-size-xl: 20px;
+$font-size-2xl: 24px;
+$font-size-3xl: 30px;
+
+$font-weight-normal: 400;
+$font-weight-medium: 500;
+$font-weight-semibold: 600;
+$font-weight-bold: 700;
+
+$line-height-tight: 1.25;
+$line-height-normal: 1.5;
+$line-height-relaxed: 1.6;
+
+// --------------------------------------------
+// SPACING
+// --------------------------------------------
+$space-1: 4px;
+$space-2: 8px;
+$space-3: 12px;
+$space-4: 16px;
+$space-5: 20px;
+$space-6: 24px;
+$space-8: 32px;
+$space-10: 40px;
+$space-12: 48px;
+$space-16: 64px;
+
+// Canonical spacing aliases
+$spacing-xs: $space-1;
+$spacing-sm: $space-2;
+$spacing-md: $space-4;
+$spacing-lg: $space-6;
+$spacing-xl: $space-8;
+
+// --------------------------------------------
+// BORDER RADIUS
+// --------------------------------------------
+$radius-sm: 4px;
+$radius-md: 6px;
+$radius-lg: 8px;
+$radius-xl: 12px;
+$radius-2xl: 16px;
+$radius-full: 9999px;
+
+// --------------------------------------------
+// SHADOWS (theme-sensitive)
+// --------------------------------------------
+$shadow-sm: var(--shadow-sm);
+$shadow-md: var(--shadow-md);
+$shadow-lg: var(--shadow-lg);
+$shadow-accent: 0 4px 12px $accent-shadow;
+
+// --------------------------------------------
+// TRANSITIONS
+// --------------------------------------------
+$transition-fast: 0.15s ease;
+$transition-base: 0.2s ease;
+$transition-slow: 0.3s ease;
+
+// --------------------------------------------
+// LAYOUT
+// --------------------------------------------
+$sidebar-width: 280px;
+$header-height: 64px;
+$sidebar-header-height: 70px;
+$sidebar-logo-size: 42px;
+$sidebar-icon-size: 28px;
+
+// --------------------------------------------
+// Z-INDEX
+// --------------------------------------------
+$z-dropdown: 10;
+$z-sticky: 20;
+$z-fixed: 30;
+$z-modal-backdrop: 40;
+$z-modal: 50;
+$z-tooltip: 60;
+
+// --------------------------------------------
+// BREAKPOINTS
+// --------------------------------------------
+$breakpoint-sm: 640px;
+$breakpoint-md: 768px;
+$breakpoint-lg: 1024px;
+$breakpoint-xl: 1280px;
+
+// --------------------------------------------
+// DEPRECATED — use the canonical names above
+// --------------------------------------------
+$font-family-mono: $font-mono;
+$color-success: $success;
+$color-warning: $warning;
+$color-danger: $danger;
+$color-info: $info;
+$color-primary: $accent-primary;
+$bg-code: $bg-tertiary;
+$bg-input: $bg-card;
+$border-color: $border-default;
+$card-bg: $bg-card;
+$hover-bg: $bg-hover;
+$primary-color: $accent-primary;
+$text-muted: $text-tertiary;
+$success-color: $success;
+$warning-color: $warning;
+$danger-color: $danger;
diff --git a/frontend/src/styles/base/_reset.less b/frontend/src/styles/base/_reset.scss
similarity index 69%
rename from frontend/src/styles/base/_reset.less
rename to frontend/src/styles/base/_reset.scss
index 24a618ea..120de3bf 100644
--- a/frontend/src/styles/base/_reset.less
+++ b/frontend/src/styles/base/_reset.scss
@@ -16,11 +16,11 @@ html {
}
body {
- background-color: @bg-body;
- color: @text-primary;
- font-family: @font-main;
- font-size: @font-size-base;
- line-height: @line-height-normal;
+ background-color: $bg-body;
+ color: $text-primary;
+ font-family: $font-main;
+ font-size: $font-size-base;
+ line-height: $line-height-normal;
min-height: 100vh;
}
@@ -44,7 +44,7 @@ ul, ol {
// Selection
::selection {
- background: @accent-primary;
+ background: $accent-primary;
color: white;
}
@@ -55,14 +55,14 @@ ul, ol {
}
::-webkit-scrollbar-track {
- background: @bg-body;
+ background: $bg-body;
}
::-webkit-scrollbar-thumb {
- background: @border-active;
- border-radius: @radius-sm;
+ background: $border-active;
+ border-radius: $radius-sm;
&:hover {
- background: @text-tertiary;
+ background: $text-tertiary;
}
}
diff --git a/frontend/src/styles/base/_typography.less b/frontend/src/styles/base/_typography.less
deleted file mode 100644
index 573a6316..00000000
--- a/frontend/src/styles/base/_typography.less
+++ /dev/null
@@ -1,55 +0,0 @@
-// ============================================
-// TYPOGRAPHY STYLES
-// ============================================
-
-// Headings
-h1, h2, h3, h4, h5, h6 {
- font-weight: @font-weight-semibold;
- line-height: @line-height-tight;
- letter-spacing: -0.5px;
-}
-
-h1 { font-size: @font-size-2xl; }
-h2 { font-size: @font-size-lg; }
-h3 { font-size: @font-size-md; }
-h4 { font-size: @font-size-base; }
-
-// Text utilities
-.text-primary { color: @text-primary; }
-.text-secondary { color: @text-secondary; }
-.text-tertiary { color: @text-tertiary; }
-.text-success { color: @success; }
-.text-warning { color: @warning; }
-.text-danger { color: @danger; }
-.text-accent { color: @accent-primary; }
-
-// Weight utilities
-.font-normal { font-weight: @font-weight-normal; }
-.font-medium { font-weight: @font-weight-medium; }
-.font-semibold { font-weight: @font-weight-semibold; }
-.font-bold { font-weight: @font-weight-bold; }
-
-// Mono text
-.mono {
- font-family: @font-mono;
- font-size: @font-size-sm;
-}
-
-// Truncate
-.truncate {
- .truncate();
-}
-
-// Subtitle (used in page headers)
-.subtitle {
- color: @text-tertiary;
- margin-top: @space-1;
- font-size: @font-size-base;
-}
-
-// Section titles
-.section-title {
- font-size: @font-size-lg;
- margin-bottom: @space-5;
- font-weight: @font-weight-semibold;
-}
diff --git a/frontend/src/styles/base/_typography.scss b/frontend/src/styles/base/_typography.scss
new file mode 100644
index 00000000..36b09849
--- /dev/null
+++ b/frontend/src/styles/base/_typography.scss
@@ -0,0 +1,55 @@
+// ============================================
+// TYPOGRAPHY STYLES
+// ============================================
+
+// Headings
+h1, h2, h3, h4, h5, h6 {
+ font-weight: $font-weight-semibold;
+ line-height: $line-height-tight;
+ letter-spacing: -0.5px;
+}
+
+h1 { font-size: $font-size-2xl; }
+h2 { font-size: $font-size-lg; }
+h3 { font-size: $font-size-md; }
+h4 { font-size: $font-size-base; }
+
+// Text utilities
+.text-primary { color: $text-primary; }
+.text-secondary { color: $text-secondary; }
+.text-tertiary { color: $text-tertiary; }
+.text-success { color: $success; }
+.text-warning { color: $warning; }
+.text-danger { color: $danger; }
+.text-accent { color: $accent-primary; }
+
+// Weight utilities
+.font-normal { font-weight: $font-weight-normal; }
+.font-medium { font-weight: $font-weight-medium; }
+.font-semibold { font-weight: $font-weight-semibold; }
+.font-bold { font-weight: $font-weight-bold; }
+
+// Mono text
+.mono {
+ font-family: $font-mono;
+ font-size: $font-size-sm;
+}
+
+// Truncate
+.truncate {
+ @include truncate();
+}
+
+// Subtitle (used in page headers)
+.subtitle {
+ color: $text-tertiary;
+ margin-top: $space-1;
+ font-size: $font-size-base;
+}
+
+// Section titles
+.section-title {
+ font-size: $font-size-lg;
+ margin-bottom: $space-5;
+ font-weight: $font-weight-semibold;
+}
diff --git a/frontend/src/styles/base/_utilities.less b/frontend/src/styles/base/_utilities.scss
similarity index 94%
rename from frontend/src/styles/base/_utilities.less
rename to frontend/src/styles/base/_utilities.scss
index 396b28f8..c80b0e79 100644
--- a/frontend/src/styles/base/_utilities.less
+++ b/frontend/src/styles/base/_utilities.scss
@@ -24,13 +24,13 @@
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
-@media (min-width: 768px) {
+@media (min-width: $breakpoint-md) {
.md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
-@media (min-width: 1024px) {
+@media (min-width: $breakpoint-lg) {
.lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@@ -133,15 +133,15 @@
.bg-blue-100 { background-color: #dbeafe; }
.bg-green-100 { background-color: #dcfce7; }
.bg-red-100 { background-color: #fee2e2; }
-.bg-body { background-color: @bg-body; }
+.bg-body { background-color: $bg-body; }
// --------------------------------------------
// BORDERS
// --------------------------------------------
-.border { border: 1px solid @border-default; }
-.border-b { border-bottom: 1px solid @border-subtle; }
-.rounded { border-radius: @radius-md; }
-.rounded-lg { border-radius: @radius-lg; }
+.border { border: 1px solid $border-default; }
+.border-b { border-bottom: 1px solid $border-subtle; }
+.rounded { border-radius: $radius-md; }
+.rounded-lg { border-radius: $radius-lg; }
// --------------------------------------------
// MISC
diff --git a/frontend/src/styles/components/_api-settings.less b/frontend/src/styles/components/_api-settings.scss
similarity index 59%
rename from frontend/src/styles/components/_api-settings.less
rename to frontend/src/styles/components/_api-settings.scss
index c39465ba..e269f16c 100644
--- a/frontend/src/styles/components/_api-settings.less
+++ b/frontend/src/styles/components/_api-settings.scss
@@ -5,7 +5,7 @@
.api-settings {
display: flex;
flex-direction: column;
- gap: @space-6;
+ gap: $space-6;
}
// ─── Tables ────────────────────────────────────────────
@@ -17,41 +17,41 @@
.api-settings__table {
width: 100%;
border-collapse: collapse;
- font-size: @font-size-sm;
+ font-size: $font-size-sm;
th, td {
- padding: @space-2 @space-3;
+ padding: $space-2 $space-3;
text-align: left;
- border-bottom: 1px solid @border-subtle;
+ border-bottom: 1px solid $border-subtle;
}
th {
- color: @text-secondary;
+ color: $text-secondary;
font-weight: 500;
- font-size: @font-size-xs;
+ font-size: $font-size-xs;
text-transform: uppercase;
letter-spacing: 0.05em;
}
td {
- color: @text-primary;
+ color: $text-primary;
}
tbody tr:hover {
- background: @bg-hover;
+ background: $bg-hover;
}
code {
- font-family: @font-mono;
- font-size: @font-size-xs;
+ font-family: $font-mono;
+ font-size: $font-size-xs;
padding: 2px 6px;
- background: @bg-elevated;
- border-radius: @radius-sm;
+ background: $bg-elevated;
+ border-radius: $radius-sm;
}
&--compact {
th, td {
- padding: @space-1 @space-2;
+ padding: $space-1 $space-2;
}
}
}
@@ -61,21 +61,21 @@
}
.api-settings__key-prefix {
- font-family: @font-mono;
+ font-family: $font-mono;
}
.api-settings__muted {
- color: @text-tertiary;
- font-size: @font-size-xs;
+ color: $text-tertiary;
+ font-size: $font-size-xs;
}
.api-settings__actions {
display: flex;
- gap: @space-1;
+ gap: $space-1;
}
.api-settings__error-count {
- color: @danger;
+ color: $danger;
font-weight: 600;
}
@@ -84,18 +84,18 @@
.api-settings__rate-limits {
display: grid;
grid-template-columns: 1fr 1fr;
- gap: @space-4;
- padding: @space-4;
+ gap: $space-4;
+ padding: $space-4;
.form-group--inline {
display: flex;
flex-direction: column;
- gap: @space-1;
+ gap: $space-1;
label {
- font-size: @font-size-sm;
+ font-size: $font-size-sm;
font-weight: 500;
- color: @text-secondary;
+ color: $text-secondary;
}
}
}
@@ -105,13 +105,13 @@
.api-settings__webhooks {
display: flex;
flex-direction: column;
- gap: @space-2;
- padding: @space-2;
+ gap: $space-2;
+ padding: $space-2;
}
.api-settings__webhook-card {
- border: 1px solid @border-subtle;
- border-radius: @radius-md;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-md;
overflow: hidden;
}
@@ -119,31 +119,31 @@
display: flex;
align-items: center;
justify-content: space-between;
- padding: @space-3 @space-4;
+ padding: $space-3 $space-4;
cursor: pointer;
transition: background 0.15s;
&:hover {
- background: @bg-hover;
+ background: $bg-hover;
}
}
.api-settings__webhook-info {
display: flex;
flex-direction: column;
- gap: @space-1;
+ gap: $space-1;
min-width: 0;
}
.api-settings__webhook-name {
font-weight: 600;
- color: @text-primary;
+ color: $text-primary;
}
.api-settings__webhook-url {
- font-family: @font-mono;
- font-size: @font-size-xs;
- color: @text-tertiary;
+ font-family: $font-mono;
+ font-size: $font-size-xs;
+ color: $text-tertiary;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
@@ -152,33 +152,33 @@
.api-settings__webhook-events {
display: flex;
flex-wrap: wrap;
- gap: @space-1;
- margin-top: @space-1;
+ gap: $space-1;
+ margin-top: $space-1;
}
.api-settings__webhook-controls {
display: flex;
align-items: center;
- gap: @space-2;
+ gap: $space-2;
flex-shrink: 0;
}
.api-settings__webhook-details {
- border-top: 1px solid @border-subtle;
- padding: @space-3 @space-4;
+ border-top: 1px solid $border-subtle;
+ padding: $space-3 $space-4;
}
.api-settings__webhook-actions {
display: flex;
- gap: @space-2;
- margin-bottom: @space-3;
+ gap: $space-2;
+ margin-bottom: $space-3;
}
.api-settings__deliveries {
h4 {
- font-size: @font-size-sm;
- color: @text-secondary;
- margin-bottom: @space-2;
+ font-size: $font-size-sm;
+ color: $text-secondary;
+ margin-bottom: $space-2;
}
}
@@ -186,46 +186,46 @@
.api-settings__period-select {
display: flex;
- gap: @space-1;
+ gap: $space-1;
}
.api-settings__stats-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
- gap: @space-3;
- padding: @space-4;
+ gap: $space-3;
+ padding: $space-4;
}
.api-settings__stat-card {
display: flex;
flex-direction: column;
- gap: @space-1;
- padding: @space-3;
- background: @bg-elevated;
- border-radius: @radius-md;
+ gap: $space-1;
+ padding: $space-3;
+ background: $bg-elevated;
+ border-radius: $radius-md;
text-align: center;
}
.api-settings__stat-value {
- font-size: @font-size-xl;
+ font-size: $font-size-xl;
font-weight: 700;
- color: @text-primary;
+ color: $text-primary;
}
.api-settings__stat-label {
- font-size: @font-size-xs;
- color: @text-tertiary;
+ font-size: $font-size-xs;
+ color: $text-tertiary;
text-transform: uppercase;
letter-spacing: 0.05em;
}
.api-settings__chart {
- padding: @space-4;
+ padding: $space-4;
h4 {
- font-size: @font-size-sm;
- color: @text-secondary;
- margin-bottom: @space-3;
+ font-size: $font-size-sm;
+ color: $text-secondary;
+ margin-bottom: $space-3;
}
}
@@ -234,7 +234,7 @@
align-items: flex-end;
gap: 2px;
height: 120px;
- padding: @space-2 0;
+ padding: $space-2 0;
}
.api-settings__bar-col {
@@ -248,85 +248,85 @@
}
.api-settings__bar {
- background: @accent-primary;
- border-radius: @radius-sm @radius-sm 0 0;
+ background: $accent-primary;
+ border-radius: $radius-sm $radius-sm 0 0;
min-height: 2px;
transition: height 0.3s ease;
&--error {
- background: @danger;
+ background: $danger;
border-radius: 0;
}
}
.api-settings__top-endpoints {
- padding: @space-4;
+ padding: $space-4;
h4 {
- font-size: @font-size-sm;
- color: @text-secondary;
- margin-bottom: @space-2;
+ font-size: $font-size-sm;
+ color: $text-secondary;
+ margin-bottom: $space-2;
}
}
// ─── Method Badges ─────────────────────────────────────
.badge--method {
- font-family: @font-mono;
- font-size: @font-size-xs;
+ font-family: $font-mono;
+ font-size: $font-size-xs;
font-weight: 600;
padding: 1px 6px;
- border-radius: @radius-sm;
+ border-radius: $radius-sm;
}
.badge--get {
- background: @success-bg;
- color: @success;
+ background: $success-bg;
+ color: $success;
}
.badge--post {
- background: @info-bg;
- color: @info;
+ background: $info-bg;
+ color: $info;
}
.badge--put {
- background: @warning-bg;
- color: @warning;
+ background: $warning-bg;
+ color: $warning;
}
.badge--delete {
- background: @danger-bg;
- color: @danger;
+ background: $danger-bg;
+ color: $danger;
}
.badge--patch {
- background: @info-bg;
- color: @info;
+ background: $info-bg;
+ color: $info;
}
// ─── Tier Badges ───────────────────────────────────────
.badge--standard {
- background: @bg-elevated;
- color: @text-secondary;
+ background: $bg-elevated;
+ color: $text-secondary;
}
.badge--elevated {
- background: @info-bg;
- color: @info;
+ background: $info-bg;
+ color: $info;
}
.badge--unlimited {
- background: @warning-bg;
- color: @warning;
+ background: $warning-bg;
+ color: $warning;
}
.badge--subtle {
- background: @bg-elevated;
- color: @text-secondary;
- font-size: @font-size-xs;
+ background: $bg-elevated;
+ color: $text-secondary;
+ font-size: $font-size-xs;
padding: 1px 6px;
- border-radius: @radius-sm;
+ border-radius: $radius-sm;
}
// ─── API Key Modal ─────────────────────────────────────
@@ -337,29 +337,29 @@
.api-key-modal__warning {
display: flex;
align-items: center;
- gap: @space-2;
- padding: @space-3;
- background: @warning-bg;
- border: 1px solid @warning-border;
- border-radius: @radius-md;
- color: @warning;
- font-size: @font-size-sm;
- margin-bottom: @space-4;
+ gap: $space-2;
+ padding: $space-3;
+ background: $warning-bg;
+ border: 1px solid $warning-border;
+ border-radius: $radius-md;
+ color: $warning;
+ font-size: $font-size-sm;
+ margin-bottom: $space-4;
}
.api-key-modal__key-display {
display: flex;
align-items: center;
- gap: @space-2;
- padding: @space-3;
- background: @bg-elevated;
- border-radius: @radius-md;
+ gap: $space-2;
+ padding: $space-3;
+ background: $bg-elevated;
+ border-radius: $radius-md;
overflow-x: auto;
code {
flex: 1;
- font-family: @font-mono;
- font-size: @font-size-sm;
+ font-family: $font-mono;
+ font-size: $font-size-sm;
word-break: break-all;
}
}
@@ -367,70 +367,70 @@
.api-key-modal__tiers {
display: grid;
grid-template-columns: repeat(3, 1fr);
- gap: @space-2;
+ gap: $space-2;
}
.api-key-modal__tier-btn {
display: flex;
flex-direction: column;
align-items: center;
- gap: @space-1;
- padding: @space-3;
- border: 1px solid @border-subtle;
- border-radius: @radius-md;
+ gap: $space-1;
+ padding: $space-3;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-md;
background: transparent;
- color: @text-secondary;
+ color: $text-secondary;
cursor: pointer;
transition: all 0.15s;
&:hover {
- border-color: @border-default;
- background: @bg-hover;
+ border-color: $border-default;
+ background: $bg-hover;
}
&.active {
- border-color: @accent-primary;
- background: fade(@accent-primary-raw, 8%);
- color: @accent-primary;
+ border-color: $accent-primary;
+ background: fade($accent-primary-raw, 8%);
+ color: $accent-primary;
}
}
.api-key-modal__tier-label {
font-weight: 600;
- font-size: @font-size-sm;
+ font-size: $font-size-sm;
}
.api-key-modal__tier-desc {
- font-size: @font-size-xs;
+ font-size: $font-size-xs;
opacity: 0.7;
}
.api-key-modal__scopes {
display: grid;
grid-template-columns: repeat(2, 1fr);
- gap: @space-1;
+ gap: $space-1;
max-height: 200px;
overflow-y: auto;
- padding: @space-2;
- border: 1px solid @border-subtle;
- border-radius: @radius-md;
+ padding: $space-2;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-md;
}
.api-key-modal__scope-item {
display: flex;
align-items: center;
- gap: @space-2;
- font-size: @font-size-sm;
- padding: @space-1;
+ gap: $space-2;
+ font-size: $font-size-sm;
+ padding: $space-1;
cursor: pointer;
&:hover {
- background: @bg-hover;
- border-radius: @radius-sm;
+ background: $bg-hover;
+ border-radius: $radius-sm;
}
input[type="checkbox"] {
- accent-color: @accent-primary;
+ accent-color: $accent-primary;
}
}
}
@@ -443,13 +443,13 @@
.webhook-modal__events {
max-height: 300px;
overflow-y: auto;
- border: 1px solid @border-subtle;
- border-radius: @radius-md;
- padding: @space-2;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-md;
+ padding: $space-2;
}
.webhook-modal__event-group {
- margin-bottom: @space-2;
+ margin-bottom: $space-2;
&:last-child {
margin-bottom: 0;
@@ -459,59 +459,59 @@
.webhook-modal__category {
display: flex;
align-items: center;
- gap: @space-2;
- padding: @space-1;
+ gap: $space-2;
+ padding: $space-1;
cursor: pointer;
- font-size: @font-size-sm;
+ font-size: $font-size-sm;
input[type="checkbox"] {
- accent-color: @accent-primary;
+ accent-color: $accent-primary;
}
}
.webhook-modal__event-list {
- padding-left: @space-6;
+ padding-left: $space-6;
}
.webhook-modal__event-item {
display: flex;
align-items: center;
- gap: @space-2;
- padding: @space-1;
+ gap: $space-2;
+ padding: $space-1;
cursor: pointer;
- font-size: @font-size-sm;
+ font-size: $font-size-sm;
&:hover {
- background: @bg-hover;
- border-radius: @radius-sm;
+ background: $bg-hover;
+ border-radius: $radius-sm;
}
input[type="checkbox"] {
- accent-color: @accent-primary;
+ accent-color: $accent-primary;
}
}
.webhook-modal__event-type {
- font-family: @font-mono;
- font-size: @font-size-xs;
- color: @text-primary;
+ font-family: $font-mono;
+ font-size: $font-size-xs;
+ color: $text-primary;
}
.webhook-modal__event-desc {
- color: @text-tertiary;
- font-size: @font-size-xs;
+ color: $text-tertiary;
+ font-size: $font-size-xs;
}
.form-row {
display: grid;
grid-template-columns: 1fr 1fr;
- gap: @space-4;
+ gap: $space-4;
}
}
// ─── Responsive ────────────────────────────────────────
-@media (max-width: 768px) {
+@media (max-width: $breakpoint-md) {
.api-settings__stats-grid {
grid-template-columns: repeat(2, 1fr);
}
diff --git a/frontend/src/styles/components/_badges.less b/frontend/src/styles/components/_badges.less
deleted file mode 100644
index 12f9d033..00000000
--- a/frontend/src/styles/components/_badges.less
+++ /dev/null
@@ -1,193 +0,0 @@
-// ============================================
-// BADGE COMPONENTS
-// ============================================
-
-// Status badge
-.status-badge {
- display: flex;
- align-items: center;
- gap: @space-2 - 2;
- padding: @space-1 @space-2 + 2;
- border-radius: @radius-full;
- font-size: @font-size-xs + 1;
- font-weight: @font-weight-semibold;
- border: 1px solid transparent;
-}
-
-.status-dot {
- .status-dot(currentColor);
-}
-
-// Status variants
-.status-active {
- background: @success-bg;
- color: @success;
- border-color: @success-border;
-}
-
-.status-warning {
- background: @warning-bg;
- color: @warning;
- border-color: @warning-border;
-}
-
-.status-stopped {
- background: fade(@text-tertiary-raw, 10%);
- color: @text-tertiary;
- border-color: fade(@text-tertiary-raw, 20%);
-}
-
-.status-error {
- background: @danger-bg;
- color: @danger;
- border-color: @danger-border;
-}
-
-// App type badge
-.app-type {
- background: @bg-hover;
- padding: @space-1 - 2 @space-2;
- border-radius: @radius-sm;
- font-weight: @font-weight-semibold;
- font-size: @font-size-xs;
- letter-spacing: 0.5px;
- text-transform: uppercase;
-}
-
-// SSL badge
-.ssl-badge {
- background: @success-bg;
- color: @success;
- padding: @space-1 - 2 @space-2;
- border-radius: @radius-sm;
- font-size: @font-size-xs;
- font-weight: @font-weight-semibold;
-}
-
-// Active badge (for themes/plugins)
-.active-badge {
- background: @success-bg;
- color: @success;
- padding: @space-1 @space-3;
- border-radius: @radius-full;
- font-size: @font-size-sm;
- font-weight: @font-weight-semibold;
-}
-
-// Database type badge
-.db-type-badge {
- display: inline-flex;
- align-items: center;
- gap: @space-1;
- background: @bg-hover;
- padding: @space-1 - 2 @space-2;
- border-radius: @radius-sm;
- font-size: @font-size-xs;
- font-weight: @font-weight-semibold;
- text-transform: uppercase;
- letter-spacing: 0.3px;
-
- &.mysql {
- color: @color-mysql;
- }
-
- &.postgresql {
- color: @color-postgresql;
- }
-}
-
-// Privilege tag
-.privilege-tag {
- background: @accent-glow;
- color: @accent-primary;
- padding: @space-1 - 2 @space-2;
- border-radius: @radius-sm;
- font-size: @font-size-xs;
- font-weight: @font-weight-semibold;
- text-transform: uppercase;
- letter-spacing: 0.3px;
-}
-
-// Table name tag
-.table-tag {
- background: @bg-hover;
- border: 1px solid @border-subtle;
- padding: @space-2 - 2 @space-3;
- border-radius: @radius-md;
- .mono-text();
- color: @text-secondary;
-}
-
-// Environment badge
-.env-badge {
- display: inline-flex;
- align-items: center;
- gap: @space-1;
- padding: @space-1 - 2 @space-2;
- border-radius: @radius-sm;
- font-size: @font-size-xs;
- font-weight: @font-weight-semibold;
- text-transform: uppercase;
- letter-spacing: 0.3px;
- border: 1px solid transparent;
-
- &.env-production {
- background: fade(@success, 15%);
- color: @success;
- border-color: fade(@success, 30%);
- }
-
- &.env-development {
- background: fade(@accent-primary-raw, 15%);
- color: @accent-primary;
- border-color: fade(@accent-primary-raw, 30%);
- }
-
- &.env-staging {
- background: fade(@warning, 15%);
- color: @warning;
- border-color: fade(@warning, 30%);
- }
-
- .env-linked-icon {
- opacity: 0.7;
- }
-}
-
-// Global Badge Base
-.badge {
- display: inline-flex;
- align-items: center;
- justify-content: center;
- padding: 0.25rem 0.5rem;
- font-size: 0.75rem;
- font-weight: 600;
- line-height: 1;
- border-radius: 9999px;
- white-space: nowrap;
-}
-
-.badge-info {
- background-color: fade(@info, 15%);
- color: @info;
-}
-
-.badge-success {
- background-color: fade(@success, 15%);
- color: @success;
-}
-
-.badge-error {
- background-color: fade(@danger, 15%);
- color: @danger;
-}
-
-.badge-warning {
- background-color: fade(@warning, 15%);
- color: @warning;
-}
-
-.badge-default {
- background-color: fade(@text-tertiary-raw, 15%);
- color: @text-tertiary;
-}
diff --git a/frontend/src/styles/components/_badges.scss b/frontend/src/styles/components/_badges.scss
new file mode 100644
index 00000000..922dc1f4
--- /dev/null
+++ b/frontend/src/styles/components/_badges.scss
@@ -0,0 +1,193 @@
+// ============================================
+// BADGE COMPONENTS
+// ============================================
+
+// Status badge
+.status-badge {
+ display: flex;
+ align-items: center;
+ gap: $space-2 - 2;
+ padding: $space-1 $space-2 + 2;
+ border-radius: $radius-full;
+ font-size: $font-size-xs + 1;
+ font-weight: $font-weight-semibold;
+ border: 1px solid transparent;
+}
+
+.status-dot {
+ @include status-dot(currentColor);
+}
+
+// Status variants
+.status-active {
+ background: $success-bg;
+ color: $success;
+ border-color: $success-border;
+}
+
+.status-warning {
+ background: $warning-bg;
+ color: $warning;
+ border-color: $warning-border;
+}
+
+.status-stopped {
+ background: fade($text-tertiary-raw, 10%);
+ color: $text-tertiary;
+ border-color: fade($text-tertiary-raw, 20%);
+}
+
+.status-error {
+ background: $danger-bg;
+ color: $danger;
+ border-color: $danger-border;
+}
+
+// App type badge
+.app-type {
+ background: $bg-hover;
+ padding: $space-1 - 2 $space-2;
+ border-radius: $radius-sm;
+ font-weight: $font-weight-semibold;
+ font-size: $font-size-xs;
+ letter-spacing: 0.5px;
+ text-transform: uppercase;
+}
+
+// SSL badge
+.ssl-badge {
+ background: $success-bg;
+ color: $success;
+ padding: $space-1 - 2 $space-2;
+ border-radius: $radius-sm;
+ font-size: $font-size-xs;
+ font-weight: $font-weight-semibold;
+}
+
+// Active badge (for themes/plugins)
+.active-badge {
+ background: $success-bg;
+ color: $success;
+ padding: $space-1 $space-3;
+ border-radius: $radius-full;
+ font-size: $font-size-sm;
+ font-weight: $font-weight-semibold;
+}
+
+// Database type badge
+.db-type-badge {
+ display: inline-flex;
+ align-items: center;
+ gap: $space-1;
+ background: $bg-hover;
+ padding: $space-1 - 2 $space-2;
+ border-radius: $radius-sm;
+ font-size: $font-size-xs;
+ font-weight: $font-weight-semibold;
+ text-transform: uppercase;
+ letter-spacing: 0.3px;
+
+ &.mysql {
+ color: $color-mysql;
+ }
+
+ &.postgresql {
+ color: $color-postgresql;
+ }
+}
+
+// Privilege tag
+.privilege-tag {
+ background: $accent-glow;
+ color: $accent-primary;
+ padding: $space-1 - 2 $space-2;
+ border-radius: $radius-sm;
+ font-size: $font-size-xs;
+ font-weight: $font-weight-semibold;
+ text-transform: uppercase;
+ letter-spacing: 0.3px;
+}
+
+// Table name tag
+.table-tag {
+ background: $bg-hover;
+ border: 1px solid $border-subtle;
+ padding: $space-2 - 2 $space-3;
+ border-radius: $radius-md;
+ @include mono-text();
+ color: $text-secondary;
+}
+
+// Environment badge
+.env-badge {
+ display: inline-flex;
+ align-items: center;
+ gap: $space-1;
+ padding: $space-1 - 2 $space-2;
+ border-radius: $radius-sm;
+ font-size: $font-size-xs;
+ font-weight: $font-weight-semibold;
+ text-transform: uppercase;
+ letter-spacing: 0.3px;
+ border: 1px solid transparent;
+
+ &.env-production {
+ background: fade($success, 15%);
+ color: $success;
+ border-color: fade($success, 30%);
+ }
+
+ &.env-development {
+ background: fade($accent-primary-raw, 15%);
+ color: $accent-primary;
+ border-color: fade($accent-primary-raw, 30%);
+ }
+
+ &.env-staging {
+ background: fade($warning, 15%);
+ color: $warning;
+ border-color: fade($warning, 30%);
+ }
+
+ .env-linked-icon {
+ opacity: 0.7;
+ }
+}
+
+// Global Badge Base
+.badge {
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
+ padding: 0.25rem 0.5rem;
+ font-size: 0.75rem;
+ font-weight: 600;
+ line-height: 1;
+ border-radius: 9999px;
+ white-space: nowrap;
+}
+
+.badge-info {
+ background-color: fade($info, 15%);
+ color: $info;
+}
+
+.badge-success {
+ background-color: fade($success, 15%);
+ color: $success;
+}
+
+.badge-error {
+ background-color: fade($danger, 15%);
+ color: $danger;
+}
+
+.badge-warning {
+ background-color: fade($warning, 15%);
+ color: $warning;
+}
+
+.badge-default {
+ background-color: fade($text-tertiary-raw, 15%);
+ color: $text-tertiary;
+}
diff --git a/frontend/src/styles/components/_build.less b/frontend/src/styles/components/_build.less
deleted file mode 100644
index 5e8c16ef..00000000
--- a/frontend/src/styles/components/_build.less
+++ /dev/null
@@ -1,272 +0,0 @@
-// ============================================
-// BUILD TAB STYLES
-// ============================================
-
-// Build Tab Container
-.build-tab {
- display: flex;
- flex-direction: column;
- gap: @space-6;
-}
-
-// Detection Results
-.detection-results {
- display: grid;
- grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
- gap: @space-4;
- margin-top: @space-4;
-}
-
-.detection-item {
- display: flex;
- flex-direction: column;
- gap: @space-1;
-}
-
-.detection-label {
- font-size: @font-size-xs;
- color: @text-tertiary;
- text-transform: uppercase;
- letter-spacing: 0.05em;
-}
-
-.detection-value {
- font-size: @font-size-md;
- font-weight: @font-weight-medium;
- color: @text-primary;
- text-transform: capitalize;
-
- &.text-success {
- color: @success;
- }
-}
-
-// Build Actions
-.build-actions {
- display: flex;
- gap: @space-3;
- margin-top: @space-4;
- padding-top: @space-4;
- border-top: 1px solid @border-subtle;
-}
-
-// Info List
-.info-list {
- display: flex;
- flex-direction: column;
- gap: @space-3;
-}
-
-.info-item {
- display: flex;
- justify-content: space-between;
- align-items: center;
- padding: @space-2 0;
- border-bottom: 1px solid @border-subtle;
-
- &:last-child {
- border-bottom: none;
- }
-}
-
-.info-label {
- font-size: @font-size-sm;
- color: @text-secondary;
-}
-
-.info-value {
- font-size: @font-size-sm;
- font-weight: @font-weight-medium;
- color: @text-primary;
-
- &.mono {
- font-family: @font-mono;
- }
-}
-
-// Current Deployment Card
-.current-deployment {
- background: linear-gradient(135deg, fade(@success, 5%), fade(@accent-primary-raw, 5%));
- border-color: fade(@success, 30%);
-
- .deployment-current-info {
- display: flex;
- flex-direction: column;
- gap: @space-3;
- margin-top: @space-4;
- }
-
- .deployment-version {
- display: flex;
- align-items: center;
- gap: @space-3;
- }
-
- .version-number {
- font-size: @font-size-2xl;
- font-weight: @font-weight-bold;
- color: @text-primary;
- }
-
- .deployment-commit {
- display: flex;
- align-items: center;
- gap: @space-2;
- }
-
- .commit-hash {
- font-family: @font-mono;
- font-size: @font-size-sm;
- padding: @space-1 @space-2;
- background: @bg-hover;
- border-radius: @radius-sm;
- }
-
- .commit-message {
- font-size: @font-size-sm;
- color: @text-secondary;
- max-width: 400px;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
-
- .deployment-meta {
- display: flex;
- gap: @space-4;
- font-size: @font-size-sm;
- color: @text-tertiary;
- }
-
- .deployment-actions {
- margin-top: @space-4;
- padding-top: @space-4;
- border-top: 1px solid @border-subtle;
- }
-}
-
-// Deployment History Table
-.version-tag {
- font-family: @font-mono;
- font-size: @font-size-sm;
- font-weight: @font-weight-medium;
-}
-
-// Build Logs List
-.build-logs-list {
- display: flex;
- flex-direction: column;
- gap: @space-2;
-}
-
-.build-log-item {
- display: flex;
- align-items: center;
- gap: @space-3;
- padding: @space-3;
- background: @bg-hover;
- border-radius: @radius-md;
- cursor: pointer;
- transition: all @transition-fast;
-
- &:hover {
- background: @bg-card;
- box-shadow: @shadow-sm;
- }
-
- .build-log-method {
- font-size: @font-size-sm;
- font-weight: @font-weight-medium;
- color: @text-primary;
- text-transform: capitalize;
- }
-
- .build-log-time {
- font-size: @font-size-sm;
- color: @text-secondary;
- }
-
- .build-log-lines {
- font-size: @font-size-xs;
- color: @text-tertiary;
- margin-left: auto;
- }
-}
-
-// Build Log Modal
-.build-log-meta {
- display: flex;
- align-items: center;
- gap: @space-4;
- margin-bottom: @space-4;
- padding-bottom: @space-4;
- border-bottom: 1px solid @border-subtle;
- flex-wrap: wrap;
-
- span {
- font-size: @font-size-sm;
- color: @text-secondary;
- }
-}
-
-.build-log-output {
- margin: 0;
- padding: @space-4;
- background: @bg-body;
- border-radius: @radius-md;
- font-family: @font-mono;
- font-size: @font-size-sm;
- line-height: @line-height-relaxed;
- color: @text-primary;
- max-height: 500px;
- overflow: auto;
- white-space: pre-wrap;
- word-break: break-all;
-}
-
-// Modal Large
-.modal-lg {
- max-width: 900px;
- width: 90%;
-}
-
-// Alert with close button
-.alert {
- position: relative;
- padding: @space-4;
- border-radius: @radius-md;
- margin-bottom: @space-4;
-
- &-danger {
- background: @danger-bg;
- border: 1px solid @danger-border;
- color: @danger;
- }
-
- &-close {
- position: absolute;
- top: @space-2;
- right: @space-3;
- background: none;
- border: none;
- font-size: @font-size-lg;
- color: inherit;
- opacity: 0.6;
- cursor: pointer;
-
- &:hover {
- opacity: 1;
- }
- }
-}
-
-// Button extra small
-.btn-xs {
- padding: @space-1 @space-2;
- font-size: @font-size-xs;
-}
-
-// Utility classes
-.mono {
- font-family: @font-mono;
-}
diff --git a/frontend/src/styles/components/_build.scss b/frontend/src/styles/components/_build.scss
new file mode 100644
index 00000000..28d65b3b
--- /dev/null
+++ b/frontend/src/styles/components/_build.scss
@@ -0,0 +1,272 @@
+// ============================================
+// BUILD TAB STYLES
+// ============================================
+
+// Build Tab Container
+.build-tab {
+ display: flex;
+ flex-direction: column;
+ gap: $space-6;
+}
+
+// Detection Results
+.detection-results {
+ display: grid;
+ grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
+ gap: $space-4;
+ margin-top: $space-4;
+}
+
+.detection-item {
+ display: flex;
+ flex-direction: column;
+ gap: $space-1;
+}
+
+.detection-label {
+ font-size: $font-size-xs;
+ color: $text-tertiary;
+ text-transform: uppercase;
+ letter-spacing: 0.05em;
+}
+
+.detection-value {
+ font-size: $font-size-md;
+ font-weight: $font-weight-medium;
+ color: $text-primary;
+ text-transform: capitalize;
+
+ &.text-success {
+ color: $success;
+ }
+}
+
+// Build Actions
+.build-actions {
+ display: flex;
+ gap: $space-3;
+ margin-top: $space-4;
+ padding-top: $space-4;
+ border-top: 1px solid $border-subtle;
+}
+
+// Info List
+.info-list {
+ display: flex;
+ flex-direction: column;
+ gap: $space-3;
+}
+
+.info-item {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ padding: $space-2 0;
+ border-bottom: 1px solid $border-subtle;
+
+ &:last-child {
+ border-bottom: none;
+ }
+}
+
+.info-label {
+ font-size: $font-size-sm;
+ color: $text-secondary;
+}
+
+.info-value {
+ font-size: $font-size-sm;
+ font-weight: $font-weight-medium;
+ color: $text-primary;
+
+ &.mono {
+ font-family: $font-mono;
+ }
+}
+
+// Current Deployment Card
+.current-deployment {
+ background: linear-gradient(135deg, fade($success, 5%), fade($accent-primary-raw, 5%));
+ border-color: fade($success, 30%);
+
+ .deployment-current-info {
+ display: flex;
+ flex-direction: column;
+ gap: $space-3;
+ margin-top: $space-4;
+ }
+
+ .deployment-version {
+ display: flex;
+ align-items: center;
+ gap: $space-3;
+ }
+
+ .version-number {
+ font-size: $font-size-2xl;
+ font-weight: $font-weight-bold;
+ color: $text-primary;
+ }
+
+ .deployment-commit {
+ display: flex;
+ align-items: center;
+ gap: $space-2;
+ }
+
+ .commit-hash {
+ font-family: $font-mono;
+ font-size: $font-size-sm;
+ padding: $space-1 $space-2;
+ background: $bg-hover;
+ border-radius: $radius-sm;
+ }
+
+ .commit-message {
+ font-size: $font-size-sm;
+ color: $text-secondary;
+ max-width: 400px;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+ }
+
+ .deployment-meta {
+ display: flex;
+ gap: $space-4;
+ font-size: $font-size-sm;
+ color: $text-tertiary;
+ }
+
+ .deployment-actions {
+ margin-top: $space-4;
+ padding-top: $space-4;
+ border-top: 1px solid $border-subtle;
+ }
+}
+
+// Deployment History Table
+.version-tag {
+ font-family: $font-mono;
+ font-size: $font-size-sm;
+ font-weight: $font-weight-medium;
+}
+
+// Build Logs List
+.build-logs-list {
+ display: flex;
+ flex-direction: column;
+ gap: $space-2;
+}
+
+.build-log-item {
+ display: flex;
+ align-items: center;
+ gap: $space-3;
+ padding: $space-3;
+ background: $bg-hover;
+ border-radius: $radius-md;
+ cursor: pointer;
+ transition: all $transition-fast;
+
+ &:hover {
+ background: $bg-card;
+ box-shadow: $shadow-sm;
+ }
+
+ .build-log-method {
+ font-size: $font-size-sm;
+ font-weight: $font-weight-medium;
+ color: $text-primary;
+ text-transform: capitalize;
+ }
+
+ .build-log-time {
+ font-size: $font-size-sm;
+ color: $text-secondary;
+ }
+
+ .build-log-lines {
+ font-size: $font-size-xs;
+ color: $text-tertiary;
+ margin-left: auto;
+ }
+}
+
+// Build Log Modal
+.build-log-meta {
+ display: flex;
+ align-items: center;
+ gap: $space-4;
+ margin-bottom: $space-4;
+ padding-bottom: $space-4;
+ border-bottom: 1px solid $border-subtle;
+ flex-wrap: wrap;
+
+ span {
+ font-size: $font-size-sm;
+ color: $text-secondary;
+ }
+}
+
+.build-log-output {
+ margin: 0;
+ padding: $space-4;
+ background: $bg-body;
+ border-radius: $radius-md;
+ font-family: $font-mono;
+ font-size: $font-size-sm;
+ line-height: $line-height-relaxed;
+ color: $text-primary;
+ max-height: 500px;
+ overflow: auto;
+ white-space: pre-wrap;
+ word-break: break-all;
+}
+
+// Modal Large
+.modal-lg {
+ max-width: 900px;
+ width: 90%;
+}
+
+// Alert with close button
+.alert {
+ position: relative;
+ padding: $space-4;
+ border-radius: $radius-md;
+ margin-bottom: $space-4;
+
+ &-danger {
+ background: $danger-bg;
+ border: 1px solid $danger-border;
+ color: $danger;
+ }
+
+ &-close {
+ position: absolute;
+ top: $space-2;
+ right: $space-3;
+ background: none;
+ border: none;
+ font-size: $font-size-lg;
+ color: inherit;
+ opacity: 0.6;
+ cursor: pointer;
+
+ &:hover {
+ opacity: 1;
+ }
+ }
+}
+
+// Button extra small
+.btn-xs {
+ padding: $space-1 $space-2;
+ font-size: $font-size-xs;
+}
+
+// Utility classes
+.mono {
+ font-family: $font-mono;
+}
diff --git a/frontend/src/styles/components/_buttons.less b/frontend/src/styles/components/_buttons.scss
similarity index 59%
rename from frontend/src/styles/components/_buttons.less
rename to frontend/src/styles/components/_buttons.scss
index c11c9c1c..76373667 100644
--- a/frontend/src/styles/components/_buttons.less
+++ b/frontend/src/styles/components/_buttons.scss
@@ -3,7 +3,7 @@
// ============================================
.btn {
- .button-base();
+ @include button-base();
svg {
width: 16px;
@@ -13,56 +13,56 @@
// Primary button (accent color)
.btn-primary {
- background-color: @accent-primary;
+ background-color: $accent-primary;
color: white;
- box-shadow: @shadow-accent;
+ box-shadow: $shadow-accent;
&:hover:not(:disabled) {
- background-color: @accent-hover;
+ background-color: $accent-hover;
}
}
// Secondary button (outlined)
.btn-secondary {
background-color: transparent;
- border-color: @border-active;
- color: @text-primary;
+ border-color: $border-active;
+ color: $text-primary;
&:hover:not(:disabled) {
- background-color: @bg-hover;
+ background-color: $bg-hover;
}
}
// Danger button
.btn-danger {
- background: @danger;
+ background: $danger;
color: white;
&:hover:not(:disabled) {
- background: @danger-hover;
+ background: $danger-hover;
}
}
// Ghost button (no border)
.btn-ghost {
background: transparent;
- color: @text-secondary;
+ color: $text-secondary;
&:hover:not(:disabled) {
- background-color: @bg-hover;
- color: @text-primary;
+ background-color: $bg-hover;
+ color: $text-primary;
}
}
// Size variants
.btn-sm {
- padding: @space-1 @space-2;
- font-size: @font-size-xs + 1;
+ padding: $space-1 $space-2;
+ font-size: $font-size-xs + 1;
}
.btn-lg {
- padding: @space-3 @space-6;
- font-size: @font-size-base;
+ padding: $space-3 $space-6;
+ font-size: $font-size-base;
}
// Full width
@@ -73,7 +73,7 @@
// Icon only button
.btn-icon {
- padding: @space-2;
+ padding: $space-2;
svg {
width: 18px;
@@ -85,20 +85,20 @@
.btn-expand {
background: none;
border: none;
- color: @text-tertiary;
+ color: $text-tertiary;
cursor: pointer;
- padding: @space-1 @space-2;
- font-size: @font-size-sm;
- .flex-start();
- gap: @space-1;
- .transition(color);
+ padding: $space-1 $space-2;
+ font-size: $font-size-sm;
+ @include flex-start();
+ gap: $space-1;
+ @include transition(color);
&:hover {
- color: @text-primary;
+ color: $text-primary;
}
}
-// Loading state (see _spinner.less for spinner-specific styles)
+// Loading state (see _spinner.scss for spinner-specific styles)
.btn-loading {
position: relative;
pointer-events: none;
diff --git a/frontend/src/styles/components/_cards.less b/frontend/src/styles/components/_cards.less
deleted file mode 100644
index 91daf1fe..00000000
--- a/frontend/src/styles/components/_cards.less
+++ /dev/null
@@ -1,239 +0,0 @@
-// ============================================
-// CARD COMPONENTS
-// ============================================
-
-.card {
- .card-base();
- padding: @space-6;
- position: relative;
- overflow: hidden;
-
- &:hover {
- transform: translateY(-2px);
- }
-}
-
-.card-header {
- .flex-between();
- margin-bottom: @space-5;
-}
-
-.card h3 {
- font-size: @font-size-md;
- font-weight: @font-weight-semibold;
- color: @text-primary;
- margin-bottom: @space-1;
-}
-
-.card-link {
- color: @text-secondary;
- text-decoration: none;
- font-size: @font-size-sm + 1;
- .transition(color);
-
- &:hover {
- color: @accent-primary;
- }
-}
-
-// Application/Service icon
-.app-icon {
- .icon-box(48px);
- border-radius: @radius-xl - 2;
- font-size: @font-size-lg;
- font-weight: @font-weight-bold;
- color: white;
-}
-
-// Metrics row at bottom of cards
-.metric-row {
- margin-top: @space-6;
- padding-top: @space-5;
- border-top: 1px solid @border-subtle;
- .flex-between();
- font-size: @font-size-sm;
- color: @text-secondary;
-}
-
-.metric-item {
- .flex-column();
- gap: @space-1;
-}
-
-.metric-value {
- font-weight: @font-weight-semibold;
- color: @text-primary;
- .mono-text();
-}
-
-// Stats grid layout
-.stats-grid {
- display: grid;
- grid-template-columns: repeat(4, 1fr);
- gap: @space-4;
- margin-bottom: @space-6;
-
- @media (max-width: @breakpoint-xl) {
- grid-template-columns: repeat(2, 1fr);
- }
-
- @media (max-width: @breakpoint-sm) {
- grid-template-columns: 1fr;
- }
-}
-
-// Stat cards (dashboard)
-.stat-card {
- background: @bg-card;
- padding: @space-5;
- border-radius: @radius-xl;
- border: 1px solid @border-subtle;
- display: flex;
- align-items: center;
- gap: @space-4;
-}
-
-.stat-icon {
- width: 48px;
- height: 48px;
- display: flex;
- align-items: center;
- justify-content: center;
- border-radius: @radius-lg;
- flex-shrink: 0;
-
- svg {
- width: 24px;
- height: 24px;
- stroke: currentColor;
- stroke-width: 2;
- fill: none;
- }
-
- // Default colors
- background: fade(@accent-primary-raw, 10%);
- color: @accent-primary;
-
- &.backups {
- background: fade(@accent-primary-raw, 10%);
- color: @accent-primary;
- }
-
- &.apps {
- background: fade(@success, 10%);
- color: @success;
- }
-
- &.databases {
- background: fade(@color-postgresql, 10%);
- color: @color-postgresql;
- }
-
- &.size {
- background: fade(@warning, 10%);
- color: @warning;
- }
-
- &.alerts {
- background: fade(@danger, 10%);
- color: @danger;
- }
-
- &.schedules {
- background: fade(@color-docker, 10%);
- color: @color-docker;
- }
-}
-
-.stat-content {
- display: flex;
- flex-direction: column;
- gap: @space-1;
- min-width: 0;
-}
-
-.stat-label {
- font-size: @font-size-sm;
- color: @text-tertiary;
- font-weight: @font-weight-medium;
-}
-
-.stat-value {
- font-size: @font-size-xl;
- font-weight: @font-weight-bold;
- color: @text-primary;
- line-height: 1.2;
-}
-
-.stat-suffix {
- font-size: @font-size-base;
- color: @text-tertiary;
- font-weight: @font-weight-normal;
-}
-
-// Progress bar
-.progress-bar {
- height: 4px;
- background: @bg-hover;
- border-radius: @radius-sm - 2;
- overflow: hidden;
- margin-top: @space-1;
-}
-
-.progress-fill {
- height: 100%;
- border-radius: @radius-sm - 2;
- .transition(width);
-}
-
-// Empty state card
-.empty-state {
- text-align: center;
- padding: @space-16 @space-5;
- background: @bg-card;
- border-radius: @radius-xl;
- border: 1px solid @border-subtle;
-
- svg {
- color: @text-tertiary;
- margin-bottom: @space-4;
- }
-
- h3 {
- font-size: @font-size-md;
- font-weight: @font-weight-semibold;
- margin-bottom: @space-2;
- }
-
- p {
- color: @text-secondary;
- margin-bottom: @space-6;
- }
-}
-
-// Section header
-.section-header {
- .flex-between();
- margin-bottom: @space-5;
-
- h3 {
- font-size: @font-size-md;
- font-weight: @font-weight-semibold;
- }
-}
-
-// Danger zone card
-.danger-zone {
- border-color: fade(@danger, 30%);
- background: fade(@danger, 5%);
-
- h4 {
- color: @danger;
- margin-bottom: @space-2;
- }
-
- p {
- color: @text-secondary;
- margin-bottom: @space-4;
- }
-}
diff --git a/frontend/src/styles/components/_cards.scss b/frontend/src/styles/components/_cards.scss
new file mode 100644
index 00000000..c0f90cd6
--- /dev/null
+++ b/frontend/src/styles/components/_cards.scss
@@ -0,0 +1,239 @@
+// ============================================
+// CARD COMPONENTS
+// ============================================
+
+.card {
+ @include card-base();
+ padding: $space-6;
+ position: relative;
+ overflow: hidden;
+
+ &:hover {
+ transform: translateY(-2px);
+ }
+}
+
+.card-header {
+ @include flex-between();
+ margin-bottom: $space-5;
+}
+
+.card h3 {
+ font-size: $font-size-md;
+ font-weight: $font-weight-semibold;
+ color: $text-primary;
+ margin-bottom: $space-1;
+}
+
+.card-link {
+ color: $text-secondary;
+ text-decoration: none;
+ font-size: $font-size-sm + 1;
+ @include transition(color);
+
+ &:hover {
+ color: $accent-primary;
+ }
+}
+
+// Application/Service icon
+.app-icon {
+ @include icon-box(48px);
+ border-radius: $radius-xl - 2;
+ font-size: $font-size-lg;
+ font-weight: $font-weight-bold;
+ color: white;
+}
+
+// Metrics row at bottom of cards
+.metric-row {
+ margin-top: $space-6;
+ padding-top: $space-5;
+ border-top: 1px solid $border-subtle;
+ @include flex-between();
+ font-size: $font-size-sm;
+ color: $text-secondary;
+}
+
+.metric-item {
+ @include flex-column();
+ gap: $space-1;
+}
+
+.metric-value {
+ font-weight: $font-weight-semibold;
+ color: $text-primary;
+ @include mono-text();
+}
+
+// Stats grid layout
+.stats-grid {
+ display: grid;
+ grid-template-columns: repeat(4, 1fr);
+ gap: $space-4;
+ margin-bottom: $space-6;
+
+ @media (max-width: $breakpoint-xl) {
+ grid-template-columns: repeat(2, 1fr);
+ }
+
+ @media (max-width: $breakpoint-sm) {
+ grid-template-columns: 1fr;
+ }
+}
+
+// Stat cards (dashboard)
+.stat-card {
+ background: $bg-card;
+ padding: $space-5;
+ border-radius: $radius-xl;
+ border: 1px solid $border-subtle;
+ display: flex;
+ align-items: center;
+ gap: $space-4;
+}
+
+.stat-icon {
+ width: 48px;
+ height: 48px;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ border-radius: $radius-lg;
+ flex-shrink: 0;
+
+ svg {
+ width: 24px;
+ height: 24px;
+ stroke: currentColor;
+ stroke-width: 2;
+ fill: none;
+ }
+
+ // Default colors
+ background: fade($accent-primary-raw, 10%);
+ color: $accent-primary;
+
+ &.backups {
+ background: fade($accent-primary-raw, 10%);
+ color: $accent-primary;
+ }
+
+ &.apps {
+ background: fade($success, 10%);
+ color: $success;
+ }
+
+ &.databases {
+ background: fade($color-postgresql, 10%);
+ color: $color-postgresql;
+ }
+
+ &.size {
+ background: fade($warning, 10%);
+ color: $warning;
+ }
+
+ &.alerts {
+ background: fade($danger, 10%);
+ color: $danger;
+ }
+
+ &.schedules {
+ background: fade($color-docker, 10%);
+ color: $color-docker;
+ }
+}
+
+.stat-content {
+ display: flex;
+ flex-direction: column;
+ gap: $space-1;
+ min-width: 0;
+}
+
+.stat-label {
+ font-size: $font-size-sm;
+ color: $text-tertiary;
+ font-weight: $font-weight-medium;
+}
+
+.stat-value {
+ font-size: $font-size-xl;
+ font-weight: $font-weight-bold;
+ color: $text-primary;
+ line-height: 1.2;
+}
+
+.stat-suffix {
+ font-size: $font-size-base;
+ color: $text-tertiary;
+ font-weight: $font-weight-normal;
+}
+
+// Progress bar
+.progress-bar {
+ height: 4px;
+ background: $bg-hover;
+ border-radius: $radius-sm - 2;
+ overflow: hidden;
+ margin-top: $space-1;
+}
+
+.progress-fill {
+ height: 100%;
+ border-radius: $radius-sm - 2;
+ @include transition(width);
+}
+
+// Empty state card
+.empty-state {
+ text-align: center;
+ padding: $space-16 $space-5;
+ background: $bg-card;
+ border-radius: $radius-xl;
+ border: 1px solid $border-subtle;
+
+ svg {
+ color: $text-tertiary;
+ margin-bottom: $space-4;
+ }
+
+ h3 {
+ font-size: $font-size-md;
+ font-weight: $font-weight-semibold;
+ margin-bottom: $space-2;
+ }
+
+ p {
+ color: $text-secondary;
+ margin-bottom: $space-6;
+ }
+}
+
+// Section header
+.section-header {
+ @include flex-between();
+ margin-bottom: $space-5;
+
+ h3 {
+ font-size: $font-size-md;
+ font-weight: $font-weight-semibold;
+ }
+}
+
+// Danger zone card
+.danger-zone {
+ border-color: fade($danger, 30%);
+ background: fade($danger, 5%);
+
+ h4 {
+ color: $danger;
+ margin-bottom: $space-2;
+ }
+
+ p {
+ color: $text-secondary;
+ margin-bottom: $space-4;
+ }
+}
diff --git a/frontend/src/styles/components/_credentials.less b/frontend/src/styles/components/_credentials.less
deleted file mode 100644
index 3738961a..00000000
--- a/frontend/src/styles/components/_credentials.less
+++ /dev/null
@@ -1,66 +0,0 @@
-// ============================================
-// CREDENTIALS DISPLAY COMPONENT
-// ============================================
-
-.credentials-box {
- background: @bg-body;
- border: 1px solid @border-subtle;
- border-radius: @radius-lg;
- padding: @space-4;
- margin: @space-4 0;
-
- h4 {
- font-size: @font-size-base;
- font-weight: @font-weight-semibold;
- margin-bottom: @space-3;
- color: @success;
- }
-
- .warning {
- font-size: @font-size-sm;
- color: @warning;
- margin-bottom: @space-3;
- .flex-start();
- gap: @space-2 - 2;
- }
-}
-
-.credential-row {
- .flex-start();
- gap: @space-3;
- padding: @space-2 0;
- border-bottom: 1px solid @border-subtle;
-
- &:last-child {
- border-bottom: none;
- }
-}
-
-.credential-label {
- font-size: @font-size-sm;
- color: @text-tertiary;
- min-width: 80px;
-}
-
-.credential-value {
- .mono-text();
- font-size: @font-size-sm + 1;
- color: @text-primary;
- background: @bg-hover;
- padding: @space-1 @space-2;
- border-radius: @radius-sm;
- flex: 1;
-}
-
-.credential-copy {
- background: none;
- border: none;
- color: @text-tertiary;
- cursor: pointer;
- padding: @space-1;
- .transition(color);
-
- &:hover {
- color: @accent-primary;
- }
-}
diff --git a/frontend/src/styles/components/_credentials.scss b/frontend/src/styles/components/_credentials.scss
new file mode 100644
index 00000000..bb5e4d75
--- /dev/null
+++ b/frontend/src/styles/components/_credentials.scss
@@ -0,0 +1,66 @@
+// ============================================
+// CREDENTIALS DISPLAY COMPONENT
+// ============================================
+
+.credentials-box {
+ background: $bg-body;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-lg;
+ padding: $space-4;
+ margin: $space-4 0;
+
+ h4 {
+ font-size: $font-size-base;
+ font-weight: $font-weight-semibold;
+ margin-bottom: $space-3;
+ color: $success;
+ }
+
+ .warning {
+ font-size: $font-size-sm;
+ color: $warning;
+ margin-bottom: $space-3;
+ @include flex-start();
+ gap: $space-2 - 2;
+ }
+}
+
+.credential-row {
+ @include flex-start();
+ gap: $space-3;
+ padding: $space-2 0;
+ border-bottom: 1px solid $border-subtle;
+
+ &:last-child {
+ border-bottom: none;
+ }
+}
+
+.credential-label {
+ font-size: $font-size-sm;
+ color: $text-tertiary;
+ min-width: 80px;
+}
+
+.credential-value {
+ @include mono-text();
+ font-size: $font-size-sm + 1;
+ color: $text-primary;
+ background: $bg-hover;
+ padding: $space-1 $space-2;
+ border-radius: $radius-sm;
+ flex: 1;
+}
+
+.credential-copy {
+ background: none;
+ border: none;
+ color: $text-tertiary;
+ cursor: pointer;
+ padding: $space-1;
+ @include transition(color);
+
+ &:hover {
+ color: $accent-primary;
+ }
+}
diff --git a/frontend/src/styles/components/_deploy.less b/frontend/src/styles/components/_deploy.scss
similarity index 53%
rename from frontend/src/styles/components/_deploy.less
rename to frontend/src/styles/components/_deploy.scss
index 9e4b5fec..76847c64 100644
--- a/frontend/src/styles/components/_deploy.less
+++ b/frontend/src/styles/components/_deploy.scss
@@ -6,30 +6,30 @@
.deploy-tab {
display: flex;
flex-direction: column;
- gap: @space-6;
+ gap: $space-6;
}
// Deploy Setup Empty State
.deploy-setup {
.empty-state {
text-align: center;
- padding: @space-12 @space-8;
- background: @bg-card;
- border: 1px dashed @border-subtle;
- border-radius: @radius-lg;
+ padding: $space-12 $space-8;
+ background: $bg-card;
+ border: 1px dashed $border-subtle;
+ border-radius: $radius-lg;
svg {
- color: @text-tertiary;
- margin-bottom: @space-4;
+ color: $text-tertiary;
+ margin-bottom: $space-4;
}
h3 {
- margin-bottom: @space-2;
+ margin-bottom: $space-2;
}
p {
- color: @text-secondary;
- margin-bottom: @space-6;
+ color: $text-secondary;
+ margin-bottom: $space-6;
max-width: 400px;
margin-left: auto;
margin-right: auto;
@@ -39,69 +39,69 @@
// Deploy Header
.deploy-header {
- margin-bottom: @space-4;
+ margin-bottom: $space-4;
}
.deploy-status-card {
display: flex;
justify-content: space-between;
align-items: center;
- padding: @space-4 @space-6;
- background: @bg-card;
- border: 1px solid @border-subtle;
- border-radius: @radius-lg;
+ padding: $space-4 $space-6;
+ background: $bg-card;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-lg;
}
.deploy-repo-info {
display: flex;
align-items: center;
- gap: @space-3;
+ gap: $space-3;
svg {
- color: @text-secondary;
+ color: $text-secondary;
}
.repo-url {
display: block;
- font-weight: @font-weight-medium;
- color: @text-primary;
+ font-weight: $font-weight-medium;
+ color: $text-primary;
}
.repo-branch {
display: block;
- font-size: @font-size-sm;
- color: @text-secondary;
+ font-size: $font-size-sm;
+ color: $text-secondary;
}
}
.deploy-actions {
display: flex;
- gap: @space-3;
+ gap: $space-3;
}
// Deploy Grid
.deploy-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
- gap: @space-6;
+ gap: $space-6;
}
// Webhook URL
.webhook-url {
display: flex;
- gap: @space-2;
+ gap: $space-2;
align-items: center;
- margin-top: @space-3;
- padding: @space-3;
- background: @bg-hover;
- border-radius: @radius-md;
+ margin-top: $space-3;
+ padding: $space-3;
+ background: $bg-hover;
+ border-radius: $radius-md;
overflow: hidden;
code {
flex: 1;
- font-family: @font-mono;
- font-size: @font-size-sm;
- color: @text-primary;
+ font-family: $font-mono;
+ font-size: $font-size-sm;
+ color: $text-primary;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
@@ -109,58 +109,58 @@
}
.webhook-logs-toggle {
- margin-top: @space-4;
+ margin-top: $space-4;
}
// Webhook Logs
.webhook-logs {
- margin-top: @space-4;
- padding-top: @space-4;
- border-top: 1px solid @border-subtle;
+ margin-top: $space-4;
+ padding-top: $space-4;
+ border-top: 1px solid $border-subtle;
}
.webhook-logs-header {
display: flex;
justify-content: space-between;
align-items: center;
- margin-bottom: @space-3;
+ margin-bottom: $space-3;
h4 {
margin: 0;
- font-size: @font-size-sm;
- font-weight: @font-weight-semibold;
- color: @text-secondary;
+ font-size: $font-size-sm;
+ font-weight: $font-weight-semibold;
+ color: $text-secondary;
}
}
.webhook-logs-list {
display: flex;
flex-direction: column;
- gap: @space-3;
+ gap: $space-3;
max-height: 400px;
overflow-y: auto;
}
.webhook-log-item {
- padding: @space-3;
- background: @bg-hover;
- border-radius: @radius-md;
- border: 1px solid @border-subtle;
+ padding: $space-3;
+ background: $bg-hover;
+ border-radius: $radius-md;
+ border: 1px solid $border-subtle;
}
.webhook-log-header {
display: flex;
justify-content: space-between;
align-items: center;
- margin-bottom: @space-2;
+ margin-bottom: $space-2;
}
.provider-badge {
display: inline-block;
- padding: @space-1 @space-2;
- font-size: @font-size-xs;
- font-weight: @font-weight-medium;
- border-radius: @radius-sm;
+ padding: $space-1 $space-2;
+ font-size: $font-size-xs;
+ font-weight: $font-weight-medium;
+ border-radius: $radius-sm;
text-transform: capitalize;
&.github {
@@ -180,27 +180,27 @@
}
.webhook-log-time {
- font-size: @font-size-xs;
- color: @text-tertiary;
+ font-size: $font-size-xs;
+ color: $text-tertiary;
}
.webhook-log-details {
- margin-bottom: @space-2;
+ margin-bottom: $space-2;
}
.webhook-log-size {
- font-size: @font-size-sm;
- color: @text-secondary;
+ font-size: $font-size-sm;
+ color: $text-secondary;
}
.webhook-log-preview {
margin: 0;
- padding: @space-2;
- background: @bg-body;
- border-radius: @radius-sm;
- font-family: @font-mono;
- font-size: @font-size-xs;
- color: @text-secondary;
+ padding: $space-2;
+ background: $bg-body;
+ border-radius: $radius-sm;
+ font-family: $font-mono;
+ font-size: $font-size-xs;
+ color: $text-secondary;
white-space: pre-wrap;
word-break: break-all;
max-height: 100px;
@@ -210,7 +210,7 @@
// Input with action button
.input-with-action {
display: flex;
- gap: @space-2;
+ gap: $space-2;
input {
flex: 1;
@@ -225,29 +225,29 @@
.scripts-grid {
display: grid;
grid-template-columns: 1fr 1fr;
- gap: @space-4;
+ gap: $space-4;
- @media (max-width: 768px) {
+ @media (max-width: $breakpoint-md) {
grid-template-columns: 1fr;
}
}
.script-section {
h4 {
- margin: 0 0 @space-2 0;
- font-size: @font-size-sm;
- color: @text-secondary;
+ margin: 0 0 $space-2 0;
+ font-size: $font-size-sm;
+ color: $text-secondary;
}
}
.script-code {
margin: 0;
- padding: @space-3;
- background: @bg-hover;
- border-radius: @radius-md;
- font-family: @font-mono;
- font-size: @font-size-sm;
- color: @text-primary;
+ padding: $space-3;
+ background: $bg-hover;
+ border-radius: $radius-md;
+ font-family: $font-mono;
+ font-size: $font-size-sm;
+ color: $text-primary;
white-space: pre-wrap;
word-break: break-all;
}
@@ -255,8 +255,8 @@
// Card Actions
.card-actions {
display: flex;
- gap: @space-2;
- margin-top: @space-4;
- padding-top: @space-4;
- border-top: 1px solid @border-subtle;
+ gap: $space-2;
+ margin-top: $space-4;
+ padding-top: $space-4;
+ border-top: 1px solid $border-subtle;
}
diff --git a/frontend/src/styles/components/_env-vars.less b/frontend/src/styles/components/_env-vars.scss
similarity index 55%
rename from frontend/src/styles/components/_env-vars.less
rename to frontend/src/styles/components/_env-vars.scss
index 08f1068e..131d751c 100644
--- a/frontend/src/styles/components/_env-vars.less
+++ b/frontend/src/styles/components/_env-vars.scss
@@ -7,7 +7,7 @@
display: flex;
justify-content: space-between;
align-items: center;
- margin-bottom: @space-4;
+ margin-bottom: $space-4;
h3 {
margin: 0;
@@ -15,35 +15,35 @@
.header-actions {
display: flex;
- gap: @space-2;
+ gap: $space-2;
}
}
.hint {
- color: @text-tertiary;
- font-size: @font-size-sm;
- margin-bottom: @space-6;
+ color: $text-tertiary;
+ font-size: $font-size-sm;
+ margin-bottom: $space-6;
}
}
// Add new variable form
.env-add-form {
- background: @bg-card;
- border: 1px solid @border-subtle;
- border-radius: @radius-md;
- padding: @space-4;
- margin-bottom: @space-6;
+ background: $bg-card;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-md;
+ padding: $space-4;
+ margin-bottom: $space-6;
.env-form-row {
display: flex;
- gap: @space-2;
- margin-bottom: @space-2;
+ gap: $space-2;
+ margin-bottom: $space-2;
}
.env-key-input {
width: 200px;
flex-shrink: 0;
- font-family: @font-mono;
+ font-family: $font-mono;
text-transform: uppercase;
}
@@ -57,11 +57,11 @@
justify-content: center;
width: 40px;
height: 40px;
- background: @bg-hover;
- border: 1px solid @border-subtle;
- border-radius: @radius-sm;
+ background: $bg-hover;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-sm;
cursor: pointer;
- color: @text-tertiary;
+ color: $text-tertiary;
transition: all 0.2s;
input {
@@ -69,28 +69,28 @@
}
&:hover {
- border-color: @accent-primary;
- color: @accent-primary;
+ border-color: $accent-primary;
+ color: $accent-primary;
}
&:has(input:checked) {
- background: fade(@accent-primary-raw, 20%);
- border-color: @accent-primary;
- color: @accent-primary;
+ background: fade($accent-primary-raw, 20%);
+ border-color: $accent-primary;
+ color: $accent-primary;
}
}
.env-description-input {
width: 100%;
- font-size: @font-size-sm;
- color: @text-secondary;
+ font-size: $font-size-sm;
+ color: $text-secondary;
}
}
// Filter
.env-filter {
position: relative;
- margin-bottom: @space-4;
+ margin-bottom: $space-4;
input {
width: 100%;
@@ -104,13 +104,13 @@
transform: translateY(-50%);
background: none;
border: none;
- color: @text-tertiary;
+ color: $text-tertiary;
cursor: pointer;
font-size: 18px;
padding: 4px 8px;
&:hover {
- color: @text-primary;
+ color: $text-primary;
}
}
}
@@ -119,47 +119,47 @@
.env-list {
display: flex;
flex-direction: column;
- gap: @space-2;
+ gap: $space-2;
}
.env-item {
- background: @bg-card;
- border: 1px solid @border-subtle;
- border-radius: @radius-md;
- padding: @space-4;
+ background: $bg-card;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-md;
+ padding: $space-4;
transition: border-color 0.2s;
&:hover {
- border-color: @border-active;
+ border-color: $border-active;
}
&.is-secret {
- border-left: 3px solid @warning;
+ border-left: 3px solid $warning;
}
.env-item-header {
display: flex;
justify-content: space-between;
align-items: center;
- margin-bottom: @space-1;
+ margin-bottom: $space-1;
}
.env-key {
- font-family: @font-mono;
+ font-family: $font-mono;
font-weight: 600;
- color: @text-primary;
+ color: $text-primary;
display: flex;
align-items: center;
- gap: @space-1;
+ gap: $space-1;
.secret-badge {
- color: @warning;
+ color: $warning;
}
}
.env-item-actions {
display: flex;
- gap: @space-1;
+ gap: $space-1;
opacity: 0;
transition: opacity 0.2s;
}
@@ -169,28 +169,28 @@
}
.env-value {
- font-family: @font-mono;
- font-size: @font-size-sm;
- color: @text-secondary;
+ font-family: $font-mono;
+ font-size: $font-size-sm;
+ color: $text-secondary;
word-break: break-all;
- padding: @space-1 0;
+ padding: $space-1 0;
}
.env-description {
- font-size: @font-size-xs;
- color: @text-tertiary;
- margin-top: @space-1;
+ font-size: $font-size-xs;
+ color: $text-tertiary;
+ margin-top: $space-1;
font-style: italic;
}
.env-edit-row {
display: flex;
- gap: @space-2;
- margin-top: @space-2;
+ gap: $space-2;
+ margin-top: $space-2;
input {
flex: 1;
- font-family: @font-mono;
+ font-family: $font-mono;
}
}
}
@@ -203,30 +203,30 @@
height: 28px;
background: transparent;
border: none;
- border-radius: @radius-sm;
- color: @text-tertiary;
+ border-radius: $radius-sm;
+ color: $text-tertiary;
cursor: pointer;
transition: all 0.2s;
&:hover {
- background: @bg-hover;
- color: @text-primary;
+ background: $bg-hover;
+ color: $text-primary;
}
&.btn-danger:hover {
- background: fade(@danger, 20%);
- color: @danger;
+ background: fade($danger, 20%);
+ color: $danger;
}
}
// Empty state
.env-empty {
text-align: center;
- padding: @space-8;
- color: @text-tertiary;
- background: @bg-card;
- border: 1px dashed @border-subtle;
- border-radius: @radius-md;
+ padding: $space-8;
+ color: $text-tertiary;
+ background: $bg-card;
+ border: 1px dashed $border-subtle;
+ border-radius: $radius-md;
}
// Footer
@@ -234,34 +234,34 @@
display: flex;
justify-content: space-between;
align-items: center;
- margin-top: @space-6;
- padding-top: @space-4;
- border-top: 1px solid @border-subtle;
+ margin-top: $space-6;
+ padding-top: $space-4;
+ border-top: 1px solid $border-subtle;
.env-count {
- color: @text-tertiary;
- font-size: @font-size-sm;
+ color: $text-tertiary;
+ font-size: $font-size-sm;
}
}
// Import modal specific
.import-file-upload {
- margin-bottom: @space-4;
+ margin-bottom: $space-4;
}
.import-textarea {
width: 100%;
- font-family: @font-mono;
- font-size: @font-size-sm;
- background: @bg-body;
- border: 1px solid @border-subtle;
- border-radius: @radius-sm;
- padding: @space-4;
+ font-family: $font-mono;
+ font-size: $font-size-sm;
+ background: $bg-body;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-sm;
+ padding: $space-4;
resize: vertical;
min-height: 200px;
&::placeholder {
- color: @text-tertiary;
+ color: $text-tertiary;
}
}
diff --git a/frontend/src/styles/components/_forms.less b/frontend/src/styles/components/_forms.less
deleted file mode 100644
index c07d1d3e..00000000
--- a/frontend/src/styles/components/_forms.less
+++ /dev/null
@@ -1,128 +0,0 @@
-// ============================================
-// FORM COMPONENTS
-// ============================================
-
-.form-group {
- margin-bottom: @space-5;
-
- label {
- display: block;
- font-size: @font-size-sm + 1;
- font-weight: @font-weight-medium;
- color: @text-secondary;
- margin-bottom: @space-2;
- }
-
- input,
- select,
- textarea {
- .input-base();
- }
-
- select {
- cursor: pointer;
- appearance: none;
- background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2371717a' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
- background-repeat: no-repeat;
- background-position: right @space-4 center;
- padding-right: @space-10;
- }
-
- textarea {
- font-family: @font-mono;
- resize: vertical;
- min-height: 120px;
- }
-}
-
-// Two column form row
-.form-row {
- display: grid;
- grid-template-columns: 1fr 1fr;
- gap: @space-4;
-
- @media (max-width: @breakpoint-md) {
- grid-template-columns: 1fr;
- }
-}
-
-// Inline form (input + button)
-.install-form,
-.env-form,
-.command-input {
- display: flex;
- gap: @space-3;
- margin-bottom: @space-6;
-
- input {
- flex: 1;
- .input-base();
- }
-}
-
-// Hint text
-.hint {
- color: @text-tertiary;
- font-size: @font-size-sm + 1;
- margin-bottom: @space-4;
-}
-
-// Error message
-.error-message {
- background: @danger-bg;
- border: 1px solid @danger-border;
- color: @danger;
- padding: @space-3 @space-4;
- border-radius: @radius-lg;
- margin-bottom: @space-5;
- font-size: @font-size-sm + 1;
-}
-
-.error-banner {
- background: @danger-bg;
- border: 1px solid @danger-border;
- color: @danger;
- padding: @space-3 @space-4;
- border-radius: @radius-lg;
- margin-bottom: @space-6;
-}
-
-// Filter toggle (checkbox)
-.filter-toggle {
- .flex-start();
- gap: @space-2;
-
- label {
- .flex-start();
- gap: @space-2;
- color: @text-secondary;
- font-size: @font-size-sm + 1;
- cursor: pointer;
- }
-
- input[type="checkbox"] {
- width: 16px;
- height: 16px;
- accent-color: @accent-primary;
- }
-}
-
-// Code editor textarea
-.code-editor {
- width: 100%;
- min-height: 400px;
- padding: @space-4;
- background: @bg-body;
- border: 1px solid @border-subtle;
- border-radius: @radius-lg;
- color: @text-primary;
- font-family: @font-mono;
- font-size: @font-size-sm + 1;
- line-height: @line-height-relaxed;
- resize: vertical;
- .transition(border-color);
-
- &:focus {
- border-color: @accent-primary;
- }
-}
diff --git a/frontend/src/styles/components/_forms.scss b/frontend/src/styles/components/_forms.scss
new file mode 100644
index 00000000..a0f796cc
--- /dev/null
+++ b/frontend/src/styles/components/_forms.scss
@@ -0,0 +1,128 @@
+// ============================================
+// FORM COMPONENTS
+// ============================================
+
+.form-group {
+ margin-bottom: $space-5;
+
+ label {
+ display: block;
+ font-size: $font-size-sm + 1;
+ font-weight: $font-weight-medium;
+ color: $text-secondary;
+ margin-bottom: $space-2;
+ }
+
+ input,
+ select,
+ textarea {
+ @include input-base();
+ }
+
+ select {
+ cursor: pointer;
+ appearance: none;
+ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2371717a' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
+ background-repeat: no-repeat;
+ background-position: right $space-4 center;
+ padding-right: $space-10;
+ }
+
+ textarea {
+ font-family: $font-mono;
+ resize: vertical;
+ min-height: 120px;
+ }
+}
+
+// Two column form row
+.form-row {
+ display: grid;
+ grid-template-columns: 1fr 1fr;
+ gap: $space-4;
+
+ @media (max-width: $breakpoint-md) {
+ grid-template-columns: 1fr;
+ }
+}
+
+// Inline form (input + button)
+.install-form,
+.env-form,
+.command-input {
+ display: flex;
+ gap: $space-3;
+ margin-bottom: $space-6;
+
+ input {
+ flex: 1;
+ @include input-base();
+ }
+}
+
+// Hint text
+.hint {
+ color: $text-tertiary;
+ font-size: $font-size-sm + 1;
+ margin-bottom: $space-4;
+}
+
+// Error message
+.error-message {
+ background: $danger-bg;
+ border: 1px solid $danger-border;
+ color: $danger;
+ padding: $space-3 $space-4;
+ border-radius: $radius-lg;
+ margin-bottom: $space-5;
+ font-size: $font-size-sm + 1;
+}
+
+.error-banner {
+ background: $danger-bg;
+ border: 1px solid $danger-border;
+ color: $danger;
+ padding: $space-3 $space-4;
+ border-radius: $radius-lg;
+ margin-bottom: $space-6;
+}
+
+// Filter toggle (checkbox)
+.filter-toggle {
+ @include flex-start();
+ gap: $space-2;
+
+ label {
+ @include flex-start();
+ gap: $space-2;
+ color: $text-secondary;
+ font-size: $font-size-sm + 1;
+ cursor: pointer;
+ }
+
+ input[type="checkbox"] {
+ width: 16px;
+ height: 16px;
+ accent-color: $accent-primary;
+ }
+}
+
+// Code editor textarea
+.code-editor {
+ width: 100%;
+ min-height: 400px;
+ padding: $space-4;
+ background: $bg-body;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-lg;
+ color: $text-primary;
+ font-family: $font-mono;
+ font-size: $font-size-sm + 1;
+ line-height: $line-height-relaxed;
+ resize: vertical;
+ @include transition(border-color);
+
+ &:focus {
+ border-color: $accent-primary;
+ }
+}
diff --git a/frontend/src/styles/components/_linked-apps.less b/frontend/src/styles/components/_linked-apps.less
deleted file mode 100644
index 14f539ff..00000000
--- a/frontend/src/styles/components/_linked-apps.less
+++ /dev/null
@@ -1,369 +0,0 @@
-// ============================================
-// LINKED APPS SECTION
-// ============================================
-
-.linked-apps-section {
- margin-top: @space-4;
-}
-
-.linked-apps-header {
- display: flex;
- align-items: center;
- justify-content: space-between;
- margin-bottom: @space-4;
-
- h3 {
- display: flex;
- align-items: center;
- gap: @space-2;
- margin: 0;
- font-size: @font-size-base;
- font-weight: @font-weight-semibold;
- color: @text-primary;
- }
-}
-
-.linked-apps-content {
- display: flex;
- flex-direction: column;
- gap: @space-4;
-}
-
-.current-environment {
- display: flex;
- align-items: center;
- gap: @space-3;
- padding: @space-3;
- background: @bg-hover;
- border-radius: @radius-md;
-
- .env-label {
- font-size: @font-size-sm;
- color: @text-secondary;
- }
-}
-
-.linked-apps-divider {
- display: flex;
- align-items: center;
- gap: @space-3;
- color: @text-tertiary;
- font-size: @font-size-sm;
-
- &::before,
- &::after {
- content: '';
- flex: 1;
- height: 1px;
- background: @border-subtle;
- }
-}
-
-.linked-apps-list {
- display: flex;
- flex-direction: column;
- gap: @space-3;
-}
-
-.linked-app-item {
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding: @space-3;
- background: @bg-card;
- border: 1px solid @border-subtle;
- border-radius: @radius-md;
- transition: border-color @transition-fast;
-
- &:hover {
- border-color: @border-default;
- }
-}
-
-.linked-app-info {
- display: flex;
- align-items: center;
- gap: @space-3;
-}
-
-.linked-app-icon {
- display: flex;
- align-items: center;
- justify-content: center;
- width: 36px;
- height: 36px;
- background: @accent-glow;
- color: @accent-primary;
- border-radius: @radius-md;
-}
-
-.linked-app-details {
- display: flex;
- flex-direction: column;
- gap: @space-1;
-}
-
-.linked-app-name {
- font-weight: @font-weight-medium;
- color: @text-primary;
-}
-
-.linked-app-meta {
- display: flex;
- align-items: center;
- gap: @space-2;
- font-size: @font-size-sm;
-}
-
-.linked-app-port {
- color: @text-tertiary;
- font-family: @font-mono;
- font-size: @font-size-xs;
-}
-
-.linked-app-actions {
- display: flex;
- gap: @space-2;
-}
-
-.linked-apps-empty,
-.linked-apps-info {
- padding: @space-4;
- text-align: center;
- background: @bg-hover;
- border-radius: @radius-md;
-
- p {
- margin: 0 0 @space-3;
- color: @text-secondary;
- font-size: @font-size-sm;
- }
-
- .btn {
- margin-top: @space-2;
- }
-}
-
-.linked-apps-info p {
- margin: 0;
-}
-
-// Shared config info
-.shared-config-info {
- padding: @space-3;
- background: fade(@accent-primary-raw, 10%);
- border: 1px solid fade(@accent-primary-raw, 20%);
- border-radius: @radius-md;
-}
-
-.shared-config-badge {
- display: inline-flex;
- align-items: center;
- gap: @space-1;
- font-size: @font-size-sm;
- font-weight: @font-weight-medium;
- color: @accent-primary;
- margin-bottom: @space-2;
-}
-
-.shared-config-details {
- display: flex;
- flex-wrap: wrap;
- gap: @space-3;
- font-size: @font-size-xs;
- color: @text-secondary;
- font-family: @font-mono;
-
- span {
- background: @bg-card;
- padding: @space-1 @space-2;
- border-radius: @radius-sm;
- }
-}
-
-// ============================================
-// LINK APP MODAL
-// ============================================
-
-.link-app-modal {
- max-width: 500px;
-
- .modal-header h2 {
- display: flex;
- align-items: center;
- gap: @space-2;
- }
-}
-
-.link-app-current {
- display: flex;
- align-items: center;
- gap: @space-2;
- padding: @space-3;
- background: @bg-hover;
- border-radius: @radius-md;
- margin-bottom: @space-4;
-
- .link-app-label {
- color: @text-tertiary;
- font-size: @font-size-sm;
- }
-
- .link-app-name {
- font-weight: @font-weight-medium;
- color: @text-primary;
- }
-}
-
-.link-app-empty {
- text-align: center;
- padding: @space-6;
-
- svg {
- color: @text-tertiary;
- margin-bottom: @space-3;
- }
-
- h3 {
- margin: 0 0 @space-2;
- font-size: @font-size-lg;
- }
-
- p {
- color: @text-secondary;
- font-size: @font-size-sm;
- margin-bottom: @space-4;
- }
-}
-
-.env-radio-group {
- display: flex;
- gap: @space-2;
-}
-
-.env-radio-option {
- flex: 1;
- display: flex;
- flex-direction: column;
- align-items: center;
- gap: @space-2;
- padding: @space-3;
- background: @bg-card;
- border: 2px solid @border-subtle;
- border-radius: @radius-md;
- cursor: pointer;
- transition: all @transition-fast;
-
- input {
- display: none;
- }
-
- &:hover {
- border-color: @border-default;
- }
-
- &.selected {
- border-color: @accent-primary;
- background: @accent-glow;
- }
-
- .env-radio-label {
- font-size: @font-size-xs;
- color: @text-secondary;
- }
-}
-
-.link-preview {
- margin: @space-4 0;
- padding: @space-4;
- background: @bg-hover;
- border-radius: @radius-md;
-}
-
-.link-preview-title {
- font-size: @font-size-xs;
- color: @text-tertiary;
- text-transform: uppercase;
- letter-spacing: 0.5px;
- margin-bottom: @space-3;
-}
-
-.link-preview-diagram {
- display: flex;
- align-items: center;
- justify-content: center;
- gap: @space-4;
-}
-
-.link-preview-app {
- display: flex;
- flex-direction: column;
- align-items: center;
- gap: @space-2;
- padding: @space-3;
- background: @bg-card;
- border: 1px solid @border-subtle;
- border-radius: @radius-md;
- min-width: 120px;
-}
-
-.link-preview-name {
- font-size: @font-size-sm;
- font-weight: @font-weight-medium;
- color: @text-primary;
-}
-
-.link-preview-connector {
- display: flex;
- align-items: center;
- justify-content: center;
- width: 32px;
- height: 32px;
- background: @accent-glow;
- color: @accent-primary;
- border-radius: 50%;
-}
-
-.modal-loading {
- padding: @space-6;
- text-align: center;
- color: @text-secondary;
-}
-
-// Small status badge variant
-.status-badge-sm {
- display: inline-flex;
- align-items: center;
- gap: 4px;
- padding: 2px 8px;
- border-radius: @radius-full;
- font-size: @font-size-xs;
- font-weight: @font-weight-medium;
-
- .status-dot {
- width: 6px;
- height: 6px;
- border-radius: 50%;
- background: currentColor;
- }
-
- &.status-active {
- background: @success-bg;
- color: @success;
- }
-
- &.status-stopped {
- background: fade(@text-tertiary-raw, 10%);
- color: @text-tertiary;
- }
-
- &.status-error {
- background: @danger-bg;
- color: @danger;
- }
-
- &.status-warning {
- background: @warning-bg;
- color: @warning;
- }
-}
diff --git a/frontend/src/styles/components/_linked-apps.scss b/frontend/src/styles/components/_linked-apps.scss
new file mode 100644
index 00000000..64d9ee13
--- /dev/null
+++ b/frontend/src/styles/components/_linked-apps.scss
@@ -0,0 +1,369 @@
+// ============================================
+// LINKED APPS SECTION
+// ============================================
+
+.linked-apps-section {
+ margin-top: $space-4;
+}
+
+.linked-apps-header {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ margin-bottom: $space-4;
+
+ h3 {
+ display: flex;
+ align-items: center;
+ gap: $space-2;
+ margin: 0;
+ font-size: $font-size-base;
+ font-weight: $font-weight-semibold;
+ color: $text-primary;
+ }
+}
+
+.linked-apps-content {
+ display: flex;
+ flex-direction: column;
+ gap: $space-4;
+}
+
+.current-environment {
+ display: flex;
+ align-items: center;
+ gap: $space-3;
+ padding: $space-3;
+ background: $bg-hover;
+ border-radius: $radius-md;
+
+ .env-label {
+ font-size: $font-size-sm;
+ color: $text-secondary;
+ }
+}
+
+.linked-apps-divider {
+ display: flex;
+ align-items: center;
+ gap: $space-3;
+ color: $text-tertiary;
+ font-size: $font-size-sm;
+
+ &::before,
+ &::after {
+ content: '';
+ flex: 1;
+ height: 1px;
+ background: $border-subtle;
+ }
+}
+
+.linked-apps-list {
+ display: flex;
+ flex-direction: column;
+ gap: $space-3;
+}
+
+.linked-app-item {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ padding: $space-3;
+ background: $bg-card;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-md;
+ transition: border-color $transition-fast;
+
+ &:hover {
+ border-color: $border-default;
+ }
+}
+
+.linked-app-info {
+ display: flex;
+ align-items: center;
+ gap: $space-3;
+}
+
+.linked-app-icon {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ width: 36px;
+ height: 36px;
+ background: $accent-glow;
+ color: $accent-primary;
+ border-radius: $radius-md;
+}
+
+.linked-app-details {
+ display: flex;
+ flex-direction: column;
+ gap: $space-1;
+}
+
+.linked-app-name {
+ font-weight: $font-weight-medium;
+ color: $text-primary;
+}
+
+.linked-app-meta {
+ display: flex;
+ align-items: center;
+ gap: $space-2;
+ font-size: $font-size-sm;
+}
+
+.linked-app-port {
+ color: $text-tertiary;
+ font-family: $font-mono;
+ font-size: $font-size-xs;
+}
+
+.linked-app-actions {
+ display: flex;
+ gap: $space-2;
+}
+
+.linked-apps-empty,
+.linked-apps-info {
+ padding: $space-4;
+ text-align: center;
+ background: $bg-hover;
+ border-radius: $radius-md;
+
+ p {
+ margin: 0 0 $space-3;
+ color: $text-secondary;
+ font-size: $font-size-sm;
+ }
+
+ .btn {
+ margin-top: $space-2;
+ }
+}
+
+.linked-apps-info p {
+ margin: 0;
+}
+
+// Shared config info
+.shared-config-info {
+ padding: $space-3;
+ background: fade($accent-primary-raw, 10%);
+ border: 1px solid fade($accent-primary-raw, 20%);
+ border-radius: $radius-md;
+}
+
+.shared-config-badge {
+ display: inline-flex;
+ align-items: center;
+ gap: $space-1;
+ font-size: $font-size-sm;
+ font-weight: $font-weight-medium;
+ color: $accent-primary;
+ margin-bottom: $space-2;
+}
+
+.shared-config-details {
+ display: flex;
+ flex-wrap: wrap;
+ gap: $space-3;
+ font-size: $font-size-xs;
+ color: $text-secondary;
+ font-family: $font-mono;
+
+ span {
+ background: $bg-card;
+ padding: $space-1 $space-2;
+ border-radius: $radius-sm;
+ }
+}
+
+// ============================================
+// LINK APP MODAL
+// ============================================
+
+.link-app-modal {
+ max-width: 500px;
+
+ .modal-header h2 {
+ display: flex;
+ align-items: center;
+ gap: $space-2;
+ }
+}
+
+.link-app-current {
+ display: flex;
+ align-items: center;
+ gap: $space-2;
+ padding: $space-3;
+ background: $bg-hover;
+ border-radius: $radius-md;
+ margin-bottom: $space-4;
+
+ .link-app-label {
+ color: $text-tertiary;
+ font-size: $font-size-sm;
+ }
+
+ .link-app-name {
+ font-weight: $font-weight-medium;
+ color: $text-primary;
+ }
+}
+
+.link-app-empty {
+ text-align: center;
+ padding: $space-6;
+
+ svg {
+ color: $text-tertiary;
+ margin-bottom: $space-3;
+ }
+
+ h3 {
+ margin: 0 0 $space-2;
+ font-size: $font-size-lg;
+ }
+
+ p {
+ color: $text-secondary;
+ font-size: $font-size-sm;
+ margin-bottom: $space-4;
+ }
+}
+
+.env-radio-group {
+ display: flex;
+ gap: $space-2;
+}
+
+.env-radio-option {
+ flex: 1;
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ gap: $space-2;
+ padding: $space-3;
+ background: $bg-card;
+ border: 2px solid $border-subtle;
+ border-radius: $radius-md;
+ cursor: pointer;
+ transition: all $transition-fast;
+
+ input {
+ display: none;
+ }
+
+ &:hover {
+ border-color: $border-default;
+ }
+
+ &.selected {
+ border-color: $accent-primary;
+ background: $accent-glow;
+ }
+
+ .env-radio-label {
+ font-size: $font-size-xs;
+ color: $text-secondary;
+ }
+}
+
+.link-preview {
+ margin: $space-4 0;
+ padding: $space-4;
+ background: $bg-hover;
+ border-radius: $radius-md;
+}
+
+.link-preview-title {
+ font-size: $font-size-xs;
+ color: $text-tertiary;
+ text-transform: uppercase;
+ letter-spacing: 0.5px;
+ margin-bottom: $space-3;
+}
+
+.link-preview-diagram {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ gap: $space-4;
+}
+
+.link-preview-app {
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ gap: $space-2;
+ padding: $space-3;
+ background: $bg-card;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-md;
+ min-width: 120px;
+}
+
+.link-preview-name {
+ font-size: $font-size-sm;
+ font-weight: $font-weight-medium;
+ color: $text-primary;
+}
+
+.link-preview-connector {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ width: 32px;
+ height: 32px;
+ background: $accent-glow;
+ color: $accent-primary;
+ border-radius: 50%;
+}
+
+.modal-loading {
+ padding: $space-6;
+ text-align: center;
+ color: $text-secondary;
+}
+
+// Small status badge variant
+.status-badge-sm {
+ display: inline-flex;
+ align-items: center;
+ gap: 4px;
+ padding: 2px 8px;
+ border-radius: $radius-full;
+ font-size: $font-size-xs;
+ font-weight: $font-weight-medium;
+
+ .status-dot {
+ width: 6px;
+ height: 6px;
+ border-radius: 50%;
+ background: currentColor;
+ }
+
+ &.status-active {
+ background: $success-bg;
+ color: $success;
+ }
+
+ &.status-stopped {
+ background: fade($text-tertiary-raw, 10%);
+ color: $text-tertiary;
+ }
+
+ &.status-error {
+ background: $danger-bg;
+ color: $danger;
+ }
+
+ &.status-warning {
+ background: $warning-bg;
+ color: $warning;
+ }
+}
diff --git a/frontend/src/styles/components/_lists.less b/frontend/src/styles/components/_lists.less
deleted file mode 100644
index 42dd1846..00000000
--- a/frontend/src/styles/components/_lists.less
+++ /dev/null
@@ -1,182 +0,0 @@
-// ============================================
-// LIST COMPONENTS
-// ============================================
-
-// Base list
-.list-base {
- .flex-column-gap(@space-2);
-}
-
-// Info list (key-value pairs)
-.info-list {
- .flex-column-gap(@space-3);
-}
-
-.info-item {
- .flex-between();
- padding: @space-2 0;
- border-bottom: 1px solid @border-subtle;
-
- &:last-child {
- border-bottom: none;
- }
-}
-
-.info-label {
- color: @text-tertiary;
- font-size: @font-size-sm + 1;
-}
-
-.info-value {
- color: @text-primary;
- font-weight: @font-weight-medium;
-
- &.mono {
- .mono-text();
- }
-}
-
-// Packages list
-.packages-list {
- .flex-column-gap(@space-2);
-}
-
-.package-item {
- .flex-between();
- padding: @space-3 @space-4;
- .card-base();
-}
-
-.package-name {
- font-weight: @font-weight-medium;
-}
-
-.package-version {
- color: @text-tertiary;
- .mono-text();
-}
-
-// Environment variables list
-.env-list {
- .flex-column-gap(@space-2);
-}
-
-.env-item {
- display: flex;
- align-items: center;
- gap: @space-4;
- padding: @space-3 @space-4;
- .card-base();
-}
-
-.env-key {
- font-weight: @font-weight-semibold;
- .mono-text();
- color: @accent-primary;
- min-width: 150px;
-}
-
-.env-value {
- flex: 1;
- .mono-text();
- color: @text-secondary;
- word-break: break-all;
-}
-
-// Plugins/Themes list
-.plugins-list,
-.themes-list {
- .flex-column-gap(@space-2);
-}
-
-.plugin-item,
-.theme-item {
- .flex-between();
- padding: @space-4;
- .card-base();
-
- &.active {
- border-color: @success;
- background: fade(@success, 5%);
- }
-}
-
-.plugin-info,
-.theme-info {
- .flex-start();
- gap: @space-3;
-}
-
-.plugin-name,
-.theme-name {
- font-weight: @font-weight-medium;
-}
-
-.plugin-version,
-.theme-version {
- color: @text-tertiary;
- font-size: @font-size-sm;
-}
-
-// Backups list
-.backups-list {
- .flex-column-gap(@space-2);
-}
-
-.backup-item {
- .flex-between();
- padding: @space-4;
- .card-base();
-}
-
-.backup-info {
- .flex-start();
- gap: @space-5;
-}
-
-.backup-name {
- font-weight: @font-weight-medium;
- .mono-text();
-}
-
-.backup-size,
-.backup-date {
- color: @text-tertiary;
- font-size: @font-size-sm + 1;
-}
-
-// Domains list
-.domains-list {
- .flex-column-gap(@space-2);
-}
-
-.domain-item {
- .flex-start();
- gap: @space-2;
-
- a {
- color: @accent-primary;
- .transition(color);
-
- &:hover {
- text-decoration: underline;
- }
- }
-}
-
-// Tables list (for database tables)
-.tables-list {
- display: flex;
- flex-wrap: wrap;
- gap: @space-2;
-}
-
-// Privileges list
-.privileges-list {
- display: flex;
- flex-wrap: wrap;
- gap: @space-2 - 2;
- margin-top: @space-2;
- padding-top: @space-2;
- border-top: 1px solid @border-subtle;
-}
diff --git a/frontend/src/styles/components/_lists.scss b/frontend/src/styles/components/_lists.scss
new file mode 100644
index 00000000..93abfbbc
--- /dev/null
+++ b/frontend/src/styles/components/_lists.scss
@@ -0,0 +1,182 @@
+// ============================================
+// LIST COMPONENTS
+// ============================================
+
+// Base list
+.list-base {
+ @include flex-column-gap($space-2);
+}
+
+// Info list (key-value pairs)
+.info-list {
+ @include flex-column-gap($space-3);
+}
+
+.info-item {
+ @include flex-between();
+ padding: $space-2 0;
+ border-bottom: 1px solid $border-subtle;
+
+ &:last-child {
+ border-bottom: none;
+ }
+}
+
+.info-label {
+ color: $text-tertiary;
+ font-size: $font-size-sm + 1;
+}
+
+.info-value {
+ color: $text-primary;
+ font-weight: $font-weight-medium;
+
+ &.mono {
+ @include mono-text();
+ }
+}
+
+// Packages list
+.packages-list {
+ @include flex-column-gap($space-2);
+}
+
+.package-item {
+ @include flex-between();
+ padding: $space-3 $space-4;
+ @include card-base();
+}
+
+.package-name {
+ font-weight: $font-weight-medium;
+}
+
+.package-version {
+ color: $text-tertiary;
+ @include mono-text();
+}
+
+// Environment variables list
+.env-list {
+ @include flex-column-gap($space-2);
+}
+
+.env-item {
+ display: flex;
+ align-items: center;
+ gap: $space-4;
+ padding: $space-3 $space-4;
+ @include card-base();
+}
+
+.env-key {
+ font-weight: $font-weight-semibold;
+ @include mono-text();
+ color: $accent-primary;
+ min-width: 150px;
+}
+
+.env-value {
+ flex: 1;
+ @include mono-text();
+ color: $text-secondary;
+ word-break: break-all;
+}
+
+// Plugins/Themes list
+.plugins-list,
+.themes-list {
+ @include flex-column-gap($space-2);
+}
+
+.plugin-item,
+.theme-item {
+ @include flex-between();
+ padding: $space-4;
+ @include card-base();
+
+ &.active {
+ border-color: $success;
+ background: fade($success, 5%);
+ }
+}
+
+.plugin-info,
+.theme-info {
+ @include flex-start();
+ gap: $space-3;
+}
+
+.plugin-name,
+.theme-name {
+ font-weight: $font-weight-medium;
+}
+
+.plugin-version,
+.theme-version {
+ color: $text-tertiary;
+ font-size: $font-size-sm;
+}
+
+// Backups list
+.backups-list {
+ @include flex-column-gap($space-2);
+}
+
+.backup-item {
+ @include flex-between();
+ padding: $space-4;
+ @include card-base();
+}
+
+.backup-info {
+ @include flex-start();
+ gap: $space-5;
+}
+
+.backup-name {
+ font-weight: $font-weight-medium;
+ @include mono-text();
+}
+
+.backup-size,
+.backup-date {
+ color: $text-tertiary;
+ font-size: $font-size-sm + 1;
+}
+
+// Domains list
+.domains-list {
+ @include flex-column-gap($space-2);
+}
+
+.domain-item {
+ @include flex-start();
+ gap: $space-2;
+
+ a {
+ color: $accent-primary;
+ @include transition(color);
+
+ &:hover {
+ text-decoration: underline;
+ }
+ }
+}
+
+// Tables list (for database tables)
+.tables-list {
+ display: flex;
+ flex-wrap: wrap;
+ gap: $space-2;
+}
+
+// Privileges list
+.privileges-list {
+ display: flex;
+ flex-wrap: wrap;
+ gap: $space-2 - 2;
+ margin-top: $space-2;
+ padding-top: $space-2;
+ border-top: 1px solid $border-subtle;
+}
diff --git a/frontend/src/styles/components/_logs.less b/frontend/src/styles/components/_logs.less
deleted file mode 100644
index 1ff82c89..00000000
--- a/frontend/src/styles/components/_logs.less
+++ /dev/null
@@ -1,58 +0,0 @@
-// ============================================
-// LOGS & COMMAND OUTPUT COMPONENTS
-// ============================================
-
-// Log viewer
-.log-viewer {
- .code-block();
- max-height: 500px;
- overflow-y: auto;
- line-height: @line-height-normal;
-}
-
-// Log controls
-.log-controls {
- .flex-start();
- gap: @space-3;
-
- select {
- padding: @space-2 @space-3;
- background: @bg-body;
- border: 1px solid @border-subtle;
- border-radius: @radius-md;
- color: @text-primary;
- font-size: @font-size-sm + 1;
- }
-}
-
-// Command output
-.command-output {
- background: @bg-body;
- border: 1px solid @border-subtle;
- border-radius: @radius-lg;
- padding: @space-4;
- margin-top: @space-5;
-
- pre {
- .mono-text();
- white-space: pre-wrap;
- word-break: break-all;
- color: @text-primary;
- }
-
- &.error {
- border-color: @danger;
- }
-
- .stderr {
- color: @danger;
- }
-}
-
-// Quick commands
-.quick-commands {
- display: flex;
- flex-wrap: wrap;
- gap: @space-2;
- margin-bottom: @space-5;
-}
diff --git a/frontend/src/styles/components/_logs.scss b/frontend/src/styles/components/_logs.scss
new file mode 100644
index 00000000..59ea256d
--- /dev/null
+++ b/frontend/src/styles/components/_logs.scss
@@ -0,0 +1,58 @@
+// ============================================
+// LOGS & COMMAND OUTPUT COMPONENTS
+// ============================================
+
+// Log viewer
+.log-viewer {
+ @include code-block();
+ max-height: 500px;
+ overflow-y: auto;
+ line-height: $line-height-normal;
+}
+
+// Log controls
+.log-controls {
+ @include flex-start();
+ gap: $space-3;
+
+ select {
+ padding: $space-2 $space-3;
+ background: $bg-body;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-md;
+ color: $text-primary;
+ font-size: $font-size-sm + 1;
+ }
+}
+
+// Command output
+.command-output {
+ background: $bg-body;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-lg;
+ padding: $space-4;
+ margin-top: $space-5;
+
+ pre {
+ @include mono-text();
+ white-space: pre-wrap;
+ word-break: break-all;
+ color: $text-primary;
+ }
+
+ &.error {
+ border-color: $danger;
+ }
+
+ .stderr {
+ color: $danger;
+ }
+}
+
+// Quick commands
+.quick-commands {
+ display: flex;
+ flex-wrap: wrap;
+ gap: $space-2;
+ margin-bottom: $space-5;
+}
diff --git a/frontend/src/styles/components/_metrics-graph.less b/frontend/src/styles/components/_metrics-graph.scss
similarity index 61%
rename from frontend/src/styles/components/_metrics-graph.less
rename to frontend/src/styles/components/_metrics-graph.scss
index 5511c1dc..9691ac78 100644
--- a/frontend/src/styles/components/_metrics-graph.less
+++ b/frontend/src/styles/components/_metrics-graph.scss
@@ -3,11 +3,11 @@
// ============================================
.metrics-graph-card {
- background: @bg-card;
- border: 1px solid @border-subtle;
- border-radius: @radius-xl;
- padding: @space-6;
- margin-bottom: @space-6;
+ background: $bg-card;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-xl;
+ padding: $space-6;
+ margin-bottom: $space-6;
&.loading,
&.error,
@@ -16,17 +16,17 @@
flex-direction: column;
align-items: center;
justify-content: center;
- gap: @space-3;
+ gap: $space-3;
min-height: 200px;
- color: @text-tertiary;
+ color: $text-tertiary;
.muted {
- font-size: @font-size-sm;
+ font-size: $font-size-sm;
}
}
&.error {
- color: @danger;
+ color: $danger;
}
}
@@ -34,63 +34,63 @@
display: flex;
align-items: center;
justify-content: space-between;
- margin-bottom: @space-5;
+ margin-bottom: $space-5;
}
.graph-title {
display: flex;
align-items: center;
- gap: @space-2;
- font-size: @font-size-base;
- font-weight: @font-weight-semibold;
- color: @text-primary;
+ gap: $space-2;
+ font-size: $font-size-base;
+ font-weight: $font-weight-semibold;
+ color: $text-primary;
}
// Summary Row
.metrics-summary-row {
display: flex;
- gap: @space-6;
- padding: @space-4;
- background: @bg-hover;
- border-radius: @radius-lg;
- margin-bottom: @space-5;
+ gap: $space-6;
+ padding: $space-4;
+ background: $bg-hover;
+ border-radius: $radius-lg;
+ margin-bottom: $space-5;
}
.summary-stat {
display: flex;
align-items: center;
- gap: @space-3;
+ gap: $space-3;
svg {
- color: @text-tertiary;
+ color: $text-tertiary;
}
.stat-label {
display: block;
- font-size: @font-size-xs;
- color: @text-tertiary;
+ font-size: $font-size-xs;
+ color: $text-tertiary;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.stat-value {
display: block;
- font-size: @font-size-lg;
- font-weight: @font-weight-bold;
- font-family: @font-mono;
- color: @text-primary;
+ font-size: $font-size-lg;
+ font-weight: $font-weight-bold;
+ font-family: $font-mono;
+ color: $text-primary;
}
}
// Chart Container
.metrics-chart-container {
- margin-bottom: @space-4;
+ margin-bottom: $space-4;
background: linear-gradient(180deg, var(--bg-hover) 0%, transparent 100%);
- border-radius: @radius-lg;
- padding: @space-2 0;
+ border-radius: $radius-lg;
+ padding: $space-2 0;
&.compact {
- margin-bottom: @space-3;
+ margin-bottom: $space-3;
background: transparent;
padding: 0;
}
@@ -125,27 +125,27 @@
.metrics-tooltip {
background: rgba(24, 24, 27, 0.95);
backdrop-filter: blur(8px);
- border: 1px solid @border-subtle;
- border-radius: @radius-lg;
- padding: @space-3 @space-4;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-lg;
+ padding: $space-3 $space-4;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
min-width: 140px;
.tooltip-time {
- font-size: @font-size-xs;
- color: @text-tertiary;
- margin-bottom: @space-2;
- padding-bottom: @space-2;
- border-bottom: 1px solid @border-subtle;
+ font-size: $font-size-xs;
+ color: $text-tertiary;
+ margin-bottom: $space-2;
+ padding-bottom: $space-2;
+ border-bottom: 1px solid $border-subtle;
text-align: center;
}
.tooltip-row {
display: flex;
align-items: center;
- gap: @space-2;
- font-size: @font-size-sm;
- padding: @space-1 0;
+ gap: $space-2;
+ font-size: $font-size-sm;
+ padding: $space-1 0;
}
.tooltip-dot {
@@ -156,13 +156,13 @@
}
.tooltip-label {
- color: @text-secondary;
+ color: $text-secondary;
flex: 1;
}
.tooltip-value {
- font-family: @font-mono;
- font-weight: @font-weight-bold;
+ font-family: $font-mono;
+ font-weight: $font-weight-bold;
min-width: 48px;
text-align: right;
}
@@ -172,27 +172,27 @@
.metrics-filter-legend {
display: flex;
align-items: center;
- gap: @space-2;
- background: @bg-hover;
+ gap: $space-2;
+ background: $bg-hover;
padding: 4px;
- border-radius: @radius-md;
- border: 1px solid @border-subtle;
+ border-radius: $radius-md;
+ border: 1px solid $border-subtle;
}
.filter-btn {
background: transparent;
border: 1px solid transparent;
- color: @text-tertiary;
+ color: $text-tertiary;
padding: 6px 12px;
- font-size: @font-size-xs;
- font-weight: @font-weight-semibold;
- border-radius: @radius-sm;
+ font-size: $font-size-xs;
+ font-weight: $font-weight-semibold;
+ border-radius: $radius-sm;
cursor: pointer;
- transition: all @transition-fast;
+ transition: all $transition-fast;
text-transform: uppercase;
&:hover {
- color: @text-primary;
+ color: $text-primary;
}
&.active {
@@ -216,7 +216,7 @@
// Disk - Orange
&.disk.active {
background: rgba(245, 158, 11, 0.1);
- color: #f59e0b;
+ color: $warning;
border-color: rgba(245, 158, 11, 0.3);
}
}
@@ -226,25 +226,25 @@
display: flex;
align-items: center;
justify-content: center;
- gap: @space-8;
- padding-top: @space-4;
- margin-top: @space-2;
- border-top: 1px solid @border-subtle;
+ gap: $space-8;
+ padding-top: $space-4;
+ margin-top: $space-2;
+ border-top: 1px solid $border-subtle;
}
.legend-item {
display: flex;
align-items: center;
- gap: @space-3;
- font-size: @font-size-sm;
- color: @text-secondary;
- padding: @space-1 @space-3;
- border-radius: @radius-full;
- transition: @transition-fast;
+ gap: $space-3;
+ font-size: $font-size-sm;
+ color: $text-secondary;
+ padding: $space-1 $space-3;
+ border-radius: $radius-full;
+ transition: $transition-fast;
&:hover {
- background: @bg-hover;
- color: @text-primary;
+ background: $bg-hover;
+ color: $text-primary;
}
}
@@ -277,24 +277,24 @@
}
&.disk {
- background: #f59e0b;
+ background: $warning;
box-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
}
}
// Compact Version
.metrics-graph-compact {
- background: @bg-card;
- border: 1px solid @border-subtle;
- border-radius: @radius-xl;
- padding: @space-4;
- margin-bottom: @space-6;
+ background: $bg-card;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-xl;
+ padding: $space-4;
+ margin-bottom: $space-6;
.metrics-graph-header {
- margin-bottom: @space-3;
+ margin-bottom: $space-3;
.graph-title {
- font-size: @font-size-sm;
+ font-size: $font-size-sm;
}
}
}
@@ -303,24 +303,24 @@
display: flex;
align-items: center;
justify-content: center;
- gap: @space-5;
- padding-top: @space-3;
- border-top: 1px solid @border-subtle;
+ gap: $space-5;
+ padding-top: $space-3;
+ border-top: 1px solid $border-subtle;
.summary-item {
display: flex;
align-items: center;
- gap: @space-2;
- font-size: @font-size-sm;
- color: @text-secondary;
+ gap: $space-2;
+ font-size: $font-size-sm;
+ color: $text-secondary;
svg {
- color: @text-tertiary;
+ color: $text-tertiary;
}
span {
- font-family: @font-mono;
- font-weight: @font-weight-medium;
+ font-family: $font-mono;
+ font-weight: $font-weight-medium;
}
}
}
@@ -328,42 +328,42 @@
// Recharts Overrides
.recharts-cartesian-grid-horizontal line,
.recharts-cartesian-grid-vertical line {
- stroke: @border-subtle;
+ stroke: $border-subtle;
opacity: 0.5;
}
.recharts-text {
- fill: @text-secondary;
+ fill: $text-secondary;
}
.recharts-tooltip-cursor {
- stroke: @text-tertiary;
+ stroke: $text-tertiary;
stroke-dasharray: 4 4;
}
// Responsive
-@media (max-width: @breakpoint-md) {
+@media (max-width: $breakpoint-md) {
.metrics-summary-row {
flex-wrap: wrap;
- gap: @space-4;
+ gap: $space-4;
}
.summary-stat {
- flex: 1 1 calc(50% - @space-2);
+ flex: 1 1 calc(50% - $space-2);
min-width: 140px;
}
.metrics-legend {
flex-wrap: wrap;
- gap: @space-3;
+ gap: $space-3;
}
}
-@media (max-width: @breakpoint-sm) {
+@media (max-width: $breakpoint-sm) {
.metrics-graph-header {
flex-direction: column;
- gap: @space-3;
+ gap: $space-3;
align-items: flex-start;
}
diff --git a/frontend/src/styles/components/_modals.less b/frontend/src/styles/components/_modals.less
deleted file mode 100644
index df6e3309..00000000
--- a/frontend/src/styles/components/_modals.less
+++ /dev/null
@@ -1,182 +0,0 @@
-// ============================================
-// MODAL COMPONENTS
-// ============================================
-
-.modal-overlay {
- position: fixed;
- inset: 0;
- background: rgba(0, 0, 0, 0.7);
- .flex-center();
- z-index: @z-modal-backdrop;
- padding: @space-5;
- backdrop-filter: blur(4px);
-}
-
-.modal {
- background: @bg-card;
- border: 1px solid @border-subtle;
- border-radius: @radius-2xl;
- width: 100%;
- max-width: 560px;
- max-height: 90vh;
- overflow-y: auto;
- .custom-scrollbar();
-}
-
-.modal-lg {
- max-width: 800px;
-}
-
-.modal-header {
- .flex-between();
- padding: @space-6;
- border-bottom: 1px solid @border-subtle;
-
- h2 {
- font-size: @font-size-lg;
- font-weight: @font-weight-semibold;
- }
-}
-
-.modal-close {
- background: none;
- border: none;
- color: @text-tertiary;
- font-size: @font-size-2xl;
- cursor: pointer;
- line-height: 1;
- padding: @space-1;
- .transition(color);
-
- &:hover {
- color: @text-primary;
- }
-}
-
-.modal-body {
- padding: @space-6;
- max-height: 60vh;
- overflow-y: auto;
- .custom-scrollbar();
-}
-
-.modal form {
- padding: @space-6;
-}
-
-.modal-actions {
- display: flex;
- gap: @space-3;
- justify-content: flex-end;
- margin-top: @space-6;
- padding-top: @space-6;
- border-top: 1px solid @border-subtle;
-}
-
-.modal-footer {
- display: flex;
- gap: @space-3;
- justify-content: flex-end;
- padding: @space-4 @space-6;
- border-top: 1px solid @border-subtle;
-}
-
-// Type selection grid (used in create app modal)
-.app-type-grid {
- display: grid;
- grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
- gap: @space-4;
- padding: @space-6;
-}
-
-.app-type-card {
- background: @bg-body;
- border: 1px solid @border-subtle;
- border-radius: @radius-xl;
- padding: @space-6;
- text-align: center;
- cursor: pointer;
- .transition();
-
- &:hover {
- border-color: @accent-primary;
- background: @bg-hover;
- }
-}
-
-.app-type-icon {
- .icon-box(48px);
- border-radius: @radius-xl;
- font-size: @font-size-xl;
- font-weight: @font-weight-bold;
- color: white;
- margin: 0 auto @space-4;
-}
-
-.app-type-card h3 {
- font-size: @font-size-base;
- font-weight: @font-weight-semibold;
- margin-bottom: @space-1;
- color: @text-primary;
-}
-
-.app-type-card p {
- font-size: @font-size-sm;
- color: @text-tertiary;
- line-height: @line-height-normal;
-}
-
-// Confirmation Dialog
-.confirm-dialog {
- max-width: 400px;
- text-align: center;
-}
-
-.confirm-dialog-content {
- padding: @space-8 @space-6 @space-6;
-}
-
-.confirm-dialog-icon {
- .icon-box(64px);
- border-radius: 50%;
- margin: 0 auto @space-4;
-
- svg {
- width: 32px;
- height: 32px;
- }
-
- &-danger {
- background: fade(@danger, 15%);
- color: @danger;
- }
-
- &-warning {
- background: fade(@warning, 15%);
- color: @warning;
- }
-
- &-info {
- background: fade(@accent-primary-raw, 15%);
- color: @accent-primary;
- }
-}
-
-.confirm-dialog-title {
- font-size: @font-size-lg;
- font-weight: @font-weight-semibold;
- margin-bottom: @space-2;
-}
-
-.confirm-dialog-message {
- font-size: @font-size-sm;
- color: @text-secondary;
- line-height: @line-height-relaxed;
-}
-
-.confirm-dialog-actions {
- display: flex;
- gap: @space-3;
- justify-content: center;
- padding: @space-4 @space-6 @space-6;
-}
diff --git a/frontend/src/styles/components/_modals.scss b/frontend/src/styles/components/_modals.scss
new file mode 100644
index 00000000..cb15c747
--- /dev/null
+++ b/frontend/src/styles/components/_modals.scss
@@ -0,0 +1,182 @@
+// ============================================
+// MODAL COMPONENTS
+// ============================================
+
+.modal-overlay {
+ position: fixed;
+ inset: 0;
+ background: rgba(0, 0, 0, 0.7);
+ @include flex-center();
+ z-index: $z-modal-backdrop;
+ padding: $space-5;
+ backdrop-filter: blur(4px);
+}
+
+.modal {
+ background: $bg-card;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-2xl;
+ width: 100%;
+ max-width: 560px;
+ max-height: 90vh;
+ overflow-y: auto;
+ @include custom-scrollbar();
+}
+
+.modal-lg {
+ max-width: 800px;
+}
+
+.modal-header {
+ @include flex-between();
+ padding: $space-6;
+ border-bottom: 1px solid $border-subtle;
+
+ h2 {
+ font-size: $font-size-lg;
+ font-weight: $font-weight-semibold;
+ }
+}
+
+.modal-close {
+ background: none;
+ border: none;
+ color: $text-tertiary;
+ font-size: $font-size-2xl;
+ cursor: pointer;
+ line-height: 1;
+ padding: $space-1;
+ @include transition(color);
+
+ &:hover {
+ color: $text-primary;
+ }
+}
+
+.modal-body {
+ padding: $space-6;
+ max-height: 60vh;
+ overflow-y: auto;
+ @include custom-scrollbar();
+}
+
+.modal form {
+ padding: $space-6;
+}
+
+.modal-actions {
+ display: flex;
+ gap: $space-3;
+ justify-content: flex-end;
+ margin-top: $space-6;
+ padding-top: $space-6;
+ border-top: 1px solid $border-subtle;
+}
+
+.modal-footer {
+ display: flex;
+ gap: $space-3;
+ justify-content: flex-end;
+ padding: $space-4 $space-6;
+ border-top: 1px solid $border-subtle;
+}
+
+// Type selection grid (used in create app modal)
+.app-type-grid {
+ display: grid;
+ grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
+ gap: $space-4;
+ padding: $space-6;
+}
+
+.app-type-card {
+ background: $bg-body;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-xl;
+ padding: $space-6;
+ text-align: center;
+ cursor: pointer;
+ @include transition();
+
+ &:hover {
+ border-color: $accent-primary;
+ background: $bg-hover;
+ }
+}
+
+.app-type-icon {
+ @include icon-box(48px);
+ border-radius: $radius-xl;
+ font-size: $font-size-xl;
+ font-weight: $font-weight-bold;
+ color: white;
+ margin: 0 auto $space-4;
+}
+
+.app-type-card h3 {
+ font-size: $font-size-base;
+ font-weight: $font-weight-semibold;
+ margin-bottom: $space-1;
+ color: $text-primary;
+}
+
+.app-type-card p {
+ font-size: $font-size-sm;
+ color: $text-tertiary;
+ line-height: $line-height-normal;
+}
+
+// Confirmation Dialog
+.confirm-dialog {
+ max-width: 400px;
+ text-align: center;
+}
+
+.confirm-dialog-content {
+ padding: $space-8 $space-6 $space-6;
+}
+
+.confirm-dialog-icon {
+ @include icon-box(64px);
+ border-radius: 50%;
+ margin: 0 auto $space-4;
+
+ svg {
+ width: 32px;
+ height: 32px;
+ }
+
+ &-danger {
+ background: fade($danger, 15%);
+ color: $danger;
+ }
+
+ &-warning {
+ background: fade($warning, 15%);
+ color: $warning;
+ }
+
+ &-info {
+ background: fade($accent-primary-raw, 15%);
+ color: $accent-primary;
+ }
+}
+
+.confirm-dialog-title {
+ font-size: $font-size-lg;
+ font-weight: $font-weight-semibold;
+ margin-bottom: $space-2;
+}
+
+.confirm-dialog-message {
+ font-size: $font-size-sm;
+ color: $text-secondary;
+ line-height: $line-height-relaxed;
+}
+
+.confirm-dialog-actions {
+ display: flex;
+ gap: $space-3;
+ justify-content: center;
+ padding: $space-4 $space-6 $space-6;
+}
diff --git a/frontend/src/styles/components/_notifications.less b/frontend/src/styles/components/_notifications.scss
similarity index 51%
rename from frontend/src/styles/components/_notifications.less
rename to frontend/src/styles/components/_notifications.scss
index 0e86e8f1..6fc4e563 100644
--- a/frontend/src/styles/components/_notifications.less
+++ b/frontend/src/styles/components/_notifications.scss
@@ -5,43 +5,43 @@
// Notification Tabs
.notification-tabs {
display: flex;
- gap: @space-2;
- margin-bottom: @space-6;
- padding-bottom: @space-4;
- border-bottom: 1px solid @border-subtle;
+ gap: $space-2;
+ margin-bottom: $space-6;
+ padding-bottom: $space-4;
+ border-bottom: 1px solid $border-subtle;
}
.notification-tab {
display: flex;
align-items: center;
- gap: @space-2;
- padding: @space-3 @space-4;
+ gap: $space-2;
+ padding: $space-3 $space-4;
background: transparent;
- border: 1px solid @border-subtle;
- border-radius: @radius-md;
- color: @text-secondary;
- font-size: @font-size-sm;
- font-weight: @font-weight-medium;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-md;
+ color: $text-secondary;
+ font-size: $font-size-sm;
+ font-weight: $font-weight-medium;
cursor: pointer;
- transition: all @transition-fast;
+ transition: all $transition-fast;
svg {
stroke-width: 2;
}
&:hover {
- background: @bg-hover;
- border-color: @border-default;
- color: @text-primary;
+ background: $bg-hover;
+ border-color: $border-default;
+ color: $text-primary;
}
&.active {
- background: @accent-glow;
- border-color: @accent-primary;
- color: @accent-primary;
+ background: $accent-glow;
+ border-color: $accent-primary;
+ color: $accent-primary;
svg {
- stroke: @accent-primary;
+ stroke: $accent-primary;
}
}
}
@@ -50,48 +50,48 @@
.user-notification-prefs {
display: flex;
flex-direction: column;
- gap: @space-4;
+ gap: $space-4;
}
.channel-toggles,
.category-toggles {
display: flex;
flex-wrap: wrap;
- gap: @space-3;
+ gap: $space-3;
}
.channel-toggle,
.category-toggle {
display: flex;
align-items: center;
- gap: @space-2;
- padding: @space-2 @space-3;
- background: @bg-card;
- border: 1px solid @border-subtle;
- border-radius: @radius-md;
+ gap: $space-2;
+ padding: $space-2 $space-3;
+ background: $bg-card;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-md;
cursor: pointer;
- transition: all @transition-fast;
+ transition: all $transition-fast;
input[type="checkbox"] {
- accent-color: @accent-primary;
+ accent-color: $accent-primary;
}
span {
- font-size: @font-size-sm;
- color: @text-secondary;
+ font-size: $font-size-sm;
+ color: $text-secondary;
}
&:hover {
- background: @bg-hover;
- border-color: @border-default;
+ background: $bg-hover;
+ border-color: $border-default;
}
&:has(input:checked) {
- background: @accent-glow;
- border-color: fade(@accent-primary-raw, 40%);
+ background: $accent-glow;
+ border-color: fade($accent-primary-raw, 40%);
span {
- color: @text-primary;
+ color: $text-primary;
}
}
}
@@ -99,31 +99,31 @@
.notification-channels {
display: flex;
flex-direction: column;
- gap: @space-4;
+ gap: $space-4;
}
.notification-channel-card {
- border: 1px solid @border-subtle;
- border-radius: @radius-lg;
- background: @bg-card;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-lg;
+ background: $bg-card;
overflow: hidden;
transition: border-color 0.2s;
&.enabled {
- border-color: fade(@success, 40%);
+ border-color: fade($success, 40%);
}
}
.channel-header {
display: flex;
align-items: center;
- gap: @space-4;
- padding: @space-4 @space-6;
+ gap: $space-4;
+ padding: $space-4 $space-6;
cursor: pointer;
transition: background 0.2s;
&:hover {
- background: @bg-hover;
+ background: $bg-hover;
}
}
@@ -133,16 +133,16 @@
display: flex;
align-items: center;
justify-content: center;
- background: @bg-hover;
- border-radius: @radius-md;
+ background: $bg-hover;
+ border-radius: $radius-md;
flex-shrink: 0;
svg {
- color: @text-secondary;
+ color: $text-secondary;
}
.notification-channel-card.enabled & svg {
- color: @accent-primary;
+ color: $accent-primary;
}
}
@@ -151,25 +151,25 @@
min-width: 0;
h3 {
- margin: 0 0 @space-1 0;
- font-size: @font-size-md;
+ margin: 0 0 $space-1 0;
+ font-size: $font-size-md;
}
p {
margin: 0;
- color: @text-secondary;
- font-size: @font-size-sm;
+ color: $text-secondary;
+ font-size: $font-size-sm;
}
}
.channel-status {
display: flex;
align-items: center;
- gap: @space-4;
+ gap: $space-4;
}
.expand-icon {
- color: @text-tertiary;
+ color: $text-tertiary;
transition: transform 0.2s;
&.expanded {
@@ -178,9 +178,9 @@
}
.channel-config {
- padding: @space-6;
- border-top: 1px solid @border-subtle;
- background: @bg-body;
+ padding: $space-6;
+ border-top: 1px solid $border-subtle;
+ background: $bg-body;
}
.toggle-switch-label {
@@ -196,7 +196,7 @@
.form-row {
display: grid;
grid-template-columns: 1fr 1fr;
- gap: @space-4;
+ gap: $space-4;
@media (max-width: 600px) {
grid-template-columns: 1fr;
@@ -206,47 +206,47 @@
.severity-toggles {
display: flex;
flex-wrap: wrap;
- gap: @space-2;
+ gap: $space-2;
}
.severity-toggle {
display: flex;
align-items: center;
- gap: @space-1;
- padding: @space-1 @space-2;
- border-radius: @radius-sm;
- background: @bg-hover;
+ gap: $space-1;
+ padding: $space-1 $space-2;
+ border-radius: $radius-sm;
+ background: $bg-hover;
cursor: pointer;
transition: all 0.2s;
- font-size: @font-size-sm;
+ font-size: $font-size-sm;
input {
display: none;
}
span {
- padding: 2px @space-1;
- border-radius: @radius-sm;
+ padding: 2px $space-1;
+ border-radius: $radius-sm;
}
&.critical span {
- background: fade(@danger, 20%);
- color: @danger;
+ background: fade($danger, 20%);
+ color: $danger;
}
&.warning span {
- background: fade(@warning, 20%);
- color: @warning;
+ background: fade($warning, 20%);
+ color: $warning;
}
&.info span {
- background: fade(@accent-primary-raw, 20%);
- color: @accent-primary;
+ background: fade($accent-primary-raw, 20%);
+ color: $accent-primary;
}
&.success span {
- background: fade(@success, 20%);
- color: @success;
+ background: fade($success, 20%);
+ color: $success;
}
input:checked + span {
@@ -265,8 +265,8 @@
.channel-actions {
display: flex;
justify-content: flex-end;
- gap: @space-2;
- margin-top: @space-6;
- padding-top: @space-4;
- border-top: 1px solid @border-subtle;
+ gap: $space-2;
+ margin-top: $space-6;
+ padding-top: $space-4;
+ border-top: 1px solid $border-subtle;
}
diff --git a/frontend/src/styles/components/_private-url.less b/frontend/src/styles/components/_private-url.less
deleted file mode 100644
index f5f545a6..00000000
--- a/frontend/src/styles/components/_private-url.less
+++ /dev/null
@@ -1,158 +0,0 @@
-// ============================================
-// PRIVATE URL COMPONENT
-// ============================================
-
-.private-url-section {
- background: @bg-card;
- border: 1px solid @border-subtle;
- border-radius: @radius-md;
- padding: @space-5;
- margin-bottom: @space-5;
-
- .section-header {
- margin-bottom: @space-4;
-
- h3 {
- display: flex;
- align-items: center;
- gap: @space-2;
- margin: 0;
- font-size: @font-size-lg;
- font-weight: 500;
- color: @text-primary;
-
- svg {
- color: @accent-primary;
- }
- }
- }
-}
-
-.private-url-disabled {
- .hint {
- color: @text-secondary;
- font-size: @font-size-sm;
- margin-bottom: @space-4;
- line-height: 1.5;
- }
-
- .slug-hint {
- color: @text-tertiary;
- font-size: @font-size-xs;
- margin-top: @space-2;
- }
-}
-
-.private-url-form,
-.slug-edit-form {
- display: flex;
- gap: @space-3;
- align-items: center;
- flex-wrap: wrap;
-
- .input-group {
- display: flex;
- align-items: center;
- flex: 1;
- min-width: 200px;
- }
-
- .input-prefix {
- background: @bg-tertiary;
- border: 1px solid @border-subtle;
- border-right: none;
- border-radius: @radius-sm 0 0 @radius-sm;
- padding: @space-2 @space-3;
- color: @text-tertiary;
- font-family: @font-mono;
- font-size: @font-size-sm;
- height: 40px;
- display: flex;
- align-items: center;
- }
-
- .slug-input {
- flex: 1;
- border-radius: 0 @radius-sm @radius-sm 0;
- font-family: @font-mono;
- min-width: 150px;
- }
-}
-
-.private-url-enabled {
- .private-url-display {
- background: fade(@success, 10%);
- border: 1px solid fade(@success, 30%);
- border-radius: @radius-md;
- padding: @space-4;
- margin-bottom: @space-4;
- }
-
- .url-box {
- display: flex;
- flex-direction: column;
- gap: @space-2;
- margin-bottom: @space-3;
- }
-
- .url-label {
- color: @text-secondary;
- font-size: @font-size-sm;
- }
-
- .url-value {
- background: @bg-secondary;
- padding: @space-2 @space-3;
- border-radius: @radius-sm;
- font-family: @font-mono;
- font-size: @font-size-sm;
- color: @text-primary;
- word-break: break-all;
- user-select: all;
- }
-
- .url-actions {
- display: flex;
- gap: @space-2;
- flex-wrap: wrap;
- }
-}
-
-.btn-link {
- background: none;
- border: none;
- color: @accent-primary;
- cursor: pointer;
- padding: 0;
- font-size: @font-size-sm;
-
- &:hover {
- text-decoration: underline;
- }
-}
-
-.slug-edit-form {
- margin-top: @space-4;
- padding-top: @space-4;
- border-top: 1px solid @border-subtle;
-}
-
-.private-url-footer {
- margin-top: @space-4;
- padding-top: @space-4;
- border-top: 1px solid @border-subtle;
-}
-
-// Private URL indicator in app list
-.private-url-indicator {
- display: inline-flex;
- align-items: center;
- gap: @space-1;
- color: @success;
- font-size: @font-size-sm;
-
- svg {
- width: 14px;
- height: 14px;
- }
-}
diff --git a/frontend/src/styles/components/_private-url.scss b/frontend/src/styles/components/_private-url.scss
new file mode 100644
index 00000000..00e29619
--- /dev/null
+++ b/frontend/src/styles/components/_private-url.scss
@@ -0,0 +1,158 @@
+// ============================================
+// PRIVATE URL COMPONENT
+// ============================================
+
+.private-url-section {
+ background: $bg-card;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-md;
+ padding: $space-5;
+ margin-bottom: $space-5;
+
+ .section-header {
+ margin-bottom: $space-4;
+
+ h3 {
+ display: flex;
+ align-items: center;
+ gap: $space-2;
+ margin: 0;
+ font-size: $font-size-lg;
+ font-weight: 500;
+ color: $text-primary;
+
+ svg {
+ color: $accent-primary;
+ }
+ }
+ }
+}
+
+.private-url-disabled {
+ .hint {
+ color: $text-secondary;
+ font-size: $font-size-sm;
+ margin-bottom: $space-4;
+ line-height: 1.5;
+ }
+
+ .slug-hint {
+ color: $text-tertiary;
+ font-size: $font-size-xs;
+ margin-top: $space-2;
+ }
+}
+
+.private-url-form,
+.slug-edit-form {
+ display: flex;
+ gap: $space-3;
+ align-items: center;
+ flex-wrap: wrap;
+
+ .input-group {
+ display: flex;
+ align-items: center;
+ flex: 1;
+ min-width: 200px;
+ }
+
+ .input-prefix {
+ background: $bg-tertiary;
+ border: 1px solid $border-subtle;
+ border-right: none;
+ border-radius: $radius-sm 0 0 $radius-sm;
+ padding: $space-2 $space-3;
+ color: $text-tertiary;
+ font-family: $font-mono;
+ font-size: $font-size-sm;
+ height: 40px;
+ display: flex;
+ align-items: center;
+ }
+
+ .slug-input {
+ flex: 1;
+ border-radius: 0 $radius-sm $radius-sm 0;
+ font-family: $font-mono;
+ min-width: 150px;
+ }
+}
+
+.private-url-enabled {
+ .private-url-display {
+ background: fade($success, 10%);
+ border: 1px solid fade($success, 30%);
+ border-radius: $radius-md;
+ padding: $space-4;
+ margin-bottom: $space-4;
+ }
+
+ .url-box {
+ display: flex;
+ flex-direction: column;
+ gap: $space-2;
+ margin-bottom: $space-3;
+ }
+
+ .url-label {
+ color: $text-secondary;
+ font-size: $font-size-sm;
+ }
+
+ .url-value {
+ background: $bg-secondary;
+ padding: $space-2 $space-3;
+ border-radius: $radius-sm;
+ font-family: $font-mono;
+ font-size: $font-size-sm;
+ color: $text-primary;
+ word-break: break-all;
+ user-select: all;
+ }
+
+ .url-actions {
+ display: flex;
+ gap: $space-2;
+ flex-wrap: wrap;
+ }
+}
+
+.btn-link {
+ background: none;
+ border: none;
+ color: $accent-primary;
+ cursor: pointer;
+ padding: 0;
+ font-size: $font-size-sm;
+
+ &:hover {
+ text-decoration: underline;
+ }
+}
+
+.slug-edit-form {
+ margin-top: $space-4;
+ padding-top: $space-4;
+ border-top: 1px solid $border-subtle;
+}
+
+.private-url-footer {
+ margin-top: $space-4;
+ padding-top: $space-4;
+ border-top: 1px solid $border-subtle;
+}
+
+// Private URL indicator in app list
+.private-url-indicator {
+ display: inline-flex;
+ align-items: center;
+ gap: $space-1;
+ color: $success;
+ font-size: $font-size-sm;
+
+ svg {
+ width: 14px;
+ height: 14px;
+ }
+}
diff --git a/frontend/src/styles/components/_query-runner.less b/frontend/src/styles/components/_query-runner.scss
similarity index 53%
rename from frontend/src/styles/components/_query-runner.less
rename to frontend/src/styles/components/_query-runner.scss
index 92d819a2..8a80205a 100644
--- a/frontend/src/styles/components/_query-runner.less
+++ b/frontend/src/styles/components/_query-runner.scss
@@ -18,7 +18,7 @@
max-height: 100%;
display: flex;
flex-direction: column;
- background: @bg-body;
+ background: $bg-body;
border-radius: 0;
overflow: hidden;
}
@@ -28,43 +28,43 @@
display: flex;
justify-content: space-between;
align-items: center;
- padding: @space-3 @space-4;
- background: @bg-sidebar;
- border-bottom: 1px solid @border-subtle;
+ padding: $space-3 $space-4;
+ background: $bg-sidebar;
+ border-bottom: 1px solid $border-subtle;
flex-shrink: 0;
}
.query-runner-title {
display: flex;
align-items: center;
- gap: @space-3;
- font-size: @font-size-md;
- font-weight: @font-weight-semibold;
- color: @text-primary;
+ gap: $space-3;
+ font-size: $font-size-md;
+ font-weight: $font-weight-semibold;
+ color: $text-primary;
svg {
- color: @accent-primary;
+ color: $accent-primary;
}
.db-type-badge {
- font-size: @font-size-xs;
- padding: @space-1 @space-2;
- border-radius: @radius-sm;
- font-weight: @font-weight-medium;
+ font-size: $font-size-xs;
+ padding: $space-1 $space-2;
+ border-radius: $radius-sm;
+ font-weight: $font-weight-medium;
&.mysql {
- background: fade(@color-mysql, 15%);
- color: @color-mysql;
+ background: fade($color-mysql, 15%);
+ color: $color-mysql;
}
&.postgresql {
- background: fade(@color-postgresql, 15%);
- color: @color-postgresql-secondary;
+ background: fade($color-postgresql, 15%);
+ color: $color-postgresql-secondary;
}
&.sqlite {
- background: fade(@accent-primary-raw, 15%);
- color: @accent-primary;
+ background: fade($accent-primary-raw, 15%);
+ color: $accent-primary;
}
}
}
@@ -72,18 +72,18 @@
.query-runner-actions {
display: flex;
align-items: center;
- gap: @space-3;
+ gap: $space-3;
.readonly-toggle {
display: flex;
align-items: center;
- gap: @space-2;
- font-size: @font-size-sm;
- color: @text-secondary;
+ gap: $space-2;
+ font-size: $font-size-sm;
+ color: $text-secondary;
cursor: pointer;
input[type="checkbox"] {
- accent-color: @warning;
+ accent-color: $warning;
}
}
@@ -95,15 +95,15 @@
justify-content: center;
background: transparent;
border: none;
- color: @text-secondary;
+ color: $text-secondary;
font-size: 24px;
cursor: pointer;
- border-radius: @radius-md;
- transition: all @transition-fast;
+ border-radius: $radius-md;
+ transition: all $transition-fast;
&:hover {
- background: @bg-hover;
- color: @text-primary;
+ background: $bg-hover;
+ color: $text-primary;
}
}
}
@@ -119,8 +119,8 @@
.query-runner-sidebar {
width: 260px;
flex-shrink: 0;
- background: @bg-sidebar;
- border-right: 1px solid @border-subtle;
+ background: $bg-sidebar;
+ border-right: 1px solid $border-subtle;
display: flex;
flex-direction: column;
overflow: hidden;
@@ -137,18 +137,18 @@
}
&:last-child {
- border-top: 1px solid @border-subtle;
+ border-top: 1px solid $border-subtle;
max-height: 40%;
}
h4 {
- padding: @space-3 @space-4;
+ padding: $space-3 $space-4;
margin: 0;
- font-size: @font-size-sm;
- font-weight: @font-weight-semibold;
- color: @text-secondary;
- background: @bg-card;
- border-bottom: 1px solid @border-subtle;
+ font-size: $font-size-sm;
+ font-weight: $font-weight-semibold;
+ color: $text-secondary;
+ background: $bg-card;
+ border-bottom: 1px solid $border-subtle;
display: flex;
align-items: center;
justify-content: space-between;
@@ -162,14 +162,14 @@
justify-content: center;
background: transparent;
border: none;
- color: @text-secondary;
+ color: $text-secondary;
cursor: pointer;
- border-radius: @radius-sm;
- transition: all @transition-fast;
+ border-radius: $radius-sm;
+ transition: all $transition-fast;
&:hover {
- background: @bg-hover;
- color: @accent-primary;
+ background: $bg-hover;
+ color: $accent-primary;
}
}
}
@@ -179,40 +179,40 @@
.columns-list {
flex: 1;
overflow-y: auto;
- padding: @space-2;
+ padding: $space-2;
}
.table-item {
display: flex;
align-items: center;
justify-content: space-between;
- padding: @space-2 @space-3;
- border-radius: @radius-md;
+ padding: $space-2 $space-3;
+ border-radius: $radius-md;
cursor: pointer;
- transition: all @transition-fast;
+ transition: all $transition-fast;
&:hover {
- background: @bg-hover;
+ background: $bg-hover;
}
&.selected {
- background: @accent-glow;
- border: 1px solid fade(@accent-primary-raw, 30%);
+ background: $accent-glow;
+ border: 1px solid fade($accent-primary-raw, 30%);
}
.table-name {
- font-size: @font-size-sm;
- color: @text-primary;
+ font-size: $font-size-sm;
+ color: $text-primary;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.table-rows {
- font-size: @font-size-xs;
- color: @text-tertiary;
+ font-size: $font-size-xs;
+ color: $text-tertiary;
flex-shrink: 0;
- margin-left: @space-2;
+ margin-left: $space-2;
}
}
@@ -220,25 +220,25 @@
display: flex;
align-items: center;
justify-content: space-between;
- padding: @space-1 @space-3;
- border-radius: @radius-sm;
+ padding: $space-1 $space-3;
+ border-radius: $radius-sm;
cursor: pointer;
- transition: all @transition-fast;
+ transition: all $transition-fast;
&:hover {
- background: @bg-hover;
+ background: $bg-hover;
}
.column-name {
- font-size: @font-size-sm;
- font-family: @font-mono;
- color: @text-primary;
+ font-size: $font-size-sm;
+ font-family: $font-mono;
+ color: $text-primary;
}
.column-type {
- font-size: @font-size-xs;
- font-family: @font-mono;
- color: @text-tertiary;
+ font-size: $font-size-xs;
+ font-family: $font-mono;
+ color: $text-tertiary;
}
}
@@ -248,37 +248,37 @@
display: flex;
flex-direction: column;
overflow: hidden;
- background: @bg-body;
+ background: $bg-body;
}
// Query editor
.query-editor {
flex-shrink: 0;
- padding: @space-4;
- border-bottom: 1px solid @border-subtle;
+ padding: $space-4;
+ border-bottom: 1px solid $border-subtle;
textarea {
width: 100%;
height: 150px;
- padding: @space-3;
- font-family: @font-mono;
- font-size: @font-size-sm;
- line-height: @line-height-relaxed;
- background: @bg-card;
- border: 1px solid @border-subtle;
- border-radius: @radius-md;
- color: @text-primary;
+ padding: $space-3;
+ font-family: $font-mono;
+ font-size: $font-size-sm;
+ line-height: $line-height-relaxed;
+ background: $bg-card;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-md;
+ color: $text-primary;
resize: vertical;
- transition: border-color @transition-fast;
+ transition: border-color $transition-fast;
&:focus {
outline: none;
- border-color: @accent-primary;
- box-shadow: 0 0 0 3px @accent-glow;
+ border-color: $accent-primary;
+ box-shadow: 0 0 0 3px $accent-glow;
}
&::placeholder {
- color: @text-tertiary;
+ color: $text-tertiary;
}
}
}
@@ -287,23 +287,23 @@
display: flex;
justify-content: space-between;
align-items: center;
- margin-top: @space-3;
+ margin-top: $space-3;
}
.query-hints {
display: flex;
align-items: center;
- gap: @space-2;
+ gap: $space-2;
.hint {
display: flex;
align-items: center;
- gap: @space-1;
- font-size: @font-size-sm;
- color: @text-tertiary;
+ gap: $space-1;
+ font-size: $font-size-sm;
+ color: $text-tertiary;
svg {
- color: @warning;
+ color: $warning;
}
}
}
@@ -312,12 +312,12 @@
.query-error {
display: flex;
align-items: flex-start;
- gap: @space-2;
- padding: @space-3 @space-4;
- background: @danger-bg;
- border-bottom: 1px solid @danger-border;
- color: @danger;
- font-size: @font-size-sm;
+ gap: $space-2;
+ padding: $space-3 $space-4;
+ background: $danger-bg;
+ border-bottom: 1px solid $danger-border;
+ color: $danger;
+ font-size: $font-size-sm;
svg {
flex-shrink: 0;
@@ -337,14 +337,14 @@
display: flex;
justify-content: space-between;
align-items: center;
- padding: @space-2 @space-4;
- background: @bg-card;
- border-bottom: 1px solid @border-subtle;
+ padding: $space-2 $space-4;
+ background: $bg-card;
+ border-bottom: 1px solid $border-subtle;
flex-shrink: 0;
.results-info {
- font-size: @font-size-sm;
- color: @text-secondary;
+ font-size: $font-size-sm;
+ color: $text-secondary;
}
}
@@ -357,12 +357,12 @@
.results-table {
width: 100%;
border-collapse: collapse;
- font-size: @font-size-sm;
+ font-size: $font-size-sm;
th, td {
- padding: @space-2 @space-3;
+ padding: $space-2 $space-3;
text-align: left;
- border-bottom: 1px solid @border-subtle;
+ border-bottom: 1px solid $border-subtle;
white-space: nowrap;
max-width: 300px;
overflow: hidden;
@@ -372,41 +372,41 @@
th {
position: sticky;
top: 0;
- background: @bg-card;
- font-weight: @font-weight-medium;
- color: @text-secondary;
+ background: $bg-card;
+ font-weight: $font-weight-medium;
+ color: $text-secondary;
cursor: pointer;
user-select: none;
- transition: background @transition-fast;
+ transition: background $transition-fast;
&:hover {
- background: @bg-hover;
+ background: $bg-hover;
}
&.sorted-asc,
&.sorted-desc {
- color: @accent-primary;
+ color: $accent-primary;
}
.sort-indicator {
- font-size: @font-size-xs;
- margin-left: @space-1;
+ font-size: $font-size-xs;
+ margin-left: $space-1;
}
}
td {
- font-family: @font-mono;
- color: @text-primary;
+ font-family: $font-mono;
+ color: $text-primary;
&.null-value {
- color: @text-tertiary;
+ color: $text-tertiary;
font-style: italic;
}
}
tbody tr {
&:hover {
- background: fade(@bg-hover-raw, 50%);
+ background: fade($bg-hover-raw, 50%);
}
}
}
@@ -418,14 +418,14 @@
right: 0;
width: 400px;
max-height: calc(100% - 80px);
- background: @bg-card;
- border: 1px solid @border-subtle;
- border-radius: @radius-lg;
- box-shadow: @shadow-lg;
+ background: $bg-card;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-lg;
+ box-shadow: $shadow-lg;
display: flex;
flex-direction: column;
- z-index: @z-modal;
- margin: @space-4;
+ z-index: $z-modal;
+ margin: $space-4;
overflow: hidden;
}
@@ -433,51 +433,51 @@
display: flex;
justify-content: space-between;
align-items: center;
- padding: @space-3 @space-4;
- border-bottom: 1px solid @border-subtle;
+ padding: $space-3 $space-4;
+ border-bottom: 1px solid $border-subtle;
h4 {
margin: 0;
- font-size: @font-size-base;
- font-weight: @font-weight-semibold;
- color: @text-primary;
+ font-size: $font-size-base;
+ font-weight: $font-weight-semibold;
+ color: $text-primary;
}
}
.history-list {
flex: 1;
overflow-y: auto;
- padding: @space-2;
+ padding: $space-2;
}
.history-item {
- padding: @space-3;
- border-radius: @radius-md;
+ padding: $space-3;
+ border-radius: $radius-md;
cursor: pointer;
- transition: all @transition-fast;
+ transition: all $transition-fast;
&:hover {
- background: @bg-hover;
+ background: $bg-hover;
}
code {
display: block;
- font-family: @font-mono;
- font-size: @font-size-sm;
- color: @text-primary;
+ font-family: $font-mono;
+ font-size: $font-size-sm;
+ color: $text-primary;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
- margin-bottom: @space-1;
+ margin-bottom: $space-1;
}
.history-time {
- font-size: @font-size-xs;
- color: @text-tertiary;
+ font-size: $font-size-xs;
+ color: $text-tertiary;
}
}
// SQLite icon color
.db-item-icon.sqlite {
- color: @accent-primary;
+ color: $accent-primary;
}
diff --git a/frontend/src/styles/components/_services.less b/frontend/src/styles/components/_services.less
deleted file mode 100644
index 4b7ff8cf..00000000
--- a/frontend/src/styles/components/_services.less
+++ /dev/null
@@ -1,65 +0,0 @@
-// ============================================
-// SERVICES STATUS COMPONENTS
-// ============================================
-
-.services-grid {
- display: flex;
- flex-wrap: wrap;
- gap: @space-3;
- margin-bottom: @space-6;
-}
-
-.service-item {
- .flex-start();
- gap: @space-2;
- padding: @space-2 @space-4;
- background: @bg-card;
- border: 1px solid @border-subtle;
- border-radius: @radius-lg;
- font-size: @font-size-sm + 1;
-}
-
-.service-dot {
- width: 8px;
- height: 8px;
- border-radius: @radius-full;
-
- &.running {
- background: @success;
- box-shadow: 0 0 8px @success;
- }
-
- &.stopped {
- background: @text-tertiary;
- }
-}
-
-.service-name {
- font-weight: @font-weight-medium;
- color: @text-primary;
-}
-
-.service-status {
- color: @text-tertiary;
- font-size: @font-size-sm;
-}
-
-// Live indicator (pulsing dot)
-.live-indicator {
- color: @success;
- font-size: @font-size-sm;
- font-weight: @font-weight-medium;
-
- &::before {
- content: '';
- display: inline-block;
- .status-dot(@success);
- margin-right: @space-1;
- animation: pulse 2s infinite;
- }
-}
-
-@keyframes pulse {
- 0%, 100% { opacity: 1; }
- 50% { opacity: 0.5; }
-}
diff --git a/frontend/src/styles/components/_services.scss b/frontend/src/styles/components/_services.scss
new file mode 100644
index 00000000..e515240d
--- /dev/null
+++ b/frontend/src/styles/components/_services.scss
@@ -0,0 +1,65 @@
+// ============================================
+// SERVICES STATUS COMPONENTS
+// ============================================
+
+.services-grid {
+ display: flex;
+ flex-wrap: wrap;
+ gap: $space-3;
+ margin-bottom: $space-6;
+}
+
+.service-item {
+ @include flex-start();
+ gap: $space-2;
+ padding: $space-2 $space-4;
+ background: $bg-card;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-lg;
+ font-size: $font-size-sm + 1;
+}
+
+.service-dot {
+ width: 8px;
+ height: 8px;
+ border-radius: $radius-full;
+
+ &.running {
+ background: $success;
+ box-shadow: 0 0 8px $success;
+ }
+
+ &.stopped {
+ background: $text-tertiary;
+ }
+}
+
+.service-name {
+ font-weight: $font-weight-medium;
+ color: $text-primary;
+}
+
+.service-status {
+ color: $text-tertiary;
+ font-size: $font-size-sm;
+}
+
+// Live indicator (pulsing dot)
+.live-indicator {
+ color: $success;
+ font-size: $font-size-sm;
+ font-weight: $font-weight-medium;
+
+ &::before {
+ content: '';
+ display: inline-block;
+ @include status-dot($success);
+ margin-right: $space-1;
+ animation: pulse 2s infinite;
+ }
+}
+
+@keyframes pulse {
+ 0%, 100% { opacity: 1; }
+ 50% { opacity: 0.5; }
+}
diff --git a/frontend/src/styles/components/_spinner.less b/frontend/src/styles/components/_spinner.scss
similarity index 82%
rename from frontend/src/styles/components/_spinner.less
rename to frontend/src/styles/components/_spinner.scss
index 643f76b7..216a06eb 100644
--- a/frontend/src/styles/components/_spinner.less
+++ b/frontend/src/styles/components/_spinner.scss
@@ -44,8 +44,8 @@
.spinner-ring {
border-radius: 50%;
border-style: solid;
- border-color: fade(@accent-primary-raw, 30%);
- border-top-color: @accent-primary;
+ border-color: fade($accent-primary-raw, 30%);
+ border-top-color: $accent-primary;
animation: spinner-rotate 0.8s linear infinite;
}
@@ -64,12 +64,12 @@
flex-direction: column;
align-items: center;
justify-content: center;
- gap: @space-3;
- padding: @space-8;
- color: @text-secondary;
+ gap: $space-3;
+ padding: $space-8;
+ color: $text-secondary;
span {
- font-size: @font-size-sm;
+ font-size: $font-size-sm;
}
}
@@ -86,8 +86,8 @@
transform: translate(-50%, -50%);
.spinner-ring {
- border-color: @border-subtle;
- border-top-color: @text-primary;
+ border-color: $border-subtle;
+ border-top-color: $text-primary;
}
}
@@ -97,8 +97,8 @@
}
&.btn-secondary .spinner .spinner-ring {
- border-color: fade(@text-primary-raw, 30%);
- border-top-color: @text-primary;
+ border-color: fade($text-primary-raw, 30%);
+ border-top-color: $text-primary;
}
&.btn-danger .spinner .spinner-ring {
diff --git a/frontend/src/styles/components/_tabs.less b/frontend/src/styles/components/_tabs.less
deleted file mode 100644
index 34466a98..00000000
--- a/frontend/src/styles/components/_tabs.less
+++ /dev/null
@@ -1,44 +0,0 @@
-// ============================================
-// TAB COMPONENTS
-// ============================================
-
-.tabs {
- display: flex;
- gap: @space-2;
- border-bottom: 1px solid @border-subtle;
- margin-bottom: @space-6;
- overflow-x: auto;
- .custom-scrollbar();
-
- @media (max-width: @breakpoint-md) {
- overflow-x: auto;
- -webkit-overflow-scrolling: touch;
- }
-}
-
-.tab {
- background: none;
- border: none;
- padding: @space-3 @space-5;
- color: @text-secondary;
- font-size: @font-size-base;
- font-weight: @font-weight-medium;
- cursor: pointer;
- border-bottom: 2px solid transparent;
- margin-bottom: -1px;
- .transition();
- white-space: nowrap;
-
- &:hover {
- color: @text-primary;
- }
-
- &.active {
- color: @accent-primary;
- border-bottom-color: @accent-primary;
- }
-}
-
-.tab-content {
- min-height: 400px;
-}
diff --git a/frontend/src/styles/components/_tabs.scss b/frontend/src/styles/components/_tabs.scss
new file mode 100644
index 00000000..a39a8702
--- /dev/null
+++ b/frontend/src/styles/components/_tabs.scss
@@ -0,0 +1,55 @@
+// ============================================
+// TAB COMPONENTS
+// ============================================
+
+.tabs-container {
+ overflow: hidden;
+}
+
+.tabs {
+ display: flex;
+ gap: $space-2;
+ border-bottom: 1px solid $border-subtle;
+ margin-bottom: $space-6;
+ overflow-x: auto;
+ scrollbar-width: none;
+ @include custom-scrollbar();
+
+ &::-webkit-scrollbar {
+ display: none;
+ }
+
+ @media (max-width: $breakpoint-md) {
+ -webkit-overflow-scrolling: touch;
+ }
+}
+
+.tab {
+ display: inline-flex;
+ align-items: center;
+ gap: $space-2;
+ background: none;
+ border: none;
+ padding: $space-3 $space-5;
+ color: $text-secondary;
+ font-size: $font-size-base;
+ font-weight: $font-weight-medium;
+ cursor: pointer;
+ border-bottom: 2px solid transparent;
+ margin-bottom: -1px;
+ @include transition();
+ white-space: nowrap;
+
+ &:hover {
+ color: $text-primary;
+ }
+
+ &.active {
+ color: $accent-primary;
+ border-bottom-color: $accent-primary;
+ }
+}
+
+.tab-content {
+ min-height: 400px;
+}
diff --git a/frontend/src/styles/components/_toasts.less b/frontend/src/styles/components/_toasts.scss
similarity index 56%
rename from frontend/src/styles/components/_toasts.less
rename to frontend/src/styles/components/_toasts.scss
index 53e4d648..3cbbd3e1 100644
--- a/frontend/src/styles/components/_toasts.less
+++ b/frontend/src/styles/components/_toasts.scss
@@ -4,12 +4,12 @@
.toast-container {
position: fixed;
- top: @space-4;
- right: @space-4;
+ top: $space-4;
+ right: $space-4;
z-index: 9999;
display: flex;
flex-direction: column;
- gap: @space-2;
+ gap: $space-2;
max-width: 400px;
pointer-events: none;
}
@@ -17,12 +17,12 @@
.toast {
display: flex;
align-items: flex-start;
- gap: @space-3;
- padding: @space-3 @space-4;
- border-radius: @radius-md;
- background: @bg-card;
- border: 1px solid @border-subtle;
- box-shadow: @shadow-lg;
+ gap: $space-3;
+ padding: $space-3 $space-4;
+ border-radius: $radius-md;
+ background: $bg-card;
+ border: 1px solid $border-subtle;
+ box-shadow: $shadow-lg;
pointer-events: auto;
animation: toast-slide-in 0.3s ease-out;
@@ -40,61 +40,61 @@
&-message {
flex: 1;
- font-size: @font-size-sm;
+ font-size: $font-size-sm;
line-height: 1.4;
- color: @text-primary;
+ color: $text-primary;
}
&-dismiss {
flex-shrink: 0;
background: none;
border: none;
- padding: @space-1;
+ padding: $space-1;
cursor: pointer;
- color: @text-tertiary;
- border-radius: @radius-sm;
- .transition(all);
+ color: $text-tertiary;
+ border-radius: $radius-sm;
+ @include transition(all);
&:hover {
- color: @text-primary;
- background: @bg-hover;
+ color: $text-primary;
+ background: $bg-hover;
}
}
// Variants
&-success {
- border-color: fade(@success, 30%);
- background: fade(@success, 10%);
+ border-color: fade($success, 30%);
+ background: fade($success, 10%);
.toast-icon {
- color: @success;
+ color: $success;
}
}
&-error {
- border-color: fade(@danger, 30%);
- background: fade(@danger, 10%);
+ border-color: fade($danger, 30%);
+ background: fade($danger, 10%);
.toast-icon {
- color: @danger;
+ color: $danger;
}
}
&-warning {
- border-color: fade(@warning, 30%);
- background: fade(@warning, 10%);
+ border-color: fade($warning, 30%);
+ background: fade($warning, 10%);
.toast-icon {
- color: @warning;
+ color: $warning;
}
}
&-info {
- border-color: fade(@accent-primary-raw, 30%);
- background: fade(@accent-primary-raw, 10%);
+ border-color: fade($accent-primary-raw, 30%);
+ background: fade($accent-primary-raw, 10%);
.toast-icon {
- color: @accent-primary;
+ color: $accent-primary;
}
}
}
diff --git a/frontend/src/styles/components/_two-factor.less b/frontend/src/styles/components/_two-factor.scss
similarity index 52%
rename from frontend/src/styles/components/_two-factor.less
rename to frontend/src/styles/components/_two-factor.scss
index 15da133d..087c4579 100644
--- a/frontend/src/styles/components/_two-factor.less
+++ b/frontend/src/styles/components/_two-factor.scss
@@ -6,8 +6,8 @@
.totp-inputs {
display: flex;
justify-content: center;
- gap: @space-2;
- margin: @space-6 0;
+ gap: $space-2;
+ margin: $space-6 0;
}
.totp-input {
@@ -16,20 +16,20 @@
font-size: 24px;
font-weight: 600;
text-align: center;
- border: 2px solid @border-subtle;
- border-radius: @radius-md;
- background: @bg-card;
- color: @text-primary;
+ border: 2px solid $border-subtle;
+ border-radius: $radius-md;
+ background: $bg-card;
+ color: $text-primary;
transition: all 0.2s;
&:focus {
- border-color: @accent-primary;
+ border-color: $accent-primary;
outline: none;
- box-shadow: 0 0 0 3px fade(@accent-primary-raw, 20%);
+ box-shadow: 0 0 0 3px fade($accent-primary-raw, 20%);
}
&::placeholder {
- color: @text-tertiary;
+ color: $text-tertiary;
}
}
@@ -38,16 +38,16 @@
display: flex;
flex-direction: column;
align-items: center;
- gap: @space-2;
- margin-top: @space-6;
+ gap: $space-2;
+ margin-top: $space-6;
}
.link-button {
background: none;
border: none;
- color: @accent-primary;
+ color: $accent-primary;
cursor: pointer;
- font-size: @font-size-sm;
+ font-size: $font-size-sm;
padding: 0;
&:hover {
@@ -57,16 +57,16 @@
// 2FA Card in Settings
.two-fa-card {
- border: 1px solid @border-subtle;
- border-radius: @radius-lg;
- padding: @space-6;
- margin-bottom: @space-6;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-lg;
+ padding: $space-6;
+ margin-bottom: $space-6;
}
.two-fa-header {
display: flex;
- gap: @space-4;
- margin-bottom: @space-6;
+ gap: $space-4;
+ margin-bottom: $space-6;
.two-fa-icon {
width: 48px;
@@ -74,27 +74,27 @@
display: flex;
align-items: center;
justify-content: center;
- background: fade(@accent-primary-raw, 15%);
- border-radius: @radius-md;
- color: @accent-primary;
+ background: fade($accent-primary-raw, 15%);
+ border-radius: $radius-md;
+ color: $accent-primary;
flex-shrink: 0;
}
h3 {
- margin: 0 0 @space-1 0;
+ margin: 0 0 $space-1 0;
}
p {
margin: 0;
- color: @text-secondary;
- font-size: @font-size-sm;
+ color: $text-secondary;
+ font-size: $font-size-sm;
}
}
.two-fa-disabled {
.two-fa-description {
- color: @text-secondary;
- margin-bottom: @space-4;
+ color: $text-secondary;
+ margin-bottom: $space-4;
}
}
@@ -102,33 +102,33 @@
.two-fa-status {
display: flex;
align-items: center;
- gap: @space-2;
- margin-bottom: @space-4;
+ gap: $space-2;
+ margin-bottom: $space-4;
}
.two-fa-info {
- color: @text-secondary;
- font-size: @font-size-sm;
+ color: $text-secondary;
+ font-size: $font-size-sm;
}
.two-fa-backup-info {
- background: @bg-hover;
- padding: @space-2 @space-4;
- border-radius: @radius-sm;
- margin-bottom: @space-4;
+ background: $bg-hover;
+ padding: $space-2 $space-4;
+ border-radius: $radius-sm;
+ margin-bottom: $space-4;
display: flex;
flex-direction: column;
- gap: @space-1;
+ gap: $space-1;
.warning-text {
- color: @warning;
- font-size: @font-size-sm;
+ color: $warning;
+ font-size: $font-size-sm;
}
}
.two-fa-actions {
display: flex;
- gap: @space-2;
+ gap: $space-2;
}
}
@@ -136,12 +136,12 @@
.setup-steps {
display: flex;
flex-direction: column;
- gap: @space-6;
+ gap: $space-6;
}
.setup-step {
display: flex;
- gap: @space-4;
+ gap: $space-4;
.step-number {
width: 28px;
@@ -149,11 +149,11 @@
display: flex;
align-items: center;
justify-content: center;
- background: @accent-primary;
+ background: $accent-primary;
color: white;
border-radius: 50%;
font-weight: 600;
- font-size: @font-size-sm;
+ font-size: $font-size-sm;
flex-shrink: 0;
}
@@ -161,13 +161,13 @@
flex: 1;
h4 {
- margin: 0 0 @space-1 0;
+ margin: 0 0 $space-1 0;
}
p {
- color: @text-secondary;
- margin: 0 0 @space-4 0;
- font-size: @font-size-sm;
+ color: $text-secondary;
+ margin: 0 0 $space-4 0;
+ font-size: $font-size-sm;
}
}
}
@@ -175,10 +175,10 @@
.qr-code-container {
display: flex;
justify-content: center;
- padding: @space-4;
+ padding: $space-4;
background: white;
- border-radius: @radius-md;
- margin-bottom: @space-4;
+ border-radius: $radius-md;
+ margin-bottom: $space-4;
}
.qr-code {
@@ -187,30 +187,30 @@
}
.qr-fallback {
- background: @bg-hover;
- padding: @space-4;
- border-radius: @radius-md;
+ background: $bg-hover;
+ padding: $space-4;
+ border-radius: $radius-md;
text-align: center;
.secret-key {
display: block;
- font-size: @font-size-lg;
- padding: @space-2;
- margin-top: @space-2;
- background: @bg-body;
- border-radius: @radius-sm;
+ font-size: $font-size-lg;
+ padding: $space-2;
+ margin-top: $space-2;
+ background: $bg-body;
+ border-radius: $radius-sm;
word-break: break-all;
}
}
.manual-entry {
- margin-top: @space-4;
- font-size: @font-size-sm;
- color: @text-secondary;
+ margin-top: $space-4;
+ font-size: $font-size-sm;
+ color: $text-secondary;
summary {
cursor: pointer;
- color: @accent-primary;
+ color: $accent-primary;
&:hover {
text-decoration: underline;
@@ -218,13 +218,13 @@
}
p {
- margin: @space-1 0;
+ margin: $space-1 0;
}
code {
- background: @bg-hover;
+ background: $bg-hover;
padding: 2px 6px;
- border-radius: @radius-sm;
+ border-radius: $radius-sm;
}
}
@@ -233,7 +233,7 @@
font-weight: 600;
text-align: center;
letter-spacing: 0.5em;
- padding: @space-4;
+ padding: $space-4;
width: 100%;
max-width: 200px;
}
@@ -241,56 +241,56 @@
// Warning Box
.warning-box {
display: flex;
- gap: @space-4;
- padding: @space-4;
- background: fade(@warning, 10%);
- border: 1px solid fade(@warning, 30%);
- border-radius: @radius-md;
- margin-bottom: @space-6;
+ gap: $space-4;
+ padding: $space-4;
+ background: fade($warning, 10%);
+ border: 1px solid fade($warning, 30%);
+ border-radius: $radius-md;
+ margin-bottom: $space-6;
svg {
flex-shrink: 0;
- color: @warning;
+ color: $warning;
}
p {
margin: 0;
- color: @text-primary;
- font-size: @font-size-sm;
+ color: $text-primary;
+ font-size: $font-size-sm;
}
}
.error-text {
- color: @danger;
- font-size: @font-size-sm;
- margin-top: @space-1;
+ color: $danger;
+ font-size: $font-size-sm;
+ margin-top: $space-1;
}
// Backup Codes Grid
.backup-codes-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
- gap: @space-2;
- margin-bottom: @space-6;
+ gap: $space-2;
+ margin-bottom: $space-6;
}
.backup-code {
display: block;
- padding: @space-2 @space-4;
- background: @bg-hover;
- border-radius: @radius-sm;
+ padding: $space-2 $space-4;
+ background: $bg-hover;
+ border-radius: $radius-sm;
text-align: center;
- font-size: @font-size-md;
- font-family: @font-mono;
+ font-size: $font-size-md;
+ font-family: $font-mono;
}
.backup-codes-actions {
display: flex;
justify-content: center;
- gap: @space-2;
+ gap: $space-2;
.btn svg {
- margin-right: @space-1;
+ margin-right: $space-1;
}
}
@@ -301,6 +301,6 @@
// Loading small
.loading-sm {
- color: @text-tertiary;
- font-size: @font-size-sm;
+ color: $text-tertiary;
+ font-size: $font-size-sm;
}
diff --git a/frontend/src/styles/components/_uptime.less b/frontend/src/styles/components/_uptime.scss
similarity index 50%
rename from frontend/src/styles/components/_uptime.less
rename to frontend/src/styles/components/_uptime.scss
index b929ec4b..ca9872ec 100644
--- a/frontend/src/styles/components/_uptime.less
+++ b/frontend/src/styles/components/_uptime.scss
@@ -3,23 +3,23 @@
// ============================================
.uptime-card {
- background: @bg-card;
- border: 1px solid @border-subtle;
- border-radius: @radius-xl;
- padding: @space-6;
+ background: $bg-card;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-xl;
+ padding: $space-6;
&.loading,
&.error {
display: flex;
align-items: center;
justify-content: center;
- gap: @space-3;
+ gap: $space-3;
min-height: 200px;
- color: @text-tertiary;
+ color: $text-tertiary;
}
&.error {
- color: @danger;
+ color: $danger;
}
}
@@ -27,63 +27,63 @@
display: flex;
align-items: flex-start;
justify-content: space-between;
- margin-bottom: @space-6;
+ margin-bottom: $space-6;
}
.uptime-title {
display: flex;
align-items: center;
- gap: @space-3;
+ gap: $space-3;
.uptime-icon {
- color: @success;
+ color: $success;
}
h3 {
- font-size: @font-size-lg;
- font-weight: @font-weight-semibold;
- color: @text-primary;
- margin: 0 0 @space-1 0;
+ font-size: $font-size-lg;
+ font-weight: $font-weight-semibold;
+ color: $text-primary;
+ margin: 0 0 $space-1 0;
}
}
.uptime-status {
display: inline-flex;
align-items: center;
- gap: @space-2;
- font-size: @font-size-sm;
- color: @text-secondary;
+ gap: $space-2;
+ font-size: $font-size-sm;
+ color: $text-secondary;
.status-dot {
width: 8px;
height: 8px;
border-radius: 50%;
- background: @text-tertiary;
+ background: $text-tertiary;
}
&.online {
- color: @success;
+ color: $success;
.status-dot {
- background: @success;
- box-shadow: 0 0 8px @success;
+ background: $success;
+ box-shadow: 0 0 8px $success;
animation: pulse-dot 2s ease-in-out infinite;
}
}
&.degraded {
- color: @warning;
+ color: $warning;
.status-dot {
- background: @warning;
+ background: $warning;
}
}
&.offline {
- color: @danger;
+ color: $danger;
.status-dot {
- background: @danger;
+ background: $danger;
}
}
}
@@ -104,31 +104,31 @@
.percentage-value {
display: block;
- font-size: @font-size-2xl;
- font-weight: @font-weight-bold;
- font-family: @font-mono;
- color: @text-primary;
+ font-size: $font-size-2xl;
+ font-weight: $font-weight-bold;
+ font-family: $font-mono;
+ color: $text-primary;
&.excellent {
- color: @success;
+ color: $success;
}
&.good {
- color: @success;
+ color: $success;
}
&.fair {
- color: @warning;
+ color: $warning;
}
&.poor {
- color: @danger;
+ color: $danger;
}
}
.percentage-label {
- font-size: @font-size-xs;
- color: @text-tertiary;
+ font-size: $font-size-xs;
+ color: $text-tertiary;
text-transform: uppercase;
letter-spacing: 0.5px;
}
@@ -139,12 +139,12 @@
display: flex;
align-items: center;
justify-content: center;
- gap: @space-2;
- padding: @space-5;
- background: linear-gradient(135deg, fade(@accent-primary-raw, 5%), fade(@success, 5%));
- border: 1px solid @border-subtle;
- border-radius: @radius-lg;
- margin-bottom: @space-6;
+ gap: $space-2;
+ padding: $space-5;
+ background: linear-gradient(135deg, fade($accent-primary-raw, 5%), fade($success, 5%));
+ border: 1px solid $border-subtle;
+ border-radius: $radius-lg;
+ margin-bottom: $space-6;
}
.uptime-counter-item {
@@ -155,73 +155,73 @@
.counter-value {
font-size: 32px;
- font-weight: @font-weight-bold;
- font-family: @font-mono;
- color: @text-primary;
+ font-weight: $font-weight-bold;
+ font-family: $font-mono;
+ color: $text-primary;
line-height: 1;
}
.counter-label {
- font-size: @font-size-xs;
- color: @text-tertiary;
+ font-size: $font-size-xs;
+ color: $text-tertiary;
text-transform: uppercase;
letter-spacing: 0.5px;
- margin-top: @space-1;
+ margin-top: $space-1;
}
}
.counter-separator {
font-size: 32px;
- font-weight: @font-weight-bold;
- font-family: @font-mono;
- color: @text-tertiary;
- margin: 0 @space-1;
- margin-bottom: @space-4;
+ font-weight: $font-weight-bold;
+ font-family: $font-mono;
+ color: $text-tertiary;
+ margin: 0 $space-1;
+ margin-bottom: $space-4;
}
// Graph Section
.uptime-graph-section {
- margin-bottom: @space-5;
+ margin-bottom: $space-5;
}
.uptime-graph-header {
display: flex;
align-items: center;
justify-content: space-between;
- margin-bottom: @space-3;
+ margin-bottom: $space-3;
.graph-title {
- font-size: @font-size-sm;
- font-weight: @font-weight-medium;
- color: @text-secondary;
+ font-size: $font-size-sm;
+ font-weight: $font-weight-medium;
+ color: $text-secondary;
}
}
.period-selector {
display: flex;
- gap: @space-1;
- background: @bg-hover;
- padding: @space-1;
- border-radius: @radius-md;
+ gap: $space-1;
+ background: $bg-hover;
+ padding: $space-1;
+ border-radius: $radius-md;
}
.period-btn {
- padding: @space-1 @space-3;
- font-size: @font-size-xs;
- font-weight: @font-weight-medium;
- color: @text-tertiary;
+ padding: $space-1 $space-3;
+ font-size: $font-size-xs;
+ font-weight: $font-weight-medium;
+ color: $text-tertiary;
background: transparent;
border: none;
- border-radius: @radius-sm;
+ border-radius: $radius-sm;
cursor: pointer;
- transition: all @transition-fast;
+ transition: all $transition-fast;
&:hover {
- color: @text-primary;
+ color: $text-primary;
}
&.active {
- background: @accent-primary;
+ background: $accent-primary;
color: white;
}
}
@@ -230,8 +230,8 @@
display: flex;
gap: 2px;
height: 32px;
- background: @bg-hover;
- border-radius: @radius-md;
+ background: $bg-hover;
+ border-radius: $radius-md;
overflow: hidden;
padding: 4px;
}
@@ -239,7 +239,7 @@
.graph-bar {
flex: 1;
border-radius: 2px;
- transition: transform @transition-fast, opacity @transition-fast;
+ transition: transform $transition-fast, opacity $transition-fast;
cursor: pointer;
min-width: 4px;
@@ -249,29 +249,29 @@
}
&.up {
- background: @success;
+ background: $success;
}
&.degraded {
- background: @warning;
+ background: $warning;
}
&.down {
- background: @danger;
+ background: $danger;
}
&.no_data,
&.no-data {
- background: @border-subtle;
+ background: $border-subtle;
}
}
.uptime-graph-labels {
display: flex;
justify-content: space-between;
- margin-top: @space-2;
- font-size: @font-size-xs;
- color: @text-tertiary;
+ margin-top: $space-2;
+ font-size: $font-size-xs;
+ color: $text-tertiary;
}
// Legend
@@ -279,19 +279,19 @@
display: flex;
align-items: center;
justify-content: center;
- gap: @space-5;
- padding: @space-3 0;
- border-top: 1px solid @border-subtle;
- border-bottom: 1px solid @border-subtle;
- margin-bottom: @space-5;
+ gap: $space-5;
+ padding: $space-3 0;
+ border-top: 1px solid $border-subtle;
+ border-bottom: 1px solid $border-subtle;
+ margin-bottom: $space-5;
}
.legend-item {
display: flex;
align-items: center;
- gap: @space-2;
- font-size: @font-size-xs;
- color: @text-secondary;
+ gap: $space-2;
+ font-size: $font-size-xs;
+ color: $text-secondary;
}
.legend-dot {
@@ -300,19 +300,19 @@
border-radius: 2px;
&.up {
- background: @success;
+ background: $success;
}
&.degraded {
- background: @warning;
+ background: $warning;
}
&.down {
- background: @danger;
+ background: $danger;
}
&.no-data {
- background: @border-subtle;
+ background: $border-subtle;
}
}
@@ -320,41 +320,41 @@
.uptime-stats-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
- gap: @space-3;
+ gap: $space-3;
}
.uptime-stat {
display: flex;
flex-direction: column;
align-items: center;
- padding: @space-3;
- background: @bg-hover;
- border-radius: @radius-md;
+ padding: $space-3;
+ background: $bg-hover;
+ border-radius: $radius-md;
.stat-period {
- font-size: @font-size-xs;
- color: @text-tertiary;
+ font-size: $font-size-xs;
+ color: $text-tertiary;
text-transform: uppercase;
- margin-bottom: @space-1;
+ margin-bottom: $space-1;
}
.stat-value {
- font-size: @font-size-md;
- font-weight: @font-weight-bold;
- font-family: @font-mono;
- color: @text-primary;
+ font-size: $font-size-md;
+ font-weight: $font-weight-bold;
+ font-family: $font-mono;
+ color: $text-primary;
&.excellent,
&.good {
- color: @success;
+ color: $success;
}
&.fair {
- color: @warning;
+ color: $warning;
}
&.poor {
- color: @danger;
+ color: $danger;
}
}
}
@@ -364,39 +364,39 @@
display: flex;
align-items: center;
justify-content: space-between;
- padding: @space-4 @space-5;
- background: @bg-card;
- border: 1px solid @border-subtle;
- border-radius: @radius-lg;
+ padding: $space-4 $space-5;
+ background: $bg-card;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-lg;
}
.uptime-compact-status {
display: flex;
align-items: center;
- gap: @space-3;
+ gap: $space-3;
.uptime-compact-label {
- font-size: @font-size-sm;
- color: @text-secondary;
+ font-size: $font-size-sm;
+ color: $text-secondary;
}
.uptime-compact-percent {
- font-size: @font-size-base;
- font-weight: @font-weight-bold;
- font-family: @font-mono;
- padding: @space-1 @space-2;
- border-radius: @radius-sm;
- background: @success-bg;
- color: @success;
+ font-size: $font-size-base;
+ font-weight: $font-weight-bold;
+ font-family: $font-mono;
+ padding: $space-1 $space-2;
+ border-radius: $radius-sm;
+ background: $success-bg;
+ color: $success;
&.fair {
- background: @warning-bg;
- color: @warning;
+ background: $warning-bg;
+ color: $warning;
}
&.poor {
- background: @danger-bg;
- color: @danger;
+ background: $danger-bg;
+ color: $danger;
}
}
}
@@ -405,23 +405,23 @@
display: flex;
align-items: baseline;
gap: 2px;
- font-family: @font-mono;
+ font-family: $font-mono;
.value {
- font-size: @font-size-lg;
- font-weight: @font-weight-bold;
- color: @text-primary;
+ font-size: $font-size-lg;
+ font-weight: $font-weight-bold;
+ color: $text-primary;
}
.unit {
- font-size: @font-size-sm;
- color: @text-tertiary;
- margin-right: @space-1;
+ font-size: $font-size-sm;
+ color: $text-tertiary;
+ margin-right: $space-1;
}
}
// Responsive
-@media (max-width: @breakpoint-md) {
+@media (max-width: $breakpoint-md) {
.uptime-counter-item {
min-width: 50px;
@@ -440,6 +440,6 @@
.uptime-legend {
flex-wrap: wrap;
- gap: @space-3;
+ gap: $space-3;
}
}
diff --git a/frontend/src/styles/components/_users.less b/frontend/src/styles/components/_users.scss
similarity index 56%
rename from frontend/src/styles/components/_users.less
rename to frontend/src/styles/components/_users.scss
index 60e3323b..5e7337c6 100644
--- a/frontend/src/styles/components/_users.less
+++ b/frontend/src/styles/components/_users.scss
@@ -11,21 +11,21 @@
.setup-info {
display: flex;
- gap: @space-4;
- padding: @space-4;
- background: fade(@accent-primary-raw, 10%);
- border-radius: @radius-md;
- margin-bottom: @space-6;
+ gap: $space-4;
+ padding: $space-4;
+ background: fade($accent-primary-raw, 10%);
+ border-radius: $radius-md;
+ margin-bottom: $space-6;
.setup-info-icon {
flex-shrink: 0;
- color: @accent-primary;
+ color: $accent-primary;
}
p {
margin: 0;
- font-size: @font-size-sm;
- color: @text-secondary;
+ font-size: $font-size-sm;
+ color: $text-secondary;
line-height: 1.5;
}
}
@@ -34,15 +34,15 @@
display: flex;
align-items: center;
justify-content: center;
- gap: @space-2;
- margin-top: @space-6;
- padding-top: @space-6;
- border-top: 1px solid @border-default;
- color: @text-tertiary;
- font-size: @font-size-sm;
+ gap: $space-2;
+ margin-top: $space-6;
+ padding-top: $space-6;
+ border-top: 1px solid $border-default;
+ color: $text-tertiary;
+ font-size: $font-size-sm;
svg {
- color: @success;
+ color: $success;
}
}
@@ -54,19 +54,19 @@
display: flex;
justify-content: space-between;
align-items: flex-start;
- margin-bottom: @space-6;
+ margin-bottom: $space-6;
.tab-header-content {
h3 {
- margin: 0 0 @space-1 0;
- font-size: @font-size-lg;
+ margin: 0 0 $space-1 0;
+ font-size: $font-size-lg;
font-weight: 600;
}
p {
margin: 0;
- color: @text-secondary;
- font-size: @font-size-sm;
+ color: $text-secondary;
+ font-size: $font-size-sm;
}
}
}
@@ -74,8 +74,8 @@
.users-table-container {
overflow-x: auto;
- border: 1px solid @border-default;
- border-radius: @radius-md;
+ border: 1px solid $border-default;
+ border-radius: $radius-md;
}
.users-table {
@@ -83,16 +83,16 @@
border-collapse: collapse;
th, td {
- padding: @space-4;
+ padding: $space-4;
text-align: left;
- border-bottom: 1px solid @border-default;
+ border-bottom: 1px solid $border-default;
}
th {
- background: @bg-hover;
+ background: $bg-hover;
font-weight: 500;
- font-size: @font-size-sm;
- color: @text-secondary;
+ font-size: $font-size-sm;
+ color: $text-secondary;
text-transform: uppercase;
letter-spacing: 0.05em;
}
@@ -102,34 +102,34 @@
}
tr:hover td {
- background: @bg-card;
+ background: $bg-card;
}
tr.inactive {
opacity: 0.6;
td {
- background: fade(@warning, 5%);
+ background: fade($warning, 5%);
}
}
.user-info {
display: flex;
align-items: center;
- gap: @space-4;
+ gap: $space-4;
}
.user-avatar {
width: 40px;
height: 40px;
border-radius: 50%;
- background: @accent-primary;
+ background: $accent-primary;
color: #fff;
display: flex;
align-items: center;
justify-content: center;
font-weight: 600;
- font-size: @font-size-md;
+ font-size: $font-size-md;
flex-shrink: 0;
}
@@ -142,21 +142,21 @@
font-weight: 500;
display: flex;
align-items: center;
- gap: @space-2;
+ gap: $space-2;
}
.email {
- font-size: @font-size-sm;
- color: @text-secondary;
+ font-size: $font-size-sm;
+ color: $text-secondary;
}
}
.you-badge {
- font-size: @font-size-xs;
+ font-size: $font-size-xs;
padding: 2px 6px;
- background: @accent-primary;
+ background: $accent-primary;
color: #fff;
- border-radius: @radius-sm;
+ border-radius: $radius-sm;
font-weight: 500;
}
@@ -164,30 +164,30 @@
display: inline-flex;
align-items: center;
padding: 4px 10px;
- border-radius: @radius-full;
- font-size: @font-size-xs;
+ border-radius: $radius-full;
+ font-size: $font-size-xs;
font-weight: 500;
&.active {
- background: fade(@success, 15%);
- color: @success;
+ background: fade($success, 15%);
+ color: $success;
}
&.inactive {
- background: fade(@warning, 15%);
- color: @warning;
+ background: fade($warning, 15%);
+ color: $warning;
}
}
.date-cell {
- font-size: @font-size-sm;
- color: @text-secondary;
+ font-size: $font-size-sm;
+ color: $text-secondary;
white-space: nowrap;
}
.actions-cell {
display: flex;
- gap: @space-1;
+ gap: $space-1;
}
}
@@ -197,7 +197,7 @@
.form-row {
display: grid;
grid-template-columns: 1fr 1fr;
- gap: @space-4;
+ gap: $space-4;
@media (max-width: 600px) {
grid-template-columns: 1fr;
@@ -207,7 +207,7 @@
.checkbox-label {
display: flex;
align-items: center;
- gap: @space-2;
+ gap: $space-2;
cursor: pointer;
input[type="checkbox"] {
@@ -223,42 +223,42 @@
.form-help {
display: block;
- margin-top: @space-1;
- font-size: @font-size-xs;
- color: @text-tertiary;
+ margin-top: $space-1;
+ font-size: $font-size-xs;
+ color: $text-tertiary;
}
.role-descriptions {
- margin-top: @space-6;
- padding: @space-4;
- background: @bg-hover;
- border-radius: @radius-md;
+ margin-top: $space-6;
+ padding: $space-4;
+ background: $bg-hover;
+ border-radius: $radius-md;
h4 {
- margin: 0 0 @space-4 0;
- font-size: @font-size-sm;
+ margin: 0 0 $space-4 0;
+ font-size: $font-size-sm;
font-weight: 600;
- color: @text-secondary;
+ color: $text-secondary;
}
.role-item {
display: flex;
- gap: @space-2;
- padding: @space-2 0;
+ gap: $space-2;
+ padding: $space-2 0;
&:not(:last-child) {
- border-bottom: 1px solid @border-default;
+ border-bottom: 1px solid $border-default;
}
.role-name {
font-weight: 500;
min-width: 80px;
- font-size: @font-size-sm;
+ font-size: $font-size-sm;
}
.role-desc {
- font-size: @font-size-sm;
- color: @text-secondary;
+ font-size: $font-size-sm;
+ color: $text-secondary;
}
}
}
@@ -268,40 +268,40 @@
// --------------------------------------------
.audit-log-tab {
.tab-header {
- margin-bottom: @space-6;
+ margin-bottom: $space-6;
h3 {
- margin: 0 0 @space-1 0;
- font-size: @font-size-lg;
+ margin: 0 0 $space-1 0;
+ font-size: $font-size-lg;
font-weight: 600;
}
p {
margin: 0;
- color: @text-secondary;
- font-size: @font-size-sm;
+ color: $text-secondary;
+ font-size: $font-size-sm;
}
}
}
.filters-bar {
display: flex;
- gap: @space-4;
+ gap: $space-4;
align-items: flex-end;
- margin-bottom: @space-6;
- padding: @space-4;
- background: @bg-hover;
- border-radius: @radius-md;
+ margin-bottom: $space-6;
+ padding: $space-4;
+ background: $bg-hover;
+ border-radius: $radius-md;
.filter-group {
display: flex;
flex-direction: column;
- gap: @space-1;
+ gap: $space-1;
label {
- font-size: @font-size-sm;
+ font-size: $font-size-sm;
font-weight: 500;
- color: @text-secondary;
+ color: $text-secondary;
}
select {
@@ -313,31 +313,31 @@
.audit-log-list {
display: flex;
flex-direction: column;
- gap: @space-2;
+ gap: $space-2;
}
.log-entry {
display: flex;
- gap: @space-4;
- padding: @space-4;
- background: @bg-card;
- border-radius: @radius-md;
+ gap: $space-4;
+ padding: $space-4;
+ background: $bg-card;
+ border-radius: $radius-md;
border-left: 3px solid transparent;
&.action-success {
- border-left-color: @success;
+ border-left-color: $success;
}
&.action-warning {
- border-left-color: @warning;
+ border-left-color: $warning;
}
&.action-danger {
- border-left-color: @danger;
+ border-left-color: $danger;
}
&.action-info {
- border-left-color: @accent-primary;
+ border-left-color: $accent-primary;
}
.log-icon {
@@ -347,9 +347,9 @@
display: flex;
align-items: center;
justify-content: center;
- background: @bg-hover;
- border-radius: @radius-sm;
- color: @text-secondary;
+ background: $bg-hover;
+ border-radius: $radius-sm;
+ color: $text-secondary;
}
.log-content {
@@ -360,9 +360,9 @@
.log-header {
display: flex;
flex-wrap: wrap;
- gap: @space-2;
+ gap: $space-2;
align-items: center;
- margin-bottom: @space-1;
+ margin-bottom: $space-1;
.log-action {
font-weight: 500;
@@ -370,36 +370,36 @@
}
.log-user {
- color: @text-secondary;
- font-size: @font-size-sm;
+ color: $text-secondary;
+ font-size: $font-size-sm;
}
.log-target {
- color: @text-tertiary;
- font-size: @font-size-sm;
+ color: $text-tertiary;
+ font-size: $font-size-sm;
}
}
.log-details {
display: flex;
flex-wrap: wrap;
- gap: @space-2;
- margin-bottom: @space-2;
+ gap: $space-2;
+ margin-bottom: $space-2;
.detail-item {
display: inline-flex;
- gap: @space-1;
- padding: 2px @space-2;
- background: @bg-hover;
- border-radius: @radius-sm;
- font-size: @font-size-xs;
+ gap: $space-1;
+ padding: 2px $space-2;
+ background: $bg-hover;
+ border-radius: $radius-sm;
+ font-size: $font-size-xs;
.detail-key {
- color: @text-tertiary;
+ color: $text-tertiary;
}
.detail-value {
- color: @text-secondary;
+ color: $text-secondary;
max-width: 200px;
overflow: hidden;
text-overflow: ellipsis;
@@ -410,12 +410,12 @@
.log-meta {
display: flex;
- gap: @space-4;
- font-size: @font-size-xs;
- color: @text-tertiary;
+ gap: $space-4;
+ font-size: $font-size-xs;
+ color: $text-tertiary;
.log-ip {
- font-family: @font-mono;
+ font-family: $font-mono;
}
}
}
@@ -424,14 +424,14 @@
display: flex;
align-items: center;
justify-content: center;
- gap: @space-4;
- margin-top: @space-6;
- padding-top: @space-6;
- border-top: 1px solid @border-default;
+ gap: $space-4;
+ margin-top: $space-6;
+ padding-top: $space-6;
+ border-top: 1px solid $border-default;
.pagination-info {
- font-size: @font-size-sm;
- color: @text-secondary;
+ font-size: $font-size-sm;
+ color: $text-secondary;
}
}
@@ -439,11 +439,11 @@
// Settings Nav Divider
// --------------------------------------------
.settings-nav-divider {
- padding: @space-2 @space-4;
- margin-top: @space-4;
- font-size: @font-size-xs;
+ padding: $space-2 $space-4;
+ margin-top: $space-4;
+ font-size: $font-size-xs;
font-weight: 600;
- color: @text-tertiary;
+ color: $text-tertiary;
text-transform: uppercase;
letter-spacing: 0.1em;
}
@@ -453,35 +453,35 @@
// --------------------------------------------
.loading-state,
.empty-state {
- padding: @space-10;
+ padding: $space-10;
text-align: center;
- color: @text-secondary;
+ color: $text-secondary;
}
// --------------------------------------------
// Button Variants
// --------------------------------------------
.btn.text-warning {
- color: @warning;
+ color: $warning;
&:hover {
- background: fade(@warning, 10%);
+ background: fade($warning, 10%);
}
}
.btn.text-success {
- color: @success;
+ color: $success;
&:hover {
- background: fade(@success, 10%);
+ background: fade($success, 10%);
}
}
.btn.text-danger {
- color: @danger;
+ color: $danger;
&:hover {
- background: fade(@danger, 10%);
+ background: fade($danger, 10%);
}
}
@@ -489,9 +489,9 @@
// Permission Editor
// --------------------------------------------
.permission-editor {
- margin-top: @space-4;
- border: 1px solid @border-default;
- border-radius: @radius-md;
+ margin-top: $space-4;
+ border: 1px solid $border-default;
+ border-radius: $radius-md;
max-height: 400px;
overflow-y: auto;
}
@@ -499,15 +499,15 @@
.permission-header-row {
display: grid;
grid-template-columns: 1fr 60px 60px;
- gap: @space-2;
- padding: @space-2 @space-4;
- background: @bg-hover;
- font-size: @font-size-xs;
+ gap: $space-2;
+ padding: $space-2 $space-4;
+ background: $bg-hover;
+ font-size: $font-size-xs;
font-weight: 600;
- color: @text-secondary;
+ color: $text-secondary;
text-transform: uppercase;
letter-spacing: 0.05em;
- border-bottom: 1px solid @border-default;
+ border-bottom: 1px solid $border-default;
position: sticky;
top: 0;
z-index: 1;
@@ -519,34 +519,34 @@
.permission-group {
&:not(:last-child) {
- border-bottom: 1px solid @border-default;
+ border-bottom: 1px solid $border-default;
}
}
.permission-group-label {
- padding: @space-2 @space-4;
- font-size: @font-size-xs;
+ padding: $space-2 $space-4;
+ font-size: $font-size-xs;
font-weight: 600;
- color: @text-tertiary;
+ color: $text-tertiary;
text-transform: uppercase;
letter-spacing: 0.1em;
- background: fade(@bg-hover-raw, 50%);
+ background: fade($bg-hover-raw, 50%);
}
.permission-row {
display: grid;
grid-template-columns: 1fr 60px 60px;
- gap: @space-2;
+ gap: $space-2;
align-items: center;
- padding: @space-2 @space-4;
+ padding: $space-2 $space-4;
&:hover {
- background: @bg-hover;
+ background: $bg-hover;
}
}
.permission-feature-name {
- font-size: @font-size-sm;
+ font-size: $font-size-sm;
}
.permission-checkbox {
@@ -561,10 +561,10 @@
}
.customize-permissions-section {
- margin-top: @space-4;
+ margin-top: $space-4;
> .btn {
- margin-bottom: @space-2;
+ margin-bottom: $space-2;
}
}
@@ -572,27 +572,27 @@
// Invitations Section
// --------------------------------------------
.invitations-section {
- margin-top: @space-8;
- padding-top: @space-8;
- border-top: 1px solid @border-default;
+ margin-top: $space-8;
+ padding-top: $space-8;
+ border-top: 1px solid $border-default;
.tab-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
- margin-bottom: @space-4;
+ margin-bottom: $space-4;
.tab-header-content {
h4 {
- margin: 0 0 @space-1 0;
- font-size: @font-size-md;
+ margin: 0 0 $space-1 0;
+ font-size: $font-size-md;
font-weight: 600;
}
p {
margin: 0;
- color: @text-secondary;
- font-size: @font-size-sm;
+ color: $text-secondary;
+ font-size: $font-size-sm;
}
}
}
@@ -601,19 +601,19 @@
.invite-link-display {
display: flex;
align-items: center;
- gap: @space-2;
- padding: @space-3;
- background: @bg-hover;
- border: 1px solid @border-default;
- border-radius: @radius-md;
- margin-top: @space-2;
+ gap: $space-2;
+ padding: $space-3;
+ background: $bg-hover;
+ border: 1px solid $border-default;
+ border-radius: $radius-md;
+ margin-top: $space-2;
code {
flex: 1;
- font-family: @font-mono;
- font-size: @font-size-sm;
+ font-family: $font-mono;
+ font-size: $font-size-sm;
word-break: break-all;
- color: @text-primary;
+ color: $text-primary;
}
}
@@ -621,29 +621,29 @@
display: inline-flex;
align-items: center;
padding: 3px 8px;
- border-radius: @radius-full;
- font-size: @font-size-xs;
+ border-radius: $radius-full;
+ font-size: $font-size-xs;
font-weight: 500;
text-transform: capitalize;
&.pending {
- background: fade(@accent-primary-raw, 15%);
- color: @accent-primary;
+ background: fade($accent-primary-raw, 15%);
+ color: $accent-primary;
}
&.accepted {
- background: fade(@success, 15%);
- color: @success;
+ background: fade($success, 15%);
+ color: $success;
}
&.expired {
- background: fade(@text-tertiary-raw, 15%);
- color: @text-tertiary;
+ background: fade($text-tertiary-raw, 15%);
+ color: $text-tertiary;
}
&.revoked {
- background: fade(@danger, 15%);
- color: @danger;
+ background: fade($danger, 15%);
+ color: $danger;
}
}
@@ -652,18 +652,18 @@
// --------------------------------------------
.activity-tab {
.tab-header {
- margin-bottom: @space-6;
+ margin-bottom: $space-6;
h3 {
- margin: 0 0 @space-1 0;
- font-size: @font-size-lg;
+ margin: 0 0 $space-1 0;
+ font-size: $font-size-lg;
font-weight: 600;
}
p {
margin: 0;
- color: @text-secondary;
- font-size: @font-size-sm;
+ color: $text-secondary;
+ font-size: $font-size-sm;
}
}
}
@@ -671,8 +671,8 @@
.activity-summary {
display: grid;
grid-template-columns: repeat(3, 1fr);
- gap: @space-4;
- margin-bottom: @space-6;
+ gap: $space-4;
+ margin-bottom: $space-6;
@media (max-width: 600px) {
grid-template-columns: 1fr;
@@ -683,35 +683,35 @@
display: flex;
flex-direction: column;
align-items: center;
- padding: @space-6;
- background: @bg-card;
- border: 1px solid @border-default;
- border-radius: @radius-md;
+ padding: $space-6;
+ background: $bg-card;
+ border: 1px solid $border-default;
+ border-radius: $radius-md;
.stat-number {
font-size: 2rem;
font-weight: 700;
- color: @accent-primary;
+ color: $accent-primary;
line-height: 1;
}
.stat-label {
- margin-top: @space-2;
- font-size: @font-size-sm;
- color: @text-secondary;
+ margin-top: $space-2;
+ font-size: $font-size-sm;
+ color: $text-secondary;
}
}
.most-active-users {
- margin-bottom: @space-6;
- padding: @space-4;
- background: @bg-card;
- border: 1px solid @border-default;
- border-radius: @radius-md;
+ margin-bottom: $space-6;
+ padding: $space-4;
+ background: $bg-card;
+ border: 1px solid $border-default;
+ border-radius: $radius-md;
h4 {
- margin: 0 0 @space-4 0;
- font-size: @font-size-md;
+ margin: 0 0 $space-4 0;
+ font-size: $font-size-md;
font-weight: 600;
}
}
@@ -719,11 +719,11 @@
.active-user-item {
display: flex;
align-items: center;
- gap: @space-3;
- padding: @space-2 0;
+ gap: $space-3;
+ padding: $space-2 0;
&:not(:last-child) {
- border-bottom: 1px solid @border-default;
+ border-bottom: 1px solid $border-default;
}
}
@@ -731,43 +731,43 @@
width: 24px;
text-align: center;
font-weight: 600;
- font-size: @font-size-sm;
- color: @text-tertiary;
+ font-size: $font-size-sm;
+ color: $text-tertiary;
}
.active-user-name {
min-width: 100px;
- font-size: @font-size-sm;
+ font-size: $font-size-sm;
font-weight: 500;
}
.active-user-bar-wrapper {
flex: 1;
height: 8px;
- background: @bg-hover;
- border-radius: @radius-full;
+ background: $bg-hover;
+ border-radius: $radius-full;
overflow: hidden;
}
.active-user-bar {
height: 100%;
- background: @accent-primary;
- border-radius: @radius-full;
+ background: $accent-primary;
+ border-radius: $radius-full;
transition: width 0.3s ease;
}
.active-user-count {
min-width: 40px;
text-align: right;
- font-size: @font-size-sm;
+ font-size: $font-size-sm;
font-weight: 600;
- color: @text-secondary;
+ color: $text-secondary;
}
.activity-feed-section {
h4 {
- margin: 0 0 @space-4 0;
- font-size: @font-size-md;
+ margin: 0 0 $space-4 0;
+ font-size: $font-size-md;
font-weight: 600;
}
}
diff --git a/frontend/src/styles/layout/_grid.less b/frontend/src/styles/layout/_grid.scss
similarity index 75%
rename from frontend/src/styles/layout/_grid.less
rename to frontend/src/styles/layout/_grid.scss
index 71cba479..7f2e0eff 100644
--- a/frontend/src/styles/layout/_grid.less
+++ b/frontend/src/styles/layout/_grid.scss
@@ -6,14 +6,14 @@
.stats-strip {
display: grid;
grid-template-columns: repeat(4, 1fr);
- gap: @space-6;
- margin-bottom: @space-8;
+ gap: $space-6;
+ margin-bottom: $space-8;
- @media (max-width: @breakpoint-xl) {
+ @media (max-width: $breakpoint-xl) {
grid-template-columns: repeat(2, 1fr);
}
- @media (max-width: @breakpoint-sm) {
+ @media (max-width: $breakpoint-sm) {
grid-template-columns: 1fr;
}
}
@@ -22,16 +22,16 @@
.dashboard-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
- gap: @space-6;
+ gap: $space-6;
}
// Overview grid (2-column)
.overview-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
- gap: @space-6;
+ gap: $space-6;
- @media (max-width: @breakpoint-md) {
+ @media (max-width: $breakpoint-md) {
grid-template-columns: 1fr;
}
}
diff --git a/frontend/src/styles/layout/_main-content.less b/frontend/src/styles/layout/_main-content.scss
similarity index 65%
rename from frontend/src/styles/layout/_main-content.less
rename to frontend/src/styles/layout/_main-content.scss
index 91c0498d..4f91d2a5 100644
--- a/frontend/src/styles/layout/_main-content.less
+++ b/frontend/src/styles/layout/_main-content.scss
@@ -8,18 +8,18 @@
}
.main-content {
- margin-left: @sidebar-width;
+ margin-left: $sidebar-width;
flex: 1;
- padding: @space-10;
+ padding: $space-10;
overflow-y: auto;
background-image:
linear-gradient(var(--grid-color) 1px, transparent 1px),
linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
background-size: 40px 40px;
- @media (max-width: @breakpoint-md) {
+ @media (max-width: $breakpoint-md) {
margin-left: 0;
- padding: @space-5;
+ padding: $space-5;
}
// Remove padding for fullscreen pages (workflow builder)
@@ -31,25 +31,25 @@
// Top bar (page header)
.top-bar {
- .flex-between();
- margin-bottom: @space-10;
+ @include flex-between();
+ margin-bottom: $space-10;
h1 {
- font-size: @font-size-2xl;
- font-weight: @font-weight-semibold;
+ font-size: $font-size-2xl;
+ font-weight: $font-weight-semibold;
letter-spacing: -0.5px;
}
- @media (max-width: @breakpoint-md) {
+ @media (max-width: $breakpoint-md) {
flex-direction: column;
align-items: flex-start;
- gap: @space-4;
+ gap: $space-4;
}
}
.top-bar-actions {
display: flex;
- gap: @space-3;
+ gap: $space-3;
}
// Shared Page Wrapper
@@ -57,7 +57,7 @@
width: 100%;
max-width: 1400px;
margin: 0 auto;
- padding-bottom: @space-10;
+ padding-bottom: $space-10;
}
// Page Header (shared base)
@@ -65,23 +65,23 @@
display: flex;
justify-content: space-between;
align-items: flex-start;
- margin-bottom: @space-6;
+ margin-bottom: $space-6;
flex-wrap: wrap;
- gap: @space-4;
+ gap: $space-4;
.page-header-content,
.header-info {
h1 {
- font-size: @font-size-2xl;
- font-weight: @font-weight-semibold;
- margin: 0 0 @space-1 0;
- color: @text-primary;
+ font-size: $font-size-2xl;
+ font-weight: $font-weight-semibold;
+ margin: 0 0 $space-1 0;
+ color: $text-primary;
}
.page-description,
p {
- color: @text-secondary;
- font-size: @font-size-sm;
+ color: $text-secondary;
+ font-size: $font-size-sm;
margin: 0;
}
}
@@ -89,12 +89,12 @@
.page-header-actions,
.header-actions {
display: flex;
- gap: @space-2;
+ gap: $space-2;
align-items: center;
flex-wrap: wrap;
}
- @media (max-width: @breakpoint-md) {
+ @media (max-width: $breakpoint-md) {
flex-direction: column;
align-items: stretch;
@@ -107,13 +107,13 @@
// Page placeholder
.page {
- font-size: @font-size-2xl;
- color: @text-secondary;
+ font-size: $font-size-2xl;
+ color: $text-secondary;
}
// Loading state
.loading {
- .flex-center();
+ @include flex-center();
min-height: 100vh;
- color: @text-secondary;
+ color: $text-secondary;
}
diff --git a/frontend/src/styles/layout/_sidebar.less b/frontend/src/styles/layout/_sidebar.scss
similarity index 85%
rename from frontend/src/styles/layout/_sidebar.less
rename to frontend/src/styles/layout/_sidebar.scss
index 991d6e8d..980bd5bf 100644
--- a/frontend/src/styles/layout/_sidebar.less
+++ b/frontend/src/styles/layout/_sidebar.scss
@@ -3,24 +3,24 @@
// ============================================
.sidebar {
- width: @sidebar-width;
- background-color: @bg-body; // Seamless look with main content
- border-right: 1px solid @border-default;
+ width: $sidebar-width;
+ background-color: $bg-body; // Seamless look with main content
+ border-right: 1px solid $border-default;
display: flex;
flex-direction: column;
position: fixed;
height: 100vh;
- z-index: @z-fixed;
+ z-index: $z-fixed;
padding: 0 1rem;
- @media (max-width: @breakpoint-md) {
+ @media (max-width: $breakpoint-md) {
display: none;
}
}
// Brand Section - Clean & Minimal
.brand-section {
- height: 70px;
+ height: $sidebar-header-height;
display: flex;
align-items: center;
gap: 10px;
@@ -30,8 +30,8 @@
}
.brand-logo {
- width: 42px;
- height: 42px;
+ width: $sidebar-logo-size;
+ height: $sidebar-logo-size;
display: grid;
place-items: center;
flex-shrink: 0;
@@ -58,10 +58,10 @@
.brand-text {
font-size: 1.15rem;
- font-weight: @font-weight-bold;
- color: @text-primary;
+ font-weight: $font-weight-bold;
+ color: $text-primary;
letter-spacing: -0.02em;
- background: linear-gradient(135deg, @text-primary 0%, #a5b4fc 100%);
+ background: linear-gradient(135deg, $text-primary 0%, #a5b4fc 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
@@ -73,10 +73,10 @@
display: flex;
align-items: center;
justify-content: center;
- width: 28px;
- height: 28px;
+ width: $sidebar-icon-size;
+ height: $sidebar-icon-size;
border-radius: 50%;
- color: @text-tertiary;
+ color: $text-tertiary;
transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
position: relative;
overflow: visible;
@@ -101,7 +101,7 @@
position: absolute;
width: 4px;
height: 4px;
- background: #f59e0b;
+ background: $color-star;
border-radius: 50%;
opacity: 0;
top: 50%;
@@ -112,7 +112,7 @@
.star-ring {
inset: 0;
border-radius: 50%;
- border: 2px solid #f59e0b;
+ border: 2px solid $color-star;
opacity: 0;
transform: scale(0.8);
}
@@ -121,7 +121,7 @@
top: 50%;
left: calc(100% + 10px);
transform: translateY(-50%) translateX(-4px);
- background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
+ background: linear-gradient(135deg, $color-star 0%, #d97706 100%);
color: white;
font-size: 0.65rem;
font-weight: 600;
@@ -144,7 +144,7 @@
}
&:hover {
- color: #f59e0b;
+ color: $color-star;
background: rgba(245, 158, 11, 0.15);
transform: scale(1.1);
box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
@@ -159,7 +159,7 @@
animation: starPop 1.5s cubic-bezier(0.34, 1.56, 0.64, 1);
svg {
- color: #f59e0b;
+ color: $color-star;
animation: starSpin 1.5s cubic-bezier(0.34, 1.56, 0.64, 1), starGlow 1.5s ease-in-out;
}
@@ -371,13 +371,13 @@
.brand-custom-logo {
width: 32px;
height: 32px;
- border-radius: @radius-md;
+ border-radius: $radius-md;
overflow: hidden;
display: grid;
place-items: center;
flex-shrink: 0;
- color: @text-tertiary;
- background: @bg-secondary;
+ color: $text-tertiary;
+ background: $bg-secondary;
img {
width: 100%;
@@ -393,7 +393,7 @@
align-items: center;
justify-content: center;
overflow: hidden;
- color: @text-tertiary;
+ color: $text-tertiary;
img {
max-width: 100%;
@@ -404,9 +404,9 @@
.brand-custom-text {
font-size: 1.15rem;
- font-weight: @font-weight-bold;
+ font-weight: $font-weight-bold;
letter-spacing: -0.02em;
- background: linear-gradient(135deg, @text-primary 0%, #a5b4fc 100%);
+ background: linear-gradient(135deg, $text-primary 0%, #a5b4fc 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
@@ -433,8 +433,8 @@
// Navigation Category Labels
.nav-category {
font-size: 0.7rem;
- font-weight: @font-weight-semibold;
- color: @text-secondary;
+ font-weight: $font-weight-semibold;
+ color: $text-secondary;
text-transform: uppercase;
letter-spacing: 0.08em;
margin: 1.5rem 0 0.5rem 0.75rem;
@@ -458,11 +458,11 @@
align-items: center;
gap: 16px;
padding: 0.5rem 0.75rem;
- border-radius: @radius-lg;
- color: @text-tertiary;
+ border-radius: $radius-lg;
+ color: $text-tertiary;
text-decoration: none;
font-size: 0.85rem;
- font-weight: @font-weight-medium;
+ font-weight: $font-weight-medium;
transition: all 0.2s ease;
margin-bottom: 2px;
position: relative;
@@ -472,14 +472,14 @@
// Pro Hover State
&:hover {
- color: @text-primary;
+ color: $text-primary;
background-color: rgba(255, 255, 255, 0.03);
}
// Pro Active State
&.active {
- background-color: @accent-glow;
- color: @accent-primary;
+ background-color: $accent-glow;
+ color: $accent-primary;
// Active Indicator Dot
&::after {
@@ -489,8 +489,8 @@
width: 4px;
height: 4px;
border-radius: 50%;
- background-color: @accent-primary;
- box-shadow: 0 0 6px @accent-primary;
+ background-color: $accent-primary;
+ box-shadow: 0 0 6px $accent-primary;
}
}
}
@@ -518,7 +518,7 @@
.sidebar-footer {
padding: 1rem 0;
margin-top: auto;
- border-top: 1px solid @border-default;
+ border-top: 1px solid $border-default;
flex-shrink: 0;
position: relative;
}
@@ -529,12 +529,12 @@
bottom: calc(100% + 4px);
left: 0;
right: 0;
- background: @bg-elevated;
- border: 1px solid @border-subtle;
- border-radius: @radius-lg;
+ background: $bg-elevated;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-lg;
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), 0 2px 8px rgba(0, 0, 0, 0.15);
- padding: @space-1;
- z-index: @z-tooltip;
+ padding: $space-1;
+ z-index: $z-tooltip;
animation: contextMenuIn 0.15s ease-out;
}
@@ -555,8 +555,8 @@
.context-menu-label {
font-size: 0.65rem;
- font-weight: @font-weight-semibold;
- color: @text-secondary;
+ font-weight: $font-weight-semibold;
+ color: $text-secondary;
text-transform: uppercase;
letter-spacing: 0.06em;
margin-bottom: 6px;
@@ -566,8 +566,8 @@
.theme-switcher {
display: flex;
gap: 2px;
- background: @bg-secondary;
- border-radius: @radius-md;
+ background: $bg-secondary;
+ border-radius: $radius-md;
padding: 2px;
}
@@ -579,26 +579,26 @@
padding: 6px 0;
border: none;
background: transparent;
- color: @text-tertiary;
- border-radius: @radius-sm;
+ color: $text-tertiary;
+ border-radius: $radius-sm;
cursor: pointer;
transition: all 0.15s ease;
&:hover {
- color: @text-primary;
+ color: $text-primary;
}
&.active {
- background: @accent-glow;
- color: @accent-primary;
+ background: $accent-glow;
+ color: $accent-primary;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}
}
.context-menu-divider {
height: 1px;
- background: @border-subtle;
- margin: @space-1 0;
+ background: $border-subtle;
+ margin: $space-1 0;
}
.context-menu-item {
@@ -609,25 +609,25 @@
padding: 8px 10px;
border: none;
background: transparent;
- color: @text-secondary;
+ color: $text-secondary;
font-size: 0.82rem;
- font-weight: @font-weight-medium;
- border-radius: @radius-md;
+ font-weight: $font-weight-medium;
+ border-radius: $radius-md;
cursor: pointer;
transition: all 0.15s ease;
text-align: left;
&:hover {
background: rgba(255, 255, 255, 0.04);
- color: @text-primary;
+ color: $text-primary;
}
&.danger {
- color: @danger;
+ color: $danger;
&:hover {
background: rgba(239, 68, 68, 0.1);
- color: @danger;
+ color: $danger;
}
}
}
@@ -645,29 +645,29 @@
gap: 10px;
padding: 0.5rem;
cursor: pointer;
- border-radius: @radius-lg;
+ border-radius: $radius-lg;
transition: all 0.2s ease;
&:hover {
- background: @bg-secondary;
+ background: $bg-secondary;
}
}
.user-avatar {
width: 28px;
height: 28px;
- background: @text-tertiary;
+ background: $text-tertiary;
border-radius: 50%;
display: grid;
place-items: center;
font-size: 0.75rem;
- font-weight: @font-weight-semibold;
+ font-weight: $font-weight-semibold;
color: white;
}
.user-menu-arrow {
margin-left: auto;
- color: @text-tertiary;
+ color: $text-tertiary;
opacity: 0.5;
transition: transform 0.2s ease, opacity 0.2s ease;
@@ -688,13 +688,13 @@
.user-handle {
font-size: 0.8rem;
- font-weight: @font-weight-medium;
- color: @text-primary;
+ font-weight: $font-weight-medium;
+ color: $text-primary;
}
.user-status {
font-size: 0.7rem;
- color: @success;
+ color: $success;
display: flex;
align-items: center;
gap: 4px;
diff --git a/frontend/src/styles/main.less b/frontend/src/styles/main.scss
similarity index 94%
rename from frontend/src/styles/main.less
rename to frontend/src/styles/main.scss
index a2332239..36f118cf 100644
--- a/frontend/src/styles/main.less
+++ b/frontend/src/styles/main.scss
@@ -1,95 +1,95 @@
-// ============================================
-// SERVERKIT - MAIN STYLESHEET
-// ============================================
-// This file imports all LESS partials in the correct order.
-// Import this file in your main React entry point.
-// ============================================
-
-// --------------------------------------------
-// 1. DESIGN TOKENS
-// --------------------------------------------
-@import '_theme-variables'; // CSS custom properties for runtime theming (must be first)
-@import '_variables';
-@import '_mixins';
-
-// --------------------------------------------
-// 2. BASE STYLES
-// --------------------------------------------
-@import 'base/_reset';
-@import 'base/_typography';
-@import 'base/_utilities';
-
-// --------------------------------------------
-// 3. LAYOUT
-// --------------------------------------------
-@import 'layout/_sidebar';
-@import 'layout/_main-content';
-@import 'layout/_grid';
-
-// --------------------------------------------
-// 4. COMPONENTS
-// --------------------------------------------
-@import 'components/_buttons';
-@import 'components/_cards';
-@import 'components/_modals';
-@import 'components/_forms';
-@import 'components/_badges';
-@import 'components/_tabs';
-@import 'components/_lists';
-@import 'components/_services';
-@import 'components/_logs';
-@import 'components/_credentials';
-@import 'components/_toasts';
-@import 'components/_spinner';
-@import 'components/_uptime';
-@import 'components/_metrics-graph';
-@import 'components/_env-vars';
-@import 'components/_private-url';
-@import 'components/_two-factor';
-@import 'components/_notifications';
-@import 'components/_query-runner';
-@import 'components/_deploy';
-@import 'components/_build';
-@import 'components/_users';
-@import 'components/_linked-apps';
-@import 'components/_api-settings';
-
-// --------------------------------------------
-// 5. PAGE-SPECIFIC STYLES
-// --------------------------------------------
-@import 'pages/_auth';
-@import 'pages/_dashboard';
-@import 'pages/_applications';
-@import 'pages/_docker';
-@import 'pages/_databases';
-@import 'pages/_domains';
-@import 'pages/_monitoring';
-@import 'pages/_backups';
-@import 'pages/_terminal';
-@import 'pages/_settings';
-@import 'pages/_file-manager';
-@import 'pages/_ftp-server';
-@import 'pages/_firewall';
-@import 'pages/_cron';
-@import 'pages/_security';
-@import 'pages/_templates';
-@import 'pages/_workflow';
-@import 'pages/_git';
-@import 'pages/_servers';
-@import 'pages/_downloads';
-@import 'pages/_wordpress';
-@import 'pages/_wordpress-pipeline';
-@import 'pages/_ssl';
-@import 'pages/_email';
-@import 'pages/_setup-wizard';
-@import 'pages/_migration-wizard';
-@import 'pages/_services';
-@import 'pages/_service-detail';
-@import 'pages/_fleet-monitor';
-@import 'pages/_agent-plugins';
-@import 'pages/_server-templates';
-@import 'pages/_workspaces';
-@import 'pages/_dns-zones';
-@import 'pages/_status-pages';
-@import 'pages/_cloud-provision';
-@import 'pages/_marketplace';
+// ============================================
+// SERVERKIT - MAIN STYLESHEET
+// ============================================
+// This file imports all SCSS partials in the correct order.
+// Import this file in your main React entry point.
+// ============================================
+
+// --------------------------------------------
+// 1. DESIGN TOKENS
+// --------------------------------------------
+@import '_theme-variables'; // CSS custom properties for runtime theming (must be first)
+@import '_variables';
+@import '_mixins';
+
+// --------------------------------------------
+// 2. BASE STYLES
+// --------------------------------------------
+@import 'base/_reset';
+@import 'base/_typography';
+@import 'base/_utilities';
+
+// --------------------------------------------
+// 3. LAYOUT
+// --------------------------------------------
+@import 'layout/_sidebar';
+@import 'layout/_main-content';
+@import 'layout/_grid';
+
+// --------------------------------------------
+// 4. COMPONENTS
+// --------------------------------------------
+@import 'components/_buttons';
+@import 'components/_cards';
+@import 'components/_modals';
+@import 'components/_forms';
+@import 'components/_badges';
+@import 'components/_tabs';
+@import 'components/_lists';
+@import 'components/_services';
+@import 'components/_logs';
+@import 'components/_credentials';
+@import 'components/_toasts';
+@import 'components/_spinner';
+@import 'components/_uptime';
+@import 'components/_metrics-graph';
+@import 'components/_env-vars';
+@import 'components/_private-url';
+@import 'components/_two-factor';
+@import 'components/_notifications';
+@import 'components/_query-runner';
+@import 'components/_deploy';
+@import 'components/_build';
+@import 'components/_users';
+@import 'components/_linked-apps';
+@import 'components/_api-settings';
+
+// --------------------------------------------
+// 5. PAGE-SPECIFIC STYLES
+// --------------------------------------------
+@import 'pages/_auth';
+@import 'pages/_dashboard';
+@import 'pages/_applications';
+@import 'pages/_docker';
+@import 'pages/_databases';
+@import 'pages/_domains';
+@import 'pages/_monitoring';
+@import 'pages/_backups';
+@import 'pages/_terminal';
+@import 'pages/_settings';
+@import 'pages/_file-manager';
+@import 'pages/_ftp-server';
+@import 'pages/_firewall';
+@import 'pages/_cron';
+@import 'pages/_security';
+@import 'pages/_templates';
+@import 'pages/_workflow';
+@import 'pages/_git';
+@import 'pages/_servers';
+@import 'pages/_downloads';
+@import 'pages/_wordpress';
+@import 'pages/_wordpress-pipeline';
+@import 'pages/_ssl';
+@import 'pages/_email';
+@import 'pages/_setup-wizard';
+@import 'pages/_migration-wizard';
+@import 'pages/_services';
+@import 'pages/_service-detail';
+@import 'pages/_fleet-monitor';
+@import 'pages/_agent-plugins';
+@import 'pages/_server-templates';
+@import 'pages/_workspaces';
+@import 'pages/_dns-zones';
+@import 'pages/_status-pages';
+@import 'pages/_cloud-provision';
+@import 'pages/_marketplace';
diff --git a/frontend/src/styles/pages/_agent-plugins.less b/frontend/src/styles/pages/_agent-plugins.scss
similarity index 68%
rename from frontend/src/styles/pages/_agent-plugins.less
rename to frontend/src/styles/pages/_agent-plugins.scss
index 4e8227a0..5337fb6b 100644
--- a/frontend/src/styles/pages/_agent-plugins.less
+++ b/frontend/src/styles/pages/_agent-plugins.scss
@@ -4,15 +4,15 @@
.plugins-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
- gap: @spacing-lg;
- margin-top: @spacing-lg;
+ gap: $spacing-lg;
+ margin-top: $spacing-lg;
}
.plugin-card {
- padding: @spacing-lg;
+ padding: $spacing-lg;
display: flex;
flex-direction: column;
- gap: @spacing-sm;
+ gap: $spacing-sm;
&__header {
display: flex;
@@ -23,7 +23,7 @@
&__info {
display: flex;
align-items: baseline;
- gap: @spacing-sm;
+ gap: $spacing-sm;
h3 {
margin: 0;
@@ -32,13 +32,13 @@
}
&__version {
- color: @text-muted;
+ color: $text-muted;
font-size: 0.85rem;
- font-family: @font-mono;
+ font-family: $font-mono;
}
&__desc {
- color: @text-secondary;
+ color: $text-secondary;
font-size: 0.9rem;
margin: 0;
line-height: 1.5;
@@ -46,31 +46,31 @@
&__meta {
display: flex;
- gap: @spacing-md;
+ gap: $spacing-md;
font-size: 0.85rem;
- color: @text-muted;
+ color: $text-muted;
}
&__capabilities,
&__permissions {
display: flex;
flex-wrap: wrap;
- gap: @spacing-xs;
+ gap: $spacing-xs;
}
&__actions {
display: flex;
- gap: @spacing-sm;
- margin-top: @spacing-sm;
- padding-top: @spacing-sm;
- border-top: 1px solid @border-color;
+ gap: $spacing-sm;
+ margin-top: $spacing-sm;
+ padding-top: $spacing-sm;
+ border-top: 1px solid $border-color;
}
}
.server-select-list {
display: flex;
flex-direction: column;
- gap: @spacing-xs;
+ gap: $spacing-xs;
max-height: 300px;
overflow-y: auto;
}
@@ -78,27 +78,27 @@
.server-select-item {
display: flex;
align-items: center;
- gap: @spacing-sm;
- padding: @spacing-sm @spacing-md;
- border-radius: @radius-md;
+ gap: $spacing-sm;
+ padding: $spacing-sm $spacing-md;
+ border-radius: $radius-md;
cursor: pointer;
transition: background-color 0.15s;
&:hover {
- background: @hover-bg;
+ background: $hover-bg;
}
}
.checkbox-group {
display: flex;
flex-wrap: wrap;
- gap: @spacing-sm;
+ gap: $spacing-sm;
}
.checkbox-label {
display: flex;
align-items: center;
- gap: @spacing-xs;
+ gap: $spacing-xs;
font-size: 0.9rem;
cursor: pointer;
}
@@ -106,6 +106,6 @@
.form-row {
display: grid;
grid-template-columns: 1fr 1fr;
- gap: @spacing-md;
+ gap: $spacing-md;
}
}
diff --git a/frontend/src/styles/pages/_applications.less b/frontend/src/styles/pages/_applications.scss
similarity index 54%
rename from frontend/src/styles/pages/_applications.less
rename to frontend/src/styles/pages/_applications.scss
index ca0031db..e268f157 100644
--- a/frontend/src/styles/pages/_applications.less
+++ b/frontend/src/styles/pages/_applications.scss
@@ -6,7 +6,7 @@
.applications-page {
display: flex;
flex-direction: column;
- gap: @space-4;
+ gap: $space-4;
}
// ============================================
@@ -17,14 +17,14 @@
display: flex;
justify-content: space-between;
align-items: center;
- gap: @space-4;
+ gap: $space-4;
flex-wrap: wrap;
}
.apps-toolbar-left {
display: flex;
align-items: center;
- gap: @space-4;
+ gap: $space-4;
flex: 1;
min-width: 0;
}
@@ -32,7 +32,7 @@
.apps-toolbar-right {
display: flex;
align-items: center;
- gap: @space-3;
+ gap: $space-3;
}
// Search wrapper
@@ -44,60 +44,60 @@
.apps-search-icon {
position: absolute;
- left: @space-3;
+ left: $space-3;
top: 50%;
transform: translateY(-50%);
- color: @text-tertiary;
+ color: $text-tertiary;
pointer-events: none;
}
.apps-search-input {
width: 100%;
- padding: @space-2 @space-3;
- padding-left: @space-8 + 4;
- padding-right: @space-8;
- background: @bg-card;
- border: 1px solid @border-default;
- border-radius: @radius-md;
- color: @text-primary;
- font-size: @font-size-sm;
- .transition(border-color);
+ padding: $space-2 $space-3;
+ padding-left: $space-8 + 4;
+ padding-right: $space-8;
+ background: $bg-card;
+ border: 1px solid $border-default;
+ border-radius: $radius-md;
+ color: $text-primary;
+ font-size: $font-size-sm;
+ @include transition(border-color);
&::placeholder {
- color: @text-tertiary;
+ color: $text-tertiary;
}
&:focus {
outline: none;
- border-color: @accent-primary;
+ border-color: $accent-primary;
}
}
.apps-search-clear {
position: absolute;
- right: @space-2;
+ right: $space-2;
top: 50%;
transform: translateY(-50%);
background: none;
border: none;
- padding: @space-1;
+ padding: $space-1;
cursor: pointer;
- color: @text-tertiary;
+ color: $text-tertiary;
display: flex;
align-items: center;
justify-content: center;
- border-radius: @radius-sm;
- .transition(color);
+ border-radius: $radius-sm;
+ @include transition(color);
&:hover {
- color: @text-primary;
+ color: $text-primary;
}
}
// Results count
.apps-count {
- font-size: @font-size-sm;
- color: @text-tertiary;
+ font-size: $font-size-sm;
+ color: $text-tertiary;
white-space: nowrap;
}
@@ -108,62 +108,62 @@
.apps-sort-select {
appearance: none;
- padding: @space-2 @space-8 @space-2 @space-3;
- background: @bg-card;
- border: 1px solid @border-default;
- border-radius: @radius-md;
- color: @text-primary;
- font-size: @font-size-sm;
+ padding: $space-2 $space-8 $space-2 $space-3;
+ background: $bg-card;
+ border: 1px solid $border-default;
+ border-radius: $radius-md;
+ color: $text-primary;
+ font-size: $font-size-sm;
cursor: pointer;
- .transition(border-color);
+ @include transition(border-color);
&:focus {
outline: none;
- border-color: @accent-primary;
+ border-color: $accent-primary;
}
}
.apps-sort-icon {
position: absolute;
- right: @space-2;
+ right: $space-2;
top: 50%;
transform: translateY(-50%);
- color: @text-tertiary;
+ color: $text-tertiary;
pointer-events: none;
}
// View toggle
.apps-view-toggle {
display: flex;
- background: @bg-card;
- border: 1px solid @border-default;
- border-radius: @radius-md;
+ background: $bg-card;
+ border: 1px solid $border-default;
+ border-radius: $radius-md;
overflow: hidden;
}
.apps-view-btn {
- padding: @space-2;
+ padding: $space-2;
background: transparent;
border: none;
cursor: pointer;
- color: @text-tertiary;
+ color: $text-tertiary;
display: flex;
align-items: center;
justify-content: center;
- .transition(all);
+ @include transition(all);
&:hover {
- color: @text-primary;
- background: @bg-hover;
+ color: $text-primary;
+ background: $bg-hover;
}
&.active {
- color: @accent-primary;
- background: @accent-glow;
+ color: $accent-primary;
+ background: $accent-glow;
}
&:first-child {
- border-right: 1px solid @border-default;
+ border-right: 1px solid $border-default;
}
}
@@ -175,42 +175,42 @@
display: flex;
justify-content: space-between;
align-items: center;
- padding: @space-3 @space-4;
- background: @accent-glow;
- border: 1px solid fade(@accent-primary-raw, 30%);
- border-radius: @radius-lg;
- gap: @space-4;
+ padding: $space-3 $space-4;
+ background: $accent-glow;
+ border: 1px solid fade($accent-primary-raw, 30%);
+ border-radius: $radius-lg;
+ gap: $space-4;
flex-wrap: wrap;
}
.apps-bulk-info {
display: flex;
align-items: center;
- gap: @space-2;
- color: @accent-primary;
- font-size: @font-size-sm;
- font-weight: @font-weight-medium;
+ gap: $space-2;
+ color: $accent-primary;
+ font-size: $font-size-sm;
+ font-weight: $font-weight-medium;
}
.apps-bulk-clear {
background: none;
border: none;
- color: @text-secondary;
- font-size: @font-size-sm;
+ color: $text-secondary;
+ font-size: $font-size-sm;
cursor: pointer;
- padding: @space-1 @space-2;
- margin-left: @space-2;
- border-radius: @radius-sm;
- .transition(color);
+ padding: $space-1 $space-2;
+ margin-left: $space-2;
+ border-radius: $radius-sm;
+ @include transition(color);
&:hover {
- color: @text-primary;
+ color: $text-primary;
}
}
.apps-bulk-actions {
display: flex;
- gap: @space-2;
+ gap: $space-2;
}
// ============================================
@@ -230,8 +230,8 @@
height: 0;
&:checked + .apps-checkbox-custom {
- background: @accent-primary;
- border-color: @accent-primary;
+ background: $accent-primary;
+ border-color: $accent-primary;
&::after {
opacity: 1;
@@ -239,7 +239,7 @@
}
&:focus + .apps-checkbox-custom {
- box-shadow: 0 0 0 2px @accent-glow;
+ box-shadow: 0 0 0 2px $accent-glow;
}
}
}
@@ -247,11 +247,11 @@
.apps-checkbox-custom {
width: 18px;
height: 18px;
- background: @bg-card;
- border: 1px solid @border-default;
- border-radius: @radius-sm;
+ background: $bg-card;
+ border: 1px solid $border-default;
+ border-radius: $radius-sm;
position: relative;
- .transition(all);
+ @include transition(all);
&::after {
content: '';
@@ -260,15 +260,15 @@
top: 2px;
width: 5px;
height: 9px;
- border: solid @text-primary;
+ border: solid $text-primary;
border-width: 0 2px 2px 0;
transform: rotate(45deg);
opacity: 0;
- .transition(opacity);
+ @include transition(opacity);
}
&:hover {
- border-color: @accent-primary;
+ border-color: $accent-primary;
}
}
@@ -277,43 +277,43 @@
// ============================================
.apps-list {
- .flex-column-gap(@space-2);
+ @include flex-column-gap($space-2);
}
.apps-list-header {
display: flex;
align-items: center;
- gap: @space-4;
- padding: @space-2 @space-4;
- color: @text-tertiary;
- font-size: @font-size-sm;
- font-weight: @font-weight-medium;
+ gap: $space-4;
+ padding: $space-2 $space-4;
+ color: $text-tertiary;
+ font-size: $font-size-sm;
+ font-weight: $font-weight-medium;
}
.apps-list-header-text {
- margin-left: @space-1;
+ margin-left: $space-1;
}
.app-row {
- .list-item-base();
+ @include list-item-base();
display: flex;
align-items: center;
- gap: @space-4;
- .transition(all);
+ gap: $space-4;
+ @include transition(all);
&.selected {
- background: @accent-glow;
- border-color: fade(@accent-primary-raw, 30%);
+ background: $accent-glow;
+ border-color: fade($accent-primary-raw, 30%);
}
&:hover {
- border-color: @border-active;
+ border-color: $border-active;
}
}
.app-info {
- .flex-start();
- gap: @space-4;
+ @include flex-start();
+ gap: $space-4;
flex: 1;
min-width: 0;
}
@@ -321,13 +321,13 @@
.app-icon {
width: 40px;
height: 40px;
- border-radius: @radius-md;
+ border-radius: $radius-md;
display: flex;
align-items: center;
justify-content: center;
color: white;
- font-weight: @font-weight-bold;
- font-size: @font-size-md;
+ font-weight: $font-weight-bold;
+ font-size: $font-size-md;
flex-shrink: 0;
svg {
@@ -340,57 +340,57 @@
flex: 1;
h3 {
- font-size: @font-size-base + 1;
- font-weight: @font-weight-semibold;
- color: @text-primary;
- margin-bottom: @space-1;
- .truncate();
+ font-size: $font-size-base + 1;
+ font-weight: $font-weight-semibold;
+ color: $text-primary;
+ margin-bottom: $space-1;
+ @include truncate();
}
}
.app-meta {
- .flex-start();
- gap: @space-3;
- font-size: @font-size-sm;
- color: @text-tertiary;
+ @include flex-start();
+ gap: $space-3;
+ font-size: $font-size-sm;
+ color: $text-tertiary;
flex-wrap: wrap;
a {
- color: @text-secondary;
- .transition(color);
+ color: $text-secondary;
+ @include transition(color);
&:hover {
- color: @accent-primary;
+ color: $accent-primary;
}
}
}
.app-type-badge {
- font-size: @font-size-xs;
- font-weight: @font-weight-medium;
- color: @accent-primary;
- background: @accent-glow;
- padding: 2px @space-2;
- border-radius: @radius-sm;
+ font-size: $font-size-xs;
+ font-weight: $font-weight-medium;
+ color: $accent-primary;
+ background: $accent-glow;
+ padding: 2px $space-2;
+ border-radius: $radius-sm;
}
.app-port {
- font-family: @font-mono;
- font-size: @font-size-xs;
- color: @text-secondary;
+ font-family: $font-mono;
+ font-size: $font-size-xs;
+ color: $text-secondary;
}
.app-domains-info {
display: inline-flex;
align-items: center;
- gap: @space-1;
- color: @text-secondary;
+ gap: $space-1;
+ color: $text-secondary;
a {
- color: @text-secondary;
+ color: $text-secondary;
&:hover {
- color: @accent-primary;
+ color: $accent-primary;
}
}
}
@@ -398,9 +398,9 @@
.private-url-indicator {
display: inline-flex;
align-items: center;
- gap: @space-1;
- color: @success;
- font-size: @font-size-xs;
+ gap: $space-1;
+ color: $success;
+ font-size: $font-size-xs;
}
.app-status {
@@ -411,47 +411,47 @@
.status-badge-enhanced {
display: inline-flex;
align-items: center;
- gap: @space-2;
- padding: @space-1 + 2 @space-3;
- border-radius: @radius-full;
- font-size: @font-size-sm;
- font-weight: @font-weight-medium;
+ gap: $space-2;
+ padding: $space-1 + 2 $space-3;
+ border-radius: $radius-full;
+ font-size: $font-size-sm;
+ font-weight: $font-weight-medium;
text-transform: capitalize;
&.status-active {
- background: @success-bg;
- color: @success;
+ background: $success-bg;
+ color: $success;
.status-dot-animated {
- background: @success;
+ background: $success;
animation: pulse-green 2s ease-in-out infinite;
}
}
&.status-stopped {
- background: @bg-tertiary;
- color: @text-secondary;
+ background: $bg-tertiary;
+ color: $text-secondary;
.status-dot-animated {
- background: @text-tertiary;
+ background: $text-tertiary;
}
}
&.status-error {
- background: @danger-bg;
- color: @danger;
+ background: $danger-bg;
+ color: $danger;
.status-dot-animated {
- background: @danger;
+ background: $danger;
}
}
&.status-warning {
- background: @warning-bg;
- color: @warning;
+ background: $warning-bg;
+ color: $warning;
.status-dot-animated {
- background: @warning;
+ background: $warning;
animation: pulse-yellow 2s ease-in-out infinite;
}
}
@@ -472,19 +472,19 @@
@keyframes pulse-green {
0%, 100% {
- box-shadow: 0 0 0 0 fade(@success, 40%);
+ box-shadow: 0 0 0 0 fade($success, 40%);
}
50% {
- box-shadow: 0 0 0 4px fade(@success, 0%);
+ box-shadow: 0 0 0 4px fade($success, 0%);
}
}
@keyframes pulse-yellow {
0%, 100% {
- box-shadow: 0 0 0 0 fade(@warning, 40%);
+ box-shadow: 0 0 0 0 fade($warning, 40%);
}
50% {
- box-shadow: 0 0 0 4px fade(@warning, 0%);
+ box-shadow: 0 0 0 4px fade($warning, 0%);
}
}
@@ -499,11 +499,11 @@
.app-actions {
display: flex;
- gap: @space-2;
+ gap: $space-2;
flex-shrink: 0;
.btn-text {
- @media (max-width: @breakpoint-md) {
+ @media (max-width: $breakpoint-md) {
display: none;
}
}
@@ -516,34 +516,34 @@
.apps-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
- gap: @space-4;
+ gap: $space-4;
}
.app-card {
- background: @bg-card;
- border: 1px solid @border-default;
- border-radius: @radius-lg;
- padding: @space-4;
+ background: $bg-card;
+ border: 1px solid $border-default;
+ border-radius: $radius-lg;
+ padding: $space-4;
cursor: pointer;
position: relative;
- .transition(all);
+ @include transition(all);
&:hover {
- border-color: @border-active;
+ border-color: $border-active;
transform: translateY(-2px);
- box-shadow: @shadow-md;
+ box-shadow: $shadow-md;
}
&.selected {
- background: @accent-glow;
- border-color: fade(@accent-primary-raw, 30%);
+ background: $accent-glow;
+ border-color: fade($accent-primary-raw, 30%);
}
}
.app-card-checkbox {
position: absolute;
- top: @space-3;
- left: @space-3;
+ top: $space-3;
+ left: $space-3;
z-index: 1;
}
@@ -551,43 +551,43 @@
display: flex;
justify-content: space-between;
align-items: flex-start;
- margin-bottom: @space-3;
- padding-left: @space-6 + @space-2;
+ margin-bottom: $space-3;
+ padding-left: $space-6 + $space-2;
}
.app-card-body {
h3 {
- font-size: @font-size-md;
- font-weight: @font-weight-semibold;
- color: @text-primary;
- margin-bottom: @space-2;
- .truncate();
+ font-size: $font-size-md;
+ font-weight: $font-weight-semibold;
+ color: $text-primary;
+ margin-bottom: $space-2;
+ @include truncate();
}
}
.app-card-meta {
display: flex;
align-items: center;
- gap: @space-2;
- margin-bottom: @space-3;
+ gap: $space-2;
+ margin-bottom: $space-3;
}
.app-card-info {
display: flex;
flex-direction: column;
- gap: @space-1;
+ gap: $space-1;
min-height: 48px;
}
.app-card-info-row {
display: flex;
align-items: center;
- gap: @space-2;
- font-size: @font-size-sm;
- color: @text-secondary;
+ gap: $space-2;
+ font-size: $font-size-sm;
+ color: $text-secondary;
svg {
- color: @text-tertiary;
+ color: $text-tertiary;
flex-shrink: 0;
}
}
@@ -595,15 +595,15 @@
.app-card-actions {
display: flex;
justify-content: flex-end;
- gap: @space-2;
- margin-top: @space-3;
- padding-top: @space-3;
- border-top: 1px solid @border-subtle;
+ gap: $space-2;
+ margin-top: $space-3;
+ padding-top: $space-3;
+ border-top: 1px solid $border-subtle;
}
// Icon-only button
.btn-icon {
- padding: @space-2 !important;
+ padding: $space-2 !important;
svg {
margin: 0 !important;
@@ -621,25 +621,25 @@
.confirm-modal-header {
display: flex;
align-items: center;
- gap: @space-3;
- margin-bottom: @space-3;
+ gap: $space-3;
+ margin-bottom: $space-3;
h2 {
margin: 0;
- font-size: @font-size-lg;
+ font-size: $font-size-lg;
}
}
.confirm-icon-danger {
- color: @danger;
+ color: $danger;
flex-shrink: 0;
}
.confirm-modal-message {
- color: @text-secondary;
- font-size: @font-size-base;
- line-height: @line-height-relaxed;
- margin-bottom: @space-5;
+ color: $text-secondary;
+ font-size: $font-size-base;
+ line-height: $line-height-relaxed;
+ margin-bottom: $space-5;
}
// ============================================
@@ -647,21 +647,21 @@
// ============================================
.app-header-info {
- .flex-start();
- gap: @space-5;
+ @include flex-start();
+ gap: $space-5;
- @media (max-width: @breakpoint-md) {
+ @media (max-width: $breakpoint-md) {
flex-direction: column;
align-items: flex-start;
}
}
.app-header-title {
- .flex-start();
- gap: @space-4;
+ @include flex-start();
+ gap: $space-4;
h1 {
- font-size: @font-size-2xl;
+ font-size: $font-size-2xl;
}
}
@@ -670,27 +670,27 @@
// ============================================
.deploy-tab {
- .flex-column-gap(@space-5);
+ @include flex-column-gap($space-5);
.deploy-setup {
- padding: @space-8 0;
+ padding: $space-8 0;
}
.deploy-header {
- margin-bottom: @space-5;
+ margin-bottom: $space-5;
}
.deploy-status-card {
display: flex;
align-items: center;
justify-content: space-between;
- gap: @space-4;
- padding: @space-4 @space-5;
- background: @bg-card;
- border: 1px solid @border-subtle;
- border-radius: @radius-lg;
+ gap: $space-4;
+ padding: $space-4 $space-5;
+ background: $bg-card;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-lg;
- @media (max-width: @breakpoint-md) {
+ @media (max-width: $breakpoint-md) {
flex-direction: column;
align-items: flex-start;
}
@@ -699,57 +699,57 @@
.deploy-repo-info {
display: flex;
align-items: center;
- gap: @space-3;
+ gap: $space-3;
svg {
flex-shrink: 0;
- color: @text-secondary;
+ color: $text-secondary;
}
> div {
display: flex;
flex-direction: column;
- gap: @space-1;
+ gap: $space-1;
}
.repo-url {
- font-family: @font-mono;
- font-size: @font-size-sm;
- color: @text-primary;
+ font-family: $font-mono;
+ font-size: $font-size-sm;
+ color: $text-primary;
word-break: break-all;
}
.repo-branch {
- font-size: @font-size-xs;
- color: @text-tertiary;
+ font-size: $font-size-xs;
+ color: $text-tertiary;
}
}
.deploy-actions {
display: flex;
- gap: @space-2;
+ gap: $space-2;
flex-shrink: 0;
}
.deploy-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
- gap: @space-5;
+ gap: $space-5;
}
.webhook-url {
display: flex;
align-items: center;
- gap: @space-3;
- margin-top: @space-3;
- padding: @space-3;
- background: @bg-hover;
- border-radius: @radius-md;
+ gap: $space-3;
+ margin-top: $space-3;
+ padding: $space-3;
+ background: $bg-hover;
+ border-radius: $radius-md;
code {
flex: 1;
- font-size: @font-size-xs;
- color: @text-secondary;
+ font-size: $font-size-xs;
+ color: $text-secondary;
word-break: break-all;
}
@@ -761,25 +761,25 @@
.scripts-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
- gap: @space-4;
+ gap: $space-4;
}
.script-section {
h4 {
- font-size: @font-size-sm;
- font-weight: @font-weight-medium;
- color: @text-secondary;
- margin-bottom: @space-2;
+ font-size: $font-size-sm;
+ font-weight: $font-weight-medium;
+ color: $text-secondary;
+ margin-bottom: $space-2;
}
}
.script-code {
- padding: @space-3;
- background: @bg-hover;
- border-radius: @radius-md;
- font-family: @font-mono;
- font-size: @font-size-xs;
- color: @text-secondary;
+ padding: $space-3;
+ background: $bg-hover;
+ border-radius: $radius-md;
+ font-family: $font-mono;
+ font-size: $font-size-xs;
+ color: $text-secondary;
overflow-x: auto;
white-space: pre-wrap;
word-break: break-word;
@@ -788,16 +788,16 @@
.card-actions {
display: flex;
- gap: @space-2;
- margin-top: @space-4;
- padding-top: @space-4;
- border-top: 1px solid @border-subtle;
+ gap: $space-2;
+ margin-top: $space-4;
+ padding-top: $space-4;
+ border-top: 1px solid $border-subtle;
}
.checkbox-label {
display: flex;
align-items: center;
- gap: @space-2;
+ gap: $space-2;
cursor: pointer;
input[type="checkbox"] {
@@ -807,33 +807,33 @@
}
span {
- font-size: @font-size-sm;
- color: @text-primary;
+ font-size: $font-size-sm;
+ color: $text-primary;
}
}
.form-help {
display: block;
- margin-top: @space-1;
- font-size: @font-size-xs;
- color: @text-tertiary;
+ margin-top: $space-1;
+ font-size: $font-size-xs;
+ color: $text-tertiary;
}
textarea {
- font-family: @font-mono;
- font-size: @font-size-sm;
+ font-family: $font-mono;
+ font-size: $font-size-sm;
resize: vertical;
min-height: 80px;
}
.text-danger {
- color: @danger;
- font-size: @font-size-sm;
+ color: $danger;
+ font-size: $font-size-sm;
}
.text-muted {
- color: @text-tertiary;
- font-size: @font-size-sm;
+ color: $text-tertiary;
+ font-size: $font-size-sm;
}
}
@@ -846,7 +846,7 @@
display: flex;
justify-content: space-between;
align-items: center;
- margin-bottom: @space-4;
+ margin-bottom: $space-4;
h3 {
margin: 0;
@@ -854,45 +854,45 @@
}
.diagnostics-hint {
- color: @text-tertiary;
- font-size: @font-size-sm;
+ color: $text-tertiary;
+ font-size: $font-size-sm;
margin: 0;
}
.diagnostics-results {
- .flex-column-gap(@space-4);
+ @include flex-column-gap($space-4);
}
.health-summary {
- padding: @space-3 @space-4;
- border-radius: @radius-md;
- font-weight: @font-weight-medium;
+ padding: $space-3 $space-4;
+ border-radius: $radius-md;
+ font-weight: $font-weight-medium;
&.healthy {
background: rgba(34, 197, 94, 0.1);
- color: @success;
+ color: $success;
}
&.unhealthy {
background: rgba(239, 68, 68, 0.1);
- color: @danger;
+ color: $danger;
}
}
.diagnostics-section {
h4 {
- font-size: @font-size-sm;
- font-weight: @font-weight-semibold;
- color: @text-secondary;
- margin-bottom: @space-2;
+ font-size: $font-size-sm;
+ font-weight: $font-weight-semibold;
+ color: $text-secondary;
+ margin-bottom: $space-2;
display: flex;
align-items: center;
- gap: @space-2;
+ gap: $space-2;
}
&.issues, &.recommendations {
- padding: @space-3;
- border-radius: @radius-md;
+ padding: $space-3;
+ border-radius: $radius-md;
}
&.issues {
@@ -909,37 +909,37 @@
.check-list {
display: flex;
flex-wrap: wrap;
- gap: @space-2 @space-4;
+ gap: $space-2 $space-4;
}
.check-item {
display: flex;
align-items: center;
- gap: @space-2;
- font-size: @font-size-sm;
- color: @text-secondary;
+ gap: $space-2;
+ font-size: $font-size-sm;
+ color: $text-secondary;
}
.health-icon {
font-weight: bold;
- font-size: @font-size-base;
+ font-size: $font-size-base;
&.healthy {
- color: @success;
+ color: $success;
}
&.unhealthy {
- color: @danger;
+ color: $danger;
}
}
.issues-list, .recommendations-list {
margin: 0;
- padding-left: @space-5;
- font-size: @font-size-sm;
+ padding-left: $space-5;
+ font-size: $font-size-sm;
li {
- margin-bottom: @space-1;
+ margin-bottom: $space-1;
&:last-child {
margin-bottom: 0;
@@ -948,21 +948,21 @@
}
.issues-list {
- color: @danger;
+ color: $danger;
}
.recommendations-list {
- color: @warning;
+ color: $warning;
}
.config-preview {
- margin: @space-2 0 0;
- padding: @space-3;
- background: @bg-hover;
- border-radius: @radius-md;
- font-family: @font-mono;
- font-size: @font-size-xs;
- color: @text-secondary;
+ margin: $space-2 0 0;
+ padding: $space-3;
+ background: $bg-hover;
+ border-radius: $radius-md;
+ font-family: $font-mono;
+ font-size: $font-size-xs;
+ color: $text-secondary;
overflow-x: auto;
white-space: pre;
max-height: 300px;
@@ -971,15 +971,15 @@
}
.port-status {
- font-size: @font-size-xs;
- margin-left: @space-2;
+ font-size: $font-size-xs;
+ margin-left: $space-2;
&.accessible {
- color: @success;
+ color: $success;
}
&.not-accessible {
- color: @danger;
+ color: $danger;
}
}
@@ -990,7 +990,7 @@
.app-detail-page {
display: flex;
flex-direction: column;
- gap: @space-4;
+ gap: $space-4;
}
// Top bar with breadcrumbs and actions
@@ -998,70 +998,70 @@
display: flex;
justify-content: space-between;
align-items: center;
- gap: @space-4;
+ gap: $space-4;
flex-wrap: wrap;
}
.app-detail-breadcrumbs {
display: flex;
align-items: center;
- gap: @space-2;
- font-size: @font-size-sm;
- color: @text-tertiary;
+ gap: $space-2;
+ font-size: $font-size-sm;
+ color: $text-tertiary;
a {
- color: @text-secondary;
+ color: $text-secondary;
text-decoration: none;
- .transition(color);
+ @include transition(color);
&:hover {
- color: @accent-primary;
+ color: $accent-primary;
}
}
.breadcrumb-separator {
- color: @text-tertiary;
+ color: $text-tertiary;
}
.breadcrumb-current {
- color: @text-primary;
- font-weight: @font-weight-medium;
+ color: $text-primary;
+ font-weight: $font-weight-medium;
}
}
.app-detail-actions {
display: flex;
- gap: @space-2;
+ gap: $space-2;
}
// App header with icon, title, status
.app-detail-header {
display: flex;
align-items: center;
- gap: @space-4;
- padding: @space-5;
- background: @bg-card;
- border: 1px solid @border-default;
- border-radius: @radius-lg;
+ gap: $space-4;
+ padding: $space-5;
+ background: $bg-card;
+ border: 1px solid $border-default;
+ border-radius: $radius-lg;
}
.app-detail-icon {
width: 56px;
height: 56px;
- border-radius: @radius-lg;
+ border-radius: $radius-lg;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
- font-size: @font-size-xl;
- font-weight: @font-weight-bold;
+ font-size: $font-size-xl;
+ font-weight: $font-weight-bold;
color: white;
img {
width: 100%;
height: 100%;
object-fit: contain;
- border-radius: @radius-lg;
+ border-radius: $radius-lg;
}
svg {
@@ -1074,35 +1074,35 @@
min-width: 0;
h1 {
- font-size: @font-size-xl;
- font-weight: @font-weight-semibold;
- color: @text-primary;
- margin: 0 0 @space-1 0;
+ font-size: $font-size-xl;
+ font-weight: $font-weight-semibold;
+ color: $text-primary;
+ margin: 0 0 $space-1 0;
display: flex;
align-items: center;
- gap: @space-3;
+ gap: $space-3;
}
}
.app-detail-meta {
display: flex;
align-items: center;
- gap: @space-4;
- font-size: @font-size-sm;
- color: @text-tertiary;
+ gap: $space-4;
+ font-size: $font-size-sm;
+ color: $text-tertiary;
span {
display: flex;
align-items: center;
- gap: @space-1;
+ gap: $space-1;
}
a {
- color: @text-secondary;
- .transition(color);
+ color: $text-secondary;
+ @include transition(color);
&:hover {
- color: @accent-primary;
+ color: $accent-primary;
}
}
}
@@ -1111,25 +1111,25 @@
.app-status-badge {
display: inline-flex;
align-items: center;
- gap: @space-2;
- padding: @space-1 @space-3;
- border-radius: @radius-full;
- font-size: @font-size-sm;
- font-weight: @font-weight-medium;
+ gap: $space-2;
+ padding: $space-1 $space-3;
+ border-radius: $radius-full;
+ font-size: $font-size-sm;
+ font-weight: $font-weight-medium;
&.running {
- background: @success-bg;
- color: @success;
+ background: $success-bg;
+ color: $success;
}
&.stopped {
- background: @bg-tertiary;
- color: @text-secondary;
+ background: $bg-tertiary;
+ color: $text-secondary;
}
&.error {
- background: @danger-bg;
- color: @danger;
+ background: $danger-bg;
+ color: $danger;
}
}
@@ -1147,34 +1147,34 @@
// Tabs navigation
.app-detail-tabs {
display: flex;
- gap: @space-1;
- background: @bg-card;
- border: 1px solid @border-default;
- border-radius: @radius-lg;
- padding: @space-1;
+ gap: $space-1;
+ background: $bg-card;
+ border: 1px solid $border-default;
+ border-radius: $radius-lg;
+ padding: $space-1;
overflow-x: auto;
}
.app-detail-tab {
- padding: @space-2 @space-4;
+ padding: $space-2 $space-4;
background: transparent;
border: none;
- border-radius: @radius-md;
- color: @text-secondary;
- font-size: @font-size-sm;
- font-weight: @font-weight-medium;
+ border-radius: $radius-md;
+ color: $text-secondary;
+ font-size: $font-size-sm;
+ font-weight: $font-weight-medium;
cursor: pointer;
white-space: nowrap;
- .transition(all);
+ @include transition(all);
&:hover {
- color: @text-primary;
- background: @bg-hover;
+ color: $text-primary;
+ background: $bg-hover;
}
&.active {
- color: @accent-primary;
- background: @accent-glow;
+ color: $accent-primary;
+ background: $accent-glow;
}
}
@@ -1187,9 +1187,9 @@
.app-overview-grid {
display: grid;
grid-template-columns: 2fr 1fr;
- gap: @space-4;
+ gap: $space-4;
- @media (max-width: @breakpoint-lg) {
+ @media (max-width: $breakpoint-lg) {
grid-template-columns: 1fr;
}
}
@@ -1198,14 +1198,14 @@
.app-overview-right {
display: flex;
flex-direction: column;
- gap: @space-4;
+ gap: $space-4;
}
// Panels
.app-panel {
- background: @bg-card;
- border: 1px solid @border-default;
- border-radius: @radius-lg;
+ background: $bg-card;
+ border: 1px solid $border-default;
+ border-radius: $radius-lg;
overflow: hidden;
}
@@ -1213,28 +1213,28 @@
display: flex;
justify-content: space-between;
align-items: center;
- padding: @space-4;
- border-bottom: 1px solid @border-subtle;
+ padding: $space-4;
+ border-bottom: 1px solid $border-subtle;
h3 {
margin: 0;
- font-size: @font-size-base;
- font-weight: @font-weight-semibold;
- color: @text-primary;
+ font-size: $font-size-base;
+ font-weight: $font-weight-semibold;
+ color: $text-primary;
}
}
.app-panel-body {
- padding: @space-4;
+ padding: $space-4;
}
// Info grid for key-value pairs
.app-info-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
- gap: @space-4;
+ gap: $space-4;
- @media (max-width: @breakpoint-sm) {
+ @media (max-width: $breakpoint-sm) {
grid-template-columns: 1fr;
}
}
@@ -1242,27 +1242,27 @@
.app-info-item {
display: flex;
flex-direction: column;
- gap: @space-1;
+ gap: $space-1;
.info-label {
- font-size: @font-size-xs;
- color: @text-tertiary;
+ font-size: $font-size-xs;
+ color: $text-tertiary;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.info-value {
- font-size: @font-size-sm;
- color: @text-primary;
- font-weight: @font-weight-medium;
+ font-size: $font-size-sm;
+ color: $text-primary;
+ font-weight: $font-weight-medium;
&.mono {
- font-family: @font-mono;
+ font-family: $font-mono;
}
a {
- color: @accent-primary;
- .transition(color);
+ color: $accent-primary;
+ @include transition(color);
&:hover {
text-decoration: underline;
@@ -1275,15 +1275,15 @@
.private-url-box {
display: flex;
align-items: center;
- gap: @space-3;
- padding: @space-3;
- background: @bg-hover;
- border-radius: @radius-md;
+ gap: $space-3;
+ padding: $space-3;
+ background: $bg-hover;
+ border-radius: $radius-md;
code {
flex: 1;
- font-size: @font-size-sm;
- color: @text-secondary;
+ font-size: $font-size-sm;
+ color: $text-secondary;
word-break: break-all;
}
}
@@ -1292,156 +1292,156 @@
.resource-bar-container {
display: flex;
flex-direction: column;
- gap: @space-3;
+ gap: $space-3;
}
.resource-bar-item {
display: flex;
align-items: center;
- gap: @space-3;
+ gap: $space-3;
}
.resource-bar-label {
width: 40px;
- font-size: @font-size-sm;
- color: @text-secondary;
+ font-size: $font-size-sm;
+ color: $text-secondary;
flex-shrink: 0;
}
.resource-bar-track {
flex: 1;
height: 8px;
- background: @bg-hover;
- border-radius: @radius-sm;
+ background: $bg-hover;
+ border-radius: $radius-sm;
overflow: hidden;
}
.resource-bar-fill {
height: 100%;
- border-radius: @radius-sm;
- .transition(width);
+ border-radius: $radius-sm;
+ @include transition(width);
&.cpu {
- background: @accent-primary;
+ background: $accent-primary;
}
&.ram {
- background: @warning;
+ background: $warning;
}
}
.resource-bar-value {
width: 48px;
- font-size: @font-size-sm;
- font-weight: @font-weight-medium;
- color: @text-primary;
+ font-size: $font-size-sm;
+ font-weight: $font-weight-medium;
+ color: $text-primary;
text-align: right;
flex-shrink: 0;
}
// Environment linking panel
.env-link-section {
- .flex-column-gap(@space-3);
+ @include flex-column-gap($space-3);
}
.env-link-item {
display: flex;
align-items: center;
justify-content: space-between;
- padding: @space-3;
- background: @bg-hover;
- border-radius: @radius-md;
+ padding: $space-3;
+ background: $bg-hover;
+ border-radius: $radius-md;
.env-link-info {
display: flex;
align-items: center;
- gap: @space-3;
+ gap: $space-3;
.env-badge {
- padding: @space-1 @space-2;
- border-radius: @radius-sm;
- font-size: @font-size-xs;
- font-weight: @font-weight-semibold;
+ padding: $space-1 $space-2;
+ border-radius: $radius-sm;
+ font-size: $font-size-xs;
+ font-weight: $font-weight-semibold;
text-transform: uppercase;
&.prod {
background: rgba(239, 68, 68, 0.15);
- color: @danger;
+ color: $danger;
}
&.dev {
background: rgba(34, 197, 94, 0.15);
- color: @success;
+ color: $success;
}
&.staging {
background: rgba(234, 179, 8, 0.15);
- color: @warning;
+ color: $warning;
}
}
.env-name {
- font-size: @font-size-sm;
- color: @text-primary;
+ font-size: $font-size-sm;
+ color: $text-primary;
}
}
}
// Process status list
.process-list {
- .flex-column-gap(@space-2);
+ @include flex-column-gap($space-2);
}
.process-item {
display: flex;
align-items: center;
justify-content: space-between;
- padding: @space-2 @space-3;
- background: @bg-hover;
- border-radius: @radius-md;
+ padding: $space-2 $space-3;
+ background: $bg-hover;
+ border-radius: $radius-md;
.process-name {
- font-size: @font-size-sm;
- color: @text-primary;
- font-family: @font-mono;
+ font-size: $font-size-sm;
+ color: $text-primary;
+ font-family: $font-mono;
}
.process-status {
display: flex;
align-items: center;
- gap: @space-2;
- font-size: @font-size-xs;
+ gap: $space-2;
+ font-size: $font-size-xs;
&.running {
- color: @success;
+ color: $success;
}
&.stopped {
- color: @text-tertiary;
+ color: $text-tertiary;
}
}
}
// Domains list
.domains-list {
- .flex-column-gap(@space-2);
+ @include flex-column-gap($space-2);
}
.domain-item {
display: flex;
align-items: center;
justify-content: space-between;
- padding: @space-2 @space-3;
- background: @bg-hover;
- border-radius: @radius-md;
+ padding: $space-2 $space-3;
+ background: $bg-hover;
+ border-radius: $radius-md;
.domain-url {
- font-size: @font-size-sm;
- color: @text-primary;
+ font-size: $font-size-sm;
+ color: $text-primary;
a {
- color: @accent-primary;
- .transition(color);
+ color: $accent-primary;
+ @include transition(color);
&:hover {
text-decoration: underline;
@@ -1452,12 +1452,12 @@
.domain-ssl {
display: flex;
align-items: center;
- gap: @space-1;
- font-size: @font-size-xs;
- color: @success;
+ gap: $space-1;
+ font-size: $font-size-xs;
+ color: $success;
&.no-ssl {
- color: @text-tertiary;
+ color: $text-tertiary;
}
}
}
@@ -1465,9 +1465,9 @@
// Empty state for panels
.panel-empty {
text-align: center;
- padding: @space-6;
- color: @text-tertiary;
- font-size: @font-size-sm;
+ padding: $space-6;
+ color: $text-tertiary;
+ font-size: $font-size-sm;
}
// Loading state for resources
@@ -1475,17 +1475,17 @@
display: flex;
align-items: center;
justify-content: center;
- gap: @space-2;
- padding: @space-4;
- color: @text-tertiary;
- font-size: @font-size-sm;
+ gap: $space-2;
+ padding: $space-4;
+ color: $text-tertiary;
+ font-size: $font-size-sm;
}
// ============================================
// RESPONSIVE ADJUSTMENTS
// ============================================
-@media (max-width: @breakpoint-md) {
+@media (max-width: $breakpoint-md) {
.apps-toolbar {
flex-direction: column;
align-items: stretch;
@@ -1520,8 +1520,8 @@
.app-actions {
width: 100%;
justify-content: flex-end;
- margin-top: @space-2;
- padding-top: @space-2;
- border-top: 1px solid @border-subtle;
+ margin-top: $space-2;
+ padding-top: $space-2;
+ border-top: 1px solid $border-subtle;
}
}
diff --git a/frontend/src/styles/pages/_auth.less b/frontend/src/styles/pages/_auth.scss
similarity index 54%
rename from frontend/src/styles/pages/_auth.less
rename to frontend/src/styles/pages/_auth.scss
index 03746039..ee54d376 100644
--- a/frontend/src/styles/pages/_auth.less
+++ b/frontend/src/styles/pages/_auth.scss
@@ -4,48 +4,48 @@
.auth-container {
min-height: 100vh;
- .flex-center();
- padding: @space-5;
+ @include flex-center();
+ padding: $space-5;
}
.auth-card {
width: 100%;
max-width: 400px;
- background: @bg-card;
- border: 1px solid @border-subtle;
- border-radius: @radius-2xl;
- padding: @space-10;
+ background: $bg-card;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-2xl;
+ padding: $space-10;
}
.auth-header {
text-align: center;
- margin-bottom: @space-8;
+ margin-bottom: $space-8;
.brand-logo {
width: 48px;
height: 48px;
- margin: 0 auto @space-4;
+ margin: 0 auto $space-4;
}
h1 {
- font-size: @font-size-2xl;
- font-weight: @font-weight-bold;
- margin-bottom: @space-2;
+ font-size: $font-size-2xl;
+ font-weight: $font-weight-bold;
+ margin-bottom: $space-2;
}
p {
- color: @text-secondary;
+ color: $text-secondary;
}
}
.auth-footer {
text-align: center;
- margin-top: @space-6;
- color: @text-secondary;
+ margin-top: $space-6;
+ color: $text-secondary;
a {
- color: @accent-primary;
- font-weight: @font-weight-medium;
+ color: $accent-primary;
+ font-weight: $font-weight-medium;
&:hover {
text-decoration: underline;
@@ -57,28 +57,28 @@
.sso-providers {
display: flex;
flex-direction: column;
- gap: @space-3;
+ gap: $space-3;
}
.btn-sso {
display: flex;
align-items: center;
justify-content: center;
- gap: @space-3;
+ gap: $space-3;
width: 100%;
- padding: @space-3 @space-4;
- border: 1px solid @border-subtle;
- border-radius: @radius-lg;
- background: @bg-card;
- color: @text-primary;
- font-size: @font-size-sm;
- font-weight: @font-weight-medium;
+ padding: $space-3 $space-4;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-lg;
+ background: $bg-card;
+ color: $text-primary;
+ font-size: $font-size-sm;
+ font-weight: $font-weight-medium;
cursor: pointer;
- transition: all @transition-fast;
+ transition: all $transition-fast;
&:hover:not(:disabled) {
- border-color: @border-active;
- background: @bg-hover;
+ border-color: $border-active;
+ background: $bg-hover;
}
&:disabled {
@@ -94,24 +94,24 @@
.sso-divider {
display: flex;
align-items: center;
- gap: @space-4;
- margin: @space-6 0;
- color: @text-tertiary;
- font-size: @font-size-sm;
+ gap: $space-4;
+ margin: $space-6 0;
+ color: $text-tertiary;
+ font-size: $font-size-sm;
&::before,
&::after {
content: '';
flex: 1;
height: 1px;
- background: @border-subtle;
+ background: $border-subtle;
}
}
.sso-loading {
display: flex;
justify-content: center;
- margin-bottom: @space-4;
+ margin-bottom: $space-4;
.spinning {
animation: spin 1s linear infinite;
diff --git a/frontend/src/styles/pages/_backups.less b/frontend/src/styles/pages/_backups.scss
similarity index 51%
rename from frontend/src/styles/pages/_backups.less
rename to frontend/src/styles/pages/_backups.scss
index 9f59922f..5771c2b5 100644
--- a/frontend/src/styles/pages/_backups.less
+++ b/frontend/src/styles/pages/_backups.scss
@@ -6,13 +6,13 @@
// Stat icon variants for backups
.stat-icon {
&.backups {
- background: fade(@success, 10%);
- color: @success;
+ background: fade($success, 10%);
+ color: $success;
}
&.apps {
- background: fade(@accent-primary-raw, 10%);
- color: @accent-primary;
+ background: fade($accent-primary-raw, 10%);
+ color: $accent-primary;
}
&.databases {
@@ -21,29 +21,29 @@
}
&.size {
- background: fade(@warning, 10%);
- color: @warning;
+ background: fade($warning, 10%);
+ color: $warning;
}
}
.filter-select {
- padding: @space-2 @space-3;
- border: 1px solid @border-subtle;
- border-radius: @radius-md;
- background: @bg-hover;
- color: @text-primary;
- font-size: @font-size-sm;
+ padding: $space-2 $space-3;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-md;
+ background: $bg-hover;
+ color: $text-primary;
+ font-size: $font-size-sm;
&:focus {
outline: none;
- border-color: @accent-primary;
+ border-color: $accent-primary;
}
}
.backup-name {
display: flex;
align-items: center;
- gap: @space-2;
+ gap: $space-2;
svg {
stroke: currentColor;
@@ -53,7 +53,7 @@
}
.icon-app {
- color: @accent-primary;
+ color: $accent-primary;
}
.icon-db {
@@ -63,13 +63,13 @@
.action-buttons {
display: flex;
- gap: @space-1;
+ gap: $space-1;
}
.checkbox-label {
display: flex;
align-items: center;
- gap: @space-2;
+ gap: $space-2;
cursor: pointer;
input[type="checkbox"] {
@@ -79,101 +79,101 @@
}
span {
- font-size: @font-size-sm;
- color: @text-primary;
+ font-size: $font-size-sm;
+ color: $text-primary;
}
}
.form-row {
display: grid;
grid-template-columns: 1fr 1fr;
- gap: @space-4;
+ gap: $space-4;
}
.form-help {
display: block;
- margin-top: @space-1;
- font-size: @font-size-xs;
- color: @text-tertiary;
+ margin-top: $space-1;
+ font-size: $font-size-xs;
+ color: $text-tertiary;
}
.restore-warning {
text-align: center;
- padding: @space-6;
- background: @danger-bg;
- border-radius: @radius-md;
- margin-bottom: @space-6;
+ padding: $space-6;
+ background: $danger-bg;
+ border-radius: $radius-md;
+ margin-bottom: $space-6;
svg {
- stroke: @danger;
+ stroke: $danger;
fill: none;
stroke-width: 2;
- margin-bottom: @space-2;
+ margin-bottom: $space-2;
}
h3 {
- color: @danger;
- margin-bottom: @space-2;
+ color: $danger;
+ margin-bottom: $space-2;
}
p {
- color: @text-secondary;
- font-size: @font-size-sm;
+ color: $text-secondary;
+ font-size: $font-size-sm;
}
}
.restore-details {
- background: @bg-hover;
- border-radius: @radius-md;
- padding: @space-4;
+ background: $bg-hover;
+ border-radius: $radius-md;
+ padding: $space-4;
.detail-row {
display: flex;
justify-content: space-between;
- padding: @space-2 0;
+ padding: $space-2 0;
&:not(:last-child) {
- border-bottom: 1px solid @border-subtle;
+ border-bottom: 1px solid $border-subtle;
}
}
.detail-label {
- color: @text-tertiary;
- font-size: @font-size-sm;
+ color: $text-tertiary;
+ font-size: $font-size-sm;
}
.detail-value {
- font-weight: @font-weight-medium;
- font-size: @font-size-sm;
- color: @text-primary;
+ font-weight: $font-weight-medium;
+ font-size: $font-size-sm;
+ color: $text-primary;
}
}
// Remote storage stat
.stat-icon.cloud {
- background: fade(@info, 10%);
- color: @info;
+ background: fade($info, 10%);
+ color: $info;
}
// Storage provider config section
.storage-provider-config {
- margin: @space-4 0;
- padding: @space-4;
- background: @bg-hover;
- border-radius: @radius-md;
- border: 1px solid @border-subtle;
+ margin: $space-4 0;
+ padding: $space-4;
+ background: $bg-hover;
+ border-radius: $radius-md;
+ border: 1px solid $border-subtle;
h4 {
- margin: 0 0 @space-4;
- font-size: @font-size-base;
- color: @text-primary;
+ margin: 0 0 $space-4;
+ font-size: $font-size-base;
+ color: $text-primary;
}
}
.form-help-inline {
- font-size: @font-size-xs;
- color: @text-tertiary;
- font-weight: @font-weight-normal;
+ font-size: $font-size-xs;
+ color: $text-tertiary;
+ font-weight: $font-weight-normal;
}
// Remote status badges in backup list
@@ -186,11 +186,11 @@
// Text helper classes
.text-success {
- color: @success;
+ color: $success;
}
.text-muted {
- color: @text-tertiary;
+ color: $text-tertiary;
}
// Spinning animation for upload/test buttons
@@ -206,18 +206,18 @@
// Textarea for file paths
textarea {
width: 100%;
- padding: @space-2 @space-3;
- border: 1px solid @border-subtle;
- border-radius: @radius-md;
- background: @bg-input;
- color: @text-primary;
- font-family: @font-mono;
- font-size: @font-size-sm;
+ padding: $space-2 $space-3;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-md;
+ background: $bg-input;
+ color: $text-primary;
+ font-family: $font-mono;
+ font-size: $font-size-sm;
resize: vertical;
&:focus {
outline: none;
- border-color: @accent-primary;
+ border-color: $accent-primary;
}
}
}
diff --git a/frontend/src/styles/pages/_cloud-provision.less b/frontend/src/styles/pages/_cloud-provision.scss
similarity index 65%
rename from frontend/src/styles/pages/_cloud-provision.less
rename to frontend/src/styles/pages/_cloud-provision.scss
index 5755607a..587dcd0d 100644
--- a/frontend/src/styles/pages/_cloud-provision.less
+++ b/frontend/src/styles/pages/_cloud-provision.scss
@@ -4,15 +4,15 @@
.cloud-servers-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
- gap: @spacing-lg;
- margin-top: @spacing-lg;
+ gap: $spacing-lg;
+ margin-top: $spacing-lg;
}
.cloud-server-card {
- padding: @spacing-lg;
+ padding: $spacing-lg;
display: flex;
flex-direction: column;
- gap: @spacing-sm;
+ gap: $spacing-sm;
&__header {
display: flex;
@@ -23,69 +23,69 @@
&__meta {
display: flex;
- gap: @spacing-sm;
+ gap: $spacing-sm;
font-size: 0.85rem;
- color: @text-muted;
+ color: $text-muted;
}
&__cost {
font-size: 1.2rem;
font-weight: 600;
- color: @primary-color;
+ color: $primary-color;
}
&__actions {
display: flex;
justify-content: space-between;
align-items: center;
- margin-top: @spacing-sm;
- padding-top: @spacing-sm;
- border-top: 1px solid @border-color;
+ margin-top: $spacing-sm;
+ padding-top: $spacing-sm;
+ border-top: 1px solid $border-color;
}
}
.providers-list {
display: flex;
flex-direction: column;
- gap: @spacing-sm;
- margin-top: @spacing-lg;
+ gap: $spacing-sm;
+ margin-top: $spacing-lg;
}
.provider-row {
display: flex;
align-items: center;
- gap: @spacing-md;
- padding: @spacing-md;
+ gap: $spacing-md;
+ padding: $spacing-md;
}
.costs-panel {
max-width: 600px;
- margin-top: @spacing-lg;
- padding: @spacing-lg;
+ margin-top: $spacing-lg;
+ padding: $spacing-lg;
}
.cost-total {
font-size: 1.3rem;
font-weight: 600;
- margin: @spacing-md 0;
+ margin: $spacing-md 0;
}
.cost-breakdown {
display: flex;
flex-direction: column;
- gap: @spacing-sm;
+ gap: $spacing-sm;
}
.cost-row {
display: flex;
justify-content: space-between;
- padding: @spacing-sm 0;
- border-bottom: 1px solid @border-color;
+ padding: $spacing-sm 0;
+ border-bottom: 1px solid $border-color;
&:last-child { border-bottom: none; }
}
.text-mono {
- font-family: @font-mono;
+ font-family: $font-mono;
font-size: 0.9rem;
}
}
diff --git a/frontend/src/styles/pages/_cron.less b/frontend/src/styles/pages/_cron.less
deleted file mode 100644
index 7f4a44d7..00000000
--- a/frontend/src/styles/pages/_cron.less
+++ /dev/null
@@ -1,243 +0,0 @@
-// ============================================
-// CRON JOBS PAGE
-// ============================================
-
-.cron-page {
- .page-header {
- margin-bottom: @space-6;
-
- .page-header-content {
- h1 {
- font-size: @font-size-2xl;
- font-weight: @font-weight-semibold;
- margin: 0 0 @space-1 0;
- }
-
- .page-description {
- color: @text-secondary;
- margin: 0;
- }
- }
- }
-
- // Global SVG rule for buttons
- .btn svg {
- stroke: currentColor;
- fill: none;
- stroke-width: 2;
- stroke-linecap: round;
- stroke-linejoin: round;
- }
-}
-
-// Stats icons
-.stat-icon {
- &.cron {
- background: fade(@accent-primary-raw, 10%);
- color: @accent-primary;
- }
-
- &.jobs {
- background: fade(@color-docker, 10%);
- color: @color-docker;
- }
-
- &.active {
- background: fade(@success, 10%);
- color: @success;
- }
-
- &.platform {
- background: fade(@warning, 10%);
- color: @warning;
- }
-}
-
-.cron-list {
- .flex-column-gap(@space-3);
-}
-
-.cron-item {
- .list-item-base();
- transition: opacity 0.2s ease, background-color 0.15s ease;
- cursor: pointer;
-
- &:hover {
- background: @bg-hover;
- }
-
- &.disabled {
- opacity: 0.6;
-
- .cron-item-icon {
- color: @text-tertiary;
- }
- }
-}
-
-.cron-item-info {
- .flex-start();
- gap: @space-4;
- flex: 1;
- min-width: 0;
-}
-
-.cron-item-icon {
- .icon-box();
- background: @bg-hover;
- border-radius: @radius-lg;
- color: @accent-primary;
-}
-
-.cron-item-details {
- min-width: 0;
- flex: 1;
-
- h3 {
- font-size: @font-size-base;
- font-weight: @font-weight-semibold;
- color: @text-primary;
- margin-bottom: @space-1;
- .truncate();
- }
-}
-
-.cron-item-meta {
- .flex-start();
- gap: @space-3;
- font-size: @font-size-sm;
- color: @text-tertiary;
- flex-wrap: wrap;
- margin-bottom: @space-2;
-
- .mono {
- .mono-text();
- background: @bg-hover;
- padding: @space-1 - 2 @space-2 - 2;
- border-radius: @radius-sm;
- }
-
- .description {
- color: @text-secondary;
- }
-}
-
-.cron-item-command {
- code {
- display: inline-block;
- max-width: 100%;
- font-family: @font-mono;
- font-size: @font-size-xs;
- color: @text-secondary;
- background: @bg-hover;
- padding: @space-1 @space-2;
- border-radius: @radius-sm;
- .truncate();
- }
-}
-
-.cron-item-status {
- flex-shrink: 0;
- margin-right: @space-3;
-}
-
-.cron-item-actions {
- display: flex;
- gap: @space-2;
- flex-shrink: 0;
-
- .btn {
- padding: @space-2;
-
- svg {
- stroke: currentColor;
- stroke-width: 2;
- fill: none;
- }
- }
-
- .btn-warning {
- background: fade(@warning, 10%);
- color: @warning;
- border: 1px solid fade(@warning, 20%);
-
- &:hover {
- background: fade(@warning, 20%);
- }
- }
-
- .btn-success {
- background: fade(@success, 10%);
- color: @success;
- border: 1px solid fade(@success, 20%);
-
- &:hover {
- background: fade(@success, 20%);
- }
- }
-}
-
-// Run output display
-.run-output {
- display: flex;
- flex-direction: column;
- gap: @space-4;
-}
-
-.run-output-exit {
- display: flex;
- align-items: center;
- gap: @space-3;
-}
-
-.run-output-label {
- font-size: @font-size-sm;
- font-weight: @font-weight-semibold;
- color: @text-secondary;
- text-transform: uppercase;
- letter-spacing: 0.05em;
-}
-
-.run-output-section {
- display: flex;
- flex-direction: column;
- gap: @space-2;
-}
-
-.run-output-pre {
- font-family: @font-mono;
- font-size: @font-size-xs;
- background: @bg-hover;
- color: @text-primary;
- padding: @space-3;
- border-radius: @radius-md;
- border: 1px solid @border-subtle;
- max-height: 300px;
- overflow: auto;
- white-space: pre-wrap;
- word-break: break-all;
- margin: 0;
-
- &--error {
- color: @danger;
- border-color: fade(@danger, 20%);
- background: fade(@danger, 5%);
- }
-}
-
-// Spinner inline for running jobs
-.spinner-inline {
- display: inline-block;
- width: 14px;
- height: 14px;
- border: 2px solid @border-subtle;
- border-top-color: @accent-primary;
- border-radius: 50%;
- animation: spin 0.8s linear infinite;
-}
-
-@keyframes spin {
- to {
- transform: rotate(360deg);
- }
-}
diff --git a/frontend/src/styles/pages/_cron.scss b/frontend/src/styles/pages/_cron.scss
new file mode 100644
index 00000000..5a1dc037
--- /dev/null
+++ b/frontend/src/styles/pages/_cron.scss
@@ -0,0 +1,243 @@
+// ============================================
+// CRON JOBS PAGE
+// ============================================
+
+.cron-page {
+ .page-header {
+ margin-bottom: $space-6;
+
+ .page-header-content {
+ h1 {
+ font-size: $font-size-2xl;
+ font-weight: $font-weight-semibold;
+ margin: 0 0 $space-1 0;
+ }
+
+ .page-description {
+ color: $text-secondary;
+ margin: 0;
+ }
+ }
+ }
+
+ // Global SVG rule for buttons
+ .btn svg {
+ stroke: currentColor;
+ fill: none;
+ stroke-width: 2;
+ stroke-linecap: round;
+ stroke-linejoin: round;
+ }
+}
+
+// Stats icons
+.stat-icon {
+ &.cron {
+ background: fade($accent-primary-raw, 10%);
+ color: $accent-primary;
+ }
+
+ &.jobs {
+ background: fade($color-docker, 10%);
+ color: $color-docker;
+ }
+
+ &.active {
+ background: fade($success, 10%);
+ color: $success;
+ }
+
+ &.platform {
+ background: fade($warning, 10%);
+ color: $warning;
+ }
+}
+
+.cron-list {
+ @include flex-column-gap($space-3);
+}
+
+.cron-item {
+ @include list-item-base();
+ transition: opacity 0.2s ease, background-color 0.15s ease;
+ cursor: pointer;
+
+ &:hover {
+ background: $bg-hover;
+ }
+
+ &.disabled {
+ opacity: 0.6;
+
+ .cron-item-icon {
+ color: $text-tertiary;
+ }
+ }
+}
+
+.cron-item-info {
+ @include flex-start();
+ gap: $space-4;
+ flex: 1;
+ min-width: 0;
+}
+
+.cron-item-icon {
+ @include icon-box();
+ background: $bg-hover;
+ border-radius: $radius-lg;
+ color: $accent-primary;
+}
+
+.cron-item-details {
+ min-width: 0;
+ flex: 1;
+
+ h3 {
+ font-size: $font-size-base;
+ font-weight: $font-weight-semibold;
+ color: $text-primary;
+ margin-bottom: $space-1;
+ @include truncate();
+ }
+}
+
+.cron-item-meta {
+ @include flex-start();
+ gap: $space-3;
+ font-size: $font-size-sm;
+ color: $text-tertiary;
+ flex-wrap: wrap;
+ margin-bottom: $space-2;
+
+ .mono {
+ @include mono-text();
+ background: $bg-hover;
+ padding: $space-1 - 2 $space-2 - 2;
+ border-radius: $radius-sm;
+ }
+
+ .description {
+ color: $text-secondary;
+ }
+}
+
+.cron-item-command {
+ code {
+ display: inline-block;
+ max-width: 100%;
+ font-family: $font-mono;
+ font-size: $font-size-xs;
+ color: $text-secondary;
+ background: $bg-hover;
+ padding: $space-1 $space-2;
+ border-radius: $radius-sm;
+ @include truncate();
+ }
+}
+
+.cron-item-status {
+ flex-shrink: 0;
+ margin-right: $space-3;
+}
+
+.cron-item-actions {
+ display: flex;
+ gap: $space-2;
+ flex-shrink: 0;
+
+ .btn {
+ padding: $space-2;
+
+ svg {
+ stroke: currentColor;
+ stroke-width: 2;
+ fill: none;
+ }
+ }
+
+ .btn-warning {
+ background: fade($warning, 10%);
+ color: $warning;
+ border: 1px solid fade($warning, 20%);
+
+ &:hover {
+ background: fade($warning, 20%);
+ }
+ }
+
+ .btn-success {
+ background: fade($success, 10%);
+ color: $success;
+ border: 1px solid fade($success, 20%);
+
+ &:hover {
+ background: fade($success, 20%);
+ }
+ }
+}
+
+// Run output display
+.run-output {
+ display: flex;
+ flex-direction: column;
+ gap: $space-4;
+}
+
+.run-output-exit {
+ display: flex;
+ align-items: center;
+ gap: $space-3;
+}
+
+.run-output-label {
+ font-size: $font-size-sm;
+ font-weight: $font-weight-semibold;
+ color: $text-secondary;
+ text-transform: uppercase;
+ letter-spacing: 0.05em;
+}
+
+.run-output-section {
+ display: flex;
+ flex-direction: column;
+ gap: $space-2;
+}
+
+.run-output-pre {
+ font-family: $font-mono;
+ font-size: $font-size-xs;
+ background: $bg-hover;
+ color: $text-primary;
+ padding: $space-3;
+ border-radius: $radius-md;
+ border: 1px solid $border-subtle;
+ max-height: 300px;
+ overflow: auto;
+ white-space: pre-wrap;
+ word-break: break-all;
+ margin: 0;
+
+ &--error {
+ color: $danger;
+ border-color: fade($danger, 20%);
+ background: fade($danger, 5%);
+ }
+}
+
+// Spinner inline for running jobs
+.spinner-inline {
+ display: inline-block;
+ width: 14px;
+ height: 14px;
+ border: 2px solid $border-subtle;
+ border-top-color: $accent-primary;
+ border-radius: 50%;
+ animation: spin 0.8s linear infinite;
+}
+
+@keyframes spin {
+ to {
+ transform: rotate(360deg);
+ }
+}
diff --git a/frontend/src/styles/pages/_dashboard.less b/frontend/src/styles/pages/_dashboard.scss
similarity index 53%
rename from frontend/src/styles/pages/_dashboard.less
rename to frontend/src/styles/pages/_dashboard.scss
index b8c37891..a48ca1ea 100644
--- a/frontend/src/styles/pages/_dashboard.less
+++ b/frontend/src/styles/pages/_dashboard.scss
@@ -5,7 +5,7 @@
.dashboard-page {
display: flex;
flex-direction: column;
- gap: @space-6;
+ gap: $space-6;
min-height: 100%;
}
@@ -14,43 +14,43 @@
display: flex;
justify-content: space-between;
align-items: center;
- padding-bottom: @space-4;
- border-bottom: 1px solid @border-subtle;
+ padding-bottom: $space-4;
+ border-bottom: 1px solid $border-subtle;
}
.server-identity {
h1 {
font-size: 1.5rem;
- font-weight: @font-weight-bold;
+ font-weight: $font-weight-bold;
letter-spacing: -0.02em;
display: flex;
align-items: center;
gap: 10px;
- color: @text-primary;
- font-family: @font-mono;
+ color: $text-primary;
+ font-family: $font-mono;
}
}
.status-dot-live {
width: 10px;
height: 10px;
- background: @success;
+ background: $success;
border-radius: 50%;
- box-shadow: 0 0 10px @success;
+ box-shadow: 0 0 10px $success;
display: inline-block;
}
.server-details {
display: flex;
align-items: center;
- gap: @space-3;
- margin-top: @space-2;
- font-size: @font-size-sm;
- color: @text-tertiary;
- font-family: @font-mono;
+ gap: $space-3;
+ margin-top: $space-2;
+ font-size: $font-size-sm;
+ color: $text-tertiary;
+ font-family: $font-mono;
.detail-separator {
- color: @border-default;
+ color: $border-default;
user-select: none;
}
}
@@ -59,7 +59,7 @@
.top-bar-right {
display: flex;
align-items: center;
- gap: @space-5;
+ gap: $space-5;
}
.clock-widget {
@@ -69,18 +69,18 @@
}
.clock-time {
- font-family: @font-mono;
+ font-family: $font-mono;
font-size: 1.25rem;
- font-weight: @font-weight-bold;
- color: @text-primary;
+ font-weight: $font-weight-bold;
+ color: $text-primary;
letter-spacing: -0.01em;
font-variant-numeric: tabular-nums;
}
.clock-zone {
- color: @accent-primary;
- font-weight: @font-weight-semibold;
- font-size: @font-size-xs;
+ color: $accent-primary;
+ font-weight: $font-weight-semibold;
+ font-size: $font-size-xs;
text-transform: uppercase;
letter-spacing: 0.08em;
}
@@ -89,7 +89,7 @@
.grid-container {
display: grid;
grid-template-columns: repeat(12, 1fr);
- gap: @space-5;
+ gap: $space-5;
max-width: 1800px;
margin: 0 auto;
width: 100%;
@@ -98,10 +98,10 @@
// --- Metric Tiles ---
.metric-tile {
grid-column: span 3;
- background: @bg-card;
- border: 1px solid @border-subtle;
- border-radius: @radius-sm;
- padding: @space-5;
+ background: $bg-card;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-sm;
+ padding: $space-5;
position: relative;
overflow: hidden;
@@ -112,15 +112,15 @@
left: 0;
width: 100%;
height: 2px;
- background: linear-gradient(90deg, @accent-primary, transparent);
+ background: linear-gradient(90deg, $accent-primary, transparent);
opacity: 0.5;
}
- @media (max-width: @breakpoint-xl) {
+ @media (max-width: $breakpoint-xl) {
grid-column: span 6;
}
- @media (max-width: @breakpoint-md) {
+ @media (max-width: $breakpoint-md) {
grid-column: span 12;
}
}
@@ -129,56 +129,56 @@
display: flex;
justify-content: space-between;
align-items: center;
- margin-bottom: @space-3;
+ margin-bottom: $space-3;
}
.tile-title {
- font-size: @font-size-xs;
- font-weight: @font-weight-semibold;
+ font-size: $font-size-xs;
+ font-weight: $font-weight-semibold;
text-transform: uppercase;
- color: @text-tertiary;
+ color: $text-tertiary;
letter-spacing: 0.05em;
}
.tile-icon {
- &.cpu { color: @accent-primary; }
- &.memory { color: @success; }
- &.network { color: @warning; }
- &.disk { color: @danger; }
+ &.cpu { color: $accent-primary; }
+ &.memory { color: $success; }
+ &.network { color: $warning; }
+ &.disk { color: $danger; }
}
.tile-val {
- font-family: @font-mono;
+ font-family: $font-mono;
font-size: 1.75rem;
- font-weight: @font-weight-bold;
- color: @text-primary;
+ font-weight: $font-weight-bold;
+ color: $text-primary;
}
.tile-val-unit {
- font-size: @font-size-base;
- font-weight: @font-weight-normal;
- color: @text-tertiary;
- margin-left: @space-1;
+ font-size: $font-size-base;
+ font-weight: $font-weight-normal;
+ color: $text-tertiary;
+ margin-left: $space-1;
}
.tile-sub {
- font-size: @font-size-sm;
- color: @text-tertiary;
- margin-top: @space-2;
+ font-size: $font-size-sm;
+ color: $text-tertiary;
+ margin-top: $space-2;
display: flex;
justify-content: space-between;
}
-.trend-up { color: @warning; }
-.trend-down { color: @success; }
+.trend-up { color: $warning; }
+.trend-down { color: $success; }
// --- Chart Panel ---
.chart-panel {
grid-column: span 8;
- background: @bg-card;
- border: 1px solid @border-subtle;
- border-radius: @radius-sm;
- padding: @space-5;
+ background: $bg-card;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-sm;
+ padding: $space-5;
min-height: 450px;
display: flex;
flex-direction: column;
@@ -199,14 +199,14 @@
display: flex;
justify-content: space-between;
align-items: center;
- margin-bottom: @space-5;
- gap: @space-4;
+ margin-bottom: $space-5;
+ gap: $space-4;
}
.graph-title {
- font-weight: @font-weight-semibold;
- font-size: @font-size-base;
- color: @text-primary;
+ font-weight: $font-weight-semibold;
+ font-size: $font-size-base;
+ color: $text-primary;
}
.metrics-chart-container {
@@ -214,15 +214,15 @@
margin-bottom: 0;
}
- @media (max-width: @breakpoint-lg) {
+ @media (max-width: $breakpoint-lg) {
grid-column: span 12;
min-height: 400px;
}
- @media (max-width: @breakpoint-md) {
+ @media (max-width: $breakpoint-md) {
.metrics-graph-header {
flex-wrap: wrap;
- gap: @space-3;
+ gap: $space-3;
}
}
}
@@ -230,33 +230,33 @@
// --- Spec Panel ---
.spec-panel {
grid-column: span 4;
- background: @bg-card;
- border: 1px solid @border-subtle;
- border-radius: @radius-sm;
- padding: @space-5;
+ background: $bg-card;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-sm;
+ padding: $space-5;
display: flex;
flex-direction: column;
- gap: @space-4;
+ gap: $space-4;
- @media (max-width: @breakpoint-lg) {
+ @media (max-width: $breakpoint-lg) {
grid-column: span 12;
}
}
.spec-panel-title {
- font-size: @font-size-sm;
+ font-size: $font-size-sm;
text-transform: uppercase;
- color: @text-tertiary;
- font-weight: @font-weight-semibold;
+ color: $text-tertiary;
+ font-weight: $font-weight-semibold;
letter-spacing: 0.05em;
}
.spec-row {
display: flex;
justify-content: space-between;
- border-bottom: 1px solid @border-subtle;
- padding-bottom: @space-3;
- font-size: @font-size-sm;
+ border-bottom: 1px solid $border-subtle;
+ padding-bottom: $space-3;
+ font-size: $font-size-sm;
&:last-child {
border: none;
@@ -265,12 +265,12 @@
}
.spec-label {
- color: @text-tertiary;
+ color: $text-tertiary;
}
.spec-data {
- font-family: @font-mono;
- color: @text-primary;
+ font-family: $font-mono;
+ color: $text-primary;
text-align: right;
max-width: 60%;
overflow: hidden;
@@ -280,36 +280,36 @@
.btn-action {
width: 100%;
- padding: @space-3;
- background: @bg-hover;
- border: 1px solid @border-subtle;
- border-radius: @radius-md;
- color: @text-primary;
- font-weight: @font-weight-semibold;
- font-size: @font-size-sm;
+ padding: $space-3;
+ background: $bg-hover;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-md;
+ color: $text-primary;
+ font-weight: $font-weight-semibold;
+ font-size: $font-size-sm;
cursor: pointer;
text-align: left;
display: flex;
justify-content: space-between;
align-items: center;
- transition: all @transition-fast;
+ transition: all $transition-fast;
&:hover {
- border-color: @accent-primary;
- background: @accent-glow;
+ border-color: $accent-primary;
+ background: $accent-glow;
}
svg {
- color: @text-tertiary;
+ color: $text-tertiary;
}
}
// --- Process Table ---
.table-panel {
grid-column: span 12;
- background: @bg-card;
- border: 1px solid @border-subtle;
- border-radius: @radius-sm;
+ background: $bg-card;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-sm;
overflow: hidden;
}
@@ -317,37 +317,37 @@
display: flex;
justify-content: space-between;
align-items: center;
- padding: @space-4 @space-5;
- border-bottom: 1px solid @border-subtle;
- font-weight: @font-weight-semibold;
- color: @text-primary;
+ padding: $space-4 $space-5;
+ border-bottom: 1px solid $border-subtle;
+ font-weight: $font-weight-semibold;
+ color: $text-primary;
}
.data-table {
width: 100%;
border-collapse: collapse;
- font-size: @font-size-sm;
+ font-size: $font-size-sm;
th {
text-align: left;
- padding: @space-4 @space-5;
- background: @bg-hover;
- color: @text-tertiary;
- font-weight: @font-weight-semibold;
+ padding: $space-4 $space-5;
+ background: $bg-hover;
+ color: $text-tertiary;
+ font-weight: $font-weight-semibold;
text-transform: uppercase;
- font-size: @font-size-xs;
+ font-size: $font-size-xs;
letter-spacing: 0.05em;
}
td {
- padding: @space-4 @space-5;
- border-bottom: 1px solid @border-subtle;
- font-family: @font-mono;
- color: @text-secondary;
+ padding: $space-4 $space-5;
+ border-bottom: 1px solid $border-subtle;
+ font-family: $font-mono;
+ color: $text-secondary;
}
tr:hover {
- background: @bg-hover;
+ background: $bg-hover;
}
tr:last-child td {
@@ -358,56 +358,56 @@
.app-name-cell {
display: flex;
align-items: center;
- gap: @space-2;
- color: @text-primary;
+ gap: $space-2;
+ color: $text-primary;
}
.app-icon-mini {
display: flex;
align-items: center;
justify-content: center;
- color: @text-tertiary;
+ color: $text-tertiary;
}
// Status Badges
.badge {
padding: 2px 8px;
- border-radius: @radius-sm;
- font-size: @font-size-xs;
+ border-radius: $radius-sm;
+ font-size: $font-size-xs;
text-transform: uppercase;
- font-weight: @font-weight-semibold;
+ font-weight: $font-weight-semibold;
letter-spacing: 0.5px;
}
.badge-running {
- color: @success;
- background: @success-bg;
- border: 1px solid @success-border;
+ color: $success;
+ background: $success-bg;
+ border: 1px solid $success-border;
}
.badge-warning {
- color: @warning;
- background: @warning-bg;
- border: 1px solid @warning-border;
+ color: $warning;
+ background: $warning-bg;
+ border: 1px solid $warning-border;
}
.badge-stopped {
- color: @danger;
- background: @danger-bg;
- border: 1px solid @danger-border;
+ color: $danger;
+ background: $danger-bg;
+ border: 1px solid $danger-border;
}
// Responsive
-@media (max-width: @breakpoint-md) {
+@media (max-width: $breakpoint-md) {
.top-bar {
flex-direction: column;
align-items: flex-start;
- gap: @space-4;
+ gap: $space-4;
}
.server-details {
flex-wrap: wrap;
- gap: @space-3;
+ gap: $space-3;
}
.clock-widget {
@@ -424,14 +424,14 @@
}
}
-@media (max-width: @breakpoint-sm) {
+@media (max-width: $breakpoint-sm) {
.server-details {
flex-direction: column;
- gap: @space-1;
+ gap: $space-1;
}
.metric-tile {
- padding: @space-4;
+ padding: $space-4;
}
.tile-val {
@@ -444,9 +444,9 @@
display: flex;
flex-direction: column;
align-items: flex-end;
- gap: @space-2;
- padding-left: @space-5;
- border-left: 1px solid @border-subtle;
+ gap: $space-2;
+ padding-left: $space-5;
+ border-left: 1px solid $border-subtle;
.refresh-select,
.btn-refresh {
@@ -455,23 +455,23 @@
}
.refresh-select {
- background: @bg-hover;
- border: 1px solid @border-subtle;
- border-radius: @radius-sm;
- color: @text-primary;
- font-family: @font-mono;
- font-size: @font-size-sm;
- padding: @space-1 @space-2;
+ background: $bg-hover;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-sm;
+ color: $text-primary;
+ font-family: $font-mono;
+ font-size: $font-size-sm;
+ padding: $space-1 $space-2;
cursor: pointer;
outline: none;
&:hover {
- border-color: @accent-primary;
+ border-color: $accent-primary;
}
&:focus {
- border-color: @accent-primary;
- box-shadow: 0 0 0 2px @accent-glow;
+ border-color: $accent-primary;
+ box-shadow: 0 0 0 2px $accent-glow;
}
}
@@ -479,27 +479,27 @@
display: flex;
align-items: center;
justify-content: center;
- background: @bg-hover;
- border: 1px solid @border-subtle;
- border-radius: @radius-sm;
- color: @text-secondary;
- padding: @space-2;
+ background: $bg-hover;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-sm;
+ color: $text-secondary;
+ padding: $space-2;
cursor: pointer;
- transition: all @transition-fast;
+ transition: all $transition-fast;
&:hover {
- border-color: @accent-primary;
- color: @accent-primary;
- background: @accent-glow;
+ border-color: $accent-primary;
+ color: $accent-primary;
+ background: $accent-glow;
}
}
.status-dot-live.disconnected {
- background: @warning;
- box-shadow: 0 0 10px @warning;
+ background: $warning;
+ box-shadow: 0 0 10px $warning;
}
-@media (max-width: @breakpoint-md) {
+@media (max-width: $breakpoint-md) {
.refresh-control {
width: 100%;
justify-content: flex-start;
diff --git a/frontend/src/styles/pages/_databases.less b/frontend/src/styles/pages/_databases.less
deleted file mode 100644
index 44312158..00000000
--- a/frontend/src/styles/pages/_databases.less
+++ /dev/null
@@ -1,146 +0,0 @@
-// ============================================
-// DATABASES PAGE
-// ============================================
-
-// Status section
-.db-status {
- display: flex;
- gap: @space-6;
- margin-bottom: @space-6;
-
- @media (max-width: @breakpoint-md) {
- flex-direction: column;
- }
-}
-
-.db-status-item {
- .flex-start();
- gap: @space-3;
- padding: @space-4 @space-6;
- background: @bg-card;
- border: 1px solid @border-subtle;
- border-radius: @radius-xl;
- flex: 1;
-}
-
-.status-icon {
- .icon-box(48px);
- border-radius: @radius-xl - 2;
- font-size: @font-size-xl;
- font-weight: @font-weight-bold;
-
- &.mysql {
- background: linear-gradient(135deg, @color-mysql-secondary, @color-mysql);
- color: white;
- }
-
- &.postgresql {
- background: linear-gradient(135deg, @color-postgresql, @color-postgresql-secondary);
- color: white;
- }
-}
-
-.status-info {
- h3 {
- font-size: @font-size-md;
- font-weight: @font-weight-semibold;
- margin-bottom: @space-1;
- }
-
- span {
- font-size: @font-size-sm + 1;
- color: @text-secondary;
-
- &.running {
- color: @success;
- }
-
- &.stopped {
- color: @danger;
- }
- }
-}
-
-// Database list
-.db-list {
- .flex-column-gap(@space-3);
-}
-
-.db-item {
- .list-item-base();
-}
-
-.db-item-info {
- .flex-start();
- gap: @space-4;
- flex: 1;
- min-width: 0;
-}
-
-.db-item-icon {
- .icon-box();
- background: @bg-hover;
- border-radius: @radius-lg;
-
- &.mysql {
- color: @color-mysql;
- }
-
- &.postgresql {
- color: @color-postgresql;
- }
-
- &.user {
- color: @accent-primary;
- }
-}
-
-.db-item-details {
- min-width: 0;
-
- h3 {
- font-size: @font-size-base;
- font-weight: @font-weight-semibold;
- color: @text-primary;
- margin-bottom: @space-1;
- .truncate();
- }
-}
-
-.db-item-meta {
- .flex-start();
- gap: @space-3;
- font-size: @font-size-sm;
- color: @text-tertiary;
- flex-wrap: wrap;
-
- .mono {
- .mono-text();
- background: @bg-hover;
- padding: @space-1 - 2 @space-2 - 2;
- border-radius: @radius-sm;
- }
-
- .host {
- color: @text-secondary;
- }
-}
-
-.db-item-actions {
- display: flex;
- gap: @space-2;
- flex-shrink: 0;
-}
-
-// Users section
-.users-header {
- .flex-between();
- margin: @space-8 0 @space-4;
- padding-top: @space-6;
- border-top: 1px solid @border-subtle;
-
- h3 {
- font-size: @font-size-md;
- font-weight: @font-weight-semibold;
- }
-}
diff --git a/frontend/src/styles/pages/_databases.scss b/frontend/src/styles/pages/_databases.scss
new file mode 100644
index 00000000..12c53613
--- /dev/null
+++ b/frontend/src/styles/pages/_databases.scss
@@ -0,0 +1,146 @@
+// ============================================
+// DATABASES PAGE
+// ============================================
+
+// Status section
+.db-status {
+ display: flex;
+ gap: $space-6;
+ margin-bottom: $space-6;
+
+ @media (max-width: $breakpoint-md) {
+ flex-direction: column;
+ }
+}
+
+.db-status-item {
+ @include flex-start();
+ gap: $space-3;
+ padding: $space-4 $space-6;
+ background: $bg-card;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-xl;
+ flex: 1;
+}
+
+.status-icon {
+ @include icon-box(48px);
+ border-radius: $radius-xl - 2;
+ font-size: $font-size-xl;
+ font-weight: $font-weight-bold;
+
+ &.mysql {
+ background: linear-gradient(135deg, $color-mysql-secondary, $color-mysql);
+ color: white;
+ }
+
+ &.postgresql {
+ background: linear-gradient(135deg, $color-postgresql, $color-postgresql-secondary);
+ color: white;
+ }
+}
+
+.status-info {
+ h3 {
+ font-size: $font-size-md;
+ font-weight: $font-weight-semibold;
+ margin-bottom: $space-1;
+ }
+
+ span {
+ font-size: $font-size-sm + 1;
+ color: $text-secondary;
+
+ &.running {
+ color: $success;
+ }
+
+ &.stopped {
+ color: $danger;
+ }
+ }
+}
+
+// Database list
+.db-list {
+ @include flex-column-gap($space-3);
+}
+
+.db-item {
+ @include list-item-base();
+}
+
+.db-item-info {
+ @include flex-start();
+ gap: $space-4;
+ flex: 1;
+ min-width: 0;
+}
+
+.db-item-icon {
+ @include icon-box();
+ background: $bg-hover;
+ border-radius: $radius-lg;
+
+ &.mysql {
+ color: $color-mysql;
+ }
+
+ &.postgresql {
+ color: $color-postgresql;
+ }
+
+ &.user {
+ color: $accent-primary;
+ }
+}
+
+.db-item-details {
+ min-width: 0;
+
+ h3 {
+ font-size: $font-size-base;
+ font-weight: $font-weight-semibold;
+ color: $text-primary;
+ margin-bottom: $space-1;
+ @include truncate();
+ }
+}
+
+.db-item-meta {
+ @include flex-start();
+ gap: $space-3;
+ font-size: $font-size-sm;
+ color: $text-tertiary;
+ flex-wrap: wrap;
+
+ .mono {
+ @include mono-text();
+ background: $bg-hover;
+ padding: $space-1 - 2 $space-2 - 2;
+ border-radius: $radius-sm;
+ }
+
+ .host {
+ color: $text-secondary;
+ }
+}
+
+.db-item-actions {
+ display: flex;
+ gap: $space-2;
+ flex-shrink: 0;
+}
+
+// Users section
+.users-header {
+ @include flex-between();
+ margin: $space-8 0 $space-4;
+ padding-top: $space-6;
+ border-top: 1px solid $border-subtle;
+
+ h3 {
+ font-size: $font-size-md;
+ font-weight: $font-weight-semibold;
+ }
+}
diff --git a/frontend/src/styles/pages/_dns-zones.less b/frontend/src/styles/pages/_dns-zones.scss
similarity index 64%
rename from frontend/src/styles/pages/_dns-zones.less
rename to frontend/src/styles/pages/_dns-zones.scss
index 82f9a26e..bffea5a7 100644
--- a/frontend/src/styles/pages/_dns-zones.less
+++ b/frontend/src/styles/pages/_dns-zones.scss
@@ -4,8 +4,8 @@
.dns-layout {
display: grid;
grid-template-columns: 320px 1fr;
- gap: @spacing-lg;
- margin-top: @spacing-lg;
+ gap: $spacing-lg;
+ margin-top: $spacing-lg;
@media (max-width: 900px) {
grid-template-columns: 1fr;
@@ -15,22 +15,22 @@
.dns-zones-list {
display: flex;
flex-direction: column;
- gap: @spacing-xs;
+ gap: $spacing-xs;
}
.dns-zone-item {
display: flex;
justify-content: space-between;
align-items: center;
- padding: @spacing-md;
- background: @card-bg;
- border: 1px solid @border-color;
- border-radius: @radius-md;
+ padding: $spacing-md;
+ background: $card-bg;
+ border: 1px solid $border-color;
+ border-radius: $radius-md;
cursor: pointer;
transition: border-color 0.15s;
&:hover, &.active {
- border-color: @primary-color;
+ border-color: $primary-color;
}
&__info {
@@ -41,42 +41,42 @@
&__actions {
display: flex;
- gap: @spacing-xs;
+ gap: $spacing-xs;
}
}
.dns-records-panel {
- background: @card-bg;
- border: 1px solid @border-color;
- border-radius: @radius-lg;
- padding: @spacing-lg;
+ background: $card-bg;
+ border: 1px solid $border-color;
+ border-radius: $radius-lg;
+ padding: $spacing-lg;
&__header {
display: flex;
justify-content: space-between;
align-items: center;
- margin-bottom: @spacing-lg;
+ margin-bottom: $spacing-lg;
h2 { margin: 0; }
}
&__actions {
display: flex;
- gap: @spacing-sm;
+ gap: $spacing-sm;
}
}
.text-mono {
- font-family: @font-mono;
+ font-family: $font-mono;
font-size: 0.85rem;
}
.propagation-row {
display: flex;
align-items: center;
- gap: @spacing-sm;
- padding: @spacing-sm 0;
- border-bottom: 1px solid @border-color;
+ gap: $spacing-sm;
+ padding: $spacing-sm 0;
+ border-bottom: 1px solid $border-color;
&:last-child { border-bottom: none; }
}
@@ -84,6 +84,6 @@
.form-row {
display: grid;
grid-template-columns: 1fr 1fr;
- gap: @spacing-md;
+ gap: $spacing-md;
}
}
diff --git a/frontend/src/styles/pages/_docker.less b/frontend/src/styles/pages/_docker.less
deleted file mode 100644
index 5d2368e3..00000000
--- a/frontend/src/styles/pages/_docker.less
+++ /dev/null
@@ -1,772 +0,0 @@
-// ============================================
-// DOCKER PAGE - NEW DESIGN
-// ============================================
-
-// Page Layout
-.docker-page-new {
- padding: 0;
-}
-
-.docker-page-header {
- display: flex;
- justify-content: space-between;
- align-items: center;
- margin-bottom: @space-6;
-}
-
-.docker-page-title {
- h2 {
- font-size: @font-size-xl;
- font-weight: @font-weight-semibold;
- color: @text-primary;
- margin: 0;
- }
-}
-
-.docker-page-subtitle {
- color: @text-secondary;
- font-size: @font-size-sm;
- margin-top: @space-1;
-}
-
-.docker-page-actions {
- display: flex;
- align-items: center;
- gap: @space-3;
-}
-
-// Server Selector
-.server-selector {
- display: flex;
- align-items: center;
- gap: @space-2;
- background: @bg-card;
- border: 1px solid @border-subtle;
- border-radius: @radius-md;
- padding: @space-2 @space-3;
- margin-right: @space-2;
-
- svg {
- color: @text-tertiary;
- flex-shrink: 0;
- }
-
- select {
- background: transparent;
- border: none;
- color: @text-primary;
- font-size: @font-size-sm;
- cursor: pointer;
- padding-right: @space-4;
- min-width: 140px;
-
- &:focus {
- outline: none;
- }
-
- option {
- background: @bg-card;
- color: @text-primary;
- }
-
- option:disabled {
- color: @text-tertiary;
- }
- }
-}
-
-// Stats Row
-.docker-stats-row {
- display: grid;
- grid-template-columns: repeat(4, 1fr);
- gap: @space-4;
- margin-bottom: @space-6;
-
- @media (max-width: 1024px) {
- grid-template-columns: repeat(2, 1fr);
- }
-
- @media (max-width: 640px) {
- grid-template-columns: 1fr;
- }
-}
-
-.docker-stat-card {
- background: @bg-card;
- border: 1px solid @border-subtle;
- border-radius: @radius-md;
- padding: @space-5;
-}
-
-.docker-stat-label {
- font-size: @font-size-xs;
- font-weight: @font-weight-semibold;
- text-transform: uppercase;
- color: @text-tertiary;
- margin-bottom: @space-2;
- letter-spacing: 0.05em;
-}
-
-.docker-stat-value {
- font-family: @font-mono;
- font-size: @font-size-2xl;
- font-weight: @font-weight-bold;
- color: @text-primary;
-}
-
-.docker-stat-meta {
- font-size: @font-size-xs;
- color: @text-tertiary;
- margin-top: @space-1;
- display: flex;
- align-items: center;
- gap: @space-3;
-}
-
-.docker-stat-running {
- color: @success;
-
- &::before {
- content: '';
- display: inline-block;
- width: 6px;
- height: 6px;
- background: @success;
- border-radius: 50%;
- margin-right: @space-1;
- }
-}
-
-.docker-stat-stopped {
- color: @text-tertiary;
-
- &::before {
- content: '';
- display: inline-block;
- width: 6px;
- height: 6px;
- background: @text-tertiary;
- border-radius: 50%;
- margin-right: @space-1;
- }
-}
-
-// Panel
-.docker-panel {
- background: @bg-card;
- border: 1px solid @border-subtle;
- border-radius: @radius-md;
- overflow: hidden;
-}
-
-.docker-panel-header {
- padding: @space-4 @space-5;
- border-bottom: 1px solid @border-subtle;
- display: flex;
- justify-content: space-between;
- align-items: center;
-}
-
-.docker-panel-tabs {
- display: flex;
- gap: @space-6;
-}
-
-.docker-panel-tab {
- color: @text-tertiary;
- font-size: @font-size-sm;
- font-weight: @font-weight-medium;
- cursor: pointer;
- padding-bottom: @space-1;
- border-bottom: 2px solid transparent;
- transition: all 0.2s;
-
- &:hover {
- color: @text-primary;
- }
-
- &.active {
- color: @text-primary;
- border-color: @accent-primary;
- }
-}
-
-.docker-panel-actions {
- display: flex;
- gap: @space-2;
-}
-
-.docker-panel-content {
- // Content area - no padding needed, tabs handle their own
-}
-
-// Table Header (filter + search)
-.docker-table-header {
- display: flex;
- justify-content: space-between;
- align-items: center;
- padding: @space-3 @space-5;
- border-bottom: 1px solid @border-subtle;
- background: @bg-hover;
-}
-
-.docker-filter-toggle {
- display: flex;
- align-items: center;
- gap: @space-2;
- font-size: @font-size-sm;
- color: @text-secondary;
- cursor: pointer;
-
- input[type="checkbox"] {
- width: 14px;
- height: 14px;
- accent-color: @accent-primary;
- }
-}
-
-.docker-search {
- background: @bg-card;
- border: 1px solid @border-subtle;
- padding: @space-2 @space-3;
- border-radius: @radius-sm;
- color: @text-primary;
- font-size: @font-size-xs;
- width: 200px;
-
- &::placeholder {
- color: @text-tertiary;
- }
-
- &:focus {
- outline: none;
- border-color: @accent-primary;
- }
-}
-
-// Docker Table
-.docker-table {
- width: 100%;
- border-collapse: collapse;
- font-size: @font-size-sm;
-
- th {
- text-align: left;
- padding: @space-3 @space-5;
- background: @bg-hover;
- color: @text-tertiary;
- font-size: @font-size-xs;
- text-transform: uppercase;
- letter-spacing: 0.05em;
- font-weight: @font-weight-semibold;
- }
-
- td {
- padding: @space-4 @space-5;
- border-bottom: 1px solid @border-subtle;
- vertical-align: middle;
- }
-
- tr:hover {
- background: fade(@white, 2%);
- }
-
- tr:last-child td {
- border-bottom: none;
- }
-}
-
-// Container Name & ID
-.docker-container-name {
- font-weight: @font-weight-semibold;
- color: @text-primary;
- font-size: @font-size-sm;
- display: block;
- margin-bottom: @space-1;
-}
-
-.docker-container-id {
- font-family: @font-mono;
- color: @accent-primary;
- font-size: @font-size-xs;
-}
-
-// Image Tag
-.docker-image-tag {
- font-family: @font-mono;
- color: @text-secondary;
- font-size: @font-size-xs;
- background: @bg-hover;
- padding: @space-1 @space-2;
- border-radius: @radius-sm;
-}
-
-// Status Pill
-.docker-status-pill {
- display: inline-flex;
- align-items: center;
- gap: @space-2;
- font-size: @font-size-xs;
- font-weight: @font-weight-semibold;
- padding: @space-1 @space-2;
- border-radius: @radius-full;
-
- &.running {
- background: fade(@success, 10%);
- color: @success;
- border: 1px solid fade(@success, 20%);
- }
-
- &.exited {
- background: fade(@danger, 10%);
- color: @danger;
- border: 1px solid fade(@danger, 20%);
- }
-}
-
-.docker-status-dot {
- width: 6px;
- height: 6px;
- border-radius: 50%;
- background: currentColor;
-}
-
-.docker-status-detail {
- font-size: @font-size-xs;
- color: @text-tertiary;
- margin-top: @space-1;
-}
-
-// Ports
-.docker-ports {
- font-family: @font-mono;
- color: @text-primary;
- font-size: @font-size-xs;
- line-height: 1.6;
-
- &.faded {
- opacity: 0.4;
- }
-}
-
-// Resource Bars
-.docker-res-container {
- display: flex;
- align-items: center;
- gap: @space-2;
- font-size: @font-size-xs;
- color: @text-tertiary;
- margin-bottom: @space-1;
-
- &:last-child {
- margin-bottom: 0;
- }
-}
-
-.docker-res-label {
- width: 28px;
- flex-shrink: 0;
-}
-
-.docker-res-track {
- width: 50px;
- height: 4px;
- background: @bg-hover;
- border-radius: 2px;
- overflow: hidden;
-}
-
-.docker-res-fill {
- height: 100%;
- border-radius: 2px;
- transition: width 0.3s ease;
-}
-
-.docker-res-value {
- width: 32px;
- text-align: right;
- font-family: @font-mono;
-}
-
-.faded {
- opacity: 0.3;
-}
-
-// Icon Actions
-.docker-actions-cell {
- text-align: right;
- white-space: nowrap;
-}
-
-.docker-icon-action {
- background: transparent;
- border: 1px solid transparent;
- color: @text-tertiary;
- width: 28px;
- height: 28px;
- border-radius: @radius-sm;
- cursor: pointer;
- transition: all 0.2s;
- display: inline-flex;
- align-items: center;
- justify-content: center;
- padding: 0;
-
- &:hover:not(:disabled) {
- color: @text-primary;
- background: @bg-hover;
- border-color: @border-subtle;
- }
-
- &:disabled {
- opacity: 0.5;
- cursor: not-allowed;
- }
-
- svg {
- width: 14px;
- height: 14px;
- }
-}
-
-// Empty & Loading States
-.docker-empty {
- text-align: center;
- padding: @space-12;
- color: @text-secondary;
-
- h3 {
- font-size: @font-size-lg;
- font-weight: @font-weight-semibold;
- color: @text-primary;
- margin: 0 0 @space-2 0;
- }
-
- p {
- margin: 0;
- font-size: @font-size-sm;
- }
-}
-
-.docker-loading {
- text-align: center;
- padding: @space-12;
- color: @text-secondary;
-}
-
-// ============================================
-// LEGACY STYLES (keep for Docker unavailable state)
-// ============================================
-
-.docker-list {
- .flex-column-gap(@space-3);
-}
-
-.docker-item {
- .list-item-base();
-}
-
-.docker-item-info {
- .flex-start();
- gap: @space-4;
- flex: 1;
- min-width: 0;
-}
-
-.docker-item-icon {
- .icon-box();
- background: @bg-hover;
- border-radius: @radius-lg;
- color: @color-docker;
-
- &.image-icon {
- color: #a78bfa; // Purple for images
- }
-
- &.network-icon {
- color: #34d399; // Green for networks
- }
-
- &.volume-icon {
- color: #fbbf24; // Yellow for volumes
- }
-}
-
-.docker-item-details {
- min-width: 0;
-
- h3 {
- font-size: @font-size-base;
- font-weight: @font-weight-semibold;
- color: @text-primary;
- margin-bottom: @space-1;
- .truncate();
- }
-}
-
-.docker-item-meta {
- .flex-start();
- gap: @space-3;
- font-size: @font-size-sm;
- color: @text-tertiary;
- flex-wrap: wrap;
-
- .mono {
- .mono-text();
- background: @bg-hover;
- padding: @space-1 - 2 @space-2 - 2;
- border-radius: @radius-sm;
- }
-}
-
-.docker-item-status {
- flex-shrink: 0;
-}
-
-.docker-item-actions {
- display: flex;
- gap: @space-2;
- flex-shrink: 0;
-}
-
-// Container Exec Modal
-.exec-modal-body {
- display: flex;
- flex-direction: column;
- height: 400px;
-}
-
-.exec-output {
- flex: 1;
- background: @bg-card;
- border: 1px solid @border-subtle;
- border-radius: @radius-md;
- padding: @space-4;
- overflow-y: auto;
- font-family: @font-mono;
- font-size: @font-size-sm;
- margin-bottom: @space-3;
-}
-
-.exec-welcome {
- color: @text-secondary;
- text-align: center;
- padding: @space-8 0;
-
- p {
- margin-bottom: @space-2;
- }
-
- code {
- background: @bg-hover;
- padding: @space-1 @space-2;
- border-radius: @radius-sm;
- color: @accent-primary;
- }
-}
-
-.exec-line {
- margin-bottom: @space-2;
-
- pre {
- margin: 0;
- white-space: pre-wrap;
- word-break: break-all;
- }
-
- &.exec-command {
- color: @accent-primary;
- font-weight: @font-weight-medium;
- }
-
- &.exec-output {
- color: @text-primary;
- }
-
- &.exec-error {
- color: @danger;
- }
-
- &.exec-info {
- color: @text-tertiary;
- font-size: @font-size-xs;
- }
-
- &.exec-loading {
- color: @text-secondary;
- display: flex;
- align-items: center;
- gap: @space-2;
- }
-}
-
-.spinner-inline {
- display: inline-block;
- width: 14px;
- height: 14px;
- border: 2px solid @border-subtle;
- border-top-color: @accent-primary;
- border-radius: 50%;
- animation: spin 0.8s linear infinite;
-}
-
-.exec-input-form {
- display: flex;
- align-items: center;
- gap: @space-2;
- background: @bg-card;
- border: 1px solid @border-subtle;
- border-radius: @radius-md;
- padding: @space-2 @space-3;
-
- &:focus-within {
- border-color: @accent-primary;
- }
-}
-
-.exec-prompt {
- color: @accent-primary;
- font-family: @font-mono;
- font-weight: @font-weight-semibold;
-}
-
-.exec-input {
- flex: 1;
- border: none;
- background: transparent;
- color: @text-primary;
- font-family: @font-mono;
- font-size: @font-size-sm;
- outline: none;
-
- &::placeholder {
- color: @text-tertiary;
- }
-
- &:disabled {
- opacity: 0.5;
- }
-}
-
-// Docker Unavailable State
-.docker-page {
- .page-header {
- margin-bottom: @space-6;
-
- .page-header-content {
- h1 {
- font-size: @font-size-2xl;
- font-weight: @font-weight-semibold;
- margin: 0 0 @space-1 0;
- }
-
- .page-description {
- color: @text-secondary;
- margin: 0;
- }
- }
- }
-}
-
-.docker-unavailable {
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- text-align: center;
- padding: @space-12 @space-6;
- background: @bg-card;
- border: 1px solid @border-subtle;
- border-radius: @radius-xl;
- max-width: 600px;
- margin: 0 auto;
-
- .docker-unavailable-icon {
- width: 100px;
- height: 100px;
- display: flex;
- align-items: center;
- justify-content: center;
- background: fade(@color-docker, 10%);
- border-radius: @radius-xl;
- margin-bottom: @space-6;
-
- svg {
- stroke: @color-docker;
- opacity: 0.6;
- }
- }
-
- h2 {
- font-size: @font-size-xl;
- font-weight: @font-weight-semibold;
- margin: 0 0 @space-2 0;
- color: @text-primary;
- }
-
- .docker-unavailable-message {
- color: @text-secondary;
- font-size: @font-size-base;
- margin: 0 0 @space-4 0;
- }
-
- .docker-unavailable-details {
- width: 100%;
- margin-bottom: @space-6;
-
- code {
- display: block;
- padding: @space-3 @space-4;
- background: @bg-hover;
- border: 1px solid @border-subtle;
- border-radius: @radius-md;
- font-family: @font-mono;
- font-size: @font-size-xs;
- color: @text-tertiary;
- word-break: break-all;
- text-align: left;
- }
- }
-
- .docker-unavailable-help {
- width: 100%;
- padding: @space-5;
- background: @bg-hover;
- border-radius: @radius-lg;
- text-align: left;
- margin-bottom: @space-6;
-
- h4 {
- font-size: @font-size-sm;
- font-weight: @font-weight-semibold;
- margin: 0 0 @space-3 0;
- color: @text-primary;
- }
-
- ul {
- margin: 0;
- padding-left: @space-5;
-
- li {
- font-size: @font-size-sm;
- color: @text-secondary;
- margin-bottom: @space-2;
-
- &:last-child {
- margin-bottom: 0;
- }
- }
- }
- }
-
- .btn {
- display: inline-flex;
- align-items: center;
- gap: @space-2;
-
- svg {
- width: 16px;
- height: 16px;
- }
- }
-}
diff --git a/frontend/src/styles/pages/_docker.scss b/frontend/src/styles/pages/_docker.scss
new file mode 100644
index 00000000..cc9e07d9
--- /dev/null
+++ b/frontend/src/styles/pages/_docker.scss
@@ -0,0 +1,772 @@
+// ============================================
+// DOCKER PAGE - NEW DESIGN
+// ============================================
+
+// Page Layout
+.docker-page-new {
+ padding: 0;
+}
+
+.docker-page-header {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ margin-bottom: $space-6;
+}
+
+.docker-page-title {
+ h2 {
+ font-size: $font-size-xl;
+ font-weight: $font-weight-semibold;
+ color: $text-primary;
+ margin: 0;
+ }
+}
+
+.docker-page-subtitle {
+ color: $text-secondary;
+ font-size: $font-size-sm;
+ margin-top: $space-1;
+}
+
+.docker-page-actions {
+ display: flex;
+ align-items: center;
+ gap: $space-3;
+}
+
+// Server Selector
+.server-selector {
+ display: flex;
+ align-items: center;
+ gap: $space-2;
+ background: $bg-card;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-md;
+ padding: $space-2 $space-3;
+ margin-right: $space-2;
+
+ svg {
+ color: $text-tertiary;
+ flex-shrink: 0;
+ }
+
+ select {
+ background: transparent;
+ border: none;
+ color: $text-primary;
+ font-size: $font-size-sm;
+ cursor: pointer;
+ padding-right: $space-4;
+ min-width: 140px;
+
+ &:focus {
+ outline: none;
+ }
+
+ option {
+ background: $bg-card;
+ color: $text-primary;
+ }
+
+ option:disabled {
+ color: $text-tertiary;
+ }
+ }
+}
+
+// Stats Row
+.docker-stats-row {
+ display: grid;
+ grid-template-columns: repeat(4, 1fr);
+ gap: $space-4;
+ margin-bottom: $space-6;
+
+ @media (max-width: $breakpoint-lg) {
+ grid-template-columns: repeat(2, 1fr);
+ }
+
+ @media (max-width: $breakpoint-sm) {
+ grid-template-columns: 1fr;
+ }
+}
+
+.docker-stat-card {
+ background: $bg-card;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-md;
+ padding: $space-5;
+}
+
+.docker-stat-label {
+ font-size: $font-size-xs;
+ font-weight: $font-weight-semibold;
+ text-transform: uppercase;
+ color: $text-tertiary;
+ margin-bottom: $space-2;
+ letter-spacing: 0.05em;
+}
+
+.docker-stat-value {
+ font-family: $font-mono;
+ font-size: $font-size-2xl;
+ font-weight: $font-weight-bold;
+ color: $text-primary;
+}
+
+.docker-stat-meta {
+ font-size: $font-size-xs;
+ color: $text-tertiary;
+ margin-top: $space-1;
+ display: flex;
+ align-items: center;
+ gap: $space-3;
+}
+
+.docker-stat-running {
+ color: $success;
+
+ &::before {
+ content: '';
+ display: inline-block;
+ width: 6px;
+ height: 6px;
+ background: $success;
+ border-radius: 50%;
+ margin-right: $space-1;
+ }
+}
+
+.docker-stat-stopped {
+ color: $text-tertiary;
+
+ &::before {
+ content: '';
+ display: inline-block;
+ width: 6px;
+ height: 6px;
+ background: $text-tertiary;
+ border-radius: 50%;
+ margin-right: $space-1;
+ }
+}
+
+// Panel
+.docker-panel {
+ background: $bg-card;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-md;
+ overflow: hidden;
+}
+
+.docker-panel-header {
+ padding: $space-4 $space-5;
+ border-bottom: 1px solid $border-subtle;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+}
+
+.docker-panel-tabs {
+ display: flex;
+ gap: $space-6;
+}
+
+.docker-panel-tab {
+ color: $text-tertiary;
+ font-size: $font-size-sm;
+ font-weight: $font-weight-medium;
+ cursor: pointer;
+ padding-bottom: $space-1;
+ border-bottom: 2px solid transparent;
+ transition: all 0.2s;
+
+ &:hover {
+ color: $text-primary;
+ }
+
+ &.active {
+ color: $text-primary;
+ border-color: $accent-primary;
+ }
+}
+
+.docker-panel-actions {
+ display: flex;
+ gap: $space-2;
+}
+
+.docker-panel-content {
+ // Content area - no padding needed, tabs handle their own
+}
+
+// Table Header (filter + search)
+.docker-table-header {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ padding: $space-3 $space-5;
+ border-bottom: 1px solid $border-subtle;
+ background: $bg-hover;
+}
+
+.docker-filter-toggle {
+ display: flex;
+ align-items: center;
+ gap: $space-2;
+ font-size: $font-size-sm;
+ color: $text-secondary;
+ cursor: pointer;
+
+ input[type="checkbox"] {
+ width: 14px;
+ height: 14px;
+ accent-color: $accent-primary;
+ }
+}
+
+.docker-search {
+ background: $bg-card;
+ border: 1px solid $border-subtle;
+ padding: $space-2 $space-3;
+ border-radius: $radius-sm;
+ color: $text-primary;
+ font-size: $font-size-xs;
+ width: 200px;
+
+ &::placeholder {
+ color: $text-tertiary;
+ }
+
+ &:focus {
+ outline: none;
+ border-color: $accent-primary;
+ }
+}
+
+// Docker Table
+.docker-table {
+ width: 100%;
+ border-collapse: collapse;
+ font-size: $font-size-sm;
+
+ th {
+ text-align: left;
+ padding: $space-3 $space-5;
+ background: $bg-hover;
+ color: $text-tertiary;
+ font-size: $font-size-xs;
+ text-transform: uppercase;
+ letter-spacing: 0.05em;
+ font-weight: $font-weight-semibold;
+ }
+
+ td {
+ padding: $space-4 $space-5;
+ border-bottom: 1px solid $border-subtle;
+ vertical-align: middle;
+ }
+
+ tr:hover {
+ background: fade($white, 2%);
+ }
+
+ tr:last-child td {
+ border-bottom: none;
+ }
+}
+
+// Container Name & ID
+.docker-container-name {
+ font-weight: $font-weight-semibold;
+ color: $text-primary;
+ font-size: $font-size-sm;
+ display: block;
+ margin-bottom: $space-1;
+}
+
+.docker-container-id {
+ font-family: $font-mono;
+ color: $accent-primary;
+ font-size: $font-size-xs;
+}
+
+// Image Tag
+.docker-image-tag {
+ font-family: $font-mono;
+ color: $text-secondary;
+ font-size: $font-size-xs;
+ background: $bg-hover;
+ padding: $space-1 $space-2;
+ border-radius: $radius-sm;
+}
+
+// Status Pill
+.docker-status-pill {
+ display: inline-flex;
+ align-items: center;
+ gap: $space-2;
+ font-size: $font-size-xs;
+ font-weight: $font-weight-semibold;
+ padding: $space-1 $space-2;
+ border-radius: $radius-full;
+
+ &.running {
+ background: fade($success, 10%);
+ color: $success;
+ border: 1px solid fade($success, 20%);
+ }
+
+ &.exited {
+ background: fade($danger, 10%);
+ color: $danger;
+ border: 1px solid fade($danger, 20%);
+ }
+}
+
+.docker-status-dot {
+ width: 6px;
+ height: 6px;
+ border-radius: 50%;
+ background: currentColor;
+}
+
+.docker-status-detail {
+ font-size: $font-size-xs;
+ color: $text-tertiary;
+ margin-top: $space-1;
+}
+
+// Ports
+.docker-ports {
+ font-family: $font-mono;
+ color: $text-primary;
+ font-size: $font-size-xs;
+ line-height: 1.6;
+
+ &.faded {
+ opacity: 0.4;
+ }
+}
+
+// Resource Bars
+.docker-res-container {
+ display: flex;
+ align-items: center;
+ gap: $space-2;
+ font-size: $font-size-xs;
+ color: $text-tertiary;
+ margin-bottom: $space-1;
+
+ &:last-child {
+ margin-bottom: 0;
+ }
+}
+
+.docker-res-label {
+ width: 28px;
+ flex-shrink: 0;
+}
+
+.docker-res-track {
+ width: 50px;
+ height: 4px;
+ background: $bg-hover;
+ border-radius: 2px;
+ overflow: hidden;
+}
+
+.docker-res-fill {
+ height: 100%;
+ border-radius: 2px;
+ transition: width 0.3s ease;
+}
+
+.docker-res-value {
+ width: 32px;
+ text-align: right;
+ font-family: $font-mono;
+}
+
+.faded {
+ opacity: 0.3;
+}
+
+// Icon Actions
+.docker-actions-cell {
+ text-align: right;
+ white-space: nowrap;
+}
+
+.docker-icon-action {
+ background: transparent;
+ border: 1px solid transparent;
+ color: $text-tertiary;
+ width: 28px;
+ height: 28px;
+ border-radius: $radius-sm;
+ cursor: pointer;
+ transition: all 0.2s;
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
+ padding: 0;
+
+ &:hover:not(:disabled) {
+ color: $text-primary;
+ background: $bg-hover;
+ border-color: $border-subtle;
+ }
+
+ &:disabled {
+ opacity: 0.5;
+ cursor: not-allowed;
+ }
+
+ svg {
+ width: 14px;
+ height: 14px;
+ }
+}
+
+// Empty & Loading States
+.docker-empty {
+ text-align: center;
+ padding: $space-12;
+ color: $text-secondary;
+
+ h3 {
+ font-size: $font-size-lg;
+ font-weight: $font-weight-semibold;
+ color: $text-primary;
+ margin: 0 0 $space-2 0;
+ }
+
+ p {
+ margin: 0;
+ font-size: $font-size-sm;
+ }
+}
+
+.docker-loading {
+ text-align: center;
+ padding: $space-12;
+ color: $text-secondary;
+}
+
+// ============================================
+// LEGACY STYLES (keep for Docker unavailable state)
+// ============================================
+
+.docker-list {
+ @include flex-column-gap($space-3);
+}
+
+.docker-item {
+ @include list-item-base();
+}
+
+.docker-item-info {
+ @include flex-start();
+ gap: $space-4;
+ flex: 1;
+ min-width: 0;
+}
+
+.docker-item-icon {
+ @include icon-box();
+ background: $bg-hover;
+ border-radius: $radius-lg;
+ color: $color-docker;
+
+ &.image-icon {
+ color: #a78bfa; // Purple for images
+ }
+
+ &.network-icon {
+ color: #34d399; // Green for networks
+ }
+
+ &.volume-icon {
+ color: #fbbf24; // Yellow for volumes
+ }
+}
+
+.docker-item-details {
+ min-width: 0;
+
+ h3 {
+ font-size: $font-size-base;
+ font-weight: $font-weight-semibold;
+ color: $text-primary;
+ margin-bottom: $space-1;
+ @include truncate();
+ }
+}
+
+.docker-item-meta {
+ @include flex-start();
+ gap: $space-3;
+ font-size: $font-size-sm;
+ color: $text-tertiary;
+ flex-wrap: wrap;
+
+ .mono {
+ @include mono-text();
+ background: $bg-hover;
+ padding: $space-1 - 2 $space-2 - 2;
+ border-radius: $radius-sm;
+ }
+}
+
+.docker-item-status {
+ flex-shrink: 0;
+}
+
+.docker-item-actions {
+ display: flex;
+ gap: $space-2;
+ flex-shrink: 0;
+}
+
+// Container Exec Modal
+.exec-modal-body {
+ display: flex;
+ flex-direction: column;
+ height: 400px;
+}
+
+.exec-output {
+ flex: 1;
+ background: $bg-card;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-md;
+ padding: $space-4;
+ overflow-y: auto;
+ font-family: $font-mono;
+ font-size: $font-size-sm;
+ margin-bottom: $space-3;
+}
+
+.exec-welcome {
+ color: $text-secondary;
+ text-align: center;
+ padding: $space-8 0;
+
+ p {
+ margin-bottom: $space-2;
+ }
+
+ code {
+ background: $bg-hover;
+ padding: $space-1 $space-2;
+ border-radius: $radius-sm;
+ color: $accent-primary;
+ }
+}
+
+.exec-line {
+ margin-bottom: $space-2;
+
+ pre {
+ margin: 0;
+ white-space: pre-wrap;
+ word-break: break-all;
+ }
+
+ &.exec-command {
+ color: $accent-primary;
+ font-weight: $font-weight-medium;
+ }
+
+ &.exec-output {
+ color: $text-primary;
+ }
+
+ &.exec-error {
+ color: $danger;
+ }
+
+ &.exec-info {
+ color: $text-tertiary;
+ font-size: $font-size-xs;
+ }
+
+ &.exec-loading {
+ color: $text-secondary;
+ display: flex;
+ align-items: center;
+ gap: $space-2;
+ }
+}
+
+.spinner-inline {
+ display: inline-block;
+ width: 14px;
+ height: 14px;
+ border: 2px solid $border-subtle;
+ border-top-color: $accent-primary;
+ border-radius: 50%;
+ animation: spin 0.8s linear infinite;
+}
+
+.exec-input-form {
+ display: flex;
+ align-items: center;
+ gap: $space-2;
+ background: $bg-card;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-md;
+ padding: $space-2 $space-3;
+
+ &:focus-within {
+ border-color: $accent-primary;
+ }
+}
+
+.exec-prompt {
+ color: $accent-primary;
+ font-family: $font-mono;
+ font-weight: $font-weight-semibold;
+}
+
+.exec-input {
+ flex: 1;
+ border: none;
+ background: transparent;
+ color: $text-primary;
+ font-family: $font-mono;
+ font-size: $font-size-sm;
+ outline: none;
+
+ &::placeholder {
+ color: $text-tertiary;
+ }
+
+ &:disabled {
+ opacity: 0.5;
+ }
+}
+
+// Docker Unavailable State
+.docker-page {
+ .page-header {
+ margin-bottom: $space-6;
+
+ .page-header-content {
+ h1 {
+ font-size: $font-size-2xl;
+ font-weight: $font-weight-semibold;
+ margin: 0 0 $space-1 0;
+ }
+
+ .page-description {
+ color: $text-secondary;
+ margin: 0;
+ }
+ }
+ }
+}
+
+.docker-unavailable {
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
+ text-align: center;
+ padding: $space-12 $space-6;
+ background: $bg-card;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-xl;
+ max-width: 600px;
+ margin: 0 auto;
+
+ .docker-unavailable-icon {
+ width: 100px;
+ height: 100px;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ background: fade($color-docker, 10%);
+ border-radius: $radius-xl;
+ margin-bottom: $space-6;
+
+ svg {
+ stroke: $color-docker;
+ opacity: 0.6;
+ }
+ }
+
+ h2 {
+ font-size: $font-size-xl;
+ font-weight: $font-weight-semibold;
+ margin: 0 0 $space-2 0;
+ color: $text-primary;
+ }
+
+ .docker-unavailable-message {
+ color: $text-secondary;
+ font-size: $font-size-base;
+ margin: 0 0 $space-4 0;
+ }
+
+ .docker-unavailable-details {
+ width: 100%;
+ margin-bottom: $space-6;
+
+ code {
+ display: block;
+ padding: $space-3 $space-4;
+ background: $bg-hover;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-md;
+ font-family: $font-mono;
+ font-size: $font-size-xs;
+ color: $text-tertiary;
+ word-break: break-all;
+ text-align: left;
+ }
+ }
+
+ .docker-unavailable-help {
+ width: 100%;
+ padding: $space-5;
+ background: $bg-hover;
+ border-radius: $radius-lg;
+ text-align: left;
+ margin-bottom: $space-6;
+
+ h4 {
+ font-size: $font-size-sm;
+ font-weight: $font-weight-semibold;
+ margin: 0 0 $space-3 0;
+ color: $text-primary;
+ }
+
+ ul {
+ margin: 0;
+ padding-left: $space-5;
+
+ li {
+ font-size: $font-size-sm;
+ color: $text-secondary;
+ margin-bottom: $space-2;
+
+ &:last-child {
+ margin-bottom: 0;
+ }
+ }
+ }
+ }
+
+ .btn {
+ display: inline-flex;
+ align-items: center;
+ gap: $space-2;
+
+ svg {
+ width: 16px;
+ height: 16px;
+ }
+ }
+}
diff --git a/frontend/src/styles/pages/_domains.less b/frontend/src/styles/pages/_domains.less
deleted file mode 100644
index 9a473f5b..00000000
--- a/frontend/src/styles/pages/_domains.less
+++ /dev/null
@@ -1,228 +0,0 @@
-// ============================================
-// DOMAINS & SSL PAGE
-// ============================================
-
-// SSL Status Bar
-.ssl-status-bar {
- display: flex;
- gap: @space-6;
- margin-bottom: @space-8;
-
- @media (max-width: @breakpoint-md) {
- flex-direction: column;
- }
-}
-
-.ssl-status-item {
- .flex-start();
- gap: @space-4;
- padding: @space-5;
- background: @bg-card;
- border: 1px solid @border-subtle;
- border-radius: @radius-xl;
- flex: 1;
-}
-
-.ssl-status-icon {
- .icon-box(48px);
- border-radius: @radius-xl - 2;
-
- &.active {
- background: @success-bg;
- color: @success;
- }
-
- &.inactive {
- background: @danger-bg;
- color: @danger;
- }
-}
-
-.ssl-status-info {
- h4 {
- font-size: @font-size-md;
- font-weight: @font-weight-semibold;
- margin-bottom: @space-1;
- }
-
- span {
- font-size: @font-size-sm + 1;
- color: @text-secondary;
- }
-}
-
-// Domain List
-.domain-list {
- .flex-column-gap(@space-3);
-}
-
-.domain-item {
- .list-item-base();
-}
-
-.domain-item-info {
- .flex-start();
- gap: @space-4;
- flex: 1;
- min-width: 0;
-}
-
-.domain-item-icon {
- .icon-box();
- background: @bg-hover;
- border-radius: @radius-lg;
- color: @text-secondary;
-
- &.ssl {
- background: @success-bg;
- color: @success;
- }
-}
-
-.domain-item-details {
- min-width: 0;
-
- h3 {
- font-size: @font-size-base;
- font-weight: @font-weight-semibold;
- color: @text-primary;
- margin-bottom: @space-1;
- .flex-start();
- gap: @space-2;
- }
-}
-
-.primary-badge {
- background: @accent-glow;
- color: @accent-primary;
- padding: @space-1 - 2 @space-2;
- border-radius: @radius-sm;
- font-size: @font-size-xs;
- font-weight: @font-weight-semibold;
- text-transform: uppercase;
-}
-
-.domain-item-meta {
- .flex-start();
- gap: @space-4;
- font-size: @font-size-sm;
- color: @text-tertiary;
-
- span {
- .flex-start();
- gap: @space-1;
- }
-}
-
-.app-link {
- color: @text-secondary;
-}
-
-.ssl-badge {
- color: @success;
-}
-
-.domain-item-actions {
- display: flex;
- gap: @space-2;
- flex-shrink: 0;
- flex-wrap: wrap;
-}
-
-// Certificate List
-.cert-list {
- .flex-column-gap(@space-3);
-}
-
-.cert-item {
- .list-item-base();
-}
-
-.cert-item-info {
- .flex-start();
- gap: @space-4;
- flex: 1;
- min-width: 0;
-}
-
-.cert-item-icon {
- .icon-box();
- background: @success-bg;
- border-radius: @radius-lg;
- color: @success;
-}
-
-.cert-item-details {
- min-width: 0;
-
- h3 {
- font-size: @font-size-base;
- font-weight: @font-weight-semibold;
- color: @text-primary;
- margin-bottom: @space-1;
- }
-}
-
-.cert-item-meta {
- .flex-start();
- gap: @space-4;
- font-size: @font-size-sm;
- color: @text-tertiary;
-
- span {
- .flex-start();
- gap: @space-1;
-
- &.valid {
- color: @success;
- }
-
- &.expiring {
- color: @warning;
- }
- }
-}
-
-.cert-status {
- flex-shrink: 0;
-}
-
-// SSL Info Box (in modal)
-.ssl-info-box {
- .flex-start();
- gap: @space-4;
- padding: @space-5;
- background: @success-bg;
- border: 1px solid @success-border;
- border-radius: @radius-lg;
- margin-bottom: @space-5;
- color: @success;
-
- h4 {
- font-size: @font-size-base;
- font-weight: @font-weight-semibold;
- margin-bottom: @space-1;
- }
-
- p {
- font-size: @font-size-sm;
- color: @text-secondary;
-
- strong {
- color: @text-primary;
- }
- }
-}
-
-// Checkbox label
-.checkbox-label {
- .flex-start();
- gap: @space-2;
- cursor: pointer;
-
- input[type="checkbox"] {
- width: 16px;
- height: 16px;
- accent-color: @accent-primary;
- }
-}
diff --git a/frontend/src/styles/pages/_domains.scss b/frontend/src/styles/pages/_domains.scss
new file mode 100644
index 00000000..a77a54fb
--- /dev/null
+++ b/frontend/src/styles/pages/_domains.scss
@@ -0,0 +1,228 @@
+// ============================================
+// DOMAINS & SSL PAGE
+// ============================================
+
+// SSL Status Bar
+.ssl-status-bar {
+ display: flex;
+ gap: $space-6;
+ margin-bottom: $space-8;
+
+ @media (max-width: $breakpoint-md) {
+ flex-direction: column;
+ }
+}
+
+.ssl-status-item {
+ @include flex-start();
+ gap: $space-4;
+ padding: $space-5;
+ background: $bg-card;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-xl;
+ flex: 1;
+}
+
+.ssl-status-icon {
+ @include icon-box(48px);
+ border-radius: $radius-xl - 2;
+
+ &.active {
+ background: $success-bg;
+ color: $success;
+ }
+
+ &.inactive {
+ background: $danger-bg;
+ color: $danger;
+ }
+}
+
+.ssl-status-info {
+ h4 {
+ font-size: $font-size-md;
+ font-weight: $font-weight-semibold;
+ margin-bottom: $space-1;
+ }
+
+ span {
+ font-size: $font-size-sm + 1;
+ color: $text-secondary;
+ }
+}
+
+// Domain List
+.domain-list {
+ @include flex-column-gap($space-3);
+}
+
+.domain-item {
+ @include list-item-base();
+}
+
+.domain-item-info {
+ @include flex-start();
+ gap: $space-4;
+ flex: 1;
+ min-width: 0;
+}
+
+.domain-item-icon {
+ @include icon-box();
+ background: $bg-hover;
+ border-radius: $radius-lg;
+ color: $text-secondary;
+
+ &.ssl {
+ background: $success-bg;
+ color: $success;
+ }
+}
+
+.domain-item-details {
+ min-width: 0;
+
+ h3 {
+ font-size: $font-size-base;
+ font-weight: $font-weight-semibold;
+ color: $text-primary;
+ margin-bottom: $space-1;
+ @include flex-start();
+ gap: $space-2;
+ }
+}
+
+.primary-badge {
+ background: $accent-glow;
+ color: $accent-primary;
+ padding: $space-1 - 2 $space-2;
+ border-radius: $radius-sm;
+ font-size: $font-size-xs;
+ font-weight: $font-weight-semibold;
+ text-transform: uppercase;
+}
+
+.domain-item-meta {
+ @include flex-start();
+ gap: $space-4;
+ font-size: $font-size-sm;
+ color: $text-tertiary;
+
+ span {
+ @include flex-start();
+ gap: $space-1;
+ }
+}
+
+.app-link {
+ color: $text-secondary;
+}
+
+.ssl-badge {
+ color: $success;
+}
+
+.domain-item-actions {
+ display: flex;
+ gap: $space-2;
+ flex-shrink: 0;
+ flex-wrap: wrap;
+}
+
+// Certificate List
+.cert-list {
+ @include flex-column-gap($space-3);
+}
+
+.cert-item {
+ @include list-item-base();
+}
+
+.cert-item-info {
+ @include flex-start();
+ gap: $space-4;
+ flex: 1;
+ min-width: 0;
+}
+
+.cert-item-icon {
+ @include icon-box();
+ background: $success-bg;
+ border-radius: $radius-lg;
+ color: $success;
+}
+
+.cert-item-details {
+ min-width: 0;
+
+ h3 {
+ font-size: $font-size-base;
+ font-weight: $font-weight-semibold;
+ color: $text-primary;
+ margin-bottom: $space-1;
+ }
+}
+
+.cert-item-meta {
+ @include flex-start();
+ gap: $space-4;
+ font-size: $font-size-sm;
+ color: $text-tertiary;
+
+ span {
+ @include flex-start();
+ gap: $space-1;
+
+ &.valid {
+ color: $success;
+ }
+
+ &.expiring {
+ color: $warning;
+ }
+ }
+}
+
+.cert-status {
+ flex-shrink: 0;
+}
+
+// SSL Info Box (in modal)
+.ssl-info-box {
+ @include flex-start();
+ gap: $space-4;
+ padding: $space-5;
+ background: $success-bg;
+ border: 1px solid $success-border;
+ border-radius: $radius-lg;
+ margin-bottom: $space-5;
+ color: $success;
+
+ h4 {
+ font-size: $font-size-base;
+ font-weight: $font-weight-semibold;
+ margin-bottom: $space-1;
+ }
+
+ p {
+ font-size: $font-size-sm;
+ color: $text-secondary;
+
+ strong {
+ color: $text-primary;
+ }
+ }
+}
+
+// Checkbox label
+.checkbox-label {
+ @include flex-start();
+ gap: $space-2;
+ cursor: pointer;
+
+ input[type="checkbox"] {
+ width: 16px;
+ height: 16px;
+ accent-color: $accent-primary;
+ }
+}
diff --git a/frontend/src/styles/pages/_downloads.less b/frontend/src/styles/pages/_downloads.scss
similarity index 55%
rename from frontend/src/styles/pages/_downloads.less
rename to frontend/src/styles/pages/_downloads.scss
index 9fea4bad..8608d02a 100644
--- a/frontend/src/styles/pages/_downloads.less
+++ b/frontend/src/styles/pages/_downloads.scss
@@ -7,16 +7,16 @@
display: flex;
justify-content: space-between;
align-items: flex-start;
- margin-bottom: @space-6;
+ margin-bottom: $space-6;
.page-header-content {
h1 {
- margin-bottom: @space-2;
+ margin-bottom: $space-2;
}
.page-subtitle {
- color: @text-secondary;
- font-size: @font-size-base;
+ color: $text-secondary;
+ font-size: $font-size-base;
max-width: 600px;
}
}
@@ -27,47 +27,47 @@
flex-direction: column;
align-items: center;
justify-content: center;
- padding: @space-12;
- color: @text-secondary;
+ padding: $space-12;
+ color: $text-secondary;
.loading-spinner {
width: 40px;
height: 40px;
- border: 3px solid @border-default;
- border-top-color: @accent-primary;
+ border: 3px solid $border-default;
+ border-top-color: $accent-primary;
border-radius: 50%;
animation: spin 1s linear infinite;
- margin-bottom: @space-4;
+ margin-bottom: $space-4;
}
}
.alert-error {
- background: @danger-bg;
- border: 1px solid @danger-border;
- border-radius: @radius-lg;
- padding: @space-4;
- margin-bottom: @space-6;
+ background: $danger-bg;
+ border: 1px solid $danger-border;
+ border-radius: $radius-lg;
+ padding: $space-4;
+ margin-bottom: $space-6;
display: flex;
align-items: center;
justify-content: space-between;
p {
- color: @danger;
+ color: $danger;
margin: 0;
}
button {
background: transparent;
- border: 1px solid @danger;
- color: @danger;
- padding: @space-2 @space-4;
- border-radius: @radius-md;
+ border: 1px solid $danger;
+ color: $danger;
+ padding: $space-2 $space-4;
+ border-radius: $radius-md;
cursor: pointer;
transition: all 0.2s;
&:hover {
- background: @danger;
- color: @white;
+ background: $danger;
+ color: $white;
}
}
}
@@ -75,40 +75,40 @@
// Version Banner
.version-banner {
background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-hover) 100%);
- border-radius: @radius-lg;
- padding: @space-6 @space-8;
- margin-bottom: @space-8;
+ border-radius: $radius-lg;
+ padding: $space-6 $space-8;
+ margin-bottom: $space-8;
display: flex;
justify-content: space-between;
align-items: center;
- color: @white;
+ color: $white;
- @media (max-width: @breakpoint-md) {
+ @media (max-width: $breakpoint-md) {
flex-direction: column;
align-items: flex-start;
- gap: @space-4;
- padding: @space-5;
+ gap: $space-4;
+ padding: $space-5;
}
.version-info {
display: flex;
flex-direction: column;
- gap: @space-1;
+ gap: $space-1;
.version-label {
- font-size: @font-size-sm;
+ font-size: $font-size-sm;
opacity: 0.8;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.version-number {
- font-size: @font-size-3xl;
+ font-size: $font-size-3xl;
font-weight: 700;
}
.version-date {
- font-size: @font-size-sm;
+ font-size: $font-size-sm;
opacity: 0.75;
}
}
@@ -116,16 +116,16 @@
.version-actions {
display: flex;
align-items: center;
- gap: @space-3;
+ gap: $space-3;
}
.btn-banner-outline {
background: transparent;
border: 1px solid rgba(255, 255, 255, 0.4);
- color: @white;
- padding: @space-2 @space-4;
- border-radius: @radius-md;
- font-size: @font-size-sm;
+ color: $white;
+ padding: $space-2 $space-4;
+ border-radius: $radius-md;
+ font-size: $font-size-sm;
cursor: pointer;
transition: all 0.2s;
@@ -136,17 +136,17 @@
}
.btn-banner-primary {
- background: @white;
- color: @accent-primary;
+ background: $white;
+ color: $accent-primary;
border: none;
- padding: @space-2 @space-5;
- border-radius: @radius-md;
- font-size: @font-size-sm;
+ padding: $space-2 $space-5;
+ border-radius: $radius-md;
+ font-size: $font-size-sm;
font-weight: 600;
cursor: pointer;
display: flex;
align-items: center;
- gap: @space-2;
+ gap: $space-2;
transition: all 0.2s;
svg {
@@ -163,24 +163,24 @@
// Sections
.downloads-section {
- margin-bottom: @space-10;
+ margin-bottom: $space-10;
h2 {
- font-size: @font-size-xl;
+ font-size: $font-size-xl;
font-weight: 600;
- margin-bottom: @space-2;
+ margin-bottom: $space-2;
}
.section-description {
- color: @text-secondary;
- margin-bottom: @space-6;
+ color: $text-secondary;
+ margin-bottom: $space-6;
code {
- background: @bg-secondary;
- padding: @space-1 @space-2;
- border-radius: @radius-sm;
- font-family: @font-mono;
- font-size: @font-size-sm;
+ background: $bg-secondary;
+ padding: $space-1 $space-2;
+ border-radius: $radius-sm;
+ font-family: $font-mono;
+ font-size: $font-size-sm;
}
}
}
@@ -189,31 +189,31 @@
.download-cards {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
- gap: @space-4;
+ gap: $space-4;
}
.download-card {
- background: @bg-card;
- border: 1px solid @border-default;
- border-radius: @radius-lg;
- padding: @space-6;
+ background: $bg-card;
+ border: 1px solid $border-default;
+ border-radius: $radius-lg;
+ padding: $space-6;
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
- gap: @space-3;
+ gap: $space-3;
transition: all 0.2s;
&:hover {
- border-color: @accent-primary;
- box-shadow: 0 0 0 1px @accent-primary;
+ border-color: $accent-primary;
+ box-shadow: 0 0 0 1px $accent-primary;
}
&.unavailable {
opacity: 0.5;
&:hover {
- border-color: @border-default;
+ border-color: $border-default;
box-shadow: none;
}
}
@@ -224,27 +224,27 @@
display: flex;
align-items: center;
justify-content: center;
- background: @bg-elevated;
- border-radius: @radius-lg;
- margin-bottom: @space-1;
+ background: $bg-elevated;
+ border-radius: $radius-lg;
+ margin-bottom: $space-1;
.platform-icon {
width: 32px;
height: 32px;
- color: @text-primary;
+ color: $text-primary;
}
}
.platform-info {
h3 {
- font-size: @font-size-lg;
+ font-size: $font-size-lg;
font-weight: 600;
- margin: 0 0 @space-1;
+ margin: 0 0 $space-1;
}
.platform-arch {
- font-size: @font-size-sm;
- color: @text-secondary;
+ font-size: $font-size-sm;
+ color: $text-secondary;
}
}
@@ -252,7 +252,7 @@
display: flex;
align-items: center;
justify-content: center;
- gap: @space-2;
+ gap: $space-2;
width: 100%;
margin-top: auto;
@@ -267,31 +267,31 @@
.install-commands {
display: flex;
flex-direction: column;
- gap: @space-4;
+ gap: $space-4;
}
.command-block {
- background: @bg-card;
- border: 1px solid @border-default;
- border-radius: @radius-lg;
+ background: $bg-card;
+ border: 1px solid $border-default;
+ border-radius: $radius-lg;
overflow: hidden;
.command-header {
display: flex;
align-items: center;
- gap: @space-3;
- padding: @space-4;
- border-bottom: 1px solid @border-default;
- background: @bg-elevated;
+ gap: $space-3;
+ padding: $space-4;
+ border-bottom: 1px solid $border-default;
+ background: $bg-elevated;
.platform-icon {
width: 24px;
height: 24px;
- color: @text-primary;
+ color: $text-primary;
}
h3 {
- font-size: @font-size-base;
+ font-size: $font-size-base;
font-weight: 600;
margin: 0;
}
@@ -299,8 +299,8 @@
.command-content {
position: relative;
- padding: @space-4;
- background: @bg-body;
+ padding: $space-4;
+ background: $bg-body;
pre {
margin: 0;
@@ -309,9 +309,9 @@
overflow-x: auto;
code {
- font-family: @font-mono;
- font-size: @font-size-sm;
- color: @text-primary;
+ font-family: $font-mono;
+ font-size: $font-size-sm;
+ color: $text-primary;
white-space: pre-wrap;
word-break: break-all;
}
@@ -319,20 +319,20 @@
.copy-btn {
position: absolute;
- top: @space-3;
- right: @space-3;
- background: @bg-secondary;
- border: 1px solid @border-default;
- border-radius: @radius-md;
- padding: @space-2;
+ top: $space-3;
+ right: $space-3;
+ background: $bg-secondary;
+ border: 1px solid $border-default;
+ border-radius: $radius-md;
+ padding: $space-2;
cursor: pointer;
- color: @text-secondary;
+ color: $text-secondary;
transition: all 0.2s;
&:hover {
- background: @bg-hover;
- color: @text-primary;
- border-color: @accent-primary;
+ background: $bg-hover;
+ color: $text-primary;
+ border-color: $accent-primary;
}
svg {
@@ -343,12 +343,12 @@
}
.command-note {
- padding: @space-3 @space-4;
- background: @warning-bg;
- color: @warning;
- font-size: @font-size-sm;
+ padding: $space-3 $space-4;
+ background: $warning-bg;
+ color: $warning;
+ font-size: $font-size-sm;
margin: 0;
- border-top: 1px solid @warning-border;
+ border-top: 1px solid $warning-border;
}
}
@@ -356,78 +356,78 @@
.manual-steps {
display: flex;
flex-direction: column;
- gap: @space-4;
+ gap: $space-4;
}
.step {
display: flex;
- gap: @space-4;
- padding: @space-4;
- background: @bg-card;
- border: 1px solid @border-default;
- border-radius: @radius-lg;
+ gap: $space-4;
+ padding: $space-4;
+ background: $bg-card;
+ border: 1px solid $border-default;
+ border-radius: $radius-lg;
.step-number {
flex-shrink: 0;
width: 32px;
height: 32px;
- background: @accent-primary;
+ background: $accent-primary;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-weight: 600;
- font-size: @font-size-sm;
- color: @white;
+ font-size: $font-size-sm;
+ color: $white;
}
.step-content {
flex: 1;
h4 {
- font-size: @font-size-base;
+ font-size: $font-size-base;
font-weight: 600;
- margin: 0 0 @space-2;
+ margin: 0 0 $space-2;
}
p {
- color: @text-secondary;
- margin: 0 0 @space-2;
- font-size: @font-size-sm;
+ color: $text-secondary;
+ margin: 0 0 $space-2;
+ font-size: $font-size-sm;
&:last-child {
margin-bottom: 0;
}
code {
- background: @bg-secondary;
- padding: @space-1 @space-2;
- border-radius: @radius-sm;
- font-family: @font-mono;
- font-size: @font-size-xs;
- color: @text-primary;
+ background: $bg-secondary;
+ padding: $space-1 $space-2;
+ border-radius: $radius-sm;
+ font-family: $font-mono;
+ font-size: $font-size-xs;
+ color: $text-primary;
}
}
pre {
- background: @bg-body;
- padding: @space-3;
- border-radius: @radius-md;
- margin: @space-2 0;
+ background: $bg-body;
+ padding: $space-3;
+ border-radius: $radius-md;
+ margin: $space-2 0;
overflow-x: auto;
code {
- font-family: @font-mono;
- font-size: @font-size-sm;
- color: @text-primary;
+ font-family: $font-mono;
+ font-size: $font-size-sm;
+ color: $text-primary;
background: transparent;
padding: 0;
}
}
.step-note {
- color: @text-tertiary;
- font-size: @font-size-xs;
+ color: $text-tertiary;
+ font-size: $font-size-xs;
font-style: italic;
}
}
@@ -435,19 +435,19 @@
// Verification
.verification-command {
- margin-top: @space-4;
+ margin-top: $space-4;
pre {
- background: @bg-card;
- border: 1px solid @border-default;
- padding: @space-4;
- border-radius: @radius-lg;
+ background: $bg-card;
+ border: 1px solid $border-default;
+ padding: $space-4;
+ border-radius: $radius-lg;
margin: 0;
code {
- font-family: @font-mono;
- font-size: @font-size-sm;
- color: @text-primary;
+ font-family: $font-mono;
+ font-size: $font-size-sm;
+ color: $text-primary;
}
}
}
diff --git a/frontend/src/styles/pages/_email.less b/frontend/src/styles/pages/_email.scss
similarity index 51%
rename from frontend/src/styles/pages/_email.less
rename to frontend/src/styles/pages/_email.scss
index 7fb1e11d..45fbcefa 100644
--- a/frontend/src/styles/pages/_email.less
+++ b/frontend/src/styles/pages/_email.scss
@@ -7,26 +7,26 @@
display: flex;
justify-content: space-between;
align-items: flex-start;
- margin-bottom: @space-6;
+ margin-bottom: $space-6;
flex-wrap: wrap;
- gap: @space-4;
+ gap: $space-4;
.page-header-content {
h1 {
font-size: 24px;
- font-weight: @font-weight-semibold;
+ font-weight: $font-weight-semibold;
margin: 0 0 4px 0;
}
.page-description {
- color: @text-secondary;
+ color: $text-secondary;
margin: 0;
}
}
.page-header-actions {
display: flex;
- gap: @space-2;
+ gap: $space-2;
}
}
@@ -39,30 +39,30 @@
.tab-navigation {
display: flex;
- gap: @space-2;
- margin-bottom: @space-6;
- border-bottom: 1px solid @border-subtle;
- padding-bottom: @space-2;
+ gap: $space-2;
+ margin-bottom: $space-6;
+ border-bottom: 1px solid $border-subtle;
+ padding-bottom: $space-2;
overflow-x: auto;
.tab-button {
- padding: @space-2 @space-4;
+ padding: $space-2 $space-4;
border: none;
background: none;
- color: @text-secondary;
+ color: $text-secondary;
cursor: pointer;
- border-radius: @radius-md;
+ border-radius: $radius-md;
white-space: nowrap;
- font-size: @font-size-sm;
+ font-size: $font-size-sm;
transition: all 0.2s;
&:hover {
- background: @bg-hover;
- color: @text-primary;
+ background: $bg-hover;
+ color: $text-primary;
}
&.active {
- background: @accent-primary;
+ background: $accent-primary;
color: white;
}
}
@@ -74,31 +74,31 @@
flex-direction: column;
align-items: center;
justify-content: center;
- padding: 80px @space-6;
- background: @bg-card;
- border-radius: @radius-lg;
+ padding: 80px $space-6;
+ background: $bg-card;
+ border-radius: $radius-lg;
text-align: center;
.icon {
font-size: 64px;
- color: @text-tertiary;
- margin-bottom: @space-4;
+ color: $text-tertiary;
+ margin-bottom: $space-4;
}
h2 {
- margin: 0 0 @space-2 0;
+ margin: 0 0 $space-2 0;
}
p {
- color: @text-secondary;
- margin: 0 0 @space-6 0;
+ color: $text-secondary;
+ margin: 0 0 $space-6 0;
max-width: 480px;
}
.install-form {
display: flex;
flex-direction: column;
- gap: @space-4;
+ gap: $space-4;
align-items: center;
width: 100%;
max-width: 400px;
@@ -109,17 +109,17 @@
display: flex;
justify-content: space-between;
align-items: center;
- margin-bottom: @space-4;
+ margin-bottom: $space-4;
h2 {
margin: 0;
- font-size: @font-size-lg;
- font-weight: @font-weight-semibold;
+ font-size: $font-size-lg;
+ font-weight: $font-weight-semibold;
}
.section-actions {
display: flex;
- gap: @space-2;
+ gap: $space-2;
}
}
}
@@ -130,54 +130,54 @@
.status-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
- gap: @space-4;
- margin-bottom: @space-6;
+ gap: $space-4;
+ margin-bottom: $space-6;
}
}
.email-service-card {
- background: @bg-card;
- border-radius: @radius-lg;
- border: 1px solid @border-subtle;
- padding: @space-5;
+ background: $bg-card;
+ border-radius: $radius-lg;
+ border: 1px solid $border-subtle;
+ padding: $space-5;
}
.email-service-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
- gap: @space-4;
+ gap: $space-4;
h3 {
- margin: 0 0 @space-1 0;
- font-size: @font-size-md;
- font-weight: @font-weight-semibold;
+ margin: 0 0 $space-1 0;
+ font-size: $font-size-md;
+ font-weight: $font-weight-semibold;
}
.version {
- font-size: @font-size-xs;
- color: @text-tertiary;
+ font-size: $font-size-xs;
+ color: $text-tertiary;
}
}
.email-service-meta {
- margin-top: @space-3;
- font-size: @font-size-sm;
- color: @text-secondary;
+ margin-top: $space-3;
+ font-size: $font-size-sm;
+ color: $text-secondary;
.meta-item {
display: flex;
justify-content: space-between;
- padding: @space-1 0;
+ padding: $space-1 0;
}
}
.email-service-actions {
display: flex;
- gap: @space-2;
- margin-top: @space-4;
- padding-top: @space-4;
- border-top: 1px solid @border-subtle;
+ gap: $space-2;
+ margin-top: $space-4;
+ padding-top: $space-4;
+ border-top: 1px solid $border-subtle;
}
// ── Domains Tab ──
@@ -186,75 +186,75 @@
.domain-list {
display: flex;
flex-direction: column;
- gap: @space-4;
+ gap: $space-4;
}
}
.domain-card {
- background: @bg-card;
- border-radius: @radius-lg;
- border: 1px solid @border-subtle;
- padding: @space-5;
+ background: $bg-card;
+ border-radius: $radius-lg;
+ border: 1px solid $border-subtle;
+ padding: $space-5;
.domain-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
- margin-bottom: @space-3;
+ margin-bottom: $space-3;
h3 {
margin: 0;
- font-size: @font-size-md;
+ font-size: $font-size-md;
}
}
.domain-stats {
display: flex;
- gap: @space-6;
- margin-bottom: @space-3;
- font-size: @font-size-sm;
- color: @text-secondary;
+ gap: $space-6;
+ margin-bottom: $space-3;
+ font-size: $font-size-sm;
+ color: $text-secondary;
span {
display: flex;
align-items: center;
- gap: @space-1;
+ gap: $space-1;
}
}
.domain-dns {
display: flex;
- gap: @space-2;
+ gap: $space-2;
flex-wrap: wrap;
- margin-bottom: @space-3;
+ margin-bottom: $space-3;
.dns-badge {
- font-size: @font-size-xs;
- padding: 2px @space-2;
- border-radius: @radius-sm;
- background: @bg-elevated;
- border: 1px solid @border-subtle;
- color: @text-secondary;
+ font-size: $font-size-xs;
+ padding: 2px $space-2;
+ border-radius: $radius-sm;
+ background: $bg-elevated;
+ border: 1px solid $border-subtle;
+ color: $text-secondary;
&.verified {
- background: @bg-elevated;
- border-color: @success;
- color: @success;
+ background: $bg-elevated;
+ border-color: $success;
+ color: $success;
}
&.missing {
- background: @bg-elevated;
- border-color: @danger;
- color: @danger;
+ background: $bg-elevated;
+ border-color: $danger;
+ color: $danger;
}
}
}
.domain-actions {
display: flex;
- gap: @space-2;
- padding-top: @space-3;
- border-top: 1px solid @border-subtle;
+ gap: $space-2;
+ padding-top: $space-3;
+ border-top: 1px solid $border-subtle;
}
}
@@ -262,72 +262,72 @@
.email-accounts {
.domain-selector {
- margin-bottom: @space-4;
+ margin-bottom: $space-4;
}
.accounts-list {
display: flex;
flex-direction: column;
- gap: @space-3;
+ gap: $space-3;
}
}
.account-card {
- background: @bg-card;
- border-radius: @radius-md;
- border: 1px solid @border-subtle;
- padding: @space-4;
+ background: $bg-card;
+ border-radius: $radius-md;
+ border: 1px solid $border-subtle;
+ padding: $space-4;
display: flex;
justify-content: space-between;
align-items: center;
- gap: @space-4;
+ gap: $space-4;
flex-wrap: wrap;
.account-info {
.account-email {
- font-weight: @font-weight-medium;
- margin-bottom: @space-1;
+ font-weight: $font-weight-medium;
+ margin-bottom: $space-1;
}
.account-meta {
- font-size: @font-size-sm;
- color: @text-secondary;
+ font-size: $font-size-sm;
+ color: $text-secondary;
display: flex;
- gap: @space-4;
+ gap: $space-4;
}
}
.account-actions {
display: flex;
- gap: @space-2;
+ gap: $space-2;
}
}
// ── Form styles ──
.email-form {
- background: @bg-card;
- border-radius: @radius-lg;
- border: 1px solid @border-subtle;
- padding: @space-5;
- margin-bottom: @space-4;
+ background: $bg-card;
+ border-radius: $radius-lg;
+ border: 1px solid $border-subtle;
+ padding: $space-5;
+ margin-bottom: $space-4;
.form-title {
- font-size: @font-size-md;
- font-weight: @font-weight-semibold;
- margin: 0 0 @space-4 0;
+ font-size: $font-size-md;
+ font-weight: $font-weight-semibold;
+ margin: 0 0 $space-4 0;
}
.form-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
- gap: @space-4;
- margin-bottom: @space-4;
+ gap: $space-4;
+ margin-bottom: $space-4;
}
.form-actions {
display: flex;
- gap: @space-2;
+ gap: $space-2;
justify-content: flex-end;
}
}
@@ -339,44 +339,44 @@
.items-list {
display: flex;
flex-direction: column;
- gap: @space-3;
+ gap: $space-3;
}
}
.alias-card,
.forwarding-card {
- background: @bg-card;
- border-radius: @radius-md;
- border: 1px solid @border-subtle;
- padding: @space-4;
+ background: $bg-card;
+ border-radius: $radius-md;
+ border: 1px solid $border-subtle;
+ padding: $space-4;
display: flex;
justify-content: space-between;
align-items: center;
- gap: @space-4;
+ gap: $space-4;
flex-wrap: wrap;
.item-info {
.item-mapping {
- font-weight: @font-weight-medium;
- margin-bottom: @space-1;
+ font-weight: $font-weight-medium;
+ margin-bottom: $space-1;
display: flex;
align-items: center;
- gap: @space-2;
+ gap: $space-2;
.arrow {
- color: @text-tertiary;
+ color: $text-tertiary;
}
}
.item-meta {
- font-size: @font-size-sm;
- color: @text-secondary;
+ font-size: $font-size-sm;
+ color: $text-secondary;
}
}
.item-actions {
display: flex;
- gap: @space-2;
+ gap: $space-2;
}
}
@@ -386,70 +386,70 @@
.provider-list {
display: flex;
flex-direction: column;
- gap: @space-4;
+ gap: $space-4;
}
}
.provider-card {
- background: @bg-card;
- border-radius: @radius-lg;
- border: 1px solid @border-subtle;
- padding: @space-5;
+ background: $bg-card;
+ border-radius: $radius-lg;
+ border: 1px solid $border-subtle;
+ padding: $space-5;
.provider-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
- margin-bottom: @space-3;
+ margin-bottom: $space-3;
h3 {
margin: 0;
- font-size: @font-size-md;
+ font-size: $font-size-md;
}
.provider-type {
- font-size: @font-size-xs;
- padding: 2px @space-2;
- border-radius: @radius-sm;
- background: @bg-elevated;
+ font-size: $font-size-xs;
+ padding: 2px $space-2;
+ border-radius: $radius-sm;
+ background: $bg-elevated;
text-transform: uppercase;
letter-spacing: 0.5px;
}
}
.provider-meta {
- font-size: @font-size-sm;
- color: @text-secondary;
- margin-bottom: @space-3;
+ font-size: $font-size-sm;
+ color: $text-secondary;
+ margin-bottom: $space-3;
.meta-row {
display: flex;
- gap: @space-4;
- padding: @space-1 0;
+ gap: $space-4;
+ padding: $space-1 0;
}
}
.provider-actions {
display: flex;
- gap: @space-2;
- padding-top: @space-3;
- border-top: 1px solid @border-subtle;
+ gap: $space-2;
+ padding-top: $space-3;
+ border-top: 1px solid $border-subtle;
}
.zones-list {
- margin-top: @space-3;
- padding: @space-3;
- background: @bg-elevated;
- border-radius: @radius-md;
- font-size: @font-size-sm;
+ margin-top: $space-3;
+ padding: $space-3;
+ background: $bg-elevated;
+ border-radius: $radius-md;
+ font-size: $font-size-sm;
.zone-item {
display: flex;
justify-content: space-between;
- padding: @space-1 0;
+ padding: $space-1 0;
&:not(:last-child) {
- border-bottom: 1px solid @border-subtle;
+ border-bottom: 1px solid $border-subtle;
}
}
}
@@ -459,26 +459,26 @@
.email-spam {
.spam-config {
- background: @bg-card;
- border-radius: @radius-lg;
- border: 1px solid @border-subtle;
- padding: @space-5;
+ background: $bg-card;
+ border-radius: $radius-lg;
+ border: 1px solid $border-subtle;
+ padding: $space-5;
}
.form-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
- gap: @space-4;
- margin-bottom: @space-4;
+ gap: $space-4;
+ margin-bottom: $space-4;
}
.checkbox-field {
display: flex;
align-items: center;
- gap: @space-2;
+ gap: $space-2;
label {
- font-size: @font-size-sm;
+ font-size: $font-size-sm;
}
}
}
@@ -487,35 +487,35 @@
.email-webmail {
.webmail-card {
- background: @bg-card;
- border-radius: @radius-lg;
- border: 1px solid @border-subtle;
- padding: @space-5;
+ background: $bg-card;
+ border-radius: $radius-lg;
+ border: 1px solid $border-subtle;
+ padding: $space-5;
.webmail-status-row {
display: flex;
justify-content: space-between;
align-items: center;
- margin-bottom: @space-4;
+ margin-bottom: $space-4;
}
.webmail-info {
- font-size: @font-size-sm;
- color: @text-secondary;
- margin-bottom: @space-4;
+ font-size: $font-size-sm;
+ color: $text-secondary;
+ margin-bottom: $space-4;
}
.webmail-actions {
display: flex;
- gap: @space-2;
+ gap: $space-2;
flex-wrap: wrap;
}
}
.proxy-form {
- margin-top: @space-4;
- padding-top: @space-4;
- border-top: 1px solid @border-subtle;
+ margin-top: $space-4;
+ padding-top: $space-4;
+ border-top: 1px solid $border-subtle;
}
}
@@ -525,42 +525,42 @@
.queue-list {
display: flex;
flex-direction: column;
- gap: @space-3;
+ gap: $space-3;
}
}
.queue-item {
- background: @bg-card;
- border-radius: @radius-md;
- border: 1px solid @border-subtle;
- padding: @space-4;
+ background: $bg-card;
+ border-radius: $radius-md;
+ border: 1px solid $border-subtle;
+ padding: $space-4;
display: flex;
justify-content: space-between;
align-items: flex-start;
- gap: @space-4;
+ gap: $space-4;
.queue-info {
flex: 1;
.queue-id {
- font-family: @font-mono;
- font-size: @font-size-sm;
- font-weight: @font-weight-medium;
- margin-bottom: @space-1;
+ font-family: $font-mono;
+ font-size: $font-size-sm;
+ font-weight: $font-weight-medium;
+ margin-bottom: $space-1;
}
.queue-meta {
- font-size: @font-size-sm;
- color: @text-secondary;
+ font-size: $font-size-sm;
+ color: $text-secondary;
display: flex;
flex-wrap: wrap;
- gap: @space-3;
+ gap: $space-3;
}
.queue-error {
- font-size: @font-size-sm;
- color: @danger;
- margin-top: @space-1;
+ font-size: $font-size-sm;
+ color: $danger;
+ margin-top: $space-1;
}
}
}
@@ -569,14 +569,14 @@
.email-logs {
.log-output {
- font-family: @font-mono;
- font-size: @font-size-xs;
- line-height: @line-height-relaxed;
- color: @text-primary;
- background: @bg-body;
- padding: @space-4;
- border-radius: @radius-md;
- border: 1px solid @border-subtle;
+ font-family: $font-mono;
+ font-size: $font-size-xs;
+ line-height: $line-height-relaxed;
+ color: $text-primary;
+ background: $bg-body;
+ padding: $space-4;
+ border-radius: $radius-md;
+ border: 1px solid $border-subtle;
max-height: 600px;
overflow: auto;
white-space: pre-wrap;
@@ -586,8 +586,8 @@
.log-controls {
display: flex;
- gap: @space-2;
- margin-bottom: @space-3;
+ gap: $space-2;
+ margin-bottom: $space-3;
align-items: center;
}
}
@@ -597,11 +597,11 @@
.status-badge {
display: inline-flex;
align-items: center;
- gap: @space-1;
- padding: 2px @space-2;
- border-radius: @radius-sm;
- font-size: @font-size-xs;
- font-weight: @font-weight-medium;
+ gap: $space-1;
+ padding: 2px $space-2;
+ border-radius: $radius-sm;
+ font-size: $font-size-xs;
+ font-weight: $font-weight-medium;
&::before {
content: '';
@@ -611,28 +611,28 @@
}
&.online {
- color: @success;
- background: @bg-elevated;
+ color: $success;
+ background: $bg-elevated;
&::before {
- background: @success;
+ background: $success;
}
}
&.offline {
- color: @danger;
- background: @bg-elevated;
+ color: $danger;
+ background: $bg-elevated;
&::before {
- background: @danger;
+ background: $danger;
}
}
}
.empty-state {
text-align: center;
- padding: @space-8;
- color: @text-secondary;
+ padding: $space-8;
+ color: $text-secondary;
p {
margin: 0;
diff --git a/frontend/src/styles/pages/_file-manager.less b/frontend/src/styles/pages/_file-manager.scss
similarity index 57%
rename from frontend/src/styles/pages/_file-manager.less
rename to frontend/src/styles/pages/_file-manager.scss
index 6ea76407..9b5b73d6 100644
--- a/frontend/src/styles/pages/_file-manager.less
+++ b/frontend/src/styles/pages/_file-manager.scss
@@ -3,37 +3,37 @@
.file-manager {
display: flex;
flex-direction: column;
- gap: @space-4;
+ gap: $space-4;
.page-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
flex-wrap: wrap;
- gap: @space-4;
+ gap: $space-4;
.page-header-content {
h1 {
- font-size: @font-size-2xl;
- font-weight: @font-weight-semibold;
- margin: 0 0 @space-1 0;
+ font-size: $font-size-2xl;
+ font-weight: $font-weight-semibold;
+ margin: 0 0 $space-1 0;
}
.page-description {
- color: @text-secondary;
+ color: $text-secondary;
margin: 0;
}
}
.page-header-actions {
display: flex;
- gap: @space-2;
+ gap: $space-2;
flex-wrap: wrap;
.btn {
display: flex;
align-items: center;
- gap: @space-2;
+ gap: $space-2;
}
}
}
@@ -41,29 +41,29 @@
.upload-progress {
display: flex;
align-items: center;
- gap: @space-3;
- padding: @space-3 @space-4;
- background: @bg-card;
- border-radius: @radius-lg;
+ gap: $space-3;
+ padding: $space-3 $space-4;
+ background: $bg-card;
+ border-radius: $radius-lg;
.progress-bar {
flex: 1;
height: 8px;
- background: @border-default;
- border-radius: @radius-sm;
+ background: $border-default;
+ border-radius: $radius-sm;
overflow: hidden;
.progress-fill {
height: 100%;
- background: @accent-primary;
- .transition(width);
+ background: $accent-primary;
+ @include transition(width);
}
}
span {
- font-size: @font-size-sm;
- font-weight: @font-weight-medium;
- color: @text-secondary;
+ font-size: $font-size-sm;
+ font-weight: $font-weight-medium;
+ color: $text-secondary;
min-width: 40px;
}
}
@@ -72,57 +72,57 @@
display: flex;
justify-content: space-between;
align-items: center;
- padding: @space-3 @space-4;
- background: @bg-card;
- border-radius: @radius-lg;
- gap: @space-4;
+ padding: $space-3 $space-4;
+ background: $bg-card;
+ border-radius: $radius-lg;
+ gap: $space-4;
flex-wrap: wrap;
.path-breadcrumb {
display: flex;
align-items: center;
- gap: @space-2;
+ gap: $space-2;
.current-path {
- font-family: @font-mono;
- font-size: @font-size-sm;
- color: @text-primary;
- background: @bg-tertiary;
- padding: @space-2 @space-3;
- border-radius: @radius-md;
+ font-family: $font-mono;
+ font-size: $font-size-sm;
+ color: $text-primary;
+ background: $bg-tertiary;
+ padding: $space-2 $space-3;
+ border-radius: $radius-md;
}
}
.toolbar-actions {
display: flex;
align-items: center;
- gap: @space-3;
+ gap: $space-3;
flex-wrap: wrap;
.search-box {
display: flex;
align-items: center;
- gap: @space-2;
- background: @bg-tertiary;
- border-radius: @radius-md;
- padding: 0 @space-2;
+ gap: $space-2;
+ background: $bg-tertiary;
+ border-radius: $radius-md;
+ padding: 0 $space-2;
position: relative;
.search-icon {
- color: @text-tertiary;
+ color: $text-tertiary;
flex-shrink: 0;
}
input {
background: transparent;
border: none;
- padding: @space-2 @space-3;
- font-size: @font-size-sm;
+ padding: $space-2 $space-3;
+ font-size: $font-size-sm;
width: 180px;
- color: @text-primary;
+ color: $text-primary;
&::placeholder {
- color: @text-tertiary;
+ color: $text-tertiary;
}
&:focus {
@@ -134,9 +134,9 @@
.checkbox-label {
display: flex;
align-items: center;
- gap: @space-2;
- font-size: @font-size-sm;
- color: @text-secondary;
+ gap: $space-2;
+ font-size: $font-size-sm;
+ color: $text-secondary;
cursor: pointer;
input[type="checkbox"] {
@@ -145,7 +145,7 @@
}
svg {
- color: @text-tertiary;
+ color: $text-tertiary;
}
}
}
@@ -154,7 +154,7 @@
// Main layout with sidebar
.file-manager-layout {
display: flex;
- gap: @space-4;
+ gap: $space-4;
min-height: 0;
}
@@ -166,9 +166,9 @@
.file-manager-content {
display: grid;
grid-template-columns: 1fr 400px;
- gap: @space-4;
+ gap: $space-4;
- @media (max-width: @breakpoint-xl) {
+ @media (max-width: $breakpoint-xl) {
grid-template-columns: 1fr;
}
}
@@ -179,12 +179,12 @@
flex-shrink: 0;
display: flex;
flex-direction: column;
- gap: @space-4;
+ gap: $space-4;
overflow-y: auto;
max-height: calc(100vh - 120px);
- .transition(all);
+ @include transition(all);
- @media (max-width: @breakpoint-lg) {
+ @media (max-width: $breakpoint-lg) {
position: fixed;
right: 0;
top: 64px;
@@ -192,22 +192,22 @@
width: 100%;
max-width: 360px;
max-height: none;
- background: @bg-body;
- padding: @space-4;
- z-index: @z-modal;
+ background: $bg-body;
+ padding: $space-4;
+ z-index: $z-modal;
box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
}
}
&:not(.sidebar-open) .file-manager-sidebar {
- @media (max-width: @breakpoint-lg) {
+ @media (max-width: $breakpoint-lg) {
transform: translateX(100%);
}
}
.sidebar-section {
- background: @bg-card;
- border-radius: @radius-lg;
+ background: $bg-card;
+ border-radius: $radius-lg;
overflow: hidden;
&:last-child {
@@ -218,27 +218,27 @@
.sidebar-section-header {
display: flex;
align-items: center;
- gap: @space-2;
- padding: @space-3 @space-4;
- background: @bg-elevated;
+ gap: $space-2;
+ padding: $space-3 $space-4;
+ background: $bg-elevated;
border: none;
width: 100%;
text-align: left;
cursor: pointer;
- color: @text-primary;
- font-size: @font-size-sm;
- font-weight: @font-weight-medium;
- .transition(background);
+ color: $text-primary;
+ font-size: $font-size-sm;
+ font-weight: $font-weight-medium;
+ @include transition(background);
&:hover {
- background: @bg-tertiary;
+ background: $bg-tertiary;
}
&.static {
cursor: default;
&:hover {
- background: @bg-elevated;
+ background: $bg-elevated;
}
}
@@ -252,7 +252,7 @@
}
.sidebar-section-content {
- padding: @space-3 @space-4;
+ padding: $space-3 $space-4;
}
// Disk usage section
@@ -260,20 +260,20 @@
display: flex;
justify-content: space-between;
align-items: center;
- margin-bottom: @space-3;
+ margin-bottom: $space-3;
}
.disk-updated {
display: flex;
align-items: center;
- gap: @space-1;
- font-size: @font-size-xs;
- color: @text-tertiary;
+ gap: $space-1;
+ font-size: $font-size-xs;
+ color: $text-tertiary;
}
.disk-mount-item {
- padding: @space-3 0;
- border-bottom: 1px solid @border-subtle;
+ padding: $space-3 0;
+ border-bottom: 1px solid $border-subtle;
&:last-child {
border-bottom: none;
@@ -289,50 +289,50 @@
display: flex;
justify-content: space-between;
align-items: center;
- margin-bottom: @space-2;
+ margin-bottom: $space-2;
}
.disk-mount-point {
- font-family: @font-mono;
- font-size: @font-size-sm;
- color: @text-primary;
+ font-family: $font-mono;
+ font-size: $font-size-sm;
+ color: $text-primary;
}
.disk-percent {
- font-size: @font-size-sm;
- font-weight: @font-weight-medium;
+ font-size: $font-size-sm;
+ font-weight: $font-weight-medium;
- &.healthy { color: @success; }
- &.warning { color: @warning; }
- &.critical { color: @danger; }
+ &.healthy { color: $success; }
+ &.warning { color: $warning; }
+ &.critical { color: $danger; }
}
.disk-progress {
height: 6px;
- background: @border-default;
- border-radius: @radius-sm;
+ background: $border-default;
+ border-radius: $radius-sm;
overflow: hidden;
- margin-bottom: @space-2;
+ margin-bottom: $space-2;
.disk-progress-fill {
height: 100%;
- .transition(width);
+ @include transition(width);
}
- &.healthy .disk-progress-fill { background: @success; }
- &.warning .disk-progress-fill { background: @warning; }
- &.critical .disk-progress-fill { background: @danger; }
+ &.healthy .disk-progress-fill { background: $success; }
+ &.warning .disk-progress-fill { background: $warning; }
+ &.critical .disk-progress-fill { background: $danger; }
}
.disk-mount-info {
display: flex;
justify-content: space-between;
- font-size: @font-size-xs;
- color: @text-tertiary;
+ font-size: $font-size-xs;
+ color: $text-tertiary;
}
.disk-device {
- font-family: @font-mono;
+ font-family: $font-mono;
}
// Analysis section
@@ -340,23 +340,23 @@
display: flex;
align-items: center;
justify-content: center;
- gap: @space-2;
- padding: @space-6 0;
- color: @text-secondary;
- font-size: @font-size-sm;
+ gap: $space-2;
+ padding: $space-6 0;
+ color: $text-secondary;
+ font-size: $font-size-sm;
}
.analysis-total {
- font-size: @font-size-sm;
- font-weight: @font-weight-medium;
- color: @text-primary;
- margin-bottom: @space-3;
+ font-size: $font-size-sm;
+ font-weight: $font-weight-medium;
+ color: $text-primary;
+ margin-bottom: $space-3;
}
.analysis-tabs {
display: flex;
- gap: @space-2;
- margin-bottom: @space-3;
+ gap: $space-2;
+ margin-bottom: $space-3;
}
.analysis-tab {
@@ -364,41 +364,41 @@
display: flex;
align-items: center;
justify-content: center;
- gap: @space-1;
- padding: @space-2;
- background: @bg-tertiary;
+ gap: $space-1;
+ padding: $space-2;
+ background: $bg-tertiary;
border: 1px solid transparent;
- border-radius: @radius-md;
- font-size: @font-size-xs;
- color: @text-secondary;
+ border-radius: $radius-md;
+ font-size: $font-size-xs;
+ color: $text-secondary;
cursor: pointer;
- .transition(all);
+ @include transition(all);
&:hover {
- background: @bg-hover;
+ background: $bg-hover;
}
&.active {
- background: @accent-glow;
- border-color: fade(@accent-primary-raw, 30%);
- color: @accent-primary;
+ background: $accent-glow;
+ border-color: fade($accent-primary-raw, 30%);
+ color: $accent-primary;
}
}
.analysis-bars {
display: flex;
flex-direction: column;
- gap: @space-2;
+ gap: $space-2;
}
.analysis-bar-item {
cursor: pointer;
- padding: @space-2;
- border-radius: @radius-md;
- .transition(background);
+ padding: $space-2;
+ border-radius: $radius-md;
+ @include transition(background);
&:hover {
- background: @bg-hover;
+ background: $bg-hover;
}
}
@@ -406,127 +406,127 @@
display: flex;
justify-content: space-between;
align-items: center;
- margin-bottom: @space-1;
+ margin-bottom: $space-1;
}
.analysis-bar-name {
display: flex;
align-items: center;
- gap: @space-1;
- font-size: @font-size-xs;
- color: @text-primary;
- .truncate();
+ gap: $space-1;
+ font-size: $font-size-xs;
+ color: $text-primary;
+ @include truncate();
svg {
- color: @warning;
+ color: $warning;
flex-shrink: 0;
}
}
.analysis-bar-size {
- font-size: @font-size-xs;
- color: @text-tertiary;
- font-family: @font-mono;
+ font-size: $font-size-xs;
+ color: $text-tertiary;
+ font-family: $font-mono;
}
.analysis-bar-track {
height: 4px;
- background: @border-default;
- border-radius: @radius-sm;
+ background: $border-default;
+ border-radius: $radius-sm;
overflow: hidden;
}
.analysis-bar-fill {
height: 100%;
- background: @accent-primary;
- .transition(width);
+ background: $accent-primary;
+ @include transition(width);
}
.analysis-files {
display: flex;
flex-direction: column;
- gap: @space-1;
+ gap: $space-1;
}
.analysis-file-item {
display: flex;
align-items: center;
- gap: @space-2;
- padding: @space-2;
- border-radius: @radius-md;
+ gap: $space-2;
+ padding: $space-2;
+ border-radius: $radius-md;
cursor: pointer;
- .transition(background);
+ @include transition(background);
&:hover {
- background: @bg-hover;
+ background: $bg-hover;
}
svg {
- color: @text-tertiary;
+ color: $text-tertiary;
flex-shrink: 0;
}
}
.analysis-file-name {
flex: 1;
- font-size: @font-size-xs;
- color: @text-primary;
- .truncate();
+ font-size: $font-size-xs;
+ color: $text-primary;
+ @include truncate();
}
.analysis-file-size {
- font-size: @font-size-xs;
- color: @text-tertiary;
- font-family: @font-mono;
+ font-size: $font-size-xs;
+ color: $text-tertiary;
+ font-family: $font-mono;
}
.analysis-empty {
- padding: @space-4 0;
+ padding: $space-4 0;
text-align: center;
- color: @text-tertiary;
- font-size: @font-size-sm;
+ color: $text-tertiary;
+ font-size: $font-size-sm;
}
// Type breakdown chart
.type-breakdown-chart {
- margin-bottom: @space-3;
+ margin-bottom: $space-3;
}
.type-breakdown-legend {
display: flex;
flex-direction: column;
- gap: @space-2;
+ gap: $space-2;
}
.type-legend-item {
display: flex;
align-items: center;
- gap: @space-2;
+ gap: $space-2;
}
.type-legend-color {
width: 10px;
height: 10px;
- border-radius: @radius-sm;
+ border-radius: $radius-sm;
flex-shrink: 0;
}
.type-legend-name {
flex: 1;
- font-size: @font-size-xs;
- color: @text-primary;
+ font-size: $font-size-xs;
+ color: $text-primary;
}
.type-legend-size {
- font-size: @font-size-xs;
- color: @text-tertiary;
- font-family: @font-mono;
+ font-size: $font-size-xs;
+ color: $text-tertiary;
+ font-family: $font-mono;
}
// File list
.file-list-container {
- background: @bg-card;
- border-radius: @radius-lg;
+ background: $bg-card;
+ border-radius: $radius-lg;
overflow: hidden;
.loading-state,
@@ -535,11 +535,11 @@
flex-direction: column;
align-items: center;
justify-content: center;
- padding: @space-12;
- color: @text-tertiary;
+ padding: $space-12;
+ color: $text-tertiary;
svg {
- margin-bottom: @space-4;
+ margin-bottom: $space-4;
}
p {
@@ -552,65 +552,65 @@
.file-list-header {
display: grid;
grid-template-columns: 1fr 100px 120px 120px 120px;
- padding: @space-3 @space-4;
- background: @bg-tertiary;
- font-size: @font-size-xs;
- font-weight: @font-weight-semibold;
+ padding: $space-3 $space-4;
+ background: $bg-tertiary;
+ font-size: $font-size-xs;
+ font-weight: $font-weight-semibold;
text-transform: uppercase;
- color: @text-tertiary;
- border-bottom: 1px solid @border-default;
+ color: $text-tertiary;
+ border-bottom: 1px solid $border-default;
}
.file-item {
display: grid;
grid-template-columns: 1fr 100px 120px 120px 120px;
- padding: @space-3 @space-4;
- border-bottom: 1px solid @border-default;
+ padding: $space-3 $space-4;
+ border-bottom: 1px solid $border-default;
cursor: pointer;
- .transition(background);
+ @include transition(background);
&:hover {
- background: @bg-hover;
+ background: $bg-hover;
}
&.selected {
- background: @accent-glow;
+ background: $accent-glow;
}
.col-name {
display: flex;
align-items: center;
- gap: @space-2;
+ gap: $space-2;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
.link-indicator {
- color: @text-tertiary;
- font-size: @font-size-sm;
+ color: $text-tertiary;
+ font-size: $font-size-sm;
}
}
.col-size,
.col-modified,
.col-permissions {
- font-size: @font-size-sm;
- color: @text-secondary;
+ font-size: $font-size-sm;
+ color: $text-secondary;
}
.col-permissions {
- font-family: @font-mono;
- font-size: @font-size-xs;
+ font-family: $font-mono;
+ font-size: $font-size-xs;
}
.col-actions {
display: flex;
- gap: @space-1;
+ gap: $space-1;
justify-content: flex-end;
.btn-icon {
opacity: 0;
- .transition(opacity);
+ @include transition(opacity);
}
}
@@ -623,23 +623,23 @@
// File icons
.file-icon-svg {
flex-shrink: 0;
- color: @text-tertiary;
+ color: $text-tertiary;
- &.folder { color: @warning; }
+ &.folder { color: $warning; }
&.code { color: #8b5cf6; }
- &.image { color: @success; }
+ &.image { color: $success; }
&.video { color: #ec4899; }
- &.audio { color: @warning; }
- &.archive { color: @danger; }
+ &.audio { color: $warning; }
+ &.archive { color: $danger; }
&.data { color: #14b8a6; }
- &.text { color: @text-secondary; }
- &.terminal { color: @success; }
+ &.text { color: $text-secondary; }
+ &.terminal { color: $success; }
}
// File preview
.file-preview {
- background: @bg-card;
- border-radius: @radius-lg;
+ background: $bg-card;
+ border-radius: $radius-lg;
display: flex;
flex-direction: column;
max-height: calc(100vh - 300px);
@@ -648,13 +648,13 @@
display: flex;
justify-content: space-between;
align-items: center;
- padding: @space-4;
- border-bottom: 1px solid @border-default;
+ padding: $space-4;
+ border-bottom: 1px solid $border-default;
h3 {
margin: 0;
- font-size: @font-size-base;
- font-weight: @font-weight-semibold;
+ font-size: $font-size-base;
+ font-weight: $font-weight-semibold;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
@@ -662,37 +662,37 @@
.preview-actions {
display: flex;
- gap: @space-2;
+ gap: $space-2;
}
}
.preview-info {
display: flex;
- gap: @space-4;
- padding: @space-3 @space-4;
- background: @bg-tertiary;
- font-size: @font-size-xs;
- color: @text-secondary;
+ gap: $space-4;
+ padding: $space-3 $space-4;
+ background: $bg-tertiary;
+ font-size: $font-size-xs;
+ color: $text-secondary;
flex-wrap: wrap;
}
.file-editor {
flex: 1;
- padding: @space-4;
- font-family: @font-mono;
- font-size: @font-size-sm;
- line-height: @line-height-relaxed;
- background: @bg-body;
+ padding: $space-4;
+ font-family: $font-mono;
+ font-size: $font-size-sm;
+ line-height: $line-height-relaxed;
+ background: $bg-body;
border: none;
resize: none;
- color: @text-primary;
+ color: $text-primary;
&:focus {
outline: none;
}
&[readonly] {
- background: @bg-tertiary;
+ background: $bg-tertiary;
}
}
@@ -702,43 +702,43 @@
flex-direction: column;
align-items: center;
justify-content: center;
- padding: @space-12;
- color: @text-tertiary;
+ padding: $space-12;
+ color: $text-tertiary;
svg {
- margin-bottom: @space-4;
+ margin-bottom: $space-4;
}
p {
- margin-bottom: @space-4;
+ margin-bottom: $space-4;
}
}
}
.permissions-help {
- margin-top: @space-4;
- padding: @space-3;
- background: @bg-tertiary;
- border-radius: @radius-md;
- font-size: @font-size-sm;
+ margin-top: $space-4;
+ padding: $space-3;
+ background: $bg-tertiary;
+ border-radius: $radius-md;
+ font-size: $font-size-sm;
p {
- margin: 0 0 @space-2 0;
- font-weight: @font-weight-medium;
+ margin: 0 0 $space-2 0;
+ font-weight: $font-weight-medium;
}
ul {
margin: 0;
- padding-left: @space-5;
+ padding-left: $space-5;
li {
- margin-bottom: @space-1;
+ margin-bottom: $space-1;
}
code {
- background: @bg-body;
- padding: 2px @space-2;
- border-radius: @radius-sm;
+ background: $bg-body;
+ padding: 2px $space-2;
+ border-radius: $radius-sm;
}
}
}
@@ -755,7 +755,7 @@
}
// Responsive adjustments
-@media (max-width: @breakpoint-md) {
+@media (max-width: $breakpoint-md) {
.file-manager {
.page-header {
flex-direction: column;
@@ -794,7 +794,7 @@
}
}
-@media (max-width: @breakpoint-sm) {
+@media (max-width: $breakpoint-sm) {
.file-manager {
.file-list {
.file-list-header,
diff --git a/frontend/src/styles/pages/_firewall.less b/frontend/src/styles/pages/_firewall.scss
similarity index 53%
rename from frontend/src/styles/pages/_firewall.less
rename to frontend/src/styles/pages/_firewall.scss
index 7513039c..31f188aa 100644
--- a/frontend/src/styles/pages/_firewall.less
+++ b/frontend/src/styles/pages/_firewall.scss
@@ -7,26 +7,26 @@
display: flex;
justify-content: space-between;
align-items: flex-start;
- margin-bottom: @space-6;
+ margin-bottom: $space-6;
flex-wrap: wrap;
- gap: @space-4;
+ gap: $space-4;
.page-header-content {
h1 {
- font-size: @font-size-2xl;
- font-weight: @font-weight-semibold;
- margin: 0 0 @space-1 0;
+ font-size: $font-size-2xl;
+ font-weight: $font-weight-semibold;
+ margin: 0 0 $space-1 0;
}
.page-description {
- color: @text-secondary;
+ color: $text-secondary;
margin: 0;
}
}
.page-header-actions {
display: flex;
- gap: @space-2;
+ gap: $space-2;
}
}
@@ -42,26 +42,26 @@
flex-direction: column;
align-items: center;
justify-content: center;
- padding: 80px @space-6;
- background: @bg-card;
- border-radius: @radius-xl;
+ padding: 80px $space-6;
+ background: $bg-card;
+ border-radius: $radius-xl;
text-align: center;
.icon {
font-size: 64px;
- color: @text-tertiary;
- margin-bottom: @space-6;
+ color: $text-tertiary;
+ margin-bottom: $space-6;
}
h2 {
- margin: 0 0 @space-3 0;
- font-size: @font-size-2xl;
- font-weight: @font-weight-semibold;
+ margin: 0 0 $space-3 0;
+ font-size: $font-size-2xl;
+ font-weight: $font-weight-semibold;
}
p {
- margin: 0 0 @space-6 0;
- color: @text-secondary;
+ margin: 0 0 $space-6 0;
+ color: $text-secondary;
max-width: 400px;
}
}
@@ -69,40 +69,40 @@
.status-cards {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
- gap: @space-4;
- margin-bottom: @space-6;
+ gap: $space-4;
+ margin-bottom: $space-6;
}
.status-card {
display: flex;
align-items: center;
- gap: @space-4;
- padding: @space-5;
- background: @bg-card;
- border-radius: @radius-xl;
- border-left: 4px solid @border-subtle;
+ gap: $space-4;
+ padding: $space-5;
+ background: $bg-card;
+ border-radius: $radius-xl;
+ border-left: 4px solid $border-subtle;
&.success {
- border-left-color: @success;
+ border-left-color: $success;
.status-icon {
- color: @success;
+ color: $success;
}
}
&.danger {
- border-left-color: @danger;
+ border-left-color: $danger;
.status-icon {
- color: @danger;
+ color: $danger;
}
}
&.warning {
- border-left-color: @warning;
+ border-left-color: $warning;
.status-icon {
- color: @warning;
+ color: $warning;
}
}
@@ -115,43 +115,43 @@
.status-info {
display: flex;
flex-direction: column;
- gap: @space-1;
+ gap: $space-1;
.status-label {
- font-size: @font-size-sm;
- color: @text-secondary;
+ font-size: $font-size-sm;
+ color: $text-secondary;
}
.status-value {
- font-size: @font-size-lg;
- font-weight: @font-weight-semibold;
+ font-size: $font-size-lg;
+ font-weight: $font-weight-semibold;
}
}
}
.tabs {
display: flex;
- gap: @space-1;
- margin-bottom: @space-6;
- border-bottom: 1px solid @border-subtle;
+ gap: $space-1;
+ margin-bottom: $space-6;
+ border-bottom: 1px solid $border-subtle;
.tab {
- padding: @space-3 @space-5;
+ padding: $space-3 $space-5;
background: none;
border: none;
- font-size: @font-size-base;
- font-weight: @font-weight-medium;
- color: @text-secondary;
+ font-size: $font-size-base;
+ font-weight: $font-weight-medium;
+ color: $text-secondary;
cursor: pointer;
position: relative;
- transition: color @transition-fast;
+ transition: color $transition-fast;
&:hover {
- color: @text-primary;
+ color: $text-primary;
}
&.active {
- color: @accent-primary;
+ color: $accent-primary;
&::after {
content: '';
@@ -160,7 +160,7 @@
left: 0;
right: 0;
height: 2px;
- background: @accent-primary;
+ background: $accent-primary;
}
}
}
@@ -171,12 +171,12 @@
display: flex;
justify-content: space-between;
align-items: center;
- margin-bottom: @space-4;
+ margin-bottom: $space-4;
h3 {
margin: 0;
- font-size: @font-size-md;
- font-weight: @font-weight-semibold;
+ font-size: $font-size-md;
+ font-weight: $font-weight-semibold;
}
}
@@ -185,18 +185,18 @@
flex-direction: column;
align-items: center;
justify-content: center;
- padding: @space-12;
- background: @bg-card;
- border-radius: @radius-lg;
- color: @text-tertiary;
+ padding: $space-12;
+ background: $bg-card;
+ border-radius: $radius-lg;
+ color: $text-tertiary;
.icon {
font-size: 48px;
- margin-bottom: @space-4;
+ margin-bottom: $space-4;
}
p {
- margin-bottom: @space-4;
+ margin-bottom: $space-4;
}
}
}
@@ -205,56 +205,56 @@
.overview-tab {
display: grid;
grid-template-columns: 1fr 1fr;
- gap: @space-6;
+ gap: $space-6;
- @media (max-width: @breakpoint-md) {
+ @media (max-width: $breakpoint-md) {
grid-template-columns: 1fr;
}
.info-card,
.protection-summary {
- background: @bg-card;
- border-radius: @radius-lg;
- padding: @space-5;
+ background: $bg-card;
+ border-radius: $radius-lg;
+ padding: $space-5;
h3 {
- margin: 0 0 @space-4 0;
- font-size: @font-size-md;
- font-weight: @font-weight-semibold;
+ margin: 0 0 $space-4 0;
+ font-size: $font-size-md;
+ font-weight: $font-weight-semibold;
}
}
.info-grid {
display: grid;
- gap: @space-3;
+ gap: $space-3;
}
.info-item {
display: flex;
justify-content: space-between;
align-items: center;
- padding: @space-2 0;
- border-bottom: 1px solid @border-subtle;
+ padding: $space-2 0;
+ border-bottom: 1px solid $border-subtle;
&:last-child {
border-bottom: none;
}
.info-label {
- font-size: @font-size-sm;
- color: @text-secondary;
+ font-size: $font-size-sm;
+ color: $text-secondary;
}
.info-value {
- font-size: @font-size-sm;
- font-weight: @font-weight-medium;
+ font-size: $font-size-sm;
+ font-weight: $font-weight-medium;
&.text-success {
- color: @success;
+ color: $success;
}
&.text-danger {
- color: @danger;
+ color: $danger;
}
}
}
@@ -262,26 +262,26 @@
.summary-grid {
display: flex;
flex-direction: column;
- gap: @space-3;
+ gap: $space-3;
}
.summary-item {
display: flex;
align-items: center;
- gap: @space-3;
+ gap: $space-3;
.summary-icon {
&.text-success {
- color: @success;
+ color: $success;
}
&.text-danger {
- color: @danger;
+ color: $danger;
}
}
.summary-text {
- font-size: @font-size-sm;
+ font-size: $font-size-sm;
}
}
}
@@ -289,8 +289,8 @@
// Rules Tab
.rules-tab {
.rules-table {
- background: @bg-card;
- border-radius: @radius-lg;
+ background: $bg-card;
+ border-radius: $radius-lg;
overflow: hidden;
table {
@@ -299,28 +299,28 @@
th,
td {
- padding: @space-3 @space-4;
+ padding: $space-3 $space-4;
text-align: left;
}
th {
- background: @bg-hover;
- font-size: @font-size-xs;
- font-weight: @font-weight-semibold;
+ background: $bg-hover;
+ font-size: $font-size-xs;
+ font-weight: $font-weight-semibold;
text-transform: uppercase;
- color: @text-tertiary;
+ color: $text-tertiary;
}
td {
- border-bottom: 1px solid @border-subtle;
- font-size: @font-size-sm;
+ border-bottom: 1px solid $border-subtle;
+ font-size: $font-size-sm;
.rule-code {
- font-family: @font-mono;
- font-size: @font-size-xs;
- background: @bg-hover;
- padding: @space-1 @space-2;
- border-radius: @radius-sm;
+ font-family: $font-mono;
+ font-size: $font-size-xs;
+ background: $bg-hover;
+ padding: $space-1 $space-2;
+ border-radius: $radius-sm;
}
}
@@ -336,32 +336,32 @@
.blocked-list {
display: flex;
flex-direction: column;
- gap: @space-3;
+ gap: $space-3;
}
.blocked-item {
display: flex;
justify-content: space-between;
align-items: center;
- padding: @space-4;
- background: @bg-card;
- border-radius: @radius-lg;
- border: 1px solid @border-subtle;
+ padding: $space-4;
+ background: $bg-card;
+ border-radius: $radius-lg;
+ border: 1px solid $border-subtle;
.blocked-info {
display: flex;
flex-direction: column;
- gap: @space-1;
+ gap: $space-1;
.blocked-ip {
- font-weight: @font-weight-semibold;
- color: @danger;
+ font-weight: $font-weight-semibold;
+ color: $danger;
}
.blocked-rule {
- font-family: @font-mono;
- font-size: @font-size-xs;
- color: @text-tertiary;
+ font-family: $font-mono;
+ font-size: $font-size-xs;
+ color: $text-tertiary;
}
}
}
@@ -370,40 +370,40 @@
// Quick Actions Tab
.quick-tab {
h3 {
- margin: 0 0 @space-2 0;
- font-size: @font-size-md;
- font-weight: @font-weight-semibold;
+ margin: 0 0 $space-2 0;
+ font-size: $font-size-md;
+ font-weight: $font-weight-semibold;
}
.quick-ports {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
- gap: @space-3;
- margin-top: @space-6;
+ gap: $space-3;
+ margin-top: $space-6;
}
.quick-port-item {
display: flex;
justify-content: space-between;
align-items: center;
- padding: @space-4;
- background: @bg-card;
- border-radius: @radius-lg;
- border: 1px solid @border-subtle;
+ padding: $space-4;
+ background: $bg-card;
+ border-radius: $radius-lg;
+ border: 1px solid $border-subtle;
.port-info {
display: flex;
flex-direction: column;
- gap: @space-1;
+ gap: $space-1;
.port-name {
- font-weight: @font-weight-medium;
+ font-weight: $font-weight-medium;
}
.port-number {
- font-size: @font-size-sm;
- color: @text-tertiary;
- font-family: @font-mono;
+ font-size: $font-size-sm;
+ color: $text-tertiary;
+ font-family: $font-mono;
}
}
}
@@ -411,18 +411,18 @@
// Install info
.install-info {
- padding: @space-4;
- background: @bg-hover;
- border-radius: @radius-lg;
- margin-top: @space-4;
+ padding: $space-4;
+ background: $bg-hover;
+ border-radius: $radius-lg;
+ margin-top: $space-4;
p {
margin: 0;
- font-size: @font-size-sm;
- line-height: @line-height-relaxed;
+ font-size: $font-size-sm;
+ line-height: $line-height-relaxed;
strong {
- color: @accent-primary;
+ color: $accent-primary;
}
}
}
@@ -431,6 +431,6 @@
.form-row {
display: grid;
grid-template-columns: 1fr 1fr;
- gap: @space-4;
+ gap: $space-4;
}
}
diff --git a/frontend/src/styles/pages/_fleet-monitor.less b/frontend/src/styles/pages/_fleet-monitor.scss
similarity index 77%
rename from frontend/src/styles/pages/_fleet-monitor.less
rename to frontend/src/styles/pages/_fleet-monitor.scss
index f6530735..cae4548f 100644
--- a/frontend/src/styles/pages/_fleet-monitor.less
+++ b/frontend/src/styles/pages/_fleet-monitor.scss
@@ -8,26 +8,26 @@
&__header {
display: grid;
grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr;
- gap: @space-2;
- padding: @space-2 @space-3;
+ gap: $space-2;
+ padding: $space-2 $space-3;
font-size: 0.75rem;
font-weight: 600;
text-transform: uppercase;
- color: @text-secondary;
- border-bottom: 1px solid @border-subtle;
+ color: $text-secondary;
+ border-bottom: 1px solid $border-subtle;
}
&__row {
display: grid;
grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr;
- gap: @space-2;
- padding: @space-2 @space-3;
+ gap: $space-2;
+ padding: $space-2 $space-3;
align-items: center;
- border-bottom: 1px solid @border-subtle;
+ border-bottom: 1px solid $border-subtle;
transition: background 0.15s;
&:hover {
- background: @bg-hover;
+ background: $bg-hover;
}
&:last-child {
@@ -38,7 +38,7 @@
&__server {
display: flex;
align-items: center;
- gap: @space-2;
+ gap: $space-2;
font-weight: 500;
font-size: 0.875rem;
overflow: hidden;
@@ -48,8 +48,8 @@
&__cell {
text-align: center;
- padding: @space-1 @space-2;
- border-radius: @radius-sm;
+ padding: $space-1 $space-2;
+ border-radius: $radius-sm;
font-size: 0.8125rem;
font-weight: 500;
font-variant-numeric: tabular-nums;
@@ -61,7 +61,7 @@
}
}
-@media (max-width: @breakpoint-md) {
+@media (max-width: $breakpoint-md) {
.fleet-heatmap {
&__header,
&__row {
diff --git a/frontend/src/styles/pages/_ftp-server.less b/frontend/src/styles/pages/_ftp-server.scss
similarity index 99%
rename from frontend/src/styles/pages/_ftp-server.less
rename to frontend/src/styles/pages/_ftp-server.scss
index 31d53510..cec59d21 100644
--- a/frontend/src/styles/pages/_ftp-server.less
+++ b/frontend/src/styles/pages/_ftp-server.scss
@@ -327,7 +327,7 @@
&.badge-warning {
background: rgba(255, 193, 7, 0.1);
- color: #f59e0b;
+ color: $color-star;
}
}
diff --git a/frontend/src/styles/pages/_git.less b/frontend/src/styles/pages/_git.less
deleted file mode 100644
index 1aa00f7f..00000000
--- a/frontend/src/styles/pages/_git.less
+++ /dev/null
@@ -1,1469 +0,0 @@
-// ============================================
-// GIT PAGE
-// ============================================
-
-.git-page {
- .page-header {
- display: flex;
- justify-content: space-between;
- align-items: flex-start;
- margin-bottom: @space-6;
- flex-wrap: wrap;
- gap: @space-4;
-
- .page-header-content {
- h1 {
- font-size: @font-size-2xl;
- font-weight: @font-weight-semibold;
- margin: 0 0 @space-1 0;
- }
-
- .page-description {
- color: @text-secondary;
- margin: 0;
- }
- }
-
- .page-header-actions {
- display: flex;
- gap: @space-2;
- }
- }
-
- .page-loading {
- display: flex;
- justify-content: center;
- align-items: center;
- min-height: 400px;
- }
-
- .empty-state-large {
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- padding: 60px @space-6;
- background: @bg-card;
- border-radius: @radius-xl;
- text-align: center;
-
- .empty-icon {
- color: @text-tertiary;
- margin-bottom: @space-6;
- }
-
- h2 {
- margin: 0 0 @space-3 0;
- font-size: @font-size-2xl;
- font-weight: @font-weight-semibold;
- }
-
- p {
- margin: 0 0 @space-6 0;
- color: @text-secondary;
- max-width: 400px;
- }
- }
-
- .resource-warning {
- background: fade(@warning, 10%);
- border: 1px solid fade(@warning, 30%);
- border-radius: @radius-lg;
- padding: @space-5;
- margin-bottom: @space-6;
- text-align: left;
- max-width: 500px;
-
- .warning-header {
- display: flex;
- align-items: center;
- gap: @space-2;
- margin-bottom: @space-3;
- color: @warning;
-
- strong {
- color: @text-primary;
- }
- }
-
- ul {
- margin: 0;
- padding-left: @space-5;
- color: @text-secondary;
- font-size: @font-size-sm;
-
- li {
- margin-bottom: @space-1;
-
- &:last-child {
- margin-bottom: 0;
- }
-
- strong {
- color: @text-primary;
- }
- }
- }
- }
-
- .status-cards {
- display: grid;
- grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
- gap: @space-4;
- margin-bottom: @space-6;
- }
-
- .status-card {
- display: flex;
- align-items: center;
- gap: @space-4;
- padding: @space-5;
- background: @bg-card;
- border-radius: @radius-xl;
- border-left: 4px solid @border-subtle;
-
- &.success {
- border-left-color: @success;
-
- .status-icon {
- color: @success;
- }
- }
-
- &.danger {
- border-left-color: @danger;
-
- .status-icon {
- color: @danger;
- }
- }
-
- &.warning {
- border-left-color: @warning;
-
- .status-icon {
- color: @warning;
- }
- }
-
- .status-icon {
- color: @text-tertiary;
- }
-
- .status-info {
- display: flex;
- flex-direction: column;
- gap: @space-1;
-
- .status-label {
- font-size: @font-size-sm;
- color: @text-secondary;
- }
-
- .status-value {
- font-size: @font-size-lg;
- font-weight: @font-weight-semibold;
- }
- }
- }
-
- .tabs {
- display: flex;
- gap: @space-1;
- margin-bottom: @space-6;
- border-bottom: 1px solid @border-subtle;
-
- .tab {
- padding: @space-3 @space-5;
- background: none;
- border: none;
- font-size: @font-size-base;
- font-weight: @font-weight-medium;
- color: @text-secondary;
- cursor: pointer;
- position: relative;
- transition: color @transition-fast;
-
- &:hover {
- color: @text-primary;
- }
-
- &.active {
- color: @accent-primary;
-
- &::after {
- content: '';
- position: absolute;
- bottom: -1px;
- left: 0;
- right: 0;
- height: 2px;
- background: @accent-primary;
- }
- }
- }
- }
-
- .tab-content {
- .section-header {
- display: flex;
- justify-content: space-between;
- align-items: center;
- margin-bottom: @space-4;
-
- h3 {
- margin: 0;
- font-size: @font-size-md;
- font-weight: @font-weight-semibold;
- }
- }
- }
-
- // Overview Tab
- .overview-tab {
- display: grid;
- grid-template-columns: 1fr 1fr;
- gap: @space-6;
-
- @media (max-width: @breakpoint-md) {
- grid-template-columns: 1fr;
- }
-
- .info-card {
- background: @bg-card;
- border-radius: @radius-lg;
- padding: @space-5;
-
- h3 {
- margin: 0 0 @space-4 0;
- font-size: @font-size-md;
- font-weight: @font-weight-semibold;
- }
- }
-
- .info-grid {
- display: grid;
- gap: @space-3;
- }
-
- .info-item {
- display: flex;
- justify-content: space-between;
- align-items: center;
- padding: @space-2 0;
- border-bottom: 1px solid @border-subtle;
-
- &:last-child {
- border-bottom: none;
- }
-
- .info-label {
- font-size: @font-size-sm;
- color: @text-secondary;
- }
-
- .info-value {
- font-size: @font-size-sm;
- font-weight: @font-weight-medium;
-
- &.text-success {
- color: @success;
- }
-
- &.text-danger {
- color: @danger;
- }
-
- &.code {
- font-family: @font-mono;
- font-size: @font-size-xs;
- background: @bg-hover;
- padding: @space-1 @space-2;
- border-radius: @radius-sm;
- }
-
- a {
- color: @accent-primary;
- text-decoration: none;
-
- &:hover {
- text-decoration: underline;
- }
- }
- }
- }
-
- .quick-actions {
- display: flex;
- gap: @space-3;
- flex-wrap: wrap;
- }
- }
-
- // Access Tab
- .access-tab {
- display: flex;
- flex-direction: column;
- gap: @space-4;
-
- .info-card {
- background: @bg-card;
- border-radius: @radius-lg;
- padding: @space-5;
-
- h3 {
- margin: 0 0 @space-2 0;
- font-size: @font-size-md;
- font-weight: @font-weight-semibold;
- }
-
- .text-muted {
- color: @text-secondary;
- font-size: @font-size-sm;
- margin: 0 0 @space-4 0;
- }
- }
-
- .access-url {
- display: flex;
- align-items: center;
- gap: @space-3;
- background: @bg-hover;
- padding: @space-3 @space-4;
- border-radius: @radius-md;
- margin-bottom: @space-3;
-
- code {
- flex: 1;
- font-family: @font-mono;
- font-size: @font-size-sm;
- color: @accent-primary;
- word-break: break-all;
- }
- }
-
- .ssh-note {
- font-size: @font-size-sm;
- color: @text-secondary;
- padding: @space-3;
- background: fade(@info, 10%);
- border-radius: @radius-md;
- border-left: 3px solid @info;
-
- strong {
- color: @text-primary;
- }
- }
- }
-
- // Settings Tab
- .settings-tab {
- display: flex;
- flex-direction: column;
- gap: @space-4;
-
- .info-card {
- background: @bg-card;
- border-radius: @radius-lg;
- padding: @space-5;
-
- h3 {
- margin: 0 0 @space-4 0;
- font-size: @font-size-md;
- font-weight: @font-weight-semibold;
- }
-
- &.danger-zone {
- border: 1px solid fade(@danger, 30%);
- background: fade(@danger, 5%);
-
- h3 {
- color: @danger;
- }
-
- .text-muted {
- color: @text-secondary;
- font-size: @font-size-sm;
- margin: 0;
- }
- }
- }
-
- .settings-actions {
- display: flex;
- gap: @space-3;
- }
- }
-
- // Install Modal
- .modal-lg {
- max-width: 500px;
- }
-
- .install-warning {
- display: flex;
- gap: @space-3;
- background: fade(@info, 10%);
- border: 1px solid fade(@info, 30%);
- border-radius: @radius-lg;
- padding: @space-4;
- margin-bottom: @space-5;
-
- svg {
- flex-shrink: 0;
- color: @info;
- }
-
- strong {
- display: block;
- margin-bottom: @space-2;
- }
-
- ul {
- margin: 0;
- padding-left: @space-4;
- font-size: @font-size-sm;
- color: @text-secondary;
-
- li {
- margin-bottom: @space-1;
- }
- }
- }
-
- .required {
- color: @danger;
- }
-
- // Webhooks Tab
- .webhooks-tab {
- .webhooks-header {
- display: flex;
- justify-content: space-between;
- align-items: flex-start;
- margin-bottom: @space-5;
-
- h3 {
- margin: 0 0 @space-1 0;
- font-size: @font-size-md;
- font-weight: @font-weight-semibold;
- }
-
- .text-muted {
- color: @text-secondary;
- font-size: @font-size-sm;
- margin: 0;
- }
- }
-
- .loading-state {
- display: flex;
- justify-content: center;
- padding: @space-10;
- }
-
- .empty-state {
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- padding: @space-10;
- background: @bg-card;
- border-radius: @radius-xl;
- text-align: center;
-
- svg {
- color: @text-tertiary;
- margin-bottom: @space-4;
- }
-
- h4 {
- margin: 0 0 @space-2 0;
- font-size: @font-size-lg;
- font-weight: @font-weight-semibold;
- }
-
- p {
- margin: 0 0 @space-5 0;
- color: @text-secondary;
- }
- }
-
- .webhooks-list {
- display: flex;
- flex-direction: column;
- gap: @space-4;
- }
-
- .webhook-card {
- background: @bg-card;
- border-radius: @radius-lg;
- padding: @space-5;
- border: 1px solid @border-subtle;
- transition: border-color @transition-fast;
-
- &:hover {
- border-color: @border-default;
- }
-
- &.inactive {
- opacity: 0.7;
- background: @bg-hover;
- }
-
- .webhook-header {
- display: flex;
- justify-content: space-between;
- align-items: center;
- margin-bottom: @space-4;
-
- .webhook-info {
- display: flex;
- align-items: center;
- gap: @space-3;
-
- h4 {
- margin: 0;
- font-size: @font-size-md;
- font-weight: @font-weight-semibold;
- }
- }
-
- .webhook-status {
- display: flex;
- align-items: center;
- gap: @space-2;
- font-size: @font-size-sm;
- color: @text-secondary;
-
- .status-dot {
- width: 8px;
- height: 8px;
- border-radius: 50%;
- background: @text-tertiary;
-
- &.active {
- background: @success;
- }
-
- &.inactive {
- background: @text-tertiary;
- }
- }
- }
- }
-
- .webhook-details {
- display: grid;
- grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
- gap: @space-3;
- margin-bottom: @space-4;
- padding: @space-4;
- background: @bg-hover;
- border-radius: @radius-md;
-
- .detail-item {
- display: flex;
- flex-direction: column;
- gap: @space-1;
-
- .label {
- font-size: @font-size-xs;
- color: @text-tertiary;
- text-transform: uppercase;
- letter-spacing: 0.5px;
- }
-
- .value {
- font-size: @font-size-sm;
- color: @text-primary;
- word-break: break-all;
- }
- }
- }
-
- .webhook-actions {
- display: flex;
- gap: @space-2;
- flex-wrap: wrap;
- }
- }
-
- .source-badge {
- display: inline-flex;
- align-items: center;
- padding: @space-1 @space-2;
- border-radius: @radius-md;
- font-size: @font-size-xs;
- font-weight: @font-weight-medium;
- text-transform: uppercase;
-
- &.github {
- background: fade(#333, 15%);
- color: #333;
-
- @media (prefers-color-scheme: dark) {
- background: fade(#f0f0f0, 15%);
- color: #f0f0f0;
- }
- }
-
- &.gitlab {
- background: fade(#fc6d26, 15%);
- color: #fc6d26;
- }
-
- &.bitbucket {
- background: fade(#0052cc, 15%);
- color: #0052cc;
- }
- }
- }
-
- // Webhook Modal
- .form-row {
- display: grid;
- grid-template-columns: 1fr 1fr;
- gap: @space-4;
-
- @media (max-width: @breakpoint-sm) {
- grid-template-columns: 1fr;
- }
- }
-
- .form-group.checkbox {
- label {
- display: flex;
- align-items: center;
- gap: @space-2;
- cursor: pointer;
- font-weight: @font-weight-normal;
-
- input[type="checkbox"] {
- width: 18px;
- height: 18px;
- cursor: pointer;
- }
- }
- }
-
- // Secret Display
- .secret-warning {
- display: flex;
- align-items: center;
- gap: @space-3;
- padding: @space-4;
- background: fade(@warning, 15%);
- border: 1px solid fade(@warning, 30%);
- border-radius: @radius-md;
- margin-bottom: @space-4;
-
- svg {
- color: @warning;
- flex-shrink: 0;
- }
-
- span {
- font-weight: @font-weight-medium;
- }
- }
-
- .secret-display {
- display: flex;
- align-items: center;
- gap: @space-3;
- padding: @space-4;
- background: @bg-hover;
- border-radius: @radius-md;
- margin-bottom: @space-4;
-
- code {
- flex: 1;
- font-family: @font-mono;
- font-size: @font-size-sm;
- word-break: break-all;
- }
- }
-
- // Repositories Tab
- .repositories-tab {
- .repos-header {
- display: flex;
- justify-content: space-between;
- align-items: center;
- margin-bottom: @space-5;
-
- h3 {
- margin: 0;
- font-size: @font-size-md;
- font-weight: @font-weight-semibold;
- }
- }
-
- .loading-state {
- display: flex;
- justify-content: center;
- padding: @space-10;
- }
-
- .empty-state {
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- padding: @space-10;
- background: @bg-card;
- border-radius: @radius-xl;
- text-align: center;
-
- svg {
- color: @text-tertiary;
- margin-bottom: @space-4;
- }
-
- h4 {
- margin: 0 0 @space-2 0;
- font-size: @font-size-lg;
- font-weight: @font-weight-semibold;
- }
-
- p {
- margin: 0 0 @space-5 0;
- color: @text-secondary;
- }
- }
-
- .repos-list {
- display: flex;
- flex-direction: column;
- gap: @space-3;
- }
-
- .repo-card {
- display: flex;
- align-items: center;
- padding: @space-4;
- background: @bg-card;
- border-radius: @radius-lg;
- border: 1px solid @border-subtle;
- cursor: pointer;
- transition: all @transition-fast;
-
- &:hover {
- border-color: @accent-primary;
- background: @bg-hover;
-
- .repo-arrow {
- color: @accent-primary;
- }
- }
-
- .repo-info {
- flex: 1;
- min-width: 0;
-
- .repo-name {
- display: flex;
- align-items: center;
- gap: @space-2;
- margin-bottom: @space-2;
-
- .owner {
- color: @text-secondary;
- }
-
- .name {
- font-weight: @font-weight-semibold;
- }
-
- .badge {
- padding: 2px @space-2;
- border-radius: @radius-sm;
- font-size: @font-size-xs;
- font-weight: @font-weight-medium;
-
- &.private {
- background: fade(@warning, 20%);
- color: @warning;
- }
-
- &.fork {
- background: fade(@info, 20%);
- color: @info;
- }
- }
- }
-
- .repo-description {
- margin: 0 0 @space-2 0;
- font-size: @font-size-sm;
- color: @text-secondary;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- }
-
- .repo-meta {
- display: flex;
- align-items: center;
- gap: @space-4;
- font-size: @font-size-xs;
- color: @text-tertiary;
-
- .meta-item {
- display: flex;
- align-items: center;
- gap: @space-1;
-
- svg {
- opacity: 0.6;
- }
-
- &.updated {
- margin-left: auto;
- }
- }
- }
- }
-
- .repo-arrow {
- color: @text-tertiary;
- transition: color @transition-fast;
- }
- }
-
- // Repository Detail View
- .repo-detail {
- .repo-detail-header {
- display: flex;
- align-items: flex-start;
- gap: @space-4;
- margin-bottom: @space-5;
- padding-bottom: @space-4;
- border-bottom: 1px solid @border-subtle;
-
- .btn-ghost {
- padding: @space-2;
- }
-
- .repo-title {
- flex: 1;
-
- h3 {
- margin: 0 0 @space-1 0;
- font-size: @font-size-lg;
- font-weight: @font-weight-semibold;
- }
-
- p {
- margin: 0;
- font-size: @font-size-sm;
- color: @text-secondary;
- }
- }
-
- .branch-selector {
- select {
- padding: @space-2 @space-4;
- background: @bg-card;
- border: 1px solid @border-default;
- border-radius: @radius-md;
- font-size: @font-size-sm;
- color: @text-primary;
- cursor: pointer;
-
- &:focus {
- outline: none;
- border-color: @accent-primary;
- }
- }
- }
- }
-
- .repo-detail-tabs {
- display: flex;
- gap: @space-1;
- margin-bottom: @space-4;
- border-bottom: 1px solid @border-subtle;
-
- .tab {
- display: flex;
- align-items: center;
- gap: @space-2;
- padding: @space-3 @space-4;
- background: none;
- border: none;
- font-size: @font-size-sm;
- font-weight: @font-weight-medium;
- color: @text-secondary;
- cursor: pointer;
- position: relative;
- transition: color @transition-fast;
-
- &:hover {
- color: @text-primary;
- }
-
- &.active {
- color: @accent-primary;
-
- &::after {
- content: '';
- position: absolute;
- bottom: -1px;
- left: 0;
- right: 0;
- height: 2px;
- background: @accent-primary;
- }
- }
- }
- }
-
- .repo-detail-content {
- background: @bg-card;
- border-radius: @radius-lg;
- border: 1px solid @border-subtle;
- }
- }
-
- // Files Browser
- .files-browser {
- .breadcrumb {
- display: flex;
- align-items: center;
- padding: @space-3 @space-4;
- background: @bg-hover;
- border-bottom: 1px solid @border-subtle;
- font-size: @font-size-sm;
-
- button {
- background: none;
- border: none;
- color: @accent-primary;
- cursor: pointer;
- padding: 0;
-
- &:hover {
- text-decoration: underline;
- }
- }
-
- .separator {
- margin: 0 @space-2;
- color: @text-tertiary;
- }
- }
-
- .files-list {
- .file-item {
- display: flex;
- align-items: center;
- gap: @space-3;
- padding: @space-3 @space-4;
- border-bottom: 1px solid @border-subtle;
- transition: background @transition-fast;
-
- &:last-child {
- border-bottom: none;
- }
-
- &.dir {
- cursor: pointer;
-
- &:hover {
- background: @bg-hover;
- }
- }
-
- .file-icon {
- color: @text-tertiary;
- }
-
- &.dir .file-icon svg {
- color: @info;
- }
-
- .file-name {
- flex: 1;
- font-size: @font-size-sm;
- }
-
- .file-size {
- font-size: @font-size-xs;
- color: @text-tertiary;
- font-family: @font-mono;
- }
- }
- }
- }
-
- // Commits List
- .commits-list {
- .commit-item {
- display: flex;
- align-items: flex-start;
- gap: @space-4;
- padding: @space-4;
- border-bottom: 1px solid @border-subtle;
-
- &:last-child {
- border-bottom: none;
- }
-
- .commit-info {
- flex: 1;
- min-width: 0;
-
- .commit-message {
- font-size: @font-size-sm;
- font-weight: @font-weight-medium;
- margin-bottom: @space-1;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- }
-
- .commit-meta {
- font-size: @font-size-xs;
- color: @text-tertiary;
-
- .author {
- color: @text-secondary;
- margin-right: @space-2;
- }
- }
- }
-
- .commit-sha {
- code {
- padding: @space-1 @space-2;
- background: @bg-hover;
- border-radius: @radius-sm;
- font-size: @font-size-xs;
- font-family: @font-mono;
- color: @accent-primary;
- }
- }
- }
-
- .btn-block {
- width: 100%;
- margin: @space-4;
- width: calc(100% - @space-8);
- }
- }
-
- // Branches List
- .branches-list {
- .branch-item {
- display: flex;
- align-items: center;
- gap: @space-4;
- padding: @space-4;
- border-bottom: 1px solid @border-subtle;
-
- &:last-child {
- border-bottom: none;
- }
-
- &.active {
- background: fade(@accent-primary-raw, 5%);
- }
-
- .branch-info {
- flex: 1;
-
- .branch-name {
- display: flex;
- align-items: center;
- gap: @space-2;
- font-size: @font-size-sm;
- font-weight: @font-weight-medium;
- margin-bottom: @space-1;
-
- svg {
- color: @text-tertiary;
- }
-
- .badge {
- padding: 2px @space-2;
- border-radius: @radius-sm;
- font-size: @font-size-xs;
- font-weight: @font-weight-medium;
-
- &.default {
- background: fade(@success, 20%);
- color: @success;
- }
-
- &.protected {
- background: fade(@warning, 20%);
- color: @warning;
- }
- }
- }
-
- .branch-commit {
- font-size: @font-size-xs;
- color: @text-tertiary;
-
- code {
- color: @accent-primary;
- margin-right: @space-2;
- }
- }
- }
- }
- }
- }
-
- // Deployments Tab
- .deployments-tab {
- .deployments-header {
- display: flex;
- justify-content: space-between;
- align-items: flex-start;
- margin-bottom: @space-5;
-
- h3 {
- margin: 0 0 @space-1 0;
- font-size: @font-size-md;
- font-weight: @font-weight-semibold;
- }
-
- .text-muted {
- color: @text-secondary;
- font-size: @font-size-sm;
- margin: 0;
- }
- }
-
- .loading-state {
- display: flex;
- justify-content: center;
- padding: @space-10;
- }
-
- .empty-state {
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- padding: @space-10;
- background: @bg-card;
- border-radius: @radius-xl;
- text-align: center;
-
- svg {
- color: @text-tertiary;
- margin-bottom: @space-4;
- }
-
- h4 {
- margin: 0 0 @space-2 0;
- font-size: @font-size-lg;
- font-weight: @font-weight-semibold;
- }
-
- p {
- margin: 0 0 @space-5 0;
- color: @text-secondary;
- }
- }
-
- .deployments-list {
- display: flex;
- flex-direction: column;
- gap: @space-4;
- }
-
- .deployment-card {
- background: @bg-card;
- border-radius: @radius-lg;
- padding: @space-5;
- border: 1px solid @border-subtle;
- border-left: 4px solid @border-subtle;
-
- &.success {
- border-left-color: @success;
- }
-
- &.failed {
- border-left-color: @danger;
- }
-
- &.running {
- border-left-color: @warning;
- }
-
- .deployment-header {
- display: flex;
- justify-content: space-between;
- align-items: center;
- margin-bottom: @space-4;
-
- .deployment-version {
- display: flex;
- align-items: center;
- gap: @space-3;
-
- .version {
- font-size: @font-size-lg;
- font-weight: @font-weight-semibold;
- }
-
- .badge {
- padding: 2px @space-2;
- border-radius: @radius-sm;
- font-size: @font-size-xs;
- font-weight: @font-weight-medium;
-
- &.rollback {
- background: fade(@info, 20%);
- color: @info;
- }
- }
-
- .status-badge {
- padding: @space-1 @space-2;
- border-radius: @radius-md;
- font-size: @font-size-xs;
- font-weight: @font-weight-medium;
- text-transform: uppercase;
-
- &.success {
- background: fade(@success, 15%);
- color: @success;
- }
-
- &.failed {
- background: fade(@danger, 15%);
- color: @danger;
- }
-
- &.running {
- background: fade(@warning, 15%);
- color: @warning;
- }
- }
- }
-
- .deployment-time {
- font-size: @font-size-sm;
- color: @text-tertiary;
- }
- }
-
- .deployment-details {
- display: grid;
- grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
- gap: @space-3;
- margin-bottom: @space-4;
- padding: @space-4;
- background: @bg-hover;
- border-radius: @radius-md;
-
- .detail-item {
- display: flex;
- align-items: center;
- gap: @space-2;
- font-size: @font-size-sm;
-
- .label {
- color: @text-tertiary;
- }
-
- .value {
- color: @text-primary;
- }
-
- code {
- padding: 2px @space-2;
- background: @bg-card;
- border-radius: @radius-sm;
- font-size: @font-size-xs;
- font-family: @font-mono;
- color: @accent-primary;
- }
-
- &.commit-message {
- grid-column: 1 / -1;
-
- .message {
- color: @text-secondary;
- font-style: italic;
- }
- }
-
- &.error {
- grid-column: 1 / -1;
- color: @danger;
-
- .value {
- color: @danger;
- }
- }
- }
- }
-
- .deployment-actions {
- display: flex;
- gap: @space-2;
- flex-wrap: wrap;
- }
- }
- }
-
- // Form section for webhook modal
- .form-section {
- margin-top: @space-5;
- padding-top: @space-5;
- border-top: 1px solid @border-subtle;
-
- h4 {
- margin: 0 0 @space-1 0;
- font-size: @font-size-base;
- font-weight: @font-weight-semibold;
- }
-
- .text-muted {
- color: @text-secondary;
- font-size: @font-size-sm;
- margin: 0 0 @space-4 0;
- }
- }
-
- .form-hint {
- display: block;
- font-size: @font-size-xs;
- color: @text-tertiary;
- margin-top: @space-1;
- }
-
- .form-group textarea {
- width: 100%;
- min-height: 80px;
- padding: @space-3;
- font-family: @font-mono;
- font-size: @font-size-sm;
- background: @bg-elevated;
- border: 1px solid @border-default;
- border-radius: @radius-md;
- color: @text-primary;
- resize: vertical;
-
- &:focus {
- outline: none;
- border-color: @accent-primary;
- }
-
- &::placeholder {
- color: @text-tertiary;
- }
- }
-
- // Modal XL size
- .modal-xl {
- max-width: 800px;
- }
-
- // Deployment Logs Modal
- .deployment-summary {
- display: flex;
- flex-wrap: wrap;
- gap: @space-4;
- padding: @space-4;
- background: @bg-hover;
- border-radius: @radius-md;
- margin-bottom: @space-4;
-
- .summary-item {
- display: flex;
- align-items: center;
- gap: @space-2;
- font-size: @font-size-sm;
-
- .label {
- color: @text-tertiary;
- }
-
- .status-badge {
- padding: @space-1 @space-2;
- border-radius: @radius-md;
- font-size: @font-size-xs;
- font-weight: @font-weight-medium;
- text-transform: uppercase;
-
- &.success {
- background: fade(@success, 15%);
- color: @success;
- }
-
- &.failed {
- background: fade(@danger, 15%);
- color: @danger;
- }
-
- &.running {
- background: fade(@warning, 15%);
- color: @warning;
- }
- }
-
- code {
- padding: 2px @space-2;
- background: @bg-card;
- border-radius: @radius-sm;
- font-size: @font-size-xs;
- font-family: @font-mono;
- color: @accent-primary;
- }
- }
- }
-
- .deployment-error {
- padding: @space-4;
- background: fade(@danger, 10%);
- border: 1px solid fade(@danger, 30%);
- border-radius: @radius-md;
- margin-bottom: @space-4;
- color: @danger;
- font-size: @font-size-sm;
-
- strong {
- margin-right: @space-2;
- }
- }
-
- .log-section {
- margin-bottom: @space-4;
-
- h4 {
- margin: 0 0 @space-2 0;
- font-size: @font-size-sm;
- font-weight: @font-weight-semibold;
- color: @text-secondary;
- }
-
- .log-output {
- padding: @space-4;
- background: @bg-hover;
- border-radius: @radius-md;
- font-family: @font-mono;
- font-size: @font-size-xs;
- color: @text-primary;
- white-space: pre-wrap;
- word-break: break-all;
- max-height: 300px;
- overflow-y: auto;
- margin: 0;
- }
- }
-
- .no-logs {
- padding: @space-6;
- text-align: center;
- color: @text-tertiary;
- }
-}
diff --git a/frontend/src/styles/pages/_git.scss b/frontend/src/styles/pages/_git.scss
new file mode 100644
index 00000000..06bbba4a
--- /dev/null
+++ b/frontend/src/styles/pages/_git.scss
@@ -0,0 +1,1469 @@
+// ============================================
+// GIT PAGE
+// ============================================
+
+.git-page {
+ .page-header {
+ display: flex;
+ justify-content: space-between;
+ align-items: flex-start;
+ margin-bottom: $space-6;
+ flex-wrap: wrap;
+ gap: $space-4;
+
+ .page-header-content {
+ h1 {
+ font-size: $font-size-2xl;
+ font-weight: $font-weight-semibold;
+ margin: 0 0 $space-1 0;
+ }
+
+ .page-description {
+ color: $text-secondary;
+ margin: 0;
+ }
+ }
+
+ .page-header-actions {
+ display: flex;
+ gap: $space-2;
+ }
+ }
+
+ .page-loading {
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ min-height: 400px;
+ }
+
+ .empty-state-large {
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
+ padding: 60px $space-6;
+ background: $bg-card;
+ border-radius: $radius-xl;
+ text-align: center;
+
+ .empty-icon {
+ color: $text-tertiary;
+ margin-bottom: $space-6;
+ }
+
+ h2 {
+ margin: 0 0 $space-3 0;
+ font-size: $font-size-2xl;
+ font-weight: $font-weight-semibold;
+ }
+
+ p {
+ margin: 0 0 $space-6 0;
+ color: $text-secondary;
+ max-width: 400px;
+ }
+ }
+
+ .resource-warning {
+ background: fade($warning, 10%);
+ border: 1px solid fade($warning, 30%);
+ border-radius: $radius-lg;
+ padding: $space-5;
+ margin-bottom: $space-6;
+ text-align: left;
+ max-width: 500px;
+
+ .warning-header {
+ display: flex;
+ align-items: center;
+ gap: $space-2;
+ margin-bottom: $space-3;
+ color: $warning;
+
+ strong {
+ color: $text-primary;
+ }
+ }
+
+ ul {
+ margin: 0;
+ padding-left: $space-5;
+ color: $text-secondary;
+ font-size: $font-size-sm;
+
+ li {
+ margin-bottom: $space-1;
+
+ &:last-child {
+ margin-bottom: 0;
+ }
+
+ strong {
+ color: $text-primary;
+ }
+ }
+ }
+ }
+
+ .status-cards {
+ display: grid;
+ grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
+ gap: $space-4;
+ margin-bottom: $space-6;
+ }
+
+ .status-card {
+ display: flex;
+ align-items: center;
+ gap: $space-4;
+ padding: $space-5;
+ background: $bg-card;
+ border-radius: $radius-xl;
+ border-left: 4px solid $border-subtle;
+
+ &.success {
+ border-left-color: $success;
+
+ .status-icon {
+ color: $success;
+ }
+ }
+
+ &.danger {
+ border-left-color: $danger;
+
+ .status-icon {
+ color: $danger;
+ }
+ }
+
+ &.warning {
+ border-left-color: $warning;
+
+ .status-icon {
+ color: $warning;
+ }
+ }
+
+ .status-icon {
+ color: $text-tertiary;
+ }
+
+ .status-info {
+ display: flex;
+ flex-direction: column;
+ gap: $space-1;
+
+ .status-label {
+ font-size: $font-size-sm;
+ color: $text-secondary;
+ }
+
+ .status-value {
+ font-size: $font-size-lg;
+ font-weight: $font-weight-semibold;
+ }
+ }
+ }
+
+ .tabs {
+ display: flex;
+ gap: $space-1;
+ margin-bottom: $space-6;
+ border-bottom: 1px solid $border-subtle;
+
+ .tab {
+ padding: $space-3 $space-5;
+ background: none;
+ border: none;
+ font-size: $font-size-base;
+ font-weight: $font-weight-medium;
+ color: $text-secondary;
+ cursor: pointer;
+ position: relative;
+ transition: color $transition-fast;
+
+ &:hover {
+ color: $text-primary;
+ }
+
+ &.active {
+ color: $accent-primary;
+
+ &::after {
+ content: '';
+ position: absolute;
+ bottom: -1px;
+ left: 0;
+ right: 0;
+ height: 2px;
+ background: $accent-primary;
+ }
+ }
+ }
+ }
+
+ .tab-content {
+ .section-header {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ margin-bottom: $space-4;
+
+ h3 {
+ margin: 0;
+ font-size: $font-size-md;
+ font-weight: $font-weight-semibold;
+ }
+ }
+ }
+
+ // Overview Tab
+ .overview-tab {
+ display: grid;
+ grid-template-columns: 1fr 1fr;
+ gap: $space-6;
+
+ @media (max-width: $breakpoint-md) {
+ grid-template-columns: 1fr;
+ }
+
+ .info-card {
+ background: $bg-card;
+ border-radius: $radius-lg;
+ padding: $space-5;
+
+ h3 {
+ margin: 0 0 $space-4 0;
+ font-size: $font-size-md;
+ font-weight: $font-weight-semibold;
+ }
+ }
+
+ .info-grid {
+ display: grid;
+ gap: $space-3;
+ }
+
+ .info-item {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ padding: $space-2 0;
+ border-bottom: 1px solid $border-subtle;
+
+ &:last-child {
+ border-bottom: none;
+ }
+
+ .info-label {
+ font-size: $font-size-sm;
+ color: $text-secondary;
+ }
+
+ .info-value {
+ font-size: $font-size-sm;
+ font-weight: $font-weight-medium;
+
+ &.text-success {
+ color: $success;
+ }
+
+ &.text-danger {
+ color: $danger;
+ }
+
+ &.code {
+ font-family: $font-mono;
+ font-size: $font-size-xs;
+ background: $bg-hover;
+ padding: $space-1 $space-2;
+ border-radius: $radius-sm;
+ }
+
+ a {
+ color: $accent-primary;
+ text-decoration: none;
+
+ &:hover {
+ text-decoration: underline;
+ }
+ }
+ }
+ }
+
+ .quick-actions {
+ display: flex;
+ gap: $space-3;
+ flex-wrap: wrap;
+ }
+ }
+
+ // Access Tab
+ .access-tab {
+ display: flex;
+ flex-direction: column;
+ gap: $space-4;
+
+ .info-card {
+ background: $bg-card;
+ border-radius: $radius-lg;
+ padding: $space-5;
+
+ h3 {
+ margin: 0 0 $space-2 0;
+ font-size: $font-size-md;
+ font-weight: $font-weight-semibold;
+ }
+
+ .text-muted {
+ color: $text-secondary;
+ font-size: $font-size-sm;
+ margin: 0 0 $space-4 0;
+ }
+ }
+
+ .access-url {
+ display: flex;
+ align-items: center;
+ gap: $space-3;
+ background: $bg-hover;
+ padding: $space-3 $space-4;
+ border-radius: $radius-md;
+ margin-bottom: $space-3;
+
+ code {
+ flex: 1;
+ font-family: $font-mono;
+ font-size: $font-size-sm;
+ color: $accent-primary;
+ word-break: break-all;
+ }
+ }
+
+ .ssh-note {
+ font-size: $font-size-sm;
+ color: $text-secondary;
+ padding: $space-3;
+ background: fade($info, 10%);
+ border-radius: $radius-md;
+ border-left: 3px solid $info;
+
+ strong {
+ color: $text-primary;
+ }
+ }
+ }
+
+ // Settings Tab
+ .settings-tab {
+ display: flex;
+ flex-direction: column;
+ gap: $space-4;
+
+ .info-card {
+ background: $bg-card;
+ border-radius: $radius-lg;
+ padding: $space-5;
+
+ h3 {
+ margin: 0 0 $space-4 0;
+ font-size: $font-size-md;
+ font-weight: $font-weight-semibold;
+ }
+
+ &.danger-zone {
+ border: 1px solid fade($danger, 30%);
+ background: fade($danger, 5%);
+
+ h3 {
+ color: $danger;
+ }
+
+ .text-muted {
+ color: $text-secondary;
+ font-size: $font-size-sm;
+ margin: 0;
+ }
+ }
+ }
+
+ .settings-actions {
+ display: flex;
+ gap: $space-3;
+ }
+ }
+
+ // Install Modal
+ .modal-lg {
+ max-width: 500px;
+ }
+
+ .install-warning {
+ display: flex;
+ gap: $space-3;
+ background: fade($info, 10%);
+ border: 1px solid fade($info, 30%);
+ border-radius: $radius-lg;
+ padding: $space-4;
+ margin-bottom: $space-5;
+
+ svg {
+ flex-shrink: 0;
+ color: $info;
+ }
+
+ strong {
+ display: block;
+ margin-bottom: $space-2;
+ }
+
+ ul {
+ margin: 0;
+ padding-left: $space-4;
+ font-size: $font-size-sm;
+ color: $text-secondary;
+
+ li {
+ margin-bottom: $space-1;
+ }
+ }
+ }
+
+ .required {
+ color: $danger;
+ }
+
+ // Webhooks Tab
+ .webhooks-tab {
+ .webhooks-header {
+ display: flex;
+ justify-content: space-between;
+ align-items: flex-start;
+ margin-bottom: $space-5;
+
+ h3 {
+ margin: 0 0 $space-1 0;
+ font-size: $font-size-md;
+ font-weight: $font-weight-semibold;
+ }
+
+ .text-muted {
+ color: $text-secondary;
+ font-size: $font-size-sm;
+ margin: 0;
+ }
+ }
+
+ .loading-state {
+ display: flex;
+ justify-content: center;
+ padding: $space-10;
+ }
+
+ .empty-state {
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
+ padding: $space-10;
+ background: $bg-card;
+ border-radius: $radius-xl;
+ text-align: center;
+
+ svg {
+ color: $text-tertiary;
+ margin-bottom: $space-4;
+ }
+
+ h4 {
+ margin: 0 0 $space-2 0;
+ font-size: $font-size-lg;
+ font-weight: $font-weight-semibold;
+ }
+
+ p {
+ margin: 0 0 $space-5 0;
+ color: $text-secondary;
+ }
+ }
+
+ .webhooks-list {
+ display: flex;
+ flex-direction: column;
+ gap: $space-4;
+ }
+
+ .webhook-card {
+ background: $bg-card;
+ border-radius: $radius-lg;
+ padding: $space-5;
+ border: 1px solid $border-subtle;
+ transition: border-color $transition-fast;
+
+ &:hover {
+ border-color: $border-default;
+ }
+
+ &.inactive {
+ opacity: 0.7;
+ background: $bg-hover;
+ }
+
+ .webhook-header {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ margin-bottom: $space-4;
+
+ .webhook-info {
+ display: flex;
+ align-items: center;
+ gap: $space-3;
+
+ h4 {
+ margin: 0;
+ font-size: $font-size-md;
+ font-weight: $font-weight-semibold;
+ }
+ }
+
+ .webhook-status {
+ display: flex;
+ align-items: center;
+ gap: $space-2;
+ font-size: $font-size-sm;
+ color: $text-secondary;
+
+ .status-dot {
+ width: 8px;
+ height: 8px;
+ border-radius: 50%;
+ background: $text-tertiary;
+
+ &.active {
+ background: $success;
+ }
+
+ &.inactive {
+ background: $text-tertiary;
+ }
+ }
+ }
+ }
+
+ .webhook-details {
+ display: grid;
+ grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
+ gap: $space-3;
+ margin-bottom: $space-4;
+ padding: $space-4;
+ background: $bg-hover;
+ border-radius: $radius-md;
+
+ .detail-item {
+ display: flex;
+ flex-direction: column;
+ gap: $space-1;
+
+ .label {
+ font-size: $font-size-xs;
+ color: $text-tertiary;
+ text-transform: uppercase;
+ letter-spacing: 0.5px;
+ }
+
+ .value {
+ font-size: $font-size-sm;
+ color: $text-primary;
+ word-break: break-all;
+ }
+ }
+ }
+
+ .webhook-actions {
+ display: flex;
+ gap: $space-2;
+ flex-wrap: wrap;
+ }
+ }
+
+ .source-badge {
+ display: inline-flex;
+ align-items: center;
+ padding: $space-1 $space-2;
+ border-radius: $radius-md;
+ font-size: $font-size-xs;
+ font-weight: $font-weight-medium;
+ text-transform: uppercase;
+
+ &.github {
+ background: fade(#333, 15%);
+ color: #333;
+
+ @media (prefers-color-scheme: dark) {
+ background: fade(#f0f0f0, 15%);
+ color: #f0f0f0;
+ }
+ }
+
+ &.gitlab {
+ background: fade(#fc6d26, 15%);
+ color: #fc6d26;
+ }
+
+ &.bitbucket {
+ background: fade(#0052cc, 15%);
+ color: #0052cc;
+ }
+ }
+ }
+
+ // Webhook Modal
+ .form-row {
+ display: grid;
+ grid-template-columns: 1fr 1fr;
+ gap: $space-4;
+
+ @media (max-width: $breakpoint-sm) {
+ grid-template-columns: 1fr;
+ }
+ }
+
+ .form-group.checkbox {
+ label {
+ display: flex;
+ align-items: center;
+ gap: $space-2;
+ cursor: pointer;
+ font-weight: $font-weight-normal;
+
+ input[type="checkbox"] {
+ width: 18px;
+ height: 18px;
+ cursor: pointer;
+ }
+ }
+ }
+
+ // Secret Display
+ .secret-warning {
+ display: flex;
+ align-items: center;
+ gap: $space-3;
+ padding: $space-4;
+ background: fade($warning, 15%);
+ border: 1px solid fade($warning, 30%);
+ border-radius: $radius-md;
+ margin-bottom: $space-4;
+
+ svg {
+ color: $warning;
+ flex-shrink: 0;
+ }
+
+ span {
+ font-weight: $font-weight-medium;
+ }
+ }
+
+ .secret-display {
+ display: flex;
+ align-items: center;
+ gap: $space-3;
+ padding: $space-4;
+ background: $bg-hover;
+ border-radius: $radius-md;
+ margin-bottom: $space-4;
+
+ code {
+ flex: 1;
+ font-family: $font-mono;
+ font-size: $font-size-sm;
+ word-break: break-all;
+ }
+ }
+
+ // Repositories Tab
+ .repositories-tab {
+ .repos-header {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ margin-bottom: $space-5;
+
+ h3 {
+ margin: 0;
+ font-size: $font-size-md;
+ font-weight: $font-weight-semibold;
+ }
+ }
+
+ .loading-state {
+ display: flex;
+ justify-content: center;
+ padding: $space-10;
+ }
+
+ .empty-state {
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
+ padding: $space-10;
+ background: $bg-card;
+ border-radius: $radius-xl;
+ text-align: center;
+
+ svg {
+ color: $text-tertiary;
+ margin-bottom: $space-4;
+ }
+
+ h4 {
+ margin: 0 0 $space-2 0;
+ font-size: $font-size-lg;
+ font-weight: $font-weight-semibold;
+ }
+
+ p {
+ margin: 0 0 $space-5 0;
+ color: $text-secondary;
+ }
+ }
+
+ .repos-list {
+ display: flex;
+ flex-direction: column;
+ gap: $space-3;
+ }
+
+ .repo-card {
+ display: flex;
+ align-items: center;
+ padding: $space-4;
+ background: $bg-card;
+ border-radius: $radius-lg;
+ border: 1px solid $border-subtle;
+ cursor: pointer;
+ transition: all $transition-fast;
+
+ &:hover {
+ border-color: $accent-primary;
+ background: $bg-hover;
+
+ .repo-arrow {
+ color: $accent-primary;
+ }
+ }
+
+ .repo-info {
+ flex: 1;
+ min-width: 0;
+
+ .repo-name {
+ display: flex;
+ align-items: center;
+ gap: $space-2;
+ margin-bottom: $space-2;
+
+ .owner {
+ color: $text-secondary;
+ }
+
+ .name {
+ font-weight: $font-weight-semibold;
+ }
+
+ .badge {
+ padding: 2px $space-2;
+ border-radius: $radius-sm;
+ font-size: $font-size-xs;
+ font-weight: $font-weight-medium;
+
+ &.private {
+ background: fade($warning, 20%);
+ color: $warning;
+ }
+
+ &.fork {
+ background: fade($info, 20%);
+ color: $info;
+ }
+ }
+ }
+
+ .repo-description {
+ margin: 0 0 $space-2 0;
+ font-size: $font-size-sm;
+ color: $text-secondary;
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ }
+
+ .repo-meta {
+ display: flex;
+ align-items: center;
+ gap: $space-4;
+ font-size: $font-size-xs;
+ color: $text-tertiary;
+
+ .meta-item {
+ display: flex;
+ align-items: center;
+ gap: $space-1;
+
+ svg {
+ opacity: 0.6;
+ }
+
+ &.updated {
+ margin-left: auto;
+ }
+ }
+ }
+ }
+
+ .repo-arrow {
+ color: $text-tertiary;
+ transition: color $transition-fast;
+ }
+ }
+
+ // Repository Detail View
+ .repo-detail {
+ .repo-detail-header {
+ display: flex;
+ align-items: flex-start;
+ gap: $space-4;
+ margin-bottom: $space-5;
+ padding-bottom: $space-4;
+ border-bottom: 1px solid $border-subtle;
+
+ .btn-ghost {
+ padding: $space-2;
+ }
+
+ .repo-title {
+ flex: 1;
+
+ h3 {
+ margin: 0 0 $space-1 0;
+ font-size: $font-size-lg;
+ font-weight: $font-weight-semibold;
+ }
+
+ p {
+ margin: 0;
+ font-size: $font-size-sm;
+ color: $text-secondary;
+ }
+ }
+
+ .branch-selector {
+ select {
+ padding: $space-2 $space-4;
+ background: $bg-card;
+ border: 1px solid $border-default;
+ border-radius: $radius-md;
+ font-size: $font-size-sm;
+ color: $text-primary;
+ cursor: pointer;
+
+ &:focus {
+ outline: none;
+ border-color: $accent-primary;
+ }
+ }
+ }
+ }
+
+ .repo-detail-tabs {
+ display: flex;
+ gap: $space-1;
+ margin-bottom: $space-4;
+ border-bottom: 1px solid $border-subtle;
+
+ .tab {
+ display: flex;
+ align-items: center;
+ gap: $space-2;
+ padding: $space-3 $space-4;
+ background: none;
+ border: none;
+ font-size: $font-size-sm;
+ font-weight: $font-weight-medium;
+ color: $text-secondary;
+ cursor: pointer;
+ position: relative;
+ transition: color $transition-fast;
+
+ &:hover {
+ color: $text-primary;
+ }
+
+ &.active {
+ color: $accent-primary;
+
+ &::after {
+ content: '';
+ position: absolute;
+ bottom: -1px;
+ left: 0;
+ right: 0;
+ height: 2px;
+ background: $accent-primary;
+ }
+ }
+ }
+ }
+
+ .repo-detail-content {
+ background: $bg-card;
+ border-radius: $radius-lg;
+ border: 1px solid $border-subtle;
+ }
+ }
+
+ // Files Browser
+ .files-browser {
+ .breadcrumb {
+ display: flex;
+ align-items: center;
+ padding: $space-3 $space-4;
+ background: $bg-hover;
+ border-bottom: 1px solid $border-subtle;
+ font-size: $font-size-sm;
+
+ button {
+ background: none;
+ border: none;
+ color: $accent-primary;
+ cursor: pointer;
+ padding: 0;
+
+ &:hover {
+ text-decoration: underline;
+ }
+ }
+
+ .separator {
+ margin: 0 $space-2;
+ color: $text-tertiary;
+ }
+ }
+
+ .files-list {
+ .file-item {
+ display: flex;
+ align-items: center;
+ gap: $space-3;
+ padding: $space-3 $space-4;
+ border-bottom: 1px solid $border-subtle;
+ transition: background $transition-fast;
+
+ &:last-child {
+ border-bottom: none;
+ }
+
+ &.dir {
+ cursor: pointer;
+
+ &:hover {
+ background: $bg-hover;
+ }
+ }
+
+ .file-icon {
+ color: $text-tertiary;
+ }
+
+ &.dir .file-icon svg {
+ color: $info;
+ }
+
+ .file-name {
+ flex: 1;
+ font-size: $font-size-sm;
+ }
+
+ .file-size {
+ font-size: $font-size-xs;
+ color: $text-tertiary;
+ font-family: $font-mono;
+ }
+ }
+ }
+ }
+
+ // Commits List
+ .commits-list {
+ .commit-item {
+ display: flex;
+ align-items: flex-start;
+ gap: $space-4;
+ padding: $space-4;
+ border-bottom: 1px solid $border-subtle;
+
+ &:last-child {
+ border-bottom: none;
+ }
+
+ .commit-info {
+ flex: 1;
+ min-width: 0;
+
+ .commit-message {
+ font-size: $font-size-sm;
+ font-weight: $font-weight-medium;
+ margin-bottom: $space-1;
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ }
+
+ .commit-meta {
+ font-size: $font-size-xs;
+ color: $text-tertiary;
+
+ .author {
+ color: $text-secondary;
+ margin-right: $space-2;
+ }
+ }
+ }
+
+ .commit-sha {
+ code {
+ padding: $space-1 $space-2;
+ background: $bg-hover;
+ border-radius: $radius-sm;
+ font-size: $font-size-xs;
+ font-family: $font-mono;
+ color: $accent-primary;
+ }
+ }
+ }
+
+ .btn-block {
+ width: 100%;
+ margin: $space-4;
+ width: calc(100% - $space-8);
+ }
+ }
+
+ // Branches List
+ .branches-list {
+ .branch-item {
+ display: flex;
+ align-items: center;
+ gap: $space-4;
+ padding: $space-4;
+ border-bottom: 1px solid $border-subtle;
+
+ &:last-child {
+ border-bottom: none;
+ }
+
+ &.active {
+ background: fade($accent-primary-raw, 5%);
+ }
+
+ .branch-info {
+ flex: 1;
+
+ .branch-name {
+ display: flex;
+ align-items: center;
+ gap: $space-2;
+ font-size: $font-size-sm;
+ font-weight: $font-weight-medium;
+ margin-bottom: $space-1;
+
+ svg {
+ color: $text-tertiary;
+ }
+
+ .badge {
+ padding: 2px $space-2;
+ border-radius: $radius-sm;
+ font-size: $font-size-xs;
+ font-weight: $font-weight-medium;
+
+ &.default {
+ background: fade($success, 20%);
+ color: $success;
+ }
+
+ &.protected {
+ background: fade($warning, 20%);
+ color: $warning;
+ }
+ }
+ }
+
+ .branch-commit {
+ font-size: $font-size-xs;
+ color: $text-tertiary;
+
+ code {
+ color: $accent-primary;
+ margin-right: $space-2;
+ }
+ }
+ }
+ }
+ }
+ }
+
+ // Deployments Tab
+ .deployments-tab {
+ .deployments-header {
+ display: flex;
+ justify-content: space-between;
+ align-items: flex-start;
+ margin-bottom: $space-5;
+
+ h3 {
+ margin: 0 0 $space-1 0;
+ font-size: $font-size-md;
+ font-weight: $font-weight-semibold;
+ }
+
+ .text-muted {
+ color: $text-secondary;
+ font-size: $font-size-sm;
+ margin: 0;
+ }
+ }
+
+ .loading-state {
+ display: flex;
+ justify-content: center;
+ padding: $space-10;
+ }
+
+ .empty-state {
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
+ padding: $space-10;
+ background: $bg-card;
+ border-radius: $radius-xl;
+ text-align: center;
+
+ svg {
+ color: $text-tertiary;
+ margin-bottom: $space-4;
+ }
+
+ h4 {
+ margin: 0 0 $space-2 0;
+ font-size: $font-size-lg;
+ font-weight: $font-weight-semibold;
+ }
+
+ p {
+ margin: 0 0 $space-5 0;
+ color: $text-secondary;
+ }
+ }
+
+ .deployments-list {
+ display: flex;
+ flex-direction: column;
+ gap: $space-4;
+ }
+
+ .deployment-card {
+ background: $bg-card;
+ border-radius: $radius-lg;
+ padding: $space-5;
+ border: 1px solid $border-subtle;
+ border-left: 4px solid $border-subtle;
+
+ &.success {
+ border-left-color: $success;
+ }
+
+ &.failed {
+ border-left-color: $danger;
+ }
+
+ &.running {
+ border-left-color: $warning;
+ }
+
+ .deployment-header {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ margin-bottom: $space-4;
+
+ .deployment-version {
+ display: flex;
+ align-items: center;
+ gap: $space-3;
+
+ .version {
+ font-size: $font-size-lg;
+ font-weight: $font-weight-semibold;
+ }
+
+ .badge {
+ padding: 2px $space-2;
+ border-radius: $radius-sm;
+ font-size: $font-size-xs;
+ font-weight: $font-weight-medium;
+
+ &.rollback {
+ background: fade($info, 20%);
+ color: $info;
+ }
+ }
+
+ .status-badge {
+ padding: $space-1 $space-2;
+ border-radius: $radius-md;
+ font-size: $font-size-xs;
+ font-weight: $font-weight-medium;
+ text-transform: uppercase;
+
+ &.success {
+ background: fade($success, 15%);
+ color: $success;
+ }
+
+ &.failed {
+ background: fade($danger, 15%);
+ color: $danger;
+ }
+
+ &.running {
+ background: fade($warning, 15%);
+ color: $warning;
+ }
+ }
+ }
+
+ .deployment-time {
+ font-size: $font-size-sm;
+ color: $text-tertiary;
+ }
+ }
+
+ .deployment-details {
+ display: grid;
+ grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
+ gap: $space-3;
+ margin-bottom: $space-4;
+ padding: $space-4;
+ background: $bg-hover;
+ border-radius: $radius-md;
+
+ .detail-item {
+ display: flex;
+ align-items: center;
+ gap: $space-2;
+ font-size: $font-size-sm;
+
+ .label {
+ color: $text-tertiary;
+ }
+
+ .value {
+ color: $text-primary;
+ }
+
+ code {
+ padding: 2px $space-2;
+ background: $bg-card;
+ border-radius: $radius-sm;
+ font-size: $font-size-xs;
+ font-family: $font-mono;
+ color: $accent-primary;
+ }
+
+ &.commit-message {
+ grid-column: 1 / -1;
+
+ .message {
+ color: $text-secondary;
+ font-style: italic;
+ }
+ }
+
+ &.error {
+ grid-column: 1 / -1;
+ color: $danger;
+
+ .value {
+ color: $danger;
+ }
+ }
+ }
+ }
+
+ .deployment-actions {
+ display: flex;
+ gap: $space-2;
+ flex-wrap: wrap;
+ }
+ }
+ }
+
+ // Form section for webhook modal
+ .form-section {
+ margin-top: $space-5;
+ padding-top: $space-5;
+ border-top: 1px solid $border-subtle;
+
+ h4 {
+ margin: 0 0 $space-1 0;
+ font-size: $font-size-base;
+ font-weight: $font-weight-semibold;
+ }
+
+ .text-muted {
+ color: $text-secondary;
+ font-size: $font-size-sm;
+ margin: 0 0 $space-4 0;
+ }
+ }
+
+ .form-hint {
+ display: block;
+ font-size: $font-size-xs;
+ color: $text-tertiary;
+ margin-top: $space-1;
+ }
+
+ .form-group textarea {
+ width: 100%;
+ min-height: 80px;
+ padding: $space-3;
+ font-family: $font-mono;
+ font-size: $font-size-sm;
+ background: $bg-elevated;
+ border: 1px solid $border-default;
+ border-radius: $radius-md;
+ color: $text-primary;
+ resize: vertical;
+
+ &:focus {
+ outline: none;
+ border-color: $accent-primary;
+ }
+
+ &::placeholder {
+ color: $text-tertiary;
+ }
+ }
+
+ // Modal XL size
+ .modal-xl {
+ max-width: 800px;
+ }
+
+ // Deployment Logs Modal
+ .deployment-summary {
+ display: flex;
+ flex-wrap: wrap;
+ gap: $space-4;
+ padding: $space-4;
+ background: $bg-hover;
+ border-radius: $radius-md;
+ margin-bottom: $space-4;
+
+ .summary-item {
+ display: flex;
+ align-items: center;
+ gap: $space-2;
+ font-size: $font-size-sm;
+
+ .label {
+ color: $text-tertiary;
+ }
+
+ .status-badge {
+ padding: $space-1 $space-2;
+ border-radius: $radius-md;
+ font-size: $font-size-xs;
+ font-weight: $font-weight-medium;
+ text-transform: uppercase;
+
+ &.success {
+ background: fade($success, 15%);
+ color: $success;
+ }
+
+ &.failed {
+ background: fade($danger, 15%);
+ color: $danger;
+ }
+
+ &.running {
+ background: fade($warning, 15%);
+ color: $warning;
+ }
+ }
+
+ code {
+ padding: 2px $space-2;
+ background: $bg-card;
+ border-radius: $radius-sm;
+ font-size: $font-size-xs;
+ font-family: $font-mono;
+ color: $accent-primary;
+ }
+ }
+ }
+
+ .deployment-error {
+ padding: $space-4;
+ background: fade($danger, 10%);
+ border: 1px solid fade($danger, 30%);
+ border-radius: $radius-md;
+ margin-bottom: $space-4;
+ color: $danger;
+ font-size: $font-size-sm;
+
+ strong {
+ margin-right: $space-2;
+ }
+ }
+
+ .log-section {
+ margin-bottom: $space-4;
+
+ h4 {
+ margin: 0 0 $space-2 0;
+ font-size: $font-size-sm;
+ font-weight: $font-weight-semibold;
+ color: $text-secondary;
+ }
+
+ .log-output {
+ padding: $space-4;
+ background: $bg-hover;
+ border-radius: $radius-md;
+ font-family: $font-mono;
+ font-size: $font-size-xs;
+ color: $text-primary;
+ white-space: pre-wrap;
+ word-break: break-all;
+ max-height: 300px;
+ overflow-y: auto;
+ margin: 0;
+ }
+ }
+
+ .no-logs {
+ padding: $space-6;
+ text-align: center;
+ color: $text-tertiary;
+ }
+}
diff --git a/frontend/src/styles/pages/_marketplace.less b/frontend/src/styles/pages/_marketplace.scss
similarity index 69%
rename from frontend/src/styles/pages/_marketplace.less
rename to frontend/src/styles/pages/_marketplace.scss
index 7f2773a7..2bd63f80 100644
--- a/frontend/src/styles/pages/_marketplace.less
+++ b/frontend/src/styles/pages/_marketplace.scss
@@ -3,8 +3,8 @@
.marketplace-page {
.marketplace-filters {
display: flex;
- gap: @spacing-md;
- margin: @spacing-lg 0;
+ gap: $spacing-md;
+ margin: $spacing-lg 0;
.form-input { flex: 1; }
.form-select { width: 200px; }
@@ -13,14 +13,14 @@
.extensions-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
- gap: @spacing-lg;
+ gap: $spacing-lg;
}
.extension-card {
- padding: @spacing-lg;
+ padding: $spacing-lg;
display: flex;
flex-direction: column;
- gap: @spacing-sm;
+ gap: $spacing-sm;
&__header {
display: flex;
@@ -30,7 +30,7 @@
}
&__desc {
- color: @text-secondary;
+ color: $text-secondary;
font-size: 0.9rem;
margin: 0;
line-height: 1.5;
@@ -40,45 +40,45 @@
display: flex;
justify-content: space-between;
font-size: 0.85rem;
- color: @text-muted;
+ color: $text-muted;
}
&__rating {
- color: @warning-color;
+ color: $warning-color;
letter-spacing: 1px;
}
&__info {
display: flex;
- gap: @spacing-sm;
+ gap: $spacing-sm;
font-size: 0.8rem;
- color: @text-muted;
+ color: $text-muted;
}
&__actions {
- margin-top: @spacing-sm;
- padding-top: @spacing-sm;
- border-top: 1px solid @border-color;
+ margin-top: $spacing-sm;
+ padding-top: $spacing-sm;
+ border-top: 1px solid $border-color;
}
}
.installed-list {
display: flex;
flex-direction: column;
- gap: @spacing-sm;
- margin-top: @spacing-lg;
+ gap: $spacing-sm;
+ margin-top: $spacing-lg;
}
.installed-item {
display: flex;
justify-content: space-between;
align-items: center;
- padding: @spacing-md;
+ padding: $spacing-md;
&__info {
display: flex;
align-items: baseline;
- gap: @spacing-sm;
+ gap: $spacing-sm;
}
}
}
diff --git a/frontend/src/styles/pages/_migration-wizard.less b/frontend/src/styles/pages/_migration-wizard.scss
similarity index 51%
rename from frontend/src/styles/pages/_migration-wizard.less
rename to frontend/src/styles/pages/_migration-wizard.scss
index 62257e71..bba61980 100644
--- a/frontend/src/styles/pages/_migration-wizard.less
+++ b/frontend/src/styles/pages/_migration-wizard.scss
@@ -10,38 +10,38 @@
// Status panel (version info)
// --------------------------------------------
.migration-status-panel {
- background: @bg-elevated;
- border: 1px solid @border-default;
- border-radius: @radius-xl;
- padding: @space-5;
- margin-bottom: @space-6;
+ background: $bg-elevated;
+ border: 1px solid $border-default;
+ border-radius: $radius-xl;
+ padding: $space-5;
+ margin-bottom: $space-6;
}
.migration-status-row {
display: flex;
justify-content: space-between;
align-items: center;
- padding: @space-2 0;
+ padding: $space-2 0;
&:not(:last-child) {
- border-bottom: 1px solid @border-subtle;
+ border-bottom: 1px solid $border-subtle;
}
}
.migration-status-label {
- color: @text-secondary;
- font-size: @font-size-sm;
+ color: $text-secondary;
+ font-size: $font-size-sm;
}
.migration-status-value {
- font-weight: @font-weight-semibold;
- font-size: @font-size-sm;
+ font-weight: $font-weight-semibold;
+ font-size: $font-size-sm;
- code& {
- background: @bg-secondary;
+ @at-root code#{&} {
+ background: $bg-secondary;
padding: 2px 8px;
- border-radius: @radius-md;
- font-family: @font-family-mono;
+ border-radius: $radius-md;
+ font-family: $font-family-mono;
}
}
@@ -49,43 +49,43 @@
// Migration list (pending changes)
// --------------------------------------------
.migration-list {
- margin-bottom: @space-6;
+ margin-bottom: $space-6;
}
.migration-list-title {
- font-size: @font-size-sm;
- font-weight: @font-weight-semibold;
- color: @text-secondary;
- margin-bottom: @space-3;
+ font-size: $font-size-sm;
+ font-weight: $font-weight-semibold;
+ color: $text-secondary;
+ margin-bottom: $space-3;
}
.migration-list-item {
display: flex;
align-items: center;
- gap: @space-3;
- padding: @space-3 @space-4;
- background: @bg-elevated;
- border: 1px solid @border-subtle;
- border-radius: @radius-lg;
- font-size: @font-size-sm;
+ gap: $space-3;
+ padding: $space-3 $space-4;
+ background: $bg-elevated;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-lg;
+ font-size: $font-size-sm;
&:not(:last-child) {
- margin-bottom: @space-2;
+ margin-bottom: $space-2;
}
svg {
flex-shrink: 0;
- color: @accent-primary;
+ color: $accent-primary;
}
code {
- font-family: @font-family-mono;
- color: @text-secondary;
- font-size: @font-size-xs;
+ font-family: $font-family-mono;
+ color: $text-secondary;
+ font-size: $font-size-xs;
}
span {
- color: @text-primary;
+ color: $text-primary;
}
}
@@ -93,34 +93,34 @@
// Login section (inline login for wizard)
// --------------------------------------------
.migration-login-section {
- margin-top: @space-6;
- padding-top: @space-6;
- border-top: 1px solid @border-default;
+ margin-top: $space-6;
+ padding-top: $space-6;
+ border-top: 1px solid $border-default;
}
.migration-login-form {
display: flex;
flex-direction: column;
- gap: @space-3;
+ gap: $space-3;
max-width: 400px;
input {
width: 100%;
- padding: @space-3 @space-4;
- background: @bg-elevated;
- border: 1px solid @border-default;
- border-radius: @radius-lg;
- font-size: @font-size-base;
- color: @text-primary;
- .transition(border-color);
+ padding: $space-3 $space-4;
+ background: $bg-elevated;
+ border: 1px solid $border-default;
+ border-radius: $radius-lg;
+ font-size: $font-size-base;
+ color: $text-primary;
+ @include transition(border-color);
&::placeholder {
- color: @text-tertiary;
+ color: $text-tertiary;
}
&:focus {
outline: none;
- border-color: @accent-primary;
+ border-color: $accent-primary;
}
}
@@ -130,39 +130,39 @@
}
.migration-error-inline {
- padding: @space-3;
- background: @danger-bg;
- border: 1px solid @danger-border;
- border-radius: @radius-lg;
- color: @danger;
- font-size: @font-size-sm;
+ padding: $space-3;
+ background: $danger-bg;
+ border: 1px solid $danger-border;
+ border-radius: $radius-lg;
+ color: $danger;
+ font-size: $font-size-sm;
}
// --------------------------------------------
// Backup status
// --------------------------------------------
.migration-backup-actions {
- margin-bottom: @space-6;
+ margin-bottom: $space-6;
}
.backup-status {
display: flex;
align-items: flex-start;
- gap: @space-3;
- padding: @space-4;
- border-radius: @radius-lg;
- margin-bottom: @space-6;
+ gap: $space-3;
+ padding: $space-4;
+ border-radius: $radius-lg;
+ margin-bottom: $space-6;
&--success {
- background: @success-bg;
- border: 1px solid @success-border;
- color: @success;
+ background: $success-bg;
+ border: 1px solid $success-border;
+ color: $success;
}
&--error {
- background: @danger-bg;
- border: 1px solid @danger-border;
- color: @danger;
+ background: $danger-bg;
+ border: 1px solid $danger-border;
+ color: $danger;
}
svg {
@@ -172,19 +172,19 @@
strong {
display: block;
- margin-bottom: @space-1;
+ margin-bottom: $space-1;
}
code {
display: block;
- font-size: @font-size-xs;
- color: @text-secondary;
+ font-size: $font-size-xs;
+ color: $text-secondary;
word-break: break-all;
- font-family: @font-family-mono;
+ font-family: $font-family-mono;
}
span {
- font-size: @font-size-sm;
+ font-size: $font-size-sm;
}
}
@@ -193,23 +193,23 @@
// --------------------------------------------
.migration-apply-actions {
text-align: center;
- padding: @space-6 0;
+ padding: $space-6 0;
}
.migration-progress {
display: flex;
flex-direction: column;
align-items: center;
- gap: @space-4;
- padding: @space-8 0;
- color: @text-secondary;
+ gap: $space-4;
+ padding: $space-8 0;
+ color: $text-secondary;
svg {
- color: @accent-primary;
+ color: $accent-primary;
}
span {
- font-size: @font-size-base;
+ font-size: $font-size-base;
}
}
@@ -218,59 +218,59 @@
// --------------------------------------------
.migration-success {
text-align: center;
- padding: @space-8 0;
+ padding: $space-8 0;
svg {
- color: @success;
- margin-bottom: @space-4;
+ color: $success;
+ margin-bottom: $space-4;
}
h2 {
- font-size: @font-size-xl;
- font-weight: @font-weight-bold;
- margin-bottom: @space-2;
+ font-size: $font-size-xl;
+ font-weight: $font-weight-bold;
+ margin-bottom: $space-2;
}
p {
- color: @text-secondary;
- font-size: @font-size-base;
+ color: $text-secondary;
+ font-size: $font-size-base;
}
code {
- background: @bg-secondary;
+ background: $bg-secondary;
padding: 2px 8px;
- border-radius: @radius-md;
- font-family: @font-family-mono;
- font-size: @font-size-sm;
+ border-radius: $radius-md;
+ font-family: $font-family-mono;
+ font-size: $font-size-sm;
}
}
.migration-error {
display: flex;
align-items: flex-start;
- gap: @space-3;
- padding: @space-4;
- background: @danger-bg;
- border: 1px solid @danger-border;
- border-radius: @radius-lg;
- margin-bottom: @space-6;
+ gap: $space-3;
+ padding: $space-4;
+ background: $danger-bg;
+ border: 1px solid $danger-border;
+ border-radius: $radius-lg;
+ margin-bottom: $space-6;
> svg {
flex-shrink: 0;
- color: @danger;
+ color: $danger;
margin-top: 2px;
}
strong {
display: block;
- color: @danger;
- margin-bottom: @space-1;
+ color: $danger;
+ margin-bottom: $space-1;
}
span {
display: block;
- font-size: @font-size-sm;
- color: @text-secondary;
+ font-size: $font-size-sm;
+ color: $text-secondary;
}
.btn-wizard-prev {
@@ -286,21 +286,21 @@
.migration-nav-right {
display: flex;
align-items: center;
- gap: @space-4;
+ gap: $space-4;
}
.btn-text-link {
background: none;
border: none;
- color: @text-tertiary;
- font-size: @font-size-sm;
+ color: $text-tertiary;
+ font-size: $font-size-sm;
cursor: pointer;
padding: 0;
text-decoration: underline;
- .transition(color);
+ @include transition(color);
&:hover {
- color: @text-secondary;
+ color: $text-secondary;
}
}
diff --git a/frontend/src/styles/pages/_monitoring.less b/frontend/src/styles/pages/_monitoring.scss
similarity index 60%
rename from frontend/src/styles/pages/_monitoring.less
rename to frontend/src/styles/pages/_monitoring.scss
index 16039516..ea41cccd 100644
--- a/frontend/src/styles/pages/_monitoring.less
+++ b/frontend/src/styles/pages/_monitoring.scss
@@ -6,54 +6,54 @@
.monitoring-overview {
display: flex;
flex-direction: column;
- gap: @space-6;
+ gap: $space-6;
}
.threshold-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
- gap: @space-4;
+ gap: $space-4;
}
.threshold-item {
display: flex;
justify-content: space-between;
align-items: center;
- padding: @space-4;
- background: @bg-hover;
- border-radius: @radius-md;
+ padding: $space-4;
+ background: $bg-hover;
+ border-radius: $radius-md;
}
.threshold-label {
- color: @text-secondary;
- font-size: @font-size-sm;
+ color: $text-secondary;
+ font-size: $font-size-sm;
}
.threshold-value {
- font-size: @font-size-lg;
- font-weight: @font-weight-semibold;
- color: @accent-primary;
+ font-size: $font-size-lg;
+ font-weight: $font-weight-semibold;
+ color: $accent-primary;
}
.threshold-form-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
- gap: @space-6;
+ gap: $space-6;
}
.alert-list {
display: flex;
flex-direction: column;
- gap: @space-2;
+ gap: $space-2;
}
.alert-item {
display: flex;
align-items: center;
- gap: @space-4;
- padding: @space-3 @space-4;
- background: @bg-hover;
- border-radius: @radius-md;
+ gap: $space-4;
+ padding: $space-3 $space-4;
+ background: $bg-hover;
+ border-radius: $radius-md;
.badge {
flex-shrink: 0;
@@ -61,13 +61,13 @@
.alert-message {
flex: 1;
- font-size: @font-size-sm;
- color: @text-primary;
+ font-size: $font-size-sm;
+ color: $text-primary;
}
.alert-time {
- color: @text-tertiary;
- font-size: @font-size-xs;
+ color: $text-tertiary;
+ font-size: $font-size-xs;
white-space: nowrap;
}
}
@@ -75,18 +75,18 @@
// Stat icon variants for monitoring
.stat-icon {
&.status {
- background: fade(@success, 10%);
- color: @success;
+ background: fade($success, 10%);
+ color: $success;
}
&.alerts {
- background: fade(@danger, 10%);
- color: @danger;
+ background: fade($danger, 10%);
+ color: $danger;
}
&.interval {
- background: fade(@accent-primary-raw, 10%);
- color: @accent-primary;
+ background: fade($accent-primary-raw, 10%);
+ color: $accent-primary;
}
&.notifications {
@@ -96,16 +96,16 @@
}
.text-success {
- color: @success;
+ color: $success;
}
.text-muted {
- color: @text-tertiary;
+ color: $text-tertiary;
}
.input-group {
display: flex;
- gap: @space-2;
+ gap: $space-2;
input {
flex: 1;
@@ -119,7 +119,7 @@
.checkbox-label {
display: flex;
align-items: center;
- gap: @space-2;
+ gap: $space-2;
cursor: pointer;
input[type="checkbox"] {
@@ -129,15 +129,15 @@
}
span {
- font-size: @font-size-sm;
- color: @text-primary;
+ font-size: $font-size-sm;
+ color: $text-primary;
}
}
.form-help {
display: block;
- margin-top: @space-1;
- font-size: @font-size-xs;
- color: @text-tertiary;
+ margin-top: $space-1;
+ font-size: $font-size-xs;
+ color: $text-tertiary;
}
}
diff --git a/frontend/src/styles/pages/_security.less b/frontend/src/styles/pages/_security.scss
similarity index 54%
rename from frontend/src/styles/pages/_security.less
rename to frontend/src/styles/pages/_security.scss
index 0ad68cb1..289c6123 100644
--- a/frontend/src/styles/pages/_security.less
+++ b/frontend/src/styles/pages/_security.scss
@@ -5,29 +5,29 @@
.security-page {
.tabs-nav {
display: flex;
- gap: @space-2;
- margin-bottom: @space-6;
- border-bottom: 1px solid @border-subtle;
- padding-bottom: @space-2;
+ gap: $space-2;
+ margin-bottom: $space-6;
+ border-bottom: 1px solid $border-subtle;
+ padding-bottom: $space-2;
overflow-x: auto;
.tab-btn {
- padding: @space-2 @space-4;
+ padding: $space-2 $space-4;
border: none;
background: none;
- color: @text-secondary;
+ color: $text-secondary;
cursor: pointer;
- border-radius: @radius-md;
+ border-radius: $radius-md;
white-space: nowrap;
transition: all 0.2s;
&:hover {
- background: @bg-hover;
- color: @text-primary;
+ background: $bg-hover;
+ color: $text-primary;
}
&.active {
- background: @accent-primary;
+ background: $accent-primary;
color: white;
}
}
@@ -39,37 +39,37 @@
.stats-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
- gap: @space-4;
- margin-bottom: @space-6;
+ gap: $space-4;
+ margin-bottom: $space-6;
}
.stat-card {
display: flex;
align-items: center;
- gap: @space-4;
- padding: @space-6;
- background: @bg-card;
- border-radius: @radius-lg;
- border: 1px solid @border-subtle;
+ gap: $space-4;
+ padding: $space-6;
+ background: $bg-card;
+ border-radius: $radius-lg;
+ border: 1px solid $border-subtle;
&.success {
- border-color: fade(@success, 30%);
- .stat-icon { color: @success; background: fade(@success, 15%); }
+ border-color: fade($success, 30%);
+ .stat-icon { color: $success; background: fade($success, 15%); }
}
&.warning {
- border-color: fade(@warning, 30%);
- .stat-icon { color: @warning; background: fade(@warning, 15%); }
+ border-color: fade($warning, 30%);
+ .stat-icon { color: $warning; background: fade($warning, 15%); }
}
&.danger {
- border-color: fade(@danger, 30%);
- .stat-icon { color: @danger; background: fade(@danger, 15%); }
+ border-color: fade($danger, 30%);
+ .stat-icon { color: $danger; background: fade($danger, 15%); }
}
&.info {
- border-color: fade(@accent-primary-raw, 30%);
- .stat-icon { color: @accent-primary; background: fade(@accent-primary-raw, 15%); }
+ border-color: fade($accent-primary-raw, 30%);
+ .stat-icon { color: $accent-primary; background: fade($accent-primary-raw, 15%); }
}
}
@@ -79,8 +79,8 @@
display: flex;
align-items: center;
justify-content: center;
- background: @bg-hover;
- border-radius: @radius-md;
+ background: $bg-hover;
+ border-radius: $radius-md;
flex-shrink: 0;
}
@@ -89,20 +89,20 @@
flex-direction: column;
.stat-value {
- font-size: @font-size-xl;
+ font-size: $font-size-xl;
font-weight: 700;
}
.stat-label {
- color: @text-secondary;
- font-size: @font-size-sm;
+ color: $text-secondary;
+ font-size: $font-size-sm;
}
}
.security-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
- gap: @space-4;
+ gap: $space-4;
}
}
@@ -111,10 +111,10 @@
.scan-options {
display: grid;
grid-template-columns: repeat(3, 1fr);
- gap: @space-4;
- margin-bottom: @space-4;
+ gap: $space-4;
+ margin-bottom: $space-4;
- @media (max-width: @breakpoint-md) {
+ @media (max-width: $breakpoint-md) {
grid-template-columns: 1fr;
}
}
@@ -124,28 +124,28 @@
flex-direction: column;
align-items: center;
text-align: center;
- padding: @space-6 @space-4;
- background: @bg-card;
- border: 1px solid @border-subtle;
- border-radius: @radius-lg;
+ padding: $space-6 $space-4;
+ background: $bg-card;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-lg;
cursor: pointer;
- .transition(all);
+ @include transition(all);
&:hover {
- border-color: @accent-primary;
- background: @bg-elevated;
+ border-color: $accent-primary;
+ background: $bg-elevated;
}
h4 {
- margin: 0 0 @space-1;
- font-size: @font-size-md;
- font-weight: @font-weight-semibold;
+ margin: 0 0 $space-1;
+ font-size: $font-size-md;
+ font-weight: $font-weight-semibold;
}
.scan-desc {
- color: @text-secondary;
- font-size: @font-size-sm;
- margin-bottom: @space-4;
+ color: $text-secondary;
+ font-size: $font-size-sm;
+ margin-bottom: $space-4;
}
.btn {
@@ -159,24 +159,24 @@
display: flex;
align-items: center;
justify-content: center;
- border-radius: @radius-md;
- background: fade(@accent-primary-raw, 10%);
- color: @accent-primary;
- margin-bottom: @space-3;
+ border-radius: $radius-md;
+ background: fade($accent-primary-raw, 10%);
+ color: $accent-primary;
+ margin-bottom: $space-3;
}
.scan-card--custom {
cursor: default;
&:hover {
- border-color: @border-subtle;
- background: @bg-card;
+ border-color: $border-subtle;
+ background: $bg-card;
}
}
.scan-custom-input {
display: flex;
- gap: @space-2;
+ gap: $space-2;
width: 100%;
margin-top: auto;
@@ -189,23 +189,23 @@
.scan-toolbar {
display: flex;
justify-content: flex-end;
- margin-bottom: @space-4;
+ margin-bottom: $space-4;
.btn {
display: flex;
align-items: center;
- gap: @space-2;
+ gap: $space-2;
}
}
.scan-progress {
- margin-bottom: @space-4;
- border-color: @accent-primary;
+ margin-bottom: $space-4;
+ border-color: $accent-primary;
.progress-info {
display: flex;
align-items: center;
- gap: @space-4;
+ gap: $space-4;
.spinner {
width: 32px;
@@ -216,7 +216,7 @@
margin: 0;
&:not(:last-child) {
- margin-bottom: @space-1;
+ margin-bottom: $space-1;
}
}
}
@@ -227,8 +227,8 @@
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
- font-family: @font-mono;
- font-size: @font-size-sm;
+ font-family: $font-mono;
+ font-size: $font-size-sm;
}
}
@@ -238,17 +238,17 @@
display: flex;
flex-direction: column;
align-items: center;
- padding: @space-8;
+ padding: $space-8;
text-align: center;
svg {
- color: @success;
- margin-bottom: @space-4;
+ color: $success;
+ margin-bottom: $space-4;
}
p {
- font-size: @font-size-lg;
- margin-bottom: @space-1;
+ font-size: $font-size-lg;
+ margin-bottom: $space-1;
}
}
}
@@ -256,21 +256,21 @@
// Integrity Tab
.integrity-tab {
.description {
- color: @text-secondary;
- margin-bottom: @space-6;
+ color: $text-secondary;
+ margin-bottom: $space-6;
}
.integrity-actions {
display: flex;
- gap: @space-4;
+ gap: $space-4;
}
.change-section {
- margin-bottom: @space-6;
+ margin-bottom: $space-6;
h4 {
- margin-bottom: @space-2;
- color: @warning;
+ margin-bottom: $space-2;
+ color: $warning;
}
}
@@ -278,16 +278,16 @@
list-style: none;
padding: 0;
margin: 0;
- background: @bg-hover;
- border-radius: @radius-md;
+ background: $bg-hover;
+ border-radius: $radius-md;
max-height: 300px;
overflow-y: auto;
li {
- padding: @space-2 @space-4;
- font-family: @font-mono;
- font-size: @font-size-sm;
- border-bottom: 1px solid @border-subtle;
+ padding: $space-2 $space-4;
+ font-family: $font-mono;
+ font-size: $font-size-sm;
+ border-bottom: 1px solid $border-subtle;
&:last-child {
border-bottom: none;
@@ -299,34 +299,34 @@
// Events Tab
.events-tab {
.card-warning {
- border-color: @warning;
+ border-color: $warning;
}
.failed-login-summary {
display: flex;
align-items: baseline;
- gap: @space-2;
+ gap: $space-2;
.count {
- font-size: @font-size-2xl;
+ font-size: $font-size-2xl;
font-weight: 700;
&.danger {
- color: @danger;
+ color: $danger;
}
}
.label {
- color: @text-secondary;
+ color: $text-secondary;
}
}
.recent-failures {
- margin-top: @space-4;
+ margin-top: $space-4;
summary {
cursor: pointer;
- color: @accent-primary;
+ color: $accent-primary;
&:hover {
text-decoration: underline;
@@ -334,11 +334,11 @@
}
pre {
- margin-top: @space-2;
- padding: @space-4;
- background: @bg-hover;
- border-radius: @radius-md;
- font-size: @font-size-xs;
+ margin-top: $space-2;
+ padding: $space-4;
+ background: $bg-hover;
+ border-radius: $radius-md;
+ font-size: $font-size-xs;
max-height: 200px;
overflow: auto;
}
@@ -347,32 +347,32 @@
.events-list {
display: flex;
flex-direction: column;
- gap: @space-2;
+ gap: $space-2;
}
.event-item {
display: flex;
align-items: flex-start;
- gap: @space-4;
- padding: @space-4;
- background: @bg-hover;
- border-radius: @radius-md;
- border-left: 3px solid @border-subtle;
+ gap: $space-4;
+ padding: $space-4;
+ background: $bg-hover;
+ border-radius: $radius-md;
+ border-left: 3px solid $border-subtle;
&.malware {
- border-left-color: @danger;
- .event-icon { color: @danger; }
+ border-left-color: $danger;
+ .event-icon { color: $danger; }
}
&.integrity {
- border-left-color: @warning;
- .event-icon { color: @warning; }
+ border-left-color: $warning;
+ .event-icon { color: $warning; }
}
}
.event-icon {
flex-shrink: 0;
- color: @text-secondary;
+ color: $text-secondary;
}
.event-content {
@@ -381,12 +381,12 @@
.event-message {
display: block;
- margin-bottom: @space-1;
+ margin-bottom: $space-1;
}
.event-time {
- font-size: @font-size-sm;
- color: @text-tertiary;
+ font-size: $font-size-sm;
+ color: $text-tertiary;
}
}
}
@@ -394,44 +394,44 @@
// Settings Tab
.settings-tab {
.card {
- margin-bottom: @space-6;
+ margin-bottom: $space-6;
}
.form-actions {
- margin-top: @space-6;
+ margin-top: $space-6;
}
}
// Shared Components
.not-installed {
text-align: center;
- padding: @space-6;
+ padding: $space-6;
p {
- margin-bottom: @space-4;
- color: @text-secondary;
+ margin-bottom: $space-4;
+ color: $text-secondary;
}
}
.info-list {
display: flex;
flex-direction: column;
- gap: @space-2;
+ gap: $space-2;
}
.info-item {
display: flex;
justify-content: space-between;
align-items: center;
- padding: @space-2 0;
- border-bottom: 1px solid @border-subtle;
+ padding: $space-2 0;
+ border-bottom: 1px solid $border-subtle;
&:last-child {
border-bottom: none;
}
.info-label {
- color: @text-secondary;
+ color: $text-secondary;
}
.info-value {
@@ -440,109 +440,109 @@
}
.help-text {
- color: @text-secondary;
- font-size: @font-size-sm;
+ color: $text-secondary;
+ font-size: $font-size-sm;
}
.loading-sm {
- color: @text-tertiary;
- font-size: @font-size-sm;
- padding: @space-4;
+ color: $text-tertiary;
+ font-size: $font-size-sm;
+ padding: $space-4;
}
// Firewall Tab
.firewall-tab {
.firewall-header {
- margin-bottom: @space-6;
+ margin-bottom: $space-6;
}
.firewall-status-row {
display: flex;
justify-content: space-between;
align-items: center;
- padding: @space-4;
- background: @bg-card;
- border-radius: @radius-lg;
- border: 1px solid @border-subtle;
+ padding: $space-4;
+ background: $bg-card;
+ border-radius: $radius-lg;
+ border: 1px solid $border-subtle;
}
.status-indicator {
display: flex;
align-items: center;
- gap: @space-2;
+ gap: $space-2;
font-weight: 600;
&.active {
- color: @success;
+ color: $success;
}
&.inactive {
- color: @danger;
+ color: $danger;
}
.firewall-type {
- color: @text-tertiary;
+ color: $text-tertiary;
font-weight: 400;
}
}
.firewall-actions {
display: flex;
- gap: @space-2;
+ gap: $space-2;
}
.firewall-stats {
display: flex;
- gap: @space-4;
- margin-bottom: @space-6;
+ gap: $space-4;
+ margin-bottom: $space-6;
}
.stat-mini {
display: flex;
flex-direction: column;
align-items: center;
- padding: @space-4 @space-6;
- background: @bg-card;
- border-radius: @radius-md;
- border: 1px solid @border-subtle;
+ padding: $space-4 $space-6;
+ background: $bg-card;
+ border-radius: $radius-md;
+ border: 1px solid $border-subtle;
min-width: 100px;
.stat-value {
- font-size: @font-size-xl;
+ font-size: $font-size-xl;
font-weight: 700;
}
.stat-label {
- color: @text-tertiary;
- font-size: @font-size-sm;
+ color: $text-tertiary;
+ font-size: $font-size-sm;
}
}
.subtabs {
display: flex;
- gap: @space-1;
- margin-bottom: @space-4;
- border-bottom: 1px solid @border-subtle;
- padding-bottom: @space-2;
+ gap: $space-1;
+ margin-bottom: $space-4;
+ border-bottom: 1px solid $border-subtle;
+ padding-bottom: $space-2;
.subtab {
- padding: @space-2 @space-3;
+ padding: $space-2 $space-3;
border: none;
background: none;
- color: @text-secondary;
+ color: $text-secondary;
cursor: pointer;
- border-radius: @radius-sm;
- font-size: @font-size-sm;
+ border-radius: $radius-sm;
+ font-size: $font-size-sm;
transition: all 0.2s;
&:hover {
- background: @bg-hover;
- color: @text-primary;
+ background: $bg-hover;
+ color: $text-primary;
}
&.active {
- background: @bg-hover;
- color: @accent-primary;
+ background: $bg-hover;
+ color: $accent-primary;
}
}
}
@@ -550,16 +550,16 @@
.quick-ports-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
- gap: @space-3;
+ gap: $space-3;
}
.quick-port-card {
display: flex;
justify-content: space-between;
align-items: center;
- padding: @space-3 @space-4;
- background: @bg-hover;
- border-radius: @radius-md;
+ padding: $space-3 $space-4;
+ background: $bg-hover;
+ border-radius: $radius-md;
.port-info {
display: flex;
@@ -570,9 +570,9 @@
}
.port-number {
- color: @text-tertiary;
- font-size: @font-size-sm;
- font-family: @font-mono;
+ color: $text-tertiary;
+ font-size: $font-size-sm;
+ font-family: $font-mono;
}
}
}
@@ -580,38 +580,38 @@
.blocked-list {
display: flex;
flex-direction: column;
- gap: @space-2;
+ gap: $space-2;
}
.blocked-item {
display: flex;
justify-content: space-between;
align-items: center;
- padding: @space-3 @space-4;
- background: @bg-hover;
- border-radius: @radius-md;
+ padding: $space-3 $space-4;
+ background: $bg-hover;
+ border-radius: $radius-md;
.blocked-ip {
- font-family: @font-mono;
+ font-family: $font-mono;
font-weight: 500;
}
}
.empty-state-sm {
text-align: center;
- padding: @space-6;
- color: @text-secondary;
+ padding: $space-6;
+ color: $text-secondary;
}
.install-info {
- margin-top: @space-4;
- padding: @space-4;
- background: @bg-hover;
- border-radius: @radius-md;
+ margin-top: $space-4;
+ padding: $space-4;
+ background: $bg-hover;
+ border-radius: $radius-md;
p {
margin: 0;
- font-size: @font-size-sm;
+ font-size: $font-size-sm;
}
}
}
@@ -631,8 +631,8 @@
}
&::-webkit-scrollbar-thumb {
- background: @border-subtle;
- border-radius: @radius-sm;
+ background: $border-subtle;
+ border-radius: $radius-sm;
}
}
@@ -640,14 +640,14 @@
.fail2ban-tab {
.card-actions {
display: flex;
- gap: @space-2;
+ gap: $space-2;
}
}
// SSH Keys Tab
.ssh-keys-tab {
.fingerprint {
- font-size: @font-size-xs;
+ font-size: $font-size-xs;
word-break: break-all;
}
@@ -656,8 +656,8 @@
}
textarea {
- font-family: @font-mono;
- font-size: @font-size-sm;
+ font-family: $font-mono;
+ font-size: $font-size-sm;
}
}
@@ -666,49 +666,49 @@
.ip-lists-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
- gap: @space-6;
+ gap: $space-6;
}
.ip-list {
display: flex;
flex-direction: column;
- gap: @space-2;
+ gap: $space-2;
}
.ip-list-item {
display: flex;
justify-content: space-between;
align-items: center;
- padding: @space-3 @space-4;
- background: @bg-hover;
- border-radius: @radius-md;
+ padding: $space-3 $space-4;
+ background: $bg-hover;
+ border-radius: $radius-md;
}
.ip-info {
display: flex;
align-items: center;
- gap: @space-3;
+ gap: $space-3;
code {
font-weight: 500;
}
.ip-allowed {
- color: @success;
+ color: $success;
}
.ip-blocked {
- color: @danger;
+ color: $danger;
}
.ip-comment {
- color: @text-secondary;
- font-size: @font-size-sm;
+ color: $text-secondary;
+ font-size: $font-size-sm;
}
.ip-date {
- color: @text-tertiary;
- font-size: @font-size-xs;
+ color: $text-tertiary;
+ font-size: $font-size-xs;
}
}
}
@@ -719,8 +719,8 @@
display: flex;
flex-direction: column;
align-items: center;
- padding: @space-8;
- gap: @space-4;
+ padding: $space-8;
+ gap: $space-4;
.spinner {
width: 40px;
@@ -731,16 +731,16 @@
.audit-results {
display: flex;
flex-direction: column;
- gap: @space-6;
+ gap: $space-6;
}
.audit-score {
display: flex;
flex-direction: column;
align-items: center;
- padding: @space-6;
- background: @bg-hover;
- border-radius: @radius-lg;
+ padding: $space-6;
+ background: $bg-hover;
+ border-radius: $radius-lg;
text-align: center;
.score-value {
@@ -749,54 +749,54 @@
}
.score-label {
- color: @text-secondary;
+ color: $text-secondary;
}
&.score-excellent {
- border: 2px solid @success;
- .score-value { color: @success; }
+ border: 2px solid $success;
+ .score-value { color: $success; }
}
&.score-good {
- border: 2px solid @accent-primary;
- .score-value { color: @accent-primary; }
+ border: 2px solid $accent-primary;
+ .score-value { color: $accent-primary; }
}
&.score-fair {
- border: 2px solid @warning;
- .score-value { color: @warning; }
+ border: 2px solid $warning;
+ .score-value { color: $warning; }
}
&.score-poor {
- border: 2px solid @danger;
- .score-value { color: @danger; }
+ border: 2px solid $danger;
+ .score-value { color: $danger; }
}
}
.audit-timestamp {
text-align: center;
- color: @text-tertiary;
- font-size: @font-size-sm;
+ color: $text-tertiary;
+ font-size: $font-size-sm;
}
.audit-section {
h4 {
- margin-bottom: @space-3;
- padding-bottom: @space-2;
- border-bottom: 1px solid @border-subtle;
+ margin-bottom: $space-3;
+ padding-bottom: $space-2;
+ border-bottom: 1px solid $border-subtle;
}
&.recommendations {
- background: fade(@accent-primary-raw, 10%);
- padding: @space-4;
- border-radius: @radius-md;
+ background: fade($accent-primary-raw, 10%);
+ padding: $space-4;
+ border-radius: $radius-md;
ul {
margin: 0;
- padding-left: @space-6;
+ padding-left: $space-6;
li {
- margin-bottom: @space-2;
+ margin-bottom: $space-2;
&:last-child {
margin-bottom: 0;
@@ -809,20 +809,20 @@
.findings-list {
display: flex;
flex-direction: column;
- gap: @space-2;
+ gap: $space-2;
}
.finding-item {
display: flex;
align-items: center;
- gap: @space-3;
- padding: @space-2 @space-3;
- background: @bg-hover;
- border-radius: @radius-sm;
+ gap: $space-3;
+ padding: $space-2 $space-3;
+ background: $bg-hover;
+ border-radius: $radius-sm;
.finding-message {
flex: 1;
- font-size: @font-size-sm;
+ font-size: $font-size-sm;
}
}
}
@@ -830,11 +830,11 @@
// Vulnerability Tab
.vulnerability-tab {
.scan-section {
- margin-bottom: @space-6;
+ margin-bottom: $space-6;
h4 {
- margin-bottom: @space-3;
- color: @text-secondary;
+ margin-bottom: $space-3;
+ color: $text-secondary;
}
}
@@ -842,26 +842,26 @@
list-style: none;
padding: 0;
margin: 0;
- background: @bg-hover;
- border-radius: @radius-md;
+ background: $bg-hover;
+ border-radius: $radius-md;
max-height: 300px;
overflow-y: auto;
li {
- padding: @space-2 @space-4;
- font-size: @font-size-sm;
- border-bottom: 1px solid @border-subtle;
+ padding: $space-2 $space-4;
+ font-size: $font-size-sm;
+ border-bottom: 1px solid $border-subtle;
&:last-child {
border-bottom: none;
}
&.warning {
- border-left: 3px solid @warning;
+ border-left: 3px solid $warning;
}
&.suggestion {
- border-left: 3px solid @accent-primary;
+ border-left: 3px solid $accent-primary;
}
}
}
@@ -871,13 +871,13 @@
.auto-updates-tab {
.auto-updates-actions {
display: flex;
- gap: @space-4;
+ gap: $space-4;
}
.help-text {
- background: @bg-hover;
- padding: @space-4;
- border-radius: @radius-md;
+ background: $bg-hover;
+ padding: $space-4;
+ border-radius: $radius-md;
p {
margin: 0;
@@ -890,26 +890,26 @@
display: flex;
flex-direction: column;
align-items: center;
- padding: @space-8;
+ padding: $space-8;
text-align: center;
svg {
- color: @text-tertiary;
- margin-bottom: @space-4;
+ color: $text-tertiary;
+ margin-bottom: $space-4;
}
h3 {
- margin-bottom: @space-2;
+ margin-bottom: $space-2;
}
p {
- color: @text-secondary;
- margin-bottom: @space-6;
+ color: $text-secondary;
+ margin-bottom: $space-6;
}
}
.empty-state-sm {
text-align: center;
- padding: @space-6;
- color: @text-secondary;
+ padding: $space-6;
+ color: $text-secondary;
}
diff --git a/frontend/src/styles/pages/_server-templates.less b/frontend/src/styles/pages/_server-templates.scss
similarity index 60%
rename from frontend/src/styles/pages/_server-templates.less
rename to frontend/src/styles/pages/_server-templates.scss
index 96fd9fa9..32366237 100644
--- a/frontend/src/styles/pages/_server-templates.less
+++ b/frontend/src/styles/pages/_server-templates.scss
@@ -2,27 +2,27 @@
.server-templates-page {
.compliance-bar {
- margin: @spacing-lg 0;
- padding: @spacing-lg;
- background: @card-bg;
- border-radius: @radius-lg;
- border: 1px solid @border-color;
+ margin: $spacing-lg 0;
+ padding: $spacing-lg;
+ background: $card-bg;
+ border-radius: $radius-lg;
+ border: 1px solid $border-color;
&__stats {
display: flex;
- gap: @spacing-xl;
- margin-bottom: @spacing-md;
+ gap: $spacing-xl;
+ margin-bottom: $spacing-md;
}
&__progress {
height: 8px;
- background: @border-color;
+ background: $border-color;
border-radius: 4px;
overflow: hidden;
.progress-fill {
height: 100%;
- background: @success-color;
+ background: $success-color;
border-radius: 4px;
transition: width 0.3s ease;
}
@@ -40,32 +40,32 @@
&__label {
font-size: 0.8rem;
- color: @text-muted;
+ color: $text-muted;
text-transform: uppercase;
}
- &--success .stat-item__value { color: @success-color; }
- &--danger .stat-item__value { color: @danger-color; }
- &--muted .stat-item__value { color: @text-muted; }
+ &--success .stat-item__value { color: $success-color; }
+ &--danger .stat-item__value { color: $danger-color; }
+ &--muted .stat-item__value { color: $text-muted; }
}
.templates-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
- gap: @spacing-lg;
- margin-top: @spacing-lg;
+ gap: $spacing-lg;
+ margin-top: $spacing-lg;
}
.template-card {
- padding: @spacing-lg;
+ padding: $spacing-lg;
display: flex;
flex-direction: column;
- gap: @spacing-sm;
+ gap: $spacing-sm;
cursor: pointer;
transition: border-color 0.15s;
&:hover {
- border-color: @primary-color;
+ border-color: $primary-color;
}
&__header {
@@ -77,44 +77,44 @@
}
&__desc {
- color: @text-secondary;
+ color: $text-secondary;
font-size: 0.9rem;
margin: 0;
}
&__meta {
display: flex;
- gap: @spacing-md;
+ gap: $spacing-md;
font-size: 0.85rem;
- color: @text-muted;
+ color: $text-muted;
}
&__spec {
display: flex;
flex-wrap: wrap;
- gap: @spacing-xs;
+ gap: $spacing-xs;
span {
font-size: 0.8rem;
padding: 2px 8px;
- background: @hover-bg;
- border-radius: @radius-sm;
+ background: $hover-bg;
+ border-radius: $radius-sm;
}
}
&__actions {
display: flex;
- gap: @spacing-sm;
- margin-top: @spacing-sm;
- padding-top: @spacing-sm;
- border-top: 1px solid @border-color;
+ gap: $spacing-sm;
+ margin-top: $spacing-sm;
+ padding-top: $spacing-sm;
+ border-top: 1px solid $border-color;
}
}
.server-select-list {
display: flex;
flex-direction: column;
- gap: @spacing-xs;
+ gap: $spacing-xs;
max-height: 300px;
overflow-y: auto;
}
@@ -122,12 +122,12 @@
.server-select-item {
display: flex;
align-items: center;
- gap: @spacing-sm;
- padding: @spacing-sm @spacing-md;
- border-radius: @radius-md;
+ gap: $spacing-sm;
+ padding: $spacing-sm $spacing-md;
+ border-radius: $radius-md;
cursor: pointer;
transition: background-color 0.15s;
- &:hover { background: @hover-bg; }
+ &:hover { background: $hover-bg; }
}
}
diff --git a/frontend/src/styles/pages/_servers.less b/frontend/src/styles/pages/_servers.less
deleted file mode 100644
index 79cf2c08..00000000
--- a/frontend/src/styles/pages/_servers.less
+++ /dev/null
@@ -1,1573 +0,0 @@
-// ============================================
-// SERVERS PAGE
-// ============================================
-
-// Page Layout
-.servers-page {
- padding: 0;
-}
-
-// Stats Row
-.servers-stats {
- display: grid;
- grid-template-columns: repeat(4, 1fr);
- gap: @space-4;
- margin-bottom: @space-6;
-
- @media (max-width: @breakpoint-lg) {
- grid-template-columns: repeat(2, 1fr);
- }
-
- @media (max-width: @breakpoint-sm) {
- grid-template-columns: 1fr;
- }
-}
-
-.stat-card {
- background: @bg-card;
- border: 1px solid @border-subtle;
- border-radius: @radius-md;
- padding: @space-5;
- display: flex;
- align-items: center;
- gap: @space-4;
-}
-
-.stat-icon {
- width: 48px;
- height: 48px;
- border-radius: @radius-md;
- display: flex;
- align-items: center;
- justify-content: center;
-
- svg {
- width: 24px;
- height: 24px;
- }
-
- &.total {
- background: @accent-glow;
- color: @accent-primary;
- }
-
- &.online {
- background: @success-bg;
- color: @success;
- }
-
- &.offline {
- background: @danger-bg;
- color: @danger;
- }
-
- &.connecting {
- background: @warning-bg;
- color: @warning;
- }
-}
-
-.stat-content {
- .stat-value {
- font-family: @font-mono;
- font-size: @font-size-2xl;
- font-weight: @font-weight-bold;
- color: @text-primary;
- }
-
- .stat-label {
- font-size: @font-size-sm;
- color: @text-tertiary;
- }
-}
-
-// Toolbar
-.servers-toolbar {
- display: flex;
- gap: @space-4;
- margin-bottom: @space-6;
-
- @media (max-width: @breakpoint-sm) {
- flex-direction: column;
- }
-}
-
-.search-box {
- position: relative;
- flex: 1;
-
- svg {
- position: absolute;
- left: @space-3;
- top: 50%;
- transform: translateY(-50%);
- color: @text-tertiary;
- }
-
- input {
- width: 100%;
- background: @bg-card;
- border: 1px solid @border-subtle;
- border-radius: @radius-md;
- padding: @space-3 @space-3 @space-3 @space-10;
- color: @text-primary;
- font-size: @font-size-sm;
-
- &::placeholder {
- color: @text-tertiary;
- }
-
- &:focus {
- outline: none;
- border-color: @accent-primary;
- }
- }
-}
-
-.group-filter {
- select {
- background: @bg-card;
- border: 1px solid @border-subtle;
- border-radius: @radius-md;
- padding: @space-3 @space-4;
- color: @text-primary;
- font-size: @font-size-sm;
- min-width: 160px;
-
- &:focus {
- outline: none;
- border-color: @accent-primary;
- }
- }
-}
-
-// Servers Grid
-.servers-grid {
- display: grid;
- grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
- gap: @space-5;
-}
-
-// Server Card
-.server-card {
- background: @bg-card;
- border: 1px solid @border-subtle;
- border-radius: @radius-lg;
- overflow: hidden;
- transition: border-color @transition-base, box-shadow @transition-base;
-
- &:hover {
- border-color: @border-active;
- }
-
- &.online {
- &:hover {
- border-color: @success;
- box-shadow: 0 0 0 1px @success-border;
- }
- }
-
- &.offline {
- opacity: 0.8;
- }
-}
-
-.server-card-header {
- display: flex;
- align-items: center;
- gap: @space-3;
- padding: @space-4;
- border-bottom: 1px solid @border-subtle;
-}
-
-.server-status-indicator {
- width: 10px;
- height: 10px;
- border-radius: 50%;
- flex-shrink: 0;
-}
-
-.server-info {
- flex: 1;
- min-width: 0;
-
- .server-name {
- font-size: @font-size-base;
- font-weight: @font-weight-semibold;
- color: @text-primary;
- margin: 0;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- }
-
- .server-hostname {
- font-size: @font-size-xs;
- color: @text-tertiary;
- font-family: @font-mono;
- }
-}
-
-.server-card-body {
- padding: @space-4;
-}
-
-.server-meta {
- display: grid;
- grid-template-columns: repeat(2, 1fr);
- gap: @space-3;
- margin-bottom: @space-4;
-}
-
-.meta-item {
- display: flex;
- flex-direction: column;
- gap: @space-1;
-
- .meta-label {
- font-size: @font-size-xs;
- color: @text-tertiary;
- text-transform: uppercase;
- letter-spacing: 0.05em;
- }
-
- .meta-value {
- font-size: @font-size-sm;
- color: @text-secondary;
- }
-}
-
-// Mini metrics bars
-.server-metrics-mini {
- display: flex;
- flex-direction: column;
- gap: @space-2;
- margin-bottom: @space-4;
-}
-
-.metric-bar {
- display: flex;
- align-items: center;
- gap: @space-2;
-
- .metric-label {
- font-size: @font-size-xs;
- color: @text-tertiary;
- width: 32px;
- }
-
- .bar-track {
- flex: 1;
- height: 4px;
- background: @bg-secondary;
- border-radius: @radius-full;
- overflow: hidden;
- }
-
- .bar-fill {
- height: 100%;
- border-radius: @radius-full;
- transition: width @transition-base;
-
- &.cpu {
- background: @accent-primary;
- }
-
- &.memory {
- background: @success;
- }
-
- &.disk {
- background: @warning;
- }
- }
-
- .metric-value {
- font-size: @font-size-xs;
- font-family: @font-mono;
- color: @text-tertiary;
- width: 32px;
- text-align: right;
- }
-}
-
-.server-group-badge {
- display: inline-flex;
- align-items: center;
- gap: @space-1;
- background: @bg-hover;
- color: @text-secondary;
- font-size: @font-size-xs;
- padding: @space-1 @space-2;
- border-radius: @radius-sm;
-}
-
-.server-card-footer {
- display: flex;
- gap: @space-2;
- padding: @space-3 @space-4;
- background: @bg-hover;
- border-top: 1px solid @border-subtle;
-
- .btn {
- flex: 1;
- justify-content: center;
- }
-
- .btn-sm {
- padding: @space-2 @space-3;
- font-size: @font-size-xs;
- }
-}
-
-// Empty state
-.empty-state {
- text-align: center;
- padding: @space-16 @space-6;
- background: @bg-card;
- border: 1px solid @border-subtle;
- border-radius: @radius-lg;
-
- .empty-icon {
- width: 64px;
- height: 64px;
- color: @text-tertiary;
- margin-bottom: @space-4;
- }
-
- h3 {
- font-size: @font-size-lg;
- font-weight: @font-weight-semibold;
- color: @text-primary;
- margin: 0 0 @space-2;
- }
-
- p {
- color: @text-secondary;
- margin: 0 0 @space-6;
- }
-}
-
-// ============================================
-// SERVER DETAIL PAGE
-// ============================================
-
-.server-detail-page {
- padding: 0;
-}
-
-.page-breadcrumb {
- display: flex;
- align-items: center;
- gap: @space-2;
- font-size: @font-size-sm;
- margin-bottom: @space-3;
-
- a {
- color: @text-tertiary;
- text-decoration: none;
-
- &:hover {
- color: @text-primary;
- }
- }
-
- .breadcrumb-separator {
- color: @text-tertiary;
- }
-
- span:last-child {
- color: @text-secondary;
- }
-}
-
-.server-title {
- display: flex;
- align-items: center;
- gap: @space-3;
-
- h1 {
- margin: 0;
- }
-}
-
-.status-dot {
- width: 12px;
- height: 12px;
- border-radius: 50%;
-
- &.large {
- width: 14px;
- height: 14px;
- }
-}
-
-.server-detail-tabs {
- display: flex;
- gap: @space-1;
- margin-bottom: @space-6;
- border-bottom: 1px solid @border-subtle;
- padding-bottom: 0;
-}
-
-.tab-btn {
- background: transparent;
- border: none;
- color: @text-tertiary;
- font-size: @font-size-sm;
- font-weight: @font-weight-medium;
- padding: @space-3 @space-4;
- cursor: pointer;
- border-bottom: 2px solid transparent;
- margin-bottom: -1px;
- transition: all @transition-base;
-
- &:hover {
- color: @text-primary;
- }
-
- &.active {
- color: @text-primary;
- border-bottom-color: @accent-primary;
- }
-}
-
-// Overview Tab
-.overview-grid {
- display: grid;
- grid-template-columns: repeat(2, 1fr);
- gap: @space-5;
-
- @media (max-width: @breakpoint-lg) {
- grid-template-columns: 1fr;
- }
-}
-
-.info-card {
- background: @bg-card;
- border: 1px solid @border-subtle;
- border-radius: @radius-lg;
- padding: @space-5;
-
- h3 {
- font-size: @font-size-sm;
- font-weight: @font-weight-semibold;
- color: @text-tertiary;
- text-transform: uppercase;
- letter-spacing: 0.05em;
- margin: 0 0 @space-4;
- }
-}
-
-.info-list {
- display: flex;
- flex-direction: column;
- gap: @space-3;
-}
-
-.info-item {
- display: flex;
- justify-content: space-between;
- align-items: center;
-
- .info-label {
- font-size: @font-size-sm;
- color: @text-tertiary;
- }
-
- .info-value {
- font-size: @font-size-sm;
- color: @text-primary;
-
- &.mono {
- font-family: @font-mono;
- font-size: @font-size-xs;
- }
- }
-}
-
-.status-badge {
- display: inline-flex;
- align-items: center;
- gap: @space-1;
- padding: @space-1 @space-2;
- border-radius: @radius-sm;
- font-size: @font-size-xs;
- font-weight: @font-weight-medium;
- text-transform: capitalize;
-
- &.online {
- background: @success-bg;
- color: @success;
- }
-
- &.offline {
- background: @danger-bg;
- color: @danger;
- }
-
- &.connecting {
- background: @warning-bg;
- color: @warning;
- }
-
- &.pending {
- background: @bg-secondary;
- color: @text-tertiary;
- }
-}
-
-// Resource Meters
-.metrics-card {
- grid-column: span 2;
-
- @media (max-width: @breakpoint-lg) {
- grid-column: span 1;
- }
-}
-
-.resource-meters {
- display: grid;
- grid-template-columns: repeat(3, 1fr);
- gap: @space-6;
-
- @media (max-width: @breakpoint-md) {
- grid-template-columns: 1fr;
- }
-}
-
-.resource-meter {
- .resource-header {
- display: flex;
- justify-content: space-between;
- margin-bottom: @space-2;
-
- .resource-label {
- font-size: @font-size-sm;
- color: @text-secondary;
- }
-
- .resource-value {
- font-family: @font-mono;
- font-size: @font-size-sm;
- color: @text-primary;
- }
- }
-
- .resource-bar {
- height: 8px;
- background: @bg-secondary;
- border-radius: @radius-full;
- overflow: hidden;
-
- .resource-fill {
- height: 100%;
- border-radius: @radius-full;
- transition: width @transition-base;
- }
- }
-}
-
-.offline-card {
- grid-column: span 2;
-
- @media (max-width: @breakpoint-lg) {
- grid-column: span 1;
- }
-}
-
-.offline-message {
- text-align: center;
- padding: @space-6;
-
- svg {
- color: @text-tertiary;
- margin-bottom: @space-4;
- }
-
- h4 {
- font-size: @font-size-lg;
- color: @text-primary;
- margin: 0 0 @space-2;
- }
-
- p {
- color: @text-secondary;
- margin: 0;
- }
-}
-
-.offline-notice {
- text-align: center;
- padding: @space-12;
- background: @bg-card;
- border: 1px solid @border-subtle;
- border-radius: @radius-lg;
-
- svg {
- color: @text-tertiary;
- margin-bottom: @space-4;
- }
-
- h4 {
- font-size: @font-size-lg;
- color: @text-primary;
- margin: 0 0 @space-2;
- }
-
- p {
- color: @text-secondary;
- margin: 0;
- }
-}
-
-// Docker Tab
-.docker-tab {
- background: @bg-card;
- border: 1px solid @border-subtle;
- border-radius: @radius-lg;
- overflow: hidden;
-}
-
-.docker-sub-tabs {
- display: flex;
- border-bottom: 1px solid @border-subtle;
- padding: 0 @space-4;
-}
-
-.sub-tab {
- background: transparent;
- border: none;
- color: @text-tertiary;
- font-size: @font-size-sm;
- padding: @space-4;
- cursor: pointer;
- border-bottom: 2px solid transparent;
- margin-bottom: -1px;
-
- &:hover {
- color: @text-primary;
- }
-
- &.active {
- color: @text-primary;
- border-bottom-color: @accent-primary;
- }
-}
-
-.containers-list,
-.images-list {
- padding: @space-4;
-}
-
-.data-table {
- width: 100%;
- border-collapse: collapse;
-
- th {
- text-align: left;
- font-size: @font-size-xs;
- font-weight: @font-weight-semibold;
- color: @text-tertiary;
- text-transform: uppercase;
- letter-spacing: 0.05em;
- padding: @space-3;
- border-bottom: 1px solid @border-subtle;
- }
-
- td {
- padding: @space-3;
- font-size: @font-size-sm;
- color: @text-secondary;
- border-bottom: 1px solid @border-subtle;
- }
-
- tr:last-child td {
- border-bottom: none;
- }
-
- .container-name {
- display: block;
- color: @text-primary;
- font-weight: @font-weight-medium;
- }
-
- .container-id {
- display: block;
- font-family: @font-mono;
- font-size: @font-size-xs;
- color: @text-tertiary;
- }
-
- .mono {
- font-family: @font-mono;
- font-size: @font-size-xs;
- }
-}
-
-.status-pill {
- display: inline-flex;
- align-items: center;
- gap: @space-1;
- padding: @space-1 @space-2;
- border-radius: @radius-sm;
- font-size: @font-size-xs;
- font-weight: @font-weight-medium;
-
- &.running {
- background: @success-bg;
- color: @success;
- }
-
- &.stopped {
- background: @bg-secondary;
- color: @text-tertiary;
- }
-}
-
-.actions-cell {
- display: flex;
- gap: @space-1;
- justify-content: flex-end;
-}
-
-.btn-icon {
- background: transparent;
- border: none;
- color: @text-tertiary;
- cursor: pointer;
- padding: @space-2;
- border-radius: @radius-sm;
- display: flex;
- align-items: center;
- justify-content: center;
-
- &:hover {
- color: @text-primary;
- background: @bg-hover;
- }
-
- &.success {
- color: @success;
-
- &:hover {
- background: @success-bg;
- }
- }
-
- &.danger {
- color: @danger;
-
- &:hover {
- background: @danger-bg;
- }
- }
-}
-
-.empty-list {
- text-align: center;
- padding: @space-8;
- color: @text-tertiary;
-}
-
-// Metrics Tab
-.metrics-tab {
- padding: 0;
-}
-
-.metrics-live-stats {
- margin-top: @space-6;
-}
-
-.live-stat-card {
- background: @bg-card;
- border: 1px solid @border-subtle;
- border-radius: @radius-lg;
- padding: @space-5;
-
- h4 {
- font-size: @font-size-xs;
- font-weight: @font-weight-semibold;
- color: @text-tertiary;
- text-transform: uppercase;
- letter-spacing: 0.05em;
- margin: 0 0 @space-4;
- }
-}
-
-.live-stats-grid {
- display: grid;
- grid-template-columns: repeat(6, 1fr);
- gap: @space-4;
-
- @media (max-width: @breakpoint-lg) {
- grid-template-columns: repeat(3, 1fr);
- }
-
- @media (max-width: @breakpoint-sm) {
- grid-template-columns: repeat(2, 1fr);
- }
-}
-
-.live-stat {
- text-align: center;
-
- .live-stat-label {
- display: block;
- font-size: @font-size-xs;
- color: @text-tertiary;
- margin-bottom: @space-1;
- }
-
- .live-stat-value {
- display: block;
- font-size: @font-size-md;
- font-weight: @font-weight-semibold;
- font-family: @font-mono;
- color: @text-primary;
- }
-}
-
-.metrics-grid {
- display: grid;
- grid-template-columns: repeat(3, 1fr);
- gap: @space-5;
-
- @media (max-width: @breakpoint-lg) {
- grid-template-columns: repeat(2, 1fr);
- }
-
- @media (max-width: @breakpoint-md) {
- grid-template-columns: 1fr;
- }
-}
-
-.metric-card {
- background: @bg-card;
- border: 1px solid @border-subtle;
- border-radius: @radius-lg;
- padding: @space-5;
-
- &.large {
- display: flex;
- flex-direction: column;
- align-items: center;
- }
-
- h3 {
- font-size: @font-size-sm;
- font-weight: @font-weight-semibold;
- color: @text-tertiary;
- text-transform: uppercase;
- letter-spacing: 0.05em;
- margin: 0 0 @space-4;
- text-align: center;
- }
-}
-
-.metric-gauge {
- display: flex;
- justify-content: center;
- margin-bottom: @space-4;
-}
-
-.circular-gauge {
- width: 120px;
- height: 120px;
-
- .gauge-bg {
- fill: none;
- stroke: @bg-secondary;
- stroke-width: 8;
- }
-
- .gauge-fill {
- fill: none;
- stroke-width: 8;
- stroke-linecap: round;
- transform: rotate(-90deg);
- transform-origin: center;
- }
-
- .gauge-text {
- font-family: @font-mono;
- font-size: 20px;
- font-weight: @font-weight-bold;
- fill: @text-primary;
- text-anchor: middle;
- dominant-baseline: middle;
- }
-}
-
-.metric-details {
- width: 100%;
-}
-
-.detail-item {
- display: flex;
- justify-content: space-between;
- padding: @space-2 0;
- font-size: @font-size-sm;
- border-top: 1px solid @border-subtle;
-
- &:first-child {
- border-top: none;
- }
-
- span:first-child {
- color: @text-tertiary;
- }
-
- span:last-child {
- color: @text-primary;
- font-family: @font-mono;
- }
-}
-
-.network-stats,
-.docker-stats {
- display: flex;
- flex-direction: column;
- gap: @space-4;
-}
-
-.net-stat,
-.docker-stat {
- display: flex;
- align-items: center;
- gap: @space-3;
-
- svg {
- color: @text-tertiary;
- }
-
- span:first-of-type {
- color: @text-tertiary;
- font-size: @font-size-sm;
- flex: 1;
- }
-
- .value {
- font-family: @font-mono;
- font-size: @font-size-sm;
- color: @text-primary;
- }
-}
-
-// Settings Tab
-.settings-tab {
- max-width: none;
-}
-
-.settings-grid {
- display: grid;
- grid-template-columns: 1fr 1fr;
- gap: @space-6;
- margin-bottom: @space-6;
- align-items: start;
-
- @media (max-width: @breakpoint-lg) {
- grid-template-columns: 1fr;
- }
-
- .form-section {
- margin-bottom: 0;
- }
-}
-
-.settings-form {
- margin-bottom: 0;
- background: transparent;
- border: none;
- border-radius: 0;
- padding: 0;
-
- .form-section .btn[type="submit"] {
- margin-top: @space-4;
- }
-}
-
-.security-grid {
- display: grid;
- grid-template-columns: 1fr 1fr;
- gap: @space-6;
- margin-bottom: @space-6;
- align-items: start;
-
- @media (max-width: @breakpoint-lg) {
- grid-template-columns: 1fr;
- }
-
- .form-section {
- margin-bottom: 0;
- }
-}
-
-// Security section styles
-.security-info-bar {
- display: flex;
- gap: @space-6;
- padding: @space-4;
- background: @bg-elevated;
- border: 1px solid @border-subtle;
- border-radius: @radius-lg;
- margin-bottom: @space-5;
-}
-
-.security-info-item {
- .security-info-label {
- display: block;
- font-size: @font-size-xs;
- color: @text-tertiary;
- margin-bottom: @space-1;
- }
-
- .security-info-value {
- font-size: @font-size-sm;
- color: @text-primary;
-
- code {
- font-family: @font-mono;
- background: @bg-body;
- padding: 2px @space-2;
- border-radius: @radius-sm;
- font-size: @font-size-xs;
- }
- }
-}
-
-.subsection {
- h4 {
- font-size: @font-size-sm;
- font-weight: @font-weight-semibold;
- color: @text-primary;
- margin: 0 0 @space-2;
- }
-}
-
-.ip-list {
- margin-bottom: @space-3;
-}
-
-.ip-empty {
- font-size: @font-size-sm;
- color: @text-tertiary;
- padding: @space-4;
- text-align: center;
- background: @bg-elevated;
- border: 1px dashed @border-subtle;
- border-radius: @radius-md;
-}
-
-.ip-item {
- display: flex;
- align-items: center;
- gap: @space-3;
- padding: @space-2 @space-3;
- background: @bg-elevated;
- border: 1px solid @border-subtle;
- border-radius: @radius-md;
- margin-bottom: @space-2;
-
- code {
- flex: 1;
- font-family: @font-mono;
- font-size: @font-size-sm;
- color: @text-primary;
- }
-
- .badge-success {
- font-size: @font-size-xs;
- padding: 2px @space-2;
- background: @success-bg;
- color: @success;
- border-radius: @radius-sm;
- }
-}
-
-.ip-add-form {
- display: flex;
- gap: @space-2;
-
- input {
- flex: 1;
- background: @bg-elevated;
- border: 1px solid @border-subtle;
- border-radius: @radius-md;
- padding: @space-2 @space-3;
- color: @text-primary;
- font-size: @font-size-sm;
-
- &::placeholder {
- color: @text-tertiary;
- }
-
- &:focus {
- border-color: @accent-primary;
- outline: none;
- }
- }
-}
-
-.security-warning {
- margin-top: @space-3;
- padding: @space-3 @space-4;
- background: fade(@warning, 10%);
- border: 1px solid fade(@warning, 25%);
- border-radius: @radius-md;
- font-size: @font-size-xs;
- color: @warning;
-}
-
-.security-notice {
- margin-top: @space-3;
- font-size: @font-size-xs;
- color: @text-tertiary;
-}
-
-.key-rotation-actions {
- display: flex;
- align-items: center;
- gap: @space-4;
-}
-
-.key-rotation-hint {
- font-size: @font-size-xs;
- color: @text-tertiary;
-}
-
-// Security Alerts
-.alerts-list {
- display: flex;
- flex-direction: column;
- gap: @space-3;
-}
-
-.alert-item {
- padding: @space-4;
- background: @bg-elevated;
- border: 1px solid @border-subtle;
- border-radius: @radius-lg;
- border-left: 3px solid @text-tertiary;
-
- &.severity-critical { border-left-color: @danger; }
- &.severity-high { border-left-color: @warning; }
- &.severity-medium { border-left-color: @accent-primary; }
- &.severity-low { border-left-color: @text-tertiary; }
-}
-
-.alert-item-header {
- display: flex;
- align-items: center;
- gap: @space-3;
- margin-bottom: @space-2;
-
- .alert-type {
- flex: 1;
- font-size: @font-size-sm;
- font-weight: @font-weight-medium;
- color: @text-primary;
- text-transform: capitalize;
- }
-
- .alert-time {
- font-size: @font-size-xs;
- color: @text-tertiary;
- }
-}
-
-.severity-badge {
- font-size: @font-size-xs;
- font-weight: @font-weight-semibold;
- text-transform: uppercase;
- padding: 2px @space-2;
- border-radius: @radius-sm;
-
- &.critical { background: fade(@danger, 15%); color: @danger; }
- &.high { background: fade(@warning, 15%); color: @warning; }
- &.medium { background: fade(@accent-primary-raw, 15%); color: @accent-primary; }
- &.low { background: @bg-hover; color: @text-tertiary; }
-}
-
-.alert-item-details {
- display: flex;
- gap: @space-4;
- font-size: @font-size-xs;
- color: @text-secondary;
- margin-bottom: @space-3;
-}
-
-.alert-item-actions {
- display: flex;
- gap: @space-2;
-}
-
-.form-section {
- background: @bg-card;
- border: 1px solid @border-subtle;
- border-radius: @radius-lg;
- padding: @space-6;
- margin-bottom: @space-6;
-
- h3 {
- font-size: @font-size-base;
- font-weight: @font-weight-semibold;
- color: @text-primary;
- margin: 0 0 @space-4;
- }
-
- .section-description {
- color: @text-secondary;
- font-size: @font-size-sm;
- margin-bottom: @space-4;
- }
-
- &.danger-zone {
- border-color: @danger-border;
-
- h3 {
- color: @danger;
- }
- }
-}
-
-.form-row {
- display: grid;
- grid-template-columns: repeat(2, 1fr);
- gap: @space-4;
-
- @media (max-width: @breakpoint-sm) {
- grid-template-columns: 1fr;
- }
-}
-
-// ============================================
-// AGENT REGISTRATION SECTION
-// ============================================
-
-.token-status {
- display: flex;
- align-items: center;
- gap: @space-2;
- font-size: @font-size-sm;
- color: @text-secondary;
- margin-bottom: @space-5;
-}
-
-.token-status-dot {
- width: 8px;
- height: 8px;
- border-radius: @radius-full;
- flex-shrink: 0;
-
- &.active {
- background: @success;
- box-shadow: 0 0 6px fade(@success, 40%);
- }
-}
-
-.install-active {
- display: flex;
- flex-direction: column;
- gap: @space-4;
-}
-
-.install-script-block {
- background: @bg-elevated;
- border: 1px solid @border-subtle;
- border-radius: @radius-lg;
- overflow: hidden;
-}
-
-.install-script-header {
- display: flex;
- align-items: center;
- gap: @space-3;
- padding: @space-3 @space-4;
- background: @bg-hover;
- border-bottom: 1px solid @border-subtle;
-
- > svg {
- color: @text-tertiary;
- flex-shrink: 0;
- }
-
- > span {
- flex: 1;
- font-size: @font-size-sm;
- font-weight: @font-weight-medium;
- color: @text-primary;
- }
-}
-
-.install-script-code {
- padding: @space-4 @space-5;
- margin: 0;
- font-family: @font-mono;
- font-size: @font-size-xs;
- line-height: @line-height-relaxed;
- color: @text-secondary;
- background: @bg-body;
- overflow-x: auto;
- white-space: pre-wrap;
- word-break: break-all;
-}
-
-.install-inactive {
- .section-description {
- margin-bottom: @space-4;
- }
-}
-
-// ============================================
-// ADD SERVER MODAL
-// ============================================
-
-.permissions-grid {
- display: grid;
- grid-template-columns: repeat(2, 1fr);
- gap: @space-2;
-
- @media (max-width: @breakpoint-sm) {
- grid-template-columns: 1fr;
- }
-}
-
-.permission-checkbox {
- display: flex;
- align-items: center;
- gap: @space-2;
- font-size: @font-size-sm;
- color: @text-secondary;
- cursor: pointer;
-
- input[type="checkbox"] {
- width: 16px;
- height: 16px;
- accent-color: @accent-primary;
- }
-
- &:hover {
- color: @text-primary;
- }
-}
-
-.install-instructions {
- padding: @space-6;
-}
-
-.success-banner {
- display: flex;
- align-items: flex-start;
- gap: @space-4;
- background: @success-bg;
- border: 1px solid @success-border;
- color: @success;
- padding: @space-5;
- border-radius: @radius-lg;
- margin-bottom: @space-6;
-
- svg {
- flex-shrink: 0;
- width: 22px;
- height: 22px;
- margin-top: 1px;
- }
-
- strong {
- display: block;
- font-size: @font-size-sm;
- font-weight: @font-weight-semibold;
- margin-bottom: @space-1;
- }
-
- .success-subtitle {
- font-size: @font-size-xs;
- color: @text-secondary;
- margin: 0;
- line-height: @line-height-normal;
- }
-}
-
-.install-tabs {
- display: flex;
- flex-direction: column;
- gap: @space-4;
-}
-
-.install-tab {
- background: @bg-elevated;
- border: 1px solid @border-subtle;
- border-radius: @radius-lg;
- overflow: hidden;
-}
-
-.install-tab-header {
- display: flex;
- align-items: center;
- gap: @space-3;
- padding: @space-3 @space-4;
- background: @bg-hover;
- border-bottom: 1px solid @border-subtle;
-
- > svg {
- color: @text-tertiary;
- flex-shrink: 0;
- }
-}
-
-.install-tab-title {
- flex: 1;
- min-width: 0;
-
- > span:first-child {
- display: block;
- font-size: @font-size-sm;
- font-weight: @font-weight-medium;
- color: @text-primary;
- }
-}
-
-.install-tab-description {
- display: block;
- font-size: @font-size-xs;
- color: @text-tertiary;
- font-weight: @font-weight-normal;
- margin-top: 1px;
-}
-
-.install-script {
- padding: @space-4 @space-5;
- margin: 0;
- font-family: @font-mono;
- font-size: @font-size-xs;
- line-height: @line-height-relaxed;
- color: @text-secondary;
- background: @bg-body;
- overflow-x: auto;
- white-space: pre-wrap;
- word-break: break-all;
-}
-
-.install-info {
- margin-top: @space-6;
- padding: @space-5;
- background: @bg-elevated;
- border: 1px solid @border-subtle;
- border-radius: @radius-lg;
-
- h4 {
- font-size: @font-size-sm;
- font-weight: @font-weight-semibold;
- color: @text-primary;
- margin: 0 0 @space-3;
- }
-
- ol {
- margin: 0 0 @space-4;
- padding-left: @space-5;
- color: @text-secondary;
- font-size: @font-size-sm;
- line-height: @line-height-relaxed;
- }
-
- li {
- margin-bottom: @space-2;
- }
-
- .text-muted {
- color: @text-tertiary;
- font-size: @font-size-xs;
- }
-}
-
-// ============================================
-// MANAGE GROUPS MODAL
-// ============================================
-
-.group-form {
- display: flex;
- gap: @space-3;
- margin-bottom: @space-5;
-
- input {
- flex: 1;
- background: @bg-elevated;
- border: 1px solid @border-subtle;
- border-radius: @radius-md;
- padding: @space-3;
- color: @text-primary;
- font-size: @font-size-sm;
-
- &::placeholder {
- color: @text-tertiary;
- }
-
- &:focus {
- outline: none;
- border-color: @accent-primary;
- }
- }
-}
-
-.groups-list {
- display: flex;
- flex-direction: column;
- gap: @space-2;
- max-height: 300px;
- overflow-y: auto;
-}
-
-.group-item {
- display: flex;
- align-items: center;
- gap: @space-3;
- padding: @space-3;
- background: @bg-elevated;
- border: 1px solid @border-subtle;
- border-radius: @radius-md;
-
- input {
- flex: 1;
- background: @bg-card;
- border: 1px solid @accent-primary;
- border-radius: @radius-sm;
- padding: @space-2;
- color: @text-primary;
- font-size: @font-size-sm;
-
- &:focus {
- outline: none;
- }
- }
-
- .group-name {
- flex: 1;
- display: flex;
- align-items: center;
- gap: @space-2;
- font-size: @font-size-sm;
- color: @text-primary;
-
- svg {
- color: @text-tertiary;
- }
- }
-
- .group-count {
- font-size: @font-size-xs;
- color: @text-tertiary;
- }
-
- .group-actions {
- display: flex;
- gap: @space-1;
- }
-}
-
-.empty-groups {
- text-align: center;
- padding: @space-6;
- color: @text-tertiary;
- font-size: @font-size-sm;
-}
diff --git a/frontend/src/styles/pages/_servers.scss b/frontend/src/styles/pages/_servers.scss
new file mode 100644
index 00000000..e4e16d4e
--- /dev/null
+++ b/frontend/src/styles/pages/_servers.scss
@@ -0,0 +1,1573 @@
+// ============================================
+// SERVERS PAGE
+// ============================================
+
+// Page Layout
+.servers-page {
+ padding: 0;
+}
+
+// Stats Row
+.servers-stats {
+ display: grid;
+ grid-template-columns: repeat(4, 1fr);
+ gap: $space-4;
+ margin-bottom: $space-6;
+
+ @media (max-width: $breakpoint-lg) {
+ grid-template-columns: repeat(2, 1fr);
+ }
+
+ @media (max-width: $breakpoint-sm) {
+ grid-template-columns: 1fr;
+ }
+}
+
+.stat-card {
+ background: $bg-card;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-md;
+ padding: $space-5;
+ display: flex;
+ align-items: center;
+ gap: $space-4;
+}
+
+.stat-icon {
+ width: 48px;
+ height: 48px;
+ border-radius: $radius-md;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+
+ svg {
+ width: 24px;
+ height: 24px;
+ }
+
+ &.total {
+ background: $accent-glow;
+ color: $accent-primary;
+ }
+
+ &.online {
+ background: $success-bg;
+ color: $success;
+ }
+
+ &.offline {
+ background: $danger-bg;
+ color: $danger;
+ }
+
+ &.connecting {
+ background: $warning-bg;
+ color: $warning;
+ }
+}
+
+.stat-content {
+ .stat-value {
+ font-family: $font-mono;
+ font-size: $font-size-2xl;
+ font-weight: $font-weight-bold;
+ color: $text-primary;
+ }
+
+ .stat-label {
+ font-size: $font-size-sm;
+ color: $text-tertiary;
+ }
+}
+
+// Toolbar
+.servers-toolbar {
+ display: flex;
+ gap: $space-4;
+ margin-bottom: $space-6;
+
+ @media (max-width: $breakpoint-sm) {
+ flex-direction: column;
+ }
+}
+
+.search-box {
+ position: relative;
+ flex: 1;
+
+ svg {
+ position: absolute;
+ left: $space-3;
+ top: 50%;
+ transform: translateY(-50%);
+ color: $text-tertiary;
+ }
+
+ input {
+ width: 100%;
+ background: $bg-card;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-md;
+ padding: $space-3 $space-3 $space-3 $space-10;
+ color: $text-primary;
+ font-size: $font-size-sm;
+
+ &::placeholder {
+ color: $text-tertiary;
+ }
+
+ &:focus {
+ outline: none;
+ border-color: $accent-primary;
+ }
+ }
+}
+
+.group-filter {
+ select {
+ background: $bg-card;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-md;
+ padding: $space-3 $space-4;
+ color: $text-primary;
+ font-size: $font-size-sm;
+ min-width: 160px;
+
+ &:focus {
+ outline: none;
+ border-color: $accent-primary;
+ }
+ }
+}
+
+// Servers Grid
+.servers-grid {
+ display: grid;
+ grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
+ gap: $space-5;
+}
+
+// Server Card
+.server-card {
+ background: $bg-card;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-lg;
+ overflow: hidden;
+ transition: border-color $transition-base, box-shadow $transition-base;
+
+ &:hover {
+ border-color: $border-active;
+ }
+
+ &.online {
+ &:hover {
+ border-color: $success;
+ box-shadow: 0 0 0 1px $success-border;
+ }
+ }
+
+ &.offline {
+ opacity: 0.8;
+ }
+}
+
+.server-card-header {
+ display: flex;
+ align-items: center;
+ gap: $space-3;
+ padding: $space-4;
+ border-bottom: 1px solid $border-subtle;
+}
+
+.server-status-indicator {
+ width: 10px;
+ height: 10px;
+ border-radius: 50%;
+ flex-shrink: 0;
+}
+
+.server-info {
+ flex: 1;
+ min-width: 0;
+
+ .server-name {
+ font-size: $font-size-base;
+ font-weight: $font-weight-semibold;
+ color: $text-primary;
+ margin: 0;
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ }
+
+ .server-hostname {
+ font-size: $font-size-xs;
+ color: $text-tertiary;
+ font-family: $font-mono;
+ }
+}
+
+.server-card-body {
+ padding: $space-4;
+}
+
+.server-meta {
+ display: grid;
+ grid-template-columns: repeat(2, 1fr);
+ gap: $space-3;
+ margin-bottom: $space-4;
+}
+
+.meta-item {
+ display: flex;
+ flex-direction: column;
+ gap: $space-1;
+
+ .meta-label {
+ font-size: $font-size-xs;
+ color: $text-tertiary;
+ text-transform: uppercase;
+ letter-spacing: 0.05em;
+ }
+
+ .meta-value {
+ font-size: $font-size-sm;
+ color: $text-secondary;
+ }
+}
+
+// Mini metrics bars
+.server-metrics-mini {
+ display: flex;
+ flex-direction: column;
+ gap: $space-2;
+ margin-bottom: $space-4;
+}
+
+.metric-bar {
+ display: flex;
+ align-items: center;
+ gap: $space-2;
+
+ .metric-label {
+ font-size: $font-size-xs;
+ color: $text-tertiary;
+ width: 32px;
+ }
+
+ .bar-track {
+ flex: 1;
+ height: 4px;
+ background: $bg-secondary;
+ border-radius: $radius-full;
+ overflow: hidden;
+ }
+
+ .bar-fill {
+ height: 100%;
+ border-radius: $radius-full;
+ transition: width $transition-base;
+
+ &.cpu {
+ background: $accent-primary;
+ }
+
+ &.memory {
+ background: $success;
+ }
+
+ &.disk {
+ background: $warning;
+ }
+ }
+
+ .metric-value {
+ font-size: $font-size-xs;
+ font-family: $font-mono;
+ color: $text-tertiary;
+ width: 32px;
+ text-align: right;
+ }
+}
+
+.server-group-badge {
+ display: inline-flex;
+ align-items: center;
+ gap: $space-1;
+ background: $bg-hover;
+ color: $text-secondary;
+ font-size: $font-size-xs;
+ padding: $space-1 $space-2;
+ border-radius: $radius-sm;
+}
+
+.server-card-footer {
+ display: flex;
+ gap: $space-2;
+ padding: $space-3 $space-4;
+ background: $bg-hover;
+ border-top: 1px solid $border-subtle;
+
+ .btn {
+ flex: 1;
+ justify-content: center;
+ }
+
+ .btn-sm {
+ padding: $space-2 $space-3;
+ font-size: $font-size-xs;
+ }
+}
+
+// Empty state
+.empty-state {
+ text-align: center;
+ padding: $space-16 $space-6;
+ background: $bg-card;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-lg;
+
+ .empty-icon {
+ width: 64px;
+ height: 64px;
+ color: $text-tertiary;
+ margin-bottom: $space-4;
+ }
+
+ h3 {
+ font-size: $font-size-lg;
+ font-weight: $font-weight-semibold;
+ color: $text-primary;
+ margin: 0 0 $space-2;
+ }
+
+ p {
+ color: $text-secondary;
+ margin: 0 0 $space-6;
+ }
+}
+
+// ============================================
+// SERVER DETAIL PAGE
+// ============================================
+
+.server-detail-page {
+ padding: 0;
+}
+
+.page-breadcrumb {
+ display: flex;
+ align-items: center;
+ gap: $space-2;
+ font-size: $font-size-sm;
+ margin-bottom: $space-3;
+
+ a {
+ color: $text-tertiary;
+ text-decoration: none;
+
+ &:hover {
+ color: $text-primary;
+ }
+ }
+
+ .breadcrumb-separator {
+ color: $text-tertiary;
+ }
+
+ span:last-child {
+ color: $text-secondary;
+ }
+}
+
+.server-title {
+ display: flex;
+ align-items: center;
+ gap: $space-3;
+
+ h1 {
+ margin: 0;
+ }
+}
+
+.status-dot {
+ width: 12px;
+ height: 12px;
+ border-radius: 50%;
+
+ &.large {
+ width: 14px;
+ height: 14px;
+ }
+}
+
+.server-detail-tabs {
+ display: flex;
+ gap: $space-1;
+ margin-bottom: $space-6;
+ border-bottom: 1px solid $border-subtle;
+ padding-bottom: 0;
+}
+
+.tab-btn {
+ background: transparent;
+ border: none;
+ color: $text-tertiary;
+ font-size: $font-size-sm;
+ font-weight: $font-weight-medium;
+ padding: $space-3 $space-4;
+ cursor: pointer;
+ border-bottom: 2px solid transparent;
+ margin-bottom: -1px;
+ transition: all $transition-base;
+
+ &:hover {
+ color: $text-primary;
+ }
+
+ &.active {
+ color: $text-primary;
+ border-bottom-color: $accent-primary;
+ }
+}
+
+// Overview Tab
+.overview-grid {
+ display: grid;
+ grid-template-columns: repeat(2, 1fr);
+ gap: $space-5;
+
+ @media (max-width: $breakpoint-lg) {
+ grid-template-columns: 1fr;
+ }
+}
+
+.info-card {
+ background: $bg-card;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-lg;
+ padding: $space-5;
+
+ h3 {
+ font-size: $font-size-sm;
+ font-weight: $font-weight-semibold;
+ color: $text-tertiary;
+ text-transform: uppercase;
+ letter-spacing: 0.05em;
+ margin: 0 0 $space-4;
+ }
+}
+
+.info-list {
+ display: flex;
+ flex-direction: column;
+ gap: $space-3;
+}
+
+.info-item {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+
+ .info-label {
+ font-size: $font-size-sm;
+ color: $text-tertiary;
+ }
+
+ .info-value {
+ font-size: $font-size-sm;
+ color: $text-primary;
+
+ &.mono {
+ font-family: $font-mono;
+ font-size: $font-size-xs;
+ }
+ }
+}
+
+.status-badge {
+ display: inline-flex;
+ align-items: center;
+ gap: $space-1;
+ padding: $space-1 $space-2;
+ border-radius: $radius-sm;
+ font-size: $font-size-xs;
+ font-weight: $font-weight-medium;
+ text-transform: capitalize;
+
+ &.online {
+ background: $success-bg;
+ color: $success;
+ }
+
+ &.offline {
+ background: $danger-bg;
+ color: $danger;
+ }
+
+ &.connecting {
+ background: $warning-bg;
+ color: $warning;
+ }
+
+ &.pending {
+ background: $bg-secondary;
+ color: $text-tertiary;
+ }
+}
+
+// Resource Meters
+.metrics-card {
+ grid-column: span 2;
+
+ @media (max-width: $breakpoint-lg) {
+ grid-column: span 1;
+ }
+}
+
+.resource-meters {
+ display: grid;
+ grid-template-columns: repeat(3, 1fr);
+ gap: $space-6;
+
+ @media (max-width: $breakpoint-md) {
+ grid-template-columns: 1fr;
+ }
+}
+
+.resource-meter {
+ .resource-header {
+ display: flex;
+ justify-content: space-between;
+ margin-bottom: $space-2;
+
+ .resource-label {
+ font-size: $font-size-sm;
+ color: $text-secondary;
+ }
+
+ .resource-value {
+ font-family: $font-mono;
+ font-size: $font-size-sm;
+ color: $text-primary;
+ }
+ }
+
+ .resource-bar {
+ height: 8px;
+ background: $bg-secondary;
+ border-radius: $radius-full;
+ overflow: hidden;
+
+ .resource-fill {
+ height: 100%;
+ border-radius: $radius-full;
+ transition: width $transition-base;
+ }
+ }
+}
+
+.offline-card {
+ grid-column: span 2;
+
+ @media (max-width: $breakpoint-lg) {
+ grid-column: span 1;
+ }
+}
+
+.offline-message {
+ text-align: center;
+ padding: $space-6;
+
+ svg {
+ color: $text-tertiary;
+ margin-bottom: $space-4;
+ }
+
+ h4 {
+ font-size: $font-size-lg;
+ color: $text-primary;
+ margin: 0 0 $space-2;
+ }
+
+ p {
+ color: $text-secondary;
+ margin: 0;
+ }
+}
+
+.offline-notice {
+ text-align: center;
+ padding: $space-12;
+ background: $bg-card;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-lg;
+
+ svg {
+ color: $text-tertiary;
+ margin-bottom: $space-4;
+ }
+
+ h4 {
+ font-size: $font-size-lg;
+ color: $text-primary;
+ margin: 0 0 $space-2;
+ }
+
+ p {
+ color: $text-secondary;
+ margin: 0;
+ }
+}
+
+// Docker Tab
+.docker-tab {
+ background: $bg-card;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-lg;
+ overflow: hidden;
+}
+
+.docker-sub-tabs {
+ display: flex;
+ border-bottom: 1px solid $border-subtle;
+ padding: 0 $space-4;
+}
+
+.sub-tab {
+ background: transparent;
+ border: none;
+ color: $text-tertiary;
+ font-size: $font-size-sm;
+ padding: $space-4;
+ cursor: pointer;
+ border-bottom: 2px solid transparent;
+ margin-bottom: -1px;
+
+ &:hover {
+ color: $text-primary;
+ }
+
+ &.active {
+ color: $text-primary;
+ border-bottom-color: $accent-primary;
+ }
+}
+
+.containers-list,
+.images-list {
+ padding: $space-4;
+}
+
+.data-table {
+ width: 100%;
+ border-collapse: collapse;
+
+ th {
+ text-align: left;
+ font-size: $font-size-xs;
+ font-weight: $font-weight-semibold;
+ color: $text-tertiary;
+ text-transform: uppercase;
+ letter-spacing: 0.05em;
+ padding: $space-3;
+ border-bottom: 1px solid $border-subtle;
+ }
+
+ td {
+ padding: $space-3;
+ font-size: $font-size-sm;
+ color: $text-secondary;
+ border-bottom: 1px solid $border-subtle;
+ }
+
+ tr:last-child td {
+ border-bottom: none;
+ }
+
+ .container-name {
+ display: block;
+ color: $text-primary;
+ font-weight: $font-weight-medium;
+ }
+
+ .container-id {
+ display: block;
+ font-family: $font-mono;
+ font-size: $font-size-xs;
+ color: $text-tertiary;
+ }
+
+ .mono {
+ font-family: $font-mono;
+ font-size: $font-size-xs;
+ }
+}
+
+.status-pill {
+ display: inline-flex;
+ align-items: center;
+ gap: $space-1;
+ padding: $space-1 $space-2;
+ border-radius: $radius-sm;
+ font-size: $font-size-xs;
+ font-weight: $font-weight-medium;
+
+ &.running {
+ background: $success-bg;
+ color: $success;
+ }
+
+ &.stopped {
+ background: $bg-secondary;
+ color: $text-tertiary;
+ }
+}
+
+.actions-cell {
+ display: flex;
+ gap: $space-1;
+ justify-content: flex-end;
+}
+
+.btn-icon {
+ background: transparent;
+ border: none;
+ color: $text-tertiary;
+ cursor: pointer;
+ padding: $space-2;
+ border-radius: $radius-sm;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+
+ &:hover {
+ color: $text-primary;
+ background: $bg-hover;
+ }
+
+ &.success {
+ color: $success;
+
+ &:hover {
+ background: $success-bg;
+ }
+ }
+
+ &.danger {
+ color: $danger;
+
+ &:hover {
+ background: $danger-bg;
+ }
+ }
+}
+
+.empty-list {
+ text-align: center;
+ padding: $space-8;
+ color: $text-tertiary;
+}
+
+// Metrics Tab
+.metrics-tab {
+ padding: 0;
+}
+
+.metrics-live-stats {
+ margin-top: $space-6;
+}
+
+.live-stat-card {
+ background: $bg-card;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-lg;
+ padding: $space-5;
+
+ h4 {
+ font-size: $font-size-xs;
+ font-weight: $font-weight-semibold;
+ color: $text-tertiary;
+ text-transform: uppercase;
+ letter-spacing: 0.05em;
+ margin: 0 0 $space-4;
+ }
+}
+
+.live-stats-grid {
+ display: grid;
+ grid-template-columns: repeat(6, 1fr);
+ gap: $space-4;
+
+ @media (max-width: $breakpoint-lg) {
+ grid-template-columns: repeat(3, 1fr);
+ }
+
+ @media (max-width: $breakpoint-sm) {
+ grid-template-columns: repeat(2, 1fr);
+ }
+}
+
+.live-stat {
+ text-align: center;
+
+ .live-stat-label {
+ display: block;
+ font-size: $font-size-xs;
+ color: $text-tertiary;
+ margin-bottom: $space-1;
+ }
+
+ .live-stat-value {
+ display: block;
+ font-size: $font-size-md;
+ font-weight: $font-weight-semibold;
+ font-family: $font-mono;
+ color: $text-primary;
+ }
+}
+
+.metrics-grid {
+ display: grid;
+ grid-template-columns: repeat(3, 1fr);
+ gap: $space-5;
+
+ @media (max-width: $breakpoint-lg) {
+ grid-template-columns: repeat(2, 1fr);
+ }
+
+ @media (max-width: $breakpoint-md) {
+ grid-template-columns: 1fr;
+ }
+}
+
+.metric-card {
+ background: $bg-card;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-lg;
+ padding: $space-5;
+
+ &.large {
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ }
+
+ h3 {
+ font-size: $font-size-sm;
+ font-weight: $font-weight-semibold;
+ color: $text-tertiary;
+ text-transform: uppercase;
+ letter-spacing: 0.05em;
+ margin: 0 0 $space-4;
+ text-align: center;
+ }
+}
+
+.metric-gauge {
+ display: flex;
+ justify-content: center;
+ margin-bottom: $space-4;
+}
+
+.circular-gauge {
+ width: 120px;
+ height: 120px;
+
+ .gauge-bg {
+ fill: none;
+ stroke: $bg-secondary;
+ stroke-width: 8;
+ }
+
+ .gauge-fill {
+ fill: none;
+ stroke-width: 8;
+ stroke-linecap: round;
+ transform: rotate(-90deg);
+ transform-origin: center;
+ }
+
+ .gauge-text {
+ font-family: $font-mono;
+ font-size: 20px;
+ font-weight: $font-weight-bold;
+ fill: $text-primary;
+ text-anchor: middle;
+ dominant-baseline: middle;
+ }
+}
+
+.metric-details {
+ width: 100%;
+}
+
+.detail-item {
+ display: flex;
+ justify-content: space-between;
+ padding: $space-2 0;
+ font-size: $font-size-sm;
+ border-top: 1px solid $border-subtle;
+
+ &:first-child {
+ border-top: none;
+ }
+
+ span:first-child {
+ color: $text-tertiary;
+ }
+
+ span:last-child {
+ color: $text-primary;
+ font-family: $font-mono;
+ }
+}
+
+.network-stats,
+.docker-stats {
+ display: flex;
+ flex-direction: column;
+ gap: $space-4;
+}
+
+.net-stat,
+.docker-stat {
+ display: flex;
+ align-items: center;
+ gap: $space-3;
+
+ svg {
+ color: $text-tertiary;
+ }
+
+ span:first-of-type {
+ color: $text-tertiary;
+ font-size: $font-size-sm;
+ flex: 1;
+ }
+
+ .value {
+ font-family: $font-mono;
+ font-size: $font-size-sm;
+ color: $text-primary;
+ }
+}
+
+// Settings Tab
+.settings-tab {
+ max-width: none;
+}
+
+.settings-grid {
+ display: grid;
+ grid-template-columns: 1fr 1fr;
+ gap: $space-6;
+ margin-bottom: $space-6;
+ align-items: start;
+
+ @media (max-width: $breakpoint-lg) {
+ grid-template-columns: 1fr;
+ }
+
+ .form-section {
+ margin-bottom: 0;
+ }
+}
+
+.settings-form {
+ margin-bottom: 0;
+ background: transparent;
+ border: none;
+ border-radius: 0;
+ padding: 0;
+
+ .form-section .btn[type="submit"] {
+ margin-top: $space-4;
+ }
+}
+
+.security-grid {
+ display: grid;
+ grid-template-columns: 1fr 1fr;
+ gap: $space-6;
+ margin-bottom: $space-6;
+ align-items: start;
+
+ @media (max-width: $breakpoint-lg) {
+ grid-template-columns: 1fr;
+ }
+
+ .form-section {
+ margin-bottom: 0;
+ }
+}
+
+// Security section styles
+.security-info-bar {
+ display: flex;
+ gap: $space-6;
+ padding: $space-4;
+ background: $bg-elevated;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-lg;
+ margin-bottom: $space-5;
+}
+
+.security-info-item {
+ .security-info-label {
+ display: block;
+ font-size: $font-size-xs;
+ color: $text-tertiary;
+ margin-bottom: $space-1;
+ }
+
+ .security-info-value {
+ font-size: $font-size-sm;
+ color: $text-primary;
+
+ code {
+ font-family: $font-mono;
+ background: $bg-body;
+ padding: 2px $space-2;
+ border-radius: $radius-sm;
+ font-size: $font-size-xs;
+ }
+ }
+}
+
+.subsection {
+ h4 {
+ font-size: $font-size-sm;
+ font-weight: $font-weight-semibold;
+ color: $text-primary;
+ margin: 0 0 $space-2;
+ }
+}
+
+.ip-list {
+ margin-bottom: $space-3;
+}
+
+.ip-empty {
+ font-size: $font-size-sm;
+ color: $text-tertiary;
+ padding: $space-4;
+ text-align: center;
+ background: $bg-elevated;
+ border: 1px dashed $border-subtle;
+ border-radius: $radius-md;
+}
+
+.ip-item {
+ display: flex;
+ align-items: center;
+ gap: $space-3;
+ padding: $space-2 $space-3;
+ background: $bg-elevated;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-md;
+ margin-bottom: $space-2;
+
+ code {
+ flex: 1;
+ font-family: $font-mono;
+ font-size: $font-size-sm;
+ color: $text-primary;
+ }
+
+ .badge-success {
+ font-size: $font-size-xs;
+ padding: 2px $space-2;
+ background: $success-bg;
+ color: $success;
+ border-radius: $radius-sm;
+ }
+}
+
+.ip-add-form {
+ display: flex;
+ gap: $space-2;
+
+ input {
+ flex: 1;
+ background: $bg-elevated;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-md;
+ padding: $space-2 $space-3;
+ color: $text-primary;
+ font-size: $font-size-sm;
+
+ &::placeholder {
+ color: $text-tertiary;
+ }
+
+ &:focus {
+ border-color: $accent-primary;
+ outline: none;
+ }
+ }
+}
+
+.security-warning {
+ margin-top: $space-3;
+ padding: $space-3 $space-4;
+ background: fade($warning, 10%);
+ border: 1px solid fade($warning, 25%);
+ border-radius: $radius-md;
+ font-size: $font-size-xs;
+ color: $warning;
+}
+
+.security-notice {
+ margin-top: $space-3;
+ font-size: $font-size-xs;
+ color: $text-tertiary;
+}
+
+.key-rotation-actions {
+ display: flex;
+ align-items: center;
+ gap: $space-4;
+}
+
+.key-rotation-hint {
+ font-size: $font-size-xs;
+ color: $text-tertiary;
+}
+
+// Security Alerts
+.alerts-list {
+ display: flex;
+ flex-direction: column;
+ gap: $space-3;
+}
+
+.alert-item {
+ padding: $space-4;
+ background: $bg-elevated;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-lg;
+ border-left: 3px solid $text-tertiary;
+
+ &.severity-critical { border-left-color: $danger; }
+ &.severity-high { border-left-color: $warning; }
+ &.severity-medium { border-left-color: $accent-primary; }
+ &.severity-low { border-left-color: $text-tertiary; }
+}
+
+.alert-item-header {
+ display: flex;
+ align-items: center;
+ gap: $space-3;
+ margin-bottom: $space-2;
+
+ .alert-type {
+ flex: 1;
+ font-size: $font-size-sm;
+ font-weight: $font-weight-medium;
+ color: $text-primary;
+ text-transform: capitalize;
+ }
+
+ .alert-time {
+ font-size: $font-size-xs;
+ color: $text-tertiary;
+ }
+}
+
+.severity-badge {
+ font-size: $font-size-xs;
+ font-weight: $font-weight-semibold;
+ text-transform: uppercase;
+ padding: 2px $space-2;
+ border-radius: $radius-sm;
+
+ &.critical { background: fade($danger, 15%); color: $danger; }
+ &.high { background: fade($warning, 15%); color: $warning; }
+ &.medium { background: fade($accent-primary-raw, 15%); color: $accent-primary; }
+ &.low { background: $bg-hover; color: $text-tertiary; }
+}
+
+.alert-item-details {
+ display: flex;
+ gap: $space-4;
+ font-size: $font-size-xs;
+ color: $text-secondary;
+ margin-bottom: $space-3;
+}
+
+.alert-item-actions {
+ display: flex;
+ gap: $space-2;
+}
+
+.form-section {
+ background: $bg-card;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-lg;
+ padding: $space-6;
+ margin-bottom: $space-6;
+
+ h3 {
+ font-size: $font-size-base;
+ font-weight: $font-weight-semibold;
+ color: $text-primary;
+ margin: 0 0 $space-4;
+ }
+
+ .section-description {
+ color: $text-secondary;
+ font-size: $font-size-sm;
+ margin-bottom: $space-4;
+ }
+
+ &.danger-zone {
+ border-color: $danger-border;
+
+ h3 {
+ color: $danger;
+ }
+ }
+}
+
+.form-row {
+ display: grid;
+ grid-template-columns: repeat(2, 1fr);
+ gap: $space-4;
+
+ @media (max-width: $breakpoint-sm) {
+ grid-template-columns: 1fr;
+ }
+}
+
+// ============================================
+// AGENT REGISTRATION SECTION
+// ============================================
+
+.token-status {
+ display: flex;
+ align-items: center;
+ gap: $space-2;
+ font-size: $font-size-sm;
+ color: $text-secondary;
+ margin-bottom: $space-5;
+}
+
+.token-status-dot {
+ width: 8px;
+ height: 8px;
+ border-radius: $radius-full;
+ flex-shrink: 0;
+
+ &.active {
+ background: $success;
+ box-shadow: 0 0 6px fade($success, 40%);
+ }
+}
+
+.install-active {
+ display: flex;
+ flex-direction: column;
+ gap: $space-4;
+}
+
+.install-script-block {
+ background: $bg-elevated;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-lg;
+ overflow: hidden;
+}
+
+.install-script-header {
+ display: flex;
+ align-items: center;
+ gap: $space-3;
+ padding: $space-3 $space-4;
+ background: $bg-hover;
+ border-bottom: 1px solid $border-subtle;
+
+ > svg {
+ color: $text-tertiary;
+ flex-shrink: 0;
+ }
+
+ > span {
+ flex: 1;
+ font-size: $font-size-sm;
+ font-weight: $font-weight-medium;
+ color: $text-primary;
+ }
+}
+
+.install-script-code {
+ padding: $space-4 $space-5;
+ margin: 0;
+ font-family: $font-mono;
+ font-size: $font-size-xs;
+ line-height: $line-height-relaxed;
+ color: $text-secondary;
+ background: $bg-body;
+ overflow-x: auto;
+ white-space: pre-wrap;
+ word-break: break-all;
+}
+
+.install-inactive {
+ .section-description {
+ margin-bottom: $space-4;
+ }
+}
+
+// ============================================
+// ADD SERVER MODAL
+// ============================================
+
+.permissions-grid {
+ display: grid;
+ grid-template-columns: repeat(2, 1fr);
+ gap: $space-2;
+
+ @media (max-width: $breakpoint-sm) {
+ grid-template-columns: 1fr;
+ }
+}
+
+.permission-checkbox {
+ display: flex;
+ align-items: center;
+ gap: $space-2;
+ font-size: $font-size-sm;
+ color: $text-secondary;
+ cursor: pointer;
+
+ input[type="checkbox"] {
+ width: 16px;
+ height: 16px;
+ accent-color: $accent-primary;
+ }
+
+ &:hover {
+ color: $text-primary;
+ }
+}
+
+.install-instructions {
+ padding: $space-6;
+}
+
+.success-banner {
+ display: flex;
+ align-items: flex-start;
+ gap: $space-4;
+ background: $success-bg;
+ border: 1px solid $success-border;
+ color: $success;
+ padding: $space-5;
+ border-radius: $radius-lg;
+ margin-bottom: $space-6;
+
+ svg {
+ flex-shrink: 0;
+ width: 22px;
+ height: 22px;
+ margin-top: 1px;
+ }
+
+ strong {
+ display: block;
+ font-size: $font-size-sm;
+ font-weight: $font-weight-semibold;
+ margin-bottom: $space-1;
+ }
+
+ .success-subtitle {
+ font-size: $font-size-xs;
+ color: $text-secondary;
+ margin: 0;
+ line-height: $line-height-normal;
+ }
+}
+
+.install-tabs {
+ display: flex;
+ flex-direction: column;
+ gap: $space-4;
+}
+
+.install-tab {
+ background: $bg-elevated;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-lg;
+ overflow: hidden;
+}
+
+.install-tab-header {
+ display: flex;
+ align-items: center;
+ gap: $space-3;
+ padding: $space-3 $space-4;
+ background: $bg-hover;
+ border-bottom: 1px solid $border-subtle;
+
+ > svg {
+ color: $text-tertiary;
+ flex-shrink: 0;
+ }
+}
+
+.install-tab-title {
+ flex: 1;
+ min-width: 0;
+
+ > span:first-child {
+ display: block;
+ font-size: $font-size-sm;
+ font-weight: $font-weight-medium;
+ color: $text-primary;
+ }
+}
+
+.install-tab-description {
+ display: block;
+ font-size: $font-size-xs;
+ color: $text-tertiary;
+ font-weight: $font-weight-normal;
+ margin-top: 1px;
+}
+
+.install-script {
+ padding: $space-4 $space-5;
+ margin: 0;
+ font-family: $font-mono;
+ font-size: $font-size-xs;
+ line-height: $line-height-relaxed;
+ color: $text-secondary;
+ background: $bg-body;
+ overflow-x: auto;
+ white-space: pre-wrap;
+ word-break: break-all;
+}
+
+.install-info {
+ margin-top: $space-6;
+ padding: $space-5;
+ background: $bg-elevated;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-lg;
+
+ h4 {
+ font-size: $font-size-sm;
+ font-weight: $font-weight-semibold;
+ color: $text-primary;
+ margin: 0 0 $space-3;
+ }
+
+ ol {
+ margin: 0 0 $space-4;
+ padding-left: $space-5;
+ color: $text-secondary;
+ font-size: $font-size-sm;
+ line-height: $line-height-relaxed;
+ }
+
+ li {
+ margin-bottom: $space-2;
+ }
+
+ .text-muted {
+ color: $text-tertiary;
+ font-size: $font-size-xs;
+ }
+}
+
+// ============================================
+// MANAGE GROUPS MODAL
+// ============================================
+
+.group-form {
+ display: flex;
+ gap: $space-3;
+ margin-bottom: $space-5;
+
+ input {
+ flex: 1;
+ background: $bg-elevated;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-md;
+ padding: $space-3;
+ color: $text-primary;
+ font-size: $font-size-sm;
+
+ &::placeholder {
+ color: $text-tertiary;
+ }
+
+ &:focus {
+ outline: none;
+ border-color: $accent-primary;
+ }
+ }
+}
+
+.groups-list {
+ display: flex;
+ flex-direction: column;
+ gap: $space-2;
+ max-height: 300px;
+ overflow-y: auto;
+}
+
+.group-item {
+ display: flex;
+ align-items: center;
+ gap: $space-3;
+ padding: $space-3;
+ background: $bg-elevated;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-md;
+
+ input {
+ flex: 1;
+ background: $bg-card;
+ border: 1px solid $accent-primary;
+ border-radius: $radius-sm;
+ padding: $space-2;
+ color: $text-primary;
+ font-size: $font-size-sm;
+
+ &:focus {
+ outline: none;
+ }
+ }
+
+ .group-name {
+ flex: 1;
+ display: flex;
+ align-items: center;
+ gap: $space-2;
+ font-size: $font-size-sm;
+ color: $text-primary;
+
+ svg {
+ color: $text-tertiary;
+ }
+ }
+
+ .group-count {
+ font-size: $font-size-xs;
+ color: $text-tertiary;
+ }
+
+ .group-actions {
+ display: flex;
+ gap: $space-1;
+ }
+}
+
+.empty-groups {
+ text-align: center;
+ padding: $space-6;
+ color: $text-tertiary;
+ font-size: $font-size-sm;
+}
diff --git a/frontend/src/styles/pages/_service-detail.less b/frontend/src/styles/pages/_service-detail.scss
similarity index 50%
rename from frontend/src/styles/pages/_service-detail.less
rename to frontend/src/styles/pages/_service-detail.scss
index ef33c8f2..db227384 100644
--- a/frontend/src/styles/pages/_service-detail.less
+++ b/frontend/src/styles/pages/_service-detail.scss
@@ -7,27 +7,27 @@
&__breadcrumb {
display: flex;
align-items: center;
- gap: @space-2;
- margin-bottom: @space-5;
- font-size: @font-size-sm;
+ gap: $space-2;
+ margin-bottom: $space-5;
+ font-size: $font-size-sm;
a {
- color: @text-tertiary;
+ color: $text-tertiary;
text-decoration: none;
&:hover {
- color: @text-primary;
+ color: $text-primary;
}
}
}
&__breadcrumb-sep {
- color: @text-tertiary;
+ color: $text-tertiary;
}
&__breadcrumb-current {
- color: @text-secondary;
- font-weight: @font-weight-medium;
+ color: $text-secondary;
+ font-weight: $font-weight-medium;
}
// Header
@@ -35,21 +35,21 @@
display: flex;
justify-content: space-between;
align-items: flex-start;
- gap: @space-4;
- margin-bottom: @space-4;
+ gap: $space-4;
+ margin-bottom: $space-4;
}
&__header-left {
display: flex;
align-items: flex-start;
- gap: @space-4;
+ gap: $space-4;
min-width: 0;
}
&__icon {
width: 48px;
height: 48px;
- border-radius: @radius-xl;
+ border-radius: $radius-xl;
display: flex;
align-items: center;
justify-content: center;
@@ -63,13 +63,13 @@
&__title-row {
display: flex;
align-items: center;
- gap: @space-3;
+ gap: $space-3;
flex-wrap: wrap;
h1 {
- font-size: @font-size-2xl;
- font-weight: @font-weight-bold;
- color: @text-primary;
+ font-size: $font-size-2xl;
+ font-weight: $font-weight-bold;
+ color: $text-primary;
margin: 0;
white-space: nowrap;
}
@@ -78,31 +78,31 @@
&__status {
display: inline-flex;
align-items: center;
- gap: @space-1;
- font-size: @font-size-sm;
- font-weight: @font-weight-medium;
- padding: 2px @space-3;
- border-radius: @radius-full;
+ gap: $space-1;
+ font-size: $font-size-sm;
+ font-weight: $font-weight-medium;
+ padding: 2px $space-3;
+ border-radius: $radius-full;
&--live {
- color: @success;
- background: @success-bg;
+ color: $success;
+ background: $success-bg;
}
&--stopped {
- color: @text-tertiary;
- background: @bg-secondary;
+ color: $text-tertiary;
+ background: $bg-secondary;
}
&--deploying,
&--building {
- color: @warning;
- background: @warning-bg;
+ color: $warning;
+ background: $warning-bg;
}
&--failed {
- color: @danger;
- background: @danger-bg;
+ color: $danger;
+ background: $danger-bg;
}
}
@@ -123,35 +123,35 @@
}
&__type-badge {
- font-size: @font-size-xs;
- font-weight: @font-weight-medium;
- padding: 2px @space-2;
- border-radius: @radius-full;
+ font-size: $font-size-xs;
+ font-weight: $font-weight-medium;
+ padding: 2px $space-2;
+ border-radius: $radius-full;
border: 1px solid;
}
&__subtitle {
display: flex;
align-items: center;
- gap: @space-2;
- margin-top: @space-1;
- font-size: @font-size-sm;
- color: @text-tertiary;
+ gap: $space-2;
+ margin-top: $space-1;
+ font-size: $font-size-sm;
+ color: $text-tertiary;
.mono {
- font-family: @font-mono;
+ font-family: $font-mono;
}
}
&__sep {
- color: @text-tertiary;
+ color: $text-tertiary;
}
// Header Actions
&__header-actions {
display: flex;
align-items: center;
- gap: @space-2;
+ gap: $space-2;
flex-shrink: 0;
}
@@ -164,13 +164,13 @@
position: absolute;
top: calc(100% + 4px);
left: 0;
- background: @bg-elevated;
- border: 1px solid @border-default;
- border-radius: @radius-lg;
- padding: @space-1;
+ background: $bg-elevated;
+ border: 1px solid $border-default;
+ border-radius: $radius-lg;
+ padding: $space-1;
min-width: 200px;
- z-index: @z-dropdown;
- box-shadow: @shadow-lg;
+ z-index: $z-dropdown;
+ box-shadow: $shadow-lg;
&--right {
left: auto;
@@ -180,20 +180,20 @@
button, a {
display: flex;
align-items: center;
- gap: @space-2;
+ gap: $space-2;
width: 100%;
- padding: @space-2 @space-3;
+ padding: $space-2 $space-3;
background: none;
border: none;
- color: @text-secondary;
- font-size: @font-size-sm;
+ color: $text-secondary;
+ font-size: $font-size-sm;
cursor: pointer;
- border-radius: @radius-md;
+ border-radius: $radius-md;
text-decoration: none;
&:hover {
- background: @bg-hover;
- color: @text-primary;
+ background: $bg-hover;
+ color: $text-primary;
}
&:disabled {
@@ -205,83 +205,83 @@
&__dropdown-divider {
height: 1px;
- background: @border-subtle;
- margin: @space-1 0;
+ background: $border-subtle;
+ margin: $space-1 0;
}
&__dropdown-danger {
- color: @danger !important;
+ color: $danger !important;
&:hover {
- background: @danger-bg !important;
- color: @danger !important;
+ background: $danger-bg !important;
+ color: $danger !important;
}
}
// Repo Bar
&__repo-bar {
- margin-bottom: @space-5;
+ margin-bottom: $space-5;
}
&__repo-pill {
display: inline-flex;
align-items: center;
- gap: @space-2;
- padding: @space-2 @space-3;
- background: @bg-card;
- border: 1px solid @border-default;
- border-radius: @radius-full;
- font-size: @font-size-sm;
- color: @text-secondary;
+ gap: $space-2;
+ padding: $space-2 $space-3;
+ background: $bg-card;
+ border: 1px solid $border-default;
+ border-radius: $radius-full;
+ font-size: $font-size-sm;
+ color: $text-secondary;
cursor: pointer;
- transition: border-color @transition-fast;
+ transition: border-color $transition-fast;
&:hover {
- border-color: @accent-primary;
+ border-color: $accent-primary;
}
}
&__repo-url {
- font-family: @font-mono;
- font-size: @font-size-xs;
+ font-family: $font-mono;
+ font-size: $font-size-xs;
}
&__repo-arrow {
- color: @text-tertiary;
+ color: $text-tertiary;
}
&__repo-branch {
- font-family: @font-mono;
- font-size: @font-size-xs;
- color: @accent-primary;
- font-weight: @font-weight-medium;
+ font-family: $font-mono;
+ font-size: $font-size-xs;
+ color: $accent-primary;
+ font-weight: $font-weight-medium;
}
&__auto-deploy-badge {
- font-size: @font-size-xs;
- padding: 0 @space-1;
- background: @success-bg;
- color: @success;
- border-radius: @radius-sm;
- font-weight: @font-weight-medium;
+ font-size: $font-size-xs;
+ padding: 0 $space-1;
+ background: $success-bg;
+ color: $success;
+ border-radius: $radius-sm;
+ font-weight: $font-weight-medium;
}
&__connect-repo {
display: inline-flex;
align-items: center;
- gap: @space-2;
- padding: @space-2 @space-3;
+ gap: $space-2;
+ padding: $space-2 $space-3;
background: none;
- border: 1px dashed @border-default;
- border-radius: @radius-full;
- font-size: @font-size-sm;
- color: @text-tertiary;
+ border: 1px dashed $border-default;
+ border-radius: $radius-full;
+ font-size: $font-size-sm;
+ color: $text-tertiary;
cursor: pointer;
- transition: all @transition-fast;
+ transition: all $transition-fast;
&:hover {
- border-color: @accent-primary;
- color: @accent-primary;
+ border-color: $accent-primary;
+ color: $accent-primary;
}
}
@@ -289,30 +289,30 @@
&__tabs {
display: flex;
gap: 0;
- border-bottom: 1px solid @border-default;
- margin-bottom: @space-6;
+ border-bottom: 1px solid $border-default;
+ margin-bottom: $space-6;
overflow-x: auto;
}
&__tab {
- padding: @space-3 @space-4;
+ padding: $space-3 $space-4;
background: none;
border: none;
border-bottom: 2px solid transparent;
- color: @text-tertiary;
- font-size: @font-size-sm;
- font-weight: @font-weight-medium;
+ color: $text-tertiary;
+ font-size: $font-size-sm;
+ font-weight: $font-weight-medium;
cursor: pointer;
white-space: nowrap;
- transition: all @transition-fast;
+ transition: all $transition-fast;
&:hover {
- color: @text-secondary;
+ color: $text-secondary;
}
&--active {
- color: @text-primary;
- border-bottom-color: @accent-primary;
+ color: $text-primary;
+ border-bottom-color: $accent-primary;
}
}
@@ -332,11 +332,11 @@
display: flex;
justify-content: space-between;
align-items: center;
- margin-bottom: @space-5;
+ margin-bottom: $space-5;
h3 {
margin: 0;
- color: @text-primary;
+ color: $text-primary;
}
}
@@ -347,24 +347,24 @@
&__event {
display: flex;
- gap: @space-4;
- padding: @space-4;
- border: 1px solid @border-default;
- border-radius: @radius-lg;
- background: @bg-card;
+ gap: $space-4;
+ padding: $space-4;
+ border: 1px solid $border-default;
+ border-radius: $radius-lg;
+ background: $bg-card;
cursor: pointer;
- transition: background @transition-fast;
+ transition: background $transition-fast;
& + & {
- margin-top: @space-2;
+ margin-top: $space-2;
}
&:hover {
- background: @bg-hover;
+ background: $bg-hover;
}
&--expanded {
- background: @bg-elevated;
+ background: $bg-elevated;
}
}
@@ -385,28 +385,28 @@
display: flex;
justify-content: space-between;
align-items: flex-start;
- gap: @space-3;
+ gap: $space-3;
}
&__event-commit {
display: flex;
align-items: center;
- gap: @space-2;
+ gap: $space-2;
}
&__event-sha {
- font-family: @font-mono;
- font-size: @font-size-xs;
- color: @accent-primary;
- background: @accent-glow;
- padding: 1px @space-2;
- border-radius: @radius-sm;
+ font-family: $font-mono;
+ font-size: $font-size-xs;
+ color: $accent-primary;
+ background: $accent-glow;
+ padding: 1px $space-2;
+ border-radius: $radius-sm;
}
&__event-message {
- font-size: @font-size-sm;
- color: @text-primary;
- font-weight: @font-weight-medium;
+ font-size: $font-size-sm;
+ color: $text-primary;
+ font-weight: $font-weight-medium;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
@@ -415,32 +415,32 @@
&__event-meta {
display: flex;
align-items: center;
- gap: @space-3;
- margin-top: @space-1;
- font-size: @font-size-xs;
- color: @text-tertiary;
+ gap: $space-3;
+ margin-top: $space-1;
+ font-size: $font-size-xs;
+ color: $text-tertiary;
}
&__event-badge {
- font-size: @font-size-xs;
- font-weight: @font-weight-medium;
- padding: 1px @space-2;
- border-radius: @radius-sm;
+ font-size: $font-size-xs;
+ font-weight: $font-weight-medium;
+ padding: 1px $space-2;
+ border-radius: $radius-sm;
}
&__event-logs {
- margin-top: @space-3;
- padding: @space-3;
- background: @bg-body;
- border-radius: @radius-md;
+ margin-top: $space-3;
+ padding: $space-3;
+ background: $bg-body;
+ border-radius: $radius-md;
max-height: 300px;
overflow-y: auto;
pre {
margin: 0;
- font-family: @font-mono;
- font-size: @font-size-xs;
- color: @text-secondary;
+ font-family: $font-mono;
+ font-size: $font-size-xs;
+ color: $text-secondary;
white-space: pre-wrap;
word-break: break-all;
}
@@ -448,12 +448,12 @@
&__empty {
text-align: center;
- padding: @space-12 @space-8;
- color: @text-tertiary;
+ padding: $space-12 $space-8;
+ color: $text-tertiary;
h3 {
- color: @text-secondary;
- margin-bottom: @space-2;
+ color: $text-secondary;
+ margin-bottom: $space-2;
}
}
}
@@ -461,8 +461,8 @@
// Shell Tab
.shell-tab {
&__container {
- border: 1px solid @border-default;
- border-radius: @radius-lg;
+ border: 1px solid $border-default;
+ border-radius: $radius-lg;
overflow: hidden;
}
@@ -470,17 +470,17 @@
display: flex;
justify-content: space-between;
align-items: center;
- padding: @space-3 @space-4;
- background: @bg-elevated;
- border-bottom: 1px solid @border-default;
+ padding: $space-3 $space-4;
+ background: $bg-elevated;
+ border-bottom: 1px solid $border-default;
}
&__terminal {
background: #0d1117;
- padding: @space-4;
+ padding: $space-4;
min-height: 400px;
- font-family: @font-mono;
- font-size: @font-size-sm;
+ font-family: $font-mono;
+ font-size: $font-size-sm;
color: #e6edf3;
overflow-y: auto;
max-height: 600px;
@@ -503,16 +503,16 @@
&__input-row {
display: flex;
align-items: center;
- gap: @space-2;
- padding: @space-3 @space-4;
- background: @bg-card;
- border-top: 1px solid @border-default;
+ gap: $space-2;
+ padding: $space-3 $space-4;
+ background: $bg-card;
+ border-top: 1px solid $border-default;
}
&__prompt {
- color: @accent-primary;
- font-family: @font-mono;
- font-size: @font-size-sm;
+ color: $accent-primary;
+ font-family: $font-mono;
+ font-size: $font-size-sm;
flex-shrink: 0;
}
@@ -520,9 +520,9 @@
flex: 1;
background: none;
border: none;
- color: @text-primary;
- font-family: @font-mono;
- font-size: @font-size-sm;
+ color: $text-primary;
+ font-family: $font-mono;
+ font-size: $font-size-sm;
outline: none;
}
}
@@ -532,52 +532,52 @@
&__grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
- gap: @space-4;
+ gap: $space-4;
}
&__card {
- background: @bg-card;
- border: 1px solid @border-default;
- border-radius: @radius-lg;
- padding: @space-5;
+ background: $bg-card;
+ border: 1px solid $border-default;
+ border-radius: $radius-lg;
+ padding: $space-5;
}
&__card-header {
display: flex;
justify-content: space-between;
align-items: center;
- margin-bottom: @space-3;
+ margin-bottom: $space-3;
h4 {
margin: 0;
- color: @text-primary;
- font-size: @font-size-base;
+ color: $text-primary;
+ font-size: $font-size-base;
}
span {
- font-size: @font-size-xl;
- font-weight: @font-weight-bold;
- color: @text-primary;
+ font-size: $font-size-xl;
+ font-weight: $font-weight-bold;
+ color: $text-primary;
}
}
&__bar {
height: 8px;
- background: @bg-secondary;
- border-radius: @radius-full;
+ background: $bg-secondary;
+ border-radius: $radius-full;
overflow: hidden;
}
&__bar-fill {
height: 100%;
- border-radius: @radius-full;
- transition: width @transition-slow;
+ border-radius: $radius-full;
+ transition: width $transition-slow;
}
&__info {
- margin-top: @space-2;
- font-size: @font-size-xs;
- color: @text-tertiary;
+ margin-top: $space-2;
+ font-size: $font-size-xs;
+ color: $text-tertiary;
}
}
@@ -586,36 +586,36 @@
&__form {
display: flex;
flex-direction: column;
- gap: @space-4;
+ gap: $space-4;
}
&__field {
label {
display: block;
- font-size: @font-size-sm;
- font-weight: @font-weight-medium;
- color: @text-secondary;
- margin-bottom: @space-1;
+ font-size: $font-size-sm;
+ font-weight: $font-weight-medium;
+ color: $text-secondary;
+ margin-bottom: $space-1;
}
input, select, textarea {
width: 100%;
- padding: @space-2 @space-3;
- background: @bg-card;
- border: 1px solid @border-default;
- border-radius: @radius-md;
- color: @text-primary;
- font-size: @font-size-sm;
+ padding: $space-2 $space-3;
+ background: $bg-card;
+ border: 1px solid $border-default;
+ border-radius: $radius-md;
+ color: $text-primary;
+ font-size: $font-size-sm;
&:focus {
outline: none;
- border-color: @accent-primary;
+ border-color: $accent-primary;
}
}
textarea {
- font-family: @font-mono;
- font-size: @font-size-xs;
+ font-family: $font-mono;
+ font-size: $font-size-xs;
min-height: 80px;
resize: vertical;
}
@@ -625,20 +625,20 @@
display: flex;
align-items: center;
justify-content: space-between;
- padding: @space-3;
- background: @bg-card;
- border: 1px solid @border-default;
- border-radius: @radius-md;
+ padding: $space-3;
+ background: $bg-card;
+ border: 1px solid $border-default;
+ border-radius: $radius-md;
}
&__toggle-label {
- font-size: @font-size-sm;
- color: @text-secondary;
+ font-size: $font-size-sm;
+ color: $text-secondary;
span {
display: block;
- font-size: @font-size-xs;
- color: @text-tertiary;
+ font-size: $font-size-xs;
+ color: $text-tertiary;
margin-top: 2px;
}
}
@@ -646,29 +646,29 @@
&__actions {
display: flex;
justify-content: flex-end;
- gap: @space-2;
- margin-top: @space-4;
- padding-top: @space-4;
- border-top: 1px solid @border-subtle;
+ gap: $space-2;
+ margin-top: $space-4;
+ padding-top: $space-4;
+ border-top: 1px solid $border-subtle;
}
}
// Settings Tab within service detail
.svc-settings {
&__section {
- margin-bottom: @space-6;
+ margin-bottom: $space-6;
}
&__section-title {
- font-size: @font-size-md;
- font-weight: @font-weight-semibold;
- color: @text-primary;
- margin-bottom: @space-4;
+ font-size: $font-size-md;
+ font-weight: $font-weight-semibold;
+ color: $text-primary;
+ margin-bottom: $space-4;
}
}
// Icon-only button
.btn-icon {
- padding: @space-2 !important;
+ padding: $space-2 !important;
min-width: auto !important;
}
diff --git a/frontend/src/styles/pages/_services.less b/frontend/src/styles/pages/_services.scss
similarity index 56%
rename from frontend/src/styles/pages/_services.less
rename to frontend/src/styles/pages/_services.scss
index 4ea17ace..0aaca24c 100644
--- a/frontend/src/styles/pages/_services.less
+++ b/frontend/src/styles/pages/_services.scss
@@ -7,45 +7,45 @@
display: flex;
justify-content: space-between;
align-items: flex-start;
- margin-bottom: @space-6;
+ margin-bottom: $space-6;
h1 {
- font-size: @font-size-2xl;
- font-weight: @font-weight-bold;
- color: @text-primary;
+ font-size: $font-size-2xl;
+ font-weight: $font-weight-bold;
+ color: $text-primary;
margin: 0;
}
}
&__subtitle {
- color: @text-tertiary;
- font-size: @font-size-sm;
- margin-top: @space-1;
+ color: $text-tertiary;
+ font-size: $font-size-sm;
+ margin-top: $space-1;
}
&__filters {
display: flex;
- gap: @space-3;
- margin-bottom: @space-5;
+ gap: $space-3;
+ margin-bottom: $space-5;
}
&__search {
flex: 1;
display: flex;
align-items: center;
- gap: @space-2;
- background: @bg-card;
- border: 1px solid @border-default;
- border-radius: @radius-lg;
- padding: 0 @space-3;
- transition: border-color @transition-fast;
+ gap: $space-2;
+ background: $bg-card;
+ border: 1px solid $border-default;
+ border-radius: $radius-lg;
+ padding: 0 $space-3;
+ transition: border-color $transition-fast;
&:focus-within {
- border-color: @accent-primary;
+ border-color: $accent-primary;
}
svg {
- color: @text-tertiary;
+ color: $text-tertiary;
flex-shrink: 0;
}
@@ -53,38 +53,38 @@
flex: 1;
background: none;
border: none;
- padding: @space-2 0;
- color: @text-primary;
- font-size: @font-size-sm;
+ padding: $space-2 0;
+ color: $text-primary;
+ font-size: $font-size-sm;
outline: none;
&::placeholder {
- color: @text-tertiary;
+ color: $text-tertiary;
}
}
}
&__filter-select {
- background: @bg-card;
- border: 1px solid @border-default;
- border-radius: @radius-lg;
- padding: @space-2 @space-3;
- color: @text-secondary;
- font-size: @font-size-sm;
+ background: $bg-card;
+ border: 1px solid $border-default;
+ border-radius: $radius-lg;
+ padding: $space-2 $space-3;
+ color: $text-secondary;
+ font-size: $font-size-sm;
outline: none;
cursor: pointer;
min-width: 120px;
&:focus {
- border-color: @accent-primary;
+ border-color: $accent-primary;
}
}
&__list {
display: flex;
flex-direction: column;
- border: 1px solid @border-default;
- border-radius: @radius-lg;
+ border: 1px solid $border-default;
+ border-radius: $radius-lg;
overflow: hidden;
}
@@ -92,24 +92,24 @@
display: flex;
align-items: center;
justify-content: space-between;
- padding: @space-4 @space-5;
- background: @bg-card;
+ padding: $space-4 $space-5;
+ background: $bg-card;
cursor: pointer;
- transition: background @transition-fast;
+ transition: background $transition-fast;
&:hover {
- background: @bg-hover;
+ background: $bg-hover;
}
& + & {
- border-top: 1px solid @border-subtle;
+ border-top: 1px solid $border-subtle;
}
}
&__row-main {
display: flex;
align-items: center;
- gap: @space-3;
+ gap: $space-3;
min-width: 0;
flex: 1;
}
@@ -117,7 +117,7 @@
&__type-icon {
width: 36px;
height: 36px;
- border-radius: @radius-lg;
+ border-radius: $radius-lg;
display: flex;
align-items: center;
justify-content: center;
@@ -129,9 +129,9 @@
}
&__row-name {
- font-weight: @font-weight-medium;
- color: @text-primary;
- font-size: @font-size-base;
+ font-weight: $font-weight-medium;
+ color: $text-primary;
+ font-size: $font-size-base;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
@@ -140,55 +140,55 @@
&__row-meta {
display: flex;
align-items: center;
- gap: @space-2;
+ gap: $space-2;
margin-top: 2px;
}
&__type-badge {
- font-size: @font-size-xs;
- font-weight: @font-weight-medium;
- padding: 1px @space-2;
- border-radius: @radius-full;
+ font-size: $font-size-xs;
+ font-weight: $font-weight-medium;
+ padding: 1px $space-2;
+ border-radius: $radius-full;
border: 1px solid;
line-height: 1.4;
}
&__domain {
- font-size: @font-size-xs;
- color: @text-tertiary;
- font-family: @font-mono;
+ font-size: $font-size-xs;
+ color: $text-tertiary;
+ font-family: $font-mono;
}
&__row-right {
display: flex;
align-items: center;
- gap: @space-4;
+ gap: $space-4;
flex-shrink: 0;
}
&__status {
display: flex;
align-items: center;
- gap: @space-2;
- font-size: @font-size-sm;
- font-weight: @font-weight-medium;
+ gap: $space-2;
+ font-size: $font-size-sm;
+ font-weight: $font-weight-medium;
white-space: nowrap;
&--live {
- color: @success;
+ color: $success;
}
&--stopped {
- color: @text-tertiary;
+ color: $text-tertiary;
}
&--deploying,
&--building {
- color: @warning;
+ color: $warning;
}
&--failed {
- color: @danger;
+ color: $danger;
}
}
@@ -212,13 +212,13 @@
&__repo-pill {
display: flex;
align-items: center;
- gap: @space-1;
- font-size: @font-size-xs;
- color: @text-tertiary;
- background: @bg-secondary;
- padding: 2px @space-2;
- border-radius: @radius-full;
- font-family: @font-mono;
+ gap: $space-1;
+ font-size: $font-size-xs;
+ color: $text-tertiary;
+ background: $bg-secondary;
+ padding: 2px $space-2;
+ border-radius: $radius-full;
+ font-family: $font-mono;
max-width: 180px;
overflow: hidden;
text-overflow: ellipsis;
@@ -230,33 +230,33 @@
}
&__last-deploy {
- font-size: @font-size-xs;
- color: @text-tertiary;
+ font-size: $font-size-xs;
+ color: $text-tertiary;
white-space: nowrap;
}
&__actions {
display: flex;
- gap: @space-1;
+ gap: $space-1;
}
&__empty {
text-align: center;
- padding: @space-16 @space-8;
+ padding: $space-16 $space-8;
h3 {
- color: @text-primary;
- margin: @space-4 0 @space-2;
+ color: $text-primary;
+ margin: $space-4 0 $space-2;
}
p {
- color: @text-tertiary;
- margin-bottom: @space-5;
+ color: $text-tertiary;
+ margin-bottom: $space-5;
}
}
&__empty-icon {
- color: @text-tertiary;
+ color: $text-tertiary;
opacity: 0.5;
}
}
diff --git a/frontend/src/styles/pages/_settings.less b/frontend/src/styles/pages/_settings.scss
similarity index 53%
rename from frontend/src/styles/pages/_settings.less
rename to frontend/src/styles/pages/_settings.scss
index 2dc2fa77..fd675e33 100644
--- a/frontend/src/styles/pages/_settings.less
+++ b/frontend/src/styles/pages/_settings.scss
@@ -4,16 +4,16 @@
.settings-page {
.page-header {
- margin-bottom: @space-6;
+ margin-bottom: $space-6;
h1 {
- font-size: @font-size-2xl;
- font-weight: @font-weight-semibold;
- margin: 0 0 @space-1 0;
+ font-size: $font-size-2xl;
+ font-weight: $font-weight-semibold;
+ margin: 0 0 $space-1 0;
}
.page-subtitle {
- color: @text-secondary;
+ color: $text-secondary;
margin: 0;
}
}
@@ -22,10 +22,10 @@
.settings-layout {
display: grid;
grid-template-columns: 240px 1fr;
- gap: @space-6;
+ gap: $space-6;
min-height: calc(100vh - 200px);
- @media (max-width: @breakpoint-lg) {
+ @media (max-width: $breakpoint-lg) {
grid-template-columns: 1fr;
}
}
@@ -34,10 +34,10 @@
.settings-nav {
display: flex;
flex-direction: column;
- gap: @space-1;
+ gap: $space-1;
position: sticky;
- top: @space-6;
- max-height: calc(100vh - @space-12);
+ top: $space-6;
+ max-height: calc(100vh - $space-12);
overflow-y: auto;
// Custom scrollbar for nav
@@ -50,35 +50,35 @@
}
&::-webkit-scrollbar-thumb {
- background: @border-active;
- border-radius: @radius-full;
+ background: $border-active;
+ border-radius: $radius-full;
}
- @media (max-width: @breakpoint-lg) {
+ @media (max-width: $breakpoint-lg) {
flex-direction: row;
flex-wrap: wrap;
position: static;
max-height: none;
overflow-y: visible;
- background: @bg-card;
- padding: @space-2;
- border-radius: @radius-lg;
+ background: $bg-card;
+ padding: $space-2;
+ border-radius: $radius-lg;
}
}
.settings-nav-item {
display: flex;
align-items: center;
- gap: @space-3;
- padding: @space-3 @space-4;
+ gap: $space-3;
+ padding: $space-3 $space-4;
background: transparent;
border: none;
- border-radius: @radius-md;
- color: @text-secondary;
- font-size: @font-size-sm;
- font-weight: @font-weight-medium;
+ border-radius: $radius-md;
+ color: $text-secondary;
+ font-size: $font-size-sm;
+ font-weight: $font-weight-medium;
cursor: pointer;
- transition: all @transition-fast;
+ transition: all $transition-fast;
text-align: left;
width: 100%;
@@ -92,12 +92,12 @@
}
&:hover {
- background: @bg-hover;
- color: @text-primary;
+ background: $bg-hover;
+ color: $text-primary;
}
&.active {
- background: @accent-primary;
+ background: $accent-primary;
color: white;
svg {
@@ -105,9 +105,9 @@
}
}
- @media (max-width: @breakpoint-lg) {
+ @media (max-width: $breakpoint-lg) {
width: auto;
- padding: @space-2 @space-3;
+ padding: $space-2 $space-3;
}
}
@@ -120,59 +120,59 @@
.settings-section {
display: flex;
flex-direction: column;
- gap: @space-5;
+ gap: $space-5;
.section-header {
- margin-bottom: @space-2;
+ margin-bottom: $space-2;
h2 {
- font-size: @font-size-lg;
- font-weight: @font-weight-semibold;
- margin: 0 0 @space-1 0;
+ font-size: $font-size-lg;
+ font-weight: $font-weight-semibold;
+ margin: 0 0 $space-1 0;
}
p {
- color: @text-secondary;
+ color: $text-secondary;
margin: 0;
- font-size: @font-size-sm;
+ font-size: $font-size-sm;
}
}
h3 {
- font-size: @font-size-base;
- font-weight: @font-weight-semibold;
- margin: 0 0 @space-3 0;
- color: @text-primary;
+ font-size: $font-size-base;
+ font-weight: $font-weight-semibold;
+ margin: 0 0 $space-3 0;
+ color: $text-primary;
}
}
// Settings Cards
.settings-card {
- background: @bg-card;
- border: 1px solid @border-subtle;
- border-radius: @radius-lg;
- padding: @space-5;
+ background: $bg-card;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-lg;
+ padding: $space-5;
h3 {
- margin-bottom: @space-2;
+ margin-bottom: $space-2;
}
> p {
- color: @text-secondary;
- font-size: @font-size-sm;
- margin: 0 0 @space-4 0;
+ color: $text-secondary;
+ font-size: $font-size-sm;
+ margin: 0 0 $space-4 0;
}
}
// Settings Form
.settings-form {
- background: @bg-card;
- border: 1px solid @border-subtle;
- border-radius: @radius-lg;
- padding: @space-5;
+ background: $bg-card;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-lg;
+ padding: $space-5;
.form-group {
- margin-bottom: @space-4;
+ margin-bottom: $space-4;
&:last-of-type {
margin-bottom: 0;
@@ -180,75 +180,75 @@
label {
display: block;
- font-size: @font-size-sm;
- font-weight: @font-weight-medium;
- color: @text-secondary;
- margin-bottom: @space-2;
+ font-size: $font-size-sm;
+ font-weight: $font-weight-medium;
+ color: $text-secondary;
+ margin-bottom: $space-2;
}
input:not([type="checkbox"]):not([type="radio"]), select, textarea {
width: 100%;
- padding: @space-3;
- background: @bg-hover;
- border: 1px solid @border-subtle;
- border-radius: @radius-md;
- color: @text-primary;
- font-size: @font-size-sm;
- transition: border-color @transition-fast;
+ padding: $space-3;
+ background: $bg-hover;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-md;
+ color: $text-primary;
+ font-size: $font-size-sm;
+ transition: border-color $transition-fast;
&:focus {
outline: none;
- border-color: @accent-primary;
+ border-color: $accent-primary;
}
&:disabled,
&.input-disabled {
opacity: 0.6;
cursor: not-allowed;
- background: @bg-body;
+ background: $bg-body;
}
}
.form-help {
display: block;
- margin-top: @space-1;
- font-size: @font-size-xs;
- color: @text-tertiary;
+ margin-top: $space-1;
+ font-size: $font-size-xs;
+ color: $text-tertiary;
}
}
.form-actions {
- margin-top: @space-5;
- padding-top: @space-5;
- border-top: 1px solid @border-subtle;
+ margin-top: $space-5;
+ padding-top: $space-5;
+ border-top: 1px solid $border-subtle;
display: flex;
- gap: @space-2;
+ gap: $space-2;
}
}
// Alert Messages
.alert {
- padding: @space-3 @space-4;
- border-radius: @radius-md;
- font-size: @font-size-sm;
- margin-bottom: @space-4;
+ padding: $space-3 $space-4;
+ border-radius: $radius-md;
+ font-size: $font-size-sm;
+ margin-bottom: $space-4;
&.alert-success {
- background: @success-bg;
- border: 1px solid @success-border;
- color: @success;
+ background: $success-bg;
+ border: 1px solid $success-border;
+ color: $success;
}
&.alert-danger {
- background: @danger-bg;
- border: 1px solid @danger-border;
- color: @danger;
+ background: $danger-bg;
+ border: 1px solid $danger-border;
+ color: $danger;
}
&.alert-warning {
- background: @warning-bg;
- border: 1px solid @warning-border;
- color: @warning;
+ background: $warning-bg;
+ border: 1px solid $warning-border;
+ color: $warning;
}
}
@@ -257,32 +257,32 @@
display: flex;
justify-content: space-between;
align-items: center;
- padding: @space-4;
- background: @bg-hover;
- border-radius: @radius-md;
- margin-top: @space-3;
+ padding: $space-4;
+ background: $bg-hover;
+ border-radius: $radius-md;
+ margin-top: $space-3;
.session-info {
display: flex;
align-items: center;
- gap: @space-3;
+ gap: $space-3;
svg {
- stroke: @text-secondary;
+ stroke: $text-secondary;
fill: none;
stroke-width: 2;
}
.session-device {
display: block;
- font-weight: @font-weight-medium;
- color: @text-primary;
+ font-weight: $font-weight-medium;
+ color: $text-primary;
}
.session-details {
display: block;
- font-size: @font-size-xs;
- color: @text-tertiary;
+ font-size: $font-size-xs;
+ color: $text-tertiary;
}
}
}
@@ -291,9 +291,9 @@
.theme-options {
display: grid;
grid-template-columns: repeat(3, 1fr);
- gap: @space-3;
+ gap: $space-3;
- @media (max-width: @breakpoint-md) {
+ @media (max-width: $breakpoint-md) {
grid-template-columns: 1fr;
}
}
@@ -302,34 +302,34 @@
display: flex;
flex-direction: column;
align-items: center;
- gap: @space-3;
- padding: @space-4;
+ gap: $space-3;
+ padding: $space-4;
background: transparent;
- border: 2px solid @border-subtle;
- border-radius: @radius-lg;
+ border: 2px solid $border-subtle;
+ border-radius: $radius-lg;
cursor: pointer;
- transition: all @transition-fast;
+ transition: all $transition-fast;
&:hover {
- border-color: @border-active;
+ border-color: $border-active;
}
&.active {
- border-color: @accent-primary;
- background: fade(@accent-primary-raw, 5%);
+ border-color: $accent-primary;
+ background: fade($accent-primary-raw, 5%);
}
span {
- font-size: @font-size-sm;
- font-weight: @font-weight-medium;
- color: @text-primary;
+ font-size: $font-size-sm;
+ font-weight: $font-weight-medium;
+ color: $text-primary;
}
}
.theme-preview {
width: 100%;
height: 80px;
- border-radius: @radius-md;
+ border-radius: $radius-md;
display: flex;
overflow: hidden;
@@ -340,19 +340,19 @@
.preview-content {
flex: 1;
- padding: @space-2;
+ padding: $space-2;
display: flex;
flex-direction: column;
- gap: @space-1;
+ gap: $space-1;
}
.preview-card {
flex: 1;
- border-radius: @radius-sm;
+ border-radius: $radius-sm;
}
&.dark {
- border: 1px solid @border-subtle;
+ border: 1px solid $border-subtle;
.preview-sidebar {
background: #0f0f11;
@@ -384,7 +384,7 @@
}
&.system {
- border: 1px solid @border-subtle;
+ border: 1px solid $border-subtle;
background: linear-gradient(135deg, #09090b 50%, #ffffff 50%);
.preview-sidebar {
@@ -404,25 +404,25 @@
// Density Options
.density-options {
display: flex;
- gap: @space-4;
+ gap: $space-4;
}
.radio-option {
display: flex;
align-items: center;
- gap: @space-2;
+ gap: $space-2;
cursor: pointer;
input[type="radio"] {
width: 18px;
height: 18px;
- accent-color: @accent-primary;
+ accent-color: $accent-primary;
cursor: pointer;
}
span {
- font-size: @font-size-sm;
- color: @text-primary;
+ font-size: $font-size-sm;
+ color: $text-primary;
}
}
@@ -430,32 +430,32 @@
.notification-options {
display: flex;
flex-direction: column;
- gap: @space-3;
+ gap: $space-3;
}
.notification-item {
display: flex;
justify-content: space-between;
align-items: center;
- padding: @space-4;
- background: @bg-hover;
- border-radius: @radius-md;
- gap: @space-4;
+ padding: $space-4;
+ background: $bg-hover;
+ border-radius: $radius-md;
+ gap: $space-4;
.notification-info {
flex: 1;
.notification-title {
display: block;
- font-weight: @font-weight-medium;
- color: @text-primary;
- margin-bottom: @space-1;
+ font-weight: $font-weight-medium;
+ color: $text-primary;
+ margin-bottom: $space-1;
}
.notification-desc {
display: block;
- font-size: @font-size-xs;
- color: @text-tertiary;
+ font-size: $font-size-xs;
+ color: $text-tertiary;
}
}
}
@@ -474,7 +474,7 @@
height: 0;
&:checked + .toggle-slider {
- background: @accent-primary;
+ background: $accent-primary;
&::before {
transform: translateX(20px);
@@ -482,7 +482,7 @@
}
&:focus + .toggle-slider {
- box-shadow: 0 0 0 2px fade(@accent-primary-raw, 30%);
+ box-shadow: 0 0 0 2px fade($accent-primary-raw, 30%);
}
}
@@ -493,9 +493,9 @@
left: 0;
right: 0;
bottom: 0;
- background: @border-active;
+ background: $border-active;
border-radius: 24px;
- transition: all @transition-fast;
+ transition: all $transition-fast;
&::before {
content: '';
@@ -506,7 +506,7 @@
bottom: 3px;
background: white;
border-radius: 50%;
- transition: transform @transition-fast;
+ transition: transform $transition-fast;
}
}
}
@@ -515,21 +515,21 @@
.toggle-label {
display: flex !important;
align-items: center;
- gap: @space-3;
+ gap: $space-3;
cursor: pointer;
input[type="checkbox"] {
width: 18px;
height: 18px;
- accent-color: @accent-primary;
+ accent-color: $accent-primary;
cursor: pointer;
flex-shrink: 0;
}
span {
- font-size: @font-size-sm;
- font-weight: @font-weight-medium;
- color: @text-primary;
+ font-size: $font-size-sm;
+ font-weight: $font-weight-medium;
+ color: $text-primary;
}
}
@@ -537,9 +537,9 @@
.system-info-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
- gap: @space-4;
+ gap: $space-4;
- @media (max-width: @breakpoint-md) {
+ @media (max-width: $breakpoint-md) {
grid-template-columns: 1fr;
}
}
@@ -547,28 +547,28 @@
.info-list {
display: flex;
flex-direction: column;
- gap: @space-2;
+ gap: $space-2;
.info-item {
display: flex;
justify-content: space-between;
align-items: center;
- padding: @space-2 0;
- border-bottom: 1px solid @border-subtle;
+ padding: $space-2 0;
+ border-bottom: 1px solid $border-subtle;
&:last-child {
border-bottom: none;
}
.info-label {
- font-size: @font-size-sm;
- color: @text-tertiary;
+ font-size: $font-size-sm;
+ color: $text-tertiary;
}
.info-value {
- font-size: @font-size-sm;
- font-weight: @font-weight-medium;
- color: @text-primary;
+ font-size: $font-size-sm;
+ font-weight: $font-weight-medium;
+ color: $text-primary;
}
}
}
@@ -576,7 +576,7 @@
// Timezone Selector
.timezone-selector {
display: flex;
- gap: @space-3;
+ gap: $space-3;
align-items: center;
select {
@@ -590,36 +590,36 @@
}
.timezone-message {
- margin-top: @space-2;
- padding: @space-2 @space-3;
- border-radius: @radius-md;
- font-size: @font-size-sm;
+ margin-top: $space-2;
+ padding: $space-2 $space-3;
+ border-radius: $radius-md;
+ font-size: $font-size-sm;
&.success {
- background: fade(@success, 15%);
- color: @success;
+ background: fade($success, 15%);
+ color: $success;
}
&.error {
- background: fade(@danger, 15%);
- color: @danger;
+ background: fade($danger, 15%);
+ color: $danger;
}
}
// About Section
.about-card {
- background: @bg-card;
- border: 1px solid @border-subtle;
- border-radius: @radius-lg;
- padding: @space-8;
+ background: $bg-card;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-lg;
+ padding: $space-8;
text-align: center;
.about-logo {
width: 80px;
height: 80px;
- margin: 0 auto @space-4;
- background: linear-gradient(135deg, @accent-primary 0%, @accent-hover 100%);
- border-radius: @radius-xl;
+ margin: 0 auto $space-4;
+ background: linear-gradient(135deg, $accent-primary 0%, $accent-hover 100%);
+ border-radius: $radius-xl;
display: flex;
align-items: center;
justify-content: center;
@@ -630,35 +630,35 @@
}
h3 {
- font-size: @font-size-xl;
- margin-bottom: @space-1;
+ font-size: $font-size-xl;
+ margin-bottom: $space-1;
}
.version {
- color: @text-tertiary;
- font-size: @font-size-sm;
- margin-bottom: @space-4;
+ color: $text-tertiary;
+ font-size: $font-size-sm;
+ margin-bottom: $space-4;
}
.description {
- color: @text-secondary;
- font-size: @font-size-sm;
- line-height: @line-height-relaxed;
+ color: $text-secondary;
+ font-size: $font-size-sm;
+ line-height: $line-height-relaxed;
max-width: 500px;
margin: 0 auto;
}
.update-check {
- margin-top: @space-4;
- padding-top: @space-4;
- border-top: 1px solid @border-subtle;
+ margin-top: $space-4;
+ padding-top: $space-4;
+ border-top: 1px solid $border-subtle;
.btn-sm {
- font-size: @font-size-xs;
- padding: @space-2 @space-3;
+ font-size: $font-size-xs;
+ padding: $space-2 $space-3;
display: inline-flex;
align-items: center;
- gap: @space-1;
+ gap: $space-1;
.spinning {
animation: spin 1s linear infinite;
@@ -669,40 +669,40 @@
display: flex;
align-items: center;
justify-content: center;
- gap: @space-2;
- font-size: @font-size-sm;
+ gap: $space-2;
+ font-size: $font-size-sm;
&.current {
- color: @success;
+ color: $success;
}
&.available {
- color: @warning;
+ color: $warning;
flex-wrap: wrap;
.btn {
- margin-left: @space-2;
+ margin-left: $space-2;
display: inline-flex;
align-items: center;
- gap: @space-1;
+ gap: $space-1;
}
}
&.error {
- color: @danger;
+ color: $danger;
.btn-link {
background: none;
border: none;
- color: @accent-primary;
+ color: $accent-primary;
cursor: pointer;
text-decoration: underline;
- font-size: @font-size-sm;
+ font-size: $font-size-sm;
padding: 0;
- margin-left: @space-2;
+ margin-left: $space-2;
&:hover {
- color: @accent-hover;
+ color: $accent-hover;
}
}
}
@@ -718,29 +718,29 @@
// Star Prompt Card
.star-prompt-card {
position: relative;
- background: linear-gradient(135deg, @accent-glow 0%, fade(@accent-primary-raw, 8%) 100%);
- border: 1px solid fade(@accent-primary-raw, 30%);
- border-radius: @radius-lg;
- padding: @space-6;
+ background: linear-gradient(135deg, $accent-glow 0%, fade($accent-primary-raw, 8%) 100%);
+ border: 1px solid fade($accent-primary-raw, 30%);
+ border-radius: $radius-lg;
+ padding: $space-6;
display: flex;
align-items: flex-start;
- gap: @space-4;
+ gap: $space-4;
.dismiss-btn {
position: absolute;
- top: @space-3;
- right: @space-3;
+ top: $space-3;
+ right: $space-3;
background: none;
border: none;
- color: @text-tertiary;
+ color: $text-tertiary;
cursor: pointer;
- padding: @space-1;
- border-radius: @radius-sm;
- transition: all @transition-fast;
+ padding: $space-1;
+ border-radius: $radius-sm;
+ transition: all $transition-fast;
&:hover {
- background: @bg-hover;
- color: @text-primary;
+ background: $bg-hover;
+ color: $text-primary;
}
}
@@ -748,8 +748,8 @@
flex-shrink: 0;
width: 48px;
height: 48px;
- background: linear-gradient(135deg, @warning 0%, darken(@warning, 10%) 100%);
- border-radius: @radius-lg;
+ background: linear-gradient(135deg, $warning 0%, darken($warning, 10%) 100%);
+ border-radius: $radius-lg;
display: flex;
align-items: center;
justify-content: center;
@@ -758,29 +758,29 @@
.star-content {
flex: 1;
- padding-right: @space-6;
+ padding-right: $space-6;
h4 {
- margin: 0 0 @space-2;
- font-size: @font-size-md;
- font-weight: @font-weight-semibold;
+ margin: 0 0 $space-2;
+ font-size: $font-size-md;
+ font-weight: $font-weight-semibold;
}
p {
- margin: 0 0 @space-4;
- font-size: @font-size-sm;
- color: @text-secondary;
- line-height: @line-height-relaxed;
+ margin: 0 0 $space-4;
+ font-size: $font-size-sm;
+ color: $text-secondary;
+ line-height: $line-height-relaxed;
}
.btn {
display: inline-flex;
align-items: center;
- gap: @space-2;
+ gap: $space-2;
}
}
- @media (max-width: @breakpoint-sm) {
+ @media (max-width: $breakpoint-sm) {
flex-direction: column;
text-align: center;
@@ -797,22 +797,22 @@
margin: 0;
display: grid;
grid-template-columns: repeat(2, 1fr);
- gap: @space-2;
+ gap: $space-2;
- @media (max-width: @breakpoint-md) {
+ @media (max-width: $breakpoint-md) {
grid-template-columns: 1fr;
}
li {
display: flex;
align-items: center;
- gap: @space-2;
- padding: @space-2;
- font-size: @font-size-sm;
- color: @text-secondary;
+ gap: $space-2;
+ padding: $space-2;
+ font-size: $font-size-sm;
+ color: $text-secondary;
svg {
- stroke: @success;
+ stroke: $success;
fill: none;
stroke-width: 2;
flex-shrink: 0;
@@ -824,20 +824,20 @@
.link-list {
display: flex;
flex-direction: column;
- gap: @space-2;
+ gap: $space-2;
}
.link-item {
display: flex;
align-items: center;
- gap: @space-3;
- padding: @space-3 @space-4;
- background: @bg-hover;
- border-radius: @radius-md;
- color: @text-secondary;
+ gap: $space-3;
+ padding: $space-3 $space-4;
+ background: $bg-hover;
+ border-radius: $radius-md;
+ color: $text-secondary;
text-decoration: none;
- font-size: @font-size-sm;
- transition: all @transition-fast;
+ font-size: $font-size-sm;
+ transition: all $transition-fast;
svg {
stroke: currentColor;
@@ -847,15 +847,15 @@
}
&:hover {
- background: @accent-primary;
+ background: $accent-primary;
color: white;
}
}
// License Text
.license-text {
- color: @text-secondary;
- font-size: @font-size-sm;
+ color: $text-secondary;
+ font-size: $font-size-sm;
margin: 0;
}
@@ -864,9 +864,9 @@
display: flex;
align-items: center;
justify-content: center;
- padding: @space-12;
- color: @text-secondary;
- font-size: @font-size-sm;
+ padding: $space-12;
+ color: $text-secondary;
+ font-size: $font-size-sm;
}
// Settings Row (for app settings tab)
@@ -874,18 +874,18 @@
display: flex;
justify-content: space-between;
align-items: flex-start;
- padding: @space-4;
- background: @bg-hover;
- border-radius: @radius-md;
- gap: @space-4;
+ padding: $space-4;
+ background: $bg-hover;
+ border-radius: $radius-md;
+ gap: $space-4;
&:not(:last-child) {
- margin-bottom: @space-3;
+ margin-bottom: $space-3;
}
&.settings-linked-warning {
- background: fade(@warning, 10%);
- border: 1px solid fade(@warning, 20%);
+ background: fade($warning, 10%);
+ border: 1px solid fade($warning, 20%);
}
}
@@ -894,43 +894,43 @@
> span:first-child {
display: block;
- font-weight: @font-weight-medium;
- color: @text-primary;
- margin-bottom: @space-1;
+ font-weight: $font-weight-medium;
+ color: $text-primary;
+ margin-bottom: $space-1;
}
.settings-hint {
display: block;
- font-size: @font-size-xs;
- color: @text-tertiary;
+ font-size: $font-size-xs;
+ color: $text-tertiary;
}
}
.settings-control {
display: flex;
align-items: center;
- gap: @space-2;
+ gap: $space-2;
flex-shrink: 0;
}
.settings-select {
min-width: 160px;
- padding: @space-2 @space-3;
- background: @bg-card;
- border: 1px solid @border-subtle;
- border-radius: @radius-md;
- color: @text-primary;
- font-size: @font-size-sm;
+ padding: $space-2 $space-3;
+ background: $bg-card;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-md;
+ color: $text-primary;
+ font-size: $font-size-sm;
cursor: pointer;
- transition: border-color @transition-fast;
+ transition: border-color $transition-fast;
&:hover {
- border-color: @border-default;
+ border-color: $border-default;
}
&:focus {
outline: none;
- border-color: @accent-primary;
+ border-color: $accent-primary;
}
&:disabled {
@@ -940,8 +940,8 @@
}
.settings-saving {
- font-size: @font-size-xs;
- color: @text-tertiary;
+ font-size: $font-size-xs;
+ color: $text-tertiary;
font-style: italic;
}
@@ -952,48 +952,48 @@
.icon-reference-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
- gap: @space-2;
- margin-top: @space-3;
+ gap: $space-2;
+ margin-top: $space-3;
}
.icon-reference-item {
display: flex;
flex-direction: column;
align-items: center;
- gap: @space-1;
- padding: @space-3 @space-2;
- border: 1px solid @border-default;
- border-radius: @radius-md;
- background: @bg-card;
+ gap: $space-1;
+ padding: $space-3 $space-2;
+ border: 1px solid $border-default;
+ border-radius: $radius-md;
+ background: $bg-card;
cursor: pointer;
transition: all 0.15s ease;
&:hover {
- border-color: @accent-primary;
- background: @bg-hover;
+ border-color: $accent-primary;
+ background: $bg-hover;
}
&.copied {
- border-color: @success;
- background: @success-bg;
+ border-color: $success;
+ background: $success-bg;
}
svg {
- color: @text-primary;
+ color: $text-primary;
opacity: 0.8;
}
.icon-reference-name {
- font-size: @font-size-xs;
- color: @text-secondary;
+ font-size: $font-size-xs;
+ color: $text-secondary;
text-align: center;
word-break: break-word;
line-height: 1.2;
}
&.copied .icon-reference-name {
- color: @success;
- font-weight: @font-weight-medium;
+ color: $success;
+ font-weight: $font-weight-medium;
}
}
@@ -1004,10 +1004,10 @@
.accent-presets {
display: grid;
grid-template-columns: repeat(4, 1fr);
- gap: @space-2;
- margin-bottom: @space-4;
+ gap: $space-2;
+ margin-bottom: $space-4;
- @media (max-width: @breakpoint-sm) {
+ @media (max-width: $breakpoint-sm) {
grid-template-columns: repeat(2, 1fr);
}
}
@@ -1015,62 +1015,62 @@
.accent-preset {
display: flex;
align-items: center;
- gap: @space-2;
- padding: @space-2 @space-3;
+ gap: $space-2;
+ padding: $space-2 $space-3;
background: transparent;
- border: 2px solid @border-subtle;
- border-radius: @radius-md;
+ border: 2px solid $border-subtle;
+ border-radius: $radius-md;
cursor: pointer;
- transition: all @transition-fast;
+ transition: all $transition-fast;
&:hover {
- border-color: @border-active;
+ border-color: $border-active;
}
&.active {
- border-color: @accent-primary;
- background: @bg-hover;
+ border-color: $accent-primary;
+ background: $bg-hover;
}
}
.accent-swatch {
width: 20px;
height: 20px;
- border-radius: @radius-full;
+ border-radius: $radius-full;
flex-shrink: 0;
}
.accent-label {
- font-size: @font-size-sm;
- font-weight: @font-weight-medium;
- color: @text-primary;
+ font-size: $font-size-sm;
+ font-weight: $font-weight-medium;
+ color: $text-primary;
}
.accent-custom {
- padding-top: @space-3;
- border-top: 1px solid @border-subtle;
+ padding-top: $space-3;
+ border-top: 1px solid $border-subtle;
}
.accent-custom-label {
display: block;
- font-size: @font-size-sm;
- font-weight: @font-weight-medium;
- color: @text-secondary;
- margin-bottom: @space-2;
+ font-size: $font-size-sm;
+ font-weight: $font-weight-medium;
+ color: $text-secondary;
+ margin-bottom: $space-2;
}
.accent-custom-row {
display: flex;
align-items: center;
- gap: @space-3;
+ gap: $space-3;
}
.accent-custom-input {
width: 40px;
height: 32px;
padding: 0;
- border: 1px solid @border-subtle;
- border-radius: @radius-md;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-md;
background: transparent;
cursor: pointer;
@@ -1080,14 +1080,14 @@
&::-webkit-color-swatch {
border: none;
- border-radius: @radius-sm;
+ border-radius: $radius-sm;
}
}
.accent-custom-hex {
- font-family: @font-mono;
- font-size: @font-size-sm;
- color: @text-secondary;
+ font-family: $font-mono;
+ font-size: $font-size-sm;
+ color: $text-secondary;
}
// ============================================
@@ -1097,17 +1097,17 @@
.widget-list {
display: flex;
flex-direction: column;
- gap: @space-2;
+ gap: $space-2;
}
.widget-item {
display: flex;
justify-content: space-between;
align-items: center;
- padding: @space-3 @space-4;
- background: @bg-hover;
- border-radius: @radius-md;
- transition: opacity @transition-fast;
+ padding: $space-3 $space-4;
+ background: $bg-hover;
+ border-radius: $radius-md;
+ transition: opacity $transition-fast;
&--hidden {
opacity: 0.5;
@@ -1117,18 +1117,18 @@
.widget-item__info {
display: flex;
align-items: center;
- gap: @space-3;
+ gap: $space-3;
}
.widget-item__label {
- font-size: @font-size-sm;
- font-weight: @font-weight-medium;
- color: @text-primary;
+ font-size: $font-size-sm;
+ font-weight: $font-weight-medium;
+ color: $text-primary;
}
.widget-item__controls {
display: flex;
- gap: @space-1;
+ gap: $space-1;
}
.widget-move-btn {
@@ -1138,16 +1138,16 @@
width: 28px;
height: 28px;
background: transparent;
- border: 1px solid @border-subtle;
- border-radius: @radius-sm;
- color: @text-secondary;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-sm;
+ color: $text-secondary;
cursor: pointer;
- transition: all @transition-fast;
+ transition: all $transition-fast;
&:hover:not(:disabled) {
- background: @bg-card;
- color: @text-primary;
- border-color: @border-active;
+ background: $bg-card;
+ color: $text-primary;
+ border-color: $border-active;
}
&:disabled {
@@ -1163,10 +1163,10 @@
.whitelabel-modes {
display: grid;
grid-template-columns: repeat(3, 1fr);
- gap: @space-3;
- margin-top: @space-4;
+ gap: $space-3;
+ margin-top: $space-4;
- @media (max-width: @breakpoint-md) {
+ @media (max-width: $breakpoint-md) {
grid-template-columns: 1fr;
}
}
@@ -1175,113 +1175,113 @@
display: flex;
flex-direction: column;
align-items: center;
- gap: @space-2;
- padding: @space-4;
+ gap: $space-2;
+ padding: $space-4;
background: transparent;
- border: 2px solid @border-subtle;
- border-radius: @radius-lg;
+ border: 2px solid $border-subtle;
+ border-radius: $radius-lg;
cursor: pointer;
- transition: all @transition-fast;
+ transition: all $transition-fast;
text-align: center;
- color: @text-secondary;
+ color: $text-secondary;
svg {
opacity: 0.7;
}
&:hover {
- border-color: @border-active;
+ border-color: $border-active;
}
&.active {
- border-color: @accent-primary;
- background: fade(@accent-primary-raw, 5%);
- color: @text-primary;
+ border-color: $accent-primary;
+ background: fade($accent-primary-raw, 5%);
+ color: $text-primary;
svg {
- color: @accent-primary;
+ color: $accent-primary;
opacity: 1;
}
}
.whitelabel-mode__label {
- font-size: @font-size-sm;
- font-weight: @font-weight-medium;
- color: @text-primary;
+ font-size: $font-size-sm;
+ font-weight: $font-weight-medium;
+ color: $text-primary;
}
.whitelabel-mode__desc {
- font-size: @font-size-xs;
- color: @text-tertiary;
+ font-size: $font-size-xs;
+ color: $text-tertiary;
}
}
.whitelabel-fields {
- margin-top: @space-4;
+ margin-top: $space-4;
display: flex;
flex-direction: column;
- gap: @space-4;
+ gap: $space-4;
.form-group {
label {
display: block;
- font-size: @font-size-sm;
- font-weight: @font-weight-medium;
- color: @text-secondary;
- margin-bottom: @space-2;
+ font-size: $font-size-sm;
+ font-weight: $font-weight-medium;
+ color: $text-secondary;
+ margin-bottom: $space-2;
}
input[type="text"] {
width: 100%;
max-width: 320px;
- padding: @space-3;
- background: @bg-hover;
- border: 1px solid @border-subtle;
- border-radius: @radius-md;
- color: @text-primary;
- font-size: @font-size-sm;
- transition: border-color @transition-fast;
+ padding: $space-3;
+ background: $bg-hover;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-md;
+ color: $text-primary;
+ font-size: $font-size-sm;
+ transition: border-color $transition-fast;
&:focus {
outline: none;
- border-color: @accent-primary;
+ border-color: $accent-primary;
}
}
}
}
.whitelabel-upload {
- border: 2px dashed @border-subtle;
- border-radius: @radius-lg;
- padding: @space-5;
+ border: 2px dashed $border-subtle;
+ border-radius: $radius-lg;
+ padding: $space-5;
cursor: pointer;
- transition: all @transition-fast;
+ transition: all $transition-fast;
text-align: center;
&:hover {
- border-color: @accent-primary;
- background: fade(@accent-primary-raw, 3%);
+ border-color: $accent-primary;
+ background: fade($accent-primary-raw, 3%);
}
.whitelabel-upload__placeholder {
display: flex;
flex-direction: column;
align-items: center;
- gap: @space-2;
- color: @text-tertiary;
+ gap: $space-2;
+ color: $text-tertiary;
svg {
opacity: 0.5;
}
span {
- font-size: @font-size-sm;
+ font-size: $font-size-sm;
}
}
.whitelabel-upload__hint {
- font-size: @font-size-xs !important;
- color: @text-tertiary;
+ font-size: $font-size-xs !important;
+ color: $text-tertiary;
opacity: 0.7;
}
}
@@ -1289,31 +1289,31 @@
.whitelabel-logo-preview {
display: flex;
align-items: center;
- gap: @space-4;
+ gap: $space-4;
justify-content: center;
img {
width: 48px;
height: 48px;
object-fit: contain;
- border-radius: @radius-md;
- border: 1px solid @border-subtle;
- background: @bg-hover;
- padding: @space-1;
+ border-radius: $radius-md;
+ border: 1px solid $border-subtle;
+ background: $bg-hover;
+ padding: $space-1;
}
}
.whitelabel-preview {
- margin-top: @space-4;
+ margin-top: $space-4;
.whitelabel-preview__label {
display: block;
- font-size: @font-size-xs;
- font-weight: @font-weight-semibold;
- color: @text-tertiary;
+ font-size: $font-size-xs;
+ font-weight: $font-weight-semibold;
+ color: $text-tertiary;
text-transform: uppercase;
letter-spacing: 0.06em;
- margin-bottom: @space-2;
+ margin-bottom: $space-2;
}
.whitelabel-preview__box {
@@ -1321,29 +1321,29 @@
align-items: center;
gap: 10px;
height: 70px;
- padding: 0 @space-4;
- background: @bg-body;
- border: 1px solid @border-subtle;
- border-radius: @radius-lg;
+ padding: 0 $space-4;
+ background: $bg-body;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-lg;
}
}
.whitelabel-star-prompt {
- margin-top: @space-4;
- background: linear-gradient(135deg, @accent-glow 0%, fade(@accent-primary-raw, 8%) 100%);
- border: 1px solid fade(@accent-primary-raw, 30%);
- border-radius: @radius-lg;
- padding: @space-5;
+ margin-top: $space-4;
+ background: linear-gradient(135deg, $accent-glow 0%, fade($accent-primary-raw, 8%) 100%);
+ border: 1px solid fade($accent-primary-raw, 30%);
+ border-radius: $radius-lg;
+ padding: $space-5;
display: flex;
align-items: flex-start;
- gap: @space-4;
+ gap: $space-4;
.star-icon {
flex-shrink: 0;
width: 44px;
height: 44px;
- background: linear-gradient(135deg, @warning 0%, darken(@warning, 10%) 100%);
- border-radius: @radius-lg;
+ background: linear-gradient(135deg, $warning 0%, darken($warning, 10%) 100%);
+ border-radius: $radius-lg;
display: flex;
align-items: center;
justify-content: center;
@@ -1354,26 +1354,26 @@
flex: 1;
h4 {
- margin: 0 0 @space-2;
- font-size: @font-size-md;
- font-weight: @font-weight-semibold;
+ margin: 0 0 $space-2;
+ font-size: $font-size-md;
+ font-weight: $font-weight-semibold;
}
p {
- margin: 0 0 @space-3;
- font-size: @font-size-sm;
- color: @text-secondary;
- line-height: @line-height-relaxed;
+ margin: 0 0 $space-3;
+ font-size: $font-size-sm;
+ color: $text-secondary;
+ line-height: $line-height-relaxed;
}
.btn {
display: inline-flex;
align-items: center;
- gap: @space-2;
+ gap: $space-2;
}
}
- @media (max-width: @breakpoint-sm) {
+ @media (max-width: $breakpoint-sm) {
flex-direction: column;
}
}
@@ -1385,14 +1385,14 @@
.sso-config {
display: flex;
flex-direction: column;
- gap: @space-5;
+ gap: $space-5;
}
.sso-provider-config {
- border: 1px solid @border-subtle;
+ border: 1px solid $border-subtle;
&--enabled {
- border-color: @accent-primary;
+ border-color: $accent-primary;
}
.sso-provider-config__header {
@@ -1400,17 +1400,17 @@
align-items: center;
justify-content: space-between;
cursor: pointer;
- padding: @space-4;
+ padding: $space-4;
&:hover {
- background: @bg-hover;
+ background: $bg-hover;
}
}
.sso-provider-config__title {
display: flex;
align-items: center;
- gap: @space-3;
+ gap: $space-3;
h3 {
margin: 0;
@@ -1418,29 +1418,29 @@
}
.sso-provider-config__status {
- font-size: @font-size-xs;
- padding: @space-1 @space-2;
- border-radius: @radius-full;
- font-weight: @font-weight-medium;
+ font-size: $font-size-xs;
+ padding: $space-1 $space-2;
+ border-radius: $radius-full;
+ font-weight: $font-weight-medium;
&--active {
- background: fade(@color-success, 15%);
- color: @color-success;
+ background: fade($color-success, 15%);
+ color: $color-success;
}
}
.sso-provider-config__body {
- padding: @space-1 @space-4 @space-4;
- border-top: 1px solid @border-subtle;
+ padding: $space-1 $space-4 $space-4;
+ border-top: 1px solid $border-subtle;
display: flex;
flex-direction: column;
- gap: @space-4;
+ gap: $space-4;
}
.sso-provider-config__actions {
display: flex;
- gap: @space-3;
- padding-top: @space-2;
+ gap: $space-3;
+ padding-top: $space-2;
}
}
@@ -1448,23 +1448,23 @@
.linked-accounts-list {
display: flex;
flex-direction: column;
- gap: @space-3;
- margin: @space-4 0;
+ gap: $space-3;
+ margin: $space-4 0;
}
.linked-account {
display: flex;
align-items: center;
justify-content: space-between;
- padding: @space-3;
- background: @bg-secondary;
- border-radius: @radius-lg;
- border: 1px solid @border-subtle;
+ padding: $space-3;
+ background: $bg-secondary;
+ border-radius: $radius-lg;
+ border: 1px solid $border-subtle;
.linked-account__info {
display: flex;
align-items: center;
- gap: @space-3;
+ gap: $space-3;
div {
display: flex;
@@ -1473,26 +1473,26 @@
}
.linked-account__provider {
- font-weight: @font-weight-medium;
+ font-weight: $font-weight-medium;
text-transform: capitalize;
}
.linked-account__email {
- font-size: @font-size-sm;
- color: @text-secondary;
+ font-size: $font-size-sm;
+ color: $text-secondary;
}
}
.linked-accounts-available {
display: flex;
- gap: @space-3;
- margin-top: @space-3;
+ gap: $space-3;
+ margin-top: $space-3;
flex-wrap: wrap;
.btn {
display: flex;
align-items: center;
- gap: @space-2;
+ gap: $space-2;
}
}
@@ -1503,65 +1503,65 @@
.sidebar-settings {
display: flex;
flex-direction: column;
- gap: @space-8;
+ gap: $space-8;
.settings-section-desc {
- color: @text-secondary;
- font-size: @font-size-sm;
+ color: $text-secondary;
+ font-size: $font-size-sm;
margin: 0;
- line-height: @line-height-normal;
+ line-height: $line-height-normal;
}
.settings-section-header {
display: flex;
align-items: center;
justify-content: space-between;
- margin-bottom: @space-1;
+ margin-bottom: $space-1;
h3 { margin-bottom: 0; }
}
}
.sidebar-item-count {
- font-size: @font-size-xs;
- color: @text-tertiary;
- background: @bg-secondary;
- padding: @space-1 @space-2;
- border-radius: @radius-full;
- font-weight: @font-weight-medium;
+ font-size: $font-size-xs;
+ color: $text-tertiary;
+ background: $bg-secondary;
+ padding: $space-1 $space-2;
+ border-radius: $radius-full;
+ font-weight: $font-weight-medium;
}
// Preset cards
.sidebar-presets {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
- gap: @space-3;
- margin-top: @space-2;
+ gap: $space-3;
+ margin-top: $space-2;
}
.sidebar-preset-card {
display: flex;
align-items: flex-start;
- gap: @space-3;
- padding: @space-4;
- background: @bg-card;
- border: 1px solid @border-subtle;
- border-radius: @radius-lg;
+ gap: $space-3;
+ padding: $space-4;
+ background: $bg-card;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-lg;
cursor: pointer;
- transition: all @transition-fast;
+ transition: all $transition-fast;
text-align: left;
width: 100%;
position: relative;
&:hover {
- border-color: @border-hover;
- background: @bg-hover;
+ border-color: $border-hover;
+ background: $bg-hover;
}
&.active {
- border-color: @accent-primary;
- background: @bg-card;
- box-shadow: 0 0 0 1px @accent-primary;
+ border-color: $accent-primary;
+ background: $bg-card;
+ box-shadow: 0 0 0 1px $accent-primary;
}
.preset-card-icon {
@@ -1571,9 +1571,9 @@
display: flex;
align-items: center;
justify-content: center;
- background: @bg-secondary;
- border-radius: @radius-md;
- color: @text-secondary;
+ background: $bg-secondary;
+ border-radius: $radius-md;
+ color: $text-secondary;
svg {
stroke-width: 1.5;
@@ -1581,35 +1581,35 @@
}
&.active .preset-card-icon {
- background: fade(@accent-primary-raw, 15%);
- color: @accent-primary;
+ background: fade($accent-primary-raw, 15%);
+ color: $accent-primary;
}
.preset-card-info {
display: flex;
flex-direction: column;
- gap: @space-1;
+ gap: $space-1;
min-width: 0;
flex: 1;
}
.preset-card-label {
- font-size: @font-size-sm;
- font-weight: @font-weight-semibold;
- color: @text-primary;
+ font-size: $font-size-sm;
+ font-weight: $font-weight-semibold;
+ color: $text-primary;
}
.preset-card-desc {
- font-size: @font-size-xs;
- color: @text-tertiary;
- line-height: @line-height-normal;
+ font-size: $font-size-xs;
+ color: $text-tertiary;
+ line-height: $line-height-normal;
}
.preset-card-check {
position: absolute;
- top: @space-3;
- right: @space-3;
- color: @accent-primary;
+ top: $space-3;
+ right: $space-3;
+ color: $accent-primary;
}
}
@@ -1617,8 +1617,8 @@
.sidebar-items-list {
display: flex;
flex-direction: column;
- gap: @space-5;
- margin-top: @space-2;
+ gap: $space-5;
+ margin-top: $space-2;
}
.sidebar-items-group {
@@ -1628,27 +1628,27 @@
}
.sidebar-items-group-label {
- font-size: @font-size-xs;
- font-weight: @font-weight-semibold;
- color: @text-tertiary;
+ font-size: $font-size-xs;
+ font-weight: $font-weight-semibold;
+ color: $text-tertiary;
text-transform: uppercase;
letter-spacing: 0.05em;
- padding: 0 0 @space-2 0;
- border-bottom: 1px solid @border-subtle;
- margin-bottom: @space-1;
+ padding: 0 0 $space-2 0;
+ border-bottom: 1px solid $border-subtle;
+ margin-bottom: $space-1;
}
.sidebar-item-toggle {
display: flex;
align-items: center;
justify-content: space-between;
- padding: @space-3 @space-2;
- border-radius: @radius-md;
+ padding: $space-3 $space-2;
+ border-radius: $radius-md;
cursor: pointer;
- transition: all @transition-fast;
+ transition: all $transition-fast;
&:hover {
- background: @bg-hover;
+ background: $bg-hover;
}
&.hidden-item {
@@ -1661,20 +1661,20 @@
.sidebar-item-toggle-info {
display: flex;
align-items: center;
- gap: @space-3;
- transition: opacity @transition-fast;
+ gap: $space-3;
+ transition: opacity $transition-fast;
span {
- font-size: @font-size-sm;
- color: @text-primary;
- font-weight: @font-weight-medium;
+ font-size: $font-size-sm;
+ color: $text-primary;
+ font-weight: $font-weight-medium;
}
}
.sidebar-item-toggle-icon {
width: 18px;
height: 18px;
- stroke: @text-secondary;
+ stroke: $text-secondary;
fill: none;
stroke-width: 2;
flex-shrink: 0;
@@ -1685,7 +1685,7 @@
display: flex;
align-items: center;
justify-content: flex-end;
- gap: @space-3;
- padding-top: @space-5;
- border-top: 1px solid @border-subtle;
+ gap: $space-3;
+ padding-top: $space-5;
+ border-top: 1px solid $border-subtle;
}
diff --git a/frontend/src/styles/pages/_setup-wizard.less b/frontend/src/styles/pages/_setup-wizard.less
deleted file mode 100644
index b5a8b148..00000000
--- a/frontend/src/styles/pages/_setup-wizard.less
+++ /dev/null
@@ -1,459 +0,0 @@
-// ============================================
-// SETUP WIZARD (Onboarding)
-// ============================================
-
-.setup-wizard {
- min-height: 100vh;
- .flex-center();
- padding: @space-5;
- background: @bg-body;
-}
-
-.wizard-card {
- width: 100%;
- max-width: 700px;
- background: @bg-card;
- border: 1px solid @border-subtle;
- border-radius: @radius-2xl;
- padding: @space-10;
-}
-
-// --------------------------------------------
-// Header (logo + title)
-// --------------------------------------------
-.wizard-header {
- text-align: center;
- margin-bottom: @space-8;
-
- .wizard-logo {
- width: 48px;
- height: 48px;
- margin: 0 auto @space-4;
- }
-
- h1 {
- font-size: @font-size-2xl;
- font-weight: @font-weight-bold;
- margin-bottom: @space-2;
- }
-
- p {
- color: @text-secondary;
- }
-}
-
-// --------------------------------------------
-// Progress bar
-// --------------------------------------------
-.wizard-progress {
- display: flex;
- align-items: center;
- justify-content: center;
- gap: @space-3;
- margin-bottom: @space-8;
-}
-
-.wizard-progress-step {
- .flex-center();
- width: 32px;
- height: 32px;
- border-radius: @radius-full;
- font-size: @font-size-sm;
- font-weight: @font-weight-semibold;
- border: 2px solid @border-default;
- color: @text-tertiary;
- background: transparent;
- .transition();
-
- &.active {
- border-color: @accent-primary;
- background: @accent-primary;
- color: #fff;
- }
-
- &.completed {
- border-color: @accent-primary;
- background: fade(@accent-primary-raw, 15%);
- color: @accent-primary;
- }
-}
-
-.wizard-progress-line {
- width: 40px;
- height: 2px;
- background: @border-default;
- .transition(background);
-
- &.active {
- background: @accent-primary;
- }
-}
-
-// --------------------------------------------
-// Step content
-// --------------------------------------------
-.wizard-step {
- animation: wizardFadeIn 0.3s ease;
-}
-
-@keyframes wizardFadeIn {
- from {
- opacity: 0;
- transform: translateY(8px);
- }
- to {
- opacity: 1;
- transform: translateY(0);
- }
-}
-
-.wizard-step-title {
- font-size: @font-size-lg;
- font-weight: @font-weight-semibold;
- margin-bottom: @space-2;
-}
-
-.wizard-step-description {
- color: @text-secondary;
- font-size: @font-size-base;
- margin-bottom: @space-6;
-}
-
-// --------------------------------------------
-// Option grid (Step 2 — use cases)
-// --------------------------------------------
-.option-grid {
- display: grid;
- grid-template-columns: 1fr 1fr;
- gap: @space-4;
- margin-bottom: @space-6;
-
- @media (max-width: @breakpoint-sm) {
- grid-template-columns: 1fr;
- }
-}
-
-.option-card {
- display: flex;
- flex-direction: column;
- gap: @space-3;
- padding: @space-5;
- background: @bg-elevated;
- border: 2px solid @border-default;
- border-radius: @radius-xl;
- cursor: pointer;
- .transition();
- position: relative;
-
- &:hover {
- border-color: @border-active;
- }
-
- &.selected {
- border-color: @accent-primary;
- background: fade(@accent-primary-raw, 8%);
- }
-
- .option-card-icon {
- .icon-box(40px);
- background: @bg-secondary;
- color: @text-secondary;
- border-radius: @radius-lg;
- }
-
- .option-card-label {
- font-weight: @font-weight-semibold;
- font-size: @font-size-base;
- }
-
- .option-card-desc {
- font-size: @font-size-sm;
- color: @text-secondary;
- line-height: @line-height-normal;
- }
-
- .option-card-check {
- position: absolute;
- top: @space-3;
- right: @space-3;
- width: 22px;
- height: 22px;
- border-radius: @radius-full;
- .flex-center();
- background: @accent-primary;
- color: #fff;
- opacity: 0;
- transform: scale(0.5);
- .transition();
- }
-
- &.selected .option-card-check {
- opacity: 1;
- transform: scale(1);
- }
-}
-
-// --------------------------------------------
-// Tier grid (Step 3)
-// --------------------------------------------
-.tier-grid {
- display: grid;
- grid-template-columns: repeat(3, 1fr);
- gap: @space-4;
- margin-bottom: @space-6;
-
- @media (max-width: @breakpoint-md) {
- grid-template-columns: 1fr;
- }
-}
-
-.tier-card {
- display: flex;
- flex-direction: column;
- padding: @space-5;
- background: @bg-elevated;
- border: 2px solid @border-default;
- border-radius: @radius-xl;
- .transition();
-
- &.detected {
- border-color: @accent-primary;
- background: fade(@accent-primary-raw, 8%);
- }
-
- .tier-card-header {
- display: flex;
- align-items: center;
- justify-content: space-between;
- margin-bottom: @space-4;
- }
-
- .tier-card-name {
- font-weight: @font-weight-bold;
- font-size: @font-size-md;
- }
-
- .tier-card-badge {
- font-size: @font-size-xs;
- padding: 2px 8px;
- background: @accent-primary;
- color: #fff;
- border-radius: @radius-full;
- font-weight: @font-weight-medium;
- }
-
- .tier-card-specs {
- font-size: @font-size-sm;
- color: @text-secondary;
- margin-bottom: @space-4;
- padding-bottom: @space-4;
- border-bottom: 1px solid @border-default;
- }
-
- .tier-features {
- display: flex;
- flex-direction: column;
- gap: @space-2;
- flex: 1;
- }
-
- .tier-feature {
- display: flex;
- align-items: center;
- gap: @space-2;
- font-size: @font-size-sm;
-
- .feature-icon {
- flex-shrink: 0;
- width: 16px;
- height: 16px;
- }
-
- &.available .feature-icon {
- color: @success;
- }
-
- &.unavailable {
- color: @text-tertiary;
-
- .feature-icon {
- color: @text-tertiary;
- }
- }
- }
-}
-
-.tier-warning {
- display: flex;
- align-items: flex-start;
- gap: @space-3;
- padding: @space-4;
- background: @warning-bg;
- border: 1px solid @warning-border;
- border-radius: @radius-lg;
- margin-bottom: @space-6;
-
- .tier-warning-icon {
- flex-shrink: 0;
- color: @warning;
- }
-
- .tier-warning-text {
- font-size: @font-size-sm;
- color: @text-secondary;
- line-height: @line-height-normal;
- }
-}
-
-// --------------------------------------------
-// Summary panel (Step 4)
-// --------------------------------------------
-.summary-panel {
- background: @bg-elevated;
- border: 1px solid @border-default;
- border-radius: @radius-xl;
- padding: @space-6;
- margin-bottom: @space-6;
-}
-
-.summary-section {
- &:not(:last-child) {
- margin-bottom: @space-5;
- padding-bottom: @space-5;
- border-bottom: 1px solid @border-default;
- }
-}
-
-.summary-section-title {
- font-size: @font-size-sm;
- font-weight: @font-weight-semibold;
- color: @text-tertiary;
- text-transform: uppercase;
- letter-spacing: 0.05em;
- margin-bottom: @space-3;
-}
-
-.summary-row {
- display: flex;
- justify-content: space-between;
- align-items: center;
- padding: @space-2 0;
-
- .summary-label {
- color: @text-secondary;
- font-size: @font-size-sm;
- }
-
- .summary-value {
- font-weight: @font-weight-medium;
- font-size: @font-size-sm;
- }
-}
-
-.summary-tags {
- display: flex;
- flex-wrap: wrap;
- gap: @space-2;
-}
-
-.summary-tag {
- display: inline-flex;
- align-items: center;
- padding: @space-1 @space-3;
- background: fade(@accent-primary-raw, 12%);
- color: @accent-primary;
- border-radius: @radius-full;
- font-size: @font-size-sm;
- font-weight: @font-weight-medium;
-}
-
-.recommendation-chips {
- display: flex;
- flex-wrap: wrap;
- gap: @space-2;
-}
-
-.recommendation-chip {
- display: inline-flex;
- align-items: center;
- gap: @space-2;
- padding: @space-2 @space-4;
- background: @bg-secondary;
- border: 1px solid @border-default;
- border-radius: @radius-lg;
- font-size: @font-size-sm;
- color: @text-primary;
-}
-
-// --------------------------------------------
-// Navigation buttons
-// --------------------------------------------
-.wizard-nav {
- display: flex;
- justify-content: space-between;
- align-items: center;
- margin-top: @space-8;
- padding-top: @space-6;
- border-top: 1px solid @border-default;
-}
-
-.btn-wizard-prev {
- .button-base();
- color: @text-secondary;
- border-color: @border-default;
- background: transparent;
-
- &:hover {
- background: @bg-hover;
- color: @text-primary;
- }
-}
-
-.btn-wizard-next {
- .button-base();
- background: @accent-primary;
- color: #fff;
- margin-left: auto;
-
- &:hover {
- background: @accent-hover;
- }
-
- &:disabled {
- opacity: 0.6;
- cursor: not-allowed;
- }
-}
-
-// --------------------------------------------
-// Setup info banner (reused in step 1)
-// --------------------------------------------
-.wizard-info-banner {
- display: flex;
- gap: @space-4;
- padding: @space-4;
- background: fade(@accent-primary-raw, 10%);
- border-radius: @radius-md;
- margin-bottom: @space-6;
-
- .wizard-info-icon {
- flex-shrink: 0;
- color: @accent-primary;
- }
-
- p {
- margin: 0;
- font-size: @font-size-sm;
- color: @text-secondary;
- line-height: @line-height-normal;
- }
-}
-
-// --------------------------------------------
-// Loading state
-// --------------------------------------------
-.wizard-loading {
- .flex-center();
- padding: @space-10;
- color: @text-secondary;
-}
diff --git a/frontend/src/styles/pages/_setup-wizard.scss b/frontend/src/styles/pages/_setup-wizard.scss
new file mode 100644
index 00000000..b5b0f70a
--- /dev/null
+++ b/frontend/src/styles/pages/_setup-wizard.scss
@@ -0,0 +1,459 @@
+// ============================================
+// SETUP WIZARD (Onboarding)
+// ============================================
+
+.setup-wizard {
+ min-height: 100vh;
+ @include flex-center();
+ padding: $space-5;
+ background: $bg-body;
+}
+
+.wizard-card {
+ width: 100%;
+ max-width: 700px;
+ background: $bg-card;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-2xl;
+ padding: $space-10;
+}
+
+// --------------------------------------------
+// Header (logo + title)
+// --------------------------------------------
+.wizard-header {
+ text-align: center;
+ margin-bottom: $space-8;
+
+ .wizard-logo {
+ width: 48px;
+ height: 48px;
+ margin: 0 auto $space-4;
+ }
+
+ h1 {
+ font-size: $font-size-2xl;
+ font-weight: $font-weight-bold;
+ margin-bottom: $space-2;
+ }
+
+ p {
+ color: $text-secondary;
+ }
+}
+
+// --------------------------------------------
+// Progress bar
+// --------------------------------------------
+.wizard-progress {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ gap: $space-3;
+ margin-bottom: $space-8;
+}
+
+.wizard-progress-step {
+ @include flex-center();
+ width: 32px;
+ height: 32px;
+ border-radius: $radius-full;
+ font-size: $font-size-sm;
+ font-weight: $font-weight-semibold;
+ border: 2px solid $border-default;
+ color: $text-tertiary;
+ background: transparent;
+ @include transition();
+
+ &.active {
+ border-color: $accent-primary;
+ background: $accent-primary;
+ color: #fff;
+ }
+
+ &.completed {
+ border-color: $accent-primary;
+ background: fade($accent-primary-raw, 15%);
+ color: $accent-primary;
+ }
+}
+
+.wizard-progress-line {
+ width: 40px;
+ height: 2px;
+ background: $border-default;
+ @include transition(background);
+
+ &.active {
+ background: $accent-primary;
+ }
+}
+
+// --------------------------------------------
+// Step content
+// --------------------------------------------
+.wizard-step {
+ animation: wizardFadeIn 0.3s ease;
+}
+
+@keyframes wizardFadeIn {
+ from {
+ opacity: 0;
+ transform: translateY(8px);
+ }
+ to {
+ opacity: 1;
+ transform: translateY(0);
+ }
+}
+
+.wizard-step-title {
+ font-size: $font-size-lg;
+ font-weight: $font-weight-semibold;
+ margin-bottom: $space-2;
+}
+
+.wizard-step-description {
+ color: $text-secondary;
+ font-size: $font-size-base;
+ margin-bottom: $space-6;
+}
+
+// --------------------------------------------
+// Option grid (Step 2 — use cases)
+// --------------------------------------------
+.option-grid {
+ display: grid;
+ grid-template-columns: 1fr 1fr;
+ gap: $space-4;
+ margin-bottom: $space-6;
+
+ @media (max-width: $breakpoint-sm) {
+ grid-template-columns: 1fr;
+ }
+}
+
+.option-card {
+ display: flex;
+ flex-direction: column;
+ gap: $space-3;
+ padding: $space-5;
+ background: $bg-elevated;
+ border: 2px solid $border-default;
+ border-radius: $radius-xl;
+ cursor: pointer;
+ @include transition();
+ position: relative;
+
+ &:hover {
+ border-color: $border-active;
+ }
+
+ &.selected {
+ border-color: $accent-primary;
+ background: fade($accent-primary-raw, 8%);
+ }
+
+ .option-card-icon {
+ @include icon-box(40px);
+ background: $bg-secondary;
+ color: $text-secondary;
+ border-radius: $radius-lg;
+ }
+
+ .option-card-label {
+ font-weight: $font-weight-semibold;
+ font-size: $font-size-base;
+ }
+
+ .option-card-desc {
+ font-size: $font-size-sm;
+ color: $text-secondary;
+ line-height: $line-height-normal;
+ }
+
+ .option-card-check {
+ position: absolute;
+ top: $space-3;
+ right: $space-3;
+ width: 22px;
+ height: 22px;
+ border-radius: $radius-full;
+ @include flex-center();
+ background: $accent-primary;
+ color: #fff;
+ opacity: 0;
+ transform: scale(0.5);
+ @include transition();
+ }
+
+ &.selected .option-card-check {
+ opacity: 1;
+ transform: scale(1);
+ }
+}
+
+// --------------------------------------------
+// Tier grid (Step 3)
+// --------------------------------------------
+.tier-grid {
+ display: grid;
+ grid-template-columns: repeat(3, 1fr);
+ gap: $space-4;
+ margin-bottom: $space-6;
+
+ @media (max-width: $breakpoint-md) {
+ grid-template-columns: 1fr;
+ }
+}
+
+.tier-card {
+ display: flex;
+ flex-direction: column;
+ padding: $space-5;
+ background: $bg-elevated;
+ border: 2px solid $border-default;
+ border-radius: $radius-xl;
+ @include transition();
+
+ &.detected {
+ border-color: $accent-primary;
+ background: fade($accent-primary-raw, 8%);
+ }
+
+ .tier-card-header {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ margin-bottom: $space-4;
+ }
+
+ .tier-card-name {
+ font-weight: $font-weight-bold;
+ font-size: $font-size-md;
+ }
+
+ .tier-card-badge {
+ font-size: $font-size-xs;
+ padding: 2px 8px;
+ background: $accent-primary;
+ color: #fff;
+ border-radius: $radius-full;
+ font-weight: $font-weight-medium;
+ }
+
+ .tier-card-specs {
+ font-size: $font-size-sm;
+ color: $text-secondary;
+ margin-bottom: $space-4;
+ padding-bottom: $space-4;
+ border-bottom: 1px solid $border-default;
+ }
+
+ .tier-features {
+ display: flex;
+ flex-direction: column;
+ gap: $space-2;
+ flex: 1;
+ }
+
+ .tier-feature {
+ display: flex;
+ align-items: center;
+ gap: $space-2;
+ font-size: $font-size-sm;
+
+ .feature-icon {
+ flex-shrink: 0;
+ width: 16px;
+ height: 16px;
+ }
+
+ &.available .feature-icon {
+ color: $success;
+ }
+
+ &.unavailable {
+ color: $text-tertiary;
+
+ .feature-icon {
+ color: $text-tertiary;
+ }
+ }
+ }
+}
+
+.tier-warning {
+ display: flex;
+ align-items: flex-start;
+ gap: $space-3;
+ padding: $space-4;
+ background: $warning-bg;
+ border: 1px solid $warning-border;
+ border-radius: $radius-lg;
+ margin-bottom: $space-6;
+
+ .tier-warning-icon {
+ flex-shrink: 0;
+ color: $warning;
+ }
+
+ .tier-warning-text {
+ font-size: $font-size-sm;
+ color: $text-secondary;
+ line-height: $line-height-normal;
+ }
+}
+
+// --------------------------------------------
+// Summary panel (Step 4)
+// --------------------------------------------
+.summary-panel {
+ background: $bg-elevated;
+ border: 1px solid $border-default;
+ border-radius: $radius-xl;
+ padding: $space-6;
+ margin-bottom: $space-6;
+}
+
+.summary-section {
+ &:not(:last-child) {
+ margin-bottom: $space-5;
+ padding-bottom: $space-5;
+ border-bottom: 1px solid $border-default;
+ }
+}
+
+.summary-section-title {
+ font-size: $font-size-sm;
+ font-weight: $font-weight-semibold;
+ color: $text-tertiary;
+ text-transform: uppercase;
+ letter-spacing: 0.05em;
+ margin-bottom: $space-3;
+}
+
+.summary-row {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ padding: $space-2 0;
+
+ .summary-label {
+ color: $text-secondary;
+ font-size: $font-size-sm;
+ }
+
+ .summary-value {
+ font-weight: $font-weight-medium;
+ font-size: $font-size-sm;
+ }
+}
+
+.summary-tags {
+ display: flex;
+ flex-wrap: wrap;
+ gap: $space-2;
+}
+
+.summary-tag {
+ display: inline-flex;
+ align-items: center;
+ padding: $space-1 $space-3;
+ background: fade($accent-primary-raw, 12%);
+ color: $accent-primary;
+ border-radius: $radius-full;
+ font-size: $font-size-sm;
+ font-weight: $font-weight-medium;
+}
+
+.recommendation-chips {
+ display: flex;
+ flex-wrap: wrap;
+ gap: $space-2;
+}
+
+.recommendation-chip {
+ display: inline-flex;
+ align-items: center;
+ gap: $space-2;
+ padding: $space-2 $space-4;
+ background: $bg-secondary;
+ border: 1px solid $border-default;
+ border-radius: $radius-lg;
+ font-size: $font-size-sm;
+ color: $text-primary;
+}
+
+// --------------------------------------------
+// Navigation buttons
+// --------------------------------------------
+.wizard-nav {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ margin-top: $space-8;
+ padding-top: $space-6;
+ border-top: 1px solid $border-default;
+}
+
+.btn-wizard-prev {
+ @include button-base();
+ color: $text-secondary;
+ border-color: $border-default;
+ background: transparent;
+
+ &:hover {
+ background: $bg-hover;
+ color: $text-primary;
+ }
+}
+
+.btn-wizard-next {
+ @include button-base();
+ background: $accent-primary;
+ color: #fff;
+ margin-left: auto;
+
+ &:hover {
+ background: $accent-hover;
+ }
+
+ &:disabled {
+ opacity: 0.6;
+ cursor: not-allowed;
+ }
+}
+
+// --------------------------------------------
+// Setup info banner (reused in step 1)
+// --------------------------------------------
+.wizard-info-banner {
+ display: flex;
+ gap: $space-4;
+ padding: $space-4;
+ background: fade($accent-primary-raw, 10%);
+ border-radius: $radius-md;
+ margin-bottom: $space-6;
+
+ .wizard-info-icon {
+ flex-shrink: 0;
+ color: $accent-primary;
+ }
+
+ p {
+ margin: 0;
+ font-size: $font-size-sm;
+ color: $text-secondary;
+ line-height: $line-height-normal;
+ }
+}
+
+// --------------------------------------------
+// Loading state
+// --------------------------------------------
+.wizard-loading {
+ @include flex-center();
+ padding: $space-10;
+ color: $text-secondary;
+}
diff --git a/frontend/src/styles/pages/_ssl.less b/frontend/src/styles/pages/_ssl.scss
similarity index 53%
rename from frontend/src/styles/pages/_ssl.less
rename to frontend/src/styles/pages/_ssl.scss
index a8e378b2..2df09223 100644
--- a/frontend/src/styles/pages/_ssl.less
+++ b/frontend/src/styles/pages/_ssl.scss
@@ -3,47 +3,47 @@
// ============================================
.ssl-page {
- // Reuses .ssl-status-bar, .ssl-status-item, etc. from _domains.less
+ // Reuses .ssl-status-bar, .ssl-status-item, etc. from _domains.scss
}
// Warning icon color variant
.ssl-status-icon {
&.warning {
- background: @warning-bg;
- color: @warning;
+ background: $warning-bg;
+ color: $warning;
}
}
// Certificate list
.ssl-cert-list {
- .flex-column-gap(@space-3);
+ @include flex-column-gap($space-3);
}
.ssl-cert-item {
- .list-item-base();
- gap: @space-4;
+ @include list-item-base();
+ gap: $space-4;
- @media (max-width: @breakpoint-md) {
+ @media (max-width: $breakpoint-md) {
flex-wrap: wrap;
}
}
.ssl-cert-item-info {
- .flex-start();
- gap: @space-4;
+ @include flex-start();
+ gap: $space-4;
flex: 1;
min-width: 0;
}
.ssl-cert-item-icon {
- .icon-box();
- background: @success-bg;
- border-radius: @radius-lg;
- color: @success;
+ @include icon-box();
+ background: $success-bg;
+ border-radius: $radius-lg;
+ color: $success;
&.expiring {
- background: @warning-bg;
- color: @warning;
+ background: $warning-bg;
+ color: $warning;
}
}
@@ -51,30 +51,30 @@
min-width: 0;
h3 {
- font-size: @font-size-base;
- font-weight: @font-weight-semibold;
- color: @text-primary;
- margin-bottom: @space-1;
+ font-size: $font-size-base;
+ font-weight: $font-weight-semibold;
+ color: $text-primary;
+ margin-bottom: $space-1;
}
}
.ssl-cert-item-meta {
- .flex-start();
- gap: @space-4;
- font-size: @font-size-sm;
- color: @text-tertiary;
+ @include flex-start();
+ gap: $space-4;
+ font-size: $font-size-sm;
+ color: $text-tertiary;
flex-wrap: wrap;
span {
- .flex-start();
- gap: @space-1;
+ @include flex-start();
+ gap: $space-1;
&.valid {
- color: @success;
+ color: $success;
}
&.expiring {
- color: @warning;
+ color: $warning;
}
}
}
@@ -85,28 +85,28 @@
.ssl-cert-item-actions {
display: flex;
- gap: @space-2;
+ gap: $space-2;
flex-shrink: 0;
}
// Warning banner for expiring certs
.ssl-warning-banner {
- .flex-start();
- gap: @space-3;
- padding: @space-4 @space-5;
- background: @warning-bg;
- border: 1px solid @warning-border;
- border-radius: @radius-xl;
- margin-top: @space-6;
- color: @warning;
+ @include flex-start();
+ gap: $space-3;
+ padding: $space-4 $space-5;
+ background: $warning-bg;
+ border: 1px solid $warning-border;
+ border-radius: $radius-xl;
+ margin-top: $space-6;
+ color: $warning;
div {
flex: 1;
- font-size: @font-size-sm;
- color: @text-secondary;
+ font-size: $font-size-sm;
+ color: $text-secondary;
strong {
- color: @warning;
+ color: $warning;
}
}
@@ -127,8 +127,8 @@
// Skeleton loading
.skeleton-box {
- background: @bg-hover;
- border-radius: @radius-md;
+ background: $bg-hover;
+ border-radius: $radius-md;
animation: ssl-skeleton-pulse 1.5s ease-in-out infinite;
}
diff --git a/frontend/src/styles/pages/_status-pages.less b/frontend/src/styles/pages/_status-pages.scss
similarity index 59%
rename from frontend/src/styles/pages/_status-pages.less
rename to frontend/src/styles/pages/_status-pages.scss
index 77c13787..9073ce53 100644
--- a/frontend/src/styles/pages/_status-pages.less
+++ b/frontend/src/styles/pages/_status-pages.scss
@@ -4,8 +4,8 @@
.status-layout {
display: grid;
grid-template-columns: 280px 1fr;
- gap: @spacing-lg;
- margin-top: @spacing-lg;
+ gap: $spacing-lg;
+ margin-top: $spacing-lg;
@media (max-width: 900px) {
grid-template-columns: 1fr;
@@ -15,34 +15,34 @@
.status-pages-list {
display: flex;
flex-direction: column;
- gap: @spacing-xs;
+ gap: $spacing-xs;
}
.status-page-item {
- padding: @spacing-md;
- background: @card-bg;
- border: 1px solid @border-color;
- border-radius: @radius-md;
+ padding: $spacing-md;
+ background: $card-bg;
+ border: 1px solid $border-color;
+ border-radius: $radius-md;
cursor: pointer;
display: flex;
flex-direction: column;
gap: 2px;
transition: border-color 0.15s;
- &:hover, &.active { border-color: @primary-color; }
+ &:hover, &.active { border-color: $primary-color; }
}
.status-detail-panel {
- background: @card-bg;
- border: 1px solid @border-color;
- border-radius: @radius-lg;
- padding: @spacing-lg;
+ background: $card-bg;
+ border: 1px solid $border-color;
+ border-radius: $radius-lg;
+ padding: $spacing-lg;
&__header {
display: flex;
align-items: baseline;
- gap: @spacing-sm;
- margin-bottom: @spacing-md;
+ gap: $spacing-sm;
+ margin-bottom: $spacing-md;
h2 { margin: 0; }
}
}
@@ -50,55 +50,55 @@
.status-actions-bar {
display: flex;
justify-content: flex-end;
- margin: @spacing-md 0;
+ margin: $spacing-md 0;
}
.components-list {
display: flex;
flex-direction: column;
- gap: @spacing-xs;
+ gap: $spacing-xs;
}
.component-row {
display: flex;
justify-content: space-between;
align-items: center;
- padding: @spacing-md;
- border: 1px solid @border-color;
- border-radius: @radius-md;
+ padding: $spacing-md;
+ border: 1px solid $border-color;
+ border-radius: $radius-md;
&__info {
display: flex;
align-items: center;
- gap: @spacing-sm;
+ gap: $spacing-sm;
}
&__stats {
display: flex;
- gap: @spacing-md;
+ gap: $spacing-md;
font-size: 0.85rem;
- color: @text-muted;
+ color: $text-muted;
}
&__actions {
display: flex;
- gap: @spacing-xs;
+ gap: $spacing-xs;
}
}
.incidents-list {
display: flex;
flex-direction: column;
- gap: @spacing-md;
+ gap: $spacing-md;
}
.incident-row {
- padding: @spacing-md;
- border: 1px solid @border-color;
- border-radius: @radius-md;
+ padding: $spacing-md;
+ border: 1px solid $border-color;
+ border-radius: $radius-md;
display: flex;
flex-direction: column;
- gap: @spacing-xs;
+ gap: $spacing-xs;
&__header {
display: flex;
@@ -106,6 +106,6 @@
align-items: center;
}
- p { margin: 0; font-size: 0.9rem; color: @text-secondary; }
+ p { margin: 0; font-size: 0.9rem; color: $text-secondary; }
}
}
diff --git a/frontend/src/styles/pages/_templates.less b/frontend/src/styles/pages/_templates.less
deleted file mode 100644
index b6dcf059..00000000
--- a/frontend/src/styles/pages/_templates.less
+++ /dev/null
@@ -1,667 +0,0 @@
-// ============================================
-// TEMPLATES PAGE STYLES
-// ============================================
-
-.templates-page {
- .page-description {
- color: @text-secondary;
- margin-top: @space-2;
- }
-
- .empty-state {
- grid-column: 1 / -1;
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- gap: @space-4;
- padding: @space-12;
- color: @text-tertiary;
-
- svg {
- opacity: 0.5;
- }
-
- p {
- margin: 0;
- font-size: @font-size-lg;
- }
- }
-}
-
-// Filters
-.templates-filters {
- display: flex;
- flex-direction: column;
- gap: @space-4;
- margin-bottom: @space-4;
-}
-
-.search-box {
- position: relative;
- max-width: 400px;
-
- .search-icon {
- position: absolute;
- left: @space-3;
- top: 50%;
- transform: translateY(-50%);
- color: @text-tertiary;
- pointer-events: none;
- }
-
- input {
- width: 100%;
- padding: @space-3 @space-4;
- padding-left: @space-10;
- padding-right: @space-10;
- background: @bg-card;
- border: 1px solid @border-subtle;
- border-radius: @radius-md;
- color: @text-primary;
- font-size: @font-size-base;
-
- &:focus {
- outline: none;
- border-color: @accent-primary;
- box-shadow: 0 0 0 3px @accent-glow;
- }
-
- &::placeholder {
- color: @text-tertiary;
- }
- }
-
- .search-clear {
- position: absolute;
- right: @space-2;
- top: 50%;
- transform: translateY(-50%);
- padding: @space-1;
- background: transparent;
- border: none;
- color: @text-tertiary;
- cursor: pointer;
- border-radius: @radius-sm;
- display: flex;
- align-items: center;
- justify-content: center;
-
- &:hover {
- color: @text-primary;
- background: @bg-hover;
- }
- }
-}
-
-.category-filters {
- display: flex;
- flex-wrap: wrap;
- gap: @space-2;
-}
-
-.category-btn {
- display: flex;
- align-items: center;
- gap: @space-2;
- padding: @space-2 @space-3;
- background: @bg-card;
- border: 1px solid @border-subtle;
- border-radius: @radius-md;
- color: @text-secondary;
- font-size: @font-size-sm;
- cursor: pointer;
- transition: all @transition-fast;
- text-transform: capitalize;
-
- &:hover {
- background: @bg-hover;
- border-color: @border-default;
- color: @text-primary;
- }
-
- &.active {
- background: @accent-glow;
- border-color: @accent-primary;
- color: @accent-primary;
- }
-}
-
-// Active Filters
-.active-filters {
- display: flex;
- align-items: center;
- flex-wrap: wrap;
- gap: @space-2;
- margin-bottom: @space-4;
-}
-
-.filter-chip {
- display: inline-flex;
- align-items: center;
- gap: @space-2;
- padding: @space-1 @space-2;
- padding-right: @space-1;
- background: @accent-glow;
- border: 1px solid @accent-primary;
- border-radius: @radius-full;
- font-size: @font-size-sm;
- color: @accent-primary;
-
- svg:first-child {
- flex-shrink: 0;
- }
-
- button {
- display: flex;
- align-items: center;
- justify-content: center;
- padding: @space-1;
- margin-left: @space-1;
- background: transparent;
- border: none;
- border-radius: @radius-full;
- color: @accent-primary;
- cursor: pointer;
- transition: all @transition-fast;
-
- &:hover {
- background: @accent-primary;
- color: white;
- }
- }
-}
-
-.clear-all-btn {
- padding: @space-1 @space-3;
- background: transparent;
- border: 1px solid @border-subtle;
- border-radius: @radius-full;
- font-size: @font-size-sm;
- color: @text-secondary;
- cursor: pointer;
- transition: all @transition-fast;
-
- &:hover {
- background: @bg-hover;
- border-color: @border-default;
- color: @text-primary;
- }
-}
-
-// Results Header
-.templates-results-header {
- display: flex;
- align-items: center;
- justify-content: space-between;
- margin-bottom: @space-4;
- padding-bottom: @space-3;
- border-bottom: 1px solid @border-subtle;
-}
-
-.results-count {
- font-size: @font-size-sm;
- color: @text-secondary;
-}
-
-.sort-dropdown {
- display: flex;
- align-items: center;
- gap: @space-2;
- position: relative;
-
- label {
- font-size: @font-size-sm;
- color: @text-tertiary;
- }
-
- select {
- appearance: none;
- padding: @space-2 @space-8 @space-2 @space-3;
- background: @bg-card;
- border: 1px solid @border-subtle;
- border-radius: @radius-md;
- font-size: @font-size-sm;
- color: @text-primary;
- cursor: pointer;
-
- &:focus {
- outline: none;
- border-color: @accent-primary;
- }
- }
-
- .dropdown-icon {
- position: absolute;
- right: @space-2;
- pointer-events: none;
- color: @text-tertiary;
- }
-}
-
-// Templates Grid
-.templates-grid {
- display: grid;
- grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
- gap: @space-5;
-}
-
-.template-card {
- position: relative;
- display: flex;
- gap: @space-4;
- padding: @space-5;
- background: @bg-card;
- border: 1px solid @border-subtle;
- border-radius: @radius-lg;
- cursor: pointer;
- transition: all @transition-fast;
-
- &:hover {
- border-color: @accent-primary;
- box-shadow: @shadow-md;
- transform: translateY(-2px);
- }
-}
-
-.featured-badge {
- position: absolute;
- top: @space-3;
- right: @space-3;
- display: inline-flex;
- align-items: center;
- gap: @space-1;
- padding: @space-1 @space-2;
- background: linear-gradient(135deg, #f59e0b, #d97706);
- border-radius: @radius-sm;
- font-size: @font-size-xs;
- font-weight: @font-weight-medium;
- color: white;
-
- svg {
- fill: currentColor;
- }
-}
-
-.template-icon {
- width: 64px;
- height: 64px;
- flex-shrink: 0;
- display: flex;
- align-items: center;
- justify-content: center;
- background: @bg-hover;
- border-radius: @radius-md;
- overflow: hidden;
- color: @accent-primary;
-
- img {
- width: 100%;
- height: 100%;
- object-fit: contain;
- padding: @space-2;
- }
-
- svg {
- flex-shrink: 0;
- }
-}
-
-.template-icon-placeholder {
- font-size: @font-size-2xl;
- font-weight: @font-weight-bold;
- color: @accent-primary;
-}
-
-.template-icon-large {
- width: 80px;
- height: 80px;
- flex-shrink: 0;
- display: flex;
- align-items: center;
- justify-content: center;
- background: @bg-hover;
- border-radius: @radius-lg;
- overflow: hidden;
- color: @accent-primary;
-
- img {
- width: 100%;
- height: 100%;
- object-fit: contain;
- padding: @space-2;
- }
-
- .template-icon-placeholder {
- font-size: @font-size-3xl;
- }
-}
-
-.template-info {
- flex: 1;
- min-width: 0;
-
- h3 {
- margin: 0 0 @space-2 0;
- font-size: @font-size-lg;
- font-weight: @font-weight-semibold;
- }
-}
-
-.template-description {
- margin: 0 0 @space-3 0;
- color: @text-secondary;
- font-size: @font-size-sm;
- line-height: @line-height-relaxed;
- display: -webkit-box;
- -webkit-line-clamp: 2;
- -webkit-box-orient: vertical;
- overflow: hidden;
-}
-
-.template-full-description {
- margin-bottom: @space-4;
- color: @text-secondary;
- line-height: @line-height-relaxed;
-}
-
-.template-meta {
- display: flex;
- align-items: center;
- gap: @space-2;
- flex-wrap: wrap;
-}
-
-.template-version {
- font-size: @font-size-xs;
- font-weight: @font-weight-medium;
- color: @accent-primary;
- padding: @space-1 @space-2;
- background: @accent-glow;
- border-radius: @radius-sm;
-}
-
-.template-link-indicator {
- display: inline-flex;
- align-items: center;
- justify-content: center;
- width: 24px;
- height: 24px;
- background: @bg-hover;
- border-radius: @radius-sm;
- color: @text-tertiary;
-
- &:hover {
- color: @accent-primary;
- }
-}
-
-.template-categories {
- display: flex;
- flex-wrap: wrap;
- gap: @space-1;
-}
-
-.category-badge {
- display: inline-flex;
- align-items: center;
- gap: @space-1;
- padding: @space-1 @space-2;
- font-size: @font-size-xs;
- color: @text-secondary;
- background: @bg-hover;
- border-radius: @radius-sm;
- text-transform: capitalize;
-}
-
-// Template Detail Modal
-.template-detail-header {
- display: flex;
- align-items: center;
- gap: @space-4;
-
- h2 {
- margin: 0;
- }
-}
-
-.template-links {
- display: flex;
- gap: @space-2;
- margin-bottom: @space-6;
-
- .btn {
- display: inline-flex;
- align-items: center;
- gap: @space-2;
- }
-}
-
-.template-details-grid {
- display: flex;
- flex-direction: column;
- gap: @space-6;
-}
-
-.detail-section {
- h4 {
- display: flex;
- align-items: center;
- gap: @space-2;
- margin: 0 0 @space-3 0;
- font-size: @font-size-sm;
- font-weight: @font-weight-semibold;
- color: @text-secondary;
- text-transform: uppercase;
- letter-spacing: 0.05em;
-
- svg {
- flex-shrink: 0;
- }
-
- .copy-btn {
- margin-left: auto;
- padding: @space-1;
- background: transparent;
- border: none;
- color: @text-tertiary;
- cursor: pointer;
- border-radius: @radius-sm;
- display: flex;
- align-items: center;
- transition: all @transition-fast;
-
- &:hover {
- color: @accent-primary;
- background: @bg-hover;
- }
- }
- }
-}
-
-// Requirements
-.requirements-list {
- display: flex;
- flex-wrap: wrap;
- gap: @space-3;
-}
-
-.requirement-item {
- display: flex;
- align-items: center;
- gap: @space-2;
- padding: @space-2 @space-3;
- background: @bg-hover;
- border-radius: @radius-md;
-
- .requirement-label {
- font-size: @font-size-sm;
- color: @text-tertiary;
- }
-
- .requirement-value {
- font-size: @font-size-sm;
- font-weight: @font-weight-medium;
- color: @text-primary;
- font-family: @font-mono;
- }
-}
-
-// Variables
-.variables-list {
- display: flex;
- flex-direction: column;
- gap: @space-3;
-}
-
-.variable-item {
- display: flex;
- flex-direction: column;
- gap: @space-1;
- padding: @space-3;
- background: @bg-hover;
- border-radius: @radius-md;
- border-left: 3px solid transparent;
-
- &.required {
- border-left-color: @accent-primary;
- }
-
- .variable-header {
- display: flex;
- align-items: center;
- gap: @space-2;
- }
-}
-
-.variable-name {
- font-family: @font-mono;
- font-size: @font-size-sm;
- font-weight: @font-weight-medium;
- color: @accent-primary;
-}
-
-.required-badge {
- font-size: @font-size-xs;
- padding: 2px @space-2;
- background: @accent-primary;
- color: white;
- border-radius: @radius-sm;
- font-weight: @font-weight-medium;
-}
-
-.auto-badge {
- font-size: @font-size-xs;
- padding: 2px @space-2;
- background: @success-bg;
- color: @success;
- border-radius: @radius-sm;
- font-weight: @font-weight-medium;
-}
-
-.variable-description {
- font-size: @font-size-sm;
- color: @text-secondary;
-}
-
-.variable-default {
- font-size: @font-size-xs;
- color: @text-tertiary;
- font-family: @font-mono;
-}
-
-// Ports
-.ports-list {
- display: flex;
- flex-wrap: wrap;
- gap: @space-2;
-}
-
-.port-item {
- display: flex;
- align-items: center;
- gap: @space-2;
- padding: @space-2 @space-3;
- background: @bg-hover;
- border-radius: @radius-md;
-}
-
-.port-number {
- font-family: @font-mono;
- font-weight: @font-weight-medium;
- color: @text-primary;
-}
-
-.port-protocol {
- font-size: @font-size-xs;
- padding: @space-1;
- background: @bg-card;
- border-radius: @radius-sm;
- color: @text-secondary;
- text-transform: uppercase;
-}
-
-.port-description {
- font-size: @font-size-sm;
- color: @text-secondary;
-}
-
-// Compose Preview
-.compose-preview {
- padding: @space-4;
- background: @bg-elevated;
- border-radius: @radius-md;
- border: 1px solid @border-subtle;
-
- code {
- font-family: @font-mono;
- font-size: @font-size-sm;
- color: @text-secondary;
- }
-}
-
-// Install Modal
-.install-modal {
- h4 {
- margin: @space-4 0 @space-3 0;
- font-size: @font-size-base;
- font-weight: @font-weight-semibold;
- padding-top: @space-4;
- border-top: 1px solid @border-subtle;
- }
-}
-
-// Responsive
-@media (max-width: @breakpoint-md) {
- .templates-grid {
- grid-template-columns: 1fr;
- }
-
- .templates-results-header {
- flex-direction: column;
- align-items: flex-start;
- gap: @space-3;
- }
-
- .sort-dropdown {
- width: 100%;
-
- select {
- flex: 1;
- }
- }
-
- .template-card {
- flex-direction: column;
- }
-
- .template-icon {
- width: 48px;
- height: 48px;
- }
-
- .featured-badge {
- top: @space-2;
- right: @space-2;
- }
-}
diff --git a/frontend/src/styles/pages/_templates.scss b/frontend/src/styles/pages/_templates.scss
new file mode 100644
index 00000000..a5b3dadf
--- /dev/null
+++ b/frontend/src/styles/pages/_templates.scss
@@ -0,0 +1,667 @@
+// ============================================
+// TEMPLATES PAGE STYLES
+// ============================================
+
+.templates-page {
+ .page-description {
+ color: $text-secondary;
+ margin-top: $space-2;
+ }
+
+ .empty-state {
+ grid-column: 1 / -1;
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
+ gap: $space-4;
+ padding: $space-12;
+ color: $text-tertiary;
+
+ svg {
+ opacity: 0.5;
+ }
+
+ p {
+ margin: 0;
+ font-size: $font-size-lg;
+ }
+ }
+}
+
+// Filters
+.templates-filters {
+ display: flex;
+ flex-direction: column;
+ gap: $space-4;
+ margin-bottom: $space-4;
+}
+
+.search-box {
+ position: relative;
+ max-width: 400px;
+
+ .search-icon {
+ position: absolute;
+ left: $space-3;
+ top: 50%;
+ transform: translateY(-50%);
+ color: $text-tertiary;
+ pointer-events: none;
+ }
+
+ input {
+ width: 100%;
+ padding: $space-3 $space-4;
+ padding-left: $space-10;
+ padding-right: $space-10;
+ background: $bg-card;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-md;
+ color: $text-primary;
+ font-size: $font-size-base;
+
+ &:focus {
+ outline: none;
+ border-color: $accent-primary;
+ box-shadow: 0 0 0 3px $accent-glow;
+ }
+
+ &::placeholder {
+ color: $text-tertiary;
+ }
+ }
+
+ .search-clear {
+ position: absolute;
+ right: $space-2;
+ top: 50%;
+ transform: translateY(-50%);
+ padding: $space-1;
+ background: transparent;
+ border: none;
+ color: $text-tertiary;
+ cursor: pointer;
+ border-radius: $radius-sm;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+
+ &:hover {
+ color: $text-primary;
+ background: $bg-hover;
+ }
+ }
+}
+
+.category-filters {
+ display: flex;
+ flex-wrap: wrap;
+ gap: $space-2;
+}
+
+.category-btn {
+ display: flex;
+ align-items: center;
+ gap: $space-2;
+ padding: $space-2 $space-3;
+ background: $bg-card;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-md;
+ color: $text-secondary;
+ font-size: $font-size-sm;
+ cursor: pointer;
+ transition: all $transition-fast;
+ text-transform: capitalize;
+
+ &:hover {
+ background: $bg-hover;
+ border-color: $border-default;
+ color: $text-primary;
+ }
+
+ &.active {
+ background: $accent-glow;
+ border-color: $accent-primary;
+ color: $accent-primary;
+ }
+}
+
+// Active Filters
+.active-filters {
+ display: flex;
+ align-items: center;
+ flex-wrap: wrap;
+ gap: $space-2;
+ margin-bottom: $space-4;
+}
+
+.filter-chip {
+ display: inline-flex;
+ align-items: center;
+ gap: $space-2;
+ padding: $space-1 $space-2;
+ padding-right: $space-1;
+ background: $accent-glow;
+ border: 1px solid $accent-primary;
+ border-radius: $radius-full;
+ font-size: $font-size-sm;
+ color: $accent-primary;
+
+ svg:first-child {
+ flex-shrink: 0;
+ }
+
+ button {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ padding: $space-1;
+ margin-left: $space-1;
+ background: transparent;
+ border: none;
+ border-radius: $radius-full;
+ color: $accent-primary;
+ cursor: pointer;
+ transition: all $transition-fast;
+
+ &:hover {
+ background: $accent-primary;
+ color: white;
+ }
+ }
+}
+
+.clear-all-btn {
+ padding: $space-1 $space-3;
+ background: transparent;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-full;
+ font-size: $font-size-sm;
+ color: $text-secondary;
+ cursor: pointer;
+ transition: all $transition-fast;
+
+ &:hover {
+ background: $bg-hover;
+ border-color: $border-default;
+ color: $text-primary;
+ }
+}
+
+// Results Header
+.templates-results-header {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ margin-bottom: $space-4;
+ padding-bottom: $space-3;
+ border-bottom: 1px solid $border-subtle;
+}
+
+.results-count {
+ font-size: $font-size-sm;
+ color: $text-secondary;
+}
+
+.sort-dropdown {
+ display: flex;
+ align-items: center;
+ gap: $space-2;
+ position: relative;
+
+ label {
+ font-size: $font-size-sm;
+ color: $text-tertiary;
+ }
+
+ select {
+ appearance: none;
+ padding: $space-2 $space-8 $space-2 $space-3;
+ background: $bg-card;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-md;
+ font-size: $font-size-sm;
+ color: $text-primary;
+ cursor: pointer;
+
+ &:focus {
+ outline: none;
+ border-color: $accent-primary;
+ }
+ }
+
+ .dropdown-icon {
+ position: absolute;
+ right: $space-2;
+ pointer-events: none;
+ color: $text-tertiary;
+ }
+}
+
+// Templates Grid
+.templates-grid {
+ display: grid;
+ grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
+ gap: $space-5;
+}
+
+.template-card {
+ position: relative;
+ display: flex;
+ gap: $space-4;
+ padding: $space-5;
+ background: $bg-card;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-lg;
+ cursor: pointer;
+ transition: all $transition-fast;
+
+ &:hover {
+ border-color: $accent-primary;
+ box-shadow: $shadow-md;
+ transform: translateY(-2px);
+ }
+}
+
+.featured-badge {
+ position: absolute;
+ top: $space-3;
+ right: $space-3;
+ display: inline-flex;
+ align-items: center;
+ gap: $space-1;
+ padding: $space-1 $space-2;
+ background: linear-gradient(135deg, $color-star, #d97706);
+ border-radius: $radius-sm;
+ font-size: $font-size-xs;
+ font-weight: $font-weight-medium;
+ color: white;
+
+ svg {
+ fill: currentColor;
+ }
+}
+
+.template-icon {
+ width: 64px;
+ height: 64px;
+ flex-shrink: 0;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ background: $bg-hover;
+ border-radius: $radius-md;
+ overflow: hidden;
+ color: $accent-primary;
+
+ img {
+ width: 100%;
+ height: 100%;
+ object-fit: contain;
+ padding: $space-2;
+ }
+
+ svg {
+ flex-shrink: 0;
+ }
+}
+
+.template-icon-placeholder {
+ font-size: $font-size-2xl;
+ font-weight: $font-weight-bold;
+ color: $accent-primary;
+}
+
+.template-icon-large {
+ width: 80px;
+ height: 80px;
+ flex-shrink: 0;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ background: $bg-hover;
+ border-radius: $radius-lg;
+ overflow: hidden;
+ color: $accent-primary;
+
+ img {
+ width: 100%;
+ height: 100%;
+ object-fit: contain;
+ padding: $space-2;
+ }
+
+ .template-icon-placeholder {
+ font-size: $font-size-3xl;
+ }
+}
+
+.template-info {
+ flex: 1;
+ min-width: 0;
+
+ h3 {
+ margin: 0 0 $space-2 0;
+ font-size: $font-size-lg;
+ font-weight: $font-weight-semibold;
+ }
+}
+
+.template-description {
+ margin: 0 0 $space-3 0;
+ color: $text-secondary;
+ font-size: $font-size-sm;
+ line-height: $line-height-relaxed;
+ display: -webkit-box;
+ -webkit-line-clamp: 2;
+ -webkit-box-orient: vertical;
+ overflow: hidden;
+}
+
+.template-full-description {
+ margin-bottom: $space-4;
+ color: $text-secondary;
+ line-height: $line-height-relaxed;
+}
+
+.template-meta {
+ display: flex;
+ align-items: center;
+ gap: $space-2;
+ flex-wrap: wrap;
+}
+
+.template-version {
+ font-size: $font-size-xs;
+ font-weight: $font-weight-medium;
+ color: $accent-primary;
+ padding: $space-1 $space-2;
+ background: $accent-glow;
+ border-radius: $radius-sm;
+}
+
+.template-link-indicator {
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
+ width: 24px;
+ height: 24px;
+ background: $bg-hover;
+ border-radius: $radius-sm;
+ color: $text-tertiary;
+
+ &:hover {
+ color: $accent-primary;
+ }
+}
+
+.template-categories {
+ display: flex;
+ flex-wrap: wrap;
+ gap: $space-1;
+}
+
+.category-badge {
+ display: inline-flex;
+ align-items: center;
+ gap: $space-1;
+ padding: $space-1 $space-2;
+ font-size: $font-size-xs;
+ color: $text-secondary;
+ background: $bg-hover;
+ border-radius: $radius-sm;
+ text-transform: capitalize;
+}
+
+// Template Detail Modal
+.template-detail-header {
+ display: flex;
+ align-items: center;
+ gap: $space-4;
+
+ h2 {
+ margin: 0;
+ }
+}
+
+.template-links {
+ display: flex;
+ gap: $space-2;
+ margin-bottom: $space-6;
+
+ .btn {
+ display: inline-flex;
+ align-items: center;
+ gap: $space-2;
+ }
+}
+
+.template-details-grid {
+ display: flex;
+ flex-direction: column;
+ gap: $space-6;
+}
+
+.detail-section {
+ h4 {
+ display: flex;
+ align-items: center;
+ gap: $space-2;
+ margin: 0 0 $space-3 0;
+ font-size: $font-size-sm;
+ font-weight: $font-weight-semibold;
+ color: $text-secondary;
+ text-transform: uppercase;
+ letter-spacing: 0.05em;
+
+ svg {
+ flex-shrink: 0;
+ }
+
+ .copy-btn {
+ margin-left: auto;
+ padding: $space-1;
+ background: transparent;
+ border: none;
+ color: $text-tertiary;
+ cursor: pointer;
+ border-radius: $radius-sm;
+ display: flex;
+ align-items: center;
+ transition: all $transition-fast;
+
+ &:hover {
+ color: $accent-primary;
+ background: $bg-hover;
+ }
+ }
+ }
+}
+
+// Requirements
+.requirements-list {
+ display: flex;
+ flex-wrap: wrap;
+ gap: $space-3;
+}
+
+.requirement-item {
+ display: flex;
+ align-items: center;
+ gap: $space-2;
+ padding: $space-2 $space-3;
+ background: $bg-hover;
+ border-radius: $radius-md;
+
+ .requirement-label {
+ font-size: $font-size-sm;
+ color: $text-tertiary;
+ }
+
+ .requirement-value {
+ font-size: $font-size-sm;
+ font-weight: $font-weight-medium;
+ color: $text-primary;
+ font-family: $font-mono;
+ }
+}
+
+// Variables
+.variables-list {
+ display: flex;
+ flex-direction: column;
+ gap: $space-3;
+}
+
+.variable-item {
+ display: flex;
+ flex-direction: column;
+ gap: $space-1;
+ padding: $space-3;
+ background: $bg-hover;
+ border-radius: $radius-md;
+ border-left: 3px solid transparent;
+
+ &.required {
+ border-left-color: $accent-primary;
+ }
+
+ .variable-header {
+ display: flex;
+ align-items: center;
+ gap: $space-2;
+ }
+}
+
+.variable-name {
+ font-family: $font-mono;
+ font-size: $font-size-sm;
+ font-weight: $font-weight-medium;
+ color: $accent-primary;
+}
+
+.required-badge {
+ font-size: $font-size-xs;
+ padding: 2px $space-2;
+ background: $accent-primary;
+ color: white;
+ border-radius: $radius-sm;
+ font-weight: $font-weight-medium;
+}
+
+.auto-badge {
+ font-size: $font-size-xs;
+ padding: 2px $space-2;
+ background: $success-bg;
+ color: $success;
+ border-radius: $radius-sm;
+ font-weight: $font-weight-medium;
+}
+
+.variable-description {
+ font-size: $font-size-sm;
+ color: $text-secondary;
+}
+
+.variable-default {
+ font-size: $font-size-xs;
+ color: $text-tertiary;
+ font-family: $font-mono;
+}
+
+// Ports
+.ports-list {
+ display: flex;
+ flex-wrap: wrap;
+ gap: $space-2;
+}
+
+.port-item {
+ display: flex;
+ align-items: center;
+ gap: $space-2;
+ padding: $space-2 $space-3;
+ background: $bg-hover;
+ border-radius: $radius-md;
+}
+
+.port-number {
+ font-family: $font-mono;
+ font-weight: $font-weight-medium;
+ color: $text-primary;
+}
+
+.port-protocol {
+ font-size: $font-size-xs;
+ padding: $space-1;
+ background: $bg-card;
+ border-radius: $radius-sm;
+ color: $text-secondary;
+ text-transform: uppercase;
+}
+
+.port-description {
+ font-size: $font-size-sm;
+ color: $text-secondary;
+}
+
+// Compose Preview
+.compose-preview {
+ padding: $space-4;
+ background: $bg-elevated;
+ border-radius: $radius-md;
+ border: 1px solid $border-subtle;
+
+ code {
+ font-family: $font-mono;
+ font-size: $font-size-sm;
+ color: $text-secondary;
+ }
+}
+
+// Install Modal
+.install-modal {
+ h4 {
+ margin: $space-4 0 $space-3 0;
+ font-size: $font-size-base;
+ font-weight: $font-weight-semibold;
+ padding-top: $space-4;
+ border-top: 1px solid $border-subtle;
+ }
+}
+
+// Responsive
+@media (max-width: $breakpoint-md) {
+ .templates-grid {
+ grid-template-columns: 1fr;
+ }
+
+ .templates-results-header {
+ flex-direction: column;
+ align-items: flex-start;
+ gap: $space-3;
+ }
+
+ .sort-dropdown {
+ width: 100%;
+
+ select {
+ flex: 1;
+ }
+ }
+
+ .template-card {
+ flex-direction: column;
+ }
+
+ .template-icon {
+ width: 48px;
+ height: 48px;
+ }
+
+ .featured-badge {
+ top: $space-2;
+ right: $space-2;
+ }
+}
diff --git a/frontend/src/styles/pages/_terminal.less b/frontend/src/styles/pages/_terminal.scss
similarity index 78%
rename from frontend/src/styles/pages/_terminal.less
rename to frontend/src/styles/pages/_terminal.scss
index 81611122..22583363 100644
--- a/frontend/src/styles/pages/_terminal.less
+++ b/frontend/src/styles/pages/_terminal.scss
@@ -5,7 +5,7 @@
.tab {
display: flex;
align-items: center;
- gap: @space-2;
+ gap: $space-2;
svg {
stroke: currentColor;
@@ -28,10 +28,10 @@
.logs-layout {
display: grid;
grid-template-columns: 300px 1fr;
- gap: @space-6;
+ gap: $space-6;
height: 100%;
- @media (max-width: @breakpoint-lg) {
+ @media (max-width: $breakpoint-lg) {
grid-template-columns: 1fr;
grid-template-rows: auto 1fr;
}
@@ -40,7 +40,7 @@
.logs-sidebar {
background: var(--bg-secondary);
border: 1px solid var(--border-color);
- border-radius: @radius-lg;
+ border-radius: $radius-lg;
display: flex;
flex-direction: column;
overflow: hidden;
@@ -49,11 +49,11 @@
display: flex;
align-items: center;
justify-content: space-between;
- padding: @space-4;
+ padding: $space-4;
border-bottom: 1px solid var(--border-color);
h3 {
- font-size: @font-size-sm;
+ font-size: $font-size-sm;
font-weight: 600;
margin: 0;
}
@@ -63,22 +63,22 @@
.log-files-list {
flex: 1;
overflow-y: auto;
- padding: @space-2;
+ padding: $space-2;
.empty-hint {
- padding: @space-6;
+ padding: $space-6;
text-align: center;
color: var(--text-tertiary);
- font-size: @font-size-sm;
+ font-size: $font-size-sm;
}
}
.log-file-item {
display: flex;
align-items: center;
- gap: @space-2;
- padding: @space-2 @space-4;
- border-radius: @radius-md;
+ gap: $space-2;
+ padding: $space-2 $space-4;
+ border-radius: $radius-md;
cursor: pointer;
transition: all 0.15s ease;
@@ -104,7 +104,7 @@
.log-icon {
width: 32px;
height: 32px;
- border-radius: @radius-sm;
+ border-radius: $radius-sm;
display: flex;
align-items: center;
justify-content: center;
@@ -118,15 +118,15 @@
}
&.error {
- color: @danger;
+ color: $danger;
}
&.access {
- color: @success;
+ color: $success;
}
&.nginx {
- color: @accent-primary;
+ color: $accent-primary;
}
&.database {
@@ -143,7 +143,7 @@
}
.log-file-name {
- font-size: @font-size-sm;
+ font-size: $font-size-sm;
font-weight: 500;
white-space: nowrap;
overflow: hidden;
@@ -151,7 +151,7 @@
}
.log-file-path {
- font-size: @font-size-xs;
+ font-size: $font-size-xs;
color: var(--text-tertiary);
white-space: nowrap;
overflow: hidden;
@@ -159,7 +159,7 @@
}
.log-file-size {
- font-size: @font-size-xs;
+ font-size: $font-size-xs;
color: var(--text-tertiary);
flex-shrink: 0;
}
@@ -168,7 +168,7 @@
.logs-viewer {
background: var(--bg-secondary);
border: 1px solid var(--border-color);
- border-radius: @radius-lg;
+ border-radius: $radius-lg;
display: flex;
flex-direction: column;
overflow: hidden;
@@ -178,8 +178,8 @@
display: flex;
align-items: center;
justify-content: space-between;
- gap: @space-4;
- padding: @space-2 @space-4;
+ gap: $space-4;
+ padding: $space-2 $space-4;
border-bottom: 1px solid var(--border-color);
flex-wrap: wrap;
@@ -187,18 +187,18 @@
.toolbar-right {
display: flex;
align-items: center;
- gap: @space-2;
+ gap: $space-2;
}
}
.search-input {
display: flex;
align-items: center;
- gap: @space-2;
- padding: @space-1 @space-2;
+ gap: $space-2;
+ padding: $space-1 $space-2;
background: var(--bg-tertiary);
border: 1px solid var(--border-color);
- border-radius: @radius-md;
+ border-radius: $radius-md;
svg {
stroke: var(--text-tertiary);
@@ -211,7 +211,7 @@
border: none;
background: none;
padding: 0;
- font-size: @font-size-sm;
+ font-size: $font-size-sm;
width: 180px;
&:focus {
@@ -221,20 +221,20 @@
}
.lines-select {
- padding: @space-1 @space-2;
+ padding: $space-1 $space-2;
border: 1px solid var(--border-color);
- border-radius: @radius-sm;
+ border-radius: $radius-sm;
background: var(--bg-tertiary);
color: var(--text-primary);
- font-size: @font-size-sm;
+ font-size: $font-size-sm;
}
.auto-refresh-toggle {
display: flex;
align-items: center;
- gap: @space-1;
+ gap: $space-1;
cursor: pointer;
- font-size: @font-size-sm;
+ font-size: $font-size-sm;
color: var(--text-secondary);
input {
@@ -250,8 +250,8 @@
pre {
margin: 0;
- font-family: @font-mono;
- font-size: @font-size-sm;
+ font-family: $font-mono;
+ font-size: $font-size-sm;
line-height: 1.4;
color: var(--text-code);
white-space: pre-wrap;
@@ -271,12 +271,12 @@
stroke: currentColor;
fill: none;
stroke-width: 1.5;
- margin-bottom: @space-4;
+ margin-bottom: $space-4;
opacity: 0.5;
}
p {
- font-size: @font-size-sm;
+ font-size: $font-size-sm;
}
}
}
@@ -288,7 +288,7 @@
.journal-container {
display: flex;
flex-direction: column;
- gap: @space-6;
+ gap: $space-6;
height: calc(100vh - 280px);
min-height: 500px;
}
@@ -296,27 +296,27 @@
.journal-controls {
display: flex;
align-items: flex-end;
- gap: @space-6;
+ gap: $space-6;
flex-wrap: wrap;
.control-group {
display: flex;
flex-direction: column;
- gap: @space-1;
+ gap: $space-1;
label {
- font-size: @font-size-xs;
+ font-size: $font-size-xs;
font-weight: 500;
color: var(--text-secondary);
}
input,
select {
- padding: @space-1 @space-2;
+ padding: $space-1 $space-2;
border: 1px solid var(--border-color);
- border-radius: @radius-sm;
+ border-radius: $radius-sm;
background: var(--bg-secondary);
- font-size: @font-size-sm;
+ font-size: $font-size-sm;
}
input {
@@ -328,21 +328,21 @@
.input-with-suggestions {
display: flex;
flex-direction: column;
- gap: @space-2;
+ gap: $space-2;
}
.quick-units {
display: flex;
flex-wrap: wrap;
- gap: @space-1;
+ gap: $space-1;
}
.unit-chip {
- padding: 2px @space-2;
+ padding: 2px $space-2;
border: 1px solid var(--border-color);
- border-radius: @radius-full;
+ border-radius: $radius-full;
background: var(--bg-secondary);
- font-size: @font-size-xs;
+ font-size: $font-size-xs;
cursor: pointer;
transition: all 0.15s ease;
@@ -361,14 +361,14 @@
.journal-source-notice {
display: flex;
align-items: center;
- gap: @space-2;
- padding: @space-2 @space-4;
+ gap: $space-2;
+ padding: $space-2 $space-4;
background: var(--bg-secondary);
border: 1px solid var(--border-color);
- border-radius: @radius-md;
- font-size: @font-size-xs;
+ border-radius: $radius-md;
+ font-size: $font-size-xs;
color: var(--text-secondary);
- margin-top: -@space-4;
+ margin-top: -$space-4;
svg { stroke: currentColor; fill: none; stroke-width: 2; flex-shrink: 0; }
strong { color: var(--text-primary); }
@@ -377,14 +377,14 @@
.journal-viewer {
flex: 1;
background: var(--bg-code);
- border-radius: @radius-lg;
+ border-radius: $radius-lg;
overflow: auto;
padding: 1rem;
pre {
margin: 0;
- font-family: @font-mono;
- font-size: @font-size-sm;
+ font-family: $font-mono;
+ font-size: $font-size-sm;
line-height: 1.4;
color: var(--text-code);
white-space: pre-wrap;
@@ -400,29 +400,29 @@
.processes-container {
display: flex;
flex-direction: column;
- gap: @space-6;
+ gap: $space-6;
}
.processes-toolbar {
display: flex;
align-items: center;
justify-content: space-between;
- gap: @space-4;
+ gap: $space-4;
flex-wrap: wrap;
.toolbar-left,
.toolbar-right {
display: flex;
align-items: center;
- gap: @space-2;
+ gap: $space-2;
}
select {
- padding: @space-1 @space-2;
+ padding: $space-1 $space-2;
border: 1px solid var(--border-color);
- border-radius: @radius-sm;
+ border-radius: $radius-sm;
background: var(--bg-secondary);
- font-size: @font-size-sm;
+ font-size: $font-size-sm;
}
}
@@ -430,7 +430,7 @@
overflow-x: auto;
background: var(--bg-secondary);
border: 1px solid var(--border-color);
- border-radius: @radius-lg;
+ border-radius: $radius-lg;
}
.processes-table {
@@ -441,10 +441,10 @@
// Column widths: PID | Name | User | CPU% | Mem% | Memory | Status | Actions
th, td {
- padding: @space-2 @space-3;
+ padding: $space-2 $space-3;
text-align: left;
vertical-align: middle;
- font-size: @font-size-sm;
+ font-size: $font-size-sm;
}
th {
@@ -452,9 +452,9 @@
top: 0;
background: var(--bg-secondary);
z-index: 1;
- font-weight: @font-weight-semibold;
- color: @text-secondary;
- font-size: @font-size-xs;
+ font-weight: $font-weight-semibold;
+ color: $text-secondary;
+ font-size: $font-size-xs;
text-transform: uppercase;
letter-spacing: 0.03em;
border-bottom: 1px solid var(--border-color);
@@ -488,8 +488,8 @@
}
.mono {
- font-family: @font-mono;
- font-size: @font-size-xs;
+ font-family: $font-mono;
+ font-size: $font-size-xs;
}
.process-name {
@@ -510,7 +510,7 @@
opacity: 0.4;
&.cpu {
- background: @accent-primary;
+ background: $accent-primary;
}
&.memory {
@@ -520,14 +520,14 @@
span {
position: relative;
- font-size: @font-size-xs;
- font-family: @font-mono;
+ font-size: $font-size-xs;
+ font-family: $font-mono;
}
}
.action-buttons {
display: flex;
- gap: @space-1;
+ gap: $space-1;
}
}
@@ -545,72 +545,72 @@
.process-details-panel {
background: var(--bg-secondary);
border: 1px solid var(--border-color);
- border-radius: @radius-lg;
+ border-radius: $radius-lg;
overflow: hidden;
.panel-header {
display: flex;
align-items: center;
justify-content: space-between;
- padding: @space-4;
+ padding: $space-4;
border-bottom: 1px solid var(--border-color);
h3 {
- font-size: @font-size-md;
+ font-size: $font-size-md;
font-weight: 600;
margin: 0;
}
}
.panel-body {
- padding: @space-4;
+ padding: $space-4;
}
.details-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
- gap: @space-4;
+ gap: $space-4;
}
.detail-item {
display: flex;
flex-direction: column;
- gap: @space-1;
+ gap: $space-1;
.detail-label {
- font-size: @font-size-xs;
+ font-size: $font-size-xs;
color: var(--text-tertiary);
}
.detail-value {
- font-size: @font-size-sm;
+ font-size: $font-size-sm;
font-weight: 500;
&.mono {
- font-family: @font-mono;
+ font-family: $font-mono;
}
}
}
.command-line {
- margin-top: @space-4;
- padding-top: @space-4;
+ margin-top: $space-4;
+ padding-top: $space-4;
border-top: 1px solid var(--border-color);
.detail-label {
display: block;
- font-size: @font-size-xs;
+ font-size: $font-size-xs;
color: var(--text-tertiary);
- margin-bottom: @space-1;
+ margin-bottom: $space-1;
}
code {
display: block;
- padding: @space-2;
+ padding: $space-2;
background: var(--bg-tertiary);
- border-radius: @radius-sm;
- font-family: @font-mono;
- font-size: @font-size-xs;
+ border-radius: $radius-sm;
+ font-family: $font-mono;
+ font-size: $font-size-xs;
word-break: break-all;
}
}
@@ -623,13 +623,13 @@
.services-container {
display: flex;
flex-direction: column;
- gap: @space-6;
+ gap: $space-6;
}
.services-toolbar {
display: flex;
align-items: center;
- gap: @space-2;
+ gap: $space-2;
.btn svg {
stroke: currentColor;
@@ -641,28 +641,28 @@
.services-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
- gap: @space-4;
+ gap: $space-4;
}
.service-card {
background: var(--bg-secondary);
border: 1px solid var(--border-color);
- border-radius: @radius-lg;
- padding: @space-4;
+ border-radius: $radius-lg;
+ padding: $space-4;
display: flex;
flex-direction: column;
- gap: @space-2;
+ gap: $space-2;
.service-header {
display: flex;
align-items: center;
justify-content: space-between;
- gap: @space-4;
+ gap: $space-4;
.service-info {
display: flex;
align-items: center;
- gap: @space-2;
+ gap: $space-2;
.status-dot {
width: 8px;
@@ -671,15 +671,15 @@
flex-shrink: 0;
&.success {
- background: @success;
+ background: $success;
}
&.danger {
- background: @danger;
+ background: $danger;
}
&.warning {
- background: @warning;
+ background: $warning;
}
&.secondary {
@@ -688,7 +688,7 @@
}
h4 {
- font-size: @font-size-sm;
+ font-size: $font-size-sm;
font-weight: 600;
margin: 0;
}
@@ -696,15 +696,15 @@
}
.service-description {
- font-size: @font-size-xs;
+ font-size: $font-size-xs;
color: var(--text-secondary);
margin: 0;
}
.service-meta {
display: flex;
- gap: @space-4;
- font-size: @font-size-xs;
+ gap: $space-4;
+ font-size: $font-size-xs;
color: var(--text-tertiary);
.meta-label {
@@ -714,9 +714,9 @@
.service-actions {
display: flex;
- gap: @space-1;
- margin-top: @space-2;
- padding-top: @space-2;
+ gap: $space-1;
+ margin-top: $space-2;
+ padding-top: $space-2;
border-top: 1px solid var(--border-color);
}
}
@@ -731,13 +731,13 @@
max-height: 500px;
overflow: auto;
background: var(--bg-code);
- border-radius: @radius-md;
+ border-radius: $radius-md;
padding: 1rem;
pre {
margin: 0;
- font-family: @font-mono;
- font-size: @font-size-sm;
+ font-family: $font-mono;
+ font-size: $font-size-sm;
line-height: 1.4;
color: var(--text-code);
white-space: pre-wrap;
diff --git a/frontend/src/styles/pages/_wordpress-pipeline.less b/frontend/src/styles/pages/_wordpress-pipeline.scss
similarity index 52%
rename from frontend/src/styles/pages/_wordpress-pipeline.less
rename to frontend/src/styles/pages/_wordpress-pipeline.scss
index 1e0bbe8b..172a0cc6 100644
--- a/frontend/src/styles/pages/_wordpress-pipeline.less
+++ b/frontend/src/styles/pages/_wordpress-pipeline.scss
@@ -12,24 +12,24 @@
// Projects Page
.wp-projects-page {
- padding: @space-4;
+ padding: $space-4;
.page-header {
- margin-bottom: @space-6;
+ margin-bottom: $space-6;
}
.page-header-content {
h1 {
- font-size: @font-size-xl;
- font-weight: @font-weight-bold;
- color: @text-primary;
- margin: 0 0 @space-1;
+ font-size: $font-size-xl;
+ font-weight: $font-weight-bold;
+ color: $text-primary;
+ margin: 0 0 $space-1;
}
}
.page-description {
- font-size: @font-size-sm;
- color: @text-tertiary;
+ font-size: $font-size-sm;
+ color: $text-tertiary;
margin: 0;
}
@@ -38,26 +38,26 @@
flex-direction: column;
align-items: center;
justify-content: center;
- padding: 60px @space-6;
- background: @bg-card;
- border-radius: @radius-xl;
+ padding: 60px $space-6;
+ background: $bg-card;
+ border-radius: $radius-xl;
text-align: center;
.empty-icon {
- color: @text-tertiary;
- margin-bottom: @space-4;
+ color: $text-tertiary;
+ margin-bottom: $space-4;
}
h2 {
- font-size: @font-size-lg;
- font-weight: @font-weight-semibold;
- color: @text-primary;
- margin: 0 0 @space-2;
+ font-size: $font-size-lg;
+ font-weight: $font-weight-semibold;
+ color: $text-primary;
+ margin: 0 0 $space-2;
}
p {
- font-size: @font-size-sm;
- color: @text-secondary;
+ font-size: $font-size-sm;
+ color: $text-secondary;
max-width: 460px;
margin: 0;
}
@@ -67,18 +67,18 @@
.wp-projects-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
- gap: @space-4;
+ gap: $space-4;
}
.wp-project-card {
- background: @bg-card;
- border: 1px solid @border-subtle;
- border-radius: @radius-lg;
+ background: $bg-card;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-lg;
cursor: pointer;
transition: all 0.15s ease;
&:hover {
- border-color: @border-hover;
+ border-color: $border-hover;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
}
@@ -86,9 +86,9 @@
.wp-project-card-header {
display: flex;
align-items: center;
- gap: @space-3;
- padding: @space-4;
- border-bottom: 1px solid @border-subtle;
+ gap: $space-3;
+ padding: $space-4;
+ border-bottom: 1px solid $border-subtle;
}
.wp-project-info {
@@ -97,26 +97,26 @@
}
.wp-project-name {
- font-size: @font-size-base;
- font-weight: @font-weight-semibold;
- color: @text-primary;
+ font-size: $font-size-base;
+ font-weight: $font-weight-semibold;
+ color: $text-primary;
margin: 0;
}
.wp-project-domain {
- font-size: @font-size-xs;
- color: @text-tertiary;
- font-family: @font-family-mono;
+ font-size: $font-size-xs;
+ color: $text-tertiary;
+ font-family: $font-family-mono;
}
.wp-project-card-body {
- padding: @space-4;
+ padding: $space-4;
}
.wp-project-meta {
display: flex;
flex-wrap: wrap;
- gap: @space-3;
+ gap: $space-3;
align-items: center;
}
@@ -124,33 +124,33 @@
display: flex;
align-items: center;
gap: 4px;
- font-size: @font-size-sm;
- color: @text-secondary;
+ font-size: $font-size-sm;
+ color: $text-secondary;
svg {
- color: @text-tertiary;
+ color: $text-tertiary;
}
}
.wp-project-env-badges {
display: flex;
- gap: @space-1;
+ gap: $space-1;
}
.wp-project-card-footer {
display: flex;
align-items: center;
justify-content: space-between;
- padding: @space-3 @space-4;
- border-top: 1px solid @border-subtle;
- background: @bg-tertiary;
- border-radius: 0 0 @radius-lg @radius-lg;
+ padding: $space-3 $space-4;
+ border-top: 1px solid $border-subtle;
+ background: $bg-tertiary;
+ border-radius: 0 0 $radius-lg $radius-lg;
}
.wp-project-card-cta {
- font-size: @font-size-sm;
- font-weight: @font-weight-medium;
- color: @color-primary;
+ font-size: $font-size-sm;
+ font-weight: $font-weight-medium;
+ color: $color-primary;
}
// ============================================
@@ -159,31 +159,31 @@
.wp-project-page {
.wp-icon {
- background: linear-gradient(135deg, #21759b 0%, #1a5f7f 100%) !important;
+ background: linear-gradient(135deg, $color-wordpress 0%, #1a5f7f 100%) !important;
}
}
// Pipeline Tab
.pipeline-tab {
- padding: @space-4 0;
+ padding: $space-4 0;
}
.pipeline-operation-banner {
display: flex;
align-items: center;
- gap: @space-3;
- padding: @space-3 @space-4;
- background: fade(@color-info, 10%);
- border: 1px solid fade(@color-info, 25%);
- border-radius: @radius-md;
- margin-bottom: @space-4;
- font-size: @font-size-sm;
- color: @color-info;
+ gap: $space-3;
+ padding: $space-3 $space-4;
+ background: fade($color-info, 10%);
+ border: 1px solid fade($color-info, 25%);
+ border-radius: $radius-md;
+ margin-bottom: $space-4;
+ font-size: $font-size-sm;
+ color: $color-info;
}
// Pipeline View
.pipeline-view {
- margin-bottom: @space-6;
+ margin-bottom: $space-6;
}
.pipeline-row {
@@ -191,23 +191,23 @@
align-items: stretch;
gap: 0;
overflow-x: auto;
- padding-bottom: @space-2;
+ padding-bottom: $space-2;
}
.pipeline-card {
flex: 1;
min-width: 220px;
max-width: 320px;
- background: @bg-card;
- border: 1px solid @border-subtle;
- border-radius: @radius-lg;
+ background: $bg-card;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-lg;
display: flex;
flex-direction: column;
position: relative;
&.production {
- border-color: fade(@color-danger, 30%);
- border-left: 3px solid @color-danger;
+ border-color: fade($color-danger, 30%);
+ border-left: 3px solid $color-danger;
}
&.locked {
@@ -216,7 +216,7 @@
&.empty {
border-style: dashed;
- border-color: @border-subtle;
+ border-color: $border-subtle;
display: flex;
align-items: center;
justify-content: center;
@@ -226,11 +226,11 @@
.pipeline-empty-content {
text-align: center;
- color: @text-tertiary;
+ color: $text-tertiary;
p {
- margin: @space-2 0 0;
- font-size: @font-size-sm;
+ margin: $space-2 0 0;
+ font-size: $font-size-sm;
}
}
@@ -238,23 +238,23 @@
display: flex;
justify-content: space-between;
align-items: center;
- padding: @space-3 @space-4;
- border-bottom: 1px solid @border-subtle;
+ padding: $space-3 $space-4;
+ border-bottom: 1px solid $border-subtle;
}
.env-status-badge-group {
display: flex;
align-items: center;
- gap: @space-2;
+ gap: $space-2;
}
.env-locked-badge {
display: flex;
align-items: center;
padding: 2px 4px;
- background: fade(@color-warning, 15%);
- color: @color-warning;
- border-radius: @radius-sm;
+ background: fade($color-warning, 15%);
+ color: $color-warning;
+ border-radius: $radius-sm;
}
.pipeline-card-menu-wrapper {
@@ -269,38 +269,38 @@
position: absolute;
right: 0;
top: 100%;
- background: @bg-elevated;
- border: 1px solid @border-subtle;
- border-radius: @radius-md;
+ background: $bg-elevated;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-md;
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
z-index: 100;
min-width: 140px;
- padding: @space-1;
+ padding: $space-1;
button {
display: flex;
align-items: center;
- gap: @space-2;
+ gap: $space-2;
width: 100%;
- padding: @space-2 @space-3;
+ padding: $space-2 $space-3;
border: none;
background: none;
- color: @text-secondary;
- font-size: @font-size-sm;
+ color: $text-secondary;
+ font-size: $font-size-sm;
cursor: pointer;
- border-radius: @radius-sm;
+ border-radius: $radius-sm;
text-align: left;
&:hover {
- background: @bg-hover;
- color: @text-primary;
+ background: $bg-hover;
+ color: $text-primary;
}
&.danger {
- color: @color-danger;
+ color: $color-danger;
&:hover {
- background: fade(@color-danger, 10%);
+ background: fade($color-danger, 10%);
}
}
}
@@ -308,22 +308,22 @@
.pipeline-card-body {
flex: 1;
- padding: @space-4;
+ padding: $space-4;
}
.pipeline-card-name {
- font-size: @font-size-base;
- font-weight: @font-weight-semibold;
- color: @text-primary;
- margin: 0 0 @space-2;
+ font-size: $font-size-base;
+ font-weight: $font-weight-semibold;
+ color: $text-primary;
+ margin: 0 0 $space-2;
}
.pipeline-card-domain {
display: block;
- font-size: @font-size-xs;
- font-family: @font-family-mono;
- color: @color-primary;
- margin-bottom: @space-2;
+ font-size: $font-size-xs;
+ font-family: $font-family-mono;
+ color: $color-primary;
+ margin-bottom: $space-2;
text-decoration: none;
&:hover {
@@ -334,32 +334,32 @@
.pipeline-card-meta {
display: flex;
flex-wrap: wrap;
- gap: @space-2;
+ gap: $space-2;
}
.pipeline-meta-item {
- font-size: @font-size-xs;
- color: @text-tertiary;
+ font-size: $font-size-xs;
+ color: $text-tertiary;
}
.pipeline-card-footer {
display: flex;
- gap: @space-2;
- padding: @space-2 @space-3;
- border-top: 1px solid @border-subtle;
- background: @bg-tertiary;
- border-radius: 0 0 @radius-lg @radius-lg;
+ gap: $space-2;
+ padding: $space-2 $space-3;
+ border-top: 1px solid $border-subtle;
+ background: $bg-tertiary;
+ border-radius: 0 0 $radius-lg $radius-lg;
}
.pipeline-card-lock-banner {
display: flex;
align-items: center;
- gap: @space-1;
- padding: @space-2 @space-3;
- background: fade(@color-warning, 10%);
- font-size: @font-size-xs;
- color: @color-warning;
- border-radius: 0 0 @radius-lg @radius-lg;
+ gap: $space-1;
+ padding: $space-2 $space-3;
+ background: fade($color-warning, 10%);
+ font-size: $font-size-xs;
+ color: $color-warning;
+ border-radius: 0 0 $radius-lg $radius-lg;
}
// Pipeline Arrows
@@ -368,7 +368,7 @@
align-items: center;
justify-content: center;
min-width: 80px;
- padding: 0 @space-2;
+ padding: 0 $space-2;
&.disabled {
opacity: 0.3;
@@ -381,18 +381,18 @@
flex-direction: column;
align-items: center;
gap: 4px;
- padding: @space-2 @space-3;
- border: 1px solid @border-subtle;
- background: @bg-card;
- border-radius: @radius-md;
+ padding: $space-2 $space-3;
+ border: 1px solid $border-subtle;
+ background: $bg-card;
+ border-radius: $radius-md;
cursor: pointer;
- color: @text-secondary;
+ color: $text-secondary;
transition: all 0.15s ease;
&:hover:not(:disabled) {
- border-color: @color-primary;
- color: @color-primary;
- background: fade(@accent-primary-raw, 5%);
+ border-color: $color-primary;
+ color: $color-primary;
+ background: fade($accent-primary-raw, 5%);
}
&:disabled {
@@ -403,7 +403,7 @@
.pipeline-arrow-label {
font-size: 10px;
- font-weight: @font-weight-medium;
+ font-weight: $font-weight-medium;
text-transform: uppercase;
letter-spacing: 0.5px;
}
@@ -412,7 +412,7 @@
.pipeline-sync-row {
display: flex;
gap: 0;
- margin-top: @space-2;
+ margin-top: $space-2;
.pipeline-sync-action {
flex: 1;
@@ -425,25 +425,25 @@
// Multidev Section
.pipeline-multidev-section {
- margin-top: @space-6;
- padding-top: @space-4;
- border-top: 1px solid @border-subtle;
+ margin-top: $space-6;
+ padding-top: $space-4;
+ border-top: 1px solid $border-subtle;
}
.pipeline-section-header {
display: flex;
justify-content: space-between;
align-items: center;
- margin-bottom: @space-3;
+ margin-bottom: $space-3;
}
.pipeline-section-title {
display: flex;
align-items: center;
- gap: @space-2;
- font-size: @font-size-sm;
- font-weight: @font-weight-semibold;
- color: @text-secondary;
+ gap: $space-2;
+ font-size: $font-size-sm;
+ font-weight: $font-weight-semibold;
+ color: $text-secondary;
text-transform: uppercase;
letter-spacing: 0.5px;
margin: 0;
@@ -456,11 +456,11 @@
min-width: 20px;
height: 20px;
padding: 0 6px;
- background: fade(@accent-primary-raw, 12%);
- color: @color-primary;
+ background: fade($accent-primary-raw, 12%);
+ color: $color-primary;
border-radius: 10px;
font-size: 11px;
- font-weight: @font-weight-bold;
+ font-weight: $font-weight-bold;
text-transform: none;
letter-spacing: 0;
}
@@ -468,7 +468,7 @@
.pipeline-multidev-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
- gap: @space-3;
+ gap: $space-3;
}
.pipeline-multidev-empty {
@@ -476,39 +476,39 @@
flex-direction: column;
align-items: center;
justify-content: center;
- padding: @space-8 @space-4;
- background: @bg-card;
- border: 1px dashed @border-subtle;
- border-radius: @radius-lg;
+ padding: $space-8 $space-4;
+ background: $bg-card;
+ border: 1px dashed $border-subtle;
+ border-radius: $radius-lg;
text-align: center;
> svg {
- color: @text-tertiary;
- margin-bottom: @space-3;
+ color: $text-tertiary;
+ margin-bottom: $space-3;
}
p {
- font-size: @font-size-base;
- font-weight: @font-weight-medium;
- color: @text-secondary;
- margin: 0 0 @space-1;
+ font-size: $font-size-base;
+ font-weight: $font-weight-medium;
+ color: $text-secondary;
+ margin: 0 0 $space-1;
}
> span {
- font-size: @font-size-sm;
- color: @text-tertiary;
- margin-bottom: @space-4;
+ font-size: $font-size-sm;
+ color: $text-tertiary;
+ margin-bottom: $space-4;
}
}
.multidev-card {
- background: @bg-card;
- border: 1px solid @border-subtle;
- border-radius: @radius-lg;
+ background: $bg-card;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-lg;
transition: border-color 0.15s ease;
&:hover {
- border-color: @border-hover;
+ border-color: $border-hover;
}
&.locked {
@@ -520,18 +520,18 @@
display: flex;
justify-content: space-between;
align-items: center;
- padding: @space-3 @space-4;
- border-bottom: 1px solid @border-subtle;
+ padding: $space-3 $space-4;
+ border-bottom: 1px solid $border-subtle;
}
.multidev-card-header-left {
display: flex;
align-items: center;
- gap: @space-2;
+ gap: $space-2;
}
.multidev-lock-icon {
- color: @color-warning;
+ color: $color-warning;
}
.multidev-card-menu-wrapper {
@@ -539,36 +539,36 @@
}
.multidev-card-body {
- padding: @space-3 @space-4;
+ padding: $space-3 $space-4;
}
.multidev-card-name {
- font-size: @font-size-sm;
- font-weight: @font-weight-semibold;
- color: @text-primary;
- margin: 0 0 @space-2;
+ font-size: $font-size-sm;
+ font-weight: $font-weight-semibold;
+ color: $text-primary;
+ margin: 0 0 $space-2;
}
.multidev-branch {
display: inline-flex;
align-items: center;
gap: 4px;
- font-size: @font-size-xs;
- font-family: @font-family-mono;
- color: @text-tertiary;
- background: @bg-tertiary;
+ font-size: $font-size-xs;
+ font-family: $font-family-mono;
+ color: $text-tertiary;
+ background: $bg-tertiary;
padding: 2px 8px;
- border-radius: @radius-sm;
- margin-bottom: @space-2;
+ border-radius: $radius-sm;
+ margin-bottom: $space-2;
}
.multidev-domain {
display: block;
- font-size: @font-size-xs;
- font-family: @font-family-mono;
- color: @color-primary;
+ font-size: $font-size-xs;
+ font-family: $font-family-mono;
+ color: $color-primary;
text-decoration: none;
- margin-bottom: @space-2;
+ margin-bottom: $space-2;
&:hover {
text-decoration: underline;
@@ -578,26 +578,26 @@
.multidev-card-meta {
display: flex;
flex-wrap: wrap;
- gap: @space-2;
+ gap: $space-2;
}
.multidev-meta-item {
- font-size: @font-size-xs;
- color: @text-tertiary;
+ font-size: $font-size-xs;
+ color: $text-tertiary;
}
.multidev-card-footer {
display: flex;
- gap: @space-2;
- padding: @space-2 @space-3;
- border-top: 1px solid @border-subtle;
- background: @bg-tertiary;
- border-radius: 0 0 @radius-lg @radius-lg;
+ gap: $space-2;
+ padding: $space-2 $space-3;
+ border-top: 1px solid $border-subtle;
+ background: $bg-tertiary;
+ border-radius: 0 0 $radius-lg $radius-lg;
}
.wp-env-badge.env-multidev {
- background: fade(@accent-primary-raw, 12%);
- color: @color-primary;
+ background: fade($accent-primary-raw, 12%);
+ color: $color-primary;
}
// ============================================
@@ -607,52 +607,52 @@
.branch-selected {
display: flex;
align-items: center;
- gap: @space-2;
- padding: @space-3;
- background: fade(@accent-primary-raw, 8%);
- border: 1px solid fade(@accent-primary-raw, 25%);
- border-radius: @radius-md;
+ gap: $space-2;
+ padding: $space-3;
+ background: fade($accent-primary-raw, 8%);
+ border: 1px solid fade($accent-primary-raw, 25%);
+ border-radius: $radius-md;
svg {
- color: @color-primary;
+ color: $color-primary;
flex-shrink: 0;
}
}
.branch-selected-name {
flex: 1;
- font-family: @font-family-mono;
- font-size: @font-size-sm;
- font-weight: @font-weight-medium;
- color: @text-primary;
+ font-family: $font-family-mono;
+ font-size: $font-size-sm;
+ font-weight: $font-weight-medium;
+ color: $text-primary;
}
.branch-picker-loading {
display: flex;
align-items: center;
- gap: @space-2;
- padding: @space-4;
+ gap: $space-2;
+ padding: $space-4;
justify-content: center;
- color: @text-tertiary;
- font-size: @font-size-sm;
+ color: $text-tertiary;
+ font-size: $font-size-sm;
}
.branch-picker {
- border: 1px solid @border-subtle;
- border-radius: @radius-md;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-md;
overflow: hidden;
}
.branch-picker-search {
display: flex;
align-items: center;
- gap: @space-2;
- padding: @space-2 @space-3;
- border-bottom: 1px solid @border-subtle;
- background: @bg-tertiary;
+ gap: $space-2;
+ padding: $space-2 $space-3;
+ border-bottom: 1px solid $border-subtle;
+ background: $bg-tertiary;
svg {
- color: @text-tertiary;
+ color: $text-tertiary;
flex-shrink: 0;
}
@@ -660,13 +660,13 @@
flex: 1;
border: none;
background: none;
- font-size: @font-size-sm;
- color: @text-primary;
+ font-size: $font-size-sm;
+ color: $text-primary;
outline: none;
padding: 0;
&::placeholder {
- color: @text-tertiary;
+ color: $text-tertiary;
}
}
}
@@ -681,10 +681,10 @@
flex-direction: column;
gap: 2px;
width: 100%;
- padding: @space-2 @space-3;
+ padding: $space-2 $space-3;
border: none;
- border-bottom: 1px solid @border-subtle;
- background: @bg-card;
+ border-bottom: 1px solid $border-subtle;
+ background: $bg-card;
cursor: pointer;
text-align: left;
transition: background 0.1s ease;
@@ -694,7 +694,7 @@
}
&:hover:not(:disabled) {
- background: @bg-hover;
+ background: $bg-hover;
}
&:disabled {
@@ -703,57 +703,57 @@
}
&.has-env {
- background: fade(@text-tertiary-raw, 3%);
+ background: fade($text-tertiary-raw, 3%);
}
}
.branch-picker-item-main {
display: flex;
align-items: center;
- gap: @space-2;
- font-size: @font-size-sm;
- color: @text-primary;
+ gap: $space-2;
+ font-size: $font-size-sm;
+ color: $text-primary;
svg {
- color: @text-tertiary;
+ color: $text-tertiary;
flex-shrink: 0;
}
}
.branch-name {
- font-family: @font-family-mono;
- font-weight: @font-weight-medium;
+ font-family: $font-family-mono;
+ font-weight: $font-weight-medium;
}
.branch-tag {
font-size: 10px;
- font-weight: @font-weight-medium;
+ font-weight: $font-weight-medium;
padding: 1px 6px;
- border-radius: @radius-sm;
- background: fade(@text-tertiary-raw, 10%);
- color: @text-tertiary;
+ border-radius: $radius-sm;
+ background: fade($text-tertiary-raw, 10%);
+ color: $text-tertiary;
&.env {
- background: fade(@accent-primary-raw, 10%);
- color: @color-primary;
+ background: fade($accent-primary-raw, 10%);
+ color: $color-primary;
}
}
.branch-picker-item-meta {
display: flex;
align-items: center;
- gap: @space-2;
+ gap: $space-2;
padding-left: 20px;
.branch-sha {
- font-family: @font-family-mono;
+ font-family: $font-family-mono;
font-size: 11px;
- color: @text-tertiary;
+ color: $text-tertiary;
}
.branch-msg {
font-size: 11px;
- color: @text-tertiary;
+ color: $text-tertiary;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
@@ -761,18 +761,18 @@
}
.branch-picker-empty {
- padding: @space-4;
+ padding: $space-4;
text-align: center;
- font-size: @font-size-sm;
- color: @text-tertiary;
+ font-size: $font-size-sm;
+ color: $text-tertiary;
}
.branch-picker-custom {
width: 100%;
- border-top: 1px solid @border-subtle;
- border-radius: 0 0 @radius-md @radius-md;
+ border-top: 1px solid $border-subtle;
+ border-radius: 0 0 $radius-md $radius-md;
justify-content: center;
- color: @color-primary !important;
+ color: $color-primary !important;
}
// ============================================
@@ -784,11 +784,11 @@
display: flex;
align-items: center;
justify-content: center;
- gap: @space-3;
- padding: @space-4;
- background: @bg-tertiary;
- border-radius: @radius-md;
- margin-bottom: @space-4;
+ gap: $space-3;
+ padding: $space-4;
+ background: $bg-tertiary;
+ border-radius: $radius-md;
+ margin-bottom: $space-4;
}
.promote-env-pill {
@@ -796,36 +796,36 @@
flex-direction: column;
align-items: center;
gap: 4px;
- padding: @space-3 @space-4;
- background: @bg-card;
- border: 1px solid @border-subtle;
- border-radius: @radius-md;
+ padding: $space-3 $space-4;
+ background: $bg-card;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-md;
min-width: 120px;
.promote-env-type {
- font-size: @font-size-xs;
- font-weight: @font-weight-bold;
+ font-size: $font-size-xs;
+ font-weight: $font-weight-bold;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.promote-env-name {
- font-size: @font-size-sm;
- color: @text-secondary;
+ font-size: $font-size-sm;
+ color: $text-secondary;
max-width: 150px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
- &.production .promote-env-type { color: @color-danger; }
- &.staging .promote-env-type { color: @color-warning; }
- &.development .promote-env-type { color: @color-info; }
- &.multidev .promote-env-type { color: @color-primary; }
+ &.production .promote-env-type { color: $color-danger; }
+ &.staging .promote-env-type { color: $color-warning; }
+ &.development .promote-env-type { color: $color-info; }
+ &.multidev .promote-env-type { color: $color-primary; }
}
.promote-arrow {
- color: @text-tertiary;
+ color: $text-tertiary;
flex-shrink: 0;
}
@@ -833,27 +833,27 @@
.sync-warning {
display: flex;
align-items: flex-start;
- gap: @space-3;
- padding: @space-3 @space-4;
- background: fade(@color-warning, 8%);
- border: 1px solid fade(@color-warning, 20%);
- border-radius: @radius-md;
- margin-top: @space-4;
- font-size: @font-size-sm;
- color: @text-secondary;
+ gap: $space-3;
+ padding: $space-3 $space-4;
+ background: fade($color-warning, 8%);
+ border: 1px solid fade($color-warning, 20%);
+ border-radius: $radius-md;
+ margin-top: $space-4;
+ font-size: $font-size-sm;
+ color: $text-secondary;
> svg {
- color: @color-warning;
+ color: $color-warning;
flex-shrink: 0;
margin-top: 2px;
}
strong {
- color: @text-primary;
+ color: $text-primary;
}
p {
- margin: @space-1 0 0;
+ margin: $space-1 0 0;
}
}
@@ -861,27 +861,27 @@
.radio-group {
display: flex;
flex-direction: column;
- gap: @space-2;
+ gap: $space-2;
}
.radio-label {
display: flex;
align-items: flex-start;
- gap: @space-3;
- padding: @space-3;
- border: 1px solid @border-subtle;
- border-radius: @radius-md;
+ gap: $space-3;
+ padding: $space-3;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-md;
cursor: pointer;
transition: all 0.15s ease;
&:hover {
- border-color: @border-hover;
- background: @bg-hover;
+ border-color: $border-hover;
+ background: $bg-hover;
}
&:has(input:checked) {
- border-color: @color-primary;
- background: fade(@accent-primary-raw, 5%);
+ border-color: $color-primary;
+ background: fade($accent-primary-raw, 5%);
}
input[type="radio"] {
@@ -896,20 +896,20 @@
gap: 2px;
strong {
- font-size: @font-size-sm;
- color: @text-primary;
+ font-size: $font-size-sm;
+ color: $text-primary;
}
span {
- font-size: @font-size-xs;
- color: @text-tertiary;
+ font-size: $font-size-xs;
+ color: $text-tertiary;
}
}
.checkbox-group {
display: flex;
flex-direction: column;
- gap: @space-2;
+ gap: $space-2;
}
// ============================================
@@ -920,36 +920,36 @@
display: flex;
flex-direction: column;
gap: 1px;
- background: @border-subtle;
- border: 1px solid @border-subtle;
- border-radius: @radius-lg;
+ background: $border-subtle;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-lg;
overflow: hidden;
&.compact .activity-item {
- padding: @space-2 @space-3;
+ padding: $space-2 $space-3;
}
}
.activity-feed-empty {
- padding: @space-6;
+ padding: $space-6;
text-align: center;
- color: @text-tertiary;
- font-size: @font-size-sm;
+ color: $text-tertiary;
+ font-size: $font-size-sm;
}
.activity-item {
display: flex;
align-items: center;
- gap: @space-3;
- padding: @space-3 @space-4;
- background: @bg-card;
+ gap: $space-3;
+ padding: $space-3 $space-4;
+ background: $bg-card;
}
.activity-item-skeleton {
display: flex;
align-items: center;
- gap: @space-3;
- padding: @space-3 @space-4;
+ gap: $space-3;
+ padding: $space-3 $space-4;
}
.activity-icon {
@@ -962,28 +962,28 @@
flex-shrink: 0;
&.success {
- background: fade(@color-success, 12%);
- color: @color-success;
+ background: fade($color-success, 12%);
+ color: $color-success;
}
&.danger {
- background: fade(@color-danger, 12%);
- color: @color-danger;
+ background: fade($color-danger, 12%);
+ color: $color-danger;
}
&.warning {
- background: fade(@color-warning, 12%);
- color: @color-warning;
+ background: fade($color-warning, 12%);
+ color: $color-warning;
}
&.info {
- background: fade(@color-info, 12%);
- color: @color-info;
+ background: fade($color-info, 12%);
+ color: $color-info;
}
&.primary {
- background: fade(@accent-primary-raw, 12%);
- color: @color-primary;
+ background: fade($accent-primary-raw, 12%);
+ color: $color-primary;
}
&.default {
- background: fade(@text-tertiary-raw, 12%);
- color: @text-tertiary;
+ background: fade($text-tertiary-raw, 12%);
+ color: $text-tertiary;
}
}
@@ -993,8 +993,8 @@
}
.activity-description {
- font-size: @font-size-sm;
- color: @text-primary;
+ font-size: $font-size-sm;
+ color: $text-primary;
display: block;
white-space: nowrap;
overflow: hidden;
@@ -1002,8 +1002,8 @@
}
.activity-error {
- font-size: @font-size-xs;
- color: @color-danger;
+ font-size: $font-size-xs;
+ color: $color-danger;
display: block;
margin-top: 2px;
}
@@ -1011,36 +1011,36 @@
.activity-meta {
display: flex;
align-items: center;
- gap: @space-2;
+ gap: $space-2;
flex-shrink: 0;
}
.activity-time {
- font-size: @font-size-xs;
- color: @text-tertiary;
+ font-size: $font-size-xs;
+ color: $text-tertiary;
white-space: nowrap;
}
.activity-status-badge {
font-size: 10px;
- font-weight: @font-weight-medium;
+ font-weight: $font-weight-medium;
padding: 2px 6px;
- border-radius: @radius-sm;
+ border-radius: $radius-sm;
&.failed {
- background: fade(@color-danger, 12%);
- color: @color-danger;
+ background: fade($color-danger, 12%);
+ color: $color-danger;
}
&.running {
- background: fade(@color-info, 12%);
- color: @color-info;
+ background: fade($color-info, 12%);
+ color: $color-info;
}
}
.activity-load-more {
- background: @bg-card;
- padding: @space-3;
+ background: $bg-card;
+ padding: $space-3;
text-align: center;
width: 100%;
justify-content: center;
@@ -1048,7 +1048,7 @@
// Pipeline Activity Preview
.pipeline-activity-preview {
- margin-top: @space-6;
+ margin-top: $space-6;
}
// ============================================
@@ -1064,10 +1064,10 @@
height: 400px;
z-index: 200;
box-shadow: -4px -4px 24px rgba(0, 0, 0, 0.3);
- border-radius: @radius-lg @radius-lg 0 0;
+ border-radius: $radius-lg $radius-lg 0 0;
overflow: hidden;
- @media (max-width: 768px) {
+ @media (max-width: $breakpoint-md) {
width: 100%;
}
}
@@ -1076,66 +1076,66 @@
display: flex;
flex-direction: column;
height: 100%;
- background: @bg-body;
- border: 1px solid @border-subtle;
- border-radius: @radius-lg @radius-lg 0 0;
+ background: $bg-body;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-lg $radius-lg 0 0;
}
.container-logs-header {
display: flex;
align-items: center;
justify-content: space-between;
- padding: @space-3 @space-4;
- border-bottom: 1px solid @border-subtle;
- background: @bg-elevated;
+ padding: $space-3 $space-4;
+ border-bottom: 1px solid $border-subtle;
+ background: $bg-elevated;
}
.container-logs-title {
display: flex;
align-items: center;
- gap: @space-2;
- font-size: @font-size-sm;
- font-weight: @font-weight-semibold;
- color: @text-primary;
+ gap: $space-2;
+ font-size: $font-size-sm;
+ font-weight: $font-weight-semibold;
+ color: $text-primary;
}
.container-logs-controls {
display: flex;
align-items: center;
- gap: @space-2;
+ gap: $space-2;
}
.logs-service-select,
.logs-lines-select {
padding: 4px 8px;
- font-size: @font-size-xs;
- border: 1px solid @border-subtle;
- border-radius: @radius-sm;
- background: @bg-card;
- color: @text-primary;
+ font-size: $font-size-xs;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-sm;
+ background: $bg-card;
+ color: $text-primary;
}
.container-logs-body {
flex: 1;
overflow-y: auto;
- background: @bg-body;
+ background: $bg-body;
}
.logs-loading,
.logs-empty {
- padding: @space-6;
+ padding: $space-6;
text-align: center;
- color: @text-tertiary;
- font-size: @font-size-sm;
+ color: $text-tertiary;
+ font-size: $font-size-sm;
}
.logs-content {
margin: 0;
- padding: @space-3;
- font-family: @font-family-mono;
+ padding: $space-3;
+ font-family: $font-family-mono;
font-size: 12px;
line-height: 1.6;
- color: @text-secondary;
+ color: $text-secondary;
white-space: pre-wrap;
word-break: break-all;
}
@@ -1144,7 +1144,7 @@
padding: 1px 0;
&:hover {
- background: fade(@text-primary-raw, 5%);
+ background: fade($text-primary-raw, 5%);
}
}
@@ -1156,11 +1156,11 @@
display: flex;
align-items: center;
justify-content: center;
- gap: @space-3;
- padding: @space-4;
- background: @bg-tertiary;
- margin: 0 -@space-5;
- padding: @space-4 @space-5;
+ gap: $space-3;
+ padding: $space-4;
+ background: $bg-tertiary;
+ margin: 0 -$space-5;
+ padding: $space-4 $space-5;
}
.compare-env-pill {
@@ -1168,41 +1168,41 @@
flex-direction: column;
align-items: center;
gap: 4px;
- padding: @space-3 @space-4;
- background: @bg-card;
- border: 1px solid @border-subtle;
- border-radius: @radius-md;
+ padding: $space-3 $space-4;
+ background: $bg-card;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-md;
min-width: 120px;
.compare-env-type {
- font-size: @font-size-xs;
- font-weight: @font-weight-bold;
+ font-size: $font-size-xs;
+ font-weight: $font-weight-bold;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.compare-env-name {
- font-size: @font-size-sm;
- color: @text-secondary;
+ font-size: $font-size-sm;
+ color: $text-secondary;
max-width: 150px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
- &.production .compare-env-type { color: @color-danger; }
- &.staging .compare-env-type { color: @color-warning; }
- &.development .compare-env-type { color: @color-info; }
- &.multidev .compare-env-type { color: @color-primary; }
+ &.production .compare-env-type { color: $color-danger; }
+ &.staging .compare-env-type { color: $color-warning; }
+ &.development .compare-env-type { color: $color-info; }
+ &.multidev .compare-env-type { color: $color-primary; }
}
.compare-vs-icon {
- color: @text-tertiary;
+ color: $text-tertiary;
flex-shrink: 0;
}
.compare-body {
- padding: @space-4 0;
+ padding: $space-4 0;
max-height: 60vh;
overflow-y: auto;
}
@@ -1211,24 +1211,24 @@
display: flex;
flex-direction: column;
align-items: center;
- gap: @space-3;
- padding: @space-8;
- color: @text-tertiary;
- font-size: @font-size-sm;
+ gap: $space-3;
+ padding: $space-8;
+ color: $text-tertiary;
+ font-size: $font-size-sm;
}
.compare-error {
text-align: center;
- padding: @space-6;
+ padding: $space-6;
p {
- color: @color-danger;
- margin: 0 0 @space-3;
+ color: $color-danger;
+ margin: 0 0 $space-3;
}
}
.compare-section {
- margin-bottom: @space-4;
+ margin-bottom: $space-4;
&:last-child {
margin-bottom: 0;
@@ -1239,37 +1239,37 @@
display: flex;
align-items: center;
justify-content: space-between;
- padding: @space-2 @space-3;
- background: @bg-tertiary;
- border-radius: @radius-md;
- margin-bottom: @space-2;
+ padding: $space-2 $space-3;
+ background: $bg-tertiary;
+ border-radius: $radius-md;
+ margin-bottom: $space-2;
h4 {
margin: 0;
- font-size: @font-size-sm;
- font-weight: @font-weight-semibold;
- color: @text-primary;
+ font-size: $font-size-sm;
+ font-weight: $font-weight-semibold;
+ color: $text-primary;
}
}
.compare-section-summary {
- font-size: @font-size-xs;
- color: @text-tertiary;
+ font-size: $font-size-xs;
+ color: $text-tertiary;
}
.compare-table {
- border: 1px solid @border-subtle;
- border-radius: @radius-md;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-md;
overflow: hidden;
}
.compare-row {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
- gap: @space-2;
- padding: @space-2 @space-3;
- border-bottom: 1px solid @border-subtle;
- font-size: @font-size-sm;
+ gap: $space-2;
+ padding: $space-2 $space-3;
+ border-bottom: 1px solid $border-subtle;
+ font-size: $font-size-sm;
align-items: center;
&:last-child {
@@ -1277,25 +1277,25 @@
}
&.match {
- .compare-row-icon { color: @color-success; }
+ .compare-row-icon { color: $color-success; }
}
&.different {
- background: fade(@color-danger, 5%);
- .compare-row-icon { color: @color-danger; }
+ background: fade($color-danger, 5%);
+ .compare-row-icon { color: $color-danger; }
.compare-row-value-a,
.compare-row-value-b {
- font-weight: @font-weight-medium;
+ font-weight: $font-weight-medium;
}
}
&.only-a {
- .compare-row-icon { color: @color-warning; }
+ .compare-row-icon { color: $color-warning; }
.compare-row-value-b { opacity: 0.4; }
}
&.only-b {
- .compare-row-icon { color: @color-warning; }
+ .compare-row-icon { color: $color-warning; }
.compare-row-value-a { opacity: 0.4; }
}
}
@@ -1303,9 +1303,9 @@
.compare-row-label {
display: flex;
align-items: center;
- gap: @space-2;
- font-weight: @font-weight-medium;
- color: @text-primary;
+ gap: $space-2;
+ font-weight: $font-weight-medium;
+ color: $text-primary;
}
.compare-row-icon {
@@ -1314,41 +1314,41 @@
.compare-row-value-a,
.compare-row-value-b {
- font-size: @font-size-xs;
- color: @text-secondary;
- font-family: @font-family-mono;
+ font-size: $font-size-xs;
+ color: $text-secondary;
+ font-family: $font-family-mono;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.compare-na {
- color: @text-tertiary;
+ color: $text-tertiary;
font-style: italic;
}
.compare-empty-row {
- padding: @space-4;
+ padding: $space-4;
text-align: center;
- font-size: @font-size-sm;
- color: @text-tertiary;
+ font-size: $font-size-sm;
+ color: $text-tertiary;
}
// Pipeline Compare Row
.pipeline-compare-row {
display: flex;
- gap: @space-3;
+ gap: $space-3;
justify-content: center;
- margin-top: @space-2;
- padding: @space-2 0;
+ margin-top: $space-2;
+ padding: $space-2 0;
}
.pipeline-compare-btn {
- color: @text-tertiary !important;
- font-size: @font-size-xs !important;
+ color: $text-tertiary !important;
+ font-size: $font-size-xs !important;
&:hover {
- color: @color-primary !important;
+ color: $color-primary !important;
}
}
@@ -1357,7 +1357,7 @@
// ============================================
.sanitization-profiles-body {
- padding: @space-4 0;
+ padding: $space-4 0;
max-height: 60vh;
overflow-y: auto;
}
@@ -1366,30 +1366,30 @@
display: flex;
align-items: center;
justify-content: center;
- padding: @space-8;
+ padding: $space-8;
}
.sanitization-profile-list {
display: flex;
flex-direction: column;
- gap: @space-3;
- margin-bottom: @space-4;
+ gap: $space-3;
+ margin-bottom: $space-4;
}
.sanitization-profile-card {
- background: @bg-card;
- border: 1px solid @border-subtle;
- border-radius: @radius-md;
- padding: @space-3 @space-4;
+ background: $bg-card;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-md;
+ padding: $space-3 $space-4;
transition: border-color 0.15s ease;
&:hover {
- border-color: @border-hover;
+ border-color: $border-hover;
}
&.default {
- border-color: fade(@accent-primary-raw, 30%);
- border-left: 3px solid @color-primary;
+ border-color: fade($accent-primary-raw, 30%);
+ border-left: 3px solid $color-primary;
}
}
@@ -1397,48 +1397,48 @@
display: flex;
align-items: center;
justify-content: space-between;
- margin-bottom: @space-2;
+ margin-bottom: $space-2;
}
.sanitization-profile-card-title {
display: flex;
align-items: center;
- gap: @space-2;
+ gap: $space-2;
h5 {
margin: 0;
- font-size: @font-size-sm;
- font-weight: @font-weight-semibold;
- color: @text-primary;
+ font-size: $font-size-sm;
+ font-weight: $font-weight-semibold;
+ color: $text-primary;
}
}
.sanitization-tag {
font-size: 10px;
- font-weight: @font-weight-medium;
+ font-weight: $font-weight-medium;
padding: 1px 6px;
- border-radius: @radius-sm;
+ border-radius: $radius-sm;
&.builtin {
- background: fade(@text-tertiary-raw, 10%);
- color: @text-tertiary;
+ background: fade($text-tertiary-raw, 10%);
+ color: $text-tertiary;
}
&.default {
- background: fade(@accent-primary-raw, 12%);
- color: @color-primary;
+ background: fade($accent-primary-raw, 12%);
+ color: $color-primary;
}
}
.sanitization-profile-card-actions {
display: flex;
- gap: @space-1;
+ gap: $space-1;
}
.sanitization-profile-desc {
- font-size: @font-size-xs;
- color: @text-secondary;
- margin: 0 0 @space-2;
+ font-size: $font-size-xs;
+ color: $text-secondary;
+ margin: 0 0 $space-2;
}
.sanitization-rule-tags {
@@ -1450,9 +1450,9 @@
.sanitization-rule-tag {
font-size: 10px;
padding: 2px 8px;
- background: @bg-tertiary;
- border-radius: @radius-sm;
- color: @text-tertiary;
+ background: $bg-tertiary;
+ border-radius: $radius-sm;
+ color: $text-tertiary;
&.empty {
font-style: italic;
@@ -1466,24 +1466,24 @@
// Profile Editor
.sanitization-editor {
- background: @bg-tertiary;
- border: 1px solid @border-subtle;
- border-radius: @radius-md;
- padding: @space-4;
- margin-top: @space-3;
+ background: $bg-tertiary;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-md;
+ padding: $space-4;
+ margin-top: $space-3;
h4 {
- margin: 0 0 @space-3;
- font-size: @font-size-sm;
- font-weight: @font-weight-semibold;
- color: @text-primary;
+ margin: 0 0 $space-3;
+ font-size: $font-size-sm;
+ font-weight: $font-weight-semibold;
+ color: $text-primary;
}
.form-group {
- margin-bottom: @space-3;
+ margin-bottom: $space-3;
&:last-of-type {
- margin-bottom: @space-4;
+ margin-bottom: $space-4;
}
}
}
@@ -1491,9 +1491,9 @@
.sanitization-editor-actions {
display: flex;
justify-content: flex-end;
- gap: @space-2;
- padding-top: @space-3;
- border-top: 1px solid @border-subtle;
+ gap: $space-2;
+ padding-top: $space-3;
+ border-top: 1px solid $border-subtle;
}
// ============================================
@@ -1505,14 +1505,14 @@
// ============================================
.pipeline-card-checkbox {
- margin-right: @space-1;
+ margin-right: $space-1;
accent-color: var(--color-primary, #3b82f6);
}
.pipeline-card-menu-divider {
height: 1px;
- background: @border-subtle;
- margin: @space-1 0;
+ background: $border-subtle;
+ margin: $space-1 0;
}
// ============================================
@@ -1524,24 +1524,24 @@
}
.resource-limits-env-name {
- font-size: @font-size-sm;
- font-weight: @font-weight-semibold;
- color: @text-primary;
- padding-bottom: @space-3;
- border-bottom: 1px solid @border-subtle;
- margin-bottom: @space-3;
+ font-size: $font-size-sm;
+ font-weight: $font-weight-semibold;
+ color: $text-primary;
+ padding-bottom: $space-3;
+ border-bottom: 1px solid $border-subtle;
+ margin-bottom: $space-3;
}
.resource-limits-presets {
display: flex;
align-items: center;
- gap: @space-2;
- margin-bottom: @space-4;
+ gap: $space-2;
+ margin-bottom: $space-4;
}
.resource-limits-presets-label {
- font-size: @font-size-sm;
- color: @text-secondary;
+ font-size: $font-size-sm;
+ color: $text-secondary;
}
.resource-preset-btn {
@@ -1549,16 +1549,16 @@
}
.resource-limits-section {
- margin-bottom: @space-4;
+ margin-bottom: $space-4;
h4 {
display: flex;
align-items: center;
- gap: @space-2;
- font-size: @font-size-sm;
- font-weight: @font-weight-semibold;
- color: @text-secondary;
- margin: 0 0 @space-3;
+ gap: $space-2;
+ font-size: $font-size-sm;
+ font-weight: $font-weight-semibold;
+ color: $text-secondary;
+ margin: 0 0 $space-3;
}
}
@@ -1566,36 +1566,36 @@
display: flex;
align-items: center;
justify-content: space-between;
- padding: @space-2 0;
+ padding: $space-2 0;
label {
- font-size: @font-size-sm;
- color: @text-primary;
+ font-size: $font-size-sm;
+ color: $text-primary;
}
select {
width: 120px;
- padding: @space-1 @space-2;
- font-size: @font-size-sm;
- border: 1px solid @border-subtle;
- border-radius: @radius-sm;
- background: @bg-card;
- color: @text-primary;
+ padding: $space-1 $space-2;
+ font-size: $font-size-sm;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-sm;
+ background: $bg-card;
+ color: $text-primary;
}
}
.resource-limits-warning {
display: flex;
align-items: center;
- gap: @space-2;
- padding: @space-3;
- background: fade(@color-warning, 8%);
- border: 1px solid fade(@color-warning, 20%);
- border-radius: @radius-md;
- margin-top: @space-3;
- margin-bottom: @space-3;
- font-size: @font-size-xs;
- color: @color-warning;
+ gap: $space-2;
+ padding: $space-3;
+ background: fade($color-warning, 8%);
+ border: 1px solid fade($color-warning, 20%);
+ border-radius: $radius-md;
+ margin-top: $space-3;
+ margin-bottom: $space-3;
+ font-size: $font-size-xs;
+ color: $color-warning;
}
// ============================================
@@ -1607,30 +1607,30 @@
}
.basic-auth-body {
- padding: @space-4 0;
+ padding: $space-4 0;
}
.basic-auth-env-name {
- font-size: @font-size-sm;
- font-weight: @font-weight-semibold;
- color: @text-primary;
- padding-bottom: @space-3;
- border-bottom: 1px solid @border-subtle;
- margin-bottom: @space-3;
+ font-size: $font-size-sm;
+ font-weight: $font-weight-semibold;
+ color: $text-primary;
+ padding-bottom: $space-3;
+ border-bottom: 1px solid $border-subtle;
+ margin-bottom: $space-3;
}
.basic-auth-loading {
display: flex;
align-items: center;
- gap: @space-2;
+ gap: $space-2;
justify-content: center;
- padding: @space-4;
- color: @text-tertiary;
- font-size: @font-size-sm;
+ padding: $space-4;
+ color: $text-tertiary;
+ font-size: $font-size-sm;
}
.basic-auth-toggle {
- margin-bottom: @space-4;
+ margin-bottom: $space-4;
}
.basic-auth-toggle-label {
@@ -1640,16 +1640,16 @@
cursor: pointer;
span {
- font-size: @font-size-sm;
- font-weight: @font-weight-medium;
- color: @text-primary;
+ font-size: $font-size-sm;
+ font-weight: $font-weight-medium;
+ color: $text-primary;
}
}
.basic-auth-description {
- font-size: @font-size-xs;
- color: @text-tertiary;
- margin: @space-1 0 0;
+ font-size: $font-size-xs;
+ color: $text-tertiary;
+ margin: $space-1 0 0;
}
.toggle-switch {
@@ -1658,7 +1658,7 @@
height: 24px;
border: none;
border-radius: 12px;
- background: @bg-tertiary;
+ background: $bg-tertiary;
cursor: pointer;
transition: background 0.2s ease;
padding: 0;
@@ -1684,38 +1684,38 @@
}
.basic-auth-current {
- padding: @space-3;
- background: @bg-tertiary;
- border-radius: @radius-md;
+ padding: $space-3;
+ background: $bg-tertiary;
+ border-radius: $radius-md;
}
.basic-auth-credentials {
display: flex;
flex-direction: column;
- gap: @space-3;
+ gap: $space-3;
}
.basic-auth-credential-warning {
display: flex;
align-items: center;
- gap: @space-2;
- padding: @space-2 @space-3;
- background: fade(@color-warning, 10%);
- border: 1px solid fade(@color-warning, 20%);
- border-radius: @radius-md;
- font-size: @font-size-xs;
- color: @color-warning;
+ gap: $space-2;
+ padding: $space-2 $space-3;
+ background: fade($color-warning, 10%);
+ border: 1px solid fade($color-warning, 20%);
+ border-radius: $radius-md;
+ font-size: $font-size-xs;
+ color: $color-warning;
}
.basic-auth-field {
display: flex;
flex-direction: column;
- gap: @space-1;
+ gap: $space-1;
label {
- font-size: @font-size-xs;
- font-weight: @font-weight-medium;
- color: @text-tertiary;
+ font-size: $font-size-xs;
+ font-weight: $font-weight-medium;
+ color: $text-tertiary;
text-transform: uppercase;
letter-spacing: 0.5px;
}
@@ -1724,23 +1724,23 @@
.basic-auth-value {
display: flex;
align-items: center;
- gap: @space-2;
- padding: @space-2 @space-3;
- background: @bg-tertiary;
- border-radius: @radius-sm;
+ gap: $space-2;
+ padding: $space-2 $space-3;
+ background: $bg-tertiary;
+ border-radius: $radius-sm;
code {
flex: 1;
- font-family: @font-family-mono;
- font-size: @font-size-sm;
- color: @text-primary;
+ font-family: $font-family-mono;
+ font-size: $font-size-sm;
+ color: $text-primary;
}
}
.basic-auth-hint {
- font-size: @font-size-xs;
- color: @text-tertiary;
- margin-top: @space-2;
+ font-size: $font-size-xs;
+ color: $text-tertiary;
+ margin-top: $space-2;
}
// ============================================
@@ -1757,14 +1757,14 @@
.wpcli-quick-actions {
display: flex;
flex-wrap: wrap;
- gap: @space-1;
- padding: @space-2 @space-4;
- border-bottom: 1px solid @border-subtle;
- background: @bg-tertiary;
+ gap: $space-1;
+ padding: $space-2 $space-4;
+ border-bottom: 1px solid $border-subtle;
+ background: $bg-tertiary;
}
.wpcli-history {
- border-bottom: 1px solid @border-subtle;
+ border-bottom: 1px solid $border-subtle;
max-height: 200px;
overflow-y: auto;
}
@@ -1772,50 +1772,50 @@
.wpcli-history-item {
display: block;
width: 100%;
- padding: @space-2 @space-4;
+ padding: $space-2 $space-4;
border: none;
background: none;
text-align: left;
cursor: pointer;
- border-bottom: 1px solid @border-subtle;
+ border-bottom: 1px solid $border-subtle;
&:last-child {
border-bottom: none;
}
&:hover {
- background: @bg-hover;
+ background: $bg-hover;
}
code {
- font-family: @font-family-mono;
- font-size: @font-size-xs;
- color: @text-primary;
+ font-family: $font-family-mono;
+ font-size: $font-size-xs;
+ color: $text-primary;
}
}
.wpcli-output {
flex: 1;
overflow-y: auto;
- padding: @space-3;
- background: @bg-body;
- font-family: @font-family-mono;
+ padding: $space-3;
+ background: $bg-body;
+ font-family: $font-family-mono;
font-size: 12px;
line-height: 1.6;
}
.wpcli-output-empty {
- color: @text-tertiary;
+ color: $text-tertiary;
text-align: center;
- padding: @space-6;
- font-size: @font-size-sm;
+ padding: $space-6;
+ font-size: $font-size-sm;
}
.wpcli-output-command {
display: flex;
- gap: @space-2;
- color: @color-primary;
- margin-top: @space-2;
+ gap: $space-2;
+ color: $color-primary;
+ margin-top: $space-2;
&:first-child {
margin-top: 0;
@@ -1824,54 +1824,54 @@
.wpcli-output-text {
margin: 0;
- color: @text-secondary;
+ color: $text-secondary;
white-space: pre-wrap;
word-break: break-all;
}
.wpcli-output-error {
margin: 0;
- color: @color-danger;
+ color: $color-danger;
white-space: pre-wrap;
word-break: break-all;
}
.wpcli-prompt {
- color: @color-success;
- font-weight: @font-weight-bold;
+ color: $color-success;
+ font-weight: $font-weight-bold;
user-select: none;
}
.wpcli-executing {
display: flex;
align-items: center;
- gap: @space-2;
- padding: @space-2 0;
- color: @text-tertiary;
- font-size: @font-size-xs;
+ gap: $space-2;
+ padding: $space-2 0;
+ color: $text-tertiary;
+ font-size: $font-size-xs;
}
.wpcli-input-row {
display: flex;
align-items: center;
- gap: @space-2;
- padding: @space-2 @space-3;
- border-top: 1px solid @border-subtle;
- background: @bg-elevated;
+ gap: $space-2;
+ padding: $space-2 $space-3;
+ border-top: 1px solid $border-subtle;
+ background: $bg-elevated;
}
.wpcli-input {
flex: 1;
border: none;
background: none;
- font-family: @font-family-mono;
- font-size: @font-size-sm;
- color: @text-primary;
+ font-family: $font-family-mono;
+ font-size: $font-size-sm;
+ color: $text-primary;
outline: none;
- padding: @space-1 0;
+ padding: $space-1 0;
&::placeholder {
- color: @text-tertiary;
+ color: $text-tertiary;
}
}
@@ -1880,118 +1880,118 @@
// ============================================
.health-status-panel {
- background: @bg-card;
- border: 1px solid @border-subtle;
- border-radius: @radius-lg;
- padding: @space-4;
+ background: $bg-card;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-lg;
+ padding: $space-4;
}
.health-panel-loading {
display: flex;
align-items: center;
justify-content: center;
- gap: @space-2;
- padding: @space-6;
- color: @text-tertiary;
- font-size: @font-size-sm;
+ gap: $space-2;
+ padding: $space-6;
+ color: $text-tertiary;
+ font-size: $font-size-sm;
}
.health-panel-header {
display: flex;
justify-content: space-between;
align-items: center;
- margin-bottom: @space-4;
+ margin-bottom: $space-4;
h4 {
display: flex;
align-items: center;
- gap: @space-2;
+ gap: $space-2;
margin: 0;
- font-size: @font-size-base;
- font-weight: @font-weight-semibold;
- color: @text-primary;
+ font-size: $font-size-base;
+ font-weight: $font-weight-semibold;
+ color: $text-primary;
}
}
.health-panel-grid {
display: flex;
flex-direction: column;
- gap: @space-3;
+ gap: $space-3;
}
.health-panel-env {
- padding: @space-3;
- background: @bg-tertiary;
- border-radius: @radius-md;
+ padding: $space-3;
+ background: $bg-tertiary;
+ border-radius: $radius-md;
}
.health-panel-env-header {
display: flex;
align-items: center;
- gap: @space-2;
- margin-bottom: @space-2;
+ gap: $space-2;
+ margin-bottom: $space-2;
}
.health-panel-env-name {
flex: 1;
- font-size: @font-size-sm;
- font-weight: @font-weight-semibold;
- color: @text-primary;
+ font-size: $font-size-sm;
+ font-weight: $font-weight-semibold;
+ color: $text-primary;
}
.health-panel-overall {
- font-size: @font-size-xs;
- font-weight: @font-weight-medium;
+ font-size: $font-size-xs;
+ font-weight: $font-weight-medium;
padding: 2px 8px;
- border-radius: @radius-sm;
+ border-radius: $radius-sm;
&.health-healthy {
- background: fade(@color-success, 12%);
- color: @color-success;
+ background: fade($color-success, 12%);
+ color: $color-success;
}
&.health-degraded {
- background: fade(@color-warning, 12%);
- color: @color-warning;
+ background: fade($color-warning, 12%);
+ color: $color-warning;
}
&.health-unhealthy {
- background: fade(@color-danger, 12%);
- color: @color-danger;
+ background: fade($color-danger, 12%);
+ color: $color-danger;
}
&.health-unknown {
- background: fade(@text-tertiary-raw, 12%);
- color: @text-tertiary;
+ background: fade($text-tertiary-raw, 12%);
+ color: $text-tertiary;
}
}
.health-panel-checks {
display: flex;
flex-direction: column;
- gap: @space-1;
+ gap: $space-1;
}
.health-panel-check {
display: flex;
align-items: center;
- gap: @space-2;
- padding: @space-1 0;
- font-size: @font-size-xs;
+ gap: $space-2;
+ padding: $space-1 0;
+ font-size: $font-size-xs;
}
.health-panel-check-name {
- font-weight: @font-weight-medium;
- color: @text-secondary;
+ font-weight: $font-weight-medium;
+ color: $text-secondary;
min-width: 80px;
}
.health-panel-check-msg {
- color: @text-tertiary;
+ color: $text-tertiary;
}
.health-panel-empty {
text-align: center;
- padding: @space-6;
- color: @text-tertiary;
- font-size: @font-size-sm;
+ padding: $space-6;
+ color: $text-tertiary;
+ font-size: $font-size-sm;
}
.health-dot {
@@ -2006,33 +2006,33 @@
display: inline-flex;
align-items: center;
gap: 4px;
- font-size: @font-size-xs;
- color: @text-tertiary;
+ font-size: $font-size-xs;
+ color: $text-tertiary;
}
.disk-usage-compact-text {
- font-family: @font-family-mono;
+ font-family: $font-family-mono;
}
.disk-usage-bar-container {
- padding: @space-3;
- background: @bg-card;
- border: 1px solid @border-subtle;
- border-radius: @radius-md;
+ padding: $space-3;
+ background: $bg-card;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-md;
}
.disk-usage-header {
display: flex;
align-items: center;
- gap: @space-2;
- margin-bottom: @space-2;
- font-size: @font-size-sm;
- color: @text-primary;
+ gap: $space-2;
+ margin-bottom: $space-2;
+ font-size: $font-size-sm;
+ color: $text-primary;
}
.disk-usage-total {
- font-weight: @font-weight-semibold;
- font-family: @font-family-mono;
+ font-weight: $font-weight-semibold;
+ font-family: $font-family-mono;
}
.disk-usage-bar {
@@ -2040,7 +2040,7 @@
height: 8px;
border-radius: 4px;
overflow: hidden;
- background: @bg-tertiary;
+ background: $bg-tertiary;
}
.disk-usage-segment {
@@ -2048,33 +2048,33 @@
transition: width 0.3s ease;
&.wordpress {
- &.green { background: @color-success; }
- &.yellow { background: @color-warning; }
- &.red { background: @color-danger; }
+ &.green { background: $color-success; }
+ &.yellow { background: $color-warning; }
+ &.red { background: $color-danger; }
}
&.mysql {
- background: @color-info;
+ background: $color-info;
}
&.snapshots {
- background: fade(@text-tertiary-raw, 30%);
+ background: fade($text-tertiary-raw, 30%);
}
}
.disk-usage-legend {
display: flex;
flex-wrap: wrap;
- gap: @space-3;
- margin-top: @space-2;
+ gap: $space-3;
+ margin-top: $space-2;
}
.disk-usage-legend-item {
display: flex;
align-items: center;
gap: 4px;
- font-size: @font-size-xs;
- color: @text-tertiary;
+ font-size: $font-size-xs;
+ color: $text-tertiary;
}
.disk-usage-legend-dot {
@@ -2082,9 +2082,9 @@
height: 8px;
border-radius: 2px;
- &.wordpress { background: @color-success; }
- &.mysql { background: @color-info; }
- &.snapshots { background: fade(@text-tertiary-raw, 30%); }
+ &.wordpress { background: $color-success; }
+ &.mysql { background: $color-info; }
+ &.snapshots { background: fade($text-tertiary-raw, 30%); }
}
// ============================================
@@ -2099,27 +2099,27 @@
display: flex;
align-items: center;
justify-content: center;
- gap: @space-2;
- padding: @space-6;
- color: @text-tertiary;
- font-size: @font-size-sm;
+ gap: $space-2;
+ padding: $space-6;
+ color: $text-tertiary;
+ font-size: $font-size-sm;
}
.auto-sync-body {
- padding: @space-4 0;
+ padding: $space-4 0;
}
.auto-sync-env-name {
- font-size: @font-size-sm;
- font-weight: @font-weight-semibold;
- color: @text-primary;
- padding-bottom: @space-3;
- border-bottom: 1px solid @border-subtle;
- margin-bottom: @space-3;
+ font-size: $font-size-sm;
+ font-weight: $font-weight-semibold;
+ color: $text-primary;
+ padding-bottom: $space-3;
+ border-bottom: 1px solid $border-subtle;
+ margin-bottom: $space-3;
}
.auto-sync-toggle {
- margin-bottom: @space-4;
+ margin-bottom: $space-4;
}
.auto-sync-toggle-label {
@@ -2129,45 +2129,45 @@
cursor: pointer;
span {
- font-size: @font-size-sm;
- font-weight: @font-weight-medium;
- color: @text-primary;
+ font-size: $font-size-sm;
+ font-weight: $font-weight-medium;
+ color: $text-primary;
}
}
.auto-sync-description {
- font-size: @font-size-xs;
- color: @text-tertiary;
- margin: @space-1 0 0;
+ font-size: $font-size-xs;
+ color: $text-tertiary;
+ margin: $space-1 0 0;
}
.auto-sync-presets {
display: flex;
flex-direction: column;
- gap: @space-2;
+ gap: $space-2;
}
.auto-sync-cron-display {
- font-family: @font-family-mono;
- font-size: @font-size-xs;
- color: @text-tertiary;
+ font-family: $font-family-mono;
+ font-size: $font-size-xs;
+ color: $text-tertiary;
}
.auto-sync-cron-input {
- font-family: @font-family-mono;
+ font-family: $font-family-mono;
}
.auto-sync-next-runs {
- margin-top: @space-4;
- padding: @space-3;
- background: @bg-tertiary;
- border-radius: @radius-md;
+ margin-top: $space-4;
+ padding: $space-3;
+ background: $bg-tertiary;
+ border-radius: $radius-md;
h5 {
- margin: 0 0 @space-2;
- font-size: @font-size-xs;
- font-weight: @font-weight-semibold;
- color: @text-secondary;
+ margin: 0 0 $space-2;
+ font-size: $font-size-xs;
+ font-weight: $font-weight-semibold;
+ color: $text-secondary;
text-transform: uppercase;
letter-spacing: 0.5px;
}
@@ -2181,13 +2181,13 @@
li {
display: flex;
align-items: center;
- gap: @space-2;
- padding: @space-1 0;
- font-size: @font-size-xs;
- color: @text-secondary;
+ gap: $space-2;
+ padding: $space-1 0;
+ font-size: $font-size-xs;
+ color: $text-secondary;
svg {
- color: @text-tertiary;
+ color: $text-tertiary;
}
}
}
@@ -2199,20 +2199,20 @@
.bulk-actions-bar {
display: flex;
align-items: center;
- gap: @space-3;
- padding: @space-3 @space-4;
- background: fade(@accent-primary-raw, 8%);
- border: 1px solid fade(@accent-primary-raw, 20%);
- border-radius: @radius-md;
- margin-bottom: @space-4;
+ gap: $space-3;
+ padding: $space-3 $space-4;
+ background: fade($accent-primary-raw, 8%);
+ border: 1px solid fade($accent-primary-raw, 20%);
+ border-radius: $radius-md;
+ margin-bottom: $space-4;
}
.bulk-actions-info {
display: flex;
align-items: center;
- gap: @space-1;
- font-size: @font-size-sm;
- color: @text-secondary;
+ gap: $space-1;
+ font-size: $font-size-sm;
+ color: $text-secondary;
}
.bulk-actions-count {
@@ -2222,34 +2222,34 @@
min-width: 24px;
height: 24px;
padding: 0 6px;
- background: @color-primary;
+ background: $color-primary;
color: white;
border-radius: 12px;
- font-size: @font-size-xs;
- font-weight: @font-weight-bold;
+ font-size: $font-size-xs;
+ font-weight: $font-weight-bold;
}
.bulk-actions-buttons {
display: flex;
- gap: @space-1;
+ gap: $space-1;
flex: 1;
}
.bulk-actions-clear {
- color: @text-tertiary !important;
+ color: $text-tertiary !important;
}
.bulk-actions-confirm {
display: flex;
align-items: center;
- gap: @space-3;
+ gap: $space-3;
width: 100%;
span {
flex: 1;
- font-size: @font-size-sm;
- color: @text-primary;
- font-weight: @font-weight-medium;
+ font-size: $font-size-sm;
+ color: $text-primary;
+ font-weight: $font-weight-medium;
}
}
@@ -2261,32 +2261,32 @@
flex: 1;
display: flex;
flex-direction: column;
- gap: @space-2;
+ gap: $space-2;
}
.operation-progress {
display: flex;
flex-direction: column;
- gap: @space-1;
+ gap: $space-1;
}
.operation-progress-bar {
height: 4px;
- background: fade(@color-info, 20%);
+ background: fade($color-info, 20%);
border-radius: 2px;
overflow: hidden;
}
.operation-progress-fill {
height: 100%;
- background: @color-info;
+ background: $color-info;
border-radius: 2px;
transition: width 0.3s ease;
}
.operation-progress-step {
- font-size: @font-size-xs;
- color: @text-tertiary;
+ font-size: $font-size-xs;
+ color: $text-tertiary;
}
// ============================================
@@ -2294,7 +2294,7 @@
// ============================================
.health-tab {
- padding: @space-4 0;
+ padding: $space-4 0;
}
// ============================================
@@ -2313,7 +2313,7 @@
.pipeline-arrow {
min-width: auto;
- padding: @space-2 0;
+ padding: $space-2 0;
.pipeline-arrow-btn {
flex-direction: row;
diff --git a/frontend/src/styles/pages/_wordpress.less b/frontend/src/styles/pages/_wordpress.scss
similarity index 50%
rename from frontend/src/styles/pages/_wordpress.less
rename to frontend/src/styles/pages/_wordpress.scss
index c062bd72..9dcad5fe 100644
--- a/frontend/src/styles/pages/_wordpress.less
+++ b/frontend/src/styles/pages/_wordpress.scss
@@ -8,23 +8,23 @@
.empty-state-large {
.empty-icon svg {
- stroke: #21759b;
+ stroke: $color-wordpress;
}
}
.status-card.success {
- border-left-color: @color-success;
+ border-left-color: $color-success;
.status-icon {
- color: @color-success;
+ color: $color-success;
}
}
.status-card.danger {
- border-left-color: @color-danger;
+ border-left-color: $color-danger;
.status-icon {
- color: @color-danger;
+ color: $color-danger;
}
}
}
@@ -35,27 +35,27 @@
display: flex;
justify-content: space-between;
align-items: flex-start;
- margin-bottom: @space-6;
- padding: @space-4 @space-4 0;
+ margin-bottom: $space-6;
+ padding: $space-4 $space-4 0;
flex-wrap: wrap;
- gap: @space-4;
+ gap: $space-4;
.page-header-content {
h1 {
- font-size: @font-size-2xl;
- font-weight: @font-weight-semibold;
- margin: 0 0 @space-1 0;
+ font-size: $font-size-2xl;
+ font-weight: $font-weight-semibold;
+ margin: 0 0 $space-1 0;
}
.page-description {
- color: @text-secondary;
+ color: $text-secondary;
margin: 0;
}
}
.page-header-actions {
display: flex;
- gap: @space-2;
+ gap: $space-2;
}
}
@@ -64,77 +64,77 @@
flex-direction: column;
align-items: center;
justify-content: center;
- padding: 60px @space-6;
- background: @bg-card;
- border-radius: @radius-xl;
+ padding: 60px $space-6;
+ background: $bg-card;
+ border-radius: $radius-xl;
text-align: center;
- margin: 0 @space-4;
+ margin: 0 $space-4;
.empty-icon {
- color: @text-tertiary;
- margin-bottom: @space-6;
+ color: $text-tertiary;
+ margin-bottom: $space-6;
svg {
- stroke: #21759b;
+ stroke: $color-wordpress;
}
}
h2 {
- margin: 0 0 @space-3 0;
- font-size: @font-size-2xl;
- font-weight: @font-weight-semibold;
+ margin: 0 0 $space-3 0;
+ font-size: $font-size-2xl;
+ font-weight: $font-weight-semibold;
}
p {
- margin: 0 0 @space-6 0;
- color: @text-secondary;
+ margin: 0 0 $space-6 0;
+ color: $text-secondary;
max-width: 460px;
}
}
.install-warning {
display: flex;
- gap: @space-3;
- padding: @space-4;
- background: fade(@color-warning, 8%);
- border: 1px solid fade(@color-warning, 20%);
- border-radius: @radius-md;
- margin-bottom: @space-4;
+ gap: $space-3;
+ padding: $space-4;
+ background: fade($color-warning, 8%);
+ border: 1px solid fade($color-warning, 20%);
+ border-radius: $radius-md;
+ margin-bottom: $space-4;
> svg {
flex-shrink: 0;
- color: @color-warning;
+ color: $color-warning;
margin-top: 2px;
}
strong {
display: block;
- margin-bottom: @space-2;
+ margin-bottom: $space-2;
}
ul {
margin: 0;
- padding-left: @space-4;
- color: @text-secondary;
- font-size: @font-size-sm;
+ padding-left: $space-4;
+ color: $text-secondary;
+ font-size: $font-size-sm;
li {
- margin-bottom: @space-1;
+ margin-bottom: $space-1;
}
}
}
.form-hint {
display: block;
- font-size: @font-size-xs;
- color: @text-tertiary;
- margin-top: @space-1;
+ font-size: $font-size-xs;
+ color: $text-tertiary;
+ margin-top: $space-1;
}
.docker-empty {
.wp-empty-icon {
- color: @text-tertiary;
- margin-bottom: @space-4;
+ color: $text-tertiary;
+ margin-bottom: $space-4;
svg {
stroke: currentColor;
@@ -147,20 +147,20 @@
.wp-sites-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
- gap: @space-4;
- padding: @space-4;
+ gap: $space-4;
+ padding: $space-4;
}
// Site Card
.wp-site-card {
- background: @bg-card;
- border: 1px solid @border-subtle;
- border-radius: @radius-lg;
+ background: $bg-card;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-lg;
cursor: pointer;
transition: all 0.15s ease;
&:hover {
- border-color: @border-hover;
+ border-color: $border-hover;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
}
@@ -168,16 +168,16 @@
.wp-site-card-header {
display: flex;
align-items: center;
- gap: @space-3;
- padding: @space-4;
- border-bottom: 1px solid @border-subtle;
+ gap: $space-3;
+ padding: $space-4;
+ border-bottom: 1px solid $border-subtle;
}
.wp-site-icon {
width: 40px;
height: 40px;
- background: linear-gradient(135deg, #21759b 0%, #1a5f7f 100%);
- border-radius: @radius-md;
+ background: linear-gradient(135deg, $color-wordpress 0%, #1a5f7f 100%);
+ border-radius: $radius-md;
display: flex;
align-items: center;
justify-content: center;
@@ -191,9 +191,9 @@
}
.wp-site-name {
- font-size: @font-size-base;
- font-weight: @font-weight-semibold;
- color: @text-primary;
+ font-size: $font-size-base;
+ font-weight: $font-weight-semibold;
+ color: $text-primary;
margin: 0;
white-space: nowrap;
overflow: hidden;
@@ -201,9 +201,9 @@
}
.wp-site-url {
- font-size: @font-size-xs;
- color: @text-tertiary;
- font-family: @font-family-mono;
+ font-size: $font-size-xs;
+ color: $text-tertiary;
+ font-family: $font-family-mono;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
@@ -214,10 +214,10 @@
display: flex;
align-items: center;
gap: 6px;
- font-size: @font-size-xs;
+ font-size: $font-size-xs;
padding: 4px 10px;
- border-radius: @radius-full;
- font-weight: @font-weight-medium;
+ border-radius: $radius-full;
+ font-weight: $font-weight-medium;
.status-dot {
width: 6px;
@@ -226,87 +226,87 @@
}
&.running {
- background: fade(@color-success, 12%);
- color: @color-success;
+ background: fade($color-success, 12%);
+ color: $color-success;
.status-dot {
- background: @color-success;
+ background: $color-success;
}
}
&.stopped {
- background: fade(@text-tertiary-raw, 12%);
- color: @text-tertiary;
+ background: fade($text-tertiary-raw, 12%);
+ color: $text-tertiary;
.status-dot {
- background: @text-tertiary;
+ background: $text-tertiary;
}
}
}
.wp-site-card-body {
- padding: @space-4;
+ padding: $space-4;
}
.wp-site-meta {
display: grid;
grid-template-columns: repeat(2, 1fr);
- gap: @space-3;
+ gap: $space-3;
}
.wp-site-meta-item {
.meta-label {
display: block;
- font-size: @font-size-xs;
- color: @text-tertiary;
+ font-size: $font-size-xs;
+ color: $text-tertiary;
margin-bottom: 2px;
}
.meta-value {
- font-size: @font-size-sm;
- color: @text-primary;
- font-weight: @font-weight-medium;
+ font-size: $font-size-sm;
+ color: $text-primary;
+ font-weight: $font-weight-medium;
&.git-connected {
- color: @color-success;
+ color: $color-success;
}
}
}
.wp-site-badge {
display: inline-block;
- font-size: @font-size-xs;
- font-weight: @font-weight-medium;
+ font-size: $font-size-xs;
+ font-weight: $font-weight-medium;
padding: 2px 8px;
- border-radius: @radius-sm;
- margin-top: @space-3;
+ border-radius: $radius-sm;
+ margin-top: $space-3;
&.production {
- background: fade(@color-danger, 12%);
- color: @color-danger;
+ background: fade($color-danger, 12%);
+ color: $color-danger;
}
&.development {
- background: fade(@color-info, 12%);
- color: @color-info;
+ background: fade($color-info, 12%);
+ color: $color-info;
}
}
.wp-site-card-links {
display: flex;
- gap: @space-3;
- margin-top: @space-3;
- padding-top: @space-3;
- border-top: 1px solid @border-subtle;
+ gap: $space-3;
+ margin-top: $space-3;
+ padding-top: $space-3;
+ border-top: 1px solid $border-subtle;
}
.wp-site-link {
display: inline-flex;
align-items: center;
gap: 6px;
- font-size: @font-size-xs;
- font-weight: @font-weight-medium;
- color: @color-primary;
+ font-size: $font-size-xs;
+ font-weight: $font-weight-medium;
+ color: $color-primary;
text-decoration: none;
&:hover {
@@ -316,11 +316,11 @@
.wp-site-card-footer {
display: flex;
- gap: @space-2;
- padding: @space-3 @space-4;
- border-top: 1px solid @border-subtle;
- background: @bg-tertiary;
- border-radius: 0 0 @radius-lg @radius-lg;
+ gap: $space-2;
+ padding: $space-3 $space-4;
+ border-top: 1px solid $border-subtle;
+ background: $bg-tertiary;
+ border-radius: 0 0 $radius-lg $radius-lg;
.btn {
flex: 1;
@@ -328,10 +328,10 @@
&.btn-danger {
flex: 0;
- color: @color-danger;
+ color: $color-danger;
&:hover {
- background: fade(@color-danger, 10%);
+ background: fade($color-danger, 10%);
}
}
}
@@ -340,7 +340,7 @@
// WordPress Detail Page
.wp-detail-page {
.wp-icon {
- background: linear-gradient(135deg, #21759b 0%, #1a5f7f 100%) !important;
+ background: linear-gradient(135deg, $color-wordpress 0%, #1a5f7f 100%) !important;
}
}
@@ -348,42 +348,42 @@
.environments-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
- gap: @space-4;
- margin-top: @space-4;
+ gap: $space-4;
+ margin-top: $space-4;
}
.wp-env-card {
- background: @bg-card;
- border: 1px solid @border-subtle;
- border-radius: @radius-lg;
+ background: $bg-card;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-lg;
&.production {
- border-color: fade(@color-danger, 30%);
- border-left: 3px solid @color-danger;
+ border-color: fade($color-danger, 30%);
+ border-left: 3px solid $color-danger;
}
&.stale {
- border-color: fade(@color-warning, 40%);
- background: fade(@color-warning, 3%);
+ border-color: fade($color-warning, 40%);
+ background: fade($color-warning, 3%);
}
}
.wp-env-status-group {
display: flex;
align-items: center;
- gap: @space-2;
+ gap: $space-2;
}
.wp-env-stale-badge {
display: flex;
align-items: center;
gap: 4px;
- font-size: @font-size-xs;
- font-weight: @font-weight-medium;
+ font-size: $font-size-xs;
+ font-weight: $font-weight-medium;
padding: 2px 8px;
- border-radius: @radius-sm;
- background: fade(@color-warning, 15%);
- color: @color-warning;
+ border-radius: $radius-sm;
+ background: fade($color-warning, 15%);
+ color: $color-warning;
svg {
flex-shrink: 0;
@@ -391,51 +391,51 @@
}
.text-warning {
- color: @color-warning !important;
+ color: $color-warning !important;
}
.wp-env-header {
display: flex;
justify-content: space-between;
align-items: center;
- padding: @space-4;
- border-bottom: 1px solid @border-subtle;
+ padding: $space-4;
+ border-bottom: 1px solid $border-subtle;
}
.wp-env-info {
display: flex;
align-items: center;
- gap: @space-3;
+ gap: $space-3;
}
.wp-env-badge {
- font-size: @font-size-xs;
- font-weight: @font-weight-bold;
+ font-size: $font-size-xs;
+ font-weight: $font-weight-bold;
padding: 2px 8px;
- border-radius: @radius-sm;
+ border-radius: $radius-sm;
text-transform: uppercase;
letter-spacing: 0.5px;
&.env-production {
- background: fade(@color-danger, 12%);
- color: @color-danger;
+ background: fade($color-danger, 12%);
+ color: $color-danger;
}
&.env-staging {
- background: fade(@color-warning, 12%);
- color: @color-warning;
+ background: fade($color-warning, 12%);
+ color: $color-warning;
}
&.env-development {
- background: fade(@color-info, 12%);
- color: @color-info;
+ background: fade($color-info, 12%);
+ color: $color-info;
}
}
.wp-env-name {
- font-size: @font-size-base;
- font-weight: @font-weight-semibold;
- color: @text-primary;
+ font-size: $font-size-base;
+ font-weight: $font-weight-semibold;
+ color: $text-primary;
margin: 0;
}
@@ -443,8 +443,8 @@
display: flex;
align-items: center;
gap: 6px;
- font-size: @font-size-xs;
- font-weight: @font-weight-medium;
+ font-size: $font-size-xs;
+ font-weight: $font-weight-medium;
.status-dot {
width: 6px;
@@ -453,33 +453,33 @@
}
&.running {
- color: @color-success;
+ color: $color-success;
.status-dot {
- background: @color-success;
+ background: $color-success;
}
}
&.stopped {
- color: @text-tertiary;
+ color: $text-tertiary;
.status-dot {
- background: @text-tertiary;
+ background: $text-tertiary;
}
}
}
.wp-env-body {
- padding: @space-4;
+ padding: $space-4;
}
.wp-env-url {
- margin-bottom: @space-3;
+ margin-bottom: $space-3;
a {
- font-size: @font-size-sm;
- color: @color-primary;
- font-family: @font-family-mono;
+ font-size: $font-size-sm;
+ color: $color-primary;
+ font-family: $font-family-mono;
&:hover {
text-decoration: underline;
@@ -490,7 +490,7 @@
.wp-env-meta {
display: grid;
grid-template-columns: repeat(2, 1fr);
- gap: @space-2;
+ gap: $space-2;
}
.wp-env-meta-item {
@@ -498,28 +498,28 @@
display: flex;
align-items: center;
gap: 4px;
- font-size: @font-size-xs;
- color: @text-tertiary;
+ font-size: $font-size-xs;
+ color: $text-tertiary;
margin-bottom: 2px;
}
.meta-value {
- font-size: @font-size-sm;
- color: @text-primary;
+ font-size: $font-size-sm;
+ color: $text-primary;
&.mono {
- font-family: @font-family-mono;
+ font-family: $font-family-mono;
}
}
}
.wp-env-footer {
display: flex;
- gap: @space-2;
- padding: @space-3 @space-4;
- border-top: 1px solid @border-subtle;
- background: @bg-tertiary;
- border-radius: 0 0 @radius-lg @radius-lg;
+ gap: $space-2;
+ padding: $space-3 $space-4;
+ border-top: 1px solid $border-subtle;
+ background: $bg-tertiary;
+ border-radius: 0 0 $radius-lg $radius-lg;
}
// Snapshot Table
@@ -531,51 +531,51 @@
}
.snapshot-name {
- font-weight: @font-weight-medium;
- color: @text-primary;
+ font-weight: $font-weight-medium;
+ color: $text-primary;
}
.snapshot-tag {
display: inline-flex;
align-items: center;
gap: 4px;
- font-size: @font-size-xs;
- color: @color-info;
- background: fade(@color-info, 10%);
+ font-size: $font-size-xs;
+ color: $color-info;
+ background: fade($color-info, 10%);
padding: 2px 6px;
- border-radius: @radius-sm;
+ border-radius: $radius-sm;
width: fit-content;
}
.snapshot-desc {
- font-size: @font-size-xs;
- color: @text-tertiary;
+ font-size: $font-size-xs;
+ color: $text-tertiary;
}
.compressed-badge {
display: inline-block;
font-size: 10px;
- background: fade(@color-success, 10%);
- color: @color-success;
+ background: fade($color-success, 10%);
+ color: $color-success;
padding: 1px 4px;
border-radius: 3px;
- margin-left: @space-2;
+ margin-left: $space-2;
}
.git-context {
display: flex;
align-items: center;
gap: 6px;
- color: @text-secondary;
+ color: $text-secondary;
svg {
- color: @text-tertiary;
+ color: $text-tertiary;
}
.commit-msg {
- font-size: @font-size-xs;
- color: @text-tertiary;
- margin-left: @space-2;
+ font-size: $font-size-xs;
+ color: $text-tertiary;
+ margin-left: $space-2;
}
}
}
@@ -585,74 +585,74 @@
max-width: 600px;
h4 {
- margin: 0 0 @space-2;
+ margin: 0 0 $space-2;
}
.hint {
- color: @text-tertiary;
- margin-bottom: @space-4;
+ color: $text-tertiary;
+ margin-bottom: $space-4;
}
}
.git-connected-card {
- background: @bg-card;
- border: 1px solid @border-subtle;
- border-radius: @radius-lg;
- padding: @space-5;
+ background: $bg-card;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-lg;
+ padding: $space-5;
max-width: 600px;
}
.git-connected-header {
display: flex;
align-items: flex-start;
- gap: @space-4;
- margin-bottom: @space-4;
+ gap: $space-4;
+ margin-bottom: $space-4;
> svg {
- color: @color-success;
+ color: $color-success;
flex-shrink: 0;
}
h4 {
- margin: 0 0 @space-1;
- font-size: @font-size-base;
+ margin: 0 0 $space-1;
+ font-size: $font-size-base;
}
}
.git-repo-url {
- font-size: @font-size-sm;
- font-family: @font-family-mono;
- color: @text-secondary;
+ font-size: $font-size-sm;
+ font-family: $font-family-mono;
+ color: $text-secondary;
&:hover {
- color: @color-primary;
+ color: $color-primary;
}
}
.git-connected-meta {
display: grid;
grid-template-columns: repeat(2, 1fr);
- gap: @space-3;
- padding: @space-4;
- background: @bg-tertiary;
- border-radius: @radius-md;
- margin-bottom: @space-4;
+ gap: $space-3;
+ padding: $space-4;
+ background: $bg-tertiary;
+ border-radius: $radius-md;
+ margin-bottom: $space-4;
}
.git-meta-item {
.meta-label {
display: block;
- font-size: @font-size-xs;
- color: @text-tertiary;
+ font-size: $font-size-xs;
+ color: $text-tertiary;
margin-bottom: 2px;
}
.meta-value {
- font-size: @font-size-sm;
- color: @text-primary;
+ font-size: $font-size-sm;
+ color: $text-primary;
&.mono {
- font-family: @font-family-mono;
+ font-family: $font-family-mono;
}
}
}
@@ -666,36 +666,36 @@
.commit-list {
display: flex;
flex-direction: column;
- gap: @space-1;
+ gap: $space-1;
max-width: 800px;
}
.commit-item {
display: flex;
align-items: flex-start;
- gap: @space-3;
- padding: @space-3 @space-4;
- background: @bg-card;
- border: 1px solid @border-subtle;
- border-radius: @radius-md;
+ gap: $space-3;
+ padding: $space-3 $space-4;
+ background: $bg-card;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-md;
transition: all 0.15s ease;
&:hover {
- border-color: @border-hover;
+ border-color: $border-hover;
}
&.current {
- border-color: fade(@color-success, 40%);
- background: fade(@color-success, 4%);
+ border-color: fade($color-success, 40%);
+ background: fade($color-success, 4%);
}
}
.commit-icon {
- color: @text-tertiary;
+ color: $text-tertiary;
margin-top: 2px;
.current-icon {
- color: @color-success;
+ color: $color-success;
}
}
@@ -707,33 +707,33 @@
.commit-header {
display: flex;
align-items: center;
- gap: @space-2;
- margin-bottom: @space-1;
+ gap: $space-2;
+ margin-bottom: $space-1;
}
.commit-sha {
- font-size: @font-size-sm;
- font-weight: @font-weight-medium;
- color: @text-secondary;
+ font-size: $font-size-sm;
+ font-weight: $font-weight-medium;
+ color: $text-secondary;
}
.current-badge {
- font-size: @font-size-xs;
- background: @color-success;
+ font-size: $font-size-xs;
+ background: $color-success;
color: #fff;
padding: 1px 6px;
- border-radius: @radius-sm;
+ border-radius: $radius-sm;
}
.commit-date {
- font-size: @font-size-xs;
- color: @text-tertiary;
+ font-size: $font-size-xs;
+ color: $text-tertiary;
margin-left: auto;
}
.commit-message {
- font-size: @font-size-sm;
- color: @text-primary;
+ font-size: $font-size-sm;
+ color: $text-primary;
margin: 0;
white-space: nowrap;
overflow: hidden;
@@ -741,96 +741,96 @@
}
.commit-author {
- font-size: @font-size-xs;
- color: @text-tertiary;
+ font-size: $font-size-xs;
+ color: $text-tertiary;
}
.commit-actions {
display: flex;
- gap: @space-2;
+ gap: $space-2;
flex-shrink: 0;
}
.commit-message-preview {
font-style: italic;
- color: @text-secondary;
- padding: @space-3;
- background: @bg-tertiary;
- border-radius: @radius-md;
- margin: @space-3 0;
+ color: $text-secondary;
+ padding: $space-3;
+ background: $bg-tertiary;
+ border-radius: $radius-md;
+ margin: $space-3 0;
}
// Git Commits Section
.git-commits-section {
- margin-top: @space-6;
- padding-top: @space-6;
- border-top: 1px solid @border-subtle;
+ margin-top: $space-6;
+ padding-top: $space-6;
+ border-top: 1px solid $border-subtle;
}
// Quick Actions
.quick-actions-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
- gap: @space-2;
+ gap: $space-2;
}
.quick-action-btn {
display: flex;
align-items: center;
justify-content: center;
- gap: @space-2;
- padding: @space-3;
- background: @bg-tertiary;
- border: 1px solid @border-subtle;
- border-radius: @radius-md;
- color: @text-secondary;
- font-size: @font-size-sm;
- font-weight: @font-weight-medium;
+ gap: $space-2;
+ padding: $space-3;
+ background: $bg-tertiary;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-md;
+ color: $text-secondary;
+ font-size: $font-size-sm;
+ font-weight: $font-weight-medium;
text-decoration: none;
transition: all 0.15s ease;
&:hover {
- background: @bg-hover;
- border-color: @border-hover;
- color: @text-primary;
+ background: $bg-hover;
+ border-color: $border-hover;
+ color: $text-primary;
}
}
// Hint Box
.hint-box {
- padding: @space-4;
- background: @bg-tertiary;
- border: 1px solid @border-subtle;
- border-radius: @radius-md;
- margin-top: @space-4;
+ padding: $space-4;
+ background: $bg-tertiary;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-md;
+ margin-top: $space-4;
p {
margin: 0;
- color: @text-secondary;
- font-size: @font-size-sm;
+ color: $text-secondary;
+ font-size: $font-size-sm;
&:not(:last-child) {
- margin-bottom: @space-2;
+ margin-bottom: $space-2;
}
}
}
// Empty State Small
.empty-state-small {
- padding: @space-6;
+ padding: $space-6;
text-align: center;
- color: @text-tertiary;
+ color: $text-tertiary;
p {
margin: 0;
&:not(:last-child) {
- margin-bottom: @space-2;
+ margin-bottom: $space-2;
}
}
.hint {
- font-size: @font-size-sm;
+ font-size: $font-size-sm;
}
}
@@ -861,150 +861,154 @@
}
}
-.skeleton {
+@mixin skeleton() {
background: linear-gradient(
90deg,
- @bg-tertiary 25%,
- fade(@border-subtle-raw, 50%) 50%,
- @bg-tertiary 75%
+ $bg-tertiary 25%,
+ fade($border-subtle-raw, 50%) 50%,
+ $bg-tertiary 75%
);
background-size: 200% 100%;
animation: shimmer 1.5s infinite;
- border-radius: @radius-md;
+ border-radius: $radius-md;
+}
+
+.skeleton {
+ @include skeleton();
}
// Skeleton Site Card
.wp-site-card-skeleton {
- background: @bg-card;
- border: 1px solid @border-subtle;
- border-radius: @radius-lg;
+ background: $bg-card;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-lg;
}
.wp-site-card-skeleton-header {
display: flex;
align-items: center;
- gap: @space-3;
- padding: @space-4;
- border-bottom: 1px solid @border-subtle;
+ gap: $space-3;
+ padding: $space-4;
+ border-bottom: 1px solid $border-subtle;
}
.wp-site-card-skeleton-icon {
width: 40px;
height: 40px;
- border-radius: @radius-md;
- .skeleton();
+ border-radius: $radius-md;
+ @include skeleton();
}
.wp-site-card-skeleton-info {
flex: 1;
display: flex;
flex-direction: column;
- gap: @space-2;
+ gap: $space-2;
}
.wp-site-card-skeleton-name {
width: 60%;
height: 16px;
- .skeleton();
+ @include skeleton();
}
.wp-site-card-skeleton-url {
width: 80%;
height: 12px;
- .skeleton();
+ @include skeleton();
}
.wp-site-card-skeleton-status {
width: 64px;
height: 24px;
- border-radius: @radius-full;
- .skeleton();
+ border-radius: $radius-full;
+ @include skeleton();
}
.wp-site-card-skeleton-body {
- padding: @space-4;
+ padding: $space-4;
display: grid;
grid-template-columns: repeat(2, 1fr);
- gap: @space-3;
+ gap: $space-3;
}
.wp-site-card-skeleton-meta {
display: flex;
flex-direction: column;
- gap: @space-1;
+ gap: $space-1;
}
.wp-site-card-skeleton-label {
width: 50%;
height: 10px;
- .skeleton();
+ @include skeleton();
}
.wp-site-card-skeleton-value {
width: 70%;
height: 14px;
- .skeleton();
+ @include skeleton();
}
.wp-site-card-skeleton-footer {
display: flex;
- gap: @space-2;
- padding: @space-3 @space-4;
- border-top: 1px solid @border-subtle;
- background: @bg-tertiary;
- border-radius: 0 0 @radius-lg @radius-lg;
+ gap: $space-2;
+ padding: $space-3 $space-4;
+ border-top: 1px solid $border-subtle;
+ background: $bg-tertiary;
+ border-radius: 0 0 $radius-lg $radius-lg;
}
.wp-site-card-skeleton-btn {
flex: 1;
height: 32px;
- .skeleton();
+ @include skeleton();
}
// Skeleton Environment Card
.wp-env-card-skeleton {
- background: @bg-card;
- border: 1px solid @border-subtle;
- border-radius: @radius-lg;
+ background: $bg-card;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-lg;
}
.wp-env-card-skeleton-header {
display: flex;
justify-content: space-between;
align-items: center;
- padding: @space-4;
- border-bottom: 1px solid @border-subtle;
+ padding: $space-4;
+ border-bottom: 1px solid $border-subtle;
}
.wp-env-card-skeleton-badge {
width: 60px;
height: 20px;
- border-radius: @radius-sm;
- .skeleton();
+ border-radius: $radius-sm;
+ @include skeleton();
}
.wp-env-card-skeleton-status {
width: 64px;
height: 20px;
- border-radius: @radius-sm;
- .skeleton();
+ border-radius: $radius-sm;
+ @include skeleton();
}
.wp-env-card-skeleton-body {
- padding: @space-4;
+ padding: $space-4;
}
.wp-env-card-skeleton-url {
width: 70%;
height: 14px;
- margin-bottom: @space-3;
- .skeleton();
+ margin-bottom: $space-3;
+ @include skeleton();
}
.wp-env-card-skeleton-meta {
display: grid;
grid-template-columns: repeat(2, 1fr);
- gap: @space-2;
+ gap: $space-2;
}
.wp-env-card-skeleton-meta-item {
@@ -1012,65 +1016,65 @@
width: 40%;
height: 10px;
margin-bottom: 4px;
- .skeleton();
+ @include skeleton();
}
.skeleton-value {
width: 60%;
height: 14px;
- .skeleton();
+ @include skeleton();
}
}
.wp-env-card-skeleton-footer {
display: flex;
- gap: @space-2;
- padding: @space-3 @space-4;
- border-top: 1px solid @border-subtle;
- background: @bg-tertiary;
- border-radius: 0 0 @radius-lg @radius-lg;
+ gap: $space-2;
+ padding: $space-3 $space-4;
+ border-top: 1px solid $border-subtle;
+ background: $bg-tertiary;
+ border-radius: 0 0 $radius-lg $radius-lg;
}
// Skeleton Stat Card
.docker-stat-card-skeleton {
- background: @bg-card;
- border: 1px solid @border-subtle;
- border-radius: @radius-lg;
- padding: @space-4;
+ background: $bg-card;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-lg;
+ padding: $space-4;
display: flex;
flex-direction: column;
- gap: @space-2;
+ gap: $space-2;
}
.docker-stat-card-skeleton-label {
width: 60%;
height: 12px;
- .skeleton();
+ @include skeleton();
}
.docker-stat-card-skeleton-value {
width: 40%;
height: 28px;
- .skeleton();
+ @include skeleton();
}
.docker-stat-card-skeleton-meta {
width: 80%;
height: 12px;
- .skeleton();
+ @include skeleton();
}
// Skeleton Table Row
.skeleton-table-row {
display: flex;
align-items: center;
- gap: @space-3;
- padding: @space-3 @space-4;
- border-bottom: 1px solid @border-subtle;
+ gap: $space-3;
+ padding: $space-3 $space-4;
+ border-bottom: 1px solid $border-subtle;
.skeleton-cell {
height: 16px;
- .skeleton();
+ @include skeleton();
&.cell-name { width: 25%; }
&.cell-tag { width: 15%; }
@@ -1084,28 +1088,28 @@
.tab-loading {
display: flex;
flex-direction: column;
- gap: @space-4;
- padding: @space-4;
+ gap: $space-4;
+ padding: $space-4;
}
.tab-loading-header {
display: flex;
justify-content: space-between;
align-items: center;
- margin-bottom: @space-2;
+ margin-bottom: $space-2;
}
.tab-loading-title {
width: 120px;
height: 24px;
- .skeleton();
+ @include skeleton();
}
.tab-loading-btn {
width: 140px;
height: 36px;
- border-radius: @radius-md;
- .skeleton();
+ border-radius: $radius-md;
+ @include skeleton();
}
// ============================================
@@ -1118,46 +1122,46 @@
flex-direction: column;
align-items: center;
justify-content: center;
- padding: @space-8;
+ padding: $space-8;
text-align: center;
min-height: 200px;
}
.error-boundary-icon,
.error-state-icon {
- color: @color-danger;
- margin-bottom: @space-4;
- padding: @space-3;
- background: fade(@color-danger, 10%);
+ color: $color-danger;
+ margin-bottom: $space-4;
+ padding: $space-3;
+ background: fade($color-danger, 10%);
border-radius: 50%;
}
.error-boundary h3,
.error-state-title {
- font-size: @font-size-lg;
- font-weight: @font-weight-semibold;
- color: @text-primary;
- margin: 0 0 @space-2;
+ font-size: $font-size-lg;
+ font-weight: $font-weight-semibold;
+ color: $text-primary;
+ margin: 0 0 $space-2;
}
.error-boundary-message,
.error-state-message {
- font-size: @font-size-sm;
- color: @text-secondary;
- margin: 0 0 @space-4;
+ font-size: $font-size-sm;
+ color: $text-secondary;
+ margin: 0 0 $space-4;
max-width: 400px;
}
.error-state-compact {
display: flex;
align-items: center;
- gap: @space-2;
- padding: @space-3 @space-4;
- background: fade(@color-danger, 8%);
- border: 1px solid fade(@color-danger, 20%);
- border-radius: @radius-md;
- color: @color-danger;
- font-size: @font-size-sm;
+ gap: $space-2;
+ padding: $space-3 $space-4;
+ background: fade($color-danger, 8%);
+ border: 1px solid fade($color-danger, 20%);
+ border-radius: $radius-md;
+ color: $color-danger;
+ font-size: $font-size-sm;
svg {
flex-shrink: 0;
@@ -1177,20 +1181,20 @@
// ============================================
.confirm-dialog-details {
- margin-top: @space-3;
- padding: @space-3;
- background: @bg-tertiary;
- border-radius: @radius-md;
- font-size: @font-size-sm;
- color: @text-secondary;
+ margin-top: $space-3;
+ padding: $space-3;
+ background: $bg-tertiary;
+ border-radius: $radius-md;
+ font-size: $font-size-sm;
+ color: $text-secondary;
text-align: left;
ul {
margin: 0;
- padding-left: @space-4;
+ padding-left: $space-4;
li {
- margin-bottom: @space-1;
+ margin-bottom: $space-1;
&:last-child {
margin-bottom: 0;
@@ -1199,14 +1203,14 @@
}
strong {
- color: @text-primary;
+ color: $text-primary;
}
code {
- background: @bg-code;
+ background: $bg-code;
padding: 2px 6px;
border-radius: 3px;
- font-family: @font-family-mono;
+ font-family: $font-family-mono;
font-size: 0.9em;
}
}
@@ -1215,69 +1219,69 @@
.env-preview-url {
display: flex;
align-items: center;
- gap: @space-2;
- padding: @space-3;
- background: fade(@color-success, 8%);
- border: 1px solid fade(@color-success, 20%);
- border-radius: @radius-md;
- margin-bottom: @space-4;
+ gap: $space-2;
+ padding: $space-3;
+ background: fade($color-success, 8%);
+ border: 1px solid fade($color-success, 20%);
+ border-radius: $radius-md;
+ margin-bottom: $space-4;
.preview-label {
- font-size: @font-size-xs;
- color: @text-secondary;
+ font-size: $font-size-xs;
+ color: $text-secondary;
}
.preview-url {
- font-family: @font-family-mono;
- font-size: @font-size-sm;
- color: @color-success;
- font-weight: @font-weight-medium;
+ font-family: $font-family-mono;
+ font-size: $font-size-sm;
+ color: $color-success;
+ font-weight: $font-weight-medium;
}
}
.form-hint-domain {
code {
- background: @bg-code;
+ background: $bg-code;
padding: 2px 6px;
border-radius: 3px;
- font-family: @font-family-mono;
+ font-family: $font-family-mono;
font-size: 0.9em;
}
}
.confirm-dialog-input {
- margin-top: @space-4;
+ margin-top: $space-4;
text-align: left;
label {
display: block;
- font-size: @font-size-sm;
- color: @text-secondary;
- margin-bottom: @space-2;
+ font-size: $font-size-sm;
+ color: $text-secondary;
+ margin-bottom: $space-2;
strong {
- color: @text-primary;
- font-family: @font-family-mono;
+ color: $text-primary;
+ font-family: $font-family-mono;
}
}
input {
width: 100%;
- padding: @space-3;
- border: 1px solid @border-subtle;
- border-radius: @radius-md;
- font-size: @font-size-base;
- background: @bg-input;
- color: @text-primary;
+ padding: $space-3;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-md;
+ font-size: $font-size-base;
+ background: $bg-input;
+ color: $text-primary;
&:focus {
outline: none;
- border-color: @color-primary;
- box-shadow: 0 0 0 3px fade(@accent-primary-raw, 15%);
+ border-color: $color-primary;
+ box-shadow: 0 0 0 3px fade($accent-primary-raw, 15%);
}
&::placeholder {
- color: @text-tertiary;
+ color: $text-tertiary;
}
}
}
@@ -1291,7 +1295,7 @@
align-items: center;
justify-content: center;
min-height: 60vh;
- padding: @space-6;
+ padding: $space-6;
}
.resource-gate-container {
@@ -1305,28 +1309,28 @@
justify-content: center;
width: 80px;
height: 80px;
- background: fade(@color-warning, 12%);
+ background: fade($color-warning, 12%);
border-radius: 50%;
- color: @color-warning;
- margin-bottom: @space-5;
+ color: $color-warning;
+ margin-bottom: $space-5;
}
.resource-gate-title {
- font-size: @font-size-xl;
- font-weight: @font-weight-bold;
- color: @text-primary;
- margin: 0 0 @space-3;
+ font-size: $font-size-xl;
+ font-weight: $font-weight-bold;
+ color: $text-primary;
+ margin: 0 0 $space-3;
}
.resource-gate-description {
- font-size: @font-size-base;
- color: @text-secondary;
- margin: 0 0 @space-6;
+ font-size: $font-size-base;
+ color: $text-secondary;
+ margin: 0 0 $space-6;
line-height: 1.6;
strong {
- color: @color-warning;
- font-weight: @font-weight-semibold;
+ color: $color-warning;
+ font-weight: $font-weight-semibold;
}
}
@@ -1334,17 +1338,17 @@
display: flex;
align-items: center;
justify-content: center;
- gap: @space-4;
- margin-bottom: @space-6;
+ gap: $space-4;
+ margin-bottom: $space-6;
@media (max-width: 600px) {
flex-direction: column;
- gap: @space-3;
+ gap: $space-3;
}
}
.resource-gate-spec-arrow {
- color: @text-tertiary;
+ color: $text-tertiary;
@media (max-width: 600px) {
transform: rotate(90deg);
@@ -1352,20 +1356,20 @@
}
.resource-gate-spec-card {
- background: @bg-card;
- border: 1px solid @border-subtle;
- border-radius: @radius-lg;
- padding: @space-4;
+ background: $bg-card;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-lg;
+ padding: $space-4;
min-width: 200px;
&.current {
- border-color: fade(@color-danger, 40%);
- background: fade(@color-danger, 4%);
+ border-color: fade($color-danger, 40%);
+ background: fade($color-danger, 4%);
}
&.required {
- border-color: fade(@color-success, 40%);
- background: fade(@color-success, 4%);
+ border-color: fade($color-success, 40%);
+ background: fade($color-success, 4%);
}
}
@@ -1373,71 +1377,71 @@
display: flex;
align-items: center;
justify-content: center;
- gap: @space-2;
- font-size: @font-size-sm;
- font-weight: @font-weight-semibold;
- color: @text-primary;
- margin-bottom: @space-3;
- padding-bottom: @space-2;
- border-bottom: 1px solid @border-subtle;
+ gap: $space-2;
+ font-size: $font-size-sm;
+ font-weight: $font-weight-semibold;
+ color: $text-primary;
+ margin-bottom: $space-3;
+ padding-bottom: $space-2;
+ border-bottom: 1px solid $border-subtle;
}
.resource-gate-spec-items {
display: flex;
flex-direction: column;
- gap: @space-2;
+ gap: $space-2;
}
.resource-gate-spec-item {
display: flex;
align-items: center;
- gap: @space-2;
- font-size: @font-size-sm;
+ gap: $space-2;
+ font-size: $font-size-sm;
svg {
- color: @text-tertiary;
+ color: $text-tertiary;
flex-shrink: 0;
}
.spec-label {
- color: @text-secondary;
+ color: $text-secondary;
flex: 1;
}
.spec-value {
- font-weight: @font-weight-semibold;
- color: @color-success;
- font-family: @font-family-mono;
+ font-weight: $font-weight-semibold;
+ color: $color-success;
+ font-family: $font-family-mono;
&.insufficient {
- color: @color-danger;
+ color: $color-danger;
}
}
}
.resource-gate-recommendation {
- background: @bg-tertiary;
- border: 1px solid @border-subtle;
- border-radius: @radius-lg;
- padding: @space-4;
- margin-bottom: @space-6;
+ background: $bg-tertiary;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-lg;
+ padding: $space-4;
+ margin-bottom: $space-6;
text-align: left;
h4 {
- font-size: @font-size-sm;
- font-weight: @font-weight-semibold;
- color: @text-primary;
- margin: 0 0 @space-2;
+ font-size: $font-size-sm;
+ font-weight: $font-weight-semibold;
+ color: $text-primary;
+ margin: 0 0 $space-2;
}
p {
- font-size: @font-size-sm;
- color: @text-secondary;
+ font-size: $font-size-sm;
+ color: $text-secondary;
margin: 0;
line-height: 1.5;
strong {
- color: @text-primary;
+ color: $text-primary;
}
}
}
@@ -1445,7 +1449,7 @@
.resource-gate-tiers {
display: grid;
grid-template-columns: repeat(3, 1fr);
- gap: @space-3;
+ gap: $space-3;
@media (max-width: 600px) {
grid-template-columns: 1fr;
@@ -1453,42 +1457,42 @@
}
.resource-gate-tier {
- background: @bg-card;
- border: 1px solid @border-subtle;
- border-radius: @radius-md;
- padding: @space-3;
+ background: $bg-card;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-md;
+ padding: $space-3;
text-align: center;
&.current {
- border-color: @color-warning;
- background: fade(@color-warning, 6%);
+ border-color: $color-warning;
+ background: fade($color-warning, 6%);
}
.tier-name {
- font-size: @font-size-sm;
- font-weight: @font-weight-bold;
- color: @text-primary;
- margin-bottom: @space-1;
+ font-size: $font-size-sm;
+ font-weight: $font-weight-bold;
+ color: $text-primary;
+ margin-bottom: $space-1;
}
.tier-specs {
- font-size: @font-size-xs;
- color: @text-tertiary;
- margin-bottom: @space-2;
+ font-size: $font-size-xs;
+ color: $text-tertiary;
+ margin-bottom: $space-2;
}
.tier-wp {
- font-size: @font-size-xs;
- font-weight: @font-weight-medium;
- color: @color-danger;
+ font-size: $font-size-xs;
+ font-weight: $font-weight-medium;
+ color: $color-danger;
padding: 2px 8px;
- background: fade(@color-danger, 10%);
- border-radius: @radius-sm;
+ background: fade($color-danger, 10%);
+ border-radius: $radius-sm;
display: inline-block;
&.allowed {
- color: @color-success;
- background: fade(@color-success, 10%);
+ color: $color-success;
+ background: fade($color-success, 10%);
}
}
}
diff --git a/frontend/src/styles/pages/_workflow.less b/frontend/src/styles/pages/_workflow.scss
similarity index 55%
rename from frontend/src/styles/pages/_workflow.less
rename to frontend/src/styles/pages/_workflow.scss
index a2892b44..eb823b30 100644
--- a/frontend/src/styles/pages/_workflow.less
+++ b/frontend/src/styles/pages/_workflow.scss
@@ -5,8 +5,8 @@
.workflow-page {
display: flex;
flex-direction: column;
- height: calc(100vh - @space-6);
- padding: @space-4;
+ height: calc(100vh - $space-6);
+ padding: $space-4;
&.fullscreen {
height: 100vh;
@@ -20,18 +20,18 @@
.page-header {
flex-shrink: 0;
- margin-bottom: @space-4;
+ margin-bottom: $space-4;
h1 {
- margin: 0 0 @space-1;
- font-size: @font-size-xl;
- font-weight: @font-weight-semibold;
+ margin: 0 0 $space-1;
+ font-size: $font-size-xl;
+ font-weight: $font-weight-semibold;
}
.page-subtitle {
margin: 0;
- color: @text-secondary;
- font-size: @font-size-sm;
+ color: $text-secondary;
+ font-size: $font-size-sm;
}
}
}
@@ -42,34 +42,34 @@
.workflow-canvas {
flex: 1;
- background: @bg-body;
- border: 1px solid @border-subtle;
- border-radius: @radius-lg;
+ background: $bg-body;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-lg;
overflow: hidden;
position: relative;
.react-flow {
- background: @bg-body;
+ background: $bg-body;
}
// React Flow Controls
.react-flow__controls {
- background: @bg-card;
- border: 1px solid @border-subtle;
- border-radius: @radius-md;
- box-shadow: @shadow-lg;
+ background: $bg-card;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-md;
+ box-shadow: $shadow-lg;
button {
- background: @bg-card;
+ background: $bg-card;
border: none;
- border-bottom: 1px solid @border-subtle;
- color: @text-secondary;
+ border-bottom: 1px solid $border-subtle;
+ color: $text-secondary;
width: 28px;
height: 28px;
&:hover {
- background: @bg-hover;
- color: @text-primary;
+ background: $bg-hover;
+ color: $text-primary;
}
&:last-child {
@@ -84,15 +84,15 @@
// React Flow MiniMap
.react-flow__minimap {
- background: @bg-card;
- border: 1px solid @border-subtle;
- border-radius: @radius-md;
- box-shadow: @shadow-lg;
+ background: $bg-card;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-md;
+ box-shadow: $shadow-lg;
}
// React Flow Background
.react-flow__background {
- background: @bg-body;
+ background: $bg-body;
}
}
@@ -102,31 +102,31 @@
.workflow-node {
min-width: 180px;
- background: @bg-card;
- border: 1px solid @border-subtle;
- border-radius: @radius-lg;
- box-shadow: @shadow-md;
- transition: all @transition-fast;
+ background: $bg-card;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-lg;
+ box-shadow: $shadow-md;
+ transition: all $transition-fast;
&:hover {
- border-color: @border-active;
- box-shadow: @shadow-lg;
+ border-color: $border-active;
+ box-shadow: $shadow-lg;
}
&.selected {
- border-color: @accent-primary;
- box-shadow: 0 0 0 2px @accent-glow;
+ border-color: $accent-primary;
+ box-shadow: 0 0 0 2px $accent-glow;
}
}
.workflow-node-header {
display: flex;
align-items: center;
- gap: @space-2;
- padding: @space-2 @space-3;
- border-bottom: 2px solid @accent-primary;
- border-top-left-radius: @radius-lg;
- border-top-right-radius: @radius-lg;
+ gap: $space-2;
+ padding: $space-2 $space-3;
+ border-bottom: 2px solid $accent-primary;
+ border-top-left-radius: $radius-lg;
+ border-top-right-radius: $radius-lg;
}
.workflow-node-icon {
@@ -135,52 +135,52 @@
justify-content: center;
width: 28px;
height: 28px;
- background: @accent-primary;
- border-radius: @radius-md;
+ background: $accent-primary;
+ border-radius: $radius-md;
color: white;
}
.workflow-node-type {
- font-size: @font-size-xs;
- font-weight: @font-weight-semibold;
+ font-size: $font-size-xs;
+ font-weight: $font-weight-semibold;
text-transform: uppercase;
letter-spacing: 0.5px;
- color: @text-tertiary;
+ color: $text-tertiary;
}
.workflow-node-body {
- padding: @space-3;
+ padding: $space-3;
}
.workflow-node-label {
- font-size: @font-size-sm;
- font-weight: @font-weight-medium;
- color: @text-primary;
- margin-bottom: @space-1;
+ font-size: $font-size-sm;
+ font-weight: $font-weight-medium;
+ color: $text-primary;
+ margin-bottom: $space-1;
}
.workflow-node-status {
display: inline-flex;
align-items: center;
- gap: @space-1;
- padding: @space-1 @space-2;
- border-radius: @radius-full;
- font-size: @font-size-xs;
- font-weight: @font-weight-medium;
+ gap: $space-1;
+ padding: $space-1 $space-2;
+ border-radius: $radius-full;
+ font-size: $font-size-xs;
+ font-weight: $font-weight-medium;
&.status-running {
- background: @success-bg;
- color: @success;
+ background: $success-bg;
+ color: $success;
}
&.status-stopped {
- background: fade(@text-tertiary-raw, 10%);
- color: @text-tertiary;
+ background: fade($text-tertiary-raw, 10%);
+ color: $text-tertiary;
}
&.status-error {
- background: @danger-bg;
- color: @danger;
+ background: $danger-bg;
+ color: $danger;
}
}
@@ -191,13 +191,13 @@
.workflow-handle {
width: 12px !important;
height: 12px !important;
- background: @bg-card !important;
- border: 2px solid @border-active !important;
- transition: all @transition-fast;
+ background: $bg-card !important;
+ border: 2px solid $border-active !important;
+ transition: all $transition-fast;
&:hover {
- background: @accent-primary !important;
- border-color: @accent-primary !important;
+ background: $accent-primary !important;
+ border-color: $accent-primary !important;
transform: scale(1.2);
}
}
@@ -216,16 +216,16 @@
// ============================================
.react-flow__edge-path {
- stroke: @border-active;
+ stroke: $border-active;
stroke-width: 2;
}
.react-flow__edge.selected .react-flow__edge-path {
- stroke: @accent-primary;
+ stroke: $accent-primary;
}
.react-flow__edge:hover .react-flow__edge-path {
- stroke: @accent-primary;
+ stroke: $accent-primary;
}
// Animated edges
@@ -249,17 +249,17 @@
.workflow-palette {
position: absolute;
- top: @space-4;
- left: @space-4;
+ top: $space-4;
+ left: $space-4;
z-index: 10;
display: flex;
flex-direction: column;
- gap: @space-1;
- background: @bg-card;
- border: 1px solid @border-subtle;
- border-radius: @radius-lg;
- padding: @space-2;
- box-shadow: @shadow-lg;
+ gap: $space-1;
+ background: $bg-card;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-lg;
+ padding: $space-2;
+ box-shadow: $shadow-lg;
max-height: calc(100% - 120px);
overflow-y: auto;
}
@@ -267,37 +267,37 @@
.palette-section {
display: flex;
flex-direction: column;
- gap: @space-1;
+ gap: $space-1;
&:not(:last-child) {
- padding-bottom: @space-2;
- border-bottom: 1px solid @border-subtle;
- margin-bottom: @space-1;
+ padding-bottom: $space-2;
+ border-bottom: 1px solid $border-subtle;
+ margin-bottom: $space-1;
}
}
.palette-header {
- font-size: @font-size-xs;
- font-weight: @font-weight-semibold;
+ font-size: $font-size-xs;
+ font-weight: $font-weight-semibold;
text-transform: uppercase;
letter-spacing: 0.5px;
- color: @text-tertiary;
- padding: @space-1 @space-2;
+ color: $text-tertiary;
+ padding: $space-1 $space-2;
}
.palette-item {
display: flex;
align-items: center;
- gap: @space-2;
- padding: @space-2 @space-3;
+ gap: $space-2;
+ padding: $space-2 $space-3;
background: transparent;
border: 1px solid transparent;
- border-radius: @radius-md;
- color: @text-secondary;
- font-size: @font-size-sm;
- font-weight: @font-weight-medium;
+ border-radius: $radius-md;
+ color: $text-secondary;
+ font-size: $font-size-sm;
+ font-weight: $font-weight-medium;
cursor: pointer;
- transition: all @transition-fast;
+ transition: all $transition-fast;
white-space: nowrap;
text-align: left;
@@ -306,8 +306,8 @@
}
&:hover {
- background: @bg-hover;
- color: @text-primary;
+ background: $bg-hover;
+ color: $text-primary;
}
&.palette-item-docker:hover {
@@ -317,21 +317,21 @@
}
&.palette-item-database:hover {
- background: fade(@warning, 15%);
- color: @warning;
- border-color: fade(@warning, 30%);
+ background: fade($warning, 15%);
+ color: $warning;
+ border-color: fade($warning, 30%);
}
&.palette-item-domain:hover {
- background: fade(@success, 15%);
- color: @success;
- border-color: fade(@success, 30%);
+ background: fade($success, 15%);
+ color: $success;
+ border-color: fade($success, 30%);
}
&.palette-item-service:hover {
- background: fade(@accent-primary-raw, 15%);
- color: @accent-primary;
- border-color: fade(@accent-primary-raw, 30%);
+ background: fade($accent-primary-raw, 15%);
+ color: $accent-primary;
+ border-color: fade($accent-primary-raw, 30%);
}
}
@@ -353,39 +353,39 @@
// Database Node
.workflow-node-database {
.node-header-database {
- border-color: @warning;
+ border-color: $warning;
}
.node-icon-database {
- background: @warning;
+ background: $warning;
}
}
// Domain Node
.workflow-node-domain {
.node-header-domain {
- border-color: @success;
+ border-color: $success;
}
.node-icon-domain {
- background: @success;
+ background: $success;
}
.node-label-domain {
- font-size: @font-size-base;
- font-weight: @font-weight-semibold;
- font-family: @font-mono;
+ font-size: $font-size-base;
+ font-weight: $font-weight-semibold;
+ font-family: $font-mono;
}
}
// Service Node
.workflow-node-service {
.node-header-service {
- border-color: @accent-primary;
+ border-color: $accent-primary;
}
.node-icon-service {
- background: @accent-primary;
+ background: $accent-primary;
}
}
@@ -396,17 +396,17 @@
.node-detail {
display: flex;
align-items: center;
- gap: @space-2;
- margin-top: @space-2;
- font-size: @font-size-xs;
+ gap: $space-2;
+ margin-top: $space-2;
+ font-size: $font-size-xs;
.node-detail-label {
- color: @text-tertiary;
+ color: $text-tertiary;
}
.node-detail-value {
- color: @text-secondary;
- font-family: @font-mono;
+ color: $text-secondary;
+ font-family: $font-mono;
}
}
@@ -419,7 +419,7 @@
.node-detail-memory,
.node-detail-size {
- color: @text-tertiary;
+ color: $text-tertiary;
svg {
opacity: 0.7;
@@ -427,9 +427,9 @@
}
.node-description {
- font-size: @font-size-xs;
- color: @text-tertiary;
- margin-top: @space-1;
+ font-size: $font-size-xs;
+ color: $text-tertiary;
+ margin-top: $space-1;
}
// ============================================
@@ -439,20 +439,20 @@
.node-ports {
display: flex;
flex-wrap: wrap;
- gap: @space-1;
- margin-top: @space-2;
+ gap: $space-1;
+ margin-top: $space-2;
}
.node-port-pill {
display: inline-flex;
align-items: center;
- padding: 2px @space-2;
- background: fade(@accent-primary-raw, 15%);
- border: 1px solid fade(@accent-primary-raw, 30%);
- border-radius: @radius-full;
- font-size: @font-size-xs;
- font-family: @font-mono;
- color: @accent-primary;
+ padding: 2px $space-2;
+ background: fade($accent-primary-raw, 15%);
+ border: 1px solid fade($accent-primary-raw, 30%);
+ border-radius: $radius-full;
+ font-size: $font-size-xs;
+ font-family: $font-mono;
+ color: $accent-primary;
}
// ============================================
@@ -462,12 +462,12 @@
.node-type-badge {
display: inline-flex;
align-items: center;
- padding: 2px @space-2;
- border-radius: @radius-sm;
- font-size: @font-size-xs;
- font-weight: @font-weight-semibold;
+ padding: 2px $space-2;
+ border-radius: $radius-sm;
+ font-size: $font-size-xs;
+ font-weight: $font-weight-semibold;
color: white;
- margin-top: @space-1;
+ margin-top: $space-1;
}
// ============================================
@@ -477,38 +477,38 @@
.node-badges {
display: flex;
flex-wrap: wrap;
- gap: @space-2;
- margin-top: @space-2;
+ gap: $space-2;
+ margin-top: $space-2;
}
.node-ssl-badge {
display: inline-flex;
align-items: center;
- gap: @space-1;
- padding: 2px @space-2;
+ gap: $space-1;
+ padding: 2px $space-2;
border: 1px solid;
- border-radius: @radius-sm;
- font-size: @font-size-xs;
- font-weight: @font-weight-medium;
+ border-radius: $radius-sm;
+ font-size: $font-size-xs;
+ font-weight: $font-weight-medium;
}
.node-dns-badge {
display: inline-flex;
align-items: center;
- gap: @space-1;
- padding: 2px @space-2;
- border-radius: @radius-sm;
- font-size: @font-size-xs;
- font-weight: @font-weight-medium;
+ gap: $space-1;
+ padding: 2px $space-2;
+ border-radius: $radius-sm;
+ font-size: $font-size-xs;
+ font-weight: $font-weight-medium;
&.dns-propagated {
- background: @success-bg;
- color: @success;
+ background: $success-bg;
+ color: $success;
}
&.dns-pending {
- background: fade(@warning, 15%);
- color: @warning;
+ background: fade($warning, 15%);
+ color: $warning;
}
}
@@ -523,37 +523,37 @@
margin-left: auto;
&.status-running {
- background: @success;
- box-shadow: 0 0 0 2px fade(@success, 30%);
+ background: $success;
+ box-shadow: 0 0 0 2px fade($success, 30%);
animation: pulseRunning 2s ease-in-out infinite;
}
&.status-stopped {
- background: @text-tertiary;
+ background: $text-tertiary;
}
&.status-error {
- background: @danger;
- box-shadow: 0 0 0 2px fade(@danger, 30%);
+ background: $danger;
+ box-shadow: 0 0 0 2px fade($danger, 30%);
animation: pulseError 1s ease-in-out infinite;
}
}
@keyframes pulseRunning {
0%, 100% {
- box-shadow: 0 0 0 2px fade(@success, 30%);
+ box-shadow: 0 0 0 2px fade($success, 30%);
}
50% {
- box-shadow: 0 0 0 4px fade(@success, 15%);
+ box-shadow: 0 0 0 4px fade($success, 15%);
}
}
@keyframes pulseError {
0%, 100% {
- box-shadow: 0 0 0 2px fade(@danger, 30%);
+ box-shadow: 0 0 0 2px fade($danger, 30%);
}
50% {
- box-shadow: 0 0 0 4px fade(@danger, 15%);
+ box-shadow: 0 0 0 4px fade($danger, 15%);
}
}
@@ -577,9 +577,9 @@
right: 0;
width: 320px;
height: 100%;
- background: @bg-card;
- border-left: 1px solid @border-subtle;
- box-shadow: @shadow-lg;
+ background: $bg-card;
+ border-left: 1px solid $border-subtle;
+ box-shadow: $shadow-lg;
z-index: 20;
display: flex;
flex-direction: column;
@@ -599,21 +599,21 @@
display: flex;
align-items: center;
justify-content: space-between;
- padding: @space-4;
- border-bottom: 2px solid @accent-primary;
+ padding: $space-4;
+ border-bottom: 2px solid $accent-primary;
flex-shrink: 0;
}
.config-panel-title {
display: flex;
align-items: center;
- gap: @space-3;
+ gap: $space-3;
h3 {
margin: 0;
- font-size: @font-size-base;
- font-weight: @font-weight-semibold;
- color: @text-primary;
+ font-size: $font-size-base;
+ font-weight: $font-weight-semibold;
+ color: $text-primary;
}
}
@@ -623,7 +623,7 @@
justify-content: center;
width: 32px;
height: 32px;
- border-radius: @radius-md;
+ border-radius: $radius-md;
color: white;
}
@@ -635,53 +635,53 @@
height: 28px;
background: transparent;
border: none;
- border-radius: @radius-sm;
- color: @text-tertiary;
+ border-radius: $radius-sm;
+ color: $text-tertiary;
cursor: pointer;
- transition: all @transition-fast;
+ transition: all $transition-fast;
&:hover {
- background: @bg-hover;
- color: @text-primary;
+ background: $bg-hover;
+ color: $text-primary;
}
}
.config-panel-body {
flex: 1;
overflow-y: auto;
- padding: @space-4;
- .custom-scrollbar();
+ padding: $space-4;
+ @include custom-scrollbar();
.form-group {
- margin-bottom: @space-4;
+ margin-bottom: $space-4;
label {
display: block;
- font-size: @font-size-sm;
- font-weight: @font-weight-medium;
- color: @text-secondary;
- margin-bottom: @space-2;
+ font-size: $font-size-sm;
+ font-weight: $font-weight-medium;
+ color: $text-secondary;
+ margin-bottom: $space-2;
}
input,
select,
textarea {
width: 100%;
- padding: @space-2 @space-3;
- background: @bg-body;
- border: 1px solid @border-subtle;
- border-radius: @radius-md;
- color: @text-primary;
- font-size: @font-size-sm;
- transition: border-color @transition-fast;
+ padding: $space-2 $space-3;
+ background: $bg-body;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-md;
+ color: $text-primary;
+ font-size: $font-size-sm;
+ transition: border-color $transition-fast;
&:focus {
outline: none;
- border-color: @accent-primary;
+ border-color: $accent-primary;
}
&::placeholder {
- color: @text-tertiary;
+ color: $text-tertiary;
}
}
@@ -690,8 +690,8 @@
appearance: none;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2371717a' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
background-repeat: no-repeat;
- background-position: right @space-3 center;
- padding-right: @space-8;
+ background-position: right $space-3 center;
+ padding-right: $space-8;
}
textarea {
@@ -701,29 +701,29 @@
}
.input-readonly {
- background: @bg-hover;
+ background: $bg-hover;
cursor: not-allowed;
- color: @text-tertiary;
+ color: $text-tertiary;
}
}
.form-row {
display: grid;
grid-template-columns: 1fr 1fr;
- gap: @space-3;
+ gap: $space-3;
}
.form-hint {
display: block;
- font-size: @font-size-xs;
- color: @text-tertiary;
- margin-top: @space-1;
+ font-size: $font-size-xs;
+ color: $text-tertiary;
+ margin-top: $space-1;
}
}
.config-panel-footer {
- padding: @space-4;
- border-top: 1px solid @border-subtle;
+ padding: $space-4;
+ border-top: 1px solid $border-subtle;
flex-shrink: 0;
}
@@ -734,12 +734,12 @@
.port-list {
display: flex;
flex-direction: column;
- gap: @space-2;
+ gap: $space-2;
}
.port-item {
display: flex;
- gap: @space-2;
+ gap: $space-2;
input {
flex: 1;
@@ -753,21 +753,21 @@
width: 32px;
height: 32px;
padding: 0;
- border-radius: @radius-md;
+ border-radius: $radius-md;
flex-shrink: 0;
}
.btn-danger-ghost {
background: transparent;
border: 1px solid transparent;
- color: @text-tertiary;
+ color: $text-tertiary;
cursor: pointer;
- transition: all @transition-fast;
+ transition: all $transition-fast;
&:hover {
- background: @danger-bg;
- border-color: @danger-border;
- color: @danger;
+ background: $danger-bg;
+ border-color: $danger-border;
+ color: $danger;
}
}
@@ -777,18 +777,18 @@
.connection-error-toast {
position: absolute;
- top: @space-4;
+ top: $space-4;
left: 50%;
transform: translateX(-50%);
z-index: 30;
- padding: @space-2 @space-4;
- background: @danger-bg;
- border: 1px solid @danger-border;
- border-radius: @radius-md;
- color: @danger;
- font-size: @font-size-sm;
- font-weight: @font-weight-medium;
- box-shadow: @shadow-lg;
+ padding: $space-2 $space-4;
+ background: $danger-bg;
+ border: 1px solid $danger-border;
+ border-radius: $radius-md;
+ color: $danger;
+ font-size: $font-size-sm;
+ font-weight: $font-weight-medium;
+ box-shadow: $shadow-lg;
animation: slideDown 0.2s ease-out;
}
@@ -810,14 +810,14 @@
.edge-label {
display: flex;
align-items: center;
- gap: @space-1;
- padding: 2px @space-2;
- border-radius: @radius-sm;
- font-size: @font-size-xs;
- font-weight: @font-weight-medium;
+ gap: $space-1;
+ padding: 2px $space-2;
+ border-radius: $radius-sm;
+ font-size: $font-size-xs;
+ font-weight: $font-weight-medium;
color: white;
white-space: nowrap;
- transition: all @transition-fast;
+ transition: all $transition-fast;
opacity: 0;
.react-flow__edge:hover &,
@@ -826,7 +826,7 @@
}
&.edge-label-selected {
- color: @bg-body;
+ color: $bg-body;
}
}
@@ -841,16 +841,16 @@
width: 16px;
height: 16px;
padding: 0;
- margin-left: @space-1;
- background: @danger;
+ margin-left: $space-1;
+ background: $danger;
border: none;
- border-radius: @radius-sm;
+ border-radius: $radius-sm;
color: white;
cursor: pointer;
- transition: all @transition-fast;
+ transition: all $transition-fast;
&:hover {
- background: darken(@danger, 10%);
+ background: darken($danger, 10%);
}
}
@@ -859,7 +859,7 @@
// ============================================
.workflow-handle {
- transition: all @transition-fast;
+ transition: all $transition-fast;
&:hover {
transform: scale(1.3);
@@ -869,13 +869,13 @@
// Connecting state - show valid handles
.react-flow__handle-connecting {
&.react-flow__handle-valid {
- background: @success !important;
- box-shadow: 0 0 6px fade(@success, 60%);
+ background: $success !important;
+ box-shadow: 0 0 6px fade($success, 60%);
}
&:not(.react-flow__handle-valid) {
- background: @danger !important;
- box-shadow: 0 0 6px fade(@danger, 60%);
+ background: $danger !important;
+ box-shadow: 0 0 6px fade($danger, 60%);
}
}
@@ -898,74 +898,74 @@
.workflow-toolbar {
position: absolute;
- top: @space-4;
- right: @space-4;
+ top: $space-4;
+ right: $space-4;
z-index: 15;
display: flex;
align-items: center;
- gap: @space-3;
- background: @bg-card;
- border: 1px solid @border-subtle;
- border-radius: @radius-lg;
- padding: @space-2 @space-3;
- box-shadow: @shadow-lg;
+ gap: $space-3;
+ background: $bg-card;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-lg;
+ padding: $space-2 $space-3;
+ box-shadow: $shadow-lg;
}
.toolbar-left {
display: flex;
align-items: center;
- gap: @space-3;
+ gap: $space-3;
}
.toolbar-right {
display: flex;
align-items: center;
- gap: @space-2;
+ gap: $space-2;
}
.workflow-name-input {
width: 180px;
- padding: @space-2 @space-3;
- background: @bg-body;
- border: 1px solid @border-subtle;
- border-radius: @radius-md;
- color: @text-primary;
- font-size: @font-size-sm;
- font-weight: @font-weight-medium;
- transition: border-color @transition-fast;
+ padding: $space-2 $space-3;
+ background: $bg-body;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-md;
+ color: $text-primary;
+ font-size: $font-size-sm;
+ font-weight: $font-weight-medium;
+ transition: border-color $transition-fast;
&:focus {
outline: none;
- border-color: @accent-primary;
+ border-color: $accent-primary;
}
&::placeholder {
- color: @text-tertiary;
+ color: $text-tertiary;
}
}
.workflow-id-badge {
- padding: @space-1 @space-2;
- background: @bg-hover;
- border-radius: @radius-sm;
- font-size: @font-size-xs;
- font-family: @font-mono;
- color: @text-tertiary;
+ padding: $space-1 $space-2;
+ background: $bg-hover;
+ border-radius: $radius-sm;
+ font-size: $font-size-xs;
+ font-family: $font-mono;
+ color: $text-tertiary;
}
.toolbar-btn {
display: flex;
align-items: center;
- gap: @space-2;
- padding: @space-2 @space-3;
+ gap: $space-2;
+ padding: $space-2 $space-3;
background: transparent;
- border: 1px solid @border-subtle;
- border-radius: @radius-md;
- color: @text-secondary;
- font-size: @font-size-sm;
- font-weight: @font-weight-medium;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-md;
+ color: $text-secondary;
+ font-size: $font-size-sm;
+ font-weight: $font-weight-medium;
cursor: pointer;
- transition: all @transition-fast;
+ transition: all $transition-fast;
white-space: nowrap;
svg {
@@ -973,9 +973,9 @@
}
&:hover {
- background: @bg-hover;
- border-color: @border-active;
- color: @text-primary;
+ background: $bg-hover;
+ border-color: $border-active;
+ color: $text-primary;
}
&:disabled {
@@ -985,13 +985,13 @@
}
.toolbar-btn-primary {
- background: @accent-primary;
- border-color: @accent-primary;
+ background: $accent-primary;
+ border-color: $accent-primary;
color: white;
&:hover {
- background: darken(@accent-primary-raw, 5%);
- border-color: darken(@accent-primary-raw, 5%);
+ background: darken($accent-primary-raw, 5%);
+ border-color: darken($accent-primary-raw, 5%);
color: white;
}
}
@@ -1000,14 +1000,14 @@
position: absolute;
top: 100%;
right: 0;
- margin-top: @space-2;
- padding: @space-2 @space-3;
- background: @success-bg;
- border: 1px solid @success-border;
- border-radius: @radius-md;
- color: @success;
- font-size: @font-size-xs;
- font-weight: @font-weight-medium;
+ margin-top: $space-2;
+ padding: $space-2 $space-3;
+ background: $success-bg;
+ border: 1px solid $success-border;
+ border-radius: $radius-md;
+ color: $success;
+ font-size: $font-size-xs;
+ font-weight: $font-weight-medium;
white-space: nowrap;
animation: slideDown 0.2s ease-out;
}
@@ -1022,7 +1022,7 @@
left: 0;
right: 0;
bottom: 0;
- background: fade(@bg-body-raw, 80%);
+ background: fade($bg-body-raw, 80%);
backdrop-filter: blur(4px);
display: flex;
align-items: center;
@@ -1044,10 +1044,10 @@
width: 500px;
max-width: 90vw;
max-height: 80vh;
- background: @bg-card;
- border: 1px solid @border-subtle;
- border-radius: @radius-xl;
- box-shadow: @shadow-lg;
+ background: $bg-card;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-xl;
+ box-shadow: $shadow-lg;
display: flex;
flex-direction: column;
animation: scaleIn 0.2s ease-out;
@@ -1068,14 +1068,14 @@
display: flex;
align-items: center;
justify-content: space-between;
- padding: @space-4 @space-5;
- border-bottom: 1px solid @border-subtle;
+ padding: $space-4 $space-5;
+ border-bottom: 1px solid $border-subtle;
h2 {
margin: 0;
- font-size: @font-size-lg;
- font-weight: @font-weight-semibold;
- color: @text-primary;
+ font-size: $font-size-lg;
+ font-weight: $font-weight-semibold;
+ color: $text-primary;
}
}
@@ -1087,31 +1087,31 @@
height: 32px;
background: transparent;
border: none;
- border-radius: @radius-md;
- color: @text-tertiary;
+ border-radius: $radius-md;
+ color: $text-tertiary;
cursor: pointer;
- transition: all @transition-fast;
+ transition: all $transition-fast;
&:hover {
- background: @bg-hover;
- color: @text-primary;
+ background: $bg-hover;
+ color: $text-primary;
}
}
.workflow-modal-content {
flex: 1;
overflow-y: auto;
- padding: @space-4;
- .custom-scrollbar();
+ padding: $space-4;
+ @include custom-scrollbar();
}
.workflow-list-loading {
display: flex;
flex-direction: column;
align-items: center;
- gap: @space-3;
- padding: @space-8;
- color: @text-tertiary;
+ gap: $space-3;
+ padding: $space-8;
+ color: $text-tertiary;
.spin {
animation: spin 1s linear infinite;
@@ -1131,23 +1131,23 @@
display: flex;
flex-direction: column;
align-items: center;
- gap: @space-3;
- padding: @space-8;
- color: @danger;
+ gap: $space-3;
+ padding: $space-8;
+ color: $danger;
button {
- padding: @space-2 @space-4;
- background: @danger;
+ padding: $space-2 $space-4;
+ background: $danger;
border: none;
- border-radius: @radius-md;
+ border-radius: $radius-md;
color: white;
- font-size: @font-size-sm;
- font-weight: @font-weight-medium;
+ font-size: $font-size-sm;
+ font-weight: $font-weight-medium;
cursor: pointer;
- transition: background @transition-fast;
+ transition: background $transition-fast;
&:hover {
- background: darken(@danger, 10%);
+ background: darken($danger, 10%);
}
}
}
@@ -1156,42 +1156,42 @@
display: flex;
flex-direction: column;
align-items: center;
- gap: @space-2;
- padding: @space-8;
- color: @text-tertiary;
+ gap: $space-2;
+ padding: $space-8;
+ color: $text-tertiary;
p {
margin: 0;
- font-size: @font-size-base;
- font-weight: @font-weight-medium;
- color: @text-secondary;
+ font-size: $font-size-base;
+ font-weight: $font-weight-medium;
+ color: $text-secondary;
}
span {
- font-size: @font-size-sm;
+ font-size: $font-size-sm;
}
}
.workflow-list {
display: flex;
flex-direction: column;
- gap: @space-2;
+ gap: $space-2;
}
.workflow-list-item {
display: flex;
align-items: center;
- gap: @space-3;
- padding: @space-3 @space-4;
- background: @bg-body;
- border: 1px solid @border-subtle;
- border-radius: @radius-lg;
+ gap: $space-3;
+ padding: $space-3 $space-4;
+ background: $bg-body;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-lg;
cursor: pointer;
- transition: all @transition-fast;
+ transition: all $transition-fast;
&:hover {
- border-color: @accent-primary;
- background: fade(@accent-primary-raw, 5%);
+ border-color: $accent-primary;
+ background: fade($accent-primary-raw, 5%);
}
}
@@ -1201,17 +1201,17 @@
}
.workflow-item-name {
- font-size: @font-size-sm;
- font-weight: @font-weight-semibold;
- color: @text-primary;
+ font-size: $font-size-sm;
+ font-weight: $font-weight-semibold;
+ color: $text-primary;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.workflow-item-desc {
- font-size: @font-size-xs;
- color: @text-tertiary;
+ font-size: $font-size-xs;
+ color: $text-tertiary;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
@@ -1221,29 +1221,29 @@
.workflow-item-meta {
display: flex;
flex-direction: column;
- gap: @space-1;
+ gap: $space-1;
flex-shrink: 0;
}
.workflow-item-stats {
display: flex;
- gap: @space-3;
+ gap: $space-3;
.stat {
display: flex;
align-items: center;
- gap: @space-1;
- font-size: @font-size-xs;
- color: @text-tertiary;
+ gap: $space-1;
+ font-size: $font-size-xs;
+ color: $text-tertiary;
}
}
.workflow-item-date {
display: flex;
align-items: center;
- gap: @space-1;
- font-size: @font-size-xs;
- color: @text-tertiary;
+ gap: $space-1;
+ font-size: $font-size-xs;
+ color: $text-tertiary;
}
.workflow-item-delete {
@@ -1254,16 +1254,16 @@
height: 32px;
background: transparent;
border: 1px solid transparent;
- border-radius: @radius-md;
- color: @text-tertiary;
+ border-radius: $radius-md;
+ color: $text-tertiary;
cursor: pointer;
- transition: all @transition-fast;
+ transition: all $transition-fast;
flex-shrink: 0;
&:hover {
- background: @danger-bg;
- border-color: @danger-border;
- color: @danger;
+ background: $danger-bg;
+ border-color: $danger-border;
+ color: $danger;
}
&:disabled {
@@ -1281,13 +1281,13 @@
// ============================================
.toolbar-btn-deploy {
- background: @success;
- border-color: @success;
+ background: $success;
+ border-color: $success;
color: white;
&:hover:not(:disabled) {
- background: darken(@success, 5%);
- border-color: darken(@success, 5%);
+ background: darken($success, 5%);
+ border-color: darken($success, 5%);
color: white;
}
@@ -1307,7 +1307,7 @@
left: 0;
right: 0;
bottom: 0;
- background: fade(@bg-body-raw, 80%);
+ background: fade($bg-body-raw, 80%);
backdrop-filter: blur(4px);
display: flex;
align-items: center;
@@ -1320,10 +1320,10 @@
width: 520px;
max-width: 90vw;
max-height: 80vh;
- background: @bg-card;
- border: 1px solid @border-subtle;
- border-radius: @radius-xl;
- box-shadow: @shadow-lg;
+ background: $bg-card;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-xl;
+ box-shadow: $shadow-lg;
display: flex;
flex-direction: column;
animation: scaleIn 0.2s ease-out;
@@ -1333,43 +1333,43 @@
display: flex;
align-items: center;
justify-content: space-between;
- padding: @space-4 @space-5;
- border-bottom: 1px solid @border-subtle;
+ padding: $space-4 $space-5;
+ border-bottom: 1px solid $border-subtle;
h2 {
margin: 0;
- font-size: @font-size-lg;
- font-weight: @font-weight-semibold;
- color: @text-primary;
+ font-size: $font-size-lg;
+ font-weight: $font-weight-semibold;
+ color: $text-primary;
}
}
.deployment-modal-content {
flex: 1;
overflow-y: auto;
- padding: @space-4;
- .custom-scrollbar();
+ padding: $space-4;
+ @include custom-scrollbar();
}
.deployment-modal-footer {
- padding: @space-4;
- border-top: 1px solid @border-subtle;
+ padding: $space-4;
+ border-top: 1px solid $border-subtle;
display: flex;
justify-content: flex-end;
.btn-primary {
- padding: @space-2 @space-5;
- background: @accent-primary;
+ padding: $space-2 $space-5;
+ background: $accent-primary;
border: none;
- border-radius: @radius-md;
+ border-radius: $radius-md;
color: white;
- font-size: @font-size-sm;
- font-weight: @font-weight-medium;
+ font-size: $font-size-sm;
+ font-weight: $font-weight-medium;
cursor: pointer;
- transition: background @transition-fast;
+ transition: background $transition-fast;
&:hover {
- background: darken(@accent-primary-raw, 5%);
+ background: darken($accent-primary-raw, 5%);
}
}
}
@@ -1378,9 +1378,9 @@
display: flex;
flex-direction: column;
align-items: center;
- gap: @space-3;
- padding: @space-8;
- color: @text-tertiary;
+ gap: $space-3;
+ padding: $space-8;
+ color: $text-tertiary;
.spin {
animation: spin 1s linear infinite;
@@ -1388,62 +1388,62 @@
p {
margin: 0;
- font-size: @font-size-base;
- font-weight: @font-weight-medium;
- color: @text-secondary;
+ font-size: $font-size-base;
+ font-weight: $font-weight-medium;
+ color: $text-secondary;
}
span {
- font-size: @font-size-sm;
+ font-size: $font-size-sm;
}
}
.deployment-summary {
display: flex;
align-items: center;
- gap: @space-3;
- padding: @space-3 @space-4;
- border-radius: @radius-md;
- margin-bottom: @space-4;
- font-size: @font-size-sm;
- font-weight: @font-weight-medium;
+ gap: $space-3;
+ padding: $space-3 $space-4;
+ border-radius: $radius-md;
+ margin-bottom: $space-4;
+ font-size: $font-size-sm;
+ font-weight: $font-weight-medium;
&.success {
- background: @success-bg;
- border: 1px solid @success-border;
- color: @success;
+ background: $success-bg;
+ border: 1px solid $success-border;
+ color: $success;
}
&.has-errors {
- background: @danger-bg;
- border: 1px solid @danger-border;
- color: @danger;
+ background: $danger-bg;
+ border: 1px solid $danger-border;
+ color: $danger;
}
}
.deployment-results {
display: flex;
flex-direction: column;
- gap: @space-2;
+ gap: $space-2;
}
.deployment-result-item {
display: flex;
align-items: center;
- gap: @space-3;
- padding: @space-3 @space-4;
- background: @bg-body;
- border: 1px solid @border-subtle;
- border-radius: @radius-md;
- transition: all @transition-fast;
+ gap: $space-3;
+ padding: $space-3 $space-4;
+ background: $bg-body;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-md;
+ transition: all $transition-fast;
&.success {
- border-color: fade(@success, 30%);
+ border-color: fade($success, 30%);
}
&.error {
- border-color: fade(@danger, 30%);
- background: fade(@danger, 5%);
+ border-color: fade($danger, 30%);
+ background: fade($danger, 5%);
}
&.pending {
@@ -1457,7 +1457,7 @@
justify-content: center;
width: 32px;
height: 32px;
- border-radius: @radius-md;
+ border-radius: $radius-md;
color: white;
flex-shrink: 0;
}
@@ -1468,17 +1468,17 @@
}
.result-name {
- font-size: @font-size-sm;
- font-weight: @font-weight-medium;
- color: @text-primary;
+ font-size: $font-size-sm;
+ font-weight: $font-weight-medium;
+ color: $text-primary;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.result-type {
- font-size: @font-size-xs;
- color: @text-tertiary;
+ font-size: $font-size-xs;
+ color: $text-tertiary;
}
.result-status {
@@ -1488,20 +1488,20 @@
.spin {
animation: spin 1s linear infinite;
- color: @text-tertiary;
+ color: $text-tertiary;
}
.status-success {
- color: @success;
+ color: $success;
}
.status-error {
- color: @danger;
+ color: $danger;
}
.status-pending {
- font-size: @font-size-xs;
- color: @text-tertiary;
+ font-size: $font-size-xs;
+ color: $text-tertiary;
}
}
@@ -1512,42 +1512,42 @@
width: 28px;
height: 28px;
background: transparent;
- border: 1px solid @border-subtle;
- border-radius: @radius-sm;
- color: @text-tertiary;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-sm;
+ color: $text-tertiary;
text-decoration: none;
- transition: all @transition-fast;
+ transition: all $transition-fast;
flex-shrink: 0;
&:hover {
- background: @bg-hover;
- border-color: @accent-primary;
- color: @accent-primary;
+ background: $bg-hover;
+ border-color: $accent-primary;
+ color: $accent-primary;
}
}
.deployment-errors {
- margin-top: @space-4;
- padding: @space-3;
- background: @danger-bg;
- border: 1px solid @danger-border;
- border-radius: @radius-md;
+ margin-top: $space-4;
+ padding: $space-3;
+ background: $danger-bg;
+ border: 1px solid $danger-border;
+ border-radius: $radius-md;
h4 {
- margin: 0 0 @space-2;
- font-size: @font-size-sm;
- font-weight: @font-weight-semibold;
- color: @danger;
+ margin: 0 0 $space-2;
+ font-size: $font-size-sm;
+ font-weight: $font-weight-semibold;
+ color: $danger;
}
}
.error-item {
display: flex;
align-items: flex-start;
- gap: @space-2;
- padding: @space-2 0;
- font-size: @font-size-xs;
- color: @danger;
+ gap: $space-2;
+ padding: $space-2 0;
+ font-size: $font-size-xs;
+ color: $danger;
svg {
flex-shrink: 0;
@@ -1555,7 +1555,7 @@
}
&:not(:last-child) {
- border-bottom: 1px solid fade(@danger, 20%);
+ border-bottom: 1px solid fade($danger, 20%);
}
}
@@ -1564,7 +1564,7 @@
// ============================================
.workflow-node.deployed {
- border-color: @success;
+ border-color: $success;
&::after {
content: '';
@@ -1573,8 +1573,8 @@
right: -4px;
width: 12px;
height: 12px;
- background: @success;
- border: 2px solid @bg-card;
+ background: $success;
+ border: 2px solid $bg-card;
border-radius: 50%;
}
}
@@ -1584,10 +1584,10 @@
// ============================================
.workflow-node.is-real {
- border-color: @accent-primary;
+ border-color: $accent-primary;
.workflow-node-header {
- background: fade(@accent-primary-raw, 15%);
+ background: fade($accent-primary-raw, 15%);
}
}
@@ -1598,31 +1598,31 @@
.palette-submenu {
display: flex;
flex-direction: column;
- gap: @space-1;
- margin-left: @space-3;
- margin-bottom: @space-2;
- padding-left: @space-2;
- border-left: 2px solid @border-subtle;
+ gap: $space-1;
+ margin-left: $space-3;
+ margin-bottom: $space-2;
+ padding-left: $space-2;
+ border-left: 2px solid $border-subtle;
}
.palette-subitem {
display: flex;
align-items: center;
justify-content: space-between;
- gap: @space-2;
- padding: @space-2;
- background: @bg-body;
- border: 1px solid @border-subtle;
- border-radius: @radius-sm;
- color: @text-secondary;
- font-size: @font-size-xs;
+ gap: $space-2;
+ padding: $space-2;
+ background: $bg-body;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-sm;
+ color: $text-secondary;
+ font-size: $font-size-xs;
cursor: pointer;
- transition: all @transition-fast;
+ transition: all $transition-fast;
&:hover {
- background: @bg-hover;
- border-color: @accent-primary;
- color: @text-primary;
+ background: $bg-hover;
+ border-color: $accent-primary;
+ color: $text-primary;
}
.status-badge {
@@ -1632,21 +1632,21 @@
}
.palette-empty {
- padding: @space-2;
- color: @text-tertiary;
- font-size: @font-size-xs;
+ padding: $space-2;
+ color: $text-tertiary;
+ font-size: $font-size-xs;
font-style: italic;
}
.palette-section-info {
margin-top: auto;
- padding-top: @space-3;
- border-top: 1px solid @border-subtle;
+ padding-top: $space-3;
+ border-top: 1px solid $border-subtle;
}
.palette-hint {
- font-size: @font-size-xs;
- color: @text-tertiary;
+ font-size: $font-size-xs;
+ color: $text-tertiary;
line-height: 1.4;
}
@@ -1657,20 +1657,20 @@
.node-domains {
display: flex;
flex-wrap: wrap;
- gap: @space-1;
- margin-top: @space-2;
+ gap: $space-1;
+ margin-top: $space-2;
}
.node-domain-pill {
display: inline-flex;
align-items: center;
gap: 4px;
- padding: 2px @space-2;
- background: fade(@success, 15%);
- border: 1px solid fade(@success, 30%);
- border-radius: @radius-full;
+ padding: 2px $space-2;
+ background: fade($success, 15%);
+ border: 1px solid fade($success, 30%);
+ border-radius: $radius-full;
font-size: 10px;
- color: @success;
+ color: $success;
svg {
opacity: 0.7;
@@ -1679,33 +1679,33 @@
.node-domain-more {
font-size: 10px;
- color: @text-tertiary;
- padding: 2px @space-1;
+ color: $text-tertiary;
+ padding: 2px $space-1;
}
// ============================================
// PRIVATE URL IN NODE
// ============================================
-@color-info: #22d3ee;
+$color-info: #22d3ee;
.node-detail-private-url {
display: flex;
align-items: center;
- gap: @space-1;
- margin-top: @space-2;
- padding: @space-1 @space-2;
- background: fade(@color-info, 10%);
- border-radius: @radius-sm;
+ gap: $space-1;
+ margin-top: $space-2;
+ padding: $space-1 $space-2;
+ background: fade($color-info, 10%);
+ border-radius: $radius-sm;
svg {
- color: @color-info;
+ color: $color-info;
flex-shrink: 0;
}
.node-detail-value {
font-size: 10px;
- color: @color-info;
+ color: $color-info;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
@@ -1717,13 +1717,13 @@
// ============================================
.toolbar-btn-overview {
- background: fade(@color-info, 15%) !important;
- border-color: fade(@color-info, 30%) !important;
- color: @color-info !important;
+ background: fade($color-info, 15%) !important;
+ border-color: fade($color-info, 30%) !important;
+ color: $color-info !important;
&:hover:not(:disabled) {
- background: fade(@color-info, 25%) !important;
- border-color: @color-info !important;
+ background: fade($color-info, 25%) !important;
+ border-color: $color-info !important;
}
}
@@ -1732,47 +1732,47 @@
// ============================================
.form-value {
- padding: @space-2 @space-3;
- background: @bg-body;
- border: 1px solid @border-subtle;
- border-radius: @radius-md;
- font-size: @font-size-sm;
- color: @text-primary;
+ padding: $space-2 $space-3;
+ background: $bg-body;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-md;
+ font-size: $font-size-sm;
+ color: $text-primary;
&.status-badge {
display: inline-flex;
- padding: @space-1 @space-2;
- border-radius: @radius-sm;
- font-size: @font-size-xs;
- font-weight: @font-weight-medium;
+ padding: $space-1 $space-2;
+ border-radius: $radius-sm;
+ font-size: $font-size-xs;
+ font-weight: $font-weight-medium;
text-transform: capitalize;
}
&.status-running {
- background: @success-bg;
- border-color: @success-border;
- color: @success;
+ background: $success-bg;
+ border-color: $success-border;
+ color: $success;
}
&.status-stopped {
- background: @bg-body;
- border-color: @border-subtle;
- color: @text-tertiary;
+ background: $bg-body;
+ border-color: $border-subtle;
+ color: $text-tertiary;
}
&.status-error {
- background: @danger-bg;
- border-color: @danger-border;
- color: @danger;
+ background: $danger-bg;
+ border-color: $danger-border;
+ color: $danger;
}
}
.form-value-link {
display: flex;
align-items: center;
- gap: @space-2;
+ gap: $space-2;
cursor: pointer;
- color: @accent-primary;
+ color: $accent-primary;
&:hover {
text-decoration: underline;
@@ -1787,37 +1787,37 @@
.form-domains {
display: flex;
flex-direction: column;
- gap: @space-2;
+ gap: $space-2;
}
.form-domain-item {
display: flex;
align-items: center;
- gap: @space-2;
- padding: @space-2;
- background: @bg-body;
- border: 1px solid @border-subtle;
- border-radius: @radius-md;
- font-size: @font-size-sm;
+ gap: $space-2;
+ padding: $space-2;
+ background: $bg-body;
+ border: 1px solid $border-subtle;
+ border-radius: $radius-md;
+ font-size: $font-size-sm;
svg {
- color: @success;
+ color: $success;
}
.ssl-badge {
margin-left: auto;
padding: 2px 6px;
- background: @success-bg;
- border-radius: @radius-sm;
+ background: $success-bg;
+ border-radius: $radius-sm;
font-size: 10px;
- font-weight: @font-weight-medium;
- color: @success;
+ font-weight: $font-weight-medium;
+ color: $success;
}
}
.action-buttons {
display: flex;
- gap: @space-2;
+ gap: $space-2;
flex-wrap: wrap;
.btn {
@@ -1827,13 +1827,13 @@
}
.action-message {
- margin-top: @space-2;
- padding: @space-2;
- background: @success-bg;
- border: 1px solid @success-border;
- border-radius: @radius-sm;
- font-size: @font-size-xs;
- color: @success;
+ margin-top: $space-2;
+ padding: $space-2;
+ background: $success-bg;
+ border: 1px solid $success-border;
+ border-radius: $radius-sm;
+ font-size: $font-size-xs;
+ color: $success;
text-align: center;
}
diff --git a/frontend/src/styles/pages/_workspaces.less b/frontend/src/styles/pages/_workspaces.scss
similarity index 66%
rename from frontend/src/styles/pages/_workspaces.less
rename to frontend/src/styles/pages/_workspaces.scss
index a269e617..24258f71 100644
--- a/frontend/src/styles/pages/_workspaces.less
+++ b/frontend/src/styles/pages/_workspaces.scss
@@ -4,15 +4,15 @@
.workspaces-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
- gap: @spacing-lg;
- margin-top: @spacing-lg;
+ gap: $spacing-lg;
+ margin-top: $spacing-lg;
}
.workspace-card {
- padding: @spacing-lg;
+ padding: $spacing-lg;
display: flex;
flex-direction: column;
- gap: @spacing-sm;
+ gap: $spacing-sm;
&__header {
display: flex;
@@ -23,7 +23,7 @@
&__title {
display: flex;
align-items: center;
- gap: @spacing-sm;
+ gap: $spacing-sm;
h3 { margin: 0; }
}
@@ -36,51 +36,51 @@
}
&__desc {
- color: @text-secondary;
+ color: $text-secondary;
font-size: 0.9rem;
margin: 0;
}
&__meta {
display: flex;
- gap: @spacing-md;
+ gap: $spacing-md;
font-size: 0.85rem;
- color: @text-muted;
+ color: $text-muted;
}
&__quotas {
display: flex;
- gap: @spacing-sm;
+ gap: $spacing-sm;
font-size: 0.8rem;
span {
padding: 2px 8px;
- background: @hover-bg;
- border-radius: @radius-sm;
+ background: $hover-bg;
+ border-radius: $radius-sm;
}
}
&__actions {
display: flex;
- gap: @spacing-sm;
- margin-top: @spacing-sm;
- padding-top: @spacing-sm;
- border-top: 1px solid @border-color;
+ gap: $spacing-sm;
+ margin-top: $spacing-sm;
+ padding-top: $spacing-sm;
+ border-top: 1px solid $border-color;
}
}
.members-list {
display: flex;
flex-direction: column;
- gap: @spacing-sm;
+ gap: $spacing-sm;
}
.member-row {
display: flex;
justify-content: space-between;
align-items: center;
- padding: @spacing-sm 0;
- border-bottom: 1px solid @border-color;
+ padding: $spacing-sm 0;
+ border-bottom: 1px solid $border-color;
&:last-child { border-bottom: none; }
}
@@ -88,7 +88,7 @@
.form-row {
display: grid;
grid-template-columns: 1fr 1fr;
- gap: @spacing-md;
+ gap: $spacing-md;
}
.server-select-list {
@@ -97,9 +97,9 @@
}
.server-select-item {
- padding: @spacing-sm @spacing-md;
+ padding: $spacing-sm $spacing-md;
cursor: pointer;
- border-radius: @radius-md;
- &:hover { background: @hover-bg; }
+ border-radius: $radius-md;
+ &:hover { background: $hover-bg; }
}
}
diff --git a/frontend/vite.config.js b/frontend/vite.config.js
index ac8325f3..75040fcf 100644
--- a/frontend/vite.config.js
+++ b/frontend/vite.config.js
@@ -12,6 +12,16 @@ export default defineConfig({
interval: 1000,
},
},
+ css: {
+ preprocessorOptions: {
+ scss: {
+ // Silence Dart Sass deprecation warnings for @import and slash-div
+ // These are expected during migration from LESS and will be addressed
+ // when moving to @use/@forward module system
+ silenceDeprecations: ['import', 'slash-div', 'legacy-js-api', 'global-builtin'],
+ },
+ },
+ },
build: {
sourcemap: false,
rollupOptions: {