534 lines
11 KiB
Plaintext
534 lines
11 KiB
Plaintext
<%- include('./admin-base'); -%>
|
|
<style>
|
|
.stalker-page {
|
|
margin: 0 auto;
|
|
padding: 1.5rem;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1.25rem;
|
|
}
|
|
|
|
.page-head {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: flex-start;
|
|
gap: 1rem;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.page-head h1 {
|
|
margin: 0;
|
|
font-size: 1.6rem;
|
|
}
|
|
|
|
.stat-row {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.stat {
|
|
background: var(--admin-surface-3);
|
|
border: 1px solid var(--admin-border);
|
|
padding: 0.3rem 0.9rem;
|
|
font-size: 0.85rem;
|
|
color: #ccc;
|
|
}
|
|
|
|
.stat strong {
|
|
color: #fff;
|
|
}
|
|
|
|
.table-wrap {
|
|
overflow-x: auto;
|
|
-webkit-overflow-scrolling: touch;
|
|
}
|
|
|
|
table {
|
|
width: 100%;
|
|
border-collapse: separate;
|
|
border-spacing: 0;
|
|
background: var(--admin-surface);
|
|
border: 1px solid var(--admin-border);
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
table th,
|
|
table td {
|
|
padding: 0.75rem 1rem;
|
|
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
|
|
text-align: left;
|
|
font-size: 0.9rem;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
table th {
|
|
background: rgba(255, 255, 255, 0.08);
|
|
color: var(--admin-accent);
|
|
font-size: 0.72rem;
|
|
letter-spacing: 0.09em;
|
|
text-transform: uppercase;
|
|
font-weight: 600;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
table tbody tr:nth-child(even) {
|
|
background-color: rgba(255, 255, 255, 0.04);
|
|
}
|
|
|
|
table tbody tr:hover {
|
|
background-color: rgba(255, 255, 255, 0.08);
|
|
}
|
|
|
|
table tbody tr:last-child td {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.ip-link {
|
|
font-weight: 600;
|
|
font-family: 'Courier New', Courier, monospace;
|
|
color: var(--admin-accent);
|
|
}
|
|
|
|
.none {
|
|
color: #777;
|
|
font-style: italic;
|
|
}
|
|
|
|
.cc-badge {
|
|
display: inline-block;
|
|
padding: 0.1rem 0.45rem;
|
|
margin-left: 0.35rem;
|
|
font-size: 0.7rem;
|
|
letter-spacing: 0.06em;
|
|
border: 1px solid var(--admin-border-muted);
|
|
color: #ccc;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.loc-city {
|
|
color: #fff;
|
|
}
|
|
|
|
.loc-country {
|
|
color: #aaa;
|
|
font-size: 0.85rem;
|
|
margin-left: 0.35rem;
|
|
}
|
|
|
|
.isp {
|
|
color: #ddd;
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.ua-cell {
|
|
max-width: 260px;
|
|
}
|
|
|
|
.ua-chip {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.4rem;
|
|
background: rgba(255, 255, 255, 0.08);
|
|
border: 1px solid var(--admin-border-soft);
|
|
padding: 0.15rem 0.55rem;
|
|
font-size: 0.75rem;
|
|
color: #ddd;
|
|
margin: 0.1rem 0.2rem 0.1rem 0;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.ua-more {
|
|
font-size: 0.75rem;
|
|
color: #999;
|
|
}
|
|
|
|
.num {
|
|
font-variant-numeric: tabular-nums;
|
|
text-align: center;
|
|
color: #fff;
|
|
}
|
|
|
|
.actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.actions form {
|
|
margin: 0;
|
|
}
|
|
|
|
.empty {
|
|
text-align: center;
|
|
color: #888;
|
|
padding: 2rem;
|
|
}
|
|
|
|
.pagination {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0.35rem;
|
|
align-items: center;
|
|
}
|
|
|
|
.pagination .pg {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-width: 2rem;
|
|
padding: 0.3rem 0.6rem;
|
|
border: 1px solid var(--admin-border-muted);
|
|
font-size: 0.85rem;
|
|
color: #ccc;
|
|
}
|
|
|
|
.pagination a.pg:hover {
|
|
border-color: var(--admin-accent);
|
|
color: var(--admin-accent);
|
|
}
|
|
|
|
.pagination .pg.current {
|
|
background: var(--admin-accent);
|
|
border-color: var(--admin-accent);
|
|
color: var(--bg);
|
|
font-weight: 700;
|
|
}
|
|
|
|
.sub {
|
|
color: #aaa;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.toolbar {
|
|
display: flex;
|
|
gap: 0.6rem;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.toolbar form {
|
|
margin: 0;
|
|
}
|
|
|
|
.card {
|
|
background: var(--admin-surface);
|
|
border: 1px solid var(--admin-border);
|
|
padding: 1.25rem;
|
|
}
|
|
|
|
.card h2 {
|
|
margin: 0 0 1rem 0;
|
|
font-size: 1.1rem;
|
|
color: var(--admin-accent);
|
|
}
|
|
|
|
.info-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
|
|
gap: 1.1rem;
|
|
}
|
|
|
|
.info-item {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.2rem;
|
|
}
|
|
|
|
.info-item .label {
|
|
font-size: 0.7rem;
|
|
letter-spacing: 0.08em;
|
|
text-transform: uppercase;
|
|
color: #888;
|
|
}
|
|
|
|
.info-item .value {
|
|
color: #eee;
|
|
font-size: 0.95rem;
|
|
word-break: break-word;
|
|
}
|
|
|
|
#map {
|
|
height: 380px;
|
|
width: 100%;
|
|
border: 1px solid var(--admin-border);
|
|
z-index: 0;
|
|
}
|
|
|
|
.leaflet-container {
|
|
background: #222;
|
|
}
|
|
|
|
.leaflet-bar {
|
|
border-radius: 0;
|
|
}
|
|
|
|
.leaflet-bar a,
|
|
.leaflet-bar a:hover {
|
|
background-color: #1a1a1a;
|
|
color: #fff;
|
|
border-bottom: 1px solid rgba(255, 255, 255, 0.2);
|
|
}
|
|
|
|
.leaflet-bar a.leaflet-disabled {
|
|
background-color: #2a2a2a;
|
|
color: #666;
|
|
}
|
|
|
|
.leaflet-popup-content-wrapper,
|
|
.leaflet-popup-tip {
|
|
background: #111;
|
|
color: #eee;
|
|
border: 1px solid var(--admin-border-muted);
|
|
border-radius: 0;
|
|
}
|
|
|
|
.leaflet-popup-content {
|
|
margin: 10px 14px;
|
|
font-family: var(--font-body);
|
|
}
|
|
|
|
.leaflet-container a.leaflet-popup-close-button {
|
|
color: #fff;
|
|
}
|
|
|
|
.leaflet-container a.leaflet-popup-close-button:hover {
|
|
color: #ff5f5f;
|
|
}
|
|
|
|
.leaflet-control-attribution {
|
|
background: rgba(17, 17, 17, 0.8);
|
|
color: #aaa;
|
|
}
|
|
|
|
.leaflet-control-attribution a {
|
|
color: var(--admin-accent);
|
|
}
|
|
|
|
.ua-list {
|
|
list-style: none;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.75rem;
|
|
padding: 0;
|
|
margin: 0;
|
|
}
|
|
|
|
.ua-item {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.25rem;
|
|
padding: 0.75rem 0.9rem;
|
|
background: rgba(255, 255, 255, 0.05);
|
|
border: 1px solid var(--admin-border-soft);
|
|
}
|
|
|
|
.ua-item .ua-head {
|
|
display: flex;
|
|
align-items: baseline;
|
|
gap: 0.6rem;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.ua-name {
|
|
color: #fff;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.ua-version {
|
|
color: #999;
|
|
font-weight: 400;
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.ua-os {
|
|
color: #bbb;
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.ua-raw {
|
|
font-family: 'Courier New', Courier, monospace;
|
|
font-size: 0.75rem;
|
|
color: #888;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.log-table td.url {
|
|
font-family: 'Courier New', Courier, monospace;
|
|
color: var(--text);
|
|
font-size: 0.85rem;
|
|
word-break: break-all;
|
|
max-width: 360px;
|
|
}
|
|
|
|
.log-table td.ua-cell-log {
|
|
max-width: 260px;
|
|
}
|
|
|
|
.filter-form {
|
|
background: var(--admin-surface);
|
|
border: 1px solid var(--admin-border);
|
|
padding: 1rem;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.85rem;
|
|
}
|
|
|
|
.filter-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.filter-grid label {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.3rem;
|
|
font-size: 0.7rem;
|
|
letter-spacing: 0.08em;
|
|
text-transform: uppercase;
|
|
color: #888;
|
|
}
|
|
|
|
.filter-grid input,
|
|
.filter-grid select {
|
|
background: rgba(255, 255, 255, 0.08);
|
|
border: 1px solid var(--admin-border-muted);
|
|
color: #eee;
|
|
padding: 0.45rem 0.6rem;
|
|
font-family: inherit;
|
|
font-size: 0.85rem;
|
|
color-scheme: dark;
|
|
}
|
|
|
|
option {
|
|
background-color: black;
|
|
}
|
|
|
|
.filter-grid input:focus,
|
|
.filter-grid select:focus {
|
|
outline: none;
|
|
border-color: var(--admin-accent);
|
|
}
|
|
|
|
.filter-actions {
|
|
display: flex;
|
|
gap: 0.6rem;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.geo-fence summary {
|
|
cursor: pointer;
|
|
color: var(--admin-accent);
|
|
font-size: 0.8rem;
|
|
letter-spacing: 0.08em;
|
|
text-transform: uppercase;
|
|
user-select: none;
|
|
}
|
|
|
|
.geo-fence .filter-grid {
|
|
margin-top: 0.85rem;
|
|
}
|
|
|
|
@media (max-width: 720px) {
|
|
.filter-grid {
|
|
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
|
|
}
|
|
}
|
|
|
|
@media (max-width: 720px) {
|
|
.stalker-page {
|
|
padding: 1rem;
|
|
}
|
|
|
|
.table-wrap table {
|
|
border: none;
|
|
background: transparent;
|
|
}
|
|
|
|
.table-wrap table,
|
|
.table-wrap tbody,
|
|
.table-wrap tr,
|
|
.table-wrap td {
|
|
display: block;
|
|
width: 100%;
|
|
}
|
|
|
|
.table-wrap thead {
|
|
display: none;
|
|
}
|
|
|
|
.table-wrap tbody {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.table-wrap tr {
|
|
background: var(--admin-surface);
|
|
border: 1px solid var(--admin-border);
|
|
padding: 0.35rem 0.9rem;
|
|
}
|
|
|
|
.table-wrap tr:nth-child(even) {
|
|
background: var(--admin-surface);
|
|
}
|
|
|
|
.table-wrap tr:hover {
|
|
background-color: var(--admin-surface);
|
|
}
|
|
|
|
.table-wrap td {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 1rem;
|
|
padding: 0.45rem 0;
|
|
border-bottom: 1px solid rgba(255, 255, 255, 0.06);
|
|
text-align: right;
|
|
}
|
|
|
|
.table-wrap td:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.table-wrap td::before {
|
|
content: attr(data-label);
|
|
color: #888;
|
|
font-size: 0.7rem;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.06em;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.table-wrap td .none,
|
|
.table-wrap td .num {
|
|
text-align: right;
|
|
}
|
|
|
|
.table-wrap td.actions {
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.table-wrap td.actions::before {
|
|
margin-right: auto;
|
|
}
|
|
|
|
.table-wrap td.ua-cell,
|
|
.table-wrap td.ua-cell-log {
|
|
max-width: none;
|
|
overflow-x: auto;
|
|
justify-content: flex-start;
|
|
-webkit-overflow-scrolling: touch;
|
|
scrollbar-width: thin;
|
|
}
|
|
|
|
.log-table td.url {
|
|
max-width: none;
|
|
word-break: break-word;
|
|
}
|
|
}
|
|
</style>
|