Skip to content

Commit ffe4f98

Browse files
committed
Adding missing shared plugin.
1 parent 56d7d87 commit ffe4f98

25 files changed

+427
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<p>{{'Test' | translate}}</p>
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
import {Component, OnInit} from '@angular/core';
2+
import {TranslateService} from '@ngx-translate/core';
3+
// import {LocaleService} from 'app/services';
4+
5+
@Component({
6+
selector: 'app-example-pn-page',
7+
templateUrl: './example-pn-page.component.html'
8+
})
9+
export class ExamplePnPageComponent implements OnInit {
10+
11+
constructor(private translateService: TranslateService,
12+
// private localeService: LocaleService
13+
) {
14+
15+
}
16+
17+
ngOnInit() {
18+
// this.setTranslation();
19+
}
20+
21+
// setTranslation() {
22+
// const lang = this.localeService.getCurrentUserLocale();
23+
// const i18n = require(`../../i18n/${lang}.json`);
24+
// this.translateService.setTranslation(lang, i18n, true);
25+
// }
26+
27+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from './example-pn-page/example-pn-page.component';
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import { NgModule } from '@angular/core';
2+
import { CommonModule } from '@angular/common';
3+
import {TranslateModule} from '@ngx-translate/core';
4+
// import {ExamplePnMainService} from './services';
5+
import {ExamplePnPageComponent} from './components';
6+
import {ExamplePnRoutingModule} from './example-pn.routing.module';
7+
8+
@NgModule({
9+
imports: [
10+
CommonModule,
11+
ExamplePnRoutingModule,
12+
TranslateModule
13+
],
14+
declarations: [ExamplePnPageComponent],
15+
providers: []
16+
})
17+
export class ExamplePnModule { }
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import {NgModule} from '@angular/core';
2+
import {RouterModule, Routes} from '@angular/router';
3+
4+
import {AuthGuard} from 'src/app/common/guards';
5+
import {ExamplePnPageComponent} from './components';
6+
7+
export const routes: Routes = [
8+
{
9+
path: '',
10+
// canActivate: [AuthGuard],
11+
component: ExamplePnPageComponent
12+
}
13+
];
14+
15+
@NgModule({
16+
imports: [RouterModule.forChild(routes)],
17+
exports: [RouterModule]
18+
})
19+
export class ExamplePnRoutingModule {
20+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"Test": "TestDA"
3+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"Test": "TestUS"
3+
}
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
// import {Injectable} from '@angular/core';
2+
// import {Headers, Http} from '@angular/http';
3+
// import 'rxjs/add/operator/map';
4+
// import {Observable} from 'rxjs/Observable';
5+
// import {BaseService} from 'app/services/base.service';
6+
// import {Router} from '@angular/router';
7+
//
8+
// import {OperationDataResult, OperationResult} from 'app/modules/helpers/operation.models';
9+
// import {UserInfoModel} from 'app/models';
10+
//
11+
// export let AdminMethods = {
12+
// GetCurrentUser: '/api/account/user-info',
13+
// GetUser: '/api/admin/user',
14+
// GetAllUsers: '/api/admin/get-users',
15+
// DeleteUser: '/api/admin/delete-user',
16+
// CreateUser: '/api/admin/create-user',
17+
// UpdateUser: '/api/admin/update-user',
18+
// EnableTwoFactorAuth: 'api/admin/enable-two-factor',
19+
// DisableTwoFactorAuth: 'api/admin/disable-two-factor'
20+
// };
21+
//
22+
// @Injectable()
23+
// export class ExamplePnMainService extends BaseService {
24+
// private headers: Headers;
25+
//
26+
// constructor(private _http: Http, router: Router) {
27+
// super(_http, router);
28+
// this.headers = new Headers();
29+
// this.headers.append('Content-Type', 'application/json');
30+
// this.headers.append('Accept', 'application/json');
31+
// }
32+
//
33+
// getCurrentUserInfo(): Observable<UserInfoModel> {
34+
// return this.get(AdminMethods.GetCurrentUser);
35+
// }
36+
// }
37+
//
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
export * from './pagination-pn/pagination-pn.component';
2+
export * from './spinner-pn/spinner-pn.component';
3+
export * from './subheader-pn/subheader-pn.component';
4+
export * from './text-editor-pn/pell-pn.component';

0 commit comments

Comments
 (0)