diff --git a/resources/js/helpers/SubscriptionHelpers.js b/resources/js/helpers/SubscriptionHelpers.js index 8aeea885..78310af3 100644 --- a/resources/js/helpers/SubscriptionHelpers.js +++ b/resources/js/helpers/SubscriptionHelpers.js @@ -1,5 +1,3 @@ -import store from '../store/index' - const ValidatorHelpers = { install(Vue) { Vue.prototype.$generatePaystackReference = function () { diff --git a/resources/js/main.js b/resources/js/main.js index 33d4792f..4910b292 100644 --- a/resources/js/main.js +++ b/resources/js/main.js @@ -21,6 +21,7 @@ Vue.use(functionHelpers) Vue.use(AlertHelpers) Vue.use(itemHelpers) +// ReCaptcha configuration if (config.allowedRecaptcha) { Vue.use(VueReCaptcha, { siteKey: config.recaptcha_client_id, diff --git a/resources/js/store/modules/app.js b/resources/js/store/modules/app.js index a636f47f..41f436f8 100644 --- a/resources/js/store/modules/app.js +++ b/resources/js/store/modules/app.js @@ -12,7 +12,6 @@ const defaultState = { itemViewType: localStorage.getItem('preview_type') || 'list', config: undefined, index: undefined, - requestedPlan: undefined, emojis: undefined, sorting: { sort: localStorage.getItem('sorting') ? JSON.parse(localStorage.getItem('sorting')).sort : 'DESC', @@ -107,9 +106,6 @@ const mutations = { INIT(state, data) { state.config = data.config }, - SET_SAAS(state, data) { - state.config.isSaaS = data - }, FILE_INFO_TOGGLE(state, isVisible) { state.isVisibleSidebar = isVisible @@ -127,9 +123,6 @@ const mutations = { TOGGLE_NAVIGATION_BARS(state) { state.isVisibleNavigationBars = !state.isVisibleNavigationBars }, - STORE_REQUESTED_PLAN(state, plan) { - state.requestedPlan = plan - }, REPLACE_CONFIG_VALUE(state, { key, value }) { state.config[key] = value }, @@ -189,7 +182,6 @@ const getters = { notificationCount: (state) => state.notificationCount, isVisibleSidebar: (state) => state.isVisibleSidebar, itemViewType: (state) => state.itemViewType, - requestedPlan: (state) => state.requestedPlan, api: (state) => state.config.api, config: (state) => state.config, emojis: (state) => state.emojis, diff --git a/resources/js/store/modules/sharing.js b/resources/js/store/modules/sharing.js index 45067ed4..9a9e4a8e 100644 --- a/resources/js/store/modules/sharing.js +++ b/resources/js/store/modules/sharing.js @@ -102,9 +102,6 @@ const mutations = { SET_SHARED_DETAIL(state, data) { state.sharedDetail = data }, - STORE_SHARED_FILE(state, data) { - state.sharedFile = data - }, } const getters = { permissionOptions: (state) => state.permissionOptions, diff --git a/resources/js/store/modules/userAuth.js b/resources/js/store/modules/userAuth.js index 3e977c02..ed46b1a3 100644 --- a/resources/js/store/modules/userAuth.js +++ b/resources/js/store/modules/userAuth.js @@ -178,9 +178,6 @@ const mutations = { } }) }, - PUSH_NEW_NOTIFICATION(state, notification) { - state.user.data.relationships.unreadNotifications.data.push(notification) - }, FLUSH_NOTIFICATIONS(state) { state.user.data.relationships.readNotifications.data = [] state.user.data.relationships.unreadNotifications.data = []