mirror of
https://github.com/Dvorinka/Trackeep.git
synced 2026-06-03 20:12:58 +00:00
532 lines
13 KiB
HTML
532 lines
13 KiB
HTML
<!DOCTYPE html>
|
||
<html lang="en" data-kb-theme="dark">
|
||
<head>
|
||
<meta charset="UTF-8" />
|
||
<title>Trackeep Saver – Options</title>
|
||
<style>
|
||
/* Modern Inter Font */
|
||
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
|
||
|
||
/* Modern CSS Variables - Proton Pass Inspired */
|
||
:root {
|
||
--bg-primary: #0f0f0f;
|
||
--bg-secondary: #1a1a1a;
|
||
--bg-tertiary: #262626;
|
||
--bg-hover: #2a2a2a;
|
||
--bg-active: #333333;
|
||
--border-primary: #2a2a2a;
|
||
--border-secondary: #333333;
|
||
--text-primary: #ffffff;
|
||
--text-secondary: #a3a3a3;
|
||
--text-tertiary: #737373;
|
||
--accent-primary: #3b82f6;
|
||
--accent-hover: #2563eb;
|
||
--success: #10b981;
|
||
--warning: #f59e0b;
|
||
--error: #ef4444;
|
||
--gradient-primary: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
|
||
--gradient-secondary: linear-gradient(135deg, #1a1a1a 0%, #262626 100%);
|
||
--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
|
||
--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
|
||
--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
|
||
--radius-sm: 6px;
|
||
--radius-md: 8px;
|
||
--radius-lg: 12px;
|
||
--radius-xl: 16px;
|
||
}
|
||
|
||
* {
|
||
box-sizing: border-box;
|
||
}
|
||
|
||
body {
|
||
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
|
||
margin: 0;
|
||
padding: 0;
|
||
min-height: 100vh;
|
||
background: var(--bg-primary);
|
||
color: var(--text-primary);
|
||
line-height: 1.6;
|
||
font-size: 14px;
|
||
color-scheme: dark;
|
||
}
|
||
|
||
/* Header */
|
||
.header {
|
||
background: var(--gradient-secondary);
|
||
padding: 32px 20px 20px;
|
||
border-bottom: 1px solid var(--border-primary);
|
||
position: relative;
|
||
overflow: hidden;
|
||
}
|
||
|
||
.header::before {
|
||
content: '';
|
||
position: absolute;
|
||
top: 0;
|
||
left: 0;
|
||
right: 0;
|
||
height: 3px;
|
||
background: var(--gradient-primary);
|
||
}
|
||
|
||
.header-content {
|
||
max-width: 640px;
|
||
margin: 0 auto;
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 16px;
|
||
}
|
||
|
||
.logo-container {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 16px;
|
||
}
|
||
|
||
.logo {
|
||
width: 48px;
|
||
height: 48px;
|
||
border-radius: var(--radius-lg);
|
||
background: var(--gradient-primary);
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
color: white;
|
||
font-weight: 700;
|
||
font-size: 20px;
|
||
box-shadow: var(--shadow-lg);
|
||
position: relative;
|
||
overflow: hidden;
|
||
}
|
||
|
||
.logo::after {
|
||
content: '';
|
||
position: absolute;
|
||
top: -50%;
|
||
left: -50%;
|
||
width: 200%;
|
||
height: 200%;
|
||
background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
|
||
transform: rotate(45deg);
|
||
animation: shimmer 3s infinite;
|
||
}
|
||
|
||
@keyframes shimmer {
|
||
0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
|
||
100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
|
||
}
|
||
|
||
.title-section {
|
||
flex: 1;
|
||
}
|
||
|
||
.title {
|
||
font-size: 28px;
|
||
font-weight: 700;
|
||
color: var(--text-primary);
|
||
margin: 0 0 4px 0;
|
||
}
|
||
|
||
.subtitle {
|
||
font-size: 14px;
|
||
color: var(--text-secondary);
|
||
margin: 0;
|
||
}
|
||
|
||
/* Main Content */
|
||
.container {
|
||
max-width: 640px;
|
||
margin: 0 auto;
|
||
padding: 32px 20px;
|
||
}
|
||
|
||
/* Sections */
|
||
.section {
|
||
background: var(--bg-secondary);
|
||
border-radius: var(--radius-lg);
|
||
padding: 24px;
|
||
border: 1px solid var(--border-primary);
|
||
margin-bottom: 24px;
|
||
transition: all 0.2s ease;
|
||
}
|
||
|
||
.section:hover {
|
||
border-color: var(--border-secondary);
|
||
box-shadow: var(--shadow-md);
|
||
}
|
||
|
||
.section-header {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 12px;
|
||
margin-bottom: 20px;
|
||
}
|
||
|
||
.section-icon {
|
||
width: 32px;
|
||
height: 32px;
|
||
border-radius: var(--radius-md);
|
||
background: var(--gradient-primary);
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
color: white;
|
||
font-size: 16px;
|
||
}
|
||
|
||
.section-title {
|
||
font-size: 18px;
|
||
font-weight: 600;
|
||
color: var(--text-primary);
|
||
margin: 0;
|
||
}
|
||
|
||
/* Form Elements */
|
||
.form-group {
|
||
margin-bottom: 20px;
|
||
}
|
||
|
||
.form-group:last-child {
|
||
margin-bottom: 0;
|
||
}
|
||
|
||
label {
|
||
display: block;
|
||
font-size: 13px;
|
||
font-weight: 500;
|
||
margin-bottom: 8px;
|
||
color: var(--text-secondary);
|
||
text-transform: uppercase;
|
||
letter-spacing: 0.5px;
|
||
}
|
||
|
||
input[type="text"],
|
||
input[type="url"],
|
||
input[type="password"] {
|
||
width: 100%;
|
||
padding: 14px 16px;
|
||
border-radius: var(--radius-md);
|
||
border: 1px solid var(--border-primary);
|
||
background: var(--bg-tertiary);
|
||
color: var(--text-primary);
|
||
font-size: 14px;
|
||
font-family: 'Inter', sans-serif;
|
||
font-weight: 400;
|
||
transition: all 0.2s ease;
|
||
outline: none;
|
||
}
|
||
|
||
input[type="text"]:focus,
|
||
input[type="url"]:focus,
|
||
input[type="password"]:focus {
|
||
border-color: var(--accent-primary);
|
||
background: var(--bg-hover);
|
||
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
|
||
}
|
||
|
||
/* Instructions */
|
||
.instructions {
|
||
background: var(--bg-tertiary);
|
||
border-radius: var(--radius-md);
|
||
padding: 16px;
|
||
border: 1px solid var(--border-primary);
|
||
margin-top: 16px;
|
||
}
|
||
|
||
.instructions-title {
|
||
font-size: 13px;
|
||
font-weight: 600;
|
||
color: var(--text-primary);
|
||
margin: 0 0 8px 0;
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 6px;
|
||
}
|
||
|
||
.instructions-list {
|
||
font-size: 13px;
|
||
color: var(--text-secondary);
|
||
margin: 0;
|
||
padding-left: 16px;
|
||
line-height: 1.6;
|
||
}
|
||
|
||
.instructions-list li {
|
||
margin-bottom: 4px;
|
||
}
|
||
|
||
.instructions-list li:last-child {
|
||
margin-bottom: 0;
|
||
}
|
||
|
||
/* Buttons */
|
||
.btn {
|
||
padding: 14px 24px;
|
||
border-radius: var(--radius-md);
|
||
border: none;
|
||
font-size: 14px;
|
||
font-weight: 500;
|
||
font-family: 'Inter', sans-serif;
|
||
cursor: pointer;
|
||
transition: all 0.2s ease;
|
||
display: inline-flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
gap: 8px;
|
||
outline: none;
|
||
position: relative;
|
||
overflow: hidden;
|
||
}
|
||
|
||
.btn::before {
|
||
content: '';
|
||
position: absolute;
|
||
top: 0;
|
||
left: -100%;
|
||
width: 100%;
|
||
height: 100%;
|
||
background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
|
||
transition: left 0.5s;
|
||
}
|
||
|
||
.btn:hover::before {
|
||
left: 100%;
|
||
}
|
||
|
||
.btn-primary {
|
||
background: var(--gradient-primary);
|
||
color: white;
|
||
box-shadow: var(--shadow-sm);
|
||
}
|
||
|
||
.btn-primary:hover {
|
||
transform: translateY(-2px);
|
||
box-shadow: var(--shadow-md);
|
||
}
|
||
|
||
.btn-primary:active {
|
||
transform: translateY(0);
|
||
}
|
||
|
||
.btn:disabled {
|
||
opacity: 0.5;
|
||
cursor: not-allowed;
|
||
transform: none !important;
|
||
}
|
||
|
||
/* Status Messages */
|
||
.status-message {
|
||
padding: 16px 20px;
|
||
border-radius: var(--radius-md);
|
||
font-size: 13px;
|
||
font-weight: 500;
|
||
margin-top: 20px;
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 10px;
|
||
animation: slideUp 0.3s ease;
|
||
}
|
||
|
||
@keyframes slideUp {
|
||
from { opacity: 0; transform: translateY(10px); }
|
||
to { opacity: 1; transform: translateY(0); }
|
||
}
|
||
|
||
.status-message.success {
|
||
background: rgba(16, 185, 129, 0.1);
|
||
color: var(--success);
|
||
border: 1px solid rgba(16, 185, 129, 0.2);
|
||
}
|
||
|
||
.status-message.error {
|
||
background: rgba(239, 68, 68, 0.1);
|
||
color: var(--error);
|
||
border: 1px solid rgba(239, 68, 68, 0.2);
|
||
}
|
||
|
||
.status-message.info {
|
||
background: rgba(59, 130, 246, 0.1);
|
||
color: var(--accent-primary);
|
||
border: 1px solid rgba(59, 130, 246, 0.2);
|
||
}
|
||
|
||
/* Code styling */
|
||
code {
|
||
background: var(--bg-tertiary);
|
||
padding: 3px 8px;
|
||
border-radius: var(--radius-sm);
|
||
font-size: 12px;
|
||
color: var(--text-primary);
|
||
border: 1px solid var(--border-primary);
|
||
font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
|
||
}
|
||
|
||
/* Icon System */
|
||
.icon {
|
||
width: 16px;
|
||
height: 16px;
|
||
display: inline-block;
|
||
vertical-align: middle;
|
||
transition: all 0.2s ease;
|
||
}
|
||
|
||
.icon-sm {
|
||
width: 12px;
|
||
height: 12px;
|
||
}
|
||
|
||
.icon-lg {
|
||
width: 20px;
|
||
height: 20px;
|
||
}
|
||
|
||
.icon-xl {
|
||
width: 24px;
|
||
height: 24px;
|
||
}
|
||
|
||
/* Icon animations */
|
||
.icon-spin {
|
||
animation: spin 1s linear infinite;
|
||
}
|
||
|
||
.icon-pulse {
|
||
animation: pulse 2s ease-in-out infinite;
|
||
}
|
||
|
||
@keyframes spin {
|
||
from { transform: rotate(0deg); }
|
||
to { transform: rotate(360deg); }
|
||
}
|
||
|
||
@keyframes pulse {
|
||
0%, 100% { opacity: 1; transform: scale(1); }
|
||
50% { opacity: 0.8; transform: scale(1.05); }
|
||
}
|
||
|
||
/* Enhanced button icons */
|
||
.btn .icon {
|
||
transition: transform 0.2s ease;
|
||
}
|
||
|
||
.btn:hover .icon {
|
||
transform: scale(1.1);
|
||
}
|
||
|
||
.btn:active .icon {
|
||
transform: scale(0.95);
|
||
}
|
||
|
||
/* Section icon enhancements */
|
||
.section-icon {
|
||
transition: all 0.3s ease;
|
||
}
|
||
|
||
.section:hover .section-icon {
|
||
transform: scale(1.05) rotate(5deg);
|
||
box-shadow: var(--shadow-md);
|
||
}
|
||
|
||
/* Responsive */
|
||
@media (max-width: 640px) {
|
||
.container {
|
||
padding: 20px 16px;
|
||
}
|
||
|
||
.section {
|
||
padding: 20px;
|
||
}
|
||
|
||
.header {
|
||
padding: 24px 16px 16px;
|
||
}
|
||
|
||
.title {
|
||
font-size: 24px;
|
||
}
|
||
}
|
||
</style>
|
||
</head>
|
||
<body>
|
||
<!-- Header -->
|
||
<header class="header">
|
||
<div class="header-content">
|
||
<div class="logo-container">
|
||
<div class="logo">T</div>
|
||
<div class="title-section">
|
||
<h1 class="title">Trackeep Saver</h1>
|
||
<p class="subtitle">Configure your extension settings</p>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</header>
|
||
|
||
<!-- Main Content -->
|
||
<main class="container">
|
||
<div class="section">
|
||
<div class="section-header">
|
||
<div class="section-icon">
|
||
<svg class="icon-xl" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
||
<circle cx="12" cy="12" r="3"/>
|
||
<path d="M12 1v6m0 6v6m4.22-13.22l4.24 4.24M1.54 1.54l4.24 4.24M1 12h6m6 0h6"/>
|
||
</svg>
|
||
</div>
|
||
<h2 class="section-title">API Configuration</h2>
|
||
</div>
|
||
|
||
<div class="form-group">
|
||
<label for="apiBaseUrl">Trackeep API Base URL</label>
|
||
<input
|
||
id="apiBaseUrl"
|
||
type="url"
|
||
placeholder="https://your-domain.example.com/api/v1 or http://localhost:8080/api/v1"
|
||
/>
|
||
</div>
|
||
|
||
<div class="form-group">
|
||
<label for="authToken">Authentication Token (JWT)</label>
|
||
<input
|
||
id="authToken"
|
||
type="password"
|
||
placeholder="Paste your Trackeep authentication token here"
|
||
/>
|
||
</div>
|
||
|
||
<div class="instructions">
|
||
<div class="instructions-title">
|
||
<svg class="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="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"/>
|
||
<line x1="16" y1="13" x2="8" y2="13"/>
|
||
<line x1="16" y1="17" x2="8" y2="17"/>
|
||
<polyline points="10,9 9,9 8,9"/>
|
||
</svg>
|
||
<span>How to get your authentication token:</span>
|
||
</div>
|
||
<ol class="instructions-list">
|
||
<li>Log into your Trackeep account in your browser</li>
|
||
<li>Open Developer Tools (F12) → Application → Local Storage</li>
|
||
<li>Find key <code>trackeep_token</code> and copy its value</li>
|
||
<li>Paste token in field above</li>
|
||
<li><strong>Never share this token publicly</strong> - it provides full access to your account</li>
|
||
</ol>
|
||
</div>
|
||
|
||
<button class="btn btn-primary" id="saveBtn" style="margin-top: 24px;">
|
||
<svg class="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
||
<path d="M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z"/>
|
||
<polyline points="17,21 17,13 7,13 7,21"/>
|
||
<polyline points="7,3 7,8 15,8"/>
|
||
</svg>
|
||
<span>Save Settings</span>
|
||
</button>
|
||
|
||
<div id="statusMessage" class="status-message" style="display: none;"></div>
|
||
</div>
|
||
</main>
|
||
|
||
<script src="options.js"></script>
|
||
</body>
|
||
</html>
|