diff --git a/resources/js/app.js b/resources/js/app.js index fbe5da19..2ece41aa 100644 --- a/resources/js/app.js +++ b/resources/js/app.js @@ -23,6 +23,6 @@ configureCompat({ }) router.app = app -app.mount('#app') +router.isReady().then(() => app.mount('#app')) export default app diff --git a/resources/js/components/LocaleDropdown.vue b/resources/js/components/LocaleDropdown.vue deleted file mode 100644 index dfd4e4b4..00000000 --- a/resources/js/components/LocaleDropdown.vue +++ /dev/null @@ -1,41 +0,0 @@ - - - diff --git a/resources/js/components/LoginWithGithub.vue b/resources/js/components/LoginWithGithub.vue index e515c117..5f9974b3 100644 --- a/resources/js/components/LoginWithGithub.vue +++ b/resources/js/components/LoginWithGithub.vue @@ -1,11 +1,13 @@ diff --git a/resources/js/components/common/ScrollShadow.vue b/resources/js/components/common/ScrollShadow.vue index 8aa4b786..937d2814 100644 --- a/resources/js/components/common/ScrollShadow.vue +++ b/resources/js/components/common/ScrollShadow.vue @@ -60,19 +60,19 @@ export default { const scrollContainerObserver = newResizeObserver(this.toggleShadow) if (scrollContainerObserver) { scrollContainerObserver.observe(this.$refs.scrollContainer) - // Cleanup when the component is destroyed. - this.$once('hook:destroyed', () => scrollContainerObserver.disconnect()) + // Cleanup when the component is unmounted. + this.$once('hook:unmounted', () => scrollContainerObserver.disconnect()) } // Recalculate the container dimensions when the wrapper is resized. const wrapObserver = newResizeObserver(this.calcDimensions) if (wrapObserver) { wrapObserver.observe(this.$el) - // Cleanup when the component is destroyed. - this.$once('hook:destroyed', () => wrapObserver.disconnect()) + // Cleanup when the component is unmounted. + this.$once('hook:unmounted', () => wrapObserver.disconnect()) } }, - destroyed () { + unmounted () { window.removeEventListener('resize', this.calcDimensions) }, methods: { diff --git a/resources/js/components/open/forms/components/FormEditor.vue b/resources/js/components/open/forms/components/FormEditor.vue index 06ef37a5..05f078ee 100644 --- a/resources/js/components/open/forms/components/FormEditor.vue +++ b/resources/js/components/open/forms/components/FormEditor.vue @@ -55,21 +55,21 @@ Please create this form on a device with a larger screen. That will allow you to preview your form changes. - - - - - - + + + + + + - - + + - + - - + +
- +
diff --git a/resources/js/layouts/default.vue b/resources/js/layouts/default.vue index 9afc0107..bc00bf0f 100644 --- a/resources/js/layouts/default.vue +++ b/resources/js/layouts/default.vue @@ -2,49 +2,20 @@
-
- -
-
diff --git a/resources/js/middleware/locale.js b/resources/js/middleware/locale.js deleted file mode 100644 index e844914c..00000000 --- a/resources/js/middleware/locale.js +++ /dev/null @@ -1,8 +0,0 @@ -import store from '~/store' -import { loadMessages } from '~/plugins/i18n' - -export default async (to, from, next) => { - await loadMessages(store.getters['lang/locale']) - - next() -} diff --git a/resources/js/pages/auth/components/LoginForm.vue b/resources/js/pages/auth/components/LoginForm.vue index 4fb72d79..9760fb44 100644 --- a/resources/js/pages/auth/components/LoginForm.vue +++ b/resources/js/pages/auth/components/LoginForm.vue @@ -2,35 +2,39 @@
-
+ - +
- {{ $t('remember_me') }} + Remember me
- Log in to continue + + Log in to continue +

- Don't have an account? - Sign Up - Sign Up + Don't have an account? + Sign Up + + Sign Up +

@@ -56,7 +60,7 @@ export default { required: false, default: false } - }, + }, data: () => ({ form: new Form({ @@ -86,7 +90,7 @@ export default { }, redirect () { - if(this.isQuick){ + if (this.isQuick) { this.$emit('afterQuickLogin') return } diff --git a/resources/js/pages/auth/components/RegisterForm.vue b/resources/js/pages/auth/components/RegisterForm.vue index a06f82d6..145d68ca 100644 --- a/resources/js/pages/auth/components/RegisterForm.vue +++ b/resources/js/pages/auth/components/RegisterForm.vue @@ -1,11 +1,11 @@