Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions src/backend/data_visualization.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,25 @@ def ensure_compatibility(self, existing_data, new_component_data):
"new_component_defcon_data": new_component_data.get("defcon_data", {})
}
return compatible_data

def link_frontend_components(self, frontend_data):
# Placeholder for linking frontend components to backend
linked_data = {
"frontend_device_data": frontend_data.get("device_data", {}),
"frontend_traffic_data": frontend_data.get("traffic_data", {}),
"frontend_log_data": frontend_data.get("log_data", {}),
"frontend_threat_data": frontend_data.get("threat_data", {}),
"frontend_defcon_data": frontend_data.get("defcon_data", {})
}
return linked_data

def verify_control_mechanisms(self, control_data):
# Placeholder for verifying control mechanisms
verified_data = {
"control_device_data": control_data.get("device_data", {}),
"control_traffic_data": control_data.get("traffic_data", {}),
"control_log_data": control_data.get("log_data", {}),
"control_threat_data": control_data.get("threat_data", {}),
"control_defcon_data": control_data.get("defcon_data", {})
}
return verified_data
14 changes: 14 additions & 0 deletions src/backend/home_feed.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,17 @@ def save_activities(self):
def save_notifications(self):
with open(self.notifications_file, 'w') as file:
json.dump(self.notifications, file)

def link_frontend_components(self, frontend_data):
linked_data = {
"frontend_activities": frontend_data.get("activities", []),
"frontend_notifications": frontend_data.get("notifications", [])
}
return linked_data

def verify_control_mechanisms(self, control_data):
verified_data = {
"control_activities": control_data.get("activities", []),
"control_notifications": control_data.get("notifications", [])
}
return verified_data
18 changes: 18 additions & 0 deletions src/frontend/admin_profile.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,27 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Admin Profile and Account Settings</title>
<link rel="stylesheet" href="styles.css">
<link rel="stylesheet" href="admin_login.css">
</head>
<body>
<header>
<h1>Admin Profile and Account Settings</h1>
<nav>
<ul>
<li><a href="index.html">Main Dashboard</a></li>
<li><a href="analytics_dashboard.html">Analytics Dashboard</a></li>
<li><a href="c2_panel.html">C2 Panel</a></li>
<li><a href="chatbot_dashboard.html">Chatbot Dashboard</a></li>
<li><a href="feature_pages.html">Feature Pages</a></li>
<li><a href="osint_tools_dashboard.html">OSINT Tools Dashboard</a></li>
<li><a href="rat_dashboard.html">RAT Dashboard</a></li>
<li><a href="rss_dashboard.html">RSS Dashboard</a></li>
<li><a href="shodan_dashboard.html">Shodan Dashboard</a></li>
<li><a href="simplenote_dashboard.html">Simplenote Dashboard</a></li>
<li><a href="trojan_dashboard.html">Trojan Dashboard</a></li>
<li><a href="zenmap_dashboard.html">Zenmap Dashboard</a></li>
</ul>
</nav>
</header>
<main>
<section id="admin-profile">
Expand Down Expand Up @@ -43,5 +60,6 @@ <h2>Account Settings</h2>
<p>&copy; 2023 ProjectZeroDays. All rights reserved.</p>
</footer>
<script src="scripts.js"></script>
<script src="admin_login.js"></script>
</body>
</html>
59 changes: 48 additions & 11 deletions src/frontend/ai_chatbox_settings.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,57 @@
color: #ffffff;
font-family: Arial, sans-serif;
}
.header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1rem;
background-color: #1e293b;
}
.header a {
color: #ffffff;
text-decoration: none;
font-size: 1.25rem;
}
.sidebar {
width: 200px;
background-color: #1e293b;
padding: 1rem;
position: fixed;
top: 0;
bottom: 0;
left: 0;
}
.sidebar a {
display: block;
color: #ffffff;
text-decoration: none;
margin-bottom: 1rem;
}
.content {
margin-left: 220px;
padding: 1rem;
}
</style>
</head>
<body>
<div id="app" class="p-4">
<div class="flex items-center justify-between mb-4">
<div class="flex items-center space-x-2">
<i class="fas fa-home text-white"></i>
<span class="text-gray-400">venice.ai/chat/XZi</span>
</div>
<div class="flex items-center space-x-2">
<i class="fas fa-share-alt text-white"></i>
<i class="fas fa-ellipsis-v text-white"></i>
</div>
<div class="header">
<a href="index.html">Main Dashboard</a>
<div>
<i class="fas fa-share-alt text-white"></i>
<i class="fas fa-ellipsis-v text-white"></i>
</div>
</div>
<div class="sidebar">
<a href="admin_profile.html">Admin Profile</a>
<a href="ai_chatbox_settings.html">AI Chatbox Settings</a>
<a href="ai_code_review.html">AI Code Review</a>
<a href="c2_panel.html">C2 Panel</a>
<a href="chatbot_dashboard.html">Chatbot Dashboard</a>
<a href="feature_pages.html">Feature Pages</a>
<a href="settings.html">Settings</a>
</div>
<div id="app" class="content">
<div class="text-center text-white text-2xl mb-4">Settings</div>
<div class="flex justify-center space-x-4 mb-4">
<div class="text-gray-400">Text</div>
Expand Down Expand Up @@ -68,4 +105,4 @@
}).mount('#app');
</script>
</body>
</html>
</html>
127 changes: 103 additions & 24 deletions src/frontend/ai_code_review.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,77 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>AI Code Review</title>
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css">
<style>
body { font-family: sans-serif; margin: 20px; }
button { margin: 5px; padding: 8px 12px; cursor: pointer; }
textarea { width: 100%; height: 100px; margin: 5px 0; }
pre { border: 1px solid #ccc; padding: 10px; overflow-x: auto; }
.error { color: red; }
.success { color: green; }
.loading { opacity: 0.6; pointer-events: none; }
.form-group { margin-bottom: 10px; }
.form-group label { display: block; margin-bottom: 5px; }
body {
background-color: #0f172a;
color: #ffffff;
font-family: Arial, sans-serif;
}
.header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1rem;
background-color: #1e293b;
}
.header a {
color: #ffffff;
text-decoration: none;
font-size: 1.25rem;
}
.sidebar {
width: 200px;
background-color: #1e293b;
padding: 1rem;
position: fixed;
top: 0;
bottom: 0;
left: 0;
}
.sidebar a {
display: block;
color: #ffffff;
text-decoration: none;
margin-bottom: 1rem;
}
.content {
margin-left: 220px;
padding: 1rem;
}
button {
margin: 5px;
padding: 8px 12px;
cursor: pointer;
}
textarea {
width: 100%;
height: 100px;
margin: 5px 0;
}
pre {
border: 1px solid #ccc;
padding: 10px;
overflow-x: auto;
}
.error {
color: red;
}
.success {
color: green;
}
.loading {
opacity: 0.6;
pointer-events: none;
}
.form-group {
margin-bottom: 10px;
}
.form-group label {
display: block;
margin-bottom: 5px;
}
button.loading::after {
content: "";
position: absolute;
Expand All @@ -34,26 +95,44 @@
</style>
</head>
<body>
<h1>AI Code Review</h1>

<div class="form-group">
<label for="apiKey">API Key:</label>
<input type="text" id="apiKey" placeholder="Enter API Key" required>
<button onclick="saveApiKey()">Save API Key</button>
<div class="header">
<a href="index.html">Main Dashboard</a>
<div>
<i class="fas fa-share-alt text-white"></i>
<i class="fas fa-ellipsis-v text-white"></i>
</div>
</div>
<div class="sidebar">
<a href="admin_profile.html">Admin Profile</a>
<a href="ai_chatbox_settings.html">AI Chatbox Settings</a>
<a href="ai_code_review.html">AI Code Review</a>
<a href="c2_panel.html">C2 Panel</a>
<a href="chatbot_dashboard.html">Chatbot Dashboard</a>
<a href="feature_pages.html">Feature Pages</a>
<a href="settings.html">Settings</a>
</div>
<div class="content">
<h1>AI Code Review</h1>

<h2>Upload Code for Review</h2>
<form id="uploadCodeForm">
<div class="form-group">
<label for="codeFile">Select Code File:</label>
<input type="file" id="codeFile" required>
<label for="apiKey">API Key:</label>
<input type="text" id="apiKey" placeholder="Enter API Key" required>
<button onclick="saveApiKey()">Save API Key</button>
</div>
<button type="submit">Upload</button>
</form>
<pre id="uploadResult"></pre>

<h2>AI Code Review Results</h2>
<div id="reviewResults"></div>
<h2>Upload Code for Review</h2>
<form id="uploadCodeForm">
<div class="form-group">
<label for="codeFile">Select Code File:</label>
<input type="file" id="codeFile" required>
</div>
<button type="submit">Upload</button>
</form>
<pre id="uploadResult"></pre>

<h2>AI Code Review Results</h2>
<div id="reviewResults"></div>
</div>

<script>
const API_BASE_URL = '/api/ai_code_review'; // Backend API endpoint
Expand Down
37 changes: 34 additions & 3 deletions src/frontend/analytics_dashboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,27 +9,58 @@
body {
background-color: #f8f9fa;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
.dashboard-container {
background-color: #fff;
padding: 30px;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
flex-grow: 1;
margin-left: 250px; /* Adjust for sidebar width */
}
.dashboard-container h2 {
margin-bottom: 20px;
}
.chart {
margin-bottom: 20px;
}
#sidebar {
width: 250px;
background-color: #343a40;
color: white;
height: 100vh;
padding: 20px;
position: fixed;
top: 0;
left: 0;
}
#sidebar a {
color: white;
display: block;
margin-bottom: 10px;
}
</style>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
</head>
<body>

<!-- Sidebar -->
<nav id="sidebar">
<h2>Dashboard</h2>
<a href="main_dashboard.html">Main Dashboard</a>
<a href="analytics_dashboard.html">Analytics Dashboard</a>
<a href="c2_panel.html">C2 Panel</a>
<a href="chatbot_dashboard.html">Chatbot Dashboard</a>
<a href="feature_pages.html">Feature Pages</a>
<a href="osint_tools_dashboard.html">OSINT Tools Dashboard</a>
<a href="rat_dashboard.html">RAT Dashboard</a>
<a href="rss_dashboard.html">RSS Dashboard</a>
<a href="shodan_dashboard.html">Shodan Dashboard</a>
<a href="simplenote_dashboard.html">SimpleNote Dashboard</a>
<a href="trojan_dashboard.html">Trojan Dashboard</a>
<a href="zenmap_dashboard.html">Zenmap Dashboard</a>
</nav>

<div class="dashboard-container">
<h2>Analytics Dashboard</h2>
<div class="chart">
Expand Down
13 changes: 12 additions & 1 deletion src/frontend/c2_panel.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,18 @@
<!-- Sidebar -->
<nav id="sidebar">
<h2>C2 Panel</h2>
<a href="#">Dashboard</a>
<a href="main_dashboard.html">Main Dashboard</a>
<a href="analytics_dashboard.html">Analytics Dashboard</a>
<a href="c2_panel.html">C2 Panel</a>
<a href="chatbot_dashboard.html">Chatbot Dashboard</a>
<a href="feature_pages.html">Feature Pages</a>
<a href="osint_tools_dashboard.html">OSINT Tools Dashboard</a>
<a href="rat_dashboard.html">RAT Dashboard</a>
<a href="rss_dashboard.html">RSS Dashboard</a>
<a href="shodan_dashboard.html">Shodan Dashboard</a>
<a href="simplenote_dashboard.html">SimpleNote Dashboard</a>
<a href="trojan_dashboard.html">Trojan Dashboard</a>
<a href="zenmap_dashboard.html">Zenmap Dashboard</a>
<a href="#">Devices</a>
<a href="#">Logs</a>
<a href="#">Settings</a>
Expand Down
Loading
Loading