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/log-symbols/browser.js | 8 ++++ .../Front/node_modules/log-symbols/index.d.ts | 25 +++++++++++ .../Front/node_modules/log-symbols/index.js | 19 ++++++++ .../Front/node_modules/log-symbols/license | 9 ++++ .../Front/node_modules/log-symbols/package.json | 52 ++++++++++++++++++++++ .../Front/node_modules/log-symbols/readme.md | 51 +++++++++++++++++++++ 6 files changed, 164 insertions(+) create mode 100644 sandbox/testAppNevena/Front/node_modules/log-symbols/browser.js create mode 100644 sandbox/testAppNevena/Front/node_modules/log-symbols/index.d.ts create mode 100644 sandbox/testAppNevena/Front/node_modules/log-symbols/index.js create mode 100644 sandbox/testAppNevena/Front/node_modules/log-symbols/license create mode 100644 sandbox/testAppNevena/Front/node_modules/log-symbols/package.json create mode 100644 sandbox/testAppNevena/Front/node_modules/log-symbols/readme.md (limited to 'sandbox/testAppNevena/Front/node_modules/log-symbols') diff --git a/sandbox/testAppNevena/Front/node_modules/log-symbols/browser.js b/sandbox/testAppNevena/Front/node_modules/log-symbols/browser.js new file mode 100644 index 00000000..a66f8ec4 --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/log-symbols/browser.js @@ -0,0 +1,8 @@ +'use strict'; + +module.exports = { + info: 'ℹ️', + success: '✅', + warning: '⚠️', + error: '❌️' +}; diff --git a/sandbox/testAppNevena/Front/node_modules/log-symbols/index.d.ts b/sandbox/testAppNevena/Front/node_modules/log-symbols/index.d.ts new file mode 100644 index 00000000..8e4bdc59 --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/log-symbols/index.d.ts @@ -0,0 +1,25 @@ +/** +Colored symbols for various log levels. + +Includes fallbacks for Windows CMD which only supports a [limited character set](https://en.wikipedia.org/wiki/Code_page_437). + +@example +``` +import logSymbols = require('log-symbols'); + +console.log(logSymbols.success, 'Finished successfully!'); +// Terminals with Unicode support: ✔ Finished successfully! +// Terminals without Unicode support: √ Finished successfully! +``` +*/ +declare const logSymbols: { + readonly info: string; + + readonly success: string; + + readonly warning: string; + + readonly error: string; +}; + +export = logSymbols; diff --git a/sandbox/testAppNevena/Front/node_modules/log-symbols/index.js b/sandbox/testAppNevena/Front/node_modules/log-symbols/index.js new file mode 100644 index 00000000..12347e09 --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/log-symbols/index.js @@ -0,0 +1,19 @@ +'use strict'; +const chalk = require('chalk'); +const isUnicodeSupported = require('is-unicode-supported'); + +const main = { + info: chalk.blue('ℹ'), + success: chalk.green('✔'), + warning: chalk.yellow('⚠'), + error: chalk.red('✖') +}; + +const fallback = { + info: chalk.blue('i'), + success: chalk.green('√'), + warning: chalk.yellow('‼'), + error: chalk.red('×') +}; + +module.exports = isUnicodeSupported() ? main : fallback; diff --git a/sandbox/testAppNevena/Front/node_modules/log-symbols/license b/sandbox/testAppNevena/Front/node_modules/log-symbols/license new file mode 100644 index 00000000..fa7ceba3 --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/log-symbols/license @@ -0,0 +1,9 @@ +MIT License + +Copyright (c) Sindre Sorhus (https://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/log-symbols/package.json b/sandbox/testAppNevena/Front/node_modules/log-symbols/package.json new file mode 100644 index 00000000..b9886e44 --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/log-symbols/package.json @@ -0,0 +1,52 @@ +{ + "name": "log-symbols", + "version": "4.1.0", + "description": "Colored symbols for various log levels. Example: `✔︎ Success`", + "license": "MIT", + "repository": "sindresorhus/log-symbols", + "funding": "https://github.com/sponsors/sindresorhus", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "https://sindresorhus.com" + }, + "engines": { + "node": ">=10" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts", + "browser.js" + ], + "keywords": [ + "unicode", + "cli", + "cmd", + "command-line", + "characters", + "symbol", + "symbols", + "figure", + "figures", + "fallback", + "windows", + "log", + "logging", + "terminal", + "stdout" + ], + "dependencies": { + "chalk": "^4.1.0", + "is-unicode-supported": "^0.1.0" + }, + "devDependencies": { + "ava": "^2.4.0", + "strip-ansi": "^6.0.0", + "tsd": "^0.14.0", + "xo": "^0.38.2" + }, + "browser": "browser.js" +} diff --git a/sandbox/testAppNevena/Front/node_modules/log-symbols/readme.md b/sandbox/testAppNevena/Front/node_modules/log-symbols/readme.md new file mode 100644 index 00000000..d464eae9 --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/log-symbols/readme.md @@ -0,0 +1,51 @@ +# log-symbols + + + +> Colored symbols for various log levels + +Includes fallbacks for Windows CMD which only supports a [limited character set](https://en.wikipedia.org/wiki/Code_page_437). + +## Install + +``` +$ npm install log-symbols +``` + +## Usage + +```js +const logSymbols = require('log-symbols'); + +console.log(logSymbols.success, 'Finished successfully!'); +// Terminals with Unicode support: ✔ Finished successfully! +// Terminals without Unicode support: √ Finished successfully! +``` + +## API + +### logSymbols + +#### info +#### success +#### warning +#### error + +## Related + +- [figures](https://github.com/sindresorhus/figures) - Unicode symbols with Windows CMD fallbacks +- [py-log-symbols](https://github.com/ManrajGrover/py-log-symbols) - Python port +- [log-symbols](https://github.com/palash25/log-symbols) - Ruby port +- [guumaster/logsymbols](https://github.com/guumaster/logsymbols) - Golang port + +--- + +
+ + 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