Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Commit

Permalink
[#101] - rebuild release files.
Browse files Browse the repository at this point in the history
Build generated for be765f8.
  • Loading branch information
frontpressbot committed Dec 27, 2016
1 parent be765f8 commit 704d02e
Show file tree
Hide file tree
Showing 4 changed files with 70 additions and 10 deletions.
34 changes: 32 additions & 2 deletions release/frontpress.js
Original file line number Diff line number Diff line change
Expand Up @@ -5088,6 +5088,7 @@ if (typeof module !== "undefined" && typeof exports !== "undefined" && module.ex

angular.module("frontpress.template-cache", []);
angular.module("frontpress.template-cache").run(["$templateCache", function($templateCache) {$templateCache.put('/js/components/featured-image/templates/featured-image.template.html','<img data-ng-src="{{vc.post.featured_image}}">');
$templateCache.put('/js/components/full-post/templates/full-post-author-name.template.html','<span data-ng-bind="vc.post.authorName"></span>');
$templateCache.put('/js/components/full-post/templates/full-post-categories-list.template.html','<div>\n\t<p data-ng-if="vc.post.isLoadingCategories">carregando categorias...</p>\n\t<p data-ng-if="vc.post.isLoadingCategories === false">\n\t\t<span><strong>categorias:</strong></span>\t\n\t\t<span data-ng-if="vc.post.categories.length == 1" rel="tag">{{vc.post.categories[0].name}} </span>\t\t\n\t\t<span data-ng-if="vc.post.categories.length > 1" \n\t\t\tdata-ng-repeat="category in vc.post.categories" \n\t\t\trel="tag">{{category.name}}{{$last ? "" : ", "}}\t\t\n\t\t</span>\t\t\n\t</p>\n</div>');
$templateCache.put('/js/components/full-post/templates/full-post-content-v1.template.html','<div data-ng-bind-html="vc.post.content | trustAsHtml"></div>');
$templateCache.put('/js/components/full-post/templates/full-post-content-v2.template.html','<div data-ng-bind-html="vc.post.content.rendered | trustAsHtml"></div>');
Expand Down Expand Up @@ -5372,6 +5373,27 @@ FeaturedImageDirective.$inject = ["$FrontPress"];

var module = angular.module("frontpress.components.full-post");

function FullPostAuthorNameDirective($FrontPress){
var directive = {
restrict: "AE",
scope: {
post: "=post"
},
templateUrl: $FrontPress.getTemplateUrl("components.fullpost.authorname"),
controller: "FullPostGenericDirectiveController",
controllerAs: "vc",
bindToController: true,
replace: true
};

return directive;
}

module.directive("fullPostAuthorName", FullPostAuthorNameDirective);
FullPostAuthorNameDirective.$inject = ["$FrontPress"];

var module = angular.module("frontpress.components.full-post");

function FullPostCategoriesListDirective($FrontPress){
return {
restrict: "AE",
Expand Down Expand Up @@ -5944,6 +5966,7 @@ function FrontPressProvider(FrontPressConfigurationFile, $disqusProvider){
"components.fullpost": "/js/components/full-post/templates/full-post.template.html",
"components.fullpost.categories": "/js/components/full-post/templates/full-post-categories-list.template.html",
"components.fullpost.tags": "/js/components/full-post/templates/full-post-tags-list.template.html",
"components.fullpost.authorname": "/js/components/full-post/templates/full-post-author-name.template.html",
"components.listposts": "/js/components/list-posts/templates/list-posts.template.html",
"components.pagehead": "/js/components/page-head/templates/page-head.template.html",
"components.postdate": "/js/components/post-date/templates/post-date.template.html",
Expand Down Expand Up @@ -6098,6 +6121,8 @@ function FullPostModel(PostsApi, TagsApi, CategoriesApi, $q, MediaApi, $FrontPre
setFeaturedImage: setFeaturedImage,
setId: setId,
setTitle: setTitle,
authorName: null,
setAuthorName: setAuthorName,
slug: null,
tags: [],
title: null,
Expand All @@ -6107,6 +6132,10 @@ function FullPostModel(PostsApi, TagsApi, CategoriesApi, $q, MediaApi, $FrontPre
model.categories.push(category);
}

function setAuthorName(authorName){
model.authorName = authorName;
}

function addTag(tag){
model.tags.push(tag);
}
Expand Down Expand Up @@ -6215,6 +6244,7 @@ function FullPostModel(PostsApi, TagsApi, CategoriesApi, $q, MediaApi, $FrontPre

case "v1":
model.setFeaturedImage(result.featured_image);
model.setAuthorName(result.author.name);

for (var category in result.categories){
model.addCategory(result.categories[category]);
Expand All @@ -6241,7 +6271,7 @@ function FullPostModel(PostsApi, TagsApi, CategoriesApi, $q, MediaApi, $FrontPre
return defer.promise;
}

var fieldsFilterList = "title,featured_image,featured_media,date,categories,content,slug,tags,{0}".format(ApiManagerMap.postId[0]);
var fieldsFilterList = "title,featured_image,featured_media,date,categories,content,slug,tags,{0},author".format(ApiManagerMap.postId[0]);
var promiseConfigs = {
fields: fieldsFilterList
};
Expand Down Expand Up @@ -6342,7 +6372,7 @@ function ListPostsModel(PostsApi, MediaApi, $q, SlugsMapModel, ApiManager){
var defer = $q.defer();

var configs = {
fields: "ID,title,date,featured_image,excerpt"
fields: "ID,title,date,featured_image,excerpt,author"
};

var postPromises = {
Expand Down
6 changes: 3 additions & 3 deletions release/frontpress.min.js

Large diffs are not rendered by default.

34 changes: 32 additions & 2 deletions release/frontpress.v1.js
Original file line number Diff line number Diff line change
Expand Up @@ -5088,6 +5088,7 @@ if (typeof module !== "undefined" && typeof exports !== "undefined" && module.ex

angular.module("frontpress.template-cache", []);
angular.module("frontpress.template-cache").run(["$templateCache", function($templateCache) {$templateCache.put('/js/components/featured-image/templates/featured-image.template.html','<img data-ng-src="{{vc.post.featured_image}}">');
$templateCache.put('/js/components/full-post/templates/full-post-author-name.template.html','<span data-ng-bind="vc.post.authorName"></span>');
$templateCache.put('/js/components/full-post/templates/full-post-categories-list.template.html','<div>\n\t<p data-ng-if="vc.post.isLoadingCategories">carregando categorias...</p>\n\t<p data-ng-if="vc.post.isLoadingCategories === false">\n\t\t<span><strong>categorias:</strong></span>\t\n\t\t<span data-ng-if="vc.post.categories.length == 1" rel="tag">{{vc.post.categories[0].name}} </span>\t\t\n\t\t<span data-ng-if="vc.post.categories.length > 1" \n\t\t\tdata-ng-repeat="category in vc.post.categories" \n\t\t\trel="tag">{{category.name}}{{$last ? "" : ", "}}\t\t\n\t\t</span>\t\t\n\t</p>\n</div>');
$templateCache.put('/js/components/full-post/templates/full-post-content-v1.template.html','<div data-ng-bind-html="vc.post.content | trustAsHtml"></div>');
$templateCache.put('/js/components/full-post/templates/full-post-content-v2.template.html','<div data-ng-bind-html="vc.post.content.rendered | trustAsHtml"></div>');
Expand Down Expand Up @@ -5372,6 +5373,27 @@ FeaturedImageDirective.$inject = ["$FrontPress"];

var module = angular.module("frontpress.components.full-post");

function FullPostAuthorNameDirective($FrontPress){
var directive = {
restrict: "AE",
scope: {
post: "=post"
},
templateUrl: $FrontPress.getTemplateUrl("components.fullpost.authorname"),
controller: "FullPostGenericDirectiveController",
controllerAs: "vc",
bindToController: true,
replace: true
};

return directive;
}

module.directive("fullPostAuthorName", FullPostAuthorNameDirective);
FullPostAuthorNameDirective.$inject = ["$FrontPress"];

var module = angular.module("frontpress.components.full-post");

function FullPostCategoriesListDirective($FrontPress){
return {
restrict: "AE",
Expand Down Expand Up @@ -5944,6 +5966,7 @@ function FrontPressProvider(FrontPressConfigurationFile, $disqusProvider){
"components.fullpost": "/js/components/full-post/templates/full-post.template.html",
"components.fullpost.categories": "/js/components/full-post/templates/full-post-categories-list.template.html",
"components.fullpost.tags": "/js/components/full-post/templates/full-post-tags-list.template.html",
"components.fullpost.authorname": "/js/components/full-post/templates/full-post-author-name.template.html",
"components.listposts": "/js/components/list-posts/templates/list-posts.template.html",
"components.pagehead": "/js/components/page-head/templates/page-head.template.html",
"components.postdate": "/js/components/post-date/templates/post-date.template.html",
Expand Down Expand Up @@ -6098,6 +6121,8 @@ function FullPostModel(PostsApi, TagsApi, CategoriesApi, $q, MediaApi, $FrontPre
setFeaturedImage: setFeaturedImage,
setId: setId,
setTitle: setTitle,
authorName: null,
setAuthorName: setAuthorName,
slug: null,
tags: [],
title: null,
Expand All @@ -6107,6 +6132,10 @@ function FullPostModel(PostsApi, TagsApi, CategoriesApi, $q, MediaApi, $FrontPre
model.categories.push(category);
}

function setAuthorName(authorName){
model.authorName = authorName;
}

function addTag(tag){
model.tags.push(tag);
}
Expand Down Expand Up @@ -6215,6 +6244,7 @@ function FullPostModel(PostsApi, TagsApi, CategoriesApi, $q, MediaApi, $FrontPre

case "v1":
model.setFeaturedImage(result.featured_image);
model.setAuthorName(result.author.name);

for (var category in result.categories){
model.addCategory(result.categories[category]);
Expand All @@ -6241,7 +6271,7 @@ function FullPostModel(PostsApi, TagsApi, CategoriesApi, $q, MediaApi, $FrontPre
return defer.promise;
}

var fieldsFilterList = "title,featured_image,featured_media,date,categories,content,slug,tags,{0}".format(ApiManagerMap.postId[0]);
var fieldsFilterList = "title,featured_image,featured_media,date,categories,content,slug,tags,{0},author".format(ApiManagerMap.postId[0]);
var promiseConfigs = {
fields: fieldsFilterList
};
Expand Down Expand Up @@ -6342,7 +6372,7 @@ function ListPostsModel(PostsApi, MediaApi, $q, SlugsMapModel, ApiManager){
var defer = $q.defer();

var configs = {
fields: "ID,title,date,featured_image,excerpt"
fields: "ID,title,date,featured_image,excerpt,author"
};

var postPromises = {
Expand Down
6 changes: 3 additions & 3 deletions release/frontpress.v1.min.js

Large diffs are not rendered by default.

0 comments on commit 704d02e

Please sign in to comment.