File tree Expand file tree Collapse file tree 9 files changed +50
-16
lines changed Expand file tree Collapse file tree 9 files changed +50
-16
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,9 @@ const ChatChatDeluxeChatConverter = new Converter<
31
31
"recipient-format" : {
32
32
parts : [ ] ,
33
33
} ,
34
+ "social-spy-format" : {
35
+ parts : [ ] ,
36
+ } ,
34
37
} ;
35
38
if ( deluxechatConfig . formats ) {
36
39
const formats = deluxechatConfig . formats ;
@@ -121,6 +124,17 @@ const ChatChatDeluxeChatConverter = new Converter<
121
124
break ;
122
125
}
123
126
} ) ;
127
+
128
+ if ( formats . social_spy ) {
129
+ const socialSpyFormat = formats . social_spy ;
130
+ const ccSocialSpyPartsFormat : string [ ] = [ ] ;
131
+
132
+ ccSocialSpyPartsFormat . push ( MiniMessage ( socialSpyFormat ) ) ;
133
+ ccSocialSpyPartsFormat . push ( "<message>" ) ;
134
+
135
+ chatchatSettingsConfig [ "social-spy-format" ] . parts =
136
+ ccSocialSpyPartsFormat ;
137
+ }
124
138
}
125
139
126
140
return {
Original file line number Diff line number Diff line change @@ -25,6 +25,9 @@ const ChatChatEssentialsChatConverter = new Converter<
25
25
"recipient-format" : {
26
26
parts : [ ] ,
27
27
} ,
28
+ "social-spy-format" : {
29
+ parts : [ ] ,
30
+ } ,
28
31
} ;
29
32
30
33
if (
@@ -71,6 +74,12 @@ const ChatChatEssentialsChatConverter = new Converter<
71
74
) ;
72
75
}
73
76
77
+ if ( essentialschatConfig . language . socialSpyMsgFormat ) {
78
+ chatchatSettingsConfig [ "social-spy-format" ] . parts . push (
79
+ MiniMessage ( essentialschatConfig . language . socialSpyMsgFormat )
80
+ ) ;
81
+ }
82
+
74
83
return {
75
84
format : chatchatFormatsConfig ,
76
85
settings : chatchatSettingsConfig ,
Original file line number Diff line number Diff line change @@ -25,6 +25,9 @@ const ChatChatVentureChatConverter = new Converter<
25
25
"recipient-format" : {
26
26
parts : [ ] ,
27
27
} ,
28
+ "social-spy-format" : {
29
+ parts : [ ] ,
30
+ } ,
28
31
} ;
29
32
30
33
if ( venturechatConfig . jsonformatting ) {
@@ -93,6 +96,7 @@ const ChatChatVentureChatConverter = new Converter<
93
96
94
97
const toFormat = venturechatConfig . tellformatto ;
95
98
const fromFormat = venturechatConfig . tellformatfrom ;
99
+ const spyFormat = venturechatConfig . tellformatspy ;
96
100
97
101
let ccPartsFormat : string [ ] = [ ] ;
98
102
@@ -109,6 +113,14 @@ const ChatChatVentureChatConverter = new Converter<
109
113
ccPartsFormat . push ( "<message>" ) ;
110
114
chatchatSettingsConfig [ "recipient-format" ] . parts = ccPartsFormat ;
111
115
116
+ // Reset
117
+ ccPartsFormat = [ ] ;
118
+
119
+ // The spy format
120
+ ccPartsFormat . push ( MiniMessage ( fromFormat ) ) ;
121
+ ccPartsFormat . push ( "<message>" ) ;
122
+ chatchatSettingsConfig [ "social-spy-format" ] . parts = ccPartsFormat ;
123
+
112
124
return {
113
125
format : chatchatFormatsConfig ,
114
126
settings : chatchatSettingsConfig ,
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ export type ChatChatFormat = {
12
12
export interface ChatChatSettingsConfig {
13
13
"sender-format" : ChatChatParts ;
14
14
"recipient-format" : ChatChatParts ;
15
+ "social-spy-format" : ChatChatParts ;
15
16
}
16
17
17
18
export interface ChatChatParts {
Original file line number Diff line number Diff line change 5
5
"EssentialsChatTypes" : {
6
6
"type" : " object" ,
7
7
"properties" : {
8
- "essentials " : {
8
+ "config " : {
9
9
"$ref" : " #/definitions/EssentialsChatConfig"
10
10
},
11
11
"language" : {
12
12
"type" : " object" ,
13
13
"properties" : {
14
14
"msgFormat" : {
15
15
"type" : " string"
16
+ },
17
+ "socialSpyMsgFormat" : {
18
+ "type" : " string"
16
19
}
17
20
}
18
21
}
19
22
},
20
23
"required" : [
21
- " essentials " ,
24
+ " config " ,
22
25
" language"
23
26
]
24
27
},
Original file line number Diff line number Diff line change @@ -13,5 +13,6 @@ export interface EssentialsChatTypes {
13
13
essentials : EssentialsChatConfig ;
14
14
language : {
15
15
msgFormat ?: string ;
16
+ socialSpyMsgFormat ?: string ;
16
17
} ;
17
18
}
Original file line number Diff line number Diff line change 1
1
{
2
2
"$schema" : " http://json-schema.org/draft-07/schema#" ,
3
- "$ref" : " #/definitions/VentureChat " ,
3
+ "$ref" : " #/definitions/VentureChatConfig " ,
4
4
"definitions" : {
5
- "VentureChat" : {
6
- "type" : " object" ,
7
- "properties" : {
8
- "venturechat" : {
9
- "$ref" : " #/definitions/VentureChatConfig"
10
- }
11
- },
12
- "required" : [
13
- " venturechat"
14
- ]
15
- },
16
5
"VentureChatConfig" : {
17
6
"type" : " object" ,
18
7
"properties" : {
22
11
"tellformatfrom" : {
23
12
"type" : " string"
24
13
},
14
+ "tellformatspy" : {
15
+ "type" : " string"
16
+ },
25
17
"jsonformatting" : {
26
18
"type" : " object" ,
27
19
"additionalProperties" : {
31
23
},
32
24
"required" : [
33
25
" tellformatto" ,
34
- " tellformatfrom"
26
+ " tellformatfrom" ,
27
+ " tellformatspy"
35
28
]
36
29
},
37
30
"VentureChatFormat" : {
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ export interface VentureChat {
7
7
export interface VentureChatConfig {
8
8
tellformatto : string ;
9
9
tellformatfrom : string ;
10
+ tellformatspy : string ;
10
11
jsonformatting ?: {
11
12
[ key : string ] : VentureChatFormat ;
12
13
} ;
Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ function ToolboxCard({
83
83
link : string ;
84
84
} ) {
85
85
return (
86
- < Link href = { link } >
86
+ < Link href = { link } passHref >
87
87
< div
88
88
css = { tw `p-3 rounded-md bg-white/20 text-white hover:cursor-pointer width[13rem] h-48 block grid grid-cols-1 place-items-center` }
89
89
>
You can’t perform that action at this time.
0 commit comments