mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-17 07:50:12 +01:00
material removed, angular updated to b16
This commit is contained in:
parent
f375f936d8
commit
a1e49ecc9b
8 changed files with 55 additions and 123 deletions
12
bower.json
12
bower.json
|
|
@ -1,15 +1,13 @@
|
||||||
{
|
{
|
||||||
"name": "angular2-webpack-starter",
|
"name": "angular2-blur-admin",
|
||||||
"description": "Angular 2 admin template.",
|
"version": "0.0.1",
|
||||||
"main": "",
|
"description": "Angular 2 Blur Admin template.",
|
||||||
"authors": [
|
"author": "akveo",
|
||||||
"Patrick Stapleton <patrick@angularclass.com>"
|
"homepage": "",
|
||||||
],
|
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"moduleType": [
|
"moduleType": [
|
||||||
"es6"
|
"es6"
|
||||||
],
|
],
|
||||||
"homepage": "",
|
|
||||||
"private": true,
|
"private": true,
|
||||||
"ignore": [
|
"ignore": [
|
||||||
"**/.*",
|
"**/.*",
|
||||||
|
|
|
||||||
98
package.json
98
package.json
|
|
@ -1,62 +1,14 @@
|
||||||
{
|
{
|
||||||
"name": "angular2-webpack-starter",
|
"name": "angular2-blur-admin",
|
||||||
"version": "5.0.4",
|
"version": "0.0.1",
|
||||||
"description": "Angular 2 admin template.",
|
"description": "Angular 2 Blur Admin template.",
|
||||||
"author": "Patrick Stapleton <patrick@angularclass.com>",
|
"author": "akveo",
|
||||||
"homepage": "https://github.com/angularclass/angular2-webpack-starter",
|
"homepage": "",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"scripts": {
|
|
||||||
"rimraf": "rimraf",
|
|
||||||
"tslint": "tslint",
|
|
||||||
"typedoc": "typedoc",
|
|
||||||
"typings": "typings",
|
|
||||||
"webpack": "webpack",
|
|
||||||
"webpack-dev-server": "webpack-dev-server",
|
|
||||||
"webdriver-manager": "webdriver-manager",
|
|
||||||
"clean": "npm cache clean && npm run rimraf -- node_modules doc typings coverage dist",
|
|
||||||
"clean:dist": "npm run rimraf -- dist",
|
|
||||||
"preclean:install": "npm run clean",
|
|
||||||
"clean:install": "npm set progress=false && npm install",
|
|
||||||
"preclean:start": "npm run clean",
|
|
||||||
"clean:start": "npm start",
|
|
||||||
"watch": "npm run watch:dev",
|
|
||||||
"watch:dev": "npm run build:dev -- --watch",
|
|
||||||
"watch:dev:hmr": "npm run watch:dev -- --hot",
|
|
||||||
"watch:prod": "npm run build:prod -- --watch",
|
|
||||||
"build": "npm run build:dev",
|
|
||||||
"prebuild:dev": "npm run clean:dist",
|
|
||||||
"build:dev": "webpack --config config/webpack.dev.js --progress --profile --colors --display-error-details --display-cached",
|
|
||||||
"prebuild:prod": "npm run clean:dist",
|
|
||||||
"build:prod": "webpack --config config/webpack.prod.js --progress --profile --colors --display-error-details --display-cached --bail",
|
|
||||||
"server": "npm run server:dev",
|
|
||||||
"server:dev": "webpack-dev-server --config config/webpack.dev.js --inline --progress --profile --colors --watch --display-error-details --display-cached --content-base src/",
|
|
||||||
"server:dev:hmr": "npm run server:dev -- --hot",
|
|
||||||
"server:prod": "http-server dist --cors",
|
|
||||||
"webdriver:update": "npm run webdriver-manager update",
|
|
||||||
"webdriver:start": "npm run webdriver-manager start",
|
|
||||||
"lint": "npm run tslint 'src/**/*.ts'",
|
|
||||||
"docs": "npm run typedoc -- --options typedoc.json --exclude '**/*.spec.ts' ./src/",
|
|
||||||
"start": "npm run server:dev",
|
|
||||||
"start:hmr": "npm run server:dev:hmr",
|
|
||||||
"postinstall": "npm run typings -- install && bower install",
|
|
||||||
"preversion": "npm run build",
|
|
||||||
"version": "npm run build",
|
|
||||||
"postversion": "git push && git push --tags"
|
|
||||||
},
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@angular2-material/button": "2.0.0-alpha.2",
|
|
||||||
"@angular2-material/card": "2.0.0-alpha.2",
|
|
||||||
"@angular2-material/checkbox": "2.0.0-alpha.2",
|
|
||||||
"@angular2-material/core": "2.0.0-alpha.2",
|
|
||||||
"@angular2-material/input": "2.0.0-alpha.2",
|
|
||||||
"@angular2-material/list": "2.0.0-alpha.2",
|
|
||||||
"@angular2-material/progress-circle": "2.0.0-alpha.2",
|
|
||||||
"@angular2-material/radio": "2.0.0-alpha.2",
|
|
||||||
"@angular2-material/sidenav": "2.0.0-alpha.2",
|
|
||||||
"@angular2-material/toolbar": "2.0.0-alpha.2",
|
|
||||||
"amcharts3": "github:amcharts/amcharts3",
|
"amcharts3": "github:amcharts/amcharts3",
|
||||||
"ammap3": "github:amcharts/ammap3",
|
"ammap3": "github:amcharts/ammap3",
|
||||||
"angular2": "2.0.0-beta.15",
|
"angular2": "2.0.0-beta.16",
|
||||||
"bootstrap": "^4.0.0-alpha.2",
|
"bootstrap": "^4.0.0-alpha.2",
|
||||||
"bootstrap-loader": "^1.0.8",
|
"bootstrap-loader": "^1.0.8",
|
||||||
"chartist": "^0.9.7",
|
"chartist": "^0.9.7",
|
||||||
|
|
@ -116,6 +68,44 @@
|
||||||
"webpack-md5-hash": "^0.0.5",
|
"webpack-md5-hash": "^0.0.5",
|
||||||
"webpack-merge": "^0.8.4"
|
"webpack-merge": "^0.8.4"
|
||||||
},
|
},
|
||||||
|
"scripts": {
|
||||||
|
"rimraf": "rimraf",
|
||||||
|
"tslint": "tslint",
|
||||||
|
"typedoc": "typedoc",
|
||||||
|
"typings": "typings",
|
||||||
|
"webpack": "webpack",
|
||||||
|
"webpack-dev-server": "webpack-dev-server",
|
||||||
|
"webdriver-manager": "webdriver-manager",
|
||||||
|
"clean": "npm cache clean && npm run rimraf -- node_modules doc typings coverage dist",
|
||||||
|
"clean:dist": "npm run rimraf -- dist",
|
||||||
|
"preclean:install": "npm run clean",
|
||||||
|
"clean:install": "npm set progress=false && npm install",
|
||||||
|
"preclean:start": "npm run clean",
|
||||||
|
"clean:start": "npm start",
|
||||||
|
"watch": "npm run watch:dev",
|
||||||
|
"watch:dev": "npm run build:dev -- --watch",
|
||||||
|
"watch:dev:hmr": "npm run watch:dev -- --hot",
|
||||||
|
"watch:prod": "npm run build:prod -- --watch",
|
||||||
|
"build": "npm run build:dev",
|
||||||
|
"prebuild:dev": "npm run clean:dist",
|
||||||
|
"build:dev": "webpack --config config/webpack.dev.js --progress --profile --colors --display-error-details --display-cached",
|
||||||
|
"prebuild:prod": "npm run clean:dist",
|
||||||
|
"build:prod": "webpack --config config/webpack.prod.js --progress --profile --colors --display-error-details --display-cached --bail",
|
||||||
|
"server": "npm run server:dev",
|
||||||
|
"server:dev": "webpack-dev-server --config config/webpack.dev.js --inline --progress --profile --colors --watch --display-error-details --display-cached --content-base src/",
|
||||||
|
"server:dev:hmr": "npm run server:dev -- --hot",
|
||||||
|
"server:prod": "http-server dist --cors",
|
||||||
|
"webdriver:update": "npm run webdriver-manager update",
|
||||||
|
"webdriver:start": "npm run webdriver-manager start",
|
||||||
|
"lint": "npm run tslint 'src/**/*.ts'",
|
||||||
|
"docs": "npm run typedoc -- --options typedoc.json --exclude '**/*.spec.ts' ./src/",
|
||||||
|
"start": "npm run server:dev",
|
||||||
|
"start:hmr": "npm run server:dev:hmr",
|
||||||
|
"postinstall": "npm run typings -- install && bower install",
|
||||||
|
"preversion": "npm run build",
|
||||||
|
"version": "npm run build",
|
||||||
|
"postversion": "git push && git push --tags"
|
||||||
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/angularclass/angular2-webpack-starter.git"
|
"url": "https://github.com/angularclass/angular2-webpack-starter.git"
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ import {layoutPaths} from '../../../theme';
|
||||||
@Pipe({name: 'appPicture'})
|
@Pipe({name: 'appPicture'})
|
||||||
export class AppPicturePipe implements PipeTransform {
|
export class AppPicturePipe implements PipeTransform {
|
||||||
|
|
||||||
transform(input:string, args:any[]):string {
|
transform(input:string):string {
|
||||||
return layoutPaths.images.root + input;
|
return layoutPaths.images.root + input;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -4,8 +4,7 @@ import {layoutPaths} from '../../../theme';
|
||||||
@Pipe({name: 'profilePicture'})
|
@Pipe({name: 'profilePicture'})
|
||||||
export class ProfilePicturePipe implements PipeTransform {
|
export class ProfilePicturePipe implements PipeTransform {
|
||||||
|
|
||||||
transform(input:string, args:string[]):string {
|
transform(input:string, ext = 'png'):string {
|
||||||
let ext = args[0] || 'png';
|
|
||||||
return layoutPaths.images.profile + input + '.' + ext;
|
return layoutPaths.images.profile + input + '.' + ext;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,37 +0,0 @@
|
||||||
import {MdButton, MdAnchor} from '@angular2-material/button';
|
|
||||||
import {MD_CARD_DIRECTIVES} from '@angular2-material/card';
|
|
||||||
import {MdCheckbox} from '@angular2-material/checkbox';
|
|
||||||
import {MD_SIDENAV_DIRECTIVES} from '@angular2-material/sidenav';
|
|
||||||
import {MD_INPUT_DIRECTIVES} from '@angular2-material/input';
|
|
||||||
import {MD_LIST_DIRECTIVES} from '@angular2-material/list';
|
|
||||||
import {MdRadioGroup, MdRadioButton, MdRadioDispatcher} from '@angular2-material/radio';
|
|
||||||
import {MdSpinner, MdProgressCircle} from '@angular2-material/progress-circle';
|
|
||||||
import {MdToolbar} from '@angular2-material/toolbar';
|
|
||||||
|
|
||||||
/*
|
|
||||||
* we are grouping the module so we only need to manage the imports in one location
|
|
||||||
*/
|
|
||||||
|
|
||||||
export const MATERIAL_PIPES = [
|
|
||||||
|
|
||||||
];
|
|
||||||
|
|
||||||
export const MATERIAL_DIRECTIVES = [
|
|
||||||
...MD_SIDENAV_DIRECTIVES,
|
|
||||||
...[
|
|
||||||
MdAnchor,
|
|
||||||
MdButton,
|
|
||||||
MdToolbar,
|
|
||||||
MdCheckbox,
|
|
||||||
MdRadioButton,
|
|
||||||
MdSpinner,
|
|
||||||
MdProgressCircle
|
|
||||||
],
|
|
||||||
...MD_INPUT_DIRECTIVES,
|
|
||||||
...MD_LIST_DIRECTIVES,
|
|
||||||
...MD_CARD_DIRECTIVES
|
|
||||||
];
|
|
||||||
|
|
||||||
export const MATERIAL_PROVIDERS = [
|
|
||||||
MdRadioDispatcher
|
|
||||||
];
|
|
||||||
|
|
@ -7,14 +7,9 @@ import {provide, PLATFORM_DIRECTIVES} from 'angular2/core';
|
||||||
// Angular 2 Router
|
// Angular 2 Router
|
||||||
import {ROUTER_DIRECTIVES} from 'angular2/router';
|
import {ROUTER_DIRECTIVES} from 'angular2/router';
|
||||||
|
|
||||||
// Angular 2 Material 2
|
|
||||||
// TODO(gdi2290): replace with @angular2-material/all
|
|
||||||
import {MATERIAL_DIRECTIVES} from './angular2-material2';
|
|
||||||
|
|
||||||
// application_directives: directives that are global through out the application
|
// application_directives: directives that are global through out the application
|
||||||
export const APPLICATION_DIRECTIVES = [
|
export const APPLICATION_DIRECTIVES = [
|
||||||
...ROUTER_DIRECTIVES,
|
...ROUTER_DIRECTIVES
|
||||||
...MATERIAL_DIRECTIVES
|
|
||||||
];
|
];
|
||||||
|
|
||||||
export const DIRECTIVES = [
|
export const DIRECTIVES = [
|
||||||
|
|
|
||||||
|
|
@ -11,11 +11,9 @@ import {FORM_PROVIDERS} from 'angular2/common';
|
||||||
// Angular 2 Http
|
// Angular 2 Http
|
||||||
import {HTTP_PROVIDERS} from 'angular2/http';
|
import {HTTP_PROVIDERS} from 'angular2/http';
|
||||||
// Angular 2 Router
|
// Angular 2 Router
|
||||||
import {ROUTER_PROVIDERS, LocationStrategy, PathLocationStrategy} from 'angular2/router';
|
import {ROUTER_PROVIDERS} from 'angular2/router';
|
||||||
|
|
||||||
// Angular 2 Material
|
import {LocationStrategy, PathLocationStrategy} from 'angular2/platform/common'
|
||||||
// TODO(gdi2290): replace with @angular2-material/all
|
|
||||||
import {MATERIAL_PROVIDERS} from './angular2-material2';
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Application Providers/Directives/Pipes
|
* Application Providers/Directives/Pipes
|
||||||
|
|
@ -24,7 +22,6 @@ import {MATERIAL_PROVIDERS} from './angular2-material2';
|
||||||
export const APPLICATION_PROVIDERS = [
|
export const APPLICATION_PROVIDERS = [
|
||||||
...FORM_PROVIDERS,
|
...FORM_PROVIDERS,
|
||||||
...HTTP_PROVIDERS,
|
...HTTP_PROVIDERS,
|
||||||
...MATERIAL_PROVIDERS,
|
|
||||||
...ROUTER_PROVIDERS,
|
...ROUTER_PROVIDERS,
|
||||||
provide(LocationStrategy, { useClass: PathLocationStrategy })
|
provide(LocationStrategy, { useClass: PathLocationStrategy })
|
||||||
];
|
];
|
||||||
|
|
|
||||||
|
|
@ -16,22 +16,12 @@ import 'rxjs/add/operator/map';
|
||||||
import 'rxjs/add/operator/mergeMap';
|
import 'rxjs/add/operator/mergeMap';
|
||||||
|
|
||||||
// Web dependencies
|
// Web dependencies
|
||||||
|
// TODO: make sure this is a correct place
|
||||||
import 'jquery';
|
import 'jquery';
|
||||||
import 'bootstrap-loader';
|
import 'bootstrap-loader';
|
||||||
import 'font-awesome-sass-loader';
|
import 'font-awesome-sass-loader';
|
||||||
|
|
||||||
|
|
||||||
// Angular 2 Material 2
|
|
||||||
// TODO(gdi2290): uncomment when material is fixed
|
|
||||||
// import '@angular2-material/sidenav';
|
|
||||||
// import '@angular2-material/toolbar';
|
|
||||||
// import '@angular2-material/button';
|
|
||||||
// import '@angular2-material/checkbox';
|
|
||||||
// import '@angular2-material/radio';
|
|
||||||
// import '@angular2-material/progress-circle';
|
|
||||||
// import '@angular2-material/card';
|
|
||||||
// look in platform/directives and platform/providers
|
|
||||||
|
|
||||||
if ('production' === ENV) {
|
if ('production' === ENV) {
|
||||||
// Production
|
// Production
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue