diff --git a/src/components/remote_follow/remote_follow.js b/src/components/remote_follow/remote_follow.js
index 56b264fc9..951b59419 100644
--- a/src/components/remote_follow/remote_follow.js
+++ b/src/components/remote_follow/remote_follow.js
@@ -2,7 +2,6 @@ export default {
props: ['user'],
computed: {
subscribeUrl () {
- // eslint-disable-next-line no-undef
const serverUrl = new URL(this.user.statusnet_profile_url)
return `${serverUrl.protocol}//${serverUrl.host}/main/ostatus`
}
diff --git a/src/components/roundness_input/roundness_input.vue b/src/components/roundness_input/roundness_input.vue
index 022a184e6..1da71ca79 100644
--- a/src/components/roundness_input/roundness_input.vue
+++ b/src/components/roundness_input/roundness_input.vue
@@ -15,7 +15,7 @@
:model-value="present"
:disabled="disabled"
class="opt"
- @update:modelValue="$emit('update:modelValue', !present ? fallback : undefined)"
+ @update:model-value="$emit('update:modelValue', !present ? fallback : undefined)"
/>
{
+ }).then(() => {
this.$refs.createPackPopover.hidePopover()
this.packName = this.newPackName
@@ -110,7 +110,7 @@ const EmojiTab = {
this.displayError(resp.error)
return Promise.reject(resp)
}
- }).then(done => {
+ }).then(() => {
delete this.editedMetadata[this.packName]
this.deleteModalVisible = false
@@ -167,7 +167,7 @@ const EmojiTab = {
return resultingPromise
})
- .then(finished => allPacks)
+ .then(() => allPacks)
.catch(data => {
this.displayError(data)
})
@@ -226,7 +226,7 @@ const EmojiTab = {
this.displayError(resp.error)
return Promise.reject(resp)
}
- }).then(done => {
+ }).then(() => {
this.packName = this.remotePackDownloadAs
this.remotePackDownloadAs = ''
})
diff --git a/src/components/settings_modal/admin_tabs/emoji_tab.vue b/src/components/settings_modal/admin_tabs/emoji_tab.vue
index 5742d2ce9..4bf64c921 100644
--- a/src/components/settings_modal/admin_tabs/emoji_tab.vue
+++ b/src/components/settings_modal/admin_tabs/emoji_tab.vue
@@ -312,8 +312,8 @@
new-upload
:title="$t('admin_dash.emoji.adding_new')"
:pack-name="packName"
- @updatePackFiles="updatePackFiles"
- @displayError="displayError"
+ @update-pack-files="updatePackFiles"
+ @display-error="displayError"
>
@@ -247,7 +247,7 @@
:label="$t('settings.style.fonts.components.interface')"
:fallback="{ family: 'sans-serif' }"
no-inherit="1"
- @update:modelValue="v => updateFont('interface', v)"
+ @update:model-value="v => updateFont('interface', v)"
/>
@@ -257,7 +257,7 @@
name="input"
:fallback="{ family: 'inherit' }"
:label="$t('settings.style.fonts.components.input')"
- @update:modelValue="v => updateFont('input', v)"
+ @update:model-value="v => updateFont('input', v)"
/>
@@ -267,7 +267,7 @@
name="post"
:fallback="{ family: 'inherit' }"
:label="$t('settings.style.fonts.components.post')"
- @update:modelValue="v => updateFont('post', v)"
+ @update:model-value="v => updateFont('post', v)"
/>
@@ -277,7 +277,7 @@
name="postCode"
:fallback="{ family: 'monospace' }"
:label="$t('settings.style.fonts.components.monospace')"
- @update:modelValue="v => updateFont('monospace', v)"
+ @update:model-value="v => updateFont('monospace', v)"
/>
{{ $t('settings.columns') }}
diff --git a/src/components/settings_modal/tabs/data_import_export_tab.js b/src/components/settings_modal/tabs/data_import_export_tab.js
index 4895733c9..42cf2dd83 100644
--- a/src/components/settings_modal/tabs/data_import_export_tab.js
+++ b/src/components/settings_modal/tabs/data_import_export_tab.js
@@ -72,7 +72,6 @@ const DataImportExportTab = {
// check is it's a local user
if (user && user.is_local) {
// append the instance address
- // eslint-disable-next-line no-undef
return user.screen_name + '@' + location.hostname
}
return user.screen_name
@@ -80,7 +79,7 @@ const DataImportExportTab = {
},
addBackup () {
this.$store.state.api.backendInteractor.addBackup()
- .then((res) => {
+ .then(() => {
this.addedBackup = true
this.addBackupError = false
})
diff --git a/src/components/settings_modal/tabs/mutes_and_blocks_tab.js b/src/components/settings_modal/tabs/mutes_and_blocks_tab.js
index 51974f9fa..3bc73c31b 100644
--- a/src/components/settings_modal/tabs/mutes_and_blocks_tab.js
+++ b/src/components/settings_modal/tabs/mutes_and_blocks_tab.js
@@ -85,7 +85,6 @@ const MutesAndBlocks = {
// check is it's a local user
if (user && user.is_local) {
// append the instance address
- // eslint-disable-next-line no-undef
return user.screen_name + '@' + location.hostname
}
return user.screen_name
@@ -126,7 +125,7 @@ const MutesAndBlocks = {
return urls.filter(url => !this.user.domainMutes.includes(url))
},
queryKnownDomains (query) {
- return new Promise((resolve, reject) => {
+ return new Promise((resolve) => {
resolve(this.knownDomains.filter(url => url.toLowerCase().includes(query)))
})
},
diff --git a/src/components/settings_modal/tabs/profile_tab.js b/src/components/settings_modal/tabs/profile_tab.js
index 5b6da029b..6b3ab2615 100644
--- a/src/components/settings_modal/tabs/profile_tab.js
+++ b/src/components/settings_modal/tabs/profile_tab.js
@@ -133,15 +133,14 @@ const ProfileTab = {
const params = {
note: this.newBio,
locked: this.newLocked,
+
// Backend notation.
- /* eslint-disable camelcase */
display_name: this.newName,
fields_attributes: this.newFields.filter(el => el != null),
actor_type: this.actorType,
show_role: this.showRole,
birthday: this.newBirthday || '',
show_birthday: this.showBirthday
- /* eslint-enable camelcase */
}
if (this.emailLanguage) {
@@ -167,7 +166,7 @@ const ProfileTab = {
}
return false
},
- deleteField (index, event) {
+ deleteField (index) {
this.newFields.splice(index, 1)
},
uploadFile (slot, e) {
@@ -190,7 +189,7 @@ const ProfileTab = {
})
return
}
- // eslint-disable-next-line no-undef
+
const reader = new FileReader()
reader.onload = ({ target }) => {
const img = target.result
diff --git a/src/components/settings_modal/tabs/security_tab/mfa.js b/src/components/settings_modal/tabs/security_tab/mfa.js
index 5337d1500..b24a35cd4 100644
--- a/src/components/settings_modal/tabs/security_tab/mfa.js
+++ b/src/components/settings_modal/tabs/security_tab/mfa.js
@@ -89,7 +89,7 @@ const Mfa = {
this.backupCodes.getNewCodes = true
},
confirmBackupCodes () { // confirm getting new backup codes
- this.fetchBackupCodes().then((res) => {
+ this.fetchBackupCodes().then(() => {
this.backupCodes.getNewCodes = false
})
},
diff --git a/src/components/settings_modal/tabs/security_tab/security_tab.js b/src/components/settings_modal/tabs/security_tab/security_tab.js
index d253bc793..6fcca413b 100644
--- a/src/components/settings_modal/tabs/security_tab/security_tab.js
+++ b/src/components/settings_modal/tabs/security_tab/security_tab.js
@@ -124,7 +124,7 @@ const SecurityTab = {
},
addAlias () {
this.$store.state.api.backendInteractor.addAlias({ alias: this.addAliasTarget })
- .then((res) => {
+ .then(() => {
this.addedAlias = true
this.addAliasError = false
this.addAliasTarget = ''
diff --git a/src/components/settings_modal/tabs/style_tab/style_tab.js b/src/components/settings_modal/tabs/style_tab/style_tab.js
index 131da30f2..cb5059d66 100644
--- a/src/components/settings_modal/tabs/style_tab/style_tab.js
+++ b/src/components/settings_modal/tabs/style_tab/style_tab.js
@@ -78,14 +78,14 @@ export default {
Preview,
VirtualDirectivesTab
},
- setup (props, context) {
+ setup () {
const exports = {}
const interfaceStore = useInterfaceStore()
// All rules that are made by editor
const allEditedRules = ref(interfaceStore.styleDataUsed || {})
const styleDataUsed = computed(() => interfaceStore.styleDataUsed)
- watch([styleDataUsed], (value) => {
+ watch([styleDataUsed], () => {
onImport(interfaceStore.styleDataUsed)
}, { once: true })
@@ -227,7 +227,7 @@ export default {
componentKeysAll
.map(
key => [key, componentsContext(key).default]
- ).filter(([key, component]) => !component.virtual && !component.notEditable)
+ ).filter(([, component]) => !component.virtual && !component.notEditable)
)
exports.componentsMap = componentsMap
const componentKeys = [...componentsMap.keys()]
diff --git a/src/components/settings_modal/tabs/style_tab/style_tab.vue b/src/components/settings_modal/tabs/style_tab/style_tab.vue
index 3cdb41830..5084b757c 100644
--- a/src/components/settings_modal/tabs/style_tab/style_tab.vue
+++ b/src/components/settings_modal/tabs/style_tab/style_tab.vue
@@ -147,7 +147,7 @@
>
updateSelectedStates(state, v)"
+ @update:model-value="(v) => updateSelectedStates(state, v)"
>
{{ state }}
@@ -337,7 +337,7 @@
:no-preview="true"
:compact="true"
:static-vars="staticVars"
- @subShadowSelected="onSubShadow"
+ @sub-shadow-selected="onSubShadow"
/>
@@ -373,8 +373,8 @@
:model-value="palettes"
:selected-id="selectedPaletteId"
:get-add-value="getNewPalette"
- @update:modelValue="onPalettesUpdate"
- @update:selectedId="e => selectedPaletteId = e"
+ @update:model-value="onPalettesUpdate"
+ @update:selected-id="e => selectedPaletteId = e"
/>
diff --git a/src/components/settings_modal/tabs/style_tab/virtual_directives_tab.vue b/src/components/settings_modal/tabs/style_tab/virtual_directives_tab.vue
index 158f0a70c..b2b50b3e8 100644
--- a/src/components/settings_modal/tabs/style_tab/virtual_directives_tab.vue
+++ b/src/components/settings_modal/tabs/style_tab/virtual_directives_tab.vue
@@ -28,8 +28,8 @@
:model-value="modelValue"
:selected-id="selectedVirtualDirectiveId"
:get-add-value="getNewVirtualDirective"
- @update:modelValue="e => emit('update:modelValue', e)"
- @update:selectedId="e => selectedVirtualDirectiveId = e"
+ @update:model-value="e => emit('update:modelValue', e)"
+ @update:selected-id="e => selectedVirtualDirectiveId = e"
/>
diff --git a/src/components/settings_modal/tabs/theme_tab/theme_tab.js b/src/components/settings_modal/tabs/theme_tab/theme_tab.js
index 884a3cbe3..a44d4d333 100644
--- a/src/components/settings_modal/tabs/theme_tab/theme_tab.js
+++ b/src/components/settings_modal/tabs/theme_tab/theme_tab.js
@@ -480,7 +480,7 @@ export default {
}
this.dismissWarning()
},
- loadThemeFromLocalStorage (confirmLoadSource = false, forceSnapshot = false) {
+ loadThemeFromLocalStorage (confirmLoadSource = false) {
const theme = this.themeDataUsed?.source
if (theme) {
this.loadTheme(
@@ -536,7 +536,7 @@ export default {
this.tempImportFile = parsed
this.loadTheme(parsed, 'file', forceSource)
},
- onImportFailure (result) {
+ onImportFailure () {
useInterfaceStore().pushGlobalNotice({ messageKey: 'settings.invalid_theme_imported', level: 'error' })
},
importValidator (parsed) {
@@ -757,7 +757,7 @@ export default {
}
},
selected () {
- this.selectedTheme = Object.entries(this.availableStyles).find(([k, s]) => {
+ this.selectedTheme = Object.entries(this.availableStyles).find(([, s]) => {
if (Array.isArray(s)) {
return s[0] === this.selected
} else {
diff --git a/src/components/shadow_control/shadow_control.js b/src/components/shadow_control/shadow_control.js
index 489351b69..1722454db 100644
--- a/src/components/shadow_control/shadow_control.js
+++ b/src/components/shadow_control/shadow_control.js
@@ -151,7 +151,7 @@ export default {
}
},
watch: {
- selected (value) {
+ selected () {
this.$emit('subShadowSelected', this.selectedId)
}
},
diff --git a/src/components/shadow_control/shadow_control.vue b/src/components/shadow_control/shadow_control.vue
index d5fb80dc4..f34741797 100644
--- a/src/components/shadow_control/shadow_control.vue
+++ b/src/components/shadow_control/shadow_control.vue
@@ -35,7 +35,7 @@
:selected-id="selectedId"
:get-add-value="getNewSubshadow"
:disabled="disabled"
- @update:selectedId="onSelectChange"
+ @update:selected-id="onSelectChange"
/>
@@ -170,12 +170,12 @@
:fallback="getColorFallback"
:show-optional-checkbox="false"
name="shadow"
- @update:modelValue="e => updateProperty('color', e)"
+ @update:model-value="e => updateProperty('color', e)"
/>
updateProperty('alpha', e)"
+ @update:model-value="e => updateProperty('alpha', e)"
/>
scrollEl.scrollHeight) {
diff --git a/src/components/status/status.vue b/src/components/status/status.vue
index c4dd52bf6..e78b0931a 100644
--- a/src/components/status/status.vue
+++ b/src/components/status/status.vue
@@ -403,7 +403,7 @@
:controlled-toggle-showing-long-subject="controlledToggleShowingLongSubject"
@mediaplay="addMediaPlaying($event)"
@mediapause="removeMediaPlaying($event)"
- @parseReady="setHeadTailLinks"
+ @parse-ready="setHeadTailLinks"
/>
diff --git a/src/components/status_action_buttons/buttons_definitions.js b/src/components/status_action_buttons/buttons_definitions.js
index 9013981c0..64a95ab85 100644
--- a/src/components/status_action_buttons/buttons_definitions.js
+++ b/src/components/status_action_buttons/buttons_definitions.js
@@ -109,7 +109,7 @@ export const BUTTONS = [{
status.user.id === currentUser.id &&
PUBLIC_SCOPES.has(status.visibility)
},
- action ({ status, dispatch, emit }) {
+ action ({ status, dispatch }) {
if (status.pinned) {
return dispatch('unpinStatus', { id: status.id })
} else {
@@ -130,7 +130,7 @@ export const BUTTONS = [{
? 'status.unbookmark'
: 'status.bookmark',
if: ({ loggedIn }) => loggedIn,
- action ({ status, dispatch, emit }) {
+ action ({ status, dispatch }) {
if (status.bookmarked) {
return dispatch('unbookmark', { id: status.id })
} else {
@@ -175,7 +175,7 @@ export const BUTTONS = [{
currentUser.privileges.includes('messages_delete')
)
},
- confirm: ({ status, getters }) => getters.mergedConfig.modalOnDelete,
+ confirm: ({ getters }) => getters.mergedConfig.modalOnDelete,
confirmStrings: {
title: 'status.delete_confirm_title',
body: 'status.delete_confirm',
diff --git a/src/components/status_body/status_body.vue b/src/components/status_body/status_body.vue
index f21bcc80e..16894021b 100644
--- a/src/components/status_body/status_body.vue
+++ b/src/components/status_body/status_body.vue
@@ -52,7 +52,7 @@
:faint="compact"
:greentext="mergedConfig.greentext"
:attentions="status.attentions"
- @parseReady="onParseReady"
+ @parse-ready="onParseReady"
/>