Remove dead code from profile and password proxy systems

Strip ~966 lines of unused code after transitioning to cookie-only
auth: profile CRUD handlers, encryption helpers, username/password
proxy launcher, proxy check/version handlers, dead preload methods,
orphaned CSS (modals, profiles, nav tabs, collapsible sections),
unused DOM elements and renderer functions.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Zac
2026-02-09 21:27:11 -05:00
parent ec5989cf02
commit 0f12915b47
5 changed files with 4 additions and 966 deletions
+2 -400
View File
@@ -42,37 +42,6 @@ body {
flex-direction: column;
}
/* Navigation Tabs */
.nav-tabs {
display: flex;
background: var(--bg-secondary);
border-bottom: 1px solid var(--border);
padding: 0;
}
.nav-tab {
background: transparent;
border: none;
color: var(--text-secondary);
padding: 12px 24px;
font-size: 12px;
font-weight: bold;
cursor: pointer;
transition: all 0.2s ease;
border-bottom: 2px solid transparent;
}
.nav-tab:hover {
background: var(--hover-bg);
color: var(--text-primary);
}
.nav-tab.active {
color: var(--tab-active);
border-bottom-color: var(--tab-active);
background: var(--bg-primary);
}
/* Main Layout */
.main-layout {
flex: 1;
@@ -172,31 +141,6 @@ body {
border-color: var(--accent-primary);
}
.device-item.proxy-active {
border-color: var(--success);
box-shadow: 0 0 8px rgba(76, 175, 80, 0.3);
}
.device-item.proxy-active::before {
content: "PROXY ACTIVE";
position: absolute;
top: -8px;
right: 8px;
background: var(--success);
color: white;
font-size: 10px;
font-weight: bold;
padding: 2px 6px;
border-radius: 8px;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.device-item.selected.proxy-active {
border-color: var(--success);
box-shadow: 0 0 8px rgba(76, 175, 80, 0.5);
}
.device-name {
font-size: 14px;
font-weight: bold;
@@ -269,45 +213,6 @@ body {
letter-spacing: 0.5px;
}
/* Profile Controls - Smaller and more compact */
.profile-section {
padding: 12px 20px;
}
.profile-controls {
margin-bottom: 0;
}
.profile-row {
display: flex;
align-items: center;
gap: 12px;
margin-bottom: 0;
}
.profile-row label {
font-size: 14px;
font-weight: bold;
color: var(--text-primary);
min-width: 100px;
}
.profile-row select {
flex: 1;
padding: 8px 12px;
border: 1px solid var(--button-outline);
border-radius: 4px;
font-size: 14px;
background: var(--input-bg);
color: var(--text-primary);
max-width: 250px;
}
.profile-row select:focus {
outline: none;
border-color: var(--accent-primary);
}
/* Buttons */
button {
font-family: inherit;
@@ -354,39 +259,6 @@ button:disabled {
cursor: not-allowed;
}
/* Selected Profile Info */
.selected-profile-info {
background: var(--bg-secondary);
border: 1px solid var(--border);
border-radius: 4px;
padding: 12px;
margin-top: 8px;
}
.selected-profile-info p {
margin: 0;
color: var(--text-secondary);
font-style: italic;
font-size: 8px;
}
.selected-profile-info.has-profile p {
color: var(--text-primary);
font-style: normal;
}
.profile-detail {
display: flex;
justify-content: space-between;
margin: 4px 0;
font-size: 8px;
}
.profile-detail strong {
color: var(--text-primary);
font-weight: bold;
}
/* Connection Status */
.connection-status {
margin-bottom: 16px;
@@ -522,208 +394,6 @@ button:disabled {
border-color: var(--accent-primary);
}
/* Modal Styles */
.modal {
display: none;
position: fixed;
z-index: 1000;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.7);
backdrop-filter: blur(4px);
}
.modal-content {
background-color: var(--card-bg);
margin: 2vh auto;
padding: 0;
border-radius: 8px;
width: clamp(400px, 80vw, 800px);
max-height: 90vh;
border: 1px solid var(--border);
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
animation: modalSlideIn 0.3s ease;
overflow: hidden;
display: flex;
flex-direction: column;
}
@keyframes modalSlideIn {
from {
opacity: 0;
transform: translateY(-30px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.modal-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 16px 20px;
border-bottom: 1px solid var(--border);
background: var(--bg-secondary);
border-radius: 8px 8px 0 0;
}
.modal-header h3 {
margin: 0;
font-size: clamp(16px, 2.5vw, 20px);
font-weight: bold;
color: var(--text-primary);
}
.close {
color: var(--text-secondary);
font-size: clamp(20px, 3vw, 28px);
font-weight: bold;
cursor: pointer;
line-height: 1;
transition: color 0.2s ease;
}
.close:hover {
color: var(--text-primary);
}
.modal form {
padding: 20px;
}
.form-group {
margin-bottom: 16px;
}
.form-group label {
display: block;
margin-bottom: 8px;
font-weight: bold;
font-size: clamp(14px, 2vw, 18px);
color: var(--text-primary);
}
.form-group input {
width: 100%;
padding: clamp(8px, 1.5vw, 12px) clamp(12px, 2vw, 16px);
border: 1px solid var(--button-outline);
border-radius: 4px;
font-size: clamp(14px, 2vw, 18px);
background: var(--input-bg);
color: var(--text-primary);
transition: border-color 0.2s ease;
}
.form-group input:focus {
outline: none;
border-color: var(--accent-primary);
}
.modal-buttons {
display: flex;
justify-content: flex-end;
gap: 8px;
padding: 16px 20px;
border-top: 1px solid var(--border);
background: var(--bg-secondary);
border-radius: 0 0 8px 8px;
}
.modal-btn {
padding: clamp(8px, 1.5vw, 12px) clamp(16px, 2.5vw, 24px);
font-size: clamp(14px, 2vw, 18px);
font-weight: bold;
}
.modal-btn.primary {
background: var(--accent-primary);
color: white;
}
.modal-btn.secondary {
background: var(--button-outline);
color: var(--text-primary);
}
/* Profiles List */
.profiles-list {
max-height: 60vh;
overflow-y: auto;
padding: clamp(16px, 2.5vw, 24px) clamp(20px, 3vw, 32px);
flex: 1;
}
.profile-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: clamp(12px, 2vw, 18px);
margin-bottom: clamp(8px, 1.5vw, 12px);
background: var(--bg-secondary);
border: 1px solid var(--border);
border-radius: 4px;
transition: background-color 0.2s ease;
}
.profile-item:hover {
background: var(--hover-bg);
}
.profile-info h4 {
margin: 0 0 clamp(4px, 1vw, 8px) 0;
color: var(--text-primary);
font-size: clamp(14px, 2vw, 18px);
font-weight: bold;
}
.profile-info p {
margin: 0;
color: var(--text-secondary);
font-size: clamp(12px, 1.8vw, 16px);
}
.profile-actions {
display: flex;
gap: 6px;
}
.profile-action-btn {
padding: clamp(6px, 1vw, 10px) clamp(8px, 1.5vw, 12px);
font-size: clamp(12px, 1.8vw, 16px);
font-weight: bold;
border: none;
border-radius: 3px;
cursor: pointer;
transition: all 0.2s ease;
min-width: clamp(50px, 8vw, 80px);
}
.profile-action-btn.edit {
background: var(--warning);
color: white;
}
.profile-action-btn.delete {
background: var(--error);
color: white;
}
.profile-action-btn:hover {
opacity: 0.8;
}
.no-profiles {
text-align: center;
color: var(--text-secondary);
font-style: italic;
padding: clamp(30px, 5vw, 50px);
font-size: clamp(14px, 2vw, 18px);
}
/* Dark Scrollbars */
::-webkit-scrollbar {
width: 6px;
@@ -759,44 +429,16 @@ button:disabled {
.devices-sidebar {
width: 150px;
}
.main-content {
padding: 16px;
}
.profile-row,
.connection-controls,
.proxy-buttons {
flex-direction: column;
gap: 8px;
}
.profile-row select {
max-width: none;
}
.modal-content {
width: 95vw;
margin: 1vh auto;
}
.profile-item {
flex-direction: column;
align-items: flex-start;
gap: 12px;
}
.profile-actions {
align-self: stretch;
justify-content: flex-end;
}
}
/* Large screen optimizations */
@media (min-width: 1200px) {
.modal-content {
max-width: 900px;
}
}
/* Focus States for Accessibility */
@@ -816,43 +458,3 @@ select:focus {
}
}
/* Collapsible Section Styles */
.collapsible-header {
display: flex;
align-items: center;
justify-content: space-between;
cursor: pointer;
padding: 0;
margin: 0 0 16px 0;
transition: all 0.2s ease;
}
.collapsible-header:hover {
opacity: 0.8;
}
.collapsible-header h2 {
margin: 0;
flex: 1;
}
.collapse-icon {
font-size: 16px;
color: var(--accent-primary);
font-weight: bold;
transition: transform 0.3s ease;
margin-left: 8px;
}
.collapse-icon.expanded {
transform: rotate(180deg);
}
.collapsible-content {
transition: all 0.3s ease;
overflow: hidden;
}
.collapsible-content.collapsed {
display: none !important;
}