Skip to content

Commit b51cb12

Browse files
authored
chore: update short imports (#41)
* chore: update short imports * remove FontAwesome import
1 parent 8531ca8 commit b51cb12

File tree

6 files changed

+15
-19
lines changed

6 files changed

+15
-19
lines changed

Diff for: app/app.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
@import '~nativescript-theme-core/css/core.light.css';
2-
@import url(~/resources/fonts/FontAwesome);
2+
33
button {
44
font-size: 13;
55
}

Diff for: app/main/main-page-router-outlet.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Component } from "@angular/core";
2-
import * as platform from "platform";
2+
import * as platform from "tns-core-modules/platform";
33

44
@Component({
55
selector: "main",

Diff for: app/navigation-options/navigation-info.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Component } from "@angular/core";
22
import { NSLocationStrategy } from "nativescript-angular/router/ns-location-strategy";
3-
import { Frame } from "ui/frame";
3+
import { Frame } from "tns-core-modules/ui/frame";
44

55
@Component({
66
selector: "nav-info",

Diff for: app/segmented-bar/issue-649.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Component } from "@angular/core";
2-
import { SegmentedBar, SegmentedBarItem } from "ui/segmented-bar";
2+
import { SegmentedBar, SegmentedBarItem } from "tns-core-modules/ui/segmented-bar";
33

44
@Component({
55
styles: ["#second { margin: 5; color: blue;" +

Diff for: app/vendor.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Snapshot the ~/app.css and the theme
2-
const application = require("application");
3-
require("ui/styling/style-scope");
2+
const application = require("tns-core-modules/application");
3+
require("tns-core-modules/ui/styling/style-scope");
44
const appCssContext = require.context("~/", false, /^\.\/app\.(css|scss|less|sass)$/);
55
global.registerWebpackModules(appCssContext);
66
application.loadAppCss();
@@ -10,7 +10,7 @@ require("@angular/platform-browser");
1010
require("@angular/core");
1111
require("@angular/common");
1212
require("@angular/forms");
13-
require("@angular/http");
13+
require("@angular/common/http");
1414
require("@angular/router");
1515

1616
require("nativescript-angular/platform-static");

Diff for: package.json

+8-12
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,13 @@
1313
}
1414
},
1515
"dependencies": {
16-
"@angular/common": "~6.1.0",
17-
"@angular/compiler": "~6.1.0",
18-
"@angular/core": "~6.1.0",
19-
"@angular/forms": "~6.1.0",
20-
"@angular/http": "~6.1.0",
21-
"@angular/platform-browser": "~6.1.0",
22-
"@angular/platform-browser-dynamic": "~6.1.0",
23-
"@angular/router": "~6.1.0",
16+
"@angular/common": "~7.2.0",
17+
"@angular/compiler": "~7.2.0",
18+
"@angular/core": "~7.2.0",
19+
"@angular/forms": "~7.2.0",
20+
"@angular/platform-browser": "~7.2.0",
21+
"@angular/platform-browser-dynamic": "~7.2.0",
22+
"@angular/router": "~7.2.0",
2423
"nativescript-angular": "next",
2524
"nativescript-intl": "~3.0.0",
2625
"nativescript-theme-core": "^1.0.4",
@@ -30,7 +29,6 @@
3029
"zone.js": "^0.8.26"
3130
},
3231
"devDependencies": {
33-
"@angular/compiler-cli": "~6.1.0",
3432
"babel-traverse": "6.24.1",
3533
"babel-types": "6.24.1",
3634
"babylon": "6.17.0",
@@ -39,9 +37,7 @@
3937
"lazy": "1.0.11",
4038
"nativescript-dev-typescript": "next",
4139
"nativescript-dev-webpack": "next",
42-
"tslint": "^5.4.3",
43-
"typescript": "~2.7.2",
44-
"@ngtools/webpack": "~6.2.0"
40+
"tslint": "^5.4.3"
4541
},
4642
"scripts": {
4743
"tslint": "tslint --config tslint.json 'app/**/*.ts'",

0 commit comments

Comments
 (0)