Skip to content

Commit 3b70a89

Browse files
aliicewongkatesmatthews
authored andcommitted
New generate query (#38)
* Ability to detect selecting all columns in a db * Reset Query clears error message * Ability to create multiple joins on a table * Account for alias being same initial * Account for same letter alias
1 parent f927aa6 commit 3b70a89

File tree

9 files changed

+450
-265
lines changed

9 files changed

+450
-265
lines changed

app/components/Login.tsx

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import * as React from 'react';
2+
import styled, { keyframes } from 'styled-components';
23
import { useState, useEffect } from 'react';
34
import styled from 'styled-components';
45
import { Redirect } from 'react-router-dom';
@@ -32,13 +33,22 @@ const Panel = styled.div`
3233
align-items: center;
3334
`;
3435

36+
const funtimes = keyframes`
37+
0%{background-position:0% 50%}
38+
50%{background-position:100% 50%}
39+
100%{background-position:0% 50%}
40+
`;
41+
3542
const LeftPanel = styled(Panel)`
36-
background-color: #013243;
37-
color: #f2f1ef;
43+
background-color: white;
44+
color: white;
45+
animation: ${funtimes} 8s ease infinite;
46+
background: linear-gradient(270deg, #49cefe, #c647bc);
47+
background-size: 400% 400%;
3848
`;
3949

4050
const RightPanel = styled(Panel)`
41-
background-color: #f2f1ef;
51+
background-color: white;
4252
`;
4353

4454
const LoginContainer = styled.div`
@@ -70,11 +80,11 @@ const LoginTypeButton = styled.button<LoginTypeButtonProps>`
7080
border: none;
7181
border-bottom: ${({ selectedLoginType, buttonType }) =>
7282
selectedLoginType === buttonType
73-
? '3px solid #013243'
83+
? '3px solid #E55982'
7484
: '3px solid transparent'};
7585
transition: 0.3s;
7686
:hover {
77-
border-bottom: 3px solid #013243;
87+
border-bottom: 3px solid #e55982;
7888
cursor: pointer;
7989
}
8090
:focus {

app/components/mainpanel/QueryResults.tsx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ const QueryResultWrapper = styled.div`
1212
height: 60vh;
1313
`;
1414

15+
const reactTableStyle = {
16+
fontSize: '60%',
17+
backgroundColor: 'transparent'
18+
};
19+
1520
interface IQueryResult {
1621
status: string;
1722
message: any[];
@@ -37,7 +42,11 @@ const QueryResults: React.SFC<IQueryResultsProps> = ({ queryResult }) => {
3742
return (
3843
<QueryResultWrapper>
3944
{queryResult.message.length > 0 && (
40-
<ReactTable data={queryResult.message} columns={columns} />
45+
<ReactTable
46+
style={reactTableStyle}
47+
data={queryResult.message}
48+
columns={columns}
49+
/>
4150
)}
4251
{queryResult.message.length === 0 &&
4352
queryResult.status === 'No results' && (

0 commit comments

Comments
 (0)