Ghost/ghost/admin/mirage/config/stats.js
Simon Backx 8502ebb96a Moving over the new Dashboard to replace the old (#2389)
refs: https://github.com/TryGhost/Team/issues/1631

Co-authored-by: James Morris <moreofmorris@users.noreply.github.com>
2022-05-17 09:34:34 +02:00

67 lines
1.7 KiB
JavaScript

export default function mockStats(server) {
server.get('/stats/subscriptions/', function () {
return {
stats: [],
meta: {
cadences: [],
tiers: [],
totals: []
}
};
});
server.get('/stats/member_count/', function () {
return {
stats: [
{
date: '2022-04-18',
paid: 0,
free: 2,
comped: 0,
paid_subscribed: 0,
paid_canceled: 0
},
{
date: '2022-04-19',
paid: 0,
free: 2,
comped: 0,
paid_subscribed: 2,
paid_canceled: 0
},
{
date: '2022-04-28',
paid: 0,
free: 12,
comped: 0,
paid_subscribed: 0,
paid_canceled: 0
},
{
date: '2022-05-02',
paid: 0,
free: 35,
comped: 0,
paid_subscribed: 0,
paid_canceled: 0
},
{
date: '2022-05-10',
paid: 0,
free: 38,
comped: 1,
paid_subscribed: 0,
paid_canceled: 0
}
],
meta: {
totals: {
paid: 0,
free: 38,
comped: 1
}
}
};
});
}