Skip to content

Commit 8a1774b

Browse files
authored
Merge pull request #3957 from crazyserver/MOBILE-3947
Mobile 3947
2 parents 4677ce5 + 2e023ce commit 8a1774b

File tree

119 files changed

+1076
-894
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

119 files changed

+1076
-894
lines changed

package-lock.json

Lines changed: 12 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
"@awesome-cordova-plugins/sqlite": "^6.6.0",
7474
"@awesome-cordova-plugins/status-bar": "^6.6.0",
7575
"@awesome-cordova-plugins/web-intent": "^6.6.0",
76-
"@ionic/angular": "^7.6.5",
76+
"@ionic/angular": "^7.7.4",
7777
"@ionic/cordova-builders": "^10.1.1",
7878
"@moodlehq/cordova-plugin-advanced-http": "3.3.1-moodle.1",
7979
"@moodlehq/cordova-plugin-file-opener": "4.0.0-moodle.1",

src/addons/badges/badges.module.ts

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,19 @@ import { AddonBadgesUserHandler } from './services/handlers/user';
2323
import { CoreMainMenuTabRoutingModule } from '@features/mainmenu/mainmenu-tab-routing.module';
2424
import { CorePushNotificationsDelegate } from '@features/pushnotifications/services/push-delegate';
2525
import { AddonBadgesPushClickHandler } from './services/handlers/push-click';
26-
import { AddonBadgesProvider } from './services/badges';
2726

28-
export const ADDON_BADGES_SERVICES: Type<unknown>[] = [
29-
AddonBadgesProvider,
30-
];
27+
/**
28+
* Get badges services.
29+
*
30+
* @returns Returns badges services.
31+
*/
32+
export async function getBadgesServices(): Promise<Type<unknown>[]> {
33+
const { AddonBadgesProvider } = await import('@addons/badges/services/badges');
34+
35+
return [
36+
AddonBadgesProvider,
37+
];
38+
}
3139

3240
const mainMenuRoutes: Routes = [
3341
{

src/addons/block/activitymodules/activitymodules.module.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,10 @@
1313
// limitations under the License.
1414

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

2219
@NgModule({
23-
imports: [
24-
IonicModule,
25-
AddonBlockActivityModulesComponentsModule,
26-
TranslateModule.forChild(),
27-
],
2820
providers: [
2921
{
3022
provide: APP_INITIALIZER,

src/addons/block/activitymodules/components/components.module.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,5 @@ import { AddonBlockActivityModulesComponent } from './activitymodules/activitymo
2525
imports: [
2626
CoreSharedModule,
2727
],
28-
exports: [
29-
AddonBlockActivityModulesComponent,
30-
],
3128
})
3229
export class AddonBlockActivityModulesComponentsModule {}

src/addons/block/activityresults/activityresults.module.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,10 @@
1313
// limitations under the License.
1414

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

2219
@NgModule({
23-
imports: [
24-
IonicModule,
25-
AddonBlockActivityResultsComponentsModule,
26-
TranslateModule.forChild(),
27-
],
2820
providers: [
2921
{
3022
provide: APP_INITIALIZER,

src/addons/block/activityresults/components/components.module.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,5 @@ import { AddonBlockActivityResultsComponent } from './activityresults/activityre
2424
imports: [
2525
CoreSharedModule,
2626
],
27-
exports: [
28-
AddonBlockActivityResultsComponent,
29-
],
3027
})
3128
export class AddonBlockActivityResultsComponentsModule {}

src/addons/block/badges/badges.module.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,10 @@
1313
// limitations under the License.
1414

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

2219
@NgModule({
23-
imports: [
24-
IonicModule,
25-
AddonBlockBadgesComponentsModule,
26-
TranslateModule.forChild(),
27-
],
2820
providers: [
2921
{
3022
provide: APP_INITIALIZER,

src/addons/block/badges/components/components.module.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,5 @@ import { AddonBlockBadgesComponent } from './badges/badges';
2424
imports: [
2525
CoreSharedModule,
2626
],
27-
exports: [
28-
AddonBlockBadgesComponent,
29-
],
3027
})
3128
export class AddonBlockBadgesComponentsModule {}

src/addons/block/blogmenu/blogmenu.module.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,10 @@
1313
// limitations under the License.
1414

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

2219
@NgModule({
23-
imports: [
24-
IonicModule,
25-
AddonBlockBlogMenuComponentsModule,
26-
TranslateModule.forChild(),
27-
],
2820
providers: [
2921
{
3022
provide: APP_INITIALIZER,

src/addons/block/blogmenu/components/components.module.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,5 @@ import { AddonBlockBlogMenuComponent } from './blogmenu/blogmenu';
2424
imports: [
2525
CoreSharedModule,
2626
],
27-
exports: [
28-
AddonBlockBlogMenuComponent,
29-
],
3027
})
3128
export class AddonBlockBlogMenuComponentsModule {}

src/addons/block/blogrecent/blogrecent.module.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,10 @@
1313
// limitations under the License.
1414

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

2219
@NgModule({
23-
imports: [
24-
IonicModule,
25-
AddonBlockBlogRecentComponentsModule,
26-
TranslateModule.forChild(),
27-
],
2820
providers: [
2921
{
3022
provide: APP_INITIALIZER,

src/addons/block/blogrecent/components/components.module.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,5 @@ import { AddonBlockBlogRecentComponent } from './blogrecent/blogrecent';
2424
imports: [
2525
CoreSharedModule,
2626
],
27-
exports: [
28-
AddonBlockBlogRecentComponent,
29-
],
3027
})
3128
export class AddonBlockBlogRecentComponentsModule {}

src/addons/block/blogtags/blogtags.module.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,10 @@
1313
// limitations under the License.
1414

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

2219
@NgModule({
23-
imports: [
24-
IonicModule,
25-
AddonBlockBlogTagsComponentsModule,
26-
TranslateModule.forChild(),
27-
],
2820
providers: [
2921
{
3022
provide: APP_INITIALIZER,

src/addons/block/blogtags/components/components.module.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,5 @@ import { AddonBlockBlogTagsComponent } from './blogtags/blogtags';
2424
imports: [
2525
CoreSharedModule,
2626
],
27-
exports: [
28-
AddonBlockBlogTagsComponent,
29-
],
3027
})
3128
export class AddonBlockBlogTagsComponentsModule {}

src/addons/block/calendarmonth/calendarmonth.module.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,10 @@
1313
// limitations under the License.
1414

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

2119
@NgModule({
22-
imports: [
23-
IonicModule,
24-
TranslateModule.forChild(),
25-
],
2620
providers: [
2721
{
2822
provide: APP_INITIALIZER,

src/addons/block/calendarupcoming/calendarupcoming.module.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,10 @@
1313
// limitations under the License.
1414

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

2119
@NgModule({
22-
imports: [
23-
IonicModule,
24-
TranslateModule.forChild(),
25-
],
2620
providers: [
2721
{
2822
provide: APP_INITIALIZER,

src/addons/block/comments/comments.module.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,10 @@
1313
// limitations under the License.
1414

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

2119
@NgModule({
22-
imports: [
23-
IonicModule,
24-
TranslateModule.forChild(),
25-
],
2620
providers: [
2721
{
2822
provide: APP_INITIALIZER,

src/addons/block/completionstatus/completionstatus.module.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,10 @@
1313
// limitations under the License.
1414

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

2119
@NgModule({
22-
imports: [
23-
IonicModule,
24-
TranslateModule.forChild(),
25-
],
2620
providers: [
2721
{
2822
provide: APP_INITIALIZER,

src/addons/block/courselist/courselist.module.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,10 @@
1313
// limitations under the License.
1414

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

2119
@NgModule({
22-
imports: [
23-
IonicModule,
24-
TranslateModule.forChild(),
25-
],
2620
providers: [
2721
{
2822
provide: APP_INITIALIZER,

src/addons/block/globalsearch/globalsearch.module.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,10 @@
1313
// limitations under the License.
1414

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

2219
@NgModule({
23-
imports: [
24-
IonicModule,
25-
CoreBlockComponentsModule,
26-
TranslateModule.forChild(),
27-
],
2820
providers: [
2921
{
3022
provide: APP_INITIALIZER,

src/addons/block/glossaryrandom/glossaryrandom.module.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,10 @@
1313
// limitations under the License.
1414

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

2119
@NgModule({
22-
imports: [
23-
IonicModule,
24-
TranslateModule.forChild(),
25-
],
2620
providers: [
2721
{
2822
provide: APP_INITIALIZER,

src/addons/block/learningplans/learningplans.module.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,10 @@
1313
// limitations under the License.
1414

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

2219
@NgModule({
23-
imports: [
24-
IonicModule,
25-
CoreBlockComponentsModule,
26-
TranslateModule.forChild(),
27-
],
2820
providers: [
2921
{
3022
provide: APP_INITIALIZER,

0 commit comments

Comments
 (0)