Skip to content

Commit 602453a

Browse files
committed
Added documentation to templates
1 parent 44c2ce0 commit 602453a

File tree

346 files changed

+2368
-1710
lines changed

Some content is hidden

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

346 files changed

+2368
-1710
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
* Added JsDoc
77
* Added TypeDoc
88
* Added documentation to framework sources files and generated elements
9+
* Change Plain App renamed to Vanilla
910

1011
## 1.7.1
1112

File renamed without changes.

.eslintrc.json assets/appFramework/.eslintrc.json

+30-37
Original file line numberDiff line numberDiff line change
@@ -21,23 +21,22 @@
2121
},
2222
"globals": {},
2323
"rules": {
24-
"padded-blocks": "off",
24+
"new-cap": "off",
25+
"quote-props": "off",
2526
"sort-keys": "off",
27+
"lines-around-comment": "off",
28+
"no-useless-constructor": "off",
29+
"space-before-function-paren": "off",
30+
"padded-blocks": "off",
31+
"sort-imports": "off",
2632
"object-curly-newline": "off",
2733
"array-bracket-newline": "off",
2834
"object-property-newline": "off",
29-
"dot-location": "off",
30-
"func-style": "off",
35+
"function-paren-newline": "off",
36+
"no-empty-function": "off",
3137
"global-require": "off",
32-
"one-var": "off",
33-
"multiline-ternary": "off",
34-
"no-ternary": "off",
35-
"no-nested-ternary": "off",
36-
"no-process-exit": "off",
37-
"no-magic-numbers": "off",
38-
"arrow-parens": "off",
39-
"guard-for-in": "off",
40-
"callback-return": "off",
38+
"dot-location": "off",
39+
"arrow-body-style": "off",
4140
"max-len": [
4241
2,
4342
{
@@ -46,40 +45,34 @@
4645
"ignoreUrls": true
4746
}
4847
],
49-
"max-statements": "off",
50-
"no-plusplus": "off",
51-
"id-length": "off",
52-
"array-element-newline": "off",
48+
"valid-jsdoc": "off",
49+
"class-methods-use-this": "off",
50+
"no-unused-vars": "off",
51+
"func-style": "off",
52+
"no-magic-numbers": "off",
53+
"no-underscore-dangle": "off",
5354
"no-undefined": "off",
54-
"arrow-body-style": "off",
55-
"prefer-destructuring": "off",
56-
"lines-around-comment": "off",
57-
"no-else-return": "off",
58-
"max-params": "off",
59-
"require-jsdoc": "off",
60-
"max-lines": "off",
61-
"no-await-in-loop": "off",
62-
"no-process-env": "off",
63-
"no-empty-function": "off",
64-
"consistent-return": "off",
65-
"promise/avoid-new": "off",
66-
"max-depth": "off",
55+
"multiline-ternary": "off",
56+
"no-ternary": "off",
57+
"one-var": "off",
6758
"no-extra-parens": "off",
68-
"no-console": "off",
69-
"require-await": "off",
70-
"space-before-function-paren": "off",
71-
"quote-props": "off",
72-
"object-curly-spacing": "off",
73-
"new-cap": "off",
59+
"no-inline-comments": "off",
60+
"promise/always-return": "off",
7461
"babel/new-cap": 1,
7562
"babel/object-curly-spacing": 1,
7663
"babel/no-invalid-this": 1,
77-
"babel/semi": 1
64+
"babel/semi": 1,
65+
"react/react-in-jsx-scope": "off"
7866
},
7967
"plugins": [
8068
"node",
8169
"promise",
8270
"react",
8371
"babel"
84-
]
72+
],
73+
"settings": {
74+
"react": {
75+
"pragma": "h"
76+
}
77+
}
8578
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
/**
2+
* Gen Name Human component class.
3+
*
4+
* @export
5+
* @class GenNamePascalComponent
6+
*/
7+
import {Component} from "@angular/core";
8+
9+
@Component({
10+
moduleId: "genModuleId",
11+
templateUrl: "./gen-name-snake.component.html",
12+
styleUrls: ["./gen-name-snake.component.css"]
13+
})
14+
export class GenNamePascalComponent {
15+
/**
16+
* Message displayed in the view.
17+
* @type {string}
18+
*/
19+
message;
20+
21+
/**
22+
* Creates an instance of GenNamePascalComponent.
23+
*/
24+
constructor() {
25+
this.message = "Hello Gen Name Human";
26+
}
27+
28+
/**
29+
* The component was initialized.
30+
* @returns {void}
31+
*/
32+
ngOnInit() {
33+
this.message += " - onInit called";
34+
}
35+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
/**
2+
* Gen Name Human component class.
3+
*
4+
* @export
5+
* @class GenNamePascalComponent
6+
*/
7+
import { Component, OnInit } from "@angular/core";
8+
9+
@Component({
10+
moduleId: "genModuleId",
11+
templateUrl: "./gen-name-snake.component.html",
12+
styleUrls: ["./gen-name-snake.component.css"]
13+
})
14+
export class GenNamePascalComponent implements OnInit {
15+
/**
16+
* Message displayed in the view.
17+
* @type {string}
18+
*/
19+
public message: string;
20+
21+
/**
22+
* Creates an instance of GenNamePascalComponent.
23+
*/
24+
constructor() {
25+
this.message = "Hello Gen Name Human";
26+
}
27+
28+
/**
29+
* The component was initialized.
30+
* @returns {void}
31+
*/
32+
public ngOnInit(): void {
33+
this.message += " - onInit called";
34+
}
35+
}

assets/appFramework/angular/generate/component/src/{GEN_NAME_SNAKE}.js

-19
This file was deleted.

assets/appFramework/angular/generate/component/src/{GEN_NAME_SNAKE}.ts

-21
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.gen-name-snake-component {
2+
font-size: 20px;
3+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.gen-name-snake-component {
2+
font-size: 20px;
3+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.gen-name-snake-component {
2+
font-size: 20px;
3+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.gen-name-snake-component
2+
font-size: 20px

assets/appFramework/angular/generate/component/style/{GEN_NAME_SNAKE}.css

-3
This file was deleted.

assets/appFramework/angular/generate/component/style/{GEN_NAME_SNAKE}.less

-3
This file was deleted.

assets/appFramework/angular/generate/component/style/{GEN_NAME_SNAKE}.scss

-3
This file was deleted.

assets/appFramework/angular/generate/component/style/{GEN_NAME_SNAKE}.styl

-2
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/**
2+
* Tests for GenNamePascalComponent.
3+
*/
4+
import {GenNamePascalComponent} from "../../src/gen-name-snake.component";
5+
6+
describe("GenNamePascalComponent", () => {
7+
it("can be created", () => {
8+
const obj = new GenNamePascalComponent();
9+
expect(obj).toBeDefined();
10+
});
11+
});
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/**
2+
* Tests for GenNamePascalComponent.
3+
*/
4+
import { GenNamePascalComponent } from "../../src/gen-name-snake.component";
5+
6+
describe("GenNamePascalComponent", () => {
7+
it("can be created", () => {
8+
const obj = new GenNamePascalComponent();
9+
expect(obj).toBeDefined();
10+
});
11+
});

assets/appFramework/angular/generate/component/unit/jasmine/{GEN_NAME_SNAKE}.spec.js

-11
This file was deleted.

assets/appFramework/angular/generate/component/unit/jasmine/{GEN_NAME_SNAKE}.spec.ts

-11
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/**
2+
* Tests for GenNamePascalComponent.
3+
*/
4+
import chai from "chai";
5+
import {GenNamePascalComponent} from "../../src/gen-name-snake.component";
6+
7+
describe("GenNamePascalComponent", () => {
8+
it("can be created", () => {
9+
const obj = new GenNamePascalComponent();
10+
chai.should().exist(obj);
11+
});
12+
});
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/**
2+
* Tests for GenNamePascalComponent.
3+
*/
4+
import /* Synthetic Import */ chai from "chai";
5+
import { GenNamePascalComponent } from "../../src/gen-name-snake.component";
6+
7+
describe("GenNamePascalComponent", () => {
8+
it("can be created", () => {
9+
const obj = new GenNamePascalComponent();
10+
chai.should().exist(obj);
11+
});
12+
});

assets/appFramework/angular/generate/component/unit/mochachai/{GEN_NAME_SNAKE}.spec.js

-12
This file was deleted.

assets/appFramework/angular/generate/component/unit/mochachai/{GEN_NAME_SNAKE}.spec.ts

-12
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<div class="gen-name-snake-component">
2+
{{ message }}
3+
</div>

assets/appFramework/angular/generate/component/view/{GEN_NAME_SNAKE}.html

-3
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/**
2+
* Gen Name Human directive class.
3+
*
4+
* @export
5+
* @class GenNamePascalDirective
6+
*/
7+
import {Directive} from "@angular/core";
8+
9+
@Directive({
10+
selector: "[appGenNamePascal]"
11+
})
12+
export class GenNamePascalDirective {
13+
/**
14+
* Creates an instance of GenNamePascalDirective.
15+
*/
16+
constructor() {
17+
}
18+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/**
2+
* Gen Name Human directive class.
3+
*
4+
* @export
5+
* @class GenNamePascalDirective
6+
*/
7+
import { Directive } from "@angular/core";
8+
9+
@Directive({
10+
selector: "[appGenNamePascal]"
11+
})
12+
export class GenNamePascalDirective {
13+
/**
14+
* Creates an instance of GenNamePascalDirective.
15+
*/
16+
constructor() {
17+
}
18+
}

0 commit comments

Comments
 (0)