Commit ac3368d1 by Aino Leppänen

actual merge conflict resolving

1 parent a2cf0b68
...@@ -6,6 +6,6 @@ export class MoyaAngularPage { ...@@ -6,6 +6,6 @@ export class MoyaAngularPage {
} }
getParagraphText() { getParagraphText() {
return element(by.css('app-root h1')).getText(); return element(by.css('moya-root h1')).getText();
} }
} }
...@@ -23,7 +23,7 @@ var AppComponent = (function () { ...@@ -23,7 +23,7 @@ var AppComponent = (function () {
} }
AppComponent = __decorate([ AppComponent = __decorate([
core_1.Component({ core_1.Component({
selector: 'app-root', selector: 'moya-root',
templateUrl: './app.component.html', templateUrl: './app.component.html',
styleUrls: ['./app.component.css'] styleUrls: ['./app.component.css']
}) })
......
import {BrowserModule} from '@angular/platform-browser'; import {BrowserModule} from '@angular/platform-browser';
import {Injector, NgModule, ReflectiveInjector} from '@angular/core'; import {Injector, NgModule, ReflectiveInjector} from '@angular/core';
import {FormsModule} from '@angular/forms'; import {FormsModule} from '@angular/forms';
import {AppComponent} from './app.component'; import {AppComponent} from './app.component';
import {ViplistComponent} from './viplist/viplist.component'; import {ViplistComponent} from './viplist/viplist.component';
import {AlertModule} from 'ngx-bootstrap'; import {AlertModule} from 'ngx-bootstrap';
import { Router, RouterModule, PreloadAllModules} from '@angular/router'; import { Router, RouterModule, PreloadAllModules} from '@angular/router';
import {OldMoyaComponent} from './pages/old-moya/old-moya.component'; import {OldMoyaComponent} from './pages/old-moya/old-moya.component';
import {TestComponent} from './test/test.component'; import {TestComponent} from './test/test.component';
...@@ -23,7 +20,6 @@ import {CacheService} from "./shared/services/cache.service"; ...@@ -23,7 +20,6 @@ import {CacheService} from "./shared/services/cache.service";
import {MoyaRestModule} from "./moya-rest"; import {MoyaRestModule} from "./moya-rest";
import {SafePipe} from "./shared/pipes/safe.pipe"; import {SafePipe} from "./shared/pipes/safe.pipe";
import { AppRoutingModule } from './app-routing.module'; import { AppRoutingModule } from './app-routing.module';
<<<<<<< HEAD
import { LoginComponent } from './pages/login/login.component'; import { LoginComponent } from './pages/login/login.component';
@NgModule({ @NgModule({
...@@ -33,30 +29,6 @@ import { LoginComponent } from './pages/login/login.component'; ...@@ -33,30 +29,6 @@ import { LoginComponent } from './pages/login/login.component';
AppComponent AppComponent
], ],
imports: [ imports: [
=======
@NgModule({
declarations: [
AppComponent,
RouterModule,
ViplistComponent,
OldMoyaComponent,
TestComponent,
TopMenuComponent,
LeftMenuComponent,
AdminMenuComponent,
InfoMenuComponent,
UserMenuComponent,
UserComponent,
InfoComponent,
AdminComponent,
SafePipe
],
imports: [
AppRoutingModule,
CommonModule,
>>>>>>> 8fb70c94667661bbfde5bc55313041c12be2b885
BrowserModule, BrowserModule,
AppRoutingModule, AppRoutingModule,
CommonModule, CommonModule,
......
...@@ -3,7 +3,7 @@ import {MenuGroup} from '../models/menu-group.model'; ...@@ -3,7 +3,7 @@ import {MenuGroup} from '../models/menu-group.model';
import {MENU} from '../defines/menu'; import {MENU} from '../defines/menu';
@Component({ @Component({
selector: 'app-admin-menu', selector: 'moya-admin-menu',
templateUrl: './admin-menu.component.html', templateUrl: './admin-menu.component.html',
styleUrls: ['./admin-menu.component.scss'] styleUrls: ['./admin-menu.component.scss']
}) })
......
...@@ -3,7 +3,7 @@ import {MenuGroup} from '../models/menu-group.model'; ...@@ -3,7 +3,7 @@ import {MenuGroup} from '../models/menu-group.model';
import {MENU} from '../defines/menu'; import {MENU} from '../defines/menu';
@Component({ @Component({
selector: 'app-info-menu', selector: 'moya-info-menu',
templateUrl: './info-menu.component.html', templateUrl: './info-menu.component.html',
styleUrls: ['./info-menu.component.scss'] styleUrls: ['./info-menu.component.scss']
}) })
......
...@@ -3,7 +3,7 @@ import {MenuGroup} from '../models/menu-group.model'; ...@@ -3,7 +3,7 @@ import {MenuGroup} from '../models/menu-group.model';
import {MENU} from '../defines/menu'; import {MENU} from '../defines/menu';
@Component({ @Component({
selector: 'app-user-menu', selector: 'moya-user-menu',
templateUrl: './user-menu.component.html', templateUrl: './user-menu.component.html',
styleUrls: ['./user-menu.component.scss'] styleUrls: ['./user-menu.component.scss']
}) })
......
...@@ -11,3 +11,4 @@ const routes: Routes = [ ...@@ -11,3 +11,4 @@ const routes: Routes = [
exports: [RouterModule] exports: [RouterModule]
}) })
export class AdminRoutingModule { } export class AdminRoutingModule { }
import { Component, OnInit } from '@angular/core'; import { Component, OnInit } from '@angular/core';
@Component({ @Component({
selector: 'app-admin', selector: 'moya-admin',
templateUrl: './admin.component.html', templateUrl: './admin.component.html',
styleUrls: ['./admin.component.scss'] styleUrls: ['./admin.component.scss']
}) })
......
import { NgModule } from '@angular/core'; import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common'; import { CommonModule } from '@angular/common';
<<<<<<< HEAD
import { AdminRoutingModule } from './admin-routing.module'; import { AdminRoutingModule } from './admin-routing.module';
import { AdminComponent } from './admin.component'; import { AdminComponent } from './admin.component';
=======
import { AdminRoutingModule } from './admin-routing.module';
>>>>>>> 8fb70c94667661bbfde5bc55313041c12be2b885
@NgModule({ @NgModule({
imports: [ imports: [
CommonModule, CommonModule,
AdminRoutingModule AdminRoutingModule
], ],
<<<<<<< HEAD
declarations: [AdminComponent] declarations: [AdminComponent]
=======
declarations: []
>>>>>>> 8fb70c94667661bbfde5bc55313041c12be2b885
}) })
export class AdminModule { } export class AdminModule { }
import { Component, OnInit } from '@angular/core'; import { Component, OnInit } from '@angular/core';
@Component({ @Component({
selector: 'app-info', selector: 'moya-info',
templateUrl: './info.component.html', templateUrl: './info.component.html',
styleUrls: ['./info.component.scss'] styleUrls: ['./info.component.scss']
}) })
......
import { NgModule } from '@angular/core'; import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common'; import { CommonModule } from '@angular/common';
<<<<<<< HEAD
import { InfoRoutingModule } from './info-routing.module'; import { InfoRoutingModule } from './info-routing.module';
import { InfoComponent } from './info.component'; import { InfoComponent } from './info.component';
=======
import { InfoRoutingModule } from './info-routing.module';
>>>>>>> 8fb70c94667661bbfde5bc55313041c12be2b885
@NgModule({ @NgModule({
imports: [ imports: [
CommonModule, CommonModule,
InfoRoutingModule InfoRoutingModule
], ],
<<<<<<< HEAD
declarations: [InfoComponent] declarations: [InfoComponent]
=======
declarations: []
>>>>>>> 8fb70c94667661bbfde5bc55313041c12be2b885
}) })
export class InfoModule { } export class InfoModule { }
<<<<<<< HEAD
<div id="top-container"> <div id="top-container">
<div id="left-menu"> <div id="left-menu">
<!-- <router-outlet name="left-menu"></router-outlet> --> <!-- <router-outlet name="left-menu"></router-outlet> -->
...@@ -14,8 +13,3 @@ ...@@ -14,8 +13,3 @@
</div> </div>
</div> </div>
</div> </div>
=======
<p>
login works!
</p>
>>>>>>> 8fb70c94667661bbfde5bc55313041c12be2b885
...@@ -24,7 +24,7 @@ var OldMoyaComponent = (function () { ...@@ -24,7 +24,7 @@ var OldMoyaComponent = (function () {
], OldMoyaComponent.prototype, "frametus", void 0); ], OldMoyaComponent.prototype, "frametus", void 0);
OldMoyaComponent = __decorate([ OldMoyaComponent = __decorate([
core_1.Component({ core_1.Component({
selector: 'app-old-moya', selector: 'moya-old-moya',
providers: [common_1.Location, { provide: common_1.LocationStrategy, useClass: common_1.PathLocationStrategy }], providers: [common_1.Location, { provide: common_1.LocationStrategy, useClass: common_1.PathLocationStrategy }],
templateUrl: './old-moya.component.html', templateUrl: './old-moya.component.html',
styleUrls: ['./old-moya.component.css'] styleUrls: ['./old-moya.component.css']
......
...@@ -3,7 +3,7 @@ import { Routes, RouterModule } from '@angular/router'; ...@@ -3,7 +3,7 @@ import { Routes, RouterModule } from '@angular/router';
import { UserComponent } from './user.component'; import { UserComponent } from './user.component';
const routes: Routes = [ const routes: Routes = [
{ path: 'info', component: UserComponent } { path: 'user', component: UserComponent }
]; ];
@NgModule({ @NgModule({
......
import { Component, OnInit } from '@angular/core'; import { Component, OnInit } from '@angular/core';
@Component({ @Component({
selector: 'app-user', selector: 'moya-user',
templateUrl: './user.component.html', templateUrl: './user.component.html',
styleUrls: ['./user.component.scss'] styleUrls: ['./user.component.scss']
}) })
......
...@@ -20,7 +20,7 @@ var TestComponent = (function () { ...@@ -20,7 +20,7 @@ var TestComponent = (function () {
], TestComponent.prototype, "counter", void 0); ], TestComponent.prototype, "counter", void 0);
TestComponent = __decorate([ TestComponent = __decorate([
core_1.Component({ core_1.Component({
selector: 'app-test', selector: 'moya-test',
templateUrl: './test.component.html', templateUrl: './test.component.html',
styleUrls: ['./test.component.css'] styleUrls: ['./test.component.css']
}) })
......
import {Component, OnInit, Input} from '@angular/core'; import {Component, OnInit, Input} from '@angular/core';
@Component({ @Component({
selector: 'app-test', selector: 'moya-test',
templateUrl: './test.component.html', templateUrl: './test.component.html',
styleUrls: ['./test.component.scss'] styleUrls: ['./test.component.scss']
}) })
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!