ui: Rename extended Component variables, tweak some comments (#5021)
This commit is contained in:
parent
589396b629
commit
d083a13aa3
|
@ -1,11 +1,11 @@
|
||||||
import { get, set } from '@ember/object';
|
import { get, set } from '@ember/object';
|
||||||
import { inject as service } from '@ember/service';
|
import { inject as service } from '@ember/service';
|
||||||
import Component from 'consul-ui/components/dom-buffer';
|
import DomBufferComponent from 'consul-ui/components/dom-buffer';
|
||||||
import SlotsMixin from 'block-slots';
|
import SlotsMixin from 'block-slots';
|
||||||
import WithResizing from 'consul-ui/mixins/with-resizing';
|
import WithResizing from 'consul-ui/mixins/with-resizing';
|
||||||
|
|
||||||
import templatize from 'consul-ui/utils/templatize';
|
import templatize from 'consul-ui/utils/templatize';
|
||||||
export default Component.extend(SlotsMixin, WithResizing, {
|
export default DomBufferComponent.extend(SlotsMixin, WithResizing, {
|
||||||
dom: service('dom'),
|
dom: service('dom'),
|
||||||
checked: true,
|
checked: true,
|
||||||
height: null,
|
height: null,
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
import Component from 'consul-ui/components/dom-buffer-flush';
|
import DomBufferFlushComponent from 'consul-ui/components/dom-buffer-flush';
|
||||||
import { inject as service } from '@ember/service';
|
import { inject as service } from '@ember/service';
|
||||||
import { get } from '@ember/object';
|
import { get } from '@ember/object';
|
||||||
|
|
||||||
export default Component.extend({
|
export default DomBufferFlushComponent.extend({
|
||||||
dom: service('dom'),
|
dom: service('dom'),
|
||||||
actions: {
|
actions: {
|
||||||
change: function(e) {
|
change: function(e) {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import Component from 'ember-collection/components/ember-collection';
|
import CollectionComponent from 'ember-collection/components/ember-collection';
|
||||||
import needsRevalidate from 'ember-collection/utils/needs-revalidate';
|
import needsRevalidate from 'ember-collection/utils/needs-revalidate';
|
||||||
import identity from 'ember-collection/utils/identity';
|
import identity from 'ember-collection/utils/identity';
|
||||||
import Grid from 'ember-collection/layouts/grid';
|
import Grid from 'ember-collection/layouts/grid';
|
||||||
|
@ -108,7 +108,7 @@ const change = function(e) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
export default Component.extend(SlotsMixin, WithResizing, {
|
export default CollectionComponent.extend(SlotsMixin, WithResizing, {
|
||||||
tagName: 'table',
|
tagName: 'table',
|
||||||
classNames: ['dom-recycling'],
|
classNames: ['dom-recycling'],
|
||||||
attributeBindings: ['style'],
|
attributeBindings: ['style'],
|
||||||
|
|
|
@ -14,7 +14,7 @@ const defaultChangeset = function(data, validators) {
|
||||||
return changeset;
|
return changeset;
|
||||||
};
|
};
|
||||||
/**
|
/**
|
||||||
* Form builder/Form factory (WIP)
|
* Form builder/Form factory
|
||||||
* Deals with handling (generally change) events and updating data in response to the change
|
* Deals with handling (generally change) events and updating data in response to the change
|
||||||
* in a typical data down event up manner
|
* in a typical data down event up manner
|
||||||
* validations are included currently using ember-changeset-validations
|
* validations are included currently using ember-changeset-validations
|
||||||
|
|
|
@ -5,7 +5,7 @@ module.exports = function(defaults) {
|
||||||
const env = EmberApp.env();
|
const env = EmberApp.env();
|
||||||
const prodlike = ['production', 'staging'];
|
const prodlike = ['production', 'staging'];
|
||||||
const isProd = env === 'production';
|
const isProd = env === 'production';
|
||||||
// leave this in for now for when I start a proper staging env
|
// if we ever need a 'prodlike' staging environment with staging settings
|
||||||
// const isProdLike = prodlike.indexOf(env) > -1;
|
// const isProdLike = prodlike.indexOf(env) > -1;
|
||||||
const sourcemaps = !isProd;
|
const sourcemaps = !isProd;
|
||||||
let app = new EmberApp(
|
let app = new EmberApp(
|
||||||
|
|
Loading…
Reference in New Issue