linstrom/frontend-old-ember/app/components/auth/login.ts
mStar 88398334fe
JS frontend stuff
Move old ember frontend to properly named folder
Add vue based new frontend
2025-07-07 21:48:39 +02:00

24 lines
679 B
TypeScript

import { action } from '@ember/object';
import Component from '@glimmer/component';
import { tracked } from '@glimmer/tracking';
export interface AuthLoginSignature {
// The arguments accepted by the component
Args: {};
// Any blocks yielded by the component
Blocks: {
default: [];
};
// The element to which `...attributes` is applied in the component template
Element: null;
}
export default class AuthLogin extends Component<AuthLoginSignature> {
@tracked username = '';
@action onLoginStart() {
console.log('Starting login for username ' + this.username);
// Check if username is approved for login
// If it is, continue with login
}
}