From 4fbe2e065e75ed3e5b4dfdfd4be3baa03cc447c3 Mon Sep 17 00:00:00 2001 From: Johann150 Date: Wed, 3 Aug 2022 22:48:13 +0200 Subject: [PATCH] client: fix lint "quotes" --- packages/client/src/components/post-form-attaches.vue | 4 ++-- packages/client/src/components/ui/container.vue | 2 +- packages/client/src/scripts/initialize-sw.ts | 2 +- packages/client/src/scripts/physics.ts | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/client/src/components/post-form-attaches.vue b/packages/client/src/components/post-form-attaches.vue index 6b9827407..f0011ed03 100644 --- a/packages/client/src/components/post-form-attaches.vue +++ b/packages/client/src/components/post-form-attaches.vue @@ -88,11 +88,11 @@ export default defineComponent({ }, async describe(file) { - os.popup(defineAsyncComponent(() => import("@/components/media-caption.vue")), { + os.popup(defineAsyncComponent(() => import('@/components/media-caption.vue')), { title: this.$ts.describeFile, input: { placeholder: this.$ts.inputNewDescription, - default: file.comment !== null ? file.comment : "", + default: file.comment !== null ? file.comment : '', }, image: file }, { diff --git a/packages/client/src/components/ui/container.vue b/packages/client/src/components/ui/container.vue index 7c595d811..79920323d 100644 --- a/packages/client/src/components/ui/container.vue +++ b/packages/client/src/components/ui/container.vue @@ -79,7 +79,7 @@ export default defineComponent({ const headerHeight = this.showHeader ? this.$refs.header.offsetHeight : 0; this.$el.style.minHeight = `${headerHeight}px`; if (showBody) { - this.$el.style.flexBasis = `auto`; + this.$el.style.flexBasis = 'auto'; } else { this.$el.style.flexBasis = `${headerHeight}px`; } diff --git a/packages/client/src/scripts/initialize-sw.ts b/packages/client/src/scripts/initialize-sw.ts index 7bacfbdf0..04d39b66d 100644 --- a/packages/client/src/scripts/initialize-sw.ts +++ b/packages/client/src/scripts/initialize-sw.ts @@ -6,7 +6,7 @@ import { lang } from '@/config'; export async function initializeSw() { if (!('serviceWorker' in navigator)) return; - navigator.serviceWorker.register(`/sw.js`, { scope: '/', type: 'classic' }); + navigator.serviceWorker.register('/sw.js', { scope: '/', type: 'classic' }); navigator.serviceWorker.ready.then(registration => { registration.active?.postMessage({ msg: 'initialize', diff --git a/packages/client/src/scripts/physics.ts b/packages/client/src/scripts/physics.ts index 9e657906c..47a168eed 100644 --- a/packages/client/src/scripts/physics.ts +++ b/packages/client/src/scripts/physics.ts @@ -109,7 +109,7 @@ export function physics(container: HTMLElement) { render.mouse = mouse; for (const objEl of objEls) { - objEl.style.position = `absolute`; + objEl.style.position = 'absolute'; objEl.style.top = 0; objEl.style.left = 0; objEl.style.margin = 0;