@c8y/ng1-modules 1017.203.0 → 1017.206.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- "use strict";!function(){function i(i,e,t,a,c,o){var r={anyRole:["ROLE_APPLICATION_MANAGEMENT_READ","ROLE_APPLICATION_MANAGEMENT_ADMIN"]};i.addNavigation({parent:{name:o("Ecosystem"),icon:"c8y-atom"},name:o("Applications"),path:"/ecosystem",icon:"c8y-modules",routerLinkExact:!1,priority:3900,showIfPermissions:r}),i.addNavigation({parent:{name:o("Ecosystem"),icon:"c8y-atom"},name:o("Microservices"),path:"/microservices",icon:"microchip",routerLinkExact:!1,priority:3800,showIfPermissions:r}),e.when("/microservices/:applicationId",{controller:"permissionsCtrl",templateUrl:":::PLUGIN_PATH:::/views/permissions.html",icon:"check-square-o",name:o("Permissions"),showIf:["$routeParams","c8yBase","c8yApplication",function(i,e,t){return t.detail(i.applicationId).then(e.getResData).then(function(i){return"MICROSERVICE"===i.type})}]}),t.addTitle("/microservices/:applicationId",{data:["$q",function(i){return i.when({templateUrl:":::PLUGIN_PATH:::/views/title.html"})}]}),a.addUrlAction({path:"/microservices/:applicationId/archives",text:o("Reactivate"),actionBar:!0,position:"right",button:{cls:"default"},icon:"undo",priority:4e3,showIf:["c8yApplication","$routeParams","c8yBase",function(i,e,t){return i.detail(e.applicationId).then(t.getResData).then(function(i){return"HOSTED"===i.type})}],action:["$routeParams","c8yApplication","c8yAlert",function(i,e,t){e.refreshHostedApp(i.applicationId).then(function(){t.success(o("Application reactivated."))})}]}),c.addBreadcrumbs("/microservices/:applicationId/permissions",{data:["$routeParams","c8yApplication","c8yBase","$filter",function(i,e,t,a){var c=a("humanizeAppName");return e.detail(i.applicationId).then(t.getResData).then(function(i){return[[{label:o("Ecosystem"),icon:"c8y-atom"},{path:"#microservices",label:o("Microservices")},{label:c(i.name)},{label:o("Permissions")}]]})}]})}i.$inject=["c8yNavigatorProvider","c8yViewsProvider","c8yTitleProvider","c8yActionsProvider","c8yBreadcrumbsProvider","gettext"],angular.module("c8y.parts.applications",[]).config(i)}();
1
+ "use strict";!function(){function e(e,i,t,c,o,a){var r={anyRole:["ROLE_APPLICATION_MANAGEMENT_READ","ROLE_APPLICATION_MANAGEMENT_ADMIN"]};e.addNavigation({parent:{name:a("Ecosystem"),icon:"c8y-atom"},name:a("Applications"),path:"/ecosystem/application",icon:"c8y-modules",routerLinkExact:!1,priority:3900,showIfPermissions:r}),e.addNavigation({parent:{name:a("Ecosystem"),icon:"c8y-atom"},name:a("Extensions"),path:"/ecosystem/extension/extensions",icon:"big-parcel",routerLinkExact:!1,priority:3850,showIfPermissions:r}),e.addNavigation({parent:{name:a("Ecosystem"),icon:"c8y-atom"},name:a("Microservices"),path:"/ecosystem/microservice/microservices",icon:"microchip",routerLinkExact:!1,priority:3800,showIfPermissions:r}),i.when("/ecosystem/microservice/microservices/:applicationId",{controller:"permissionsCtrl",templateUrl:":::PLUGIN_PATH:::/views/permissions.html",icon:"check-square-o",name:a("Permissions"),showIf:["$routeParams","c8yBase","c8yApplication",function(e,i,t){return t.detail(e.applicationId).then(i.getResData).then(function(e){return"MICROSERVICE"===e.type})}]}),t.addTitle("/ecosystem/microservice/microservices/:applicationId",{data:["$q",function(e){return e.when({templateUrl:":::PLUGIN_PATH:::/views/title.html"})}]}),c.addUrlAction({path:"/ecosystem/microservice/microservices/:applicationId/archives",text:a("Reactivate"),actionBar:!0,position:"right",button:{cls:"default"},icon:"undo",priority:4e3,showIf:["c8yApplication","$routeParams","c8yBase",function(e,i,t){return e.detail(i.applicationId).then(t.getResData).then(function(e){return"HOSTED"===e.type})}],action:["$routeParams","c8yApplication","c8yAlert",function(e,i,t){i.refreshHostedApp(e.applicationId).then(function(){t.success(a("Application reactivated."))})}]}),o.addBreadcrumbs("/ecosystem/microservice/microservices/:applicationId/permissions",{data:["$routeParams","c8yApplication","c8yBase","$filter",function(e,i,t,c){var o=c("humanizeAppName");return i.detail(e.applicationId).then(t.getResData).then(function(e){return[[{label:a("Ecosystem"),icon:"c8y-atom"},{path:"#/ecosystem/microservice/microservices",label:a("Microservices")},{label:o(e.name)},{label:a("Permissions")}]]})}]})}e.$inject=["c8yNavigatorProvider","c8yViewsProvider","c8yTitleProvider","c8yActionsProvider","c8yBreadcrumbsProvider","gettext"],angular.module("c8y.parts.applications",[]).config(e)}();
package/app-logs/index.js CHANGED
@@ -1 +1 @@
1
- "use strict";!function(){function a(a,e,o){a.when("/microservices/:applicationId",{template:'<c8y-app-logs base-path="applications"></c8y-app-logs>',icon:"file-text",name:o("Logs"),showIf:["$routeParams","c8yApplicationLogs",function(a,e){return e.shouldShowLogsTab(a.applicationId)}]}),e.addBreadcrumbs("/microservices/:applicationId/logs",{data:["$routeParams","c8yApplication","c8yBase","$filter",function(a,e,i,t){var c=t("humanizeAppName");return e.detail(a.applicationId).then(i.getResData).then(function(a){return[[{label:o("Ecosystem"),icon:"c8y-atom"},{path:"#microservices",label:o("Microservices")},{label:c(a.name)},{label:o("Logs")}]]})}]})}a.$inject=["c8yViewsProvider","c8yBreadcrumbsProvider","gettext"],angular.module("c8y.appLogs",[]).config(a)}();
1
+ "use strict";!function(){function e(e,c,t){e.when("/ecosystem/microservice/microservices/:applicationId",{template:'<c8y-app-logs base-path="applications"></c8y-app-logs>',icon:"file-text",name:t("Logs"),showIf:["$routeParams","c8yApplicationLogs",function(e,c){return c.shouldShowLogsTab(e.applicationId)}]}),c.addBreadcrumbs("/ecosystem/microservice/microservices/:applicationId/logs",{data:["$routeParams","c8yApplication","c8yBase","$filter",function(e,c,a,i){var o=i("humanizeAppName");return c.detail(e.applicationId).then(a.getResData).then(function(e){return[[{label:t("Ecosystem"),icon:"c8y-atom"},{path:"#/ecosystem/microservice/microservices",label:t("Microservices")},{label:o(e.name)},{label:t("Logs")}]]})}]})}e.$inject=["c8yViewsProvider","c8yBreadcrumbsProvider","gettext"],angular.module("c8y.appLogs",[]).config(e)}();
@@ -1 +1 @@
1
- "use strict";!function(){function t(t,n,a,r){n.addUrlAction({path:"/microservices/:applicationId/status",text:r("Add smart rule"),actionBar:!0,position:"right",icon:"plus",priority:100,showIf:["$routeParams","c8yApplication","c8yTenant","$q","c8yPermissions",function(t,n,a,e,i){var r=t.applicationId,c=n.getApplicationMO(r);return e.all({currentTenant:a.current(),mo:c,canAdminMO:c.then(function(t){return i.canAdminMOs([t.id])})}).then(function(t){var n=t.currentTenant,a=t.mo,e=t.canAdminMO,i=a.applicationOwner===n.name;return e&&i})}],action:["$routeParams","smartRulesSvc","c8yApplication","$rootScope",function(t,n,a,e){var i=function(t){return _.includes(["onAlarmSendSms","onAlarmSendEmail"],t.name)};return a.getApplicationMO(t.applicationId).then(function(t){return n.addNewWithUI({},i,function(t){return{c8y_Context:{context:"managedObject",id:t.id}}}(t))}).then(function(){return e.$broadcast("smartRulesListReload")})}]}),a.addBreadcrumbs("/applications/:applicationId/status",{data:["$routeParams","c8yApplication","c8yBase","$filter",function(t,n,a,e){var i=e("humanizeAppName");return n.detail(t.applicationId).then(a.getResData).then(function(t){return[[{label:r("Ecosystem"),icon:"c8y-atom"},{path:"#microservices",label:r("Microservices")},{label:i(t.name)},{label:r("Status")}]]})}]})}t.$inject=["c8yViewsProvider","c8yActionsProvider","c8yBreadcrumbsProvider","gettext"],angular.module("c8y.appStatus",[]).config(t)}();
1
+ "use strict";!function(){function t(t,n,e,r){n.addUrlAction({path:"/ecosystem/microservice/microservices/:applicationId/status",text:r("Add smart rule"),actionBar:!0,position:"right",icon:"plus",priority:100,showIf:["$routeParams","c8yApplication","c8yTenant","$q","c8yPermissions",function(t,n,e,i,a){var r=t.applicationId,c=n.getApplicationMO(r);return i.all({currentTenant:e.current(),mo:c,canAdminMO:c.then(function(t){return a.canAdminMOs([t.id])})}).then(function(t){var n=t.currentTenant,e=t.mo,i=t.canAdminMO,a=e.applicationOwner===n.name;return i&&a})}],action:["$routeParams","smartRulesSvc","c8yApplication","$rootScope",function(t,n,e,i){var a=function(t){return _.includes(["onAlarmSendSms","onAlarmSendEmail"],t.name)};return e.getApplicationMO(t.applicationId).then(function(t){return n.addNewWithUI({},a,function(t){return{c8y_Context:{context:"managedObject",id:t.id}}}(t))}).then(function(){return i.$broadcast("smartRulesListReload")})}]}),e.addBreadcrumbs("/ecosystem/microservice/microservices/:applicationId/status",{data:["$routeParams","c8yApplication","c8yBase","$filter",function(t,n,e,i){var a=i("humanizeAppName");return n.detail(t.applicationId).then(e.getResData).then(function(t){return[[{label:r("Ecosystem"),icon:"c8y-atom"},{path:"#/ecosystem/microservice/microservices",label:r("Microservices")},{label:a(t.name)},{label:r("Status")}]]})}]})}t.$inject=["c8yViewsProvider","c8yActionsProvider","c8yBreadcrumbsProvider","gettext"],angular.module("c8y.appStatus",[]).config(t)}();
@@ -1 +1 @@
1
- "use strict";!function(){function t(t,a,n){var e="microservices";t.when("/".concat(e,"/:applicationId"),{template:'<c8y-app-status base-path="'.concat(e,'"></c8y-app-status>'),icon:"heartbeat",name:n("Status"),showIf:["$routeParams","c8yApplication",function(t,a){var e=t.applicationId;return a.getApplicationMO(e).then(function(t){return!!t&&!_.isUndefined(t.c8y_Status)&&!_.isNull(t.c8y_Status)})}]}),a.addBreadcrumbs("/microservices/:applicationId/status",{data:["$routeParams","c8yApplication","c8yBase","$filter",function(t,a,e,c){var i=c("humanizeAppName");return a.detail(t.applicationId).then(e.getResData).then(function(t){return[[{label:n("Ecosystem"),icon:"heartbeat"},{path:"#microservices",label:n("Microservices")},{label:i(t.name)},{label:n("Status")}]]})}]})}t.$inject=["c8yViewsProvider","c8yBreadcrumbsProvider","gettext"],angular.module("c8y.appStatusUI",[]).config(t)}();
1
+ "use strict";!function(){function e(e,t,s){var a="ecosystem/microservice/microservices";e.when("/".concat(a,"/:applicationId"),{template:'<c8y-app-status base-path="'.concat(a,'"></c8y-app-status>'),icon:"heartbeat",name:s("Status"),showIf:["$routeParams","c8yApplication",function(e,t){var a=e.applicationId;return t.getApplicationMO(a).then(function(e){return!!e&&!_.isUndefined(e.c8y_Status)&&!_.isNull(e.c8y_Status)})}]}),t.addBreadcrumbs("/ecosystem/microservice/microservices/:applicationId/status",{data:["$routeParams","c8yApplication","c8yBase","$filter",function(e,t,a,c){var i=c("humanizeAppName");return t.detail(e.applicationId).then(a.getResData).then(function(e){return[[{label:s("Ecosystem"),icon:"heartbeat"},{path:"#/ecosystem/microservice/microservices",label:s("Microservices")},{label:i(e.name)},{label:s("Status")}]]})}]})}e.$inject=["c8yViewsProvider","c8yBreadcrumbsProvider","gettext"],angular.module("c8y.appStatusUI",[]).config(e)}();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@c8y/ng1-modules",
3
- "version": "1017.203.0",
3
+ "version": "1017.206.0",
4
4
  "license": "Apache-2.0",
5
5
  "author": "Cumulocity",
6
6
  "description": "AngularJS modules for Cumulocity IoT applications.",