gl-w-frontend
Advanced tools
Comparing version 1.4.5 to 1.4.6
@@ -1,1 +0,1 @@ | ||
"use strict";function __export(m){for(var p in m)if(!exports.hasOwnProperty(p))exports[p]=m[p]}Object.defineProperty(exports,"__esModule",{value:true});require("jquery-ui-dist/jquery-ui.min");__export(require("./scripts/core/services/array/core-services-array.service"));__export(require("./scripts/core/services/attachment/core-services-attachment.service"));__export(require("./scripts/core/services/browser/core-services-browser.service"));__export(require("./scripts/core/services/combobox/core-services-combobox.service"));__export(require("./scripts/core/services/date/core-services-date.service"));__export(require("./scripts/core/services/elements/core-services-elements.service"));__export(require("./scripts/core/services/input/core-services-input.service"));__export(require("./scripts/core/services/string/core-services-string.service"));__export(require("./scripts/core/services/url/core-services-url.service")); | ||
"use strict";function __export(a){for(var b in a){if(!exports.hasOwnProperty(b)){exports[b]=a[b]}}}Object.defineProperty(exports,"__esModule",{value:true});require("jquery");require("jquery-ui-dist/jquery-ui.min");__export(require("./scripts/core/services/array/core-services-array.service"));__export(require("./scripts/core/services/attachment/core-services-attachment.service"));__export(require("./scripts/core/services/browser/core-services-browser.service"));__export(require("./scripts/core/services/combobox/core-services-combobox.service"));__export(require("./scripts/core/services/date/core-services-date.service"));__export(require("./scripts/core/services/elements/core-services-elements.service"));__export(require("./scripts/core/services/input/core-services-input.service"));__export(require("./scripts/core/services/string/core-services-string.service"));__export(require("./scripts/core/services/url/core-services-url.service")); |
{ | ||
"name": "gl-w-frontend", | ||
"version": "1.4.5", | ||
"version": "1.4.6", | ||
"description": "Common code for using among web front-end development such as pure JavaScript, ES6+ and TypeScript", | ||
@@ -8,2 +8,5 @@ "main": "lib/index.js", | ||
"module": "lib/esm/index.js", | ||
"files": [ | ||
"lib/assets/**/*" | ||
], | ||
"scripts": { | ||
@@ -13,3 +16,3 @@ "clean": "shx rm -rf dist lib", | ||
"test": "echo \"Error: no test specified\" && exit 1", | ||
"build-clean": "npm run clean && tsc && tsc -m es6 --outDir lib/esm", | ||
"production": "npm run clean && npm run build && npm run copy-assets", | ||
"build": "tsc && tsc -m es6 --outDir lib/esm", | ||
@@ -16,0 +19,0 @@ "fast-build": "tsc", |
# gl-w-frontend # | ||
[![version](https://img.shields.io/badge/version-1.4.5-green.svg)](https://www.npmjs.com/package/gl-w-frontend) | ||
[![version](https://img.shields.io/badge/version-1.4.6-green.svg)](https://www.npmjs.com/package/gl-w-frontend) | ||
### What is this repository for? ### | ||
This package is a common code for using among web front-end development | ||
This package (*g*laucio*l*eonardo-*w*eb-*frontend*) is a common code for using among web front-end development | ||
such as pure JavaScript, ES6+ and TypeScript.<br> | ||
@@ -28,2 +28,14 @@ | ||
... | ||
<!-- Dependencies must be placed in order --> | ||
<script src="https://code.jquery.com/jquery-3.5.1.js"></script> | ||
<script | ||
src="https://code.jquery.com/ui/1.12.1/jquery-ui.min.js" | ||
integrity="sha256-VazP97ZCwtekAsvgPBSUwPFKdrwD3unUfSGVYrahUqU=" | ||
crossorigin="anonymous"> | ||
</script> | ||
<script src="https://github.com/sindresorhus/screenfull.js/blob/master/dist/screenfull.min.js"></script> | ||
<script src="https://github.com/moment/moment/blob/develop/dist/moment.js"></script> | ||
<script src="https://github.com/rotaready/moment-range/blob/master/lib/moment-range.js"></script> | ||
<!-- Include here --> | ||
@@ -36,5 +48,62 @@ <script src="https://github.com/glaucioleonardo/gl-w-frontend/tree/master/lib/index.js"></script> | ||
``` | ||
####Important: #### | ||
* The library "moment-range" makes use of `Symbol.iterator` to provide the iteration protocols. | ||
If you need to support older browsers (specifically IE11+) you will need to include a polyfill. | ||
Any of the following should work, depending on your project configuration: <br> | ||
* [core-js](https://github.com/zloirock/core-js): Tested with this polyfill (working on IE10+). | ||
* [babel runtime transform plugin](https://babeljs.io/docs/plugins/transform-runtime) | ||
* [babel polyfill](https://babeljs.io/docs/usage/polyfill) | ||
* [es6-iterator](https://github.com/medikoo/es6-iterator) | ||
* In case you are using ES+, just use the `index.js` inside `lib/esm` | ||
#### Importing assets of this library #### | ||
* If you are using nodejs, you can just copy/refer the folder insinde `node_module/gl-w-frontend/lib/assets`; | ||
* Angular: open the `angular.json` and paste this code in : | ||
``` | ||
{ | ||
... | ||
"projects": { | ||
"my-project-angular": { | ||
... | ||
"architect": { | ||
"build": { | ||
... | ||
"options": { | ||
... | ||
"assets": [ | ||
... | ||
{ | ||
"glob": "**/*", | ||
"input": "node_modules/gl-w-frontend/lib/assets", | ||
"output": "/assets" | ||
} | ||
], | ||
}, | ||
... | ||
}, | ||
... | ||
} | ||
}}, | ||
... | ||
} | ||
``` | ||
* Browser version: copy the folder assets and add to your public folder or save anywhere and in | ||
the following method inform the folderUrl (optional parameter). | ||
`AttachmentIcon.get(..., folderUrl: string /*inform the folser url*/)` | ||
``` | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>gl-w-frontend</title> | ||
... | ||
</head> | ||
<body> | ||
... | ||
</body> | ||
</html> | ||
``` | ||
### Macro features ### | ||
@@ -41,0 +110,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Empty package
Supply chain riskPackage does not contain any code. It may be removed, is name squatting, or the result of a faulty package publish.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 2 instances in 1 package
2
128
34614
22
0
2