Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
e8406f2e79
|
|||
|
104daeca73
|
|||
|
4ae996bfd6
|
@@ -50,8 +50,8 @@ jobs:
|
|||||||
|
|
||||||
- name: Install uv
|
- name: Install uv
|
||||||
uses: astral-sh/setup-uv@v5
|
uses: astral-sh/setup-uv@v5
|
||||||
- name: Set up Python
|
- name: "Set up Python"
|
||||||
run: uv python install
|
uses: actions/setup-python@v6
|
||||||
with:
|
with:
|
||||||
python-version-file: "pyproject.toml"
|
python-version-file: "pyproject.toml"
|
||||||
|
|
||||||
|
|||||||
57
bug.yml
57
bug.yml
@@ -1,57 +0,0 @@
|
|||||||
name: Bug Report
|
|
||||||
description: Report a bug in this project
|
|
||||||
title: "[Bug]: "
|
|
||||||
labels:
|
|
||||||
- kind/bug
|
|
||||||
- triage/needs triage
|
|
||||||
body:
|
|
||||||
|
|
||||||
- type: textarea
|
|
||||||
id: bug
|
|
||||||
attributes:
|
|
||||||
label: Describe the bug
|
|
||||||
description: |
|
|
||||||
A clear and concise description of what the bug is.
|
|
||||||
What did you expect to happen? What happened instead?
|
|
||||||
Include screenshots if applicable.
|
|
||||||
validations:
|
|
||||||
required: true
|
|
||||||
- type: textarea
|
|
||||||
id: reproduction
|
|
||||||
attributes:
|
|
||||||
label: Steps to reproduce
|
|
||||||
description: |
|
|
||||||
A clear and concise description of how to reproduce the bug.
|
|
||||||
Include steps, code snippets, or screenshots if applicable.
|
|
||||||
validations:
|
|
||||||
required: true
|
|
||||||
- type: textarea
|
|
||||||
id: additional-info
|
|
||||||
attributes:
|
|
||||||
label: Additional information
|
|
||||||
description: |
|
|
||||||
Add any other context or screenshots about the bug here.
|
|
||||||
- type: dropdown
|
|
||||||
id: browsers
|
|
||||||
attributes:
|
|
||||||
label: What browsers are you seeing the problem on?
|
|
||||||
multiple: true
|
|
||||||
options:
|
|
||||||
- Firefox
|
|
||||||
- Chrome
|
|
||||||
- Safari
|
|
||||||
- Microsoft Edge
|
|
||||||
|
|
||||||
- type: dropdown
|
|
||||||
id: operating-systems
|
|
||||||
attributes:
|
|
||||||
label: What operating systems are you seeing the problem on?
|
|
||||||
multiple: true
|
|
||||||
options:
|
|
||||||
- Windows
|
|
||||||
- macOS
|
|
||||||
- Linux
|
|
||||||
- iOS
|
|
||||||
- Android
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
[project]
|
[project]
|
||||||
name = "kompage"
|
name = "kompage"
|
||||||
version = "0.1.7"
|
version = "0.1.0"
|
||||||
description = "Add your description here"
|
description = "Add your description here"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
requires-python = ">=3.13"
|
requires-python = ">=3.13"
|
||||||
@@ -29,7 +29,7 @@ url = "https://git.theprivateserver.de/api/packages/KomSuite/pypi/simple/"
|
|||||||
|
|
||||||
|
|
||||||
[tool.bumpversion]
|
[tool.bumpversion]
|
||||||
current_version = "0.1.7"
|
current_version = "0.1.0"
|
||||||
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)"
|
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)"
|
||||||
serialize = ["{major}.{minor}.{patch}"]
|
serialize = ["{major}.{minor}.{patch}"]
|
||||||
search = "{current_version}"
|
search = "{current_version}"
|
||||||
|
|||||||
@@ -1,96 +1,135 @@
|
|||||||
/* other styles are in magic.css */
|
/* Modern UI refresh */
|
||||||
/* ========== GRID LAYOUT ========== */
|
|
||||||
|
:root {
|
||||||
|
--bg: #0b1020;
|
||||||
|
--bg-soft: #0f172a;
|
||||||
|
--surface: #111827;
|
||||||
|
--surface-2: #0f172a;
|
||||||
|
--text: #e5e7eb;
|
||||||
|
--muted: #9ca3af;
|
||||||
|
--ring: #60a5fa;
|
||||||
|
--primary: #6366f1;
|
||||||
|
--primary-600: #4f46e5;
|
||||||
|
--success: #10b981;
|
||||||
|
--danger: #ef4444;
|
||||||
|
--warning: #f59e0b;
|
||||||
|
}
|
||||||
|
|
||||||
|
* { box-sizing: border-box; }
|
||||||
|
|
||||||
|
html, body {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
background: linear-gradient(180deg, var(--bg), var(--bg-soft));
|
||||||
|
color: var(--text);
|
||||||
|
font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica Neue, Arial, "Apple Color Emoji", "Segoe UI Emoji";
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
max-width: 1200px;
|
||||||
|
margin: 0 auto;
|
||||||
|
padding: 24px 16px 64px;
|
||||||
|
}
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
font-size: 1.75rem;
|
||||||
|
line-height: 2rem;
|
||||||
|
margin: 0 0 16px 0;
|
||||||
|
font-weight: 700;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Layout */
|
||||||
.results {
|
.results {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
|
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
|
||||||
gap: 1em;
|
gap: 16px;
|
||||||
margin-top: 20px;
|
margin-top: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Responsive: show 1 per row on small screens */
|
@media (max-width: 768px) {
|
||||||
@media screen and (max-width: 768px) {
|
.results { grid-template-columns: 1fr; }
|
||||||
.results {
|
|
||||||
grid-template-columns: 1fr;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ========== CARD STYLING ========== */
|
/* Cards */
|
||||||
.card {
|
.card {
|
||||||
position: relative;
|
position: relative;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
border: 1px solid #ccc;
|
border: 1px solid rgba(255,255,255,0.06);
|
||||||
background: #fafafa;
|
background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
|
||||||
|
backdrop-filter: blur(6px);
|
||||||
text-align: center;
|
text-align: center;
|
||||||
transition: box-shadow 0.2s transform 0.2s;
|
transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
|
||||||
border-radius: 10px;
|
border-radius: 14px;
|
||||||
|
box-shadow:
|
||||||
|
0 1px 1px rgba(0,0,0,0.08),
|
||||||
|
0 10px 20px rgba(0,0,0,0.15);
|
||||||
}
|
}
|
||||||
|
|
||||||
.card:hover {
|
.card:hover {
|
||||||
box-shadow: 0 0 10px #aaa;
|
box-shadow:
|
||||||
transform: scale(1.1);
|
0 1px 1px rgba(0,0,0,0.08),
|
||||||
/* pop out by 10% */
|
0 16px 32px rgba(0,0,0,0.25);
|
||||||
z-index: 2;
|
transform: translateY(-2px) scale(1.02);
|
||||||
/* ensure it appears above others */
|
z-index: 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
.card img {
|
.card img { width: 100%; height: auto; border-radius: 8px; }
|
||||||
width: 100%;
|
|
||||||
height: auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* ========== ACTION BUTTONS ========== */
|
/* ========== ACTION BUTTONS ========== */
|
||||||
.actions {
|
.actions {
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-around;
|
justify-content: space-between;
|
||||||
|
gap: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.actions .info {
|
button, .button {
|
||||||
background-color: #007bff;
|
appearance: none;
|
||||||
color: white;
|
border: 1px solid rgba(255,255,255,0.1);
|
||||||
border: none;
|
background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.04));
|
||||||
padding: 0.5em 1em;
|
color: var(--text);
|
||||||
|
padding: 8px 12px;
|
||||||
|
border-radius: 10px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
border-radius: 5px;
|
transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
|
||||||
margin-right: 0.5em;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
button:hover, .button:hover {
|
||||||
.actions .info:hover {
|
transform: translateY(-1px);
|
||||||
background-color: #0056b3;
|
border-color: rgba(255,255,255,0.2);
|
||||||
|
box-shadow: 0 8px 16px rgba(0,0,0,0.25);
|
||||||
}
|
}
|
||||||
|
|
||||||
.actions .request {
|
.actions .info, .refresh, .index, .request-page { border-color: rgba(99,102,241,0.4); }
|
||||||
background-color: #28a745;
|
.actions .info { background: linear-gradient(180deg, rgba(99,102,241,0.35), rgba(99,102,241,0.2)); }
|
||||||
color: white;
|
.actions .request { border-color: rgba(16,185,129,0.4); background: linear-gradient(180deg, rgba(16,185,129,0.35), rgba(16,185,129,0.2)); }
|
||||||
border: none;
|
.delete-button { border-color: rgba(239,68,68,0.4); background: linear-gradient(180deg, rgba(239,68,68,0.35), rgba(239,68,68,0.2)); }
|
||||||
padding: 0.5em 1em;
|
.reset { border-color: rgba(239,68,68,0.4); background: linear-gradient(180deg, rgba(239,68,68,0.35), rgba(239,68,68,0.2)); color: #fff; }
|
||||||
cursor: pointer;
|
|
||||||
border-radius: 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.actions .request:hover {
|
/* Page actions */
|
||||||
background-color: #1e7e34;
|
.refresh, .index, .request-page { padding: 10px 14px; }
|
||||||
}
|
|
||||||
/* ========== MODAL ========== */
|
/* ========== MODAL ========== */
|
||||||
.modal {
|
.modal {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
z-index: 1;
|
z-index: 50;
|
||||||
left: 0;
|
inset: 0;
|
||||||
top: 0;
|
display: none;
|
||||||
width: 100%;
|
background: rgba(2,6,23,0.7);
|
||||||
height: 100%;
|
-webkit-backdrop-filter: blur(4px);
|
||||||
overflow: auto;
|
backdrop-filter: blur(4px);
|
||||||
background-color: rgba(0, 0, 0, 0.4);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.modal[style*="display: block"] { display: block; }
|
||||||
|
|
||||||
.modal-content {
|
.modal-content {
|
||||||
background-color: #fefefe;
|
background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
|
||||||
|
border: 1px solid rgba(255,255,255,0.1);
|
||||||
margin: 5% auto;
|
margin: 5% auto;
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
border: 1px solid #888;
|
width: min(720px, 92%);
|
||||||
width: 50%;
|
border-radius: 16px;
|
||||||
border-radius: 10px;
|
color: var(--text);
|
||||||
|
box-shadow: 0 20px 40px rgba(0,0,0,0.4);
|
||||||
}
|
}
|
||||||
|
|
||||||
.close {
|
.close {
|
||||||
@@ -98,6 +137,8 @@
|
|||||||
font-size: 28px;
|
font-size: 28px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
padding: 2px 8px;
|
||||||
|
border-radius: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ========== IMAGE CONTAINER ========== */
|
/* ========== IMAGE CONTAINER ========== */
|
||||||
@@ -144,48 +185,72 @@ body.nsfw-disabled .image-container.nsfw:hover img {
|
|||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.download-badge {
|
||||||
|
position: absolute;
|
||||||
|
top: 8px;
|
||||||
|
right: 8px;
|
||||||
|
background-color: rgba(99,102,241,0.9);
|
||||||
|
color: white;
|
||||||
|
padding: 4px 8px;
|
||||||
|
font-size: 12px;
|
||||||
|
font-weight: 700;
|
||||||
|
border-radius: 6px;
|
||||||
|
z-index: 2;
|
||||||
|
}
|
||||||
|
|
||||||
.search-bar {
|
.search-bar {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 10px;
|
gap: 12px;
|
||||||
margin-bottom: 20px;
|
margin-bottom: 20px;
|
||||||
|
padding: 16px;
|
||||||
|
border-radius: 16px;
|
||||||
|
background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
|
||||||
|
border: 1px solid rgba(255,255,255,0.08);
|
||||||
|
box-shadow: 0 10px 20px rgba(0,0,0,0.25);
|
||||||
}
|
}
|
||||||
|
|
||||||
.search-bar select {
|
.search-bar input[type="text"], .search-bar select {
|
||||||
padding: 5px;
|
padding: 10px 12px;
|
||||||
border: 1px solid #ccc;
|
border-radius: 10px;
|
||||||
border-radius: 4px;
|
border: 1px solid rgba(255,255,255,0.15);
|
||||||
|
background: rgba(255,255,255,0.04);
|
||||||
|
color: var(--text);
|
||||||
|
outline: none;
|
||||||
|
transition: border-color 0.2s ease, box-shadow 0.2s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.search-bar input[type="text"]:focus, .search-bar select:focus {
|
||||||
|
border-color: var(--ring);
|
||||||
|
box-shadow: 0 0 0 3px rgba(96,165,250,0.2);
|
||||||
}
|
}
|
||||||
|
|
||||||
.dropdown-content {
|
.dropdown-content {
|
||||||
display: none;
|
display: none;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
background-color: #f9f9f9;
|
background-color: var(--surface);
|
||||||
min-width: 160px;
|
color: var(--text);
|
||||||
box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
|
min-width: 200px;
|
||||||
z-index: 1;
|
box-shadow: 0 12px 28px rgba(0,0,0,0.35);
|
||||||
|
border: 1px solid rgba(255,255,255,0.08);
|
||||||
|
border-radius: 10px;
|
||||||
|
z-index: 5;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dropdown-content .dropdown-item {
|
.dropdown-content .dropdown-item {
|
||||||
padding: 8px 16px;
|
padding: 10px 14px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dropdown-content .dropdown-item:hover {
|
.dropdown-content .dropdown-item:hover {
|
||||||
background-color: #f1f1f1;
|
background-color: rgba(255,255,255,0.06);
|
||||||
}
|
}
|
||||||
|
|
||||||
.dropdown-content.show {
|
.dropdown-content.show {
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
.reset {
|
.reset { border-radius: 10px; }
|
||||||
/* Implement design here */
|
|
||||||
background-color: #f44336;
|
|
||||||
/* round the edges of the button */
|
|
||||||
border-radius: 9px;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
.selectors {
|
.selectors {
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -200,23 +265,38 @@ body.nsfw-disabled .image-container.nsfw:hover img {
|
|||||||
/* ========== KOMGA SPECIFIC STYLES ========== */
|
/* ========== KOMGA SPECIFIC STYLES ========== */
|
||||||
|
|
||||||
|
|
||||||
.card.komga {
|
|
||||||
border: 3px solid green;
|
|
||||||
box-sizing: border-box;
|
|
||||||
/* disable the request button for entries in Komga */
|
|
||||||
/* only allow the info button to be clicked */
|
|
||||||
opacity: 0.3;
|
|
||||||
|
|
||||||
|
.card.komga::after {
|
||||||
|
content: 'In Komga';
|
||||||
|
position: absolute;
|
||||||
|
top: 10px;
|
||||||
|
left: 10px;
|
||||||
|
background: rgba(16,185,129,0.9);
|
||||||
|
color: white;
|
||||||
|
font-size: 12px;
|
||||||
|
font-weight: 700;
|
||||||
|
padding: 4px 8px;
|
||||||
|
border-radius: 6px;
|
||||||
|
z-index: 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
.card.requested {
|
.card.requested::after {
|
||||||
border: 3px solid orange;
|
content: 'Requested';
|
||||||
box-sizing: border-box;
|
position: absolute;
|
||||||
/* disable the request button for entries in Komga */
|
top: 10px;
|
||||||
/* only allow the info button to be clicked */
|
left: 10px;
|
||||||
opacity: 0.3;
|
background: rgba(245,158,11,0.9);
|
||||||
|
color: #111827;
|
||||||
|
font-size: 12px;
|
||||||
|
font-weight: 700;
|
||||||
|
padding: 4px 8px;
|
||||||
|
border-radius: 6px;
|
||||||
|
z-index: 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.card.komga { opacity: 0.6; }
|
||||||
|
.card.requested { opacity: 0.8; }
|
||||||
|
|
||||||
.card.manga.requested .request {
|
.card.manga.requested .request {
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
opacity: 0.5;
|
opacity: 0.5;
|
||||||
@@ -236,9 +316,8 @@ body.nsfw-disabled .image-container.nsfw:hover img {
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
top: 5px;
|
top: 5px;
|
||||||
right: 5px;
|
right: 5px;
|
||||||
background-color: #dc3545;
|
|
||||||
color: white;
|
color: white;
|
||||||
border: none;
|
border: 1px solid rgba(255,255,255,0.15);
|
||||||
padding: 0.5em;
|
padding: 0.5em;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
|
|||||||
@@ -330,7 +330,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Add download badge if applicable
|
// Add download badge if applicable
|
||||||
if (result.downloads && document.getElementById("checkAvailability").checked) {
|
if (document.getElementById("checkAvailability").checked) {
|
||||||
const downloadBadge = document.createElement('div');
|
const downloadBadge = document.createElement('div');
|
||||||
downloadBadge.className = 'download-badge';
|
downloadBadge.className = 'download-badge';
|
||||||
downloadBadge.textContent = `${result.downloads} Downloads`;
|
downloadBadge.textContent = `${result.downloads} Downloads`;
|
||||||
|
|||||||
Reference in New Issue
Block a user