Skip to content

Commit

Permalink
rename of perspective
Browse files Browse the repository at this point in the history
  • Loading branch information
delchev committed Oct 26, 2023
1 parent 75a5c9a commit 41848db
Show file tree
Hide file tree
Showing 51 changed files with 86 additions and 174 deletions.
14 changes: 6 additions & 8 deletions codbex-currencies/codbex-currencies.edm

Large diffs are not rendered by default.

35 changes: 14 additions & 21 deletions codbex-currencies/codbex-currencies.gen
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,17 @@
"projectName": "codbex-currencies",
"workspaceName": "workspace",
"filePath": "codbex-currencies.model",
"templateId": "template-application-angular/template/template.js",
"perspectives": {
"currency": {
"views": [
"Currency"
],
"name": "currency",
"label": "currency",
"order": "100",
"icon": "/services/web/resources/unicons/dollar-alt.svg"
},
"currencyexchange": {
"Currencies": {
"views": [
"Currency",
"CurrencyExchange"
],
"name": "currencyexchange",
"label": "currencyexchange",
"order": "102",
"icon": "/services/web/resources/unicons/exchange.svg"
"name": "Currencies",
"label": "Currencies",
"order": "990",
"icon": "/services/web/resources/unicons/dollar-alt.svg"
}
},
"models": [
Expand Down Expand Up @@ -143,8 +136,8 @@
"name": "Currency",
"navigationPath": "/Home",
"perspectiveIcon": "/services/web/resources/unicons/dollar-alt.svg",
"perspectiveName": "currency",
"perspectiveOrder": "100",
"perspectiveName": "Currencies",
"perspectiveOrder": "990",
"title": "Currency",
"tooltip": "Currency",
"type": "PRIMARY",
Expand Down Expand Up @@ -193,7 +186,7 @@
"widgetType": "DROPDOWN",
"relationshipName": "CurrencyExchange_Currency",
"relationshipEntityName": "Currency",
"relationshipEntityPerspectiveName": "currency",
"relationshipEntityPerspectiveName": "Currencies",
"dataNotNull": false,
"widgetLabel": "Source",
"minLength": 0,
Expand All @@ -220,7 +213,7 @@
"widgetType": "DROPDOWN",
"relationshipName": "CurrencyExchange_Currency",
"relationshipEntityName": "Currency",
"relationshipEntityPerspectiveName": "currency",
"relationshipEntityPerspectiveName": "Currencies",
"dataNotNull": false,
"widgetLabel": "Target",
"minLength": 0,
Expand Down Expand Up @@ -294,9 +287,9 @@
"menuLabel": "CurrencyExchange",
"name": "CurrencyExchange",
"navigationPath": "/Home",
"perspectiveIcon": "/services/web/resources/unicons/exchange.svg",
"perspectiveName": "currencyexchange",
"perspectiveOrder": "102",
"perspectiveIcon": "/services/web/resources/unicons/dollar-alt.svg",
"perspectiveName": "Currencies",
"perspectiveOrder": "990",
"title": "CurrencyExchange",
"tooltip": "CurrencyExchange",
"type": "PRIMARY",
Expand Down
32 changes: 10 additions & 22 deletions codbex-currencies/codbex-currencies.model
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@
"name": "Currency",
"navigationPath": "/Home",
"perspectiveIcon": "/services/web/resources/unicons/dollar-alt.svg",
"perspectiveName": "currency",
"perspectiveOrder": "100",
"perspectiveName": "Currencies",
"perspectiveOrder": "990",
"title": "Currency",
"tooltip": "Currency",
"type": "PRIMARY"
Expand Down Expand Up @@ -138,7 +138,7 @@
"widgetType": "DROPDOWN",
"relationshipName": "CurrencyExchange_Currency",
"relationshipEntityName": "Currency",
"relationshipEntityPerspectiveName": "currency"
"relationshipEntityPerspectiveName": "Currencies"
},
{
"calculatedPropertyExpression": "",
Expand All @@ -160,7 +160,7 @@
"widgetType": "DROPDOWN",
"relationshipName": "CurrencyExchange_Currency",
"relationshipEntityName": "Currency",
"relationshipEntityPerspectiveName": "currency"
"relationshipEntityPerspectiveName": "Currencies"
},
{
"calculatedPropertyExpression": "",
Expand Down Expand Up @@ -219,32 +219,20 @@
"menuLabel": "CurrencyExchange",
"name": "CurrencyExchange",
"navigationPath": "/Home",
"perspectiveIcon": "/services/web/resources/unicons/exchange.svg",
"perspectiveName": "currencyexchange",
"perspectiveOrder": "102",
"perspectiveIcon": "/services/web/resources/unicons/dollar-alt.svg",
"perspectiveName": "Currencies",
"perspectiveOrder": "990",
"title": "CurrencyExchange",
"tooltip": "CurrencyExchange",
"type": "PRIMARY"
}
],
"perspectives": [
{
"name": "currency",
"label": "Currency",
"name": "Currencies",
"label": "Currencies",
"icon": "/services/web/resources/unicons/dollar-alt.svg",
"order": "100"
},
{
"name": "currencyentity",
"label": "Currency Entity",
"icon": "/services/web/resources/unicons/briefcase.svg",
"order": "101"
},
{
"name": "currencyexchange",
"label": "Currency Exchange",
"icon": "/services/web/resources/unicons/exchange.svg",
"order": "102"
"order": "990"
}
],
"navigations": []
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const rs = require("http/rs");
const dao = require("codbex-currencies/gen/dao/currency/Currency");
const dao = require("codbex-currencies/gen/dao/Currencies/Currency");
const http = require("codbex-currencies/gen/api/utils/http");

rs.service()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const rs = require("http/rs");
const dao = require("codbex-currencies/gen/dao/currencyexchange/CurrencyExchange");
const dao = require("codbex-currencies/gen/dao/Currencies/CurrencyExchange");
const http = require("codbex-currencies/gen/api/utils/http");

rs.service()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,5 +99,5 @@ exports.customDataCount = function() {
};

function triggerEvent(operation, data) {
producer.queue("codbex-currencies/currency/Currency/" + operation).send(JSON.stringify(data));
producer.queue("codbex-currencies/Currencies/Currency/" + operation).send(JSON.stringify(data));
}
Original file line number Diff line number Diff line change
Expand Up @@ -102,5 +102,5 @@ exports.customDataCount = function() {
};

function triggerEvent(operation, data) {
producer.queue("codbex-currencies/currencyexchange/CurrencyExchange/" + operation).send(JSON.stringify(data));
producer.queue("codbex-currencies/Currencies/CurrencyExchange/" + operation).send(JSON.stringify(data));
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
angular.module('page', ["ideUI", "ideView", "entityApi"])
.config(["messageHubProvider", function (messageHubProvider) {
messageHubProvider.eventIdPrefix = 'codbex-currencies.currency.Currency';
messageHubProvider.eventIdPrefix = 'codbex-currencies.Currencies.Currency';
}])
.config(["entityApiProvider", function (entityApiProvider) {
entityApiProvider.baseUrl = "/services/js/codbex-currencies/gen/api/currency/Currency.js";
entityApiProvider.baseUrl = "/services/js/codbex-currencies/gen/api/Currencies/Currency.js";
}])
.controller('PageController', ['$scope', 'messageHub', 'entityApi', function ($scope, messageHub, entityApi) {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
angular.module('page', ["ideUI", "ideView", "entityApi"])
.config(["messageHubProvider", function (messageHubProvider) {
messageHubProvider.eventIdPrefix = 'codbex-currencies.currency.Currency';
messageHubProvider.eventIdPrefix = 'codbex-currencies.Currencies.Currency';
}])
.config(["entityApiProvider", function (entityApiProvider) {
entityApiProvider.baseUrl = "/services/js/codbex-currencies/gen/api/currency/Currency.js";
entityApiProvider.baseUrl = "/services/js/codbex-currencies/gen/api/Currencies/Currency.js";
}])
.controller('PageController', ['$scope', 'messageHub', 'entityApi', function ($scope, messageHub, entityApi) {

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"module":"codbex-currencies/gen/ui/Currencies/Currency/dialog-window/view.js","extensionPoint":"codbex-currencies-dialog-window","description":"codbex-currencies - Application Dialog Window"}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
const viewData = {
id: "Currency-details",
label: "Currency",
link: "/services/web/codbex-currencies/gen/ui/currency/Currency/dialog-window/index.html"
link: "/services/web/codbex-currencies/gen/ui/Currencies/Currency/dialog-window/index.html",
perspectiveName: "Currencies"
};

if (typeof exports !== 'undefined') {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"module":"codbex-currencies/gen/ui/Currencies/Currency/tile.js","extensionPoint":"portal-tile","description":"codbex-currencies - Application Tile"}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"module":"codbex-currencies/gen/ui/Currencies/Currency/tile.js","extensionPoint":"codbex-currencies-tile","description":"codbex-currencies - Application Tile"}
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
*/
exports.getTile = function () {
return {
group: "currency",
group: "Currencies",
name: "Currency",
caption: "Manage entity Currency",
tooltip: "Currency",
// icon: "file-o",
location: "/services/web/codbex-currencies/gen/ui/currency/index.html",
location: "/services/web/codbex-currencies/gen/ui/Currencies/index.html",
order: "100",
groupOrder: "100"
groupOrder: "990"
};
};
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"module":"codbex-currencies/gen/ui/Currencies/Currency/view.js","extensionPoint":"codbex-currencies-view","description":"codbex-currencies - Application View"}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ const viewData = {
label: "Currency",
factory: "frame",
region: "center",
link: "/services/web/codbex-currencies/gen/ui/currency/Currency/index.html",
link: "/services/web/codbex-currencies/gen/ui/Currencies/Currency/index.html",
perspectiveName: "Currencies"
};

if (typeof exports !== 'undefined') {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
angular.module('page', ["ideUI", "ideView", "entityApi"])
.config(["messageHubProvider", function (messageHubProvider) {
messageHubProvider.eventIdPrefix = 'codbex-currencies.currencyexchange.CurrencyExchange';
messageHubProvider.eventIdPrefix = 'codbex-currencies.Currencies.CurrencyExchange';
}])
.config(["entityApiProvider", function (entityApiProvider) {
entityApiProvider.baseUrl = "/services/js/codbex-currencies/gen/api/currencyexchange/CurrencyExchange.js";
entityApiProvider.baseUrl = "/services/js/codbex-currencies/gen/api/Currencies/CurrencyExchange.js";
}])
.controller('PageController', ['$scope', '$http', 'messageHub', 'entityApi', function ($scope, $http, messageHub, entityApi) {

Expand Down Expand Up @@ -118,7 +118,7 @@ angular.module('page', ["ideUI", "ideView", "entityApi"])
$scope.optionsSource = [];
$scope.optionsTarget = [];

$http.get("/services/js/codbex-currencies/gen/api/currency/Currency.js").then(function (response) {
$http.get("/services/js/codbex-currencies/gen/api/Currencies/Currency.js").then(function (response) {
$scope.optionsSource = response.data.map(e => {
return {
value: e.Code,
Expand All @@ -127,7 +127,7 @@ angular.module('page', ["ideUI", "ideView", "entityApi"])
});
});

$http.get("/services/js/codbex-currencies/gen/api/currency/Currency.js").then(function (response) {
$http.get("/services/js/codbex-currencies/gen/api/Currencies/Currency.js").then(function (response) {
$scope.optionsTarget = response.data.map(e => {
return {
value: e.Code,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
angular.module('page', ["ideUI", "ideView", "entityApi"])
.config(["messageHubProvider", function (messageHubProvider) {
messageHubProvider.eventIdPrefix = 'codbex-currencies.currencyexchange.CurrencyExchange';
messageHubProvider.eventIdPrefix = 'codbex-currencies.Currencies.CurrencyExchange';
}])
.config(["entityApiProvider", function (entityApiProvider) {
entityApiProvider.baseUrl = "/services/js/codbex-currencies/gen/api/currencyexchange/CurrencyExchange.js";
entityApiProvider.baseUrl = "/services/js/codbex-currencies/gen/api/Currencies/CurrencyExchange.js";
}])
.controller('PageController', ['$scope', 'messageHub', 'entityApi', function ($scope, messageHub, entityApi) {

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"module":"codbex-currencies/gen/ui/Currencies/CurrencyExchange/dialog-window/view.js","extensionPoint":"codbex-currencies-dialog-window","description":"codbex-currencies - Application Dialog Window"}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
const viewData = {
id: "CurrencyExchange-details",
label: "CurrencyExchange",
link: "/services/web/codbex-currencies/gen/ui/currencyexchange/CurrencyExchange/dialog-window/index.html"
link: "/services/web/codbex-currencies/gen/ui/Currencies/CurrencyExchange/dialog-window/index.html",
perspectiveName: "Currencies"
};

if (typeof exports !== 'undefined') {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"module":"codbex-currencies/gen/ui/Currencies/CurrencyExchange/tile.js","extensionPoint":"portal-tile","description":"codbex-currencies - Application Tile"}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"module":"codbex-currencies/gen/ui/Currencies/CurrencyExchange/tile.js","extensionPoint":"codbex-currencies-tile","description":"codbex-currencies - Application Tile"}
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
*/
exports.getTile = function () {
return {
group: "currencyexchange",
group: "Currencies",
name: "CurrencyExchange",
caption: "Manage entity CurrencyExchange",
tooltip: "CurrencyExchange",
// icon: "file-o",
location: "/services/web/codbex-currencies/gen/ui/currencyexchange/index.html",
location: "/services/web/codbex-currencies/gen/ui/Currencies/index.html",
order: "100",
groupOrder: "102"
groupOrder: "990"
};
};
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"module":"codbex-currencies/gen/ui/Currencies/CurrencyExchange/view.js","extensionPoint":"codbex-currencies-view","description":"codbex-currencies - Application View"}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ const viewData = {
label: "CurrencyExchange",
factory: "frame",
region: "center",
link: "/services/web/codbex-currencies/gen/ui/currencyexchange/CurrencyExchange/index.html",
link: "/services/web/codbex-currencies/gen/ui/Currencies/CurrencyExchange/index.html",
perspectiveName: "Currencies"
};

if (typeof exports !== 'undefined') {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,12 @@
dialogWindows: "codbex-currencies-dialog-window"
})
.controller('ApplicationController', ["$scope", "messageHub", function ($scope, messageHub) {
const httpRequest = new XMLHttpRequest();
httpRequest.open("GET", "/services/js/resources-core/services/views.js?extensionPoint=codbex-currencies-view", false);
httpRequest.send();

$scope.layoutModel = {
views: ['Currency']
views: JSON.parse(httpRequest.responseText).filter(e => !e.isLaunchpad && e.perspectiveName === "Currencies").map(e => e.id)
};

}]);
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"module":"codbex-currencies/gen/ui/Currencies/perspective.js","extensionPoint":"portal","description":"codbex-currencies - Perspective - Currencies"}
1 change: 1 addition & 0 deletions codbex-currencies/gen/ui/Currencies/perspective.extension
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"module":"codbex-currencies/gen/ui/Currencies/perspective.js","extensionPoint":"codbex-currencies","description":"codbex-currencies - Perspective - Currencies"}
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
* Do not modify the content as it may be re-generated again.
*/
const perspectiveData = {
id: "currency",
name: "currency",
link: "/services/web/codbex-currencies/gen/ui/currency/index.html",
order: "100",
id: "Currencies",
name: "Currencies",
link: "/services/web/codbex-currencies/gen/ui/Currencies/index.html",
order: "990",
icon: "/services/web/resources/unicons/dollar-alt.svg",
};

Expand Down

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion codbex-currencies/gen/ui/currency/Currency/tile.extension

This file was deleted.

1 change: 0 additions & 1 deletion codbex-currencies/gen/ui/currency/Currency/view.extension

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion codbex-currencies/gen/ui/currency/perspective.extension

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 41848db

Please sign in to comment.