Skip to content

Commit

Permalink
Merge production
Browse files Browse the repository at this point in the history
  • Loading branch information
chriscant committed Jun 28, 2023
2 parents ad8e426 + e672fdb commit c6120cd
Show file tree
Hide file tree
Showing 62 changed files with 1,650 additions and 586 deletions.
6 changes: 3 additions & 3 deletions components/AdaptiveMap.vue
Original file line number Diff line number Diff line change
Expand Up @@ -641,9 +641,9 @@ export default {
}
</script>
<style scoped lang="scss">
@import '~bootstrap/scss/functions';
@import '~bootstrap/scss/variables';
@import '~bootstrap/scss/mixins/_breakpoints';
@import 'bootstrap/scss/functions';
@import 'bootstrap/scss/variables';
@import 'bootstrap/scss/mixins/_breakpoints';
.postcode {
position: absolute;
Expand Down
6 changes: 3 additions & 3 deletions components/AdaptiveMapGroup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ export default {
}
</script>
<style scoped lang="scss">
@import '~bootstrap/scss/functions';
@import '~bootstrap/scss/variables';
@import '~bootstrap/scss/mixins/_breakpoints';
@import 'bootstrap/scss/functions';
@import 'bootstrap/scss/variables';
@import 'bootstrap/scss/mixins/_breakpoints';
.layout {
display: grid;
Expand Down
6 changes: 3 additions & 3 deletions components/BrowseHomeIcon.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
export default {}
</script>
<style scoped lang="scss">
@import '~bootstrap/scss/functions';
@import '~bootstrap/scss/variables';
@import '~bootstrap/scss/mixins/_breakpoints';
@import 'bootstrap/scss/functions';
@import 'bootstrap/scss/variables';
@import 'bootstrap/scss/mixins/_breakpoints';
.icon {
width: 46px;
Expand Down
6 changes: 3 additions & 3 deletions components/ChatHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -366,9 +366,9 @@ export default {
}
</script>
<style scoped lang="scss">
@import '~bootstrap/scss/functions';
@import '~bootstrap/scss/variables';
@import '~bootstrap/scss/mixins/_breakpoints';
@import 'bootstrap/scss/functions';
@import 'bootstrap/scss/variables';
@import 'bootstrap/scss/mixins/_breakpoints';
.outer {
background-color: $color-blue--x-light;
Expand Down
6 changes: 3 additions & 3 deletions components/ChatMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ export default {
}
</script>
<style scoped lang="scss">
@import '~bootstrap/scss/functions';
@import '~bootstrap/scss/variables';
@import '~bootstrap/scss/mixins/_breakpoints';
@import 'bootstrap/scss/functions';
@import 'bootstrap/scss/variables';
@import 'bootstrap/scss/mixins/_breakpoints';
.chatbadge {
position: absolute;
Expand Down
6 changes: 3 additions & 3 deletions components/ChatMessage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -204,9 +204,9 @@ export default {
}
</script>
<style scoped lang="scss">
@import '~bootstrap/scss/functions';
@import '~bootstrap/scss/variables';
@import '~bootstrap/scss/mixins/_breakpoints';
@import 'bootstrap/scss/functions';
@import 'bootstrap/scss/variables';
@import 'bootstrap/scss/mixins/_breakpoints';
.selected {
border: 1px solid $color-blue--bright;
Expand Down
46 changes: 40 additions & 6 deletions components/ChatMessageCompleted.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,28 @@
</h4>
</b-card-title>
<b-card-text>
<span v-if="refmsg?.type === 'Offer'">
This is no longer available.
</span>
<span v-else> Thanks, this has now been received. </span>
<div v-if="emessage">
<NoticeMessage variant="info">
<div class="small">
<v-icon icon="info-circle" />
<span v-if="refmsg?.type === 'Offer'">
This is no longer available.
</span>
<span v-else> Thanks, this has now been received. </span>
</div>
</NoticeMessage>
<div class="preline forcebreak mt-1">
{{ emessage }}
</div>
</div>
<div v-else>
<v-icon icon="info-circle" />
<span v-if="refmsg?.type === 'Offer'">
This is no longer available.
</span>
<span v-else> Thanks, this has now been received. </span>
<div class="text-muted small">This is an automated message.</div>
</div>
</b-card-text>
</b-card>
</div>
Expand All @@ -53,14 +71,28 @@
</h4>
</b-card-title>
<b-card-text>
<div>
<div v-if="emessage">
<NoticeMessage variant="info">
<div class="text-muted small">
<v-icon icon="info-circle" />
<span v-if="refmsg?.type === 'Offer'">
This is no longer available.
</span>
<span v-else> Thanks, this has now been received. </span>
</div>
</NoticeMessage>
<div class="preline forcebreak mt-1">
{{ emessage }}
</div>
</div>
<div v-else>
<v-icon icon="info-circle" />
<span v-if="refmsg.type === 'Offer'">
We've let them know this is no longer available.
</span>
<span v-else> This has now been received. </span>
<div class="text-muted small">This is an automated message.</div>
</div>
<div class="text-muted small">This is an automated message.</div>
</b-card-text>
</b-card>
</div>
Expand All @@ -70,8 +102,10 @@
</template>
<script>
import ChatBase from '~/components/ChatBase'
import NoticeMessage from './NoticeMessage'
export default {
components: {NoticeMessage},
extends: ChatBase,
}
</script>
6 changes: 3 additions & 3 deletions components/ChatMessageSummary.vue
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,9 @@ export default {
}
</script>
<style scoped lang="scss">
@import '~bootstrap/scss/functions';
@import '~bootstrap/scss/variables';
@import '~bootstrap/scss/mixins/_breakpoints';
@import 'bootstrap/scss/functions';
@import 'bootstrap/scss/variables';
@import 'bootstrap/scss/mixins/_breakpoints';
.messagecard {
border-radius: 4px;
Expand Down
6 changes: 3 additions & 3 deletions components/ClusterIcon.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ export default {
}
</script>
<style scoped lang="scss">
@import '~bootstrap/scss/functions';
@import '~bootstrap/scss/variables';
@import '~bootstrap/scss/mixins/_breakpoints';
@import 'bootstrap/scss/functions';
@import 'bootstrap/scss/variables';
@import 'bootstrap/scss/mixins/_breakpoints';
.icon {
width: 46px;
Expand Down
6 changes: 3 additions & 3 deletions components/CommunityEvent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -250,9 +250,9 @@ export default {
}
</script>
<style scoped lang="scss">
@import '~bootstrap/scss/functions';
@import '~bootstrap/scss/variables';
@import '~bootstrap/scss/mixins/_breakpoints';
@import 'bootstrap/scss/functions';
@import 'bootstrap/scss/variables';
@import 'bootstrap/scss/mixins/_breakpoints';
.square {
object-fit: cover;
Expand Down
6 changes: 3 additions & 3 deletions components/GroupHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -226,9 +226,9 @@ export default {
</script>
<style scoped lang="scss">
@import '~bootstrap/scss/functions';
@import '~bootstrap/scss/variables';
@import '~bootstrap/scss/mixins/_breakpoints';
@import 'bootstrap/scss/functions';
@import 'bootstrap/scss/variables';
@import 'bootstrap/scss/mixins/_breakpoints';
.img-thumbnail {
margin-bottom: 20px;
Expand Down
6 changes: 3 additions & 3 deletions components/InviteSomeone.vue
Original file line number Diff line number Diff line change
Expand Up @@ -196,9 +196,9 @@ export default {
}
</script>
<style scoped lang="scss">
@import '~bootstrap/scss/functions';
@import '~bootstrap/scss/variables';
@import '~bootstrap/scss/mixins/_breakpoints';
@import 'bootstrap/scss/functions';
@import 'bootstrap/scss/variables';
@import 'bootstrap/scss/mixins/_breakpoints';
.layout {
display: grid;
Expand Down
6 changes: 3 additions & 3 deletions components/IsoChrone.vue
Original file line number Diff line number Diff line change
Expand Up @@ -317,9 +317,9 @@ export default {
}
</script>
<style scoped lang="scss">
@import '~bootstrap/scss/functions';
@import '~bootstrap/scss/variables';
@import '~bootstrap/scss/mixins/_breakpoints';
@import 'bootstrap/scss/functions';
@import 'bootstrap/scss/variables';
@import 'bootstrap/scss/mixins/_breakpoints';
:deep(button) {
box-shadow: none !important;
Expand Down
6 changes: 3 additions & 3 deletions components/IsochronePostMapAndList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -625,9 +625,9 @@ export default {
}
</script>
<style scoped lang="scss">
@import '~bootstrap/scss/functions';
@import '~bootstrap/scss/variables';
@import '~bootstrap/scss/mixins/_breakpoints';
@import 'bootstrap/scss/functions';
@import 'bootstrap/scss/variables';
@import 'bootstrap/scss/mixins/_breakpoints';
.postcode {
position: absolute;
Expand Down
6 changes: 3 additions & 3 deletions components/LayoutCommon.vue
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,9 @@ export default {
}
</script>
<style scoped lang="scss">
@import '~bootstrap/scss/functions';
@import '~bootstrap/scss/variables';
@import '~bootstrap/scss/mixins/_breakpoints';
@import 'bootstrap/scss/functions';
@import 'bootstrap/scss/variables';
@import 'bootstrap/scss/mixins/_breakpoints';
html {
box-sizing: border-box;
Expand Down
6 changes: 3 additions & 3 deletions components/LoginModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -905,9 +905,9 @@ export default {
}
</script>
<style scoped lang="scss">
@import '~bootstrap/scss/functions';
@import '~bootstrap/scss/variables';
@import '~bootstrap/scss/mixins/_breakpoints';
@import 'bootstrap/scss/functions';
@import 'bootstrap/scss/variables';
@import 'bootstrap/scss/mixins/_breakpoints';
$color-facebook: #4267b2;
$color-google: #4285f4;
Expand Down
6 changes: 3 additions & 3 deletions components/MainFooter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@
export default {}
</script>
<style scoped lang="scss">
@import '~bootstrap/scss/functions';
@import '~bootstrap/scss/variables';
@import '~bootstrap/scss/mixins/_breakpoints';
@import 'bootstrap/scss/functions';
@import 'bootstrap/scss/variables';
@import 'bootstrap/scss/mixins/_breakpoints';
.footer {
//max-width: map-get($grid-breakpoints, 'md');
Expand Down
6 changes: 3 additions & 3 deletions components/MainHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -754,9 +754,9 @@ const clickedMobileNav = () => {
}
</script>
<style scoped lang="scss">
@import '~bootstrap/scss/functions';
@import '~bootstrap/scss/variables';
@import '~bootstrap/scss/mixins/_breakpoints';
@import 'bootstrap/scss/functions';
@import 'bootstrap/scss/variables';
@import 'bootstrap/scss/mixins/_breakpoints';
#navbar_large .nav-item {
text-align: center;
Expand Down
6 changes: 3 additions & 3 deletions components/MessageAttachments.vue
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,9 @@ export default {
}
</script>
<style scoped lang="scss">
@import '~bootstrap/scss/functions';
@import '~bootstrap/scss/variables';
@import '~bootstrap/scss/mixins/_breakpoints';
@import 'bootstrap/scss/functions';
@import 'bootstrap/scss/variables';
@import 'bootstrap/scss/mixins/_breakpoints';
.attachment {
object-fit: cover;
Expand Down
6 changes: 3 additions & 3 deletions components/MessageExpanded.vue
Original file line number Diff line number Diff line change
Expand Up @@ -189,9 +189,9 @@ export default {
}
</script>
<style scoped lang="scss">
@import '~bootstrap/scss/functions';
@import '~bootstrap/scss/variables';
@import '~bootstrap/scss/mixins/_breakpoints';
@import 'bootstrap/scss/functions';
@import 'bootstrap/scss/variables';
@import 'bootstrap/scss/mixins/_breakpoints';
.header--size4 {
color: $colour-info-fg !important;
Expand Down
7 changes: 5 additions & 2 deletions components/MessageMap.vue
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export default {
},
methods: {
idle(themap) {
if (this.home) {
if (this.home?.lat || this.home?.lng) {
// We want to show both the centre and the marker.
// eslint-disable-next-line new-cap
const fg = new this.L.featureGroup([
Expand All @@ -98,7 +98,10 @@ export default {
new this.L.marker([this.home.lat, this.home.lng]),
])
themap.fitBounds(fg.getBounds().pad(0.1))
let fitTo = fg.getBounds().pad(0.1)
if (fitTo.isValid()) {
themap.fitBounds(fitTo)
}
} else {
// eslint-disable-next-line new-cap
const fg = new this.L.featureGroup([
Expand Down
6 changes: 3 additions & 3 deletions components/MessageModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,9 @@ export default {
}
</script>
<style scoped lang="scss">
@import '~bootstrap/scss/functions';
@import '~bootstrap/scss/variables';
@import '~bootstrap/scss/mixins/_breakpoints';
@import 'bootstrap/scss/functions';
@import 'bootstrap/scss/variables';
@import 'bootstrap/scss/mixins/_breakpoints';
.close {
top: -15px;
Expand Down
16 changes: 9 additions & 7 deletions components/MessageReplySection.vue
Original file line number Diff line number Diff line change
Expand Up @@ -216,14 +216,16 @@ export default {
alreadyAMember() {
let found = false
for (const messageGroup of this.message?.groups) {
Object.keys(this.myGroups).forEach((key) => {
const group = this.myGroups[key]
if (this.message?.groups) {
for (const messageGroup of this.message?.groups) {
Object.keys(this.myGroups).forEach((key) => {
const group = this.myGroups[key]
if (messageGroup.groupid === group.id) {
found = true
}
})
if (messageGroup.groupid === group.id) {
found = true
}
})
}
}
return found
Expand Down
6 changes: 3 additions & 3 deletions components/MessageSummary.vue
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,9 @@ export default {
}
</script>
<style scoped lang="scss">
@import '~bootstrap/scss/functions';
@import '~bootstrap/scss/variables';
@import '~bootstrap/scss/mixins/_breakpoints';
@import 'bootstrap/scss/functions';
@import 'bootstrap/scss/variables';
@import 'bootstrap/scss/mixins/_breakpoints';
.card-body {
padding: 0px;
Expand Down
Loading

0 comments on commit c6120cd

Please sign in to comment.