2024-10-25 14:54:48 +00:00
|
|
|
import Component from '@glimmer/component';
|
|
|
|
import { tracked } from '@glimmer/tracking';
|
2024-10-24 14:15:08 +00:00
|
|
|
|
|
|
|
export interface AuthRegistrationFormSignature {
|
|
|
|
// The arguments accepted by the component
|
|
|
|
Args: {
|
2024-10-25 14:54:48 +00:00
|
|
|
username: string;
|
|
|
|
};
|
2024-10-24 14:15:08 +00:00
|
|
|
// Any blocks yielded by the component
|
|
|
|
Blocks: {
|
2024-10-25 14:54:48 +00:00
|
|
|
default: [];
|
|
|
|
};
|
2024-10-24 14:15:08 +00:00
|
|
|
// The element to which `...attributes` is applied in the component template
|
2024-10-25 14:54:48 +00:00
|
|
|
Element: null;
|
2024-10-24 14:15:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export default class AuthRegistrationForm extends Component<AuthRegistrationFormSignature> {
|
2024-10-25 14:54:48 +00:00
|
|
|
@tracked displayname: string = this.args.username;
|
|
|
|
@tracked description: string = '';
|
|
|
|
@tracked gender: Array<{ value: string }> = [];
|
|
|
|
@tracked beingTypes: Array<{
|
|
|
|
name: string;
|
|
|
|
checked: boolean;
|
|
|
|
description: string;
|
|
|
|
}> = [
|
|
|
|
{
|
|
|
|
name: 'Human',
|
|
|
|
description: 'Human',
|
|
|
|
checked: true,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Cat',
|
|
|
|
description: 'Cat',
|
|
|
|
checked: false,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Fox',
|
|
|
|
description: 'Fox',
|
|
|
|
checked: false,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Dog',
|
|
|
|
description: 'Dog',
|
|
|
|
checked: false,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Robot',
|
|
|
|
description: 'Robot',
|
|
|
|
checked: false,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Doll',
|
|
|
|
description: 'Doll',
|
|
|
|
checked: false,
|
|
|
|
},
|
|
|
|
];
|
|
|
|
@tracked defaultpostmode: string = 'public';
|
|
|
|
@tracked followapproval: boolean = false;
|
|
|
|
// Actual custom properties stored in here
|
|
|
|
@tracked customProperties: Array<{ key: string; value: string }> = [];
|
|
|
|
@tracked indexable: boolean = true;
|
|
|
|
|
|
|
|
genderAddedHandler(newIndex: number) {
|
|
|
|
console.log('gender added');
|
|
|
|
}
|
|
|
|
genderRemovedHandler(removedIndex: number) {
|
|
|
|
console.log('gender removed');
|
|
|
|
}
|
2024-10-24 14:15:08 +00:00
|
|
|
}
|