From 6dc26978cae61761259e1962489f7ed35306c23e Mon Sep 17 00:00:00 2001 From: Edward Hibbert Date: Tue, 5 Sep 2023 12:36:31 +0100 Subject: [PATCH 1/9] MT: Allow easier clickthrough to reported message. --- components/ChatMessageInterested.vue | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/components/ChatMessageInterested.vue b/components/ChatMessageInterested.vue index 74893f5d3..f8ab4733b 100644 --- a/components/ChatMessageInterested.vue +++ b/components/ChatMessageInterested.vue @@ -3,6 +3,11 @@
+
+ + View message on ModTools + +
@@ -113,6 +118,15 @@ export default { } return ret + }, + modtoolsLink() { + if (!this.modtools || !this.refmsg || !this.refmsg.id) { + return null + } + + const url = '/modtools/message/' + this.refmsg.id + + return url } }, methods: { From ab669e04fd8d3339b85b9f732333cecb633add19 Mon Sep 17 00:00:00 2001 From: edwh Date: Mon, 18 Sep 2023 08:17:50 +0100 Subject: [PATCH 2/9] MT: In Support Tools, don't highlight auto-approve % for unpublished groups. --- components/ModSupportListGroups.vue | 47 ++++++++++++++++++++--------- 1 file changed, 32 insertions(+), 15 deletions(-) diff --git a/components/ModSupportListGroups.vue b/components/ModSupportListGroups.vue index 3279eeec9..8e3a977fe 100644 --- a/components/ModSupportListGroups.vue +++ b/components/ModSupportListGroups.vue @@ -246,24 +246,41 @@ export default { ) }, autoApproves(hotInstance, td, row, column, prop, value, cellProperties) { - let auto = parseInt(value) + // We don't want to highlight the colour for unpublished groups, because they're not actually causing any + // issues. + const publish = cellProperties.instance.getDataAtRow(row)[7] - if (auto > 50) { - td.style.backgroundColor = 'orange' - } + if (publish) { + let auto = parseInt(value) - auto = Math.abs(auto) + if (auto > 50) { + td.style.backgroundColor = 'orange' + } - Handsontable.renderers.NumericRenderer.call( - this, - hotInstance, - td, - row, - column, - prop, - auto, - cellProperties - ) + auto = Math.abs(auto) + + Handsontable.renderers.NumericRenderer.call( + this, + hotInstance, + td, + row, + column, + prop, + auto, + cellProperties + ) + } else { + Handsontable.renderers.TextRenderer.call( + this, + hotInstance, + td, + row, + column, + prop, + '-', + cellProperties + ) + } }, forceDate(hotInstance, td, row, column, prop, value, cellProperties) { let val = '-' From e5c9027a30c4e67144539afee262bf070c1ef47b Mon Sep 17 00:00:00 2001 From: Edward Hibbert Date: Mon, 25 Sep 2023 16:13:29 +0100 Subject: [PATCH 3/9] MT: Show whether a member has auto-repost turned on/off. --- components/ModMember.vue | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/components/ModMember.vue b/components/ModMember.vue index c8d6bbc0a..934c22cc7 100644 --- a/components/ModMember.vue +++ b/components/ModMember.vue @@ -165,6 +165,15 @@ color="#61AE24" @change="changeNewsletter" /> +
@@ -364,6 +373,12 @@ export default { set(newval) { this.user.newslettersallowed = newval } + }, + autorepost: { + get() { + return this.member && Boolean(!this.member.autorepostsdisable) + }, + setnewval() {} } }, mounted() { From d133761307756ca2db4491f4cec5ac8df557957e Mon Sep 17 00:00:00 2001 From: Edward Hibbert Date: Mon, 25 Sep 2023 16:20:12 +0100 Subject: [PATCH 4/9] MT: TN users have autoreposts off. --- components/ModMember.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/components/ModMember.vue b/components/ModMember.vue index 934c22cc7..27ff26190 100644 --- a/components/ModMember.vue +++ b/components/ModMember.vue @@ -376,7 +376,11 @@ export default { }, autorepost: { get() { - return this.member && Boolean(!this.member.autorepostsdisable) + return ( + this.member && + !this.isTN() && + Boolean(!this.member.autorepostsdisable) + ) }, setnewval() {} } From b8c2940f7849ea505b5559f18cc437e9504b55f7 Mon Sep 17 00:00:00 2001 From: Edward Hibbert Date: Tue, 3 Oct 2023 09:59:29 +0100 Subject: [PATCH 5/9] MT: TN users have autoreposts off - fix --- components/ModMember.vue | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/components/ModMember.vue b/components/ModMember.vue index 27ff26190..7fbeb2c40 100644 --- a/components/ModMember.vue +++ b/components/ModMember.vue @@ -377,9 +377,7 @@ export default { autorepost: { get() { return ( - this.member && - !this.isTN() && - Boolean(!this.member.autorepostsdisable) + this.member && !this.isTN && Boolean(!this.member.autorepostsdisable) ) }, setnewval() {} From 4aeb85129d97bc364235687624a676afdb085c6f Mon Sep 17 00:00:00 2001 From: Edward Hibbert Date: Sat, 7 Oct 2023 11:51:48 +0100 Subject: [PATCH 6/9] MT: Show/hide relevant info for LoveJunk/TrashNothing users --- components/ModMember.vue | 15 +++++++++++---- components/ModMessage.vue | 2 +- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/components/ModMember.vue b/components/ModMember.vue index 7fbeb2c40..eb34ac2b7 100644 --- a/components/ModMember.vue +++ b/components/ModMember.vue @@ -3,8 +3,13 @@
- - {{ email }} +
+ LoveJunk user #{{ user.ljuserid }} +
+
+ + {{ email }} +
@@ -112,7 +117,7 @@
-
+

{ - console.log('Check email', e.email) if (e.email && e.email.indexOf('@user.trashnothing.com') !== -1) { ret = true } @@ -334,6 +338,9 @@ export default { return ret }, + isLJ() { + return this.user && this.user.ljuserid + }, settings() { if (this.user && this.user.settings && this.user.settings) { return this.user.settings diff --git a/components/ModMessage.vue b/components/ModMessage.vue index 2e2692b94..4ed13075a 100644 --- a/components/ModMessage.vue +++ b/components/ModMessage.vue @@ -207,7 +207,7 @@
- + From 7b7789460e34736fac21dcae5d0ab36325485215 Mon Sep 17 00:00:00 2001 From: Edward Hibbert Date: Sat, 7 Oct 2023 15:16:56 +0100 Subject: [PATCH 7/9] MT: "First posted on" group name can be wrong. --- components/MessageHistory.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/MessageHistory.vue b/components/MessageHistory.vue index 4aaba0010..01cd1d93a 100644 --- a/components/MessageHistory.vue +++ b/components/MessageHistory.vue @@ -34,9 +34,9 @@ Approved by {{ group.approvedby.displayname }}
-
+
- First posted on {{ message.groups[0].namedisplay }} on {{ datetime(message.date) }} + First posted on {{ message.postings[0].namedisplay }} on {{ datetime(message.postings[0].date) }}
From 7f73367ae2133bca1140974530d0fadda2cc77af Mon Sep 17 00:00:00 2001 From: Edward Hibbert Date: Sun, 8 Oct 2023 17:10:56 +0100 Subject: [PATCH 8/9] MT: Post visibility map won't show. --- components/ModGroupPostVisibility.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/ModGroupPostVisibility.vue b/components/ModGroupPostVisibility.vue index b16e57eac..5c7af7ae1 100644 --- a/components/ModGroupPostVisibility.vue +++ b/components/ModGroupPostVisibility.vue @@ -130,7 +130,7 @@ export default { const CGA = this.CGA if (CGA) { - return turfbuffer(CGA, this.scale, { units: 'meters' }) + return turfbuffer(CGA, this.scale, 'meters') } else { return null } From c4ebf919bde46975ad1707ca1b00dce5066527b4 Mon Sep 17 00:00:00 2001 From: Chris Cant Date: Wed, 11 Oct 2023 09:06:25 +0100 Subject: [PATCH 9/9] rm all FB references from MT. MT: avoid initial FD flash --- components/LoginModal.vue | 10 +++++----- mobile/modtools/android/config.xml | 2 +- mobile/modtools/ios/config.xml | 2 +- nuxt.config.js | 24 ++++++++++++------------ pages/index.vue | 11 +++++++++++ plugins/app-facebook.js | 2 +- plugins/facebook-sdk.js | 2 +- 7 files changed, 32 insertions(+), 21 deletions(-) diff --git a/components/LoginModal.vue b/components/LoginModal.vue index 2084c2f6a..5f55eedd9 100644 --- a/components/LoginModal.vue +++ b/components/LoginModal.vue @@ -42,10 +42,10 @@

Using one of these buttons is the easiest way to create an account:

-