• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Freegle / iznik-nuxt3 / 6bd7579a-30c4-40ea-9a8a-1291e094e81e

01 Oct 2025 01:42PM UTC coverage: 34.694% (-9.9%) from 44.618%
6bd7579a-30c4-40ea-9a8a-1291e094e81e

push

circleci

edwh
MT: In /map, don't show the centre points for groups which are not supposed to show on the map.

1053 of 3928 branches covered (26.81%)

Branch coverage included in aggregate %.

2722 of 6953 relevant lines covered (39.15%)

37.76 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

26.53
/api/MessageAPI.js
1
import BaseAPI from '@/api/BaseAPI'
2

3
export default class MessageAPI extends BaseAPI {
6✔
4
  fetch(id, logError = true) {
6✔
5
    return this.$getv2('/message/' + id, {}, logError)
6✔
6
  }
7

8
  fetchMT(params, logError = true) {
×
9
    return this.$get('/message', params, logError)
×
10
  }
11

12
  fetchByUser(id, active, logError = true) {
54✔
13
    return this.$getv2(
54✔
14
      '/user/' + id + '/message',
15
      {
16
        active: active ? 'true' : 'false',
54✔
17
      },
18
      logError
19
    )
20
  }
21

22
  inbounds(swlat, swlng, nelat, nelng, groupid, limit) {
23
    return this.$getv2('/message/inbounds', {
×
24
      swlat,
25
      swlng,
26
      nelat,
27
      nelng,
28
      groupid,
29
      limit,
30
    })
31
  }
32

33
  search(params) {
34
    return this.$getv2(
×
35
      '/message/search/' + encodeURIComponent(params.search),
36
      params
37
    )
38
  }
39

40
  mygroups(gid) {
41
    return this.$getv2('/message/mygroups' + (gid ? '/' + gid : ''))
×
42
  }
43

44
  fetchMessages(params) {
45
    // console.error('MessageAPI fetchMessages', params)
46
    return this.$get('/messages', params)
×
47
  }
48

49
  update(event) {
50
    return this.$post('/message', event)
×
51
  }
52

53
  save(event) {
54
    return this.$patch('/message', event)
3✔
55
  }
56

57
  joinAndPost(id, email, logError = true) {
3✔
58
    return this.$post(
3✔
59
      '/message',
60
      { id, email, action: 'JoinAndPost' },
61
      logError
62
    )
63
  }
64

65
  del(id) {
66
    return this.$del('/message', { id })
×
67
  }
68

69
  put(data) {
70
    return this.$put('/message', data)
3✔
71
  }
72

73
  intend(id, outcome) {
74
    return this.$post('/message', {
×
75
      action: 'OutcomeIntended',
76
      id,
77
      outcome,
78
    })
79
  }
80

81
  view(id) {
82
    return this.$post('/message', {
3✔
83
      action: 'View',
84
      id,
85
    })
86
  }
87

88
  approve(id, groupid, subject = null, stdmsgid = null, body = null) {
×
89
    return this.$post('/message', {
×
90
      action: 'Approve',
91
      id,
92
      groupid,
93
      subject,
94
      stdmsgid,
95
      body,
96
    })
97
  }
98

99
  reply(id, groupid, subject = null, stdmsgid = null, body = null) {
×
100
    return this.$post('/message', {
×
101
      action: 'Reply',
102
      id,
103
      groupid,
104
      subject,
105
      stdmsgid,
106
      body,
107
    })
108
  }
109

110
  reject(id, groupid, subject = null, stdmsgid = null, body = null) {
×
111
    return this.$post('/message', {
×
112
      action: 'Reject',
113
      id,
114
      groupid,
115
      subject,
116
      stdmsgid,
117
      body,
118
    })
119
  }
120

121
  delete(id, groupid, subject = null, stdmsgid = null, body = null) {
×
122
    return this.$post('/message', {
×
123
      action: 'Delete',
124
      id,
125
      groupid,
126
      subject,
127
      stdmsgid,
128
      body,
129
    })
130
  }
131

132
  spam(id, groupid) {
133
    return this.$post('/message', {
×
134
      action: 'Spam',
135
      id,
136
      groupid,
137
    })
138
  }
139

140
  hold(id) {
141
    return this.$post('/message', {
×
142
      action: 'Hold',
143
      id,
144
    })
145
  }
146

147
  release(id) {
148
    return this.$post('/message', {
×
149
      action: 'Release',
150
      id,
151
    })
152
  }
153

154
  approveEdits(id) {
155
    return this.$post('/message', {
×
156
      action: 'ApproveEdits',
157
      id,
158
    })
159
  }
160

161
  revertEdits(id) {
162
    return this.$post('/message', {
×
163
      action: 'RevertEdits',
164
      id,
165
    })
166
  }
167

168
  partnerConsent(id, partner) {
169
    return this.$post('/message', {
×
170
      action: 'PartnerConsent',
171
      id,
172
      partner,
173
    })
174
  }
175

176
  addBy(id, userid, count) {
177
    return this.$post('/message', {
×
178
      action: 'AddBy',
179
      id,
180
      userid,
181
      count,
182
    })
183
  }
184

185
  removeBy(id, userid) {
186
    return this.$post('/message', {
×
187
      action: 'RemoveBy',
188
      id,
189
      userid,
190
    })
191
  }
192

193
  async count(browseView, log) {
194
    return await this.$getv2(
48✔
195
      '/message/count',
196
      {
197
        browseView,
198
      },
199
      log
200
    )
201
  }
202

203
  async markSeen(ids) {
204
    return await this.$post('/messages', {
×
205
      action: 'MarkSeen',
206
      ids,
207
    })
208
  }
209
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc