Skip to content

Commit d472f85

Browse files
committed
init
1 parent 7161e5e commit d472f85

File tree

124 files changed

+363
-3111
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

124 files changed

+363
-3111
lines changed

.angular-cli.json

+57
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
{
2+
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3+
"project": {
4+
"name": "angular-admin-lte"
5+
},
6+
"apps": [
7+
{
8+
"root": "src",
9+
"outDir": "dist",
10+
"assets": [
11+
"assets",
12+
"favicon.ico"
13+
],
14+
"index": "index.html",
15+
"main": "main.ts",
16+
"polyfills": "polyfills.ts",
17+
"test": "test.ts",
18+
"tsconfig": "tsconfig.app.json",
19+
"testTsconfig": "tsconfig.spec.json",
20+
"prefix": "app",
21+
"styles": [
22+
"styles.css"
23+
],
24+
"scripts": [],
25+
"environmentSource": "environments/environment.ts",
26+
"environments": {
27+
"dev": "environments/environment.ts",
28+
"prod": "environments/environment.prod.ts"
29+
}
30+
}
31+
],
32+
"e2e": {
33+
"protractor": {
34+
"config": "./protractor.conf.js"
35+
}
36+
},
37+
"lint": [
38+
{
39+
"project": "src/tsconfig.app.json"
40+
},
41+
{
42+
"project": "src/tsconfig.spec.json"
43+
},
44+
{
45+
"project": "e2e/tsconfig.e2e.json"
46+
}
47+
],
48+
"test": {
49+
"karma": {
50+
"config": "./karma.conf.js"
51+
}
52+
},
53+
"defaults": {
54+
"styleExt": "css",
55+
"component": {}
56+
}
57+
}

.editorconfig

+1-2
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,9 @@ root = true
55
charset = utf-8
66
indent_style = space
77
indent_size = 2
8-
end_of_line = lf
98
insert_final_newline = true
109
trim_trailing_whitespace = true
1110

1211
[*.md]
13-
max_line_length = 0
12+
max_line_length = off
1413
trim_trailing_whitespace = false

.gitignore

+12-4
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,31 @@
33
# compiled output
44
/dist
55
/tmp
6+
/out-tsc
67

78
# dependencies
89
/node_modules
9-
/bower_components
1010

1111
# IDEs and editors
1212
/.idea
13-
/.vscode
1413
.project
1514
.classpath
15+
.c9/
1616
*.launch
1717
.settings/
18+
*.sublime-workspace
19+
20+
# IDE - VSCode
21+
.vscode/*
22+
!.vscode/settings.json
23+
!.vscode/tasks.json
24+
!.vscode/launch.json
25+
!.vscode/extensions.json
1826

1927
# misc
2028
/.sass-cache
2129
/connect.lock
22-
/coverage/*
30+
/coverage
2331
/libpeerconnection.log
2432
npm-debug.log
2533
testem.log
@@ -29,6 +37,6 @@ testem.log
2937
/e2e/*.js
3038
/e2e/*.map
3139

32-
#System Files
40+
# System Files
3341
.DS_Store
3442
Thumbs.db

README.md

+15-54
Original file line numberDiff line numberDiff line change
@@ -1,67 +1,28 @@
1-
Introduction
2-
============
1+
# AngularAdminLTE
32

4-
This is the **Angular2** version of **AdminLTE** -- is a fully responsive admin template. Based on **[Bootstrap 3](https://github.com/twbs/bootstrap)** framework. Highly customizable and easy to use. Fits many screen resolutions from small mobile devices to large desktops. Check out the live preview now and see for yourself.
3+
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 1.2.1.
54

6-
**Download & Preview AndminLTE on [Almsaeed Studio](https://almsaeedstudio.com)**
5+
## Development server
76

7+
Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.
88

9-
!["AdminLTE Presentation"](https://almsaeedstudio.com/AdminLTE2.png "AdminLTE Presentation")
9+
## Code scaffolding
1010

11-
Installation
12-
------------
11+
Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|module`.
1312

14-
- Fork the repository ([here is the guide](https://help.github.com/articles/fork-a-repo/)).
15-
- Clone to your machine
16-
- Install Angular 2 Client.
17-
```bash
18-
npm install -g @angular/cli
19-
```
20-
- Clone the repository
21-
```bash
22-
git clone https://github.com/YOUR_USERNAME/Angular2-AdminLTE.git
23-
```
13+
## Build
2414

25-
- Install the packages
26-
```bash
27-
git clone https://github.com/YOUR_USERNAME/Angular2-AdminLTE.git
28-
cd Angular2-AdminLTE
29-
npm install
30-
```
15+
Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `-prod` flag for a production build.
3116

32-
Running the application
33-
------------
34-
- On the folder project
35-
```
36-
ng serve
37-
```
38-
- Navigate to [http://localhost:4200/](http://localhost:4200/)
17+
## Running unit tests
3918

40-
Browser Support
41-
---------------
42-
- IE 9+
43-
- Firefox (latest)
44-
- Chrome (latest)
45-
- Safari (latest)
46-
- Opera (latest)
19+
Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).
4720

48-
Contribution
49-
------------
50-
Contribution are always **welcome and recommended**! Here is how:
21+
## Running end-to-end tests
5122

52-
- Fork the repository ([here is the guide](https://help.github.com/articles/fork-a-repo/)).
53-
- Clone to your machine ```git clone https://github.com/YOUR_USERNAME/Angular2-AdminLTE.git```
54-
- Make your changes
55-
- Create a pull request
23+
Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/).
24+
Before running the tests make sure you are serving the app via `ng serve`.
5625

57-
#### Contribution Requirements:
58-
- Contributions are only accepted through Github pull requests.
59-
- Finally, contributed code must work in all supported browsers (see above for browser support).
26+
## Further help
6027

61-
License
62-
-------
63-
Angular2-AdminLTE is an open source project by that is licensed under [MIT](http://opensource.org/licenses/MIT).
64-
65-
Credits
66-
-------------
67-
[Almsaeed Studio](https://almsaeedstudio.com)
28+
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).

angular-cli.json

-76
This file was deleted.

e2e/app.e2e-spec.ts

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
import { Angular2AdminLTEPage } from './app.po';
1+
import { AngularAdminLTEPage } from './app.po';
22

3-
describe('angular2-admin-lte App', function() {
4-
let page: Angular2AdminLTEPage;
3+
describe('angular-admin-lte App', () => {
4+
let page: AngularAdminLTEPage;
55

66
beforeEach(() => {
7-
page = new Angular2AdminLTEPage();
7+
page = new AngularAdminLTEPage();
88
});
99

10-
it('should display message saying app works', () => {
10+
it('should display welcome message', () => {
1111
page.navigateTo();
12-
expect(page.getParagraphText()).toEqual('app works!');
12+
expect(page.getParagraphText()).toEqual('Welcome to app!');
1313
});
1414
});

e2e/app.po.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { browser, element, by } from 'protractor';
1+
import { browser, by, element } from 'protractor';
22

3-
export class Angular2AdminLTEPage {
3+
export class AngularAdminLTEPage {
44
navigateTo() {
55
return browser.get('/');
66
}

e2e/tsconfig.e2e.json

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"extends": "../tsconfig.json",
3+
"compilerOptions": {
4+
"outDir": "../out-tsc/e2e",
5+
"baseUrl": "./",
6+
"module": "commonjs",
7+
"target": "es5",
8+
"types": [
9+
"jasmine",
10+
"jasminewd2",
11+
"node"
12+
]
13+
}
14+
}

karma.conf.js

+10-15
Original file line numberDiff line numberDiff line change
@@ -4,30 +4,25 @@
44
module.exports = function (config) {
55
config.set({
66
basePath: '',
7-
frameworks: ['jasmine', 'angular-cli'],
7+
frameworks: ['jasmine', '@angular/cli'],
88
plugins: [
99
require('karma-jasmine'),
1010
require('karma-chrome-launcher'),
11-
require('karma-remap-istanbul'),
12-
require('angular-cli/plugins/karma')
11+
require('karma-jasmine-html-reporter'),
12+
require('karma-coverage-istanbul-reporter'),
13+
require('@angular/cli/plugins/karma')
1314
],
14-
files: [
15-
{ pattern: './src/test.ts', watched: false }
16-
],
17-
preprocessors: {
18-
'./src/test.ts': ['angular-cli']
15+
client:{
16+
clearContext: false // leave Jasmine Spec Runner output visible in browser
1917
},
20-
remapIstanbulReporter: {
21-
reports: {
22-
html: 'coverage',
23-
lcovonly: './coverage/coverage.lcov'
24-
}
18+
coverageIstanbulReporter: {
19+
reports: [ 'html', 'lcovonly' ],
20+
fixWebpackSourcePaths: true
2521
},
2622
angularCli: {
27-
config: './angular-cli.json',
2823
environment: 'dev'
2924
},
30-
reporters: ['progress', 'karma-remap-istanbul'],
25+
reporters: ['progress', 'kjhtml'],
3126
port: 9876,
3227
colors: true,
3328
logLevel: config.LOG_INFO,

0 commit comments

Comments
 (0)