mirror of
https://github.com/xuthus83/pigallery2.git
synced 2025-01-14 14:43:17 +08:00
source style cleanup
This commit is contained in:
parent
0f92ad983b
commit
ef5758f3c7
@ -1,4 +1,3 @@
|
||||
|
||||
import {ConfigLoader} from "./ConfigLoader";
|
||||
import * as path from "path";
|
||||
|
||||
|
@ -1,9 +1,8 @@
|
||||
import * as fs from 'fs';
|
||||
import * as optimist from 'optimist';
|
||||
import * as fs from "fs";
|
||||
import * as optimist from "optimist";
|
||||
|
||||
export class ConfigLoader {
|
||||
|
||||
|
||||
static init(configObject:any, configFilePath?:string) {
|
||||
this.processConfigFile(configFilePath, configObject);
|
||||
this.processArguments(configObject);
|
||||
@ -64,7 +63,6 @@ export class ConfigLoader {
|
||||
}
|
||||
|
||||
|
||||
|
||||
private static saveConfigFile(configFilePath, configObject) {
|
||||
try {
|
||||
fs.writeFileSync(configFilePath, JSON.stringify(configObject, null, 4));
|
||||
|
@ -1,7 +1,6 @@
|
||||
///<reference path="ExtendedRequest.d.ts"/>
|
||||
///<reference path="../../typings/main.d.ts"/>
|
||||
|
||||
|
||||
import {NextFunction, Request, Response} from "express";
|
||||
import {Error, ErrorCodes} from "../../common/entities/Error";
|
||||
import {UserRoles} from "../../common/entities/User";
|
||||
@ -9,7 +8,6 @@ import {ObjectManagerRepository} from "../model/ObjectManagerRepository";
|
||||
|
||||
export class AuthenticationMWs {
|
||||
|
||||
|
||||
public static authenticate(req:Request, res:Response, next:NextFunction) {
|
||||
/* if (typeof req.session.user === 'undefined') {
|
||||
return next(new Error(ErrorCodes.NOT_AUTHENTICATED));
|
||||
@ -57,7 +55,4 @@ export class AuthenticationMWs {
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
1
backend/middlewares/ExtendedRequest.d.ts
vendored
1
backend/middlewares/ExtendedRequest.d.ts
vendored
@ -1,4 +1,3 @@
|
||||
|
||||
declare module Express {
|
||||
export interface Request {
|
||||
resultPipe?:any
|
||||
|
@ -1,9 +1,7 @@
|
||||
|
||||
import * as path from 'path';
|
||||
import * as fs from 'fs';
|
||||
import * as path from "path";
|
||||
import * as fs from "fs";
|
||||
import {NextFunction, Request, Response} from "express";
|
||||
import {Error, ErrorCodes} from "../../common/entities/Error";
|
||||
import {GalleryManager} from "../model/memory/GalleryManager";
|
||||
import {Directory} from "../../common/entities/Directory";
|
||||
import {Config} from "../config/Config";
|
||||
import {ObjectManagerRepository} from "../model/ObjectManagerRepository";
|
||||
@ -49,8 +47,6 @@ export class GalleryMWs {
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
public static search(req:Request, res:Response, next:NextFunction) {
|
||||
//TODO: implement
|
||||
return next(new Error(ErrorCodes.GENERAL_ERROR));
|
||||
@ -71,5 +67,4 @@ export class GalleryMWs {
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
@ -1,4 +1,3 @@
|
||||
|
||||
import {NextFunction, Request, Response} from "express";
|
||||
import {Error, ErrorCodes} from "../../common/entities/Error";
|
||||
import {Utils} from "../../common/Utils";
|
||||
|
@ -1,16 +1,15 @@
|
||||
///<reference path="jimp.d.ts"/>
|
||||
|
||||
|
||||
import * as path from 'path';
|
||||
import * as Jimp from 'jimp';
|
||||
import * as crypto from 'crypto';
|
||||
import * as fs from 'fs';
|
||||
import * as path from "path";
|
||||
import * as Jimp from "jimp";
|
||||
import * as crypto from "crypto";
|
||||
import * as fs from "fs";
|
||||
import {NextFunction, Request, Response} from "express";
|
||||
import {Error, ErrorCodes} from "../../common/entities/Error";
|
||||
import {Config} from "../config/Config";
|
||||
|
||||
|
||||
|
||||
export class ThumbnailGeneratorMWs {
|
||||
|
||||
private static getThumbnailFolder() {
|
||||
|
@ -1,5 +1,3 @@
|
||||
|
||||
import {UserManager} from "../model/memory/UserManager";
|
||||
import {NextFunction, Request, Response} from "express";
|
||||
import {Error, ErrorCodes} from "../../common/entities/Error";
|
||||
import {ObjectManagerRepository} from "../model/ObjectManagerRepository";
|
||||
@ -87,6 +85,4 @@ export class UserMWs {
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
@ -1,5 +1,3 @@
|
||||
|
||||
import {UserManager} from "../model/memory/UserManager";
|
||||
import {NextFunction, Request, Response} from "express";
|
||||
import {Error, ErrorCodes} from "../../common/entities/Error";
|
||||
import {UserRoles} from "../../common/entities/User";
|
||||
@ -7,7 +5,6 @@ import {ObjectManagerRepository} from "../model/ObjectManagerRepository";
|
||||
|
||||
export class UserRequestConstrainsMWs {
|
||||
|
||||
|
||||
public static forceSelfRequest(req:Request, res:Response, next:NextFunction) {
|
||||
if ((typeof req.params === 'undefined') || (typeof req.params.id === 'undefined')) {
|
||||
return next();
|
||||
@ -55,5 +52,4 @@ export class UserRequestConstrainsMWs {
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
1
backend/middlewares/jimp.d.ts
vendored
1
backend/middlewares/jimp.d.ts
vendored
@ -1,4 +1,5 @@
|
||||
declare module "jimp" {
|
||||
function read(filaname);
|
||||
|
||||
var AUTO:any;
|
||||
}
|
@ -1,8 +1,7 @@
|
||||
import * as fs from 'fs';
|
||||
import * as path from 'path';
|
||||
import * as mime from 'mime';
|
||||
import * as sizeOf from 'image-size';
|
||||
|
||||
import * as fs from "fs";
|
||||
import * as path from "path";
|
||||
import * as mime from "mime";
|
||||
import * as sizeOf from "image-size";
|
||||
import {Directory} from "../../common/entities/Directory";
|
||||
import {Photo} from "../../common/entities/Photo";
|
||||
|
||||
|
@ -10,5 +10,4 @@ export class GalleryManager implements IGalleryManager{
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
@ -9,5 +9,4 @@ export class SearchManager implements ISearchManager{
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
@ -34,6 +34,7 @@ export class UserManager implements IUserManager{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public changePassword(request:any, cb:(error:any, result:string) => void) {
|
||||
throw new Error("not implemented"); //TODO: implement
|
||||
}
|
||||
|
@ -1,5 +1,4 @@
|
||||
import * as path from 'path';
|
||||
|
||||
import * as path from "path";
|
||||
import {Directory} from "../../../common/entities/Directory";
|
||||
import {IGalleryManager} from "../IGalleryManager";
|
||||
import {DiskManager} from "../DiskManger";
|
||||
@ -16,7 +15,10 @@ export class MongoGalleryManager implements IGalleryManager{
|
||||
let directoryName = path.basename(relativeDirectoryName);
|
||||
let directoryParent = path.join(path.dirname(relativeDirectoryName), "/");
|
||||
|
||||
DirectoryModel.findOne({name:directoryName, path: directoryParent}).populate('photos').populate('directories').exec( (err,res:any) =>{
|
||||
DirectoryModel.findOne({
|
||||
name: directoryName,
|
||||
path: directoryParent
|
||||
}).populate('photos').populate('directories').exec((err, res:any) => {
|
||||
if (err || !res) {
|
||||
return this.indexDirectory(relativeDirectoryName, cb);
|
||||
}
|
||||
@ -52,5 +54,4 @@ export class MongoGalleryManager implements IGalleryManager{
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
@ -5,11 +5,9 @@ import {PhotoModel} from "./entities/PhotoModel";
|
||||
|
||||
export class MongoSearchManager implements ISearchManager {
|
||||
|
||||
|
||||
constructor() {
|
||||
}
|
||||
|
||||
|
||||
autocomplete(text, cb:(error:any, result:Array<AutoCompleteItem>) => void) {
|
||||
|
||||
console.log("autocomplete: " + text);
|
||||
@ -20,7 +18,12 @@ export class MongoSearchManager implements ISearchManager{
|
||||
}
|
||||
items = items.concat(this.encapsulateAutoComplete(res.map(r => r.name), AutoCompeleteTypes.image));
|
||||
|
||||
DirectoryModel.find({name: { $regex: text, $options: "i" } }).limit(10).select('name').exec( (err,res:Array<any>) =>{
|
||||
DirectoryModel.find({
|
||||
name: {
|
||||
$regex: text,
|
||||
$options: "i"
|
||||
}
|
||||
}).limit(10).select('name').exec((err, res:Array<any>) => {
|
||||
if (err || !res) {
|
||||
return cb(err, null);
|
||||
}
|
||||
@ -41,5 +44,4 @@ export class MongoSearchManager implements ISearchManager{
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
@ -4,7 +4,6 @@ import {UserModel} from "./entities/UserModel";
|
||||
|
||||
export class MongoUserManager implements IUserManager {
|
||||
|
||||
|
||||
constructor() {
|
||||
}
|
||||
|
||||
|
@ -27,7 +27,4 @@ export class AdminRouter{
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
@ -59,5 +59,4 @@ export class GalleryRouter{
|
||||
};
|
||||
|
||||
|
||||
|
||||
}
|
@ -1,13 +1,9 @@
|
||||
///<reference path="../../typings/main.d.ts"/>
|
||||
|
||||
|
||||
import * as _express from 'express';
|
||||
import * as _path from 'path';
|
||||
|
||||
|
||||
import {Utils} from "../../common/Utils";
|
||||
|
||||
import * as _express from "express";
|
||||
import {NextFunction, Request, Response} from "express";
|
||||
import * as _path from "path";
|
||||
import {Utils} from "../../common/Utils";
|
||||
|
||||
export class PublicRouter {
|
||||
constructor(private app) {
|
||||
|
@ -27,7 +27,4 @@ export class SharingRouter{
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
@ -5,6 +5,7 @@ export enum AutoCompeleteTypes {
|
||||
}
|
||||
|
||||
export class AutoCompleteItem {
|
||||
constructor(public text:string,public type:AutoCompeleteTypes){}
|
||||
constructor(public text:string, public type:AutoCompeleteTypes) {
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -6,5 +6,6 @@ export class Directory{
|
||||
public path?:string,
|
||||
public lastUpdate?:Date,
|
||||
public directories:Array<Directory> = [],
|
||||
public photos:Array<Photo> = []){}
|
||||
public photos:Array<Photo> = []) {
|
||||
}
|
||||
}
|
@ -1,4 +1,3 @@
|
||||
|
||||
export enum ErrorCodes{
|
||||
NOT_AUTHENTICATED,
|
||||
ALREADY_AUTHENTICATED,
|
||||
@ -15,5 +14,6 @@ export enum ErrorCodes{
|
||||
}
|
||||
|
||||
export class Error {
|
||||
constructor(public code:ErrorCodes, public message?:String) {}
|
||||
constructor(public code:ErrorCodes, public message?:String) {
|
||||
}
|
||||
}
|
@ -3,6 +3,7 @@ import {Error} from "./Error";
|
||||
export class Message<T> {
|
||||
public error:Error = null;
|
||||
public result:T = null;
|
||||
|
||||
constructor(error:Error, result:T) {
|
||||
this.error = error;
|
||||
this.result = result;
|
||||
|
@ -7,6 +7,7 @@ export class Photo {
|
||||
public static getThumbnailPath(directory:Directory, photo:Photo) {
|
||||
return Utils.concatUrls("/api/gallery/content/", directory.path, directory.name, photo.name, "thumbnail");
|
||||
}
|
||||
|
||||
public static getPhotoPath(directory:Directory, photo:Photo) {
|
||||
return Utils.concatUrls("/api/gallery/content/", directory.path, directory.name, photo.name);
|
||||
}
|
||||
|
@ -1,4 +1,3 @@
|
||||
|
||||
export enum UserRoles{
|
||||
Guest = 1,
|
||||
User = 2,
|
||||
@ -8,5 +7,6 @@ export enum UserRoles{
|
||||
}
|
||||
|
||||
export class User {
|
||||
constructor(public id?:number,public name?:string, public password?:string, public role:UserRoles = UserRoles.User){}
|
||||
constructor(public id?:number, public name?:string, public password?:string, public role:UserRoles = UserRoles.User) {
|
||||
}
|
||||
}
|
@ -1,3 +1,4 @@
|
||||
export class UserModificationRequest {
|
||||
constructor(public id:number){}
|
||||
constructor(public id:number) {
|
||||
}
|
||||
}
|
||||
|
@ -9,7 +9,7 @@ import {FORM_DIRECTIVES} from "@angular/common";
|
||||
import {Utils} from "../../../common/Utils";
|
||||
import {AdminService} from "./admin.service";
|
||||
import {Message} from "../../../common/entities/Message";
|
||||
import {StringifyRole} from "./StringifyRolePipe";
|
||||
import {StringifyRole} from "./../pipes/StringifyRolePipe";
|
||||
|
||||
@Component({
|
||||
selector: 'admin',
|
||||
|
@ -1,8 +1,7 @@
|
||||
///<reference path="../../browser.d.ts"/>
|
||||
|
||||
import {Injectable} from '@angular/core';
|
||||
import {Injectable} from "@angular/core";
|
||||
import {NetworkService} from "../model/network/network.service.ts";
|
||||
import {Http} from "@angular/http";
|
||||
import {Message} from "../../../common/entities/Message";
|
||||
import {User} from "../../../common/entities/User";
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
///<reference path="../browser.d.ts"/>
|
||||
|
||||
import { Component,OnInit } from '@angular/core';
|
||||
import {Component, OnInit} from "@angular/core";
|
||||
import {LoginComponent} from "./login/login.component";
|
||||
import {AuthenticationService} from "./model/network/authentication.service.ts";
|
||||
import {GalleryComponent} from "./gallery/gallery.component";
|
||||
|
@ -1,6 +1,6 @@
|
||||
///<reference path="../../browser.d.ts"/>
|
||||
|
||||
import {Component, ViewEncapsulation} from '@angular/core';
|
||||
import {Component, ViewEncapsulation} from "@angular/core";
|
||||
import {RouterLink} from "@angular/router-deprecated";
|
||||
|
||||
@Component({
|
||||
|
@ -1,6 +1,6 @@
|
||||
///<reference path="../../../browser.d.ts"/>
|
||||
|
||||
import {Component, Input} from '@angular/core';
|
||||
import {Component, Input} from "@angular/core";
|
||||
import {Directory} from "../../../../common/entities/Directory";
|
||||
import {RouterLink} from "@angular/router-deprecated";
|
||||
import {Utils} from "../../../../common/Utils";
|
||||
@ -21,6 +21,5 @@ export class GalleryDirectoryComponent{
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
///<reference path="../../browser.d.ts"/>
|
||||
|
||||
import {Component, OnInit} from '@angular/core';
|
||||
import {Component, OnInit} from "@angular/core";
|
||||
import {AuthenticationService} from "../model/network/authentication.service.ts";
|
||||
import {Router, RouteParams} from "@angular/router-deprecated";
|
||||
import {GalleryService} from "./gallery.service";
|
||||
@ -54,7 +54,5 @@ export class GalleryComponent implements OnInit{
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
@ -1,8 +1,7 @@
|
||||
///<reference path="../../browser.d.ts"/>
|
||||
|
||||
import {Injectable} from '@angular/core';
|
||||
import {Injectable} from "@angular/core";
|
||||
import {NetworkService} from "../model/network/network.service.ts";
|
||||
import {Http} from "@angular/http";
|
||||
import {Message} from "../../../common/entities/Message";
|
||||
import {Directory} from "../../../common/entities/Directory";
|
||||
|
||||
|
@ -1,4 +1,3 @@
|
||||
|
||||
import {Photo} from "../../../../common/entities/Photo";
|
||||
|
||||
export class GridRowBuilder {
|
||||
|
@ -45,7 +45,6 @@ export class GalleryLightboxComponent {
|
||||
from.top -= this.getBodyScrollTop();
|
||||
|
||||
|
||||
|
||||
let fromImage = {width: from.width + "px", height: from.height + "px", top: "0px", left: "0px"};
|
||||
let toImage = this.calcLightBoxPhotoDimension(this.activePhoto.photo).toStyle();
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
///<reference path="../../../browser.d.ts"/>
|
||||
|
||||
import {Component, Input, ElementRef, ViewChild} from '@angular/core';
|
||||
import {Component, Input, ElementRef, ViewChild} from "@angular/core";
|
||||
import {Photo} from "../../../../common/entities/Photo";
|
||||
import {Directory} from "../../../../common/entities/Directory";
|
||||
import {IRenderable, Dimension} from "../../model/IRenderable";
|
||||
|
@ -1,7 +1,6 @@
|
||||
///<reference path="../../../browser.d.ts"/>
|
||||
|
||||
import {Injectable} from "@angular/core";
|
||||
import {Http} from "@angular/http";
|
||||
import {NetworkService} from "../../model/network/network.service";
|
||||
import {AutoCompleteItem} from "../../../../common/entities/AutoCompleteItem";
|
||||
import {Message} from "../../../../common/entities/Message";
|
||||
|
@ -14,6 +14,7 @@ import {Message} from "../../../../common/entities/Message";
|
||||
export class GallerySearchComponent {
|
||||
|
||||
autoCompleteItems:Array<AutoCompleteRenderItem> = [];
|
||||
|
||||
constructor(private _autoCompleteService:AutoCompleteService) {
|
||||
}
|
||||
|
||||
@ -58,8 +59,6 @@ export class GallerySearchComponent {
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
class AutoCompleteRenderItem {
|
||||
|
@ -1,7 +1,7 @@
|
||||
///<reference path="../../browser.d.ts"/>
|
||||
|
||||
import {Component, OnInit} from '@angular/core';
|
||||
import {LoginCredential} from '../../../common/entities/LoginCredential';
|
||||
import {Component, OnInit} from "@angular/core";
|
||||
import {LoginCredential} from "../../../common/entities/LoginCredential";
|
||||
import {AuthenticationService} from "../model/network/authentication.service.ts";
|
||||
import {Router} from "@angular/router-deprecated";
|
||||
import {FORM_DIRECTIVES} from "@angular/common";
|
||||
@ -14,6 +14,7 @@ import {FORM_DIRECTIVES} from "@angular/common";
|
||||
})
|
||||
export class LoginComponent implements OnInit {
|
||||
loginCredential:LoginCredential;
|
||||
|
||||
constructor(private _authService:AuthenticationService, private _router:Router) {
|
||||
this.loginCredential = new LoginCredential();
|
||||
}
|
||||
|
@ -1,13 +1,7 @@
|
||||
///<reference path="../../../browser.d.ts"/>
|
||||
|
||||
import {
|
||||
it,
|
||||
inject,
|
||||
beforeEachProviders
|
||||
} from '@angular/core/testing';
|
||||
|
||||
|
||||
import {provide} from '@angular/core';
|
||||
import {it, inject, beforeEachProviders} from "@angular/core/testing";
|
||||
import {provide} from "@angular/core";
|
||||
import {UserService} from "./user.service.ts";
|
||||
import {User} from "../../../../common/entities/User";
|
||||
import {Message} from "../../../../common/entities/Message";
|
||||
|
@ -1,12 +1,12 @@
|
||||
///<reference path="../../../browser.d.ts"/>
|
||||
|
||||
import {Injectable} from '@angular/core';
|
||||
import {Injectable} from "@angular/core";
|
||||
import {User} from "../../../../common/entities/User";
|
||||
import {Event} from "../../../../common/event/Event";
|
||||
import {UserService} from "./user.service.ts";
|
||||
import {LoginCredential} from "../../../../common/entities/LoginCredential";
|
||||
import {Message} from "../../../../common/entities/Message";
|
||||
import { Cookie } from 'ng2-cookies/ng2-cookies';
|
||||
import {Cookie} from "ng2-cookies/ng2-cookies";
|
||||
import {ErrorCodes} from "../../../../common/entities/Error";
|
||||
|
||||
declare module ServerInject {
|
||||
|
@ -1,7 +1,7 @@
|
||||
///<reference path="../../../browser.d.ts"/>
|
||||
|
||||
import {it, inject, beforeEachProviders, beforeEach, afterEach} from "@angular/core/testing";
|
||||
import {BaseRequestOptions, Http, Response, ResponseOptions, ResponseType, BaseResponseOptions} from "@angular/http";
|
||||
import {BaseRequestOptions, Http, Response, ResponseOptions} from "@angular/http";
|
||||
import {MockBackend, MockConnection} from "@angular/http/testing";
|
||||
import {provide} from "@angular/core";
|
||||
import "rxjs/Rx";
|
||||
|
@ -1,6 +1,6 @@
|
||||
///<reference path="../../../browser.d.ts"/>
|
||||
|
||||
import {Injectable} from '@angular/core';
|
||||
import {Injectable} from "@angular/core";
|
||||
import {Http, Headers, RequestOptions} from "@angular/http";
|
||||
import {Message} from "../../../../common/entities/Message";
|
||||
import "rxjs/Rx";
|
||||
|
@ -1,14 +1,12 @@
|
||||
///<reference path="../../../browser.d.ts"/>
|
||||
|
||||
import {it, inject, beforeEachProviders, beforeEach, afterEach} from "@angular/core/testing";
|
||||
import {BaseRequestOptions, Http, Response, ResponseOptions} from "@angular/http";
|
||||
import {MockBackend, MockConnection} from "@angular/http/testing";
|
||||
import {it, inject, beforeEachProviders} from "@angular/core/testing";
|
||||
import {BaseRequestOptions, Http} from "@angular/http";
|
||||
import {MockBackend} from "@angular/http/testing";
|
||||
import {provide} from "@angular/core";
|
||||
import "rxjs/Rx";
|
||||
import {NetworkService} from "./network.service";
|
||||
import {Message} from "../../../../common/entities/Message";
|
||||
import {UserService} from "./user.service";
|
||||
import {LoginComponent} from "../../login/login.component";
|
||||
import {LoginCredential} from "../../../../common/entities/LoginCredential";
|
||||
|
||||
|
||||
@ -28,9 +26,6 @@ describe('UserService', () => {
|
||||
]);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
it('should call postJson at login', inject([UserService, NetworkService], (userService, networkService) => {
|
||||
spyOn(networkService, "postJson");
|
||||
let credential = new LoginCredential("name", "pass");
|
||||
@ -47,6 +42,4 @@ describe('UserService', () => {
|
||||
}));
|
||||
|
||||
|
||||
|
||||
|
||||
});
|
||||
|
@ -1,8 +1,7 @@
|
||||
///<reference path="../../../browser.d.ts"/>
|
||||
|
||||
import {Injectable} from '@angular/core';
|
||||
import {Injectable} from "@angular/core";
|
||||
import {LoginCredential} from "../../../../common/entities/LoginCredential";
|
||||
import {Http} from "@angular/http";
|
||||
import {NetworkService} from "./network.service.ts";
|
||||
import {User} from "../../../../common/entities/User";
|
||||
import {Message} from "../../../../common/entities/Message";
|
||||
@ -11,7 +10,6 @@ import {Message} from "../../../../common/entities/Message";
|
||||
export class UserService {
|
||||
|
||||
|
||||
|
||||
constructor(private _networkService:NetworkService) {
|
||||
}
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
///<reference path="../typings/browser.d.ts"/>
|
||||
|
||||
import { bootstrap } from '@angular/platform-browser-dynamic';
|
||||
import {bootstrap} from "@angular/platform-browser-dynamic";
|
||||
import {AppComponent} from "./app/app.component.ts";
|
||||
|
||||
bootstrap(AppComponent)
|
||||
|
Loading…
x
Reference in New Issue
Block a user