From b7f3d2fc1b1237a1cb3716c5a7cf5728df57170f Mon Sep 17 00:00:00 2001 From: Christian Oliff <1212885+coliff@users.noreply.github.com> Date: Tue, 28 Jun 2022 17:08:33 +0900 Subject: [PATCH] update for v1.3.0 release --- .eslintrc.json | 2 +- .github/workflows/codeql-analysis.yml | 28 +++++++++---------------- .github/workflows/dependency-review.yml | 1 + .github/workflows/linter.yml | 6 +++++- README.md | 8 +++---- package.json | 4 ++-- 6 files changed, 23 insertions(+), 26 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index bb1ac14..a873810 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,9 +1,9 @@ { + "root": true, "env": { "es6": true, "node": true }, - "root": true, "extends": ["eslint:recommended"], "rules": { "no-undef": "off" diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 2d9a342..6b03870 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -2,9 +2,9 @@ name: "CodeQL" on: push: - branches: [ main ] + branches: [main] pull_request: - branches: [ main ] + branches: [main] jobs: analyze: @@ -15,22 +15,14 @@ jobs: contents: read security-events: write - strategy: - fail-fast: false - matrix: - language: [ 'javascript' ] - steps: - - name: Checkout repository - uses: actions/checkout@v3 - - - name: Initialize CodeQL - uses: github/codeql-action/init@v2 - with: - languages: ${{ matrix.language }} + - name: Checkout repository + uses: actions/checkout@v3 - - name: Autobuild - uses: github/codeql-action/autobuild@v2 + - name: Initialize CodeQL + uses: github/codeql-action/init@v2 + with: + languages: "javascript" - - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v2 + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v2 diff --git a/.github/workflows/dependency-review.yml b/.github/workflows/dependency-review.yml index 745f4c5..5c874b3 100644 --- a/.github/workflows/dependency-review.yml +++ b/.github/workflows/dependency-review.yml @@ -10,5 +10,6 @@ jobs: steps: - name: "Checkout Repository" uses: actions/checkout@v3 + - name: "Dependency Review" uses: actions/dependency-review-action@v2 diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index ce13864..edcda73 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -12,12 +12,16 @@ jobs: steps: - name: Checkout Code uses: actions/checkout@v3 + with: + fetch-depth: 0 - name: Lint Code Base uses: github/super-linter/slim@v4 env: DEFAULT_BRANCH: main + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + JAVASCRIPT_DEFAULT_STYLE: prettier + LINTER_RULES_PATH: / VALIDATE_ALL_CODEBASE: false VALIDATE_EDITORCONFIG: false VALIDATE_MARKDOWN: false - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/README.md b/README.md index a06e109..cf0179b 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ [![LICENSE](https://img.shields.io/badge/license-MIT-lightgrey.svg)](https://raw.githubusercontent.com/coliff/bootstrap-show-password-toggle/master/LICENSE) [![GitHub Super-Linter](https://github.com/coliff/bootstrap-show-password-toggle/workflows/Lint%20Code%20Base/badge.svg)](https://github.com/marketplace/actions/super-linter) [![GitHub Stars](https://img.shields.io/github/stars/coliff/bootstrap-show-password-toggle.svg?label=github%20stars)](https://github.com/coliff/bootstrap-show-password-toggle) -[![NPM Version](https://img.shields.io/npm/v/bootstrap-show-password-toggle)](https://www.npmjs.com/package/bootstrap-show-password-toggle) -[![NPM Downloads](https://img.shields.io/npm/dt/bootstrap-show-password-toggle.svg)](https://www.npmjs.com/package/bootstrap-show-password-toggle) +[![npm Version](https://img.shields.io/npm/v/bootstrap-show-password-toggle)](https://www.npmjs.com/package/bootstrap-show-password-toggle) +[![npm Downloads](https://img.shields.io/npm/dt/bootstrap-show-password-toggle.svg)](https://www.npmjs.com/package/bootstrap-show-password-toggle) [![Language grade: JavaScript](https://img.shields.io/lgtm/grade/javascript/g/coliff/bootstrap-show-password-toggle.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/coliff/bootstrap-show-password-toggle/context:javascript) # Bootstrap Show Password Toggle @@ -27,7 +27,7 @@ A show password as text toggle for Bootstrap forms ## Usage -1. Include the `show-password-toggle.css` in your CSS +1. Include the `show-password-toggle.min.css` in your CSS 2. Wrap the password input in an `input-group` div as follows: @@ -40,7 +40,7 @@ A show password as text toggle for Bootstrap forms ``` -3. Load the `show-password-toggle.js` after the form +3. Load the `show-password-toggle.min.js` after the form I highly recommend adding the attributes: `spellcheck="false"`, `autocorrect="off"` and `autocapitalize="off"` to the password input so that when the password is displayed in plain text the input is not auto-corrected, capitalized or spellchecked (to avoid red squiggly line underneath). diff --git a/package.json b/package.json index a2f0a45..ab0f4a5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bootstrap-show-password-toggle", - "version": "1.2.0", + "version": "1.3.0", "description": "A show password as text toggle for Bootstrap", "keywords": [ "bootstrap", @@ -43,7 +43,7 @@ "clean-css-cli": "^5.6.0", "eslint": "^8.18.0", "npm-run-all": "^4.1.5", - "sass": "^1.52.3", + "sass": "^1.53.0", "stylelint": "14.9.1", "stylelint-config-twbs-bootstrap": "4.0.0", "terser": "^5.14.1"