diff --git a/src/config.ts b/src/config.ts index b8b9f4fc..3b1593bc 100644 --- a/src/config.ts +++ b/src/config.ts @@ -16,7 +16,7 @@ const config = { ORIGIN_API: RIVET_ORIGIN_API as string, ASSETS_URL: ENV_ASSETS_URL as string, - MEDIA_URL: RIVET_ORIGIN_API + "/media", + MEDIA_URL: RIVET_ORIGIN_API + '/media', API_AUTH_URL: modifyBaseUrl(RIVET_ORIGIN_API, 'auth.', '/v1'), API_PORTAL_URL: modifyBaseUrl(RIVET_ORIGIN_API, 'portal.', '/v1'), diff --git a/src/elements/common/file-uploader.ts b/src/elements/common/file-uploader.ts index c07a22c8..d1ca9e2e 100644 --- a/src/elements/common/file-uploader.ts +++ b/src/elements/common/file-uploader.ts @@ -325,8 +325,8 @@ export default class FileUploader extends LitElement { ? this.uploadState.type == 'uploading' ? this.uploadState.progress / this.uploadState.total : this.uploadState.type == 'completing' - ? 1 - : 0 + ? 1 + : 0 : 0; // Separate file type from current upload @@ -346,8 +346,8 @@ export default class FileUploader extends LitElement { let accept = this.video ? 'video/mp4,video/x-m4v,video/*' : this.image - ? 'image/*' - : this.accept ?? null; + ? 'image/*' + : this.accept ?? null; return html`
e.preventDefault()}> @@ -356,53 +356,54 @@ export default class FileUploader extends LitElement { ${when( - this.uploadError, - () => - html`

+ this.uploadError, + () => + html`

${when( - typeof this.uploadError == 'string', - () => this.uploadError, - () => html`Error while uploading. Please try again.

` - )} + typeof this.uploadError == 'string', + () => this.uploadError, + () => html`Error while uploading. Please try again.` + )} ` - )} + )}
${uploading - ? html`
+ ? html`
${this.uploadState.type == 'preparing' - ? html`

+ ? html`

Preparing ${this.uploadState.count} file${this.uploadState.count == 1 ? '' : 's'}...

` - : null} + : null} ${this.uploadState.type == 'uploading' - ? html` + ? html`

Uploading...

-

${currentUpload[0].repeat(2)}${currentUpload[1] - }

+

${currentUpload[0].repeat(2)}${ + currentUpload[1] + }

${this.uploadState.progress}/${this.uploadState.total}

` - : null} + : null} ${this.uploadState.type == 'completing' - ? html`

Completing upload...

+ ? html`

Completing upload...

` - : null} + : null}
` - : null} + : null} ${this.dragActive && !uploading - ? html`
Drag and drop files here
` - : null} + ? html`
Drag and drop files here
` + : null}
${namespace.displayName}
+ ? html` ` + : html``} --> `; } @@ -85,11 +85,11 @@ export default class RichEmbed extends LitElement { aria-expanded=${this.expanded} > ${this.game.namespaces.map(namespace => { - return this.renderNamespaceListEntry( - namespace, - namespace.namespaceId === this.currentNamespace.namespaceId - ); - })} + return this.renderNamespaceListEntry( + namespace, + namespace.namespaceId === this.currentNamespace.namespaceId + ); + })}
diff --git a/src/elements/context-menu/context-menu.ts b/src/elements/context-menu/context-menu.ts index eb85ff94..d417776a 100644 --- a/src/elements/context-menu/context-menu.ts +++ b/src/elements/context-menu/context-menu.ts @@ -202,8 +202,7 @@ export default class ContextMenu extends LitElement { let showAdminControls = !isSelf && ctx.selfIsOwner; - return html` - ${when( + return html` ${when( showAdminControls, () => html`
diff --git a/src/elements/dev/version-publish-summary.ts b/src/elements/dev/version-publish-summary.ts index 86699cdd..d0efb586 100644 --- a/src/elements/dev/version-publish-summary.ts +++ b/src/elements/dev/version-publish-summary.ts @@ -100,9 +100,7 @@ export default class VersionPublishSumary extends LitElement { return html`