From 296ca5d895d7f8aee4b486e4c79b55b66e27fcff Mon Sep 17 00:00:00 2001 From: Benjamin ter Kuile Date: Fri, 23 Nov 2018 10:23:19 -0300 Subject: [PATCH] Remove ordered-filtered-table component idea that has not produced a working example --- .../components/ordered-filtered-table.coffee | 8 ------ .../components/ordered-filtered-table.hbs | 24 ------------------ .../ordered-filtered-table/property.emblem | 1 - app/components/ordered-filtered-table.js | 1 - .../ordered-filtered-table/property.js | 1 - .../ordered-filtered-table-test.coffee | 25 ------------------- .../property-test.coffee | 25 ------------------- 7 files changed, 85 deletions(-) delete mode 100644 addon/components/ordered-filtered-table.coffee delete mode 100644 addon/templates/components/ordered-filtered-table.hbs delete mode 100644 addon/templates/components/ordered-filtered-table/property.emblem delete mode 100644 app/components/ordered-filtered-table.js delete mode 100644 app/components/ordered-filtered-table/property.js delete mode 100644 tests/integration/components/ordered-filtered-table-test.coffee delete mode 100644 tests/integration/components/ordered-filtered-table/property-test.coffee diff --git a/addon/components/ordered-filtered-table.coffee b/addon/components/ordered-filtered-table.coffee deleted file mode 100644 index c53658a..0000000 --- a/addon/components/ordered-filtered-table.coffee +++ /dev/null @@ -1,8 +0,0 @@ -import Ember from 'ember' -import layout from '../templates/components/ordered-filtered-table' - -export default Ember.Component.extend - layout: layout - tagName: 'table' - classNames: ['ui', 'compact', 'table'] - test_name: 'Oooo' diff --git a/addon/templates/components/ordered-filtered-table.hbs b/addon/templates/components/ordered-filtered-table.hbs deleted file mode 100644 index 6332270..0000000 --- a/addon/templates/components/ordered-filtered-table.hbs +++ /dev/null @@ -1,24 +0,0 @@ - - - {{#each properties as |p|}} - {{p.header}} - {{/each}} - - - {{#each properties as |p|}} - {{p.filter}} - {{/each}} - - - -{{#each content as |record|}} - - {{#each properties as |p|}} - {{p.display record=record}} - {{/each}} - -{{/each}} - -{{yield (hash - property=(component "ordered-filtered-table/property" table=self) -)}} diff --git a/addon/templates/components/ordered-filtered-table/property.emblem b/addon/templates/components/ordered-filtered-table/property.emblem deleted file mode 100644 index 0a90f09..0000000 --- a/addon/templates/components/ordered-filtered-table/property.emblem +++ /dev/null @@ -1 +0,0 @@ -= yield diff --git a/app/components/ordered-filtered-table.js b/app/components/ordered-filtered-table.js deleted file mode 100644 index b587e02..0000000 --- a/app/components/ordered-filtered-table.js +++ /dev/null @@ -1 +0,0 @@ -export { default } from 'ember-cli-dunlop/components/ordered-filtered-table'; diff --git a/app/components/ordered-filtered-table/property.js b/app/components/ordered-filtered-table/property.js deleted file mode 100644 index d372ba1..0000000 --- a/app/components/ordered-filtered-table/property.js +++ /dev/null @@ -1 +0,0 @@ -export { default } from 'ember-cli-dunlop/components/ordered-filtered-table/property'; diff --git a/tests/integration/components/ordered-filtered-table-test.coffee b/tests/integration/components/ordered-filtered-table-test.coffee deleted file mode 100644 index 356e62e..0000000 --- a/tests/integration/components/ordered-filtered-table-test.coffee +++ /dev/null @@ -1,25 +0,0 @@ -import { test, moduleForComponent } from 'ember-qunit' -import hbs from 'htmlbars-inline-precompile' - -moduleForComponent 'ordered-filtered-table', 'Integration | Component | ordered filtered table', { - integration: true -} - -test 'it renders', (assert) -> - assert.expect 2 - - # Set any properties with @set 'myProperty', 'value' - # Handle any actions with @on 'myAction', (val) -> - - @render hbs """{{ordered-filtered-table}}""" - - assert.equal @$().text().trim(), '' - - # Template block usage: - @render hbs """ - {{#ordered-filtered-table}} - template block text - {{/ordered-filtered-table}} - """ - - assert.equal @$().text().trim(), 'template block text' diff --git a/tests/integration/components/ordered-filtered-table/property-test.coffee b/tests/integration/components/ordered-filtered-table/property-test.coffee deleted file mode 100644 index dccb443..0000000 --- a/tests/integration/components/ordered-filtered-table/property-test.coffee +++ /dev/null @@ -1,25 +0,0 @@ -import { test, moduleForComponent } from 'ember-qunit' -import hbs from 'htmlbars-inline-precompile' - -moduleForComponent 'ordered-filtered-table/property', 'Integration | Component | ordered filtered table/property', { - integration: true -} - -test 'it renders', (assert) -> - assert.expect 2 - - # Set any properties with @set 'myProperty', 'value' - # Handle any actions with @on 'myAction', (val) -> - - @render hbs """{{ordered-filtered-table/property}}""" - - assert.equal @$().text().trim(), '' - - # Template block usage: - @render hbs """ - {{#ordered-filtered-table/property}} - template block text - {{/ordered-filtered-table/property}} - """ - - assert.equal @$().text().trim(), 'template block text'