@@ -5107,7 +5107,8 @@ $templateCache.put('/js/components/post-date/templates/post-date.template.html',
5107
5107
$templateCache . put ( '/js/components/share/templates/share.template.html' , '<div>\n Share:\n <span data-ng-click="vc.vm.openShareWindow(\'twitter\', vc.post)">Twitter</span>\n <span data-ng-click="vc.vm.openShareWindow(\'facebook\', vc.post)">Facebook</span>\n <span data-ng-click="vc.vm.openShareWindow(\'gplus\', vc.post)">Google+</span>\n</div>\n' ) ;
5108
5108
$templateCache . put ( '/js/views/category/templates/category.template.html' , '<div> \n\t<div data-infinite-scroll="vc.loadMorePostsAndPaginate()" data-infinite-scroll-immediate-check="false" data-infinite-scroll-disabled="vc.vm.isLoadingPosts || vc.isInfiniteScrollDisabled">\n\t\t<list-posts></list-posts>\n\t\t<span data-ng-if="vc.vm.isLoadingPosts">Carregando posts novos ...</span>\n\t\t<pagination></pagination>\n\t</div>\n</div>' ) ;
5109
5109
$templateCache . put ( '/js/views/home/templates/home.template.html' , '<div> \n\t<div data-infinite-scroll="vc.loadMorePostsAndPaginate()" data-infinite-scroll-immediate-check="false" data-infinite-scroll-disabled="vc.vm.isLoadingPosts || vc.isInfiniteScrollDisabled">\n\t\t<list-posts></list-posts>\n\t\t<span data-ng-if="vc.vm.isLoadingPosts">Carregando posts novos ...</span>\n\t\t<pagination></pagination>\n\t</div>\n</div>' ) ;
5110
- $templateCache . put ( '/js/views/post/templates/post.template.html' , '<div>\n\t<full-post></full-post>\n</div>' ) ; } ] ) ;
5110
+ $templateCache . put ( '/js/views/post/templates/post.template.html' , '<div>\n\t<full-post></full-post>\n</div>' ) ;
5111
+ $templateCache . put ( '/js/views/tags/templates/tag.template.html' , '<div> \n\t<div data-infinite-scroll="vc.loadMorePostsAndPaginate()" data-infinite-scroll-immediate-check="false" data-infinite-scroll-disabled="vc.vm.isLoadingPosts || vc.isInfiniteScrollDisabled">\n\t\t<list-posts></list-posts>\n\t\t<span data-ng-if="vc.vm.isLoadingPosts">Carregando posts novos ...</span>\n\t\t<pagination></pagination>\n\t</div>\n</div>' ) ; } ] ) ;
5111
5112
"use strict" ;
5112
5113
5113
5114
angular . module ( "frontpress" , [
@@ -5792,30 +5793,6 @@ TrustAsHtml.$inject = ["$sce"];
5792
5793
5793
5794
"use strict" ;
5794
5795
5795
- function ApiManager ( ApiManagerMap ) {
5796
- var service = {
5797
- getPath : getPath
5798
- } ;
5799
-
5800
- return service ;
5801
-
5802
- function getPath ( object , pathName ) {
5803
- var result = object ;
5804
- var path = ApiManagerMap [ pathName ] ;
5805
-
5806
- for ( var i = 0 ; i < path . length ; i ++ ) {
5807
- result = result [ path [ i ] ] ;
5808
- }
5809
-
5810
- return result ;
5811
- }
5812
- }
5813
-
5814
- angular . module ( "frontpress.components.api-manager" ) . service ( "ApiManager" , ApiManager ) ;
5815
- ApiManager . $inject = [ "ApiManagerMap" ] ;
5816
-
5817
- "use strict" ;
5818
-
5819
5796
function AjaxModel ( $http ) {
5820
5797
function request ( url , params , method ) {
5821
5798
params = params || { } ;
@@ -5855,11 +5832,27 @@ AjaxModel.$inject = ["$http"];
5855
5832
5856
5833
"use strict" ;
5857
5834
5858
- function FeaturedImageDirectiveController ( ) {
5859
- var vc = this ;
5835
+ function ApiManager ( ApiManagerMap ) {
5836
+ var service = {
5837
+ getPath : getPath
5838
+ } ;
5839
+
5840
+ return service ;
5841
+
5842
+ function getPath ( object , pathName ) {
5843
+ var result = object ;
5844
+ var path = ApiManagerMap [ pathName ] ;
5845
+
5846
+ for ( var i = 0 ; i < path . length ; i ++ ) {
5847
+ result = result [ path [ i ] ] ;
5848
+ }
5849
+
5850
+ return result ;
5851
+ }
5860
5852
}
5861
5853
5862
- angular . module ( "frontpress.components.featured-image" ) . controller ( "FeaturedImageDirectiveController" , FeaturedImageDirectiveController ) ;
5854
+ angular . module ( "frontpress.components.api-manager" ) . service ( "ApiManager" , ApiManager ) ;
5855
+ ApiManager . $inject = [ "ApiManagerMap" ] ;
5863
5856
5864
5857
"use strict" ;
5865
5858
@@ -5936,6 +5929,14 @@ BlogModel.$inject = ["BlogApi", "$q", "ApiManager", "$FrontPress"];
5936
5929
5937
5930
"use strict" ;
5938
5931
5932
+ function FeaturedImageDirectiveController ( ) {
5933
+ var vc = this ;
5934
+ }
5935
+
5936
+ angular . module ( "frontpress.components.featured-image" ) . controller ( "FeaturedImageDirectiveController" , FeaturedImageDirectiveController ) ;
5937
+
5938
+ "use strict" ;
5939
+
5939
5940
function FrontPressProvider ( $disqusProvider , $stateProvider , FrontPressConfigurationFile ) {
5940
5941
var configure = {
5941
5942
load : load ,
@@ -7168,11 +7169,11 @@ TagRouteController.$inject = [];
7168
7169
7169
7170
"use strict" ;
7170
7171
7171
- angular . module ( "frontpress.apis.blog " , [ "frontpress.components.ajax" , "frontpress.components.frontpress-provider" ] ) ;
7172
+ angular . module ( "frontpress.apis.api-manager-map " , [ ] ) ;
7172
7173
7173
7174
"use strict" ;
7174
7175
7175
- angular . module ( "frontpress.apis.api-manager-map " , [ ] ) ;
7176
+ angular . module ( "frontpress.apis.blog " , [ "frontpress.components.ajax" , "frontpress.components.frontpress-provider" ] ) ;
7176
7177
7177
7178
"use strict" ;
7178
7179
@@ -7192,6 +7193,19 @@ angular.module("frontpress.apis.tags", ["frontpress.components.ajax", "frontpres
7192
7193
7193
7194
"use strict" ;
7194
7195
7196
+ angular . module ( "frontpress.apis.api-manager-map" )
7197
+ . constant ( "ApiManagerMap" , {
7198
+ "totalPostsNumber" : [ "headers" , "X-WP-Total" ] ,
7199
+ "allPostsPath" : [ "body" ] ,
7200
+ "postTitle" : [ "title" , "rendered" ] ,
7201
+ "postId" : [ "id" ] ,
7202
+ "postDate" : [ "date" ] ,
7203
+ "siteName" : [ "name" ] ,
7204
+ "siteDescription" : [ "description" ]
7205
+ } ) ;
7206
+
7207
+ "use strict" ;
7208
+
7195
7209
function BlogApi ( AjaxModel , $FrontPress ) {
7196
7210
var baseUrl = $FrontPress . restApiUrl ;
7197
7211
@@ -7210,19 +7224,6 @@ angular.module("frontpress.apis.blog").factory("BlogApi", BlogApi);
7210
7224
BlogApi . $inject = [ "AjaxModel" , "$FrontPress" ] ;
7211
7225
7212
7226
7213
- "use strict" ;
7214
-
7215
- angular . module ( "frontpress.apis.api-manager-map" )
7216
- . constant ( "ApiManagerMap" , {
7217
- "totalPostsNumber" : [ "headers" , "X-WP-Total" ] ,
7218
- "allPostsPath" : [ "body" ] ,
7219
- "postTitle" : [ "title" , "rendered" ] ,
7220
- "postId" : [ "id" ] ,
7221
- "postDate" : [ "date" ] ,
7222
- "siteName" : [ "name" ] ,
7223
- "siteDescription" : [ "description" ]
7224
- } ) ;
7225
-
7226
7227
"use strict" ;
7227
7228
7228
7229
function CategoriesApi ( AjaxModel , $FrontPress , ConfigsToParams ) {
@@ -7330,10 +7331,10 @@ function TagsApi(AjaxModel, $FrontPress, ConfigsToParams){
7330
7331
7331
7332
return {
7332
7333
getAllTags : getAllTags ,
7333
- getTagById : getTagById ,
7334
+ getTagById : getTagById
7334
7335
} ;
7335
7336
}
7336
7337
7337
- angular . module ( "frontpress.apis.categories " ) . factory ( "TagsApi" , TagsApi ) ;
7338
+ angular . module ( "frontpress.apis.tags " ) . factory ( "TagsApi" , TagsApi ) ;
7338
7339
TagsApi . $inject = [ "AjaxModel" , "$FrontPress" , "ConfigsToParams" ] ;
7339
7340
0 commit comments