+
-
@@ -16,6 +16,7 @@
-
-
diff --git a/resources/js/helpers/functionHelpers.js b/resources/js/helpers/functionHelpers.js
index 289f8762..458f2f61 100644
--- a/resources/js/helpers/functionHelpers.js
+++ b/resources/js/helpers/functionHelpers.js
@@ -352,6 +352,14 @@ const FunctionHelpers = {
}[driver] || this.$getImage(store.getters.config.app_logo_horizontal)
}
+ Vue.prototype.$getSocialLogo = function (driver) {
+ return {
+ 'google': '/assets/socials/google.svg',
+ 'facebook': '/assets/socials/facebook.svg',
+ 'github': store.getters.isDarkMode ? '/assets/socials/github-dark.svg' : '/assets/socials/github.svg',
+ }[driver]
+ }
+
Vue.prototype.$getSubscriptionStatusColor = function (status) {
return {
diff --git a/resources/js/store/modules/app.js b/resources/js/store/modules/app.js
index 292238d8..b6a72ef7 100644
--- a/resources/js/store/modules/app.js
+++ b/resources/js/store/modules/app.js
@@ -105,6 +105,22 @@ const mutations = {
STORE_REQUESTED_PLAN(state, plan) {
state.requestedPlan = plan
},
+ SET_SOCIAL_LOGIN_CONFIGURED(state, service) {
+ if (service === 'facebook') {
+ state.config.allowedFacebookLogin = true
+ state.config.isFacebookLoginConfigured = true
+ }
+
+ if (service === 'google') {
+ state.config.allowedGoogleLogin = true
+ state.config.isGoogleLoginConfigured = true
+ }
+
+ if (service === 'github') {
+ state.config.allowedGithubLogin = true
+ state.config.isGithubLoginConfigured = true
+ }
+ },
SET_STRIPE_CREDENTIALS(state, data) {
state.config.stripe_public_key = data.key
state.config.isStripe = true
diff --git a/resources/js/store/modules/userAuth.js b/resources/js/store/modules/userAuth.js
index 0a0ee2c7..e6b0f420 100644
--- a/resources/js/store/modules/userAuth.js
+++ b/resources/js/store/modules/userAuth.js
@@ -1,6 +1,8 @@
import axios from 'axios'
import router from '/resources/js/router'
import Vue from 'vue'
+import {events} from "../../bus";
+import i18n from "../../i18n";
const defaultState = {
permission: 'master', // master | editor | visitor
@@ -49,13 +51,12 @@ const actions = {
})
},
socialiteRedirect: ({commit}, provider) => {
-
axios
.get(`/api/socialite/${provider}/redirect`)
- .then((response) => {
- if(response.data.url) {
+ .then(response => {
+ if (response.data.url) {
window.location.href = response.data.url
- }
+ }
})
.catch(() => this.$isSomethingWrong())
},
diff --git a/resources/js/views/Admin/AppSettings/AppSettingsTabs/Appearance.vue b/resources/js/views/Admin/AppSettings/AppSettingsTabs/Appearance.vue
index 1326e7c1..11f9937c 100644
--- a/resources/js/views/Admin/AppSettings/AppSettingsTabs/Appearance.vue
+++ b/resources/js/views/Admin/AppSettings/AppSettingsTabs/Appearance.vue
@@ -5,17 +5,17 @@
{{ $t('admin_settings.appearance.section_general') }}
+
+
+
+
-
+
-
-
-
-