From abf9d0472aab196bd9407bbae2fdac89b71acce0 Mon Sep 17 00:00:00 2001 From: "Felix T.J. Dietrich" Date: Tue, 6 Aug 2024 19:15:16 +0200 Subject: [PATCH] run lint and prettier again --- webapp/src/app/ui/input/input.component.html | 14 +------ webapp/src/app/ui/input/input.component.ts | 16 ++++---- webapp/src/app/ui/input/input.stories.ts | 41 +++++++++----------- webapp/src/app/ui/label/label.component.html | 7 +--- webapp/src/app/ui/label/label.component.ts | 9 +---- webapp/src/app/ui/label/label.stories.ts | 10 ++--- 6 files changed, 35 insertions(+), 62 deletions(-) diff --git a/webapp/src/app/ui/input/input.component.html b/webapp/src/app/ui/input/input.component.html index 8694176e..6b64b478 100644 --- a/webapp/src/app/ui/input/input.component.html +++ b/webapp/src/app/ui/input/input.component.html @@ -1,13 +1 @@ - - - - - + diff --git a/webapp/src/app/ui/input/input.component.ts b/webapp/src/app/ui/input/input.component.ts index 57683265..bd46e268 100644 --- a/webapp/src/app/ui/input/input.component.ts +++ b/webapp/src/app/ui/input/input.component.ts @@ -11,13 +11,13 @@ const [inputVariants, args, argTypes] = cva( size: { default: 'h-10 px-4 py-2', sm: 'h-9 px-2 py-1', - lg: 'h-11 px-4 py-3', - }, + lg: 'h-11 px-4 py-3' + } }, defaultVariants: { - size: 'default', - }, - }, + size: 'default' + } + } ); export { args, argTypes }; @@ -27,7 +27,7 @@ interface InputVariants extends VariantProps {} @Component({ selector: 'app-input', standalone: true, - templateUrl: './input.component.html', + templateUrl: './input.component.html' }) export class AppInputComponent { class = input(''); @@ -45,7 +45,5 @@ export class AppInputComponent { this.valueChange.emit(inputValue); } - computedClass = computed(() => - cn(inputVariants({ size: this.size() }), this.class()), - ); + computedClass = computed(() => cn(inputVariants({ size: this.size() }), this.class())); } diff --git a/webapp/src/app/ui/input/input.stories.ts b/webapp/src/app/ui/input/input.stories.ts index 8beb17ce..3ce17104 100644 --- a/webapp/src/app/ui/input/input.stories.ts +++ b/webapp/src/app/ui/input/input.stories.ts @@ -1,9 +1,4 @@ -import { - argsToTemplate, - moduleMetadata, - type Meta, - type StoryObj, -} from '@storybook/angular'; +import { argsToTemplate, moduleMetadata, type Meta, type StoryObj } from '@storybook/angular'; import { AppInputComponent, args, argTypes } from './input.component'; import { action } from '@storybook/addon-actions'; import { AppButtonComponent } from '@app/ui/button/button/button.component'; @@ -17,22 +12,22 @@ const meta: Meta = { ...args, value: '', disabled: false, - size: 'default', + size: 'default' }, argTypes: { ...argTypes, disabled: { - control: 'boolean', + control: 'boolean' }, onInput: { - action: 'onInput', - }, + action: 'onInput' + } }, decorators: [ moduleMetadata({ - imports: [AppButtonComponent, AppLabelComponent], - }), - ], + imports: [AppButtonComponent, AppLabelComponent] + }) + ] }; export default meta; @@ -41,18 +36,18 @@ type Story = StoryObj; export const Default: Story = { render: (args) => ({ props: args, - template: ``, - }), + template: `` + }) }; export const Disabled: Story = { args: { - disabled: true, + disabled: true }, render: (args) => ({ props: args, - template: ``, - }), + template: `` + }) }; export const WithLabel: Story = { @@ -63,8 +58,8 @@ export const WithLabel: Story = { Label - `, - }), + ` + }) }; export const WithButton: Story = { @@ -74,13 +69,13 @@ export const WithButton: Story = { userInput: '', onButtonClick(value: string) { action('Button Clicked')(`Input Value: ${value}`); - }, + } }, template: `
Submit
- `, - }), + ` + }) }; diff --git a/webapp/src/app/ui/label/label.component.html b/webapp/src/app/ui/label/label.component.html index 3eed1b2c..72d84052 100644 --- a/webapp/src/app/ui/label/label.component.html +++ b/webapp/src/app/ui/label/label.component.html @@ -1,6 +1,3 @@ -