From 291803c31f829fe0d32bb3207bc11def95a7408c Mon Sep 17 00:00:00 2001 From: Nevena Bojovic Date: Tue, 1 Mar 2022 20:05:50 +0100 Subject: Urađena test aplikacija. Povezan front i back. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Front/node_modules/cli-cursor/index.d.ts | 45 ++++++++++++++++++ .../Front/node_modules/cli-cursor/index.js | 35 ++++++++++++++ .../Front/node_modules/cli-cursor/license | 9 ++++ .../Front/node_modules/cli-cursor/package.json | 46 ++++++++++++++++++ .../Front/node_modules/cli-cursor/readme.md | 55 ++++++++++++++++++++++ 5 files changed, 190 insertions(+) create mode 100644 sandbox/testAppNevena/Front/node_modules/cli-cursor/index.d.ts create mode 100644 sandbox/testAppNevena/Front/node_modules/cli-cursor/index.js create mode 100644 sandbox/testAppNevena/Front/node_modules/cli-cursor/license create mode 100644 sandbox/testAppNevena/Front/node_modules/cli-cursor/package.json create mode 100644 sandbox/testAppNevena/Front/node_modules/cli-cursor/readme.md (limited to 'sandbox/testAppNevena/Front/node_modules/cli-cursor') diff --git a/sandbox/testAppNevena/Front/node_modules/cli-cursor/index.d.ts b/sandbox/testAppNevena/Front/node_modules/cli-cursor/index.d.ts new file mode 100644 index 00000000..2b252d05 --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/cli-cursor/index.d.ts @@ -0,0 +1,45 @@ +/// + +/** +Show cursor. + +@param stream - Default: `process.stderr`. + +@example +``` +import * as cliCursor from 'cli-cursor'; + +cliCursor.show(); +``` +*/ +export function show(stream?: NodeJS.WritableStream): void; + +/** +Hide cursor. + +@param stream - Default: `process.stderr`. + +@example +``` +import * as cliCursor from 'cli-cursor'; + +cliCursor.hide(); +``` +*/ +export function hide(stream?: NodeJS.WritableStream): void; + +/** +Toggle cursor visibility. + +@param force - Is useful to show or hide the cursor based on a boolean. +@param stream - Default: `process.stderr`. + +@example +``` +import * as cliCursor from 'cli-cursor'; + +const unicornsAreAwesome = true; +cliCursor.toggle(unicornsAreAwesome); +``` +*/ +export function toggle(force?: boolean, stream?: NodeJS.WritableStream): void; diff --git a/sandbox/testAppNevena/Front/node_modules/cli-cursor/index.js b/sandbox/testAppNevena/Front/node_modules/cli-cursor/index.js new file mode 100644 index 00000000..710c4051 --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/cli-cursor/index.js @@ -0,0 +1,35 @@ +'use strict'; +const restoreCursor = require('restore-cursor'); + +let isHidden = false; + +exports.show = (writableStream = process.stderr) => { + if (!writableStream.isTTY) { + return; + } + + isHidden = false; + writableStream.write('\u001B[?25h'); +}; + +exports.hide = (writableStream = process.stderr) => { + if (!writableStream.isTTY) { + return; + } + + restoreCursor(); + isHidden = true; + writableStream.write('\u001B[?25l'); +}; + +exports.toggle = (force, writableStream) => { + if (force !== undefined) { + isHidden = force; + } + + if (isHidden) { + exports.show(writableStream); + } else { + exports.hide(writableStream); + } +}; diff --git a/sandbox/testAppNevena/Front/node_modules/cli-cursor/license b/sandbox/testAppNevena/Front/node_modules/cli-cursor/license new file mode 100644 index 00000000..e7af2f77 --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/cli-cursor/license @@ -0,0 +1,9 @@ +MIT License + +Copyright (c) Sindre Sorhus (sindresorhus.com) + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/sandbox/testAppNevena/Front/node_modules/cli-cursor/package.json b/sandbox/testAppNevena/Front/node_modules/cli-cursor/package.json new file mode 100644 index 00000000..5ce1e659 --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/cli-cursor/package.json @@ -0,0 +1,46 @@ +{ + "name": "cli-cursor", + "version": "3.1.0", + "description": "Toggle the CLI cursor", + "license": "MIT", + "repository": "sindresorhus/cli-cursor", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "cli", + "cursor", + "ansi", + "toggle", + "display", + "show", + "hide", + "term", + "terminal", + "console", + "tty", + "shell", + "command-line" + ], + "dependencies": { + "restore-cursor": "^3.1.0" + }, + "devDependencies": { + "@types/node": "^12.0.7", + "ava": "^2.1.0", + "tsd": "^0.7.2", + "xo": "^0.24.0" + } +} diff --git a/sandbox/testAppNevena/Front/node_modules/cli-cursor/readme.md b/sandbox/testAppNevena/Front/node_modules/cli-cursor/readme.md new file mode 100644 index 00000000..3478ac80 --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/cli-cursor/readme.md @@ -0,0 +1,55 @@ +# cli-cursor [![Build Status](https://travis-ci.org/sindresorhus/cli-cursor.svg?branch=master)](https://travis-ci.org/sindresorhus/cli-cursor) + +> Toggle the CLI cursor + +The cursor is [gracefully restored](https://github.com/sindresorhus/restore-cursor) if the process exits. + + +## Install + +``` +$ npm install cli-cursor +``` + + +## Usage + +```js +const cliCursor = require('cli-cursor'); + +cliCursor.hide(); + +const unicornsAreAwesome = true; +cliCursor.toggle(unicornsAreAwesome); +``` + + +## API + +### .show(stream?) + +### .hide(stream?) + +### .toggle(force?, stream?) + +#### force + +Useful for showing or hiding the cursor based on a boolean. + +#### stream + +Type: `stream.Writable`
+Default: `process.stderr` + + +--- + +
+ + Get professional support for this package with a Tidelift subscription + +
+ + Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies. +
+
-- cgit v1.2.3