Skip to content

Commit c4ebf91

Browse files
committed
rm all FB references from MT. MT: avoid initial FD flash
1 parent d0d567e commit c4ebf91

File tree

7 files changed

+32
-21
lines changed

7 files changed

+32
-21
lines changed

components/LoginModal.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@
4242
<p v-if="signUp" class="font-weight-bold">
4343
Using one of these buttons is the easiest way to create an account:
4444
</p>
45-
<b-btn class="social-button social-button--facebook" :disabled="facebookDisabled" @click="loginFacebook">
45+
<!--b-btn class="social-button social-button--facebook" :disabled="facebookDisabled" @click="loginFacebook">
4646
<b-img src="~/static/signinbuttons/facebook-logo.png" class="social-button__image" />
4747
<span class="p-2 text--medium font-weight-bold">Continue with Facebook</span>
48-
</b-btn>
48+
</b-btn-->
4949
<b-btn v-if="isiOSapp" class="social-button social-button--apple" :disabled="appleDisabled" @click="loginApple">
5050
<b-img src="~/static/signinbuttons/Apple_logo_white.svg" class="social-button__image" style="padding: 0px;" />
5151
<span class="p-2 social-button__text font-weight-bold">Sign in with Apple</span>
@@ -59,10 +59,10 @@
5959
<b-img src="~/static/signinbuttons/yahoo-logo.svg" class="social-button__image" />
6060
<span class="p-2 text--medium font-weight-bold">Continue with Yahoo</span>
6161
</b-btn>
62-
<p v-if="modtools" class="text-center">
62+
<!--p v-if="modtools" class="text-center">
6363
You can't log in to ModTools using Facebook, I'm afraid. If that's how you log in to Freegle, use email/password
6464
and trigger a lost password request.
65-
</p>
65+
</p--->
6666
<notice-message v-if="socialblocked" variant="warning">
6767
Social log in blocked - check your privacy settings, including any ad blockers such as
6868
Adblock Plus.
@@ -890,7 +890,7 @@ export default {
890890
}
891891
892892
Vue.use(VueFB, {
893-
appId: process.env.FACEBOOK_APPID,
893+
// appId: process.env.FACEBOOK_APPID,
894894
autoLogAppEvents: true,
895895
xfbml: true,
896896
version: 'v4.0'

mobile/modtools/android/config.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version='1.0' encoding='utf-8'?>
2-
<widget android-versionCode="409" id="org.ilovefreegle.modtools" version="0.3.98" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
2+
<widget android-versionCode="410" id="org.ilovefreegle.modtools" version="0.3.99" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
33
<name>ModTools</name>
44
<description>Tool to help moderators of Freegle groups</description>
55
<author email="geeks@ilovefreegle.org" href="https://ilovefreegle.org">Chris Cant, Freegle Ltd</author>

mobile/modtools/ios/config.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version='1.0' encoding='utf-8'?>
2-
<widget id="org.ilovefreegle.modtools" ios-CFBundleVersion="403" version="0.3.98" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
2+
<widget id="org.ilovefreegle.modtools" ios-CFBundleVersion="404" version="0.3.99" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
33
<name>ModTools</name>
44
<description>Tool to help moderators of Freegle and similar groups</description>
55
<author email="geeks@ilovefreegle.org" href="https://ilovefreegle.org">

nuxt.config.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ import Sentry from '@nuxtjs/sentry'
33
import { Dedupe as DedupeIntegration } from '@sentry/integrations'
44
import sitemap from './utils/sitemap.js'
55

6-
const FACEBOOK_APPID = '134980666550322'
6+
// const FACEBOOK_APPID = '134980666550322'
77
const SENTRY_DSN = 'https://b68903e730034a4ba3b8b2358331389e@o118493.ingest.sentry.io/4504362603184128' // Cordova
88
const YAHOO_CLIENTID =
99
'dj0yJmk9N245WTRqaDd2dnA4JmQ9WVdrOWIzTlZNMU01TjJjbWNHbzlNQS0tJnM9Y29uc3VtZXJzZWNyZXQmc3Y9MCZ4PWRh'
1010
const MOBILE_VERSION = '2.0.120'
11-
const MODTOOLS_VERSION = '0.3.98'
11+
const MODTOOLS_VERSION = '0.3.99'
1212

1313
require('dotenv').config()
1414

@@ -85,10 +85,10 @@ const config = {
8585
{ hid: 'author', name: 'author', content: 'Freegle' },
8686
{ name: 'supported-color-schemes', content: 'light' },
8787
{ name: 'color-scheme', content: 'light' },
88-
{
89-
name: 'facebook-domain-verification',
90-
content: 'zld0jt8mvf06rt1c3fnxvls3zntxj6'
91-
},
88+
// {
89+
// name: 'facebook-domain-verification',
90+
// content: 'zld0jt8mvf06rt1c3fnxvls3zntxj6'
91+
// },
9292
{ hid: 'og:type', property: 'og:type', content: 'website' },
9393
{
9494
hid: 'description',
@@ -120,14 +120,14 @@ const config = {
120120
property: 'og:url',
121121
content: 'https://www.ilovefreegle.org'
122122
},
123-
{ hid: 'fb:app_id', property: 'fb:app_id', content: FACEBOOK_APPID },
123+
// { hid: 'fb:app_id', property: 'fb:app_id', content: FACEBOOK_APPID },
124124
{
125125
hid: 'og:description',
126126
property: 'og:description',
127127
content:
128128
"Give and get stuff for free in your local community. Don't just recycle - reuse, freecycle and freegle!"
129129
},
130-
{ hid: 'fb:app_id', property: 'og:site_name', content: FACEBOOK_APPID },
130+
// { hid: 'fb:app_id', property: 'og:site_name', content: FACEBOOK_APPID },
131131

132132
{
133133
hid: 'twitter:title',
@@ -164,8 +164,8 @@ const config = {
164164
{ rel: 'preconnect', href: 'https://www.youtube.com' },
165165
{ rel: 'preconnect', href: 'https://fonts.gstatic.com' },
166166
{ rel: 'preconnect', href: 'https://storage.googleapis.com' },
167-
{ rel: 'preconnect', href: 'https://www.facebook.com' },
168-
{ rel: 'preconnect', href: 'https://connect.facebook.com' },
167+
// { rel: 'preconnect', href: 'https://www.facebook.com' },
168+
// { rel: 'preconnect', href: 'https://connect.facebook.com' },
169169
{ rel: 'preconnect', href: 'https://apis.google.com' }
170170
]
171171
},
@@ -220,7 +220,7 @@ const config = {
220220
{ src: '~/plugins/vue-lazy-youtube-video', ssr: false },
221221
{ src: '~/plugins/inspectlet', ssr: false },
222222
{ src: '~/plugins/app-init-push.js', mode: 'client' },
223-
{ src: '~/plugins/app-facebook.js', mode: 'client' },
223+
// { src: '~/plugins/app-facebook.js', mode: 'client' },
224224
{ src: '~/plugins/app-google.js', mode: 'client' },
225225
{ src: '~/plugins/app-yahoo.js', mode: 'client' },
226226
{ src: '~/plugins/app-apple.js', mode: 'client' },
@@ -658,7 +658,7 @@ const config = {
658658
CHAT_HOST: CHAT_HOST,
659659
OSM_TILE: OSM_TILE,
660660
GEOCODE: GEOCODE,
661-
FACEBOOK_APPID: FACEBOOK_APPID,
661+
// FACEBOOK_APPID: FACEBOOK_APPID,
662662
YAHOO_CLIENTID: YAHOO_CLIENTID,
663663
GOOGLE_MAPS_KEY: 'AIzaSyCdTSJKGWJUOx2pq1Y0f5in5g4kKAO5dgg',
664664
GOOGLE_API_KEY: 'AIzaSyArVxoX781qdcbmQZi1PKHX-qa0bPbboH4',

pages/index.vue

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
<template>
22
<div v-if="!me" class="grid m-0 pl-1 pr-1 pl-sm-0 pr-sm-0 mt-0 mt-lg-5 ml-2 mr-2">
3+
<div v-if="isMTApp">
4+
<div id="serverloader" class="bg-white">
5+
<b-img src="~/static/loader.gif" alt="Loading..." />
6+
</div>
7+
</div>
8+
<div v-else>
39
<client-only>
410
<Visible :not="['xs']" class="map justify-content-start flex-column d-flex">
511
<VisualiseMap v-if="type === 'Map'" class="shadow flex-grow-1" />
@@ -57,6 +63,7 @@
5763
</a>
5864
</div>
5965
<main-footer class="thefooter" />
66+
</div>
6067
</div>
6168
</template>
6269
<script>
@@ -73,6 +80,7 @@ export default {
7380
MainFooter
7481
},
7582
83+
layout: 'modtools',
7684
data: function() {
7785
return {
7886
userWatch: null,
@@ -131,6 +139,9 @@ export default {
131139
computed: {
132140
isApp() {
133141
return process.env.IS_APP
142+
},
143+
isMTApp() {
144+
return process.env.IS_MTAPP
134145
}
135146
},
136147
beforeDestroy() {

plugins/app-facebook.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const CordovaOauthRedirectURL = 'https://www.facebook.com/connect/login_success.
88

99
class openFB {
1010
constructor() {
11-
this.fbAppId = process.env.FACEBOOK_APPID
11+
// this.fbAppId = process.env.FACEBOOK_APPID
1212
this.tokenStore = window.sessionStorage // or could be window.localStorage
1313
this.loginCallback = false
1414
this.loginWindow = false

plugins/facebook-sdk.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ VueFB.install = function install(Vue, options) {
3939
}
4040

4141
Vue.use(VueFB, {
42-
appId: process.env.FACEBOOK_APPID,
42+
// appId: process.env.FACEBOOK_APPID,
4343
autoLogAppEvents: true,
4444
xfbml: true,
4545
version: 'v4.0'

0 commit comments

Comments
 (0)