Skip to content

Commit

Permalink
fix(nucleus): removed classic decorator dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
Shibu Lijack authored and Shibu Lijack committed Jan 11, 2020
1 parent 42edb84 commit a0239a8
Show file tree
Hide file tree
Showing 20 changed files with 1 addition and 40 deletions.
2 changes: 0 additions & 2 deletions packages/banner/addon/components/nucleus-banner.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import classic from 'ember-classic-decorator';
import { layout as templateLayout } from '@ember-decorators/component';
import defaultProp from '@freshworks/core/utils/default-decorator';
import { observes } from '@ember-decorators/object';
Expand All @@ -17,7 +16,6 @@ import { action, computed } from '@ember/object';
@extends Ember.Component
@public
*/
@classic
@templateLayout(layout)
class NucleusBanner extends Component {
/**
Expand Down
2 changes: 0 additions & 2 deletions packages/banner/addon/components/nucleus-banner/item.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import classic from 'ember-classic-decorator';
import { tagName, layout as templateLayout } from '@ember-decorators/component';
import { reads } from '@ember/object/computed';
import Component from '@ember/component';
Expand All @@ -12,7 +11,6 @@ import { ICON_MAP } from '../../constants/nucleus-banner';
@extends Ember.Component
@public
*/
@classic
@templateLayout(layout)
@tagName('')
class Item extends Component {
Expand Down
1 change: 0 additions & 1 deletion packages/banner/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
"@freshworks/button": "^0.3.0",
"@freshworks/core": "^0.1.5",
"@freshworks/icon": "^0.3.0",
"ember-classic-decorator": "^1.0.5",
"ember-cli-babel": "^7.11.1",
"ember-cli-htmlbars": "^4.0.0",
"ember-cli-sass": "^10.0.0",
Expand Down
2 changes: 0 additions & 2 deletions packages/button/addon/components/nucleus-button.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import classic from 'ember-classic-decorator';
import {
classNames,
attributeBindings,
Expand All @@ -25,7 +24,6 @@ import { BUTTON_STATE } from "../constants/nucleus-button";
@extends Ember.Component
@public
*/
@classic
@templateLayout(layout)
@tagName('button')
@classNames('nucleus-button')
Expand Down
1 change: 0 additions & 1 deletion packages/button/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
"dependencies": {
"@freshworks/core": "^0.1.5",
"@freshworks/icon": "^0.3.0",
"ember-classic-decorator": "^1.0.5",
"ember-cli-babel": "^7.11.1",
"ember-cli-htmlbars": "^4.0.0",
"ember-cli-sass": "^10.0.0",
Expand Down
3 changes: 1 addition & 2 deletions packages/icon/addon/components/nucleus-icon.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import classic from 'ember-classic-decorator';
import {
tagName,
layout as templateLayout,
Expand All @@ -17,7 +16,7 @@ import layout from "../templates/components/nucleus-icon";
@extends Ember.Component
@public
*/
@classic

@templateLayout(layout)
@tagName('')
class NucleusIcon extends Component {
Expand Down
1 change: 0 additions & 1 deletion packages/icon/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
},
"dependencies": {
"@freshworks/core": "^0.1.1",
"ember-classic-decorator": "^1.0.5",
"ember-cli-babel": "^7.11.1",
"ember-cli-htmlbars": "^4.0.0",
"ember-cli-sass": "^10.0.0",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import classic from 'ember-classic-decorator';
import defaultProp from '@freshworks/core/utils/default-decorator';
import { classNames, attributeBindings, classNameBindings, layout as templateLayout } from '@ember-decorators/component';
import Component from '@ember/component';
Expand All @@ -17,7 +16,6 @@ import { ICON_MAP } from '../constants/nucleus-inline-banner';
@extends Ember.Component
@public
*/
@classic
@templateLayout(layout)
@classNames('nucleus-inline-banner')
@classNameBindings('_typeClass', '_isOpen:show:hide')
Expand Down
1 change: 0 additions & 1 deletion packages/inline-banner/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
"@freshworks/button": "^0.3.0",
"@freshworks/core": "^0.1.5",
"@freshworks/icon": "^0.3.0",
"ember-classic-decorator": "^1.0.5",
"ember-cli-babel": "^7.11.1",
"ember-cli-htmlbars": "^4.0.0",
"ember-cli-sass": "^10.0.0",
Expand Down
2 changes: 0 additions & 2 deletions packages/modal/addon/components/nucleus-confirm-dialog.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import classic from 'ember-classic-decorator';
import { layout as templateLayout } from '@ember-decorators/component';
import defaultProp from '@freshworks/core/utils/default-decorator';
import Modal from './nucleus-modal';
Expand All @@ -17,7 +16,6 @@ import layout from '../templates/components/nucleus-confirm-dialog';
@extends Ember.Component
@public
*/
@classic
@templateLayout(layout)
class NucleusConfirmDialog extends Modal {
/**
Expand Down
2 changes: 0 additions & 2 deletions packages/modal/addon/components/nucleus-modal.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import classic from 'ember-classic-decorator';
import { layout as templateLayout } from '@ember-decorators/component';
import { observes } from '@ember-decorators/object';
import defaultProp from '@freshworks/core/utils/default-decorator';
Expand Down Expand Up @@ -26,7 +25,6 @@ import layout from "../templates/components/nucleus-modal";
@extends Ember.Component
@public
*/
@classic
@templateLayout(layout)
class Modal extends Component {
/**
Expand Down
2 changes: 0 additions & 2 deletions packages/modal/addon/components/nucleus-modal/body.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import classic from 'ember-classic-decorator';
import { classNames, layout as templateLayout } from '@ember-decorators/component';
import Component from '@ember/component';
import layout from '../../templates/components/nucleus-modal/body';

@classic
@templateLayout(layout)
@classNames('nucleus-modal__body')
class Body extends Component {}
Expand Down
2 changes: 0 additions & 2 deletions packages/modal/addon/components/nucleus-modal/dialog.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import classic from 'ember-classic-decorator';
import { classNames, attributeBindings, classNameBindings, layout as templateLayout } from '@ember-decorators/component';
import defaultProp from '@freshworks/core/utils/default-decorator';
import { readOnly } from '@ember/object/computed';
Expand All @@ -15,7 +14,6 @@ import scroll from "../../mixins/scroll";
@extends Ember.Component
@public
*/
@classic
@templateLayout(layout)
@classNames('nucleus-modal')
@classNameBindings('positionClass')
Expand Down
2 changes: 0 additions & 2 deletions packages/modal/addon/components/nucleus-modal/footer.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import classic from 'ember-classic-decorator';
import Component from '@ember/component';
import defaultProp from '@freshworks/core/utils/default-decorator';
import { classNames, tagName, classNameBindings, layout as templateLayout } from '@ember-decorators/component';
Expand All @@ -12,7 +11,6 @@ import layout from '../../templates/components/nucleus-modal/footer';
@extends Ember.Component
@public
*/
@classic
@templateLayout(layout)
@tagName('form')
@classNames('nucleus-modal__footer')
Expand Down
2 changes: 0 additions & 2 deletions packages/modal/addon/components/nucleus-modal/header.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import classic from 'ember-classic-decorator';
import { classNames, layout as templateLayout } from '@ember-decorators/component';
import defaultProp from '@freshworks/core/utils/default-decorator';
import Component from '@ember/component';
Expand All @@ -11,7 +10,6 @@ import layout from '../../templates/components/nucleus-modal/header';
@extends Ember.Component
@public
*/
@classic
@templateLayout(layout)
@classNames('nucleus-modal__header')
class Header extends Component {
Expand Down
2 changes: 0 additions & 2 deletions packages/modal/addon/components/nucleus-slider.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import classic from 'ember-classic-decorator';
import { layout as templateLayout } from '@ember-decorators/component';
import defaultProp from '@freshworks/core/utils/default-decorator';
import Modal from './nucleus-modal';
Expand All @@ -17,7 +16,6 @@ import layout from '../templates/components/nucleus-slider';
@extends Ember.Component
@public
*/
@classic
@templateLayout(layout)
class NucleusSlider extends Modal {
/**
Expand Down
1 change: 0 additions & 1 deletion packages/modal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
"@freshworks/button": "^0.3.0",
"@freshworks/core": "^0.1.5",
"@freshworks/icon": "^0.3.0",
"ember-classic-decorator": "^1.0.5",
"ember-cli-babel": "^7.11.1",
"ember-cli-htmlbars": "^4.0.0",
"ember-cli-sass": "^10.0.0",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import classic from 'ember-classic-decorator';
import defaultProp from '@freshworks/core/utils/default-decorator';
import { layout as templateLayout } from '@ember-decorators/component';
import { inject } from '@ember/service';
Expand All @@ -15,7 +14,6 @@ import { ICON_MAP } from '../constants/nucleus-toast-message';
@extends Ember.Component
@public
*/
@classic
@templateLayout(layout)
class NucleusToastMessage extends Component {
/**
Expand Down
1 change: 0 additions & 1 deletion packages/toast-message/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
"@freshworks/button": "^0.3.0",
"@freshworks/core": "^0.1.5",
"@freshworks/icon": "^0.3.0",
"ember-classic-decorator": "^1.0.5",
"ember-cli-babel": "^7.11.1",
"ember-cli-flash": "^1.7.2",
"ember-cli-htmlbars": "^4.0.0",
Expand Down
8 changes: 0 additions & 8 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6266,14 +6266,6 @@ ember-auto-import@^1.5.2:
walk-sync "^0.3.3"
webpack "~4.28"

ember-classic-decorator@^1.0.5:
version "1.0.5"
resolved "https://registry.yarnpkg.com/ember-classic-decorator/-/ember-classic-decorator-1.0.5.tgz#33f3851ed33c810b56dfb77e25a00160815eaa5a"
integrity sha512-jAZLP1zh7+oTlbvzSI4YTkSb8JS7of9sKQTLpObmah1MP+BCBu39HXKogCdibjWUJzBP2Xp03FQwjquQPuJ2Gw==
dependencies:
babel-plugin-filter-imports "^3.0.0"
ember-cli-babel "^7.11.1"

ember-cli-addon-docs-yuidoc@^0.2.1:
version "0.2.3"
resolved "https://registry.yarnpkg.com/ember-cli-addon-docs-yuidoc/-/ember-cli-addon-docs-yuidoc-0.2.3.tgz#13f7943c7ef1909d74ef9d33a719236117c17262"
Expand Down

0 comments on commit a0239a8

Please sign in to comment.