From 5bb034a6646e59da15720fa66f242e73016ca560 Mon Sep 17 00:00:00 2001 From: Phil Gengler Date: Wed, 18 Aug 2021 19:43:06 -0400 Subject: [PATCH 1/5] Upgrade ember-concurrency --- package.json | 5 +++-- yarn.lock | 17 ++++------------- 2 files changed, 7 insertions(+), 15 deletions(-) diff --git a/package.json b/package.json index 31110666..1a16a923 100644 --- a/package.json +++ b/package.json @@ -57,7 +57,7 @@ "ember-cli-sri": "^2.1.1", "ember-cli-terser": "^4.0.1", "ember-cli-test-loader": "^2.2.0", - "ember-concurrency": "^1.1.3", + "ember-concurrency": "^2.1.2", "ember-data": "~3.25.0", "ember-decorators": "^6.1.1", "ember-export-application-global": "^2.0.1", @@ -102,6 +102,7 @@ "edition": "octane" }, "resolutions": { - "ember-basic-dropdown": "3.0.16" + "ember-basic-dropdown": "3.0.16", + "ember-concurrency": "^2.1.2" } } diff --git a/yarn.lock b/yarn.lock index 69a799eb..2f16820f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5928,10 +5928,10 @@ ember-concurrency-decorators@^2.0.0: ember-cli-htmlbars "^4.3.1" ember-cli-typescript "^3.1.4" -"ember-concurrency@>=1.0.0 <3": - version "2.0.3" - resolved "https://registry.yarnpkg.com/ember-concurrency/-/ember-concurrency-2.0.3.tgz#d8ac917fdf013a277bfc7b26e417937ee0638455" - integrity sha512-+fOOFt32odnunDL3Du0LqMgnRzDDNKnzo1ry9ppICpvLXekJzYFwU1RniVivfJ+9nbpHMJZQUlZJAm1ZAnTExw== +"ember-concurrency@>=1.0.0 <3", ember-concurrency@^1.0.0, ember-concurrency@^2.1.2: + version "2.1.2" + resolved "https://registry.yarnpkg.com/ember-concurrency/-/ember-concurrency-2.1.2.tgz#a27178fb24951933fa72dd7cf1dca852693cc5c1" + integrity sha512-xC6L/SKuM08e9TK5igkSEwbAtkX2sqrj9Xap9G3zYSYdAIO7fcS6ZNEaD5e+dVXwPqH3tOIq41ZT7fqQ7mQ0KQ== dependencies: "@glimmer/tracking" "^1.0.2" ember-cli-babel "^7.22.1" @@ -5939,15 +5939,6 @@ ember-concurrency-decorators@^2.0.0: ember-compatibility-helpers "^1.2.0" ember-destroyable-polyfill "^2.0.2" -ember-concurrency@^1.0.0, ember-concurrency@^1.1.3: - version "1.3.0" - resolved "https://registry.yarnpkg.com/ember-concurrency/-/ember-concurrency-1.3.0.tgz#66f90fb792687470bcee1172adc0ebf33f5e8b9c" - integrity sha512-DwGlfWFpYyAkTwsedlEtK4t1DznJSculAW6Vq5S1C0shVPc5b6tTpHB2FFYisannSYkm+wpm1f1Pd40qiNPtOQ== - dependencies: - ember-cli-babel "^7.7.3" - ember-compatibility-helpers "^1.2.0" - ember-maybe-import-regenerator "^0.1.6" - ember-data@~3.25.0: version "3.25.0" resolved "https://registry.yarnpkg.com/ember-data/-/ember-data-3.25.0.tgz#fe9bbff26563aa61dfc4430f61c16141e5d57d30" From 79b94e807cc5cfb0e9ae26a4386d2c2afd95fc56 Mon Sep 17 00:00:00 2001 From: Phil Gengler Date: Wed, 18 Aug 2021 19:48:33 -0400 Subject: [PATCH 2/5] Convert to be a Glimmer component --- app/components/admin-addon.hbs | 78 +++++++++++++++++----------------- app/components/admin-addon.js | 52 +++++++++++------------ 2 files changed, 63 insertions(+), 67 deletions(-) diff --git a/app/components/admin-addon.hbs b/app/components/admin-addon.hbs index 45a7fd2a..7c4d1ce2 100644 --- a/app/components/admin-addon.hbs +++ b/app/components/admin-addon.hbs @@ -1,10 +1,10 @@

- - {{this.addon.name}} - {{#if this.addon.isOfficial}} + + {{@addon.name}} + {{#if @addon.isOfficial}} {{/if}} - {{#if this.addon.isCliDependency}} + {{#if @addon.isCliDependency}} {{/if}} @@ -12,74 +12,74 @@
- {{this.addon.latestAddonVersion.version}} from + {{@addon.latestAddonVersion.version}} from
-
description {{this.addon.description}}
- {{#if this.addon.demoUrl}} +
description {{@addon.description}}
+ {{#if @addon.demoUrl}} {{/if}}
- license {{this.addon.license}} + license {{@addon.license}}
npm keywords - {{#each this.addon.keywords as |keyword|}} - + {{#each @addon.keywords as |keyword|}} + {{value.keyword}}{{separator}} {{/each}}
- {{#if this.addon.ranking}} - Ranks #{{this.addon.ranking}} of the top 100 addons! + {{#if @addon.ranking}} + Ranks #{{@addon.ranking}} of the top 100 addons! {{/if}}
- + Score {{val}}
- {{#if this.addon.repositoryUrl}} - {{this.addon.repositoryUrl}} + {{#if @addon.repositoryUrl}} + {{@addon.repositoryUrl}} {{else}} Missing {{/if}} -  {{svg-icon "google"}} +  {{svg-icon "google"}} | - {{svg-icon "github"}} - + {{svg-icon "github"}} +
- - - - - - - - + + + + + + + +
- +
-