Started work on linstrom specific endpoints
Router plus a bunch of placeholder handlers Also a poll on fedi regarding streamed events (one vs many channels)
This commit is contained in:
parent
1fb924f59c
commit
4f4d05a335
11 changed files with 103 additions and 39 deletions
|
@ -18,6 +18,7 @@
|
|||
/>
|
||||
</div>
|
||||
<div class="registration-form-description-wrapper">
|
||||
{{! TODO: Split into entry form on the left and live preview on the right }}
|
||||
<label for="registration-description">
|
||||
Description
|
||||
</label>
|
||||
|
|
|
@ -1,29 +1,29 @@
|
|||
import { action } from '@ember/object';
|
||||
import Component from '@glimmer/component';
|
||||
import { tracked } from '@glimmer/tracking';
|
||||
import isValidMail from 'frontend-reactive/helpers/is-valid-mail';
|
||||
import { action } from '@ember/object'
|
||||
import Component from '@glimmer/component'
|
||||
import { tracked } from '@glimmer/tracking'
|
||||
import isValidMail from 'frontend-reactive/helpers/is-valid-mail'
|
||||
|
||||
export interface AuthPostRegistrationFormSignature {
|
||||
// The arguments accepted by the component
|
||||
Args: {
|
||||
username: string;
|
||||
};
|
||||
username: string
|
||||
}
|
||||
// Any blocks yielded by the component
|
||||
Blocks: {
|
||||
default: [];
|
||||
};
|
||||
default: []
|
||||
}
|
||||
// The element to which `...attributes` is applied in the component template
|
||||
Element: null;
|
||||
Element: null
|
||||
}
|
||||
|
||||
export default class AuthPostRegistrationForm extends Component<AuthPostRegistrationFormSignature> {
|
||||
@tracked displayname: string = this.args.username;
|
||||
@tracked description: string = '';
|
||||
@tracked gender: Array<{ value: string }> = [];
|
||||
@tracked displayname: string = this.args.username
|
||||
@tracked description: string = ''
|
||||
@tracked gender: Array<{ value: string }> = []
|
||||
@tracked beingTypes: Array<{
|
||||
name: string;
|
||||
checked: boolean;
|
||||
description: string;
|
||||
name: string
|
||||
checked: boolean
|
||||
description: string
|
||||
}> = [
|
||||
{
|
||||
name: 'Human',
|
||||
|
@ -55,22 +55,22 @@ export default class AuthPostRegistrationForm extends Component<AuthPostRegistra
|
|||
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;
|
||||
@tracked mail = { mail: '', valid: false };
|
||||
]
|
||||
@tracked defaultpostmode: string = 'Public'
|
||||
@tracked followapproval: boolean = false
|
||||
@tracked customProperties: Array<{ key: string; value: string }> = []
|
||||
@tracked indexable: boolean = true
|
||||
@tracked mail = { mail: '', valid: false }
|
||||
@tracked enableBlueskyIntegration = false
|
||||
|
||||
genderAddedHandler(newIndex: number) {
|
||||
console.log('gender added');
|
||||
console.log('gender added')
|
||||
}
|
||||
genderRemovedHandler(removedIndex: number) {
|
||||
console.log('gender removed');
|
||||
console.log('gender removed')
|
||||
}
|
||||
|
||||
@action test() {
|
||||
console.log(this.mail);
|
||||
console.log(this.mail)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue