@@ -28,7 +28,6 @@ export const notifyNats = "notify_nats";
28
28
export const notifyElasticsearch = "notify_elasticsearch" ;
29
29
export const notifyWebhooks = "notify_webhook" ;
30
30
export const notifyNsq = "notify_nsq" ;
31
-
32
31
export const notificationTransform = (
33
32
notificationElements : NotificationEndpointItem [ ] ,
34
33
) => {
@@ -48,65 +47,69 @@ export class DestType {
48
47
static Func : string = "functions" ;
49
48
}
50
49
50
+ const getImgBaseURL = ( ) => {
51
+ return `${ document . baseURI } ` ;
52
+ } ;
53
+
51
54
export const destinationList = [
52
55
{
53
56
actionTrigger : notifyPostgres ,
54
57
targetTitle : "PostgreSQL" ,
55
- logo : "/ postgres-logo.svg" ,
58
+ logo : ` ${ getImgBaseURL ( ) } postgres-logo.svg` ,
56
59
category : DestType . DB ,
57
60
} ,
58
61
{
59
62
actionTrigger : notifyKafka ,
60
63
targetTitle : "Kafka" ,
61
- logo : "/ kafka-logo.svg" ,
64
+ logo : ` ${ getImgBaseURL ( ) } kafka-logo.svg` ,
62
65
category : DestType . Queue ,
63
66
} ,
64
67
{
65
68
actionTrigger : notifyAmqp ,
66
69
targetTitle : "AMQP" ,
67
- logo : "/ amqp-logo.svg" ,
70
+ logo : ` ${ getImgBaseURL ( ) } amqp-logo.svg` ,
68
71
category : DestType . Queue ,
69
72
} ,
70
73
{
71
74
actionTrigger : notifyMqtt ,
72
75
targetTitle : "MQTT" ,
73
- logo : "/ mqtt-logo.svg" ,
76
+ logo : ` ${ getImgBaseURL ( ) } mqtt-logo.svg` ,
74
77
category : DestType . Queue ,
75
78
} ,
76
79
{
77
80
actionTrigger : notifyRedis ,
78
81
targetTitle : "Redis" ,
79
- logo : "/ redis-logo.svg" ,
82
+ logo : ` ${ getImgBaseURL ( ) } redis-logo.svg` ,
80
83
category : DestType . Queue ,
81
84
} ,
82
85
{
83
86
actionTrigger : notifyNats ,
84
87
targetTitle : "NATS" ,
85
- logo : "/ nats-logo.svg" ,
88
+ logo : ` ${ getImgBaseURL ( ) } nats-logo.svg` ,
86
89
category : DestType . Queue ,
87
90
} ,
88
91
{
89
92
actionTrigger : notifyMysql ,
90
93
targetTitle : "Mysql" ,
91
- logo : "/ mysql-logo.svg" ,
94
+ logo : ` ${ getImgBaseURL ( ) } mysql-logo.svg` ,
92
95
category : DestType . DB ,
93
96
} ,
94
97
{
95
98
actionTrigger : notifyElasticsearch ,
96
99
targetTitle : "Elastic Search" ,
97
- logo : "/ elasticsearch-logo.svg" ,
100
+ logo : ` ${ getImgBaseURL ( ) } elasticsearch-logo.svg` ,
98
101
category : DestType . DB ,
99
102
} ,
100
103
{
101
104
actionTrigger : notifyWebhooks ,
102
105
targetTitle : "Webhook" ,
103
- logo : "/ webhooks-logo.svg" ,
106
+ logo : ` ${ getImgBaseURL ( ) } webhooks-logo.svg` ,
104
107
category : DestType . Func ,
105
108
} ,
106
109
{
107
110
actionTrigger : notifyNsq ,
108
111
targetTitle : "NSQ" ,
109
- logo : "/ nsq-logo.svg" ,
112
+ logo : ` ${ getImgBaseURL ( ) } nsq-logo.svg` ,
110
113
category : DestType . Queue ,
111
114
} ,
112
115
] ;
0 commit comments