More rose pine stuff

This commit is contained in:
ThatOneCalculator 2022-07-25 17:32:25 -07:00
parent 96a219a294
commit 4ff2d0e567
1 changed files with 12 additions and 12 deletions

View File

@ -397,17 +397,17 @@ const fetchApRequestChart = async (): Promise<typeof chartData> => {
series: [{ series: [{
name: 'In', name: 'In',
type: 'area', type: 'area',
color: '#008FFB', color: '#31748f',
data: format(raw.inboxReceived), data: format(raw.inboxReceived),
}, { }, {
name: 'Out (succ)', name: 'Out (succ)',
type: 'area', type: 'area',
color: '#00E396', color: '#c4a7e7',
data: format(raw.deliverSucceeded), data: format(raw.deliverSucceeded),
}, { }, {
name: 'Out (fail)', name: 'Out (fail)',
type: 'area', type: 'area',
color: '#FEB019', color: '#f6c177',
data: format(raw.deliverFailed), data: format(raw.deliverFailed),
}], }],
}; };
@ -636,17 +636,17 @@ const fetchInstanceRequestsChart = async (): Promise<typeof chartData> => {
series: [{ series: [{
name: 'In', name: 'In',
type: 'area', type: 'area',
color: '#008FFB', color: '#31748f',
data: format(raw.requests.received), data: format(raw.requests.received),
}, { }, {
name: 'Out (succ)', name: 'Out (succ)',
type: 'area', type: 'area',
color: '#00E396', color: '#c4a7e7',
data: format(raw.requests.succeeded), data: format(raw.requests.succeeded),
}, { }, {
name: 'Out (fail)', name: 'Out (fail)',
type: 'area', type: 'area',
color: '#FEB019', color: '#f6c177',
data: format(raw.requests.failed), data: format(raw.requests.failed),
}], }],
}; };
@ -658,7 +658,7 @@ const fetchInstanceUsersChart = async (total: boolean): Promise<typeof chartData
series: [{ series: [{
name: 'Users', name: 'Users',
type: 'area', type: 'area',
color: '#008FFB', color: '#31748f',
data: format(total data: format(total
? raw.users.total ? raw.users.total
: sum(raw.users.inc, negate(raw.users.dec)), : sum(raw.users.inc, negate(raw.users.dec)),
@ -673,7 +673,7 @@ const fetchInstanceNotesChart = async (total: boolean): Promise<typeof chartData
series: [{ series: [{
name: 'Notes', name: 'Notes',
type: 'area', type: 'area',
color: '#008FFB', color: '#31748f',
data: format(total data: format(total
? raw.notes.total ? raw.notes.total
: sum(raw.notes.inc, negate(raw.notes.dec)), : sum(raw.notes.inc, negate(raw.notes.dec)),
@ -688,7 +688,7 @@ const fetchInstanceFfChart = async (total: boolean): Promise<typeof chartData> =
series: [{ series: [{
name: 'Following', name: 'Following',
type: 'area', type: 'area',
color: '#008FFB', color: '#31748f',
data: format(total data: format(total
? raw.following.total ? raw.following.total
: sum(raw.following.inc, negate(raw.following.dec)), : sum(raw.following.inc, negate(raw.following.dec)),
@ -696,7 +696,7 @@ const fetchInstanceFfChart = async (total: boolean): Promise<typeof chartData> =
}, { }, {
name: 'Followers', name: 'Followers',
type: 'area', type: 'area',
color: '#00E396', color: '#c4a7e7',
data: format(total data: format(total
? raw.followers.total ? raw.followers.total
: sum(raw.followers.inc, negate(raw.followers.dec)), : sum(raw.followers.inc, negate(raw.followers.dec)),
@ -712,7 +712,7 @@ const fetchInstanceDriveUsageChart = async (total: boolean): Promise<typeof char
series: [{ series: [{
name: 'Drive usage', name: 'Drive usage',
type: 'area', type: 'area',
color: '#008FFB', color: '#31748f',
data: format(total data: format(total
? raw.drive.totalUsage ? raw.drive.totalUsage
: sum(raw.drive.incUsage, negate(raw.drive.decUsage)), : sum(raw.drive.incUsage, negate(raw.drive.decUsage)),
@ -727,7 +727,7 @@ const fetchInstanceDriveFilesChart = async (total: boolean): Promise<typeof char
series: [{ series: [{
name: 'Drive files', name: 'Drive files',
type: 'area', type: 'area',
color: '#008FFB', color: '#31748f',
data: format(total data: format(total
? raw.drive.totalFiles ? raw.drive.totalFiles
: sum(raw.drive.incFiles, negate(raw.drive.decFiles)), : sum(raw.drive.incFiles, negate(raw.drive.decFiles)),