JS frontend stuff
Move old ember frontend to properly named folder Add vue based new frontend
This commit is contained in:
parent
8947d97825
commit
88398334fe
254 changed files with 837 additions and 0 deletions
|
@ -1,27 +0,0 @@
|
|||
import { action } from '@ember/object';
|
||||
import { map } from '@ember/object/computed';
|
||||
import Component from '@glimmer/component';
|
||||
import { tracked } from '@glimmer/tracking';
|
||||
|
||||
const re = /.+@\S+\.\S+/;
|
||||
|
||||
export interface UtilMailEntrySignature {
|
||||
// The arguments accepted by the component
|
||||
Args: {
|
||||
data: { mail: string; valid: boolean };
|
||||
};
|
||||
// Any blocks yielded by the component
|
||||
Blocks: {
|
||||
default: [];
|
||||
};
|
||||
// The element to which `...attributes` is applied in the component template
|
||||
Element: null;
|
||||
}
|
||||
|
||||
export default class UtilMailEntry extends Component<UtilMailEntrySignature> {
|
||||
@tracked mailOk = this.args.data.valid;
|
||||
@action checkMail() {
|
||||
this.args.data.valid = re.test(this.args.data.mail);
|
||||
this.mailOk = this.args.data.valid;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue