Skip to content

Commit

Permalink
Add mocked-response for manifesto and mineral-ui library
Browse files Browse the repository at this point in the history
  • Loading branch information
taban03 committed Oct 8, 2019
1 parent 5d5d884 commit fd8990e
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 1 deletion.
30 changes: 29 additions & 1 deletion src/dashboard/Dashboard.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,39 @@
import React, { Component } from 'react';
import Text from 'mineral-ui/Text';
import Dropdown from 'mineral-ui/Dropdown';
import Button from 'mineral-ui/Button';
import Card, { CardBlock, CardTitle} from 'mineral-ui/Card';

let value = require('../mocked-response');
console.log(value['binaryDependencies']['sourceDependencies'][0]['componentGroup'])
export default class Dashboard extends Component {

getZoweVersion = () => {

let manifesto = [{
text: value["name"],
}];
return manifesto;
};

getZoweComponents = () => {


}
render() {
return (

<div>
<Text as="h2">Zowe components</Text>
<Text as="h2">Zowe Components Catalog</Text>
<Dropdown data={this.getZoweVersion()}>
<Button>Zowe versions</Button>
</Dropdown>
<br/>
<br/>
<Card>
<CardTitle>Card Title</CardTitle>
<CardBlock>{value['binaryDependencies']['sourceDependencies'][0]['componentGroup']}</CardBlock>
</Card>
</div>
)
}
Expand Down
28 changes: 28 additions & 0 deletions src/mocked-response.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"name": "Zowe",
"version": "1.5.0",
"description": "Zowe is an open source project created to host technologies that benefit the Z platform from all members of the Z community (Integrated Software Vendors, System Integrators and z/OS consumers). Zowe, like Mac or Windows, comes with a set of APIs and OS capabilities that applications build on and also includes some applications out of the box. Zowe offers modern interfaces to interact with z/OS and allows you to work with z/OS in a way that is similar to what you experience on cloud platforms today. You can use these interfaces as delivered or through plug-ins and extensions that are created by clients or third-party vendors.",
"license": "EPL-2.0",
"homepage": "https://zowe.org",
"build": {
"branch": "{BUILD_BRANCH}",
"number": "{BUILD_NUMBER}",
"commitHash": "{BUILD_COMMIT_HASH}",
"timestamp": "{BUILD_TIMESTAMP}"
},
"binaryDependencies": {
"sourceDependencies": [{
"componentGroup": "Imperative CLI Framework",
"entries": [{
"repository": "imperative",
"tag": "v2.6.0"
}]
}, {
"componentGroup": "Zowe API Mediation Layer",
"entries": [{
"repository": "api-layer",
"tag": "v1.1.9"
}]
}]
}
}

0 comments on commit fd8990e

Please sign in to comment.