aboutsummaryrefslogtreecommitdiff
path: root/sandbox/testAppNevena/Front/node_modules/gauge/lib/plumbing.js
diff options
context:
space:
mode:
authorNevena Bojovic <nenabojov@gmail.com>2022-03-01 22:05:25 +0100
committerNevena Bojovic <nenabojov@gmail.com>2022-03-01 22:05:25 +0100
commit6555fb80fdd8f6a5d201efadec3189d1244830a0 (patch)
treec1aa1c5aedc634ad1ea7fad4847884d559b51290 /sandbox/testAppNevena/Front/node_modules/gauge/lib/plumbing.js
parent7d3640f824f46490b47bd95f1c5a16644f712068 (diff)
Izbrisala bin, obj i node-modules.
Diffstat (limited to 'sandbox/testAppNevena/Front/node_modules/gauge/lib/plumbing.js')
-rw-r--r--sandbox/testAppNevena/Front/node_modules/gauge/lib/plumbing.js50
1 files changed, 0 insertions, 50 deletions
diff --git a/sandbox/testAppNevena/Front/node_modules/gauge/lib/plumbing.js b/sandbox/testAppNevena/Front/node_modules/gauge/lib/plumbing.js
deleted file mode 100644
index c4dc3e07..00000000
--- a/sandbox/testAppNevena/Front/node_modules/gauge/lib/plumbing.js
+++ /dev/null
@@ -1,50 +0,0 @@
-'use strict'
-var consoleControl = require('console-control-strings')
-var renderTemplate = require('./render-template.js')
-var validate = require('aproba')
-
-var Plumbing = module.exports = function (theme, template, width) {
- if (!width) {
- width = 80
- }
- validate('OAN', [theme, template, width])
- this.showing = false
- this.theme = theme
- this.width = width
- this.template = template
-}
-Plumbing.prototype = {}
-
-Plumbing.prototype.setTheme = function (theme) {
- validate('O', [theme])
- this.theme = theme
-}
-
-Plumbing.prototype.setTemplate = function (template) {
- validate('A', [template])
- this.template = template
-}
-
-Plumbing.prototype.setWidth = function (width) {
- validate('N', [width])
- this.width = width
-}
-
-Plumbing.prototype.hide = function () {
- return consoleControl.gotoSOL() + consoleControl.eraseLine()
-}
-
-Plumbing.prototype.hideCursor = consoleControl.hideCursor
-
-Plumbing.prototype.showCursor = consoleControl.showCursor
-
-Plumbing.prototype.show = function (status) {
- var values = Object.create(this.theme)
- for (var key in status) {
- values[key] = status[key]
- }
-
- return renderTemplate(this.width, this.template, values).trim() +
- consoleControl.color('reset') +
- consoleControl.eraseLine() + consoleControl.gotoSOL()
-}