From 2942a96d46cc2f229140a534a5c74c186d272e40 Mon Sep 17 00:00:00 2001 From: lllllllillllllillll <147879489+lllllllillllllillll@users.noreply.github.com> Date: Wed, 18 Oct 2023 23:43:16 -0700 Subject: [PATCH] building stackfile support. updated template.json --- components/appCard.js | 11 ++++++++++- controllers/apps.js | 13 ------------- templates.json | 18 +++++++++--------- 3 files changed, 19 insertions(+), 23 deletions(-) diff --git a/components/appCard.js b/components/appCard.js index bfba285..0855c9d 100644 --- a/components/appCard.js +++ b/components/appCard.js @@ -12,6 +12,8 @@ function appCard(data) { let command_check = command ? "checked" : ""; let privileged = data.privileged || ""; let privileged_check = privileged ? "checked" : ""; + let repository = data.repository || ""; + let source = data.image || ""; // if data.network is set to host, bridge, or docker set the radio button to checked let net_host, net_bridge, net_docker = ''; @@ -35,6 +37,11 @@ function appCard(data) { } + if (repository != "") { + source = `${repository.url}/raw/master/${repository.stackfile}`; + } + + function CatagoryColor(category) { switch (category) { case 'Other': @@ -47,6 +54,8 @@ function appCard(data) { return 'Dashboard '; case 'Communication': return 'Communication '; + case 'Media': + return 'Media '; case 'CMS': return 'CMS '; case 'Monitoring': @@ -263,7 +272,7 @@ function appCard(data) {
- +
diff --git a/controllers/apps.js b/controllers/apps.js index 52dd5ca..5a7d8e1 100644 --- a/controllers/apps.js +++ b/controllers/apps.js @@ -36,19 +36,6 @@ exports.Apps = async function(req, res) { for (let i = list_start; i < list_end && i < templates.length; i++) { let app_card = appCard(templates[i]); - - if (templates[i].repository) { - - try { - console.log(templates[i].repository.stackfile) - } catch { console.log('no stackfile found') } - - try { - console.log(templates[i].repository.url) - } catch { console.log('no url found') } - - } - apps_list += app_card; } diff --git a/templates.json b/templates.json index 85dfee7..449c130 100644 --- a/templates.json +++ b/templates.json @@ -337,7 +337,7 @@ "image": "ghcr.io/linuxserver/prowlarr:develop", "categories": [ "Downloaders", - "Tools" + "Arr" ], "ports": [ "9696/tcp" @@ -1144,7 +1144,7 @@ }, { "categories": [ - "Multimedia" + "Media" ], "description": "Airsonic is a free, web-based media streamer, providing ubiqutious access to your music. Use it to share your music with friends, or to listen to your own music while at work. You can stream to multiple players simultaneously, for instance to one player in your kitchen and another in your living room.", "env": [ @@ -1371,7 +1371,7 @@ "description": "Audacity is an easy-to-use, multi-track audio editor and recorder. Developed by a group of volunteers as open source. (https://www.audacityteam.org/)", "platform": "linux", "categories": [ - "Multimedia" + "Media" ], "logo": "https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/audacity-logo.png", "image": "linuxserver/audacity:latest", @@ -2161,7 +2161,7 @@ "note": "", "description": "Kasm workspaces is a docker container streaming platform for delivering browser-based access to desktops, applications, and web services. Kasm uses devops-enabled Containerized Desktop Infrastructure (CDI) to create on-demand, disposable, docker containers that are accessible via web browser. Example use-cases include Remote Browser Isolation (RBI), Data Loss Prevention (DLP), Desktop as a Service (DaaS), Secure Remote Access Services (RAS), and Open Source Intelligence (OSINT) collections. The rendering of the graphical-based containers is powered by the open-source project [KasmVNC](https://www.kasmweb.com/kasmvnc.html?utm_campaign=LinuxServer&utm_source=kasmvnc).", "platform": "linux", - "logo": "https://kasm-ci.s3.amazonaws.com/kasm_wide.png", + "logo": "https://raw.githubusercontent.com/lllllllillllllillll/DweebUI-Icons/main/kasm.png", "image": "linuxserver/kasm:latest", "privileged": true, "env": [ @@ -2269,7 +2269,7 @@ "Communication" ], "platform": "linux", - "logo": "https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/mastodon-banner.png", + "logo": "https://raw.githubusercontent.com/lllllllillllllillll/DweebUI-Icons/main/mastodon.png", "image": "linuxserver/mastodon:latest", "env": [ { @@ -3063,8 +3063,8 @@ "categories": [ "Communication" ], - "description": "Rocket.Chat Server", - "logo": "https://raw.githubusercontent.com/portapps/rocketchat-portable/master/res/papp.png", + "description": "Rocket.Chat is an open-source fully customizable communications platform developed in JavaScript for organizations with high standards of data protection.", + "logo": "https://raw.githubusercontent.com/lllllllillllllillll/DweebUI-Icons/main/rocketchat.png", "note": "Rocket.Chat Server Container", "platform": "linux", "repository": { @@ -4935,7 +4935,7 @@ { "categories": [ "Multimedia", - "AI" + "Productivity" ], "description": "PhotoPrism is an AI-powered app for browsing, organizing & sharing your photo collection. It makes use of the latest technologies to tag and find pictures automatically without getting in your way.| Copy as Custom stack and EDIT environment variables.", "logo": "https://photoprism.app/static/img/logo.svg", @@ -5721,7 +5721,7 @@ "CMS" ], "platform": "linux", - "logo": "https://portainer-io-assets.sfo2.digitaloceanspaces.com/logos/joomla.png", + "logo": "https://raw.githubusercontent.com/lllllllillllllillll/DweebUI-Icons/main/joomla.png", "image": "joomla:latest", "env": [ {