2020-10-06 10:47:16 +00:00
|
|
|
// (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.
|
|
|
|
|
2020-10-21 15:56:01 +00:00
|
|
|
/* eslint-disable @typescript-eslint/naming-convention */
|
|
|
|
|
|
|
|
import { CoreSitesDemoSiteData } from '@/app/services/sites';
|
2020-10-06 10:47:16 +00:00
|
|
|
|
|
|
|
declare global {
|
|
|
|
|
|
|
|
interface Window {
|
|
|
|
__Zone_disable_customElements: boolean;
|
|
|
|
}
|
|
|
|
|
2020-10-21 15:56:01 +00:00
|
|
|
type MoodleAppWindow = {
|
|
|
|
MoodleApp: {
|
|
|
|
CONFIG: {
|
|
|
|
app_id: string;
|
|
|
|
appname: string;
|
|
|
|
desktopappname: string;
|
|
|
|
versioncode: number;
|
|
|
|
versionname: string;
|
|
|
|
cache_update_frequency_usually: number;
|
|
|
|
cache_update_frequency_often: number;
|
|
|
|
cache_update_frequency_sometimes: number;
|
|
|
|
cache_update_frequency_rarely: number;
|
|
|
|
default_lang: string;
|
|
|
|
languages: Record<string, string>;
|
|
|
|
wsservice: string;
|
|
|
|
wsextservice: string;
|
2020-10-22 10:31:31 +00:00
|
|
|
demo_sites: Record<string, CoreSitesDemoSiteData>;
|
2020-10-21 15:56:01 +00:00
|
|
|
font_sizes: number[];
|
|
|
|
customurlscheme: string;
|
|
|
|
siteurl: string;
|
|
|
|
sitename: string;
|
|
|
|
multisitesdisplay: string;
|
|
|
|
sitefindersettings: Record<string, unknown>;
|
|
|
|
onlyallowlistedsites: boolean;
|
|
|
|
skipssoconfirmation: boolean;
|
|
|
|
forcedefaultlanguage: boolean;
|
|
|
|
privacypolicy: string;
|
|
|
|
notificoncolor: string;
|
|
|
|
statusbarbg: boolean;
|
|
|
|
statusbarlighttext: boolean;
|
|
|
|
statusbarbgios: string;
|
|
|
|
statusbarlighttextios: boolean;
|
|
|
|
statusbarbgandroid: string;
|
|
|
|
statusbarlighttextandroid: boolean;
|
|
|
|
statusbarbgremotetheme: string;
|
|
|
|
statusbarlighttextremotetheme: boolean;
|
|
|
|
enableanalytics: boolean;
|
|
|
|
enableonboarding: boolean;
|
|
|
|
forceColorScheme: string;
|
|
|
|
forceLoginLogo: boolean;
|
|
|
|
ioswebviewscheme: string;
|
|
|
|
appstores: Record<string, string>;
|
2020-10-22 10:31:31 +00:00
|
|
|
displayqroncredentialscreen?: boolean;
|
|
|
|
displayqronsitescreen?: boolean;
|
2020-10-21 15:56:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
BUILD: {
|
|
|
|
isProduction: boolean;
|
2020-10-22 10:34:00 +00:00
|
|
|
isTesting: boolean;
|
|
|
|
isDevelopment: boolean;
|
2020-10-21 15:56:01 +00:00
|
|
|
lastCommitHash: string;
|
|
|
|
compilationTime: number;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2020-10-06 10:47:16 +00:00
|
|
|
}
|
2020-10-08 09:17:07 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Course base definition.
|
|
|
|
*/
|
|
|
|
export type CoreCourseBase = {
|
|
|
|
id: number; // Course Id.
|
|
|
|
};
|