Clear code
This commit is contained in:
parent
3bf4a88942
commit
43fc701c5d
6 changed files with 2 additions and 62 deletions
|
|
@ -1,6 +1,5 @@
|
|||
import Component from '@glimmer/component';
|
||||
import { guidFor } from '@ember/object/internals';
|
||||
// import { action } from '@ember/object';
|
||||
|
||||
export default class FormListboxComponent extends Component {
|
||||
get guid() {
|
||||
|
|
@ -10,11 +9,4 @@ export default class FormListboxComponent extends Component {
|
|||
get id() {
|
||||
return this.args.id ?? this.guid;
|
||||
}
|
||||
|
||||
// @action
|
||||
// onChange(event) {
|
||||
// if (this.args.onChange) {
|
||||
// this.args.onChange(event.target.value, event);
|
||||
// }
|
||||
// }
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,11 +13,4 @@ export default class FormTableSettingsComponent extends Component {
|
|||
get id() {
|
||||
return this.args.id ?? this.guid;
|
||||
}
|
||||
|
||||
// @action
|
||||
// onChange(event) {
|
||||
// if (this.args.onChange) {
|
||||
// this.args.onChange(event.target.value, event);
|
||||
// }
|
||||
// }
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,21 +1,3 @@
|
|||
import Component from '@glimmer/component';
|
||||
// import { tracked } from '@glimmer/tracking';
|
||||
|
||||
export default class SimpleTableComponent extends Component {
|
||||
// TODO: Clear this code
|
||||
// @tracked columns;
|
||||
// constructor() {
|
||||
// super(...arguments);
|
||||
// this.columns = [];
|
||||
// }
|
||||
// registerColumn(column) {
|
||||
// if (!this.columns.includes(column)) {
|
||||
// this.columns = this.columns.push(column);
|
||||
// }
|
||||
// }
|
||||
// unregisterColumn(column) {
|
||||
// if (this.columns.includes(column)) {
|
||||
// this.columns = this.columns.filter((c) => c !== column);
|
||||
// }
|
||||
// }
|
||||
}
|
||||
export default class SimpleTableComponent extends Component {}
|
||||
|
|
|
|||
|
|
@ -1,20 +1,7 @@
|
|||
import Component from '@glimmer/component';
|
||||
import { action } from '@ember/object';
|
||||
// import { registerDestructor } from '@ember/destroyable';
|
||||
|
||||
export default class SimpleTableColumnComponent extends Component {
|
||||
// constructor() {
|
||||
// super(...arguments);
|
||||
|
||||
// if (this.isHead) {
|
||||
// this.args.parent?.registerColumn(this);
|
||||
|
||||
// registerDestructor(this, () => {
|
||||
// this.args.parent?.unregisterColumn(this);
|
||||
// });
|
||||
// }
|
||||
// }
|
||||
|
||||
get isHead() {
|
||||
return this.args.place === 'head';
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,14 +2,9 @@ import Route from '@ember/routing/route';
|
|||
import { inject as service } from '@ember/service';
|
||||
|
||||
export default class AdminRoute extends Route {
|
||||
// @service meilisearch;
|
||||
@service session;
|
||||
|
||||
beforeModel(transition) {
|
||||
this.session.requireAuthentication(transition, 'login');
|
||||
}
|
||||
|
||||
// async model() {
|
||||
// return this.meilisearch.getIndexes();
|
||||
// }
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,12 +1,3 @@
|
|||
import Route from '@ember/routing/route';
|
||||
// import { hash } from 'rsvp';
|
||||
|
||||
export default class AdminKeysKeyEditRoute extends Route {
|
||||
// async model() {
|
||||
// const key = this.modelFor('admin.admin.keys.key');
|
||||
// return hash({
|
||||
// key,
|
||||
// // document:
|
||||
// });
|
||||
// }
|
||||
}
|
||||
export default class AdminKeysKeyEditRoute extends Route {}
|
||||
|
|
|
|||
Loading…
Reference in a new issue