docker pull sheild

This commit is contained in:
lllllllillllllillll 2023-12-13 21:26:42 -08:00
parent 058eadd3cd
commit 23be19c4d3
2 changed files with 6 additions and 3 deletions

View file

@ -6,6 +6,8 @@ Pre-Pre-Pre-Pre-Pre Alpha v0.08 ( :fire: Experimental. Don't install on any serv
[![GitHub Stars](https://img.shields.io/github/stars/lllllllillllllillll/DweebUI)](https://github.com/lllllllillllllillll)
[![GitHub License](https://img.shields.io/github/license/lllllllillllllillll/DweebUI)](https://github.com/lllllllillllllillll/DweebUI/blob/main/LICENSE)
[![GitHub Activity](https://img.shields.io/github/commit-activity/y/lllllllillllllillll/DweebUI)](https://github.com/lllllllillllllillll)
[![Docker Pulls](https://img.shields.io/docker/pulls/lllllllillllllillll/dweebui)](https://hub.docker.com/repository/docker/lllllllillllllillll/dweebui)
* I haven't used Github very much and I'm still new to javascript.
* This is the first project I've ever released and I'm sure it's full of plenty of bugs and mistakes.

View file

@ -2,11 +2,12 @@ module.exports.dashCard = function dashCard(data) {
let { name, service, id, state, image, external_port, internal_port, ports, volumes, environment_variables, labels, IPv4, style } = data;
let margin, icon, font = '';
if (style = "Large") {
//Large cards
} else if (style = "Compact") {
//Compact cards
margin = 'style="margin-bottom: 0;"'
} else if (style = "Row") {
//Row cards
}
@ -170,7 +171,7 @@ module.exports.dashCard = function dashCard(data) {
</div>
</div>
<div class="d-flex align-items-baseline">
<div class="h1 me-2" title="${name}" style="margin-bottom: 0;">
<div class="h1 me-2" title="${name}" ${margin}>
<a href="http://${IPv4}:${external_port}" target="_blank">
${shortened_name}
</a>