Skip to content

Commit

Permalink
Rename portal context
Browse files Browse the repository at this point in the history
  • Loading branch information
lasanthaS committed Oct 8, 2019
1 parent af117cb commit 3a7a222
Show file tree
Hide file tree
Showing 27 changed files with 32 additions and 32 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ You can add following properties to pom file available in Carbon-UI-Server/tests
```

4. Unzip the distribution and run the server. You can access the dashboard component from
https://localhost:9292/portal/ or http://localhost:9090/portal/
https://localhost:9292/analytics-dashboard/ or http://localhost:9090/analytics-dashboard/

## License
Carbon dashboards is available under the Apache 2 License.
Expand Down
2 changes: 1 addition & 1 deletion components/dashboards-web-component/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"dev": "NODE_ENV=development webpack --mode development --progress --devtool source-map",
"lint": "eslint . --ext .jsx --ext .js",
"build": "webpack --mode production",
"deploy": "cp ./dist/bundle.js $DS_HOME/wso2/dashboard/deployment/web-ui-apps/portal/public/js/"
"deploy": "cp ./dist/bundle.js $DS_HOME/wso2/dashboard/deployment/web-ui-apps/analytics-dashboard/public/js/"
},
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion components/dashboards-web-component/public/index.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8">
<meta name='viewport' content='width=device-width'>
<title>Portal</title>
<title>Analytics Dashboard</title>
<link rel="stylesheet" type="text/css"
href="{{@contextPath}}/public/app/js/libs/font-wso2_1.0.0/css/font-wso2.min.css" />
<link rel="shortcut icon" href="{{@contextPath}}/public/app/images/favicon.ico" type="image/x-icon" />
Expand Down
2 changes: 1 addition & 1 deletion components/dashboards-web-component/public/locales/en.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"portal.title": "Portal",
"portal.title": "Analytics Dashboard",
"login.title": "Login",
"logout": "Logout",
"login.username": "Username",
Expand Down
2 changes: 1 addition & 1 deletion components/dashboards-web-component/public/locales/fr.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"portal.title": "Portail",
"portal.title": "Tableau de bord d'analyse",
"login.title": "S'identifier",
"logout": "Logout",
"login.username": "Nom d'utilisateur",
Expand Down
2 changes: 1 addition & 1 deletion components/dashboards-web-component/src/auth/Login.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ export default class Login extends Component {
<MuiThemeProvider muiTheme={defaultTheme}>
<div>
<Header
title={<FormattedMessage id='portal.title' defaultMessage='Portal' />}
title={<FormattedMessage id='portal.title' defaultMessage='Analytics Dashboard' />}
rightElement={<span />}
/>
<FormPanel
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class PortalButton extends Component {
return (
<FlatButton
style={{ minWidth: '48px' }}
label={<FormattedMessage id='portal.title' defaultMessage='Portal' />}
label={<FormattedMessage id='portal.title' defaultMessage='Analytics Dashboard' />}
icon={<ActionViewModule />}
onClick={() => this.props.history.push('/')}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ export default class DashboardListingPage extends Component {
return (
<MuiThemeProvider muiTheme={defaultTheme}>
<Header
title={<FormattedMessage id="portal.title" defaultMessage="Portal" />}
title={<FormattedMessage id="portal.title" defaultMessage="Analytics Dashboard" />}
rightElement={<span><WidgetButton /><UserMenu /></span>}
/>
<div style={styles.thumbnailsWrapper}>
Expand Down
2 changes: 1 addition & 1 deletion components/dashboards-web-component/test/test-setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ import Adapter from 'enzyme-adapter-react-16';
configure({ adapter: new Adapter() });

// Setting-up the browser environment.
global.window.contextPath = '/portal';
global.window.contextPath = '/analytics-dashboard';
Original file line number Diff line number Diff line change
Expand Up @@ -286,10 +286,10 @@ public Response updateDashboardRoles(@PathParam("url") String url, @Context Requ

/**
* Get dashboard with widget definitions.
* URL: https://localhost:9643/portal/apis/dashboards/<DASHBOARD_URL>/export
* URL: https://localhost:9643/analytics-dashboard/apis/dashboards/<DASHBOARD_URL>/export
*
* To download the dashboard as an attachment,
* URL: https://localhost:9643/portal/apis/dashboards/<DASHBOARD_URL>/export?download=true
* URL: https://localhost:9643/analytics-dashboard/apis/dashboards/<DASHBOARD_URL>/export?download=true
*
* @since 4.0.29
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
immediate = true)
public class DashboardRestApiProvider implements RestApiProvider {

public static final String DASHBOARD_PORTAL_APP_NAME = "portal";
public static final String DASHBOARD_PORTAL_APP_NAME = "analytics-dashboard";
private static final Logger LOGGER = LoggerFactory.getLogger(DashboardRestApiProvider.class);

private DashboardMetadataProvider dashboardMetadataProvider;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public void importDashboards() {
if (!widgetMetadataProvider.isWidgetPresent(widgetId, WidgetType.ALL)) {
LOGGER.warn(
"Widget '{}' does not exists. Please copy the widget to " +
"'deployment/web-ui-apps/portal/extensions/widgets/' directory.",
"'deployment/web-ui-apps/analytics-dashboard/extensions/widgets/' directory.",
widgetId);
}
} catch (DashboardException e) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ void testGetAllWidgetConfigurations() throws DashboardException {

private static App createPortalApp() {
Extension chartWidget = new Extension("LineChart", "widgets", "src/test/resources/LineChart");
return new App("portal", "/portal", Collections.emptySortedSet(), Collections.singleton(chartWidget),
return new App("portal", "/analytics-dashboard", Collections.emptySortedSet(), Collections.singleton(chartWidget),
Collections.emptySet(), Collections.emptySet(), null, null);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
@Component(service = RestApiProvider.class,
immediate = true)
public class SiddhiAppsApiProvider implements RestApiProvider {
private static final String DASHBOARD_PORTAL_APP_NAME = "portal";
private static final String DASHBOARD_PORTAL_APP_NAME = "analytics-dashboard";
private static final Logger LOGGER = LoggerFactory.getLogger(SiddhiAppsApiProvider.class);

@Activate
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ info:
schemes:
- https
host: localhost
basePath: /portal/apis/datasearch
basePath: /analytics-dashboard/apis/datasearch
paths:
/siddhi-apps:
get:
x-wso2-curl: 'curl -k -X GET https://localhost:9643/portal/apis/datasearch/siddhi-apps'
x-wso2-request: 'GET https://localhost:9643/portal/apis/datasearch/siddhi-apps'
x-wso2-curl: 'curl -k -X GET https://localhost:9643/analytics-dashboard/apis/datasearch/siddhi-apps'
x-wso2-request: 'GET https://localhost:9643/analytics-dashboard/apis/datasearch/siddhi-apps'
x-wso2-response: |-
HTTP/1.1 200 OK Content-Type: application/json
["ShipmentHistoryApp","SweetProductionApp"]
Expand All @@ -34,8 +34,8 @@ paths:
description: Insufficient permission to view siddhi apps.
'siddhi-apps/{appName}':
get:
x-wso2-curl: 'curl -k -X GET https://localhost:9643/portal/apis/datasearch/siddhi-apps/{appName}'
x-wso2-request: 'GET https://localhost:9643/portal/apis/datasearch/siddhi-apps/{appName}'
x-wso2-curl: 'curl -k -X GET https://localhost:9643/analytics-dashboard/apis/datasearch/siddhi-apps/{appName}'
x-wso2-request: 'GET https://localhost:9643/analytics-dashboard/apis/datasearch/siddhi-apps/{appName}'
x-wso2-response: >-
HTTP/1.1 200 OK Content-Type: application/json
[
Expand Down
8 changes: 4 additions & 4 deletions features/org.wso2.carbon.dashboards.portal.feature/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
<version>${project.version}</version>
<type>jar</type>
<overWrite>true</overWrite>
<outputDirectory>${project.build.directory}/target/portal/public/</outputDirectory>
<outputDirectory>${project.build.directory}/target/analytics-dashboard/public/</outputDirectory>
<includes>js/**</includes>
</artifactItem>
<artifactItem>
Expand All @@ -78,7 +78,7 @@
<version>${project.version}</version>
<type>jar</type>
<overWrite>true</overWrite>
<outputDirectory>${project.build.directory}/target/portal/public/</outputDirectory>
<outputDirectory>${project.build.directory}/target/analytics-dashboard/public/</outputDirectory>
<includes>locales/**</includes>
</artifactItem>
<artifactItem>
Expand All @@ -87,7 +87,7 @@
<version>${project.version}</version>
<type>jar</type>
<overWrite>true</overWrite>
<outputDirectory>${project.build.directory}/target/portal/</outputDirectory>
<outputDirectory>${project.build.directory}/target/analytics-dashboard/</outputDirectory>
<includes>pages/index.hbs</includes>
</artifactItem>
<artifactItem>
Expand All @@ -96,7 +96,7 @@
<version>${project.version}</version>
<type>jar</type>
<overWrite>true</overWrite>
<outputDirectory>${project.build.directory}/target/portal/extensions/widgets/</outputDirectory>
<outputDirectory>${project.build.directory}/target/analytics-dashboard/extensions/widgets/</outputDirectory>
<includes>UniversalWidget/**</includes>
</artifactItem>
</artifactItems>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ metaRequirements.0.optional = true
instructions.configure = \
org.wso2.carbon.extensions.touchpoint.mkdir(path:${installFolder}/../{runtime}/deployment/);\
org.wso2.carbon.extensions.touchpoint.mkdir(path:${installFolder}/../{runtime}/deployment/web-ui-apps/);\
org.wso2.carbon.extensions.touchpoint.mkdir(path:${installFolder}/../{runtime}/deployment/web-ui-apps/portal/);\
org.wso2.carbon.extensions.touchpoint.mkdir(path:${installFolder}/../{runtime}/deployment/web-ui-apps/portal/extensions);\
org.wso2.carbon.extensions.touchpoint.mkdir(path:${installFolder}/../{runtime}/deployment/web-ui-apps/portal/extensions/widgets);\
org.wso2.carbon.extensions.touchpoint.copy(source:${installFolder}/../lib/features/org.wso2.carbon.dashboards.portal_${feature.version}/portal/,target:${installFolder}/../{runtime}/deployment/web-ui-apps/portal/,overwrite:true);\
org.wso2.carbon.extensions.touchpoint.mkdir(path:${installFolder}/../{runtime}/deployment/web-ui-apps/analytics-dashboard/);\
org.wso2.carbon.extensions.touchpoint.mkdir(path:${installFolder}/../{runtime}/deployment/web-ui-apps/analytics-dashboard/extensions);\
org.wso2.carbon.extensions.touchpoint.mkdir(path:${installFolder}/../{runtime}/deployment/web-ui-apps/analytics-dashboard/extensions/widgets);\
org.wso2.carbon.extensions.touchpoint.copy(source:${installFolder}/../lib/features/org.wso2.carbon.dashboards.portal_${feature.version}/analytics-dashboard/,target:${installFolder}/../{runtime}/deployment/web-ui-apps/analytics-dashboard/,overwrite:true);\
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ metaRequirements.0.optional = true
instructions.configure = \
org.wso2.carbon.extensions.touchpoint.mkdir(path:${installFolder}/../{runtime}/deployment/);\
org.wso2.carbon.extensions.touchpoint.mkdir(path:${installFolder}/../{runtime}/deployment/web-ui-apps/);\
org.wso2.carbon.extensions.touchpoint.mkdir(path:${installFolder}/../{runtime}/deployment/web-ui-apps/portal/);\
org.wso2.carbon.extensions.touchpoint.mkdir(path:${installFolder}/../{runtime}/deployment/web-ui-apps/portal/extensions/);\
org.wso2.carbon.extensions.touchpoint.mkdir(path:${installFolder}/../{runtime}/deployment/web-ui-apps/portal/extensions/widgets/);\
org.wso2.carbon.extensions.touchpoint.copy(source:${installFolder}/../lib/features/org.wso2.carbon.dashboards.samples_${feature.version}/widgets/,target:${installFolder}/../{runtime}/deployment/web-ui-apps/portal/extensions/widgets/,overwrite:true);\
org.wso2.carbon.extensions.touchpoint.mkdir(path:${installFolder}/../{runtime}/deployment/web-ui-apps/analytics-dashboard/);\
org.wso2.carbon.extensions.touchpoint.mkdir(path:${installFolder}/../{runtime}/deployment/web-ui-apps/analytics-dashboard/extensions/);\
org.wso2.carbon.extensions.touchpoint.mkdir(path:${installFolder}/../{runtime}/deployment/web-ui-apps/analytics-dashboard/extensions/widgets/);\
org.wso2.carbon.extensions.touchpoint.copy(source:${installFolder}/../lib/features/org.wso2.carbon.dashboards.samples_${feature.version}/widgets/,target:${installFolder}/../{runtime}/deployment/web-ui-apps/analytics-dashboard/extensions/widgets/,overwrite:true);\
org.eclipse.equinox.p2.touchpoint.natives.remove(path:${installFolder}/../lib/features/org.wso2.carbon.dashboards.samples_${feature.version}/widgets/);\
org.wso2.carbon.extensions.touchpoint.mkdir(path:${installFolder}/../{runtime}/resources/);\
org.wso2.carbon.extensions.touchpoint.copy(source:${installFolder}/../lib/features/org.wso2.carbon.dashboards.samples_${feature.version}/resources/,target:${installFolder}/../{runtime}/resources/,overwrite:true);\
Expand Down

0 comments on commit 3a7a222

Please sign in to comment.