diff --git a/addon/components/progress-bar.hbs b/addon/components/progress-bar.hbs deleted file mode 100644 index 60d46dc..0000000 --- a/addon/components/progress-bar.hbs +++ /dev/null @@ -1,12 +0,0 @@ -
-
-

{{@title}}

- {{@percent}}% -
-
-
-
-
\ No newline at end of file diff --git a/addon/components/progress-bar.js b/addon/components/progress-bar.js deleted file mode 100644 index 0cff7ee..0000000 --- a/addon/components/progress-bar.js +++ /dev/null @@ -1,8 +0,0 @@ -import Component from '@glimmer/component'; -import { action } from '@ember/object'; - -export default class ProgressBarComponent extends Component { - @action setProgress(el, [percent]) { - el.style.width = `${percent}%`; - } -} diff --git a/addon/controllers/developers/payments/index.js b/addon/controllers/developers/payments/index.js index 78ac489..d2289e1 100644 --- a/addon/controllers/developers/payments/index.js +++ b/addon/controllers/developers/payments/index.js @@ -28,6 +28,7 @@ export default class DevelopersPaymentsIndexController extends Controller { { label: 'Amount', valuePath: 'locked_price', + cellComponent: 'table/cell/currency', width: '20%', }, { diff --git a/addon/templates/purchased.hbs b/addon/templates/purchased.hbs index 153491c..78de5b9 100644 --- a/addon/templates/purchased.hbs +++ b/addon/templates/purchased.hbs @@ -4,29 +4,11 @@
{{#each @model as |extension|}} -
-
- {{extension.name}} -
-
-
-
{{extension.name}}
-
{{n-a extension.description}}
-
- {{#if extension.is_installed}} - Installed - {{/if}} -
-
-
-
+ + {{#if extension.is_installed}} + Installed + {{/if}} + {{/each}}
diff --git a/app/components/progress-bar.js b/app/components/progress-bar.js deleted file mode 100644 index 3b3e600..0000000 --- a/app/components/progress-bar.js +++ /dev/null @@ -1 +0,0 @@ -export { default } from '@fleetbase/registry-bridge-engine/components/progress-bar'; diff --git a/composer.json b/composer.json index 9e323cc..34a6d21 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "fleetbase/registry-bridge", - "version": "0.0.3", + "version": "0.0.4", "description": "Internal Bridge between Fleetbase API and Extensions Registry", "keywords": [ "fleetbase-extension", diff --git a/extension.json b/extension.json index 5d3ba89..fdca6f6 100644 --- a/extension.json +++ b/extension.json @@ -1,6 +1,6 @@ { "name": "Registry Bridge", - "version": "0.0.3", + "version": "0.0.4", "description": "Internal Bridge between Fleetbase API and Extensions Registry", "repository": "https://github.com/fleetbase/registry-bridge", "license": "AGPL-3.0-or-later", diff --git a/package.json b/package.json index e1e0ea7..c384367 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@fleetbase/registry-bridge-engine", - "version": "0.0.3", + "version": "0.0.4", "description": "Internal Bridge between Fleetbase API and Extensions Registry", "fleetbase": { "route": "extensions" diff --git a/tests/integration/components/progress-bar-test.js b/tests/integration/components/progress-bar-test.js deleted file mode 100644 index 2008d3d..0000000 --- a/tests/integration/components/progress-bar-test.js +++ /dev/null @@ -1,26 +0,0 @@ -import { module, test } from 'qunit'; -import { setupRenderingTest } from 'dummy/tests/helpers'; -import { render } from '@ember/test-helpers'; -import { hbs } from 'ember-cli-htmlbars'; - -module('Integration | Component | progress-bar', function (hooks) { - setupRenderingTest(hooks); - - test('it renders', async function (assert) { - // Set any properties with this.set('myProperty', 'value'); - // Handle any actions with this.set('myAction', function(val) { ... }); - - await render(hbs``); - - assert.dom().hasText(''); - - // Template block usage: - await render(hbs` - - template block text - - `); - - assert.dom().hasText('template block text'); - }); -});