mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-17 07:50:12 +01:00
feat(aot): aot compilation work in progress
This commit is contained in:
parent
24fe588b42
commit
d89d176e54
117 changed files with 866 additions and 1041 deletions
548
config/webpack.aot.js
Normal file
548
config/webpack.aot.js
Normal file
|
|
@ -0,0 +1,548 @@
|
||||||
|
const helpers = require('./helpers');
|
||||||
|
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 ngtools = require('@ngtools/webpack');
|
||||||
|
const webpack = require('webpack');
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Webpack Plugins
|
||||||
|
*/
|
||||||
|
const DedupePlugin = require('webpack/lib/optimize/DedupePlugin');
|
||||||
|
const DefinePlugin = require('webpack/lib/DefinePlugin');
|
||||||
|
const IgnorePlugin = require('webpack/lib/IgnorePlugin');
|
||||||
|
const NormalModuleReplacementPlugin = require('webpack/lib/NormalModuleReplacementPlugin');
|
||||||
|
const ProvidePlugin = require('webpack/lib/ProvidePlugin');
|
||||||
|
const UglifyJsPlugin = require('webpack/lib/optimize/UglifyJsPlugin');
|
||||||
|
const WebpackMd5Hash = require('webpack-md5-hash');
|
||||||
|
const AssetsPlugin = require('assets-webpack-plugin');
|
||||||
|
const ContextReplacementPlugin = require('webpack/lib/ContextReplacementPlugin');
|
||||||
|
const CommonsChunkPlugin = require('webpack/lib/optimize/CommonsChunkPlugin');
|
||||||
|
const CopyWebpackPlugin = require('copy-webpack-plugin');
|
||||||
|
const ForkCheckerPlugin = require('awesome-typescript-loader').ForkCheckerPlugin;
|
||||||
|
const HtmlElementsPlugin = require('./html-elements-plugin');
|
||||||
|
const HtmlWebpackPlugin = require('html-webpack-plugin');
|
||||||
|
const LoaderOptionsPlugin = require('webpack/lib/LoaderOptionsPlugin');
|
||||||
|
const ScriptExtHtmlWebpackPlugin = require('script-ext-html-webpack-plugin');
|
||||||
|
const ExtractTextPlugin = require('extract-text-webpack-plugin');
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Webpack Constants
|
||||||
|
*/
|
||||||
|
const ENV = process.env.NODE_ENV = process.env.ENV = 'production';
|
||||||
|
const HOST = process.env.HOST || 'localhost';
|
||||||
|
const PORT = process.env.PORT || 8080;
|
||||||
|
const METADATA = webpackMerge(commonConfig({
|
||||||
|
env: ENV
|
||||||
|
}).metadata, {
|
||||||
|
host: HOST,
|
||||||
|
port: PORT,
|
||||||
|
ENV: ENV,
|
||||||
|
HMR: false
|
||||||
|
});
|
||||||
|
|
||||||
|
module.exports = function (env) {
|
||||||
|
isProd = true;
|
||||||
|
return {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Developer tool to enhance debugging
|
||||||
|
*
|
||||||
|
* See: http://webpack.github.io/docs/configuration.html#devtool
|
||||||
|
* See: https://github.com/webpack/docs/wiki/build-performance#sourcemaps
|
||||||
|
*/
|
||||||
|
devtool: 'source-map',
|
||||||
|
|
||||||
|
/*
|
||||||
|
* The entry point for the bundle
|
||||||
|
* Our Angular.js app
|
||||||
|
*
|
||||||
|
* See: http://webpack.github.io/docs/configuration.html#entry
|
||||||
|
*/
|
||||||
|
entry: {
|
||||||
|
|
||||||
|
'polyfills': './src/polyfills.browser.ts',
|
||||||
|
'vendor': './src/vendor.browser.ts',
|
||||||
|
'main': './src/main.browser.aot.ts'
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Options affecting the resolving of modules.
|
||||||
|
*
|
||||||
|
* See: http://webpack.github.io/docs/configuration.html#resolve
|
||||||
|
*/
|
||||||
|
resolve: {
|
||||||
|
|
||||||
|
/*
|
||||||
|
* An array of extensions that should be used to resolve modules.
|
||||||
|
*
|
||||||
|
* See: http://webpack.github.io/docs/configuration.html#resolve-extensions
|
||||||
|
*/
|
||||||
|
extensions: ['.ts', '.js', '.json', '.scss'],
|
||||||
|
|
||||||
|
// An array of directory names to be resolved to the current directory
|
||||||
|
modules: [helpers.root('src'), 'node_modules'],
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Options affecting the output of the compilation.
|
||||||
|
*
|
||||||
|
* See: http://webpack.github.io/docs/configuration.html#output
|
||||||
|
*/
|
||||||
|
output: {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The output directory as absolute path (required).
|
||||||
|
*
|
||||||
|
* See: http://webpack.github.io/docs/configuration.html#output-path
|
||||||
|
*/
|
||||||
|
path: helpers.root('dist'),
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Specifies the name of each output file on disk.
|
||||||
|
* IMPORTANT: You must not specify an absolute path here!
|
||||||
|
*
|
||||||
|
* See: http://webpack.github.io/docs/configuration.html#output-filename
|
||||||
|
*/
|
||||||
|
filename: '[name].[chunkhash].bundle.js',
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The filename of the SourceMaps for the JavaScript files.
|
||||||
|
* They are inside the output.path directory.
|
||||||
|
*
|
||||||
|
* See: http://webpack.github.io/docs/configuration.html#output-sourcemapfilename
|
||||||
|
*/
|
||||||
|
sourceMapFilename: '[name].[chunkhash].bundle.map',
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The filename of non-entry chunks as relative path
|
||||||
|
* inside the output.path directory.
|
||||||
|
*
|
||||||
|
* See: http://webpack.github.io/docs/configuration.html#output-chunkfilename
|
||||||
|
*/
|
||||||
|
chunkFilename: '[id].[chunkhash].chunk.js'
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Options affecting the normal modules.
|
||||||
|
*
|
||||||
|
* See: http://webpack.github.io/docs/configuration.html#module
|
||||||
|
*/
|
||||||
|
module: {
|
||||||
|
|
||||||
|
rules: [
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Typescript loader support for .ts and Angular 2 async routes via .async.ts
|
||||||
|
* Replace templateUrl and stylesUrl with require()
|
||||||
|
*
|
||||||
|
* See: https://github.com/s-panferov/awesome-typescript-loader
|
||||||
|
* See: https://github.com/TheLarkInn/angular2-template-loader
|
||||||
|
*/
|
||||||
|
{
|
||||||
|
test: /\.ts$/,
|
||||||
|
loaders: [
|
||||||
|
// '@angularclass/hmr-loader?pretty=' + !isProd + '&prod=' + isProd,
|
||||||
|
// 'awesome-typescript-loader',
|
||||||
|
// 'angular2-template-loader',
|
||||||
|
// 'angular2-router-loader'
|
||||||
|
'@ngtools/webpack'
|
||||||
|
|
||||||
|
],
|
||||||
|
exclude: [/\.(spec|e2e)\.ts$/]
|
||||||
|
},
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Json loader support for *.json files.
|
||||||
|
*
|
||||||
|
* See: https://github.com/webpack/json-loader
|
||||||
|
*/
|
||||||
|
{
|
||||||
|
test: /\.json$/,
|
||||||
|
loader: 'json-loader'
|
||||||
|
},
|
||||||
|
|
||||||
|
/*
|
||||||
|
* to string and css loader support for *.css files
|
||||||
|
* Returns file content as string
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
{
|
||||||
|
test: /\.css$/,
|
||||||
|
loaders: ['to-string-loader', 'css-loader']
|
||||||
|
},
|
||||||
|
|
||||||
|
/* Raw loader support for *.html
|
||||||
|
* Returns file content as string
|
||||||
|
*
|
||||||
|
* See: https://github.com/webpack/raw-loader
|
||||||
|
*/
|
||||||
|
{
|
||||||
|
test: /\.html$/,
|
||||||
|
loader: 'raw-loader',
|
||||||
|
exclude: [helpers.root('src/index.html')]
|
||||||
|
},
|
||||||
|
|
||||||
|
/* File loader for supporting images, for example, in CSS files.
|
||||||
|
*/
|
||||||
|
{
|
||||||
|
test: /\.(jpg|png|gif)$/,
|
||||||
|
loader: 'file'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
test: /\.css$/,
|
||||||
|
// loaders: ['to-string-loader', 'css-loader']
|
||||||
|
use: ['raw-loader']
|
||||||
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
test: /\.scss$/,
|
||||||
|
use: ['raw-loader', 'sass-loader']
|
||||||
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
test: /\.woff(2)?(\?v=.+)?$/,
|
||||||
|
use: 'url-loader?limit=10000&mimetype=application/font-woff'
|
||||||
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
test: /\.(ttf|eot|svg)(\?v=.+)?$/,
|
||||||
|
use: 'file-loader'
|
||||||
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
test: /initial\.scss$/,
|
||||||
|
loader: ExtractTextPlugin.extract({
|
||||||
|
fallbackLoader: 'style-loader',
|
||||||
|
loader: 'css-loader!sass-loader?sourceMap'
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
|
],
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
resolveLoader: {
|
||||||
|
moduleExtensions: ['-loader']
|
||||||
|
},
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Add additional plugins to the compiler.
|
||||||
|
*
|
||||||
|
* See: http://webpack.github.io/docs/configuration.html#plugins
|
||||||
|
*/
|
||||||
|
plugins: [
|
||||||
|
new ExtractTextPlugin({filename: 'initial.css', allChunks: true}),
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Plugin: WebpackMd5Hash
|
||||||
|
* Description: Plugin to replace a standard webpack chunkhash with md5.
|
||||||
|
*
|
||||||
|
* See: https://www.npmjs.com/package/webpack-md5-hash
|
||||||
|
*/
|
||||||
|
new WebpackMd5Hash(),
|
||||||
|
|
||||||
|
new ngtools.AotPlugin({
|
||||||
|
tsConfigPath: './tsconfig.aot.json',
|
||||||
|
baseDir: process.cwd(),
|
||||||
|
entryModule: helpers.root('src/app/app.module') + '#AppModule'
|
||||||
|
}),
|
||||||
|
|
||||||
|
new AssetsPlugin({
|
||||||
|
path: helpers.root('dist'),
|
||||||
|
filename: 'webpack-assets.json',
|
||||||
|
prettyPrint: true
|
||||||
|
}),
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Plugin: ForkCheckerPlugin
|
||||||
|
* Description: Do type checking in a separate process, so webpack don't need to wait.
|
||||||
|
*
|
||||||
|
* See: https://github.com/s-panferov/awesome-typescript-loader#forkchecker-boolean-defaultfalse
|
||||||
|
*/
|
||||||
|
new ForkCheckerPlugin(),
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Plugin: CommonsChunkPlugin
|
||||||
|
* Description: Shares common code between the pages.
|
||||||
|
* It identifies common modules and put them into a commons chunk.
|
||||||
|
*
|
||||||
|
* See: https://webpack.github.io/docs/list-of-plugins.html#commonschunkplugin
|
||||||
|
* See: https://github.com/webpack/docs/wiki/optimization#multi-page-app
|
||||||
|
*/
|
||||||
|
new CommonsChunkPlugin({
|
||||||
|
name: ['polyfills', 'vendor'].reverse()
|
||||||
|
}),
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Plugin: ContextReplacementPlugin
|
||||||
|
* Description: Provides context to Angular's use of System.import
|
||||||
|
*
|
||||||
|
* See: https://webpack.github.io/docs/list-of-plugins.html#contextreplacementplugin
|
||||||
|
* See: https://github.com/angular/angular/issues/11580
|
||||||
|
*/
|
||||||
|
new ContextReplacementPlugin(
|
||||||
|
// The (\\|\/) piece accounts for path separators in *nix and Windows
|
||||||
|
/angular(\\|\/)core(\\|\/)(esm(\\|\/)src|src)(\\|\/)linker/,
|
||||||
|
helpers.root('src') // location of your src
|
||||||
|
),
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Plugin: DedupePlugin
|
||||||
|
* Description: Prevents the inclusion of duplicate code into your bundle
|
||||||
|
* and instead applies a copy of the function at runtime.
|
||||||
|
*
|
||||||
|
* See: https://webpack.github.io/docs/list-of-plugins.html#defineplugin
|
||||||
|
* See: https://github.com/webpack/docs/wiki/optimization#deduplication
|
||||||
|
*/
|
||||||
|
// new DedupePlugin(), // see: https://github.com/angular/angular-cli/issues/1587
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Plugin: DefinePlugin
|
||||||
|
* Description: Define free variables.
|
||||||
|
* Useful for having development builds with debug logging or adding global constants.
|
||||||
|
*
|
||||||
|
* фironment helpers
|
||||||
|
*
|
||||||
|
* See: https://webpack.github.io/docs/list-of-plugins.html#defineplugin
|
||||||
|
*/
|
||||||
|
// NOTE: when adding more properties make sure you include them in custom-typings.d.ts
|
||||||
|
new DefinePlugin({
|
||||||
|
'ENV': JSON.stringify(METADATA.ENV),
|
||||||
|
'HMR': METADATA.HMR,
|
||||||
|
'process.env': {
|
||||||
|
'ENV': JSON.stringify(METADATA.ENV),
|
||||||
|
'NODE_ENV': JSON.stringify(METADATA.ENV),
|
||||||
|
'HMR': METADATA.HMR,
|
||||||
|
}
|
||||||
|
}),
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Plugin: UglifyJsPlugin
|
||||||
|
* Description: Minimize all JavaScript output of chunks.
|
||||||
|
* Loaders are switched into minimizing mode.
|
||||||
|
*
|
||||||
|
* See: https://webpack.github.io/docs/list-of-plugins.html#uglifyjsplugin
|
||||||
|
*/
|
||||||
|
// NOTE: To debug prod builds uncomment //debug lines and comment //prod lines
|
||||||
|
// new UglifyJsPlugin({
|
||||||
|
// // beautify: true, //debug
|
||||||
|
// // mangle: false, //debug
|
||||||
|
// // dead_code: false, //debug
|
||||||
|
// // unused: false, //debug
|
||||||
|
// // deadCode: false, //debug
|
||||||
|
// // compress: {
|
||||||
|
// // screw_ie8: true,
|
||||||
|
// // keep_fnames: true,
|
||||||
|
// // drop_debugger: false,
|
||||||
|
// // dead_code: false,
|
||||||
|
// // unused: false
|
||||||
|
// // }, // debug
|
||||||
|
// // comments: true, //debug
|
||||||
|
//
|
||||||
|
//
|
||||||
|
// beautify: false, //prod
|
||||||
|
// mangle: {
|
||||||
|
// screw_ie8: true,
|
||||||
|
// keep_fnames: true
|
||||||
|
// }, //prod
|
||||||
|
// compress: {
|
||||||
|
// screw_ie8: true
|
||||||
|
// }, //prod
|
||||||
|
// comments: false //prod
|
||||||
|
// }),
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Plugin: NormalModuleReplacementPlugin
|
||||||
|
* Description: Replace resources that matches resourceRegExp with newResource
|
||||||
|
*
|
||||||
|
* See: http://webpack.github.io/docs/list-of-plugins.html#normalmodulereplacementplugin
|
||||||
|
*/
|
||||||
|
|
||||||
|
new NormalModuleReplacementPlugin(
|
||||||
|
/angular2-hmr/,
|
||||||
|
helpers.root('config/modules/angular2-hmr-prod.js')
|
||||||
|
),
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Plugin: IgnorePlugin
|
||||||
|
* Description: Don’t generate modules for requests matching the provided RegExp.
|
||||||
|
*
|
||||||
|
* See: http://webpack.github.io/docs/list-of-plugins.html#ignoreplugin
|
||||||
|
*/
|
||||||
|
|
||||||
|
// new IgnorePlugin(/angular2-hmr/),
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Plugin: CompressionPlugin
|
||||||
|
* Description: Prepares compressed versions of assets to serve
|
||||||
|
* them with Content-Encoding
|
||||||
|
*
|
||||||
|
* See: https://github.com/webpack/compression-webpack-plugin
|
||||||
|
*/
|
||||||
|
// install compression-webpack-plugin
|
||||||
|
// new CompressionPlugin({
|
||||||
|
// regExp: /\.css$|\.html$|\.js$|\.map$/,
|
||||||
|
// threshold: 2 * 1024
|
||||||
|
// })
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Plugin: CopyWebpackPlugin
|
||||||
|
* Description: Copy files and directories in webpack.
|
||||||
|
*
|
||||||
|
* Copies project static assets.
|
||||||
|
*
|
||||||
|
* See: https://www.npmjs.com/package/copy-webpack-plugin
|
||||||
|
*/
|
||||||
|
new CopyWebpackPlugin([
|
||||||
|
{ from: 'src/assets', to: 'assets' },
|
||||||
|
{ from: 'node_modules/ckeditor', to: 'ckeditor' },
|
||||||
|
{ from: 'src/meta'}
|
||||||
|
]),
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Plugin: HtmlWebpackPlugin
|
||||||
|
* Description: Simplifies creation of HTML files to serve your webpack bundles.
|
||||||
|
* This is especially useful for webpack bundles that include a hash in the filename
|
||||||
|
* which changes every compilation.
|
||||||
|
*
|
||||||
|
* See: https://github.com/ampedandwired/html-webpack-plugin
|
||||||
|
*/
|
||||||
|
new HtmlWebpackPlugin({
|
||||||
|
template: 'src/index.html',
|
||||||
|
title: METADATA.title,
|
||||||
|
chunksSortMode: 'dependency',
|
||||||
|
metadata: METADATA,
|
||||||
|
inject: 'head'
|
||||||
|
}),
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Plugin: ScriptExtHtmlWebpackPlugin
|
||||||
|
* Description: Enhances html-webpack-plugin functionality
|
||||||
|
* with different deployment options for your scripts including:
|
||||||
|
*
|
||||||
|
* See: https://github.com/numical/script-ext-html-webpack-plugin
|
||||||
|
*/
|
||||||
|
new ScriptExtHtmlWebpackPlugin({
|
||||||
|
defaultAttribute: 'defer'
|
||||||
|
}),
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Plugin: HtmlHeadConfigPlugin
|
||||||
|
* Description: Generate html tags based on javascript maps.
|
||||||
|
*
|
||||||
|
* If a publicPath is set in the webpack output configuration, it will be automatically added to
|
||||||
|
* href attributes, you can disable that by adding a "=href": false property.
|
||||||
|
* You can also enable it to other attribute by settings "=attName": true.
|
||||||
|
*
|
||||||
|
* The configuration supplied is map between a location (key) and an element definition object (value)
|
||||||
|
* The location (key) is then exported to the template under then htmlElements property in webpack configuration.
|
||||||
|
*
|
||||||
|
* Example:
|
||||||
|
* Adding this plugin configuration
|
||||||
|
* new HtmlElementsPlugin({
|
||||||
|
* headTags: { ... }
|
||||||
|
* })
|
||||||
|
*
|
||||||
|
* Means we can use it in the template like this:
|
||||||
|
* <%= webpackConfig.htmlElements.headTags %>
|
||||||
|
*
|
||||||
|
* Dependencies: HtmlWebpackPlugin
|
||||||
|
*/
|
||||||
|
new HtmlElementsPlugin({
|
||||||
|
headTags: require('./head-config.common')
|
||||||
|
}),
|
||||||
|
|
||||||
|
new webpack.ProvidePlugin({
|
||||||
|
$: "jquery",
|
||||||
|
jQuery: "jquery",
|
||||||
|
"window.jQuery": "jquery",
|
||||||
|
Tether: "tether",
|
||||||
|
"window.Tether": "tether",
|
||||||
|
Tooltip: "exports-loader?Tooltip!bootstrap/js/dist/tooltip",
|
||||||
|
Alert: "exports-loader?Alert!bootstrap/js/dist/alert",
|
||||||
|
Button: "exports-loader?Button!bootstrap/js/dist/button",
|
||||||
|
Carousel: "exports-loader?Carousel!bootstrap/js/dist/carousel",
|
||||||
|
Collapse: "exports-loader?Collapse!bootstrap/js/dist/collapse",
|
||||||
|
Dropdown: "exports-loader?Dropdown!bootstrap/js/dist/dropdown",
|
||||||
|
Modal: "exports-loader?Modal!bootstrap/js/dist/modal",
|
||||||
|
Popover: "exports-loader?Popover!bootstrap/js/dist/popover",
|
||||||
|
Scrollspy: "exports-loader?Scrollspy!bootstrap/js/dist/scrollspy",
|
||||||
|
Tab: "exports-loader?Tab!bootstrap/js/dist/tab",
|
||||||
|
Util: "exports-loader?Util!bootstrap/js/dist/util"
|
||||||
|
}),
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Plugin LoaderOptionsPlugin (experimental)
|
||||||
|
*
|
||||||
|
* See: https://gist.github.com/sokra/27b24881210b56bbaff7
|
||||||
|
*/
|
||||||
|
new LoaderOptionsPlugin({
|
||||||
|
debug: false,
|
||||||
|
options: {
|
||||||
|
context: helpers.root('src'),
|
||||||
|
output: {
|
||||||
|
path: helpers.root('dist')
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Static analysis linter for TypeScript advanced options configuration
|
||||||
|
* Description: An extensible linter for the TypeScript language.
|
||||||
|
*
|
||||||
|
* See: https://github.com/wbuchwalter/tslint-loader
|
||||||
|
*/
|
||||||
|
tslint: {
|
||||||
|
emitErrors: true,
|
||||||
|
failOnHint: true,
|
||||||
|
resourcePath: 'src'
|
||||||
|
},
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Html loader advanced options
|
||||||
|
*
|
||||||
|
* See: https://github.com/webpack/html-loader#advanced-options
|
||||||
|
*/
|
||||||
|
// TODO: Need to workaround Angular 2's html syntax => #id [bind] (event) *ngFor
|
||||||
|
htmlLoader: {
|
||||||
|
minimize: true,
|
||||||
|
removeAttributeQuotes: false,
|
||||||
|
caseSensitive: true,
|
||||||
|
customAttrSurround: [
|
||||||
|
[/#/, /(?:)/],
|
||||||
|
[/\*/, /(?:)/],
|
||||||
|
[/\[?\(?/, /(?:)/]
|
||||||
|
],
|
||||||
|
customAttrAssign: [/\)?\]?=/]
|
||||||
|
},
|
||||||
|
|
||||||
|
}
|
||||||
|
}),
|
||||||
|
|
||||||
|
],
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Include polyfills or mocks for various node stuff
|
||||||
|
* Description: Node configuration
|
||||||
|
*
|
||||||
|
* See: https://webpack.github.io/docs/configuration.html#node
|
||||||
|
*/
|
||||||
|
node: {
|
||||||
|
global: true,
|
||||||
|
crypto: 'empty',
|
||||||
|
process: false,
|
||||||
|
module: false,
|
||||||
|
clearImmediate: false,
|
||||||
|
setImmediate: false
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -247,6 +247,7 @@ module.exports = function (options) {
|
||||||
*/
|
*/
|
||||||
new CopyWebpackPlugin([
|
new CopyWebpackPlugin([
|
||||||
{ from: 'src/assets', to: 'assets' },
|
{ from: 'src/assets', to: 'assets' },
|
||||||
|
{ from: 'node_modules/ckeditor', to: 'ckeditor' },
|
||||||
{ from: 'src/meta'}
|
{ from: 'src/meta'}
|
||||||
]),
|
]),
|
||||||
|
|
||||||
|
|
|
||||||
97
package.json
97
package.json
|
|
@ -6,6 +6,7 @@
|
||||||
"homepage": "http://akveo.github.io/ng2-admin/",
|
"homepage": "http://akveo.github.io/ng2-admin/",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
||||||
"@angular/common": "2.2.3",
|
"@angular/common": "2.2.3",
|
||||||
"@angular/compiler": "2.2.3",
|
"@angular/compiler": "2.2.3",
|
||||||
"@angular/core": "2.2.3",
|
"@angular/core": "2.2.3",
|
||||||
|
|
@ -15,9 +16,11 @@
|
||||||
"@angular/platform-browser-dynamic": "2.2.3",
|
"@angular/platform-browser-dynamic": "2.2.3",
|
||||||
"@angular/platform-server": "2.2.3",
|
"@angular/platform-server": "2.2.3",
|
||||||
"@angular/router": "3.2.3",
|
"@angular/router": "3.2.3",
|
||||||
|
|
||||||
"@angularclass/conventions-loader": "^1.0.2",
|
"@angularclass/conventions-loader": "^1.0.2",
|
||||||
"@angularclass/hmr": "~1.2.2",
|
"@angularclass/hmr": "~1.2.2",
|
||||||
"@angularclass/hmr-loader": "~3.0.2",
|
"@angularclass/hmr-loader": "~3.0.2",
|
||||||
|
|
||||||
"amcharts3": "github:amcharts/amcharts3",
|
"amcharts3": "github:amcharts/amcharts3",
|
||||||
"ammap3": "github:amcharts/ammap3",
|
"ammap3": "github:amcharts/ammap3",
|
||||||
"animate.css": "^3.5.1",
|
"animate.css": "^3.5.1",
|
||||||
|
|
@ -43,11 +46,11 @@
|
||||||
"leaflet": "^0.7.7",
|
"leaflet": "^0.7.7",
|
||||||
"leaflet-map": "^0.2.1",
|
"leaflet-map": "^0.2.1",
|
||||||
"lodash": "^4.12.0",
|
"lodash": "^4.12.0",
|
||||||
"ng2-bootstrap": "^1.3.0",
|
"ng2-bootstrap": "1.1.16",
|
||||||
"ng2-ckeditor": "1.0.7",
|
"ng2-ckeditor": "1.1.4",
|
||||||
"ng2-smart-table": "^0.3.2",
|
"ng2-smart-table": "^0.3.2",
|
||||||
"ng2-tree": "^0.0.2-7",
|
"ng2-tree": "^0.0.2-7",
|
||||||
"ng2-uploader": "1.1.0",
|
"ng2-uploader": "1.6.1",
|
||||||
"normalize.css": "^4.1.1",
|
"normalize.css": "^4.1.1",
|
||||||
"postcss-loader": "^1.0.0",
|
"postcss-loader": "^1.0.0",
|
||||||
"rxjs": "5.0.0-beta.12",
|
"rxjs": "5.0.0-beta.12",
|
||||||
|
|
@ -55,60 +58,62 @@
|
||||||
"zone.js": "~0.7.1"
|
"zone.js": "~0.7.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"@ngtools/webpack": "1.1.9",
|
||||||
|
"@angular/compiler-cli": "2.2.3",
|
||||||
|
"angular2-router-loader": "^0.3.4",
|
||||||
|
"angular2-template-loader": "^0.6.0",
|
||||||
"@types/electron": "^1.3.20",
|
"@types/electron": "^1.3.20",
|
||||||
"@types/fullcalendar": "^2.7.35",
|
|
||||||
"@types/hammerjs": "^2.0.33",
|
"@types/hammerjs": "^2.0.33",
|
||||||
"@types/jasmine": "^2.2.34",
|
"@types/jasmine": "^2.2.34",
|
||||||
"@types/jquery ": "^2.0.33",
|
|
||||||
"@types/jquery.slimscroll": "^1.3.30",
|
|
||||||
"@types/lodash": "0.0.28",
|
|
||||||
"@types/node": "^6.0.38",
|
"@types/node": "^6.0.38",
|
||||||
"@types/source-map": "^0.1.27",
|
"@types/source-map": "^0.1.27",
|
||||||
"@types/uglify-js": "^2.0.27",
|
"@types/uglify-js": "^2.0.27",
|
||||||
"@types/webpack": "2.0.0",
|
"@types/webpack": "2.0.0",
|
||||||
"angular2-router-loader": "^0.3.4",
|
"@types/lodash": "0.0.28",
|
||||||
"angular2-template-loader": "^0.6.0",
|
"@types/jquery ": "^2.0.33",
|
||||||
"awesome-typescript-loader": "^2.2.1",
|
"@types/fullcalendar": "^2.7.35",
|
||||||
|
"@types/jquery.slimscroll": "^1.3.30",
|
||||||
|
"gh-pages": "^0.11.0",
|
||||||
|
"parse5": "^2.2.2",
|
||||||
|
"rimraf": "~2.5.4",
|
||||||
|
"script-ext-html-webpack-plugin": "^1.3.2",
|
||||||
"codelyzer": "~1.0.0-beta.4",
|
"codelyzer": "~1.0.0-beta.4",
|
||||||
"compression-webpack-plugin": "0.3.2",
|
"tslint": "3.15.1",
|
||||||
"copy-webpack-plugin": "4.0.1",
|
"ts-helpers": "1.1.2",
|
||||||
|
"ts-node": "^1.7.0",
|
||||||
|
"typedoc": "^0.5.0",
|
||||||
|
"typescript": "2.0.3",
|
||||||
|
"awesome-typescript-loader": "^2.2.1",
|
||||||
|
"tslint-loader": "^2.1.3",
|
||||||
|
"url-loader": "^0.5.7",
|
||||||
|
"style-loader": "^0.13.1",
|
||||||
|
"raw-loader": "0.5.1",
|
||||||
|
"source-map-loader": "^0.1.5",
|
||||||
|
"string-replace-loader": "1.0.5",
|
||||||
|
"imports-loader": "^0.6.5",
|
||||||
|
"json-loader": "^0.5.4",
|
||||||
"css-loader": "^0.25.0",
|
"css-loader": "^0.25.0",
|
||||||
"electron": "^1.4.0",
|
|
||||||
"es6-promise": "^3.1.2",
|
|
||||||
"es6-shim": "^0.35.0",
|
|
||||||
"es7-reflect-metadata": "^1.6.0",
|
|
||||||
"exports-loader": "^0.6.3",
|
"exports-loader": "^0.6.3",
|
||||||
"expose-loader": "^0.7.1",
|
"expose-loader": "^0.7.1",
|
||||||
"file-loader": "^0.9.0",
|
"file-loader": "^0.9.0",
|
||||||
"gh-pages": "^0.11.0",
|
|
||||||
"html-webpack-plugin": "2.26.0",
|
|
||||||
"imports-loader": "^0.6.5",
|
|
||||||
"json-loader": "^0.5.4",
|
|
||||||
"node-sass": "^3.5.3",
|
|
||||||
"parse5": "^2.2.2",
|
|
||||||
"raw-loader": "0.5.1",
|
|
||||||
"resolve-url-loader": "^1.4.3",
|
|
||||||
"rimraf": "~2.5.4",
|
|
||||||
"sass-loader": "^4.0.2",
|
|
||||||
"script-ext-html-webpack-plugin": "1.5.0",
|
|
||||||
"source-map-loader": "^0.1.5",
|
|
||||||
"string-replace-loader": "1.0.5",
|
|
||||||
"style-loader": "^0.13.1",
|
|
||||||
"to-string-loader": "^1.1.4",
|
"to-string-loader": "^1.1.4",
|
||||||
"ts-helpers": "1.1.2",
|
"sass-loader": "^4.0.2",
|
||||||
"ts-node": "^1.7.0",
|
"resolve-url-loader": "^1.4.3",
|
||||||
"tslint": "3.15.1",
|
"node-sass": "^3.5.3",
|
||||||
"tslint-loader": "^2.1.3",
|
"html-webpack-plugin": "^2.21.0",
|
||||||
"typedoc": "^0.5.0",
|
"copy-webpack-plugin": "^3.0.1",
|
||||||
"typescript": "2.0.3",
|
"v8-lazy-parse-webpack-plugin": "^0.3.0",
|
||||||
"url-loader": "^0.5.7",
|
"webpack": "2.1.0-beta.27",
|
||||||
"v8-lazy-parse-webpack-plugin": "0.3.0",
|
"webpack-dashboard": "^0.1.8",
|
||||||
"webpack": "2.2.0",
|
"webpack-dev-middleware": "^1.6.1",
|
||||||
"webpack-dashboard": "0.2.1",
|
"webpack-dev-server": "2.1.0-beta.11",
|
||||||
"webpack-dev-middleware": "1.9.0",
|
"webpack-md5-hash": "^0.0.5",
|
||||||
"webpack-dev-server": "2.2.0",
|
"webpack-merge": "^0.17.0",
|
||||||
"webpack-md5-hash": "0.0.5",
|
"compression-webpack-plugin": "^0.3.1",
|
||||||
"webpack-merge": "2.4.0"
|
"es6-promise": "^3.1.2",
|
||||||
|
"es6-shim": "^0.35.0",
|
||||||
|
"es7-reflect-metadata": "^1.6.0",
|
||||||
|
"electron": "^1.4.0"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"rimraf": "rimraf",
|
"rimraf": "rimraf",
|
||||||
|
|
@ -154,7 +159,9 @@
|
||||||
"postbuild:electron.full": "npm run electron:start",
|
"postbuild:electron.full": "npm run electron:start",
|
||||||
"build:electron.renderer": "npm run webpack -- --config config/electron/webpack.renderer.prod.js",
|
"build:electron.renderer": "npm run webpack -- --config config/electron/webpack.renderer.prod.js",
|
||||||
"build:electron.main": "npm run webpack -- --config config/electron/webpack.electron.prod.js",
|
"build:electron.main": "npm run webpack -- --config config/electron/webpack.electron.prod.js",
|
||||||
"electron:start": "electron build"
|
"electron:start": "electron build",
|
||||||
|
"prebuild:aot": "npm run clean:dist",
|
||||||
|
"build:aot": "webpack --config config/webpack.aot.js --progress --profile"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|
|
||||||
|
|
@ -8,14 +8,17 @@ import { BaThemeConfig } from './theme/theme.config';
|
||||||
import { BaMenuService } from './theme';
|
import { BaMenuService } from './theme';
|
||||||
|
|
||||||
import { MENU } from './app.menu';
|
import { MENU } from './app.menu';
|
||||||
|
|
||||||
|
import 'style!./app.scss';
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* App Component
|
* App Component
|
||||||
* Top Level Component
|
* Top Level Component
|
||||||
*/
|
*/
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app',
|
selector: 'app',
|
||||||
encapsulation: ViewEncapsulation.None,
|
// // encapsulation: ViewEncapsulation.None,
|
||||||
styles: [require('normalize.css'), require('./app.scss')],
|
// styleUrls: ['./app.scss'],
|
||||||
template: `
|
template: `
|
||||||
<main [ngClass]="{'menu-collapsed': isMenuCollapsed}" baThemeRun>
|
<main [ngClass]="{'menu-collapsed': isMenuCollapsed}" baThemeRun>
|
||||||
<div class="additional-bg"></div>
|
<div class="additional-bg"></div>
|
||||||
|
|
|
||||||
|
|
@ -1,2 +1,2 @@
|
||||||
// this css loaded separately as a standalone file to speed up the initial styles loading
|
// this css loaded separately as a standalone file to speed up the initial styles loading
|
||||||
require('./theme/initial.scss');
|
import './theme/initial.scss';
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ const APP_PROVIDERS = [
|
||||||
GlobalState
|
GlobalState
|
||||||
];
|
];
|
||||||
|
|
||||||
type StoreType = {
|
export type StoreType = {
|
||||||
state: InternalStateType,
|
state: InternalStateType,
|
||||||
restoreInputValues: () => void,
|
restoreInputValues: () => void,
|
||||||
disposeOldHosts: () => void
|
disposeOldHosts: () => void
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,9 @@
|
||||||
import { Routes, RouterModule } from '@angular/router';
|
import { Routes, RouterModule } from '@angular/router';
|
||||||
|
import { ModuleWithProviders } from '@angular/core';
|
||||||
|
|
||||||
export const routes: Routes = [
|
export const routes: Routes = [
|
||||||
{ path: '', redirectTo: 'pages', pathMatch: 'full' },
|
{ path: '', redirectTo: 'pages', pathMatch: 'full' },
|
||||||
{ path: '**', redirectTo: 'pages/dashboard' }
|
{ path: '**', redirectTo: 'pages/dashboard' }
|
||||||
];
|
];
|
||||||
|
|
||||||
export const routing = RouterModule.forRoot(routes, { useHash: true });
|
export const routing: ModuleWithProviders = RouterModule.forRoot(routes, { useHash: true });
|
||||||
|
|
|
||||||
|
|
@ -1 +1,2 @@
|
||||||
|
@import "~normalize.css";
|
||||||
@import "theme/theme";
|
@import "theme/theme";
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
// TODO: should be from webpack
|
||||||
|
const ENV = 'production';
|
||||||
|
|
||||||
// Angular 2
|
// Angular 2
|
||||||
// rc2 workaround
|
// rc2 workaround
|
||||||
|
|
|
||||||
|
|
@ -24,4 +24,4 @@ import { ChartistJsService } from './components/chartistJs/chartistJs.service';
|
||||||
ChartistJsService
|
ChartistJsService
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
export default class ChartsModule {}
|
export class ChartsModule {}
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,11 @@
|
||||||
import {Component, ViewEncapsulation} from '@angular/core';
|
import {Component, ViewEncapsulation} from '@angular/core';
|
||||||
|
|
||||||
import {ChartistJsService} from './chartistJs.service';
|
import {ChartistJsService} from './chartistJs.service';
|
||||||
|
import 'style!./chartistJs.scss';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'chartist-js',
|
selector: 'chartist-js',
|
||||||
encapsulation: ViewEncapsulation.None,
|
templateUrl: './chartistJs.html',
|
||||||
styles: [require('chartist/dist/chartist.css'), require('./chartistJs.scss')],
|
|
||||||
template: require('./chartistJs.html'),
|
|
||||||
})
|
})
|
||||||
|
|
||||||
export class ChartistJs {
|
export class ChartistJs {
|
||||||
|
|
|
||||||
|
|
@ -1,13 +0,0 @@
|
||||||
import {Component} from '@angular/core';
|
|
||||||
|
|
||||||
@Component({
|
|
||||||
selector: 'components',
|
|
||||||
styles: [],
|
|
||||||
template: `<router-outlet></router-outlet>`
|
|
||||||
})
|
|
||||||
export class Components {
|
|
||||||
|
|
||||||
constructor() {
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
@ -1,25 +0,0 @@
|
||||||
import { NgModule } from '@angular/core';
|
|
||||||
import { CommonModule } from '@angular/common';
|
|
||||||
import { FormsModule } from '@angular/forms';
|
|
||||||
import { NgaModule } from '../../theme/nga.module';
|
|
||||||
import { TreeComponent } from 'ng2-tree/index';
|
|
||||||
|
|
||||||
import { routing } from './components.routing';
|
|
||||||
import { Components } from './components.component';
|
|
||||||
import { TreeView } from './components/treeView/treeView.component';
|
|
||||||
|
|
||||||
// TODO: tree component?
|
|
||||||
@NgModule({
|
|
||||||
imports: [
|
|
||||||
CommonModule,
|
|
||||||
FormsModule,
|
|
||||||
NgaModule,
|
|
||||||
routing
|
|
||||||
],
|
|
||||||
declarations: [
|
|
||||||
Components,
|
|
||||||
TreeView,
|
|
||||||
TreeComponent
|
|
||||||
]
|
|
||||||
})
|
|
||||||
export default class ComponentsModule {}
|
|
||||||
|
|
@ -1,17 +0,0 @@
|
||||||
import { Routes, RouterModule } from '@angular/router';
|
|
||||||
|
|
||||||
import { Components } from './components.component';
|
|
||||||
import { TreeView } from './components/treeView/treeView.component';
|
|
||||||
|
|
||||||
// noinspection TypeScriptValidateTypes
|
|
||||||
const routes: Routes = [
|
|
||||||
{
|
|
||||||
path: '',
|
|
||||||
component: Components,
|
|
||||||
children: [
|
|
||||||
{ path: 'treeview', component: TreeView }
|
|
||||||
]
|
|
||||||
}
|
|
||||||
];
|
|
||||||
|
|
||||||
export const routing = RouterModule.forChild(routes);
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
@import '../../theme/sass/treeView';
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
export * from './treeView.component';
|
|
||||||
|
|
@ -1,36 +0,0 @@
|
||||||
import {Component} from '@angular/core';
|
|
||||||
import {TreeModel} from 'ng2-tree';
|
|
||||||
|
|
||||||
@Component({
|
|
||||||
selector: 'tree-view',
|
|
||||||
template: require('./treeView.html'),
|
|
||||||
})
|
|
||||||
|
|
||||||
export class TreeView {
|
|
||||||
|
|
||||||
private tree: TreeModel = {
|
|
||||||
value: 'Programming languages by programming paradigm',
|
|
||||||
children: [
|
|
||||||
{
|
|
||||||
value: 'Object-oriented programming',
|
|
||||||
children: [
|
|
||||||
{value: 'Java'},
|
|
||||||
{value: 'C++'},
|
|
||||||
{value: 'C#'},
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
value: 'Prototype-based programming',
|
|
||||||
children: [
|
|
||||||
{value: 'JavaScript'},
|
|
||||||
{value: 'CoffeeScript'},
|
|
||||||
{value: 'Lua'},
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
};
|
|
||||||
|
|
||||||
constructor() {
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
@ -1,5 +0,0 @@
|
||||||
<div class="col-md-6">
|
|
||||||
<ba-card title="basic">
|
|
||||||
<tree id="tree-view" [tree]="tree"></tree>
|
|
||||||
</ba-card>
|
|
||||||
</div>
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
export * from './components.component';
|
|
||||||
|
|
@ -1,12 +1,12 @@
|
||||||
import {Component, ViewEncapsulation} from '@angular/core';
|
import {Component, ViewEncapsulation} from '@angular/core';
|
||||||
|
|
||||||
import {CalendarService} from './calendar.service';
|
import {CalendarService} from './calendar.service';
|
||||||
|
import 'style!./calendar.scss';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'calendar',
|
selector: 'calendar',
|
||||||
encapsulation: ViewEncapsulation.None,
|
// // encapsulation: ViewEncapsulation.None,
|
||||||
styles: [require('./calendar.scss')],
|
templateUrl: './calendar.html'
|
||||||
template: require('./calendar.html')
|
|
||||||
})
|
})
|
||||||
export class Calendar {
|
export class Calendar {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,9 @@
|
||||||
import {Component, ViewEncapsulation} from '@angular/core';
|
import {Component} from '@angular/core';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'dashboard',
|
selector: 'dashboard',
|
||||||
encapsulation: ViewEncapsulation.None,
|
styleUrls: ['./dashboard.scss'],
|
||||||
styles: [require('./dashboard.scss')],
|
templateUrl: './dashboard.html'
|
||||||
template: require('./dashboard.html')
|
|
||||||
})
|
})
|
||||||
export class Dashboard {
|
export class Dashboard {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -50,4 +50,4 @@ import { UsersMapService } from './usersMap/usersMap.service';
|
||||||
UsersMapService
|
UsersMapService
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
export default class DashboardModule {}
|
export class DashboardModule {}
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,10 @@
|
||||||
import { Routes, RouterModule } from '@angular/router';
|
import { Routes, RouterModule } from '@angular/router';
|
||||||
|
|
||||||
import { Dashboard } from './dashboard.component';
|
import { Dashboard } from './dashboard.component';
|
||||||
|
import { ModuleWithProviders } from '@angular/core';
|
||||||
|
|
||||||
// noinspection TypeScriptValidateTypes
|
// noinspection TypeScriptValidateTypes
|
||||||
const routes: Routes = [
|
export const routes: Routes = [
|
||||||
{
|
{
|
||||||
path: '',
|
path: '',
|
||||||
component: Dashboard,
|
component: Dashboard,
|
||||||
|
|
@ -13,4 +14,4 @@ const routes: Routes = [
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
export const routing = RouterModule.forChild(routes);
|
export const routing: ModuleWithProviders = RouterModule.forChild(routes);
|
||||||
|
|
|
||||||
|
|
@ -4,9 +4,9 @@ import {FeedService} from './feed.service';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'feed',
|
selector: 'feed',
|
||||||
encapsulation: ViewEncapsulation.None,
|
// // encapsulation: ViewEncapsulation.None,
|
||||||
styles: [require('./feed.scss')],
|
styleUrls: ['./feed.scss'],
|
||||||
template: require('./feed.html')
|
templateUrl: './feed.html'
|
||||||
})
|
})
|
||||||
export class Feed {
|
export class Feed {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,12 @@
|
||||||
import {Component, ViewEncapsulation} from '@angular/core';
|
import {Component} from '@angular/core';
|
||||||
|
|
||||||
import {LineChartService} from './lineChart.service';
|
import {LineChartService} from './lineChart.service';
|
||||||
|
|
||||||
|
import 'style!./lineChart.scss';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'line-chart',
|
selector: 'line-chart',
|
||||||
encapsulation: ViewEncapsulation.None,
|
templateUrl: './lineChart.html'
|
||||||
styles: [require('./lineChart.scss')],
|
|
||||||
template: require('./lineChart.html')
|
|
||||||
})
|
})
|
||||||
export class LineChart {
|
export class LineChart {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,12 +3,11 @@ import {Component, ViewEncapsulation} from '@angular/core';
|
||||||
import {PieChartService} from './pieChart.service';
|
import {PieChartService} from './pieChart.service';
|
||||||
|
|
||||||
import './pieChart.loader.ts';
|
import './pieChart.loader.ts';
|
||||||
|
import 'style!./pieChart.scss';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'pie-chart',
|
selector: 'pie-chart',
|
||||||
encapsulation: ViewEncapsulation.None,
|
templateUrl: './pieChart.html'
|
||||||
styles: [require('./pieChart.scss')],
|
|
||||||
template: require('./pieChart.html')
|
|
||||||
})
|
})
|
||||||
// TODO: move easypiechart to component
|
// TODO: move easypiechart to component
|
||||||
export class PieChart {
|
export class PieChart {
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
require('easy-pie-chart/dist/jquery.easypiechart.js');
|
import 'easy-pie-chart/dist/jquery.easypiechart.js';
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,9 @@
|
||||||
import {Component, ViewEncapsulation} from '@angular/core';
|
import {Component} from '@angular/core';
|
||||||
|
import 'style!./popularApp.scss';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'popular-app',
|
selector: 'popular-app',
|
||||||
encapsulation: ViewEncapsulation.None,
|
templateUrl: './popularApp.html'
|
||||||
styles: [require('./popularApp.scss')],
|
|
||||||
template: require('./popularApp.html')
|
|
||||||
})
|
})
|
||||||
export class PopularApp {
|
export class PopularApp {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,12 +5,12 @@ import {TodoService} from './todo.service';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'todo',
|
selector: 'todo',
|
||||||
encapsulation: ViewEncapsulation.None,
|
// encapsulation: ViewEncapsulation.None,
|
||||||
styles: [require('./todo.scss')],
|
styleUrls: ['./todo.scss'],
|
||||||
template: require('./todo.html')
|
templateUrl: './todo.html'
|
||||||
})
|
})
|
||||||
export class Todo {
|
export class Todo {
|
||||||
|
|
||||||
public dashboardColors = this._baConfig.get().colors.dashboard;
|
public dashboardColors = this._baConfig.get().colors.dashboard;
|
||||||
|
|
||||||
public todoList:Array<any>;
|
public todoList:Array<any>;
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,14 @@
|
||||||
import {Component, ViewEncapsulation, ElementRef} from '@angular/core';
|
import {Component, ViewEncapsulation, ElementRef} from '@angular/core';
|
||||||
|
|
||||||
import {Chart} from './trafficChart.loader.ts';
|
import './trafficChart.loader.ts';
|
||||||
import {TrafficChartService} from './trafficChart.service';
|
import {TrafficChartService} from './trafficChart.service';
|
||||||
|
import * as Chart from 'chart.js';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'traffic-chart',
|
selector: 'traffic-chart',
|
||||||
encapsulation: ViewEncapsulation.None,
|
// encapsulation: ViewEncapsulation.None,
|
||||||
styles: [require('./trafficChart.scss')],
|
styleUrls: ['./trafficChart.scss'],
|
||||||
template: require('./trafficChart.html')
|
templateUrl: './trafficChart.html'
|
||||||
})
|
})
|
||||||
|
|
||||||
// TODO: move chart.js to it's own component
|
// TODO: move chart.js to it's own component
|
||||||
|
|
|
||||||
|
|
@ -1 +1,3 @@
|
||||||
export const Chart = require('chart.js');
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,11 @@
|
||||||
import {Component, ViewEncapsulation} from '@angular/core';
|
import {Component} from '@angular/core';
|
||||||
|
|
||||||
import {UsersMapService} from './usersMap.service';
|
import {UsersMapService} from './usersMap.service';
|
||||||
|
import 'style!./usersMap.scss';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'users-map',
|
selector: 'users-map',
|
||||||
encapsulation: ViewEncapsulation.None,
|
templateUrl: './usersMap.html'
|
||||||
styles: [require('./usersMap.scss')],
|
|
||||||
template: require('./usersMap.html')
|
|
||||||
})
|
})
|
||||||
export class UsersMap {
|
export class UsersMap {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,9 +4,9 @@ import './ckeditor.loader.ts';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'ckeditor-component',
|
selector: 'ckeditor-component',
|
||||||
encapsulation: ViewEncapsulation.None,
|
// encapsulation: ViewEncapsulation.None,
|
||||||
template: require('./ckeditor.html'),
|
templateUrl: './ckeditor.html',
|
||||||
styles: [require('./ckeditor.scss')]
|
styleUrls: ['./ckeditor.scss']
|
||||||
})
|
})
|
||||||
|
|
||||||
export class Ckeditor {
|
export class Ckeditor {
|
||||||
|
|
|
||||||
|
|
@ -1,2 +1,2 @@
|
||||||
window['CKEDITOR_BASEPATH'] = '//cdn.ckeditor.com/4.6.0/standard/';
|
window['CKEDITOR_BASEPATH'] = '//cdn.ckeditor.com/4.6.0/standard/';
|
||||||
require('ckeditor');
|
import 'ckeditor';
|
||||||
|
|
|
||||||
|
|
@ -22,5 +22,5 @@ import { Ckeditor } from './components/ckeditor/ckeditor.component';
|
||||||
Ckeditor
|
Ckeditor
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
export default class EditorsModule {
|
export class EditorsModule {
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ import {Component} from '@angular/core';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'checkbox-inputs',
|
selector: 'checkbox-inputs',
|
||||||
template: require('./checkboxInputs.html'),
|
templateUrl: './checkboxInputs.html',
|
||||||
})
|
})
|
||||||
export class CheckboxInputs {
|
export class CheckboxInputs {
|
||||||
public checkboxModel = [{
|
public checkboxModel = [{
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ import {Component} from '@angular/core';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'group-inputs',
|
selector: 'group-inputs',
|
||||||
template: require('./groupInputs.html'),
|
templateUrl: './groupInputs.html',
|
||||||
})
|
})
|
||||||
export class GroupInputs {
|
export class GroupInputs {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ import { Component } from '@angular/core';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'rating-inputs',
|
selector: 'rating-inputs',
|
||||||
template: require('./ratinginputs.html')
|
templateUrl: './ratinginputs.html'
|
||||||
})
|
})
|
||||||
|
|
||||||
export class Rating {
|
export class Rating {
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,8 @@ import { Component } from '@angular/core';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'select-inputs',
|
selector: 'select-inputs',
|
||||||
styles: [require('./selectInput.scss')],
|
styleUrls: ['./selectInput.scss'],
|
||||||
template: require('./selectInputs.html')
|
templateUrl: './selectInputs.html'
|
||||||
})
|
})
|
||||||
export class SelectInputs {
|
export class SelectInputs {
|
||||||
constructor() { }
|
constructor() { }
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ import {Component} from '@angular/core';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'standard-inputs',
|
selector: 'standard-inputs',
|
||||||
template: require('./standardInputs.html'),
|
templateUrl: './standardInputs.html',
|
||||||
})
|
})
|
||||||
export class StandardInputs {
|
export class StandardInputs {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ import {Component} from '@angular/core';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'validation-inputs',
|
selector: 'validation-inputs',
|
||||||
template: require('./validationInputs.html'),
|
templateUrl: './validationInputs.html',
|
||||||
})
|
})
|
||||||
export class ValidationInputs {
|
export class ValidationInputs {
|
||||||
public checkboxModel = [{
|
public checkboxModel = [{
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,8 @@ import {Component, ViewEncapsulation} from '@angular/core';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'inputs',
|
selector: 'inputs',
|
||||||
encapsulation: ViewEncapsulation.None,
|
// encapsulation: ViewEncapsulation.None,
|
||||||
template: require('./inputs.html'),
|
templateUrl: './inputs.html',
|
||||||
})
|
})
|
||||||
export class Inputs {
|
export class Inputs {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ import {Component} from '@angular/core';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'basic-form',
|
selector: 'basic-form',
|
||||||
template: require('./basicForm.html'),
|
templateUrl: './basicForm.html',
|
||||||
})
|
})
|
||||||
export class BasicForm {
|
export class BasicForm {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ import {Component} from '@angular/core';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'block-form',
|
selector: 'block-form',
|
||||||
template: require('./blockForm.html'),
|
templateUrl: './blockForm.html',
|
||||||
})
|
})
|
||||||
export class BlockForm {
|
export class BlockForm {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ import {Component} from '@angular/core';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'horizontal-form',
|
selector: 'horizontal-form',
|
||||||
template: require('./horizontalForm.html'),
|
templateUrl: './horizontalForm.html',
|
||||||
})
|
})
|
||||||
export class HorizontalForm {
|
export class HorizontalForm {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,8 @@ import {Component} from '@angular/core';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'inline-form',
|
selector: 'inline-form',
|
||||||
styles: [require('./inlineForm.scss')],
|
styleUrls: ['./inlineForm.scss'],
|
||||||
template: require('./inlineForm.html'),
|
templateUrl: './inlineForm.html',
|
||||||
})
|
})
|
||||||
export class InlineForm {
|
export class InlineForm {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ import {Component} from '@angular/core';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'without-labels-form',
|
selector: 'without-labels-form',
|
||||||
template: require('./withoutLabelsForm.html'),
|
templateUrl: './withoutLabelsForm.html',
|
||||||
})
|
})
|
||||||
export class WithoutLabelsForm {
|
export class WithoutLabelsForm {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,9 +2,9 @@ import {Component, ViewEncapsulation} from '@angular/core';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'layouts',
|
selector: 'layouts',
|
||||||
encapsulation: ViewEncapsulation.None,
|
// encapsulation: ViewEncapsulation.None,
|
||||||
styles: [],
|
styles: [],
|
||||||
template: require('./layouts.html'),
|
templateUrl: './layouts.html',
|
||||||
})
|
})
|
||||||
export class Layouts {
|
export class Layouts {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -48,5 +48,5 @@ import { WithoutLabelsForm } from './components/layouts/components/withoutLabels
|
||||||
WithoutLabelsForm
|
WithoutLabelsForm
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
export default class FormsModule {
|
export class FormsModule {
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -3,9 +3,9 @@ import {FormGroup, AbstractControl, FormBuilder, Validators} from '@angular/form
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'login',
|
selector: 'login',
|
||||||
encapsulation: ViewEncapsulation.None,
|
// encapsulation: ViewEncapsulation.None,
|
||||||
styles: [require('./login.scss')],
|
styleUrls: ['./login.scss'],
|
||||||
template: require('./login.html'),
|
templateUrl: './login.html',
|
||||||
})
|
})
|
||||||
export class Login {
|
export class Login {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -19,4 +19,4 @@ import { routing } from './login.routing';
|
||||||
Login
|
Login
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
export default class LoginModule {}
|
export class LoginModule {}
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,14 @@
|
||||||
import { Routes, RouterModule } from '@angular/router';
|
import { Routes, RouterModule } from '@angular/router';
|
||||||
|
|
||||||
import { Login } from './login.component';
|
import { Login } from './login.component';
|
||||||
|
import { ModuleWithProviders } from '@angular/core';
|
||||||
|
|
||||||
// noinspection TypeScriptValidateTypes
|
// noinspection TypeScriptValidateTypes
|
||||||
const routes: Routes = [
|
export const routes: Routes = [
|
||||||
{
|
{
|
||||||
path: '',
|
path: '',
|
||||||
component: Login
|
component: Login
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
export const routing = RouterModule.forChild(routes);
|
export const routing: ModuleWithProviders = RouterModule.forChild(routes);
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,11 @@
|
||||||
import {Component, ViewEncapsulation} from '@angular/core';
|
import {Component} from '@angular/core';
|
||||||
|
|
||||||
import {BubbleMapsService} from './bubbleMaps.service';
|
import {BubbleMapsService} from './bubbleMaps.service';
|
||||||
|
import 'style!./bubbleMaps.scss';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'bubble-maps',
|
selector: 'bubble-maps',
|
||||||
encapsulation: ViewEncapsulation.None,
|
templateUrl: './bubbleMaps.html',
|
||||||
styles: [require('./bubbleMaps.scss')],
|
|
||||||
template: require('./bubbleMaps.html'),
|
|
||||||
})
|
})
|
||||||
export class BubbleMaps {
|
export class BubbleMaps {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
import {Component, ElementRef} from '@angular/core';
|
import {Component, ElementRef} from '@angular/core';
|
||||||
import {GoogleMapsLoader} from './googleMaps.loader';
|
import * as GoogleMapsLoader from 'google-maps';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'google-maps',
|
selector: 'google-maps',
|
||||||
styles: [require('./googleMaps.scss')],
|
styleUrls: ['./googleMaps.scss'],
|
||||||
template: require('./googleMaps.html'),
|
templateUrl: './googleMaps.html',
|
||||||
})
|
})
|
||||||
export class GoogleMaps {
|
export class GoogleMaps {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
export const GoogleMapsLoader = require('google-maps');
|
import * as GoogleMapsLoader from 'google-maps';
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,11 @@
|
||||||
import {Component, ViewEncapsulation, ElementRef} from '@angular/core';
|
import {Component, ElementRef} from '@angular/core';
|
||||||
|
|
||||||
import './leafletMaps.loader';
|
import './leafletMaps.loader';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'leaflet-maps',
|
selector: 'leaflet-maps',
|
||||||
encapsulation: ViewEncapsulation.None,
|
styleUrls: ['./leafletMaps.scss'],
|
||||||
styles: [require('./leafletMaps.scss')],
|
templateUrl: './leafletMaps.html'
|
||||||
template: require('./leafletMaps.html')
|
|
||||||
})
|
})
|
||||||
export class LeafletMaps {
|
export class LeafletMaps {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,2 +1 @@
|
||||||
require('leaflet-map');
|
import 'leaflet-map';
|
||||||
require('style-loader!leaflet/dist/leaflet.css');
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
@import "~leaflet/dist/leaflet";
|
||||||
@import '../../../../theme/sass/conf/conf';
|
@import '../../../../theme/sass/conf/conf';
|
||||||
|
|
||||||
.leaflet-maps {
|
.leaflet-maps {
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,11 @@
|
||||||
import {Component, ViewEncapsulation} from '@angular/core';
|
import {Component} from '@angular/core';
|
||||||
|
|
||||||
import {LineMapsService} from './lineMaps.service';
|
import {LineMapsService} from './lineMaps.service';
|
||||||
|
import 'style!./lineMaps.scss';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'line-maps',
|
selector: 'line-maps',
|
||||||
encapsulation: ViewEncapsulation.None,
|
templateUrl: './lineMaps.html'
|
||||||
styles: [require('./lineMaps.scss')],
|
|
||||||
template: require('./lineMaps.html')
|
|
||||||
})
|
})
|
||||||
export class LineMaps {
|
export class LineMaps {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -32,4 +32,4 @@ import { LineMapsService } from './components/lineMaps/lineMaps.service';
|
||||||
LineMapsService
|
LineMapsService
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
export default class MapsModule {}
|
export class MapsModule {}
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
import {Component, ViewEncapsulation} from '@angular/core';
|
import {Component, ViewEncapsulation} from '@angular/core';
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'pages',
|
selector: 'pages',
|
||||||
encapsulation: ViewEncapsulation.None,
|
// encapsulation: ViewEncapsulation.None,
|
||||||
styles: [],
|
styles: [],
|
||||||
template: `
|
template: `
|
||||||
<ba-sidebar></ba-sidebar>
|
<ba-sidebar></ba-sidebar>
|
||||||
|
|
|
||||||
|
|
@ -1,30 +1,34 @@
|
||||||
import { Routes, RouterModule } from '@angular/router';
|
import { Routes, RouterModule } from '@angular/router';
|
||||||
import { Pages } from './pages.component';
|
import { Pages } from './pages.component';
|
||||||
|
import { ModuleWithProviders } from '@angular/core';
|
||||||
// noinspection TypeScriptValidateTypes
|
// noinspection TypeScriptValidateTypes
|
||||||
const routes: Routes = [
|
|
||||||
|
// export function loadChildren(path) { return System.import(path); };
|
||||||
|
|
||||||
|
export const routes: Routes = [
|
||||||
{
|
{
|
||||||
path: 'login',
|
path: 'login',
|
||||||
loadChildren: () => System.import('./login/login.module')
|
loadChildren: 'app/pages/login/login.module#LoginModule'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'register',
|
path: 'register',
|
||||||
loadChildren: () => System.import('./register/register.module')
|
loadChildren: 'app/pages/register/register.module#RegisterModule'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'pages',
|
path: 'pages',
|
||||||
component: Pages,
|
component: Pages,
|
||||||
children: [
|
children: [
|
||||||
{ path: '', redirectTo: 'dashboard', pathMatch: 'full' },
|
{ path: '', redirectTo: 'dashboard', pathMatch: 'full' },
|
||||||
{ path: 'dashboard', loadChildren: () => System.import('./dashboard/dashboard.module') },
|
{ path: 'dashboard', loadChildren: 'app/pages/dashboard/dashboard.module#DashboardModule' },
|
||||||
{ path: 'editors', loadChildren: () => System.import('./editors/editors.module') },
|
{ path: 'editors', loadChildren: 'app/pages/editors/editors.module#EditorsModule' },
|
||||||
//{ path: 'components', loadChildren: () => System.import('./components/components.module') }
|
// //{ path: 'components', loadChildren: 'app/pages/components/components.module') }
|
||||||
{ path: 'charts', loadChildren: () => System.import('./charts/charts.module') },
|
{ path: 'charts', loadChildren: 'app/pages/charts/charts.module#ChartsModule' },
|
||||||
{ path: 'ui', loadChildren: () => System.import('./ui/ui.module') },
|
{ path: 'ui', loadChildren: 'app/pages/ui/ui.module#UiModule' },
|
||||||
{ path: 'forms', loadChildren: () => System.import('./forms/forms.module') },
|
{ path: 'forms', loadChildren: 'app/pages/forms/forms.module#FormsModule' },
|
||||||
{ path: 'tables', loadChildren: () => System.import('./tables/tables.module') },
|
{ path: 'tables', loadChildren: 'app/pages/tables/tables.module#TablesModule' },
|
||||||
{ path: 'maps', loadChildren: () => System.import('./maps/maps.module') }
|
{ path: 'maps', loadChildren: 'app/pages/maps/maps.module#MapsModule' }
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
export const routing = RouterModule.forChild(routes);
|
export const routing: ModuleWithProviders = RouterModule.forChild(routes);
|
||||||
|
|
|
||||||
|
|
@ -4,9 +4,9 @@ import {EmailValidator, EqualPasswordsValidator} from '../../theme/validators';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'register',
|
selector: 'register',
|
||||||
encapsulation: ViewEncapsulation.None,
|
// encapsulation: ViewEncapsulation.None,
|
||||||
styles: [require('./register.scss')],
|
styleUrls: ['./register.scss'],
|
||||||
template: require('./register.html'),
|
templateUrl: './register.html',
|
||||||
})
|
})
|
||||||
export class Register {
|
export class Register {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -19,4 +19,4 @@ import { routing } from './register.routing';
|
||||||
Register
|
Register
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
export default class RegisterModule {}
|
export class RegisterModule {}
|
||||||
|
|
|
||||||
|
|
@ -2,9 +2,9 @@ import {Component, ViewEncapsulation} from '@angular/core';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'basic-tables',
|
selector: 'basic-tables',
|
||||||
encapsulation: ViewEncapsulation.None,
|
// encapsulation: ViewEncapsulation.None,
|
||||||
styles: [require('./basicTables.scss')],
|
styleUrls: ['./basicTables.scss'],
|
||||||
template: require('./basicTables.html')
|
templateUrl: './basicTables.html'
|
||||||
})
|
})
|
||||||
export class BasicTables {
|
export class BasicTables {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ import {BasicTablesService} from '../../basicTables.service';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'bordered-table',
|
selector: 'bordered-table',
|
||||||
template: require('./borderedTable.html'),
|
templateUrl: './borderedTable.html',
|
||||||
})
|
})
|
||||||
export class BorderedTable {
|
export class BorderedTable {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ import {BasicTablesService} from '../../basicTables.service';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'condensed-table',
|
selector: 'condensed-table',
|
||||||
template: require('./condensedTable.html')
|
templateUrl: './condensedTable.html'
|
||||||
})
|
})
|
||||||
export class CondensedTable {
|
export class CondensedTable {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ import {Component} from '@angular/core';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'contextual-table',
|
selector: 'contextual-table',
|
||||||
template: require('./contextualTable.html'),
|
templateUrl: './contextualTable.html',
|
||||||
})
|
})
|
||||||
export class ContextualTable {
|
export class ContextualTable {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ import {BasicTablesService} from '../../basicTables.service';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'hover-table',
|
selector: 'hover-table',
|
||||||
template: require('./hoverTable.html')
|
templateUrl: './hoverTable.html'
|
||||||
})
|
})
|
||||||
export class HoverTable {
|
export class HoverTable {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ import {Component} from '@angular/core';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'responsive-table',
|
selector: 'responsive-table',
|
||||||
template: require('./responsiveTable.html'),
|
templateUrl: './responsiveTable.html',
|
||||||
})
|
})
|
||||||
export class ResponsiveTable {
|
export class ResponsiveTable {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ import {BasicTablesService} from '../../basicTables.service';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'striped-table',
|
selector: 'striped-table',
|
||||||
template: require('./stripedTable.html')
|
templateUrl: './stripedTable.html'
|
||||||
})
|
})
|
||||||
export class StripedTable {
|
export class StripedTable {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
export * from './smartTables.component';
|
|
||||||
|
|
@ -1,74 +0,0 @@
|
||||||
import {Component, ViewEncapsulation} from '@angular/core';
|
|
||||||
|
|
||||||
import { SmartTablesService } from './smartTables.service';
|
|
||||||
import { LocalDataSource } from 'ng2-smart-table';
|
|
||||||
|
|
||||||
@Component({
|
|
||||||
selector: 'basic-tables',
|
|
||||||
encapsulation: ViewEncapsulation.None,
|
|
||||||
styles: [require('./smartTables.scss')],
|
|
||||||
template: require('./smartTables.html')
|
|
||||||
})
|
|
||||||
export class SmartTables {
|
|
||||||
|
|
||||||
query: string = '';
|
|
||||||
|
|
||||||
settings = {
|
|
||||||
add: {
|
|
||||||
addButtonContent: '<i class="ion-ios-plus-outline"></i>',
|
|
||||||
createButtonContent: '<i class="ion-checkmark"></i>',
|
|
||||||
cancelButtonContent: '<i class="ion-close"></i>',
|
|
||||||
},
|
|
||||||
edit: {
|
|
||||||
editButtonContent: '<i class="ion-edit"></i>',
|
|
||||||
saveButtonContent: '<i class="ion-checkmark"></i>',
|
|
||||||
cancelButtonContent: '<i class="ion-close"></i>',
|
|
||||||
},
|
|
||||||
delete: {
|
|
||||||
deleteButtonContent: '<i class="ion-trash-a"></i>',
|
|
||||||
confirmDelete: true
|
|
||||||
},
|
|
||||||
columns: {
|
|
||||||
id: {
|
|
||||||
title: 'ID',
|
|
||||||
type: 'number'
|
|
||||||
},
|
|
||||||
firstName: {
|
|
||||||
title: 'First Name',
|
|
||||||
type: 'string'
|
|
||||||
},
|
|
||||||
lastName: {
|
|
||||||
title: 'Last Name',
|
|
||||||
type: 'string'
|
|
||||||
},
|
|
||||||
username: {
|
|
||||||
title: 'Username',
|
|
||||||
type: 'string'
|
|
||||||
},
|
|
||||||
email: {
|
|
||||||
title: 'E-mail',
|
|
||||||
type: 'string'
|
|
||||||
},
|
|
||||||
age: {
|
|
||||||
title: 'Age',
|
|
||||||
type: 'number'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
source: LocalDataSource = new LocalDataSource();
|
|
||||||
|
|
||||||
constructor(protected service: SmartTablesService) {
|
|
||||||
this.service.getData().then((data) => {
|
|
||||||
this.source.load(data);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
onDeleteConfirm(event): void {
|
|
||||||
if (window.confirm('Are you sure you want to delete?')) {
|
|
||||||
event.confirm.resolve();
|
|
||||||
} else {
|
|
||||||
event.confirm.reject();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
<div class="widgets">
|
|
||||||
|
|
||||||
<div class="row">
|
|
||||||
<ba-card title="Basic Example" baCardClass="with-scroll">
|
|
||||||
<ng2-smart-table [settings]="settings" [source]="source" (deleteConfirm)="onDeleteConfirm($event)"></ng2-smart-table>
|
|
||||||
</ba-card>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
@ -1,59 +0,0 @@
|
||||||
@import "../../../../theme/sass/conf/conf";
|
|
||||||
|
|
||||||
.ng2-smart-table-container table.ng2-smart-table {
|
|
||||||
th, td {
|
|
||||||
border: 1px solid $border-light !important;
|
|
||||||
line-height: 35px;
|
|
||||||
vertical-align: middle;
|
|
||||||
}
|
|
||||||
|
|
||||||
color: $default-text;
|
|
||||||
|
|
||||||
input {
|
|
||||||
line-height: 1.5 !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
tbody {
|
|
||||||
tr:hover {
|
|
||||||
background: rgba(0, 0, 0, 0.03);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
a.ng2-smart-sort-link {
|
|
||||||
font-size: 14px !important;
|
|
||||||
color: $default-text;
|
|
||||||
font-weight: $font-bolder;
|
|
||||||
&.sort {
|
|
||||||
font-weight: $font-bolder !important;
|
|
||||||
|
|
||||||
&::after {
|
|
||||||
border-bottom-color: $default-text !important;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.ng2-smart-actions {
|
|
||||||
width: 70px;
|
|
||||||
text-align: center;
|
|
||||||
.actions {
|
|
||||||
float: none;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
a.ng2-smart-action {
|
|
||||||
font-size: 14px !important;
|
|
||||||
color: $default-text;
|
|
||||||
padding: 0 5px;
|
|
||||||
display: inline-block;
|
|
||||||
|
|
||||||
&.ng2-smart-action-add-add {
|
|
||||||
font-size: 25px !important;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
nav.ng2-smart-pagination-nav {
|
|
||||||
display: flex;
|
|
||||||
justify-content: center;
|
|
||||||
}
|
|
||||||
|
|
@ -1,549 +0,0 @@
|
||||||
import {Injectable} from '@angular/core';
|
|
||||||
|
|
||||||
@Injectable()
|
|
||||||
export class SmartTablesService {
|
|
||||||
|
|
||||||
smartTableData = [
|
|
||||||
{
|
|
||||||
id: 1,
|
|
||||||
firstName: 'Mark',
|
|
||||||
lastName: 'Otto',
|
|
||||||
username: '@mdo',
|
|
||||||
email: 'mdo@gmail.com',
|
|
||||||
age: '28'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: 2,
|
|
||||||
firstName: 'Jacob',
|
|
||||||
lastName: 'Thornton',
|
|
||||||
username: '@fat',
|
|
||||||
email: 'fat@yandex.ru',
|
|
||||||
age: '45'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: 3,
|
|
||||||
firstName: 'Larry',
|
|
||||||
lastName: 'Bird',
|
|
||||||
username: '@twitter',
|
|
||||||
email: 'twitter@outlook.com',
|
|
||||||
age: '18'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: 4,
|
|
||||||
firstName: 'John',
|
|
||||||
lastName: 'Snow',
|
|
||||||
username: '@snow',
|
|
||||||
email: 'snow@gmail.com',
|
|
||||||
age: '20'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: 5,
|
|
||||||
firstName: 'Jack',
|
|
||||||
lastName: 'Sparrow',
|
|
||||||
username: '@jack',
|
|
||||||
email: 'jack@yandex.ru',
|
|
||||||
age: '30'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: 6,
|
|
||||||
firstName: 'Ann',
|
|
||||||
lastName: 'Smith',
|
|
||||||
username: '@ann',
|
|
||||||
email: 'ann@gmail.com',
|
|
||||||
age: '21'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: 7,
|
|
||||||
firstName: 'Barbara',
|
|
||||||
lastName: 'Black',
|
|
||||||
username: '@barbara',
|
|
||||||
email: 'barbara@yandex.ru',
|
|
||||||
age: '43'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: 8,
|
|
||||||
firstName: 'Sevan',
|
|
||||||
lastName: 'Bagrat',
|
|
||||||
username: '@sevan',
|
|
||||||
email: 'sevan@outlook.com',
|
|
||||||
age: '13'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: 9,
|
|
||||||
firstName: 'Ruben',
|
|
||||||
lastName: 'Vardan',
|
|
||||||
username: '@ruben',
|
|
||||||
email: 'ruben@gmail.com',
|
|
||||||
age: '22'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: 10,
|
|
||||||
firstName: 'Karen',
|
|
||||||
lastName: 'Sevan',
|
|
||||||
username: '@karen',
|
|
||||||
email: 'karen@yandex.ru',
|
|
||||||
age: '33'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: 11,
|
|
||||||
firstName: 'Mark',
|
|
||||||
lastName: 'Otto',
|
|
||||||
username: '@mark',
|
|
||||||
email: 'mark@gmail.com',
|
|
||||||
age: '38'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: 12,
|
|
||||||
firstName: 'Jacob',
|
|
||||||
lastName: 'Thornton',
|
|
||||||
username: '@jacob',
|
|
||||||
email: 'jacob@yandex.ru',
|
|
||||||
age: '48'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: 13,
|
|
||||||
firstName: 'Haik',
|
|
||||||
lastName: 'Hakob',
|
|
||||||
username: '@haik',
|
|
||||||
email: 'haik@outlook.com',
|
|
||||||
age: '48'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: 14,
|
|
||||||
firstName: 'Garegin',
|
|
||||||
lastName: 'Jirair',
|
|
||||||
username: '@garegin',
|
|
||||||
email: 'garegin@gmail.com',
|
|
||||||
age: '40'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: 15,
|
|
||||||
firstName: 'Krikor',
|
|
||||||
lastName: 'Bedros',
|
|
||||||
username: '@krikor',
|
|
||||||
email: 'krikor@yandex.ru',
|
|
||||||
age: '32'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": 16,
|
|
||||||
"firstName": "Francisca",
|
|
||||||
"lastName": "Brady",
|
|
||||||
"username": "@Gibson",
|
|
||||||
"email": "franciscagibson@comtours.com",
|
|
||||||
"age": 11
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": 17,
|
|
||||||
"firstName": "Tillman",
|
|
||||||
"lastName": "Figueroa",
|
|
||||||
"username": "@Snow",
|
|
||||||
"email": "tillmansnow@comtours.com",
|
|
||||||
"age": 34
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": 18,
|
|
||||||
"firstName": "Jimenez",
|
|
||||||
"lastName": "Morris",
|
|
||||||
"username": "@Bryant",
|
|
||||||
"email": "jimenezbryant@comtours.com",
|
|
||||||
"age": 45
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": 19,
|
|
||||||
"firstName": "Sandoval",
|
|
||||||
"lastName": "Jacobson",
|
|
||||||
"username": "@Mcbride",
|
|
||||||
"email": "sandovalmcbride@comtours.com",
|
|
||||||
"age": 32
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": 20,
|
|
||||||
"firstName": "Griffin",
|
|
||||||
"lastName": "Torres",
|
|
||||||
"username": "@Charles",
|
|
||||||
"email": "griffincharles@comtours.com",
|
|
||||||
"age": 19
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": 21,
|
|
||||||
"firstName": "Cora",
|
|
||||||
"lastName": "Parker",
|
|
||||||
"username": "@Caldwell",
|
|
||||||
"email": "coracaldwell@comtours.com",
|
|
||||||
"age": 27
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": 22,
|
|
||||||
"firstName": "Cindy",
|
|
||||||
"lastName": "Bond",
|
|
||||||
"username": "@Velez",
|
|
||||||
"email": "cindyvelez@comtours.com",
|
|
||||||
"age": 24
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": 23,
|
|
||||||
"firstName": "Frieda",
|
|
||||||
"lastName": "Tyson",
|
|
||||||
"username": "@Craig",
|
|
||||||
"email": "friedacraig@comtours.com",
|
|
||||||
"age": 45
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": 24,
|
|
||||||
"firstName": "Cote",
|
|
||||||
"lastName": "Holcomb",
|
|
||||||
"username": "@Rowe",
|
|
||||||
"email": "coterowe@comtours.com",
|
|
||||||
"age": 20
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": 25,
|
|
||||||
"firstName": "Trujillo",
|
|
||||||
"lastName": "Mejia",
|
|
||||||
"username": "@Valenzuela",
|
|
||||||
"email": "trujillovalenzuela@comtours.com",
|
|
||||||
"age": 16
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": 26,
|
|
||||||
"firstName": "Pruitt",
|
|
||||||
"lastName": "Shepard",
|
|
||||||
"username": "@Sloan",
|
|
||||||
"email": "pruittsloan@comtours.com",
|
|
||||||
"age": 44
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": 27,
|
|
||||||
"firstName": "Sutton",
|
|
||||||
"lastName": "Ortega",
|
|
||||||
"username": "@Black",
|
|
||||||
"email": "suttonblack@comtours.com",
|
|
||||||
"age": 42
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": 28,
|
|
||||||
"firstName": "Marion",
|
|
||||||
"lastName": "Heath",
|
|
||||||
"username": "@Espinoza",
|
|
||||||
"email": "marionespinoza@comtours.com",
|
|
||||||
"age": 47
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": 29,
|
|
||||||
"firstName": "Newman",
|
|
||||||
"lastName": "Hicks",
|
|
||||||
"username": "@Keith",
|
|
||||||
"email": "newmankeith@comtours.com",
|
|
||||||
"age": 15
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": 30,
|
|
||||||
"firstName": "Boyle",
|
|
||||||
"lastName": "Larson",
|
|
||||||
"username": "@Summers",
|
|
||||||
"email": "boylesummers@comtours.com",
|
|
||||||
"age": 32
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": 31,
|
|
||||||
"firstName": "Haynes",
|
|
||||||
"lastName": "Vinson",
|
|
||||||
"username": "@Mckenzie",
|
|
||||||
"email": "haynesmckenzie@comtours.com",
|
|
||||||
"age": 15
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": 32,
|
|
||||||
"firstName": "Miller",
|
|
||||||
"lastName": "Acosta",
|
|
||||||
"username": "@Young",
|
|
||||||
"email": "milleryoung@comtours.com",
|
|
||||||
"age": 55
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": 33,
|
|
||||||
"firstName": "Johnston",
|
|
||||||
"lastName": "Brown",
|
|
||||||
"username": "@Knight",
|
|
||||||
"email": "johnstonknight@comtours.com",
|
|
||||||
"age": 29
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": 34,
|
|
||||||
"firstName": "Lena",
|
|
||||||
"lastName": "Pitts",
|
|
||||||
"username": "@Forbes",
|
|
||||||
"email": "lenaforbes@comtours.com",
|
|
||||||
"age": 25
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": 35,
|
|
||||||
"firstName": "Terrie",
|
|
||||||
"lastName": "Kennedy",
|
|
||||||
"username": "@Branch",
|
|
||||||
"email": "terriebranch@comtours.com",
|
|
||||||
"age": 37
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": 36,
|
|
||||||
"firstName": "Louise",
|
|
||||||
"lastName": "Aguirre",
|
|
||||||
"username": "@Kirby",
|
|
||||||
"email": "louisekirby@comtours.com",
|
|
||||||
"age": 44
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": 37,
|
|
||||||
"firstName": "David",
|
|
||||||
"lastName": "Patton",
|
|
||||||
"username": "@Sanders",
|
|
||||||
"email": "davidsanders@comtours.com",
|
|
||||||
"age": 26
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": 38,
|
|
||||||
"firstName": "Holden",
|
|
||||||
"lastName": "Barlow",
|
|
||||||
"username": "@Mckinney",
|
|
||||||
"email": "holdenmckinney@comtours.com",
|
|
||||||
"age": 11
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": 39,
|
|
||||||
"firstName": "Baker",
|
|
||||||
"lastName": "Rivera",
|
|
||||||
"username": "@Montoya",
|
|
||||||
"email": "bakermontoya@comtours.com",
|
|
||||||
"age": 47
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": 40,
|
|
||||||
"firstName": "Belinda",
|
|
||||||
"lastName": "Lloyd",
|
|
||||||
"username": "@Calderon",
|
|
||||||
"email": "belindacalderon@comtours.com",
|
|
||||||
"age": 21
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": 41,
|
|
||||||
"firstName": "Pearson",
|
|
||||||
"lastName": "Patrick",
|
|
||||||
"username": "@Clements",
|
|
||||||
"email": "pearsonclements@comtours.com",
|
|
||||||
"age": 42
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": 42,
|
|
||||||
"firstName": "Alyce",
|
|
||||||
"lastName": "Mckee",
|
|
||||||
"username": "@Daugherty",
|
|
||||||
"email": "alycedaugherty@comtours.com",
|
|
||||||
"age": 55
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": 43,
|
|
||||||
"firstName": "Valencia",
|
|
||||||
"lastName": "Spence",
|
|
||||||
"username": "@Olsen",
|
|
||||||
"email": "valenciaolsen@comtours.com",
|
|
||||||
"age": 20
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": 44,
|
|
||||||
"firstName": "Leach",
|
|
||||||
"lastName": "Holcomb",
|
|
||||||
"username": "@Humphrey",
|
|
||||||
"email": "leachhumphrey@comtours.com",
|
|
||||||
"age": 28
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": 45,
|
|
||||||
"firstName": "Moss",
|
|
||||||
"lastName": "Baxter",
|
|
||||||
"username": "@Fitzpatrick",
|
|
||||||
"email": "mossfitzpatrick@comtours.com",
|
|
||||||
"age": 51
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": 46,
|
|
||||||
"firstName": "Jeanne",
|
|
||||||
"lastName": "Cooke",
|
|
||||||
"username": "@Ward",
|
|
||||||
"email": "jeanneward@comtours.com",
|
|
||||||
"age": 59
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": 47,
|
|
||||||
"firstName": "Wilma",
|
|
||||||
"lastName": "Briggs",
|
|
||||||
"username": "@Kidd",
|
|
||||||
"email": "wilmakidd@comtours.com",
|
|
||||||
"age": 53
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": 48,
|
|
||||||
"firstName": "Beatrice",
|
|
||||||
"lastName": "Perry",
|
|
||||||
"username": "@Gilbert",
|
|
||||||
"email": "beatricegilbert@comtours.com",
|
|
||||||
"age": 39
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": 49,
|
|
||||||
"firstName": "Whitaker",
|
|
||||||
"lastName": "Hyde",
|
|
||||||
"username": "@Mcdonald",
|
|
||||||
"email": "whitakermcdonald@comtours.com",
|
|
||||||
"age": 35
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": 50,
|
|
||||||
"firstName": "Rebekah",
|
|
||||||
"lastName": "Duran",
|
|
||||||
"username": "@Gross",
|
|
||||||
"email": "rebekahgross@comtours.com",
|
|
||||||
"age": 40
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": 51,
|
|
||||||
"firstName": "Earline",
|
|
||||||
"lastName": "Mayer",
|
|
||||||
"username": "@Woodward",
|
|
||||||
"email": "earlinewoodward@comtours.com",
|
|
||||||
"age": 52
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": 52,
|
|
||||||
"firstName": "Moran",
|
|
||||||
"lastName": "Baxter",
|
|
||||||
"username": "@Johns",
|
|
||||||
"email": "moranjohns@comtours.com",
|
|
||||||
"age": 20
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": 53,
|
|
||||||
"firstName": "Nanette",
|
|
||||||
"lastName": "Hubbard",
|
|
||||||
"username": "@Cooke",
|
|
||||||
"email": "nanettecooke@comtours.com",
|
|
||||||
"age": 55
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": 54,
|
|
||||||
"firstName": "Dalton",
|
|
||||||
"lastName": "Walker",
|
|
||||||
"username": "@Hendricks",
|
|
||||||
"email": "daltonhendricks@comtours.com",
|
|
||||||
"age": 25
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": 55,
|
|
||||||
"firstName": "Bennett",
|
|
||||||
"lastName": "Blake",
|
|
||||||
"username": "@Pena",
|
|
||||||
"email": "bennettpena@comtours.com",
|
|
||||||
"age": 13
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": 56,
|
|
||||||
"firstName": "Kellie",
|
|
||||||
"lastName": "Horton",
|
|
||||||
"username": "@Weiss",
|
|
||||||
"email": "kellieweiss@comtours.com",
|
|
||||||
"age": 48
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": 57,
|
|
||||||
"firstName": "Hobbs",
|
|
||||||
"lastName": "Talley",
|
|
||||||
"username": "@Sanford",
|
|
||||||
"email": "hobbssanford@comtours.com",
|
|
||||||
"age": 28
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": 58,
|
|
||||||
"firstName": "Mcguire",
|
|
||||||
"lastName": "Donaldson",
|
|
||||||
"username": "@Roman",
|
|
||||||
"email": "mcguireroman@comtours.com",
|
|
||||||
"age": 38
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": 59,
|
|
||||||
"firstName": "Rodriquez",
|
|
||||||
"lastName": "Saunders",
|
|
||||||
"username": "@Harper",
|
|
||||||
"email": "rodriquezharper@comtours.com",
|
|
||||||
"age": 20
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": 60,
|
|
||||||
"firstName": "Lou",
|
|
||||||
"lastName": "Conner",
|
|
||||||
"username": "@Sanchez",
|
|
||||||
"email": "lousanchez@comtours.com",
|
|
||||||
"age": 16
|
|
||||||
}
|
|
||||||
];
|
|
||||||
|
|
||||||
metricsTableData = [
|
|
||||||
{
|
|
||||||
image: 'app/browsers/chrome.svg',
|
|
||||||
browser: 'Google Chrome',
|
|
||||||
visits: '10,392',
|
|
||||||
isVisitsUp: true,
|
|
||||||
purchases: '4,214',
|
|
||||||
isPurchasesUp: true,
|
|
||||||
percent: '45%',
|
|
||||||
isPercentUp: true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
image: 'app/browsers/firefox.svg',
|
|
||||||
browser: 'Mozilla Firefox',
|
|
||||||
visits: '7,873',
|
|
||||||
isVisitsUp: true,
|
|
||||||
purchases: '3,031',
|
|
||||||
isPurchasesUp: false,
|
|
||||||
percent: '28%',
|
|
||||||
isPercentUp: true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
image: 'app/browsers/ie.svg',
|
|
||||||
browser: 'Internet Explorer',
|
|
||||||
visits: '5,890',
|
|
||||||
isVisitsUp: false,
|
|
||||||
purchases: '2,102',
|
|
||||||
isPurchasesUp: false,
|
|
||||||
percent: '17%',
|
|
||||||
isPercentUp: false
|
|
||||||
},
|
|
||||||
{
|
|
||||||
image: 'app/browsers/safari.svg',
|
|
||||||
browser: 'Safari',
|
|
||||||
visits: '4,001',
|
|
||||||
isVisitsUp: false,
|
|
||||||
purchases: '1,001',
|
|
||||||
isPurchasesUp: false,
|
|
||||||
percent: '14%',
|
|
||||||
isPercentUp: true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
image: 'app/browsers/opera.svg',
|
|
||||||
browser: 'Opera',
|
|
||||||
visits: '1,833',
|
|
||||||
isVisitsUp: true,
|
|
||||||
purchases: '83',
|
|
||||||
isPurchasesUp: true,
|
|
||||||
percent: '5%',
|
|
||||||
isPercentUp: false
|
|
||||||
}
|
|
||||||
];
|
|
||||||
|
|
||||||
getData(): Promise<any> {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
setTimeout(() => {
|
|
||||||
resolve(this.smartTableData);
|
|
||||||
}, 2000);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -6,8 +6,6 @@ import { NgaModule } from '../../theme/nga.module';
|
||||||
import { routing } from './tables.routing';
|
import { routing } from './tables.routing';
|
||||||
import { Tables } from './tables.component';
|
import { Tables } from './tables.component';
|
||||||
import { BasicTables } from './components/basicTables/basicTables.component';
|
import { BasicTables } from './components/basicTables/basicTables.component';
|
||||||
import { SmartTables } from './components/smartTables/smartTables.component';
|
|
||||||
import { Ng2SmartTableModule } from 'ng2-smart-table';
|
|
||||||
import { BasicTablesService } from './components/basicTables/basicTables.service';
|
import { BasicTablesService } from './components/basicTables/basicTables.service';
|
||||||
import { ResponsiveTable } from './components/basicTables/components/responsiveTable';
|
import { ResponsiveTable } from './components/basicTables/components/responsiveTable';
|
||||||
import { StripedTable } from './components/basicTables/components/stripedTable';
|
import { StripedTable } from './components/basicTables/components/stripedTable';
|
||||||
|
|
@ -15,7 +13,6 @@ import { BorderedTable } from './components/basicTables/components/borderedTable
|
||||||
import { HoverTable } from './components/basicTables/components/hoverTable';
|
import { HoverTable } from './components/basicTables/components/hoverTable';
|
||||||
import { CondensedTable } from './components/basicTables/components/condensedTable';
|
import { CondensedTable } from './components/basicTables/components/condensedTable';
|
||||||
import { ContextualTable } from './components/basicTables/components/contextualTable';
|
import { ContextualTable } from './components/basicTables/components/contextualTable';
|
||||||
import { SmartTablesService } from './components/smartTables/smartTables.service';
|
|
||||||
|
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
|
|
@ -23,13 +20,11 @@ import { SmartTablesService } from './components/smartTables/smartTables.service
|
||||||
CommonModule,
|
CommonModule,
|
||||||
FormsModule,
|
FormsModule,
|
||||||
NgaModule,
|
NgaModule,
|
||||||
Ng2SmartTableModule,
|
|
||||||
routing
|
routing
|
||||||
],
|
],
|
||||||
declarations: [
|
declarations: [
|
||||||
Tables,
|
Tables,
|
||||||
BasicTables,
|
BasicTables,
|
||||||
SmartTables,
|
|
||||||
HoverTable,
|
HoverTable,
|
||||||
BorderedTable,
|
BorderedTable,
|
||||||
CondensedTable,
|
CondensedTable,
|
||||||
|
|
@ -38,8 +33,7 @@ import { SmartTablesService } from './components/smartTables/smartTables.service
|
||||||
ResponsiveTable
|
ResponsiveTable
|
||||||
],
|
],
|
||||||
providers: [
|
providers: [
|
||||||
BasicTablesService,
|
BasicTablesService
|
||||||
SmartTablesService
|
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
export default class TablesModule {}
|
export class TablesModule {}
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,6 @@ import { Routes, RouterModule } from '@angular/router';
|
||||||
|
|
||||||
import { Tables } from './tables.component';
|
import { Tables } from './tables.component';
|
||||||
import { BasicTables } from './components/basicTables/basicTables.component';
|
import { BasicTables } from './components/basicTables/basicTables.component';
|
||||||
import { SmartTables } from './components/smartTables/smartTables.component';
|
|
||||||
|
|
||||||
// noinspection TypeScriptValidateTypes
|
// noinspection TypeScriptValidateTypes
|
||||||
const routes: Routes = [
|
const routes: Routes = [
|
||||||
|
|
@ -10,8 +9,7 @@ const routes: Routes = [
|
||||||
path: '',
|
path: '',
|
||||||
component: Tables,
|
component: Tables,
|
||||||
children: [
|
children: [
|
||||||
{ path: 'basictables', component: BasicTables },
|
{ path: 'basictables', component: BasicTables }
|
||||||
{ path: 'smarttables', component: SmartTables }
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
|
||||||
|
|
@ -2,9 +2,9 @@ import {Component, ViewEncapsulation} from '@angular/core';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'buttons',
|
selector: 'buttons',
|
||||||
encapsulation: ViewEncapsulation.None,
|
// encapsulation: ViewEncapsulation.None,
|
||||||
styles: [require('./buttons.scss')],
|
styleUrls: ['./buttons.scss'],
|
||||||
template: require('./buttons.html'),
|
templateUrl: './buttons.html',
|
||||||
})
|
})
|
||||||
export class Buttons {
|
export class Buttons {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ import { Component } from '@angular/core';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'disabled-buttons',
|
selector: 'disabled-buttons',
|
||||||
template: require('./disabledButtons.html'),
|
templateUrl: './disabledButtons.html',
|
||||||
})
|
})
|
||||||
export class DisabledButtons {
|
export class DisabledButtons {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ import {Component, HostListener} from '@angular/core';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'dropdown-buttons',
|
selector: 'dropdown-buttons',
|
||||||
template: require('./dropdownButtons.html')
|
templateUrl: './dropdownButtons.html'
|
||||||
})
|
})
|
||||||
|
|
||||||
// TODO: appendToBody does not implemented yet, waiting for it
|
// TODO: appendToBody does not implemented yet, waiting for it
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ import {Component} from '@angular/core';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'flat-buttons',
|
selector: 'flat-buttons',
|
||||||
template: require('./flatButtons.html'),
|
templateUrl: './flatButtons.html',
|
||||||
})
|
})
|
||||||
export class FlatButtons {
|
export class FlatButtons {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ import {Component} from '@angular/core';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'group-buttons',
|
selector: 'group-buttons',
|
||||||
template: require('./groupButtons.html'),
|
templateUrl: './groupButtons.html',
|
||||||
})
|
})
|
||||||
export class GroupButtons {
|
export class GroupButtons {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ import {Component} from '@angular/core';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'icon-buttons',
|
selector: 'icon-buttons',
|
||||||
template: require('./iconButtons.html'),
|
templateUrl: './iconButtons.html',
|
||||||
})
|
})
|
||||||
export class IconButtons {
|
export class IconButtons {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ import {Component} from '@angular/core';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'large-buttons',
|
selector: 'large-buttons',
|
||||||
template: require('./largeButtons.html'),
|
templateUrl: './largeButtons.html',
|
||||||
})
|
})
|
||||||
export class LargeButtons {
|
export class LargeButtons {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ import {Component} from '@angular/core';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'raised-buttons',
|
selector: 'raised-buttons',
|
||||||
template: require('./raisedButtons.html'),
|
templateUrl: './raisedButtons.html',
|
||||||
})
|
})
|
||||||
export class RaisedButtons {
|
export class RaisedButtons {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ import {Component} from '@angular/core';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'sized-buttons',
|
selector: 'sized-buttons',
|
||||||
template: require('./sizedButtons.html'),
|
templateUrl: './sizedButtons.html',
|
||||||
})
|
})
|
||||||
export class SizedButtons {
|
export class SizedButtons {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,9 +2,9 @@ import {Component, ViewEncapsulation} from '@angular/core';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'grid',
|
selector: 'grid',
|
||||||
encapsulation: ViewEncapsulation.None,
|
// encapsulation: ViewEncapsulation.None,
|
||||||
styles: [require('./grid.scss')],
|
styleUrls: ['./grid.scss'],
|
||||||
template: require('./grid.html'),
|
templateUrl: './grid.html',
|
||||||
})
|
})
|
||||||
export class Grid {
|
export class Grid {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,9 +4,9 @@ import {IconsService} from './icons.service';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'icons',
|
selector: 'icons',
|
||||||
encapsulation: ViewEncapsulation.None,
|
// encapsulation: ViewEncapsulation.None,
|
||||||
styles: [require('./icons.scss')],
|
styleUrls: ['./icons.scss'],
|
||||||
template: require('./icons.html'),
|
templateUrl: './icons.html',
|
||||||
})
|
})
|
||||||
export class Icons {
|
export class Icons {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,8 @@ import { ModalDirective } from 'ng2-bootstrap';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'modals',
|
selector: 'modals',
|
||||||
styles: [require('./modals.scss')],
|
styleUrls: ['./modals.scss'],
|
||||||
template: require('./modals.html')
|
templateUrl: './modals.html'
|
||||||
})
|
})
|
||||||
export class Modals {
|
export class Modals {
|
||||||
@ViewChild('childModal') childModal: ModalDirective;
|
@ViewChild('childModal') childModal: ModalDirective;
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ import {Component, ViewEncapsulation} from '@angular/core';
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'typography',
|
selector: 'typography',
|
||||||
styles: [],
|
styles: [],
|
||||||
template: require('./typography.html'),
|
templateUrl: './typography.html',
|
||||||
})
|
})
|
||||||
export class Typography {
|
export class Typography {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -52,5 +52,5 @@ import { IconsService } from './components/icons/icons.service';
|
||||||
IconsService
|
IconsService
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
export default class UiModule {
|
export class UiModule {
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -7,8 +7,9 @@ import {BaAmChartThemeService} from './baAmChartTheme.service';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'ba-am-chart',
|
selector: 'ba-am-chart',
|
||||||
template: require('./baAmChart.html'),
|
templateUrl: './baAmChart.html',
|
||||||
encapsulation: ViewEncapsulation.None,
|
styleUrls: ['./baAmChart.scss'],
|
||||||
|
// // encapsulation: ViewEncapsulation.None,
|
||||||
providers: [BaAmChartThemeService],
|
providers: [BaAmChartThemeService],
|
||||||
})
|
})
|
||||||
export class BaAmChart {
|
export class BaAmChart {
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,6 @@
|
||||||
require('style-loader!ammap3/ammap/ammap.css');
|
import 'amcharts3';
|
||||||
|
import 'amcharts3/amcharts/plugins/responsive/responsive.js';
|
||||||
|
import 'amcharts3/amcharts/serial.js';
|
||||||
|
|
||||||
require('amcharts3');
|
import 'ammap3';
|
||||||
require('amcharts3/amcharts/plugins/responsive/responsive.js');
|
import 'ammap3/ammap/maps/js/worldLow';
|
||||||
require('amcharts3/amcharts/serial.js');
|
|
||||||
|
|
||||||
require('ammap3');
|
|
||||||
require('ammap3/ammap/maps/js/worldLow');
|
|
||||||
|
|
|
||||||
1
src/app/theme/components/baAmChart/baAmChart.scss
Normal file
1
src/app/theme/components/baAmChart/baAmChart.scss
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
@import "~ammap3/ammap/ammap";
|
||||||
|
|
@ -2,7 +2,7 @@ import {Component, ViewChild, HostListener, Input, ElementRef} from '@angular/co
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'ba-back-top',
|
selector: 'ba-back-top',
|
||||||
styles: [require('./baBackTop.scss')],
|
styleUrls: ['./baBackTop.scss'],
|
||||||
template: `
|
template: `
|
||||||
<i #baBackTop class="fa fa-angle-up back-top ba-back-top" title="Back to Top"></i>
|
<i #baBackTop class="fa fa-angle-up back-top ba-back-top" title="Back to Top"></i>
|
||||||
`
|
`
|
||||||
|
|
@ -13,7 +13,7 @@ export class BaBackTop {
|
||||||
@Input() showSpeed:number = 500;
|
@Input() showSpeed:number = 500;
|
||||||
@Input() moveSpeed:number = 1000;
|
@Input() moveSpeed:number = 1000;
|
||||||
|
|
||||||
@ViewChild('baBackTop') private _selector:ElementRef;
|
@ViewChild('baBackTop') _selector:ElementRef;
|
||||||
|
|
||||||
ngAfterViewInit () {
|
ngAfterViewInit () {
|
||||||
this._onWindowScroll();
|
this._onWindowScroll();
|
||||||
|
|
|
||||||
|
|
@ -2,11 +2,11 @@ import {Component, ViewEncapsulation, ViewChild, Input} from '@angular/core';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'ba-card',
|
selector: 'ba-card',
|
||||||
styles: [require('./baCard.scss')],
|
templateUrl: './baCard.html',
|
||||||
template: require('./baCard.html'),
|
// encapsulation: ViewEncapsulation.None
|
||||||
encapsulation: ViewEncapsulation.None
|
|
||||||
})
|
})
|
||||||
export class BaCard {
|
export class BaCard {
|
||||||
@Input() title:String;
|
@Input() title:String;
|
||||||
@Input() baCardClass:String;
|
@Input() baCardClass:String;
|
||||||
|
@Input() cardType:String;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,23 +1,18 @@
|
||||||
import {
|
import {
|
||||||
Component,
|
Component,
|
||||||
ViewChild,
|
ViewChild,
|
||||||
ViewEncapsulation,
|
|
||||||
Input,
|
Input,
|
||||||
Output,
|
Output,
|
||||||
ElementRef,
|
ElementRef,
|
||||||
EventEmitter,
|
EventEmitter
|
||||||
OnInit,
|
|
||||||
OnChanges,
|
|
||||||
OnDestroy,
|
|
||||||
} from '@angular/core';
|
} from '@angular/core';
|
||||||
|
|
||||||
import {Chartist} from './baChartistChart.loader.ts';
|
import * as Chartist from 'chartist';
|
||||||
|
import 'style!./baChartistChart.scss';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'ba-chartist-chart',
|
selector: 'ba-chartist-chart',
|
||||||
encapsulation: ViewEncapsulation.None,
|
templateUrl: './baChartistChart.html',
|
||||||
styles: [require('chartist/dist/chartist.css'), require('./baChartistChart.scss')],
|
|
||||||
template: require('./baChartistChart.html'),
|
|
||||||
providers: [],
|
providers: [],
|
||||||
})
|
})
|
||||||
export class BaChartistChart {
|
export class BaChartistChart {
|
||||||
|
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
export const Chartist = require('chartist');
|
|
||||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue