diff --git a/frontend-reactive/app/components/auth.ts b/frontend-reactive/app/components/auth.ts index 90ac277..65145c3 100644 --- a/frontend-reactive/app/components/auth.ts +++ b/frontend-reactive/app/components/auth.ts @@ -23,6 +23,7 @@ export interface PasskeySignature { export default class Auth extends Component { @tracked username: string = ''; @tracked error: string | undefined; + @tracked isLogin = true; @service declare auth: AuthService; @action async startLogin() { diff --git a/frontend-reactive/app/components/auth/login.hbs b/frontend-reactive/app/components/auth/login.hbs new file mode 100644 index 0000000..452cb2b --- /dev/null +++ b/frontend-reactive/app/components/auth/login.hbs @@ -0,0 +1,12 @@ +
+ + +
\ No newline at end of file diff --git a/frontend-reactive/app/components/auth/login.ts b/frontend-reactive/app/components/auth/login.ts new file mode 100644 index 0000000..f033473 --- /dev/null +++ b/frontend-reactive/app/components/auth/login.ts @@ -0,0 +1,24 @@ +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 { + @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 + } +} diff --git a/frontend-reactive/app/components/auth/registration-form.hbs b/frontend-reactive/app/components/auth/post-registration-form.hbs similarity index 67% rename from frontend-reactive/app/components/auth/registration-form.hbs rename to frontend-reactive/app/components/auth/post-registration-form.hbs index 4fe281f..465589d 100644 --- a/frontend-reactive/app/components/auth/registration-form.hbs +++ b/frontend-reactive/app/components/auth/post-registration-form.hbs @@ -1,6 +1,6 @@

username: {{this.args.username}}

-
+
-
+
-
- -
-
+ {{!--
--}} + {{!-- --}} + {{!--
--}} +

{{this.extracted}}

-
+
-
+
-