show-text.ts 1.75 KB
Newer Older
Konstantin Schulz's avatar
Konstantin Schulz committed
1
import {Component} from '@angular/core';
2
import {IonicPage, NavController, NavParams, ToastController} from 'ionic-angular';
Konstantin Schulz's avatar
Konstantin Schulz committed
3
import {CorpusProvider} from "../../providers/corpus/corpus";
4
import {
5
    ExerciseType, ExerciseTypeTranslation,
6
    Phenomenon,
7
    PhenomenonTranslation
8
} from "../../models/enum";
9
import {ExerciseProvider} from "../../providers/exercise/exercise";
10
import {TranslateService} from "@ngx-translate/core";
11
import {HelperProvider} from "../../providers/helper/helper";
12
import {VocabularyProvider} from "../../providers/vocabulary/vocabulary";
13
import {ExerciseParametersPage} from "../exercise-parameters/exercise-parameters";
Konstantin Schulz's avatar
Konstantin Schulz committed
14
15
16
17
18
19
20
21
22
23
24
25
26
27

/**
 * Generated class for the ShowTextPage page.
 *
 * See https://ionicframework.com/docs/components/#navigation for more info on
 * Ionic pages and navigation.
 */

@IonicPage()
@Component({
    selector: 'page-show-text',
    templateUrl: 'show-text.html',
})
export class ShowTextPage {
28
    HelperProvider = HelperProvider;
29
    public ExerciseType = ExerciseType;
30
    public ExerciseTypeTranslation = ExerciseTypeTranslation;
31
    public Phenomenon = Phenomenon;
32
    public PhenomenonTranslation = PhenomenonTranslation;
33
34
    public textTooLongString: string;
    public ObjectKeys = Object.keys;
35
    public emptyQueryValueString: string;
36
    highlightOOV: boolean = false;
Konstantin Schulz's avatar
Konstantin Schulz committed
37
38

    constructor(public navCtrl: NavController, public navParams: NavParams,
39
                public corpusProvider: CorpusProvider,
40
41
                public exerciseProvider: ExerciseProvider,
                public toastCtrl: ToastController,
42
43
                public translateService: TranslateService,
                public vocProvider: VocabularyProvider) {
44
    }
45
46
47
48

    goToExerciseParametersPage() {
        this.navCtrl.push(ExerciseParametersPage).then();
    }
Konstantin Schulz's avatar
Konstantin Schulz committed
49
}