mirror of
https://github.com/richard-loafle/fuse-angular.git
synced 2025-12-19 07:17:09 +00:00
(comments) Fixed: The word 'data' replaced with 'mock-api' by mistake in the past causing a lot of comments to make no sense
This commit is contained in:
@@ -271,7 +271,7 @@ export class CalendarComponent implements OnInit, AfterViewInit, OnDestroy
|
||||
this.viewTitle = this._fullCalendarApi.view.title;
|
||||
|
||||
// Get the view's current start and end dates, add/subtract
|
||||
// 60 days to create a ~150 days period to fetch the mock-api for
|
||||
// 60 days to create a ~150 days period to fetch the data for
|
||||
const viewStart = moment(this._fullCalendarApi.view.currentStart).subtract(60, 'days');
|
||||
const viewEnd = moment(this._fullCalendarApi.view.currentEnd).add(60, 'days');
|
||||
|
||||
|
||||
@@ -265,7 +265,7 @@ export class CalendarService
|
||||
|
||||
// Return if remaining days is bigger than the number
|
||||
// of days to prefetch. This means we were already been
|
||||
// there and fetched the events mock-api so no need for doing
|
||||
// there and fetched the events data so no need for doing
|
||||
// it again.
|
||||
if ( remainingDays >= this._numberOfDaysToPrefetch )
|
||||
{
|
||||
@@ -292,7 +292,7 @@ export class CalendarService
|
||||
|
||||
// Return if remaining days is bigger than the number
|
||||
// of days to prefetch. This means we were already been
|
||||
// there and fetched the events mock-api so no need for doing
|
||||
// there and fetched the events data so no need for doing
|
||||
// it again.
|
||||
if ( remainingDays >= this._numberOfDaysToPrefetch )
|
||||
{
|
||||
|
||||
@@ -484,7 +484,7 @@ export class InventoryListComponent implements OnInit, AfterViewInit, OnDestroy
|
||||
}
|
||||
|
||||
/**
|
||||
* Update the selected product using the form mock-api
|
||||
* Update the selected product using the form data
|
||||
*/
|
||||
updateSelectedProduct(): void
|
||||
{
|
||||
@@ -503,7 +503,7 @@ export class InventoryListComponent implements OnInit, AfterViewInit, OnDestroy
|
||||
}
|
||||
|
||||
/**
|
||||
* Delete the selected product using the form mock-api
|
||||
* Delete the selected product using the form data
|
||||
*/
|
||||
deleteSelectedProduct(): void
|
||||
{
|
||||
|
||||
@@ -122,7 +122,7 @@ export class MailboxSidebarComponent implements OnInit, OnDestroy
|
||||
*/
|
||||
private _generateFoldersMenuLinks(): void
|
||||
{
|
||||
// Reset the folders menu mock-api
|
||||
// Reset the folders menu data
|
||||
this._foldersMenuData = [];
|
||||
|
||||
// Iterate through the folders
|
||||
@@ -146,11 +146,11 @@ export class MailboxSidebarComponent implements OnInit, OnDestroy
|
||||
};
|
||||
}
|
||||
|
||||
// Push the menu item to the folders menu mock-api
|
||||
// Push the menu item to the folders menu data
|
||||
this._foldersMenuData.push(menuItem);
|
||||
});
|
||||
|
||||
// Update the menu mock-api
|
||||
// Update the menu data
|
||||
this._updateMenuData();
|
||||
}
|
||||
|
||||
@@ -177,7 +177,7 @@ export class MailboxSidebarComponent implements OnInit, OnDestroy
|
||||
});
|
||||
});
|
||||
|
||||
// Update the menu mock-api
|
||||
// Update the menu data
|
||||
this._updateMenuData();
|
||||
}
|
||||
|
||||
@@ -207,7 +207,7 @@ export class MailboxSidebarComponent implements OnInit, OnDestroy
|
||||
});
|
||||
});
|
||||
|
||||
// Update the menu mock-api
|
||||
// Update the menu data
|
||||
this._updateMenuData();
|
||||
}
|
||||
|
||||
@@ -226,12 +226,12 @@ export class MailboxSidebarComponent implements OnInit, OnDestroy
|
||||
link : '/apps/mailbox/settings'
|
||||
});
|
||||
|
||||
// Update the menu mock-api
|
||||
// Update the menu data
|
||||
this._updateMenuData();
|
||||
}
|
||||
|
||||
/**
|
||||
* Update the menu mock-api
|
||||
* Update the menu data
|
||||
*
|
||||
* @private
|
||||
*/
|
||||
@@ -278,7 +278,7 @@ export class MailboxSidebarComponent implements OnInit, OnDestroy
|
||||
// Get the inbox folder
|
||||
const inboxFolder = this.folders.find(folder => folder.slug === 'inbox');
|
||||
|
||||
// Get the component -> navigation mock-api -> item
|
||||
// Get the component -> navigation data -> item
|
||||
const mainNavigationComponent = this._fuseNavigationService.getComponent<FuseVerticalNavigationComponent>('mainNavigation');
|
||||
|
||||
// If the main navigation component exists...
|
||||
|
||||
@@ -239,7 +239,7 @@ export class DirectoryStructureComponent implements OnInit
|
||||
*/
|
||||
createTree(data): { dataSource: any; treeControl: any }
|
||||
{
|
||||
// Create tree control and mock-api source
|
||||
// Create tree control and data source
|
||||
const treeControl = new FlatTreeControl<FlatDirNode>(node => node.level, node => node.expandable);
|
||||
const dataSource = new MatTreeFlatDataSource(
|
||||
treeControl,
|
||||
@@ -252,7 +252,7 @@ export class DirectoryStructureComponent implements OnInit
|
||||
node => node.level, node => node.expandable, node => node.children)
|
||||
);
|
||||
|
||||
// Set the mock-api
|
||||
// Set the data
|
||||
dataSource.data = data;
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user