diff --git a/build/webpack.base.conf.js b/build/webpack.base.conf.js index 2db6be8a..615464a5 100644 --- a/build/webpack.base.conf.js +++ b/build/webpack.base.conf.js @@ -37,7 +37,8 @@ module.exports = { 'static': path.resolve(__dirname, '../static'), 'src': path.resolve(__dirname, '../src'), 'assets': path.resolve(__dirname, '../src/assets'), - 'components': path.resolve(__dirname, '../src/components') + 'components': path.resolve(__dirname, '../src/components'), + 'vue-i18n': 'vue-i18n/dist/vue-i18n.runtime.esm-bundler.js' } }, module: { @@ -57,6 +58,15 @@ module.exports = { } } }, + { + enforce: 'post', + test: /\.(json5?|ya?ml)$/, // target json, json5, yaml and yml files + type: 'javascript/auto', + loader: '@intlify/vue-i18n-loader', + include: [ // Use `Rule.include` to specify the files of locale messages to be pre-compiled + path.resolve(__dirname, '../src/i18n') + ] + }, { test: /\.vue$/, loader: 'vue-loader', diff --git a/config/index.js b/config/index.js index 7cb87c3b..023d4c9b 100644 --- a/config/index.js +++ b/config/index.js @@ -52,7 +52,10 @@ module.exports = { target, changeOrigin: true, cookieDomainRewrite: 'localhost', - ws: true + ws: true, + headers: { + 'Origin': target + } }, '/oauth/revoke': { target, diff --git a/package.json b/package.json index 70149440..e9a246b3 100644 --- a/package.json +++ b/package.json @@ -33,13 +33,12 @@ "escape-html": "1.0.3", "localforage": "1.10.0", "parse-link-header": "1.0.1", - "phoenix": "1.4.0", "phoenix": "1.6.2", "punycode.js": "2.1.0", "qrcode": "1", "ruffle-mirror": "2021.12.31", "vue": "^3.2.31", - "vue-i18n": "9.1.9", + "vue-i18n": "^9.2.0-beta.34", "vue-router": "4.0.14", "vue-template-compiler": "2.6.11", "vuex": "4.0.2" @@ -49,6 +48,7 @@ "@babel/plugin-transform-runtime": "7.17.0", "@babel/preset-env": "7.16.11", "@babel/register": "7.17.7", + "@intlify/vue-i18n-loader": "^5.0.0", "@ungap/event-target": "0.2.3", "@vue/babel-helper-vue-jsx-merge-props": "1.2.1", "@vue/babel-plugin-jsx": "1.1.1", diff --git a/src/App.js b/src/App.js index 505a731e..d598b011 100644 --- a/src/App.js +++ b/src/App.js @@ -65,7 +65,7 @@ export default { } } }, - shout () { return this.$store.state.shout.channel.state === 'joined' }, + shout () { return this.$store.state.shout.joined }, suggestionsEnabled () { return this.$store.state.instance.suggestionsEnabled }, showInstanceSpecificPanel () { return this.$store.state.instance.showInstanceSpecificPanel && diff --git a/src/components/conversation/conversation.vue b/src/components/conversation/conversation.vue index ccc523a2..cff901bf 100644 --- a/src/components/conversation/conversation.vue +++ b/src/components/conversation/conversation.vue @@ -31,8 +31,8 @@ keypath="status.show_all_conversation_with_icon" tag="button" class="button-unstyled -link" - @click.prevent="diveToTopLevel" scope="global" + @click.prevent="diveToTopLevel" >