chore: initial sync
This commit is contained in:
@@ -0,0 +1,200 @@
|
||||
<!doctype html>
|
||||
<html lang="es">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<style>
|
||||
:root {
|
||||
--accent: #7c3aed;
|
||||
--green: #16a34a;
|
||||
--bg: #ffffff;
|
||||
--fg: #1f2937;
|
||||
--muted: #6b7280;
|
||||
--border: #e5e7eb;
|
||||
}
|
||||
@media (prefers-color-scheme: dark) {
|
||||
:root {
|
||||
--bg: #1f2937;
|
||||
--fg: #f3f4f6;
|
||||
--muted: #9ca3af;
|
||||
--border: #374151;
|
||||
}
|
||||
}
|
||||
body {
|
||||
font-family: system-ui, sans-serif;
|
||||
background: var(--bg);
|
||||
color: var(--fg);
|
||||
width: 300px;
|
||||
margin: 0;
|
||||
padding: 14px;
|
||||
}
|
||||
header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
h1 {
|
||||
font-size: 14px;
|
||||
margin: 0;
|
||||
}
|
||||
.switch {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
width: 46px;
|
||||
height: 26px;
|
||||
}
|
||||
.switch input {
|
||||
opacity: 0;
|
||||
width: 0;
|
||||
height: 0;
|
||||
}
|
||||
.slider {
|
||||
position: absolute;
|
||||
cursor: pointer;
|
||||
inset: 0;
|
||||
background: #9ca3af;
|
||||
border-radius: 26px;
|
||||
transition: 0.2s;
|
||||
}
|
||||
.slider::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
height: 20px;
|
||||
width: 20px;
|
||||
left: 3px;
|
||||
bottom: 3px;
|
||||
background: #fff;
|
||||
border-radius: 50%;
|
||||
transition: 0.2s;
|
||||
}
|
||||
input:checked + .slider {
|
||||
background: var(--green);
|
||||
}
|
||||
input:checked + .slider::before {
|
||||
transform: translateX(20px);
|
||||
}
|
||||
.status {
|
||||
font-size: 12px;
|
||||
color: var(--muted);
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
ul {
|
||||
list-style: none;
|
||||
margin: 0 0 10px;
|
||||
padding: 0;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 8px;
|
||||
overflow: hidden;
|
||||
}
|
||||
li {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
padding: 8px 10px;
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
li:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
li .meta {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
}
|
||||
li .name {
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
}
|
||||
li .addr {
|
||||
font-size: 11px;
|
||||
color: var(--muted);
|
||||
font-family: monospace;
|
||||
}
|
||||
li .del {
|
||||
background: none;
|
||||
border: none;
|
||||
color: var(--muted);
|
||||
cursor: pointer;
|
||||
font-size: 14px;
|
||||
}
|
||||
details {
|
||||
font-size: 12px;
|
||||
}
|
||||
summary {
|
||||
cursor: pointer;
|
||||
color: var(--accent);
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
.form-row {
|
||||
display: flex;
|
||||
gap: 6px;
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
input[type="text"],
|
||||
input[type="number"],
|
||||
select {
|
||||
font-size: 12px;
|
||||
padding: 5px 6px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 6px;
|
||||
background: var(--bg);
|
||||
color: var(--fg);
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
button.add {
|
||||
width: 100%;
|
||||
padding: 7px;
|
||||
background: var(--accent);
|
||||
color: #fff;
|
||||
border: none;
|
||||
border-radius: 6px;
|
||||
cursor: pointer;
|
||||
font-size: 12px;
|
||||
}
|
||||
.hint {
|
||||
font-size: 11px;
|
||||
color: var(--muted);
|
||||
margin-top: 10px;
|
||||
line-height: 1.4;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<h1>web_proxy</h1>
|
||||
<label class="switch">
|
||||
<input type="checkbox" id="toggle" />
|
||||
<span class="slider"></span>
|
||||
</label>
|
||||
</header>
|
||||
<div class="status" id="status">Captura desactivada</div>
|
||||
|
||||
<ul id="proxy-list"></ul>
|
||||
|
||||
<details>
|
||||
<summary>Anadir proxy</summary>
|
||||
<div class="form-row">
|
||||
<input type="text" id="f-name" placeholder="Nombre" />
|
||||
</div>
|
||||
<div class="form-row">
|
||||
<select id="f-scheme">
|
||||
<option value="http">http</option>
|
||||
<option value="https">https</option>
|
||||
<option value="socks5">socks5</option>
|
||||
<option value="socks4">socks4</option>
|
||||
</select>
|
||||
<input type="text" id="f-host" placeholder="host (127.0.0.1)" />
|
||||
<input type="number" id="f-port" placeholder="puerto" />
|
||||
</div>
|
||||
<button class="add" id="f-add">Anadir</button>
|
||||
</details>
|
||||
|
||||
<div class="hint">
|
||||
El proxy activo se aplica a todo el navegador. El trafico a loopback no se
|
||||
proxea (la UI de registros no se captura a si misma).
|
||||
</div>
|
||||
|
||||
<script src="popup.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user