Skip to content

Commit cbcf798

Browse files
committed
cleanup templates
1 parent 5caa380 commit cbcf798

Some content is hidden

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

59 files changed

+138
-217
lines changed

cli/core/e2e/package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cli/core/e2e/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@leanup/cli-core-e2e",
3-
"version": "1.0.0-rc.518",
3+
"version": "1.0.0-rc.519",
44
"description": "This module contains the e2e test feature for the @leanup/cli.",
55
"author": "Martin Oppitz <npmjs@martinoppitz.com>",
66
"homepage": "https://leanupjs.org",

cli/core/format/package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cli/core/format/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@leanup/cli-core-format",
3-
"version": "1.0.0-rc.518",
3+
"version": "1.0.0-rc.519",
44
"description": "This module contains the format feature for the @leanup/cli.",
55
"author": "Martin Oppitz <npmjs@martinoppitz.com>",
66
"homepage": "https://leanupjs.org",

cli/core/lint/package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cli/core/lint/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@leanup/cli-core-lint",
3-
"version": "1.0.0-rc.518",
3+
"version": "1.0.0-rc.519",
44
"description": "This module contains the lint feature for the @leanup/cli.",
55
"author": "Martin Oppitz <npmjs@martinoppitz.com>",
66
"homepage": "https://leanupjs.org",

cli/core/package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cli/core/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@leanup/cli",
3-
"version": "1.0.0-rc.518",
3+
"version": "1.0.0-rc.519",
44
"description": "This CLI brings along all required tools to serve, test and build multi framework SPAs",
55
"author": "Martin Oppitz <npmjs@martinoppitz.com>",
66
"homepage": "https://leanupjs.org",
@@ -63,10 +63,10 @@
6363
"@babel/plugin-proposal-decorators": "^7.10.5",
6464
"@babel/preset-env": "^7.11.5",
6565
"@babel/preset-typescript": "^7.10.4",
66-
"@leanup/cli-core-e2e": "^1.0.0-rc.518",
67-
"@leanup/cli-core-format": "^1.0.0-rc.518",
68-
"@leanup/cli-core-lint": "^1.0.0-rc.518",
69-
"@leanup/cli-core-test": "^1.0.0-rc.518",
66+
"@leanup/cli-core-e2e": "^1.0.0-rc.519",
67+
"@leanup/cli-core-format": "^1.0.0-rc.519",
68+
"@leanup/cli-core-lint": "^1.0.0-rc.519",
69+
"@leanup/cli-core-test": "^1.0.0-rc.519",
7070
"autoprefixer": "^9.8.5",
7171
"babel-loader": "^8.1.0",
7272
"chalk": "^4.1.0",

cli/core/template/src/components/input/controller.ts

Lines changed: 0 additions & 87 deletions
This file was deleted.

cli/core/template/src/components/series/create/controller.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,17 @@ import { MeasuredSerieModel } from '../../../models/measured-series.model';
44
import { MeasurementService } from '../../../services/measurements/service';
55
import { RouterService } from '../../../services/router/service';
66
import { EditorForm } from '../editor/editor.form';
7+
import { InputControl } from '@leanup/form/controls/controls';
78

89
export class CreateSerieController {
9-
private readonly measurementService: MeasurementService = DI.get('MeasurementService') as MeasurementService;
10+
private readonly measurementService: MeasurementService = DI.get('MeasurementService');
1011
public editorForm: EditorForm = new EditorForm('new');
1112

1213
public onSubmit(): void {
14+
const titleInput: InputControl = this.editorForm.getControl('title');
15+
const unitInput: InputControl = this.editorForm.getControl('unit');
1316
this.measurementService.addSerie(
14-
new MeasuredSerieModel(this.editorForm.getInput('title').value, this.editorForm.getInput('unit').value)
17+
new MeasuredSerieModel(this.editorForm.getControl('title').value, this.editorForm.getControl('unit').value)
1518
);
1619
this.measurementService.store();
1720
this.editorForm = new EditorForm('new');

0 commit comments

Comments
 (0)