mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-08-11 04:29:23 +08:00
Added JSDoc for src/components/*
Signed-off-by: Matthew Nickson <mnickson@sidingsmedia.com>
This commit is contained in:
@@ -56,12 +56,19 @@ export default {
|
||||
Datetime,
|
||||
},
|
||||
props: {
|
||||
/** Object representing certificate */
|
||||
cert: {
|
||||
type: Object,
|
||||
required: true,
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
/**
|
||||
* Format the subject of the certificate
|
||||
* @param {Object} subject Object representing the certificates
|
||||
* subject
|
||||
* @returns {string}
|
||||
*/
|
||||
formatSubject(subject) {
|
||||
if (subject.O && subject.CN && subject.C) {
|
||||
return `${subject.CN} - ${subject.O} (${subject.C})`;
|
||||
|
Reference in New Issue
Block a user