Commit 417d461f authored by Konstantin Schulz's avatar Konstantin Schulz
Browse files

reintroduced the feedback page which was accidentally omitted during the upgrade to Angular 7

parent 358a4342
{
"name": "mc_frontend",
"version": "0.6.9",
"version": "0.7.1",
"author": "Ionic Framework",
"homepage": "https://ionicframework.com/",
"scripts": {
......
......@@ -3,7 +3,13 @@
"pathRewrite": {
"^/mc-service": ""
},
"target": "http://localhost:5000/",
"secure": false
"target": {
"host": "localhost",
"port": 5000,
"protocol": "http"
},
"secure": false,
"changeOrigin": true,
"logLevel": "info"
}
}
......@@ -13,6 +13,7 @@ const routes: Routes = [
{ path: 'preview', loadChildren: './preview/preview.module#PreviewPageModule' },
{ path: 'kwic', loadChildren: './kwic/kwic.module#KwicPageModule' },
{ path: 'ranking', loadChildren: './ranking/ranking.module#RankingPageModule' },
{ path: 'feedback', loadChildren: './feedback/feedback.module#FeedbackPageModule' },
];
@NgModule({
......
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { Routes, RouterModule } from '@angular/router';
import {NgModule} from '@angular/core';
import {CommonModule} from '@angular/common';
import {FormsModule} from '@angular/forms';
import {Routes, RouterModule} from '@angular/router';
import { IonicModule } from '@ionic/angular';
import {IonicModule} from '@ionic/angular';
import { ExerciseParametersPage } from './exercise-parameters.page';
import {ExerciseParametersPage} from './exercise-parameters.page';
import {TranslateModule} from '@ngx-translate/core';
const routes: Routes = [
{
path: '',
component: ExerciseParametersPage
}
{
path: '',
component: ExerciseParametersPage
}
];
@NgModule({
imports: [
CommonModule,
FormsModule,
IonicModule,
RouterModule.forChild(routes),
TranslateModule.forChild()
],
declarations: [ExerciseParametersPage]
imports: [
CommonModule,
FormsModule,
IonicModule,
RouterModule.forChild(routes),
TranslateModule.forChild()
],
declarations: [ExerciseParametersPage]
})
export class ExerciseParametersPageModule {}
export class ExerciseParametersPageModule {
}
import {NgModule} from '@angular/core';
import {CommonModule} from '@angular/common';
import {FormsModule} from '@angular/forms';
import {Routes, RouterModule} from '@angular/router';
import {IonicModule} from '@ionic/angular';
import {FeedbackPage} from './feedback.page';
import {TranslateModule} from "@ngx-translate/core";
const routes: Routes = [
{
path: '',
component: FeedbackPage
}
];
@NgModule({
imports: [
CommonModule,
FormsModule,
IonicModule,
RouterModule.forChild(routes),
TranslateModule.forChild(),
],
declarations: [FeedbackPage]
})
export class FeedbackPageModule {
}
<ion-header>
<ion-toolbar>
<div class="toolbar-left">
<ion-title>{{ 'MACHINA_CALLIDA' | translate }}</ion-title>
</div>
<div class="toolbar-right">
<ion-spinner *ngIf="HelperService.isLoading"></ion-spinner>
<button (click)="HelperService.goToHomePage(navCtrl)">
<ion-icon name="home"></ion-icon>
</button>
</div>
</ion-toolbar>
</ion-header>
<ion-content padding>
<ion-grid>
<ion-row>
<ion-col>
<h1>{{ 'HELP' | translate }}</h1>
</ion-col>
</ion-row>
<ion-row>
<ion-col>
<a (click)="openUrl(HelperService.config['callidusProjectUrl'])">
{{ 'CALLIDUS_PROJECT' | translate }}
</a>
</ion-col>
</ion-row>
<ion-row>
<ion-col>
<a (click)="openUrl(HelperService.config['machinaCallidaFrontendUrl'])">
{{ 'MACHINA_CALLIDA_FRONTEND' | translate }}
</a>
</ion-col>
</ion-row>
<ion-row>
<ion-col>
<a (click)="openUrl(HelperService.config['machinaCallidaBackendUrl'])">
{{ 'MACHINA_CALLIDA_BACKEND' | translate }}
</a>
</ion-col>
</ion-row>
<ion-row>
<ion-col>
<h1>{{ 'FEEDBACK' | translate }}</h1>
</ion-col>
</ion-row>
<ion-row>
<ion-col>
<a href="{{HelperService.config['developerMailTo']}}">{{ 'EMAIL' | translate }}</a>
</ion-col>
</ion-row>
<ion-row>
<ion-col>
<h1>{{ 'SOFTWARE_DEPENDENCIES' | translate }}</h1>
</ion-col>
</ion-row>
<ion-row>
<ion-col>
<a (click)="openUrl(HelperService.config['agldtTreebankUrl'])">
{{ 'VOCABULARY_REFERENCE_CORPUS_AGLDT' | translate }}
</a>
</ion-col>
</ion-row>
<ion-row>
<ion-col>
<a (click)="openUrl(HelperService.config['bambergCoreVocabularyUrl'])">
{{ 'VOCABULARY_REFERENCE_CORPUS_BWS' | translate }}
</a>
</ion-col>
</ion-row>
<ion-row>
<ion-col>
<a (click)="openUrl(HelperService.config['proielProjectUrl'])">
{{ 'PROIEL_PROJECT' | translate }}
</a>
</ion-col>
</ion-row>
</ion-grid>
</ion-content>
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { FeedbackPage } from './feedback.page';
describe('FeedbackPage', () => {
let component: FeedbackPage;
let fixture: ComponentFixture<FeedbackPage>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ FeedbackPage ],
schemas: [CUSTOM_ELEMENTS_SCHEMA],
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(FeedbackPage);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
import {Component} from '@angular/core';
import {NavController, NavParams} from "@ionic/angular";
import {HelperService} from '../helper.service';
@Component({
selector: 'app-feedback',
templateUrl: './feedback.page.html',
styleUrls: ['./feedback.page.scss'],
})
export class FeedbackPage {
HelperService = HelperService;
constructor(public navCtrl: NavController) {
}
openUrl(url: string) {
window.open(url, '_system', 'location=yes');
}
}
.lastMainElement {
height: 50%;
}
// celebration (balloons) background for the front page
//ion-content {
// --background: url('https://banner2.kisspng.com/20180309/qye/kisspng-toy-balloon-logo-round-balloon-5aa24037188f43.2515953015205827111007.jpg') no-repeat 50% 40%/500px 30%;
//}
......@@ -12,7 +12,7 @@ import {CorpusService} from 'src/app/corpus.service';
styleUrls: ['home.page.scss'],
})
export class HomePage {
public isProductionEnv = ['localhost', '127.0.0.1'].indexOf(window.location.hostname) > -1 ? '' : 'hide';
public isProductionEnv = ['localhost'].indexOf(window.location.hostname) > -1 ? '' : 'hide';
HelperService = HelperService;
public corpusUpdateCompletedString: string;
public isCorpusUpdateInProgress = false;
......
interface Account {
name: string;
homePage: string;
}
export default Account;
import Definition from './Definition';
interface Activity {
objectType: 'Activity';
id: string;
definition?: Definition;
}
export default Activity;
import Agent from './Agent';
import Group from './Group';
type Actor = (Agent|Group);
export default Actor;
import Account from './Account';
interface Agent {
objectType: 'Agent';
mbox?: string;
openid?: string;
mbox_sha1sum?: string;
account?: Account;
}
export default Agent;
import LanguageMap from './LanguageMap';
interface Attachment {
sha2: string;
fileUrl: string;
contentType: string;
usageType: string;
display: LanguageMap;
length: number;
description?: LanguageMap;
}
export default Attachment;
interface AttachmentModel {
stream: ReadableStream; // NodeJS.ReadableStream
hash: string;
contentLength?: number;
contentType: string;
}
export default AttachmentModel;
import Actor from './Actor';
interface ClientModel {
_id: string;
title: string;
organisation: string;
lrs_id: string;
authority: Actor;
isTrusted: boolean;
scopes: string[];
}
export default ClientModel;
import ContextActivities from './ContextActivities';
import Extensions from './Extensions';
import Group from './Group';
import Agent from './Agent';
interface Context {
contextActivities?: ContextActivities;
team?: Group;
instructor?: Agent;
registration?: string;
extensions?: Extensions;
}
export default Context;
import Activity from './Activity';
interface ContextActivities {
parent?: Activity[];
grouping?: Activity[];
category?: Activity[];
other?: Activity[];
}
export default ContextActivities;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment