mirror of
https://github.com/apache/superset.git
synced 2024-09-06 22:07:34 -04:00
chore: Remove StyledQueryButton.less (#19441)
* Remove StyledQueryButton less * Remove unused className
This commit is contained in:
parent
0de03c4b34
commit
b601db7809
@ -1,39 +0,0 @@
|
|||||||
/**
|
|
||||||
* Licensed to the Apache Software Foundation (ASF) under one
|
|
||||||
* or more contributor license agreements. See the NOTICE file
|
|
||||||
* distributed with this work for additional information
|
|
||||||
* regarding copyright ownership. The ASF licenses this file
|
|
||||||
* to you under the Apache License, Version 2.0 (the
|
|
||||||
* "License"); you may not use this file except in compliance
|
|
||||||
* with the License. You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing,
|
|
||||||
* software distributed under the License is distributed on an
|
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
* KIND, either express or implied. See the License for the
|
|
||||||
* specific language governing permissions and limitations
|
|
||||||
* under the License.
|
|
||||||
*/
|
|
||||||
// -------------------------------------------------------------
|
|
||||||
// Glyphicons are not supported and used by react-json-schema
|
|
||||||
// -------------------------------------------------------------
|
|
||||||
.json-schema {
|
|
||||||
i.glyphicon {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
.btn-add::after {
|
|
||||||
content: '+';
|
|
||||||
}
|
|
||||||
.array-item-move-up::after {
|
|
||||||
content: '↑';
|
|
||||||
}
|
|
||||||
.array-item-move-down::after {
|
|
||||||
content: '↓';
|
|
||||||
}
|
|
||||||
.array-item-remove::after {
|
|
||||||
content: '-';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
// -------------------------------------------------------------
|
|
@ -24,7 +24,6 @@ import { t, styled } from '@superset-ui/core';
|
|||||||
import * as chrono from 'chrono-node';
|
import * as chrono from 'chrono-node';
|
||||||
import ModalTrigger from 'src/components/ModalTrigger';
|
import ModalTrigger from 'src/components/ModalTrigger';
|
||||||
import { Form, FormItem } from 'src/components/Form';
|
import { Form, FormItem } from 'src/components/Form';
|
||||||
import './ScheduleQueryButton.less';
|
|
||||||
import Button from 'src/components/Button';
|
import Button from 'src/components/Button';
|
||||||
|
|
||||||
const appContainer = document.getElementById('app');
|
const appContainer = document.getElementById('app');
|
||||||
@ -111,6 +110,24 @@ export const StyledButtonComponent = styled(Button)`
|
|||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
|
const StyledJsonSchema = styled.div`
|
||||||
|
i.glyphicon {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
.btn-add::after {
|
||||||
|
content: '+';
|
||||||
|
}
|
||||||
|
.array-item-move-up::after {
|
||||||
|
content: '↑';
|
||||||
|
}
|
||||||
|
.array-item-move-down::after {
|
||||||
|
content: '↓';
|
||||||
|
}
|
||||||
|
.array-item-remove::after {
|
||||||
|
content: '-';
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
const ScheduleQueryButton: FunctionComponent<ScheduleQueryButtonProps> = ({
|
const ScheduleQueryButton: FunctionComponent<ScheduleQueryButtonProps> = ({
|
||||||
defaultLabel = t('Undefined'),
|
defaultLabel = t('Undefined'),
|
||||||
sql,
|
sql,
|
||||||
@ -175,7 +192,7 @@ const ScheduleQueryButton: FunctionComponent<ScheduleQueryButtonProps> = ({
|
|||||||
</StyledRow>
|
</StyledRow>
|
||||||
<Row>
|
<Row>
|
||||||
<Col xs={24}>
|
<Col xs={24}>
|
||||||
<div className="json-schema">
|
<StyledJsonSchema>
|
||||||
<SchemaForm
|
<SchemaForm
|
||||||
schema={getJSONSchema()}
|
schema={getJSONSchema()}
|
||||||
uiSchema={getUISchema}
|
uiSchema={getUISchema}
|
||||||
@ -190,7 +207,7 @@ const ScheduleQueryButton: FunctionComponent<ScheduleQueryButtonProps> = ({
|
|||||||
Submit
|
Submit
|
||||||
</Button>
|
</Button>
|
||||||
</SchemaForm>
|
</SchemaForm>
|
||||||
</div>
|
</StyledJsonSchema>
|
||||||
</Col>
|
</Col>
|
||||||
</Row>
|
</Row>
|
||||||
{scheduleQueryWarning && (
|
{scheduleQueryWarning && (
|
||||||
|
Loading…
Reference in New Issue
Block a user