clean up
|
|
@ -6,7 +6,8 @@ const HtmlWebpackPlugin = require('html-webpack-plugin');
|
||||||
const ForkCheckerPlugin = require('awesome-typescript-loader').ForkCheckerPlugin;
|
const ForkCheckerPlugin = require('awesome-typescript-loader').ForkCheckerPlugin;
|
||||||
|
|
||||||
const METADATA = {
|
const METADATA = {
|
||||||
title: 'Angular2 Webpack Starter by @gdi2290 from @AngularClass',
|
title: 'Blur Admin on Angular2',
|
||||||
|
description: 'Free Angular 2 Bootstrap 4 Admin Dashboard Template',
|
||||||
baseUrl: '/'
|
baseUrl: '/'
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,3 @@
|
||||||
/**
|
|
||||||
* @author: @AngularClass
|
|
||||||
*/
|
|
||||||
|
|
||||||
const helpers = require('./helpers');
|
const helpers = require('./helpers');
|
||||||
const webpackMerge = require('webpack-merge'); // used to merge webpack configs
|
const webpackMerge = require('webpack-merge'); // used to merge webpack configs
|
||||||
const commonConfig = require('./webpack.common.js'); // the settings that are common to prod and dev
|
const commonConfig = require('./webpack.common.js'); // the settings that are common to prod and dev
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ require("!style!css!sass!./theme/sass/_ionicons.scss");
|
||||||
/*
|
/*
|
||||||
* App Component
|
* App Component
|
||||||
* Top Level Component
|
* Top Level Component
|
||||||
* TODO: whey the header and footer are not implemented?
|
* TODO: why the header and footer are not implemented?
|
||||||
*/
|
*/
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app',
|
selector: 'app',
|
||||||
|
|
@ -45,9 +45,7 @@ require("!style!css!sass!./theme/sass/_ionicons.scss");
|
||||||
},
|
},
|
||||||
])
|
])
|
||||||
export class App {
|
export class App {
|
||||||
angularclassLogo = 'assets/img/angularclass-avatar.png';
|
|
||||||
name = 'Angular 2 Webpack Starter';
|
|
||||||
url = 'https://twitter.com/AngularClass';
|
|
||||||
isMenuCollapsed: boolean = false;
|
isMenuCollapsed: boolean = false;
|
||||||
|
|
||||||
private _sidebarStateSubscription: Subscription;
|
private _sidebarStateSubscription: Subscription;
|
||||||
|
|
@ -56,21 +54,8 @@ export class App {
|
||||||
this._sidebarStateSubscription = this._sidebarStateService.getStateStream().subscribe((isCollapsed) => this.isMenuCollapsed = isCollapsed);
|
this._sidebarStateSubscription = this._sidebarStateService.getStateStream().subscribe((isCollapsed) => this.isMenuCollapsed = isCollapsed);
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
|
||||||
console.log('Initial App State');
|
|
||||||
}
|
|
||||||
|
|
||||||
ngOnDestroy(){
|
ngOnDestroy(){
|
||||||
// prevent memory leak when component destroyed
|
// prevent memory leak when component destroyed
|
||||||
this._sidebarStateSubscription.unsubscribe();
|
this._sidebarStateSubscription.unsubscribe();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* Please review the https://github.com/AngularClass/angular2-examples/ repo for
|
|
||||||
* more angular app examples that you may copy/paste
|
|
||||||
* (The examples may not be updated as quickly. Please open an issue on github for us to update it)
|
|
||||||
* For help or questions please contact us at @AngularClass on twitter
|
|
||||||
* or our chat on Slack at https://AngularClass.com/slack-join
|
|
||||||
*/
|
|
||||||
|
|
|
||||||
|
Before Width: | Height: | Size: 8.2 KiB |
|
Before Width: | Height: | Size: 9.5 KiB |
|
Before Width: | Height: | Size: 2.2 KiB |
|
Before Width: | Height: | Size: 2.9 KiB |
|
Before Width: | Height: | Size: 4.1 KiB |
|
Before Width: | Height: | Size: 5.5 KiB |
|
Before Width: | Height: | Size: 6.4 KiB |
|
Before Width: | Height: | Size: 6.8 KiB |
|
Before Width: | Height: | Size: 8.2 KiB |
|
Before Width: | Height: | Size: 8.8 KiB |
|
Before Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 3.3 KiB |
|
Before Width: | Height: | Size: 3.5 KiB |
|
Before Width: | Height: | Size: 4.1 KiB |
|
Before Width: | Height: | Size: 4.4 KiB |
|
Before Width: | Height: | Size: 10 KiB |
|
Before Width: | Height: | Size: 10 KiB |
|
|
@ -1,2 +0,0 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<browserconfig><msapplication><tile><square70x70logo src="/ms-icon-70x70.png"/><square150x150logo src="/ms-icon-150x150.png"/><square310x310logo src="/ms-icon-310x310.png"/><TileColor>#ffffff</TileColor></tile></msapplication></browserconfig>
|
|
||||||
|
Before Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 2 KiB |
|
Before Width: | Height: | Size: 5.5 KiB |
|
Before Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 8.2 KiB |
|
Before Width: | Height: | Size: 8.7 KiB |
|
Before Width: | Height: | Size: 24 KiB |
|
Before Width: | Height: | Size: 4 KiB |
|
Before Width: | Height: | Size: 18 KiB |
|
Before Width: | Height: | Size: 32 KiB |
|
Before Width: | Height: | Size: 36 KiB |
|
|
@ -1,5 +1,5 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
|
|
||||||
<title><%= webpackConfig.metadata.title %></title>
|
<title><%= webpackConfig.metadata.title %></title>
|
||||||
|
|
@ -7,50 +7,26 @@
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<meta name="description" content="<%= webpackConfig.metadata.title %>">
|
|
||||||
|
|
||||||
<!-- use http://www.favicon-generator.org/ to replace files in public/icon-->
|
<meta name="description" content="<%= webpackConfig.metadata.description %>">
|
||||||
<link rel="apple-touch-icon" sizes="57x57" href="/assets/icon/apple-icon-57x57.png">
|
|
||||||
<link rel="apple-touch-icon" sizes="60x60" href="/assets/icon/apple-icon-60x60.png">
|
<link rel="icon" type="image/png" sizes="16x16" href="assets/img/favicon-16x16.png">
|
||||||
<link rel="apple-touch-icon" sizes="72x72" href="/assets/icon/apple-icon-72x72.png">
|
<link rel="icon" type="image/png" sizes="32x32" href="assets/img/favicon-32x32.png">
|
||||||
<link rel="apple-touch-icon" sizes="76x76" href="/assets/icon/apple-icon-76x76.png">
|
<link rel="icon" type="image/png" sizes="96x96" href="assets/img/favicon-96x96.png">
|
||||||
<link rel="apple-touch-icon" sizes="114x114" href="/assets/icon/apple-icon-114x114.png">
|
|
||||||
<link rel="apple-touch-icon" sizes="120x120" href="/assets/icon/apple-icon-120x120.png">
|
|
||||||
<link rel="apple-touch-icon" sizes="144x144" href="/assets/icon/apple-icon-144x144.png">
|
|
||||||
<link rel="apple-touch-icon" sizes="152x152" href="/assets/icon/apple-icon-152x152.png">
|
|
||||||
<link rel="apple-touch-icon" sizes="180x180" href="/assets/icon/apple-icon-180x180.png">
|
|
||||||
<link rel="icon" type="image/png" sizes="192x192" href="/assets/icon/android-icon-192x192.png">
|
|
||||||
<link rel="icon" type="image/png" sizes="32x32" href="/assets/icon/favicon-32x32.png">
|
|
||||||
<link rel="icon" type="image/png" sizes="96x96" href="/assets/icon/favicon-96x96.png">
|
|
||||||
<link rel="icon" type="image/png" sizes="16x16" href="/assets/icon/favicon-16x16.png">
|
|
||||||
<link rel="manifest" href="/assets/manifest.json">
|
|
||||||
<meta name="msapplication-TileColor" content="#00bcd4">
|
|
||||||
<meta name="msapplication-TileImage" content="/assets/icon/ms-icon-144x144.png">
|
|
||||||
<meta name="theme-color" content="#00bcd4">
|
|
||||||
<!-- end favicon -->
|
|
||||||
|
|
||||||
<!-- base url -->
|
<!-- base url -->
|
||||||
<base href="<%= webpackConfig.metadata.baseUrl %>">
|
<base href="<%= webpackConfig.metadata.baseUrl %>">
|
||||||
|
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
<app>
|
<app>
|
||||||
Loading...
|
<div id="preloader">
|
||||||
|
<div></div>
|
||||||
|
</div>
|
||||||
</app>
|
</app>
|
||||||
|
|
||||||
<!-- Google Analytics: change UA-71073175-1 to be your site's ID -->
|
|
||||||
<script>
|
|
||||||
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
|
||||||
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
|
||||||
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
|
||||||
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
|
|
||||||
|
|
||||||
ga('create', 'UA-71073175-1', 'auto');
|
|
||||||
ga('send', 'pageview');
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<% if (webpackConfig.metadata.ENV === 'development') { %>
|
<% if (webpackConfig.metadata.ENV === 'development') { %>
|
||||||
<!-- Webpack Dev Server reload -->
|
<!-- Webpack Dev Server reload -->
|
||||||
|
|
|
||||||
|
|
@ -34,9 +34,6 @@ export function main(initialHmrState?: any): Promise<any> {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Vendors
|
* Vendors
|
||||||
* For vendors for example jQuery, Lodash, angular2-jwt just import them anywhere in your app
|
* For vendors for example jQuery, Lodash, angular2-jwt just import them anywhere in your app
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,3 @@
|
||||||
/**
|
|
||||||
* @author: @AngularClass
|
|
||||||
*/
|
|
||||||
|
|
||||||
// Look in ./config folder for webpack.dev.js
|
// Look in ./config folder for webpack.dev.js
|
||||||
switch (process.env.NODE_ENV) {
|
switch (process.env.NODE_ENV) {
|
||||||
case 'prod':
|
case 'prod':
|
||||||
|
|
|
||||||