diff --git a/CHANGELOG.md b/CHANGELOG.md index fe382b960..444a863c1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). +## 2.6.1 +### Fixed +- fix admin dashboard not having any feedback on frontend installation +- Fix frontend admin tab crashing when no primary frontend is set +- Add aria attributes to react and extra buttons + ## 2.6.0 ### Added - add the initial i18n translation file for Taiwanese (Hokkien), and modify some related files. diff --git a/changelog.d/add-apng.add b/changelog.d/add-apng.add new file mode 100644 index 000000000..cdec58afc --- /dev/null +++ b/changelog.d/add-apng.add @@ -0,0 +1 @@ +Make Pleroma FE to also view apng (Animated PNG) attachment. diff --git a/changelog.d/admin-dash-fixes.fix b/changelog.d/admin-dash-fixes.fix deleted file mode 100644 index ff8eb0a25..000000000 --- a/changelog.d/admin-dash-fixes.fix +++ /dev/null @@ -1 +0,0 @@ -fix admin dashboard not having any feedback on frontend installation diff --git a/changelog.d/create-link-when-url-present.add b/changelog.d/create-link-when-url-present.add new file mode 100644 index 000000000..11aa37583 --- /dev/null +++ b/changelog.d/create-link-when-url-present.add @@ -0,0 +1 @@ +Create a link to the URL of the scrobble when it's present diff --git a/changelog.d/fix-admin-crash-when-no-primary-fe-set.fix b/changelog.d/fix-admin-crash-when-no-primary-fe-set.fix deleted file mode 100644 index 78eae3be9..000000000 --- a/changelog.d/fix-admin-crash-when-no-primary-fe-set.fix +++ /dev/null @@ -1 +0,0 @@ -Fix frontend admin tab crashing when no primary frontend is set diff --git a/changelog.d/react-more-actions-fix.fix b/changelog.d/react-more-actions-fix.fix deleted file mode 100644 index 9ab41de23..000000000 --- a/changelog.d/react-more-actions-fix.fix +++ /dev/null @@ -1 +0,0 @@ -Add aria attributes to react and extra buttons diff --git a/changelog.d/video-poster.fix b/changelog.d/video-poster.fix new file mode 100644 index 000000000..43e95f6e1 --- /dev/null +++ b/changelog.d/video-poster.fix @@ -0,0 +1 @@ +Video posters on Safari diff --git a/changelog.d/web-push-always.add b/changelog.d/web-push-always.add new file mode 100644 index 000000000..f8b8888a2 --- /dev/null +++ b/changelog.d/web-push-always.add @@ -0,0 +1 @@ +Added option to always "show" notifications when using web push for better compatibility with some browsers (chrome, edge, safari) diff --git a/package.json b/package.json index 5d3b50ad6..fa41beb3a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pleroma_fe", - "version": "2.6.0", + "version": "2.6.1", "description": "Pleroma frontend, the default frontend of Pleroma social network server", "author": "Pleroma contributors ", "private": false, @@ -25,7 +25,7 @@ "@kazvmoe-infra/pinch-zoom-element": "1.2.0", "@kazvmoe-infra/unicode-emoji-json": "0.4.0", "@ruffle-rs/ruffle": "0.1.0-nightly.2022.7.12", - "@vuelidate/core": "2.0.2", + "@vuelidate/core": "2.0.3", "@vuelidate/validators": "2.0.0", "body-scroll-lock": "3.1.5", "chromatism": "3.0.0", diff --git a/src/components/quick_view_settings/quick_view_settings.js b/src/components/quick_view_settings/quick_view_settings.js index 2798f37ac..67aa6713e 100644 --- a/src/components/quick_view_settings/quick_view_settings.js +++ b/src/components/quick_view_settings/quick_view_settings.js @@ -52,7 +52,6 @@ const QuickViewSettings = { get () { return this.mergedConfig.mentionLinkShowAvatar }, set () { const value = !this.showUserAvatars - console.log(value) this.$store.dispatch('setOption', { name: 'mentionLinkShowAvatar', value }) } }, diff --git a/src/components/report/report.js b/src/components/report/report.js index 5685aa256..f8675c0f5 100644 --- a/src/components/report/report.js +++ b/src/components/report/report.js @@ -16,7 +16,6 @@ const Report = { }, computed: { report () { - console.log(this.$store.state.reports.reports[this.reportId] || {}) return this.$store.state.reports.reports[this.reportId] || {} }, state: { diff --git a/src/components/settings_modal/admin_tabs/emoji_tab.js b/src/components/settings_modal/admin_tabs/emoji_tab.js new file mode 100644 index 000000000..f9d3b24e0 --- /dev/null +++ b/src/components/settings_modal/admin_tabs/emoji_tab.js @@ -0,0 +1,62 @@ +import TabSwitcher from 'src/components/tab_switcher/tab_switcher.jsx' +import StringSetting from '../helpers/string_setting.vue' +import Checkbox from 'components/checkbox/checkbox.vue' +import StillImage from 'components/still-image/still-image.vue' + +const EmojiTab = { + components: { + TabSwitcher, + StringSetting, + Checkbox, + StillImage + }, + + data () { + return { + knownPacks: { }, + editedParts: { } + } + }, + + methods: { + reloadEmoji () { + this.$store.state.api.backendInteractor.reloadEmoji() + }, + importFromFS () { + this.$store.state.api.backendInteractor.importEmojiFromFS() + }, + emojiAddr (packName, name) { + return `${this.$store.state.instance.server}/emoji/${encodeURIComponent(packName)}/${name}` + }, + editEmoji (packName, shortcode) { + if (this.editedParts[packName] === undefined) { this.editedParts[packName] = {} } + + this.editedParts[packName][shortcode] = { + shortcode, file: this.knownPacks[packName].files[shortcode] + } + }, + saveEditedEmoji (packName, shortcode) { + const edited = this.editedParts[packName][shortcode] + + this.$store.state.api.backendInteractor.updateEmojiFile( + { packName, shortcode, newShortcode: edited.shortcode, newFilename: edited.file, force: false } + ).then(resp => + resp.ok ? resp.json() : resp.text().then(respText => Promise.reject(respText)) + ).then(resp => { + this.knownPacks[packName].files = resp + delete this.editedParts[packName][shortcode] + }) + } + }, + + mounted () { + this.$store.state.api.backendInteractor.listEmojiPacks() + .then(data => data.json()) + .then(packData => { + this.knownPacks = packData.packs + console.log(this.knownPacks) + }) + } +} + +export default EmojiTab diff --git a/src/components/settings_modal/admin_tabs/emoji_tab.scss b/src/components/settings_modal/admin_tabs/emoji_tab.scss new file mode 100644 index 000000000..397580af4 --- /dev/null +++ b/src/components/settings_modal/admin_tabs/emoji_tab.scss @@ -0,0 +1,24 @@ +.emoji-tab { + .btn-group .btn { + margin-left: 0.5em; + } + + .pack-info-wrapper { + margin-top: 1em; + } + + .emoji-info-input { + width: 100%; + } + + .emoji-data-input { + width: 40%; + margin-left: 0.5em; + margin-right: 0.5em; + } + + .emoji { + width: 32px; + height: 32px; + } +} diff --git a/src/components/settings_modal/admin_tabs/emoji_tab.vue b/src/components/settings_modal/admin_tabs/emoji_tab.vue new file mode 100644 index 000000000..699e4afe6 --- /dev/null +++ b/src/components/settings_modal/admin_tabs/emoji_tab.vue @@ -0,0 +1,93 @@ +