Skip to content

Commit

Permalink
Link
Browse files Browse the repository at this point in the history
  • Loading branch information
guillemcordoba committed Dec 2, 2024
1 parent f79679b commit c0b5dac
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
9 changes: 3 additions & 6 deletions ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -62,4 +59,4 @@
},
"customElements": "custom-elements.json",
"type": "module"
}
}
2 changes: 1 addition & 1 deletion ui/src/elements/show-avatar-image.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export class ShowAvatarImage extends LitElement {
client!: FileStorageClient;

@property()
initials: string = "";
initials = "";

/**
* @internal
Expand Down
6 changes: 3 additions & 3 deletions ui/src/elements/upload-avatar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand All @@ -32,7 +32,7 @@ export class UploadAvatar extends LitElement implements FormField {
value: EntryHash | undefined;

@property()
disabled: boolean = false;
disabled = false;

@property()
defaultValue: EntryHash | undefined;
Expand Down

0 comments on commit c0b5dac

Please sign in to comment.