Skip to content

Commit bea2c7b

Browse files
committed
Add Converters
1 parent ebec6a6 commit bea2c7b

File tree

3 files changed

+27
-26
lines changed

3 files changed

+27
-26
lines changed

components/TextBox.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@ export const TextBox = ({
2121
}: {
2222
title: string;
2323
code: string;
24-
editor?: Dispatch<SetStateAction<string>>;
24+
editor?: Dispatch<SetStateAction<string>> | ((config: string) => void);
2525
language: string;
2626
}) => {
2727
if (!editor) {
2828
return (
2929
<div css={tw`flex flex-col h-full w-full pt-1 text-white`}>
30-
<div css={tw`flex flex-row pl-2`}>
30+
<div css={tw`flex flex-row pl-8`}>
3131
<p css={tw`text-xl font-semibold mx-auto mb-2`}>{title}</p>
32-
<div css={tw`flex flex-row h-8`}>
32+
<div css={tw`flex flex-row h-8 w-8`}>
3333
<div
3434
css={tw`py-1 px-2 bg-green-400 rounded-md hover:cursor-pointer`}
3535
onClick={() => {

converters/types/essentialschat.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,20 @@
55
"EssentialsChatTypes": {
66
"type": "object",
77
"properties": {
8-
"config": {
8+
"essentials": {
99
"$ref": "#/definitions/EssentialsChatConfig"
1010
},
1111
"language": {
1212
"type": "object",
1313
"properties": {
1414
"msgFormat": {
1515
"type": "string"
16-
},
17-
"socialSpyMsgFormat": {
18-
"type": "string"
1916
}
2017
}
2118
}
2219
},
2320
"required": [
24-
"config",
21+
"essentials",
2522
"language"
2623
]
2724
},

converters/types/venturechat.json

Lines changed: 22 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,34 @@
11
{
22
"$schema": "http://json-schema.org/draft-07/schema#",
3-
"$ref": "#/definitions/VentureChatConfig",
3+
"$ref": "#/definitions/VentureChat",
44
"definitions": {
5-
"VentureChatConfig": {
5+
"VentureChat": {
66
"type": "object",
77
"properties": {
8-
"tellformatto": {
9-
"type": "string"
10-
},
11-
"tellformatfrom": {
12-
"type": "string"
13-
},
14-
"tellformatspy": {
15-
"type": "string"
16-
},
17-
"jsonformatting": {
8+
"venturechat": {
189
"type": "object",
19-
"additionalProperties": {
20-
"$ref": "#/definitions/VentureChatFormat"
21-
}
10+
"properties": {
11+
"tellformatto": {
12+
"type": "string"
13+
},
14+
"tellformatfrom": {
15+
"type": "string"
16+
},
17+
"jsonformatting": {
18+
"type": "object",
19+
"additionalProperties": {
20+
"$ref": "#/definitions/VentureChatFormat"
21+
}
22+
}
23+
},
24+
"required": [
25+
"tellformatto",
26+
"tellformatfrom"
27+
]
2228
}
2329
},
2430
"required": [
25-
"tellformatto",
26-
"tellformatfrom",
27-
"tellformatspy"
31+
"venturechat"
2832
]
2933
},
3034
"VentureChatFormat": {

0 commit comments

Comments
 (0)