From 5ba211191f06eaab21debae2f2861d9795b83ab1 Mon Sep 17 00:00:00 2001 From: Menaka Jayawardena Date: Fri, 22 Sep 2017 01:11:34 +0530 Subject: [PATCH] Release and Edit application components. --- .../AppPublisherBase/BaseLayout.jsx | 36 ++-- .../Application/Create/ApplicationCreate.jsx | 12 +- .../Application/Create/CreateSteps/Step1.jsx | 20 +- .../Application/Create/CreateSteps/Step2.jsx | 6 +- .../Application/Create/CreateSteps/Step4.jsx | 39 ++-- .../Edit/Base/ApplicationEditBaseLayout.jsx | 74 ++------ .../Application/Edit/Base/baseLayout.css | 17 ++ .../Application/Edit/GeneralInfo.jsx | 175 +++++++++++++++++- .../generalInfo.css} | 15 +- .../Release/Create/CreateRelease.jsx | 173 +++++++++++++++++ .../Release/Create/UploadPackage.jsx | 95 ++++++++++ .../Release/Create/createRelease.css | 38 ++++ .../Release/ReleaseMgtBase/ReleaseManager.jsx | 104 +++++++---- .../Release/ReleaseMgtBase/release-mgt.css | 18 ++ .../main/resources/publisher/src/index.css | 28 +++ 15 files changed, 691 insertions(+), 159 deletions(-) rename components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/src/main/resources/publisher/src/components/Application/{Release/ReleaseContent.jsx => Edit/generalInfo.css} (85%) create mode 100644 components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/src/main/resources/publisher/src/components/Application/Release/Create/CreateRelease.jsx create mode 100644 components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/src/main/resources/publisher/src/components/Application/Release/Create/UploadPackage.jsx create mode 100644 components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/src/main/resources/publisher/src/components/Application/Release/Create/createRelease.css diff --git a/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/src/main/resources/publisher/src/components/AppPublisherBase/BaseLayout.jsx b/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/src/main/resources/publisher/src/components/AppPublisherBase/BaseLayout.jsx index 203f9aafac2..dcb1e25d95c 100644 --- a/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/src/main/resources/publisher/src/components/AppPublisherBase/BaseLayout.jsx +++ b/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/src/main/resources/publisher/src/components/AppPublisherBase/BaseLayout.jsx @@ -42,7 +42,6 @@ class BaseLayout extends Component { user: 'Admin', openModal: false }; - this.scriptId = "basic-layout"; this.logout = this.logout.bind(this); } @@ -83,31 +82,30 @@ class BaseLayout extends Component { - -
- + > +

+ + +

+ +
-
+ +
{this.props.children}
- +
); } diff --git a/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/src/main/resources/publisher/src/components/Application/Create/ApplicationCreate.jsx b/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/src/main/resources/publisher/src/components/Application/Create/ApplicationCreate.jsx index 835e3ab3999..38b5d261029 100644 --- a/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/src/main/resources/publisher/src/components/Application/Create/ApplicationCreate.jsx +++ b/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/src/main/resources/publisher/src/components/Application/Create/ApplicationCreate.jsx @@ -70,7 +70,6 @@ class ApplicationCreate extends Component { this.setState({stepIndex: nextStep}, console.log(this.state.stepIndex)); } - /** * Handles next button click event. * */ @@ -220,13 +219,12 @@ class ApplicationCreate extends Component { {this.getStepContent(this.state.stepIndex)} - {this.state.stepIndex === 0? -
: } + {this.state.stepIndex === 0?
: + } - {this.state.finished? - - : } - + {this.state.finished ? + : + }
); diff --git a/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/src/main/resources/publisher/src/components/Application/Create/CreateSteps/Step1.jsx b/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/src/main/resources/publisher/src/components/Application/Create/CreateSteps/Step1.jsx index 4997bc0ac74..b85054689a4 100644 --- a/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/src/main/resources/publisher/src/components/Application/Create/CreateSteps/Step1.jsx +++ b/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/src/main/resources/publisher/src/components/Application/Create/CreateSteps/Step1.jsx @@ -125,18 +125,30 @@ class Step1 extends Component { - + - + {this.state.platforms.length > 0 ? this.state.platforms.map(platform => { return ( - + ) }) : } diff --git a/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/src/main/resources/publisher/src/components/Application/Create/CreateSteps/Step2.jsx b/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/src/main/resources/publisher/src/components/Application/Create/CreateSteps/Step2.jsx index 6238e38256b..50a679e6221 100644 --- a/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/src/main/resources/publisher/src/components/Application/Create/CreateSteps/Step2.jsx +++ b/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/src/main/resources/publisher/src/components/Application/Create/CreateSteps/Step2.jsx @@ -259,7 +259,8 @@ class Step2 extends Component { @@ -267,7 +268,8 @@ class Step2 extends Component { diff --git a/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/src/main/resources/publisher/src/components/Application/Create/CreateSteps/Step4.jsx b/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/src/main/resources/publisher/src/components/Application/Create/CreateSteps/Step4.jsx index 7b75a108f40..05982af2d68 100644 --- a/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/src/main/resources/publisher/src/components/Application/Create/CreateSteps/Step4.jsx +++ b/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/src/main/resources/publisher/src/components/Application/Create/CreateSteps/Step4.jsx @@ -18,7 +18,7 @@ import PropTypes from 'prop-types'; import React, {Component} from 'react'; -import {Collapse, FormGroup, Input, Label} from 'reactstrap'; +import {Collapse, FormGroup, Input, Label, FormText} from 'reactstrap'; import Switch from '../../../UIComponents/Switch/Switch' /** @@ -88,32 +88,42 @@ class Step4 extends Component {
- +
- +

- + Info: Enabling this will create a release for the current Application. To upload the Application, please visit to the Release management section of Application Edit View. - +
{/*If toggle is true, the release form will be shown.*/} - + @@ -121,7 +131,12 @@ class Step4 extends Component { - +
diff --git a/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/src/main/resources/publisher/src/components/Application/Edit/Base/ApplicationEditBaseLayout.jsx b/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/src/main/resources/publisher/src/components/Application/Edit/Base/ApplicationEditBaseLayout.jsx index f96a9c82745..1962659fbf0 100644 --- a/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/src/main/resources/publisher/src/components/Application/Edit/Base/ApplicationEditBaseLayout.jsx +++ b/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/src/main/resources/publisher/src/components/Application/Edit/Base/ApplicationEditBaseLayout.jsx @@ -19,7 +19,8 @@ import React, {Component} from 'react'; import './baseLayout.css'; import ReleaseManager from '../../Release/ReleaseMgtBase/ReleaseManager'; -import {Button, Col, Row} from "reactstrap"; +import {Col, Row} from "reactstrap"; +import GeneralInfo from "../GeneralInfo"; class ApplicationEdit extends Component { @@ -57,14 +58,12 @@ class ApplicationEdit extends Component { return "No Content"; } } - } getTabContent(tab) { - switch (tab) { case 1: { - return ("Step 1") + return } case 2: { return @@ -73,14 +72,12 @@ class ApplicationEdit extends Component { return ("Step3") } } - } render() { console.log(this.state); return (
- Application Name @@ -101,66 +98,19 @@ class ApplicationEdit extends Component {
- - -
- {/* Application edit content */} -
- {this.getTabContent(this.state.activeTab)} + + +
+ {/* Application edit content */} +
+ {this.getTabContent(this.state.activeTab)} +
-
- - - - - - - + +
- - {/**/} - {/*/!* Contains the application Name and Save button*!/*/} - {/*
*/} - {/**/} - {/**/} - {/*Header*/} - {/**/} - {/**/} - {/**/} - {/**/} - {/**/} - {/*
*/} - {/*
*/} - {/*
*/} - {/**/} - {/**/} - - {/*/!* Contains side bar items, General, App Release, Package Manager *!/*/} - {/*
*/} - {/**/} - {/**/} - {/**/} - {/*
*/} - {/**/} - {/**/} - {/*
*/} - {/*/!* Application edit content *!/*/} - {/*
*/} - {/*{this.getTabContent(this.state.activeTab)}*/} - {/*
*/} - {/*
*/} - {/**/} - {/*
*/} - {/*
*/}
) } diff --git a/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/src/main/resources/publisher/src/components/Application/Edit/Base/baseLayout.css b/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/src/main/resources/publisher/src/components/Application/Edit/Base/baseLayout.css index 5e6c1e9af3b..3ee209b3e53 100644 --- a/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/src/main/resources/publisher/src/components/Application/Edit/Base/baseLayout.css +++ b/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/src/main/resources/publisher/src/components/Application/Edit/Base/baseLayout.css @@ -1,3 +1,20 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * WSO2 Inc. 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. + */ #application-edit-base { width: 70%; diff --git a/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/src/main/resources/publisher/src/components/Application/Edit/GeneralInfo.jsx b/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/src/main/resources/publisher/src/components/Application/Edit/GeneralInfo.jsx index d1cda615269..13c1b1a9ab6 100644 --- a/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/src/main/resources/publisher/src/components/Application/Edit/GeneralInfo.jsx +++ b/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/src/main/resources/publisher/src/components/Application/Edit/GeneralInfo.jsx @@ -18,26 +18,187 @@ import PropTypes from 'prop-types'; import React, {Component} from 'react'; - +import {FormGroup, Input, Label, Badge, Button} from 'reactstrap'; +import Dropzone from 'react-dropzone'; +import './generalInfo.css'; class GeneralInfo extends Component { constructor() { super(); + this.state = { + defValue: "", + tags: [], + screenshots: [], + icon: [], + banner: [] + } } - render() { return( -
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + +
+ {this.state.tags.map(tag => { + return ( + + {tag.value} + + ) + } + )} +
+
+
+ + + (600 X 800 32 bit PNG) +
+ {this.state.screenshots.map((tile) => ( + + ))} + {this.state.screenshots.length < 3 ? + { + let tmpScreenshots = this.state.screenshots; + tmpScreenshots.push(screenshots); + console.log(screenshots); + this.setState({ + screenshots: tmpScreenshots + }); + }} + > +

+

+
:
} +
+ +
+
+
+ + + (512 X 512 32 bit PNG) +
+ {this.state.icon.map((tile) => ( + + ))} +
+ {this.state.icon.length === 0 ? + { + this.setState({icon, rejected}); + }} + > +

+

+
:
} + +
+
+ + + (1000 X 400 32 bit PNG) +
+ {this.state.banner.map((tile) => ( + + ))} + {this.state.banner.length === 0 ? + { + this.setState({banner, rejected}); + }} + > +

+

+
:
+ } +
+ +
+
+
+ +
+
) - - } - - } export default GeneralInfo; diff --git a/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/src/main/resources/publisher/src/components/Application/Release/ReleaseContent.jsx b/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/src/main/resources/publisher/src/components/Application/Edit/generalInfo.css similarity index 85% rename from components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/src/main/resources/publisher/src/components/Application/Release/ReleaseContent.jsx rename to components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/src/main/resources/publisher/src/components/Application/Edit/generalInfo.css index 1d22a374454..fb0471eddc0 100644 --- a/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/src/main/resources/publisher/src/components/Application/Release/ReleaseContent.jsx +++ b/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/src/main/resources/publisher/src/components/Application/Edit/generalInfo.css @@ -16,14 +16,11 @@ * under the License. */ -import React, {Component} from 'react'; - -class ReleaseContent extends Component { - - - - +.app-edit-general-info { + margin-top: 20px; } - -export default ReleaseContent; +.save-info { + float: right; + margin-bottom: 10px; +} \ No newline at end of file diff --git a/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/src/main/resources/publisher/src/components/Application/Release/Create/CreateRelease.jsx b/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/src/main/resources/publisher/src/components/Application/Release/Create/CreateRelease.jsx new file mode 100644 index 00000000000..b737680c920 --- /dev/null +++ b/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/src/main/resources/publisher/src/components/Application/Release/Create/CreateRelease.jsx @@ -0,0 +1,173 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * WSO2 Inc. 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. + */ + +import PropTypes from 'prop-types'; +import React, {Component} from 'react'; +import './createRelease.css'; +import {Button, FormGroup, FormText, Input, Label, Row} from "reactstrap"; +import UploadPackage from "./UploadPackage"; + +class CreateRelease extends Component { + constructor() { + super(); + this.onTestMethodChange = this.onTestMethodChange.bind(this); + this.showUploadArtifacts = this.showUploadArtifacts.bind(this); + this.handleBack = this.handleBack.bind(this); + this.backToRelease = this.backToRelease.bind(this); + this.state = { + open: true, + hiddenMain: false + } + } + + onTestMethodChange(event) { + let type = event.target.value; + if (type !== 'open') { + this.setState({open: false}) + } else { + this.setState({open: true}) + } + } + + showUploadArtifacts() { + this.setState({hiddenMain: true}) + } + + handleBack() { + this.props.handleBack(); + } + + backToRelease() { + this.setState({hiddenMain: false}); + } + + render() { + const {channel} = this.props; + console.log(channel); + return ( +
+ + {this.state.hiddenMain ? +
+ +
: + +
+ +
+ {"<-"} + + {channel} Release + +
+
+ +
+
+ + Create Release + +

+ {channel === 'Production' ? "" : + "You could create " + channel + " release for your application and let " + + "the test users to test the application for it's stability."} +

+
+
+ +
+
+
+ {channel !== 'Production' ? + +
+ + Manage Test Method + +

+ This section allows you to change the test method and the users who would be + able to test your application. +

+
+
+ + + + + + + + {!this.state.open ? ( + + + + + Provide a comma separated list of email + addresses. + + + ) :
} + + + + + Provide an Email address or a URL for your users to provide + feedback on the application. + + +
+ +
+ +
+
+ : +
+ } +
+ } + +
+ ); + } +} + +CreateRelease.propTypes = { + channel: PropTypes.string, + handleBack: PropTypes.func +}; + +export default CreateRelease; diff --git a/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/src/main/resources/publisher/src/components/Application/Release/Create/UploadPackage.jsx b/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/src/main/resources/publisher/src/components/Application/Release/Create/UploadPackage.jsx new file mode 100644 index 00000000000..8eb017fa599 --- /dev/null +++ b/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/src/main/resources/publisher/src/components/Application/Release/Create/UploadPackage.jsx @@ -0,0 +1,95 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * WSO2 Inc. 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. + */ + +import PropTypes from 'prop-types'; +import React, {Component} from 'react'; +import './createRelease.css'; +import {Button, Col, FormGroup, Input, Label, Row} from "reactstrap"; + +class UploadPackage extends Component { + + constructor() { + super(); + this.handleBack = this.handleBack.bind(this) + } + + handleBack() { + this.props.backToRelease(); + } + + render() { + const {selectedChannel} = this.props; + return ( +
+ +
+ {"<-"} + + New Release for {selectedChannel} + +
+
+ +
+ + Upload Package File + +
+
+ + + + + + + + + +
+
+ + + + + + + + +
+ +
+
+
+
+
+ ); + } +} + +UploadPackage.protoTypes = { + backToRelease: PropTypes.func, + channel: PropTypes.string +}; + +export default UploadPackage; diff --git a/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/src/main/resources/publisher/src/components/Application/Release/Create/createRelease.css b/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/src/main/resources/publisher/src/components/Application/Release/Create/createRelease.css new file mode 100644 index 00000000000..1cd66945976 --- /dev/null +++ b/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/src/main/resources/publisher/src/components/Application/Release/Create/createRelease.css @@ -0,0 +1,38 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * WSO2 Inc. 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. + */ + +.release-header { + margin-top: 20px; + margin-bottom: 20px; +} + +.release-create { + height: 150px; + margin-bottom: 20px; +} + +.release-detail-content { + width: 100%; + margin-top: 20%; + height: 300px; +} + +.form-btn { + float: right; + margin-bottom: 10px; +} diff --git a/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/src/main/resources/publisher/src/components/Application/Release/ReleaseMgtBase/ReleaseManager.jsx b/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/src/main/resources/publisher/src/components/Application/Release/ReleaseMgtBase/ReleaseManager.jsx index a580d75edb5..0501f6b2d60 100644 --- a/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/src/main/resources/publisher/src/components/Application/Release/ReleaseMgtBase/ReleaseManager.jsx +++ b/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/src/main/resources/publisher/src/components/Application/Release/ReleaseMgtBase/ReleaseManager.jsx @@ -16,15 +16,32 @@ * under the License. */ +import PropTypes from 'prop-types'; import React, {Component} from 'react'; import './release-mgt.css'; import {Button, Col, Row} from "reactstrap"; +import CreateRelease from "../Create/CreateRelease"; class ReleaseManager extends Component { constructor() { super(); this.getNoReleaseContent = this.getNoReleaseContent.bind(this); + this.createRelease = this.createRelease.bind(this); + this.handleBackPress = this.handleBackPress.bind(this); + this.state = { + createRelease: false, + onGoing: "" + } + } + + createRelease(event) { + event.preventDefault(); + this.setState({createRelease: true, onGoing: event.target.value}) + } + + handleBackPress() { + this.setState({createRelease: false}); } /** @@ -40,7 +57,14 @@ class ReleaseManager extends Component {
- +
@@ -49,45 +73,51 @@ class ReleaseManager extends Component { render() { return ( -
- - -
- Production Releases -
-
- - {this.getNoReleaseContent("Production")} - +
+ {this.state.createRelease ? + : +
+ + +
+ Production Releases +
+
+ {this.getNoReleaseContent("Production")} +
+
-
-
- - - - -
- Beta Releases -
-
- {this.getNoReleaseContent("Beta")} + + + + +
+ Beta Releases +
+
+ {this.getNoReleaseContent("Beta")} +
+
-
-
- - - - -
- Alpha Releases -
-
- {this.getNoReleaseContent("Alpha")} + + + + +
+ Alpha Releases +
+
+ {this.getNoReleaseContent("Alpha")} +
+
-
-
- - + + +
+ }
) } diff --git a/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/src/main/resources/publisher/src/components/Application/Release/ReleaseMgtBase/release-mgt.css b/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/src/main/resources/publisher/src/components/Application/Release/ReleaseMgtBase/release-mgt.css index d72a8ea81c9..7fd6831f245 100644 --- a/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/src/main/resources/publisher/src/components/Application/Release/ReleaseMgtBase/release-mgt.css +++ b/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/src/main/resources/publisher/src/components/Application/Release/ReleaseMgtBase/release-mgt.css @@ -1,3 +1,21 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * WSO2 Inc. 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. + */ + .release-content { height: 180px; width: 95%; diff --git a/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/src/main/resources/publisher/src/index.css b/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/src/main/resources/publisher/src/index.css index c5776f73188..32f3c298a8e 100644 --- a/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/src/main/resources/publisher/src/index.css +++ b/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/src/main/resources/publisher/src/index.css @@ -1,3 +1,21 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * WSO2 Inc. 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. + */ + body { width: 100%; font-family: sans-serif; @@ -32,6 +50,14 @@ body { width: 100%; background-color: #BDBDBD; border-bottom: solid 2px; + position: fixed; /* Set the navbar to fixed position */ + top: 0; /* Position the navbar at the top of the page */ + z-index: 2; +} + +#application-content { + max-height: 800px; + margin-top: 150px; } #add-btn { @@ -187,3 +213,5 @@ body { color: #818181; } + +