This commit is contained in:
Tracker-Friendly 2024-03-09 11:12:11 +00:00
parent b3af057ae0
commit 795b0e7ebd
7 changed files with 236 additions and 30 deletions

View File

@ -10,24 +10,23 @@
</head> </head>
<body> <body>
<!--
<div class="menuBar"> <div class="menuBar">
<p class="w900">burgerstore</p> <a href="/" class="w900">burgerstore</a>
<div class="linkCon"> <div class="textcenter">
<a href="publish.html">Publish</a> <a href="/publish">Publish</a>
<a href="about.html">About</a>
</div> </div>
</div>--> <div class="textcenter">
<a href="/about">About</a>
</div>
</div>
<noscript><p style="width: 100%; background-color: #fffaa0; margin: 0; height: 30px;">This page might require JavaScript to work properly</h1></noscript> <noscript><p style="width: 100%; background-color: #fffaa0; margin: 0; height: 30px;">This page might require JavaScript to work properly</h1></noscript>
<br> <br>
<div class="introductionDiv"> <div class="introductionDiv">
<h1 class="w700">burgerstore</h1> <h1 class="w700">Burgerstore</h1>
<p>The everything App Store: download your favourite apps for Linux and iOS.</p> <p>The everything App Store</p>
</div> </div>
<div id="appGrid" class="appGrid"> <div id="appGrid" class="appGrid">
<a class="featuredApp" src="/"><img></a> <a class="featuredApp" src="/"><img></a>
<h3>iOS apps</h3>
<a href="https://altstore.io/">AltStore</a> is required in order to install apps</p>
</div> </div>
<script src="static/js/main.js"></script> <script src="static/js/main.js"></script>

35
publish/index.html Normal file
View File

@ -0,0 +1,35 @@
<!DOCTYPE html>
<html>
<head>
<title>Burgerstore</title>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="stylesheet" type="text/css" href="static/css/style.css" />
</head>
<body>
<div class="menuBar">
<a href="/" class="w900">burgerstore</a>
<div class="textcenter">
<a href="/publish">Publish</a>
</div>
<div class="textcenter">
<a href="/about">About</a>
</div>
</div>
<noscript><p style="width: 100%; background-color: #fffaa0; margin: 0; height: 30px;">This page might require JavaScript to work properly</h1></noscript>
<br>
<div class="introductionDiv">
<h1 class="w700">Burgerstore</h1>
<p>The everything App Store</p>
</div>
<div id="appGrid" class="appGrid">
<a class="featuredApp" src="/"><img></a>
</div>
<script src="static/js/main.js"></script>
</body>
</html>

73
repo/addnew.py Normal file
View File

@ -0,0 +1,73 @@
import json
from datetime import datetime
def add_new_app(json_file):
with open(json_file, 'r') as file:
data = json.load(file)
new_app_data = {}
new_app_data['name'] = input("Enter the name of the app: ")
new_app_data['bundleIdentifier'] = input("Enter the bundle identifier of the app: ")
new_app_data['developerName'] = input("Enter the developer name: ")
new_app_data['subtitle'] = input("Enter the subtitle: ")
new_app_data['iconURL'] = input("Enter the icon URL: ")
new_app_data['tintColor'] = input("Enter the tint color (in hex format): ")
new_app_data['category'] = input("Enter the category: ")
new_app_data['versions'] = []
new_app_data['versionstore'] = []
is_ios = input("Are you making this app for iOS? (yes/no): ").lower()
if is_ios == "yes":
version_data = {}
version_data['version'] = input("Enter the version number: ")
version_data['buildVersion'] = input("Enter the build version: ")
version_data['date'] = datetime.now().strftime("%Y-%m-%d")
version_data['downloadURL'] = input("Enter the download URL for iOS version: ")
version_data['minOSVersion'] = input("Enter the minimum iOS version required: ")
new_app_data['versions'].append(version_data)
is_linux = input("Are you making this app for Linux? (yes/no): ").lower()
if is_linux == "yes":
if 'versionstore' not in new_app_data:
new_app_data['versionstore'] = []
versionstore_data = {}
versionstore_data['platform'] = 'linux'
versionstore_data['version'] = input("Enter the version number for Linux: ")
versionstore_data['buildVersion'] = input("Enter the build version for Linux: ")
versionstore_data['downloadUrl'] = input("Enter the download URL for Linux version: ")
new_app_data['versionstore'].append(versionstore_data)
is_web = input("Are you making this app for Web? (yes/no): ").lower()
if is_web == "yes":
if 'versionstore' not in new_app_data:
new_app_data['versionstore'] = []
versionstore_data = {}
versionstore_data['platform'] = 'web'
versionstore_data['version'] = input("Enter the version number for Web: ")
versionstore_data['buildVersion'] = input("Enter the build version for Web: ")
versionstore_data['downloadUrl'] = input("Enter the download URL for Web version: ")
new_app_data['versionstore'].append(versionstore_data)
is_android = input("Are you making this app for Android? (yes/no): ").lower()
if is_android == "yes":
if 'versionstore' not in new_app_data:
new_app_data['versionstore'] = []
versionstore_data = {}
versionstore_data['platform'] = 'android'
versionstore_data['version'] = input("Enter the version number for Android: ")
versionstore_data['buildVersion'] = input("Enter the build version for Android: ")
versionstore_data['downloadUrl'] = input("Enter the download URL for Android version: ")
new_app_data['versionstore'].append(versionstore_data)
data['apps'].append(new_app_data)
with open(json_file, 'w') as file:
json.dump(data, file, indent=2)
print("New app added successfully!")
# Example usage:
json_file_path = "./store.json"
add_new_app(json_file_path)

56
repo/altstore.json Normal file
View File

@ -0,0 +1,56 @@
{
"name": "Burgerstore",
"subtitle": "The app store for everything",
"description": "Welcome to the Burgerstore for iOS",
"iconURL": "https://store.hectabit.org/assets/img/burgerstore.png",
"website": "https://store.hectabit.org",
"tintColor": "#0096FF",
"featuredApps": [
"org.hectabit.burgernotes"
],
"apps": [
{
"name": "Burgernotes",
"bundleIdentifier": "org.hectabit.burgernotes",
"developerName": "HectaBit",
"subtitle": "A simple note-taking service!",
"iconURL": "https://centrifuge.hectabit.org/HectaBit/Burgernotes-iOS/raw/branch/main/Burgernotes/Assets.xcassets/org.hectabit.burgernotes.imageset/1024x.png",
"tintColor": "#FFFFFF",
"category": "utilities",
"screenshots": [],
"versions": [
{
"version": "b1.0.0",
"buildVersion": "1",
"date": "2024-02-29",
"downloadURL": "https://centrifuge.hectabit.org/HectaBit/Burgernotes-iOS/releases/download/b1.0.0/Burgernotes.ipa",
"minOSVersion": "15.0"
}
],
"appPermissions": {},
"patreon": {}
},
{
"name": "Burgertunes",
"bundleIdentifier": "lol.cta.burgertunes",
"developerName": "cta",
"subtitle": "Experimental music player",
"iconURL": "https://files.colon3.lol/2Rsu2zfS.burgertunesicon.svg",
"tintColor": "#f1b739",
"category": "entertainment",
"screenshots": [],
"versions": [
{
"version": "b1.0.0",
"buildVersion": "1",
"date": "2024-02-29",
"downloadURL": "https://files.colon3.lol/Zv2L2RKc.burgertunes.ipa",
"minOSVersion": "13.4"
}
],
"appPermissions": {},
"patreon": {}
}
],
"news": []
}

View File

@ -5,9 +5,7 @@
"iconURL": "https://store.hectabit.org/assets/img/burgerstore.png", "iconURL": "https://store.hectabit.org/assets/img/burgerstore.png",
"website": "https://store.hectabit.org", "website": "https://store.hectabit.org",
"tintColor": "#0096FF", "tintColor": "#0096FF",
"featuredApps": [ "featuredApps": [],
"org.hectabit.burgernotes"
],
"apps": [ "apps": [
{ {
"name": "Burgernotes", "name": "Burgernotes",
@ -18,6 +16,7 @@
"tintColor": "#FFFFFF", "tintColor": "#FFFFFF",
"category": "utilities", "category": "utilities",
"screenshots": [], "screenshots": [],
"avaliblePlatforms": "iOS, Linux & Web",
"versions": [ "versions": [
{ {
"version": "b1.0.0", "version": "b1.0.0",
@ -27,6 +26,20 @@
"minOSVersion": "15.0" "minOSVersion": "15.0"
} }
], ],
"versionstore": [
{
"platform": "web",
"version": "1.0.0",
"buildVersion": "1",
"downloadUrl": "https://notes.hectabit.org"
},
{
"platform": "linux",
"version": "1.0.0",
"buildVersion": "1",
"downloadUrl": "https://dl.flathub.org/repo/appstream/org.hectabit.Burgernotes.flatpakref"
}
],
"appPermissions": {}, "appPermissions": {},
"patreon": {} "patreon": {}
}, },
@ -39,6 +52,7 @@
"tintColor": "#f1b739", "tintColor": "#f1b739",
"category": "entertainment", "category": "entertainment",
"screenshots": [], "screenshots": [],
"avaliblePlatforms": "iOS",
"versions": [ "versions": [
{ {
"version": "b1.0.0", "version": "b1.0.0",

View File

@ -10,6 +10,7 @@ body {
margin-left: 45px; margin-left: 45px;
margin-right: 45px; margin-right: 45px;
font-size: 18px; font-size: 18px;
margin-top: 70px;
} }
.appGrid { .appGrid {
@ -23,6 +24,8 @@ body {
border-radius: 12px; border-radius: 12px;
background-color: rgb(244, 244, 244); background-color: rgb(244, 244, 244);
margin-bottom: 7.5px; margin-bottom: 7.5px;
display: flex;
overflow-x: scroll;
} }
.appGrid .app img { .appGrid .app img {
display: inline; display: inline;
@ -33,33 +36,59 @@ body {
background-color: #fff; background-color: #fff;
} }
.appGrid .app p { .appGrid .app p {
position: absolute;
display: inline; display: inline;
font-size: 18px; font-size: 18px;
transform: translate(7.5px, 13.5px); margin-right: 20px;
transform: translateY(1px);
} }
.appGrid .app .title { .appGrid .app .title {
position: absolute; transform: translateY(-2px);
transform: translate(7.5px, -12.5px);
font-size: 20px; font-size: 20px;
margin-left: 20px;
margin-right: 10px;
display: inline; display: inline;
} }
.appGrid .app button { .appGrid .app button {
position: absolute; background-color: rgb(21, 126, 251);
color: white;
padding: 12px;
padding-left: 22.5px;
padding-right: 22.5px;
background-color: #157efb;
border: none;
border-radius: 12px; border-radius: 12px;
right: 52.5px; border: medium;
transform: translate(0px, 10px); position: absolute;
right: 45px;
color: white;
padding: 21px;
} }
.menuBar {
display: flex;
background-color :rgb(244, 244, 244);
position: fixed;
top: 10px;
left: 10px;
right: 10px;
border-radius: 20px;
padding: 5px;
}
.menuBar a {
color: black;
text-decoration: none;
padding: 15px;
margin-right: 10px;
margin-left: 10px;
}
.menuBar a:hover {
background-color: #eee;
}
/* useful stuff */ /* useful stuff */
.textcenter {
display: flex;
flex-direction: column;
justify-content: center;
}
.hidden { .hidden {
display: none !important; display: none !important;
} }

View File

@ -28,7 +28,7 @@ getStore("repo/store.json").then((data) => {
let appInfo = document.createElement("p") let appInfo = document.createElement("p")
appInfo.classList.add("w300") appInfo.classList.add("w300")
appInfo.innerText = application["developerName"] + " | " + application["subtitle"] appInfo.innerText = application["developerName"] + " | " + application["subtitle"] + " | " + application["avaliblePlatforms"]
appDiv.append(appInfo) appDiv.append(appInfo)
let appButton = document.createElement("button") let appButton = document.createElement("button")