FEAT: down jellyfin in demo (perfect loop)

This commit is contained in:
valere
2023-09-21 08:48:40 +02:00
parent 742c0e7195
commit 914c6d12d3

View File

@@ -136,7 +136,7 @@ export default {
// nextcloud down
if (i === 23) {
const cmd = '$ pegaz down nextcloud\n'
const cmd = '$ pegaz down\n'
for (const y in cmd) {
this.terminalContent += cmd[y]
await delay(20)
@@ -145,15 +145,18 @@ export default {
if (i === 24) this.terminalContent += 'Stopping nextcloud ... done\n'
if (i === 25) this.terminalContent += '[√] Removing nextcloud ... done\n'
if (i === 26) this.nextcloudClass = downClass
if (i === 27) this.isDemonstrationEnded = true
if (i === 27) this.terminalContent += 'Stopping jellyfin ... done\n'
if (i === 28) this.terminalContent += '[√] Removing jellyfin ... done\n'
if (i === 29) this.jellyfinClass = downClass
if (i === 30) this.isDemonstrationEnded = true
i += 1
// i = 5
// if (i === 30) clearInterval(this.timer)
if (i === 30) this.terminalContent = ''
if (i === 30) this.jellyfinClass = downClass
if (i === 30) i = 0
if (i === 33) this.terminalContent = ''
if (i === 33) this.jellyfinClass = downClass
if (i === 33) i = 0
}, 700)
}
}