Remove lint warnings
This commit is contained in:
parent
94018c1463
commit
88e185b7fd
7 changed files with 29 additions and 41 deletions
|
|
@ -25,17 +25,16 @@ export const styles = {
|
|||
};
|
||||
|
||||
export default class ButtonComponent extends Component {
|
||||
static template = hbs`
|
||||
<button
|
||||
static template = hbs(
|
||||
`<button
|
||||
disabled={{this.disabled}}
|
||||
type={{this.type}}
|
||||
class="
|
||||
inline-flex items-center justify-center min-w-min whitespace-nowrap
|
||||
class="inline-flex items-center justify-center min-w-min whitespace-nowrap
|
||||
{{get sizes this.size}}
|
||||
{{get styles this.style}}
|
||||
"
|
||||
"
|
||||
...attributes
|
||||
{{on 'click' this.handleClick}}
|
||||
{{on "click" this.handleClick}}
|
||||
>
|
||||
{{#if this.icon}}
|
||||
<this.icon
|
||||
|
|
@ -51,7 +50,12 @@ export default class ButtonComponent extends Component {
|
|||
{{this.text}}
|
||||
{{/if}}
|
||||
</button>
|
||||
`;
|
||||
`,
|
||||
{
|
||||
strictMode: true,
|
||||
scope: () => ({ get, on, eq, sizes, styles, iconSizes }),
|
||||
}
|
||||
);
|
||||
|
||||
@tracked _state = 'default';
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +0,0 @@
|
|||
import Component from '@glimmer/component';
|
||||
|
||||
export default class ProgressBarComponent extends Component {}
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
import Component from '@glimmer/component';
|
||||
|
||||
export default class SimpleTableComponent extends Component {}
|
||||
|
|
@ -1,5 +1,4 @@
|
|||
import Controller from '@ember/controller';
|
||||
import { action } from '@ember/object';
|
||||
import { tracked } from '@glimmer/tracking';
|
||||
import { taskStatuses, taskTypes } from 'meiliadmin/models/task';
|
||||
import { inject as service } from '@ember/service';
|
||||
|
|
|
|||
|
|
@ -24,7 +24,13 @@ export default class ToasterService extends Service {
|
|||
this.container = this.container.filter((item) => item !== wrapper);
|
||||
};
|
||||
|
||||
const wrapper = hbs`<SuccessToast @header={{header}} @text={{text}} @onClose={{onClose}} />`;
|
||||
const wrapper = hbs(
|
||||
`<SuccessToast @header={{header}} @text={{text}} @onClose={{onClose}} />`,
|
||||
{
|
||||
strictMode: true,
|
||||
scope: () => ({ SuccessToast, header, text, onClose }),
|
||||
}
|
||||
);
|
||||
|
||||
this.container = this.container.concat([wrapper]);
|
||||
}
|
||||
|
|
@ -35,7 +41,13 @@ export default class ToasterService extends Service {
|
|||
this.container = this.container.filter((item) => item !== wrapper);
|
||||
};
|
||||
|
||||
const wrapper = hbs`<DangerToast @header={{header}} @text={{text}} @onClose={{onClose}} />`;
|
||||
const wrapper = hbs(
|
||||
`<DangerToast @header={{header}} @text={{text}} @onClose={{onClose}} />`,
|
||||
{
|
||||
strictMode: true,
|
||||
scope: () => ({ DangerToast, header, text, onClose }),
|
||||
}
|
||||
);
|
||||
|
||||
this.container = this.container.concat([wrapper]);
|
||||
}
|
||||
|
|
@ -46,7 +58,10 @@ export default class ToasterService extends Service {
|
|||
this.container = this.container.filter((item) => item !== wrapper);
|
||||
};
|
||||
|
||||
const wrapper = hbs`<TaskToast @task={{task}} @onClose={{onClose}} />`;
|
||||
const wrapper = hbs(`<TaskToast @task={{task}} @onClose={{onClose}} />`, {
|
||||
strictMode: true,
|
||||
scope: () => ({ TaskToast, task, onClose }),
|
||||
});
|
||||
|
||||
this.container = this.container.concat([wrapper]);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,14 +0,0 @@
|
|||
import { module, test } from 'qunit';
|
||||
import { setupRenderingTest } from 'meiliadmin/tests/helpers';
|
||||
import { render } from '@ember/test-helpers';
|
||||
import { hbs } from 'ember-cli-htmlbars';
|
||||
|
||||
module('Integration | Component | index-setting', function (hooks) {
|
||||
setupRenderingTest(hooks);
|
||||
|
||||
// test('it renders', async function (assert) {
|
||||
// await render(hbs`<IndexSetting />`);
|
||||
|
||||
// assert.dom(this.element).hasText('');
|
||||
// });
|
||||
});
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
import query from 'meiliadmin/utils/query';
|
||||
import { module, test } from 'qunit';
|
||||
|
||||
module('Unit | Utility | query', function () {
|
||||
// TODO: Replace this with your real tests.
|
||||
// test('it works', function (assert) {
|
||||
// let result = query();
|
||||
// assert.ok(result);
|
||||
// });
|
||||
});
|
||||
Loading…
Reference in a new issue