mirror of
https://github.com/KeksPirates/SoftwareManager.git
synced 2026-08-04 09:59:41 +02:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 42616f996d | |||
| 8601a1ed50 |
@@ -3,7 +3,6 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<meta name="description" content="Simply search and download software and games from various sources. Developed with ❤︎ by KeksPirates.">
|
|
||||||
<meta name="darkreader-lock">
|
<meta name="darkreader-lock">
|
||||||
<link rel="stylesheet" href="main.css"/>
|
<link rel="stylesheet" href="main.css"/>
|
||||||
<title>SoftwareManager - Simply search and download software from various sources</title>
|
<title>SoftwareManager - Simply search and download software from various sources</title>
|
||||||
@@ -11,7 +10,6 @@
|
|||||||
<link href="https://fonts.googleapis.com/css2?family=Manrope:wght@400;700&display=swap" rel="stylesheet">
|
<link href="https://fonts.googleapis.com/css2?family=Manrope:wght@400;700&display=swap" rel="stylesheet">
|
||||||
|
|
||||||
<link rel="apple-touch-icon" sizes="180x180" href="assets/favicon/apple-touch-icon.png">
|
<link rel="apple-touch-icon" sizes="180x180" href="assets/favicon/apple-touch-icon.png">
|
||||||
<link rel="icon" type="image/png" sizes="192x192" href="assets/favicon/android-chrome-192x192.png">
|
|
||||||
<link rel="icon" type="image/png" sizes="32x32" href="assets/favicon/favicon-32x32.png">
|
<link rel="icon" type="image/png" sizes="32x32" href="assets/favicon/favicon-32x32.png">
|
||||||
<link rel="icon" type="image/png" sizes="16x16" href="assets/favicon/favicon-16x16.png">
|
<link rel="icon" type="image/png" sizes="16x16" href="assets/favicon/favicon-16x16.png">
|
||||||
|
|
||||||
@@ -44,18 +42,7 @@
|
|||||||
<a class="tablinks" onclick="openTab(event, 'docs')">Docs</a>
|
<a class="tablinks" onclick="openTab(event, 'docs')">Docs</a>
|
||||||
<!-- <a class="tablinks" onclick="openTab(event, 'notfound')">404</a> -->
|
<!-- <a class="tablinks" onclick="openTab(event, 'notfound')">404</a> -->
|
||||||
</nav>
|
</nav>
|
||||||
<button class="hamburger" onclick="toggleMobileMenu()" aria-label="Toggle menu">
|
|
||||||
<span></span>
|
|
||||||
<span></span>
|
|
||||||
<span></span>
|
|
||||||
</button>
|
|
||||||
</header>
|
</header>
|
||||||
<div class="mobile-nav-overlay" onclick="closeMobileMenu()"></div>
|
|
||||||
<nav class="mobile-nav">
|
|
||||||
<a class="mobile-tablinks" onclick="openTab(event, 'start'); closeMobileMenu();">Home</a>
|
|
||||||
<a class="mobile-tablinks" onclick="openTab(event, 'api'); closeMobileMenu();">API</a>
|
|
||||||
<a class="mobile-tablinks" onclick="openTab(event, 'docs'); closeMobileMenu();">Docs</a>
|
|
||||||
</nav>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -214,30 +201,6 @@
|
|||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
function toggleMobileMenu() {
|
|
||||||
document.querySelector('.hamburger').classList.toggle('active');
|
|
||||||
document.querySelector('.mobile-nav').classList.toggle('active');
|
|
||||||
document.querySelector('.mobile-nav-overlay').classList.toggle('active');
|
|
||||||
document.body.classList.toggle('menu-open');
|
|
||||||
}
|
|
||||||
|
|
||||||
function closeMobileMenu() {
|
|
||||||
document.querySelector('.hamburger').classList.remove('active');
|
|
||||||
document.querySelector('.mobile-nav').classList.remove('active');
|
|
||||||
document.querySelector('.mobile-nav-overlay').classList.remove('active');
|
|
||||||
document.body.classList.remove('menu-open');
|
|
||||||
}
|
|
||||||
|
|
||||||
function syncMobileActiveTab(tabName) {
|
|
||||||
document.querySelectorAll('.mobile-tablinks').forEach(function(link) {
|
|
||||||
link.classList.remove('active');
|
|
||||||
if (link.textContent.trim().toLowerCase() === tabName ||
|
|
||||||
(tabName === 'start' && link.textContent.trim().toLowerCase() === 'home')) {
|
|
||||||
link.classList.add('active');
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
function openTab(evt, tabName, pushToHistory = true) {
|
function openTab(evt, tabName, pushToHistory = true) {
|
||||||
var i, tabcontent, tablinks;
|
var i, tabcontent, tablinks;
|
||||||
|
|
||||||
|
|||||||
+27
-212
@@ -15,10 +15,6 @@ body {
|
|||||||
opacity: 1 !important;
|
opacity: 1 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
body.menu-open {
|
|
||||||
overflow: hidden;
|
|
||||||
}
|
|
||||||
|
|
||||||
header {
|
header {
|
||||||
height: 65px;
|
height: 65px;
|
||||||
background: #1a1c1d;
|
background: #1a1c1d;
|
||||||
@@ -202,93 +198,6 @@ main .introduction-text p {
|
|||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Hamburger button - hidden on desktop */
|
|
||||||
.hamburger {
|
|
||||||
display: none;
|
|
||||||
background: none;
|
|
||||||
border: none;
|
|
||||||
cursor: pointer;
|
|
||||||
padding: 0.5rem;
|
|
||||||
z-index: 1001;
|
|
||||||
flex-direction: column;
|
|
||||||
gap: 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.hamburger span {
|
|
||||||
display: block;
|
|
||||||
width: 22px;
|
|
||||||
height: 2px;
|
|
||||||
background: #fafafa;
|
|
||||||
border-radius: 2px;
|
|
||||||
transition: transform 0.3s, opacity 0.3s;
|
|
||||||
}
|
|
||||||
|
|
||||||
.hamburger.active span:nth-child(1) {
|
|
||||||
transform: translateY(7px) rotate(45deg);
|
|
||||||
}
|
|
||||||
|
|
||||||
.hamburger.active span:nth-child(2) {
|
|
||||||
opacity: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.hamburger.active span:nth-child(3) {
|
|
||||||
transform: translateY(-7px) rotate(-45deg);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Mobile nav overlay */
|
|
||||||
.mobile-nav-overlay {
|
|
||||||
display: none;
|
|
||||||
position: fixed;
|
|
||||||
inset: 0;
|
|
||||||
background: rgba(0, 0, 0, 0.5);
|
|
||||||
z-index: 999;
|
|
||||||
opacity: 0;
|
|
||||||
transition: opacity 0.3s;
|
|
||||||
}
|
|
||||||
|
|
||||||
.mobile-nav-overlay.active {
|
|
||||||
display: block;
|
|
||||||
opacity: 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Mobile slide-in nav */
|
|
||||||
.mobile-nav {
|
|
||||||
display: none;
|
|
||||||
position: fixed;
|
|
||||||
top: 0;
|
|
||||||
right: -280px;
|
|
||||||
width: 280px;
|
|
||||||
height: 100%;
|
|
||||||
background: #1a1c1d;
|
|
||||||
z-index: 1000;
|
|
||||||
flex-direction: column;
|
|
||||||
padding: 5rem 1.5rem 2rem;
|
|
||||||
transition: right 0.3s ease;
|
|
||||||
overflow-y: auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
.mobile-nav.active {
|
|
||||||
right: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.mobile-nav a {
|
|
||||||
display: block;
|
|
||||||
padding: 1rem 1rem;
|
|
||||||
color: #fafafa;
|
|
||||||
text-decoration: none;
|
|
||||||
font-family: var(--main-font);
|
|
||||||
font-size: 1.1rem;
|
|
||||||
border-radius: 10px;
|
|
||||||
transition: background 0.3s;
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
|
|
||||||
.mobile-nav a:hover,
|
|
||||||
.mobile-nav a.active {
|
|
||||||
background: #db65d51a;
|
|
||||||
color: #fdd2fc;
|
|
||||||
}
|
|
||||||
|
|
||||||
footer {
|
footer {
|
||||||
color: #585858;
|
color: #585858;
|
||||||
font-family: var(--main-font);
|
font-family: var(--main-font);
|
||||||
@@ -470,60 +379,42 @@ pre.api-response {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@media(max-width: 768px) {
|
@media(max-width: 560px) {
|
||||||
|
|
||||||
/* Show hamburger, hide desktop nav */
|
|
||||||
.hamburger {
|
|
||||||
display: flex;
|
|
||||||
}
|
|
||||||
|
|
||||||
.mobile-nav {
|
|
||||||
display: flex;
|
|
||||||
}
|
|
||||||
|
|
||||||
.tab {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
header {
|
header {
|
||||||
padding: 1rem;
|
padding: 1rem;
|
||||||
position: sticky;
|
|
||||||
top: 0;
|
|
||||||
z-index: 100;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
main {
|
main {
|
||||||
margin: 0;
|
margin: 0rem;
|
||||||
padding: 1rem;
|
padding: 1rem;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
main .introduction-frame {
|
main .introduction {
|
||||||
text-align: center;
|
display: block;
|
||||||
|
margin-top: -1rem;
|
||||||
|
padding: 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
main .introduction-text {
|
main .introduction-text {
|
||||||
position: relative;
|
position: relative;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
margin-top: 0;
|
margin-top: 0rem;
|
||||||
margin-right: 0;
|
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
padding-bottom: 1.5rem;
|
margin-right: 0rem;
|
||||||
|
padding-bottom: 2rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
main h1.hometitle {
|
main h1.hometitle {
|
||||||
font-size: 2.2rem;
|
font-size: 2rem;
|
||||||
line-height: 2.4rem;
|
line-height: 2.2rem;
|
||||||
text-align: center;
|
text-align: left;
|
||||||
}
|
|
||||||
|
|
||||||
main h1.hometitle br {
|
|
||||||
display: none;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
main p.title_subtext {
|
main p.title_subtext {
|
||||||
text-align: center;
|
text-align: left;
|
||||||
font-size: 1rem;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.introduction-image {
|
.introduction-image {
|
||||||
@@ -531,103 +422,25 @@ pre.api-response {
|
|||||||
}
|
}
|
||||||
|
|
||||||
main .btn_big {
|
main .btn_big {
|
||||||
display: inline-flex;
|
|
||||||
margin-top: 1rem;
|
|
||||||
width: 100%;
|
|
||||||
justify-content: center;
|
|
||||||
padding: 0.9rem 1.4rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
main .btn_big.github {
|
|
||||||
margin-right: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Responsive tables / grids */
|
|
||||||
.endpoint-parameters-header {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.endpoint-parameters-content {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
gap: 0.25rem;
|
|
||||||
padding: 0.75rem 0;
|
|
||||||
border-top: 1px solid #ffffff0a;
|
|
||||||
}
|
|
||||||
|
|
||||||
.endpoint-parameters-content p {
|
|
||||||
font-size: 0.95rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.endpoint-parameters-content p::before {
|
|
||||||
font-size: 0.75rem;
|
|
||||||
color: #8f8d8d;
|
|
||||||
display: block;
|
display: block;
|
||||||
margin-bottom: 0.1rem;
|
margin: 1rem auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.docs-grid .endpoint-parameters-content {
|
main .btn_big.github{
|
||||||
grid-template-columns: 1fr;
|
margin-right: 0rem;
|
||||||
}
|
|
||||||
|
|
||||||
.docs-grid .endpoint-parameters-content p:nth-child(1)::before { content: "Source"; }
|
|
||||||
.docs-grid .endpoint-parameters-content p:nth-child(2)::before { content: "Category"; }
|
|
||||||
.docs-grid .endpoint-parameters-content p:nth-child(3)::before { content: "Notes"; }
|
|
||||||
|
|
||||||
/* API page: stack param fields with labels */
|
|
||||||
#api .endpoint-parameters-content p:nth-child(1)::before { content: "Parameter"; }
|
|
||||||
#api .endpoint-parameters-content p:nth-child(2)::before { content: "Type"; }
|
|
||||||
#api .endpoint-parameters-content p:nth-child(3)::before { content: "Required"; }
|
|
||||||
#api .endpoint-parameters-content p:nth-child(4)::before { content: "Description"; }
|
|
||||||
|
|
||||||
.endpoint-type-container {
|
|
||||||
word-break: break-all;
|
|
||||||
}
|
|
||||||
|
|
||||||
pre.api-response {
|
|
||||||
font-size: 0.8rem;
|
|
||||||
overflow-x: auto;
|
|
||||||
-webkit-overflow-scrolling: touch;
|
|
||||||
}
|
|
||||||
|
|
||||||
.api-url,
|
|
||||||
.endpoint-url,
|
|
||||||
.request-type-subcontainer {
|
|
||||||
word-break: break-all;
|
|
||||||
}
|
|
||||||
|
|
||||||
.title {
|
|
||||||
font-size: 1.5rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.base-information-frame {
|
|
||||||
padding: 0.75rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
footer {
|
|
||||||
position: relative;
|
|
||||||
padding: 1rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.notfound-title {
|
|
||||||
font-size: 3rem;
|
|
||||||
line-height: 3rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.notfound-subtext {
|
|
||||||
font-size: 1.4rem;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: 769px) and (max-width: 1393px) {
|
@media (min-width: 561px) and (max-width: 1393px) {
|
||||||
|
|
||||||
header {
|
header {
|
||||||
padding: 1rem;
|
padding: 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
main {
|
main {
|
||||||
margin: 0;
|
margin: 0rem;
|
||||||
padding: 1.5rem;
|
padding: 1rem;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
main .introduction {
|
main .introduction {
|
||||||
@@ -641,7 +454,7 @@ pre.api-response {
|
|||||||
main .introduction-text {
|
main .introduction-text {
|
||||||
position: relative;
|
position: relative;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
margin-top: 0;
|
margin-top: 0rem;
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
margin-left: 2rem;
|
margin-left: 2rem;
|
||||||
@@ -650,8 +463,8 @@ pre.api-response {
|
|||||||
}
|
}
|
||||||
|
|
||||||
main h1.hometitle {
|
main h1.hometitle {
|
||||||
font-size: 2.5rem;
|
font-size: 2rem;
|
||||||
line-height: 2.7rem;
|
line-height: 2.2rem;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -678,6 +491,8 @@ pre.api-response {
|
|||||||
}
|
}
|
||||||
|
|
||||||
main .introduction .inline-block {
|
main .introduction .inline-block {
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -110,23 +110,19 @@ class SteamripScraper:
|
|||||||
consoleLog("SteamRip: No valid download links found")
|
consoleLog("SteamRip: No valid download links found")
|
||||||
return None, None
|
return None, None
|
||||||
|
|
||||||
try:
|
|
||||||
idx = links.index(best)
|
|
||||||
except ValueError:
|
|
||||||
consoleLog("SteamRip: Failed to resolve download host")
|
|
||||||
return None, None
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
if idx == 0:
|
consoleLog(f"Found download link: {best}")
|
||||||
|
if "buzzheavier" in best:
|
||||||
link = scrape_buzzheavier(best)
|
link = scrape_buzzheavier(best)
|
||||||
return link
|
return link
|
||||||
elif idx == 1:
|
elif "gofile" in best:
|
||||||
link, headers = scrape_gofile(best)
|
link, headers = scrape_gofile(best)
|
||||||
return link, headers
|
return link, headers
|
||||||
elif idx == 2:
|
elif "vikingfile" in best:
|
||||||
scrape_vikingfile(best)
|
scrape_vikingfile(best)
|
||||||
return None, None
|
return None, None
|
||||||
elif idx == 3:
|
elif "megadb" in best:
|
||||||
scrape_megadb(best)
|
scrape_megadb(best)
|
||||||
return None, None
|
return None, None
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user