Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testing Photopicker #104

Open
wants to merge 316 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
316 commits
Select commit Hold shift + click to select a range
5ab26fd
Possible fix for CookieYes being blocked, relevant to https://github.…
edwh Jul 18, 2024
39aec61
Possible fix for CookieYes being blocked, relevant to https://github.…
edwh Jul 18, 2024
03dea18
Possible fix for CookieYes being blocked, relevant to https://github.…
edwh Jul 18, 2024
30c9f28
Try ResizeObserver polyfill for Uppy.
edwh Jul 18, 2024
0b1014e
Merge pull request #102 from Freegle/uppy
edwh Jul 18, 2024
0241de0
Image zoom looks skew-whiff.
edwh Jul 18, 2024
df3c5ae
Title tag wrong.
edwh Jul 18, 2024
3628245
Chat image upload broken
edwh Jul 18, 2024
88362fa
ChitChat story image too large.
edwh Jul 18, 2024
807dee5
Images on message page are blurry.
edwh Jul 18, 2024
1b64823
Not showing images on story
edwh Jul 18, 2024
963a488
Not showing images on story
edwh Jul 18, 2024
0aa4ce6
Not showing images on story
edwh Jul 18, 2024
bfad189
Align image in chat modal.
edwh Jul 18, 2024
f309151
Fix sentry check logic.
edwh Jul 18, 2024
794061f
Handle broken images better.
edwh Jul 19, 2024
58112fc
Profile photo appears not to upload
edwh Jul 19, 2024
40adf1c
Red splodge on heatmap
edwh Jul 19, 2024
11b51da
Minor perf fix for ChitChat
edwh Jul 19, 2024
dd10e38
Problems with some minor photo uploads.
edwh Jul 19, 2024
a002632
Change Hide to Cancel on volop/event add modal.
edwh Jul 19, 2024
458251d
Remove code to wait for CMP complete before allowing modals
edwh Jul 20, 2024
ea73a34
Disable Sentry until Cookie Banner processed.
edwh Jul 20, 2024
c6ac9c1
Disable Sentry until Cookie Banner processed.
edwh Jul 20, 2024
cca221a
Revert "Disable Sentry until Cookie Banner processed."
edwh Jul 20, 2024
f900866
Revert "Disable Sentry until Cookie Banner processed."
edwh Jul 20, 2024
e65f59a
Revert "Remove code to wait for CMP complete before allowing modals"
edwh Jul 20, 2024
a8c4348
Revert "Revert "Disable Sentry until Cookie Banner processed.""
edwh Jul 20, 2024
0ff0b8f
Revert "Revert "Remove code to wait for CMP complete before allowing …
edwh Jul 20, 2024
317cf15
Revert "Revert "Disable Sentry until Cookie Banner processed.""
edwh Jul 20, 2024
233a733
Revert "Revert "Revert "Disable Sentry until Cookie Banner processed."""
edwh Jul 20, 2024
04a1ce5
Revert "Revert "Revert "Remove code to wait for CMP complete before a…
edwh Jul 20, 2024
0cccde8
Revert "Revert "Revert "Disable Sentry until Cookie Banner processed."""
edwh Jul 20, 2024
83a410b
Fix props issue
edwh Jul 20, 2024
3144ade
Remove floating vue module which may be interfering with CookieYes cl…
edwh Jul 20, 2024
ba25c93
Remove code to wait for CMP complete before allowing modals
edwh Jul 20, 2024
e7ab2e9
Disable Sentry until Cookie Banner processed.
edwh Jul 20, 2024
34dfb6b
Disable Sentry until Cookie Banner processed.
edwh Jul 20, 2024
ae5d95d
Revert "Disable Sentry until Cookie Banner processed."
edwh Jul 20, 2024
4257b19
Revert "Disable Sentry until Cookie Banner processed."
edwh Jul 20, 2024
508b75a
LoginModal no-close-on-backdrop may be blocking clicks on the CookieY…
edwh Jul 20, 2024
2eed1d0
Disable Sentry until Cookie Banner processed.
edwh Jul 20, 2024
b979609
Disable Sentry until Cookie Banner processed.
edwh Jul 20, 2024
59873bc
Revert "LoginModal no-close-on-backdrop may be blocking clicks on the…
edwh Jul 20, 2024
eff04ac
Try no-trap for login / cookie issue
edwh Jul 20, 2024
d9eb564
Try teleportDisabled for login / cookie issue.
edwh Jul 20, 2024
caafd5d
Revert "Try teleportDisabled for login / cookie issue."
edwh Jul 20, 2024
9f2486a
Revert "Try no-trap for login / cookie issue"
edwh Jul 20, 2024
857bad5
Upgrade bootstrap-vue-next
edwh Jul 21, 2024
0c34872
Number left badge has font colour wrong.
edwh Jul 21, 2024
eccead8
Upgrade bootstrap-vue-next so that noTrap is available, as possible f…
edwh Jul 21, 2024
4c37270
Reminder to use 127.0.0.1 not localhost when testing.
edwh Jul 21, 2024
c2ccf5f
In Chat photo upload, open Uppy immediately when you click the upload…
edwh Jul 21, 2024
010b39e
Handle Uppy close better in Chat.
edwh Jul 21, 2024
6ea2279
Remove debug
edwh Jul 21, 2024
427d9ff
Photo uploader not correctly restricting to one/many photos.
edwh Jul 21, 2024
60e00b4
Change camera to only allow photos, not videos.
edwh Jul 21, 2024
b86683a
Change camera facing mode.
edwh Jul 21, 2024
e74fe2b
Change camera facing mode.
edwh Jul 21, 2024
74a57a6
Change camera facing mode.
edwh Jul 21, 2024
582a372
Improve Uppy mobile dashboard layout.
edwh Jul 21, 2024
f5c9249
Change camera facing mode.
edwh Jul 21, 2024
21f9980
Change camera facing mode.
edwh Jul 21, 2024
9ae0bdc
Improve Uppy mobile dashboard layout.
edwh Jul 21, 2024
2ed3eb0
Opening messages on photo is causing confusion
edwh Jul 21, 2024
f3b89b9
Remove more checking on CookieYes loading now that the click problem …
edwh Jul 21, 2024
584e70f
Rotate buttons are rotating in wrong direction.
edwh Jul 21, 2024
1f58fd9
Once open image on mobile, can't get back to reply.
edwh Jul 21, 2024
87bd696
In Chat photo upload, open Uppy immediately when you click the upload…
edwh Jul 21, 2024
75f3d92
Add GTM tracking for ad optimisation.
edwh Jul 21, 2024
ccf8c47
Sentry problem.
edwh Jul 21, 2024
c4109a4
Improve error on sign up.
edwh Jul 22, 2024
56839cb
Button to take photo can be hidden on mobile
edwh Jul 22, 2024
4f816ca
Build errors if GTM_ID not configured in environment
edwh Jul 22, 2024
9970b05
On ChitChat, show to mods who hid an item.
edwh Jul 23, 2024
5ba7950
Try asking people who are microvolunteers to invite.
edwh Jul 23, 2024
e445399
Try asking people who are microvolunteers to invite.
edwh Jul 23, 2024
718fde8
Sentry error
edwh Jul 23, 2024
339d753
Microvolunteering debug left on and asking too often
edwh Jul 23, 2024
67eec8e
Tweaks to image zoom
edwh Jul 24, 2024
6ffe4f5
Tweaks to image zoom
edwh Jul 24, 2024
dc35743
Image carousel buttons not positioning correctly in modal.
edwh Jul 24, 2024
ee08756
Sentry error
edwh Jul 24, 2024
7b50575
Change opacity on image buttons.
edwh Jul 24, 2024
a57b750
Shorten wording in sidebars.
edwh Jul 24, 2024
8ea894c
When typing in chitchat on mobile, the bottom navbar can slide in and…
edwh Jul 24, 2024
e6b69b1
Fix carousel previous button
edwh Jul 25, 2024
6f95081
Use fade for photo carousel, because the slide goes the wrong way.
edwh Jul 25, 2024
32f517a
ContactPicker is rarely available. Change how invitations work.
edwh Jul 25, 2024
54b9051
Try showing the camera chooser when uploading.
edwh Jul 25, 2024
26eb868
Remove debug text.
edwh Jul 25, 2024
fb90d7d
Layout of message modal close circle.
edwh Jul 25, 2024
8c5a908
Layout of message modal close circle.
edwh Jul 25, 2024
50fa61c
More image zoom issues.
edwh Jul 25, 2024
099b1a0
Fix microvolunteering invite
edwh Jul 26, 2024
45904e3
ChitChat broken by hiddenby.
edwh Jul 29, 2024
0df889c
Merge remote-tracking branch 'origin/production' into production
edwh Jul 29, 2024
f3f87c1
Encourage references on donations.
edwh Jul 29, 2024
c18f878
Sentry error in photo rotate.
edwh Jul 29, 2024
506f6d0
Merge remote-tracking branch 'origin/production' into production
edwh Jul 29, 2024
f59f356
More work on microvolunteering invites.
edwh Jul 29, 2024
6aadf23
Update ads.txt for AdSense
edwh Jul 29, 2024
8701bc1
Remove invalid variable.
edwh Jul 29, 2024
e4993a1
First pass National Reuse Day page.
edwh Jul 30, 2024
55ac75c
First pass National Reuse Day page.
edwh Jul 30, 2024
dcb1fea
Change NRD image.
edwh Jul 31, 2024
cc0687e
Change NRD image.
edwh Jul 31, 2024
8490fce
Can't upload photos in chat
edwh Jul 31, 2024
fe46d4e
Sentry problem - crash in chat photo upload.
edwh Aug 1, 2024
c395093
Add zoom buttons for larger image
edwh Aug 1, 2024
7a8d6d8
Photo upload problem where popup won't close.
edwh Aug 1, 2024
6c22931
Photo upload problem where popup won't close.
edwh Aug 1, 2024
7382d4f
Allow drag and drop on photo uploader.
edwh Aug 1, 2024
6ae4153
Message store should use object rather than array as sparse.
edwh Aug 3, 2024
e3f3143
* Ask whether things can be delivered, and show if you say yes.
edwh Aug 3, 2024
c0a987b
New user handling not working properly - not seeing password etc afte…
edwh Aug 3, 2024
3d368c3
Changes to zoom on image.
edwh Aug 4, 2024
d196629
Sentry error.
edwh Aug 4, 2024
e878756
Asking for delivery after posting WANTED
edwh Aug 4, 2024
d929220
Photo improvements.
edwh Aug 4, 2024
c20fcd6
Handle postcode searches on landing page better - new Photon release …
edwh Aug 5, 2024
6f1265c
Add image for Ecosend mail footer.
edwh Aug 6, 2024
b21d25a
Add polyfill for Object.hasOwn, required by Safari 14.
edwh Aug 7, 2024
c75c3a7
Ask if there is a deadline for a post.
edwh Aug 7, 2024
e6707ee
Sentry error
edwh Aug 7, 2024
b64c006
Improve event/volop summary on ChitChat for mobile.
edwh Aug 8, 2024
ce7cda8
Improve event/volop summary on ChitChat for mobile.
edwh Aug 8, 2024
80391b7
Fix warning
edwh Aug 8, 2024
2180bbc
Say when the system hid a chitchat post/reply
edwh Aug 8, 2024
0c08d88
Allow image zoom on My Posts.
edwh Aug 8, 2024
652b81e
Tweak ChitChat display for community events created by system
edwh Aug 10, 2024
faf740e
Tweak modal display for community events created by system
edwh Aug 10, 2024
e8a9608
Event images not showing up on ChitChat.
edwh Aug 10, 2024
a602f54
Show counts for events/volops on desktop navbar
edwh Aug 10, 2024
68529f2
Sentry error.
edwh Aug 10, 2024
e99c1a0
Record when we have seen events/volops
edwh Aug 10, 2024
bff9577
Long search on My Posts needs to wrap
edwh Aug 11, 2024
7919b0c
Merge branch 'refs/heads/production' into develop
edwh Aug 12, 2024
8b0d6f5
WIP AdSense
edwh Aug 12, 2024
97a7167
WIP AdSense
edwh Aug 12, 2024
0d8863a
WIP AdSense
edwh Aug 12, 2024
5ebce35
WIP AdSense
edwh Aug 12, 2024
f9422b7
WIP AdSense
edwh Aug 12, 2024
67ca1de
WIP AdSense
edwh Aug 13, 2024
dc2f519
Don't do site update check except on production branch.
edwh Aug 13, 2024
7b4a525
Choose better pageUrl for AdSense.
edwh Aug 13, 2024
a2efe35
WIP AdSense
edwh Aug 13, 2024
9ed9206
Sentry error.
edwh Aug 13, 2024
e2a8098
ChitChat noticeboard photo not shown correctly.
edwh Aug 13, 2024
0203b41
Warn if setting deadline of the same day
edwh Aug 14, 2024
e2db9a1
Fix warning.
edwh Aug 14, 2024
66bf681
Ad fettling.
edwh Aug 14, 2024
b23d996
Remove unnecessary padding.
edwh Aug 14, 2024
44136e6
Refactor Google Ads and Prebid Ads into separate components.
edwh Aug 14, 2024
e432658
Rework ads to be responsive
edwh Aug 14, 2024
13a8586
Rework ads to be responsive
edwh Aug 14, 2024
bb08f6e
Too many ad refreshes?
edwh Aug 14, 2024
d6a098c
Make a bit more room in chat for small mobile screens.
edwh Aug 14, 2024
d8acbcf
Make a bit more room in chat for small mobile screens.
edwh Aug 15, 2024
b8dfd3b
Remove more Uploadcare code.
edwh Aug 15, 2024
9c2fcec
Remove more Uploadcare code.
edwh Aug 15, 2024
0fe4171
Tweak ad for message modal.
edwh Aug 16, 2024
ef913b2
Rework browse on mobile to show two posts side by side
edwh Aug 16, 2024
ac5d74d
Rework browse on mobile to show two posts side by side
edwh Aug 16, 2024
60ad068
Rework browse on mobile to show two posts side by side
edwh Aug 16, 2024
b27a18b
Code tidy.
edwh Aug 16, 2024
bfec7eb
More on two column layout
edwh Aug 16, 2024
47f9b24
More on two column layout
edwh Aug 16, 2024
f8d1273
Restore some message info on desktop view.
edwh Aug 17, 2024
b67b426
Ad space should collapse in message modal if no ad rendered.
edwh Aug 17, 2024
5f0cd56
Setting wrong env variable.
edwh Aug 17, 2024
47199d9
Better UX on deadline ask.
edwh Aug 17, 2024
f5a911f
Reduce Chris crankiness.
edwh Aug 17, 2024
89e925c
Time out ad render
edwh Aug 17, 2024
1ace8f7
Fix warning.
edwh Aug 17, 2024
c00b94a
More fettling of photos
edwh Aug 17, 2024
cf0e645
More ad fettling.
edwh Aug 17, 2024
2b643bb
Once you've replied to a post, show others from the same user
edwh Aug 19, 2024
1f111d5
Mobile landing page layout messed up by recent message display changes
edwh Aug 19, 2024
f12d0a1
Possible fix for ad overlapping buttons on chat.
edwh Aug 19, 2024
0396bf4
Revert "Possible fix for ad overlapping buttons on chat."
edwh Aug 19, 2024
4e51ed9
Possible fix for ad overlapping buttons on chat.
edwh Aug 19, 2024
719990b
Improve mobile browse layout some more
edwh Aug 20, 2024
28af05a
Suppress "Something went wrong" when unloading the page - happens dur…
edwh Aug 20, 2024
6a3cb7e
Introduce Reminder type into chat for collection reminders.
edwh Aug 20, 2024
102d92e
Introduce Reminder type into chat for collection reminders.
edwh Aug 20, 2024
56529b8
Remove mention of drag/drop in Uppy.
edwh Aug 21, 2024
18e2480
More fiddling with two-column browse layout
edwh Aug 22, 2024
c72360b
Allow ads to be turned off via server config.
edwh Aug 22, 2024
0442705
WIP Rework ads some more. Add a call-to-action to turn off ads by do…
edwh Aug 22, 2024
25442c4
Rework ads some more, sort out sidebars.
edwh Aug 23, 2024
be34af6
Rework ads some more, sort out sidebars.
edwh Aug 23, 2024
c5f49ce
Possible issue with v-bind, mapState, reactivity
edwh Aug 23, 2024
deae121
Tweak wording, fix ad thermometer
edwh Aug 23, 2024
4f1e7fc
Tweak wording
edwh Aug 23, 2024
48add35
Make hate ads message more prominent
edwh Aug 23, 2024
2faab7d
Fix warning.
edwh Aug 23, 2024
83b5a18
Fix warning
edwh Aug 23, 2024
9c39092
Encourage ad blocker folk to donate.
edwh Aug 23, 2024
8c60cf5
Switch to ad period of 24 hours - more donations happen in the evening.
edwh Aug 23, 2024
09e03e0
Switch to ad period of 24 hours - more donations happen in the evening.
edwh Aug 23, 2024
501fbf7
Donation button fix
edwh Aug 23, 2024
fba09dc
Tweak adsoff wording.
edwh Aug 23, 2024
2e5f87d
Tweak adsoff wording.
edwh Aug 23, 2024
a99ee12
Track clicks on adsoff page
edwh Aug 24, 2024
0a8617f
Try "donate and we'll turn ads off for a month"
edwh Aug 24, 2024
b5e753d
Add charity number to promotional material
edwh Aug 24, 2024
f5c3162
Try "donate and we'll turn ads off for a month"
edwh Aug 24, 2024
42fe678
Tweak adsoff wording.
edwh Aug 24, 2024
e0b6d30
Update privacy policy.
edwh Aug 24, 2024
6e14b09
Add test page for Google Pay
edwh Aug 24, 2024
7c146ff
Not disabling ads for recent donors
edwh Aug 24, 2024
ba20eac
Add test page for Google Pay
edwh Aug 24, 2024
2afda25
Tweak adsoff wording.
edwh Aug 24, 2024
ed1a883
Add test page for Google Pay
edwh Aug 24, 2024
bf6452d
Fix ad blocker message on mobile.
edwh Aug 24, 2024
fd9ace5
Fix warning.
edwh Aug 24, 2024
ab7206a
Improve address suggestion in chat, speed up typing in chat area.
edwh Aug 24, 2024
0294dc9
Improve address suggestion in chat, speed up typing in chat area.
edwh Aug 24, 2024
1cad502
Improve address suggestion in chat, speed up typing in chat area.
edwh Aug 24, 2024
70f2158
Improve address suggestion in chat, speed up typing in chat area.
edwh Aug 24, 2024
2c116ee
Landing page on mobile has OFFER/WANTED label misplaced.
edwh Aug 24, 2024
081313e
Improve address suggestion in chat, speed up typing in chat area.
edwh Aug 25, 2024
0af36e7
Add test page for Google Pay
edwh Aug 25, 2024
1b8f396
Add test page for Google Pay
edwh Aug 25, 2024
a2ba66f
Add test page for Google Pay
edwh Aug 25, 2024
dd69d71
Add charity number to promotional material
edwh Aug 25, 2024
d3eafb4
Suppress a couple of leaflet Sentry errors
edwh Aug 25, 2024
05840ea
Suppress a couple of leaflet Sentry errors
edwh Aug 25, 2024
9eb3e1a
If an item is promised to someone who didn't specifically reply to th…
edwh Aug 25, 2024
472a05c
If there is no photo, then in the mobile view show some of the descri…
edwh Aug 25, 2024
9ca17d0
Add A5x2 poster in English
edwh Aug 25, 2024
dff75bd
Sentry error in removing attachment.
edwh Aug 26, 2024
ad77d79
Keep sticky ad alive over page transitions.
edwh Aug 27, 2024
55bfa1f
Possible fix for characters disappearing.
edwh Aug 27, 2024
47a1918
Nit for dear Wanda.
edwh Aug 28, 2024
18eb443
Fixes for very small mobile screens.
edwh Aug 28, 2024
935c768
Google Pay
edwh Aug 28, 2024
7d2863d
Google Pay
edwh Aug 28, 2024
7a899fc
Google Pay
edwh Aug 28, 2024
5f50e25
Google Pay
edwh Aug 29, 2024
1698793
Possible fix for characters disappearing.
edwh Aug 29, 2024
a9b0631
Add extra diagnostics for upload issues.
edwh Aug 30, 2024
f41c769
Add extra diagnostics for upload issues.
edwh Aug 30, 2024
d95110b
Add extra diagnostics for upload issues.
edwh Aug 30, 2024
2c0ffb3
Photo picker testing.
edwh Aug 30, 2024
62a366c
Allow edit of deadline, show deadline when post not available.
edwh Sep 1, 2024
312efe6
Send on enter missing letters for quick typers.
edwh Sep 3, 2024
314299d
Can't scroll to the bottom of ChitChat.
edwh Sep 3, 2024
4c41b8f
Image size overflows in two-column layout
edwh Sep 4, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Then start the dev server:
npm run dev
```

This will serve up the site at [localhost:3002](http://localhost:3002).
This will serve up the site at [127.0.0.1:3002](http://127.0.0.1:3002). **If you use localhost instead of 127.0.0.1 you may find page load extremely slow.**

It will watch for changes and do hot module reloading. Occasionally you'll need to restart Vite when it doesn't
pick up a change.
Expand Down
7 changes: 7 additions & 0 deletions api/ConfigAPI.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import BaseAPI from '@/api/BaseAPI'

export default class ConfigAPI extends BaseAPI {
fetchv2(key) {
return this.$getv2('/config/' + key)
}
}
2 changes: 2 additions & 0 deletions api/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import BanditAPI from './BanditAPI.js'
import ChatAPI from './ChatAPI.js'
import CommentAPI from './CommentAPI.js'
import CommunityEventAPI from './CommunityEventAPI.js'
import ConfigAPI from './ConfigAPI.js'
import DashboardAPI from './DashboardAPI.js'
import DomainAPI from './DomainAPI.js'
import DonationsAPI from './DonationsAPI.js'
Expand Down Expand Up @@ -62,6 +63,7 @@ interface API {
chat: ChatAPI;
comment: CommentAPI;
communityevent: CommunityEventAPI;
config: ConfigAPI;
dashboard: DashboardAPI;
domain: DomainAPI;
donations: DonationsAPI;
Expand Down
2 changes: 2 additions & 0 deletions api/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import BanditAPI from './BanditAPI.js'
import ChatAPI from './ChatAPI.js'
import CommentAPI from './CommentAPI.js'
import CommunityEventAPI from './CommunityEventAPI.js'
import ConfigAPI from './ConfigAPI.js'
import DashboardAPI from './DashboardAPI.js'
import DomainAPI from './DomainAPI.js'
import DonationsAPI from './DonationsAPI.js'
Expand Down Expand Up @@ -62,6 +63,7 @@ export default (config) => {
chat: new ChatAPI(options),
comment: new CommentAPI(options),
communityevent: new CommunityEventAPI(options),
config: new ConfigAPI(options),
dashboard: new DashboardAPI(options),
domain: new DomainAPI(options),
donations: new DonationsAPI(options),
Expand Down
25 changes: 24 additions & 1 deletion app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ import { useMiscStore } from './stores/misc'
import { computed, watch, reloadNuxtApp } from '#imports'
// polyfills
import 'core-js/actual/array/to-sorted'
import { useConfigStore } from '~/stores/config'

const route = useRoute()
const loadingIndicatorThrottle = ref(5000)
Expand All @@ -139,7 +140,12 @@ let ready = false
// Starting with around Nuxt 3.4.1, when we first access the config (here) it has public as we'd expect, but
// if we store that and access it later, we are just looking at the contents of public. I don't understand why
// this is, but we don't expect the config to change, so we take a copy here.
const runtimeConfig = JSON.parse(JSON.stringify(useRuntimeConfig()))
const runtimeConfig = JSON.parse(
JSON.stringify({
public: useRuntimeConfig().public,
app: useRuntimeConfig().app,
})
)

const miscStore = useMiscStore()
const groupStore = useGroupStore()
Expand All @@ -148,6 +154,7 @@ const authStore = useAuthStore()
const userStore = useUserStore()
const isochroneStore = useIsochroneStore()
const composeStore = useComposeStore()
const configStore = useConfigStore()
const chatStore = useChatStore()
const addressStore = useAddressStore()
const trystStore = useTrystStore()
Expand Down Expand Up @@ -189,6 +196,7 @@ searchStore.init(runtimeConfig)
storyStore.init(runtimeConfig)
volunteeringStore.init(runtimeConfig)
communityEventStore.init(runtimeConfig)
configStore.init(runtimeConfig)
jobStore.init(runtimeConfig)
teamStore.init(runtimeConfig)
donationStore.init(runtimeConfig)
Expand Down Expand Up @@ -263,6 +271,21 @@ if (process.client) {
window.location.reload()
}
}

window.onerror = function (message, url, line, col, error) {
// We can get this, for example if the CookieYes script is blocked.
console.log('Uncaught error', message, url, line, col, error)

if (url.includes('cookieyes')) {
// If CookieYes fails with an error, then we proceed as though it wasn't configured.
//
// This catches the error on Firefox, but not on Chrome, so it's of limited use.
console.log('CookieYes error')
if (window.postCookieYes) {
window.postCookieYes()
}
}
}
}

const chatCount = computed(() => {
Expand Down
6 changes: 6 additions & 0 deletions assets/css/buttons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -83,3 +83,9 @@ button {
color: $color-gray--normal !important;
}
}

.badge {
&.text-bg-info {
color: white !important;
}
}
3 changes: 2 additions & 1 deletion assets/css/global.scss
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,8 @@ legend {
}

.sidebar__wrapper {
height: calc(100vh - var(--header-navbar-height) - var(--ads-label-height) - $sticky-banner-height-desktop);
height: calc(100vh - var(--header-navbar-height) - $sticky-banner-height-desktop - $ads-cta);
overflow-y: scroll;

.card-body .card {
border-radius: unset;
Expand Down
9 changes: 9 additions & 0 deletions assets/css/message-images.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
@import 'bootstrap/scss/functions';
@import 'bootstrap/scss/variables';
@import 'bootstrap/scss/mixins/_breakpoints';

$thumbnail-size: 150px;
$thumbnail-size-md: 200px;

$notthumbnail-size: 320px;
$notthumbnail-size-md: 200px;
24 changes: 24 additions & 0 deletions assets/css/navbar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
@import 'bootstrap/scss/variables';
@import 'bootstrap/scss/mixins/_breakpoints';

$navbar-height: calc(8px + 8px + 64px);

@include media-breakpoint-up(md) {
$navbar-height: calc(8px + 8px + 58px);
}

#navbar_large .nav-item {
text-align: center;
}
Expand Down Expand Up @@ -148,6 +154,24 @@ svg.fa-icon {
color: white !important;
}

.communityeventsbadge {
position: absolute;
top: 2px;
right: -2px;
font-size: 11px;
background-color: $colour-secondary !important;
color: white !important;
}

.volunteeropportunitiesbadge {
position: absolute;
top: 2px;
right: 9px;
font-size: 11px;
background-color: $colour-secondary !important;
color: white !important;
}

.browsebadge {
position: absolute;
top: 2px;
Expand Down
1 change: 0 additions & 1 deletion assets/css/sidebar-ads.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
$sidebar-ads-height-small: 258px;
$sidebar-ads-height-large: 608px;
$sidebar-ads-label-height: 42px;
5 changes: 3 additions & 2 deletions assets/css/sticky-banner.scss
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
$sticky-banner-height-mobile: 50px;
$sticky-banner-height-desktop: 90px;
$sticky-banner-height-mobile: 73px;
$sticky-banner-height-desktop: 113px;
$ads-cta: 23px;
Loading