Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit 280a111

Browse files
author
samsep
committed
build
1 parent d4ab84d commit 280a111

File tree

2 files changed

+124
-4
lines changed

2 files changed

+124
-4
lines changed

dist/lib.js

Lines changed: 50 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39433,7 +39433,7 @@ angular.module('ui.router.state')
3943339433
setPageClass = function(e, data) {
3943439434
var classes;
3943539435
if ($location.$$url === '/') {
39436-
return $(element[0]).addClass('home');
39436+
return $(element[0]).addClass('getting-started');
3943739437
} else {
3943839438
classes = $location.$$path.replace(/\//g, ' ');
3943939439
return $(element[0]).addClass(classes);
@@ -40140,6 +40140,55 @@ $templateCache.put("views/layout-project-nav.directive.html","<ul><li ng-class=\
4014040140

4014140141
}).call(this);
4014240142

40143+
(function() {
40144+
'use strict';
40145+
var srv, transformIdOnlyResponse, transformResponse;
40146+
40147+
transformResponse = function(response) {
40148+
var parsed, ref;
40149+
parsed = JSON.parse(response);
40150+
return parsed != null ? (ref = parsed.result) != null ? ref.content : void 0 : void 0;
40151+
};
40152+
40153+
transformIdOnlyResponse = function(response) {
40154+
var parsed, ref;
40155+
parsed = JSON.parse(response);
40156+
return {
40157+
id: parsed != null ? (ref = parsed.result) != null ? ref.content : void 0 : void 0
40158+
};
40159+
};
40160+
40161+
srv = function($resource, API_URL) {
40162+
var methods, params, url;
40163+
url = API_URL + '/v3/projects/:id';
40164+
params = {
40165+
id: '@id'
40166+
};
40167+
methods = {
40168+
put: {
40169+
method: 'PUT',
40170+
transformResponse: transformIdOnlyResponse
40171+
},
40172+
post: {
40173+
method: 'POST',
40174+
transformResponse: transformIdOnlyResponse
40175+
},
40176+
get: {
40177+
transformResponse: transformResponse
40178+
},
40179+
query: {
40180+
transformResponse: transformResponse
40181+
}
40182+
};
40183+
return $resource(url, params, methods);
40184+
};
40185+
40186+
srv.$inject = ['$resource', 'API_URL'];
40187+
40188+
angular.module('appirio-tech-ng-api-services').factory('SubmitWorkCreationAPIService', srv);
40189+
40190+
}).call(this);
40191+
4014340192
(function() {
4014440193
'use strict';
4014540194
var dependencies;

0 commit comments

Comments
 (0)