diff --git a/ui/package.json b/ui/package.json index 5207740..220cbe1 100644 --- a/ui/package.json +++ b/ui/package.json @@ -10,13 +10,10 @@ ".": "./dist/index.js", "./dist/*": "./dist/*" }, - "files": [ - "dist", - "src" - ], + "files": ["dist", "src"], "scripts": { "start": "vite --clearScreen false --port $UI_PORT", - "build": "npm run lint && tsc", + "build": "pnpm lint && tsc", "lint": "eslint --ext .ts,.html src --ignore-path .gitignore", "analyze": "cem analyze --litelement --exclude dist", "format": "eslint --ext .ts,.html src --fix --ignore-path .gitignore", @@ -62,4 +59,4 @@ }, "customElements": "custom-elements.json", "type": "module" -} \ No newline at end of file +} diff --git a/ui/src/elements/show-avatar-image.ts b/ui/src/elements/show-avatar-image.ts index b367e0c..df298cd 100644 --- a/ui/src/elements/show-avatar-image.ts +++ b/ui/src/elements/show-avatar-image.ts @@ -36,7 +36,7 @@ export class ShowAvatarImage extends LitElement { client!: FileStorageClient; @property() - initials: string = ""; + initials = ""; /** * @internal diff --git a/ui/src/elements/upload-avatar.ts b/ui/src/elements/upload-avatar.ts index 9ddb34b..44c439a 100644 --- a/ui/src/elements/upload-avatar.ts +++ b/ui/src/elements/upload-avatar.ts @@ -20,10 +20,10 @@ import "./show-avatar-image.js"; @customElement("upload-avatar") export class UploadAvatar extends LitElement implements FormField { @property({ attribute: "name" }) - name: string = "avatar"; + name = "avatar"; @property() - required: boolean = false; + required = false; @property() shape: "circle" | "square" | "rounded" = "circle"; @@ -32,7 +32,7 @@ export class UploadAvatar extends LitElement implements FormField { value: EntryHash | undefined; @property() - disabled: boolean = false; + disabled = false; @property() defaultValue: EntryHash | undefined;