-
Notifications
You must be signed in to change notification settings - Fork 731
Expand file tree
/
Copy pathconfig.js
More file actions
32 lines (31 loc) · 944 Bytes
/
config.js
File metadata and controls
32 lines (31 loc) · 944 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import StackOverflowConnect from './components/stackoverflow-connect.vue';
export default {
enabled: true,
name: 'Stack Overflow',
backgroundColor: '#FFFFFF',
borderColor: '#FFFFFF',
description:
'Connect Stack Overflow to sync questions and answers based on selected tags.',
onboard: {
description: 'Sync questions and answers based on selected tags.',
},
image:
'https://cdn-icons-png.flaticon.com/512/2111/2111628.png',
connectComponent: StackOverflowConnect,
url: ({ attributes }) => attributes?.url?.stackoverflow,
chartColor: '#FF9845',
showProfileLink: true,
activityDisplay: {
showLinkToUrl: true,
},
conversationDisplay: {
replyContent: (conversation) => ({
icon: 'ri-reply-line',
copy: 'reply',
number: conversation.activityCount - 1,
}),
},
organization: {
handle: (identity) => (identity.url ? identity.url.split('/').at(-1) : identity.name),
},
};