mirror of
https://github.com/ToolJet/ToolJet
synced 2026-04-29 01:17:24 +00:00
* Initial commit for data query schema changes * db: add mssql schema * api: add graphql schema * api: add redis data query editor * db: add my sql db * api: dataquery - add airtable api schema * api: dataquery - add dynamodb api schema * database: dataquery - add database api schema * database: dataquery - add elastic search api schema * database: dataquery - add mongo db schema * database: dataquery - add postgre sql schema * api: dataquery - add slack schema * api: dataquery - add google sheets schema * database: dataquery - add gcs schema * fix: dynamodb styles * fix: elastic search styles * fix: firestore styles * fix: remove line numbers + add className prop + add initialValue prop * remove line numbers * cleanup: remove jsx files of data queries * cleanup: fix merge conflicts * fix: on edit dropdowns not retaining value * fix: remove unnecessary log statement
55 lines
2.2 KiB
JavaScript
55 lines
2.2 KiB
JavaScript
import React from 'react';
|
|
|
|
import DynamicForm from '@/_components/DynamicForm';
|
|
|
|
import { Restapi } from './Restapi';
|
|
import { Stripe } from './Stripe';
|
|
|
|
import MysqlSchema from './Mysql.schema.json';
|
|
import MssqlSchema from './Mssql.schema.json';
|
|
import GraphqlSchema from './Graphql.schema.json';
|
|
import RedisSchema from './Redis.schema.json';
|
|
import AirtableSchema from './Airtable.schema.json';
|
|
import DynamodbSchema from './Dynamodb.schema.json';
|
|
import FirestoreSchema from './Firestore.schema.json';
|
|
import ElasticsearchSchema from './Elasticsearch.schema.json';
|
|
import MongodbSchema from './Mongodb.schema.json';
|
|
import PostgresqlSchema from './Postgresql.schema.json';
|
|
import SlackSchema from './Slack.schema.json';
|
|
import S3Schema from './S3.schema.json';
|
|
import GooglesheetsSchema from './Googlesheets.schema.json';
|
|
import GcsSchema from './Gcs.schema.json';
|
|
|
|
const Mysql = ({ ...rest }) => <DynamicForm schema={MysqlSchema} {...rest} />;
|
|
const Mssql = ({ ...rest }) => <DynamicForm schema={MssqlSchema} {...rest} />;
|
|
const Graphql = ({ ...rest }) => <DynamicForm schema={GraphqlSchema} {...rest} />;
|
|
const Redis = ({ ...rest }) => <DynamicForm schema={RedisSchema} {...rest} />;
|
|
const Airtable = ({ ...rest }) => <DynamicForm schema={AirtableSchema} {...rest} />;
|
|
const Dynamodb = ({ ...rest }) => <DynamicForm schema={DynamodbSchema} {...rest} />;
|
|
const Firestore = ({ ...rest }) => <DynamicForm schema={FirestoreSchema} {...rest} />;
|
|
const Elasticsearch = ({ ...rest }) => <DynamicForm schema={ElasticsearchSchema} {...rest} />;
|
|
const Mongodb = ({ ...rest }) => <DynamicForm schema={MongodbSchema} {...rest} />;
|
|
const Postgresql = ({ ...rest }) => <DynamicForm schema={PostgresqlSchema} {...rest} />;
|
|
const Slack = ({ ...rest }) => <DynamicForm schema={SlackSchema} {...rest} />;
|
|
const S3 = ({ ...rest }) => <DynamicForm schema={S3Schema} {...rest} />;
|
|
const Googlesheets = ({ ...rest }) => <DynamicForm schema={GooglesheetsSchema} {...rest} />;
|
|
const Gcs = ({ ...rest }) => <DynamicForm schema={GcsSchema} {...rest} />;
|
|
|
|
export const allSources = {
|
|
Restapi,
|
|
Stripe,
|
|
Mysql,
|
|
Postgresql,
|
|
Firestore,
|
|
Redis,
|
|
Googlesheets,
|
|
Elasticsearch,
|
|
Slack,
|
|
Mongodb,
|
|
Dynamodb,
|
|
Airtable,
|
|
Graphql,
|
|
Mssql,
|
|
S3,
|
|
Gcs,
|
|
};
|