@icarusmx/creta 1.0.20 → 1.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -115,7 +115,7 @@ export class Lesson1SystemDecomposition {
|
|
|
115
115
|
}
|
|
116
116
|
}`
|
|
117
117
|
|
|
118
|
-
this.
|
|
118
|
+
this.printCodeWithColors("📄 Clase Book", bookCode)
|
|
119
119
|
|
|
120
120
|
await this.waitForEnter("\nPresiona Enter para ver User...")
|
|
121
121
|
|
|
@@ -141,7 +141,7 @@ export class Lesson1SystemDecomposition {
|
|
|
141
141
|
}
|
|
142
142
|
}`
|
|
143
143
|
|
|
144
|
-
this.
|
|
144
|
+
this.printCodeWithColors("📄 Clase User", userCode)
|
|
145
145
|
|
|
146
146
|
await this.waitForEnter("\nPresiona Enter para ver Loan...")
|
|
147
147
|
|
|
@@ -171,7 +171,7 @@ export class Lesson1SystemDecomposition {
|
|
|
171
171
|
}
|
|
172
172
|
}`
|
|
173
173
|
|
|
174
|
-
this.
|
|
174
|
+
this.printCodeWithColors("📄 Clase Loan", loanCode)
|
|
175
175
|
|
|
176
176
|
await this.waitForEnter("\nPresiona Enter para ver Library...")
|
|
177
177
|
|
|
@@ -284,22 +284,16 @@ export class Lesson1SystemDecomposition {
|
|
|
284
284
|
.replace(/\/\/.*$/gm, `${colors.comment}$&${colors.reset}`)
|
|
285
285
|
}
|
|
286
286
|
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
const titleLine = `│ ${title}${' '.repeat(60 - title.length - 1)}│`
|
|
291
|
-
|
|
292
|
-
console.log(`\n${border}`)
|
|
293
|
-
console.log(titleLine)
|
|
294
|
-
console.log('├' + '─'.repeat(60) + '┤')
|
|
287
|
+
printCodeWithColors(title, code) {
|
|
288
|
+
console.log(`\n${title}`)
|
|
289
|
+
console.log("━".repeat(50))
|
|
295
290
|
|
|
296
291
|
code.split('\n').forEach(line => {
|
|
297
292
|
const formattedLine = this.formatCode(line)
|
|
298
|
-
|
|
299
|
-
console.log(`│ ${formattedLine}${padding}│`)
|
|
293
|
+
console.log(formattedLine)
|
|
300
294
|
})
|
|
301
295
|
|
|
302
|
-
console.log(
|
|
296
|
+
console.log("━".repeat(50))
|
|
303
297
|
}
|
|
304
298
|
|
|
305
299
|
async waitForEnter(message) {
|