Skip to content

Commit 4582ffa

Browse files
authored
Update print statement from 'Hello' to 'Goodbye'
1 parent 3b2b553 commit 4582ffa

1 file changed

Lines changed: 12 additions & 11 deletions

File tree

utils/theSystem.js

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ function generateErrorSVG(
8484

8585
/**
8686
* Generate SVG Card
87-
* @param {string} image - User Github Image
87+
* @param {string} image - The Avatar Image in Base64
8888
* @param {string} name - The Github account name
8989
* @param {string} desc - The Description or Bio
9090
* @param {number} age - The Age.
@@ -104,16 +104,16 @@ function generateErrorSVG(
104104
*/
105105

106106
function generateSVG(
107-
image,
107+
image = "",
108108
name = "Not Found",
109-
desc = wrapSVGText("Orang yang pengen jadi programmer handal tapi enggan ngoding", 50, 17),
110-
age = 18,
111-
study = "S1 IT",
109+
desc = wrapSVGText("None", 50, 17),
110+
age,
111+
study = "-",
112112
religion = "Private",
113-
job = "None",
114-
number = 6282172175234,
113+
job = "-",
114+
number = "Private",
115115
email = "Private",
116-
hobby = "Coding",
116+
hobby = "-",
117117
totalStars = 0,
118118
totalRepos = 0,
119119
totalIssues = 0,
@@ -126,6 +126,9 @@ function generateSVG(
126126
const titleId = `title-${uid}`;
127127
const descId = `desc-${uid}`;
128128

129+
age = (typeof age === "number") ? age : "Private";
130+
number = (typeof number === "number") ? `+${number}` : "Private";
131+
129132
const svg = `
130133
<svg width="600" height="600" xmlns="http://www.w3.org/2000/svg">
131134
<title id="${titleId}">${escapeXML("Lemon Card - SVG Card")}</title>
@@ -350,7 +353,7 @@ function generateSVG(
350353
font-family="Ubuntu, sans-serif"
351354
fill="#ffffffff"
352355
class="fade-up del-number"
353-
font-size="14">Number: +${number}</text>
356+
font-size="14">Number: ${number}</text>
354357
355358
<text x="340" y="420"
356359
text-anchor="start"
@@ -429,5 +432,3 @@ function generateSVG(
429432

430433

431434
module.exports = { generateErrorSVG, generateSVG }
432-
433-

0 commit comments

Comments
 (0)