From 4f67bb7a27b203f09230ab553707b27a9f354e86 Mon Sep 17 00:00:00 2001 From: Gaurav Munjal Date: Mon, 15 Nov 2021 15:27:15 -0500 Subject: [PATCH 01/33] fix some eslint errors --- .eslintrc.js | 2 +- addon/components/mdc-button.js | 6 +++--- addon/components/mdc-card.js | 6 +++--- addon/components/mdc-card/actions.js | 6 +++--- addon/components/mdc-card/media-item.js | 8 ++++---- addon/components/mdc-card/media.js | 4 ++-- addon/components/mdc-card/primary.js | 4 ++-- addon/components/mdc-card/primary/subtitle.js | 4 ++-- addon/components/mdc-card/primary/title.js | 6 +++--- addon/components/mdc-card/supporting-text.js | 4 ++-- addon/components/mdc-checkbox.js | 6 +++--- addon/components/mdc-drawer.js | 4 ++-- addon/components/mdc-drawer/content.js | 4 ++-- addon/components/mdc-drawer/toolbar-spacer.js | 4 ++-- addon/components/mdc-elevation.js | 6 +++--- addon/components/mdc-fab.js | 6 +++--- addon/components/mdc-form-field.js | 4 ++-- addon/components/mdc-grid-list.js | 8 ++++---- addon/components/mdc-grid-list/tiles.js | 4 ++-- addon/components/mdc-grid-list/tiles/tile.js | 4 ++-- .../components/mdc-grid-list/tiles/tile/primary.js | 4 ++-- .../tiles/tile/primary/primary-content.js | 6 +++--- .../mdc-grid-list/tiles/tile/secondary.js | 4 ++-- .../tiles/tile/secondary/support-text.js | 4 ++-- .../mdc-grid-list/tiles/tile/secondary/title.js | 4 ++-- addon/components/mdc-icon-toggle.js | 14 +++++++++++--- addon/components/mdc-layout-grid.js | 8 ++++---- addon/components/mdc-layout-grid/inner.js | 4 ++-- addon/components/mdc-layout-grid/inner/cell.js | 8 ++++---- addon/components/mdc-linear-progress.js | 8 ++++---- addon/components/mdc-list-group.js | 4 ++-- addon/components/mdc-list-group/subheader.js | 4 ++-- addon/components/mdc-list.js | 10 +++++++--- addon/components/mdc-list/divider.js | 6 +++--- addon/components/mdc-list/item.js | 4 ++-- addon/components/mdc-list/item/text.js | 4 ++-- addon/components/mdc-list/item/text/secondary.js | 4 ++-- addon/components/mdc-menu-anchor.js | 2 +- addon/components/mdc-menu.js | 6 +++--- addon/components/mdc-menu/item.js | 4 ++-- addon/components/mdc-radio.js | 6 +++--- addon/components/mdc-switch.js | 4 ++-- addon/components/mdc-tab-bar-scroller.js | 4 ++-- addon/components/mdc-tab-bar.js | 8 ++++---- addon/components/mdc-tab-bar/indicator.js | 4 ++-- addon/components/mdc-tab-bar/tab.js | 2 +- addon/components/mdc-tab-bar/tab/icon-text.js | 2 +- addon/components/mdc-tab-bar/tab/icon.js | 2 +- addon/components/mdc-textfield/helptext.js | 4 ++-- addon/components/mdc-textfield/input.js | 6 +++--- addon/components/mdc-textfield/label.js | 4 ++-- addon/components/mdc-textfield/textarea.js | 6 +++--- addon/components/mdc-toolbar.js | 8 ++++---- addon/components/mdc-toolbar/row.js | 4 ++-- addon/components/mdc-toolbar/section.js | 6 +++--- addon/components/mdc-toolbar/title.js | 4 ++-- 56 files changed, 149 insertions(+), 137 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 0972cfc..f3d0cec 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -11,7 +11,7 @@ module.exports = { }, rules: { 'ember/no-jquery': 'error', - 'ember/avoid-leaking-state-in-ember-objects': [1, ['colorPalette']], + 'ember/avoid-leaking-state-in-ember-objects': ['error', ['actions', 'colorPalette']], }, overrides: [ // node files diff --git a/addon/components/mdc-button.js b/addon/components/mdc-button.js index d063399..4202b13 100644 --- a/addon/components/mdc-button.js +++ b/addon/components/mdc-button.js @@ -43,7 +43,7 @@ export default Component.extend(MDCComponent, { layout, tagName: 'button', classNames: 'mdc-button', - classNameBindings: [ + classNameBindings: Object.freeze([ 'secondary:mdc-button--accent', 'raised:mdc-button--raised', 'unelevated:mdc-button--unelevated', @@ -51,8 +51,8 @@ export default Component.extend(MDCComponent, { 'dense:mdc-button--dense', 'stroked:mdc-button--stroked', 'mdcClassNames', - ], - attributeBindings: ['disabled', 'type', 'style', ...events], + ]), + attributeBindings: Object.freeze(['disabled', 'type', 'style', ...events]), //endregion //region Properties diff --git a/addon/components/mdc-card.js b/addon/components/mdc-card.js index 3e0db93..41e766e 100644 --- a/addon/components/mdc-card.js +++ b/addon/components/mdc-card.js @@ -12,8 +12,8 @@ export default Component.extend({ //region Ember Hooks layout, - classNames: ['mdc-card'], - classNameBindings: ['horizontal-block:mdc-card__horizontal-block'], - attributeBindings: [...events], + classNames: Object.freeze(['mdc-card']), + classNameBindings: Object.freeze(['horizontal-block:mdc-card__horizontal-block']), + attributeBindings: Object.freeze([...events]), //endregion }); diff --git a/addon/components/mdc-card/actions.js b/addon/components/mdc-card/actions.js index bbff026..0ca9ff2 100644 --- a/addon/components/mdc-card/actions.js +++ b/addon/components/mdc-card/actions.js @@ -13,8 +13,8 @@ export default Component.extend({ //region Ember Hooks layout, tagName: 'section', - classNames: ['mdc-card__actions'], - classNameBindings: ['vertical:mdc-card__actions--vertical'], - attributeBindings: [...events], + classNames: Object.freeze(['mdc-card__actions']), + classNameBindings: Object.freeze(['vertical:mdc-card__actions--vertical']), + attributeBindings: Object.freeze([...events]), //endregion }); diff --git a/addon/components/mdc-card/media-item.js b/addon/components/mdc-card/media-item.js index 7e38f3d..93f1e7a 100644 --- a/addon/components/mdc-card/media-item.js +++ b/addon/components/mdc-card/media-item.js @@ -30,14 +30,14 @@ export default Component.extend({ //region Ember Hooks layout, tagName: 'img', - attributeBindings: ['src', 'alt', 'width', 'height', ...events], - classNames: ['mdc-card__media-item'], - classNameBindings: [ + attributeBindings: Object.freeze(['src', 'alt', 'width', 'height', ...events]), + classNames: Object.freeze(['mdc-card__media-item']), + classNameBindings: Object.freeze([ 'isOne:mdc-card__media-item--1x', 'isOneDotFive:mdc-card__media-item--1dot5x', 'isTwo:mdc-card__media-item--2x', 'isThree:mdc-card__media-item--3x', - ], + ]), //endregion //region Computed Properties diff --git a/addon/components/mdc-card/media.js b/addon/components/mdc-card/media.js index 7395344..ff36b72 100644 --- a/addon/components/mdc-card/media.js +++ b/addon/components/mdc-card/media.js @@ -5,7 +5,7 @@ import layout from '../../templates/components/mdc-card/media'; export default Component.extend({ //region Ember Hooks layout, - classNames: ['mdc-card__media'], - attributeBindings: [...events], + classNames: Object.freeze(['mdc-card__media']), + attributeBindings: Object.freeze([...events]), //endregion }); diff --git a/addon/components/mdc-card/primary.js b/addon/components/mdc-card/primary.js index b964fb0..cad7d10 100644 --- a/addon/components/mdc-card/primary.js +++ b/addon/components/mdc-card/primary.js @@ -6,7 +6,7 @@ export default Component.extend({ //region Ember Hooks layout, tagName: 'section', - classNames: ['mdc-card__primary'], - attributeBindings: [...events], + classNames: Object.freeze(['mdc-card__primary']), + attributeBindings: Object.freeze([...events]), //endregion }); diff --git a/addon/components/mdc-card/primary/subtitle.js b/addon/components/mdc-card/primary/subtitle.js index 20c4993..ae4c464 100644 --- a/addon/components/mdc-card/primary/subtitle.js +++ b/addon/components/mdc-card/primary/subtitle.js @@ -5,7 +5,7 @@ import layout from '../../../templates/components/mdc-card/primary/subtitle'; export default Component.extend({ //region Ember Hooks layout, - classNames: ['mdc-card__subtitle'], - attributeBindings: [...events], + classNames: Object.freeze(['mdc-card__subtitle']), + attributeBindings: Object.freeze([...events]), //endregion }); diff --git a/addon/components/mdc-card/primary/title.js b/addon/components/mdc-card/primary/title.js index 67fbfac..7aeef38 100644 --- a/addon/components/mdc-card/primary/title.js +++ b/addon/components/mdc-card/primary/title.js @@ -12,8 +12,8 @@ export default Component.extend({ //region Ember Hooks layout, - classNames: ['mdc-card__title'], - classNameBindings: ['large:mdc-card__title--large'], - attributeBindings: [...events], + classNames: Object.freeze(['mdc-card__title']), + classNameBindings: Object.freeze(['large:mdc-card__title--large']), + attributeBindings: Object.freeze([...events]), //endregion }); diff --git a/addon/components/mdc-card/supporting-text.js b/addon/components/mdc-card/supporting-text.js index 942c47d..1f2ed1d 100644 --- a/addon/components/mdc-card/supporting-text.js +++ b/addon/components/mdc-card/supporting-text.js @@ -6,7 +6,7 @@ export default Component.extend({ //region Ember Hooks layout, tagName: 'section', - classNames: ['mdc-card__supporting-text'], - attributeBindings: [...events], + classNames: Object.freeze(['mdc-card__supporting-text']), + attributeBindings: Object.freeze([...events]), //endregion }); diff --git a/addon/components/mdc-checkbox.js b/addon/components/mdc-checkbox.js index 6fecc4e..c571ce7 100644 --- a/addon/components/mdc-checkbox.js +++ b/addon/components/mdc-checkbox.js @@ -50,9 +50,9 @@ export default Component.extend(MDCComponent, SupportsBubblesFalse, { //endregion //region Ember Hooks - classNames: ['mdc-checkbox'], - classNameBindings: ['mdcClassNames'], - attributeBindings: ['style'], + classNames: Object.freeze(['mdc-checkbox']), + classNameBindings: Object.freeze(['mdcClassNames']), + attributeBindings: Object.freeze(['style']), layout, init() { this._super(...arguments); diff --git a/addon/components/mdc-drawer.js b/addon/components/mdc-drawer.js index de68cd9..3dbf10f 100644 --- a/addon/components/mdc-drawer.js +++ b/addon/components/mdc-drawer.js @@ -11,8 +11,8 @@ import layout from '../templates/components/mdc-drawer'; export default Component.extend(MDCComponent, { //region Ember Hooks layout, - classNames: ['mdc-drawer'], - classNameBindings: ['mdcClassNames', 'isPermanent:mdc-permanent-drawer'], + classNames: Object.freeze(['mdc-drawer']), + classNameBindings: Object.freeze(['mdcClassNames', 'isPermanent:mdc-permanent-drawer']), init() { this._super(...arguments); diff --git a/addon/components/mdc-drawer/content.js b/addon/components/mdc-drawer/content.js index ae855aa..7ab6555 100644 --- a/addon/components/mdc-drawer/content.js +++ b/addon/components/mdc-drawer/content.js @@ -9,10 +9,10 @@ export default Component.extend({ //endregion //region Ember Hooks layout, - classNameBindings: [ + classNameBindings: Object.freeze([ 'temporary:mdc-temporary-drawer__content', 'permanent:mdc-permanent-drawer__content', 'persistent:mdc-persistent-drawer__content', - ], + ]), //endregion }); diff --git a/addon/components/mdc-drawer/toolbar-spacer.js b/addon/components/mdc-drawer/toolbar-spacer.js index 67308da..eb6c649 100644 --- a/addon/components/mdc-drawer/toolbar-spacer.js +++ b/addon/components/mdc-drawer/toolbar-spacer.js @@ -9,10 +9,10 @@ export default Component.extend({ //endregion //region Ember Hooks layout, - classNameBindings: [ + classNameBindings: Object.freeze([ 'temporary:mdc-temporary-drawer__toolbar-spacer', 'permanent:mdc-permanent-drawer__toolbar-spacer', 'persistent:mdc-persistent-drawer__toolbar-spacer', - ], + ]), //endregion }); diff --git a/addon/components/mdc-elevation.js b/addon/components/mdc-elevation.js index 1d2dbee..cd30111 100644 --- a/addon/components/mdc-elevation.js +++ b/addon/components/mdc-elevation.js @@ -14,9 +14,9 @@ export default Component.extend({ //region Ember Hooks layout, - classNameBindings: ['elevationClass'], - classNames: ['mdc-elevation-transition'], - attributeBindings: [...events], + classNameBindings: Object.freeze(['elevationClass']), + classNames: Object.freeze(['mdc-elevation-transition']), + attributeBindings: Object.freeze([...events]), //endregion //region Computed Properties diff --git a/addon/components/mdc-fab.js b/addon/components/mdc-fab.js index db08f9e..9b4ba46 100644 --- a/addon/components/mdc-fab.js +++ b/addon/components/mdc-fab.js @@ -26,9 +26,9 @@ export default Component.extend(MDCComponent, { //region Ember Hooks layout, tagName: 'button', - classNames: ['mdc-fab'], - attributeBindings: ['aria-label', 'disabled', 'type', 'style', ...events], - classNameBindings: ['mini:mdc-fab--mini', 'plain:mdc-fab--plain', 'mdcClassNames'], + classNames: Object.freeze(['mdc-fab']), + attributeBindings: Object.freeze(['aria-label', 'disabled', 'type', 'style', ...events]), + classNameBindings: Object.freeze(['mini:mdc-fab--mini', 'plain:mdc-fab--plain', 'mdcClassNames']), //endregion //region Properties diff --git a/addon/components/mdc-form-field.js b/addon/components/mdc-form-field.js index 98c9d5f..ddd5a5a 100644 --- a/addon/components/mdc-form-field.js +++ b/addon/components/mdc-form-field.js @@ -10,7 +10,7 @@ export default Component.extend({ //endregion //region Ember hooks layout, - classNames: ['mdc-form-field'], - classNameBindings: ['align-end:mdc-form-field--align-end'], + classNames: Object.freeze(['mdc-form-field']), + classNameBindings: Object.freeze(['align-end:mdc-form-field--align-end']), //endregion }); diff --git a/addon/components/mdc-grid-list.js b/addon/components/mdc-grid-list.js index a9d0e57..909e2ca 100644 --- a/addon/components/mdc-grid-list.js +++ b/addon/components/mdc-grid-list.js @@ -6,16 +6,16 @@ import layout from '../templates/components/mdc-grid-list'; export default Component.extend({ //region Ember Hooks layout, - classNames: ['mdc-grid-list'], - classNameBindings: [ + classNames: Object.freeze(['mdc-grid-list']), + classNameBindings: Object.freeze([ 'tile-gutter-1:mdc-grid-list--tile-gutter-1', 'header-caption:mdc-grid-list--header-caption', 'twoline-caption:mdc-grid-list--twoline-caption', 'tileAspectRatioClass', 'iconAlignStartClass', 'iconAlignEndClass', - ], - attributeBindings: [...events], + ]), + attributeBindings: Object.freeze([...events]), //endregion //region Attributes diff --git a/addon/components/mdc-grid-list/tiles.js b/addon/components/mdc-grid-list/tiles.js index 94d43c2..a2cac52 100644 --- a/addon/components/mdc-grid-list/tiles.js +++ b/addon/components/mdc-grid-list/tiles.js @@ -6,7 +6,7 @@ export default Component.extend({ //region Ember Hooks layout, tagName: 'ul', - classNames: ['mdc-grid-list__tiles'], - attributeBindings: [...events], + classNames: Object.freeze(['mdc-grid-list__tiles']), + attributeBindings: Object.freeze([...events]), //endregion }); diff --git a/addon/components/mdc-grid-list/tiles/tile.js b/addon/components/mdc-grid-list/tiles/tile.js index 3208c54..3f6c8eb 100644 --- a/addon/components/mdc-grid-list/tiles/tile.js +++ b/addon/components/mdc-grid-list/tiles/tile.js @@ -6,7 +6,7 @@ export default Component.extend({ //region Ember Hooks layout, tagName: 'li', - classNames: ['mdc-grid-tile'], - attributeBindings: [...events], + classNames: Object.freeze(['mdc-grid-tile']), + attributeBindings: Object.freeze([...events]), //endregion }); diff --git a/addon/components/mdc-grid-list/tiles/tile/primary.js b/addon/components/mdc-grid-list/tiles/tile/primary.js index 3756bda..0607e33 100644 --- a/addon/components/mdc-grid-list/tiles/tile/primary.js +++ b/addon/components/mdc-grid-list/tiles/tile/primary.js @@ -5,7 +5,7 @@ import layout from '../../../../templates/components/mdc-grid-list/tiles/tile/pr export default Component.extend({ //region Ember Hooks layout, - classNames: ['mdc-grid-tile__primary'], - attributeBindings: [...events], + classNames: Object.freeze(['mdc-grid-tile__primary']), + attributeBindings: Object.freeze([...events]), //endregion }); diff --git a/addon/components/mdc-grid-list/tiles/tile/primary/primary-content.js b/addon/components/mdc-grid-list/tiles/tile/primary/primary-content.js index f4be8e3..e9b7eb6 100644 --- a/addon/components/mdc-grid-list/tiles/tile/primary/primary-content.js +++ b/addon/components/mdc-grid-list/tiles/tile/primary/primary-content.js @@ -6,8 +6,8 @@ export default Component.extend({ //region Ember Hooks layout, tagName: 'img', - classNames: ['mdc-grid-tile__primary-content'], - attributeBindings: [ + classNames: Object.freeze(['mdc-grid-tile__primary-content']), + attributeBindings: Object.freeze([ 'alt', 'height', 'src', @@ -19,6 +19,6 @@ export default Component.extend({ 'usemap', 'width', ...events, - ], + ]), //endregion }); diff --git a/addon/components/mdc-grid-list/tiles/tile/secondary.js b/addon/components/mdc-grid-list/tiles/tile/secondary.js index f21cd74..c667106 100644 --- a/addon/components/mdc-grid-list/tiles/tile/secondary.js +++ b/addon/components/mdc-grid-list/tiles/tile/secondary.js @@ -6,7 +6,7 @@ export default Component.extend({ //region Ember Hooks layout, tagName: 'span', - classNames: ['mdc-grid-tile__secondary'], - attributeBindings: [...events], + classNames: Object.freeze(['mdc-grid-tile__secondary']), + attributeBindings: Object.freeze([...events]), //endregion }); diff --git a/addon/components/mdc-grid-list/tiles/tile/secondary/support-text.js b/addon/components/mdc-grid-list/tiles/tile/secondary/support-text.js index ebf0223..c43ee72 100644 --- a/addon/components/mdc-grid-list/tiles/tile/secondary/support-text.js +++ b/addon/components/mdc-grid-list/tiles/tile/secondary/support-text.js @@ -6,7 +6,7 @@ export default Component.extend({ //region Ember Hooks layout, tagName: 'span', - classNames: ['mdc-grid-tile__support-text'], - attributeBindings: [...events], + classNames: Object.freeze(['mdc-grid-tile__support-text']), + attributeBindings: Object.freeze([...events]), //endregion }); diff --git a/addon/components/mdc-grid-list/tiles/tile/secondary/title.js b/addon/components/mdc-grid-list/tiles/tile/secondary/title.js index 988cb05..22ee778 100644 --- a/addon/components/mdc-grid-list/tiles/tile/secondary/title.js +++ b/addon/components/mdc-grid-list/tiles/tile/secondary/title.js @@ -6,7 +6,7 @@ export default Component.extend({ //region Ember Hooks layout, tagName: 'span', - classNames: ['mdc-grid-tile__title'], - attributeBindings: [...events], + classNames: Object.freeze(['mdc-grid-tile__title']), + attributeBindings: Object.freeze([...events]), //endregion }); diff --git a/addon/components/mdc-icon-toggle.js b/addon/components/mdc-icon-toggle.js index d26c76c..c806feb 100644 --- a/addon/components/mdc-icon-toggle.js +++ b/addon/components/mdc-icon-toggle.js @@ -41,7 +41,7 @@ export default Component.extend(MDCComponent, { //region Ember Hooks tagName: 'i', - classNames: ['mdc-icon-toggle'], + classNames: Object.freeze(['mdc-icon-toggle']), layout, didRender() { this._super(...arguments); @@ -50,8 +50,16 @@ export default Component.extend(MDCComponent, { this.syncPressed(); }); }, - attributeBindings: [DATA_TOGGLE_ON, DATA_TOGGLE_OFF, ARIA_PRESSED, ARIA_DISABLED, ARIA_LABEL, 'tabindex', 'style'], - classNameBindings: ['mdcClassNames', 'aria-disabled:mdc-icon-toggle--disabled'], + attributeBindings: Object.freeze([ + DATA_TOGGLE_ON, + DATA_TOGGLE_OFF, + ARIA_PRESSED, + ARIA_DISABLED, + ARIA_LABEL, + 'tabindex', + 'style', + ]), + classNameBindings: Object.freeze(['mdcClassNames', 'aria-disabled:mdc-icon-toggle--disabled']), //endregion //region Properties diff --git a/addon/components/mdc-layout-grid.js b/addon/components/mdc-layout-grid.js index bdeb05c..02e0bc4 100644 --- a/addon/components/mdc-layout-grid.js +++ b/addon/components/mdc-layout-grid.js @@ -17,13 +17,13 @@ export default Component.extend({ //endregion //region Ember Hooks - classNames: ['mdc-layout-grid'], - classNameBindings: [ + classNames: Object.freeze(['mdc-layout-grid']), + classNameBindings: Object.freeze([ 'fixed-column-width:mdc-layout-grid--fixed-column-width', 'isAlignLeft:mdc-layout-grid--align-left', 'isAlignRight:mdc-layout-grid--align-right', - ], - attributeBindings: [...events], + ]), + attributeBindings: Object.freeze([...events]), layout, //endregion diff --git a/addon/components/mdc-layout-grid/inner.js b/addon/components/mdc-layout-grid/inner.js index b079514..32a1586 100644 --- a/addon/components/mdc-layout-grid/inner.js +++ b/addon/components/mdc-layout-grid/inner.js @@ -4,8 +4,8 @@ import layout from '../../templates/components/mdc-layout-grid/inner'; export default Component.extend({ //region Ember Hooks - classNames: ['mdc-layout-grid__inner'], + classNames: Object.freeze(['mdc-layout-grid__inner']), layout, - attributeBindings: [...events], + attributeBindings: Object.freeze([...events]), //endregion }); diff --git a/addon/components/mdc-layout-grid/inner/cell.js b/addon/components/mdc-layout-grid/inner/cell.js index fdc28f1..48484eb 100644 --- a/addon/components/mdc-layout-grid/inner/cell.js +++ b/addon/components/mdc-layout-grid/inner/cell.js @@ -34,8 +34,8 @@ export default Component.extend({ //endregion //region Ember Hooks - classNames: ['mdc-layout-grid__cell'], - classNameBindings: [ + classNames: Object.freeze(['mdc-layout-grid__cell']), + classNameBindings: Object.freeze([ 'orderClass', 'isAlignTop:mdc-layout-grid__cell--align-top', 'isAlignMiddle:mdc-layout-grid__cell--align-middle', @@ -44,8 +44,8 @@ export default Component.extend({ 'spanDesktopClass', 'spanTabletClass', 'spanPhoneClass', - ], - attributeBindings: [...events], + ]), + attributeBindings: Object.freeze([...events]), layout, //endregion diff --git a/addon/components/mdc-linear-progress.js b/addon/components/mdc-linear-progress.js index 8c63f87..175c36a 100644 --- a/addon/components/mdc-linear-progress.js +++ b/addon/components/mdc-linear-progress.js @@ -41,14 +41,14 @@ export default Component.extend(MDCComponent, { //region Ember Hooks layout, - classNames: ['mdc-linear-progress'], - classNameBindings: [ + classNames: Object.freeze(['mdc-linear-progress']), + classNameBindings: Object.freeze([ `indeterminate:${cssClasses.INDETERMINATE_CLASS}`, `closed:${cssClasses.CLOSED_CLASS}`, `reversed:${cssClasses.REVERSED_CLASS}`, 'secondary:mdc-linear-progress--accent', - ], - attributeBindings: ['role', ...events], + ]), + attributeBindings: Object.freeze(['role', ...events]), init() { this._super(...arguments); set(this, 'mdcPrimaryBarStyles', {}); diff --git a/addon/components/mdc-list-group.js b/addon/components/mdc-list-group.js index b3bf51d..9701db2 100644 --- a/addon/components/mdc-list-group.js +++ b/addon/components/mdc-list-group.js @@ -5,7 +5,7 @@ import layout from '../templates/components/mdc-list-group'; export default Component.extend({ //region Ember Hooks layout, - classNames: ['mdc-list-group'], - attributeBindings: [...events], + classNames: Object.freeze(['mdc-list-group']), + attributeBindings: Object.freeze([...events]), //endregion }); diff --git a/addon/components/mdc-list-group/subheader.js b/addon/components/mdc-list-group/subheader.js index 52829bd..8404507 100644 --- a/addon/components/mdc-list-group/subheader.js +++ b/addon/components/mdc-list-group/subheader.js @@ -6,7 +6,7 @@ export default Component.extend({ //region Ember Hooks layout, tagName: 'h3', - classNames: ['mdc-list-group__subheader'], - attributeBindings: [...events], + classNames: Object.freeze(['mdc-list-group__subheader']), + attributeBindings: Object.freeze([...events]), //endregion }); diff --git a/addon/components/mdc-list.js b/addon/components/mdc-list.js index 8a0dc0b..a16af50 100644 --- a/addon/components/mdc-list.js +++ b/addon/components/mdc-list.js @@ -25,8 +25,12 @@ export default Component.extend({ //region Ember Hooks layout, tagName: 'ul', - classNameBindings: ['dense:mdc-list--dense', 'two-line:mdc-list--two-line', 'avatar-list:mdc-list--avatar-list'], - classNames: ['mdc-list'], - attributeBindings: [...events], + classNameBindings: Object.freeze([ + 'dense:mdc-list--dense', + 'two-line:mdc-list--two-line', + 'avatar-list:mdc-list--avatar-list', + ]), + classNames: Object.freeze(['mdc-list']), + attributeBindings: Object.freeze([...events]), //endregion }); diff --git a/addon/components/mdc-list/divider.js b/addon/components/mdc-list/divider.js index 9e4004f..a18f351 100644 --- a/addon/components/mdc-list/divider.js +++ b/addon/components/mdc-list/divider.js @@ -12,9 +12,9 @@ export default Component.extend({ //region Ember Hooks layout, tagName: 'li', - classNames: ['mdc-list-divider'], - classNameBindings: ['inset:mdc-list-divider--inset'], - attributeBindings: ['role'], + classNames: Object.freeze(['mdc-list-divider']), + classNameBindings: Object.freeze(['inset:mdc-list-divider--inset']), + attributeBindings: Object.freeze(['role']), //endregion //region Properties diff --git a/addon/components/mdc-list/item.js b/addon/components/mdc-list/item.js index f3531b1..326bdfe 100644 --- a/addon/components/mdc-list/item.js +++ b/addon/components/mdc-list/item.js @@ -6,7 +6,7 @@ export default Component.extend({ //region Ember Hooks layout, tagName: 'li', - classNames: ['mdc-list-item'], - attributeBindings: [...events], + classNames: Object.freeze(['mdc-list-item']), + attributeBindings: Object.freeze([...events]), //endregion }); diff --git a/addon/components/mdc-list/item/text.js b/addon/components/mdc-list/item/text.js index bd0f926..61052f1 100644 --- a/addon/components/mdc-list/item/text.js +++ b/addon/components/mdc-list/item/text.js @@ -6,7 +6,7 @@ export default Component.extend({ //region Ember Hooks layout, tagName: 'span', - classNames: ['mdc-list-item__text'], - attributeBindings: [...events], + classNames: Object.freeze(['mdc-list-item__text']), + attributeBindings: Object.freeze([...events]), //endregion }); diff --git a/addon/components/mdc-list/item/text/secondary.js b/addon/components/mdc-list/item/text/secondary.js index 5e6d6f2..804b997 100644 --- a/addon/components/mdc-list/item/text/secondary.js +++ b/addon/components/mdc-list/item/text/secondary.js @@ -6,7 +6,7 @@ export default Component.extend({ //region Ember Hooks layout, tagName: 'span', - classNames: ['mdc-list-item__text__secondary'], - attributeBindings: [...events], + classNames: Object.freeze(['mdc-list-item__text__secondary']), + attributeBindings: Object.freeze([...events]), //endregion }); diff --git a/addon/components/mdc-menu-anchor.js b/addon/components/mdc-menu-anchor.js index 71d1940..6386bad 100644 --- a/addon/components/mdc-menu-anchor.js +++ b/addon/components/mdc-menu-anchor.js @@ -5,7 +5,7 @@ import layout from '../templates/components/mdc-menu-anchor'; export default Component.extend({ //region Ember Hooks layout, - classNames: ['mdc-menu-anchor'], + classNames: Object.freeze(['mdc-menu-anchor']), //endregion //region Methods diff --git a/addon/components/mdc-menu.js b/addon/components/mdc-menu.js index 432bec3..0fcefb2 100644 --- a/addon/components/mdc-menu.js +++ b/addon/components/mdc-menu.js @@ -52,9 +52,9 @@ export default Component.extend(MDCComponent, { this.updateOpenness(); }, layout, - classNames: ['mdc-simple-menu'], - classNameBindings: ['mdcClassNames', 'open:mdc-simple-menu--open'], - attributeBindings: ['style', 'tabindex'], + classNames: Object.freeze(['mdc-simple-menu']), + classNameBindings: Object.freeze(['mdcClassNames', 'open:mdc-simple-menu--open']), + attributeBindings: Object.freeze(['style', 'tabindex']), //endregion //region Properties diff --git a/addon/components/mdc-menu/item.js b/addon/components/mdc-menu/item.js index ec181cc..7d553bd 100644 --- a/addon/components/mdc-menu/item.js +++ b/addon/components/mdc-menu/item.js @@ -31,8 +31,8 @@ export default Component.extend({ }, layout, tagName: 'li', - classNames: ['mdc-list-item'], - attributeBindings: ['role', 'tabindex', 'aria-disabled', 'style', ...events], + classNames: Object.freeze(['mdc-list-item']), + attributeBindings: Object.freeze(['role', 'tabindex', 'aria-disabled', 'style', ...events]), //endregion //region Properties diff --git a/addon/components/mdc-radio.js b/addon/components/mdc-radio.js index f3fea7c..aaccae3 100644 --- a/addon/components/mdc-radio.js +++ b/addon/components/mdc-radio.js @@ -41,9 +41,9 @@ export default Component.extend(MDCComponent, SupportsBubblesFalse, { //endregion //region Ember Hooks - classNames: ['mdc-radio'], - classNameBindings: ['mdcClassNames'], - attributeBindings: ['style'], + classNames: Object.freeze(['mdc-radio']), + classNameBindings: Object.freeze(['mdcClassNames']), + attributeBindings: Object.freeze(['style']), layout, didRender() { this._super(...arguments); diff --git a/addon/components/mdc-switch.js b/addon/components/mdc-switch.js index 30f29b4..5888abe 100644 --- a/addon/components/mdc-switch.js +++ b/addon/components/mdc-switch.js @@ -35,8 +35,8 @@ export default Component.extend(SupportsBubblesFalse, { //region Ember Hooks layout, classNames: 'mdc-switch', - classNameBindings: ['disabled:mdc-switch--disabled'], - attributeBindings: ['disabled'], + classNameBindings: Object.freeze(['disabled:mdc-switch--disabled']), + attributeBindings: Object.freeze(['disabled']), //endregion //region Actions diff --git a/addon/components/mdc-tab-bar-scroller.js b/addon/components/mdc-tab-bar-scroller.js index 361098c..ab467b5 100644 --- a/addon/components/mdc-tab-bar-scroller.js +++ b/addon/components/mdc-tab-bar-scroller.js @@ -22,8 +22,8 @@ export default Component.extend(MDCComponent, { //endregion //region Ember Hooks - classNames: ['mdc-tab-bar-scroller'], - classNameBindings: ['dark:mdc-theme--dark'], + classNames: Object.freeze(['mdc-tab-bar-scroller']), + classNameBindings: Object.freeze(['dark:mdc-theme--dark']), layout, init() { this._super(...arguments); diff --git a/addon/components/mdc-tab-bar.js b/addon/components/mdc-tab-bar.js index 7c2773c..9bdfa80 100644 --- a/addon/components/mdc-tab-bar.js +++ b/addon/components/mdc-tab-bar.js @@ -49,14 +49,14 @@ export default Component.extend(MDCComponent, { //region Ember Hooks layout, - classNames: ['mdc-tab-bar'], - classNameBindings: [ + classNames: Object.freeze(['mdc-tab-bar']), + classNameBindings: Object.freeze([ 'isIconsOnly:mdc-tab-bar--icon-tab-bar', 'isIconsWithText:mdc-tab-bar--icons-with-text', 'mdcClassNames', 'dark:mdc-theme--dark', - ], - attributeBindings: ['style'], + ]), + attributeBindings: Object.freeze(['style']), init() { this._super(...arguments); set(this, 'tabs', A([])); diff --git a/addon/components/mdc-tab-bar/indicator.js b/addon/components/mdc-tab-bar/indicator.js index fb506d4..cba500d 100644 --- a/addon/components/mdc-tab-bar/indicator.js +++ b/addon/components/mdc-tab-bar/indicator.js @@ -4,7 +4,7 @@ import layout from '../../templates/components/mdc-tab-bar/indicator'; export default Component.extend({ //region Ember Hooks layout, - classNames: ['mdc-tab-bar__indicator'], - attributeBindings: ['style'], + classNames: Object.freeze(['mdc-tab-bar__indicator']), + attributeBindings: Object.freeze(['style']), //endregion }); diff --git a/addon/components/mdc-tab-bar/tab.js b/addon/components/mdc-tab-bar/tab.js index 33b9f73..5ce6fb5 100644 --- a/addon/components/mdc-tab-bar/tab.js +++ b/addon/components/mdc-tab-bar/tab.js @@ -22,6 +22,6 @@ export default Component.extend(MDCTabComponent, { //endregion //region Ember Hooks - classNameBindings: ['active:mdc-tab--active'], + classNameBindings: Object.freeze(['active:mdc-tab--active']), //endregion }); diff --git a/addon/components/mdc-tab-bar/tab/icon-text.js b/addon/components/mdc-tab-bar/tab/icon-text.js index 42dda41..00910cb 100644 --- a/addon/components/mdc-tab-bar/tab/icon-text.js +++ b/addon/components/mdc-tab-bar/tab/icon-text.js @@ -4,6 +4,6 @@ import layout from '../../../templates/components/mdc-tab-bar/tab/icon-text'; export default Component.extend({ //region Ember Hooks layout, - classNames: ['mdc-tab__icon-text'], + classNames: Object.freeze(['mdc-tab__icon-text']), //endregion }); diff --git a/addon/components/mdc-tab-bar/tab/icon.js b/addon/components/mdc-tab-bar/tab/icon.js index 9aa70f1..1a6ba33 100644 --- a/addon/components/mdc-tab-bar/tab/icon.js +++ b/addon/components/mdc-tab-bar/tab/icon.js @@ -4,6 +4,6 @@ import layout from '../../../templates/components/mdc-tab-bar/tab/icon'; export default Component.extend({ //region Ember Hooks layout, - classNames: ['mdc-tab__icon'], + classNames: Object.freeze(['mdc-tab__icon']), //endregion }); diff --git a/addon/components/mdc-textfield/helptext.js b/addon/components/mdc-textfield/helptext.js index 7f7ce23..4f5cc7d 100644 --- a/addon/components/mdc-textfield/helptext.js +++ b/addon/components/mdc-textfield/helptext.js @@ -19,8 +19,8 @@ const MDCTextfieldHelptextComponent = Component.extend({ //region Ember Hooks layout, tagName: 'p', - classNames: ['mdc-textfield-helptext'], - classNameBindings: ['class-names'], + classNames: Object.freeze(['mdc-textfield-helptext']), + classNameBindings: Object.freeze(['class-names']), attributeBindings: mdcAttrs, //endregion }); diff --git a/addon/components/mdc-textfield/input.js b/addon/components/mdc-textfield/input.js index b94a470..a767040 100644 --- a/addon/components/mdc-textfield/input.js +++ b/addon/components/mdc-textfield/input.js @@ -29,7 +29,7 @@ export default Component.extend({ //region Ember Hooks layout, tagName: 'input', - attributeBindings: [ + attributeBindings: Object.freeze([ 'required', 'disabled', 'readonly', @@ -57,8 +57,8 @@ export default Component.extend({ 'type', 'value', 'width', - ], - classNames: ['mdc-textfield__input'], + ]), + classNames: Object.freeze(['mdc-textfield__input']), focusIn(ev) { get(this, 'onfocus')(ev); }, diff --git a/addon/components/mdc-textfield/label.js b/addon/components/mdc-textfield/label.js index 508279f..9db6917 100644 --- a/addon/components/mdc-textfield/label.js +++ b/addon/components/mdc-textfield/label.js @@ -5,7 +5,7 @@ export default Component.extend({ //region Ember Hooks layout, tagName: 'span', - classNames: ['mdc-textfield__label'], - classNameBindings: ['class-names'], + classNames: Object.freeze(['mdc-textfield__label']), + classNameBindings: Object.freeze(['class-names']), //endregion }); diff --git a/addon/components/mdc-textfield/textarea.js b/addon/components/mdc-textfield/textarea.js index 34f830f..063fc81 100644 --- a/addon/components/mdc-textfield/textarea.js +++ b/addon/components/mdc-textfield/textarea.js @@ -29,7 +29,7 @@ export default Component.extend({ //region Ember Hooks layout, tagName: 'textarea', - attributeBindings: [ + attributeBindings: Object.freeze([ 'required', 'disabled', 'rows', @@ -41,8 +41,8 @@ export default Component.extend({ 'lang', 'dir', 'value', - ], - classNames: ['mdc-textfield__input'], + ]), + classNames: Object.freeze(['mdc-textfield__input']), focusIn(ev) { get(this, 'onfocus')(ev); }, diff --git a/addon/components/mdc-toolbar.js b/addon/components/mdc-toolbar.js index e22ca18..9cba91c 100644 --- a/addon/components/mdc-toolbar.js +++ b/addon/components/mdc-toolbar.js @@ -37,20 +37,20 @@ export default Component.extend(MDCComponent, { //region Ember Hooks layout, - classNames: ['mdc-toolbar'], - classNameBindings: [ + classNames: Object.freeze(['mdc-toolbar']), + classNameBindings: Object.freeze([ `fixed:${cssClasses.FIXED}`, 'waterfall:mdc-toolbar--waterfall', `flexible:${cssClasses.TOOLBAR_ROW_FLEXIBLE}`, `fixed-lastrow-only:${cssClasses.FIXED_LASTROW}`, - ], + ]), init() { this._super(...arguments); set(this, 'mdcTitleStyles', {}); set(this, 'mdcFirstRowStyles', {}); set(this, 'rows', A([])); }, - attributeBindings: ['style'], + attributeBindings: Object.freeze(['style']), //endregion //region Properties diff --git a/addon/components/mdc-toolbar/row.js b/addon/components/mdc-toolbar/row.js index b58f7f5..08740be 100644 --- a/addon/components/mdc-toolbar/row.js +++ b/addon/components/mdc-toolbar/row.js @@ -5,8 +5,8 @@ import layout from '../../templates/components/mdc-toolbar/row'; export default Component.extend({ //region Ember Hooks layout, - classNames: ['mdc-toolbar__row'], - attributeBindings: ['style'], + classNames: Object.freeze(['mdc-toolbar__row']), + attributeBindings: Object.freeze(['style']), didInsertElement() { get(this, 'register-row')(this); }, diff --git a/addon/components/mdc-toolbar/section.js b/addon/components/mdc-toolbar/section.js index 197d7a0..e01df17 100644 --- a/addon/components/mdc-toolbar/section.js +++ b/addon/components/mdc-toolbar/section.js @@ -17,12 +17,12 @@ export default Component.extend({ //region Ember Hooks layout, - classNames: ['mdc-toolbar__section'], - classNameBindings: [ + classNames: Object.freeze(['mdc-toolbar__section']), + classNameBindings: Object.freeze([ 'isAlignStart:mdc-toolbar__section--align-start', 'isAlignEnd:mdc-toolbar__section--align-end', 'shrink-to-fit:mdc-toolbar__section--shrink-to-fit', - ], + ]), //endregion //region Computed Properties diff --git a/addon/components/mdc-toolbar/title.js b/addon/components/mdc-toolbar/title.js index 15f2c3e..5029616 100644 --- a/addon/components/mdc-toolbar/title.js +++ b/addon/components/mdc-toolbar/title.js @@ -6,8 +6,8 @@ import events from '../../utils/global-event-handlers'; export default Component.extend({ //region Ember Hooks layout, - classNames: ['mdc-toolbar__title'], - attributeBindings: ['style', ...events], + classNames: Object.freeze(['mdc-toolbar__title']), + attributeBindings: Object.freeze(['style', ...events]), //endregion //region Computed Properties From b343bbd24ae492013039c6cdacfa3b5a31a3be9e Mon Sep 17 00:00:00 2001 From: Gaurav Munjal Date: Mon, 15 Nov 2021 15:42:41 -0500 Subject: [PATCH 02/33] remove ember-cli-updater --- package.json | 1 - yarn.lock | 52 ++++------------------------------------------------ 2 files changed, 4 insertions(+), 49 deletions(-) diff --git a/package.json b/package.json index 6cf1733..3c059b1 100644 --- a/package.json +++ b/package.json @@ -80,7 +80,6 @@ "ember-cli-shims": "^1.2.0", "ember-cli-sri": "^2.1.0", "ember-cli-uglify": "^2.0.0", - "ember-cli-updater": "1.0.0", "ember-composable-helpers": "^2.0.3", "ember-disable-prototype-extensions": "^1.1.2", "ember-export-application-global": "^2.0.0", diff --git a/yarn.lock b/yarn.lock index d791dd6..953e04a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2494,16 +2494,6 @@ dedent@^0.7.0: version "0.7.0" resolved "https://registry.yarnpkg.com/dedent/-/dedent-0.7.0.tgz#2495ddbaf6eb874abb0e1be9df22d2e5a544326c" -deep-assign@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/deep-assign/-/deep-assign-2.0.0.tgz#ebe06b1f07f08dae597620e3dd1622f371a1c572" - dependencies: - is-obj "^1.0.0" - -deep-diff@^0.3.8: - version "0.3.8" - resolved "https://registry.yarnpkg.com/deep-diff/-/deep-diff-0.3.8.tgz#c01de63efb0eec9798801d40c7e0dae25b582c84" - deep-extend@~0.4.0: version "0.4.2" resolved "https://registry.yarnpkg.com/deep-extend/-/deep-extend-0.4.2.tgz#48b699c27e334bf89f10892be432f6e4c7d34a7f" @@ -2671,7 +2661,7 @@ ember-cli-babel@^5.1.3: ember-cli-version-checker "^1.0.2" resolve "^1.1.2" -ember-cli-babel@^6.0.0, ember-cli-babel@^6.0.0-beta.4, ember-cli-babel@^6.0.0-beta.7, ember-cli-babel@^6.10.0, ember-cli-babel@^6.11.0, ember-cli-babel@^6.3.0, ember-cli-babel@^6.6.0, ember-cli-babel@^6.8.1, ember-cli-babel@^6.9.0: +ember-cli-babel@^6.0.0-beta.4, ember-cli-babel@^6.0.0-beta.7, ember-cli-babel@^6.10.0, ember-cli-babel@^6.11.0, ember-cli-babel@^6.3.0, ember-cli-babel@^6.6.0, ember-cli-babel@^6.8.1, ember-cli-babel@^6.9.0: version "6.11.0" resolved "https://registry.yarnpkg.com/ember-cli-babel/-/ember-cli-babel-6.11.0.tgz#79cb184bac3c05bfe181ddc306bac100ab1f9493" dependencies: @@ -2896,20 +2886,6 @@ ember-cli-uglify@^2.0.0: broccoli-uglify-sourcemap "^2.0.0" lodash.defaultsdeep "^4.6.0" -ember-cli-updater@1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/ember-cli-updater/-/ember-cli-updater-1.0.0.tgz#9063ad00813bc2beb30e8af47ed8a26ed8a8e1ec" - dependencies: - chalk "^2.0.1" - deep-assign "^2.0.0" - deep-diff "^0.3.8" - ember-cli-babel "^6.0.0" - node-fetch "^1.7.1" - p-series "^1.0.0" - rsvp "^3.6.1" - sort-package-json "^1.7.0" - supports-color "^4.2.0" - ember-cli-valid-component-name@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/ember-cli-valid-component-name/-/ember-cli-valid-component-name-1.0.0.tgz#71550ce387e0233065f30b30b1510aa2dfbe87ef" @@ -4261,10 +4237,6 @@ has-cors@1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/has-cors/-/has-cors-1.1.0.tgz#5e474793f7ea9843d1bb99c23eef49ff126fff39" -has-flag@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-2.0.0.tgz#e8207af1cc7b30d446cc70b734b5e8be18f88d51" - has-flag@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-3.0.0.tgz#b5d454dc2199ae225699f3467e5a07f3b955bafd" @@ -6069,7 +6041,7 @@ no-case@^2.2.0: dependencies: lower-case "^1.1.1" -node-fetch@^1.3.3, node-fetch@^1.7.1: +node-fetch@^1.3.3: version "1.7.3" resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-1.7.3.tgz#980f6f72d85211a5347c6b2bc18c5b84c3eb47ef" dependencies: @@ -6404,16 +6376,6 @@ p-map@^1.1.1: version "1.2.0" resolved "https://registry.yarnpkg.com/p-map/-/p-map-1.2.0.tgz#e4e94f311eabbc8633a1e79908165fca26241b6b" -p-reduce@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/p-reduce/-/p-reduce-1.0.0.tgz#18c2b0dd936a4690a529f8231f58a0fdb6a47dfa" - -p-series@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/p-series/-/p-series-1.0.0.tgz#7ec9e7b4406cc32066298a6f9860e55e91b36e07" - dependencies: - p-reduce "^1.0.0" - p-try@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/p-try/-/p-try-1.0.0.tgz#cbc79cdbaf8fd4228e13f621f2b1a237c1b207b3" @@ -7124,7 +7086,7 @@ rollup@^0.41.4: dependencies: source-map-support "^0.4.0" -rsvp@^3.0.14, rsvp@^3.0.16, rsvp@^3.0.17, rsvp@^3.0.18, rsvp@^3.0.21, rsvp@^3.0.6, rsvp@^3.1.0, rsvp@^3.2.1, rsvp@^3.3.3, rsvp@^3.5.0, rsvp@^3.6.1: +rsvp@^3.0.14, rsvp@^3.0.16, rsvp@^3.0.17, rsvp@^3.0.18, rsvp@^3.0.21, rsvp@^3.0.6, rsvp@^3.1.0, rsvp@^3.2.1, rsvp@^3.3.3, rsvp@^3.5.0: version "3.6.2" resolved "https://registry.yarnpkg.com/rsvp/-/rsvp-3.6.2.tgz#2e96491599a96cde1b515d5674a8f7a91452926a" @@ -7452,7 +7414,7 @@ sort-object-keys@^1.1.1: version "1.1.2" resolved "https://registry.yarnpkg.com/sort-object-keys/-/sort-object-keys-1.1.2.tgz#d3a6c48dc2ac97e6bc94367696e03f6d09d37952" -sort-package-json@^1.4.0, sort-package-json@^1.7.0: +sort-package-json@^1.4.0: version "1.7.1" resolved "https://registry.yarnpkg.com/sort-package-json/-/sort-package-json-1.7.1.tgz#f2e5fbffe8420cc1bb04485f4509f05e73b4c0f2" dependencies: @@ -7743,12 +7705,6 @@ supports-color@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-2.0.0.tgz#535d045ce6b6363fa40117084629995e9df324c7" -supports-color@^4.2.0: - version "4.5.0" - resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-4.5.0.tgz#be7a0de484dec5c5cddf8b3d59125044912f635b" - dependencies: - has-flag "^2.0.0" - supports-color@^5.2.0: version "5.2.0" resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-5.2.0.tgz#b0d5333b1184dd3666cbe5aa0b45c5ac7ac17a4a" From 01b6cbfc95124a6c2514ec09275140d3710824f0 Mon Sep 17 00:00:00 2001 From: Gaurav Munjal Date: Mon, 15 Nov 2021 16:44:52 -0500 Subject: [PATCH 03/33] upgrade to ember 2.4 --- .eslintignore | 18 + .eslintrc.js | 32 +- .gitignore | 22 +- .npmignore | 43 +- .nvmrc | 2 +- .template-lintrc.js | 5 + .travis.yml | 37 +- README.md | 3 +- addon/components/mdc-checkbox.js | 6 +- addon/components/mdc-drawer.js | 5 +- addon/components/mdc-icon-toggle.js | 6 +- addon/components/mdc-textfield.js | 6 +- config/ember-try.js | 137 +- index.js | 2 +- package.json | 58 +- testem.js | 17 +- tests/acceptance/demo-test.js | 18 +- tests/dummy/app/templates/application.hbs | 60 +- tests/dummy/config/ember-cli-update.json | 21 + tests/dummy/config/optional-features.json | 3 + tests/dummy/config/targets.js | 17 +- tests/helpers/.gitkeep | 0 tests/helpers/destroy-app.js | 5 - tests/helpers/module-for-acceptance.js | 21 - tests/helpers/start-app.js | 17 - .../integration/components/mdc-button-test.js | 34 +- tests/integration/components/mdc-card-test.js | 34 +- .../components/mdc-card/actions-test.js | 34 +- .../components/mdc-card/media-item-test.js | 34 +- .../components/mdc-card/media-test.js | 34 +- .../components/mdc-card/primary-test.js | 34 +- .../mdc-card/primary/subtitle-test.js | 34 +- .../components/mdc-card/primary/title-test.js | 34 +- .../mdc-card/supporting-text-test.js | 34 +- .../components/mdc-checkbox-test.js | 20 +- .../integration/components/mdc-drawer-test.js | 34 +- .../components/mdc-drawer/content-test.js | 34 +- .../mdc-drawer/toolbar-spacer-test.js | 34 +- .../components/mdc-elevation-test.js | 34 +- tests/integration/components/mdc-fab-test.js | 34 +- .../components/mdc-form-field-test.js | 34 +- .../components/mdc-grid-list-test.js | 58 +- .../components/mdc-grid-list/tiles-test.js | 34 +- .../mdc-grid-list/tiles/tile-test.js | 42 +- .../mdc-grid-list/tiles/tile/primary-test.js | 30 +- .../tile/primary/primary-content-test.js | 38 +- .../tiles/tile/secondary-test.js | 52 +- .../tiles/tile/secondary/icon-test.js | 38 +- .../tiles/tile/secondary/support-text-test.js | 38 +- .../tiles/tile/secondary/title-test.js | 38 +- .../components/mdc-icon-toggle-test.js | 26 +- .../components/mdc-layout-grid-test.js | 34 +- .../components/mdc-layout-grid/inner-test.js | 34 +- .../mdc-layout-grid/inner/cell-test.js | 58 +- .../components/mdc-linear-progress-test.js | 69 +- .../components/mdc-list-group-test.js | 34 +- .../components/mdc-list-group/divider-test.js | 34 +- .../mdc-list-group/subheader-test.js | 34 +- tests/integration/components/mdc-list-test.js | 32 +- .../components/mdc-list/divider-test.js | 34 +- .../components/mdc-list/item-test.js | 34 +- .../mdc-list/item/end-detail-test.js | 34 +- .../mdc-list/item/start-detail-test.js | 34 +- .../components/mdc-list/item/text-test.js | 34 +- .../mdc-list/item/text/secondary-test.js | 34 +- .../components/mdc-menu-anchor-test.js | 34 +- tests/integration/components/mdc-menu-test.js | 34 +- .../integration/components/mdc-radio-test.js | 20 +- .../integration/components/mdc-switch-test.js | 26 +- .../components/mdc-tab-bar-scroller-test.js | 46 +- .../components/mdc-tab-bar-test.js | 43 +- .../components/mdc-textfield-test.js | 36 +- .../components/mdc-toolbar-test.js | 36 +- tests/unit/mixins/mdc-component-test.js | 14 +- tests/unit/mixins/mdc-tab-component-test.js | 14 +- .../mixins/supports-bubbles-false-test.js | 14 +- .../unit/utils/global-event-handlers-test.js | 12 +- tests/unit/utils/mdc-ripple-adapter-test.js | 12 +- tests/unit/utils/style-computed-test.js | 12 +- yarn.lock | 5566 +++++++++++++---- 80 files changed, 5744 insertions(+), 2193 deletions(-) create mode 100644 .eslintignore create mode 100644 .template-lintrc.js create mode 100644 tests/dummy/config/ember-cli-update.json create mode 100644 tests/dummy/config/optional-features.json create mode 100644 tests/helpers/.gitkeep delete mode 100644 tests/helpers/destroy-app.js delete mode 100644 tests/helpers/module-for-acceptance.js delete mode 100644 tests/helpers/start-app.js diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 0000000..6437276 --- /dev/null +++ b/.eslintignore @@ -0,0 +1,18 @@ +# unconventional js +/blueprints/*/files/ +/vendor/ + +# compiled output +/dist/ +/tmp/ + +# dependencies +/bower_components/ + +# misc +/coverage/ + +# ember-try +/.node_modules.ember-try/ +/bower.json.ember-try +/package.json.ember-try diff --git a/.eslintrc.js b/.eslintrc.js index f3d0cec..76a7783 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -16,8 +16,21 @@ module.exports = { overrides: [ // node files { - files: ['index.js', 'testem.js', 'ember-cli-build.js', 'config/**/*.js', 'tests/dummy/config/**/*.js'], - excludedFiles: ['app/**', 'addon/**'], + files: [ + '.template-lintrc.js', + 'ember-cli-build.js', + 'index.js', + 'testem.js', + 'blueprints/*/index.js', + 'config/**/*.js', + 'tests/dummy/config/**/*.js' + ], + excludedFiles: [ + 'addon/**', + 'addon-test-support/**', + 'app/**', + 'tests/dummy/app/**' + ], parserOptions: { sourceType: 'script', ecmaVersion: 2015, @@ -29,16 +42,7 @@ module.exports = { plugins: ['node'], rules: Object.assign({}, require('eslint-plugin-node').configs.recommended.rules, { // add your custom rules and overrides for node files here - }), - }, - - // test files - { - files: ['tests/**/*.js'], - excludedFiles: ['tests/dummy/**/*.js'], - env: { - embertest: true, - }, - }, - ], + }) + } + ] }; diff --git a/.gitignore b/.gitignore index d4e49f8..8a15714 100644 --- a/.gitignore +++ b/.gitignore @@ -3,24 +3,24 @@ .vscode # compiled output -/dist -/tmp +/dist/ +/tmp/ # dependencies -/node_modules -/bower_components +/bower_components/ +/node_modules/ # misc /.sass-cache /.idea /connect.lock -/coverage/* +/coverage/ /libpeerconnection.log -npm-debug.log* -yarn-error.log -testem.log +/npm-debug.log* +/testem.log +/yarn-error.log # ember-try -.node_modules.ember-try/ -bower.json.ember-try -package.json.ember-try +/.node_modules.ember-try/ +/bower.json.ember-try +/package.json.ember-try diff --git a/.npmignore b/.npmignore index 135c7b1..2f20afe 100644 --- a/.npmignore +++ b/.npmignore @@ -1,21 +1,28 @@ -/bower_components +# compiled output +/dist/ +/tmp/ + +# dependencies +/bower_components/ + +# misc +/.bowerrc +/.editorconfig +/.ember-cli +/.eslintignore +/.eslintrc.js +/.gitignore +/.watchmanconfig +/.travis.yml +/bower.json /config/ember-try.js -/dist -/tests -/tmp -**/.gitkeep -.bowerrc -.editorconfig -.ember-cli -.eslintrc.js -.gitignore -.watchmanconfig -.travis.yml -bower.json -ember-cli-build.js -testem.js +/ember-cli-build.js +/testem.js +/tests/ +/yarn.lock +.gitkeep # ember-try -.node_modules.ember-try/ -bower.json.ember-try -package.json.ember-try +/.node_modules.ember-try/ +/bower.json.ember-try +/package.json.ember-try diff --git a/.nvmrc b/.nvmrc index 4415015..27bbca7 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -v8.16.0 +v12.22.1 diff --git a/.template-lintrc.js b/.template-lintrc.js new file mode 100644 index 0000000..b45e96f --- /dev/null +++ b/.template-lintrc.js @@ -0,0 +1,5 @@ +'use strict'; + +module.exports = { + extends: 'recommended' +}; diff --git a/.travis.yml b/.travis.yml index 07aa3fe..1f3f645 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,19 +16,35 @@ env: global: # See https://git.io/vdao3 for details. - JOBS=1 - matrix: - # we recommend new addons test the current and previous LTS - # as well as latest stable release (bonus points to beta/canary) - - EMBER_TRY_SCENARIO=ember-lts-2.16 - - EMBER_TRY_SCENARIO=ember-release - - EMBER_TRY_SCENARIO=ember-beta - - EMBER_TRY_SCENARIO=ember-canary - - EMBER_TRY_SCENARIO=ember-default + +jobs: + fail_fast: true + allow_failures: + - env: EMBER_TRY_SCENARIO=ember-canary + + include: + # runs linting and tests with current locked deps + + - stage: "Tests" + name: "Tests" + install: + - yarn install --non-interactive + script: + - yarn lint:hbs + - yarn lint:js + - yarn test + + - name: "Floating Dependencies" + script: + - yarn test matrix: fast_finish: true allow_failures: - - env: EMBER_TRY_SCENARIO=ember-canary + - stage: "Additional Tests" + env: EMBER_TRY_SCENARIO=ember-lts-2.16 + - env: EMBER_TRY_SCENARIO=ember-lts-2.18 + - env: EMBER_TRY_SCENARIO=ember-default-with-jquery before_install: - curl -o- -L https://yarnpkg.com/install.sh | bash @@ -54,4 +70,5 @@ deploy: local_dir: ./dist on: branch: master - condition: $EMBER_TRY_SCENARIO = ember-release + condition: $EMBER_TRY_SCENARIO = ember-default + - node_modules/.bin/ember try:one $EMBER_TRY_SCENARIO diff --git a/README.md b/README.md index eb4d408..5a6eeb0 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ -# ember-material-components-web +ember-material-components-web +============================================================================== [![Travis branch](https://img.shields.io/travis/secondstreet/ember-material-components-web/master.svg)](https://travis-ci.org/secondstreet/ember-material-components-web) [![npm](https://img.shields.io/npm/dw/ember-material-components-web.svg)](https://www.npmjs.com/package/ember-material-components-web) diff --git a/addon/components/mdc-checkbox.js b/addon/components/mdc-checkbox.js index c571ce7..2ea62d9 100644 --- a/addon/components/mdc-checkbox.js +++ b/addon/components/mdc-checkbox.js @@ -3,7 +3,11 @@ import Component from '@ember/component'; import { set, get } from '@ember/object'; import { run, next, scheduleOnce } from '@ember/runloop'; import layout from '../templates/components/mdc-checkbox'; -import { addClass, removeClass, MDCComponent } from '../mixins/mdc-component'; +import { + addClass, + removeClass, + MDCComponent +} from '../mixins/mdc-component'; import getElementProperty from '../utils/get-element-property'; import { MDCCheckboxFoundation } from '@material/checkbox'; import SupportsBubblesFalse from '../mixins/supports-bubbles-false'; diff --git a/addon/components/mdc-drawer.js b/addon/components/mdc-drawer.js index 3dbf10f..c2ba863 100644 --- a/addon/components/mdc-drawer.js +++ b/addon/components/mdc-drawer.js @@ -5,7 +5,10 @@ import { run } from '@ember/runloop'; import { set, getProperties, get, computed } from '@ember/object'; import { MDCComponent } from '../mixins/mdc-component'; import getElementProperty from '../utils/get-element-property'; -import { MDCTemporaryDrawerFoundation, MDCPersistentDrawerFoundation } from '@material/drawer'; +import { + MDCTemporaryDrawerFoundation, + MDCPersistentDrawerFoundation +} from '@material/drawer'; import layout from '../templates/components/mdc-drawer'; export default Component.extend(MDCComponent, { diff --git a/addon/components/mdc-icon-toggle.js b/addon/components/mdc-icon-toggle.js index c806feb..5e4d0d8 100644 --- a/addon/components/mdc-icon-toggle.js +++ b/addon/components/mdc-icon-toggle.js @@ -2,7 +2,11 @@ import { scheduleOnce } from '@ember/runloop'; import Component from '@ember/component'; import { set, get } from '@ember/object'; import layout from '../templates/components/mdc-icon-toggle'; -import { MDCComponent, addClass, removeClass } from '../mixins/mdc-component'; +import { + MDCComponent, + addClass, + removeClass +} from '../mixins/mdc-component'; import getElementProperty from '../utils/get-element-property'; import { MDCIconToggleFoundation } from '@material/icon-toggle'; diff --git a/addon/components/mdc-textfield.js b/addon/components/mdc-textfield.js index d6a553f..b94abc6 100644 --- a/addon/components/mdc-textfield.js +++ b/addon/components/mdc-textfield.js @@ -5,7 +5,11 @@ import Component from '@ember/component'; import { computed, set, get } from '@ember/object'; import { isPresent } from '@ember/utils'; import layout from '../templates/components/mdc-textfield'; -import { MDCComponent, addClass, removeClass } from '../mixins/mdc-component'; +import { + MDCComponent, + addClass, + removeClass +} from '../mixins/mdc-component'; import getElementProperty from '../utils/get-element-property'; import { MDCTextfieldFoundation } from '@material/textfield'; import { util } from '@material/ripple'; diff --git a/config/ember-try.js b/config/ember-try.js index 28c28af..2ca5a55 100644 --- a/config/ember-try.js +++ b/config/ember-try.js @@ -1,67 +1,84 @@ -module.exports = { - useYarn: true, - scenarios: [ - { - name: 'ember-lts-2.16', - npm: { - devDependencies: { - 'ember-source': '~2.16.0', +'use strict'; + +const getChannelURL = require('ember-source-channel-url'); + +module.exports = function() { + return Promise.all([ + getChannelURL('release'), + getChannelURL('beta'), + getChannelURL('canary') + ]).then((urls) => { + return { + useYarn: true, + scenarios: [ + { + name: 'ember-lts-2.16', + env: { + EMBER_OPTIONAL_FEATURES: JSON.stringify({ 'jquery-integration': true }), + }, + npm: { + devDependencies: { + '@ember/jquery': '^0.5.1', + 'ember-source': '~2.16.0' + } + } }, - }, - }, - { - name: 'ember-release', - bower: { - dependencies: { - ember: 'components/ember#release', + { + name: 'ember-lts-2.18', + env: { + EMBER_OPTIONAL_FEATURES: JSON.stringify({ 'jquery-integration': true }), + }, + npm: { + devDependencies: { + '@ember/jquery': '^0.5.1', + 'ember-source': '~2.18.0' + } + } }, - resolutions: { - ember: 'release', + { + name: 'ember-release', + npm: { + devDependencies: { + 'ember-source': urls[0] + } + } }, - }, - npm: { - devDependencies: { - 'ember-source': null, + { + name: 'ember-beta', + npm: { + devDependencies: { + 'ember-source': urls[1] + } + } }, - }, - }, - { - name: 'ember-beta', - bower: { - dependencies: { - ember: 'components/ember#beta', + { + name: 'ember-canary', + npm: { + devDependencies: { + 'ember-source': urls[2] + } + } }, - resolutions: { - ember: 'beta', + { + name: 'ember-default', + npm: { + devDependencies: {} + } }, - }, - npm: { - devDependencies: { - 'ember-source': null, - }, - }, - }, - { - name: 'ember-canary', - bower: { - dependencies: { - ember: 'components/ember#canary', - }, - resolutions: { - ember: 'canary', - }, - }, - npm: { - devDependencies: { - 'ember-source': null, - }, - }, - }, - { - name: 'ember-default', - npm: { - devDependencies: {}, - }, - }, - ], + { + name: 'ember-default-with-jquery', + env: { + EMBER_OPTIONAL_FEATURES: JSON.stringify({ + 'jquery-integration': true + }) + }, + npm: { + devDependencies: { + '@ember/jquery': '^0.5.1' + } + } + } + ] + }; + }); }; diff --git a/index.js b/index.js index da80e78..6fcf6b5 100644 --- a/index.js +++ b/index.js @@ -48,7 +48,7 @@ const materialPackages = [ * Ember's module system. */ module.exports = { - name: 'ember-material-components-web', + name: require('./package').name, /** * Invoked at the beginning of the build process, this hook allows us to * use the `import()` method to include files from our `vendor` tree into diff --git a/package.json b/package.json index 3c059b1..3527ac5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ember-material-components-web", - "version": "0.0.41", + "version": "0.1.0", "description": "A suite of Ember components wrapping the official Google material-components-web library", "keywords": [ "components", @@ -14,13 +14,13 @@ "paper", "ui" ], + "repository": "secondstreet/ember-material-components-web", "license": "MIT", "author": "Kerrick Long", "directories": { "doc": "doc", "test": "tests" }, - "repository": "secondstreet/ember-material-components-web", "lint-staged": { "linters": { "{{addon,app,src,tests,config,blueprints}/**/*.{js,ts,css,json},*.{js,json}}": [ @@ -35,17 +35,20 @@ "build": "ember build", "generate-contrib": "all-contributors generate", "lint:prettier": "yarn run prettier --list-different '{addon,app,src,tests,config,blueprints}/**/*.{js,ts,css,json}' '*.{js,json}'", - "lint:js": "eslint ./*.js addon addon-test-support app config lib server test-support tests", + "lint:hbs": "ember-template-lint .", + "lint:js": "eslint .", "start": "ember serve", - "test": "ember try:each" + "test": "ember test", + "test:all": "ember try:each" }, "dependencies": { - "ember-cli-babel": "^6.6.0", - "ember-cli-htmlbars": "^1.0.10", + "ember-cli-babel": "^6.16.0", + "ember-cli-htmlbars": "^3.0.0", "ember-rollup": "^0.3.4", "material-design-icons": "^3.0.1" }, "devDependencies": { + "@ember/optional-features": "^0.6.3", "@material/animation": "0.3.1", "@material/base": "0.2.5", "@material/button": "0.5.0", @@ -69,37 +72,40 @@ "@material/theme": "0.2.0", "@material/toolbar": "0.4.7", "all-contributors-cli": "^4.10.1", - "broccoli-asset-rev": "^2.4.5", - "ember-cli": "~2.18.0", - "ember-cli-dependency-checker": "^2.0.0", - "ember-cli-eslint": "^4.2.1", + "broccoli-asset-rev": "^2.7.0", + "ember-cli": "~3.4.4", + "ember-cli-dependency-checker": "^3.0.0", + "ember-cli-eslint": "^4.2.3", "ember-cli-github-pages": "0.1.2", - "ember-cli-htmlbars-inline-precompile": "^1.0.0", - "ember-cli-inject-live-reload": "^1.4.1", - "ember-cli-qunit": "^4.1.1", - "ember-cli-shims": "^1.2.0", - "ember-cli-sri": "^2.1.0", - "ember-cli-uglify": "^2.0.0", + "ember-cli-htmlbars-inline-precompile": "^1.0.3", + "ember-cli-inject-live-reload": "^1.8.2", + "ember-cli-qunit": "^4.3.2", + "ember-cli-sri": "^2.1.1", + "ember-cli-template-lint": "^1.0.0-beta.1", + "ember-cli-uglify": "^2.1.0", "ember-composable-helpers": "^2.0.3", - "ember-disable-prototype-extensions": "^1.1.2", + "ember-disable-prototype-extensions": "^1.1.3", "ember-export-application-global": "^2.0.0", - "ember-freestyle": "^0.8.0", - "ember-load-initializers": "^1.0.0", + "ember-freestyle": "0.11.9", + "ember-load-initializers": "^1.1.0", "ember-maybe-import-regenerator": "0.1.6", "ember-native-dom-event-dispatcher": "0.6.4", "ember-native-dom-helpers": "0.5.10", "ember-qunit-nice-errors": "1.2.0", - "ember-resolver": "^4.0.0", - "ember-source": "~2.18.0", - "eslint-plugin-ember": "^5.0.0", - "eslint-plugin-node": "^5.2.1", + "ember-resolver": "^5.0.1", + "ember-source": "~3.4.0", + "ember-source-channel-url": "^1.1.0", + "ember-try": "^1.0.0", + "eslint-plugin-ember": "^5.2.0", + "eslint-plugin-node": "^7.0.1", "husky": "^0.14.3", "lint-staged": "^7.0.0", - "loader.js": "^4.2.3", - "prettier": "~1.18.2" + "loader.js": "^4.7.0", + "prettier": "~1.18.2", + "qunit-dom": "^0.7.1" }, "engines": { - "node": "^4.5 || 6.* || >= 7.*" + "node": "6.* || 8.* || >= 10.*" }, "ember-addon": { "configPath": "tests/dummy/config", diff --git a/testem.js b/testem.js index 219ca13..fd17fa9 100644 --- a/testem.js +++ b/testem.js @@ -5,8 +5,17 @@ module.exports = { launch_in_dev: ['Chrome'], browser_args: { Chrome: { - mode: 'ci', - args: ['--disable-gpu', '--headless', '--remote-debugging-port=0', '--window-size=1440,900'], - }, - }, + ci: [ + // --no-sandbox is needed when running Chrome inside a container + process.env.CI ? '--no-sandbox' : null, + '--headless', + '--disable-gpu', + '--disable-dev-shm-usage', + '--disable-software-rasterizer', + '--mute-audio', + '--remote-debugging-port=0', + '--window-size=1440,900' + ].filter(Boolean) + } + } }; diff --git a/tests/acceptance/demo-test.js b/tests/acceptance/demo-test.js index 11bba23..b7a0867 100644 --- a/tests/acceptance/demo-test.js +++ b/tests/acceptance/demo-test.js @@ -1,12 +1,14 @@ -import { click, visit } from 'ember-native-dom-helpers'; -import { test } from 'qunit'; -import moduleForAcceptance from '../../tests/helpers/module-for-acceptance'; +import { click, visit } from '@ember/test-helpers'; +import { module, test } from 'qunit'; +import { setupApplicationTest } from 'ember-qunit'; -moduleForAcceptance('Acceptance | demo'); +module('Acceptance | demo', function(hooks) { + setupApplicationTest(hooks); -test('visiting /', async function(assert) { - await visit('/'); + test('visiting /', async function(assert) { + await visit('/'); - await click('.toggle-demo-visibility'); - assert.ok(true); + await click('.toggle-demo-visibility'); + assert.ok(true); + }); }); diff --git a/tests/dummy/app/templates/application.hbs b/tests/dummy/app/templates/application.hbs index c78df06..ad7768a 100644 --- a/tests/dummy/app/templates/application.hbs +++ b/tests/dummy/app/templates/application.hbs @@ -6,7 +6,7 @@ {{#if isDemoVisible}} {{#freestyle-guide title="MDC-Ember Demos"}} - {{#freestyle-section name="Repo info" as |section|}} + {{#freestyle-section name="Repo info" as |fsection|}}

Travis branch @@ -31,7 +31,7 @@

{{/freestyle-section}} - {{#freestyle-section name="Buttons" as |section|}} + {{#freestyle-section name="Buttons" as |fsection|}} {{#freestyle-usage "flat" title="Flat Buttons"}} {{#mdc-button}}Standard Button{{/mdc-button}} {{#mdc-button disabled=true onclick=(action "alert" "Should not see this.")}}Disabled Button{{/mdc-button}} @@ -54,7 +54,7 @@ {{#mdc-button unelevated=true dense=true}}Unelevated Dense Button{{/mdc-button}} {{/freestyle-usage}} {{/freestyle-section}} - {{#freestyle-section name="Floating Action Buttons" as |section|}} + {{#freestyle-section name="Floating Action Buttons" as |fsection|}} {{#freestyle-usage "fab-bind" title="bind actions"}} {{#mdc-fab onclick=(action "alert" "Stop clicked")}} @@ -77,7 +77,7 @@ {{/mdc-fab}} {{/freestyle-usage}} {{/freestyle-section}} - {{#freestyle-section name="Cards" as |section|}} + {{#freestyle-section name="Cards" as |fsection|}} {{#freestyle-usage "card"}} {{#mdc-card as |card|}} @@ -107,7 +107,7 @@ {{/mdc-card}} {{/freestyle-usage}} {{/freestyle-section}} - {{#freestyle-section name="Checkboxes" as |section|}} + {{#freestyle-section name="Checkboxes" as |fsection|}} {{#freestyle-usage "cbx-attributes" title="Attributes"}}