logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe git clone https://anongit.hacktivis.me/git/pleroma-fe.git/
commit: 5509cb31a89dc7fe1815e6c80ce403a5b840d6fe
parent 47034d09f1d61c8021108b243d70cd1871f0d48d
Author: Henry Jameson <me@hjkos.com>
Date:   Mon, 20 Jan 2025 13:43:15 +0200

lint

Diffstat:

Msrc/components/draft/draft.vue5++++-
Msrc/components/font_control/font_control.vue2+-
Msrc/components/media_upload/media_upload.js2+-
Msrc/components/palette_editor/palette_editor.vue2+-
Msrc/components/settings_modal/tabs/appearance_tab.vue8++++----
Msrc/components/video_attachment/video_attachment.js1-
Msrc/services/gesture_service/gesture_service.js1-
Msrc/services/promise_interval/promise_interval.js1-
Msrc/services/window_utils/window_utils.js1-
9 files changed, 11 insertions(+), 12 deletions(-)

diff --git a/src/components/draft/draft.vue b/src/components/draft/draft.vue @@ -34,7 +34,10 @@ </i> </p> <p v-if="draft.status">{{ draft.status }}</p> - <p v-else class="faint">{{ $t('drafts.empty') }}</p> + <p + v-else + class="faint" + >{{ $t('drafts.empty') }}</p> </span> <gallery v-if="draft.files?.length !== 0" diff --git a/src/components/font_control/font_control.vue b/src/components/font_control/font_control.vue @@ -10,8 +10,8 @@ {{ ' ' }} <Checkbox v-if="typeof fallback !== 'undefined'" - class="font-checkbox" :id="name + '-o'" + class="font-checkbox" :model-value="present" @change="$emit('update:modelValue', typeof modelValue === 'undefined' ? fallback : undefined)" > diff --git a/src/components/media_upload/media_upload.js b/src/components/media_upload/media_upload.js @@ -80,7 +80,7 @@ const mediaUpload = { canvas.toBlob((blob) => { resolve(new File([blob], newFileName, { - type: type, + type, lastModified: Date.now() })) }, type, 0.85) diff --git a/src/components/palette_editor/palette_editor.vue b/src/components/palette_editor/palette_editor.vue @@ -29,9 +29,9 @@ <button v-if="apply" class="btn button-default palette-apply-button" - @click="applyPalette" :disabled="disabled" :class="{ disabled }" + @click="applyPalette" > {{ $t('settings.style.themes3.palette.apply') }} </button> diff --git a/src/components/settings_modal/tabs/appearance_tab.vue b/src/components/settings_modal/tabs/appearance_tab.vue @@ -12,9 +12,9 @@ <button class="button-default theme-preview" data-theme-key="stock" - @click="resetTheming" :class="{ toggled: isStyleActive('stock'), disabled: switchInProgress }" :disabled="switchInProgress" + @click="resetTheming" > <!-- eslint-disable vue/no-v-text-v-html-on-component --> <!-- eslint-disable vue/no-v-html --> @@ -58,8 +58,8 @@ :data-theme-key="style.key" class="button-default theme-preview" :class="{ toggled: isThemeActive(style.key), disabled: switchInProgress }" - @click="style.version === 'v2' ? setTheme(style.key) : setStyle(style.key)" :disabled="switchInProgress" + @click="style.version === 'v2' ? setTheme(style.key) : setStyle(style.key)" > <!-- eslint-disable vue/no-v-text-v-html-on-component --> <!-- eslint-disable vue/no-v-html --> @@ -81,9 +81,9 @@ <div class="import-file-container"> <button class="btn button-default" - @click="importFile" :class="{ disabled: switchInProgress }" :disabled="switchInProgress" + @click="importFile" > <FAIcon icon="folder-open" /> {{ $t('settings.style.themes3.editor.load_style') }} @@ -157,8 +157,8 @@ class="userPalette" :compact="true" :apply="true" - @applyPalette="data => setPaletteCustom(data)" :disabled="switchInProgress" + @applyPalette="data => setPaletteCustom(data)" /> </template> <template v-else-if="customThemeVersion === 'v2'"> diff --git a/src/components/video_attachment/video_attachment.js b/src/components/video_attachment/video_attachment.js @@ -1,4 +1,3 @@ - const VideoAttachment = { props: ['attachment', 'controls'], data () { diff --git a/src/services/gesture_service/gesture_service.js b/src/services/gesture_service/gesture_service.js @@ -1,4 +1,3 @@ - const DIRECTION_LEFT = [-1, 0] const DIRECTION_RIGHT = [1, 0] const DIRECTION_UP = [0, -1] diff --git a/src/services/promise_interval/promise_interval.js b/src/services/promise_interval/promise_interval.js @@ -1,4 +1,3 @@ - // promiseInterval - replacement for setInterval for promises, starts counting // the interval only after a promise is done instead of immediately. // - promiseCall is a function that returns a promise, it's called the first diff --git a/src/services/window_utils/window_utils.js b/src/services/window_utils/window_utils.js @@ -1,4 +1,3 @@ - export const windowWidth = () => window.innerWidth || document.documentElement.clientWidth ||