Skip to content

Commit

Permalink
working on upgrades
Browse files Browse the repository at this point in the history
  • Loading branch information
roncodes committed Dec 7, 2023
1 parent cfdb4e5 commit bd1b680
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 2 deletions.
1 change: 1 addition & 0 deletions addon/components/file-icon.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{{yield}}
3 changes: 3 additions & 0 deletions addon/components/file-icon.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import Component from '@glimmer/component';

export default class FileIconComponent extends Component {}
8 changes: 8 additions & 0 deletions addon/styles/layout/next.css
Original file line number Diff line number Diff line change
Expand Up @@ -1848,3 +1848,11 @@ input.order-list-overlay-search:hover,
input.order-list-overlay-search:focus {
box-shadow: none;
}

.console-home-container {
padding-left: 1rem;
padding-right: 1rem;
padding-top: 0.5rem;
padding-bottom: 0.5rem;
max-width: 1200px;
}
1 change: 1 addition & 0 deletions app/components/file-icon.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from '@fleetbase/ember-ui/components/file-icon';
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@fleetbase/ember-ui",
"version": "0.2.6",
"version": "0.2.7",
"description": "Fleetbase UI provides all the interface components, helpers, services and utilities for building a Fleetbase extension into the Console.",
"keywords": [
"fleetbase-ui",
Expand Down Expand Up @@ -66,7 +66,7 @@
"ember-concurrency": "^2.3.7",
"ember-concurrency-decorators": "^2.0.3",
"ember-concurrency-test-waiter": "^0.4.0",
"ember-file-upload": "^7.3.0",
"ember-file-upload": "8.4.0",
"ember-focus-trap": "^1.0.1",
"ember-get-config": "^2.1.1",
"ember-infinity": "^2.3.0",
Expand Down
26 changes: 26 additions & 0 deletions tests/integration/components/file-icon-test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
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 | file-icon', 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`<FileIcon />`);

assert.dom(this.element).hasText('');

// Template block usage:
await render(hbs`
<FileIcon>
template block text
</FileIcon>
`);

assert.dom(this.element).hasText('template block text');
});
});

0 comments on commit bd1b680

Please sign in to comment.