diff --git a/frontend-reactive/app/components/account/full.hbs b/frontend-reactive/app/components/account/full.hbs new file mode 100644 index 0000000..fb5c4b1 --- /dev/null +++ b/frontend-reactive/app/components/account/full.hbs @@ -0,0 +1 @@ +{{yield}} \ No newline at end of file diff --git a/frontend-reactive/app/components/account/overview.hbs b/frontend-reactive/app/components/account/overview.hbs new file mode 100644 index 0000000..fb5c4b1 --- /dev/null +++ b/frontend-reactive/app/components/account/overview.hbs @@ -0,0 +1 @@ +{{yield}} \ No newline at end of file diff --git a/frontend-reactive/app/components/auth/post-registration-form.ts b/frontend-reactive/app/components/auth/post-registration-form.ts index ef98987..afcfa92 100644 --- a/frontend-reactive/app/components/auth/post-registration-form.ts +++ b/frontend-reactive/app/components/auth/post-registration-form.ts @@ -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 { - @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 = [] - @tracked indexable: boolean = true - @tracked mail = { mail: '', valid: false } - @tracked enableBlueskyIntegration = 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); } } diff --git a/frontend-reactive/app/components/util/mail-entry.hbs b/frontend-reactive/app/components/util/mail-entry.hbs index ca4f51a..f65f1e0 100644 --- a/frontend-reactive/app/components/util/mail-entry.hbs +++ b/frontend-reactive/app/components/util/mail-entry.hbs @@ -1,7 +1,7 @@
\ No newline at end of file diff --git a/frontend-reactive/app/styles/app.css b/frontend-reactive/app/styles/app.css index 9184054..6c4b147 100644 --- a/frontend-reactive/app/styles/app.css +++ b/frontend-reactive/app/styles/app.css @@ -3,7 +3,7 @@ /* Note: CSS is fucking stupid. It applies styles not in the order classes are set on an element, * but in the order they appear in the css files */ -/*@import url("debug.css");*/ +/* @import url("debug.css"); */ @import url("fonts.css"); @import url("colors.css"); @import url("util.css"); diff --git a/frontend-reactive/app/styles/auth/registerForm.css b/frontend-reactive/app/styles/auth/registerForm.css index 505b52b..018ccb7 100644 --- a/frontend-reactive/app/styles/auth/registerForm.css +++ b/frontend-reactive/app/styles/auth/registerForm.css @@ -29,8 +29,10 @@ .registration-form-mail-input { width: max-content; - /*display: flex;*/ - /*flex-grow: 1;*/ + + /* display: flex; */ + + /* flex-grow: 1; */ } .registration-form-description-wrapper { diff --git a/frontend-reactive/app/styles/util/mailEntry.css b/frontend-reactive/app/styles/util/mailEntry.css index ce01e49..8a858ee 100644 --- a/frontend-reactive/app/styles/util/mailEntry.css +++ b/frontend-reactive/app/styles/util/mailEntry.css @@ -11,24 +11,26 @@ .mail-input-ok { border: 1px solid green; - box-shadow: 0px 0px 5px green; + box-shadow: 0 0 5px green; } .mail-input-error { border: 1px solid red; - box-shadow: 0px 0px 5px red; + box-shadow: 0 0 5px red; } .mail-status { - /*margin: 0;*/ + /* margin: 0; */ margin-top: 0.75em; margin-left: 0.4em; } .mail-ok { color: green; - /*margin-top: -0.25lh;*/ - /*margin-bottom: -0.28lh;*/ + + /* margin-top: -0.25lh; */ + + /* margin-bottom: -0.28lh; */ font-size: 0.9lh; margin: 0; margin-left: 0.2em; diff --git a/frontend-reactive/tests/integration/components/account/full-test.ts b/frontend-reactive/tests/integration/components/account/full-test.ts new file mode 100644 index 0000000..f9ef7b9 --- /dev/null +++ b/frontend-reactive/tests/integration/components/account/full-test.ts @@ -0,0 +1,26 @@ +import { module, test } from 'qunit'; +import { setupRenderingTest } from 'frontend-reactive/tests/helpers'; +import { render } from '@ember/test-helpers'; +import { hbs } from 'ember-cli-htmlbars'; + +module('Integration | Component | account/full', function (hooks) { + setupRenderingTest(hooks); + + test('it renders', async function (assert) { + // Set any properties with this.set('myProperty', 'value'); + // Handle any actions with this.set('myAction', function(val) { ... }); + + await render(hbs``); + + assert.dom().hasText(''); + + // Template block usage: + await render(hbs` + + template block text + + `); + + assert.dom().hasText('template block text'); + }); +}); diff --git a/frontend-reactive/tests/integration/components/account/overview-test.ts b/frontend-reactive/tests/integration/components/account/overview-test.ts new file mode 100644 index 0000000..0539cfc --- /dev/null +++ b/frontend-reactive/tests/integration/components/account/overview-test.ts @@ -0,0 +1,26 @@ +import { module, test } from 'qunit'; +import { setupRenderingTest } from 'frontend-reactive/tests/helpers'; +import { render } from '@ember/test-helpers'; +import { hbs } from 'ember-cli-htmlbars'; + +module('Integration | Component | account/overview', function (hooks) { + setupRenderingTest(hooks); + + test('it renders', async function (assert) { + // Set any properties with this.set('myProperty', 'value'); + // Handle any actions with this.set('myAction', function(val) { ... }); + + await render(hbs``); + + assert.dom().hasText(''); + + // Template block usage: + await render(hbs` + + template block text + + `); + + assert.dom().hasText('template block text'); + }); +});