Skip to content

Commit

Permalink
Merge pull request #3957 from crazyserver/MOBILE-3947
Browse files Browse the repository at this point in the history
Mobile 3947
  • Loading branch information
dpalou authored Mar 7, 2024
2 parents 4677ce5 + 2e023ce commit 8a1774b
Show file tree
Hide file tree
Showing 119 changed files with 1,076 additions and 894 deletions.
22 changes: 12 additions & 10 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
"@awesome-cordova-plugins/sqlite": "^6.6.0",
"@awesome-cordova-plugins/status-bar": "^6.6.0",
"@awesome-cordova-plugins/web-intent": "^6.6.0",
"@ionic/angular": "^7.6.5",
"@ionic/angular": "^7.7.4",
"@ionic/cordova-builders": "^10.1.1",
"@moodlehq/cordova-plugin-advanced-http": "3.3.1-moodle.1",
"@moodlehq/cordova-plugin-file-opener": "4.0.0-moodle.1",
Expand Down
16 changes: 12 additions & 4 deletions src/addons/badges/badges.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,19 @@ import { AddonBadgesUserHandler } from './services/handlers/user';
import { CoreMainMenuTabRoutingModule } from '@features/mainmenu/mainmenu-tab-routing.module';
import { CorePushNotificationsDelegate } from '@features/pushnotifications/services/push-delegate';
import { AddonBadgesPushClickHandler } from './services/handlers/push-click';
import { AddonBadgesProvider } from './services/badges';

export const ADDON_BADGES_SERVICES: Type<unknown>[] = [
AddonBadgesProvider,
];
/**
* Get badges services.
*
* @returns Returns badges services.
*/
export async function getBadgesServices(): Promise<Type<unknown>[]> {
const { AddonBadgesProvider } = await import('@addons/badges/services/badges');

return [
AddonBadgesProvider,
];
}

const mainMenuRoutes: Routes = [
{
Expand Down
8 changes: 0 additions & 8 deletions src/addons/block/activitymodules/activitymodules.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,10 @@
// limitations under the License.

import { APP_INITIALIZER, NgModule } from '@angular/core';
import { IonicModule } from '@ionic/angular';
import { TranslateModule } from '@ngx-translate/core';
import { CoreBlockDelegate } from '@features/block/services/block-delegate';
import { AddonBlockActivityModulesHandler } from './services/block-handler';
import { AddonBlockActivityModulesComponentsModule } from './components/components.module';

@NgModule({
imports: [
IonicModule,
AddonBlockActivityModulesComponentsModule,
TranslateModule.forChild(),
],
providers: [
{
provide: APP_INITIALIZER,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,5 @@ import { AddonBlockActivityModulesComponent } from './activitymodules/activitymo
imports: [
CoreSharedModule,
],
exports: [
AddonBlockActivityModulesComponent,
],
})
export class AddonBlockActivityModulesComponentsModule {}
8 changes: 0 additions & 8 deletions src/addons/block/activityresults/activityresults.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,10 @@
// limitations under the License.

import { APP_INITIALIZER, NgModule } from '@angular/core';
import { IonicModule } from '@ionic/angular';
import { TranslateModule } from '@ngx-translate/core';
import { CoreBlockDelegate } from '@features/block/services/block-delegate';
import { AddonBlockActivityResultsHandler } from './services/block-handler';
import { AddonBlockActivityResultsComponentsModule } from './components/components.module';

@NgModule({
imports: [
IonicModule,
AddonBlockActivityResultsComponentsModule,
TranslateModule.forChild(),
],
providers: [
{
provide: APP_INITIALIZER,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,5 @@ import { AddonBlockActivityResultsComponent } from './activityresults/activityre
imports: [
CoreSharedModule,
],
exports: [
AddonBlockActivityResultsComponent,
],
})
export class AddonBlockActivityResultsComponentsModule {}
8 changes: 0 additions & 8 deletions src/addons/block/badges/badges.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,10 @@
// limitations under the License.

import { APP_INITIALIZER, NgModule } from '@angular/core';
import { IonicModule } from '@ionic/angular';
import { TranslateModule } from '@ngx-translate/core';
import { CoreBlockDelegate } from '@features/block/services/block-delegate';
import { AddonBlockBadgesHandler } from './services/block-handler';
import { AddonBlockBadgesComponentsModule } from './components/components.module';

@NgModule({
imports: [
IonicModule,
AddonBlockBadgesComponentsModule,
TranslateModule.forChild(),
],
providers: [
{
provide: APP_INITIALIZER,
Expand Down
3 changes: 0 additions & 3 deletions src/addons/block/badges/components/components.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,5 @@ import { AddonBlockBadgesComponent } from './badges/badges';
imports: [
CoreSharedModule,
],
exports: [
AddonBlockBadgesComponent,
],
})
export class AddonBlockBadgesComponentsModule {}
8 changes: 0 additions & 8 deletions src/addons/block/blogmenu/blogmenu.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,10 @@
// limitations under the License.

import { APP_INITIALIZER, NgModule } from '@angular/core';
import { IonicModule } from '@ionic/angular';
import { TranslateModule } from '@ngx-translate/core';
import { CoreBlockDelegate } from '@features/block/services/block-delegate';
import { AddonBlockBlogMenuHandler } from './services/block-handler';
import { AddonBlockBlogMenuComponentsModule } from './components/components.module';

@NgModule({
imports: [
IonicModule,
AddonBlockBlogMenuComponentsModule,
TranslateModule.forChild(),
],
providers: [
{
provide: APP_INITIALIZER,
Expand Down
3 changes: 0 additions & 3 deletions src/addons/block/blogmenu/components/components.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,5 @@ import { AddonBlockBlogMenuComponent } from './blogmenu/blogmenu';
imports: [
CoreSharedModule,
],
exports: [
AddonBlockBlogMenuComponent,
],
})
export class AddonBlockBlogMenuComponentsModule {}
8 changes: 0 additions & 8 deletions src/addons/block/blogrecent/blogrecent.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,10 @@
// limitations under the License.

import { APP_INITIALIZER, NgModule } from '@angular/core';
import { IonicModule } from '@ionic/angular';
import { TranslateModule } from '@ngx-translate/core';
import { CoreBlockDelegate } from '@features/block/services/block-delegate';
import { AddonBlockBlogRecentHandler } from './services/block-handler';
import { AddonBlockBlogRecentComponentsModule } from './components/components.module';

@NgModule({
imports: [
IonicModule,
AddonBlockBlogRecentComponentsModule,
TranslateModule.forChild(),
],
providers: [
{
provide: APP_INITIALIZER,
Expand Down
3 changes: 0 additions & 3 deletions src/addons/block/blogrecent/components/components.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,5 @@ import { AddonBlockBlogRecentComponent } from './blogrecent/blogrecent';
imports: [
CoreSharedModule,
],
exports: [
AddonBlockBlogRecentComponent,
],
})
export class AddonBlockBlogRecentComponentsModule {}
8 changes: 0 additions & 8 deletions src/addons/block/blogtags/blogtags.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,10 @@
// limitations under the License.

import { APP_INITIALIZER, NgModule } from '@angular/core';
import { IonicModule } from '@ionic/angular';
import { TranslateModule } from '@ngx-translate/core';
import { CoreBlockDelegate } from '@features/block/services/block-delegate';
import { AddonBlockBlogTagsHandler } from './services/block-handler';
import { AddonBlockBlogTagsComponentsModule } from './components/components.module';

@NgModule({
imports: [
IonicModule,
AddonBlockBlogTagsComponentsModule,
TranslateModule.forChild(),
],
providers: [
{
provide: APP_INITIALIZER,
Expand Down
3 changes: 0 additions & 3 deletions src/addons/block/blogtags/components/components.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,5 @@ import { AddonBlockBlogTagsComponent } from './blogtags/blogtags';
imports: [
CoreSharedModule,
],
exports: [
AddonBlockBlogTagsComponent,
],
})
export class AddonBlockBlogTagsComponentsModule {}
6 changes: 0 additions & 6 deletions src/addons/block/calendarmonth/calendarmonth.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,10 @@
// limitations under the License.

import { APP_INITIALIZER, NgModule } from '@angular/core';
import { IonicModule } from '@ionic/angular';
import { TranslateModule } from '@ngx-translate/core';
import { CoreBlockDelegate } from '@features/block/services/block-delegate';
import { AddonBlockCalendarMonthHandler } from './services/block-handler';

@NgModule({
imports: [
IonicModule,
TranslateModule.forChild(),
],
providers: [
{
provide: APP_INITIALIZER,
Expand Down
6 changes: 0 additions & 6 deletions src/addons/block/calendarupcoming/calendarupcoming.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,10 @@
// limitations under the License.

import { APP_INITIALIZER, NgModule } from '@angular/core';
import { IonicModule } from '@ionic/angular';
import { TranslateModule } from '@ngx-translate/core';
import { CoreBlockDelegate } from '@features/block/services/block-delegate';
import { AddonBlockCalendarUpcomingHandler } from './services/block-handler';

@NgModule({
imports: [
IonicModule,
TranslateModule.forChild(),
],
providers: [
{
provide: APP_INITIALIZER,
Expand Down
6 changes: 0 additions & 6 deletions src/addons/block/comments/comments.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,10 @@
// limitations under the License.

import { APP_INITIALIZER, NgModule } from '@angular/core';
import { IonicModule } from '@ionic/angular';
import { TranslateModule } from '@ngx-translate/core';
import { CoreBlockDelegate } from '@features/block/services/block-delegate';
import { AddonBlockCommentsHandler } from './services/block-handler';

@NgModule({
imports: [
IonicModule,
TranslateModule.forChild(),
],
providers: [
{
provide: APP_INITIALIZER,
Expand Down
6 changes: 0 additions & 6 deletions src/addons/block/completionstatus/completionstatus.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,10 @@
// limitations under the License.

import { APP_INITIALIZER, NgModule } from '@angular/core';
import { IonicModule } from '@ionic/angular';
import { TranslateModule } from '@ngx-translate/core';
import { CoreBlockDelegate } from '@features/block/services/block-delegate';
import { AddonBlockCompletionStatusHandler } from './services/block-handler';

@NgModule({
imports: [
IonicModule,
TranslateModule.forChild(),
],
providers: [
{
provide: APP_INITIALIZER,
Expand Down
6 changes: 0 additions & 6 deletions src/addons/block/courselist/courselist.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,10 @@
// limitations under the License.

import { APP_INITIALIZER, NgModule } from '@angular/core';
import { IonicModule } from '@ionic/angular';
import { TranslateModule } from '@ngx-translate/core';
import { CoreBlockDelegate } from '@features/block/services/block-delegate';
import { AddonBlockCourseListHandler } from './services/block-handler';

@NgModule({
imports: [
IonicModule,
TranslateModule.forChild(),
],
providers: [
{
provide: APP_INITIALIZER,
Expand Down
8 changes: 0 additions & 8 deletions src/addons/block/globalsearch/globalsearch.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,10 @@
// limitations under the License.

import { APP_INITIALIZER, NgModule } from '@angular/core';
import { IonicModule } from '@ionic/angular';
import { TranslateModule } from '@ngx-translate/core';
import { CoreBlockDelegate } from '@features/block/services/block-delegate';
import { AddonBlockGlobalSearchHandler } from './services/block-handler';
import { CoreBlockComponentsModule } from '@features/block/components/components.module';

@NgModule({
imports: [
IonicModule,
CoreBlockComponentsModule,
TranslateModule.forChild(),
],
providers: [
{
provide: APP_INITIALIZER,
Expand Down
6 changes: 0 additions & 6 deletions src/addons/block/glossaryrandom/glossaryrandom.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,10 @@
// limitations under the License.

import { APP_INITIALIZER, NgModule } from '@angular/core';
import { IonicModule } from '@ionic/angular';
import { TranslateModule } from '@ngx-translate/core';
import { CoreBlockDelegate } from '@features/block/services/block-delegate';
import { AddonBlockGlossaryRandomHandler } from './services/block-handler';

@NgModule({
imports: [
IonicModule,
TranslateModule.forChild(),
],
providers: [
{
provide: APP_INITIALIZER,
Expand Down
8 changes: 0 additions & 8 deletions src/addons/block/learningplans/learningplans.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,10 @@
// limitations under the License.

import { APP_INITIALIZER, NgModule } from '@angular/core';
import { IonicModule } from '@ionic/angular';
import { TranslateModule } from '@ngx-translate/core';
import { CoreBlockDelegate } from '@features/block/services/block-delegate';
import { AddonBlockLearningPlansHandler } from './services/block-handler';
import { CoreBlockComponentsModule } from '@features/block/components/components.module';

@NgModule({
imports: [
IonicModule,
CoreBlockComponentsModule,
TranslateModule.forChild(),
],
providers: [
{
provide: APP_INITIALIZER,
Expand Down
Loading

0 comments on commit 8a1774b

Please sign in to comment.