diff --git a/build/build.js b/build/build.js index 8242bc5f6..99ca49c06 100644 --- a/build/build.js +++ b/build/build.js @@ -9,7 +9,7 @@ var ora = require('ora') var webpack = require('webpack') var webpackConfig = require('./webpack.prod.conf') -console.log( +console.info( ' Tip:\n' + ' Built files are meant to be served over an HTTP server.\n' + ' Opening index.html over file:// won\'t work.\n' diff --git a/build/check-versions.js b/build/check-versions.js index a269a5bc3..ed6256b3a 100644 --- a/build/check-versions.js +++ b/build/check-versions.js @@ -27,14 +27,12 @@ module.exports = function () { } if (warnings.length) { - console.log('') - console.log(chalk.yellow('To use this template, you must update following to modules:')) - console.log() + console.warn(chalk.yellow('\nTo use this template, you must update following to modules:\n')) for (var i = 0; i < warnings.length; i++) { var warning = warnings[i] - console.log(' ' + warning) + console.warn(' ' + warning) } - console.log() + console.warn() process.exit(1) } } diff --git a/build/dev-server.js b/build/dev-server.js index e51ba9484..145072e70 100644 --- a/build/dev-server.js +++ b/build/dev-server.js @@ -72,10 +72,10 @@ app.use(staticPath, express.static('./static')) module.exports = app.listen(port, function (err) { if (err) { - console.log(err) + console.error(err) return } var uri = 'http://localhost:' + port - console.log('Listening at ' + uri + '\n') + console.info('Listening at ' + uri + '\n') // opn(uri) }) diff --git a/build/webpack.dev.conf.js b/build/webpack.dev.conf.js index 97799f828..2369e0e87 100644 --- a/build/webpack.dev.conf.js +++ b/build/webpack.dev.conf.js @@ -23,7 +23,8 @@ module.exports = merge(baseWebpackConfig, { 'COMMIT_HASH': JSON.stringify('DEV'), 'DEV_OVERRIDES': JSON.stringify(config.dev.settings), '__VUE_OPTIONS_API__': true, - '__VUE_PROD_DEVTOOLS__': false + '__VUE_PROD_DEVTOOLS__': false, + '__VUE_PROD_HYDRATION_MISMATCH_DETAILS__': false }), // https://github.com/glenjamin/webpack-hot-middleware#installation--usage new webpack.HotModuleReplacementPlugin(), diff --git a/build/webpack.prod.conf.js b/build/webpack.prod.conf.js index 7a108f68d..4282e4bd0 100644 --- a/build/webpack.prod.conf.js +++ b/build/webpack.prod.conf.js @@ -50,7 +50,8 @@ var webpackConfig = merge(baseWebpackConfig, { 'COMMIT_HASH': JSON.stringify(commitHash), 'DEV_OVERRIDES': JSON.stringify(undefined), '__VUE_OPTIONS_API__': true, - '__VUE_PROD_DEVTOOLS__': false + '__VUE_PROD_DEVTOOLS__': false, + '__VUE_PROD_HYDRATION_MISMATCH_DETAILS__': false }), // extract css into its own file new MiniCssExtractPlugin({ diff --git a/changelog.d/roundup3.skip b/changelog.d/roundup3.skip new file mode 100644 index 000000000..e69de29bb diff --git a/config/index.js b/config/index.js index 023d4c9bc..ff89274ad 100644 --- a/config/index.js +++ b/config/index.js @@ -8,10 +8,10 @@ try { // and that's how actual BE reports its url settings.target = settings.target.replace(/\/$/, '') } - console.log('Using local dev server settings (/config/local.json):') - console.log(JSON.stringify(settings, null, 2)) + console.info('Using local dev server settings (/config/local.json):') + console.info(JSON.stringify(settings, null, 2)) } catch (e) { - console.log('Local dev server settings not found (/config/local.json)') + console.info('Local dev server settings not found (/config/local.json)') } const target = settings.target || 'http://localhost:4000/' diff --git a/src/boot/after_store.js b/src/boot/after_store.js index cf242092a..e093b78c2 100644 --- a/src/boot/after_store.js +++ b/src/boot/after_store.js @@ -174,8 +174,7 @@ const getTOS = async ({ store }) => { throw (res) } } catch (e) { - console.warn("Can't load TOS") - console.warn(e) + console.warn("Can't load TOS\n", e) } } @@ -189,8 +188,7 @@ const getInstancePanel = async ({ store }) => { throw (res) } } catch (e) { - console.warn("Can't load instance panel") - console.warn(e) + console.warn("Can't load instance panel\n", e) } } @@ -220,8 +218,7 @@ const getStickers = async ({ store }) => { throw (res) } } catch (e) { - console.warn("Can't load stickers") - console.warn(e) + console.warn("Can't load stickers\n", e) } } diff --git a/src/components/bookmark_folders_menu/bookmark_folders_menu_content.js b/src/components/bookmark_folders_menu/bookmark_folders_menu_content.js index d5f82f466..43db7df32 100644 --- a/src/components/bookmark_folders_menu/bookmark_folders_menu_content.js +++ b/src/components/bookmark_folders_menu/bookmark_folders_menu_content.js @@ -3,6 +3,9 @@ import NavigationEntry from 'src/components/navigation/navigation_entry.vue' import { getBookmarkFolderEntries } from 'src/components/navigation/filter.js' export const BookmarkFoldersMenuContent = { + props: [ + 'showPin' + ], components: { NavigationEntry }, diff --git a/src/components/bookmark_folders_menu/bookmark_folders_menu_content.vue b/src/components/bookmark_folders_menu/bookmark_folders_menu_content.vue index d603cd010..197f79654 100644 --- a/src/components/bookmark_folders_menu/bookmark_folders_menu_content.vue +++ b/src/components/bookmark_folders_menu/bookmark_folders_menu_content.vue @@ -7,10 +7,12 @@ label: 'nav.all_bookmarks', icon: 'bookmark' }" + :show-pin="showPin" /> diff --git a/src/components/confirm_modal/mute_confirm.js b/src/components/confirm_modal/mute_confirm.js index 62f8c3de3..1bef9f620 100644 --- a/src/components/confirm_modal/mute_confirm.js +++ b/src/components/confirm_modal/mute_confirm.js @@ -5,7 +5,7 @@ import ConfirmModal from './confirm_modal.vue' import Select from 'src/components/select/select.vue' export default { - props: ['type', 'user'], + props: ['type', 'user', 'status'], emits: ['hide', 'show', 'muted'], data: () => ({ showing: false, @@ -61,9 +61,7 @@ export default { }, methods: { optionallyPrompt () { - console.log('Triggered') if (this.shouldConfirm) { - console.log('SHAWN!!') this.show() } else { this.doMute() diff --git a/src/components/emoji_picker/emoji_picker.js b/src/components/emoji_picker/emoji_picker.js index 8f6f1a0d0..48532d3e7 100644 --- a/src/components/emoji_picker/emoji_picker.js +++ b/src/components/emoji_picker/emoji_picker.js @@ -162,7 +162,6 @@ const EmojiPicker = { } else { emojiSizeReal = emojiSizeValue } - console.log(emojiSizeReal) const fullEmojiSize = emojiSizeReal + (2 * 0.2 * fontSizeMultiplier * 14) this.emojiSize = fullEmojiSize @@ -319,7 +318,6 @@ const EmojiPicker = { return this.emojiSize }, itemPerRow () { - console.log('CALC', this.emojiSize, this.width) return this.width ? Math.floor(this.width / this.emojiSize) : 6 }, activeGroupView () { diff --git a/src/components/mrf_transparency_panel/mrf_transparency_panel.vue b/src/components/mrf_transparency_panel/mrf_transparency_panel.vue index 6dc86738e..fcd25a36e 100644 --- a/src/components/mrf_transparency_panel/mrf_transparency_panel.vue +++ b/src/components/mrf_transparency_panel/mrf_transparency_panel.vue @@ -32,22 +32,24 @@

{{ $t("about.mrf.simple.accept_desc") }}

- - - - - - - - - + + + + + + + + + + +
{{ $t("about.mrf.simple.instance") }}{{ $t("about.mrf.simple.reason") }}
{{ entry.instance }} - {{ $t("about.mrf.simple.not_applicable") }} - - {{ entry.reason }} -
{{ $t("about.mrf.simple.instance") }}{{ $t("about.mrf.simple.reason") }}
{{ entry.instance }} + {{ $t("about.mrf.simple.not_applicable") }} + + {{ entry.reason }} +
@@ -57,22 +59,24 @@

{{ $t("about.mrf.simple.reject_desc") }}

- - - - - - - - - + + + + + + + + + + +
{{ $t("about.mrf.simple.instance") }}{{ $t("about.mrf.simple.reason") }}
{{ entry.instance }} - {{ $t("about.mrf.simple.not_applicable") }} - - {{ entry.reason }} -
{{ $t("about.mrf.simple.instance") }}{{ $t("about.mrf.simple.reason") }}
{{ entry.instance }} + {{ $t("about.mrf.simple.not_applicable") }} + + {{ entry.reason }} +
@@ -82,22 +86,24 @@

{{ $t("about.mrf.simple.quarantine_desc") }}

- - - - - - - - - + + + + + + + + + + +
{{ $t("about.mrf.simple.instance") }}{{ $t("about.mrf.simple.reason") }}
{{ entry.instance }} - {{ $t("about.mrf.simple.not_applicable") }} - - {{ entry.reason }} -
{{ $t("about.mrf.simple.instance") }}{{ $t("about.mrf.simple.reason") }}
{{ entry.instance }} + {{ $t("about.mrf.simple.not_applicable") }} + + {{ entry.reason }} +
@@ -107,22 +113,24 @@

{{ $t("about.mrf.simple.ftl_removal_desc") }}

- - - - - - - - - + + + + + + + + + + +
{{ $t("about.mrf.simple.instance") }}{{ $t("about.mrf.simple.reason") }}
{{ entry.instance }} - {{ $t("about.mrf.simple.not_applicable") }} - - {{ entry.reason }} -
{{ $t("about.mrf.simple.instance") }}{{ $t("about.mrf.simple.reason") }}
{{ entry.instance }} + {{ $t("about.mrf.simple.not_applicable") }} + + {{ entry.reason }} +
@@ -132,22 +140,24 @@

{{ $t("about.mrf.simple.media_nsfw_desc") }}

- - - - - - - - - + + + + + + + + + + +
{{ $t("about.mrf.simple.instance") }}{{ $t("about.mrf.simple.reason") }}
{{ entry.instance }} - {{ $t("about.mrf.simple.not_applicable") }} - - {{ entry.reason }} -
{{ $t("about.mrf.simple.instance") }}{{ $t("about.mrf.simple.reason") }}
{{ entry.instance }} + {{ $t("about.mrf.simple.not_applicable") }} + + {{ entry.reason }} +
@@ -157,22 +167,24 @@

{{ $t("about.mrf.simple.media_removal_desc") }}

- - - - - - - - - + + + + + + + + + + +
{{ $t("about.mrf.simple.instance") }}{{ $t("about.mrf.simple.reason") }}
{{ entry.instance }} - {{ $t("about.mrf.simple.not_applicable") }} - - {{ entry.reason }} -
{{ $t("about.mrf.simple.instance") }}{{ $t("about.mrf.simple.reason") }}
{{ entry.instance }} + {{ $t("about.mrf.simple.not_applicable") }} + + {{ entry.reason }} +
diff --git a/src/components/nav_panel/nav_panel.vue b/src/components/nav_panel/nav_panel.vue index f21b43e8b..10903bcae 100644 --- a/src/components/nav_panel/nav_panel.vue +++ b/src/components/nav_panel/nav_panel.vue @@ -113,6 +113,7 @@ :class="{ '-expanded': showBookmarkFolders }" > diff --git a/src/components/navigation/navigation_pins.js b/src/components/navigation/navigation_pins.js index 86c33d1fb..fa89b7599 100644 --- a/src/components/navigation/navigation_pins.js +++ b/src/components/navigation/navigation_pins.js @@ -1,6 +1,8 @@ import { mapState } from 'vuex' import { TIMELINES, ROOT_ITEMS, routeTo } from 'src/components/navigation/navigation.js' -import { getListEntries, filterNavigation } from 'src/components/navigation/filter.js' +import { getBookmarkFolderEntries, getListEntries, filterNavigation } from 'src/components/navigation/filter.js' + +import StillImage from 'src/components/still-image/still-image.vue' import { library } from '@fortawesome/fontawesome-svg-core' import { @@ -34,12 +36,16 @@ const NavPanel = { return routeTo(item, this.currentUser) } }, + components: { + StillImage + }, computed: { getters () { return this.$store.getters }, ...mapState({ lists: getListEntries, + bookmarks: getBookmarkFolderEntries, currentUser: state => state.users.currentUser, followRequestCount: state => state.api.followRequests.length, privateMode: state => state.instance.private, @@ -70,6 +76,7 @@ const NavPanel = { .filter(([k]) => this.pinnedItems.has(k)) .map(([k, v]) => ({ ...v, name: k })), ...this.lists.filter((k) => this.pinnedItems.has(k.name)), + ...this.bookmarks.filter((k) => this.pinnedItems.has(k.name)), ...Object .entries({ ...ROOT_ITEMS }) .filter(([k]) => this.pinnedItems.has(k)) diff --git a/src/components/navigation/navigation_pins.vue b/src/components/navigation/navigation_pins.vue index 37351b918..a9d11da87 100644 --- a/src/components/navigation/navigation_pins.vue +++ b/src/components/navigation/navigation_pins.vue @@ -14,9 +14,14 @@ :icon="item.icon" /> {{ item.iconLetter }} +