MOBILE-3947 compile: Remove module services without plugins
parent
2078c12571
commit
f7d2992ca4
|
@ -12,7 +12,7 @@
|
||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
import { APP_INITIALIZER, NgModule, Type } from '@angular/core';
|
import { APP_INITIALIZER, NgModule } from '@angular/core';
|
||||||
import { Routes } from '@angular/router';
|
import { Routes } from '@angular/router';
|
||||||
import { CoreContentLinksDelegate } from '@features/contentlinks/services/contentlinks-delegate';
|
import { CoreContentLinksDelegate } from '@features/contentlinks/services/contentlinks-delegate';
|
||||||
import { CoreCourseModuleDelegate } from '@features/course/services/module-delegate';
|
import { CoreCourseModuleDelegate } from '@features/course/services/module-delegate';
|
||||||
|
@ -22,19 +22,6 @@ import { AddonModBBBIndexLinkHandler } from './services/handlers/index-link';
|
||||||
import { AddonModBBBListLinkHandler } from './services/handlers/list-link';
|
import { AddonModBBBListLinkHandler } from './services/handlers/list-link';
|
||||||
import { AddonModBBBModuleHandler, ADDON_MOD_BBB_MAIN_MENU_PAGE_NAME } from './services/handlers/module';
|
import { AddonModBBBModuleHandler, ADDON_MOD_BBB_MAIN_MENU_PAGE_NAME } from './services/handlers/module';
|
||||||
|
|
||||||
/**
|
|
||||||
* Get mod BBB services.
|
|
||||||
*
|
|
||||||
* @returns Returns mod BBB services.
|
|
||||||
*/
|
|
||||||
export async function getModBBBServices(): Promise<Type<unknown>[]> {
|
|
||||||
const { AddonModBBBService } = await import('@addons/mod/bigbluebuttonbn/services/bigbluebuttonbn');
|
|
||||||
|
|
||||||
return [
|
|
||||||
AddonModBBBService,
|
|
||||||
];
|
|
||||||
}
|
|
||||||
|
|
||||||
const routes: Routes = [
|
const routes: Routes = [
|
||||||
{
|
{
|
||||||
path: ADDON_MOD_BBB_MAIN_MENU_PAGE_NAME,
|
path: ADDON_MOD_BBB_MAIN_MENU_PAGE_NAME,
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
import { APP_INITIALIZER, NgModule, Type } from '@angular/core';
|
import { APP_INITIALIZER, NgModule } from '@angular/core';
|
||||||
import { Routes } from '@angular/router';
|
import { Routes } from '@angular/router';
|
||||||
import { CoreContentLinksDelegate } from '@features/contentlinks/services/contentlinks-delegate';
|
import { CoreContentLinksDelegate } from '@features/contentlinks/services/contentlinks-delegate';
|
||||||
import { CoreCourseModuleDelegate } from '@features/course/services/module-delegate';
|
import { CoreCourseModuleDelegate } from '@features/course/services/module-delegate';
|
||||||
|
@ -28,19 +28,6 @@ import { AddonModBookTagAreaHandler } from './services/handlers/tag-area';
|
||||||
import { CORE_SITE_SCHEMAS } from '@services/sites';
|
import { CORE_SITE_SCHEMAS } from '@services/sites';
|
||||||
import { BOOK_SITE_SCHEMA } from './services/database/book';
|
import { BOOK_SITE_SCHEMA } from './services/database/book';
|
||||||
|
|
||||||
/**
|
|
||||||
* Get mod book services.
|
|
||||||
*
|
|
||||||
* @returns Returns mod book services.
|
|
||||||
*/
|
|
||||||
export async function getModBookServices(): Promise<Type<unknown>[]> {
|
|
||||||
const { AddonModBookProvider } = await import('@addons/mod/book/services/book');
|
|
||||||
|
|
||||||
return [
|
|
||||||
AddonModBookProvider,
|
|
||||||
];
|
|
||||||
}
|
|
||||||
|
|
||||||
const routes: Routes = [
|
const routes: Routes = [
|
||||||
{
|
{
|
||||||
path: AddonModBookModuleHandlerService.PAGE_NAME,
|
path: AddonModBookModuleHandlerService.PAGE_NAME,
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
import { APP_INITIALIZER, NgModule, Type } from '@angular/core';
|
import { APP_INITIALIZER, NgModule } from '@angular/core';
|
||||||
import { Routes } from '@angular/router';
|
import { Routes } from '@angular/router';
|
||||||
import { CoreContentLinksDelegate } from '@features/contentlinks/services/contentlinks-delegate';
|
import { CoreContentLinksDelegate } from '@features/contentlinks/services/contentlinks-delegate';
|
||||||
import { CoreCourseHelper } from '@features/course/services/course-helper';
|
import { CoreCourseHelper } from '@features/course/services/course-helper';
|
||||||
|
@ -25,32 +25,6 @@ import { AddonModChatModuleHandler } from './services/handlers/module';
|
||||||
import { getPrefetchHandlerInstance } from './services/handlers/prefetch';
|
import { getPrefetchHandlerInstance } from './services/handlers/prefetch';
|
||||||
import { ADDON_MOD_CHAT_COMPONENT, ADDON_MOD_CHAT_PAGE_NAME } from './constants';
|
import { ADDON_MOD_CHAT_COMPONENT, ADDON_MOD_CHAT_PAGE_NAME } from './constants';
|
||||||
|
|
||||||
/**
|
|
||||||
* Get mod chat services.
|
|
||||||
*
|
|
||||||
* @returns Returns mod chat services.
|
|
||||||
*/
|
|
||||||
export async function getModChatServices(): Promise<Type<unknown>[]> {
|
|
||||||
const { AddonModChatProvider } = await import('@addons/mod/chat/services/chat');
|
|
||||||
const { AddonModChatHelperProvider } = await import('@addons/mod/chat/services/chat-helper');
|
|
||||||
|
|
||||||
return [
|
|
||||||
AddonModChatProvider,
|
|
||||||
AddonModChatHelperProvider,
|
|
||||||
];
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get mod chat component modules.
|
|
||||||
*
|
|
||||||
* @returns Chat component modules.
|
|
||||||
*/
|
|
||||||
export async function getModChatComponentModules(): Promise<unknown[]> {
|
|
||||||
const { AddonModChatComponentsModule } = await import('@addons/mod/chat/components/components.module');
|
|
||||||
|
|
||||||
return [AddonModChatComponentsModule];
|
|
||||||
}
|
|
||||||
|
|
||||||
const routes: Routes = [
|
const routes: Routes = [
|
||||||
{
|
{
|
||||||
path: ADDON_MOD_CHAT_PAGE_NAME,
|
path: ADDON_MOD_CHAT_PAGE_NAME,
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
import { APP_INITIALIZER, NgModule, Type } from '@angular/core';
|
import { APP_INITIALIZER, NgModule } from '@angular/core';
|
||||||
import { Routes } from '@angular/router';
|
import { Routes } from '@angular/router';
|
||||||
|
|
||||||
import { CoreContentLinksDelegate } from '@features/contentlinks/services/contentlinks-delegate';
|
import { CoreContentLinksDelegate } from '@features/contentlinks/services/contentlinks-delegate';
|
||||||
|
@ -31,23 +31,6 @@ import { AddonModChoiceModuleHandler, AddonModChoiceModuleHandlerService } from
|
||||||
import { AddonModChoicePrefetchHandler } from './services/handlers/prefetch';
|
import { AddonModChoicePrefetchHandler } from './services/handlers/prefetch';
|
||||||
import { AddonModChoiceSyncCronHandler } from './services/handlers/sync-cron';
|
import { AddonModChoiceSyncCronHandler } from './services/handlers/sync-cron';
|
||||||
|
|
||||||
/**
|
|
||||||
* Get mod choice services.
|
|
||||||
*
|
|
||||||
* @returns Returns mod choice services.
|
|
||||||
*/
|
|
||||||
export async function getModChoiceServices(): Promise<Type<unknown>[]> {
|
|
||||||
const { AddonModChoiceProvider } = await import('@addons/mod/choice/services/choice');
|
|
||||||
const { AddonModChoiceOfflineProvider } = await import('@addons/mod/choice/services/choice-offline');
|
|
||||||
const { AddonModChoiceSyncProvider } = await import('@addons/mod/choice/services/choice-sync');
|
|
||||||
|
|
||||||
return [
|
|
||||||
AddonModChoiceProvider,
|
|
||||||
AddonModChoiceOfflineProvider,
|
|
||||||
AddonModChoiceSyncProvider,
|
|
||||||
];
|
|
||||||
}
|
|
||||||
|
|
||||||
const routes: Routes = [
|
const routes: Routes = [
|
||||||
{
|
{
|
||||||
path: AddonModChoiceModuleHandlerService.PAGE_NAME,
|
path: AddonModChoiceModuleHandlerService.PAGE_NAME,
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
import { APP_INITIALIZER, NgModule, Type } from '@angular/core';
|
import { APP_INITIALIZER, NgModule } from '@angular/core';
|
||||||
import { Routes } from '@angular/router';
|
import { Routes } from '@angular/router';
|
||||||
import { CoreContentLinksDelegate } from '@features/contentlinks/services/contentlinks-delegate';
|
import { CoreContentLinksDelegate } from '@features/contentlinks/services/contentlinks-delegate';
|
||||||
import { CoreCourseModuleDelegate } from '@features/course/services/module-delegate';
|
import { CoreCourseModuleDelegate } from '@features/course/services/module-delegate';
|
||||||
|
@ -34,30 +34,8 @@ import { AddonModDataShowLinkHandler } from './services/handlers/show-link';
|
||||||
import { AddonModDataSyncCronHandler } from './services/handlers/sync-cron';
|
import { AddonModDataSyncCronHandler } from './services/handlers/sync-cron';
|
||||||
import { AddonModDataTagAreaHandler } from './services/handlers/tag-area';
|
import { AddonModDataTagAreaHandler } from './services/handlers/tag-area';
|
||||||
import { AddonModDataFieldModule } from './fields/field.module';
|
import { AddonModDataFieldModule } from './fields/field.module';
|
||||||
import { AddonModDataComponentsModule } from './components/components.module';
|
|
||||||
import { CoreCourseHelper } from '@features/course/services/course-helper';
|
import { CoreCourseHelper } from '@features/course/services/course-helper';
|
||||||
|
|
||||||
/**
|
|
||||||
* Get mod data services.
|
|
||||||
*
|
|
||||||
* @returns Returns mod data services.
|
|
||||||
*/
|
|
||||||
export async function getModDataServices(): Promise<Type<unknown>[]> {
|
|
||||||
const { AddonModDataProvider } = await import('@addons/mod/data/services/data');
|
|
||||||
const { AddonModDataOfflineProvider } = await import('@addons/mod/data/services/data-offline');
|
|
||||||
const { AddonModDataSyncProvider } = await import('@addons/mod/data/services/data-sync');
|
|
||||||
const { AddonModDataHelperProvider } = await import('@addons/mod/data/services/data-helper');
|
|
||||||
const { AddonModDataFieldsDelegateService } = await import('@addons/mod/data/services/data-fields-delegate');
|
|
||||||
|
|
||||||
return [
|
|
||||||
AddonModDataProvider,
|
|
||||||
AddonModDataHelperProvider,
|
|
||||||
AddonModDataSyncProvider,
|
|
||||||
AddonModDataOfflineProvider,
|
|
||||||
AddonModDataFieldsDelegateService,
|
|
||||||
];
|
|
||||||
}
|
|
||||||
|
|
||||||
const routes: Routes = [
|
const routes: Routes = [
|
||||||
{
|
{
|
||||||
path: AddonModDataModuleHandlerService.PAGE_NAME,
|
path: AddonModDataModuleHandlerService.PAGE_NAME,
|
||||||
|
@ -69,7 +47,6 @@ const routes: Routes = [
|
||||||
imports: [
|
imports: [
|
||||||
CoreMainMenuTabRoutingModule.forChild(routes),
|
CoreMainMenuTabRoutingModule.forChild(routes),
|
||||||
AddonModDataFieldModule,
|
AddonModDataFieldModule,
|
||||||
AddonModDataComponentsModule,
|
|
||||||
],
|
],
|
||||||
providers: [
|
providers: [
|
||||||
{
|
{
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
import { APP_INITIALIZER, NgModule, Type } from '@angular/core';
|
import { APP_INITIALIZER, NgModule } from '@angular/core';
|
||||||
import { Routes } from '@angular/router';
|
import { Routes } from '@angular/router';
|
||||||
import { CoreContentLinksDelegate } from '@features/contentlinks/services/contentlinks-delegate';
|
import { CoreContentLinksDelegate } from '@features/contentlinks/services/contentlinks-delegate';
|
||||||
import { CoreCourseHelper } from '@features/course/services/course-helper';
|
import { CoreCourseHelper } from '@features/course/services/course-helper';
|
||||||
|
@ -37,25 +37,6 @@ import { AddonModFeedbackShowEntriesLinkHandler } from './services/handlers/show
|
||||||
import { AddonModFeedbackShowNonRespondentsLinkHandler } from './services/handlers/show-non-respondents-link';
|
import { AddonModFeedbackShowNonRespondentsLinkHandler } from './services/handlers/show-non-respondents-link';
|
||||||
import { AddonModFeedbackSyncCronHandler } from './services/handlers/sync-cron';
|
import { AddonModFeedbackSyncCronHandler } from './services/handlers/sync-cron';
|
||||||
|
|
||||||
/**
|
|
||||||
* Get mod Feedback services.
|
|
||||||
*
|
|
||||||
* @returns Returns mod Feedback services.
|
|
||||||
*/
|
|
||||||
export async function getModFeedbackServices(): Promise<Type<unknown>[]> {
|
|
||||||
const { AddonModFeedbackProvider } = await import('@addons/mod/feedback/services/feedback');
|
|
||||||
const { AddonModFeedbackOfflineProvider } = await import('@addons/mod/feedback/services/feedback-offline');
|
|
||||||
const { AddonModFeedbackHelperProvider } = await import('@addons/mod/feedback/services/feedback-helper');
|
|
||||||
const { AddonModFeedbackSyncProvider } = await import('@addons/mod/feedback/services/feedback-sync');
|
|
||||||
|
|
||||||
return [
|
|
||||||
AddonModFeedbackProvider,
|
|
||||||
AddonModFeedbackOfflineProvider,
|
|
||||||
AddonModFeedbackHelperProvider,
|
|
||||||
AddonModFeedbackSyncProvider,
|
|
||||||
];
|
|
||||||
}
|
|
||||||
|
|
||||||
const routes: Routes = [
|
const routes: Routes = [
|
||||||
{
|
{
|
||||||
path: AddonModFeedbackModuleHandlerService.PAGE_NAME,
|
path: AddonModFeedbackModuleHandlerService.PAGE_NAME,
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
import { APP_INITIALIZER, NgModule, Type } from '@angular/core';
|
import { APP_INITIALIZER, NgModule } from '@angular/core';
|
||||||
import { Routes } from '@angular/router';
|
import { Routes } from '@angular/router';
|
||||||
import { CoreContentLinksDelegate } from '@features/contentlinks/services/contentlinks-delegate';
|
import { CoreContentLinksDelegate } from '@features/contentlinks/services/contentlinks-delegate';
|
||||||
import { CoreCourseModuleDelegate } from '@features/course/services/module-delegate';
|
import { CoreCourseModuleDelegate } from '@features/course/services/module-delegate';
|
||||||
|
@ -26,21 +26,6 @@ import { AddonModFolderModuleHandler, AddonModFolderModuleHandlerService } from
|
||||||
import { AddonModFolderPluginFileHandler } from './services/handlers/pluginfile';
|
import { AddonModFolderPluginFileHandler } from './services/handlers/pluginfile';
|
||||||
import { AddonModFolderPrefetchHandler } from './services/handlers/prefetch';
|
import { AddonModFolderPrefetchHandler } from './services/handlers/prefetch';
|
||||||
|
|
||||||
/**
|
|
||||||
* Get mod Folder services.
|
|
||||||
*
|
|
||||||
* @returns Returns mod Folder services.
|
|
||||||
*/
|
|
||||||
export async function getModFolderServices(): Promise<Type<unknown>[]> {
|
|
||||||
const { AddonModFolderProvider } = await import('@addons/mod/folder/services/folder');
|
|
||||||
const { AddonModFolderHelperProvider } = await import('@addons/mod/folder/services/folder-helper');
|
|
||||||
|
|
||||||
return [
|
|
||||||
AddonModFolderProvider,
|
|
||||||
AddonModFolderHelperProvider,
|
|
||||||
];
|
|
||||||
}
|
|
||||||
|
|
||||||
const routes: Routes = [
|
const routes: Routes = [
|
||||||
{
|
{
|
||||||
path: AddonModFolderModuleHandlerService.PAGE_NAME,
|
path: AddonModFolderModuleHandlerService.PAGE_NAME,
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
import { APP_INITIALIZER, NgModule, Type } from '@angular/core';
|
import { APP_INITIALIZER, NgModule } from '@angular/core';
|
||||||
import { Routes } from '@angular/router';
|
import { Routes } from '@angular/router';
|
||||||
|
|
||||||
import { conditionalRoutes } from '@/app/app-routing.module';
|
import { conditionalRoutes } from '@/app/app-routing.module';
|
||||||
|
@ -43,25 +43,6 @@ import { COURSE_CONTENTS_PATH } from '@features/course/course.module';
|
||||||
import { CoreCourseHelper } from '@features/course/services/course-helper';
|
import { CoreCourseHelper } from '@features/course/services/course-helper';
|
||||||
import { ADDON_MOD_FORUM_SEARCH_PAGE_NAME } from './constants';
|
import { ADDON_MOD_FORUM_SEARCH_PAGE_NAME } from './constants';
|
||||||
|
|
||||||
/**
|
|
||||||
* Get mod Forum services.
|
|
||||||
*
|
|
||||||
* @returns Returns mod Forum services.
|
|
||||||
*/
|
|
||||||
export async function getModForumServices(): Promise<Type<unknown>[]> {
|
|
||||||
const { AddonModForumProvider } = await import('@addons/mod/forum/services/forum');
|
|
||||||
const { AddonModForumOfflineProvider } = await import('@addons/mod/forum/services/forum-offline');
|
|
||||||
const { AddonModForumHelperProvider } = await import('@addons/mod/forum/services/forum-helper');
|
|
||||||
const { AddonModForumSyncProvider } = await import('@addons/mod/forum/services/forum-sync');
|
|
||||||
|
|
||||||
return [
|
|
||||||
AddonModForumProvider,
|
|
||||||
AddonModForumOfflineProvider,
|
|
||||||
AddonModForumHelperProvider,
|
|
||||||
AddonModForumSyncProvider,
|
|
||||||
];
|
|
||||||
}
|
|
||||||
|
|
||||||
const mainMenuRoutes: Routes = [
|
const mainMenuRoutes: Routes = [
|
||||||
{
|
{
|
||||||
path: ADDON_MOD_FORUM_SEARCH_PAGE_NAME,
|
path: ADDON_MOD_FORUM_SEARCH_PAGE_NAME,
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
import { conditionalRoutes } from '@/app/app-routing.module';
|
import { conditionalRoutes } from '@/app/app-routing.module';
|
||||||
import { APP_INITIALIZER, NgModule, Type } from '@angular/core';
|
import { APP_INITIALIZER, NgModule } from '@angular/core';
|
||||||
import { Routes } from '@angular/router';
|
import { Routes } from '@angular/router';
|
||||||
import { CoreContentLinksDelegate } from '@features/contentlinks/services/contentlinks-delegate';
|
import { CoreContentLinksDelegate } from '@features/contentlinks/services/contentlinks-delegate';
|
||||||
import { COURSE_CONTENTS_PATH } from '@features/course/course.module';
|
import { COURSE_CONTENTS_PATH } from '@features/course/course.module';
|
||||||
|
@ -38,25 +38,6 @@ import { AddonModGlossaryPrefetchHandler } from './services/handlers/prefetch';
|
||||||
import { AddonModGlossarySyncCronHandler } from './services/handlers/sync-cron';
|
import { AddonModGlossarySyncCronHandler } from './services/handlers/sync-cron';
|
||||||
import { AddonModGlossaryTagAreaHandler } from './services/handlers/tag-area';
|
import { AddonModGlossaryTagAreaHandler } from './services/handlers/tag-area';
|
||||||
|
|
||||||
/**
|
|
||||||
* Get mod Glossary services.
|
|
||||||
*
|
|
||||||
* @returns Returns mod Glossary services.
|
|
||||||
*/
|
|
||||||
export async function getModGlossaryServices(): Promise<Type<unknown>[]> {
|
|
||||||
const { AddonModGlossaryProvider } = await import('@addons/mod/glossary/services/glossary');
|
|
||||||
const { AddonModGlossaryOfflineProvider } = await import('@addons/mod/glossary/services/glossary-offline');
|
|
||||||
const { AddonModGlossarySyncProvider } = await import('@addons/mod/glossary/services/glossary-sync');
|
|
||||||
const { AddonModGlossaryHelperProvider } = await import('@addons/mod/glossary/services/glossary-helper');
|
|
||||||
|
|
||||||
return [
|
|
||||||
AddonModGlossaryProvider,
|
|
||||||
AddonModGlossaryOfflineProvider,
|
|
||||||
AddonModGlossarySyncProvider,
|
|
||||||
AddonModGlossaryHelperProvider,
|
|
||||||
];
|
|
||||||
}
|
|
||||||
|
|
||||||
const mainMenuRoutes: Routes = [
|
const mainMenuRoutes: Routes = [
|
||||||
// Link handlers navigation.
|
// Link handlers navigation.
|
||||||
{
|
{
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
import { APP_INITIALIZER, NgModule, Type } from '@angular/core';
|
import { APP_INITIALIZER, NgModule } from '@angular/core';
|
||||||
import { Routes } from '@angular/router';
|
import { Routes } from '@angular/router';
|
||||||
import { CoreContentLinksDelegate } from '@features/contentlinks/services/contentlinks-delegate';
|
import { CoreContentLinksDelegate } from '@features/contentlinks/services/contentlinks-delegate';
|
||||||
import { CoreCourseModuleDelegate } from '@features/course/services/module-delegate';
|
import { CoreCourseModuleDelegate } from '@features/course/services/module-delegate';
|
||||||
|
@ -26,21 +26,6 @@ import { AddonModH5PActivityPrefetchHandler } from './services/handlers/prefetch
|
||||||
import { AddonModH5PActivityReportLinkHandler } from './services/handlers/report-link';
|
import { AddonModH5PActivityReportLinkHandler } from './services/handlers/report-link';
|
||||||
import { AddonModH5PActivitySyncCronHandler } from './services/handlers/sync-cron';
|
import { AddonModH5PActivitySyncCronHandler } from './services/handlers/sync-cron';
|
||||||
|
|
||||||
/**
|
|
||||||
* Get mod H5P activity services.
|
|
||||||
*
|
|
||||||
* @returns Returns mod H5P activity services.
|
|
||||||
*/
|
|
||||||
export async function getModH5PActivityServices(): Promise<Type<unknown>[]> {
|
|
||||||
const { AddonModH5PActivityProvider } = await import('@addons/mod/h5pactivity/services/h5pactivity');
|
|
||||||
const { AddonModH5PActivitySyncProvider } = await import('@addons/mod/h5pactivity/services/h5pactivity-sync');
|
|
||||||
|
|
||||||
return [
|
|
||||||
AddonModH5PActivityProvider,
|
|
||||||
AddonModH5PActivitySyncProvider,
|
|
||||||
];
|
|
||||||
}
|
|
||||||
|
|
||||||
const routes: Routes = [
|
const routes: Routes = [
|
||||||
{
|
{
|
||||||
path: AddonModH5PActivityModuleHandlerService.PAGE_NAME,
|
path: AddonModH5PActivityModuleHandlerService.PAGE_NAME,
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
import { APP_INITIALIZER, NgModule, Type } from '@angular/core';
|
import { APP_INITIALIZER, NgModule } from '@angular/core';
|
||||||
import { Routes } from '@angular/router';
|
import { Routes } from '@angular/router';
|
||||||
import { CoreContentLinksDelegate } from '@features/contentlinks/services/contentlinks-delegate';
|
import { CoreContentLinksDelegate } from '@features/contentlinks/services/contentlinks-delegate';
|
||||||
import { CoreCourseModuleDelegate } from '@features/course/services/module-delegate';
|
import { CoreCourseModuleDelegate } from '@features/course/services/module-delegate';
|
||||||
|
@ -26,19 +26,6 @@ import { AddonModImscpModuleHandler, AddonModImscpModuleHandlerService } from '.
|
||||||
import { AddonModImscpPluginFileHandler } from './services/handlers/pluginfile';
|
import { AddonModImscpPluginFileHandler } from './services/handlers/pluginfile';
|
||||||
import { AddonModImscpPrefetchHandler } from './services/handlers/prefetch';
|
import { AddonModImscpPrefetchHandler } from './services/handlers/prefetch';
|
||||||
|
|
||||||
/**
|
|
||||||
* Get mod Imscp services.
|
|
||||||
*
|
|
||||||
* @returns Returns mod Imscp services.
|
|
||||||
*/
|
|
||||||
export async function getModImscpServices(): Promise<Type<unknown>[]> {
|
|
||||||
const { AddonModImscpProvider } = await import('@addons/mod/imscp/services/imscp');
|
|
||||||
|
|
||||||
return [
|
|
||||||
AddonModImscpProvider,
|
|
||||||
];
|
|
||||||
}
|
|
||||||
|
|
||||||
const routes: Routes = [
|
const routes: Routes = [
|
||||||
{
|
{
|
||||||
path: AddonModImscpModuleHandlerService.PAGE_NAME,
|
path: AddonModImscpModuleHandlerService.PAGE_NAME,
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
import { APP_INITIALIZER, NgModule, Type } from '@angular/core';
|
import { APP_INITIALIZER, NgModule } from '@angular/core';
|
||||||
import { Routes } from '@angular/router';
|
import { Routes } from '@angular/router';
|
||||||
import { CoreContentLinksDelegate } from '@features/contentlinks/services/contentlinks-delegate';
|
import { CoreContentLinksDelegate } from '@features/contentlinks/services/contentlinks-delegate';
|
||||||
import { CoreCourseHelper } from '@features/course/services/course-helper';
|
import { CoreCourseHelper } from '@features/course/services/course-helper';
|
||||||
|
@ -35,25 +35,6 @@ import { AddonModLessonReportLinkHandler } from './services/handlers/report-link
|
||||||
import { AddonModLessonSyncCronHandler } from './services/handlers/sync-cron';
|
import { AddonModLessonSyncCronHandler } from './services/handlers/sync-cron';
|
||||||
import { AddonModLessonProvider } from './services/lesson';
|
import { AddonModLessonProvider } from './services/lesson';
|
||||||
|
|
||||||
/**
|
|
||||||
* Get mod Lesson services.
|
|
||||||
*
|
|
||||||
* @returns Returns mod Lesson services.
|
|
||||||
*/
|
|
||||||
export async function getModLessonServices(): Promise<Type<unknown>[]> {
|
|
||||||
const { AddonModLessonProvider } = await import('@addons/mod/lesson/services/lesson');
|
|
||||||
const { AddonModLessonOfflineProvider } = await import('@addons/mod/lesson/services/lesson-offline');
|
|
||||||
const { AddonModLessonSyncProvider } = await import('@addons/mod/lesson/services/lesson-sync');
|
|
||||||
const { AddonModLessonHelperProvider } = await import('@addons/mod/lesson/services/lesson-helper');
|
|
||||||
|
|
||||||
return [
|
|
||||||
AddonModLessonProvider,
|
|
||||||
AddonModLessonOfflineProvider,
|
|
||||||
AddonModLessonSyncProvider,
|
|
||||||
AddonModLessonHelperProvider,
|
|
||||||
];
|
|
||||||
}
|
|
||||||
|
|
||||||
const routes: Routes = [
|
const routes: Routes = [
|
||||||
{
|
{
|
||||||
path: AddonModLessonModuleHandlerService.PAGE_NAME,
|
path: AddonModLessonModuleHandlerService.PAGE_NAME,
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
import { APP_INITIALIZER, NgModule, Type } from '@angular/core';
|
import { APP_INITIALIZER, NgModule } from '@angular/core';
|
||||||
import { Routes } from '@angular/router';
|
import { Routes } from '@angular/router';
|
||||||
import { CoreContentLinksDelegate } from '@features/contentlinks/services/contentlinks-delegate';
|
import { CoreContentLinksDelegate } from '@features/contentlinks/services/contentlinks-delegate';
|
||||||
import { CoreCourseModuleDelegate } from '@features/course/services/module-delegate';
|
import { CoreCourseModuleDelegate } from '@features/course/services/module-delegate';
|
||||||
|
@ -25,21 +25,6 @@ import { AddonModLtiModuleHandler, AddonModLtiModuleHandlerService } from './ser
|
||||||
import { AddonModLtiPrefetchHandler } from './services/handlers/prefetch';
|
import { AddonModLtiPrefetchHandler } from './services/handlers/prefetch';
|
||||||
import { AddonModLtiHelper } from './services/lti-helper';
|
import { AddonModLtiHelper } from './services/lti-helper';
|
||||||
|
|
||||||
/**
|
|
||||||
* Get mod Lti services.
|
|
||||||
*
|
|
||||||
* @returns Returns mod Lti services.
|
|
||||||
*/
|
|
||||||
export async function getModLtiServices(): Promise<Type<unknown>[]> {
|
|
||||||
const { AddonModLtiProvider } = await import('@addons/mod/lti/services/lti');
|
|
||||||
const { AddonModLtiHelperProvider } = await import('@addons/mod/lti/services/lti-helper');
|
|
||||||
|
|
||||||
return [
|
|
||||||
AddonModLtiProvider,
|
|
||||||
AddonModLtiHelperProvider,
|
|
||||||
];
|
|
||||||
}
|
|
||||||
|
|
||||||
const routes: Routes = [
|
const routes: Routes = [
|
||||||
{
|
{
|
||||||
path: AddonModLtiModuleHandlerService.PAGE_NAME,
|
path: AddonModLtiModuleHandlerService.PAGE_NAME,
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
import { APP_INITIALIZER, NgModule, Type } from '@angular/core';
|
import { APP_INITIALIZER, NgModule } from '@angular/core';
|
||||||
import { Routes } from '@angular/router';
|
import { Routes } from '@angular/router';
|
||||||
import { CoreContentLinksDelegate } from '@features/contentlinks/services/contentlinks-delegate';
|
import { CoreContentLinksDelegate } from '@features/contentlinks/services/contentlinks-delegate';
|
||||||
import { CoreCourseModuleDelegate } from '@features/course/services/module-delegate';
|
import { CoreCourseModuleDelegate } from '@features/course/services/module-delegate';
|
||||||
|
@ -26,21 +26,6 @@ import { AddonModPageModuleHandler, AddonModPageModuleHandlerService } from './s
|
||||||
import { AddonModPagePluginFileHandler } from './services/handlers/pluginfile';
|
import { AddonModPagePluginFileHandler } from './services/handlers/pluginfile';
|
||||||
import { AddonModPagePrefetchHandler } from './services/handlers/prefetch';
|
import { AddonModPagePrefetchHandler } from './services/handlers/prefetch';
|
||||||
|
|
||||||
/**
|
|
||||||
* Get mod Page services.
|
|
||||||
*
|
|
||||||
* @returns Returns mod Page services.
|
|
||||||
*/
|
|
||||||
export async function getModPageServices(): Promise<Type<unknown>[]> {
|
|
||||||
const { AddonModPageProvider } = await import('@addons/mod/page/services/page');
|
|
||||||
const { AddonModPageHelperProvider } = await import('@addons/mod/page/services/page-helper');
|
|
||||||
|
|
||||||
return [
|
|
||||||
AddonModPageProvider,
|
|
||||||
AddonModPageHelperProvider,
|
|
||||||
];
|
|
||||||
}
|
|
||||||
|
|
||||||
const routes: Routes = [
|
const routes: Routes = [
|
||||||
{
|
{
|
||||||
path: AddonModPageModuleHandlerService.PAGE_NAME,
|
path: AddonModPageModuleHandlerService.PAGE_NAME,
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
import { APP_INITIALIZER, NgModule, Type } from '@angular/core';
|
import { APP_INITIALIZER, NgModule } from '@angular/core';
|
||||||
import { Routes } from '@angular/router';
|
import { Routes } from '@angular/router';
|
||||||
import { CoreContentLinksDelegate } from '@features/contentlinks/services/contentlinks-delegate';
|
import { CoreContentLinksDelegate } from '@features/contentlinks/services/contentlinks-delegate';
|
||||||
import { CoreCourseModuleDelegate } from '@features/course/services/module-delegate';
|
import { CoreCourseModuleDelegate } from '@features/course/services/module-delegate';
|
||||||
|
@ -26,19 +26,6 @@ import { AddonModResourceModuleHandlerService, AddonModResourceModuleHandler } f
|
||||||
import { AddonModResourcePluginFileHandler } from './services/handlers/pluginfile';
|
import { AddonModResourcePluginFileHandler } from './services/handlers/pluginfile';
|
||||||
import { AddonModResourcePrefetchHandler } from './services/handlers/prefetch';
|
import { AddonModResourcePrefetchHandler } from './services/handlers/prefetch';
|
||||||
|
|
||||||
/**
|
|
||||||
* Get mod Resource services.
|
|
||||||
*
|
|
||||||
* @returns Returns mod Resource services.
|
|
||||||
*/
|
|
||||||
export async function getModResourceServices(): Promise<Type<unknown>[]> {
|
|
||||||
const { AddonModResourceProvider } = await import('@addons/mod/resource/services/resource');
|
|
||||||
|
|
||||||
return [
|
|
||||||
AddonModResourceProvider,
|
|
||||||
];
|
|
||||||
}
|
|
||||||
|
|
||||||
const routes: Routes = [
|
const routes: Routes = [
|
||||||
{
|
{
|
||||||
path: AddonModResourceModuleHandlerService.PAGE_NAME,
|
path: AddonModResourceModuleHandlerService.PAGE_NAME,
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
import { APP_INITIALIZER, NgModule, Type } from '@angular/core';
|
import { APP_INITIALIZER, NgModule } from '@angular/core';
|
||||||
import { Routes } from '@angular/router';
|
import { Routes } from '@angular/router';
|
||||||
import { CoreContentLinksDelegate } from '@features/contentlinks/services/contentlinks-delegate';
|
import { CoreContentLinksDelegate } from '@features/contentlinks/services/contentlinks-delegate';
|
||||||
import { CoreCourseHelper } from '@features/course/services/course-helper';
|
import { CoreCourseHelper } from '@features/course/services/course-helper';
|
||||||
|
@ -34,25 +34,6 @@ import { AddonModScormPrefetchHandler } from './services/handlers/prefetch';
|
||||||
import { AddonModScormSyncCronHandler } from './services/handlers/sync-cron';
|
import { AddonModScormSyncCronHandler } from './services/handlers/sync-cron';
|
||||||
import { AddonModScormProvider } from './services/scorm';
|
import { AddonModScormProvider } from './services/scorm';
|
||||||
|
|
||||||
/**
|
|
||||||
* Get mod Scorm services.
|
|
||||||
*
|
|
||||||
* @returns Returns mod Scorm services.
|
|
||||||
*/
|
|
||||||
export async function getModScormServices(): Promise<Type<unknown>[]> {
|
|
||||||
const { AddonModScormProvider } = await import('@addons/mod/scorm/services/scorm');
|
|
||||||
const { AddonModScormOfflineProvider } = await import('@addons/mod/scorm/services/scorm-offline');
|
|
||||||
const { AddonModScormHelperProvider } = await import('@addons/mod/scorm/services/scorm-helper');
|
|
||||||
const { AddonModScormSyncProvider } = await import('@addons/mod/scorm/services/scorm-sync');
|
|
||||||
|
|
||||||
return [
|
|
||||||
AddonModScormProvider,
|
|
||||||
AddonModScormOfflineProvider,
|
|
||||||
AddonModScormHelperProvider,
|
|
||||||
AddonModScormSyncProvider,
|
|
||||||
];
|
|
||||||
}
|
|
||||||
|
|
||||||
const routes: Routes = [
|
const routes: Routes = [
|
||||||
{
|
{
|
||||||
path: AddonModScormModuleHandlerService.PAGE_NAME,
|
path: AddonModScormModuleHandlerService.PAGE_NAME,
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
import { APP_INITIALIZER, NgModule, Type } from '@angular/core';
|
import { APP_INITIALIZER, NgModule } from '@angular/core';
|
||||||
import { Routes } from '@angular/router';
|
import { Routes } from '@angular/router';
|
||||||
import { CoreContentLinksDelegate } from '@features/contentlinks/services/contentlinks-delegate';
|
import { CoreContentLinksDelegate } from '@features/contentlinks/services/contentlinks-delegate';
|
||||||
import { CoreCourseModuleDelegate } from '@features/course/services/module-delegate';
|
import { CoreCourseModuleDelegate } from '@features/course/services/module-delegate';
|
||||||
|
@ -28,36 +28,6 @@ import { getPrefetchHandlerInstance } from './services/handlers/prefetch';
|
||||||
import { getCronHandlerInstance } from './services/handlers/sync-cron';
|
import { getCronHandlerInstance } from './services/handlers/sync-cron';
|
||||||
import { ADDON_MOD_SURVEY_PAGE_NAME } from '@addons/mod/survey/constants';
|
import { ADDON_MOD_SURVEY_PAGE_NAME } from '@addons/mod/survey/constants';
|
||||||
|
|
||||||
/**
|
|
||||||
* Get mod Survey services.
|
|
||||||
*
|
|
||||||
* @returns Returns mod Survey services.
|
|
||||||
*/
|
|
||||||
export async function getModSurveyServices(): Promise<Type<unknown>[]> {
|
|
||||||
const { AddonModSurveyProvider } = await import('@addons/mod/survey/services/survey');
|
|
||||||
const { AddonModSurveyOfflineProvider } = await import('@addons/mod/survey/services/survey-offline');
|
|
||||||
const { AddonModSurveySyncProvider } = await import('@addons/mod/survey/services/survey-sync');
|
|
||||||
const { AddonModSurveyHelperProvider } = await import('@addons/mod/survey/services/survey-helper');
|
|
||||||
|
|
||||||
return [
|
|
||||||
AddonModSurveyProvider,
|
|
||||||
AddonModSurveyHelperProvider,
|
|
||||||
AddonModSurveySyncProvider,
|
|
||||||
AddonModSurveyOfflineProvider,
|
|
||||||
];
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get survey component modules.
|
|
||||||
*
|
|
||||||
* @returns Survey component modules.
|
|
||||||
*/
|
|
||||||
export async function getModSurveyComponentModules(): Promise<unknown[]> {
|
|
||||||
const { AddonModSurveyComponentsModule } = await import('@addons/mod/survey/components/components.module');
|
|
||||||
|
|
||||||
return [AddonModSurveyComponentsModule];
|
|
||||||
}
|
|
||||||
|
|
||||||
const routes: Routes = [
|
const routes: Routes = [
|
||||||
{
|
{
|
||||||
path: ADDON_MOD_SURVEY_PAGE_NAME,
|
path: ADDON_MOD_SURVEY_PAGE_NAME,
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
import { APP_INITIALIZER, NgModule, Type } from '@angular/core';
|
import { APP_INITIALIZER, NgModule } from '@angular/core';
|
||||||
import { Routes } from '@angular/router';
|
import { Routes } from '@angular/router';
|
||||||
import { CoreContentLinksDelegate } from '@features/contentlinks/services/contentlinks-delegate';
|
import { CoreContentLinksDelegate } from '@features/contentlinks/services/contentlinks-delegate';
|
||||||
import { CoreCourseModuleDelegate } from '@features/course/services/module-delegate';
|
import { CoreCourseModuleDelegate } from '@features/course/services/module-delegate';
|
||||||
|
@ -25,21 +25,6 @@ import { AddonModUrlModuleHandler } from './services/handlers/module';
|
||||||
import { AddonModUrlPrefetchHandler } from './services/handlers/prefetch';
|
import { AddonModUrlPrefetchHandler } from './services/handlers/prefetch';
|
||||||
import { ADDON_MOD_URL_PAGE_NAME } from './constants';
|
import { ADDON_MOD_URL_PAGE_NAME } from './constants';
|
||||||
|
|
||||||
/**
|
|
||||||
* Get mod Url services.
|
|
||||||
*
|
|
||||||
* @returns Returns mod Url services.
|
|
||||||
*/
|
|
||||||
export async function getModUrlServices(): Promise<Type<unknown>[]> {
|
|
||||||
const { AddonModUrlProvider } = await import('@addons/mod/url/services/url');
|
|
||||||
const { AddonModUrlHelperProvider } = await import('@addons/mod/url/services/url-helper');
|
|
||||||
|
|
||||||
return [
|
|
||||||
AddonModUrlProvider,
|
|
||||||
AddonModUrlHelperProvider,
|
|
||||||
];
|
|
||||||
}
|
|
||||||
|
|
||||||
const routes: Routes = [
|
const routes: Routes = [
|
||||||
{
|
{
|
||||||
path: ADDON_MOD_URL_PAGE_NAME,
|
path: ADDON_MOD_URL_PAGE_NAME,
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
import { APP_INITIALIZER, NgModule, Type } from '@angular/core';
|
import { APP_INITIALIZER, NgModule } from '@angular/core';
|
||||||
import { Routes } from '@angular/router';
|
import { Routes } from '@angular/router';
|
||||||
import { CoreContentLinksDelegate } from '@features/contentlinks/services/contentlinks-delegate';
|
import { CoreContentLinksDelegate } from '@features/contentlinks/services/contentlinks-delegate';
|
||||||
import { CoreCourseHelper } from '@features/course/services/course-helper';
|
import { CoreCourseHelper } from '@features/course/services/course-helper';
|
||||||
|
@ -35,23 +35,6 @@ import { AddonModWikiSyncCronHandler } from './services/handlers/sync-cron';
|
||||||
import { AddonModWikiTagAreaHandler } from './services/handlers/tag-area';
|
import { AddonModWikiTagAreaHandler } from './services/handlers/tag-area';
|
||||||
import { AddonModWikiProvider } from './services/wiki';
|
import { AddonModWikiProvider } from './services/wiki';
|
||||||
|
|
||||||
/**
|
|
||||||
* Get mod Wiki services.
|
|
||||||
*
|
|
||||||
* @returns Returns mod Wiki services.
|
|
||||||
*/
|
|
||||||
export async function getModWikiServices(): Promise<Type<unknown>[]> {
|
|
||||||
const { AddonModWikiProvider } = await import('@addons/mod/wiki/services/wiki');
|
|
||||||
const { AddonModWikiOfflineProvider } = await import('@addons/mod/wiki/services/wiki-offline');
|
|
||||||
const { AddonModWikiSyncProvider } = await import('@addons/mod/wiki/services/wiki-sync');
|
|
||||||
|
|
||||||
return [
|
|
||||||
AddonModWikiProvider,
|
|
||||||
AddonModWikiOfflineProvider,
|
|
||||||
AddonModWikiSyncProvider,
|
|
||||||
];
|
|
||||||
}
|
|
||||||
|
|
||||||
const routes: Routes = [
|
const routes: Routes = [
|
||||||
{
|
{
|
||||||
path: AddonModWikiModuleHandlerService.PAGE_NAME,
|
path: AddonModWikiModuleHandlerService.PAGE_NAME,
|
||||||
|
|
|
@ -130,31 +130,13 @@ import { getCourseCompletionServices } from '@addons/coursecompletion/coursecomp
|
||||||
import { getMessageOutputServices } from '@addons/messageoutput/messageoutput.module';
|
import { getMessageOutputServices } from '@addons/messageoutput/messageoutput.module';
|
||||||
import { getMessagesServices } from '@addons/messages/messages.module';
|
import { getMessagesServices } from '@addons/messages/messages.module';
|
||||||
import { getModAssignServices } from '@addons/mod/assign/assign.module';
|
import { getModAssignServices } from '@addons/mod/assign/assign.module';
|
||||||
import { getModBookServices } from '@addons/mod/book/book.module';
|
|
||||||
import { getModChatServices, getModChatComponentModules } from '@addons/mod/chat/chat.module';
|
|
||||||
import { getModChoiceServices } from '@addons/mod/choice/choice.module';
|
|
||||||
import { getModFeedbackServices } from '@addons/mod/feedback/feedback.module';
|
|
||||||
import { getModFolderServices } from '@addons/mod/folder/folder.module';
|
|
||||||
import { getModForumServices } from '@addons/mod/forum/forum.module';
|
|
||||||
import { getModGlossaryServices } from '@addons/mod/glossary/glossary.module';
|
|
||||||
import { getModH5PActivityServices } from '@addons/mod/h5pactivity/h5pactivity.module';
|
|
||||||
import { getModImscpServices } from '@addons/mod/imscp/imscp.module';
|
|
||||||
import { getModLessonServices } from '@addons/mod/lesson/lesson.module';
|
|
||||||
import { getModLtiServices } from '@addons/mod/lti/lti.module';
|
|
||||||
import { getModPageServices } from '@addons/mod/page/page.module';
|
|
||||||
import { getModQuizServices } from '@addons/mod/quiz/quiz.module';
|
import { getModQuizServices } from '@addons/mod/quiz/quiz.module';
|
||||||
import { getModResourceServices } from '@addons/mod/resource/resource.module';
|
|
||||||
import { getModScormServices } from '@addons/mod/scorm/scorm.module';
|
|
||||||
import { getModSurveyComponentModules, getModSurveyServices } from '@addons/mod/survey/survey.module';
|
|
||||||
import { getModUrlServices } from '@addons/mod/url/url.module';
|
|
||||||
import { getModWikiServices } from '@addons/mod/wiki/wiki.module';
|
|
||||||
import { getModWorkshopComponentModules, getModWorkshopServices } from '@addons/mod/workshop/workshop.module';
|
import { getModWorkshopComponentModules, getModWorkshopServices } from '@addons/mod/workshop/workshop.module';
|
||||||
import { getNotesServices } from '@addons/notes/notes.module';
|
import { getNotesServices } from '@addons/notes/notes.module';
|
||||||
import { getNotificationsServices } from '@addons/notifications/notifications.module';
|
import { getNotificationsServices } from '@addons/notifications/notifications.module';
|
||||||
import { getPrivateFilesServices } from '@addons/privatefiles/privatefiles.module';
|
import { getPrivateFilesServices } from '@addons/privatefiles/privatefiles.module';
|
||||||
|
|
||||||
// Import some addon modules that define components, directives and pipes. Only import the important ones.
|
// Import some addon modules that define components, directives and pipes. Only import the important ones.
|
||||||
import { AddonModAssignComponentsModule } from '@addons/mod/assign/components/components.module';
|
|
||||||
import { CorePromisedValue } from '@classes/promised-value';
|
import { CorePromisedValue } from '@classes/promised-value';
|
||||||
import { CorePlatform } from '@services/platform';
|
import { CorePlatform } from '@services/platform';
|
||||||
|
|
||||||
|
@ -177,15 +159,20 @@ export class CoreCompileProvider {
|
||||||
|
|
||||||
// List of imports for dynamic module. Since the template can have any component we need to import all core components modules.
|
// List of imports for dynamic module. Since the template can have any component we need to import all core components modules.
|
||||||
protected readonly IMPORTS = [
|
protected readonly IMPORTS = [
|
||||||
CoreSharedModule, CoreCourseComponentsModule, CoreCoursesComponentsModule, CoreUserComponentsModule,
|
CoreSharedModule,
|
||||||
CoreCourseDirectivesModule, CoreQuestionComponentsModule, AddonModAssignComponentsModule,
|
CoreCourseComponentsModule,
|
||||||
CoreBlockComponentsModule, CoreEditorComponentsModule, CoreSearchComponentsModule, CoreSitePluginsDirectivesModule,
|
CoreCoursesComponentsModule,
|
||||||
|
CoreUserComponentsModule,
|
||||||
|
CoreCourseDirectivesModule,
|
||||||
|
CoreQuestionComponentsModule,
|
||||||
|
CoreBlockComponentsModule,
|
||||||
|
CoreEditorComponentsModule,
|
||||||
|
CoreSearchComponentsModule,
|
||||||
|
CoreSitePluginsDirectivesModule,
|
||||||
];
|
];
|
||||||
|
|
||||||
protected readonly LAZY_IMPORTS = [
|
protected readonly LAZY_IMPORTS = [
|
||||||
getModWorkshopComponentModules,
|
getModWorkshopComponentModules,
|
||||||
getModSurveyComponentModules,
|
|
||||||
getModChatComponentModules,
|
|
||||||
];
|
];
|
||||||
|
|
||||||
constructor(protected injector: Injector) {
|
constructor(protected injector: Injector) {
|
||||||
|
@ -393,24 +380,7 @@ export class CoreCompileProvider {
|
||||||
getMessageOutputServices(),
|
getMessageOutputServices(),
|
||||||
getMessagesServices(),
|
getMessagesServices(),
|
||||||
getModAssignServices(),
|
getModAssignServices(),
|
||||||
getModBookServices(),
|
|
||||||
getModChatServices(),
|
|
||||||
getModChoiceServices(),
|
|
||||||
getModFeedbackServices(),
|
|
||||||
getModFolderServices(),
|
|
||||||
getModForumServices(),
|
|
||||||
getModGlossaryServices(),
|
|
||||||
getModH5PActivityServices(),
|
|
||||||
getModImscpServices(),
|
|
||||||
getModLessonServices(),
|
|
||||||
getModLtiServices(),
|
|
||||||
getModPageServices(),
|
|
||||||
getModQuizServices(),
|
getModQuizServices(),
|
||||||
getModResourceServices(),
|
|
||||||
getModScormServices(),
|
|
||||||
getModSurveyServices(),
|
|
||||||
getModUrlServices(),
|
|
||||||
getModWikiServices(),
|
|
||||||
getModWorkshopServices(),
|
getModWorkshopServices(),
|
||||||
getNotesServices(),
|
getNotesServices(),
|
||||||
getNotificationsServices(),
|
getNotificationsServices(),
|
||||||
|
|
|
@ -15,6 +15,7 @@ For more information about upgrading, read the official documentation: https://m
|
||||||
- Due to a breaking change in cordova-plugin-file, avoid using FileEntry.toURL(). Use CoreFileProvider.getFileEntryURL instead.
|
- Due to a breaking change in cordova-plugin-file, avoid using FileEntry.toURL(). Use CoreFileProvider.getFileEntryURL instead.
|
||||||
- FileTransfer service is no longer available, now we recommend use window.FileTransfer instead.
|
- FileTransfer service is no longer available, now we recommend use window.FileTransfer instead.
|
||||||
- CSS variable --font-size-normal has been deprecated in favor of --font-size-md.
|
- CSS variable --font-size-normal has been deprecated in favor of --font-size-md.
|
||||||
|
- Activity modules services that does not admit plugins are not avaible for site plugins anymore.
|
||||||
|
|
||||||
=== 4.3.0 ===
|
=== 4.3.0 ===
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue