You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/mui-component-mapper/demo/demo-schemas/widget-schema.js
-314Lines changed: 0 additions & 314 deletions
Original file line number
Diff line number
Diff line change
@@ -84,317 +84,3 @@ export const schema = {
84
84
}
85
85
}
86
86
};
87
-
88
-
exportconstuiSchema={
89
-
boolean: {
90
-
radio: {
91
-
'ui:widget': 'radio'
92
-
},
93
-
select: {
94
-
'ui:widget': 'select'
95
-
}
96
-
},
97
-
string: {
98
-
textarea: {
99
-
'ui:widget': 'textarea',
100
-
'ui:options': {
101
-
rows: 5
102
-
}
103
-
},
104
-
color: {
105
-
'ui:widget': 'color'
106
-
}
107
-
},
108
-
secret: {
109
-
'ui:widget': 'hidden'
110
-
},
111
-
disabled: {
112
-
'ui:disabled': true
113
-
},
114
-
readonly: {
115
-
'ui:readonly': true
116
-
},
117
-
widgetOptions: {
118
-
'ui:options': {
119
-
backgroundColor: 'yellow'
120
-
}
121
-
},
122
-
selectWidgetOptions: {
123
-
'ui:options': {
124
-
backgroundColor: 'pink'
125
-
}
126
-
}
127
-
};
128
-
129
-
exportconstconditionalSchema={
130
-
title: 'Web hook',
131
-
description: 'This web hook allows us to send a JSON object from the service portal',
132
-
type: 'object',
133
-
required: ['url','secret'],
134
-
definitions: {
135
-
Authentications: {
136
-
title: 'Authentications',
137
-
type: 'string',
138
-
anyOf: [
139
-
{
140
-
type: 'string',
141
-
enum: ['oauth'],
142
-
title: 'OAuth 2.0'
143
-
},
144
-
{
145
-
type: 'string',
146
-
enum: ['basic'],
147
-
title: 'Basic Authentication'
148
-
},
149
-
{
150
-
type: 'string',
151
-
enum: ['none'],
152
-
title: 'No Authentication needed'
153
-
}
154
-
]
155
-
}
156
-
},
157
-
properties: {
158
-
url: {
159
-
type: 'string',
160
-
title: 'URL',
161
-
description: 'The URL which will be receving this request',
162
-
pattern: '^(http|https)://*'
163
-
},
164
-
verify_ssl: {
165
-
// eslint-disable-line camelcase
166
-
type: 'boolean',
167
-
default: true,
168
-
title: 'Verify Server Certificate'
169
-
},
170
-
secret: {
171
-
type: 'string',
172
-
title: 'Secret',
173
-
description: 'If specified we will create a HMAC signature of the body with the secret and include it in the HTTP Header X-Service-Portal-Signature'// eslint-disable-line
174
-
},
175
-
authentication: {
176
-
$ref: '#/definitions/Authentications',
177
-
title: 'Authentication',
178
-
default: 'none'
179
-
}
180
-
},
181
-
dependencies: {
182
-
authentication: {
183
-
oneOf: [
184
-
{
185
-
properties: {
186
-
authentication: {
187
-
enum: ['none']
188
-
}
189
-
}
190
-
},
191
-
{
192
-
properties: {
193
-
authentication: {
194
-
enum: ['oauth']
195
-
},
196
-
token: {
197
-
type: 'string',
198
-
title: 'Bearer Token',
199
-
description: 'For OAuth 2.0 authentication please provide a token'
200
-
}
201
-
}
202
-
},
203
-
{
204
-
properties: {
205
-
authentication: {
206
-
enum: ['basic']
207
-
},
208
-
userid: {
209
-
type: 'string',
210
-
title: 'Username',
211
-
description: 'For basic authentication please provide a userid'
212
-
},
213
-
password: {
214
-
type: 'string',
215
-
title: 'Password',
216
-
format: 'password',
217
-
description: 'For basic authentication please provide a password'
0 commit comments