MOBILE-2163 core: Make component templates names unique

main
Dani Palou 2018-06-12 08:41:17 +02:00
parent a23654fdb7
commit 1834cb623c
262 changed files with 134 additions and 134 deletions

View File

@ -24,7 +24,7 @@ import { AddonCompetencyHelperProvider } from '../../providers/helper';
*/
@Component({
selector: 'addon-competency-course',
templateUrl: 'course.html',
templateUrl: 'addon-competency-course.html',
})
export class AddonCompetencyCourseComponent {
@ViewChild(Content) content: Content;

View File

@ -26,7 +26,7 @@ import { CoreEventsProvider } from '@providers/events';
*/
@Component({
selector: 'addon-messages-contacts',
templateUrl: 'contacts.html',
templateUrl: 'addon-messages-contacts.html',
})
export class AddonMessagesContactsComponent {

View File

@ -28,7 +28,7 @@ import { AddonPushNotificationsDelegate } from '@addon/pushnotifications/provide
*/
@Component({
selector: 'addon-messages-discussions',
templateUrl: 'discussions.html',
templateUrl: 'addon-messages-discussions.html',
})
export class AddonMessagesDiscussionsComponent implements OnDestroy {
protected newMessagesObserver: any;

View File

@ -23,7 +23,7 @@ import { CoreDynamicComponent } from '@components/dynamic-component/dynamic-comp
*/
@Component({
selector: 'addon-mod-assign-feedback-plugin',
templateUrl: 'feedback-plugin.html',
templateUrl: 'addon-mod-assign-feedback-plugin.html',
})
export class AddonModAssignFeedbackPluginComponent implements OnInit {
@ViewChild(CoreDynamicComponent) dynamicComponent: CoreDynamicComponent;

View File

@ -29,7 +29,7 @@ import { AddonModAssignSubmissionComponent } from '../submission/submission';
*/
@Component({
selector: 'addon-mod-assign-index',
templateUrl: 'index.html',
templateUrl: 'addon-mod-assign-index.html',
})
export class AddonModAssignIndexComponent extends CoreCourseModuleMainActivityComponent {
@ViewChild(AddonModAssignSubmissionComponent) submissionComponent: AddonModAssignSubmissionComponent;

View File

@ -23,7 +23,7 @@ import { CoreDynamicComponent } from '@components/dynamic-component/dynamic-comp
*/
@Component({
selector: 'addon-mod-assign-submission-plugin',
templateUrl: 'submission-plugin.html',
templateUrl: 'addon-mod-assign-submission-plugin.html',
})
export class AddonModAssignSubmissionPluginComponent implements OnInit {
@ViewChild(CoreDynamicComponent) dynamicComponent: CoreDynamicComponent;

View File

@ -42,7 +42,7 @@ import { AddonModAssignSubmissionPluginComponent } from '../submission-plugin/su
*/
@Component({
selector: 'addon-mod-assign-submission',
templateUrl: 'submission.html',
templateUrl: 'addon-mod-assign-submission.html',
})
export class AddonModAssignSubmissionComponent implements OnInit, OnDestroy {
@ViewChild(CoreTabsComponent) tabs: CoreTabsComponent;

View File

@ -28,7 +28,7 @@ import { AddonModAssignFeedbackCommentsHandler } from '../providers/handler';
*/
@Component({
selector: 'addon-mod-assign-feedback-comments',
templateUrl: 'comments.html'
templateUrl: 'addon-mod-assign-feedback-comments.html'
})
export class AddonModAssignFeedbackCommentsComponent extends AddonModAssignFeedbackPluginComponentBase implements OnInit {

View File

@ -22,7 +22,7 @@ import { AddonModAssignFeedbackPluginComponentBase } from '../../../classes/feed
*/
@Component({
selector: 'addon-mod-assign-feedback-edit-pdf',
templateUrl: 'editpdf.html'
templateUrl: 'addon-mod-assign-feedback-editpdf.html'
})
export class AddonModAssignFeedbackEditPdfComponent extends AddonModAssignFeedbackPluginComponentBase implements OnInit {

View File

@ -22,7 +22,7 @@ import { AddonModAssignFeedbackPluginComponentBase } from '../../../classes/feed
*/
@Component({
selector: 'addon-mod-assign-feedback-file',
templateUrl: 'file.html'
templateUrl: 'addon-mod-assign-feedback-file.html'
})
export class AddonModAssignFeedbackFileComponent extends AddonModAssignFeedbackPluginComponentBase implements OnInit {

View File

@ -22,7 +22,7 @@ import { AddonModAssignSubmissionPluginComponent } from '../../../classes/submis
*/
@Component({
selector: 'addon-mod-assign-submission-comments',
templateUrl: 'comments.html'
templateUrl: 'addon-mod-assign-submission-comments.html'
})
export class AddonModAssignSubmissionCommentsComponent extends AddonModAssignSubmissionPluginComponent {
@ViewChild(CoreCommentsCommentsComponent) commentsComponent: CoreCommentsCommentsComponent;

View File

@ -26,7 +26,7 @@ import { AddonModAssignSubmissionPluginComponent } from '../../../classes/submis
*/
@Component({
selector: 'addon-mod-assign-submission-file',
templateUrl: 'file.html'
templateUrl: 'addon-mod-assign-submission-file.html'
})
export class AddonModAssignSubmissionFileComponent extends AddonModAssignSubmissionPluginComponent implements OnInit {

View File

@ -25,7 +25,7 @@ import { AddonModAssignSubmissionPluginComponent } from '../../../classes/submis
*/
@Component({
selector: 'addon-mod-assign-submission-online-text',
templateUrl: 'onlinetext.html'
templateUrl: 'addon-mod-assign-submission-onlinetext.html'
})
export class AddonModAssignSubmissionOnlineTextComponent extends AddonModAssignSubmissionPluginComponent implements OnInit {

View File

@ -26,7 +26,7 @@ import { AddonModBookTocPopoverComponent } from '../../components/toc-popover/to
*/
@Component({
selector: 'addon-mod-book-index',
templateUrl: 'index.html',
templateUrl: 'addon-mod-assign-submission-index.html',
})
export class AddonModBookIndexComponent extends CoreCourseModuleMainResourceComponent {
component = AddonModBookProvider.COMPONENT;

View File

@ -19,7 +19,7 @@ import { Component, Input, Output, EventEmitter } from '@angular/core';
*/
@Component({
selector: 'addon-mod-book-navigation-arrows',
templateUrl: 'navigation-arrows.html'
templateUrl: 'addon-mod-assign-submission-navigation-arrows.html'
})
export class AddonModBookNavigationArrowsComponent {
@Input() previous?: string; // Previous chapter ID.

View File

@ -21,7 +21,7 @@ import { AddonModBookTocChapter } from '../../providers/book';
*/
@Component({
selector: 'addon-mod-book-toc-popover',
templateUrl: 'toc-popover.html'
templateUrl: 'addon-mod-assign-submission-toc-popover.html'
})
export class AddonModBookTocPopoverComponent {
chapters: AddonModBookTocChapter[];

View File

@ -24,7 +24,7 @@ import * as moment from 'moment';
*/
@Component({
selector: 'addon-mod-chat-index',
templateUrl: 'index.html',
templateUrl: 'addon-mod-assign-submission-index.html',
})
export class AddonModChatIndexComponent extends CoreCourseModuleMainActivityComponent {
component = AddonModChatProvider.COMPONENT;

View File

@ -25,7 +25,7 @@ import * as moment from 'moment';
*/
@Component({
selector: 'addon-mod-choice-index',
templateUrl: 'index.html',
templateUrl: 'addon-mod-choice-index.html',
})
export class AddonModChoiceIndexComponent extends CoreCourseModuleMainActivityComponent {
component = AddonModChoiceProvider.COMPONENT;

View File

@ -23,7 +23,7 @@ import { CoreUserProvider } from '@core/user/providers/user';
*/
@Component({
selector: 'addon-mod-data-action',
templateUrl: 'action.html',
templateUrl: 'addon-mod-data-action.html',
})
export class AddonModDataActionComponent implements OnInit {
@Input() mode: string; // The render mode.

View File

@ -22,7 +22,7 @@ import { CoreDynamicComponent } from '@components/dynamic-component/dynamic-comp
*/
@Component({
selector: 'addon-mod-data-field-plugin',
templateUrl: 'field-plugin.html',
templateUrl: 'addon-mod-data-field-plugin.html',
})
export class AddonModDataFieldPluginComponent implements OnInit, OnChanges {
@ViewChild(CoreDynamicComponent) dynamicComponent: CoreDynamicComponent;

View File

@ -31,7 +31,7 @@ import * as moment from 'moment';
*/
@Component({
selector: 'addon-mod-data-index',
templateUrl: 'index.html',
templateUrl: 'addon-mod-data-index.html',
})
export class AddonModDataIndexComponent extends CoreCourseModuleMainActivityComponent {

View File

@ -20,7 +20,7 @@ import { AddonModDataFieldPluginComponent } from '../../../classes/field-plugin-
*/
@Component({
selector: 'addon-mod-data-field-checkbox',
templateUrl: 'checkbox.html'
templateUrl: 'addon-mod-data-field-checkbox.html'
})
export class AddonModDataFieldCheckboxComponent extends AddonModDataFieldPluginComponent {

View File

@ -21,7 +21,7 @@ import { AddonModDataFieldPluginComponent } from '../../../classes/field-plugin-
*/
@Component({
selector: 'addon-mod-data-field-date',
templateUrl: 'date.html'
templateUrl: 'addon-mod-data-field-date.html'
})
export class AddonModDataFieldDateComponent extends AddonModDataFieldPluginComponent {

View File

@ -22,7 +22,7 @@ import { AddonModDataProvider } from '../../../providers/data';
*/
@Component({
selector: 'addon-mod-data-field-file',
templateUrl: 'file.html'
templateUrl: 'addon-mod-data-field-file.html'
})
export class AddonModDataFieldFileComponent extends AddonModDataFieldPluginComponent {

View File

@ -21,7 +21,7 @@ import { AddonModDataFieldPluginComponent } from '../../../classes/field-plugin-
*/
@Component({
selector: 'addon-mod-data-field-latlong',
templateUrl: 'latlong.html'
templateUrl: 'addon-mod-data-field-latlong.html'
})
export class AddonModDataFieldLatlongComponent extends AddonModDataFieldPluginComponent {

View File

@ -20,7 +20,7 @@ import { AddonModDataFieldPluginComponent } from '../../../classes/field-plugin-
*/
@Component({
selector: 'addon-mod-data-field-menu',
templateUrl: 'menu.html'
templateUrl: 'addon-mod-data-field-menu.html'
})
export class AddonModDataFieldMenuComponent extends AddonModDataFieldPluginComponent {

View File

@ -20,7 +20,7 @@ import { AddonModDataFieldPluginComponent } from '../../../classes/field-plugin-
*/
@Component({
selector: 'addon-mod-data-field-multimenu',
templateUrl: 'multimenu.html'
templateUrl: 'addon-mod-data-field-multimenu.html'
})
export class AddonModDataFieldMultimenuComponent extends AddonModDataFieldPluginComponent {

View File

@ -20,7 +20,7 @@ import { AddonModDataFieldPluginComponent } from '../../../classes/field-plugin-
*/
@Component({
selector: 'addon-mod-data-field-number',
templateUrl: 'number.html'
templateUrl: 'addon-mod-data-field-number.html'
})
export class AddonModDataFieldNumberComponent extends AddonModDataFieldPluginComponent{

View File

@ -22,7 +22,7 @@ import { AddonModDataProvider } from '../../../providers/data';
*/
@Component({
selector: 'addon-mod-data-field-picture',
templateUrl: 'picture.html'
templateUrl: 'addon-mod-data-field-picture.html'
})
export class AddonModDataFieldPictureComponent extends AddonModDataFieldPluginComponent {

View File

@ -20,7 +20,7 @@ import { AddonModDataFieldPluginComponent } from '../../../classes/field-plugin-
*/
@Component({
selector: 'addon-mod-data-field-radiobutton',
templateUrl: 'radiobutton.html'
templateUrl: 'addon-mod-data-field-radiobutton.html'
})
export class AddonModDataFieldRadiobuttonComponent extends AddonModDataFieldPluginComponent {

View File

@ -20,7 +20,7 @@ import { AddonModDataFieldPluginComponent } from '../../../classes/field-plugin-
*/
@Component({
selector: 'addon-mod-data-field-text',
templateUrl: 'text.html'
templateUrl: 'addon-mod-data-field-text.html'
})
export class AddonModDataFieldTextComponent extends AddonModDataFieldPluginComponent {

View File

@ -22,7 +22,7 @@ import { AddonModDataFieldPluginComponent } from '../../../classes/field-plugin-
*/
@Component({
selector: 'addon-mod-data-field-textarea',
templateUrl: 'textarea.html'
templateUrl: 'addon-mod-data-field-textarea.html'
})
export class AddonModDataFieldTextareaComponent extends AddonModDataFieldPluginComponent {

View File

@ -20,7 +20,7 @@ import { AddonModDataFieldPluginComponent } from '../../../classes/field-plugin-
*/
@Component({
selector: 'addon-mod-data-field-url',
templateUrl: 'url.html'
templateUrl: 'addon-mod-data-field-url.html'
})
export class AddonModDataFieldUrlComponent extends AddonModDataFieldPluginComponent {

View File

@ -27,7 +27,7 @@ import * as moment from 'moment';
*/
@Component({
selector: 'addon-mod-feedback-index',
templateUrl: 'index.html',
templateUrl: 'addon-mod-feedback-index.html',
})
export class AddonModFeedbackIndexComponent extends CoreCourseModuleMainActivityComponent {
@Input() tab = 'overview';

View File

@ -26,7 +26,7 @@ import { AddonModFolderHelperProvider } from '../../providers/helper';
*/
@Component({
selector: 'addon-mod-folder-index',
templateUrl: 'index.html',
templateUrl: 'addon-mod-folder-index.html',
})
export class AddonModFolderIndexComponent extends CoreCourseModuleMainResourceComponent {
@Input() path: string; // For subfolders. Use the path instead of a boolean so Angular detects them as different states.

View File

@ -30,7 +30,7 @@ import { AddonModForumPrefetchHandler } from '../../providers/prefetch-handler';
*/
@Component({
selector: 'addon-mod-forum-index',
templateUrl: 'index.html',
templateUrl: 'addon-mod-forum-index.html',
})
export class AddonModForumIndexComponent extends CoreCourseModuleMainActivityComponent {
@ViewChild(CoreSplitViewComponent) splitviewCtrl: CoreSplitViewComponent;

View File

@ -31,7 +31,7 @@ import { AddonModForumSyncProvider } from '../../providers/sync';
*/
@Component({
selector: 'addon-mod-forum-post',
templateUrl: 'post.html',
templateUrl: 'addon-mod-forum-post.html',
})
export class AddonModForumPostComponent implements OnInit, OnDestroy {

View File

@ -28,7 +28,7 @@ type FetchMode = 'author_all' | 'cat_all' | 'newest_first' | 'recently_updated'
*/
@Component({
selector: 'addon-mod-glossary-index',
templateUrl: 'index.html',
templateUrl: 'addon-mod-glossary-index.html',
})
export class AddonModGlossaryIndexComponent extends CoreCourseModuleMainActivityComponent {
@ViewChild(CoreSplitViewComponent) splitviewCtrl: CoreSplitViewComponent;

View File

@ -20,7 +20,7 @@ import { NavParams, ViewController } from 'ionic-angular';
*/
@Component({
selector: 'addon-mod-glossary-mode-picker-popover',
templateUrl: 'mode-picker.html'
templateUrl: 'addon-mod-glossary-mode-picker.html'
})
export class AddonModGlossaryModePickerPopoverComponent {
modes = [];

View File

@ -26,7 +26,7 @@ import { AddonModImscpTocPopoverComponent } from '../../components/toc-popover/t
*/
@Component({
selector: 'addon-mod-imscp-index',
templateUrl: 'index.html',
templateUrl: 'addon-mod-imscp-index.html',
})
export class AddonModImscpIndexComponent extends CoreCourseModuleMainResourceComponent {
component = AddonModImscpProvider.COMPONENT;

View File

@ -20,7 +20,7 @@ import { NavParams, ViewController } from 'ionic-angular';
*/
@Component({
selector: 'addon-mod-imscp-toc-popover',
templateUrl: 'toc-popover.html'
templateUrl: 'addon-mod-imscp-toc-popover.html'
})
export class AddonModImscpTocPopoverComponent {
items = [];

View File

@ -30,7 +30,7 @@ import { CoreConstants } from '@core/constants';
*/
@Component({
selector: 'addon-mod-lesson-index',
templateUrl: 'index.html',
templateUrl: 'addon-mod-lesson-index.html',
})
export class AddonModLessonIndexComponent extends CoreCourseModuleMainActivityComponent {
@Input() group: number; // The group to display.

View File

@ -22,7 +22,7 @@ import { AddonModLtiProvider } from '../../providers/lti';
*/
@Component({
selector: 'addon-mod-lti-index',
templateUrl: 'index.html',
templateUrl: 'addon-mod-lti-index.html',
})
export class AddonModLtiIndexComponent extends CoreCourseModuleMainActivityComponent {
component = AddonModLtiProvider.COMPONENT;

View File

@ -25,7 +25,7 @@ import { AddonModPagePrefetchHandler } from '../../providers/prefetch-handler';
*/
@Component({
selector: 'addon-mod-page-index',
templateUrl: 'index.html',
templateUrl: 'addon-mod-page-index.html',
})
export class AddonModPageIndexComponent extends CoreCourseModuleMainResourceComponent {
component = AddonModPageProvider.COMPONENT;

View File

@ -19,8 +19,8 @@ import { FormGroup, FormBuilder } from '@angular/forms';
* Component to render the preflight for offline attempts.
*/
@Component({
selector: 'addon-mod-quiz-acess-offline-attempts',
templateUrl: 'offlineattempts.html'
selector: 'addon-mod-quiz-access-offline-attempts',
templateUrl: 'addon-mod-quiz-access-offline-attempts.html'
})
export class AddonModQuizAccessOfflineAttemptsComponent implements OnInit {

View File

@ -19,8 +19,8 @@ import { FormGroup, FormBuilder } from '@angular/forms';
* Component to render the preflight for password.
*/
@Component({
selector: 'addon-mod-quiz-acess-password',
templateUrl: 'password.html'
selector: 'addon-mod-quiz-access-password',
templateUrl: 'addon-mod-quiz-access-password.html'
})
export class AddonModQuizAccessPasswordComponent implements OnInit {

View File

@ -19,8 +19,8 @@ import { FormGroup } from '@angular/forms';
* Component to render the preflight for time limit.
*/
@Component({
selector: 'addon-mod-quiz-acess-time-limit',
templateUrl: 'timelimit.html'
selector: 'addon-mod-quiz-access-time-limit',
templateUrl: 'addon-mod-quiz-access-time-limit.html'
})
export class AddonModQuizAccessTimeLimitComponent {

View File

@ -28,7 +28,7 @@ import { CoreConstants } from '@core/constants';
*/
@Component({
selector: 'addon-mod-quiz-index',
templateUrl: 'index.html',
templateUrl: 'addon-mod-quiz-index.html',
})
export class AddonModQuizIndexComponent extends CoreCourseModuleMainActivityComponent {
component = AddonModQuizProvider.COMPONENT;

View File

@ -25,7 +25,7 @@ import { AddonModResourceHelperProvider } from '../../providers/helper';
*/
@Component({
selector: 'addon-mod-resource-index',
templateUrl: 'index.html',
templateUrl: 'addon-mod-resource-index.html',
})
export class AddonModResourceIndexComponent extends CoreCourseModuleMainResourceComponent {
component = AddonModResourceProvider.COMPONENT;

View File

@ -29,7 +29,7 @@ import { CoreConstants } from '@core/constants';
*/
@Component({
selector: 'addon-mod-scorm-index',
templateUrl: 'index.html',
templateUrl: 'addon-mod-scorm-index.html',
})
export class AddonModScormIndexComponent extends CoreCourseModuleMainActivityComponent {
component = AddonModScormProvider.COMPONENT;

Some files were not shown because too many files have changed in this diff Show More