From 56d716cee4690bd82c05c10acb2f329c19c4a23b Mon Sep 17 00:00:00 2001
From: Yoswaris Lawpaiboon <22832362+kiznick@users.noreply.github.com>
Date: Fri, 10 Mar 2023 17:46:45 +0700
Subject: [PATCH 1/8] Create badge-list.md
---
badge-list.md | 122 ++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 122 insertions(+)
create mode 100644 badge-list.md
diff --git a/badge-list.md b/badge-list.md
new file mode 100644
index 000000000..f5fdf332d
--- /dev/null
+++ b/badge-list.md
@@ -0,0 +1,122 @@
+```
+ label,
+ upLabel = "Up",
+ downLabel = "Down",
+ pendingLabel = "Pending",
+ maintenanceLabel = "Maintenance",
+ upColor = badgeConstants.defaultUpColor,
+ downColor = badgeConstants.defaultDownColor,
+ pendingColor = badgeConstants.defaultPendingColor,
+ maintenanceColor = badgeConstants.defaultMaintenanceColor,
+ style = badgeConstants.defaultStyle,
+ value, // for demo purpose only
+```
+
+```
+/api/badge/:id/uptime/:duration?
+ label,
+ labelPrefix,
+ labelSuffix = badgeConstants.defaultUptimeLabelSuffix,
+ prefix,
+ suffix = badgeConstants.defaultUptimeValueSuffix,
+ color,
+ labelColor,
+ style = badgeConstants.defaultStyle,
+ value, // for demo purpose only
+```
+
+```
+/api/badge/:id/ping/:duration?
+ label,
+ labelPrefix,
+ labelSuffix = badgeConstants.defaultPingLabelSuffix,
+ prefix,
+ suffix = badgeConstants.defaultPingValueSuffix,
+ color = badgeConstants.defaultPingColor,
+ labelColor,
+ style = badgeConstants.defaultStyle,
+ value, // for demo purpose only
+```
+
+```
+/api/badge/:id/avg-response/:duration?
+ label,
+ labelPrefix,
+ labelSuffix,
+ prefix,
+ suffix = badgeConstants.defaultPingValueSuffix,
+ color = badgeConstants.defaultPingColor,
+ labelColor,
+ style = badgeConstants.defaultStyle,
+ value, // for demo purpose only
+```
+
+```
+/api/badge/:id/cert-exp
+ label,
+ labelPrefix,
+ labelSuffix,
+ prefix,
+ suffix = date ? "" : badgeConstants.defaultCertExpValueSuffix,
+ upColor = badgeConstants.defaultUpColor,
+ warnColor = badgeConstants.defaultWarnColor,
+ downColor = badgeConstants.defaultDownColor,
+ warnDays = badgeConstants.defaultCertExpireWarnDays,
+ downDays = badgeConstants.defaultCertExpireDownDays,
+ labelColor,
+ style = badgeConstants.defaultStyle,
+ value, // for demo purpose only
+```
+
+```
+/api/badge/:id/response
+ label,
+ labelPrefix,
+ labelSuffix,
+ prefix,
+ suffix = badgeConstants.defaultPingValueSuffix,
+ color = badgeConstants.defaultPingColor,
+ labelColor,
+ style = badgeConstants.defaultStyle,
+ value, // for demo purpose only
+```
+
+```
+Use in all routes
+ label
+ prefix
+ suffix,
+ labelColor
+ style = badgeConstants.defaultStyle,
+ value // for demo purpose only
+```
+
+```
+Use in all routes except status and cert-exp
+ color
+```
+
+```
+Use in all routes except status
+ labelPrefix
+ labelSuffix
+```
+
+```
+Use in routes status and cert-exp
+ upColor = badgeConstants.defaultUpColor,
+ downColor = badgeConstants.defaultDownColor,
+```
+
+```
+Use in status route only
+ pendingColor = badgeConstants.defaultPendingColor,
+ maintenanceColor = badgeConstants.defaultMaintenanceColor,
+```
+
+```
+Use in cert-exp route only
+ warnColor = badgeConstants.defaultWarnColor,
+ warnDays = badgeConstants.defaultCertExpireWarnDays,
+ downDays = badgeConstants.defaultCertExpireDownDays,
+```
\ No newline at end of file
From 3bbf269da036776b28064c38e397412975cd0231 Mon Sep 17 00:00:00 2001
From: Yoswaris Lawpaiboon <22832362+kiznick@users.noreply.github.com>
Date: Fri, 10 Mar 2023 19:25:04 +0700
Subject: [PATCH 2/8] generator modal
---
badge-list.md | 1 +
src/components/BadgeGeneratorDialog.vue | 283 ++++++++++++++++++++++++
src/components/PublicGroupList.vue | 14 +-
3 files changed, 297 insertions(+), 1 deletion(-)
create mode 100644 src/components/BadgeGeneratorDialog.vue
diff --git a/badge-list.md b/badge-list.md
index f5fdf332d..958eb1006 100644
--- a/badge-list.md
+++ b/badge-list.md
@@ -1,3 +1,4 @@
+/api/badge/:id/status
```
label,
upLabel = "Up",
diff --git a/src/components/BadgeGeneratorDialog.vue b/src/components/BadgeGeneratorDialog.vue
new file mode 100644
index 000000000..1be45100d
--- /dev/null
+++ b/src/components/BadgeGeneratorDialog.vue
@@ -0,0 +1,283 @@
+
+
+
+
+
+
+
diff --git a/src/components/PublicGroupList.vue b/src/components/PublicGroupList.vue
index 1b4d004b9..3345a991c 100644
--- a/src/components/PublicGroupList.vue
+++ b/src/components/PublicGroupList.vue
@@ -57,10 +57,19 @@
v-if="editMode"
:class="{'link-active': monitor.element.sendUrl, 'btn-link': true}"
icon="link" class="action me-3"
-
@click="toggleLink(group.index, monitor.index)"
/>
+
+
+
{{ monitor.element.name }}
- -