MOBILE-4616 core: Move exported constants from module files
parent
d3b02b07e4
commit
b96b66bedd
|
@ -17,7 +17,7 @@ import { CoreBlockHandlerData } from '@features/block/services/block-delegate';
|
|||
import { CoreBlockOnlyTitleComponent } from '@features/block/components/only-title-block/only-title-block';
|
||||
import { CoreBlockBaseHandler } from '@features/block/classes/base-block-handler';
|
||||
import { makeSingleton } from '@singletons';
|
||||
import { ADDON_COMPETENCY_LEARNING_PLANS_PAGE } from '@addons/competency/competency.module';
|
||||
import { ADDON_COMPETENCY_LEARNING_PLANS_PAGE } from '@addons/competency/constants';
|
||||
|
||||
/**
|
||||
* Block handler.
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
|
||||
import { Params } from '@angular/router';
|
||||
import { CoreRoutedItemsManagerSource } from '@classes/items-management/routed-items-manager-source';
|
||||
import { ADDON_COMPETENCY_COMPETENCIES_PAGE } from '../competency.module';
|
||||
import { ADDON_COMPETENCY_COMPETENCIES_PAGE } from '../constants';
|
||||
import { AddonCompetency, AddonCompetencyPlan, AddonCompetencyProvider } from '../services/competency';
|
||||
import { AddonCompetencyHelper } from '../services/competency-helper';
|
||||
import { CoreIonicColorNames } from '@singletons/colors';
|
||||
|
|
|
@ -17,7 +17,7 @@ import { RouterModule, Routes } from '@angular/router';
|
|||
|
||||
import { AddonCompetencyCompetencyPage } from './pages/competency/competency.page';
|
||||
import { AddonCompetencyCompetencySummaryPage } from './pages/competencysummary/competencysummary.page';
|
||||
import { ADDON_COMPETENCY_SUMMARY_PAGE } from './competency.module';
|
||||
import { ADDON_COMPETENCY_SUMMARY_PAGE } from './constants';
|
||||
import { AddonCompetencyCompetencyPageModule } from './pages/competency/competency.module';
|
||||
import { AddonCompetencyCompetencySummaryPageModule } from './pages/competencysummary/competencysummary.module';
|
||||
import { AddonCompetencyCourseCompetenciesPage } from './pages/coursecompetencies/coursecompetencies.page';
|
||||
|
|
|
@ -22,7 +22,7 @@ import { AddonCompetencyPlanPage } from './pages/plan/plan';
|
|||
import { AddonCompetencyPlanListPage } from './pages/planlist/planlist';
|
||||
import { AddonCompetencyCompetencyPage } from './pages/competency/competency.page';
|
||||
import { AddonCompetencyCompetencySummaryPage } from './pages/competencysummary/competencysummary.page';
|
||||
import { ADDON_COMPETENCY_COMPETENCIES_PAGE, ADDON_COMPETENCY_SUMMARY_PAGE } from './competency.module';
|
||||
import { ADDON_COMPETENCY_COMPETENCIES_PAGE, ADDON_COMPETENCY_SUMMARY_PAGE } from './constants';
|
||||
import { AddonCompetencyCompetencyPageModule } from './pages/competency/competency.module';
|
||||
import { AddonCompetencyCompetencySummaryPageModule } from './pages/competencysummary/competencysummary.module';
|
||||
import { AddonCompetencyCompetenciesPage } from './pages/competencies/competencies.page';
|
||||
|
|
|
@ -27,8 +27,9 @@ import { AddonCompetencyUserHandler } from './services/handlers/user';
|
|||
import { Routes } from '@angular/router';
|
||||
import { CoreMainMenuTabRoutingModule } from '@features/mainmenu/mainmenu-tab-routing.module';
|
||||
import { CoreCourseIndexRoutingModule } from '@features/course/course-routing.module';
|
||||
import { COURSE_PAGE_NAME } from '@features/course/course.module';
|
||||
import { PARTICIPANTS_PAGE_NAME } from '@features/user/user.module';
|
||||
import { PARTICIPANTS_PAGE_NAME } from '@features/user/constants';
|
||||
import { COURSE_PAGE_NAME } from '@features/course/constants';
|
||||
import { ADDON_COMPETENCY_LEARNING_PLANS_PAGE, ADDON_COMPETENCY_COMPETENCIES_PAGE } from './constants';
|
||||
|
||||
/**
|
||||
* Get competency services.
|
||||
|
@ -45,10 +46,6 @@ export async function getCompetencyServices(): Promise<Type<unknown>[]> {
|
|||
];
|
||||
}
|
||||
|
||||
export const ADDON_COMPETENCY_LEARNING_PLANS_PAGE = 'learning-plans';
|
||||
export const ADDON_COMPETENCY_COMPETENCIES_PAGE = 'competencies';
|
||||
export const ADDON_COMPETENCY_SUMMARY_PAGE = 'summary';
|
||||
|
||||
const mainMenuChildrenRoutes: Routes = [
|
||||
{
|
||||
path: ADDON_COMPETENCY_LEARNING_PLANS_PAGE,
|
||||
|
|
|
@ -0,0 +1,17 @@
|
|||
// (C) Copyright 2015 Moodle Pty Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// 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.
|
||||
|
||||
export const ADDON_COMPETENCY_LEARNING_PLANS_PAGE = 'learning-plans';
|
||||
export const ADDON_COMPETENCY_COMPETENCIES_PAGE = 'competencies';
|
||||
export const ADDON_COMPETENCY_SUMMARY_PAGE = 'summary';
|
|
@ -32,7 +32,7 @@ import {
|
|||
import { CoreNavigator } from '@services/navigator';
|
||||
import { ContextLevel } from '@/core/constants';
|
||||
import { CoreUtils } from '@services/utils/utils';
|
||||
import { ADDON_COMPETENCY_SUMMARY_PAGE } from '@addons/competency/competency.module';
|
||||
import { ADDON_COMPETENCY_SUMMARY_PAGE } from '@addons/competency/constants';
|
||||
import { CoreSwipeNavigationItemsManager } from '@classes/items-management/swipe-navigation-items-manager';
|
||||
import { CoreRoutedItemsManagerSourcesTracker } from '@classes/items-management/routed-items-manager-sources-tracker';
|
||||
import { AddonCompetencyPlanCompetenciesSource } from '@addons/competency/classes/competency-plan-competencies-source';
|
||||
|
|
|
@ -18,7 +18,7 @@ import { AddonCompetencySummary, AddonCompetency } from '@addons/competency/serv
|
|||
import { CoreNavigator } from '@services/navigator';
|
||||
import { CoreDomUtils } from '@services/utils/dom';
|
||||
import { CoreUtils } from '@services/utils/utils';
|
||||
import { ADDON_COMPETENCY_SUMMARY_PAGE } from '@addons/competency/competency.module';
|
||||
import { ADDON_COMPETENCY_SUMMARY_PAGE } from '@addons/competency/constants';
|
||||
import { CoreTime } from '@singletons/time';
|
||||
import { CoreAnalytics, CoreAnalyticsEventType } from '@services/analytics';
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@ import { CoreUserProfile } from '@features/user/services/user';
|
|||
import { CoreNavigator } from '@services/navigator';
|
||||
import { CoreDomUtils } from '@services/utils/dom';
|
||||
import { ContextLevel } from '@/core/constants';
|
||||
import { ADDON_COMPETENCY_SUMMARY_PAGE } from '@addons/competency/competency.module';
|
||||
import { ADDON_COMPETENCY_SUMMARY_PAGE } from '@addons/competency/constants';
|
||||
import { CoreListItemsManager } from '@classes/items-management/list-items-manager';
|
||||
import { CoreRoutedItemsManagerSourcesTracker } from '@classes/items-management/routed-items-manager-sources-tracker';
|
||||
import { AddonCompetencyCourseCompetenciesSource } from '@addons/competency/classes/competency-course-competencies-source';
|
||||
|
|
|
@ -12,11 +12,11 @@
|
|||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
import { ADDON_COMPETENCY_COMPETENCIES_PAGE, ADDON_COMPETENCY_LEARNING_PLANS_PAGE } from '@addons/competency/competency.module';
|
||||
import { ADDON_COMPETENCY_COMPETENCIES_PAGE, ADDON_COMPETENCY_LEARNING_PLANS_PAGE } from '@addons/competency/constants';
|
||||
import { Injectable } from '@angular/core';
|
||||
import { CoreContentLinksHandlerBase } from '@features/contentlinks/classes/base-handler';
|
||||
import { CoreContentLinksAction } from '@features/contentlinks/services/contentlinks-delegate';
|
||||
import { COURSE_PAGE_NAME } from '@features/course/course.module';
|
||||
import { COURSE_PAGE_NAME } from '@features/course/constants';
|
||||
import { CoreNavigator } from '@services/navigator';
|
||||
import { makeSingleton } from '@singletons';
|
||||
import { AddonCompetency } from '../competency';
|
||||
|
|
|
@ -24,7 +24,7 @@ import { AddonCompetency } from '../competency';
|
|||
import { CoreCourseAnyCourseData, CoreCourseUserAdminOrNavOptionIndexed } from '@features/courses/services/courses';
|
||||
import { CoreFilterHelper } from '@features/filter/services/filter-helper';
|
||||
import { ContextLevel } from '@/core/constants';
|
||||
import { ADDON_COMPETENCY_COMPETENCIES_PAGE } from '@addons/competency/competency.module';
|
||||
import { ADDON_COMPETENCY_COMPETENCIES_PAGE } from '@addons/competency/constants';
|
||||
|
||||
/**
|
||||
* Course nav handler.
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
import { ADDON_COMPETENCY_LEARNING_PLANS_PAGE } from '@addons/competency/competency.module';
|
||||
import { ADDON_COMPETENCY_LEARNING_PLANS_PAGE } from '@addons/competency/constants';
|
||||
import { Injectable } from '@angular/core';
|
||||
import { CoreContentLinksHandlerBase } from '@features/contentlinks/classes/base-handler';
|
||||
import { CoreContentLinksAction } from '@features/contentlinks/services/contentlinks-delegate';
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
import { ADDON_COMPETENCY_LEARNING_PLANS_PAGE } from '@addons/competency/competency.module';
|
||||
import { ADDON_COMPETENCY_LEARNING_PLANS_PAGE } from '@addons/competency/constants';
|
||||
import { Injectable } from '@angular/core';
|
||||
import { CoreContentLinksHandlerBase } from '@features/contentlinks/classes/base-handler';
|
||||
import { CoreContentLinksAction } from '@features/contentlinks/services/contentlinks-delegate';
|
||||
|
|
|
@ -12,9 +12,9 @@
|
|||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
import { ADDON_COMPETENCY_COMPETENCIES_PAGE, ADDON_COMPETENCY_LEARNING_PLANS_PAGE } from '@addons/competency/competency.module';
|
||||
import { ADDON_COMPETENCY_COMPETENCIES_PAGE, ADDON_COMPETENCY_LEARNING_PLANS_PAGE } from '@addons/competency/constants';
|
||||
import { Injectable } from '@angular/core';
|
||||
import { COURSE_PAGE_NAME } from '@features/course/course.module';
|
||||
import { COURSE_PAGE_NAME } from '@features/course/constants';
|
||||
import { CorePushNotificationsClickHandler } from '@features/pushnotifications/services/push-delegate';
|
||||
import { CorePushNotificationsNotificationBasicData } from '@features/pushnotifications/services/pushnotifications';
|
||||
import { CoreNavigator } from '@services/navigator';
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
import { ADDON_COMPETENCY_COMPETENCIES_PAGE, ADDON_COMPETENCY_SUMMARY_PAGE } from '@addons/competency/competency.module';
|
||||
import { ADDON_COMPETENCY_COMPETENCIES_PAGE, ADDON_COMPETENCY_SUMMARY_PAGE } from '@addons/competency/constants';
|
||||
import { Injectable } from '@angular/core';
|
||||
import { CoreContentLinksHandlerBase } from '@features/contentlinks/classes/base-handler';
|
||||
import { CoreContentLinksAction } from '@features/contentlinks/services/contentlinks-delegate';
|
||||
|
|
|
@ -12,9 +12,9 @@
|
|||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
import { ADDON_COMPETENCY_COMPETENCIES_PAGE, ADDON_COMPETENCY_LEARNING_PLANS_PAGE } from '@addons/competency/competency.module';
|
||||
import { ADDON_COMPETENCY_COMPETENCIES_PAGE, ADDON_COMPETENCY_LEARNING_PLANS_PAGE } from '@addons/competency/constants';
|
||||
import { Injectable } from '@angular/core';
|
||||
import { COURSE_PAGE_NAME } from '@features/course/course.module';
|
||||
import { COURSE_PAGE_NAME } from '@features/course/constants';
|
||||
import { CoreUserProfile } from '@features/user/services/user';
|
||||
import {
|
||||
CoreUserProfileHandler,
|
||||
|
@ -22,7 +22,7 @@ import {
|
|||
CoreUserProfileHandlerData,
|
||||
CoreUserDelegateContext,
|
||||
} from '@features/user/services/user-delegate';
|
||||
import { PARTICIPANTS_PAGE_NAME } from '@features/user/user.module';
|
||||
import { PARTICIPANTS_PAGE_NAME } from '@features/user/constants';
|
||||
import { CoreNavigator } from '@services/navigator';
|
||||
import { CoreSites } from '@services/sites';
|
||||
import { makeSingleton } from '@singletons';
|
||||
|
|
|
@ -37,7 +37,7 @@ import { CoreTagAreaDelegate } from '@features/tag/services/tag-area-delegate';
|
|||
import { AddonModForumTagAreaHandler } from './services/handlers/tag-area';
|
||||
import { CorePushNotificationsDelegate } from '@features/pushnotifications/services/push-delegate';
|
||||
import { AddonModForumPushClickHandler } from './services/handlers/push-click';
|
||||
import { COURSE_CONTENTS_PATH } from '@features/course/course.module';
|
||||
import { COURSE_CONTENTS_PATH } from '@features/course/constants';
|
||||
import { CoreCourseHelper } from '@features/course/services/course-helper';
|
||||
import { ADDON_MOD_FORUM_COMPONENT, ADDON_MOD_FORUM_PAGE_NAME, ADDON_MOD_FORUM_SEARCH_PAGE_NAME } from './constants';
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@ import { conditionalRoutes } from '@/app/app-routing.module';
|
|||
import { APP_INITIALIZER, NgModule } from '@angular/core';
|
||||
import { Routes } from '@angular/router';
|
||||
import { CoreContentLinksDelegate } from '@features/contentlinks/services/contentlinks-delegate';
|
||||
import { COURSE_CONTENTS_PATH } from '@features/course/course.module';
|
||||
import { COURSE_CONTENTS_PATH } from '@features/course/constants';
|
||||
import { CoreCourseContentsRoutingModule } from '@features/course/course-contents-routing.module';
|
||||
import { CoreCourseHelper } from '@features/course/services/course-helper';
|
||||
import { CoreCourseModuleDelegate } from '@features/course/services/module-delegate';
|
||||
|
|
|
@ -0,0 +1,18 @@
|
|||
// (C) Copyright 2015 Moodle Pty Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// 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.
|
||||
|
||||
export const COURSE_INDEX_PATH = ':courseId';
|
||||
export const COURSE_PAGE_NAME = 'course';
|
||||
export const CONTENTS_PAGE_NAME = 'contents';
|
||||
export const COURSE_CONTENTS_PATH = `${COURSE_PAGE_NAME}/${COURSE_INDEX_PATH}/${CONTENTS_PAGE_NAME}`;
|
|
@ -22,8 +22,7 @@ import { CoreCourseIndexPage } from '@features/course/pages/index';
|
|||
import { CoreCourseListModTypePage } from '@features/course/pages/list-mod-type/list-mod-type';
|
||||
import { CoreCourseModulePreviewPage } from '@features/course/pages/module-preview/module-preview';
|
||||
import { CoreCourseHelper } from './services/course-helper';
|
||||
|
||||
export const COURSE_INDEX_PATH = ':courseId';
|
||||
import { COURSE_INDEX_PATH } from './constants';
|
||||
|
||||
/**
|
||||
* Build module routes.
|
||||
|
|
|
@ -29,9 +29,9 @@ import { CoreTagAreaDelegate } from '@features/tag/services/tag-area-delegate';
|
|||
import { CoreCourseTagAreaHandler } from './services/handlers/course-tag-area';
|
||||
import { CoreCourseModulesTagAreaHandler } from './services/handlers/modules-tag-area';
|
||||
import { CoreCourse } from './services/course';
|
||||
import { COURSE_INDEX_PATH } from '@features/course/course-lazy.module';
|
||||
import { buildRegExpUrlMatcher } from '@/app/app-routing.module';
|
||||
import { CoreCourseIndexRoutingModule } from '@features/course/course-routing.module';
|
||||
import { COURSE_PAGE_NAME, CONTENTS_PAGE_NAME } from './constants';
|
||||
|
||||
/**
|
||||
* Get course services.
|
||||
|
@ -87,10 +87,6 @@ export async function getCourseExportedObjects(): Promise<Record<string, unknown
|
|||
/* eslint-enable @typescript-eslint/naming-convention */
|
||||
}
|
||||
|
||||
export const COURSE_PAGE_NAME = 'course';
|
||||
export const CONTENTS_PAGE_NAME = 'contents';
|
||||
export const COURSE_CONTENTS_PATH = `${COURSE_PAGE_NAME}/${COURSE_INDEX_PATH}/${CONTENTS_PAGE_NAME}`;
|
||||
|
||||
const routes: Routes = [
|
||||
{
|
||||
matcher: buildRegExpUrlMatcher(new RegExp(`^${COURSE_PAGE_NAME}(/deep)*`)),
|
||||
|
|
|
@ -24,7 +24,7 @@ import { CoreCourse, CoreCourseProvider, CoreCourseWSSection } from '@features/c
|
|||
import { CoreCourseHelper, CoreCourseModuleData } from '@features/course/services/course-helper';
|
||||
import { CoreUtils } from '@services/utils/utils';
|
||||
import { CoreNavigationOptions, CoreNavigator } from '@services/navigator';
|
||||
import { CONTENTS_PAGE_NAME } from '@features/course/course.module';
|
||||
import { CONTENTS_PAGE_NAME } from '@features/course/constants';
|
||||
import { CoreDomUtils } from '@services/utils/dom';
|
||||
import { CoreCoursesHelper, CoreCourseWithImageAndColor } from '@features/courses/services/courses-helper';
|
||||
import { CoreColors } from '@singletons/colors';
|
||||
|
|
|
@ -15,12 +15,11 @@
|
|||
import { APP_INITIALIZER, NgModule, Type } from '@angular/core';
|
||||
import { Routes } from '@angular/router';
|
||||
import { CoreContentLinksDelegate } from '@features/contentlinks/services/contentlinks-delegate';
|
||||
import { COURSE_PAGE_NAME } from '@features/course/course.module';
|
||||
import { CoreCourseIndexRoutingModule } from '@features/course/course-routing.module';
|
||||
import { CoreCourseOptionsDelegate } from '@features/course/services/course-options-delegate';
|
||||
import { CoreMainMenuTabRoutingModule } from '@features/mainmenu/mainmenu-tab-routing.module';
|
||||
import { CoreUserDelegate } from '@features/user/services/user-delegate';
|
||||
import { PARTICIPANTS_PAGE_NAME } from '@features/user/user.module';
|
||||
import { PARTICIPANTS_PAGE_NAME } from '@features/user/constants';
|
||||
import { GRADES_PAGE_NAME, GRADES_PARTICIPANTS_PAGE_NAME } from './services/grades-helper';
|
||||
import { CoreGradesCourseOptionHandler } from './services/handlers/course-option';
|
||||
import { CoreGradesOverviewLinkHandler } from './services/handlers/overview-link';
|
||||
|
@ -29,8 +28,8 @@ import { CoreGradesReportLinkHandler } from './services/handlers/report-link';
|
|||
import { CoreGradesUserLinkHandler } from './services/handlers/user-link';
|
||||
import { CoreGradesCourseParticipantsOptionHandler } from '@features/grades/services/handlers/course-participants-option';
|
||||
import { conditionalRoutes } from '@/app/app-routing.module';
|
||||
import { COURSE_INDEX_PATH } from '@features/course/course-lazy.module';
|
||||
import { CoreScreen } from '@services/screen';
|
||||
import { COURSE_PAGE_NAME, COURSE_INDEX_PATH } from '@features/course/constants';
|
||||
|
||||
/**
|
||||
* Get grades services.
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
// limitations under the License.
|
||||
|
||||
import { Injectable } from '@angular/core';
|
||||
import { COURSE_PAGE_NAME } from '@features/course/course.module';
|
||||
import { COURSE_PAGE_NAME } from '@features/course/constants';
|
||||
|
||||
import { CoreGrades } from '@features/grades/services/grades';
|
||||
import { CoreUserProfile } from '@features/user/services/user';
|
||||
|
@ -23,7 +23,7 @@ import {
|
|||
CoreUserProfileHandler,
|
||||
CoreUserProfileHandlerData,
|
||||
} from '@features/user/services/user-delegate';
|
||||
import { PARTICIPANTS_PAGE_NAME } from '@features/user/user.module';
|
||||
import { PARTICIPANTS_PAGE_NAME } from '@features/user/constants';
|
||||
import { CoreNavigator } from '@services/navigator';
|
||||
import { CoreSites } from '@services/sites';
|
||||
import { CoreUtils } from '@services/utils/utils';
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
import { CoreConstants } from '@/core/constants';
|
||||
import { Params } from '@angular/router';
|
||||
import { CoreRoutedItemsManagerSource } from '@classes/items-management/routed-items-manager-source';
|
||||
import { SHAREDFILES_PAGE_NAME } from '@features/sharedfiles/sharedfiles.module';
|
||||
import { SHAREDFILES_PAGE_NAME } from '@features/sharedfiles/constants';
|
||||
import { CorePlatform } from '@services/platform';
|
||||
|
||||
/**
|
||||
|
|
|
@ -20,7 +20,7 @@ import { CoreSharedModule } from '@/core/shared.module';
|
|||
import { CoreScreen } from '@services/screen';
|
||||
|
||||
import { CoreSettingsIndexPage } from './pages/index';
|
||||
import { SHAREDFILES_PAGE_NAME } from '@features/sharedfiles/sharedfiles.module';
|
||||
import { SHAREDFILES_PAGE_NAME } from '@features/sharedfiles/constants';
|
||||
import { CoreSettingsSynchronizationPage } from '@features/settings/pages/synchronization/synchronization';
|
||||
import { CoreSettingsGeneralPage } from '@features/settings/pages/general/general';
|
||||
import { CoreSettingsSpaceUsagePage } from '@features/settings/pages/space-usage/space-usage';
|
||||
|
|
|
@ -0,0 +1,15 @@
|
|||
// (C) Copyright 2015 Moodle Pty Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// 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.
|
||||
|
||||
export const SHAREDFILES_PAGE_NAME = 'sharedfiles';
|
|
@ -14,7 +14,7 @@
|
|||
|
||||
import { Injectable } from '@angular/core';
|
||||
import { CoreSettingsHandler, CoreSettingsHandlerData } from '@features/settings/services/settings-delegate';
|
||||
import { SHAREDFILES_PAGE_NAME } from '@features/sharedfiles/sharedfiles.module';
|
||||
import { SHAREDFILES_PAGE_NAME } from '@features/sharedfiles/constants';
|
||||
import { CorePlatform } from '@services/platform';
|
||||
import { makeSingleton } from '@singletons';
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@ import { CoreEvents } from '@singletons/events';
|
|||
import { CoreLogger } from '@singletons/logger';
|
||||
import { CoreSharedFilesListModalComponent } from '../components/list-modal/list-modal';
|
||||
import { CoreSharedFiles } from './sharedfiles';
|
||||
import { SHAREDFILES_PAGE_NAME } from '../sharedfiles.module';
|
||||
import { SHAREDFILES_PAGE_NAME } from '../constants';
|
||||
import { CoreSharedFilesChooseSitePage } from '../pages/choose-site/choose-site';
|
||||
import { CoreError } from '@classes/errors/error';
|
||||
import { CorePlatform } from '@services/platform';
|
||||
|
|
|
@ -25,6 +25,7 @@ import { CoreSharedFilesSettingsHandler } from './services/handlers/settings';
|
|||
import { CoreSharedFilesUploadHandler } from './services/handlers/upload';
|
||||
import { CoreSharedFiles } from './services/sharedfiles';
|
||||
import { CoreSharedFilesHelper } from './services/sharedfiles-helper';
|
||||
import { SHAREDFILES_PAGE_NAME } from './constants';
|
||||
|
||||
/**
|
||||
* Get shared files services.
|
||||
|
@ -41,8 +42,6 @@ export async function getSharedFilesServices(): Promise<Type<unknown>[]> {
|
|||
];
|
||||
}
|
||||
|
||||
export const SHAREDFILES_PAGE_NAME = 'sharedfiles';
|
||||
|
||||
const routes: Routes = [
|
||||
{
|
||||
path: SHAREDFILES_PAGE_NAME,
|
||||
|
|
|
@ -0,0 +1,15 @@
|
|||
// (C) Copyright 2015 Moodle Pty Ltd.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// 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.
|
||||
|
||||
export const PARTICIPANTS_PAGE_NAME = 'participants';
|
|
@ -20,7 +20,7 @@ import {
|
|||
CoreCourseOptionsHandlerData,
|
||||
} from '@features/course/services/course-options-delegate';
|
||||
import { CoreCourseAnyCourseData, CoreCourseUserAdminOrNavOptionIndexed } from '@features/courses/services/courses';
|
||||
import { PARTICIPANTS_PAGE_NAME } from '@features/user/user.module';
|
||||
import { PARTICIPANTS_PAGE_NAME } from '@features/user/constants';
|
||||
import { makeSingleton } from '@singletons';
|
||||
import { CoreUser } from '../user';
|
||||
|
||||
|
|
|
@ -33,9 +33,9 @@ import { CoreUserCourseOptionHandler } from './services/handlers/course-option';
|
|||
import { CoreUserHelper } from './services/user-helper';
|
||||
import { AppRoutingModule, conditionalRoutes } from '@/app/app-routing.module';
|
||||
import { CoreScreen } from '@services/screen';
|
||||
import { COURSE_PAGE_NAME } from '@features/course/course.module';
|
||||
import { COURSE_INDEX_PATH } from '@features/course/course-lazy.module';
|
||||
import { CoreEvents } from '@singletons/events';
|
||||
import { COURSE_PAGE_NAME, COURSE_INDEX_PATH } from '@features/course/constants';
|
||||
import { PARTICIPANTS_PAGE_NAME } from './constants';
|
||||
|
||||
/**
|
||||
* Get user services.
|
||||
|
@ -60,8 +60,6 @@ export async function getUsersServices(): Promise<Type<unknown>[]> {
|
|||
];
|
||||
}
|
||||
|
||||
export const PARTICIPANTS_PAGE_NAME = 'participants';
|
||||
|
||||
const appRoutes: Routes = [
|
||||
{
|
||||
path: 'user',
|
||||
|
|
Loading…
Reference in New Issue