Skip to content

Commit e5073d6

Browse files
author
Phillip Lorenzo
authoredMay 6, 2019
Develop (#26)
* UI changes, BleSchema update * rethinking of state and props relationship * Change to state and props * state updated with sidenav and methodOutput props * full update of state management * refactor to setState call * Layout update * update props for method output view * state update with new sidenav and method output view management * quick clean up and setup for output view * complete update of output view and nav * add anchors to method names, clean up state and comments * set up product state change * Add intro component and aligned properties and enumerations in table * Update readme * add styling update conform with XYO style guide and update output render * Update output description alignment * add padding, border to columns, adjust info component, update to link target, font styling * col update * styling changes to row * set up side nav to be sticky, dependency clean up * output view update * update font for output and sidenav views * add gitter support * code and file cleanup * update code styling * Added Font awesome * Cleaned up main container styling * Added font awesome * Changed background color for nav per Pao's request * Reorganized the components to fit style I wanted * update simple smoke tests, upate sidenav sticky * update header color * add new testing setup and update in-line style selector syntax * header style update * add sideNav layout component, setup state change, add swift schema * slightly working state change * State change fixed for product * add dummy data * update brand with xyo devs logo * added gulp deploy script * Added config to ignore * update gulpfile, add deploy script, add aws config * small navlink fix * clean up state * add possible state change method, code cleaning * add smooth scrolling * add button and updated style * navbar update * add swift functions, identify function display issue * update BLE schema * update ble android schema * add more scanner classes to ble android schema * start making new output view for node package sdk * node render works with current method output view * updated with sandbox view connected to github repo * update sandbox repo * clean up * update style for codesandbox * udpate dev portal logo alt attr * add meta tags * typo fix * remove chat from node view * change language state to platform state, change method view to add properties, prep for reorganization of super class and child objects * add dropdown toggle to sidenav * update cursor, nabv is sticky again, nav color update * clean up some unecessary mapping * update node schema, ble schema, and method output view * change cursor back to pointer update react * add stateless collapse, need to fix with the map * part one of platform view state change * add node to platform change * collapse fixed * small style changesand navbar improvement * part one of function display fix * node pkg update * Fixed issue with scroll going under the header * adjust size for toggle sidenav * removed excess css * double nav fixed, working on responsive issues and spacing * css restore * nav fix * Responsiveness on the Reference Page * update to schema * update branch to master for final production build * add travis * code clean up * prep for testing * update sdk core kotlin to schema * refactor: update to bound witness and zigzag bound witness session * feat: add data, chores: clean code (#25) * docs: update functions
1 parent 185d6fd commit e5073d6

11 files changed

+434
-78
lines changed
 

‎gulpfile.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const exec = util.promisify(childProcess.exec)
1111
const { s3BucketName, region, cloudFrontDistributionId } = config
1212

1313
const confirmProductionBranch = async () => {
14-
const BRANCH_TO_TEST = 'master'
14+
const BRANCH_TO_TEST = 'develop'
1515
console.log(`Confirming current branch is set to ${BRANCH_TO_TEST}`)
1616

1717
try {

‎src/App.css

+2-6
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,6 @@ img {
3939
box-shadow: 0 12px 16px 0 rgba(0,0,0,0.24), 0 17px 50px 0 rgba(0,0,0,0.19);
4040
}
4141

42-
/* a.dropdown-toggle.nav-link:hover {
43-
-webkit-transition-duration: 0.4s;
44-
transition-duration: 0.4s;
45-
box-shadow: 0 12px 16px 0 rgba(255,255,255), 0 17px 50px 0 rgba(255,255,255);
46-
} */
47-
4842
.item {
4943
margin: 30px 0;
5044
}
@@ -90,3 +84,5 @@ img {
9084
.bg-navy {
9185
background: #141631
9286
}
87+
88+

‎src/App.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ const swiftCoreObjectState = swiftObject[0]
1818
const nodePkgObjectState = nodeObject[0]
1919
const kotlinObjectState = kotlinObject[0]
2020

21-
22-
2321
class App extends Component {
2422

23+
// something like const [methods] = useState(kotlinBleProductState.modules) ???
24+
2525
constructor(props) {
2626
super(props)
2727
this.state = {

‎src/Core_Kotlin_Schema.js

+406-58
Large diffs are not rendered by default.

‎src/components/Header.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export default class Header extends Component {
3131
const { platform, onClick } = this.props
3232

3333
return platform.map(platform => (
34-
<DropdownItem onClick={onClick} id={platform}>{platform}</DropdownItem>
34+
<DropdownItem key={platform} onClick={onClick} id={platform}>{platform}</DropdownItem>
3535
)
3636
)
3737
}
@@ -40,7 +40,7 @@ export default class Header extends Component {
4040
const { product, onClick } = this.props
4141

4242
return product.map(prod => (
43-
<DropdownItem onClick={onClick} id={prod}>{prod}</DropdownItem>
43+
<DropdownItem key={prod} onClick={onClick} id={prod}>{prod}</DropdownItem>
4444
)
4545
)
4646
}

‎src/components/Layout.css

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/* @font-face {
2+
font-family: 'Titillium Web';
3+
font-display: swap;
4+
src: url(https://fonts.googleapis.com/css?family=Titillium+Web);
5+
} */
6+
7+
body {
8+
font-family: 'Titillium Web', sans-serif;
9+
}

‎src/components/Layout.js

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
import React from 'react'
22
import { Helmet } from 'react-helmet'
3+
import './Layout.css'
4+
35
const Layout = props => {
46
return (
5-
<div style={layoutStyle}>
7+
<div>
68
<Helmet>
79
<title>XYO Reference Portal</title>
810
<meta name="description" content="XYO Reference"/>
@@ -13,7 +15,3 @@ const Layout = props => {
1315
}
1416

1517
export default Layout
16-
17-
const layoutStyle = {
18-
fontFamily: 'Titillium Web'
19-
}

‎src/components/PlatformSelectionView.js

-2
This file was deleted.

‎src/components/SideNav.js

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ import { Link, animateScroll as scroll } from 'react-scroll'
55

66
export default class SideNav extends Component {
77

8+
// consider changing this to a functional component without class expression
9+
810
scrollToTop = () => {
911
scroll.scrollToTop()
1012
}

‎src/components/SideNavLayout.js

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import React from 'react'
2-
32
const SideNavLayout = props => {
43
return (
54
<div className="side-nav">
@@ -13,7 +12,6 @@ const SideNavLayout = props => {
1312
}
1413

1514
const sideNavStyle = {
16-
fontFamily: 'Titillium Web',
1715
boxShadow: '2px 2px 6px - 2px #3f3b3b',
1816
listStyle: 'none'
1917
}

‎src/index.css

+7
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,10 @@ code {
1212
font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New",
1313
monospace;
1414
}
15+
16+
@font-face {
17+
font-family: 'Titillium Web';
18+
font-display: swap;
19+
src: url(https://fonts.googleapis.com/css?family=Titillium+Web);
20+
}
21+

0 commit comments

Comments
 (0)
Please sign in to comment.