mirror of
https://github.com/LaconicNetwork/laconic.com.git
synced 2026-01-17 13:44:10 +00:00
typescript
Signed-off-by: Traxus <shyidx@gmail.com>
This commit is contained in:
parent
fc5d0bc7f7
commit
1ee8db732f
@ -77,11 +77,11 @@ function getListingQueryDirectories() {
|
||||
//directories['allCategories'] = 'category';
|
||||
|
||||
|
||||
directories['allEvents'] : string = 'event';
|
||||
directories['allPositions'] : string = 'position';
|
||||
directories['allPressReleases'] : string = 'pressRelease';
|
||||
directories['allTeams'] : string = 'team';
|
||||
directories['allTestimonials'] : string = 'testimonial';
|
||||
directories['allEvents'] : any = 'event';
|
||||
directories['allPositions'] : any = 'position';
|
||||
directories['allPressReleases'] : any = 'pressRelease';
|
||||
directories['allTeams'] : any = 'team';
|
||||
directories['allTestimonials'] : any = 'testimonial';
|
||||
|
||||
return directories;
|
||||
|
||||
@ -357,7 +357,7 @@ function getFakePaginationData(json : object) {
|
||||
return pagination;
|
||||
}
|
||||
|
||||
async function getAllBlogPostsJson() {
|
||||
async function getAllBlogPostsJson() : object {
|
||||
let jsonDirectory = getBlogJsonDirectoryPath();
|
||||
let validationNodes = getRequiedBlogPostNodes();
|
||||
let blogPosts = await getJsonItemsFromDirectory(jsonDirectory, pluckBlogPostData, validationNodes);
|
||||
@ -564,7 +564,7 @@ function getRequiedBlogBlogCategoryNodes() {
|
||||
|
||||
}
|
||||
|
||||
export async function getAllBlogCategoriesJson() {
|
||||
export async function getAllBlogCategoriesJson() : object {
|
||||
let jsonDirectory = getBlogCategoriesJsonDirectoryPath();
|
||||
let validationNodes = getRequiedBlogBlogCategoryNodes();
|
||||
let allBlogCategoriesJson = await getJsonItemsFromDirectory(jsonDirectory, pluckBlogCategoriesData, validationNodes)
|
||||
@ -627,7 +627,7 @@ function sortEventsJsonByStartDate(json : object) {
|
||||
return sortedJson;
|
||||
}
|
||||
|
||||
async function getAllEventsJson() {
|
||||
async function getAllEventsJson() : object {
|
||||
let jsonDirectory = getEventsJsonDirectoryPath();
|
||||
let validationNodes = getRequiedEventNodes();
|
||||
let events = await getJsonItemsFromDirectory(jsonDirectory, pluckEventData, validationNodes);
|
||||
@ -676,7 +676,7 @@ function sortPositionsJsonById(json : object) {
|
||||
return sortedJson;
|
||||
}
|
||||
|
||||
async function getAllPositionsJson() {
|
||||
async function getAllPositionsJson() : object {
|
||||
let jsonDirectory = getPositionsJsonDirectoryPath();
|
||||
let validationNodes = getRequiedPositionNodes();
|
||||
let positions = await getJsonItemsFromDirectory(jsonDirectory, pluckPositionData, validationNodes);
|
||||
@ -726,7 +726,7 @@ function sortPressReleasesJsonByDate(json : object) {
|
||||
return sortedJson;
|
||||
}
|
||||
|
||||
async function getAllPressReleasesJson() {
|
||||
async function getAllPressReleasesJson() : object {
|
||||
let jsonDirectory = getPressReleasesJsonDirectoryPath();
|
||||
let validationNodes = getRequiedPressReleaseNodes();
|
||||
let pressReleases = await getJsonItemsFromDirectory(jsonDirectory, pluckPressReleaseData, validationNodes);
|
||||
@ -774,7 +774,7 @@ function sortTeamsJsonById(json : object) {
|
||||
return sortedJson;
|
||||
}
|
||||
|
||||
async function getAllTeamsJson() {
|
||||
async function getAllTeamsJson() : object {
|
||||
let jsonDirectory = getTeamsJsonDirectoryPath();
|
||||
let validationNodes = getRequiedTeamNodes();
|
||||
let teams = await getJsonItemsFromDirectory(jsonDirectory, pluckTeamData, validationNodes);
|
||||
@ -824,7 +824,7 @@ function sortTestimonialsJsonById(json : object) {
|
||||
return sortedJson;
|
||||
}
|
||||
|
||||
async function getAllTestimonialsJson() {
|
||||
async function getAllTestimonialsJson() : object {
|
||||
let jsonDirectory = getTestimonialsJsonDirectoryPath();
|
||||
let validationNodes = getRequiedTestimonialNodes();
|
||||
let testimonials = await getJsonItemsFromDirectory(jsonDirectory, pluckTestimonialData, validationNodes);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user