diff --git a/src/components/remote_follow/remote_follow.js b/src/components/remote_follow/remote_follow.js
index 951b59419..56b264fc9 100644
--- a/src/components/remote_follow/remote_follow.js
+++ b/src/components/remote_follow/remote_follow.js
@@ -2,6 +2,7 @@ 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 1da71ca79..022a184e6 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:model-value="$emit('update:modelValue', !present ? fallback : undefined)"
+ @update:modelValue="$emit('update:modelValue', !present ? fallback : undefined)"
/>
{
+ }).then(done => {
this.$refs.createPackPopover.hidePopover()
this.packName = this.newPackName
@@ -110,7 +110,7 @@ const EmojiTab = {
this.displayError(resp.error)
return Promise.reject(resp)
}
- }).then(() => {
+ }).then(done => {
delete this.editedMetadata[this.packName]
this.deleteModalVisible = false
@@ -167,7 +167,7 @@ const EmojiTab = {
return resultingPromise
})
- .then(() => allPacks)
+ .then(finished => allPacks)
.catch(data => {
this.displayError(data)
})
@@ -226,7 +226,7 @@ const EmojiTab = {
this.displayError(resp.error)
return Promise.reject(resp)
}
- }).then(() => {
+ }).then(done => {
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 4bf64c921..5742d2ce9 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"
- @update-pack-files="updatePackFiles"
- @display-error="displayError"
+ @updatePackFiles="updatePackFiles"
+ @displayError="displayError"
>
@@ -247,7 +247,7 @@
:label="$t('settings.style.fonts.components.interface')"
:fallback="{ family: 'sans-serif' }"
no-inherit="1"
- @update:model-value="v => updateFont('interface', v)"
+ @update:modelValue="v => updateFont('interface', v)"
/>
@@ -257,7 +257,7 @@
name="input"
:fallback="{ family: 'inherit' }"
:label="$t('settings.style.fonts.components.input')"
- @update:model-value="v => updateFont('input', v)"
+ @update:modelValue="v => updateFont('input', v)"
/>
@@ -267,7 +267,7 @@
name="post"
:fallback="{ family: 'inherit' }"
:label="$t('settings.style.fonts.components.post')"
- @update:model-value="v => updateFont('post', v)"
+ @update:modelValue="v => updateFont('post', v)"
/>
@@ -277,7 +277,7 @@
name="postCode"
:fallback="{ family: 'monospace' }"
:label="$t('settings.style.fonts.components.monospace')"
- @update:model-value="v => updateFont('monospace', v)"
+ @update:modelValue="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 42cf2dd83..4895733c9 100644
--- a/src/components/settings_modal/tabs/data_import_export_tab.js
+++ b/src/components/settings_modal/tabs/data_import_export_tab.js
@@ -72,6 +72,7 @@ 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
@@ -79,7 +80,7 @@ const DataImportExportTab = {
},
addBackup () {
this.$store.state.api.backendInteractor.addBackup()
- .then(() => {
+ .then((res) => {
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 3bc73c31b..51974f9fa 100644
--- a/src/components/settings_modal/tabs/mutes_and_blocks_tab.js
+++ b/src/components/settings_modal/tabs/mutes_and_blocks_tab.js
@@ -85,6 +85,7 @@ 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
@@ -125,7 +126,7 @@ const MutesAndBlocks = {
return urls.filter(url => !this.user.domainMutes.includes(url))
},
queryKnownDomains (query) {
- return new Promise((resolve) => {
+ return new Promise((resolve, reject) => {
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 6b3ab2615..5b6da029b 100644
--- a/src/components/settings_modal/tabs/profile_tab.js
+++ b/src/components/settings_modal/tabs/profile_tab.js
@@ -133,14 +133,15 @@ 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) {
@@ -166,7 +167,7 @@ const ProfileTab = {
}
return false
},
- deleteField (index) {
+ deleteField (index, event) {
this.newFields.splice(index, 1)
},
uploadFile (slot, e) {
@@ -189,7 +190,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 b24a35cd4..5337d1500 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(() => {
+ this.fetchBackupCodes().then((res) => {
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 6fcca413b..d253bc793 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(() => {
+ .then((res) => {
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 cb5059d66..131da30f2 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 () {
+ setup (props, context) {
const exports = {}
const interfaceStore = useInterfaceStore()
// All rules that are made by editor
const allEditedRules = ref(interfaceStore.styleDataUsed || {})
const styleDataUsed = computed(() => interfaceStore.styleDataUsed)
- watch([styleDataUsed], () => {
+ watch([styleDataUsed], (value) => {
onImport(interfaceStore.styleDataUsed)
}, { once: true })
@@ -227,7 +227,7 @@ export default {
componentKeysAll
.map(
key => [key, componentsContext(key).default]
- ).filter(([, component]) => !component.virtual && !component.notEditable)
+ ).filter(([key, 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 5084b757c..3cdb41830 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:modelValue="(v) => updateSelectedStates(state, v)"
>
{{ state }}
@@ -337,7 +337,7 @@
:no-preview="true"
:compact="true"
:static-vars="staticVars"
- @sub-shadow-selected="onSubShadow"
+ @subShadowSelected="onSubShadow"
/>
@@ -373,8 +373,8 @@
:model-value="palettes"
:selected-id="selectedPaletteId"
:get-add-value="getNewPalette"
- @update:model-value="onPalettesUpdate"
- @update:selected-id="e => selectedPaletteId = e"
+ @update:modelValue="onPalettesUpdate"
+ @update:selectedId="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 b2b50b3e8..158f0a70c 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:model-value="e => emit('update:modelValue', e)"
- @update:selected-id="e => selectedVirtualDirectiveId = e"
+ @update:modelValue="e => emit('update:modelValue', e)"
+ @update:selectedId="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 a44d4d333..884a3cbe3 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) {
+ loadThemeFromLocalStorage (confirmLoadSource = false, forceSnapshot = 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 () {
+ onImportFailure (result) {
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(([, s]) => {
+ this.selectedTheme = Object.entries(this.availableStyles).find(([k, 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 1722454db..489351b69 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 () {
+ selected (value) {
this.$emit('subShadowSelected', this.selectedId)
}
},
diff --git a/src/components/shadow_control/shadow_control.vue b/src/components/shadow_control/shadow_control.vue
index f34741797..d5fb80dc4 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:selected-id="onSelectChange"
+ @update:selectedId="onSelectChange"
/>
@@ -170,12 +170,12 @@
:fallback="getColorFallback"
:show-optional-checkbox="false"
name="shadow"
- @update:model-value="e => updateProperty('color', e)"
+ @update:modelValue="e => updateProperty('color', e)"
/>
updateProperty('alpha', e)"
+ @update:modelValue="e => updateProperty('alpha', e)"
/>
scrollEl.scrollHeight) {
diff --git a/src/components/status/status.vue b/src/components/status/status.vue
index e78b0931a..c4dd52bf6 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)"
- @parse-ready="setHeadTailLinks"
+ @parseReady="setHeadTailLinks"
/>
diff --git a/src/components/status_action_buttons/buttons_definitions.js b/src/components/status_action_buttons/buttons_definitions.js
index 64a95ab85..9013981c0 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 }) {
+ action ({ status, dispatch, emit }) {
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 }) {
+ action ({ status, dispatch, emit }) {
if (status.bookmarked) {
return dispatch('unbookmark', { id: status.id })
} else {
@@ -175,7 +175,7 @@ export const BUTTONS = [{
currentUser.privileges.includes('messages_delete')
)
},
- confirm: ({ getters }) => getters.mergedConfig.modalOnDelete,
+ confirm: ({ status, 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 16894021b..f21bcc80e 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"
- @parse-ready="onParseReady"
+ @parseReady="onParseReady"
/>