mirror of
https://github.com/Dvorinka/Trackeep.git
synced 2026-06-03 20:12:58 +00:00
265 lines
7.7 KiB
HTML
265 lines
7.7 KiB
HTML
<!DOCTYPE html>
|
||
<html lang="en" data-kb-theme="dark">
|
||
<head>
|
||
<meta charset="UTF-8" />
|
||
<title>Trackeep Saver – Options</title>
|
||
<style>
|
||
/* Complete Inter Font Faces - Exact Papra */
|
||
@font-face {
|
||
font-family: Inter;
|
||
font-style: normal;
|
||
font-weight: 400;
|
||
font-stretch: 100%;
|
||
font-display: swap;
|
||
src: url(https://fonts.bunny.net/inter/files/inter-latin-400-normal.woff2) format("woff2"),url(https://fonts.bunny.net/inter/files/inter-latin-400-normal.woff) format("woff");
|
||
unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD
|
||
}
|
||
@font-face {
|
||
font-family: Inter;
|
||
font-style: normal;
|
||
font-weight: 500;
|
||
font-stretch: 100%;
|
||
font-display: swap;
|
||
src: url(https://fonts.bunny.net/inter/files/inter-latin-500-normal.woff2) format("woff2"),url(https://fonts.bunny.net/inter/files/inter-latin-500-normal.woff) format("woff");
|
||
unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD
|
||
}
|
||
@font-face {
|
||
font-family: Inter;
|
||
font-style: normal;
|
||
font-weight: 600;
|
||
font-stretch: 100%;
|
||
font-display: swap;
|
||
src: url(https://fonts.bunny.net/inter/files/inter-latin-600-normal.woff2) format("woff2"),url(https://fonts.bunny.net/inter/files/inter-latin-600-normal.woff) format("woff");
|
||
unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD
|
||
}
|
||
@font-face {
|
||
font-family: Inter;
|
||
font-style: normal;
|
||
font-weight: 700;
|
||
font-stretch: 100%;
|
||
font-display: swap;
|
||
src: url(https://fonts.bunny.net/inter/files/inter-latin-700-normal.woff2) format("woff2"),url(https://fonts.bunny.net/inter/files/inter-latin-700-normal.woff) format("woff");
|
||
unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD
|
||
}
|
||
|
||
/* Exact Papra CSS variables and dark theme (hex fallbacks for clarity) */
|
||
:root {
|
||
--background: 26 26 26;
|
||
--foreground: 250 250 250;
|
||
--card: 32 32 32;
|
||
--card-foreground: 250 250 250;
|
||
--popover: 32 32 32;
|
||
--popover-foreground: 250 250 250;
|
||
--primary: 217 70.2% 91.2%;
|
||
--primary-foreground: 250 250 250;
|
||
--secondary: 39 39 42;
|
||
--secondary-foreground: 250 250 250;
|
||
--muted: 39 39 42;
|
||
--muted-foreground: 163 163 163;
|
||
--accent: 39 39 42;
|
||
--accent-foreground: 250 250 250;
|
||
--destructive: 0 62.8% 30.6%;
|
||
--destructive-foreground: 250 250 250;
|
||
--border: 39 39 42;
|
||
--input: 39 39 42;
|
||
--ring: 217 70.2% 91.2%;
|
||
--radius: 0.5rem;
|
||
/* Hex fallbacks for readability */
|
||
--bg-hex: #1a1a1a;
|
||
--card-hex: #202020;
|
||
--input-hex: #27272a;
|
||
--border-hex: #27272a;
|
||
--muted-hex: #27272a;
|
||
--text-hex: #fafafa;
|
||
--muted-text-hex: #a3a3a3;
|
||
--primary-hex: #60a5fa;
|
||
}
|
||
|
||
body {
|
||
font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
||
margin: 0;
|
||
padding: 20px;
|
||
max-width: 640px;
|
||
background: var(--bg-hex);
|
||
color: var(--text-hex);
|
||
line-height: 1.6;
|
||
color-scheme: dark;
|
||
}
|
||
|
||
h1 {
|
||
font-size: 24px;
|
||
font-weight: 600;
|
||
margin: 0 0 8px 0;
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 10px;
|
||
}
|
||
|
||
.logo {
|
||
width: 32px;
|
||
height: 32px;
|
||
border-radius: calc(var(--radius) * 0.5);
|
||
background: var(--primary-hex);
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
color: var(--text-hex);
|
||
font-weight: bold;
|
||
font-size: 16px;
|
||
}
|
||
|
||
p {
|
||
font-size: 14px;
|
||
color: var(--muted-text-hex);
|
||
margin: 0 0 24px 0;
|
||
}
|
||
|
||
.section {
|
||
background: var(--card-hex);
|
||
border-radius: var(--radius);
|
||
padding: 20px;
|
||
border: 1px solid var(--border-hex);
|
||
margin-bottom: 20px;
|
||
}
|
||
|
||
.section-title {
|
||
font-size: 16px;
|
||
font-weight: 600;
|
||
margin: 0 0 16px 0;
|
||
color: var(--text-hex);
|
||
}
|
||
|
||
label {
|
||
display: block;
|
||
font-size: 14px;
|
||
font-weight: 500;
|
||
margin: 0 0 6px 0;
|
||
color: var(--muted-text-hex);
|
||
}
|
||
|
||
input[type="text"],
|
||
input[type="url"],
|
||
input[type="password"] {
|
||
width: 100%;
|
||
box-sizing: border-box;
|
||
padding: 10px 14px;
|
||
border-radius: var(--radius);
|
||
border: 1px solid var(--border-hex);
|
||
background: var(--input-hex);
|
||
color: var(--text-hex);
|
||
font-size: 14px;
|
||
font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
||
font-weight: 400;
|
||
transition: border-color 0.15s, background 0.15s;
|
||
}
|
||
|
||
input:focus {
|
||
outline: none;
|
||
border-color: var(--primary-hex);
|
||
background: var(--card-hex);
|
||
}
|
||
|
||
button {
|
||
cursor: pointer;
|
||
border-radius: var(--radius);
|
||
border: none;
|
||
padding: 10px 18px;
|
||
font-size: 14px;
|
||
font-weight: 500;
|
||
font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
||
background: var(--primary-hex);
|
||
color: var(--text-hex);
|
||
transition: all 0.2s;
|
||
}
|
||
|
||
button:hover {
|
||
opacity: 0.9;
|
||
transform: translateY(-1px);
|
||
}
|
||
|
||
button:disabled {
|
||
opacity: 0.5;
|
||
cursor: default;
|
||
transform: none;
|
||
}
|
||
|
||
.status {
|
||
margin-top: 12px;
|
||
font-size: 13px;
|
||
padding: 8px 12px;
|
||
border-radius: calc(var(--radius) * 0.5);
|
||
background: var(--muted-hex);
|
||
border: 1px solid var(--border-hex);
|
||
}
|
||
|
||
.status.success {
|
||
color: var(--primary-hex);
|
||
border-color: var(--primary-hex);
|
||
background: color-mix(in srgb, var(--primary-hex) 10%, transparent);
|
||
}
|
||
|
||
.status.error {
|
||
color: #ef4444;
|
||
border-color: #ef4444;
|
||
background: color-mix(in srgb, #ef4444 10%, transparent);
|
||
}
|
||
|
||
code {
|
||
background: var(--input-hex);
|
||
padding: 2px 6px;
|
||
border-radius: calc(var(--radius) * 0.5);
|
||
font-size: 13px;
|
||
color: var(--text-hex);
|
||
border: 1px solid var(--border-hex);
|
||
}
|
||
|
||
.instructions {
|
||
font-size: 13px;
|
||
color: var(--muted-text-hex);
|
||
margin-top: 6px;
|
||
line-height: 1.5;
|
||
}
|
||
|
||
.instructions strong {
|
||
color: var(--text-hex);
|
||
}
|
||
</style>
|
||
</head>
|
||
<body>
|
||
<h1>
|
||
<div class="logo">T</div>
|
||
Trackeep Saver – Options
|
||
</h1>
|
||
<p>Configure how the extension connects to your Trackeep backend.</p>
|
||
|
||
<div class="section">
|
||
<div class="section-title">API Configuration</div>
|
||
<label for="apiBaseUrl">Trackeep API base URL (must include <code>/api/v1</code>)</label>
|
||
<input
|
||
id="apiBaseUrl"
|
||
type="url"
|
||
placeholder="https://your-domain.example.com/api/v1 or http://localhost:8080/api/v1"
|
||
/>
|
||
|
||
<label for="authToken">Auth token (JWT)</label>
|
||
<input
|
||
id="authToken"
|
||
type="password"
|
||
placeholder="Paste your Trackeep token (trackeep_token) here"
|
||
/>
|
||
<div class="instructions">
|
||
<strong>How to get your token:</strong><br>
|
||
1. Log into Trackeep in your browser.<br>
|
||
2. Open DevTools → Application → Local Storage.<br>
|
||
3. Find the key <code>trackeep_token</code> and copy its value.<br>
|
||
4. Paste it above. Never share this token publicly.
|
||
</div>
|
||
|
||
<button id="saveBtn" style="margin-top:20px;">💾 Save settings</button>
|
||
<div id="status" class="status"></div>
|
||
</div>
|
||
|
||
<script src="options.js"></script>
|
||
</body>
|
||
</html>
|