diff --git a/src/components/ApiInfo/ApiInfo.tsx b/src/components/ApiInfo/ApiInfo.tsx index fe595811..a16fe870 100644 --- a/src/components/ApiInfo/ApiInfo.tsx +++ b/src/components/ApiInfo/ApiInfo.tsx @@ -1,5 +1,6 @@ import { observer } from 'mobx-react'; import * as React from 'react'; +import { LinkWrap } from '../../../src/components/SearchBox/styled.elements'; import { AppStore } from '../../services/AppStore'; @@ -38,7 +39,7 @@ export class ApiInfo extends React.Component { const license = (info.license && ( - License: {info.license.name} + License: {info.license.name} )) || null; @@ -47,7 +48,7 @@ export class ApiInfo extends React.Component { (info.contact && info.contact.url && ( - URL: {info.contact.url} + URL: {info.contact.url} )) || null; @@ -57,7 +58,7 @@ export class ApiInfo extends React.Component { info.contact.email && ( {info.contact.name || 'E-mail'}:{' '} - {info.contact.email} + {info.contact.email} )) || null; @@ -65,7 +66,7 @@ export class ApiInfo extends React.Component { const terms = (info.termsOfService && ( - Terms of Service + Terms of Service )) || null; diff --git a/src/components/Endpoint/styled.elements.ts b/src/components/Endpoint/styled.elements.ts index 4241ff09..4b07ada9 100644 --- a/src/components/Endpoint/styled.elements.ts +++ b/src/components/Endpoint/styled.elements.ts @@ -58,7 +58,7 @@ export const ServersOverlay = styled.div<{ expanded: boolean }>` overflow: hidden; border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; - transition: all 0.25s ease; + transition: all 0s ease; ${props => (props.expanded ? '' : 'transform: translateY(-50%) scaleY(0);')} `; diff --git a/src/components/SearchBox/styled.elements.tsx b/src/components/SearchBox/styled.elements.tsx index 647e71c8..08dadf05 100644 --- a/src/components/SearchBox/styled.elements.tsx +++ b/src/components/SearchBox/styled.elements.tsx @@ -1,6 +1,5 @@ -import * as React from 'react'; - import { darken } from 'polished'; +import * as React from 'react'; import styled from '../../styled-components'; import { MenuItemLabel } from '../SideMenu/styled.elements'; @@ -8,6 +7,10 @@ export const SearchWrap = styled.div` padding: 5px 0; `; +export const LinkWrap = styled.a` + text-decoration: none; +`; + export const SearchInput = styled.input.attrs(() => ({ className: 'search-input', }))` @@ -17,10 +20,9 @@ export const SearchInput = styled.input.attrs(() => ({ padding: 5px ${props => props.theme.spacing.unit * 2}px 5px ${props => props.theme.spacing.unit * 4}px; border: 0; - border-bottom: 1px solid ${({ theme }) => darken(0.1, theme.menu.backgroundColor)}; - font-family: ${({ theme }) => theme.typography.fontFamily}; - font-weight: bold; - font-size: 13px; + border-bottom: 1px solid ${({theme}) => darken(0.1, theme.menu.backgroundColor)}; + font-family: ${({theme}) => theme.typography.fontFamily}; + font-size: 1em; color: ${props => props.theme.menu.textColor}; background-color: transparent; outline: none; @@ -28,14 +30,23 @@ export const SearchInput = styled.input.attrs(() => ({ export const SearchIcon = styled((props: { className?: string }) => ( - + + + )).attrs({ className: 'search-icon', diff --git a/src/components/SideMenu/SideMenu.tsx b/src/components/SideMenu/SideMenu.tsx index 7530e768..e69b1612 100644 --- a/src/components/SideMenu/SideMenu.tsx +++ b/src/components/SideMenu/SideMenu.tsx @@ -1,5 +1,6 @@ import { observer } from 'mobx-react'; import * as React from 'react'; +import { LinkWrap } from '../../../src/components/SearchBox/styled.elements'; import { PerfectScrollbarWrap } from '../../common-elements/perfect-scrollbar'; @@ -23,9 +24,9 @@ export class SideMenu extends React.Component<{ menu: MenuStore; className?: str > - + © Copyright 2019 OpenText Corp - + ); diff --git a/src/services/ServerStub.ts b/src/services/ServerStub.ts new file mode 100644 index 00000000..470a94b3 --- /dev/null +++ b/src/services/ServerStub.ts @@ -0,0 +1,10 @@ +interface ServerStub { + +} + +/** + * This class produces canned responses for a given OpenAPI spec + */ +export class OpenApiServerStub implements ServerStub { + +} diff --git a/src/services/__tests__/ServerStub.test.ts b/src/services/__tests__/ServerStub.test.ts new file mode 100644 index 00000000..985f7977 --- /dev/null +++ b/src/services/__tests__/ServerStub.test.ts @@ -0,0 +1,6 @@ +describe('ServerStub', () => { + test('TODO IMPLEMENT ME', () => { + const fn = jest.fn(); + expect(fn).toHaveBeenCalled(); + }); +}); diff --git a/src/theme.ts b/src/theme.ts index 2c44cf33..089ffd6c 100644 --- a/src/theme.ts +++ b/src/theme.ts @@ -64,15 +64,15 @@ const defaultTheme: ThemeInterface = { }, }, http: { - get: '#6bbd5b', - post: '#248fb2', - put: '#9b708b', - options: '#d3ca12', - patch: '#e09d43', - delete: '#e27a7a', + get: '#078db3', + post: '#006353', + put: '#eeb111', + options: '#7e929f', + patch: '#8cc53e', + delete: '#f05822', basic: '#999', link: '#31bbb6', - head: '#c167e4', + head: '#725ea6', }, }, schema: {