config redirect

This commit is contained in:
Nuno Coração
2023-01-29 22:30:24 +00:00
parent 17557c7d73
commit 5fb4bd8083
9905 changed files with 1258996 additions and 36355 deletions

52
node_modules/detect-autofill/CHANGELOG.md generated vendored Normal file
View File

@@ -0,0 +1,52 @@
## [1.1.4](https://github.com/matteobad/detect-autofill/compare/v1.1.3...v1.1.4) (2021-04-07)
### Bug Fixes
* doc ([d2c5b12](https://github.com/matteobad/detect-autofill/commit/d2c5b124b30431160bdcc3ce4293f0ccfd18a1ff))
## [1.1.3](https://github.com/matteobad/detect-autofill/compare/v1.1.2...v1.1.3) (2020-04-11)
### Bug Fixes
* IE11 prevent default ([e7b1712](https://github.com/matteobad/detect-autofill/commit/e7b171266b87087157a4f292f6981410871a1f60))
## [1.1.2](https://github.com/matteobad/detect-autofill/compare/v1.1.1...v1.1.2) (2020-02-02)
### Bug Fixes
* update npmignore ([82b2019](https://github.com/matteobad/detect-autofill/commit/82b2019be6e73573ffd0454e4a4aea14ee7560c7))
## [1.1.1](https://github.com/matteobad/detect-autofill/compare/v1.1.0...v1.1.1) (2019-11-02)
### Bug Fixes
* eslint errors ([6acbee5](https://github.com/matteobad/detect-autofill/commit/6acbee5dc5d2d545c88b80ece96aaa61dc77d785))
# [1.1.0](https://github.com/matteobad/detect-autofill/compare/v1.0.0...v1.1.0) (2019-07-20)
### Bug Fixes
* greenkeeper conflict ([864e363](https://github.com/matteobad/detect-autofill/commit/864e363))
### Features
* reduce bundle size with closure compiler ([b530610](https://github.com/matteobad/detect-autofill/commit/b530610))
# 1.0.0 (2019-07-19)
### Bug Fixes
* add iOS support ([7ae79d4](https://github.com/matteobad/detect-autofill/commit/7ae79d4))
### Features
* first commit ([de628b5](https://github.com/matteobad/detect-autofill/commit/de628b5))
* setup npm and github keys on travis ([93d3e38](https://github.com/matteobad/detect-autofill/commit/93d3e38))

21
node_modules/detect-autofill/LICENSE generated vendored Normal file
View File

@@ -0,0 +1,21 @@
MIT License
Copyright (c) 2019 Matteo Badini
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.

69
node_modules/detect-autofill/README.md generated vendored Normal file
View File

@@ -0,0 +1,69 @@
# Detect browsers autofill
[![npm version](https://badge.fury.io/js/detect-autofill.svg)](https://badge.fury.io/js/detect-autofill) [![Build Status](https://travis-ci.org/matteobad/detect-autofill.svg?branch=master)](https://travis-ci.org/matteobad/detect-autofill/) ![David](https://img.shields.io/david/dev/matteobad/detect-autofill.svg) ![David](https://img.shields.io/david/matteobad/detect-autofill.svg) [![Greenkeeper badge](https://badges.greenkeeper.io/matteobad/detect-autofill.svg)](https://greenkeeper.io/) [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)
* [Getting started](#getting-started)
* [Features](#features)
* [Browser support](#browser-support)
* [Demo](https://matteobad.github.io/focus-within-polyfill)
## TLDR
1. Import script in the head
```html
<head>
...
<script src="https://unpkg.com/detect-autofill/dist/detect-autofill.js"></script>
...
</head>
```
2. add event listeners
3. do your things...
```js
document.addEventListener('onautocomplete', function(e) {
e.target.hasAttribute('autocompleted'); // true or false
e.preventDefault(); // prevent autocomplete
// do you stuff...
})
```
## Getting Started
Small javascript library to detect browser autofill of form elements. Usefull for implementing floating labels or appling custom styles.
Modern browsers all have some ability to autocomplete the forms in a web page. It can be a login or a registration form, and the autofill can be triggered automatiaclly by the browser or manually by the user. In both cases **there is no native way to detect the autocomplete**. This is where this small library comes in handy.
Every browser has it's own way to autocomplete a form. Basically this library creates and triggers a `CustomEvent` called `autocomplete` every time this happends.
Furthermore this custom event can be prevented like all native events in order to block browser autofill using `e.preventDefault()`.
## Features
* Polyfill for CustomEvent integrated
* CustomEvent on `onautocomplete`
* CustomEvent on `onautocomplete` cancel
* Possibility to prevent `onautocomplete`
## Browser Support
| CustomEvent | Edge | IE11 | Chrome | Firefox | Safari | Opera | iOS |
| -------------- |:----:|:-----:|:------:|:-------:|:------:|:-----:|:---:|
| `onautocomplete` | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
\* This script uses different technics to detect autofill based on the browser:
* **Chrome**, **Opera** and **Safari** uses the pseudo-class `:-webkit-autofill` to trigger a custom animation.
* **Firefox** uses input event on document and checks for a propriety `inputType` property of the event.
* **IE**, **Edge** and **iOS** uses the same input event but they have to check the `data` property.
* **Android** ha not yet been tested any help is welcomed.
## Demos
The [demos](https://github.com/matteobad/detect-autofill/tree/master/demos) can be tested on every browser. If something is not working properly, please open an issue or a PR.
| Title | Source code | Live demo |
| ----- | ----------- | --------- |
| Fake login page | [Code](demos/fake-login.html) | [Live](https://matteobad.github.io/detect-autofill/demos/fake-login.html) |

1
node_modules/detect-autofill/dist/detect-autofill.js generated vendored Normal file

File diff suppressed because one or more lines are too long

68
node_modules/detect-autofill/package.json generated vendored Normal file
View File

@@ -0,0 +1,68 @@
{
"name": "detect-autofill",
"version": "1.1.4",
"description": "Small javascript library to detect and even prevent browsers autofill of form elements. Usefull for implementing floating labels or applying custom logics/styles.",
"main": "dist/detect-autofill.js",
"scripts": {
"commit": "git-cz",
"clean": "rimraf dist",
"lint": "eslint src/**/*.js",
"lint:fix": "eslint src/**/*.js --fix",
"build": "webpack --mode=production",
"watch": "webpack --mode=development -w",
"test": "npm run lint",
"prepublishOnly": "npm run clean && npm run lint && npm run build && npm run test",
"semantic-release": "semantic-release",
"travis-deploy-once": "travis-deploy-once"
},
"repository": {
"type": "git",
"url": "https://github.com/matteobad/detect-autofill.git"
},
"keywords": [
"autocomplete",
"autofill",
"-webkit-autofill",
"floating-label",
"vanilla"
],
"author": "Matteo Badini <matteo.badini95@gmail.com>",
"license": "MIT",
"bugs": {
"url": "https://github.com/matteobad/detect-autofill/issues"
},
"homepage": "https://github.com/matteobad/detect-autofill#readme",
"dependencies": {
"custom-event-polyfill": "^1.0.7"
},
"devDependencies": {
"@semantic-release/changelog": "^5.0.1",
"@semantic-release/commit-analyzer": "^8.0.1",
"@semantic-release/git": "^9.0.0",
"@semantic-release/github": "^7.2.1",
"@semantic-release/npm": "^7.1.0",
"@semantic-release/release-notes-generator": "^9.0.2",
"commitizen": "^4.2.3",
"css-loader": "^5.2.0",
"cz-conventional-changelog": "^3.3.0",
"eslint": "^7.23.0",
"eslint-config-google": "^0.14.0",
"husky": "^4.2.5",
"sass": "^1.32.8",
"sass-loader": "^11.0.1",
"semantic-release": "^17.4.2",
"style-loader": "^2.0.0",
"webpack": "^5.30.0",
"webpack-cli": "^4.6.0"
},
"config": {
"commitizen": {
"path": "cz-conventional-changelog"
}
},
"husky": {
"hooks": {
"pre-commit": "npm run lint && npm run test"
}
}
}