Skip to content

Commit 2e14cc6

Browse files
committed
update schema
1 parent c07d57e commit 2e14cc6

File tree

5 files changed

+0
-1032
lines changed

5 files changed

+0
-1032
lines changed

web/apps/web/src/stores/app/schema/condition-state-schema.ts

-74
Original file line numberDiff line numberDiff line change
@@ -186,82 +186,8 @@ export const conditionConfigSchema: ISchema = {
186186
},
187187
},
188188
},
189-
{
190-
target: 'default_value',
191-
when: '$this.value === "image"',
192-
fullfill: {
193-
schema: {
194-
'x-component': 'FileUpload',
195-
'x-component-props': {
196-
accept: ENABLE_MIME.image,
197-
},
198-
},
199-
},
200-
},
201-
{
202-
target: 'default_value',
203-
when: '$this.value === "audio"',
204-
fullfill: {
205-
schema: {
206-
'x-component': 'FileUpload',
207-
'x-component-props': {
208-
accept: ENABLE_MIME.audio,
209-
},
210-
},
211-
},
212-
},
213-
{
214-
target: 'default_value',
215-
when: '$this.value === "video"',
216-
fullfill: {
217-
schema: {
218-
'x-layout': 'Vertical',
219-
'x-component': 'FileUpload',
220-
'x-component-props': {
221-
accept: ENABLE_MIME.video,
222-
},
223-
},
224-
},
225-
},
226-
{
227-
target: 'default_value',
228-
when: '$this.value === "text_file"',
229-
fullfill: {
230-
schema: {
231-
'x-layout': 'Vertical',
232-
'x-component': 'FileUpload',
233-
'x-component-props': {
234-
accept: ENABLE_MIME.other,
235-
},
236-
},
237-
},
238-
},
239-
{
240-
target: 'default_value',
241-
when: '$this.value === "file"',
242-
fullfill: {
243-
schema: {
244-
'x-layout': 'Vertical',
245-
'x-component': 'FileUpload',
246-
'x-component-props': {
247-
accept: ENABLE_MIME.all,
248-
},
249-
},
250-
},
251-
},
252189
],
253190
},
254-
default_value: {
255-
type: 'string',
256-
title: 'Default Value',
257-
'x-component': 'Textarea',
258-
'x-raw': true,
259-
'x-type': 'Control',
260-
'x-component-props': {
261-
size: 'sm',
262-
},
263-
'x-class': 'border-0 bg-inherit rounded-lg p-0 pt-3',
264-
},
265191
value: {
266192
type: 'string',
267193
title: 'Value',

web/apps/web/src/stores/app/schema/form-config.ts

-78
Original file line numberDiff line numberDiff line change
@@ -120,73 +120,6 @@ export const formConfigSchema: ISchema = {
120120
'x-onchange-prop-name': 'onValueChange',
121121
'x-type': 'Control',
122122
'x-reactions': [
123-
{
124-
target: 'value',
125-
when: '$this.value === "image"',
126-
fullfill: {
127-
schema: {
128-
'x-raw': true,
129-
'x-layout': 'Vertical',
130-
'x-component': 'FileUpload',
131-
'x-component-props': {
132-
accept: ENABLE_MIME.image,
133-
},
134-
},
135-
},
136-
},
137-
{
138-
target: 'value',
139-
when: '$this.value === "audio"',
140-
fullfill: {
141-
schema: {
142-
'x-raw': true,
143-
'x-layout': 'Vertical',
144-
'x-component': 'FileUpload',
145-
'x-component-props': {
146-
accept: ENABLE_MIME.audio,
147-
},
148-
},
149-
},
150-
},
151-
{
152-
target: 'value',
153-
when: '$this.value === "video"',
154-
fullfill: {
155-
schema: {
156-
'x-layout': 'Vertical',
157-
'x-component': 'FileUpload',
158-
'x-component-props': {
159-
accept: ENABLE_MIME.video,
160-
},
161-
},
162-
},
163-
},
164-
{
165-
target: 'value',
166-
when: '$this.value === "text_file"',
167-
fullfill: {
168-
schema: {
169-
'x-layout': 'Vertical',
170-
'x-component': 'FileUpload',
171-
'x-component-props': {
172-
accept: ENABLE_MIME.other,
173-
},
174-
},
175-
},
176-
},
177-
{
178-
target: 'value',
179-
when: '$this.value === "file"',
180-
fullfill: {
181-
schema: {
182-
'x-layout': 'Vertical',
183-
'x-component': 'FileUpload',
184-
'x-component-props': {
185-
accept: ENABLE_MIME.all,
186-
},
187-
},
188-
},
189-
},
190123
{
191124
target: 'default_value',
192125
when: '$this.value === "image"',
@@ -379,17 +312,6 @@ export const formConfigSchema: ISchema = {
379312
},
380313
'x-class': 'border-0 bg-inherit rounded-lg p-0 pt-3',
381314
},
382-
value: {
383-
type: 'string',
384-
title: 'Value',
385-
'x-component': 'Textarea',
386-
'x-raw': true,
387-
'x-type': 'Control',
388-
'x-component-props': {
389-
size: 'sm',
390-
},
391-
'x-class': 'border-0 bg-inherit rounded-lg p-0 pt-3',
392-
},
393315
description: {
394316
type: 'string',
395317
title: 'Description',

web/apps/web/src/stores/app/schema/state-config.ts

-74
Original file line numberDiff line numberDiff line change
@@ -187,82 +187,8 @@ export const stateConfigSchema: ISchema = {
187187
},
188188
},
189189
},
190-
{
191-
target: 'default_value',
192-
when: '$this.value === "image"',
193-
fullfill: {
194-
schema: {
195-
'x-component': 'FileUpload',
196-
'x-component-props': {
197-
accept: ENABLE_MIME.image,
198-
},
199-
},
200-
},
201-
},
202-
{
203-
target: 'default_value',
204-
when: '$this.value === "audio"',
205-
fullfill: {
206-
schema: {
207-
'x-component': 'FileUpload',
208-
'x-component-props': {
209-
accept: ENABLE_MIME.audio,
210-
},
211-
},
212-
},
213-
},
214-
{
215-
target: 'default_value',
216-
when: '$this.value === "video"',
217-
fullfill: {
218-
schema: {
219-
'x-layout': 'Vertical',
220-
'x-component': 'FileUpload',
221-
'x-component-props': {
222-
accept: ENABLE_MIME.video,
223-
},
224-
},
225-
},
226-
},
227-
{
228-
target: 'default_value',
229-
when: '$this.value === "text_file"',
230-
fullfill: {
231-
schema: {
232-
'x-layout': 'Vertical',
233-
'x-component': 'FileUpload',
234-
'x-component-props': {
235-
accept: ENABLE_MIME.other,
236-
},
237-
},
238-
},
239-
},
240-
{
241-
target: 'default_value',
242-
when: '$this.value === "file"',
243-
fullfill: {
244-
schema: {
245-
'x-layout': 'Vertical',
246-
'x-component': 'FileUpload',
247-
'x-component-props': {
248-
accept: ENABLE_MIME.all,
249-
},
250-
},
251-
},
252-
},
253190
],
254191
},
255-
default_value: {
256-
type: 'string',
257-
title: 'Default Value',
258-
'x-component': 'Textarea',
259-
'x-raw': true,
260-
'x-type': 'Control',
261-
'x-component-props': {
262-
size: 'sm',
263-
},
264-
'x-class': 'border-0 bg-inherit rounded-lg p-0 pt-3',
265-
},
266192
value: {
267193
type: 'string',
268194
title: 'Value',

web/apps/web/src/stores/app/schema/x-state-config.ts

-74
Original file line numberDiff line numberDiff line change
@@ -185,82 +185,8 @@ export const xStateConfigSchema: ISchema = {
185185
},
186186
},
187187
},
188-
{
189-
target: 'default_value',
190-
when: '$this.value === "image"',
191-
fullfill: {
192-
schema: {
193-
'x-component': 'FileUpload',
194-
'x-component-props': {
195-
accept: ENABLE_MIME.image,
196-
},
197-
},
198-
},
199-
},
200-
{
201-
target: 'default_value',
202-
when: '$this.value === "audio"',
203-
fullfill: {
204-
schema: {
205-
'x-component': 'FileUpload',
206-
'x-component-props': {
207-
accept: ENABLE_MIME.audio,
208-
},
209-
},
210-
},
211-
},
212-
{
213-
target: 'default_value',
214-
when: '$this.value === "video"',
215-
fullfill: {
216-
schema: {
217-
'x-layout': 'Vertical',
218-
'x-component': 'FileUpload',
219-
'x-component-props': {
220-
accept: ENABLE_MIME.video,
221-
},
222-
},
223-
},
224-
},
225-
{
226-
target: 'default_value',
227-
when: '$this.value === "text_file"',
228-
fullfill: {
229-
schema: {
230-
'x-layout': 'Vertical',
231-
'x-component': 'FileUpload',
232-
'x-component-props': {
233-
accept: ENABLE_MIME.other,
234-
},
235-
},
236-
},
237-
},
238-
{
239-
target: 'default_value',
240-
when: '$this.value === "file"',
241-
fullfill: {
242-
schema: {
243-
'x-layout': 'Vertical',
244-
'x-component': 'FileUpload',
245-
'x-component-props': {
246-
accept: ENABLE_MIME.all,
247-
},
248-
},
249-
},
250-
},
251188
],
252189
},
253-
default_value: {
254-
type: 'string',
255-
title: 'Default Value',
256-
'x-component': 'Textarea',
257-
'x-raw': true,
258-
'x-type': 'Control',
259-
'x-component-props': {
260-
size: 'sm',
261-
},
262-
'x-class': 'border-0 bg-inherit rounded-lg p-0 pt-3',
263-
},
264190
value: {
265191
type: 'string',
266192
title: 'Value',

0 commit comments

Comments
 (0)