Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
import { NgModule } from '@angular/core';
import { IonicModule } from 'ionic-angular';
import { TranslateModule } from '@ngx-translate/core';
import { CoreBlockDelegate } from '@core/block/providers/delegate';
import { AddonBlockBlogRecentHandler } from './providers/block-handler';
@NgModule({
declarations: [
],
imports: [
IonicModule,
TranslateModule.forChild()
],
exports: [
],
providers: [
AddonBlockBlogRecentHandler
]
})
export class AddonBlockBlogRecentModule {
constructor(blockDelegate: CoreBlockDelegate, blockHandler: AddonBlockBlogRecentHandler) {
blockDelegate.registerHandler(blockHandler);
}
}
]
})
export class SharedModule {
constructor(private translate: TranslateService) {
translate.addLangs(['en', 'zh-CN']);
translate.setDefaultLang('zh-CN');
// const browserLang = translate.getBrowserLang();
// translate.use(browserLang.match(/en|zh-CN/) ? browserLang : 'en');
}
}
@NgModule({
imports: [CommonModule, TranslateModule.forChild({})],
exports: [TranslateModule]
})
export class LanguageModule {}
import { CoreDirectivesModule } from '@directives/directives.module';
import { CoreSitePluginsPluginPage } from './plugin-page';
import { CoreSitePluginsComponentsModule } from '../../components/components.module';
/**
* Module to lazy load the page.
*/
@NgModule({
declarations: [
CoreSitePluginsPluginPage
],
imports: [
CoreDirectivesModule,
CoreSitePluginsComponentsModule,
IonicPageModule.forChild(CoreSitePluginsPluginPage),
TranslateModule.forChild()
]
})
export class CoreSitePluginsPluginPageModule {}
import { CoreRatingComponentsModule } from '@core/rating/components/components.module';
import { AddonModDataComponentsModule } from '../../components/components.module';
import { AddonModDataEntryPage } from './entry';
@NgModule({
declarations: [
AddonModDataEntryPage,
],
imports: [
CoreDirectivesModule,
CoreComponentsModule,
AddonModDataComponentsModule,
CoreCompileHtmlComponentModule,
CoreCommentsComponentsModule,
IonicPageModule.forChild(AddonModDataEntryPage),
TranslateModule.forChild(),
CoreRatingComponentsModule
],
})
export class AddonModDataEntryPageModule {}
import { CommonModule } from '@angular/common';
import { IonicModule } from 'ionic-angular';
import { TranslateModule } from '@ngx-translate/core';
import { CoreComponentsModule } from '@components/components.module';
import { CoreDirectivesModule } from '@directives/directives.module';
import { CoreCourseComponentsModule } from '@core/course/components/components.module';
import { AddonModLtiIndexComponent } from './index/index';
@NgModule({
declarations: [
AddonModLtiIndexComponent,
],
imports: [
CommonModule,
IonicModule,
TranslateModule.forChild(),
CoreComponentsModule,
CoreDirectivesModule,
CoreCourseComponentsModule
],
providers: [
],
exports: [
AddonModLtiIndexComponent,
],
entryComponents: [
AddonModLtiIndexComponent,
]
})
export class AddonModLtiComponentsModule {}
import {FormsModule} from '@angular/forms';
import {TranslateModule} from '@ngx-translate/core';
import {NewAdStepAttributesComponent} from './new-ad-step-attributes';
import {TargetedUsersModule} from '../../targeted-users/targeted-users.module';
@NgModule({
declarations: [
NewAdStepAttributesComponent
],
imports: [
IonicModule,
CommonModule,
FormsModule,
TranslateModule.forChild(),
TargetedUsersModule
],
exports: [
NewAdStepAttributesComponent
]
})
export class NewAdStepAttributesModule {
}
import { CorePipesModule } from '@pipes/pipes.module';
import { CoreCourseComponentsModule } from '@core/course/components/components.module';
import { CoreRatingComponentsModule } from '@core/rating/components/components.module';
import { CoreTagComponentsModule } from '@core/tag/components/components.module';
import { AddonModForumIndexComponent } from './index/index';
import { AddonModForumPostComponent } from './post/post';
@NgModule({
declarations: [
AddonModForumIndexComponent,
AddonModForumPostComponent
],
imports: [
CommonModule,
IonicModule,
TranslateModule.forChild(),
CoreComponentsModule,
CoreDirectivesModule,
CorePipesModule,
CoreCourseComponentsModule,
CoreRatingComponentsModule,
CoreTagComponentsModule
],
providers: [
],
exports: [
AddonModForumIndexComponent,
AddonModForumPostComponent
],
entryComponents: [
AddonModForumIndexComponent
]
import { IonicModule } from 'ionic-angular';
import { TranslateModule } from '@ngx-translate/core';
import { AddonModAssignFeedbackFileHandler } from './providers/handler';
import { AddonModAssignFeedbackFileComponent } from './component/file';
import { AddonModAssignFeedbackDelegate } from '../../providers/feedback-delegate';
import { CoreComponentsModule } from '@components/components.module';
import { CoreDirectivesModule } from '@directives/directives.module';
@NgModule({
declarations: [
AddonModAssignFeedbackFileComponent
],
imports: [
CommonModule,
IonicModule,
TranslateModule.forChild(),
CoreComponentsModule,
CoreDirectivesModule
],
providers: [
AddonModAssignFeedbackFileHandler
],
exports: [
AddonModAssignFeedbackFileComponent
],
entryComponents: [
AddonModAssignFeedbackFileComponent
]
})
export class AddonModAssignFeedbackFileModule {
constructor(feedbackDelegate: AddonModAssignFeedbackDelegate, handler: AddonModAssignFeedbackFileHandler) {
feedbackDelegate.registerHandler(handler);
export function declarations() {
return [
InfoDrawerLayoutComponent,
InfoDrawerTabComponent,
InfoDrawerComponent,
InfoDrawerTitleDirective,
InfoDrawerButtonsDirective,
InfoDrawerContentDirective
];
}
@NgModule({
imports: [
CommonModule,
MaterialModule,
TranslateModule.forChild()
],
declarations: declarations(),
exports: declarations()
})
export class InfoDrawerModule {}
import { NgModule } from '@angular/core';
import { IonicPageModule } from 'ionic-angular';
import { AddonModQuizNavigationModalPage } from './navigation-modal';
import { TranslateModule } from '@ngx-translate/core';
import { CoreComponentsModule } from '@components/components.module';
import { CoreDirectivesModule } from '@directives/directives.module';
@NgModule({
declarations: [
AddonModQuizNavigationModalPage
],
imports: [
CoreDirectivesModule,
CoreComponentsModule,
IonicPageModule.forChild(AddonModQuizNavigationModalPage),
TranslateModule.forChild()
]
})
export class AddonModQuizNavigationModalPageModule {}