Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: linc-technologies/ember-paper-password
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 06f124b26901065c28c91397faa8e55aa9ce5167
Choose a base ref
..
head repository: linc-technologies/ember-paper-password
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 41d25fa88248646db986fd2547e4254e09bbc907
Choose a head ref
Showing with 1,379 additions and 731 deletions.
  1. +21 −0 .eslintignore
  2. +9 −0 .github/CODEOWNERS
  3. +4 −0 .github/dependabot.yml
  4. +2 −2 .github/workflows/release.yml
  5. +1 −1 .release-please-manifest.json
  6. +29 −0 CHANGELOG.md
  7. +6 −6 addon/components/paper-password.js
  8. +6 −5 package.json
  9. +1,301 −717 yarn.lock
21 changes: 21 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# unconventional js
/blueprints/*/files/
/vendor/

# compiled output
/dist/
/tmp/

# dependencies
/bower_components/
/node_modules/

# misc
/coverage/
!.*

# ember-try
/.node_modules.ember-try/

# public assets
/public
9 changes: 9 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# GitHub Code Owners
# More info about this file can be found in the GitHub documentation:
# https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners#codeowners-syntax

# Default reviewers for all files
* @linc-technologies/frontend

# Request a review from the devops team members for CI/CD related changes
.github/ @linc-technologies/devops
4 changes: 4 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -15,5 +15,9 @@ updates:
- dependency-type: direct
groups:
default:
exclude-patterns:
- "@ember*"
- "ember*"
- "eslint*"
patterns:
- "*"
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -11,7 +11,7 @@ jobs:
name: "Release"
runs-on: ubuntu-latest
outputs:
releases_created: ${{steps.release-please.outputs.releases_created}}
releases_created: ${{ steps.release-please.outputs.releases_created }}
permissions:
checks: write
contents: write
@@ -25,7 +25,7 @@ jobs:
publish:
name: "Publish"
needs: [release]
if: ${{needs.release.outputs.releases_created}}
if: ${{ needs.release.outputs.releases_created == 'true' }}
uses: linc-technologies/.github/.github/workflows/ember_publish.yml@main
secrets:
npm_token: ${{ secrets.NPM_TOKEN }}
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.2.0"
".": "0.3.0"
}
29 changes: 29 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Changelog

## [0.3.0](https://github.com/linc-technologies/ember-paper-password/compare/ember-paper-password-v0.2.0...ember-paper-password-v0.3.0) (2024-10-09)


### Features

* **.github:** adds codeowners. ([c53ea48](https://github.com/linc-technologies/ember-paper-password/commit/c53ea48f658924dae3437cbcdf11a4a7788ea5e3))
* **.github:** adds codeowners. ([#37](https://github.com/linc-technologies/ember-paper-password/issues/37)) ([d79d64d](https://github.com/linc-technologies/ember-paper-password/commit/d79d64d2c0ebabd932dcd212e4998636868f99b6))
* **addon/components/paper-password:** migrates to native `zxcvbn` via `ember-auto-import`. ([83ebfdb](https://github.com/linc-technologies/ember-paper-password/commit/83ebfdbee4690f1d7f186a875fdf8322ac1ac2e6))
* **deps:** migrates to yarn for dependency management. ([07c7ba2](https://github.com/linc-technologies/ember-paper-password/commit/07c7ba2737854e858e4417de96953f16514889e6))
* **deps:** migrates to yarn for dependency management. ([#27](https://github.com/linc-technologies/ember-paper-password/issues/27)) ([9f6c143](https://github.com/linc-technologies/ember-paper-password/commit/9f6c1431f205fbf930916e381b732701965ddfc2))
* initial `ember@3.12.0` upgrade. ([55d366d](https://github.com/linc-technologies/ember-paper-password/commit/55d366d6d96bd5c836a5794908737374f14da2b0))
* initial `ember@3.16.2` upgrade. ([e6ba2fa](https://github.com/linc-technologies/ember-paper-password/commit/e6ba2fa97d7894c2ffdcc58f977f7adf1bebb7a5))
* initial `ember@3.8.3` upgrade. ([c8be5bd](https://github.com/linc-technologies/ember-paper-password/commit/c8be5bdb56e808a040666578f641a69f1042ae55))


### Bug Fixes

* **addon/components/paper-password:** fixes ember/avoid-leaking-state-in-ember-objects lint. ([b1f7e1d](https://github.com/linc-technologies/ember-paper-password/commit/b1f7e1d6633403cb4c44e9e44f78169b6c42d96e))
* **addon/templates/components/paper-password:** fixes lint (no-implicit-this). ([b5dedad](https://github.com/linc-technologies/ember-paper-password/commit/b5dedad37f7f7f19086bcfa0a337583fcdc52e9b))
* **deps:** adds missing dependency `ember-source-channel-url@^3.0.0`. ([f86c3b6](https://github.com/linc-technologies/ember-paper-password/commit/f86c3b63f5f3c1a150c7fbabb62da84e88a9bf11))
* **tests/dummy/app/app:** remove usage of `Ember` global. ([dfe24c1](https://github.com/linc-technologies/ember-paper-password/commit/dfe24c10a22f4c601d4aee127e14620e38581e3c))
* **tests/dummy/app/templates/application:** fixes lint (no-implicit-this). ([77918c8](https://github.com/linc-technologies/ember-paper-password/commit/77918c89b234ee90def63061ed98997f5cac8236))


### Miscellaneous Chores

* release 0.3.0 ([51c4a9a](https://github.com/linc-technologies/ember-paper-password/commit/51c4a9a97780ed71c5c311a05f3288aadc133c22))
12 changes: 6 additions & 6 deletions addon/components/paper-password.js
Original file line number Diff line number Diff line change
@@ -22,22 +22,22 @@ export default Component.extend({
return {score: 0};
}
}),
strengthValue: computed('value', function() {
strengthValue: computed('passwordStrength.score', function() {
return (this.passwordStrength.score / 4) * 100;
}),
strengthLevel: computed('value', function() {
strengthLevel: computed('passwordStrength.score', 'strengthLevels', function() {
return this.strengthLevels[this.passwordStrength.score];
}),
strengthWarning: computed('value', function() {
strengthWarning: computed('minStrength', 'passwordStrength.score', function() {
return this.passwordStrength.score < this.minStrength;
}),

inputErrors: computed('errors.[]', 'value', function() {
inputErrors: computed('errors.[]', 'minStrength', 'passwordErrorMessage', 'passwordStrength.score', 'value', function() {
let myErrors = A().pushObjects(this.errors);
let passwordStrength = this.passwordStrength;
let passwordStrength = this.passwordStrength.score;
let password = this.value;

if (password && passwordStrength.score < this.minStrength) {
if (password && (passwordStrength < this.minStrength)) {
myErrors.pushObject({
message: this.passwordErrorMessage
});
11 changes: 6 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@linc-technologies/ember-paper-password",
"version": "0.2.0",
"version": "0.3.0",
"description": "Password input with strength meter / requirements for Ember Paper",
"keywords": [
"ember-addon"
@@ -17,14 +17,14 @@
},
"scripts": {
"build": "ember build --environment=production",
"ci": "yarn install --ignore-engines --frozen-lockfile",
"lint": "npm-run-all --aggregate-output --continue-on-error --parallel lint:*",
"lint:hbs": "ember-template-lint .",
"lint:js": "eslint .",
"lint": "npm-run-all --aggregate-output --continue-on-error --parallel lint:*",
"start": "ember server",
"test": "npm-run-all lint:* test:*",
"test:ember": "ember test",
"test:ember-compatibility": "ember try:each",
"ci": "yarn install --ignore-engines --frozen-lockfile"
"test:ember-compatibility": "ember try:each"
},
"dependencies": {
"ember-auto-import": "^1.6.0",
@@ -49,10 +49,11 @@
"ember-disable-prototype-extensions": "^1.1.3",
"ember-export-application-global": "^2.0.1",
"ember-load-initializers": "^2.1.1",
"ember-paper": "1.0.0-beta.20",
"ember-paper": ">=1.0.0-beta.20 <=1.0.0-beta.35",
"ember-qunit": "^4.6.0",
"ember-resolver": "^8.0.0",
"ember-source": "~3.20.2",
"ember-source-channel-url": "^3.0.0",
"ember-template-lint": "^2.9.1",
"eslint": "^7.5.0",
"eslint-plugin-ember": "^8.9.1",
Loading